Changeset 1052 for trunk/packages/optimizer/src
- Timestamp:
- Jun 18, 2008 3:08:45 PM (15 years ago)
- Location:
- trunk/packages/optimizer/src
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/optimizer/src/Makefile.in
r986 r1052 68 68 SHELL = @SHELL@ 69 69 70 srcdir = @srcdir@71 prefix = @prefix@72 exec_prefix = @exec_prefix@73 74 70 bindir = @bindir@ 75 libdir = @libdir@76 71 datadir = @datadir@ 77 72 datarootdir = @datarootdir@ 73 exec_prefix = @exec_prefix@ 74 includedir = @includedir@ 75 libdir = @libdir@ 78 76 mandir = @mandir@ 79 includedir = @includedir@ 77 prefix = @prefix@ 78 srcdir = @srcdir@ 79 80 80 81 81 DESTDIR = … … 88 88 top_builddir = . 89 89 90 INSTALL = @INSTALL@91 INSTALL_PROGRAM = @INSTALL_PROGRAM@92 INSTALL_DATA = @INSTALL_DATA@93 INSTALL_SCRIPT = @INSTALL_SCRIPT@94 95 PACKAGE_NAME = @PACKAGE_NAME@96 PACKAGE_VERSION = @PACKAGE_VERSION@97 90 CC = @CC@ 98 CXX = @CXX@99 91 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 100 92 CFLAGS_WARNING = @CFLAGS_WARNING@ 101 93 CLEANFILES = @CLEANFILES@ 94 CXX = @CXX@ 102 95 EXEEXT = @EXEEXT@ 96 INSTALL = @INSTALL@ 97 INSTALL_DATA = @INSTALL_DATA@ 98 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 99 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 103 100 LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ 104 101 MAKE_LIB = @MAKE_LIB@ … … 107 104 MAKE_STUB_LIB = @MAKE_STUB_LIB@ 108 105 OBJEXT = @OBJEXT@ 106 PACKAGE_NAME = @PACKAGE_NAME@ 107 PACKAGE_VERSION = @PACKAGE_VERSION@ 109 108 RANLIB = @RANLIB@ 110 109 RANLIB_STUB = @RANLIB_STUB@ … … 113 112 SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ 114 113 STLIB_LD = @STLIB_LD@ 115 #TCL_DEFS = @TCL_DEFS@116 114 TCL_BIN_DIR = @TCL_BIN_DIR@ 117 115 TCL_SRC_DIR = @TCL_SRC_DIR@ 116 #TCL_DEFS = @TCL_DEFS@ 118 117 #TK_BIN_DIR = @TK_BIN_DIR@ 119 118 #TK_SRC_DIR = @TK_SRC_DIR@ 119 VPATH = $(srcdir) 120 120 121 121 # Not used, but retained for reference of what libs Tcl required … … 147 147 SHARED_BUILD = @SHARED_BUILD@ 148 148 149 INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@149 INCLUDES = -I$(srcdir) -I. @PKG_INCLUDES@ @TCL_INCLUDES@ 150 150 #INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@ 151 151 … … 180 180 #======================================================================== 181 181 182 all: binaries libraries doc 182 .PHONY: pgapack 183 184 all: pgapack binaries libraries doc 185 186 pgapack: 187 $(MAKE) -C pgapack all 188 183 189 184 190 #======================================================================== … … 191 197 binaries: $(BINARIES) 192 198 193 libraries: 199 libraries: 194 200 195 201 … … 345 351 346 352 clean: 353 $(MAKE) -C pgapack clean 347 354 -test -z "$(BINARIES)" || rm -f $(BINARIES) 348 355 -rm -f *.$(OBJEXT) core *.core … … 350 357 351 358 distclean: clean 359 $(MAKE) -C pgapack distclean 352 360 -rm -f *.tab.c 353 361 -rm -f $(CONFIG_CLEAN_FILES) -
trunk/packages/optimizer/src/configure
r1049 r1052 595 595 PACKAGE_NAME='RapptureOptimizer' 596 596 PACKAGE_TARNAME='rapptureoptimizer' 597 PACKAGE_VERSION='1. 0'597 PACKAGE_VERSION='1.1' 598 598 PACKAGE_STRING='RapptureOptimizer 1.0' 599 599 PACKAGE_BUGREPORT='' … … 635 635 #endif" 636 636 637 enable_option_checking=no 637 638 ac_subst_vars='SHELL 638 639 PATH_SEPARATOR … … 715 716 EGREP 716 717 MATH_LIBS 718 F77 719 FFLAGS 720 ac_ct_F77 717 721 PKG_SOURCES 718 722 PKG_OBJECTS … … 745 749 EXACT_VERSION 746 750 NODOT_VERSION 751 subdirs 747 752 LTLIBOBJS' 748 753 ac_subst_files='' … … 771 776 CXXFLAGS 772 777 CCC 773 CPP' 774 778 CPP 779 F77 780 FFLAGS' 781 ac_subdirs_all='pgapack ' 775 782 776 783 # Initialize some variables set by options. … … 1422 1429 CXXFLAGS C++ compiler flags 1423 1430 CPP C preprocessor 1431 F77 Fortran 77 compiler command 1432 FFLAGS Fortran 77 compiler flags 1424 1433 1425 1434 Use these variables to override the choices made by `configure' or to help … … 7219 7228 fi 7220 7229 7230 ac_ext=f 7231 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7232 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7233 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7234 if test -n "$ac_tool_prefix"; then 7235 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7236 do 7237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7240 $as_echo_n "checking for $ac_word... " >&6; } 7241 if test "${ac_cv_prog_F77+set}" = set; then 7242 $as_echo_n "(cached) " >&6 7243 else 7244 if test -n "$F77"; then 7245 ac_cv_prog_F77="$F77" # Let the user override the test. 7246 else 7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7248 for as_dir in $PATH 7249 do 7250 IFS=$as_save_IFS 7251 test -z "$as_dir" && as_dir=. 7252 for ac_exec_ext in '' $ac_executable_extensions; do 7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7254 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7256 break 2 7257 fi 7258 done 7259 done 7260 IFS=$as_save_IFS 7261 7262 fi 7263 fi 7264 F77=$ac_cv_prog_F77 7265 if test -n "$F77"; then 7266 { $as_echo "$as_me:$LINENO: result: $F77" >&5 7267 $as_echo "$F77" >&6; } 7268 else 7269 { $as_echo "$as_me:$LINENO: result: no" >&5 7270 $as_echo "no" >&6; } 7271 fi 7272 7273 7274 test -n "$F77" && break 7275 done 7276 fi 7277 if test -z "$F77"; then 7278 ac_ct_F77=$F77 7279 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 7280 do 7281 # Extract the first word of "$ac_prog", so it can be a program name with args. 7282 set dummy $ac_prog; ac_word=$2 7283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7284 $as_echo_n "checking for $ac_word... " >&6; } 7285 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7286 $as_echo_n "(cached) " >&6 7287 else 7288 if test -n "$ac_ct_F77"; then 7289 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7290 else 7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292 for as_dir in $PATH 7293 do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7298 ac_cv_prog_ac_ct_F77="$ac_prog" 7299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302 done 7303 done 7304 IFS=$as_save_IFS 7305 7306 fi 7307 fi 7308 ac_ct_F77=$ac_cv_prog_ac_ct_F77 7309 if test -n "$ac_ct_F77"; then 7310 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7311 $as_echo "$ac_ct_F77" >&6; } 7312 else 7313 { $as_echo "$as_me:$LINENO: result: no" >&5 7314 $as_echo "no" >&6; } 7315 fi 7316 7317 7318 test -n "$ac_ct_F77" && break 7319 done 7320 7321 if test "x$ac_ct_F77" = x; then 7322 F77="" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325 yes:) 7326 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7327 whose name does not start with the host triplet. If you think this 7328 configuration is useful to you, please write to autoconf@gnu.org." >&5 7329 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7330 whose name does not start with the host triplet. If you think this 7331 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7332 ac_tool_warned=yes ;; 7333 esac 7334 F77=$ac_ct_F77 7335 fi 7336 fi 7337 7338 7339 # Provide some information about the compiler. 7340 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7341 set X $ac_compile 7342 ac_compiler=$2 7343 { (ac_try="$ac_compiler --version >&5" 7344 case "(($ac_try" in 7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7346 *) ac_try_echo=$ac_try;; 7347 esac 7348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7349 $as_echo "$ac_try_echo") >&5 7350 (eval "$ac_compiler --version >&5") 2>&5 7351 ac_status=$? 7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7353 (exit $ac_status); } 7354 { (ac_try="$ac_compiler -v >&5" 7355 case "(($ac_try" in 7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7357 *) ac_try_echo=$ac_try;; 7358 esac 7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7360 $as_echo "$ac_try_echo") >&5 7361 (eval "$ac_compiler -v >&5") 2>&5 7362 ac_status=$? 7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7364 (exit $ac_status); } 7365 { (ac_try="$ac_compiler -V >&5" 7366 case "(($ac_try" in 7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7368 *) ac_try_echo=$ac_try;; 7369 esac 7370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7371 $as_echo "$ac_try_echo") >&5 7372 (eval "$ac_compiler -V >&5") 2>&5 7373 ac_status=$? 7374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375 (exit $ac_status); } 7376 rm -f a.out 7377 7378 # If we don't use `.F' as extension, the preprocessor is not run on the 7379 # input file. (Note that this only needs to work for GNU compilers.) 7380 ac_save_ext=$ac_ext 7381 ac_ext=F 7382 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7383 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 7384 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7385 $as_echo_n "(cached) " >&6 7386 else 7387 cat >conftest.$ac_ext <<_ACEOF 7388 program main 7389 #ifndef __GNUC__ 7390 choke me 7391 #endif 7392 7393 end 7394 _ACEOF 7395 rm -f conftest.$ac_objext 7396 if { (ac_try="$ac_compile" 7397 case "(($ac_try" in 7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7399 *) ac_try_echo=$ac_try;; 7400 esac 7401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7402 $as_echo "$ac_try_echo") >&5 7403 (eval "$ac_compile") 2>conftest.er1 7404 ac_status=$? 7405 grep -v '^ *+' conftest.er1 >conftest.err 7406 rm -f conftest.er1 7407 cat conftest.err >&5 7408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7409 (exit $ac_status); } && { 7410 test -z "$ac_f77_werror_flag" || 7411 test ! -s conftest.err 7412 } && test -s conftest.$ac_objext; then 7413 ac_compiler_gnu=yes 7414 else 7415 $as_echo "$as_me: failed program was:" >&5 7416 sed 's/^/| /' conftest.$ac_ext >&5 7417 7418 ac_compiler_gnu=no 7419 fi 7420 7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7422 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7423 7424 fi 7425 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7426 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } 7427 ac_ext=$ac_save_ext 7428 ac_test_FFLAGS=${FFLAGS+set} 7429 ac_save_FFLAGS=$FFLAGS 7430 FFLAGS= 7431 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7432 $as_echo_n "checking whether $F77 accepts -g... " >&6; } 7433 if test "${ac_cv_prog_f77_g+set}" = set; then 7434 $as_echo_n "(cached) " >&6 7435 else 7436 FFLAGS=-g 7437 cat >conftest.$ac_ext <<_ACEOF 7438 program main 7439 7440 end 7441 _ACEOF 7442 rm -f conftest.$ac_objext 7443 if { (ac_try="$ac_compile" 7444 case "(($ac_try" in 7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7446 *) ac_try_echo=$ac_try;; 7447 esac 7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7449 $as_echo "$ac_try_echo") >&5 7450 (eval "$ac_compile") 2>conftest.er1 7451 ac_status=$? 7452 grep -v '^ *+' conftest.er1 >conftest.err 7453 rm -f conftest.er1 7454 cat conftest.err >&5 7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7456 (exit $ac_status); } && { 7457 test -z "$ac_f77_werror_flag" || 7458 test ! -s conftest.err 7459 } && test -s conftest.$ac_objext; then 7460 ac_cv_prog_f77_g=yes 7461 else 7462 $as_echo "$as_me: failed program was:" >&5 7463 sed 's/^/| /' conftest.$ac_ext >&5 7464 7465 ac_cv_prog_f77_g=no 7466 fi 7467 7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7469 7470 fi 7471 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7472 $as_echo "$ac_cv_prog_f77_g" >&6; } 7473 if test "$ac_test_FFLAGS" = set; then 7474 FFLAGS=$ac_save_FFLAGS 7475 elif test $ac_cv_prog_f77_g = yes; then 7476 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7477 FFLAGS="-g -O2" 7478 else 7479 FFLAGS="-g" 7480 fi 7481 else 7482 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7483 FFLAGS="-O2" 7484 else 7485 FFLAGS= 7486 fi 7487 fi 7488 7489 if test $ac_compiler_gnu = yes; then 7490 G77=yes 7491 else 7492 G77= 7493 fi 7494 ac_ext=c 7495 ac_cpp='$CPP $CPPFLAGS' 7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7499 7500 ac_ext=c 7501 ac_cpp='$CPP $CPPFLAGS' 7502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7504 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7505 if test -n "$ac_tool_prefix"; then 7506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 7507 set dummy ${ac_tool_prefix}gcc; ac_word=$2 7508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7509 $as_echo_n "checking for $ac_word... " >&6; } 7510 if test "${ac_cv_prog_CC+set}" = set; then 7511 $as_echo_n "(cached) " >&6 7512 else 7513 if test -n "$CC"; then 7514 ac_cv_prog_CC="$CC" # Let the user override the test. 7515 else 7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517 for as_dir in $PATH 7518 do 7519 IFS=$as_save_IFS 7520 test -z "$as_dir" && as_dir=. 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7523 ac_cv_prog_CC="${ac_tool_prefix}gcc" 7524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527 done 7528 done 7529 IFS=$as_save_IFS 7530 7531 fi 7532 fi 7533 CC=$ac_cv_prog_CC 7534 if test -n "$CC"; then 7535 { $as_echo "$as_me:$LINENO: result: $CC" >&5 7536 $as_echo "$CC" >&6; } 7537 else 7538 { $as_echo "$as_me:$LINENO: result: no" >&5 7539 $as_echo "no" >&6; } 7540 fi 7541 7542 7543 fi 7544 if test -z "$ac_cv_prog_CC"; then 7545 ac_ct_CC=$CC 7546 # Extract the first word of "gcc", so it can be a program name with args. 7547 set dummy gcc; ac_word=$2 7548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7549 $as_echo_n "checking for $ac_word... " >&6; } 7550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 7551 $as_echo_n "(cached) " >&6 7552 else 7553 if test -n "$ac_ct_CC"; then 7554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7555 else 7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7557 for as_dir in $PATH 7558 do 7559 IFS=$as_save_IFS 7560 test -z "$as_dir" && as_dir=. 7561 for ac_exec_ext in '' $ac_executable_extensions; do 7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7563 ac_cv_prog_ac_ct_CC="gcc" 7564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7565 break 2 7566 fi 7567 done 7568 done 7569 IFS=$as_save_IFS 7570 7571 fi 7572 fi 7573 ac_ct_CC=$ac_cv_prog_ac_ct_CC 7574 if test -n "$ac_ct_CC"; then 7575 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 7576 $as_echo "$ac_ct_CC" >&6; } 7577 else 7578 { $as_echo "$as_me:$LINENO: result: no" >&5 7579 $as_echo "no" >&6; } 7580 fi 7581 7582 if test "x$ac_ct_CC" = x; then 7583 CC="" 7584 else 7585 case $cross_compiling:$ac_tool_warned in 7586 yes:) 7587 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7588 whose name does not start with the host triplet. If you think this 7589 configuration is useful to you, please write to autoconf@gnu.org." >&5 7590 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7591 whose name does not start with the host triplet. If you think this 7592 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7593 ac_tool_warned=yes ;; 7594 esac 7595 CC=$ac_ct_CC 7596 fi 7597 else 7598 CC="$ac_cv_prog_CC" 7599 fi 7600 7601 if test -z "$CC"; then 7602 if test -n "$ac_tool_prefix"; then 7603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 7604 set dummy ${ac_tool_prefix}cc; ac_word=$2 7605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7606 $as_echo_n "checking for $ac_word... " >&6; } 7607 if test "${ac_cv_prog_CC+set}" = set; then 7608 $as_echo_n "(cached) " >&6 7609 else 7610 if test -n "$CC"; then 7611 ac_cv_prog_CC="$CC" # Let the user override the test. 7612 else 7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614 for as_dir in $PATH 7615 do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7620 ac_cv_prog_CC="${ac_tool_prefix}cc" 7621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624 done 7625 done 7626 IFS=$as_save_IFS 7627 7628 fi 7629 fi 7630 CC=$ac_cv_prog_CC 7631 if test -n "$CC"; then 7632 { $as_echo "$as_me:$LINENO: result: $CC" >&5 7633 $as_echo "$CC" >&6; } 7634 else 7635 { $as_echo "$as_me:$LINENO: result: no" >&5 7636 $as_echo "no" >&6; } 7637 fi 7638 7639 7640 fi 7641 fi 7642 if test -z "$CC"; then 7643 # Extract the first word of "cc", so it can be a program name with args. 7644 set dummy cc; ac_word=$2 7645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7646 $as_echo_n "checking for $ac_word... " >&6; } 7647 if test "${ac_cv_prog_CC+set}" = set; then 7648 $as_echo_n "(cached) " >&6 7649 else 7650 if test -n "$CC"; then 7651 ac_cv_prog_CC="$CC" # Let the user override the test. 7652 else 7653 ac_prog_rejected=no 7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655 for as_dir in $PATH 7656 do 7657 IFS=$as_save_IFS 7658 test -z "$as_dir" && as_dir=. 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 7662 ac_prog_rejected=yes 7663 continue 7664 fi 7665 ac_cv_prog_CC="cc" 7666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7667 break 2 7668 fi 7669 done 7670 done 7671 IFS=$as_save_IFS 7672 7673 if test $ac_prog_rejected = yes; then 7674 # We found a bogon in the path, so make sure we never use it. 7675 set dummy $ac_cv_prog_CC 7676 shift 7677 if test $# != 0; then 7678 # We chose a different compiler from the bogus one. 7679 # However, it has the same basename, so the bogon will be chosen 7680 # first if we set CC to just the basename; use the full file name. 7681 shift 7682 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 7683 fi 7684 fi 7685 fi 7686 fi 7687 CC=$ac_cv_prog_CC 7688 if test -n "$CC"; then 7689 { $as_echo "$as_me:$LINENO: result: $CC" >&5 7690 $as_echo "$CC" >&6; } 7691 else 7692 { $as_echo "$as_me:$LINENO: result: no" >&5 7693 $as_echo "no" >&6; } 7694 fi 7695 7696 7697 fi 7698 if test -z "$CC"; then 7699 if test -n "$ac_tool_prefix"; then 7700 for ac_prog in cl.exe 7701 do 7702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7703 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7705 $as_echo_n "checking for $ac_word... " >&6; } 7706 if test "${ac_cv_prog_CC+set}" = set; then 7707 $as_echo_n "(cached) " >&6 7708 else 7709 if test -n "$CC"; then 7710 ac_cv_prog_CC="$CC" # Let the user override the test. 7711 else 7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7713 for as_dir in $PATH 7714 do 7715 IFS=$as_save_IFS 7716 test -z "$as_dir" && as_dir=. 7717 for ac_exec_ext in '' $ac_executable_extensions; do 7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7719 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 7720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7721 break 2 7722 fi 7723 done 7724 done 7725 IFS=$as_save_IFS 7726 7727 fi 7728 fi 7729 CC=$ac_cv_prog_CC 7730 if test -n "$CC"; then 7731 { $as_echo "$as_me:$LINENO: result: $CC" >&5 7732 $as_echo "$CC" >&6; } 7733 else 7734 { $as_echo "$as_me:$LINENO: result: no" >&5 7735 $as_echo "no" >&6; } 7736 fi 7737 7738 7739 test -n "$CC" && break 7740 done 7741 fi 7742 if test -z "$CC"; then 7743 ac_ct_CC=$CC 7744 for ac_prog in cl.exe 7745 do 7746 # Extract the first word of "$ac_prog", so it can be a program name with args. 7747 set dummy $ac_prog; ac_word=$2 7748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7749 $as_echo_n "checking for $ac_word... " >&6; } 7750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 7751 $as_echo_n "(cached) " >&6 7752 else 7753 if test -n "$ac_ct_CC"; then 7754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 7755 else 7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757 for as_dir in $PATH 7758 do 7759 IFS=$as_save_IFS 7760 test -z "$as_dir" && as_dir=. 7761 for ac_exec_ext in '' $ac_executable_extensions; do 7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7763 ac_cv_prog_ac_ct_CC="$ac_prog" 7764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7765 break 2 7766 fi 7767 done 7768 done 7769 IFS=$as_save_IFS 7770 7771 fi 7772 fi 7773 ac_ct_CC=$ac_cv_prog_ac_ct_CC 7774 if test -n "$ac_ct_CC"; then 7775 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 7776 $as_echo "$ac_ct_CC" >&6; } 7777 else 7778 { $as_echo "$as_me:$LINENO: result: no" >&5 7779 $as_echo "no" >&6; } 7780 fi 7781 7782 7783 test -n "$ac_ct_CC" && break 7784 done 7785 7786 if test "x$ac_ct_CC" = x; then 7787 CC="" 7788 else 7789 case $cross_compiling:$ac_tool_warned in 7790 yes:) 7791 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7792 whose name does not start with the host triplet. If you think this 7793 configuration is useful to you, please write to autoconf@gnu.org." >&5 7794 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7795 whose name does not start with the host triplet. If you think this 7796 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7797 ac_tool_warned=yes ;; 7798 esac 7799 CC=$ac_ct_CC 7800 fi 7801 fi 7802 7803 fi 7804 7805 7806 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 7807 See \`config.log' for more details." >&5 7808 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 7809 See \`config.log' for more details." >&2;} 7810 { (exit 1); exit 1; }; } 7811 7812 # Provide some information about the compiler. 7813 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 7814 set X $ac_compile 7815 ac_compiler=$2 7816 { (ac_try="$ac_compiler --version >&5" 7817 case "(($ac_try" in 7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7819 *) ac_try_echo=$ac_try;; 7820 esac 7821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7822 $as_echo "$ac_try_echo") >&5 7823 (eval "$ac_compiler --version >&5") 2>&5 7824 ac_status=$? 7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7826 (exit $ac_status); } 7827 { (ac_try="$ac_compiler -v >&5" 7828 case "(($ac_try" in 7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7830 *) ac_try_echo=$ac_try;; 7831 esac 7832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7833 $as_echo "$ac_try_echo") >&5 7834 (eval "$ac_compiler -v >&5") 2>&5 7835 ac_status=$? 7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); } 7838 { (ac_try="$ac_compiler -V >&5" 7839 case "(($ac_try" in 7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7841 *) ac_try_echo=$ac_try;; 7842 esac 7843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7844 $as_echo "$ac_try_echo") >&5 7845 (eval "$ac_compiler -V >&5") 2>&5 7846 ac_status=$? 7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7848 (exit $ac_status); } 7849 7850 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 7851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 7852 if test "${ac_cv_c_compiler_gnu+set}" = set; then 7853 $as_echo_n "(cached) " >&6 7854 else 7855 cat >conftest.$ac_ext <<_ACEOF 7856 /* confdefs.h. */ 7857 _ACEOF 7858 cat confdefs.h >>conftest.$ac_ext 7859 cat >>conftest.$ac_ext <<_ACEOF 7860 /* end confdefs.h. */ 7861 7862 int 7863 main () 7864 { 7865 #ifndef __GNUC__ 7866 choke me 7867 #endif 7868 7869 ; 7870 return 0; 7871 } 7872 _ACEOF 7873 rm -f conftest.$ac_objext 7874 if { (ac_try="$ac_compile" 7875 case "(($ac_try" in 7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7877 *) ac_try_echo=$ac_try;; 7878 esac 7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7880 $as_echo "$ac_try_echo") >&5 7881 (eval "$ac_compile") 2>conftest.er1 7882 ac_status=$? 7883 grep -v '^ *+' conftest.er1 >conftest.err 7884 rm -f conftest.er1 7885 cat conftest.err >&5 7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 (exit $ac_status); } && { 7888 test -z "$ac_c_werror_flag" || 7889 test ! -s conftest.err 7890 } && test -s conftest.$ac_objext; then 7891 ac_compiler_gnu=yes 7892 else 7893 $as_echo "$as_me: failed program was:" >&5 7894 sed 's/^/| /' conftest.$ac_ext >&5 7895 7896 ac_compiler_gnu=no 7897 fi 7898 7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7900 ac_cv_c_compiler_gnu=$ac_compiler_gnu 7901 7902 fi 7903 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 7904 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 7905 if test $ac_compiler_gnu = yes; then 7906 GCC=yes 7907 else 7908 GCC= 7909 fi 7910 ac_test_CFLAGS=${CFLAGS+set} 7911 ac_save_CFLAGS=$CFLAGS 7912 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 7913 $as_echo_n "checking whether $CC accepts -g... " >&6; } 7914 if test "${ac_cv_prog_cc_g+set}" = set; then 7915 $as_echo_n "(cached) " >&6 7916 else 7917 ac_save_c_werror_flag=$ac_c_werror_flag 7918 ac_c_werror_flag=yes 7919 ac_cv_prog_cc_g=no 7920 CFLAGS="-g" 7921 cat >conftest.$ac_ext <<_ACEOF 7922 /* confdefs.h. */ 7923 _ACEOF 7924 cat confdefs.h >>conftest.$ac_ext 7925 cat >>conftest.$ac_ext <<_ACEOF 7926 /* end confdefs.h. */ 7927 7928 int 7929 main () 7930 { 7931 7932 ; 7933 return 0; 7934 } 7935 _ACEOF 7936 rm -f conftest.$ac_objext 7937 if { (ac_try="$ac_compile" 7938 case "(($ac_try" in 7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7940 *) ac_try_echo=$ac_try;; 7941 esac 7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7943 $as_echo "$ac_try_echo") >&5 7944 (eval "$ac_compile") 2>conftest.er1 7945 ac_status=$? 7946 grep -v '^ *+' conftest.er1 >conftest.err 7947 rm -f conftest.er1 7948 cat conftest.err >&5 7949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7950 (exit $ac_status); } && { 7951 test -z "$ac_c_werror_flag" || 7952 test ! -s conftest.err 7953 } && test -s conftest.$ac_objext; then 7954 ac_cv_prog_cc_g=yes 7955 else 7956 $as_echo "$as_me: failed program was:" >&5 7957 sed 's/^/| /' conftest.$ac_ext >&5 7958 7959 CFLAGS="" 7960 cat >conftest.$ac_ext <<_ACEOF 7961 /* confdefs.h. */ 7962 _ACEOF 7963 cat confdefs.h >>conftest.$ac_ext 7964 cat >>conftest.$ac_ext <<_ACEOF 7965 /* end confdefs.h. */ 7966 7967 int 7968 main () 7969 { 7970 7971 ; 7972 return 0; 7973 } 7974 _ACEOF 7975 rm -f conftest.$ac_objext 7976 if { (ac_try="$ac_compile" 7977 case "(($ac_try" in 7978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7979 *) ac_try_echo=$ac_try;; 7980 esac 7981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7982 $as_echo "$ac_try_echo") >&5 7983 (eval "$ac_compile") 2>conftest.er1 7984 ac_status=$? 7985 grep -v '^ *+' conftest.er1 >conftest.err 7986 rm -f conftest.er1 7987 cat conftest.err >&5 7988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7989 (exit $ac_status); } && { 7990 test -z "$ac_c_werror_flag" || 7991 test ! -s conftest.err 7992 } && test -s conftest.$ac_objext; then 7993 : 7994 else 7995 $as_echo "$as_me: failed program was:" >&5 7996 sed 's/^/| /' conftest.$ac_ext >&5 7997 7998 ac_c_werror_flag=$ac_save_c_werror_flag 7999 CFLAGS="-g" 8000 cat >conftest.$ac_ext <<_ACEOF 8001 /* confdefs.h. */ 8002 _ACEOF 8003 cat confdefs.h >>conftest.$ac_ext 8004 cat >>conftest.$ac_ext <<_ACEOF 8005 /* end confdefs.h. */ 8006 8007 int 8008 main () 8009 { 8010 8011 ; 8012 return 0; 8013 } 8014 _ACEOF 8015 rm -f conftest.$ac_objext 8016 if { (ac_try="$ac_compile" 8017 case "(($ac_try" in 8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8019 *) ac_try_echo=$ac_try;; 8020 esac 8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8022 $as_echo "$ac_try_echo") >&5 8023 (eval "$ac_compile") 2>conftest.er1 8024 ac_status=$? 8025 grep -v '^ *+' conftest.er1 >conftest.err 8026 rm -f conftest.er1 8027 cat conftest.err >&5 8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8029 (exit $ac_status); } && { 8030 test -z "$ac_c_werror_flag" || 8031 test ! -s conftest.err 8032 } && test -s conftest.$ac_objext; then 8033 ac_cv_prog_cc_g=yes 8034 else 8035 $as_echo "$as_me: failed program was:" >&5 8036 sed 's/^/| /' conftest.$ac_ext >&5 8037 8038 8039 fi 8040 8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8042 fi 8043 8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8045 fi 8046 8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8048 ac_c_werror_flag=$ac_save_c_werror_flag 8049 fi 8050 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 8051 $as_echo "$ac_cv_prog_cc_g" >&6; } 8052 if test "$ac_test_CFLAGS" = set; then 8053 CFLAGS=$ac_save_CFLAGS 8054 elif test $ac_cv_prog_cc_g = yes; then 8055 if test "$GCC" = yes; then 8056 CFLAGS="-g -O2" 8057 else 8058 CFLAGS="-g" 8059 fi 8060 else 8061 if test "$GCC" = yes; then 8062 CFLAGS="-O2" 8063 else 8064 CFLAGS= 8065 fi 8066 fi 8067 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 8068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 8069 if test "${ac_cv_prog_cc_c89+set}" = set; then 8070 $as_echo_n "(cached) " >&6 8071 else 8072 ac_cv_prog_cc_c89=no 8073 ac_save_CC=$CC 8074 cat >conftest.$ac_ext <<_ACEOF 8075 /* confdefs.h. */ 8076 _ACEOF 8077 cat confdefs.h >>conftest.$ac_ext 8078 cat >>conftest.$ac_ext <<_ACEOF 8079 /* end confdefs.h. */ 8080 #include <stdarg.h> 8081 #include <stdio.h> 8082 #include <sys/types.h> 8083 #include <sys/stat.h> 8084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8085 struct buf { int x; }; 8086 FILE * (*rcsopen) (struct buf *, struct stat *, int); 8087 static char *e (p, i) 8088 char **p; 8089 int i; 8090 { 8091 return p[i]; 8092 } 8093 static char *f (char * (*g) (char **, int), char **p, ...) 8094 { 8095 char *s; 8096 va_list v; 8097 va_start (v,p); 8098 s = g (p, va_arg (v,int)); 8099 va_end (v); 8100 return s; 8101 } 8102 8103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 8104 function prototypes and stuff, but not '\xHH' hex character constants. 8105 These don't provoke an error unfortunately, instead are silently treated 8106 as 'x'. The following induces an error, until -std is added to get 8107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 8108 array size at least. It's necessary to write '\x00'==0 to get something 8109 that's true only with -std. */ 8110 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 8111 8112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 8113 inside strings and character constants. */ 8114 #define FOO(x) 'x' 8115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 8116 8117 int test (int i, double x); 8118 struct s1 {int (*f) (int a);}; 8119 struct s2 {int (*f) (double a);}; 8120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8121 int argc; 8122 char **argv; 8123 int 8124 main () 8125 { 8126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8127 ; 8128 return 0; 8129 } 8130 _ACEOF 8131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 8132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8133 do 8134 CC="$ac_save_CC $ac_arg" 8135 rm -f conftest.$ac_objext 8136 if { (ac_try="$ac_compile" 8137 case "(($ac_try" in 8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8139 *) ac_try_echo=$ac_try;; 8140 esac 8141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8142 $as_echo "$ac_try_echo") >&5 8143 (eval "$ac_compile") 2>conftest.er1 8144 ac_status=$? 8145 grep -v '^ *+' conftest.er1 >conftest.err 8146 rm -f conftest.er1 8147 cat conftest.err >&5 8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8149 (exit $ac_status); } && { 8150 test -z "$ac_c_werror_flag" || 8151 test ! -s conftest.err 8152 } && test -s conftest.$ac_objext; then 8153 ac_cv_prog_cc_c89=$ac_arg 8154 else 8155 $as_echo "$as_me: failed program was:" >&5 8156 sed 's/^/| /' conftest.$ac_ext >&5 8157 8158 8159 fi 8160 8161 rm -f core conftest.err conftest.$ac_objext 8162 test "x$ac_cv_prog_cc_c89" != "xno" && break 8163 done 8164 rm -f conftest.$ac_ext 8165 CC=$ac_save_CC 8166 8167 fi 8168 # AC_CACHE_VAL 8169 case "x$ac_cv_prog_cc_c89" in 8170 x) 8171 { $as_echo "$as_me:$LINENO: result: none needed" >&5 8172 $as_echo "none needed" >&6; } ;; 8173 xno) 8174 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 8175 $as_echo "unsupported" >&6; } ;; 8176 *) 8177 CC="$CC $ac_cv_prog_cc_c89" 8178 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 8179 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 8180 esac 8181 8182 8183 ac_ext=c 8184 ac_cpp='$CPP $CPPFLAGS' 8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8188 8189 ac_ext=c 8190 ac_cpp='$CPP $CPPFLAGS' 8191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8193 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8194 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 8195 $as_echo_n "checking how to run the C preprocessor... " >&6; } 8196 # On Suns, sometimes $CPP names a directory. 8197 if test -n "$CPP" && test -d "$CPP"; then 8198 CPP= 8199 fi 8200 if test -z "$CPP"; then 8201 if test "${ac_cv_prog_CPP+set}" = set; then 8202 $as_echo_n "(cached) " >&6 8203 else 8204 # Double quotes because CPP needs to be expanded 8205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8206 do 8207 ac_preproc_ok=false 8208 for ac_c_preproc_warn_flag in '' yes 8209 do 8210 # Use a header file that comes with gcc, so configuring glibc 8211 # with a fresh cross-compiler works. 8212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8213 # <limits.h> exists even on freestanding compilers. 8214 # On the NeXT, cc -E runs the code through the compiler's parser, 8215 # not just through cpp. "Syntax error" is here to catch this case. 8216 cat >conftest.$ac_ext <<_ACEOF 8217 /* confdefs.h. */ 8218 _ACEOF 8219 cat confdefs.h >>conftest.$ac_ext 8220 cat >>conftest.$ac_ext <<_ACEOF 8221 /* end confdefs.h. */ 8222 #ifdef __STDC__ 8223 # include <limits.h> 8224 #else 8225 # include <assert.h> 8226 #endif 8227 Syntax error 8228 _ACEOF 8229 if { (ac_try="$ac_cpp conftest.$ac_ext" 8230 case "(($ac_try" in 8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8232 *) ac_try_echo=$ac_try;; 8233 esac 8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8235 $as_echo "$ac_try_echo") >&5 8236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8237 ac_status=$? 8238 grep -v '^ *+' conftest.er1 >conftest.err 8239 rm -f conftest.er1 8240 cat conftest.err >&5 8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 (exit $ac_status); } >/dev/null && { 8243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8244 test ! -s conftest.err 8245 }; then 8246 : 8247 else 8248 $as_echo "$as_me: failed program was:" >&5 8249 sed 's/^/| /' conftest.$ac_ext >&5 8250 8251 # Broken: fails on valid input. 8252 continue 8253 fi 8254 8255 rm -f conftest.err conftest.$ac_ext 8256 8257 # OK, works on sane cases. Now check whether nonexistent headers 8258 # can be detected and how. 8259 cat >conftest.$ac_ext <<_ACEOF 8260 /* confdefs.h. */ 8261 _ACEOF 8262 cat confdefs.h >>conftest.$ac_ext 8263 cat >>conftest.$ac_ext <<_ACEOF 8264 /* end confdefs.h. */ 8265 #include <ac_nonexistent.h> 8266 _ACEOF 8267 if { (ac_try="$ac_cpp conftest.$ac_ext" 8268 case "(($ac_try" in 8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8270 *) ac_try_echo=$ac_try;; 8271 esac 8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8273 $as_echo "$ac_try_echo") >&5 8274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8275 ac_status=$? 8276 grep -v '^ *+' conftest.er1 >conftest.err 8277 rm -f conftest.er1 8278 cat conftest.err >&5 8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8280 (exit $ac_status); } >/dev/null && { 8281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8282 test ! -s conftest.err 8283 }; then 8284 # Broken: success on invalid input. 8285 continue 8286 else 8287 $as_echo "$as_me: failed program was:" >&5 8288 sed 's/^/| /' conftest.$ac_ext >&5 8289 8290 # Passes both tests. 8291 ac_preproc_ok=: 8292 break 8293 fi 8294 8295 rm -f conftest.err conftest.$ac_ext 8296 8297 done 8298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8299 rm -f conftest.err conftest.$ac_ext 8300 if $ac_preproc_ok; then 8301 break 8302 fi 8303 8304 done 8305 ac_cv_prog_CPP=$CPP 8306 8307 fi 8308 CPP=$ac_cv_prog_CPP 8309 else 8310 ac_cv_prog_CPP=$CPP 8311 fi 8312 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 8313 $as_echo "$CPP" >&6; } 8314 ac_preproc_ok=false 8315 for ac_c_preproc_warn_flag in '' yes 8316 do 8317 # Use a header file that comes with gcc, so configuring glibc 8318 # with a fresh cross-compiler works. 8319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8320 # <limits.h> exists even on freestanding compilers. 8321 # On the NeXT, cc -E runs the code through the compiler's parser, 8322 # not just through cpp. "Syntax error" is here to catch this case. 8323 cat >conftest.$ac_ext <<_ACEOF 8324 /* confdefs.h. */ 8325 _ACEOF 8326 cat confdefs.h >>conftest.$ac_ext 8327 cat >>conftest.$ac_ext <<_ACEOF 8328 /* end confdefs.h. */ 8329 #ifdef __STDC__ 8330 # include <limits.h> 8331 #else 8332 # include <assert.h> 8333 #endif 8334 Syntax error 8335 _ACEOF 8336 if { (ac_try="$ac_cpp conftest.$ac_ext" 8337 case "(($ac_try" in 8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8339 *) ac_try_echo=$ac_try;; 8340 esac 8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8342 $as_echo "$ac_try_echo") >&5 8343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8344 ac_status=$? 8345 grep -v '^ *+' conftest.er1 >conftest.err 8346 rm -f conftest.er1 8347 cat conftest.err >&5 8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8349 (exit $ac_status); } >/dev/null && { 8350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8351 test ! -s conftest.err 8352 }; then 8353 : 8354 else 8355 $as_echo "$as_me: failed program was:" >&5 8356 sed 's/^/| /' conftest.$ac_ext >&5 8357 8358 # Broken: fails on valid input. 8359 continue 8360 fi 8361 8362 rm -f conftest.err conftest.$ac_ext 8363 8364 # OK, works on sane cases. Now check whether nonexistent headers 8365 # can be detected and how. 8366 cat >conftest.$ac_ext <<_ACEOF 8367 /* confdefs.h. */ 8368 _ACEOF 8369 cat confdefs.h >>conftest.$ac_ext 8370 cat >>conftest.$ac_ext <<_ACEOF 8371 /* end confdefs.h. */ 8372 #include <ac_nonexistent.h> 8373 _ACEOF 8374 if { (ac_try="$ac_cpp conftest.$ac_ext" 8375 case "(($ac_try" in 8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8377 *) ac_try_echo=$ac_try;; 8378 esac 8379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8380 $as_echo "$ac_try_echo") >&5 8381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8382 ac_status=$? 8383 grep -v '^ *+' conftest.er1 >conftest.err 8384 rm -f conftest.er1 8385 cat conftest.err >&5 8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8387 (exit $ac_status); } >/dev/null && { 8388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8389 test ! -s conftest.err 8390 }; then 8391 # Broken: success on invalid input. 8392 continue 8393 else 8394 $as_echo "$as_me: failed program was:" >&5 8395 sed 's/^/| /' conftest.$ac_ext >&5 8396 8397 # Passes both tests. 8398 ac_preproc_ok=: 8399 break 8400 fi 8401 8402 rm -f conftest.err conftest.$ac_ext 8403 8404 done 8405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8406 rm -f conftest.err conftest.$ac_ext 8407 if $ac_preproc_ok; then 8408 : 8409 else 8410 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 8411 See \`config.log' for more details." >&5 8412 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 8413 See \`config.log' for more details." >&2;} 8414 { (exit 1); exit 1; }; } 8415 fi 8416 8417 ac_ext=c 8418 ac_cpp='$CPP $CPPFLAGS' 8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8422 8423 ac_ext=cpp 8424 ac_cpp='$CXXCPP $CPPFLAGS' 8425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8428 if test -z "$CXX"; then 8429 if test -n "$CCC"; then 8430 CXX=$CCC 8431 else 8432 if test -n "$ac_tool_prefix"; then 8433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 8434 do 8435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8438 $as_echo_n "checking for $ac_word... " >&6; } 8439 if test "${ac_cv_prog_CXX+set}" = set; then 8440 $as_echo_n "(cached) " >&6 8441 else 8442 if test -n "$CXX"; then 8443 ac_cv_prog_CXX="$CXX" # Let the user override the test. 8444 else 8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8446 for as_dir in $PATH 8447 do 8448 IFS=$as_save_IFS 8449 test -z "$as_dir" && as_dir=. 8450 for ac_exec_ext in '' $ac_executable_extensions; do 8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8452 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 8453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8454 break 2 8455 fi 8456 done 8457 done 8458 IFS=$as_save_IFS 8459 8460 fi 8461 fi 8462 CXX=$ac_cv_prog_CXX 8463 if test -n "$CXX"; then 8464 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 8465 $as_echo "$CXX" >&6; } 8466 else 8467 { $as_echo "$as_me:$LINENO: result: no" >&5 8468 $as_echo "no" >&6; } 8469 fi 8470 8471 8472 test -n "$CXX" && break 8473 done 8474 fi 8475 if test -z "$CXX"; then 8476 ac_ct_CXX=$CXX 8477 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 8478 do 8479 # Extract the first word of "$ac_prog", so it can be a program name with args. 8480 set dummy $ac_prog; ac_word=$2 8481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8482 $as_echo_n "checking for $ac_word... " >&6; } 8483 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 8484 $as_echo_n "(cached) " >&6 8485 else 8486 if test -n "$ac_ct_CXX"; then 8487 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 8488 else 8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490 for as_dir in $PATH 8491 do 8492 IFS=$as_save_IFS 8493 test -z "$as_dir" && as_dir=. 8494 for ac_exec_ext in '' $ac_executable_extensions; do 8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8496 ac_cv_prog_ac_ct_CXX="$ac_prog" 8497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8498 break 2 8499 fi 8500 done 8501 done 8502 IFS=$as_save_IFS 8503 8504 fi 8505 fi 8506 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 8507 if test -n "$ac_ct_CXX"; then 8508 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 8509 $as_echo "$ac_ct_CXX" >&6; } 8510 else 8511 { $as_echo "$as_me:$LINENO: result: no" >&5 8512 $as_echo "no" >&6; } 8513 fi 8514 8515 8516 test -n "$ac_ct_CXX" && break 8517 done 8518 8519 if test "x$ac_ct_CXX" = x; then 8520 CXX="g++" 8521 else 8522 case $cross_compiling:$ac_tool_warned in 8523 yes:) 8524 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8525 whose name does not start with the host triplet. If you think this 8526 configuration is useful to you, please write to autoconf@gnu.org." >&5 8527 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8528 whose name does not start with the host triplet. If you think this 8529 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8530 ac_tool_warned=yes ;; 8531 esac 8532 CXX=$ac_ct_CXX 8533 fi 8534 fi 8535 8536 fi 8537 fi 8538 # Provide some information about the compiler. 8539 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 8540 set X $ac_compile 8541 ac_compiler=$2 8542 { (ac_try="$ac_compiler --version >&5" 8543 case "(($ac_try" in 8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8545 *) ac_try_echo=$ac_try;; 8546 esac 8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8548 $as_echo "$ac_try_echo") >&5 8549 (eval "$ac_compiler --version >&5") 2>&5 8550 ac_status=$? 8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 (exit $ac_status); } 8553 { (ac_try="$ac_compiler -v >&5" 8554 case "(($ac_try" in 8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8556 *) ac_try_echo=$ac_try;; 8557 esac 8558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8559 $as_echo "$ac_try_echo") >&5 8560 (eval "$ac_compiler -v >&5") 2>&5 8561 ac_status=$? 8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8563 (exit $ac_status); } 8564 { (ac_try="$ac_compiler -V >&5" 8565 case "(($ac_try" in 8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8567 *) ac_try_echo=$ac_try;; 8568 esac 8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8570 $as_echo "$ac_try_echo") >&5 8571 (eval "$ac_compiler -V >&5") 2>&5 8572 ac_status=$? 8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 (exit $ac_status); } 8575 8576 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 8577 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 8578 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 8579 $as_echo_n "(cached) " >&6 8580 else 8581 cat >conftest.$ac_ext <<_ACEOF 8582 /* confdefs.h. */ 8583 _ACEOF 8584 cat confdefs.h >>conftest.$ac_ext 8585 cat >>conftest.$ac_ext <<_ACEOF 8586 /* end confdefs.h. */ 8587 8588 int 8589 main () 8590 { 8591 #ifndef __GNUC__ 8592 choke me 8593 #endif 8594 8595 ; 8596 return 0; 8597 } 8598 _ACEOF 8599 rm -f conftest.$ac_objext 8600 if { (ac_try="$ac_compile" 8601 case "(($ac_try" in 8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8603 *) ac_try_echo=$ac_try;; 8604 esac 8605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8606 $as_echo "$ac_try_echo") >&5 8607 (eval "$ac_compile") 2>conftest.er1 8608 ac_status=$? 8609 grep -v '^ *+' conftest.er1 >conftest.err 8610 rm -f conftest.er1 8611 cat conftest.err >&5 8612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); } && { 8614 test -z "$ac_cxx_werror_flag" || 8615 test ! -s conftest.err 8616 } && test -s conftest.$ac_objext; then 8617 ac_compiler_gnu=yes 8618 else 8619 $as_echo "$as_me: failed program was:" >&5 8620 sed 's/^/| /' conftest.$ac_ext >&5 8621 8622 ac_compiler_gnu=no 8623 fi 8624 8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8627 8628 fi 8629 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8630 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 8631 if test $ac_compiler_gnu = yes; then 8632 GXX=yes 8633 else 8634 GXX= 8635 fi 8636 ac_test_CXXFLAGS=${CXXFLAGS+set} 8637 ac_save_CXXFLAGS=$CXXFLAGS 8638 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8639 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 8640 if test "${ac_cv_prog_cxx_g+set}" = set; then 8641 $as_echo_n "(cached) " >&6 8642 else 8643 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 8644 ac_cxx_werror_flag=yes 8645 ac_cv_prog_cxx_g=no 8646 CXXFLAGS="-g" 8647 cat >conftest.$ac_ext <<_ACEOF 8648 /* confdefs.h. */ 8649 _ACEOF 8650 cat confdefs.h >>conftest.$ac_ext 8651 cat >>conftest.$ac_ext <<_ACEOF 8652 /* end confdefs.h. */ 8653 8654 int 8655 main () 8656 { 8657 8658 ; 8659 return 0; 8660 } 8661 _ACEOF 8662 rm -f conftest.$ac_objext 8663 if { (ac_try="$ac_compile" 8664 case "(($ac_try" in 8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8666 *) ac_try_echo=$ac_try;; 8667 esac 8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8669 $as_echo "$ac_try_echo") >&5 8670 (eval "$ac_compile") 2>conftest.er1 8671 ac_status=$? 8672 grep -v '^ *+' conftest.er1 >conftest.err 8673 rm -f conftest.er1 8674 cat conftest.err >&5 8675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8676 (exit $ac_status); } && { 8677 test -z "$ac_cxx_werror_flag" || 8678 test ! -s conftest.err 8679 } && test -s conftest.$ac_objext; then 8680 ac_cv_prog_cxx_g=yes 8681 else 8682 $as_echo "$as_me: failed program was:" >&5 8683 sed 's/^/| /' conftest.$ac_ext >&5 8684 8685 CXXFLAGS="" 8686 cat >conftest.$ac_ext <<_ACEOF 8687 /* confdefs.h. */ 8688 _ACEOF 8689 cat confdefs.h >>conftest.$ac_ext 8690 cat >>conftest.$ac_ext <<_ACEOF 8691 /* end confdefs.h. */ 8692 8693 int 8694 main () 8695 { 8696 8697 ; 8698 return 0; 8699 } 8700 _ACEOF 8701 rm -f conftest.$ac_objext 8702 if { (ac_try="$ac_compile" 8703 case "(($ac_try" in 8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8705 *) ac_try_echo=$ac_try;; 8706 esac 8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8708 $as_echo "$ac_try_echo") >&5 8709 (eval "$ac_compile") 2>conftest.er1 8710 ac_status=$? 8711 grep -v '^ *+' conftest.er1 >conftest.err 8712 rm -f conftest.er1 8713 cat conftest.err >&5 8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8715 (exit $ac_status); } && { 8716 test -z "$ac_cxx_werror_flag" || 8717 test ! -s conftest.err 8718 } && test -s conftest.$ac_objext; then 8719 : 8720 else 8721 $as_echo "$as_me: failed program was:" >&5 8722 sed 's/^/| /' conftest.$ac_ext >&5 8723 8724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8725 CXXFLAGS="-g" 8726 cat >conftest.$ac_ext <<_ACEOF 8727 /* confdefs.h. */ 8728 _ACEOF 8729 cat confdefs.h >>conftest.$ac_ext 8730 cat >>conftest.$ac_ext <<_ACEOF 8731 /* end confdefs.h. */ 8732 8733 int 8734 main () 8735 { 8736 8737 ; 8738 return 0; 8739 } 8740 _ACEOF 8741 rm -f conftest.$ac_objext 8742 if { (ac_try="$ac_compile" 8743 case "(($ac_try" in 8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8745 *) ac_try_echo=$ac_try;; 8746 esac 8747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8748 $as_echo "$ac_try_echo") >&5 8749 (eval "$ac_compile") 2>conftest.er1 8750 ac_status=$? 8751 grep -v '^ *+' conftest.er1 >conftest.err 8752 rm -f conftest.er1 8753 cat conftest.err >&5 8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8755 (exit $ac_status); } && { 8756 test -z "$ac_cxx_werror_flag" || 8757 test ! -s conftest.err 8758 } && test -s conftest.$ac_objext; then 8759 ac_cv_prog_cxx_g=yes 8760 else 8761 $as_echo "$as_me: failed program was:" >&5 8762 sed 's/^/| /' conftest.$ac_ext >&5 8763 8764 8765 fi 8766 8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8768 fi 8769 8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8771 fi 8772 8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8774 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8775 fi 8776 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8777 $as_echo "$ac_cv_prog_cxx_g" >&6; } 8778 if test "$ac_test_CXXFLAGS" = set; then 8779 CXXFLAGS=$ac_save_CXXFLAGS 8780 elif test $ac_cv_prog_cxx_g = yes; then 8781 if test "$GXX" = yes; then 8782 CXXFLAGS="-g -O2" 8783 else 8784 CXXFLAGS="-g" 8785 fi 8786 else 8787 if test "$GXX" = yes; then 8788 CXXFLAGS="-O2" 8789 else 8790 CXXFLAGS= 8791 fi 8792 fi 8793 ac_ext=c 8794 ac_cpp='$CPP $CPPFLAGS' 8795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7221 8798 7222 8799 #----------------------------------------------------------------------- … … 7278 8855 7279 8856 7280 vars="-I pgapack/pgapack/include"8857 vars="-I\$(srcdir)/pgapack/pgapack/include" 7281 8858 for i in $vars; do 7282 8859 PKG_INCLUDES="$PKG_INCLUDES $i" … … 10809 12386 10810 12387 10811 #AC_CONFIG_SUBDIRS( [pgapack/gekco/pgapack] ) 12388 12389 12390 subdirs="$subdirs pgapack" 12391 12392 10812 12393 #-------------------------------------------------------------------- 10813 12394 # Finally, substitute all of the various values into the Makefile. … … 11923 13504 $ac_cs_success || { (exit 1); exit 1; } 11924 13505 fi 13506 13507 # 13508 # CONFIG_SUBDIRS section. 13509 # 13510 if test "$no_recursion" != yes; then 13511 13512 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 13513 # so they do not pile up. 13514 ac_sub_configure_args= 13515 ac_prev= 13516 eval "set x $ac_configure_args" 13517 shift 13518 for ac_arg 13519 do 13520 if test -n "$ac_prev"; then 13521 ac_prev= 13522 continue 13523 fi 13524 case $ac_arg in 13525 -cache-file | --cache-file | --cache-fil | --cache-fi \ 13526 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 13527 ac_prev=cache_file ;; 13528 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 13529 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 13530 | --c=*) 13531 ;; 13532 --config-cache | -C) 13533 ;; 13534 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 13535 ac_prev=srcdir ;; 13536 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 13537 ;; 13538 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 13539 ac_prev=prefix ;; 13540 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 13541 ;; 13542 --disable-option-checking) 13543 ;; 13544 *) 13545 case $ac_arg in 13546 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 13547 esac 13548 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 13549 esac 13550 done 13551 13552 # Always prepend --prefix to ensure using the same prefix 13553 # in subdir configurations. 13554 ac_arg="--prefix=$prefix" 13555 case $ac_arg in 13556 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 13557 esac 13558 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 13559 13560 # Pass --silent 13561 if test "$silent" = yes; then 13562 ac_sub_configure_args="--silent $ac_sub_configure_args" 13563 fi 13564 13565 # Always prepend --disable-option-checking to silence warnings, since 13566 # different subdirs can have different --enable and --with options. 13567 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 13568 13569 ac_popdir=`pwd` 13570 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 13571 13572 # Do not complain, so a configure script can configure whichever 13573 # parts of a large source tree are present. 13574 test -d "$srcdir/$ac_dir" || continue 13575 13576 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 13577 $as_echo "$as_me:$LINENO: $ac_msg" >&5 13578 $as_echo "$ac_msg" >&6 13579 { as_dir="$ac_dir" 13580 case $as_dir in #( 13581 -*) as_dir=./$as_dir;; 13582 esac 13583 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13584 as_dirs= 13585 while :; do 13586 case $as_dir in #( 13587 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13588 *) as_qdir=$as_dir;; 13589 esac 13590 as_dirs="'$as_qdir' $as_dirs" 13591 as_dir=`$as_dirname -- "$as_dir" || 13592 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13593 X"$as_dir" : 'X\(//\)[^/]' \| \ 13594 X"$as_dir" : 'X\(//\)$' \| \ 13595 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13596 $as_echo X"$as_dir" | 13597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13598 s//\1/ 13599 q 13600 } 13601 /^X\(\/\/\)[^/].*/{ 13602 s//\1/ 13603 q 13604 } 13605 /^X\(\/\/\)$/{ 13606 s//\1/ 13607 q 13608 } 13609 /^X\(\/\).*/{ 13610 s//\1/ 13611 q 13612 } 13613 s/.*/./; q'` 13614 test -d "$as_dir" && break 13615 done 13616 test -z "$as_dirs" || eval "mkdir $as_dirs" 13617 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13618 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13619 { (exit 1); exit 1; }; }; } 13620 ac_builddir=. 13621 13622 case "$ac_dir" in 13623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13624 *) 13625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13626 # A ".." for each directory in $ac_dir_suffix. 13627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13628 case $ac_top_builddir_sub in 13629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13631 esac ;; 13632 esac 13633 ac_abs_top_builddir=$ac_pwd 13634 ac_abs_builddir=$ac_pwd$ac_dir_suffix 13635 # for backward compatibility: 13636 ac_top_builddir=$ac_top_build_prefix 13637 13638 case $srcdir in 13639 .) # We are building in place. 13640 ac_srcdir=. 13641 ac_top_srcdir=$ac_top_builddir_sub 13642 ac_abs_top_srcdir=$ac_pwd ;; 13643 [\\/]* | ?:[\\/]* ) # Absolute name. 13644 ac_srcdir=$srcdir$ac_dir_suffix; 13645 ac_top_srcdir=$srcdir 13646 ac_abs_top_srcdir=$srcdir ;; 13647 *) # Relative name. 13648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13649 ac_top_srcdir=$ac_top_build_prefix$srcdir 13650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13651 esac 13652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13653 13654 13655 cd "$ac_dir" 13656 13657 # Check for guested configure; otherwise get Cygnus style configure. 13658 if test -f "$ac_srcdir/configure.gnu"; then 13659 ac_sub_configure=$ac_srcdir/configure.gnu 13660 elif test -f "$ac_srcdir/configure"; then 13661 ac_sub_configure=$ac_srcdir/configure 13662 elif test -f "$ac_srcdir/configure.in"; then 13663 # This should be Cygnus configure. 13664 ac_sub_configure=$ac_aux_dir/configure 13665 else 13666 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 13667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 13668 ac_sub_configure= 13669 fi 13670 13671 # The recursion is here. 13672 if test -n "$ac_sub_configure"; then 13673 # Make the cache file name correct relative to the subdirectory. 13674 case $cache_file in 13675 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 13676 *) # Relative name. 13677 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 13678 esac 13679 13680 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 13681 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 13682 # The eval makes quoting arguments work. 13683 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 13684 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 13685 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 13686 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 13687 { (exit 1); exit 1; }; } 13688 fi 13689 13690 cd "$ac_popdir" 13691 done 13692 fi 11925 13693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11926 13694 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 -
trunk/packages/optimizer/src/configure.in
r1049 r1052 61 61 62 62 TEA_SETUP_COMPILER 63 63 AC_PROG_F77 64 AC_PROG_CC 65 AC_PROG_CPP 66 AC_PROG_CXX 64 67 #----------------------------------------------------------------------- 65 68 # __CHANGE__ … … 74 77 TEA_ADD_SOURCES([rp_optimizer.c rp_tcloptions.c rp_optimizer_tcl.c plugin_pgapack.c]) 75 78 TEA_ADD_HEADERS([]) 76 TEA_ADD_INCLUDES([-I pgapack/pgapack/include])79 TEA_ADD_INCLUDES([-I\$(srcdir)/pgapack/pgapack/include]) 77 80 TEA_ADD_CFLAGS([-DWL=32]) 78 81 TEA_ADD_STUB_SOURCES([]) … … 194 197 AC_SUBST(NODOT_VERSION) 195 198 196 #AC_CONFIG_SUBDIRS( [pgapack/gekco/pgapack] ) 199 AC_CONFIG_SUBDIRS( [pgapack] ) 200 197 201 #-------------------------------------------------------------------- 198 202 # Finally, substitute all of the various values into the Makefile.
Note: See TracChangeset
for help on using the changeset viewer.