X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure;h=0b3012d34efb5d0228d44e050881fcc5b568db06;hb=77b54dcec77e80f1d8a6d32fd9320579b64f5f4d;hp=aa8a670e3b294977193bb9adefc01519ce318037;hpb=58319f51aa5804c90fe5edd8e5f0386b7a297827;p=ctsim.git diff --git a/configure b/configure index aa8a670..0b3012d 100755 --- a/configure +++ b/configure @@ -873,6 +873,7 @@ Optional Packages: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-lam=PATH Set path of LAM MPI --with-ctn=PATH Set path of CTN DICOM library + --with-cpu=CPU Set name of CPU for gcc -mcpu= --with-cgibin-dir=PATH Set path of CGI binaries directory --with-cgibin-url=PATH Set URL path of CGI binaries --with-webdata-dir=PATH Set path of webdata @@ -7498,6 +7499,84 @@ fi echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 +echo "$as_me:$LINENO: checking for getopt" >&5 +echo $ECHO_N "checking for getopt... $ECHO_C" >&6 +if test "${ac_cv_func_getopt+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getopt (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ +#ifdef __STDC__ +# include +#else +# include +#endif +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getopt (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getopt) || defined (__stub___getopt) +choke me +#else +char (*f) () = getopt; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != getopt; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_getopt=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_getopt=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5 +echo "${ECHO_T}$ac_cv_func_getopt" >&6 +if test $ac_cv_func_getopt = yes; then + getopt=true +else + getopt=false +fi + if test "${OSTYPE}" = "cygwin" ; then getopt_long=false @@ -7681,11 +7760,12 @@ cat >>confdefs.h <<\_ACEOF #define HAVE_SSTREAM 1 _ACEOF - echo "$as_me:$LINENO: result: yes" >&5 + echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 -fi -echo "$as_me:$LINENO: result: no" >&5 + else + echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 + fi CFLAGS="$CFLAGS -Wall" @@ -7819,6 +7899,22 @@ echo "${ECHO_T}no" >&6 fi fi + +# Check whether --with-cpu or --without-cpu was given. +if test "${with_cpu+set}" = set; then + withval="$with_cpu" + +fi; + +if test "$withval" == "pentium4" -o "$withval" == "athlon-mp" ; then + echo "$as_me:$LINENO: checking Setting CPU to $withval" >&5 +echo $ECHO_N "checking Setting CPU to $withval... $ECHO_C" >&6 + CFLAGS="$CFLAGS -mcpu=$withval" +else + echo "$as_me:$LINENO: checking Unknown CPU $withval" >&5 +echo $ECHO_N "checking Unknown CPU $withval... $ECHO_C" >&6 +fi + echo "$as_me:$LINENO: checking for web access" >&5 echo $ECHO_N "checking for web access... $ECHO_C" >&6