Changeset 10191
- Timestamp:
- 2005-06-29T12:33:27+12:00 (19 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/packages/mg/configure
r3745 r10191 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by Autoconf 2.50.3 # Generated by GNU Autoconf 2.59. 4 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 9 11 10 12 # Be Bourne compatible … … 12 14 emulate sh 13 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 14 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 20 set -o posix 16 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 17 64 18 65 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 20 193 21 194 if expr a : '\(a\)' >/dev/null 2>&1; then … … 43 216 rm -f conf$$ conf$$.exe conf$$.file 44 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 45 225 as_executable_p="test -f" 46 226 47 # Support unset when possible. 48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 49 as_unset=unset 50 else 51 as_unset=false 52 fi 53 54 # NLS nuisances. 55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 63 233 64 234 # IFS … … 69 239 70 240 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 241 $as_unset CDPATH 242 72 243 73 244 # Name of the host. … … 82 253 # 83 254 ac_default_prefix=/usr/local 255 ac_config_libobj_dir=. 84 256 cross_compiling=no 85 257 subdirs= 86 MFLAGS= MAKEFLAGS= 258 MFLAGS= 259 MAKEFLAGS= 87 260 SHELL=${CONFIG_SHELL-/bin/sh} 88 261 … … 92 265 : ${ac_max_here_lines=38} 93 266 94 # Avoid depending upon Character Ranges. 95 ac_cr_az='abcdefghijklmnopqrstuvwxyz' 96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97 ac_cr_09='0123456789' 98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 99 100 # Sed expression to map a string onto a valid sh and CPP variable names. 101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 103 273 104 274 ac_unique_file="src/text/mgquery.c" … … 106 276 ac_includes_default="\ 107 277 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 110 284 #if STDC_HEADERS 111 285 # include <stdlib.h> … … 121 295 # endif 122 296 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 127 300 #endif 128 301 #if HAVE_INTTYPES_H 129 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 130 307 #endif 131 308 #if HAVE_UNISTD_H 132 309 # include <unistd.h> 133 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 134 314 135 315 # Initialize some variables set by options. … … 171 351 mandir='${prefix}/man' 172 352 173 # Identity of this package.174 PACKAGE_NAME=175 PACKAGE_TARNAME=176 PACKAGE_VERSION=177 PACKAGE_STRING=178 PACKAGE_BUGREPORT=179 180 353 ac_prev= 181 354 for ac_option … … 223 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 224 397 # Reject names that are not valid shell variable names. 225 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 226 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 400 { (exit 1); exit 1; }; } … … 232 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 233 406 # Reject names that are not valid shell variable names. 234 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 235 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 409 { (exit 1); exit 1; }; } … … 310 483 311 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 312 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 313 486 no_create=yes ;; 314 487 … … 414 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 415 588 # Reject names that are not valid shell variable names. 416 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 417 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 591 { (exit 1); exit 1; }; } … … 427 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 428 601 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 430 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 604 { (exit 1); exit 1; }; } … … 459 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 633 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$a c_cr_alnum]" >/dev/null &&634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 462 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 636 { (exit 1); exit 1; }; } … … 469 642 # FIXME: should be removed in autoconf 3.0. 470 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$a c_cr_alnum]" >/dev/null &&644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 472 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} … … 484 657 485 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 486 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 671 localstatedir libdir includedir oldincludedir infodir mandir 489 672 do 490 673 eval ac_val=$`echo $ac_var` 491 674 case $ac_val in 492 675 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 495 677 { (exit 1); exit 1; }; };; 496 678 esac … … 499 681 # There might be people who depend on the old broken behavior: `$host' 500 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 501 684 build=$build_alias 502 685 host=$host_alias 503 686 target=$target_alias 504 687 505 # FIXME: should be removed in autoconf 3.0.688 # FIXME: To remove some day. 506 689 if test "x$host_alias" != x; then 507 690 if test "x$build_alias" = x; then … … 519 702 test "$silent" = yes && exec 6>/dev/null 520 703 704 521 705 # Find the source files, if location was not specified. 522 706 if test -z "$srcdir"; then 523 707 ac_srcdir_defaulted=yes 524 708 # Try the directory containing this script, then its parent. 525 ac_prog=$0 526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 528 721 srcdir=$ac_confdir 529 722 if test ! -r $srcdir/$ac_unique_file; then … … 535 728 if test ! -r $srcdir/$ac_unique_file; then 536 729 if test "$ac_srcdir_defaulted" = yes; then 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 538 731 { (exit 1); exit 1; }; } 539 732 else 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 541 734 { (exit 1); exit 1; }; } 542 735 fi 543 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 544 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 741 ac_env_build_alias_set=${build_alias+set} … … 590 786 # Omit some internal or obsolete options to make the list less imposing. 591 787 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat << EOF788 cat <<_ACEOF 593 789 \`configure' configures this package to adapt to many kinds of systems. 594 790 … … 611 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 808 613 EOF614 615 cat << EOF809 _ACEOF 810 811 cat <<_ACEOF 616 812 Installation directories: 617 813 --prefix=PREFIX install architecture-independent files in PREFIX 618 814 [$ac_default_prefix] 619 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 816 [PREFIX] 621 817 622 818 By default, \`make install' will install all the files in … … 640 836 --infodir=DIR info documentation [PREFIX/info] 641 837 --mandir=DIR man documentation [PREFIX/man] 642 EOF643 644 cat <<\ EOF838 _ACEOF 839 840 cat <<\_ACEOF 645 841 646 842 Program names: … … 648 844 --program-suffix=SUFFIX append SUFFIX to installed program names 649 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF846 _ACEOF 651 847 fi 652 848 653 849 if test -n "$ac_init_help"; then 654 850 655 cat <<\ EOF851 cat <<\_ACEOF 656 852 657 853 Optional Packages: … … 676 872 it to find libraries and programs with nonstandard names/locations. 677 873 678 EOF874 _ACEOF 679 875 fi 680 876 … … 682 878 # If there are subdirs, report their specific --help. 683 879 ac_popdir=`pwd` 684 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 685 cd $ac_subdir 686 # A "../" for each directory in /$ac_subdir. 687 ac_dots=`echo $ac_subdir | 688 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 689 690 case $srcdir in 691 .) # No --srcdir option. We are building in place. 692 ac_sub_srcdir=$srcdir ;; 693 [\\/]* | ?:[\\/]* ) # Absolute path. 694 ac_sub_srcdir=$srcdir/$ac_subdir ;; 695 *) # Relative path. 696 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 697 esac 698 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 881 test -d $ac_dir || continue 882 ac_builddir=. 883 884 if test "$ac_dir" != .; then 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 886 # A "../" for each directory in $ac_dir_suffix. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 888 else 889 ac_dir_suffix= ac_top_builddir= 890 fi 891 892 case $srcdir in 893 .) # No --srcdir option. We are building in place. 894 ac_srcdir=. 895 if test -z "$ac_top_builddir"; then 896 ac_top_srcdir=. 897 else 898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 899 fi ;; 900 [\\/]* | ?:[\\/]* ) # Absolute path. 901 ac_srcdir=$srcdir$ac_dir_suffix; 902 ac_top_srcdir=$srcdir ;; 903 *) # Relative path. 904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; 906 esac 907 908 # Do not use `cd foo && pwd` to compute absolute paths, because 909 # the directories may not exist. 910 case `pwd` in 911 .) ac_abs_builddir="$ac_dir";; 912 *) 913 case "$ac_dir" in 914 .) ac_abs_builddir=`pwd`;; 915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 916 *) ac_abs_builddir=`pwd`/"$ac_dir";; 917 esac;; 918 esac 919 case $ac_abs_builddir in 920 .) ac_abs_top_builddir=${ac_top_builddir}.;; 921 *) 922 case ${ac_top_builddir}. in 923 .) ac_abs_top_builddir=$ac_abs_builddir;; 924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 926 esac;; 927 esac 928 case $ac_abs_builddir in 929 .) ac_abs_srcdir=$ac_srcdir;; 930 *) 931 case $ac_srcdir in 932 .) ac_abs_srcdir=$ac_abs_builddir;; 933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 935 esac;; 936 esac 937 case $ac_abs_builddir in 938 .) ac_abs_top_srcdir=$ac_top_srcdir;; 939 *) 940 case $ac_top_srcdir in 941 .) ac_abs_top_srcdir=$ac_abs_builddir;; 942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 944 esac;; 945 esac 946 947 cd $ac_dir 699 948 # Check for guested configure; otherwise get Cygnus style configure. 700 if test -f $ac_s ub_srcdir/configure.gnu; then949 if test -f $ac_srcdir/configure.gnu; then 701 950 echo 702 $SHELL $ac_s ub_srcdir/configure.gnu --help=recursive703 elif test -f $ac_s ub_srcdir/configure; then951 $SHELL $ac_srcdir/configure.gnu --help=recursive 952 elif test -f $ac_srcdir/configure; then 704 953 echo 705 $SHELL $ac_s ub_srcdir/configure --help=recursive706 elif test -f $ac_s ub_srcdir/configure.ac ||707 test -f $ac_sub_srcdir/configure.in; then954 $SHELL $ac_srcdir/configure --help=recursive 955 elif test -f $ac_srcdir/configure.ac || 956 test -f $ac_srcdir/configure.in; then 708 957 echo 709 958 $ac_configure --help 710 959 else 711 echo "$as_me: WARNING: no configuration information is in $ac_ subdir" >&2960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 712 961 fi 713 962 cd $ac_popdir … … 717 966 test -n "$ac_init_help" && exit 0 718 967 if $ac_init_version; then 719 cat <<\EOF 720 721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 722 Free Software Foundation, Inc. 968 cat <<\_ACEOF 969 970 Copyright (C) 2003 Free Software Foundation, Inc. 723 971 This configure script is free software; the Free Software Foundation 724 972 gives unlimited permission to copy, distribute and modify it. 725 EOF973 _ACEOF 726 974 exit 0 727 975 fi 728 976 exec 5>config.log 729 cat >&5 << EOF977 cat >&5 <<_ACEOF 730 978 This file contains any messages produced by compilers while 731 979 running configure, to aid debugging if configure makes a mistake. 732 980 733 981 It was created by $as_me, which was 734 generated by GNU Autoconf 2.5 0. Invocation command line was982 generated by GNU Autoconf 2.59. Invocation command line was 735 983 736 984 $ $0 $@ 737 985 738 EOF986 _ACEOF 739 987 { 740 988 cat <<_ASUNAME 741 ## --------- -##742 ## Platform. 743 ## --------- -##989 ## --------- ## 990 ## Platform. ## 991 ## --------- ## 744 992 745 993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` … … 760 1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 761 1009 762 PATH = $PATH763 764 1010 _ASUNAME 1011 1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013 for as_dir in $PATH 1014 do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018 done 1019 765 1020 } >&5 766 1021 767 cat >&5 <<EOF 768 ## ------------ ## 769 ## Core tests. ## 770 ## ------------ ## 771 772 EOF 1022 cat >&5 <<_ACEOF 1023 1024 1025 ## ----------- ## 1026 ## Core tests. ## 1027 ## ----------- ## 1028 1029 _ACEOF 1030 773 1031 774 1032 # Keep a trace of the command line. 775 1033 # Strip out --no-create and --no-recursion so they do not pile up. 1034 # Strip out --silent because we don't want to record it for future runs. 776 1035 # Also quote any args containing shell meta-characters. 1036 # Make two passes to allow for proper duplicate-argument suppression. 777 1037 ac_configure_args= 1038 ac_configure_args0= 1039 ac_configure_args1= 778 1040 ac_sep= 779 for ac_arg 1041 ac_must_keep_next=false 1042 for ac_pass in 1 2 780 1043 do 781 case $ac_arg in 782 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 783 | --no-cr | --no-c) ;; 784 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 785 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 788 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 789 ac_sep=" " ;; 790 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 791 ac_sep=" " ;; 792 esac 793 # Get rid of the leading space. 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 794 1079 done 1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 795 1082 796 1083 # When interrupted or exit'd, cleanup temporary files, and complete 797 1084 # config.log. We remove comments because anyway the quotes in there 798 1085 # would cause problems or look ugly. 1086 # WARNING: Be sure not to use single quotes in there, as some shells, 1087 # such as our DU 5.0 friend, will then `close' the trap. 799 1088 trap 'exit_status=$? 800 1089 # Save into config.log some information that might help in debugging. 801 echo >&5 802 echo "## ----------------- ##" >&5 803 echo "## Cache variables. ##" >&5 804 echo "## ----------------- ##" >&5 805 echo >&5 806 # The following way of writing the cache mishandles newlines in values, 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094 ## ---------------- ## 1095 ## Cache variables. ## 1096 ## ---------------- ## 1097 _ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 807 1100 { 808 1101 (set) 2>&1 | … … 810 1103 *ac_space=\ *) 811 1104 sed -n \ 812 813 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 814 1107 ;; 815 1108 *) 816 1109 sed -n \ 817 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 818 1111 ;; 819 1112 esac; 820 } >&5 821 sed "/^$/d" confdefs.h >conftest.log 822 if test -s conftest.log; then 823 echo >&5 824 echo "## ------------ ##" >&5 825 echo "## confdefs.h. ##" >&5 826 echo "## ------------ ##" >&5 827 echo >&5 828 cat conftest.log >&5 829 fi 830 (echo; echo) >&5 831 test "$ac_signal" != 0 && 832 echo "$as_me: caught signal $ac_signal" >&5 833 echo "$as_me: exit $exit_status" >&5 834 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1113 } 1114 echo 1115 1116 cat <<\_ASBOX 1117 ## ----------------- ## 1118 ## Output variables. ## 1119 ## ----------------- ## 1120 _ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131 ## ------------- ## 1132 ## Output files. ## 1133 ## ------------- ## 1134 _ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146 ## ----------- ## 1147 ## confdefs.h. ## 1148 ## ----------- ## 1149 _ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 835 1160 exit $exit_status 836 1161 ' 0 837 1162 for ac_signal in 1 2 13 15; do 838 trap 'ac_s tatus=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 839 1164 done 840 1165 ac_signal=0 … … 844 1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 845 1170 echo >confdefs.h 1171 1172 # Predefined preprocessor variables. 1173 1174 cat >>confdefs.h <<_ACEOF 1175 #define PACKAGE_NAME "$PACKAGE_NAME" 1176 _ACEOF 1177 1178 1179 cat >>confdefs.h <<_ACEOF 1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181 _ACEOF 1182 1183 1184 cat >>confdefs.h <<_ACEOF 1185 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1186 _ACEOF 1187 1188 1189 cat >>confdefs.h <<_ACEOF 1190 #define PACKAGE_STRING "$PACKAGE_STRING" 1191 _ACEOF 1192 1193 1194 cat >>confdefs.h <<_ACEOF 1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196 _ACEOF 1197 846 1198 847 1199 # Let the site file select an alternate cache file if it wants to. … … 856 1208 for ac_site_file in $CONFIG_SITE; do 857 1209 if test -r "$ac_site_file"; then 858 { echo "$as_me: 858: loading site script $ac_site_file" >&51210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 859 1211 echo "$as_me: loading site script $ac_site_file" >&6;} 860 cat"$ac_site_file" >&51212 sed 's/^/| /' "$ac_site_file" >&5 861 1213 . "$ac_site_file" 862 1214 fi … … 867 1219 # files actually), so we avoid doing that. 868 1220 if test -f "$cache_file"; then 869 { echo "$as_me: 869: loading cache $cache_file" >&51221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 870 1222 echo "$as_me: loading cache $cache_file" >&6;} 871 1223 case $cache_file in … … 875 1227 fi 876 1228 else 877 { echo "$as_me: 877: creating cache $cache_file" >&51229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 878 1230 echo "$as_me: creating cache $cache_file" >&6;} 879 1231 >$cache_file … … 882 1234 # Check that the precious variables saved in the cache have kept the same 883 1235 # value. 884 ac_ suggest_removing_cache=false1236 ac_cache_corrupted=false 885 1237 for ac_var in `(set) 2>&1 | 886 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 887 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 888 1240 eval ac_new_set=\$ac_env_${ac_var}_set … … 891 1243 case $ac_old_set,$ac_new_set in 892 1244 set,) 893 { echo "$as_me: 893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}895 ac_ suggest_removing_cache=: ;;1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 896 1248 ,set) 897 { echo "$as_me: 897: WARNING: \`$ac_var' was not set in the previous run" >&5898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}899 ac_ suggest_removing_cache=: ;;1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 900 1252 ,);; 901 1253 *) 902 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 903 { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}905 { echo "$as_me:905: WARNING: former value: $ac_old_val" >&5906 echo "$as_me: WARNING:former value: $ac_old_val" >&2;}907 { echo "$as_me:907: WARNING: current value: $ac_new_val" >&5908 echo "$as_me: WARNING:current value: $ac_new_val" >&2;}909 ac_suggest_removing_cache=:1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258 echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260 echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 910 1262 fi;; 911 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 912 1276 done 913 if $ac_suggest_removing_cache; then 914 { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5 915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 916 { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5 917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 1277 if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 918 1283 fi 919 1284 … … 924 1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 925 1290 926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 927 *c*,-n*) ECHO_N= ECHO_C=' 928 ' ECHO_T=' ' ;; 929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 931 esac 932 echo "#! $SHELL" >conftest.sh 933 echo "exit 0" >>conftest.sh 934 chmod +x conftest.sh 935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5 936 (PATH=".;."; conftest.sh) 2>&5 937 ac_status=$? 938 echo "$as_me:938: \$? = $ac_status" >&5 939 (exit $ac_status); }; then 940 ac_path_separator=';' 941 else 942 ac_path_separator=: 943 fi 944 PATH_SEPARATOR="$ac_path_separator" 945 rm -f conftest.sh 946 947 ac_config_headers="$ac_config_headers config.h" 948 949 if test "$program_transform_name" = s,x,x,; then 950 program_transform_name= 951 else 952 # Double any \ or $. echo might interpret backslashes. 953 cat <<\EOF >conftest.sed 954 s,\\,\\\\,g; s,\$,$$,g 955 EOF 956 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 957 rm -f conftest.sed 958 fi 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 ac_config_headers="$ac_config_headers config.h" 1310 959 1311 test "$program_prefix" != NONE && 960 program_transform_name="s,^,$ {program_prefix},;$program_transform_name"1312 program_transform_name="s,^,$program_prefix,;$program_transform_name" 961 1313 # Use a double $ so make ignores it. 962 1314 test "$program_suffix" != NONE && 963 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 964 965 # sed with no file args requires a program. 966 test -z "$program_transform_name" && program_transform_name="s,x,x," 1315 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1316 # Double any \ or $. echo might interpret backslashes. 1317 # By default was `s,x,x', remove it if useless. 1318 cat <<\_ACEOF >conftest.sed 1319 s/[\\$]/&&/g;s/;s,x,x,$// 1320 _ACEOF 1321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1322 rm conftest.sed 1323 967 1324 968 1325 PACKAGE=mg 969 1326 VERSION=1.2 970 1327 971 cat >>confdefs.h <<EOF 1328 LDFLAGS= 1329 1330 cat >>confdefs.h <<_ACEOF 972 1331 #define PACKAGE "$PACKAGE" 973 EOF974 975 cat >>confdefs.h << EOF1332 _ACEOF 1333 1334 cat >>confdefs.h <<_ACEOF 976 1335 #define VERSION "$VERSION" 977 EOF 1336 _ACEOF 1337 1338 1339 978 1340 979 1341 ac_ext=cc … … 983 1345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 984 1346 if test -n "$ac_tool_prefix"; then 985 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1347 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 986 1348 do 987 1349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 988 1350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 989 echo "$as_me: 989: checking for $ac_word" >&51351 echo "$as_me:$LINENO: checking for $ac_word" >&5 990 1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 991 1353 if test "${ac_cv_prog_CXX+set}" = set; then … … 995 1357 ac_cv_prog_CXX="$CXX" # Let the user override the test. 996 1358 else 997 ac_save_IFS=$IFS; IFS=$ac_path_separator 998 ac_dummy="$PATH" 999 for ac_dir in $ac_dummy; do 1000 IFS=$ac_save_IFS 1001 test -z "$ac_dir" && ac_dir=. 1002 $as_executable_p "$ac_dir/$ac_word" || continue 1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5 1005 break 1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1360 for as_dir in $PATH 1361 do 1362 IFS=$as_save_IFS 1363 test -z "$as_dir" && as_dir=. 1364 for ac_exec_ext in '' $ac_executable_extensions; do 1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1368 break 2 1369 fi 1370 done 1006 1371 done 1007 1372 … … 1010 1375 CXX=$ac_cv_prog_CXX 1011 1376 if test -n "$CXX"; then 1012 echo "$as_me: 1012: result: $CXX" >&51377 echo "$as_me:$LINENO: result: $CXX" >&5 1013 1378 echo "${ECHO_T}$CXX" >&6 1014 1379 else 1015 echo "$as_me: 1015: result: no" >&51380 echo "$as_me:$LINENO: result: no" >&5 1016 1381 echo "${ECHO_T}no" >&6 1017 1382 fi … … 1022 1387 if test -z "$CXX"; then 1023 1388 ac_ct_CXX=$CXX 1024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1389 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1025 1390 do 1026 1391 # Extract the first word of "$ac_prog", so it can be a program name with args. 1027 1392 set dummy $ac_prog; ac_word=$2 1028 echo "$as_me: 1028: checking for $ac_word" >&51393 echo "$as_me:$LINENO: checking for $ac_word" >&5 1029 1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1030 1395 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then … … 1034 1399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1035 1400 else 1036 ac_save_IFS=$IFS; IFS=$ac_path_separator 1037 ac_dummy="$PATH" 1038 for ac_dir in $ac_dummy; do 1039 IFS=$ac_save_IFS 1040 test -z "$ac_dir" && ac_dir=. 1041 $as_executable_p "$ac_dir/$ac_word" || continue 1042 ac_cv_prog_ac_ct_CXX="$ac_prog" 1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5 1044 break 1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402 for as_dir in $PATH 1403 do 1404 IFS=$as_save_IFS 1405 test -z "$as_dir" && as_dir=. 1406 for ac_exec_ext in '' $ac_executable_extensions; do 1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1408 ac_cv_prog_ac_ct_CXX="$ac_prog" 1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1410 break 2 1411 fi 1412 done 1045 1413 done 1046 1414 … … 1049 1417 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1050 1418 if test -n "$ac_ct_CXX"; then 1051 echo "$as_me: 1051: result: $ac_ct_CXX" >&51419 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1052 1420 echo "${ECHO_T}$ac_ct_CXX" >&6 1053 1421 else 1054 echo "$as_me: 1054: result: no" >&51422 echo "$as_me:$LINENO: result: no" >&5 1055 1423 echo "${ECHO_T}no" >&6 1056 1424 fi … … 1063 1431 fi 1064 1432 1433 1434 # Provide some information about the compiler. 1435 echo "$as_me:$LINENO:" \ 1436 "checking for C++ compiler version" >&5 1437 ac_compiler=`set X $ac_compile; echo $2` 1438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1439 (eval $ac_compiler --version </dev/null >&5) 2>&5 1440 ac_status=$? 1441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1442 (exit $ac_status); } 1443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1444 (eval $ac_compiler -v </dev/null >&5) 2>&5 1445 ac_status=$? 1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1447 (exit $ac_status); } 1448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1449 (eval $ac_compiler -V </dev/null >&5) 2>&5 1450 ac_status=$? 1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1452 (exit $ac_status); } 1453 1065 1454 cat >conftest.$ac_ext <<_ACEOF 1066 #line 1066 "configure" 1067 #include "confdefs.h" 1455 /* confdefs.h. */ 1456 _ACEOF 1457 cat confdefs.h >>conftest.$ac_ext 1458 cat >>conftest.$ac_ext <<_ACEOF 1459 /* end confdefs.h. */ 1068 1460 1069 1461 int … … 1076 1468 _ACEOF 1077 1469 ac_clean_files_save=$ac_clean_files 1078 ac_clean_files="$ac_clean_files a.out a.exe "1470 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1079 1471 # Try to create an executable without -o first, disregard a.out. 1080 # It will help us diagnose broken compiler , and finding out an intuition1472 # It will help us diagnose broken compilers, and finding out an intuition 1081 1473 # of exeext. 1082 echo "$as_me: 1082: checking for C++ compiler default output" >&51083 echo $ECHO_N "checking for C++ compiler default output ... $ECHO_C" >&61474 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1475 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1084 1476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1085 if { (eval echo "$as_me: 1085: \"$ac_link_default\"") >&51477 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1086 1478 (eval $ac_link_default) 2>&5 1087 1479 ac_status=$? 1088 echo "$as_me: 1088: \$? = $ac_status" >&51480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1089 1481 (exit $ac_status); }; then 1090 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1482 # Find the output, starting from the most likely. This scheme is 1483 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1484 # resort. 1485 1486 # Be careful to initialize this variable, since it used to be cached. 1487 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1488 ac_cv_exeext= 1489 # b.out is created by i960 compilers. 1490 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1491 do 1492 test -f "$ac_file" || continue 1091 1493 case $ac_file in 1092 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1093 a.out ) # We found the default executable, but exeext='' is most 1094 # certainly right. 1095 break;; 1096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1097 export ac_cv_exeext 1098 break;; 1099 * ) break;; 1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1495 ;; 1496 conftest.$ac_ext ) 1497 # This is the source file. 1498 ;; 1499 [ab].out ) 1500 # We found the default executable, but exeext='' is most 1501 # certainly right. 1502 break;; 1503 *.* ) 1504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1505 # FIXME: I believe we export ac_cv_exeext for Libtool, 1506 # but it would be cool to find out if it's true. Does anybody 1507 # maintain Libtool? --akim. 1508 export ac_cv_exeext 1509 break;; 1510 * ) 1511 break;; 1100 1512 esac 1101 1513 done 1102 1514 else 1103 1515 echo "$as_me: failed program was:" >&5 1104 cat conftest.$ac_ext >&5 1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5 1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1516 sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1519 See \`config.log' for more details." >&5 1520 echo "$as_me: error: C++ compiler cannot create executables 1521 See \`config.log' for more details." >&2;} 1107 1522 { (exit 77); exit 77; }; } 1108 1523 fi 1109 1524 1110 1525 ac_exeext=$ac_cv_exeext 1111 echo "$as_me: 1111: result: $ac_file" >&51526 echo "$as_me:$LINENO: result: $ac_file" >&5 1112 1527 echo "${ECHO_T}$ac_file" >&6 1113 1528 1114 1529 # Check the compiler produces executables we can run. If not, either 1115 1530 # the compiler is broken, or we cross compile. 1116 echo "$as_me: 1116: checking whether the C++ compiler works" >&51531 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1117 1532 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1118 1533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 … … 1120 1535 if test "$cross_compiling" != yes; then 1121 1536 if { ac_try='./$ac_file' 1122 { (eval echo "$as_me: 1122: \"$ac_try\"") >&51123 (eval $ac_try) 2>&5 1124 ac_status=$? 1125 echo "$as_me: 1125: \$? = $ac_status" >&51537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1538 (eval $ac_try) 2>&5 1539 ac_status=$? 1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1126 1541 (exit $ac_status); }; }; then 1127 1542 cross_compiling=no … … 1130 1545 cross_compiling=yes 1131 1546 else 1132 { { echo "$as_me:1132: error: cannot run C++ compiled programs. 1133 If you meant to cross compile, use \`--host'." >&5 1547 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1548 If you meant to cross compile, use \`--host'. 1549 See \`config.log' for more details." >&5 1134 1550 echo "$as_me: error: cannot run C++ compiled programs. 1135 If you meant to cross compile, use \`--host'." >&2;} 1551 If you meant to cross compile, use \`--host'. 1552 See \`config.log' for more details." >&2;} 1136 1553 { (exit 1); exit 1; }; } 1137 1554 fi 1138 1555 fi 1139 1556 fi 1140 echo "$as_me: 1140: result: yes" >&51557 echo "$as_me:$LINENO: result: yes" >&5 1141 1558 echo "${ECHO_T}yes" >&6 1142 1559 1143 rm -f a.out a.exe conftest$ac_cv_exeext 1560 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1144 1561 ac_clean_files=$ac_clean_files_save 1145 1562 # Check the compiler produces executables we can run. If not, either 1146 1563 # the compiler is broken, or we cross compile. 1147 echo "$as_me: 1147: checking whether we are cross compiling" >&51564 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1148 1565 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1149 echo "$as_me: 1149: result: $cross_compiling" >&51566 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1150 1567 echo "${ECHO_T}$cross_compiling" >&6 1151 1568 1152 echo "$as_me: 1152: checking for executable suffix" >&51153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&61154 if { (eval echo "$as_me: 1154: \"$ac_link\"") >&51569 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1570 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1155 1572 (eval $ac_link) 2>&5 1156 1573 ac_status=$? 1157 echo "$as_me: 1157: \$? = $ac_status" >&51574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1158 1575 (exit $ac_status); }; then 1159 1576 # If both `conftest.exe' and `conftest' are `present' (well, observable) … … 1161 1578 # work properly (i.e., refer to `conftest.exe'), while it won't with 1162 1579 # `rm'. 1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1580 for ac_file in conftest.exe conftest conftest.*; do 1581 test -f "$ac_file" || continue 1164 1582 case $ac_file in 1165 *.$ac_ext | *. o | *.obj | *.xcoff | *.tds | *.d | *.pdb) ;;1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1166 1584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1167 1168 1585 export ac_cv_exeext 1586 break;; 1169 1587 * ) break;; 1170 1588 esac 1171 1589 done 1172 1590 else 1173 { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5 1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1592 See \`config.log' for more details." >&5 1593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1594 See \`config.log' for more details." >&2;} 1175 1595 { (exit 1); exit 1; }; } 1176 1596 fi 1177 1597 1178 1598 rm -f conftest$ac_cv_exeext 1179 echo "$as_me: 1179: result: $ac_cv_exeext" >&51599 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1180 1600 echo "${ECHO_T}$ac_cv_exeext" >&6 1181 1601 … … 1183 1603 EXEEXT=$ac_cv_exeext 1184 1604 ac_exeext=$EXEEXT 1185 echo "$as_me: 1185: checking for object suffix" >&51186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&61605 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1187 1607 if test "${ac_cv_objext+set}" = set; then 1188 1608 echo $ECHO_N "(cached) $ECHO_C" >&6 1189 1609 else 1190 1610 cat >conftest.$ac_ext <<_ACEOF 1191 #line 1191 "configure" 1192 #include "confdefs.h" 1611 /* confdefs.h. */ 1612 _ACEOF 1613 cat confdefs.h >>conftest.$ac_ext 1614 cat >>conftest.$ac_ext <<_ACEOF 1615 /* end confdefs.h. */ 1193 1616 1194 1617 int … … 1201 1624 _ACEOF 1202 1625 rm -f conftest.o conftest.obj 1203 if { (eval echo "$as_me: 1203: \"$ac_compile\"") >&51626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1204 1627 (eval $ac_compile) 2>&5 1205 1628 ac_status=$? 1206 echo "$as_me: 1206: \$? = $ac_status" >&51629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1207 1630 (exit $ac_status); }; then 1208 1631 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1209 1632 case $ac_file in 1210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;1633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1211 1634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1212 1635 break;; … … 1215 1638 else 1216 1639 echo "$as_me: failed program was:" >&5 1217 cat conftest.$ac_ext >&5 1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5 1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1640 sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1643 See \`config.log' for more details." >&5 1644 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1645 See \`config.log' for more details." >&2;} 1220 1646 { (exit 1); exit 1; }; } 1221 1647 fi … … 1223 1649 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1224 1650 fi 1225 echo "$as_me: 1225: result: $ac_cv_objext" >&51651 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1226 1652 echo "${ECHO_T}$ac_cv_objext" >&6 1227 1653 OBJEXT=$ac_cv_objext 1228 1654 ac_objext=$OBJEXT 1229 echo "$as_me: 1229: checking whether we are using the GNU C++ compiler" >&51655 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1230 1656 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1231 1657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then … … 1233 1659 else 1234 1660 cat >conftest.$ac_ext <<_ACEOF 1235 #line 1235 "configure" 1236 #include "confdefs.h" 1661 /* confdefs.h. */ 1662 _ACEOF 1663 cat confdefs.h >>conftest.$ac_ext 1664 cat >>conftest.$ac_ext <<_ACEOF 1665 /* end confdefs.h. */ 1237 1666 1238 1667 int … … 1248 1677 _ACEOF 1249 1678 rm -f conftest.$ac_objext 1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5 1251 (eval $ac_compile) 2>&5 1252 ac_status=$? 1253 echo "$as_me:1253: \$? = $ac_status" >&5 1679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1680 (eval $ac_compile) 2>conftest.er1 1681 ac_status=$? 1682 grep -v '^ *+' conftest.er1 >conftest.err 1683 rm -f conftest.er1 1684 cat conftest.err >&5 1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1254 1686 (exit $ac_status); } && 1255 { ac_try='test -s conftest.$ac_objext' 1256 { (eval echo "$as_me:1256: \"$ac_try\"") >&5 1257 (eval $ac_try) 2>&5 1258 ac_status=$? 1259 echo "$as_me:1259: \$? = $ac_status" >&5 1687 { ac_try='test -z "$ac_cxx_werror_flag" 1688 || test ! -s conftest.err' 1689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1690 (eval $ac_try) 2>&5 1691 ac_status=$? 1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1693 (exit $ac_status); }; } && 1694 { ac_try='test -s conftest.$ac_objext' 1695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1696 (eval $ac_try) 2>&5 1697 ac_status=$? 1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1260 1699 (exit $ac_status); }; }; then 1261 1700 ac_compiler_gnu=yes 1262 1701 else 1263 1702 echo "$as_me: failed program was:" >&5 1264 cat conftest.$ac_ext >&5 1703 sed 's/^/| /' conftest.$ac_ext >&5 1704 1265 1705 ac_compiler_gnu=no 1266 1706 fi 1267 rm -f conftest. $ac_objext conftest.$ac_ext1707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1268 1708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1269 1709 1270 1710 fi 1271 echo "$as_me: 1271: result: $ac_cv_cxx_compiler_gnu" >&51711 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1272 1712 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1273 1713 GXX=`test $ac_compiler_gnu = yes && echo yes` … … 1275 1715 ac_save_CXXFLAGS=$CXXFLAGS 1276 1716 CXXFLAGS="-g" 1277 echo "$as_me: 1277: checking whether $CXX accepts -g" >&51717 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1278 1718 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1279 1719 if test "${ac_cv_prog_cxx_g+set}" = set; then … … 1281 1721 else 1282 1722 cat >conftest.$ac_ext <<_ACEOF 1283 #line 1283 "configure" 1284 #include "confdefs.h" 1723 /* confdefs.h. */ 1724 _ACEOF 1725 cat confdefs.h >>conftest.$ac_ext 1726 cat >>conftest.$ac_ext <<_ACEOF 1727 /* end confdefs.h. */ 1285 1728 1286 1729 int … … 1293 1736 _ACEOF 1294 1737 rm -f conftest.$ac_objext 1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5 1296 (eval $ac_compile) 2>&5 1297 ac_status=$? 1298 echo "$as_me:1298: \$? = $ac_status" >&5 1738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1739 (eval $ac_compile) 2>conftest.er1 1740 ac_status=$? 1741 grep -v '^ *+' conftest.er1 >conftest.err 1742 rm -f conftest.er1 1743 cat conftest.err >&5 1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1299 1745 (exit $ac_status); } && 1300 { ac_try='test -s conftest.$ac_objext' 1301 { (eval echo "$as_me:1301: \"$ac_try\"") >&5 1302 (eval $ac_try) 2>&5 1303 ac_status=$? 1304 echo "$as_me:1304: \$? = $ac_status" >&5 1746 { ac_try='test -z "$ac_cxx_werror_flag" 1747 || test ! -s conftest.err' 1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1749 (eval $ac_try) 2>&5 1750 ac_status=$? 1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1752 (exit $ac_status); }; } && 1753 { ac_try='test -s conftest.$ac_objext' 1754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1755 (eval $ac_try) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1305 1758 (exit $ac_status); }; }; then 1306 1759 ac_cv_prog_cxx_g=yes 1307 1760 else 1308 1761 echo "$as_me: failed program was:" >&5 1309 cat conftest.$ac_ext >&5 1762 sed 's/^/| /' conftest.$ac_ext >&5 1763 1310 1764 ac_cv_prog_cxx_g=no 1311 1765 fi 1312 rm -f conftest. $ac_objext conftest.$ac_ext1313 fi 1314 echo "$as_me: 1314: result: $ac_cv_prog_cxx_g" >&51766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1767 fi 1768 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1315 1769 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1316 1770 if test "$ac_test_CXXFLAGS" = set; then … … 1330 1784 fi 1331 1785 for ac_declaration in \ 1332 ''\ 1333 '#include <stdlib.h>' \ 1786 '' \ 1334 1787 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1335 1788 'extern "C" void std::exit (int); using std::exit;' \ … … 1339 1792 do 1340 1793 cat >conftest.$ac_ext <<_ACEOF 1341 #line 1341 "configure" 1342 #include "confdefs.h" 1794 /* confdefs.h. */ 1795 _ACEOF 1796 cat confdefs.h >>conftest.$ac_ext 1797 cat >>conftest.$ac_ext <<_ACEOF 1798 /* end confdefs.h. */ 1799 $ac_declaration 1343 1800 #include <stdlib.h> 1801 int 1802 main () 1803 { 1804 exit (42); 1805 ; 1806 return 0; 1807 } 1808 _ACEOF 1809 rm -f conftest.$ac_objext 1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1811 (eval $ac_compile) 2>conftest.er1 1812 ac_status=$? 1813 grep -v '^ *+' conftest.er1 >conftest.err 1814 rm -f conftest.er1 1815 cat conftest.err >&5 1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1817 (exit $ac_status); } && 1818 { ac_try='test -z "$ac_cxx_werror_flag" 1819 || test ! -s conftest.err' 1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1821 (eval $ac_try) 2>&5 1822 ac_status=$? 1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1824 (exit $ac_status); }; } && 1825 { ac_try='test -s conftest.$ac_objext' 1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1827 (eval $ac_try) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); }; }; then 1831 : 1832 else 1833 echo "$as_me: failed program was:" >&5 1834 sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 continue 1837 fi 1838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1839 cat >conftest.$ac_ext <<_ACEOF 1840 /* confdefs.h. */ 1841 _ACEOF 1842 cat confdefs.h >>conftest.$ac_ext 1843 cat >>conftest.$ac_ext <<_ACEOF 1844 /* end confdefs.h. */ 1344 1845 $ac_declaration 1345 1846 int … … 1352 1853 _ACEOF 1353 1854 rm -f conftest.$ac_objext 1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5 1355 (eval $ac_compile) 2>&5 1356 ac_status=$? 1357 echo "$as_me:1357: \$? = $ac_status" >&5 1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1856 (eval $ac_compile) 2>conftest.er1 1857 ac_status=$? 1858 grep -v '^ *+' conftest.er1 >conftest.err 1859 rm -f conftest.er1 1860 cat conftest.err >&5 1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1358 1862 (exit $ac_status); } && 1359 { ac_try='test -s conftest.$ac_objext' 1360 { (eval echo "$as_me:1360: \"$ac_try\"") >&5 1361 (eval $ac_try) 2>&5 1362 ac_status=$? 1363 echo "$as_me:1363: \$? = $ac_status" >&5 1364 (exit $ac_status); }; }; then 1365 : 1366 else 1367 echo "$as_me: failed program was:" >&5 1368 cat conftest.$ac_ext >&5 1369 continue 1370 fi 1371 rm -f conftest.$ac_objext conftest.$ac_ext 1372 cat >conftest.$ac_ext <<_ACEOF 1373 #line 1373 "configure" 1374 #include "confdefs.h" 1375 $ac_declaration 1376 int 1377 main () 1378 { 1379 exit (42); 1380 ; 1381 return 0; 1382 } 1383 _ACEOF 1384 rm -f conftest.$ac_objext 1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5 1386 (eval $ac_compile) 2>&5 1387 ac_status=$? 1388 echo "$as_me:1388: \$? = $ac_status" >&5 1389 (exit $ac_status); } && 1390 { ac_try='test -s conftest.$ac_objext' 1391 { (eval echo "$as_me:1391: \"$ac_try\"") >&5 1392 (eval $ac_try) 2>&5 1393 ac_status=$? 1394 echo "$as_me:1394: \$? = $ac_status" >&5 1863 { ac_try='test -z "$ac_cxx_werror_flag" 1864 || test ! -s conftest.err' 1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1866 (eval $ac_try) 2>&5 1867 ac_status=$? 1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1869 (exit $ac_status); }; } && 1870 { ac_try='test -s conftest.$ac_objext' 1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1872 (eval $ac_try) 2>&5 1873 ac_status=$? 1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1395 1875 (exit $ac_status); }; }; then 1396 1876 break 1397 1877 else 1398 1878 echo "$as_me: failed program was:" >&5 1399 cat conftest.$ac_ext >&5 1400 fi 1401 rm -f conftest.$ac_objext conftest.$ac_ext 1879 sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 fi 1882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1402 1883 done 1403 echo '#ifdef __cplusplus' >>confdefs.h 1404 echo $ac_declaration >>confdefs.h 1405 echo '#endif' >>confdefs.h 1884 rm -f conftest* 1885 if test -n "$ac_declaration"; then 1886 echo '#ifdef __cplusplus' >>confdefs.h 1887 echo $ac_declaration >>confdefs.h 1888 echo '#endif' >>confdefs.h 1889 fi 1406 1890 1407 1891 ac_ext=c … … 1411 1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1412 1896 1413 for ac_prog in mawk gawk nawk awk1897 for ac_prog in gawk mawk nawk awk 1414 1898 do 1415 1899 # Extract the first word of "$ac_prog", so it can be a program name with args. 1416 1900 set dummy $ac_prog; ac_word=$2 1417 echo "$as_me: 1417: checking for $ac_word" >&51901 echo "$as_me:$LINENO: checking for $ac_word" >&5 1418 1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1419 1903 if test "${ac_cv_prog_AWK+set}" = set; then … … 1423 1907 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1424 1908 else 1425 ac_save_IFS=$IFS; IFS=$ac_path_separator 1426 ac_dummy="$PATH" 1427 for ac_dir in $ac_dummy; do 1428 IFS=$ac_save_IFS 1429 test -z "$ac_dir" && ac_dir=. 1430 $as_executable_p "$ac_dir/$ac_word" || continue 1431 ac_cv_prog_AWK="$ac_prog" 1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5 1433 break 1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910 for as_dir in $PATH 1911 do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_AWK="$ac_prog" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920 done 1434 1921 done 1435 1922 … … 1438 1925 AWK=$ac_cv_prog_AWK 1439 1926 if test -n "$AWK"; then 1440 echo "$as_me: 1440: result: $AWK" >&51927 echo "$as_me:$LINENO: result: $AWK" >&5 1441 1928 echo "${ECHO_T}$AWK" >&6 1442 1929 else 1443 echo "$as_me: 1443: result: no" >&51930 echo "$as_me:$LINENO: result: no" >&5 1444 1931 echo "${ECHO_T}no" >&6 1445 1932 fi … … 1452 1939 # Extract the first word of "$ac_prog", so it can be a program name with args. 1453 1940 set dummy $ac_prog; ac_word=$2 1454 echo "$as_me: 1454: checking for $ac_word" >&51941 echo "$as_me:$LINENO: checking for $ac_word" >&5 1455 1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1456 1943 if test "${ac_cv_prog_YACC+set}" = set; then … … 1460 1947 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1461 1948 else 1462 ac_save_IFS=$IFS; IFS=$ac_path_separator 1463 ac_dummy="$PATH" 1464 for ac_dir in $ac_dummy; do 1465 IFS=$ac_save_IFS 1466 test -z "$ac_dir" && ac_dir=. 1467 $as_executable_p "$ac_dir/$ac_word" || continue 1468 ac_cv_prog_YACC="$ac_prog" 1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5 1470 break 1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950 for as_dir in $PATH 1951 do 1952 IFS=$as_save_IFS 1953 test -z "$as_dir" && as_dir=. 1954 for ac_exec_ext in '' $ac_executable_extensions; do 1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1956 ac_cv_prog_YACC="$ac_prog" 1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1958 break 2 1959 fi 1960 done 1471 1961 done 1472 1962 … … 1475 1965 YACC=$ac_cv_prog_YACC 1476 1966 if test -n "$YACC"; then 1477 echo "$as_me: 1477: result: $YACC" >&51967 echo "$as_me:$LINENO: result: $YACC" >&5 1478 1968 echo "${ECHO_T}$YACC" >&6 1479 1969 else 1480 echo "$as_me: 1480: result: no" >&51970 echo "$as_me:$LINENO: result: no" >&5 1481 1971 echo "${ECHO_T}no" >&6 1482 1972 fi … … 1494 1984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1495 1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1496 echo "$as_me: 1496: checking for $ac_word" >&51986 echo "$as_me:$LINENO: checking for $ac_word" >&5 1497 1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1498 1988 if test "${ac_cv_prog_CC+set}" = set; then … … 1502 1992 ac_cv_prog_CC="$CC" # Let the user override the test. 1503 1993 else 1504 ac_save_IFS=$IFS; IFS=$ac_path_separator 1505 ac_dummy="$PATH" 1506 for ac_dir in $ac_dummy; do 1507 IFS=$ac_save_IFS 1508 test -z "$ac_dir" && ac_dir=. 1509 $as_executable_p "$ac_dir/$ac_word" || continue 1510 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5 1512 break 1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995 for as_dir in $PATH 1996 do 1997 IFS=$as_save_IFS 1998 test -z "$as_dir" && as_dir=. 1999 for ac_exec_ext in '' $ac_executable_extensions; do 2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2001 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2003 break 2 2004 fi 2005 done 1513 2006 done 1514 2007 … … 1517 2010 CC=$ac_cv_prog_CC 1518 2011 if test -n "$CC"; then 1519 echo "$as_me: 1519: result: $CC" >&52012 echo "$as_me:$LINENO: result: $CC" >&5 1520 2013 echo "${ECHO_T}$CC" >&6 1521 2014 else 1522 echo "$as_me: 1522: result: no" >&52015 echo "$as_me:$LINENO: result: no" >&5 1523 2016 echo "${ECHO_T}no" >&6 1524 2017 fi … … 1529 2022 # Extract the first word of "gcc", so it can be a program name with args. 1530 2023 set dummy gcc; ac_word=$2 1531 echo "$as_me: 1531: checking for $ac_word" >&52024 echo "$as_me:$LINENO: checking for $ac_word" >&5 1532 2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1533 2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1537 2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1538 2031 else 1539 ac_save_IFS=$IFS; IFS=$ac_path_separator 1540 ac_dummy="$PATH" 1541 for ac_dir in $ac_dummy; do 1542 IFS=$ac_save_IFS 1543 test -z "$ac_dir" && ac_dir=. 1544 $as_executable_p "$ac_dir/$ac_word" || continue 1545 ac_cv_prog_ac_ct_CC="gcc" 1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5 1547 break 2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033 for as_dir in $PATH 2034 do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 for ac_exec_ext in '' $ac_executable_extensions; do 2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2039 ac_cv_prog_ac_ct_CC="gcc" 2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2041 break 2 2042 fi 2043 done 1548 2044 done 1549 2045 … … 1552 2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1553 2049 if test -n "$ac_ct_CC"; then 1554 echo "$as_me: 1554: result: $ac_ct_CC" >&52050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1555 2051 echo "${ECHO_T}$ac_ct_CC" >&6 1556 2052 else 1557 echo "$as_me: 1557: result: no" >&52053 echo "$as_me:$LINENO: result: no" >&5 1558 2054 echo "${ECHO_T}no" >&6 1559 2055 fi … … 1568 2064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1569 2065 set dummy ${ac_tool_prefix}cc; ac_word=$2 1570 echo "$as_me: 1570: checking for $ac_word" >&52066 echo "$as_me:$LINENO: checking for $ac_word" >&5 1571 2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1572 2068 if test "${ac_cv_prog_CC+set}" = set; then … … 1576 2072 ac_cv_prog_CC="$CC" # Let the user override the test. 1577 2073 else 1578 ac_save_IFS=$IFS; IFS=$ac_path_separator 1579 ac_dummy="$PATH" 1580 for ac_dir in $ac_dummy; do 1581 IFS=$ac_save_IFS 1582 test -z "$ac_dir" && ac_dir=. 1583 $as_executable_p "$ac_dir/$ac_word" || continue 1584 ac_cv_prog_CC="${ac_tool_prefix}cc" 1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5 1586 break 2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2075 for as_dir in $PATH 2076 do 2077 IFS=$as_save_IFS 2078 test -z "$as_dir" && as_dir=. 2079 for ac_exec_ext in '' $ac_executable_extensions; do 2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2081 ac_cv_prog_CC="${ac_tool_prefix}cc" 2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2083 break 2 2084 fi 2085 done 1587 2086 done 1588 2087 … … 1591 2090 CC=$ac_cv_prog_CC 1592 2091 if test -n "$CC"; then 1593 echo "$as_me: 1593: result: $CC" >&52092 echo "$as_me:$LINENO: result: $CC" >&5 1594 2093 echo "${ECHO_T}$CC" >&6 1595 2094 else 1596 echo "$as_me: 1596: result: no" >&52095 echo "$as_me:$LINENO: result: no" >&5 1597 2096 echo "${ECHO_T}no" >&6 1598 2097 fi … … 1603 2102 # Extract the first word of "cc", so it can be a program name with args. 1604 2103 set dummy cc; ac_word=$2 1605 echo "$as_me: 1605: checking for $ac_word" >&52104 echo "$as_me:$LINENO: checking for $ac_word" >&5 1606 2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1607 2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1611 2110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1612 2111 else 1613 ac_save_IFS=$IFS; IFS=$ac_path_separator 1614 ac_dummy="$PATH" 1615 for ac_dir in $ac_dummy; do 1616 IFS=$ac_save_IFS 1617 test -z "$ac_dir" && ac_dir=. 1618 $as_executable_p "$ac_dir/$ac_word" || continue 1619 ac_cv_prog_ac_ct_CC="cc" 1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5 1621 break 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113 for as_dir in $PATH 2114 do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 for ac_exec_ext in '' $ac_executable_extensions; do 2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2119 ac_cv_prog_ac_ct_CC="cc" 2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 break 2 2122 fi 2123 done 1622 2124 done 1623 2125 … … 1626 2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1627 2129 if test -n "$ac_ct_CC"; then 1628 echo "$as_me: 1628: result: $ac_ct_CC" >&52130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1629 2131 echo "${ECHO_T}$ac_ct_CC" >&6 1630 2132 else 1631 echo "$as_me: 1631: result: no" >&52133 echo "$as_me:$LINENO: result: no" >&5 1632 2134 echo "${ECHO_T}no" >&6 1633 2135 fi … … 1642 2144 # Extract the first word of "cc", so it can be a program name with args. 1643 2145 set dummy cc; ac_word=$2 1644 echo "$as_me: 1644: checking for $ac_word" >&52146 echo "$as_me:$LINENO: checking for $ac_word" >&5 1645 2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1646 2148 if test "${ac_cv_prog_CC+set}" = set; then … … 1651 2153 else 1652 2154 ac_prog_rejected=no 1653 ac_save_IFS=$IFS; IFS=$ac_path_separator 1654 ac_dummy="$PATH" 1655 for ac_dir in $ac_dummy; do 1656 IFS=$ac_save_IFS 1657 test -z "$ac_dir" && ac_dir=. 1658 $as_executable_p "$ac_dir/$ac_word" || continue 1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1660 ac_prog_rejected=yes 1661 continue 1662 fi 1663 ac_cv_prog_CC="cc" 1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5 1665 break 2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2156 for as_dir in $PATH 2157 do 2158 IFS=$as_save_IFS 2159 test -z "$as_dir" && as_dir=. 2160 for ac_exec_ext in '' $ac_executable_extensions; do 2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2163 ac_prog_rejected=yes 2164 continue 2165 fi 2166 ac_cv_prog_CC="cc" 2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2168 break 2 2169 fi 2170 done 1666 2171 done 1667 2172 … … 1675 2180 # first if we set CC to just the basename; use the full file name. 1676 2181 shift 1677 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1678 shift 1679 ac_cv_prog_CC="$@" 2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1680 2183 fi 1681 2184 fi … … 1684 2187 CC=$ac_cv_prog_CC 1685 2188 if test -n "$CC"; then 1686 echo "$as_me: 1686: result: $CC" >&52189 echo "$as_me:$LINENO: result: $CC" >&5 1687 2190 echo "${ECHO_T}$CC" >&6 1688 2191 else 1689 echo "$as_me: 1689: result: no" >&52192 echo "$as_me:$LINENO: result: no" >&5 1690 2193 echo "${ECHO_T}no" >&6 1691 2194 fi … … 1698 2201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1699 2202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1700 echo "$as_me: 1700: checking for $ac_word" >&52203 echo "$as_me:$LINENO: checking for $ac_word" >&5 1701 2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1702 2205 if test "${ac_cv_prog_CC+set}" = set; then … … 1706 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 1707 2210 else 1708 ac_save_IFS=$IFS; IFS=$ac_path_separator 1709 ac_dummy="$PATH" 1710 for ac_dir in $ac_dummy; do 1711 IFS=$ac_save_IFS 1712 test -z "$ac_dir" && ac_dir=. 1713 $as_executable_p "$ac_dir/$ac_word" || continue 1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5 1716 break 2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212 for as_dir in $PATH 2213 do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2220 break 2 2221 fi 2222 done 1717 2223 done 1718 2224 … … 1721 2227 CC=$ac_cv_prog_CC 1722 2228 if test -n "$CC"; then 1723 echo "$as_me: 1723: result: $CC" >&52229 echo "$as_me:$LINENO: result: $CC" >&5 1724 2230 echo "${ECHO_T}$CC" >&6 1725 2231 else 1726 echo "$as_me: 1726: result: no" >&52232 echo "$as_me:$LINENO: result: no" >&5 1727 2233 echo "${ECHO_T}no" >&6 1728 2234 fi … … 1737 2243 # Extract the first word of "$ac_prog", so it can be a program name with args. 1738 2244 set dummy $ac_prog; ac_word=$2 1739 echo "$as_me: 1739: checking for $ac_word" >&52245 echo "$as_me:$LINENO: checking for $ac_word" >&5 1740 2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1741 2247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1745 2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1746 2252 else 1747 ac_save_IFS=$IFS; IFS=$ac_path_separator 1748 ac_dummy="$PATH" 1749 for ac_dir in $ac_dummy; do 1750 IFS=$ac_save_IFS 1751 test -z "$ac_dir" && ac_dir=. 1752 $as_executable_p "$ac_dir/$ac_word" || continue 1753 ac_cv_prog_ac_ct_CC="$ac_prog" 1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5 1755 break 2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254 for as_dir in $PATH 2255 do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2260 ac_cv_prog_ac_ct_CC="$ac_prog" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264 done 1756 2265 done 1757 2266 … … 1760 2269 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1761 2270 if test -n "$ac_ct_CC"; then 1762 echo "$as_me: 1762: result: $ac_ct_CC" >&52271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1763 2272 echo "${ECHO_T}$ac_ct_CC" >&6 1764 2273 else 1765 echo "$as_me: 1765: result: no" >&52274 echo "$as_me:$LINENO: result: no" >&5 1766 2275 echo "${ECHO_T}no" >&6 1767 2276 fi … … 1775 2284 fi 1776 2285 1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5 1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 2286 2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2288 See \`config.log' for more details." >&5 2289 echo "$as_me: error: no acceptable C compiler found in \$PATH 2290 See \`config.log' for more details." >&2;} 1779 2291 { (exit 1); exit 1; }; } 1780 2292 1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5 2293 # Provide some information about the compiler. 2294 echo "$as_me:$LINENO:" \ 2295 "checking for C compiler version" >&5 2296 ac_compiler=`set X $ac_compile; echo $2` 2297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2298 (eval $ac_compiler --version </dev/null >&5) 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); } 2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2303 (eval $ac_compiler -v </dev/null >&5) 2>&5 2304 ac_status=$? 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2306 (exit $ac_status); } 2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2308 (eval $ac_compiler -V </dev/null >&5) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); } 2312 2313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1782 2314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1783 2315 if test "${ac_cv_c_compiler_gnu+set}" = set; then … … 1785 2317 else 1786 2318 cat >conftest.$ac_ext <<_ACEOF 1787 #line 1787 "configure" 1788 #include "confdefs.h" 2319 /* confdefs.h. */ 2320 _ACEOF 2321 cat confdefs.h >>conftest.$ac_ext 2322 cat >>conftest.$ac_ext <<_ACEOF 2323 /* end confdefs.h. */ 1789 2324 1790 2325 int … … 1800 2335 _ACEOF 1801 2336 rm -f conftest.$ac_objext 1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5 1803 (eval $ac_compile) 2>&5 1804 ac_status=$? 1805 echo "$as_me:1805: \$? = $ac_status" >&5 2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>conftest.er1 2339 ac_status=$? 2340 grep -v '^ *+' conftest.er1 >conftest.err 2341 rm -f conftest.er1 2342 cat conftest.err >&5 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 2344 (exit $ac_status); } && 1807 { ac_try='test -s conftest.$ac_objext' 1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5 1809 (eval $ac_try) 2>&5 1810 ac_status=$? 1811 echo "$as_me:1811: \$? = $ac_status" >&5 2345 { ac_try='test -z "$ac_c_werror_flag" 2346 || test ! -s conftest.err' 2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2348 (eval $ac_try) 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); }; } && 2352 { ac_try='test -s conftest.$ac_objext' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1812 2357 (exit $ac_status); }; }; then 1813 2358 ac_compiler_gnu=yes 1814 2359 else 1815 2360 echo "$as_me: failed program was:" >&5 1816 cat conftest.$ac_ext >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 1817 2363 ac_compiler_gnu=no 1818 2364 fi 1819 rm -f conftest. $ac_objext conftest.$ac_ext2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1820 2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1821 2367 1822 2368 fi 1823 echo "$as_me: 1823: result: $ac_cv_c_compiler_gnu" >&52369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1824 2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1825 2371 GCC=`test $ac_compiler_gnu = yes && echo yes` … … 1827 2373 ac_save_CFLAGS=$CFLAGS 1828 2374 CFLAGS="-g" 1829 echo "$as_me: 1829: checking whether $CC accepts -g" >&52375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1830 2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1831 2377 if test "${ac_cv_prog_cc_g+set}" = set; then … … 1833 2379 else 1834 2380 cat >conftest.$ac_ext <<_ACEOF 1835 #line 1835 "configure" 1836 #include "confdefs.h" 2381 /* confdefs.h. */ 2382 _ACEOF 2383 cat confdefs.h >>conftest.$ac_ext 2384 cat >>conftest.$ac_ext <<_ACEOF 2385 /* end confdefs.h. */ 1837 2386 1838 2387 int … … 1845 2394 _ACEOF 1846 2395 rm -f conftest.$ac_objext 1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5 1848 (eval $ac_compile) 2>&5 1849 ac_status=$? 1850 echo "$as_me:1850: \$? = $ac_status" >&5 2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2397 (eval $ac_compile) 2>conftest.er1 2398 ac_status=$? 2399 grep -v '^ *+' conftest.er1 >conftest.err 2400 rm -f conftest.er1 2401 cat conftest.err >&5 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 2403 (exit $ac_status); } && 1852 { ac_try='test -s conftest.$ac_objext' 1853 { (eval echo "$as_me:1853: \"$ac_try\"") >&5 1854 (eval $ac_try) 2>&5 1855 ac_status=$? 1856 echo "$as_me:1856: \$? = $ac_status" >&5 2404 { ac_try='test -z "$ac_c_werror_flag" 2405 || test ! -s conftest.err' 2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2407 (eval $ac_try) 2>&5 2408 ac_status=$? 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); }; } && 2411 { ac_try='test -s conftest.$ac_objext' 2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 (eval $ac_try) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1857 2416 (exit $ac_status); }; }; then 1858 2417 ac_cv_prog_cc_g=yes 1859 2418 else 1860 2419 echo "$as_me: failed program was:" >&5 1861 cat conftest.$ac_ext >&5 2420 sed 's/^/| /' conftest.$ac_ext >&5 2421 1862 2422 ac_cv_prog_cc_g=no 1863 2423 fi 1864 rm -f conftest. $ac_objext conftest.$ac_ext1865 fi 1866 echo "$as_me: 1866: result: $ac_cv_prog_cc_g" >&52424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2425 fi 2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1867 2427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1868 2428 if test "$ac_test_CFLAGS" = set; then … … 1881 2441 fi 1882 2442 fi 1883 # Some people use a C++ compiler to compile C. Since we use `exit', 1884 # in C++ we need to declare it. In case someone uses the same compiler 1885 # for both compiling C and C++ we need to have the C++ compiler decide 1886 # the declaration of exit, since it's the most demanding environment. 1887 cat >conftest.$ac_ext <<_ACEOF 1888 #ifndef __cplusplus 1889 choke me 1890 #endif 1891 _ACEOF 1892 rm -f conftest.$ac_objext 1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5 1894 (eval $ac_compile) 2>&5 1895 ac_status=$? 1896 echo "$as_me:1896: \$? = $ac_status" >&5 1897 (exit $ac_status); } && 1898 { ac_try='test -s conftest.$ac_objext' 1899 { (eval echo "$as_me:1899: \"$ac_try\"") >&5 1900 (eval $ac_try) 2>&5 1901 ac_status=$? 1902 echo "$as_me:1902: \$? = $ac_status" >&5 1903 (exit $ac_status); }; }; then 1904 for ac_declaration in \ 1905 ''\ 1906 '#include <stdlib.h>' \ 1907 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1908 'extern "C" void std::exit (int); using std::exit;' \ 1909 'extern "C" void exit (int) throw ();' \ 1910 'extern "C" void exit (int);' \ 1911 'void exit (int);' 1912 do 1913 cat >conftest.$ac_ext <<_ACEOF 1914 #line 1914 "configure" 1915 #include "confdefs.h" 1916 #include <stdlib.h> 1917 $ac_declaration 1918 int 1919 main () 1920 { 1921 exit (42); 1922 ; 1923 return 0; 1924 } 1925 _ACEOF 1926 rm -f conftest.$ac_objext 1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5 1928 (eval $ac_compile) 2>&5 1929 ac_status=$? 1930 echo "$as_me:1930: \$? = $ac_status" >&5 1931 (exit $ac_status); } && 1932 { ac_try='test -s conftest.$ac_objext' 1933 { (eval echo "$as_me:1933: \"$ac_try\"") >&5 1934 (eval $ac_try) 2>&5 1935 ac_status=$? 1936 echo "$as_me:1936: \$? = $ac_status" >&5 1937 (exit $ac_status); }; }; then 1938 : 1939 else 1940 echo "$as_me: failed program was:" >&5 1941 cat conftest.$ac_ext >&5 1942 continue 1943 fi 1944 rm -f conftest.$ac_objext conftest.$ac_ext 1945 cat >conftest.$ac_ext <<_ACEOF 1946 #line 1946 "configure" 1947 #include "confdefs.h" 1948 $ac_declaration 1949 int 1950 main () 1951 { 1952 exit (42); 1953 ; 1954 return 0; 1955 } 1956 _ACEOF 1957 rm -f conftest.$ac_objext 1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5 1959 (eval $ac_compile) 2>&5 1960 ac_status=$? 1961 echo "$as_me:1961: \$? = $ac_status" >&5 1962 (exit $ac_status); } && 1963 { ac_try='test -s conftest.$ac_objext' 1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5 1965 (eval $ac_try) 2>&5 1966 ac_status=$? 1967 echo "$as_me:1967: \$? = $ac_status" >&5 1968 (exit $ac_status); }; }; then 1969 break 1970 else 1971 echo "$as_me: failed program was:" >&5 1972 cat conftest.$ac_ext >&5 1973 fi 1974 rm -f conftest.$ac_objext conftest.$ac_ext 1975 done 1976 echo '#ifdef __cplusplus' >>confdefs.h 1977 echo $ac_declaration >>confdefs.h 1978 echo '#endif' >>confdefs.h 1979 1980 else 1981 echo "$as_me: failed program was:" >&5 1982 cat conftest.$ac_ext >&5 1983 fi 1984 rm -f conftest.$ac_objext conftest.$ac_ext 1985 ac_ext=c 1986 ac_cpp='$CPP $CPPFLAGS' 1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1990 1991 ac_aux_dir= 1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1993 if test -f $ac_dir/install-sh; then 1994 ac_aux_dir=$ac_dir 1995 ac_install_sh="$ac_aux_dir/install-sh -c" 1996 break 1997 elif test -f $ac_dir/install.sh; then 1998 ac_aux_dir=$ac_dir 1999 ac_install_sh="$ac_aux_dir/install.sh -c" 2000 break 2001 elif test -f $ac_dir/shtool; then 2002 ac_aux_dir=$ac_dir 2003 ac_install_sh="$ac_aux_dir/shtool install -c" 2004 break 2005 fi 2006 done 2007 if test -z "$ac_aux_dir"; then 2008 { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2010 { (exit 1); exit 1; }; } 2011 fi 2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2015 2016 # Find a good install program. We prefer a C program (faster), 2017 # so one script is as good as another. But avoid the broken or 2018 # incompatible versions: 2019 # SysV /etc/install, /usr/sbin/install 2020 # SunOS /usr/etc/install 2021 # IRIX /sbin/install 2022 # AIX /bin/install 2023 # AmigaOS /C/install, which installs bootblocks on floppy discs 2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2027 # ./install, which can be erroneously created by make from ./install.sh. 2028 echo "$as_me:2028: checking for a BSD compatible install" >&5 2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2030 if test -z "$INSTALL"; then 2031 if test "${ac_cv_path_install+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033 else 2034 ac_save_IFS=$IFS; IFS=$ac_path_separator 2035 for ac_dir in $PATH; do 2036 IFS=$ac_save_IFS 2037 # Account for people who put trailing slashes in PATH elements. 2038 case $ac_dir/ in 2039 / | ./ | .// | /cC/* \ 2040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2041 | /usr/ucb/* ) ;; 2042 *) 2043 # OSF1 and SCO ODT 3.0 have their own names for install. 2044 # Don't use installbsd from OSF since it installs stuff as root 2045 # by default. 2046 for ac_prog in ginstall scoinst install; do 2047 if $as_executable_p "$ac_dir/$ac_prog"; then 2048 if test $ac_prog = install && 2049 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2050 # AIX install. It has an incompatible calling convention. 2051 : 2052 elif test $ac_prog = install && 2053 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2054 # program-specific install script used by HP pwplus--don't use. 2055 : 2056 else 2057 ac_cv_path_install="$ac_dir/$ac_prog -c" 2058 break 2 2059 fi 2060 fi 2061 done 2062 ;; 2063 esac 2064 done 2065 2066 fi 2067 if test "${ac_cv_path_install+set}" = set; then 2068 INSTALL=$ac_cv_path_install 2069 else 2070 # As a last resort, use the slow shell script. We don't cache a 2071 # path for INSTALL within a source directory, because that will 2072 # break other packages using the cache if that directory is 2073 # removed, or if the path is relative. 2074 INSTALL=$ac_install_sh 2075 fi 2076 fi 2077 echo "$as_me:2077: result: $INSTALL" >&5 2078 echo "${ECHO_T}$INSTALL" >&6 2079 2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2081 # It thinks the first close brace ends the variable substitution. 2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2083 2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2085 2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2087 2088 echo "$as_me:2088: checking whether ln -s works" >&5 2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2090 LN_S=$as_ln_s 2091 if test "$LN_S" = "ln -s"; then 2092 echo "$as_me:2092: result: yes" >&5 2093 echo "${ECHO_T}yes" >&6 2094 else 2095 echo "$as_me:2095: result: no, using $LN_S" >&5 2096 echo "${ECHO_T}no, using $LN_S" >&6 2097 fi 2098 2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5 2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104 else 2105 cat >conftest.make <<\EOF 2106 all: 2107 @echo 'ac_maketemp="${MAKE}"' 2108 EOF 2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2111 if test -n "$ac_maketemp"; then 2112 eval ac_cv_prog_make_${ac_make}_set=yes 2113 else 2114 eval ac_cv_prog_make_${ac_make}_set=no 2115 fi 2116 rm -f conftest.make 2117 fi 2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2119 echo "$as_me:2119: result: yes" >&5 2120 echo "${ECHO_T}yes" >&6 2121 SET_MAKE= 2122 else 2123 echo "$as_me:2123: result: no" >&5 2124 echo "${ECHO_T}no" >&6 2125 SET_MAKE="MAKE=${MAKE-make}" 2126 fi 2127 2128 if test -n "$ac_tool_prefix"; then 2129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2131 echo "$as_me:2131: checking for $ac_word" >&5 2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2133 if test "${ac_cv_prog_RANLIB+set}" = set; then 2134 echo $ECHO_N "(cached) $ECHO_C" >&6 2135 else 2136 if test -n "$RANLIB"; then 2137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2138 else 2139 ac_save_IFS=$IFS; IFS=$ac_path_separator 2140 ac_dummy="$PATH" 2141 for ac_dir in $ac_dummy; do 2142 IFS=$ac_save_IFS 2143 test -z "$ac_dir" && ac_dir=. 2144 $as_executable_p "$ac_dir/$ac_word" || continue 2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5 2147 break 2148 done 2149 2150 fi 2151 fi 2152 RANLIB=$ac_cv_prog_RANLIB 2153 if test -n "$RANLIB"; then 2154 echo "$as_me:2154: result: $RANLIB" >&5 2155 echo "${ECHO_T}$RANLIB" >&6 2156 else 2157 echo "$as_me:2157: result: no" >&5 2158 echo "${ECHO_T}no" >&6 2159 fi 2160 2161 fi 2162 if test -z "$ac_cv_prog_RANLIB"; then 2163 ac_ct_RANLIB=$RANLIB 2164 # Extract the first word of "ranlib", so it can be a program name with args. 2165 set dummy ranlib; ac_word=$2 2166 echo "$as_me:2166: checking for $ac_word" >&5 2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170 else 2171 if test -n "$ac_ct_RANLIB"; then 2172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2173 else 2174 ac_save_IFS=$IFS; IFS=$ac_path_separator 2175 ac_dummy="$PATH" 2176 for ac_dir in $ac_dummy; do 2177 IFS=$ac_save_IFS 2178 test -z "$ac_dir" && ac_dir=. 2179 $as_executable_p "$ac_dir/$ac_word" || continue 2180 ac_cv_prog_ac_ct_RANLIB="ranlib" 2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5 2182 break 2183 done 2184 2185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2186 fi 2187 fi 2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2189 if test -n "$ac_ct_RANLIB"; then 2190 echo "$as_me:2190: result: $ac_ct_RANLIB" >&5 2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2192 else 2193 echo "$as_me:2193: result: no" >&5 2194 echo "${ECHO_T}no" >&6 2195 fi 2196 2197 RANLIB=$ac_ct_RANLIB 2198 else 2199 RANLIB="$ac_cv_prog_RANLIB" 2200 fi 2201 2202 ac_ext=c 2203 ac_cpp='$CPP $CPPFLAGS' 2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5 2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2209 # On Suns, sometimes $CPP names a directory. 2210 if test -n "$CPP" && test -d "$CPP"; then 2211 CPP= 2212 fi 2213 if test -z "$CPP"; then 2214 if test "${ac_cv_prog_CPP+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216 else 2217 # Double quotes because CPP needs to be expanded 2218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2219 do 2220 # break 2 since there is a loop in there. 2221 ac_preproc_ok=false 2222 for ac_c_preproc_warn_flag in '' yes 2223 do 2224 # Use a header file that comes with gcc, so configuring glibc 2225 # with a fresh cross-compiler works. 2226 # On the NeXT, cc -E runs the code through the compiler's parser, 2227 # not just through cpp. "Syntax error" is here to catch this case. 2228 cat >conftest.$ac_ext <<_ACEOF 2229 #line 2229 "configure" 2230 #include "confdefs.h" 2231 #include <assert.h> 2232 Syntax error 2233 _ACEOF 2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5 2235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2236 ac_status=$? 2237 egrep -v '^ *\+' conftest.er1 >conftest.err 2238 rm -f conftest.er1 2239 cat conftest.err >&5 2240 echo "$as_me:2240: \$? = $ac_status" >&5 2241 (exit $ac_status); } >/dev/null; then 2242 if test -s conftest.err; then 2243 ac_cpp_err=$ac_c_preproc_warn_flag 2244 else 2245 ac_cpp_err= 2246 fi 2247 else 2248 ac_cpp_err=yes 2249 fi 2250 if test -z "$ac_cpp_err"; then 2251 : 2252 else 2253 echo "$as_me: failed program was:" >&5 2254 cat conftest.$ac_ext >&5 2255 # Broken: fails on valid input. 2256 continue 2257 fi 2258 rm -f conftest.err conftest.$ac_ext 2259 2260 # OK, works on sane cases. Now check whether non-existent headers 2261 # can be detected and how. 2262 cat >conftest.$ac_ext <<_ACEOF 2263 #line 2263 "configure" 2264 #include "confdefs.h" 2265 #include <ac_nonexistent.h> 2266 _ACEOF 2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5 2268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2269 ac_status=$? 2270 egrep -v '^ *\+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:2273: \$? = $ac_status" >&5 2274 (exit $ac_status); } >/dev/null; then 2275 if test -s conftest.err; then 2276 ac_cpp_err=$ac_c_preproc_warn_flag 2277 else 2278 ac_cpp_err= 2279 fi 2280 else 2281 ac_cpp_err=yes 2282 fi 2283 if test -z "$ac_cpp_err"; then 2284 # Broken: success on invalid input. 2285 continue 2286 else 2287 echo "$as_me: failed program was:" >&5 2288 cat conftest.$ac_ext >&5 2289 # Passes both tests. 2290 ac_preproc_ok=: 2291 break 2292 fi 2293 rm -f conftest.err conftest.$ac_ext 2294 2295 done 2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2297 rm -f conftest.err conftest.$ac_ext 2298 if $ac_preproc_ok; then 2299 break 2 2300 fi 2301 2302 done 2303 ac_cv_prog_CPP=$CPP 2304 2305 fi 2306 CPP=$ac_cv_prog_CPP 2307 else 2308 ac_cv_prog_CPP=$CPP 2309 fi 2310 echo "$as_me:2310: result: $CPP" >&5 2311 echo "${ECHO_T}$CPP" >&6 2312 ac_preproc_ok=false 2313 for ac_c_preproc_warn_flag in '' yes 2314 do 2315 # Use a header file that comes with gcc, so configuring glibc 2316 # with a fresh cross-compiler works. 2317 # On the NeXT, cc -E runs the code through the compiler's parser, 2318 # not just through cpp. "Syntax error" is here to catch this case. 2319 cat >conftest.$ac_ext <<_ACEOF 2320 #line 2320 "configure" 2321 #include "confdefs.h" 2322 #include <assert.h> 2323 Syntax error 2324 _ACEOF 2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5 2326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2327 ac_status=$? 2328 egrep -v '^ *\+' conftest.er1 >conftest.err 2329 rm -f conftest.er1 2330 cat conftest.err >&5 2331 echo "$as_me:2331: \$? = $ac_status" >&5 2332 (exit $ac_status); } >/dev/null; then 2333 if test -s conftest.err; then 2334 ac_cpp_err=$ac_c_preproc_warn_flag 2335 else 2336 ac_cpp_err= 2337 fi 2338 else 2339 ac_cpp_err=yes 2340 fi 2341 if test -z "$ac_cpp_err"; then 2342 : 2343 else 2344 echo "$as_me: failed program was:" >&5 2345 cat conftest.$ac_ext >&5 2346 # Broken: fails on valid input. 2347 continue 2348 fi 2349 rm -f conftest.err conftest.$ac_ext 2350 2351 # OK, works on sane cases. Now check whether non-existent headers 2352 # can be detected and how. 2353 cat >conftest.$ac_ext <<_ACEOF 2354 #line 2354 "configure" 2355 #include "confdefs.h" 2356 #include <ac_nonexistent.h> 2357 _ACEOF 2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5 2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2360 ac_status=$? 2361 egrep -v '^ *\+' conftest.er1 >conftest.err 2362 rm -f conftest.er1 2363 cat conftest.err >&5 2364 echo "$as_me:2364: \$? = $ac_status" >&5 2365 (exit $ac_status); } >/dev/null; then 2366 if test -s conftest.err; then 2367 ac_cpp_err=$ac_c_preproc_warn_flag 2368 else 2369 ac_cpp_err= 2370 fi 2371 else 2372 ac_cpp_err=yes 2373 fi 2374 if test -z "$ac_cpp_err"; then 2375 # Broken: success on invalid input. 2376 continue 2377 else 2378 echo "$as_me: failed program was:" >&5 2379 cat conftest.$ac_ext >&5 2380 # Passes both tests. 2381 ac_preproc_ok=: 2382 break 2383 fi 2384 rm -f conftest.err conftest.$ac_ext 2385 2386 done 2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2388 rm -f conftest.err conftest.$ac_ext 2389 if $ac_preproc_ok; then 2390 : 2391 else 2392 { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5 2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 2397 ac_ext=c 2398 ac_cpp='$CPP $CPPFLAGS' 2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2402 2403 echo "$as_me:2403: checking for AIX" >&5 2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2405 cat >conftest.$ac_ext <<_ACEOF 2406 #line 2406 "configure" 2407 #include "confdefs.h" 2408 #ifdef _AIX 2409 yes 2410 #endif 2411 2412 _ACEOF 2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2414 egrep "yes" >/dev/null 2>&1; then 2415 echo "$as_me:2415: result: yes" >&5 2416 echo "${ECHO_T}yes" >&6 2417 cat >>confdefs.h <<\EOF 2418 #define _ALL_SOURCE 1 2419 EOF 2420 2421 else 2422 echo "$as_me:2422: result: no" >&5 2423 echo "${ECHO_T}no" >&6 2424 fi 2425 rm -f conftest* 2426 2427 echo "$as_me:2427: checking for POSIXized ISC" >&5 2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2429 if test -d /etc/conf/kconfig.d && 2430 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2431 then 2432 echo "$as_me:2432: result: yes" >&5 2433 echo "${ECHO_T}yes" >&6 2434 ISC=yes # If later tests want to check for ISC. 2435 2436 cat >>confdefs.h <<\EOF 2437 #define _POSIX_SOURCE 1 2438 EOF 2439 2440 if test "$GCC" = yes; then 2441 CC="$CC -posix" 2442 else 2443 CC="$CC -Xp" 2444 fi 2445 else 2446 echo "$as_me:2446: result: no" >&5 2447 echo "${ECHO_T}no" >&6 2448 ISC= 2449 fi 2450 2451 echo "$as_me:2451: checking for minix/config.h" >&5 2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2453 if test "${ac_cv_header_minix_config_h+set}" = set; then 2454 echo $ECHO_N "(cached) $ECHO_C" >&6 2455 else 2456 cat >conftest.$ac_ext <<_ACEOF 2457 #line 2457 "configure" 2458 #include "confdefs.h" 2459 #include <minix/config.h> 2460 _ACEOF 2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5 2462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2463 ac_status=$? 2464 egrep -v '^ *\+' conftest.er1 >conftest.err 2465 rm -f conftest.er1 2466 cat conftest.err >&5 2467 echo "$as_me:2467: \$? = $ac_status" >&5 2468 (exit $ac_status); } >/dev/null; then 2469 if test -s conftest.err; then 2470 ac_cpp_err=$ac_c_preproc_warn_flag 2471 else 2472 ac_cpp_err= 2473 fi 2474 else 2475 ac_cpp_err=yes 2476 fi 2477 if test -z "$ac_cpp_err"; then 2478 ac_cv_header_minix_config_h=yes 2479 else 2480 echo "$as_me: failed program was:" >&5 2481 cat conftest.$ac_ext >&5 2482 ac_cv_header_minix_config_h=no 2483 fi 2484 rm -f conftest.err conftest.$ac_ext 2485 fi 2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5 2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2488 if test $ac_cv_header_minix_config_h = yes; then 2489 MINIX=yes 2490 else 2491 MINIX= 2492 fi 2493 2494 if test "$MINIX" = yes; then 2495 2496 cat >>confdefs.h <<\EOF 2497 #define _POSIX_SOURCE 1 2498 EOF 2499 2500 cat >>confdefs.h <<\EOF 2501 #define _POSIX_1_SOURCE 2 2502 EOF 2503 2504 cat >>confdefs.h <<\EOF 2505 #define _MINIX 1 2506 EOF 2507 2508 fi 2509 2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5 2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2513 echo $ECHO_N "(cached) $ECHO_C" >&6 2514 else 2515 ac_cv_prog_cc_stdc=no 2516 ac_save_CFLAGS="$CFLAGS" 2517 # Don't try gcc -ansi; that turns off useful extensions and 2518 # breaks some systems' header files. 2519 # AIX -qlanglvl=ansi 2520 # Ultrix and OSF/1 -std1 2521 # HP-UX -Aa -D_HPUX_SOURCE 2522 # SVR4 -Xc 2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 2524 do 2525 CFLAGS="$ac_save_CFLAGS $ac_arg" 2526 cat >conftest.$ac_ext <<_ACEOF 2527 #line 2527 "configure" 2528 #include "confdefs.h" 2529 #if !defined(__STDC__) || __STDC__ != 1 2530 choke me 2531 #endif 2532 2533 int 2534 main () 2535 { 2536 int test (int i, double x); 2537 struct s1 {int (*f) (int a);}; 2538 struct s2 {int (*f) (double a);}; 2539 ; 2540 return 0; 2541 } 2542 _ACEOF 2543 rm -f conftest.$ac_objext 2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5 2545 (eval $ac_compile) 2>&5 2546 ac_status=$? 2547 echo "$as_me:2547: \$? = $ac_status" >&5 2548 (exit $ac_status); } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:2550: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:2553: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 ac_cv_prog_cc_stdc="$ac_arg"; break 2556 else 2557 echo "$as_me: failed program was:" >&5 2558 cat conftest.$ac_ext >&5 2559 fi 2560 rm -f conftest.$ac_objext conftest.$ac_ext 2561 done 2562 CFLAGS="$ac_save_CFLAGS" 2563 2564 fi 2565 2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5 2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2568 case "x$ac_cv_prog_cc_stdc" in 2569 x|xno) ;; 2570 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 2571 esac 2572 2573 echo "$as_me:2573: checking for function prototypes" >&5 2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 2575 if test "$ac_cv_prog_cc_stdc" != no; then 2576 echo "$as_me:2576: result: yes" >&5 2577 echo "${ECHO_T}yes" >&6 2578 cat >>confdefs.h <<\EOF 2579 #define PROTOTYPES 1 2580 EOF 2581 2582 U= ANSI2KNR= 2583 else 2584 echo "$as_me:2584: result: no" >&5 2585 echo "${ECHO_T}no" >&6 2586 U=_ ANSI2KNR=ansi2knr 2587 fi 2588 2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5 2443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2590 2444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2591 2445 if test "${ac_cv_prog_cc_stdc+set}" = set; then … … 2595 2449 ac_save_CC=$CC 2596 2450 cat >conftest.$ac_ext <<_ACEOF 2597 #line 2597 "configure" 2598 #include "confdefs.h" 2451 /* confdefs.h. */ 2452 _ACEOF 2453 cat confdefs.h >>conftest.$ac_ext 2454 cat >>conftest.$ac_ext <<_ACEOF 2455 /* end confdefs.h. */ 2599 2456 #include <stdarg.h> 2600 2457 #include <stdio.h> … … 2619 2476 return s; 2620 2477 } 2478 2479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2480 function prototypes and stuff, but not '\xHH' hex character constants. 2481 These don't provoke an error unfortunately, instead are silently treated 2482 as 'x'. The following induces an error, until -std1 is added to get 2483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2484 array size at least. It's necessary to write '\x00'==0 to get something 2485 that's true only with -std1. */ 2486 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2487 2621 2488 int test (int i, double x); 2622 2489 struct s1 {int (*f) (int a);}; … … 2644 2511 CC="$ac_save_CC $ac_arg" 2645 2512 rm -f conftest.$ac_objext 2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 2647 (eval $ac_compile) 2>&5 2648 ac_status=$? 2649 echo "$as_me:2649: \$? = $ac_status" >&5 2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2514 (eval $ac_compile) 2>conftest.er1 2515 ac_status=$? 2516 grep -v '^ *+' conftest.er1 >conftest.err 2517 rm -f conftest.er1 2518 cat conftest.err >&5 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 2520 (exit $ac_status); } && 2651 { ac_try='test -s conftest.$ac_objext' 2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5 2653 (eval $ac_try) 2>&5 2654 ac_status=$? 2655 echo "$as_me:2655: \$? = $ac_status" >&5 2521 { ac_try='test -z "$ac_c_werror_flag" 2522 || test ! -s conftest.err' 2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2524 (eval $ac_try) 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); }; } && 2528 { ac_try='test -s conftest.$ac_objext' 2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2530 (eval $ac_try) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 2533 (exit $ac_status); }; }; then 2657 2534 ac_cv_prog_cc_stdc=$ac_arg … … 2659 2536 else 2660 2537 echo "$as_me: failed program was:" >&5 2661 cat conftest.$ac_ext >&5 2662 fi 2663 rm -f conftest.$ac_objext 2538 sed 's/^/| /' conftest.$ac_ext >&5 2539 2540 fi 2541 rm -f conftest.err conftest.$ac_objext 2664 2542 done 2665 2543 rm -f conftest.$ac_ext conftest.$ac_objext … … 2670 2548 case "x$ac_cv_prog_cc_stdc" in 2671 2549 x|xno) 2672 echo "$as_me: 2672: result: none needed" >&52550 echo "$as_me:$LINENO: result: none needed" >&5 2673 2551 echo "${ECHO_T}none needed" >&6 ;; 2674 2552 *) 2675 echo "$as_me: 2675: result: $ac_cv_prog_cc_stdc" >&52553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2676 2554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2677 2555 CC="$CC $ac_cv_prog_cc_stdc" ;; 2678 2556 esac 2679 2557 2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5 2558 # Some people use a C++ compiler to compile C. Since we use `exit', 2559 # in C++ we need to declare it. In case someone uses the same compiler 2560 # for both compiling C and C++ we need to have the C++ compiler decide 2561 # the declaration of exit, since it's the most demanding environment. 2562 cat >conftest.$ac_ext <<_ACEOF 2563 #ifndef __cplusplus 2564 choke me 2565 #endif 2566 _ACEOF 2567 rm -f conftest.$ac_objext 2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2569 (eval $ac_compile) 2>conftest.er1 2570 ac_status=$? 2571 grep -v '^ *+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && 2576 { ac_try='test -z "$ac_c_werror_flag" 2577 || test ! -s conftest.err' 2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2579 (eval $ac_try) 2>&5 2580 ac_status=$? 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); }; } && 2583 { ac_try='test -s conftest.$ac_objext' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; }; then 2589 for ac_declaration in \ 2590 '' \ 2591 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2592 'extern "C" void std::exit (int); using std::exit;' \ 2593 'extern "C" void exit (int) throw ();' \ 2594 'extern "C" void exit (int);' \ 2595 'void exit (int);' 2596 do 2597 cat >conftest.$ac_ext <<_ACEOF 2598 /* confdefs.h. */ 2599 _ACEOF 2600 cat confdefs.h >>conftest.$ac_ext 2601 cat >>conftest.$ac_ext <<_ACEOF 2602 /* end confdefs.h. */ 2603 $ac_declaration 2604 #include <stdlib.h> 2605 int 2606 main () 2607 { 2608 exit (42); 2609 ; 2610 return 0; 2611 } 2612 _ACEOF 2613 rm -f conftest.$ac_objext 2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2615 (eval $ac_compile) 2>conftest.er1 2616 ac_status=$? 2617 grep -v '^ *+' conftest.er1 >conftest.err 2618 rm -f conftest.er1 2619 cat conftest.err >&5 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); } && 2622 { ac_try='test -z "$ac_c_werror_flag" 2623 || test ! -s conftest.err' 2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2625 (eval $ac_try) 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); }; } && 2629 { ac_try='test -s conftest.$ac_objext' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; }; then 2635 : 2636 else 2637 echo "$as_me: failed program was:" >&5 2638 sed 's/^/| /' conftest.$ac_ext >&5 2639 2640 continue 2641 fi 2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2643 cat >conftest.$ac_ext <<_ACEOF 2644 /* confdefs.h. */ 2645 _ACEOF 2646 cat confdefs.h >>conftest.$ac_ext 2647 cat >>conftest.$ac_ext <<_ACEOF 2648 /* end confdefs.h. */ 2649 $ac_declaration 2650 int 2651 main () 2652 { 2653 exit (42); 2654 ; 2655 return 0; 2656 } 2657 _ACEOF 2658 rm -f conftest.$ac_objext 2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2660 (eval $ac_compile) 2>conftest.er1 2661 ac_status=$? 2662 grep -v '^ *+' conftest.er1 >conftest.err 2663 rm -f conftest.er1 2664 cat conftest.err >&5 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } && 2667 { ac_try='test -z "$ac_c_werror_flag" 2668 || test ! -s conftest.err' 2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2670 (eval $ac_try) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; } && 2674 { ac_try='test -s conftest.$ac_objext' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; }; then 2680 break 2681 else 2682 echo "$as_me: failed program was:" >&5 2683 sed 's/^/| /' conftest.$ac_ext >&5 2684 2685 fi 2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2687 done 2688 rm -f conftest* 2689 if test -n "$ac_declaration"; then 2690 echo '#ifdef __cplusplus' >>confdefs.h 2691 echo $ac_declaration >>confdefs.h 2692 echo '#endif' >>confdefs.h 2693 fi 2694 2695 else 2696 echo "$as_me: failed program was:" >&5 2697 sed 's/^/| /' conftest.$ac_ext >&5 2698 2699 fi 2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2701 ac_ext=c 2702 ac_cpp='$CPP $CPPFLAGS' 2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2706 2707 ac_aux_dir= 2708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2709 if test -f $ac_dir/install-sh; then 2710 ac_aux_dir=$ac_dir 2711 ac_install_sh="$ac_aux_dir/install-sh -c" 2712 break 2713 elif test -f $ac_dir/install.sh; then 2714 ac_aux_dir=$ac_dir 2715 ac_install_sh="$ac_aux_dir/install.sh -c" 2716 break 2717 elif test -f $ac_dir/shtool; then 2718 ac_aux_dir=$ac_dir 2719 ac_install_sh="$ac_aux_dir/shtool install -c" 2720 break 2721 fi 2722 done 2723 if test -z "$ac_aux_dir"; then 2724 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2725 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2726 { (exit 1); exit 1; }; } 2727 fi 2728 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2729 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2730 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2731 2732 # Find a good install program. We prefer a C program (faster), 2733 # so one script is as good as another. But avoid the broken or 2734 # incompatible versions: 2735 # SysV /etc/install, /usr/sbin/install 2736 # SunOS /usr/etc/install 2737 # IRIX /sbin/install 2738 # AIX /bin/install 2739 # AmigaOS /C/install, which installs bootblocks on floppy discs 2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2743 # OS/2's system install, which has a completely different semantic 2744 # ./install, which can be erroneously created by make from ./install.sh. 2745 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2746 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2747 if test -z "$INSTALL"; then 2748 if test "${ac_cv_path_install+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750 else 2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752 for as_dir in $PATH 2753 do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 # Account for people who put trailing slashes in PATH elements. 2757 case $as_dir/ in 2758 ./ | .// | /cC/* | \ 2759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2760 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2761 /usr/ucb/* ) ;; 2762 *) 2763 # OSF1 and SCO ODT 3.0 have their own names for install. 2764 # Don't use installbsd from OSF since it installs stuff as root 2765 # by default. 2766 for ac_prog in ginstall scoinst install; do 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2769 if test $ac_prog = install && 2770 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2771 # AIX install. It has an incompatible calling convention. 2772 : 2773 elif test $ac_prog = install && 2774 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2775 # program-specific install script used by HP pwplus--don't use. 2776 : 2777 else 2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2779 break 3 2780 fi 2781 fi 2782 done 2783 done 2784 ;; 2785 esac 2786 done 2787 2788 2789 fi 2790 if test "${ac_cv_path_install+set}" = set; then 2791 INSTALL=$ac_cv_path_install 2792 else 2793 # As a last resort, use the slow shell script. We don't cache a 2794 # path for INSTALL within a source directory, because that will 2795 # break other packages using the cache if that directory is 2796 # removed, or if the path is relative. 2797 INSTALL=$ac_install_sh 2798 fi 2799 fi 2800 echo "$as_me:$LINENO: result: $INSTALL" >&5 2801 echo "${ECHO_T}$INSTALL" >&6 2802 2803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2804 # It thinks the first close brace ends the variable substitution. 2805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2806 2807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2808 2809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2810 2811 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2813 LN_S=$as_ln_s 2814 if test "$LN_S" = "ln -s"; then 2815 echo "$as_me:$LINENO: result: yes" >&5 2816 echo "${ECHO_T}yes" >&6 2817 else 2818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2819 echo "${ECHO_T}no, using $LN_S" >&6 2820 fi 2821 2822 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2823 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2825 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2826 echo $ECHO_N "(cached) $ECHO_C" >&6 2827 else 2828 cat >conftest.make <<\_ACEOF 2829 all: 2830 @echo 'ac_maketemp="$(MAKE)"' 2831 _ACEOF 2832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2833 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2834 if test -n "$ac_maketemp"; then 2835 eval ac_cv_prog_make_${ac_make}_set=yes 2836 else 2837 eval ac_cv_prog_make_${ac_make}_set=no 2838 fi 2839 rm -f conftest.make 2840 fi 2841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2842 echo "$as_me:$LINENO: result: yes" >&5 2843 echo "${ECHO_T}yes" >&6 2844 SET_MAKE= 2845 else 2846 echo "$as_me:$LINENO: result: no" >&5 2847 echo "${ECHO_T}no" >&6 2848 SET_MAKE="MAKE=${MAKE-make}" 2849 fi 2850 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2854 echo "$as_me:$LINENO: checking for $ac_word" >&5 2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2856 if test "${ac_cv_prog_RANLIB+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858 else 2859 if test -n "$RANLIB"; then 2860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2861 else 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863 for as_dir in $PATH 2864 do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873 done 2874 done 2875 2876 fi 2877 fi 2878 RANLIB=$ac_cv_prog_RANLIB 2879 if test -n "$RANLIB"; then 2880 echo "$as_me:$LINENO: result: $RANLIB" >&5 2881 echo "${ECHO_T}$RANLIB" >&6 2882 else 2883 echo "$as_me:$LINENO: result: no" >&5 2884 echo "${ECHO_T}no" >&6 2885 fi 2886 2887 fi 2888 if test -z "$ac_cv_prog_RANLIB"; then 2889 ac_ct_RANLIB=$RANLIB 2890 # Extract the first word of "ranlib", so it can be a program name with args. 2891 set dummy ranlib; ac_word=$2 2892 echo "$as_me:$LINENO: checking for $ac_word" >&5 2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2895 echo $ECHO_N "(cached) $ECHO_C" >&6 2896 else 2897 if test -n "$ac_ct_RANLIB"; then 2898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2899 else 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901 for as_dir in $PATH 2902 do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_RANLIB="ranlib" 2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911 done 2912 done 2913 2914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2915 fi 2916 fi 2917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2918 if test -n "$ac_ct_RANLIB"; then 2919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2920 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2921 else 2922 echo "$as_me:$LINENO: result: no" >&5 2923 echo "${ECHO_T}no" >&6 2924 fi 2925 2926 RANLIB=$ac_ct_RANLIB 2927 else 2928 RANLIB="$ac_cv_prog_RANLIB" 2929 fi 2930 2931 2932 2933 ac_ext=c 2934 ac_cpp='$CPP $CPPFLAGS' 2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940 # On Suns, sometimes $CPP names a directory. 2941 if test -n "$CPP" && test -d "$CPP"; then 2942 CPP= 2943 fi 2944 if test -z "$CPP"; then 2945 if test "${ac_cv_prog_CPP+set}" = set; then 2946 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 else 2948 # Double quotes because CPP needs to be expanded 2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 do 2951 ac_preproc_ok=false 2952 for ac_c_preproc_warn_flag in '' yes 2953 do 2954 # Use a header file that comes with gcc, so configuring glibc 2955 # with a fresh cross-compiler works. 2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 # <limits.h> exists even on freestanding compilers. 2958 # On the NeXT, cc -E runs the code through the compiler's parser, 2959 # not just through cpp. "Syntax error" is here to catch this case. 2960 cat >conftest.$ac_ext <<_ACEOF 2961 /* confdefs.h. */ 2962 _ACEOF 2963 cat confdefs.h >>conftest.$ac_ext 2964 cat >>conftest.$ac_ext <<_ACEOF 2965 /* end confdefs.h. */ 2966 #ifdef __STDC__ 2967 # include <limits.h> 2968 #else 2969 # include <assert.h> 2970 #endif 2971 Syntax error 2972 _ACEOF 2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } >/dev/null; then 2981 if test -s conftest.err; then 2982 ac_cpp_err=$ac_c_preproc_warn_flag 2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 else 2985 ac_cpp_err= 2986 fi 2987 else 2988 ac_cpp_err=yes 2989 fi 2990 if test -z "$ac_cpp_err"; then 2991 : 2992 else 2993 echo "$as_me: failed program was:" >&5 2994 sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 # Broken: fails on valid input. 2997 continue 2998 fi 2999 rm -f conftest.err conftest.$ac_ext 3000 3001 # OK, works on sane cases. Now check whether non-existent headers 3002 # can be detected and how. 3003 cat >conftest.$ac_ext <<_ACEOF 3004 /* confdefs.h. */ 3005 _ACEOF 3006 cat confdefs.h >>conftest.$ac_ext 3007 cat >>conftest.$ac_ext <<_ACEOF 3008 /* end confdefs.h. */ 3009 #include <ac_nonexistent.h> 3010 _ACEOF 3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 else 3023 ac_cpp_err= 3024 fi 3025 else 3026 ac_cpp_err=yes 3027 fi 3028 if test -z "$ac_cpp_err"; then 3029 # Broken: success on invalid input. 3030 continue 3031 else 3032 echo "$as_me: failed program was:" >&5 3033 sed 's/^/| /' conftest.$ac_ext >&5 3034 3035 # Passes both tests. 3036 ac_preproc_ok=: 3037 break 3038 fi 3039 rm -f conftest.err conftest.$ac_ext 3040 3041 done 3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043 rm -f conftest.err conftest.$ac_ext 3044 if $ac_preproc_ok; then 3045 break 3046 fi 3047 3048 done 3049 ac_cv_prog_CPP=$CPP 3050 3051 fi 3052 CPP=$ac_cv_prog_CPP 3053 else 3054 ac_cv_prog_CPP=$CPP 3055 fi 3056 echo "$as_me:$LINENO: result: $CPP" >&5 3057 echo "${ECHO_T}$CPP" >&6 3058 ac_preproc_ok=false 3059 for ac_c_preproc_warn_flag in '' yes 3060 do 3061 # Use a header file that comes with gcc, so configuring glibc 3062 # with a fresh cross-compiler works. 3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 # <limits.h> exists even on freestanding compilers. 3065 # On the NeXT, cc -E runs the code through the compiler's parser, 3066 # not just through cpp. "Syntax error" is here to catch this case. 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 3072 /* end confdefs.h. */ 3073 #ifdef __STDC__ 3074 # include <limits.h> 3075 #else 3076 # include <assert.h> 3077 #endif 3078 Syntax error 3079 _ACEOF 3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } >/dev/null; then 3088 if test -s conftest.err; then 3089 ac_cpp_err=$ac_c_preproc_warn_flag 3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 else 3092 ac_cpp_err= 3093 fi 3094 else 3095 ac_cpp_err=yes 3096 fi 3097 if test -z "$ac_cpp_err"; then 3098 : 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 # Broken: fails on valid input. 3104 continue 3105 fi 3106 rm -f conftest.err conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether non-existent headers 3109 # can be detected and how. 3110 cat >conftest.$ac_ext <<_ACEOF 3111 /* confdefs.h. */ 3112 _ACEOF 3113 cat confdefs.h >>conftest.$ac_ext 3114 cat >>conftest.$ac_ext <<_ACEOF 3115 /* end confdefs.h. */ 3116 #include <ac_nonexistent.h> 3117 _ACEOF 3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } >/dev/null; then 3126 if test -s conftest.err; then 3127 ac_cpp_err=$ac_c_preproc_warn_flag 3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 else 3130 ac_cpp_err= 3131 fi 3132 else 3133 ac_cpp_err=yes 3134 fi 3135 if test -z "$ac_cpp_err"; then 3136 # Broken: success on invalid input. 3137 continue 3138 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 # Passes both tests. 3143 ac_preproc_ok=: 3144 break 3145 fi 3146 rm -f conftest.err conftest.$ac_ext 3147 3148 done 3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150 rm -f conftest.err conftest.$ac_ext 3151 if $ac_preproc_ok; then 3152 : 3153 else 3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155 See \`config.log' for more details." >&5 3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157 See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159 fi 3160 3161 ac_ext=c 3162 ac_cpp='$CPP $CPPFLAGS' 3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 3167 3168 echo "$as_me:$LINENO: checking for egrep" >&5 3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170 if test "${ac_cv_prog_egrep+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172 else 3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 then ac_cv_prog_egrep='grep -E' 3175 else ac_cv_prog_egrep='egrep' 3176 fi 3177 fi 3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 EGREP=$ac_cv_prog_egrep 3181 3182 3183 3184 echo "$as_me:$LINENO: checking for AIX" >&5 3185 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3186 cat >conftest.$ac_ext <<_ACEOF 3187 /* confdefs.h. */ 3188 _ACEOF 3189 cat confdefs.h >>conftest.$ac_ext 3190 cat >>conftest.$ac_ext <<_ACEOF 3191 /* end confdefs.h. */ 3192 #ifdef _AIX 3193 yes 3194 #endif 3195 3196 _ACEOF 3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3198 $EGREP "yes" >/dev/null 2>&1; then 3199 echo "$as_me:$LINENO: result: yes" >&5 3200 echo "${ECHO_T}yes" >&6 3201 cat >>confdefs.h <<\_ACEOF 3202 #define _ALL_SOURCE 1 3203 _ACEOF 3204 3205 else 3206 echo "$as_me:$LINENO: result: no" >&5 3207 echo "${ECHO_T}no" >&6 3208 fi 3209 rm -f conftest* 3210 3211 3212 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3213 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3214 if test "${ac_cv_search_strerror+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216 else 3217 ac_func_search_save_LIBS=$LIBS 3218 ac_cv_search_strerror=no 3219 cat >conftest.$ac_ext <<_ACEOF 3220 /* confdefs.h. */ 3221 _ACEOF 3222 cat confdefs.h >>conftest.$ac_ext 3223 cat >>conftest.$ac_ext <<_ACEOF 3224 /* end confdefs.h. */ 3225 3226 /* Override any gcc2 internal prototype to avoid an error. */ 3227 #ifdef __cplusplus 3228 extern "C" 3229 #endif 3230 /* We use char because int might match the return type of a gcc2 3231 builtin and then its argument prototype would still apply. */ 3232 char strerror (); 3233 int 3234 main () 3235 { 3236 strerror (); 3237 ; 3238 return 0; 3239 } 3240 _ACEOF 3241 rm -f conftest.$ac_objext conftest$ac_exeext 3242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3243 (eval $ac_link) 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && 3250 { ac_try='test -z "$ac_c_werror_flag" 3251 || test ! -s conftest.err' 3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3253 (eval $ac_try) 2>&5 3254 ac_status=$? 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); }; } && 3257 { ac_try='test -s conftest$ac_exeext' 3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3259 (eval $ac_try) 2>&5 3260 ac_status=$? 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); }; }; then 3263 ac_cv_search_strerror="none required" 3264 else 3265 echo "$as_me: failed program was:" >&5 3266 sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 fi 3269 rm -f conftest.err conftest.$ac_objext \ 3270 conftest$ac_exeext conftest.$ac_ext 3271 if test "$ac_cv_search_strerror" = no; then 3272 for ac_lib in cposix; do 3273 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3274 cat >conftest.$ac_ext <<_ACEOF 3275 /* confdefs.h. */ 3276 _ACEOF 3277 cat confdefs.h >>conftest.$ac_ext 3278 cat >>conftest.$ac_ext <<_ACEOF 3279 /* end confdefs.h. */ 3280 3281 /* Override any gcc2 internal prototype to avoid an error. */ 3282 #ifdef __cplusplus 3283 extern "C" 3284 #endif 3285 /* We use char because int might match the return type of a gcc2 3286 builtin and then its argument prototype would still apply. */ 3287 char strerror (); 3288 int 3289 main () 3290 { 3291 strerror (); 3292 ; 3293 return 0; 3294 } 3295 _ACEOF 3296 rm -f conftest.$ac_objext conftest$ac_exeext 3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3298 (eval $ac_link) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } && 3305 { ac_try='test -z "$ac_c_werror_flag" 3306 || test ! -s conftest.err' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest$ac_exeext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 ac_cv_search_strerror="-l$ac_lib" 3319 break 3320 else 3321 echo "$as_me: failed program was:" >&5 3322 sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 fi 3325 rm -f conftest.err conftest.$ac_objext \ 3326 conftest$ac_exeext conftest.$ac_ext 3327 done 3328 fi 3329 LIBS=$ac_func_search_save_LIBS 3330 fi 3331 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3332 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3333 if test "$ac_cv_search_strerror" != no; then 3334 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3335 3336 fi 3337 3338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3340 if test "${ac_cv_header_stdc+set}" = set; then 3341 echo $ECHO_N "(cached) $ECHO_C" >&6 3342 else 3343 cat >conftest.$ac_ext <<_ACEOF 3344 /* confdefs.h. */ 3345 _ACEOF 3346 cat confdefs.h >>conftest.$ac_ext 3347 cat >>conftest.$ac_ext <<_ACEOF 3348 /* end confdefs.h. */ 3349 #include <stdlib.h> 3350 #include <stdarg.h> 3351 #include <string.h> 3352 #include <float.h> 3353 3354 int 3355 main () 3356 { 3357 3358 ; 3359 return 0; 3360 } 3361 _ACEOF 3362 rm -f conftest.$ac_objext 3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3364 (eval $ac_compile) 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } && 3371 { ac_try='test -z "$ac_c_werror_flag" 3372 || test ! -s conftest.err' 3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3374 (eval $ac_try) 2>&5 3375 ac_status=$? 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); }; } && 3378 { ac_try='test -s conftest.$ac_objext' 3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3380 (eval $ac_try) 2>&5 3381 ac_status=$? 3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3383 (exit $ac_status); }; }; then 3384 ac_cv_header_stdc=yes 3385 else 3386 echo "$as_me: failed program was:" >&5 3387 sed 's/^/| /' conftest.$ac_ext >&5 3388 3389 ac_cv_header_stdc=no 3390 fi 3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3392 3393 if test $ac_cv_header_stdc = yes; then 3394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3395 cat >conftest.$ac_ext <<_ACEOF 3396 /* confdefs.h. */ 3397 _ACEOF 3398 cat confdefs.h >>conftest.$ac_ext 3399 cat >>conftest.$ac_ext <<_ACEOF 3400 /* end confdefs.h. */ 3401 #include <string.h> 3402 3403 _ACEOF 3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3405 $EGREP "memchr" >/dev/null 2>&1; then 3406 : 3407 else 3408 ac_cv_header_stdc=no 3409 fi 3410 rm -f conftest* 3411 3412 fi 3413 3414 if test $ac_cv_header_stdc = yes; then 3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3416 cat >conftest.$ac_ext <<_ACEOF 3417 /* confdefs.h. */ 3418 _ACEOF 3419 cat confdefs.h >>conftest.$ac_ext 3420 cat >>conftest.$ac_ext <<_ACEOF 3421 /* end confdefs.h. */ 3422 #include <stdlib.h> 3423 3424 _ACEOF 3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3426 $EGREP "free" >/dev/null 2>&1; then 3427 : 3428 else 3429 ac_cv_header_stdc=no 3430 fi 3431 rm -f conftest* 3432 3433 fi 3434 3435 if test $ac_cv_header_stdc = yes; then 3436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3437 if test "$cross_compiling" = yes; then 3438 : 3439 else 3440 cat >conftest.$ac_ext <<_ACEOF 3441 /* confdefs.h. */ 3442 _ACEOF 3443 cat confdefs.h >>conftest.$ac_ext 3444 cat >>conftest.$ac_ext <<_ACEOF 3445 /* end confdefs.h. */ 3446 #include <ctype.h> 3447 #if ((' ' & 0x0FF) == 0x020) 3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3450 #else 3451 # define ISLOWER(c) \ 3452 (('a' <= (c) && (c) <= 'i') \ 3453 || ('j' <= (c) && (c) <= 'r') \ 3454 || ('s' <= (c) && (c) <= 'z')) 3455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3456 #endif 3457 3458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3459 int 3460 main () 3461 { 3462 int i; 3463 for (i = 0; i < 256; i++) 3464 if (XOR (islower (i), ISLOWER (i)) 3465 || toupper (i) != TOUPPER (i)) 3466 exit(2); 3467 exit (0); 3468 } 3469 _ACEOF 3470 rm -f conftest$ac_exeext 3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3472 (eval $ac_link) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3477 (eval $ac_try) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 : 3482 else 3483 echo "$as_me: program exited with status $ac_status" >&5 3484 echo "$as_me: failed program was:" >&5 3485 sed 's/^/| /' conftest.$ac_ext >&5 3486 3487 ( exit $ac_status ) 3488 ac_cv_header_stdc=no 3489 fi 3490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3491 fi 3492 fi 3493 fi 3494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3495 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3496 if test $ac_cv_header_stdc = yes; then 3497 3498 cat >>confdefs.h <<\_ACEOF 3499 #define STDC_HEADERS 1 3500 _ACEOF 3501 3502 fi 3503 3504 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3515 inttypes.h stdint.h unistd.h 3516 do 3517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3518 echo "$as_me:$LINENO: checking for $ac_header" >&5 3519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3520 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522 else 3523 cat >conftest.$ac_ext <<_ACEOF 3524 /* confdefs.h. */ 3525 _ACEOF 3526 cat confdefs.h >>conftest.$ac_ext 3527 cat >>conftest.$ac_ext <<_ACEOF 3528 /* end confdefs.h. */ 3529 $ac_includes_default 3530 3531 #include <$ac_header> 3532 _ACEOF 3533 rm -f conftest.$ac_objext 3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3535 (eval $ac_compile) 2>conftest.er1 3536 ac_status=$? 3537 grep -v '^ *+' conftest.er1 >conftest.err 3538 rm -f conftest.er1 3539 cat conftest.err >&5 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); } && 3542 { ac_try='test -z "$ac_c_werror_flag" 3543 || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest.$ac_objext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 3555 eval "$as_ac_Header=yes" 3556 else 3557 echo "$as_me: failed program was:" >&5 3558 sed 's/^/| /' conftest.$ac_ext >&5 3559 3560 eval "$as_ac_Header=no" 3561 fi 3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563 fi 3564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3566 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3567 cat >>confdefs.h <<_ACEOF 3568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3569 _ACEOF 3570 3571 fi 3572 3573 done 3574 3575 3576 if test "${ac_cv_header_minix_config_h+set}" = set; then 3577 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3578 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3579 if test "${ac_cv_header_minix_config_h+set}" = set; then 3580 echo $ECHO_N "(cached) $ECHO_C" >&6 3581 fi 3582 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3583 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3584 else 3585 # Is the header compilable? 3586 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3587 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3588 cat >conftest.$ac_ext <<_ACEOF 3589 /* confdefs.h. */ 3590 _ACEOF 3591 cat confdefs.h >>conftest.$ac_ext 3592 cat >>conftest.$ac_ext <<_ACEOF 3593 /* end confdefs.h. */ 3594 $ac_includes_default 3595 #include <minix/config.h> 3596 _ACEOF 3597 rm -f conftest.$ac_objext 3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3599 (eval $ac_compile) 2>conftest.er1 3600 ac_status=$? 3601 grep -v '^ *+' conftest.er1 >conftest.err 3602 rm -f conftest.er1 3603 cat conftest.err >&5 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } && 3606 { ac_try='test -z "$ac_c_werror_flag" 3607 || test ! -s conftest.err' 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3609 (eval $ac_try) 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); }; } && 3613 { ac_try='test -s conftest.$ac_objext' 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); }; }; then 3619 ac_header_compiler=yes 3620 else 3621 echo "$as_me: failed program was:" >&5 3622 sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 ac_header_compiler=no 3625 fi 3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3628 echo "${ECHO_T}$ac_header_compiler" >&6 3629 3630 # Is the header present? 3631 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3632 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3633 cat >conftest.$ac_ext <<_ACEOF 3634 /* confdefs.h. */ 3635 _ACEOF 3636 cat confdefs.h >>conftest.$ac_ext 3637 cat >>conftest.$ac_ext <<_ACEOF 3638 /* end confdefs.h. */ 3639 #include <minix/config.h> 3640 _ACEOF 3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } >/dev/null; then 3649 if test -s conftest.err; then 3650 ac_cpp_err=$ac_c_preproc_warn_flag 3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3652 else 3653 ac_cpp_err= 3654 fi 3655 else 3656 ac_cpp_err=yes 3657 fi 3658 if test -z "$ac_cpp_err"; then 3659 ac_header_preproc=yes 3660 else 3661 echo "$as_me: failed program was:" >&5 3662 sed 's/^/| /' conftest.$ac_ext >&5 3663 3664 ac_header_preproc=no 3665 fi 3666 rm -f conftest.err conftest.$ac_ext 3667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3668 echo "${ECHO_T}$ac_header_preproc" >&6 3669 3670 # So? What about this header? 3671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3672 yes:no: ) 3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3674 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3676 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3677 ac_header_preproc=yes 3678 ;; 3679 no:yes:* ) 3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3681 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3682 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3683 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3685 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3687 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3688 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3689 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3690 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3691 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3692 ( 3693 cat <<\_ASBOX 3694 ## ------------------------------------------ ## 3695 ## Report this to the AC_PACKAGE_NAME lists. ## 3696 ## ------------------------------------------ ## 3697 _ASBOX 3698 ) | 3699 sed "s/^/$as_me: WARNING: /" >&2 3700 ;; 3701 esac 3702 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3703 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3704 if test "${ac_cv_header_minix_config_h+set}" = set; then 3705 echo $ECHO_N "(cached) $ECHO_C" >&6 3706 else 3707 ac_cv_header_minix_config_h=$ac_header_preproc 3708 fi 3709 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3710 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3711 3712 fi 3713 if test $ac_cv_header_minix_config_h = yes; then 3714 MINIX=yes 3715 else 3716 MINIX= 3717 fi 3718 3719 3720 if test "$MINIX" = yes; then 3721 3722 cat >>confdefs.h <<\_ACEOF 3723 #define _POSIX_SOURCE 1 3724 _ACEOF 3725 3726 3727 cat >>confdefs.h <<\_ACEOF 3728 #define _POSIX_1_SOURCE 2 3729 _ACEOF 3730 3731 3732 cat >>confdefs.h <<\_ACEOF 3733 #define _MINIX 1 3734 _ACEOF 3735 3736 fi 3737 3738 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3739 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3740 if test "${ac_cv_prog_cc_stdc+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742 else 3743 ac_cv_prog_cc_stdc=no 3744 ac_save_CFLAGS="$CFLAGS" 3745 # Don't try gcc -ansi; that turns off useful extensions and 3746 # breaks some systems' header files. 3747 # AIX -qlanglvl=ansi 3748 # Ultrix and OSF/1 -std1 3749 # HP-UX -Aa -D_HPUX_SOURCE 3750 # SVR4 -Xc 3751 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 3752 do 3753 CFLAGS="$ac_save_CFLAGS $ac_arg" 3754 cat >conftest.$ac_ext <<_ACEOF 3755 /* confdefs.h. */ 3756 _ACEOF 3757 cat confdefs.h >>conftest.$ac_ext 3758 cat >>conftest.$ac_ext <<_ACEOF 3759 /* end confdefs.h. */ 3760 #if !defined(__STDC__) || __STDC__ != 1 3761 choke me 3762 #endif 3763 3764 int 3765 main () 3766 { 3767 int test (int i, double x); 3768 struct s1 {int (*f) (int a);}; 3769 struct s2 {int (*f) (double a);}; 3770 ; 3771 return 0; 3772 } 3773 _ACEOF 3774 rm -f conftest.$ac_objext 3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3776 (eval $ac_compile) 2>conftest.er1 3777 ac_status=$? 3778 grep -v '^ *+' conftest.er1 >conftest.err 3779 rm -f conftest.er1 3780 cat conftest.err >&5 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } && 3783 { ac_try='test -z "$ac_c_werror_flag" 3784 || test ! -s conftest.err' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; } && 3790 { ac_try='test -s conftest.$ac_objext' 3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3792 (eval $ac_try) 2>&5 3793 ac_status=$? 3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); }; }; then 3796 ac_cv_prog_cc_stdc="$ac_arg"; break 3797 else 3798 echo "$as_me: failed program was:" >&5 3799 sed 's/^/| /' conftest.$ac_ext >&5 3800 3801 fi 3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3803 done 3804 CFLAGS="$ac_save_CFLAGS" 3805 3806 fi 3807 3808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3810 case "x$ac_cv_prog_cc_stdc" in 3811 x|xno) ;; 3812 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 3813 esac 3814 3815 3816 echo "$as_me:$LINENO: checking for function prototypes" >&5 3817 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3818 if test "$ac_cv_prog_cc_stdc" != no; then 3819 echo "$as_me:$LINENO: result: yes" >&5 3820 echo "${ECHO_T}yes" >&6 3821 cat >>confdefs.h <<\_ACEOF 3822 #define PROTOTYPES 1 3823 _ACEOF 3824 3825 U= ANSI2KNR= 3826 else 3827 echo "$as_me:$LINENO: result: no" >&5 3828 echo "${ECHO_T}no" >&6 3829 U=_ ANSI2KNR=ansi2knr 3830 fi 3831 3832 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2681 3833 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2682 3834 if test "${ac_cv_c_const+set}" = set; then … … 2684 3836 else 2685 3837 cat >conftest.$ac_ext <<_ACEOF 2686 #line 2686 "configure" 2687 #include "confdefs.h" 3838 /* confdefs.h. */ 3839 _ACEOF 3840 cat confdefs.h >>conftest.$ac_ext 3841 cat >>conftest.$ac_ext <<_ACEOF 3842 /* end confdefs.h. */ 2688 3843 2689 3844 int … … 2742 3897 _ACEOF 2743 3898 rm -f conftest.$ac_objext 2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5 2745 (eval $ac_compile) 2>&5 2746 ac_status=$? 2747 echo "$as_me:2747: \$? = $ac_status" >&5 3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3900 (eval $ac_compile) 2>conftest.er1 3901 ac_status=$? 3902 grep -v '^ *+' conftest.er1 >conftest.err 3903 rm -f conftest.er1 3904 cat conftest.err >&5 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 3906 (exit $ac_status); } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:2753: \$? = $ac_status" >&5 3907 { ac_try='test -z "$ac_c_werror_flag" 3908 || test ! -s conftest.err' 3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3910 (eval $ac_try) 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; } && 3914 { ac_try='test -s conftest.$ac_objext' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 3919 (exit $ac_status); }; }; then 2755 3920 ac_cv_c_const=yes 2756 3921 else 2757 3922 echo "$as_me: failed program was:" >&5 2758 cat conftest.$ac_ext >&5 3923 sed 's/^/| /' conftest.$ac_ext >&5 3924 2759 3925 ac_cv_c_const=no 2760 3926 fi 2761 rm -f conftest. $ac_objext conftest.$ac_ext2762 fi 2763 echo "$as_me: 2763: result: $ac_cv_c_const" >&53927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3928 fi 3929 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2764 3930 echo "${ECHO_T}$ac_cv_c_const" >&6 2765 3931 if test $ac_cv_c_const = no; then 2766 3932 2767 cat >>confdefs.h <<\ EOF3933 cat >>confdefs.h <<\_ACEOF 2768 3934 #define const 2769 EOF 2770 2771 fi 2772 2773 echo "$as_me:2773: checking for ANSI C header files" >&5 2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2775 if test "${ac_cv_header_stdc+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777 else 2778 cat >conftest.$ac_ext <<_ACEOF 2779 #line 2779 "configure" 2780 #include "confdefs.h" 2781 #include <stdlib.h> 2782 #include <stdarg.h> 2783 #include <string.h> 2784 #include <float.h> 2785 2786 _ACEOF 2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5 2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2789 ac_status=$? 2790 egrep -v '^ *\+' conftest.er1 >conftest.err 2791 rm -f conftest.er1 2792 cat conftest.err >&5 2793 echo "$as_me:2793: \$? = $ac_status" >&5 2794 (exit $ac_status); } >/dev/null; then 2795 if test -s conftest.err; then 2796 ac_cpp_err=$ac_c_preproc_warn_flag 2797 else 2798 ac_cpp_err= 2799 fi 2800 else 2801 ac_cpp_err=yes 2802 fi 2803 if test -z "$ac_cpp_err"; then 2804 ac_cv_header_stdc=yes 2805 else 2806 echo "$as_me: failed program was:" >&5 2807 cat conftest.$ac_ext >&5 2808 ac_cv_header_stdc=no 2809 fi 2810 rm -f conftest.err conftest.$ac_ext 2811 2812 if test $ac_cv_header_stdc = yes; then 2813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2814 cat >conftest.$ac_ext <<_ACEOF 2815 #line 2815 "configure" 2816 #include "confdefs.h" 2817 #include <string.h> 2818 2819 _ACEOF 2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2821 egrep "memchr" >/dev/null 2>&1; then 2822 : 2823 else 2824 ac_cv_header_stdc=no 2825 fi 2826 rm -f conftest* 2827 2828 fi 2829 2830 if test $ac_cv_header_stdc = yes; then 2831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2832 cat >conftest.$ac_ext <<_ACEOF 2833 #line 2833 "configure" 2834 #include "confdefs.h" 2835 #include <stdlib.h> 2836 2837 _ACEOF 2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2839 egrep "free" >/dev/null 2>&1; then 2840 : 2841 else 2842 ac_cv_header_stdc=no 2843 fi 2844 rm -f conftest* 2845 2846 fi 2847 2848 if test $ac_cv_header_stdc = yes; then 2849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2850 if test "$cross_compiling" = yes; then 2851 : 2852 else 2853 cat >conftest.$ac_ext <<_ACEOF 2854 #line 2854 "configure" 2855 #include "confdefs.h" 2856 #include <ctype.h> 2857 #if ((' ' & 0x0FF) == 0x020) 2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2860 #else 2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2862 || ('j' <= (c) && (c) <= 'r') \ 2863 || ('s' <= (c) && (c) <= 'z')) 2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2865 #endif 2866 2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2868 int 2869 main () 2870 { 2871 int i; 2872 for (i = 0; i < 256; i++) 2873 if (XOR (islower (i), ISLOWER (i)) 2874 || toupper (i) != TOUPPER (i)) 2875 exit(2); 2876 exit (0); 2877 } 2878 _ACEOF 2879 rm -f conftest$ac_exeext 2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5 2881 (eval $ac_link) 2>&5 2882 ac_status=$? 2883 echo "$as_me:2883: \$? = $ac_status" >&5 2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2885 { (eval echo "$as_me:2885: \"$ac_try\"") >&5 2886 (eval $ac_try) 2>&5 2887 ac_status=$? 2888 echo "$as_me:2888: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 : 2891 else 2892 echo "$as_me: program exited with status $ac_status" >&5 2893 echo "$as_me: failed program was:" >&5 2894 cat conftest.$ac_ext >&5 2895 ac_cv_header_stdc=no 2896 fi 2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2898 fi 2899 fi 2900 fi 2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5 2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2903 if test $ac_cv_header_stdc = yes; then 2904 2905 cat >>confdefs.h <<\EOF 2906 #define STDC_HEADERS 1 2907 EOF 2908 2909 fi 2910 2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2912 do 2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2914 echo "$as_me:2914: checking for $ac_header" >&5 2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2917 echo $ECHO_N "(cached) $ECHO_C" >&6 2918 else 2919 cat >conftest.$ac_ext <<_ACEOF 2920 #line 2920 "configure" 2921 #include "confdefs.h" 2922 #include <$ac_header> 2923 _ACEOF 2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5 2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2926 ac_status=$? 2927 egrep -v '^ *\+' conftest.er1 >conftest.err 2928 rm -f conftest.er1 2929 cat conftest.err >&5 2930 echo "$as_me:2930: \$? = $ac_status" >&5 2931 (exit $ac_status); } >/dev/null; then 2932 if test -s conftest.err; then 2933 ac_cpp_err=$ac_c_preproc_warn_flag 2934 else 2935 ac_cpp_err= 2936 fi 2937 else 2938 ac_cpp_err=yes 2939 fi 2940 if test -z "$ac_cpp_err"; then 2941 eval "$ac_ac_Header=yes" 2942 else 2943 echo "$as_me: failed program was:" >&5 2944 cat conftest.$ac_ext >&5 2945 eval "$ac_ac_Header=no" 2946 fi 2947 rm -f conftest.err conftest.$ac_ext 2948 fi 2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2952 cat >>confdefs.h <<EOF 2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2954 EOF 2955 2956 fi 2957 done 2958 2959 echo "$as_me:2959: checking for off_t" >&5 3935 _ACEOF 3936 3937 fi 3938 3939 echo "$as_me:$LINENO: checking for off_t" >&5 2960 3940 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2961 3941 if test "${ac_cv_type_off_t+set}" = set; then … … 2963 3943 else 2964 3944 cat >conftest.$ac_ext <<_ACEOF 2965 #line 2965 "configure" 2966 #include "confdefs.h" 3945 /* confdefs.h. */ 3946 _ACEOF 3947 cat confdefs.h >>conftest.$ac_ext 3948 cat >>conftest.$ac_ext <<_ACEOF 3949 /* end confdefs.h. */ 2967 3950 $ac_includes_default 2968 3951 int … … 2978 3961 _ACEOF 2979 3962 rm -f conftest.$ac_objext 2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5 2981 (eval $ac_compile) 2>&5 2982 ac_status=$? 2983 echo "$as_me:2983: \$? = $ac_status" >&5 3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3964 (eval $ac_compile) 2>conftest.er1 3965 ac_status=$? 3966 grep -v '^ *+' conftest.er1 >conftest.err 3967 rm -f conftest.er1 3968 cat conftest.err >&5 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 3970 (exit $ac_status); } && 2985 { ac_try='test -s conftest.$ac_objext' 2986 { (eval echo "$as_me:2986: \"$ac_try\"") >&5 2987 (eval $ac_try) 2>&5 2988 ac_status=$? 2989 echo "$as_me:2989: \$? = $ac_status" >&5 3971 { ac_try='test -z "$ac_c_werror_flag" 3972 || test ! -s conftest.err' 3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3974 (eval $ac_try) 2>&5 3975 ac_status=$? 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); }; } && 3978 { ac_try='test -s conftest.$ac_objext' 3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3980 (eval $ac_try) 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 3983 (exit $ac_status); }; }; then 2991 3984 ac_cv_type_off_t=yes 2992 3985 else 2993 3986 echo "$as_me: failed program was:" >&5 2994 cat conftest.$ac_ext >&5 3987 sed 's/^/| /' conftest.$ac_ext >&5 3988 2995 3989 ac_cv_type_off_t=no 2996 3990 fi 2997 rm -f conftest. $ac_objext conftest.$ac_ext2998 fi 2999 echo "$as_me: 2999: result: $ac_cv_type_off_t" >&53991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3992 fi 3993 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3000 3994 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3001 3995 if test $ac_cv_type_off_t = yes; then … … 3003 3997 else 3004 3998 3005 cat >>confdefs.h << EOF3999 cat >>confdefs.h <<_ACEOF 3006 4000 #define off_t long 3007 EOF3008 3009 fi 3010 3011 echo "$as_me: 3011: checking for size_t" >&54001 _ACEOF 4002 4003 fi 4004 4005 echo "$as_me:$LINENO: checking for size_t" >&5 3012 4006 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3013 4007 if test "${ac_cv_type_size_t+set}" = set; then … … 3015 4009 else 3016 4010 cat >conftest.$ac_ext <<_ACEOF 3017 #line 3017 "configure" 3018 #include "confdefs.h" 4011 /* confdefs.h. */ 4012 _ACEOF 4013 cat confdefs.h >>conftest.$ac_ext 4014 cat >>conftest.$ac_ext <<_ACEOF 4015 /* end confdefs.h. */ 3019 4016 $ac_includes_default 3020 4017 int … … 3030 4027 _ACEOF 3031 4028 rm -f conftest.$ac_objext 3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>&5 3034 ac_status=$? 3035 echo "$as_me:3035: \$? = $ac_status" >&5 4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4030 (eval $ac_compile) 2>conftest.er1 4031 ac_status=$? 4032 grep -v '^ *+' conftest.er1 >conftest.err 4033 rm -f conftest.er1 4034 cat conftest.err >&5 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 4036 (exit $ac_status); } && 3037 { ac_try='test -s conftest.$ac_objext' 3038 { (eval echo "$as_me:3038: \"$ac_try\"") >&5 3039 (eval $ac_try) 2>&5 3040 ac_status=$? 3041 echo "$as_me:3041: \$? = $ac_status" >&5 4037 { ac_try='test -z "$ac_c_werror_flag" 4038 || test ! -s conftest.err' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; } && 4044 { ac_try='test -s conftest.$ac_objext' 4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 4049 (exit $ac_status); }; }; then 3043 4050 ac_cv_type_size_t=yes 3044 4051 else 3045 4052 echo "$as_me: failed program was:" >&5 3046 cat conftest.$ac_ext >&5 4053 sed 's/^/| /' conftest.$ac_ext >&5 4054 3047 4055 ac_cv_type_size_t=no 3048 4056 fi 3049 rm -f conftest. $ac_objext conftest.$ac_ext3050 fi 3051 echo "$as_me: 3051: result: $ac_cv_type_size_t" >&54057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4058 fi 4059 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3052 4060 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3053 4061 if test $ac_cv_type_size_t = yes; then … … 3055 4063 else 3056 4064 3057 cat >>confdefs.h << EOF4065 cat >>confdefs.h <<_ACEOF 3058 4066 #define size_t unsigned 3059 EOF3060 3061 fi 3062 3063 echo "$as_me: 3063: checking whether time.h and sys/time.h may both be included" >&54067 _ACEOF 4068 4069 fi 4070 4071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3064 4072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3065 4073 if test "${ac_cv_header_time+set}" = set; then … … 3067 4075 else 3068 4076 cat >conftest.$ac_ext <<_ACEOF 3069 #line 3069 "configure" 3070 #include "confdefs.h" 4077 /* confdefs.h. */ 4078 _ACEOF 4079 cat confdefs.h >>conftest.$ac_ext 4080 cat >>conftest.$ac_ext <<_ACEOF 4081 /* end confdefs.h. */ 3071 4082 #include <sys/types.h> 3072 4083 #include <sys/time.h> … … 3076 4087 main () 3077 4088 { 3078 struct tm *tp; 4089 if ((struct tm *) 0) 4090 return 0; 3079 4091 ; 3080 4092 return 0; … … 3082 4094 _ACEOF 3083 4095 rm -f conftest.$ac_objext 3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5 3085 (eval $ac_compile) 2>&5 3086 ac_status=$? 3087 echo "$as_me:3087: \$? = $ac_status" >&5 4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4097 (eval $ac_compile) 2>conftest.er1 4098 ac_status=$? 4099 grep -v '^ *+' conftest.er1 >conftest.err 4100 rm -f conftest.er1 4101 cat conftest.err >&5 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 4103 (exit $ac_status); } && 3089 { ac_try='test -s conftest.$ac_objext' 3090 { (eval echo "$as_me:3090: \"$ac_try\"") >&5 3091 (eval $ac_try) 2>&5 3092 ac_status=$? 3093 echo "$as_me:3093: \$? = $ac_status" >&5 4104 { ac_try='test -z "$ac_c_werror_flag" 4105 || test ! -s conftest.err' 4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4107 (eval $ac_try) 2>&5 4108 ac_status=$? 4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4110 (exit $ac_status); }; } && 4111 { ac_try='test -s conftest.$ac_objext' 4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4113 (eval $ac_try) 2>&5 4114 ac_status=$? 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 4116 (exit $ac_status); }; }; then 3095 4117 ac_cv_header_time=yes 3096 4118 else 3097 4119 echo "$as_me: failed program was:" >&5 3098 cat conftest.$ac_ext >&5 4120 sed 's/^/| /' conftest.$ac_ext >&5 4121 3099 4122 ac_cv_header_time=no 3100 4123 fi 3101 rm -f conftest. $ac_objext conftest.$ac_ext3102 fi 3103 echo "$as_me: 3103: result: $ac_cv_header_time" >&54124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4125 fi 4126 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3104 4127 echo "${ECHO_T}$ac_cv_header_time" >&6 3105 4128 if test $ac_cv_header_time = yes; then 3106 4129 3107 cat >>confdefs.h <<\ EOF4130 cat >>confdefs.h <<\_ACEOF 3108 4131 #define TIME_WITH_SYS_TIME 1 3109 EOF3110 3111 fi 3112 3113 echo "$as_me: 3113: checking whether struct tm is in sys/time.h or time.h" >&54132 _ACEOF 4133 4134 fi 4135 4136 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 3114 4137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3115 4138 if test "${ac_cv_struct_tm+set}" = set; then … … 3117 4140 else 3118 4141 cat >conftest.$ac_ext <<_ACEOF 3119 #line 3119 "configure" 3120 #include "confdefs.h" 4142 /* confdefs.h. */ 4143 _ACEOF 4144 cat confdefs.h >>conftest.$ac_ext 4145 cat >>conftest.$ac_ext <<_ACEOF 4146 /* end confdefs.h. */ 3121 4147 #include <sys/types.h> 3122 4148 #include <time.h> … … 3131 4157 _ACEOF 3132 4158 rm -f conftest.$ac_objext 3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5 3134 (eval $ac_compile) 2>&5 3135 ac_status=$? 3136 echo "$as_me:3136: \$? = $ac_status" >&5 4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4160 (eval $ac_compile) 2>conftest.er1 4161 ac_status=$? 4162 grep -v '^ *+' conftest.er1 >conftest.err 4163 rm -f conftest.er1 4164 cat conftest.err >&5 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 4166 (exit $ac_status); } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (eval echo "$as_me:3139: \"$ac_try\"") >&5 3140 (eval $ac_try) 2>&5 3141 ac_status=$? 3142 echo "$as_me:3142: \$? = $ac_status" >&5 4167 { ac_try='test -z "$ac_c_werror_flag" 4168 || test ! -s conftest.err' 4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4170 (eval $ac_try) 2>&5 4171 ac_status=$? 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); }; } && 4174 { ac_try='test -s conftest.$ac_objext' 4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4176 (eval $ac_try) 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 4179 (exit $ac_status); }; }; then 3144 4180 ac_cv_struct_tm=time.h 3145 4181 else 3146 4182 echo "$as_me: failed program was:" >&5 3147 cat conftest.$ac_ext >&5 4183 sed 's/^/| /' conftest.$ac_ext >&5 4184 3148 4185 ac_cv_struct_tm=sys/time.h 3149 4186 fi 3150 rm -f conftest. $ac_objext conftest.$ac_ext3151 fi 3152 echo "$as_me: 3152: result: $ac_cv_struct_tm" >&54187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4188 fi 4189 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 3153 4190 echo "${ECHO_T}$ac_cv_struct_tm" >&6 3154 4191 if test $ac_cv_struct_tm = sys/time.h; then 3155 4192 3156 cat >>confdefs.h <<\ EOF4193 cat >>confdefs.h <<\_ACEOF 3157 4194 #define TM_IN_SYS_TIME 1 3158 EOF 3159 3160 fi 4195 _ACEOF 4196 4197 fi 4198 3161 4199 3162 4200 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 3163 4201 cat >conftest.$ac_ext <<_ACEOF 3164 #line 3164 "configure" 3165 #include "confdefs.h" 4202 /* confdefs.h. */ 4203 _ACEOF 4204 cat confdefs.h >>conftest.$ac_ext 4205 cat >>conftest.$ac_ext <<_ACEOF 4206 /* end confdefs.h. */ 3166 4207 #include <stdio.h> 3167 4208 … … 3175 4216 _ACEOF 3176 4217 rm -f conftest.$ac_objext 3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5 3178 (eval $ac_compile) 2>&5 3179 ac_status=$? 3180 echo "$as_me:3180: \$? = $ac_status" >&5 4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4219 (eval $ac_compile) 2>conftest.er1 4220 ac_status=$? 4221 grep -v '^ *+' conftest.er1 >conftest.err 4222 rm -f conftest.er1 4223 cat conftest.err >&5 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 4225 (exit $ac_status); } && 3182 { ac_try='test -s conftest.$ac_objext' 3183 { (eval echo "$as_me:3183: \"$ac_try\"") >&5 3184 (eval $ac_try) 2>&5 3185 ac_status=$? 3186 echo "$as_me:3186: \$? = $ac_status" >&5 4226 { ac_try='test -z "$ac_c_werror_flag" 4227 || test ! -s conftest.err' 4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4229 (eval $ac_try) 2>&5 4230 ac_status=$? 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); }; } && 4233 { ac_try='test -s conftest.$ac_objext' 4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4235 (eval $ac_try) 2>&5 4236 ac_status=$? 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 4238 (exit $ac_status); }; }; then 3188 4239 : 3189 4240 else 3190 4241 echo "$as_me: failed program was:" >&5 3191 cat conftest.$ac_ext >&5 4242 sed 's/^/| /' conftest.$ac_ext >&5 4243 3192 4244 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3193 4245 fi 3194 rm -f conftest.$ac_objext conftest.$ac_ext 3195 fi 3196 3197 echo "$as_me:3197: checking for main in -lm" >&5 4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4247 fi 4248 4249 4250 4251 echo "$as_me:$LINENO: checking for main in -lm" >&5 3198 4252 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3199 4253 if test "${ac_cv_lib_m_main+set}" = set; then … … 3203 4257 LIBS="-lm $LIBS" 3204 4258 cat >conftest.$ac_ext <<_ACEOF 3205 #line 3205 "configure" 3206 #include "confdefs.h" 4259 /* confdefs.h. */ 4260 _ACEOF 4261 cat confdefs.h >>conftest.$ac_ext 4262 cat >>conftest.$ac_ext <<_ACEOF 4263 /* end confdefs.h. */ 4264 3207 4265 3208 4266 int … … 3215 4273 _ACEOF 3216 4274 rm -f conftest.$ac_objext conftest$ac_exeext 3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5 3218 (eval $ac_link) 2>&5 3219 ac_status=$? 3220 echo "$as_me:3220: \$? = $ac_status" >&5 4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4276 (eval $ac_link) 2>conftest.er1 4277 ac_status=$? 4278 grep -v '^ *+' conftest.er1 >conftest.err 4279 rm -f conftest.er1 4280 cat conftest.err >&5 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 4282 (exit $ac_status); } && 3222 { ac_try='test -s conftest$ac_exeext' 3223 { (eval echo "$as_me:3223: \"$ac_try\"") >&5 3224 (eval $ac_try) 2>&5 3225 ac_status=$? 3226 echo "$as_me:3226: \$? = $ac_status" >&5 4283 { ac_try='test -z "$ac_c_werror_flag" 4284 || test ! -s conftest.err' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; } && 4290 { ac_try='test -s conftest$ac_exeext' 4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4292 (eval $ac_try) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 4295 (exit $ac_status); }; }; then 3228 4296 ac_cv_lib_m_main=yes 3229 4297 else 3230 4298 echo "$as_me: failed program was:" >&5 3231 cat conftest.$ac_ext >&5 4299 sed 's/^/| /' conftest.$ac_ext >&5 4300 3232 4301 ac_cv_lib_m_main=no 3233 4302 fi 3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4303 rm -f conftest.err conftest.$ac_objext \ 4304 conftest$ac_exeext conftest.$ac_ext 3235 4305 LIBS=$ac_check_lib_save_LIBS 3236 4306 fi 3237 echo "$as_me: 3237: result: $ac_cv_lib_m_main" >&54307 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 3238 4308 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3239 4309 if test $ac_cv_lib_m_main = yes; then 3240 cat >>confdefs.h << EOF4310 cat >>confdefs.h <<_ACEOF 3241 4311 #define HAVE_LIBM 1 3242 EOF4312 _ACEOF 3243 4313 3244 4314 LIBS="-lm $LIBS" 3245 4315 3246 4316 fi 4317 4318 4319 4320 4321 4322 3247 4323 3248 4324 ac_header_dirent=no 3249 4325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3250 a c_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`3251 echo "$as_me: 3251: checking for $ac_hdr that defines DIR" >&54326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4327 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3252 4328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3253 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3254 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 3255 4331 else 3256 4332 cat >conftest.$ac_ext <<_ACEOF 3257 #line 3257 "configure" 3258 #include "confdefs.h" 4333 /* confdefs.h. */ 4334 _ACEOF 4335 cat confdefs.h >>conftest.$ac_ext 4336 cat >>conftest.$ac_ext <<_ACEOF 4337 /* end confdefs.h. */ 3259 4338 #include <sys/types.h> 3260 4339 #include <$ac_hdr> … … 3263 4342 main () 3264 4343 { 3265 DIR *dirp = 0; 4344 if ((DIR *) 0) 4345 return 0; 3266 4346 ; 3267 4347 return 0; … … 3269 4349 _ACEOF 3270 4350 rm -f conftest.$ac_objext 3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5 3272 (eval $ac_compile) 2>&5 3273 ac_status=$? 3274 echo "$as_me:3274: \$? = $ac_status" >&5 4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4352 (eval $ac_compile) 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 4358 (exit $ac_status); } && 3276 { ac_try='test -s conftest.$ac_objext' 3277 { (eval echo "$as_me:3277: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 4359 { ac_try='test -z "$ac_c_werror_flag" 4360 || test ! -s conftest.err' 4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4362 (eval $ac_try) 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; } && 4366 { ac_try='test -s conftest.$ac_objext' 4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4368 (eval $ac_try) 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 4371 (exit $ac_status); }; }; then 3282 eval "$a c_ac_Header=yes"4372 eval "$as_ac_Header=yes" 3283 4373 else 3284 4374 echo "$as_me: failed program was:" >&5 3285 cat conftest.$ac_ext >&5 3286 eval "$ac_ac_Header=no" 3287 fi 3288 rm -f conftest.$ac_objext conftest.$ac_ext 3289 fi 3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3293 cat >>confdefs.h <<EOF 3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3295 EOF 4375 sed 's/^/| /' conftest.$ac_ext >&5 4376 4377 eval "$as_ac_Header=no" 4378 fi 4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4380 fi 4381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4384 cat >>confdefs.h <<_ACEOF 4385 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4386 _ACEOF 3296 4387 3297 4388 ac_header_dirent=$ac_hdr; break … … 3301 4392 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3302 4393 if test $ac_header_dirent = dirent.h; then 3303 echo "$as_me: 3303: checking for opendir in -ldir" >&53304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&63305 if test "${ac_cv_ lib_dir_opendir+set}" = set; then4394 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4396 if test "${ac_cv_search_opendir+set}" = set; then 3306 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 4398 else 3308 ac_ check_lib_save_LIBS=$LIBS3309 LIBS="-ldir $LIBS" 4399 ac_func_search_save_LIBS=$LIBS 4400 ac_cv_search_opendir=no 3310 4401 cat >conftest.$ac_ext <<_ACEOF 3311 #line 3311 "configure" 3312 #include "confdefs.h" 4402 /* confdefs.h. */ 4403 _ACEOF 4404 cat confdefs.h >>conftest.$ac_ext 4405 cat >>conftest.$ac_ext <<_ACEOF 4406 /* end confdefs.h. */ 3313 4407 3314 4408 /* Override any gcc2 internal prototype to avoid an error. */ … … 3328 4422 _ACEOF 3329 4423 rm -f conftest.$ac_objext conftest$ac_exeext 3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5 3331 (eval $ac_link) 2>&5 3332 ac_status=$? 3333 echo "$as_me:3333: \$? = $ac_status" >&5 4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4425 (eval $ac_link) 2>conftest.er1 4426 ac_status=$? 4427 grep -v '^ *+' conftest.er1 >conftest.err 4428 rm -f conftest.er1 4429 cat conftest.err >&5 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 4431 (exit $ac_status); } && 3335 { ac_try='test -s conftest$ac_exeext' 3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5 3337 (eval $ac_try) 2>&5 3338 ac_status=$? 3339 echo "$as_me:3339: \$? = $ac_status" >&5 4432 { ac_try='test -z "$ac_c_werror_flag" 4433 || test ! -s conftest.err' 4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4435 (eval $ac_try) 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; } && 4439 { ac_try='test -s conftest$ac_exeext' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 4444 (exit $ac_status); }; }; then 3341 ac_cv_ lib_dir_opendir=yes4445 ac_cv_search_opendir="none required" 3342 4446 else 3343 4447 echo "$as_me: failed program was:" >&5 3344 cat conftest.$ac_ext >&5 3345 ac_cv_lib_dir_opendir=no 3346 fi 3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3348 LIBS=$ac_check_lib_save_LIBS 3349 fi 3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5 3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3352 if test $ac_cv_lib_dir_opendir = yes; then 3353 LIBS="$LIBS -ldir" 3354 fi 3355 3356 else 3357 echo "$as_me:3357: checking for opendir in -lx" >&5 3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3359 if test "${ac_cv_lib_x_opendir+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361 else 3362 ac_check_lib_save_LIBS=$LIBS 3363 LIBS="-lx $LIBS" 3364 cat >conftest.$ac_ext <<_ACEOF 3365 #line 3365 "configure" 3366 #include "confdefs.h" 4448 sed 's/^/| /' conftest.$ac_ext >&5 4449 4450 fi 4451 rm -f conftest.err conftest.$ac_objext \ 4452 conftest$ac_exeext conftest.$ac_ext 4453 if test "$ac_cv_search_opendir" = no; then 4454 for ac_lib in dir; do 4455 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4456 cat >conftest.$ac_ext <<_ACEOF 4457 /* confdefs.h. */ 4458 _ACEOF 4459 cat confdefs.h >>conftest.$ac_ext 4460 cat >>conftest.$ac_ext <<_ACEOF 4461 /* end confdefs.h. */ 3367 4462 3368 4463 /* Override any gcc2 internal prototype to avoid an error. */ … … 3382 4477 _ACEOF 3383 4478 rm -f conftest.$ac_objext conftest$ac_exeext 3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5 3385 (eval $ac_link) 2>&5 3386 ac_status=$? 3387 echo "$as_me:3387: \$? = $ac_status" >&5 4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4480 (eval $ac_link) 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 4486 (exit $ac_status); } && 3389 { ac_try='test -s conftest$ac_exeext' 3390 { (eval echo "$as_me:3390: \"$ac_try\"") >&5 3391 (eval $ac_try) 2>&5 3392 ac_status=$? 3393 echo "$as_me:3393: \$? = $ac_status" >&5 4487 { ac_try='test -z "$ac_c_werror_flag" 4488 || test ! -s conftest.err' 4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4490 (eval $ac_try) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; } && 4494 { ac_try='test -s conftest$ac_exeext' 4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4496 (eval $ac_try) 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 4499 (exit $ac_status); }; }; then 3395 ac_cv_lib_x_opendir=yes 4500 ac_cv_search_opendir="-l$ac_lib" 4501 break 3396 4502 else 3397 4503 echo "$as_me: failed program was:" >&5 3398 cat conftest.$ac_ext >&5 3399 ac_cv_lib_x_opendir=no 3400 fi 3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3402 LIBS=$ac_check_lib_save_LIBS 3403 fi 3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5 3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3406 if test $ac_cv_lib_x_opendir = yes; then 3407 LIBS="$LIBS -lx" 3408 fi 3409 3410 fi 3411 3412 echo "$as_me:3412: checking for ANSI C header files" >&5 4504 sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 fi 4507 rm -f conftest.err conftest.$ac_objext \ 4508 conftest$ac_exeext conftest.$ac_ext 4509 done 4510 fi 4511 LIBS=$ac_func_search_save_LIBS 4512 fi 4513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4514 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4515 if test "$ac_cv_search_opendir" != no; then 4516 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4517 4518 fi 4519 4520 else 4521 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4523 if test "${ac_cv_search_opendir+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525 else 4526 ac_func_search_save_LIBS=$LIBS 4527 ac_cv_search_opendir=no 4528 cat >conftest.$ac_ext <<_ACEOF 4529 /* confdefs.h. */ 4530 _ACEOF 4531 cat confdefs.h >>conftest.$ac_ext 4532 cat >>conftest.$ac_ext <<_ACEOF 4533 /* end confdefs.h. */ 4534 4535 /* Override any gcc2 internal prototype to avoid an error. */ 4536 #ifdef __cplusplus 4537 extern "C" 4538 #endif 4539 /* We use char because int might match the return type of a gcc2 4540 builtin and then its argument prototype would still apply. */ 4541 char opendir (); 4542 int 4543 main () 4544 { 4545 opendir (); 4546 ; 4547 return 0; 4548 } 4549 _ACEOF 4550 rm -f conftest.$ac_objext conftest$ac_exeext 4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4552 (eval $ac_link) 2>conftest.er1 4553 ac_status=$? 4554 grep -v '^ *+' conftest.er1 >conftest.err 4555 rm -f conftest.er1 4556 cat conftest.err >&5 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } && 4559 { ac_try='test -z "$ac_c_werror_flag" 4560 || test ! -s conftest.err' 4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4562 (eval $ac_try) 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); }; } && 4566 { ac_try='test -s conftest$ac_exeext' 4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4568 (eval $ac_try) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 ac_cv_search_opendir="none required" 4573 else 4574 echo "$as_me: failed program was:" >&5 4575 sed 's/^/| /' conftest.$ac_ext >&5 4576 4577 fi 4578 rm -f conftest.err conftest.$ac_objext \ 4579 conftest$ac_exeext conftest.$ac_ext 4580 if test "$ac_cv_search_opendir" = no; then 4581 for ac_lib in x; do 4582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4583 cat >conftest.$ac_ext <<_ACEOF 4584 /* confdefs.h. */ 4585 _ACEOF 4586 cat confdefs.h >>conftest.$ac_ext 4587 cat >>conftest.$ac_ext <<_ACEOF 4588 /* end confdefs.h. */ 4589 4590 /* Override any gcc2 internal prototype to avoid an error. */ 4591 #ifdef __cplusplus 4592 extern "C" 4593 #endif 4594 /* We use char because int might match the return type of a gcc2 4595 builtin and then its argument prototype would still apply. */ 4596 char opendir (); 4597 int 4598 main () 4599 { 4600 opendir (); 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 rm -f conftest.$ac_objext conftest$ac_exeext 4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4607 (eval $ac_link) 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -z "$ac_c_werror_flag" 4615 || test ! -s conftest.err' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest$ac_exeext' 4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4623 (eval $ac_try) 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; }; then 4627 ac_cv_search_opendir="-l$ac_lib" 4628 break 4629 else 4630 echo "$as_me: failed program was:" >&5 4631 sed 's/^/| /' conftest.$ac_ext >&5 4632 4633 fi 4634 rm -f conftest.err conftest.$ac_objext \ 4635 conftest$ac_exeext conftest.$ac_ext 4636 done 4637 fi 4638 LIBS=$ac_func_search_save_LIBS 4639 fi 4640 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4641 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4642 if test "$ac_cv_search_opendir" != no; then 4643 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4644 4645 fi 4646 4647 fi 4648 4649 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3413 4650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3414 4651 if test "${ac_cv_header_stdc+set}" = set; then … … 3416 4653 else 3417 4654 cat >conftest.$ac_ext <<_ACEOF 3418 #line 3418 "configure" 3419 #include "confdefs.h" 4655 /* confdefs.h. */ 4656 _ACEOF 4657 cat confdefs.h >>conftest.$ac_ext 4658 cat >>conftest.$ac_ext <<_ACEOF 4659 /* end confdefs.h. */ 3420 4660 #include <stdlib.h> 3421 4661 #include <stdarg.h> … … 3423 4663 #include <float.h> 3424 4664 3425 _ACEOF 3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5 3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3428 ac_status=$? 3429 egrep -v '^ *\+' conftest.er1 >conftest.err 4665 int 4666 main () 4667 { 4668 4669 ; 4670 return 0; 4671 } 4672 _ACEOF 4673 rm -f conftest.$ac_objext 4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4675 (eval $ac_compile) 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 3430 4678 rm -f conftest.er1 3431 4679 cat conftest.err >&5 3432 echo "$as_me:3432: \$? = $ac_status" >&5 3433 (exit $ac_status); } >/dev/null; then 3434 if test -s conftest.err; then 3435 ac_cpp_err=$ac_c_preproc_warn_flag 3436 else 3437 ac_cpp_err= 3438 fi 3439 else 3440 ac_cpp_err=yes 3441 fi 3442 if test -z "$ac_cpp_err"; then 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } && 4682 { ac_try='test -z "$ac_c_werror_flag" 4683 || test ! -s conftest.err' 4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4685 (eval $ac_try) 2>&5 4686 ac_status=$? 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4688 (exit $ac_status); }; } && 4689 { ac_try='test -s conftest.$ac_objext' 4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691 (eval $ac_try) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); }; }; then 3443 4695 ac_cv_header_stdc=yes 3444 4696 else 3445 4697 echo "$as_me: failed program was:" >&5 3446 cat conftest.$ac_ext >&5 3447 ac_cv_header_stdc=no 3448 fi 3449 rm -f conftest.err conftest.$ac_ext 4698 sed 's/^/| /' conftest.$ac_ext >&5 4699 4700 ac_cv_header_stdc=no 4701 fi 4702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3450 4703 3451 4704 if test $ac_cv_header_stdc = yes; then 3452 4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3453 4706 cat >conftest.$ac_ext <<_ACEOF 3454 #line 3454 "configure" 3455 #include "confdefs.h" 4707 /* confdefs.h. */ 4708 _ACEOF 4709 cat confdefs.h >>conftest.$ac_ext 4710 cat >>conftest.$ac_ext <<_ACEOF 4711 /* end confdefs.h. */ 3456 4712 #include <string.h> 3457 4713 3458 4714 _ACEOF 3459 4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3460 egrep"memchr" >/dev/null 2>&1; then4716 $EGREP "memchr" >/dev/null 2>&1; then 3461 4717 : 3462 4718 else … … 3470 4726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3471 4727 cat >conftest.$ac_ext <<_ACEOF 3472 #line 3472 "configure" 3473 #include "confdefs.h" 4728 /* confdefs.h. */ 4729 _ACEOF 4730 cat confdefs.h >>conftest.$ac_ext 4731 cat >>conftest.$ac_ext <<_ACEOF 4732 /* end confdefs.h. */ 3474 4733 #include <stdlib.h> 3475 4734 3476 4735 _ACEOF 3477 4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3478 egrep"free" >/dev/null 2>&1; then4737 $EGREP "free" >/dev/null 2>&1; then 3479 4738 : 3480 4739 else … … 3491 4750 else 3492 4751 cat >conftest.$ac_ext <<_ACEOF 3493 #line 3493 "configure" 3494 #include "confdefs.h" 4752 /* confdefs.h. */ 4753 _ACEOF 4754 cat confdefs.h >>conftest.$ac_ext 4755 cat >>conftest.$ac_ext <<_ACEOF 4756 /* end confdefs.h. */ 3495 4757 #include <ctype.h> 3496 4758 #if ((' ' & 0x0FF) == 0x020) … … 3498 4760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3499 4761 #else 3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3501 || ('j' <= (c) && (c) <= 'r') \ 3502 || ('s' <= (c) && (c) <= 'z')) 4762 # define ISLOWER(c) \ 4763 (('a' <= (c) && (c) <= 'i') \ 4764 || ('j' <= (c) && (c) <= 'r') \ 4765 || ('s' <= (c) && (c) <= 'z')) 3503 4766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3504 4767 #endif … … 3511 4774 for (i = 0; i < 256; i++) 3512 4775 if (XOR (islower (i), ISLOWER (i)) 3513 4776 || toupper (i) != TOUPPER (i)) 3514 4777 exit(2); 3515 4778 exit (0); … … 3517 4780 _ACEOF 3518 4781 rm -f conftest$ac_exeext 3519 if { (eval echo "$as_me: 3519: \"$ac_link\"") >&54782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3520 4783 (eval $ac_link) 2>&5 3521 4784 ac_status=$? 3522 echo "$as_me: 3522: \$? = $ac_status" >&54785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3524 { (eval echo "$as_me: 3524: \"$ac_try\"") >&53525 (eval $ac_try) 2>&5 3526 ac_status=$? 3527 echo "$as_me: 3527: \$? = $ac_status" >&54787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 4791 (exit $ac_status); }; }; then 3529 4792 : … … 3531 4794 echo "$as_me: program exited with status $ac_status" >&5 3532 4795 echo "$as_me: failed program was:" >&5 3533 cat conftest.$ac_ext >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 ( exit $ac_status ) 3534 4799 ac_cv_header_stdc=no 3535 4800 fi 3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3537 fi 3538 fi 3539 fi 3540 echo "$as_me: 3540: result: $ac_cv_header_stdc" >&54801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4802 fi 4803 fi 4804 fi 4805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3541 4806 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3542 4807 if test $ac_cv_header_stdc = yes; then 3543 4808 3544 cat >>confdefs.h <<\ EOF4809 cat >>confdefs.h <<\_ACEOF 3545 4810 #define STDC_HEADERS 1 3546 EOF 3547 3548 fi 4811 _ACEOF 4812 4813 fi 4814 4815 4816 4817 4818 4819 4820 3549 4821 3550 4822 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 3551 4823 do 3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3553 echo "$as_me:3553: checking for $ac_header" >&5 4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4825 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4826 echo "$as_me:$LINENO: checking for $ac_header" >&5 3554 4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3555 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4828 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3556 4829 echo $ECHO_N "(cached) $ECHO_C" >&6 3557 else 3558 cat >conftest.$ac_ext <<_ACEOF 3559 #line 3559 "configure" 3560 #include "confdefs.h" 4830 fi 4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4833 else 4834 # Is the header compilable? 4835 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4837 cat >conftest.$ac_ext <<_ACEOF 4838 /* confdefs.h. */ 4839 _ACEOF 4840 cat confdefs.h >>conftest.$ac_ext 4841 cat >>conftest.$ac_ext <<_ACEOF 4842 /* end confdefs.h. */ 4843 $ac_includes_default 3561 4844 #include <$ac_header> 3562 4845 _ACEOF 3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5 3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3565 ac_status=$? 3566 egrep -v '^ *\+' conftest.er1 >conftest.err 4846 rm -f conftest.$ac_objext 4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4848 (eval $ac_compile) 2>conftest.er1 4849 ac_status=$? 4850 grep -v '^ *+' conftest.er1 >conftest.err 3567 4851 rm -f conftest.er1 3568 4852 cat conftest.err >&5 3569 echo "$as_me:3569: \$? = $ac_status" >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } && 4855 { ac_try='test -z "$ac_c_werror_flag" 4856 || test ! -s conftest.err' 4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4858 (eval $ac_try) 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); }; } && 4862 { ac_try='test -s conftest.$ac_objext' 4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4864 (eval $ac_try) 2>&5 4865 ac_status=$? 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); }; }; then 4868 ac_header_compiler=yes 4869 else 4870 echo "$as_me: failed program was:" >&5 4871 sed 's/^/| /' conftest.$ac_ext >&5 4872 4873 ac_header_compiler=no 4874 fi 4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4877 echo "${ECHO_T}$ac_header_compiler" >&6 4878 4879 # Is the header present? 4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4882 cat >conftest.$ac_ext <<_ACEOF 4883 /* confdefs.h. */ 4884 _ACEOF 4885 cat confdefs.h >>conftest.$ac_ext 4886 cat >>conftest.$ac_ext <<_ACEOF 4887 /* end confdefs.h. */ 4888 #include <$ac_header> 4889 _ACEOF 4890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 4897 (exit $ac_status); } >/dev/null; then 3571 4898 if test -s conftest.err; then 3572 4899 ac_cpp_err=$ac_c_preproc_warn_flag 4900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3573 4901 else 3574 4902 ac_cpp_err= … … 3578 4906 fi 3579 4907 if test -z "$ac_cpp_err"; then 3580 eval "$ac_ac_Header=yes"4908 ac_header_preproc=yes 3581 4909 else 3582 4910 echo "$as_me: failed program was:" >&5 3583 cat conftest.$ac_ext >&5 3584 eval "$ac_ac_Header=no" 4911 sed 's/^/| /' conftest.$ac_ext >&5 4912 4913 ac_header_preproc=no 3585 4914 fi 3586 4915 rm -f conftest.err conftest.$ac_ext 3587 fi 3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3591 cat >>confdefs.h <<EOF 3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3593 EOF 3594 3595 fi 4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4917 echo "${ECHO_T}$ac_header_preproc" >&6 4918 4919 # So? What about this header? 4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4921 yes:no: ) 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4926 ac_header_preproc=yes 4927 ;; 4928 no:yes:* ) 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4941 ( 4942 cat <<\_ASBOX 4943 ## ------------------------------------------ ## 4944 ## Report this to the AC_PACKAGE_NAME lists. ## 4945 ## ------------------------------------------ ## 4946 _ASBOX 4947 ) | 4948 sed "s/^/$as_me: WARNING: /" >&2 4949 ;; 4950 esac 4951 echo "$as_me:$LINENO: checking for $ac_header" >&5 4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4953 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955 else 4956 eval "$as_ac_Header=\$ac_header_preproc" 4957 fi 4958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4960 4961 fi 4962 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4963 cat >>confdefs.h <<_ACEOF 4964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4965 _ACEOF 4966 4967 fi 4968 3596 4969 done 3597 4970 3598 4971 cat >conftest.$ac_ext <<_ACEOF 3599 #line 3599 "configure" 3600 #include "confdefs.h" 4972 /* confdefs.h. */ 4973 _ACEOF 4974 cat confdefs.h >>conftest.$ac_ext 4975 cat >>conftest.$ac_ext <<_ACEOF 4976 /* end confdefs.h. */ 3601 4977 #include <stdio.h> 3602 4978 3603 4979 _ACEOF 3604 4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3605 egrep"fread" >/dev/null 2>&1; then3606 cat >>confdefs.h <<\ EOF4981 $EGREP "fread" >/dev/null 2>&1; then 4982 cat >>confdefs.h <<\_ACEOF 3607 4983 #define HAVE_FREAD_DECL 1 3608 EOF4984 _ACEOF 3609 4985 3610 4986 fi … … 3612 4988 3613 4989 cat >conftest.$ac_ext <<_ACEOF 3614 #line 3614 "configure" 3615 #include "confdefs.h" 4990 /* confdefs.h. */ 4991 _ACEOF 4992 cat confdefs.h >>conftest.$ac_ext 4993 cat >>conftest.$ac_ext <<_ACEOF 4994 /* end confdefs.h. */ 3616 4995 #include <stdio.h> 3617 4996 3618 4997 _ACEOF 3619 4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3620 egrep"fgetc" >/dev/null 2>&1; then3621 cat >>confdefs.h <<\ EOF4999 $EGREP "fgetc" >/dev/null 2>&1; then 5000 cat >>confdefs.h <<\_ACEOF 3622 5001 #define HAVE_FGETC_DECL 1 3623 EOF5002 _ACEOF 3624 5003 3625 5004 fi … … 3627 5006 3628 5007 cat >conftest.$ac_ext <<_ACEOF 3629 #line 3629 "configure" 3630 #include "confdefs.h" 5008 /* confdefs.h. */ 5009 _ACEOF 5010 cat confdefs.h >>conftest.$ac_ext 5011 cat >>conftest.$ac_ext <<_ACEOF 5012 /* end confdefs.h. */ 3631 5013 #include <sys/procfs.h> 3632 5014 3633 5015 _ACEOF 3634 5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3635 egrep"pr_brksize" >/dev/null 2>&1; then3636 cat >>confdefs.h <<\ EOF5017 $EGREP "pr_brksize" >/dev/null 2>&1; then 5018 cat >>confdefs.h <<\_ACEOF 3637 5019 #define HAVE_PR_BRKSIZE 1 3638 EOF5020 _ACEOF 3639 5021 3640 5022 fi 3641 5023 rm -f conftest* 5024 3642 5025 3643 5026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 3644 5027 # for constant arguments. Useless! 3645 echo "$as_me: 3645: checking for working alloca.h" >&55028 echo "$as_me:$LINENO: checking for working alloca.h" >&5 3646 5029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 3647 5030 if test "${ac_cv_working_alloca_h+set}" = set; then … … 3649 5032 else 3650 5033 cat >conftest.$ac_ext <<_ACEOF 3651 #line 3651 "configure" 3652 #include "confdefs.h" 5034 /* confdefs.h. */ 5035 _ACEOF 5036 cat confdefs.h >>conftest.$ac_ext 5037 cat >>conftest.$ac_ext <<_ACEOF 5038 /* end confdefs.h. */ 3653 5039 #include <alloca.h> 3654 5040 int … … 3661 5047 _ACEOF 3662 5048 rm -f conftest.$ac_objext conftest$ac_exeext 3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5 3664 (eval $ac_link) 2>&5 3665 ac_status=$? 3666 echo "$as_me:3666: \$? = $ac_status" >&5 5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5050 (eval $ac_link) 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3667 5056 (exit $ac_status); } && 3668 { ac_try='test -s conftest$ac_exeext' 3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5 3670 (eval $ac_try) 2>&5 3671 ac_status=$? 3672 echo "$as_me:3672: \$? = $ac_status" >&5 5057 { ac_try='test -z "$ac_c_werror_flag" 5058 || test ! -s conftest.err' 5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5060 (eval $ac_try) 2>&5 5061 ac_status=$? 5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); }; } && 5064 { ac_try='test -s conftest$ac_exeext' 5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5066 (eval $ac_try) 2>&5 5067 ac_status=$? 5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 5069 (exit $ac_status); }; }; then 3674 5070 ac_cv_working_alloca_h=yes 3675 5071 else 3676 5072 echo "$as_me: failed program was:" >&5 3677 cat conftest.$ac_ext >&5 5073 sed 's/^/| /' conftest.$ac_ext >&5 5074 3678 5075 ac_cv_working_alloca_h=no 3679 5076 fi 3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3681 fi 3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5 5077 rm -f conftest.err conftest.$ac_objext \ 5078 conftest$ac_exeext conftest.$ac_ext 5079 fi 5080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 3683 5081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3684 5082 if test $ac_cv_working_alloca_h = yes; then 3685 5083 3686 cat >>confdefs.h <<\ EOF5084 cat >>confdefs.h <<\_ACEOF 3687 5085 #define HAVE_ALLOCA_H 1 3688 EOF3689 3690 fi 3691 3692 echo "$as_me: 3692: checking for alloca" >&55086 _ACEOF 5087 5088 fi 5089 5090 echo "$as_me:$LINENO: checking for alloca" >&5 3693 5091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3694 5092 if test "${ac_cv_func_alloca_works+set}" = set; then … … 3696 5094 else 3697 5095 cat >conftest.$ac_ext <<_ACEOF 3698 #line 3698 "configure" 3699 #include "confdefs.h" 5096 /* confdefs.h. */ 5097 _ACEOF 5098 cat confdefs.h >>conftest.$ac_ext 5099 cat >>conftest.$ac_ext <<_ACEOF 5100 /* end confdefs.h. */ 3700 5101 #ifdef __GNUC__ 3701 5102 # define alloca __builtin_alloca … … 3728 5129 _ACEOF 3729 5130 rm -f conftest.$ac_objext conftest$ac_exeext 3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5 3731 (eval $ac_link) 2>&5 3732 ac_status=$? 3733 echo "$as_me:3733: \$? = $ac_status" >&5 5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5132 (eval $ac_link) 2>conftest.er1 5133 ac_status=$? 5134 grep -v '^ *+' conftest.er1 >conftest.err 5135 rm -f conftest.er1 5136 cat conftest.err >&5 5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 5138 (exit $ac_status); } && 3735 { ac_try='test -s conftest$ac_exeext' 3736 { (eval echo "$as_me:3736: \"$ac_try\"") >&5 3737 (eval $ac_try) 2>&5 3738 ac_status=$? 3739 echo "$as_me:3739: \$? = $ac_status" >&5 5139 { ac_try='test -z "$ac_c_werror_flag" 5140 || test ! -s conftest.err' 5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5142 (eval $ac_try) 2>&5 5143 ac_status=$? 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); }; } && 5146 { ac_try='test -s conftest$ac_exeext' 5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5148 (eval $ac_try) 2>&5 5149 ac_status=$? 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3740 5151 (exit $ac_status); }; }; then 3741 5152 ac_cv_func_alloca_works=yes 3742 5153 else 3743 5154 echo "$as_me: failed program was:" >&5 3744 cat conftest.$ac_ext >&5 5155 sed 's/^/| /' conftest.$ac_ext >&5 5156 3745 5157 ac_cv_func_alloca_works=no 3746 5158 fi 3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3748 fi 3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5 5159 rm -f conftest.err conftest.$ac_objext \ 5160 conftest$ac_exeext conftest.$ac_ext 5161 fi 5162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 3750 5163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3751 5164 3752 5165 if test $ac_cv_func_alloca_works = yes; then 3753 5166 3754 cat >>confdefs.h <<\ EOF5167 cat >>confdefs.h <<\_ACEOF 3755 5168 #define HAVE_ALLOCA 1 3756 EOF5169 _ACEOF 3757 5170 3758 5171 else … … 3764 5177 ALLOCA=alloca.$ac_objext 3765 5178 3766 cat >>confdefs.h <<\ EOF5179 cat >>confdefs.h <<\_ACEOF 3767 5180 #define C_ALLOCA 1 3768 EOF 3769 3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5 5181 _ACEOF 5182 5183 5184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 3771 5185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3772 5186 if test "${ac_cv_os_cray+set}" = set; then … … 3774 5188 else 3775 5189 cat >conftest.$ac_ext <<_ACEOF 3776 #line 3776 "configure" 3777 #include "confdefs.h" 5190 /* confdefs.h. */ 5191 _ACEOF 5192 cat confdefs.h >>conftest.$ac_ext 5193 cat >>conftest.$ac_ext <<_ACEOF 5194 /* end confdefs.h. */ 3778 5195 #if defined(CRAY) && ! defined(CRAY2) 3779 5196 webecray … … 3784 5201 _ACEOF 3785 5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3786 egrep"webecray" >/dev/null 2>&1; then5203 $EGREP "webecray" >/dev/null 2>&1; then 3787 5204 ac_cv_os_cray=yes 3788 5205 else … … 3792 5209 3793 5210 fi 3794 echo "$as_me: 3794: result: $ac_cv_os_cray" >&55211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 3795 5212 echo "${ECHO_T}$ac_cv_os_cray" >&6 3796 5213 if test $ac_cv_os_cray = yes; then 3797 5214 for ac_func in _getb67 GETB67 getb67; do 3798 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`3799 echo "$as_me: 3799: checking for $ac_func" >&55215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5216 echo "$as_me:$LINENO: checking for $ac_func" >&5 3800 5217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3801 if eval "test \"\${$a c_ac_var+set}\" = set"; then5218 if eval "test \"\${$as_ac_var+set}\" = set"; then 3802 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 3803 5220 else 3804 5221 cat >conftest.$ac_ext <<_ACEOF 3805 #line 3805 "configure" 3806 #include "confdefs.h" 5222 /* confdefs.h. */ 5223 _ACEOF 5224 cat confdefs.h >>conftest.$ac_ext 5225 cat >>conftest.$ac_ext <<_ACEOF 5226 /* end confdefs.h. */ 5227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5229 #define $ac_func innocuous_$ac_func 5230 3807 5231 /* System header to define __stub macros and hopefully few prototypes, 3808 which can conflict with char $ac_func (); below. */ 3809 #include <assert.h> 5232 which can conflict with char $ac_func (); below. 5233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5234 <limits.h> exists even on freestanding compilers. */ 5235 5236 #ifdef __STDC__ 5237 # include <limits.h> 5238 #else 5239 # include <assert.h> 5240 #endif 5241 5242 #undef $ac_func 5243 3810 5244 /* Override any gcc2 internal prototype to avoid an error. */ 3811 5245 #ifdef __cplusplus 3812 5246 extern "C" 5247 { 3813 5248 #endif 3814 5249 /* We use char because int might match the return type of a gcc2 3815 5250 builtin and then its argument prototype would still apply. */ 3816 5251 char $ac_func (); 3817 char (*f) ();3818 3819 int3820 main ()3821 {3822 5252 /* The GNU C library defines this for functions which it implements 3823 5253 to always fail with ENOSYS. Some functions are actually named … … 3826 5256 choke me 3827 5257 #else 3828 f= $ac_func;5258 char (*f) () = $ac_func; 3829 5259 #endif 3830 5260 #ifdef __cplusplus 5261 } 5262 #endif 5263 5264 int 5265 main () 5266 { 5267 return f != $ac_func; 3831 5268 ; 3832 5269 return 0; … … 3834 5271 _ACEOF 3835 5272 rm -f conftest.$ac_objext conftest$ac_exeext 3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5 3837 (eval $ac_link) 2>&5 3838 ac_status=$? 3839 echo "$as_me:3839: \$? = $ac_status" >&5 5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5274 (eval $ac_link) 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 5280 (exit $ac_status); } && 3841 { ac_try='test -s conftest$ac_exeext' 3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5 3843 (eval $ac_try) 2>&5 3844 ac_status=$? 3845 echo "$as_me:3845: \$? = $ac_status" >&5 5281 { ac_try='test -z "$ac_c_werror_flag" 5282 || test ! -s conftest.err' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; } && 5288 { ac_try='test -s conftest$ac_exeext' 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5290 (eval $ac_try) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 5293 (exit $ac_status); }; }; then 3847 eval "$a c_ac_var=yes"5294 eval "$as_ac_var=yes" 3848 5295 else 3849 5296 echo "$as_me: failed program was:" >&5 3850 cat conftest.$ac_ext >&5 3851 eval "$ac_ac_var=no" 3852 fi 3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3854 fi 3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5 3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then 3858 3859 cat >>confdefs.h <<EOF 5297 sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 eval "$as_ac_var=no" 5300 fi 5301 rm -f conftest.err conftest.$ac_objext \ 5302 conftest$ac_exeext conftest.$ac_ext 5303 fi 5304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5306 if test `eval echo '${'$as_ac_var'}'` = yes; then 5307 5308 cat >>confdefs.h <<_ACEOF 3860 5309 #define CRAY_STACKSEG_END $ac_func 3861 EOF5310 _ACEOF 3862 5311 3863 5312 break … … 3867 5316 fi 3868 5317 3869 echo "$as_me: 3869: checking stack direction for C alloca" >&55318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 3870 5319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 3871 5320 if test "${ac_cv_c_stack_direction+set}" = set; then … … 3876 5325 else 3877 5326 cat >conftest.$ac_ext <<_ACEOF 3878 #line 3878 "configure" 3879 #include "confdefs.h" 5327 /* confdefs.h. */ 5328 _ACEOF 5329 cat confdefs.h >>conftest.$ac_ext 5330 cat >>conftest.$ac_ext <<_ACEOF 5331 /* end confdefs.h. */ 3880 5332 int 3881 5333 find_stack_direction () … … 3899 5351 _ACEOF 3900 5352 rm -f conftest$ac_exeext 3901 if { (eval echo "$as_me: 3901: \"$ac_link\"") >&55353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3902 5354 (eval $ac_link) 2>&5 3903 5355 ac_status=$? 3904 echo "$as_me: 3904: \$? = $ac_status" >&55356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 5357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (eval echo "$as_me: 3906: \"$ac_try\"") >&53907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me: 3909: \$? = $ac_status" >&55358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 5362 (exit $ac_status); }; }; then 3911 5363 ac_cv_c_stack_direction=1 … … 3913 5365 echo "$as_me: program exited with status $ac_status" >&5 3914 5366 echo "$as_me: failed program was:" >&5 3915 cat conftest.$ac_ext >&5 5367 sed 's/^/| /' conftest.$ac_ext >&5 5368 5369 ( exit $ac_status ) 3916 5370 ac_cv_c_stack_direction=-1 3917 5371 fi 3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3919 fi 3920 fi 3921 echo "$as_me: 3921: result: $ac_cv_c_stack_direction" >&55372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5373 fi 5374 fi 5375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 3922 5376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 3923 5377 3924 cat >>confdefs.h << EOF5378 cat >>confdefs.h <<_ACEOF 3925 5379 #define STACK_DIRECTION $ac_cv_c_stack_direction 3926 EOF 5380 _ACEOF 5381 3927 5382 3928 5383 fi 3929 5384 3930 5385 if test $ac_cv_c_compiler_gnu = yes; then 3931 echo "$as_me: 3931: checking whether $CC needs -traditional" >&55386 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3932 5387 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3933 5388 if test "${ac_cv_prog_gcc_traditional+set}" = set; then … … 3936 5391 ac_pattern="Autoconf.*'x'" 3937 5392 cat >conftest.$ac_ext <<_ACEOF 3938 #line 3938 "configure" 3939 #include "confdefs.h" 5393 /* confdefs.h. */ 5394 _ACEOF 5395 cat confdefs.h >>conftest.$ac_ext 5396 cat >>conftest.$ac_ext <<_ACEOF 5397 /* end confdefs.h. */ 3940 5398 #include <sgtty.h> 3941 5399 Autoconf TIOCGETP 3942 5400 _ACEOF 3943 5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3944 egrep"$ac_pattern" >/dev/null 2>&1; then5402 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3945 5403 ac_cv_prog_gcc_traditional=yes 3946 5404 else … … 3948 5406 fi 3949 5407 rm -f conftest* 5408 3950 5409 3951 5410 if test $ac_cv_prog_gcc_traditional = no; then 3952 5411 cat >conftest.$ac_ext <<_ACEOF 3953 #line 3953 "configure" 3954 #include "confdefs.h" 5412 /* confdefs.h. */ 5413 _ACEOF 5414 cat confdefs.h >>conftest.$ac_ext 5415 cat >>conftest.$ac_ext <<_ACEOF 5416 /* end confdefs.h. */ 3955 5417 #include <termio.h> 3956 5418 Autoconf TCGETA 3957 5419 _ACEOF 3958 5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3959 egrep"$ac_pattern" >/dev/null 2>&1; then5421 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3960 5422 ac_cv_prog_gcc_traditional=yes 3961 5423 fi … … 3964 5426 fi 3965 5427 fi 3966 echo "$as_me: 3966: result: $ac_cv_prog_gcc_traditional" >&55428 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3967 5429 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3968 5430 if test $ac_cv_prog_gcc_traditional = yes; then … … 3971 5433 fi 3972 5434 3973 echo "$as_me: 3973: checking return type of signal handlers" >&55435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3974 5436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 3975 5437 if test "${ac_cv_type_signal+set}" = set; then … … 3977 5439 else 3978 5440 cat >conftest.$ac_ext <<_ACEOF 3979 #line 3979 "configure" 3980 #include "confdefs.h" 5441 /* confdefs.h. */ 5442 _ACEOF 5443 cat confdefs.h >>conftest.$ac_ext 5444 cat >>conftest.$ac_ext <<_ACEOF 5445 /* end confdefs.h. */ 3981 5446 #include <sys/types.h> 3982 5447 #include <signal.h> … … 3999 5464 _ACEOF 4000 5465 rm -f conftest.$ac_objext 4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5 4002 (eval $ac_compile) 2>&5 4003 ac_status=$? 4004 echo "$as_me:4004: \$? = $ac_status" >&5 5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5467 (eval $ac_compile) 2>conftest.er1 5468 ac_status=$? 5469 grep -v '^ *+' conftest.er1 >conftest.err 5470 rm -f conftest.er1 5471 cat conftest.err >&5 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 5473 (exit $ac_status); } && 4006 { ac_try='test -s conftest.$ac_objext' 4007 { (eval echo "$as_me:4007: \"$ac_try\"") >&5 4008 (eval $ac_try) 2>&5 4009 ac_status=$? 4010 echo "$as_me:4010: \$? = $ac_status" >&5 5474 { ac_try='test -z "$ac_c_werror_flag" 5475 || test ! -s conftest.err' 5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5477 (eval $ac_try) 2>&5 5478 ac_status=$? 5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); }; } && 5481 { ac_try='test -s conftest.$ac_objext' 5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5483 (eval $ac_try) 2>&5 5484 ac_status=$? 5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 5486 (exit $ac_status); }; }; then 4012 5487 ac_cv_type_signal=void 4013 5488 else 4014 5489 echo "$as_me: failed program was:" >&5 4015 cat conftest.$ac_ext >&5 5490 sed 's/^/| /' conftest.$ac_ext >&5 5491 4016 5492 ac_cv_type_signal=int 4017 5493 fi 4018 rm -f conftest. $ac_objext conftest.$ac_ext4019 fi 4020 echo "$as_me: 4020: result: $ac_cv_type_signal" >&55494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5495 fi 5496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4021 5497 echo "${ECHO_T}$ac_cv_type_signal" >&6 4022 5498 4023 cat >>confdefs.h << EOF5499 cat >>confdefs.h <<_ACEOF 4024 5500 #define RETSIGTYPE $ac_cv_type_signal 4025 EOF 5501 _ACEOF 5502 5503 4026 5504 4027 5505 for ac_func in vprintf 4028 5506 do 4029 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4030 echo "$as_me: 4030: checking for $ac_func" >&55507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5508 echo "$as_me:$LINENO: checking for $ac_func" >&5 4031 5509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4032 if eval "test \"\${$a c_ac_var+set}\" = set"; then5510 if eval "test \"\${$as_ac_var+set}\" = set"; then 4033 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 4034 5512 else 4035 5513 cat >conftest.$ac_ext <<_ACEOF 4036 #line 4036 "configure" 4037 #include "confdefs.h" 5514 /* confdefs.h. */ 5515 _ACEOF 5516 cat confdefs.h >>conftest.$ac_ext 5517 cat >>conftest.$ac_ext <<_ACEOF 5518 /* end confdefs.h. */ 5519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5521 #define $ac_func innocuous_$ac_func 5522 4038 5523 /* System header to define __stub macros and hopefully few prototypes, 4039 which can conflict with char $ac_func (); below. */ 4040 #include <assert.h> 5524 which can conflict with char $ac_func (); below. 5525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5526 <limits.h> exists even on freestanding compilers. */ 5527 5528 #ifdef __STDC__ 5529 # include <limits.h> 5530 #else 5531 # include <assert.h> 5532 #endif 5533 5534 #undef $ac_func 5535 4041 5536 /* Override any gcc2 internal prototype to avoid an error. */ 4042 5537 #ifdef __cplusplus 4043 5538 extern "C" 5539 { 4044 5540 #endif 4045 5541 /* We use char because int might match the return type of a gcc2 4046 5542 builtin and then its argument prototype would still apply. */ 4047 5543 char $ac_func (); 4048 char (*f) ();4049 4050 int4051 main ()4052 {4053 5544 /* The GNU C library defines this for functions which it implements 4054 5545 to always fail with ENOSYS. Some functions are actually named … … 4057 5548 choke me 4058 5549 #else 4059 f= $ac_func;5550 char (*f) () = $ac_func; 4060 5551 #endif 4061 5552 #ifdef __cplusplus 5553 } 5554 #endif 5555 5556 int 5557 main () 5558 { 5559 return f != $ac_func; 4062 5560 ; 4063 5561 return 0; … … 4065 5563 _ACEOF 4066 5564 rm -f conftest.$ac_objext conftest$ac_exeext 4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5 4068 (eval $ac_link) 2>&5 4069 ac_status=$? 4070 echo "$as_me:4070: \$? = $ac_status" >&5 5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5566 (eval $ac_link) 2>conftest.er1 5567 ac_status=$? 5568 grep -v '^ *+' conftest.er1 >conftest.err 5569 rm -f conftest.er1 5570 cat conftest.err >&5 5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 5572 (exit $ac_status); } && 4072 { ac_try='test -s conftest$ac_exeext' 4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:4076: \$? = $ac_status" >&5 5573 { ac_try='test -z "$ac_c_werror_flag" 5574 || test ! -s conftest.err' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; } && 5580 { ac_try='test -s conftest$ac_exeext' 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5582 (eval $ac_try) 2>&5 5583 ac_status=$? 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 5585 (exit $ac_status); }; }; then 4078 eval "$a c_ac_var=yes"5586 eval "$as_ac_var=yes" 4079 5587 else 4080 5588 echo "$as_me: failed program was:" >&5 4081 cat conftest.$ac_ext >&5 4082 eval "$ac_ac_var=no" 4083 fi 4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4085 fi 4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5 4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4089 cat >>confdefs.h <<EOF 4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4091 EOF 4092 4093 echo "$as_me:4093: checking for _doprnt" >&5 5589 sed 's/^/| /' conftest.$ac_ext >&5 5590 5591 eval "$as_ac_var=no" 5592 fi 5593 rm -f conftest.err conftest.$ac_objext \ 5594 conftest$ac_exeext conftest.$ac_ext 5595 fi 5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5598 if test `eval echo '${'$as_ac_var'}'` = yes; then 5599 cat >>confdefs.h <<_ACEOF 5600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5601 _ACEOF 5602 5603 echo "$as_me:$LINENO: checking for _doprnt" >&5 4094 5604 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4095 5605 if test "${ac_cv_func__doprnt+set}" = set; then … … 4097 5607 else 4098 5608 cat >conftest.$ac_ext <<_ACEOF 4099 #line 4099 "configure" 4100 #include "confdefs.h" 5609 /* confdefs.h. */ 5610 _ACEOF 5611 cat confdefs.h >>conftest.$ac_ext 5612 cat >>conftest.$ac_ext <<_ACEOF 5613 /* end confdefs.h. */ 5614 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5615 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5616 #define _doprnt innocuous__doprnt 5617 4101 5618 /* System header to define __stub macros and hopefully few prototypes, 4102 which can conflict with char _doprnt (); below. */ 4103 #include <assert.h> 5619 which can conflict with char _doprnt (); below. 5620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5621 <limits.h> exists even on freestanding compilers. */ 5622 5623 #ifdef __STDC__ 5624 # include <limits.h> 5625 #else 5626 # include <assert.h> 5627 #endif 5628 5629 #undef _doprnt 5630 4104 5631 /* Override any gcc2 internal prototype to avoid an error. */ 4105 5632 #ifdef __cplusplus 4106 5633 extern "C" 5634 { 4107 5635 #endif 4108 5636 /* We use char because int might match the return type of a gcc2 4109 5637 builtin and then its argument prototype would still apply. */ 4110 5638 char _doprnt (); 4111 char (*f) ();4112 4113 int4114 main ()4115 {4116 5639 /* The GNU C library defines this for functions which it implements 4117 5640 to always fail with ENOSYS. Some functions are actually named … … 4120 5643 choke me 4121 5644 #else 4122 f= _doprnt;5645 char (*f) () = _doprnt; 4123 5646 #endif 4124 5647 #ifdef __cplusplus 5648 } 5649 #endif 5650 5651 int 5652 main () 5653 { 5654 return f != _doprnt; 4125 5655 ; 4126 5656 return 0; … … 4128 5658 _ACEOF 4129 5659 rm -f conftest.$ac_objext conftest$ac_exeext 4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5 4131 (eval $ac_link) 2>&5 4132 ac_status=$? 4133 echo "$as_me:4133: \$? = $ac_status" >&5 5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5661 (eval $ac_link) 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4134 5667 (exit $ac_status); } && 4135 { ac_try='test -s conftest$ac_exeext' 4136 { (eval echo "$as_me:4136: \"$ac_try\"") >&5 4137 (eval $ac_try) 2>&5 4138 ac_status=$? 4139 echo "$as_me:4139: \$? = $ac_status" >&5 5668 { ac_try='test -z "$ac_c_werror_flag" 5669 || test ! -s conftest.err' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; } && 5675 { ac_try='test -s conftest$ac_exeext' 5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5677 (eval $ac_try) 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4140 5680 (exit $ac_status); }; }; then 4141 5681 ac_cv_func__doprnt=yes 4142 5682 else 4143 5683 echo "$as_me: failed program was:" >&5 4144 cat conftest.$ac_ext >&5 5684 sed 's/^/| /' conftest.$ac_ext >&5 5685 4145 5686 ac_cv_func__doprnt=no 4146 5687 fi 4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4148 fi 4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5 5688 rm -f conftest.err conftest.$ac_objext \ 5689 conftest$ac_exeext conftest.$ac_ext 5690 fi 5691 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 4150 5692 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4151 5693 if test $ac_cv_func__doprnt = yes; then 4152 5694 4153 cat >>confdefs.h <<\ EOF5695 cat >>confdefs.h <<\_ACEOF 4154 5696 #define HAVE_DOPRNT 1 4155 EOF5697 _ACEOF 4156 5698 4157 5699 fi … … 4159 5701 fi 4160 5702 done 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 4161 5713 4162 5714 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize 4163 5715 do 4164 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4165 echo "$as_me: 4165: checking for $ac_func" >&55716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5717 echo "$as_me:$LINENO: checking for $ac_func" >&5 4166 5718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4167 if eval "test \"\${$a c_ac_var+set}\" = set"; then5719 if eval "test \"\${$as_ac_var+set}\" = set"; then 4168 5720 echo $ECHO_N "(cached) $ECHO_C" >&6 4169 5721 else 4170 5722 cat >conftest.$ac_ext <<_ACEOF 4171 #line 4171 "configure" 4172 #include "confdefs.h" 5723 /* confdefs.h. */ 5724 _ACEOF 5725 cat confdefs.h >>conftest.$ac_ext 5726 cat >>conftest.$ac_ext <<_ACEOF 5727 /* end confdefs.h. */ 5728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5730 #define $ac_func innocuous_$ac_func 5731 4173 5732 /* System header to define __stub macros and hopefully few prototypes, 4174 which can conflict with char $ac_func (); below. */ 4175 #include <assert.h> 5733 which can conflict with char $ac_func (); below. 5734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5735 <limits.h> exists even on freestanding compilers. */ 5736 5737 #ifdef __STDC__ 5738 # include <limits.h> 5739 #else 5740 # include <assert.h> 5741 #endif 5742 5743 #undef $ac_func 5744 4176 5745 /* Override any gcc2 internal prototype to avoid an error. */ 4177 5746 #ifdef __cplusplus 4178 5747 extern "C" 5748 { 4179 5749 #endif 4180 5750 /* We use char because int might match the return type of a gcc2 4181 5751 builtin and then its argument prototype would still apply. */ 4182 5752 char $ac_func (); 4183 char (*f) ();4184 4185 int4186 main ()4187 {4188 5753 /* The GNU C library defines this for functions which it implements 4189 5754 to always fail with ENOSYS. Some functions are actually named … … 4192 5757 choke me 4193 5758 #else 4194 f= $ac_func;5759 char (*f) () = $ac_func; 4195 5760 #endif 4196 5761 #ifdef __cplusplus 5762 } 5763 #endif 5764 5765 int 5766 main () 5767 { 5768 return f != $ac_func; 4197 5769 ; 4198 5770 return 0; … … 4200 5772 _ACEOF 4201 5773 rm -f conftest.$ac_objext conftest$ac_exeext 4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5 4203 (eval $ac_link) 2>&5 4204 ac_status=$? 4205 echo "$as_me:4205: \$? = $ac_status" >&5 5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5775 (eval $ac_link) 2>conftest.er1 5776 ac_status=$? 5777 grep -v '^ *+' conftest.er1 >conftest.err 5778 rm -f conftest.er1 5779 cat conftest.err >&5 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 5781 (exit $ac_status); } && 4207 { ac_try='test -s conftest$ac_exeext' 4208 { (eval echo "$as_me:4208: \"$ac_try\"") >&5 4209 (eval $ac_try) 2>&5 4210 ac_status=$? 4211 echo "$as_me:4211: \$? = $ac_status" >&5 5782 { ac_try='test -z "$ac_c_werror_flag" 5783 || test ! -s conftest.err' 5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5785 (eval $ac_try) 2>&5 5786 ac_status=$? 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); }; } && 5789 { ac_try='test -s conftest$ac_exeext' 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5791 (eval $ac_try) 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 5794 (exit $ac_status); }; }; then 4213 eval "$a c_ac_var=yes"5795 eval "$as_ac_var=yes" 4214 5796 else 4215 5797 echo "$as_me: failed program was:" >&5 4216 cat conftest.$ac_ext >&5 4217 eval "$ac_ac_var=no" 4218 fi 4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4220 fi 4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5 4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4224 cat >>confdefs.h <<EOF 4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4226 EOF 5798 sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 eval "$as_ac_var=no" 5801 fi 5802 rm -f conftest.err conftest.$ac_objext \ 5803 conftest$ac_exeext conftest.$ac_ext 5804 fi 5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5807 if test `eval echo '${'$as_ac_var'}'` = yes; then 5808 cat >>confdefs.h <<_ACEOF 5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5810 _ACEOF 4227 5811 4228 5812 fi 4229 5813 done 5814 5815 5816 4230 5817 4231 5818 for ac_func in ftruncate strstr strcasecmp 4232 5819 do 4233 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4234 echo "$as_me: 4234: checking for $ac_func" >&55820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5821 echo "$as_me:$LINENO: checking for $ac_func" >&5 4235 5822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4236 if eval "test \"\${$a c_ac_var+set}\" = set"; then5823 if eval "test \"\${$as_ac_var+set}\" = set"; then 4237 5824 echo $ECHO_N "(cached) $ECHO_C" >&6 4238 5825 else 4239 5826 cat >conftest.$ac_ext <<_ACEOF 4240 #line 4240 "configure" 4241 #include "confdefs.h" 5827 /* confdefs.h. */ 5828 _ACEOF 5829 cat confdefs.h >>conftest.$ac_ext 5830 cat >>conftest.$ac_ext <<_ACEOF 5831 /* end confdefs.h. */ 5832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5834 #define $ac_func innocuous_$ac_func 5835 4242 5836 /* System header to define __stub macros and hopefully few prototypes, 4243 which can conflict with char $ac_func (); below. */ 4244 #include <assert.h> 5837 which can conflict with char $ac_func (); below. 5838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5839 <limits.h> exists even on freestanding compilers. */ 5840 5841 #ifdef __STDC__ 5842 # include <limits.h> 5843 #else 5844 # include <assert.h> 5845 #endif 5846 5847 #undef $ac_func 5848 4245 5849 /* Override any gcc2 internal prototype to avoid an error. */ 4246 5850 #ifdef __cplusplus 4247 5851 extern "C" 5852 { 4248 5853 #endif 4249 5854 /* We use char because int might match the return type of a gcc2 4250 5855 builtin and then its argument prototype would still apply. */ 4251 5856 char $ac_func (); 4252 char (*f) ();4253 4254 int4255 main ()4256 {4257 5857 /* The GNU C library defines this for functions which it implements 4258 5858 to always fail with ENOSYS. Some functions are actually named … … 4261 5861 choke me 4262 5862 #else 4263 f= $ac_func;5863 char (*f) () = $ac_func; 4264 5864 #endif 4265 5865 #ifdef __cplusplus 5866 } 5867 #endif 5868 5869 int 5870 main () 5871 { 5872 return f != $ac_func; 4266 5873 ; 4267 5874 return 0; … … 4269 5876 _ACEOF 4270 5877 rm -f conftest.$ac_objext conftest$ac_exeext 4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5 4272 (eval $ac_link) 2>&5 4273 ac_status=$? 4274 echo "$as_me:4274: \$? = $ac_status" >&5 5878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5879 (eval $ac_link) 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 5885 (exit $ac_status); } && 4276 { ac_try='test -s conftest$ac_exeext' 4277 { (eval echo "$as_me:4277: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:4280: \$? = $ac_status" >&5 5886 { ac_try='test -z "$ac_c_werror_flag" 5887 || test ! -s conftest.err' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; } && 5893 { ac_try='test -s conftest$ac_exeext' 5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5895 (eval $ac_try) 2>&5 5896 ac_status=$? 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 5898 (exit $ac_status); }; }; then 4282 eval "$a c_ac_var=yes"5899 eval "$as_ac_var=yes" 4283 5900 else 4284 5901 echo "$as_me: failed program was:" >&5 4285 cat conftest.$ac_ext >&5 4286 eval "$ac_ac_var=no" 4287 fi 4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4289 fi 4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5 4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4293 cat >>confdefs.h <<EOF 4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4295 EOF 4296 4297 else 4298 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5902 sed 's/^/| /' conftest.$ac_ext >&5 5903 5904 eval "$as_ac_var=no" 5905 fi 5906 rm -f conftest.err conftest.$ac_objext \ 5907 conftest$ac_exeext conftest.$ac_ext 5908 fi 5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5911 if test `eval echo '${'$as_ac_var'}'` = yes; then 5912 cat >>confdefs.h <<_ACEOF 5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5914 _ACEOF 5915 5916 else 5917 case $LIBOBJS in 5918 "$ac_func.$ac_objext" | \ 5919 *" $ac_func.$ac_objext" | \ 5920 "$ac_func.$ac_objext "* | \ 5921 *" $ac_func.$ac_objext "* ) ;; 5922 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5923 esac 5924 4299 5925 fi 4300 5926 done 5927 5928 5929 4301 5930 4302 5931 # *** Custom checking (based on GNU tar configure.in) *** 4303 5932 # --------------------------------------------------------------------------- 4304 echo "$as_me: 4304: checking for HP-UX needing gmalloc" >&55933 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5 4305 5934 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 4306 5935 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 4307 echo "$as_me: 4307: result: yes" >&55936 echo "$as_me:$LINENO: result: yes" >&5 4308 5937 echo "${ECHO_T}yes" >&6 4309 LIBOBJS="$LIBOBJS gmalloc.o" 4310 cat >>confdefs.h <<\EOF 5938 case $LIBOBJS in 5939 "gmalloc.$ac_objext" | \ 5940 *" gmalloc.$ac_objext" | \ 5941 "gmalloc.$ac_objext "* | \ 5942 *" gmalloc.$ac_objext "* ) ;; 5943 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;; 5944 esac 5945 5946 cat >>confdefs.h <<\_ACEOF 4311 5947 #define HAVE_VALLOC 1 4312 EOF4313 4314 else 4315 echo "$as_me: 4315: result: no" >&55948 _ACEOF 5949 5950 else 5951 echo "$as_me:$LINENO: result: no" >&5 4316 5952 echo "${ECHO_T}no" >&6 4317 5953 4318 5954 for ac_func in valloc 4319 5955 do 4320 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4321 echo "$as_me: 4321: checking for $ac_func" >&55956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5957 echo "$as_me:$LINENO: checking for $ac_func" >&5 4322 5958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4323 if eval "test \"\${$a c_ac_var+set}\" = set"; then5959 if eval "test \"\${$as_ac_var+set}\" = set"; then 4324 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 4325 5961 else 4326 5962 cat >conftest.$ac_ext <<_ACEOF 4327 #line 4327 "configure" 4328 #include "confdefs.h" 5963 /* confdefs.h. */ 5964 _ACEOF 5965 cat confdefs.h >>conftest.$ac_ext 5966 cat >>conftest.$ac_ext <<_ACEOF 5967 /* end confdefs.h. */ 5968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5970 #define $ac_func innocuous_$ac_func 5971 4329 5972 /* System header to define __stub macros and hopefully few prototypes, 4330 which can conflict with char $ac_func (); below. */ 4331 #include <assert.h> 5973 which can conflict with char $ac_func (); below. 5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5975 <limits.h> exists even on freestanding compilers. */ 5976 5977 #ifdef __STDC__ 5978 # include <limits.h> 5979 #else 5980 # include <assert.h> 5981 #endif 5982 5983 #undef $ac_func 5984 4332 5985 /* Override any gcc2 internal prototype to avoid an error. */ 4333 5986 #ifdef __cplusplus 4334 5987 extern "C" 5988 { 4335 5989 #endif 4336 5990 /* We use char because int might match the return type of a gcc2 4337 5991 builtin and then its argument prototype would still apply. */ 4338 5992 char $ac_func (); 4339 char (*f) ();4340 4341 int4342 main ()4343 {4344 5993 /* The GNU C library defines this for functions which it implements 4345 5994 to always fail with ENOSYS. Some functions are actually named … … 4348 5997 choke me 4349 5998 #else 4350 f= $ac_func;5999 char (*f) () = $ac_func; 4351 6000 #endif 4352 6001 #ifdef __cplusplus 6002 } 6003 #endif 6004 6005 int 6006 main () 6007 { 6008 return f != $ac_func; 4353 6009 ; 4354 6010 return 0; … … 4356 6012 _ACEOF 4357 6013 rm -f conftest.$ac_objext conftest$ac_exeext 4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5 4359 (eval $ac_link) 2>&5 4360 ac_status=$? 4361 echo "$as_me:4361: \$? = $ac_status" >&5 6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6015 (eval $ac_link) 2>conftest.er1 6016 ac_status=$? 6017 grep -v '^ *+' conftest.er1 >conftest.err 6018 rm -f conftest.er1 6019 cat conftest.err >&5 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 6021 (exit $ac_status); } && 4363 { ac_try='test -s conftest$ac_exeext' 4364 { (eval echo "$as_me:4364: \"$ac_try\"") >&5 4365 (eval $ac_try) 2>&5 4366 ac_status=$? 4367 echo "$as_me:4367: \$? = $ac_status" >&5 6022 { ac_try='test -z "$ac_c_werror_flag" 6023 || test ! -s conftest.err' 6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6025 (eval $ac_try) 2>&5 6026 ac_status=$? 6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 (exit $ac_status); }; } && 6029 { ac_try='test -s conftest$ac_exeext' 6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6031 (eval $ac_try) 2>&5 6032 ac_status=$? 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 6034 (exit $ac_status); }; }; then 4369 eval "$a c_ac_var=yes"6035 eval "$as_ac_var=yes" 4370 6036 else 4371 6037 echo "$as_me: failed program was:" >&5 4372 cat conftest.$ac_ext >&5 4373 eval "$ac_ac_var=no" 4374 fi 4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4376 fi 4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5 4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4380 cat >>confdefs.h <<EOF 4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4382 EOF 6038 sed 's/^/| /' conftest.$ac_ext >&5 6039 6040 eval "$as_ac_var=no" 6041 fi 6042 rm -f conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044 fi 6045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6047 if test `eval echo '${'$as_ac_var'}'` = yes; then 6048 cat >>confdefs.h <<_ACEOF 6049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6050 _ACEOF 4383 6051 4384 6052 fi … … 4387 6055 fi 4388 6056 4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5 6057 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 6058 # a non-standard Path 6059 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5 6060 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6 6061 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 6062 echo "$as_me:$LINENO: result: yes" >&5 6063 echo "${ECHO_T}yes" >&6 6064 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 6065 JNISUFFIX="jnilib" 6066 JNIFLAGS="-dynamiclib -fno-common -single_module" 6067 LDFLAGS="-framework JavaVM" 6068 else 6069 echo "$as_me:$LINENO: result: no" >&5 6070 echo "${ECHO_T}no" >&6 6071 JNIINC="" 6072 JNISUFFIX="so" 6073 JNIFLAGS="-shared" 6074 fi 6075 6076 6077 6078 6079 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 4390 6080 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4391 6081 … … 4394 6084 withval="$with_dmalloc" 4395 6085 if test "$withval" = yes; then 4396 echo "$as_me: 4396: result: yes" >&56086 echo "$as_me:$LINENO: result: yes" >&5 4397 6087 echo "${ECHO_T}yes" >&6 4398 cat >>confdefs.h <<\ EOF6088 cat >>confdefs.h <<\_ACEOF 4399 6089 #define WITH_DMALLOC 1 4400 EOF6090 _ACEOF 4401 6091 4402 6092 LIBS="$LIBS -ldmalloc" 4403 6093 LDFLAGS="$LDFLAGS -g" 4404 6094 else 4405 echo "$as_me: 4405: result: no" >&56095 echo "$as_me:$LINENO: result: no" >&5 4406 6096 echo "${ECHO_T}no" >&6 4407 6097 fi 4408 6098 else 4409 echo "$as_me: 4409: result: no" >&56099 echo "$as_me:$LINENO: result: no" >&5 4410 6100 echo "${ECHO_T}no" >&6 4411 6101 fi; 4412 6102 4413 echo "$as_me: 4413: checking which of rx or regex is wanted" >&56103 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5 4414 6104 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4415 6105 … … 4419 6109 if test "$withval" = yes; then 4420 6110 ac_with_regex=1 4421 echo "$as_me: 4421: result: regex" >&56111 echo "$as_me:$LINENO: result: regex" >&5 4422 6112 echo "${ECHO_T}regex" >&6 4423 cat >>confdefs.h <<\ EOF6113 cat >>confdefs.h <<\_ACEOF 4424 6114 #define WITH_REGEX 1 4425 EOF6115 _ACEOF 4426 6116 4427 6117 LIBOBJS="$LIBOBJS regex.o" … … 4429 6119 fi; 4430 6120 if test -z "$ac_with_regex"; then 4431 echo "$as_me: 4431: result: rx" >&56121 echo "$as_me:$LINENO: result: rx" >&5 4432 6122 echo "${ECHO_T}rx" >&6 4433 echo "$as_me: 4433: checking for re_rx_search" >&56123 echo "$as_me:$LINENO: checking for re_rx_search" >&5 4434 6124 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4435 6125 if test "${ac_cv_func_re_rx_search+set}" = set; then … … 4437 6127 else 4438 6128 cat >conftest.$ac_ext <<_ACEOF 4439 #line 4439 "configure" 4440 #include "confdefs.h" 6129 /* confdefs.h. */ 6130 _ACEOF 6131 cat confdefs.h >>conftest.$ac_ext 6132 cat >>conftest.$ac_ext <<_ACEOF 6133 /* end confdefs.h. */ 6134 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search. 6135 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6136 #define re_rx_search innocuous_re_rx_search 6137 4441 6138 /* System header to define __stub macros and hopefully few prototypes, 4442 which can conflict with char re_rx_search (); below. */ 4443 #include <assert.h> 6139 which can conflict with char re_rx_search (); below. 6140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6141 <limits.h> exists even on freestanding compilers. */ 6142 6143 #ifdef __STDC__ 6144 # include <limits.h> 6145 #else 6146 # include <assert.h> 6147 #endif 6148 6149 #undef re_rx_search 6150 4444 6151 /* Override any gcc2 internal prototype to avoid an error. */ 4445 6152 #ifdef __cplusplus 4446 6153 extern "C" 6154 { 4447 6155 #endif 4448 6156 /* We use char because int might match the return type of a gcc2 4449 6157 builtin and then its argument prototype would still apply. */ 4450 6158 char re_rx_search (); 4451 char (*f) ();4452 4453 int4454 main ()4455 {4456 6159 /* The GNU C library defines this for functions which it implements 4457 6160 to always fail with ENOSYS. Some functions are actually named … … 4460 6163 choke me 4461 6164 #else 4462 f= re_rx_search;6165 char (*f) () = re_rx_search; 4463 6166 #endif 4464 6167 #ifdef __cplusplus 6168 } 6169 #endif 6170 6171 int 6172 main () 6173 { 6174 return f != re_rx_search; 4465 6175 ; 4466 6176 return 0; … … 4468 6178 _ACEOF 4469 6179 rm -f conftest.$ac_objext conftest$ac_exeext 4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5 4471 (eval $ac_link) 2>&5 4472 ac_status=$? 4473 echo "$as_me:4473: \$? = $ac_status" >&5 6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6181 (eval $ac_link) 2>conftest.er1 6182 ac_status=$? 6183 grep -v '^ *+' conftest.er1 >conftest.err 6184 rm -f conftest.er1 6185 cat conftest.err >&5 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 6187 (exit $ac_status); } && 4475 { ac_try='test -s conftest$ac_exeext' 4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5 4477 (eval $ac_try) 2>&5 4478 ac_status=$? 4479 echo "$as_me:4479: \$? = $ac_status" >&5 6188 { ac_try='test -z "$ac_c_werror_flag" 6189 || test ! -s conftest.err' 6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6191 (eval $ac_try) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; } && 6195 { ac_try='test -s conftest$ac_exeext' 6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6197 (eval $ac_try) 2>&5 6198 ac_status=$? 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 6200 (exit $ac_status); }; }; then 4481 6201 ac_cv_func_re_rx_search=yes 4482 6202 else 4483 6203 echo "$as_me: failed program was:" >&5 4484 cat conftest.$ac_ext >&5 6204 sed 's/^/| /' conftest.$ac_ext >&5 6205 4485 6206 ac_cv_func_re_rx_search=no 4486 6207 fi 4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4488 fi 4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5 6208 rm -f conftest.err conftest.$ac_objext \ 6209 conftest$ac_exeext conftest.$ac_ext 6210 fi 6211 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5 4490 6212 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4491 6213 if test $ac_cv_func_re_rx_search = yes; then … … 4497 6219 fi 4498 6220 6221 4499 6222 # --------------------------------------------------------------------------- 4500 6223 if test "$ac_cv_func_alloca" = 'no'; then 4501 LIBOBJS="$LIBOBJS xmalloc.o error.o" 4502 fi 6224 case $LIBOBJS in 6225 "xmalloc.$ac_objext" | \ 6226 *" xmalloc.$ac_objext" | \ 6227 "xmalloc.$ac_objext "* | \ 6228 *" xmalloc.$ac_objext "* ) ;; 6229 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;; 6230 esac 6231 6232 case $LIBOBJS in 6233 "error.$ac_objext" | \ 6234 *" error.$ac_objext" | \ 6235 "error.$ac_objext "* | \ 6236 *" error.$ac_objext "* ) ;; 6237 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 6238 esac 6239 6240 fi 6241 4503 6242 4504 6243 # --------------------------------------------------------------------------- 4505 6244 4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"4507 ac_config_commands="$ac_config_commands default"6245 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile" 6246 ac_config_commands="$ac_config_commands default" 4508 6247 cat >confcache <<\_ACEOF 4509 6248 # This file is a shell script that caches the results of configure … … 4516 6255 # the --recheck option to rerun configure. 4517 6256 # 4518 # `ac_cv_env_foo' variables (set or unset) will be overrid en when6257 # `ac_cv_env_foo' variables (set or unset) will be overridden when 4519 6258 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4520 6259 # following values. … … 4534 6273 # substitution turns \\\\ into \\, and sed turns \\ into \). 4535 6274 sed -n \ 4536 4537 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"6275 "s/'/'\\\\''/g; 6276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4538 6277 ;; 4539 6278 *) 4540 6279 # `set' quotes correctly as required by POSIX, so do not add quotes. 4541 6280 sed -n \ 4542 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"6281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4543 6282 ;; 4544 6283 esac; … … 4551 6290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4552 6291 : end' >>confcache 4553 if cmp -s $cache_file confcache; then :; else6292 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4554 6293 if test -w $cache_file; then 4555 6294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" … … 4570 6309 # (actually we leave an empty line to preserve line numbers). 4571 6310 if test "x$srcdir" = x.; then 4572 ac_vpsub='/^[ ]*VPATH[]*=/{6311 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4573 6312 s/:*\$(srcdir):*/:/; 4574 6313 s/:*\${srcdir}:*/:/; 4575 6314 s/:*@srcdir@:*/:/; 4576 s/^\([^=]*=[ 6315 s/^\([^=]*=[ ]*\):*/\1/; 4577 6316 s/:*$//; 4578 s/^[^=]*=[ 6317 s/^[^=]*=[ ]*$//; 4579 6318 }' 4580 6319 fi 4581 6320 4582 6321 DEFS=-DHAVE_CONFIG_H 6322 6323 ac_libobjs= 6324 ac_ltlibobjs= 6325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6326 # 1. Remove the extension, and $U if already installed. 6327 ac_i=`echo "$ac_i" | 6328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6329 # 2. Add them. 6330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6332 done 6333 LIBOBJS=$ac_libobjs 6334 6335 LTLIBOBJS=$ac_ltlibobjs 6336 6337 4583 6338 4584 6339 : ${CONFIG_STATUS=./config.status} 4585 6340 ac_clean_files_save=$ac_clean_files 4586 6341 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4587 { echo "$as_me: 4587: creating $CONFIG_STATUS" >&56342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4588 6343 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4589 6344 cat >$CONFIG_STATUS <<_ACEOF 4590 6345 #! $SHELL 4591 # Generated automatically by configure.6346 # Generated by $as_me. 4592 6347 # Run this file to recreate the current configuration. 4593 6348 # Compiler output produced by configure, useful for debugging … … 4595 6350 4596 6351 debug=false 6352 ac_cs_recheck=false 6353 ac_cs_silent=false 4597 6354 SHELL=\${CONFIG_SHELL-$SHELL} 4598 ac_cs_invocation="\$0 \$@"4599 4600 6355 _ACEOF 4601 6356 4602 6357 cat >>$CONFIG_STATUS <<\_ACEOF 6358 ## --------------------- ## 6359 ## M4sh Initialization. ## 6360 ## --------------------- ## 6361 4603 6362 # Be Bourne compatible 4604 6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4605 6364 emulate sh 4606 6365 NULLCMD=: 6366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6367 # is contrary to our usage. Disable this feature. 6368 alias -g '${1+"$@"}'='"$@"' 4607 6369 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4608 6370 set -o posix 4609 6371 fi 6372 DUALCASE=1; export DUALCASE # for MKS sh 6373 6374 # Support unset when possible. 6375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6376 as_unset=unset 6377 else 6378 as_unset=false 6379 fi 6380 6381 6382 # Work around bugs in pre-3.0 UWIN ksh. 6383 $as_unset ENV MAIL MAILPATH 6384 PS1='$ ' 6385 PS2='> ' 6386 PS4='+ ' 6387 6388 # NLS nuisances. 6389 for as_var in \ 6390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6392 LC_TELEPHONE LC_TIME 6393 do 6394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6395 eval $as_var=C; export $as_var 6396 else 6397 $as_unset $as_var 6398 fi 6399 done 6400 6401 # Required to use basename. 6402 if expr a : '\(a\)' >/dev/null 2>&1; then 6403 as_expr=expr 6404 else 6405 as_expr=false 6406 fi 6407 6408 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6409 as_basename=basename 6410 else 6411 as_basename=false 6412 fi 6413 4610 6414 4611 6415 # Name of the executable. 4612 as_me=`echo "$0" |sed 's,.*[\\/],,'` 6416 as_me=`$as_basename "$0" || 6417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6418 X"$0" : 'X\(//\)$' \| \ 6419 X"$0" : 'X\(/\)$' \| \ 6420 . : '\(.\)' 2>/dev/null || 6421 echo X/"$0" | 6422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6423 /^X\/\(\/\/\)$/{ s//\1/; q; } 6424 /^X\/\(\/\).*/{ s//\1/; q; } 6425 s/.*/./; q'` 6426 6427 6428 # PATH needs CR, and LINENO needs CR and PATH. 6429 # Avoid depending upon Character Ranges. 6430 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6433 as_cr_digits='0123456789' 6434 as_cr_alnum=$as_cr_Letters$as_cr_digits 6435 6436 # The user is always right. 6437 if test "${PATH_SEPARATOR+set}" != set; then 6438 echo "#! /bin/sh" >conf$$.sh 6439 echo "exit 0" >>conf$$.sh 6440 chmod +x conf$$.sh 6441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6442 PATH_SEPARATOR=';' 6443 else 6444 PATH_SEPARATOR=: 6445 fi 6446 rm -f conf$$.sh 6447 fi 6448 6449 6450 as_lineno_1=$LINENO 6451 as_lineno_2=$LINENO 6452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6453 test "x$as_lineno_1" != "x$as_lineno_2" && 6454 test "x$as_lineno_3" = "x$as_lineno_2" || { 6455 # Find who we are. Look in the path if we contain no path at all 6456 # relative or not. 6457 case $0 in 6458 *[\\/]* ) as_myself=$0 ;; 6459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460 for as_dir in $PATH 6461 do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6465 done 6466 6467 ;; 6468 esac 6469 # We did not find ourselves, most probably we were run as `sh COMMAND' 6470 # in which case we are not to be found in the path. 6471 if test "x$as_myself" = x; then 6472 as_myself=$0 6473 fi 6474 if test ! -f "$as_myself"; then 6475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6476 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6477 { (exit 1); exit 1; }; } 6478 fi 6479 case $CONFIG_SHELL in 6480 '') 6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6483 do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for as_base in sh bash ksh sh5; do 6487 case $as_dir in 6488 /*) 6489 if ("$as_dir/$as_base" -c ' 6490 as_lineno_1=$LINENO 6491 as_lineno_2=$LINENO 6492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6493 test "x$as_lineno_1" != "x$as_lineno_2" && 6494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6495 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6496 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6497 CONFIG_SHELL=$as_dir/$as_base 6498 export CONFIG_SHELL 6499 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6500 fi;; 6501 esac 6502 done 6503 done 6504 ;; 6505 esac 6506 6507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6508 # uniformly replaced by the line number. The first 'sed' inserts a 6509 # line-number line before each line; the second 'sed' does the real 6510 # work. The second script uses 'N' to pair each line-number line 6511 # with the numbered line, and appends trailing '-' during 6512 # substitution so that $LINENO is not a special case at line end. 6513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6515 sed '=' <$as_myself | 6516 sed ' 6517 N 6518 s,$,-, 6519 : loop 6520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6521 t loop 6522 s,-$,, 6523 s,^['$as_cr_digits']*\n,, 6524 ' >$as_me.lineno && 6525 chmod +x $as_me.lineno || 6526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6527 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6528 { (exit 1); exit 1; }; } 6529 6530 # Don't try to exec as it changes $[0], causing all sort of problems 6531 # (the dirname of $[0] is not the place where we might find the 6532 # original and so on. Autoconf is especially sensible to this). 6533 . ./$as_me.lineno 6534 # Exit status is that of the last command. 6535 exit 6536 } 6537 6538 6539 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6540 *c*,-n*) ECHO_N= ECHO_C=' 6541 ' ECHO_T=' ' ;; 6542 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6543 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6544 esac 4613 6545 4614 6546 if expr a : '\(a\)' >/dev/null 2>&1; then … … 4636 6568 rm -f conf$$ conf$$.exe conf$$.file 4637 6569 6570 if mkdir -p . 2>/dev/null; then 6571 as_mkdir_p=: 6572 else 6573 test -d ./-p && rmdir ./-p 6574 as_mkdir_p=false 6575 fi 6576 4638 6577 as_executable_p="test -f" 4639 6578 4640 # Support unset when possible. 4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4642 as_unset=unset 4643 else 4644 as_unset=false 4645 fi 4646 4647 # NLS nuisances. 4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 6579 # Sed expression to map a string onto a valid CPP name. 6580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6581 6582 # Sed expression to map a string onto a valid variable name. 6583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6584 4656 6585 4657 6586 # IFS … … 4662 6591 4663 6592 # CDPATH. 4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }6593 $as_unset CDPATH 4665 6594 4666 6595 exec 6>&1 4667 6596 6597 # Open the log real soon, to keep \$[0] and so on meaningful, and to 6598 # report actual input values of CONFIG_FILES etc. instead of their 6599 # values after options handling. Logging --version etc. is OK. 6600 exec 5>>config.log 6601 { 6602 echo 6603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6604 ## Running $as_me. ## 6605 _ASBOX 6606 } >&5 6607 cat >&5 <<_CSEOF 6608 6609 This file was extended by $as_me, which was 6610 generated by GNU Autoconf 2.59. Invocation command line was 6611 6612 CONFIG_FILES = $CONFIG_FILES 6613 CONFIG_HEADERS = $CONFIG_HEADERS 6614 CONFIG_LINKS = $CONFIG_LINKS 6615 CONFIG_COMMANDS = $CONFIG_COMMANDS 6616 $ $0 $@ 6617 6618 _CSEOF 6619 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6620 echo >&5 4668 6621 _ACEOF 4669 6622 … … 4685 6638 fi 4686 6639 4687 cat >>$CONFIG_STATUS <<\ EOF6640 cat >>$CONFIG_STATUS <<\_ACEOF 4688 6641 4689 6642 ac_cs_usage="\ … … 4695 6648 -h, --help print this help, then exit 4696 6649 -V, --version print version number, then exit 6650 -q, --quiet do not print progress messages 4697 6651 -d, --debug don't remove temporary files 4698 6652 --recheck update $as_me by reconfiguring in the same conditions 4699 6653 --file=FILE[:TEMPLATE] 4700 6654 instantiate the configuration file FILE 4701 6655 --header=FILE[:TEMPLATE] 4702 6656 instantiate the configuration header FILE 4703 6657 4704 6658 Configuration files: … … 4712 6666 4713 6667 Report bugs to <[email protected]>." 4714 EOF4715 4716 cat >>$CONFIG_STATUS << EOF6668 _ACEOF 6669 6670 cat >>$CONFIG_STATUS <<_ACEOF 4717 6671 ac_cs_version="\\ 4718 6672 config.status 4719 configured by $0, generated by GNU Autoconf 2.5 0,6673 configured by $0, generated by GNU Autoconf 2.59, 4720 6674 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4721 6675 4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4723 Free Software Foundation, Inc. 6676 Copyright (C) 2003 Free Software Foundation, Inc. 4724 6677 This config.status script is free software; the Free Software Foundation 4725 6678 gives unlimited permission to copy, distribute and modify it." 4726 6679 srcdir=$srcdir 4727 6680 INSTALL="$INSTALL" 4728 EOF4729 4730 cat >>$CONFIG_STATUS <<\ EOF6681 _ACEOF 6682 6683 cat >>$CONFIG_STATUS <<\_ACEOF 4731 6684 # If no file are specified by the user, then we need to provide default 4732 6685 # value. By we need to know if files were specified by the user. … … 4738 6691 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4739 6692 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4740 shift 4741 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 4742 shift 6693 ac_shift=: 4743 6694 ;; 4744 -*);; 6695 -*) 6696 ac_option=$1 6697 ac_optarg=$2 6698 ac_shift=shift 6699 ;; 4745 6700 *) # This is not an option, so the user has probably given explicit 4746 6701 # arguments. 6702 ac_option=$1 4747 6703 ac_need_defaults=false;; 4748 6704 esac 4749 6705 4750 case $ 1in6706 case $ac_option in 4751 6707 # Handling of the options. 4752 EOF4753 cat >>$CONFIG_STATUS << EOF6708 _ACEOF 6709 cat >>$CONFIG_STATUS <<\_ACEOF 4754 6710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4755 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 4756 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 4757 EOF 4758 cat >>$CONFIG_STATUS <<\EOF 6711 ac_cs_recheck=: ;; 4759 6712 --version | --vers* | -V ) 4760 6713 echo "$ac_cs_version"; exit 0 ;; 4761 6714 --he | --h) 4762 6715 # Conflict between --help and --header 4763 { { echo "$as_me: 4763: error: ambiguous option: $16716 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4764 6717 Try \`$0 --help' for more information." >&5 4765 6718 echo "$as_me: error: ambiguous option: $1 … … 4771 6724 debug=: ;; 4772 6725 --file | --fil | --fi | --f ) 4773 shift4774 CONFIG_FILES="$CONFIG_FILES $ 1"6726 $ac_shift 6727 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4775 6728 ac_need_defaults=false;; 4776 6729 --header | --heade | --head | --hea ) 4777 shift4778 CONFIG_HEADERS="$CONFIG_HEADERS $ 1"6730 $ac_shift 6731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4779 6732 ac_need_defaults=false;; 4780 4781 # Handling of arguments. 4782 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4783 'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 4784 'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 4785 'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 4786 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 4787 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 4788 'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 4789 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 4790 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6734 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6735 ac_cs_silent=: ;; 4791 6736 4792 6737 # This is an error. 4793 -*) { { echo "$as_me: 4793: error: unrecognized option: $16738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4794 6739 Try \`$0 --help' for more information." >&5 4795 6740 echo "$as_me: error: unrecognized option: $1 4796 6741 Try \`$0 --help' for more information." >&2;} 4797 6742 { (exit 1); exit 1; }; } ;; 4798 *) { { echo "$as_me:4798: error: invalid argument: $1" >&5 4799 echo "$as_me: error: invalid argument: $1" >&2;} 4800 { (exit 1); exit 1; }; };; 6743 6744 *) ac_config_targets="$ac_config_targets $1" ;; 6745 4801 6746 esac 4802 6747 shift 4803 6748 done 4804 6749 4805 exec 5>>config.log 4806 cat >&5 << _ACEOF 4807 4808 ## ----------------------- ## 4809 ## Running config.status. ## 4810 ## ----------------------- ## 4811 4812 This file was extended by $as_me 2.50, executed with 4813 > $ac_cs_invocation 4814 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4815 4816 _ACEOF 4817 EOF 4818 4819 cat >>$CONFIG_STATUS <<\EOF 6750 ac_configure_extra_args= 6751 6752 if $ac_cs_silent; then 6753 exec 6>/dev/null 6754 ac_configure_extra_args="$ac_configure_extra_args --silent" 6755 fi 6756 6757 _ACEOF 6758 cat >>$CONFIG_STATUS <<_ACEOF 6759 if \$ac_cs_recheck; then 6760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6762 fi 6763 6764 _ACEOF 6765 6766 6767 6768 6769 6770 cat >>$CONFIG_STATUS <<\_ACEOF 6771 for ac_config_target in $ac_config_targets 6772 do 6773 case "$ac_config_target" in 6774 # Handling of arguments. 6775 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6776 "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 6777 "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 6778 "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 6779 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 6780 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 6781 "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 6782 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 6783 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6786 { (exit 1); exit 1; }; };; 6787 esac 6788 done 6789 4820 6790 # If the user did not use the arguments to specify the items to instantiate, 4821 6791 # then the envvar interface is used. Set only those that are not. … … 4828 6798 fi 4829 6799 6800 # Have a temporary directory for convenience. Make it in the build tree 6801 # simply because there is no reason to put it here, and in addition, 6802 # creating and moving files from /tmp can sometimes cause problems. 4830 6803 # Create a temporary directory, and hook for its removal unless debugging. 4831 6804 $debug || 4832 6805 { 4833 6806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4834 trap '{ (exit $?); exit $?; }' 1 2 13 156807 trap '{ (exit 1); exit 1; }' 1 2 13 15 4835 6808 } 4836 6809 4837 6810 # Create a (secure) tmp directory for tmp files. 4838 : ${TMPDIR=/tmp} 6811 4839 6812 { 4840 tmp=`(umask 077 && mktemp -d -q " $TMPDIR/csXXXXXX") 2>/dev/null` &&6813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4841 6814 test -n "$tmp" && test -d "$tmp" 4842 6815 } || 4843 6816 { 4844 tmp= $TMPDIR/cs$$-$RANDOM6817 tmp=./confstat$$-$RANDOM 4845 6818 (umask 077 && mkdir $tmp) 4846 6819 } || 4847 6820 { 4848 echo "$me: cannot create a temporary directory in $TMPDIR" >&26821 echo "$me: cannot create a temporary directory in ." >&2 4849 6822 { (exit 1); exit 1; } 4850 6823 } 4851 6824 4852 EOF4853 4854 cat >>$CONFIG_STATUS << EOF6825 _ACEOF 6826 6827 cat >>$CONFIG_STATUS <<_ACEOF 4855 6828 4856 6829 # … … 4865 6838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4866 6839 s,@SHELL@,$SHELL,;t t 6840 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6841 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6842 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6843 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6844 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6845 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4867 6846 s,@exec_prefix@,$exec_prefix,;t t 4868 6847 s,@prefix@,$prefix,;t t … … 4880 6859 s,@infodir@,$infodir,;t t 4881 6860 s,@mandir@,$mandir,;t t 4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6861 s,@build_alias@,$build_alias,;t t 6862 s,@host_alias@,$host_alias,;t t 6863 s,@target_alias@,$target_alias,;t t 6864 s,@DEFS@,$DEFS,;t t 4887 6865 s,@ECHO_C@,$ECHO_C,;t t 4888 6866 s,@ECHO_N@,$ECHO_N,;t t 4889 6867 s,@ECHO_T@,$ECHO_T,;t t 4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t4891 s,@DEFS@,$DEFS,;t t4892 6868 s,@LIBS@,$LIBS,;t t 4893 6869 s,@PACKAGE@,$PACKAGE,;t t … … 4913 6889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 4914 6890 s,@CPP@,$CPP,;t t 6891 s,@EGREP@,$EGREP,;t t 4915 6892 s,@U@,$U,;t t 4916 6893 s,@ANSI2KNR@,$ANSI2KNR,;t t 4917 6894 s,@ALLOCA@,$ALLOCA,;t t 4918 6895 s,@LIBOBJS@,$LIBOBJS,;t t 6896 s,@JNIINC@,$JNIINC,;t t 6897 s,@JNISUFFIX@,$JNISUFFIX,;t t 6898 s,@JNIFLAGS@,$JNIFLAGS,;t t 6899 s,@LIBOBJS@,$LIBOBJS,;t t 6900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4919 6901 CEOF 4920 6902 4921 EOF4922 4923 cat >>$CONFIG_STATUS <<\ EOF6903 _ACEOF 6904 6905 cat >>$CONFIG_STATUS <<\_ACEOF 4924 6906 # Split the substitutions into bite-sized pieces for seds with 4925 6907 # small command number limits, like on Digital OSF/1 and HP-UX. … … 4946 6928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4947 6929 if test -z "$ac_sed_cmds"; then 4948 6930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4949 6931 else 4950 6932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4951 6933 fi 4952 6934 ac_sed_frag=`expr $ac_sed_frag + 1` … … 4960 6942 fi # test -n "$CONFIG_FILES" 4961 6943 4962 EOF4963 cat >>$CONFIG_STATUS <<\ EOF6944 _ACEOF 6945 cat >>$CONFIG_STATUS <<\_ACEOF 4964 6946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4965 6947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4966 6948 case $ac_file in 4967 6949 - | *:- | *:-:* ) # input from stdin 4968 4969 4970 6950 cat >$tmp/stdin 6951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4971 6953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4972 6954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4973 6955 * ) ac_file_in=$ac_file.in ;; 4974 6956 esac 4975 6957 4976 6958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4977 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4978 X"$ac_file" : 'X\(//\)[^/]' \| \ 4979 X"$ac_file" : 'X\(//\)$' \| \ 4980 X"$ac_file" : 'X\(/\)' \| \ 4981 . : '\(.\)' 2>/dev/null || 6959 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6961 X"$ac_file" : 'X\(//\)[^/]' \| \ 6962 X"$ac_file" : 'X\(//\)$' \| \ 6963 X"$ac_file" : 'X\(/\)' \| \ 6964 . : '\(.\)' 2>/dev/null || 4982 6965 echo X"$ac_file" | 4983 6966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 4986 6969 /^X\(\/\).*/{ s//\1/; q; } 4987 6970 s/.*/./; q'` 4988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4989 { case "$ac_dir" in 4990 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 4991 *) as_incr_dir=.;; 6971 { if $as_mkdir_p; then 6972 mkdir -p "$ac_dir" 6973 else 6974 as_dir="$ac_dir" 6975 as_dirs= 6976 while test ! -d "$as_dir"; do 6977 as_dirs="$as_dir $as_dirs" 6978 as_dir=`(dirname "$as_dir") 2>/dev/null || 6979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6980 X"$as_dir" : 'X\(//\)[^/]' \| \ 6981 X"$as_dir" : 'X\(//\)$' \| \ 6982 X"$as_dir" : 'X\(/\)' \| \ 6983 . : '\(.\)' 2>/dev/null || 6984 echo X"$as_dir" | 6985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6986 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6987 /^X\(\/\/\)$/{ s//\1/; q; } 6988 /^X\(\/\).*/{ s//\1/; q; } 6989 s/.*/./; q'` 6990 done 6991 test ! -n "$as_dirs" || mkdir $as_dirs 6992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6994 { (exit 1); exit 1; }; }; } 6995 6996 ac_builddir=. 6997 6998 if test "$ac_dir" != .; then 6999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7000 # A "../" for each directory in $ac_dir_suffix. 7001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7002 else 7003 ac_dir_suffix= ac_top_builddir= 7004 fi 7005 7006 case $srcdir in 7007 .) # No --srcdir option. We are building in place. 7008 ac_srcdir=. 7009 if test -z "$ac_top_builddir"; then 7010 ac_top_srcdir=. 7011 else 7012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7013 fi ;; 7014 [\\/]* | ?:[\\/]* ) # Absolute path. 7015 ac_srcdir=$srcdir$ac_dir_suffix; 7016 ac_top_srcdir=$srcdir ;; 7017 *) # Relative path. 7018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7019 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4992 7020 esac 4993 as_dummy="$ac_dir" 4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 4995 case $as_mkdir_dir in 4996 # Skip DOS drivespec 4997 ?:) as_incr_dir=$as_mkdir_dir ;; 4998 *) 4999 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5000 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5001 ;; 5002 esac 5003 done; } 5004 5005 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5006 # A "../" for each directory in $ac_dir_suffix. 5007 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5008 else 5009 ac_dir_suffix= ac_dots= 5010 fi 5011 5012 case $srcdir in 5013 .) ac_srcdir=. 5014 if test -z "$ac_dots"; then 5015 ac_top_srcdir=. 5016 else 5017 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5018 fi ;; 5019 [\\/]* | ?:[\\/]* ) 5020 ac_srcdir=$srcdir$ac_dir_suffix; 5021 ac_top_srcdir=$srcdir ;; 5022 *) # Relative path. 5023 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5024 ac_top_srcdir=$ac_dots$srcdir ;; 5025 esac 7021 7022 # Do not use `cd foo && pwd` to compute absolute paths, because 7023 # the directories may not exist. 7024 case `pwd` in 7025 .) ac_abs_builddir="$ac_dir";; 7026 *) 7027 case "$ac_dir" in 7028 .) ac_abs_builddir=`pwd`;; 7029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7030 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7031 esac;; 7032 esac 7033 case $ac_abs_builddir in 7034 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7035 *) 7036 case ${ac_top_builddir}. in 7037 .) ac_abs_top_builddir=$ac_abs_builddir;; 7038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7040 esac;; 7041 esac 7042 case $ac_abs_builddir in 7043 .) ac_abs_srcdir=$ac_srcdir;; 7044 *) 7045 case $ac_srcdir in 7046 .) ac_abs_srcdir=$ac_abs_builddir;; 7047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7049 esac;; 7050 esac 7051 case $ac_abs_builddir in 7052 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7053 *) 7054 case $ac_top_srcdir in 7055 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7058 esac;; 7059 esac 7060 5026 7061 5027 7062 case $INSTALL in 5028 7063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5029 *) ac_INSTALL=$ac_ dots$INSTALL ;;7064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5030 7065 esac 5031 7066 5032 7067 if test x"$ac_file" != x-; then 5033 { echo "$as_me: 5033: creating $ac_file" >&57068 { echo "$as_me:$LINENO: creating $ac_file" >&5 5034 7069 echo "$as_me: creating $ac_file" >&6;} 5035 7070 rm -f "$ac_file" … … 5037 7072 # Let's still pretend it is `configure' which instantiates (i.e., don't 5038 7073 # use $as_me), people would be surprised to read: 5039 # /* config.h. Generated automatically by config.status. */ 5040 configure_input="Generated automatically from `echo $ac_file_in | 5041 sed 's,.*/,,'` by configure." 7074 # /* config.h. Generated by config.status. */ 7075 if test x"$ac_file" = x-; then 7076 configure_input= 7077 else 7078 configure_input="$ac_file. " 7079 fi 7080 configure_input=$configure_input"Generated from `echo $ac_file_in | 7081 sed 's,.*/,,'` by configure." 5042 7082 5043 7083 # First look for the input files in the build tree, otherwise in the … … 5048 7088 -) echo $tmp/stdin ;; 5049 7089 [\\/$]*) 5050 5051 test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&57090 # Absolute (can't be DOS-style, as IFS=:) 7091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5052 7092 echo "$as_me: error: cannot find input file: $f" >&2;} 5053 7093 { (exit 1); exit 1; }; } 5054 echo $f;;7094 echo "$f";; 5055 7095 *) # Relative 5056 5057 5058 echo $f 5059 5060 5061 echo $srcdir/$f 5062 5063 5064 { { echo "$as_me:5064: error: cannot find input file: $f" >&57096 if test -f "$f"; then 7097 # Build tree 7098 echo "$f" 7099 elif test -f "$srcdir/$f"; then 7100 # Source tree 7101 echo "$srcdir/$f" 7102 else 7103 # /dev/null tree 7104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5065 7105 echo "$as_me: error: cannot find input file: $f" >&2;} 5066 7106 { (exit 1); exit 1; }; } 5067 7107 fi;; 5068 7108 esac 5069 7109 done` || { (exit 1); exit 1; } 5070 EOF5071 cat >>$CONFIG_STATUS << EOF7110 _ACEOF 7111 cat >>$CONFIG_STATUS <<_ACEOF 5072 7112 sed "$ac_vpsub 5073 7113 $extrasub 5074 EOF5075 cat >>$CONFIG_STATUS <<\ EOF7114 _ACEOF 7115 cat >>$CONFIG_STATUS <<\_ACEOF 5076 7116 :t 5077 7117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5078 7118 s,@configure_input@,$configure_input,;t t 5079 7119 s,@srcdir@,$ac_srcdir,;t t 7120 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5080 7121 s,@top_srcdir@,$ac_top_srcdir,;t t 7122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7123 s,@builddir@,$ac_builddir,;t t 7124 s,@abs_builddir@,$ac_abs_builddir,;t t 7125 s,@top_builddir@,$ac_top_builddir,;t t 7126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5081 7127 s,@INSTALL@,$ac_INSTALL,;t t 5082 7128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out … … 5090 7136 5091 7137 done 5092 EOF5093 cat >>$CONFIG_STATUS <<\ EOF7138 _ACEOF 7139 cat >>$CONFIG_STATUS <<\_ACEOF 5094 7140 5095 7141 # … … 5101 7147 # 5102 7148 # ac_d sets the value in "#define NAME VALUE" lines. 5103 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][]*\)'5104 ac_dB='[ 7149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7150 ac_dB='[ ].*$,\1#\2' 5105 7151 ac_dC=' ' 5106 7152 ac_dD=',;t' 5107 7153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5108 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'7154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5109 7155 ac_uB='$,\1#\2define\3' 5110 7156 ac_uC=' ' … … 5115 7161 case $ac_file in 5116 7162 - | *:- | *:-:* ) # input from stdin 5117 5118 5119 7163 cat >$tmp/stdin 7164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5120 7166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5121 7167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5122 7168 * ) ac_file_in=$ac_file.in ;; 5123 7169 esac 5124 7170 5125 test x"$ac_file" != x- && { echo "$as_me: 5125: creating $ac_file" >&57171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5126 7172 echo "$as_me: creating $ac_file" >&6;} 5127 7173 … … 5133 7179 -) echo $tmp/stdin ;; 5134 7180 [\\/$]*) 5135 5136 test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&57181 # Absolute (can't be DOS-style, as IFS=:) 7182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5137 7183 echo "$as_me: error: cannot find input file: $f" >&2;} 5138 7184 { (exit 1); exit 1; }; } 5139 echo $f;; 7185 # Do quote $f, to prevent DOS paths from being IFS'd. 7186 echo "$f";; 5140 7187 *) # Relative 5141 5142 5143 echo $f 5144 5145 5146 echo $srcdir/$f 5147 5148 5149 { { echo "$as_me:5149: error: cannot find input file: $f" >&57188 if test -f "$f"; then 7189 # Build tree 7190 echo "$f" 7191 elif test -f "$srcdir/$f"; then 7192 # Source tree 7193 echo "$srcdir/$f" 7194 else 7195 # /dev/null tree 7196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5150 7197 echo "$as_me: error: cannot find input file: $f" >&2;} 5151 7198 { (exit 1); exit 1; }; } 5152 7199 fi;; 5153 7200 esac 5154 7201 done` || { (exit 1); exit 1; } 5155 7202 # Remove the trailing spaces. 5156 sed 's/[ 5157 5158 EOF7203 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7204 7205 _ACEOF 5159 7206 5160 7207 # Transform confdefs.h into two sed scripts, `conftest.defines' and … … 5172 7219 # 0-ary CPP macros) applies to n-ary macro definitions. 5173 7220 # See the Autoconf documentation for `clear'. 5174 cat >confdef2sed.sed <<\ EOF7221 cat >confdef2sed.sed <<\_ACEOF 5175 7222 s/[\\&,]/\\&/g 5176 7223 s,[\\$`],\\&,g 5177 7224 t clear 5178 7225 : clear 5179 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp7226 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5180 7227 t end 5181 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp7228 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5182 7229 : end 5183 EOF7230 _ACEOF 5184 7231 # If some macros were called several times there might be several times 5185 7232 # the same #defines, which is useless. Nevertheless, we may not want to … … 5192 7239 # example, in the case of _POSIX_SOURCE, which is predefined and required 5193 7240 # on some systems where configure will not decide to define it. 5194 cat >>conftest.undefs <<\ EOF5195 s,^[ ]*#[ ]*undef[ ][]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,5196 EOF7241 cat >>conftest.undefs <<\_ACEOF 7242 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7243 _ACEOF 5197 7244 5198 7245 # Break up conftest.defines because some shells have a limit on the size 5199 7246 # of here documents, and old seds have small limits too (100 cmds). 5200 7247 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5201 echo ' if egrep "^[ ]*#[]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS7248 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5202 7249 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5203 7250 echo ' :' >>$CONFIG_STATUS … … 5208 7255 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5209 7256 # Speed up: don't consider the non `#define' lines. 5210 echo '/^[ ]*#[]*define/!b' >>$CONFIG_STATUS7257 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5211 7258 # Work around the forget-to-reset-the-flag bug. 5212 7259 echo 't clr' >>$CONFIG_STATUS … … 5223 7270 done 5224 7271 rm -f conftest.defines 5225 echo ' fi # egrep' >>$CONFIG_STATUS7272 echo ' fi # grep' >>$CONFIG_STATUS 5226 7273 echo >>$CONFIG_STATUS 5227 7274 … … 5235 7282 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5236 7283 # Speed up: don't consider the non `#undef' 5237 echo '/^[ ]*#[]*undef/!b' >>$CONFIG_STATUS7284 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5238 7285 # Work around the forget-to-reset-the-flag bug. 5239 7286 echo 't clr' >>$CONFIG_STATUS … … 5251 7298 rm -f conftest.undefs 5252 7299 5253 cat >>$CONFIG_STATUS <<\ EOF7300 cat >>$CONFIG_STATUS <<\_ACEOF 5254 7301 # Let's still pretend it is `configure' which instantiates (i.e., don't 5255 7302 # use $as_me), people would be surprised to read: 5256 # /* config.h. Generated automaticallyby config.status. */7303 # /* config.h. Generated by config.status. */ 5257 7304 if test x"$ac_file" = x-; then 5258 echo "/* Generated automaticallyby configure. */" >$tmp/config.h7305 echo "/* Generated by configure. */" >$tmp/config.h 5259 7306 else 5260 echo "/* $ac_file. Generated automaticallyby configure. */" >$tmp/config.h7307 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5261 7308 fi 5262 7309 cat $tmp/in >>$tmp/config.h 5263 7310 rm -f $tmp/in 5264 7311 if test x"$ac_file" != x-; then 5265 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then5266 { echo "$as_me: 5266: $ac_file is unchanged" >&57312 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5267 7314 echo "$as_me: $ac_file is unchanged" >&6;} 5268 7315 else 5269 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5270 X"$ac_file" : 'X\(//\)[^/]' \| \ 5271 X"$ac_file" : 'X\(//\)$' \| \ 5272 X"$ac_file" : 'X\(/\)' \| \ 5273 . : '\(.\)' 2>/dev/null || 7316 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7318 X"$ac_file" : 'X\(//\)[^/]' \| \ 7319 X"$ac_file" : 'X\(//\)$' \| \ 7320 X"$ac_file" : 'X\(/\)' \| \ 7321 . : '\(.\)' 2>/dev/null || 5274 7322 echo X"$ac_file" | 5275 7323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 5278 7326 /^X\(\/\).*/{ s//\1/; q; } 5279 7327 s/.*/./; q'` 5280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5281 { case "$ac_dir" in 5282 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5283 *) as_incr_dir=.;; 5284 esac 5285 as_dummy="$ac_dir" 5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5287 case $as_mkdir_dir in 5288 # Skip DOS drivespec 5289 ?:) as_incr_dir=$as_mkdir_dir ;; 5290 *) 5291 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5292 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5293 ;; 5294 esac 5295 done; } 5296 5297 fi 7328 { if $as_mkdir_p; then 7329 mkdir -p "$ac_dir" 7330 else 7331 as_dir="$ac_dir" 7332 as_dirs= 7333 while test ! -d "$as_dir"; do 7334 as_dirs="$as_dir $as_dirs" 7335 as_dir=`(dirname "$as_dir") 2>/dev/null || 7336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7337 X"$as_dir" : 'X\(//\)[^/]' \| \ 7338 X"$as_dir" : 'X\(//\)$' \| \ 7339 X"$as_dir" : 'X\(/\)' \| \ 7340 . : '\(.\)' 2>/dev/null || 7341 echo X"$as_dir" | 7342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7343 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7344 /^X\(\/\/\)$/{ s//\1/; q; } 7345 /^X\(\/\).*/{ s//\1/; q; } 7346 s/.*/./; q'` 7347 done 7348 test ! -n "$as_dirs" || mkdir $as_dirs 7349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7351 { (exit 1); exit 1; }; }; } 7352 5298 7353 rm -f $ac_file 5299 7354 mv $tmp/config.h $ac_file … … 5304 7359 fi 5305 7360 done 5306 EOF5307 cat >>$CONFIG_STATUS <<\ EOF7361 _ACEOF 7362 cat >>$CONFIG_STATUS <<\_ACEOF 5308 7363 5309 7364 # … … 5313 7368 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5314 7369 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5315 7370 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 7371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7372 X"$ac_dest" : 'X\(//\)[^/]' \| \ 7373 X"$ac_dest" : 'X\(//\)$' \| \ 7374 X"$ac_dest" : 'X\(/\)' \| \ 7375 . : '\(.\)' 2>/dev/null || 7376 echo X"$ac_dest" | 7377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7378 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7379 /^X\(\/\/\)$/{ s//\1/; q; } 7380 /^X\(\/\).*/{ s//\1/; q; } 7381 s/.*/./; q'` 7382 { if $as_mkdir_p; then 7383 mkdir -p "$ac_dir" 7384 else 7385 as_dir="$ac_dir" 7386 as_dirs= 7387 while test ! -d "$as_dir"; do 7388 as_dirs="$as_dir $as_dirs" 7389 as_dir=`(dirname "$as_dir") 2>/dev/null || 7390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7391 X"$as_dir" : 'X\(//\)[^/]' \| \ 7392 X"$as_dir" : 'X\(//\)$' \| \ 7393 X"$as_dir" : 'X\(/\)' \| \ 7394 . : '\(.\)' 2>/dev/null || 7395 echo X"$as_dir" | 7396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7397 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7398 /^X\(\/\/\)$/{ s//\1/; q; } 7399 /^X\(\/\).*/{ s//\1/; q; } 7400 s/.*/./; q'` 7401 done 7402 test ! -n "$as_dirs" || mkdir $as_dirs 7403 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7405 { (exit 1); exit 1; }; }; } 7406 7407 ac_builddir=. 7408 7409 if test "$ac_dir" != .; then 7410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7411 # A "../" for each directory in $ac_dir_suffix. 7412 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7413 else 7414 ac_dir_suffix= ac_top_builddir= 7415 fi 7416 7417 case $srcdir in 7418 .) # No --srcdir option. We are building in place. 7419 ac_srcdir=. 7420 if test -z "$ac_top_builddir"; then 7421 ac_top_srcdir=. 7422 else 7423 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7424 fi ;; 7425 [\\/]* | ?:[\\/]* ) # Absolute path. 7426 ac_srcdir=$srcdir$ac_dir_suffix; 7427 ac_top_srcdir=$srcdir ;; 7428 *) # Relative path. 7429 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7430 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7431 esac 7432 7433 # Do not use `cd foo && pwd` to compute absolute paths, because 7434 # the directories may not exist. 7435 case `pwd` in 7436 .) ac_abs_builddir="$ac_dir";; 7437 *) 7438 case "$ac_dir" in 7439 .) ac_abs_builddir=`pwd`;; 7440 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7441 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7442 esac;; 7443 esac 7444 case $ac_abs_builddir in 7445 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7446 *) 7447 case ${ac_top_builddir}. in 7448 .) ac_abs_top_builddir=$ac_abs_builddir;; 7449 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7450 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7451 esac;; 7452 esac 7453 case $ac_abs_builddir in 7454 .) ac_abs_srcdir=$ac_srcdir;; 7455 *) 7456 case $ac_srcdir in 7457 .) ac_abs_srcdir=$ac_abs_builddir;; 7458 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7459 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7460 esac;; 7461 esac 7462 case $ac_abs_builddir in 7463 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7464 *) 7465 case $ac_top_srcdir in 7466 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7467 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7468 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7469 esac;; 7470 esac 7471 7472 7473 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 7474 echo "$as_me: executing $ac_dest commands" >&6;} 5316 7475 case $ac_dest in 5317 7476 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5318 7477 esac 5319 7478 done 5320 EOF5321 5322 cat >>$CONFIG_STATUS <<\ EOF7479 _ACEOF 7480 7481 cat >>$CONFIG_STATUS <<\_ACEOF 5323 7482 5324 7483 { (exit 0); exit 0; } 5325 EOF7484 _ACEOF 5326 7485 chmod +x $CONFIG_STATUS 5327 7486 ac_clean_files=$ac_clean_files_save 7487 5328 7488 5329 7489 # configure is writing to config.log, and then calls config.status. … … 5337 7497 if test "$no_create" != yes; then 5338 7498 ac_cs_success=: 7499 ac_config_status_args= 7500 test "$silent" = yes && 7501 ac_config_status_args="$ac_config_status_args --quiet" 5339 7502 exec 5>/dev/null 5340 $SHELL $CONFIG_STATUS || ac_cs_success=false7503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5341 7504 exec 5>>config.log 5342 7505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which -
trunk/gsdl3/packages/mg/configure.in
r7882 r10191 77 77 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 78 78 AC_MSG_RESULT(yes) 79 LIBOBJS="$LIBOBJS gmalloc.o"79 AC_LIBOBJ(gmalloc) 80 80 AC_DEFINE(HAVE_VALLOC) 81 81 else … … 83 83 AC_CHECK_FUNCS(valloc) 84 84 fi 85 86 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 87 # a non-standard Path 88 AC_MSG_CHECKING(for Apple MacOS X/Darwin) 89 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 90 AC_MSG_RESULT(yes) 91 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 92 JNISUFFIX="jnilib" 93 JNIFLAGS="-dynamiclib -fno-common -single_module" 94 LDFLAGS="-framework JavaVM" 95 else 96 AC_MSG_RESULT(no) 97 JNIINC="" 98 JNISUFFIX="so" 99 JNIFLAGS="-shared" 100 fi 101 AC_SUBST(JNIINC) 102 AC_SUBST(JNISUFFIX) 103 AC_SUBST(JNIFLAGS) 85 104 86 105 fp_WITH_DMALLOC … … 90 109 if test "$ac_cv_func_alloca" = 'no'; then 91 110 dnl support functions for alloca.c 92 LIBOBJS="$LIBOBJS xmalloc.o error.o" 111 AC_LIBOBJ(xmalloc) 112 AC_LIBOBJ(error) 93 113 fi 94 114 -
trunk/gsdl3/packages/mg/jni/Makefile.in
r8208 r10191 26 26 AWK = @AWK@ 27 27 28 JNIFLAGS=@JNIFLAGS@ 29 JNISUFFIX=@JNISUFFIX@ 30 JNIINC=@JNIINC@ 28 31 datadir = $(prefix)/share 29 32 libexecdir = $(exec_prefix)/libexec … … 39 42 $(CCOMPILE) $< 40 43 41 42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux 44 # can we get rid of JAVA_HOME from here?? 45 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC) 43 46 44 47 all: compile link … … 48 51 49 52 link: 50 $(CC) $(LDFLAGS) -shared -o libmgjni.soMGWrapperImpl.o $(QUERY_LIBS)51 $(CC) $(LDFLAGS) -shared -o libmgpassjni.soMGPassesWrapperImpl.o $(PASSES_LIBS)53 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS) 54 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX) MGPassesWrapperImpl.o $(PASSES_LIBS) 52 55 53 56 clean: 54 rm -rf *.o libmgjni. so libmgpassjni.so57 rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) 55 58 56 59 distclean: clean … … 59 62 install: 60 63 ../mkinstalldirs $(libdir); \ 61 cp libmgjni. so libmgpassjni.so$(libdir)/;64 cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) $(libdir)/; 62 65 63 66 -
trunk/gsdl3/src/packages/mg/configure
r3745 r10191 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by Autoconf 2.50.3 # Generated by GNU Autoconf 2.59. 4 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 9 11 10 12 # Be Bourne compatible … … 12 14 emulate sh 13 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 14 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 20 set -o posix 16 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 17 64 18 65 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 20 193 21 194 if expr a : '\(a\)' >/dev/null 2>&1; then … … 43 216 rm -f conf$$ conf$$.exe conf$$.file 44 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 45 225 as_executable_p="test -f" 46 226 47 # Support unset when possible. 48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 49 as_unset=unset 50 else 51 as_unset=false 52 fi 53 54 # NLS nuisances. 55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 63 233 64 234 # IFS … … 69 239 70 240 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 241 $as_unset CDPATH 242 72 243 73 244 # Name of the host. … … 82 253 # 83 254 ac_default_prefix=/usr/local 255 ac_config_libobj_dir=. 84 256 cross_compiling=no 85 257 subdirs= 86 MFLAGS= MAKEFLAGS= 258 MFLAGS= 259 MAKEFLAGS= 87 260 SHELL=${CONFIG_SHELL-/bin/sh} 88 261 … … 92 265 : ${ac_max_here_lines=38} 93 266 94 # Avoid depending upon Character Ranges. 95 ac_cr_az='abcdefghijklmnopqrstuvwxyz' 96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97 ac_cr_09='0123456789' 98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 99 100 # Sed expression to map a string onto a valid sh and CPP variable names. 101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 103 273 104 274 ac_unique_file="src/text/mgquery.c" … … 106 276 ac_includes_default="\ 107 277 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 110 284 #if STDC_HEADERS 111 285 # include <stdlib.h> … … 121 295 # endif 122 296 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 127 300 #endif 128 301 #if HAVE_INTTYPES_H 129 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 130 307 #endif 131 308 #if HAVE_UNISTD_H 132 309 # include <unistd.h> 133 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 134 314 135 315 # Initialize some variables set by options. … … 171 351 mandir='${prefix}/man' 172 352 173 # Identity of this package.174 PACKAGE_NAME=175 PACKAGE_TARNAME=176 PACKAGE_VERSION=177 PACKAGE_STRING=178 PACKAGE_BUGREPORT=179 180 353 ac_prev= 181 354 for ac_option … … 223 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 224 397 # Reject names that are not valid shell variable names. 225 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 226 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 400 { (exit 1); exit 1; }; } … … 232 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 233 406 # Reject names that are not valid shell variable names. 234 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 235 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 409 { (exit 1); exit 1; }; } … … 310 483 311 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 312 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 313 486 no_create=yes ;; 314 487 … … 414 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 415 588 # Reject names that are not valid shell variable names. 416 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 417 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 591 { (exit 1); exit 1; }; } … … 427 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 428 601 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 430 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 604 { (exit 1); exit 1; }; } … … 459 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 633 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$a c_cr_alnum]" >/dev/null &&634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 462 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 636 { (exit 1); exit 1; }; } … … 469 642 # FIXME: should be removed in autoconf 3.0. 470 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$a c_cr_alnum]" >/dev/null &&644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 472 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} … … 484 657 485 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 486 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 671 localstatedir libdir includedir oldincludedir infodir mandir 489 672 do 490 673 eval ac_val=$`echo $ac_var` 491 674 case $ac_val in 492 675 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 495 677 { (exit 1); exit 1; }; };; 496 678 esac … … 499 681 # There might be people who depend on the old broken behavior: `$host' 500 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 501 684 build=$build_alias 502 685 host=$host_alias 503 686 target=$target_alias 504 687 505 # FIXME: should be removed in autoconf 3.0.688 # FIXME: To remove some day. 506 689 if test "x$host_alias" != x; then 507 690 if test "x$build_alias" = x; then … … 519 702 test "$silent" = yes && exec 6>/dev/null 520 703 704 521 705 # Find the source files, if location was not specified. 522 706 if test -z "$srcdir"; then 523 707 ac_srcdir_defaulted=yes 524 708 # Try the directory containing this script, then its parent. 525 ac_prog=$0 526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 528 721 srcdir=$ac_confdir 529 722 if test ! -r $srcdir/$ac_unique_file; then … … 535 728 if test ! -r $srcdir/$ac_unique_file; then 536 729 if test "$ac_srcdir_defaulted" = yes; then 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 538 731 { (exit 1); exit 1; }; } 539 732 else 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 541 734 { (exit 1); exit 1; }; } 542 735 fi 543 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 544 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 741 ac_env_build_alias_set=${build_alias+set} … … 590 786 # Omit some internal or obsolete options to make the list less imposing. 591 787 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat << EOF788 cat <<_ACEOF 593 789 \`configure' configures this package to adapt to many kinds of systems. 594 790 … … 611 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 808 613 EOF614 615 cat << EOF809 _ACEOF 810 811 cat <<_ACEOF 616 812 Installation directories: 617 813 --prefix=PREFIX install architecture-independent files in PREFIX 618 814 [$ac_default_prefix] 619 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 816 [PREFIX] 621 817 622 818 By default, \`make install' will install all the files in … … 640 836 --infodir=DIR info documentation [PREFIX/info] 641 837 --mandir=DIR man documentation [PREFIX/man] 642 EOF643 644 cat <<\ EOF838 _ACEOF 839 840 cat <<\_ACEOF 645 841 646 842 Program names: … … 648 844 --program-suffix=SUFFIX append SUFFIX to installed program names 649 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF846 _ACEOF 651 847 fi 652 848 653 849 if test -n "$ac_init_help"; then 654 850 655 cat <<\ EOF851 cat <<\_ACEOF 656 852 657 853 Optional Packages: … … 676 872 it to find libraries and programs with nonstandard names/locations. 677 873 678 EOF874 _ACEOF 679 875 fi 680 876 … … 682 878 # If there are subdirs, report their specific --help. 683 879 ac_popdir=`pwd` 684 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 685 cd $ac_subdir 686 # A "../" for each directory in /$ac_subdir. 687 ac_dots=`echo $ac_subdir | 688 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 689 690 case $srcdir in 691 .) # No --srcdir option. We are building in place. 692 ac_sub_srcdir=$srcdir ;; 693 [\\/]* | ?:[\\/]* ) # Absolute path. 694 ac_sub_srcdir=$srcdir/$ac_subdir ;; 695 *) # Relative path. 696 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 697 esac 698 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 881 test -d $ac_dir || continue 882 ac_builddir=. 883 884 if test "$ac_dir" != .; then 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 886 # A "../" for each directory in $ac_dir_suffix. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 888 else 889 ac_dir_suffix= ac_top_builddir= 890 fi 891 892 case $srcdir in 893 .) # No --srcdir option. We are building in place. 894 ac_srcdir=. 895 if test -z "$ac_top_builddir"; then 896 ac_top_srcdir=. 897 else 898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 899 fi ;; 900 [\\/]* | ?:[\\/]* ) # Absolute path. 901 ac_srcdir=$srcdir$ac_dir_suffix; 902 ac_top_srcdir=$srcdir ;; 903 *) # Relative path. 904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; 906 esac 907 908 # Do not use `cd foo && pwd` to compute absolute paths, because 909 # the directories may not exist. 910 case `pwd` in 911 .) ac_abs_builddir="$ac_dir";; 912 *) 913 case "$ac_dir" in 914 .) ac_abs_builddir=`pwd`;; 915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 916 *) ac_abs_builddir=`pwd`/"$ac_dir";; 917 esac;; 918 esac 919 case $ac_abs_builddir in 920 .) ac_abs_top_builddir=${ac_top_builddir}.;; 921 *) 922 case ${ac_top_builddir}. in 923 .) ac_abs_top_builddir=$ac_abs_builddir;; 924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 926 esac;; 927 esac 928 case $ac_abs_builddir in 929 .) ac_abs_srcdir=$ac_srcdir;; 930 *) 931 case $ac_srcdir in 932 .) ac_abs_srcdir=$ac_abs_builddir;; 933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 935 esac;; 936 esac 937 case $ac_abs_builddir in 938 .) ac_abs_top_srcdir=$ac_top_srcdir;; 939 *) 940 case $ac_top_srcdir in 941 .) ac_abs_top_srcdir=$ac_abs_builddir;; 942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 944 esac;; 945 esac 946 947 cd $ac_dir 699 948 # Check for guested configure; otherwise get Cygnus style configure. 700 if test -f $ac_s ub_srcdir/configure.gnu; then949 if test -f $ac_srcdir/configure.gnu; then 701 950 echo 702 $SHELL $ac_s ub_srcdir/configure.gnu --help=recursive703 elif test -f $ac_s ub_srcdir/configure; then951 $SHELL $ac_srcdir/configure.gnu --help=recursive 952 elif test -f $ac_srcdir/configure; then 704 953 echo 705 $SHELL $ac_s ub_srcdir/configure --help=recursive706 elif test -f $ac_s ub_srcdir/configure.ac ||707 test -f $ac_sub_srcdir/configure.in; then954 $SHELL $ac_srcdir/configure --help=recursive 955 elif test -f $ac_srcdir/configure.ac || 956 test -f $ac_srcdir/configure.in; then 708 957 echo 709 958 $ac_configure --help 710 959 else 711 echo "$as_me: WARNING: no configuration information is in $ac_ subdir" >&2960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 712 961 fi 713 962 cd $ac_popdir … … 717 966 test -n "$ac_init_help" && exit 0 718 967 if $ac_init_version; then 719 cat <<\EOF 720 721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 722 Free Software Foundation, Inc. 968 cat <<\_ACEOF 969 970 Copyright (C) 2003 Free Software Foundation, Inc. 723 971 This configure script is free software; the Free Software Foundation 724 972 gives unlimited permission to copy, distribute and modify it. 725 EOF973 _ACEOF 726 974 exit 0 727 975 fi 728 976 exec 5>config.log 729 cat >&5 << EOF977 cat >&5 <<_ACEOF 730 978 This file contains any messages produced by compilers while 731 979 running configure, to aid debugging if configure makes a mistake. 732 980 733 981 It was created by $as_me, which was 734 generated by GNU Autoconf 2.5 0. Invocation command line was982 generated by GNU Autoconf 2.59. Invocation command line was 735 983 736 984 $ $0 $@ 737 985 738 EOF986 _ACEOF 739 987 { 740 988 cat <<_ASUNAME 741 ## --------- -##742 ## Platform. 743 ## --------- -##989 ## --------- ## 990 ## Platform. ## 991 ## --------- ## 744 992 745 993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` … … 760 1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 761 1009 762 PATH = $PATH763 764 1010 _ASUNAME 1011 1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013 for as_dir in $PATH 1014 do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018 done 1019 765 1020 } >&5 766 1021 767 cat >&5 <<EOF 768 ## ------------ ## 769 ## Core tests. ## 770 ## ------------ ## 771 772 EOF 1022 cat >&5 <<_ACEOF 1023 1024 1025 ## ----------- ## 1026 ## Core tests. ## 1027 ## ----------- ## 1028 1029 _ACEOF 1030 773 1031 774 1032 # Keep a trace of the command line. 775 1033 # Strip out --no-create and --no-recursion so they do not pile up. 1034 # Strip out --silent because we don't want to record it for future runs. 776 1035 # Also quote any args containing shell meta-characters. 1036 # Make two passes to allow for proper duplicate-argument suppression. 777 1037 ac_configure_args= 1038 ac_configure_args0= 1039 ac_configure_args1= 778 1040 ac_sep= 779 for ac_arg 1041 ac_must_keep_next=false 1042 for ac_pass in 1 2 780 1043 do 781 case $ac_arg in 782 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 783 | --no-cr | --no-c) ;; 784 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 785 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 788 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 789 ac_sep=" " ;; 790 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 791 ac_sep=" " ;; 792 esac 793 # Get rid of the leading space. 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 794 1079 done 1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 795 1082 796 1083 # When interrupted or exit'd, cleanup temporary files, and complete 797 1084 # config.log. We remove comments because anyway the quotes in there 798 1085 # would cause problems or look ugly. 1086 # WARNING: Be sure not to use single quotes in there, as some shells, 1087 # such as our DU 5.0 friend, will then `close' the trap. 799 1088 trap 'exit_status=$? 800 1089 # Save into config.log some information that might help in debugging. 801 echo >&5 802 echo "## ----------------- ##" >&5 803 echo "## Cache variables. ##" >&5 804 echo "## ----------------- ##" >&5 805 echo >&5 806 # The following way of writing the cache mishandles newlines in values, 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094 ## ---------------- ## 1095 ## Cache variables. ## 1096 ## ---------------- ## 1097 _ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 807 1100 { 808 1101 (set) 2>&1 | … … 810 1103 *ac_space=\ *) 811 1104 sed -n \ 812 813 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 814 1107 ;; 815 1108 *) 816 1109 sed -n \ 817 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 818 1111 ;; 819 1112 esac; 820 } >&5 821 sed "/^$/d" confdefs.h >conftest.log 822 if test -s conftest.log; then 823 echo >&5 824 echo "## ------------ ##" >&5 825 echo "## confdefs.h. ##" >&5 826 echo "## ------------ ##" >&5 827 echo >&5 828 cat conftest.log >&5 829 fi 830 (echo; echo) >&5 831 test "$ac_signal" != 0 && 832 echo "$as_me: caught signal $ac_signal" >&5 833 echo "$as_me: exit $exit_status" >&5 834 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1113 } 1114 echo 1115 1116 cat <<\_ASBOX 1117 ## ----------------- ## 1118 ## Output variables. ## 1119 ## ----------------- ## 1120 _ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131 ## ------------- ## 1132 ## Output files. ## 1133 ## ------------- ## 1134 _ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146 ## ----------- ## 1147 ## confdefs.h. ## 1148 ## ----------- ## 1149 _ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 835 1160 exit $exit_status 836 1161 ' 0 837 1162 for ac_signal in 1 2 13 15; do 838 trap 'ac_s tatus=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 839 1164 done 840 1165 ac_signal=0 … … 844 1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 845 1170 echo >confdefs.h 1171 1172 # Predefined preprocessor variables. 1173 1174 cat >>confdefs.h <<_ACEOF 1175 #define PACKAGE_NAME "$PACKAGE_NAME" 1176 _ACEOF 1177 1178 1179 cat >>confdefs.h <<_ACEOF 1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181 _ACEOF 1182 1183 1184 cat >>confdefs.h <<_ACEOF 1185 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1186 _ACEOF 1187 1188 1189 cat >>confdefs.h <<_ACEOF 1190 #define PACKAGE_STRING "$PACKAGE_STRING" 1191 _ACEOF 1192 1193 1194 cat >>confdefs.h <<_ACEOF 1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196 _ACEOF 1197 846 1198 847 1199 # Let the site file select an alternate cache file if it wants to. … … 856 1208 for ac_site_file in $CONFIG_SITE; do 857 1209 if test -r "$ac_site_file"; then 858 { echo "$as_me: 858: loading site script $ac_site_file" >&51210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 859 1211 echo "$as_me: loading site script $ac_site_file" >&6;} 860 cat"$ac_site_file" >&51212 sed 's/^/| /' "$ac_site_file" >&5 861 1213 . "$ac_site_file" 862 1214 fi … … 867 1219 # files actually), so we avoid doing that. 868 1220 if test -f "$cache_file"; then 869 { echo "$as_me: 869: loading cache $cache_file" >&51221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 870 1222 echo "$as_me: loading cache $cache_file" >&6;} 871 1223 case $cache_file in … … 875 1227 fi 876 1228 else 877 { echo "$as_me: 877: creating cache $cache_file" >&51229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 878 1230 echo "$as_me: creating cache $cache_file" >&6;} 879 1231 >$cache_file … … 882 1234 # Check that the precious variables saved in the cache have kept the same 883 1235 # value. 884 ac_ suggest_removing_cache=false1236 ac_cache_corrupted=false 885 1237 for ac_var in `(set) 2>&1 | 886 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 887 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 888 1240 eval ac_new_set=\$ac_env_${ac_var}_set … … 891 1243 case $ac_old_set,$ac_new_set in 892 1244 set,) 893 { echo "$as_me: 893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}895 ac_ suggest_removing_cache=: ;;1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 896 1248 ,set) 897 { echo "$as_me: 897: WARNING: \`$ac_var' was not set in the previous run" >&5898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}899 ac_ suggest_removing_cache=: ;;1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 900 1252 ,);; 901 1253 *) 902 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 903 { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}905 { echo "$as_me:905: WARNING: former value: $ac_old_val" >&5906 echo "$as_me: WARNING:former value: $ac_old_val" >&2;}907 { echo "$as_me:907: WARNING: current value: $ac_new_val" >&5908 echo "$as_me: WARNING:current value: $ac_new_val" >&2;}909 ac_suggest_removing_cache=:1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258 echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260 echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 910 1262 fi;; 911 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 912 1276 done 913 if $ac_suggest_removing_cache; then 914 { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5 915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 916 { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5 917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 1277 if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 918 1283 fi 919 1284 … … 924 1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 925 1290 926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 927 *c*,-n*) ECHO_N= ECHO_C=' 928 ' ECHO_T=' ' ;; 929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 931 esac 932 echo "#! $SHELL" >conftest.sh 933 echo "exit 0" >>conftest.sh 934 chmod +x conftest.sh 935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5 936 (PATH=".;."; conftest.sh) 2>&5 937 ac_status=$? 938 echo "$as_me:938: \$? = $ac_status" >&5 939 (exit $ac_status); }; then 940 ac_path_separator=';' 941 else 942 ac_path_separator=: 943 fi 944 PATH_SEPARATOR="$ac_path_separator" 945 rm -f conftest.sh 946 947 ac_config_headers="$ac_config_headers config.h" 948 949 if test "$program_transform_name" = s,x,x,; then 950 program_transform_name= 951 else 952 # Double any \ or $. echo might interpret backslashes. 953 cat <<\EOF >conftest.sed 954 s,\\,\\\\,g; s,\$,$$,g 955 EOF 956 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 957 rm -f conftest.sed 958 fi 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 ac_config_headers="$ac_config_headers config.h" 1310 959 1311 test "$program_prefix" != NONE && 960 program_transform_name="s,^,$ {program_prefix},;$program_transform_name"1312 program_transform_name="s,^,$program_prefix,;$program_transform_name" 961 1313 # Use a double $ so make ignores it. 962 1314 test "$program_suffix" != NONE && 963 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 964 965 # sed with no file args requires a program. 966 test -z "$program_transform_name" && program_transform_name="s,x,x," 1315 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1316 # Double any \ or $. echo might interpret backslashes. 1317 # By default was `s,x,x', remove it if useless. 1318 cat <<\_ACEOF >conftest.sed 1319 s/[\\$]/&&/g;s/;s,x,x,$// 1320 _ACEOF 1321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1322 rm conftest.sed 1323 967 1324 968 1325 PACKAGE=mg 969 1326 VERSION=1.2 970 1327 971 cat >>confdefs.h <<EOF 1328 LDFLAGS= 1329 1330 cat >>confdefs.h <<_ACEOF 972 1331 #define PACKAGE "$PACKAGE" 973 EOF974 975 cat >>confdefs.h << EOF1332 _ACEOF 1333 1334 cat >>confdefs.h <<_ACEOF 976 1335 #define VERSION "$VERSION" 977 EOF 1336 _ACEOF 1337 1338 1339 978 1340 979 1341 ac_ext=cc … … 983 1345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 984 1346 if test -n "$ac_tool_prefix"; then 985 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1347 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 986 1348 do 987 1349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 988 1350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 989 echo "$as_me: 989: checking for $ac_word" >&51351 echo "$as_me:$LINENO: checking for $ac_word" >&5 990 1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 991 1353 if test "${ac_cv_prog_CXX+set}" = set; then … … 995 1357 ac_cv_prog_CXX="$CXX" # Let the user override the test. 996 1358 else 997 ac_save_IFS=$IFS; IFS=$ac_path_separator 998 ac_dummy="$PATH" 999 for ac_dir in $ac_dummy; do 1000 IFS=$ac_save_IFS 1001 test -z "$ac_dir" && ac_dir=. 1002 $as_executable_p "$ac_dir/$ac_word" || continue 1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5 1005 break 1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1360 for as_dir in $PATH 1361 do 1362 IFS=$as_save_IFS 1363 test -z "$as_dir" && as_dir=. 1364 for ac_exec_ext in '' $ac_executable_extensions; do 1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1368 break 2 1369 fi 1370 done 1006 1371 done 1007 1372 … … 1010 1375 CXX=$ac_cv_prog_CXX 1011 1376 if test -n "$CXX"; then 1012 echo "$as_me: 1012: result: $CXX" >&51377 echo "$as_me:$LINENO: result: $CXX" >&5 1013 1378 echo "${ECHO_T}$CXX" >&6 1014 1379 else 1015 echo "$as_me: 1015: result: no" >&51380 echo "$as_me:$LINENO: result: no" >&5 1016 1381 echo "${ECHO_T}no" >&6 1017 1382 fi … … 1022 1387 if test -z "$CXX"; then 1023 1388 ac_ct_CXX=$CXX 1024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1389 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1025 1390 do 1026 1391 # Extract the first word of "$ac_prog", so it can be a program name with args. 1027 1392 set dummy $ac_prog; ac_word=$2 1028 echo "$as_me: 1028: checking for $ac_word" >&51393 echo "$as_me:$LINENO: checking for $ac_word" >&5 1029 1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1030 1395 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then … … 1034 1399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1035 1400 else 1036 ac_save_IFS=$IFS; IFS=$ac_path_separator 1037 ac_dummy="$PATH" 1038 for ac_dir in $ac_dummy; do 1039 IFS=$ac_save_IFS 1040 test -z "$ac_dir" && ac_dir=. 1041 $as_executable_p "$ac_dir/$ac_word" || continue 1042 ac_cv_prog_ac_ct_CXX="$ac_prog" 1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5 1044 break 1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402 for as_dir in $PATH 1403 do 1404 IFS=$as_save_IFS 1405 test -z "$as_dir" && as_dir=. 1406 for ac_exec_ext in '' $ac_executable_extensions; do 1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1408 ac_cv_prog_ac_ct_CXX="$ac_prog" 1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1410 break 2 1411 fi 1412 done 1045 1413 done 1046 1414 … … 1049 1417 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1050 1418 if test -n "$ac_ct_CXX"; then 1051 echo "$as_me: 1051: result: $ac_ct_CXX" >&51419 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1052 1420 echo "${ECHO_T}$ac_ct_CXX" >&6 1053 1421 else 1054 echo "$as_me: 1054: result: no" >&51422 echo "$as_me:$LINENO: result: no" >&5 1055 1423 echo "${ECHO_T}no" >&6 1056 1424 fi … … 1063 1431 fi 1064 1432 1433 1434 # Provide some information about the compiler. 1435 echo "$as_me:$LINENO:" \ 1436 "checking for C++ compiler version" >&5 1437 ac_compiler=`set X $ac_compile; echo $2` 1438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1439 (eval $ac_compiler --version </dev/null >&5) 2>&5 1440 ac_status=$? 1441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1442 (exit $ac_status); } 1443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1444 (eval $ac_compiler -v </dev/null >&5) 2>&5 1445 ac_status=$? 1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1447 (exit $ac_status); } 1448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1449 (eval $ac_compiler -V </dev/null >&5) 2>&5 1450 ac_status=$? 1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1452 (exit $ac_status); } 1453 1065 1454 cat >conftest.$ac_ext <<_ACEOF 1066 #line 1066 "configure" 1067 #include "confdefs.h" 1455 /* confdefs.h. */ 1456 _ACEOF 1457 cat confdefs.h >>conftest.$ac_ext 1458 cat >>conftest.$ac_ext <<_ACEOF 1459 /* end confdefs.h. */ 1068 1460 1069 1461 int … … 1076 1468 _ACEOF 1077 1469 ac_clean_files_save=$ac_clean_files 1078 ac_clean_files="$ac_clean_files a.out a.exe "1470 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1079 1471 # Try to create an executable without -o first, disregard a.out. 1080 # It will help us diagnose broken compiler , and finding out an intuition1472 # It will help us diagnose broken compilers, and finding out an intuition 1081 1473 # of exeext. 1082 echo "$as_me: 1082: checking for C++ compiler default output" >&51083 echo $ECHO_N "checking for C++ compiler default output ... $ECHO_C" >&61474 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1475 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1084 1476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1085 if { (eval echo "$as_me: 1085: \"$ac_link_default\"") >&51477 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1086 1478 (eval $ac_link_default) 2>&5 1087 1479 ac_status=$? 1088 echo "$as_me: 1088: \$? = $ac_status" >&51480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1089 1481 (exit $ac_status); }; then 1090 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1482 # Find the output, starting from the most likely. This scheme is 1483 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1484 # resort. 1485 1486 # Be careful to initialize this variable, since it used to be cached. 1487 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1488 ac_cv_exeext= 1489 # b.out is created by i960 compilers. 1490 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1491 do 1492 test -f "$ac_file" || continue 1091 1493 case $ac_file in 1092 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1093 a.out ) # We found the default executable, but exeext='' is most 1094 # certainly right. 1095 break;; 1096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1097 export ac_cv_exeext 1098 break;; 1099 * ) break;; 1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1495 ;; 1496 conftest.$ac_ext ) 1497 # This is the source file. 1498 ;; 1499 [ab].out ) 1500 # We found the default executable, but exeext='' is most 1501 # certainly right. 1502 break;; 1503 *.* ) 1504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1505 # FIXME: I believe we export ac_cv_exeext for Libtool, 1506 # but it would be cool to find out if it's true. Does anybody 1507 # maintain Libtool? --akim. 1508 export ac_cv_exeext 1509 break;; 1510 * ) 1511 break;; 1100 1512 esac 1101 1513 done 1102 1514 else 1103 1515 echo "$as_me: failed program was:" >&5 1104 cat conftest.$ac_ext >&5 1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5 1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1516 sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1519 See \`config.log' for more details." >&5 1520 echo "$as_me: error: C++ compiler cannot create executables 1521 See \`config.log' for more details." >&2;} 1107 1522 { (exit 77); exit 77; }; } 1108 1523 fi 1109 1524 1110 1525 ac_exeext=$ac_cv_exeext 1111 echo "$as_me: 1111: result: $ac_file" >&51526 echo "$as_me:$LINENO: result: $ac_file" >&5 1112 1527 echo "${ECHO_T}$ac_file" >&6 1113 1528 1114 1529 # Check the compiler produces executables we can run. If not, either 1115 1530 # the compiler is broken, or we cross compile. 1116 echo "$as_me: 1116: checking whether the C++ compiler works" >&51531 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1117 1532 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1118 1533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 … … 1120 1535 if test "$cross_compiling" != yes; then 1121 1536 if { ac_try='./$ac_file' 1122 { (eval echo "$as_me: 1122: \"$ac_try\"") >&51123 (eval $ac_try) 2>&5 1124 ac_status=$? 1125 echo "$as_me: 1125: \$? = $ac_status" >&51537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1538 (eval $ac_try) 2>&5 1539 ac_status=$? 1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1126 1541 (exit $ac_status); }; }; then 1127 1542 cross_compiling=no … … 1130 1545 cross_compiling=yes 1131 1546 else 1132 { { echo "$as_me:1132: error: cannot run C++ compiled programs. 1133 If you meant to cross compile, use \`--host'." >&5 1547 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1548 If you meant to cross compile, use \`--host'. 1549 See \`config.log' for more details." >&5 1134 1550 echo "$as_me: error: cannot run C++ compiled programs. 1135 If you meant to cross compile, use \`--host'." >&2;} 1551 If you meant to cross compile, use \`--host'. 1552 See \`config.log' for more details." >&2;} 1136 1553 { (exit 1); exit 1; }; } 1137 1554 fi 1138 1555 fi 1139 1556 fi 1140 echo "$as_me: 1140: result: yes" >&51557 echo "$as_me:$LINENO: result: yes" >&5 1141 1558 echo "${ECHO_T}yes" >&6 1142 1559 1143 rm -f a.out a.exe conftest$ac_cv_exeext 1560 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1144 1561 ac_clean_files=$ac_clean_files_save 1145 1562 # Check the compiler produces executables we can run. If not, either 1146 1563 # the compiler is broken, or we cross compile. 1147 echo "$as_me: 1147: checking whether we are cross compiling" >&51564 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1148 1565 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1149 echo "$as_me: 1149: result: $cross_compiling" >&51566 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1150 1567 echo "${ECHO_T}$cross_compiling" >&6 1151 1568 1152 echo "$as_me: 1152: checking for executable suffix" >&51153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&61154 if { (eval echo "$as_me: 1154: \"$ac_link\"") >&51569 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1570 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1155 1572 (eval $ac_link) 2>&5 1156 1573 ac_status=$? 1157 echo "$as_me: 1157: \$? = $ac_status" >&51574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1158 1575 (exit $ac_status); }; then 1159 1576 # If both `conftest.exe' and `conftest' are `present' (well, observable) … … 1161 1578 # work properly (i.e., refer to `conftest.exe'), while it won't with 1162 1579 # `rm'. 1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1580 for ac_file in conftest.exe conftest conftest.*; do 1581 test -f "$ac_file" || continue 1164 1582 case $ac_file in 1165 *.$ac_ext | *. o | *.obj | *.xcoff | *.tds | *.d | *.pdb) ;;1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1166 1584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1167 1168 1585 export ac_cv_exeext 1586 break;; 1169 1587 * ) break;; 1170 1588 esac 1171 1589 done 1172 1590 else 1173 { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5 1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1592 See \`config.log' for more details." >&5 1593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1594 See \`config.log' for more details." >&2;} 1175 1595 { (exit 1); exit 1; }; } 1176 1596 fi 1177 1597 1178 1598 rm -f conftest$ac_cv_exeext 1179 echo "$as_me: 1179: result: $ac_cv_exeext" >&51599 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1180 1600 echo "${ECHO_T}$ac_cv_exeext" >&6 1181 1601 … … 1183 1603 EXEEXT=$ac_cv_exeext 1184 1604 ac_exeext=$EXEEXT 1185 echo "$as_me: 1185: checking for object suffix" >&51186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&61605 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1187 1607 if test "${ac_cv_objext+set}" = set; then 1188 1608 echo $ECHO_N "(cached) $ECHO_C" >&6 1189 1609 else 1190 1610 cat >conftest.$ac_ext <<_ACEOF 1191 #line 1191 "configure" 1192 #include "confdefs.h" 1611 /* confdefs.h. */ 1612 _ACEOF 1613 cat confdefs.h >>conftest.$ac_ext 1614 cat >>conftest.$ac_ext <<_ACEOF 1615 /* end confdefs.h. */ 1193 1616 1194 1617 int … … 1201 1624 _ACEOF 1202 1625 rm -f conftest.o conftest.obj 1203 if { (eval echo "$as_me: 1203: \"$ac_compile\"") >&51626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1204 1627 (eval $ac_compile) 2>&5 1205 1628 ac_status=$? 1206 echo "$as_me: 1206: \$? = $ac_status" >&51629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1207 1630 (exit $ac_status); }; then 1208 1631 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1209 1632 case $ac_file in 1210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;1633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1211 1634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1212 1635 break;; … … 1215 1638 else 1216 1639 echo "$as_me: failed program was:" >&5 1217 cat conftest.$ac_ext >&5 1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5 1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1640 sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1643 See \`config.log' for more details." >&5 1644 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1645 See \`config.log' for more details." >&2;} 1220 1646 { (exit 1); exit 1; }; } 1221 1647 fi … … 1223 1649 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1224 1650 fi 1225 echo "$as_me: 1225: result: $ac_cv_objext" >&51651 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1226 1652 echo "${ECHO_T}$ac_cv_objext" >&6 1227 1653 OBJEXT=$ac_cv_objext 1228 1654 ac_objext=$OBJEXT 1229 echo "$as_me: 1229: checking whether we are using the GNU C++ compiler" >&51655 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1230 1656 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1231 1657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then … … 1233 1659 else 1234 1660 cat >conftest.$ac_ext <<_ACEOF 1235 #line 1235 "configure" 1236 #include "confdefs.h" 1661 /* confdefs.h. */ 1662 _ACEOF 1663 cat confdefs.h >>conftest.$ac_ext 1664 cat >>conftest.$ac_ext <<_ACEOF 1665 /* end confdefs.h. */ 1237 1666 1238 1667 int … … 1248 1677 _ACEOF 1249 1678 rm -f conftest.$ac_objext 1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5 1251 (eval $ac_compile) 2>&5 1252 ac_status=$? 1253 echo "$as_me:1253: \$? = $ac_status" >&5 1679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1680 (eval $ac_compile) 2>conftest.er1 1681 ac_status=$? 1682 grep -v '^ *+' conftest.er1 >conftest.err 1683 rm -f conftest.er1 1684 cat conftest.err >&5 1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1254 1686 (exit $ac_status); } && 1255 { ac_try='test -s conftest.$ac_objext' 1256 { (eval echo "$as_me:1256: \"$ac_try\"") >&5 1257 (eval $ac_try) 2>&5 1258 ac_status=$? 1259 echo "$as_me:1259: \$? = $ac_status" >&5 1687 { ac_try='test -z "$ac_cxx_werror_flag" 1688 || test ! -s conftest.err' 1689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1690 (eval $ac_try) 2>&5 1691 ac_status=$? 1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1693 (exit $ac_status); }; } && 1694 { ac_try='test -s conftest.$ac_objext' 1695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1696 (eval $ac_try) 2>&5 1697 ac_status=$? 1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1260 1699 (exit $ac_status); }; }; then 1261 1700 ac_compiler_gnu=yes 1262 1701 else 1263 1702 echo "$as_me: failed program was:" >&5 1264 cat conftest.$ac_ext >&5 1703 sed 's/^/| /' conftest.$ac_ext >&5 1704 1265 1705 ac_compiler_gnu=no 1266 1706 fi 1267 rm -f conftest. $ac_objext conftest.$ac_ext1707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1268 1708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1269 1709 1270 1710 fi 1271 echo "$as_me: 1271: result: $ac_cv_cxx_compiler_gnu" >&51711 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1272 1712 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1273 1713 GXX=`test $ac_compiler_gnu = yes && echo yes` … … 1275 1715 ac_save_CXXFLAGS=$CXXFLAGS 1276 1716 CXXFLAGS="-g" 1277 echo "$as_me: 1277: checking whether $CXX accepts -g" >&51717 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1278 1718 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1279 1719 if test "${ac_cv_prog_cxx_g+set}" = set; then … … 1281 1721 else 1282 1722 cat >conftest.$ac_ext <<_ACEOF 1283 #line 1283 "configure" 1284 #include "confdefs.h" 1723 /* confdefs.h. */ 1724 _ACEOF 1725 cat confdefs.h >>conftest.$ac_ext 1726 cat >>conftest.$ac_ext <<_ACEOF 1727 /* end confdefs.h. */ 1285 1728 1286 1729 int … … 1293 1736 _ACEOF 1294 1737 rm -f conftest.$ac_objext 1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5 1296 (eval $ac_compile) 2>&5 1297 ac_status=$? 1298 echo "$as_me:1298: \$? = $ac_status" >&5 1738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1739 (eval $ac_compile) 2>conftest.er1 1740 ac_status=$? 1741 grep -v '^ *+' conftest.er1 >conftest.err 1742 rm -f conftest.er1 1743 cat conftest.err >&5 1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1299 1745 (exit $ac_status); } && 1300 { ac_try='test -s conftest.$ac_objext' 1301 { (eval echo "$as_me:1301: \"$ac_try\"") >&5 1302 (eval $ac_try) 2>&5 1303 ac_status=$? 1304 echo "$as_me:1304: \$? = $ac_status" >&5 1746 { ac_try='test -z "$ac_cxx_werror_flag" 1747 || test ! -s conftest.err' 1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1749 (eval $ac_try) 2>&5 1750 ac_status=$? 1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1752 (exit $ac_status); }; } && 1753 { ac_try='test -s conftest.$ac_objext' 1754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1755 (eval $ac_try) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1305 1758 (exit $ac_status); }; }; then 1306 1759 ac_cv_prog_cxx_g=yes 1307 1760 else 1308 1761 echo "$as_me: failed program was:" >&5 1309 cat conftest.$ac_ext >&5 1762 sed 's/^/| /' conftest.$ac_ext >&5 1763 1310 1764 ac_cv_prog_cxx_g=no 1311 1765 fi 1312 rm -f conftest. $ac_objext conftest.$ac_ext1313 fi 1314 echo "$as_me: 1314: result: $ac_cv_prog_cxx_g" >&51766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1767 fi 1768 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1315 1769 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1316 1770 if test "$ac_test_CXXFLAGS" = set; then … … 1330 1784 fi 1331 1785 for ac_declaration in \ 1332 ''\ 1333 '#include <stdlib.h>' \ 1786 '' \ 1334 1787 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1335 1788 'extern "C" void std::exit (int); using std::exit;' \ … … 1339 1792 do 1340 1793 cat >conftest.$ac_ext <<_ACEOF 1341 #line 1341 "configure" 1342 #include "confdefs.h" 1794 /* confdefs.h. */ 1795 _ACEOF 1796 cat confdefs.h >>conftest.$ac_ext 1797 cat >>conftest.$ac_ext <<_ACEOF 1798 /* end confdefs.h. */ 1799 $ac_declaration 1343 1800 #include <stdlib.h> 1801 int 1802 main () 1803 { 1804 exit (42); 1805 ; 1806 return 0; 1807 } 1808 _ACEOF 1809 rm -f conftest.$ac_objext 1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1811 (eval $ac_compile) 2>conftest.er1 1812 ac_status=$? 1813 grep -v '^ *+' conftest.er1 >conftest.err 1814 rm -f conftest.er1 1815 cat conftest.err >&5 1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1817 (exit $ac_status); } && 1818 { ac_try='test -z "$ac_cxx_werror_flag" 1819 || test ! -s conftest.err' 1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1821 (eval $ac_try) 2>&5 1822 ac_status=$? 1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1824 (exit $ac_status); }; } && 1825 { ac_try='test -s conftest.$ac_objext' 1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1827 (eval $ac_try) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); }; }; then 1831 : 1832 else 1833 echo "$as_me: failed program was:" >&5 1834 sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 continue 1837 fi 1838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1839 cat >conftest.$ac_ext <<_ACEOF 1840 /* confdefs.h. */ 1841 _ACEOF 1842 cat confdefs.h >>conftest.$ac_ext 1843 cat >>conftest.$ac_ext <<_ACEOF 1844 /* end confdefs.h. */ 1344 1845 $ac_declaration 1345 1846 int … … 1352 1853 _ACEOF 1353 1854 rm -f conftest.$ac_objext 1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5 1355 (eval $ac_compile) 2>&5 1356 ac_status=$? 1357 echo "$as_me:1357: \$? = $ac_status" >&5 1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1856 (eval $ac_compile) 2>conftest.er1 1857 ac_status=$? 1858 grep -v '^ *+' conftest.er1 >conftest.err 1859 rm -f conftest.er1 1860 cat conftest.err >&5 1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1358 1862 (exit $ac_status); } && 1359 { ac_try='test -s conftest.$ac_objext' 1360 { (eval echo "$as_me:1360: \"$ac_try\"") >&5 1361 (eval $ac_try) 2>&5 1362 ac_status=$? 1363 echo "$as_me:1363: \$? = $ac_status" >&5 1364 (exit $ac_status); }; }; then 1365 : 1366 else 1367 echo "$as_me: failed program was:" >&5 1368 cat conftest.$ac_ext >&5 1369 continue 1370 fi 1371 rm -f conftest.$ac_objext conftest.$ac_ext 1372 cat >conftest.$ac_ext <<_ACEOF 1373 #line 1373 "configure" 1374 #include "confdefs.h" 1375 $ac_declaration 1376 int 1377 main () 1378 { 1379 exit (42); 1380 ; 1381 return 0; 1382 } 1383 _ACEOF 1384 rm -f conftest.$ac_objext 1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5 1386 (eval $ac_compile) 2>&5 1387 ac_status=$? 1388 echo "$as_me:1388: \$? = $ac_status" >&5 1389 (exit $ac_status); } && 1390 { ac_try='test -s conftest.$ac_objext' 1391 { (eval echo "$as_me:1391: \"$ac_try\"") >&5 1392 (eval $ac_try) 2>&5 1393 ac_status=$? 1394 echo "$as_me:1394: \$? = $ac_status" >&5 1863 { ac_try='test -z "$ac_cxx_werror_flag" 1864 || test ! -s conftest.err' 1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1866 (eval $ac_try) 2>&5 1867 ac_status=$? 1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1869 (exit $ac_status); }; } && 1870 { ac_try='test -s conftest.$ac_objext' 1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1872 (eval $ac_try) 2>&5 1873 ac_status=$? 1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1395 1875 (exit $ac_status); }; }; then 1396 1876 break 1397 1877 else 1398 1878 echo "$as_me: failed program was:" >&5 1399 cat conftest.$ac_ext >&5 1400 fi 1401 rm -f conftest.$ac_objext conftest.$ac_ext 1879 sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 fi 1882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1402 1883 done 1403 echo '#ifdef __cplusplus' >>confdefs.h 1404 echo $ac_declaration >>confdefs.h 1405 echo '#endif' >>confdefs.h 1884 rm -f conftest* 1885 if test -n "$ac_declaration"; then 1886 echo '#ifdef __cplusplus' >>confdefs.h 1887 echo $ac_declaration >>confdefs.h 1888 echo '#endif' >>confdefs.h 1889 fi 1406 1890 1407 1891 ac_ext=c … … 1411 1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1412 1896 1413 for ac_prog in mawk gawk nawk awk1897 for ac_prog in gawk mawk nawk awk 1414 1898 do 1415 1899 # Extract the first word of "$ac_prog", so it can be a program name with args. 1416 1900 set dummy $ac_prog; ac_word=$2 1417 echo "$as_me: 1417: checking for $ac_word" >&51901 echo "$as_me:$LINENO: checking for $ac_word" >&5 1418 1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1419 1903 if test "${ac_cv_prog_AWK+set}" = set; then … … 1423 1907 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1424 1908 else 1425 ac_save_IFS=$IFS; IFS=$ac_path_separator 1426 ac_dummy="$PATH" 1427 for ac_dir in $ac_dummy; do 1428 IFS=$ac_save_IFS 1429 test -z "$ac_dir" && ac_dir=. 1430 $as_executable_p "$ac_dir/$ac_word" || continue 1431 ac_cv_prog_AWK="$ac_prog" 1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5 1433 break 1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910 for as_dir in $PATH 1911 do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_AWK="$ac_prog" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920 done 1434 1921 done 1435 1922 … … 1438 1925 AWK=$ac_cv_prog_AWK 1439 1926 if test -n "$AWK"; then 1440 echo "$as_me: 1440: result: $AWK" >&51927 echo "$as_me:$LINENO: result: $AWK" >&5 1441 1928 echo "${ECHO_T}$AWK" >&6 1442 1929 else 1443 echo "$as_me: 1443: result: no" >&51930 echo "$as_me:$LINENO: result: no" >&5 1444 1931 echo "${ECHO_T}no" >&6 1445 1932 fi … … 1452 1939 # Extract the first word of "$ac_prog", so it can be a program name with args. 1453 1940 set dummy $ac_prog; ac_word=$2 1454 echo "$as_me: 1454: checking for $ac_word" >&51941 echo "$as_me:$LINENO: checking for $ac_word" >&5 1455 1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1456 1943 if test "${ac_cv_prog_YACC+set}" = set; then … … 1460 1947 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1461 1948 else 1462 ac_save_IFS=$IFS; IFS=$ac_path_separator 1463 ac_dummy="$PATH" 1464 for ac_dir in $ac_dummy; do 1465 IFS=$ac_save_IFS 1466 test -z "$ac_dir" && ac_dir=. 1467 $as_executable_p "$ac_dir/$ac_word" || continue 1468 ac_cv_prog_YACC="$ac_prog" 1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5 1470 break 1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950 for as_dir in $PATH 1951 do 1952 IFS=$as_save_IFS 1953 test -z "$as_dir" && as_dir=. 1954 for ac_exec_ext in '' $ac_executable_extensions; do 1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1956 ac_cv_prog_YACC="$ac_prog" 1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1958 break 2 1959 fi 1960 done 1471 1961 done 1472 1962 … … 1475 1965 YACC=$ac_cv_prog_YACC 1476 1966 if test -n "$YACC"; then 1477 echo "$as_me: 1477: result: $YACC" >&51967 echo "$as_me:$LINENO: result: $YACC" >&5 1478 1968 echo "${ECHO_T}$YACC" >&6 1479 1969 else 1480 echo "$as_me: 1480: result: no" >&51970 echo "$as_me:$LINENO: result: no" >&5 1481 1971 echo "${ECHO_T}no" >&6 1482 1972 fi … … 1494 1984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1495 1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1496 echo "$as_me: 1496: checking for $ac_word" >&51986 echo "$as_me:$LINENO: checking for $ac_word" >&5 1497 1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1498 1988 if test "${ac_cv_prog_CC+set}" = set; then … … 1502 1992 ac_cv_prog_CC="$CC" # Let the user override the test. 1503 1993 else 1504 ac_save_IFS=$IFS; IFS=$ac_path_separator 1505 ac_dummy="$PATH" 1506 for ac_dir in $ac_dummy; do 1507 IFS=$ac_save_IFS 1508 test -z "$ac_dir" && ac_dir=. 1509 $as_executable_p "$ac_dir/$ac_word" || continue 1510 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5 1512 break 1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995 for as_dir in $PATH 1996 do 1997 IFS=$as_save_IFS 1998 test -z "$as_dir" && as_dir=. 1999 for ac_exec_ext in '' $ac_executable_extensions; do 2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2001 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2003 break 2 2004 fi 2005 done 1513 2006 done 1514 2007 … … 1517 2010 CC=$ac_cv_prog_CC 1518 2011 if test -n "$CC"; then 1519 echo "$as_me: 1519: result: $CC" >&52012 echo "$as_me:$LINENO: result: $CC" >&5 1520 2013 echo "${ECHO_T}$CC" >&6 1521 2014 else 1522 echo "$as_me: 1522: result: no" >&52015 echo "$as_me:$LINENO: result: no" >&5 1523 2016 echo "${ECHO_T}no" >&6 1524 2017 fi … … 1529 2022 # Extract the first word of "gcc", so it can be a program name with args. 1530 2023 set dummy gcc; ac_word=$2 1531 echo "$as_me: 1531: checking for $ac_word" >&52024 echo "$as_me:$LINENO: checking for $ac_word" >&5 1532 2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1533 2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1537 2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1538 2031 else 1539 ac_save_IFS=$IFS; IFS=$ac_path_separator 1540 ac_dummy="$PATH" 1541 for ac_dir in $ac_dummy; do 1542 IFS=$ac_save_IFS 1543 test -z "$ac_dir" && ac_dir=. 1544 $as_executable_p "$ac_dir/$ac_word" || continue 1545 ac_cv_prog_ac_ct_CC="gcc" 1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5 1547 break 2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033 for as_dir in $PATH 2034 do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 for ac_exec_ext in '' $ac_executable_extensions; do 2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2039 ac_cv_prog_ac_ct_CC="gcc" 2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2041 break 2 2042 fi 2043 done 1548 2044 done 1549 2045 … … 1552 2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1553 2049 if test -n "$ac_ct_CC"; then 1554 echo "$as_me: 1554: result: $ac_ct_CC" >&52050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1555 2051 echo "${ECHO_T}$ac_ct_CC" >&6 1556 2052 else 1557 echo "$as_me: 1557: result: no" >&52053 echo "$as_me:$LINENO: result: no" >&5 1558 2054 echo "${ECHO_T}no" >&6 1559 2055 fi … … 1568 2064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1569 2065 set dummy ${ac_tool_prefix}cc; ac_word=$2 1570 echo "$as_me: 1570: checking for $ac_word" >&52066 echo "$as_me:$LINENO: checking for $ac_word" >&5 1571 2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1572 2068 if test "${ac_cv_prog_CC+set}" = set; then … … 1576 2072 ac_cv_prog_CC="$CC" # Let the user override the test. 1577 2073 else 1578 ac_save_IFS=$IFS; IFS=$ac_path_separator 1579 ac_dummy="$PATH" 1580 for ac_dir in $ac_dummy; do 1581 IFS=$ac_save_IFS 1582 test -z "$ac_dir" && ac_dir=. 1583 $as_executable_p "$ac_dir/$ac_word" || continue 1584 ac_cv_prog_CC="${ac_tool_prefix}cc" 1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5 1586 break 2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2075 for as_dir in $PATH 2076 do 2077 IFS=$as_save_IFS 2078 test -z "$as_dir" && as_dir=. 2079 for ac_exec_ext in '' $ac_executable_extensions; do 2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2081 ac_cv_prog_CC="${ac_tool_prefix}cc" 2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2083 break 2 2084 fi 2085 done 1587 2086 done 1588 2087 … … 1591 2090 CC=$ac_cv_prog_CC 1592 2091 if test -n "$CC"; then 1593 echo "$as_me: 1593: result: $CC" >&52092 echo "$as_me:$LINENO: result: $CC" >&5 1594 2093 echo "${ECHO_T}$CC" >&6 1595 2094 else 1596 echo "$as_me: 1596: result: no" >&52095 echo "$as_me:$LINENO: result: no" >&5 1597 2096 echo "${ECHO_T}no" >&6 1598 2097 fi … … 1603 2102 # Extract the first word of "cc", so it can be a program name with args. 1604 2103 set dummy cc; ac_word=$2 1605 echo "$as_me: 1605: checking for $ac_word" >&52104 echo "$as_me:$LINENO: checking for $ac_word" >&5 1606 2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1607 2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1611 2110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1612 2111 else 1613 ac_save_IFS=$IFS; IFS=$ac_path_separator 1614 ac_dummy="$PATH" 1615 for ac_dir in $ac_dummy; do 1616 IFS=$ac_save_IFS 1617 test -z "$ac_dir" && ac_dir=. 1618 $as_executable_p "$ac_dir/$ac_word" || continue 1619 ac_cv_prog_ac_ct_CC="cc" 1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5 1621 break 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113 for as_dir in $PATH 2114 do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 for ac_exec_ext in '' $ac_executable_extensions; do 2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2119 ac_cv_prog_ac_ct_CC="cc" 2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 break 2 2122 fi 2123 done 1622 2124 done 1623 2125 … … 1626 2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1627 2129 if test -n "$ac_ct_CC"; then 1628 echo "$as_me: 1628: result: $ac_ct_CC" >&52130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1629 2131 echo "${ECHO_T}$ac_ct_CC" >&6 1630 2132 else 1631 echo "$as_me: 1631: result: no" >&52133 echo "$as_me:$LINENO: result: no" >&5 1632 2134 echo "${ECHO_T}no" >&6 1633 2135 fi … … 1642 2144 # Extract the first word of "cc", so it can be a program name with args. 1643 2145 set dummy cc; ac_word=$2 1644 echo "$as_me: 1644: checking for $ac_word" >&52146 echo "$as_me:$LINENO: checking for $ac_word" >&5 1645 2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1646 2148 if test "${ac_cv_prog_CC+set}" = set; then … … 1651 2153 else 1652 2154 ac_prog_rejected=no 1653 ac_save_IFS=$IFS; IFS=$ac_path_separator 1654 ac_dummy="$PATH" 1655 for ac_dir in $ac_dummy; do 1656 IFS=$ac_save_IFS 1657 test -z "$ac_dir" && ac_dir=. 1658 $as_executable_p "$ac_dir/$ac_word" || continue 1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1660 ac_prog_rejected=yes 1661 continue 1662 fi 1663 ac_cv_prog_CC="cc" 1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5 1665 break 2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2156 for as_dir in $PATH 2157 do 2158 IFS=$as_save_IFS 2159 test -z "$as_dir" && as_dir=. 2160 for ac_exec_ext in '' $ac_executable_extensions; do 2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2163 ac_prog_rejected=yes 2164 continue 2165 fi 2166 ac_cv_prog_CC="cc" 2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2168 break 2 2169 fi 2170 done 1666 2171 done 1667 2172 … … 1675 2180 # first if we set CC to just the basename; use the full file name. 1676 2181 shift 1677 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1678 shift 1679 ac_cv_prog_CC="$@" 2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1680 2183 fi 1681 2184 fi … … 1684 2187 CC=$ac_cv_prog_CC 1685 2188 if test -n "$CC"; then 1686 echo "$as_me: 1686: result: $CC" >&52189 echo "$as_me:$LINENO: result: $CC" >&5 1687 2190 echo "${ECHO_T}$CC" >&6 1688 2191 else 1689 echo "$as_me: 1689: result: no" >&52192 echo "$as_me:$LINENO: result: no" >&5 1690 2193 echo "${ECHO_T}no" >&6 1691 2194 fi … … 1698 2201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1699 2202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1700 echo "$as_me: 1700: checking for $ac_word" >&52203 echo "$as_me:$LINENO: checking for $ac_word" >&5 1701 2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1702 2205 if test "${ac_cv_prog_CC+set}" = set; then … … 1706 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 1707 2210 else 1708 ac_save_IFS=$IFS; IFS=$ac_path_separator 1709 ac_dummy="$PATH" 1710 for ac_dir in $ac_dummy; do 1711 IFS=$ac_save_IFS 1712 test -z "$ac_dir" && ac_dir=. 1713 $as_executable_p "$ac_dir/$ac_word" || continue 1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5 1716 break 2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212 for as_dir in $PATH 2213 do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2220 break 2 2221 fi 2222 done 1717 2223 done 1718 2224 … … 1721 2227 CC=$ac_cv_prog_CC 1722 2228 if test -n "$CC"; then 1723 echo "$as_me: 1723: result: $CC" >&52229 echo "$as_me:$LINENO: result: $CC" >&5 1724 2230 echo "${ECHO_T}$CC" >&6 1725 2231 else 1726 echo "$as_me: 1726: result: no" >&52232 echo "$as_me:$LINENO: result: no" >&5 1727 2233 echo "${ECHO_T}no" >&6 1728 2234 fi … … 1737 2243 # Extract the first word of "$ac_prog", so it can be a program name with args. 1738 2244 set dummy $ac_prog; ac_word=$2 1739 echo "$as_me: 1739: checking for $ac_word" >&52245 echo "$as_me:$LINENO: checking for $ac_word" >&5 1740 2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1741 2247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1745 2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1746 2252 else 1747 ac_save_IFS=$IFS; IFS=$ac_path_separator 1748 ac_dummy="$PATH" 1749 for ac_dir in $ac_dummy; do 1750 IFS=$ac_save_IFS 1751 test -z "$ac_dir" && ac_dir=. 1752 $as_executable_p "$ac_dir/$ac_word" || continue 1753 ac_cv_prog_ac_ct_CC="$ac_prog" 1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5 1755 break 2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254 for as_dir in $PATH 2255 do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2260 ac_cv_prog_ac_ct_CC="$ac_prog" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264 done 1756 2265 done 1757 2266 … … 1760 2269 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1761 2270 if test -n "$ac_ct_CC"; then 1762 echo "$as_me: 1762: result: $ac_ct_CC" >&52271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1763 2272 echo "${ECHO_T}$ac_ct_CC" >&6 1764 2273 else 1765 echo "$as_me: 1765: result: no" >&52274 echo "$as_me:$LINENO: result: no" >&5 1766 2275 echo "${ECHO_T}no" >&6 1767 2276 fi … … 1775 2284 fi 1776 2285 1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5 1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 2286 2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2288 See \`config.log' for more details." >&5 2289 echo "$as_me: error: no acceptable C compiler found in \$PATH 2290 See \`config.log' for more details." >&2;} 1779 2291 { (exit 1); exit 1; }; } 1780 2292 1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5 2293 # Provide some information about the compiler. 2294 echo "$as_me:$LINENO:" \ 2295 "checking for C compiler version" >&5 2296 ac_compiler=`set X $ac_compile; echo $2` 2297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2298 (eval $ac_compiler --version </dev/null >&5) 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); } 2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2303 (eval $ac_compiler -v </dev/null >&5) 2>&5 2304 ac_status=$? 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2306 (exit $ac_status); } 2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2308 (eval $ac_compiler -V </dev/null >&5) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); } 2312 2313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1782 2314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1783 2315 if test "${ac_cv_c_compiler_gnu+set}" = set; then … … 1785 2317 else 1786 2318 cat >conftest.$ac_ext <<_ACEOF 1787 #line 1787 "configure" 1788 #include "confdefs.h" 2319 /* confdefs.h. */ 2320 _ACEOF 2321 cat confdefs.h >>conftest.$ac_ext 2322 cat >>conftest.$ac_ext <<_ACEOF 2323 /* end confdefs.h. */ 1789 2324 1790 2325 int … … 1800 2335 _ACEOF 1801 2336 rm -f conftest.$ac_objext 1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5 1803 (eval $ac_compile) 2>&5 1804 ac_status=$? 1805 echo "$as_me:1805: \$? = $ac_status" >&5 2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>conftest.er1 2339 ac_status=$? 2340 grep -v '^ *+' conftest.er1 >conftest.err 2341 rm -f conftest.er1 2342 cat conftest.err >&5 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 2344 (exit $ac_status); } && 1807 { ac_try='test -s conftest.$ac_objext' 1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5 1809 (eval $ac_try) 2>&5 1810 ac_status=$? 1811 echo "$as_me:1811: \$? = $ac_status" >&5 2345 { ac_try='test -z "$ac_c_werror_flag" 2346 || test ! -s conftest.err' 2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2348 (eval $ac_try) 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); }; } && 2352 { ac_try='test -s conftest.$ac_objext' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1812 2357 (exit $ac_status); }; }; then 1813 2358 ac_compiler_gnu=yes 1814 2359 else 1815 2360 echo "$as_me: failed program was:" >&5 1816 cat conftest.$ac_ext >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 1817 2363 ac_compiler_gnu=no 1818 2364 fi 1819 rm -f conftest. $ac_objext conftest.$ac_ext2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1820 2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1821 2367 1822 2368 fi 1823 echo "$as_me: 1823: result: $ac_cv_c_compiler_gnu" >&52369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1824 2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1825 2371 GCC=`test $ac_compiler_gnu = yes && echo yes` … … 1827 2373 ac_save_CFLAGS=$CFLAGS 1828 2374 CFLAGS="-g" 1829 echo "$as_me: 1829: checking whether $CC accepts -g" >&52375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1830 2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1831 2377 if test "${ac_cv_prog_cc_g+set}" = set; then … … 1833 2379 else 1834 2380 cat >conftest.$ac_ext <<_ACEOF 1835 #line 1835 "configure" 1836 #include "confdefs.h" 2381 /* confdefs.h. */ 2382 _ACEOF 2383 cat confdefs.h >>conftest.$ac_ext 2384 cat >>conftest.$ac_ext <<_ACEOF 2385 /* end confdefs.h. */ 1837 2386 1838 2387 int … … 1845 2394 _ACEOF 1846 2395 rm -f conftest.$ac_objext 1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5 1848 (eval $ac_compile) 2>&5 1849 ac_status=$? 1850 echo "$as_me:1850: \$? = $ac_status" >&5 2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2397 (eval $ac_compile) 2>conftest.er1 2398 ac_status=$? 2399 grep -v '^ *+' conftest.er1 >conftest.err 2400 rm -f conftest.er1 2401 cat conftest.err >&5 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 2403 (exit $ac_status); } && 1852 { ac_try='test -s conftest.$ac_objext' 1853 { (eval echo "$as_me:1853: \"$ac_try\"") >&5 1854 (eval $ac_try) 2>&5 1855 ac_status=$? 1856 echo "$as_me:1856: \$? = $ac_status" >&5 2404 { ac_try='test -z "$ac_c_werror_flag" 2405 || test ! -s conftest.err' 2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2407 (eval $ac_try) 2>&5 2408 ac_status=$? 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); }; } && 2411 { ac_try='test -s conftest.$ac_objext' 2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 (eval $ac_try) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1857 2416 (exit $ac_status); }; }; then 1858 2417 ac_cv_prog_cc_g=yes 1859 2418 else 1860 2419 echo "$as_me: failed program was:" >&5 1861 cat conftest.$ac_ext >&5 2420 sed 's/^/| /' conftest.$ac_ext >&5 2421 1862 2422 ac_cv_prog_cc_g=no 1863 2423 fi 1864 rm -f conftest. $ac_objext conftest.$ac_ext1865 fi 1866 echo "$as_me: 1866: result: $ac_cv_prog_cc_g" >&52424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2425 fi 2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1867 2427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1868 2428 if test "$ac_test_CFLAGS" = set; then … … 1881 2441 fi 1882 2442 fi 1883 # Some people use a C++ compiler to compile C. Since we use `exit', 1884 # in C++ we need to declare it. In case someone uses the same compiler 1885 # for both compiling C and C++ we need to have the C++ compiler decide 1886 # the declaration of exit, since it's the most demanding environment. 1887 cat >conftest.$ac_ext <<_ACEOF 1888 #ifndef __cplusplus 1889 choke me 1890 #endif 1891 _ACEOF 1892 rm -f conftest.$ac_objext 1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5 1894 (eval $ac_compile) 2>&5 1895 ac_status=$? 1896 echo "$as_me:1896: \$? = $ac_status" >&5 1897 (exit $ac_status); } && 1898 { ac_try='test -s conftest.$ac_objext' 1899 { (eval echo "$as_me:1899: \"$ac_try\"") >&5 1900 (eval $ac_try) 2>&5 1901 ac_status=$? 1902 echo "$as_me:1902: \$? = $ac_status" >&5 1903 (exit $ac_status); }; }; then 1904 for ac_declaration in \ 1905 ''\ 1906 '#include <stdlib.h>' \ 1907 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1908 'extern "C" void std::exit (int); using std::exit;' \ 1909 'extern "C" void exit (int) throw ();' \ 1910 'extern "C" void exit (int);' \ 1911 'void exit (int);' 1912 do 1913 cat >conftest.$ac_ext <<_ACEOF 1914 #line 1914 "configure" 1915 #include "confdefs.h" 1916 #include <stdlib.h> 1917 $ac_declaration 1918 int 1919 main () 1920 { 1921 exit (42); 1922 ; 1923 return 0; 1924 } 1925 _ACEOF 1926 rm -f conftest.$ac_objext 1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5 1928 (eval $ac_compile) 2>&5 1929 ac_status=$? 1930 echo "$as_me:1930: \$? = $ac_status" >&5 1931 (exit $ac_status); } && 1932 { ac_try='test -s conftest.$ac_objext' 1933 { (eval echo "$as_me:1933: \"$ac_try\"") >&5 1934 (eval $ac_try) 2>&5 1935 ac_status=$? 1936 echo "$as_me:1936: \$? = $ac_status" >&5 1937 (exit $ac_status); }; }; then 1938 : 1939 else 1940 echo "$as_me: failed program was:" >&5 1941 cat conftest.$ac_ext >&5 1942 continue 1943 fi 1944 rm -f conftest.$ac_objext conftest.$ac_ext 1945 cat >conftest.$ac_ext <<_ACEOF 1946 #line 1946 "configure" 1947 #include "confdefs.h" 1948 $ac_declaration 1949 int 1950 main () 1951 { 1952 exit (42); 1953 ; 1954 return 0; 1955 } 1956 _ACEOF 1957 rm -f conftest.$ac_objext 1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5 1959 (eval $ac_compile) 2>&5 1960 ac_status=$? 1961 echo "$as_me:1961: \$? = $ac_status" >&5 1962 (exit $ac_status); } && 1963 { ac_try='test -s conftest.$ac_objext' 1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5 1965 (eval $ac_try) 2>&5 1966 ac_status=$? 1967 echo "$as_me:1967: \$? = $ac_status" >&5 1968 (exit $ac_status); }; }; then 1969 break 1970 else 1971 echo "$as_me: failed program was:" >&5 1972 cat conftest.$ac_ext >&5 1973 fi 1974 rm -f conftest.$ac_objext conftest.$ac_ext 1975 done 1976 echo '#ifdef __cplusplus' >>confdefs.h 1977 echo $ac_declaration >>confdefs.h 1978 echo '#endif' >>confdefs.h 1979 1980 else 1981 echo "$as_me: failed program was:" >&5 1982 cat conftest.$ac_ext >&5 1983 fi 1984 rm -f conftest.$ac_objext conftest.$ac_ext 1985 ac_ext=c 1986 ac_cpp='$CPP $CPPFLAGS' 1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1990 1991 ac_aux_dir= 1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1993 if test -f $ac_dir/install-sh; then 1994 ac_aux_dir=$ac_dir 1995 ac_install_sh="$ac_aux_dir/install-sh -c" 1996 break 1997 elif test -f $ac_dir/install.sh; then 1998 ac_aux_dir=$ac_dir 1999 ac_install_sh="$ac_aux_dir/install.sh -c" 2000 break 2001 elif test -f $ac_dir/shtool; then 2002 ac_aux_dir=$ac_dir 2003 ac_install_sh="$ac_aux_dir/shtool install -c" 2004 break 2005 fi 2006 done 2007 if test -z "$ac_aux_dir"; then 2008 { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2010 { (exit 1); exit 1; }; } 2011 fi 2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2015 2016 # Find a good install program. We prefer a C program (faster), 2017 # so one script is as good as another. But avoid the broken or 2018 # incompatible versions: 2019 # SysV /etc/install, /usr/sbin/install 2020 # SunOS /usr/etc/install 2021 # IRIX /sbin/install 2022 # AIX /bin/install 2023 # AmigaOS /C/install, which installs bootblocks on floppy discs 2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2027 # ./install, which can be erroneously created by make from ./install.sh. 2028 echo "$as_me:2028: checking for a BSD compatible install" >&5 2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2030 if test -z "$INSTALL"; then 2031 if test "${ac_cv_path_install+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033 else 2034 ac_save_IFS=$IFS; IFS=$ac_path_separator 2035 for ac_dir in $PATH; do 2036 IFS=$ac_save_IFS 2037 # Account for people who put trailing slashes in PATH elements. 2038 case $ac_dir/ in 2039 / | ./ | .// | /cC/* \ 2040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2041 | /usr/ucb/* ) ;; 2042 *) 2043 # OSF1 and SCO ODT 3.0 have their own names for install. 2044 # Don't use installbsd from OSF since it installs stuff as root 2045 # by default. 2046 for ac_prog in ginstall scoinst install; do 2047 if $as_executable_p "$ac_dir/$ac_prog"; then 2048 if test $ac_prog = install && 2049 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2050 # AIX install. It has an incompatible calling convention. 2051 : 2052 elif test $ac_prog = install && 2053 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2054 # program-specific install script used by HP pwplus--don't use. 2055 : 2056 else 2057 ac_cv_path_install="$ac_dir/$ac_prog -c" 2058 break 2 2059 fi 2060 fi 2061 done 2062 ;; 2063 esac 2064 done 2065 2066 fi 2067 if test "${ac_cv_path_install+set}" = set; then 2068 INSTALL=$ac_cv_path_install 2069 else 2070 # As a last resort, use the slow shell script. We don't cache a 2071 # path for INSTALL within a source directory, because that will 2072 # break other packages using the cache if that directory is 2073 # removed, or if the path is relative. 2074 INSTALL=$ac_install_sh 2075 fi 2076 fi 2077 echo "$as_me:2077: result: $INSTALL" >&5 2078 echo "${ECHO_T}$INSTALL" >&6 2079 2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2081 # It thinks the first close brace ends the variable substitution. 2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2083 2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2085 2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2087 2088 echo "$as_me:2088: checking whether ln -s works" >&5 2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2090 LN_S=$as_ln_s 2091 if test "$LN_S" = "ln -s"; then 2092 echo "$as_me:2092: result: yes" >&5 2093 echo "${ECHO_T}yes" >&6 2094 else 2095 echo "$as_me:2095: result: no, using $LN_S" >&5 2096 echo "${ECHO_T}no, using $LN_S" >&6 2097 fi 2098 2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5 2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104 else 2105 cat >conftest.make <<\EOF 2106 all: 2107 @echo 'ac_maketemp="${MAKE}"' 2108 EOF 2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2111 if test -n "$ac_maketemp"; then 2112 eval ac_cv_prog_make_${ac_make}_set=yes 2113 else 2114 eval ac_cv_prog_make_${ac_make}_set=no 2115 fi 2116 rm -f conftest.make 2117 fi 2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2119 echo "$as_me:2119: result: yes" >&5 2120 echo "${ECHO_T}yes" >&6 2121 SET_MAKE= 2122 else 2123 echo "$as_me:2123: result: no" >&5 2124 echo "${ECHO_T}no" >&6 2125 SET_MAKE="MAKE=${MAKE-make}" 2126 fi 2127 2128 if test -n "$ac_tool_prefix"; then 2129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2131 echo "$as_me:2131: checking for $ac_word" >&5 2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2133 if test "${ac_cv_prog_RANLIB+set}" = set; then 2134 echo $ECHO_N "(cached) $ECHO_C" >&6 2135 else 2136 if test -n "$RANLIB"; then 2137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2138 else 2139 ac_save_IFS=$IFS; IFS=$ac_path_separator 2140 ac_dummy="$PATH" 2141 for ac_dir in $ac_dummy; do 2142 IFS=$ac_save_IFS 2143 test -z "$ac_dir" && ac_dir=. 2144 $as_executable_p "$ac_dir/$ac_word" || continue 2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5 2147 break 2148 done 2149 2150 fi 2151 fi 2152 RANLIB=$ac_cv_prog_RANLIB 2153 if test -n "$RANLIB"; then 2154 echo "$as_me:2154: result: $RANLIB" >&5 2155 echo "${ECHO_T}$RANLIB" >&6 2156 else 2157 echo "$as_me:2157: result: no" >&5 2158 echo "${ECHO_T}no" >&6 2159 fi 2160 2161 fi 2162 if test -z "$ac_cv_prog_RANLIB"; then 2163 ac_ct_RANLIB=$RANLIB 2164 # Extract the first word of "ranlib", so it can be a program name with args. 2165 set dummy ranlib; ac_word=$2 2166 echo "$as_me:2166: checking for $ac_word" >&5 2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170 else 2171 if test -n "$ac_ct_RANLIB"; then 2172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2173 else 2174 ac_save_IFS=$IFS; IFS=$ac_path_separator 2175 ac_dummy="$PATH" 2176 for ac_dir in $ac_dummy; do 2177 IFS=$ac_save_IFS 2178 test -z "$ac_dir" && ac_dir=. 2179 $as_executable_p "$ac_dir/$ac_word" || continue 2180 ac_cv_prog_ac_ct_RANLIB="ranlib" 2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5 2182 break 2183 done 2184 2185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2186 fi 2187 fi 2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2189 if test -n "$ac_ct_RANLIB"; then 2190 echo "$as_me:2190: result: $ac_ct_RANLIB" >&5 2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2192 else 2193 echo "$as_me:2193: result: no" >&5 2194 echo "${ECHO_T}no" >&6 2195 fi 2196 2197 RANLIB=$ac_ct_RANLIB 2198 else 2199 RANLIB="$ac_cv_prog_RANLIB" 2200 fi 2201 2202 ac_ext=c 2203 ac_cpp='$CPP $CPPFLAGS' 2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5 2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2209 # On Suns, sometimes $CPP names a directory. 2210 if test -n "$CPP" && test -d "$CPP"; then 2211 CPP= 2212 fi 2213 if test -z "$CPP"; then 2214 if test "${ac_cv_prog_CPP+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216 else 2217 # Double quotes because CPP needs to be expanded 2218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2219 do 2220 # break 2 since there is a loop in there. 2221 ac_preproc_ok=false 2222 for ac_c_preproc_warn_flag in '' yes 2223 do 2224 # Use a header file that comes with gcc, so configuring glibc 2225 # with a fresh cross-compiler works. 2226 # On the NeXT, cc -E runs the code through the compiler's parser, 2227 # not just through cpp. "Syntax error" is here to catch this case. 2228 cat >conftest.$ac_ext <<_ACEOF 2229 #line 2229 "configure" 2230 #include "confdefs.h" 2231 #include <assert.h> 2232 Syntax error 2233 _ACEOF 2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5 2235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2236 ac_status=$? 2237 egrep -v '^ *\+' conftest.er1 >conftest.err 2238 rm -f conftest.er1 2239 cat conftest.err >&5 2240 echo "$as_me:2240: \$? = $ac_status" >&5 2241 (exit $ac_status); } >/dev/null; then 2242 if test -s conftest.err; then 2243 ac_cpp_err=$ac_c_preproc_warn_flag 2244 else 2245 ac_cpp_err= 2246 fi 2247 else 2248 ac_cpp_err=yes 2249 fi 2250 if test -z "$ac_cpp_err"; then 2251 : 2252 else 2253 echo "$as_me: failed program was:" >&5 2254 cat conftest.$ac_ext >&5 2255 # Broken: fails on valid input. 2256 continue 2257 fi 2258 rm -f conftest.err conftest.$ac_ext 2259 2260 # OK, works on sane cases. Now check whether non-existent headers 2261 # can be detected and how. 2262 cat >conftest.$ac_ext <<_ACEOF 2263 #line 2263 "configure" 2264 #include "confdefs.h" 2265 #include <ac_nonexistent.h> 2266 _ACEOF 2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5 2268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2269 ac_status=$? 2270 egrep -v '^ *\+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:2273: \$? = $ac_status" >&5 2274 (exit $ac_status); } >/dev/null; then 2275 if test -s conftest.err; then 2276 ac_cpp_err=$ac_c_preproc_warn_flag 2277 else 2278 ac_cpp_err= 2279 fi 2280 else 2281 ac_cpp_err=yes 2282 fi 2283 if test -z "$ac_cpp_err"; then 2284 # Broken: success on invalid input. 2285 continue 2286 else 2287 echo "$as_me: failed program was:" >&5 2288 cat conftest.$ac_ext >&5 2289 # Passes both tests. 2290 ac_preproc_ok=: 2291 break 2292 fi 2293 rm -f conftest.err conftest.$ac_ext 2294 2295 done 2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2297 rm -f conftest.err conftest.$ac_ext 2298 if $ac_preproc_ok; then 2299 break 2 2300 fi 2301 2302 done 2303 ac_cv_prog_CPP=$CPP 2304 2305 fi 2306 CPP=$ac_cv_prog_CPP 2307 else 2308 ac_cv_prog_CPP=$CPP 2309 fi 2310 echo "$as_me:2310: result: $CPP" >&5 2311 echo "${ECHO_T}$CPP" >&6 2312 ac_preproc_ok=false 2313 for ac_c_preproc_warn_flag in '' yes 2314 do 2315 # Use a header file that comes with gcc, so configuring glibc 2316 # with a fresh cross-compiler works. 2317 # On the NeXT, cc -E runs the code through the compiler's parser, 2318 # not just through cpp. "Syntax error" is here to catch this case. 2319 cat >conftest.$ac_ext <<_ACEOF 2320 #line 2320 "configure" 2321 #include "confdefs.h" 2322 #include <assert.h> 2323 Syntax error 2324 _ACEOF 2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5 2326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2327 ac_status=$? 2328 egrep -v '^ *\+' conftest.er1 >conftest.err 2329 rm -f conftest.er1 2330 cat conftest.err >&5 2331 echo "$as_me:2331: \$? = $ac_status" >&5 2332 (exit $ac_status); } >/dev/null; then 2333 if test -s conftest.err; then 2334 ac_cpp_err=$ac_c_preproc_warn_flag 2335 else 2336 ac_cpp_err= 2337 fi 2338 else 2339 ac_cpp_err=yes 2340 fi 2341 if test -z "$ac_cpp_err"; then 2342 : 2343 else 2344 echo "$as_me: failed program was:" >&5 2345 cat conftest.$ac_ext >&5 2346 # Broken: fails on valid input. 2347 continue 2348 fi 2349 rm -f conftest.err conftest.$ac_ext 2350 2351 # OK, works on sane cases. Now check whether non-existent headers 2352 # can be detected and how. 2353 cat >conftest.$ac_ext <<_ACEOF 2354 #line 2354 "configure" 2355 #include "confdefs.h" 2356 #include <ac_nonexistent.h> 2357 _ACEOF 2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5 2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2360 ac_status=$? 2361 egrep -v '^ *\+' conftest.er1 >conftest.err 2362 rm -f conftest.er1 2363 cat conftest.err >&5 2364 echo "$as_me:2364: \$? = $ac_status" >&5 2365 (exit $ac_status); } >/dev/null; then 2366 if test -s conftest.err; then 2367 ac_cpp_err=$ac_c_preproc_warn_flag 2368 else 2369 ac_cpp_err= 2370 fi 2371 else 2372 ac_cpp_err=yes 2373 fi 2374 if test -z "$ac_cpp_err"; then 2375 # Broken: success on invalid input. 2376 continue 2377 else 2378 echo "$as_me: failed program was:" >&5 2379 cat conftest.$ac_ext >&5 2380 # Passes both tests. 2381 ac_preproc_ok=: 2382 break 2383 fi 2384 rm -f conftest.err conftest.$ac_ext 2385 2386 done 2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2388 rm -f conftest.err conftest.$ac_ext 2389 if $ac_preproc_ok; then 2390 : 2391 else 2392 { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5 2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 2397 ac_ext=c 2398 ac_cpp='$CPP $CPPFLAGS' 2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2402 2403 echo "$as_me:2403: checking for AIX" >&5 2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2405 cat >conftest.$ac_ext <<_ACEOF 2406 #line 2406 "configure" 2407 #include "confdefs.h" 2408 #ifdef _AIX 2409 yes 2410 #endif 2411 2412 _ACEOF 2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2414 egrep "yes" >/dev/null 2>&1; then 2415 echo "$as_me:2415: result: yes" >&5 2416 echo "${ECHO_T}yes" >&6 2417 cat >>confdefs.h <<\EOF 2418 #define _ALL_SOURCE 1 2419 EOF 2420 2421 else 2422 echo "$as_me:2422: result: no" >&5 2423 echo "${ECHO_T}no" >&6 2424 fi 2425 rm -f conftest* 2426 2427 echo "$as_me:2427: checking for POSIXized ISC" >&5 2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2429 if test -d /etc/conf/kconfig.d && 2430 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2431 then 2432 echo "$as_me:2432: result: yes" >&5 2433 echo "${ECHO_T}yes" >&6 2434 ISC=yes # If later tests want to check for ISC. 2435 2436 cat >>confdefs.h <<\EOF 2437 #define _POSIX_SOURCE 1 2438 EOF 2439 2440 if test "$GCC" = yes; then 2441 CC="$CC -posix" 2442 else 2443 CC="$CC -Xp" 2444 fi 2445 else 2446 echo "$as_me:2446: result: no" >&5 2447 echo "${ECHO_T}no" >&6 2448 ISC= 2449 fi 2450 2451 echo "$as_me:2451: checking for minix/config.h" >&5 2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2453 if test "${ac_cv_header_minix_config_h+set}" = set; then 2454 echo $ECHO_N "(cached) $ECHO_C" >&6 2455 else 2456 cat >conftest.$ac_ext <<_ACEOF 2457 #line 2457 "configure" 2458 #include "confdefs.h" 2459 #include <minix/config.h> 2460 _ACEOF 2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5 2462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2463 ac_status=$? 2464 egrep -v '^ *\+' conftest.er1 >conftest.err 2465 rm -f conftest.er1 2466 cat conftest.err >&5 2467 echo "$as_me:2467: \$? = $ac_status" >&5 2468 (exit $ac_status); } >/dev/null; then 2469 if test -s conftest.err; then 2470 ac_cpp_err=$ac_c_preproc_warn_flag 2471 else 2472 ac_cpp_err= 2473 fi 2474 else 2475 ac_cpp_err=yes 2476 fi 2477 if test -z "$ac_cpp_err"; then 2478 ac_cv_header_minix_config_h=yes 2479 else 2480 echo "$as_me: failed program was:" >&5 2481 cat conftest.$ac_ext >&5 2482 ac_cv_header_minix_config_h=no 2483 fi 2484 rm -f conftest.err conftest.$ac_ext 2485 fi 2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5 2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2488 if test $ac_cv_header_minix_config_h = yes; then 2489 MINIX=yes 2490 else 2491 MINIX= 2492 fi 2493 2494 if test "$MINIX" = yes; then 2495 2496 cat >>confdefs.h <<\EOF 2497 #define _POSIX_SOURCE 1 2498 EOF 2499 2500 cat >>confdefs.h <<\EOF 2501 #define _POSIX_1_SOURCE 2 2502 EOF 2503 2504 cat >>confdefs.h <<\EOF 2505 #define _MINIX 1 2506 EOF 2507 2508 fi 2509 2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5 2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2513 echo $ECHO_N "(cached) $ECHO_C" >&6 2514 else 2515 ac_cv_prog_cc_stdc=no 2516 ac_save_CFLAGS="$CFLAGS" 2517 # Don't try gcc -ansi; that turns off useful extensions and 2518 # breaks some systems' header files. 2519 # AIX -qlanglvl=ansi 2520 # Ultrix and OSF/1 -std1 2521 # HP-UX -Aa -D_HPUX_SOURCE 2522 # SVR4 -Xc 2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 2524 do 2525 CFLAGS="$ac_save_CFLAGS $ac_arg" 2526 cat >conftest.$ac_ext <<_ACEOF 2527 #line 2527 "configure" 2528 #include "confdefs.h" 2529 #if !defined(__STDC__) || __STDC__ != 1 2530 choke me 2531 #endif 2532 2533 int 2534 main () 2535 { 2536 int test (int i, double x); 2537 struct s1 {int (*f) (int a);}; 2538 struct s2 {int (*f) (double a);}; 2539 ; 2540 return 0; 2541 } 2542 _ACEOF 2543 rm -f conftest.$ac_objext 2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5 2545 (eval $ac_compile) 2>&5 2546 ac_status=$? 2547 echo "$as_me:2547: \$? = $ac_status" >&5 2548 (exit $ac_status); } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:2550: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:2553: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 ac_cv_prog_cc_stdc="$ac_arg"; break 2556 else 2557 echo "$as_me: failed program was:" >&5 2558 cat conftest.$ac_ext >&5 2559 fi 2560 rm -f conftest.$ac_objext conftest.$ac_ext 2561 done 2562 CFLAGS="$ac_save_CFLAGS" 2563 2564 fi 2565 2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5 2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2568 case "x$ac_cv_prog_cc_stdc" in 2569 x|xno) ;; 2570 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 2571 esac 2572 2573 echo "$as_me:2573: checking for function prototypes" >&5 2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 2575 if test "$ac_cv_prog_cc_stdc" != no; then 2576 echo "$as_me:2576: result: yes" >&5 2577 echo "${ECHO_T}yes" >&6 2578 cat >>confdefs.h <<\EOF 2579 #define PROTOTYPES 1 2580 EOF 2581 2582 U= ANSI2KNR= 2583 else 2584 echo "$as_me:2584: result: no" >&5 2585 echo "${ECHO_T}no" >&6 2586 U=_ ANSI2KNR=ansi2knr 2587 fi 2588 2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5 2443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2590 2444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2591 2445 if test "${ac_cv_prog_cc_stdc+set}" = set; then … … 2595 2449 ac_save_CC=$CC 2596 2450 cat >conftest.$ac_ext <<_ACEOF 2597 #line 2597 "configure" 2598 #include "confdefs.h" 2451 /* confdefs.h. */ 2452 _ACEOF 2453 cat confdefs.h >>conftest.$ac_ext 2454 cat >>conftest.$ac_ext <<_ACEOF 2455 /* end confdefs.h. */ 2599 2456 #include <stdarg.h> 2600 2457 #include <stdio.h> … … 2619 2476 return s; 2620 2477 } 2478 2479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2480 function prototypes and stuff, but not '\xHH' hex character constants. 2481 These don't provoke an error unfortunately, instead are silently treated 2482 as 'x'. The following induces an error, until -std1 is added to get 2483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2484 array size at least. It's necessary to write '\x00'==0 to get something 2485 that's true only with -std1. */ 2486 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2487 2621 2488 int test (int i, double x); 2622 2489 struct s1 {int (*f) (int a);}; … … 2644 2511 CC="$ac_save_CC $ac_arg" 2645 2512 rm -f conftest.$ac_objext 2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 2647 (eval $ac_compile) 2>&5 2648 ac_status=$? 2649 echo "$as_me:2649: \$? = $ac_status" >&5 2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2514 (eval $ac_compile) 2>conftest.er1 2515 ac_status=$? 2516 grep -v '^ *+' conftest.er1 >conftest.err 2517 rm -f conftest.er1 2518 cat conftest.err >&5 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 2520 (exit $ac_status); } && 2651 { ac_try='test -s conftest.$ac_objext' 2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5 2653 (eval $ac_try) 2>&5 2654 ac_status=$? 2655 echo "$as_me:2655: \$? = $ac_status" >&5 2521 { ac_try='test -z "$ac_c_werror_flag" 2522 || test ! -s conftest.err' 2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2524 (eval $ac_try) 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); }; } && 2528 { ac_try='test -s conftest.$ac_objext' 2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2530 (eval $ac_try) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 2533 (exit $ac_status); }; }; then 2657 2534 ac_cv_prog_cc_stdc=$ac_arg … … 2659 2536 else 2660 2537 echo "$as_me: failed program was:" >&5 2661 cat conftest.$ac_ext >&5 2662 fi 2663 rm -f conftest.$ac_objext 2538 sed 's/^/| /' conftest.$ac_ext >&5 2539 2540 fi 2541 rm -f conftest.err conftest.$ac_objext 2664 2542 done 2665 2543 rm -f conftest.$ac_ext conftest.$ac_objext … … 2670 2548 case "x$ac_cv_prog_cc_stdc" in 2671 2549 x|xno) 2672 echo "$as_me: 2672: result: none needed" >&52550 echo "$as_me:$LINENO: result: none needed" >&5 2673 2551 echo "${ECHO_T}none needed" >&6 ;; 2674 2552 *) 2675 echo "$as_me: 2675: result: $ac_cv_prog_cc_stdc" >&52553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2676 2554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2677 2555 CC="$CC $ac_cv_prog_cc_stdc" ;; 2678 2556 esac 2679 2557 2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5 2558 # Some people use a C++ compiler to compile C. Since we use `exit', 2559 # in C++ we need to declare it. In case someone uses the same compiler 2560 # for both compiling C and C++ we need to have the C++ compiler decide 2561 # the declaration of exit, since it's the most demanding environment. 2562 cat >conftest.$ac_ext <<_ACEOF 2563 #ifndef __cplusplus 2564 choke me 2565 #endif 2566 _ACEOF 2567 rm -f conftest.$ac_objext 2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2569 (eval $ac_compile) 2>conftest.er1 2570 ac_status=$? 2571 grep -v '^ *+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && 2576 { ac_try='test -z "$ac_c_werror_flag" 2577 || test ! -s conftest.err' 2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2579 (eval $ac_try) 2>&5 2580 ac_status=$? 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); }; } && 2583 { ac_try='test -s conftest.$ac_objext' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; }; then 2589 for ac_declaration in \ 2590 '' \ 2591 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2592 'extern "C" void std::exit (int); using std::exit;' \ 2593 'extern "C" void exit (int) throw ();' \ 2594 'extern "C" void exit (int);' \ 2595 'void exit (int);' 2596 do 2597 cat >conftest.$ac_ext <<_ACEOF 2598 /* confdefs.h. */ 2599 _ACEOF 2600 cat confdefs.h >>conftest.$ac_ext 2601 cat >>conftest.$ac_ext <<_ACEOF 2602 /* end confdefs.h. */ 2603 $ac_declaration 2604 #include <stdlib.h> 2605 int 2606 main () 2607 { 2608 exit (42); 2609 ; 2610 return 0; 2611 } 2612 _ACEOF 2613 rm -f conftest.$ac_objext 2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2615 (eval $ac_compile) 2>conftest.er1 2616 ac_status=$? 2617 grep -v '^ *+' conftest.er1 >conftest.err 2618 rm -f conftest.er1 2619 cat conftest.err >&5 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); } && 2622 { ac_try='test -z "$ac_c_werror_flag" 2623 || test ! -s conftest.err' 2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2625 (eval $ac_try) 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); }; } && 2629 { ac_try='test -s conftest.$ac_objext' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; }; then 2635 : 2636 else 2637 echo "$as_me: failed program was:" >&5 2638 sed 's/^/| /' conftest.$ac_ext >&5 2639 2640 continue 2641 fi 2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2643 cat >conftest.$ac_ext <<_ACEOF 2644 /* confdefs.h. */ 2645 _ACEOF 2646 cat confdefs.h >>conftest.$ac_ext 2647 cat >>conftest.$ac_ext <<_ACEOF 2648 /* end confdefs.h. */ 2649 $ac_declaration 2650 int 2651 main () 2652 { 2653 exit (42); 2654 ; 2655 return 0; 2656 } 2657 _ACEOF 2658 rm -f conftest.$ac_objext 2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2660 (eval $ac_compile) 2>conftest.er1 2661 ac_status=$? 2662 grep -v '^ *+' conftest.er1 >conftest.err 2663 rm -f conftest.er1 2664 cat conftest.err >&5 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } && 2667 { ac_try='test -z "$ac_c_werror_flag" 2668 || test ! -s conftest.err' 2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2670 (eval $ac_try) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; } && 2674 { ac_try='test -s conftest.$ac_objext' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; }; then 2680 break 2681 else 2682 echo "$as_me: failed program was:" >&5 2683 sed 's/^/| /' conftest.$ac_ext >&5 2684 2685 fi 2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2687 done 2688 rm -f conftest* 2689 if test -n "$ac_declaration"; then 2690 echo '#ifdef __cplusplus' >>confdefs.h 2691 echo $ac_declaration >>confdefs.h 2692 echo '#endif' >>confdefs.h 2693 fi 2694 2695 else 2696 echo "$as_me: failed program was:" >&5 2697 sed 's/^/| /' conftest.$ac_ext >&5 2698 2699 fi 2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2701 ac_ext=c 2702 ac_cpp='$CPP $CPPFLAGS' 2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2706 2707 ac_aux_dir= 2708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2709 if test -f $ac_dir/install-sh; then 2710 ac_aux_dir=$ac_dir 2711 ac_install_sh="$ac_aux_dir/install-sh -c" 2712 break 2713 elif test -f $ac_dir/install.sh; then 2714 ac_aux_dir=$ac_dir 2715 ac_install_sh="$ac_aux_dir/install.sh -c" 2716 break 2717 elif test -f $ac_dir/shtool; then 2718 ac_aux_dir=$ac_dir 2719 ac_install_sh="$ac_aux_dir/shtool install -c" 2720 break 2721 fi 2722 done 2723 if test -z "$ac_aux_dir"; then 2724 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2725 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2726 { (exit 1); exit 1; }; } 2727 fi 2728 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2729 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2730 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2731 2732 # Find a good install program. We prefer a C program (faster), 2733 # so one script is as good as another. But avoid the broken or 2734 # incompatible versions: 2735 # SysV /etc/install, /usr/sbin/install 2736 # SunOS /usr/etc/install 2737 # IRIX /sbin/install 2738 # AIX /bin/install 2739 # AmigaOS /C/install, which installs bootblocks on floppy discs 2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2743 # OS/2's system install, which has a completely different semantic 2744 # ./install, which can be erroneously created by make from ./install.sh. 2745 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2746 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2747 if test -z "$INSTALL"; then 2748 if test "${ac_cv_path_install+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750 else 2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752 for as_dir in $PATH 2753 do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 # Account for people who put trailing slashes in PATH elements. 2757 case $as_dir/ in 2758 ./ | .// | /cC/* | \ 2759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2760 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2761 /usr/ucb/* ) ;; 2762 *) 2763 # OSF1 and SCO ODT 3.0 have their own names for install. 2764 # Don't use installbsd from OSF since it installs stuff as root 2765 # by default. 2766 for ac_prog in ginstall scoinst install; do 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2769 if test $ac_prog = install && 2770 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2771 # AIX install. It has an incompatible calling convention. 2772 : 2773 elif test $ac_prog = install && 2774 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2775 # program-specific install script used by HP pwplus--don't use. 2776 : 2777 else 2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2779 break 3 2780 fi 2781 fi 2782 done 2783 done 2784 ;; 2785 esac 2786 done 2787 2788 2789 fi 2790 if test "${ac_cv_path_install+set}" = set; then 2791 INSTALL=$ac_cv_path_install 2792 else 2793 # As a last resort, use the slow shell script. We don't cache a 2794 # path for INSTALL within a source directory, because that will 2795 # break other packages using the cache if that directory is 2796 # removed, or if the path is relative. 2797 INSTALL=$ac_install_sh 2798 fi 2799 fi 2800 echo "$as_me:$LINENO: result: $INSTALL" >&5 2801 echo "${ECHO_T}$INSTALL" >&6 2802 2803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2804 # It thinks the first close brace ends the variable substitution. 2805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2806 2807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2808 2809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2810 2811 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2813 LN_S=$as_ln_s 2814 if test "$LN_S" = "ln -s"; then 2815 echo "$as_me:$LINENO: result: yes" >&5 2816 echo "${ECHO_T}yes" >&6 2817 else 2818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2819 echo "${ECHO_T}no, using $LN_S" >&6 2820 fi 2821 2822 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2823 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2825 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2826 echo $ECHO_N "(cached) $ECHO_C" >&6 2827 else 2828 cat >conftest.make <<\_ACEOF 2829 all: 2830 @echo 'ac_maketemp="$(MAKE)"' 2831 _ACEOF 2832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2833 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2834 if test -n "$ac_maketemp"; then 2835 eval ac_cv_prog_make_${ac_make}_set=yes 2836 else 2837 eval ac_cv_prog_make_${ac_make}_set=no 2838 fi 2839 rm -f conftest.make 2840 fi 2841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2842 echo "$as_me:$LINENO: result: yes" >&5 2843 echo "${ECHO_T}yes" >&6 2844 SET_MAKE= 2845 else 2846 echo "$as_me:$LINENO: result: no" >&5 2847 echo "${ECHO_T}no" >&6 2848 SET_MAKE="MAKE=${MAKE-make}" 2849 fi 2850 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2854 echo "$as_me:$LINENO: checking for $ac_word" >&5 2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2856 if test "${ac_cv_prog_RANLIB+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858 else 2859 if test -n "$RANLIB"; then 2860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2861 else 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863 for as_dir in $PATH 2864 do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873 done 2874 done 2875 2876 fi 2877 fi 2878 RANLIB=$ac_cv_prog_RANLIB 2879 if test -n "$RANLIB"; then 2880 echo "$as_me:$LINENO: result: $RANLIB" >&5 2881 echo "${ECHO_T}$RANLIB" >&6 2882 else 2883 echo "$as_me:$LINENO: result: no" >&5 2884 echo "${ECHO_T}no" >&6 2885 fi 2886 2887 fi 2888 if test -z "$ac_cv_prog_RANLIB"; then 2889 ac_ct_RANLIB=$RANLIB 2890 # Extract the first word of "ranlib", so it can be a program name with args. 2891 set dummy ranlib; ac_word=$2 2892 echo "$as_me:$LINENO: checking for $ac_word" >&5 2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2895 echo $ECHO_N "(cached) $ECHO_C" >&6 2896 else 2897 if test -n "$ac_ct_RANLIB"; then 2898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2899 else 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901 for as_dir in $PATH 2902 do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_RANLIB="ranlib" 2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911 done 2912 done 2913 2914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2915 fi 2916 fi 2917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2918 if test -n "$ac_ct_RANLIB"; then 2919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2920 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2921 else 2922 echo "$as_me:$LINENO: result: no" >&5 2923 echo "${ECHO_T}no" >&6 2924 fi 2925 2926 RANLIB=$ac_ct_RANLIB 2927 else 2928 RANLIB="$ac_cv_prog_RANLIB" 2929 fi 2930 2931 2932 2933 ac_ext=c 2934 ac_cpp='$CPP $CPPFLAGS' 2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940 # On Suns, sometimes $CPP names a directory. 2941 if test -n "$CPP" && test -d "$CPP"; then 2942 CPP= 2943 fi 2944 if test -z "$CPP"; then 2945 if test "${ac_cv_prog_CPP+set}" = set; then 2946 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 else 2948 # Double quotes because CPP needs to be expanded 2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 do 2951 ac_preproc_ok=false 2952 for ac_c_preproc_warn_flag in '' yes 2953 do 2954 # Use a header file that comes with gcc, so configuring glibc 2955 # with a fresh cross-compiler works. 2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 # <limits.h> exists even on freestanding compilers. 2958 # On the NeXT, cc -E runs the code through the compiler's parser, 2959 # not just through cpp. "Syntax error" is here to catch this case. 2960 cat >conftest.$ac_ext <<_ACEOF 2961 /* confdefs.h. */ 2962 _ACEOF 2963 cat confdefs.h >>conftest.$ac_ext 2964 cat >>conftest.$ac_ext <<_ACEOF 2965 /* end confdefs.h. */ 2966 #ifdef __STDC__ 2967 # include <limits.h> 2968 #else 2969 # include <assert.h> 2970 #endif 2971 Syntax error 2972 _ACEOF 2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } >/dev/null; then 2981 if test -s conftest.err; then 2982 ac_cpp_err=$ac_c_preproc_warn_flag 2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 else 2985 ac_cpp_err= 2986 fi 2987 else 2988 ac_cpp_err=yes 2989 fi 2990 if test -z "$ac_cpp_err"; then 2991 : 2992 else 2993 echo "$as_me: failed program was:" >&5 2994 sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 # Broken: fails on valid input. 2997 continue 2998 fi 2999 rm -f conftest.err conftest.$ac_ext 3000 3001 # OK, works on sane cases. Now check whether non-existent headers 3002 # can be detected and how. 3003 cat >conftest.$ac_ext <<_ACEOF 3004 /* confdefs.h. */ 3005 _ACEOF 3006 cat confdefs.h >>conftest.$ac_ext 3007 cat >>conftest.$ac_ext <<_ACEOF 3008 /* end confdefs.h. */ 3009 #include <ac_nonexistent.h> 3010 _ACEOF 3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 else 3023 ac_cpp_err= 3024 fi 3025 else 3026 ac_cpp_err=yes 3027 fi 3028 if test -z "$ac_cpp_err"; then 3029 # Broken: success on invalid input. 3030 continue 3031 else 3032 echo "$as_me: failed program was:" >&5 3033 sed 's/^/| /' conftest.$ac_ext >&5 3034 3035 # Passes both tests. 3036 ac_preproc_ok=: 3037 break 3038 fi 3039 rm -f conftest.err conftest.$ac_ext 3040 3041 done 3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043 rm -f conftest.err conftest.$ac_ext 3044 if $ac_preproc_ok; then 3045 break 3046 fi 3047 3048 done 3049 ac_cv_prog_CPP=$CPP 3050 3051 fi 3052 CPP=$ac_cv_prog_CPP 3053 else 3054 ac_cv_prog_CPP=$CPP 3055 fi 3056 echo "$as_me:$LINENO: result: $CPP" >&5 3057 echo "${ECHO_T}$CPP" >&6 3058 ac_preproc_ok=false 3059 for ac_c_preproc_warn_flag in '' yes 3060 do 3061 # Use a header file that comes with gcc, so configuring glibc 3062 # with a fresh cross-compiler works. 3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 # <limits.h> exists even on freestanding compilers. 3065 # On the NeXT, cc -E runs the code through the compiler's parser, 3066 # not just through cpp. "Syntax error" is here to catch this case. 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 3072 /* end confdefs.h. */ 3073 #ifdef __STDC__ 3074 # include <limits.h> 3075 #else 3076 # include <assert.h> 3077 #endif 3078 Syntax error 3079 _ACEOF 3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } >/dev/null; then 3088 if test -s conftest.err; then 3089 ac_cpp_err=$ac_c_preproc_warn_flag 3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 else 3092 ac_cpp_err= 3093 fi 3094 else 3095 ac_cpp_err=yes 3096 fi 3097 if test -z "$ac_cpp_err"; then 3098 : 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 # Broken: fails on valid input. 3104 continue 3105 fi 3106 rm -f conftest.err conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether non-existent headers 3109 # can be detected and how. 3110 cat >conftest.$ac_ext <<_ACEOF 3111 /* confdefs.h. */ 3112 _ACEOF 3113 cat confdefs.h >>conftest.$ac_ext 3114 cat >>conftest.$ac_ext <<_ACEOF 3115 /* end confdefs.h. */ 3116 #include <ac_nonexistent.h> 3117 _ACEOF 3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } >/dev/null; then 3126 if test -s conftest.err; then 3127 ac_cpp_err=$ac_c_preproc_warn_flag 3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 else 3130 ac_cpp_err= 3131 fi 3132 else 3133 ac_cpp_err=yes 3134 fi 3135 if test -z "$ac_cpp_err"; then 3136 # Broken: success on invalid input. 3137 continue 3138 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 # Passes both tests. 3143 ac_preproc_ok=: 3144 break 3145 fi 3146 rm -f conftest.err conftest.$ac_ext 3147 3148 done 3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150 rm -f conftest.err conftest.$ac_ext 3151 if $ac_preproc_ok; then 3152 : 3153 else 3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155 See \`config.log' for more details." >&5 3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157 See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159 fi 3160 3161 ac_ext=c 3162 ac_cpp='$CPP $CPPFLAGS' 3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 3167 3168 echo "$as_me:$LINENO: checking for egrep" >&5 3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170 if test "${ac_cv_prog_egrep+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172 else 3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 then ac_cv_prog_egrep='grep -E' 3175 else ac_cv_prog_egrep='egrep' 3176 fi 3177 fi 3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 EGREP=$ac_cv_prog_egrep 3181 3182 3183 3184 echo "$as_me:$LINENO: checking for AIX" >&5 3185 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3186 cat >conftest.$ac_ext <<_ACEOF 3187 /* confdefs.h. */ 3188 _ACEOF 3189 cat confdefs.h >>conftest.$ac_ext 3190 cat >>conftest.$ac_ext <<_ACEOF 3191 /* end confdefs.h. */ 3192 #ifdef _AIX 3193 yes 3194 #endif 3195 3196 _ACEOF 3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3198 $EGREP "yes" >/dev/null 2>&1; then 3199 echo "$as_me:$LINENO: result: yes" >&5 3200 echo "${ECHO_T}yes" >&6 3201 cat >>confdefs.h <<\_ACEOF 3202 #define _ALL_SOURCE 1 3203 _ACEOF 3204 3205 else 3206 echo "$as_me:$LINENO: result: no" >&5 3207 echo "${ECHO_T}no" >&6 3208 fi 3209 rm -f conftest* 3210 3211 3212 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3213 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3214 if test "${ac_cv_search_strerror+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216 else 3217 ac_func_search_save_LIBS=$LIBS 3218 ac_cv_search_strerror=no 3219 cat >conftest.$ac_ext <<_ACEOF 3220 /* confdefs.h. */ 3221 _ACEOF 3222 cat confdefs.h >>conftest.$ac_ext 3223 cat >>conftest.$ac_ext <<_ACEOF 3224 /* end confdefs.h. */ 3225 3226 /* Override any gcc2 internal prototype to avoid an error. */ 3227 #ifdef __cplusplus 3228 extern "C" 3229 #endif 3230 /* We use char because int might match the return type of a gcc2 3231 builtin and then its argument prototype would still apply. */ 3232 char strerror (); 3233 int 3234 main () 3235 { 3236 strerror (); 3237 ; 3238 return 0; 3239 } 3240 _ACEOF 3241 rm -f conftest.$ac_objext conftest$ac_exeext 3242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3243 (eval $ac_link) 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && 3250 { ac_try='test -z "$ac_c_werror_flag" 3251 || test ! -s conftest.err' 3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3253 (eval $ac_try) 2>&5 3254 ac_status=$? 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); }; } && 3257 { ac_try='test -s conftest$ac_exeext' 3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3259 (eval $ac_try) 2>&5 3260 ac_status=$? 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); }; }; then 3263 ac_cv_search_strerror="none required" 3264 else 3265 echo "$as_me: failed program was:" >&5 3266 sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 fi 3269 rm -f conftest.err conftest.$ac_objext \ 3270 conftest$ac_exeext conftest.$ac_ext 3271 if test "$ac_cv_search_strerror" = no; then 3272 for ac_lib in cposix; do 3273 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3274 cat >conftest.$ac_ext <<_ACEOF 3275 /* confdefs.h. */ 3276 _ACEOF 3277 cat confdefs.h >>conftest.$ac_ext 3278 cat >>conftest.$ac_ext <<_ACEOF 3279 /* end confdefs.h. */ 3280 3281 /* Override any gcc2 internal prototype to avoid an error. */ 3282 #ifdef __cplusplus 3283 extern "C" 3284 #endif 3285 /* We use char because int might match the return type of a gcc2 3286 builtin and then its argument prototype would still apply. */ 3287 char strerror (); 3288 int 3289 main () 3290 { 3291 strerror (); 3292 ; 3293 return 0; 3294 } 3295 _ACEOF 3296 rm -f conftest.$ac_objext conftest$ac_exeext 3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3298 (eval $ac_link) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } && 3305 { ac_try='test -z "$ac_c_werror_flag" 3306 || test ! -s conftest.err' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest$ac_exeext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 ac_cv_search_strerror="-l$ac_lib" 3319 break 3320 else 3321 echo "$as_me: failed program was:" >&5 3322 sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 fi 3325 rm -f conftest.err conftest.$ac_objext \ 3326 conftest$ac_exeext conftest.$ac_ext 3327 done 3328 fi 3329 LIBS=$ac_func_search_save_LIBS 3330 fi 3331 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3332 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3333 if test "$ac_cv_search_strerror" != no; then 3334 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3335 3336 fi 3337 3338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3340 if test "${ac_cv_header_stdc+set}" = set; then 3341 echo $ECHO_N "(cached) $ECHO_C" >&6 3342 else 3343 cat >conftest.$ac_ext <<_ACEOF 3344 /* confdefs.h. */ 3345 _ACEOF 3346 cat confdefs.h >>conftest.$ac_ext 3347 cat >>conftest.$ac_ext <<_ACEOF 3348 /* end confdefs.h. */ 3349 #include <stdlib.h> 3350 #include <stdarg.h> 3351 #include <string.h> 3352 #include <float.h> 3353 3354 int 3355 main () 3356 { 3357 3358 ; 3359 return 0; 3360 } 3361 _ACEOF 3362 rm -f conftest.$ac_objext 3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3364 (eval $ac_compile) 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } && 3371 { ac_try='test -z "$ac_c_werror_flag" 3372 || test ! -s conftest.err' 3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3374 (eval $ac_try) 2>&5 3375 ac_status=$? 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); }; } && 3378 { ac_try='test -s conftest.$ac_objext' 3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3380 (eval $ac_try) 2>&5 3381 ac_status=$? 3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3383 (exit $ac_status); }; }; then 3384 ac_cv_header_stdc=yes 3385 else 3386 echo "$as_me: failed program was:" >&5 3387 sed 's/^/| /' conftest.$ac_ext >&5 3388 3389 ac_cv_header_stdc=no 3390 fi 3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3392 3393 if test $ac_cv_header_stdc = yes; then 3394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3395 cat >conftest.$ac_ext <<_ACEOF 3396 /* confdefs.h. */ 3397 _ACEOF 3398 cat confdefs.h >>conftest.$ac_ext 3399 cat >>conftest.$ac_ext <<_ACEOF 3400 /* end confdefs.h. */ 3401 #include <string.h> 3402 3403 _ACEOF 3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3405 $EGREP "memchr" >/dev/null 2>&1; then 3406 : 3407 else 3408 ac_cv_header_stdc=no 3409 fi 3410 rm -f conftest* 3411 3412 fi 3413 3414 if test $ac_cv_header_stdc = yes; then 3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3416 cat >conftest.$ac_ext <<_ACEOF 3417 /* confdefs.h. */ 3418 _ACEOF 3419 cat confdefs.h >>conftest.$ac_ext 3420 cat >>conftest.$ac_ext <<_ACEOF 3421 /* end confdefs.h. */ 3422 #include <stdlib.h> 3423 3424 _ACEOF 3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3426 $EGREP "free" >/dev/null 2>&1; then 3427 : 3428 else 3429 ac_cv_header_stdc=no 3430 fi 3431 rm -f conftest* 3432 3433 fi 3434 3435 if test $ac_cv_header_stdc = yes; then 3436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3437 if test "$cross_compiling" = yes; then 3438 : 3439 else 3440 cat >conftest.$ac_ext <<_ACEOF 3441 /* confdefs.h. */ 3442 _ACEOF 3443 cat confdefs.h >>conftest.$ac_ext 3444 cat >>conftest.$ac_ext <<_ACEOF 3445 /* end confdefs.h. */ 3446 #include <ctype.h> 3447 #if ((' ' & 0x0FF) == 0x020) 3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3450 #else 3451 # define ISLOWER(c) \ 3452 (('a' <= (c) && (c) <= 'i') \ 3453 || ('j' <= (c) && (c) <= 'r') \ 3454 || ('s' <= (c) && (c) <= 'z')) 3455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3456 #endif 3457 3458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3459 int 3460 main () 3461 { 3462 int i; 3463 for (i = 0; i < 256; i++) 3464 if (XOR (islower (i), ISLOWER (i)) 3465 || toupper (i) != TOUPPER (i)) 3466 exit(2); 3467 exit (0); 3468 } 3469 _ACEOF 3470 rm -f conftest$ac_exeext 3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3472 (eval $ac_link) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3477 (eval $ac_try) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 : 3482 else 3483 echo "$as_me: program exited with status $ac_status" >&5 3484 echo "$as_me: failed program was:" >&5 3485 sed 's/^/| /' conftest.$ac_ext >&5 3486 3487 ( exit $ac_status ) 3488 ac_cv_header_stdc=no 3489 fi 3490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3491 fi 3492 fi 3493 fi 3494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3495 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3496 if test $ac_cv_header_stdc = yes; then 3497 3498 cat >>confdefs.h <<\_ACEOF 3499 #define STDC_HEADERS 1 3500 _ACEOF 3501 3502 fi 3503 3504 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3515 inttypes.h stdint.h unistd.h 3516 do 3517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3518 echo "$as_me:$LINENO: checking for $ac_header" >&5 3519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3520 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522 else 3523 cat >conftest.$ac_ext <<_ACEOF 3524 /* confdefs.h. */ 3525 _ACEOF 3526 cat confdefs.h >>conftest.$ac_ext 3527 cat >>conftest.$ac_ext <<_ACEOF 3528 /* end confdefs.h. */ 3529 $ac_includes_default 3530 3531 #include <$ac_header> 3532 _ACEOF 3533 rm -f conftest.$ac_objext 3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3535 (eval $ac_compile) 2>conftest.er1 3536 ac_status=$? 3537 grep -v '^ *+' conftest.er1 >conftest.err 3538 rm -f conftest.er1 3539 cat conftest.err >&5 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); } && 3542 { ac_try='test -z "$ac_c_werror_flag" 3543 || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest.$ac_objext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 3555 eval "$as_ac_Header=yes" 3556 else 3557 echo "$as_me: failed program was:" >&5 3558 sed 's/^/| /' conftest.$ac_ext >&5 3559 3560 eval "$as_ac_Header=no" 3561 fi 3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563 fi 3564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3566 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3567 cat >>confdefs.h <<_ACEOF 3568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3569 _ACEOF 3570 3571 fi 3572 3573 done 3574 3575 3576 if test "${ac_cv_header_minix_config_h+set}" = set; then 3577 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3578 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3579 if test "${ac_cv_header_minix_config_h+set}" = set; then 3580 echo $ECHO_N "(cached) $ECHO_C" >&6 3581 fi 3582 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3583 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3584 else 3585 # Is the header compilable? 3586 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3587 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3588 cat >conftest.$ac_ext <<_ACEOF 3589 /* confdefs.h. */ 3590 _ACEOF 3591 cat confdefs.h >>conftest.$ac_ext 3592 cat >>conftest.$ac_ext <<_ACEOF 3593 /* end confdefs.h. */ 3594 $ac_includes_default 3595 #include <minix/config.h> 3596 _ACEOF 3597 rm -f conftest.$ac_objext 3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3599 (eval $ac_compile) 2>conftest.er1 3600 ac_status=$? 3601 grep -v '^ *+' conftest.er1 >conftest.err 3602 rm -f conftest.er1 3603 cat conftest.err >&5 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } && 3606 { ac_try='test -z "$ac_c_werror_flag" 3607 || test ! -s conftest.err' 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3609 (eval $ac_try) 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); }; } && 3613 { ac_try='test -s conftest.$ac_objext' 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); }; }; then 3619 ac_header_compiler=yes 3620 else 3621 echo "$as_me: failed program was:" >&5 3622 sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 ac_header_compiler=no 3625 fi 3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3628 echo "${ECHO_T}$ac_header_compiler" >&6 3629 3630 # Is the header present? 3631 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3632 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3633 cat >conftest.$ac_ext <<_ACEOF 3634 /* confdefs.h. */ 3635 _ACEOF 3636 cat confdefs.h >>conftest.$ac_ext 3637 cat >>conftest.$ac_ext <<_ACEOF 3638 /* end confdefs.h. */ 3639 #include <minix/config.h> 3640 _ACEOF 3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } >/dev/null; then 3649 if test -s conftest.err; then 3650 ac_cpp_err=$ac_c_preproc_warn_flag 3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3652 else 3653 ac_cpp_err= 3654 fi 3655 else 3656 ac_cpp_err=yes 3657 fi 3658 if test -z "$ac_cpp_err"; then 3659 ac_header_preproc=yes 3660 else 3661 echo "$as_me: failed program was:" >&5 3662 sed 's/^/| /' conftest.$ac_ext >&5 3663 3664 ac_header_preproc=no 3665 fi 3666 rm -f conftest.err conftest.$ac_ext 3667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3668 echo "${ECHO_T}$ac_header_preproc" >&6 3669 3670 # So? What about this header? 3671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3672 yes:no: ) 3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3674 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3676 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3677 ac_header_preproc=yes 3678 ;; 3679 no:yes:* ) 3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3681 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3682 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3683 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3685 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3687 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3688 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3689 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3690 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3691 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3692 ( 3693 cat <<\_ASBOX 3694 ## ------------------------------------------ ## 3695 ## Report this to the AC_PACKAGE_NAME lists. ## 3696 ## ------------------------------------------ ## 3697 _ASBOX 3698 ) | 3699 sed "s/^/$as_me: WARNING: /" >&2 3700 ;; 3701 esac 3702 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3703 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3704 if test "${ac_cv_header_minix_config_h+set}" = set; then 3705 echo $ECHO_N "(cached) $ECHO_C" >&6 3706 else 3707 ac_cv_header_minix_config_h=$ac_header_preproc 3708 fi 3709 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3710 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3711 3712 fi 3713 if test $ac_cv_header_minix_config_h = yes; then 3714 MINIX=yes 3715 else 3716 MINIX= 3717 fi 3718 3719 3720 if test "$MINIX" = yes; then 3721 3722 cat >>confdefs.h <<\_ACEOF 3723 #define _POSIX_SOURCE 1 3724 _ACEOF 3725 3726 3727 cat >>confdefs.h <<\_ACEOF 3728 #define _POSIX_1_SOURCE 2 3729 _ACEOF 3730 3731 3732 cat >>confdefs.h <<\_ACEOF 3733 #define _MINIX 1 3734 _ACEOF 3735 3736 fi 3737 3738 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3739 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3740 if test "${ac_cv_prog_cc_stdc+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742 else 3743 ac_cv_prog_cc_stdc=no 3744 ac_save_CFLAGS="$CFLAGS" 3745 # Don't try gcc -ansi; that turns off useful extensions and 3746 # breaks some systems' header files. 3747 # AIX -qlanglvl=ansi 3748 # Ultrix and OSF/1 -std1 3749 # HP-UX -Aa -D_HPUX_SOURCE 3750 # SVR4 -Xc 3751 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 3752 do 3753 CFLAGS="$ac_save_CFLAGS $ac_arg" 3754 cat >conftest.$ac_ext <<_ACEOF 3755 /* confdefs.h. */ 3756 _ACEOF 3757 cat confdefs.h >>conftest.$ac_ext 3758 cat >>conftest.$ac_ext <<_ACEOF 3759 /* end confdefs.h. */ 3760 #if !defined(__STDC__) || __STDC__ != 1 3761 choke me 3762 #endif 3763 3764 int 3765 main () 3766 { 3767 int test (int i, double x); 3768 struct s1 {int (*f) (int a);}; 3769 struct s2 {int (*f) (double a);}; 3770 ; 3771 return 0; 3772 } 3773 _ACEOF 3774 rm -f conftest.$ac_objext 3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3776 (eval $ac_compile) 2>conftest.er1 3777 ac_status=$? 3778 grep -v '^ *+' conftest.er1 >conftest.err 3779 rm -f conftest.er1 3780 cat conftest.err >&5 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } && 3783 { ac_try='test -z "$ac_c_werror_flag" 3784 || test ! -s conftest.err' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; } && 3790 { ac_try='test -s conftest.$ac_objext' 3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3792 (eval $ac_try) 2>&5 3793 ac_status=$? 3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); }; }; then 3796 ac_cv_prog_cc_stdc="$ac_arg"; break 3797 else 3798 echo "$as_me: failed program was:" >&5 3799 sed 's/^/| /' conftest.$ac_ext >&5 3800 3801 fi 3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3803 done 3804 CFLAGS="$ac_save_CFLAGS" 3805 3806 fi 3807 3808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3810 case "x$ac_cv_prog_cc_stdc" in 3811 x|xno) ;; 3812 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 3813 esac 3814 3815 3816 echo "$as_me:$LINENO: checking for function prototypes" >&5 3817 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3818 if test "$ac_cv_prog_cc_stdc" != no; then 3819 echo "$as_me:$LINENO: result: yes" >&5 3820 echo "${ECHO_T}yes" >&6 3821 cat >>confdefs.h <<\_ACEOF 3822 #define PROTOTYPES 1 3823 _ACEOF 3824 3825 U= ANSI2KNR= 3826 else 3827 echo "$as_me:$LINENO: result: no" >&5 3828 echo "${ECHO_T}no" >&6 3829 U=_ ANSI2KNR=ansi2knr 3830 fi 3831 3832 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2681 3833 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2682 3834 if test "${ac_cv_c_const+set}" = set; then … … 2684 3836 else 2685 3837 cat >conftest.$ac_ext <<_ACEOF 2686 #line 2686 "configure" 2687 #include "confdefs.h" 3838 /* confdefs.h. */ 3839 _ACEOF 3840 cat confdefs.h >>conftest.$ac_ext 3841 cat >>conftest.$ac_ext <<_ACEOF 3842 /* end confdefs.h. */ 2688 3843 2689 3844 int … … 2742 3897 _ACEOF 2743 3898 rm -f conftest.$ac_objext 2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5 2745 (eval $ac_compile) 2>&5 2746 ac_status=$? 2747 echo "$as_me:2747: \$? = $ac_status" >&5 3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3900 (eval $ac_compile) 2>conftest.er1 3901 ac_status=$? 3902 grep -v '^ *+' conftest.er1 >conftest.err 3903 rm -f conftest.er1 3904 cat conftest.err >&5 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 3906 (exit $ac_status); } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:2753: \$? = $ac_status" >&5 3907 { ac_try='test -z "$ac_c_werror_flag" 3908 || test ! -s conftest.err' 3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3910 (eval $ac_try) 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; } && 3914 { ac_try='test -s conftest.$ac_objext' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 3919 (exit $ac_status); }; }; then 2755 3920 ac_cv_c_const=yes 2756 3921 else 2757 3922 echo "$as_me: failed program was:" >&5 2758 cat conftest.$ac_ext >&5 3923 sed 's/^/| /' conftest.$ac_ext >&5 3924 2759 3925 ac_cv_c_const=no 2760 3926 fi 2761 rm -f conftest. $ac_objext conftest.$ac_ext2762 fi 2763 echo "$as_me: 2763: result: $ac_cv_c_const" >&53927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3928 fi 3929 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2764 3930 echo "${ECHO_T}$ac_cv_c_const" >&6 2765 3931 if test $ac_cv_c_const = no; then 2766 3932 2767 cat >>confdefs.h <<\ EOF3933 cat >>confdefs.h <<\_ACEOF 2768 3934 #define const 2769 EOF 2770 2771 fi 2772 2773 echo "$as_me:2773: checking for ANSI C header files" >&5 2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2775 if test "${ac_cv_header_stdc+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777 else 2778 cat >conftest.$ac_ext <<_ACEOF 2779 #line 2779 "configure" 2780 #include "confdefs.h" 2781 #include <stdlib.h> 2782 #include <stdarg.h> 2783 #include <string.h> 2784 #include <float.h> 2785 2786 _ACEOF 2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5 2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2789 ac_status=$? 2790 egrep -v '^ *\+' conftest.er1 >conftest.err 2791 rm -f conftest.er1 2792 cat conftest.err >&5 2793 echo "$as_me:2793: \$? = $ac_status" >&5 2794 (exit $ac_status); } >/dev/null; then 2795 if test -s conftest.err; then 2796 ac_cpp_err=$ac_c_preproc_warn_flag 2797 else 2798 ac_cpp_err= 2799 fi 2800 else 2801 ac_cpp_err=yes 2802 fi 2803 if test -z "$ac_cpp_err"; then 2804 ac_cv_header_stdc=yes 2805 else 2806 echo "$as_me: failed program was:" >&5 2807 cat conftest.$ac_ext >&5 2808 ac_cv_header_stdc=no 2809 fi 2810 rm -f conftest.err conftest.$ac_ext 2811 2812 if test $ac_cv_header_stdc = yes; then 2813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2814 cat >conftest.$ac_ext <<_ACEOF 2815 #line 2815 "configure" 2816 #include "confdefs.h" 2817 #include <string.h> 2818 2819 _ACEOF 2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2821 egrep "memchr" >/dev/null 2>&1; then 2822 : 2823 else 2824 ac_cv_header_stdc=no 2825 fi 2826 rm -f conftest* 2827 2828 fi 2829 2830 if test $ac_cv_header_stdc = yes; then 2831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2832 cat >conftest.$ac_ext <<_ACEOF 2833 #line 2833 "configure" 2834 #include "confdefs.h" 2835 #include <stdlib.h> 2836 2837 _ACEOF 2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2839 egrep "free" >/dev/null 2>&1; then 2840 : 2841 else 2842 ac_cv_header_stdc=no 2843 fi 2844 rm -f conftest* 2845 2846 fi 2847 2848 if test $ac_cv_header_stdc = yes; then 2849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2850 if test "$cross_compiling" = yes; then 2851 : 2852 else 2853 cat >conftest.$ac_ext <<_ACEOF 2854 #line 2854 "configure" 2855 #include "confdefs.h" 2856 #include <ctype.h> 2857 #if ((' ' & 0x0FF) == 0x020) 2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2860 #else 2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2862 || ('j' <= (c) && (c) <= 'r') \ 2863 || ('s' <= (c) && (c) <= 'z')) 2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2865 #endif 2866 2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2868 int 2869 main () 2870 { 2871 int i; 2872 for (i = 0; i < 256; i++) 2873 if (XOR (islower (i), ISLOWER (i)) 2874 || toupper (i) != TOUPPER (i)) 2875 exit(2); 2876 exit (0); 2877 } 2878 _ACEOF 2879 rm -f conftest$ac_exeext 2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5 2881 (eval $ac_link) 2>&5 2882 ac_status=$? 2883 echo "$as_me:2883: \$? = $ac_status" >&5 2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2885 { (eval echo "$as_me:2885: \"$ac_try\"") >&5 2886 (eval $ac_try) 2>&5 2887 ac_status=$? 2888 echo "$as_me:2888: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 : 2891 else 2892 echo "$as_me: program exited with status $ac_status" >&5 2893 echo "$as_me: failed program was:" >&5 2894 cat conftest.$ac_ext >&5 2895 ac_cv_header_stdc=no 2896 fi 2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2898 fi 2899 fi 2900 fi 2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5 2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2903 if test $ac_cv_header_stdc = yes; then 2904 2905 cat >>confdefs.h <<\EOF 2906 #define STDC_HEADERS 1 2907 EOF 2908 2909 fi 2910 2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2912 do 2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2914 echo "$as_me:2914: checking for $ac_header" >&5 2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2917 echo $ECHO_N "(cached) $ECHO_C" >&6 2918 else 2919 cat >conftest.$ac_ext <<_ACEOF 2920 #line 2920 "configure" 2921 #include "confdefs.h" 2922 #include <$ac_header> 2923 _ACEOF 2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5 2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2926 ac_status=$? 2927 egrep -v '^ *\+' conftest.er1 >conftest.err 2928 rm -f conftest.er1 2929 cat conftest.err >&5 2930 echo "$as_me:2930: \$? = $ac_status" >&5 2931 (exit $ac_status); } >/dev/null; then 2932 if test -s conftest.err; then 2933 ac_cpp_err=$ac_c_preproc_warn_flag 2934 else 2935 ac_cpp_err= 2936 fi 2937 else 2938 ac_cpp_err=yes 2939 fi 2940 if test -z "$ac_cpp_err"; then 2941 eval "$ac_ac_Header=yes" 2942 else 2943 echo "$as_me: failed program was:" >&5 2944 cat conftest.$ac_ext >&5 2945 eval "$ac_ac_Header=no" 2946 fi 2947 rm -f conftest.err conftest.$ac_ext 2948 fi 2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2952 cat >>confdefs.h <<EOF 2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2954 EOF 2955 2956 fi 2957 done 2958 2959 echo "$as_me:2959: checking for off_t" >&5 3935 _ACEOF 3936 3937 fi 3938 3939 echo "$as_me:$LINENO: checking for off_t" >&5 2960 3940 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2961 3941 if test "${ac_cv_type_off_t+set}" = set; then … … 2963 3943 else 2964 3944 cat >conftest.$ac_ext <<_ACEOF 2965 #line 2965 "configure" 2966 #include "confdefs.h" 3945 /* confdefs.h. */ 3946 _ACEOF 3947 cat confdefs.h >>conftest.$ac_ext 3948 cat >>conftest.$ac_ext <<_ACEOF 3949 /* end confdefs.h. */ 2967 3950 $ac_includes_default 2968 3951 int … … 2978 3961 _ACEOF 2979 3962 rm -f conftest.$ac_objext 2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5 2981 (eval $ac_compile) 2>&5 2982 ac_status=$? 2983 echo "$as_me:2983: \$? = $ac_status" >&5 3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3964 (eval $ac_compile) 2>conftest.er1 3965 ac_status=$? 3966 grep -v '^ *+' conftest.er1 >conftest.err 3967 rm -f conftest.er1 3968 cat conftest.err >&5 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 3970 (exit $ac_status); } && 2985 { ac_try='test -s conftest.$ac_objext' 2986 { (eval echo "$as_me:2986: \"$ac_try\"") >&5 2987 (eval $ac_try) 2>&5 2988 ac_status=$? 2989 echo "$as_me:2989: \$? = $ac_status" >&5 3971 { ac_try='test -z "$ac_c_werror_flag" 3972 || test ! -s conftest.err' 3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3974 (eval $ac_try) 2>&5 3975 ac_status=$? 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); }; } && 3978 { ac_try='test -s conftest.$ac_objext' 3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3980 (eval $ac_try) 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 3983 (exit $ac_status); }; }; then 2991 3984 ac_cv_type_off_t=yes 2992 3985 else 2993 3986 echo "$as_me: failed program was:" >&5 2994 cat conftest.$ac_ext >&5 3987 sed 's/^/| /' conftest.$ac_ext >&5 3988 2995 3989 ac_cv_type_off_t=no 2996 3990 fi 2997 rm -f conftest. $ac_objext conftest.$ac_ext2998 fi 2999 echo "$as_me: 2999: result: $ac_cv_type_off_t" >&53991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3992 fi 3993 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3000 3994 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3001 3995 if test $ac_cv_type_off_t = yes; then … … 3003 3997 else 3004 3998 3005 cat >>confdefs.h << EOF3999 cat >>confdefs.h <<_ACEOF 3006 4000 #define off_t long 3007 EOF3008 3009 fi 3010 3011 echo "$as_me: 3011: checking for size_t" >&54001 _ACEOF 4002 4003 fi 4004 4005 echo "$as_me:$LINENO: checking for size_t" >&5 3012 4006 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3013 4007 if test "${ac_cv_type_size_t+set}" = set; then … … 3015 4009 else 3016 4010 cat >conftest.$ac_ext <<_ACEOF 3017 #line 3017 "configure" 3018 #include "confdefs.h" 4011 /* confdefs.h. */ 4012 _ACEOF 4013 cat confdefs.h >>conftest.$ac_ext 4014 cat >>conftest.$ac_ext <<_ACEOF 4015 /* end confdefs.h. */ 3019 4016 $ac_includes_default 3020 4017 int … … 3030 4027 _ACEOF 3031 4028 rm -f conftest.$ac_objext 3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>&5 3034 ac_status=$? 3035 echo "$as_me:3035: \$? = $ac_status" >&5 4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4030 (eval $ac_compile) 2>conftest.er1 4031 ac_status=$? 4032 grep -v '^ *+' conftest.er1 >conftest.err 4033 rm -f conftest.er1 4034 cat conftest.err >&5 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 4036 (exit $ac_status); } && 3037 { ac_try='test -s conftest.$ac_objext' 3038 { (eval echo "$as_me:3038: \"$ac_try\"") >&5 3039 (eval $ac_try) 2>&5 3040 ac_status=$? 3041 echo "$as_me:3041: \$? = $ac_status" >&5 4037 { ac_try='test -z "$ac_c_werror_flag" 4038 || test ! -s conftest.err' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; } && 4044 { ac_try='test -s conftest.$ac_objext' 4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 4049 (exit $ac_status); }; }; then 3043 4050 ac_cv_type_size_t=yes 3044 4051 else 3045 4052 echo "$as_me: failed program was:" >&5 3046 cat conftest.$ac_ext >&5 4053 sed 's/^/| /' conftest.$ac_ext >&5 4054 3047 4055 ac_cv_type_size_t=no 3048 4056 fi 3049 rm -f conftest. $ac_objext conftest.$ac_ext3050 fi 3051 echo "$as_me: 3051: result: $ac_cv_type_size_t" >&54057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4058 fi 4059 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3052 4060 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3053 4061 if test $ac_cv_type_size_t = yes; then … … 3055 4063 else 3056 4064 3057 cat >>confdefs.h << EOF4065 cat >>confdefs.h <<_ACEOF 3058 4066 #define size_t unsigned 3059 EOF3060 3061 fi 3062 3063 echo "$as_me: 3063: checking whether time.h and sys/time.h may both be included" >&54067 _ACEOF 4068 4069 fi 4070 4071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3064 4072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3065 4073 if test "${ac_cv_header_time+set}" = set; then … … 3067 4075 else 3068 4076 cat >conftest.$ac_ext <<_ACEOF 3069 #line 3069 "configure" 3070 #include "confdefs.h" 4077 /* confdefs.h. */ 4078 _ACEOF 4079 cat confdefs.h >>conftest.$ac_ext 4080 cat >>conftest.$ac_ext <<_ACEOF 4081 /* end confdefs.h. */ 3071 4082 #include <sys/types.h> 3072 4083 #include <sys/time.h> … … 3076 4087 main () 3077 4088 { 3078 struct tm *tp; 4089 if ((struct tm *) 0) 4090 return 0; 3079 4091 ; 3080 4092 return 0; … … 3082 4094 _ACEOF 3083 4095 rm -f conftest.$ac_objext 3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5 3085 (eval $ac_compile) 2>&5 3086 ac_status=$? 3087 echo "$as_me:3087: \$? = $ac_status" >&5 4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4097 (eval $ac_compile) 2>conftest.er1 4098 ac_status=$? 4099 grep -v '^ *+' conftest.er1 >conftest.err 4100 rm -f conftest.er1 4101 cat conftest.err >&5 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 4103 (exit $ac_status); } && 3089 { ac_try='test -s conftest.$ac_objext' 3090 { (eval echo "$as_me:3090: \"$ac_try\"") >&5 3091 (eval $ac_try) 2>&5 3092 ac_status=$? 3093 echo "$as_me:3093: \$? = $ac_status" >&5 4104 { ac_try='test -z "$ac_c_werror_flag" 4105 || test ! -s conftest.err' 4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4107 (eval $ac_try) 2>&5 4108 ac_status=$? 4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4110 (exit $ac_status); }; } && 4111 { ac_try='test -s conftest.$ac_objext' 4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4113 (eval $ac_try) 2>&5 4114 ac_status=$? 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 4116 (exit $ac_status); }; }; then 3095 4117 ac_cv_header_time=yes 3096 4118 else 3097 4119 echo "$as_me: failed program was:" >&5 3098 cat conftest.$ac_ext >&5 4120 sed 's/^/| /' conftest.$ac_ext >&5 4121 3099 4122 ac_cv_header_time=no 3100 4123 fi 3101 rm -f conftest. $ac_objext conftest.$ac_ext3102 fi 3103 echo "$as_me: 3103: result: $ac_cv_header_time" >&54124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4125 fi 4126 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3104 4127 echo "${ECHO_T}$ac_cv_header_time" >&6 3105 4128 if test $ac_cv_header_time = yes; then 3106 4129 3107 cat >>confdefs.h <<\ EOF4130 cat >>confdefs.h <<\_ACEOF 3108 4131 #define TIME_WITH_SYS_TIME 1 3109 EOF3110 3111 fi 3112 3113 echo "$as_me: 3113: checking whether struct tm is in sys/time.h or time.h" >&54132 _ACEOF 4133 4134 fi 4135 4136 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 3114 4137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3115 4138 if test "${ac_cv_struct_tm+set}" = set; then … … 3117 4140 else 3118 4141 cat >conftest.$ac_ext <<_ACEOF 3119 #line 3119 "configure" 3120 #include "confdefs.h" 4142 /* confdefs.h. */ 4143 _ACEOF 4144 cat confdefs.h >>conftest.$ac_ext 4145 cat >>conftest.$ac_ext <<_ACEOF 4146 /* end confdefs.h. */ 3121 4147 #include <sys/types.h> 3122 4148 #include <time.h> … … 3131 4157 _ACEOF 3132 4158 rm -f conftest.$ac_objext 3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5 3134 (eval $ac_compile) 2>&5 3135 ac_status=$? 3136 echo "$as_me:3136: \$? = $ac_status" >&5 4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4160 (eval $ac_compile) 2>conftest.er1 4161 ac_status=$? 4162 grep -v '^ *+' conftest.er1 >conftest.err 4163 rm -f conftest.er1 4164 cat conftest.err >&5 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 4166 (exit $ac_status); } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (eval echo "$as_me:3139: \"$ac_try\"") >&5 3140 (eval $ac_try) 2>&5 3141 ac_status=$? 3142 echo "$as_me:3142: \$? = $ac_status" >&5 4167 { ac_try='test -z "$ac_c_werror_flag" 4168 || test ! -s conftest.err' 4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4170 (eval $ac_try) 2>&5 4171 ac_status=$? 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); }; } && 4174 { ac_try='test -s conftest.$ac_objext' 4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4176 (eval $ac_try) 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 4179 (exit $ac_status); }; }; then 3144 4180 ac_cv_struct_tm=time.h 3145 4181 else 3146 4182 echo "$as_me: failed program was:" >&5 3147 cat conftest.$ac_ext >&5 4183 sed 's/^/| /' conftest.$ac_ext >&5 4184 3148 4185 ac_cv_struct_tm=sys/time.h 3149 4186 fi 3150 rm -f conftest. $ac_objext conftest.$ac_ext3151 fi 3152 echo "$as_me: 3152: result: $ac_cv_struct_tm" >&54187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4188 fi 4189 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 3153 4190 echo "${ECHO_T}$ac_cv_struct_tm" >&6 3154 4191 if test $ac_cv_struct_tm = sys/time.h; then 3155 4192 3156 cat >>confdefs.h <<\ EOF4193 cat >>confdefs.h <<\_ACEOF 3157 4194 #define TM_IN_SYS_TIME 1 3158 EOF 3159 3160 fi 4195 _ACEOF 4196 4197 fi 4198 3161 4199 3162 4200 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 3163 4201 cat >conftest.$ac_ext <<_ACEOF 3164 #line 3164 "configure" 3165 #include "confdefs.h" 4202 /* confdefs.h. */ 4203 _ACEOF 4204 cat confdefs.h >>conftest.$ac_ext 4205 cat >>conftest.$ac_ext <<_ACEOF 4206 /* end confdefs.h. */ 3166 4207 #include <stdio.h> 3167 4208 … … 3175 4216 _ACEOF 3176 4217 rm -f conftest.$ac_objext 3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5 3178 (eval $ac_compile) 2>&5 3179 ac_status=$? 3180 echo "$as_me:3180: \$? = $ac_status" >&5 4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4219 (eval $ac_compile) 2>conftest.er1 4220 ac_status=$? 4221 grep -v '^ *+' conftest.er1 >conftest.err 4222 rm -f conftest.er1 4223 cat conftest.err >&5 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 4225 (exit $ac_status); } && 3182 { ac_try='test -s conftest.$ac_objext' 3183 { (eval echo "$as_me:3183: \"$ac_try\"") >&5 3184 (eval $ac_try) 2>&5 3185 ac_status=$? 3186 echo "$as_me:3186: \$? = $ac_status" >&5 4226 { ac_try='test -z "$ac_c_werror_flag" 4227 || test ! -s conftest.err' 4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4229 (eval $ac_try) 2>&5 4230 ac_status=$? 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); }; } && 4233 { ac_try='test -s conftest.$ac_objext' 4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4235 (eval $ac_try) 2>&5 4236 ac_status=$? 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 4238 (exit $ac_status); }; }; then 3188 4239 : 3189 4240 else 3190 4241 echo "$as_me: failed program was:" >&5 3191 cat conftest.$ac_ext >&5 4242 sed 's/^/| /' conftest.$ac_ext >&5 4243 3192 4244 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3193 4245 fi 3194 rm -f conftest.$ac_objext conftest.$ac_ext 3195 fi 3196 3197 echo "$as_me:3197: checking for main in -lm" >&5 4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4247 fi 4248 4249 4250 4251 echo "$as_me:$LINENO: checking for main in -lm" >&5 3198 4252 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3199 4253 if test "${ac_cv_lib_m_main+set}" = set; then … … 3203 4257 LIBS="-lm $LIBS" 3204 4258 cat >conftest.$ac_ext <<_ACEOF 3205 #line 3205 "configure" 3206 #include "confdefs.h" 4259 /* confdefs.h. */ 4260 _ACEOF 4261 cat confdefs.h >>conftest.$ac_ext 4262 cat >>conftest.$ac_ext <<_ACEOF 4263 /* end confdefs.h. */ 4264 3207 4265 3208 4266 int … … 3215 4273 _ACEOF 3216 4274 rm -f conftest.$ac_objext conftest$ac_exeext 3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5 3218 (eval $ac_link) 2>&5 3219 ac_status=$? 3220 echo "$as_me:3220: \$? = $ac_status" >&5 4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4276 (eval $ac_link) 2>conftest.er1 4277 ac_status=$? 4278 grep -v '^ *+' conftest.er1 >conftest.err 4279 rm -f conftest.er1 4280 cat conftest.err >&5 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 4282 (exit $ac_status); } && 3222 { ac_try='test -s conftest$ac_exeext' 3223 { (eval echo "$as_me:3223: \"$ac_try\"") >&5 3224 (eval $ac_try) 2>&5 3225 ac_status=$? 3226 echo "$as_me:3226: \$? = $ac_status" >&5 4283 { ac_try='test -z "$ac_c_werror_flag" 4284 || test ! -s conftest.err' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; } && 4290 { ac_try='test -s conftest$ac_exeext' 4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4292 (eval $ac_try) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 4295 (exit $ac_status); }; }; then 3228 4296 ac_cv_lib_m_main=yes 3229 4297 else 3230 4298 echo "$as_me: failed program was:" >&5 3231 cat conftest.$ac_ext >&5 4299 sed 's/^/| /' conftest.$ac_ext >&5 4300 3232 4301 ac_cv_lib_m_main=no 3233 4302 fi 3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4303 rm -f conftest.err conftest.$ac_objext \ 4304 conftest$ac_exeext conftest.$ac_ext 3235 4305 LIBS=$ac_check_lib_save_LIBS 3236 4306 fi 3237 echo "$as_me: 3237: result: $ac_cv_lib_m_main" >&54307 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 3238 4308 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3239 4309 if test $ac_cv_lib_m_main = yes; then 3240 cat >>confdefs.h << EOF4310 cat >>confdefs.h <<_ACEOF 3241 4311 #define HAVE_LIBM 1 3242 EOF4312 _ACEOF 3243 4313 3244 4314 LIBS="-lm $LIBS" 3245 4315 3246 4316 fi 4317 4318 4319 4320 4321 4322 3247 4323 3248 4324 ac_header_dirent=no 3249 4325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3250 a c_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`3251 echo "$as_me: 3251: checking for $ac_hdr that defines DIR" >&54326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4327 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3252 4328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3253 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3254 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 3255 4331 else 3256 4332 cat >conftest.$ac_ext <<_ACEOF 3257 #line 3257 "configure" 3258 #include "confdefs.h" 4333 /* confdefs.h. */ 4334 _ACEOF 4335 cat confdefs.h >>conftest.$ac_ext 4336 cat >>conftest.$ac_ext <<_ACEOF 4337 /* end confdefs.h. */ 3259 4338 #include <sys/types.h> 3260 4339 #include <$ac_hdr> … … 3263 4342 main () 3264 4343 { 3265 DIR *dirp = 0; 4344 if ((DIR *) 0) 4345 return 0; 3266 4346 ; 3267 4347 return 0; … … 3269 4349 _ACEOF 3270 4350 rm -f conftest.$ac_objext 3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5 3272 (eval $ac_compile) 2>&5 3273 ac_status=$? 3274 echo "$as_me:3274: \$? = $ac_status" >&5 4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4352 (eval $ac_compile) 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 4358 (exit $ac_status); } && 3276 { ac_try='test -s conftest.$ac_objext' 3277 { (eval echo "$as_me:3277: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 4359 { ac_try='test -z "$ac_c_werror_flag" 4360 || test ! -s conftest.err' 4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4362 (eval $ac_try) 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; } && 4366 { ac_try='test -s conftest.$ac_objext' 4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4368 (eval $ac_try) 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 4371 (exit $ac_status); }; }; then 3282 eval "$a c_ac_Header=yes"4372 eval "$as_ac_Header=yes" 3283 4373 else 3284 4374 echo "$as_me: failed program was:" >&5 3285 cat conftest.$ac_ext >&5 3286 eval "$ac_ac_Header=no" 3287 fi 3288 rm -f conftest.$ac_objext conftest.$ac_ext 3289 fi 3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3293 cat >>confdefs.h <<EOF 3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3295 EOF 4375 sed 's/^/| /' conftest.$ac_ext >&5 4376 4377 eval "$as_ac_Header=no" 4378 fi 4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4380 fi 4381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4384 cat >>confdefs.h <<_ACEOF 4385 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4386 _ACEOF 3296 4387 3297 4388 ac_header_dirent=$ac_hdr; break … … 3301 4392 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3302 4393 if test $ac_header_dirent = dirent.h; then 3303 echo "$as_me: 3303: checking for opendir in -ldir" >&53304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&63305 if test "${ac_cv_ lib_dir_opendir+set}" = set; then4394 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4396 if test "${ac_cv_search_opendir+set}" = set; then 3306 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 4398 else 3308 ac_ check_lib_save_LIBS=$LIBS3309 LIBS="-ldir $LIBS" 4399 ac_func_search_save_LIBS=$LIBS 4400 ac_cv_search_opendir=no 3310 4401 cat >conftest.$ac_ext <<_ACEOF 3311 #line 3311 "configure" 3312 #include "confdefs.h" 4402 /* confdefs.h. */ 4403 _ACEOF 4404 cat confdefs.h >>conftest.$ac_ext 4405 cat >>conftest.$ac_ext <<_ACEOF 4406 /* end confdefs.h. */ 3313 4407 3314 4408 /* Override any gcc2 internal prototype to avoid an error. */ … … 3328 4422 _ACEOF 3329 4423 rm -f conftest.$ac_objext conftest$ac_exeext 3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5 3331 (eval $ac_link) 2>&5 3332 ac_status=$? 3333 echo "$as_me:3333: \$? = $ac_status" >&5 4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4425 (eval $ac_link) 2>conftest.er1 4426 ac_status=$? 4427 grep -v '^ *+' conftest.er1 >conftest.err 4428 rm -f conftest.er1 4429 cat conftest.err >&5 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 4431 (exit $ac_status); } && 3335 { ac_try='test -s conftest$ac_exeext' 3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5 3337 (eval $ac_try) 2>&5 3338 ac_status=$? 3339 echo "$as_me:3339: \$? = $ac_status" >&5 4432 { ac_try='test -z "$ac_c_werror_flag" 4433 || test ! -s conftest.err' 4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4435 (eval $ac_try) 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; } && 4439 { ac_try='test -s conftest$ac_exeext' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 4444 (exit $ac_status); }; }; then 3341 ac_cv_ lib_dir_opendir=yes4445 ac_cv_search_opendir="none required" 3342 4446 else 3343 4447 echo "$as_me: failed program was:" >&5 3344 cat conftest.$ac_ext >&5 3345 ac_cv_lib_dir_opendir=no 3346 fi 3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3348 LIBS=$ac_check_lib_save_LIBS 3349 fi 3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5 3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3352 if test $ac_cv_lib_dir_opendir = yes; then 3353 LIBS="$LIBS -ldir" 3354 fi 3355 3356 else 3357 echo "$as_me:3357: checking for opendir in -lx" >&5 3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3359 if test "${ac_cv_lib_x_opendir+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361 else 3362 ac_check_lib_save_LIBS=$LIBS 3363 LIBS="-lx $LIBS" 3364 cat >conftest.$ac_ext <<_ACEOF 3365 #line 3365 "configure" 3366 #include "confdefs.h" 4448 sed 's/^/| /' conftest.$ac_ext >&5 4449 4450 fi 4451 rm -f conftest.err conftest.$ac_objext \ 4452 conftest$ac_exeext conftest.$ac_ext 4453 if test "$ac_cv_search_opendir" = no; then 4454 for ac_lib in dir; do 4455 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4456 cat >conftest.$ac_ext <<_ACEOF 4457 /* confdefs.h. */ 4458 _ACEOF 4459 cat confdefs.h >>conftest.$ac_ext 4460 cat >>conftest.$ac_ext <<_ACEOF 4461 /* end confdefs.h. */ 3367 4462 3368 4463 /* Override any gcc2 internal prototype to avoid an error. */ … … 3382 4477 _ACEOF 3383 4478 rm -f conftest.$ac_objext conftest$ac_exeext 3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5 3385 (eval $ac_link) 2>&5 3386 ac_status=$? 3387 echo "$as_me:3387: \$? = $ac_status" >&5 4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4480 (eval $ac_link) 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 4486 (exit $ac_status); } && 3389 { ac_try='test -s conftest$ac_exeext' 3390 { (eval echo "$as_me:3390: \"$ac_try\"") >&5 3391 (eval $ac_try) 2>&5 3392 ac_status=$? 3393 echo "$as_me:3393: \$? = $ac_status" >&5 4487 { ac_try='test -z "$ac_c_werror_flag" 4488 || test ! -s conftest.err' 4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4490 (eval $ac_try) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; } && 4494 { ac_try='test -s conftest$ac_exeext' 4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4496 (eval $ac_try) 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 4499 (exit $ac_status); }; }; then 3395 ac_cv_lib_x_opendir=yes 4500 ac_cv_search_opendir="-l$ac_lib" 4501 break 3396 4502 else 3397 4503 echo "$as_me: failed program was:" >&5 3398 cat conftest.$ac_ext >&5 3399 ac_cv_lib_x_opendir=no 3400 fi 3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3402 LIBS=$ac_check_lib_save_LIBS 3403 fi 3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5 3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3406 if test $ac_cv_lib_x_opendir = yes; then 3407 LIBS="$LIBS -lx" 3408 fi 3409 3410 fi 3411 3412 echo "$as_me:3412: checking for ANSI C header files" >&5 4504 sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 fi 4507 rm -f conftest.err conftest.$ac_objext \ 4508 conftest$ac_exeext conftest.$ac_ext 4509 done 4510 fi 4511 LIBS=$ac_func_search_save_LIBS 4512 fi 4513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4514 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4515 if test "$ac_cv_search_opendir" != no; then 4516 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4517 4518 fi 4519 4520 else 4521 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4523 if test "${ac_cv_search_opendir+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525 else 4526 ac_func_search_save_LIBS=$LIBS 4527 ac_cv_search_opendir=no 4528 cat >conftest.$ac_ext <<_ACEOF 4529 /* confdefs.h. */ 4530 _ACEOF 4531 cat confdefs.h >>conftest.$ac_ext 4532 cat >>conftest.$ac_ext <<_ACEOF 4533 /* end confdefs.h. */ 4534 4535 /* Override any gcc2 internal prototype to avoid an error. */ 4536 #ifdef __cplusplus 4537 extern "C" 4538 #endif 4539 /* We use char because int might match the return type of a gcc2 4540 builtin and then its argument prototype would still apply. */ 4541 char opendir (); 4542 int 4543 main () 4544 { 4545 opendir (); 4546 ; 4547 return 0; 4548 } 4549 _ACEOF 4550 rm -f conftest.$ac_objext conftest$ac_exeext 4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4552 (eval $ac_link) 2>conftest.er1 4553 ac_status=$? 4554 grep -v '^ *+' conftest.er1 >conftest.err 4555 rm -f conftest.er1 4556 cat conftest.err >&5 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } && 4559 { ac_try='test -z "$ac_c_werror_flag" 4560 || test ! -s conftest.err' 4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4562 (eval $ac_try) 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); }; } && 4566 { ac_try='test -s conftest$ac_exeext' 4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4568 (eval $ac_try) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 ac_cv_search_opendir="none required" 4573 else 4574 echo "$as_me: failed program was:" >&5 4575 sed 's/^/| /' conftest.$ac_ext >&5 4576 4577 fi 4578 rm -f conftest.err conftest.$ac_objext \ 4579 conftest$ac_exeext conftest.$ac_ext 4580 if test "$ac_cv_search_opendir" = no; then 4581 for ac_lib in x; do 4582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4583 cat >conftest.$ac_ext <<_ACEOF 4584 /* confdefs.h. */ 4585 _ACEOF 4586 cat confdefs.h >>conftest.$ac_ext 4587 cat >>conftest.$ac_ext <<_ACEOF 4588 /* end confdefs.h. */ 4589 4590 /* Override any gcc2 internal prototype to avoid an error. */ 4591 #ifdef __cplusplus 4592 extern "C" 4593 #endif 4594 /* We use char because int might match the return type of a gcc2 4595 builtin and then its argument prototype would still apply. */ 4596 char opendir (); 4597 int 4598 main () 4599 { 4600 opendir (); 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 rm -f conftest.$ac_objext conftest$ac_exeext 4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4607 (eval $ac_link) 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -z "$ac_c_werror_flag" 4615 || test ! -s conftest.err' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest$ac_exeext' 4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4623 (eval $ac_try) 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; }; then 4627 ac_cv_search_opendir="-l$ac_lib" 4628 break 4629 else 4630 echo "$as_me: failed program was:" >&5 4631 sed 's/^/| /' conftest.$ac_ext >&5 4632 4633 fi 4634 rm -f conftest.err conftest.$ac_objext \ 4635 conftest$ac_exeext conftest.$ac_ext 4636 done 4637 fi 4638 LIBS=$ac_func_search_save_LIBS 4639 fi 4640 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4641 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4642 if test "$ac_cv_search_opendir" != no; then 4643 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4644 4645 fi 4646 4647 fi 4648 4649 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3413 4650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3414 4651 if test "${ac_cv_header_stdc+set}" = set; then … … 3416 4653 else 3417 4654 cat >conftest.$ac_ext <<_ACEOF 3418 #line 3418 "configure" 3419 #include "confdefs.h" 4655 /* confdefs.h. */ 4656 _ACEOF 4657 cat confdefs.h >>conftest.$ac_ext 4658 cat >>conftest.$ac_ext <<_ACEOF 4659 /* end confdefs.h. */ 3420 4660 #include <stdlib.h> 3421 4661 #include <stdarg.h> … … 3423 4663 #include <float.h> 3424 4664 3425 _ACEOF 3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5 3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3428 ac_status=$? 3429 egrep -v '^ *\+' conftest.er1 >conftest.err 4665 int 4666 main () 4667 { 4668 4669 ; 4670 return 0; 4671 } 4672 _ACEOF 4673 rm -f conftest.$ac_objext 4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4675 (eval $ac_compile) 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 3430 4678 rm -f conftest.er1 3431 4679 cat conftest.err >&5 3432 echo "$as_me:3432: \$? = $ac_status" >&5 3433 (exit $ac_status); } >/dev/null; then 3434 if test -s conftest.err; then 3435 ac_cpp_err=$ac_c_preproc_warn_flag 3436 else 3437 ac_cpp_err= 3438 fi 3439 else 3440 ac_cpp_err=yes 3441 fi 3442 if test -z "$ac_cpp_err"; then 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } && 4682 { ac_try='test -z "$ac_c_werror_flag" 4683 || test ! -s conftest.err' 4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4685 (eval $ac_try) 2>&5 4686 ac_status=$? 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4688 (exit $ac_status); }; } && 4689 { ac_try='test -s conftest.$ac_objext' 4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691 (eval $ac_try) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); }; }; then 3443 4695 ac_cv_header_stdc=yes 3444 4696 else 3445 4697 echo "$as_me: failed program was:" >&5 3446 cat conftest.$ac_ext >&5 3447 ac_cv_header_stdc=no 3448 fi 3449 rm -f conftest.err conftest.$ac_ext 4698 sed 's/^/| /' conftest.$ac_ext >&5 4699 4700 ac_cv_header_stdc=no 4701 fi 4702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3450 4703 3451 4704 if test $ac_cv_header_stdc = yes; then 3452 4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3453 4706 cat >conftest.$ac_ext <<_ACEOF 3454 #line 3454 "configure" 3455 #include "confdefs.h" 4707 /* confdefs.h. */ 4708 _ACEOF 4709 cat confdefs.h >>conftest.$ac_ext 4710 cat >>conftest.$ac_ext <<_ACEOF 4711 /* end confdefs.h. */ 3456 4712 #include <string.h> 3457 4713 3458 4714 _ACEOF 3459 4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3460 egrep"memchr" >/dev/null 2>&1; then4716 $EGREP "memchr" >/dev/null 2>&1; then 3461 4717 : 3462 4718 else … … 3470 4726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3471 4727 cat >conftest.$ac_ext <<_ACEOF 3472 #line 3472 "configure" 3473 #include "confdefs.h" 4728 /* confdefs.h. */ 4729 _ACEOF 4730 cat confdefs.h >>conftest.$ac_ext 4731 cat >>conftest.$ac_ext <<_ACEOF 4732 /* end confdefs.h. */ 3474 4733 #include <stdlib.h> 3475 4734 3476 4735 _ACEOF 3477 4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3478 egrep"free" >/dev/null 2>&1; then4737 $EGREP "free" >/dev/null 2>&1; then 3479 4738 : 3480 4739 else … … 3491 4750 else 3492 4751 cat >conftest.$ac_ext <<_ACEOF 3493 #line 3493 "configure" 3494 #include "confdefs.h" 4752 /* confdefs.h. */ 4753 _ACEOF 4754 cat confdefs.h >>conftest.$ac_ext 4755 cat >>conftest.$ac_ext <<_ACEOF 4756 /* end confdefs.h. */ 3495 4757 #include <ctype.h> 3496 4758 #if ((' ' & 0x0FF) == 0x020) … … 3498 4760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3499 4761 #else 3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3501 || ('j' <= (c) && (c) <= 'r') \ 3502 || ('s' <= (c) && (c) <= 'z')) 4762 # define ISLOWER(c) \ 4763 (('a' <= (c) && (c) <= 'i') \ 4764 || ('j' <= (c) && (c) <= 'r') \ 4765 || ('s' <= (c) && (c) <= 'z')) 3503 4766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3504 4767 #endif … … 3511 4774 for (i = 0; i < 256; i++) 3512 4775 if (XOR (islower (i), ISLOWER (i)) 3513 4776 || toupper (i) != TOUPPER (i)) 3514 4777 exit(2); 3515 4778 exit (0); … … 3517 4780 _ACEOF 3518 4781 rm -f conftest$ac_exeext 3519 if { (eval echo "$as_me: 3519: \"$ac_link\"") >&54782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3520 4783 (eval $ac_link) 2>&5 3521 4784 ac_status=$? 3522 echo "$as_me: 3522: \$? = $ac_status" >&54785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3524 { (eval echo "$as_me: 3524: \"$ac_try\"") >&53525 (eval $ac_try) 2>&5 3526 ac_status=$? 3527 echo "$as_me: 3527: \$? = $ac_status" >&54787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 4791 (exit $ac_status); }; }; then 3529 4792 : … … 3531 4794 echo "$as_me: program exited with status $ac_status" >&5 3532 4795 echo "$as_me: failed program was:" >&5 3533 cat conftest.$ac_ext >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 ( exit $ac_status ) 3534 4799 ac_cv_header_stdc=no 3535 4800 fi 3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3537 fi 3538 fi 3539 fi 3540 echo "$as_me: 3540: result: $ac_cv_header_stdc" >&54801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4802 fi 4803 fi 4804 fi 4805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3541 4806 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3542 4807 if test $ac_cv_header_stdc = yes; then 3543 4808 3544 cat >>confdefs.h <<\ EOF4809 cat >>confdefs.h <<\_ACEOF 3545 4810 #define STDC_HEADERS 1 3546 EOF 3547 3548 fi 4811 _ACEOF 4812 4813 fi 4814 4815 4816 4817 4818 4819 4820 3549 4821 3550 4822 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 3551 4823 do 3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3553 echo "$as_me:3553: checking for $ac_header" >&5 4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4825 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4826 echo "$as_me:$LINENO: checking for $ac_header" >&5 3554 4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3555 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4828 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3556 4829 echo $ECHO_N "(cached) $ECHO_C" >&6 3557 else 3558 cat >conftest.$ac_ext <<_ACEOF 3559 #line 3559 "configure" 3560 #include "confdefs.h" 4830 fi 4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4833 else 4834 # Is the header compilable? 4835 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4837 cat >conftest.$ac_ext <<_ACEOF 4838 /* confdefs.h. */ 4839 _ACEOF 4840 cat confdefs.h >>conftest.$ac_ext 4841 cat >>conftest.$ac_ext <<_ACEOF 4842 /* end confdefs.h. */ 4843 $ac_includes_default 3561 4844 #include <$ac_header> 3562 4845 _ACEOF 3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5 3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3565 ac_status=$? 3566 egrep -v '^ *\+' conftest.er1 >conftest.err 4846 rm -f conftest.$ac_objext 4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4848 (eval $ac_compile) 2>conftest.er1 4849 ac_status=$? 4850 grep -v '^ *+' conftest.er1 >conftest.err 3567 4851 rm -f conftest.er1 3568 4852 cat conftest.err >&5 3569 echo "$as_me:3569: \$? = $ac_status" >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } && 4855 { ac_try='test -z "$ac_c_werror_flag" 4856 || test ! -s conftest.err' 4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4858 (eval $ac_try) 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); }; } && 4862 { ac_try='test -s conftest.$ac_objext' 4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4864 (eval $ac_try) 2>&5 4865 ac_status=$? 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); }; }; then 4868 ac_header_compiler=yes 4869 else 4870 echo "$as_me: failed program was:" >&5 4871 sed 's/^/| /' conftest.$ac_ext >&5 4872 4873 ac_header_compiler=no 4874 fi 4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4877 echo "${ECHO_T}$ac_header_compiler" >&6 4878 4879 # Is the header present? 4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4882 cat >conftest.$ac_ext <<_ACEOF 4883 /* confdefs.h. */ 4884 _ACEOF 4885 cat confdefs.h >>conftest.$ac_ext 4886 cat >>conftest.$ac_ext <<_ACEOF 4887 /* end confdefs.h. */ 4888 #include <$ac_header> 4889 _ACEOF 4890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 4897 (exit $ac_status); } >/dev/null; then 3571 4898 if test -s conftest.err; then 3572 4899 ac_cpp_err=$ac_c_preproc_warn_flag 4900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3573 4901 else 3574 4902 ac_cpp_err= … … 3578 4906 fi 3579 4907 if test -z "$ac_cpp_err"; then 3580 eval "$ac_ac_Header=yes"4908 ac_header_preproc=yes 3581 4909 else 3582 4910 echo "$as_me: failed program was:" >&5 3583 cat conftest.$ac_ext >&5 3584 eval "$ac_ac_Header=no" 4911 sed 's/^/| /' conftest.$ac_ext >&5 4912 4913 ac_header_preproc=no 3585 4914 fi 3586 4915 rm -f conftest.err conftest.$ac_ext 3587 fi 3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3591 cat >>confdefs.h <<EOF 3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3593 EOF 3594 3595 fi 4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4917 echo "${ECHO_T}$ac_header_preproc" >&6 4918 4919 # So? What about this header? 4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4921 yes:no: ) 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4926 ac_header_preproc=yes 4927 ;; 4928 no:yes:* ) 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4941 ( 4942 cat <<\_ASBOX 4943 ## ------------------------------------------ ## 4944 ## Report this to the AC_PACKAGE_NAME lists. ## 4945 ## ------------------------------------------ ## 4946 _ASBOX 4947 ) | 4948 sed "s/^/$as_me: WARNING: /" >&2 4949 ;; 4950 esac 4951 echo "$as_me:$LINENO: checking for $ac_header" >&5 4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4953 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955 else 4956 eval "$as_ac_Header=\$ac_header_preproc" 4957 fi 4958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4960 4961 fi 4962 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4963 cat >>confdefs.h <<_ACEOF 4964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4965 _ACEOF 4966 4967 fi 4968 3596 4969 done 3597 4970 3598 4971 cat >conftest.$ac_ext <<_ACEOF 3599 #line 3599 "configure" 3600 #include "confdefs.h" 4972 /* confdefs.h. */ 4973 _ACEOF 4974 cat confdefs.h >>conftest.$ac_ext 4975 cat >>conftest.$ac_ext <<_ACEOF 4976 /* end confdefs.h. */ 3601 4977 #include <stdio.h> 3602 4978 3603 4979 _ACEOF 3604 4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3605 egrep"fread" >/dev/null 2>&1; then3606 cat >>confdefs.h <<\ EOF4981 $EGREP "fread" >/dev/null 2>&1; then 4982 cat >>confdefs.h <<\_ACEOF 3607 4983 #define HAVE_FREAD_DECL 1 3608 EOF4984 _ACEOF 3609 4985 3610 4986 fi … … 3612 4988 3613 4989 cat >conftest.$ac_ext <<_ACEOF 3614 #line 3614 "configure" 3615 #include "confdefs.h" 4990 /* confdefs.h. */ 4991 _ACEOF 4992 cat confdefs.h >>conftest.$ac_ext 4993 cat >>conftest.$ac_ext <<_ACEOF 4994 /* end confdefs.h. */ 3616 4995 #include <stdio.h> 3617 4996 3618 4997 _ACEOF 3619 4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3620 egrep"fgetc" >/dev/null 2>&1; then3621 cat >>confdefs.h <<\ EOF4999 $EGREP "fgetc" >/dev/null 2>&1; then 5000 cat >>confdefs.h <<\_ACEOF 3622 5001 #define HAVE_FGETC_DECL 1 3623 EOF5002 _ACEOF 3624 5003 3625 5004 fi … … 3627 5006 3628 5007 cat >conftest.$ac_ext <<_ACEOF 3629 #line 3629 "configure" 3630 #include "confdefs.h" 5008 /* confdefs.h. */ 5009 _ACEOF 5010 cat confdefs.h >>conftest.$ac_ext 5011 cat >>conftest.$ac_ext <<_ACEOF 5012 /* end confdefs.h. */ 3631 5013 #include <sys/procfs.h> 3632 5014 3633 5015 _ACEOF 3634 5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3635 egrep"pr_brksize" >/dev/null 2>&1; then3636 cat >>confdefs.h <<\ EOF5017 $EGREP "pr_brksize" >/dev/null 2>&1; then 5018 cat >>confdefs.h <<\_ACEOF 3637 5019 #define HAVE_PR_BRKSIZE 1 3638 EOF5020 _ACEOF 3639 5021 3640 5022 fi 3641 5023 rm -f conftest* 5024 3642 5025 3643 5026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 3644 5027 # for constant arguments. Useless! 3645 echo "$as_me: 3645: checking for working alloca.h" >&55028 echo "$as_me:$LINENO: checking for working alloca.h" >&5 3646 5029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 3647 5030 if test "${ac_cv_working_alloca_h+set}" = set; then … … 3649 5032 else 3650 5033 cat >conftest.$ac_ext <<_ACEOF 3651 #line 3651 "configure" 3652 #include "confdefs.h" 5034 /* confdefs.h. */ 5035 _ACEOF 5036 cat confdefs.h >>conftest.$ac_ext 5037 cat >>conftest.$ac_ext <<_ACEOF 5038 /* end confdefs.h. */ 3653 5039 #include <alloca.h> 3654 5040 int … … 3661 5047 _ACEOF 3662 5048 rm -f conftest.$ac_objext conftest$ac_exeext 3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5 3664 (eval $ac_link) 2>&5 3665 ac_status=$? 3666 echo "$as_me:3666: \$? = $ac_status" >&5 5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5050 (eval $ac_link) 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3667 5056 (exit $ac_status); } && 3668 { ac_try='test -s conftest$ac_exeext' 3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5 3670 (eval $ac_try) 2>&5 3671 ac_status=$? 3672 echo "$as_me:3672: \$? = $ac_status" >&5 5057 { ac_try='test -z "$ac_c_werror_flag" 5058 || test ! -s conftest.err' 5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5060 (eval $ac_try) 2>&5 5061 ac_status=$? 5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); }; } && 5064 { ac_try='test -s conftest$ac_exeext' 5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5066 (eval $ac_try) 2>&5 5067 ac_status=$? 5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 5069 (exit $ac_status); }; }; then 3674 5070 ac_cv_working_alloca_h=yes 3675 5071 else 3676 5072 echo "$as_me: failed program was:" >&5 3677 cat conftest.$ac_ext >&5 5073 sed 's/^/| /' conftest.$ac_ext >&5 5074 3678 5075 ac_cv_working_alloca_h=no 3679 5076 fi 3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3681 fi 3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5 5077 rm -f conftest.err conftest.$ac_objext \ 5078 conftest$ac_exeext conftest.$ac_ext 5079 fi 5080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 3683 5081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3684 5082 if test $ac_cv_working_alloca_h = yes; then 3685 5083 3686 cat >>confdefs.h <<\ EOF5084 cat >>confdefs.h <<\_ACEOF 3687 5085 #define HAVE_ALLOCA_H 1 3688 EOF3689 3690 fi 3691 3692 echo "$as_me: 3692: checking for alloca" >&55086 _ACEOF 5087 5088 fi 5089 5090 echo "$as_me:$LINENO: checking for alloca" >&5 3693 5091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3694 5092 if test "${ac_cv_func_alloca_works+set}" = set; then … … 3696 5094 else 3697 5095 cat >conftest.$ac_ext <<_ACEOF 3698 #line 3698 "configure" 3699 #include "confdefs.h" 5096 /* confdefs.h. */ 5097 _ACEOF 5098 cat confdefs.h >>conftest.$ac_ext 5099 cat >>conftest.$ac_ext <<_ACEOF 5100 /* end confdefs.h. */ 3700 5101 #ifdef __GNUC__ 3701 5102 # define alloca __builtin_alloca … … 3728 5129 _ACEOF 3729 5130 rm -f conftest.$ac_objext conftest$ac_exeext 3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5 3731 (eval $ac_link) 2>&5 3732 ac_status=$? 3733 echo "$as_me:3733: \$? = $ac_status" >&5 5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5132 (eval $ac_link) 2>conftest.er1 5133 ac_status=$? 5134 grep -v '^ *+' conftest.er1 >conftest.err 5135 rm -f conftest.er1 5136 cat conftest.err >&5 5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 5138 (exit $ac_status); } && 3735 { ac_try='test -s conftest$ac_exeext' 3736 { (eval echo "$as_me:3736: \"$ac_try\"") >&5 3737 (eval $ac_try) 2>&5 3738 ac_status=$? 3739 echo "$as_me:3739: \$? = $ac_status" >&5 5139 { ac_try='test -z "$ac_c_werror_flag" 5140 || test ! -s conftest.err' 5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5142 (eval $ac_try) 2>&5 5143 ac_status=$? 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); }; } && 5146 { ac_try='test -s conftest$ac_exeext' 5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5148 (eval $ac_try) 2>&5 5149 ac_status=$? 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3740 5151 (exit $ac_status); }; }; then 3741 5152 ac_cv_func_alloca_works=yes 3742 5153 else 3743 5154 echo "$as_me: failed program was:" >&5 3744 cat conftest.$ac_ext >&5 5155 sed 's/^/| /' conftest.$ac_ext >&5 5156 3745 5157 ac_cv_func_alloca_works=no 3746 5158 fi 3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3748 fi 3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5 5159 rm -f conftest.err conftest.$ac_objext \ 5160 conftest$ac_exeext conftest.$ac_ext 5161 fi 5162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 3750 5163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3751 5164 3752 5165 if test $ac_cv_func_alloca_works = yes; then 3753 5166 3754 cat >>confdefs.h <<\ EOF5167 cat >>confdefs.h <<\_ACEOF 3755 5168 #define HAVE_ALLOCA 1 3756 EOF5169 _ACEOF 3757 5170 3758 5171 else … … 3764 5177 ALLOCA=alloca.$ac_objext 3765 5178 3766 cat >>confdefs.h <<\ EOF5179 cat >>confdefs.h <<\_ACEOF 3767 5180 #define C_ALLOCA 1 3768 EOF 3769 3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5 5181 _ACEOF 5182 5183 5184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 3771 5185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3772 5186 if test "${ac_cv_os_cray+set}" = set; then … … 3774 5188 else 3775 5189 cat >conftest.$ac_ext <<_ACEOF 3776 #line 3776 "configure" 3777 #include "confdefs.h" 5190 /* confdefs.h. */ 5191 _ACEOF 5192 cat confdefs.h >>conftest.$ac_ext 5193 cat >>conftest.$ac_ext <<_ACEOF 5194 /* end confdefs.h. */ 3778 5195 #if defined(CRAY) && ! defined(CRAY2) 3779 5196 webecray … … 3784 5201 _ACEOF 3785 5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3786 egrep"webecray" >/dev/null 2>&1; then5203 $EGREP "webecray" >/dev/null 2>&1; then 3787 5204 ac_cv_os_cray=yes 3788 5205 else … … 3792 5209 3793 5210 fi 3794 echo "$as_me: 3794: result: $ac_cv_os_cray" >&55211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 3795 5212 echo "${ECHO_T}$ac_cv_os_cray" >&6 3796 5213 if test $ac_cv_os_cray = yes; then 3797 5214 for ac_func in _getb67 GETB67 getb67; do 3798 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`3799 echo "$as_me: 3799: checking for $ac_func" >&55215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5216 echo "$as_me:$LINENO: checking for $ac_func" >&5 3800 5217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3801 if eval "test \"\${$a c_ac_var+set}\" = set"; then5218 if eval "test \"\${$as_ac_var+set}\" = set"; then 3802 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 3803 5220 else 3804 5221 cat >conftest.$ac_ext <<_ACEOF 3805 #line 3805 "configure" 3806 #include "confdefs.h" 5222 /* confdefs.h. */ 5223 _ACEOF 5224 cat confdefs.h >>conftest.$ac_ext 5225 cat >>conftest.$ac_ext <<_ACEOF 5226 /* end confdefs.h. */ 5227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5229 #define $ac_func innocuous_$ac_func 5230 3807 5231 /* System header to define __stub macros and hopefully few prototypes, 3808 which can conflict with char $ac_func (); below. */ 3809 #include <assert.h> 5232 which can conflict with char $ac_func (); below. 5233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5234 <limits.h> exists even on freestanding compilers. */ 5235 5236 #ifdef __STDC__ 5237 # include <limits.h> 5238 #else 5239 # include <assert.h> 5240 #endif 5241 5242 #undef $ac_func 5243 3810 5244 /* Override any gcc2 internal prototype to avoid an error. */ 3811 5245 #ifdef __cplusplus 3812 5246 extern "C" 5247 { 3813 5248 #endif 3814 5249 /* We use char because int might match the return type of a gcc2 3815 5250 builtin and then its argument prototype would still apply. */ 3816 5251 char $ac_func (); 3817 char (*f) ();3818 3819 int3820 main ()3821 {3822 5252 /* The GNU C library defines this for functions which it implements 3823 5253 to always fail with ENOSYS. Some functions are actually named … … 3826 5256 choke me 3827 5257 #else 3828 f= $ac_func;5258 char (*f) () = $ac_func; 3829 5259 #endif 3830 5260 #ifdef __cplusplus 5261 } 5262 #endif 5263 5264 int 5265 main () 5266 { 5267 return f != $ac_func; 3831 5268 ; 3832 5269 return 0; … … 3834 5271 _ACEOF 3835 5272 rm -f conftest.$ac_objext conftest$ac_exeext 3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5 3837 (eval $ac_link) 2>&5 3838 ac_status=$? 3839 echo "$as_me:3839: \$? = $ac_status" >&5 5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5274 (eval $ac_link) 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 5280 (exit $ac_status); } && 3841 { ac_try='test -s conftest$ac_exeext' 3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5 3843 (eval $ac_try) 2>&5 3844 ac_status=$? 3845 echo "$as_me:3845: \$? = $ac_status" >&5 5281 { ac_try='test -z "$ac_c_werror_flag" 5282 || test ! -s conftest.err' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; } && 5288 { ac_try='test -s conftest$ac_exeext' 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5290 (eval $ac_try) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 5293 (exit $ac_status); }; }; then 3847 eval "$a c_ac_var=yes"5294 eval "$as_ac_var=yes" 3848 5295 else 3849 5296 echo "$as_me: failed program was:" >&5 3850 cat conftest.$ac_ext >&5 3851 eval "$ac_ac_var=no" 3852 fi 3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3854 fi 3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5 3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then 3858 3859 cat >>confdefs.h <<EOF 5297 sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 eval "$as_ac_var=no" 5300 fi 5301 rm -f conftest.err conftest.$ac_objext \ 5302 conftest$ac_exeext conftest.$ac_ext 5303 fi 5304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5306 if test `eval echo '${'$as_ac_var'}'` = yes; then 5307 5308 cat >>confdefs.h <<_ACEOF 3860 5309 #define CRAY_STACKSEG_END $ac_func 3861 EOF5310 _ACEOF 3862 5311 3863 5312 break … … 3867 5316 fi 3868 5317 3869 echo "$as_me: 3869: checking stack direction for C alloca" >&55318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 3870 5319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 3871 5320 if test "${ac_cv_c_stack_direction+set}" = set; then … … 3876 5325 else 3877 5326 cat >conftest.$ac_ext <<_ACEOF 3878 #line 3878 "configure" 3879 #include "confdefs.h" 5327 /* confdefs.h. */ 5328 _ACEOF 5329 cat confdefs.h >>conftest.$ac_ext 5330 cat >>conftest.$ac_ext <<_ACEOF 5331 /* end confdefs.h. */ 3880 5332 int 3881 5333 find_stack_direction () … … 3899 5351 _ACEOF 3900 5352 rm -f conftest$ac_exeext 3901 if { (eval echo "$as_me: 3901: \"$ac_link\"") >&55353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3902 5354 (eval $ac_link) 2>&5 3903 5355 ac_status=$? 3904 echo "$as_me: 3904: \$? = $ac_status" >&55356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 5357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (eval echo "$as_me: 3906: \"$ac_try\"") >&53907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me: 3909: \$? = $ac_status" >&55358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 5362 (exit $ac_status); }; }; then 3911 5363 ac_cv_c_stack_direction=1 … … 3913 5365 echo "$as_me: program exited with status $ac_status" >&5 3914 5366 echo "$as_me: failed program was:" >&5 3915 cat conftest.$ac_ext >&5 5367 sed 's/^/| /' conftest.$ac_ext >&5 5368 5369 ( exit $ac_status ) 3916 5370 ac_cv_c_stack_direction=-1 3917 5371 fi 3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3919 fi 3920 fi 3921 echo "$as_me: 3921: result: $ac_cv_c_stack_direction" >&55372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5373 fi 5374 fi 5375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 3922 5376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 3923 5377 3924 cat >>confdefs.h << EOF5378 cat >>confdefs.h <<_ACEOF 3925 5379 #define STACK_DIRECTION $ac_cv_c_stack_direction 3926 EOF 5380 _ACEOF 5381 3927 5382 3928 5383 fi 3929 5384 3930 5385 if test $ac_cv_c_compiler_gnu = yes; then 3931 echo "$as_me: 3931: checking whether $CC needs -traditional" >&55386 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3932 5387 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3933 5388 if test "${ac_cv_prog_gcc_traditional+set}" = set; then … … 3936 5391 ac_pattern="Autoconf.*'x'" 3937 5392 cat >conftest.$ac_ext <<_ACEOF 3938 #line 3938 "configure" 3939 #include "confdefs.h" 5393 /* confdefs.h. */ 5394 _ACEOF 5395 cat confdefs.h >>conftest.$ac_ext 5396 cat >>conftest.$ac_ext <<_ACEOF 5397 /* end confdefs.h. */ 3940 5398 #include <sgtty.h> 3941 5399 Autoconf TIOCGETP 3942 5400 _ACEOF 3943 5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3944 egrep"$ac_pattern" >/dev/null 2>&1; then5402 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3945 5403 ac_cv_prog_gcc_traditional=yes 3946 5404 else … … 3948 5406 fi 3949 5407 rm -f conftest* 5408 3950 5409 3951 5410 if test $ac_cv_prog_gcc_traditional = no; then 3952 5411 cat >conftest.$ac_ext <<_ACEOF 3953 #line 3953 "configure" 3954 #include "confdefs.h" 5412 /* confdefs.h. */ 5413 _ACEOF 5414 cat confdefs.h >>conftest.$ac_ext 5415 cat >>conftest.$ac_ext <<_ACEOF 5416 /* end confdefs.h. */ 3955 5417 #include <termio.h> 3956 5418 Autoconf TCGETA 3957 5419 _ACEOF 3958 5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3959 egrep"$ac_pattern" >/dev/null 2>&1; then5421 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3960 5422 ac_cv_prog_gcc_traditional=yes 3961 5423 fi … … 3964 5426 fi 3965 5427 fi 3966 echo "$as_me: 3966: result: $ac_cv_prog_gcc_traditional" >&55428 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3967 5429 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3968 5430 if test $ac_cv_prog_gcc_traditional = yes; then … … 3971 5433 fi 3972 5434 3973 echo "$as_me: 3973: checking return type of signal handlers" >&55435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3974 5436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 3975 5437 if test "${ac_cv_type_signal+set}" = set; then … … 3977 5439 else 3978 5440 cat >conftest.$ac_ext <<_ACEOF 3979 #line 3979 "configure" 3980 #include "confdefs.h" 5441 /* confdefs.h. */ 5442 _ACEOF 5443 cat confdefs.h >>conftest.$ac_ext 5444 cat >>conftest.$ac_ext <<_ACEOF 5445 /* end confdefs.h. */ 3981 5446 #include <sys/types.h> 3982 5447 #include <signal.h> … … 3999 5464 _ACEOF 4000 5465 rm -f conftest.$ac_objext 4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5 4002 (eval $ac_compile) 2>&5 4003 ac_status=$? 4004 echo "$as_me:4004: \$? = $ac_status" >&5 5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5467 (eval $ac_compile) 2>conftest.er1 5468 ac_status=$? 5469 grep -v '^ *+' conftest.er1 >conftest.err 5470 rm -f conftest.er1 5471 cat conftest.err >&5 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 5473 (exit $ac_status); } && 4006 { ac_try='test -s conftest.$ac_objext' 4007 { (eval echo "$as_me:4007: \"$ac_try\"") >&5 4008 (eval $ac_try) 2>&5 4009 ac_status=$? 4010 echo "$as_me:4010: \$? = $ac_status" >&5 5474 { ac_try='test -z "$ac_c_werror_flag" 5475 || test ! -s conftest.err' 5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5477 (eval $ac_try) 2>&5 5478 ac_status=$? 5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); }; } && 5481 { ac_try='test -s conftest.$ac_objext' 5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5483 (eval $ac_try) 2>&5 5484 ac_status=$? 5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 5486 (exit $ac_status); }; }; then 4012 5487 ac_cv_type_signal=void 4013 5488 else 4014 5489 echo "$as_me: failed program was:" >&5 4015 cat conftest.$ac_ext >&5 5490 sed 's/^/| /' conftest.$ac_ext >&5 5491 4016 5492 ac_cv_type_signal=int 4017 5493 fi 4018 rm -f conftest. $ac_objext conftest.$ac_ext4019 fi 4020 echo "$as_me: 4020: result: $ac_cv_type_signal" >&55494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5495 fi 5496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4021 5497 echo "${ECHO_T}$ac_cv_type_signal" >&6 4022 5498 4023 cat >>confdefs.h << EOF5499 cat >>confdefs.h <<_ACEOF 4024 5500 #define RETSIGTYPE $ac_cv_type_signal 4025 EOF 5501 _ACEOF 5502 5503 4026 5504 4027 5505 for ac_func in vprintf 4028 5506 do 4029 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4030 echo "$as_me: 4030: checking for $ac_func" >&55507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5508 echo "$as_me:$LINENO: checking for $ac_func" >&5 4031 5509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4032 if eval "test \"\${$a c_ac_var+set}\" = set"; then5510 if eval "test \"\${$as_ac_var+set}\" = set"; then 4033 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 4034 5512 else 4035 5513 cat >conftest.$ac_ext <<_ACEOF 4036 #line 4036 "configure" 4037 #include "confdefs.h" 5514 /* confdefs.h. */ 5515 _ACEOF 5516 cat confdefs.h >>conftest.$ac_ext 5517 cat >>conftest.$ac_ext <<_ACEOF 5518 /* end confdefs.h. */ 5519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5521 #define $ac_func innocuous_$ac_func 5522 4038 5523 /* System header to define __stub macros and hopefully few prototypes, 4039 which can conflict with char $ac_func (); below. */ 4040 #include <assert.h> 5524 which can conflict with char $ac_func (); below. 5525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5526 <limits.h> exists even on freestanding compilers. */ 5527 5528 #ifdef __STDC__ 5529 # include <limits.h> 5530 #else 5531 # include <assert.h> 5532 #endif 5533 5534 #undef $ac_func 5535 4041 5536 /* Override any gcc2 internal prototype to avoid an error. */ 4042 5537 #ifdef __cplusplus 4043 5538 extern "C" 5539 { 4044 5540 #endif 4045 5541 /* We use char because int might match the return type of a gcc2 4046 5542 builtin and then its argument prototype would still apply. */ 4047 5543 char $ac_func (); 4048 char (*f) ();4049 4050 int4051 main ()4052 {4053 5544 /* The GNU C library defines this for functions which it implements 4054 5545 to always fail with ENOSYS. Some functions are actually named … … 4057 5548 choke me 4058 5549 #else 4059 f= $ac_func;5550 char (*f) () = $ac_func; 4060 5551 #endif 4061 5552 #ifdef __cplusplus 5553 } 5554 #endif 5555 5556 int 5557 main () 5558 { 5559 return f != $ac_func; 4062 5560 ; 4063 5561 return 0; … … 4065 5563 _ACEOF 4066 5564 rm -f conftest.$ac_objext conftest$ac_exeext 4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5 4068 (eval $ac_link) 2>&5 4069 ac_status=$? 4070 echo "$as_me:4070: \$? = $ac_status" >&5 5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5566 (eval $ac_link) 2>conftest.er1 5567 ac_status=$? 5568 grep -v '^ *+' conftest.er1 >conftest.err 5569 rm -f conftest.er1 5570 cat conftest.err >&5 5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 5572 (exit $ac_status); } && 4072 { ac_try='test -s conftest$ac_exeext' 4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:4076: \$? = $ac_status" >&5 5573 { ac_try='test -z "$ac_c_werror_flag" 5574 || test ! -s conftest.err' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; } && 5580 { ac_try='test -s conftest$ac_exeext' 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5582 (eval $ac_try) 2>&5 5583 ac_status=$? 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 5585 (exit $ac_status); }; }; then 4078 eval "$a c_ac_var=yes"5586 eval "$as_ac_var=yes" 4079 5587 else 4080 5588 echo "$as_me: failed program was:" >&5 4081 cat conftest.$ac_ext >&5 4082 eval "$ac_ac_var=no" 4083 fi 4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4085 fi 4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5 4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4089 cat >>confdefs.h <<EOF 4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4091 EOF 4092 4093 echo "$as_me:4093: checking for _doprnt" >&5 5589 sed 's/^/| /' conftest.$ac_ext >&5 5590 5591 eval "$as_ac_var=no" 5592 fi 5593 rm -f conftest.err conftest.$ac_objext \ 5594 conftest$ac_exeext conftest.$ac_ext 5595 fi 5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5598 if test `eval echo '${'$as_ac_var'}'` = yes; then 5599 cat >>confdefs.h <<_ACEOF 5600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5601 _ACEOF 5602 5603 echo "$as_me:$LINENO: checking for _doprnt" >&5 4094 5604 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4095 5605 if test "${ac_cv_func__doprnt+set}" = set; then … … 4097 5607 else 4098 5608 cat >conftest.$ac_ext <<_ACEOF 4099 #line 4099 "configure" 4100 #include "confdefs.h" 5609 /* confdefs.h. */ 5610 _ACEOF 5611 cat confdefs.h >>conftest.$ac_ext 5612 cat >>conftest.$ac_ext <<_ACEOF 5613 /* end confdefs.h. */ 5614 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5615 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5616 #define _doprnt innocuous__doprnt 5617 4101 5618 /* System header to define __stub macros and hopefully few prototypes, 4102 which can conflict with char _doprnt (); below. */ 4103 #include <assert.h> 5619 which can conflict with char _doprnt (); below. 5620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5621 <limits.h> exists even on freestanding compilers. */ 5622 5623 #ifdef __STDC__ 5624 # include <limits.h> 5625 #else 5626 # include <assert.h> 5627 #endif 5628 5629 #undef _doprnt 5630 4104 5631 /* Override any gcc2 internal prototype to avoid an error. */ 4105 5632 #ifdef __cplusplus 4106 5633 extern "C" 5634 { 4107 5635 #endif 4108 5636 /* We use char because int might match the return type of a gcc2 4109 5637 builtin and then its argument prototype would still apply. */ 4110 5638 char _doprnt (); 4111 char (*f) ();4112 4113 int4114 main ()4115 {4116 5639 /* The GNU C library defines this for functions which it implements 4117 5640 to always fail with ENOSYS. Some functions are actually named … … 4120 5643 choke me 4121 5644 #else 4122 f= _doprnt;5645 char (*f) () = _doprnt; 4123 5646 #endif 4124 5647 #ifdef __cplusplus 5648 } 5649 #endif 5650 5651 int 5652 main () 5653 { 5654 return f != _doprnt; 4125 5655 ; 4126 5656 return 0; … … 4128 5658 _ACEOF 4129 5659 rm -f conftest.$ac_objext conftest$ac_exeext 4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5 4131 (eval $ac_link) 2>&5 4132 ac_status=$? 4133 echo "$as_me:4133: \$? = $ac_status" >&5 5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5661 (eval $ac_link) 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4134 5667 (exit $ac_status); } && 4135 { ac_try='test -s conftest$ac_exeext' 4136 { (eval echo "$as_me:4136: \"$ac_try\"") >&5 4137 (eval $ac_try) 2>&5 4138 ac_status=$? 4139 echo "$as_me:4139: \$? = $ac_status" >&5 5668 { ac_try='test -z "$ac_c_werror_flag" 5669 || test ! -s conftest.err' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; } && 5675 { ac_try='test -s conftest$ac_exeext' 5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5677 (eval $ac_try) 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4140 5680 (exit $ac_status); }; }; then 4141 5681 ac_cv_func__doprnt=yes 4142 5682 else 4143 5683 echo "$as_me: failed program was:" >&5 4144 cat conftest.$ac_ext >&5 5684 sed 's/^/| /' conftest.$ac_ext >&5 5685 4145 5686 ac_cv_func__doprnt=no 4146 5687 fi 4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4148 fi 4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5 5688 rm -f conftest.err conftest.$ac_objext \ 5689 conftest$ac_exeext conftest.$ac_ext 5690 fi 5691 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 4150 5692 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4151 5693 if test $ac_cv_func__doprnt = yes; then 4152 5694 4153 cat >>confdefs.h <<\ EOF5695 cat >>confdefs.h <<\_ACEOF 4154 5696 #define HAVE_DOPRNT 1 4155 EOF5697 _ACEOF 4156 5698 4157 5699 fi … … 4159 5701 fi 4160 5702 done 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 4161 5713 4162 5714 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize 4163 5715 do 4164 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4165 echo "$as_me: 4165: checking for $ac_func" >&55716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5717 echo "$as_me:$LINENO: checking for $ac_func" >&5 4166 5718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4167 if eval "test \"\${$a c_ac_var+set}\" = set"; then5719 if eval "test \"\${$as_ac_var+set}\" = set"; then 4168 5720 echo $ECHO_N "(cached) $ECHO_C" >&6 4169 5721 else 4170 5722 cat >conftest.$ac_ext <<_ACEOF 4171 #line 4171 "configure" 4172 #include "confdefs.h" 5723 /* confdefs.h. */ 5724 _ACEOF 5725 cat confdefs.h >>conftest.$ac_ext 5726 cat >>conftest.$ac_ext <<_ACEOF 5727 /* end confdefs.h. */ 5728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5730 #define $ac_func innocuous_$ac_func 5731 4173 5732 /* System header to define __stub macros and hopefully few prototypes, 4174 which can conflict with char $ac_func (); below. */ 4175 #include <assert.h> 5733 which can conflict with char $ac_func (); below. 5734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5735 <limits.h> exists even on freestanding compilers. */ 5736 5737 #ifdef __STDC__ 5738 # include <limits.h> 5739 #else 5740 # include <assert.h> 5741 #endif 5742 5743 #undef $ac_func 5744 4176 5745 /* Override any gcc2 internal prototype to avoid an error. */ 4177 5746 #ifdef __cplusplus 4178 5747 extern "C" 5748 { 4179 5749 #endif 4180 5750 /* We use char because int might match the return type of a gcc2 4181 5751 builtin and then its argument prototype would still apply. */ 4182 5752 char $ac_func (); 4183 char (*f) ();4184 4185 int4186 main ()4187 {4188 5753 /* The GNU C library defines this for functions which it implements 4189 5754 to always fail with ENOSYS. Some functions are actually named … … 4192 5757 choke me 4193 5758 #else 4194 f= $ac_func;5759 char (*f) () = $ac_func; 4195 5760 #endif 4196 5761 #ifdef __cplusplus 5762 } 5763 #endif 5764 5765 int 5766 main () 5767 { 5768 return f != $ac_func; 4197 5769 ; 4198 5770 return 0; … … 4200 5772 _ACEOF 4201 5773 rm -f conftest.$ac_objext conftest$ac_exeext 4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5 4203 (eval $ac_link) 2>&5 4204 ac_status=$? 4205 echo "$as_me:4205: \$? = $ac_status" >&5 5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5775 (eval $ac_link) 2>conftest.er1 5776 ac_status=$? 5777 grep -v '^ *+' conftest.er1 >conftest.err 5778 rm -f conftest.er1 5779 cat conftest.err >&5 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 5781 (exit $ac_status); } && 4207 { ac_try='test -s conftest$ac_exeext' 4208 { (eval echo "$as_me:4208: \"$ac_try\"") >&5 4209 (eval $ac_try) 2>&5 4210 ac_status=$? 4211 echo "$as_me:4211: \$? = $ac_status" >&5 5782 { ac_try='test -z "$ac_c_werror_flag" 5783 || test ! -s conftest.err' 5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5785 (eval $ac_try) 2>&5 5786 ac_status=$? 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); }; } && 5789 { ac_try='test -s conftest$ac_exeext' 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5791 (eval $ac_try) 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 5794 (exit $ac_status); }; }; then 4213 eval "$a c_ac_var=yes"5795 eval "$as_ac_var=yes" 4214 5796 else 4215 5797 echo "$as_me: failed program was:" >&5 4216 cat conftest.$ac_ext >&5 4217 eval "$ac_ac_var=no" 4218 fi 4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4220 fi 4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5 4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4224 cat >>confdefs.h <<EOF 4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4226 EOF 5798 sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 eval "$as_ac_var=no" 5801 fi 5802 rm -f conftest.err conftest.$ac_objext \ 5803 conftest$ac_exeext conftest.$ac_ext 5804 fi 5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5807 if test `eval echo '${'$as_ac_var'}'` = yes; then 5808 cat >>confdefs.h <<_ACEOF 5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5810 _ACEOF 4227 5811 4228 5812 fi 4229 5813 done 5814 5815 5816 4230 5817 4231 5818 for ac_func in ftruncate strstr strcasecmp 4232 5819 do 4233 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4234 echo "$as_me: 4234: checking for $ac_func" >&55820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5821 echo "$as_me:$LINENO: checking for $ac_func" >&5 4235 5822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4236 if eval "test \"\${$a c_ac_var+set}\" = set"; then5823 if eval "test \"\${$as_ac_var+set}\" = set"; then 4237 5824 echo $ECHO_N "(cached) $ECHO_C" >&6 4238 5825 else 4239 5826 cat >conftest.$ac_ext <<_ACEOF 4240 #line 4240 "configure" 4241 #include "confdefs.h" 5827 /* confdefs.h. */ 5828 _ACEOF 5829 cat confdefs.h >>conftest.$ac_ext 5830 cat >>conftest.$ac_ext <<_ACEOF 5831 /* end confdefs.h. */ 5832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5834 #define $ac_func innocuous_$ac_func 5835 4242 5836 /* System header to define __stub macros and hopefully few prototypes, 4243 which can conflict with char $ac_func (); below. */ 4244 #include <assert.h> 5837 which can conflict with char $ac_func (); below. 5838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5839 <limits.h> exists even on freestanding compilers. */ 5840 5841 #ifdef __STDC__ 5842 # include <limits.h> 5843 #else 5844 # include <assert.h> 5845 #endif 5846 5847 #undef $ac_func 5848 4245 5849 /* Override any gcc2 internal prototype to avoid an error. */ 4246 5850 #ifdef __cplusplus 4247 5851 extern "C" 5852 { 4248 5853 #endif 4249 5854 /* We use char because int might match the return type of a gcc2 4250 5855 builtin and then its argument prototype would still apply. */ 4251 5856 char $ac_func (); 4252 char (*f) ();4253 4254 int4255 main ()4256 {4257 5857 /* The GNU C library defines this for functions which it implements 4258 5858 to always fail with ENOSYS. Some functions are actually named … … 4261 5861 choke me 4262 5862 #else 4263 f= $ac_func;5863 char (*f) () = $ac_func; 4264 5864 #endif 4265 5865 #ifdef __cplusplus 5866 } 5867 #endif 5868 5869 int 5870 main () 5871 { 5872 return f != $ac_func; 4266 5873 ; 4267 5874 return 0; … … 4269 5876 _ACEOF 4270 5877 rm -f conftest.$ac_objext conftest$ac_exeext 4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5 4272 (eval $ac_link) 2>&5 4273 ac_status=$? 4274 echo "$as_me:4274: \$? = $ac_status" >&5 5878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5879 (eval $ac_link) 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 5885 (exit $ac_status); } && 4276 { ac_try='test -s conftest$ac_exeext' 4277 { (eval echo "$as_me:4277: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:4280: \$? = $ac_status" >&5 5886 { ac_try='test -z "$ac_c_werror_flag" 5887 || test ! -s conftest.err' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; } && 5893 { ac_try='test -s conftest$ac_exeext' 5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5895 (eval $ac_try) 2>&5 5896 ac_status=$? 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 5898 (exit $ac_status); }; }; then 4282 eval "$a c_ac_var=yes"5899 eval "$as_ac_var=yes" 4283 5900 else 4284 5901 echo "$as_me: failed program was:" >&5 4285 cat conftest.$ac_ext >&5 4286 eval "$ac_ac_var=no" 4287 fi 4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4289 fi 4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5 4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4293 cat >>confdefs.h <<EOF 4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4295 EOF 4296 4297 else 4298 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5902 sed 's/^/| /' conftest.$ac_ext >&5 5903 5904 eval "$as_ac_var=no" 5905 fi 5906 rm -f conftest.err conftest.$ac_objext \ 5907 conftest$ac_exeext conftest.$ac_ext 5908 fi 5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5911 if test `eval echo '${'$as_ac_var'}'` = yes; then 5912 cat >>confdefs.h <<_ACEOF 5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5914 _ACEOF 5915 5916 else 5917 case $LIBOBJS in 5918 "$ac_func.$ac_objext" | \ 5919 *" $ac_func.$ac_objext" | \ 5920 "$ac_func.$ac_objext "* | \ 5921 *" $ac_func.$ac_objext "* ) ;; 5922 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5923 esac 5924 4299 5925 fi 4300 5926 done 5927 5928 5929 4301 5930 4302 5931 # *** Custom checking (based on GNU tar configure.in) *** 4303 5932 # --------------------------------------------------------------------------- 4304 echo "$as_me: 4304: checking for HP-UX needing gmalloc" >&55933 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5 4305 5934 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 4306 5935 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 4307 echo "$as_me: 4307: result: yes" >&55936 echo "$as_me:$LINENO: result: yes" >&5 4308 5937 echo "${ECHO_T}yes" >&6 4309 LIBOBJS="$LIBOBJS gmalloc.o" 4310 cat >>confdefs.h <<\EOF 5938 case $LIBOBJS in 5939 "gmalloc.$ac_objext" | \ 5940 *" gmalloc.$ac_objext" | \ 5941 "gmalloc.$ac_objext "* | \ 5942 *" gmalloc.$ac_objext "* ) ;; 5943 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;; 5944 esac 5945 5946 cat >>confdefs.h <<\_ACEOF 4311 5947 #define HAVE_VALLOC 1 4312 EOF4313 4314 else 4315 echo "$as_me: 4315: result: no" >&55948 _ACEOF 5949 5950 else 5951 echo "$as_me:$LINENO: result: no" >&5 4316 5952 echo "${ECHO_T}no" >&6 4317 5953 4318 5954 for ac_func in valloc 4319 5955 do 4320 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4321 echo "$as_me: 4321: checking for $ac_func" >&55956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5957 echo "$as_me:$LINENO: checking for $ac_func" >&5 4322 5958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4323 if eval "test \"\${$a c_ac_var+set}\" = set"; then5959 if eval "test \"\${$as_ac_var+set}\" = set"; then 4324 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 4325 5961 else 4326 5962 cat >conftest.$ac_ext <<_ACEOF 4327 #line 4327 "configure" 4328 #include "confdefs.h" 5963 /* confdefs.h. */ 5964 _ACEOF 5965 cat confdefs.h >>conftest.$ac_ext 5966 cat >>conftest.$ac_ext <<_ACEOF 5967 /* end confdefs.h. */ 5968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5970 #define $ac_func innocuous_$ac_func 5971 4329 5972 /* System header to define __stub macros and hopefully few prototypes, 4330 which can conflict with char $ac_func (); below. */ 4331 #include <assert.h> 5973 which can conflict with char $ac_func (); below. 5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5975 <limits.h> exists even on freestanding compilers. */ 5976 5977 #ifdef __STDC__ 5978 # include <limits.h> 5979 #else 5980 # include <assert.h> 5981 #endif 5982 5983 #undef $ac_func 5984 4332 5985 /* Override any gcc2 internal prototype to avoid an error. */ 4333 5986 #ifdef __cplusplus 4334 5987 extern "C" 5988 { 4335 5989 #endif 4336 5990 /* We use char because int might match the return type of a gcc2 4337 5991 builtin and then its argument prototype would still apply. */ 4338 5992 char $ac_func (); 4339 char (*f) ();4340 4341 int4342 main ()4343 {4344 5993 /* The GNU C library defines this for functions which it implements 4345 5994 to always fail with ENOSYS. Some functions are actually named … … 4348 5997 choke me 4349 5998 #else 4350 f= $ac_func;5999 char (*f) () = $ac_func; 4351 6000 #endif 4352 6001 #ifdef __cplusplus 6002 } 6003 #endif 6004 6005 int 6006 main () 6007 { 6008 return f != $ac_func; 4353 6009 ; 4354 6010 return 0; … … 4356 6012 _ACEOF 4357 6013 rm -f conftest.$ac_objext conftest$ac_exeext 4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5 4359 (eval $ac_link) 2>&5 4360 ac_status=$? 4361 echo "$as_me:4361: \$? = $ac_status" >&5 6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6015 (eval $ac_link) 2>conftest.er1 6016 ac_status=$? 6017 grep -v '^ *+' conftest.er1 >conftest.err 6018 rm -f conftest.er1 6019 cat conftest.err >&5 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 6021 (exit $ac_status); } && 4363 { ac_try='test -s conftest$ac_exeext' 4364 { (eval echo "$as_me:4364: \"$ac_try\"") >&5 4365 (eval $ac_try) 2>&5 4366 ac_status=$? 4367 echo "$as_me:4367: \$? = $ac_status" >&5 6022 { ac_try='test -z "$ac_c_werror_flag" 6023 || test ! -s conftest.err' 6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6025 (eval $ac_try) 2>&5 6026 ac_status=$? 6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 (exit $ac_status); }; } && 6029 { ac_try='test -s conftest$ac_exeext' 6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6031 (eval $ac_try) 2>&5 6032 ac_status=$? 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 6034 (exit $ac_status); }; }; then 4369 eval "$a c_ac_var=yes"6035 eval "$as_ac_var=yes" 4370 6036 else 4371 6037 echo "$as_me: failed program was:" >&5 4372 cat conftest.$ac_ext >&5 4373 eval "$ac_ac_var=no" 4374 fi 4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4376 fi 4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5 4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4380 cat >>confdefs.h <<EOF 4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4382 EOF 6038 sed 's/^/| /' conftest.$ac_ext >&5 6039 6040 eval "$as_ac_var=no" 6041 fi 6042 rm -f conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044 fi 6045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6047 if test `eval echo '${'$as_ac_var'}'` = yes; then 6048 cat >>confdefs.h <<_ACEOF 6049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6050 _ACEOF 4383 6051 4384 6052 fi … … 4387 6055 fi 4388 6056 4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5 6057 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 6058 # a non-standard Path 6059 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5 6060 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6 6061 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 6062 echo "$as_me:$LINENO: result: yes" >&5 6063 echo "${ECHO_T}yes" >&6 6064 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 6065 JNISUFFIX="jnilib" 6066 JNIFLAGS="-dynamiclib -fno-common -single_module" 6067 LDFLAGS="-framework JavaVM" 6068 else 6069 echo "$as_me:$LINENO: result: no" >&5 6070 echo "${ECHO_T}no" >&6 6071 JNIINC="" 6072 JNISUFFIX="so" 6073 JNIFLAGS="-shared" 6074 fi 6075 6076 6077 6078 6079 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 4390 6080 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4391 6081 … … 4394 6084 withval="$with_dmalloc" 4395 6085 if test "$withval" = yes; then 4396 echo "$as_me: 4396: result: yes" >&56086 echo "$as_me:$LINENO: result: yes" >&5 4397 6087 echo "${ECHO_T}yes" >&6 4398 cat >>confdefs.h <<\ EOF6088 cat >>confdefs.h <<\_ACEOF 4399 6089 #define WITH_DMALLOC 1 4400 EOF6090 _ACEOF 4401 6091 4402 6092 LIBS="$LIBS -ldmalloc" 4403 6093 LDFLAGS="$LDFLAGS -g" 4404 6094 else 4405 echo "$as_me: 4405: result: no" >&56095 echo "$as_me:$LINENO: result: no" >&5 4406 6096 echo "${ECHO_T}no" >&6 4407 6097 fi 4408 6098 else 4409 echo "$as_me: 4409: result: no" >&56099 echo "$as_me:$LINENO: result: no" >&5 4410 6100 echo "${ECHO_T}no" >&6 4411 6101 fi; 4412 6102 4413 echo "$as_me: 4413: checking which of rx or regex is wanted" >&56103 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5 4414 6104 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4415 6105 … … 4419 6109 if test "$withval" = yes; then 4420 6110 ac_with_regex=1 4421 echo "$as_me: 4421: result: regex" >&56111 echo "$as_me:$LINENO: result: regex" >&5 4422 6112 echo "${ECHO_T}regex" >&6 4423 cat >>confdefs.h <<\ EOF6113 cat >>confdefs.h <<\_ACEOF 4424 6114 #define WITH_REGEX 1 4425 EOF6115 _ACEOF 4426 6116 4427 6117 LIBOBJS="$LIBOBJS regex.o" … … 4429 6119 fi; 4430 6120 if test -z "$ac_with_regex"; then 4431 echo "$as_me: 4431: result: rx" >&56121 echo "$as_me:$LINENO: result: rx" >&5 4432 6122 echo "${ECHO_T}rx" >&6 4433 echo "$as_me: 4433: checking for re_rx_search" >&56123 echo "$as_me:$LINENO: checking for re_rx_search" >&5 4434 6124 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4435 6125 if test "${ac_cv_func_re_rx_search+set}" = set; then … … 4437 6127 else 4438 6128 cat >conftest.$ac_ext <<_ACEOF 4439 #line 4439 "configure" 4440 #include "confdefs.h" 6129 /* confdefs.h. */ 6130 _ACEOF 6131 cat confdefs.h >>conftest.$ac_ext 6132 cat >>conftest.$ac_ext <<_ACEOF 6133 /* end confdefs.h. */ 6134 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search. 6135 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6136 #define re_rx_search innocuous_re_rx_search 6137 4441 6138 /* System header to define __stub macros and hopefully few prototypes, 4442 which can conflict with char re_rx_search (); below. */ 4443 #include <assert.h> 6139 which can conflict with char re_rx_search (); below. 6140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6141 <limits.h> exists even on freestanding compilers. */ 6142 6143 #ifdef __STDC__ 6144 # include <limits.h> 6145 #else 6146 # include <assert.h> 6147 #endif 6148 6149 #undef re_rx_search 6150 4444 6151 /* Override any gcc2 internal prototype to avoid an error. */ 4445 6152 #ifdef __cplusplus 4446 6153 extern "C" 6154 { 4447 6155 #endif 4448 6156 /* We use char because int might match the return type of a gcc2 4449 6157 builtin and then its argument prototype would still apply. */ 4450 6158 char re_rx_search (); 4451 char (*f) ();4452 4453 int4454 main ()4455 {4456 6159 /* The GNU C library defines this for functions which it implements 4457 6160 to always fail with ENOSYS. Some functions are actually named … … 4460 6163 choke me 4461 6164 #else 4462 f= re_rx_search;6165 char (*f) () = re_rx_search; 4463 6166 #endif 4464 6167 #ifdef __cplusplus 6168 } 6169 #endif 6170 6171 int 6172 main () 6173 { 6174 return f != re_rx_search; 4465 6175 ; 4466 6176 return 0; … … 4468 6178 _ACEOF 4469 6179 rm -f conftest.$ac_objext conftest$ac_exeext 4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5 4471 (eval $ac_link) 2>&5 4472 ac_status=$? 4473 echo "$as_me:4473: \$? = $ac_status" >&5 6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6181 (eval $ac_link) 2>conftest.er1 6182 ac_status=$? 6183 grep -v '^ *+' conftest.er1 >conftest.err 6184 rm -f conftest.er1 6185 cat conftest.err >&5 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 6187 (exit $ac_status); } && 4475 { ac_try='test -s conftest$ac_exeext' 4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5 4477 (eval $ac_try) 2>&5 4478 ac_status=$? 4479 echo "$as_me:4479: \$? = $ac_status" >&5 6188 { ac_try='test -z "$ac_c_werror_flag" 6189 || test ! -s conftest.err' 6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6191 (eval $ac_try) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; } && 6195 { ac_try='test -s conftest$ac_exeext' 6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6197 (eval $ac_try) 2>&5 6198 ac_status=$? 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 6200 (exit $ac_status); }; }; then 4481 6201 ac_cv_func_re_rx_search=yes 4482 6202 else 4483 6203 echo "$as_me: failed program was:" >&5 4484 cat conftest.$ac_ext >&5 6204 sed 's/^/| /' conftest.$ac_ext >&5 6205 4485 6206 ac_cv_func_re_rx_search=no 4486 6207 fi 4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4488 fi 4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5 6208 rm -f conftest.err conftest.$ac_objext \ 6209 conftest$ac_exeext conftest.$ac_ext 6210 fi 6211 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5 4490 6212 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4491 6213 if test $ac_cv_func_re_rx_search = yes; then … … 4497 6219 fi 4498 6220 6221 4499 6222 # --------------------------------------------------------------------------- 4500 6223 if test "$ac_cv_func_alloca" = 'no'; then 4501 LIBOBJS="$LIBOBJS xmalloc.o error.o" 4502 fi 6224 case $LIBOBJS in 6225 "xmalloc.$ac_objext" | \ 6226 *" xmalloc.$ac_objext" | \ 6227 "xmalloc.$ac_objext "* | \ 6228 *" xmalloc.$ac_objext "* ) ;; 6229 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;; 6230 esac 6231 6232 case $LIBOBJS in 6233 "error.$ac_objext" | \ 6234 *" error.$ac_objext" | \ 6235 "error.$ac_objext "* | \ 6236 *" error.$ac_objext "* ) ;; 6237 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 6238 esac 6239 6240 fi 6241 4503 6242 4504 6243 # --------------------------------------------------------------------------- 4505 6244 4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"4507 ac_config_commands="$ac_config_commands default"6245 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile" 6246 ac_config_commands="$ac_config_commands default" 4508 6247 cat >confcache <<\_ACEOF 4509 6248 # This file is a shell script that caches the results of configure … … 4516 6255 # the --recheck option to rerun configure. 4517 6256 # 4518 # `ac_cv_env_foo' variables (set or unset) will be overrid en when6257 # `ac_cv_env_foo' variables (set or unset) will be overridden when 4519 6258 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4520 6259 # following values. … … 4534 6273 # substitution turns \\\\ into \\, and sed turns \\ into \). 4535 6274 sed -n \ 4536 4537 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"6275 "s/'/'\\\\''/g; 6276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4538 6277 ;; 4539 6278 *) 4540 6279 # `set' quotes correctly as required by POSIX, so do not add quotes. 4541 6280 sed -n \ 4542 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"6281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4543 6282 ;; 4544 6283 esac; … … 4551 6290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4552 6291 : end' >>confcache 4553 if cmp -s $cache_file confcache; then :; else6292 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4554 6293 if test -w $cache_file; then 4555 6294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" … … 4570 6309 # (actually we leave an empty line to preserve line numbers). 4571 6310 if test "x$srcdir" = x.; then 4572 ac_vpsub='/^[ ]*VPATH[]*=/{6311 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4573 6312 s/:*\$(srcdir):*/:/; 4574 6313 s/:*\${srcdir}:*/:/; 4575 6314 s/:*@srcdir@:*/:/; 4576 s/^\([^=]*=[ 6315 s/^\([^=]*=[ ]*\):*/\1/; 4577 6316 s/:*$//; 4578 s/^[^=]*=[ 6317 s/^[^=]*=[ ]*$//; 4579 6318 }' 4580 6319 fi 4581 6320 4582 6321 DEFS=-DHAVE_CONFIG_H 6322 6323 ac_libobjs= 6324 ac_ltlibobjs= 6325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6326 # 1. Remove the extension, and $U if already installed. 6327 ac_i=`echo "$ac_i" | 6328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6329 # 2. Add them. 6330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6332 done 6333 LIBOBJS=$ac_libobjs 6334 6335 LTLIBOBJS=$ac_ltlibobjs 6336 6337 4583 6338 4584 6339 : ${CONFIG_STATUS=./config.status} 4585 6340 ac_clean_files_save=$ac_clean_files 4586 6341 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4587 { echo "$as_me: 4587: creating $CONFIG_STATUS" >&56342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4588 6343 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4589 6344 cat >$CONFIG_STATUS <<_ACEOF 4590 6345 #! $SHELL 4591 # Generated automatically by configure.6346 # Generated by $as_me. 4592 6347 # Run this file to recreate the current configuration. 4593 6348 # Compiler output produced by configure, useful for debugging … … 4595 6350 4596 6351 debug=false 6352 ac_cs_recheck=false 6353 ac_cs_silent=false 4597 6354 SHELL=\${CONFIG_SHELL-$SHELL} 4598 ac_cs_invocation="\$0 \$@"4599 4600 6355 _ACEOF 4601 6356 4602 6357 cat >>$CONFIG_STATUS <<\_ACEOF 6358 ## --------------------- ## 6359 ## M4sh Initialization. ## 6360 ## --------------------- ## 6361 4603 6362 # Be Bourne compatible 4604 6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4605 6364 emulate sh 4606 6365 NULLCMD=: 6366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6367 # is contrary to our usage. Disable this feature. 6368 alias -g '${1+"$@"}'='"$@"' 4607 6369 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4608 6370 set -o posix 4609 6371 fi 6372 DUALCASE=1; export DUALCASE # for MKS sh 6373 6374 # Support unset when possible. 6375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6376 as_unset=unset 6377 else 6378 as_unset=false 6379 fi 6380 6381 6382 # Work around bugs in pre-3.0 UWIN ksh. 6383 $as_unset ENV MAIL MAILPATH 6384 PS1='$ ' 6385 PS2='> ' 6386 PS4='+ ' 6387 6388 # NLS nuisances. 6389 for as_var in \ 6390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6392 LC_TELEPHONE LC_TIME 6393 do 6394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6395 eval $as_var=C; export $as_var 6396 else 6397 $as_unset $as_var 6398 fi 6399 done 6400 6401 # Required to use basename. 6402 if expr a : '\(a\)' >/dev/null 2>&1; then 6403 as_expr=expr 6404 else 6405 as_expr=false 6406 fi 6407 6408 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6409 as_basename=basename 6410 else 6411 as_basename=false 6412 fi 6413 4610 6414 4611 6415 # Name of the executable. 4612 as_me=`echo "$0" |sed 's,.*[\\/],,'` 6416 as_me=`$as_basename "$0" || 6417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6418 X"$0" : 'X\(//\)$' \| \ 6419 X"$0" : 'X\(/\)$' \| \ 6420 . : '\(.\)' 2>/dev/null || 6421 echo X/"$0" | 6422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6423 /^X\/\(\/\/\)$/{ s//\1/; q; } 6424 /^X\/\(\/\).*/{ s//\1/; q; } 6425 s/.*/./; q'` 6426 6427 6428 # PATH needs CR, and LINENO needs CR and PATH. 6429 # Avoid depending upon Character Ranges. 6430 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6433 as_cr_digits='0123456789' 6434 as_cr_alnum=$as_cr_Letters$as_cr_digits 6435 6436 # The user is always right. 6437 if test "${PATH_SEPARATOR+set}" != set; then 6438 echo "#! /bin/sh" >conf$$.sh 6439 echo "exit 0" >>conf$$.sh 6440 chmod +x conf$$.sh 6441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6442 PATH_SEPARATOR=';' 6443 else 6444 PATH_SEPARATOR=: 6445 fi 6446 rm -f conf$$.sh 6447 fi 6448 6449 6450 as_lineno_1=$LINENO 6451 as_lineno_2=$LINENO 6452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6453 test "x$as_lineno_1" != "x$as_lineno_2" && 6454 test "x$as_lineno_3" = "x$as_lineno_2" || { 6455 # Find who we are. Look in the path if we contain no path at all 6456 # relative or not. 6457 case $0 in 6458 *[\\/]* ) as_myself=$0 ;; 6459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460 for as_dir in $PATH 6461 do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6465 done 6466 6467 ;; 6468 esac 6469 # We did not find ourselves, most probably we were run as `sh COMMAND' 6470 # in which case we are not to be found in the path. 6471 if test "x$as_myself" = x; then 6472 as_myself=$0 6473 fi 6474 if test ! -f "$as_myself"; then 6475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6476 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6477 { (exit 1); exit 1; }; } 6478 fi 6479 case $CONFIG_SHELL in 6480 '') 6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6483 do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for as_base in sh bash ksh sh5; do 6487 case $as_dir in 6488 /*) 6489 if ("$as_dir/$as_base" -c ' 6490 as_lineno_1=$LINENO 6491 as_lineno_2=$LINENO 6492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6493 test "x$as_lineno_1" != "x$as_lineno_2" && 6494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6495 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6496 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6497 CONFIG_SHELL=$as_dir/$as_base 6498 export CONFIG_SHELL 6499 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6500 fi;; 6501 esac 6502 done 6503 done 6504 ;; 6505 esac 6506 6507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6508 # uniformly replaced by the line number. The first 'sed' inserts a 6509 # line-number line before each line; the second 'sed' does the real 6510 # work. The second script uses 'N' to pair each line-number line 6511 # with the numbered line, and appends trailing '-' during 6512 # substitution so that $LINENO is not a special case at line end. 6513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6515 sed '=' <$as_myself | 6516 sed ' 6517 N 6518 s,$,-, 6519 : loop 6520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6521 t loop 6522 s,-$,, 6523 s,^['$as_cr_digits']*\n,, 6524 ' >$as_me.lineno && 6525 chmod +x $as_me.lineno || 6526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6527 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6528 { (exit 1); exit 1; }; } 6529 6530 # Don't try to exec as it changes $[0], causing all sort of problems 6531 # (the dirname of $[0] is not the place where we might find the 6532 # original and so on. Autoconf is especially sensible to this). 6533 . ./$as_me.lineno 6534 # Exit status is that of the last command. 6535 exit 6536 } 6537 6538 6539 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6540 *c*,-n*) ECHO_N= ECHO_C=' 6541 ' ECHO_T=' ' ;; 6542 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6543 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6544 esac 4613 6545 4614 6546 if expr a : '\(a\)' >/dev/null 2>&1; then … … 4636 6568 rm -f conf$$ conf$$.exe conf$$.file 4637 6569 6570 if mkdir -p . 2>/dev/null; then 6571 as_mkdir_p=: 6572 else 6573 test -d ./-p && rmdir ./-p 6574 as_mkdir_p=false 6575 fi 6576 4638 6577 as_executable_p="test -f" 4639 6578 4640 # Support unset when possible. 4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4642 as_unset=unset 4643 else 4644 as_unset=false 4645 fi 4646 4647 # NLS nuisances. 4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 6579 # Sed expression to map a string onto a valid CPP name. 6580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6581 6582 # Sed expression to map a string onto a valid variable name. 6583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6584 4656 6585 4657 6586 # IFS … … 4662 6591 4663 6592 # CDPATH. 4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }6593 $as_unset CDPATH 4665 6594 4666 6595 exec 6>&1 4667 6596 6597 # Open the log real soon, to keep \$[0] and so on meaningful, and to 6598 # report actual input values of CONFIG_FILES etc. instead of their 6599 # values after options handling. Logging --version etc. is OK. 6600 exec 5>>config.log 6601 { 6602 echo 6603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6604 ## Running $as_me. ## 6605 _ASBOX 6606 } >&5 6607 cat >&5 <<_CSEOF 6608 6609 This file was extended by $as_me, which was 6610 generated by GNU Autoconf 2.59. Invocation command line was 6611 6612 CONFIG_FILES = $CONFIG_FILES 6613 CONFIG_HEADERS = $CONFIG_HEADERS 6614 CONFIG_LINKS = $CONFIG_LINKS 6615 CONFIG_COMMANDS = $CONFIG_COMMANDS 6616 $ $0 $@ 6617 6618 _CSEOF 6619 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6620 echo >&5 4668 6621 _ACEOF 4669 6622 … … 4685 6638 fi 4686 6639 4687 cat >>$CONFIG_STATUS <<\ EOF6640 cat >>$CONFIG_STATUS <<\_ACEOF 4688 6641 4689 6642 ac_cs_usage="\ … … 4695 6648 -h, --help print this help, then exit 4696 6649 -V, --version print version number, then exit 6650 -q, --quiet do not print progress messages 4697 6651 -d, --debug don't remove temporary files 4698 6652 --recheck update $as_me by reconfiguring in the same conditions 4699 6653 --file=FILE[:TEMPLATE] 4700 6654 instantiate the configuration file FILE 4701 6655 --header=FILE[:TEMPLATE] 4702 6656 instantiate the configuration header FILE 4703 6657 4704 6658 Configuration files: … … 4712 6666 4713 6667 Report bugs to <[email protected]>." 4714 EOF4715 4716 cat >>$CONFIG_STATUS << EOF6668 _ACEOF 6669 6670 cat >>$CONFIG_STATUS <<_ACEOF 4717 6671 ac_cs_version="\\ 4718 6672 config.status 4719 configured by $0, generated by GNU Autoconf 2.5 0,6673 configured by $0, generated by GNU Autoconf 2.59, 4720 6674 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4721 6675 4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4723 Free Software Foundation, Inc. 6676 Copyright (C) 2003 Free Software Foundation, Inc. 4724 6677 This config.status script is free software; the Free Software Foundation 4725 6678 gives unlimited permission to copy, distribute and modify it." 4726 6679 srcdir=$srcdir 4727 6680 INSTALL="$INSTALL" 4728 EOF4729 4730 cat >>$CONFIG_STATUS <<\ EOF6681 _ACEOF 6682 6683 cat >>$CONFIG_STATUS <<\_ACEOF 4731 6684 # If no file are specified by the user, then we need to provide default 4732 6685 # value. By we need to know if files were specified by the user. … … 4738 6691 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4739 6692 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4740 shift 4741 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 4742 shift 6693 ac_shift=: 4743 6694 ;; 4744 -*);; 6695 -*) 6696 ac_option=$1 6697 ac_optarg=$2 6698 ac_shift=shift 6699 ;; 4745 6700 *) # This is not an option, so the user has probably given explicit 4746 6701 # arguments. 6702 ac_option=$1 4747 6703 ac_need_defaults=false;; 4748 6704 esac 4749 6705 4750 case $ 1in6706 case $ac_option in 4751 6707 # Handling of the options. 4752 EOF4753 cat >>$CONFIG_STATUS << EOF6708 _ACEOF 6709 cat >>$CONFIG_STATUS <<\_ACEOF 4754 6710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4755 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 4756 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 4757 EOF 4758 cat >>$CONFIG_STATUS <<\EOF 6711 ac_cs_recheck=: ;; 4759 6712 --version | --vers* | -V ) 4760 6713 echo "$ac_cs_version"; exit 0 ;; 4761 6714 --he | --h) 4762 6715 # Conflict between --help and --header 4763 { { echo "$as_me: 4763: error: ambiguous option: $16716 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4764 6717 Try \`$0 --help' for more information." >&5 4765 6718 echo "$as_me: error: ambiguous option: $1 … … 4771 6724 debug=: ;; 4772 6725 --file | --fil | --fi | --f ) 4773 shift4774 CONFIG_FILES="$CONFIG_FILES $ 1"6726 $ac_shift 6727 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4775 6728 ac_need_defaults=false;; 4776 6729 --header | --heade | --head | --hea ) 4777 shift4778 CONFIG_HEADERS="$CONFIG_HEADERS $ 1"6730 $ac_shift 6731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4779 6732 ac_need_defaults=false;; 4780 4781 # Handling of arguments. 4782 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4783 'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 4784 'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 4785 'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 4786 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 4787 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 4788 'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 4789 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 4790 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6734 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6735 ac_cs_silent=: ;; 4791 6736 4792 6737 # This is an error. 4793 -*) { { echo "$as_me: 4793: error: unrecognized option: $16738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4794 6739 Try \`$0 --help' for more information." >&5 4795 6740 echo "$as_me: error: unrecognized option: $1 4796 6741 Try \`$0 --help' for more information." >&2;} 4797 6742 { (exit 1); exit 1; }; } ;; 4798 *) { { echo "$as_me:4798: error: invalid argument: $1" >&5 4799 echo "$as_me: error: invalid argument: $1" >&2;} 4800 { (exit 1); exit 1; }; };; 6743 6744 *) ac_config_targets="$ac_config_targets $1" ;; 6745 4801 6746 esac 4802 6747 shift 4803 6748 done 4804 6749 4805 exec 5>>config.log 4806 cat >&5 << _ACEOF 4807 4808 ## ----------------------- ## 4809 ## Running config.status. ## 4810 ## ----------------------- ## 4811 4812 This file was extended by $as_me 2.50, executed with 4813 > $ac_cs_invocation 4814 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4815 4816 _ACEOF 4817 EOF 4818 4819 cat >>$CONFIG_STATUS <<\EOF 6750 ac_configure_extra_args= 6751 6752 if $ac_cs_silent; then 6753 exec 6>/dev/null 6754 ac_configure_extra_args="$ac_configure_extra_args --silent" 6755 fi 6756 6757 _ACEOF 6758 cat >>$CONFIG_STATUS <<_ACEOF 6759 if \$ac_cs_recheck; then 6760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6762 fi 6763 6764 _ACEOF 6765 6766 6767 6768 6769 6770 cat >>$CONFIG_STATUS <<\_ACEOF 6771 for ac_config_target in $ac_config_targets 6772 do 6773 case "$ac_config_target" in 6774 # Handling of arguments. 6775 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6776 "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 6777 "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 6778 "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 6779 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 6780 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 6781 "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 6782 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 6783 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6786 { (exit 1); exit 1; }; };; 6787 esac 6788 done 6789 4820 6790 # If the user did not use the arguments to specify the items to instantiate, 4821 6791 # then the envvar interface is used. Set only those that are not. … … 4828 6798 fi 4829 6799 6800 # Have a temporary directory for convenience. Make it in the build tree 6801 # simply because there is no reason to put it here, and in addition, 6802 # creating and moving files from /tmp can sometimes cause problems. 4830 6803 # Create a temporary directory, and hook for its removal unless debugging. 4831 6804 $debug || 4832 6805 { 4833 6806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4834 trap '{ (exit $?); exit $?; }' 1 2 13 156807 trap '{ (exit 1); exit 1; }' 1 2 13 15 4835 6808 } 4836 6809 4837 6810 # Create a (secure) tmp directory for tmp files. 4838 : ${TMPDIR=/tmp} 6811 4839 6812 { 4840 tmp=`(umask 077 && mktemp -d -q " $TMPDIR/csXXXXXX") 2>/dev/null` &&6813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4841 6814 test -n "$tmp" && test -d "$tmp" 4842 6815 } || 4843 6816 { 4844 tmp= $TMPDIR/cs$$-$RANDOM6817 tmp=./confstat$$-$RANDOM 4845 6818 (umask 077 && mkdir $tmp) 4846 6819 } || 4847 6820 { 4848 echo "$me: cannot create a temporary directory in $TMPDIR" >&26821 echo "$me: cannot create a temporary directory in ." >&2 4849 6822 { (exit 1); exit 1; } 4850 6823 } 4851 6824 4852 EOF4853 4854 cat >>$CONFIG_STATUS << EOF6825 _ACEOF 6826 6827 cat >>$CONFIG_STATUS <<_ACEOF 4855 6828 4856 6829 # … … 4865 6838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4866 6839 s,@SHELL@,$SHELL,;t t 6840 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6841 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6842 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6843 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6844 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6845 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4867 6846 s,@exec_prefix@,$exec_prefix,;t t 4868 6847 s,@prefix@,$prefix,;t t … … 4880 6859 s,@infodir@,$infodir,;t t 4881 6860 s,@mandir@,$mandir,;t t 4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6861 s,@build_alias@,$build_alias,;t t 6862 s,@host_alias@,$host_alias,;t t 6863 s,@target_alias@,$target_alias,;t t 6864 s,@DEFS@,$DEFS,;t t 4887 6865 s,@ECHO_C@,$ECHO_C,;t t 4888 6866 s,@ECHO_N@,$ECHO_N,;t t 4889 6867 s,@ECHO_T@,$ECHO_T,;t t 4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t4891 s,@DEFS@,$DEFS,;t t4892 6868 s,@LIBS@,$LIBS,;t t 4893 6869 s,@PACKAGE@,$PACKAGE,;t t … … 4913 6889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 4914 6890 s,@CPP@,$CPP,;t t 6891 s,@EGREP@,$EGREP,;t t 4915 6892 s,@U@,$U,;t t 4916 6893 s,@ANSI2KNR@,$ANSI2KNR,;t t 4917 6894 s,@ALLOCA@,$ALLOCA,;t t 4918 6895 s,@LIBOBJS@,$LIBOBJS,;t t 6896 s,@JNIINC@,$JNIINC,;t t 6897 s,@JNISUFFIX@,$JNISUFFIX,;t t 6898 s,@JNIFLAGS@,$JNIFLAGS,;t t 6899 s,@LIBOBJS@,$LIBOBJS,;t t 6900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4919 6901 CEOF 4920 6902 4921 EOF4922 4923 cat >>$CONFIG_STATUS <<\ EOF6903 _ACEOF 6904 6905 cat >>$CONFIG_STATUS <<\_ACEOF 4924 6906 # Split the substitutions into bite-sized pieces for seds with 4925 6907 # small command number limits, like on Digital OSF/1 and HP-UX. … … 4946 6928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4947 6929 if test -z "$ac_sed_cmds"; then 4948 6930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4949 6931 else 4950 6932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4951 6933 fi 4952 6934 ac_sed_frag=`expr $ac_sed_frag + 1` … … 4960 6942 fi # test -n "$CONFIG_FILES" 4961 6943 4962 EOF4963 cat >>$CONFIG_STATUS <<\ EOF6944 _ACEOF 6945 cat >>$CONFIG_STATUS <<\_ACEOF 4964 6946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4965 6947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4966 6948 case $ac_file in 4967 6949 - | *:- | *:-:* ) # input from stdin 4968 4969 4970 6950 cat >$tmp/stdin 6951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4971 6953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4972 6954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4973 6955 * ) ac_file_in=$ac_file.in ;; 4974 6956 esac 4975 6957 4976 6958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4977 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4978 X"$ac_file" : 'X\(//\)[^/]' \| \ 4979 X"$ac_file" : 'X\(//\)$' \| \ 4980 X"$ac_file" : 'X\(/\)' \| \ 4981 . : '\(.\)' 2>/dev/null || 6959 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6961 X"$ac_file" : 'X\(//\)[^/]' \| \ 6962 X"$ac_file" : 'X\(//\)$' \| \ 6963 X"$ac_file" : 'X\(/\)' \| \ 6964 . : '\(.\)' 2>/dev/null || 4982 6965 echo X"$ac_file" | 4983 6966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 4986 6969 /^X\(\/\).*/{ s//\1/; q; } 4987 6970 s/.*/./; q'` 4988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4989 { case "$ac_dir" in 4990 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 4991 *) as_incr_dir=.;; 6971 { if $as_mkdir_p; then 6972 mkdir -p "$ac_dir" 6973 else 6974 as_dir="$ac_dir" 6975 as_dirs= 6976 while test ! -d "$as_dir"; do 6977 as_dirs="$as_dir $as_dirs" 6978 as_dir=`(dirname "$as_dir") 2>/dev/null || 6979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6980 X"$as_dir" : 'X\(//\)[^/]' \| \ 6981 X"$as_dir" : 'X\(//\)$' \| \ 6982 X"$as_dir" : 'X\(/\)' \| \ 6983 . : '\(.\)' 2>/dev/null || 6984 echo X"$as_dir" | 6985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6986 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6987 /^X\(\/\/\)$/{ s//\1/; q; } 6988 /^X\(\/\).*/{ s//\1/; q; } 6989 s/.*/./; q'` 6990 done 6991 test ! -n "$as_dirs" || mkdir $as_dirs 6992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6994 { (exit 1); exit 1; }; }; } 6995 6996 ac_builddir=. 6997 6998 if test "$ac_dir" != .; then 6999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7000 # A "../" for each directory in $ac_dir_suffix. 7001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7002 else 7003 ac_dir_suffix= ac_top_builddir= 7004 fi 7005 7006 case $srcdir in 7007 .) # No --srcdir option. We are building in place. 7008 ac_srcdir=. 7009 if test -z "$ac_top_builddir"; then 7010 ac_top_srcdir=. 7011 else 7012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7013 fi ;; 7014 [\\/]* | ?:[\\/]* ) # Absolute path. 7015 ac_srcdir=$srcdir$ac_dir_suffix; 7016 ac_top_srcdir=$srcdir ;; 7017 *) # Relative path. 7018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7019 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4992 7020 esac 4993 as_dummy="$ac_dir" 4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 4995 case $as_mkdir_dir in 4996 # Skip DOS drivespec 4997 ?:) as_incr_dir=$as_mkdir_dir ;; 4998 *) 4999 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5000 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5001 ;; 5002 esac 5003 done; } 5004 5005 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5006 # A "../" for each directory in $ac_dir_suffix. 5007 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5008 else 5009 ac_dir_suffix= ac_dots= 5010 fi 5011 5012 case $srcdir in 5013 .) ac_srcdir=. 5014 if test -z "$ac_dots"; then 5015 ac_top_srcdir=. 5016 else 5017 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5018 fi ;; 5019 [\\/]* | ?:[\\/]* ) 5020 ac_srcdir=$srcdir$ac_dir_suffix; 5021 ac_top_srcdir=$srcdir ;; 5022 *) # Relative path. 5023 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5024 ac_top_srcdir=$ac_dots$srcdir ;; 5025 esac 7021 7022 # Do not use `cd foo && pwd` to compute absolute paths, because 7023 # the directories may not exist. 7024 case `pwd` in 7025 .) ac_abs_builddir="$ac_dir";; 7026 *) 7027 case "$ac_dir" in 7028 .) ac_abs_builddir=`pwd`;; 7029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7030 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7031 esac;; 7032 esac 7033 case $ac_abs_builddir in 7034 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7035 *) 7036 case ${ac_top_builddir}. in 7037 .) ac_abs_top_builddir=$ac_abs_builddir;; 7038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7040 esac;; 7041 esac 7042 case $ac_abs_builddir in 7043 .) ac_abs_srcdir=$ac_srcdir;; 7044 *) 7045 case $ac_srcdir in 7046 .) ac_abs_srcdir=$ac_abs_builddir;; 7047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7049 esac;; 7050 esac 7051 case $ac_abs_builddir in 7052 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7053 *) 7054 case $ac_top_srcdir in 7055 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7058 esac;; 7059 esac 7060 5026 7061 5027 7062 case $INSTALL in 5028 7063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5029 *) ac_INSTALL=$ac_ dots$INSTALL ;;7064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5030 7065 esac 5031 7066 5032 7067 if test x"$ac_file" != x-; then 5033 { echo "$as_me: 5033: creating $ac_file" >&57068 { echo "$as_me:$LINENO: creating $ac_file" >&5 5034 7069 echo "$as_me: creating $ac_file" >&6;} 5035 7070 rm -f "$ac_file" … … 5037 7072 # Let's still pretend it is `configure' which instantiates (i.e., don't 5038 7073 # use $as_me), people would be surprised to read: 5039 # /* config.h. Generated automatically by config.status. */ 5040 configure_input="Generated automatically from `echo $ac_file_in | 5041 sed 's,.*/,,'` by configure." 7074 # /* config.h. Generated by config.status. */ 7075 if test x"$ac_file" = x-; then 7076 configure_input= 7077 else 7078 configure_input="$ac_file. " 7079 fi 7080 configure_input=$configure_input"Generated from `echo $ac_file_in | 7081 sed 's,.*/,,'` by configure." 5042 7082 5043 7083 # First look for the input files in the build tree, otherwise in the … … 5048 7088 -) echo $tmp/stdin ;; 5049 7089 [\\/$]*) 5050 5051 test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&57090 # Absolute (can't be DOS-style, as IFS=:) 7091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5052 7092 echo "$as_me: error: cannot find input file: $f" >&2;} 5053 7093 { (exit 1); exit 1; }; } 5054 echo $f;;7094 echo "$f";; 5055 7095 *) # Relative 5056 5057 5058 echo $f 5059 5060 5061 echo $srcdir/$f 5062 5063 5064 { { echo "$as_me:5064: error: cannot find input file: $f" >&57096 if test -f "$f"; then 7097 # Build tree 7098 echo "$f" 7099 elif test -f "$srcdir/$f"; then 7100 # Source tree 7101 echo "$srcdir/$f" 7102 else 7103 # /dev/null tree 7104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5065 7105 echo "$as_me: error: cannot find input file: $f" >&2;} 5066 7106 { (exit 1); exit 1; }; } 5067 7107 fi;; 5068 7108 esac 5069 7109 done` || { (exit 1); exit 1; } 5070 EOF5071 cat >>$CONFIG_STATUS << EOF7110 _ACEOF 7111 cat >>$CONFIG_STATUS <<_ACEOF 5072 7112 sed "$ac_vpsub 5073 7113 $extrasub 5074 EOF5075 cat >>$CONFIG_STATUS <<\ EOF7114 _ACEOF 7115 cat >>$CONFIG_STATUS <<\_ACEOF 5076 7116 :t 5077 7117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5078 7118 s,@configure_input@,$configure_input,;t t 5079 7119 s,@srcdir@,$ac_srcdir,;t t 7120 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5080 7121 s,@top_srcdir@,$ac_top_srcdir,;t t 7122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7123 s,@builddir@,$ac_builddir,;t t 7124 s,@abs_builddir@,$ac_abs_builddir,;t t 7125 s,@top_builddir@,$ac_top_builddir,;t t 7126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5081 7127 s,@INSTALL@,$ac_INSTALL,;t t 5082 7128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out … … 5090 7136 5091 7137 done 5092 EOF5093 cat >>$CONFIG_STATUS <<\ EOF7138 _ACEOF 7139 cat >>$CONFIG_STATUS <<\_ACEOF 5094 7140 5095 7141 # … … 5101 7147 # 5102 7148 # ac_d sets the value in "#define NAME VALUE" lines. 5103 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][]*\)'5104 ac_dB='[ 7149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7150 ac_dB='[ ].*$,\1#\2' 5105 7151 ac_dC=' ' 5106 7152 ac_dD=',;t' 5107 7153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5108 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'7154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5109 7155 ac_uB='$,\1#\2define\3' 5110 7156 ac_uC=' ' … … 5115 7161 case $ac_file in 5116 7162 - | *:- | *:-:* ) # input from stdin 5117 5118 5119 7163 cat >$tmp/stdin 7164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5120 7166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5121 7167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5122 7168 * ) ac_file_in=$ac_file.in ;; 5123 7169 esac 5124 7170 5125 test x"$ac_file" != x- && { echo "$as_me: 5125: creating $ac_file" >&57171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5126 7172 echo "$as_me: creating $ac_file" >&6;} 5127 7173 … … 5133 7179 -) echo $tmp/stdin ;; 5134 7180 [\\/$]*) 5135 5136 test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&57181 # Absolute (can't be DOS-style, as IFS=:) 7182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5137 7183 echo "$as_me: error: cannot find input file: $f" >&2;} 5138 7184 { (exit 1); exit 1; }; } 5139 echo $f;; 7185 # Do quote $f, to prevent DOS paths from being IFS'd. 7186 echo "$f";; 5140 7187 *) # Relative 5141 5142 5143 echo $f 5144 5145 5146 echo $srcdir/$f 5147 5148 5149 { { echo "$as_me:5149: error: cannot find input file: $f" >&57188 if test -f "$f"; then 7189 # Build tree 7190 echo "$f" 7191 elif test -f "$srcdir/$f"; then 7192 # Source tree 7193 echo "$srcdir/$f" 7194 else 7195 # /dev/null tree 7196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5150 7197 echo "$as_me: error: cannot find input file: $f" >&2;} 5151 7198 { (exit 1); exit 1; }; } 5152 7199 fi;; 5153 7200 esac 5154 7201 done` || { (exit 1); exit 1; } 5155 7202 # Remove the trailing spaces. 5156 sed 's/[ 5157 5158 EOF7203 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7204 7205 _ACEOF 5159 7206 5160 7207 # Transform confdefs.h into two sed scripts, `conftest.defines' and … … 5172 7219 # 0-ary CPP macros) applies to n-ary macro definitions. 5173 7220 # See the Autoconf documentation for `clear'. 5174 cat >confdef2sed.sed <<\ EOF7221 cat >confdef2sed.sed <<\_ACEOF 5175 7222 s/[\\&,]/\\&/g 5176 7223 s,[\\$`],\\&,g 5177 7224 t clear 5178 7225 : clear 5179 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp7226 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5180 7227 t end 5181 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp7228 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5182 7229 : end 5183 EOF7230 _ACEOF 5184 7231 # If some macros were called several times there might be several times 5185 7232 # the same #defines, which is useless. Nevertheless, we may not want to … … 5192 7239 # example, in the case of _POSIX_SOURCE, which is predefined and required 5193 7240 # on some systems where configure will not decide to define it. 5194 cat >>conftest.undefs <<\ EOF5195 s,^[ ]*#[ ]*undef[ ][]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,5196 EOF7241 cat >>conftest.undefs <<\_ACEOF 7242 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7243 _ACEOF 5197 7244 5198 7245 # Break up conftest.defines because some shells have a limit on the size 5199 7246 # of here documents, and old seds have small limits too (100 cmds). 5200 7247 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5201 echo ' if egrep "^[ ]*#[]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS7248 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5202 7249 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5203 7250 echo ' :' >>$CONFIG_STATUS … … 5208 7255 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5209 7256 # Speed up: don't consider the non `#define' lines. 5210 echo '/^[ ]*#[]*define/!b' >>$CONFIG_STATUS7257 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5211 7258 # Work around the forget-to-reset-the-flag bug. 5212 7259 echo 't clr' >>$CONFIG_STATUS … … 5223 7270 done 5224 7271 rm -f conftest.defines 5225 echo ' fi # egrep' >>$CONFIG_STATUS7272 echo ' fi # grep' >>$CONFIG_STATUS 5226 7273 echo >>$CONFIG_STATUS 5227 7274 … … 5235 7282 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5236 7283 # Speed up: don't consider the non `#undef' 5237 echo '/^[ ]*#[]*undef/!b' >>$CONFIG_STATUS7284 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5238 7285 # Work around the forget-to-reset-the-flag bug. 5239 7286 echo 't clr' >>$CONFIG_STATUS … … 5251 7298 rm -f conftest.undefs 5252 7299 5253 cat >>$CONFIG_STATUS <<\ EOF7300 cat >>$CONFIG_STATUS <<\_ACEOF 5254 7301 # Let's still pretend it is `configure' which instantiates (i.e., don't 5255 7302 # use $as_me), people would be surprised to read: 5256 # /* config.h. Generated automaticallyby config.status. */7303 # /* config.h. Generated by config.status. */ 5257 7304 if test x"$ac_file" = x-; then 5258 echo "/* Generated automaticallyby configure. */" >$tmp/config.h7305 echo "/* Generated by configure. */" >$tmp/config.h 5259 7306 else 5260 echo "/* $ac_file. Generated automaticallyby configure. */" >$tmp/config.h7307 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5261 7308 fi 5262 7309 cat $tmp/in >>$tmp/config.h 5263 7310 rm -f $tmp/in 5264 7311 if test x"$ac_file" != x-; then 5265 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then5266 { echo "$as_me: 5266: $ac_file is unchanged" >&57312 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5267 7314 echo "$as_me: $ac_file is unchanged" >&6;} 5268 7315 else 5269 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5270 X"$ac_file" : 'X\(//\)[^/]' \| \ 5271 X"$ac_file" : 'X\(//\)$' \| \ 5272 X"$ac_file" : 'X\(/\)' \| \ 5273 . : '\(.\)' 2>/dev/null || 7316 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7318 X"$ac_file" : 'X\(//\)[^/]' \| \ 7319 X"$ac_file" : 'X\(//\)$' \| \ 7320 X"$ac_file" : 'X\(/\)' \| \ 7321 . : '\(.\)' 2>/dev/null || 5274 7322 echo X"$ac_file" | 5275 7323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 5278 7326 /^X\(\/\).*/{ s//\1/; q; } 5279 7327 s/.*/./; q'` 5280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5281 { case "$ac_dir" in 5282 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5283 *) as_incr_dir=.;; 5284 esac 5285 as_dummy="$ac_dir" 5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5287 case $as_mkdir_dir in 5288 # Skip DOS drivespec 5289 ?:) as_incr_dir=$as_mkdir_dir ;; 5290 *) 5291 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5292 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5293 ;; 5294 esac 5295 done; } 5296 5297 fi 7328 { if $as_mkdir_p; then 7329 mkdir -p "$ac_dir" 7330 else 7331 as_dir="$ac_dir" 7332 as_dirs= 7333 while test ! -d "$as_dir"; do 7334 as_dirs="$as_dir $as_dirs" 7335 as_dir=`(dirname "$as_dir") 2>/dev/null || 7336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7337 X"$as_dir" : 'X\(//\)[^/]' \| \ 7338 X"$as_dir" : 'X\(//\)$' \| \ 7339 X"$as_dir" : 'X\(/\)' \| \ 7340 . : '\(.\)' 2>/dev/null || 7341 echo X"$as_dir" | 7342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7343 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7344 /^X\(\/\/\)$/{ s//\1/; q; } 7345 /^X\(\/\).*/{ s//\1/; q; } 7346 s/.*/./; q'` 7347 done 7348 test ! -n "$as_dirs" || mkdir $as_dirs 7349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7351 { (exit 1); exit 1; }; }; } 7352 5298 7353 rm -f $ac_file 5299 7354 mv $tmp/config.h $ac_file … … 5304 7359 fi 5305 7360 done 5306 EOF5307 cat >>$CONFIG_STATUS <<\ EOF7361 _ACEOF 7362 cat >>$CONFIG_STATUS <<\_ACEOF 5308 7363 5309 7364 # … … 5313 7368 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5314 7369 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5315 7370 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 7371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7372 X"$ac_dest" : 'X\(//\)[^/]' \| \ 7373 X"$ac_dest" : 'X\(//\)$' \| \ 7374 X"$ac_dest" : 'X\(/\)' \| \ 7375 . : '\(.\)' 2>/dev/null || 7376 echo X"$ac_dest" | 7377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7378 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7379 /^X\(\/\/\)$/{ s//\1/; q; } 7380 /^X\(\/\).*/{ s//\1/; q; } 7381 s/.*/./; q'` 7382 { if $as_mkdir_p; then 7383 mkdir -p "$ac_dir" 7384 else 7385 as_dir="$ac_dir" 7386 as_dirs= 7387 while test ! -d "$as_dir"; do 7388 as_dirs="$as_dir $as_dirs" 7389 as_dir=`(dirname "$as_dir") 2>/dev/null || 7390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7391 X"$as_dir" : 'X\(//\)[^/]' \| \ 7392 X"$as_dir" : 'X\(//\)$' \| \ 7393 X"$as_dir" : 'X\(/\)' \| \ 7394 . : '\(.\)' 2>/dev/null || 7395 echo X"$as_dir" | 7396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7397 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7398 /^X\(\/\/\)$/{ s//\1/; q; } 7399 /^X\(\/\).*/{ s//\1/; q; } 7400 s/.*/./; q'` 7401 done 7402 test ! -n "$as_dirs" || mkdir $as_dirs 7403 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7405 { (exit 1); exit 1; }; }; } 7406 7407 ac_builddir=. 7408 7409 if test "$ac_dir" != .; then 7410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7411 # A "../" for each directory in $ac_dir_suffix. 7412 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7413 else 7414 ac_dir_suffix= ac_top_builddir= 7415 fi 7416 7417 case $srcdir in 7418 .) # No --srcdir option. We are building in place. 7419 ac_srcdir=. 7420 if test -z "$ac_top_builddir"; then 7421 ac_top_srcdir=. 7422 else 7423 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7424 fi ;; 7425 [\\/]* | ?:[\\/]* ) # Absolute path. 7426 ac_srcdir=$srcdir$ac_dir_suffix; 7427 ac_top_srcdir=$srcdir ;; 7428 *) # Relative path. 7429 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7430 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7431 esac 7432 7433 # Do not use `cd foo && pwd` to compute absolute paths, because 7434 # the directories may not exist. 7435 case `pwd` in 7436 .) ac_abs_builddir="$ac_dir";; 7437 *) 7438 case "$ac_dir" in 7439 .) ac_abs_builddir=`pwd`;; 7440 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7441 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7442 esac;; 7443 esac 7444 case $ac_abs_builddir in 7445 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7446 *) 7447 case ${ac_top_builddir}. in 7448 .) ac_abs_top_builddir=$ac_abs_builddir;; 7449 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7450 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7451 esac;; 7452 esac 7453 case $ac_abs_builddir in 7454 .) ac_abs_srcdir=$ac_srcdir;; 7455 *) 7456 case $ac_srcdir in 7457 .) ac_abs_srcdir=$ac_abs_builddir;; 7458 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7459 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7460 esac;; 7461 esac 7462 case $ac_abs_builddir in 7463 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7464 *) 7465 case $ac_top_srcdir in 7466 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7467 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7468 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7469 esac;; 7470 esac 7471 7472 7473 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 7474 echo "$as_me: executing $ac_dest commands" >&6;} 5316 7475 case $ac_dest in 5317 7476 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5318 7477 esac 5319 7478 done 5320 EOF5321 5322 cat >>$CONFIG_STATUS <<\ EOF7479 _ACEOF 7480 7481 cat >>$CONFIG_STATUS <<\_ACEOF 5323 7482 5324 7483 { (exit 0); exit 0; } 5325 EOF7484 _ACEOF 5326 7485 chmod +x $CONFIG_STATUS 5327 7486 ac_clean_files=$ac_clean_files_save 7487 5328 7488 5329 7489 # configure is writing to config.log, and then calls config.status. … … 5337 7497 if test "$no_create" != yes; then 5338 7498 ac_cs_success=: 7499 ac_config_status_args= 7500 test "$silent" = yes && 7501 ac_config_status_args="$ac_config_status_args --quiet" 5339 7502 exec 5>/dev/null 5340 $SHELL $CONFIG_STATUS || ac_cs_success=false7503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5341 7504 exec 5>>config.log 5342 7505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which -
trunk/gsdl3/src/packages/mg/configure.in
r7882 r10191 77 77 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 78 78 AC_MSG_RESULT(yes) 79 LIBOBJS="$LIBOBJS gmalloc.o"79 AC_LIBOBJ(gmalloc) 80 80 AC_DEFINE(HAVE_VALLOC) 81 81 else … … 83 83 AC_CHECK_FUNCS(valloc) 84 84 fi 85 86 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 87 # a non-standard Path 88 AC_MSG_CHECKING(for Apple MacOS X/Darwin) 89 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 90 AC_MSG_RESULT(yes) 91 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 92 JNISUFFIX="jnilib" 93 JNIFLAGS="-dynamiclib -fno-common -single_module" 94 LDFLAGS="-framework JavaVM" 95 else 96 AC_MSG_RESULT(no) 97 JNIINC="" 98 JNISUFFIX="so" 99 JNIFLAGS="-shared" 100 fi 101 AC_SUBST(JNIINC) 102 AC_SUBST(JNISUFFIX) 103 AC_SUBST(JNIFLAGS) 85 104 86 105 fp_WITH_DMALLOC … … 90 109 if test "$ac_cv_func_alloca" = 'no'; then 91 110 dnl support functions for alloca.c 92 LIBOBJS="$LIBOBJS xmalloc.o error.o" 111 AC_LIBOBJ(xmalloc) 112 AC_LIBOBJ(error) 93 113 fi 94 114 -
trunk/gsdl3/src/packages/mg/jni/Makefile.in
r8208 r10191 26 26 AWK = @AWK@ 27 27 28 JNIFLAGS=@JNIFLAGS@ 29 JNISUFFIX=@JNISUFFIX@ 30 JNIINC=@JNIINC@ 28 31 datadir = $(prefix)/share 29 32 libexecdir = $(exec_prefix)/libexec … … 39 42 $(CCOMPILE) $< 40 43 41 42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux 44 # can we get rid of JAVA_HOME from here?? 45 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC) 43 46 44 47 all: compile link … … 48 51 49 52 link: 50 $(CC) $(LDFLAGS) -shared -o libmgjni.soMGWrapperImpl.o $(QUERY_LIBS)51 $(CC) $(LDFLAGS) -shared -o libmgpassjni.soMGPassesWrapperImpl.o $(PASSES_LIBS)53 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS) 54 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX) MGPassesWrapperImpl.o $(PASSES_LIBS) 52 55 53 56 clean: 54 rm -rf *.o libmgjni. so libmgpassjni.so57 rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) 55 58 56 59 distclean: clean … … 59 62 install: 60 63 ../mkinstalldirs $(libdir); \ 61 cp libmgjni. so libmgpassjni.so$(libdir)/;64 cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) $(libdir)/; 62 65 63 66 -
trunk/indexers/mg/configure
r3745 r10191 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by Autoconf 2.50.3 # Generated by GNU Autoconf 2.59. 4 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 9 11 10 12 # Be Bourne compatible … … 12 14 emulate sh 13 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 14 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 20 set -o posix 16 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 17 64 18 65 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 20 193 21 194 if expr a : '\(a\)' >/dev/null 2>&1; then … … 43 216 rm -f conf$$ conf$$.exe conf$$.file 44 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 45 225 as_executable_p="test -f" 46 226 47 # Support unset when possible. 48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 49 as_unset=unset 50 else 51 as_unset=false 52 fi 53 54 # NLS nuisances. 55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 63 233 64 234 # IFS … … 69 239 70 240 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 241 $as_unset CDPATH 242 72 243 73 244 # Name of the host. … … 82 253 # 83 254 ac_default_prefix=/usr/local 255 ac_config_libobj_dir=. 84 256 cross_compiling=no 85 257 subdirs= 86 MFLAGS= MAKEFLAGS= 258 MFLAGS= 259 MAKEFLAGS= 87 260 SHELL=${CONFIG_SHELL-/bin/sh} 88 261 … … 92 265 : ${ac_max_here_lines=38} 93 266 94 # Avoid depending upon Character Ranges. 95 ac_cr_az='abcdefghijklmnopqrstuvwxyz' 96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97 ac_cr_09='0123456789' 98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 99 100 # Sed expression to map a string onto a valid sh and CPP variable names. 101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 103 273 104 274 ac_unique_file="src/text/mgquery.c" … … 106 276 ac_includes_default="\ 107 277 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 110 284 #if STDC_HEADERS 111 285 # include <stdlib.h> … … 121 295 # endif 122 296 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 127 300 #endif 128 301 #if HAVE_INTTYPES_H 129 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 130 307 #endif 131 308 #if HAVE_UNISTD_H 132 309 # include <unistd.h> 133 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 134 314 135 315 # Initialize some variables set by options. … … 171 351 mandir='${prefix}/man' 172 352 173 # Identity of this package.174 PACKAGE_NAME=175 PACKAGE_TARNAME=176 PACKAGE_VERSION=177 PACKAGE_STRING=178 PACKAGE_BUGREPORT=179 180 353 ac_prev= 181 354 for ac_option … … 223 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 224 397 # Reject names that are not valid shell variable names. 225 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 226 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 400 { (exit 1); exit 1; }; } … … 232 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 233 406 # Reject names that are not valid shell variable names. 234 expr "x$ac_feature" : ".*[^-_$a c_cr_alnum]" >/dev/null &&407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 235 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 409 { (exit 1); exit 1; }; } … … 310 483 311 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 312 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 313 486 no_create=yes ;; 314 487 … … 414 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 415 588 # Reject names that are not valid shell variable names. 416 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 417 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 591 { (exit 1); exit 1; }; } … … 427 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 428 601 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$a c_cr_alnum]" >/dev/null &&602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 430 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 604 { (exit 1); exit 1; }; } … … 459 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 633 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$a c_cr_alnum]" >/dev/null &&634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 462 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 636 { (exit 1); exit 1; }; } … … 469 642 # FIXME: should be removed in autoconf 3.0. 470 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$a c_cr_alnum]" >/dev/null &&644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 472 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} … … 484 657 485 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 486 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 671 localstatedir libdir includedir oldincludedir infodir mandir 489 672 do 490 673 eval ac_val=$`echo $ac_var` 491 674 case $ac_val in 492 675 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 495 677 { (exit 1); exit 1; }; };; 496 678 esac … … 499 681 # There might be people who depend on the old broken behavior: `$host' 500 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 501 684 build=$build_alias 502 685 host=$host_alias 503 686 target=$target_alias 504 687 505 # FIXME: should be removed in autoconf 3.0.688 # FIXME: To remove some day. 506 689 if test "x$host_alias" != x; then 507 690 if test "x$build_alias" = x; then … … 519 702 test "$silent" = yes && exec 6>/dev/null 520 703 704 521 705 # Find the source files, if location was not specified. 522 706 if test -z "$srcdir"; then 523 707 ac_srcdir_defaulted=yes 524 708 # Try the directory containing this script, then its parent. 525 ac_prog=$0 526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 528 721 srcdir=$ac_confdir 529 722 if test ! -r $srcdir/$ac_unique_file; then … … 535 728 if test ! -r $srcdir/$ac_unique_file; then 536 729 if test "$ac_srcdir_defaulted" = yes; then 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 538 731 { (exit 1); exit 1; }; } 539 732 else 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 541 734 { (exit 1); exit 1; }; } 542 735 fi 543 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 544 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 741 ac_env_build_alias_set=${build_alias+set} … … 590 786 # Omit some internal or obsolete options to make the list less imposing. 591 787 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat << EOF788 cat <<_ACEOF 593 789 \`configure' configures this package to adapt to many kinds of systems. 594 790 … … 611 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 808 613 EOF614 615 cat << EOF809 _ACEOF 810 811 cat <<_ACEOF 616 812 Installation directories: 617 813 --prefix=PREFIX install architecture-independent files in PREFIX 618 814 [$ac_default_prefix] 619 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 816 [PREFIX] 621 817 622 818 By default, \`make install' will install all the files in … … 640 836 --infodir=DIR info documentation [PREFIX/info] 641 837 --mandir=DIR man documentation [PREFIX/man] 642 EOF643 644 cat <<\ EOF838 _ACEOF 839 840 cat <<\_ACEOF 645 841 646 842 Program names: … … 648 844 --program-suffix=SUFFIX append SUFFIX to installed program names 649 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF846 _ACEOF 651 847 fi 652 848 653 849 if test -n "$ac_init_help"; then 654 850 655 cat <<\ EOF851 cat <<\_ACEOF 656 852 657 853 Optional Packages: … … 676 872 it to find libraries and programs with nonstandard names/locations. 677 873 678 EOF874 _ACEOF 679 875 fi 680 876 … … 682 878 # If there are subdirs, report their specific --help. 683 879 ac_popdir=`pwd` 684 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 685 cd $ac_subdir 686 # A "../" for each directory in /$ac_subdir. 687 ac_dots=`echo $ac_subdir | 688 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 689 690 case $srcdir in 691 .) # No --srcdir option. We are building in place. 692 ac_sub_srcdir=$srcdir ;; 693 [\\/]* | ?:[\\/]* ) # Absolute path. 694 ac_sub_srcdir=$srcdir/$ac_subdir ;; 695 *) # Relative path. 696 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 697 esac 698 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 881 test -d $ac_dir || continue 882 ac_builddir=. 883 884 if test "$ac_dir" != .; then 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 886 # A "../" for each directory in $ac_dir_suffix. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 888 else 889 ac_dir_suffix= ac_top_builddir= 890 fi 891 892 case $srcdir in 893 .) # No --srcdir option. We are building in place. 894 ac_srcdir=. 895 if test -z "$ac_top_builddir"; then 896 ac_top_srcdir=. 897 else 898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 899 fi ;; 900 [\\/]* | ?:[\\/]* ) # Absolute path. 901 ac_srcdir=$srcdir$ac_dir_suffix; 902 ac_top_srcdir=$srcdir ;; 903 *) # Relative path. 904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; 906 esac 907 908 # Do not use `cd foo && pwd` to compute absolute paths, because 909 # the directories may not exist. 910 case `pwd` in 911 .) ac_abs_builddir="$ac_dir";; 912 *) 913 case "$ac_dir" in 914 .) ac_abs_builddir=`pwd`;; 915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 916 *) ac_abs_builddir=`pwd`/"$ac_dir";; 917 esac;; 918 esac 919 case $ac_abs_builddir in 920 .) ac_abs_top_builddir=${ac_top_builddir}.;; 921 *) 922 case ${ac_top_builddir}. in 923 .) ac_abs_top_builddir=$ac_abs_builddir;; 924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 926 esac;; 927 esac 928 case $ac_abs_builddir in 929 .) ac_abs_srcdir=$ac_srcdir;; 930 *) 931 case $ac_srcdir in 932 .) ac_abs_srcdir=$ac_abs_builddir;; 933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 935 esac;; 936 esac 937 case $ac_abs_builddir in 938 .) ac_abs_top_srcdir=$ac_top_srcdir;; 939 *) 940 case $ac_top_srcdir in 941 .) ac_abs_top_srcdir=$ac_abs_builddir;; 942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 944 esac;; 945 esac 946 947 cd $ac_dir 699 948 # Check for guested configure; otherwise get Cygnus style configure. 700 if test -f $ac_s ub_srcdir/configure.gnu; then949 if test -f $ac_srcdir/configure.gnu; then 701 950 echo 702 $SHELL $ac_s ub_srcdir/configure.gnu --help=recursive703 elif test -f $ac_s ub_srcdir/configure; then951 $SHELL $ac_srcdir/configure.gnu --help=recursive 952 elif test -f $ac_srcdir/configure; then 704 953 echo 705 $SHELL $ac_s ub_srcdir/configure --help=recursive706 elif test -f $ac_s ub_srcdir/configure.ac ||707 test -f $ac_sub_srcdir/configure.in; then954 $SHELL $ac_srcdir/configure --help=recursive 955 elif test -f $ac_srcdir/configure.ac || 956 test -f $ac_srcdir/configure.in; then 708 957 echo 709 958 $ac_configure --help 710 959 else 711 echo "$as_me: WARNING: no configuration information is in $ac_ subdir" >&2960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 712 961 fi 713 962 cd $ac_popdir … … 717 966 test -n "$ac_init_help" && exit 0 718 967 if $ac_init_version; then 719 cat <<\EOF 720 721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 722 Free Software Foundation, Inc. 968 cat <<\_ACEOF 969 970 Copyright (C) 2003 Free Software Foundation, Inc. 723 971 This configure script is free software; the Free Software Foundation 724 972 gives unlimited permission to copy, distribute and modify it. 725 EOF973 _ACEOF 726 974 exit 0 727 975 fi 728 976 exec 5>config.log 729 cat >&5 << EOF977 cat >&5 <<_ACEOF 730 978 This file contains any messages produced by compilers while 731 979 running configure, to aid debugging if configure makes a mistake. 732 980 733 981 It was created by $as_me, which was 734 generated by GNU Autoconf 2.5 0. Invocation command line was982 generated by GNU Autoconf 2.59. Invocation command line was 735 983 736 984 $ $0 $@ 737 985 738 EOF986 _ACEOF 739 987 { 740 988 cat <<_ASUNAME 741 ## --------- -##742 ## Platform. 743 ## --------- -##989 ## --------- ## 990 ## Platform. ## 991 ## --------- ## 744 992 745 993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` … … 760 1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 761 1009 762 PATH = $PATH763 764 1010 _ASUNAME 1011 1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013 for as_dir in $PATH 1014 do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018 done 1019 765 1020 } >&5 766 1021 767 cat >&5 <<EOF 768 ## ------------ ## 769 ## Core tests. ## 770 ## ------------ ## 771 772 EOF 1022 cat >&5 <<_ACEOF 1023 1024 1025 ## ----------- ## 1026 ## Core tests. ## 1027 ## ----------- ## 1028 1029 _ACEOF 1030 773 1031 774 1032 # Keep a trace of the command line. 775 1033 # Strip out --no-create and --no-recursion so they do not pile up. 1034 # Strip out --silent because we don't want to record it for future runs. 776 1035 # Also quote any args containing shell meta-characters. 1036 # Make two passes to allow for proper duplicate-argument suppression. 777 1037 ac_configure_args= 1038 ac_configure_args0= 1039 ac_configure_args1= 778 1040 ac_sep= 779 for ac_arg 1041 ac_must_keep_next=false 1042 for ac_pass in 1 2 780 1043 do 781 case $ac_arg in 782 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 783 | --no-cr | --no-c) ;; 784 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 785 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 788 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 789 ac_sep=" " ;; 790 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 791 ac_sep=" " ;; 792 esac 793 # Get rid of the leading space. 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 794 1079 done 1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 795 1082 796 1083 # When interrupted or exit'd, cleanup temporary files, and complete 797 1084 # config.log. We remove comments because anyway the quotes in there 798 1085 # would cause problems or look ugly. 1086 # WARNING: Be sure not to use single quotes in there, as some shells, 1087 # such as our DU 5.0 friend, will then `close' the trap. 799 1088 trap 'exit_status=$? 800 1089 # Save into config.log some information that might help in debugging. 801 echo >&5 802 echo "## ----------------- ##" >&5 803 echo "## Cache variables. ##" >&5 804 echo "## ----------------- ##" >&5 805 echo >&5 806 # The following way of writing the cache mishandles newlines in values, 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094 ## ---------------- ## 1095 ## Cache variables. ## 1096 ## ---------------- ## 1097 _ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 807 1100 { 808 1101 (set) 2>&1 | … … 810 1103 *ac_space=\ *) 811 1104 sed -n \ 812 813 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 814 1107 ;; 815 1108 *) 816 1109 sed -n \ 817 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 818 1111 ;; 819 1112 esac; 820 } >&5 821 sed "/^$/d" confdefs.h >conftest.log 822 if test -s conftest.log; then 823 echo >&5 824 echo "## ------------ ##" >&5 825 echo "## confdefs.h. ##" >&5 826 echo "## ------------ ##" >&5 827 echo >&5 828 cat conftest.log >&5 829 fi 830 (echo; echo) >&5 831 test "$ac_signal" != 0 && 832 echo "$as_me: caught signal $ac_signal" >&5 833 echo "$as_me: exit $exit_status" >&5 834 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 1113 } 1114 echo 1115 1116 cat <<\_ASBOX 1117 ## ----------------- ## 1118 ## Output variables. ## 1119 ## ----------------- ## 1120 _ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131 ## ------------- ## 1132 ## Output files. ## 1133 ## ------------- ## 1134 _ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146 ## ----------- ## 1147 ## confdefs.h. ## 1148 ## ----------- ## 1149 _ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 835 1160 exit $exit_status 836 1161 ' 0 837 1162 for ac_signal in 1 2 13 15; do 838 trap 'ac_s tatus=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 839 1164 done 840 1165 ac_signal=0 … … 844 1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 845 1170 echo >confdefs.h 1171 1172 # Predefined preprocessor variables. 1173 1174 cat >>confdefs.h <<_ACEOF 1175 #define PACKAGE_NAME "$PACKAGE_NAME" 1176 _ACEOF 1177 1178 1179 cat >>confdefs.h <<_ACEOF 1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181 _ACEOF 1182 1183 1184 cat >>confdefs.h <<_ACEOF 1185 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1186 _ACEOF 1187 1188 1189 cat >>confdefs.h <<_ACEOF 1190 #define PACKAGE_STRING "$PACKAGE_STRING" 1191 _ACEOF 1192 1193 1194 cat >>confdefs.h <<_ACEOF 1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196 _ACEOF 1197 846 1198 847 1199 # Let the site file select an alternate cache file if it wants to. … … 856 1208 for ac_site_file in $CONFIG_SITE; do 857 1209 if test -r "$ac_site_file"; then 858 { echo "$as_me: 858: loading site script $ac_site_file" >&51210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 859 1211 echo "$as_me: loading site script $ac_site_file" >&6;} 860 cat"$ac_site_file" >&51212 sed 's/^/| /' "$ac_site_file" >&5 861 1213 . "$ac_site_file" 862 1214 fi … … 867 1219 # files actually), so we avoid doing that. 868 1220 if test -f "$cache_file"; then 869 { echo "$as_me: 869: loading cache $cache_file" >&51221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 870 1222 echo "$as_me: loading cache $cache_file" >&6;} 871 1223 case $cache_file in … … 875 1227 fi 876 1228 else 877 { echo "$as_me: 877: creating cache $cache_file" >&51229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 878 1230 echo "$as_me: creating cache $cache_file" >&6;} 879 1231 >$cache_file … … 882 1234 # Check that the precious variables saved in the cache have kept the same 883 1235 # value. 884 ac_ suggest_removing_cache=false1236 ac_cache_corrupted=false 885 1237 for ac_var in `(set) 2>&1 | 886 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 887 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 888 1240 eval ac_new_set=\$ac_env_${ac_var}_set … … 891 1243 case $ac_old_set,$ac_new_set in 892 1244 set,) 893 { echo "$as_me: 893: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5894 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}895 ac_ suggest_removing_cache=: ;;1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 896 1248 ,set) 897 { echo "$as_me: 897: WARNING: \`$ac_var' was not set in the previous run" >&5898 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}899 ac_ suggest_removing_cache=: ;;1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 900 1252 ,);; 901 1253 *) 902 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 903 { echo "$as_me:903: WARNING: \`$ac_var' has changed since the previous run:" >&5904 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}905 { echo "$as_me:905: WARNING: former value: $ac_old_val" >&5906 echo "$as_me: WARNING:former value: $ac_old_val" >&2;}907 { echo "$as_me:907: WARNING: current value: $ac_new_val" >&5908 echo "$as_me: WARNING:current value: $ac_new_val" >&2;}909 ac_suggest_removing_cache=:1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258 echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260 echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 910 1262 fi;; 911 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 912 1276 done 913 if $ac_suggest_removing_cache; then 914 { echo "$as_me:914: WARNING: changes in the environment can compromise the build" >&5 915 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 916 { echo "$as_me:916: WARNING: consider removing $cache_file and starting over" >&5 917 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 1277 if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 918 1283 fi 919 1284 … … 924 1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 925 1290 926 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 927 *c*,-n*) ECHO_N= ECHO_C=' 928 ' ECHO_T=' ' ;; 929 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 930 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 931 esac 932 echo "#! $SHELL" >conftest.sh 933 echo "exit 0" >>conftest.sh 934 chmod +x conftest.sh 935 if { (echo "$as_me:935: PATH=\".;.\"; conftest.sh") >&5 936 (PATH=".;."; conftest.sh) 2>&5 937 ac_status=$? 938 echo "$as_me:938: \$? = $ac_status" >&5 939 (exit $ac_status); }; then 940 ac_path_separator=';' 941 else 942 ac_path_separator=: 943 fi 944 PATH_SEPARATOR="$ac_path_separator" 945 rm -f conftest.sh 946 947 ac_config_headers="$ac_config_headers config.h" 948 949 if test "$program_transform_name" = s,x,x,; then 950 program_transform_name= 951 else 952 # Double any \ or $. echo might interpret backslashes. 953 cat <<\EOF >conftest.sed 954 s,\\,\\\\,g; s,\$,$$,g 955 EOF 956 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 957 rm -f conftest.sed 958 fi 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 ac_config_headers="$ac_config_headers config.h" 1310 959 1311 test "$program_prefix" != NONE && 960 program_transform_name="s,^,$ {program_prefix},;$program_transform_name"1312 program_transform_name="s,^,$program_prefix,;$program_transform_name" 961 1313 # Use a double $ so make ignores it. 962 1314 test "$program_suffix" != NONE && 963 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 964 965 # sed with no file args requires a program. 966 test -z "$program_transform_name" && program_transform_name="s,x,x," 1315 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1316 # Double any \ or $. echo might interpret backslashes. 1317 # By default was `s,x,x', remove it if useless. 1318 cat <<\_ACEOF >conftest.sed 1319 s/[\\$]/&&/g;s/;s,x,x,$// 1320 _ACEOF 1321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1322 rm conftest.sed 1323 967 1324 968 1325 PACKAGE=mg 969 1326 VERSION=1.2 970 1327 971 cat >>confdefs.h <<EOF 1328 LDFLAGS= 1329 1330 cat >>confdefs.h <<_ACEOF 972 1331 #define PACKAGE "$PACKAGE" 973 EOF974 975 cat >>confdefs.h << EOF1332 _ACEOF 1333 1334 cat >>confdefs.h <<_ACEOF 976 1335 #define VERSION "$VERSION" 977 EOF 1336 _ACEOF 1337 1338 1339 978 1340 979 1341 ac_ext=cc … … 983 1345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 984 1346 if test -n "$ac_tool_prefix"; then 985 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1347 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 986 1348 do 987 1349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 988 1350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 989 echo "$as_me: 989: checking for $ac_word" >&51351 echo "$as_me:$LINENO: checking for $ac_word" >&5 990 1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 991 1353 if test "${ac_cv_prog_CXX+set}" = set; then … … 995 1357 ac_cv_prog_CXX="$CXX" # Let the user override the test. 996 1358 else 997 ac_save_IFS=$IFS; IFS=$ac_path_separator 998 ac_dummy="$PATH" 999 for ac_dir in $ac_dummy; do 1000 IFS=$ac_save_IFS 1001 test -z "$ac_dir" && ac_dir=. 1002 $as_executable_p "$ac_dir/$ac_word" || continue 1003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1004 echo "$as_me:1004: found $ac_dir/$ac_word" >&5 1005 break 1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1360 for as_dir in $PATH 1361 do 1362 IFS=$as_save_IFS 1363 test -z "$as_dir" && as_dir=. 1364 for ac_exec_ext in '' $ac_executable_extensions; do 1365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1368 break 2 1369 fi 1370 done 1006 1371 done 1007 1372 … … 1010 1375 CXX=$ac_cv_prog_CXX 1011 1376 if test -n "$CXX"; then 1012 echo "$as_me: 1012: result: $CXX" >&51377 echo "$as_me:$LINENO: result: $CXX" >&5 1013 1378 echo "${ECHO_T}$CXX" >&6 1014 1379 else 1015 echo "$as_me: 1015: result: no" >&51380 echo "$as_me:$LINENO: result: no" >&5 1016 1381 echo "${ECHO_T}no" >&6 1017 1382 fi … … 1022 1387 if test -z "$CXX"; then 1023 1388 ac_ct_CXX=$CXX 1024 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC1389 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1025 1390 do 1026 1391 # Extract the first word of "$ac_prog", so it can be a program name with args. 1027 1392 set dummy $ac_prog; ac_word=$2 1028 echo "$as_me: 1028: checking for $ac_word" >&51393 echo "$as_me:$LINENO: checking for $ac_word" >&5 1029 1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1030 1395 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then … … 1034 1399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1035 1400 else 1036 ac_save_IFS=$IFS; IFS=$ac_path_separator 1037 ac_dummy="$PATH" 1038 for ac_dir in $ac_dummy; do 1039 IFS=$ac_save_IFS 1040 test -z "$ac_dir" && ac_dir=. 1041 $as_executable_p "$ac_dir/$ac_word" || continue 1042 ac_cv_prog_ac_ct_CXX="$ac_prog" 1043 echo "$as_me:1043: found $ac_dir/$ac_word" >&5 1044 break 1401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402 for as_dir in $PATH 1403 do 1404 IFS=$as_save_IFS 1405 test -z "$as_dir" && as_dir=. 1406 for ac_exec_ext in '' $ac_executable_extensions; do 1407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1408 ac_cv_prog_ac_ct_CXX="$ac_prog" 1409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1410 break 2 1411 fi 1412 done 1045 1413 done 1046 1414 … … 1049 1417 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1050 1418 if test -n "$ac_ct_CXX"; then 1051 echo "$as_me: 1051: result: $ac_ct_CXX" >&51419 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1052 1420 echo "${ECHO_T}$ac_ct_CXX" >&6 1053 1421 else 1054 echo "$as_me: 1054: result: no" >&51422 echo "$as_me:$LINENO: result: no" >&5 1055 1423 echo "${ECHO_T}no" >&6 1056 1424 fi … … 1063 1431 fi 1064 1432 1433 1434 # Provide some information about the compiler. 1435 echo "$as_me:$LINENO:" \ 1436 "checking for C++ compiler version" >&5 1437 ac_compiler=`set X $ac_compile; echo $2` 1438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1439 (eval $ac_compiler --version </dev/null >&5) 2>&5 1440 ac_status=$? 1441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1442 (exit $ac_status); } 1443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1444 (eval $ac_compiler -v </dev/null >&5) 2>&5 1445 ac_status=$? 1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1447 (exit $ac_status); } 1448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1449 (eval $ac_compiler -V </dev/null >&5) 2>&5 1450 ac_status=$? 1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1452 (exit $ac_status); } 1453 1065 1454 cat >conftest.$ac_ext <<_ACEOF 1066 #line 1066 "configure" 1067 #include "confdefs.h" 1455 /* confdefs.h. */ 1456 _ACEOF 1457 cat confdefs.h >>conftest.$ac_ext 1458 cat >>conftest.$ac_ext <<_ACEOF 1459 /* end confdefs.h. */ 1068 1460 1069 1461 int … … 1076 1468 _ACEOF 1077 1469 ac_clean_files_save=$ac_clean_files 1078 ac_clean_files="$ac_clean_files a.out a.exe "1470 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1079 1471 # Try to create an executable without -o first, disregard a.out. 1080 # It will help us diagnose broken compiler , and finding out an intuition1472 # It will help us diagnose broken compilers, and finding out an intuition 1081 1473 # of exeext. 1082 echo "$as_me: 1082: checking for C++ compiler default output" >&51083 echo $ECHO_N "checking for C++ compiler default output ... $ECHO_C" >&61474 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1475 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1084 1476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1085 if { (eval echo "$as_me: 1085: \"$ac_link_default\"") >&51477 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1086 1478 (eval $ac_link_default) 2>&5 1087 1479 ac_status=$? 1088 echo "$as_me: 1088: \$? = $ac_status" >&51480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1089 1481 (exit $ac_status); }; then 1090 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1482 # Find the output, starting from the most likely. This scheme is 1483 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1484 # resort. 1485 1486 # Be careful to initialize this variable, since it used to be cached. 1487 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1488 ac_cv_exeext= 1489 # b.out is created by i960 compilers. 1490 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1491 do 1492 test -f "$ac_file" || continue 1091 1493 case $ac_file in 1092 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1093 a.out ) # We found the default executable, but exeext='' is most 1094 # certainly right. 1095 break;; 1096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1097 export ac_cv_exeext 1098 break;; 1099 * ) break;; 1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1495 ;; 1496 conftest.$ac_ext ) 1497 # This is the source file. 1498 ;; 1499 [ab].out ) 1500 # We found the default executable, but exeext='' is most 1501 # certainly right. 1502 break;; 1503 *.* ) 1504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1505 # FIXME: I believe we export ac_cv_exeext for Libtool, 1506 # but it would be cool to find out if it's true. Does anybody 1507 # maintain Libtool? --akim. 1508 export ac_cv_exeext 1509 break;; 1510 * ) 1511 break;; 1100 1512 esac 1101 1513 done 1102 1514 else 1103 1515 echo "$as_me: failed program was:" >&5 1104 cat conftest.$ac_ext >&5 1105 { { echo "$as_me:1105: error: C++ compiler cannot create executables" >&5 1106 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1516 sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1519 See \`config.log' for more details." >&5 1520 echo "$as_me: error: C++ compiler cannot create executables 1521 See \`config.log' for more details." >&2;} 1107 1522 { (exit 77); exit 77; }; } 1108 1523 fi 1109 1524 1110 1525 ac_exeext=$ac_cv_exeext 1111 echo "$as_me: 1111: result: $ac_file" >&51526 echo "$as_me:$LINENO: result: $ac_file" >&5 1112 1527 echo "${ECHO_T}$ac_file" >&6 1113 1528 1114 1529 # Check the compiler produces executables we can run. If not, either 1115 1530 # the compiler is broken, or we cross compile. 1116 echo "$as_me: 1116: checking whether the C++ compiler works" >&51531 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1117 1532 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1118 1533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 … … 1120 1535 if test "$cross_compiling" != yes; then 1121 1536 if { ac_try='./$ac_file' 1122 { (eval echo "$as_me: 1122: \"$ac_try\"") >&51123 (eval $ac_try) 2>&5 1124 ac_status=$? 1125 echo "$as_me: 1125: \$? = $ac_status" >&51537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1538 (eval $ac_try) 2>&5 1539 ac_status=$? 1540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1126 1541 (exit $ac_status); }; }; then 1127 1542 cross_compiling=no … … 1130 1545 cross_compiling=yes 1131 1546 else 1132 { { echo "$as_me:1132: error: cannot run C++ compiled programs. 1133 If you meant to cross compile, use \`--host'." >&5 1547 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1548 If you meant to cross compile, use \`--host'. 1549 See \`config.log' for more details." >&5 1134 1550 echo "$as_me: error: cannot run C++ compiled programs. 1135 If you meant to cross compile, use \`--host'." >&2;} 1551 If you meant to cross compile, use \`--host'. 1552 See \`config.log' for more details." >&2;} 1136 1553 { (exit 1); exit 1; }; } 1137 1554 fi 1138 1555 fi 1139 1556 fi 1140 echo "$as_me: 1140: result: yes" >&51557 echo "$as_me:$LINENO: result: yes" >&5 1141 1558 echo "${ECHO_T}yes" >&6 1142 1559 1143 rm -f a.out a.exe conftest$ac_cv_exeext 1560 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1144 1561 ac_clean_files=$ac_clean_files_save 1145 1562 # Check the compiler produces executables we can run. If not, either 1146 1563 # the compiler is broken, or we cross compile. 1147 echo "$as_me: 1147: checking whether we are cross compiling" >&51564 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1148 1565 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1149 echo "$as_me: 1149: result: $cross_compiling" >&51566 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1150 1567 echo "${ECHO_T}$cross_compiling" >&6 1151 1568 1152 echo "$as_me: 1152: checking for executable suffix" >&51153 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&61154 if { (eval echo "$as_me: 1154: \"$ac_link\"") >&51569 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1570 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1155 1572 (eval $ac_link) 2>&5 1156 1573 ac_status=$? 1157 echo "$as_me: 1157: \$? = $ac_status" >&51574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1158 1575 (exit $ac_status); }; then 1159 1576 # If both `conftest.exe' and `conftest' are `present' (well, observable) … … 1161 1578 # work properly (i.e., refer to `conftest.exe'), while it won't with 1162 1579 # `rm'. 1163 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1580 for ac_file in conftest.exe conftest conftest.*; do 1581 test -f "$ac_file" || continue 1164 1582 case $ac_file in 1165 *.$ac_ext | *. o | *.obj | *.xcoff | *.tds | *.d | *.pdb) ;;1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1166 1584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1167 1168 1585 export ac_cv_exeext 1586 break;; 1169 1587 * ) break;; 1170 1588 esac 1171 1589 done 1172 1590 else 1173 { { echo "$as_me:1173: error: cannot compute EXEEXT: cannot compile and link" >&5 1174 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1592 See \`config.log' for more details." >&5 1593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1594 See \`config.log' for more details." >&2;} 1175 1595 { (exit 1); exit 1; }; } 1176 1596 fi 1177 1597 1178 1598 rm -f conftest$ac_cv_exeext 1179 echo "$as_me: 1179: result: $ac_cv_exeext" >&51599 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1180 1600 echo "${ECHO_T}$ac_cv_exeext" >&6 1181 1601 … … 1183 1603 EXEEXT=$ac_cv_exeext 1184 1604 ac_exeext=$EXEEXT 1185 echo "$as_me: 1185: checking for object suffix" >&51186 echo $ECHO_N "checking for object suffix... $ECHO_C" >&61605 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1187 1607 if test "${ac_cv_objext+set}" = set; then 1188 1608 echo $ECHO_N "(cached) $ECHO_C" >&6 1189 1609 else 1190 1610 cat >conftest.$ac_ext <<_ACEOF 1191 #line 1191 "configure" 1192 #include "confdefs.h" 1611 /* confdefs.h. */ 1612 _ACEOF 1613 cat confdefs.h >>conftest.$ac_ext 1614 cat >>conftest.$ac_ext <<_ACEOF 1615 /* end confdefs.h. */ 1193 1616 1194 1617 int … … 1201 1624 _ACEOF 1202 1625 rm -f conftest.o conftest.obj 1203 if { (eval echo "$as_me: 1203: \"$ac_compile\"") >&51626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1204 1627 (eval $ac_compile) 2>&5 1205 1628 ac_status=$? 1206 echo "$as_me: 1206: \$? = $ac_status" >&51629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1207 1630 (exit $ac_status); }; then 1208 1631 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1209 1632 case $ac_file in 1210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;1633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1211 1634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1212 1635 break;; … … 1215 1638 else 1216 1639 echo "$as_me: failed program was:" >&5 1217 cat conftest.$ac_ext >&5 1218 { { echo "$as_me:1218: error: cannot compute OBJEXT: cannot compile" >&5 1219 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1640 sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1643 See \`config.log' for more details." >&5 1644 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1645 See \`config.log' for more details." >&2;} 1220 1646 { (exit 1); exit 1; }; } 1221 1647 fi … … 1223 1649 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1224 1650 fi 1225 echo "$as_me: 1225: result: $ac_cv_objext" >&51651 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1226 1652 echo "${ECHO_T}$ac_cv_objext" >&6 1227 1653 OBJEXT=$ac_cv_objext 1228 1654 ac_objext=$OBJEXT 1229 echo "$as_me: 1229: checking whether we are using the GNU C++ compiler" >&51655 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1230 1656 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1231 1657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then … … 1233 1659 else 1234 1660 cat >conftest.$ac_ext <<_ACEOF 1235 #line 1235 "configure" 1236 #include "confdefs.h" 1661 /* confdefs.h. */ 1662 _ACEOF 1663 cat confdefs.h >>conftest.$ac_ext 1664 cat >>conftest.$ac_ext <<_ACEOF 1665 /* end confdefs.h. */ 1237 1666 1238 1667 int … … 1248 1677 _ACEOF 1249 1678 rm -f conftest.$ac_objext 1250 if { (eval echo "$as_me:1250: \"$ac_compile\"") >&5 1251 (eval $ac_compile) 2>&5 1252 ac_status=$? 1253 echo "$as_me:1253: \$? = $ac_status" >&5 1679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1680 (eval $ac_compile) 2>conftest.er1 1681 ac_status=$? 1682 grep -v '^ *+' conftest.er1 >conftest.err 1683 rm -f conftest.er1 1684 cat conftest.err >&5 1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1254 1686 (exit $ac_status); } && 1255 { ac_try='test -s conftest.$ac_objext' 1256 { (eval echo "$as_me:1256: \"$ac_try\"") >&5 1257 (eval $ac_try) 2>&5 1258 ac_status=$? 1259 echo "$as_me:1259: \$? = $ac_status" >&5 1687 { ac_try='test -z "$ac_cxx_werror_flag" 1688 || test ! -s conftest.err' 1689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1690 (eval $ac_try) 2>&5 1691 ac_status=$? 1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1693 (exit $ac_status); }; } && 1694 { ac_try='test -s conftest.$ac_objext' 1695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1696 (eval $ac_try) 2>&5 1697 ac_status=$? 1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1260 1699 (exit $ac_status); }; }; then 1261 1700 ac_compiler_gnu=yes 1262 1701 else 1263 1702 echo "$as_me: failed program was:" >&5 1264 cat conftest.$ac_ext >&5 1703 sed 's/^/| /' conftest.$ac_ext >&5 1704 1265 1705 ac_compiler_gnu=no 1266 1706 fi 1267 rm -f conftest. $ac_objext conftest.$ac_ext1707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1268 1708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1269 1709 1270 1710 fi 1271 echo "$as_me: 1271: result: $ac_cv_cxx_compiler_gnu" >&51711 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1272 1712 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1273 1713 GXX=`test $ac_compiler_gnu = yes && echo yes` … … 1275 1715 ac_save_CXXFLAGS=$CXXFLAGS 1276 1716 CXXFLAGS="-g" 1277 echo "$as_me: 1277: checking whether $CXX accepts -g" >&51717 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1278 1718 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1279 1719 if test "${ac_cv_prog_cxx_g+set}" = set; then … … 1281 1721 else 1282 1722 cat >conftest.$ac_ext <<_ACEOF 1283 #line 1283 "configure" 1284 #include "confdefs.h" 1723 /* confdefs.h. */ 1724 _ACEOF 1725 cat confdefs.h >>conftest.$ac_ext 1726 cat >>conftest.$ac_ext <<_ACEOF 1727 /* end confdefs.h. */ 1285 1728 1286 1729 int … … 1293 1736 _ACEOF 1294 1737 rm -f conftest.$ac_objext 1295 if { (eval echo "$as_me:1295: \"$ac_compile\"") >&5 1296 (eval $ac_compile) 2>&5 1297 ac_status=$? 1298 echo "$as_me:1298: \$? = $ac_status" >&5 1738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1739 (eval $ac_compile) 2>conftest.er1 1740 ac_status=$? 1741 grep -v '^ *+' conftest.er1 >conftest.err 1742 rm -f conftest.er1 1743 cat conftest.err >&5 1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1299 1745 (exit $ac_status); } && 1300 { ac_try='test -s conftest.$ac_objext' 1301 { (eval echo "$as_me:1301: \"$ac_try\"") >&5 1302 (eval $ac_try) 2>&5 1303 ac_status=$? 1304 echo "$as_me:1304: \$? = $ac_status" >&5 1746 { ac_try='test -z "$ac_cxx_werror_flag" 1747 || test ! -s conftest.err' 1748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1749 (eval $ac_try) 2>&5 1750 ac_status=$? 1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1752 (exit $ac_status); }; } && 1753 { ac_try='test -s conftest.$ac_objext' 1754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1755 (eval $ac_try) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1305 1758 (exit $ac_status); }; }; then 1306 1759 ac_cv_prog_cxx_g=yes 1307 1760 else 1308 1761 echo "$as_me: failed program was:" >&5 1309 cat conftest.$ac_ext >&5 1762 sed 's/^/| /' conftest.$ac_ext >&5 1763 1310 1764 ac_cv_prog_cxx_g=no 1311 1765 fi 1312 rm -f conftest. $ac_objext conftest.$ac_ext1313 fi 1314 echo "$as_me: 1314: result: $ac_cv_prog_cxx_g" >&51766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1767 fi 1768 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1315 1769 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1316 1770 if test "$ac_test_CXXFLAGS" = set; then … … 1330 1784 fi 1331 1785 for ac_declaration in \ 1332 ''\ 1333 '#include <stdlib.h>' \ 1786 '' \ 1334 1787 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1335 1788 'extern "C" void std::exit (int); using std::exit;' \ … … 1339 1792 do 1340 1793 cat >conftest.$ac_ext <<_ACEOF 1341 #line 1341 "configure" 1342 #include "confdefs.h" 1794 /* confdefs.h. */ 1795 _ACEOF 1796 cat confdefs.h >>conftest.$ac_ext 1797 cat >>conftest.$ac_ext <<_ACEOF 1798 /* end confdefs.h. */ 1799 $ac_declaration 1343 1800 #include <stdlib.h> 1801 int 1802 main () 1803 { 1804 exit (42); 1805 ; 1806 return 0; 1807 } 1808 _ACEOF 1809 rm -f conftest.$ac_objext 1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1811 (eval $ac_compile) 2>conftest.er1 1812 ac_status=$? 1813 grep -v '^ *+' conftest.er1 >conftest.err 1814 rm -f conftest.er1 1815 cat conftest.err >&5 1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1817 (exit $ac_status); } && 1818 { ac_try='test -z "$ac_cxx_werror_flag" 1819 || test ! -s conftest.err' 1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1821 (eval $ac_try) 2>&5 1822 ac_status=$? 1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1824 (exit $ac_status); }; } && 1825 { ac_try='test -s conftest.$ac_objext' 1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1827 (eval $ac_try) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); }; }; then 1831 : 1832 else 1833 echo "$as_me: failed program was:" >&5 1834 sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 continue 1837 fi 1838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1839 cat >conftest.$ac_ext <<_ACEOF 1840 /* confdefs.h. */ 1841 _ACEOF 1842 cat confdefs.h >>conftest.$ac_ext 1843 cat >>conftest.$ac_ext <<_ACEOF 1844 /* end confdefs.h. */ 1344 1845 $ac_declaration 1345 1846 int … … 1352 1853 _ACEOF 1353 1854 rm -f conftest.$ac_objext 1354 if { (eval echo "$as_me:1354: \"$ac_compile\"") >&5 1355 (eval $ac_compile) 2>&5 1356 ac_status=$? 1357 echo "$as_me:1357: \$? = $ac_status" >&5 1855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1856 (eval $ac_compile) 2>conftest.er1 1857 ac_status=$? 1858 grep -v '^ *+' conftest.er1 >conftest.err 1859 rm -f conftest.er1 1860 cat conftest.err >&5 1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1358 1862 (exit $ac_status); } && 1359 { ac_try='test -s conftest.$ac_objext' 1360 { (eval echo "$as_me:1360: \"$ac_try\"") >&5 1361 (eval $ac_try) 2>&5 1362 ac_status=$? 1363 echo "$as_me:1363: \$? = $ac_status" >&5 1364 (exit $ac_status); }; }; then 1365 : 1366 else 1367 echo "$as_me: failed program was:" >&5 1368 cat conftest.$ac_ext >&5 1369 continue 1370 fi 1371 rm -f conftest.$ac_objext conftest.$ac_ext 1372 cat >conftest.$ac_ext <<_ACEOF 1373 #line 1373 "configure" 1374 #include "confdefs.h" 1375 $ac_declaration 1376 int 1377 main () 1378 { 1379 exit (42); 1380 ; 1381 return 0; 1382 } 1383 _ACEOF 1384 rm -f conftest.$ac_objext 1385 if { (eval echo "$as_me:1385: \"$ac_compile\"") >&5 1386 (eval $ac_compile) 2>&5 1387 ac_status=$? 1388 echo "$as_me:1388: \$? = $ac_status" >&5 1389 (exit $ac_status); } && 1390 { ac_try='test -s conftest.$ac_objext' 1391 { (eval echo "$as_me:1391: \"$ac_try\"") >&5 1392 (eval $ac_try) 2>&5 1393 ac_status=$? 1394 echo "$as_me:1394: \$? = $ac_status" >&5 1863 { ac_try='test -z "$ac_cxx_werror_flag" 1864 || test ! -s conftest.err' 1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1866 (eval $ac_try) 2>&5 1867 ac_status=$? 1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1869 (exit $ac_status); }; } && 1870 { ac_try='test -s conftest.$ac_objext' 1871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1872 (eval $ac_try) 2>&5 1873 ac_status=$? 1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1395 1875 (exit $ac_status); }; }; then 1396 1876 break 1397 1877 else 1398 1878 echo "$as_me: failed program was:" >&5 1399 cat conftest.$ac_ext >&5 1400 fi 1401 rm -f conftest.$ac_objext conftest.$ac_ext 1879 sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 fi 1882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1402 1883 done 1403 echo '#ifdef __cplusplus' >>confdefs.h 1404 echo $ac_declaration >>confdefs.h 1405 echo '#endif' >>confdefs.h 1884 rm -f conftest* 1885 if test -n "$ac_declaration"; then 1886 echo '#ifdef __cplusplus' >>confdefs.h 1887 echo $ac_declaration >>confdefs.h 1888 echo '#endif' >>confdefs.h 1889 fi 1406 1890 1407 1891 ac_ext=c … … 1411 1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1412 1896 1413 for ac_prog in mawk gawk nawk awk1897 for ac_prog in gawk mawk nawk awk 1414 1898 do 1415 1899 # Extract the first word of "$ac_prog", so it can be a program name with args. 1416 1900 set dummy $ac_prog; ac_word=$2 1417 echo "$as_me: 1417: checking for $ac_word" >&51901 echo "$as_me:$LINENO: checking for $ac_word" >&5 1418 1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1419 1903 if test "${ac_cv_prog_AWK+set}" = set; then … … 1423 1907 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1424 1908 else 1425 ac_save_IFS=$IFS; IFS=$ac_path_separator 1426 ac_dummy="$PATH" 1427 for ac_dir in $ac_dummy; do 1428 IFS=$ac_save_IFS 1429 test -z "$ac_dir" && ac_dir=. 1430 $as_executable_p "$ac_dir/$ac_word" || continue 1431 ac_cv_prog_AWK="$ac_prog" 1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5 1433 break 1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910 for as_dir in $PATH 1911 do 1912 IFS=$as_save_IFS 1913 test -z "$as_dir" && as_dir=. 1914 for ac_exec_ext in '' $ac_executable_extensions; do 1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1916 ac_cv_prog_AWK="$ac_prog" 1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1918 break 2 1919 fi 1920 done 1434 1921 done 1435 1922 … … 1438 1925 AWK=$ac_cv_prog_AWK 1439 1926 if test -n "$AWK"; then 1440 echo "$as_me: 1440: result: $AWK" >&51927 echo "$as_me:$LINENO: result: $AWK" >&5 1441 1928 echo "${ECHO_T}$AWK" >&6 1442 1929 else 1443 echo "$as_me: 1443: result: no" >&51930 echo "$as_me:$LINENO: result: no" >&5 1444 1931 echo "${ECHO_T}no" >&6 1445 1932 fi … … 1452 1939 # Extract the first word of "$ac_prog", so it can be a program name with args. 1453 1940 set dummy $ac_prog; ac_word=$2 1454 echo "$as_me: 1454: checking for $ac_word" >&51941 echo "$as_me:$LINENO: checking for $ac_word" >&5 1455 1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1456 1943 if test "${ac_cv_prog_YACC+set}" = set; then … … 1460 1947 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1461 1948 else 1462 ac_save_IFS=$IFS; IFS=$ac_path_separator 1463 ac_dummy="$PATH" 1464 for ac_dir in $ac_dummy; do 1465 IFS=$ac_save_IFS 1466 test -z "$ac_dir" && ac_dir=. 1467 $as_executable_p "$ac_dir/$ac_word" || continue 1468 ac_cv_prog_YACC="$ac_prog" 1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5 1470 break 1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950 for as_dir in $PATH 1951 do 1952 IFS=$as_save_IFS 1953 test -z "$as_dir" && as_dir=. 1954 for ac_exec_ext in '' $ac_executable_extensions; do 1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1956 ac_cv_prog_YACC="$ac_prog" 1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1958 break 2 1959 fi 1960 done 1471 1961 done 1472 1962 … … 1475 1965 YACC=$ac_cv_prog_YACC 1476 1966 if test -n "$YACC"; then 1477 echo "$as_me: 1477: result: $YACC" >&51967 echo "$as_me:$LINENO: result: $YACC" >&5 1478 1968 echo "${ECHO_T}$YACC" >&6 1479 1969 else 1480 echo "$as_me: 1480: result: no" >&51970 echo "$as_me:$LINENO: result: no" >&5 1481 1971 echo "${ECHO_T}no" >&6 1482 1972 fi … … 1494 1984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1495 1985 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1496 echo "$as_me: 1496: checking for $ac_word" >&51986 echo "$as_me:$LINENO: checking for $ac_word" >&5 1497 1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1498 1988 if test "${ac_cv_prog_CC+set}" = set; then … … 1502 1992 ac_cv_prog_CC="$CC" # Let the user override the test. 1503 1993 else 1504 ac_save_IFS=$IFS; IFS=$ac_path_separator 1505 ac_dummy="$PATH" 1506 for ac_dir in $ac_dummy; do 1507 IFS=$ac_save_IFS 1508 test -z "$ac_dir" && ac_dir=. 1509 $as_executable_p "$ac_dir/$ac_word" || continue 1510 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1511 echo "$as_me:1511: found $ac_dir/$ac_word" >&5 1512 break 1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995 for as_dir in $PATH 1996 do 1997 IFS=$as_save_IFS 1998 test -z "$as_dir" && as_dir=. 1999 for ac_exec_ext in '' $ac_executable_extensions; do 2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2001 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2003 break 2 2004 fi 2005 done 1513 2006 done 1514 2007 … … 1517 2010 CC=$ac_cv_prog_CC 1518 2011 if test -n "$CC"; then 1519 echo "$as_me: 1519: result: $CC" >&52012 echo "$as_me:$LINENO: result: $CC" >&5 1520 2013 echo "${ECHO_T}$CC" >&6 1521 2014 else 1522 echo "$as_me: 1522: result: no" >&52015 echo "$as_me:$LINENO: result: no" >&5 1523 2016 echo "${ECHO_T}no" >&6 1524 2017 fi … … 1529 2022 # Extract the first word of "gcc", so it can be a program name with args. 1530 2023 set dummy gcc; ac_word=$2 1531 echo "$as_me: 1531: checking for $ac_word" >&52024 echo "$as_me:$LINENO: checking for $ac_word" >&5 1532 2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1533 2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1537 2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1538 2031 else 1539 ac_save_IFS=$IFS; IFS=$ac_path_separator 1540 ac_dummy="$PATH" 1541 for ac_dir in $ac_dummy; do 1542 IFS=$ac_save_IFS 1543 test -z "$ac_dir" && ac_dir=. 1544 $as_executable_p "$ac_dir/$ac_word" || continue 1545 ac_cv_prog_ac_ct_CC="gcc" 1546 echo "$as_me:1546: found $ac_dir/$ac_word" >&5 1547 break 2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033 for as_dir in $PATH 2034 do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 for ac_exec_ext in '' $ac_executable_extensions; do 2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2039 ac_cv_prog_ac_ct_CC="gcc" 2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2041 break 2 2042 fi 2043 done 1548 2044 done 1549 2045 … … 1552 2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1553 2049 if test -n "$ac_ct_CC"; then 1554 echo "$as_me: 1554: result: $ac_ct_CC" >&52050 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1555 2051 echo "${ECHO_T}$ac_ct_CC" >&6 1556 2052 else 1557 echo "$as_me: 1557: result: no" >&52053 echo "$as_me:$LINENO: result: no" >&5 1558 2054 echo "${ECHO_T}no" >&6 1559 2055 fi … … 1568 2064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1569 2065 set dummy ${ac_tool_prefix}cc; ac_word=$2 1570 echo "$as_me: 1570: checking for $ac_word" >&52066 echo "$as_me:$LINENO: checking for $ac_word" >&5 1571 2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1572 2068 if test "${ac_cv_prog_CC+set}" = set; then … … 1576 2072 ac_cv_prog_CC="$CC" # Let the user override the test. 1577 2073 else 1578 ac_save_IFS=$IFS; IFS=$ac_path_separator 1579 ac_dummy="$PATH" 1580 for ac_dir in $ac_dummy; do 1581 IFS=$ac_save_IFS 1582 test -z "$ac_dir" && ac_dir=. 1583 $as_executable_p "$ac_dir/$ac_word" || continue 1584 ac_cv_prog_CC="${ac_tool_prefix}cc" 1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5 1586 break 2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2075 for as_dir in $PATH 2076 do 2077 IFS=$as_save_IFS 2078 test -z "$as_dir" && as_dir=. 2079 for ac_exec_ext in '' $ac_executable_extensions; do 2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2081 ac_cv_prog_CC="${ac_tool_prefix}cc" 2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2083 break 2 2084 fi 2085 done 1587 2086 done 1588 2087 … … 1591 2090 CC=$ac_cv_prog_CC 1592 2091 if test -n "$CC"; then 1593 echo "$as_me: 1593: result: $CC" >&52092 echo "$as_me:$LINENO: result: $CC" >&5 1594 2093 echo "${ECHO_T}$CC" >&6 1595 2094 else 1596 echo "$as_me: 1596: result: no" >&52095 echo "$as_me:$LINENO: result: no" >&5 1597 2096 echo "${ECHO_T}no" >&6 1598 2097 fi … … 1603 2102 # Extract the first word of "cc", so it can be a program name with args. 1604 2103 set dummy cc; ac_word=$2 1605 echo "$as_me: 1605: checking for $ac_word" >&52104 echo "$as_me:$LINENO: checking for $ac_word" >&5 1606 2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1607 2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1611 2110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1612 2111 else 1613 ac_save_IFS=$IFS; IFS=$ac_path_separator 1614 ac_dummy="$PATH" 1615 for ac_dir in $ac_dummy; do 1616 IFS=$ac_save_IFS 1617 test -z "$ac_dir" && ac_dir=. 1618 $as_executable_p "$ac_dir/$ac_word" || continue 1619 ac_cv_prog_ac_ct_CC="cc" 1620 echo "$as_me:1620: found $ac_dir/$ac_word" >&5 1621 break 2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113 for as_dir in $PATH 2114 do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 for ac_exec_ext in '' $ac_executable_extensions; do 2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2119 ac_cv_prog_ac_ct_CC="cc" 2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2121 break 2 2122 fi 2123 done 1622 2124 done 1623 2125 … … 1626 2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1627 2129 if test -n "$ac_ct_CC"; then 1628 echo "$as_me: 1628: result: $ac_ct_CC" >&52130 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1629 2131 echo "${ECHO_T}$ac_ct_CC" >&6 1630 2132 else 1631 echo "$as_me: 1631: result: no" >&52133 echo "$as_me:$LINENO: result: no" >&5 1632 2134 echo "${ECHO_T}no" >&6 1633 2135 fi … … 1642 2144 # Extract the first word of "cc", so it can be a program name with args. 1643 2145 set dummy cc; ac_word=$2 1644 echo "$as_me: 1644: checking for $ac_word" >&52146 echo "$as_me:$LINENO: checking for $ac_word" >&5 1645 2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1646 2148 if test "${ac_cv_prog_CC+set}" = set; then … … 1651 2153 else 1652 2154 ac_prog_rejected=no 1653 ac_save_IFS=$IFS; IFS=$ac_path_separator 1654 ac_dummy="$PATH" 1655 for ac_dir in $ac_dummy; do 1656 IFS=$ac_save_IFS 1657 test -z "$ac_dir" && ac_dir=. 1658 $as_executable_p "$ac_dir/$ac_word" || continue 1659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1660 ac_prog_rejected=yes 1661 continue 1662 fi 1663 ac_cv_prog_CC="cc" 1664 echo "$as_me:1664: found $ac_dir/$ac_word" >&5 1665 break 2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2156 for as_dir in $PATH 2157 do 2158 IFS=$as_save_IFS 2159 test -z "$as_dir" && as_dir=. 2160 for ac_exec_ext in '' $ac_executable_extensions; do 2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2163 ac_prog_rejected=yes 2164 continue 2165 fi 2166 ac_cv_prog_CC="cc" 2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2168 break 2 2169 fi 2170 done 1666 2171 done 1667 2172 … … 1675 2180 # first if we set CC to just the basename; use the full file name. 1676 2181 shift 1677 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1678 shift 1679 ac_cv_prog_CC="$@" 2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1680 2183 fi 1681 2184 fi … … 1684 2187 CC=$ac_cv_prog_CC 1685 2188 if test -n "$CC"; then 1686 echo "$as_me: 1686: result: $CC" >&52189 echo "$as_me:$LINENO: result: $CC" >&5 1687 2190 echo "${ECHO_T}$CC" >&6 1688 2191 else 1689 echo "$as_me: 1689: result: no" >&52192 echo "$as_me:$LINENO: result: no" >&5 1690 2193 echo "${ECHO_T}no" >&6 1691 2194 fi … … 1698 2201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1699 2202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1700 echo "$as_me: 1700: checking for $ac_word" >&52203 echo "$as_me:$LINENO: checking for $ac_word" >&5 1701 2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1702 2205 if test "${ac_cv_prog_CC+set}" = set; then … … 1706 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 1707 2210 else 1708 ac_save_IFS=$IFS; IFS=$ac_path_separator 1709 ac_dummy="$PATH" 1710 for ac_dir in $ac_dummy; do 1711 IFS=$ac_save_IFS 1712 test -z "$ac_dir" && ac_dir=. 1713 $as_executable_p "$ac_dir/$ac_word" || continue 1714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5 1716 break 2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212 for as_dir in $PATH 2213 do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2220 break 2 2221 fi 2222 done 1717 2223 done 1718 2224 … … 1721 2227 CC=$ac_cv_prog_CC 1722 2228 if test -n "$CC"; then 1723 echo "$as_me: 1723: result: $CC" >&52229 echo "$as_me:$LINENO: result: $CC" >&5 1724 2230 echo "${ECHO_T}$CC" >&6 1725 2231 else 1726 echo "$as_me: 1726: result: no" >&52232 echo "$as_me:$LINENO: result: no" >&5 1727 2233 echo "${ECHO_T}no" >&6 1728 2234 fi … … 1737 2243 # Extract the first word of "$ac_prog", so it can be a program name with args. 1738 2244 set dummy $ac_prog; ac_word=$2 1739 echo "$as_me: 1739: checking for $ac_word" >&52245 echo "$as_me:$LINENO: checking for $ac_word" >&5 1740 2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1741 2247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then … … 1745 2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1746 2252 else 1747 ac_save_IFS=$IFS; IFS=$ac_path_separator 1748 ac_dummy="$PATH" 1749 for ac_dir in $ac_dummy; do 1750 IFS=$ac_save_IFS 1751 test -z "$ac_dir" && ac_dir=. 1752 $as_executable_p "$ac_dir/$ac_word" || continue 1753 ac_cv_prog_ac_ct_CC="$ac_prog" 1754 echo "$as_me:1754: found $ac_dir/$ac_word" >&5 1755 break 2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254 for as_dir in $PATH 2255 do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2260 ac_cv_prog_ac_ct_CC="$ac_prog" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264 done 1756 2265 done 1757 2266 … … 1760 2269 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1761 2270 if test -n "$ac_ct_CC"; then 1762 echo "$as_me: 1762: result: $ac_ct_CC" >&52271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1763 2272 echo "${ECHO_T}$ac_ct_CC" >&6 1764 2273 else 1765 echo "$as_me: 1765: result: no" >&52274 echo "$as_me:$LINENO: result: no" >&5 1766 2275 echo "${ECHO_T}no" >&6 1767 2276 fi … … 1775 2284 fi 1776 2285 1777 test -z "$CC" && { { echo "$as_me:1777: error: no acceptable cc found in \$PATH" >&5 1778 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 2286 2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2288 See \`config.log' for more details." >&5 2289 echo "$as_me: error: no acceptable C compiler found in \$PATH 2290 See \`config.log' for more details." >&2;} 1779 2291 { (exit 1); exit 1; }; } 1780 2292 1781 echo "$as_me:1781: checking whether we are using the GNU C compiler" >&5 2293 # Provide some information about the compiler. 2294 echo "$as_me:$LINENO:" \ 2295 "checking for C compiler version" >&5 2296 ac_compiler=`set X $ac_compile; echo $2` 2297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2298 (eval $ac_compiler --version </dev/null >&5) 2>&5 2299 ac_status=$? 2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301 (exit $ac_status); } 2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2303 (eval $ac_compiler -v </dev/null >&5) 2>&5 2304 ac_status=$? 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2306 (exit $ac_status); } 2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2308 (eval $ac_compiler -V </dev/null >&5) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); } 2312 2313 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1782 2314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1783 2315 if test "${ac_cv_c_compiler_gnu+set}" = set; then … … 1785 2317 else 1786 2318 cat >conftest.$ac_ext <<_ACEOF 1787 #line 1787 "configure" 1788 #include "confdefs.h" 2319 /* confdefs.h. */ 2320 _ACEOF 2321 cat confdefs.h >>conftest.$ac_ext 2322 cat >>conftest.$ac_ext <<_ACEOF 2323 /* end confdefs.h. */ 1789 2324 1790 2325 int … … 1800 2335 _ACEOF 1801 2336 rm -f conftest.$ac_objext 1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5 1803 (eval $ac_compile) 2>&5 1804 ac_status=$? 1805 echo "$as_me:1805: \$? = $ac_status" >&5 2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>conftest.er1 2339 ac_status=$? 2340 grep -v '^ *+' conftest.er1 >conftest.err 2341 rm -f conftest.er1 2342 cat conftest.err >&5 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 2344 (exit $ac_status); } && 1807 { ac_try='test -s conftest.$ac_objext' 1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5 1809 (eval $ac_try) 2>&5 1810 ac_status=$? 1811 echo "$as_me:1811: \$? = $ac_status" >&5 2345 { ac_try='test -z "$ac_c_werror_flag" 2346 || test ! -s conftest.err' 2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2348 (eval $ac_try) 2>&5 2349 ac_status=$? 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); }; } && 2352 { ac_try='test -s conftest.$ac_objext' 2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2354 (eval $ac_try) 2>&5 2355 ac_status=$? 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1812 2357 (exit $ac_status); }; }; then 1813 2358 ac_compiler_gnu=yes 1814 2359 else 1815 2360 echo "$as_me: failed program was:" >&5 1816 cat conftest.$ac_ext >&5 2361 sed 's/^/| /' conftest.$ac_ext >&5 2362 1817 2363 ac_compiler_gnu=no 1818 2364 fi 1819 rm -f conftest. $ac_objext conftest.$ac_ext2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1820 2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1821 2367 1822 2368 fi 1823 echo "$as_me: 1823: result: $ac_cv_c_compiler_gnu" >&52369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1824 2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1825 2371 GCC=`test $ac_compiler_gnu = yes && echo yes` … … 1827 2373 ac_save_CFLAGS=$CFLAGS 1828 2374 CFLAGS="-g" 1829 echo "$as_me: 1829: checking whether $CC accepts -g" >&52375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1830 2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1831 2377 if test "${ac_cv_prog_cc_g+set}" = set; then … … 1833 2379 else 1834 2380 cat >conftest.$ac_ext <<_ACEOF 1835 #line 1835 "configure" 1836 #include "confdefs.h" 2381 /* confdefs.h. */ 2382 _ACEOF 2383 cat confdefs.h >>conftest.$ac_ext 2384 cat >>conftest.$ac_ext <<_ACEOF 2385 /* end confdefs.h. */ 1837 2386 1838 2387 int … … 1845 2394 _ACEOF 1846 2395 rm -f conftest.$ac_objext 1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5 1848 (eval $ac_compile) 2>&5 1849 ac_status=$? 1850 echo "$as_me:1850: \$? = $ac_status" >&5 2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2397 (eval $ac_compile) 2>conftest.er1 2398 ac_status=$? 2399 grep -v '^ *+' conftest.er1 >conftest.err 2400 rm -f conftest.er1 2401 cat conftest.err >&5 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 2403 (exit $ac_status); } && 1852 { ac_try='test -s conftest.$ac_objext' 1853 { (eval echo "$as_me:1853: \"$ac_try\"") >&5 1854 (eval $ac_try) 2>&5 1855 ac_status=$? 1856 echo "$as_me:1856: \$? = $ac_status" >&5 2404 { ac_try='test -z "$ac_c_werror_flag" 2405 || test ! -s conftest.err' 2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2407 (eval $ac_try) 2>&5 2408 ac_status=$? 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 (exit $ac_status); }; } && 2411 { ac_try='test -s conftest.$ac_objext' 2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 (eval $ac_try) 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1857 2416 (exit $ac_status); }; }; then 1858 2417 ac_cv_prog_cc_g=yes 1859 2418 else 1860 2419 echo "$as_me: failed program was:" >&5 1861 cat conftest.$ac_ext >&5 2420 sed 's/^/| /' conftest.$ac_ext >&5 2421 1862 2422 ac_cv_prog_cc_g=no 1863 2423 fi 1864 rm -f conftest. $ac_objext conftest.$ac_ext1865 fi 1866 echo "$as_me: 1866: result: $ac_cv_prog_cc_g" >&52424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2425 fi 2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1867 2427 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1868 2428 if test "$ac_test_CFLAGS" = set; then … … 1881 2441 fi 1882 2442 fi 1883 # Some people use a C++ compiler to compile C. Since we use `exit', 1884 # in C++ we need to declare it. In case someone uses the same compiler 1885 # for both compiling C and C++ we need to have the C++ compiler decide 1886 # the declaration of exit, since it's the most demanding environment. 1887 cat >conftest.$ac_ext <<_ACEOF 1888 #ifndef __cplusplus 1889 choke me 1890 #endif 1891 _ACEOF 1892 rm -f conftest.$ac_objext 1893 if { (eval echo "$as_me:1893: \"$ac_compile\"") >&5 1894 (eval $ac_compile) 2>&5 1895 ac_status=$? 1896 echo "$as_me:1896: \$? = $ac_status" >&5 1897 (exit $ac_status); } && 1898 { ac_try='test -s conftest.$ac_objext' 1899 { (eval echo "$as_me:1899: \"$ac_try\"") >&5 1900 (eval $ac_try) 2>&5 1901 ac_status=$? 1902 echo "$as_me:1902: \$? = $ac_status" >&5 1903 (exit $ac_status); }; }; then 1904 for ac_declaration in \ 1905 ''\ 1906 '#include <stdlib.h>' \ 1907 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1908 'extern "C" void std::exit (int); using std::exit;' \ 1909 'extern "C" void exit (int) throw ();' \ 1910 'extern "C" void exit (int);' \ 1911 'void exit (int);' 1912 do 1913 cat >conftest.$ac_ext <<_ACEOF 1914 #line 1914 "configure" 1915 #include "confdefs.h" 1916 #include <stdlib.h> 1917 $ac_declaration 1918 int 1919 main () 1920 { 1921 exit (42); 1922 ; 1923 return 0; 1924 } 1925 _ACEOF 1926 rm -f conftest.$ac_objext 1927 if { (eval echo "$as_me:1927: \"$ac_compile\"") >&5 1928 (eval $ac_compile) 2>&5 1929 ac_status=$? 1930 echo "$as_me:1930: \$? = $ac_status" >&5 1931 (exit $ac_status); } && 1932 { ac_try='test -s conftest.$ac_objext' 1933 { (eval echo "$as_me:1933: \"$ac_try\"") >&5 1934 (eval $ac_try) 2>&5 1935 ac_status=$? 1936 echo "$as_me:1936: \$? = $ac_status" >&5 1937 (exit $ac_status); }; }; then 1938 : 1939 else 1940 echo "$as_me: failed program was:" >&5 1941 cat conftest.$ac_ext >&5 1942 continue 1943 fi 1944 rm -f conftest.$ac_objext conftest.$ac_ext 1945 cat >conftest.$ac_ext <<_ACEOF 1946 #line 1946 "configure" 1947 #include "confdefs.h" 1948 $ac_declaration 1949 int 1950 main () 1951 { 1952 exit (42); 1953 ; 1954 return 0; 1955 } 1956 _ACEOF 1957 rm -f conftest.$ac_objext 1958 if { (eval echo "$as_me:1958: \"$ac_compile\"") >&5 1959 (eval $ac_compile) 2>&5 1960 ac_status=$? 1961 echo "$as_me:1961: \$? = $ac_status" >&5 1962 (exit $ac_status); } && 1963 { ac_try='test -s conftest.$ac_objext' 1964 { (eval echo "$as_me:1964: \"$ac_try\"") >&5 1965 (eval $ac_try) 2>&5 1966 ac_status=$? 1967 echo "$as_me:1967: \$? = $ac_status" >&5 1968 (exit $ac_status); }; }; then 1969 break 1970 else 1971 echo "$as_me: failed program was:" >&5 1972 cat conftest.$ac_ext >&5 1973 fi 1974 rm -f conftest.$ac_objext conftest.$ac_ext 1975 done 1976 echo '#ifdef __cplusplus' >>confdefs.h 1977 echo $ac_declaration >>confdefs.h 1978 echo '#endif' >>confdefs.h 1979 1980 else 1981 echo "$as_me: failed program was:" >&5 1982 cat conftest.$ac_ext >&5 1983 fi 1984 rm -f conftest.$ac_objext conftest.$ac_ext 1985 ac_ext=c 1986 ac_cpp='$CPP $CPPFLAGS' 1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1990 1991 ac_aux_dir= 1992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1993 if test -f $ac_dir/install-sh; then 1994 ac_aux_dir=$ac_dir 1995 ac_install_sh="$ac_aux_dir/install-sh -c" 1996 break 1997 elif test -f $ac_dir/install.sh; then 1998 ac_aux_dir=$ac_dir 1999 ac_install_sh="$ac_aux_dir/install.sh -c" 2000 break 2001 elif test -f $ac_dir/shtool; then 2002 ac_aux_dir=$ac_dir 2003 ac_install_sh="$ac_aux_dir/shtool install -c" 2004 break 2005 fi 2006 done 2007 if test -z "$ac_aux_dir"; then 2008 { { echo "$as_me:2008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2010 { (exit 1); exit 1; }; } 2011 fi 2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2015 2016 # Find a good install program. We prefer a C program (faster), 2017 # so one script is as good as another. But avoid the broken or 2018 # incompatible versions: 2019 # SysV /etc/install, /usr/sbin/install 2020 # SunOS /usr/etc/install 2021 # IRIX /sbin/install 2022 # AIX /bin/install 2023 # AmigaOS /C/install, which installs bootblocks on floppy discs 2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2027 # ./install, which can be erroneously created by make from ./install.sh. 2028 echo "$as_me:2028: checking for a BSD compatible install" >&5 2029 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 2030 if test -z "$INSTALL"; then 2031 if test "${ac_cv_path_install+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033 else 2034 ac_save_IFS=$IFS; IFS=$ac_path_separator 2035 for ac_dir in $PATH; do 2036 IFS=$ac_save_IFS 2037 # Account for people who put trailing slashes in PATH elements. 2038 case $ac_dir/ in 2039 / | ./ | .// | /cC/* \ 2040 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2041 | /usr/ucb/* ) ;; 2042 *) 2043 # OSF1 and SCO ODT 3.0 have their own names for install. 2044 # Don't use installbsd from OSF since it installs stuff as root 2045 # by default. 2046 for ac_prog in ginstall scoinst install; do 2047 if $as_executable_p "$ac_dir/$ac_prog"; then 2048 if test $ac_prog = install && 2049 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2050 # AIX install. It has an incompatible calling convention. 2051 : 2052 elif test $ac_prog = install && 2053 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2054 # program-specific install script used by HP pwplus--don't use. 2055 : 2056 else 2057 ac_cv_path_install="$ac_dir/$ac_prog -c" 2058 break 2 2059 fi 2060 fi 2061 done 2062 ;; 2063 esac 2064 done 2065 2066 fi 2067 if test "${ac_cv_path_install+set}" = set; then 2068 INSTALL=$ac_cv_path_install 2069 else 2070 # As a last resort, use the slow shell script. We don't cache a 2071 # path for INSTALL within a source directory, because that will 2072 # break other packages using the cache if that directory is 2073 # removed, or if the path is relative. 2074 INSTALL=$ac_install_sh 2075 fi 2076 fi 2077 echo "$as_me:2077: result: $INSTALL" >&5 2078 echo "${ECHO_T}$INSTALL" >&6 2079 2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2081 # It thinks the first close brace ends the variable substitution. 2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2083 2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2085 2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2087 2088 echo "$as_me:2088: checking whether ln -s works" >&5 2089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2090 LN_S=$as_ln_s 2091 if test "$LN_S" = "ln -s"; then 2092 echo "$as_me:2092: result: yes" >&5 2093 echo "${ECHO_T}yes" >&6 2094 else 2095 echo "$as_me:2095: result: no, using $LN_S" >&5 2096 echo "${ECHO_T}no, using $LN_S" >&6 2097 fi 2098 2099 echo "$as_me:2099: checking whether ${MAKE-make} sets \${MAKE}" >&5 2100 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2103 echo $ECHO_N "(cached) $ECHO_C" >&6 2104 else 2105 cat >conftest.make <<\EOF 2106 all: 2107 @echo 'ac_maketemp="${MAKE}"' 2108 EOF 2109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2111 if test -n "$ac_maketemp"; then 2112 eval ac_cv_prog_make_${ac_make}_set=yes 2113 else 2114 eval ac_cv_prog_make_${ac_make}_set=no 2115 fi 2116 rm -f conftest.make 2117 fi 2118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2119 echo "$as_me:2119: result: yes" >&5 2120 echo "${ECHO_T}yes" >&6 2121 SET_MAKE= 2122 else 2123 echo "$as_me:2123: result: no" >&5 2124 echo "${ECHO_T}no" >&6 2125 SET_MAKE="MAKE=${MAKE-make}" 2126 fi 2127 2128 if test -n "$ac_tool_prefix"; then 2129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2131 echo "$as_me:2131: checking for $ac_word" >&5 2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2133 if test "${ac_cv_prog_RANLIB+set}" = set; then 2134 echo $ECHO_N "(cached) $ECHO_C" >&6 2135 else 2136 if test -n "$RANLIB"; then 2137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2138 else 2139 ac_save_IFS=$IFS; IFS=$ac_path_separator 2140 ac_dummy="$PATH" 2141 for ac_dir in $ac_dummy; do 2142 IFS=$ac_save_IFS 2143 test -z "$ac_dir" && ac_dir=. 2144 $as_executable_p "$ac_dir/$ac_word" || continue 2145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2146 echo "$as_me:2146: found $ac_dir/$ac_word" >&5 2147 break 2148 done 2149 2150 fi 2151 fi 2152 RANLIB=$ac_cv_prog_RANLIB 2153 if test -n "$RANLIB"; then 2154 echo "$as_me:2154: result: $RANLIB" >&5 2155 echo "${ECHO_T}$RANLIB" >&6 2156 else 2157 echo "$as_me:2157: result: no" >&5 2158 echo "${ECHO_T}no" >&6 2159 fi 2160 2161 fi 2162 if test -z "$ac_cv_prog_RANLIB"; then 2163 ac_ct_RANLIB=$RANLIB 2164 # Extract the first word of "ranlib", so it can be a program name with args. 2165 set dummy ranlib; ac_word=$2 2166 echo "$as_me:2166: checking for $ac_word" >&5 2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170 else 2171 if test -n "$ac_ct_RANLIB"; then 2172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2173 else 2174 ac_save_IFS=$IFS; IFS=$ac_path_separator 2175 ac_dummy="$PATH" 2176 for ac_dir in $ac_dummy; do 2177 IFS=$ac_save_IFS 2178 test -z "$ac_dir" && ac_dir=. 2179 $as_executable_p "$ac_dir/$ac_word" || continue 2180 ac_cv_prog_ac_ct_RANLIB="ranlib" 2181 echo "$as_me:2181: found $ac_dir/$ac_word" >&5 2182 break 2183 done 2184 2185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2186 fi 2187 fi 2188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2189 if test -n "$ac_ct_RANLIB"; then 2190 echo "$as_me:2190: result: $ac_ct_RANLIB" >&5 2191 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2192 else 2193 echo "$as_me:2193: result: no" >&5 2194 echo "${ECHO_T}no" >&6 2195 fi 2196 2197 RANLIB=$ac_ct_RANLIB 2198 else 2199 RANLIB="$ac_cv_prog_RANLIB" 2200 fi 2201 2202 ac_ext=c 2203 ac_cpp='$CPP $CPPFLAGS' 2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2207 echo "$as_me:2207: checking how to run the C preprocessor" >&5 2208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2209 # On Suns, sometimes $CPP names a directory. 2210 if test -n "$CPP" && test -d "$CPP"; then 2211 CPP= 2212 fi 2213 if test -z "$CPP"; then 2214 if test "${ac_cv_prog_CPP+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216 else 2217 # Double quotes because CPP needs to be expanded 2218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2219 do 2220 # break 2 since there is a loop in there. 2221 ac_preproc_ok=false 2222 for ac_c_preproc_warn_flag in '' yes 2223 do 2224 # Use a header file that comes with gcc, so configuring glibc 2225 # with a fresh cross-compiler works. 2226 # On the NeXT, cc -E runs the code through the compiler's parser, 2227 # not just through cpp. "Syntax error" is here to catch this case. 2228 cat >conftest.$ac_ext <<_ACEOF 2229 #line 2229 "configure" 2230 #include "confdefs.h" 2231 #include <assert.h> 2232 Syntax error 2233 _ACEOF 2234 if { (eval echo "$as_me:2234: \"$ac_cpp conftest.$ac_ext\"") >&5 2235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2236 ac_status=$? 2237 egrep -v '^ *\+' conftest.er1 >conftest.err 2238 rm -f conftest.er1 2239 cat conftest.err >&5 2240 echo "$as_me:2240: \$? = $ac_status" >&5 2241 (exit $ac_status); } >/dev/null; then 2242 if test -s conftest.err; then 2243 ac_cpp_err=$ac_c_preproc_warn_flag 2244 else 2245 ac_cpp_err= 2246 fi 2247 else 2248 ac_cpp_err=yes 2249 fi 2250 if test -z "$ac_cpp_err"; then 2251 : 2252 else 2253 echo "$as_me: failed program was:" >&5 2254 cat conftest.$ac_ext >&5 2255 # Broken: fails on valid input. 2256 continue 2257 fi 2258 rm -f conftest.err conftest.$ac_ext 2259 2260 # OK, works on sane cases. Now check whether non-existent headers 2261 # can be detected and how. 2262 cat >conftest.$ac_ext <<_ACEOF 2263 #line 2263 "configure" 2264 #include "confdefs.h" 2265 #include <ac_nonexistent.h> 2266 _ACEOF 2267 if { (eval echo "$as_me:2267: \"$ac_cpp conftest.$ac_ext\"") >&5 2268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2269 ac_status=$? 2270 egrep -v '^ *\+' conftest.er1 >conftest.err 2271 rm -f conftest.er1 2272 cat conftest.err >&5 2273 echo "$as_me:2273: \$? = $ac_status" >&5 2274 (exit $ac_status); } >/dev/null; then 2275 if test -s conftest.err; then 2276 ac_cpp_err=$ac_c_preproc_warn_flag 2277 else 2278 ac_cpp_err= 2279 fi 2280 else 2281 ac_cpp_err=yes 2282 fi 2283 if test -z "$ac_cpp_err"; then 2284 # Broken: success on invalid input. 2285 continue 2286 else 2287 echo "$as_me: failed program was:" >&5 2288 cat conftest.$ac_ext >&5 2289 # Passes both tests. 2290 ac_preproc_ok=: 2291 break 2292 fi 2293 rm -f conftest.err conftest.$ac_ext 2294 2295 done 2296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2297 rm -f conftest.err conftest.$ac_ext 2298 if $ac_preproc_ok; then 2299 break 2 2300 fi 2301 2302 done 2303 ac_cv_prog_CPP=$CPP 2304 2305 fi 2306 CPP=$ac_cv_prog_CPP 2307 else 2308 ac_cv_prog_CPP=$CPP 2309 fi 2310 echo "$as_me:2310: result: $CPP" >&5 2311 echo "${ECHO_T}$CPP" >&6 2312 ac_preproc_ok=false 2313 for ac_c_preproc_warn_flag in '' yes 2314 do 2315 # Use a header file that comes with gcc, so configuring glibc 2316 # with a fresh cross-compiler works. 2317 # On the NeXT, cc -E runs the code through the compiler's parser, 2318 # not just through cpp. "Syntax error" is here to catch this case. 2319 cat >conftest.$ac_ext <<_ACEOF 2320 #line 2320 "configure" 2321 #include "confdefs.h" 2322 #include <assert.h> 2323 Syntax error 2324 _ACEOF 2325 if { (eval echo "$as_me:2325: \"$ac_cpp conftest.$ac_ext\"") >&5 2326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2327 ac_status=$? 2328 egrep -v '^ *\+' conftest.er1 >conftest.err 2329 rm -f conftest.er1 2330 cat conftest.err >&5 2331 echo "$as_me:2331: \$? = $ac_status" >&5 2332 (exit $ac_status); } >/dev/null; then 2333 if test -s conftest.err; then 2334 ac_cpp_err=$ac_c_preproc_warn_flag 2335 else 2336 ac_cpp_err= 2337 fi 2338 else 2339 ac_cpp_err=yes 2340 fi 2341 if test -z "$ac_cpp_err"; then 2342 : 2343 else 2344 echo "$as_me: failed program was:" >&5 2345 cat conftest.$ac_ext >&5 2346 # Broken: fails on valid input. 2347 continue 2348 fi 2349 rm -f conftest.err conftest.$ac_ext 2350 2351 # OK, works on sane cases. Now check whether non-existent headers 2352 # can be detected and how. 2353 cat >conftest.$ac_ext <<_ACEOF 2354 #line 2354 "configure" 2355 #include "confdefs.h" 2356 #include <ac_nonexistent.h> 2357 _ACEOF 2358 if { (eval echo "$as_me:2358: \"$ac_cpp conftest.$ac_ext\"") >&5 2359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2360 ac_status=$? 2361 egrep -v '^ *\+' conftest.er1 >conftest.err 2362 rm -f conftest.er1 2363 cat conftest.err >&5 2364 echo "$as_me:2364: \$? = $ac_status" >&5 2365 (exit $ac_status); } >/dev/null; then 2366 if test -s conftest.err; then 2367 ac_cpp_err=$ac_c_preproc_warn_flag 2368 else 2369 ac_cpp_err= 2370 fi 2371 else 2372 ac_cpp_err=yes 2373 fi 2374 if test -z "$ac_cpp_err"; then 2375 # Broken: success on invalid input. 2376 continue 2377 else 2378 echo "$as_me: failed program was:" >&5 2379 cat conftest.$ac_ext >&5 2380 # Passes both tests. 2381 ac_preproc_ok=: 2382 break 2383 fi 2384 rm -f conftest.err conftest.$ac_ext 2385 2386 done 2387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2388 rm -f conftest.err conftest.$ac_ext 2389 if $ac_preproc_ok; then 2390 : 2391 else 2392 { { echo "$as_me:2392: error: C preprocessor \"$CPP\" fails sanity check" >&5 2393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2394 { (exit 1); exit 1; }; } 2395 fi 2396 2397 ac_ext=c 2398 ac_cpp='$CPP $CPPFLAGS' 2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2402 2403 echo "$as_me:2403: checking for AIX" >&5 2404 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2405 cat >conftest.$ac_ext <<_ACEOF 2406 #line 2406 "configure" 2407 #include "confdefs.h" 2408 #ifdef _AIX 2409 yes 2410 #endif 2411 2412 _ACEOF 2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2414 egrep "yes" >/dev/null 2>&1; then 2415 echo "$as_me:2415: result: yes" >&5 2416 echo "${ECHO_T}yes" >&6 2417 cat >>confdefs.h <<\EOF 2418 #define _ALL_SOURCE 1 2419 EOF 2420 2421 else 2422 echo "$as_me:2422: result: no" >&5 2423 echo "${ECHO_T}no" >&6 2424 fi 2425 rm -f conftest* 2426 2427 echo "$as_me:2427: checking for POSIXized ISC" >&5 2428 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 2429 if test -d /etc/conf/kconfig.d && 2430 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2431 then 2432 echo "$as_me:2432: result: yes" >&5 2433 echo "${ECHO_T}yes" >&6 2434 ISC=yes # If later tests want to check for ISC. 2435 2436 cat >>confdefs.h <<\EOF 2437 #define _POSIX_SOURCE 1 2438 EOF 2439 2440 if test "$GCC" = yes; then 2441 CC="$CC -posix" 2442 else 2443 CC="$CC -Xp" 2444 fi 2445 else 2446 echo "$as_me:2446: result: no" >&5 2447 echo "${ECHO_T}no" >&6 2448 ISC= 2449 fi 2450 2451 echo "$as_me:2451: checking for minix/config.h" >&5 2452 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2453 if test "${ac_cv_header_minix_config_h+set}" = set; then 2454 echo $ECHO_N "(cached) $ECHO_C" >&6 2455 else 2456 cat >conftest.$ac_ext <<_ACEOF 2457 #line 2457 "configure" 2458 #include "confdefs.h" 2459 #include <minix/config.h> 2460 _ACEOF 2461 if { (eval echo "$as_me:2461: \"$ac_cpp conftest.$ac_ext\"") >&5 2462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2463 ac_status=$? 2464 egrep -v '^ *\+' conftest.er1 >conftest.err 2465 rm -f conftest.er1 2466 cat conftest.err >&5 2467 echo "$as_me:2467: \$? = $ac_status" >&5 2468 (exit $ac_status); } >/dev/null; then 2469 if test -s conftest.err; then 2470 ac_cpp_err=$ac_c_preproc_warn_flag 2471 else 2472 ac_cpp_err= 2473 fi 2474 else 2475 ac_cpp_err=yes 2476 fi 2477 if test -z "$ac_cpp_err"; then 2478 ac_cv_header_minix_config_h=yes 2479 else 2480 echo "$as_me: failed program was:" >&5 2481 cat conftest.$ac_ext >&5 2482 ac_cv_header_minix_config_h=no 2483 fi 2484 rm -f conftest.err conftest.$ac_ext 2485 fi 2486 echo "$as_me:2486: result: $ac_cv_header_minix_config_h" >&5 2487 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2488 if test $ac_cv_header_minix_config_h = yes; then 2489 MINIX=yes 2490 else 2491 MINIX= 2492 fi 2493 2494 if test "$MINIX" = yes; then 2495 2496 cat >>confdefs.h <<\EOF 2497 #define _POSIX_SOURCE 1 2498 EOF 2499 2500 cat >>confdefs.h <<\EOF 2501 #define _POSIX_1_SOURCE 2 2502 EOF 2503 2504 cat >>confdefs.h <<\EOF 2505 #define _MINIX 1 2506 EOF 2507 2508 fi 2509 2510 echo "$as_me:2510: checking for ${CC-cc} option to accept ANSI C" >&5 2511 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2513 echo $ECHO_N "(cached) $ECHO_C" >&6 2514 else 2515 ac_cv_prog_cc_stdc=no 2516 ac_save_CFLAGS="$CFLAGS" 2517 # Don't try gcc -ansi; that turns off useful extensions and 2518 # breaks some systems' header files. 2519 # AIX -qlanglvl=ansi 2520 # Ultrix and OSF/1 -std1 2521 # HP-UX -Aa -D_HPUX_SOURCE 2522 # SVR4 -Xc 2523 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 2524 do 2525 CFLAGS="$ac_save_CFLAGS $ac_arg" 2526 cat >conftest.$ac_ext <<_ACEOF 2527 #line 2527 "configure" 2528 #include "confdefs.h" 2529 #if !defined(__STDC__) || __STDC__ != 1 2530 choke me 2531 #endif 2532 2533 int 2534 main () 2535 { 2536 int test (int i, double x); 2537 struct s1 {int (*f) (int a);}; 2538 struct s2 {int (*f) (double a);}; 2539 ; 2540 return 0; 2541 } 2542 _ACEOF 2543 rm -f conftest.$ac_objext 2544 if { (eval echo "$as_me:2544: \"$ac_compile\"") >&5 2545 (eval $ac_compile) 2>&5 2546 ac_status=$? 2547 echo "$as_me:2547: \$? = $ac_status" >&5 2548 (exit $ac_status); } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:2550: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:2553: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 ac_cv_prog_cc_stdc="$ac_arg"; break 2556 else 2557 echo "$as_me: failed program was:" >&5 2558 cat conftest.$ac_ext >&5 2559 fi 2560 rm -f conftest.$ac_objext conftest.$ac_ext 2561 done 2562 CFLAGS="$ac_save_CFLAGS" 2563 2564 fi 2565 2566 echo "$as_me:2566: result: $ac_cv_prog_cc_stdc" >&5 2567 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2568 case "x$ac_cv_prog_cc_stdc" in 2569 x|xno) ;; 2570 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 2571 esac 2572 2573 echo "$as_me:2573: checking for function prototypes" >&5 2574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 2575 if test "$ac_cv_prog_cc_stdc" != no; then 2576 echo "$as_me:2576: result: yes" >&5 2577 echo "${ECHO_T}yes" >&6 2578 cat >>confdefs.h <<\EOF 2579 #define PROTOTYPES 1 2580 EOF 2581 2582 U= ANSI2KNR= 2583 else 2584 echo "$as_me:2584: result: no" >&5 2585 echo "${ECHO_T}no" >&6 2586 U=_ ANSI2KNR=ansi2knr 2587 fi 2588 2589 echo "$as_me:2589: checking for $CC option to accept ANSI C" >&5 2443 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2590 2444 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2591 2445 if test "${ac_cv_prog_cc_stdc+set}" = set; then … … 2595 2449 ac_save_CC=$CC 2596 2450 cat >conftest.$ac_ext <<_ACEOF 2597 #line 2597 "configure" 2598 #include "confdefs.h" 2451 /* confdefs.h. */ 2452 _ACEOF 2453 cat confdefs.h >>conftest.$ac_ext 2454 cat >>conftest.$ac_ext <<_ACEOF 2455 /* end confdefs.h. */ 2599 2456 #include <stdarg.h> 2600 2457 #include <stdio.h> … … 2619 2476 return s; 2620 2477 } 2478 2479 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2480 function prototypes and stuff, but not '\xHH' hex character constants. 2481 These don't provoke an error unfortunately, instead are silently treated 2482 as 'x'. The following induces an error, until -std1 is added to get 2483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2484 array size at least. It's necessary to write '\x00'==0 to get something 2485 that's true only with -std1. */ 2486 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2487 2621 2488 int test (int i, double x); 2622 2489 struct s1 {int (*f) (int a);}; … … 2644 2511 CC="$ac_save_CC $ac_arg" 2645 2512 rm -f conftest.$ac_objext 2646 if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 2647 (eval $ac_compile) 2>&5 2648 ac_status=$? 2649 echo "$as_me:2649: \$? = $ac_status" >&5 2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2514 (eval $ac_compile) 2>conftest.er1 2515 ac_status=$? 2516 grep -v '^ *+' conftest.er1 >conftest.err 2517 rm -f conftest.er1 2518 cat conftest.err >&5 2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 2520 (exit $ac_status); } && 2651 { ac_try='test -s conftest.$ac_objext' 2652 { (eval echo "$as_me:2652: \"$ac_try\"") >&5 2653 (eval $ac_try) 2>&5 2654 ac_status=$? 2655 echo "$as_me:2655: \$? = $ac_status" >&5 2521 { ac_try='test -z "$ac_c_werror_flag" 2522 || test ! -s conftest.err' 2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2524 (eval $ac_try) 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); }; } && 2528 { ac_try='test -s conftest.$ac_objext' 2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2530 (eval $ac_try) 2>&5 2531 ac_status=$? 2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 2533 (exit $ac_status); }; }; then 2657 2534 ac_cv_prog_cc_stdc=$ac_arg … … 2659 2536 else 2660 2537 echo "$as_me: failed program was:" >&5 2661 cat conftest.$ac_ext >&5 2662 fi 2663 rm -f conftest.$ac_objext 2538 sed 's/^/| /' conftest.$ac_ext >&5 2539 2540 fi 2541 rm -f conftest.err conftest.$ac_objext 2664 2542 done 2665 2543 rm -f conftest.$ac_ext conftest.$ac_objext … … 2670 2548 case "x$ac_cv_prog_cc_stdc" in 2671 2549 x|xno) 2672 echo "$as_me: 2672: result: none needed" >&52550 echo "$as_me:$LINENO: result: none needed" >&5 2673 2551 echo "${ECHO_T}none needed" >&6 ;; 2674 2552 *) 2675 echo "$as_me: 2675: result: $ac_cv_prog_cc_stdc" >&52553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2676 2554 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2677 2555 CC="$CC $ac_cv_prog_cc_stdc" ;; 2678 2556 esac 2679 2557 2680 echo "$as_me:2680: checking for an ANSI C-conforming const" >&5 2558 # Some people use a C++ compiler to compile C. Since we use `exit', 2559 # in C++ we need to declare it. In case someone uses the same compiler 2560 # for both compiling C and C++ we need to have the C++ compiler decide 2561 # the declaration of exit, since it's the most demanding environment. 2562 cat >conftest.$ac_ext <<_ACEOF 2563 #ifndef __cplusplus 2564 choke me 2565 #endif 2566 _ACEOF 2567 rm -f conftest.$ac_objext 2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2569 (eval $ac_compile) 2>conftest.er1 2570 ac_status=$? 2571 grep -v '^ *+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && 2576 { ac_try='test -z "$ac_c_werror_flag" 2577 || test ! -s conftest.err' 2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2579 (eval $ac_try) 2>&5 2580 ac_status=$? 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); }; } && 2583 { ac_try='test -s conftest.$ac_objext' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; }; then 2589 for ac_declaration in \ 2590 '' \ 2591 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2592 'extern "C" void std::exit (int); using std::exit;' \ 2593 'extern "C" void exit (int) throw ();' \ 2594 'extern "C" void exit (int);' \ 2595 'void exit (int);' 2596 do 2597 cat >conftest.$ac_ext <<_ACEOF 2598 /* confdefs.h. */ 2599 _ACEOF 2600 cat confdefs.h >>conftest.$ac_ext 2601 cat >>conftest.$ac_ext <<_ACEOF 2602 /* end confdefs.h. */ 2603 $ac_declaration 2604 #include <stdlib.h> 2605 int 2606 main () 2607 { 2608 exit (42); 2609 ; 2610 return 0; 2611 } 2612 _ACEOF 2613 rm -f conftest.$ac_objext 2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2615 (eval $ac_compile) 2>conftest.er1 2616 ac_status=$? 2617 grep -v '^ *+' conftest.er1 >conftest.err 2618 rm -f conftest.er1 2619 cat conftest.err >&5 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); } && 2622 { ac_try='test -z "$ac_c_werror_flag" 2623 || test ! -s conftest.err' 2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2625 (eval $ac_try) 2>&5 2626 ac_status=$? 2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2628 (exit $ac_status); }; } && 2629 { ac_try='test -s conftest.$ac_objext' 2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2631 (eval $ac_try) 2>&5 2632 ac_status=$? 2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2634 (exit $ac_status); }; }; then 2635 : 2636 else 2637 echo "$as_me: failed program was:" >&5 2638 sed 's/^/| /' conftest.$ac_ext >&5 2639 2640 continue 2641 fi 2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2643 cat >conftest.$ac_ext <<_ACEOF 2644 /* confdefs.h. */ 2645 _ACEOF 2646 cat confdefs.h >>conftest.$ac_ext 2647 cat >>conftest.$ac_ext <<_ACEOF 2648 /* end confdefs.h. */ 2649 $ac_declaration 2650 int 2651 main () 2652 { 2653 exit (42); 2654 ; 2655 return 0; 2656 } 2657 _ACEOF 2658 rm -f conftest.$ac_objext 2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2660 (eval $ac_compile) 2>conftest.er1 2661 ac_status=$? 2662 grep -v '^ *+' conftest.er1 >conftest.err 2663 rm -f conftest.er1 2664 cat conftest.err >&5 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } && 2667 { ac_try='test -z "$ac_c_werror_flag" 2668 || test ! -s conftest.err' 2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2670 (eval $ac_try) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); }; } && 2674 { ac_try='test -s conftest.$ac_objext' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; }; then 2680 break 2681 else 2682 echo "$as_me: failed program was:" >&5 2683 sed 's/^/| /' conftest.$ac_ext >&5 2684 2685 fi 2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2687 done 2688 rm -f conftest* 2689 if test -n "$ac_declaration"; then 2690 echo '#ifdef __cplusplus' >>confdefs.h 2691 echo $ac_declaration >>confdefs.h 2692 echo '#endif' >>confdefs.h 2693 fi 2694 2695 else 2696 echo "$as_me: failed program was:" >&5 2697 sed 's/^/| /' conftest.$ac_ext >&5 2698 2699 fi 2700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2701 ac_ext=c 2702 ac_cpp='$CPP $CPPFLAGS' 2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2706 2707 ac_aux_dir= 2708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2709 if test -f $ac_dir/install-sh; then 2710 ac_aux_dir=$ac_dir 2711 ac_install_sh="$ac_aux_dir/install-sh -c" 2712 break 2713 elif test -f $ac_dir/install.sh; then 2714 ac_aux_dir=$ac_dir 2715 ac_install_sh="$ac_aux_dir/install.sh -c" 2716 break 2717 elif test -f $ac_dir/shtool; then 2718 ac_aux_dir=$ac_dir 2719 ac_install_sh="$ac_aux_dir/shtool install -c" 2720 break 2721 fi 2722 done 2723 if test -z "$ac_aux_dir"; then 2724 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2725 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2726 { (exit 1); exit 1; }; } 2727 fi 2728 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2729 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2730 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2731 2732 # Find a good install program. We prefer a C program (faster), 2733 # so one script is as good as another. But avoid the broken or 2734 # incompatible versions: 2735 # SysV /etc/install, /usr/sbin/install 2736 # SunOS /usr/etc/install 2737 # IRIX /sbin/install 2738 # AIX /bin/install 2739 # AmigaOS /C/install, which installs bootblocks on floppy discs 2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2743 # OS/2's system install, which has a completely different semantic 2744 # ./install, which can be erroneously created by make from ./install.sh. 2745 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2746 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2747 if test -z "$INSTALL"; then 2748 if test "${ac_cv_path_install+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750 else 2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2752 for as_dir in $PATH 2753 do 2754 IFS=$as_save_IFS 2755 test -z "$as_dir" && as_dir=. 2756 # Account for people who put trailing slashes in PATH elements. 2757 case $as_dir/ in 2758 ./ | .// | /cC/* | \ 2759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2760 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2761 /usr/ucb/* ) ;; 2762 *) 2763 # OSF1 and SCO ODT 3.0 have their own names for install. 2764 # Don't use installbsd from OSF since it installs stuff as root 2765 # by default. 2766 for ac_prog in ginstall scoinst install; do 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2769 if test $ac_prog = install && 2770 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2771 # AIX install. It has an incompatible calling convention. 2772 : 2773 elif test $ac_prog = install && 2774 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2775 # program-specific install script used by HP pwplus--don't use. 2776 : 2777 else 2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2779 break 3 2780 fi 2781 fi 2782 done 2783 done 2784 ;; 2785 esac 2786 done 2787 2788 2789 fi 2790 if test "${ac_cv_path_install+set}" = set; then 2791 INSTALL=$ac_cv_path_install 2792 else 2793 # As a last resort, use the slow shell script. We don't cache a 2794 # path for INSTALL within a source directory, because that will 2795 # break other packages using the cache if that directory is 2796 # removed, or if the path is relative. 2797 INSTALL=$ac_install_sh 2798 fi 2799 fi 2800 echo "$as_me:$LINENO: result: $INSTALL" >&5 2801 echo "${ECHO_T}$INSTALL" >&6 2802 2803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2804 # It thinks the first close brace ends the variable substitution. 2805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2806 2807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2808 2809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2810 2811 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2813 LN_S=$as_ln_s 2814 if test "$LN_S" = "ln -s"; then 2815 echo "$as_me:$LINENO: result: yes" >&5 2816 echo "${ECHO_T}yes" >&6 2817 else 2818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2819 echo "${ECHO_T}no, using $LN_S" >&6 2820 fi 2821 2822 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2823 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2824 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2825 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2826 echo $ECHO_N "(cached) $ECHO_C" >&6 2827 else 2828 cat >conftest.make <<\_ACEOF 2829 all: 2830 @echo 'ac_maketemp="$(MAKE)"' 2831 _ACEOF 2832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2833 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2834 if test -n "$ac_maketemp"; then 2835 eval ac_cv_prog_make_${ac_make}_set=yes 2836 else 2837 eval ac_cv_prog_make_${ac_make}_set=no 2838 fi 2839 rm -f conftest.make 2840 fi 2841 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2842 echo "$as_me:$LINENO: result: yes" >&5 2843 echo "${ECHO_T}yes" >&6 2844 SET_MAKE= 2845 else 2846 echo "$as_me:$LINENO: result: no" >&5 2847 echo "${ECHO_T}no" >&6 2848 SET_MAKE="MAKE=${MAKE-make}" 2849 fi 2850 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2854 echo "$as_me:$LINENO: checking for $ac_word" >&5 2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2856 if test "${ac_cv_prog_RANLIB+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858 else 2859 if test -n "$RANLIB"; then 2860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2861 else 2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863 for as_dir in $PATH 2864 do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873 done 2874 done 2875 2876 fi 2877 fi 2878 RANLIB=$ac_cv_prog_RANLIB 2879 if test -n "$RANLIB"; then 2880 echo "$as_me:$LINENO: result: $RANLIB" >&5 2881 echo "${ECHO_T}$RANLIB" >&6 2882 else 2883 echo "$as_me:$LINENO: result: no" >&5 2884 echo "${ECHO_T}no" >&6 2885 fi 2886 2887 fi 2888 if test -z "$ac_cv_prog_RANLIB"; then 2889 ac_ct_RANLIB=$RANLIB 2890 # Extract the first word of "ranlib", so it can be a program name with args. 2891 set dummy ranlib; ac_word=$2 2892 echo "$as_me:$LINENO: checking for $ac_word" >&5 2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2895 echo $ECHO_N "(cached) $ECHO_C" >&6 2896 else 2897 if test -n "$ac_ct_RANLIB"; then 2898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2899 else 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901 for as_dir in $PATH 2902 do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_RANLIB="ranlib" 2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911 done 2912 done 2913 2914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2915 fi 2916 fi 2917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2918 if test -n "$ac_ct_RANLIB"; then 2919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2920 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2921 else 2922 echo "$as_me:$LINENO: result: no" >&5 2923 echo "${ECHO_T}no" >&6 2924 fi 2925 2926 RANLIB=$ac_ct_RANLIB 2927 else 2928 RANLIB="$ac_cv_prog_RANLIB" 2929 fi 2930 2931 2932 2933 ac_ext=c 2934 ac_cpp='$CPP $CPPFLAGS' 2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940 # On Suns, sometimes $CPP names a directory. 2941 if test -n "$CPP" && test -d "$CPP"; then 2942 CPP= 2943 fi 2944 if test -z "$CPP"; then 2945 if test "${ac_cv_prog_CPP+set}" = set; then 2946 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 else 2948 # Double quotes because CPP needs to be expanded 2949 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 do 2951 ac_preproc_ok=false 2952 for ac_c_preproc_warn_flag in '' yes 2953 do 2954 # Use a header file that comes with gcc, so configuring glibc 2955 # with a fresh cross-compiler works. 2956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 # <limits.h> exists even on freestanding compilers. 2958 # On the NeXT, cc -E runs the code through the compiler's parser, 2959 # not just through cpp. "Syntax error" is here to catch this case. 2960 cat >conftest.$ac_ext <<_ACEOF 2961 /* confdefs.h. */ 2962 _ACEOF 2963 cat confdefs.h >>conftest.$ac_ext 2964 cat >>conftest.$ac_ext <<_ACEOF 2965 /* end confdefs.h. */ 2966 #ifdef __STDC__ 2967 # include <limits.h> 2968 #else 2969 # include <assert.h> 2970 #endif 2971 Syntax error 2972 _ACEOF 2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 ac_status=$? 2976 grep -v '^ *+' conftest.er1 >conftest.err 2977 rm -f conftest.er1 2978 cat conftest.err >&5 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } >/dev/null; then 2981 if test -s conftest.err; then 2982 ac_cpp_err=$ac_c_preproc_warn_flag 2983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 else 2985 ac_cpp_err= 2986 fi 2987 else 2988 ac_cpp_err=yes 2989 fi 2990 if test -z "$ac_cpp_err"; then 2991 : 2992 else 2993 echo "$as_me: failed program was:" >&5 2994 sed 's/^/| /' conftest.$ac_ext >&5 2995 2996 # Broken: fails on valid input. 2997 continue 2998 fi 2999 rm -f conftest.err conftest.$ac_ext 3000 3001 # OK, works on sane cases. Now check whether non-existent headers 3002 # can be detected and how. 3003 cat >conftest.$ac_ext <<_ACEOF 3004 /* confdefs.h. */ 3005 _ACEOF 3006 cat confdefs.h >>conftest.$ac_ext 3007 cat >>conftest.$ac_ext <<_ACEOF 3008 /* end confdefs.h. */ 3009 #include <ac_nonexistent.h> 3010 _ACEOF 3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } >/dev/null; then 3019 if test -s conftest.err; then 3020 ac_cpp_err=$ac_c_preproc_warn_flag 3021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 else 3023 ac_cpp_err= 3024 fi 3025 else 3026 ac_cpp_err=yes 3027 fi 3028 if test -z "$ac_cpp_err"; then 3029 # Broken: success on invalid input. 3030 continue 3031 else 3032 echo "$as_me: failed program was:" >&5 3033 sed 's/^/| /' conftest.$ac_ext >&5 3034 3035 # Passes both tests. 3036 ac_preproc_ok=: 3037 break 3038 fi 3039 rm -f conftest.err conftest.$ac_ext 3040 3041 done 3042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043 rm -f conftest.err conftest.$ac_ext 3044 if $ac_preproc_ok; then 3045 break 3046 fi 3047 3048 done 3049 ac_cv_prog_CPP=$CPP 3050 3051 fi 3052 CPP=$ac_cv_prog_CPP 3053 else 3054 ac_cv_prog_CPP=$CPP 3055 fi 3056 echo "$as_me:$LINENO: result: $CPP" >&5 3057 echo "${ECHO_T}$CPP" >&6 3058 ac_preproc_ok=false 3059 for ac_c_preproc_warn_flag in '' yes 3060 do 3061 # Use a header file that comes with gcc, so configuring glibc 3062 # with a fresh cross-compiler works. 3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 # <limits.h> exists even on freestanding compilers. 3065 # On the NeXT, cc -E runs the code through the compiler's parser, 3066 # not just through cpp. "Syntax error" is here to catch this case. 3067 cat >conftest.$ac_ext <<_ACEOF 3068 /* confdefs.h. */ 3069 _ACEOF 3070 cat confdefs.h >>conftest.$ac_ext 3071 cat >>conftest.$ac_ext <<_ACEOF 3072 /* end confdefs.h. */ 3073 #ifdef __STDC__ 3074 # include <limits.h> 3075 #else 3076 # include <assert.h> 3077 #endif 3078 Syntax error 3079 _ACEOF 3080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } >/dev/null; then 3088 if test -s conftest.err; then 3089 ac_cpp_err=$ac_c_preproc_warn_flag 3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 else 3092 ac_cpp_err= 3093 fi 3094 else 3095 ac_cpp_err=yes 3096 fi 3097 if test -z "$ac_cpp_err"; then 3098 : 3099 else 3100 echo "$as_me: failed program was:" >&5 3101 sed 's/^/| /' conftest.$ac_ext >&5 3102 3103 # Broken: fails on valid input. 3104 continue 3105 fi 3106 rm -f conftest.err conftest.$ac_ext 3107 3108 # OK, works on sane cases. Now check whether non-existent headers 3109 # can be detected and how. 3110 cat >conftest.$ac_ext <<_ACEOF 3111 /* confdefs.h. */ 3112 _ACEOF 3113 cat confdefs.h >>conftest.$ac_ext 3114 cat >>conftest.$ac_ext <<_ACEOF 3115 /* end confdefs.h. */ 3116 #include <ac_nonexistent.h> 3117 _ACEOF 3118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } >/dev/null; then 3126 if test -s conftest.err; then 3127 ac_cpp_err=$ac_c_preproc_warn_flag 3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 else 3130 ac_cpp_err= 3131 fi 3132 else 3133 ac_cpp_err=yes 3134 fi 3135 if test -z "$ac_cpp_err"; then 3136 # Broken: success on invalid input. 3137 continue 3138 else 3139 echo "$as_me: failed program was:" >&5 3140 sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 # Passes both tests. 3143 ac_preproc_ok=: 3144 break 3145 fi 3146 rm -f conftest.err conftest.$ac_ext 3147 3148 done 3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150 rm -f conftest.err conftest.$ac_ext 3151 if $ac_preproc_ok; then 3152 : 3153 else 3154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155 See \`config.log' for more details." >&5 3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157 See \`config.log' for more details." >&2;} 3158 { (exit 1); exit 1; }; } 3159 fi 3160 3161 ac_ext=c 3162 ac_cpp='$CPP $CPPFLAGS' 3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 3167 3168 echo "$as_me:$LINENO: checking for egrep" >&5 3169 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170 if test "${ac_cv_prog_egrep+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172 else 3173 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 then ac_cv_prog_egrep='grep -E' 3175 else ac_cv_prog_egrep='egrep' 3176 fi 3177 fi 3178 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 EGREP=$ac_cv_prog_egrep 3181 3182 3183 3184 echo "$as_me:$LINENO: checking for AIX" >&5 3185 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3186 cat >conftest.$ac_ext <<_ACEOF 3187 /* confdefs.h. */ 3188 _ACEOF 3189 cat confdefs.h >>conftest.$ac_ext 3190 cat >>conftest.$ac_ext <<_ACEOF 3191 /* end confdefs.h. */ 3192 #ifdef _AIX 3193 yes 3194 #endif 3195 3196 _ACEOF 3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3198 $EGREP "yes" >/dev/null 2>&1; then 3199 echo "$as_me:$LINENO: result: yes" >&5 3200 echo "${ECHO_T}yes" >&6 3201 cat >>confdefs.h <<\_ACEOF 3202 #define _ALL_SOURCE 1 3203 _ACEOF 3204 3205 else 3206 echo "$as_me:$LINENO: result: no" >&5 3207 echo "${ECHO_T}no" >&6 3208 fi 3209 rm -f conftest* 3210 3211 3212 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3213 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3214 if test "${ac_cv_search_strerror+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216 else 3217 ac_func_search_save_LIBS=$LIBS 3218 ac_cv_search_strerror=no 3219 cat >conftest.$ac_ext <<_ACEOF 3220 /* confdefs.h. */ 3221 _ACEOF 3222 cat confdefs.h >>conftest.$ac_ext 3223 cat >>conftest.$ac_ext <<_ACEOF 3224 /* end confdefs.h. */ 3225 3226 /* Override any gcc2 internal prototype to avoid an error. */ 3227 #ifdef __cplusplus 3228 extern "C" 3229 #endif 3230 /* We use char because int might match the return type of a gcc2 3231 builtin and then its argument prototype would still apply. */ 3232 char strerror (); 3233 int 3234 main () 3235 { 3236 strerror (); 3237 ; 3238 return 0; 3239 } 3240 _ACEOF 3241 rm -f conftest.$ac_objext conftest$ac_exeext 3242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3243 (eval $ac_link) 2>conftest.er1 3244 ac_status=$? 3245 grep -v '^ *+' conftest.er1 >conftest.err 3246 rm -f conftest.er1 3247 cat conftest.err >&5 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && 3250 { ac_try='test -z "$ac_c_werror_flag" 3251 || test ! -s conftest.err' 3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3253 (eval $ac_try) 2>&5 3254 ac_status=$? 3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); }; } && 3257 { ac_try='test -s conftest$ac_exeext' 3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3259 (eval $ac_try) 2>&5 3260 ac_status=$? 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); }; }; then 3263 ac_cv_search_strerror="none required" 3264 else 3265 echo "$as_me: failed program was:" >&5 3266 sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 fi 3269 rm -f conftest.err conftest.$ac_objext \ 3270 conftest$ac_exeext conftest.$ac_ext 3271 if test "$ac_cv_search_strerror" = no; then 3272 for ac_lib in cposix; do 3273 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3274 cat >conftest.$ac_ext <<_ACEOF 3275 /* confdefs.h. */ 3276 _ACEOF 3277 cat confdefs.h >>conftest.$ac_ext 3278 cat >>conftest.$ac_ext <<_ACEOF 3279 /* end confdefs.h. */ 3280 3281 /* Override any gcc2 internal prototype to avoid an error. */ 3282 #ifdef __cplusplus 3283 extern "C" 3284 #endif 3285 /* We use char because int might match the return type of a gcc2 3286 builtin and then its argument prototype would still apply. */ 3287 char strerror (); 3288 int 3289 main () 3290 { 3291 strerror (); 3292 ; 3293 return 0; 3294 } 3295 _ACEOF 3296 rm -f conftest.$ac_objext conftest$ac_exeext 3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3298 (eval $ac_link) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } && 3305 { ac_try='test -z "$ac_c_werror_flag" 3306 || test ! -s conftest.err' 3307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3308 (eval $ac_try) 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); }; } && 3312 { ac_try='test -s conftest$ac_exeext' 3313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3314 (eval $ac_try) 2>&5 3315 ac_status=$? 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); }; }; then 3318 ac_cv_search_strerror="-l$ac_lib" 3319 break 3320 else 3321 echo "$as_me: failed program was:" >&5 3322 sed 's/^/| /' conftest.$ac_ext >&5 3323 3324 fi 3325 rm -f conftest.err conftest.$ac_objext \ 3326 conftest$ac_exeext conftest.$ac_ext 3327 done 3328 fi 3329 LIBS=$ac_func_search_save_LIBS 3330 fi 3331 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3332 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3333 if test "$ac_cv_search_strerror" != no; then 3334 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3335 3336 fi 3337 3338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3340 if test "${ac_cv_header_stdc+set}" = set; then 3341 echo $ECHO_N "(cached) $ECHO_C" >&6 3342 else 3343 cat >conftest.$ac_ext <<_ACEOF 3344 /* confdefs.h. */ 3345 _ACEOF 3346 cat confdefs.h >>conftest.$ac_ext 3347 cat >>conftest.$ac_ext <<_ACEOF 3348 /* end confdefs.h. */ 3349 #include <stdlib.h> 3350 #include <stdarg.h> 3351 #include <string.h> 3352 #include <float.h> 3353 3354 int 3355 main () 3356 { 3357 3358 ; 3359 return 0; 3360 } 3361 _ACEOF 3362 rm -f conftest.$ac_objext 3363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3364 (eval $ac_compile) 2>conftest.er1 3365 ac_status=$? 3366 grep -v '^ *+' conftest.er1 >conftest.err 3367 rm -f conftest.er1 3368 cat conftest.err >&5 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); } && 3371 { ac_try='test -z "$ac_c_werror_flag" 3372 || test ! -s conftest.err' 3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3374 (eval $ac_try) 2>&5 3375 ac_status=$? 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); }; } && 3378 { ac_try='test -s conftest.$ac_objext' 3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3380 (eval $ac_try) 2>&5 3381 ac_status=$? 3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3383 (exit $ac_status); }; }; then 3384 ac_cv_header_stdc=yes 3385 else 3386 echo "$as_me: failed program was:" >&5 3387 sed 's/^/| /' conftest.$ac_ext >&5 3388 3389 ac_cv_header_stdc=no 3390 fi 3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3392 3393 if test $ac_cv_header_stdc = yes; then 3394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3395 cat >conftest.$ac_ext <<_ACEOF 3396 /* confdefs.h. */ 3397 _ACEOF 3398 cat confdefs.h >>conftest.$ac_ext 3399 cat >>conftest.$ac_ext <<_ACEOF 3400 /* end confdefs.h. */ 3401 #include <string.h> 3402 3403 _ACEOF 3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3405 $EGREP "memchr" >/dev/null 2>&1; then 3406 : 3407 else 3408 ac_cv_header_stdc=no 3409 fi 3410 rm -f conftest* 3411 3412 fi 3413 3414 if test $ac_cv_header_stdc = yes; then 3415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3416 cat >conftest.$ac_ext <<_ACEOF 3417 /* confdefs.h. */ 3418 _ACEOF 3419 cat confdefs.h >>conftest.$ac_ext 3420 cat >>conftest.$ac_ext <<_ACEOF 3421 /* end confdefs.h. */ 3422 #include <stdlib.h> 3423 3424 _ACEOF 3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3426 $EGREP "free" >/dev/null 2>&1; then 3427 : 3428 else 3429 ac_cv_header_stdc=no 3430 fi 3431 rm -f conftest* 3432 3433 fi 3434 3435 if test $ac_cv_header_stdc = yes; then 3436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3437 if test "$cross_compiling" = yes; then 3438 : 3439 else 3440 cat >conftest.$ac_ext <<_ACEOF 3441 /* confdefs.h. */ 3442 _ACEOF 3443 cat confdefs.h >>conftest.$ac_ext 3444 cat >>conftest.$ac_ext <<_ACEOF 3445 /* end confdefs.h. */ 3446 #include <ctype.h> 3447 #if ((' ' & 0x0FF) == 0x020) 3448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3450 #else 3451 # define ISLOWER(c) \ 3452 (('a' <= (c) && (c) <= 'i') \ 3453 || ('j' <= (c) && (c) <= 'r') \ 3454 || ('s' <= (c) && (c) <= 'z')) 3455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3456 #endif 3457 3458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3459 int 3460 main () 3461 { 3462 int i; 3463 for (i = 0; i < 256; i++) 3464 if (XOR (islower (i), ISLOWER (i)) 3465 || toupper (i) != TOUPPER (i)) 3466 exit(2); 3467 exit (0); 3468 } 3469 _ACEOF 3470 rm -f conftest$ac_exeext 3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3472 (eval $ac_link) 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3477 (eval $ac_try) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; }; then 3481 : 3482 else 3483 echo "$as_me: program exited with status $ac_status" >&5 3484 echo "$as_me: failed program was:" >&5 3485 sed 's/^/| /' conftest.$ac_ext >&5 3486 3487 ( exit $ac_status ) 3488 ac_cv_header_stdc=no 3489 fi 3490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3491 fi 3492 fi 3493 fi 3494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3495 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3496 if test $ac_cv_header_stdc = yes; then 3497 3498 cat >>confdefs.h <<\_ACEOF 3499 #define STDC_HEADERS 1 3500 _ACEOF 3501 3502 fi 3503 3504 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3515 inttypes.h stdint.h unistd.h 3516 do 3517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3518 echo "$as_me:$LINENO: checking for $ac_header" >&5 3519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3520 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3521 echo $ECHO_N "(cached) $ECHO_C" >&6 3522 else 3523 cat >conftest.$ac_ext <<_ACEOF 3524 /* confdefs.h. */ 3525 _ACEOF 3526 cat confdefs.h >>conftest.$ac_ext 3527 cat >>conftest.$ac_ext <<_ACEOF 3528 /* end confdefs.h. */ 3529 $ac_includes_default 3530 3531 #include <$ac_header> 3532 _ACEOF 3533 rm -f conftest.$ac_objext 3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3535 (eval $ac_compile) 2>conftest.er1 3536 ac_status=$? 3537 grep -v '^ *+' conftest.er1 >conftest.err 3538 rm -f conftest.er1 3539 cat conftest.err >&5 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); } && 3542 { ac_try='test -z "$ac_c_werror_flag" 3543 || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest.$ac_objext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 3555 eval "$as_ac_Header=yes" 3556 else 3557 echo "$as_me: failed program was:" >&5 3558 sed 's/^/| /' conftest.$ac_ext >&5 3559 3560 eval "$as_ac_Header=no" 3561 fi 3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563 fi 3564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3566 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3567 cat >>confdefs.h <<_ACEOF 3568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3569 _ACEOF 3570 3571 fi 3572 3573 done 3574 3575 3576 if test "${ac_cv_header_minix_config_h+set}" = set; then 3577 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3578 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3579 if test "${ac_cv_header_minix_config_h+set}" = set; then 3580 echo $ECHO_N "(cached) $ECHO_C" >&6 3581 fi 3582 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3583 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3584 else 3585 # Is the header compilable? 3586 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3587 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3588 cat >conftest.$ac_ext <<_ACEOF 3589 /* confdefs.h. */ 3590 _ACEOF 3591 cat confdefs.h >>conftest.$ac_ext 3592 cat >>conftest.$ac_ext <<_ACEOF 3593 /* end confdefs.h. */ 3594 $ac_includes_default 3595 #include <minix/config.h> 3596 _ACEOF 3597 rm -f conftest.$ac_objext 3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3599 (eval $ac_compile) 2>conftest.er1 3600 ac_status=$? 3601 grep -v '^ *+' conftest.er1 >conftest.err 3602 rm -f conftest.er1 3603 cat conftest.err >&5 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3605 (exit $ac_status); } && 3606 { ac_try='test -z "$ac_c_werror_flag" 3607 || test ! -s conftest.err' 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3609 (eval $ac_try) 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); }; } && 3613 { ac_try='test -s conftest.$ac_objext' 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); }; }; then 3619 ac_header_compiler=yes 3620 else 3621 echo "$as_me: failed program was:" >&5 3622 sed 's/^/| /' conftest.$ac_ext >&5 3623 3624 ac_header_compiler=no 3625 fi 3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3628 echo "${ECHO_T}$ac_header_compiler" >&6 3629 3630 # Is the header present? 3631 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3632 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3633 cat >conftest.$ac_ext <<_ACEOF 3634 /* confdefs.h. */ 3635 _ACEOF 3636 cat confdefs.h >>conftest.$ac_ext 3637 cat >>conftest.$ac_ext <<_ACEOF 3638 /* end confdefs.h. */ 3639 #include <minix/config.h> 3640 _ACEOF 3641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3643 ac_status=$? 3644 grep -v '^ *+' conftest.er1 >conftest.err 3645 rm -f conftest.er1 3646 cat conftest.err >&5 3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3648 (exit $ac_status); } >/dev/null; then 3649 if test -s conftest.err; then 3650 ac_cpp_err=$ac_c_preproc_warn_flag 3651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3652 else 3653 ac_cpp_err= 3654 fi 3655 else 3656 ac_cpp_err=yes 3657 fi 3658 if test -z "$ac_cpp_err"; then 3659 ac_header_preproc=yes 3660 else 3661 echo "$as_me: failed program was:" >&5 3662 sed 's/^/| /' conftest.$ac_ext >&5 3663 3664 ac_header_preproc=no 3665 fi 3666 rm -f conftest.err conftest.$ac_ext 3667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3668 echo "${ECHO_T}$ac_header_preproc" >&6 3669 3670 # So? What about this header? 3671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3672 yes:no: ) 3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3674 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3675 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3676 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3677 ac_header_preproc=yes 3678 ;; 3679 no:yes:* ) 3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3681 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3682 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3683 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3685 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3687 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3688 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3689 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3690 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3691 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3692 ( 3693 cat <<\_ASBOX 3694 ## ------------------------------------------ ## 3695 ## Report this to the AC_PACKAGE_NAME lists. ## 3696 ## ------------------------------------------ ## 3697 _ASBOX 3698 ) | 3699 sed "s/^/$as_me: WARNING: /" >&2 3700 ;; 3701 esac 3702 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3703 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3704 if test "${ac_cv_header_minix_config_h+set}" = set; then 3705 echo $ECHO_N "(cached) $ECHO_C" >&6 3706 else 3707 ac_cv_header_minix_config_h=$ac_header_preproc 3708 fi 3709 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3710 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3711 3712 fi 3713 if test $ac_cv_header_minix_config_h = yes; then 3714 MINIX=yes 3715 else 3716 MINIX= 3717 fi 3718 3719 3720 if test "$MINIX" = yes; then 3721 3722 cat >>confdefs.h <<\_ACEOF 3723 #define _POSIX_SOURCE 1 3724 _ACEOF 3725 3726 3727 cat >>confdefs.h <<\_ACEOF 3728 #define _POSIX_1_SOURCE 2 3729 _ACEOF 3730 3731 3732 cat >>confdefs.h <<\_ACEOF 3733 #define _MINIX 1 3734 _ACEOF 3735 3736 fi 3737 3738 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3739 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3740 if test "${ac_cv_prog_cc_stdc+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742 else 3743 ac_cv_prog_cc_stdc=no 3744 ac_save_CFLAGS="$CFLAGS" 3745 # Don't try gcc -ansi; that turns off useful extensions and 3746 # breaks some systems' header files. 3747 # AIX -qlanglvl=ansi 3748 # Ultrix and OSF/1 -std1 3749 # HP-UX -Aa -D_HPUX_SOURCE 3750 # SVR4 -Xc 3751 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc 3752 do 3753 CFLAGS="$ac_save_CFLAGS $ac_arg" 3754 cat >conftest.$ac_ext <<_ACEOF 3755 /* confdefs.h. */ 3756 _ACEOF 3757 cat confdefs.h >>conftest.$ac_ext 3758 cat >>conftest.$ac_ext <<_ACEOF 3759 /* end confdefs.h. */ 3760 #if !defined(__STDC__) || __STDC__ != 1 3761 choke me 3762 #endif 3763 3764 int 3765 main () 3766 { 3767 int test (int i, double x); 3768 struct s1 {int (*f) (int a);}; 3769 struct s2 {int (*f) (double a);}; 3770 ; 3771 return 0; 3772 } 3773 _ACEOF 3774 rm -f conftest.$ac_objext 3775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3776 (eval $ac_compile) 2>conftest.er1 3777 ac_status=$? 3778 grep -v '^ *+' conftest.er1 >conftest.err 3779 rm -f conftest.er1 3780 cat conftest.err >&5 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } && 3783 { ac_try='test -z "$ac_c_werror_flag" 3784 || test ! -s conftest.err' 3785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 (eval $ac_try) 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); }; } && 3790 { ac_try='test -s conftest.$ac_objext' 3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3792 (eval $ac_try) 2>&5 3793 ac_status=$? 3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); }; }; then 3796 ac_cv_prog_cc_stdc="$ac_arg"; break 3797 else 3798 echo "$as_me: failed program was:" >&5 3799 sed 's/^/| /' conftest.$ac_ext >&5 3800 3801 fi 3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3803 done 3804 CFLAGS="$ac_save_CFLAGS" 3805 3806 fi 3807 3808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3810 case "x$ac_cv_prog_cc_stdc" in 3811 x|xno) ;; 3812 *) CC="$CC $ac_cv_prog_cc_stdc" ;; 3813 esac 3814 3815 3816 echo "$as_me:$LINENO: checking for function prototypes" >&5 3817 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3818 if test "$ac_cv_prog_cc_stdc" != no; then 3819 echo "$as_me:$LINENO: result: yes" >&5 3820 echo "${ECHO_T}yes" >&6 3821 cat >>confdefs.h <<\_ACEOF 3822 #define PROTOTYPES 1 3823 _ACEOF 3824 3825 U= ANSI2KNR= 3826 else 3827 echo "$as_me:$LINENO: result: no" >&5 3828 echo "${ECHO_T}no" >&6 3829 U=_ ANSI2KNR=ansi2knr 3830 fi 3831 3832 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2681 3833 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2682 3834 if test "${ac_cv_c_const+set}" = set; then … … 2684 3836 else 2685 3837 cat >conftest.$ac_ext <<_ACEOF 2686 #line 2686 "configure" 2687 #include "confdefs.h" 3838 /* confdefs.h. */ 3839 _ACEOF 3840 cat confdefs.h >>conftest.$ac_ext 3841 cat >>conftest.$ac_ext <<_ACEOF 3842 /* end confdefs.h. */ 2688 3843 2689 3844 int … … 2742 3897 _ACEOF 2743 3898 rm -f conftest.$ac_objext 2744 if { (eval echo "$as_me:2744: \"$ac_compile\"") >&5 2745 (eval $ac_compile) 2>&5 2746 ac_status=$? 2747 echo "$as_me:2747: \$? = $ac_status" >&5 3899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3900 (eval $ac_compile) 2>conftest.er1 3901 ac_status=$? 3902 grep -v '^ *+' conftest.er1 >conftest.err 3903 rm -f conftest.er1 3904 cat conftest.err >&5 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 3906 (exit $ac_status); } && 2749 { ac_try='test -s conftest.$ac_objext' 2750 { (eval echo "$as_me:2750: \"$ac_try\"") >&5 2751 (eval $ac_try) 2>&5 2752 ac_status=$? 2753 echo "$as_me:2753: \$? = $ac_status" >&5 3907 { ac_try='test -z "$ac_c_werror_flag" 3908 || test ! -s conftest.err' 3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3910 (eval $ac_try) 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; } && 3914 { ac_try='test -s conftest.$ac_objext' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 3919 (exit $ac_status); }; }; then 2755 3920 ac_cv_c_const=yes 2756 3921 else 2757 3922 echo "$as_me: failed program was:" >&5 2758 cat conftest.$ac_ext >&5 3923 sed 's/^/| /' conftest.$ac_ext >&5 3924 2759 3925 ac_cv_c_const=no 2760 3926 fi 2761 rm -f conftest. $ac_objext conftest.$ac_ext2762 fi 2763 echo "$as_me: 2763: result: $ac_cv_c_const" >&53927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3928 fi 3929 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2764 3930 echo "${ECHO_T}$ac_cv_c_const" >&6 2765 3931 if test $ac_cv_c_const = no; then 2766 3932 2767 cat >>confdefs.h <<\ EOF3933 cat >>confdefs.h <<\_ACEOF 2768 3934 #define const 2769 EOF 2770 2771 fi 2772 2773 echo "$as_me:2773: checking for ANSI C header files" >&5 2774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2775 if test "${ac_cv_header_stdc+set}" = set; then 2776 echo $ECHO_N "(cached) $ECHO_C" >&6 2777 else 2778 cat >conftest.$ac_ext <<_ACEOF 2779 #line 2779 "configure" 2780 #include "confdefs.h" 2781 #include <stdlib.h> 2782 #include <stdarg.h> 2783 #include <string.h> 2784 #include <float.h> 2785 2786 _ACEOF 2787 if { (eval echo "$as_me:2787: \"$ac_cpp conftest.$ac_ext\"") >&5 2788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2789 ac_status=$? 2790 egrep -v '^ *\+' conftest.er1 >conftest.err 2791 rm -f conftest.er1 2792 cat conftest.err >&5 2793 echo "$as_me:2793: \$? = $ac_status" >&5 2794 (exit $ac_status); } >/dev/null; then 2795 if test -s conftest.err; then 2796 ac_cpp_err=$ac_c_preproc_warn_flag 2797 else 2798 ac_cpp_err= 2799 fi 2800 else 2801 ac_cpp_err=yes 2802 fi 2803 if test -z "$ac_cpp_err"; then 2804 ac_cv_header_stdc=yes 2805 else 2806 echo "$as_me: failed program was:" >&5 2807 cat conftest.$ac_ext >&5 2808 ac_cv_header_stdc=no 2809 fi 2810 rm -f conftest.err conftest.$ac_ext 2811 2812 if test $ac_cv_header_stdc = yes; then 2813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2814 cat >conftest.$ac_ext <<_ACEOF 2815 #line 2815 "configure" 2816 #include "confdefs.h" 2817 #include <string.h> 2818 2819 _ACEOF 2820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2821 egrep "memchr" >/dev/null 2>&1; then 2822 : 2823 else 2824 ac_cv_header_stdc=no 2825 fi 2826 rm -f conftest* 2827 2828 fi 2829 2830 if test $ac_cv_header_stdc = yes; then 2831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2832 cat >conftest.$ac_ext <<_ACEOF 2833 #line 2833 "configure" 2834 #include "confdefs.h" 2835 #include <stdlib.h> 2836 2837 _ACEOF 2838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2839 egrep "free" >/dev/null 2>&1; then 2840 : 2841 else 2842 ac_cv_header_stdc=no 2843 fi 2844 rm -f conftest* 2845 2846 fi 2847 2848 if test $ac_cv_header_stdc = yes; then 2849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2850 if test "$cross_compiling" = yes; then 2851 : 2852 else 2853 cat >conftest.$ac_ext <<_ACEOF 2854 #line 2854 "configure" 2855 #include "confdefs.h" 2856 #include <ctype.h> 2857 #if ((' ' & 0x0FF) == 0x020) 2858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2860 #else 2861 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2862 || ('j' <= (c) && (c) <= 'r') \ 2863 || ('s' <= (c) && (c) <= 'z')) 2864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2865 #endif 2866 2867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2868 int 2869 main () 2870 { 2871 int i; 2872 for (i = 0; i < 256; i++) 2873 if (XOR (islower (i), ISLOWER (i)) 2874 || toupper (i) != TOUPPER (i)) 2875 exit(2); 2876 exit (0); 2877 } 2878 _ACEOF 2879 rm -f conftest$ac_exeext 2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5 2881 (eval $ac_link) 2>&5 2882 ac_status=$? 2883 echo "$as_me:2883: \$? = $ac_status" >&5 2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2885 { (eval echo "$as_me:2885: \"$ac_try\"") >&5 2886 (eval $ac_try) 2>&5 2887 ac_status=$? 2888 echo "$as_me:2888: \$? = $ac_status" >&5 2889 (exit $ac_status); }; }; then 2890 : 2891 else 2892 echo "$as_me: program exited with status $ac_status" >&5 2893 echo "$as_me: failed program was:" >&5 2894 cat conftest.$ac_ext >&5 2895 ac_cv_header_stdc=no 2896 fi 2897 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2898 fi 2899 fi 2900 fi 2901 echo "$as_me:2901: result: $ac_cv_header_stdc" >&5 2902 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2903 if test $ac_cv_header_stdc = yes; then 2904 2905 cat >>confdefs.h <<\EOF 2906 #define STDC_HEADERS 1 2907 EOF 2908 2909 fi 2910 2911 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2912 do 2913 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2914 echo "$as_me:2914: checking for $ac_header" >&5 2915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2916 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2917 echo $ECHO_N "(cached) $ECHO_C" >&6 2918 else 2919 cat >conftest.$ac_ext <<_ACEOF 2920 #line 2920 "configure" 2921 #include "confdefs.h" 2922 #include <$ac_header> 2923 _ACEOF 2924 if { (eval echo "$as_me:2924: \"$ac_cpp conftest.$ac_ext\"") >&5 2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2926 ac_status=$? 2927 egrep -v '^ *\+' conftest.er1 >conftest.err 2928 rm -f conftest.er1 2929 cat conftest.err >&5 2930 echo "$as_me:2930: \$? = $ac_status" >&5 2931 (exit $ac_status); } >/dev/null; then 2932 if test -s conftest.err; then 2933 ac_cpp_err=$ac_c_preproc_warn_flag 2934 else 2935 ac_cpp_err= 2936 fi 2937 else 2938 ac_cpp_err=yes 2939 fi 2940 if test -z "$ac_cpp_err"; then 2941 eval "$ac_ac_Header=yes" 2942 else 2943 echo "$as_me: failed program was:" >&5 2944 cat conftest.$ac_ext >&5 2945 eval "$ac_ac_Header=no" 2946 fi 2947 rm -f conftest.err conftest.$ac_ext 2948 fi 2949 echo "$as_me:2949: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2950 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2951 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2952 cat >>confdefs.h <<EOF 2953 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2954 EOF 2955 2956 fi 2957 done 2958 2959 echo "$as_me:2959: checking for off_t" >&5 3935 _ACEOF 3936 3937 fi 3938 3939 echo "$as_me:$LINENO: checking for off_t" >&5 2960 3940 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2961 3941 if test "${ac_cv_type_off_t+set}" = set; then … … 2963 3943 else 2964 3944 cat >conftest.$ac_ext <<_ACEOF 2965 #line 2965 "configure" 2966 #include "confdefs.h" 3945 /* confdefs.h. */ 3946 _ACEOF 3947 cat confdefs.h >>conftest.$ac_ext 3948 cat >>conftest.$ac_ext <<_ACEOF 3949 /* end confdefs.h. */ 2967 3950 $ac_includes_default 2968 3951 int … … 2978 3961 _ACEOF 2979 3962 rm -f conftest.$ac_objext 2980 if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5 2981 (eval $ac_compile) 2>&5 2982 ac_status=$? 2983 echo "$as_me:2983: \$? = $ac_status" >&5 3963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3964 (eval $ac_compile) 2>conftest.er1 3965 ac_status=$? 3966 grep -v '^ *+' conftest.er1 >conftest.err 3967 rm -f conftest.er1 3968 cat conftest.err >&5 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 3970 (exit $ac_status); } && 2985 { ac_try='test -s conftest.$ac_objext' 2986 { (eval echo "$as_me:2986: \"$ac_try\"") >&5 2987 (eval $ac_try) 2>&5 2988 ac_status=$? 2989 echo "$as_me:2989: \$? = $ac_status" >&5 3971 { ac_try='test -z "$ac_c_werror_flag" 3972 || test ! -s conftest.err' 3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3974 (eval $ac_try) 2>&5 3975 ac_status=$? 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); }; } && 3978 { ac_try='test -s conftest.$ac_objext' 3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3980 (eval $ac_try) 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 3983 (exit $ac_status); }; }; then 2991 3984 ac_cv_type_off_t=yes 2992 3985 else 2993 3986 echo "$as_me: failed program was:" >&5 2994 cat conftest.$ac_ext >&5 3987 sed 's/^/| /' conftest.$ac_ext >&5 3988 2995 3989 ac_cv_type_off_t=no 2996 3990 fi 2997 rm -f conftest. $ac_objext conftest.$ac_ext2998 fi 2999 echo "$as_me: 2999: result: $ac_cv_type_off_t" >&53991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3992 fi 3993 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3000 3994 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3001 3995 if test $ac_cv_type_off_t = yes; then … … 3003 3997 else 3004 3998 3005 cat >>confdefs.h << EOF3999 cat >>confdefs.h <<_ACEOF 3006 4000 #define off_t long 3007 EOF3008 3009 fi 3010 3011 echo "$as_me: 3011: checking for size_t" >&54001 _ACEOF 4002 4003 fi 4004 4005 echo "$as_me:$LINENO: checking for size_t" >&5 3012 4006 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3013 4007 if test "${ac_cv_type_size_t+set}" = set; then … … 3015 4009 else 3016 4010 cat >conftest.$ac_ext <<_ACEOF 3017 #line 3017 "configure" 3018 #include "confdefs.h" 4011 /* confdefs.h. */ 4012 _ACEOF 4013 cat confdefs.h >>conftest.$ac_ext 4014 cat >>conftest.$ac_ext <<_ACEOF 4015 /* end confdefs.h. */ 3019 4016 $ac_includes_default 3020 4017 int … … 3030 4027 _ACEOF 3031 4028 rm -f conftest.$ac_objext 3032 if { (eval echo "$as_me:3032: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>&5 3034 ac_status=$? 3035 echo "$as_me:3035: \$? = $ac_status" >&5 4029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4030 (eval $ac_compile) 2>conftest.er1 4031 ac_status=$? 4032 grep -v '^ *+' conftest.er1 >conftest.err 4033 rm -f conftest.er1 4034 cat conftest.err >&5 4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 4036 (exit $ac_status); } && 3037 { ac_try='test -s conftest.$ac_objext' 3038 { (eval echo "$as_me:3038: \"$ac_try\"") >&5 3039 (eval $ac_try) 2>&5 3040 ac_status=$? 3041 echo "$as_me:3041: \$? = $ac_status" >&5 4037 { ac_try='test -z "$ac_c_werror_flag" 4038 || test ! -s conftest.err' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; } && 4044 { ac_try='test -s conftest.$ac_objext' 4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4046 (eval $ac_try) 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 4049 (exit $ac_status); }; }; then 3043 4050 ac_cv_type_size_t=yes 3044 4051 else 3045 4052 echo "$as_me: failed program was:" >&5 3046 cat conftest.$ac_ext >&5 4053 sed 's/^/| /' conftest.$ac_ext >&5 4054 3047 4055 ac_cv_type_size_t=no 3048 4056 fi 3049 rm -f conftest. $ac_objext conftest.$ac_ext3050 fi 3051 echo "$as_me: 3051: result: $ac_cv_type_size_t" >&54057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4058 fi 4059 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3052 4060 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3053 4061 if test $ac_cv_type_size_t = yes; then … … 3055 4063 else 3056 4064 3057 cat >>confdefs.h << EOF4065 cat >>confdefs.h <<_ACEOF 3058 4066 #define size_t unsigned 3059 EOF3060 3061 fi 3062 3063 echo "$as_me: 3063: checking whether time.h and sys/time.h may both be included" >&54067 _ACEOF 4068 4069 fi 4070 4071 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 3064 4072 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3065 4073 if test "${ac_cv_header_time+set}" = set; then … … 3067 4075 else 3068 4076 cat >conftest.$ac_ext <<_ACEOF 3069 #line 3069 "configure" 3070 #include "confdefs.h" 4077 /* confdefs.h. */ 4078 _ACEOF 4079 cat confdefs.h >>conftest.$ac_ext 4080 cat >>conftest.$ac_ext <<_ACEOF 4081 /* end confdefs.h. */ 3071 4082 #include <sys/types.h> 3072 4083 #include <sys/time.h> … … 3076 4087 main () 3077 4088 { 3078 struct tm *tp; 4089 if ((struct tm *) 0) 4090 return 0; 3079 4091 ; 3080 4092 return 0; … … 3082 4094 _ACEOF 3083 4095 rm -f conftest.$ac_objext 3084 if { (eval echo "$as_me:3084: \"$ac_compile\"") >&5 3085 (eval $ac_compile) 2>&5 3086 ac_status=$? 3087 echo "$as_me:3087: \$? = $ac_status" >&5 4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4097 (eval $ac_compile) 2>conftest.er1 4098 ac_status=$? 4099 grep -v '^ *+' conftest.er1 >conftest.err 4100 rm -f conftest.er1 4101 cat conftest.err >&5 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 4103 (exit $ac_status); } && 3089 { ac_try='test -s conftest.$ac_objext' 3090 { (eval echo "$as_me:3090: \"$ac_try\"") >&5 3091 (eval $ac_try) 2>&5 3092 ac_status=$? 3093 echo "$as_me:3093: \$? = $ac_status" >&5 4104 { ac_try='test -z "$ac_c_werror_flag" 4105 || test ! -s conftest.err' 4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4107 (eval $ac_try) 2>&5 4108 ac_status=$? 4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4110 (exit $ac_status); }; } && 4111 { ac_try='test -s conftest.$ac_objext' 4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4113 (eval $ac_try) 2>&5 4114 ac_status=$? 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 4116 (exit $ac_status); }; }; then 3095 4117 ac_cv_header_time=yes 3096 4118 else 3097 4119 echo "$as_me: failed program was:" >&5 3098 cat conftest.$ac_ext >&5 4120 sed 's/^/| /' conftest.$ac_ext >&5 4121 3099 4122 ac_cv_header_time=no 3100 4123 fi 3101 rm -f conftest. $ac_objext conftest.$ac_ext3102 fi 3103 echo "$as_me: 3103: result: $ac_cv_header_time" >&54124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4125 fi 4126 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3104 4127 echo "${ECHO_T}$ac_cv_header_time" >&6 3105 4128 if test $ac_cv_header_time = yes; then 3106 4129 3107 cat >>confdefs.h <<\ EOF4130 cat >>confdefs.h <<\_ACEOF 3108 4131 #define TIME_WITH_SYS_TIME 1 3109 EOF3110 3111 fi 3112 3113 echo "$as_me: 3113: checking whether struct tm is in sys/time.h or time.h" >&54132 _ACEOF 4133 4134 fi 4135 4136 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 3114 4137 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3115 4138 if test "${ac_cv_struct_tm+set}" = set; then … … 3117 4140 else 3118 4141 cat >conftest.$ac_ext <<_ACEOF 3119 #line 3119 "configure" 3120 #include "confdefs.h" 4142 /* confdefs.h. */ 4143 _ACEOF 4144 cat confdefs.h >>conftest.$ac_ext 4145 cat >>conftest.$ac_ext <<_ACEOF 4146 /* end confdefs.h. */ 3121 4147 #include <sys/types.h> 3122 4148 #include <time.h> … … 3131 4157 _ACEOF 3132 4158 rm -f conftest.$ac_objext 3133 if { (eval echo "$as_me:3133: \"$ac_compile\"") >&5 3134 (eval $ac_compile) 2>&5 3135 ac_status=$? 3136 echo "$as_me:3136: \$? = $ac_status" >&5 4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4160 (eval $ac_compile) 2>conftest.er1 4161 ac_status=$? 4162 grep -v '^ *+' conftest.er1 >conftest.err 4163 rm -f conftest.er1 4164 cat conftest.err >&5 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 4166 (exit $ac_status); } && 3138 { ac_try='test -s conftest.$ac_objext' 3139 { (eval echo "$as_me:3139: \"$ac_try\"") >&5 3140 (eval $ac_try) 2>&5 3141 ac_status=$? 3142 echo "$as_me:3142: \$? = $ac_status" >&5 4167 { ac_try='test -z "$ac_c_werror_flag" 4168 || test ! -s conftest.err' 4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4170 (eval $ac_try) 2>&5 4171 ac_status=$? 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); }; } && 4174 { ac_try='test -s conftest.$ac_objext' 4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4176 (eval $ac_try) 2>&5 4177 ac_status=$? 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 4179 (exit $ac_status); }; }; then 3144 4180 ac_cv_struct_tm=time.h 3145 4181 else 3146 4182 echo "$as_me: failed program was:" >&5 3147 cat conftest.$ac_ext >&5 4183 sed 's/^/| /' conftest.$ac_ext >&5 4184 3148 4185 ac_cv_struct_tm=sys/time.h 3149 4186 fi 3150 rm -f conftest. $ac_objext conftest.$ac_ext3151 fi 3152 echo "$as_me: 3152: result: $ac_cv_struct_tm" >&54187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4188 fi 4189 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 3153 4190 echo "${ECHO_T}$ac_cv_struct_tm" >&6 3154 4191 if test $ac_cv_struct_tm = sys/time.h; then 3155 4192 3156 cat >>confdefs.h <<\ EOF4193 cat >>confdefs.h <<\_ACEOF 3157 4194 #define TM_IN_SYS_TIME 1 3158 EOF 3159 3160 fi 4195 _ACEOF 4196 4197 fi 4198 3161 4199 3162 4200 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 3163 4201 cat >conftest.$ac_ext <<_ACEOF 3164 #line 3164 "configure" 3165 #include "confdefs.h" 4202 /* confdefs.h. */ 4203 _ACEOF 4204 cat confdefs.h >>conftest.$ac_ext 4205 cat >>conftest.$ac_ext <<_ACEOF 4206 /* end confdefs.h. */ 3166 4207 #include <stdio.h> 3167 4208 … … 3175 4216 _ACEOF 3176 4217 rm -f conftest.$ac_objext 3177 if { (eval echo "$as_me:3177: \"$ac_compile\"") >&5 3178 (eval $ac_compile) 2>&5 3179 ac_status=$? 3180 echo "$as_me:3180: \$? = $ac_status" >&5 4218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4219 (eval $ac_compile) 2>conftest.er1 4220 ac_status=$? 4221 grep -v '^ *+' conftest.er1 >conftest.err 4222 rm -f conftest.er1 4223 cat conftest.err >&5 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 4225 (exit $ac_status); } && 3182 { ac_try='test -s conftest.$ac_objext' 3183 { (eval echo "$as_me:3183: \"$ac_try\"") >&5 3184 (eval $ac_try) 2>&5 3185 ac_status=$? 3186 echo "$as_me:3186: \$? = $ac_status" >&5 4226 { ac_try='test -z "$ac_c_werror_flag" 4227 || test ! -s conftest.err' 4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4229 (eval $ac_try) 2>&5 4230 ac_status=$? 4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4232 (exit $ac_status); }; } && 4233 { ac_try='test -s conftest.$ac_objext' 4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4235 (eval $ac_try) 2>&5 4236 ac_status=$? 4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 4238 (exit $ac_status); }; }; then 3188 4239 : 3189 4240 else 3190 4241 echo "$as_me: failed program was:" >&5 3191 cat conftest.$ac_ext >&5 4242 sed 's/^/| /' conftest.$ac_ext >&5 4243 3192 4244 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3193 4245 fi 3194 rm -f conftest.$ac_objext conftest.$ac_ext 3195 fi 3196 3197 echo "$as_me:3197: checking for main in -lm" >&5 4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4247 fi 4248 4249 4250 4251 echo "$as_me:$LINENO: checking for main in -lm" >&5 3198 4252 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3199 4253 if test "${ac_cv_lib_m_main+set}" = set; then … … 3203 4257 LIBS="-lm $LIBS" 3204 4258 cat >conftest.$ac_ext <<_ACEOF 3205 #line 3205 "configure" 3206 #include "confdefs.h" 4259 /* confdefs.h. */ 4260 _ACEOF 4261 cat confdefs.h >>conftest.$ac_ext 4262 cat >>conftest.$ac_ext <<_ACEOF 4263 /* end confdefs.h. */ 4264 3207 4265 3208 4266 int … … 3215 4273 _ACEOF 3216 4274 rm -f conftest.$ac_objext conftest$ac_exeext 3217 if { (eval echo "$as_me:3217: \"$ac_link\"") >&5 3218 (eval $ac_link) 2>&5 3219 ac_status=$? 3220 echo "$as_me:3220: \$? = $ac_status" >&5 4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4276 (eval $ac_link) 2>conftest.er1 4277 ac_status=$? 4278 grep -v '^ *+' conftest.er1 >conftest.err 4279 rm -f conftest.er1 4280 cat conftest.err >&5 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 4282 (exit $ac_status); } && 3222 { ac_try='test -s conftest$ac_exeext' 3223 { (eval echo "$as_me:3223: \"$ac_try\"") >&5 3224 (eval $ac_try) 2>&5 3225 ac_status=$? 3226 echo "$as_me:3226: \$? = $ac_status" >&5 4283 { ac_try='test -z "$ac_c_werror_flag" 4284 || test ! -s conftest.err' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; } && 4290 { ac_try='test -s conftest$ac_exeext' 4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4292 (eval $ac_try) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 4295 (exit $ac_status); }; }; then 3228 4296 ac_cv_lib_m_main=yes 3229 4297 else 3230 4298 echo "$as_me: failed program was:" >&5 3231 cat conftest.$ac_ext >&5 4299 sed 's/^/| /' conftest.$ac_ext >&5 4300 3232 4301 ac_cv_lib_m_main=no 3233 4302 fi 3234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4303 rm -f conftest.err conftest.$ac_objext \ 4304 conftest$ac_exeext conftest.$ac_ext 3235 4305 LIBS=$ac_check_lib_save_LIBS 3236 4306 fi 3237 echo "$as_me: 3237: result: $ac_cv_lib_m_main" >&54307 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 3238 4308 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3239 4309 if test $ac_cv_lib_m_main = yes; then 3240 cat >>confdefs.h << EOF4310 cat >>confdefs.h <<_ACEOF 3241 4311 #define HAVE_LIBM 1 3242 EOF4312 _ACEOF 3243 4313 3244 4314 LIBS="-lm $LIBS" 3245 4315 3246 4316 fi 4317 4318 4319 4320 4321 4322 3247 4323 3248 4324 ac_header_dirent=no 3249 4325 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3250 a c_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`3251 echo "$as_me: 3251: checking for $ac_hdr that defines DIR" >&54326 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4327 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3252 4328 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3253 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3254 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 3255 4331 else 3256 4332 cat >conftest.$ac_ext <<_ACEOF 3257 #line 3257 "configure" 3258 #include "confdefs.h" 4333 /* confdefs.h. */ 4334 _ACEOF 4335 cat confdefs.h >>conftest.$ac_ext 4336 cat >>conftest.$ac_ext <<_ACEOF 4337 /* end confdefs.h. */ 3259 4338 #include <sys/types.h> 3260 4339 #include <$ac_hdr> … … 3263 4342 main () 3264 4343 { 3265 DIR *dirp = 0; 4344 if ((DIR *) 0) 4345 return 0; 3266 4346 ; 3267 4347 return 0; … … 3269 4349 _ACEOF 3270 4350 rm -f conftest.$ac_objext 3271 if { (eval echo "$as_me:3271: \"$ac_compile\"") >&5 3272 (eval $ac_compile) 2>&5 3273 ac_status=$? 3274 echo "$as_me:3274: \$? = $ac_status" >&5 4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4352 (eval $ac_compile) 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 4358 (exit $ac_status); } && 3276 { ac_try='test -s conftest.$ac_objext' 3277 { (eval echo "$as_me:3277: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 4359 { ac_try='test -z "$ac_c_werror_flag" 4360 || test ! -s conftest.err' 4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4362 (eval $ac_try) 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; } && 4366 { ac_try='test -s conftest.$ac_objext' 4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4368 (eval $ac_try) 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 4371 (exit $ac_status); }; }; then 3282 eval "$a c_ac_Header=yes"4372 eval "$as_ac_Header=yes" 3283 4373 else 3284 4374 echo "$as_me: failed program was:" >&5 3285 cat conftest.$ac_ext >&5 3286 eval "$ac_ac_Header=no" 3287 fi 3288 rm -f conftest.$ac_objext conftest.$ac_ext 3289 fi 3290 echo "$as_me:3290: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3291 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3292 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3293 cat >>confdefs.h <<EOF 3294 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3295 EOF 4375 sed 's/^/| /' conftest.$ac_ext >&5 4376 4377 eval "$as_ac_Header=no" 4378 fi 4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4380 fi 4381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4384 cat >>confdefs.h <<_ACEOF 4385 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4386 _ACEOF 3296 4387 3297 4388 ac_header_dirent=$ac_hdr; break … … 3301 4392 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3302 4393 if test $ac_header_dirent = dirent.h; then 3303 echo "$as_me: 3303: checking for opendir in -ldir" >&53304 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&63305 if test "${ac_cv_ lib_dir_opendir+set}" = set; then4394 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4396 if test "${ac_cv_search_opendir+set}" = set; then 3306 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 4398 else 3308 ac_ check_lib_save_LIBS=$LIBS3309 LIBS="-ldir $LIBS" 4399 ac_func_search_save_LIBS=$LIBS 4400 ac_cv_search_opendir=no 3310 4401 cat >conftest.$ac_ext <<_ACEOF 3311 #line 3311 "configure" 3312 #include "confdefs.h" 4402 /* confdefs.h. */ 4403 _ACEOF 4404 cat confdefs.h >>conftest.$ac_ext 4405 cat >>conftest.$ac_ext <<_ACEOF 4406 /* end confdefs.h. */ 3313 4407 3314 4408 /* Override any gcc2 internal prototype to avoid an error. */ … … 3328 4422 _ACEOF 3329 4423 rm -f conftest.$ac_objext conftest$ac_exeext 3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5 3331 (eval $ac_link) 2>&5 3332 ac_status=$? 3333 echo "$as_me:3333: \$? = $ac_status" >&5 4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4425 (eval $ac_link) 2>conftest.er1 4426 ac_status=$? 4427 grep -v '^ *+' conftest.er1 >conftest.err 4428 rm -f conftest.er1 4429 cat conftest.err >&5 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 4431 (exit $ac_status); } && 3335 { ac_try='test -s conftest$ac_exeext' 3336 { (eval echo "$as_me:3336: \"$ac_try\"") >&5 3337 (eval $ac_try) 2>&5 3338 ac_status=$? 3339 echo "$as_me:3339: \$? = $ac_status" >&5 4432 { ac_try='test -z "$ac_c_werror_flag" 4433 || test ! -s conftest.err' 4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4435 (eval $ac_try) 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; } && 4439 { ac_try='test -s conftest$ac_exeext' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3340 4444 (exit $ac_status); }; }; then 3341 ac_cv_ lib_dir_opendir=yes4445 ac_cv_search_opendir="none required" 3342 4446 else 3343 4447 echo "$as_me: failed program was:" >&5 3344 cat conftest.$ac_ext >&5 3345 ac_cv_lib_dir_opendir=no 3346 fi 3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3348 LIBS=$ac_check_lib_save_LIBS 3349 fi 3350 echo "$as_me:3350: result: $ac_cv_lib_dir_opendir" >&5 3351 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3352 if test $ac_cv_lib_dir_opendir = yes; then 3353 LIBS="$LIBS -ldir" 3354 fi 3355 3356 else 3357 echo "$as_me:3357: checking for opendir in -lx" >&5 3358 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3359 if test "${ac_cv_lib_x_opendir+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361 else 3362 ac_check_lib_save_LIBS=$LIBS 3363 LIBS="-lx $LIBS" 3364 cat >conftest.$ac_ext <<_ACEOF 3365 #line 3365 "configure" 3366 #include "confdefs.h" 4448 sed 's/^/| /' conftest.$ac_ext >&5 4449 4450 fi 4451 rm -f conftest.err conftest.$ac_objext \ 4452 conftest$ac_exeext conftest.$ac_ext 4453 if test "$ac_cv_search_opendir" = no; then 4454 for ac_lib in dir; do 4455 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4456 cat >conftest.$ac_ext <<_ACEOF 4457 /* confdefs.h. */ 4458 _ACEOF 4459 cat confdefs.h >>conftest.$ac_ext 4460 cat >>conftest.$ac_ext <<_ACEOF 4461 /* end confdefs.h. */ 3367 4462 3368 4463 /* Override any gcc2 internal prototype to avoid an error. */ … … 3382 4477 _ACEOF 3383 4478 rm -f conftest.$ac_objext conftest$ac_exeext 3384 if { (eval echo "$as_me:3384: \"$ac_link\"") >&5 3385 (eval $ac_link) 2>&5 3386 ac_status=$? 3387 echo "$as_me:3387: \$? = $ac_status" >&5 4479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4480 (eval $ac_link) 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 4486 (exit $ac_status); } && 3389 { ac_try='test -s conftest$ac_exeext' 3390 { (eval echo "$as_me:3390: \"$ac_try\"") >&5 3391 (eval $ac_try) 2>&5 3392 ac_status=$? 3393 echo "$as_me:3393: \$? = $ac_status" >&5 4487 { ac_try='test -z "$ac_c_werror_flag" 4488 || test ! -s conftest.err' 4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4490 (eval $ac_try) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; } && 4494 { ac_try='test -s conftest$ac_exeext' 4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4496 (eval $ac_try) 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 4499 (exit $ac_status); }; }; then 3395 ac_cv_lib_x_opendir=yes 4500 ac_cv_search_opendir="-l$ac_lib" 4501 break 3396 4502 else 3397 4503 echo "$as_me: failed program was:" >&5 3398 cat conftest.$ac_ext >&5 3399 ac_cv_lib_x_opendir=no 3400 fi 3401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3402 LIBS=$ac_check_lib_save_LIBS 3403 fi 3404 echo "$as_me:3404: result: $ac_cv_lib_x_opendir" >&5 3405 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3406 if test $ac_cv_lib_x_opendir = yes; then 3407 LIBS="$LIBS -lx" 3408 fi 3409 3410 fi 3411 3412 echo "$as_me:3412: checking for ANSI C header files" >&5 4504 sed 's/^/| /' conftest.$ac_ext >&5 4505 4506 fi 4507 rm -f conftest.err conftest.$ac_objext \ 4508 conftest$ac_exeext conftest.$ac_ext 4509 done 4510 fi 4511 LIBS=$ac_func_search_save_LIBS 4512 fi 4513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4514 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4515 if test "$ac_cv_search_opendir" != no; then 4516 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4517 4518 fi 4519 4520 else 4521 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4523 if test "${ac_cv_search_opendir+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525 else 4526 ac_func_search_save_LIBS=$LIBS 4527 ac_cv_search_opendir=no 4528 cat >conftest.$ac_ext <<_ACEOF 4529 /* confdefs.h. */ 4530 _ACEOF 4531 cat confdefs.h >>conftest.$ac_ext 4532 cat >>conftest.$ac_ext <<_ACEOF 4533 /* end confdefs.h. */ 4534 4535 /* Override any gcc2 internal prototype to avoid an error. */ 4536 #ifdef __cplusplus 4537 extern "C" 4538 #endif 4539 /* We use char because int might match the return type of a gcc2 4540 builtin and then its argument prototype would still apply. */ 4541 char opendir (); 4542 int 4543 main () 4544 { 4545 opendir (); 4546 ; 4547 return 0; 4548 } 4549 _ACEOF 4550 rm -f conftest.$ac_objext conftest$ac_exeext 4551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4552 (eval $ac_link) 2>conftest.er1 4553 ac_status=$? 4554 grep -v '^ *+' conftest.er1 >conftest.err 4555 rm -f conftest.er1 4556 cat conftest.err >&5 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } && 4559 { ac_try='test -z "$ac_c_werror_flag" 4560 || test ! -s conftest.err' 4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4562 (eval $ac_try) 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); }; } && 4566 { ac_try='test -s conftest$ac_exeext' 4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4568 (eval $ac_try) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 ac_cv_search_opendir="none required" 4573 else 4574 echo "$as_me: failed program was:" >&5 4575 sed 's/^/| /' conftest.$ac_ext >&5 4576 4577 fi 4578 rm -f conftest.err conftest.$ac_objext \ 4579 conftest$ac_exeext conftest.$ac_ext 4580 if test "$ac_cv_search_opendir" = no; then 4581 for ac_lib in x; do 4582 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4583 cat >conftest.$ac_ext <<_ACEOF 4584 /* confdefs.h. */ 4585 _ACEOF 4586 cat confdefs.h >>conftest.$ac_ext 4587 cat >>conftest.$ac_ext <<_ACEOF 4588 /* end confdefs.h. */ 4589 4590 /* Override any gcc2 internal prototype to avoid an error. */ 4591 #ifdef __cplusplus 4592 extern "C" 4593 #endif 4594 /* We use char because int might match the return type of a gcc2 4595 builtin and then its argument prototype would still apply. */ 4596 char opendir (); 4597 int 4598 main () 4599 { 4600 opendir (); 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 rm -f conftest.$ac_objext conftest$ac_exeext 4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4607 (eval $ac_link) 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -z "$ac_c_werror_flag" 4615 || test ! -s conftest.err' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest$ac_exeext' 4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4623 (eval $ac_try) 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; }; then 4627 ac_cv_search_opendir="-l$ac_lib" 4628 break 4629 else 4630 echo "$as_me: failed program was:" >&5 4631 sed 's/^/| /' conftest.$ac_ext >&5 4632 4633 fi 4634 rm -f conftest.err conftest.$ac_objext \ 4635 conftest$ac_exeext conftest.$ac_ext 4636 done 4637 fi 4638 LIBS=$ac_func_search_save_LIBS 4639 fi 4640 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4641 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4642 if test "$ac_cv_search_opendir" != no; then 4643 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4644 4645 fi 4646 4647 fi 4648 4649 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3413 4650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3414 4651 if test "${ac_cv_header_stdc+set}" = set; then … … 3416 4653 else 3417 4654 cat >conftest.$ac_ext <<_ACEOF 3418 #line 3418 "configure" 3419 #include "confdefs.h" 4655 /* confdefs.h. */ 4656 _ACEOF 4657 cat confdefs.h >>conftest.$ac_ext 4658 cat >>conftest.$ac_ext <<_ACEOF 4659 /* end confdefs.h. */ 3420 4660 #include <stdlib.h> 3421 4661 #include <stdarg.h> … … 3423 4663 #include <float.h> 3424 4664 3425 _ACEOF 3426 if { (eval echo "$as_me:3426: \"$ac_cpp conftest.$ac_ext\"") >&5 3427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3428 ac_status=$? 3429 egrep -v '^ *\+' conftest.er1 >conftest.err 4665 int 4666 main () 4667 { 4668 4669 ; 4670 return 0; 4671 } 4672 _ACEOF 4673 rm -f conftest.$ac_objext 4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4675 (eval $ac_compile) 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 3430 4678 rm -f conftest.er1 3431 4679 cat conftest.err >&5 3432 echo "$as_me:3432: \$? = $ac_status" >&5 3433 (exit $ac_status); } >/dev/null; then 3434 if test -s conftest.err; then 3435 ac_cpp_err=$ac_c_preproc_warn_flag 3436 else 3437 ac_cpp_err= 3438 fi 3439 else 3440 ac_cpp_err=yes 3441 fi 3442 if test -z "$ac_cpp_err"; then 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } && 4682 { ac_try='test -z "$ac_c_werror_flag" 4683 || test ! -s conftest.err' 4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4685 (eval $ac_try) 2>&5 4686 ac_status=$? 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4688 (exit $ac_status); }; } && 4689 { ac_try='test -s conftest.$ac_objext' 4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691 (eval $ac_try) 2>&5 4692 ac_status=$? 4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694 (exit $ac_status); }; }; then 3443 4695 ac_cv_header_stdc=yes 3444 4696 else 3445 4697 echo "$as_me: failed program was:" >&5 3446 cat conftest.$ac_ext >&5 3447 ac_cv_header_stdc=no 3448 fi 3449 rm -f conftest.err conftest.$ac_ext 4698 sed 's/^/| /' conftest.$ac_ext >&5 4699 4700 ac_cv_header_stdc=no 4701 fi 4702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3450 4703 3451 4704 if test $ac_cv_header_stdc = yes; then 3452 4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3453 4706 cat >conftest.$ac_ext <<_ACEOF 3454 #line 3454 "configure" 3455 #include "confdefs.h" 4707 /* confdefs.h. */ 4708 _ACEOF 4709 cat confdefs.h >>conftest.$ac_ext 4710 cat >>conftest.$ac_ext <<_ACEOF 4711 /* end confdefs.h. */ 3456 4712 #include <string.h> 3457 4713 3458 4714 _ACEOF 3459 4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3460 egrep"memchr" >/dev/null 2>&1; then4716 $EGREP "memchr" >/dev/null 2>&1; then 3461 4717 : 3462 4718 else … … 3470 4726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3471 4727 cat >conftest.$ac_ext <<_ACEOF 3472 #line 3472 "configure" 3473 #include "confdefs.h" 4728 /* confdefs.h. */ 4729 _ACEOF 4730 cat confdefs.h >>conftest.$ac_ext 4731 cat >>conftest.$ac_ext <<_ACEOF 4732 /* end confdefs.h. */ 3474 4733 #include <stdlib.h> 3475 4734 3476 4735 _ACEOF 3477 4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3478 egrep"free" >/dev/null 2>&1; then4737 $EGREP "free" >/dev/null 2>&1; then 3479 4738 : 3480 4739 else … … 3491 4750 else 3492 4751 cat >conftest.$ac_ext <<_ACEOF 3493 #line 3493 "configure" 3494 #include "confdefs.h" 4752 /* confdefs.h. */ 4753 _ACEOF 4754 cat confdefs.h >>conftest.$ac_ext 4755 cat >>conftest.$ac_ext <<_ACEOF 4756 /* end confdefs.h. */ 3495 4757 #include <ctype.h> 3496 4758 #if ((' ' & 0x0FF) == 0x020) … … 3498 4760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3499 4761 #else 3500 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3501 || ('j' <= (c) && (c) <= 'r') \ 3502 || ('s' <= (c) && (c) <= 'z')) 4762 # define ISLOWER(c) \ 4763 (('a' <= (c) && (c) <= 'i') \ 4764 || ('j' <= (c) && (c) <= 'r') \ 4765 || ('s' <= (c) && (c) <= 'z')) 3503 4766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3504 4767 #endif … … 3511 4774 for (i = 0; i < 256; i++) 3512 4775 if (XOR (islower (i), ISLOWER (i)) 3513 4776 || toupper (i) != TOUPPER (i)) 3514 4777 exit(2); 3515 4778 exit (0); … … 3517 4780 _ACEOF 3518 4781 rm -f conftest$ac_exeext 3519 if { (eval echo "$as_me: 3519: \"$ac_link\"") >&54782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3520 4783 (eval $ac_link) 2>&5 3521 4784 ac_status=$? 3522 echo "$as_me: 3522: \$? = $ac_status" >&54785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 4786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3524 { (eval echo "$as_me: 3524: \"$ac_try\"") >&53525 (eval $ac_try) 2>&5 3526 ac_status=$? 3527 echo "$as_me: 3527: \$? = $ac_status" >&54787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 (eval $ac_try) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 4791 (exit $ac_status); }; }; then 3529 4792 : … … 3531 4794 echo "$as_me: program exited with status $ac_status" >&5 3532 4795 echo "$as_me: failed program was:" >&5 3533 cat conftest.$ac_ext >&5 4796 sed 's/^/| /' conftest.$ac_ext >&5 4797 4798 ( exit $ac_status ) 3534 4799 ac_cv_header_stdc=no 3535 4800 fi 3536 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3537 fi 3538 fi 3539 fi 3540 echo "$as_me: 3540: result: $ac_cv_header_stdc" >&54801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4802 fi 4803 fi 4804 fi 4805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3541 4806 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3542 4807 if test $ac_cv_header_stdc = yes; then 3543 4808 3544 cat >>confdefs.h <<\ EOF4809 cat >>confdefs.h <<\_ACEOF 3545 4810 #define STDC_HEADERS 1 3546 EOF 3547 3548 fi 4811 _ACEOF 4812 4813 fi 4814 4815 4816 4817 4818 4819 4820 3549 4821 3550 4822 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 3551 4823 do 3552 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3553 echo "$as_me:3553: checking for $ac_header" >&5 4824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4825 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4826 echo "$as_me:$LINENO: checking for $ac_header" >&5 3554 4827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3555 if eval "test \"\${$a c_ac_Header+set}\" = set"; then4828 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3556 4829 echo $ECHO_N "(cached) $ECHO_C" >&6 3557 else 3558 cat >conftest.$ac_ext <<_ACEOF 3559 #line 3559 "configure" 3560 #include "confdefs.h" 4830 fi 4831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4833 else 4834 # Is the header compilable? 4835 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4837 cat >conftest.$ac_ext <<_ACEOF 4838 /* confdefs.h. */ 4839 _ACEOF 4840 cat confdefs.h >>conftest.$ac_ext 4841 cat >>conftest.$ac_ext <<_ACEOF 4842 /* end confdefs.h. */ 4843 $ac_includes_default 3561 4844 #include <$ac_header> 3562 4845 _ACEOF 3563 if { (eval echo "$as_me:3563: \"$ac_cpp conftest.$ac_ext\"") >&5 3564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3565 ac_status=$? 3566 egrep -v '^ *\+' conftest.er1 >conftest.err 4846 rm -f conftest.$ac_objext 4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4848 (eval $ac_compile) 2>conftest.er1 4849 ac_status=$? 4850 grep -v '^ *+' conftest.er1 >conftest.err 3567 4851 rm -f conftest.er1 3568 4852 cat conftest.err >&5 3569 echo "$as_me:3569: \$? = $ac_status" >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } && 4855 { ac_try='test -z "$ac_c_werror_flag" 4856 || test ! -s conftest.err' 4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4858 (eval $ac_try) 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); }; } && 4862 { ac_try='test -s conftest.$ac_objext' 4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4864 (eval $ac_try) 2>&5 4865 ac_status=$? 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); }; }; then 4868 ac_header_compiler=yes 4869 else 4870 echo "$as_me: failed program was:" >&5 4871 sed 's/^/| /' conftest.$ac_ext >&5 4872 4873 ac_header_compiler=no 4874 fi 4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4877 echo "${ECHO_T}$ac_header_compiler" >&6 4878 4879 # Is the header present? 4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4882 cat >conftest.$ac_ext <<_ACEOF 4883 /* confdefs.h. */ 4884 _ACEOF 4885 cat confdefs.h >>conftest.$ac_ext 4886 cat >>conftest.$ac_ext <<_ACEOF 4887 /* end confdefs.h. */ 4888 #include <$ac_header> 4889 _ACEOF 4890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 4897 (exit $ac_status); } >/dev/null; then 3571 4898 if test -s conftest.err; then 3572 4899 ac_cpp_err=$ac_c_preproc_warn_flag 4900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3573 4901 else 3574 4902 ac_cpp_err= … … 3578 4906 fi 3579 4907 if test -z "$ac_cpp_err"; then 3580 eval "$ac_ac_Header=yes"4908 ac_header_preproc=yes 3581 4909 else 3582 4910 echo "$as_me: failed program was:" >&5 3583 cat conftest.$ac_ext >&5 3584 eval "$ac_ac_Header=no" 4911 sed 's/^/| /' conftest.$ac_ext >&5 4912 4913 ac_header_preproc=no 3585 4914 fi 3586 4915 rm -f conftest.err conftest.$ac_ext 3587 fi 3588 echo "$as_me:3588: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3589 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3590 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3591 cat >>confdefs.h <<EOF 3592 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3593 EOF 3594 3595 fi 4916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4917 echo "${ECHO_T}$ac_header_preproc" >&6 4918 4919 # So? What about this header? 4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4921 yes:no: ) 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4926 ac_header_preproc=yes 4927 ;; 4928 no:yes:* ) 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4941 ( 4942 cat <<\_ASBOX 4943 ## ------------------------------------------ ## 4944 ## Report this to the AC_PACKAGE_NAME lists. ## 4945 ## ------------------------------------------ ## 4946 _ASBOX 4947 ) | 4948 sed "s/^/$as_me: WARNING: /" >&2 4949 ;; 4950 esac 4951 echo "$as_me:$LINENO: checking for $ac_header" >&5 4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4953 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955 else 4956 eval "$as_ac_Header=\$ac_header_preproc" 4957 fi 4958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4960 4961 fi 4962 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4963 cat >>confdefs.h <<_ACEOF 4964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4965 _ACEOF 4966 4967 fi 4968 3596 4969 done 3597 4970 3598 4971 cat >conftest.$ac_ext <<_ACEOF 3599 #line 3599 "configure" 3600 #include "confdefs.h" 4972 /* confdefs.h. */ 4973 _ACEOF 4974 cat confdefs.h >>conftest.$ac_ext 4975 cat >>conftest.$ac_ext <<_ACEOF 4976 /* end confdefs.h. */ 3601 4977 #include <stdio.h> 3602 4978 3603 4979 _ACEOF 3604 4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3605 egrep"fread" >/dev/null 2>&1; then3606 cat >>confdefs.h <<\ EOF4981 $EGREP "fread" >/dev/null 2>&1; then 4982 cat >>confdefs.h <<\_ACEOF 3607 4983 #define HAVE_FREAD_DECL 1 3608 EOF4984 _ACEOF 3609 4985 3610 4986 fi … … 3612 4988 3613 4989 cat >conftest.$ac_ext <<_ACEOF 3614 #line 3614 "configure" 3615 #include "confdefs.h" 4990 /* confdefs.h. */ 4991 _ACEOF 4992 cat confdefs.h >>conftest.$ac_ext 4993 cat >>conftest.$ac_ext <<_ACEOF 4994 /* end confdefs.h. */ 3616 4995 #include <stdio.h> 3617 4996 3618 4997 _ACEOF 3619 4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3620 egrep"fgetc" >/dev/null 2>&1; then3621 cat >>confdefs.h <<\ EOF4999 $EGREP "fgetc" >/dev/null 2>&1; then 5000 cat >>confdefs.h <<\_ACEOF 3622 5001 #define HAVE_FGETC_DECL 1 3623 EOF5002 _ACEOF 3624 5003 3625 5004 fi … … 3627 5006 3628 5007 cat >conftest.$ac_ext <<_ACEOF 3629 #line 3629 "configure" 3630 #include "confdefs.h" 5008 /* confdefs.h. */ 5009 _ACEOF 5010 cat confdefs.h >>conftest.$ac_ext 5011 cat >>conftest.$ac_ext <<_ACEOF 5012 /* end confdefs.h. */ 3631 5013 #include <sys/procfs.h> 3632 5014 3633 5015 _ACEOF 3634 5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3635 egrep"pr_brksize" >/dev/null 2>&1; then3636 cat >>confdefs.h <<\ EOF5017 $EGREP "pr_brksize" >/dev/null 2>&1; then 5018 cat >>confdefs.h <<\_ACEOF 3637 5019 #define HAVE_PR_BRKSIZE 1 3638 EOF5020 _ACEOF 3639 5021 3640 5022 fi 3641 5023 rm -f conftest* 5024 3642 5025 3643 5026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 3644 5027 # for constant arguments. Useless! 3645 echo "$as_me: 3645: checking for working alloca.h" >&55028 echo "$as_me:$LINENO: checking for working alloca.h" >&5 3646 5029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 3647 5030 if test "${ac_cv_working_alloca_h+set}" = set; then … … 3649 5032 else 3650 5033 cat >conftest.$ac_ext <<_ACEOF 3651 #line 3651 "configure" 3652 #include "confdefs.h" 5034 /* confdefs.h. */ 5035 _ACEOF 5036 cat confdefs.h >>conftest.$ac_ext 5037 cat >>conftest.$ac_ext <<_ACEOF 5038 /* end confdefs.h. */ 3653 5039 #include <alloca.h> 3654 5040 int … … 3661 5047 _ACEOF 3662 5048 rm -f conftest.$ac_objext conftest$ac_exeext 3663 if { (eval echo "$as_me:3663: \"$ac_link\"") >&5 3664 (eval $ac_link) 2>&5 3665 ac_status=$? 3666 echo "$as_me:3666: \$? = $ac_status" >&5 5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5050 (eval $ac_link) 2>conftest.er1 5051 ac_status=$? 5052 grep -v '^ *+' conftest.er1 >conftest.err 5053 rm -f conftest.er1 5054 cat conftest.err >&5 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3667 5056 (exit $ac_status); } && 3668 { ac_try='test -s conftest$ac_exeext' 3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5 3670 (eval $ac_try) 2>&5 3671 ac_status=$? 3672 echo "$as_me:3672: \$? = $ac_status" >&5 5057 { ac_try='test -z "$ac_c_werror_flag" 5058 || test ! -s conftest.err' 5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5060 (eval $ac_try) 2>&5 5061 ac_status=$? 5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); }; } && 5064 { ac_try='test -s conftest$ac_exeext' 5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5066 (eval $ac_try) 2>&5 5067 ac_status=$? 5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3673 5069 (exit $ac_status); }; }; then 3674 5070 ac_cv_working_alloca_h=yes 3675 5071 else 3676 5072 echo "$as_me: failed program was:" >&5 3677 cat conftest.$ac_ext >&5 5073 sed 's/^/| /' conftest.$ac_ext >&5 5074 3678 5075 ac_cv_working_alloca_h=no 3679 5076 fi 3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3681 fi 3682 echo "$as_me:3682: result: $ac_cv_working_alloca_h" >&5 5077 rm -f conftest.err conftest.$ac_objext \ 5078 conftest$ac_exeext conftest.$ac_ext 5079 fi 5080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 3683 5081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3684 5082 if test $ac_cv_working_alloca_h = yes; then 3685 5083 3686 cat >>confdefs.h <<\ EOF5084 cat >>confdefs.h <<\_ACEOF 3687 5085 #define HAVE_ALLOCA_H 1 3688 EOF3689 3690 fi 3691 3692 echo "$as_me: 3692: checking for alloca" >&55086 _ACEOF 5087 5088 fi 5089 5090 echo "$as_me:$LINENO: checking for alloca" >&5 3693 5091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3694 5092 if test "${ac_cv_func_alloca_works+set}" = set; then … … 3696 5094 else 3697 5095 cat >conftest.$ac_ext <<_ACEOF 3698 #line 3698 "configure" 3699 #include "confdefs.h" 5096 /* confdefs.h. */ 5097 _ACEOF 5098 cat confdefs.h >>conftest.$ac_ext 5099 cat >>conftest.$ac_ext <<_ACEOF 5100 /* end confdefs.h. */ 3700 5101 #ifdef __GNUC__ 3701 5102 # define alloca __builtin_alloca … … 3728 5129 _ACEOF 3729 5130 rm -f conftest.$ac_objext conftest$ac_exeext 3730 if { (eval echo "$as_me:3730: \"$ac_link\"") >&5 3731 (eval $ac_link) 2>&5 3732 ac_status=$? 3733 echo "$as_me:3733: \$? = $ac_status" >&5 5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5132 (eval $ac_link) 2>conftest.er1 5133 ac_status=$? 5134 grep -v '^ *+' conftest.er1 >conftest.err 5135 rm -f conftest.er1 5136 cat conftest.err >&5 5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 5138 (exit $ac_status); } && 3735 { ac_try='test -s conftest$ac_exeext' 3736 { (eval echo "$as_me:3736: \"$ac_try\"") >&5 3737 (eval $ac_try) 2>&5 3738 ac_status=$? 3739 echo "$as_me:3739: \$? = $ac_status" >&5 5139 { ac_try='test -z "$ac_c_werror_flag" 5140 || test ! -s conftest.err' 5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5142 (eval $ac_try) 2>&5 5143 ac_status=$? 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); }; } && 5146 { ac_try='test -s conftest$ac_exeext' 5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5148 (eval $ac_try) 2>&5 5149 ac_status=$? 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3740 5151 (exit $ac_status); }; }; then 3741 5152 ac_cv_func_alloca_works=yes 3742 5153 else 3743 5154 echo "$as_me: failed program was:" >&5 3744 cat conftest.$ac_ext >&5 5155 sed 's/^/| /' conftest.$ac_ext >&5 5156 3745 5157 ac_cv_func_alloca_works=no 3746 5158 fi 3747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3748 fi 3749 echo "$as_me:3749: result: $ac_cv_func_alloca_works" >&5 5159 rm -f conftest.err conftest.$ac_objext \ 5160 conftest$ac_exeext conftest.$ac_ext 5161 fi 5162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 3750 5163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3751 5164 3752 5165 if test $ac_cv_func_alloca_works = yes; then 3753 5166 3754 cat >>confdefs.h <<\ EOF5167 cat >>confdefs.h <<\_ACEOF 3755 5168 #define HAVE_ALLOCA 1 3756 EOF5169 _ACEOF 3757 5170 3758 5171 else … … 3764 5177 ALLOCA=alloca.$ac_objext 3765 5178 3766 cat >>confdefs.h <<\ EOF5179 cat >>confdefs.h <<\_ACEOF 3767 5180 #define C_ALLOCA 1 3768 EOF 3769 3770 echo "$as_me:3770: checking whether \`alloca.c' needs Cray hooks" >&5 5181 _ACEOF 5182 5183 5184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 3771 5185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3772 5186 if test "${ac_cv_os_cray+set}" = set; then … … 3774 5188 else 3775 5189 cat >conftest.$ac_ext <<_ACEOF 3776 #line 3776 "configure" 3777 #include "confdefs.h" 5190 /* confdefs.h. */ 5191 _ACEOF 5192 cat confdefs.h >>conftest.$ac_ext 5193 cat >>conftest.$ac_ext <<_ACEOF 5194 /* end confdefs.h. */ 3778 5195 #if defined(CRAY) && ! defined(CRAY2) 3779 5196 webecray … … 3784 5201 _ACEOF 3785 5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3786 egrep"webecray" >/dev/null 2>&1; then5203 $EGREP "webecray" >/dev/null 2>&1; then 3787 5204 ac_cv_os_cray=yes 3788 5205 else … … 3792 5209 3793 5210 fi 3794 echo "$as_me: 3794: result: $ac_cv_os_cray" >&55211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 3795 5212 echo "${ECHO_T}$ac_cv_os_cray" >&6 3796 5213 if test $ac_cv_os_cray = yes; then 3797 5214 for ac_func in _getb67 GETB67 getb67; do 3798 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`3799 echo "$as_me: 3799: checking for $ac_func" >&55215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5216 echo "$as_me:$LINENO: checking for $ac_func" >&5 3800 5217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3801 if eval "test \"\${$a c_ac_var+set}\" = set"; then5218 if eval "test \"\${$as_ac_var+set}\" = set"; then 3802 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 3803 5220 else 3804 5221 cat >conftest.$ac_ext <<_ACEOF 3805 #line 3805 "configure" 3806 #include "confdefs.h" 5222 /* confdefs.h. */ 5223 _ACEOF 5224 cat confdefs.h >>conftest.$ac_ext 5225 cat >>conftest.$ac_ext <<_ACEOF 5226 /* end confdefs.h. */ 5227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5229 #define $ac_func innocuous_$ac_func 5230 3807 5231 /* System header to define __stub macros and hopefully few prototypes, 3808 which can conflict with char $ac_func (); below. */ 3809 #include <assert.h> 5232 which can conflict with char $ac_func (); below. 5233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5234 <limits.h> exists even on freestanding compilers. */ 5235 5236 #ifdef __STDC__ 5237 # include <limits.h> 5238 #else 5239 # include <assert.h> 5240 #endif 5241 5242 #undef $ac_func 5243 3810 5244 /* Override any gcc2 internal prototype to avoid an error. */ 3811 5245 #ifdef __cplusplus 3812 5246 extern "C" 5247 { 3813 5248 #endif 3814 5249 /* We use char because int might match the return type of a gcc2 3815 5250 builtin and then its argument prototype would still apply. */ 3816 5251 char $ac_func (); 3817 char (*f) ();3818 3819 int3820 main ()3821 {3822 5252 /* The GNU C library defines this for functions which it implements 3823 5253 to always fail with ENOSYS. Some functions are actually named … … 3826 5256 choke me 3827 5257 #else 3828 f= $ac_func;5258 char (*f) () = $ac_func; 3829 5259 #endif 3830 5260 #ifdef __cplusplus 5261 } 5262 #endif 5263 5264 int 5265 main () 5266 { 5267 return f != $ac_func; 3831 5268 ; 3832 5269 return 0; … … 3834 5271 _ACEOF 3835 5272 rm -f conftest.$ac_objext conftest$ac_exeext 3836 if { (eval echo "$as_me:3836: \"$ac_link\"") >&5 3837 (eval $ac_link) 2>&5 3838 ac_status=$? 3839 echo "$as_me:3839: \$? = $ac_status" >&5 5273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5274 (eval $ac_link) 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 5280 (exit $ac_status); } && 3841 { ac_try='test -s conftest$ac_exeext' 3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5 3843 (eval $ac_try) 2>&5 3844 ac_status=$? 3845 echo "$as_me:3845: \$? = $ac_status" >&5 5281 { ac_try='test -z "$ac_c_werror_flag" 5282 || test ! -s conftest.err' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; } && 5288 { ac_try='test -s conftest$ac_exeext' 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5290 (eval $ac_try) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 5293 (exit $ac_status); }; }; then 3847 eval "$a c_ac_var=yes"5294 eval "$as_ac_var=yes" 3848 5295 else 3849 5296 echo "$as_me: failed program was:" >&5 3850 cat conftest.$ac_ext >&5 3851 eval "$ac_ac_var=no" 3852 fi 3853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3854 fi 3855 echo "$as_me:3855: result: `eval echo '${'$ac_ac_var'}'`" >&5 3856 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3857 if test `eval echo '${'$ac_ac_var'}'` = yes; then 3858 3859 cat >>confdefs.h <<EOF 5297 sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 eval "$as_ac_var=no" 5300 fi 5301 rm -f conftest.err conftest.$ac_objext \ 5302 conftest$ac_exeext conftest.$ac_ext 5303 fi 5304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5306 if test `eval echo '${'$as_ac_var'}'` = yes; then 5307 5308 cat >>confdefs.h <<_ACEOF 3860 5309 #define CRAY_STACKSEG_END $ac_func 3861 EOF5310 _ACEOF 3862 5311 3863 5312 break … … 3867 5316 fi 3868 5317 3869 echo "$as_me: 3869: checking stack direction for C alloca" >&55318 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 3870 5319 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 3871 5320 if test "${ac_cv_c_stack_direction+set}" = set; then … … 3876 5325 else 3877 5326 cat >conftest.$ac_ext <<_ACEOF 3878 #line 3878 "configure" 3879 #include "confdefs.h" 5327 /* confdefs.h. */ 5328 _ACEOF 5329 cat confdefs.h >>conftest.$ac_ext 5330 cat >>conftest.$ac_ext <<_ACEOF 5331 /* end confdefs.h. */ 3880 5332 int 3881 5333 find_stack_direction () … … 3899 5351 _ACEOF 3900 5352 rm -f conftest$ac_exeext 3901 if { (eval echo "$as_me: 3901: \"$ac_link\"") >&55353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3902 5354 (eval $ac_link) 2>&5 3903 5355 ac_status=$? 3904 echo "$as_me: 3904: \$? = $ac_status" >&55356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 5357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3906 { (eval echo "$as_me: 3906: \"$ac_try\"") >&53907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me: 3909: \$? = $ac_status" >&55358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 5362 (exit $ac_status); }; }; then 3911 5363 ac_cv_c_stack_direction=1 … … 3913 5365 echo "$as_me: program exited with status $ac_status" >&5 3914 5366 echo "$as_me: failed program was:" >&5 3915 cat conftest.$ac_ext >&5 5367 sed 's/^/| /' conftest.$ac_ext >&5 5368 5369 ( exit $ac_status ) 3916 5370 ac_cv_c_stack_direction=-1 3917 5371 fi 3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3919 fi 3920 fi 3921 echo "$as_me: 3921: result: $ac_cv_c_stack_direction" >&55372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5373 fi 5374 fi 5375 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 3922 5376 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 3923 5377 3924 cat >>confdefs.h << EOF5378 cat >>confdefs.h <<_ACEOF 3925 5379 #define STACK_DIRECTION $ac_cv_c_stack_direction 3926 EOF 5380 _ACEOF 5381 3927 5382 3928 5383 fi 3929 5384 3930 5385 if test $ac_cv_c_compiler_gnu = yes; then 3931 echo "$as_me: 3931: checking whether $CC needs -traditional" >&55386 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3932 5387 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3933 5388 if test "${ac_cv_prog_gcc_traditional+set}" = set; then … … 3936 5391 ac_pattern="Autoconf.*'x'" 3937 5392 cat >conftest.$ac_ext <<_ACEOF 3938 #line 3938 "configure" 3939 #include "confdefs.h" 5393 /* confdefs.h. */ 5394 _ACEOF 5395 cat confdefs.h >>conftest.$ac_ext 5396 cat >>conftest.$ac_ext <<_ACEOF 5397 /* end confdefs.h. */ 3940 5398 #include <sgtty.h> 3941 5399 Autoconf TIOCGETP 3942 5400 _ACEOF 3943 5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3944 egrep"$ac_pattern" >/dev/null 2>&1; then5402 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3945 5403 ac_cv_prog_gcc_traditional=yes 3946 5404 else … … 3948 5406 fi 3949 5407 rm -f conftest* 5408 3950 5409 3951 5410 if test $ac_cv_prog_gcc_traditional = no; then 3952 5411 cat >conftest.$ac_ext <<_ACEOF 3953 #line 3953 "configure" 3954 #include "confdefs.h" 5412 /* confdefs.h. */ 5413 _ACEOF 5414 cat confdefs.h >>conftest.$ac_ext 5415 cat >>conftest.$ac_ext <<_ACEOF 5416 /* end confdefs.h. */ 3955 5417 #include <termio.h> 3956 5418 Autoconf TCGETA 3957 5419 _ACEOF 3958 5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3959 egrep"$ac_pattern" >/dev/null 2>&1; then5421 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3960 5422 ac_cv_prog_gcc_traditional=yes 3961 5423 fi … … 3964 5426 fi 3965 5427 fi 3966 echo "$as_me: 3966: result: $ac_cv_prog_gcc_traditional" >&55428 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3967 5429 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3968 5430 if test $ac_cv_prog_gcc_traditional = yes; then … … 3971 5433 fi 3972 5434 3973 echo "$as_me: 3973: checking return type of signal handlers" >&55435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3974 5436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 3975 5437 if test "${ac_cv_type_signal+set}" = set; then … … 3977 5439 else 3978 5440 cat >conftest.$ac_ext <<_ACEOF 3979 #line 3979 "configure" 3980 #include "confdefs.h" 5441 /* confdefs.h. */ 5442 _ACEOF 5443 cat confdefs.h >>conftest.$ac_ext 5444 cat >>conftest.$ac_ext <<_ACEOF 5445 /* end confdefs.h. */ 3981 5446 #include <sys/types.h> 3982 5447 #include <signal.h> … … 3999 5464 _ACEOF 4000 5465 rm -f conftest.$ac_objext 4001 if { (eval echo "$as_me:4001: \"$ac_compile\"") >&5 4002 (eval $ac_compile) 2>&5 4003 ac_status=$? 4004 echo "$as_me:4004: \$? = $ac_status" >&5 5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5467 (eval $ac_compile) 2>conftest.er1 5468 ac_status=$? 5469 grep -v '^ *+' conftest.er1 >conftest.err 5470 rm -f conftest.er1 5471 cat conftest.err >&5 5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 5473 (exit $ac_status); } && 4006 { ac_try='test -s conftest.$ac_objext' 4007 { (eval echo "$as_me:4007: \"$ac_try\"") >&5 4008 (eval $ac_try) 2>&5 4009 ac_status=$? 4010 echo "$as_me:4010: \$? = $ac_status" >&5 5474 { ac_try='test -z "$ac_c_werror_flag" 5475 || test ! -s conftest.err' 5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5477 (eval $ac_try) 2>&5 5478 ac_status=$? 5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5480 (exit $ac_status); }; } && 5481 { ac_try='test -s conftest.$ac_objext' 5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5483 (eval $ac_try) 2>&5 5484 ac_status=$? 5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4011 5486 (exit $ac_status); }; }; then 4012 5487 ac_cv_type_signal=void 4013 5488 else 4014 5489 echo "$as_me: failed program was:" >&5 4015 cat conftest.$ac_ext >&5 5490 sed 's/^/| /' conftest.$ac_ext >&5 5491 4016 5492 ac_cv_type_signal=int 4017 5493 fi 4018 rm -f conftest. $ac_objext conftest.$ac_ext4019 fi 4020 echo "$as_me: 4020: result: $ac_cv_type_signal" >&55494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5495 fi 5496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4021 5497 echo "${ECHO_T}$ac_cv_type_signal" >&6 4022 5498 4023 cat >>confdefs.h << EOF5499 cat >>confdefs.h <<_ACEOF 4024 5500 #define RETSIGTYPE $ac_cv_type_signal 4025 EOF 5501 _ACEOF 5502 5503 4026 5504 4027 5505 for ac_func in vprintf 4028 5506 do 4029 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4030 echo "$as_me: 4030: checking for $ac_func" >&55507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5508 echo "$as_me:$LINENO: checking for $ac_func" >&5 4031 5509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4032 if eval "test \"\${$a c_ac_var+set}\" = set"; then5510 if eval "test \"\${$as_ac_var+set}\" = set"; then 4033 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 4034 5512 else 4035 5513 cat >conftest.$ac_ext <<_ACEOF 4036 #line 4036 "configure" 4037 #include "confdefs.h" 5514 /* confdefs.h. */ 5515 _ACEOF 5516 cat confdefs.h >>conftest.$ac_ext 5517 cat >>conftest.$ac_ext <<_ACEOF 5518 /* end confdefs.h. */ 5519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5520 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5521 #define $ac_func innocuous_$ac_func 5522 4038 5523 /* System header to define __stub macros and hopefully few prototypes, 4039 which can conflict with char $ac_func (); below. */ 4040 #include <assert.h> 5524 which can conflict with char $ac_func (); below. 5525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5526 <limits.h> exists even on freestanding compilers. */ 5527 5528 #ifdef __STDC__ 5529 # include <limits.h> 5530 #else 5531 # include <assert.h> 5532 #endif 5533 5534 #undef $ac_func 5535 4041 5536 /* Override any gcc2 internal prototype to avoid an error. */ 4042 5537 #ifdef __cplusplus 4043 5538 extern "C" 5539 { 4044 5540 #endif 4045 5541 /* We use char because int might match the return type of a gcc2 4046 5542 builtin and then its argument prototype would still apply. */ 4047 5543 char $ac_func (); 4048 char (*f) ();4049 4050 int4051 main ()4052 {4053 5544 /* The GNU C library defines this for functions which it implements 4054 5545 to always fail with ENOSYS. Some functions are actually named … … 4057 5548 choke me 4058 5549 #else 4059 f= $ac_func;5550 char (*f) () = $ac_func; 4060 5551 #endif 4061 5552 #ifdef __cplusplus 5553 } 5554 #endif 5555 5556 int 5557 main () 5558 { 5559 return f != $ac_func; 4062 5560 ; 4063 5561 return 0; … … 4065 5563 _ACEOF 4066 5564 rm -f conftest.$ac_objext conftest$ac_exeext 4067 if { (eval echo "$as_me:4067: \"$ac_link\"") >&5 4068 (eval $ac_link) 2>&5 4069 ac_status=$? 4070 echo "$as_me:4070: \$? = $ac_status" >&5 5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5566 (eval $ac_link) 2>conftest.er1 5567 ac_status=$? 5568 grep -v '^ *+' conftest.er1 >conftest.err 5569 rm -f conftest.er1 5570 cat conftest.err >&5 5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 5572 (exit $ac_status); } && 4072 { ac_try='test -s conftest$ac_exeext' 4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:4076: \$? = $ac_status" >&5 5573 { ac_try='test -z "$ac_c_werror_flag" 5574 || test ! -s conftest.err' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; } && 5580 { ac_try='test -s conftest$ac_exeext' 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5582 (eval $ac_try) 2>&5 5583 ac_status=$? 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 5585 (exit $ac_status); }; }; then 4078 eval "$a c_ac_var=yes"5586 eval "$as_ac_var=yes" 4079 5587 else 4080 5588 echo "$as_me: failed program was:" >&5 4081 cat conftest.$ac_ext >&5 4082 eval "$ac_ac_var=no" 4083 fi 4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4085 fi 4086 echo "$as_me:4086: result: `eval echo '${'$ac_ac_var'}'`" >&5 4087 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4088 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4089 cat >>confdefs.h <<EOF 4090 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4091 EOF 4092 4093 echo "$as_me:4093: checking for _doprnt" >&5 5589 sed 's/^/| /' conftest.$ac_ext >&5 5590 5591 eval "$as_ac_var=no" 5592 fi 5593 rm -f conftest.err conftest.$ac_objext \ 5594 conftest$ac_exeext conftest.$ac_ext 5595 fi 5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5598 if test `eval echo '${'$as_ac_var'}'` = yes; then 5599 cat >>confdefs.h <<_ACEOF 5600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5601 _ACEOF 5602 5603 echo "$as_me:$LINENO: checking for _doprnt" >&5 4094 5604 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4095 5605 if test "${ac_cv_func__doprnt+set}" = set; then … … 4097 5607 else 4098 5608 cat >conftest.$ac_ext <<_ACEOF 4099 #line 4099 "configure" 4100 #include "confdefs.h" 5609 /* confdefs.h. */ 5610 _ACEOF 5611 cat confdefs.h >>conftest.$ac_ext 5612 cat >>conftest.$ac_ext <<_ACEOF 5613 /* end confdefs.h. */ 5614 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5615 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5616 #define _doprnt innocuous__doprnt 5617 4101 5618 /* System header to define __stub macros and hopefully few prototypes, 4102 which can conflict with char _doprnt (); below. */ 4103 #include <assert.h> 5619 which can conflict with char _doprnt (); below. 5620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5621 <limits.h> exists even on freestanding compilers. */ 5622 5623 #ifdef __STDC__ 5624 # include <limits.h> 5625 #else 5626 # include <assert.h> 5627 #endif 5628 5629 #undef _doprnt 5630 4104 5631 /* Override any gcc2 internal prototype to avoid an error. */ 4105 5632 #ifdef __cplusplus 4106 5633 extern "C" 5634 { 4107 5635 #endif 4108 5636 /* We use char because int might match the return type of a gcc2 4109 5637 builtin and then its argument prototype would still apply. */ 4110 5638 char _doprnt (); 4111 char (*f) ();4112 4113 int4114 main ()4115 {4116 5639 /* The GNU C library defines this for functions which it implements 4117 5640 to always fail with ENOSYS. Some functions are actually named … … 4120 5643 choke me 4121 5644 #else 4122 f= _doprnt;5645 char (*f) () = _doprnt; 4123 5646 #endif 4124 5647 #ifdef __cplusplus 5648 } 5649 #endif 5650 5651 int 5652 main () 5653 { 5654 return f != _doprnt; 4125 5655 ; 4126 5656 return 0; … … 4128 5658 _ACEOF 4129 5659 rm -f conftest.$ac_objext conftest$ac_exeext 4130 if { (eval echo "$as_me:4130: \"$ac_link\"") >&5 4131 (eval $ac_link) 2>&5 4132 ac_status=$? 4133 echo "$as_me:4133: \$? = $ac_status" >&5 5660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5661 (eval $ac_link) 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4134 5667 (exit $ac_status); } && 4135 { ac_try='test -s conftest$ac_exeext' 4136 { (eval echo "$as_me:4136: \"$ac_try\"") >&5 4137 (eval $ac_try) 2>&5 4138 ac_status=$? 4139 echo "$as_me:4139: \$? = $ac_status" >&5 5668 { ac_try='test -z "$ac_c_werror_flag" 5669 || test ! -s conftest.err' 5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5671 (eval $ac_try) 2>&5 5672 ac_status=$? 5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5674 (exit $ac_status); }; } && 5675 { ac_try='test -s conftest$ac_exeext' 5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5677 (eval $ac_try) 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4140 5680 (exit $ac_status); }; }; then 4141 5681 ac_cv_func__doprnt=yes 4142 5682 else 4143 5683 echo "$as_me: failed program was:" >&5 4144 cat conftest.$ac_ext >&5 5684 sed 's/^/| /' conftest.$ac_ext >&5 5685 4145 5686 ac_cv_func__doprnt=no 4146 5687 fi 4147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4148 fi 4149 echo "$as_me:4149: result: $ac_cv_func__doprnt" >&5 5688 rm -f conftest.err conftest.$ac_objext \ 5689 conftest$ac_exeext conftest.$ac_ext 5690 fi 5691 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 4150 5692 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4151 5693 if test $ac_cv_func__doprnt = yes; then 4152 5694 4153 cat >>confdefs.h <<\ EOF5695 cat >>confdefs.h <<\_ACEOF 4154 5696 #define HAVE_DOPRNT 1 4155 EOF5697 _ACEOF 4156 5698 4157 5699 fi … … 4159 5701 fi 4160 5702 done 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 4161 5713 4162 5714 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize 4163 5715 do 4164 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4165 echo "$as_me: 4165: checking for $ac_func" >&55716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5717 echo "$as_me:$LINENO: checking for $ac_func" >&5 4166 5718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4167 if eval "test \"\${$a c_ac_var+set}\" = set"; then5719 if eval "test \"\${$as_ac_var+set}\" = set"; then 4168 5720 echo $ECHO_N "(cached) $ECHO_C" >&6 4169 5721 else 4170 5722 cat >conftest.$ac_ext <<_ACEOF 4171 #line 4171 "configure" 4172 #include "confdefs.h" 5723 /* confdefs.h. */ 5724 _ACEOF 5725 cat confdefs.h >>conftest.$ac_ext 5726 cat >>conftest.$ac_ext <<_ACEOF 5727 /* end confdefs.h. */ 5728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5730 #define $ac_func innocuous_$ac_func 5731 4173 5732 /* System header to define __stub macros and hopefully few prototypes, 4174 which can conflict with char $ac_func (); below. */ 4175 #include <assert.h> 5733 which can conflict with char $ac_func (); below. 5734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5735 <limits.h> exists even on freestanding compilers. */ 5736 5737 #ifdef __STDC__ 5738 # include <limits.h> 5739 #else 5740 # include <assert.h> 5741 #endif 5742 5743 #undef $ac_func 5744 4176 5745 /* Override any gcc2 internal prototype to avoid an error. */ 4177 5746 #ifdef __cplusplus 4178 5747 extern "C" 5748 { 4179 5749 #endif 4180 5750 /* We use char because int might match the return type of a gcc2 4181 5751 builtin and then its argument prototype would still apply. */ 4182 5752 char $ac_func (); 4183 char (*f) ();4184 4185 int4186 main ()4187 {4188 5753 /* The GNU C library defines this for functions which it implements 4189 5754 to always fail with ENOSYS. Some functions are actually named … … 4192 5757 choke me 4193 5758 #else 4194 f= $ac_func;5759 char (*f) () = $ac_func; 4195 5760 #endif 4196 5761 #ifdef __cplusplus 5762 } 5763 #endif 5764 5765 int 5766 main () 5767 { 5768 return f != $ac_func; 4197 5769 ; 4198 5770 return 0; … … 4200 5772 _ACEOF 4201 5773 rm -f conftest.$ac_objext conftest$ac_exeext 4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5 4203 (eval $ac_link) 2>&5 4204 ac_status=$? 4205 echo "$as_me:4205: \$? = $ac_status" >&5 5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5775 (eval $ac_link) 2>conftest.er1 5776 ac_status=$? 5777 grep -v '^ *+' conftest.er1 >conftest.err 5778 rm -f conftest.er1 5779 cat conftest.err >&5 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 5781 (exit $ac_status); } && 4207 { ac_try='test -s conftest$ac_exeext' 4208 { (eval echo "$as_me:4208: \"$ac_try\"") >&5 4209 (eval $ac_try) 2>&5 4210 ac_status=$? 4211 echo "$as_me:4211: \$? = $ac_status" >&5 5782 { ac_try='test -z "$ac_c_werror_flag" 5783 || test ! -s conftest.err' 5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5785 (eval $ac_try) 2>&5 5786 ac_status=$? 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5788 (exit $ac_status); }; } && 5789 { ac_try='test -s conftest$ac_exeext' 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5791 (eval $ac_try) 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 5794 (exit $ac_status); }; }; then 4213 eval "$a c_ac_var=yes"5795 eval "$as_ac_var=yes" 4214 5796 else 4215 5797 echo "$as_me: failed program was:" >&5 4216 cat conftest.$ac_ext >&5 4217 eval "$ac_ac_var=no" 4218 fi 4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4220 fi 4221 echo "$as_me:4221: result: `eval echo '${'$ac_ac_var'}'`" >&5 4222 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4223 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4224 cat >>confdefs.h <<EOF 4225 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4226 EOF 5798 sed 's/^/| /' conftest.$ac_ext >&5 5799 5800 eval "$as_ac_var=no" 5801 fi 5802 rm -f conftest.err conftest.$ac_objext \ 5803 conftest$ac_exeext conftest.$ac_ext 5804 fi 5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5807 if test `eval echo '${'$as_ac_var'}'` = yes; then 5808 cat >>confdefs.h <<_ACEOF 5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5810 _ACEOF 4227 5811 4228 5812 fi 4229 5813 done 5814 5815 5816 4230 5817 4231 5818 for ac_func in ftruncate strstr strcasecmp 4232 5819 do 4233 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4234 echo "$as_me: 4234: checking for $ac_func" >&55820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5821 echo "$as_me:$LINENO: checking for $ac_func" >&5 4235 5822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4236 if eval "test \"\${$a c_ac_var+set}\" = set"; then5823 if eval "test \"\${$as_ac_var+set}\" = set"; then 4237 5824 echo $ECHO_N "(cached) $ECHO_C" >&6 4238 5825 else 4239 5826 cat >conftest.$ac_ext <<_ACEOF 4240 #line 4240 "configure" 4241 #include "confdefs.h" 5827 /* confdefs.h. */ 5828 _ACEOF 5829 cat confdefs.h >>conftest.$ac_ext 5830 cat >>conftest.$ac_ext <<_ACEOF 5831 /* end confdefs.h. */ 5832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5834 #define $ac_func innocuous_$ac_func 5835 4242 5836 /* System header to define __stub macros and hopefully few prototypes, 4243 which can conflict with char $ac_func (); below. */ 4244 #include <assert.h> 5837 which can conflict with char $ac_func (); below. 5838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5839 <limits.h> exists even on freestanding compilers. */ 5840 5841 #ifdef __STDC__ 5842 # include <limits.h> 5843 #else 5844 # include <assert.h> 5845 #endif 5846 5847 #undef $ac_func 5848 4245 5849 /* Override any gcc2 internal prototype to avoid an error. */ 4246 5850 #ifdef __cplusplus 4247 5851 extern "C" 5852 { 4248 5853 #endif 4249 5854 /* We use char because int might match the return type of a gcc2 4250 5855 builtin and then its argument prototype would still apply. */ 4251 5856 char $ac_func (); 4252 char (*f) ();4253 4254 int4255 main ()4256 {4257 5857 /* The GNU C library defines this for functions which it implements 4258 5858 to always fail with ENOSYS. Some functions are actually named … … 4261 5861 choke me 4262 5862 #else 4263 f= $ac_func;5863 char (*f) () = $ac_func; 4264 5864 #endif 4265 5865 #ifdef __cplusplus 5866 } 5867 #endif 5868 5869 int 5870 main () 5871 { 5872 return f != $ac_func; 4266 5873 ; 4267 5874 return 0; … … 4269 5876 _ACEOF 4270 5877 rm -f conftest.$ac_objext conftest$ac_exeext 4271 if { (eval echo "$as_me:4271: \"$ac_link\"") >&5 4272 (eval $ac_link) 2>&5 4273 ac_status=$? 4274 echo "$as_me:4274: \$? = $ac_status" >&5 5878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5879 (eval $ac_link) 2>conftest.er1 5880 ac_status=$? 5881 grep -v '^ *+' conftest.er1 >conftest.err 5882 rm -f conftest.er1 5883 cat conftest.err >&5 5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 5885 (exit $ac_status); } && 4276 { ac_try='test -s conftest$ac_exeext' 4277 { (eval echo "$as_me:4277: \"$ac_try\"") >&5 4278 (eval $ac_try) 2>&5 4279 ac_status=$? 4280 echo "$as_me:4280: \$? = $ac_status" >&5 5886 { ac_try='test -z "$ac_c_werror_flag" 5887 || test ! -s conftest.err' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; } && 5893 { ac_try='test -s conftest$ac_exeext' 5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5895 (eval $ac_try) 2>&5 5896 ac_status=$? 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 5898 (exit $ac_status); }; }; then 4282 eval "$a c_ac_var=yes"5899 eval "$as_ac_var=yes" 4283 5900 else 4284 5901 echo "$as_me: failed program was:" >&5 4285 cat conftest.$ac_ext >&5 4286 eval "$ac_ac_var=no" 4287 fi 4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4289 fi 4290 echo "$as_me:4290: result: `eval echo '${'$ac_ac_var'}'`" >&5 4291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4292 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4293 cat >>confdefs.h <<EOF 4294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4295 EOF 4296 4297 else 4298 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5902 sed 's/^/| /' conftest.$ac_ext >&5 5903 5904 eval "$as_ac_var=no" 5905 fi 5906 rm -f conftest.err conftest.$ac_objext \ 5907 conftest$ac_exeext conftest.$ac_ext 5908 fi 5909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5911 if test `eval echo '${'$as_ac_var'}'` = yes; then 5912 cat >>confdefs.h <<_ACEOF 5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5914 _ACEOF 5915 5916 else 5917 case $LIBOBJS in 5918 "$ac_func.$ac_objext" | \ 5919 *" $ac_func.$ac_objext" | \ 5920 "$ac_func.$ac_objext "* | \ 5921 *" $ac_func.$ac_objext "* ) ;; 5922 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5923 esac 5924 4299 5925 fi 4300 5926 done 5927 5928 5929 4301 5930 4302 5931 # *** Custom checking (based on GNU tar configure.in) *** 4303 5932 # --------------------------------------------------------------------------- 4304 echo "$as_me: 4304: checking for HP-UX needing gmalloc" >&55933 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5 4305 5934 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 4306 5935 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 4307 echo "$as_me: 4307: result: yes" >&55936 echo "$as_me:$LINENO: result: yes" >&5 4308 5937 echo "${ECHO_T}yes" >&6 4309 LIBOBJS="$LIBOBJS gmalloc.o" 4310 cat >>confdefs.h <<\EOF 5938 case $LIBOBJS in 5939 "gmalloc.$ac_objext" | \ 5940 *" gmalloc.$ac_objext" | \ 5941 "gmalloc.$ac_objext "* | \ 5942 *" gmalloc.$ac_objext "* ) ;; 5943 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;; 5944 esac 5945 5946 cat >>confdefs.h <<\_ACEOF 4311 5947 #define HAVE_VALLOC 1 4312 EOF4313 4314 else 4315 echo "$as_me: 4315: result: no" >&55948 _ACEOF 5949 5950 else 5951 echo "$as_me:$LINENO: result: no" >&5 4316 5952 echo "${ECHO_T}no" >&6 4317 5953 4318 5954 for ac_func in valloc 4319 5955 do 4320 a c_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`4321 echo "$as_me: 4321: checking for $ac_func" >&55956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5957 echo "$as_me:$LINENO: checking for $ac_func" >&5 4322 5958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4323 if eval "test \"\${$a c_ac_var+set}\" = set"; then5959 if eval "test \"\${$as_ac_var+set}\" = set"; then 4324 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 4325 5961 else 4326 5962 cat >conftest.$ac_ext <<_ACEOF 4327 #line 4327 "configure" 4328 #include "confdefs.h" 5963 /* confdefs.h. */ 5964 _ACEOF 5965 cat confdefs.h >>conftest.$ac_ext 5966 cat >>conftest.$ac_ext <<_ACEOF 5967 /* end confdefs.h. */ 5968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5970 #define $ac_func innocuous_$ac_func 5971 4329 5972 /* System header to define __stub macros and hopefully few prototypes, 4330 which can conflict with char $ac_func (); below. */ 4331 #include <assert.h> 5973 which can conflict with char $ac_func (); below. 5974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5975 <limits.h> exists even on freestanding compilers. */ 5976 5977 #ifdef __STDC__ 5978 # include <limits.h> 5979 #else 5980 # include <assert.h> 5981 #endif 5982 5983 #undef $ac_func 5984 4332 5985 /* Override any gcc2 internal prototype to avoid an error. */ 4333 5986 #ifdef __cplusplus 4334 5987 extern "C" 5988 { 4335 5989 #endif 4336 5990 /* We use char because int might match the return type of a gcc2 4337 5991 builtin and then its argument prototype would still apply. */ 4338 5992 char $ac_func (); 4339 char (*f) ();4340 4341 int4342 main ()4343 {4344 5993 /* The GNU C library defines this for functions which it implements 4345 5994 to always fail with ENOSYS. Some functions are actually named … … 4348 5997 choke me 4349 5998 #else 4350 f= $ac_func;5999 char (*f) () = $ac_func; 4351 6000 #endif 4352 6001 #ifdef __cplusplus 6002 } 6003 #endif 6004 6005 int 6006 main () 6007 { 6008 return f != $ac_func; 4353 6009 ; 4354 6010 return 0; … … 4356 6012 _ACEOF 4357 6013 rm -f conftest.$ac_objext conftest$ac_exeext 4358 if { (eval echo "$as_me:4358: \"$ac_link\"") >&5 4359 (eval $ac_link) 2>&5 4360 ac_status=$? 4361 echo "$as_me:4361: \$? = $ac_status" >&5 6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6015 (eval $ac_link) 2>conftest.er1 6016 ac_status=$? 6017 grep -v '^ *+' conftest.er1 >conftest.err 6018 rm -f conftest.er1 6019 cat conftest.err >&5 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 6021 (exit $ac_status); } && 4363 { ac_try='test -s conftest$ac_exeext' 4364 { (eval echo "$as_me:4364: \"$ac_try\"") >&5 4365 (eval $ac_try) 2>&5 4366 ac_status=$? 4367 echo "$as_me:4367: \$? = $ac_status" >&5 6022 { ac_try='test -z "$ac_c_werror_flag" 6023 || test ! -s conftest.err' 6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6025 (eval $ac_try) 2>&5 6026 ac_status=$? 6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 (exit $ac_status); }; } && 6029 { ac_try='test -s conftest$ac_exeext' 6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6031 (eval $ac_try) 2>&5 6032 ac_status=$? 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 6034 (exit $ac_status); }; }; then 4369 eval "$a c_ac_var=yes"6035 eval "$as_ac_var=yes" 4370 6036 else 4371 6037 echo "$as_me: failed program was:" >&5 4372 cat conftest.$ac_ext >&5 4373 eval "$ac_ac_var=no" 4374 fi 4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4376 fi 4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_var'}'`" >&5 4378 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4379 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4380 cat >>confdefs.h <<EOF 4381 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4382 EOF 6038 sed 's/^/| /' conftest.$ac_ext >&5 6039 6040 eval "$as_ac_var=no" 6041 fi 6042 rm -f conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044 fi 6045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6047 if test `eval echo '${'$as_ac_var'}'` = yes; then 6048 cat >>confdefs.h <<_ACEOF 6049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6050 _ACEOF 4383 6051 4384 6052 fi … … 4387 6055 fi 4388 6056 4389 echo "$as_me:4389: checking if malloc debugging is wanted" >&5 6057 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 6058 # a non-standard Path 6059 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5 6060 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6 6061 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 6062 echo "$as_me:$LINENO: result: yes" >&5 6063 echo "${ECHO_T}yes" >&6 6064 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 6065 JNISUFFIX="jnilib" 6066 JNIFLAGS="-dynamiclib -fno-common -single_module" 6067 LDFLAGS="-framework JavaVM" 6068 else 6069 echo "$as_me:$LINENO: result: no" >&5 6070 echo "${ECHO_T}no" >&6 6071 JNIINC="" 6072 JNISUFFIX="so" 6073 JNIFLAGS="-shared" 6074 fi 6075 6076 6077 6078 6079 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 4390 6080 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4391 6081 … … 4394 6084 withval="$with_dmalloc" 4395 6085 if test "$withval" = yes; then 4396 echo "$as_me: 4396: result: yes" >&56086 echo "$as_me:$LINENO: result: yes" >&5 4397 6087 echo "${ECHO_T}yes" >&6 4398 cat >>confdefs.h <<\ EOF6088 cat >>confdefs.h <<\_ACEOF 4399 6089 #define WITH_DMALLOC 1 4400 EOF6090 _ACEOF 4401 6091 4402 6092 LIBS="$LIBS -ldmalloc" 4403 6093 LDFLAGS="$LDFLAGS -g" 4404 6094 else 4405 echo "$as_me: 4405: result: no" >&56095 echo "$as_me:$LINENO: result: no" >&5 4406 6096 echo "${ECHO_T}no" >&6 4407 6097 fi 4408 6098 else 4409 echo "$as_me: 4409: result: no" >&56099 echo "$as_me:$LINENO: result: no" >&5 4410 6100 echo "${ECHO_T}no" >&6 4411 6101 fi; 4412 6102 4413 echo "$as_me: 4413: checking which of rx or regex is wanted" >&56103 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5 4414 6104 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4415 6105 … … 4419 6109 if test "$withval" = yes; then 4420 6110 ac_with_regex=1 4421 echo "$as_me: 4421: result: regex" >&56111 echo "$as_me:$LINENO: result: regex" >&5 4422 6112 echo "${ECHO_T}regex" >&6 4423 cat >>confdefs.h <<\ EOF6113 cat >>confdefs.h <<\_ACEOF 4424 6114 #define WITH_REGEX 1 4425 EOF6115 _ACEOF 4426 6116 4427 6117 LIBOBJS="$LIBOBJS regex.o" … … 4429 6119 fi; 4430 6120 if test -z "$ac_with_regex"; then 4431 echo "$as_me: 4431: result: rx" >&56121 echo "$as_me:$LINENO: result: rx" >&5 4432 6122 echo "${ECHO_T}rx" >&6 4433 echo "$as_me: 4433: checking for re_rx_search" >&56123 echo "$as_me:$LINENO: checking for re_rx_search" >&5 4434 6124 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4435 6125 if test "${ac_cv_func_re_rx_search+set}" = set; then … … 4437 6127 else 4438 6128 cat >conftest.$ac_ext <<_ACEOF 4439 #line 4439 "configure" 4440 #include "confdefs.h" 6129 /* confdefs.h. */ 6130 _ACEOF 6131 cat confdefs.h >>conftest.$ac_ext 6132 cat >>conftest.$ac_ext <<_ACEOF 6133 /* end confdefs.h. */ 6134 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search. 6135 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6136 #define re_rx_search innocuous_re_rx_search 6137 4441 6138 /* System header to define __stub macros and hopefully few prototypes, 4442 which can conflict with char re_rx_search (); below. */ 4443 #include <assert.h> 6139 which can conflict with char re_rx_search (); below. 6140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6141 <limits.h> exists even on freestanding compilers. */ 6142 6143 #ifdef __STDC__ 6144 # include <limits.h> 6145 #else 6146 # include <assert.h> 6147 #endif 6148 6149 #undef re_rx_search 6150 4444 6151 /* Override any gcc2 internal prototype to avoid an error. */ 4445 6152 #ifdef __cplusplus 4446 6153 extern "C" 6154 { 4447 6155 #endif 4448 6156 /* We use char because int might match the return type of a gcc2 4449 6157 builtin and then its argument prototype would still apply. */ 4450 6158 char re_rx_search (); 4451 char (*f) ();4452 4453 int4454 main ()4455 {4456 6159 /* The GNU C library defines this for functions which it implements 4457 6160 to always fail with ENOSYS. Some functions are actually named … … 4460 6163 choke me 4461 6164 #else 4462 f= re_rx_search;6165 char (*f) () = re_rx_search; 4463 6166 #endif 4464 6167 #ifdef __cplusplus 6168 } 6169 #endif 6170 6171 int 6172 main () 6173 { 6174 return f != re_rx_search; 4465 6175 ; 4466 6176 return 0; … … 4468 6178 _ACEOF 4469 6179 rm -f conftest.$ac_objext conftest$ac_exeext 4470 if { (eval echo "$as_me:4470: \"$ac_link\"") >&5 4471 (eval $ac_link) 2>&5 4472 ac_status=$? 4473 echo "$as_me:4473: \$? = $ac_status" >&5 6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6181 (eval $ac_link) 2>conftest.er1 6182 ac_status=$? 6183 grep -v '^ *+' conftest.er1 >conftest.err 6184 rm -f conftest.er1 6185 cat conftest.err >&5 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 6187 (exit $ac_status); } && 4475 { ac_try='test -s conftest$ac_exeext' 4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5 4477 (eval $ac_try) 2>&5 4478 ac_status=$? 4479 echo "$as_me:4479: \$? = $ac_status" >&5 6188 { ac_try='test -z "$ac_c_werror_flag" 6189 || test ! -s conftest.err' 6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6191 (eval $ac_try) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); }; } && 6195 { ac_try='test -s conftest$ac_exeext' 6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6197 (eval $ac_try) 2>&5 6198 ac_status=$? 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 6200 (exit $ac_status); }; }; then 4481 6201 ac_cv_func_re_rx_search=yes 4482 6202 else 4483 6203 echo "$as_me: failed program was:" >&5 4484 cat conftest.$ac_ext >&5 6204 sed 's/^/| /' conftest.$ac_ext >&5 6205 4485 6206 ac_cv_func_re_rx_search=no 4486 6207 fi 4487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4488 fi 4489 echo "$as_me:4489: result: $ac_cv_func_re_rx_search" >&5 6208 rm -f conftest.err conftest.$ac_objext \ 6209 conftest$ac_exeext conftest.$ac_ext 6210 fi 6211 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5 4490 6212 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4491 6213 if test $ac_cv_func_re_rx_search = yes; then … … 4497 6219 fi 4498 6220 6221 4499 6222 # --------------------------------------------------------------------------- 4500 6223 if test "$ac_cv_func_alloca" = 'no'; then 4501 LIBOBJS="$LIBOBJS xmalloc.o error.o" 4502 fi 6224 case $LIBOBJS in 6225 "xmalloc.$ac_objext" | \ 6226 *" xmalloc.$ac_objext" | \ 6227 "xmalloc.$ac_objext "* | \ 6228 *" xmalloc.$ac_objext "* ) ;; 6229 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;; 6230 esac 6231 6232 case $LIBOBJS in 6233 "error.$ac_objext" | \ 6234 *" error.$ac_objext" | \ 6235 "error.$ac_objext "* | \ 6236 *" error.$ac_objext "* ) ;; 6237 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 6238 esac 6239 6240 fi 6241 4503 6242 4504 6243 # --------------------------------------------------------------------------- 4505 6244 4506 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"4507 ac_config_commands="$ac_config_commands default"6245 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile" 6246 ac_config_commands="$ac_config_commands default" 4508 6247 cat >confcache <<\_ACEOF 4509 6248 # This file is a shell script that caches the results of configure … … 4516 6255 # the --recheck option to rerun configure. 4517 6256 # 4518 # `ac_cv_env_foo' variables (set or unset) will be overrid en when6257 # `ac_cv_env_foo' variables (set or unset) will be overridden when 4519 6258 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4520 6259 # following values. … … 4534 6273 # substitution turns \\\\ into \\, and sed turns \\ into \). 4535 6274 sed -n \ 4536 4537 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"6275 "s/'/'\\\\''/g; 6276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4538 6277 ;; 4539 6278 *) 4540 6279 # `set' quotes correctly as required by POSIX, so do not add quotes. 4541 6280 sed -n \ 4542 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"6281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4543 6282 ;; 4544 6283 esac; … … 4551 6290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4552 6291 : end' >>confcache 4553 if cmp -s $cache_file confcache; then :; else6292 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4554 6293 if test -w $cache_file; then 4555 6294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" … … 4570 6309 # (actually we leave an empty line to preserve line numbers). 4571 6310 if test "x$srcdir" = x.; then 4572 ac_vpsub='/^[ ]*VPATH[]*=/{6311 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4573 6312 s/:*\$(srcdir):*/:/; 4574 6313 s/:*\${srcdir}:*/:/; 4575 6314 s/:*@srcdir@:*/:/; 4576 s/^\([^=]*=[ 6315 s/^\([^=]*=[ ]*\):*/\1/; 4577 6316 s/:*$//; 4578 s/^[^=]*=[ 6317 s/^[^=]*=[ ]*$//; 4579 6318 }' 4580 6319 fi 4581 6320 4582 6321 DEFS=-DHAVE_CONFIG_H 6322 6323 ac_libobjs= 6324 ac_ltlibobjs= 6325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6326 # 1. Remove the extension, and $U if already installed. 6327 ac_i=`echo "$ac_i" | 6328 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6329 # 2. Add them. 6330 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6331 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6332 done 6333 LIBOBJS=$ac_libobjs 6334 6335 LTLIBOBJS=$ac_ltlibobjs 6336 6337 4583 6338 4584 6339 : ${CONFIG_STATUS=./config.status} 4585 6340 ac_clean_files_save=$ac_clean_files 4586 6341 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4587 { echo "$as_me: 4587: creating $CONFIG_STATUS" >&56342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4588 6343 echo "$as_me: creating $CONFIG_STATUS" >&6;} 4589 6344 cat >$CONFIG_STATUS <<_ACEOF 4590 6345 #! $SHELL 4591 # Generated automatically by configure.6346 # Generated by $as_me. 4592 6347 # Run this file to recreate the current configuration. 4593 6348 # Compiler output produced by configure, useful for debugging … … 4595 6350 4596 6351 debug=false 6352 ac_cs_recheck=false 6353 ac_cs_silent=false 4597 6354 SHELL=\${CONFIG_SHELL-$SHELL} 4598 ac_cs_invocation="\$0 \$@"4599 4600 6355 _ACEOF 4601 6356 4602 6357 cat >>$CONFIG_STATUS <<\_ACEOF 6358 ## --------------------- ## 6359 ## M4sh Initialization. ## 6360 ## --------------------- ## 6361 4603 6362 # Be Bourne compatible 4604 6363 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4605 6364 emulate sh 4606 6365 NULLCMD=: 6366 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6367 # is contrary to our usage. Disable this feature. 6368 alias -g '${1+"$@"}'='"$@"' 4607 6369 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4608 6370 set -o posix 4609 6371 fi 6372 DUALCASE=1; export DUALCASE # for MKS sh 6373 6374 # Support unset when possible. 6375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6376 as_unset=unset 6377 else 6378 as_unset=false 6379 fi 6380 6381 6382 # Work around bugs in pre-3.0 UWIN ksh. 6383 $as_unset ENV MAIL MAILPATH 6384 PS1='$ ' 6385 PS2='> ' 6386 PS4='+ ' 6387 6388 # NLS nuisances. 6389 for as_var in \ 6390 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6391 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6392 LC_TELEPHONE LC_TIME 6393 do 6394 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6395 eval $as_var=C; export $as_var 6396 else 6397 $as_unset $as_var 6398 fi 6399 done 6400 6401 # Required to use basename. 6402 if expr a : '\(a\)' >/dev/null 2>&1; then 6403 as_expr=expr 6404 else 6405 as_expr=false 6406 fi 6407 6408 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6409 as_basename=basename 6410 else 6411 as_basename=false 6412 fi 6413 4610 6414 4611 6415 # Name of the executable. 4612 as_me=`echo "$0" |sed 's,.*[\\/],,'` 6416 as_me=`$as_basename "$0" || 6417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6418 X"$0" : 'X\(//\)$' \| \ 6419 X"$0" : 'X\(/\)$' \| \ 6420 . : '\(.\)' 2>/dev/null || 6421 echo X/"$0" | 6422 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6423 /^X\/\(\/\/\)$/{ s//\1/; q; } 6424 /^X\/\(\/\).*/{ s//\1/; q; } 6425 s/.*/./; q'` 6426 6427 6428 # PATH needs CR, and LINENO needs CR and PATH. 6429 # Avoid depending upon Character Ranges. 6430 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6433 as_cr_digits='0123456789' 6434 as_cr_alnum=$as_cr_Letters$as_cr_digits 6435 6436 # The user is always right. 6437 if test "${PATH_SEPARATOR+set}" != set; then 6438 echo "#! /bin/sh" >conf$$.sh 6439 echo "exit 0" >>conf$$.sh 6440 chmod +x conf$$.sh 6441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6442 PATH_SEPARATOR=';' 6443 else 6444 PATH_SEPARATOR=: 6445 fi 6446 rm -f conf$$.sh 6447 fi 6448 6449 6450 as_lineno_1=$LINENO 6451 as_lineno_2=$LINENO 6452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6453 test "x$as_lineno_1" != "x$as_lineno_2" && 6454 test "x$as_lineno_3" = "x$as_lineno_2" || { 6455 # Find who we are. Look in the path if we contain no path at all 6456 # relative or not. 6457 case $0 in 6458 *[\\/]* ) as_myself=$0 ;; 6459 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460 for as_dir in $PATH 6461 do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6465 done 6466 6467 ;; 6468 esac 6469 # We did not find ourselves, most probably we were run as `sh COMMAND' 6470 # in which case we are not to be found in the path. 6471 if test "x$as_myself" = x; then 6472 as_myself=$0 6473 fi 6474 if test ! -f "$as_myself"; then 6475 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6476 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6477 { (exit 1); exit 1; }; } 6478 fi 6479 case $CONFIG_SHELL in 6480 '') 6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6483 do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for as_base in sh bash ksh sh5; do 6487 case $as_dir in 6488 /*) 6489 if ("$as_dir/$as_base" -c ' 6490 as_lineno_1=$LINENO 6491 as_lineno_2=$LINENO 6492 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6493 test "x$as_lineno_1" != "x$as_lineno_2" && 6494 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6495 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6496 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6497 CONFIG_SHELL=$as_dir/$as_base 6498 export CONFIG_SHELL 6499 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6500 fi;; 6501 esac 6502 done 6503 done 6504 ;; 6505 esac 6506 6507 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6508 # uniformly replaced by the line number. The first 'sed' inserts a 6509 # line-number line before each line; the second 'sed' does the real 6510 # work. The second script uses 'N' to pair each line-number line 6511 # with the numbered line, and appends trailing '-' during 6512 # substitution so that $LINENO is not a special case at line end. 6513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6514 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6515 sed '=' <$as_myself | 6516 sed ' 6517 N 6518 s,$,-, 6519 : loop 6520 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6521 t loop 6522 s,-$,, 6523 s,^['$as_cr_digits']*\n,, 6524 ' >$as_me.lineno && 6525 chmod +x $as_me.lineno || 6526 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6527 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6528 { (exit 1); exit 1; }; } 6529 6530 # Don't try to exec as it changes $[0], causing all sort of problems 6531 # (the dirname of $[0] is not the place where we might find the 6532 # original and so on. Autoconf is especially sensible to this). 6533 . ./$as_me.lineno 6534 # Exit status is that of the last command. 6535 exit 6536 } 6537 6538 6539 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6540 *c*,-n*) ECHO_N= ECHO_C=' 6541 ' ECHO_T=' ' ;; 6542 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6543 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6544 esac 4613 6545 4614 6546 if expr a : '\(a\)' >/dev/null 2>&1; then … … 4636 6568 rm -f conf$$ conf$$.exe conf$$.file 4637 6569 6570 if mkdir -p . 2>/dev/null; then 6571 as_mkdir_p=: 6572 else 6573 test -d ./-p && rmdir ./-p 6574 as_mkdir_p=false 6575 fi 6576 4638 6577 as_executable_p="test -f" 4639 6578 4640 # Support unset when possible. 4641 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4642 as_unset=unset 4643 else 4644 as_unset=false 4645 fi 4646 4647 # NLS nuisances. 4648 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 4649 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 4650 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 4651 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 4652 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 4653 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 4654 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 4655 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 6579 # Sed expression to map a string onto a valid CPP name. 6580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6581 6582 # Sed expression to map a string onto a valid variable name. 6583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6584 4656 6585 4657 6586 # IFS … … 4662 6591 4663 6592 # CDPATH. 4664 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }6593 $as_unset CDPATH 4665 6594 4666 6595 exec 6>&1 4667 6596 6597 # Open the log real soon, to keep \$[0] and so on meaningful, and to 6598 # report actual input values of CONFIG_FILES etc. instead of their 6599 # values after options handling. Logging --version etc. is OK. 6600 exec 5>>config.log 6601 { 6602 echo 6603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6604 ## Running $as_me. ## 6605 _ASBOX 6606 } >&5 6607 cat >&5 <<_CSEOF 6608 6609 This file was extended by $as_me, which was 6610 generated by GNU Autoconf 2.59. Invocation command line was 6611 6612 CONFIG_FILES = $CONFIG_FILES 6613 CONFIG_HEADERS = $CONFIG_HEADERS 6614 CONFIG_LINKS = $CONFIG_LINKS 6615 CONFIG_COMMANDS = $CONFIG_COMMANDS 6616 $ $0 $@ 6617 6618 _CSEOF 6619 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6620 echo >&5 4668 6621 _ACEOF 4669 6622 … … 4685 6638 fi 4686 6639 4687 cat >>$CONFIG_STATUS <<\ EOF6640 cat >>$CONFIG_STATUS <<\_ACEOF 4688 6641 4689 6642 ac_cs_usage="\ … … 4695 6648 -h, --help print this help, then exit 4696 6649 -V, --version print version number, then exit 6650 -q, --quiet do not print progress messages 4697 6651 -d, --debug don't remove temporary files 4698 6652 --recheck update $as_me by reconfiguring in the same conditions 4699 6653 --file=FILE[:TEMPLATE] 4700 6654 instantiate the configuration file FILE 4701 6655 --header=FILE[:TEMPLATE] 4702 6656 instantiate the configuration header FILE 4703 6657 4704 6658 Configuration files: … … 4712 6666 4713 6667 Report bugs to <[email protected]>." 4714 EOF4715 4716 cat >>$CONFIG_STATUS << EOF6668 _ACEOF 6669 6670 cat >>$CONFIG_STATUS <<_ACEOF 4717 6671 ac_cs_version="\\ 4718 6672 config.status 4719 configured by $0, generated by GNU Autoconf 2.5 0,6673 configured by $0, generated by GNU Autoconf 2.59, 4720 6674 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 4721 6675 4722 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 4723 Free Software Foundation, Inc. 6676 Copyright (C) 2003 Free Software Foundation, Inc. 4724 6677 This config.status script is free software; the Free Software Foundation 4725 6678 gives unlimited permission to copy, distribute and modify it." 4726 6679 srcdir=$srcdir 4727 6680 INSTALL="$INSTALL" 4728 EOF4729 4730 cat >>$CONFIG_STATUS <<\ EOF6681 _ACEOF 6682 6683 cat >>$CONFIG_STATUS <<\_ACEOF 4731 6684 # If no file are specified by the user, then we need to provide default 4732 6685 # value. By we need to know if files were specified by the user. … … 4738 6691 ac_option=`expr "x$1" : 'x\([^=]*\)='` 4739 6692 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 4740 shift 4741 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 4742 shift 6693 ac_shift=: 4743 6694 ;; 4744 -*);; 6695 -*) 6696 ac_option=$1 6697 ac_optarg=$2 6698 ac_shift=shift 6699 ;; 4745 6700 *) # This is not an option, so the user has probably given explicit 4746 6701 # arguments. 6702 ac_option=$1 4747 6703 ac_need_defaults=false;; 4748 6704 esac 4749 6705 4750 case $ 1in6706 case $ac_option in 4751 6707 # Handling of the options. 4752 EOF4753 cat >>$CONFIG_STATUS << EOF6708 _ACEOF 6709 cat >>$CONFIG_STATUS <<\_ACEOF 4754 6710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4755 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 4756 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 4757 EOF 4758 cat >>$CONFIG_STATUS <<\EOF 6711 ac_cs_recheck=: ;; 4759 6712 --version | --vers* | -V ) 4760 6713 echo "$ac_cs_version"; exit 0 ;; 4761 6714 --he | --h) 4762 6715 # Conflict between --help and --header 4763 { { echo "$as_me: 4763: error: ambiguous option: $16716 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4764 6717 Try \`$0 --help' for more information." >&5 4765 6718 echo "$as_me: error: ambiguous option: $1 … … 4771 6724 debug=: ;; 4772 6725 --file | --fil | --fi | --f ) 4773 shift4774 CONFIG_FILES="$CONFIG_FILES $ 1"6726 $ac_shift 6727 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4775 6728 ac_need_defaults=false;; 4776 6729 --header | --heade | --head | --hea ) 4777 shift4778 CONFIG_HEADERS="$CONFIG_HEADERS $ 1"6730 $ac_shift 6731 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4779 6732 ac_need_defaults=false;; 4780 4781 # Handling of arguments. 4782 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4783 'src/text/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 4784 'src/images/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 4785 'src/scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 4786 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 4787 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 4788 'java/org/greenstone/mg/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 4789 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 4790 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6734 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6735 ac_cs_silent=: ;; 4791 6736 4792 6737 # This is an error. 4793 -*) { { echo "$as_me: 4793: error: unrecognized option: $16738 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4794 6739 Try \`$0 --help' for more information." >&5 4795 6740 echo "$as_me: error: unrecognized option: $1 4796 6741 Try \`$0 --help' for more information." >&2;} 4797 6742 { (exit 1); exit 1; }; } ;; 4798 *) { { echo "$as_me:4798: error: invalid argument: $1" >&5 4799 echo "$as_me: error: invalid argument: $1" >&2;} 4800 { (exit 1); exit 1; }; };; 6743 6744 *) ac_config_targets="$ac_config_targets $1" ;; 6745 4801 6746 esac 4802 6747 shift 4803 6748 done 4804 6749 4805 exec 5>>config.log 4806 cat >&5 << _ACEOF 4807 4808 ## ----------------------- ## 4809 ## Running config.status. ## 4810 ## ----------------------- ## 4811 4812 This file was extended by $as_me 2.50, executed with 4813 > $ac_cs_invocation 4814 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4815 4816 _ACEOF 4817 EOF 4818 4819 cat >>$CONFIG_STATUS <<\EOF 6750 ac_configure_extra_args= 6751 6752 if $ac_cs_silent; then 6753 exec 6>/dev/null 6754 ac_configure_extra_args="$ac_configure_extra_args --silent" 6755 fi 6756 6757 _ACEOF 6758 cat >>$CONFIG_STATUS <<_ACEOF 6759 if \$ac_cs_recheck; then 6760 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6761 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6762 fi 6763 6764 _ACEOF 6765 6766 6767 6768 6769 6770 cat >>$CONFIG_STATUS <<\_ACEOF 6771 for ac_config_target in $ac_config_targets 6772 do 6773 case "$ac_config_target" in 6774 # Handling of arguments. 6775 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6776 "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 6777 "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 6778 "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 6779 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 6780 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 6781 "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;; 6782 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 6783 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6786 { (exit 1); exit 1; }; };; 6787 esac 6788 done 6789 4820 6790 # If the user did not use the arguments to specify the items to instantiate, 4821 6791 # then the envvar interface is used. Set only those that are not. … … 4828 6798 fi 4829 6799 6800 # Have a temporary directory for convenience. Make it in the build tree 6801 # simply because there is no reason to put it here, and in addition, 6802 # creating and moving files from /tmp can sometimes cause problems. 4830 6803 # Create a temporary directory, and hook for its removal unless debugging. 4831 6804 $debug || 4832 6805 { 4833 6806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4834 trap '{ (exit $?); exit $?; }' 1 2 13 156807 trap '{ (exit 1); exit 1; }' 1 2 13 15 4835 6808 } 4836 6809 4837 6810 # Create a (secure) tmp directory for tmp files. 4838 : ${TMPDIR=/tmp} 6811 4839 6812 { 4840 tmp=`(umask 077 && mktemp -d -q " $TMPDIR/csXXXXXX") 2>/dev/null` &&6813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 4841 6814 test -n "$tmp" && test -d "$tmp" 4842 6815 } || 4843 6816 { 4844 tmp= $TMPDIR/cs$$-$RANDOM6817 tmp=./confstat$$-$RANDOM 4845 6818 (umask 077 && mkdir $tmp) 4846 6819 } || 4847 6820 { 4848 echo "$me: cannot create a temporary directory in $TMPDIR" >&26821 echo "$me: cannot create a temporary directory in ." >&2 4849 6822 { (exit 1); exit 1; } 4850 6823 } 4851 6824 4852 EOF4853 4854 cat >>$CONFIG_STATUS << EOF6825 _ACEOF 6826 6827 cat >>$CONFIG_STATUS <<_ACEOF 4855 6828 4856 6829 # … … 4865 6838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4866 6839 s,@SHELL@,$SHELL,;t t 6840 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6841 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6842 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6843 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6844 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6845 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4867 6846 s,@exec_prefix@,$exec_prefix,;t t 4868 6847 s,@prefix@,$prefix,;t t … … 4880 6859 s,@infodir@,$infodir,;t t 4881 6860 s,@mandir@,$mandir,;t t 4882 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4883 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4884 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4885 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4886 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6861 s,@build_alias@,$build_alias,;t t 6862 s,@host_alias@,$host_alias,;t t 6863 s,@target_alias@,$target_alias,;t t 6864 s,@DEFS@,$DEFS,;t t 4887 6865 s,@ECHO_C@,$ECHO_C,;t t 4888 6866 s,@ECHO_N@,$ECHO_N,;t t 4889 6867 s,@ECHO_T@,$ECHO_T,;t t 4890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t4891 s,@DEFS@,$DEFS,;t t4892 6868 s,@LIBS@,$LIBS,;t t 4893 6869 s,@PACKAGE@,$PACKAGE,;t t … … 4913 6889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 4914 6890 s,@CPP@,$CPP,;t t 6891 s,@EGREP@,$EGREP,;t t 4915 6892 s,@U@,$U,;t t 4916 6893 s,@ANSI2KNR@,$ANSI2KNR,;t t 4917 6894 s,@ALLOCA@,$ALLOCA,;t t 4918 6895 s,@LIBOBJS@,$LIBOBJS,;t t 6896 s,@JNIINC@,$JNIINC,;t t 6897 s,@JNISUFFIX@,$JNISUFFIX,;t t 6898 s,@JNIFLAGS@,$JNIFLAGS,;t t 6899 s,@LIBOBJS@,$LIBOBJS,;t t 6900 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4919 6901 CEOF 4920 6902 4921 EOF4922 4923 cat >>$CONFIG_STATUS <<\ EOF6903 _ACEOF 6904 6905 cat >>$CONFIG_STATUS <<\_ACEOF 4924 6906 # Split the substitutions into bite-sized pieces for seds with 4925 6907 # small command number limits, like on Digital OSF/1 and HP-UX. … … 4946 6928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 4947 6929 if test -z "$ac_sed_cmds"; then 4948 6930 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 4949 6931 else 4950 6932 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 4951 6933 fi 4952 6934 ac_sed_frag=`expr $ac_sed_frag + 1` … … 4960 6942 fi # test -n "$CONFIG_FILES" 4961 6943 4962 EOF4963 cat >>$CONFIG_STATUS <<\ EOF6944 _ACEOF 6945 cat >>$CONFIG_STATUS <<\_ACEOF 4964 6946 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 4965 6947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4966 6948 case $ac_file in 4967 6949 - | *:- | *:-:* ) # input from stdin 4968 4969 4970 6950 cat >$tmp/stdin 6951 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4971 6953 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 4972 6954 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 4973 6955 * ) ac_file_in=$ac_file.in ;; 4974 6956 esac 4975 6957 4976 6958 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 4977 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4978 X"$ac_file" : 'X\(//\)[^/]' \| \ 4979 X"$ac_file" : 'X\(//\)$' \| \ 4980 X"$ac_file" : 'X\(/\)' \| \ 4981 . : '\(.\)' 2>/dev/null || 6959 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6961 X"$ac_file" : 'X\(//\)[^/]' \| \ 6962 X"$ac_file" : 'X\(//\)$' \| \ 6963 X"$ac_file" : 'X\(/\)' \| \ 6964 . : '\(.\)' 2>/dev/null || 4982 6965 echo X"$ac_file" | 4983 6966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 4986 6969 /^X\(\/\).*/{ s//\1/; q; } 4987 6970 s/.*/./; q'` 4988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4989 { case "$ac_dir" in 4990 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 4991 *) as_incr_dir=.;; 6971 { if $as_mkdir_p; then 6972 mkdir -p "$ac_dir" 6973 else 6974 as_dir="$ac_dir" 6975 as_dirs= 6976 while test ! -d "$as_dir"; do 6977 as_dirs="$as_dir $as_dirs" 6978 as_dir=`(dirname "$as_dir") 2>/dev/null || 6979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6980 X"$as_dir" : 'X\(//\)[^/]' \| \ 6981 X"$as_dir" : 'X\(//\)$' \| \ 6982 X"$as_dir" : 'X\(/\)' \| \ 6983 . : '\(.\)' 2>/dev/null || 6984 echo X"$as_dir" | 6985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6986 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6987 /^X\(\/\/\)$/{ s//\1/; q; } 6988 /^X\(\/\).*/{ s//\1/; q; } 6989 s/.*/./; q'` 6990 done 6991 test ! -n "$as_dirs" || mkdir $as_dirs 6992 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6993 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6994 { (exit 1); exit 1; }; }; } 6995 6996 ac_builddir=. 6997 6998 if test "$ac_dir" != .; then 6999 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7000 # A "../" for each directory in $ac_dir_suffix. 7001 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7002 else 7003 ac_dir_suffix= ac_top_builddir= 7004 fi 7005 7006 case $srcdir in 7007 .) # No --srcdir option. We are building in place. 7008 ac_srcdir=. 7009 if test -z "$ac_top_builddir"; then 7010 ac_top_srcdir=. 7011 else 7012 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7013 fi ;; 7014 [\\/]* | ?:[\\/]* ) # Absolute path. 7015 ac_srcdir=$srcdir$ac_dir_suffix; 7016 ac_top_srcdir=$srcdir ;; 7017 *) # Relative path. 7018 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7019 ac_top_srcdir=$ac_top_builddir$srcdir ;; 4992 7020 esac 4993 as_dummy="$ac_dir" 4994 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 4995 case $as_mkdir_dir in 4996 # Skip DOS drivespec 4997 ?:) as_incr_dir=$as_mkdir_dir ;; 4998 *) 4999 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5000 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5001 ;; 5002 esac 5003 done; } 5004 5005 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 5006 # A "../" for each directory in $ac_dir_suffix. 5007 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 5008 else 5009 ac_dir_suffix= ac_dots= 5010 fi 5011 5012 case $srcdir in 5013 .) ac_srcdir=. 5014 if test -z "$ac_dots"; then 5015 ac_top_srcdir=. 5016 else 5017 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5018 fi ;; 5019 [\\/]* | ?:[\\/]* ) 5020 ac_srcdir=$srcdir$ac_dir_suffix; 5021 ac_top_srcdir=$srcdir ;; 5022 *) # Relative path. 5023 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5024 ac_top_srcdir=$ac_dots$srcdir ;; 5025 esac 7021 7022 # Do not use `cd foo && pwd` to compute absolute paths, because 7023 # the directories may not exist. 7024 case `pwd` in 7025 .) ac_abs_builddir="$ac_dir";; 7026 *) 7027 case "$ac_dir" in 7028 .) ac_abs_builddir=`pwd`;; 7029 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7030 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7031 esac;; 7032 esac 7033 case $ac_abs_builddir in 7034 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7035 *) 7036 case ${ac_top_builddir}. in 7037 .) ac_abs_top_builddir=$ac_abs_builddir;; 7038 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7039 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7040 esac;; 7041 esac 7042 case $ac_abs_builddir in 7043 .) ac_abs_srcdir=$ac_srcdir;; 7044 *) 7045 case $ac_srcdir in 7046 .) ac_abs_srcdir=$ac_abs_builddir;; 7047 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7048 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7049 esac;; 7050 esac 7051 case $ac_abs_builddir in 7052 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7053 *) 7054 case $ac_top_srcdir in 7055 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7056 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7057 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7058 esac;; 7059 esac 7060 5026 7061 5027 7062 case $INSTALL in 5028 7063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5029 *) ac_INSTALL=$ac_ dots$INSTALL ;;7064 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5030 7065 esac 5031 7066 5032 7067 if test x"$ac_file" != x-; then 5033 { echo "$as_me: 5033: creating $ac_file" >&57068 { echo "$as_me:$LINENO: creating $ac_file" >&5 5034 7069 echo "$as_me: creating $ac_file" >&6;} 5035 7070 rm -f "$ac_file" … … 5037 7072 # Let's still pretend it is `configure' which instantiates (i.e., don't 5038 7073 # use $as_me), people would be surprised to read: 5039 # /* config.h. Generated automatically by config.status. */ 5040 configure_input="Generated automatically from `echo $ac_file_in | 5041 sed 's,.*/,,'` by configure." 7074 # /* config.h. Generated by config.status. */ 7075 if test x"$ac_file" = x-; then 7076 configure_input= 7077 else 7078 configure_input="$ac_file. " 7079 fi 7080 configure_input=$configure_input"Generated from `echo $ac_file_in | 7081 sed 's,.*/,,'` by configure." 5042 7082 5043 7083 # First look for the input files in the build tree, otherwise in the … … 5048 7088 -) echo $tmp/stdin ;; 5049 7089 [\\/$]*) 5050 5051 test -f "$f" || { { echo "$as_me:5051: error: cannot find input file: $f" >&57090 # Absolute (can't be DOS-style, as IFS=:) 7091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5052 7092 echo "$as_me: error: cannot find input file: $f" >&2;} 5053 7093 { (exit 1); exit 1; }; } 5054 echo $f;;7094 echo "$f";; 5055 7095 *) # Relative 5056 5057 5058 echo $f 5059 5060 5061 echo $srcdir/$f 5062 5063 5064 { { echo "$as_me:5064: error: cannot find input file: $f" >&57096 if test -f "$f"; then 7097 # Build tree 7098 echo "$f" 7099 elif test -f "$srcdir/$f"; then 7100 # Source tree 7101 echo "$srcdir/$f" 7102 else 7103 # /dev/null tree 7104 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5065 7105 echo "$as_me: error: cannot find input file: $f" >&2;} 5066 7106 { (exit 1); exit 1; }; } 5067 7107 fi;; 5068 7108 esac 5069 7109 done` || { (exit 1); exit 1; } 5070 EOF5071 cat >>$CONFIG_STATUS << EOF7110 _ACEOF 7111 cat >>$CONFIG_STATUS <<_ACEOF 5072 7112 sed "$ac_vpsub 5073 7113 $extrasub 5074 EOF5075 cat >>$CONFIG_STATUS <<\ EOF7114 _ACEOF 7115 cat >>$CONFIG_STATUS <<\_ACEOF 5076 7116 :t 5077 7117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5078 7118 s,@configure_input@,$configure_input,;t t 5079 7119 s,@srcdir@,$ac_srcdir,;t t 7120 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5080 7121 s,@top_srcdir@,$ac_top_srcdir,;t t 7122 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7123 s,@builddir@,$ac_builddir,;t t 7124 s,@abs_builddir@,$ac_abs_builddir,;t t 7125 s,@top_builddir@,$ac_top_builddir,;t t 7126 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5081 7127 s,@INSTALL@,$ac_INSTALL,;t t 5082 7128 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out … … 5090 7136 5091 7137 done 5092 EOF5093 cat >>$CONFIG_STATUS <<\ EOF7138 _ACEOF 7139 cat >>$CONFIG_STATUS <<\_ACEOF 5094 7140 5095 7141 # … … 5101 7147 # 5102 7148 # ac_d sets the value in "#define NAME VALUE" lines. 5103 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][]*\)'5104 ac_dB='[ 7149 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7150 ac_dB='[ ].*$,\1#\2' 5105 7151 ac_dC=' ' 5106 7152 ac_dD=',;t' 5107 7153 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5108 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'7154 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5109 7155 ac_uB='$,\1#\2define\3' 5110 7156 ac_uC=' ' … … 5115 7161 case $ac_file in 5116 7162 - | *:- | *:-:* ) # input from stdin 5117 5118 5119 7163 cat >$tmp/stdin 7164 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5120 7166 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5121 7167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5122 7168 * ) ac_file_in=$ac_file.in ;; 5123 7169 esac 5124 7170 5125 test x"$ac_file" != x- && { echo "$as_me: 5125: creating $ac_file" >&57171 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5126 7172 echo "$as_me: creating $ac_file" >&6;} 5127 7173 … … 5133 7179 -) echo $tmp/stdin ;; 5134 7180 [\\/$]*) 5135 5136 test -f "$f" || { { echo "$as_me:5136: error: cannot find input file: $f" >&57181 # Absolute (can't be DOS-style, as IFS=:) 7182 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5137 7183 echo "$as_me: error: cannot find input file: $f" >&2;} 5138 7184 { (exit 1); exit 1; }; } 5139 echo $f;; 7185 # Do quote $f, to prevent DOS paths from being IFS'd. 7186 echo "$f";; 5140 7187 *) # Relative 5141 5142 5143 echo $f 5144 5145 5146 echo $srcdir/$f 5147 5148 5149 { { echo "$as_me:5149: error: cannot find input file: $f" >&57188 if test -f "$f"; then 7189 # Build tree 7190 echo "$f" 7191 elif test -f "$srcdir/$f"; then 7192 # Source tree 7193 echo "$srcdir/$f" 7194 else 7195 # /dev/null tree 7196 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5150 7197 echo "$as_me: error: cannot find input file: $f" >&2;} 5151 7198 { (exit 1); exit 1; }; } 5152 7199 fi;; 5153 7200 esac 5154 7201 done` || { (exit 1); exit 1; } 5155 7202 # Remove the trailing spaces. 5156 sed 's/[ 5157 5158 EOF7203 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7204 7205 _ACEOF 5159 7206 5160 7207 # Transform confdefs.h into two sed scripts, `conftest.defines' and … … 5172 7219 # 0-ary CPP macros) applies to n-ary macro definitions. 5173 7220 # See the Autoconf documentation for `clear'. 5174 cat >confdef2sed.sed <<\ EOF7221 cat >confdef2sed.sed <<\_ACEOF 5175 7222 s/[\\&,]/\\&/g 5176 7223 s,[\\$`],\\&,g 5177 7224 t clear 5178 7225 : clear 5179 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp7226 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5180 7227 t end 5181 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp7228 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5182 7229 : end 5183 EOF7230 _ACEOF 5184 7231 # If some macros were called several times there might be several times 5185 7232 # the same #defines, which is useless. Nevertheless, we may not want to … … 5192 7239 # example, in the case of _POSIX_SOURCE, which is predefined and required 5193 7240 # on some systems where configure will not decide to define it. 5194 cat >>conftest.undefs <<\ EOF5195 s,^[ ]*#[ ]*undef[ ][]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,5196 EOF7241 cat >>conftest.undefs <<\_ACEOF 7242 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7243 _ACEOF 5197 7244 5198 7245 # Break up conftest.defines because some shells have a limit on the size 5199 7246 # of here documents, and old seds have small limits too (100 cmds). 5200 7247 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5201 echo ' if egrep "^[ ]*#[]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS7248 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5202 7249 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5203 7250 echo ' :' >>$CONFIG_STATUS … … 5208 7255 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5209 7256 # Speed up: don't consider the non `#define' lines. 5210 echo '/^[ ]*#[]*define/!b' >>$CONFIG_STATUS7257 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5211 7258 # Work around the forget-to-reset-the-flag bug. 5212 7259 echo 't clr' >>$CONFIG_STATUS … … 5223 7270 done 5224 7271 rm -f conftest.defines 5225 echo ' fi # egrep' >>$CONFIG_STATUS7272 echo ' fi # grep' >>$CONFIG_STATUS 5226 7273 echo >>$CONFIG_STATUS 5227 7274 … … 5235 7282 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5236 7283 # Speed up: don't consider the non `#undef' 5237 echo '/^[ ]*#[]*undef/!b' >>$CONFIG_STATUS7284 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5238 7285 # Work around the forget-to-reset-the-flag bug. 5239 7286 echo 't clr' >>$CONFIG_STATUS … … 5251 7298 rm -f conftest.undefs 5252 7299 5253 cat >>$CONFIG_STATUS <<\ EOF7300 cat >>$CONFIG_STATUS <<\_ACEOF 5254 7301 # Let's still pretend it is `configure' which instantiates (i.e., don't 5255 7302 # use $as_me), people would be surprised to read: 5256 # /* config.h. Generated automaticallyby config.status. */7303 # /* config.h. Generated by config.status. */ 5257 7304 if test x"$ac_file" = x-; then 5258 echo "/* Generated automaticallyby configure. */" >$tmp/config.h7305 echo "/* Generated by configure. */" >$tmp/config.h 5259 7306 else 5260 echo "/* $ac_file. Generated automaticallyby configure. */" >$tmp/config.h7307 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5261 7308 fi 5262 7309 cat $tmp/in >>$tmp/config.h 5263 7310 rm -f $tmp/in 5264 7311 if test x"$ac_file" != x-; then 5265 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then5266 { echo "$as_me: 5266: $ac_file is unchanged" >&57312 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7313 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5267 7314 echo "$as_me: $ac_file is unchanged" >&6;} 5268 7315 else 5269 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5270 X"$ac_file" : 'X\(//\)[^/]' \| \ 5271 X"$ac_file" : 'X\(//\)$' \| \ 5272 X"$ac_file" : 'X\(/\)' \| \ 5273 . : '\(.\)' 2>/dev/null || 7316 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7318 X"$ac_file" : 'X\(//\)[^/]' \| \ 7319 X"$ac_file" : 'X\(//\)$' \| \ 7320 X"$ac_file" : 'X\(/\)' \| \ 7321 . : '\(.\)' 2>/dev/null || 5274 7322 echo X"$ac_file" | 5275 7323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } … … 5278 7326 /^X\(\/\).*/{ s//\1/; q; } 5279 7327 s/.*/./; q'` 5280 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5281 { case "$ac_dir" in 5282 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5283 *) as_incr_dir=.;; 5284 esac 5285 as_dummy="$ac_dir" 5286 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5287 case $as_mkdir_dir in 5288 # Skip DOS drivespec 5289 ?:) as_incr_dir=$as_mkdir_dir ;; 5290 *) 5291 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5292 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5293 ;; 5294 esac 5295 done; } 5296 5297 fi 7328 { if $as_mkdir_p; then 7329 mkdir -p "$ac_dir" 7330 else 7331 as_dir="$ac_dir" 7332 as_dirs= 7333 while test ! -d "$as_dir"; do 7334 as_dirs="$as_dir $as_dirs" 7335 as_dir=`(dirname "$as_dir") 2>/dev/null || 7336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7337 X"$as_dir" : 'X\(//\)[^/]' \| \ 7338 X"$as_dir" : 'X\(//\)$' \| \ 7339 X"$as_dir" : 'X\(/\)' \| \ 7340 . : '\(.\)' 2>/dev/null || 7341 echo X"$as_dir" | 7342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7343 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7344 /^X\(\/\/\)$/{ s//\1/; q; } 7345 /^X\(\/\).*/{ s//\1/; q; } 7346 s/.*/./; q'` 7347 done 7348 test ! -n "$as_dirs" || mkdir $as_dirs 7349 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7350 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7351 { (exit 1); exit 1; }; }; } 7352 5298 7353 rm -f $ac_file 5299 7354 mv $tmp/config.h $ac_file … … 5304 7359 fi 5305 7360 done 5306 EOF5307 cat >>$CONFIG_STATUS <<\ EOF7361 _ACEOF 7362 cat >>$CONFIG_STATUS <<\_ACEOF 5308 7363 5309 7364 # … … 5313 7368 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5314 7369 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5315 7370 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 7371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7372 X"$ac_dest" : 'X\(//\)[^/]' \| \ 7373 X"$ac_dest" : 'X\(//\)$' \| \ 7374 X"$ac_dest" : 'X\(/\)' \| \ 7375 . : '\(.\)' 2>/dev/null || 7376 echo X"$ac_dest" | 7377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7378 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7379 /^X\(\/\/\)$/{ s//\1/; q; } 7380 /^X\(\/\).*/{ s//\1/; q; } 7381 s/.*/./; q'` 7382 { if $as_mkdir_p; then 7383 mkdir -p "$ac_dir" 7384 else 7385 as_dir="$ac_dir" 7386 as_dirs= 7387 while test ! -d "$as_dir"; do 7388 as_dirs="$as_dir $as_dirs" 7389 as_dir=`(dirname "$as_dir") 2>/dev/null || 7390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7391 X"$as_dir" : 'X\(//\)[^/]' \| \ 7392 X"$as_dir" : 'X\(//\)$' \| \ 7393 X"$as_dir" : 'X\(/\)' \| \ 7394 . : '\(.\)' 2>/dev/null || 7395 echo X"$as_dir" | 7396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7397 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7398 /^X\(\/\/\)$/{ s//\1/; q; } 7399 /^X\(\/\).*/{ s//\1/; q; } 7400 s/.*/./; q'` 7401 done 7402 test ! -n "$as_dirs" || mkdir $as_dirs 7403 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7405 { (exit 1); exit 1; }; }; } 7406 7407 ac_builddir=. 7408 7409 if test "$ac_dir" != .; then 7410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7411 # A "../" for each directory in $ac_dir_suffix. 7412 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7413 else 7414 ac_dir_suffix= ac_top_builddir= 7415 fi 7416 7417 case $srcdir in 7418 .) # No --srcdir option. We are building in place. 7419 ac_srcdir=. 7420 if test -z "$ac_top_builddir"; then 7421 ac_top_srcdir=. 7422 else 7423 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7424 fi ;; 7425 [\\/]* | ?:[\\/]* ) # Absolute path. 7426 ac_srcdir=$srcdir$ac_dir_suffix; 7427 ac_top_srcdir=$srcdir ;; 7428 *) # Relative path. 7429 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7430 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7431 esac 7432 7433 # Do not use `cd foo && pwd` to compute absolute paths, because 7434 # the directories may not exist. 7435 case `pwd` in 7436 .) ac_abs_builddir="$ac_dir";; 7437 *) 7438 case "$ac_dir" in 7439 .) ac_abs_builddir=`pwd`;; 7440 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7441 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7442 esac;; 7443 esac 7444 case $ac_abs_builddir in 7445 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7446 *) 7447 case ${ac_top_builddir}. in 7448 .) ac_abs_top_builddir=$ac_abs_builddir;; 7449 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7450 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7451 esac;; 7452 esac 7453 case $ac_abs_builddir in 7454 .) ac_abs_srcdir=$ac_srcdir;; 7455 *) 7456 case $ac_srcdir in 7457 .) ac_abs_srcdir=$ac_abs_builddir;; 7458 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7459 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7460 esac;; 7461 esac 7462 case $ac_abs_builddir in 7463 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7464 *) 7465 case $ac_top_srcdir in 7466 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7467 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7468 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7469 esac;; 7470 esac 7471 7472 7473 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 7474 echo "$as_me: executing $ac_dest commands" >&6;} 5316 7475 case $ac_dest in 5317 7476 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5318 7477 esac 5319 7478 done 5320 EOF5321 5322 cat >>$CONFIG_STATUS <<\ EOF7479 _ACEOF 7480 7481 cat >>$CONFIG_STATUS <<\_ACEOF 5323 7482 5324 7483 { (exit 0); exit 0; } 5325 EOF7484 _ACEOF 5326 7485 chmod +x $CONFIG_STATUS 5327 7486 ac_clean_files=$ac_clean_files_save 7487 5328 7488 5329 7489 # configure is writing to config.log, and then calls config.status. … … 5337 7497 if test "$no_create" != yes; then 5338 7498 ac_cs_success=: 7499 ac_config_status_args= 7500 test "$silent" = yes && 7501 ac_config_status_args="$ac_config_status_args --quiet" 5339 7502 exec 5>/dev/null 5340 $SHELL $CONFIG_STATUS || ac_cs_success=false7503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5341 7504 exec 5>>config.log 5342 7505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which -
trunk/indexers/mg/configure.in
r7882 r10191 77 77 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 78 78 AC_MSG_RESULT(yes) 79 LIBOBJS="$LIBOBJS gmalloc.o"79 AC_LIBOBJ(gmalloc) 80 80 AC_DEFINE(HAVE_VALLOC) 81 81 else … … 83 83 AC_CHECK_FUNCS(valloc) 84 84 fi 85 86 # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on 87 # a non-standard Path 88 AC_MSG_CHECKING(for Apple MacOS X/Darwin) 89 if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then 90 AC_MSG_RESULT(yes) 91 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ " 92 JNISUFFIX="jnilib" 93 JNIFLAGS="-dynamiclib -fno-common -single_module" 94 LDFLAGS="-framework JavaVM" 95 else 96 AC_MSG_RESULT(no) 97 JNIINC="" 98 JNISUFFIX="so" 99 JNIFLAGS="-shared" 100 fi 101 AC_SUBST(JNIINC) 102 AC_SUBST(JNISUFFIX) 103 AC_SUBST(JNIFLAGS) 85 104 86 105 fp_WITH_DMALLOC … … 90 109 if test "$ac_cv_func_alloca" = 'no'; then 91 110 dnl support functions for alloca.c 92 LIBOBJS="$LIBOBJS xmalloc.o error.o" 111 AC_LIBOBJ(xmalloc) 112 AC_LIBOBJ(error) 93 113 fi 94 114 -
trunk/indexers/mg/jni/Makefile.in
r8208 r10191 26 26 AWK = @AWK@ 27 27 28 JNIFLAGS=@JNIFLAGS@ 29 JNISUFFIX=@JNISUFFIX@ 30 JNIINC=@JNIINC@ 28 31 datadir = $(prefix)/share 29 32 libexecdir = $(exec_prefix)/libexec … … 39 42 $(CCOMPILE) $< 40 43 41 42 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux 44 # can we get rid of JAVA_HOME from here?? 45 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC) 43 46 44 47 all: compile link … … 48 51 49 52 link: 50 $(CC) $(LDFLAGS) -shared -o libmgjni.soMGWrapperImpl.o $(QUERY_LIBS)51 $(CC) $(LDFLAGS) -shared -o libmgpassjni.soMGPassesWrapperImpl.o $(PASSES_LIBS)53 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgjni.$(JNISUFFIX) MGWrapperImpl.o $(QUERY_LIBS) 54 $(CC) $(LDFLAGS) $(JNIFLAGS) -o libmgpassjni.$(JNISUFFIX) MGPassesWrapperImpl.o $(PASSES_LIBS) 52 55 53 56 clean: 54 rm -rf *.o libmgjni. so libmgpassjni.so57 rm -rf *.o libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) 55 58 56 59 distclean: clean … … 59 62 install: 60 63 ../mkinstalldirs $(libdir); \ 61 cp libmgjni. so libmgpassjni.so$(libdir)/;64 cp libmgjni.$(JNISUFFIX) libmgpassjni.$(JNISUFFIX) $(libdir)/; 62 65 63 66
Note:
See TracChangeset
for help on using the changeset viewer.