- Timestamp:
- Jul 16, 2014 4:41:16 PM (10 years ago)
- Location:
- branches/1.3/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/configure
r2117 r4516 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 4 for RapptureGUI 1.1.3 # Generated by GNU Autoconf 2.69 for RapptureGUI 1.4. 4 4 # 5 5 # Report bugs to <rappture@nanohub.org>. 6 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software9 # Foundation, Inc.7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 10 # 11 11 # This configure script is free software; the Free Software Foundation … … 90 90 91 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 92 93 case $0 in #(( 93 94 *[\\/]* ) as_myself=$0 ;; … … 134 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 136 162 if test "x$CONFIG_SHELL" = x; then 137 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : … … 167 193 exitcode=1; echo positional parameters were not saved. 168 194 fi 169 test x\$exitcode = x0 || exit 1" 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 170 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 test \$(( 1 + 1 )) = 2 || exit 1" 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 175 201 if (eval "$as_required") 2>/dev/null; then : 176 202 as_have_required=yes … … 212 238 213 239 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242 # neutralization value for shells without unset; and this also 243 # works around shells that cannot unset nonexistent variables. 244 # Preserve -v and -x to the replacement shell. 245 BASH_ENV=/dev/null 246 ENV=/dev/null 247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248 case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253 esac 254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255 # Admittedly, this is quite paranoid, since all the known shells bail 256 # out after a failed `exec'. 257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258 exit 255 222 259 fi 223 260 … … 318 355 done 319 356 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 321 358 322 359 323 360 } # as_fn_mkdir_p 361 362 # as_fn_executable_p FILE 363 # ----------------------- 364 # Test if FILE is an executable regular file. 365 as_fn_executable_p () 366 { 367 test -f "$1" && test -x "$1" 368 } # as_fn_executable_p 324 369 # as_fn_append VAR VALUE 325 370 # ---------------------- … … 358 403 359 404 360 # as_fn_error ERROR [LINENO LOG_FD]361 # --------------------------------- 405 # as_fn_error STATUS ERROR [LINENO LOG_FD] 406 # ---------------------------------------- 362 407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363 408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364 # script with status $?, using 1 if that was 0.409 # script with STATUS, using 1 if that was 0. 365 410 as_fn_error () 366 411 { 367 as_status=$ ?; test $as_status -eq 0 && as_status=1368 if test "$ 3"; then369 as_lineno=${as_lineno-"$ 2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 1" >&$3412 as_status=$1; test $as_status -eq 0 && as_status=1 413 if test "$4"; then 414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 371 416 fi 372 $as_echo "$as_me: error: $ 1" >&2417 $as_echo "$as_me: error: $2" >&2 373 418 as_fn_exit $as_status 374 419 } # as_fn_error … … 443 488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 444 489 490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 491 # already done that, so ensure we don't try to do so again and fall 492 # in an infinite loop. This has already happened in practice. 493 _as_can_reexec=no; export _as_can_reexec 445 494 # Don't try to exec as it changes $[0], causing all sort of problems 446 495 # (the dirname of $[0] is not the place where we might find the … … 477 526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 478 527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 479 # In both cases, we have to default to `cp -p '.528 # In both cases, we have to default to `cp -pR'. 480 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 481 as_ln_s='cp -p '530 as_ln_s='cp -pR' 482 531 elif ln conf$$.file conf$$ 2>/dev/null; then 483 532 as_ln_s=ln 484 533 else 485 as_ln_s='cp -p '534 as_ln_s='cp -pR' 486 535 fi 487 536 else 488 as_ln_s='cp -p '537 as_ln_s='cp -pR' 489 538 fi 490 539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 498 547 fi 499 548 500 if test -x / >/dev/null 2>&1; then 501 as_test_x='test -x' 502 else 503 if ls -dL / >/dev/null 2>&1; then 504 as_ls_L_option=L 505 else 506 as_ls_L_option= 507 fi 508 as_test_x=' 509 eval sh -c '\'' 510 if test -d "$1"; then 511 test -d "$1/."; 512 else 513 case $1 in #( 514 -*)set "./$1";; 515 esac; 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 517 ???[sx]*):;;*)false;;esac;fi 518 '\'' sh 519 ' 520 fi 521 as_executable_p=$as_test_x 549 as_test_x='test -x' 550 as_executable_p=as_fn_executable_p 522 551 523 552 # Sed expression to map a string onto a valid CPP name. … … 528 557 529 558 530 exec 7<&0 </dev/null 6>&1 559 test -n "$DJDIR" || exec 7<&0 </dev/null 560 exec 6>&1 531 561 532 562 # Name of the host. 533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534 564 # so uname gets run too. 535 565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` … … 550 580 PACKAGE_NAME='RapptureGUI' 551 581 PACKAGE_TARNAME='rappturegui' 552 PACKAGE_VERSION='1. 1'553 PACKAGE_STRING='RapptureGUI 1. 1'582 PACKAGE_VERSION='1.4' 583 PACKAGE_STRING='RapptureGUI 1.4' 554 584 PACKAGE_BUGREPORT='rappture@nanohub.org' 555 585 PACKAGE_URL='' 556 586 557 # Factoring default headers for most tests.558 ac_includes_default="\559 #include <stdio.h>560 #ifdef HAVE_SYS_TYPES_H561 # include <sys/types.h>562 #endif563 #ifdef HAVE_SYS_STAT_H564 # include <sys/stat.h>565 #endif566 #ifdef STDC_HEADERS567 # include <stdlib.h>568 # include <stddef.h>569 #else570 # ifdef HAVE_STDLIB_H571 # include <stdlib.h>572 # endif573 #endif574 #ifdef HAVE_STRING_H575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H576 # include <memory.h>577 # endif578 # include <string.h>579 #endif580 #ifdef HAVE_STRINGS_H581 # include <strings.h>582 #endif583 #ifdef HAVE_INTTYPES_H584 # include <inttypes.h>585 #endif586 #ifdef HAVE_STDINT_H587 # include <stdint.h>588 #endif589 #ifdef HAVE_UNISTD_H590 # include <unistd.h>591 #endif"592 593 587 ac_subst_vars='LTLIBOBJS 594 588 LIBOBJS 589 TCL_SHLIB_SUFFIX 590 TCL_SHLIB_LDFLAGS 591 TCL_SHLIB_CFLAGS 592 TCL_SHLIB_LD 593 TCL_STLIB_LD 594 TCL_CFLAGS_OPTIMIZE 595 TCL_CFLAGS_DEBUG 595 596 TK_VERSION 597 TK_XLIBSW 598 TK_LIB_SPEC 599 TK_INC_SPEC 600 TCL_VERSION 596 601 TCL_LIB_SPEC 597 602 TCL_INC_SPEC 598 TCL_VERSION599 603 TCLSH 600 604 ENABLE_GUI 601 605 MAKE 602 SHLIB_LDFLAGS603 INSTALL_STUB_LIB604 INSTALL_LIB605 MAKE_STUB_LIB606 MAKE_LIB607 SHLIB_SUFFIX608 SHLIB_CFLAGS609 SHLIB_LD_LIBS610 TK_SHLIB_LD_EXTRAS611 TCL_SHLIB_LD_EXTRAS612 SHLIB_LD613 STLIB_LD614 LD_SEARCH_FLAGS615 CC_SEARCH_FLAGS616 LDFLAGS_OPTIMIZE617 LDFLAGS_DEBUG618 CFLAGS_WARNING619 CFLAGS_OPTIMIZE620 CFLAGS_DEBUG621 PLAT_SRCS622 PLAT_OBJS623 DL_OBJS624 DL_LIBS625 EGREP626 GREP627 CPP628 AR629 606 OBJEXT 630 607 EXEEXT … … 695 672 ac_user_opts=' 696 673 enable_option_checking 697 enable_64bit698 enable_64bit_vis699 enable_corefoundation700 enable_load701 enable_shared702 674 enable_gui 703 675 with_tclsh … … 710 682 LDFLAGS 711 683 LIBS 712 CPPFLAGS 713 CPP' 684 CPPFLAGS' 714 685 715 686 … … 774 745 775 746 case $ac_option in 776 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 777 *) ac_optarg=yes ;; 747 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 748 *=) ac_optarg= ;; 749 *) ac_optarg=yes ;; 778 750 esac 779 751 … … 820 792 # Reject names that are not valid shell variable names. 821 793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 822 as_fn_error "invalid feature name: $ac_useropt"794 as_fn_error $? "invalid feature name: $ac_useropt" 823 795 ac_useropt_orig=$ac_useropt 824 796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 846 818 # Reject names that are not valid shell variable names. 847 819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 848 as_fn_error "invalid feature name: $ac_useropt"820 as_fn_error $? "invalid feature name: $ac_useropt" 849 821 ac_useropt_orig=$ac_useropt 850 822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1050 1022 # Reject names that are not valid shell variable names. 1051 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1052 as_fn_error "invalid package name: $ac_useropt"1024 as_fn_error $? "invalid package name: $ac_useropt" 1053 1025 ac_useropt_orig=$ac_useropt 1054 1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1066 1038 # Reject names that are not valid shell variable names. 1067 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 as_fn_error "invalid package name: $ac_useropt"1040 as_fn_error $? "invalid package name: $ac_useropt" 1069 1041 ac_useropt_orig=$ac_useropt 1070 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1096 1068 x_libraries=$ac_optarg ;; 1097 1069 1098 -*) as_fn_error "unrecognized option: \`$ac_option'1099 Try \`$0 --help' for more information ."1070 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1071 Try \`$0 --help' for more information" 1100 1072 ;; 1101 1073 … … 1105 1077 case $ac_envvar in #( 1106 1078 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1107 as_fn_error "invalid variable name: \`$ac_envvar'" ;;1079 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1108 1080 esac 1109 1081 eval $ac_envvar=\$ac_optarg … … 1115 1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1116 1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1117 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1089 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1118 1090 ;; 1119 1091 … … 1123 1095 if test -n "$ac_prev"; then 1124 1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1125 as_fn_error "missing argument to $ac_option"1097 as_fn_error $? "missing argument to $ac_option" 1126 1098 fi 1127 1099 … … 1129 1101 case $enable_option_checking in 1130 1102 no) ;; 1131 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;1103 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1132 1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1133 1105 esac … … 1152 1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1153 1125 esac 1154 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"1126 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1155 1127 done 1156 1128 … … 1166 1138 if test "x$build_alias" = x; then 1167 1139 cross_compiling=maybe 1168 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1169 If a cross compiler is detected then cross compile mode will be used." >&21170 1140 elif test "x$build_alias" != "x$host_alias"; then 1171 1141 cross_compiling=yes … … 1182 1152 ac_ls_di=`ls -di .` && 1183 1153 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1184 as_fn_error "working directory cannot be determined"1154 as_fn_error $? "working directory cannot be determined" 1185 1155 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1186 as_fn_error "pwd does not report name of working directory"1156 as_fn_error $? "pwd does not report name of working directory" 1187 1157 1188 1158 … … 1223 1193 if test ! -r "$srcdir/$ac_unique_file"; then 1224 1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1225 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"1195 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1226 1196 fi 1227 1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1228 1198 ac_abs_confdir=`( 1229 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1230 1200 pwd)` 1231 1201 # When building in place, set srcdir=. … … 1253 1223 # This message is too long to be a string in the A/UX 3.1 sh. 1254 1224 cat <<_ACEOF 1255 \`configure' configures RapptureGUI 1. 1to adapt to many kinds of systems.1225 \`configure' configures RapptureGUI 1.4 to adapt to many kinds of systems. 1256 1226 1257 1227 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1267 1237 --help=recursive display the short help of all the included packages 1268 1238 -V, --version display version information and exit 1269 -q, --quiet, --silent do not print \`checking ...' messages1239 -q, --quiet, --silent do not print \`checking ...' messages 1270 1240 --cache-file=FILE cache test results in FILE [disabled] 1271 1241 -C, --config-cache alias for \`--cache-file=config.cache' … … 1319 1289 if test -n "$ac_init_help"; then 1320 1290 case $ac_init_help in 1321 short | recursive ) echo "Configuration of RapptureGUI 1. 1:";;1291 short | recursive ) echo "Configuration of RapptureGUI 1.4:";; 1322 1292 esac 1323 1293 cat <<\_ACEOF … … 1327 1297 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1328 1298 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1329 --enable-64bit enable 64bit support (where applicable)1330 --enable-64bit-vis enable 64bit Sparc VIS support1331 --enable-corefoundation use CoreFoundation API --enable-corefoundation1332 --disable-load disallow dynamic loading and "load" command1333 --enable-shared build and link with shared libraries --enable-shared1334 1299 --enable-gui build code related to the graphical user interface 1335 1300 [default=yes] … … 1346 1311 nonstandard directory <lib dir> 1347 1312 LIBS libraries to pass to the linker, e.g. -l<library> 1348 CPPFLAGS C/C++/Objective Cpreprocessor flags, e.g. -I<include dir> if1313 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1349 1314 you have headers in a nonstandard directory <include dir> 1350 CPP C preprocessor1351 1315 1352 1316 Use these variables to override the choices made by `configure' or to help … … 1416 1380 if $ac_init_version; then 1417 1381 cat <<\_ACEOF 1418 RapptureGUI configure 1. 11419 generated by GNU Autoconf 2.6 41420 1421 Copyright (C) 20 09Free Software Foundation, Inc.1382 RapptureGUI configure 1.4 1383 generated by GNU Autoconf 2.69 1384 1385 Copyright (C) 2012 Free Software Foundation, Inc. 1422 1386 This configure script is free software; the Free Software Foundation 1423 1387 gives unlimited permission to copy, distribute and modify it. … … 1463 1427 ac_retval=1 1464 1428 fi 1465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1466 return$ac_retval1429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1430 as_fn_set_status $ac_retval 1467 1431 1468 1432 } # ac_fn_c_try_compile 1469 1470 # ac_fn_c_try_link LINENO1471 # -----------------------1472 # Try to link conftest.$ac_ext, and return whether this succeeded.1473 ac_fn_c_try_link ()1474 {1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1476 rm -f conftest.$ac_objext conftest$ac_exeext1477 if { { ac_try="$ac_link"1478 case "(($ac_try" in1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1480 *) ac_try_echo=$ac_try;;1481 esac1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1483 $as_echo "$ac_try_echo"; } >&51484 (eval "$ac_link") 2>conftest.err1485 ac_status=$?1486 if test -s conftest.err; then1487 grep -v '^ *+' conftest.err >conftest.er11488 cat conftest.er1 >&51489 mv -f conftest.er1 conftest.err1490 fi1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51492 test $ac_status = 0; } && {1493 test -z "$ac_c_werror_flag" ||1494 test ! -s conftest.err1495 } && test -s conftest$ac_exeext && {1496 test "$cross_compiling" = yes ||1497 $as_test_x conftest$ac_exeext1498 }; then :1499 ac_retval=01500 else1501 $as_echo "$as_me: failed program was:" >&51502 sed 's/^/| /' conftest.$ac_ext >&51503 1504 ac_retval=11505 fi1506 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1507 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1508 # interfere with the next link command; also delete a directory that is1509 # left behind by Apple's compiler. We do this before executing the actions.1510 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1512 return $ac_retval1513 1514 } # ac_fn_c_try_link1515 1516 # ac_fn_c_try_cpp LINENO1517 # ----------------------1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1519 ac_fn_c_try_cpp ()1520 {1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1522 if { { ac_try="$ac_cpp conftest.$ac_ext"1523 case "(($ac_try" in1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1525 *) ac_try_echo=$ac_try;;1526 esac1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1528 $as_echo "$ac_try_echo"; } >&51529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1530 ac_status=$?1531 if test -s conftest.err; then1532 grep -v '^ *+' conftest.err >conftest.er11533 cat conftest.er1 >&51534 mv -f conftest.er1 conftest.err1535 fi1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51537 test $ac_status = 0; } >/dev/null && {1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1539 test ! -s conftest.err1540 }; then :1541 ac_retval=01542 else1543 $as_echo "$as_me: failed program was:" >&51544 sed 's/^/| /' conftest.$ac_ext >&51545 1546 ac_retval=11547 fi1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1549 return $ac_retval1550 1551 } # ac_fn_c_try_cpp1552 1553 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES1554 # -------------------------------------------------------1555 # Tests whether HEADER exists, giving a warning if it cannot be compiled using1556 # the include files in INCLUDES and setting the cache variable VAR1557 # accordingly.1558 ac_fn_c_check_header_mongrel ()1559 {1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1561 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51563 $as_echo_n "checking for $2... " >&6; }1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1565 $as_echo_n "(cached) " >&61566 fi1567 eval ac_res=\$$31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51569 $as_echo "$ac_res" >&6; }1570 else1571 # Is the header compilable?1572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&51573 $as_echo_n "checking $2 usability... " >&6; }1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1575 /* end confdefs.h. */1576 $41577 #include <$2>1578 _ACEOF1579 if ac_fn_c_try_compile "$LINENO"; then :1580 ac_header_compiler=yes1581 else1582 ac_header_compiler=no1583 fi1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&51586 $as_echo "$ac_header_compiler" >&6; }1587 1588 # Is the header present?1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&51590 $as_echo_n "checking $2 presence... " >&6; }1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1592 /* end confdefs.h. */1593 #include <$2>1594 _ACEOF1595 if ac_fn_c_try_cpp "$LINENO"; then :1596 ac_header_preproc=yes1597 else1598 ac_header_preproc=no1599 fi1600 rm -f conftest.err conftest.$ac_ext1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&51602 $as_echo "$ac_header_preproc" >&6; }1603 1604 # So? What about this header?1605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((1606 yes:no: )1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&51608 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&51610 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}1611 ;;1612 no:yes:* )1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&51614 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&51616 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&51618 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&51620 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&51622 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}1623 ( cat <<\_ASBOX1624 ## ----------------------------------- ##1625 ## Report this to rappture@nanohub.org ##1626 ## ----------------------------------- ##1627 _ASBOX1628 ) | sed "s/^/$as_me: WARNING: /" >&21629 ;;1630 esac1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51632 $as_echo_n "checking for $2... " >&6; }1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1634 $as_echo_n "(cached) " >&61635 else1636 eval "$3=\$ac_header_compiler"1637 fi1638 eval ac_res=\$$31639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51640 $as_echo "$ac_res" >&6; }1641 fi1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1643 1644 } # ac_fn_c_check_header_mongrel1645 1646 # ac_fn_c_try_run LINENO1647 # ----------------------1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1649 # that executables *can* be run.1650 ac_fn_c_try_run ()1651 {1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1653 if { { ac_try="$ac_link"1654 case "(($ac_try" in1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1656 *) ac_try_echo=$ac_try;;1657 esac1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1659 $as_echo "$ac_try_echo"; } >&51660 (eval "$ac_link") 2>&51661 ac_status=$?1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1664 { { case "(($ac_try" in1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1666 *) ac_try_echo=$ac_try;;1667 esac1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1669 $as_echo "$ac_try_echo"; } >&51670 (eval "$ac_try") 2>&51671 ac_status=$?1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51673 test $ac_status = 0; }; }; then :1674 ac_retval=01675 else1676 $as_echo "$as_me: program exited with status $ac_status" >&51677 $as_echo "$as_me: failed program was:" >&51678 sed 's/^/| /' conftest.$ac_ext >&51679 1680 ac_retval=$ac_status1681 fi1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1684 return $ac_retval1685 1686 } # ac_fn_c_try_run1687 1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1689 # -------------------------------------------------------1690 # Tests whether HEADER exists and can be compiled using the include files in1691 # INCLUDES, setting the cache variable VAR accordingly.1692 ac_fn_c_check_header_compile ()1693 {1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51696 $as_echo_n "checking for $2... " >&6; }1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1698 $as_echo_n "(cached) " >&61699 else1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1701 /* end confdefs.h. */1702 $41703 #include <$2>1704 _ACEOF1705 if ac_fn_c_try_compile "$LINENO"; then :1706 eval "$3=yes"1707 else1708 eval "$3=no"1709 fi1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1711 fi1712 eval ac_res=\$$31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51714 $as_echo "$ac_res" >&6; }1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1716 1717 } # ac_fn_c_check_header_compile1718 1433 cat >config.log <<_ACEOF 1719 1434 This file contains any messages produced by compilers while 1720 1435 running configure, to aid debugging if configure makes a mistake. 1721 1436 1722 It was created by RapptureGUI $as_me 1. 1, which was1723 generated by GNU Autoconf 2.6 4. Invocation command line was1437 It was created by RapptureGUI $as_me 1.4, which was 1438 generated by GNU Autoconf 2.69. Invocation command line was 1724 1439 1725 1440 $ $0 $@ … … 1831 1546 echo 1832 1547 1833 cat <<\_ASBOX 1834 ## ---------------- ## 1548 $as_echo "## ---------------- ## 1835 1549 ## Cache variables. ## 1836 ## ---------------- ## 1837 _ASBOX 1550 ## ---------------- ##" 1838 1551 echo 1839 1552 # The following way of writing the cache mishandles newlines in values, … … 1869 1582 echo 1870 1583 1871 cat <<\_ASBOX 1872 ## ----------------- ## 1584 $as_echo "## ----------------- ## 1873 1585 ## Output variables. ## 1874 ## ----------------- ## 1875 _ASBOX 1586 ## ----------------- ##" 1876 1587 echo 1877 1588 for ac_var in $ac_subst_vars … … 1886 1597 1887 1598 if test -n "$ac_subst_files"; then 1888 cat <<\_ASBOX 1889 ## ------------------- ## 1599 $as_echo "## ------------------- ## 1890 1600 ## File substitutions. ## 1891 ## ------------------- ## 1892 _ASBOX 1601 ## ------------------- ##" 1893 1602 echo 1894 1603 for ac_var in $ac_subst_files … … 1904 1613 1905 1614 if test -s confdefs.h; then 1906 cat <<\_ASBOX 1907 ## ----------- ## 1615 $as_echo "## ----------- ## 1908 1616 ## confdefs.h. ## 1909 ## ----------- ## 1910 _ASBOX 1617 ## ----------- ##" 1911 1618 echo 1912 1619 cat confdefs.h … … 1963 1670 ac_site_file2=NONE 1964 1671 if test -n "$CONFIG_SITE"; then 1965 ac_site_file1=$CONFIG_SITE 1672 # We do not want a PATH search for config.site. 1673 case $CONFIG_SITE in #(( 1674 -*) ac_site_file1=./$CONFIG_SITE;; 1675 */*) ac_site_file1=$CONFIG_SITE;; 1676 *) ac_site_file1=./$CONFIG_SITE;; 1677 esac 1966 1678 elif test "x$prefix" != xNONE; then 1967 1679 ac_site_file1=$prefix/share/config.site … … 1974 1686 do 1975 1687 test "x$ac_site_file" = xNONE && continue 1976 if test -r "$ac_site_file"; then1688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1977 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1978 1690 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1979 1691 sed 's/^/| /' "$ac_site_file" >&5 1980 . "$ac_site_file" 1692 . "$ac_site_file" \ 1693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1695 as_fn_error $? "failed to load site script $ac_site_file 1696 See \`config.log' for more details" "$LINENO" 5; } 1981 1697 fi 1982 1698 done 1983 1699 1984 1700 if test -r "$cache_file"; then 1985 # Some versions of bash will fail to source /dev/null (special 1986 # files actually), so we avoid doing that.1987 if test -f "$cache_file"; then1701 # Some versions of bash will fail to source /dev/null (special files 1702 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1988 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1989 1705 $as_echo "$as_me: loading cache $cache_file" >&6;} … … 2054 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2055 1771 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2056 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 51772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2057 1773 fi 2058 1774 ## -------------------- ## … … 2069 1785 ac_aux_dir= 2070 1786 for ac_dir in cf "$srcdir"/cf; do 2071 for ac_t in install-sh install.sh shtool; do 2072 if test -f "$ac_dir/$ac_t"; then 2073 ac_aux_dir=$ac_dir 2074 ac_install_sh="$ac_aux_dir/$ac_t -c" 2075 break 2 2076 fi 2077 done 1787 if test -f "$ac_dir/install-sh"; then 1788 ac_aux_dir=$ac_dir 1789 ac_install_sh="$ac_aux_dir/install-sh -c" 1790 break 1791 elif test -f "$ac_dir/install.sh"; then 1792 ac_aux_dir=$ac_dir 1793 ac_install_sh="$ac_aux_dir/install.sh -c" 1794 break 1795 elif test -f "$ac_dir/shtool"; then 1796 ac_aux_dir=$ac_dir 1797 ac_install_sh="$ac_aux_dir/shtool install -c" 1798 break 1799 fi 2078 1800 done 2079 1801 if test -z "$ac_aux_dir"; then 2080 as_fn_error "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 51802 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 2081 1803 fi 2082 1804 … … 2108 1830 # Make sure we can run config.sub. 2109 1831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2110 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 51832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2111 1833 2112 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2113 1835 $as_echo_n "checking build system type... " >&6; } 2114 if test "${ac_cv_build+set}" = set; then :1836 if ${ac_cv_build+:} false; then : 2115 1837 $as_echo_n "(cached) " >&6 2116 1838 else … … 2119 1841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2120 1842 test "x$ac_build_alias" = x && 2121 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 51843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2122 1844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2123 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 51845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2124 1846 2125 1847 fi … … 2128 1850 case $ac_cv_build in 2129 1851 *-*-*) ;; 2130 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;1852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2131 1853 esac 2132 1854 build=$ac_cv_build … … 2146 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2147 1869 $as_echo_n "checking host system type... " >&6; } 2148 if test "${ac_cv_host+set}" = set; then :1870 if ${ac_cv_host+:} false; then : 2149 1871 $as_echo_n "(cached) " >&6 2150 1872 else … … 2153 1875 else 2154 1876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2155 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 51877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2156 1878 fi 2157 1879 … … 2161 1883 case $ac_cv_host in 2162 1884 *-*-*) ;; 2163 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;1885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2164 1886 esac 2165 1887 host=$ac_cv_host … … 2179 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2180 1902 $as_echo_n "checking target system type... " >&6; } 2181 if test "${ac_cv_target+set}" = set; then :1903 if ${ac_cv_target+:} false; then : 2182 1904 $as_echo_n "(cached) " >&6 2183 1905 else … … 2186 1908 else 2187 1909 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2188 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 51910 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2189 1911 fi 2190 1912 … … 2194 1916 case $ac_cv_target in 2195 1917 *-*-*) ;; 2196 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;1918 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2197 1919 esac 2198 1920 target=$ac_cv_target … … 2235 1957 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2236 1958 if test -z "$INSTALL"; then 2237 if test "${ac_cv_path_install+set}" = set; then :1959 if ${ac_cv_path_install+:} false; then : 2238 1960 $as_echo_n "(cached) " >&6 2239 1961 else … … 2255 1977 for ac_prog in ginstall scoinst install; do 2256 1978 for ac_exec_ext in '' $ac_executable_extensions; do 2257 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then1979 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2258 1980 if test $ac_prog = install && 2259 1981 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 2317 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2318 2040 $as_echo_n "checking for $ac_word... " >&6; } 2319 if test "${ac_cv_prog_RANLIB+set}" = set; then :2041 if ${ac_cv_prog_RANLIB+:} false; then : 2320 2042 $as_echo_n "(cached) " >&6 2321 2043 else … … 2329 2051 test -z "$as_dir" && as_dir=. 2330 2052 for ac_exec_ext in '' $ac_executable_extensions; do 2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2332 2054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2333 2055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2357 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2358 2080 $as_echo_n "checking for $ac_word... " >&6; } 2359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :2081 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 2360 2082 $as_echo_n "(cached) " >&6 2361 2083 else … … 2369 2091 test -z "$as_dir" && as_dir=. 2370 2092 for ac_exec_ext in '' $ac_executable_extensions; do 2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2372 2094 ac_cv_prog_ac_ct_RANLIB="ranlib" 2373 2095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2418 2140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2419 2141 if test -z "$MKDIR_P"; then 2420 if test "${ac_cv_path_mkdir+set}" = set; then :2142 if ${ac_cv_path_mkdir+:} false; then : 2421 2143 $as_echo_n "(cached) " >&6 2422 2144 else … … 2428 2150 for ac_prog in mkdir gmkdir; do 2429 2151 for ac_exec_ext in '' $ac_executable_extensions; do 2430 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }|| continue2152 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2431 2153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2432 2154 'mkdir (GNU coreutils) '* | \ … … 2443 2165 fi 2444 2166 2167 test -d ./--version && rmdir ./--version 2445 2168 if test "${ac_cv_path_mkdir+set}" = set; then 2446 2169 MKDIR_P="$ac_cv_path_mkdir -p" … … 2450 2173 # break other packages using the cache if that directory is 2451 2174 # removed, or if the value is a relative name. 2452 test -d ./--version && rmdir ./--version2453 2175 MKDIR_P="$ac_install_sh -d" 2454 2176 fi … … 2461 2183 set x ${MAKE-make} 2462 2184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2463 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :2185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2464 2186 $as_echo_n "(cached) " >&6 2465 2187 else … … 2469 2191 @echo '@@@%%%=$(MAKE)=@@@%%%' 2470 2192 _ACEOF 2471 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.2193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2472 2194 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2473 2195 *@@@%%%=?*=@@@%%%*) … … 2498 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2499 2221 $as_echo_n "checking for $ac_word... " >&6; } 2500 if test "${ac_cv_prog_CC+set}" = set; then :2222 if ${ac_cv_prog_CC+:} false; then : 2501 2223 $as_echo_n "(cached) " >&6 2502 2224 else … … 2510 2232 test -z "$as_dir" && as_dir=. 2511 2233 for ac_exec_ext in '' $ac_executable_extensions; do 2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2513 2235 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2514 2236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2538 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2539 2261 $as_echo_n "checking for $ac_word... " >&6; } 2540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2262 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2541 2263 $as_echo_n "(cached) " >&6 2542 2264 else … … 2550 2272 test -z "$as_dir" && as_dir=. 2551 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2553 2275 ac_cv_prog_ac_ct_CC="gcc" 2554 2276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2591 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2592 2314 $as_echo_n "checking for $ac_word... " >&6; } 2593 if test "${ac_cv_prog_CC+set}" = set; then :2315 if ${ac_cv_prog_CC+:} false; then : 2594 2316 $as_echo_n "(cached) " >&6 2595 2317 else … … 2603 2325 test -z "$as_dir" && as_dir=. 2604 2326 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2606 2328 ac_cv_prog_CC="${ac_tool_prefix}cc" 2607 2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2631 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2632 2354 $as_echo_n "checking for $ac_word... " >&6; } 2633 if test "${ac_cv_prog_CC+set}" = set; then :2355 if ${ac_cv_prog_CC+:} false; then : 2634 2356 $as_echo_n "(cached) " >&6 2635 2357 else … … 2644 2366 test -z "$as_dir" && as_dir=. 2645 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2647 2369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2648 2370 ac_prog_rejected=yes … … 2690 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2691 2413 $as_echo_n "checking for $ac_word... " >&6; } 2692 if test "${ac_cv_prog_CC+set}" = set; then :2414 if ${ac_cv_prog_CC+:} false; then : 2693 2415 $as_echo_n "(cached) " >&6 2694 2416 else … … 2702 2424 test -z "$as_dir" && as_dir=. 2703 2425 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2705 2427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2706 2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2734 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2735 2457 $as_echo_n "checking for $ac_word... " >&6; } 2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2458 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2737 2459 $as_echo_n "(cached) " >&6 2738 2460 else … … 2746 2468 test -z "$as_dir" && as_dir=. 2747 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2749 2471 ac_cv_prog_ac_ct_CC="$ac_prog" 2750 2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2788 2510 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2789 2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2790 as_fn_error "no acceptable C compiler found in \$PATH2791 See \`config.log' for more details ." "$LINENO" 5; }2512 as_fn_error $? "no acceptable C compiler found in \$PATH 2513 See \`config.log' for more details" "$LINENO" 5; } 2792 2514 2793 2515 # Provide some information about the compiler. … … 2810 2532 10q' conftest.err >conftest.er1 2811 2533 cat conftest.er1 >&5 2812 rm -f conftest.er1 conftest.err2813 2534 fi 2535 rm -f conftest.er1 conftest.err 2814 2536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2815 2537 test $ac_status = 0; } … … 2818 2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2819 2541 /* end confdefs.h. */ 2820 #include <stdio.h> 2542 2821 2543 int 2822 2544 main () 2823 2545 { 2824 FILE *f = fopen ("conftest.out", "w");2825 return ferror (f) || fclose (f) != 0;2826 2546 2827 2547 ; … … 2830 2550 _ACEOF 2831 2551 ac_clean_files_save=$ac_clean_files 2832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"2552 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2833 2553 # Try to create an executable without -o first, disregard a.out. 2834 2554 # It will help us diagnose broken compilers, and finding out an intuition 2835 2555 # of exeext. 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&52837 $as_echo_n "checking for C compiler default output file name... " >&6; }2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2557 $as_echo_n "checking whether the C compiler works... " >&6; } 2838 2558 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2839 2559 … … 2897 2617 ac_file='' 2898 2618 fi 2619 if test -z "$ac_file"; then : 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2621 $as_echo "no" >&6; } 2622 $as_echo "$as_me: failed program was:" >&5 2623 sed 's/^/| /' conftest.$ac_ext >&5 2624 2625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2627 as_fn_error 77 "C compiler cannot create executables 2628 See \`config.log' for more details" "$LINENO" 5; } 2629 else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2631 $as_echo "yes" >&6; } 2632 fi 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2634 $as_echo_n "checking for C compiler default output file name... " >&6; } 2899 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2900 2636 $as_echo "$ac_file" >&6; } 2901 if test -z "$ac_file"; then :2902 $as_echo "$as_me: failed program was:" >&52903 sed 's/^/| /' conftest.$ac_ext >&52904 2905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&52906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2907 { as_fn_set_status 772908 as_fn_error "C compiler cannot create executables2909 See \`config.log' for more details." "$LINENO" 5; }; }2910 fi2911 2637 ac_exeext=$ac_cv_exeext 2912 2638 2913 # Check that the compiler produces executables we can run. If not, either 2914 # the compiler is broken, or we cross compile. 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2916 $as_echo_n "checking whether the C compiler works... " >&6; } 2917 # If not cross compiling, check that we can run a simple program. 2918 if test "$cross_compiling" != yes; then 2919 if { ac_try='./$ac_file' 2920 { { case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923 esac 2924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2925 $as_echo "$ac_try_echo"; } >&5 2926 (eval "$ac_try") 2>&5 2927 ac_status=$? 2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2929 test $ac_status = 0; }; }; then 2930 cross_compiling=no 2931 else 2932 if test "$cross_compiling" = maybe; then 2933 cross_compiling=yes 2934 else 2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2937 as_fn_error "cannot run C compiled programs. 2938 If you meant to cross compile, use \`--host'. 2939 See \`config.log' for more details." "$LINENO" 5; } 2940 fi 2941 fi 2942 fi 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2944 $as_echo "yes" >&6; } 2945 2946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2639 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2947 2640 ac_clean_files=$ac_clean_files_save 2948 # Check that the compiler produces executables we can run. If not, either2949 # the compiler is broken, or we cross compile.2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&52951 $as_echo_n "checking whether we are cross compiling... " >&6; }2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&52953 $as_echo "$cross_compiling" >&6; }2954 2955 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2956 2642 $as_echo_n "checking for suffix of executables... " >&6; } … … 2982 2668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2983 2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2984 as_fn_error "cannot compute suffix of executables: cannot compile and link2985 See \`config.log' for more details ." "$LINENO" 5; }2986 fi 2987 rm -f conftest $ac_cv_exeext2670 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2671 See \`config.log' for more details" "$LINENO" 5; } 2672 fi 2673 rm -f conftest conftest$ac_cv_exeext 2988 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2989 2675 $as_echo "$ac_cv_exeext" >&6; } … … 2992 2678 EXEEXT=$ac_cv_exeext 2993 2679 ac_exeext=$EXEEXT 2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2681 /* end confdefs.h. */ 2682 #include <stdio.h> 2683 int 2684 main () 2685 { 2686 FILE *f = fopen ("conftest.out", "w"); 2687 return ferror (f) || fclose (f) != 0; 2688 2689 ; 2690 return 0; 2691 } 2692 _ACEOF 2693 ac_clean_files="$ac_clean_files conftest.out" 2694 # Check that the compiler produces executables we can run. If not, either 2695 # the compiler is broken, or we cross compile. 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2697 $as_echo_n "checking whether we are cross compiling... " >&6; } 2698 if test "$cross_compiling" != yes; then 2699 { { ac_try="$ac_link" 2700 case "(($ac_try" in 2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2702 *) ac_try_echo=$ac_try;; 2703 esac 2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2705 $as_echo "$ac_try_echo"; } >&5 2706 (eval "$ac_link") 2>&5 2707 ac_status=$? 2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2709 test $ac_status = 0; } 2710 if { ac_try='./conftest$ac_cv_exeext' 2711 { { case "(($ac_try" in 2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2713 *) ac_try_echo=$ac_try;; 2714 esac 2715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2716 $as_echo "$ac_try_echo"; } >&5 2717 (eval "$ac_try") 2>&5 2718 ac_status=$? 2719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2720 test $ac_status = 0; }; }; then 2721 cross_compiling=no 2722 else 2723 if test "$cross_compiling" = maybe; then 2724 cross_compiling=yes 2725 else 2726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2728 as_fn_error $? "cannot run C compiled programs. 2729 If you meant to cross compile, use \`--host'. 2730 See \`config.log' for more details" "$LINENO" 5; } 2731 fi 2732 fi 2733 fi 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2735 $as_echo "$cross_compiling" >&6; } 2736 2737 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2738 ac_clean_files=$ac_clean_files_save 2994 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2995 2740 $as_echo_n "checking for suffix of object files... " >&6; } 2996 if test "${ac_cv_objext+set}" = set; then :2741 if ${ac_cv_objext+:} false; then : 2997 2742 $as_echo_n "(cached) " >&6 2998 2743 else … … 3034 2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3035 2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3036 as_fn_error "cannot compute suffix of object files: cannot compile3037 See \`config.log' for more details ." "$LINENO" 5; }2781 as_fn_error $? "cannot compute suffix of object files: cannot compile 2782 See \`config.log' for more details" "$LINENO" 5; } 3038 2783 fi 3039 2784 rm -f conftest.$ac_cv_objext conftest.$ac_ext … … 3045 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3046 2791 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :2792 if ${ac_cv_c_compiler_gnu+:} false; then : 3048 2793 $as_echo_n "(cached) " >&6 3049 2794 else … … 3082 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3083 2828 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3084 if test "${ac_cv_prog_cc_g+set}" = set; then :2829 if ${ac_cv_prog_cc_g+:} false; then : 3085 2830 $as_echo_n "(cached) " >&6 3086 2831 else … … 3160 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3161 2906 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3162 if test "${ac_cv_prog_cc_c89+set}" = set; then :2907 if ${ac_cv_prog_cc_c89+:} false; then : 3163 2908 $as_echo_n "(cached) " >&6 3164 2909 else … … 3169 2914 #include <stdarg.h> 3170 2915 #include <stdio.h> 3171 #include <sys/types.h> 3172 #include <sys/stat.h> 2916 struct stat; 3173 2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3174 2918 struct buf { int x; }; … … 3256 3000 3257 3001 3258 3259 ac_ext=c 3260 ac_cpp='$CPP $CPPFLAGS' 3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3265 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3266 # On Suns, sometimes $CPP names a directory. 3267 if test -n "$CPP" && test -d "$CPP"; then 3268 CPP= 3269 fi 3270 if test -z "$CPP"; then 3271 if test "${ac_cv_prog_CPP+set}" = set; then : 3272 $as_echo_n "(cached) " >&6 3273 else 3274 # Double quotes because CPP needs to be expanded 3275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3276 do 3277 ac_preproc_ok=false 3278 for ac_c_preproc_warn_flag in '' yes 3279 do 3280 # Use a header file that comes with gcc, so configuring glibc 3281 # with a fresh cross-compiler works. 3282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3283 # <limits.h> exists even on freestanding compilers. 3284 # On the NeXT, cc -E runs the code through the compiler's parser, 3285 # not just through cpp. "Syntax error" is here to catch this case. 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287 /* end confdefs.h. */ 3288 #ifdef __STDC__ 3289 # include <limits.h> 3290 #else 3291 # include <assert.h> 3292 #endif 3293 Syntax error 3294 _ACEOF 3295 if ac_fn_c_try_cpp "$LINENO"; then : 3296 3297 else 3298 # Broken: fails on valid input. 3299 continue 3300 fi 3301 rm -f conftest.err conftest.$ac_ext 3302 3303 # OK, works on sane cases. Now check whether nonexistent headers 3304 # can be detected and how. 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306 /* end confdefs.h. */ 3307 #include <ac_nonexistent.h> 3308 _ACEOF 3309 if ac_fn_c_try_cpp "$LINENO"; then : 3310 # Broken: success on invalid input. 3311 continue 3312 else 3313 # Passes both tests. 3314 ac_preproc_ok=: 3315 break 3316 fi 3317 rm -f conftest.err conftest.$ac_ext 3318 3319 done 3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3321 rm -f conftest.err conftest.$ac_ext 3322 if $ac_preproc_ok; then : 3323 break 3324 fi 3325 3326 done 3327 ac_cv_prog_CPP=$CPP 3328 3329 fi 3330 CPP=$ac_cv_prog_CPP 3331 else 3332 ac_cv_prog_CPP=$CPP 3333 fi 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3335 $as_echo "$CPP" >&6; } 3336 ac_preproc_ok=false 3337 for ac_c_preproc_warn_flag in '' yes 3338 do 3339 # Use a header file that comes with gcc, so configuring glibc 3340 # with a fresh cross-compiler works. 3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3342 # <limits.h> exists even on freestanding compilers. 3343 # On the NeXT, cc -E runs the code through the compiler's parser, 3344 # not just through cpp. "Syntax error" is here to catch this case. 3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346 /* end confdefs.h. */ 3347 #ifdef __STDC__ 3348 # include <limits.h> 3349 #else 3350 # include <assert.h> 3351 #endif 3352 Syntax error 3353 _ACEOF 3354 if ac_fn_c_try_cpp "$LINENO"; then : 3355 3356 else 3357 # Broken: fails on valid input. 3358 continue 3359 fi 3360 rm -f conftest.err conftest.$ac_ext 3361 3362 # OK, works on sane cases. Now check whether nonexistent headers 3363 # can be detected and how. 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365 /* end confdefs.h. */ 3366 #include <ac_nonexistent.h> 3367 _ACEOF 3368 if ac_fn_c_try_cpp "$LINENO"; then : 3369 # Broken: success on invalid input. 3370 continue 3371 else 3372 # Passes both tests. 3373 ac_preproc_ok=: 3374 break 3375 fi 3376 rm -f conftest.err conftest.$ac_ext 3377 3378 done 3379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3380 rm -f conftest.err conftest.$ac_ext 3381 if $ac_preproc_ok; then : 3382 3383 else 3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386 as_fn_error "C preprocessor \"$CPP\" fails sanity check 3387 See \`config.log' for more details." "$LINENO" 5; } 3388 fi 3389 3390 ac_ext=c 3391 ac_cpp='$CPP $CPPFLAGS' 3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3395 3396 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3398 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3399 if test "${ac_cv_path_GREP+set}" = set; then : 3400 $as_echo_n "(cached) " >&6 3401 else 3402 if test -z "$GREP"; then 3403 ac_path_GREP_found=false 3404 # Loop through the user's path and test for each of PROGNAME-LIST 3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3407 do 3408 IFS=$as_save_IFS 3409 test -z "$as_dir" && as_dir=. 3410 for ac_prog in grep ggrep; do 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3413 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3414 # Check for GNU ac_path_GREP and select it if it is found. 3415 # Check for GNU $ac_path_GREP 3416 case `"$ac_path_GREP" --version 2>&1` in 3417 *GNU*) 3418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3419 *) 3420 ac_count=0 3421 $as_echo_n 0123456789 >"conftest.in" 3422 while : 3423 do 3424 cat "conftest.in" "conftest.in" >"conftest.tmp" 3425 mv "conftest.tmp" "conftest.in" 3426 cp "conftest.in" "conftest.nl" 3427 $as_echo 'GREP' >> "conftest.nl" 3428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3430 as_fn_arith $ac_count + 1 && ac_count=$as_val 3431 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3432 # Best one so far, save it but keep looking for a better one 3433 ac_cv_path_GREP="$ac_path_GREP" 3434 ac_path_GREP_max=$ac_count 3435 fi 3436 # 10*(2^10) chars as input seems more than enough 3437 test $ac_count -gt 10 && break 3438 done 3439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3440 esac 3441 3442 $ac_path_GREP_found && break 3 3443 done 3444 done 3445 done 3446 IFS=$as_save_IFS 3447 if test -z "$ac_cv_path_GREP"; then 3448 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3449 fi 3450 else 3451 ac_cv_path_GREP=$GREP 3452 fi 3453 3454 fi 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3456 $as_echo "$ac_cv_path_GREP" >&6; } 3457 GREP="$ac_cv_path_GREP" 3458 3459 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3461 $as_echo_n "checking for egrep... " >&6; } 3462 if test "${ac_cv_path_EGREP+set}" = set; then : 3463 $as_echo_n "(cached) " >&6 3464 else 3465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3466 then ac_cv_path_EGREP="$GREP -E" 3467 else 3468 if test -z "$EGREP"; then 3469 ac_path_EGREP_found=false 3470 # Loop through the user's path and test for each of PROGNAME-LIST 3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3473 do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_prog in egrep; do 3477 for ac_exec_ext in '' $ac_executable_extensions; do 3478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3479 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3480 # Check for GNU ac_path_EGREP and select it if it is found. 3481 # Check for GNU $ac_path_EGREP 3482 case `"$ac_path_EGREP" --version 2>&1` in 3483 *GNU*) 3484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3485 *) 3486 ac_count=0 3487 $as_echo_n 0123456789 >"conftest.in" 3488 while : 3489 do 3490 cat "conftest.in" "conftest.in" >"conftest.tmp" 3491 mv "conftest.tmp" "conftest.in" 3492 cp "conftest.in" "conftest.nl" 3493 $as_echo 'EGREP' >> "conftest.nl" 3494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3496 as_fn_arith $ac_count + 1 && ac_count=$as_val 3497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3498 # Best one so far, save it but keep looking for a better one 3499 ac_cv_path_EGREP="$ac_path_EGREP" 3500 ac_path_EGREP_max=$ac_count 3501 fi 3502 # 10*(2^10) chars as input seems more than enough 3503 test $ac_count -gt 10 && break 3504 done 3505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3506 esac 3507 3508 $ac_path_EGREP_found && break 3 3509 done 3510 done 3511 done 3512 IFS=$as_save_IFS 3513 if test -z "$ac_cv_path_EGREP"; then 3514 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3515 fi 3516 else 3517 ac_cv_path_EGREP=$EGREP 3518 fi 3519 3520 fi 3521 fi 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3523 $as_echo "$ac_cv_path_EGREP" >&6; } 3524 EGREP="$ac_cv_path_EGREP" 3525 3526 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3528 $as_echo_n "checking for ANSI C header files... " >&6; } 3529 if test "${ac_cv_header_stdc+set}" = set; then : 3530 $as_echo_n "(cached) " >&6 3531 else 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533 /* end confdefs.h. */ 3534 #include <stdlib.h> 3535 #include <stdarg.h> 3536 #include <string.h> 3537 #include <float.h> 3538 3539 int 3540 main () 3541 { 3542 3543 ; 3544 return 0; 3545 } 3546 _ACEOF 3547 if ac_fn_c_try_compile "$LINENO"; then : 3548 ac_cv_header_stdc=yes 3549 else 3550 ac_cv_header_stdc=no 3551 fi 3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3553 3554 if test $ac_cv_header_stdc = yes; then 3555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557 /* end confdefs.h. */ 3558 #include <string.h> 3559 3560 _ACEOF 3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3562 $EGREP "memchr" >/dev/null 2>&1; then : 3563 3564 else 3565 ac_cv_header_stdc=no 3566 fi 3567 rm -f conftest* 3568 3569 fi 3570 3571 if test $ac_cv_header_stdc = yes; then 3572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574 /* end confdefs.h. */ 3575 #include <stdlib.h> 3576 3577 _ACEOF 3578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3579 $EGREP "free" >/dev/null 2>&1; then : 3580 3581 else 3582 ac_cv_header_stdc=no 3583 fi 3584 rm -f conftest* 3585 3586 fi 3587 3588 if test $ac_cv_header_stdc = yes; then 3589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3590 if test "$cross_compiling" = yes; then : 3591 : 3592 else 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594 /* end confdefs.h. */ 3595 #include <ctype.h> 3596 #include <stdlib.h> 3597 #if ((' ' & 0x0FF) == 0x020) 3598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3600 #else 3601 # define ISLOWER(c) \ 3602 (('a' <= (c) && (c) <= 'i') \ 3603 || ('j' <= (c) && (c) <= 'r') \ 3604 || ('s' <= (c) && (c) <= 'z')) 3605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3606 #endif 3607 3608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3609 int 3610 main () 3611 { 3612 int i; 3613 for (i = 0; i < 256; i++) 3614 if (XOR (islower (i), ISLOWER (i)) 3615 || toupper (i) != TOUPPER (i)) 3616 return 2; 3617 return 0; 3618 } 3619 _ACEOF 3620 if ac_fn_c_try_run "$LINENO"; then : 3621 3622 else 3623 ac_cv_header_stdc=no 3624 fi 3625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3626 conftest.$ac_objext conftest.beam conftest.$ac_ext 3627 fi 3628 3629 fi 3630 fi 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3632 $as_echo "$ac_cv_header_stdc" >&6; } 3633 if test $ac_cv_header_stdc = yes; then 3634 3635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3636 3637 fi 3638 3639 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3641 inttypes.h stdint.h unistd.h 3642 do : 3643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3645 " 3646 eval as_val=\$$as_ac_Header 3647 if test "x$as_val" = x""yes; then : 3648 cat >>confdefs.h <<_ACEOF 3649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3650 _ACEOF 3651 3652 fi 3653 3654 done 3655 3656 3657 3658 3659 # Step 0.a: Enable 64 bit support? 3660 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 3662 $as_echo_n "checking if 64bit support is requested... " >&6; } 3663 # Check whether --enable-64bit was given. 3664 if test "${enable_64bit+set}" = set; then : 3665 enableval=$enable_64bit; do64bit=$enableval 3666 else 3667 do64bit=no 3668 fi 3669 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 3671 $as_echo "$do64bit" >&6; } 3672 3673 # Step 0.b: Enable Solaris 64 bit VIS support? 3674 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 3676 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 3677 # Check whether --enable-64bit-vis was given. 3678 if test "${enable_64bit_vis+set}" = set; then : 3679 enableval=$enable_64bit_vis; do64bitVIS=$enableval 3680 else 3681 do64bitVIS=no 3682 fi 3683 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 3685 $as_echo "$do64bitVIS" >&6; } 3686 3687 if test "$do64bitVIS" = "yes"; then 3688 # Force 64bit on with VIS 3689 do64bit=yes 3690 fi 3691 3692 # Step 1: set the variable "system" to hold the name and version number 3693 # for the system. 3694 3695 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 3697 $as_echo_n "checking system version... " >&6; } 3698 if test "${tcl_cv_sys_version+set}" = set; then : 3699 $as_echo_n "(cached) " >&6 3700 else 3701 3702 if test -f /usr/lib/NextStep/software_version; then 3703 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 3704 else 3705 tcl_cv_sys_version=`uname -s`-`uname -r` 3706 if test "$?" -ne 0 ; then 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 3708 $as_echo "$as_me: WARNING: can't find uname command" >&2;} 3709 tcl_cv_sys_version=unknown 3710 else 3711 # Special check for weird MP-RAS system (uname returns weird 3712 # results, and the version is kept in special file). 3713 3714 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 3715 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 3716 fi 3717 if test "`uname -s`" = "AIX" ; then 3718 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 3719 fi 3720 fi 3721 fi 3722 3723 fi 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 3725 $as_echo "$tcl_cv_sys_version" >&6; } 3726 system=$tcl_cv_sys_version 3727 3728 3729 # Step 2: check for existence of -ldl library. This is needed because 3730 # Linux can use either -ldl or -ldld for dynamic loading. 3731 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 3733 $as_echo_n "checking for dlopen in -ldl... " >&6; } 3734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 3735 $as_echo_n "(cached) " >&6 3736 else 3737 ac_check_lib_save_LIBS=$LIBS 3738 LIBS="-ldl $LIBS" 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740 /* end confdefs.h. */ 3741 3742 /* Override any GCC internal prototype to avoid an error. 3743 Use char because int might match the return type of a GCC 3744 builtin and then its argument prototype would still apply. */ 3745 #ifdef __cplusplus 3746 extern "C" 3747 #endif 3748 char dlopen (); 3749 int 3750 main () 3751 { 3752 return dlopen (); 3753 ; 3754 return 0; 3755 } 3756 _ACEOF 3757 if ac_fn_c_try_link "$LINENO"; then : 3758 ac_cv_lib_dl_dlopen=yes 3759 else 3760 ac_cv_lib_dl_dlopen=no 3761 fi 3762 rm -f core conftest.err conftest.$ac_objext \ 3763 conftest$ac_exeext conftest.$ac_ext 3764 LIBS=$ac_check_lib_save_LIBS 3765 fi 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 3767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 3768 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 3769 have_dl=yes 3770 else 3771 have_dl=no 3772 fi 3773 3774 3775 # Require ranlib early so we can override it in special cases below. 3776 3777 3778 3779 # Step 3: set configuration options based on system name and version. 3780 3781 do64bit_ok=no 3782 LDFLAGS_ORIG="$LDFLAGS" 3783 TCL_EXPORT_FILE_SUFFIX="" 3784 UNSHARED_LIB_SUFFIX="" 3785 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 3786 ECHO_VERSION='`echo ${VERSION}`' 3787 TCL_LIB_VERSIONS_OK=ok 3788 CFLAGS_DEBUG=-g 3789 CFLAGS_OPTIMIZE=-O 3790 if test "$GCC" = "yes" ; then 3791 CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" 3792 else 3793 CFLAGS_WARNING="" 3794 fi 3795 TCL_NEEDS_EXP_FILE=0 3796 TCL_BUILD_EXP_FILE="" 3797 TCL_EXP_FILE="" 3798 # Extract the first word of "ar", so it can be a program name with args. 3799 set dummy ar; ac_word=$2 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3801 $as_echo_n "checking for $ac_word... " >&6; } 3802 if test "${ac_cv_prog_AR+set}" = set; then : 3803 $as_echo_n "(cached) " >&6 3804 else 3805 if test -n "$AR"; then 3806 ac_cv_prog_AR="$AR" # Let the user override the test. 3807 else 3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3809 for as_dir in $PATH 3810 do 3811 IFS=$as_save_IFS 3812 test -z "$as_dir" && as_dir=. 3813 for ac_exec_ext in '' $ac_executable_extensions; do 3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3815 ac_cv_prog_AR="ar" 3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3817 break 2 3818 fi 3819 done 3820 done 3821 IFS=$as_save_IFS 3822 3823 fi 3824 fi 3825 AR=$ac_cv_prog_AR 3826 if test -n "$AR"; then 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3828 $as_echo "$AR" >&6; } 3829 else 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831 $as_echo "no" >&6; } 3832 fi 3833 3834 3835 if test "${AR}" = "" ; then 3836 as_fn_error "Required archive tool 'ar' not found on PATH." "$LINENO" 5 3837 fi 3838 STLIB_LD='${AR} cr' 3839 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 3840 PLAT_OBJS="" 3841 PLAT_SRCS="" 3842 case $system in 3843 AIX-*) 3844 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 3845 # AIX requires the _r compiler when gcc isn't being used 3846 case "${CC}" in 3847 *_r) 3848 # ok ... 3849 ;; 3850 *) 3851 CC=${CC}_r 3852 ;; 3853 esac 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 3855 $as_echo "Using $CC for compiling with threads" >&6; } 3856 fi 3857 LIBS="$LIBS -lc" 3858 SHLIB_CFLAGS="" 3859 # Note: need the LIBS below, otherwise Tk won't find Tcl's 3860 # symbols when dynamically loaded into tclsh. 3861 SHLIB_LD_LIBS='${LIBS}' 3862 SHLIB_SUFFIX=".so" 3863 3864 DL_OBJS="tclLoadDl.o" 3865 LD_LIBRARY_PATH_VAR="LIBPATH" 3866 3867 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 3868 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 3869 if test "$GCC" = "yes" ; then 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 3871 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 3872 else 3873 do64bit_ok=yes 3874 CFLAGS="$CFLAGS -q64" 3875 LDFLAGS="$LDFLAGS -q64" 3876 RANLIB="${RANLIB} -X64" 3877 AR="${AR} -X64" 3878 SHLIB_LD_FLAGS="-b64" 3879 fi 3880 fi 3881 3882 if test "`uname -m`" = "ia64" ; then 3883 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 3884 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 3885 # AIX-5 has dl* in libc.so 3886 DL_LIBS="" 3887 if test "$GCC" = "yes" ; then 3888 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 3889 else 3890 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 3891 fi 3892 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 3893 else 3894 if test "$GCC" = "yes" ; then 3895 SHLIB_LD="gcc -shared" 3896 else 3897 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 3898 fi 3899 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 3900 DL_LIBS="-ldl" 3901 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 3902 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 3903 TCL_NEEDS_EXP_FILE=1 3904 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' 3905 fi 3906 3907 # AIX v<=4.1 has some different flags than 4.2+ 3908 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 3909 LIBOBJS="$LIBOBJS tclLoadAix.o" 3910 DL_LIBS="-lld" 3911 fi 3912 3913 # On AIX <=v4 systems, libbsd.a has to be linked in to support 3914 # non-blocking file IO. This library has to be linked in after 3915 # the MATH_LIBS or it breaks the pow() function. The way to 3916 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 3917 # This library also supplies gettimeofday. 3918 # 3919 # AIX does not have a timezone field in struct tm. When the AIX 3920 # bsd library is used, the timezone global and the gettimeofday 3921 # methods are to be avoided for timezone deduction instead, we 3922 # deduce the timezone by comparing the localtime result on a 3923 # known GMT value. 3924 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 3926 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 3927 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then : 3928 $as_echo_n "(cached) " >&6 3929 else 3930 ac_check_lib_save_LIBS=$LIBS 3931 LIBS="-lbsd $LIBS" 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933 /* end confdefs.h. */ 3934 3935 /* Override any GCC internal prototype to avoid an error. 3936 Use char because int might match the return type of a GCC 3937 builtin and then its argument prototype would still apply. */ 3938 #ifdef __cplusplus 3939 extern "C" 3940 #endif 3941 char gettimeofday (); 3942 int 3943 main () 3944 { 3945 return gettimeofday (); 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 if ac_fn_c_try_link "$LINENO"; then : 3951 ac_cv_lib_bsd_gettimeofday=yes 3952 else 3953 ac_cv_lib_bsd_gettimeofday=no 3954 fi 3955 rm -f core conftest.err conftest.$ac_objext \ 3956 conftest$ac_exeext conftest.$ac_ext 3957 LIBS=$ac_check_lib_save_LIBS 3958 fi 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 3960 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 3961 if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then : 3962 libbsd=yes 3963 else 3964 libbsd=no 3965 fi 3966 3967 if test $libbsd = yes; then 3968 MATH_LIBS="$MATH_LIBS -lbsd" 3969 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h 3970 3971 fi 3972 ;; 3973 BeOS*) 3974 SHLIB_CFLAGS="-fPIC" 3975 SHLIB_LD="${CC} -nostart" 3976 SHLIB_LD_LIBS='${LIBS}' 3977 SHLIB_SUFFIX=".so" 3978 DL_OBJS="tclLoadDl.o" 3979 DL_LIBS="-ldl" 3980 3981 #----------------------------------------------------------- 3982 # Check for inet_ntoa in -lbind, for BeOS (which also needs 3983 # -lsocket, even if the network functions are in -lnet which 3984 # is always linked to, for compatibility. 3985 #----------------------------------------------------------- 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 3987 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 3988 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then : 3989 $as_echo_n "(cached) " >&6 3990 else 3991 ac_check_lib_save_LIBS=$LIBS 3992 LIBS="-lbind $LIBS" 3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994 /* end confdefs.h. */ 3995 3996 /* Override any GCC internal prototype to avoid an error. 3997 Use char because int might match the return type of a GCC 3998 builtin and then its argument prototype would still apply. */ 3999 #ifdef __cplusplus 4000 extern "C" 4001 #endif 4002 char inet_ntoa (); 4003 int 4004 main () 4005 { 4006 return inet_ntoa (); 4007 ; 4008 return 0; 4009 } 4010 _ACEOF 4011 if ac_fn_c_try_link "$LINENO"; then : 4012 ac_cv_lib_bind_inet_ntoa=yes 4013 else 4014 ac_cv_lib_bind_inet_ntoa=no 4015 fi 4016 rm -f core conftest.err conftest.$ac_objext \ 4017 conftest$ac_exeext conftest.$ac_ext 4018 LIBS=$ac_check_lib_save_LIBS 4019 fi 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 4021 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 4022 if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then : 4023 LIBS="$LIBS -lbind -lsocket" 4024 fi 4025 4026 ;; 4027 BSD/OS-2.1*|BSD/OS-3*) 4028 SHLIB_CFLAGS="" 4029 SHLIB_LD="shlicc -r" 4030 SHLIB_LD_LIBS='${LIBS}' 4031 SHLIB_SUFFIX=".so" 4032 DL_OBJS="tclLoadDl.o" 4033 DL_LIBS="-ldl" 4034 CC_SEARCH_FLAGS="" 4035 LD_SEARCH_FLAGS="" 4036 ;; 4037 BSD/OS-4.*) 4038 SHLIB_CFLAGS="-export-dynamic -fPIC" 4039 SHLIB_LD="cc -shared" 4040 SHLIB_LD_LIBS='${LIBS}' 4041 SHLIB_SUFFIX=".so" 4042 DL_OBJS="tclLoadDl.o" 4043 DL_LIBS="-ldl" 4044 LDFLAGS="$LDFLAGS -export-dynamic" 4045 CC_SEARCH_FLAGS="" 4046 LD_SEARCH_FLAGS="" 4047 ;; 4048 dgux*) 4049 SHLIB_CFLAGS="-K PIC" 4050 SHLIB_LD="cc -G" 4051 SHLIB_LD_LIBS="" 4052 SHLIB_SUFFIX=".so" 4053 DL_OBJS="tclLoadDl.o" 4054 DL_LIBS="-ldl" 4055 CC_SEARCH_FLAGS="" 4056 LD_SEARCH_FLAGS="" 4057 ;; 4058 HP-UX-*.11.*) 4059 # Use updated header definitions where possible 4060 $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h 4061 # Use the XOPEN network library 4062 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 4063 # Use the XOPEN network library 4064 LIBS="$LIBS -lxnet" # Use the XOPEN network library 4065 4066 if test "`uname -m`" = "ia64" ; then 4067 SHLIB_SUFFIX=".so" 4068 else 4069 SHLIB_SUFFIX=".sl" 4070 fi 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 4072 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 4074 $as_echo_n "(cached) " >&6 4075 else 4076 ac_check_lib_save_LIBS=$LIBS 4077 LIBS="-ldld $LIBS" 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079 /* end confdefs.h. */ 4080 4081 /* Override any GCC internal prototype to avoid an error. 4082 Use char because int might match the return type of a GCC 4083 builtin and then its argument prototype would still apply. */ 4084 #ifdef __cplusplus 4085 extern "C" 4086 #endif 4087 char shl_load (); 4088 int 4089 main () 4090 { 4091 return shl_load (); 4092 ; 4093 return 0; 4094 } 4095 _ACEOF 4096 if ac_fn_c_try_link "$LINENO"; then : 4097 ac_cv_lib_dld_shl_load=yes 4098 else 4099 ac_cv_lib_dld_shl_load=no 4100 fi 4101 rm -f core conftest.err conftest.$ac_objext \ 4102 conftest$ac_exeext conftest.$ac_ext 4103 LIBS=$ac_check_lib_save_LIBS 4104 fi 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 4106 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4107 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 4108 tcl_ok=yes 4109 else 4110 tcl_ok=no 4111 fi 4112 4113 if test "$tcl_ok" = yes; then 4114 SHLIB_CFLAGS="+z" 4115 SHLIB_LD="ld -b" 4116 SHLIB_LD_LIBS='${LIBS}' 4117 DL_OBJS="tclLoadShl.o" 4118 DL_LIBS="-ldld" 4119 LDFLAGS="$LDFLAGS -Wl,-E" 4120 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 4121 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 4122 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 4123 fi 4124 if test "$GCC" = "yes" ; then 4125 SHLIB_LD="gcc -shared" 4126 SHLIB_LD_LIBS='${LIBS}' 4127 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4128 fi 4129 4130 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 4131 #CFLAGS="$CFLAGS +DAportable" 4132 4133 # Check to enable 64-bit flags for compiler/linker 4134 if test "$do64bit" = "yes" ; then 4135 if test "$GCC" = "yes" ; then 4136 hpux_arch=`${CC} -dumpmachine` 4137 case $hpux_arch in 4138 hppa64*) 4139 # 64-bit gcc in use. Fix flags for GNU ld. 4140 do64bit_ok=yes 4141 SHLIB_LD="${CC} -shared" 4142 SHLIB_LD_LIBS='${LIBS}' 4143 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4144 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4145 ;; 4146 *) 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 4148 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4149 ;; 4150 esac 4151 else 4152 do64bit_ok=yes 4153 CFLAGS="$CFLAGS +DD64" 4154 LDFLAGS="$LDFLAGS +DD64" 4155 fi 4156 fi 4157 ;; 4158 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 4159 SHLIB_SUFFIX=".sl" 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 4161 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4162 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 4163 $as_echo_n "(cached) " >&6 4164 else 4165 ac_check_lib_save_LIBS=$LIBS 4166 LIBS="-ldld $LIBS" 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168 /* end confdefs.h. */ 4169 4170 /* Override any GCC internal prototype to avoid an error. 4171 Use char because int might match the return type of a GCC 4172 builtin and then its argument prototype would still apply. */ 4173 #ifdef __cplusplus 4174 extern "C" 4175 #endif 4176 char shl_load (); 4177 int 4178 main () 4179 { 4180 return shl_load (); 4181 ; 4182 return 0; 4183 } 4184 _ACEOF 4185 if ac_fn_c_try_link "$LINENO"; then : 4186 ac_cv_lib_dld_shl_load=yes 4187 else 4188 ac_cv_lib_dld_shl_load=no 4189 fi 4190 rm -f core conftest.err conftest.$ac_objext \ 4191 conftest$ac_exeext conftest.$ac_ext 4192 LIBS=$ac_check_lib_save_LIBS 4193 fi 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 4195 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4196 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 4197 tcl_ok=yes 4198 else 4199 tcl_ok=no 4200 fi 4201 4202 if test "$tcl_ok" = yes; then 4203 SHLIB_CFLAGS="+z" 4204 SHLIB_LD="ld -b" 4205 SHLIB_LD_LIBS="" 4206 DL_OBJS="tclLoadShl.o" 4207 DL_LIBS="-ldld" 4208 LDFLAGS="$LDFLAGS -Wl,-E" 4209 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 4210 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 4211 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 4212 fi 4213 ;; 4214 IRIX-4.*) 4215 SHLIB_CFLAGS="-G 0" 4216 SHLIB_SUFFIX=".a" 4217 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 4218 SHLIB_LD_LIBS='${LIBS}' 4219 DL_OBJS="tclLoadAout.o" 4220 DL_LIBS="" 4221 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 4222 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4223 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4224 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 4225 ;; 4226 IRIX-5.*) 4227 SHLIB_CFLAGS="" 4228 SHLIB_LD="ld -shared -rdata_shared" 4229 SHLIB_LD_LIBS='${LIBS}' 4230 SHLIB_SUFFIX=".so" 4231 DL_OBJS="tclLoadDl.o" 4232 DL_LIBS="" 4233 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4234 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4235 ;; 4236 IRIX-6.*) 4237 SHLIB_CFLAGS="" 4238 SHLIB_LD="ld -n32 -shared -rdata_shared" 4239 SHLIB_LD_LIBS='${LIBS}' 4240 SHLIB_SUFFIX=".so" 4241 DL_OBJS="tclLoadDl.o" 4242 DL_LIBS="" 4243 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4244 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4245 if test "$GCC" = "yes" ; then 4246 CFLAGS="$CFLAGS -mabi=n32" 4247 LDFLAGS="$LDFLAGS -mabi=n32" 4248 else 4249 case $system in 4250 IRIX-6.3) 4251 # Use to build 6.2 compatible binaries on 6.3. 4252 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 4253 ;; 4254 *) 4255 CFLAGS="$CFLAGS -n32" 4256 ;; 4257 esac 4258 LDFLAGS="$LDFLAGS -n32" 4259 fi 4260 ;; 4261 IRIX64-6.*) 4262 SHLIB_CFLAGS="" 4263 SHLIB_LD="ld -n32 -shared -rdata_shared" 4264 SHLIB_LD_LIBS='${LIBS}' 4265 SHLIB_SUFFIX=".so" 4266 DL_OBJS="tclLoadDl.o" 4267 DL_LIBS="" 4268 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4269 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4270 4271 # Check to enable 64-bit flags for compiler/linker 4272 4273 if test "$do64bit" = "yes" ; then 4274 if test "$GCC" = "yes" ; then 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 4276 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 4277 else 4278 do64bit_ok=yes 4279 SHLIB_LD="ld -64 -shared -rdata_shared" 4280 CFLAGS="$CFLAGS -64" 4281 LDFLAGS="$LDFLAGS -64" 4282 fi 4283 fi 4284 ;; 4285 Linux*) 4286 SHLIB_CFLAGS="-fPIC" 4287 SHLIB_LD_LIBS='${LIBS}' 4288 SHLIB_SUFFIX=".so" 4289 4290 CFLAGS_OPTIMIZE=-O2 4291 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 4292 # when you inline the string and math operations. Turn this off to 4293 # get rid of the warnings. 4294 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 4295 4296 if test "$have_dl" = yes; then 4297 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 4298 DL_OBJS="tclLoadDl.o" 4299 DL_LIBS="-ldl" 4300 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 4301 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4302 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4303 else 4304 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 4305 if test "x$ac_cv_header_dld_h" = x""yes; then : 4306 4307 SHLIB_LD="ld -shared" 4308 DL_OBJS="tclLoadDld.o" 4309 DL_LIBS="-ldld" 4310 CC_SEARCH_FLAGS="" 4311 LD_SEARCH_FLAGS="" 4312 fi 4313 4314 4315 fi 4316 if test "`uname -m`" = "alpha" ; then 4317 CFLAGS="$CFLAGS -mieee" 4318 fi 4319 if test $do64bit = yes; then 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 4321 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 4322 if test "${tcl_cv_cc_m64+set}" = set; then : 4323 $as_echo_n "(cached) " >&6 4324 else 4325 4326 hold_cflags=$CFLAGS 4327 CFLAGS="$CFLAGS -m64" 4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329 /* end confdefs.h. */ 4330 4331 int 4332 main () 4333 { 4334 4335 ; 4336 return 0; 4337 } 4338 _ACEOF 4339 if ac_fn_c_try_link "$LINENO"; then : 4340 tcl_cv_cc_m64=yes 4341 else 4342 tcl_cv_cc_m64=no 4343 fi 4344 rm -f core conftest.err conftest.$ac_objext \ 4345 conftest$ac_exeext conftest.$ac_ext 4346 CFLAGS=$hold_cflags 4347 fi 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 4349 $as_echo "$tcl_cv_cc_m64" >&6; } 4350 if test $tcl_cv_cc_m64 = yes; then 4351 CFLAGS="$CFLAGS -m64" 4352 do64bit_ok=yes 4353 fi 4354 fi 4355 4356 # The combo of gcc + glibc has a bug related 4357 # to inlining of functions like strtod(). The 4358 # -fno-builtin flag should address this problem 4359 # but it does not work. The -fno-inline flag 4360 # is kind of overkill but it works. 4361 # Disable inlining only when one of the 4362 # files in compat/*.c is being linked in. 4363 if test x"${LIBOBJS}" != x ; then 4364 CFLAGS="$CFLAGS -fno-inline" 4365 fi 4366 4367 # XIM peeking works under XFree86. 4368 $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h 4369 4370 4371 ;; 4372 GNU*) 4373 SHLIB_CFLAGS="-fPIC" 4374 SHLIB_LD_LIBS='${LIBS}' 4375 SHLIB_SUFFIX=".so" 4376 4377 if test "$have_dl" = yes; then 4378 SHLIB_LD="${CC} -shared" 4379 DL_OBJS="" 4380 DL_LIBS="-ldl" 4381 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 4382 CC_SEARCH_FLAGS="" 4383 LD_SEARCH_FLAGS="" 4384 else 4385 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 4386 if test "x$ac_cv_header_dld_h" = x""yes; then : 4387 4388 SHLIB_LD="ld -shared" 4389 DL_OBJS="" 4390 DL_LIBS="-ldld" 4391 CC_SEARCH_FLAGS="" 4392 LD_SEARCH_FLAGS="" 4393 fi 4394 4395 4396 fi 4397 if test "`uname -m`" = "alpha" ; then 4398 CFLAGS="$CFLAGS -mieee" 4399 fi 4400 ;; 4401 Lynx*) 4402 SHLIB_CFLAGS="-fPIC" 4403 SHLIB_LD_LIBS='${LIBS}' 4404 SHLIB_SUFFIX=".so" 4405 CFLAGS_OPTIMIZE=-02 4406 SHLIB_LD="${CC} -shared " 4407 DL_OBJS="tclLoadDl.o" 4408 DL_LIBS="-mshared -ldl" 4409 LD_FLAGS="-Wl,--export-dynamic" 4410 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4411 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4412 ;; 4413 MP-RAS-02*) 4414 SHLIB_CFLAGS="-K PIC" 4415 SHLIB_LD="cc -G" 4416 SHLIB_LD_LIBS="" 4417 SHLIB_SUFFIX=".so" 4418 DL_OBJS="tclLoadDl.o" 4419 DL_LIBS="-ldl" 4420 CC_SEARCH_FLAGS="" 4421 LD_SEARCH_FLAGS="" 4422 ;; 4423 MP-RAS-*) 4424 SHLIB_CFLAGS="-K PIC" 4425 SHLIB_LD="cc -G" 4426 SHLIB_LD_LIBS="" 4427 SHLIB_SUFFIX=".so" 4428 DL_OBJS="tclLoadDl.o" 4429 DL_LIBS="-ldl" 4430 LDFLAGS="$LDFLAGS -Wl,-Bexport" 4431 CC_SEARCH_FLAGS="" 4432 LD_SEARCH_FLAGS="" 4433 ;; 4434 NetBSD-*|FreeBSD-[1-2].*) 4435 # Not available on all versions: check for include file. 4436 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4437 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 4438 4439 # NetBSD/SPARC needs -fPIC, -fpic will not do. 4440 SHLIB_CFLAGS="-fPIC" 4441 SHLIB_LD="ld -Bshareable -x" 4442 SHLIB_LD_LIBS='${LIBS}' 4443 SHLIB_SUFFIX=".so" 4444 DL_OBJS="tclLoadDl.o" 4445 DL_LIBS="" 4446 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4447 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 4449 $as_echo_n "checking for ELF... " >&6; } 4450 if test "${tcl_cv_ld_elf+set}" = set; then : 4451 $as_echo_n "(cached) " >&6 4452 else 4453 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455 /* end confdefs.h. */ 4456 4457 #ifdef __ELF__ 4458 yes 4459 #endif 4460 4461 _ACEOF 4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4463 $EGREP "yes" >/dev/null 2>&1; then : 4464 tcl_cv_ld_elf=yes 4465 else 4466 tcl_cv_ld_elf=no 4467 fi 4468 rm -f conftest* 4469 4470 fi 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 4472 $as_echo "$tcl_cv_ld_elf" >&6; } 4473 if test $tcl_cv_ld_elf = yes; then 4474 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 4475 else 4476 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 4477 fi 4478 4479 else 4480 4481 SHLIB_CFLAGS="" 4482 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 4483 SHLIB_LD_LIBS='${LIBS}' 4484 SHLIB_SUFFIX=".a" 4485 DL_OBJS="tclLoadAout.o" 4486 DL_LIBS="" 4487 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4488 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4489 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4490 4491 fi 4492 4493 4494 4495 # FreeBSD doesn't handle version numbers with dots. 4496 4497 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4498 TCL_LIB_VERSIONS_OK=nodots 4499 ;; 4500 OpenBSD-*) 4501 case `arch -s` in 4502 m88k|vax) 4503 SHLIB_CFLAGS="" 4504 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 4505 SHLIB_LD_LIBS='${LIBS}' 4506 SHLIB_SUFFIX=".a" 4507 DL_OBJS="tclLoadAout.o" 4508 DL_LIBS="" 4509 LDFLAGS="" 4510 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4511 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4512 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4513 ;; 4514 *) 4515 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 4516 case `machine` in 4517 sparc|sparc64) 4518 SHLIB_CFLAGS="-fPIC";; 4519 *) 4520 SHLIB_CFLAGS="-fpic";; 4521 esac 4522 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 4523 SHLIB_LD_LIBS='${LIBS}' 4524 SHLIB_SUFFIX=".so" 4525 DL_OBJS="tclLoadDl.o" 4526 DL_LIBS="" 4527 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4528 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4529 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 4531 $as_echo_n "checking for ELF... " >&6; } 4532 if test "${tcl_cv_ld_elf+set}" = set; then : 4533 $as_echo_n "(cached) " >&6 4534 else 4535 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537 /* end confdefs.h. */ 4538 4539 #ifdef __ELF__ 4540 yes 4541 #endif 4542 4543 _ACEOF 4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4545 $EGREP "yes" >/dev/null 2>&1; then : 4546 tcl_cv_ld_elf=yes 4547 else 4548 tcl_cv_ld_elf=no 4549 fi 4550 rm -f conftest* 4551 4552 fi 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 4554 $as_echo "$tcl_cv_ld_elf" >&6; } 4555 if test $tcl_cv_ld_elf = yes; then 4556 LDFLAGS=-Wl,-export-dynamic 4557 else 4558 LDFLAGS="" 4559 fi 4560 ;; 4561 esac 4562 4563 # OpenBSD doesn't do version numbers with dots. 4564 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4565 TCL_LIB_VERSIONS_OK=nodots 4566 ;; 4567 FreeBSD-*) 4568 # FreeBSD 3.* and greater have ELF. 4569 SHLIB_CFLAGS="-fPIC" 4570 SHLIB_LD="ld -Bshareable -x" 4571 SHLIB_LD_LIBS='${LIBS}' 4572 SHLIB_SUFFIX=".so" 4573 DL_OBJS="tclLoadDl.o" 4574 DL_LIBS="" 4575 LDFLAGS="$LDFLAGS -export-dynamic" 4576 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4577 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4578 if test "${TCL_THREADS}" = "1" ; then 4579 # The -pthread needs to go in the CFLAGS, not LIBS 4580 LIBS=`echo $LIBS | sed s/-pthread//` 4581 CFLAGS="$CFLAGS -pthread" 4582 LDFLAGS="$LDFLAGS -pthread" 4583 fi 4584 case $system in 4585 FreeBSD-3.*) 4586 # FreeBSD-3 doesn't handle version numbers with dots. 4587 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4588 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 4589 TCL_LIB_VERSIONS_OK=nodots 4590 ;; 4591 esac 4592 ;; 4593 Darwin-*) 4594 CFLAGS_OPTIMIZE="-Os" 4595 SHLIB_CFLAGS="-fno-common" 4596 # To avoid discrepancies between what headers configure sees during 4597 # preprocessing tests and compiling tests, move any -isysroot and 4598 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 4599 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 4600 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 4601 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 4602 CFLAGS="`echo " ${CFLAGS}" | \ 4603 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 4604 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 4605 if test $do64bit = yes; then 4606 case `arch` in 4607 ppc) 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 4609 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 4610 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then : 4611 $as_echo_n "(cached) " >&6 4612 else 4613 4614 hold_cflags=$CFLAGS 4615 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4617 /* end confdefs.h. */ 4618 4619 int 4620 main () 4621 { 4622 4623 ; 4624 return 0; 4625 } 4626 _ACEOF 4627 if ac_fn_c_try_link "$LINENO"; then : 4628 tcl_cv_cc_arch_ppc64=yes 4629 else 4630 tcl_cv_cc_arch_ppc64=no 4631 fi 4632 rm -f core conftest.err conftest.$ac_objext \ 4633 conftest$ac_exeext conftest.$ac_ext 4634 CFLAGS=$hold_cflags 4635 fi 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 4637 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 4638 if test $tcl_cv_cc_arch_ppc64 = yes; then 4639 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 4640 do64bit_ok=yes 4641 fi;; 4642 i386) 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 4644 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 4645 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then : 4646 $as_echo_n "(cached) " >&6 4647 else 4648 4649 hold_cflags=$CFLAGS 4650 CFLAGS="$CFLAGS -arch x86_64" 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652 /* end confdefs.h. */ 4653 4654 int 4655 main () 4656 { 4657 4658 ; 4659 return 0; 4660 } 4661 _ACEOF 4662 if ac_fn_c_try_link "$LINENO"; then : 4663 tcl_cv_cc_arch_x86_64=yes 4664 else 4665 tcl_cv_cc_arch_x86_64=no 4666 fi 4667 rm -f core conftest.err conftest.$ac_objext \ 4668 conftest$ac_exeext conftest.$ac_ext 4669 CFLAGS=$hold_cflags 4670 fi 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 4672 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 4673 if test $tcl_cv_cc_arch_x86_64 = yes; then 4674 CFLAGS="$CFLAGS -arch x86_64" 4675 do64bit_ok=yes 4676 fi;; 4677 *) 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 4679 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 4680 esac 4681 else 4682 # Check for combined 32-bit and 64-bit fat build 4683 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ 4684 echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ 4685 fat_32_64=yes 4686 fi 4687 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 4689 $as_echo_n "checking if ld accepts -single_module flag... " >&6; } 4690 if test "${tcl_cv_ld_single_module+set}" = set; then : 4691 $as_echo_n "(cached) " >&6 4692 else 4693 4694 hold_ldflags=$LDFLAGS 4695 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4697 /* end confdefs.h. */ 4698 4699 int 4700 main () 4701 { 4702 int i; 4703 ; 4704 return 0; 4705 } 4706 _ACEOF 4707 if ac_fn_c_try_link "$LINENO"; then : 4708 tcl_cv_ld_single_module=yes 4709 else 4710 tcl_cv_ld_single_module=no 4711 fi 4712 rm -f core conftest.err conftest.$ac_objext \ 4713 conftest$ac_exeext conftest.$ac_ext 4714 LDFLAGS=$hold_ldflags 4715 fi 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 4717 $as_echo "$tcl_cv_ld_single_module" >&6; } 4718 if test $tcl_cv_ld_single_module = yes; then 4719 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 4720 fi 4721 SHLIB_LD_LIBS='${LIBS}' 4722 SHLIB_SUFFIX=".dylib" 4723 DL_OBJS="tclLoadDyld.o" 4724 DL_LIBS="" 4725 # Don't use -prebind when building for Mac OS X 10.4 or later only: 4726 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 4727 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ 4728 LDFLAGS="$LDFLAGS -prebind" 4729 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 4731 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 4732 if test "${tcl_cv_ld_search_paths_first+set}" = set; then : 4733 $as_echo_n "(cached) " >&6 4734 else 4735 4736 hold_ldflags=$LDFLAGS 4737 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739 /* end confdefs.h. */ 4740 4741 int 4742 main () 4743 { 4744 int i; 4745 ; 4746 return 0; 4747 } 4748 _ACEOF 4749 if ac_fn_c_try_link "$LINENO"; then : 4750 tcl_cv_ld_search_paths_first=yes 4751 else 4752 tcl_cv_ld_search_paths_first=no 4753 fi 4754 rm -f core conftest.err conftest.$ac_objext \ 4755 conftest$ac_exeext conftest.$ac_ext 4756 LDFLAGS=$hold_ldflags 4757 fi 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 4759 $as_echo "$tcl_cv_ld_search_paths_first" >&6; } 4760 if test $tcl_cv_ld_search_paths_first = yes; then 4761 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 4762 fi 4763 CC_SEARCH_FLAGS="" 4764 LD_SEARCH_FLAGS="" 4765 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 4766 PLAT_OBJS=\$\(MAC\_OSX_OBJS\) 4767 PLAT_SRCS=\$\(MAC\_OSX_SRCS\) 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 4769 $as_echo_n "checking whether to use CoreFoundation... " >&6; } 4770 # Check whether --enable-corefoundation was given. 4771 if test "${enable_corefoundation+set}" = set; then : 4772 enableval=$enable_corefoundation; tcl_corefoundation=$enableval 4773 else 4774 tcl_corefoundation=yes 4775 fi 4776 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 4778 $as_echo "$tcl_corefoundation" >&6; } 4779 if test $tcl_corefoundation = yes; then 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 4781 $as_echo_n "checking for CoreFoundation.framework... " >&6; } 4782 if test "${tcl_cv_lib_corefoundation+set}" = set; then : 4783 $as_echo_n "(cached) " >&6 4784 else 4785 4786 hold_libs=$LIBS 4787 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 4788 # On Tiger there is no 64-bit CF, so remove 64-bit archs 4789 # from CFLAGS et al. while testing for presence of CF. 4790 # 64-bit CF is disabled in tclUnixPort.h if necessary. 4791 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 4792 done; fi 4793 LIBS="$LIBS -framework CoreFoundation" 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795 /* end confdefs.h. */ 4796 #include <CoreFoundation/CoreFoundation.h> 4797 int 4798 main () 4799 { 4800 CFBundleRef b = CFBundleGetMainBundle(); 4801 ; 4802 return 0; 4803 } 4804 _ACEOF 4805 if ac_fn_c_try_link "$LINENO"; then : 4806 tcl_cv_lib_corefoundation=yes 4807 else 4808 tcl_cv_lib_corefoundation=no 4809 fi 4810 rm -f core conftest.err conftest.$ac_objext \ 4811 conftest$ac_exeext conftest.$ac_ext 4812 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 4813 eval $v'="$hold_'$v'"' 4814 done; fi; LIBS=$hold_libs 4815 fi 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 4817 $as_echo "$tcl_cv_lib_corefoundation" >&6; } 4818 if test $tcl_cv_lib_corefoundation = yes; then 4819 LIBS="$LIBS -framework CoreFoundation" 4820 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h 4821 4822 else 4823 tcl_corefoundation=no 4824 fi 4825 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 4827 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } 4828 if test "${tcl_cv_lib_corefoundation_64+set}" = set; then : 4829 $as_echo_n "(cached) " >&6 4830 else 4831 4832 for v in CFLAGS CPPFLAGS LDFLAGS; do 4833 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 4834 done 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4836 /* end confdefs.h. */ 4837 #include <CoreFoundation/CoreFoundation.h> 4838 int 4839 main () 4840 { 4841 CFBundleRef b = CFBundleGetMainBundle(); 4842 ; 4843 return 0; 4844 } 4845 _ACEOF 4846 if ac_fn_c_try_link "$LINENO"; then : 4847 tcl_cv_lib_corefoundation_64=yes 4848 else 4849 tcl_cv_lib_corefoundation_64=no 4850 fi 4851 rm -f core conftest.err conftest.$ac_objext \ 4852 conftest$ac_exeext conftest.$ac_ext 4853 for v in CFLAGS CPPFLAGS LDFLAGS; do 4854 eval $v'="$hold_'$v'"' 4855 done 4856 fi 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 4858 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } 4859 if test $tcl_cv_lib_corefoundation_64 = no; then 4860 $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h 4861 4862 fi 4863 fi 4864 fi 4865 $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h 4866 4867 ;; 4868 NEXTSTEP-*) 4869 SHLIB_CFLAGS="" 4870 SHLIB_LD="cc -nostdlib -r" 4871 SHLIB_LD_LIBS="" 4872 SHLIB_SUFFIX=".so" 4873 DL_OBJS="tclLoadNext.o" 4874 DL_LIBS="" 4875 CC_SEARCH_FLAGS="" 4876 LD_SEARCH_FLAGS="" 4877 ;; 4878 OS/390-*) 4879 CFLAGS_OPTIMIZE="" # Optimizer is buggy 4880 $as_echo "#define _OE_SOCKETS 1" >>confdefs.h 4881 # needed in sys/socket.h 4882 ;; 4883 OSF1-1.0|OSF1-1.1|OSF1-1.2) 4884 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 4885 SHLIB_CFLAGS="" 4886 # Hack: make package name same as library name 4887 SHLIB_LD='ld -R -export :' 4888 SHLIB_LD_LIBS="" 4889 SHLIB_SUFFIX=".so" 4890 DL_OBJS="tclLoadOSF.o" 4891 DL_LIBS="" 4892 CC_SEARCH_FLAGS="" 4893 LD_SEARCH_FLAGS="" 4894 ;; 4895 OSF1-1.*) 4896 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 4897 SHLIB_CFLAGS="-fPIC" 4898 if test "$SHARED_BUILD" = "1" ; then 4899 SHLIB_LD="ld -shared" 4900 else 4901 SHLIB_LD="ld -non_shared" 4902 fi 4903 SHLIB_LD_LIBS="" 4904 SHLIB_SUFFIX=".so" 4905 DL_OBJS="tclLoadDl.o" 4906 DL_LIBS="" 4907 CC_SEARCH_FLAGS="" 4908 LD_SEARCH_FLAGS="" 4909 ;; 4910 OSF1-V*) 4911 # Digital OSF/1 4912 SHLIB_CFLAGS="" 4913 if test "$SHARED_BUILD" = "1" ; then 4914 SHLIB_LD='ld -shared -expect_unresolved "*"' 4915 else 4916 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 4917 fi 4918 SHLIB_LD_LIBS="" 4919 SHLIB_SUFFIX=".so" 4920 DL_OBJS="tclLoadDl.o" 4921 DL_LIBS="" 4922 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4923 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4924 if test "$GCC" = "yes" ; then 4925 CFLAGS="$CFLAGS -mieee" 4926 else 4927 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 4928 fi 4929 # see pthread_intro(3) for pthread support on osf1, k.furukawa 4930 if test "${TCL_THREADS}" = "1" ; then 4931 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 4932 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 4933 LIBS=`echo $LIBS | sed s/-lpthreads//` 4934 if test "$GCC" = "yes" ; then 4935 LIBS="$LIBS -lpthread -lmach -lexc" 4936 else 4937 CFLAGS="$CFLAGS -pthread" 4938 LDFLAGS="$LDFLAGS -pthread" 4939 fi 4940 fi 4941 4942 ;; 4943 QNX-6*) 4944 # QNX RTP 4945 # This may work for all QNX, but it was only reported for v6. 4946 SHLIB_CFLAGS="-fPIC" 4947 SHLIB_LD="ld -Bshareable -x" 4948 SHLIB_LD_LIBS="" 4949 SHLIB_SUFFIX=".so" 4950 DL_OBJS="tclLoadDl.o" 4951 # dlopen is in -lc on QNX 4952 DL_LIBS="" 4953 CC_SEARCH_FLAGS="" 4954 LD_SEARCH_FLAGS="" 4955 ;; 4956 RISCos-*) 4957 SHLIB_CFLAGS="-G 0" 4958 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 4959 SHLIB_LD_LIBS='${LIBS}' 4960 SHLIB_SUFFIX=".a" 4961 DL_OBJS="tclLoadAout.o" 4962 DL_LIBS="" 4963 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 4964 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4965 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4966 ;; 4967 SCO_SV-3.2*) 4968 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 4969 # this test works, since "uname -s" was non-standard in 3.2.4 and 4970 # below. 4971 if test "$GCC" = "yes" ; then 4972 SHLIB_CFLAGS="-fPIC -melf" 4973 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 4974 else 4975 SHLIB_CFLAGS="-Kpic -belf" 4976 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 4977 fi 4978 SHLIB_LD="ld -G" 4979 SHLIB_LD_LIBS="" 4980 SHLIB_SUFFIX=".so" 4981 DL_OBJS="tclLoadDl.o" 4982 DL_LIBS="" 4983 CC_SEARCH_FLAGS="" 4984 LD_SEARCH_FLAGS="" 4985 ;; 4986 SINIX*5.4*) 4987 SHLIB_CFLAGS="-K PIC" 4988 SHLIB_LD="cc -G" 4989 SHLIB_LD_LIBS="" 4990 SHLIB_SUFFIX=".so" 4991 DL_OBJS="tclLoadDl.o" 4992 DL_LIBS="-ldl" 4993 CC_SEARCH_FLAGS="" 4994 LD_SEARCH_FLAGS="" 4995 ;; 4996 SunOS-4*) 4997 SHLIB_CFLAGS="-PIC" 4998 SHLIB_LD="ld" 4999 SHLIB_LD_LIBS="" 5000 SHLIB_SUFFIX=".so" 5001 DL_OBJS="tclLoadDl.o" 5002 DL_LIBS="-ldl" 5003 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5004 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5005 5006 # SunOS can't handle version numbers with dots in them in library 5007 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 5008 # requires an extra version number at the end of .so file names. 5009 # So, the library has to have a name like libtcl75.so.1.0 5010 5011 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 5012 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 5013 TCL_LIB_VERSIONS_OK=nodots 5014 ;; 5015 SunOS-5.[0-6]) 5016 # Careful to not let 5.10+ fall into this case 5017 5018 # Note: If _REENTRANT isn't defined, then Solaris 5019 # won't define thread-safe library routines. 5020 5021 $as_echo "#define _REENTRANT 1" >>confdefs.h 5022 5023 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5024 5025 5026 SHLIB_CFLAGS="-KPIC" 5027 5028 # Note: need the LIBS below, otherwise Tk won't find Tcl's 5029 # symbols when dynamically loaded into tclsh. 5030 5031 SHLIB_LD_LIBS='${LIBS}' 5032 SHLIB_SUFFIX=".so" 5033 DL_OBJS="tclLoadDl.o" 5034 DL_LIBS="-ldl" 5035 if test "$GCC" = "yes" ; then 5036 SHLIB_LD="$CC -shared" 5037 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5038 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5039 else 5040 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 5041 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5042 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5043 fi 5044 ;; 5045 SunOS-5*) 5046 # Note: If _REENTRANT isn't defined, then Solaris 5047 # won't define thread-safe library routines. 5048 5049 $as_echo "#define _REENTRANT 1" >>confdefs.h 5050 5051 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5052 5053 5054 SHLIB_CFLAGS="-KPIC" 5055 5056 # Check to enable 64-bit flags for compiler/linker 5057 if test "$do64bit" = "yes" ; then 5058 arch=`isainfo` 5059 if test "$arch" = "sparcv9 sparc" ; then 5060 if test "$GCC" = "yes" ; then 5061 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 5063 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 5064 else 5065 do64bit_ok=yes 5066 CFLAGS="$CFLAGS -m64 -mcpu=v9" 5067 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 5068 SHLIB_CFLAGS="-fPIC" 5069 fi 5070 else 5071 do64bit_ok=yes 5072 if test "$do64bitVIS" = "yes" ; then 5073 CFLAGS="$CFLAGS -xarch=v9a" 5074 LDFLAGS="$LDFLAGS -xarch=v9a" 5075 else 5076 CFLAGS="$CFLAGS -xarch=v9" 5077 LDFLAGS="$LDFLAGS -xarch=v9" 5078 fi 5079 # Solaris 64 uses this as well 5080 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 5081 fi 5082 elif test "$arch" = "amd64 i386" ; then 5083 if test "$GCC" = "yes" ; then 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 5085 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5086 else 5087 do64bit_ok=yes 5088 CFLAGS="$CFLAGS -xarch=amd64" 5089 LDFLAGS="$LDFLAGS -xarch=amd64" 5090 fi 5091 else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 5093 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 5094 fi 5095 fi 5096 5097 # Note: need the LIBS below, otherwise Tk won't find Tcl's 5098 # symbols when dynamically loaded into tclsh. 5099 5100 SHLIB_LD_LIBS='${LIBS}' 5101 SHLIB_SUFFIX=".so" 5102 DL_OBJS="tclLoadDl.o" 5103 DL_LIBS="-ldl" 5104 if test "$GCC" = "yes" ; then 5105 SHLIB_LD="$CC -shared" 5106 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5107 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5108 if test "$do64bit_ok" = "yes" ; then 5109 # We need to specify -static-libgcc or we need to 5110 # add the path to the sparv9 libgcc. 5111 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 5112 # for finding sparcv9 libgcc, get the regular libgcc 5113 # path, remove so name and append 'sparcv9' 5114 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 5115 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 5116 fi 5117 else 5118 case $system in 5119 SunOS-5.[1-9][0-9]*) 5120 SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; 5121 *) 5122 SHLIB_LD="/usr/ccs/bin/ld -G -z text";; 5123 esac 5124 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5125 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5126 fi 5127 ;; 5128 ULTRIX-4.*) 5129 SHLIB_CFLAGS="-G 0" 5130 SHLIB_SUFFIX=".a" 5131 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 5132 SHLIB_LD_LIBS='${LIBS}' 5133 DL_OBJS="tclLoadAout.o" 5134 DL_LIBS="" 5135 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 5136 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5137 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5138 if test "$GCC" != "yes" ; then 5139 CFLAGS="$CFLAGS -DHAVE_TZSET -std1" 5140 fi 5141 ;; 5142 UNIX_SV* | UnixWare-5*) 5143 SHLIB_CFLAGS="-KPIC" 5144 SHLIB_LD="cc -G" 5145 SHLIB_LD_LIBS="" 5146 SHLIB_SUFFIX=".so" 5147 DL_OBJS="tclLoadDl.o" 5148 DL_LIBS="-ldl" 5149 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 5150 # that don't grok the -Bexport option. Test that it does. 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 5152 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 5153 if test "${tcl_cv_ld_Bexport+set}" = set; then : 5154 $as_echo_n "(cached) " >&6 5155 else 5156 5157 hold_ldflags=$LDFLAGS 5158 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160 /* end confdefs.h. */ 5161 5162 int 5163 main () 5164 { 5165 int i; 5166 ; 5167 return 0; 5168 } 5169 _ACEOF 5170 if ac_fn_c_try_link "$LINENO"; then : 5171 tcl_cv_ld_Bexport=yes 5172 else 5173 tcl_cv_ld_Bexport=no 5174 fi 5175 rm -f core conftest.err conftest.$ac_objext \ 5176 conftest$ac_exeext conftest.$ac_ext 5177 LDFLAGS=$hold_ldflags 5178 fi 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 5180 $as_echo "$tcl_cv_ld_Bexport" >&6; } 5181 if test $tcl_cv_ld_Bexport = yes; then 5182 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5183 fi 5184 CC_SEARCH_FLAGS="" 5185 LD_SEARCH_FLAGS="" 5186 ;; 5187 esac 5188 5189 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 5191 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 5192 fi 5193 5194 5195 5196 5197 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic 5198 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, 5199 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need 5200 # to determine which of several header files defines the a.out file 5201 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we 5202 # support only a file format that is more or less version-7-compatible. 5203 # In particular, 5204 # - a.out files must begin with `struct exec'. 5205 # - the N_TXTOFF on the `struct exec' must compute the seek address 5206 # of the text segment 5207 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss 5208 # and a_entry fields. 5209 # The following compilation should succeed if and only if either sys/exec.h 5210 # or a.out.h is usable for the purpose. 5211 # 5212 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the 5213 # `struct exec' includes a second header that contains information that 5214 # duplicates the v7 fields that are needed. 5215 5216 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 5218 $as_echo_n "checking sys/exec.h... " >&6; } 5219 if test "${tcl_cv_sysexec_h+set}" = set; then : 5220 $as_echo_n "(cached) " >&6 5221 else 5222 5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5224 /* end confdefs.h. */ 5225 #include <sys/exec.h> 5226 int 5227 main () 5228 { 5229 5230 struct exec foo; 5231 unsigned long seek; 5232 int flag; 5233 #if defined(__mips) || defined(mips) 5234 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 5235 #else 5236 seek = N_TXTOFF (foo); 5237 #endif 5238 flag = (foo.a_magic == OMAGIC); 5239 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 5240 5241 ; 5242 return 0; 5243 } 5244 _ACEOF 5245 if ac_fn_c_try_compile "$LINENO"; then : 5246 tcl_cv_sysexec_h=usable 5247 else 5248 tcl_cv_sysexec_h=unusable 5249 fi 5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5251 fi 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 5253 $as_echo "$tcl_cv_sysexec_h" >&6; } 5254 if test $tcl_cv_sysexec_h = usable; then 5255 $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h 5256 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 5259 $as_echo_n "checking a.out.h... " >&6; } 5260 if test "${tcl_cv_aout_h+set}" = set; then : 5261 $as_echo_n "(cached) " >&6 5262 else 5263 5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265 /* end confdefs.h. */ 5266 #include <a.out.h> 5267 int 5268 main () 5269 { 5270 5271 struct exec foo; 5272 unsigned long seek; 5273 int flag; 5274 #if defined(__mips) || defined(mips) 5275 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 5276 #else 5277 seek = N_TXTOFF (foo); 5278 #endif 5279 flag = (foo.a_magic == OMAGIC); 5280 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 5281 5282 ; 5283 return 0; 5284 } 5285 _ACEOF 5286 if ac_fn_c_try_compile "$LINENO"; then : 5287 tcl_cv_aout_h=usable 5288 else 5289 tcl_cv_aout_h=unusable 5290 fi 5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5292 fi 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 5294 $as_echo "$tcl_cv_aout_h" >&6; } 5295 if test $tcl_cv_aout_h = usable; then 5296 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h 5297 5298 else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 5300 $as_echo_n "checking sys/exec_aout.h... " >&6; } 5301 if test "${tcl_cv_sysexecaout_h+set}" = set; then : 5302 $as_echo_n "(cached) " >&6 5303 else 5304 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306 /* end confdefs.h. */ 5307 #include <sys/exec_aout.h> 5308 int 5309 main () 5310 { 5311 5312 struct exec foo; 5313 unsigned long seek; 5314 int flag; 5315 #if defined(__mips) || defined(mips) 5316 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 5317 #else 5318 seek = N_TXTOFF (foo); 5319 #endif 5320 flag = (foo.a_midmag == OMAGIC); 5321 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 5322 5323 ; 5324 return 0; 5325 } 5326 _ACEOF 5327 if ac_fn_c_try_compile "$LINENO"; then : 5328 tcl_cv_sysexecaout_h=usable 5329 else 5330 tcl_cv_sysexecaout_h=unusable 5331 fi 5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5333 fi 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 5335 $as_echo "$tcl_cv_sysexecaout_h" >&6; } 5336 if test $tcl_cv_sysexecaout_h = usable; then 5337 $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h 5338 5339 else 5340 DL_OBJS="" 5341 fi 5342 fi 5343 fi 5344 fi 5345 5346 # Step 5: disable dynamic loading if requested via a command-line switch. 5347 5348 # Check whether --enable-load was given. 5349 if test "${enable_load+set}" = set; then : 5350 enableval=$enable_load; tcl_ok=$enableval 5351 else 5352 tcl_ok=yes 5353 fi 5354 5355 if test "$tcl_ok" = "no"; then 5356 DL_OBJS="" 5357 fi 5358 5359 if test "x$DL_OBJS" != "x" ; then 5360 BUILD_DLTEST="\$(DLTEST_TARGETS)" 5361 else 5362 echo "Can't figure out how to do dynamic loading or shared libraries" 5363 echo "on this system." 5364 SHLIB_CFLAGS="" 5365 SHLIB_LD="" 5366 SHLIB_SUFFIX="" 5367 DL_OBJS="tclLoadNone.o" 5368 DL_LIBS="" 5369 LDFLAGS="$LDFLAGS_ORIG" 5370 CC_SEARCH_FLAGS="" 5371 LD_SEARCH_FLAGS="" 5372 BUILD_DLTEST="" 5373 fi 5374 5375 # If we're running gcc, then change the C flags for compiling shared 5376 # libraries to the right flags for gcc, instead of those for the 5377 # standard manufacturer compiler. 5378 5379 if test "$DL_OBJS" != "tclLoadNone.o" ; then 5380 if test "$GCC" = "yes" ; then 5381 case $system in 5382 AIX-*) 5383 ;; 5384 BSD/OS*) 5385 ;; 5386 IRIX*) 5387 ;; 5388 NetBSD-*|FreeBSD-*|OpenBSD-*) 5389 ;; 5390 Darwin-*) 5391 ;; 5392 RISCos-*) 5393 ;; 5394 SCO_SV-3.2*) 5395 ;; 5396 ULTRIX-4.*) 5397 ;; 5398 *) 5399 SHLIB_CFLAGS="-fPIC" 5400 ;; 5401 esac 5402 fi 5403 fi 5404 5405 if test "$SHARED_LIB_SUFFIX" = "" ; then 5406 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' 5407 fi 5408 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 5409 UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 5410 fi 5411 5412 if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then 5413 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 5414 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 5415 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 5416 else 5417 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 5418 5419 if test "$RANLIB" = "" ; then 5420 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 5421 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 5422 else 5423 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 5424 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' 5425 fi 5426 5427 fi 5428 5429 5430 # Stub lib does not depend on shared/static configuration 5431 if test "$RANLIB" = "" ; then 5432 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 5433 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' 5434 else 5435 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 5436 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' 5437 fi 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 5472 $as_echo_n "checking how to build libraries... " >&6; } 5473 # Check whether --enable-shared was given. 5474 if test "${enable_shared+set}" = set; then : 5475 enableval=$enable_shared; tcl_ok=$enableval 5476 else 5477 tcl_ok=yes 5478 fi 5479 5480 5481 if test "${enable_shared+set}" = set; then 5482 enableval="$enable_shared" 5483 tcl_ok=$enableval 5484 else 5485 tcl_ok=yes 5486 fi 5487 5488 if test "$tcl_ok" = "yes" ; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 5490 $as_echo "shared" >&6; } 5491 SHARED_BUILD=1 5492 else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 5494 $as_echo "static" >&6; } 5495 SHARED_BUILD=0 5496 $as_echo "#define STATIC_BUILD 1" >>confdefs.h 5497 5498 fi 5499 5500 5501 5502 5503 5504 5505 5506 5507 3002 #SC_CONFIG_CFLAGS 3003 #SC_ENABLE_SHARED 5508 3004 5509 3005 gui_with_tcl="" … … 5518 3014 done 5519 3015 if test "x${make_command}" = "x" ; then 5520 as_fn_error "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 53016 as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 5521 3017 fi 5522 3018 MAKE=${make_command} … … 5623 3119 5624 3120 5625 5626 5627 5628 5629 3121 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 5630 3122 . ${exec_prefix}/lib/tclConfig.sh 5631 3123 fi 5632 if test -f "${exec_prefix}/lib/t clConfig.sh" ; then3124 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then 5633 3125 . ${exec_prefix}/lib/tkConfig.sh 5634 3126 fi 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 5635 3140 5636 3141 … … 5702 3207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5703 3208 if test -w "$cache_file"; then 5704 test "x$cache_file" != "x/dev/null" &&3209 if test "x$cache_file" != "x/dev/null"; then 5705 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5706 3211 $as_echo "$as_me: updating cache $cache_file" >&6;} 5707 cat confcache >$cache_file 3212 if test ! -f "$cache_file" || test -h "$cache_file"; then 3213 cat confcache >"$cache_file" 3214 else 3215 case $cache_file in #( 3216 */* | ?:*) 3217 mv -f confcache "$cache_file"$$ && 3218 mv -f "$cache_file"$$ "$cache_file" ;; #( 3219 *) 3220 mv -f confcache "$cache_file" ;; 3221 esac 3222 fi 3223 fi 5708 3224 else 5709 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 … … 5757 3273 ac_libobjs= 5758 3274 ac_ltlibobjs= 3275 U= 5759 3276 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5760 3277 # 1. Remove the extension, and $U if already installed. … … 5772 3289 5773 3290 5774 : ${CONFIG_STATUS=./config.status}3291 : "${CONFIG_STATUS=./config.status}" 5775 3292 ac_write_fail=0 5776 3293 ac_clean_files_save=$ac_clean_files … … 5873 3390 5874 3391 # Find who we are. Look in the path if we contain no directory separator. 3392 as_myself= 5875 3393 case $0 in #(( 5876 3394 *[\\/]* ) as_myself=$0 ;; … … 5918 3436 5919 3437 5920 # as_fn_error ERROR [LINENO LOG_FD]5921 # --------------------------------- 3438 # as_fn_error STATUS ERROR [LINENO LOG_FD] 3439 # ---------------------------------------- 5922 3440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5923 3441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5924 # script with status $?, using 1 if that was 0.3442 # script with STATUS, using 1 if that was 0. 5925 3443 as_fn_error () 5926 3444 { 5927 as_status=$ ?; test $as_status -eq 0 && as_status=15928 if test "$ 3"; then5929 as_lineno=${as_lineno-"$ 2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack5930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 1" >&$33445 as_status=$1; test $as_status -eq 0 && as_status=1 3446 if test "$4"; then 3447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5931 3449 fi 5932 $as_echo "$as_me: error: $ 1" >&23450 $as_echo "$as_me: error: $2" >&2 5933 3451 as_fn_exit $as_status 5934 3452 } # as_fn_error … … 6068 3586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6069 3587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6070 # In both cases, we have to default to `cp -p '.3588 # In both cases, we have to default to `cp -pR'. 6071 3589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6072 as_ln_s='cp -p '3590 as_ln_s='cp -pR' 6073 3591 elif ln conf$$.file conf$$ 2>/dev/null; then 6074 3592 as_ln_s=ln 6075 3593 else 6076 as_ln_s='cp -p '3594 as_ln_s='cp -pR' 6077 3595 fi 6078 3596 else 6079 as_ln_s='cp -p '3597 as_ln_s='cp -pR' 6080 3598 fi 6081 3599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file … … 6126 3644 done 6127 3645 test -z "$as_dirs" || eval "mkdir $as_dirs" 6128 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"3646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 6129 3647 6130 3648 … … 6137 3655 fi 6138 3656 6139 if test -x / >/dev/null 2>&1; then 6140 as_test_x='test -x' 6141 else 6142 if ls -dL / >/dev/null 2>&1; then 6143 as_ls_L_option=L 6144 else 6145 as_ls_L_option= 6146 fi 6147 as_test_x=' 6148 eval sh -c '\'' 6149 if test -d "$1"; then 6150 test -d "$1/."; 6151 else 6152 case $1 in #( 6153 -*)set "./$1";; 6154 esac; 6155 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 6156 ???[sx]*):;;*)false;;esac;fi 6157 '\'' sh 6158 ' 6159 fi 6160 as_executable_p=$as_test_x 3657 3658 # as_fn_executable_p FILE 3659 # ----------------------- 3660 # Test if FILE is an executable regular file. 3661 as_fn_executable_p () 3662 { 3663 test -f "$1" && test -x "$1" 3664 } # as_fn_executable_p 3665 as_test_x='test -x' 3666 as_executable_p=as_fn_executable_p 6161 3667 6162 3668 # Sed expression to map a string onto a valid CPP name. … … 6179 3685 # values after options handling. 6180 3686 ac_log=" 6181 This file was extended by RapptureGUI $as_me 1. 1, which was6182 generated by GNU Autoconf 2.6 4. Invocation command line was3687 This file was extended by RapptureGUI $as_me 1.4, which was 3688 generated by GNU Autoconf 2.69. Invocation command line was 6183 3689 6184 3690 CONFIG_FILES = $CONFIG_FILES … … 6215 3721 -h, --help print this help, then exit 6216 3722 -V, --version print version number and configuration settings, then exit 3723 --config print configuration, then exit 6217 3724 -q, --quiet, --silent 6218 3725 do not print progress messages … … 6229 3736 _ACEOF 6230 3737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3738 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6231 3739 ac_cs_version="\\ 6232 RapptureGUI config.status 1. 16233 configured by $0, generated by GNU Autoconf 2.6 4,6234 with options \\" `$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"6235 6236 Copyright (C) 20 09Free Software Foundation, Inc.3740 RapptureGUI config.status 1.4 3741 configured by $0, generated by GNU Autoconf 2.69, 3742 with options \\"\$ac_cs_config\\" 3743 3744 Copyright (C) 2012 Free Software Foundation, Inc. 6237 3745 This config.status script is free software; the Free Software Foundation 6238 3746 gives unlimited permission to copy, distribute and modify it." … … 6251 3759 do 6252 3760 case $1 in 6253 --*= *)3761 --*=?*) 6254 3762 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6255 3763 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3764 ac_shift=: 3765 ;; 3766 --*=) 3767 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3768 ac_optarg= 6256 3769 ac_shift=: 6257 3770 ;; … … 6269 3782 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6270 3783 $as_echo "$ac_cs_version"; exit ;; 3784 --config | --confi | --conf | --con | --co | --c ) 3785 $as_echo "$ac_cs_config"; exit ;; 6271 3786 --debug | --debu | --deb | --de | --d | -d ) 6272 3787 debug=: ;; … … 6275 3790 case $ac_optarg in 6276 3791 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 3792 '') as_fn_error $? "missing file argument" ;; 6277 3793 esac 6278 3794 as_fn_append CONFIG_FILES " '$ac_optarg'" … … 6285 3801 6286 3802 # This is an error. 6287 -*) as_fn_error "unrecognized option: \`$1'3803 -*) as_fn_error $? "unrecognized option: \`$1' 6288 3804 Try \`$0 --help' for more information." ;; 6289 3805 … … 6305 3821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6306 3822 if \$ac_cs_recheck; then 6307 set X '$SHELL''$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion3823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6308 3824 shift 6309 3825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 … … 6349 3865 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 6350 3866 6351 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;3867 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6352 3868 esac 6353 3869 done … … 6370 3886 $debug || 6371 3887 { 6372 tmp= 3888 tmp= ac_tmp= 6373 3889 trap 'exit_status=$? 6374 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 3890 : "${ac_tmp:=$tmp}" 3891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6375 3892 ' 0 6376 3893 trap 'as_fn_exit 1' 1 2 13 15 … … 6380 3897 { 6381 3898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6382 test - n "$tmp" && test -d "$tmp"3899 test -d "$tmp" 6383 3900 } || 6384 3901 { 6385 3902 tmp=./conf$$-$RANDOM 6386 3903 (umask 077 && mkdir "$tmp") 6387 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 3904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 3905 ac_tmp=$tmp 6388 3906 6389 3907 # Set up the scripts for CONFIG_FILES section. … … 6402 3920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6403 3921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6404 ac_cs_awk_cr='\ r'3922 ac_cs_awk_cr='\\r' 6405 3923 else 6406 3924 ac_cs_awk_cr=$ac_cr 6407 3925 fi 6408 3926 6409 echo 'BEGIN {' >"$ tmp/subs1.awk" &&3927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 6410 3928 _ACEOF 6411 3929 … … 6416 3934 echo "_ACEOF" 6417 3935 } >conf$$subs.sh || 6418 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 56419 ac_delim_num=`echo "$ac_subst_vars" | grep -c ' $'`3936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6420 3938 ac_delim='%!_!# ' 6421 3939 for ac_last_try in false false false false false :; do 6422 3940 . ./conf$$subs.sh || 6423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 53941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6424 3942 6425 3943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` … … 6427 3945 break 6428 3946 elif $ac_last_try; then 6429 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 53947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6430 3948 else 6431 3949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " … … 6435 3953 6436 3954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6437 cat >>"\$ tmp/subs1.awk" <<\\_ACAWK &&3955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6438 3956 _ACEOF 6439 3957 sed -n ' … … 6449 3967 :nl 6450 3968 h 6451 s/\(.\{148\}\). */\1/3969 s/\(.\{148\}\)..*/\1/ 6452 3970 t more1 6453 3971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ … … 6463 3981 :delim 6464 3982 h 6465 s/\(.\{148\}\). */\1/3983 s/\(.\{148\}\)..*/\1/ 6466 3984 t more2 6467 3985 s/["\\]/\\&/g; s/^/"/; s/$/"/ … … 6483 4001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6484 4002 _ACAWK 6485 cat >>"\$ tmp/subs1.awk" <<_ACAWK &&4003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6486 4004 for (key in S) S_is_set[key] = 1 6487 4005 FS = "" … … 6515 4033 else 6516 4034 cat 6517 fi < "$ tmp/subs1.awk" > "$tmp/subs.awk" \6518 || as_fn_error "could not setup config files machinery" "$LINENO" 54035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 4036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6519 4037 _ACEOF 6520 4038 6521 # VPATH may cause trouble with some makes, so we remove $(srcdir),6522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and4039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 4040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6523 4041 # trailing colons and then remove the whole line if VPATH becomes empty 6524 4042 # (actually we leave an empty line to preserve line numbers). 6525 4043 if test "x$srcdir" = x.; then 6526 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6527 s/:*\$(srcdir):*/:/ 6528 s/:*\${srcdir}:*/:/ 6529 s/:*@srcdir@:*/:/ 6530 s/^\([^=]*=[ ]*\):*/\1/ 4044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 4045 h 4046 s/// 4047 s/^/:/ 4048 s/[ ]*$/:/ 4049 s/:\$(srcdir):/:/g 4050 s/:\${srcdir}:/:/g 4051 s/:@srcdir@:/:/g 4052 s/^:*// 6531 4053 s/:*$// 4054 x 4055 s/\(=[ ]*\).*/\1/ 4056 G 4057 s/\n// 6532 4058 s/^[^=]*=[ ]*$// 6533 4059 }' … … 6547 4073 case $ac_mode$ac_tag in 6548 4074 :[FHL]*:*);; 6549 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;4075 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6550 4076 :[FH]-) ac_tag=-:-;; 6551 4077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; … … 6566 4092 do 6567 4093 case $ac_f in 6568 -) ac_f="$ tmp/stdin";;4094 -) ac_f="$ac_tmp/stdin";; 6569 4095 *) # Look for the file first in the build tree, then in the source tree 6570 4096 # (if the path is not absolute). The absolute path cannot be DOS-style, … … 6575 4101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6576 4102 esac || 6577 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;4103 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6578 4104 esac 6579 4105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac … … 6601 4127 6602 4128 case $ac_tag in 6603 *:-:* | *:-) cat >"$ tmp/stdin" \6604 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;4129 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6605 4131 esac 6606 4132 ;; … … 6738 4264 $ac_datarootdir_hack 6739 4265 " 6740 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ tmp/subs.awk" >$tmp/out\6741 || as_fn_error"could not create $ac_file" "$LINENO" 54266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 4267 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6742 4268 6743 4269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 4270 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 4271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 4272 "$ac_tmp/out"`; test -z "$ac_out"; } && 6746 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6747 which seems to be undefined. Please make sure it is defined ." >&54274 which seems to be undefined. Please make sure it is defined" >&5 6748 4275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6749 which seems to be undefined. Please make sure it is defined ." >&2;}6750 6751 rm -f "$ tmp/stdin"4276 which seems to be undefined. Please make sure it is defined" >&2;} 4277 4278 rm -f "$ac_tmp/stdin" 6752 4279 case $ac_file in 6753 -) cat "$ tmp/out" && rm -f "$tmp/out";;6754 *) rm -f "$ac_file" && mv "$ tmp/out" "$ac_file";;4280 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4281 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6755 4282 esac \ 6756 || as_fn_error "could not create $ac_file" "$LINENO" 54283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6757 4284 ;; 6758 4285 … … 6769 4296 6770 4297 test $ac_write_fail = 0 || 6771 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 54298 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6772 4299 6773 4300 … … 6790 4317 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6791 4318 # would make configure fail if this is the last instruction. 6792 $ac_cs_success || as_fn_exit $?4319 $ac_cs_success || as_fn_exit 1 6793 4320 fi 6794 4321 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then -
branches/1.3/gui/configure.in
r2743 r4516 1 1 2 AC_INIT([RapptureGUI],[1. 1],[rappture@nanohub.org])2 AC_INIT([RapptureGUI],[1.4],[rappture@nanohub.org]) 3 3 AC_CONFIG_AUX_DIR(cf) 4 4 #------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.