4 PATH
="/bin:/usr/bin:/usr/local/bin"
5 modules
="lib-src prop-src tests"
10 if [ "none$CC" = "none" ]; then
11 echo "No compiler specified, assuming g++";
19 iostream_lib
="s/\\\$(gcc-iostream-lib)/-liostream/"
24 5.
*.
*) ARCH
=solaris
;;
42 echo "Using the $CC compiler"
44 echo "$CC -S configure-dir/testbool.C -o /dev/null 2> /dev/null"
45 $CC -S configure-dir
/testbool.C
-o /dev
/null
2> /dev
/null
47 echo "Good, your $CC compiler has the type bool.";
50 echo "Seems like you don't have the type bool.";
51 echo "I'll define it as int.";
55 $CC -S configure-dir
/testexplicit.C
-o /dev
/null
2> /dev
/null
57 echo "Good, your $CC compiler has the keyword explicit.";
60 echo "Seems like you don't have the keyword explicit.";
61 echo "I'll define it as the empty string.";
65 $CC configure-dir
/testgetrusage.C
-o configure-dir
/testgetrusage
2> /dev
/null
67 echo "Good, getrusage() is working"
69 rm configure-dir
/testgetrusage
71 echo "Seems like getrusage is not working"
72 echo "I'll comment out all usage of getrusage()"
76 $CC configure-dir
/testtimes.C
-o configure-dir
/testtimes
2> /dev
/null
78 echo "Good, times() is working"
80 rm configure-dir
/testtimes
82 echo "Seems like times is not working"
83 echo "I'll comment out all usage of times()"
87 >include
/AD
/config
/config.h
88 echo "#ifndef prop_library_configuration_h" >>include
/AD
/config
/config.h
89 echo "#define prop_library_configuration_h" >>include
/AD
/config
/config.h
90 if [ $bool = yes ]; then
91 echo "#define PROP_BOOL_IS_DEFINED" >>include
/AD
/config
/config.h
;
93 if [ $explicit = yes ]; then
94 echo "#define PROP_EXPLICIT_IS_DEFINED" >>include
/AD
/config
/config.h
;
96 if [ $getrusage = yes ]; then
97 echo "#define PROP_HAS_GETRUSAGE" >>include
/AD
/config
/config.h
;
99 if [ $times = yes ]; then
100 echo "#define PROP_HAS_TIMES" >>include
/AD
/config
/config.h
;
102 echo "#endif" >>include
/AD
/config
/config.h
103 echo "include/AD/config/config.h created"
106 #replace="$iostream_lib"
109 echo "Using the $ARCH configuration"
110 #for module in $modules ;
112 # module_name=`echo $module | sed -e 's/\//:/g'`
113 # echo "sed -e $replace < configure-dir/Makefile.$module_name > $module/Makefile"
114 # sed -e "$replace" < configure-dir/Makefile.$module_name > $module/Makefile