Ticket #27253: newt-0.52.12-macosx.patch
File newt-0.52.12-macosx.patch, 61.6 KB (added by tlesher@…, 14 years ago) |
---|
-
Makefile.in
diff -urN newt-0.52.12/Makefile.in newt-0.52.12-macosx/Makefile.in
old new 1 LIBS = -lslang 2 LIBTCL = -ltcl8.41 LIBS = -lslang @LIBS@ 2 LIBTCL = @TCL_LIB_FLAG@ 3 3 4 4 CC = @CC@ 5 5 CPP = @CPP@ 6 6 CFLAGS = @CFLAGS@ 7 LDFLAGS = @LDFLAGS@ 7 8 CPPFLAGS = -D_GNU_SOURCE -I/usr/include/slang @CPPFLAGS@ 9 GNU_LD = @GNU_LD@ 8 10 9 SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver10 11 VERSION = @VERSION@ 11 12 TAG = r$(subst .,-,$(VERSION)) 12 13 SONAME = @SONAME@ … … 25 26 scrollbar.o textbox.o scale.o grid.o windows.o buttonbar.o \ 26 27 checkboxtree.o 27 28 29 ifneq ($(GNU_LD),) 30 SHLIBFLAGS= -Wl,--version-script,newt.0.52.ver -Wl,-soname,$(LIBNEWTSONAME) 31 else 32 SHLIBFLAGS= 33 endif 34 28 35 SHCFLAGS = -fPIC 29 36 30 37 prefix = @prefix@ … … 33 40 libdir = @libdir@ 34 41 bindir = @bindir@ 35 42 datadir = @datadir@ 43 datarootdir = @datarootdir@ 36 44 mandir = @mandir@ 37 45 man1dir = $(mandir)/man1 38 46 pkgconfigdir = $(libdir)/pkgconfig … … 53 61 all: $(TARGET) _snackmodule.so 54 62 55 63 test: test.o $(LIBNEWT) 56 $(CC) -g -o test test.o $(LIBNEWT) $(L IBS)64 $(CC) -g -o test test.o $(LIBNEWT) $(LDFLAGS) $(LIBS) 57 65 58 66 testgrid: testgrid.o $(LIBNEWT) 59 $(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(L IBS)67 $(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LDFLAGS) $(LIBS) 60 68 61 69 testtree: testtree.o $(LIBNEWT) 62 $(CC) -g -o testtree testtree.o $(LIBNEWT) $(L IBS)70 $(CC) -g -o testtree testtree.o $(LIBNEWT) $(LDFLAGS) $(LIBS) 63 71 64 72 showchars: showchars.o $(LIBNEWT) 65 $(CC) -g -o showchars showchars.o $(LIBNEWT) $(L IBS)73 $(CC) -g -o showchars showchars.o $(LIBNEWT) $(LDFLAGS) $(LIBS) 66 74 67 75 showkey: showkey.o $(LIBNEWT) 68 $(CC) -g -o showkey showkey.o $(LIBNEWT) $(L IBS)76 $(CC) -g -o showkey showkey.o $(LIBNEWT) $(LDFLAGS) $(LIBS) 69 77 70 78 _snackmodule.so: snackmodule.c $(LIBNEWTSH) 71 79 for ver in $(PYTHONVERS) ; do \ 72 80 mkdir -p $$ver ;\ 73 $(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\ 74 $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt ;\ 81 PCFLAGS=`$$ver-config --cflags`; \ 82 PIFLAGS=`$$ver-config --includes`; \ 83 PLDFLAGS=`$$ver-config --ldflags`; \ 84 PLFLAGS=`$$ver-config --libs`; \ 85 $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ 86 $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\ 75 87 done 76 88 touch $@ 77 89 78 90 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH) 79 $(CC) -g -o whiptail $(NDIALOGOBJS) -L .-lnewt $(LIBS) -lpopt91 $(CC) -g -o whiptail $(NDIALOGOBJS) -L. $(LDFLAGS) -lnewt $(LIBS) -lpopt 80 92 81 93 whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH) 82 $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lpopt94 $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS) 83 95 84 96 $(LIBNEWT): $(LIBOBJS) 85 97 ar rv $@ $^ … … 102 114 sharedlib: $(LIBNEWTSH) 103 115 104 116 $(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS) 105 $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(LIBS)117 $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS) 106 118 ln -fs $(LIBNEWTSONAME) libnewt.so 107 119 ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME) 108 120 … … 119 131 install -m 755 whiptail $(instroot)/$(bindir) 120 132 install -m 644 whiptail.1 $(instroot)/$(man1dir) 121 133 make -C po datadir=$(instroot)/$(datadir) install 122 install -m 644 - Dlibnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc134 install -m 644 -d libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc 123 135 124 136 install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so 125 137 [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir) -
config.h.in
diff -urN newt-0.52.12/config.h.in newt-0.52.12-macosx/config.h.in
old new 9 9 /* Define to 1 if you have the <inttypes.h> header file. */ 10 10 #undef HAVE_INTTYPES_H 11 11 12 /* Define to 1 if you have the `c' library (-lc). */ 13 #undef HAVE_LIBC 14 15 /* Define to 1 if you have the <libintl.h> header file. */ 16 #undef HAVE_LIBINTL_H 17 12 18 /* Define to 1 if you have the <memory.h> header file. */ 13 19 #undef HAVE_MEMORY_H 14 20 21 /* Define to 1 if you have the <popt.h> header file. */ 22 #undef HAVE_POPT_H 23 15 24 /* Define to 1 if you have the <stdint.h> header file. */ 16 25 #undef HAVE_STDINT_H 17 26 -
configure
diff -urN newt-0.52.12/configure newt-0.52.12-macosx/configure
old new 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 5.3 # Generated by GNU Autoconf 2.68. 4 4 # 5 5 # 6 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,8 # Inc.7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8 # Foundation, Inc. 9 9 # 10 10 # 11 11 # This configure script is free software; the Free Software Foundation … … 89 89 IFS=" "" $as_nl" 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 ;; 94 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 214 215 # We cannot yet assume a decent shell, so we have to provide a 215 216 # neutralization value for shells without unset; and this also 216 217 # works around shells that cannot unset nonexistent variables. 218 # Preserve -v and -x to the replacement shell. 217 219 BASH_ENV=/dev/null 218 220 ENV=/dev/null 219 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 222 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 223 case $- in # (((( 224 *v*x* | *x*v* ) as_opts=-vx ;; 225 *v* ) as_opts=-v ;; 226 *x* ) as_opts=-x ;; 227 * ) as_opts= ;; 228 esac 229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 222 230 fi 223 231 224 232 if test x$as_have_required = xno; then : … … 316 324 test -d "$as_dir" && break 317 325 done 318 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 328 321 329 322 330 } # as_fn_mkdir_p … … 356 364 fi # as_fn_arith 357 365 358 366 359 # as_fn_error ERROR [LINENO LOG_FD]360 # --------------------------------- 367 # as_fn_error STATUS ERROR [LINENO LOG_FD] 368 # ---------------------------------------- 361 369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362 370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363 # script with status $?, using 1 if that was 0.371 # script with STATUS, using 1 if that was 0. 364 372 as_fn_error () 365 373 { 366 as_status=$ ?; test $as_status -eq 0 && as_status=1367 if test "$ 3"; then368 as_lineno=${as_lineno-"$ 2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 1" >&$3374 as_status=$1; test $as_status -eq 0 && as_status=1 375 if test "$4"; then 376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 378 fi 371 $as_echo "$as_me: error: $ 1" >&2379 $as_echo "$as_me: error: $2" >&2 372 380 as_fn_exit $as_status 373 381 } # as_fn_error 374 382 … … 530 538 exec 6>&1 531 539 532 540 # Name of the host. 533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534 542 # so uname gets run too. 535 543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 544 … … 594 602 ac_subst_vars='LTLIBOBJS 595 603 LIBOBJS 596 604 WHIPTCLSO 605 TCL_LIB_FLAG 597 606 PYTHONVERS 598 607 EGREP 599 GREP600 608 CPP 609 GNU_LD 610 GREP 601 611 LN_S 602 612 INSTALL_DATA 603 613 INSTALL_SCRIPT … … 664 674 LDFLAGS 665 675 LIBS 666 676 CPPFLAGS 667 CPP' 677 CPP 678 CPPFLAGS' 668 679 669 680 670 681 # Initialize some variables set by options. … … 727 738 fi 728 739 729 740 case $ac_option in 730 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 731 *) ac_optarg=yes ;; 741 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 742 *=) ac_optarg= ;; 743 *) ac_optarg=yes ;; 732 744 esac 733 745 734 746 # Accept the important Cygnus configure options, so we can diagnose typos. … … 773 785 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 774 786 # Reject names that are not valid shell variable names. 775 787 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 776 as_fn_error "invalid feature name: $ac_useropt"788 as_fn_error $? "invalid feature name: $ac_useropt" 777 789 ac_useropt_orig=$ac_useropt 778 790 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 779 791 case $ac_user_opts in … … 799 811 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 800 812 # Reject names that are not valid shell variable names. 801 813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 802 as_fn_error "invalid feature name: $ac_useropt"814 as_fn_error $? "invalid feature name: $ac_useropt" 803 815 ac_useropt_orig=$ac_useropt 804 816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 805 817 case $ac_user_opts in … … 1003 1015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1004 1016 # Reject names that are not valid shell variable names. 1005 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1006 as_fn_error "invalid package name: $ac_useropt"1018 as_fn_error $? "invalid package name: $ac_useropt" 1007 1019 ac_useropt_orig=$ac_useropt 1008 1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1009 1021 case $ac_user_opts in … … 1019 1031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1020 1032 # Reject names that are not valid shell variable names. 1021 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1022 as_fn_error "invalid package name: $ac_useropt"1034 as_fn_error $? "invalid package name: $ac_useropt" 1023 1035 ac_useropt_orig=$ac_useropt 1024 1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1025 1037 case $ac_user_opts in … … 1049 1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1050 1062 x_libraries=$ac_optarg ;; 1051 1063 1052 -*) as_fn_error "unrecognized option: \`$ac_option'1053 Try \`$0 --help' for more information ."1064 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1065 Try \`$0 --help' for more information" 1054 1066 ;; 1055 1067 1056 1068 *=*) … … 1058 1070 # Reject names that are not valid shell variable names. 1059 1071 case $ac_envvar in #( 1060 1072 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1061 as_fn_error "invalid variable name: \`$ac_envvar'" ;;1073 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1062 1074 esac 1063 1075 eval $ac_envvar=\$ac_optarg 1064 1076 export $ac_envvar ;; … … 1068 1080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1069 1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1070 1082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1071 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}1083 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1072 1084 ;; 1073 1085 1074 1086 esac … … 1076 1088 1077 1089 if test -n "$ac_prev"; then 1078 1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1079 as_fn_error "missing argument to $ac_option"1091 as_fn_error $? "missing argument to $ac_option" 1080 1092 fi 1081 1093 1082 1094 if test -n "$ac_unrecognized_opts"; then 1083 1095 case $enable_option_checking in 1084 1096 no) ;; 1085 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;1097 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1086 1098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1087 1099 esac 1088 1100 fi … … 1105 1117 [\\/$]* | ?:[\\/]* ) continue;; 1106 1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1107 1119 esac 1108 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"1120 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1109 1121 done 1110 1122 1111 1123 # There might be people who depend on the old broken behavior: `$host' … … 1119 1131 if test "x$host_alias" != x; then 1120 1132 if test "x$build_alias" = x; then 1121 1133 cross_compiling=maybe 1122 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.1123 If a cross compiler is detected then cross compile mode will be used ." >&21134 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1135 If a cross compiler is detected then cross compile mode will be used" >&2 1124 1136 elif test "x$build_alias" != "x$host_alias"; then 1125 1137 cross_compiling=yes 1126 1138 fi … … 1135 1147 ac_pwd=`pwd` && test -n "$ac_pwd" && 1136 1148 ac_ls_di=`ls -di .` && 1137 1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1138 as_fn_error "working directory cannot be determined"1150 as_fn_error $? "working directory cannot be determined" 1139 1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1140 as_fn_error "pwd does not report name of working directory"1152 as_fn_error $? "pwd does not report name of working directory" 1141 1153 1142 1154 1143 1155 # Find the source files, if location was not specified. … … 1176 1188 fi 1177 1189 if test ! -r "$srcdir/$ac_unique_file"; then 1178 1190 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1179 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"1191 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1180 1192 fi 1181 1193 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1182 1194 ac_abs_confdir=`( 1183 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"1195 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1184 1196 pwd)` 1185 1197 # When building in place, set srcdir=. 1186 1198 if test "$ac_abs_confdir" = "$ac_pwd"; then … … 1220 1232 --help=short display options specific to this package 1221 1233 --help=recursive display the short help of all the included packages 1222 1234 -V, --version display version information and exit 1223 -q, --quiet, --silent do not print \`checking ...' messages1235 -q, --quiet, --silent do not print \`checking ...' messages 1224 1236 --cache-file=FILE cache test results in FILE [disabled] 1225 1237 -C, --config-cache alias for \`--cache-file=config.cache' 1226 1238 -n, --no-create do not create output files … … 1358 1370 if $ac_init_version; then 1359 1371 cat <<\_ACEOF 1360 1372 configure 1361 generated by GNU Autoconf 2.6 51373 generated by GNU Autoconf 2.68 1362 1374 1363 Copyright (C) 20 09Free Software Foundation, Inc.1375 Copyright (C) 2010 Free Software Foundation, Inc. 1364 1376 This configure script is free software; the Free Software Foundation 1365 1377 gives unlimited permission to copy, distribute and modify it. 1366 1378 _ACEOF … … 1404 1416 1405 1417 ac_retval=1 1406 1418 fi 1407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1408 1420 as_fn_set_status $ac_retval 1409 1421 1410 1422 } # ac_fn_c_try_compile … … 1430 1442 mv -f conftest.er1 conftest.err 1431 1443 fi 1432 1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1433 test $ac_status = 0; } > /dev/null&& {1445 test $ac_status = 0; } > conftest.i && { 1434 1446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1435 1447 test ! -s conftest.err 1436 1448 }; then : … … 1441 1453 1442 1454 ac_retval=1 1443 1455 fi 1444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1445 1457 as_fn_set_status $ac_retval 1446 1458 1447 1459 } # ac_fn_c_try_cpp … … 1454 1466 ac_fn_c_check_header_mongrel () 1455 1467 { 1456 1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1469 if eval \${$3+:} false; then : 1458 1470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1459 1471 $as_echo_n "checking for $2... " >&6; } 1460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1472 if eval \${$3+:} false; then : 1461 1473 $as_echo_n "(cached) " >&6 1462 1474 fi 1463 1475 eval ac_res=\$$3 … … 1493 1505 else 1494 1506 ac_header_preproc=no 1495 1507 fi 1496 rm -f conftest.err conftest. $ac_ext1508 rm -f conftest.err conftest.i conftest.$ac_ext 1497 1509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1498 1510 $as_echo "$ac_header_preproc" >&6; } 1499 1511 … … 1520 1532 esac 1521 1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1522 1534 $as_echo_n "checking for $2... " >&6; } 1523 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1535 if eval \${$3+:} false; then : 1524 1536 $as_echo_n "(cached) " >&6 1525 1537 else 1526 1538 eval "$3=\$ac_header_compiler" … … 1529 1541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1530 1542 $as_echo "$ac_res" >&6; } 1531 1543 fi 1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 1545 1534 1546 } # ac_fn_c_check_header_mongrel 1535 1547 … … 1570 1582 ac_retval=$ac_status 1571 1583 fi 1572 1584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 1586 as_fn_set_status $ac_retval 1575 1587 1576 1588 } # ac_fn_c_try_run … … 1584 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1586 1598 $as_echo_n "checking for $2... " >&6; } 1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :1599 if eval \${$3+:} false; then : 1588 1600 $as_echo_n "(cached) " >&6 1589 1601 else 1590 1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 1602 1614 eval ac_res=\$$3 1603 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1604 1616 $as_echo "$ac_res" >&6; } 1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 1618 1607 1619 } # ac_fn_c_check_header_compile 1620 1621 # ac_fn_c_try_link LINENO 1622 # ----------------------- 1623 # Try to link conftest.$ac_ext, and return whether this succeeded. 1624 ac_fn_c_try_link () 1625 { 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext conftest$ac_exeext 1628 if { { ac_try="$ac_link" 1629 case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632 esac 1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634 $as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_link") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest$ac_exeext && { 1647 test "$cross_compiling" = yes || 1648 $as_test_x conftest$ac_exeext 1649 }; then : 1650 ac_retval=0 1651 else 1652 $as_echo "$as_me: failed program was:" >&5 1653 sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656 fi 1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1659 # interfere with the next link command; also delete a directory that is 1660 # left behind by Apple's compiler. We do this before executing the actions. 1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665 } # ac_fn_c_try_link 1608 1666 cat >config.log <<_ACEOF 1609 1667 This file contains any messages produced by compilers while 1610 1668 running configure, to aid debugging if configure makes a mistake. 1611 1669 1612 1670 It was created by $as_me, which was 1613 generated by GNU Autoconf 2.6 5. Invocation command line was1671 generated by GNU Autoconf 2.68. Invocation command line was 1614 1672 1615 1673 $ $0 $@ 1616 1674 … … 1720 1778 { 1721 1779 echo 1722 1780 1723 cat <<\_ASBOX 1724 ## ---------------- ## 1781 $as_echo "## ---------------- ## 1725 1782 ## Cache variables. ## 1726 ## ---------------- ## 1727 _ASBOX 1783 ## ---------------- ##" 1728 1784 echo 1729 1785 # The following way of writing the cache mishandles newlines in values, 1730 1786 ( … … 1758 1814 ) 1759 1815 echo 1760 1816 1761 cat <<\_ASBOX 1762 ## ----------------- ## 1817 $as_echo "## ----------------- ## 1763 1818 ## Output variables. ## 1764 ## ----------------- ## 1765 _ASBOX 1819 ## ----------------- ##" 1766 1820 echo 1767 1821 for ac_var in $ac_subst_vars 1768 1822 do … … 1775 1829 echo 1776 1830 1777 1831 if test -n "$ac_subst_files"; then 1778 cat <<\_ASBOX 1779 ## ------------------- ## 1832 $as_echo "## ------------------- ## 1780 1833 ## File substitutions. ## 1781 ## ------------------- ## 1782 _ASBOX 1834 ## ------------------- ##" 1783 1835 echo 1784 1836 for ac_var in $ac_subst_files 1785 1837 do … … 1793 1845 fi 1794 1846 1795 1847 if test -s confdefs.h; then 1796 cat <<\_ASBOX 1797 ## ----------- ## 1848 $as_echo "## ----------- ## 1798 1849 ## confdefs.h. ## 1799 ## ----------- ## 1800 _ASBOX 1850 ## ----------- ##" 1801 1851 echo 1802 1852 cat confdefs.h 1803 1853 echo … … 1852 1902 ac_site_file1=NONE 1853 1903 ac_site_file2=NONE 1854 1904 if test -n "$CONFIG_SITE"; then 1855 ac_site_file1=$CONFIG_SITE 1905 # We do not want a PATH search for config.site. 1906 case $CONFIG_SITE in #(( 1907 -*) ac_site_file1=./$CONFIG_SITE;; 1908 */*) ac_site_file1=$CONFIG_SITE;; 1909 *) ac_site_file1=./$CONFIG_SITE;; 1910 esac 1856 1911 elif test "x$prefix" != xNONE; then 1857 1912 ac_site_file1=$prefix/share/config.site 1858 1913 ac_site_file2=$prefix/etc/config.site … … 1867 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1868 1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1869 1924 sed 's/^/| /' "$ac_site_file" >&5 1870 . "$ac_site_file" 1925 . "$ac_site_file" \ 1926 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1928 as_fn_error $? "failed to load site script $ac_site_file 1929 See \`config.log' for more details" "$LINENO" 5; } 1871 1930 fi 1872 1931 done 1873 1932 … … 1943 2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1944 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1945 2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1946 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 52005 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1947 2006 fi 1948 2007 ## -------------------- ## 1949 2008 ## Main body of script. ## … … 1986 2045 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1987 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1988 2047 $as_echo_n "checking for $ac_word... " >&6; } 1989 if test "${ac_cv_prog_CC+set}" = set; then :2048 if ${ac_cv_prog_CC+:} false; then : 1990 2049 $as_echo_n "(cached) " >&6 1991 2050 else 1992 2051 if test -n "$CC"; then … … 2026 2085 set dummy gcc; ac_word=$2 2027 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2028 2087 $as_echo_n "checking for $ac_word... " >&6; } 2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2088 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2030 2089 $as_echo_n "(cached) " >&6 2031 2090 else 2032 2091 if test -n "$ac_ct_CC"; then … … 2079 2138 set dummy ${ac_tool_prefix}cc; ac_word=$2 2080 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2081 2140 $as_echo_n "checking for $ac_word... " >&6; } 2082 if test "${ac_cv_prog_CC+set}" = set; then :2141 if ${ac_cv_prog_CC+:} false; then : 2083 2142 $as_echo_n "(cached) " >&6 2084 2143 else 2085 2144 if test -n "$CC"; then … … 2119 2178 set dummy cc; ac_word=$2 2120 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2121 2180 $as_echo_n "checking for $ac_word... " >&6; } 2122 if test "${ac_cv_prog_CC+set}" = set; then :2181 if ${ac_cv_prog_CC+:} false; then : 2123 2182 $as_echo_n "(cached) " >&6 2124 2183 else 2125 2184 if test -n "$CC"; then … … 2178 2237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2179 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2180 2239 $as_echo_n "checking for $ac_word... " >&6; } 2181 if test "${ac_cv_prog_CC+set}" = set; then :2240 if ${ac_cv_prog_CC+:} false; then : 2182 2241 $as_echo_n "(cached) " >&6 2183 2242 else 2184 2243 if test -n "$CC"; then … … 2222 2281 set dummy $ac_prog; ac_word=$2 2223 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2224 2283 $as_echo_n "checking for $ac_word... " >&6; } 2225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :2284 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2226 2285 $as_echo_n "(cached) " >&6 2227 2286 else 2228 2287 if test -n "$ac_ct_CC"; then … … 2276 2335 2277 2336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2278 2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2279 as_fn_error "no acceptable C compiler found in \$PATH2280 See \`config.log' for more details ." "$LINENO" 5; }2338 as_fn_error $? "no acceptable C compiler found in \$PATH 2339 See \`config.log' for more details" "$LINENO" 5; } 2281 2340 2282 2341 # Provide some information about the compiler. 2283 2342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 … … 2391 2450 2392 2451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2393 2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2394 { as_fn_set_status 77 2395 as_fn_error "C compiler cannot create executables 2396 See \`config.log' for more details." "$LINENO" 5; }; } 2453 as_fn_error 77 "C compiler cannot create executables 2454 See \`config.log' for more details" "$LINENO" 5; } 2397 2455 else 2398 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2399 2457 $as_echo "yes" >&6; } … … 2435 2493 else 2436 2494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2437 2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2438 as_fn_error "cannot compute suffix of executables: cannot compile and link2439 See \`config.log' for more details ." "$LINENO" 5; }2496 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2497 See \`config.log' for more details" "$LINENO" 5; } 2440 2498 fi 2441 2499 rm -f conftest conftest$ac_cv_exeext 2442 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 … … 2493 2551 else 2494 2552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2495 2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2496 as_fn_error "cannot run C compiled programs.2554 as_fn_error $? "cannot run C compiled programs. 2497 2555 If you meant to cross compile, use \`--host'. 2498 See \`config.log' for more details ." "$LINENO" 5; }2556 See \`config.log' for more details" "$LINENO" 5; } 2499 2557 fi 2500 2558 fi 2501 2559 fi … … 2506 2564 ac_clean_files=$ac_clean_files_save 2507 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2508 2566 $as_echo_n "checking for suffix of object files... " >&6; } 2509 if test "${ac_cv_objext+set}" = set; then :2567 if ${ac_cv_objext+:} false; then : 2510 2568 $as_echo_n "(cached) " >&6 2511 2569 else 2512 2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 2546 2604 2547 2605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2548 2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2549 as_fn_error "cannot compute suffix of object files: cannot compile2550 See \`config.log' for more details ." "$LINENO" 5; }2607 as_fn_error $? "cannot compute suffix of object files: cannot compile 2608 See \`config.log' for more details" "$LINENO" 5; } 2551 2609 fi 2552 2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2553 2611 fi … … 2557 2615 ac_objext=$OBJEXT 2558 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2559 2617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2560 if test "${ac_cv_c_compiler_gnu+set}" = set; then :2618 if ${ac_cv_c_compiler_gnu+:} false; then : 2561 2619 $as_echo_n "(cached) " >&6 2562 2620 else 2563 2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 2594 2652 ac_save_CFLAGS=$CFLAGS 2595 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2596 2654 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2597 if test "${ac_cv_prog_cc_g+set}" = set; then :2655 if ${ac_cv_prog_cc_g+:} false; then : 2598 2656 $as_echo_n "(cached) " >&6 2599 2657 else 2600 2658 ac_save_c_werror_flag=$ac_c_werror_flag … … 2672 2730 fi 2673 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2674 2732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2675 if test "${ac_cv_prog_cc_c89+set}" = set; then :2733 if ${ac_cv_prog_cc_c89+:} false; then : 2676 2734 $as_echo_n "(cached) " >&6 2677 2735 else 2678 2736 ac_cv_prog_cc_c89=no … … 2769 2827 2770 2828 ac_aux_dir= 2771 2829 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2772 for ac_t in install-sh install.sh shtool; do 2773 if test -f "$ac_dir/$ac_t"; then 2774 ac_aux_dir=$ac_dir 2775 ac_install_sh="$ac_aux_dir/$ac_t -c" 2776 break 2 2777 fi 2778 done 2830 if test -f "$ac_dir/install-sh"; then 2831 ac_aux_dir=$ac_dir 2832 ac_install_sh="$ac_aux_dir/install-sh -c" 2833 break 2834 elif test -f "$ac_dir/install.sh"; then 2835 ac_aux_dir=$ac_dir 2836 ac_install_sh="$ac_aux_dir/install.sh -c" 2837 break 2838 elif test -f "$ac_dir/shtool"; then 2839 ac_aux_dir=$ac_dir 2840 ac_install_sh="$ac_aux_dir/shtool install -c" 2841 break 2842 fi 2779 2843 done 2780 2844 if test -z "$ac_aux_dir"; then 2781 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 52845 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2782 2846 fi 2783 2847 2784 2848 # These three variables are undocumented and unsupported, … … 2807 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2808 2872 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2809 2873 if test -z "$INSTALL"; then 2810 if test "${ac_cv_path_install+set}" = set; then :2874 if ${ac_cv_path_install+:} false; then : 2811 2875 $as_echo_n "(cached) " >&6 2812 2876 else 2813 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2894 2958 $as_echo "no, using $LN_S" >&6; } 2895 2959 fi 2896 2960 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 2962 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 2963 if ${ac_cv_path_GREP+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965 else 2966 if test -z "$GREP"; then 2967 ac_path_GREP_found=false 2968 # Loop through the user's path and test for each of PROGNAME-LIST 2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2971 do 2972 IFS=$as_save_IFS 2973 test -z "$as_dir" && as_dir=. 2974 for ac_prog in grep ggrep; do 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2977 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2978 # Check for GNU ac_path_GREP and select it if it is found. 2979 # Check for GNU $ac_path_GREP 2980 case `"$ac_path_GREP" --version 2>&1` in 2981 *GNU*) 2982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2983 *) 2984 ac_count=0 2985 $as_echo_n 0123456789 >"conftest.in" 2986 while : 2987 do 2988 cat "conftest.in" "conftest.in" >"conftest.tmp" 2989 mv "conftest.tmp" "conftest.in" 2990 cp "conftest.in" "conftest.nl" 2991 $as_echo 'GREP' >> "conftest.nl" 2992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2994 as_fn_arith $ac_count + 1 && ac_count=$as_val 2995 if test $ac_count -gt ${ac_path_GREP_max-0}; then 2996 # Best one so far, save it but keep looking for a better one 2997 ac_cv_path_GREP="$ac_path_GREP" 2998 ac_path_GREP_max=$ac_count 2999 fi 3000 # 10*(2^10) chars as input seems more than enough 3001 test $ac_count -gt 10 && break 3002 done 3003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3004 esac 3005 3006 $ac_path_GREP_found && break 3 3007 done 3008 done 3009 done 3010 IFS=$as_save_IFS 3011 if test -z "$ac_cv_path_GREP"; then 3012 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3013 fi 3014 else 3015 ac_cv_path_GREP=$GREP 3016 fi 3017 3018 fi 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3020 $as_echo "$ac_cv_path_GREP" >&6; } 3021 GREP="$ac_cv_path_GREP" 3022 3023 3024 3025 # Are we using GNU ld? 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3027 $as_echo_n "checking for GNU ld... " >&6; } 3028 LD=`$CC -print-prog-name=ld 2>&5` 3029 3030 if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0; then 3031 # Not 3032 GNU_LD="" 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034 $as_echo "no" >&6; } 3035 else 3036 GNU_LD="$LD" 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3038 $as_echo "yes" >&6; } 3039 3040 fi 2897 3041 2898 3042 2899 3043 ac_ext=c … … 2908 3052 CPP= 2909 3053 fi 2910 3054 if test -z "$CPP"; then 2911 if test "${ac_cv_prog_CPP+set}" = set; then :3055 if ${ac_cv_prog_CPP+:} false; then : 2912 3056 $as_echo_n "(cached) " >&6 2913 3057 else 2914 3058 # Double quotes because CPP needs to be expanded … … 2938 3082 # Broken: fails on valid input. 2939 3083 continue 2940 3084 fi 2941 rm -f conftest.err conftest. $ac_ext3085 rm -f conftest.err conftest.i conftest.$ac_ext 2942 3086 2943 3087 # OK, works on sane cases. Now check whether nonexistent headers 2944 3088 # can be detected and how. … … 2954 3098 ac_preproc_ok=: 2955 3099 break 2956 3100 fi 2957 rm -f conftest.err conftest. $ac_ext3101 rm -f conftest.err conftest.i conftest.$ac_ext 2958 3102 2959 3103 done 2960 3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2961 rm -f conftest. err conftest.$ac_ext3105 rm -f conftest.i conftest.err conftest.$ac_ext 2962 3106 if $ac_preproc_ok; then : 2963 3107 break 2964 3108 fi … … 2997 3141 # Broken: fails on valid input. 2998 3142 continue 2999 3143 fi 3000 rm -f conftest.err conftest. $ac_ext3144 rm -f conftest.err conftest.i conftest.$ac_ext 3001 3145 3002 3146 # OK, works on sane cases. Now check whether nonexistent headers 3003 3147 # can be detected and how. … … 3013 3157 ac_preproc_ok=: 3014 3158 break 3015 3159 fi 3016 rm -f conftest.err conftest. $ac_ext3160 rm -f conftest.err conftest.i conftest.$ac_ext 3017 3161 3018 3162 done 3019 3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3020 rm -f conftest. err conftest.$ac_ext3164 rm -f conftest.i conftest.err conftest.$ac_ext 3021 3165 if $ac_preproc_ok; then : 3022 3166 3023 3167 else 3024 3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3025 3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3026 as_fn_error "C preprocessor \"$CPP\" fails sanity check3027 See \`config.log' for more details ." "$LINENO" 5; }3170 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3171 See \`config.log' for more details" "$LINENO" 5; } 3028 3172 fi 3029 3173 3030 3174 ac_ext=c … … 3034 3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3035 3179 3036 3180 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&53038 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }3039 if test "${ac_cv_path_GREP+set}" = set; then :3040 $as_echo_n "(cached) " >&63041 else3042 if test -z "$GREP"; then3043 ac_path_GREP_found=false3044 # Loop through the user's path and test for each of PROGNAME-LIST3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin3047 do3048 IFS=$as_save_IFS3049 test -z "$as_dir" && as_dir=.3050 for ac_prog in grep ggrep; do3051 for ac_exec_ext in '' $ac_executable_extensions; do3052 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"3053 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue3054 # Check for GNU ac_path_GREP and select it if it is found.3055 # Check for GNU $ac_path_GREP3056 case `"$ac_path_GREP" --version 2>&1` in3057 *GNU*)3058 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;3059 *)3060 ac_count=03061 $as_echo_n 0123456789 >"conftest.in"3062 while :3063 do3064 cat "conftest.in" "conftest.in" >"conftest.tmp"3065 mv "conftest.tmp" "conftest.in"3066 cp "conftest.in" "conftest.nl"3067 $as_echo 'GREP' >> "conftest.nl"3068 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break3069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break3070 as_fn_arith $ac_count + 1 && ac_count=$as_val3071 if test $ac_count -gt ${ac_path_GREP_max-0}; then3072 # Best one so far, save it but keep looking for a better one3073 ac_cv_path_GREP="$ac_path_GREP"3074 ac_path_GREP_max=$ac_count3075 fi3076 # 10*(2^10) chars as input seems more than enough3077 test $ac_count -gt 10 && break3078 done3079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;3080 esac3081 3082 $ac_path_GREP_found && break 33083 done3084 done3085 done3086 IFS=$as_save_IFS3087 if test -z "$ac_cv_path_GREP"; then3088 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 53089 fi3090 else3091 ac_cv_path_GREP=$GREP3092 fi3093 3094 fi3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&53096 $as_echo "$ac_cv_path_GREP" >&6; }3097 GREP="$ac_cv_path_GREP"3098 3099 3100 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3101 3182 $as_echo_n "checking for egrep... " >&6; } 3102 if test "${ac_cv_path_EGREP+set}" = set; then :3183 if ${ac_cv_path_EGREP+:} false; then : 3103 3184 $as_echo_n "(cached) " >&6 3104 3185 else 3105 3186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 … … 3151 3232 done 3152 3233 IFS=$as_save_IFS 3153 3234 if test -z "$ac_cv_path_EGREP"; then 3154 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 53235 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3155 3236 fi 3156 3237 else 3157 3238 ac_cv_path_EGREP=$EGREP … … 3166 3247 3167 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3168 3249 $as_echo_n "checking for ANSI C header files... " >&6; } 3169 if test "${ac_cv_header_stdc+set}" = set; then :3250 if ${ac_cv_header_stdc+:} false; then : 3170 3251 $as_echo_n "(cached) " >&6 3171 3252 else 3172 3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext … … 3283 3364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3284 3365 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3285 3366 " 3286 eval as_val=\$$as_ac_Header 3287 if test "x$as_val" = x""yes; then : 3367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3288 3368 cat >>confdefs.h <<_ACEOF 3289 3369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3290 3370 _ACEOF … … 3298 3378 do : 3299 3379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3300 3380 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3301 eval as_val=\$$as_ac_Header 3302 if test "x$as_val" = x""yes; then : 3381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3382 cat >>confdefs.h <<_ACEOF 3383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3384 _ACEOF 3385 3386 fi 3387 3388 done 3389 3390 ac_fn_c_check_header_mongrel "$LINENO" "slang.h" "ac_cv_header_slang_h" "$ac_includes_default" 3391 if test "x$ac_cv_header_slang_h" = xyes; then : 3392 3393 else 3394 3395 old_CPPFLAGS=${CPPFLAGS} 3396 CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 3397 unset ac_cv_header_slang_h 3398 ac_fn_c_check_header_mongrel "$LINENO" "slang.h" "ac_cv_header_slang_h" "$ac_includes_default" 3399 if test "x$ac_cv_header_slang_h" = xyes; then : 3400 3401 fi 3402 3403 3404 if test x$ac_cv_header_slang_h = x; then 3405 CPPFLAGS="${old_CPPFLAGS}" 3406 else 3407 LDFLAGS="${LDFLAGS} -L/opt/local/lib" 3408 fi 3409 3410 fi 3411 3412 3413 if test x$ac_cv_header_slang_h = x; then 3414 old_CPPFLAGS=${CPPFLAGS} 3415 CPPFLAGS="${CPPFLAGS} -I/sw/include" 3416 ac_fn_c_check_header_mongrel "$LINENO" "slang.h" "ac_cv_header_slang_h" "$ac_includes_default" 3417 if test "x$ac_cv_header_slang_h" = xyes; then : 3418 3419 fi 3420 3421 3422 if test x$ac_cv_header_slang_h = x; then 3423 CPPFLAGS=${old_CPPFLAGS} 3424 else 3425 LDFLAGS="${LDFLAGS} -L/sw/lib" 3426 fi 3427 fi 3428 for ac_header in popt.h libintl.h 3429 do : 3430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3303 3433 cat >>confdefs.h <<_ACEOF 3304 3434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3305 3435 _ACEOF … … 3325 3455 if test "x$with_tcl" = "xno"; then 3326 3456 WHIPTCLSO= 3327 3457 else 3328 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" 3329 if test "x$ac_cv_header_tcl_h" = x""yes; then : 3330 WHIPTCLSO=whiptcl.so 3331 else 3332 WHIPTCLSO= 3333 fi 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcl configuration" >&5 3459 $as_echo_n "checking for tcl configuration... " >&6; } 3460 for i in ../tcl \ 3461 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 3462 ../../tcl \ 3463 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 3464 ../../../tcl \ 3465 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 3466 if test -f "$i/unix/tclConfig.sh" ; then 3467 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 3468 break 3469 fi 3470 done 3471 3472 # check in a few common install locations 3473 if test x"${ac_cv_c_tclconfig}" = x ; then 3474 for i in `ls -d ${libdir} 2>/dev/null` \ 3475 `ls -d /usr/lib 2>/dev/null` \ 3476 `ls -d /usr/local/lib 2>/dev/null` \ 3477 `ls -d /usr/contrib/lib 2>/dev/null` \ 3478 `ls -d /usr/pkg/lib 2>/dev/null` \ 3479 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \ 3480 `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \ 3481 `ls -d /usr/lib/tcl8.5 2>/dev/null` \ 3482 `ls -d /usr/lib/tcl8.4 2>/dev/null` \ 3483 `ls -d /opt/local/lib 2>/dev/null` \ 3484 ; do 3485 if test -f "$i/tclConfig.sh" ; then 3486 ac_cv_c_tclconfig=`(cd $i; pwd)` 3487 break 3488 fi 3489 done 3490 fi 3491 3492 # check in a few other private locations 3493 if test x"${ac_cv_c_tclconfig}" = x ; then 3494 for i in \ 3495 ${srcdir}/../tcl \ 3496 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 3497 if test -f "$i/unix/tclConfig.sh" ; then 3498 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 3499 break 3500 fi 3501 done 3502 fi 3334 3503 3504 if test x"${ac_cv_c_tclconfig}" != x ; then 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 3506 $as_echo "found" >&6; } 3507 . ${ac_cv_c_tclconfig}/tclConfig.sh 3335 3508 3509 WHIPTCLSO=whiptcl.so 3510 else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NOT found" >&5 3512 $as_echo "NOT found" >&6; } 3513 fi 3336 3514 fi 3337 3515 3338 3516 … … 3356 3534 3357 3535 3358 3536 if test "x$enable_nls" != "xno"; then 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lc" >&5 3538 $as_echo_n "checking for gettext in -lc... " >&6; } 3539 if ${ac_cv_lib_c_gettext+:} false; then : 3540 $as_echo_n "(cached) " >&6 3541 else 3542 ac_check_lib_save_LIBS=$LIBS 3543 LIBS="-lc $LIBS" 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545 /* end confdefs.h. */ 3546 3547 /* Override any GCC internal prototype to avoid an error. 3548 Use char because int might match the return type of a GCC 3549 builtin and then its argument prototype would still apply. */ 3550 #ifdef __cplusplus 3551 extern "C" 3552 #endif 3553 char gettext (); 3554 int 3555 main () 3556 { 3557 return gettext (); 3558 ; 3559 return 0; 3560 } 3561 _ACEOF 3562 if ac_fn_c_try_link "$LINENO"; then : 3563 ac_cv_lib_c_gettext=yes 3564 else 3565 ac_cv_lib_c_gettext=no 3566 fi 3567 rm -f core conftest.err conftest.$ac_objext \ 3568 conftest$ac_exeext conftest.$ac_ext 3569 LIBS=$ac_check_lib_save_LIBS 3570 fi 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettext" >&5 3572 $as_echo "$ac_cv_lib_c_gettext" >&6; } 3573 if test "x$ac_cv_lib_c_gettext" = xyes; then : 3574 cat >>confdefs.h <<_ACEOF 3575 #define HAVE_LIBC 1 3576 _ACEOF 3577 3578 LIBS="-lc $LIBS" 3579 3580 else 3581 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5 3583 $as_echo_n "checking for gettext in -lintl... " >&6; } 3584 if ${ac_cv_lib_intl_gettext+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586 else 3587 ac_check_lib_save_LIBS=$LIBS 3588 LIBS="-lintl $LIBS" 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590 /* end confdefs.h. */ 3591 3592 /* Override any GCC internal prototype to avoid an error. 3593 Use char because int might match the return type of a GCC 3594 builtin and then its argument prototype would still apply. */ 3595 #ifdef __cplusplus 3596 extern "C" 3597 #endif 3598 char gettext (); 3599 int 3600 main () 3601 { 3602 return gettext (); 3603 ; 3604 return 0; 3605 } 3606 _ACEOF 3607 if ac_fn_c_try_link "$LINENO"; then : 3608 ac_cv_lib_intl_gettext=yes 3609 else 3610 ac_cv_lib_intl_gettext=no 3611 fi 3612 rm -f core conftest.err conftest.$ac_objext \ 3613 conftest$ac_exeext conftest.$ac_ext 3614 LIBS=$ac_check_lib_save_LIBS 3615 fi 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5 3617 $as_echo "$ac_cv_lib_intl_gettext" >&6; } 3618 if test "x$ac_cv_lib_intl_gettext" = xyes; then : 3619 3620 LIBS="-lintl" 3621 3622 else 3623 3624 if test "x$enable_nls" != "xcheck"; then 3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3627 as_fn_error $? "--enable-nls was specified, but the configure check failed 3628 See \`config.log' for more details" "$LINENO" 5; } 3629 else 3630 enable_nls=no 3631 fi 3632 3633 fi 3634 3635 3636 fi 3637 3638 if test "x$enable_nls" != "xno"; then 3359 3639 3360 3640 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 3361 3641 3642 fi 3362 3643 fi 3363 3644 3364 3645 ac_config_files="$ac_config_files Makefile libnewt.pc" … … 3427 3708 :end' >>confcache 3428 3709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3429 3710 if test -w "$cache_file"; then 3430 test "x$cache_file" != "x/dev/null" &&3711 if test "x$cache_file" != "x/dev/null"; then 3431 3712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 3432 3713 $as_echo "$as_me: updating cache $cache_file" >&6;} 3433 cat confcache >$cache_file 3714 if test ! -f "$cache_file" || test -h "$cache_file"; then 3715 cat confcache >"$cache_file" 3716 else 3717 case $cache_file in #( 3718 */* | ?:*) 3719 mv -f confcache "$cache_file"$$ && 3720 mv -f "$cache_file"$$ "$cache_file" ;; #( 3721 *) 3722 mv -f confcache "$cache_file" ;; 3723 esac 3724 fi 3725 fi 3434 3726 else 3435 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 3436 3728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} … … 3446 3738 3447 3739 ac_libobjs= 3448 3740 ac_ltlibobjs= 3741 U= 3449 3742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3450 3743 # 1. Remove the extension, and $U if already installed. 3451 3744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' … … 3461 3754 3462 3755 3463 3756 3464 : ${CONFIG_STATUS=./config.status}3757 : "${CONFIG_STATUS=./config.status}" 3465 3758 ac_write_fail=0 3466 3759 ac_clean_files_save=$ac_clean_files 3467 3760 ac_clean_files="$ac_clean_files $CONFIG_STATUS" … … 3562 3855 IFS=" "" $as_nl" 3563 3856 3564 3857 # Find who we are. Look in the path if we contain no directory separator. 3858 as_myself= 3565 3859 case $0 in #(( 3566 3860 *[\\/]* ) as_myself=$0 ;; 3567 3861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3607 3901 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3608 3902 3609 3903 3610 # as_fn_error ERROR [LINENO LOG_FD]3611 # --------------------------------- 3904 # as_fn_error STATUS ERROR [LINENO LOG_FD] 3905 # ---------------------------------------- 3612 3906 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3613 3907 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3614 # script with status $?, using 1 if that was 0.3908 # script with STATUS, using 1 if that was 0. 3615 3909 as_fn_error () 3616 3910 { 3617 as_status=$ ?; test $as_status -eq 0 && as_status=13618 if test "$ 3"; then3619 as_lineno=${as_lineno-"$ 2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack3620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $ 1" >&$33911 as_status=$1; test $as_status -eq 0 && as_status=1 3912 if test "$4"; then 3913 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3914 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3621 3915 fi 3622 $as_echo "$as_me: error: $ 1" >&23916 $as_echo "$as_me: error: $2" >&2 3623 3917 as_fn_exit $as_status 3624 3918 } # as_fn_error 3625 3919 … … 3815 4109 test -d "$as_dir" && break 3816 4110 done 3817 4111 test -z "$as_dirs" || eval "mkdir $as_dirs" 3818 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"4112 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3819 4113 3820 4114 3821 4115 } # as_fn_mkdir_p … … 3869 4163 # values after options handling. 3870 4164 ac_log=" 3871 4165 This file was extended by $as_me, which was 3872 generated by GNU Autoconf 2.6 5. Invocation command line was4166 generated by GNU Autoconf 2.68. Invocation command line was 3873 4167 3874 4168 CONFIG_FILES = $CONFIG_FILES 3875 4169 CONFIG_HEADERS = $CONFIG_HEADERS … … 3931 4225 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 3932 4226 ac_cs_version="\\ 3933 4227 config.status 3934 configured by $0, generated by GNU Autoconf 2.6 5,4228 configured by $0, generated by GNU Autoconf 2.68, 3935 4229 with options \\"\$ac_cs_config\\" 3936 4230 3937 Copyright (C) 20 09Free Software Foundation, Inc.4231 Copyright (C) 2010 Free Software Foundation, Inc. 3938 4232 This config.status script is free software; the Free Software Foundation 3939 4233 gives unlimited permission to copy, distribute and modify it." 3940 4234 … … 3950 4244 while test $# != 0 3951 4245 do 3952 4246 case $1 in 3953 --*= *)4247 --*=?*) 3954 4248 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3955 4249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3956 4250 ac_shift=: 3957 4251 ;; 4252 --*=) 4253 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4254 ac_optarg= 4255 ac_shift=: 4256 ;; 3958 4257 *) 3959 4258 ac_option=$1 3960 4259 ac_optarg=$2 … … 3976 4275 $ac_shift 3977 4276 case $ac_optarg in 3978 4277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4278 '') as_fn_error $? "missing file argument" ;; 3979 4279 esac 3980 4280 as_fn_append CONFIG_FILES " '$ac_optarg'" 3981 4281 ac_need_defaults=false;; … … 3988 4288 ac_need_defaults=false;; 3989 4289 --he | --h) 3990 4290 # Conflict between --help and --header 3991 as_fn_error "ambiguous option: \`$1'4291 as_fn_error $? "ambiguous option: \`$1' 3992 4292 Try \`$0 --help' for more information.";; 3993 4293 --help | --hel | -h ) 3994 4294 $as_echo "$ac_cs_usage"; exit ;; … … 3997 4297 ac_cs_silent=: ;; 3998 4298 3999 4299 # This is an error. 4000 -*) as_fn_error "unrecognized option: \`$1'4300 -*) as_fn_error $? "unrecognized option: \`$1' 4001 4301 Try \`$0 --help' for more information." ;; 4002 4302 4003 4303 *) as_fn_append ac_config_targets " $1" … … 4050 4350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4051 4351 "libnewt.pc") CONFIG_FILES="$CONFIG_FILES libnewt.pc" ;; 4052 4352 4053 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;4353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4054 4354 esac 4055 4355 done 4056 4356 … … 4072 4372 # after its creation but before its name has been assigned to `$tmp'. 4073 4373 $debug || 4074 4374 { 4075 tmp= 4375 tmp= ac_tmp= 4076 4376 trap 'exit_status=$? 4077 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 4377 : "${ac_tmp:=$tmp}" 4378 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4078 4379 ' 0 4079 4380 trap 'as_fn_exit 1' 1 2 13 15 4080 4381 } … … 4082 4383 4083 4384 { 4084 4385 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4085 test - n "$tmp" && test -d "$tmp"4386 test -d "$tmp" 4086 4387 } || 4087 4388 { 4088 4389 tmp=./conf$$-$RANDOM 4089 4390 (umask 077 && mkdir "$tmp") 4090 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 4391 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 4392 ac_tmp=$tmp 4091 4393 4092 4394 # Set up the scripts for CONFIG_FILES section. 4093 4395 # No need to generate them if there are no CONFIG_FILES. … … 4104 4406 fi 4105 4407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 4106 4408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 4107 ac_cs_awk_cr='\ r'4409 ac_cs_awk_cr='\\r' 4108 4410 else 4109 4411 ac_cs_awk_cr=$ac_cr 4110 4412 fi 4111 4413 4112 echo 'BEGIN {' >"$ tmp/subs1.awk" &&4414 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 4113 4415 _ACEOF 4114 4416 4115 4417 … … 4118 4420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 4119 4421 echo "_ACEOF" 4120 4422 } >conf$$subs.sh || 4121 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 54122 ac_delim_num=`echo "$ac_subst_vars" | grep -c ' $'`4423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4424 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 4123 4425 ac_delim='%!_!# ' 4124 4426 for ac_last_try in false false false false false :; do 4125 4427 . ./conf$$subs.sh || 4126 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 54428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4127 4429 4128 4430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 4129 4431 if test $ac_delim_n = $ac_delim_num; then 4130 4432 break 4131 4433 elif $ac_last_try; then 4132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 54434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4133 4435 else 4134 4436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4135 4437 fi … … 4137 4439 rm -f conf$$subs.sh 4138 4440 4139 4441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4140 cat >>"\$ tmp/subs1.awk" <<\\_ACAWK &&4442 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 4141 4443 _ACEOF 4142 4444 sed -n ' 4143 4445 h … … 4185 4487 rm -f conf$$subs.awk 4186 4488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4187 4489 _ACAWK 4188 cat >>"\$ tmp/subs1.awk" <<_ACAWK &&4490 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 4189 4491 for (key in S) S_is_set[key] = 1 4190 4492 FS = "" 4191 4493 … … 4217 4519 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 4218 4520 else 4219 4521 cat 4220 fi < "$ tmp/subs1.awk" > "$tmp/subs.awk" \4221 || as_fn_error "could not setup config files machinery" "$LINENO" 54522 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 4523 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 4222 4524 _ACEOF 4223 4525 4224 # VPATH may cause trouble with some makes, so we remove $(srcdir),4225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and4526 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 4527 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 4226 4528 # trailing colons and then remove the whole line if VPATH becomes empty 4227 4529 # (actually we leave an empty line to preserve line numbers). 4228 4530 if test "x$srcdir" = x.; then 4229 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4230 s/:*\$(srcdir):*/:/ 4231 s/:*\${srcdir}:*/:/ 4232 s/:*@srcdir@:*/:/ 4233 s/^\([^=]*=[ ]*\):*/\1/ 4531 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 4532 h 4533 s/// 4534 s/^/:/ 4535 s/[ ]*$/:/ 4536 s/:\$(srcdir):/:/g 4537 s/:\${srcdir}:/:/g 4538 s/:@srcdir@:/:/g 4539 s/^:*// 4234 4540 s/:*$// 4541 x 4542 s/\(=[ ]*\).*/\1/ 4543 G 4544 s/\n// 4235 4545 s/^[^=]*=[ ]*$// 4236 4546 }' 4237 4547 fi … … 4243 4553 # No need to generate them if there are no CONFIG_HEADERS. 4244 4554 # This happens for instance with `./config.status Makefile'. 4245 4555 if test -n "$CONFIG_HEADERS"; then 4246 cat >"$ tmp/defines.awk" <<\_ACAWK ||4556 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 4247 4557 BEGIN { 4248 4558 _ACEOF 4249 4559 … … 4255 4565 # handling of long lines. 4256 4566 ac_delim='%!_!# ' 4257 4567 for ac_last_try in false false :; do 4258 ac_t =`sed -n "/$ac_delim/p" confdefs.h`4259 if test -z "$ac_t "; then4568 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 4569 if test -z "$ac_tt"; then 4260 4570 break 4261 4571 elif $ac_last_try; then 4262 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 54572 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 4263 4573 else 4264 4574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4265 4575 fi … … 4344 4654 _ACAWK 4345 4655 _ACEOF 4346 4656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4347 as_fn_error "could not setup config headers machinery" "$LINENO" 54657 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 4348 4658 fi # test -n "$CONFIG_HEADERS" 4349 4659 4350 4660 … … 4357 4667 esac 4358 4668 case $ac_mode$ac_tag in 4359 4669 :[FHL]*:*);; 4360 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;4670 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4361 4671 :[FH]-) ac_tag=-:-;; 4362 4672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4363 4673 esac … … 4376 4686 for ac_f 4377 4687 do 4378 4688 case $ac_f in 4379 -) ac_f="$ tmp/stdin";;4689 -) ac_f="$ac_tmp/stdin";; 4380 4690 *) # Look for the file first in the build tree, then in the source tree 4381 4691 # (if the path is not absolute). The absolute path cannot be DOS-style, 4382 4692 # because $ac_f cannot contain `:'. … … 4385 4695 [\\/$]*) false;; 4386 4696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4387 4697 esac || 4388 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;4698 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4389 4699 esac 4390 4700 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4391 4701 as_fn_append ac_file_inputs " '$ac_f'" … … 4411 4721 esac 4412 4722 4413 4723 case $ac_tag in 4414 *:-:* | *:-) cat >"$ tmp/stdin" \4415 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;4724 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 4416 4726 esac 4417 4727 ;; 4418 4728 esac … … 4542 4852 s&@INSTALL@&$ac_INSTALL&;t t 4543 4853 $ac_datarootdir_hack 4544 4854 " 4545 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ tmp/subs.awk" >$tmp/out\4546 || as_fn_error"could not create $ac_file" "$LINENO" 54855 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 4856 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4547 4857 4548 4858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 4550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 4859 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 4860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 4861 "$ac_tmp/out"`; test -z "$ac_out"; } && 4551 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4552 which seems to be undefined. Please make sure it is defined ." >&54863 which seems to be undefined. Please make sure it is defined" >&5 4553 4864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4554 which seems to be undefined. Please make sure it is defined ." >&2;}4865 which seems to be undefined. Please make sure it is defined" >&2;} 4555 4866 4556 rm -f "$ tmp/stdin"4867 rm -f "$ac_tmp/stdin" 4557 4868 case $ac_file in 4558 -) cat "$ tmp/out" && rm -f "$tmp/out";;4559 *) rm -f "$ac_file" && mv "$ tmp/out" "$ac_file";;4869 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4870 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 4560 4871 esac \ 4561 || as_fn_error "could not create $ac_file" "$LINENO" 54872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4562 4873 ;; 4563 4874 :H) 4564 4875 # … … 4567 4878 if test x"$ac_file" != x-; then 4568 4879 { 4569 4880 $as_echo "/* $configure_input */" \ 4570 && eval '$AWK -f "$ tmp/defines.awk"' "$ac_file_inputs"4571 } >"$ tmp/config.h" \4572 || as_fn_error "could not create $ac_file" "$LINENO" 54573 if diff "$ac_file" "$ tmp/config.h" >/dev/null 2>&1; then4881 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 4882 } >"$ac_tmp/config.h" \ 4883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4884 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 4574 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 4575 4886 $as_echo "$as_me: $ac_file is unchanged" >&6;} 4576 4887 else 4577 4888 rm -f "$ac_file" 4578 mv "$ tmp/config.h" "$ac_file" \4579 || as_fn_error "could not create $ac_file" "$LINENO" 54889 mv "$ac_tmp/config.h" "$ac_file" \ 4890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4580 4891 fi 4581 4892 else 4582 4893 $as_echo "/* $configure_input */" \ 4583 && eval '$AWK -f "$ tmp/defines.awk"' "$ac_file_inputs" \4584 || as_fn_error "could not create -" "$LINENO" 54894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 4895 || as_fn_error $? "could not create -" "$LINENO" 5 4585 4896 fi 4586 4897 ;; 4587 4898 … … 4596 4907 ac_clean_files=$ac_clean_files_save 4597 4908 4598 4909 test $ac_write_fail = 0 || 4599 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 54910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 4600 4911 4601 4912 4602 4913 # configure is writing to config.log, and then calls config.status. … … 4617 4928 exec 5>>config.log 4618 4929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4619 4930 # would make configure fail if this is the last instruction. 4620 $ac_cs_success || as_fn_exit $?4931 $ac_cs_success || as_fn_exit 1 4621 4932 fi 4622 4933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 4623 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -
configure.ac
diff -urN newt-0.52.12/configure.ac newt-0.52.12-macosx/configure.ac
old new 13 13 AC_PROG_CC 14 14 AC_PROG_INSTALL 15 15 AC_PROG_LN_S 16 AC_PROG_GREP 17 18 # Are we using GNU ld? 19 AC_MSG_CHECKING([for GNU ld]) 20 LD=`$CC -print-prog-name=ld 2>&5` 21 22 if test `$LD -v 2>&1 | $ac_cv_path_GREP -c "GNU ld"` = 0; then 23 # Not 24 GNU_LD="" 25 AC_MSG_RESULT([no]) 26 else 27 GNU_LD="$LD" 28 AC_MSG_RESULT([yes]) 29 AC_SUBST([GNU_LD]) 30 fi 16 31 17 32 AC_CHECK_HEADERS([sys/select.h alloca.h]) 33 AC_CHECK_HEADER([slang.h], [], [ 34 old_CPPFLAGS=${CPPFLAGS} 35 CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 36 unset ac_cv_header_slang_h 37 AC_CHECK_HEADER([slang.h]) 38 if test x$ac_cv_header_slang_h = x; then 39 CPPFLAGS="${old_CPPFLAGS}" 40 else 41 LDFLAGS="${LDFLAGS} -L/opt/local/lib" 42 fi 43 ]) 44 if test x$ac_cv_header_slang_h = x; then 45 old_CPPFLAGS=${CPPFLAGS} 46 CPPFLAGS="${CPPFLAGS} -I/sw/include" 47 AC_CHECK_HEADER([slang.h]) 48 if test x$ac_cv_header_slang_h = x; then 49 CPPFLAGS=${old_CPPFLAGS} 50 else 51 LDFLAGS="${LDFLAGS} -L/sw/lib" 52 fi 53 fi 54 AC_CHECK_HEADERS([popt.h libintl.h]) 18 55 19 56 AC_MSG_CHECKING([for python versions]) 20 57 PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null) … … 25 62 if test "x$with_tcl" = "xno"; then 26 63 WHIPTCLSO= 27 64 else 28 AC_CHECK_HEADER([tcl.h], [WHIPTCLSO=whiptcl.so], [WHIPTCLSO=]) 65 AC_MSG_CHECKING([for tcl configuration]) 66 for i in ../tcl \ 67 `ls -dr ../tcl[[8-9]].[[0-9]]* 2>/dev/null` \ 68 ../../tcl \ 69 `ls -dr ../../tcl[[8-9]].[[0-9]]* 2>/dev/null` \ 70 ../../../tcl \ 71 `ls -dr ../../../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do 72 if test -f "$i/unix/tclConfig.sh" ; then 73 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 74 break 75 fi 76 done 77 78 # check in a few common install locations 79 if test x"${ac_cv_c_tclconfig}" = x ; then 80 for i in `ls -d ${libdir} 2>/dev/null` \ 81 `ls -d /usr/lib 2>/dev/null` \ 82 `ls -d /usr/local/lib 2>/dev/null` \ 83 `ls -d /usr/contrib/lib 2>/dev/null` \ 84 `ls -d /usr/pkg/lib 2>/dev/null` \ 85 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \ 86 `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \ 87 `ls -d /usr/lib/tcl8.5 2>/dev/null` \ 88 `ls -d /usr/lib/tcl8.4 2>/dev/null` \ 89 `ls -d /opt/local/lib 2>/dev/null` \ 90 ; do 91 if test -f "$i/tclConfig.sh" ; then 92 ac_cv_c_tclconfig=`(cd $i; pwd)` 93 break 94 fi 95 done 96 fi 97 98 # check in a few other private locations 99 if test x"${ac_cv_c_tclconfig}" = x ; then 100 for i in \ 101 ${srcdir}/../tcl \ 102 `ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do 103 if test -f "$i/unix/tclConfig.sh" ; then 104 ac_cv_c_tclconfig=`(cd $i/unix; pwd)` 105 break 106 fi 107 done 108 fi 109 110 if test x"${ac_cv_c_tclconfig}" != x ; then 111 AC_MSG_RESULT([found]) 112 . ${ac_cv_c_tclconfig}/tclConfig.sh 113 AC_SUBST([TCL_LIB_FLAG]) 114 WHIPTCLSO=whiptcl.so 115 else 116 AC_MSG_RESULT([NOT found]) 117 fi 29 118 fi 30 119 AC_SUBST([WHIPTCLSO]) 31 120 … … 38 127 AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support]) 39 128 40 129 if test "x$enable_nls" != "xno"; then 41 AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled]) 130 AC_CHECK_LIB([c], [gettext], [], [ 131 AC_CHECK_LIB([intl], [gettext], [ 132 LIBS="-lintl" 133 AC_SUBST([LIBS])], [ 134 if test "x$enable_nls" != "xcheck"; then 135 AC_MSG_FAILURE([--enable-nls was specified, but the configure check failed]) 136 else 137 enable_nls=no 138 fi 139 ]) 140 ]) 141 if test "x$enable_nls" != "xno"; then 142 AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled]) 143 fi 42 144 fi 43 145 44 146 AC_CONFIG_FILES([Makefile libnewt.pc]) -
whiptail.c
diff -urN newt-0.52.12/whiptail.c newt-0.52.12-macosx/whiptail.c
old new 8 8 #include <unistd.h> 9 9 #include <wchar.h> 10 10 #include <slang.h> 11 #include <sys/stat.h> 11 12 12 13 #include "nls.h" 13 14 #include "dialogboxes.h"