Changeset 8063
- Timestamp:
- 2004-08-26T11:58:13+12:00 (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mgpp/configure
r8059 r8063 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3 # Generated by Autoconf 2.50. 6 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 7 7 # This configure script is free software; the Free Software Foundation 8 8 # gives unlimited permission to copy, distribute and modify it. 9 9 10 # Defaults: 11 ac_help= 10 # Be Bourne compatible 11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12 emulate sh 13 NULLCMD=: 14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 set -o posix 16 fi 17 18 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 20 21 if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23 else 24 as_expr=false 25 fi 26 27 rm -f conf$$ conf$$.exe conf$$.file 28 echo >conf$$.file 29 if ln -s conf$$.file conf$$ 2>/dev/null; then 30 # We could just check for DJGPP; but this test a) works b) is more generic 31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 32 if test -f conf$$.exe; then 33 # Don't use ln at all; we don't have any links 34 as_ln_s='cp -p' 35 else 36 as_ln_s='ln -s' 37 fi 38 elif ln conf$$.file conf$$ 2>/dev/null; then 39 as_ln_s=ln 40 else 41 as_ln_s='cp -p' 42 fi 43 rm -f conf$$ conf$$.exe conf$$.file 44 45 as_executable_p="test -f" 46 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; } 63 64 # IFS 65 # We need space, tab and new line, in precisely that order. 66 as_nl=' 67 ' 68 IFS=" $as_nl" 69 70 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 72 73 # Name of the host. 74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 75 # so uname gets run too. 76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 77 78 exec 6>&1 79 80 # 81 # Initializations. 82 # 12 83 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --with-dmalloc use dmalloc, as in 16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" 17 ac_help="$ac_help 18 --with-regex use older regex in lieu of GNU rx for matching" 19 ac_help="$ac_help 20 --with-gnu-readline compile with GNU readline support" 21 ac_help="$ac_help 22 --enable-override-longlong 23 overide use of long long with GCC" 84 cross_compiling=no 85 subdirs= 86 MFLAGS= MAKEFLAGS= 87 SHELL=${CONFIG_SHELL-/bin/sh} 88 89 # Maximum number of lines to put in a shell here document. 90 # This variable seems obsolete. It should probably be removed, and 91 # only ac_max_sed_lines should be used. 92 : ${ac_max_here_lines=38} 93 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" 103 104 ac_unique_file="text/MGQuery.cpp" 105 # Factoring default headers for most tests. 106 ac_includes_default="\ 107 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 110 #if STDC_HEADERS 111 # include <stdlib.h> 112 # include <stddef.h> 113 #else 114 # if HAVE_STDLIB_H 115 # include <stdlib.h> 116 # endif 117 #endif 118 #if HAVE_STRING_H 119 # if !STDC_HEADERS && HAVE_MEMORY_H 120 # include <memory.h> 121 # endif 122 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 127 #endif 128 #if HAVE_INTTYPES_H 129 # include <inttypes.h> 130 #endif 131 #if HAVE_UNISTD_H 132 # include <unistd.h> 133 #endif" 24 134 25 135 # Initialize some variables set by options. 136 ac_init_help= 137 ac_init_version=false 26 138 # The variables have the same names as the options, with 27 139 # dashes changed to underlines. 28 build=NONE 29 cache_file=./config.cache 140 cache_file=/dev/null 30 141 exec_prefix=NONE 31 host=NONE32 142 no_create= 33 nonopt=NONE34 143 no_recursion= 35 144 prefix=NONE … … 40 149 site= 41 150 srcdir= 42 target=NONE43 151 verbose= 44 152 x_includes=NONE 45 153 x_libraries=NONE 154 155 # Installation directory options. 156 # These are left unexpanded so users can "make install exec_prefix=/foo" 157 # and all the variables that are supposed to be based on exec_prefix 158 # by default will actually change. 159 # Use braces instead of parens because sh, perl, etc. also accept them. 46 160 bindir='${exec_prefix}/bin' 47 161 sbindir='${exec_prefix}/sbin' … … 57 171 mandir='${prefix}/man' 58 172 59 # I nitialize some other variables.60 subdirs=61 MFLAGS= MAKEFLAGS=62 SHELL=${CONFIG_SHELL-/bin/sh} 63 # Maximum number of lines to put in a shell here document. 64 ac_max_here_lines=12 173 # Identity of this package. 174 PACKAGE_NAME= 175 PACKAGE_TARNAME= 176 PACKAGE_VERSION= 177 PACKAGE_STRING= 178 PACKAGE_BUGREPORT= 65 179 66 180 ac_prev= 67 181 for ac_option 68 182 do 69 70 183 # If the previous option needs an argument, assign it. 71 184 if test -n "$ac_prev"; then … … 75 188 fi 76 189 77 case "$ac_option" in 78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 79 *) ac_optarg= ;; 80 esac 190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 81 191 82 192 # Accept the important Cygnus configure options, so we can diagnose typos. 83 193 84 case "$ac_option"in194 case $ac_option in 85 195 86 196 -bindir | --bindir | --bindi | --bind | --bin | --bi) 87 197 ac_prev=bindir ;; 88 198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 89 bindir= "$ac_optarg";;199 bindir=$ac_optarg ;; 90 200 91 201 -build | --build | --buil | --bui | --bu) 92 ac_prev=build ;;202 ac_prev=build_alias ;; 93 203 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 94 build ="$ac_optarg";;204 build_alias=$ac_optarg ;; 95 205 96 206 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 99 209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 100 210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 101 cache_file="$ac_optarg" ;; 211 cache_file=$ac_optarg ;; 212 213 --config-cache | -C) 214 cache_file=config.cache ;; 102 215 103 216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 105 218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 106 219 | --da=*) 107 datadir= "$ac_optarg";;220 datadir=$ac_optarg ;; 108 221 109 222 -disable-* | --disable-*) 110 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 111 224 # Reject names that are not valid shell variable names. 112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then113 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }114 fi115 ac_feature=`echo $ac_feature | sed 's/-/_/g'`116 eval "enable_$ {ac_feature}=no" ;;225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 { (exit 1); exit 1; }; } 228 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 229 eval "enable_$ac_feature=no" ;; 117 230 118 231 -enable-* | --enable-*) 119 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 120 233 # Reject names that are not valid shell variable names. 121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then122 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }123 fi124 ac_feature=`echo $ac_feature | sed 's/-/_/g'`125 case "$ac_option"in126 *=*) ;;234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 { (exit 1); exit 1; }; } 237 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 238 case $ac_option in 239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 127 240 *) ac_optarg=yes ;; 128 241 esac 129 eval "enable_$ {ac_feature}='$ac_optarg'" ;;242 eval "enable_$ac_feature='$ac_optarg'" ;; 130 243 131 244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 136 249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 137 250 | --exec=* | --exe=* | --ex=*) 138 exec_prefix= "$ac_optarg";;251 exec_prefix=$ac_optarg ;; 139 252 140 253 -gas | --gas | --ga | --g) … … 142 255 with_gas=yes ;; 143 256 144 -help | --help | --hel | --he) 145 # Omit some internal or obsolete options to make the list less imposing. 146 # This message is too long to be a string in the A/UX 3.1 sh. 147 cat << EOF 148 Usage: configure [options] [host] 149 Options: [defaults in brackets after descriptions] 150 Configuration: 151 --cache-file=FILE cache test results in FILE 152 --help print this message 153 --no-create do not create output files 154 --quiet, --silent do not print \`checking...' messages 155 --version print the version of autoconf that created configure 156 Directory and file names: 157 --prefix=PREFIX install architecture-independent files in PREFIX 158 [$ac_default_prefix] 159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 160 [same as prefix] 161 --bindir=DIR user executables in DIR [EPREFIX/bin] 162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 164 --datadir=DIR read-only architecture-independent data in DIR 165 [PREFIX/share] 166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 167 --sharedstatedir=DIR modifiable architecture-independent data in DIR 168 [PREFIX/com] 169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 170 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 171 --includedir=DIR C header files in DIR [PREFIX/include] 172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 173 --infodir=DIR info documentation in DIR [PREFIX/info] 174 --mandir=DIR man documentation in DIR [PREFIX/man] 175 --srcdir=DIR find the sources in DIR [configure dir or ..] 176 --program-prefix=PREFIX prepend PREFIX to installed program names 177 --program-suffix=SUFFIX append SUFFIX to installed program names 178 --program-transform-name=PROGRAM 179 run sed PROGRAM on installed program names 180 EOF 181 cat << EOF 182 Host type: 183 --build=BUILD configure for building on BUILD [BUILD=HOST] 184 --host=HOST configure for HOST [guessed] 185 --target=TARGET configure for TARGET [TARGET=HOST] 186 Features and packages: 187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 191 --x-includes=DIR X include files are in DIR 192 --x-libraries=DIR X library files are in DIR 193 EOF 194 if test -n "$ac_help"; then 195 echo "--enable and --with options recognized:$ac_help" 196 fi 197 exit 0 ;; 257 -help | --help | --hel | --he | -h) 258 ac_init_help=long ;; 259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 260 ac_init_help=recursive ;; 261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 262 ac_init_help=short ;; 198 263 199 264 -host | --host | --hos | --ho) 200 ac_prev=host ;;265 ac_prev=host_alias ;; 201 266 -host=* | --host=* | --hos=* | --ho=*) 202 host ="$ac_optarg";;267 host_alias=$ac_optarg ;; 203 268 204 269 -includedir | --includedir | --includedi | --included | --include \ … … 207 272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 208 273 | --includ=* | --inclu=* | --incl=* | --inc=*) 209 includedir= "$ac_optarg";;274 includedir=$ac_optarg ;; 210 275 211 276 -infodir | --infodir | --infodi | --infod | --info | --inf) 212 277 ac_prev=infodir ;; 213 278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 214 infodir= "$ac_optarg";;279 infodir=$ac_optarg ;; 215 280 216 281 -libdir | --libdir | --libdi | --libd) 217 282 ac_prev=libdir ;; 218 283 -libdir=* | --libdir=* | --libdi=* | --libd=*) 219 libdir= "$ac_optarg";;284 libdir=$ac_optarg ;; 220 285 221 286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 224 289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 225 290 | --libexe=* | --libex=* | --libe=*) 226 libexecdir= "$ac_optarg";;291 libexecdir=$ac_optarg ;; 227 292 228 293 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 233 298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 234 299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 235 localstatedir= "$ac_optarg";;300 localstatedir=$ac_optarg ;; 236 301 237 302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 238 303 ac_prev=mandir ;; 239 304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 240 mandir= "$ac_optarg";;305 mandir=$ac_optarg ;; 241 306 242 307 -nfp | --nfp | --nf) … … 259 324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 260 325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 261 oldincludedir= "$ac_optarg";;326 oldincludedir=$ac_optarg ;; 262 327 263 328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 264 329 ac_prev=prefix ;; 265 330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 266 prefix= "$ac_optarg";;331 prefix=$ac_optarg ;; 267 332 268 333 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 271 336 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 272 337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 273 program_prefix= "$ac_optarg";;338 program_prefix=$ac_optarg ;; 274 339 275 340 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 278 343 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 279 344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 280 program_suffix= "$ac_optarg";;345 program_suffix=$ac_optarg ;; 281 346 282 347 -program-transform-name | --program-transform-name \ … … 295 360 | --program-trans=* | --program-tran=* \ 296 361 | --progr-tra=* | --program-tr=* | --program-t=*) 297 program_transform_name= "$ac_optarg";;362 program_transform_name=$ac_optarg ;; 298 363 299 364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 305 370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 306 371 | --sbi=* | --sb=*) 307 sbindir= "$ac_optarg";;372 sbindir=$ac_optarg ;; 308 373 309 374 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 316 381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 317 382 | --sha=* | --sh=*) 318 sharedstatedir= "$ac_optarg";;383 sharedstatedir=$ac_optarg ;; 319 384 320 385 -site | --site | --sit) 321 386 ac_prev=site ;; 322 387 -site=* | --site=* | --sit=*) 323 site= "$ac_optarg";;388 site=$ac_optarg ;; 324 389 325 390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 326 391 ac_prev=srcdir ;; 327 392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 328 srcdir= "$ac_optarg";;393 srcdir=$ac_optarg ;; 329 394 330 395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 333 398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 334 399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 335 sysconfdir= "$ac_optarg";;400 sysconfdir=$ac_optarg ;; 336 401 337 402 -target | --target | --targe | --targ | --tar | --ta | --t) 338 ac_prev=target ;;403 ac_prev=target_alias ;; 339 404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 340 target ="$ac_optarg";;405 target_alias=$ac_optarg ;; 341 406 342 407 -v | -verbose | --verbose | --verbos | --verbo | --verb) 343 408 verbose=yes ;; 344 409 345 -version | --version | --versio | --versi | --vers) 346 echo "configure generated by autoconf version 2.13" 347 exit 0 ;; 410 -version | --version | --versio | --versi | --vers | -V) 411 ac_init_version=: ;; 348 412 349 413 -with-* | --with-*) 350 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 351 415 # Reject names that are not valid shell variable names. 352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then353 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }354 fi416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 417 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 { (exit 1); exit 1; }; } 355 419 ac_package=`echo $ac_package| sed 's/-/_/g'` 356 case "$ac_option"in357 *=*) ;;420 case $ac_option in 421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 358 422 *) ac_optarg=yes ;; 359 423 esac 360 eval "with_$ {ac_package}='$ac_optarg'" ;;424 eval "with_$ac_package='$ac_optarg'" ;; 361 425 362 426 -without-* | --without-*) 363 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 364 428 # Reject names that are not valid shell variable names. 365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then366 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }367 fi368 ac_package=`echo $ac_package | sed 's/-/_/g'`369 eval "with_$ {ac_package}=no" ;;429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 430 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 { (exit 1); exit 1; }; } 432 ac_package=`echo $ac_package | sed 's/-/_/g'` 433 eval "with_$ac_package=no" ;; 370 434 371 435 --x) … … 378 442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 379 443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 380 x_includes= "$ac_optarg";;444 x_includes=$ac_optarg ;; 381 445 382 446 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 385 449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 386 450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 387 x_libraries="$ac_optarg" ;; 388 389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 451 x_libraries=$ac_optarg ;; 452 453 -*) { echo "$as_me: error: unrecognized option: $ac_option 454 Try \`$0 --help' for more information." >&2 455 { (exit 1); exit 1; }; } 390 456 ;; 391 457 458 *=*) 459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && 462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 { (exit 1); exit 1; }; } 464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 465 eval "$ac_envvar='$ac_optarg'" 466 export $ac_envvar ;; 467 392 468 *) 393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 394 echo "configure: warning: $ac_option: invalid host type" 1>&2 395 fi 396 if test "x$nonopt" != xNONE; then 397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 398 fi 399 nonopt="$ac_option" 469 # FIXME: should be removed in autoconf 3.0. 470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 400 474 ;; 401 475 … … 404 478 405 479 if test -n "$ac_prev"; then 406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 407 fi 408 409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 410 411 # File descriptor usage: 412 # 0 standard input 413 # 1 file creation 414 # 2 errors and warnings 415 # 3 some systems may open it to /dev/tty 416 # 4 used on the Kubota Titan 417 # 6 checking for... messages and results 418 # 5 compiler messages saved in config.log 419 if test "$silent" = yes; then 420 exec 6>/dev/null 421 else 422 exec 6>&1 423 fi 424 exec 5>./config.log 425 426 echo "\ 427 This file contains any messages produced by compilers while 428 running configure, to aid debugging if configure makes a mistake. 429 " 1>&5 430 431 # Strip out --no-create and --no-recursion so they do not pile up. 432 # Also quote any args containing shell metacharacters. 433 ac_configure_args= 434 for ac_arg 480 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 481 { echo "$as_me: error: missing argument to $ac_option" >&2 482 { (exit 1); exit 1; }; } 483 fi 484 485 # Be sure to have absolute paths. 486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 435 489 do 436 case "$ac_arg" in 437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 438 | --no-cr | --no-c) ;; 439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 442 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 443 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 490 eval ac_val=$`echo $ac_var` 491 case $ac_val in 492 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 495 { (exit 1); exit 1; }; };; 444 496 esac 445 497 done 446 498 447 # NLS nuisances. 448 # Only set these to C if already set. These must not be set unconditionally 449 # because not all systems understand e.g. LANG=C (notably SCO). 450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 451 # Non-C LC_CTYPE values break the ctype check. 452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 456 457 # confdefs.h avoids OS command line length limits that DEFS can exceed. 458 rm -rf conftest* confdefs.h 459 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 460 echo > confdefs.h 461 462 # A filename unique to this package, relative to the directory that 463 # configure is in, which we can look for to find out if srcdir is correct. 464 ac_unique_file=text/MGQuery.cpp 499 # There might be people who depend on the old broken behavior: `$host' 500 # used to hold the argument of --host etc. 501 build=$build_alias 502 host=$host_alias 503 target=$target_alias 504 505 # FIXME: should be removed in autoconf 3.0. 506 if test "x$host_alias" != x; then 507 if test "x$build_alias" = x; then 508 cross_compiling=maybe 509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 510 If a cross compiler is detected then cross compile mode will be used." >&2 511 elif test "x$build_alias" != "x$host_alias"; then 512 cross_compiling=yes 513 fi 514 fi 515 516 ac_tool_prefix= 517 test -n "$host_alias" && ac_tool_prefix=$host_alias- 518 519 test "$silent" = yes && exec 6>/dev/null 465 520 466 521 # Find the source files, if location was not specified. … … 469 524 # Try the directory containing this script, then its parent. 470 525 ac_prog=$0 471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 472 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 473 528 srcdir=$ac_confdir … … 480 535 if test ! -r $srcdir/$ac_unique_file; then 481 536 if test "$ac_srcdir_defaulted" = yes; then 482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 538 { (exit 1); exit 1; }; } 483 539 else 484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2 541 { (exit 1); exit 1; }; } 485 542 fi 486 543 fi 487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 488 544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 ac_env_build_alias_set=${build_alias+set} 546 ac_env_build_alias_value=$build_alias 547 ac_cv_env_build_alias_set=${build_alias+set} 548 ac_cv_env_build_alias_value=$build_alias 549 ac_env_host_alias_set=${host_alias+set} 550 ac_env_host_alias_value=$host_alias 551 ac_cv_env_host_alias_set=${host_alias+set} 552 ac_cv_env_host_alias_value=$host_alias 553 ac_env_target_alias_set=${target_alias+set} 554 ac_env_target_alias_value=$target_alias 555 ac_cv_env_target_alias_set=${target_alias+set} 556 ac_cv_env_target_alias_value=$target_alias 557 ac_env_CXX_set=${CXX+set} 558 ac_env_CXX_value=$CXX 559 ac_cv_env_CXX_set=${CXX+set} 560 ac_cv_env_CXX_value=$CXX 561 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 562 ac_env_CXXFLAGS_value=$CXXFLAGS 563 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 564 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 565 ac_env_LDFLAGS_set=${LDFLAGS+set} 566 ac_env_LDFLAGS_value=$LDFLAGS 567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 568 ac_cv_env_LDFLAGS_value=$LDFLAGS 569 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 570 ac_env_CPPFLAGS_value=$CPPFLAGS 571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 573 ac_env_CC_set=${CC+set} 574 ac_env_CC_value=$CC 575 ac_cv_env_CC_set=${CC+set} 576 ac_cv_env_CC_value=$CC 577 ac_env_CFLAGS_set=${CFLAGS+set} 578 ac_env_CFLAGS_value=$CFLAGS 579 ac_cv_env_CFLAGS_set=${CFLAGS+set} 580 ac_cv_env_CFLAGS_value=$CFLAGS 581 ac_env_CPP_set=${CPP+set} 582 ac_env_CPP_value=$CPP 583 ac_cv_env_CPP_set=${CPP+set} 584 ac_cv_env_CPP_value=$CPP 585 586 # 587 # Report the --help message. 588 # 589 if test "$ac_init_help" = "long"; then 590 # Omit some internal or obsolete options to make the list less imposing. 591 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat <<EOF 593 \`configure' configures this package to adapt to many kinds of systems. 594 595 Usage: $0 [OPTION]... [VAR=VALUE]... 596 597 To assign environment variables (e.g., CC, CFLAGS...), specify them as 598 VAR=VALUE. See below for descriptions of some of the useful variables. 599 600 Defaults for the options are specified in brackets. 601 602 Configuration: 603 -h, --help display this help and exit 604 --help=short display options specific to this package 605 --help=recursive display the short help of all the included packages 606 -V, --version display version information and exit 607 -q, --quiet, --silent do not print \`checking...' messages 608 --cache-file=FILE cache test results in FILE [disabled] 609 -C, --config-cache alias for \`--cache-file=config.cache' 610 -n, --no-create do not create output files 611 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 613 EOF 614 615 cat <<EOF 616 Installation directories: 617 --prefix=PREFIX install architecture-independent files in PREFIX 618 [$ac_default_prefix] 619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 [PREFIX] 621 622 By default, \`make install' will install all the files in 623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 624 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 625 for instance \`--prefix=\$HOME'. 626 627 For better control, use the options below. 628 629 Fine tuning of the installation directories: 630 --bindir=DIR user executables [EPREFIX/bin] 631 --sbindir=DIR system admin executables [EPREFIX/sbin] 632 --libexecdir=DIR program executables [EPREFIX/libexec] 633 --datadir=DIR read-only architecture-independent data [PREFIX/share] 634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 636 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 637 --libdir=DIR object code libraries [EPREFIX/lib] 638 --includedir=DIR C header files [PREFIX/include] 639 --oldincludedir=DIR C header files for non-gcc [/usr/include] 640 --infodir=DIR info documentation [PREFIX/info] 641 --mandir=DIR man documentation [PREFIX/man] 642 EOF 643 644 cat <<\EOF 645 646 Program names: 647 --program-prefix=PREFIX prepend PREFIX to installed program names 648 --program-suffix=SUFFIX append SUFFIX to installed program names 649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF 651 fi 652 653 if test -n "$ac_init_help"; then 654 655 cat <<\EOF 656 657 Optional Features: 658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 660 --enable-override-longlong 661 overide use of long long with GCC 662 663 Optional Packages: 664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 666 --with-dmalloc use dmalloc, as in 667 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz 668 --with-regex use older regex in lieu of GNU rx for matching 669 --with-gnu-readline compile with GNU readline support 670 671 Some influential environment variables: 672 CXX C++ compiler command 673 CXXFLAGS C++ compiler flags 674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 675 nonstandard directory <lib dir> 676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 677 headers in a nonstandard directory <include dir> 678 CC C compiler command 679 CFLAGS C compiler flags 680 CPP C preprocessor 681 682 Use these variables to override the choices made by `configure' or to help 683 it to find libraries and programs with nonstandard names/locations. 684 685 EOF 686 fi 687 688 if test "$ac_init_help" = "recursive"; then 689 # If there are subdirs, report their specific --help. 690 ac_popdir=`pwd` 691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 692 cd $ac_subdir 693 # A "../" for each directory in /$ac_subdir. 694 ac_dots=`echo $ac_subdir | 695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 696 697 case $srcdir in 698 .) # No --srcdir option. We are building in place. 699 ac_sub_srcdir=$srcdir ;; 700 [\\/]* | ?:[\\/]* ) # Absolute path. 701 ac_sub_srcdir=$srcdir/$ac_subdir ;; 702 *) # Relative path. 703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 704 esac 705 706 # Check for guested configure; otherwise get Cygnus style configure. 707 if test -f $ac_sub_srcdir/configure.gnu; then 708 echo 709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 710 elif test -f $ac_sub_srcdir/configure; then 711 echo 712 $SHELL $ac_sub_srcdir/configure --help=recursive 713 elif test -f $ac_sub_srcdir/configure.ac || 714 test -f $ac_sub_srcdir/configure.in; then 715 echo 716 $ac_configure --help 717 else 718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 719 fi 720 cd $ac_popdir 721 done 722 fi 723 724 test -n "$ac_init_help" && exit 0 725 if $ac_init_version; then 726 cat <<\EOF 727 728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 729 Free Software Foundation, Inc. 730 This configure script is free software; the Free Software Foundation 731 gives unlimited permission to copy, distribute and modify it. 732 EOF 733 exit 0 734 fi 735 exec 5>config.log 736 cat >&5 <<EOF 737 This file contains any messages produced by compilers while 738 running configure, to aid debugging if configure makes a mistake. 739 740 It was created by $as_me, which was 741 generated by GNU Autoconf 2.50. Invocation command line was 742 743 $ $0 $@ 744 745 EOF 746 { 747 cat <<_ASUNAME 748 ## ---------- ## 749 ## Platform. ## 750 ## ---------- ## 751 752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 753 uname -m = `(uname -m) 2>/dev/null || echo unknown` 754 uname -r = `(uname -r) 2>/dev/null || echo unknown` 755 uname -s = `(uname -s) 2>/dev/null || echo unknown` 756 uname -v = `(uname -v) 2>/dev/null || echo unknown` 757 758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 760 761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 768 769 PATH = $PATH 770 771 _ASUNAME 772 } >&5 773 774 cat >&5 <<EOF 775 ## ------------ ## 776 ## Core tests. ## 777 ## ------------ ## 778 779 EOF 780 781 # Keep a trace of the command line. 782 # Strip out --no-create and --no-recursion so they do not pile up. 783 # Also quote any args containing shell meta-characters. 784 ac_configure_args= 785 ac_sep= 786 for ac_arg 787 do 788 case $ac_arg in 789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 790 | --no-cr | --no-c) ;; 791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 796 ac_sep=" " ;; 797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 798 ac_sep=" " ;; 799 esac 800 # Get rid of the leading space. 801 done 802 803 # When interrupted or exit'd, cleanup temporary files, and complete 804 # config.log. We remove comments because anyway the quotes in there 805 # would cause problems or look ugly. 806 trap 'exit_status=$? 807 # Save into config.log some information that might help in debugging. 808 echo >&5 809 echo "## ----------------- ##" >&5 810 echo "## Cache variables. ##" >&5 811 echo "## ----------------- ##" >&5 812 echo >&5 813 # The following way of writing the cache mishandles newlines in values, 814 { 815 (set) 2>&1 | 816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 817 *ac_space=\ *) 818 sed -n \ 819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 820 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 821 ;; 822 *) 823 sed -n \ 824 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 825 ;; 826 esac; 827 } >&5 828 sed "/^$/d" confdefs.h >conftest.log 829 if test -s conftest.log; then 830 echo >&5 831 echo "## ------------ ##" >&5 832 echo "## confdefs.h. ##" >&5 833 echo "## ------------ ##" >&5 834 echo >&5 835 cat conftest.log >&5 836 fi 837 (echo; echo) >&5 838 test "$ac_signal" != 0 && 839 echo "$as_me: caught signal $ac_signal" >&5 840 echo "$as_me: exit $exit_status" >&5 841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 842 exit $exit_status 843 ' 0 844 for ac_signal in 1 2 13 15; do 845 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal 846 done 847 ac_signal=0 848 849 # confdefs.h avoids OS command line length limits that DEFS can exceed. 850 rm -rf conftest* confdefs.h 851 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 852 echo >confdefs.h 853 854 # Let the site file select an alternate cache file if it wants to. 489 855 # Prefer explicitly selected file to automatically selected ones. 490 856 if test -z "$CONFIG_SITE"; then … … 497 863 for ac_site_file in $CONFIG_SITE; do 498 864 if test -r "$ac_site_file"; then 499 echo "loading site script $ac_site_file" 865 { echo "$as_me:865: loading site script $ac_site_file" >&5 866 echo "$as_me: loading site script $ac_site_file" >&6;} 867 cat "$ac_site_file" >&5 500 868 . "$ac_site_file" 501 869 fi … … 503 871 504 872 if test -r "$cache_file"; then 505 echo "loading cache $cache_file" 506 . $cache_file 507 else 508 echo "creating cache $cache_file" 509 > $cache_file 873 # Some versions of bash will fail to source /dev/null (special 874 # files actually), so we avoid doing that. 875 if test -f "$cache_file"; then 876 { echo "$as_me:876: loading cache $cache_file" >&5 877 echo "$as_me: loading cache $cache_file" >&6;} 878 case $cache_file in 879 [\\/]* | ?:[\\/]* ) . $cache_file;; 880 *) . ./$cache_file;; 881 esac 882 fi 883 else 884 { echo "$as_me:884: creating cache $cache_file" >&5 885 echo "$as_me: creating cache $cache_file" >&6;} 886 >$cache_file 887 fi 888 889 # Check that the precious variables saved in the cache have kept the same 890 # value. 891 ac_suggest_removing_cache=false 892 for ac_var in `(set) 2>&1 | 893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 895 eval ac_new_set=\$ac_env_${ac_var}_set 896 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 897 eval ac_new_val="\$ac_env_${ac_var}_value" 898 case $ac_old_set,$ac_new_set in 899 set,) 900 { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 901 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 902 ac_suggest_removing_cache=: ;; 903 ,set) 904 { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5 905 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} 906 ac_suggest_removing_cache=: ;; 907 ,);; 908 *) 909 if test "x$ac_old_val" != "x$ac_new_val"; then 910 { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5 911 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} 912 { echo "$as_me:912: WARNING: former value: $ac_old_val" >&5 913 echo "$as_me: WARNING: former value: $ac_old_val" >&2;} 914 { echo "$as_me:914: WARNING: current value: $ac_new_val" >&5 915 echo "$as_me: WARNING: current value: $ac_new_val" >&2;} 916 ac_suggest_removing_cache=: 917 fi;; 918 esac 919 done 920 if $ac_suggest_removing_cache; then 921 { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5 922 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 923 { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5 924 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 510 925 fi 511 926 512 927 ac_ext=c 513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.514 928 ac_cpp='$CPP $CPPFLAGS' 515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 517 cross_compiling=$ac_cv_prog_cc_cross 518 519 ac_exeext= 520 ac_objext=o 521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 522 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 524 ac_n= ac_c=' 525 ' ac_t=' ' 526 else 527 ac_n=-n ac_c= ac_t= 528 fi 529 else 530 ac_n= ac_c='\c' ac_t= 531 fi 532 533 929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 931 ac_compiler_gnu=$ac_cv_c_compiler_gnu 932 933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 934 *c*,-n*) ECHO_N= ECHO_C=' 935 ' ECHO_T=' ' ;; 936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 938 esac 939 echo "#! $SHELL" >conftest.sh 940 echo "exit 0" >>conftest.sh 941 chmod +x conftest.sh 942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5 943 (PATH=".;."; conftest.sh) 2>&5 944 ac_status=$? 945 echo "$as_me:945: \$? = $ac_status" >&5 946 (exit $ac_status); }; then 947 ac_path_separator=';' 948 else 949 ac_path_separator=: 950 fi 951 PATH_SEPARATOR="$ac_path_separator" 952 rm -f conftest.sh 953 954 ac_config_headers="$ac_config_headers config.h" 534 955 535 956 if test "$program_transform_name" = s,x,x,; then … … 537 958 else 538 959 # Double any \ or $. echo might interpret backslashes. 539 cat <<\EOF _SED > conftestsed960 cat <<\EOF >conftest.sed 540 961 s,\\,\\\\,g; s,\$,$$,g 541 EOF _SED542 program_transform_name= "`echo $program_transform_name|sed -f conftestsed`"543 rm -f conftest sed962 EOF 963 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 964 rm -f conftest.sed 544 965 fi 545 966 test "$program_prefix" != NONE && 546 program_transform_name="s,^,${program_prefix},; 967 program_transform_name="s,^,${program_prefix},;$program_transform_name" 547 968 # Use a double $ so make ignores it. 548 969 test "$program_suffix" != NONE && 549 program_transform_name="s,\$\$,${program_suffix},; 970 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 550 971 551 972 # sed with no file args requires a program. 552 test "$program_transform_name" = "" && program_transform_name="s,x,x," 553 973 test -z "$program_transform_name" && program_transform_name="s,x,x," 554 974 555 975 PACKAGE=mgpp … … 558 978 LDFLAGS= 559 979 560 cat >> 980 cat >>confdefs.h <<EOF 561 981 #define PACKAGE "$PACKAGE" 562 982 EOF 563 983 564 cat >> 984 cat >>confdefs.h <<EOF 565 985 #define VERSION "$VERSION" 566 986 EOF 567 987 568 569 570 571 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 572 do 573 # Extract the first word of "$ac_prog", so it can be a program name with args. 574 set dummy $ac_prog; ac_word=$2 575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 576 echo "configure:577: checking for $ac_word" >&5 577 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 578 echo $ac_n "(cached) $ac_c" 1>&6 988 ac_ext=cc 989 ac_cpp='$CXXCPP $CPPFLAGS' 990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 993 if test -n "$ac_tool_prefix"; then 994 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 995 do 996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 998 echo "$as_me:998: checking for $ac_word" >&5 999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1000 if test "${ac_cv_prog_CXX+set}" = set; then 1001 echo $ECHO_N "(cached) $ECHO_C" >&6 579 1002 else 580 1003 if test -n "$CXX"; then 581 1004 ac_cv_prog_CXX="$CXX" # Let the user override the test. 582 1005 else 583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 584 ac_dummy="$PATH" 585 for ac_dir in $ac_dummy; do 586 test -z "$ac_dir" && ac_dir=. 587 if test -f $ac_dir/$ac_word; then 588 ac_cv_prog_CXX="$ac_prog" 589 break 1006 ac_save_IFS=$IFS; IFS=$ac_path_separator 1007 ac_dummy="$PATH" 1008 for ac_dir in $ac_dummy; do 1009 IFS=$ac_save_IFS 1010 test -z "$ac_dir" && ac_dir=. 1011 $as_executable_p "$ac_dir/$ac_word" || continue 1012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1013 echo "$as_me:1013: found $ac_dir/$ac_word" >&5 1014 break 1015 done 1016 1017 fi 1018 fi 1019 CXX=$ac_cv_prog_CXX 1020 if test -n "$CXX"; then 1021 echo "$as_me:1021: result: $CXX" >&5 1022 echo "${ECHO_T}$CXX" >&6 1023 else 1024 echo "$as_me:1024: result: no" >&5 1025 echo "${ECHO_T}no" >&6 1026 fi 1027 1028 test -n "$CXX" && break 1029 done 1030 fi 1031 if test -z "$CXX"; then 1032 ac_ct_CXX=$CXX 1033 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 1034 do 1035 # Extract the first word of "$ac_prog", so it can be a program name with args. 1036 set dummy $ac_prog; ac_word=$2 1037 echo "$as_me:1037: checking for $ac_word" >&5 1038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1039 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1040 echo $ECHO_N "(cached) $ECHO_C" >&6 1041 else 1042 if test -n "$ac_ct_CXX"; then 1043 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1044 else 1045 ac_save_IFS=$IFS; IFS=$ac_path_separator 1046 ac_dummy="$PATH" 1047 for ac_dir in $ac_dummy; do 1048 IFS=$ac_save_IFS 1049 test -z "$ac_dir" && ac_dir=. 1050 $as_executable_p "$ac_dir/$ac_word" || continue 1051 ac_cv_prog_ac_ct_CXX="$ac_prog" 1052 echo "$as_me:1052: found $ac_dir/$ac_word" >&5 1053 break 1054 done 1055 1056 fi 1057 fi 1058 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1059 if test -n "$ac_ct_CXX"; then 1060 echo "$as_me:1060: result: $ac_ct_CXX" >&5 1061 echo "${ECHO_T}$ac_ct_CXX" >&6 1062 else 1063 echo "$as_me:1063: result: no" >&5 1064 echo "${ECHO_T}no" >&6 1065 fi 1066 1067 test -n "$ac_ct_CXX" && break 1068 done 1069 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1070 1071 CXX=$ac_ct_CXX 1072 fi 1073 1074 cat >conftest.$ac_ext <<_ACEOF 1075 #line 1075 "configure" 1076 #include "confdefs.h" 1077 1078 int 1079 main () 1080 { 1081 1082 ; 1083 return 0; 1084 } 1085 _ACEOF 1086 ac_clean_files_save=$ac_clean_files 1087 ac_clean_files="$ac_clean_files a.out a.exe" 1088 # Try to create an executable without -o first, disregard a.out. 1089 # It will help us diagnose broken compiler, and finding out an intuition 1090 # of exeext. 1091 echo "$as_me:1091: checking for C++ compiler default output" >&5 1092 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 1093 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1094 if { (eval echo "$as_me:1094: \"$ac_link_default\"") >&5 1095 (eval $ac_link_default) 2>&5 1096 ac_status=$? 1097 echo "$as_me:1097: \$? = $ac_status" >&5 1098 (exit $ac_status); }; then 1099 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1100 case $ac_file in 1101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1102 a.out ) # We found the default executable, but exeext='' is most 1103 # certainly right. 1104 break;; 1105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1106 export ac_cv_exeext 1107 break;; 1108 * ) break;; 1109 esac 1110 done 1111 else 1112 echo "$as_me: failed program was:" >&5 1113 cat conftest.$ac_ext >&5 1114 { { echo "$as_me:1114: error: C++ compiler cannot create executables" >&5 1115 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1116 { (exit 77); exit 77; }; } 1117 fi 1118 1119 ac_exeext=$ac_cv_exeext 1120 echo "$as_me:1120: result: $ac_file" >&5 1121 echo "${ECHO_T}$ac_file" >&6 1122 1123 # Check the compiler produces executables we can run. If not, either 1124 # the compiler is broken, or we cross compile. 1125 echo "$as_me:1125: checking whether the C++ compiler works" >&5 1126 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1128 # If not cross compiling, check that we can run a simple program. 1129 if test "$cross_compiling" != yes; then 1130 if { ac_try='./$ac_file' 1131 { (eval echo "$as_me:1131: \"$ac_try\"") >&5 1132 (eval $ac_try) 2>&5 1133 ac_status=$? 1134 echo "$as_me:1134: \$? = $ac_status" >&5 1135 (exit $ac_status); }; }; then 1136 cross_compiling=no 1137 else 1138 if test "$cross_compiling" = maybe; then 1139 cross_compiling=yes 1140 else 1141 { { echo "$as_me:1141: error: cannot run C++ compiled programs. 1142 If you meant to cross compile, use \`--host'." >&5 1143 echo "$as_me: error: cannot run C++ compiled programs. 1144 If you meant to cross compile, use \`--host'." >&2;} 1145 { (exit 1); exit 1; }; } 590 1146 fi 591 done 592 IFS="$ac_save_ifs" 593 fi 594 fi 595 CXX="$ac_cv_prog_CXX" 596 if test -n "$CXX"; then 597 echo "$ac_t""$CXX" 1>&6 598 else 599 echo "$ac_t""no" 1>&6 600 fi 601 602 test -n "$CXX" && break 1147 fi 1148 fi 1149 echo "$as_me:1149: result: yes" >&5 1150 echo "${ECHO_T}yes" >&6 1151 1152 rm -f a.out a.exe conftest$ac_cv_exeext 1153 ac_clean_files=$ac_clean_files_save 1154 # Check the compiler produces executables we can run. If not, either 1155 # the compiler is broken, or we cross compile. 1156 echo "$as_me:1156: checking whether we are cross compiling" >&5 1157 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1158 echo "$as_me:1158: result: $cross_compiling" >&5 1159 echo "${ECHO_T}$cross_compiling" >&6 1160 1161 echo "$as_me:1161: checking for executable suffix" >&5 1162 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1163 if { (eval echo "$as_me:1163: \"$ac_link\"") >&5 1164 (eval $ac_link) 2>&5 1165 ac_status=$? 1166 echo "$as_me:1166: \$? = $ac_status" >&5 1167 (exit $ac_status); }; then 1168 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1170 # work properly (i.e., refer to `conftest.exe'), while it won't with 1171 # `rm'. 1172 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1173 case $ac_file in 1174 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1176 export ac_cv_exeext 1177 break;; 1178 * ) break;; 1179 esac 603 1180 done 604 test -n "$CXX" || CXX="gcc" 605 606 607 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 608 echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 609 610 ac_ext=C 611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 612 ac_cpp='$CXXCPP $CPPFLAGS' 613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 615 cross_compiling=$ac_cv_prog_cxx_cross 616 617 cat > conftest.$ac_ext << EOF 618 619 #line 620 "configure" 620 #include "confdefs.h" 621 622 int main(){return(0);} 623 EOF 624 if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 625 ac_cv_prog_cxx_works=yes 626 # If we can't run a trivial program, we are probably using a cross compiler. 627 if (./conftest; exit) 2>/dev/null; then 628 ac_cv_prog_cxx_cross=no 629 else 630 ac_cv_prog_cxx_cross=yes 631 fi 632 else 633 echo "configure: failed program was:" >&5 634 cat conftest.$ac_ext >&5 635 ac_cv_prog_cxx_works=no 636 fi 637 rm -fr conftest* 638 ac_ext=c 639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 640 ac_cpp='$CPP $CPPFLAGS' 641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 643 cross_compiling=$ac_cv_prog_cc_cross 644 645 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 646 if test $ac_cv_prog_cxx_works = no; then 647 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 648 fi 649 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 650 echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 651 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 652 cross_compiling=$ac_cv_prog_cxx_cross 653 654 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 655 echo "configure:656: checking whether we are using GNU C++" >&5 656 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 657 echo $ac_n "(cached) $ac_c" 1>&6 658 else 659 cat > conftest.C <<EOF 660 #ifdef __GNUC__ 661 yes; 1181 else 1182 { { echo "$as_me:1182: error: cannot compute EXEEXT: cannot compile and link" >&5 1183 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1184 { (exit 1); exit 1; }; } 1185 fi 1186 1187 rm -f conftest$ac_cv_exeext 1188 echo "$as_me:1188: result: $ac_cv_exeext" >&5 1189 echo "${ECHO_T}$ac_cv_exeext" >&6 1190 1191 rm -f conftest.$ac_ext 1192 EXEEXT=$ac_cv_exeext 1193 ac_exeext=$EXEEXT 1194 echo "$as_me:1194: checking for object suffix" >&5 1195 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1196 if test "${ac_cv_objext+set}" = set; then 1197 echo $ECHO_N "(cached) $ECHO_C" >&6 1198 else 1199 cat >conftest.$ac_ext <<_ACEOF 1200 #line 1200 "configure" 1201 #include "confdefs.h" 1202 1203 int 1204 main () 1205 { 1206 1207 ; 1208 return 0; 1209 } 1210 _ACEOF 1211 rm -f conftest.o conftest.obj 1212 if { (eval echo "$as_me:1212: \"$ac_compile\"") >&5 1213 (eval $ac_compile) 2>&5 1214 ac_status=$? 1215 echo "$as_me:1215: \$? = $ac_status" >&5 1216 (exit $ac_status); }; then 1217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1218 case $ac_file in 1219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1221 break;; 1222 esac 1223 done 1224 else 1225 echo "$as_me: failed program was:" >&5 1226 cat conftest.$ac_ext >&5 1227 { { echo "$as_me:1227: error: cannot compute OBJEXT: cannot compile" >&5 1228 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1229 { (exit 1); exit 1; }; } 1230 fi 1231 1232 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1233 fi 1234 echo "$as_me:1234: result: $ac_cv_objext" >&5 1235 echo "${ECHO_T}$ac_cv_objext" >&6 1236 OBJEXT=$ac_cv_objext 1237 ac_objext=$OBJEXT 1238 echo "$as_me:1238: checking whether we are using the GNU C++ compiler" >&5 1239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1241 echo $ECHO_N "(cached) $ECHO_C" >&6 1242 else 1243 cat >conftest.$ac_ext <<_ACEOF 1244 #line 1244 "configure" 1245 #include "confdefs.h" 1246 1247 int 1248 main () 1249 { 1250 #ifndef __GNUC__ 1251 choke me 662 1252 #endif 663 EOF 664 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 665 ac_cv_prog_gxx=yes 666 else 667 ac_cv_prog_gxx=no 668 fi 669 fi 670 671 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 672 673 if test $ac_cv_prog_gxx = yes; then 674 GXX=yes 675 else 676 GXX= 677 fi 678 679 ac_test_CXXFLAGS="${CXXFLAGS+set}" 680 ac_save_CXXFLAGS="$CXXFLAGS" 681 CXXFLAGS= 682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 683 echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5 684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 685 echo $ac_n "(cached) $ac_c" 1>&6 686 else 687 echo 'void f(){}' > conftest.cc 688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1253 1254 ; 1255 return 0; 1256 } 1257 _ACEOF 1258 rm -f conftest.$ac_objext 1259 if { (eval echo "$as_me:1259: \"$ac_compile\"") >&5 1260 (eval $ac_compile) 2>&5 1261 ac_status=$? 1262 echo "$as_me:1262: \$? = $ac_status" >&5 1263 (exit $ac_status); } && 1264 { ac_try='test -s conftest.$ac_objext' 1265 { (eval echo "$as_me:1265: \"$ac_try\"") >&5 1266 (eval $ac_try) 2>&5 1267 ac_status=$? 1268 echo "$as_me:1268: \$? = $ac_status" >&5 1269 (exit $ac_status); }; }; then 1270 ac_compiler_gnu=yes 1271 else 1272 echo "$as_me: failed program was:" >&5 1273 cat conftest.$ac_ext >&5 1274 ac_compiler_gnu=no 1275 fi 1276 rm -f conftest.$ac_objext conftest.$ac_ext 1277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1278 1279 fi 1280 echo "$as_me:1280: result: $ac_cv_cxx_compiler_gnu" >&5 1281 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1282 GXX=`test $ac_compiler_gnu = yes && echo yes` 1283 ac_test_CXXFLAGS=${CXXFLAGS+set} 1284 ac_save_CXXFLAGS=$CXXFLAGS 1285 CXXFLAGS="-g" 1286 echo "$as_me:1286: checking whether $CXX accepts -g" >&5 1287 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1288 if test "${ac_cv_prog_cxx_g+set}" = set; then 1289 echo $ECHO_N "(cached) $ECHO_C" >&6 1290 else 1291 cat >conftest.$ac_ext <<_ACEOF 1292 #line 1292 "configure" 1293 #include "confdefs.h" 1294 1295 int 1296 main () 1297 { 1298 1299 ; 1300 return 0; 1301 } 1302 _ACEOF 1303 rm -f conftest.$ac_objext 1304 if { (eval echo "$as_me:1304: \"$ac_compile\"") >&5 1305 (eval $ac_compile) 2>&5 1306 ac_status=$? 1307 echo "$as_me:1307: \$? = $ac_status" >&5 1308 (exit $ac_status); } && 1309 { ac_try='test -s conftest.$ac_objext' 1310 { (eval echo "$as_me:1310: \"$ac_try\"") >&5 1311 (eval $ac_try) 2>&5 1312 ac_status=$? 1313 echo "$as_me:1313: \$? = $ac_status" >&5 1314 (exit $ac_status); }; }; then 689 1315 ac_cv_prog_cxx_g=yes 690 1316 else 691 ac_cv_prog_cxx_g=no 692 fi 693 rm -f conftest* 694 695 fi 696 697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1317 echo "$as_me: failed program was:" >&5 1318 cat conftest.$ac_ext >&5 1319 ac_cv_prog_cxx_g=no 1320 fi 1321 rm -f conftest.$ac_objext conftest.$ac_ext 1322 fi 1323 echo "$as_me:1323: result: $ac_cv_prog_cxx_g" >&5 1324 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 698 1325 if test "$ac_test_CXXFLAGS" = set; then 699 CXXFLAGS= "$ac_save_CXXFLAGS"1326 CXXFLAGS=$ac_save_CXXFLAGS 700 1327 elif test $ac_cv_prog_cxx_g = yes; then 701 1328 if test "$GXX" = yes; then … … 711 1338 fi 712 1339 fi 1340 for ac_declaration in \ 1341 ''\ 1342 '#include <stdlib.h>' \ 1343 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1344 'extern "C" void std::exit (int); using std::exit;' \ 1345 'extern "C" void exit (int) throw ();' \ 1346 'extern "C" void exit (int);' \ 1347 'void exit (int);' 1348 do 1349 cat >conftest.$ac_ext <<_ACEOF 1350 #line 1350 "configure" 1351 #include "confdefs.h" 1352 #include <stdlib.h> 1353 $ac_declaration 1354 int 1355 main () 1356 { 1357 exit (42); 1358 ; 1359 return 0; 1360 } 1361 _ACEOF 1362 rm -f conftest.$ac_objext 1363 if { (eval echo "$as_me:1363: \"$ac_compile\"") >&5 1364 (eval $ac_compile) 2>&5 1365 ac_status=$? 1366 echo "$as_me:1366: \$? = $ac_status" >&5 1367 (exit $ac_status); } && 1368 { ac_try='test -s conftest.$ac_objext' 1369 { (eval echo "$as_me:1369: \"$ac_try\"") >&5 1370 (eval $ac_try) 2>&5 1371 ac_status=$? 1372 echo "$as_me:1372: \$? = $ac_status" >&5 1373 (exit $ac_status); }; }; then 1374 : 1375 else 1376 echo "$as_me: failed program was:" >&5 1377 cat conftest.$ac_ext >&5 1378 continue 1379 fi 1380 rm -f conftest.$ac_objext conftest.$ac_ext 1381 cat >conftest.$ac_ext <<_ACEOF 1382 #line 1382 "configure" 1383 #include "confdefs.h" 1384 $ac_declaration 1385 int 1386 main () 1387 { 1388 exit (42); 1389 ; 1390 return 0; 1391 } 1392 _ACEOF 1393 rm -f conftest.$ac_objext 1394 if { (eval echo "$as_me:1394: \"$ac_compile\"") >&5 1395 (eval $ac_compile) 2>&5 1396 ac_status=$? 1397 echo "$as_me:1397: \$? = $ac_status" >&5 1398 (exit $ac_status); } && 1399 { ac_try='test -s conftest.$ac_objext' 1400 { (eval echo "$as_me:1400: \"$ac_try\"") >&5 1401 (eval $ac_try) 2>&5 1402 ac_status=$? 1403 echo "$as_me:1403: \$? = $ac_status" >&5 1404 (exit $ac_status); }; }; then 1405 break 1406 else 1407 echo "$as_me: failed program was:" >&5 1408 cat conftest.$ac_ext >&5 1409 fi 1410 rm -f conftest.$ac_objext conftest.$ac_ext 1411 done 1412 echo '#ifdef __cplusplus' >>confdefs.h 1413 echo $ac_declaration >>confdefs.h 1414 echo '#endif' >>confdefs.h 1415 1416 ac_ext=c 1417 ac_cpp='$CPP $CPPFLAGS' 1418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1420 ac_compiler_gnu=$ac_cv_c_compiler_gnu 713 1421 714 1422 for ac_prog in mawk gawk nawk awk 715 1423 do 716 # Extract the first word of "$ac_prog", so it can be a program name with args.1424 # Extract the first word of "$ac_prog", so it can be a program name with args. 717 1425 set dummy $ac_prog; ac_word=$2 718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6719 echo "configure:720: checking for $ac_word" >&5720 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then721 echo $ ac_n "(cached) $ac_c" 1>&61426 echo "$as_me:1426: checking for $ac_word" >&5 1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1428 if test "${ac_cv_prog_AWK+set}" = set; then 1429 echo $ECHO_N "(cached) $ECHO_C" >&6 722 1430 else 723 1431 if test -n "$AWK"; then 724 1432 ac_cv_prog_AWK="$AWK" # Let the user override the test. 725 1433 else 726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 727 ac_dummy="$PATH" 728 for ac_dir in $ac_dummy; do 729 test -z "$ac_dir" && ac_dir=. 730 if test -f $ac_dir/$ac_word; then 731 ac_cv_prog_AWK="$ac_prog" 732 break 733 fi 734 done 735 IFS="$ac_save_ifs" 736 fi 737 fi 738 AWK="$ac_cv_prog_AWK" 1434 ac_save_IFS=$IFS; IFS=$ac_path_separator 1435 ac_dummy="$PATH" 1436 for ac_dir in $ac_dummy; do 1437 IFS=$ac_save_IFS 1438 test -z "$ac_dir" && ac_dir=. 1439 $as_executable_p "$ac_dir/$ac_word" || continue 1440 ac_cv_prog_AWK="$ac_prog" 1441 echo "$as_me:1441: found $ac_dir/$ac_word" >&5 1442 break 1443 done 1444 1445 fi 1446 fi 1447 AWK=$ac_cv_prog_AWK 739 1448 if test -n "$AWK"; then 740 echo "$ac_t""$AWK" 1>&6 741 else 742 echo "$ac_t""no" 1>&6 743 fi 744 745 test -n "$AWK" && break 1449 echo "$as_me:1449: result: $AWK" >&5 1450 echo "${ECHO_T}$AWK" >&6 1451 else 1452 echo "$as_me:1452: result: no" >&5 1453 echo "${ECHO_T}no" >&6 1454 fi 1455 1456 test -n "$AWK" && break 746 1457 done 747 1458 748 1459 for ac_prog in 'bison -y' byacc 749 1460 do 750 # Extract the first word of "$ac_prog", so it can be a program name with args.1461 # Extract the first word of "$ac_prog", so it can be a program name with args. 751 1462 set dummy $ac_prog; ac_word=$2 752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6753 echo "configure:754: checking for $ac_word" >&5754 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then755 echo $ ac_n "(cached) $ac_c" 1>&61463 echo "$as_me:1463: checking for $ac_word" >&5 1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1465 if test "${ac_cv_prog_YACC+set}" = set; then 1466 echo $ECHO_N "(cached) $ECHO_C" >&6 756 1467 else 757 1468 if test -n "$YACC"; then 758 1469 ac_cv_prog_YACC="$YACC" # Let the user override the test. 759 1470 else 760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 761 ac_dummy="$PATH" 762 for ac_dir in $ac_dummy; do 763 test -z "$ac_dir" && ac_dir=. 764 if test -f $ac_dir/$ac_word; then 765 ac_cv_prog_YACC="$ac_prog" 766 break 767 fi 768 done 769 IFS="$ac_save_ifs" 770 fi 771 fi 772 YACC="$ac_cv_prog_YACC" 1471 ac_save_IFS=$IFS; IFS=$ac_path_separator 1472 ac_dummy="$PATH" 1473 for ac_dir in $ac_dummy; do 1474 IFS=$ac_save_IFS 1475 test -z "$ac_dir" && ac_dir=. 1476 $as_executable_p "$ac_dir/$ac_word" || continue 1477 ac_cv_prog_YACC="$ac_prog" 1478 echo "$as_me:1478: found $ac_dir/$ac_word" >&5 1479 break 1480 done 1481 1482 fi 1483 fi 1484 YACC=$ac_cv_prog_YACC 773 1485 if test -n "$YACC"; then 774 echo "$ac_t""$YACC" 1>&6 775 else 776 echo "$ac_t""no" 1>&6 777 fi 778 779 test -n "$YACC" && break 1486 echo "$as_me:1486: result: $YACC" >&5 1487 echo "${ECHO_T}$YACC" >&6 1488 else 1489 echo "$as_me:1489: result: no" >&5 1490 echo "${ECHO_T}no" >&6 1491 fi 1492 1493 test -n "$YACC" && break 780 1494 done 781 1495 test -n "$YACC" || YACC="yacc" 782 1496 783 # Extract the first word of "gcc", so it can be a program name with args. 784 set dummy gcc; ac_word=$2 785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 786 echo "configure:787: checking for $ac_word" >&5 787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 788 echo $ac_n "(cached) $ac_c" 1>&6 1497 ac_ext=c 1498 ac_cpp='$CPP $CPPFLAGS' 1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1502 if test -n "$ac_tool_prefix"; then 1503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1504 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1505 echo "$as_me:1505: checking for $ac_word" >&5 1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1507 if test "${ac_cv_prog_CC+set}" = set; then 1508 echo $ECHO_N "(cached) $ECHO_C" >&6 789 1509 else 790 1510 if test -n "$CC"; then 791 1511 ac_cv_prog_CC="$CC" # Let the user override the test. 792 1512 else 793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 794 ac_dummy="$PATH" 795 for ac_dir in $ac_dummy; do 796 test -z "$ac_dir" && ac_dir=. 797 if test -f $ac_dir/$ac_word; then 798 ac_cv_prog_CC="gcc" 799 break 800 fi 801 done 802 IFS="$ac_save_ifs" 803 fi 804 fi 805 CC="$ac_cv_prog_CC" 1513 ac_save_IFS=$IFS; IFS=$ac_path_separator 1514 ac_dummy="$PATH" 1515 for ac_dir in $ac_dummy; do 1516 IFS=$ac_save_IFS 1517 test -z "$ac_dir" && ac_dir=. 1518 $as_executable_p "$ac_dir/$ac_word" || continue 1519 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1520 echo "$as_me:1520: found $ac_dir/$ac_word" >&5 1521 break 1522 done 1523 1524 fi 1525 fi 1526 CC=$ac_cv_prog_CC 806 1527 if test -n "$CC"; then 807 echo "$ac_t""$CC" 1>&6 808 else 809 echo "$ac_t""no" 1>&6 810 fi 811 1528 echo "$as_me:1528: result: $CC" >&5 1529 echo "${ECHO_T}$CC" >&6 1530 else 1531 echo "$as_me:1531: result: no" >&5 1532 echo "${ECHO_T}no" >&6 1533 fi 1534 1535 fi 1536 if test -z "$ac_cv_prog_CC"; then 1537 ac_ct_CC=$CC 1538 # Extract the first word of "gcc", so it can be a program name with args. 1539 set dummy gcc; ac_word=$2 1540 echo "$as_me:1540: checking for $ac_word" >&5 1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1543 echo $ECHO_N "(cached) $ECHO_C" >&6 1544 else 1545 if test -n "$ac_ct_CC"; then 1546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1547 else 1548 ac_save_IFS=$IFS; IFS=$ac_path_separator 1549 ac_dummy="$PATH" 1550 for ac_dir in $ac_dummy; do 1551 IFS=$ac_save_IFS 1552 test -z "$ac_dir" && ac_dir=. 1553 $as_executable_p "$ac_dir/$ac_word" || continue 1554 ac_cv_prog_ac_ct_CC="gcc" 1555 echo "$as_me:1555: found $ac_dir/$ac_word" >&5 1556 break 1557 done 1558 1559 fi 1560 fi 1561 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1562 if test -n "$ac_ct_CC"; then 1563 echo "$as_me:1563: result: $ac_ct_CC" >&5 1564 echo "${ECHO_T}$ac_ct_CC" >&6 1565 else 1566 echo "$as_me:1566: result: no" >&5 1567 echo "${ECHO_T}no" >&6 1568 fi 1569 1570 CC=$ac_ct_CC 1571 else 1572 CC="$ac_cv_prog_CC" 1573 fi 1574 1575 if test -z "$CC"; then 1576 if test -n "$ac_tool_prefix"; then 1577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1578 set dummy ${ac_tool_prefix}cc; ac_word=$2 1579 echo "$as_me:1579: checking for $ac_word" >&5 1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1581 if test "${ac_cv_prog_CC+set}" = set; then 1582 echo $ECHO_N "(cached) $ECHO_C" >&6 1583 else 1584 if test -n "$CC"; then 1585 ac_cv_prog_CC="$CC" # Let the user override the test. 1586 else 1587 ac_save_IFS=$IFS; IFS=$ac_path_separator 1588 ac_dummy="$PATH" 1589 for ac_dir in $ac_dummy; do 1590 IFS=$ac_save_IFS 1591 test -z "$ac_dir" && ac_dir=. 1592 $as_executable_p "$ac_dir/$ac_word" || continue 1593 ac_cv_prog_CC="${ac_tool_prefix}cc" 1594 echo "$as_me:1594: found $ac_dir/$ac_word" >&5 1595 break 1596 done 1597 1598 fi 1599 fi 1600 CC=$ac_cv_prog_CC 1601 if test -n "$CC"; then 1602 echo "$as_me:1602: result: $CC" >&5 1603 echo "${ECHO_T}$CC" >&6 1604 else 1605 echo "$as_me:1605: result: no" >&5 1606 echo "${ECHO_T}no" >&6 1607 fi 1608 1609 fi 1610 if test -z "$ac_cv_prog_CC"; then 1611 ac_ct_CC=$CC 1612 # Extract the first word of "cc", so it can be a program name with args. 1613 set dummy cc; ac_word=$2 1614 echo "$as_me:1614: checking for $ac_word" >&5 1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1617 echo $ECHO_N "(cached) $ECHO_C" >&6 1618 else 1619 if test -n "$ac_ct_CC"; then 1620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1621 else 1622 ac_save_IFS=$IFS; IFS=$ac_path_separator 1623 ac_dummy="$PATH" 1624 for ac_dir in $ac_dummy; do 1625 IFS=$ac_save_IFS 1626 test -z "$ac_dir" && ac_dir=. 1627 $as_executable_p "$ac_dir/$ac_word" || continue 1628 ac_cv_prog_ac_ct_CC="cc" 1629 echo "$as_me:1629: found $ac_dir/$ac_word" >&5 1630 break 1631 done 1632 1633 fi 1634 fi 1635 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1636 if test -n "$ac_ct_CC"; then 1637 echo "$as_me:1637: result: $ac_ct_CC" >&5 1638 echo "${ECHO_T}$ac_ct_CC" >&6 1639 else 1640 echo "$as_me:1640: result: no" >&5 1641 echo "${ECHO_T}no" >&6 1642 fi 1643 1644 CC=$ac_ct_CC 1645 else 1646 CC="$ac_cv_prog_CC" 1647 fi 1648 1649 fi 812 1650 if test -z "$CC"; then 813 1651 # Extract the first word of "cc", so it can be a program name with args. 814 1652 set dummy cc; ac_word=$2 815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6816 echo "configure:817: checking for $ac_word" >&5817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then818 echo $ ac_n "(cached) $ac_c" 1>&61653 echo "$as_me:1653: checking for $ac_word" >&5 1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1655 if test "${ac_cv_prog_CC+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 819 1657 else 820 1658 if test -n "$CC"; then 821 1659 ac_cv_prog_CC="$CC" # Let the user override the test. 822 1660 else 823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"824 1661 ac_prog_rejected=no 825 ac_dummy="$PATH" 826 for ac_dir in $ac_dummy; do 827 test -z "$ac_dir" && ac_dir=. 828 if test -f $ac_dir/$ac_word; then 829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 830 ac_prog_rejected=yes 831 continue 832 fi 833 ac_cv_prog_CC="cc" 834 break 835 fi 836 done 837 IFS="$ac_save_ifs" 1662 ac_save_IFS=$IFS; IFS=$ac_path_separator 1663 ac_dummy="$PATH" 1664 for ac_dir in $ac_dummy; do 1665 IFS=$ac_save_IFS 1666 test -z "$ac_dir" && ac_dir=. 1667 $as_executable_p "$ac_dir/$ac_word" || continue 1668 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1669 ac_prog_rejected=yes 1670 continue 1671 fi 1672 ac_cv_prog_CC="cc" 1673 echo "$as_me:1673: found $ac_dir/$ac_word" >&5 1674 break 1675 done 1676 838 1677 if test $ac_prog_rejected = yes; then 839 1678 # We found a bogon in the path, so make sure we never use it. 840 1679 set dummy $ac_cv_prog_CC 841 1680 shift 842 if test $# -gt0; then1681 if test $# != 0; then 843 1682 # We chose a different compiler from the bogus one. 844 1683 # However, it has the same basename, so the bogon will be chosen 845 1684 # first if we set CC to just the basename; use the full file name. 846 1685 shift 847 set dummy "$ac_dir/$ac_word" "$@"1686 set dummy "$ac_dir/$ac_word" ${1+"$@"} 848 1687 shift 849 1688 ac_cv_prog_CC="$@" … … 852 1691 fi 853 1692 fi 854 CC= "$ac_cv_prog_CC"1693 CC=$ac_cv_prog_CC 855 1694 if test -n "$CC"; then 856 echo "$ac_t""$CC" 1>&6 857 else 858 echo "$ac_t""no" 1>&6 859 fi 860 861 if test -z "$CC"; then 862 case "`uname -s`" in 863 *win32* | *WIN32*) 864 # Extract the first word of "cl", so it can be a program name with args. 865 set dummy cl; ac_word=$2 866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 867 echo "configure:868: checking for $ac_word" >&5 868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 869 echo $ac_n "(cached) $ac_c" 1>&6 1695 echo "$as_me:1695: result: $CC" >&5 1696 echo "${ECHO_T}$CC" >&6 1697 else 1698 echo "$as_me:1698: result: no" >&5 1699 echo "${ECHO_T}no" >&6 1700 fi 1701 1702 fi 1703 if test -z "$CC"; then 1704 if test -n "$ac_tool_prefix"; then 1705 for ac_prog in cl 1706 do 1707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1709 echo "$as_me:1709: checking for $ac_word" >&5 1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1711 if test "${ac_cv_prog_CC+set}" = set; then 1712 echo $ECHO_N "(cached) $ECHO_C" >&6 870 1713 else 871 1714 if test -n "$CC"; then 872 1715 ac_cv_prog_CC="$CC" # Let the user override the test. 873 1716 else 874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 875 ac_dummy="$PATH" 876 for ac_dir in $ac_dummy; do 877 test -z "$ac_dir" && ac_dir=. 878 if test -f $ac_dir/$ac_word; then 879 ac_cv_prog_CC="cl" 880 break 881 fi 1717 ac_save_IFS=$IFS; IFS=$ac_path_separator 1718 ac_dummy="$PATH" 1719 for ac_dir in $ac_dummy; do 1720 IFS=$ac_save_IFS 1721 test -z "$ac_dir" && ac_dir=. 1722 $as_executable_p "$ac_dir/$ac_word" || continue 1723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1724 echo "$as_me:1724: found $ac_dir/$ac_word" >&5 1725 break 1726 done 1727 1728 fi 1729 fi 1730 CC=$ac_cv_prog_CC 1731 if test -n "$CC"; then 1732 echo "$as_me:1732: result: $CC" >&5 1733 echo "${ECHO_T}$CC" >&6 1734 else 1735 echo "$as_me:1735: result: no" >&5 1736 echo "${ECHO_T}no" >&6 1737 fi 1738 1739 test -n "$CC" && break 882 1740 done 883 IFS="$ac_save_ifs" 884 fi 885 fi 886 CC="$ac_cv_prog_CC" 887 if test -n "$CC"; then 888 echo "$ac_t""$CC" 1>&6 889 else 890 echo "$ac_t""no" 1>&6 891 fi 892 ;; 893 esac 894 fi 895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 896 fi 897 898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 900 901 ac_ext=c 902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 903 ac_cpp='$CPP $CPPFLAGS' 904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 906 cross_compiling=$ac_cv_prog_cc_cross 907 908 cat > conftest.$ac_ext << EOF 909 910 #line 911 "configure" 911 #include "confdefs.h" 912 913 main(){return(0);} 914 EOF 915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 916 ac_cv_prog_cc_works=yes 917 # If we can't run a trivial program, we are probably using a cross compiler. 918 if (./conftest; exit) 2>/dev/null; then 919 ac_cv_prog_cc_cross=no 920 else 921 ac_cv_prog_cc_cross=yes 922 fi 923 else 924 echo "configure: failed program was:" >&5 925 cat conftest.$ac_ext >&5 926 ac_cv_prog_cc_works=no 927 fi 928 rm -fr conftest* 929 ac_ext=c 930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 931 ac_cpp='$CPP $CPPFLAGS' 932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 934 cross_compiling=$ac_cv_prog_cc_cross 935 936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 937 if test $ac_cv_prog_cc_works = no; then 938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 939 fi 940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 943 cross_compiling=$ac_cv_prog_cc_cross 944 945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 946 echo "configure:947: checking whether we are using GNU C" >&5 947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 948 echo $ac_n "(cached) $ac_c" 1>&6 949 else 950 cat > conftest.c <<EOF 951 #ifdef __GNUC__ 952 yes; 1741 fi 1742 if test -z "$CC"; then 1743 ac_ct_CC=$CC 1744 for ac_prog in cl 1745 do 1746 # Extract the first word of "$ac_prog", so it can be a program name with args. 1747 set dummy $ac_prog; ac_word=$2 1748 echo "$as_me:1748: checking for $ac_word" >&5 1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752 else 1753 if test -n "$ac_ct_CC"; then 1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1755 else 1756 ac_save_IFS=$IFS; IFS=$ac_path_separator 1757 ac_dummy="$PATH" 1758 for ac_dir in $ac_dummy; do 1759 IFS=$ac_save_IFS 1760 test -z "$ac_dir" && ac_dir=. 1761 $as_executable_p "$ac_dir/$ac_word" || continue 1762 ac_cv_prog_ac_ct_CC="$ac_prog" 1763 echo "$as_me:1763: found $ac_dir/$ac_word" >&5 1764 break 1765 done 1766 1767 fi 1768 fi 1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1770 if test -n "$ac_ct_CC"; then 1771 echo "$as_me:1771: result: $ac_ct_CC" >&5 1772 echo "${ECHO_T}$ac_ct_CC" >&6 1773 else 1774 echo "$as_me:1774: result: no" >&5 1775 echo "${ECHO_T}no" >&6 1776 fi 1777 1778 test -n "$ac_ct_CC" && break 1779 done 1780 1781 CC=$ac_ct_CC 1782 fi 1783 1784 fi 1785 1786 test -z "$CC" && { { echo "$as_me:1786: error: no acceptable cc found in \$PATH" >&5 1787 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1788 { (exit 1); exit 1; }; } 1789 1790 echo "$as_me:1790: checking whether we are using the GNU C compiler" >&5 1791 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1792 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1793 echo $ECHO_N "(cached) $ECHO_C" >&6 1794 else 1795 cat >conftest.$ac_ext <<_ACEOF 1796 #line 1796 "configure" 1797 #include "confdefs.h" 1798 1799 int 1800 main () 1801 { 1802 #ifndef __GNUC__ 1803 choke me 953 1804 #endif 954 EOF 955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 956 ac_cv_prog_gcc=yes 957 else 958 ac_cv_prog_gcc=no 959 fi 960 fi 961 962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 963 964 if test $ac_cv_prog_gcc = yes; then 965 GCC=yes 966 else 967 GCC= 968 fi 969 970 ac_test_CFLAGS="${CFLAGS+set}" 971 ac_save_CFLAGS="$CFLAGS" 972 CFLAGS= 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977 else 978 echo 'void f(){}' > conftest.c 979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1805 1806 ; 1807 return 0; 1808 } 1809 _ACEOF 1810 rm -f conftest.$ac_objext 1811 if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5 1812 (eval $ac_compile) 2>&5 1813 ac_status=$? 1814 echo "$as_me:1814: \$? = $ac_status" >&5 1815 (exit $ac_status); } && 1816 { ac_try='test -s conftest.$ac_objext' 1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5 1818 (eval $ac_try) 2>&5 1819 ac_status=$? 1820 echo "$as_me:1820: \$? = $ac_status" >&5 1821 (exit $ac_status); }; }; then 1822 ac_compiler_gnu=yes 1823 else 1824 echo "$as_me: failed program was:" >&5 1825 cat conftest.$ac_ext >&5 1826 ac_compiler_gnu=no 1827 fi 1828 rm -f conftest.$ac_objext conftest.$ac_ext 1829 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1830 1831 fi 1832 echo "$as_me:1832: result: $ac_cv_c_compiler_gnu" >&5 1833 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1834 GCC=`test $ac_compiler_gnu = yes && echo yes` 1835 ac_test_CFLAGS=${CFLAGS+set} 1836 ac_save_CFLAGS=$CFLAGS 1837 CFLAGS="-g" 1838 echo "$as_me:1838: checking whether $CC accepts -g" >&5 1839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1840 if test "${ac_cv_prog_cc_g+set}" = set; then 1841 echo $ECHO_N "(cached) $ECHO_C" >&6 1842 else 1843 cat >conftest.$ac_ext <<_ACEOF 1844 #line 1844 "configure" 1845 #include "confdefs.h" 1846 1847 int 1848 main () 1849 { 1850 1851 ; 1852 return 0; 1853 } 1854 _ACEOF 1855 rm -f conftest.$ac_objext 1856 if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5 1857 (eval $ac_compile) 2>&5 1858 ac_status=$? 1859 echo "$as_me:1859: \$? = $ac_status" >&5 1860 (exit $ac_status); } && 1861 { ac_try='test -s conftest.$ac_objext' 1862 { (eval echo "$as_me:1862: \"$ac_try\"") >&5 1863 (eval $ac_try) 2>&5 1864 ac_status=$? 1865 echo "$as_me:1865: \$? = $ac_status" >&5 1866 (exit $ac_status); }; }; then 980 1867 ac_cv_prog_cc_g=yes 981 1868 else 982 ac_cv_prog_cc_g=no 983 fi 984 rm -f conftest* 985 986 fi 987 988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1869 echo "$as_me: failed program was:" >&5 1870 cat conftest.$ac_ext >&5 1871 ac_cv_prog_cc_g=no 1872 fi 1873 rm -f conftest.$ac_objext conftest.$ac_ext 1874 fi 1875 echo "$as_me:1875: result: $ac_cv_prog_cc_g" >&5 1876 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 989 1877 if test "$ac_test_CFLAGS" = set; then 990 CFLAGS= "$ac_save_CFLAGS"1878 CFLAGS=$ac_save_CFLAGS 991 1879 elif test $ac_cv_prog_cc_g = yes; then 992 1880 if test "$GCC" = yes; then … … 1002 1890 fi 1003 1891 fi 1892 # Some people use a C++ compiler to compile C. Since we use `exit', 1893 # in C++ we need to declare it. In case someone uses the same compiler 1894 # for both compiling C and C++ we need to have the C++ compiler decide 1895 # the declaration of exit, since it's the most demanding environment. 1896 cat >conftest.$ac_ext <<_ACEOF 1897 #ifndef __cplusplus 1898 choke me 1899 #endif 1900 _ACEOF 1901 rm -f conftest.$ac_objext 1902 if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5 1903 (eval $ac_compile) 2>&5 1904 ac_status=$? 1905 echo "$as_me:1905: \$? = $ac_status" >&5 1906 (exit $ac_status); } && 1907 { ac_try='test -s conftest.$ac_objext' 1908 { (eval echo "$as_me:1908: \"$ac_try\"") >&5 1909 (eval $ac_try) 2>&5 1910 ac_status=$? 1911 echo "$as_me:1911: \$? = $ac_status" >&5 1912 (exit $ac_status); }; }; then 1913 for ac_declaration in \ 1914 ''\ 1915 '#include <stdlib.h>' \ 1916 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1917 'extern "C" void std::exit (int); using std::exit;' \ 1918 'extern "C" void exit (int) throw ();' \ 1919 'extern "C" void exit (int);' \ 1920 'void exit (int);' 1921 do 1922 cat >conftest.$ac_ext <<_ACEOF 1923 #line 1923 "configure" 1924 #include "confdefs.h" 1925 #include <stdlib.h> 1926 $ac_declaration 1927 int 1928 main () 1929 { 1930 exit (42); 1931 ; 1932 return 0; 1933 } 1934 _ACEOF 1935 rm -f conftest.$ac_objext 1936 if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5 1937 (eval $ac_compile) 2>&5 1938 ac_status=$? 1939 echo "$as_me:1939: \$? = $ac_status" >&5 1940 (exit $ac_status); } && 1941 { ac_try='test -s conftest.$ac_objext' 1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5 1943 (eval $ac_try) 2>&5 1944 ac_status=$? 1945 echo "$as_me:1945: \$? = $ac_status" >&5 1946 (exit $ac_status); }; }; then 1947 : 1948 else 1949 echo "$as_me: failed program was:" >&5 1950 cat conftest.$ac_ext >&5 1951 continue 1952 fi 1953 rm -f conftest.$ac_objext conftest.$ac_ext 1954 cat >conftest.$ac_ext <<_ACEOF 1955 #line 1955 "configure" 1956 #include "confdefs.h" 1957 $ac_declaration 1958 int 1959 main () 1960 { 1961 exit (42); 1962 ; 1963 return 0; 1964 } 1965 _ACEOF 1966 rm -f conftest.$ac_objext 1967 if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5 1968 (eval $ac_compile) 2>&5 1969 ac_status=$? 1970 echo "$as_me:1970: \$? = $ac_status" >&5 1971 (exit $ac_status); } && 1972 { ac_try='test -s conftest.$ac_objext' 1973 { (eval echo "$as_me:1973: \"$ac_try\"") >&5 1974 (eval $ac_try) 2>&5 1975 ac_status=$? 1976 echo "$as_me:1976: \$? = $ac_status" >&5 1977 (exit $ac_status); }; }; then 1978 break 1979 else 1980 echo "$as_me: failed program was:" >&5 1981 cat conftest.$ac_ext >&5 1982 fi 1983 rm -f conftest.$ac_objext conftest.$ac_ext 1984 done 1985 echo '#ifdef __cplusplus' >>confdefs.h 1986 echo $ac_declaration >>confdefs.h 1987 echo '#endif' >>confdefs.h 1988 1989 else 1990 echo "$as_me: failed program was:" >&5 1991 cat conftest.$ac_ext >&5 1992 fi 1993 rm -f conftest.$ac_objext conftest.$ac_ext 1994 ac_ext=c 1995 ac_cpp='$CPP $CPPFLAGS' 1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1004 1999 1005 2000 ac_aux_dir= … … 1013 2008 ac_install_sh="$ac_aux_dir/install.sh -c" 1014 2009 break 2010 elif test -f $ac_dir/shtool; then 2011 ac_aux_dir=$ac_dir 2012 ac_install_sh="$ac_aux_dir/shtool install -c" 2013 break 1015 2014 fi 1016 2015 done 1017 2016 if test -z "$ac_aux_dir"; then 1018 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1019 fi 1020 ac_config_guess=$ac_aux_dir/config.guess 1021 ac_config_sub=$ac_aux_dir/config.sub 1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2017 { { echo "$as_me:2017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2018 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2019 { (exit 1); exit 1; }; } 2020 fi 2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2023 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1023 2024 1024 2025 # Find a good install program. We prefer a C program (faster), … … 1029 2030 # IRIX /sbin/install 1030 2031 # AIX /bin/install 2032 # AmigaOS /C/install, which installs bootblocks on floppy discs 1031 2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1032 2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1033 2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1034 2036 # ./install, which can be erroneously created by make from ./install.sh. 1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61036 echo "configure:1037: checking for a BSD compatible install" >&52037 echo "$as_me:2037: checking for a BSD compatible install" >&5 2038 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1037 2039 if test -z "$INSTALL"; then 1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then1039 echo $ ac_n "(cached) $ac_c" 1>&61040 else 1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"2040 if test "${ac_cv_path_install+set}" = set; then 2041 echo $ECHO_N "(cached) $ECHO_C" >&6 2042 else 2043 ac_save_IFS=$IFS; IFS=$ac_path_separator 1042 2044 for ac_dir in $PATH; do 2045 IFS=$ac_save_IFS 1043 2046 # Account for people who put trailing slashes in PATH elements. 1044 case "$ac_dir/" in 1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2047 case $ac_dir/ in 2048 / | ./ | .// | /cC/* \ 2049 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2050 | /usr/ucb/* ) ;; 1046 2051 *) 1047 2052 # OSF1 and SCO ODT 3.0 have their own names for install. … … 1049 2054 # by default. 1050 2055 for ac_prog in ginstall scoinst install; do 1051 if test -f $ac_dir/$ac_prog; then2056 if $as_executable_p "$ac_dir/$ac_prog"; then 1052 2057 if test $ac_prog = install && 1053 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then2058 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1054 2059 # AIX install. It has an incompatible calling convention. 2060 : 2061 elif test $ac_prog = install && 2062 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2063 # program-specific install script used by HP pwplus--don't use. 1055 2064 : 1056 2065 else … … 1063 2072 esac 1064 2073 done 1065 IFS="$ac_save_IFS"1066 2074 1067 2075 fi 1068 2076 if test "${ac_cv_path_install+set}" = set; then 1069 INSTALL= "$ac_cv_path_install"2077 INSTALL=$ac_cv_path_install 1070 2078 else 1071 2079 # As a last resort, use the slow shell script. We don't cache a … … 1073 2081 # break other packages using the cache if that directory is 1074 2082 # removed, or if the path is relative. 1075 INSTALL= "$ac_install_sh"2083 INSTALL=$ac_install_sh 1076 2084 fi 1077 2085 fi 1078 echo "$ac_t""$INSTALL" 1>&6 2086 echo "$as_me:2086: result: $INSTALL" >&5 2087 echo "${ECHO_T}$INSTALL" >&6 1079 2088 1080 2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1082 2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1083 2092 1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL _PROGRAM}'2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1085 2094 1086 2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1087 2096 1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1089 echo "configure:1090: checking whether ln -s works" >&5 1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1091 echo $ac_n "(cached) $ac_c" 1>&6 1092 else 1093 rm -f conftestdata 1094 if ln -s X conftestdata 2>/dev/null 1095 then 1096 rm -f conftestdata 1097 ac_cv_prog_LN_S="ln -s" 1098 else 1099 ac_cv_prog_LN_S=ln 1100 fi 1101 fi 1102 LN_S="$ac_cv_prog_LN_S" 1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1104 echo "$ac_t""yes" 1>&6 1105 else 1106 echo "$ac_t""no" 1>&6 1107 fi 1108 1109 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1110 echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5 1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1112 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1113 echo $ac_n "(cached) $ac_c" 1>&6 1114 else 1115 cat > conftestmake <<\EOF 2097 echo "$as_me:2097: checking whether ln -s works" >&5 2098 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2099 LN_S=$as_ln_s 2100 if test "$LN_S" = "ln -s"; then 2101 echo "$as_me:2101: result: yes" >&5 2102 echo "${ECHO_T}yes" >&6 2103 else 2104 echo "$as_me:2104: result: no, using $LN_S" >&5 2105 echo "${ECHO_T}no, using $LN_S" >&6 2106 fi 2107 2108 echo "$as_me:2108: checking whether ${MAKE-make} sets \${MAKE}" >&5 2109 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2110 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2111 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2112 echo $ECHO_N "(cached) $ECHO_C" >&6 2113 else 2114 cat >conftest.make <<\EOF 1116 2115 all: 1117 2116 @echo 'ac_maketemp="${MAKE}"' 1118 2117 EOF 1119 2118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1120 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`2119 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1121 2120 if test -n "$ac_maketemp"; then 1122 2121 eval ac_cv_prog_make_${ac_make}_set=yes … … 1124 2123 eval ac_cv_prog_make_${ac_make}_set=no 1125 2124 fi 1126 rm -f conftest make2125 rm -f conftest.make 1127 2126 fi 1128 2127 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1129 echo "$ac_t""yes" 1>&6 2128 echo "$as_me:2128: result: yes" >&5 2129 echo "${ECHO_T}yes" >&6 1130 2130 SET_MAKE= 1131 2131 else 1132 echo "$ac_t""no" 1>&6 2132 echo "$as_me:2132: result: no" >&5 2133 echo "${ECHO_T}no" >&6 1133 2134 SET_MAKE="MAKE=${MAKE-make}" 1134 2135 fi 1135 2136 1136 # Extract the first word of "ranlib", so it can be a program name with args. 1137 set dummy ranlib; ac_word=$2 1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1139 echo "configure:1140: checking for $ac_word" >&5 1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1141 echo $ac_n "(cached) $ac_c" 1>&6 2137 if test -n "$ac_tool_prefix"; then 2138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2140 echo "$as_me:2140: checking for $ac_word" >&5 2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2142 if test "${ac_cv_prog_RANLIB+set}" = set; then 2143 echo $ECHO_N "(cached) $ECHO_C" >&6 1142 2144 else 1143 2145 if test -n "$RANLIB"; then 1144 2146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1145 2147 else 1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1147 1148 1149 test -z "$ac_dir" && ac_dir=.1150 if test -f $ac_dir/$ac_word; then1151 ac_cv_prog_RANLIB="ranlib"1152 break 1153 fi 1154 done 1155 IFS="$ac_save_ifs" 1156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1157 fi 1158 fi 1159 RANLIB= "$ac_cv_prog_RANLIB"2148 ac_save_IFS=$IFS; IFS=$ac_path_separator 2149 ac_dummy="$PATH" 2150 for ac_dir in $ac_dummy; do 2151 IFS=$ac_save_IFS 2152 test -z "$ac_dir" && ac_dir=. 2153 $as_executable_p "$ac_dir/$ac_word" || continue 2154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2155 echo "$as_me:2155: found $ac_dir/$ac_word" >&5 2156 break 2157 done 2158 2159 fi 2160 fi 2161 RANLIB=$ac_cv_prog_RANLIB 1160 2162 if test -n "$RANLIB"; then 1161 echo "$ac_t""$RANLIB" 1>&6 1162 else 1163 echo "$ac_t""no" 1>&6 1164 fi 1165 1166 1167 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1168 echo "configure:1169: checking how to run the C preprocessor" >&5 2163 echo "$as_me:2163: result: $RANLIB" >&5 2164 echo "${ECHO_T}$RANLIB" >&6 2165 else 2166 echo "$as_me:2166: result: no" >&5 2167 echo "${ECHO_T}no" >&6 2168 fi 2169 2170 fi 2171 if test -z "$ac_cv_prog_RANLIB"; then 2172 ac_ct_RANLIB=$RANLIB 2173 # Extract the first word of "ranlib", so it can be a program name with args. 2174 set dummy ranlib; ac_word=$2 2175 echo "$as_me:2175: checking for $ac_word" >&5 2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&6 2179 else 2180 if test -n "$ac_ct_RANLIB"; then 2181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2182 else 2183 ac_save_IFS=$IFS; IFS=$ac_path_separator 2184 ac_dummy="$PATH" 2185 for ac_dir in $ac_dummy; do 2186 IFS=$ac_save_IFS 2187 test -z "$ac_dir" && ac_dir=. 2188 $as_executable_p "$ac_dir/$ac_word" || continue 2189 ac_cv_prog_ac_ct_RANLIB="ranlib" 2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5 2191 break 2192 done 2193 2194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2195 fi 2196 fi 2197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2198 if test -n "$ac_ct_RANLIB"; then 2199 echo "$as_me:2199: result: $ac_ct_RANLIB" >&5 2200 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2201 else 2202 echo "$as_me:2202: result: no" >&5 2203 echo "${ECHO_T}no" >&6 2204 fi 2205 2206 RANLIB=$ac_ct_RANLIB 2207 else 2208 RANLIB="$ac_cv_prog_RANLIB" 2209 fi 2210 2211 ac_ext=c 2212 ac_cpp='$CPP $CPPFLAGS' 2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2216 echo "$as_me:2216: checking how to run the C preprocessor" >&5 2217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1169 2218 # On Suns, sometimes $CPP names a directory. 1170 2219 if test -n "$CPP" && test -d "$CPP"; then … … 1172 2221 fi 1173 2222 if test -z "$CPP"; then 1174 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1175 echo $ac_n "(cached) $ac_c" 1>&6 1176 else 1177 # This must be in double quotes, not single quotes, because CPP may get 1178 # substituted into the Makefile and "${CC-cc}" will confuse make. 1179 CPP="${CC-cc} -E" 2223 if test "${ac_cv_prog_CPP+set}" = set; then 2224 echo $ECHO_N "(cached) $ECHO_C" >&6 2225 else 2226 # Double quotes because CPP needs to be expanded 2227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2228 do 2229 # break 2 since there is a loop in there. 2230 ac_preproc_ok=false 2231 for ac_c_preproc_warn_flag in '' yes 2232 do 2233 # Use a header file that comes with gcc, so configuring glibc 2234 # with a fresh cross-compiler works. 1180 2235 # On the NeXT, cc -E runs the code through the compiler's parser, 1181 # not just through cpp. 1182 cat > conftest.$ac_ext <<EOF1183 #line 1184"configure"2236 # not just through cpp. "Syntax error" is here to catch this case. 2237 cat >conftest.$ac_ext <<_ACEOF 2238 #line 2238 "configure" 1184 2239 #include "confdefs.h" 1185 2240 #include <assert.h> 1186 Syntax Error 1187 EOF 1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1191 if test -z "$ac_err"; then 2241 Syntax error 2242 _ACEOF 2243 if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5 2244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2245 ac_status=$? 2246 egrep -v '^ *\+' conftest.er1 >conftest.err 2247 rm -f conftest.er1 2248 cat conftest.err >&5 2249 echo "$as_me:2249: \$? = $ac_status" >&5 2250 (exit $ac_status); } >/dev/null; then 2251 if test -s conftest.err; then 2252 ac_cpp_err=$ac_c_preproc_warn_flag 2253 else 2254 ac_cpp_err= 2255 fi 2256 else 2257 ac_cpp_err=yes 2258 fi 2259 if test -z "$ac_cpp_err"; then 1192 2260 : 1193 2261 else 1194 echo "$ac_err" >&5 1195 echo "configure: failed program was:" >&5 2262 echo "$as_me: failed program was:" >&5 1196 2263 cat conftest.$ac_ext >&5 1197 rm -rf conftest* 1198 CPP="${CC-cc} -E -traditional-cpp" 1199 cat > conftest.$ac_ext <<EOF 1200 #line 1201 "configure" 2264 # Broken: fails on valid input. 2265 continue 2266 fi 2267 rm -f conftest.err conftest.$ac_ext 2268 2269 # OK, works on sane cases. Now check whether non-existent headers 2270 # can be detected and how. 2271 cat >conftest.$ac_ext <<_ACEOF 2272 #line 2272 "configure" 2273 #include "confdefs.h" 2274 #include <ac_nonexistent.h> 2275 _ACEOF 2276 if { (eval echo "$as_me:2276: \"$ac_cpp conftest.$ac_ext\"") >&5 2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2278 ac_status=$? 2279 egrep -v '^ *\+' conftest.er1 >conftest.err 2280 rm -f conftest.er1 2281 cat conftest.err >&5 2282 echo "$as_me:2282: \$? = $ac_status" >&5 2283 (exit $ac_status); } >/dev/null; then 2284 if test -s conftest.err; then 2285 ac_cpp_err=$ac_c_preproc_warn_flag 2286 else 2287 ac_cpp_err= 2288 fi 2289 else 2290 ac_cpp_err=yes 2291 fi 2292 if test -z "$ac_cpp_err"; then 2293 # Broken: success on invalid input. 2294 continue 2295 else 2296 echo "$as_me: failed program was:" >&5 2297 cat conftest.$ac_ext >&5 2298 # Passes both tests. 2299 ac_preproc_ok=: 2300 break 2301 fi 2302 rm -f conftest.err conftest.$ac_ext 2303 2304 done 2305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2306 rm -f conftest.err conftest.$ac_ext 2307 if $ac_preproc_ok; then 2308 break 2 2309 fi 2310 2311 done 2312 ac_cv_prog_CPP=$CPP 2313 2314 fi 2315 CPP=$ac_cv_prog_CPP 2316 else 2317 ac_cv_prog_CPP=$CPP 2318 fi 2319 echo "$as_me:2319: result: $CPP" >&5 2320 echo "${ECHO_T}$CPP" >&6 2321 ac_preproc_ok=false 2322 for ac_c_preproc_warn_flag in '' yes 2323 do 2324 # Use a header file that comes with gcc, so configuring glibc 2325 # with a fresh cross-compiler works. 2326 # On the NeXT, cc -E runs the code through the compiler's parser, 2327 # not just through cpp. "Syntax error" is here to catch this case. 2328 cat >conftest.$ac_ext <<_ACEOF 2329 #line 2329 "configure" 1201 2330 #include "confdefs.h" 1202 2331 #include <assert.h> 1203 Syntax Error 1204 EOF 1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1208 if test -z "$ac_err"; then 2332 Syntax error 2333 _ACEOF 2334 if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5 2335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2336 ac_status=$? 2337 egrep -v '^ *\+' conftest.er1 >conftest.err 2338 rm -f conftest.er1 2339 cat conftest.err >&5 2340 echo "$as_me:2340: \$? = $ac_status" >&5 2341 (exit $ac_status); } >/dev/null; then 2342 if test -s conftest.err; then 2343 ac_cpp_err=$ac_c_preproc_warn_flag 2344 else 2345 ac_cpp_err= 2346 fi 2347 else 2348 ac_cpp_err=yes 2349 fi 2350 if test -z "$ac_cpp_err"; then 1209 2351 : 1210 2352 else 1211 echo "$ac_err" >&5 1212 echo "configure: failed program was:" >&5 2353 echo "$as_me: failed program was:" >&5 1213 2354 cat conftest.$ac_ext >&5 1214 rm -rf conftest* 1215 CPP="${CC-cc} -nologo -E" 1216 cat > conftest.$ac_ext <<EOF 1217 #line 1218 "configure" 1218 #include "confdefs.h" 1219 #include <assert.h> 1220 Syntax Error 1221 EOF 1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1225 if test -z "$ac_err"; then 2355 # Broken: fails on valid input. 2356 continue 2357 fi 2358 rm -f conftest.err conftest.$ac_ext 2359 2360 # OK, works on sane cases. Now check whether non-existent headers 2361 # can be detected and how. 2362 cat >conftest.$ac_ext <<_ACEOF 2363 #line 2363 "configure" 2364 #include "confdefs.h" 2365 #include <ac_nonexistent.h> 2366 _ACEOF 2367 if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5 2368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2369 ac_status=$? 2370 egrep -v '^ *\+' conftest.er1 >conftest.err 2371 rm -f conftest.er1 2372 cat conftest.err >&5 2373 echo "$as_me:2373: \$? = $ac_status" >&5 2374 (exit $ac_status); } >/dev/null; then 2375 if test -s conftest.err; then 2376 ac_cpp_err=$ac_c_preproc_warn_flag 2377 else 2378 ac_cpp_err= 2379 fi 2380 else 2381 ac_cpp_err=yes 2382 fi 2383 if test -z "$ac_cpp_err"; then 2384 # Broken: success on invalid input. 2385 continue 2386 else 2387 echo "$as_me: failed program was:" >&5 2388 cat conftest.$ac_ext >&5 2389 # Passes both tests. 2390 ac_preproc_ok=: 2391 break 2392 fi 2393 rm -f conftest.err conftest.$ac_ext 2394 2395 done 2396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2397 rm -f conftest.err conftest.$ac_ext 2398 if $ac_preproc_ok; then 1226 2399 : 1227 2400 else 1228 echo "$ac_err" >&5 1229 echo "configure: failed program was:" >&5 1230 cat conftest.$ac_ext >&5 1231 rm -rf conftest* 1232 CPP=/lib/cpp 1233 fi 1234 rm -f conftest* 1235 fi 1236 rm -f conftest* 1237 fi 1238 rm -f conftest* 1239 ac_cv_prog_CPP="$CPP" 1240 fi 1241 CPP="$ac_cv_prog_CPP" 1242 else 1243 ac_cv_prog_CPP="$CPP" 1244 fi 1245 echo "$ac_t""$CPP" 1>&6 1246 1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1248 echo "configure:1249: checking for AIX" >&5 1249 cat > conftest.$ac_ext <<EOF 1250 #line 1251 "configure" 2401 { { echo "$as_me:2401: error: C preprocessor \"$CPP\" fails sanity check" >&5 2402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2403 { (exit 1); exit 1; }; } 2404 fi 2405 2406 ac_ext=c 2407 ac_cpp='$CPP $CPPFLAGS' 2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2411 2412 echo "$as_me:2412: checking for AIX" >&5 2413 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2414 cat >conftest.$ac_ext <<_ACEOF 2415 #line 2415 "configure" 1251 2416 #include "confdefs.h" 1252 2417 #ifdef _AIX … … 1254 2419 #endif 1255 2420 1256 EOF2421 _ACEOF 1257 2422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1258 2423 egrep "yes" >/dev/null 2>&1; then 1259 rm -rf conftest* 1260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 2424 echo "$as_me:2424: result: yes" >&5 2425 echo "${ECHO_T}yes" >&6 2426 cat >>confdefs.h <<\EOF 1261 2427 #define _ALL_SOURCE 1 1262 2428 EOF 1263 2429 1264 2430 else 1265 rm -rf conftest*1266 echo "$ac_t""no" 1>&62431 echo "$as_me:2431: result: no" >&5 2432 echo "${ECHO_T}no" >&6 1267 2433 fi 1268 2434 rm -f conftest* 1269 2435 1270 1271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1272 echo "configure:1273: checking for POSIXized ISC" >&5 2436 echo "$as_me:2436: checking for POSIXized ISC" >&5 2437 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 1273 2438 if test -d /etc/conf/kconfig.d && 1274 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&12439 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1275 2440 then 1276 echo "$ac_t""yes" 1>&6 2441 echo "$as_me:2441: result: yes" >&5 2442 echo "${ECHO_T}yes" >&6 1277 2443 ISC=yes # If later tests want to check for ISC. 1278 cat >> confdefs.h <<\EOF 2444 2445 cat >>confdefs.h <<\EOF 1279 2446 #define _POSIX_SOURCE 1 1280 2447 EOF … … 1286 2453 fi 1287 2454 else 1288 echo "$ac_t""no" 1>&6 2455 echo "$as_me:2455: result: no" >&5 2456 echo "${ECHO_T}no" >&6 1289 2457 ISC= 1290 2458 fi 1291 2459 1292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1294 echo "configure:1295: checking for minix/config.h" >&5 1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1296 echo $ac_n "(cached) $ac_c" 1>&6 1297 else 1298 cat > conftest.$ac_ext <<EOF 1299 #line 1300 "configure" 2460 echo "$as_me:2460: checking for minix/config.h" >&5 2461 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2462 if test "${ac_cv_header_minix_config_h+set}" = set; then 2463 echo $ECHO_N "(cached) $ECHO_C" >&6 2464 else 2465 cat >conftest.$ac_ext <<_ACEOF 2466 #line 2466 "configure" 1300 2467 #include "confdefs.h" 1301 2468 #include <minix/config.h> 1302 EOF 1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1306 if test -z "$ac_err"; then 1307 rm -rf conftest* 1308 eval "ac_cv_header_$ac_safe=yes" 1309 else 1310 echo "$ac_err" >&5 1311 echo "configure: failed program was:" >&5 2469 _ACEOF 2470 if { (eval echo "$as_me:2470: \"$ac_cpp conftest.$ac_ext\"") >&5 2471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2472 ac_status=$? 2473 egrep -v '^ *\+' conftest.er1 >conftest.err 2474 rm -f conftest.er1 2475 cat conftest.err >&5 2476 echo "$as_me:2476: \$? = $ac_status" >&5 2477 (exit $ac_status); } >/dev/null; then 2478 if test -s conftest.err; then 2479 ac_cpp_err=$ac_c_preproc_warn_flag 2480 else 2481 ac_cpp_err= 2482 fi 2483 else 2484 ac_cpp_err=yes 2485 fi 2486 if test -z "$ac_cpp_err"; then 2487 ac_cv_header_minix_config_h=yes 2488 else 2489 echo "$as_me: failed program was:" >&5 1312 2490 cat conftest.$ac_ext >&5 1313 rm -rf conftest*1314 eval "ac_cv_header_$ac_safe=no" 1315 fi 1316 rm -f conftest* 1317 fi 1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1319 echo "$ac_t""yes" 1>&6 2491 ac_cv_header_minix_config_h=no 2492 fi 2493 rm -f conftest.err conftest.$ac_ext 2494 fi 2495 echo "$as_me:2495: result: $ac_cv_header_minix_config_h" >&5 2496 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2497 if test $ac_cv_header_minix_config_h = yes; then 1320 2498 MINIX=yes 1321 2499 else 1322 echo "$ac_t""no" 1>&6 1323 MINIX= 2500 MINIX= 1324 2501 fi 1325 2502 1326 2503 if test "$MINIX" = yes; then 1327 cat >> confdefs.h <<\EOF 2504 2505 cat >>confdefs.h <<\EOF 1328 2506 #define _POSIX_SOURCE 1 1329 2507 EOF 1330 2508 1331 cat >>confdefs.h <<\EOF2509 cat >>confdefs.h <<\EOF 1332 2510 #define _POSIX_1_SOURCE 2 1333 2511 EOF 1334 2512 1335 cat >>confdefs.h <<\EOF2513 cat >>confdefs.h <<\EOF 1336 2514 #define _MINIX 1 1337 2515 EOF … … 1339 2517 fi 1340 2518 1341 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&61342 echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&51343 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then1344 echo $ ac_n "(cached) $ac_c" 1>&62519 echo "$as_me:2519: checking for ${CC-cc} option to accept ANSI C" >&5 2520 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2521 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2522 echo $ECHO_N "(cached) $ECHO_C" >&6 1345 2523 else 1346 2524 ac_cv_prog_cc_stdc=no … … 1355 2533 do 1356 2534 CFLAGS="$ac_save_CFLAGS $ac_arg" 1357 cat > conftest.$ac_ext <<EOF1358 #line 1359"configure"2535 cat >conftest.$ac_ext <<_ACEOF 2536 #line 2536 "configure" 1359 2537 #include "confdefs.h" 1360 2538 #if !defined(__STDC__) || __STDC__ != 1 1361 2539 choke me 1362 #endif 1363 1364 int main() { 2540 #endif 2541 2542 int 2543 main () 2544 { 1365 2545 int test (int i, double x); 1366 2546 struct s1 {int (*f) (int a);}; 1367 2547 struct s2 {int (*f) (double a);}; 1368 ; return 0; } 1369 EOF 1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1371 rm -rf conftest* 2548 ; 2549 return 0; 2550 } 2551 _ACEOF 2552 rm -f conftest.$ac_objext 2553 if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5 2554 (eval $ac_compile) 2>&5 2555 ac_status=$? 2556 echo "$as_me:2556: \$? = $ac_status" >&5 2557 (exit $ac_status); } && 2558 { ac_try='test -s conftest.$ac_objext' 2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5 2560 (eval $ac_try) 2>&5 2561 ac_status=$? 2562 echo "$as_me:2562: \$? = $ac_status" >&5 2563 (exit $ac_status); }; }; then 1372 2564 ac_cv_prog_cc_stdc="$ac_arg"; break 1373 2565 else 1374 echo " configure: failed program was:" >&51375 1376 fi 1377 rm -f conftest *2566 echo "$as_me: failed program was:" >&5 2567 cat conftest.$ac_ext >&5 2568 fi 2569 rm -f conftest.$ac_objext conftest.$ac_ext 1378 2570 done 1379 2571 CFLAGS="$ac_save_CFLAGS" … … 1381 2573 fi 1382 2574 1383 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2575 echo "$as_me:2575: result: $ac_cv_prog_cc_stdc" >&5 2576 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1384 2577 case "x$ac_cv_prog_cc_stdc" in 1385 2578 x|xno) ;; … … 1387 2580 esac 1388 2581 1389 1390 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 1391 echo "configure:1392: checking for function prototypes" >&5 2582 echo "$as_me:2582: checking for function prototypes" >&5 2583 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 1392 2584 if test "$ac_cv_prog_cc_stdc" != no; then 1393 echo "$ac_t""yes" 1>&6 1394 cat >> confdefs.h <<\EOF 2585 echo "$as_me:2585: result: yes" >&5 2586 echo "${ECHO_T}yes" >&6 2587 cat >>confdefs.h <<\EOF 1395 2588 #define PROTOTYPES 1 1396 2589 EOF … … 1398 2591 U= ANSI2KNR= 1399 2592 else 1400 echo "$ac_t""no" 1>&6 2593 echo "$as_me:2593: result: no" >&5 2594 echo "${ECHO_T}no" >&6 1401 2595 U=_ ANSI2KNR=ansi2knr 1402 2596 fi 1403 2597 1404 echo $ac_n "checking for working const""... $ac_c" 1>&6 1405 echo "configure:1406: checking for working const" >&5 1406 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1407 echo $ac_n "(cached) $ac_c" 1>&6 1408 else 1409 cat > conftest.$ac_ext <<EOF 1410 #line 1411 "configure" 1411 #include "confdefs.h" 1412 1413 int main() { 1414 1415 /* Ultrix mips cc rejects this. */ 1416 typedef int charset[2]; const charset x; 1417 /* SunOS 4.1.1 cc rejects this. */ 1418 char const *const *ccp; 1419 char **p; 1420 /* NEC SVR4.0.2 mips cc rejects this. */ 1421 struct point {int x, y;}; 1422 static struct point const zero = {0,0}; 1423 /* AIX XL C 1.02.0.0 rejects this. 1424 It does not let you subtract one const X* pointer from another in an arm 1425 of an if-expression whose if-part is not a constant expression */ 1426 const char *g = "string"; 1427 ccp = &g + (g ? g-g : 0); 1428 /* HPUX 7.0 cc rejects these. */ 1429 ++ccp; 1430 p = (char**) ccp; 1431 ccp = (char const *const *) p; 1432 { /* SCO 3.2v4 cc rejects this. */ 1433 char *t; 1434 char const *s = 0 ? (char *) 0 : (char const *) 0; 1435 1436 *t++ = 0; 2598 echo "$as_me:2598: checking for $CC option to accept ANSI C" >&5 2599 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2600 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2601 echo $ECHO_N "(cached) $ECHO_C" >&6 2602 else 2603 ac_cv_prog_cc_stdc=no 2604 ac_save_CC=$CC 2605 cat >conftest.$ac_ext <<_ACEOF 2606 #line 2606 "configure" 2607 #include "confdefs.h" 2608 #include <stdarg.h> 2609 #include <stdio.h> 2610 #include <sys/types.h> 2611 #include <sys/stat.h> 2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2613 struct buf { int x; }; 2614 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2615 static char *e (p, i) 2616 char **p; 2617 int i; 2618 { 2619 return p[i]; 1437 2620 } 1438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1439 int x[] = {25, 17}; 1440 const int *foo = &x[0]; 1441 ++foo; 2621 static char *f (char * (*g) (char **, int), char **p, ...) 2622 { 2623 char *s; 2624 va_list v; 2625 va_start (v,p); 2626 s = g (p, va_arg (v,int)); 2627 va_end (v); 2628 return s; 1442 2629 } 1443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1444 typedef const int *iptr; 1445 iptr p = 0; 1446 ++p; 2630 int test (int i, double x); 2631 struct s1 {int (*f) (int a);}; 2632 struct s2 {int (*f) (double a);}; 2633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2634 int argc; 2635 char **argv; 2636 int 2637 main () 2638 { 2639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2640 ; 2641 return 0; 1447 2642 } 1448 { /* AIX XL C 1.02.0.0 rejects this saying 1449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1450 struct s { int j; const int *ap[3]; }; 1451 struct s *b; b->j = 5; 2643 _ACEOF 2644 # Don't try gcc -ansi; that turns off useful extensions and 2645 # breaks some systems' header files. 2646 # AIX -qlanglvl=ansi 2647 # Ultrix and OSF/1 -std1 2648 # HP-UX 10.20 and later -Ae 2649 # HP-UX older versions -Aa -D_HPUX_SOURCE 2650 # SVR4 -Xc -D__EXTENSIONS__ 2651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2652 do 2653 CC="$ac_save_CC $ac_arg" 2654 rm -f conftest.$ac_objext 2655 if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5 2656 (eval $ac_compile) 2>&5 2657 ac_status=$? 2658 echo "$as_me:2658: \$? = $ac_status" >&5 2659 (exit $ac_status); } && 2660 { ac_try='test -s conftest.$ac_objext' 2661 { (eval echo "$as_me:2661: \"$ac_try\"") >&5 2662 (eval $ac_try) 2>&5 2663 ac_status=$? 2664 echo "$as_me:2664: \$? = $ac_status" >&5 2665 (exit $ac_status); }; }; then 2666 ac_cv_prog_cc_stdc=$ac_arg 2667 break 2668 else 2669 echo "$as_me: failed program was:" >&5 2670 cat conftest.$ac_ext >&5 2671 fi 2672 rm -f conftest.$ac_objext 2673 done 2674 rm -f conftest.$ac_ext conftest.$ac_objext 2675 CC=$ac_save_CC 2676 2677 fi 2678 2679 case "x$ac_cv_prog_cc_stdc" in 2680 x|xno) 2681 echo "$as_me:2681: result: none needed" >&5 2682 echo "${ECHO_T}none needed" >&6 ;; 2683 *) 2684 echo "$as_me:2684: result: $ac_cv_prog_cc_stdc" >&5 2685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2686 CC="$CC $ac_cv_prog_cc_stdc" ;; 2687 esac 2688 2689 echo "$as_me:2689: checking for an ANSI C-conforming const" >&5 2690 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2691 if test "${ac_cv_c_const+set}" = set; then 2692 echo $ECHO_N "(cached) $ECHO_C" >&6 2693 else 2694 cat >conftest.$ac_ext <<_ACEOF 2695 #line 2695 "configure" 2696 #include "confdefs.h" 2697 2698 int 2699 main () 2700 { 2701 /* FIXME: Include the comments suggested by Paul. */ 2702 #ifndef __cplusplus 2703 /* Ultrix mips cc rejects this. */ 2704 typedef int charset[2]; 2705 const charset x; 2706 /* SunOS 4.1.1 cc rejects this. */ 2707 char const *const *ccp; 2708 char **p; 2709 /* NEC SVR4.0.2 mips cc rejects this. */ 2710 struct point {int x, y;}; 2711 static struct point const zero = {0,0}; 2712 /* AIX XL C 1.02.0.0 rejects this. 2713 It does not let you subtract one const X* pointer from another in 2714 an arm of an if-expression whose if-part is not a constant 2715 expression */ 2716 const char *g = "string"; 2717 ccp = &g + (g ? g-g : 0); 2718 /* HPUX 7.0 cc rejects these. */ 2719 ++ccp; 2720 p = (char**) ccp; 2721 ccp = (char const *const *) p; 2722 { /* SCO 3.2v4 cc rejects this. */ 2723 char *t; 2724 char const *s = 0 ? (char *) 0 : (char const *) 0; 2725 2726 *t++ = 0; 2727 } 2728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2729 int x[] = {25, 17}; 2730 const int *foo = &x[0]; 2731 ++foo; 2732 } 2733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2734 typedef const int *iptr; 2735 iptr p = 0; 2736 ++p; 2737 } 2738 { /* AIX XL C 1.02.0.0 rejects this saying 2739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2740 struct s { int j; const int *ap[3]; }; 2741 struct s *b; b->j = 5; 2742 } 2743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2744 const int foo = 10; 2745 } 2746 #endif 2747 2748 ; 2749 return 0; 1452 2750 } 1453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1454 const int foo = 10; 1455 } 1456 1457 ; return 0; } 1458 EOF 1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1460 rm -rf conftest* 2751 _ACEOF 2752 rm -f conftest.$ac_objext 2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5 2754 (eval $ac_compile) 2>&5 2755 ac_status=$? 2756 echo "$as_me:2756: \$? = $ac_status" >&5 2757 (exit $ac_status); } && 2758 { ac_try='test -s conftest.$ac_objext' 2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5 2760 (eval $ac_try) 2>&5 2761 ac_status=$? 2762 echo "$as_me:2762: \$? = $ac_status" >&5 2763 (exit $ac_status); }; }; then 1461 2764 ac_cv_c_const=yes 1462 2765 else 1463 echo "configure: failed program was:" >&5 1464 cat conftest.$ac_ext >&5 1465 rm -rf conftest* 1466 ac_cv_c_const=no 1467 fi 1468 rm -f conftest* 1469 fi 1470 1471 echo "$ac_t""$ac_cv_c_const" 1>&6 2766 echo "$as_me: failed program was:" >&5 2767 cat conftest.$ac_ext >&5 2768 ac_cv_c_const=no 2769 fi 2770 rm -f conftest.$ac_objext conftest.$ac_ext 2771 fi 2772 echo "$as_me:2772: result: $ac_cv_c_const" >&5 2773 echo "${ECHO_T}$ac_cv_c_const" >&6 1472 2774 if test $ac_cv_c_const = no; then 1473 cat >> confdefs.h <<\EOF 1474 #define const 1475 EOF 1476 1477 fi 1478 1479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1480 echo "configure:1481: checking for ANSI C header files" >&5 1481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1482 echo $ac_n "(cached) $ac_c" 1>&6 1483 else 1484 cat > conftest.$ac_ext <<EOF 1485 #line 1486 "configure" 2775 2776 cat >>confdefs.h <<\EOF 2777 #define const 2778 EOF 2779 2780 fi 2781 2782 echo "$as_me:2782: checking for ANSI C header files" >&5 2783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2784 if test "${ac_cv_header_stdc+set}" = set; then 2785 echo $ECHO_N "(cached) $ECHO_C" >&6 2786 else 2787 cat >conftest.$ac_ext <<_ACEOF 2788 #line 2788 "configure" 1486 2789 #include "confdefs.h" 1487 2790 #include <stdlib.h> … … 1489 2792 #include <string.h> 1490 2793 #include <float.h> 1491 EOF 1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1495 if test -z "$ac_err"; then 1496 rm -rf conftest* 2794 2795 _ACEOF 2796 if { (eval echo "$as_me:2796: \"$ac_cpp conftest.$ac_ext\"") >&5 2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2798 ac_status=$? 2799 egrep -v '^ *\+' conftest.er1 >conftest.err 2800 rm -f conftest.er1 2801 cat conftest.err >&5 2802 echo "$as_me:2802: \$? = $ac_status" >&5 2803 (exit $ac_status); } >/dev/null; then 2804 if test -s conftest.err; then 2805 ac_cpp_err=$ac_c_preproc_warn_flag 2806 else 2807 ac_cpp_err= 2808 fi 2809 else 2810 ac_cpp_err=yes 2811 fi 2812 if test -z "$ac_cpp_err"; then 1497 2813 ac_cv_header_stdc=yes 1498 2814 else 1499 echo "$ac_err" >&5 1500 echo "configure: failed program was:" >&5 2815 echo "$as_me: failed program was:" >&5 1501 2816 cat conftest.$ac_ext >&5 1502 rm -rf conftest*1503 2817 ac_cv_header_stdc=no 1504 2818 fi 1505 rm -f conftest *2819 rm -f conftest.err conftest.$ac_ext 1506 2820 1507 2821 if test $ac_cv_header_stdc = yes; then 1508 2822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1509 cat > conftest.$ac_ext <<EOF1510 #line 1511"configure"2823 cat >conftest.$ac_ext <<_ACEOF 2824 #line 2824 "configure" 1511 2825 #include "confdefs.h" 1512 2826 #include <string.h> 1513 EOF 2827 2828 _ACEOF 1514 2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1515 2830 egrep "memchr" >/dev/null 2>&1; then 1516 2831 : 1517 2832 else 1518 rm -rf conftest*1519 2833 ac_cv_header_stdc=no 1520 2834 fi … … 1525 2839 if test $ac_cv_header_stdc = yes; then 1526 2840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1527 cat > conftest.$ac_ext <<EOF1528 #line 1529"configure"2841 cat >conftest.$ac_ext <<_ACEOF 2842 #line 2842 "configure" 1529 2843 #include "confdefs.h" 1530 2844 #include <stdlib.h> 1531 EOF 2845 2846 _ACEOF 1532 2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1533 2848 egrep "free" >/dev/null 2>&1; then 1534 2849 : 1535 2850 else 1536 rm -rf conftest*1537 2851 ac_cv_header_stdc=no 1538 2852 fi … … 1543 2857 if test $ac_cv_header_stdc = yes; then 1544 2858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1545 if test "$cross_compiling" = yes; then2859 if test "$cross_compiling" = yes; then 1546 2860 : 1547 2861 else 1548 cat > conftest.$ac_ext <<EOF1549 #line 1550"configure"2862 cat >conftest.$ac_ext <<_ACEOF 2863 #line 2863 "configure" 1550 2864 #include "confdefs.h" 1551 2865 #include <ctype.h> 1552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2866 #if ((' ' & 0x0FF) == 0x020) 2867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2869 #else 2870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2871 || ('j' <= (c) && (c) <= 'r') \ 2872 || ('s' <= (c) && (c) <= 'z')) 2873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2874 #endif 2875 1554 2876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1555 int main () { int i; for (i = 0; i < 256; i++) 1556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1557 exit (0); } 1558 1559 EOF 1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1561 then 2877 int 2878 main () 2879 { 2880 int i; 2881 for (i = 0; i < 256; i++) 2882 if (XOR (islower (i), ISLOWER (i)) 2883 || toupper (i) != TOUPPER (i)) 2884 exit(2); 2885 exit (0); 2886 } 2887 _ACEOF 2888 rm -f conftest$ac_exeext 2889 if { (eval echo "$as_me:2889: \"$ac_link\"") >&5 2890 (eval $ac_link) 2>&5 2891 ac_status=$? 2892 echo "$as_me:2892: \$? = $ac_status" >&5 2893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5 2895 (eval $ac_try) 2>&5 2896 ac_status=$? 2897 echo "$as_me:2897: \$? = $ac_status" >&5 2898 (exit $ac_status); }; }; then 1562 2899 : 1563 2900 else 1564 echo "configure: failed program was:" >&5 2901 echo "$as_me: program exited with status $ac_status" >&5 2902 echo "$as_me: failed program was:" >&5 2903 cat conftest.$ac_ext >&5 2904 ac_cv_header_stdc=no 2905 fi 2906 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2907 fi 2908 fi 2909 fi 2910 echo "$as_me:2910: result: $ac_cv_header_stdc" >&5 2911 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2912 if test $ac_cv_header_stdc = yes; then 2913 2914 cat >>confdefs.h <<\EOF 2915 #define STDC_HEADERS 1 2916 EOF 2917 2918 fi 2919 2920 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2921 do 2922 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2923 echo "$as_me:2923: checking for $ac_header" >&5 2924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2925 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927 else 2928 cat >conftest.$ac_ext <<_ACEOF 2929 #line 2929 "configure" 2930 #include "confdefs.h" 2931 #include <$ac_header> 2932 _ACEOF 2933 if { (eval echo "$as_me:2933: \"$ac_cpp conftest.$ac_ext\"") >&5 2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2935 ac_status=$? 2936 egrep -v '^ *\+' conftest.er1 >conftest.err 2937 rm -f conftest.er1 2938 cat conftest.err >&5 2939 echo "$as_me:2939: \$? = $ac_status" >&5 2940 (exit $ac_status); } >/dev/null; then 2941 if test -s conftest.err; then 2942 ac_cpp_err=$ac_c_preproc_warn_flag 2943 else 2944 ac_cpp_err= 2945 fi 2946 else 2947 ac_cpp_err=yes 2948 fi 2949 if test -z "$ac_cpp_err"; then 2950 eval "$ac_ac_Header=yes" 2951 else 2952 echo "$as_me: failed program was:" >&5 1565 2953 cat conftest.$ac_ext >&5 1566 rm -fr conftest* 1567 ac_cv_header_stdc=no 1568 fi 1569 rm -fr conftest* 1570 fi 1571 1572 fi 1573 fi 1574 1575 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1576 if test $ac_cv_header_stdc = yes; then 1577 cat >> confdefs.h <<\EOF 1578 #define STDC_HEADERS 1 1579 EOF 1580 1581 fi 1582 1583 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1584 echo "configure:1585: checking for off_t" >&5 1585 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1586 echo $ac_n "(cached) $ac_c" 1>&6 1587 else 1588 cat > conftest.$ac_ext <<EOF 1589 #line 1590 "configure" 1590 #include "confdefs.h" 1591 #include <sys/types.h> 1592 #if STDC_HEADERS 1593 #include <stdlib.h> 1594 #include <stddef.h> 1595 #endif 1596 EOF 1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1598 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1599 rm -rf conftest* 2954 eval "$ac_ac_Header=no" 2955 fi 2956 rm -f conftest.err conftest.$ac_ext 2957 fi 2958 echo "$as_me:2958: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2959 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2960 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2961 cat >>confdefs.h <<EOF 2962 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2963 EOF 2964 2965 fi 2966 done 2967 2968 echo "$as_me:2968: checking for off_t" >&5 2969 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2970 if test "${ac_cv_type_off_t+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972 else 2973 cat >conftest.$ac_ext <<_ACEOF 2974 #line 2974 "configure" 2975 #include "confdefs.h" 2976 $ac_includes_default 2977 int 2978 main () 2979 { 2980 if ((off_t *) 0) 2981 return 0; 2982 if (sizeof (off_t)) 2983 return 0; 2984 ; 2985 return 0; 2986 } 2987 _ACEOF 2988 rm -f conftest.$ac_objext 2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5 2990 (eval $ac_compile) 2>&5 2991 ac_status=$? 2992 echo "$as_me:2992: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -s conftest.$ac_objext' 2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5 2996 (eval $ac_try) 2>&5 2997 ac_status=$? 2998 echo "$as_me:2998: \$? = $ac_status" >&5 2999 (exit $ac_status); }; }; then 1600 3000 ac_cv_type_off_t=yes 1601 3001 else 1602 rm -rf conftest* 1603 ac_cv_type_off_t=no 1604 fi 1605 rm -f conftest* 1606 1607 fi 1608 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1609 if test $ac_cv_type_off_t = no; then 1610 cat >> confdefs.h <<\EOF 3002 echo "$as_me: failed program was:" >&5 3003 cat conftest.$ac_ext >&5 3004 ac_cv_type_off_t=no 3005 fi 3006 rm -f conftest.$ac_objext conftest.$ac_ext 3007 fi 3008 echo "$as_me:3008: result: $ac_cv_type_off_t" >&5 3009 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3010 if test $ac_cv_type_off_t = yes; then 3011 : 3012 else 3013 3014 cat >>confdefs.h <<EOF 1611 3015 #define off_t long 1612 3016 EOF … … 1614 3018 fi 1615 3019 1616 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1617 echo "configure:1618: checking for size_t" >&5 1618 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1619 echo $ac_n "(cached) $ac_c" 1>&6 1620 else 1621 cat > conftest.$ac_ext <<EOF 1622 #line 1623 "configure" 1623 #include "confdefs.h" 1624 #include <sys/types.h> 1625 #if STDC_HEADERS 1626 #include <stdlib.h> 1627 #include <stddef.h> 1628 #endif 1629 EOF 1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1632 rm -rf conftest* 3020 echo "$as_me:3020: checking for size_t" >&5 3021 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3022 if test "${ac_cv_type_size_t+set}" = set; then 3023 echo $ECHO_N "(cached) $ECHO_C" >&6 3024 else 3025 cat >conftest.$ac_ext <<_ACEOF 3026 #line 3026 "configure" 3027 #include "confdefs.h" 3028 $ac_includes_default 3029 int 3030 main () 3031 { 3032 if ((size_t *) 0) 3033 return 0; 3034 if (sizeof (size_t)) 3035 return 0; 3036 ; 3037 return 0; 3038 } 3039 _ACEOF 3040 rm -f conftest.$ac_objext 3041 if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5 3042 (eval $ac_compile) 2>&5 3043 ac_status=$? 3044 echo "$as_me:3044: \$? = $ac_status" >&5 3045 (exit $ac_status); } && 3046 { ac_try='test -s conftest.$ac_objext' 3047 { (eval echo "$as_me:3047: \"$ac_try\"") >&5 3048 (eval $ac_try) 2>&5 3049 ac_status=$? 3050 echo "$as_me:3050: \$? = $ac_status" >&5 3051 (exit $ac_status); }; }; then 1633 3052 ac_cv_type_size_t=yes 1634 3053 else 1635 rm -rf conftest* 1636 ac_cv_type_size_t=no 1637 fi 1638 rm -f conftest* 1639 1640 fi 1641 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1642 if test $ac_cv_type_size_t = no; then 1643 cat >> confdefs.h <<\EOF 3054 echo "$as_me: failed program was:" >&5 3055 cat conftest.$ac_ext >&5 3056 ac_cv_type_size_t=no 3057 fi 3058 rm -f conftest.$ac_objext conftest.$ac_ext 3059 fi 3060 echo "$as_me:3060: result: $ac_cv_type_size_t" >&5 3061 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3062 if test $ac_cv_type_size_t = yes; then 3063 : 3064 else 3065 3066 cat >>confdefs.h <<EOF 1644 3067 #define size_t unsigned 1645 3068 EOF … … 1647 3070 fi 1648 3071 1649 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&61650 echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&51651 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then1652 echo $ ac_n "(cached) $ac_c" 1>&61653 else 1654 cat > conftest.$ac_ext <<EOF1655 #line 1656"configure"3072 echo "$as_me:3072: checking whether time.h and sys/time.h may both be included" >&5 3073 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3074 if test "${ac_cv_header_time+set}" = set; then 3075 echo $ECHO_N "(cached) $ECHO_C" >&6 3076 else 3077 cat >conftest.$ac_ext <<_ACEOF 3078 #line 3078 "configure" 1656 3079 #include "confdefs.h" 1657 3080 #include <sys/types.h> 1658 3081 #include <sys/time.h> 1659 3082 #include <time.h> 1660 int main() { 3083 3084 int 3085 main () 3086 { 1661 3087 struct tm *tp; 1662 ; return 0; } 1663 EOF 1664 if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1665 rm -rf conftest* 3088 ; 3089 return 0; 3090 } 3091 _ACEOF 3092 rm -f conftest.$ac_objext 3093 if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5 3094 (eval $ac_compile) 2>&5 3095 ac_status=$? 3096 echo "$as_me:3096: \$? = $ac_status" >&5 3097 (exit $ac_status); } && 3098 { ac_try='test -s conftest.$ac_objext' 3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5 3100 (eval $ac_try) 2>&5 3101 ac_status=$? 3102 echo "$as_me:3102: \$? = $ac_status" >&5 3103 (exit $ac_status); }; }; then 1666 3104 ac_cv_header_time=yes 1667 3105 else 1668 echo "configure: failed program was:" >&5 1669 cat conftest.$ac_ext >&5 1670 rm -rf conftest* 1671 ac_cv_header_time=no 1672 fi 1673 rm -f conftest* 1674 fi 1675 1676 echo "$ac_t""$ac_cv_header_time" 1>&6 3106 echo "$as_me: failed program was:" >&5 3107 cat conftest.$ac_ext >&5 3108 ac_cv_header_time=no 3109 fi 3110 rm -f conftest.$ac_objext conftest.$ac_ext 3111 fi 3112 echo "$as_me:3112: result: $ac_cv_header_time" >&5 3113 echo "${ECHO_T}$ac_cv_header_time" >&6 1677 3114 if test $ac_cv_header_time = yes; then 1678 cat >> confdefs.h <<\EOF 3115 3116 cat >>confdefs.h <<\EOF 1679 3117 #define TIME_WITH_SYS_TIME 1 1680 3118 EOF … … 1682 3120 fi 1683 3121 1684 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&61685 echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&51686 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then1687 echo $ ac_n "(cached) $ac_c" 1>&61688 else 1689 cat > conftest.$ac_ext <<EOF1690 #line 1691"configure"3122 echo "$as_me:3122: checking whether struct tm is in sys/time.h or time.h" >&5 3123 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3124 if test "${ac_cv_struct_tm+set}" = set; then 3125 echo $ECHO_N "(cached) $ECHO_C" >&6 3126 else 3127 cat >conftest.$ac_ext <<_ACEOF 3128 #line 3128 "configure" 1691 3129 #include "confdefs.h" 1692 3130 #include <sys/types.h> 1693 3131 #include <time.h> 1694 int main() { 3132 3133 int 3134 main () 3135 { 1695 3136 struct tm *tp; tp->tm_sec; 1696 ; return 0; } 1697 EOF 1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1699 rm -rf conftest* 3137 ; 3138 return 0; 3139 } 3140 _ACEOF 3141 rm -f conftest.$ac_objext 3142 if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5 3143 (eval $ac_compile) 2>&5 3144 ac_status=$? 3145 echo "$as_me:3145: \$? = $ac_status" >&5 3146 (exit $ac_status); } && 3147 { ac_try='test -s conftest.$ac_objext' 3148 { (eval echo "$as_me:3148: \"$ac_try\"") >&5 3149 (eval $ac_try) 2>&5 3150 ac_status=$? 3151 echo "$as_me:3151: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 1700 3153 ac_cv_struct_tm=time.h 1701 3154 else 1702 echo "configure: failed program was:" >&5 1703 cat conftest.$ac_ext >&5 1704 rm -rf conftest* 1705 ac_cv_struct_tm=sys/time.h 1706 fi 1707 rm -f conftest* 1708 fi 1709 1710 echo "$ac_t""$ac_cv_struct_tm" 1>&6 3155 echo "$as_me: failed program was:" >&5 3156 cat conftest.$ac_ext >&5 3157 ac_cv_struct_tm=sys/time.h 3158 fi 3159 rm -f conftest.$ac_objext conftest.$ac_ext 3160 fi 3161 echo "$as_me:3161: result: $ac_cv_struct_tm" >&5 3162 echo "${ECHO_T}$ac_cv_struct_tm" >&6 1711 3163 if test $ac_cv_struct_tm = sys/time.h; then 1712 cat >> confdefs.h <<\EOF 3164 3165 cat >>confdefs.h <<\EOF 1713 3166 #define TM_IN_SYS_TIME 1 1714 3167 EOF … … 1716 3169 fi 1717 3170 1718 1719 3171 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1720 cat > conftest.$ac_ext <<EOF1721 #line 1722"configure"3172 cat >conftest.$ac_ext <<_ACEOF 3173 #line 3173 "configure" 1722 3174 #include "confdefs.h" 1723 3175 #include <stdio.h> 1724 3176 1725 int main() { 1726 FILE *rubbish = popen("yes", "r"); 1727 ; return 0; } 1728 EOF 1729 if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3177 int 3178 main () 3179 { 3180 FILE *rubbish = popen("yes", "r"); 3181 ; 3182 return 0; 3183 } 3184 _ACEOF 3185 rm -f conftest.$ac_objext 3186 if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5 3187 (eval $ac_compile) 2>&5 3188 ac_status=$? 3189 echo "$as_me:3189: \$? = $ac_status" >&5 3190 (exit $ac_status); } && 3191 { ac_try='test -s conftest.$ac_objext' 3192 { (eval echo "$as_me:3192: \"$ac_try\"") >&5 3193 (eval $ac_try) 2>&5 3194 ac_status=$? 3195 echo "$as_me:3195: \$? = $ac_status" >&5 3196 (exit $ac_status); }; }; then 1730 3197 : 1731 3198 else 1732 echo "configure: failed program was:" >&5 1733 cat conftest.$ac_ext >&5 1734 rm -rf conftest* 1735 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1736 fi 1737 rm -f conftest* 1738 fi 1739 1740 1741 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6 1742 echo "configure:1743: checking for main in -lg" >&5 1743 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'` 1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1745 echo $ac_n "(cached) $ac_c" 1>&6 1746 else 1747 ac_save_LIBS="$LIBS" 3199 echo "$as_me: failed program was:" >&5 3200 cat conftest.$ac_ext >&5 3201 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3202 fi 3203 rm -f conftest.$ac_objext conftest.$ac_ext 3204 fi 3205 3206 echo "$as_me:3206: checking for main in -lg" >&5 3207 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6 3208 if test "${ac_cv_lib_g_main+set}" = set; then 3209 echo $ECHO_N "(cached) $ECHO_C" >&6 3210 else 3211 ac_check_lib_save_LIBS=$LIBS 1748 3212 LIBS="-lg $LIBS" 1749 cat > conftest.$ac_ext <<EOF 1750 #line 1751 "configure" 1751 #include "confdefs.h" 1752 1753 int main() { 1754 main() 1755 ; return 0; } 1756 EOF 1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1758 rm -rf conftest* 1759 eval "ac_cv_lib_$ac_lib_var=yes" 1760 else 1761 echo "configure: failed program was:" >&5 1762 cat conftest.$ac_ext >&5 1763 rm -rf conftest* 1764 eval "ac_cv_lib_$ac_lib_var=no" 1765 fi 1766 rm -f conftest* 1767 LIBS="$ac_save_LIBS" 1768 1769 fi 1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1771 echo "$ac_t""yes" 1>&6 1772 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1774 cat >> confdefs.h <<EOF 1775 #define $ac_tr_lib 1 3213 cat >conftest.$ac_ext <<_ACEOF 3214 #line 3214 "configure" 3215 #include "confdefs.h" 3216 3217 int 3218 main () 3219 { 3220 main (); 3221 ; 3222 return 0; 3223 } 3224 _ACEOF 3225 rm -f conftest.$ac_objext conftest$ac_exeext 3226 if { (eval echo "$as_me:3226: \"$ac_link\"") >&5 3227 (eval $ac_link) 2>&5 3228 ac_status=$? 3229 echo "$as_me:3229: \$? = $ac_status" >&5 3230 (exit $ac_status); } && 3231 { ac_try='test -s conftest$ac_exeext' 3232 { (eval echo "$as_me:3232: \"$ac_try\"") >&5 3233 (eval $ac_try) 2>&5 3234 ac_status=$? 3235 echo "$as_me:3235: \$? = $ac_status" >&5 3236 (exit $ac_status); }; }; then 3237 ac_cv_lib_g_main=yes 3238 else 3239 echo "$as_me: failed program was:" >&5 3240 cat conftest.$ac_ext >&5 3241 ac_cv_lib_g_main=no 3242 fi 3243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3244 LIBS=$ac_check_lib_save_LIBS 3245 fi 3246 echo "$as_me:3246: result: $ac_cv_lib_g_main" >&5 3247 echo "${ECHO_T}$ac_cv_lib_g_main" >&6 3248 if test $ac_cv_lib_g_main = yes; then 3249 cat >>confdefs.h <<EOF 3250 #define HAVE_LIBG 1 1776 3251 EOF 1777 3252 1778 3253 LIBS="-lg $LIBS" 1779 3254 1780 else 1781 echo "$ac_t""no" 1>&6 1782 fi 1783 1784 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1785 echo "configure:1786: checking for main in -lm" >&5 1786 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1788 echo $ac_n "(cached) $ac_c" 1>&6 1789 else 1790 ac_save_LIBS="$LIBS" 3255 fi 3256 3257 echo "$as_me:3257: checking for main in -lm" >&5 3258 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3259 if test "${ac_cv_lib_m_main+set}" = set; then 3260 echo $ECHO_N "(cached) $ECHO_C" >&6 3261 else 3262 ac_check_lib_save_LIBS=$LIBS 1791 3263 LIBS="-lm $LIBS" 1792 cat > conftest.$ac_ext <<EOF 1793 #line 1794 "configure" 1794 #include "confdefs.h" 1795 1796 int main() { 1797 main() 1798 ; return 0; } 1799 EOF 1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1801 rm -rf conftest* 1802 eval "ac_cv_lib_$ac_lib_var=yes" 1803 else 1804 echo "configure: failed program was:" >&5 1805 cat conftest.$ac_ext >&5 1806 rm -rf conftest* 1807 eval "ac_cv_lib_$ac_lib_var=no" 1808 fi 1809 rm -f conftest* 1810 LIBS="$ac_save_LIBS" 1811 1812 fi 1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1814 echo "$ac_t""yes" 1>&6 1815 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1817 cat >> confdefs.h <<EOF 1818 #define $ac_tr_lib 1 3264 cat >conftest.$ac_ext <<_ACEOF 3265 #line 3265 "configure" 3266 #include "confdefs.h" 3267 3268 int 3269 main () 3270 { 3271 main (); 3272 ; 3273 return 0; 3274 } 3275 _ACEOF 3276 rm -f conftest.$ac_objext conftest$ac_exeext 3277 if { (eval echo "$as_me:3277: \"$ac_link\"") >&5 3278 (eval $ac_link) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 3281 (exit $ac_status); } && 3282 { ac_try='test -s conftest$ac_exeext' 3283 { (eval echo "$as_me:3283: \"$ac_try\"") >&5 3284 (eval $ac_try) 2>&5 3285 ac_status=$? 3286 echo "$as_me:3286: \$? = $ac_status" >&5 3287 (exit $ac_status); }; }; then 3288 ac_cv_lib_m_main=yes 3289 else 3290 echo "$as_me: failed program was:" >&5 3291 cat conftest.$ac_ext >&5 3292 ac_cv_lib_m_main=no 3293 fi 3294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3295 LIBS=$ac_check_lib_save_LIBS 3296 fi 3297 echo "$as_me:3297: result: $ac_cv_lib_m_main" >&5 3298 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3299 if test $ac_cv_lib_m_main = yes; then 3300 cat >>confdefs.h <<EOF 3301 #define HAVE_LIBM 1 1819 3302 EOF 1820 3303 1821 3304 LIBS="-lm $LIBS" 1822 3305 1823 else 1824 echo "$ac_t""no" 1>&6 1825 fi 1826 1827 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 1828 echo "configure:1829: checking for main in -lstdc++" >&5 1829 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` 1830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1831 echo $ac_n "(cached) $ac_c" 1>&6 1832 else 1833 ac_save_LIBS="$LIBS" 3306 fi 3307 3308 echo "$as_me:3308: checking for main in -lstdc++" >&5 3309 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6 3310 if test "${ac_cv_lib_stdcpp_main+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312 else 3313 ac_check_lib_save_LIBS=$LIBS 1834 3314 LIBS="-lstdc++ $LIBS" 1835 cat > conftest.$ac_ext <<EOF 1836 #line 1837 "configure" 1837 #include "confdefs.h" 1838 1839 int main() { 1840 main() 1841 ; return 0; } 1842 EOF 1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1844 rm -rf conftest* 1845 eval "ac_cv_lib_$ac_lib_var=yes" 1846 else 1847 echo "configure: failed program was:" >&5 1848 cat conftest.$ac_ext >&5 1849 rm -rf conftest* 1850 eval "ac_cv_lib_$ac_lib_var=no" 1851 fi 1852 rm -f conftest* 1853 LIBS="$ac_save_LIBS" 1854 1855 fi 1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1857 echo "$ac_t""yes" 1>&6 1858 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1860 cat >> confdefs.h <<EOF 1861 #define $ac_tr_lib 1 3315 cat >conftest.$ac_ext <<_ACEOF 3316 #line 3316 "configure" 3317 #include "confdefs.h" 3318 3319 int 3320 main () 3321 { 3322 main (); 3323 ; 3324 return 0; 3325 } 3326 _ACEOF 3327 rm -f conftest.$ac_objext conftest$ac_exeext 3328 if { (eval echo "$as_me:3328: \"$ac_link\"") >&5 3329 (eval $ac_link) 2>&5 3330 ac_status=$? 3331 echo "$as_me:3331: \$? = $ac_status" >&5 3332 (exit $ac_status); } && 3333 { ac_try='test -s conftest$ac_exeext' 3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5 3335 (eval $ac_try) 2>&5 3336 ac_status=$? 3337 echo "$as_me:3337: \$? = $ac_status" >&5 3338 (exit $ac_status); }; }; then 3339 ac_cv_lib_stdcpp_main=yes 3340 else 3341 echo "$as_me: failed program was:" >&5 3342 cat conftest.$ac_ext >&5 3343 ac_cv_lib_stdcpp_main=no 3344 fi 3345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3346 LIBS=$ac_check_lib_save_LIBS 3347 fi 3348 echo "$as_me:3348: result: $ac_cv_lib_stdcpp_main" >&5 3349 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6 3350 if test $ac_cv_lib_stdcpp_main = yes; then 3351 cat >>confdefs.h <<EOF 3352 #define HAVE_LIBSTDC__ 1 1862 3353 EOF 1863 3354 1864 3355 LIBS="-lstdc++ $LIBS" 1865 3356 1866 else 1867 echo "$ac_t""no" 1>&6 1868 fi 1869 1870 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6 1871 echo "configure:1872: checking for main in -lcrypt" >&5 1872 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'` 1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1874 echo $ac_n "(cached) $ac_c" 1>&6 1875 else 1876 ac_save_LIBS="$LIBS" 3357 fi 3358 3359 echo "$as_me:3359: checking for main in -lcrypt" >&5 3360 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6 3361 if test "${ac_cv_lib_crypt_main+set}" = set; then 3362 echo $ECHO_N "(cached) $ECHO_C" >&6 3363 else 3364 ac_check_lib_save_LIBS=$LIBS 1877 3365 LIBS="-lcrypt $LIBS" 1878 cat > conftest.$ac_ext <<EOF 1879 #line 1880 "configure" 1880 #include "confdefs.h" 1881 1882 int main() { 1883 main() 1884 ; return 0; } 1885 EOF 1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1887 rm -rf conftest* 1888 eval "ac_cv_lib_$ac_lib_var=yes" 1889 else 1890 echo "configure: failed program was:" >&5 1891 cat conftest.$ac_ext >&5 1892 rm -rf conftest* 1893 eval "ac_cv_lib_$ac_lib_var=no" 1894 fi 1895 rm -f conftest* 1896 LIBS="$ac_save_LIBS" 1897 1898 fi 1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1900 echo "$ac_t""yes" 1>&6 1901 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1903 cat >> confdefs.h <<EOF 1904 #define $ac_tr_lib 1 3366 cat >conftest.$ac_ext <<_ACEOF 3367 #line 3367 "configure" 3368 #include "confdefs.h" 3369 3370 int 3371 main () 3372 { 3373 main (); 3374 ; 3375 return 0; 3376 } 3377 _ACEOF 3378 rm -f conftest.$ac_objext conftest$ac_exeext 3379 if { (eval echo "$as_me:3379: \"$ac_link\"") >&5 3380 (eval $ac_link) 2>&5 3381 ac_status=$? 3382 echo "$as_me:3382: \$? = $ac_status" >&5 3383 (exit $ac_status); } && 3384 { ac_try='test -s conftest$ac_exeext' 3385 { (eval echo "$as_me:3385: \"$ac_try\"") >&5 3386 (eval $ac_try) 2>&5 3387 ac_status=$? 3388 echo "$as_me:3388: \$? = $ac_status" >&5 3389 (exit $ac_status); }; }; then 3390 ac_cv_lib_crypt_main=yes 3391 else 3392 echo "$as_me: failed program was:" >&5 3393 cat conftest.$ac_ext >&5 3394 ac_cv_lib_crypt_main=no 3395 fi 3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3397 LIBS=$ac_check_lib_save_LIBS 3398 fi 3399 echo "$as_me:3399: result: $ac_cv_lib_crypt_main" >&5 3400 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6 3401 if test $ac_cv_lib_crypt_main = yes; then 3402 cat >>confdefs.h <<EOF 3403 #define HAVE_LIBCRYPT 1 1905 3404 EOF 1906 3405 1907 3406 LIBS="-lcrypt $LIBS" 1908 3407 1909 else 1910 echo "$ac_t""no" 1>&6 1911 fi 1912 3408 fi 1913 3409 1914 3410 ac_header_dirent=no 1915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1916 do 1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1918 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1919 echo "configure:1920: checking for $ac_hdr that defines DIR" >&5 1920 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1921 echo $ac_n "(cached) $ac_c" 1>&6 1922 else 1923 cat > conftest.$ac_ext <<EOF 1924 #line 1925 "configure" 3411 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3412 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh` 3413 echo "$as_me:3413: checking for $ac_hdr that defines DIR" >&5 3414 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3415 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3416 echo $ECHO_N "(cached) $ECHO_C" >&6 3417 else 3418 cat >conftest.$ac_ext <<_ACEOF 3419 #line 3419 "configure" 1925 3420 #include "confdefs.h" 1926 3421 #include <sys/types.h> 1927 3422 #include <$ac_hdr> 1928 int main() { 3423 3424 int 3425 main () 3426 { 1929 3427 DIR *dirp = 0; 1930 ; return 0; } 1931 EOF 1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1933 rm -rf conftest* 1934 eval "ac_cv_header_dirent_$ac_safe=yes" 1935 else 1936 echo "configure: failed program was:" >&5 1937 cat conftest.$ac_ext >&5 1938 rm -rf conftest* 1939 eval "ac_cv_header_dirent_$ac_safe=no" 1940 fi 1941 rm -f conftest* 1942 fi 1943 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1944 echo "$ac_t""yes" 1>&6 1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1946 cat >> confdefs.h <<EOF 1947 #define $ac_tr_hdr 1 1948 EOF 1949 ac_header_dirent=$ac_hdr; break 1950 else 1951 echo "$ac_t""no" 1>&6 1952 fi 3428 ; 3429 return 0; 3430 } 3431 _ACEOF 3432 rm -f conftest.$ac_objext 3433 if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5 3434 (eval $ac_compile) 2>&5 3435 ac_status=$? 3436 echo "$as_me:3436: \$? = $ac_status" >&5 3437 (exit $ac_status); } && 3438 { ac_try='test -s conftest.$ac_objext' 3439 { (eval echo "$as_me:3439: \"$ac_try\"") >&5 3440 (eval $ac_try) 2>&5 3441 ac_status=$? 3442 echo "$as_me:3442: \$? = $ac_status" >&5 3443 (exit $ac_status); }; }; then 3444 eval "$ac_ac_Header=yes" 3445 else 3446 echo "$as_me: failed program was:" >&5 3447 cat conftest.$ac_ext >&5 3448 eval "$ac_ac_Header=no" 3449 fi 3450 rm -f conftest.$ac_objext conftest.$ac_ext 3451 fi 3452 echo "$as_me:3452: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3453 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3454 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3455 cat >>confdefs.h <<EOF 3456 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3457 EOF 3458 3459 ac_header_dirent=$ac_hdr; break 3460 fi 3461 1953 3462 done 1954 3463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1955 3464 if test $ac_header_dirent = dirent.h; then 1956 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1957 echo "configure:1958: checking for opendir in -ldir" >&5 1958 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1960 echo $ac_n "(cached) $ac_c" 1>&6 1961 else 1962 ac_save_LIBS="$LIBS" 3465 echo "$as_me:3465: checking for opendir in -ldir" >&5 3466 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 3467 if test "${ac_cv_lib_dir_opendir+set}" = set; then 3468 echo $ECHO_N "(cached) $ECHO_C" >&6 3469 else 3470 ac_check_lib_save_LIBS=$LIBS 1963 3471 LIBS="-ldir $LIBS" 1964 cat > conftest.$ac_ext <<EOF 1965 #line 1966 "configure" 1966 #include "confdefs.h" 3472 cat >conftest.$ac_ext <<_ACEOF 3473 #line 3473 "configure" 3474 #include "confdefs.h" 3475 1967 3476 /* Override any gcc2 internal prototype to avoid an error. */ 3477 #ifdef __cplusplus 3478 extern "C" 3479 #endif 1968 3480 /* We use char because int might match the return type of a gcc2 1969 builtin and then its argument prototype would still apply. */ 1970 char opendir(); 1971 1972 int main() { 1973 opendir() 1974 ; return 0; } 1975 EOF 1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1977 rm -rf conftest* 1978 eval "ac_cv_lib_$ac_lib_var=yes" 1979 else 1980 echo "configure: failed program was:" >&5 1981 cat conftest.$ac_ext >&5 1982 rm -rf conftest* 1983 eval "ac_cv_lib_$ac_lib_var=no" 1984 fi 1985 rm -f conftest* 1986 LIBS="$ac_save_LIBS" 1987 1988 fi 1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1990 echo "$ac_t""yes" 1>&6 3481 builtin and then its argument prototype would still apply. */ 3482 char opendir (); 3483 int 3484 main () 3485 { 3486 opendir (); 3487 ; 3488 return 0; 3489 } 3490 _ACEOF 3491 rm -f conftest.$ac_objext conftest$ac_exeext 3492 if { (eval echo "$as_me:3492: \"$ac_link\"") >&5 3493 (eval $ac_link) 2>&5 3494 ac_status=$? 3495 echo "$as_me:3495: \$? = $ac_status" >&5 3496 (exit $ac_status); } && 3497 { ac_try='test -s conftest$ac_exeext' 3498 { (eval echo "$as_me:3498: \"$ac_try\"") >&5 3499 (eval $ac_try) 2>&5 3500 ac_status=$? 3501 echo "$as_me:3501: \$? = $ac_status" >&5 3502 (exit $ac_status); }; }; then 3503 ac_cv_lib_dir_opendir=yes 3504 else 3505 echo "$as_me: failed program was:" >&5 3506 cat conftest.$ac_ext >&5 3507 ac_cv_lib_dir_opendir=no 3508 fi 3509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3510 LIBS=$ac_check_lib_save_LIBS 3511 fi 3512 echo "$as_me:3512: result: $ac_cv_lib_dir_opendir" >&5 3513 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3514 if test $ac_cv_lib_dir_opendir = yes; then 1991 3515 LIBS="$LIBS -ldir" 1992 else 1993 echo "$ac_t""no" 1>&6 1994 fi 1995 1996 else 1997 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1998 echo "configure:1999: checking for opendir in -lx" >&5 1999 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2001 echo $ac_n "(cached) $ac_c" 1>&6 2002 else 2003 ac_save_LIBS="$LIBS" 3516 fi 3517 3518 else 3519 echo "$as_me:3519: checking for opendir in -lx" >&5 3520 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3521 if test "${ac_cv_lib_x_opendir+set}" = set; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523 else 3524 ac_check_lib_save_LIBS=$LIBS 2004 3525 LIBS="-lx $LIBS" 2005 cat > conftest.$ac_ext <<EOF 2006 #line 2007 "configure" 2007 #include "confdefs.h" 3526 cat >conftest.$ac_ext <<_ACEOF 3527 #line 3527 "configure" 3528 #include "confdefs.h" 3529 2008 3530 /* Override any gcc2 internal prototype to avoid an error. */ 3531 #ifdef __cplusplus 3532 extern "C" 3533 #endif 2009 3534 /* We use char because int might match the return type of a gcc2 2010 builtin and then its argument prototype would still apply. */ 2011 char opendir(); 2012 2013 int main() { 2014 opendir() 2015 ; return 0; } 2016 EOF 2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2018 rm -rf conftest* 2019 eval "ac_cv_lib_$ac_lib_var=yes" 2020 else 2021 echo "configure: failed program was:" >&5 2022 cat conftest.$ac_ext >&5 2023 rm -rf conftest* 2024 eval "ac_cv_lib_$ac_lib_var=no" 2025 fi 2026 rm -f conftest* 2027 LIBS="$ac_save_LIBS" 2028 2029 fi 2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2031 echo "$ac_t""yes" 1>&6 3535 builtin and then its argument prototype would still apply. */ 3536 char opendir (); 3537 int 3538 main () 3539 { 3540 opendir (); 3541 ; 3542 return 0; 3543 } 3544 _ACEOF 3545 rm -f conftest.$ac_objext conftest$ac_exeext 3546 if { (eval echo "$as_me:3546: \"$ac_link\"") >&5 3547 (eval $ac_link) 2>&5 3548 ac_status=$? 3549 echo "$as_me:3549: \$? = $ac_status" >&5 3550 (exit $ac_status); } && 3551 { ac_try='test -s conftest$ac_exeext' 3552 { (eval echo "$as_me:3552: \"$ac_try\"") >&5 3553 (eval $ac_try) 2>&5 3554 ac_status=$? 3555 echo "$as_me:3555: \$? = $ac_status" >&5 3556 (exit $ac_status); }; }; then 3557 ac_cv_lib_x_opendir=yes 3558 else 3559 echo "$as_me: failed program was:" >&5 3560 cat conftest.$ac_ext >&5 3561 ac_cv_lib_x_opendir=no 3562 fi 3563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3564 LIBS=$ac_check_lib_save_LIBS 3565 fi 3566 echo "$as_me:3566: result: $ac_cv_lib_x_opendir" >&5 3567 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3568 if test $ac_cv_lib_x_opendir = yes; then 2032 3569 LIBS="$LIBS -lx" 2033 else 2034 echo "$ac_t""no" 1>&6 2035 fi 2036 2037 fi 2038 2039 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2040 echo "configure:2041: checking for ANSI C header files" >&5 2041 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2042 echo $ac_n "(cached) $ac_c" 1>&6 2043 else 2044 cat > conftest.$ac_ext <<EOF 2045 #line 2046 "configure" 3570 fi 3571 3572 fi 3573 3574 echo "$as_me:3574: checking for ANSI C header files" >&5 3575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3576 if test "${ac_cv_header_stdc+set}" = set; then 3577 echo $ECHO_N "(cached) $ECHO_C" >&6 3578 else 3579 cat >conftest.$ac_ext <<_ACEOF 3580 #line 3580 "configure" 2046 3581 #include "confdefs.h" 2047 3582 #include <stdlib.h> … … 2049 3584 #include <string.h> 2050 3585 #include <float.h> 2051 EOF 2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2055 if test -z "$ac_err"; then 2056 rm -rf conftest* 3586 3587 _ACEOF 3588 if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5 3589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3590 ac_status=$? 3591 egrep -v '^ *\+' conftest.er1 >conftest.err 3592 rm -f conftest.er1 3593 cat conftest.err >&5 3594 echo "$as_me:3594: \$? = $ac_status" >&5 3595 (exit $ac_status); } >/dev/null; then 3596 if test -s conftest.err; then 3597 ac_cpp_err=$ac_c_preproc_warn_flag 3598 else 3599 ac_cpp_err= 3600 fi 3601 else 3602 ac_cpp_err=yes 3603 fi 3604 if test -z "$ac_cpp_err"; then 2057 3605 ac_cv_header_stdc=yes 2058 3606 else 2059 echo "$ac_err" >&5 2060 echo "configure: failed program was:" >&5 3607 echo "$as_me: failed program was:" >&5 2061 3608 cat conftest.$ac_ext >&5 2062 rm -rf conftest*2063 3609 ac_cv_header_stdc=no 2064 3610 fi 2065 rm -f conftest *3611 rm -f conftest.err conftest.$ac_ext 2066 3612 2067 3613 if test $ac_cv_header_stdc = yes; then 2068 3614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2069 cat > conftest.$ac_ext <<EOF2070 #line 2071"configure"3615 cat >conftest.$ac_ext <<_ACEOF 3616 #line 3616 "configure" 2071 3617 #include "confdefs.h" 2072 3618 #include <string.h> 2073 EOF 3619 3620 _ACEOF 2074 3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2075 3622 egrep "memchr" >/dev/null 2>&1; then 2076 3623 : 2077 3624 else 2078 rm -rf conftest*2079 3625 ac_cv_header_stdc=no 2080 3626 fi … … 2085 3631 if test $ac_cv_header_stdc = yes; then 2086 3632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2087 cat > conftest.$ac_ext <<EOF2088 #line 2089"configure"3633 cat >conftest.$ac_ext <<_ACEOF 3634 #line 3634 "configure" 2089 3635 #include "confdefs.h" 2090 3636 #include <stdlib.h> 2091 EOF 3637 3638 _ACEOF 2092 3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2093 3640 egrep "free" >/dev/null 2>&1; then 2094 3641 : 2095 3642 else 2096 rm -rf conftest*2097 3643 ac_cv_header_stdc=no 2098 3644 fi … … 2103 3649 if test $ac_cv_header_stdc = yes; then 2104 3650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2105 if test "$cross_compiling" = yes; then3651 if test "$cross_compiling" = yes; then 2106 3652 : 2107 3653 else 2108 cat > conftest.$ac_ext <<EOF2109 #line 2110"configure"3654 cat >conftest.$ac_ext <<_ACEOF 3655 #line 3655 "configure" 2110 3656 #include "confdefs.h" 2111 3657 #include <ctype.h> 2112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3658 #if ((' ' & 0x0FF) == 0x020) 3659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3661 #else 3662 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3663 || ('j' <= (c) && (c) <= 'r') \ 3664 || ('s' <= (c) && (c) <= 'z')) 3665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3666 #endif 3667 2114 3668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2115 int main () { int i; for (i = 0; i < 256; i++) 2116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2117 exit (0); } 2118 2119 EOF 2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2121 then 3669 int 3670 main () 3671 { 3672 int i; 3673 for (i = 0; i < 256; i++) 3674 if (XOR (islower (i), ISLOWER (i)) 3675 || toupper (i) != TOUPPER (i)) 3676 exit(2); 3677 exit (0); 3678 } 3679 _ACEOF 3680 rm -f conftest$ac_exeext 3681 if { (eval echo "$as_me:3681: \"$ac_link\"") >&5 3682 (eval $ac_link) 2>&5 3683 ac_status=$? 3684 echo "$as_me:3684: \$? = $ac_status" >&5 3685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5 3687 (eval $ac_try) 2>&5 3688 ac_status=$? 3689 echo "$as_me:3689: \$? = $ac_status" >&5 3690 (exit $ac_status); }; }; then 2122 3691 : 2123 3692 else 2124 echo "configure: failed program was:" >&5 3693 echo "$as_me: program exited with status $ac_status" >&5 3694 echo "$as_me: failed program was:" >&5 3695 cat conftest.$ac_ext >&5 3696 ac_cv_header_stdc=no 3697 fi 3698 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 3699 fi 3700 fi 3701 fi 3702 echo "$as_me:3702: result: $ac_cv_header_stdc" >&5 3703 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3704 if test $ac_cv_header_stdc = yes; then 3705 3706 cat >>confdefs.h <<\EOF 3707 #define STDC_HEADERS 1 3708 EOF 3709 3710 fi 3711 3712 for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h 3713 do 3714 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3715 echo "$as_me:3715: checking for $ac_header" >&5 3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3717 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3718 echo $ECHO_N "(cached) $ECHO_C" >&6 3719 else 3720 cat >conftest.$ac_ext <<_ACEOF 3721 #line 3721 "configure" 3722 #include "confdefs.h" 3723 #include <$ac_header> 3724 _ACEOF 3725 if { (eval echo "$as_me:3725: \"$ac_cpp conftest.$ac_ext\"") >&5 3726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3727 ac_status=$? 3728 egrep -v '^ *\+' conftest.er1 >conftest.err 3729 rm -f conftest.er1 3730 cat conftest.err >&5 3731 echo "$as_me:3731: \$? = $ac_status" >&5 3732 (exit $ac_status); } >/dev/null; then 3733 if test -s conftest.err; then 3734 ac_cpp_err=$ac_c_preproc_warn_flag 3735 else 3736 ac_cpp_err= 3737 fi 3738 else 3739 ac_cpp_err=yes 3740 fi 3741 if test -z "$ac_cpp_err"; then 3742 eval "$ac_ac_Header=yes" 3743 else 3744 echo "$as_me: failed program was:" >&5 2125 3745 cat conftest.$ac_ext >&5 2126 rm -fr conftest* 2127 ac_cv_header_stdc=no 2128 fi 2129 rm -fr conftest* 2130 fi 2131 2132 fi 2133 fi 2134 2135 echo "$ac_t""$ac_cv_header_stdc" 1>&6 2136 if test $ac_cv_header_stdc = yes; then 2137 cat >> confdefs.h <<\EOF 2138 #define STDC_HEADERS 1 2139 EOF 2140 2141 fi 2142 2143 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h 2144 do 2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2147 echo "configure:2148: checking for $ac_hdr" >&5 2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2149 echo $ac_n "(cached) $ac_c" 1>&6 2150 else 2151 cat > conftest.$ac_ext <<EOF 2152 #line 2153 "configure" 2153 #include "confdefs.h" 2154 #include <$ac_hdr> 2155 EOF 2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2159 if test -z "$ac_err"; then 2160 rm -rf conftest* 2161 eval "ac_cv_header_$ac_safe=yes" 2162 else 2163 echo "$ac_err" >&5 2164 echo "configure: failed program was:" >&5 2165 cat conftest.$ac_ext >&5 2166 rm -rf conftest* 2167 eval "ac_cv_header_$ac_safe=no" 2168 fi 2169 rm -f conftest* 2170 fi 2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2172 echo "$ac_t""yes" 1>&6 2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2174 cat >> confdefs.h <<EOF 2175 #define $ac_tr_hdr 1 2176 EOF 2177 2178 else 2179 echo "$ac_t""no" 1>&6 3746 eval "$ac_ac_Header=no" 3747 fi 3748 rm -f conftest.err conftest.$ac_ext 3749 fi 3750 echo "$as_me:3750: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3751 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3752 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3753 cat >>confdefs.h <<EOF 3754 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3755 EOF 3756 2180 3757 fi 2181 3758 done 2182 3759 2183 cat > conftest.$ac_ext <<EOF2184 #line 2185"configure"3760 cat >conftest.$ac_ext <<_ACEOF 3761 #line 3761 "configure" 2185 3762 #include "confdefs.h" 2186 3763 #include <stdio.h> 2187 EOF 3764 3765 _ACEOF 2188 3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2189 3767 egrep "fread" >/dev/null 2>&1; then 2190 rm -rf conftest* 2191 cat >> confdefs.h <<\EOF 3768 cat >>confdefs.h <<\EOF 2192 3769 #define HAVE_FREAD_DECL 1 2193 3770 EOF … … 2196 3773 rm -f conftest* 2197 3774 2198 cat > conftest.$ac_ext <<EOF2199 #line 2200"configure"3775 cat >conftest.$ac_ext <<_ACEOF 3776 #line 3776 "configure" 2200 3777 #include "confdefs.h" 2201 3778 #include <stdio.h> 2202 EOF 3779 3780 _ACEOF 2203 3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2204 3782 egrep "fgetc" >/dev/null 2>&1; then 2205 rm -rf conftest* 2206 cat >> confdefs.h <<\EOF 3783 cat >>confdefs.h <<\EOF 2207 3784 #define HAVE_FGETC_DECL 1 2208 3785 EOF … … 2211 3788 rm -f conftest* 2212 3789 2213 cat > conftest.$ac_ext <<EOF2214 #line 2215"configure"3790 cat >conftest.$ac_ext <<_ACEOF 3791 #line 3791 "configure" 2215 3792 #include "confdefs.h" 2216 3793 #include <sys/procfs.h> 2217 EOF 3794 3795 _ACEOF 2218 3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2219 3797 egrep "pr_brksize" >/dev/null 2>&1; then 2220 rm -rf conftest* 2221 cat >> confdefs.h <<\EOF 3798 cat >>confdefs.h <<\EOF 2222 3799 #define HAVE_PR_BRKSIZE 1 2223 3800 EOF … … 2225 3802 fi 2226 3803 rm -f conftest* 2227 2228 3804 2229 3805 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2230 3806 # for constant arguments. Useless! 2231 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&62232 echo "configure:2233: checking for working alloca.h" >&52233 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then2234 echo $ ac_n "(cached) $ac_c" 1>&62235 else 2236 cat > conftest.$ac_ext <<EOF2237 #line 2238"configure"3807 echo "$as_me:3807: checking for working alloca.h" >&5 3808 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 3809 if test "${ac_cv_working_alloca_h+set}" = set; then 3810 echo $ECHO_N "(cached) $ECHO_C" >&6 3811 else 3812 cat >conftest.$ac_ext <<_ACEOF 3813 #line 3813 "configure" 2238 3814 #include "confdefs.h" 2239 3815 #include <alloca.h> 2240 int main() { 2241 char *p = alloca(2 * sizeof(int)); 2242 ; return 0; } 2243 EOF 2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2245 rm -rf conftest* 2246 ac_cv_header_alloca_h=yes 2247 else 2248 echo "configure: failed program was:" >&5 2249 cat conftest.$ac_ext >&5 2250 rm -rf conftest* 2251 ac_cv_header_alloca_h=no 2252 fi 2253 rm -f conftest* 2254 fi 2255 2256 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2257 if test $ac_cv_header_alloca_h = yes; then 2258 cat >> confdefs.h <<\EOF 3816 int 3817 main () 3818 { 3819 char *p = (char *) alloca (2 * sizeof (int)); 3820 ; 3821 return 0; 3822 } 3823 _ACEOF 3824 rm -f conftest.$ac_objext conftest$ac_exeext 3825 if { (eval echo "$as_me:3825: \"$ac_link\"") >&5 3826 (eval $ac_link) 2>&5 3827 ac_status=$? 3828 echo "$as_me:3828: \$? = $ac_status" >&5 3829 (exit $ac_status); } && 3830 { ac_try='test -s conftest$ac_exeext' 3831 { (eval echo "$as_me:3831: \"$ac_try\"") >&5 3832 (eval $ac_try) 2>&5 3833 ac_status=$? 3834 echo "$as_me:3834: \$? = $ac_status" >&5 3835 (exit $ac_status); }; }; then 3836 ac_cv_working_alloca_h=yes 3837 else 3838 echo "$as_me: failed program was:" >&5 3839 cat conftest.$ac_ext >&5 3840 ac_cv_working_alloca_h=no 3841 fi 3842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3843 fi 3844 echo "$as_me:3844: result: $ac_cv_working_alloca_h" >&5 3845 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3846 if test $ac_cv_working_alloca_h = yes; then 3847 3848 cat >>confdefs.h <<\EOF 2259 3849 #define HAVE_ALLOCA_H 1 2260 3850 EOF … … 2262 3852 fi 2263 3853 2264 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2265 echo "configure:2266: checking for alloca" >&5 2266 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2267 echo $ac_n "(cached) $ac_c" 1>&6 2268 else 2269 cat > conftest.$ac_ext <<EOF 2270 #line 2271 "configure" 2271 #include "confdefs.h" 2272 3854 echo "$as_me:3854: checking for alloca" >&5 3855 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3856 if test "${ac_cv_func_alloca_works+set}" = set; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858 else 3859 cat >conftest.$ac_ext <<_ACEOF 3860 #line 3860 "configure" 3861 #include "confdefs.h" 2273 3862 #ifdef __GNUC__ 2274 3863 # define alloca __builtin_alloca … … 2292 3881 #endif 2293 3882 2294 int main() { 2295 char *p = (char *) alloca(1); 2296 ; return 0; } 2297 EOF 2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2299 rm -rf conftest* 3883 int 3884 main () 3885 { 3886 char *p = (char *) alloca (1); 3887 ; 3888 return 0; 3889 } 3890 _ACEOF 3891 rm -f conftest.$ac_objext conftest$ac_exeext 3892 if { (eval echo "$as_me:3892: \"$ac_link\"") >&5 3893 (eval $ac_link) 2>&5 3894 ac_status=$? 3895 echo "$as_me:3895: \$? = $ac_status" >&5 3896 (exit $ac_status); } && 3897 { ac_try='test -s conftest$ac_exeext' 3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5 3899 (eval $ac_try) 2>&5 3900 ac_status=$? 3901 echo "$as_me:3901: \$? = $ac_status" >&5 3902 (exit $ac_status); }; }; then 2300 3903 ac_cv_func_alloca_works=yes 2301 3904 else 2302 echo " configure: failed program was:" >&52303 2304 rm -rf conftest* 2305 ac_cv_func_alloca_works=no 2306 fi 2307 rm -f conftest* 2308 fi 2309 2310 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 3905 echo "$as_me: failed program was:" >&5 3906 cat conftest.$ac_ext >&5 3907 ac_cv_func_alloca_works=no 3908 fi 3909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3910 fi 3911 echo "$as_me:3911: result: $ac_cv_func_alloca_works" >&5 3912 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3913 2311 3914 if test $ac_cv_func_alloca_works = yes; then 2312 cat >> confdefs.h <<\EOF 3915 3916 cat >>confdefs.h <<\EOF 2313 3917 #define HAVE_ALLOCA 1 2314 3918 EOF 2315 3919 2316 fi 2317 2318 if test $ac_cv_func_alloca_works = no; then 3920 else 2319 3921 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2320 # that cause trouble. Some versions do not even contain alloca or 2321 # contain a buggy version. If you still want to use their alloca, 2322 # use ar to extract alloca.o from them instead of compiling alloca.c. 2323 ALLOCA=alloca.${ac_objext} 2324 cat >> confdefs.h <<\EOF 3922 # that cause trouble. Some versions do not even contain alloca or 3923 # contain a buggy version. If you still want to use their alloca, 3924 # use ar to extract alloca.o from them instead of compiling alloca.c. 3925 3926 ALLOCA=alloca.$ac_objext 3927 3928 cat >>confdefs.h <<\EOF 2325 3929 #define C_ALLOCA 1 2326 3930 EOF 2327 3931 2328 2329 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2330 echo "configure:2331: checking whether alloca needs Cray hooks" >&5 2331 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2332 echo $ac_n "(cached) $ac_c" 1>&6 2333 else 2334 cat > conftest.$ac_ext <<EOF 2335 #line 2336 "configure" 3932 echo "$as_me:3932: checking whether \`alloca.c' needs Cray hooks" >&5 3933 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3934 if test "${ac_cv_os_cray+set}" = set; then 3935 echo $ECHO_N "(cached) $ECHO_C" >&6 3936 else 3937 cat >conftest.$ac_ext <<_ACEOF 3938 #line 3938 "configure" 2336 3939 #include "confdefs.h" 2337 3940 #if defined(CRAY) && ! defined(CRAY2) … … 2341 3944 #endif 2342 3945 2343 EOF3946 _ACEOF 2344 3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2345 3948 egrep "webecray" >/dev/null 2>&1; then 2346 rm -rf conftest*2347 3949 ac_cv_os_cray=yes 2348 3950 else 2349 rm -rf conftest*2350 3951 ac_cv_os_cray=no 2351 3952 fi … … 2353 3954 2354 3955 fi 2355 2356 echo "$ ac_t""$ac_cv_os_cray" 1>&63956 echo "$as_me:3956: result: $ac_cv_os_cray" >&5 3957 echo "${ECHO_T}$ac_cv_os_cray" >&6 2357 3958 if test $ac_cv_os_cray = yes; then 2358 for ac_func in _getb67 GETB67 getb67; do 2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2360 echo "configure:2361: checking for $ac_func" >&5 2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2362 echo $ac_n "(cached) $ac_c" 1>&6 2363 else 2364 cat > conftest.$ac_ext <<EOF 2365 #line 2366 "configure" 3959 for ac_func in _getb67 GETB67 getb67; do 3960 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3961 echo "$as_me:3961: checking for $ac_func" >&5 3962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3963 if eval "test \"\${$ac_ac_var+set}\" = set"; then 3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3965 else 3966 cat >conftest.$ac_ext <<_ACEOF 3967 #line 3967 "configure" 2366 3968 #include "confdefs.h" 2367 3969 /* System header to define __stub macros and hopefully few prototypes, 2368 which can conflict with char $ac_func (); below. */3970 which can conflict with char $ac_func (); below. */ 2369 3971 #include <assert.h> 2370 3972 /* Override any gcc2 internal prototype to avoid an error. */ 3973 #ifdef __cplusplus 3974 extern "C" 3975 #endif 2371 3976 /* We use char because int might match the return type of a gcc2 2372 builtin and then its argument prototype would still apply. */ 2373 char $ac_func(); 2374 2375 int main() { 2376 3977 builtin and then its argument prototype would still apply. */ 3978 char $ac_func (); 3979 char (*f) (); 3980 3981 int 3982 main () 3983 { 2377 3984 /* The GNU C library defines this for functions which it implements 2378 3985 to always fail with ENOSYS. Some functions are actually named … … 2381 3988 choke me 2382 3989 #else 2383 $ac_func();3990 f = $ac_func; 2384 3991 #endif 2385 3992 2386 ; return 0; } 2387 EOF 2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2389 rm -rf conftest* 2390 eval "ac_cv_func_$ac_func=yes" 2391 else 2392 echo "configure: failed program was:" >&5 2393 cat conftest.$ac_ext >&5 2394 rm -rf conftest* 2395 eval "ac_cv_func_$ac_func=no" 2396 fi 2397 rm -f conftest* 2398 fi 2399 2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 cat >> confdefs.h <<EOF 3993 ; 3994 return 0; 3995 } 3996 _ACEOF 3997 rm -f conftest.$ac_objext conftest$ac_exeext 3998 if { (eval echo "$as_me:3998: \"$ac_link\"") >&5 3999 (eval $ac_link) 2>&5 4000 ac_status=$? 4001 echo "$as_me:4001: \$? = $ac_status" >&5 4002 (exit $ac_status); } && 4003 { ac_try='test -s conftest$ac_exeext' 4004 { (eval echo "$as_me:4004: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:4007: \$? = $ac_status" >&5 4008 (exit $ac_status); }; }; then 4009 eval "$ac_ac_var=yes" 4010 else 4011 echo "$as_me: failed program was:" >&5 4012 cat conftest.$ac_ext >&5 4013 eval "$ac_ac_var=no" 4014 fi 4015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4016 fi 4017 echo "$as_me:4017: result: `eval echo '${'$ac_ac_var'}'`" >&5 4018 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4019 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4020 4021 cat >>confdefs.h <<EOF 2403 4022 #define CRAY_STACKSEG_END $ac_func 2404 4023 EOF 2405 4024 2406 break 2407 else 2408 echo "$ac_t""no" 1>&6 2409 fi 2410 2411 done 2412 fi 2413 2414 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2415 echo "configure:2416: checking stack direction for C alloca" >&5 2416 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2417 echo $ac_n "(cached) $ac_c" 1>&6 4025 break 4026 fi 4027 4028 done 4029 fi 4030 4031 echo "$as_me:4031: checking stack direction for C alloca" >&5 4032 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 4033 if test "${ac_cv_c_stack_direction+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 2418 4035 else 2419 4036 if test "$cross_compiling" = yes; then 2420 4037 ac_cv_c_stack_direction=0 2421 4038 else 2422 cat > conftest.$ac_ext <<EOF 2423 #line 2424 "configure" 2424 #include "confdefs.h" 4039 cat >conftest.$ac_ext <<_ACEOF 4040 #line 4040 "configure" 4041 #include "confdefs.h" 4042 int 2425 4043 find_stack_direction () 2426 4044 { … … 2435 4053 return (&dummy > addr) ? 1 : -1; 2436 4054 } 4055 4056 int 2437 4057 main () 2438 4058 { 2439 exit (find_stack_direction () < 0);4059 exit (find_stack_direction () < 0); 2440 4060 } 2441 EOF 2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2443 then 4061 _ACEOF 4062 rm -f conftest$ac_exeext 4063 if { (eval echo "$as_me:4063: \"$ac_link\"") >&5 4064 (eval $ac_link) 2>&5 4065 ac_status=$? 4066 echo "$as_me:4066: \$? = $ac_status" >&5 4067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4068 { (eval echo "$as_me:4068: \"$ac_try\"") >&5 4069 (eval $ac_try) 2>&5 4070 ac_status=$? 4071 echo "$as_me:4071: \$? = $ac_status" >&5 4072 (exit $ac_status); }; }; then 2444 4073 ac_cv_c_stack_direction=1 2445 4074 else 2446 echo " configure: failed program was:" >&52447 cat conftest.$ac_ext>&52448 rm -fr conftest* 2449 2450 fi 2451 rm -f r conftest*2452 fi 2453 2454 fi 2455 2456 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2457 cat >> 4075 echo "$as_me: program exited with status $ac_status" >&5 4076 echo "$as_me: failed program was:" >&5 4077 cat conftest.$ac_ext >&5 4078 ac_cv_c_stack_direction=-1 4079 fi 4080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4081 fi 4082 fi 4083 echo "$as_me:4083: result: $ac_cv_c_stack_direction" >&5 4084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 4085 4086 cat >>confdefs.h <<EOF 2458 4087 #define STACK_DIRECTION $ac_cv_c_stack_direction 2459 4088 EOF … … 2461 4090 fi 2462 4091 2463 if test $ac_cv_ prog_gcc= yes; then2464 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&62465 echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&52466 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then2467 echo $ ac_n "(cached) $ac_c" 1>&64092 if test $ac_cv_c_compiler_gnu = yes; then 4093 echo "$as_me:4093: checking whether $CC needs -traditional" >&5 4094 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 4095 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 4096 echo $ECHO_N "(cached) $ECHO_C" >&6 2468 4097 else 2469 4098 ac_pattern="Autoconf.*'x'" 2470 cat > conftest.$ac_ext <<EOF2471 #line 2472"configure"4099 cat >conftest.$ac_ext <<_ACEOF 4100 #line 4100 "configure" 2472 4101 #include "confdefs.h" 2473 4102 #include <sgtty.h> 2474 4103 Autoconf TIOCGETP 2475 EOF4104 _ACEOF 2476 4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2477 4106 egrep "$ac_pattern" >/dev/null 2>&1; then 2478 rm -rf conftest*2479 4107 ac_cv_prog_gcc_traditional=yes 2480 4108 else 2481 rm -rf conftest*2482 4109 ac_cv_prog_gcc_traditional=no 2483 4110 fi 2484 4111 rm -f conftest* 2485 4112 2486 2487 4113 if test $ac_cv_prog_gcc_traditional = no; then 2488 cat > conftest.$ac_ext <<EOF2489 #line 2490"configure"4114 cat >conftest.$ac_ext <<_ACEOF 4115 #line 4115 "configure" 2490 4116 #include "confdefs.h" 2491 4117 #include <termio.h> 2492 4118 Autoconf TCGETA 2493 EOF4119 _ACEOF 2494 4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2495 4121 egrep "$ac_pattern" >/dev/null 2>&1; then 2496 rm -rf conftest*2497 4122 ac_cv_prog_gcc_traditional=yes 2498 4123 fi … … 2501 4126 fi 2502 4127 fi 2503 2504 echo "$ ac_t""$ac_cv_prog_gcc_traditional" 1>&64128 echo "$as_me:4128: result: $ac_cv_prog_gcc_traditional" >&5 4129 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2505 4130 if test $ac_cv_prog_gcc_traditional = yes; then 2506 4131 CC="$CC -traditional" … … 2508 4133 fi 2509 4134 2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&62511 echo "configure:2512: checking return type of signal handlers" >&52512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then2513 echo $ ac_n "(cached) $ac_c" 1>&62514 else 2515 cat > conftest.$ac_ext <<EOF2516 #line 2517"configure"4135 echo "$as_me:4135: checking return type of signal handlers" >&5 4136 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4137 if test "${ac_cv_type_signal+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139 else 4140 cat >conftest.$ac_ext <<_ACEOF 4141 #line 4141 "configure" 2517 4142 #include "confdefs.h" 2518 4143 #include <sys/types.h> 2519 4144 #include <signal.h> 2520 4145 #ifdef signal 2521 # undef signal4146 # undef signal 2522 4147 #endif 2523 4148 #ifdef __cplusplus … … 2527 4152 #endif 2528 4153 2529 int main() { 4154 int 4155 main () 4156 { 2530 4157 int i; 2531 ; return 0; } 2532 EOF 2533 if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2534 rm -rf conftest* 4158 ; 4159 return 0; 4160 } 4161 _ACEOF 4162 rm -f conftest.$ac_objext 4163 if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5 4164 (eval $ac_compile) 2>&5 4165 ac_status=$? 4166 echo "$as_me:4166: \$? = $ac_status" >&5 4167 (exit $ac_status); } && 4168 { ac_try='test -s conftest.$ac_objext' 4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5 4170 (eval $ac_try) 2>&5 4171 ac_status=$? 4172 echo "$as_me:4172: \$? = $ac_status" >&5 4173 (exit $ac_status); }; }; then 2535 4174 ac_cv_type_signal=void 2536 4175 else 2537 echo " configure: failed program was:" >&52538 2539 rm -rf conftest* 2540 ac_cv_type_signal=int 2541 fi 2542 rm -f conftest* 2543 fi 2544 2545 echo "$ac_t""$ac_cv_type_signal" 1>&6 2546 cat >> 4176 echo "$as_me: failed program was:" >&5 4177 cat conftest.$ac_ext >&5 4178 ac_cv_type_signal=int 4179 fi 4180 rm -f conftest.$ac_objext conftest.$ac_ext 4181 fi 4182 echo "$as_me:4182: result: $ac_cv_type_signal" >&5 4183 echo "${ECHO_T}$ac_cv_type_signal" >&6 4184 4185 cat >>confdefs.h <<EOF 2547 4186 #define RETSIGTYPE $ac_cv_type_signal 2548 4187 EOF 2549 4188 2550 2551 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2552 echo "configure:2553: checking for vprintf" >&5 2553 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2554 echo $ac_n "(cached) $ac_c" 1>&6 2555 else 2556 cat > conftest.$ac_ext <<EOF 2557 #line 2558 "configure" 4189 for ac_func in vprintf 4190 do 4191 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4192 echo "$as_me:4192: checking for $ac_func" >&5 4193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4194 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196 else 4197 cat >conftest.$ac_ext <<_ACEOF 4198 #line 4198 "configure" 2558 4199 #include "confdefs.h" 2559 4200 /* System header to define __stub macros and hopefully few prototypes, 2560 which can conflict with char vprintf(); below. */4201 which can conflict with char $ac_func (); below. */ 2561 4202 #include <assert.h> 2562 4203 /* Override any gcc2 internal prototype to avoid an error. */ 4204 #ifdef __cplusplus 4205 extern "C" 4206 #endif 2563 4207 /* We use char because int might match the return type of a gcc2 2564 builtin and then its argument prototype would still apply. */ 2565 char vprintf(); 2566 2567 int main() { 2568 4208 builtin and then its argument prototype would still apply. */ 4209 char $ac_func (); 4210 char (*f) (); 4211 4212 int 4213 main () 4214 { 2569 4215 /* The GNU C library defines this for functions which it implements 2570 4216 to always fail with ENOSYS. Some functions are actually named 2571 4217 something starting with __ and the normal name is an alias. */ 2572 #if defined (__stub_ vprintf) || defined (__stub___vprintf)4218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2573 4219 choke me 2574 4220 #else 2575 vprintf();4221 f = $ac_func; 2576 4222 #endif 2577 4223 2578 ; return 0; } 2579 EOF 2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2581 rm -rf conftest* 2582 eval "ac_cv_func_vprintf=yes" 2583 else 2584 echo "configure: failed program was:" >&5 2585 cat conftest.$ac_ext >&5 2586 rm -rf conftest* 2587 eval "ac_cv_func_vprintf=no" 2588 fi 2589 rm -f conftest* 2590 fi 2591 2592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2593 echo "$ac_t""yes" 1>&6 2594 cat >> confdefs.h <<\EOF 2595 #define HAVE_VPRINTF 1 2596 EOF 2597 2598 else 2599 echo "$ac_t""no" 1>&6 2600 fi 2601 2602 if test "$ac_cv_func_vprintf" != yes; then 2603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2604 echo "configure:2605: checking for _doprnt" >&5 2605 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2606 echo $ac_n "(cached) $ac_c" 1>&6 2607 else 2608 cat > conftest.$ac_ext <<EOF 2609 #line 2610 "configure" 4224 ; 4225 return 0; 4226 } 4227 _ACEOF 4228 rm -f conftest.$ac_objext conftest$ac_exeext 4229 if { (eval echo "$as_me:4229: \"$ac_link\"") >&5 4230 (eval $ac_link) 2>&5 4231 ac_status=$? 4232 echo "$as_me:4232: \$? = $ac_status" >&5 4233 (exit $ac_status); } && 4234 { ac_try='test -s conftest$ac_exeext' 4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5 4236 (eval $ac_try) 2>&5 4237 ac_status=$? 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit $ac_status); }; }; then 4240 eval "$ac_ac_var=yes" 4241 else 4242 echo "$as_me: failed program was:" >&5 4243 cat conftest.$ac_ext >&5 4244 eval "$ac_ac_var=no" 4245 fi 4246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4247 fi 4248 echo "$as_me:4248: result: `eval echo '${'$ac_ac_var'}'`" >&5 4249 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4250 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4251 cat >>confdefs.h <<EOF 4252 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4253 EOF 4254 4255 echo "$as_me:4255: checking for _doprnt" >&5 4256 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4257 if test "${ac_cv_func__doprnt+set}" = set; then 4258 echo $ECHO_N "(cached) $ECHO_C" >&6 4259 else 4260 cat >conftest.$ac_ext <<_ACEOF 4261 #line 4261 "configure" 2610 4262 #include "confdefs.h" 2611 4263 /* System header to define __stub macros and hopefully few prototypes, 2612 which can conflict with char _doprnt (); below. */4264 which can conflict with char _doprnt (); below. */ 2613 4265 #include <assert.h> 2614 4266 /* Override any gcc2 internal prototype to avoid an error. */ 4267 #ifdef __cplusplus 4268 extern "C" 4269 #endif 2615 4270 /* We use char because int might match the return type of a gcc2 2616 builtin and then its argument prototype would still apply. */ 2617 char _doprnt(); 2618 2619 int main() { 2620 4271 builtin and then its argument prototype would still apply. */ 4272 char _doprnt (); 4273 char (*f) (); 4274 4275 int 4276 main () 4277 { 2621 4278 /* The GNU C library defines this for functions which it implements 2622 4279 to always fail with ENOSYS. Some functions are actually named … … 2625 4282 choke me 2626 4283 #else 2627 _doprnt();4284 f = _doprnt; 2628 4285 #endif 2629 4286 2630 ; return 0; } 2631 EOF 2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2633 rm -rf conftest* 2634 eval "ac_cv_func__doprnt=yes" 2635 else 2636 echo "configure: failed program was:" >&5 2637 cat conftest.$ac_ext >&5 2638 rm -rf conftest* 2639 eval "ac_cv_func__doprnt=no" 2640 fi 2641 rm -f conftest* 2642 fi 2643 2644 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2645 echo "$ac_t""yes" 1>&6 2646 cat >> confdefs.h <<\EOF 4287 ; 4288 return 0; 4289 } 4290 _ACEOF 4291 rm -f conftest.$ac_objext conftest$ac_exeext 4292 if { (eval echo "$as_me:4292: \"$ac_link\"") >&5 4293 (eval $ac_link) 2>&5 4294 ac_status=$? 4295 echo "$as_me:4295: \$? = $ac_status" >&5 4296 (exit $ac_status); } && 4297 { ac_try='test -s conftest$ac_exeext' 4298 { (eval echo "$as_me:4298: \"$ac_try\"") >&5 4299 (eval $ac_try) 2>&5 4300 ac_status=$? 4301 echo "$as_me:4301: \$? = $ac_status" >&5 4302 (exit $ac_status); }; }; then 4303 ac_cv_func__doprnt=yes 4304 else 4305 echo "$as_me: failed program was:" >&5 4306 cat conftest.$ac_ext >&5 4307 ac_cv_func__doprnt=no 4308 fi 4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4310 fi 4311 echo "$as_me:4311: result: $ac_cv_func__doprnt" >&5 4312 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4313 if test $ac_cv_func__doprnt = yes; then 4314 4315 cat >>confdefs.h <<\EOF 2647 4316 #define HAVE_DOPRNT 1 2648 4317 EOF 2649 4318 2650 else 2651 echo "$ac_t""no" 1>&6 2652 fi 2653 2654 fi 4319 fi 4320 4321 fi 4322 done 2655 4323 2656 4324 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror 2657 4325 do 2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2659 echo "configure:2660: checking for $ac_func" >&5 2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2661 echo $ac_n "(cached) $ac_c" 1>&6 2662 else 2663 cat > conftest.$ac_ext <<EOF 2664 #line 2665 "configure" 4326 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4327 echo "$as_me:4327: checking for $ac_func" >&5 4328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4329 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 4331 else 4332 cat >conftest.$ac_ext <<_ACEOF 4333 #line 4333 "configure" 2665 4334 #include "confdefs.h" 2666 4335 /* System header to define __stub macros and hopefully few prototypes, 2667 which can conflict with char $ac_func (); below. */4336 which can conflict with char $ac_func (); below. */ 2668 4337 #include <assert.h> 2669 4338 /* Override any gcc2 internal prototype to avoid an error. */ 4339 #ifdef __cplusplus 4340 extern "C" 4341 #endif 2670 4342 /* We use char because int might match the return type of a gcc2 2671 builtin and then its argument prototype would still apply. */ 2672 char $ac_func(); 2673 2674 int main() { 2675 4343 builtin and then its argument prototype would still apply. */ 4344 char $ac_func (); 4345 char (*f) (); 4346 4347 int 4348 main () 4349 { 2676 4350 /* The GNU C library defines this for functions which it implements 2677 4351 to always fail with ENOSYS. Some functions are actually named … … 2680 4354 choke me 2681 4355 #else 2682 $ac_func();4356 f = $ac_func; 2683 4357 #endif 2684 4358 2685 ; return 0; } 2686 EOF 2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2688 rm -rf conftest* 2689 eval "ac_cv_func_$ac_func=yes" 2690 else 2691 echo "configure: failed program was:" >&5 2692 cat conftest.$ac_ext >&5 2693 rm -rf conftest* 2694 eval "ac_cv_func_$ac_func=no" 2695 fi 2696 rm -f conftest* 2697 fi 2698 2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2700 echo "$ac_t""yes" 1>&6 2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2702 cat >> confdefs.h <<EOF 2703 #define $ac_tr_func 1 2704 EOF 2705 2706 else 2707 echo "$ac_t""no" 1>&6 4359 ; 4360 return 0; 4361 } 4362 _ACEOF 4363 rm -f conftest.$ac_objext conftest$ac_exeext 4364 if { (eval echo "$as_me:4364: \"$ac_link\"") >&5 4365 (eval $ac_link) 2>&5 4366 ac_status=$? 4367 echo "$as_me:4367: \$? = $ac_status" >&5 4368 (exit $ac_status); } && 4369 { ac_try='test -s conftest$ac_exeext' 4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5 4371 (eval $ac_try) 2>&5 4372 ac_status=$? 4373 echo "$as_me:4373: \$? = $ac_status" >&5 4374 (exit $ac_status); }; }; then 4375 eval "$ac_ac_var=yes" 4376 else 4377 echo "$as_me: failed program was:" >&5 4378 cat conftest.$ac_ext >&5 4379 eval "$ac_ac_var=no" 4380 fi 4381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4382 fi 4383 echo "$as_me:4383: result: `eval echo '${'$ac_ac_var'}'`" >&5 4384 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4385 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4386 cat >>confdefs.h <<EOF 4387 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4388 EOF 4389 2708 4390 fi 2709 4391 done … … 2711 4393 for ac_func in ftruncate strstr strcasecmp 2712 4394 do 2713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2714 echo "configure:2715: checking for $ac_func" >&5 2715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2716 echo $ac_n "(cached) $ac_c" 1>&6 2717 else 2718 cat > conftest.$ac_ext <<EOF 2719 #line 2720 "configure" 4395 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4396 echo "$as_me:4396: checking for $ac_func" >&5 4397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4398 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400 else 4401 cat >conftest.$ac_ext <<_ACEOF 4402 #line 4402 "configure" 2720 4403 #include "confdefs.h" 2721 4404 /* System header to define __stub macros and hopefully few prototypes, 2722 which can conflict with char $ac_func (); below. */4405 which can conflict with char $ac_func (); below. */ 2723 4406 #include <assert.h> 2724 4407 /* Override any gcc2 internal prototype to avoid an error. */ 4408 #ifdef __cplusplus 4409 extern "C" 4410 #endif 2725 4411 /* We use char because int might match the return type of a gcc2 2726 builtin and then its argument prototype would still apply. */ 2727 char $ac_func(); 2728 2729 int main() { 2730 4412 builtin and then its argument prototype would still apply. */ 4413 char $ac_func (); 4414 char (*f) (); 4415 4416 int 4417 main () 4418 { 2731 4419 /* The GNU C library defines this for functions which it implements 2732 4420 to always fail with ENOSYS. Some functions are actually named … … 2735 4423 choke me 2736 4424 #else 2737 $ac_func();4425 f = $ac_func; 2738 4426 #endif 2739 4427 2740 ; return 0; } 2741 EOF 2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2743 rm -rf conftest* 2744 eval "ac_cv_func_$ac_func=yes" 2745 else 2746 echo "configure: failed program was:" >&5 2747 cat conftest.$ac_ext >&5 2748 rm -rf conftest* 2749 eval "ac_cv_func_$ac_func=no" 2750 fi 2751 rm -f conftest* 2752 fi 2753 2754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2755 echo "$ac_t""yes" 1>&6 2756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2757 cat >> confdefs.h <<EOF 2758 #define $ac_tr_func 1 2759 EOF 2760 2761 else 2762 echo "$ac_t""no" 1>&6 2763 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 4428 ; 4429 return 0; 4430 } 4431 _ACEOF 4432 rm -f conftest.$ac_objext conftest$ac_exeext 4433 if { (eval echo "$as_me:4433: \"$ac_link\"") >&5 4434 (eval $ac_link) 2>&5 4435 ac_status=$? 4436 echo "$as_me:4436: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -s conftest$ac_exeext' 4439 { (eval echo "$as_me:4439: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:4442: \$? = $ac_status" >&5 4443 (exit $ac_status); }; }; then 4444 eval "$ac_ac_var=yes" 4445 else 4446 echo "$as_me: failed program was:" >&5 4447 cat conftest.$ac_ext >&5 4448 eval "$ac_ac_var=no" 4449 fi 4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4451 fi 4452 echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5 4453 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4454 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4455 cat >>confdefs.h <<EOF 4456 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4457 EOF 4458 4459 else 4460 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 2764 4461 fi 2765 4462 done 2766 4463 2767 2768 2769 2770 echo $ac_n "checking for textdomain ""... $ac_c" 1>&6 2771 echo "configure:2772: checking for textdomain " >&5 2772 if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then 2773 echo $ac_n "(cached) $ac_c" 1>&6 2774 else 2775 cat > conftest.$ac_ext <<EOF 2776 #line 2777 "configure" 4464 echo "$as_me:4464: checking for textdomain" >&5 4465 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6 4466 if test "${ac_cv_func_textdomain+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468 else 4469 cat >conftest.$ac_ext <<_ACEOF 4470 #line 4470 "configure" 2777 4471 #include "confdefs.h" 2778 4472 /* System header to define __stub macros and hopefully few prototypes, … … 2780 4474 #include <assert.h> 2781 4475 /* Override any gcc2 internal prototype to avoid an error. */ 4476 #ifdef __cplusplus 4477 extern "C" 4478 #endif 2782 4479 /* We use char because int might match the return type of a gcc2 2783 4480 builtin and then its argument prototype would still apply. */ 2784 4481 char textdomain (); 2785 2786 int main() { 2787 4482 char (*f) (); 4483 4484 int 4485 main () 4486 { 2788 4487 /* The GNU C library defines this for functions which it implements 2789 4488 to always fail with ENOSYS. Some functions are actually named 2790 4489 something starting with __ and the normal name is an alias. */ 2791 #if defined (__stub_textdomain ) || defined (__stub___textdomain)4490 #if defined (__stub_textdomain) || defined (__stub___textdomain) 2792 4491 choke me 2793 4492 #else 2794 textdomain ();4493 f = textdomain; 2795 4494 #endif 2796 4495 2797 ; return 0; } 2798 EOF 2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2800 rm -rf conftest* 2801 eval "ac_cv_func_textdomain =yes" 2802 else 2803 echo "configure: failed program was:" >&5 2804 cat conftest.$ac_ext >&5 2805 rm -rf conftest* 2806 eval "ac_cv_func_textdomain =no" 2807 fi 2808 rm -f conftest* 2809 fi 2810 2811 if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then 2812 echo "$ac_t""yes" 1>&6 2813 cat >> confdefs.h <<\EOF 4496 ; 4497 return 0; 4498 } 4499 _ACEOF 4500 rm -f conftest.$ac_objext conftest$ac_exeext 4501 if { (eval echo "$as_me:4501: \"$ac_link\"") >&5 4502 (eval $ac_link) 2>&5 4503 ac_status=$? 4504 echo "$as_me:4504: \$? = $ac_status" >&5 4505 (exit $ac_status); } && 4506 { ac_try='test -s conftest$ac_exeext' 4507 { (eval echo "$as_me:4507: \"$ac_try\"") >&5 4508 (eval $ac_try) 2>&5 4509 ac_status=$? 4510 echo "$as_me:4510: \$? = $ac_status" >&5 4511 (exit $ac_status); }; }; then 4512 ac_cv_func_textdomain=yes 4513 else 4514 echo "$as_me: failed program was:" >&5 4515 cat conftest.$ac_ext >&5 4516 ac_cv_func_textdomain=no 4517 fi 4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4519 fi 4520 echo "$as_me:4520: result: $ac_cv_func_textdomain" >&5 4521 echo "${ECHO_T}$ac_cv_func_textdomain" >&6 4522 if test $ac_cv_func_textdomain = yes; then 4523 cat >>confdefs.h <<\EOF 2814 4524 #define ENABLE_NLS 1 2815 4525 EOF 2816 2817 else 2818 echo "$ac_t""no" 1>&6 2819 fi 2820 4526 4527 fi 2821 4528 2822 4529 # *** Custom checking (based on GNU tar configure.in) *** 2823 4530 # --------------------------------------------------------------------------- 2824 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&62825 echo "configure:2826: checking for HP-UX needing gmalloc" >&54531 echo "$as_me:4531: checking for HP-UX needing gmalloc" >&5 4532 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 2826 4533 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2827 echo "$ac_t""yes" 1>&6 4534 echo "$as_me:4534: result: yes" >&5 4535 echo "${ECHO_T}yes" >&6 2828 4536 LIBOBJS="$LIBOBJS gmalloc.o" 2829 cat >> 4537 cat >>confdefs.h <<\EOF 2830 4538 #define HAVE_VALLOC 1 2831 4539 EOF 2832 4540 2833 4541 else 2834 echo "$ac_t""no" 1>&6 2835 for ac_func in valloc 4542 echo "$as_me:4542: result: no" >&5 4543 echo "${ECHO_T}no" >&6 4544 4545 for ac_func in valloc 2836 4546 do 2837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2838 echo "configure:2839: checking for $ac_func" >&5 2839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2840 echo $ac_n "(cached) $ac_c" 1>&6 2841 else 2842 cat > conftest.$ac_ext <<EOF 2843 #line 2844 "configure" 4547 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4548 echo "$as_me:4548: checking for $ac_func" >&5 4549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4550 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552 else 4553 cat >conftest.$ac_ext <<_ACEOF 4554 #line 4554 "configure" 2844 4555 #include "confdefs.h" 2845 4556 /* System header to define __stub macros and hopefully few prototypes, 2846 which can conflict with char $ac_func (); below. */4557 which can conflict with char $ac_func (); below. */ 2847 4558 #include <assert.h> 2848 4559 /* Override any gcc2 internal prototype to avoid an error. */ 4560 #ifdef __cplusplus 4561 extern "C" 4562 #endif 2849 4563 /* We use char because int might match the return type of a gcc2 2850 builtin and then its argument prototype would still apply. */ 2851 char $ac_func(); 2852 2853 int main() { 2854 4564 builtin and then its argument prototype would still apply. */ 4565 char $ac_func (); 4566 char (*f) (); 4567 4568 int 4569 main () 4570 { 2855 4571 /* The GNU C library defines this for functions which it implements 2856 4572 to always fail with ENOSYS. Some functions are actually named … … 2859 4575 choke me 2860 4576 #else 2861 $ac_func();4577 f = $ac_func; 2862 4578 #endif 2863 4579 2864 ; return 0; } 2865 EOF 2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2867 rm -rf conftest* 2868 eval "ac_cv_func_$ac_func=yes" 2869 else 2870 echo "configure: failed program was:" >&5 2871 cat conftest.$ac_ext >&5 2872 rm -rf conftest* 2873 eval "ac_cv_func_$ac_func=no" 2874 fi 2875 rm -f conftest* 2876 fi 2877 2878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2879 echo "$ac_t""yes" 1>&6 2880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2881 cat >> confdefs.h <<EOF 2882 #define $ac_tr_func 1 2883 EOF 2884 2885 else 2886 echo "$ac_t""no" 1>&6 4580 ; 4581 return 0; 4582 } 4583 _ACEOF 4584 rm -f conftest.$ac_objext conftest$ac_exeext 4585 if { (eval echo "$as_me:4585: \"$ac_link\"") >&5 4586 (eval $ac_link) 2>&5 4587 ac_status=$? 4588 echo "$as_me:4588: \$? = $ac_status" >&5 4589 (exit $ac_status); } && 4590 { ac_try='test -s conftest$ac_exeext' 4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:4594: \$? = $ac_status" >&5 4595 (exit $ac_status); }; }; then 4596 eval "$ac_ac_var=yes" 4597 else 4598 echo "$as_me: failed program was:" >&5 4599 cat conftest.$ac_ext >&5 4600 eval "$ac_ac_var=no" 4601 fi 4602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4603 fi 4604 echo "$as_me:4604: result: `eval echo '${'$ac_ac_var'}'`" >&5 4605 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4606 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4607 cat >>confdefs.h <<EOF 4608 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4609 EOF 4610 2887 4611 fi 2888 4612 done … … 2890 4614 fi 2891 4615 2892 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2893 echo "configure:2894: checking if malloc debugging is wanted" >&5 4616 echo "$as_me:4616: checking if malloc debugging is wanted" >&5 4617 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4618 2894 4619 # Check whether --with-dmalloc or --without-dmalloc was given. 2895 4620 if test "${with_dmalloc+set}" = set; then 2896 4621 withval="$with_dmalloc" 2897 4622 if test "$withval" = yes; then 2898 echo "$ac_t""yes" 1>&6 2899 cat >> confdefs.h <<\EOF 4623 echo "$as_me:4623: result: yes" >&5 4624 echo "${ECHO_T}yes" >&6 4625 cat >>confdefs.h <<\EOF 2900 4626 #define WITH_DMALLOC 1 2901 4627 EOF … … 2904 4630 LDFLAGS="$LDFLAGS -g" 2905 4631 else 2906 echo "$ac_t""no" 1>&6 2907 fi 2908 else 2909 echo "$ac_t""no" 1>&6 2910 fi 2911 2912 2913 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2914 echo "configure:2915: checking which of rx or regex is wanted" >&5 4632 echo "$as_me:4632: result: no" >&5 4633 echo "${ECHO_T}no" >&6 4634 fi 4635 else 4636 echo "$as_me:4636: result: no" >&5 4637 echo "${ECHO_T}no" >&6 4638 fi; 4639 4640 echo "$as_me:4640: checking which of rx or regex is wanted" >&5 4641 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4642 2915 4643 # Check whether --with-regex or --without-regex was given. 2916 4644 if test "${with_regex+set}" = set; then … … 2918 4646 if test "$withval" = yes; then 2919 4647 ac_with_regex=1 2920 echo "$ac_t""regex" 1>&6 2921 cat >> confdefs.h <<\EOF 4648 echo "$as_me:4648: result: regex" >&5 4649 echo "${ECHO_T}regex" >&6 4650 cat >>confdefs.h <<\EOF 2922 4651 #define WITH_REGEX 1 2923 4652 EOF … … 2925 4654 LIBOBJS="$LIBOBJS regex.o" 2926 4655 fi 2927 fi 2928 4656 fi; 2929 4657 if test -z "$ac_with_regex"; then 2930 echo "$ac_t""rx" 1>&6 2931 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2932 echo "configure:2933: checking for re_rx_search" >&5 2933 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2934 echo $ac_n "(cached) $ac_c" 1>&6 2935 else 2936 cat > conftest.$ac_ext <<EOF 2937 #line 2938 "configure" 4658 echo "$as_me:4658: result: rx" >&5 4659 echo "${ECHO_T}rx" >&6 4660 echo "$as_me:4660: checking for re_rx_search" >&5 4661 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4662 if test "${ac_cv_func_re_rx_search+set}" = set; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664 else 4665 cat >conftest.$ac_ext <<_ACEOF 4666 #line 4666 "configure" 2938 4667 #include "confdefs.h" 2939 4668 /* System header to define __stub macros and hopefully few prototypes, 2940 which can conflict with char re_rx_search (); below. */4669 which can conflict with char re_rx_search (); below. */ 2941 4670 #include <assert.h> 2942 4671 /* Override any gcc2 internal prototype to avoid an error. */ 4672 #ifdef __cplusplus 4673 extern "C" 4674 #endif 2943 4675 /* We use char because int might match the return type of a gcc2 2944 builtin and then its argument prototype would still apply. */ 2945 char re_rx_search(); 2946 2947 int main() { 2948 4676 builtin and then its argument prototype would still apply. */ 4677 char re_rx_search (); 4678 char (*f) (); 4679 4680 int 4681 main () 4682 { 2949 4683 /* The GNU C library defines this for functions which it implements 2950 4684 to always fail with ENOSYS. Some functions are actually named … … 2953 4687 choke me 2954 4688 #else 2955 re_rx_search();4689 f = re_rx_search; 2956 4690 #endif 2957 4691 2958 ; return 0; } 2959 EOF 2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2961 rm -rf conftest* 2962 eval "ac_cv_func_re_rx_search=yes" 2963 else 2964 echo "configure: failed program was:" >&5 2965 cat conftest.$ac_ext >&5 2966 rm -rf conftest* 2967 eval "ac_cv_func_re_rx_search=no" 2968 fi 2969 rm -f conftest* 2970 fi 2971 2972 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2973 echo "$ac_t""yes" 1>&6 4692 ; 4693 return 0; 4694 } 4695 _ACEOF 4696 rm -f conftest.$ac_objext conftest$ac_exeext 4697 if { (eval echo "$as_me:4697: \"$ac_link\"") >&5 4698 (eval $ac_link) 2>&5 4699 ac_status=$? 4700 echo "$as_me:4700: \$? = $ac_status" >&5 4701 (exit $ac_status); } && 4702 { ac_try='test -s conftest$ac_exeext' 4703 { (eval echo "$as_me:4703: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:4706: \$? = $ac_status" >&5 4707 (exit $ac_status); }; }; then 4708 ac_cv_func_re_rx_search=yes 4709 else 4710 echo "$as_me: failed program was:" >&5 4711 cat conftest.$ac_ext >&5 4712 ac_cv_func_re_rx_search=no 4713 fi 4714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4715 fi 4716 echo "$as_me:4716: result: $ac_cv_func_re_rx_search" >&5 4717 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4718 if test $ac_cv_func_re_rx_search = yes; then 2974 4719 : 2975 4720 else 2976 echo "$ac_t""no" 1>&6 2977 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6 2978 echo "configure:2979: checking size of unsigned char *" >&5 2979 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then 2980 echo $ac_n "(cached) $ac_c" 1>&6 2981 else 4721 echo "$as_me:4721: checking for unsigned char *" >&5 4722 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6 4723 if test "${ac_cv_type_unsigned_char_p+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725 else 4726 cat >conftest.$ac_ext <<_ACEOF 4727 #line 4727 "configure" 4728 #include "confdefs.h" 4729 $ac_includes_default 4730 int 4731 main () 4732 { 4733 if ((unsigned char * *) 0) 4734 return 0; 4735 if (sizeof (unsigned char *)) 4736 return 0; 4737 ; 4738 return 0; 4739 } 4740 _ACEOF 4741 rm -f conftest.$ac_objext 4742 if { (eval echo "$as_me:4742: \"$ac_compile\"") >&5 4743 (eval $ac_compile) 2>&5 4744 ac_status=$? 4745 echo "$as_me:4745: \$? = $ac_status" >&5 4746 (exit $ac_status); } && 4747 { ac_try='test -s conftest.$ac_objext' 4748 { (eval echo "$as_me:4748: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:4751: \$? = $ac_status" >&5 4752 (exit $ac_status); }; }; then 4753 ac_cv_type_unsigned_char_p=yes 4754 else 4755 echo "$as_me: failed program was:" >&5 4756 cat conftest.$ac_ext >&5 4757 ac_cv_type_unsigned_char_p=no 4758 fi 4759 rm -f conftest.$ac_objext conftest.$ac_ext 4760 fi 4761 echo "$as_me:4761: result: $ac_cv_type_unsigned_char_p" >&5 4762 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6 4763 4764 echo "$as_me:4764: checking size of unsigned char *" >&5 4765 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6 4766 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768 else 4769 if test "$ac_cv_type_unsigned_char_p" = yes; then 2982 4770 if test "$cross_compiling" = yes; then 2983 ac_cv_sizeof_unsigned_char_p=unsigned char *2984 else 2985 cat > conftest.$ac_ext <<EOF 2986 # line 2987 "configure"2987 #include "confdefs.h" 2988 #include <stdio.h> 2989 main ()4771 # Depending upon the size, compute the lo and hi bounds. 4772 cat >conftest.$ac_ext <<_ACEOF 4773 #line 4773 "configure" 4774 #include "confdefs.h" 4775 $ac_includes_default 4776 int 4777 main () 2990 4778 { 2991 FILE *f=fopen("conftestval", "w"); 2992 if (!f) exit(1); 2993 fprintf(f, "%d\n", sizeof(unsigned char *)); 2994 exit(0); 4779 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)] 4780 ; 4781 return 0; 2995 4782 } 2996 EOF 2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2998 then 2999 ac_cv_sizeof_unsigned_char_p=`cat conftestval` 3000 else 3001 echo "configure: failed program was:" >&5 3002 cat conftest.$ac_ext >&5 3003 rm -fr conftest* 4783 _ACEOF 4784 rm -f conftest.$ac_objext 4785 if { (eval echo "$as_me:4785: \"$ac_compile\"") >&5 4786 (eval $ac_compile) 2>&5 4787 ac_status=$? 4788 echo "$as_me:4788: \$? = $ac_status" >&5 4789 (exit $ac_status); } && 4790 { ac_try='test -s conftest.$ac_objext' 4791 { (eval echo "$as_me:4791: \"$ac_try\"") >&5 4792 (eval $ac_try) 2>&5 4793 ac_status=$? 4794 echo "$as_me:4794: \$? = $ac_status" >&5 4795 (exit $ac_status); }; }; then 4796 ac_lo=0 ac_mid=0 4797 while :; do 4798 cat >conftest.$ac_ext <<_ACEOF 4799 #line 4799 "configure" 4800 #include "confdefs.h" 4801 $ac_includes_default 4802 int 4803 main () 4804 { 4805 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4806 ; 4807 return 0; 4808 } 4809 _ACEOF 4810 rm -f conftest.$ac_objext 4811 if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5 4812 (eval $ac_compile) 2>&5 4813 ac_status=$? 4814 echo "$as_me:4814: \$? = $ac_status" >&5 4815 (exit $ac_status); } && 4816 { ac_try='test -s conftest.$ac_objext' 4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:4820: \$? = $ac_status" >&5 4821 (exit $ac_status); }; }; then 4822 ac_hi=$ac_mid; break 4823 else 4824 echo "$as_me: failed program was:" >&5 4825 cat conftest.$ac_ext >&5 4826 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 4827 fi 4828 rm -f conftest.$ac_objext conftest.$ac_ext 4829 done 4830 else 4831 echo "$as_me: failed program was:" >&5 4832 cat conftest.$ac_ext >&5 4833 ac_hi=-1 ac_mid=-1 4834 while :; do 4835 cat >conftest.$ac_ext <<_ACEOF 4836 #line 4836 "configure" 4837 #include "confdefs.h" 4838 $ac_includes_default 4839 int 4840 main () 4841 { 4842 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)] 4843 ; 4844 return 0; 4845 } 4846 _ACEOF 4847 rm -f conftest.$ac_objext 4848 if { (eval echo "$as_me:4848: \"$ac_compile\"") >&5 4849 (eval $ac_compile) 2>&5 4850 ac_status=$? 4851 echo "$as_me:4851: \$? = $ac_status" >&5 4852 (exit $ac_status); } && 4853 { ac_try='test -s conftest.$ac_objext' 4854 { (eval echo "$as_me:4854: \"$ac_try\"") >&5 4855 (eval $ac_try) 2>&5 4856 ac_status=$? 4857 echo "$as_me:4857: \$? = $ac_status" >&5 4858 (exit $ac_status); }; }; then 4859 ac_lo=$ac_mid; break 4860 else 4861 echo "$as_me: failed program was:" >&5 4862 cat conftest.$ac_ext >&5 4863 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 4864 fi 4865 rm -f conftest.$ac_objext conftest.$ac_ext 4866 done 4867 fi 4868 rm -f conftest.$ac_objext conftest.$ac_ext 4869 # Binary search between lo and hi bounds. 4870 while test "x$ac_lo" != "x$ac_hi"; do 4871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4872 cat >conftest.$ac_ext <<_ACEOF 4873 #line 4873 "configure" 4874 #include "confdefs.h" 4875 $ac_includes_default 4876 int 4877 main () 4878 { 4879 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4880 ; 4881 return 0; 4882 } 4883 _ACEOF 4884 rm -f conftest.$ac_objext 4885 if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5 4886 (eval $ac_compile) 2>&5 4887 ac_status=$? 4888 echo "$as_me:4888: \$? = $ac_status" >&5 4889 (exit $ac_status); } && 4890 { ac_try='test -s conftest.$ac_objext' 4891 { (eval echo "$as_me:4891: \"$ac_try\"") >&5 4892 (eval $ac_try) 2>&5 4893 ac_status=$? 4894 echo "$as_me:4894: \$? = $ac_status" >&5 4895 (exit $ac_status); }; }; then 4896 ac_hi=$ac_mid 4897 else 4898 echo "$as_me: failed program was:" >&5 4899 cat conftest.$ac_ext >&5 4900 ac_lo=`expr $ac_mid + 1` 4901 fi 4902 rm -f conftest.$ac_objext conftest.$ac_ext 4903 done 4904 ac_cv_sizeof_unsigned_char_p=$ac_lo 4905 else 4906 if test "$cross_compiling" = yes; then 4907 { { echo "$as_me:4907: error: cannot run test program while cross compiling" >&5 4908 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4909 { (exit 1); exit 1; }; } 4910 else 4911 cat >conftest.$ac_ext <<_ACEOF 4912 #line 4912 "configure" 4913 #include "confdefs.h" 4914 $ac_includes_default 4915 int 4916 main () 4917 { 4918 FILE *f = fopen ("conftest.val", "w"); 4919 if (!f) 4920 exit (1); 4921 fprintf (f, "%d", (sizeof (unsigned char *))); 4922 fclose (f); 4923 ; 4924 return 0; 4925 } 4926 _ACEOF 4927 rm -f conftest$ac_exeext 4928 if { (eval echo "$as_me:4928: \"$ac_link\"") >&5 4929 (eval $ac_link) 2>&5 4930 ac_status=$? 4931 echo "$as_me:4931: \$? = $ac_status" >&5 4932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4933 { (eval echo "$as_me:4933: \"$ac_try\"") >&5 4934 (eval $ac_try) 2>&5 4935 ac_status=$? 4936 echo "$as_me:4936: \$? = $ac_status" >&5 4937 (exit $ac_status); }; }; then 4938 ac_cv_sizeof_unsigned_char_p=`cat conftest.val` 4939 else 4940 echo "$as_me: program exited with status $ac_status" >&5 4941 echo "$as_me: failed program was:" >&5 4942 cat conftest.$ac_ext >&5 4943 fi 4944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4945 fi 4946 fi 4947 rm -f conftest.val 4948 else 3004 4949 ac_cv_sizeof_unsigned_char_p=0 3005 4950 fi 3006 rm -fr conftest* 3007 fi 3008 3009 fi 3010 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 3011 cat >> confdefs.h <<EOF 4951 fi 4952 echo "$as_me:4952: result: $ac_cv_sizeof_unsigned_char_p" >&5 4953 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6 4954 cat >>confdefs.h <<EOF 3012 4955 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 3013 4956 EOF 3014 4957 3015 3016 4958 if test "$ac_cv_sizeof_unsigned_char_p" = 8 3017 4959 then 3018 echo "configure: warning: I'm forcing you to use regex because I can't 3019 find a local rx library and the one included with this 3020 distribution doesn't work on 64-bit machines like yours" 1>&2 4960 { echo "$as_me:4960: WARNING: I'm forcing you to use regex because I can't 4961 find a local rx library and the one included with this 4962 distribution doesn't work on 64-bit machines like yours" >&5 4963 echo "$as_me: WARNING: I'm forcing you to use regex because I can't 4964 find a local rx library and the one included with this 4965 distribution doesn't work on 64-bit machines like yours" >&2;} 3021 4966 LIBOBJS="$LIBOBJS regex.o" 3022 4967 else 3023 4968 LIBOBJS="$LIBOBJS rx.o" 3024 4969 fi 3025 3026 fi 3027 3028 fi 3029 3030 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6 3031 echo "configure:3032: checking whether GNU readline requested" >&5 3032 # Check whether --with-gnu_readline or --without-gnu_readline was given. 4970 4971 fi 4972 4973 fi 4974 4975 echo "$as_me:4975: checking whether GNU readline requested" >&5 4976 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6 4977 4978 # Check whether --with-gnu_readline or --without-gnu_readline was given. 3033 4979 if test "${with_gnu_readline+set}" = set; then 3034 4980 withval="$with_gnu_readline" 3035 4981 if test "$withval" = yes; then 3036 echo "$ac_t""yes" 1>&6 4982 echo "$as_me:4982: result: yes" >&5 4983 echo "${ECHO_T}yes" >&6 3037 4984 ac_with_gnu_readline=1 3038 4985 else 3039 echo "$ac_t""no" 1>&6 4986 echo "$as_me:4986: result: no" >&5 4987 echo "${ECHO_T}no" >&6 3040 4988 fi 3041 4989 else 3042 echo "$a c_t""no" 1>&63043 fi 3044 4990 echo "$as_me:4990: result: no" >&5 4991 echo "${ECHO_T}no" >&6 4992 fi; 3045 4993 3046 4994 if test -n "$ac_with_gnu_readline"; then 3047 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'` 3048 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6 3049 echo "configure:3050: checking for readline/readline.h" >&5 3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3051 echo $ac_n "(cached) $ac_c" 1>&6 3052 else 3053 cat > conftest.$ac_ext <<EOF 3054 #line 3055 "configure" 4995 echo "$as_me:4995: checking for readline/readline.h" >&5 4996 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6 4997 if test "${ac_cv_header_readline_readline_h+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999 else 5000 cat >conftest.$ac_ext <<_ACEOF 5001 #line 5001 "configure" 3055 5002 #include "confdefs.h" 3056 5003 #include <readline/readline.h> 3057 EOF 3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3061 if test -z "$ac_err"; then 3062 rm -rf conftest* 3063 eval "ac_cv_header_$ac_safe=yes" 3064 else 3065 echo "$ac_err" >&5 3066 echo "configure: failed program was:" >&5 5004 _ACEOF 5005 if { (eval echo "$as_me:5005: \"$ac_cpp conftest.$ac_ext\"") >&5 5006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5007 ac_status=$? 5008 egrep -v '^ *\+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 echo "$as_me:5011: \$? = $ac_status" >&5 5012 (exit $ac_status); } >/dev/null; then 5013 if test -s conftest.err; then 5014 ac_cpp_err=$ac_c_preproc_warn_flag 5015 else 5016 ac_cpp_err= 5017 fi 5018 else 5019 ac_cpp_err=yes 5020 fi 5021 if test -z "$ac_cpp_err"; then 5022 ac_cv_header_readline_readline_h=yes 5023 else 5024 echo "$as_me: failed program was:" >&5 3067 5025 cat conftest.$ac_ext >&5 3068 rm -rf conftest*3069 eval "ac_cv_header_$ac_safe=no" 3070 fi 3071 rm -f conftest* 3072 fi 3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3074 echo "$ac_t""yes" 1>&6 5026 ac_cv_header_readline_readline_h=no 5027 fi 5028 rm -f conftest.err conftest.$ac_ext 5029 fi 5030 echo "$as_me:5030: result: $ac_cv_header_readline_readline_h" >&5 5031 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6 5032 if test $ac_cv_header_readline_readline_h = yes; then 3075 5033 ac_mg_readline_header_found=1 3076 5034 else 3077 echo "$ac_t""no" 1>&6 3078 echo "configure: warning: Can't find GNU readline headers; configuring without \ 3079 GNU readline support" 1>&2 5035 { echo "$as_me:5035: WARNING: Can't find GNU readline headers; configuring without \ 5036 GNU readline support" >&5 5037 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \ 5038 GNU readline support" >&2;} 3080 5039 fi 3081 5040 3082 5041 if test -n "$ac_mg_readline_header_found"; then 3083 5042 # first check whether we can find the readline library itself 3084 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 3085 echo "configure:3086: checking for main in -lreadline" >&5 3086 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` 3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3088 echo $ac_n "(cached) $ac_c" 1>&6 3089 else 3090 ac_save_LIBS="$LIBS" 5043 echo "$as_me:5043: checking for main in -lreadline" >&5 5044 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 5045 if test "${ac_cv_lib_readline_main+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047 else 5048 ac_check_lib_save_LIBS=$LIBS 3091 5049 LIBS="-lreadline $LIBS" 3092 cat > conftest.$ac_ext <<EOF 3093 #line 3094 "configure" 3094 #include "confdefs.h" 3095 3096 int main() { 3097 main() 3098 ; return 0; } 3099 EOF 3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3101 rm -rf conftest* 3102 eval "ac_cv_lib_$ac_lib_var=yes" 3103 else 3104 echo "configure: failed program was:" >&5 3105 cat conftest.$ac_ext >&5 3106 rm -rf conftest* 3107 eval "ac_cv_lib_$ac_lib_var=no" 3108 fi 3109 rm -f conftest* 3110 LIBS="$ac_save_LIBS" 3111 3112 fi 3113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 5050 cat >conftest.$ac_ext <<_ACEOF 5051 #line 5051 "configure" 5052 #include "confdefs.h" 5053 5054 int 5055 main () 5056 { 5057 main (); 5058 ; 5059 return 0; 5060 } 5061 _ACEOF 5062 rm -f conftest.$ac_objext conftest$ac_exeext 5063 if { (eval echo "$as_me:5063: \"$ac_link\"") >&5 5064 (eval $ac_link) 2>&5 5065 ac_status=$? 5066 echo "$as_me:5066: \$? = $ac_status" >&5 5067 (exit $ac_status); } && 5068 { ac_try='test -s conftest$ac_exeext' 5069 { (eval echo "$as_me:5069: \"$ac_try\"") >&5 5070 (eval $ac_try) 2>&5 5071 ac_status=$? 5072 echo "$as_me:5072: \$? = $ac_status" >&5 5073 (exit $ac_status); }; }; then 5074 ac_cv_lib_readline_main=yes 5075 else 5076 echo "$as_me: failed program was:" >&5 5077 cat conftest.$ac_ext >&5 5078 ac_cv_lib_readline_main=no 5079 fi 5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5081 LIBS=$ac_check_lib_save_LIBS 5082 fi 5083 echo "$as_me:5083: result: $ac_cv_lib_readline_main" >&5 5084 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 5085 if test $ac_cv_lib_readline_main = yes; then 3115 5086 ac_mg_readline_lib_found=1 3116 cat >> 5087 cat >>confdefs.h <<\EOF 3117 5088 #define WITH_GNU_READLINE 1 3118 5089 EOF … … 3120 5091 LIBS="$LIBS -lreadline" 3121 5092 else 3122 echo "$ac_t""no" 1>&6 3123 echo "configure: warning: Can't find GNU readline library; configuring without \ 3124 GNU readline support" 1>&2 5093 { echo "$as_me:5093: WARNING: Can't find GNU readline library; configuring without \ 5094 GNU readline support" >&5 5095 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \ 5096 GNU readline support" >&2;} 3125 5097 fi 3126 5098 3127 5099 if test -n "$ac_mg_readline_lib_found"; then 3128 # on some systems, readline needs curses. It is difficult to 5100 # on some systems, readline needs curses. It is difficult to 3129 5101 # determine whether this is necessary on the current system, 3130 5102 # since other undefined symbols can be turned up by an … … 3132 5104 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses, 3133 5105 # we just bung it on and hope for the best. 3134 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 3135 echo "configure:3136: checking for main in -lcurses" >&5 3136 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'` 3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3138 echo $ac_n "(cached) $ac_c" 1>&6 3139 else 3140 ac_save_LIBS="$LIBS" 5106 echo "$as_me:5106: checking for main in -lcurses" >&5 5107 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6 5108 if test "${ac_cv_lib_curses_main+set}" = set; then 5109 echo $ECHO_N "(cached) $ECHO_C" >&6 5110 else 5111 ac_check_lib_save_LIBS=$LIBS 3141 5112 LIBS="-lcurses $LIBS" 3142 cat > conftest.$ac_ext <<EOF 3143 #line 3144 "configure" 3144 #include "confdefs.h" 3145 3146 int main() { 3147 main() 3148 ; return 0; } 3149 EOF 3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3151 rm -rf conftest* 3152 eval "ac_cv_lib_$ac_lib_var=yes" 3153 else 3154 echo "configure: failed program was:" >&5 3155 cat conftest.$ac_ext >&5 3156 rm -rf conftest* 3157 eval "ac_cv_lib_$ac_lib_var=no" 3158 fi 3159 rm -f conftest* 3160 LIBS="$ac_save_LIBS" 3161 3162 fi 3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3164 echo "$ac_t""yes" 1>&6 5113 cat >conftest.$ac_ext <<_ACEOF 5114 #line 5114 "configure" 5115 #include "confdefs.h" 5116 5117 int 5118 main () 5119 { 5120 main (); 5121 ; 5122 return 0; 5123 } 5124 _ACEOF 5125 rm -f conftest.$ac_objext conftest$ac_exeext 5126 if { (eval echo "$as_me:5126: \"$ac_link\"") >&5 5127 (eval $ac_link) 2>&5 5128 ac_status=$? 5129 echo "$as_me:5129: \$? = $ac_status" >&5 5130 (exit $ac_status); } && 5131 { ac_try='test -s conftest$ac_exeext' 5132 { (eval echo "$as_me:5132: \"$ac_try\"") >&5 5133 (eval $ac_try) 2>&5 5134 ac_status=$? 5135 echo "$as_me:5135: \$? = $ac_status" >&5 5136 (exit $ac_status); }; }; then 5137 ac_cv_lib_curses_main=yes 5138 else 5139 echo "$as_me: failed program was:" >&5 5140 cat conftest.$ac_ext >&5 5141 ac_cv_lib_curses_main=no 5142 fi 5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5144 LIBS=$ac_check_lib_save_LIBS 5145 fi 5146 echo "$as_me:5146: result: $ac_cv_lib_curses_main" >&5 5147 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6 5148 if test $ac_cv_lib_curses_main = yes; then 3165 5149 LIBS="$LIBS -lcurses" 3166 else3167 echo "$ac_t""no" 1>&63168 5150 fi 3169 5151 … … 3172 5154 fi 3173 5155 3174 3175 5156 # --------------------------------------------------------------------------- 3176 5157 if test "$ac_cv_func_alloca" = 'no'; then 3177 5158 LIBOBJS="$LIBOBJS xmalloc.o error.o" 3178 5159 fi 3179 3180 5160 3181 5161 # --------------------------------------------------------------------------- … … 3184 5164 if test "${enable_override_longlong+set}" = set; then 3185 5165 enableval="$enable_override_longlong" 3186 cat >> 5166 cat >>confdefs.h <<\EOF 3187 5167 #define DISABLE_LONG_LONG 1 3188 5168 EOF 3189 5169 3190 fi 3191 5170 fi; 3192 5171 3193 5172 # --------------------------------------------------------------------------- 3194 5173 3195 trap '' 1 2 15 3196 cat > confcache <<\EOF 5174 ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile" 5175 ac_config_commands="$ac_config_commands default" 5176 cat >confcache <<\_ACEOF 3197 5177 # This file is a shell script that caches the results of configure 3198 5178 # tests run on this system so they can be shared between configure 3199 # scripts and configure runs. It is not useful on other systems. 3200 # If it contains results you don't want to keep, you may remove or edit it. 5179 # scripts and configure runs, see configure's option --config-cache. 5180 # It is not useful on other systems. If it contains results you don't 5181 # want to keep, you may remove or edit it. 3201 5182 # 3202 # By default, configure uses ./config.cache as the cache file, 3203 # creating it if it does not exist already. You can give configure 3204 # the --cache-file=FILE option to use a different cache file; that is 3205 # what configure does when it calls configure scripts in 3206 # subdirectories, so they share the cache. 3207 # Giving --cache-file=/dev/null disables caching, for debugging configure. 3208 # config.status only pays attention to the cache file if you give it the 3209 # --recheck option to rerun configure. 5183 # config.status only pays attention to the cache file if you give it 5184 # the --recheck option to rerun configure. 3210 5185 # 3211 EOF 5186 # `ac_cv_env_foo' variables (set or unset) will be overriden when 5187 # loading this file, other *unset* `ac_cv_foo' will be assigned the 5188 # following values. 5189 5190 _ACEOF 5191 3212 5192 # The following way of writing the cache mishandles newlines in values, 3213 5193 # but we know of no workaround that is simple, portable, and efficient. … … 3215 5195 # Ultrix sh set writes to stderr and can't be redirected directly, 3216 5196 # and sets the high bit in the cache file unless we assign to the vars. 3217 (set) 2>&1 | 3218 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3219 *ac_space=\ *) 3220 # `set' does not quote correctly, so add quotes (double-quote substitution 3221 # turns \\\\ into \\, and sed turns \\ into \). 3222 sed -n \ 3223 -e "s/'/'\\\\''/g" \ 3224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3225 ;; 3226 *) 3227 # `set' quotes correctly as required by POSIX, so do not add quotes. 3228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3229 ;; 3230 esac >> confcache 3231 if cmp -s $cache_file confcache; then 3232 : 3233 else 5197 { 5198 (set) 2>&1 | 5199 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5200 *ac_space=\ *) 5201 # `set' does not quote correctly, so add quotes (double-quote 5202 # substitution turns \\\\ into \\, and sed turns \\ into \). 5203 sed -n \ 5204 "s/'/'\\\\''/g; 5205 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5206 ;; 5207 *) 5208 # `set' quotes correctly as required by POSIX, so do not add quotes. 5209 sed -n \ 5210 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5211 ;; 5212 esac; 5213 } | 5214 sed ' 5215 t clear 5216 : clear 5217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5218 t end 5219 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5220 : end' >>confcache 5221 if cmp -s $cache_file confcache; then :; else 3234 5222 if test -w $cache_file; then 3235 echo "updating cache $cache_file"3236 cat confcache > 5223 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5224 cat confcache >$cache_file 3237 5225 else 3238 5226 echo "not updating unwritable cache $cache_file" … … 3241 5229 rm -f confcache 3242 5230 3243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 153244 3245 5231 test "x$prefix" = xNONE && prefix=$ac_default_prefix 3246 5232 # Let make expand exec_prefix. 3247 5233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3248 5234 3249 # Any assignment to VPATH causes Sun make to only execute 3250 # the first set of double-colon rules, so remove it if not needed. 3251 # If there is a colon in the path, we need to keep it. 5235 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5237 # trailing colons and then remove the whole line if VPATH becomes empty 5238 # (actually we leave an empty line to preserve line numbers). 3252 5239 if test "x$srcdir" = x.; then 3253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3254 fi 3255 3256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5240 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5241 s/:*\$(srcdir):*/:/; 5242 s/:*\${srcdir}:*/:/; 5243 s/:*@srcdir@:*/:/; 5244 s/^\([^=]*=[ ]*\):*/\1/; 5245 s/:*$//; 5246 s/^[^=]*=[ ]*$//; 5247 }' 5248 fi 3257 5249 3258 5250 DEFS=-DHAVE_CONFIG_H 3259 5251 3260 # Without the "./", some shells look in PATH for config.status.3261 5252 : ${CONFIG_STATUS=./config.status} 3262 3263 echo creating $CONFIG_STATUS 3264 rm -f $CONFIG_STATUS 3265 cat > $CONFIG_STATUS <<EOF 3266 #! /bin/sh 5253 ac_clean_files_save=$ac_clean_files 5254 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5255 { echo "$as_me:5255: creating $CONFIG_STATUS" >&5 5256 echo "$as_me: creating $CONFIG_STATUS" >&6;} 5257 cat >$CONFIG_STATUS <<_ACEOF 5258 #! $SHELL 3267 5259 # Generated automatically by configure. 3268 5260 # Run this file to recreate the current configuration. 3269 # This directory was configured as follows, 3270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5261 # Compiler output produced by configure, useful for debugging 5262 # configure, is in config.log if it exists. 5263 5264 debug=false 5265 SHELL=\${CONFIG_SHELL-$SHELL} 5266 ac_cs_invocation="\$0 \$@" 5267 5268 _ACEOF 5269 5270 cat >>$CONFIG_STATUS <<\_ACEOF 5271 # Be Bourne compatible 5272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5273 emulate sh 5274 NULLCMD=: 5275 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5276 set -o posix 5277 fi 5278 5279 # Name of the executable. 5280 as_me=`echo "$0" |sed 's,.*[\\/],,'` 5281 5282 if expr a : '\(a\)' >/dev/null 2>&1; then 5283 as_expr=expr 5284 else 5285 as_expr=false 5286 fi 5287 5288 rm -f conf$$ conf$$.exe conf$$.file 5289 echo >conf$$.file 5290 if ln -s conf$$.file conf$$ 2>/dev/null; then 5291 # We could just check for DJGPP; but this test a) works b) is more generic 5292 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5293 if test -f conf$$.exe; then 5294 # Don't use ln at all; we don't have any links 5295 as_ln_s='cp -p' 5296 else 5297 as_ln_s='ln -s' 5298 fi 5299 elif ln conf$$.file conf$$ 2>/dev/null; then 5300 as_ln_s=ln 5301 else 5302 as_ln_s='cp -p' 5303 fi 5304 rm -f conf$$ conf$$.exe conf$$.file 5305 5306 as_executable_p="test -f" 5307 5308 # Support unset when possible. 5309 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5310 as_unset=unset 5311 else 5312 as_unset=false 5313 fi 5314 5315 # NLS nuisances. 5316 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5317 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5318 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5319 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5320 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5321 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5322 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5323 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5324 5325 # IFS 5326 # We need space, tab and new line, in precisely that order. 5327 as_nl=' 5328 ' 5329 IFS=" $as_nl" 5330 5331 # CDPATH. 5332 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5333 5334 exec 6>&1 5335 5336 _ACEOF 5337 5338 # Files that config.status was made for. 5339 if test -n "$ac_config_files"; then 5340 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5341 fi 5342 5343 if test -n "$ac_config_headers"; then 5344 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5345 fi 5346 5347 if test -n "$ac_config_links"; then 5348 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5349 fi 5350 5351 if test -n "$ac_config_commands"; then 5352 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5353 fi 5354 5355 cat >>$CONFIG_STATUS <<\EOF 5356 5357 ac_cs_usage="\ 5358 \`$as_me' instantiates files from templates according to the 5359 current configuration. 5360 5361 Usage: $0 [OPTIONS] [FILE]... 5362 5363 -h, --help print this help, then exit 5364 -V, --version print version number, then exit 5365 -d, --debug don't remove temporary files 5366 --recheck update $as_me by reconfiguring in the same conditions 5367 --file=FILE[:TEMPLATE] 5368 instantiate the configuration file FILE 5369 --header=FILE[:TEMPLATE] 5370 instantiate the configuration header FILE 5371 5372 Configuration files: 5373 $config_files 5374 5375 Configuration headers: 5376 $config_headers 5377 5378 Configuration commands: 5379 $config_commands 5380 5381 Report bugs to <[email protected]>." 5382 EOF 5383 5384 cat >>$CONFIG_STATUS <<EOF 5385 ac_cs_version="\\ 5386 config.status 5387 configured by $0, generated by GNU Autoconf 2.50, 5388 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5389 5390 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5391 Free Software Foundation, Inc. 5392 This config.status script is free software; the Free Software Foundation 5393 gives unlimited permission to copy, distribute and modify it." 5394 srcdir=$srcdir 5395 INSTALL="$INSTALL" 5396 EOF 5397 5398 cat >>$CONFIG_STATUS <<\EOF 5399 # If no file are specified by the user, then we need to provide default 5400 # value. By we need to know if files were specified by the user. 5401 ac_need_defaults=: 5402 while test $# != 0 5403 do 5404 case $1 in 5405 --*=*) 5406 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5407 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5408 shift 5409 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5410 shift 5411 ;; 5412 -*);; 5413 *) # This is not an option, so the user has probably given explicit 5414 # arguments. 5415 ac_need_defaults=false;; 5416 esac 5417 5418 case $1 in 5419 # Handling of the options. 5420 EOF 5421 cat >>$CONFIG_STATUS <<EOF 5422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5423 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5424 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5425 EOF 5426 cat >>$CONFIG_STATUS <<\EOF 5427 --version | --vers* | -V ) 5428 echo "$ac_cs_version"; exit 0 ;; 5429 --he | --h) 5430 # Conflict between --help and --header 5431 { { echo "$as_me:5431: error: ambiguous option: $1 5432 Try \`$0 --help' for more information." >&5 5433 echo "$as_me: error: ambiguous option: $1 5434 Try \`$0 --help' for more information." >&2;} 5435 { (exit 1); exit 1; }; };; 5436 --help | --hel | -h ) 5437 echo "$ac_cs_usage"; exit 0 ;; 5438 --debug | --d* | -d ) 5439 debug=: ;; 5440 --file | --fil | --fi | --f ) 5441 shift 5442 CONFIG_FILES="$CONFIG_FILES $1" 5443 ac_need_defaults=false;; 5444 --header | --heade | --head | --hea ) 5445 shift 5446 CONFIG_HEADERS="$CONFIG_HEADERS $1" 5447 ac_need_defaults=false;; 5448 5449 # Handling of arguments. 5450 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5451 'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;; 5452 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 5453 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 5454 'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;; 5455 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 5456 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5457 5458 # This is an error. 5459 -*) { { echo "$as_me:5459: error: unrecognized option: $1 5460 Try \`$0 --help' for more information." >&5 5461 echo "$as_me: error: unrecognized option: $1 5462 Try \`$0 --help' for more information." >&2;} 5463 { (exit 1); exit 1; }; } ;; 5464 *) { { echo "$as_me:5464: error: invalid argument: $1" >&5 5465 echo "$as_me: error: invalid argument: $1" >&2;} 5466 { (exit 1); exit 1; }; };; 5467 esac 5468 shift 5469 done 5470 5471 exec 5>>config.log 5472 cat >&5 << _ACEOF 5473 5474 ## ----------------------- ## 5475 ## Running config.status. ## 5476 ## ----------------------- ## 5477 5478 This file was extended by $as_me 2.50, executed with 5479 > $ac_cs_invocation 5480 on `(hostname || uname -n) 2>/dev/null | sed 1q` 5481 5482 _ACEOF 5483 EOF 5484 5485 cat >>$CONFIG_STATUS <<\EOF 5486 # If the user did not use the arguments to specify the items to instantiate, 5487 # then the envvar interface is used. Set only those that are not. 5488 # We use the long form for the default assignment because of an extremely 5489 # bizarre bug on SunOS 4.1.3. 5490 if $ac_need_defaults; then 5491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5494 fi 5495 5496 # Create a temporary directory, and hook for its removal unless debugging. 5497 $debug || 5498 { 5499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5500 trap '{ (exit $?); exit $?; }' 1 2 13 15 5501 } 5502 5503 # Create a (secure) tmp directory for tmp files. 5504 : ${TMPDIR=/tmp} 5505 { 5506 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5507 test -n "$tmp" && test -d "$tmp" 5508 } || 5509 { 5510 tmp=$TMPDIR/cs$$-$RANDOM 5511 (umask 077 && mkdir $tmp) 5512 } || 5513 { 5514 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5515 { (exit 1); exit 1; } 5516 } 5517 5518 EOF 5519 5520 cat >>$CONFIG_STATUS <<EOF 5521 3271 5522 # 3272 # $0 $ac_configure_args5523 # CONFIG_FILES section. 3273 5524 # 3274 # Compiler output produced by configure, useful for debugging 3275 # configure, is in ./config.log if it exists. 3276 3277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3278 for ac_option 3279 do 3280 case "\$ac_option" in 3281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3285 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3286 exit 0 ;; 3287 -help | --help | --hel | --he | --h) 3288 echo "\$ac_cs_usage"; exit 0 ;; 3289 *) echo "\$ac_cs_usage"; exit 1 ;; 5525 5526 # No need to generate the scripts if there are no CONFIG_FILES. 5527 # This happens for instance when ./config.status config.h 5528 if test -n "\$CONFIG_FILES"; then 5529 # Protect against being on the right side of a sed subst in config.status. 5530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5532 s,@SHELL@,$SHELL,;t t 5533 s,@exec_prefix@,$exec_prefix,;t t 5534 s,@prefix@,$prefix,;t t 5535 s,@program_transform_name@,$program_transform_name,;t t 5536 s,@bindir@,$bindir,;t t 5537 s,@sbindir@,$sbindir,;t t 5538 s,@libexecdir@,$libexecdir,;t t 5539 s,@datadir@,$datadir,;t t 5540 s,@sysconfdir@,$sysconfdir,;t t 5541 s,@sharedstatedir@,$sharedstatedir,;t t 5542 s,@localstatedir@,$localstatedir,;t t 5543 s,@libdir@,$libdir,;t t 5544 s,@includedir@,$includedir,;t t 5545 s,@oldincludedir@,$oldincludedir,;t t 5546 s,@infodir@,$infodir,;t t 5547 s,@mandir@,$mandir,;t t 5548 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5549 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5550 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5551 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5552 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5553 s,@ECHO_C@,$ECHO_C,;t t 5554 s,@ECHO_N@,$ECHO_N,;t t 5555 s,@ECHO_T@,$ECHO_T,;t t 5556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5557 s,@DEFS@,$DEFS,;t t 5558 s,@LIBS@,$LIBS,;t t 5559 s,@PACKAGE@,$PACKAGE,;t t 5560 s,@VERSION@,$VERSION,;t t 5561 s,@CXX@,$CXX,;t t 5562 s,@CXXFLAGS@,$CXXFLAGS,;t t 5563 s,@LDFLAGS@,$LDFLAGS,;t t 5564 s,@CPPFLAGS@,$CPPFLAGS,;t t 5565 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 5566 s,@EXEEXT@,$EXEEXT,;t t 5567 s,@OBJEXT@,$OBJEXT,;t t 5568 s,@AWK@,$AWK,;t t 5569 s,@YACC@,$YACC,;t t 5570 s,@CC@,$CC,;t t 5571 s,@CFLAGS@,$CFLAGS,;t t 5572 s,@ac_ct_CC@,$ac_ct_CC,;t t 5573 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5574 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5575 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5576 s,@LN_S@,$LN_S,;t t 5577 s,@SET_MAKE@,$SET_MAKE,;t t 5578 s,@RANLIB@,$RANLIB,;t t 5579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5580 s,@CPP@,$CPP,;t t 5581 s,@U@,$U,;t t 5582 s,@ANSI2KNR@,$ANSI2KNR,;t t 5583 s,@ALLOCA@,$ALLOCA,;t t 5584 s,@LIBOBJS@,$LIBOBJS,;t t 5585 CEOF 5586 5587 EOF 5588 5589 cat >>$CONFIG_STATUS <<\EOF 5590 # Split the substitutions into bite-sized pieces for seds with 5591 # small command number limits, like on Digital OSF/1 and HP-UX. 5592 ac_max_sed_lines=48 5593 ac_sed_frag=1 # Number of current file. 5594 ac_beg=1 # First line for current file. 5595 ac_end=$ac_max_sed_lines # Line after last line for current file. 5596 ac_more_lines=: 5597 ac_sed_cmds= 5598 while $ac_more_lines; do 5599 if test $ac_beg -gt 1; then 5600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5601 else 5602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5603 fi 5604 if test ! -s $tmp/subs.frag; then 5605 ac_more_lines=false 5606 else 5607 # The purpose of the label and of the branching condition is to 5608 # speed up the sed processing (if there are no `@' at all, there 5609 # is no need to browse any of the substitutions). 5610 # These are the two extra sed commands mentioned above. 5611 (echo ':t 5612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5613 if test -z "$ac_sed_cmds"; then 5614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5615 else 5616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5617 fi 5618 ac_sed_frag=`expr $ac_sed_frag + 1` 5619 ac_beg=$ac_end 5620 ac_end=`expr $ac_end + $ac_max_sed_lines` 5621 fi 5622 done 5623 if test -z "$ac_sed_cmds"; then 5624 ac_sed_cmds=cat 5625 fi 5626 fi # test -n "$CONFIG_FILES" 5627 5628 EOF 5629 cat >>$CONFIG_STATUS <<\EOF 5630 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5632 case $ac_file in 5633 - | *:- | *:-:* ) # input from stdin 5634 cat >$tmp/stdin 5635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5639 * ) ac_file_in=$ac_file.in ;; 3290 5640 esac 3291 done 3292 3293 ac_given_srcdir=$srcdir 3294 ac_given_INSTALL="$INSTALL" 3295 3296 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile 3297 jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3298 EOF 3299 cat >> $CONFIG_STATUS <<EOF 3300 3301 # Protect against being on the right side of a sed subst in config.status. 3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3304 $ac_vpsub 3305 $extrasub 3306 s%@SHELL@%$SHELL%g 3307 s%@CFLAGS@%$CFLAGS%g 3308 s%@CPPFLAGS@%$CPPFLAGS%g 3309 s%@CXXFLAGS@%$CXXFLAGS%g 3310 s%@FFLAGS@%$FFLAGS%g 3311 s%@DEFS@%$DEFS%g 3312 s%@LDFLAGS@%$LDFLAGS%g 3313 s%@LIBS@%$LIBS%g 3314 s%@exec_prefix@%$exec_prefix%g 3315 s%@prefix@%$prefix%g 3316 s%@program_transform_name@%$program_transform_name%g 3317 s%@bindir@%$bindir%g 3318 s%@sbindir@%$sbindir%g 3319 s%@libexecdir@%$libexecdir%g 3320 s%@datadir@%$datadir%g 3321 s%@sysconfdir@%$sysconfdir%g 3322 s%@sharedstatedir@%$sharedstatedir%g 3323 s%@localstatedir@%$localstatedir%g 3324 s%@libdir@%$libdir%g 3325 s%@includedir@%$includedir%g 3326 s%@oldincludedir@%$oldincludedir%g 3327 s%@infodir@%$infodir%g 3328 s%@mandir@%$mandir%g 3329 s%@PACKAGE@%$PACKAGE%g 3330 s%@VERSION@%$VERSION%g 3331 s%@CXX@%$CXX%g 3332 s%@AWK@%$AWK%g 3333 s%@YACC@%$YACC%g 3334 s%@CC@%$CC%g 3335 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3336 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3337 s%@INSTALL_DATA@%$INSTALL_DATA%g 3338 s%@LN_S@%$LN_S%g 3339 s%@SET_MAKE@%$SET_MAKE%g 3340 s%@RANLIB@%$RANLIB%g 3341 s%@CPP@%$CPP%g 3342 s%@U@%$U%g 3343 s%@ANSI2KNR@%$ANSI2KNR%g 3344 s%@ALLOCA@%$ALLOCA%g 3345 s%@LIBOBJS@%$LIBOBJS%g 3346 3347 CEOF 3348 EOF 3349 3350 cat >> $CONFIG_STATUS <<\EOF 3351 3352 # Split the substitutions into bite-sized pieces for seds with 3353 # small command number limits, like on Digital OSF/1 and HP-UX. 3354 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3355 ac_file=1 # Number of current file. 3356 ac_beg=1 # First line for current file. 3357 ac_end=$ac_max_sed_cmds # Line after last line for current file. 3358 ac_more_lines=: 3359 ac_sed_cmds="" 3360 while $ac_more_lines; do 3361 if test $ac_beg -gt 1; then 3362 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3363 else 3364 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3365 fi 3366 if test ! -s conftest.s$ac_file; then 3367 ac_more_lines=false 3368 rm -f conftest.s$ac_file 3369 else 3370 if test -z "$ac_sed_cmds"; then 3371 ac_sed_cmds="sed -f conftest.s$ac_file" 3372 else 3373 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3374 fi 3375 ac_file=`expr $ac_file + 1` 3376 ac_beg=$ac_end 3377 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3378 fi 3379 done 3380 if test -z "$ac_sed_cmds"; then 3381 ac_sed_cmds=cat 3382 fi 3383 EOF 3384 3385 cat >> $CONFIG_STATUS <<EOF 3386 3387 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile 3388 jni/Makefile java/org/greenstone/mgpp/Makefile"} 3389 EOF 3390 cat >> $CONFIG_STATUS <<\EOF 3391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3393 case "$ac_file" in 3394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3396 *) ac_file_in="${ac_file}.in" ;; 5641 5642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5643 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5644 X"$ac_file" : 'X\(//\)[^/]' \| \ 5645 X"$ac_file" : 'X\(//\)$' \| \ 5646 X"$ac_file" : 'X\(/\)' \| \ 5647 . : '\(.\)' 2>/dev/null || 5648 echo X"$ac_file" | 5649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5650 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5651 /^X\(\/\/\)$/{ s//\1/; q; } 5652 /^X\(\/\).*/{ s//\1/; q; } 5653 s/.*/./; q'` 5654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5655 { case "$ac_dir" in 5656 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5657 *) as_incr_dir=.;; 5658 esac 5659 as_dummy="$ac_dir" 5660 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5661 case $as_mkdir_dir in 5662 # Skip DOS drivespec 5663 ?:) as_incr_dir=$as_mkdir_dir ;; 5664 *) 5665 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5666 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5667 ;; 3397 5668 esac 3398 3399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3400 3401 # Remove last slash and all that follows it. Not all systems have dirname. 3402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3404 # The file is in a subdirectory. 3405 test ! -d "$ac_dir" && mkdir "$ac_dir" 3406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5669 done; } 5670 5671 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 3407 5672 # A "../" for each directory in $ac_dir_suffix. 3408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`5673 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 3409 5674 else 3410 5675 ac_dir_suffix= ac_dots= 3411 5676 fi 3412 5677 3413 case "$ac_given_srcdir" in 3414 .) srcdir=. 3415 if test -z "$ac_dots"; then top_srcdir=. 3416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5678 case $srcdir in 5679 .) ac_srcdir=. 5680 if test -z "$ac_dots"; then 5681 ac_top_srcdir=. 5682 else 5683 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5684 fi ;; 5685 [\\/]* | ?:[\\/]* ) 5686 ac_srcdir=$srcdir$ac_dir_suffix; 5687 ac_top_srcdir=$srcdir ;; 3418 5688 *) # Relative path. 3419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"3420 top_srcdir="$ac_dots$ac_given_srcdir";;5689 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5690 ac_top_srcdir=$ac_dots$srcdir ;; 3421 5691 esac 3422 5692 3423 case "$ac_given_INSTALL"in3424 [ /$]*) INSTALL="$ac_given_INSTALL";;3425 *) INSTALL="$ac_dots$ac_given_INSTALL";;5693 case $INSTALL in 5694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5695 *) ac_INSTALL=$ac_dots$INSTALL ;; 3426 5696 esac 3427 5697 3428 echo creating "$ac_file" 3429 rm -f "$ac_file" 3430 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3431 case "$ac_file" in 3432 *Makefile*) ac_comsub="1i\\ 3433 # $configure_input" ;; 3434 *) ac_comsub= ;; 3435 esac 3436 3437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3438 sed -e "$ac_comsub 3439 s%@configure_input@%$configure_input%g 3440 s%@srcdir@%$srcdir%g 3441 s%@top_srcdir@%$top_srcdir%g 3442 s%@INSTALL@%$INSTALL%g 3443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3444 fi; done 3445 rm -f conftest.s* 5698 if test x"$ac_file" != x-; then 5699 { echo "$as_me:5699: creating $ac_file" >&5 5700 echo "$as_me: creating $ac_file" >&6;} 5701 rm -f "$ac_file" 5702 fi 5703 # Let's still pretend it is `configure' which instantiates (i.e., don't 5704 # use $as_me), people would be surprised to read: 5705 # /* config.h. Generated automatically by config.status. */ 5706 configure_input="Generated automatically from `echo $ac_file_in | 5707 sed 's,.*/,,'` by configure." 5708 5709 # First look for the input files in the build tree, otherwise in the 5710 # src tree. 5711 ac_file_inputs=`IFS=: 5712 for f in $ac_file_in; do 5713 case $f in 5714 -) echo $tmp/stdin ;; 5715 [\\/$]*) 5716 # Absolute (can't be DOS-style, as IFS=:) 5717 test -f "$f" || { { echo "$as_me:5717: error: cannot find input file: $f" >&5 5718 echo "$as_me: error: cannot find input file: $f" >&2;} 5719 { (exit 1); exit 1; }; } 5720 echo $f;; 5721 *) # Relative 5722 if test -f "$f"; then 5723 # Build tree 5724 echo $f 5725 elif test -f "$srcdir/$f"; then 5726 # Source tree 5727 echo $srcdir/$f 5728 else 5729 # /dev/null tree 5730 { { echo "$as_me:5730: error: cannot find input file: $f" >&5 5731 echo "$as_me: error: cannot find input file: $f" >&2;} 5732 { (exit 1); exit 1; }; } 5733 fi;; 5734 esac 5735 done` || { (exit 1); exit 1; } 5736 EOF 5737 cat >>$CONFIG_STATUS <<EOF 5738 sed "$ac_vpsub 5739 $extrasub 5740 EOF 5741 cat >>$CONFIG_STATUS <<\EOF 5742 :t 5743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5744 s,@configure_input@,$configure_input,;t t 5745 s,@srcdir@,$ac_srcdir,;t t 5746 s,@top_srcdir@,$ac_top_srcdir,;t t 5747 s,@INSTALL@,$ac_INSTALL,;t t 5748 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5749 rm -f $tmp/stdin 5750 if test x"$ac_file" != x-; then 5751 mv $tmp/out $ac_file 5752 else 5753 cat $tmp/out 5754 rm -f $tmp/out 5755 fi 5756 5757 done 5758 EOF 5759 cat >>$CONFIG_STATUS <<\EOF 5760 5761 # 5762 # CONFIG_HEADER section. 5763 # 3446 5764 3447 5765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 3449 5767 # 3450 5768 # ac_d sets the value in "#define NAME VALUE" lines. 3451 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][ ]*\)'3452 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'3453 ac_dC=' \3'3454 ac_dD=' %g'3455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".3456 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'3457 ac_uB=' \([ ]\)%\1#\2define\3'5769 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5770 ac_dB='[ ].*$,\1#\2' 5771 ac_dC=' ' 5772 ac_dD=',;t' 5773 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5774 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5775 ac_uB='$,\1#\2define\3' 3458 5776 ac_uC=' ' 3459 ac_uD='\4%g' 3460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3461 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3462 ac_eB='$%\1#\2define\3' 3463 ac_eC=' ' 3464 ac_eD='%g' 3465 3466 if test "${CONFIG_HEADERS+set}" != set; then 3467 EOF 3468 cat >> $CONFIG_STATUS <<EOF 3469 CONFIG_HEADERS="config.h" 3470 EOF 3471 cat >> $CONFIG_STATUS <<\EOF 3472 fi 3473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5777 ac_uD=',;t' 5778 5779 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 3474 5780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3475 case "$ac_file" in 3476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3478 *) ac_file_in="${ac_file}.in" ;; 5781 case $ac_file in 5782 - | *:- | *:-:* ) # input from stdin 5783 cat >$tmp/stdin 5784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5788 * ) ac_file_in=$ac_file.in ;; 3479 5789 esac 3480 5790 3481 echo creating $ac_file 3482 3483 rm -f conftest.frag conftest.in conftest.out 3484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3485 cat $ac_file_inputs > conftest.in 3486 3487 EOF 3488 3489 # Transform confdefs.h into a sed script conftest.vals that substitutes 3490 # the proper values into config.h.in to produce config.h. And first: 3491 # Protect against being on the right side of a sed subst in config.status. 3492 # Protect against being in an unquoted here document in config.status. 3493 rm -f conftest.vals 3494 cat > conftest.hdr <<\EOF 3495 s/[\\&%]/\\&/g 3496 s%[\\$`]%\\&%g 3497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3498 s%ac_d%ac_u%gp 3499 s%ac_u%ac_e%gp 3500 EOF 3501 sed -n -f conftest.hdr confdefs.h > conftest.vals 3502 rm -f conftest.hdr 5791 test x"$ac_file" != x- && { echo "$as_me:5791: creating $ac_file" >&5 5792 echo "$as_me: creating $ac_file" >&6;} 5793 5794 # First look for the input files in the build tree, otherwise in the 5795 # src tree. 5796 ac_file_inputs=`IFS=: 5797 for f in $ac_file_in; do 5798 case $f in 5799 -) echo $tmp/stdin ;; 5800 [\\/$]*) 5801 # Absolute (can't be DOS-style, as IFS=:) 5802 test -f "$f" || { { echo "$as_me:5802: error: cannot find input file: $f" >&5 5803 echo "$as_me: error: cannot find input file: $f" >&2;} 5804 { (exit 1); exit 1; }; } 5805 echo $f;; 5806 *) # Relative 5807 if test -f "$f"; then 5808 # Build tree 5809 echo $f 5810 elif test -f "$srcdir/$f"; then 5811 # Source tree 5812 echo $srcdir/$f 5813 else 5814 # /dev/null tree 5815 { { echo "$as_me:5815: error: cannot find input file: $f" >&5 5816 echo "$as_me: error: cannot find input file: $f" >&2;} 5817 { (exit 1); exit 1; }; } 5818 fi;; 5819 esac 5820 done` || { (exit 1); exit 1; } 5821 # Remove the trailing spaces. 5822 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5823 5824 EOF 5825 5826 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5827 # `conftest.undefs', that substitutes the proper values into 5828 # config.h.in to produce config.h. The first handles `#define' 5829 # templates, and the second `#undef' templates. 5830 # And first: Protect against being on the right side of a sed subst in 5831 # config.status. Protect against being in an unquoted here document 5832 # in config.status. 5833 rm -f conftest.defines conftest.undefs 5834 # Using a here document instead of a string reduces the quoting nightmare. 5835 # Putting comments in sed scripts is not portable. 5836 # 5837 # `end' is used to avoid that the second main sed command (meant for 5838 # 0-ary CPP macros) applies to n-ary macro definitions. 5839 # See the Autoconf documentation for `clear'. 5840 cat >confdef2sed.sed <<\EOF 5841 s/[\\&,]/\\&/g 5842 s,[\\$`],\\&,g 5843 t clear 5844 : clear 5845 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5846 t end 5847 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5848 : end 5849 EOF 5850 # If some macros were called several times there might be several times 5851 # the same #defines, which is useless. Nevertheless, we may not want to 5852 # sort them, since we want the *last* AC-DEFINE to be honored. 5853 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5854 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5855 rm -f confdef2sed.sed 3503 5856 3504 5857 # This sed command replaces #undef with comments. This is necessary, for 3505 5858 # example, in the case of _POSIX_SOURCE, which is predefined and required 3506 5859 # on some systems where configure will not decide to define it. 3507 cat >> conftest.vals <<\EOF 3508 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3509 EOF 3510 3511 # Break up conftest.vals because some shells have a limit on 3512 # the size of here documents, and old seds have small limits too. 3513 5860 cat >>conftest.undefs <<\EOF 5861 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5862 EOF 5863 5864 # Break up conftest.defines because some shells have a limit on the size 5865 # of here documents, and old seds have small limits too (100 cmds). 5866 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5867 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5868 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5869 echo ' :' >>$CONFIG_STATUS 3514 5870 rm -f conftest.tail 3515 while :5871 while grep . conftest.defines >/dev/null 3516 5872 do 3517 ac_lines=`grep -c . conftest.vals` 3518 # grep -c gives empty output for an empty file on some AIX systems. 3519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3520 # Write a limited-size here document to conftest.frag. 3521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5873 # Write a limited-size here document to $tmp/defines.sed. 5874 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5875 # Speed up: don't consider the non `#define' lines. 5876 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5877 # Work around the forget-to-reset-the-flag bug. 5878 echo 't clr' >>$CONFIG_STATUS 5879 echo ': clr' >>$CONFIG_STATUS 5880 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3523 5881 echo 'CEOF 3524 sed -f conftest.frag conftest.in > conftest.out3525 rm -f conftest.in3526 mv conftest.out conftest.in3527 ' >> 3528 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail3529 rm -f conftest. vals3530 mv conftest.tail conftest. vals5882 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5883 rm -f $tmp/in 5884 mv $tmp/out $tmp/in 5885 ' >>$CONFIG_STATUS 5886 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5887 rm -f conftest.defines 5888 mv conftest.tail conftest.defines 3531 5889 done 3532 rm -f conftest.vals 3533 3534 cat >> $CONFIG_STATUS <<\EOF 3535 rm -f conftest.frag conftest.h 3536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3537 cat conftest.in >> conftest.h 3538 rm -f conftest.in 3539 if cmp -s $ac_file conftest.h 2>/dev/null; then 3540 echo "$ac_file is unchanged" 3541 rm -f conftest.h 5890 rm -f conftest.defines 5891 echo ' fi # egrep' >>$CONFIG_STATUS 5892 echo >>$CONFIG_STATUS 5893 5894 # Break up conftest.undefs because some shells have a limit on the size 5895 # of here documents, and old seds have small limits too (100 cmds). 5896 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5897 rm -f conftest.tail 5898 while grep . conftest.undefs >/dev/null 5899 do 5900 # Write a limited-size here document to $tmp/undefs.sed. 5901 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5902 # Speed up: don't consider the non `#undef' 5903 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5904 # Work around the forget-to-reset-the-flag bug. 5905 echo 't clr' >>$CONFIG_STATUS 5906 echo ': clr' >>$CONFIG_STATUS 5907 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5908 echo 'CEOF 5909 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5910 rm -f $tmp/in 5911 mv $tmp/out $tmp/in 5912 ' >>$CONFIG_STATUS 5913 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5914 rm -f conftest.undefs 5915 mv conftest.tail conftest.undefs 5916 done 5917 rm -f conftest.undefs 5918 5919 cat >>$CONFIG_STATUS <<\EOF 5920 # Let's still pretend it is `configure' which instantiates (i.e., don't 5921 # use $as_me), people would be surprised to read: 5922 # /* config.h. Generated automatically by config.status. */ 5923 if test x"$ac_file" = x-; then 5924 echo "/* Generated automatically by configure. */" >$tmp/config.h 3542 5925 else 3543 # Remove last slash and all that follows it. Not all systems have dirname. 3544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5926 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5927 fi 5928 cat $tmp/in >>$tmp/config.h 5929 rm -f $tmp/in 5930 if test x"$ac_file" != x-; then 5931 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5932 { echo "$as_me:5932: $ac_file is unchanged" >&5 5933 echo "$as_me: $ac_file is unchanged" >&6;} 5934 else 5935 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5936 X"$ac_file" : 'X\(//\)[^/]' \| \ 5937 X"$ac_file" : 'X\(//\)$' \| \ 5938 X"$ac_file" : 'X\(/\)' \| \ 5939 . : '\(.\)' 2>/dev/null || 5940 echo X"$ac_file" | 5941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5942 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5943 /^X\(\/\/\)$/{ s//\1/; q; } 5944 /^X\(\/\).*/{ s//\1/; q; } 5945 s/.*/./; q'` 3545 5946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3546 # The file is in a subdirectory. 3547 test ! -d "$ac_dir" && mkdir "$ac_dir" 5947 { case "$ac_dir" in 5948 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5949 *) as_incr_dir=.;; 5950 esac 5951 as_dummy="$ac_dir" 5952 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5953 case $as_mkdir_dir in 5954 # Skip DOS drivespec 5955 ?:) as_incr_dir=$as_mkdir_dir ;; 5956 *) 5957 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5958 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5959 ;; 5960 esac 5961 done; } 5962 5963 fi 5964 rm -f $ac_file 5965 mv $tmp/config.h $ac_file 3548 5966 fi 3549 rm -f $ac_file 3550 mv conftest.h $ac_file 5967 else 5968 cat $tmp/config.h 5969 rm -f $tmp/config.h 3551 5970 fi 3552 fi; done 3553 3554 EOF 3555 cat >> $CONFIG_STATUS <<EOF 3556 3557 EOF 3558 cat >> $CONFIG_STATUS <<\EOF 3559 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3560 exit 0 5971 done 5972 EOF 5973 cat >>$CONFIG_STATUS <<\EOF 5974 5975 # 5976 # CONFIG_COMMANDS section. 5977 # 5978 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5979 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5980 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5981 5982 case $ac_dest in 5983 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5984 esac 5985 done 5986 EOF 5987 5988 cat >>$CONFIG_STATUS <<\EOF 5989 5990 { (exit 0); exit 0; } 3561 5991 EOF 3562 5992 chmod +x $CONFIG_STATUS 3563 rm -fr confdefs* $ac_clean_files 3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3565 5993 ac_clean_files=$ac_clean_files_save 5994 5995 # configure is writing to config.log, and then calls config.status. 5996 # config.status does its own redirection, appending to config.log. 5997 # Unfortunately, on DOS this fails, as config.log is still kept open 5998 # by configure, so config.status won't be able to write to it; its 5999 # output is simply discarded. So we exec the FD to /dev/null, 6000 # effectively closing config.log, so it can be properly (re)opened and 6001 # appended to by config.status. When coming back to configure, we 6002 # need to make the FD available again. 6003 if test "$no_create" != yes; then 6004 ac_cs_success=: 6005 exec 5>/dev/null 6006 $SHELL $CONFIG_STATUS || ac_cs_success=false 6007 exec 5>>config.log 6008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6009 # would make configure fail if this is the last instruction. 6010 $ac_cs_success || { (exit 1); exit 1; } 6011 fi 6012 -
trunk/indexers/mgpp/configure.in
r8059 r8063 79 79 80 80 dnl see if gettext is in libc. (try the textdomain() function). 81 AC_CHECK_FUNC( textdomain, AC_DEFINE(ENABLE_NLS ,1) )81 AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) ) 82 82 83 83 # *** Custom checking (based on GNU tar configure.in) *** -
trunk/mgpp/configure
r8059 r8063 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3 # Generated by Autoconf 2.50. 6 4 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6 # Free Software Foundation, Inc. 7 7 # This configure script is free software; the Free Software Foundation 8 8 # gives unlimited permission to copy, distribute and modify it. 9 9 10 # Defaults: 11 ac_help= 10 # Be Bourne compatible 11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12 emulate sh 13 NULLCMD=: 14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 set -o posix 16 fi 17 18 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 20 21 if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23 else 24 as_expr=false 25 fi 26 27 rm -f conf$$ conf$$.exe conf$$.file 28 echo >conf$$.file 29 if ln -s conf$$.file conf$$ 2>/dev/null; then 30 # We could just check for DJGPP; but this test a) works b) is more generic 31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 32 if test -f conf$$.exe; then 33 # Don't use ln at all; we don't have any links 34 as_ln_s='cp -p' 35 else 36 as_ln_s='ln -s' 37 fi 38 elif ln conf$$.file conf$$ 2>/dev/null; then 39 as_ln_s=ln 40 else 41 as_ln_s='cp -p' 42 fi 43 rm -f conf$$ conf$$.exe conf$$.file 44 45 as_executable_p="test -f" 46 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; } 63 64 # IFS 65 # We need space, tab and new line, in precisely that order. 66 as_nl=' 67 ' 68 IFS=" $as_nl" 69 70 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 72 73 # Name of the host. 74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 75 # so uname gets run too. 76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 77 78 exec 6>&1 79 80 # 81 # Initializations. 82 # 12 83 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --with-dmalloc use dmalloc, as in 16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" 17 ac_help="$ac_help 18 --with-regex use older regex in lieu of GNU rx for matching" 19 ac_help="$ac_help 20 --with-gnu-readline compile with GNU readline support" 21 ac_help="$ac_help 22 --enable-override-longlong 23 overide use of long long with GCC" 84 cross_compiling=no 85 subdirs= 86 MFLAGS= MAKEFLAGS= 87 SHELL=${CONFIG_SHELL-/bin/sh} 88 89 # Maximum number of lines to put in a shell here document. 90 # This variable seems obsolete. It should probably be removed, and 91 # only ac_max_sed_lines should be used. 92 : ${ac_max_here_lines=38} 93 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" 103 104 ac_unique_file="text/MGQuery.cpp" 105 # Factoring default headers for most tests. 106 ac_includes_default="\ 107 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 110 #if STDC_HEADERS 111 # include <stdlib.h> 112 # include <stddef.h> 113 #else 114 # if HAVE_STDLIB_H 115 # include <stdlib.h> 116 # endif 117 #endif 118 #if HAVE_STRING_H 119 # if !STDC_HEADERS && HAVE_MEMORY_H 120 # include <memory.h> 121 # endif 122 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 127 #endif 128 #if HAVE_INTTYPES_H 129 # include <inttypes.h> 130 #endif 131 #if HAVE_UNISTD_H 132 # include <unistd.h> 133 #endif" 24 134 25 135 # Initialize some variables set by options. 136 ac_init_help= 137 ac_init_version=false 26 138 # The variables have the same names as the options, with 27 139 # dashes changed to underlines. 28 build=NONE 29 cache_file=./config.cache 140 cache_file=/dev/null 30 141 exec_prefix=NONE 31 host=NONE32 142 no_create= 33 nonopt=NONE34 143 no_recursion= 35 144 prefix=NONE … … 40 149 site= 41 150 srcdir= 42 target=NONE43 151 verbose= 44 152 x_includes=NONE 45 153 x_libraries=NONE 154 155 # Installation directory options. 156 # These are left unexpanded so users can "make install exec_prefix=/foo" 157 # and all the variables that are supposed to be based on exec_prefix 158 # by default will actually change. 159 # Use braces instead of parens because sh, perl, etc. also accept them. 46 160 bindir='${exec_prefix}/bin' 47 161 sbindir='${exec_prefix}/sbin' … … 57 171 mandir='${prefix}/man' 58 172 59 # I nitialize some other variables.60 subdirs=61 MFLAGS= MAKEFLAGS=62 SHELL=${CONFIG_SHELL-/bin/sh} 63 # Maximum number of lines to put in a shell here document. 64 ac_max_here_lines=12 173 # Identity of this package. 174 PACKAGE_NAME= 175 PACKAGE_TARNAME= 176 PACKAGE_VERSION= 177 PACKAGE_STRING= 178 PACKAGE_BUGREPORT= 65 179 66 180 ac_prev= 67 181 for ac_option 68 182 do 69 70 183 # If the previous option needs an argument, assign it. 71 184 if test -n "$ac_prev"; then … … 75 188 fi 76 189 77 case "$ac_option" in 78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 79 *) ac_optarg= ;; 80 esac 190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 81 191 82 192 # Accept the important Cygnus configure options, so we can diagnose typos. 83 193 84 case "$ac_option"in194 case $ac_option in 85 195 86 196 -bindir | --bindir | --bindi | --bind | --bin | --bi) 87 197 ac_prev=bindir ;; 88 198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 89 bindir= "$ac_optarg";;199 bindir=$ac_optarg ;; 90 200 91 201 -build | --build | --buil | --bui | --bu) 92 ac_prev=build ;;202 ac_prev=build_alias ;; 93 203 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 94 build ="$ac_optarg";;204 build_alias=$ac_optarg ;; 95 205 96 206 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 99 209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 100 210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 101 cache_file="$ac_optarg" ;; 211 cache_file=$ac_optarg ;; 212 213 --config-cache | -C) 214 cache_file=config.cache ;; 102 215 103 216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 105 218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 106 219 | --da=*) 107 datadir= "$ac_optarg";;220 datadir=$ac_optarg ;; 108 221 109 222 -disable-* | --disable-*) 110 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 111 224 # Reject names that are not valid shell variable names. 112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then113 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }114 fi115 ac_feature=`echo $ac_feature | sed 's/-/_/g'`116 eval "enable_$ {ac_feature}=no" ;;225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 227 { (exit 1); exit 1; }; } 228 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 229 eval "enable_$ac_feature=no" ;; 117 230 118 231 -enable-* | --enable-*) 119 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 120 233 # Reject names that are not valid shell variable names. 121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then122 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }123 fi124 ac_feature=`echo $ac_feature | sed 's/-/_/g'`125 case "$ac_option"in126 *=*) ;;234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 236 { (exit 1); exit 1; }; } 237 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 238 case $ac_option in 239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 127 240 *) ac_optarg=yes ;; 128 241 esac 129 eval "enable_$ {ac_feature}='$ac_optarg'" ;;242 eval "enable_$ac_feature='$ac_optarg'" ;; 130 243 131 244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 136 249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 137 250 | --exec=* | --exe=* | --ex=*) 138 exec_prefix= "$ac_optarg";;251 exec_prefix=$ac_optarg ;; 139 252 140 253 -gas | --gas | --ga | --g) … … 142 255 with_gas=yes ;; 143 256 144 -help | --help | --hel | --he) 145 # Omit some internal or obsolete options to make the list less imposing. 146 # This message is too long to be a string in the A/UX 3.1 sh. 147 cat << EOF 148 Usage: configure [options] [host] 149 Options: [defaults in brackets after descriptions] 150 Configuration: 151 --cache-file=FILE cache test results in FILE 152 --help print this message 153 --no-create do not create output files 154 --quiet, --silent do not print \`checking...' messages 155 --version print the version of autoconf that created configure 156 Directory and file names: 157 --prefix=PREFIX install architecture-independent files in PREFIX 158 [$ac_default_prefix] 159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 160 [same as prefix] 161 --bindir=DIR user executables in DIR [EPREFIX/bin] 162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 164 --datadir=DIR read-only architecture-independent data in DIR 165 [PREFIX/share] 166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 167 --sharedstatedir=DIR modifiable architecture-independent data in DIR 168 [PREFIX/com] 169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 170 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 171 --includedir=DIR C header files in DIR [PREFIX/include] 172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 173 --infodir=DIR info documentation in DIR [PREFIX/info] 174 --mandir=DIR man documentation in DIR [PREFIX/man] 175 --srcdir=DIR find the sources in DIR [configure dir or ..] 176 --program-prefix=PREFIX prepend PREFIX to installed program names 177 --program-suffix=SUFFIX append SUFFIX to installed program names 178 --program-transform-name=PROGRAM 179 run sed PROGRAM on installed program names 180 EOF 181 cat << EOF 182 Host type: 183 --build=BUILD configure for building on BUILD [BUILD=HOST] 184 --host=HOST configure for HOST [guessed] 185 --target=TARGET configure for TARGET [TARGET=HOST] 186 Features and packages: 187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 191 --x-includes=DIR X include files are in DIR 192 --x-libraries=DIR X library files are in DIR 193 EOF 194 if test -n "$ac_help"; then 195 echo "--enable and --with options recognized:$ac_help" 196 fi 197 exit 0 ;; 257 -help | --help | --hel | --he | -h) 258 ac_init_help=long ;; 259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 260 ac_init_help=recursive ;; 261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 262 ac_init_help=short ;; 198 263 199 264 -host | --host | --hos | --ho) 200 ac_prev=host ;;265 ac_prev=host_alias ;; 201 266 -host=* | --host=* | --hos=* | --ho=*) 202 host ="$ac_optarg";;267 host_alias=$ac_optarg ;; 203 268 204 269 -includedir | --includedir | --includedi | --included | --include \ … … 207 272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 208 273 | --includ=* | --inclu=* | --incl=* | --inc=*) 209 includedir= "$ac_optarg";;274 includedir=$ac_optarg ;; 210 275 211 276 -infodir | --infodir | --infodi | --infod | --info | --inf) 212 277 ac_prev=infodir ;; 213 278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 214 infodir= "$ac_optarg";;279 infodir=$ac_optarg ;; 215 280 216 281 -libdir | --libdir | --libdi | --libd) 217 282 ac_prev=libdir ;; 218 283 -libdir=* | --libdir=* | --libdi=* | --libd=*) 219 libdir= "$ac_optarg";;284 libdir=$ac_optarg ;; 220 285 221 286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 224 289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 225 290 | --libexe=* | --libex=* | --libe=*) 226 libexecdir= "$ac_optarg";;291 libexecdir=$ac_optarg ;; 227 292 228 293 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 233 298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 234 299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 235 localstatedir= "$ac_optarg";;300 localstatedir=$ac_optarg ;; 236 301 237 302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 238 303 ac_prev=mandir ;; 239 304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 240 mandir= "$ac_optarg";;305 mandir=$ac_optarg ;; 241 306 242 307 -nfp | --nfp | --nf) … … 259 324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 260 325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 261 oldincludedir= "$ac_optarg";;326 oldincludedir=$ac_optarg ;; 262 327 263 328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 264 329 ac_prev=prefix ;; 265 330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 266 prefix= "$ac_optarg";;331 prefix=$ac_optarg ;; 267 332 268 333 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 271 336 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 272 337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 273 program_prefix= "$ac_optarg";;338 program_prefix=$ac_optarg ;; 274 339 275 340 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 278 343 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 279 344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 280 program_suffix= "$ac_optarg";;345 program_suffix=$ac_optarg ;; 281 346 282 347 -program-transform-name | --program-transform-name \ … … 295 360 | --program-trans=* | --program-tran=* \ 296 361 | --progr-tra=* | --program-tr=* | --program-t=*) 297 program_transform_name= "$ac_optarg";;362 program_transform_name=$ac_optarg ;; 298 363 299 364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 305 370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 306 371 | --sbi=* | --sb=*) 307 sbindir= "$ac_optarg";;372 sbindir=$ac_optarg ;; 308 373 309 374 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 316 381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 317 382 | --sha=* | --sh=*) 318 sharedstatedir= "$ac_optarg";;383 sharedstatedir=$ac_optarg ;; 319 384 320 385 -site | --site | --sit) 321 386 ac_prev=site ;; 322 387 -site=* | --site=* | --sit=*) 323 site= "$ac_optarg";;388 site=$ac_optarg ;; 324 389 325 390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 326 391 ac_prev=srcdir ;; 327 392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 328 srcdir= "$ac_optarg";;393 srcdir=$ac_optarg ;; 329 394 330 395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 333 398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 334 399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 335 sysconfdir= "$ac_optarg";;400 sysconfdir=$ac_optarg ;; 336 401 337 402 -target | --target | --targe | --targ | --tar | --ta | --t) 338 ac_prev=target ;;403 ac_prev=target_alias ;; 339 404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 340 target ="$ac_optarg";;405 target_alias=$ac_optarg ;; 341 406 342 407 -v | -verbose | --verbose | --verbos | --verbo | --verb) 343 408 verbose=yes ;; 344 409 345 -version | --version | --versio | --versi | --vers) 346 echo "configure generated by autoconf version 2.13" 347 exit 0 ;; 410 -version | --version | --versio | --versi | --vers | -V) 411 ac_init_version=: ;; 348 412 349 413 -with-* | --with-*) 350 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 351 415 # Reject names that are not valid shell variable names. 352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then353 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }354 fi416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 417 { echo "$as_me: error: invalid package name: $ac_package" >&2 418 { (exit 1); exit 1; }; } 355 419 ac_package=`echo $ac_package| sed 's/-/_/g'` 356 case "$ac_option"in357 *=*) ;;420 case $ac_option in 421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 358 422 *) ac_optarg=yes ;; 359 423 esac 360 eval "with_$ {ac_package}='$ac_optarg'" ;;424 eval "with_$ac_package='$ac_optarg'" ;; 361 425 362 426 -without-* | --without-*) 363 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 364 428 # Reject names that are not valid shell variable names. 365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then366 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }367 fi368 ac_package=`echo $ac_package | sed 's/-/_/g'`369 eval "with_$ {ac_package}=no" ;;429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 430 { echo "$as_me: error: invalid package name: $ac_package" >&2 431 { (exit 1); exit 1; }; } 432 ac_package=`echo $ac_package | sed 's/-/_/g'` 433 eval "with_$ac_package=no" ;; 370 434 371 435 --x) … … 378 442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 379 443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 380 x_includes= "$ac_optarg";;444 x_includes=$ac_optarg ;; 381 445 382 446 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 385 449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 386 450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 387 x_libraries="$ac_optarg" ;; 388 389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 451 x_libraries=$ac_optarg ;; 452 453 -*) { echo "$as_me: error: unrecognized option: $ac_option 454 Try \`$0 --help' for more information." >&2 455 { (exit 1); exit 1; }; } 390 456 ;; 391 457 458 *=*) 459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 460 # Reject names that are not valid shell variable names. 461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && 462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 463 { (exit 1); exit 1; }; } 464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 465 eval "$ac_envvar='$ac_optarg'" 466 export $ac_envvar ;; 467 392 468 *) 393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 394 echo "configure: warning: $ac_option: invalid host type" 1>&2 395 fi 396 if test "x$nonopt" != xNONE; then 397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 398 fi 399 nonopt="$ac_option" 469 # FIXME: should be removed in autoconf 3.0. 470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 400 474 ;; 401 475 … … 404 478 405 479 if test -n "$ac_prev"; then 406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 407 fi 408 409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 410 411 # File descriptor usage: 412 # 0 standard input 413 # 1 file creation 414 # 2 errors and warnings 415 # 3 some systems may open it to /dev/tty 416 # 4 used on the Kubota Titan 417 # 6 checking for... messages and results 418 # 5 compiler messages saved in config.log 419 if test "$silent" = yes; then 420 exec 6>/dev/null 421 else 422 exec 6>&1 423 fi 424 exec 5>./config.log 425 426 echo "\ 427 This file contains any messages produced by compilers while 428 running configure, to aid debugging if configure makes a mistake. 429 " 1>&5 430 431 # Strip out --no-create and --no-recursion so they do not pile up. 432 # Also quote any args containing shell metacharacters. 433 ac_configure_args= 434 for ac_arg 480 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 481 { echo "$as_me: error: missing argument to $ac_option" >&2 482 { (exit 1); exit 1; }; } 483 fi 484 485 # Be sure to have absolute paths. 486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 435 489 do 436 case "$ac_arg" in 437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 438 | --no-cr | --no-c) ;; 439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 442 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 443 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 490 eval ac_val=$`echo $ac_var` 491 case $ac_val in 492 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 495 { (exit 1); exit 1; }; };; 444 496 esac 445 497 done 446 498 447 # NLS nuisances. 448 # Only set these to C if already set. These must not be set unconditionally 449 # because not all systems understand e.g. LANG=C (notably SCO). 450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 451 # Non-C LC_CTYPE values break the ctype check. 452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 456 457 # confdefs.h avoids OS command line length limits that DEFS can exceed. 458 rm -rf conftest* confdefs.h 459 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 460 echo > confdefs.h 461 462 # A filename unique to this package, relative to the directory that 463 # configure is in, which we can look for to find out if srcdir is correct. 464 ac_unique_file=text/MGQuery.cpp 499 # There might be people who depend on the old broken behavior: `$host' 500 # used to hold the argument of --host etc. 501 build=$build_alias 502 host=$host_alias 503 target=$target_alias 504 505 # FIXME: should be removed in autoconf 3.0. 506 if test "x$host_alias" != x; then 507 if test "x$build_alias" = x; then 508 cross_compiling=maybe 509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 510 If a cross compiler is detected then cross compile mode will be used." >&2 511 elif test "x$build_alias" != "x$host_alias"; then 512 cross_compiling=yes 513 fi 514 fi 515 516 ac_tool_prefix= 517 test -n "$host_alias" && ac_tool_prefix=$host_alias- 518 519 test "$silent" = yes && exec 6>/dev/null 465 520 466 521 # Find the source files, if location was not specified. … … 469 524 # Try the directory containing this script, then its parent. 470 525 ac_prog=$0 471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` 472 527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 473 528 srcdir=$ac_confdir … … 480 535 if test ! -r $srcdir/$ac_unique_file; then 481 536 if test "$ac_srcdir_defaulted" = yes; then 482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 538 { (exit 1); exit 1; }; } 483 539 else 484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2 541 { (exit 1); exit 1; }; } 485 542 fi 486 543 fi 487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 488 544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 ac_env_build_alias_set=${build_alias+set} 546 ac_env_build_alias_value=$build_alias 547 ac_cv_env_build_alias_set=${build_alias+set} 548 ac_cv_env_build_alias_value=$build_alias 549 ac_env_host_alias_set=${host_alias+set} 550 ac_env_host_alias_value=$host_alias 551 ac_cv_env_host_alias_set=${host_alias+set} 552 ac_cv_env_host_alias_value=$host_alias 553 ac_env_target_alias_set=${target_alias+set} 554 ac_env_target_alias_value=$target_alias 555 ac_cv_env_target_alias_set=${target_alias+set} 556 ac_cv_env_target_alias_value=$target_alias 557 ac_env_CXX_set=${CXX+set} 558 ac_env_CXX_value=$CXX 559 ac_cv_env_CXX_set=${CXX+set} 560 ac_cv_env_CXX_value=$CXX 561 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 562 ac_env_CXXFLAGS_value=$CXXFLAGS 563 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 564 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 565 ac_env_LDFLAGS_set=${LDFLAGS+set} 566 ac_env_LDFLAGS_value=$LDFLAGS 567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 568 ac_cv_env_LDFLAGS_value=$LDFLAGS 569 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 570 ac_env_CPPFLAGS_value=$CPPFLAGS 571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 573 ac_env_CC_set=${CC+set} 574 ac_env_CC_value=$CC 575 ac_cv_env_CC_set=${CC+set} 576 ac_cv_env_CC_value=$CC 577 ac_env_CFLAGS_set=${CFLAGS+set} 578 ac_env_CFLAGS_value=$CFLAGS 579 ac_cv_env_CFLAGS_set=${CFLAGS+set} 580 ac_cv_env_CFLAGS_value=$CFLAGS 581 ac_env_CPP_set=${CPP+set} 582 ac_env_CPP_value=$CPP 583 ac_cv_env_CPP_set=${CPP+set} 584 ac_cv_env_CPP_value=$CPP 585 586 # 587 # Report the --help message. 588 # 589 if test "$ac_init_help" = "long"; then 590 # Omit some internal or obsolete options to make the list less imposing. 591 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat <<EOF 593 \`configure' configures this package to adapt to many kinds of systems. 594 595 Usage: $0 [OPTION]... [VAR=VALUE]... 596 597 To assign environment variables (e.g., CC, CFLAGS...), specify them as 598 VAR=VALUE. See below for descriptions of some of the useful variables. 599 600 Defaults for the options are specified in brackets. 601 602 Configuration: 603 -h, --help display this help and exit 604 --help=short display options specific to this package 605 --help=recursive display the short help of all the included packages 606 -V, --version display version information and exit 607 -q, --quiet, --silent do not print \`checking...' messages 608 --cache-file=FILE cache test results in FILE [disabled] 609 -C, --config-cache alias for \`--cache-file=config.cache' 610 -n, --no-create do not create output files 611 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 613 EOF 614 615 cat <<EOF 616 Installation directories: 617 --prefix=PREFIX install architecture-independent files in PREFIX 618 [$ac_default_prefix] 619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 [PREFIX] 621 622 By default, \`make install' will install all the files in 623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 624 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 625 for instance \`--prefix=\$HOME'. 626 627 For better control, use the options below. 628 629 Fine tuning of the installation directories: 630 --bindir=DIR user executables [EPREFIX/bin] 631 --sbindir=DIR system admin executables [EPREFIX/sbin] 632 --libexecdir=DIR program executables [EPREFIX/libexec] 633 --datadir=DIR read-only architecture-independent data [PREFIX/share] 634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 636 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 637 --libdir=DIR object code libraries [EPREFIX/lib] 638 --includedir=DIR C header files [PREFIX/include] 639 --oldincludedir=DIR C header files for non-gcc [/usr/include] 640 --infodir=DIR info documentation [PREFIX/info] 641 --mandir=DIR man documentation [PREFIX/man] 642 EOF 643 644 cat <<\EOF 645 646 Program names: 647 --program-prefix=PREFIX prepend PREFIX to installed program names 648 --program-suffix=SUFFIX append SUFFIX to installed program names 649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF 651 fi 652 653 if test -n "$ac_init_help"; then 654 655 cat <<\EOF 656 657 Optional Features: 658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 660 --enable-override-longlong 661 overide use of long long with GCC 662 663 Optional Packages: 664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 666 --with-dmalloc use dmalloc, as in 667 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz 668 --with-regex use older regex in lieu of GNU rx for matching 669 --with-gnu-readline compile with GNU readline support 670 671 Some influential environment variables: 672 CXX C++ compiler command 673 CXXFLAGS C++ compiler flags 674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 675 nonstandard directory <lib dir> 676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 677 headers in a nonstandard directory <include dir> 678 CC C compiler command 679 CFLAGS C compiler flags 680 CPP C preprocessor 681 682 Use these variables to override the choices made by `configure' or to help 683 it to find libraries and programs with nonstandard names/locations. 684 685 EOF 686 fi 687 688 if test "$ac_init_help" = "recursive"; then 689 # If there are subdirs, report their specific --help. 690 ac_popdir=`pwd` 691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 692 cd $ac_subdir 693 # A "../" for each directory in /$ac_subdir. 694 ac_dots=`echo $ac_subdir | 695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 696 697 case $srcdir in 698 .) # No --srcdir option. We are building in place. 699 ac_sub_srcdir=$srcdir ;; 700 [\\/]* | ?:[\\/]* ) # Absolute path. 701 ac_sub_srcdir=$srcdir/$ac_subdir ;; 702 *) # Relative path. 703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 704 esac 705 706 # Check for guested configure; otherwise get Cygnus style configure. 707 if test -f $ac_sub_srcdir/configure.gnu; then 708 echo 709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 710 elif test -f $ac_sub_srcdir/configure; then 711 echo 712 $SHELL $ac_sub_srcdir/configure --help=recursive 713 elif test -f $ac_sub_srcdir/configure.ac || 714 test -f $ac_sub_srcdir/configure.in; then 715 echo 716 $ac_configure --help 717 else 718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 719 fi 720 cd $ac_popdir 721 done 722 fi 723 724 test -n "$ac_init_help" && exit 0 725 if $ac_init_version; then 726 cat <<\EOF 727 728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 729 Free Software Foundation, Inc. 730 This configure script is free software; the Free Software Foundation 731 gives unlimited permission to copy, distribute and modify it. 732 EOF 733 exit 0 734 fi 735 exec 5>config.log 736 cat >&5 <<EOF 737 This file contains any messages produced by compilers while 738 running configure, to aid debugging if configure makes a mistake. 739 740 It was created by $as_me, which was 741 generated by GNU Autoconf 2.50. Invocation command line was 742 743 $ $0 $@ 744 745 EOF 746 { 747 cat <<_ASUNAME 748 ## ---------- ## 749 ## Platform. ## 750 ## ---------- ## 751 752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 753 uname -m = `(uname -m) 2>/dev/null || echo unknown` 754 uname -r = `(uname -r) 2>/dev/null || echo unknown` 755 uname -s = `(uname -s) 2>/dev/null || echo unknown` 756 uname -v = `(uname -v) 2>/dev/null || echo unknown` 757 758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 760 761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 768 769 PATH = $PATH 770 771 _ASUNAME 772 } >&5 773 774 cat >&5 <<EOF 775 ## ------------ ## 776 ## Core tests. ## 777 ## ------------ ## 778 779 EOF 780 781 # Keep a trace of the command line. 782 # Strip out --no-create and --no-recursion so they do not pile up. 783 # Also quote any args containing shell meta-characters. 784 ac_configure_args= 785 ac_sep= 786 for ac_arg 787 do 788 case $ac_arg in 789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 790 | --no-cr | --no-c) ;; 791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 796 ac_sep=" " ;; 797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 798 ac_sep=" " ;; 799 esac 800 # Get rid of the leading space. 801 done 802 803 # When interrupted or exit'd, cleanup temporary files, and complete 804 # config.log. We remove comments because anyway the quotes in there 805 # would cause problems or look ugly. 806 trap 'exit_status=$? 807 # Save into config.log some information that might help in debugging. 808 echo >&5 809 echo "## ----------------- ##" >&5 810 echo "## Cache variables. ##" >&5 811 echo "## ----------------- ##" >&5 812 echo >&5 813 # The following way of writing the cache mishandles newlines in values, 814 { 815 (set) 2>&1 | 816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 817 *ac_space=\ *) 818 sed -n \ 819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 820 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 821 ;; 822 *) 823 sed -n \ 824 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 825 ;; 826 esac; 827 } >&5 828 sed "/^$/d" confdefs.h >conftest.log 829 if test -s conftest.log; then 830 echo >&5 831 echo "## ------------ ##" >&5 832 echo "## confdefs.h. ##" >&5 833 echo "## ------------ ##" >&5 834 echo >&5 835 cat conftest.log >&5 836 fi 837 (echo; echo) >&5 838 test "$ac_signal" != 0 && 839 echo "$as_me: caught signal $ac_signal" >&5 840 echo "$as_me: exit $exit_status" >&5 841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 842 exit $exit_status 843 ' 0 844 for ac_signal in 1 2 13 15; do 845 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal 846 done 847 ac_signal=0 848 849 # confdefs.h avoids OS command line length limits that DEFS can exceed. 850 rm -rf conftest* confdefs.h 851 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 852 echo >confdefs.h 853 854 # Let the site file select an alternate cache file if it wants to. 489 855 # Prefer explicitly selected file to automatically selected ones. 490 856 if test -z "$CONFIG_SITE"; then … … 497 863 for ac_site_file in $CONFIG_SITE; do 498 864 if test -r "$ac_site_file"; then 499 echo "loading site script $ac_site_file" 865 { echo "$as_me:865: loading site script $ac_site_file" >&5 866 echo "$as_me: loading site script $ac_site_file" >&6;} 867 cat "$ac_site_file" >&5 500 868 . "$ac_site_file" 501 869 fi … … 503 871 504 872 if test -r "$cache_file"; then 505 echo "loading cache $cache_file" 506 . $cache_file 507 else 508 echo "creating cache $cache_file" 509 > $cache_file 873 # Some versions of bash will fail to source /dev/null (special 874 # files actually), so we avoid doing that. 875 if test -f "$cache_file"; then 876 { echo "$as_me:876: loading cache $cache_file" >&5 877 echo "$as_me: loading cache $cache_file" >&6;} 878 case $cache_file in 879 [\\/]* | ?:[\\/]* ) . $cache_file;; 880 *) . ./$cache_file;; 881 esac 882 fi 883 else 884 { echo "$as_me:884: creating cache $cache_file" >&5 885 echo "$as_me: creating cache $cache_file" >&6;} 886 >$cache_file 887 fi 888 889 # Check that the precious variables saved in the cache have kept the same 890 # value. 891 ac_suggest_removing_cache=false 892 for ac_var in `(set) 2>&1 | 893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 895 eval ac_new_set=\$ac_env_${ac_var}_set 896 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 897 eval ac_new_val="\$ac_env_${ac_var}_value" 898 case $ac_old_set,$ac_new_set in 899 set,) 900 { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 901 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 902 ac_suggest_removing_cache=: ;; 903 ,set) 904 { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5 905 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} 906 ac_suggest_removing_cache=: ;; 907 ,);; 908 *) 909 if test "x$ac_old_val" != "x$ac_new_val"; then 910 { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5 911 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} 912 { echo "$as_me:912: WARNING: former value: $ac_old_val" >&5 913 echo "$as_me: WARNING: former value: $ac_old_val" >&2;} 914 { echo "$as_me:914: WARNING: current value: $ac_new_val" >&5 915 echo "$as_me: WARNING: current value: $ac_new_val" >&2;} 916 ac_suggest_removing_cache=: 917 fi;; 918 esac 919 done 920 if $ac_suggest_removing_cache; then 921 { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5 922 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 923 { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5 924 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 510 925 fi 511 926 512 927 ac_ext=c 513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.514 928 ac_cpp='$CPP $CPPFLAGS' 515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 517 cross_compiling=$ac_cv_prog_cc_cross 518 519 ac_exeext= 520 ac_objext=o 521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 522 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 524 ac_n= ac_c=' 525 ' ac_t=' ' 526 else 527 ac_n=-n ac_c= ac_t= 528 fi 529 else 530 ac_n= ac_c='\c' ac_t= 531 fi 532 533 929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 931 ac_compiler_gnu=$ac_cv_c_compiler_gnu 932 933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 934 *c*,-n*) ECHO_N= ECHO_C=' 935 ' ECHO_T=' ' ;; 936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 938 esac 939 echo "#! $SHELL" >conftest.sh 940 echo "exit 0" >>conftest.sh 941 chmod +x conftest.sh 942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5 943 (PATH=".;."; conftest.sh) 2>&5 944 ac_status=$? 945 echo "$as_me:945: \$? = $ac_status" >&5 946 (exit $ac_status); }; then 947 ac_path_separator=';' 948 else 949 ac_path_separator=: 950 fi 951 PATH_SEPARATOR="$ac_path_separator" 952 rm -f conftest.sh 953 954 ac_config_headers="$ac_config_headers config.h" 534 955 535 956 if test "$program_transform_name" = s,x,x,; then … … 537 958 else 538 959 # Double any \ or $. echo might interpret backslashes. 539 cat <<\EOF _SED > conftestsed960 cat <<\EOF >conftest.sed 540 961 s,\\,\\\\,g; s,\$,$$,g 541 EOF _SED542 program_transform_name= "`echo $program_transform_name|sed -f conftestsed`"543 rm -f conftest sed962 EOF 963 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 964 rm -f conftest.sed 544 965 fi 545 966 test "$program_prefix" != NONE && 546 program_transform_name="s,^,${program_prefix},; 967 program_transform_name="s,^,${program_prefix},;$program_transform_name" 547 968 # Use a double $ so make ignores it. 548 969 test "$program_suffix" != NONE && 549 program_transform_name="s,\$\$,${program_suffix},; 970 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 550 971 551 972 # sed with no file args requires a program. 552 test "$program_transform_name" = "" && program_transform_name="s,x,x," 553 973 test -z "$program_transform_name" && program_transform_name="s,x,x," 554 974 555 975 PACKAGE=mgpp … … 558 978 LDFLAGS= 559 979 560 cat >> 980 cat >>confdefs.h <<EOF 561 981 #define PACKAGE "$PACKAGE" 562 982 EOF 563 983 564 cat >> 984 cat >>confdefs.h <<EOF 565 985 #define VERSION "$VERSION" 566 986 EOF 567 987 568 569 570 571 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 572 do 573 # Extract the first word of "$ac_prog", so it can be a program name with args. 574 set dummy $ac_prog; ac_word=$2 575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 576 echo "configure:577: checking for $ac_word" >&5 577 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 578 echo $ac_n "(cached) $ac_c" 1>&6 988 ac_ext=cc 989 ac_cpp='$CXXCPP $CPPFLAGS' 990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 993 if test -n "$ac_tool_prefix"; then 994 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 995 do 996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 998 echo "$as_me:998: checking for $ac_word" >&5 999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1000 if test "${ac_cv_prog_CXX+set}" = set; then 1001 echo $ECHO_N "(cached) $ECHO_C" >&6 579 1002 else 580 1003 if test -n "$CXX"; then 581 1004 ac_cv_prog_CXX="$CXX" # Let the user override the test. 582 1005 else 583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 584 ac_dummy="$PATH" 585 for ac_dir in $ac_dummy; do 586 test -z "$ac_dir" && ac_dir=. 587 if test -f $ac_dir/$ac_word; then 588 ac_cv_prog_CXX="$ac_prog" 589 break 1006 ac_save_IFS=$IFS; IFS=$ac_path_separator 1007 ac_dummy="$PATH" 1008 for ac_dir in $ac_dummy; do 1009 IFS=$ac_save_IFS 1010 test -z "$ac_dir" && ac_dir=. 1011 $as_executable_p "$ac_dir/$ac_word" || continue 1012 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1013 echo "$as_me:1013: found $ac_dir/$ac_word" >&5 1014 break 1015 done 1016 1017 fi 1018 fi 1019 CXX=$ac_cv_prog_CXX 1020 if test -n "$CXX"; then 1021 echo "$as_me:1021: result: $CXX" >&5 1022 echo "${ECHO_T}$CXX" >&6 1023 else 1024 echo "$as_me:1024: result: no" >&5 1025 echo "${ECHO_T}no" >&6 1026 fi 1027 1028 test -n "$CXX" && break 1029 done 1030 fi 1031 if test -z "$CXX"; then 1032 ac_ct_CXX=$CXX 1033 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 1034 do 1035 # Extract the first word of "$ac_prog", so it can be a program name with args. 1036 set dummy $ac_prog; ac_word=$2 1037 echo "$as_me:1037: checking for $ac_word" >&5 1038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1039 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1040 echo $ECHO_N "(cached) $ECHO_C" >&6 1041 else 1042 if test -n "$ac_ct_CXX"; then 1043 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1044 else 1045 ac_save_IFS=$IFS; IFS=$ac_path_separator 1046 ac_dummy="$PATH" 1047 for ac_dir in $ac_dummy; do 1048 IFS=$ac_save_IFS 1049 test -z "$ac_dir" && ac_dir=. 1050 $as_executable_p "$ac_dir/$ac_word" || continue 1051 ac_cv_prog_ac_ct_CXX="$ac_prog" 1052 echo "$as_me:1052: found $ac_dir/$ac_word" >&5 1053 break 1054 done 1055 1056 fi 1057 fi 1058 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1059 if test -n "$ac_ct_CXX"; then 1060 echo "$as_me:1060: result: $ac_ct_CXX" >&5 1061 echo "${ECHO_T}$ac_ct_CXX" >&6 1062 else 1063 echo "$as_me:1063: result: no" >&5 1064 echo "${ECHO_T}no" >&6 1065 fi 1066 1067 test -n "$ac_ct_CXX" && break 1068 done 1069 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1070 1071 CXX=$ac_ct_CXX 1072 fi 1073 1074 cat >conftest.$ac_ext <<_ACEOF 1075 #line 1075 "configure" 1076 #include "confdefs.h" 1077 1078 int 1079 main () 1080 { 1081 1082 ; 1083 return 0; 1084 } 1085 _ACEOF 1086 ac_clean_files_save=$ac_clean_files 1087 ac_clean_files="$ac_clean_files a.out a.exe" 1088 # Try to create an executable without -o first, disregard a.out. 1089 # It will help us diagnose broken compiler, and finding out an intuition 1090 # of exeext. 1091 echo "$as_me:1091: checking for C++ compiler default output" >&5 1092 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 1093 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1094 if { (eval echo "$as_me:1094: \"$ac_link_default\"") >&5 1095 (eval $ac_link_default) 2>&5 1096 ac_status=$? 1097 echo "$as_me:1097: \$? = $ac_status" >&5 1098 (exit $ac_status); }; then 1099 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1100 case $ac_file in 1101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1102 a.out ) # We found the default executable, but exeext='' is most 1103 # certainly right. 1104 break;; 1105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1106 export ac_cv_exeext 1107 break;; 1108 * ) break;; 1109 esac 1110 done 1111 else 1112 echo "$as_me: failed program was:" >&5 1113 cat conftest.$ac_ext >&5 1114 { { echo "$as_me:1114: error: C++ compiler cannot create executables" >&5 1115 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1116 { (exit 77); exit 77; }; } 1117 fi 1118 1119 ac_exeext=$ac_cv_exeext 1120 echo "$as_me:1120: result: $ac_file" >&5 1121 echo "${ECHO_T}$ac_file" >&6 1122 1123 # Check the compiler produces executables we can run. If not, either 1124 # the compiler is broken, or we cross compile. 1125 echo "$as_me:1125: checking whether the C++ compiler works" >&5 1126 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1128 # If not cross compiling, check that we can run a simple program. 1129 if test "$cross_compiling" != yes; then 1130 if { ac_try='./$ac_file' 1131 { (eval echo "$as_me:1131: \"$ac_try\"") >&5 1132 (eval $ac_try) 2>&5 1133 ac_status=$? 1134 echo "$as_me:1134: \$? = $ac_status" >&5 1135 (exit $ac_status); }; }; then 1136 cross_compiling=no 1137 else 1138 if test "$cross_compiling" = maybe; then 1139 cross_compiling=yes 1140 else 1141 { { echo "$as_me:1141: error: cannot run C++ compiled programs. 1142 If you meant to cross compile, use \`--host'." >&5 1143 echo "$as_me: error: cannot run C++ compiled programs. 1144 If you meant to cross compile, use \`--host'." >&2;} 1145 { (exit 1); exit 1; }; } 590 1146 fi 591 done 592 IFS="$ac_save_ifs" 593 fi 594 fi 595 CXX="$ac_cv_prog_CXX" 596 if test -n "$CXX"; then 597 echo "$ac_t""$CXX" 1>&6 598 else 599 echo "$ac_t""no" 1>&6 600 fi 601 602 test -n "$CXX" && break 1147 fi 1148 fi 1149 echo "$as_me:1149: result: yes" >&5 1150 echo "${ECHO_T}yes" >&6 1151 1152 rm -f a.out a.exe conftest$ac_cv_exeext 1153 ac_clean_files=$ac_clean_files_save 1154 # Check the compiler produces executables we can run. If not, either 1155 # the compiler is broken, or we cross compile. 1156 echo "$as_me:1156: checking whether we are cross compiling" >&5 1157 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1158 echo "$as_me:1158: result: $cross_compiling" >&5 1159 echo "${ECHO_T}$cross_compiling" >&6 1160 1161 echo "$as_me:1161: checking for executable suffix" >&5 1162 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1163 if { (eval echo "$as_me:1163: \"$ac_link\"") >&5 1164 (eval $ac_link) 2>&5 1165 ac_status=$? 1166 echo "$as_me:1166: \$? = $ac_status" >&5 1167 (exit $ac_status); }; then 1168 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1170 # work properly (i.e., refer to `conftest.exe'), while it won't with 1171 # `rm'. 1172 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1173 case $ac_file in 1174 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1176 export ac_cv_exeext 1177 break;; 1178 * ) break;; 1179 esac 603 1180 done 604 test -n "$CXX" || CXX="gcc" 605 606 607 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 608 echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 609 610 ac_ext=C 611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 612 ac_cpp='$CXXCPP $CPPFLAGS' 613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 615 cross_compiling=$ac_cv_prog_cxx_cross 616 617 cat > conftest.$ac_ext << EOF 618 619 #line 620 "configure" 620 #include "confdefs.h" 621 622 int main(){return(0);} 623 EOF 624 if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 625 ac_cv_prog_cxx_works=yes 626 # If we can't run a trivial program, we are probably using a cross compiler. 627 if (./conftest; exit) 2>/dev/null; then 628 ac_cv_prog_cxx_cross=no 629 else 630 ac_cv_prog_cxx_cross=yes 631 fi 632 else 633 echo "configure: failed program was:" >&5 634 cat conftest.$ac_ext >&5 635 ac_cv_prog_cxx_works=no 636 fi 637 rm -fr conftest* 638 ac_ext=c 639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 640 ac_cpp='$CPP $CPPFLAGS' 641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 643 cross_compiling=$ac_cv_prog_cc_cross 644 645 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 646 if test $ac_cv_prog_cxx_works = no; then 647 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 648 fi 649 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 650 echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 651 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 652 cross_compiling=$ac_cv_prog_cxx_cross 653 654 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 655 echo "configure:656: checking whether we are using GNU C++" >&5 656 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 657 echo $ac_n "(cached) $ac_c" 1>&6 658 else 659 cat > conftest.C <<EOF 660 #ifdef __GNUC__ 661 yes; 1181 else 1182 { { echo "$as_me:1182: error: cannot compute EXEEXT: cannot compile and link" >&5 1183 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1184 { (exit 1); exit 1; }; } 1185 fi 1186 1187 rm -f conftest$ac_cv_exeext 1188 echo "$as_me:1188: result: $ac_cv_exeext" >&5 1189 echo "${ECHO_T}$ac_cv_exeext" >&6 1190 1191 rm -f conftest.$ac_ext 1192 EXEEXT=$ac_cv_exeext 1193 ac_exeext=$EXEEXT 1194 echo "$as_me:1194: checking for object suffix" >&5 1195 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1196 if test "${ac_cv_objext+set}" = set; then 1197 echo $ECHO_N "(cached) $ECHO_C" >&6 1198 else 1199 cat >conftest.$ac_ext <<_ACEOF 1200 #line 1200 "configure" 1201 #include "confdefs.h" 1202 1203 int 1204 main () 1205 { 1206 1207 ; 1208 return 0; 1209 } 1210 _ACEOF 1211 rm -f conftest.o conftest.obj 1212 if { (eval echo "$as_me:1212: \"$ac_compile\"") >&5 1213 (eval $ac_compile) 2>&5 1214 ac_status=$? 1215 echo "$as_me:1215: \$? = $ac_status" >&5 1216 (exit $ac_status); }; then 1217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1218 case $ac_file in 1219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1221 break;; 1222 esac 1223 done 1224 else 1225 echo "$as_me: failed program was:" >&5 1226 cat conftest.$ac_ext >&5 1227 { { echo "$as_me:1227: error: cannot compute OBJEXT: cannot compile" >&5 1228 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1229 { (exit 1); exit 1; }; } 1230 fi 1231 1232 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1233 fi 1234 echo "$as_me:1234: result: $ac_cv_objext" >&5 1235 echo "${ECHO_T}$ac_cv_objext" >&6 1236 OBJEXT=$ac_cv_objext 1237 ac_objext=$OBJEXT 1238 echo "$as_me:1238: checking whether we are using the GNU C++ compiler" >&5 1239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1241 echo $ECHO_N "(cached) $ECHO_C" >&6 1242 else 1243 cat >conftest.$ac_ext <<_ACEOF 1244 #line 1244 "configure" 1245 #include "confdefs.h" 1246 1247 int 1248 main () 1249 { 1250 #ifndef __GNUC__ 1251 choke me 662 1252 #endif 663 EOF 664 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 665 ac_cv_prog_gxx=yes 666 else 667 ac_cv_prog_gxx=no 668 fi 669 fi 670 671 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 672 673 if test $ac_cv_prog_gxx = yes; then 674 GXX=yes 675 else 676 GXX= 677 fi 678 679 ac_test_CXXFLAGS="${CXXFLAGS+set}" 680 ac_save_CXXFLAGS="$CXXFLAGS" 681 CXXFLAGS= 682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 683 echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5 684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 685 echo $ac_n "(cached) $ac_c" 1>&6 686 else 687 echo 'void f(){}' > conftest.cc 688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1253 1254 ; 1255 return 0; 1256 } 1257 _ACEOF 1258 rm -f conftest.$ac_objext 1259 if { (eval echo "$as_me:1259: \"$ac_compile\"") >&5 1260 (eval $ac_compile) 2>&5 1261 ac_status=$? 1262 echo "$as_me:1262: \$? = $ac_status" >&5 1263 (exit $ac_status); } && 1264 { ac_try='test -s conftest.$ac_objext' 1265 { (eval echo "$as_me:1265: \"$ac_try\"") >&5 1266 (eval $ac_try) 2>&5 1267 ac_status=$? 1268 echo "$as_me:1268: \$? = $ac_status" >&5 1269 (exit $ac_status); }; }; then 1270 ac_compiler_gnu=yes 1271 else 1272 echo "$as_me: failed program was:" >&5 1273 cat conftest.$ac_ext >&5 1274 ac_compiler_gnu=no 1275 fi 1276 rm -f conftest.$ac_objext conftest.$ac_ext 1277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1278 1279 fi 1280 echo "$as_me:1280: result: $ac_cv_cxx_compiler_gnu" >&5 1281 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1282 GXX=`test $ac_compiler_gnu = yes && echo yes` 1283 ac_test_CXXFLAGS=${CXXFLAGS+set} 1284 ac_save_CXXFLAGS=$CXXFLAGS 1285 CXXFLAGS="-g" 1286 echo "$as_me:1286: checking whether $CXX accepts -g" >&5 1287 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1288 if test "${ac_cv_prog_cxx_g+set}" = set; then 1289 echo $ECHO_N "(cached) $ECHO_C" >&6 1290 else 1291 cat >conftest.$ac_ext <<_ACEOF 1292 #line 1292 "configure" 1293 #include "confdefs.h" 1294 1295 int 1296 main () 1297 { 1298 1299 ; 1300 return 0; 1301 } 1302 _ACEOF 1303 rm -f conftest.$ac_objext 1304 if { (eval echo "$as_me:1304: \"$ac_compile\"") >&5 1305 (eval $ac_compile) 2>&5 1306 ac_status=$? 1307 echo "$as_me:1307: \$? = $ac_status" >&5 1308 (exit $ac_status); } && 1309 { ac_try='test -s conftest.$ac_objext' 1310 { (eval echo "$as_me:1310: \"$ac_try\"") >&5 1311 (eval $ac_try) 2>&5 1312 ac_status=$? 1313 echo "$as_me:1313: \$? = $ac_status" >&5 1314 (exit $ac_status); }; }; then 689 1315 ac_cv_prog_cxx_g=yes 690 1316 else 691 ac_cv_prog_cxx_g=no 692 fi 693 rm -f conftest* 694 695 fi 696 697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1317 echo "$as_me: failed program was:" >&5 1318 cat conftest.$ac_ext >&5 1319 ac_cv_prog_cxx_g=no 1320 fi 1321 rm -f conftest.$ac_objext conftest.$ac_ext 1322 fi 1323 echo "$as_me:1323: result: $ac_cv_prog_cxx_g" >&5 1324 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 698 1325 if test "$ac_test_CXXFLAGS" = set; then 699 CXXFLAGS= "$ac_save_CXXFLAGS"1326 CXXFLAGS=$ac_save_CXXFLAGS 700 1327 elif test $ac_cv_prog_cxx_g = yes; then 701 1328 if test "$GXX" = yes; then … … 711 1338 fi 712 1339 fi 1340 for ac_declaration in \ 1341 ''\ 1342 '#include <stdlib.h>' \ 1343 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1344 'extern "C" void std::exit (int); using std::exit;' \ 1345 'extern "C" void exit (int) throw ();' \ 1346 'extern "C" void exit (int);' \ 1347 'void exit (int);' 1348 do 1349 cat >conftest.$ac_ext <<_ACEOF 1350 #line 1350 "configure" 1351 #include "confdefs.h" 1352 #include <stdlib.h> 1353 $ac_declaration 1354 int 1355 main () 1356 { 1357 exit (42); 1358 ; 1359 return 0; 1360 } 1361 _ACEOF 1362 rm -f conftest.$ac_objext 1363 if { (eval echo "$as_me:1363: \"$ac_compile\"") >&5 1364 (eval $ac_compile) 2>&5 1365 ac_status=$? 1366 echo "$as_me:1366: \$? = $ac_status" >&5 1367 (exit $ac_status); } && 1368 { ac_try='test -s conftest.$ac_objext' 1369 { (eval echo "$as_me:1369: \"$ac_try\"") >&5 1370 (eval $ac_try) 2>&5 1371 ac_status=$? 1372 echo "$as_me:1372: \$? = $ac_status" >&5 1373 (exit $ac_status); }; }; then 1374 : 1375 else 1376 echo "$as_me: failed program was:" >&5 1377 cat conftest.$ac_ext >&5 1378 continue 1379 fi 1380 rm -f conftest.$ac_objext conftest.$ac_ext 1381 cat >conftest.$ac_ext <<_ACEOF 1382 #line 1382 "configure" 1383 #include "confdefs.h" 1384 $ac_declaration 1385 int 1386 main () 1387 { 1388 exit (42); 1389 ; 1390 return 0; 1391 } 1392 _ACEOF 1393 rm -f conftest.$ac_objext 1394 if { (eval echo "$as_me:1394: \"$ac_compile\"") >&5 1395 (eval $ac_compile) 2>&5 1396 ac_status=$? 1397 echo "$as_me:1397: \$? = $ac_status" >&5 1398 (exit $ac_status); } && 1399 { ac_try='test -s conftest.$ac_objext' 1400 { (eval echo "$as_me:1400: \"$ac_try\"") >&5 1401 (eval $ac_try) 2>&5 1402 ac_status=$? 1403 echo "$as_me:1403: \$? = $ac_status" >&5 1404 (exit $ac_status); }; }; then 1405 break 1406 else 1407 echo "$as_me: failed program was:" >&5 1408 cat conftest.$ac_ext >&5 1409 fi 1410 rm -f conftest.$ac_objext conftest.$ac_ext 1411 done 1412 echo '#ifdef __cplusplus' >>confdefs.h 1413 echo $ac_declaration >>confdefs.h 1414 echo '#endif' >>confdefs.h 1415 1416 ac_ext=c 1417 ac_cpp='$CPP $CPPFLAGS' 1418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1420 ac_compiler_gnu=$ac_cv_c_compiler_gnu 713 1421 714 1422 for ac_prog in mawk gawk nawk awk 715 1423 do 716 # Extract the first word of "$ac_prog", so it can be a program name with args.1424 # Extract the first word of "$ac_prog", so it can be a program name with args. 717 1425 set dummy $ac_prog; ac_word=$2 718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6719 echo "configure:720: checking for $ac_word" >&5720 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then721 echo $ ac_n "(cached) $ac_c" 1>&61426 echo "$as_me:1426: checking for $ac_word" >&5 1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1428 if test "${ac_cv_prog_AWK+set}" = set; then 1429 echo $ECHO_N "(cached) $ECHO_C" >&6 722 1430 else 723 1431 if test -n "$AWK"; then 724 1432 ac_cv_prog_AWK="$AWK" # Let the user override the test. 725 1433 else 726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 727 ac_dummy="$PATH" 728 for ac_dir in $ac_dummy; do 729 test -z "$ac_dir" && ac_dir=. 730 if test -f $ac_dir/$ac_word; then 731 ac_cv_prog_AWK="$ac_prog" 732 break 733 fi 734 done 735 IFS="$ac_save_ifs" 736 fi 737 fi 738 AWK="$ac_cv_prog_AWK" 1434 ac_save_IFS=$IFS; IFS=$ac_path_separator 1435 ac_dummy="$PATH" 1436 for ac_dir in $ac_dummy; do 1437 IFS=$ac_save_IFS 1438 test -z "$ac_dir" && ac_dir=. 1439 $as_executable_p "$ac_dir/$ac_word" || continue 1440 ac_cv_prog_AWK="$ac_prog" 1441 echo "$as_me:1441: found $ac_dir/$ac_word" >&5 1442 break 1443 done 1444 1445 fi 1446 fi 1447 AWK=$ac_cv_prog_AWK 739 1448 if test -n "$AWK"; then 740 echo "$ac_t""$AWK" 1>&6 741 else 742 echo "$ac_t""no" 1>&6 743 fi 744 745 test -n "$AWK" && break 1449 echo "$as_me:1449: result: $AWK" >&5 1450 echo "${ECHO_T}$AWK" >&6 1451 else 1452 echo "$as_me:1452: result: no" >&5 1453 echo "${ECHO_T}no" >&6 1454 fi 1455 1456 test -n "$AWK" && break 746 1457 done 747 1458 748 1459 for ac_prog in 'bison -y' byacc 749 1460 do 750 # Extract the first word of "$ac_prog", so it can be a program name with args.1461 # Extract the first word of "$ac_prog", so it can be a program name with args. 751 1462 set dummy $ac_prog; ac_word=$2 752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6753 echo "configure:754: checking for $ac_word" >&5754 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then755 echo $ ac_n "(cached) $ac_c" 1>&61463 echo "$as_me:1463: checking for $ac_word" >&5 1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1465 if test "${ac_cv_prog_YACC+set}" = set; then 1466 echo $ECHO_N "(cached) $ECHO_C" >&6 756 1467 else 757 1468 if test -n "$YACC"; then 758 1469 ac_cv_prog_YACC="$YACC" # Let the user override the test. 759 1470 else 760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 761 ac_dummy="$PATH" 762 for ac_dir in $ac_dummy; do 763 test -z "$ac_dir" && ac_dir=. 764 if test -f $ac_dir/$ac_word; then 765 ac_cv_prog_YACC="$ac_prog" 766 break 767 fi 768 done 769 IFS="$ac_save_ifs" 770 fi 771 fi 772 YACC="$ac_cv_prog_YACC" 1471 ac_save_IFS=$IFS; IFS=$ac_path_separator 1472 ac_dummy="$PATH" 1473 for ac_dir in $ac_dummy; do 1474 IFS=$ac_save_IFS 1475 test -z "$ac_dir" && ac_dir=. 1476 $as_executable_p "$ac_dir/$ac_word" || continue 1477 ac_cv_prog_YACC="$ac_prog" 1478 echo "$as_me:1478: found $ac_dir/$ac_word" >&5 1479 break 1480 done 1481 1482 fi 1483 fi 1484 YACC=$ac_cv_prog_YACC 773 1485 if test -n "$YACC"; then 774 echo "$ac_t""$YACC" 1>&6 775 else 776 echo "$ac_t""no" 1>&6 777 fi 778 779 test -n "$YACC" && break 1486 echo "$as_me:1486: result: $YACC" >&5 1487 echo "${ECHO_T}$YACC" >&6 1488 else 1489 echo "$as_me:1489: result: no" >&5 1490 echo "${ECHO_T}no" >&6 1491 fi 1492 1493 test -n "$YACC" && break 780 1494 done 781 1495 test -n "$YACC" || YACC="yacc" 782 1496 783 # Extract the first word of "gcc", so it can be a program name with args. 784 set dummy gcc; ac_word=$2 785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 786 echo "configure:787: checking for $ac_word" >&5 787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 788 echo $ac_n "(cached) $ac_c" 1>&6 1497 ac_ext=c 1498 ac_cpp='$CPP $CPPFLAGS' 1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1502 if test -n "$ac_tool_prefix"; then 1503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1504 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1505 echo "$as_me:1505: checking for $ac_word" >&5 1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1507 if test "${ac_cv_prog_CC+set}" = set; then 1508 echo $ECHO_N "(cached) $ECHO_C" >&6 789 1509 else 790 1510 if test -n "$CC"; then 791 1511 ac_cv_prog_CC="$CC" # Let the user override the test. 792 1512 else 793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 794 ac_dummy="$PATH" 795 for ac_dir in $ac_dummy; do 796 test -z "$ac_dir" && ac_dir=. 797 if test -f $ac_dir/$ac_word; then 798 ac_cv_prog_CC="gcc" 799 break 800 fi 801 done 802 IFS="$ac_save_ifs" 803 fi 804 fi 805 CC="$ac_cv_prog_CC" 1513 ac_save_IFS=$IFS; IFS=$ac_path_separator 1514 ac_dummy="$PATH" 1515 for ac_dir in $ac_dummy; do 1516 IFS=$ac_save_IFS 1517 test -z "$ac_dir" && ac_dir=. 1518 $as_executable_p "$ac_dir/$ac_word" || continue 1519 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1520 echo "$as_me:1520: found $ac_dir/$ac_word" >&5 1521 break 1522 done 1523 1524 fi 1525 fi 1526 CC=$ac_cv_prog_CC 806 1527 if test -n "$CC"; then 807 echo "$ac_t""$CC" 1>&6 808 else 809 echo "$ac_t""no" 1>&6 810 fi 811 1528 echo "$as_me:1528: result: $CC" >&5 1529 echo "${ECHO_T}$CC" >&6 1530 else 1531 echo "$as_me:1531: result: no" >&5 1532 echo "${ECHO_T}no" >&6 1533 fi 1534 1535 fi 1536 if test -z "$ac_cv_prog_CC"; then 1537 ac_ct_CC=$CC 1538 # Extract the first word of "gcc", so it can be a program name with args. 1539 set dummy gcc; ac_word=$2 1540 echo "$as_me:1540: checking for $ac_word" >&5 1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1543 echo $ECHO_N "(cached) $ECHO_C" >&6 1544 else 1545 if test -n "$ac_ct_CC"; then 1546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1547 else 1548 ac_save_IFS=$IFS; IFS=$ac_path_separator 1549 ac_dummy="$PATH" 1550 for ac_dir in $ac_dummy; do 1551 IFS=$ac_save_IFS 1552 test -z "$ac_dir" && ac_dir=. 1553 $as_executable_p "$ac_dir/$ac_word" || continue 1554 ac_cv_prog_ac_ct_CC="gcc" 1555 echo "$as_me:1555: found $ac_dir/$ac_word" >&5 1556 break 1557 done 1558 1559 fi 1560 fi 1561 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1562 if test -n "$ac_ct_CC"; then 1563 echo "$as_me:1563: result: $ac_ct_CC" >&5 1564 echo "${ECHO_T}$ac_ct_CC" >&6 1565 else 1566 echo "$as_me:1566: result: no" >&5 1567 echo "${ECHO_T}no" >&6 1568 fi 1569 1570 CC=$ac_ct_CC 1571 else 1572 CC="$ac_cv_prog_CC" 1573 fi 1574 1575 if test -z "$CC"; then 1576 if test -n "$ac_tool_prefix"; then 1577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1578 set dummy ${ac_tool_prefix}cc; ac_word=$2 1579 echo "$as_me:1579: checking for $ac_word" >&5 1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1581 if test "${ac_cv_prog_CC+set}" = set; then 1582 echo $ECHO_N "(cached) $ECHO_C" >&6 1583 else 1584 if test -n "$CC"; then 1585 ac_cv_prog_CC="$CC" # Let the user override the test. 1586 else 1587 ac_save_IFS=$IFS; IFS=$ac_path_separator 1588 ac_dummy="$PATH" 1589 for ac_dir in $ac_dummy; do 1590 IFS=$ac_save_IFS 1591 test -z "$ac_dir" && ac_dir=. 1592 $as_executable_p "$ac_dir/$ac_word" || continue 1593 ac_cv_prog_CC="${ac_tool_prefix}cc" 1594 echo "$as_me:1594: found $ac_dir/$ac_word" >&5 1595 break 1596 done 1597 1598 fi 1599 fi 1600 CC=$ac_cv_prog_CC 1601 if test -n "$CC"; then 1602 echo "$as_me:1602: result: $CC" >&5 1603 echo "${ECHO_T}$CC" >&6 1604 else 1605 echo "$as_me:1605: result: no" >&5 1606 echo "${ECHO_T}no" >&6 1607 fi 1608 1609 fi 1610 if test -z "$ac_cv_prog_CC"; then 1611 ac_ct_CC=$CC 1612 # Extract the first word of "cc", so it can be a program name with args. 1613 set dummy cc; ac_word=$2 1614 echo "$as_me:1614: checking for $ac_word" >&5 1615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1617 echo $ECHO_N "(cached) $ECHO_C" >&6 1618 else 1619 if test -n "$ac_ct_CC"; then 1620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1621 else 1622 ac_save_IFS=$IFS; IFS=$ac_path_separator 1623 ac_dummy="$PATH" 1624 for ac_dir in $ac_dummy; do 1625 IFS=$ac_save_IFS 1626 test -z "$ac_dir" && ac_dir=. 1627 $as_executable_p "$ac_dir/$ac_word" || continue 1628 ac_cv_prog_ac_ct_CC="cc" 1629 echo "$as_me:1629: found $ac_dir/$ac_word" >&5 1630 break 1631 done 1632 1633 fi 1634 fi 1635 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1636 if test -n "$ac_ct_CC"; then 1637 echo "$as_me:1637: result: $ac_ct_CC" >&5 1638 echo "${ECHO_T}$ac_ct_CC" >&6 1639 else 1640 echo "$as_me:1640: result: no" >&5 1641 echo "${ECHO_T}no" >&6 1642 fi 1643 1644 CC=$ac_ct_CC 1645 else 1646 CC="$ac_cv_prog_CC" 1647 fi 1648 1649 fi 812 1650 if test -z "$CC"; then 813 1651 # Extract the first word of "cc", so it can be a program name with args. 814 1652 set dummy cc; ac_word=$2 815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6816 echo "configure:817: checking for $ac_word" >&5817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then818 echo $ ac_n "(cached) $ac_c" 1>&61653 echo "$as_me:1653: checking for $ac_word" >&5 1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1655 if test "${ac_cv_prog_CC+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 819 1657 else 820 1658 if test -n "$CC"; then 821 1659 ac_cv_prog_CC="$CC" # Let the user override the test. 822 1660 else 823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"824 1661 ac_prog_rejected=no 825 ac_dummy="$PATH" 826 for ac_dir in $ac_dummy; do 827 test -z "$ac_dir" && ac_dir=. 828 if test -f $ac_dir/$ac_word; then 829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 830 ac_prog_rejected=yes 831 continue 832 fi 833 ac_cv_prog_CC="cc" 834 break 835 fi 836 done 837 IFS="$ac_save_ifs" 1662 ac_save_IFS=$IFS; IFS=$ac_path_separator 1663 ac_dummy="$PATH" 1664 for ac_dir in $ac_dummy; do 1665 IFS=$ac_save_IFS 1666 test -z "$ac_dir" && ac_dir=. 1667 $as_executable_p "$ac_dir/$ac_word" || continue 1668 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1669 ac_prog_rejected=yes 1670 continue 1671 fi 1672 ac_cv_prog_CC="cc" 1673 echo "$as_me:1673: found $ac_dir/$ac_word" >&5 1674 break 1675 done 1676 838 1677 if test $ac_prog_rejected = yes; then 839 1678 # We found a bogon in the path, so make sure we never use it. 840 1679 set dummy $ac_cv_prog_CC 841 1680 shift 842 if test $# -gt0; then1681 if test $# != 0; then 843 1682 # We chose a different compiler from the bogus one. 844 1683 # However, it has the same basename, so the bogon will be chosen 845 1684 # first if we set CC to just the basename; use the full file name. 846 1685 shift 847 set dummy "$ac_dir/$ac_word" "$@"1686 set dummy "$ac_dir/$ac_word" ${1+"$@"} 848 1687 shift 849 1688 ac_cv_prog_CC="$@" … … 852 1691 fi 853 1692 fi 854 CC= "$ac_cv_prog_CC"1693 CC=$ac_cv_prog_CC 855 1694 if test -n "$CC"; then 856 echo "$ac_t""$CC" 1>&6 857 else 858 echo "$ac_t""no" 1>&6 859 fi 860 861 if test -z "$CC"; then 862 case "`uname -s`" in 863 *win32* | *WIN32*) 864 # Extract the first word of "cl", so it can be a program name with args. 865 set dummy cl; ac_word=$2 866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 867 echo "configure:868: checking for $ac_word" >&5 868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 869 echo $ac_n "(cached) $ac_c" 1>&6 1695 echo "$as_me:1695: result: $CC" >&5 1696 echo "${ECHO_T}$CC" >&6 1697 else 1698 echo "$as_me:1698: result: no" >&5 1699 echo "${ECHO_T}no" >&6 1700 fi 1701 1702 fi 1703 if test -z "$CC"; then 1704 if test -n "$ac_tool_prefix"; then 1705 for ac_prog in cl 1706 do 1707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1709 echo "$as_me:1709: checking for $ac_word" >&5 1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1711 if test "${ac_cv_prog_CC+set}" = set; then 1712 echo $ECHO_N "(cached) $ECHO_C" >&6 870 1713 else 871 1714 if test -n "$CC"; then 872 1715 ac_cv_prog_CC="$CC" # Let the user override the test. 873 1716 else 874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 875 ac_dummy="$PATH" 876 for ac_dir in $ac_dummy; do 877 test -z "$ac_dir" && ac_dir=. 878 if test -f $ac_dir/$ac_word; then 879 ac_cv_prog_CC="cl" 880 break 881 fi 1717 ac_save_IFS=$IFS; IFS=$ac_path_separator 1718 ac_dummy="$PATH" 1719 for ac_dir in $ac_dummy; do 1720 IFS=$ac_save_IFS 1721 test -z "$ac_dir" && ac_dir=. 1722 $as_executable_p "$ac_dir/$ac_word" || continue 1723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1724 echo "$as_me:1724: found $ac_dir/$ac_word" >&5 1725 break 1726 done 1727 1728 fi 1729 fi 1730 CC=$ac_cv_prog_CC 1731 if test -n "$CC"; then 1732 echo "$as_me:1732: result: $CC" >&5 1733 echo "${ECHO_T}$CC" >&6 1734 else 1735 echo "$as_me:1735: result: no" >&5 1736 echo "${ECHO_T}no" >&6 1737 fi 1738 1739 test -n "$CC" && break 882 1740 done 883 IFS="$ac_save_ifs" 884 fi 885 fi 886 CC="$ac_cv_prog_CC" 887 if test -n "$CC"; then 888 echo "$ac_t""$CC" 1>&6 889 else 890 echo "$ac_t""no" 1>&6 891 fi 892 ;; 893 esac 894 fi 895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 896 fi 897 898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 900 901 ac_ext=c 902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 903 ac_cpp='$CPP $CPPFLAGS' 904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 906 cross_compiling=$ac_cv_prog_cc_cross 907 908 cat > conftest.$ac_ext << EOF 909 910 #line 911 "configure" 911 #include "confdefs.h" 912 913 main(){return(0);} 914 EOF 915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 916 ac_cv_prog_cc_works=yes 917 # If we can't run a trivial program, we are probably using a cross compiler. 918 if (./conftest; exit) 2>/dev/null; then 919 ac_cv_prog_cc_cross=no 920 else 921 ac_cv_prog_cc_cross=yes 922 fi 923 else 924 echo "configure: failed program was:" >&5 925 cat conftest.$ac_ext >&5 926 ac_cv_prog_cc_works=no 927 fi 928 rm -fr conftest* 929 ac_ext=c 930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 931 ac_cpp='$CPP $CPPFLAGS' 932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 934 cross_compiling=$ac_cv_prog_cc_cross 935 936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 937 if test $ac_cv_prog_cc_works = no; then 938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 939 fi 940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 943 cross_compiling=$ac_cv_prog_cc_cross 944 945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 946 echo "configure:947: checking whether we are using GNU C" >&5 947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 948 echo $ac_n "(cached) $ac_c" 1>&6 949 else 950 cat > conftest.c <<EOF 951 #ifdef __GNUC__ 952 yes; 1741 fi 1742 if test -z "$CC"; then 1743 ac_ct_CC=$CC 1744 for ac_prog in cl 1745 do 1746 # Extract the first word of "$ac_prog", so it can be a program name with args. 1747 set dummy $ac_prog; ac_word=$2 1748 echo "$as_me:1748: checking for $ac_word" >&5 1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752 else 1753 if test -n "$ac_ct_CC"; then 1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1755 else 1756 ac_save_IFS=$IFS; IFS=$ac_path_separator 1757 ac_dummy="$PATH" 1758 for ac_dir in $ac_dummy; do 1759 IFS=$ac_save_IFS 1760 test -z "$ac_dir" && ac_dir=. 1761 $as_executable_p "$ac_dir/$ac_word" || continue 1762 ac_cv_prog_ac_ct_CC="$ac_prog" 1763 echo "$as_me:1763: found $ac_dir/$ac_word" >&5 1764 break 1765 done 1766 1767 fi 1768 fi 1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1770 if test -n "$ac_ct_CC"; then 1771 echo "$as_me:1771: result: $ac_ct_CC" >&5 1772 echo "${ECHO_T}$ac_ct_CC" >&6 1773 else 1774 echo "$as_me:1774: result: no" >&5 1775 echo "${ECHO_T}no" >&6 1776 fi 1777 1778 test -n "$ac_ct_CC" && break 1779 done 1780 1781 CC=$ac_ct_CC 1782 fi 1783 1784 fi 1785 1786 test -z "$CC" && { { echo "$as_me:1786: error: no acceptable cc found in \$PATH" >&5 1787 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1788 { (exit 1); exit 1; }; } 1789 1790 echo "$as_me:1790: checking whether we are using the GNU C compiler" >&5 1791 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1792 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1793 echo $ECHO_N "(cached) $ECHO_C" >&6 1794 else 1795 cat >conftest.$ac_ext <<_ACEOF 1796 #line 1796 "configure" 1797 #include "confdefs.h" 1798 1799 int 1800 main () 1801 { 1802 #ifndef __GNUC__ 1803 choke me 953 1804 #endif 954 EOF 955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 956 ac_cv_prog_gcc=yes 957 else 958 ac_cv_prog_gcc=no 959 fi 960 fi 961 962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 963 964 if test $ac_cv_prog_gcc = yes; then 965 GCC=yes 966 else 967 GCC= 968 fi 969 970 ac_test_CFLAGS="${CFLAGS+set}" 971 ac_save_CFLAGS="$CFLAGS" 972 CFLAGS= 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977 else 978 echo 'void f(){}' > conftest.c 979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1805 1806 ; 1807 return 0; 1808 } 1809 _ACEOF 1810 rm -f conftest.$ac_objext 1811 if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5 1812 (eval $ac_compile) 2>&5 1813 ac_status=$? 1814 echo "$as_me:1814: \$? = $ac_status" >&5 1815 (exit $ac_status); } && 1816 { ac_try='test -s conftest.$ac_objext' 1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5 1818 (eval $ac_try) 2>&5 1819 ac_status=$? 1820 echo "$as_me:1820: \$? = $ac_status" >&5 1821 (exit $ac_status); }; }; then 1822 ac_compiler_gnu=yes 1823 else 1824 echo "$as_me: failed program was:" >&5 1825 cat conftest.$ac_ext >&5 1826 ac_compiler_gnu=no 1827 fi 1828 rm -f conftest.$ac_objext conftest.$ac_ext 1829 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1830 1831 fi 1832 echo "$as_me:1832: result: $ac_cv_c_compiler_gnu" >&5 1833 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1834 GCC=`test $ac_compiler_gnu = yes && echo yes` 1835 ac_test_CFLAGS=${CFLAGS+set} 1836 ac_save_CFLAGS=$CFLAGS 1837 CFLAGS="-g" 1838 echo "$as_me:1838: checking whether $CC accepts -g" >&5 1839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1840 if test "${ac_cv_prog_cc_g+set}" = set; then 1841 echo $ECHO_N "(cached) $ECHO_C" >&6 1842 else 1843 cat >conftest.$ac_ext <<_ACEOF 1844 #line 1844 "configure" 1845 #include "confdefs.h" 1846 1847 int 1848 main () 1849 { 1850 1851 ; 1852 return 0; 1853 } 1854 _ACEOF 1855 rm -f conftest.$ac_objext 1856 if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5 1857 (eval $ac_compile) 2>&5 1858 ac_status=$? 1859 echo "$as_me:1859: \$? = $ac_status" >&5 1860 (exit $ac_status); } && 1861 { ac_try='test -s conftest.$ac_objext' 1862 { (eval echo "$as_me:1862: \"$ac_try\"") >&5 1863 (eval $ac_try) 2>&5 1864 ac_status=$? 1865 echo "$as_me:1865: \$? = $ac_status" >&5 1866 (exit $ac_status); }; }; then 980 1867 ac_cv_prog_cc_g=yes 981 1868 else 982 ac_cv_prog_cc_g=no 983 fi 984 rm -f conftest* 985 986 fi 987 988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1869 echo "$as_me: failed program was:" >&5 1870 cat conftest.$ac_ext >&5 1871 ac_cv_prog_cc_g=no 1872 fi 1873 rm -f conftest.$ac_objext conftest.$ac_ext 1874 fi 1875 echo "$as_me:1875: result: $ac_cv_prog_cc_g" >&5 1876 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 989 1877 if test "$ac_test_CFLAGS" = set; then 990 CFLAGS= "$ac_save_CFLAGS"1878 CFLAGS=$ac_save_CFLAGS 991 1879 elif test $ac_cv_prog_cc_g = yes; then 992 1880 if test "$GCC" = yes; then … … 1002 1890 fi 1003 1891 fi 1892 # Some people use a C++ compiler to compile C. Since we use `exit', 1893 # in C++ we need to declare it. In case someone uses the same compiler 1894 # for both compiling C and C++ we need to have the C++ compiler decide 1895 # the declaration of exit, since it's the most demanding environment. 1896 cat >conftest.$ac_ext <<_ACEOF 1897 #ifndef __cplusplus 1898 choke me 1899 #endif 1900 _ACEOF 1901 rm -f conftest.$ac_objext 1902 if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5 1903 (eval $ac_compile) 2>&5 1904 ac_status=$? 1905 echo "$as_me:1905: \$? = $ac_status" >&5 1906 (exit $ac_status); } && 1907 { ac_try='test -s conftest.$ac_objext' 1908 { (eval echo "$as_me:1908: \"$ac_try\"") >&5 1909 (eval $ac_try) 2>&5 1910 ac_status=$? 1911 echo "$as_me:1911: \$? = $ac_status" >&5 1912 (exit $ac_status); }; }; then 1913 for ac_declaration in \ 1914 ''\ 1915 '#include <stdlib.h>' \ 1916 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1917 'extern "C" void std::exit (int); using std::exit;' \ 1918 'extern "C" void exit (int) throw ();' \ 1919 'extern "C" void exit (int);' \ 1920 'void exit (int);' 1921 do 1922 cat >conftest.$ac_ext <<_ACEOF 1923 #line 1923 "configure" 1924 #include "confdefs.h" 1925 #include <stdlib.h> 1926 $ac_declaration 1927 int 1928 main () 1929 { 1930 exit (42); 1931 ; 1932 return 0; 1933 } 1934 _ACEOF 1935 rm -f conftest.$ac_objext 1936 if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5 1937 (eval $ac_compile) 2>&5 1938 ac_status=$? 1939 echo "$as_me:1939: \$? = $ac_status" >&5 1940 (exit $ac_status); } && 1941 { ac_try='test -s conftest.$ac_objext' 1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5 1943 (eval $ac_try) 2>&5 1944 ac_status=$? 1945 echo "$as_me:1945: \$? = $ac_status" >&5 1946 (exit $ac_status); }; }; then 1947 : 1948 else 1949 echo "$as_me: failed program was:" >&5 1950 cat conftest.$ac_ext >&5 1951 continue 1952 fi 1953 rm -f conftest.$ac_objext conftest.$ac_ext 1954 cat >conftest.$ac_ext <<_ACEOF 1955 #line 1955 "configure" 1956 #include "confdefs.h" 1957 $ac_declaration 1958 int 1959 main () 1960 { 1961 exit (42); 1962 ; 1963 return 0; 1964 } 1965 _ACEOF 1966 rm -f conftest.$ac_objext 1967 if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5 1968 (eval $ac_compile) 2>&5 1969 ac_status=$? 1970 echo "$as_me:1970: \$? = $ac_status" >&5 1971 (exit $ac_status); } && 1972 { ac_try='test -s conftest.$ac_objext' 1973 { (eval echo "$as_me:1973: \"$ac_try\"") >&5 1974 (eval $ac_try) 2>&5 1975 ac_status=$? 1976 echo "$as_me:1976: \$? = $ac_status" >&5 1977 (exit $ac_status); }; }; then 1978 break 1979 else 1980 echo "$as_me: failed program was:" >&5 1981 cat conftest.$ac_ext >&5 1982 fi 1983 rm -f conftest.$ac_objext conftest.$ac_ext 1984 done 1985 echo '#ifdef __cplusplus' >>confdefs.h 1986 echo $ac_declaration >>confdefs.h 1987 echo '#endif' >>confdefs.h 1988 1989 else 1990 echo "$as_me: failed program was:" >&5 1991 cat conftest.$ac_ext >&5 1992 fi 1993 rm -f conftest.$ac_objext conftest.$ac_ext 1994 ac_ext=c 1995 ac_cpp='$CPP $CPPFLAGS' 1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1004 1999 1005 2000 ac_aux_dir= … … 1013 2008 ac_install_sh="$ac_aux_dir/install.sh -c" 1014 2009 break 2010 elif test -f $ac_dir/shtool; then 2011 ac_aux_dir=$ac_dir 2012 ac_install_sh="$ac_aux_dir/shtool install -c" 2013 break 1015 2014 fi 1016 2015 done 1017 2016 if test -z "$ac_aux_dir"; then 1018 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1019 fi 1020 ac_config_guess=$ac_aux_dir/config.guess 1021 ac_config_sub=$ac_aux_dir/config.sub 1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2017 { { echo "$as_me:2017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2018 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2019 { (exit 1); exit 1; }; } 2020 fi 2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2023 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1023 2024 1024 2025 # Find a good install program. We prefer a C program (faster), … … 1029 2030 # IRIX /sbin/install 1030 2031 # AIX /bin/install 2032 # AmigaOS /C/install, which installs bootblocks on floppy discs 1031 2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1032 2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1033 2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1034 2036 # ./install, which can be erroneously created by make from ./install.sh. 1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61036 echo "configure:1037: checking for a BSD compatible install" >&52037 echo "$as_me:2037: checking for a BSD compatible install" >&5 2038 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1037 2039 if test -z "$INSTALL"; then 1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then1039 echo $ ac_n "(cached) $ac_c" 1>&61040 else 1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"2040 if test "${ac_cv_path_install+set}" = set; then 2041 echo $ECHO_N "(cached) $ECHO_C" >&6 2042 else 2043 ac_save_IFS=$IFS; IFS=$ac_path_separator 1042 2044 for ac_dir in $PATH; do 2045 IFS=$ac_save_IFS 1043 2046 # Account for people who put trailing slashes in PATH elements. 1044 case "$ac_dir/" in 1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2047 case $ac_dir/ in 2048 / | ./ | .// | /cC/* \ 2049 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2050 | /usr/ucb/* ) ;; 1046 2051 *) 1047 2052 # OSF1 and SCO ODT 3.0 have their own names for install. … … 1049 2054 # by default. 1050 2055 for ac_prog in ginstall scoinst install; do 1051 if test -f $ac_dir/$ac_prog; then2056 if $as_executable_p "$ac_dir/$ac_prog"; then 1052 2057 if test $ac_prog = install && 1053 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then2058 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 1054 2059 # AIX install. It has an incompatible calling convention. 2060 : 2061 elif test $ac_prog = install && 2062 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2063 # program-specific install script used by HP pwplus--don't use. 1055 2064 : 1056 2065 else … … 1063 2072 esac 1064 2073 done 1065 IFS="$ac_save_IFS"1066 2074 1067 2075 fi 1068 2076 if test "${ac_cv_path_install+set}" = set; then 1069 INSTALL= "$ac_cv_path_install"2077 INSTALL=$ac_cv_path_install 1070 2078 else 1071 2079 # As a last resort, use the slow shell script. We don't cache a … … 1073 2081 # break other packages using the cache if that directory is 1074 2082 # removed, or if the path is relative. 1075 INSTALL= "$ac_install_sh"2083 INSTALL=$ac_install_sh 1076 2084 fi 1077 2085 fi 1078 echo "$ac_t""$INSTALL" 1>&6 2086 echo "$as_me:2086: result: $INSTALL" >&5 2087 echo "${ECHO_T}$INSTALL" >&6 1079 2088 1080 2089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1082 2091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1083 2092 1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL _PROGRAM}'2093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1085 2094 1086 2095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1087 2096 1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1089 echo "configure:1090: checking whether ln -s works" >&5 1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1091 echo $ac_n "(cached) $ac_c" 1>&6 1092 else 1093 rm -f conftestdata 1094 if ln -s X conftestdata 2>/dev/null 1095 then 1096 rm -f conftestdata 1097 ac_cv_prog_LN_S="ln -s" 1098 else 1099 ac_cv_prog_LN_S=ln 1100 fi 1101 fi 1102 LN_S="$ac_cv_prog_LN_S" 1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1104 echo "$ac_t""yes" 1>&6 1105 else 1106 echo "$ac_t""no" 1>&6 1107 fi 1108 1109 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1110 echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5 1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1112 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1113 echo $ac_n "(cached) $ac_c" 1>&6 1114 else 1115 cat > conftestmake <<\EOF 2097 echo "$as_me:2097: checking whether ln -s works" >&5 2098 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2099 LN_S=$as_ln_s 2100 if test "$LN_S" = "ln -s"; then 2101 echo "$as_me:2101: result: yes" >&5 2102 echo "${ECHO_T}yes" >&6 2103 else 2104 echo "$as_me:2104: result: no, using $LN_S" >&5 2105 echo "${ECHO_T}no, using $LN_S" >&6 2106 fi 2107 2108 echo "$as_me:2108: checking whether ${MAKE-make} sets \${MAKE}" >&5 2109 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2110 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2111 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2112 echo $ECHO_N "(cached) $ECHO_C" >&6 2113 else 2114 cat >conftest.make <<\EOF 1116 2115 all: 1117 2116 @echo 'ac_maketemp="${MAKE}"' 1118 2117 EOF 1119 2118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1120 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`2119 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1121 2120 if test -n "$ac_maketemp"; then 1122 2121 eval ac_cv_prog_make_${ac_make}_set=yes … … 1124 2123 eval ac_cv_prog_make_${ac_make}_set=no 1125 2124 fi 1126 rm -f conftest make2125 rm -f conftest.make 1127 2126 fi 1128 2127 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1129 echo "$ac_t""yes" 1>&6 2128 echo "$as_me:2128: result: yes" >&5 2129 echo "${ECHO_T}yes" >&6 1130 2130 SET_MAKE= 1131 2131 else 1132 echo "$ac_t""no" 1>&6 2132 echo "$as_me:2132: result: no" >&5 2133 echo "${ECHO_T}no" >&6 1133 2134 SET_MAKE="MAKE=${MAKE-make}" 1134 2135 fi 1135 2136 1136 # Extract the first word of "ranlib", so it can be a program name with args. 1137 set dummy ranlib; ac_word=$2 1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1139 echo "configure:1140: checking for $ac_word" >&5 1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1141 echo $ac_n "(cached) $ac_c" 1>&6 2137 if test -n "$ac_tool_prefix"; then 2138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2140 echo "$as_me:2140: checking for $ac_word" >&5 2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2142 if test "${ac_cv_prog_RANLIB+set}" = set; then 2143 echo $ECHO_N "(cached) $ECHO_C" >&6 1142 2144 else 1143 2145 if test -n "$RANLIB"; then 1144 2146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1145 2147 else 1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1147 1148 1149 test -z "$ac_dir" && ac_dir=.1150 if test -f $ac_dir/$ac_word; then1151 ac_cv_prog_RANLIB="ranlib"1152 break 1153 fi 1154 done 1155 IFS="$ac_save_ifs" 1156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1157 fi 1158 fi 1159 RANLIB= "$ac_cv_prog_RANLIB"2148 ac_save_IFS=$IFS; IFS=$ac_path_separator 2149 ac_dummy="$PATH" 2150 for ac_dir in $ac_dummy; do 2151 IFS=$ac_save_IFS 2152 test -z "$ac_dir" && ac_dir=. 2153 $as_executable_p "$ac_dir/$ac_word" || continue 2154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2155 echo "$as_me:2155: found $ac_dir/$ac_word" >&5 2156 break 2157 done 2158 2159 fi 2160 fi 2161 RANLIB=$ac_cv_prog_RANLIB 1160 2162 if test -n "$RANLIB"; then 1161 echo "$ac_t""$RANLIB" 1>&6 1162 else 1163 echo "$ac_t""no" 1>&6 1164 fi 1165 1166 1167 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1168 echo "configure:1169: checking how to run the C preprocessor" >&5 2163 echo "$as_me:2163: result: $RANLIB" >&5 2164 echo "${ECHO_T}$RANLIB" >&6 2165 else 2166 echo "$as_me:2166: result: no" >&5 2167 echo "${ECHO_T}no" >&6 2168 fi 2169 2170 fi 2171 if test -z "$ac_cv_prog_RANLIB"; then 2172 ac_ct_RANLIB=$RANLIB 2173 # Extract the first word of "ranlib", so it can be a program name with args. 2174 set dummy ranlib; ac_word=$2 2175 echo "$as_me:2175: checking for $ac_word" >&5 2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2178 echo $ECHO_N "(cached) $ECHO_C" >&6 2179 else 2180 if test -n "$ac_ct_RANLIB"; then 2181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2182 else 2183 ac_save_IFS=$IFS; IFS=$ac_path_separator 2184 ac_dummy="$PATH" 2185 for ac_dir in $ac_dummy; do 2186 IFS=$ac_save_IFS 2187 test -z "$ac_dir" && ac_dir=. 2188 $as_executable_p "$ac_dir/$ac_word" || continue 2189 ac_cv_prog_ac_ct_RANLIB="ranlib" 2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5 2191 break 2192 done 2193 2194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2195 fi 2196 fi 2197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2198 if test -n "$ac_ct_RANLIB"; then 2199 echo "$as_me:2199: result: $ac_ct_RANLIB" >&5 2200 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2201 else 2202 echo "$as_me:2202: result: no" >&5 2203 echo "${ECHO_T}no" >&6 2204 fi 2205 2206 RANLIB=$ac_ct_RANLIB 2207 else 2208 RANLIB="$ac_cv_prog_RANLIB" 2209 fi 2210 2211 ac_ext=c 2212 ac_cpp='$CPP $CPPFLAGS' 2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2216 echo "$as_me:2216: checking how to run the C preprocessor" >&5 2217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1169 2218 # On Suns, sometimes $CPP names a directory. 1170 2219 if test -n "$CPP" && test -d "$CPP"; then … … 1172 2221 fi 1173 2222 if test -z "$CPP"; then 1174 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1175 echo $ac_n "(cached) $ac_c" 1>&6 1176 else 1177 # This must be in double quotes, not single quotes, because CPP may get 1178 # substituted into the Makefile and "${CC-cc}" will confuse make. 1179 CPP="${CC-cc} -E" 2223 if test "${ac_cv_prog_CPP+set}" = set; then 2224 echo $ECHO_N "(cached) $ECHO_C" >&6 2225 else 2226 # Double quotes because CPP needs to be expanded 2227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2228 do 2229 # break 2 since there is a loop in there. 2230 ac_preproc_ok=false 2231 for ac_c_preproc_warn_flag in '' yes 2232 do 2233 # Use a header file that comes with gcc, so configuring glibc 2234 # with a fresh cross-compiler works. 1180 2235 # On the NeXT, cc -E runs the code through the compiler's parser, 1181 # not just through cpp. 1182 cat > conftest.$ac_ext <<EOF1183 #line 1184"configure"2236 # not just through cpp. "Syntax error" is here to catch this case. 2237 cat >conftest.$ac_ext <<_ACEOF 2238 #line 2238 "configure" 1184 2239 #include "confdefs.h" 1185 2240 #include <assert.h> 1186 Syntax Error 1187 EOF 1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1191 if test -z "$ac_err"; then 2241 Syntax error 2242 _ACEOF 2243 if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5 2244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2245 ac_status=$? 2246 egrep -v '^ *\+' conftest.er1 >conftest.err 2247 rm -f conftest.er1 2248 cat conftest.err >&5 2249 echo "$as_me:2249: \$? = $ac_status" >&5 2250 (exit $ac_status); } >/dev/null; then 2251 if test -s conftest.err; then 2252 ac_cpp_err=$ac_c_preproc_warn_flag 2253 else 2254 ac_cpp_err= 2255 fi 2256 else 2257 ac_cpp_err=yes 2258 fi 2259 if test -z "$ac_cpp_err"; then 1192 2260 : 1193 2261 else 1194 echo "$ac_err" >&5 1195 echo "configure: failed program was:" >&5 2262 echo "$as_me: failed program was:" >&5 1196 2263 cat conftest.$ac_ext >&5 1197 rm -rf conftest* 1198 CPP="${CC-cc} -E -traditional-cpp" 1199 cat > conftest.$ac_ext <<EOF 1200 #line 1201 "configure" 2264 # Broken: fails on valid input. 2265 continue 2266 fi 2267 rm -f conftest.err conftest.$ac_ext 2268 2269 # OK, works on sane cases. Now check whether non-existent headers 2270 # can be detected and how. 2271 cat >conftest.$ac_ext <<_ACEOF 2272 #line 2272 "configure" 2273 #include "confdefs.h" 2274 #include <ac_nonexistent.h> 2275 _ACEOF 2276 if { (eval echo "$as_me:2276: \"$ac_cpp conftest.$ac_ext\"") >&5 2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2278 ac_status=$? 2279 egrep -v '^ *\+' conftest.er1 >conftest.err 2280 rm -f conftest.er1 2281 cat conftest.err >&5 2282 echo "$as_me:2282: \$? = $ac_status" >&5 2283 (exit $ac_status); } >/dev/null; then 2284 if test -s conftest.err; then 2285 ac_cpp_err=$ac_c_preproc_warn_flag 2286 else 2287 ac_cpp_err= 2288 fi 2289 else 2290 ac_cpp_err=yes 2291 fi 2292 if test -z "$ac_cpp_err"; then 2293 # Broken: success on invalid input. 2294 continue 2295 else 2296 echo "$as_me: failed program was:" >&5 2297 cat conftest.$ac_ext >&5 2298 # Passes both tests. 2299 ac_preproc_ok=: 2300 break 2301 fi 2302 rm -f conftest.err conftest.$ac_ext 2303 2304 done 2305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2306 rm -f conftest.err conftest.$ac_ext 2307 if $ac_preproc_ok; then 2308 break 2 2309 fi 2310 2311 done 2312 ac_cv_prog_CPP=$CPP 2313 2314 fi 2315 CPP=$ac_cv_prog_CPP 2316 else 2317 ac_cv_prog_CPP=$CPP 2318 fi 2319 echo "$as_me:2319: result: $CPP" >&5 2320 echo "${ECHO_T}$CPP" >&6 2321 ac_preproc_ok=false 2322 for ac_c_preproc_warn_flag in '' yes 2323 do 2324 # Use a header file that comes with gcc, so configuring glibc 2325 # with a fresh cross-compiler works. 2326 # On the NeXT, cc -E runs the code through the compiler's parser, 2327 # not just through cpp. "Syntax error" is here to catch this case. 2328 cat >conftest.$ac_ext <<_ACEOF 2329 #line 2329 "configure" 1201 2330 #include "confdefs.h" 1202 2331 #include <assert.h> 1203 Syntax Error 1204 EOF 1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1208 if test -z "$ac_err"; then 2332 Syntax error 2333 _ACEOF 2334 if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5 2335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2336 ac_status=$? 2337 egrep -v '^ *\+' conftest.er1 >conftest.err 2338 rm -f conftest.er1 2339 cat conftest.err >&5 2340 echo "$as_me:2340: \$? = $ac_status" >&5 2341 (exit $ac_status); } >/dev/null; then 2342 if test -s conftest.err; then 2343 ac_cpp_err=$ac_c_preproc_warn_flag 2344 else 2345 ac_cpp_err= 2346 fi 2347 else 2348 ac_cpp_err=yes 2349 fi 2350 if test -z "$ac_cpp_err"; then 1209 2351 : 1210 2352 else 1211 echo "$ac_err" >&5 1212 echo "configure: failed program was:" >&5 2353 echo "$as_me: failed program was:" >&5 1213 2354 cat conftest.$ac_ext >&5 1214 rm -rf conftest* 1215 CPP="${CC-cc} -nologo -E" 1216 cat > conftest.$ac_ext <<EOF 1217 #line 1218 "configure" 1218 #include "confdefs.h" 1219 #include <assert.h> 1220 Syntax Error 1221 EOF 1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1225 if test -z "$ac_err"; then 2355 # Broken: fails on valid input. 2356 continue 2357 fi 2358 rm -f conftest.err conftest.$ac_ext 2359 2360 # OK, works on sane cases. Now check whether non-existent headers 2361 # can be detected and how. 2362 cat >conftest.$ac_ext <<_ACEOF 2363 #line 2363 "configure" 2364 #include "confdefs.h" 2365 #include <ac_nonexistent.h> 2366 _ACEOF 2367 if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5 2368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2369 ac_status=$? 2370 egrep -v '^ *\+' conftest.er1 >conftest.err 2371 rm -f conftest.er1 2372 cat conftest.err >&5 2373 echo "$as_me:2373: \$? = $ac_status" >&5 2374 (exit $ac_status); } >/dev/null; then 2375 if test -s conftest.err; then 2376 ac_cpp_err=$ac_c_preproc_warn_flag 2377 else 2378 ac_cpp_err= 2379 fi 2380 else 2381 ac_cpp_err=yes 2382 fi 2383 if test -z "$ac_cpp_err"; then 2384 # Broken: success on invalid input. 2385 continue 2386 else 2387 echo "$as_me: failed program was:" >&5 2388 cat conftest.$ac_ext >&5 2389 # Passes both tests. 2390 ac_preproc_ok=: 2391 break 2392 fi 2393 rm -f conftest.err conftest.$ac_ext 2394 2395 done 2396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2397 rm -f conftest.err conftest.$ac_ext 2398 if $ac_preproc_ok; then 1226 2399 : 1227 2400 else 1228 echo "$ac_err" >&5 1229 echo "configure: failed program was:" >&5 1230 cat conftest.$ac_ext >&5 1231 rm -rf conftest* 1232 CPP=/lib/cpp 1233 fi 1234 rm -f conftest* 1235 fi 1236 rm -f conftest* 1237 fi 1238 rm -f conftest* 1239 ac_cv_prog_CPP="$CPP" 1240 fi 1241 CPP="$ac_cv_prog_CPP" 1242 else 1243 ac_cv_prog_CPP="$CPP" 1244 fi 1245 echo "$ac_t""$CPP" 1>&6 1246 1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1248 echo "configure:1249: checking for AIX" >&5 1249 cat > conftest.$ac_ext <<EOF 1250 #line 1251 "configure" 2401 { { echo "$as_me:2401: error: C preprocessor \"$CPP\" fails sanity check" >&5 2402 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2403 { (exit 1); exit 1; }; } 2404 fi 2405 2406 ac_ext=c 2407 ac_cpp='$CPP $CPPFLAGS' 2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2411 2412 echo "$as_me:2412: checking for AIX" >&5 2413 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2414 cat >conftest.$ac_ext <<_ACEOF 2415 #line 2415 "configure" 1251 2416 #include "confdefs.h" 1252 2417 #ifdef _AIX … … 1254 2419 #endif 1255 2420 1256 EOF2421 _ACEOF 1257 2422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1258 2423 egrep "yes" >/dev/null 2>&1; then 1259 rm -rf conftest* 1260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 2424 echo "$as_me:2424: result: yes" >&5 2425 echo "${ECHO_T}yes" >&6 2426 cat >>confdefs.h <<\EOF 1261 2427 #define _ALL_SOURCE 1 1262 2428 EOF 1263 2429 1264 2430 else 1265 rm -rf conftest*1266 echo "$ac_t""no" 1>&62431 echo "$as_me:2431: result: no" >&5 2432 echo "${ECHO_T}no" >&6 1267 2433 fi 1268 2434 rm -f conftest* 1269 2435 1270 1271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1272 echo "configure:1273: checking for POSIXized ISC" >&5 2436 echo "$as_me:2436: checking for POSIXized ISC" >&5 2437 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 1273 2438 if test -d /etc/conf/kconfig.d && 1274 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&12439 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1275 2440 then 1276 echo "$ac_t""yes" 1>&6 2441 echo "$as_me:2441: result: yes" >&5 2442 echo "${ECHO_T}yes" >&6 1277 2443 ISC=yes # If later tests want to check for ISC. 1278 cat >> confdefs.h <<\EOF 2444 2445 cat >>confdefs.h <<\EOF 1279 2446 #define _POSIX_SOURCE 1 1280 2447 EOF … … 1286 2453 fi 1287 2454 else 1288 echo "$ac_t""no" 1>&6 2455 echo "$as_me:2455: result: no" >&5 2456 echo "${ECHO_T}no" >&6 1289 2457 ISC= 1290 2458 fi 1291 2459 1292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1294 echo "configure:1295: checking for minix/config.h" >&5 1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1296 echo $ac_n "(cached) $ac_c" 1>&6 1297 else 1298 cat > conftest.$ac_ext <<EOF 1299 #line 1300 "configure" 2460 echo "$as_me:2460: checking for minix/config.h" >&5 2461 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2462 if test "${ac_cv_header_minix_config_h+set}" = set; then 2463 echo $ECHO_N "(cached) $ECHO_C" >&6 2464 else 2465 cat >conftest.$ac_ext <<_ACEOF 2466 #line 2466 "configure" 1300 2467 #include "confdefs.h" 1301 2468 #include <minix/config.h> 1302 EOF 1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1306 if test -z "$ac_err"; then 1307 rm -rf conftest* 1308 eval "ac_cv_header_$ac_safe=yes" 1309 else 1310 echo "$ac_err" >&5 1311 echo "configure: failed program was:" >&5 2469 _ACEOF 2470 if { (eval echo "$as_me:2470: \"$ac_cpp conftest.$ac_ext\"") >&5 2471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2472 ac_status=$? 2473 egrep -v '^ *\+' conftest.er1 >conftest.err 2474 rm -f conftest.er1 2475 cat conftest.err >&5 2476 echo "$as_me:2476: \$? = $ac_status" >&5 2477 (exit $ac_status); } >/dev/null; then 2478 if test -s conftest.err; then 2479 ac_cpp_err=$ac_c_preproc_warn_flag 2480 else 2481 ac_cpp_err= 2482 fi 2483 else 2484 ac_cpp_err=yes 2485 fi 2486 if test -z "$ac_cpp_err"; then 2487 ac_cv_header_minix_config_h=yes 2488 else 2489 echo "$as_me: failed program was:" >&5 1312 2490 cat conftest.$ac_ext >&5 1313 rm -rf conftest*1314 eval "ac_cv_header_$ac_safe=no" 1315 fi 1316 rm -f conftest* 1317 fi 1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1319 echo "$ac_t""yes" 1>&6 2491 ac_cv_header_minix_config_h=no 2492 fi 2493 rm -f conftest.err conftest.$ac_ext 2494 fi 2495 echo "$as_me:2495: result: $ac_cv_header_minix_config_h" >&5 2496 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2497 if test $ac_cv_header_minix_config_h = yes; then 1320 2498 MINIX=yes 1321 2499 else 1322 echo "$ac_t""no" 1>&6 1323 MINIX= 2500 MINIX= 1324 2501 fi 1325 2502 1326 2503 if test "$MINIX" = yes; then 1327 cat >> confdefs.h <<\EOF 2504 2505 cat >>confdefs.h <<\EOF 1328 2506 #define _POSIX_SOURCE 1 1329 2507 EOF 1330 2508 1331 cat >>confdefs.h <<\EOF2509 cat >>confdefs.h <<\EOF 1332 2510 #define _POSIX_1_SOURCE 2 1333 2511 EOF 1334 2512 1335 cat >>confdefs.h <<\EOF2513 cat >>confdefs.h <<\EOF 1336 2514 #define _MINIX 1 1337 2515 EOF … … 1339 2517 fi 1340 2518 1341 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&61342 echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&51343 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then1344 echo $ ac_n "(cached) $ac_c" 1>&62519 echo "$as_me:2519: checking for ${CC-cc} option to accept ANSI C" >&5 2520 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 2521 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2522 echo $ECHO_N "(cached) $ECHO_C" >&6 1345 2523 else 1346 2524 ac_cv_prog_cc_stdc=no … … 1355 2533 do 1356 2534 CFLAGS="$ac_save_CFLAGS $ac_arg" 1357 cat > conftest.$ac_ext <<EOF1358 #line 1359"configure"2535 cat >conftest.$ac_ext <<_ACEOF 2536 #line 2536 "configure" 1359 2537 #include "confdefs.h" 1360 2538 #if !defined(__STDC__) || __STDC__ != 1 1361 2539 choke me 1362 #endif 1363 1364 int main() { 2540 #endif 2541 2542 int 2543 main () 2544 { 1365 2545 int test (int i, double x); 1366 2546 struct s1 {int (*f) (int a);}; 1367 2547 struct s2 {int (*f) (double a);}; 1368 ; return 0; } 1369 EOF 1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1371 rm -rf conftest* 2548 ; 2549 return 0; 2550 } 2551 _ACEOF 2552 rm -f conftest.$ac_objext 2553 if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5 2554 (eval $ac_compile) 2>&5 2555 ac_status=$? 2556 echo "$as_me:2556: \$? = $ac_status" >&5 2557 (exit $ac_status); } && 2558 { ac_try='test -s conftest.$ac_objext' 2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5 2560 (eval $ac_try) 2>&5 2561 ac_status=$? 2562 echo "$as_me:2562: \$? = $ac_status" >&5 2563 (exit $ac_status); }; }; then 1372 2564 ac_cv_prog_cc_stdc="$ac_arg"; break 1373 2565 else 1374 echo " configure: failed program was:" >&51375 1376 fi 1377 rm -f conftest *2566 echo "$as_me: failed program was:" >&5 2567 cat conftest.$ac_ext >&5 2568 fi 2569 rm -f conftest.$ac_objext conftest.$ac_ext 1378 2570 done 1379 2571 CFLAGS="$ac_save_CFLAGS" … … 1381 2573 fi 1382 2574 1383 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2575 echo "$as_me:2575: result: $ac_cv_prog_cc_stdc" >&5 2576 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1384 2577 case "x$ac_cv_prog_cc_stdc" in 1385 2578 x|xno) ;; … … 1387 2580 esac 1388 2581 1389 1390 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 1391 echo "configure:1392: checking for function prototypes" >&5 2582 echo "$as_me:2582: checking for function prototypes" >&5 2583 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 1392 2584 if test "$ac_cv_prog_cc_stdc" != no; then 1393 echo "$ac_t""yes" 1>&6 1394 cat >> confdefs.h <<\EOF 2585 echo "$as_me:2585: result: yes" >&5 2586 echo "${ECHO_T}yes" >&6 2587 cat >>confdefs.h <<\EOF 1395 2588 #define PROTOTYPES 1 1396 2589 EOF … … 1398 2591 U= ANSI2KNR= 1399 2592 else 1400 echo "$ac_t""no" 1>&6 2593 echo "$as_me:2593: result: no" >&5 2594 echo "${ECHO_T}no" >&6 1401 2595 U=_ ANSI2KNR=ansi2knr 1402 2596 fi 1403 2597 1404 echo $ac_n "checking for working const""... $ac_c" 1>&6 1405 echo "configure:1406: checking for working const" >&5 1406 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1407 echo $ac_n "(cached) $ac_c" 1>&6 1408 else 1409 cat > conftest.$ac_ext <<EOF 1410 #line 1411 "configure" 1411 #include "confdefs.h" 1412 1413 int main() { 1414 1415 /* Ultrix mips cc rejects this. */ 1416 typedef int charset[2]; const charset x; 1417 /* SunOS 4.1.1 cc rejects this. */ 1418 char const *const *ccp; 1419 char **p; 1420 /* NEC SVR4.0.2 mips cc rejects this. */ 1421 struct point {int x, y;}; 1422 static struct point const zero = {0,0}; 1423 /* AIX XL C 1.02.0.0 rejects this. 1424 It does not let you subtract one const X* pointer from another in an arm 1425 of an if-expression whose if-part is not a constant expression */ 1426 const char *g = "string"; 1427 ccp = &g + (g ? g-g : 0); 1428 /* HPUX 7.0 cc rejects these. */ 1429 ++ccp; 1430 p = (char**) ccp; 1431 ccp = (char const *const *) p; 1432 { /* SCO 3.2v4 cc rejects this. */ 1433 char *t; 1434 char const *s = 0 ? (char *) 0 : (char const *) 0; 1435 1436 *t++ = 0; 2598 echo "$as_me:2598: checking for $CC option to accept ANSI C" >&5 2599 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2600 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2601 echo $ECHO_N "(cached) $ECHO_C" >&6 2602 else 2603 ac_cv_prog_cc_stdc=no 2604 ac_save_CC=$CC 2605 cat >conftest.$ac_ext <<_ACEOF 2606 #line 2606 "configure" 2607 #include "confdefs.h" 2608 #include <stdarg.h> 2609 #include <stdio.h> 2610 #include <sys/types.h> 2611 #include <sys/stat.h> 2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2613 struct buf { int x; }; 2614 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2615 static char *e (p, i) 2616 char **p; 2617 int i; 2618 { 2619 return p[i]; 1437 2620 } 1438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1439 int x[] = {25, 17}; 1440 const int *foo = &x[0]; 1441 ++foo; 2621 static char *f (char * (*g) (char **, int), char **p, ...) 2622 { 2623 char *s; 2624 va_list v; 2625 va_start (v,p); 2626 s = g (p, va_arg (v,int)); 2627 va_end (v); 2628 return s; 1442 2629 } 1443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1444 typedef const int *iptr; 1445 iptr p = 0; 1446 ++p; 2630 int test (int i, double x); 2631 struct s1 {int (*f) (int a);}; 2632 struct s2 {int (*f) (double a);}; 2633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2634 int argc; 2635 char **argv; 2636 int 2637 main () 2638 { 2639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2640 ; 2641 return 0; 1447 2642 } 1448 { /* AIX XL C 1.02.0.0 rejects this saying 1449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1450 struct s { int j; const int *ap[3]; }; 1451 struct s *b; b->j = 5; 2643 _ACEOF 2644 # Don't try gcc -ansi; that turns off useful extensions and 2645 # breaks some systems' header files. 2646 # AIX -qlanglvl=ansi 2647 # Ultrix and OSF/1 -std1 2648 # HP-UX 10.20 and later -Ae 2649 # HP-UX older versions -Aa -D_HPUX_SOURCE 2650 # SVR4 -Xc -D__EXTENSIONS__ 2651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2652 do 2653 CC="$ac_save_CC $ac_arg" 2654 rm -f conftest.$ac_objext 2655 if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5 2656 (eval $ac_compile) 2>&5 2657 ac_status=$? 2658 echo "$as_me:2658: \$? = $ac_status" >&5 2659 (exit $ac_status); } && 2660 { ac_try='test -s conftest.$ac_objext' 2661 { (eval echo "$as_me:2661: \"$ac_try\"") >&5 2662 (eval $ac_try) 2>&5 2663 ac_status=$? 2664 echo "$as_me:2664: \$? = $ac_status" >&5 2665 (exit $ac_status); }; }; then 2666 ac_cv_prog_cc_stdc=$ac_arg 2667 break 2668 else 2669 echo "$as_me: failed program was:" >&5 2670 cat conftest.$ac_ext >&5 2671 fi 2672 rm -f conftest.$ac_objext 2673 done 2674 rm -f conftest.$ac_ext conftest.$ac_objext 2675 CC=$ac_save_CC 2676 2677 fi 2678 2679 case "x$ac_cv_prog_cc_stdc" in 2680 x|xno) 2681 echo "$as_me:2681: result: none needed" >&5 2682 echo "${ECHO_T}none needed" >&6 ;; 2683 *) 2684 echo "$as_me:2684: result: $ac_cv_prog_cc_stdc" >&5 2685 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2686 CC="$CC $ac_cv_prog_cc_stdc" ;; 2687 esac 2688 2689 echo "$as_me:2689: checking for an ANSI C-conforming const" >&5 2690 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2691 if test "${ac_cv_c_const+set}" = set; then 2692 echo $ECHO_N "(cached) $ECHO_C" >&6 2693 else 2694 cat >conftest.$ac_ext <<_ACEOF 2695 #line 2695 "configure" 2696 #include "confdefs.h" 2697 2698 int 2699 main () 2700 { 2701 /* FIXME: Include the comments suggested by Paul. */ 2702 #ifndef __cplusplus 2703 /* Ultrix mips cc rejects this. */ 2704 typedef int charset[2]; 2705 const charset x; 2706 /* SunOS 4.1.1 cc rejects this. */ 2707 char const *const *ccp; 2708 char **p; 2709 /* NEC SVR4.0.2 mips cc rejects this. */ 2710 struct point {int x, y;}; 2711 static struct point const zero = {0,0}; 2712 /* AIX XL C 1.02.0.0 rejects this. 2713 It does not let you subtract one const X* pointer from another in 2714 an arm of an if-expression whose if-part is not a constant 2715 expression */ 2716 const char *g = "string"; 2717 ccp = &g + (g ? g-g : 0); 2718 /* HPUX 7.0 cc rejects these. */ 2719 ++ccp; 2720 p = (char**) ccp; 2721 ccp = (char const *const *) p; 2722 { /* SCO 3.2v4 cc rejects this. */ 2723 char *t; 2724 char const *s = 0 ? (char *) 0 : (char const *) 0; 2725 2726 *t++ = 0; 2727 } 2728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2729 int x[] = {25, 17}; 2730 const int *foo = &x[0]; 2731 ++foo; 2732 } 2733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2734 typedef const int *iptr; 2735 iptr p = 0; 2736 ++p; 2737 } 2738 { /* AIX XL C 1.02.0.0 rejects this saying 2739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2740 struct s { int j; const int *ap[3]; }; 2741 struct s *b; b->j = 5; 2742 } 2743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2744 const int foo = 10; 2745 } 2746 #endif 2747 2748 ; 2749 return 0; 1452 2750 } 1453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1454 const int foo = 10; 1455 } 1456 1457 ; return 0; } 1458 EOF 1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1460 rm -rf conftest* 2751 _ACEOF 2752 rm -f conftest.$ac_objext 2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5 2754 (eval $ac_compile) 2>&5 2755 ac_status=$? 2756 echo "$as_me:2756: \$? = $ac_status" >&5 2757 (exit $ac_status); } && 2758 { ac_try='test -s conftest.$ac_objext' 2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5 2760 (eval $ac_try) 2>&5 2761 ac_status=$? 2762 echo "$as_me:2762: \$? = $ac_status" >&5 2763 (exit $ac_status); }; }; then 1461 2764 ac_cv_c_const=yes 1462 2765 else 1463 echo "configure: failed program was:" >&5 1464 cat conftest.$ac_ext >&5 1465 rm -rf conftest* 1466 ac_cv_c_const=no 1467 fi 1468 rm -f conftest* 1469 fi 1470 1471 echo "$ac_t""$ac_cv_c_const" 1>&6 2766 echo "$as_me: failed program was:" >&5 2767 cat conftest.$ac_ext >&5 2768 ac_cv_c_const=no 2769 fi 2770 rm -f conftest.$ac_objext conftest.$ac_ext 2771 fi 2772 echo "$as_me:2772: result: $ac_cv_c_const" >&5 2773 echo "${ECHO_T}$ac_cv_c_const" >&6 1472 2774 if test $ac_cv_c_const = no; then 1473 cat >> confdefs.h <<\EOF 1474 #define const 1475 EOF 1476 1477 fi 1478 1479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1480 echo "configure:1481: checking for ANSI C header files" >&5 1481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1482 echo $ac_n "(cached) $ac_c" 1>&6 1483 else 1484 cat > conftest.$ac_ext <<EOF 1485 #line 1486 "configure" 2775 2776 cat >>confdefs.h <<\EOF 2777 #define const 2778 EOF 2779 2780 fi 2781 2782 echo "$as_me:2782: checking for ANSI C header files" >&5 2783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2784 if test "${ac_cv_header_stdc+set}" = set; then 2785 echo $ECHO_N "(cached) $ECHO_C" >&6 2786 else 2787 cat >conftest.$ac_ext <<_ACEOF 2788 #line 2788 "configure" 1486 2789 #include "confdefs.h" 1487 2790 #include <stdlib.h> … … 1489 2792 #include <string.h> 1490 2793 #include <float.h> 1491 EOF 1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1495 if test -z "$ac_err"; then 1496 rm -rf conftest* 2794 2795 _ACEOF 2796 if { (eval echo "$as_me:2796: \"$ac_cpp conftest.$ac_ext\"") >&5 2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2798 ac_status=$? 2799 egrep -v '^ *\+' conftest.er1 >conftest.err 2800 rm -f conftest.er1 2801 cat conftest.err >&5 2802 echo "$as_me:2802: \$? = $ac_status" >&5 2803 (exit $ac_status); } >/dev/null; then 2804 if test -s conftest.err; then 2805 ac_cpp_err=$ac_c_preproc_warn_flag 2806 else 2807 ac_cpp_err= 2808 fi 2809 else 2810 ac_cpp_err=yes 2811 fi 2812 if test -z "$ac_cpp_err"; then 1497 2813 ac_cv_header_stdc=yes 1498 2814 else 1499 echo "$ac_err" >&5 1500 echo "configure: failed program was:" >&5 2815 echo "$as_me: failed program was:" >&5 1501 2816 cat conftest.$ac_ext >&5 1502 rm -rf conftest*1503 2817 ac_cv_header_stdc=no 1504 2818 fi 1505 rm -f conftest *2819 rm -f conftest.err conftest.$ac_ext 1506 2820 1507 2821 if test $ac_cv_header_stdc = yes; then 1508 2822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1509 cat > conftest.$ac_ext <<EOF1510 #line 1511"configure"2823 cat >conftest.$ac_ext <<_ACEOF 2824 #line 2824 "configure" 1511 2825 #include "confdefs.h" 1512 2826 #include <string.h> 1513 EOF 2827 2828 _ACEOF 1514 2829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1515 2830 egrep "memchr" >/dev/null 2>&1; then 1516 2831 : 1517 2832 else 1518 rm -rf conftest*1519 2833 ac_cv_header_stdc=no 1520 2834 fi … … 1525 2839 if test $ac_cv_header_stdc = yes; then 1526 2840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1527 cat > conftest.$ac_ext <<EOF1528 #line 1529"configure"2841 cat >conftest.$ac_ext <<_ACEOF 2842 #line 2842 "configure" 1529 2843 #include "confdefs.h" 1530 2844 #include <stdlib.h> 1531 EOF 2845 2846 _ACEOF 1532 2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1533 2848 egrep "free" >/dev/null 2>&1; then 1534 2849 : 1535 2850 else 1536 rm -rf conftest*1537 2851 ac_cv_header_stdc=no 1538 2852 fi … … 1543 2857 if test $ac_cv_header_stdc = yes; then 1544 2858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1545 if test "$cross_compiling" = yes; then2859 if test "$cross_compiling" = yes; then 1546 2860 : 1547 2861 else 1548 cat > conftest.$ac_ext <<EOF1549 #line 1550"configure"2862 cat >conftest.$ac_ext <<_ACEOF 2863 #line 2863 "configure" 1550 2864 #include "confdefs.h" 1551 2865 #include <ctype.h> 1552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2866 #if ((' ' & 0x0FF) == 0x020) 2867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2869 #else 2870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2871 || ('j' <= (c) && (c) <= 'r') \ 2872 || ('s' <= (c) && (c) <= 'z')) 2873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2874 #endif 2875 1554 2876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1555 int main () { int i; for (i = 0; i < 256; i++) 1556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1557 exit (0); } 1558 1559 EOF 1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1561 then 2877 int 2878 main () 2879 { 2880 int i; 2881 for (i = 0; i < 256; i++) 2882 if (XOR (islower (i), ISLOWER (i)) 2883 || toupper (i) != TOUPPER (i)) 2884 exit(2); 2885 exit (0); 2886 } 2887 _ACEOF 2888 rm -f conftest$ac_exeext 2889 if { (eval echo "$as_me:2889: \"$ac_link\"") >&5 2890 (eval $ac_link) 2>&5 2891 ac_status=$? 2892 echo "$as_me:2892: \$? = $ac_status" >&5 2893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5 2895 (eval $ac_try) 2>&5 2896 ac_status=$? 2897 echo "$as_me:2897: \$? = $ac_status" >&5 2898 (exit $ac_status); }; }; then 1562 2899 : 1563 2900 else 1564 echo "configure: failed program was:" >&5 2901 echo "$as_me: program exited with status $ac_status" >&5 2902 echo "$as_me: failed program was:" >&5 2903 cat conftest.$ac_ext >&5 2904 ac_cv_header_stdc=no 2905 fi 2906 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2907 fi 2908 fi 2909 fi 2910 echo "$as_me:2910: result: $ac_cv_header_stdc" >&5 2911 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2912 if test $ac_cv_header_stdc = yes; then 2913 2914 cat >>confdefs.h <<\EOF 2915 #define STDC_HEADERS 1 2916 EOF 2917 2918 fi 2919 2920 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2921 do 2922 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2923 echo "$as_me:2923: checking for $ac_header" >&5 2924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2925 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927 else 2928 cat >conftest.$ac_ext <<_ACEOF 2929 #line 2929 "configure" 2930 #include "confdefs.h" 2931 #include <$ac_header> 2932 _ACEOF 2933 if { (eval echo "$as_me:2933: \"$ac_cpp conftest.$ac_ext\"") >&5 2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2935 ac_status=$? 2936 egrep -v '^ *\+' conftest.er1 >conftest.err 2937 rm -f conftest.er1 2938 cat conftest.err >&5 2939 echo "$as_me:2939: \$? = $ac_status" >&5 2940 (exit $ac_status); } >/dev/null; then 2941 if test -s conftest.err; then 2942 ac_cpp_err=$ac_c_preproc_warn_flag 2943 else 2944 ac_cpp_err= 2945 fi 2946 else 2947 ac_cpp_err=yes 2948 fi 2949 if test -z "$ac_cpp_err"; then 2950 eval "$ac_ac_Header=yes" 2951 else 2952 echo "$as_me: failed program was:" >&5 1565 2953 cat conftest.$ac_ext >&5 1566 rm -fr conftest* 1567 ac_cv_header_stdc=no 1568 fi 1569 rm -fr conftest* 1570 fi 1571 1572 fi 1573 fi 1574 1575 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1576 if test $ac_cv_header_stdc = yes; then 1577 cat >> confdefs.h <<\EOF 1578 #define STDC_HEADERS 1 1579 EOF 1580 1581 fi 1582 1583 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1584 echo "configure:1585: checking for off_t" >&5 1585 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1586 echo $ac_n "(cached) $ac_c" 1>&6 1587 else 1588 cat > conftest.$ac_ext <<EOF 1589 #line 1590 "configure" 1590 #include "confdefs.h" 1591 #include <sys/types.h> 1592 #if STDC_HEADERS 1593 #include <stdlib.h> 1594 #include <stddef.h> 1595 #endif 1596 EOF 1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1598 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1599 rm -rf conftest* 2954 eval "$ac_ac_Header=no" 2955 fi 2956 rm -f conftest.err conftest.$ac_ext 2957 fi 2958 echo "$as_me:2958: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2959 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2960 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2961 cat >>confdefs.h <<EOF 2962 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2963 EOF 2964 2965 fi 2966 done 2967 2968 echo "$as_me:2968: checking for off_t" >&5 2969 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2970 if test "${ac_cv_type_off_t+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972 else 2973 cat >conftest.$ac_ext <<_ACEOF 2974 #line 2974 "configure" 2975 #include "confdefs.h" 2976 $ac_includes_default 2977 int 2978 main () 2979 { 2980 if ((off_t *) 0) 2981 return 0; 2982 if (sizeof (off_t)) 2983 return 0; 2984 ; 2985 return 0; 2986 } 2987 _ACEOF 2988 rm -f conftest.$ac_objext 2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5 2990 (eval $ac_compile) 2>&5 2991 ac_status=$? 2992 echo "$as_me:2992: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -s conftest.$ac_objext' 2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5 2996 (eval $ac_try) 2>&5 2997 ac_status=$? 2998 echo "$as_me:2998: \$? = $ac_status" >&5 2999 (exit $ac_status); }; }; then 1600 3000 ac_cv_type_off_t=yes 1601 3001 else 1602 rm -rf conftest* 1603 ac_cv_type_off_t=no 1604 fi 1605 rm -f conftest* 1606 1607 fi 1608 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1609 if test $ac_cv_type_off_t = no; then 1610 cat >> confdefs.h <<\EOF 3002 echo "$as_me: failed program was:" >&5 3003 cat conftest.$ac_ext >&5 3004 ac_cv_type_off_t=no 3005 fi 3006 rm -f conftest.$ac_objext conftest.$ac_ext 3007 fi 3008 echo "$as_me:3008: result: $ac_cv_type_off_t" >&5 3009 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3010 if test $ac_cv_type_off_t = yes; then 3011 : 3012 else 3013 3014 cat >>confdefs.h <<EOF 1611 3015 #define off_t long 1612 3016 EOF … … 1614 3018 fi 1615 3019 1616 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1617 echo "configure:1618: checking for size_t" >&5 1618 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1619 echo $ac_n "(cached) $ac_c" 1>&6 1620 else 1621 cat > conftest.$ac_ext <<EOF 1622 #line 1623 "configure" 1623 #include "confdefs.h" 1624 #include <sys/types.h> 1625 #if STDC_HEADERS 1626 #include <stdlib.h> 1627 #include <stddef.h> 1628 #endif 1629 EOF 1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1632 rm -rf conftest* 3020 echo "$as_me:3020: checking for size_t" >&5 3021 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3022 if test "${ac_cv_type_size_t+set}" = set; then 3023 echo $ECHO_N "(cached) $ECHO_C" >&6 3024 else 3025 cat >conftest.$ac_ext <<_ACEOF 3026 #line 3026 "configure" 3027 #include "confdefs.h" 3028 $ac_includes_default 3029 int 3030 main () 3031 { 3032 if ((size_t *) 0) 3033 return 0; 3034 if (sizeof (size_t)) 3035 return 0; 3036 ; 3037 return 0; 3038 } 3039 _ACEOF 3040 rm -f conftest.$ac_objext 3041 if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5 3042 (eval $ac_compile) 2>&5 3043 ac_status=$? 3044 echo "$as_me:3044: \$? = $ac_status" >&5 3045 (exit $ac_status); } && 3046 { ac_try='test -s conftest.$ac_objext' 3047 { (eval echo "$as_me:3047: \"$ac_try\"") >&5 3048 (eval $ac_try) 2>&5 3049 ac_status=$? 3050 echo "$as_me:3050: \$? = $ac_status" >&5 3051 (exit $ac_status); }; }; then 1633 3052 ac_cv_type_size_t=yes 1634 3053 else 1635 rm -rf conftest* 1636 ac_cv_type_size_t=no 1637 fi 1638 rm -f conftest* 1639 1640 fi 1641 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1642 if test $ac_cv_type_size_t = no; then 1643 cat >> confdefs.h <<\EOF 3054 echo "$as_me: failed program was:" >&5 3055 cat conftest.$ac_ext >&5 3056 ac_cv_type_size_t=no 3057 fi 3058 rm -f conftest.$ac_objext conftest.$ac_ext 3059 fi 3060 echo "$as_me:3060: result: $ac_cv_type_size_t" >&5 3061 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3062 if test $ac_cv_type_size_t = yes; then 3063 : 3064 else 3065 3066 cat >>confdefs.h <<EOF 1644 3067 #define size_t unsigned 1645 3068 EOF … … 1647 3070 fi 1648 3071 1649 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&61650 echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&51651 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then1652 echo $ ac_n "(cached) $ac_c" 1>&61653 else 1654 cat > conftest.$ac_ext <<EOF1655 #line 1656"configure"3072 echo "$as_me:3072: checking whether time.h and sys/time.h may both be included" >&5 3073 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 3074 if test "${ac_cv_header_time+set}" = set; then 3075 echo $ECHO_N "(cached) $ECHO_C" >&6 3076 else 3077 cat >conftest.$ac_ext <<_ACEOF 3078 #line 3078 "configure" 1656 3079 #include "confdefs.h" 1657 3080 #include <sys/types.h> 1658 3081 #include <sys/time.h> 1659 3082 #include <time.h> 1660 int main() { 3083 3084 int 3085 main () 3086 { 1661 3087 struct tm *tp; 1662 ; return 0; } 1663 EOF 1664 if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1665 rm -rf conftest* 3088 ; 3089 return 0; 3090 } 3091 _ACEOF 3092 rm -f conftest.$ac_objext 3093 if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5 3094 (eval $ac_compile) 2>&5 3095 ac_status=$? 3096 echo "$as_me:3096: \$? = $ac_status" >&5 3097 (exit $ac_status); } && 3098 { ac_try='test -s conftest.$ac_objext' 3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5 3100 (eval $ac_try) 2>&5 3101 ac_status=$? 3102 echo "$as_me:3102: \$? = $ac_status" >&5 3103 (exit $ac_status); }; }; then 1666 3104 ac_cv_header_time=yes 1667 3105 else 1668 echo "configure: failed program was:" >&5 1669 cat conftest.$ac_ext >&5 1670 rm -rf conftest* 1671 ac_cv_header_time=no 1672 fi 1673 rm -f conftest* 1674 fi 1675 1676 echo "$ac_t""$ac_cv_header_time" 1>&6 3106 echo "$as_me: failed program was:" >&5 3107 cat conftest.$ac_ext >&5 3108 ac_cv_header_time=no 3109 fi 3110 rm -f conftest.$ac_objext conftest.$ac_ext 3111 fi 3112 echo "$as_me:3112: result: $ac_cv_header_time" >&5 3113 echo "${ECHO_T}$ac_cv_header_time" >&6 1677 3114 if test $ac_cv_header_time = yes; then 1678 cat >> confdefs.h <<\EOF 3115 3116 cat >>confdefs.h <<\EOF 1679 3117 #define TIME_WITH_SYS_TIME 1 1680 3118 EOF … … 1682 3120 fi 1683 3121 1684 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&61685 echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&51686 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then1687 echo $ ac_n "(cached) $ac_c" 1>&61688 else 1689 cat > conftest.$ac_ext <<EOF1690 #line 1691"configure"3122 echo "$as_me:3122: checking whether struct tm is in sys/time.h or time.h" >&5 3123 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 3124 if test "${ac_cv_struct_tm+set}" = set; then 3125 echo $ECHO_N "(cached) $ECHO_C" >&6 3126 else 3127 cat >conftest.$ac_ext <<_ACEOF 3128 #line 3128 "configure" 1691 3129 #include "confdefs.h" 1692 3130 #include <sys/types.h> 1693 3131 #include <time.h> 1694 int main() { 3132 3133 int 3134 main () 3135 { 1695 3136 struct tm *tp; tp->tm_sec; 1696 ; return 0; } 1697 EOF 1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1699 rm -rf conftest* 3137 ; 3138 return 0; 3139 } 3140 _ACEOF 3141 rm -f conftest.$ac_objext 3142 if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5 3143 (eval $ac_compile) 2>&5 3144 ac_status=$? 3145 echo "$as_me:3145: \$? = $ac_status" >&5 3146 (exit $ac_status); } && 3147 { ac_try='test -s conftest.$ac_objext' 3148 { (eval echo "$as_me:3148: \"$ac_try\"") >&5 3149 (eval $ac_try) 2>&5 3150 ac_status=$? 3151 echo "$as_me:3151: \$? = $ac_status" >&5 3152 (exit $ac_status); }; }; then 1700 3153 ac_cv_struct_tm=time.h 1701 3154 else 1702 echo "configure: failed program was:" >&5 1703 cat conftest.$ac_ext >&5 1704 rm -rf conftest* 1705 ac_cv_struct_tm=sys/time.h 1706 fi 1707 rm -f conftest* 1708 fi 1709 1710 echo "$ac_t""$ac_cv_struct_tm" 1>&6 3155 echo "$as_me: failed program was:" >&5 3156 cat conftest.$ac_ext >&5 3157 ac_cv_struct_tm=sys/time.h 3158 fi 3159 rm -f conftest.$ac_objext conftest.$ac_ext 3160 fi 3161 echo "$as_me:3161: result: $ac_cv_struct_tm" >&5 3162 echo "${ECHO_T}$ac_cv_struct_tm" >&6 1711 3163 if test $ac_cv_struct_tm = sys/time.h; then 1712 cat >> confdefs.h <<\EOF 3164 3165 cat >>confdefs.h <<\EOF 1713 3166 #define TM_IN_SYS_TIME 1 1714 3167 EOF … … 1716 3169 fi 1717 3170 1718 1719 3171 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1720 cat > conftest.$ac_ext <<EOF1721 #line 1722"configure"3172 cat >conftest.$ac_ext <<_ACEOF 3173 #line 3173 "configure" 1722 3174 #include "confdefs.h" 1723 3175 #include <stdio.h> 1724 3176 1725 int main() { 1726 FILE *rubbish = popen("yes", "r"); 1727 ; return 0; } 1728 EOF 1729 if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3177 int 3178 main () 3179 { 3180 FILE *rubbish = popen("yes", "r"); 3181 ; 3182 return 0; 3183 } 3184 _ACEOF 3185 rm -f conftest.$ac_objext 3186 if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5 3187 (eval $ac_compile) 2>&5 3188 ac_status=$? 3189 echo "$as_me:3189: \$? = $ac_status" >&5 3190 (exit $ac_status); } && 3191 { ac_try='test -s conftest.$ac_objext' 3192 { (eval echo "$as_me:3192: \"$ac_try\"") >&5 3193 (eval $ac_try) 2>&5 3194 ac_status=$? 3195 echo "$as_me:3195: \$? = $ac_status" >&5 3196 (exit $ac_status); }; }; then 1730 3197 : 1731 3198 else 1732 echo "configure: failed program was:" >&5 1733 cat conftest.$ac_ext >&5 1734 rm -rf conftest* 1735 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1736 fi 1737 rm -f conftest* 1738 fi 1739 1740 1741 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6 1742 echo "configure:1743: checking for main in -lg" >&5 1743 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'` 1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1745 echo $ac_n "(cached) $ac_c" 1>&6 1746 else 1747 ac_save_LIBS="$LIBS" 3199 echo "$as_me: failed program was:" >&5 3200 cat conftest.$ac_ext >&5 3201 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3202 fi 3203 rm -f conftest.$ac_objext conftest.$ac_ext 3204 fi 3205 3206 echo "$as_me:3206: checking for main in -lg" >&5 3207 echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6 3208 if test "${ac_cv_lib_g_main+set}" = set; then 3209 echo $ECHO_N "(cached) $ECHO_C" >&6 3210 else 3211 ac_check_lib_save_LIBS=$LIBS 1748 3212 LIBS="-lg $LIBS" 1749 cat > conftest.$ac_ext <<EOF 1750 #line 1751 "configure" 1751 #include "confdefs.h" 1752 1753 int main() { 1754 main() 1755 ; return 0; } 1756 EOF 1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1758 rm -rf conftest* 1759 eval "ac_cv_lib_$ac_lib_var=yes" 1760 else 1761 echo "configure: failed program was:" >&5 1762 cat conftest.$ac_ext >&5 1763 rm -rf conftest* 1764 eval "ac_cv_lib_$ac_lib_var=no" 1765 fi 1766 rm -f conftest* 1767 LIBS="$ac_save_LIBS" 1768 1769 fi 1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1771 echo "$ac_t""yes" 1>&6 1772 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1774 cat >> confdefs.h <<EOF 1775 #define $ac_tr_lib 1 3213 cat >conftest.$ac_ext <<_ACEOF 3214 #line 3214 "configure" 3215 #include "confdefs.h" 3216 3217 int 3218 main () 3219 { 3220 main (); 3221 ; 3222 return 0; 3223 } 3224 _ACEOF 3225 rm -f conftest.$ac_objext conftest$ac_exeext 3226 if { (eval echo "$as_me:3226: \"$ac_link\"") >&5 3227 (eval $ac_link) 2>&5 3228 ac_status=$? 3229 echo "$as_me:3229: \$? = $ac_status" >&5 3230 (exit $ac_status); } && 3231 { ac_try='test -s conftest$ac_exeext' 3232 { (eval echo "$as_me:3232: \"$ac_try\"") >&5 3233 (eval $ac_try) 2>&5 3234 ac_status=$? 3235 echo "$as_me:3235: \$? = $ac_status" >&5 3236 (exit $ac_status); }; }; then 3237 ac_cv_lib_g_main=yes 3238 else 3239 echo "$as_me: failed program was:" >&5 3240 cat conftest.$ac_ext >&5 3241 ac_cv_lib_g_main=no 3242 fi 3243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3244 LIBS=$ac_check_lib_save_LIBS 3245 fi 3246 echo "$as_me:3246: result: $ac_cv_lib_g_main" >&5 3247 echo "${ECHO_T}$ac_cv_lib_g_main" >&6 3248 if test $ac_cv_lib_g_main = yes; then 3249 cat >>confdefs.h <<EOF 3250 #define HAVE_LIBG 1 1776 3251 EOF 1777 3252 1778 3253 LIBS="-lg $LIBS" 1779 3254 1780 else 1781 echo "$ac_t""no" 1>&6 1782 fi 1783 1784 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1785 echo "configure:1786: checking for main in -lm" >&5 1786 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1788 echo $ac_n "(cached) $ac_c" 1>&6 1789 else 1790 ac_save_LIBS="$LIBS" 3255 fi 3256 3257 echo "$as_me:3257: checking for main in -lm" >&5 3258 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3259 if test "${ac_cv_lib_m_main+set}" = set; then 3260 echo $ECHO_N "(cached) $ECHO_C" >&6 3261 else 3262 ac_check_lib_save_LIBS=$LIBS 1791 3263 LIBS="-lm $LIBS" 1792 cat > conftest.$ac_ext <<EOF 1793 #line 1794 "configure" 1794 #include "confdefs.h" 1795 1796 int main() { 1797 main() 1798 ; return 0; } 1799 EOF 1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1801 rm -rf conftest* 1802 eval "ac_cv_lib_$ac_lib_var=yes" 1803 else 1804 echo "configure: failed program was:" >&5 1805 cat conftest.$ac_ext >&5 1806 rm -rf conftest* 1807 eval "ac_cv_lib_$ac_lib_var=no" 1808 fi 1809 rm -f conftest* 1810 LIBS="$ac_save_LIBS" 1811 1812 fi 1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1814 echo "$ac_t""yes" 1>&6 1815 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1817 cat >> confdefs.h <<EOF 1818 #define $ac_tr_lib 1 3264 cat >conftest.$ac_ext <<_ACEOF 3265 #line 3265 "configure" 3266 #include "confdefs.h" 3267 3268 int 3269 main () 3270 { 3271 main (); 3272 ; 3273 return 0; 3274 } 3275 _ACEOF 3276 rm -f conftest.$ac_objext conftest$ac_exeext 3277 if { (eval echo "$as_me:3277: \"$ac_link\"") >&5 3278 (eval $ac_link) 2>&5 3279 ac_status=$? 3280 echo "$as_me:3280: \$? = $ac_status" >&5 3281 (exit $ac_status); } && 3282 { ac_try='test -s conftest$ac_exeext' 3283 { (eval echo "$as_me:3283: \"$ac_try\"") >&5 3284 (eval $ac_try) 2>&5 3285 ac_status=$? 3286 echo "$as_me:3286: \$? = $ac_status" >&5 3287 (exit $ac_status); }; }; then 3288 ac_cv_lib_m_main=yes 3289 else 3290 echo "$as_me: failed program was:" >&5 3291 cat conftest.$ac_ext >&5 3292 ac_cv_lib_m_main=no 3293 fi 3294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3295 LIBS=$ac_check_lib_save_LIBS 3296 fi 3297 echo "$as_me:3297: result: $ac_cv_lib_m_main" >&5 3298 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3299 if test $ac_cv_lib_m_main = yes; then 3300 cat >>confdefs.h <<EOF 3301 #define HAVE_LIBM 1 1819 3302 EOF 1820 3303 1821 3304 LIBS="-lm $LIBS" 1822 3305 1823 else 1824 echo "$ac_t""no" 1>&6 1825 fi 1826 1827 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 1828 echo "configure:1829: checking for main in -lstdc++" >&5 1829 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` 1830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1831 echo $ac_n "(cached) $ac_c" 1>&6 1832 else 1833 ac_save_LIBS="$LIBS" 3306 fi 3307 3308 echo "$as_me:3308: checking for main in -lstdc++" >&5 3309 echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6 3310 if test "${ac_cv_lib_stdcpp_main+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312 else 3313 ac_check_lib_save_LIBS=$LIBS 1834 3314 LIBS="-lstdc++ $LIBS" 1835 cat > conftest.$ac_ext <<EOF 1836 #line 1837 "configure" 1837 #include "confdefs.h" 1838 1839 int main() { 1840 main() 1841 ; return 0; } 1842 EOF 1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1844 rm -rf conftest* 1845 eval "ac_cv_lib_$ac_lib_var=yes" 1846 else 1847 echo "configure: failed program was:" >&5 1848 cat conftest.$ac_ext >&5 1849 rm -rf conftest* 1850 eval "ac_cv_lib_$ac_lib_var=no" 1851 fi 1852 rm -f conftest* 1853 LIBS="$ac_save_LIBS" 1854 1855 fi 1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1857 echo "$ac_t""yes" 1>&6 1858 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1860 cat >> confdefs.h <<EOF 1861 #define $ac_tr_lib 1 3315 cat >conftest.$ac_ext <<_ACEOF 3316 #line 3316 "configure" 3317 #include "confdefs.h" 3318 3319 int 3320 main () 3321 { 3322 main (); 3323 ; 3324 return 0; 3325 } 3326 _ACEOF 3327 rm -f conftest.$ac_objext conftest$ac_exeext 3328 if { (eval echo "$as_me:3328: \"$ac_link\"") >&5 3329 (eval $ac_link) 2>&5 3330 ac_status=$? 3331 echo "$as_me:3331: \$? = $ac_status" >&5 3332 (exit $ac_status); } && 3333 { ac_try='test -s conftest$ac_exeext' 3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5 3335 (eval $ac_try) 2>&5 3336 ac_status=$? 3337 echo "$as_me:3337: \$? = $ac_status" >&5 3338 (exit $ac_status); }; }; then 3339 ac_cv_lib_stdcpp_main=yes 3340 else 3341 echo "$as_me: failed program was:" >&5 3342 cat conftest.$ac_ext >&5 3343 ac_cv_lib_stdcpp_main=no 3344 fi 3345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3346 LIBS=$ac_check_lib_save_LIBS 3347 fi 3348 echo "$as_me:3348: result: $ac_cv_lib_stdcpp_main" >&5 3349 echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6 3350 if test $ac_cv_lib_stdcpp_main = yes; then 3351 cat >>confdefs.h <<EOF 3352 #define HAVE_LIBSTDC__ 1 1862 3353 EOF 1863 3354 1864 3355 LIBS="-lstdc++ $LIBS" 1865 3356 1866 else 1867 echo "$ac_t""no" 1>&6 1868 fi 1869 1870 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6 1871 echo "configure:1872: checking for main in -lcrypt" >&5 1872 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'` 1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1874 echo $ac_n "(cached) $ac_c" 1>&6 1875 else 1876 ac_save_LIBS="$LIBS" 3357 fi 3358 3359 echo "$as_me:3359: checking for main in -lcrypt" >&5 3360 echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6 3361 if test "${ac_cv_lib_crypt_main+set}" = set; then 3362 echo $ECHO_N "(cached) $ECHO_C" >&6 3363 else 3364 ac_check_lib_save_LIBS=$LIBS 1877 3365 LIBS="-lcrypt $LIBS" 1878 cat > conftest.$ac_ext <<EOF 1879 #line 1880 "configure" 1880 #include "confdefs.h" 1881 1882 int main() { 1883 main() 1884 ; return 0; } 1885 EOF 1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1887 rm -rf conftest* 1888 eval "ac_cv_lib_$ac_lib_var=yes" 1889 else 1890 echo "configure: failed program was:" >&5 1891 cat conftest.$ac_ext >&5 1892 rm -rf conftest* 1893 eval "ac_cv_lib_$ac_lib_var=no" 1894 fi 1895 rm -f conftest* 1896 LIBS="$ac_save_LIBS" 1897 1898 fi 1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1900 echo "$ac_t""yes" 1>&6 1901 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1903 cat >> confdefs.h <<EOF 1904 #define $ac_tr_lib 1 3366 cat >conftest.$ac_ext <<_ACEOF 3367 #line 3367 "configure" 3368 #include "confdefs.h" 3369 3370 int 3371 main () 3372 { 3373 main (); 3374 ; 3375 return 0; 3376 } 3377 _ACEOF 3378 rm -f conftest.$ac_objext conftest$ac_exeext 3379 if { (eval echo "$as_me:3379: \"$ac_link\"") >&5 3380 (eval $ac_link) 2>&5 3381 ac_status=$? 3382 echo "$as_me:3382: \$? = $ac_status" >&5 3383 (exit $ac_status); } && 3384 { ac_try='test -s conftest$ac_exeext' 3385 { (eval echo "$as_me:3385: \"$ac_try\"") >&5 3386 (eval $ac_try) 2>&5 3387 ac_status=$? 3388 echo "$as_me:3388: \$? = $ac_status" >&5 3389 (exit $ac_status); }; }; then 3390 ac_cv_lib_crypt_main=yes 3391 else 3392 echo "$as_me: failed program was:" >&5 3393 cat conftest.$ac_ext >&5 3394 ac_cv_lib_crypt_main=no 3395 fi 3396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3397 LIBS=$ac_check_lib_save_LIBS 3398 fi 3399 echo "$as_me:3399: result: $ac_cv_lib_crypt_main" >&5 3400 echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6 3401 if test $ac_cv_lib_crypt_main = yes; then 3402 cat >>confdefs.h <<EOF 3403 #define HAVE_LIBCRYPT 1 1905 3404 EOF 1906 3405 1907 3406 LIBS="-lcrypt $LIBS" 1908 3407 1909 else 1910 echo "$ac_t""no" 1>&6 1911 fi 1912 3408 fi 1913 3409 1914 3410 ac_header_dirent=no 1915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1916 do 1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1918 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1919 echo "configure:1920: checking for $ac_hdr that defines DIR" >&5 1920 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1921 echo $ac_n "(cached) $ac_c" 1>&6 1922 else 1923 cat > conftest.$ac_ext <<EOF 1924 #line 1925 "configure" 3411 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3412 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh` 3413 echo "$as_me:3413: checking for $ac_hdr that defines DIR" >&5 3414 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3415 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3416 echo $ECHO_N "(cached) $ECHO_C" >&6 3417 else 3418 cat >conftest.$ac_ext <<_ACEOF 3419 #line 3419 "configure" 1925 3420 #include "confdefs.h" 1926 3421 #include <sys/types.h> 1927 3422 #include <$ac_hdr> 1928 int main() { 3423 3424 int 3425 main () 3426 { 1929 3427 DIR *dirp = 0; 1930 ; return 0; } 1931 EOF 1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1933 rm -rf conftest* 1934 eval "ac_cv_header_dirent_$ac_safe=yes" 1935 else 1936 echo "configure: failed program was:" >&5 1937 cat conftest.$ac_ext >&5 1938 rm -rf conftest* 1939 eval "ac_cv_header_dirent_$ac_safe=no" 1940 fi 1941 rm -f conftest* 1942 fi 1943 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1944 echo "$ac_t""yes" 1>&6 1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1946 cat >> confdefs.h <<EOF 1947 #define $ac_tr_hdr 1 1948 EOF 1949 ac_header_dirent=$ac_hdr; break 1950 else 1951 echo "$ac_t""no" 1>&6 1952 fi 3428 ; 3429 return 0; 3430 } 3431 _ACEOF 3432 rm -f conftest.$ac_objext 3433 if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5 3434 (eval $ac_compile) 2>&5 3435 ac_status=$? 3436 echo "$as_me:3436: \$? = $ac_status" >&5 3437 (exit $ac_status); } && 3438 { ac_try='test -s conftest.$ac_objext' 3439 { (eval echo "$as_me:3439: \"$ac_try\"") >&5 3440 (eval $ac_try) 2>&5 3441 ac_status=$? 3442 echo "$as_me:3442: \$? = $ac_status" >&5 3443 (exit $ac_status); }; }; then 3444 eval "$ac_ac_Header=yes" 3445 else 3446 echo "$as_me: failed program was:" >&5 3447 cat conftest.$ac_ext >&5 3448 eval "$ac_ac_Header=no" 3449 fi 3450 rm -f conftest.$ac_objext conftest.$ac_ext 3451 fi 3452 echo "$as_me:3452: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3453 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3454 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3455 cat >>confdefs.h <<EOF 3456 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3457 EOF 3458 3459 ac_header_dirent=$ac_hdr; break 3460 fi 3461 1953 3462 done 1954 3463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1955 3464 if test $ac_header_dirent = dirent.h; then 1956 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1957 echo "configure:1958: checking for opendir in -ldir" >&5 1958 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1960 echo $ac_n "(cached) $ac_c" 1>&6 1961 else 1962 ac_save_LIBS="$LIBS" 3465 echo "$as_me:3465: checking for opendir in -ldir" >&5 3466 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 3467 if test "${ac_cv_lib_dir_opendir+set}" = set; then 3468 echo $ECHO_N "(cached) $ECHO_C" >&6 3469 else 3470 ac_check_lib_save_LIBS=$LIBS 1963 3471 LIBS="-ldir $LIBS" 1964 cat > conftest.$ac_ext <<EOF 1965 #line 1966 "configure" 1966 #include "confdefs.h" 3472 cat >conftest.$ac_ext <<_ACEOF 3473 #line 3473 "configure" 3474 #include "confdefs.h" 3475 1967 3476 /* Override any gcc2 internal prototype to avoid an error. */ 3477 #ifdef __cplusplus 3478 extern "C" 3479 #endif 1968 3480 /* We use char because int might match the return type of a gcc2 1969 builtin and then its argument prototype would still apply. */ 1970 char opendir(); 1971 1972 int main() { 1973 opendir() 1974 ; return 0; } 1975 EOF 1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1977 rm -rf conftest* 1978 eval "ac_cv_lib_$ac_lib_var=yes" 1979 else 1980 echo "configure: failed program was:" >&5 1981 cat conftest.$ac_ext >&5 1982 rm -rf conftest* 1983 eval "ac_cv_lib_$ac_lib_var=no" 1984 fi 1985 rm -f conftest* 1986 LIBS="$ac_save_LIBS" 1987 1988 fi 1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1990 echo "$ac_t""yes" 1>&6 3481 builtin and then its argument prototype would still apply. */ 3482 char opendir (); 3483 int 3484 main () 3485 { 3486 opendir (); 3487 ; 3488 return 0; 3489 } 3490 _ACEOF 3491 rm -f conftest.$ac_objext conftest$ac_exeext 3492 if { (eval echo "$as_me:3492: \"$ac_link\"") >&5 3493 (eval $ac_link) 2>&5 3494 ac_status=$? 3495 echo "$as_me:3495: \$? = $ac_status" >&5 3496 (exit $ac_status); } && 3497 { ac_try='test -s conftest$ac_exeext' 3498 { (eval echo "$as_me:3498: \"$ac_try\"") >&5 3499 (eval $ac_try) 2>&5 3500 ac_status=$? 3501 echo "$as_me:3501: \$? = $ac_status" >&5 3502 (exit $ac_status); }; }; then 3503 ac_cv_lib_dir_opendir=yes 3504 else 3505 echo "$as_me: failed program was:" >&5 3506 cat conftest.$ac_ext >&5 3507 ac_cv_lib_dir_opendir=no 3508 fi 3509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3510 LIBS=$ac_check_lib_save_LIBS 3511 fi 3512 echo "$as_me:3512: result: $ac_cv_lib_dir_opendir" >&5 3513 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3514 if test $ac_cv_lib_dir_opendir = yes; then 1991 3515 LIBS="$LIBS -ldir" 1992 else 1993 echo "$ac_t""no" 1>&6 1994 fi 1995 1996 else 1997 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1998 echo "configure:1999: checking for opendir in -lx" >&5 1999 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2001 echo $ac_n "(cached) $ac_c" 1>&6 2002 else 2003 ac_save_LIBS="$LIBS" 3516 fi 3517 3518 else 3519 echo "$as_me:3519: checking for opendir in -lx" >&5 3520 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3521 if test "${ac_cv_lib_x_opendir+set}" = set; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523 else 3524 ac_check_lib_save_LIBS=$LIBS 2004 3525 LIBS="-lx $LIBS" 2005 cat > conftest.$ac_ext <<EOF 2006 #line 2007 "configure" 2007 #include "confdefs.h" 3526 cat >conftest.$ac_ext <<_ACEOF 3527 #line 3527 "configure" 3528 #include "confdefs.h" 3529 2008 3530 /* Override any gcc2 internal prototype to avoid an error. */ 3531 #ifdef __cplusplus 3532 extern "C" 3533 #endif 2009 3534 /* We use char because int might match the return type of a gcc2 2010 builtin and then its argument prototype would still apply. */ 2011 char opendir(); 2012 2013 int main() { 2014 opendir() 2015 ; return 0; } 2016 EOF 2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2018 rm -rf conftest* 2019 eval "ac_cv_lib_$ac_lib_var=yes" 2020 else 2021 echo "configure: failed program was:" >&5 2022 cat conftest.$ac_ext >&5 2023 rm -rf conftest* 2024 eval "ac_cv_lib_$ac_lib_var=no" 2025 fi 2026 rm -f conftest* 2027 LIBS="$ac_save_LIBS" 2028 2029 fi 2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2031 echo "$ac_t""yes" 1>&6 3535 builtin and then its argument prototype would still apply. */ 3536 char opendir (); 3537 int 3538 main () 3539 { 3540 opendir (); 3541 ; 3542 return 0; 3543 } 3544 _ACEOF 3545 rm -f conftest.$ac_objext conftest$ac_exeext 3546 if { (eval echo "$as_me:3546: \"$ac_link\"") >&5 3547 (eval $ac_link) 2>&5 3548 ac_status=$? 3549 echo "$as_me:3549: \$? = $ac_status" >&5 3550 (exit $ac_status); } && 3551 { ac_try='test -s conftest$ac_exeext' 3552 { (eval echo "$as_me:3552: \"$ac_try\"") >&5 3553 (eval $ac_try) 2>&5 3554 ac_status=$? 3555 echo "$as_me:3555: \$? = $ac_status" >&5 3556 (exit $ac_status); }; }; then 3557 ac_cv_lib_x_opendir=yes 3558 else 3559 echo "$as_me: failed program was:" >&5 3560 cat conftest.$ac_ext >&5 3561 ac_cv_lib_x_opendir=no 3562 fi 3563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3564 LIBS=$ac_check_lib_save_LIBS 3565 fi 3566 echo "$as_me:3566: result: $ac_cv_lib_x_opendir" >&5 3567 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3568 if test $ac_cv_lib_x_opendir = yes; then 2032 3569 LIBS="$LIBS -lx" 2033 else 2034 echo "$ac_t""no" 1>&6 2035 fi 2036 2037 fi 2038 2039 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2040 echo "configure:2041: checking for ANSI C header files" >&5 2041 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2042 echo $ac_n "(cached) $ac_c" 1>&6 2043 else 2044 cat > conftest.$ac_ext <<EOF 2045 #line 2046 "configure" 3570 fi 3571 3572 fi 3573 3574 echo "$as_me:3574: checking for ANSI C header files" >&5 3575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3576 if test "${ac_cv_header_stdc+set}" = set; then 3577 echo $ECHO_N "(cached) $ECHO_C" >&6 3578 else 3579 cat >conftest.$ac_ext <<_ACEOF 3580 #line 3580 "configure" 2046 3581 #include "confdefs.h" 2047 3582 #include <stdlib.h> … … 2049 3584 #include <string.h> 2050 3585 #include <float.h> 2051 EOF 2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2055 if test -z "$ac_err"; then 2056 rm -rf conftest* 3586 3587 _ACEOF 3588 if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5 3589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3590 ac_status=$? 3591 egrep -v '^ *\+' conftest.er1 >conftest.err 3592 rm -f conftest.er1 3593 cat conftest.err >&5 3594 echo "$as_me:3594: \$? = $ac_status" >&5 3595 (exit $ac_status); } >/dev/null; then 3596 if test -s conftest.err; then 3597 ac_cpp_err=$ac_c_preproc_warn_flag 3598 else 3599 ac_cpp_err= 3600 fi 3601 else 3602 ac_cpp_err=yes 3603 fi 3604 if test -z "$ac_cpp_err"; then 2057 3605 ac_cv_header_stdc=yes 2058 3606 else 2059 echo "$ac_err" >&5 2060 echo "configure: failed program was:" >&5 3607 echo "$as_me: failed program was:" >&5 2061 3608 cat conftest.$ac_ext >&5 2062 rm -rf conftest*2063 3609 ac_cv_header_stdc=no 2064 3610 fi 2065 rm -f conftest *3611 rm -f conftest.err conftest.$ac_ext 2066 3612 2067 3613 if test $ac_cv_header_stdc = yes; then 2068 3614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2069 cat > conftest.$ac_ext <<EOF2070 #line 2071"configure"3615 cat >conftest.$ac_ext <<_ACEOF 3616 #line 3616 "configure" 2071 3617 #include "confdefs.h" 2072 3618 #include <string.h> 2073 EOF 3619 3620 _ACEOF 2074 3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2075 3622 egrep "memchr" >/dev/null 2>&1; then 2076 3623 : 2077 3624 else 2078 rm -rf conftest*2079 3625 ac_cv_header_stdc=no 2080 3626 fi … … 2085 3631 if test $ac_cv_header_stdc = yes; then 2086 3632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2087 cat > conftest.$ac_ext <<EOF2088 #line 2089"configure"3633 cat >conftest.$ac_ext <<_ACEOF 3634 #line 3634 "configure" 2089 3635 #include "confdefs.h" 2090 3636 #include <stdlib.h> 2091 EOF 3637 3638 _ACEOF 2092 3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2093 3640 egrep "free" >/dev/null 2>&1; then 2094 3641 : 2095 3642 else 2096 rm -rf conftest*2097 3643 ac_cv_header_stdc=no 2098 3644 fi … … 2103 3649 if test $ac_cv_header_stdc = yes; then 2104 3650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2105 if test "$cross_compiling" = yes; then3651 if test "$cross_compiling" = yes; then 2106 3652 : 2107 3653 else 2108 cat > conftest.$ac_ext <<EOF2109 #line 2110"configure"3654 cat >conftest.$ac_ext <<_ACEOF 3655 #line 3655 "configure" 2110 3656 #include "confdefs.h" 2111 3657 #include <ctype.h> 2112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3658 #if ((' ' & 0x0FF) == 0x020) 3659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3661 #else 3662 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3663 || ('j' <= (c) && (c) <= 'r') \ 3664 || ('s' <= (c) && (c) <= 'z')) 3665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3666 #endif 3667 2114 3668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2115 int main () { int i; for (i = 0; i < 256; i++) 2116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2117 exit (0); } 2118 2119 EOF 2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2121 then 3669 int 3670 main () 3671 { 3672 int i; 3673 for (i = 0; i < 256; i++) 3674 if (XOR (islower (i), ISLOWER (i)) 3675 || toupper (i) != TOUPPER (i)) 3676 exit(2); 3677 exit (0); 3678 } 3679 _ACEOF 3680 rm -f conftest$ac_exeext 3681 if { (eval echo "$as_me:3681: \"$ac_link\"") >&5 3682 (eval $ac_link) 2>&5 3683 ac_status=$? 3684 echo "$as_me:3684: \$? = $ac_status" >&5 3685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5 3687 (eval $ac_try) 2>&5 3688 ac_status=$? 3689 echo "$as_me:3689: \$? = $ac_status" >&5 3690 (exit $ac_status); }; }; then 2122 3691 : 2123 3692 else 2124 echo "configure: failed program was:" >&5 3693 echo "$as_me: program exited with status $ac_status" >&5 3694 echo "$as_me: failed program was:" >&5 3695 cat conftest.$ac_ext >&5 3696 ac_cv_header_stdc=no 3697 fi 3698 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 3699 fi 3700 fi 3701 fi 3702 echo "$as_me:3702: result: $ac_cv_header_stdc" >&5 3703 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3704 if test $ac_cv_header_stdc = yes; then 3705 3706 cat >>confdefs.h <<\EOF 3707 #define STDC_HEADERS 1 3708 EOF 3709 3710 fi 3711 3712 for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h 3713 do 3714 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3715 echo "$as_me:3715: checking for $ac_header" >&5 3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3717 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3718 echo $ECHO_N "(cached) $ECHO_C" >&6 3719 else 3720 cat >conftest.$ac_ext <<_ACEOF 3721 #line 3721 "configure" 3722 #include "confdefs.h" 3723 #include <$ac_header> 3724 _ACEOF 3725 if { (eval echo "$as_me:3725: \"$ac_cpp conftest.$ac_ext\"") >&5 3726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3727 ac_status=$? 3728 egrep -v '^ *\+' conftest.er1 >conftest.err 3729 rm -f conftest.er1 3730 cat conftest.err >&5 3731 echo "$as_me:3731: \$? = $ac_status" >&5 3732 (exit $ac_status); } >/dev/null; then 3733 if test -s conftest.err; then 3734 ac_cpp_err=$ac_c_preproc_warn_flag 3735 else 3736 ac_cpp_err= 3737 fi 3738 else 3739 ac_cpp_err=yes 3740 fi 3741 if test -z "$ac_cpp_err"; then 3742 eval "$ac_ac_Header=yes" 3743 else 3744 echo "$as_me: failed program was:" >&5 2125 3745 cat conftest.$ac_ext >&5 2126 rm -fr conftest* 2127 ac_cv_header_stdc=no 2128 fi 2129 rm -fr conftest* 2130 fi 2131 2132 fi 2133 fi 2134 2135 echo "$ac_t""$ac_cv_header_stdc" 1>&6 2136 if test $ac_cv_header_stdc = yes; then 2137 cat >> confdefs.h <<\EOF 2138 #define STDC_HEADERS 1 2139 EOF 2140 2141 fi 2142 2143 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h 2144 do 2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2147 echo "configure:2148: checking for $ac_hdr" >&5 2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2149 echo $ac_n "(cached) $ac_c" 1>&6 2150 else 2151 cat > conftest.$ac_ext <<EOF 2152 #line 2153 "configure" 2153 #include "confdefs.h" 2154 #include <$ac_hdr> 2155 EOF 2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2159 if test -z "$ac_err"; then 2160 rm -rf conftest* 2161 eval "ac_cv_header_$ac_safe=yes" 2162 else 2163 echo "$ac_err" >&5 2164 echo "configure: failed program was:" >&5 2165 cat conftest.$ac_ext >&5 2166 rm -rf conftest* 2167 eval "ac_cv_header_$ac_safe=no" 2168 fi 2169 rm -f conftest* 2170 fi 2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2172 echo "$ac_t""yes" 1>&6 2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2174 cat >> confdefs.h <<EOF 2175 #define $ac_tr_hdr 1 2176 EOF 2177 2178 else 2179 echo "$ac_t""no" 1>&6 3746 eval "$ac_ac_Header=no" 3747 fi 3748 rm -f conftest.err conftest.$ac_ext 3749 fi 3750 echo "$as_me:3750: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3751 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3752 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3753 cat >>confdefs.h <<EOF 3754 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3755 EOF 3756 2180 3757 fi 2181 3758 done 2182 3759 2183 cat > conftest.$ac_ext <<EOF2184 #line 2185"configure"3760 cat >conftest.$ac_ext <<_ACEOF 3761 #line 3761 "configure" 2185 3762 #include "confdefs.h" 2186 3763 #include <stdio.h> 2187 EOF 3764 3765 _ACEOF 2188 3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2189 3767 egrep "fread" >/dev/null 2>&1; then 2190 rm -rf conftest* 2191 cat >> confdefs.h <<\EOF 3768 cat >>confdefs.h <<\EOF 2192 3769 #define HAVE_FREAD_DECL 1 2193 3770 EOF … … 2196 3773 rm -f conftest* 2197 3774 2198 cat > conftest.$ac_ext <<EOF2199 #line 2200"configure"3775 cat >conftest.$ac_ext <<_ACEOF 3776 #line 3776 "configure" 2200 3777 #include "confdefs.h" 2201 3778 #include <stdio.h> 2202 EOF 3779 3780 _ACEOF 2203 3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2204 3782 egrep "fgetc" >/dev/null 2>&1; then 2205 rm -rf conftest* 2206 cat >> confdefs.h <<\EOF 3783 cat >>confdefs.h <<\EOF 2207 3784 #define HAVE_FGETC_DECL 1 2208 3785 EOF … … 2211 3788 rm -f conftest* 2212 3789 2213 cat > conftest.$ac_ext <<EOF2214 #line 2215"configure"3790 cat >conftest.$ac_ext <<_ACEOF 3791 #line 3791 "configure" 2215 3792 #include "confdefs.h" 2216 3793 #include <sys/procfs.h> 2217 EOF 3794 3795 _ACEOF 2218 3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2219 3797 egrep "pr_brksize" >/dev/null 2>&1; then 2220 rm -rf conftest* 2221 cat >> confdefs.h <<\EOF 3798 cat >>confdefs.h <<\EOF 2222 3799 #define HAVE_PR_BRKSIZE 1 2223 3800 EOF … … 2225 3802 fi 2226 3803 rm -f conftest* 2227 2228 3804 2229 3805 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2230 3806 # for constant arguments. Useless! 2231 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&62232 echo "configure:2233: checking for working alloca.h" >&52233 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then2234 echo $ ac_n "(cached) $ac_c" 1>&62235 else 2236 cat > conftest.$ac_ext <<EOF2237 #line 2238"configure"3807 echo "$as_me:3807: checking for working alloca.h" >&5 3808 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 3809 if test "${ac_cv_working_alloca_h+set}" = set; then 3810 echo $ECHO_N "(cached) $ECHO_C" >&6 3811 else 3812 cat >conftest.$ac_ext <<_ACEOF 3813 #line 3813 "configure" 2238 3814 #include "confdefs.h" 2239 3815 #include <alloca.h> 2240 int main() { 2241 char *p = alloca(2 * sizeof(int)); 2242 ; return 0; } 2243 EOF 2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2245 rm -rf conftest* 2246 ac_cv_header_alloca_h=yes 2247 else 2248 echo "configure: failed program was:" >&5 2249 cat conftest.$ac_ext >&5 2250 rm -rf conftest* 2251 ac_cv_header_alloca_h=no 2252 fi 2253 rm -f conftest* 2254 fi 2255 2256 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2257 if test $ac_cv_header_alloca_h = yes; then 2258 cat >> confdefs.h <<\EOF 3816 int 3817 main () 3818 { 3819 char *p = (char *) alloca (2 * sizeof (int)); 3820 ; 3821 return 0; 3822 } 3823 _ACEOF 3824 rm -f conftest.$ac_objext conftest$ac_exeext 3825 if { (eval echo "$as_me:3825: \"$ac_link\"") >&5 3826 (eval $ac_link) 2>&5 3827 ac_status=$? 3828 echo "$as_me:3828: \$? = $ac_status" >&5 3829 (exit $ac_status); } && 3830 { ac_try='test -s conftest$ac_exeext' 3831 { (eval echo "$as_me:3831: \"$ac_try\"") >&5 3832 (eval $ac_try) 2>&5 3833 ac_status=$? 3834 echo "$as_me:3834: \$? = $ac_status" >&5 3835 (exit $ac_status); }; }; then 3836 ac_cv_working_alloca_h=yes 3837 else 3838 echo "$as_me: failed program was:" >&5 3839 cat conftest.$ac_ext >&5 3840 ac_cv_working_alloca_h=no 3841 fi 3842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3843 fi 3844 echo "$as_me:3844: result: $ac_cv_working_alloca_h" >&5 3845 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3846 if test $ac_cv_working_alloca_h = yes; then 3847 3848 cat >>confdefs.h <<\EOF 2259 3849 #define HAVE_ALLOCA_H 1 2260 3850 EOF … … 2262 3852 fi 2263 3853 2264 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2265 echo "configure:2266: checking for alloca" >&5 2266 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2267 echo $ac_n "(cached) $ac_c" 1>&6 2268 else 2269 cat > conftest.$ac_ext <<EOF 2270 #line 2271 "configure" 2271 #include "confdefs.h" 2272 3854 echo "$as_me:3854: checking for alloca" >&5 3855 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3856 if test "${ac_cv_func_alloca_works+set}" = set; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858 else 3859 cat >conftest.$ac_ext <<_ACEOF 3860 #line 3860 "configure" 3861 #include "confdefs.h" 2273 3862 #ifdef __GNUC__ 2274 3863 # define alloca __builtin_alloca … … 2292 3881 #endif 2293 3882 2294 int main() { 2295 char *p = (char *) alloca(1); 2296 ; return 0; } 2297 EOF 2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2299 rm -rf conftest* 3883 int 3884 main () 3885 { 3886 char *p = (char *) alloca (1); 3887 ; 3888 return 0; 3889 } 3890 _ACEOF 3891 rm -f conftest.$ac_objext conftest$ac_exeext 3892 if { (eval echo "$as_me:3892: \"$ac_link\"") >&5 3893 (eval $ac_link) 2>&5 3894 ac_status=$? 3895 echo "$as_me:3895: \$? = $ac_status" >&5 3896 (exit $ac_status); } && 3897 { ac_try='test -s conftest$ac_exeext' 3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5 3899 (eval $ac_try) 2>&5 3900 ac_status=$? 3901 echo "$as_me:3901: \$? = $ac_status" >&5 3902 (exit $ac_status); }; }; then 2300 3903 ac_cv_func_alloca_works=yes 2301 3904 else 2302 echo " configure: failed program was:" >&52303 2304 rm -rf conftest* 2305 ac_cv_func_alloca_works=no 2306 fi 2307 rm -f conftest* 2308 fi 2309 2310 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 3905 echo "$as_me: failed program was:" >&5 3906 cat conftest.$ac_ext >&5 3907 ac_cv_func_alloca_works=no 3908 fi 3909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3910 fi 3911 echo "$as_me:3911: result: $ac_cv_func_alloca_works" >&5 3912 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3913 2311 3914 if test $ac_cv_func_alloca_works = yes; then 2312 cat >> confdefs.h <<\EOF 3915 3916 cat >>confdefs.h <<\EOF 2313 3917 #define HAVE_ALLOCA 1 2314 3918 EOF 2315 3919 2316 fi 2317 2318 if test $ac_cv_func_alloca_works = no; then 3920 else 2319 3921 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2320 # that cause trouble. Some versions do not even contain alloca or 2321 # contain a buggy version. If you still want to use their alloca, 2322 # use ar to extract alloca.o from them instead of compiling alloca.c. 2323 ALLOCA=alloca.${ac_objext} 2324 cat >> confdefs.h <<\EOF 3922 # that cause trouble. Some versions do not even contain alloca or 3923 # contain a buggy version. If you still want to use their alloca, 3924 # use ar to extract alloca.o from them instead of compiling alloca.c. 3925 3926 ALLOCA=alloca.$ac_objext 3927 3928 cat >>confdefs.h <<\EOF 2325 3929 #define C_ALLOCA 1 2326 3930 EOF 2327 3931 2328 2329 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2330 echo "configure:2331: checking whether alloca needs Cray hooks" >&5 2331 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2332 echo $ac_n "(cached) $ac_c" 1>&6 2333 else 2334 cat > conftest.$ac_ext <<EOF 2335 #line 2336 "configure" 3932 echo "$as_me:3932: checking whether \`alloca.c' needs Cray hooks" >&5 3933 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3934 if test "${ac_cv_os_cray+set}" = set; then 3935 echo $ECHO_N "(cached) $ECHO_C" >&6 3936 else 3937 cat >conftest.$ac_ext <<_ACEOF 3938 #line 3938 "configure" 2336 3939 #include "confdefs.h" 2337 3940 #if defined(CRAY) && ! defined(CRAY2) … … 2341 3944 #endif 2342 3945 2343 EOF3946 _ACEOF 2344 3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2345 3948 egrep "webecray" >/dev/null 2>&1; then 2346 rm -rf conftest*2347 3949 ac_cv_os_cray=yes 2348 3950 else 2349 rm -rf conftest*2350 3951 ac_cv_os_cray=no 2351 3952 fi … … 2353 3954 2354 3955 fi 2355 2356 echo "$ ac_t""$ac_cv_os_cray" 1>&63956 echo "$as_me:3956: result: $ac_cv_os_cray" >&5 3957 echo "${ECHO_T}$ac_cv_os_cray" >&6 2357 3958 if test $ac_cv_os_cray = yes; then 2358 for ac_func in _getb67 GETB67 getb67; do 2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2360 echo "configure:2361: checking for $ac_func" >&5 2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2362 echo $ac_n "(cached) $ac_c" 1>&6 2363 else 2364 cat > conftest.$ac_ext <<EOF 2365 #line 2366 "configure" 3959 for ac_func in _getb67 GETB67 getb67; do 3960 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3961 echo "$as_me:3961: checking for $ac_func" >&5 3962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3963 if eval "test \"\${$ac_ac_var+set}\" = set"; then 3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3965 else 3966 cat >conftest.$ac_ext <<_ACEOF 3967 #line 3967 "configure" 2366 3968 #include "confdefs.h" 2367 3969 /* System header to define __stub macros and hopefully few prototypes, 2368 which can conflict with char $ac_func (); below. */3970 which can conflict with char $ac_func (); below. */ 2369 3971 #include <assert.h> 2370 3972 /* Override any gcc2 internal prototype to avoid an error. */ 3973 #ifdef __cplusplus 3974 extern "C" 3975 #endif 2371 3976 /* We use char because int might match the return type of a gcc2 2372 builtin and then its argument prototype would still apply. */ 2373 char $ac_func(); 2374 2375 int main() { 2376 3977 builtin and then its argument prototype would still apply. */ 3978 char $ac_func (); 3979 char (*f) (); 3980 3981 int 3982 main () 3983 { 2377 3984 /* The GNU C library defines this for functions which it implements 2378 3985 to always fail with ENOSYS. Some functions are actually named … … 2381 3988 choke me 2382 3989 #else 2383 $ac_func();3990 f = $ac_func; 2384 3991 #endif 2385 3992 2386 ; return 0; } 2387 EOF 2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2389 rm -rf conftest* 2390 eval "ac_cv_func_$ac_func=yes" 2391 else 2392 echo "configure: failed program was:" >&5 2393 cat conftest.$ac_ext >&5 2394 rm -rf conftest* 2395 eval "ac_cv_func_$ac_func=no" 2396 fi 2397 rm -f conftest* 2398 fi 2399 2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 cat >> confdefs.h <<EOF 3993 ; 3994 return 0; 3995 } 3996 _ACEOF 3997 rm -f conftest.$ac_objext conftest$ac_exeext 3998 if { (eval echo "$as_me:3998: \"$ac_link\"") >&5 3999 (eval $ac_link) 2>&5 4000 ac_status=$? 4001 echo "$as_me:4001: \$? = $ac_status" >&5 4002 (exit $ac_status); } && 4003 { ac_try='test -s conftest$ac_exeext' 4004 { (eval echo "$as_me:4004: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:4007: \$? = $ac_status" >&5 4008 (exit $ac_status); }; }; then 4009 eval "$ac_ac_var=yes" 4010 else 4011 echo "$as_me: failed program was:" >&5 4012 cat conftest.$ac_ext >&5 4013 eval "$ac_ac_var=no" 4014 fi 4015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4016 fi 4017 echo "$as_me:4017: result: `eval echo '${'$ac_ac_var'}'`" >&5 4018 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4019 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4020 4021 cat >>confdefs.h <<EOF 2403 4022 #define CRAY_STACKSEG_END $ac_func 2404 4023 EOF 2405 4024 2406 break 2407 else 2408 echo "$ac_t""no" 1>&6 2409 fi 2410 2411 done 2412 fi 2413 2414 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2415 echo "configure:2416: checking stack direction for C alloca" >&5 2416 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2417 echo $ac_n "(cached) $ac_c" 1>&6 4025 break 4026 fi 4027 4028 done 4029 fi 4030 4031 echo "$as_me:4031: checking stack direction for C alloca" >&5 4032 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 4033 if test "${ac_cv_c_stack_direction+set}" = set; then 4034 echo $ECHO_N "(cached) $ECHO_C" >&6 2418 4035 else 2419 4036 if test "$cross_compiling" = yes; then 2420 4037 ac_cv_c_stack_direction=0 2421 4038 else 2422 cat > conftest.$ac_ext <<EOF 2423 #line 2424 "configure" 2424 #include "confdefs.h" 4039 cat >conftest.$ac_ext <<_ACEOF 4040 #line 4040 "configure" 4041 #include "confdefs.h" 4042 int 2425 4043 find_stack_direction () 2426 4044 { … … 2435 4053 return (&dummy > addr) ? 1 : -1; 2436 4054 } 4055 4056 int 2437 4057 main () 2438 4058 { 2439 exit (find_stack_direction () < 0);4059 exit (find_stack_direction () < 0); 2440 4060 } 2441 EOF 2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2443 then 4061 _ACEOF 4062 rm -f conftest$ac_exeext 4063 if { (eval echo "$as_me:4063: \"$ac_link\"") >&5 4064 (eval $ac_link) 2>&5 4065 ac_status=$? 4066 echo "$as_me:4066: \$? = $ac_status" >&5 4067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4068 { (eval echo "$as_me:4068: \"$ac_try\"") >&5 4069 (eval $ac_try) 2>&5 4070 ac_status=$? 4071 echo "$as_me:4071: \$? = $ac_status" >&5 4072 (exit $ac_status); }; }; then 2444 4073 ac_cv_c_stack_direction=1 2445 4074 else 2446 echo " configure: failed program was:" >&52447 cat conftest.$ac_ext>&52448 rm -fr conftest* 2449 2450 fi 2451 rm -f r conftest*2452 fi 2453 2454 fi 2455 2456 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2457 cat >> 4075 echo "$as_me: program exited with status $ac_status" >&5 4076 echo "$as_me: failed program was:" >&5 4077 cat conftest.$ac_ext >&5 4078 ac_cv_c_stack_direction=-1 4079 fi 4080 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4081 fi 4082 fi 4083 echo "$as_me:4083: result: $ac_cv_c_stack_direction" >&5 4084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 4085 4086 cat >>confdefs.h <<EOF 2458 4087 #define STACK_DIRECTION $ac_cv_c_stack_direction 2459 4088 EOF … … 2461 4090 fi 2462 4091 2463 if test $ac_cv_ prog_gcc= yes; then2464 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&62465 echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&52466 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then2467 echo $ ac_n "(cached) $ac_c" 1>&64092 if test $ac_cv_c_compiler_gnu = yes; then 4093 echo "$as_me:4093: checking whether $CC needs -traditional" >&5 4094 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 4095 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 4096 echo $ECHO_N "(cached) $ECHO_C" >&6 2468 4097 else 2469 4098 ac_pattern="Autoconf.*'x'" 2470 cat > conftest.$ac_ext <<EOF2471 #line 2472"configure"4099 cat >conftest.$ac_ext <<_ACEOF 4100 #line 4100 "configure" 2472 4101 #include "confdefs.h" 2473 4102 #include <sgtty.h> 2474 4103 Autoconf TIOCGETP 2475 EOF4104 _ACEOF 2476 4105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2477 4106 egrep "$ac_pattern" >/dev/null 2>&1; then 2478 rm -rf conftest*2479 4107 ac_cv_prog_gcc_traditional=yes 2480 4108 else 2481 rm -rf conftest*2482 4109 ac_cv_prog_gcc_traditional=no 2483 4110 fi 2484 4111 rm -f conftest* 2485 4112 2486 2487 4113 if test $ac_cv_prog_gcc_traditional = no; then 2488 cat > conftest.$ac_ext <<EOF2489 #line 2490"configure"4114 cat >conftest.$ac_ext <<_ACEOF 4115 #line 4115 "configure" 2490 4116 #include "confdefs.h" 2491 4117 #include <termio.h> 2492 4118 Autoconf TCGETA 2493 EOF4119 _ACEOF 2494 4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2495 4121 egrep "$ac_pattern" >/dev/null 2>&1; then 2496 rm -rf conftest*2497 4122 ac_cv_prog_gcc_traditional=yes 2498 4123 fi … … 2501 4126 fi 2502 4127 fi 2503 2504 echo "$ ac_t""$ac_cv_prog_gcc_traditional" 1>&64128 echo "$as_me:4128: result: $ac_cv_prog_gcc_traditional" >&5 4129 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2505 4130 if test $ac_cv_prog_gcc_traditional = yes; then 2506 4131 CC="$CC -traditional" … … 2508 4133 fi 2509 4134 2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&62511 echo "configure:2512: checking return type of signal handlers" >&52512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then2513 echo $ ac_n "(cached) $ac_c" 1>&62514 else 2515 cat > conftest.$ac_ext <<EOF2516 #line 2517"configure"4135 echo "$as_me:4135: checking return type of signal handlers" >&5 4136 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4137 if test "${ac_cv_type_signal+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139 else 4140 cat >conftest.$ac_ext <<_ACEOF 4141 #line 4141 "configure" 2517 4142 #include "confdefs.h" 2518 4143 #include <sys/types.h> 2519 4144 #include <signal.h> 2520 4145 #ifdef signal 2521 # undef signal4146 # undef signal 2522 4147 #endif 2523 4148 #ifdef __cplusplus … … 2527 4152 #endif 2528 4153 2529 int main() { 4154 int 4155 main () 4156 { 2530 4157 int i; 2531 ; return 0; } 2532 EOF 2533 if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2534 rm -rf conftest* 4158 ; 4159 return 0; 4160 } 4161 _ACEOF 4162 rm -f conftest.$ac_objext 4163 if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5 4164 (eval $ac_compile) 2>&5 4165 ac_status=$? 4166 echo "$as_me:4166: \$? = $ac_status" >&5 4167 (exit $ac_status); } && 4168 { ac_try='test -s conftest.$ac_objext' 4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5 4170 (eval $ac_try) 2>&5 4171 ac_status=$? 4172 echo "$as_me:4172: \$? = $ac_status" >&5 4173 (exit $ac_status); }; }; then 2535 4174 ac_cv_type_signal=void 2536 4175 else 2537 echo " configure: failed program was:" >&52538 2539 rm -rf conftest* 2540 ac_cv_type_signal=int 2541 fi 2542 rm -f conftest* 2543 fi 2544 2545 echo "$ac_t""$ac_cv_type_signal" 1>&6 2546 cat >> 4176 echo "$as_me: failed program was:" >&5 4177 cat conftest.$ac_ext >&5 4178 ac_cv_type_signal=int 4179 fi 4180 rm -f conftest.$ac_objext conftest.$ac_ext 4181 fi 4182 echo "$as_me:4182: result: $ac_cv_type_signal" >&5 4183 echo "${ECHO_T}$ac_cv_type_signal" >&6 4184 4185 cat >>confdefs.h <<EOF 2547 4186 #define RETSIGTYPE $ac_cv_type_signal 2548 4187 EOF 2549 4188 2550 2551 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2552 echo "configure:2553: checking for vprintf" >&5 2553 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2554 echo $ac_n "(cached) $ac_c" 1>&6 2555 else 2556 cat > conftest.$ac_ext <<EOF 2557 #line 2558 "configure" 4189 for ac_func in vprintf 4190 do 4191 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4192 echo "$as_me:4192: checking for $ac_func" >&5 4193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4194 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4195 echo $ECHO_N "(cached) $ECHO_C" >&6 4196 else 4197 cat >conftest.$ac_ext <<_ACEOF 4198 #line 4198 "configure" 2558 4199 #include "confdefs.h" 2559 4200 /* System header to define __stub macros and hopefully few prototypes, 2560 which can conflict with char vprintf(); below. */4201 which can conflict with char $ac_func (); below. */ 2561 4202 #include <assert.h> 2562 4203 /* Override any gcc2 internal prototype to avoid an error. */ 4204 #ifdef __cplusplus 4205 extern "C" 4206 #endif 2563 4207 /* We use char because int might match the return type of a gcc2 2564 builtin and then its argument prototype would still apply. */ 2565 char vprintf(); 2566 2567 int main() { 2568 4208 builtin and then its argument prototype would still apply. */ 4209 char $ac_func (); 4210 char (*f) (); 4211 4212 int 4213 main () 4214 { 2569 4215 /* The GNU C library defines this for functions which it implements 2570 4216 to always fail with ENOSYS. Some functions are actually named 2571 4217 something starting with __ and the normal name is an alias. */ 2572 #if defined (__stub_ vprintf) || defined (__stub___vprintf)4218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2573 4219 choke me 2574 4220 #else 2575 vprintf();4221 f = $ac_func; 2576 4222 #endif 2577 4223 2578 ; return 0; } 2579 EOF 2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2581 rm -rf conftest* 2582 eval "ac_cv_func_vprintf=yes" 2583 else 2584 echo "configure: failed program was:" >&5 2585 cat conftest.$ac_ext >&5 2586 rm -rf conftest* 2587 eval "ac_cv_func_vprintf=no" 2588 fi 2589 rm -f conftest* 2590 fi 2591 2592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2593 echo "$ac_t""yes" 1>&6 2594 cat >> confdefs.h <<\EOF 2595 #define HAVE_VPRINTF 1 2596 EOF 2597 2598 else 2599 echo "$ac_t""no" 1>&6 2600 fi 2601 2602 if test "$ac_cv_func_vprintf" != yes; then 2603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2604 echo "configure:2605: checking for _doprnt" >&5 2605 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2606 echo $ac_n "(cached) $ac_c" 1>&6 2607 else 2608 cat > conftest.$ac_ext <<EOF 2609 #line 2610 "configure" 4224 ; 4225 return 0; 4226 } 4227 _ACEOF 4228 rm -f conftest.$ac_objext conftest$ac_exeext 4229 if { (eval echo "$as_me:4229: \"$ac_link\"") >&5 4230 (eval $ac_link) 2>&5 4231 ac_status=$? 4232 echo "$as_me:4232: \$? = $ac_status" >&5 4233 (exit $ac_status); } && 4234 { ac_try='test -s conftest$ac_exeext' 4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5 4236 (eval $ac_try) 2>&5 4237 ac_status=$? 4238 echo "$as_me:4238: \$? = $ac_status" >&5 4239 (exit $ac_status); }; }; then 4240 eval "$ac_ac_var=yes" 4241 else 4242 echo "$as_me: failed program was:" >&5 4243 cat conftest.$ac_ext >&5 4244 eval "$ac_ac_var=no" 4245 fi 4246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4247 fi 4248 echo "$as_me:4248: result: `eval echo '${'$ac_ac_var'}'`" >&5 4249 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4250 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4251 cat >>confdefs.h <<EOF 4252 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4253 EOF 4254 4255 echo "$as_me:4255: checking for _doprnt" >&5 4256 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4257 if test "${ac_cv_func__doprnt+set}" = set; then 4258 echo $ECHO_N "(cached) $ECHO_C" >&6 4259 else 4260 cat >conftest.$ac_ext <<_ACEOF 4261 #line 4261 "configure" 2610 4262 #include "confdefs.h" 2611 4263 /* System header to define __stub macros and hopefully few prototypes, 2612 which can conflict with char _doprnt (); below. */4264 which can conflict with char _doprnt (); below. */ 2613 4265 #include <assert.h> 2614 4266 /* Override any gcc2 internal prototype to avoid an error. */ 4267 #ifdef __cplusplus 4268 extern "C" 4269 #endif 2615 4270 /* We use char because int might match the return type of a gcc2 2616 builtin and then its argument prototype would still apply. */ 2617 char _doprnt(); 2618 2619 int main() { 2620 4271 builtin and then its argument prototype would still apply. */ 4272 char _doprnt (); 4273 char (*f) (); 4274 4275 int 4276 main () 4277 { 2621 4278 /* The GNU C library defines this for functions which it implements 2622 4279 to always fail with ENOSYS. Some functions are actually named … … 2625 4282 choke me 2626 4283 #else 2627 _doprnt();4284 f = _doprnt; 2628 4285 #endif 2629 4286 2630 ; return 0; } 2631 EOF 2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2633 rm -rf conftest* 2634 eval "ac_cv_func__doprnt=yes" 2635 else 2636 echo "configure: failed program was:" >&5 2637 cat conftest.$ac_ext >&5 2638 rm -rf conftest* 2639 eval "ac_cv_func__doprnt=no" 2640 fi 2641 rm -f conftest* 2642 fi 2643 2644 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2645 echo "$ac_t""yes" 1>&6 2646 cat >> confdefs.h <<\EOF 4287 ; 4288 return 0; 4289 } 4290 _ACEOF 4291 rm -f conftest.$ac_objext conftest$ac_exeext 4292 if { (eval echo "$as_me:4292: \"$ac_link\"") >&5 4293 (eval $ac_link) 2>&5 4294 ac_status=$? 4295 echo "$as_me:4295: \$? = $ac_status" >&5 4296 (exit $ac_status); } && 4297 { ac_try='test -s conftest$ac_exeext' 4298 { (eval echo "$as_me:4298: \"$ac_try\"") >&5 4299 (eval $ac_try) 2>&5 4300 ac_status=$? 4301 echo "$as_me:4301: \$? = $ac_status" >&5 4302 (exit $ac_status); }; }; then 4303 ac_cv_func__doprnt=yes 4304 else 4305 echo "$as_me: failed program was:" >&5 4306 cat conftest.$ac_ext >&5 4307 ac_cv_func__doprnt=no 4308 fi 4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4310 fi 4311 echo "$as_me:4311: result: $ac_cv_func__doprnt" >&5 4312 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4313 if test $ac_cv_func__doprnt = yes; then 4314 4315 cat >>confdefs.h <<\EOF 2647 4316 #define HAVE_DOPRNT 1 2648 4317 EOF 2649 4318 2650 else 2651 echo "$ac_t""no" 1>&6 2652 fi 2653 2654 fi 4319 fi 4320 4321 fi 4322 done 2655 4323 2656 4324 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror 2657 4325 do 2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2659 echo "configure:2660: checking for $ac_func" >&5 2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2661 echo $ac_n "(cached) $ac_c" 1>&6 2662 else 2663 cat > conftest.$ac_ext <<EOF 2664 #line 2665 "configure" 4326 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4327 echo "$as_me:4327: checking for $ac_func" >&5 4328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4329 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4330 echo $ECHO_N "(cached) $ECHO_C" >&6 4331 else 4332 cat >conftest.$ac_ext <<_ACEOF 4333 #line 4333 "configure" 2665 4334 #include "confdefs.h" 2666 4335 /* System header to define __stub macros and hopefully few prototypes, 2667 which can conflict with char $ac_func (); below. */4336 which can conflict with char $ac_func (); below. */ 2668 4337 #include <assert.h> 2669 4338 /* Override any gcc2 internal prototype to avoid an error. */ 4339 #ifdef __cplusplus 4340 extern "C" 4341 #endif 2670 4342 /* We use char because int might match the return type of a gcc2 2671 builtin and then its argument prototype would still apply. */ 2672 char $ac_func(); 2673 2674 int main() { 2675 4343 builtin and then its argument prototype would still apply. */ 4344 char $ac_func (); 4345 char (*f) (); 4346 4347 int 4348 main () 4349 { 2676 4350 /* The GNU C library defines this for functions which it implements 2677 4351 to always fail with ENOSYS. Some functions are actually named … … 2680 4354 choke me 2681 4355 #else 2682 $ac_func();4356 f = $ac_func; 2683 4357 #endif 2684 4358 2685 ; return 0; } 2686 EOF 2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2688 rm -rf conftest* 2689 eval "ac_cv_func_$ac_func=yes" 2690 else 2691 echo "configure: failed program was:" >&5 2692 cat conftest.$ac_ext >&5 2693 rm -rf conftest* 2694 eval "ac_cv_func_$ac_func=no" 2695 fi 2696 rm -f conftest* 2697 fi 2698 2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2700 echo "$ac_t""yes" 1>&6 2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2702 cat >> confdefs.h <<EOF 2703 #define $ac_tr_func 1 2704 EOF 2705 2706 else 2707 echo "$ac_t""no" 1>&6 4359 ; 4360 return 0; 4361 } 4362 _ACEOF 4363 rm -f conftest.$ac_objext conftest$ac_exeext 4364 if { (eval echo "$as_me:4364: \"$ac_link\"") >&5 4365 (eval $ac_link) 2>&5 4366 ac_status=$? 4367 echo "$as_me:4367: \$? = $ac_status" >&5 4368 (exit $ac_status); } && 4369 { ac_try='test -s conftest$ac_exeext' 4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5 4371 (eval $ac_try) 2>&5 4372 ac_status=$? 4373 echo "$as_me:4373: \$? = $ac_status" >&5 4374 (exit $ac_status); }; }; then 4375 eval "$ac_ac_var=yes" 4376 else 4377 echo "$as_me: failed program was:" >&5 4378 cat conftest.$ac_ext >&5 4379 eval "$ac_ac_var=no" 4380 fi 4381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4382 fi 4383 echo "$as_me:4383: result: `eval echo '${'$ac_ac_var'}'`" >&5 4384 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4385 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4386 cat >>confdefs.h <<EOF 4387 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4388 EOF 4389 2708 4390 fi 2709 4391 done … … 2711 4393 for ac_func in ftruncate strstr strcasecmp 2712 4394 do 2713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2714 echo "configure:2715: checking for $ac_func" >&5 2715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2716 echo $ac_n "(cached) $ac_c" 1>&6 2717 else 2718 cat > conftest.$ac_ext <<EOF 2719 #line 2720 "configure" 4395 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4396 echo "$as_me:4396: checking for $ac_func" >&5 4397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4398 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400 else 4401 cat >conftest.$ac_ext <<_ACEOF 4402 #line 4402 "configure" 2720 4403 #include "confdefs.h" 2721 4404 /* System header to define __stub macros and hopefully few prototypes, 2722 which can conflict with char $ac_func (); below. */4405 which can conflict with char $ac_func (); below. */ 2723 4406 #include <assert.h> 2724 4407 /* Override any gcc2 internal prototype to avoid an error. */ 4408 #ifdef __cplusplus 4409 extern "C" 4410 #endif 2725 4411 /* We use char because int might match the return type of a gcc2 2726 builtin and then its argument prototype would still apply. */ 2727 char $ac_func(); 2728 2729 int main() { 2730 4412 builtin and then its argument prototype would still apply. */ 4413 char $ac_func (); 4414 char (*f) (); 4415 4416 int 4417 main () 4418 { 2731 4419 /* The GNU C library defines this for functions which it implements 2732 4420 to always fail with ENOSYS. Some functions are actually named … … 2735 4423 choke me 2736 4424 #else 2737 $ac_func();4425 f = $ac_func; 2738 4426 #endif 2739 4427 2740 ; return 0; } 2741 EOF 2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2743 rm -rf conftest* 2744 eval "ac_cv_func_$ac_func=yes" 2745 else 2746 echo "configure: failed program was:" >&5 2747 cat conftest.$ac_ext >&5 2748 rm -rf conftest* 2749 eval "ac_cv_func_$ac_func=no" 2750 fi 2751 rm -f conftest* 2752 fi 2753 2754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2755 echo "$ac_t""yes" 1>&6 2756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2757 cat >> confdefs.h <<EOF 2758 #define $ac_tr_func 1 2759 EOF 2760 2761 else 2762 echo "$ac_t""no" 1>&6 2763 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 4428 ; 4429 return 0; 4430 } 4431 _ACEOF 4432 rm -f conftest.$ac_objext conftest$ac_exeext 4433 if { (eval echo "$as_me:4433: \"$ac_link\"") >&5 4434 (eval $ac_link) 2>&5 4435 ac_status=$? 4436 echo "$as_me:4436: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -s conftest$ac_exeext' 4439 { (eval echo "$as_me:4439: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:4442: \$? = $ac_status" >&5 4443 (exit $ac_status); }; }; then 4444 eval "$ac_ac_var=yes" 4445 else 4446 echo "$as_me: failed program was:" >&5 4447 cat conftest.$ac_ext >&5 4448 eval "$ac_ac_var=no" 4449 fi 4450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4451 fi 4452 echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5 4453 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4454 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4455 cat >>confdefs.h <<EOF 4456 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4457 EOF 4458 4459 else 4460 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 2764 4461 fi 2765 4462 done 2766 4463 2767 2768 2769 2770 echo $ac_n "checking for textdomain ""... $ac_c" 1>&6 2771 echo "configure:2772: checking for textdomain " >&5 2772 if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then 2773 echo $ac_n "(cached) $ac_c" 1>&6 2774 else 2775 cat > conftest.$ac_ext <<EOF 2776 #line 2777 "configure" 4464 echo "$as_me:4464: checking for textdomain" >&5 4465 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6 4466 if test "${ac_cv_func_textdomain+set}" = set; then 4467 echo $ECHO_N "(cached) $ECHO_C" >&6 4468 else 4469 cat >conftest.$ac_ext <<_ACEOF 4470 #line 4470 "configure" 2777 4471 #include "confdefs.h" 2778 4472 /* System header to define __stub macros and hopefully few prototypes, … … 2780 4474 #include <assert.h> 2781 4475 /* Override any gcc2 internal prototype to avoid an error. */ 4476 #ifdef __cplusplus 4477 extern "C" 4478 #endif 2782 4479 /* We use char because int might match the return type of a gcc2 2783 4480 builtin and then its argument prototype would still apply. */ 2784 4481 char textdomain (); 2785 2786 int main() { 2787 4482 char (*f) (); 4483 4484 int 4485 main () 4486 { 2788 4487 /* The GNU C library defines this for functions which it implements 2789 4488 to always fail with ENOSYS. Some functions are actually named 2790 4489 something starting with __ and the normal name is an alias. */ 2791 #if defined (__stub_textdomain ) || defined (__stub___textdomain)4490 #if defined (__stub_textdomain) || defined (__stub___textdomain) 2792 4491 choke me 2793 4492 #else 2794 textdomain ();4493 f = textdomain; 2795 4494 #endif 2796 4495 2797 ; return 0; } 2798 EOF 2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2800 rm -rf conftest* 2801 eval "ac_cv_func_textdomain =yes" 2802 else 2803 echo "configure: failed program was:" >&5 2804 cat conftest.$ac_ext >&5 2805 rm -rf conftest* 2806 eval "ac_cv_func_textdomain =no" 2807 fi 2808 rm -f conftest* 2809 fi 2810 2811 if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then 2812 echo "$ac_t""yes" 1>&6 2813 cat >> confdefs.h <<\EOF 4496 ; 4497 return 0; 4498 } 4499 _ACEOF 4500 rm -f conftest.$ac_objext conftest$ac_exeext 4501 if { (eval echo "$as_me:4501: \"$ac_link\"") >&5 4502 (eval $ac_link) 2>&5 4503 ac_status=$? 4504 echo "$as_me:4504: \$? = $ac_status" >&5 4505 (exit $ac_status); } && 4506 { ac_try='test -s conftest$ac_exeext' 4507 { (eval echo "$as_me:4507: \"$ac_try\"") >&5 4508 (eval $ac_try) 2>&5 4509 ac_status=$? 4510 echo "$as_me:4510: \$? = $ac_status" >&5 4511 (exit $ac_status); }; }; then 4512 ac_cv_func_textdomain=yes 4513 else 4514 echo "$as_me: failed program was:" >&5 4515 cat conftest.$ac_ext >&5 4516 ac_cv_func_textdomain=no 4517 fi 4518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4519 fi 4520 echo "$as_me:4520: result: $ac_cv_func_textdomain" >&5 4521 echo "${ECHO_T}$ac_cv_func_textdomain" >&6 4522 if test $ac_cv_func_textdomain = yes; then 4523 cat >>confdefs.h <<\EOF 2814 4524 #define ENABLE_NLS 1 2815 4525 EOF 2816 2817 else 2818 echo "$ac_t""no" 1>&6 2819 fi 2820 4526 4527 fi 2821 4528 2822 4529 # *** Custom checking (based on GNU tar configure.in) *** 2823 4530 # --------------------------------------------------------------------------- 2824 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&62825 echo "configure:2826: checking for HP-UX needing gmalloc" >&54531 echo "$as_me:4531: checking for HP-UX needing gmalloc" >&5 4532 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 2826 4533 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2827 echo "$ac_t""yes" 1>&6 4534 echo "$as_me:4534: result: yes" >&5 4535 echo "${ECHO_T}yes" >&6 2828 4536 LIBOBJS="$LIBOBJS gmalloc.o" 2829 cat >> 4537 cat >>confdefs.h <<\EOF 2830 4538 #define HAVE_VALLOC 1 2831 4539 EOF 2832 4540 2833 4541 else 2834 echo "$ac_t""no" 1>&6 2835 for ac_func in valloc 4542 echo "$as_me:4542: result: no" >&5 4543 echo "${ECHO_T}no" >&6 4544 4545 for ac_func in valloc 2836 4546 do 2837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2838 echo "configure:2839: checking for $ac_func" >&5 2839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2840 echo $ac_n "(cached) $ac_c" 1>&6 2841 else 2842 cat > conftest.$ac_ext <<EOF 2843 #line 2844 "configure" 4547 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4548 echo "$as_me:4548: checking for $ac_func" >&5 4549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4550 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552 else 4553 cat >conftest.$ac_ext <<_ACEOF 4554 #line 4554 "configure" 2844 4555 #include "confdefs.h" 2845 4556 /* System header to define __stub macros and hopefully few prototypes, 2846 which can conflict with char $ac_func (); below. */4557 which can conflict with char $ac_func (); below. */ 2847 4558 #include <assert.h> 2848 4559 /* Override any gcc2 internal prototype to avoid an error. */ 4560 #ifdef __cplusplus 4561 extern "C" 4562 #endif 2849 4563 /* We use char because int might match the return type of a gcc2 2850 builtin and then its argument prototype would still apply. */ 2851 char $ac_func(); 2852 2853 int main() { 2854 4564 builtin and then its argument prototype would still apply. */ 4565 char $ac_func (); 4566 char (*f) (); 4567 4568 int 4569 main () 4570 { 2855 4571 /* The GNU C library defines this for functions which it implements 2856 4572 to always fail with ENOSYS. Some functions are actually named … … 2859 4575 choke me 2860 4576 #else 2861 $ac_func();4577 f = $ac_func; 2862 4578 #endif 2863 4579 2864 ; return 0; } 2865 EOF 2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2867 rm -rf conftest* 2868 eval "ac_cv_func_$ac_func=yes" 2869 else 2870 echo "configure: failed program was:" >&5 2871 cat conftest.$ac_ext >&5 2872 rm -rf conftest* 2873 eval "ac_cv_func_$ac_func=no" 2874 fi 2875 rm -f conftest* 2876 fi 2877 2878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2879 echo "$ac_t""yes" 1>&6 2880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2881 cat >> confdefs.h <<EOF 2882 #define $ac_tr_func 1 2883 EOF 2884 2885 else 2886 echo "$ac_t""no" 1>&6 4580 ; 4581 return 0; 4582 } 4583 _ACEOF 4584 rm -f conftest.$ac_objext conftest$ac_exeext 4585 if { (eval echo "$as_me:4585: \"$ac_link\"") >&5 4586 (eval $ac_link) 2>&5 4587 ac_status=$? 4588 echo "$as_me:4588: \$? = $ac_status" >&5 4589 (exit $ac_status); } && 4590 { ac_try='test -s conftest$ac_exeext' 4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:4594: \$? = $ac_status" >&5 4595 (exit $ac_status); }; }; then 4596 eval "$ac_ac_var=yes" 4597 else 4598 echo "$as_me: failed program was:" >&5 4599 cat conftest.$ac_ext >&5 4600 eval "$ac_ac_var=no" 4601 fi 4602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4603 fi 4604 echo "$as_me:4604: result: `eval echo '${'$ac_ac_var'}'`" >&5 4605 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4606 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4607 cat >>confdefs.h <<EOF 4608 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4609 EOF 4610 2887 4611 fi 2888 4612 done … … 2890 4614 fi 2891 4615 2892 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2893 echo "configure:2894: checking if malloc debugging is wanted" >&5 4616 echo "$as_me:4616: checking if malloc debugging is wanted" >&5 4617 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4618 2894 4619 # Check whether --with-dmalloc or --without-dmalloc was given. 2895 4620 if test "${with_dmalloc+set}" = set; then 2896 4621 withval="$with_dmalloc" 2897 4622 if test "$withval" = yes; then 2898 echo "$ac_t""yes" 1>&6 2899 cat >> confdefs.h <<\EOF 4623 echo "$as_me:4623: result: yes" >&5 4624 echo "${ECHO_T}yes" >&6 4625 cat >>confdefs.h <<\EOF 2900 4626 #define WITH_DMALLOC 1 2901 4627 EOF … … 2904 4630 LDFLAGS="$LDFLAGS -g" 2905 4631 else 2906 echo "$ac_t""no" 1>&6 2907 fi 2908 else 2909 echo "$ac_t""no" 1>&6 2910 fi 2911 2912 2913 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2914 echo "configure:2915: checking which of rx or regex is wanted" >&5 4632 echo "$as_me:4632: result: no" >&5 4633 echo "${ECHO_T}no" >&6 4634 fi 4635 else 4636 echo "$as_me:4636: result: no" >&5 4637 echo "${ECHO_T}no" >&6 4638 fi; 4639 4640 echo "$as_me:4640: checking which of rx or regex is wanted" >&5 4641 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4642 2915 4643 # Check whether --with-regex or --without-regex was given. 2916 4644 if test "${with_regex+set}" = set; then … … 2918 4646 if test "$withval" = yes; then 2919 4647 ac_with_regex=1 2920 echo "$ac_t""regex" 1>&6 2921 cat >> confdefs.h <<\EOF 4648 echo "$as_me:4648: result: regex" >&5 4649 echo "${ECHO_T}regex" >&6 4650 cat >>confdefs.h <<\EOF 2922 4651 #define WITH_REGEX 1 2923 4652 EOF … … 2925 4654 LIBOBJS="$LIBOBJS regex.o" 2926 4655 fi 2927 fi 2928 4656 fi; 2929 4657 if test -z "$ac_with_regex"; then 2930 echo "$ac_t""rx" 1>&6 2931 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2932 echo "configure:2933: checking for re_rx_search" >&5 2933 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2934 echo $ac_n "(cached) $ac_c" 1>&6 2935 else 2936 cat > conftest.$ac_ext <<EOF 2937 #line 2938 "configure" 4658 echo "$as_me:4658: result: rx" >&5 4659 echo "${ECHO_T}rx" >&6 4660 echo "$as_me:4660: checking for re_rx_search" >&5 4661 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4662 if test "${ac_cv_func_re_rx_search+set}" = set; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664 else 4665 cat >conftest.$ac_ext <<_ACEOF 4666 #line 4666 "configure" 2938 4667 #include "confdefs.h" 2939 4668 /* System header to define __stub macros and hopefully few prototypes, 2940 which can conflict with char re_rx_search (); below. */4669 which can conflict with char re_rx_search (); below. */ 2941 4670 #include <assert.h> 2942 4671 /* Override any gcc2 internal prototype to avoid an error. */ 4672 #ifdef __cplusplus 4673 extern "C" 4674 #endif 2943 4675 /* We use char because int might match the return type of a gcc2 2944 builtin and then its argument prototype would still apply. */ 2945 char re_rx_search(); 2946 2947 int main() { 2948 4676 builtin and then its argument prototype would still apply. */ 4677 char re_rx_search (); 4678 char (*f) (); 4679 4680 int 4681 main () 4682 { 2949 4683 /* The GNU C library defines this for functions which it implements 2950 4684 to always fail with ENOSYS. Some functions are actually named … … 2953 4687 choke me 2954 4688 #else 2955 re_rx_search();4689 f = re_rx_search; 2956 4690 #endif 2957 4691 2958 ; return 0; } 2959 EOF 2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2961 rm -rf conftest* 2962 eval "ac_cv_func_re_rx_search=yes" 2963 else 2964 echo "configure: failed program was:" >&5 2965 cat conftest.$ac_ext >&5 2966 rm -rf conftest* 2967 eval "ac_cv_func_re_rx_search=no" 2968 fi 2969 rm -f conftest* 2970 fi 2971 2972 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2973 echo "$ac_t""yes" 1>&6 4692 ; 4693 return 0; 4694 } 4695 _ACEOF 4696 rm -f conftest.$ac_objext conftest$ac_exeext 4697 if { (eval echo "$as_me:4697: \"$ac_link\"") >&5 4698 (eval $ac_link) 2>&5 4699 ac_status=$? 4700 echo "$as_me:4700: \$? = $ac_status" >&5 4701 (exit $ac_status); } && 4702 { ac_try='test -s conftest$ac_exeext' 4703 { (eval echo "$as_me:4703: \"$ac_try\"") >&5 4704 (eval $ac_try) 2>&5 4705 ac_status=$? 4706 echo "$as_me:4706: \$? = $ac_status" >&5 4707 (exit $ac_status); }; }; then 4708 ac_cv_func_re_rx_search=yes 4709 else 4710 echo "$as_me: failed program was:" >&5 4711 cat conftest.$ac_ext >&5 4712 ac_cv_func_re_rx_search=no 4713 fi 4714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4715 fi 4716 echo "$as_me:4716: result: $ac_cv_func_re_rx_search" >&5 4717 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4718 if test $ac_cv_func_re_rx_search = yes; then 2974 4719 : 2975 4720 else 2976 echo "$ac_t""no" 1>&6 2977 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6 2978 echo "configure:2979: checking size of unsigned char *" >&5 2979 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then 2980 echo $ac_n "(cached) $ac_c" 1>&6 2981 else 4721 echo "$as_me:4721: checking for unsigned char *" >&5 4722 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6 4723 if test "${ac_cv_type_unsigned_char_p+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725 else 4726 cat >conftest.$ac_ext <<_ACEOF 4727 #line 4727 "configure" 4728 #include "confdefs.h" 4729 $ac_includes_default 4730 int 4731 main () 4732 { 4733 if ((unsigned char * *) 0) 4734 return 0; 4735 if (sizeof (unsigned char *)) 4736 return 0; 4737 ; 4738 return 0; 4739 } 4740 _ACEOF 4741 rm -f conftest.$ac_objext 4742 if { (eval echo "$as_me:4742: \"$ac_compile\"") >&5 4743 (eval $ac_compile) 2>&5 4744 ac_status=$? 4745 echo "$as_me:4745: \$? = $ac_status" >&5 4746 (exit $ac_status); } && 4747 { ac_try='test -s conftest.$ac_objext' 4748 { (eval echo "$as_me:4748: \"$ac_try\"") >&5 4749 (eval $ac_try) 2>&5 4750 ac_status=$? 4751 echo "$as_me:4751: \$? = $ac_status" >&5 4752 (exit $ac_status); }; }; then 4753 ac_cv_type_unsigned_char_p=yes 4754 else 4755 echo "$as_me: failed program was:" >&5 4756 cat conftest.$ac_ext >&5 4757 ac_cv_type_unsigned_char_p=no 4758 fi 4759 rm -f conftest.$ac_objext conftest.$ac_ext 4760 fi 4761 echo "$as_me:4761: result: $ac_cv_type_unsigned_char_p" >&5 4762 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6 4763 4764 echo "$as_me:4764: checking size of unsigned char *" >&5 4765 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6 4766 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768 else 4769 if test "$ac_cv_type_unsigned_char_p" = yes; then 2982 4770 if test "$cross_compiling" = yes; then 2983 ac_cv_sizeof_unsigned_char_p=unsigned char *2984 else 2985 cat > conftest.$ac_ext <<EOF 2986 # line 2987 "configure"2987 #include "confdefs.h" 2988 #include <stdio.h> 2989 main ()4771 # Depending upon the size, compute the lo and hi bounds. 4772 cat >conftest.$ac_ext <<_ACEOF 4773 #line 4773 "configure" 4774 #include "confdefs.h" 4775 $ac_includes_default 4776 int 4777 main () 2990 4778 { 2991 FILE *f=fopen("conftestval", "w"); 2992 if (!f) exit(1); 2993 fprintf(f, "%d\n", sizeof(unsigned char *)); 2994 exit(0); 4779 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)] 4780 ; 4781 return 0; 2995 4782 } 2996 EOF 2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2998 then 2999 ac_cv_sizeof_unsigned_char_p=`cat conftestval` 3000 else 3001 echo "configure: failed program was:" >&5 3002 cat conftest.$ac_ext >&5 3003 rm -fr conftest* 4783 _ACEOF 4784 rm -f conftest.$ac_objext 4785 if { (eval echo "$as_me:4785: \"$ac_compile\"") >&5 4786 (eval $ac_compile) 2>&5 4787 ac_status=$? 4788 echo "$as_me:4788: \$? = $ac_status" >&5 4789 (exit $ac_status); } && 4790 { ac_try='test -s conftest.$ac_objext' 4791 { (eval echo "$as_me:4791: \"$ac_try\"") >&5 4792 (eval $ac_try) 2>&5 4793 ac_status=$? 4794 echo "$as_me:4794: \$? = $ac_status" >&5 4795 (exit $ac_status); }; }; then 4796 ac_lo=0 ac_mid=0 4797 while :; do 4798 cat >conftest.$ac_ext <<_ACEOF 4799 #line 4799 "configure" 4800 #include "confdefs.h" 4801 $ac_includes_default 4802 int 4803 main () 4804 { 4805 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4806 ; 4807 return 0; 4808 } 4809 _ACEOF 4810 rm -f conftest.$ac_objext 4811 if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5 4812 (eval $ac_compile) 2>&5 4813 ac_status=$? 4814 echo "$as_me:4814: \$? = $ac_status" >&5 4815 (exit $ac_status); } && 4816 { ac_try='test -s conftest.$ac_objext' 4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:4820: \$? = $ac_status" >&5 4821 (exit $ac_status); }; }; then 4822 ac_hi=$ac_mid; break 4823 else 4824 echo "$as_me: failed program was:" >&5 4825 cat conftest.$ac_ext >&5 4826 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 4827 fi 4828 rm -f conftest.$ac_objext conftest.$ac_ext 4829 done 4830 else 4831 echo "$as_me: failed program was:" >&5 4832 cat conftest.$ac_ext >&5 4833 ac_hi=-1 ac_mid=-1 4834 while :; do 4835 cat >conftest.$ac_ext <<_ACEOF 4836 #line 4836 "configure" 4837 #include "confdefs.h" 4838 $ac_includes_default 4839 int 4840 main () 4841 { 4842 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)] 4843 ; 4844 return 0; 4845 } 4846 _ACEOF 4847 rm -f conftest.$ac_objext 4848 if { (eval echo "$as_me:4848: \"$ac_compile\"") >&5 4849 (eval $ac_compile) 2>&5 4850 ac_status=$? 4851 echo "$as_me:4851: \$? = $ac_status" >&5 4852 (exit $ac_status); } && 4853 { ac_try='test -s conftest.$ac_objext' 4854 { (eval echo "$as_me:4854: \"$ac_try\"") >&5 4855 (eval $ac_try) 2>&5 4856 ac_status=$? 4857 echo "$as_me:4857: \$? = $ac_status" >&5 4858 (exit $ac_status); }; }; then 4859 ac_lo=$ac_mid; break 4860 else 4861 echo "$as_me: failed program was:" >&5 4862 cat conftest.$ac_ext >&5 4863 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 4864 fi 4865 rm -f conftest.$ac_objext conftest.$ac_ext 4866 done 4867 fi 4868 rm -f conftest.$ac_objext conftest.$ac_ext 4869 # Binary search between lo and hi bounds. 4870 while test "x$ac_lo" != "x$ac_hi"; do 4871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4872 cat >conftest.$ac_ext <<_ACEOF 4873 #line 4873 "configure" 4874 #include "confdefs.h" 4875 $ac_includes_default 4876 int 4877 main () 4878 { 4879 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4880 ; 4881 return 0; 4882 } 4883 _ACEOF 4884 rm -f conftest.$ac_objext 4885 if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5 4886 (eval $ac_compile) 2>&5 4887 ac_status=$? 4888 echo "$as_me:4888: \$? = $ac_status" >&5 4889 (exit $ac_status); } && 4890 { ac_try='test -s conftest.$ac_objext' 4891 { (eval echo "$as_me:4891: \"$ac_try\"") >&5 4892 (eval $ac_try) 2>&5 4893 ac_status=$? 4894 echo "$as_me:4894: \$? = $ac_status" >&5 4895 (exit $ac_status); }; }; then 4896 ac_hi=$ac_mid 4897 else 4898 echo "$as_me: failed program was:" >&5 4899 cat conftest.$ac_ext >&5 4900 ac_lo=`expr $ac_mid + 1` 4901 fi 4902 rm -f conftest.$ac_objext conftest.$ac_ext 4903 done 4904 ac_cv_sizeof_unsigned_char_p=$ac_lo 4905 else 4906 if test "$cross_compiling" = yes; then 4907 { { echo "$as_me:4907: error: cannot run test program while cross compiling" >&5 4908 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4909 { (exit 1); exit 1; }; } 4910 else 4911 cat >conftest.$ac_ext <<_ACEOF 4912 #line 4912 "configure" 4913 #include "confdefs.h" 4914 $ac_includes_default 4915 int 4916 main () 4917 { 4918 FILE *f = fopen ("conftest.val", "w"); 4919 if (!f) 4920 exit (1); 4921 fprintf (f, "%d", (sizeof (unsigned char *))); 4922 fclose (f); 4923 ; 4924 return 0; 4925 } 4926 _ACEOF 4927 rm -f conftest$ac_exeext 4928 if { (eval echo "$as_me:4928: \"$ac_link\"") >&5 4929 (eval $ac_link) 2>&5 4930 ac_status=$? 4931 echo "$as_me:4931: \$? = $ac_status" >&5 4932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4933 { (eval echo "$as_me:4933: \"$ac_try\"") >&5 4934 (eval $ac_try) 2>&5 4935 ac_status=$? 4936 echo "$as_me:4936: \$? = $ac_status" >&5 4937 (exit $ac_status); }; }; then 4938 ac_cv_sizeof_unsigned_char_p=`cat conftest.val` 4939 else 4940 echo "$as_me: program exited with status $ac_status" >&5 4941 echo "$as_me: failed program was:" >&5 4942 cat conftest.$ac_ext >&5 4943 fi 4944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4945 fi 4946 fi 4947 rm -f conftest.val 4948 else 3004 4949 ac_cv_sizeof_unsigned_char_p=0 3005 4950 fi 3006 rm -fr conftest* 3007 fi 3008 3009 fi 3010 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 3011 cat >> confdefs.h <<EOF 4951 fi 4952 echo "$as_me:4952: result: $ac_cv_sizeof_unsigned_char_p" >&5 4953 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6 4954 cat >>confdefs.h <<EOF 3012 4955 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 3013 4956 EOF 3014 4957 3015 3016 4958 if test "$ac_cv_sizeof_unsigned_char_p" = 8 3017 4959 then 3018 echo "configure: warning: I'm forcing you to use regex because I can't 3019 find a local rx library and the one included with this 3020 distribution doesn't work on 64-bit machines like yours" 1>&2 4960 { echo "$as_me:4960: WARNING: I'm forcing you to use regex because I can't 4961 find a local rx library and the one included with this 4962 distribution doesn't work on 64-bit machines like yours" >&5 4963 echo "$as_me: WARNING: I'm forcing you to use regex because I can't 4964 find a local rx library and the one included with this 4965 distribution doesn't work on 64-bit machines like yours" >&2;} 3021 4966 LIBOBJS="$LIBOBJS regex.o" 3022 4967 else 3023 4968 LIBOBJS="$LIBOBJS rx.o" 3024 4969 fi 3025 3026 fi 3027 3028 fi 3029 3030 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6 3031 echo "configure:3032: checking whether GNU readline requested" >&5 3032 # Check whether --with-gnu_readline or --without-gnu_readline was given. 4970 4971 fi 4972 4973 fi 4974 4975 echo "$as_me:4975: checking whether GNU readline requested" >&5 4976 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6 4977 4978 # Check whether --with-gnu_readline or --without-gnu_readline was given. 3033 4979 if test "${with_gnu_readline+set}" = set; then 3034 4980 withval="$with_gnu_readline" 3035 4981 if test "$withval" = yes; then 3036 echo "$ac_t""yes" 1>&6 4982 echo "$as_me:4982: result: yes" >&5 4983 echo "${ECHO_T}yes" >&6 3037 4984 ac_with_gnu_readline=1 3038 4985 else 3039 echo "$ac_t""no" 1>&6 4986 echo "$as_me:4986: result: no" >&5 4987 echo "${ECHO_T}no" >&6 3040 4988 fi 3041 4989 else 3042 echo "$a c_t""no" 1>&63043 fi 3044 4990 echo "$as_me:4990: result: no" >&5 4991 echo "${ECHO_T}no" >&6 4992 fi; 3045 4993 3046 4994 if test -n "$ac_with_gnu_readline"; then 3047 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'` 3048 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6 3049 echo "configure:3050: checking for readline/readline.h" >&5 3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3051 echo $ac_n "(cached) $ac_c" 1>&6 3052 else 3053 cat > conftest.$ac_ext <<EOF 3054 #line 3055 "configure" 4995 echo "$as_me:4995: checking for readline/readline.h" >&5 4996 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6 4997 if test "${ac_cv_header_readline_readline_h+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999 else 5000 cat >conftest.$ac_ext <<_ACEOF 5001 #line 5001 "configure" 3055 5002 #include "confdefs.h" 3056 5003 #include <readline/readline.h> 3057 EOF 3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3061 if test -z "$ac_err"; then 3062 rm -rf conftest* 3063 eval "ac_cv_header_$ac_safe=yes" 3064 else 3065 echo "$ac_err" >&5 3066 echo "configure: failed program was:" >&5 5004 _ACEOF 5005 if { (eval echo "$as_me:5005: \"$ac_cpp conftest.$ac_ext\"") >&5 5006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5007 ac_status=$? 5008 egrep -v '^ *\+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 echo "$as_me:5011: \$? = $ac_status" >&5 5012 (exit $ac_status); } >/dev/null; then 5013 if test -s conftest.err; then 5014 ac_cpp_err=$ac_c_preproc_warn_flag 5015 else 5016 ac_cpp_err= 5017 fi 5018 else 5019 ac_cpp_err=yes 5020 fi 5021 if test -z "$ac_cpp_err"; then 5022 ac_cv_header_readline_readline_h=yes 5023 else 5024 echo "$as_me: failed program was:" >&5 3067 5025 cat conftest.$ac_ext >&5 3068 rm -rf conftest*3069 eval "ac_cv_header_$ac_safe=no" 3070 fi 3071 rm -f conftest* 3072 fi 3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3074 echo "$ac_t""yes" 1>&6 5026 ac_cv_header_readline_readline_h=no 5027 fi 5028 rm -f conftest.err conftest.$ac_ext 5029 fi 5030 echo "$as_me:5030: result: $ac_cv_header_readline_readline_h" >&5 5031 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6 5032 if test $ac_cv_header_readline_readline_h = yes; then 3075 5033 ac_mg_readline_header_found=1 3076 5034 else 3077 echo "$ac_t""no" 1>&6 3078 echo "configure: warning: Can't find GNU readline headers; configuring without \ 3079 GNU readline support" 1>&2 5035 { echo "$as_me:5035: WARNING: Can't find GNU readline headers; configuring without \ 5036 GNU readline support" >&5 5037 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \ 5038 GNU readline support" >&2;} 3080 5039 fi 3081 5040 3082 5041 if test -n "$ac_mg_readline_header_found"; then 3083 5042 # first check whether we can find the readline library itself 3084 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 3085 echo "configure:3086: checking for main in -lreadline" >&5 3086 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` 3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3088 echo $ac_n "(cached) $ac_c" 1>&6 3089 else 3090 ac_save_LIBS="$LIBS" 5043 echo "$as_me:5043: checking for main in -lreadline" >&5 5044 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 5045 if test "${ac_cv_lib_readline_main+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047 else 5048 ac_check_lib_save_LIBS=$LIBS 3091 5049 LIBS="-lreadline $LIBS" 3092 cat > conftest.$ac_ext <<EOF 3093 #line 3094 "configure" 3094 #include "confdefs.h" 3095 3096 int main() { 3097 main() 3098 ; return 0; } 3099 EOF 3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3101 rm -rf conftest* 3102 eval "ac_cv_lib_$ac_lib_var=yes" 3103 else 3104 echo "configure: failed program was:" >&5 3105 cat conftest.$ac_ext >&5 3106 rm -rf conftest* 3107 eval "ac_cv_lib_$ac_lib_var=no" 3108 fi 3109 rm -f conftest* 3110 LIBS="$ac_save_LIBS" 3111 3112 fi 3113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 5050 cat >conftest.$ac_ext <<_ACEOF 5051 #line 5051 "configure" 5052 #include "confdefs.h" 5053 5054 int 5055 main () 5056 { 5057 main (); 5058 ; 5059 return 0; 5060 } 5061 _ACEOF 5062 rm -f conftest.$ac_objext conftest$ac_exeext 5063 if { (eval echo "$as_me:5063: \"$ac_link\"") >&5 5064 (eval $ac_link) 2>&5 5065 ac_status=$? 5066 echo "$as_me:5066: \$? = $ac_status" >&5 5067 (exit $ac_status); } && 5068 { ac_try='test -s conftest$ac_exeext' 5069 { (eval echo "$as_me:5069: \"$ac_try\"") >&5 5070 (eval $ac_try) 2>&5 5071 ac_status=$? 5072 echo "$as_me:5072: \$? = $ac_status" >&5 5073 (exit $ac_status); }; }; then 5074 ac_cv_lib_readline_main=yes 5075 else 5076 echo "$as_me: failed program was:" >&5 5077 cat conftest.$ac_ext >&5 5078 ac_cv_lib_readline_main=no 5079 fi 5080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5081 LIBS=$ac_check_lib_save_LIBS 5082 fi 5083 echo "$as_me:5083: result: $ac_cv_lib_readline_main" >&5 5084 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 5085 if test $ac_cv_lib_readline_main = yes; then 3115 5086 ac_mg_readline_lib_found=1 3116 cat >> 5087 cat >>confdefs.h <<\EOF 3117 5088 #define WITH_GNU_READLINE 1 3118 5089 EOF … … 3120 5091 LIBS="$LIBS -lreadline" 3121 5092 else 3122 echo "$ac_t""no" 1>&6 3123 echo "configure: warning: Can't find GNU readline library; configuring without \ 3124 GNU readline support" 1>&2 5093 { echo "$as_me:5093: WARNING: Can't find GNU readline library; configuring without \ 5094 GNU readline support" >&5 5095 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \ 5096 GNU readline support" >&2;} 3125 5097 fi 3126 5098 3127 5099 if test -n "$ac_mg_readline_lib_found"; then 3128 # on some systems, readline needs curses. It is difficult to 5100 # on some systems, readline needs curses. It is difficult to 3129 5101 # determine whether this is necessary on the current system, 3130 5102 # since other undefined symbols can be turned up by an … … 3132 5104 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses, 3133 5105 # we just bung it on and hope for the best. 3134 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 3135 echo "configure:3136: checking for main in -lcurses" >&5 3136 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'` 3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3138 echo $ac_n "(cached) $ac_c" 1>&6 3139 else 3140 ac_save_LIBS="$LIBS" 5106 echo "$as_me:5106: checking for main in -lcurses" >&5 5107 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6 5108 if test "${ac_cv_lib_curses_main+set}" = set; then 5109 echo $ECHO_N "(cached) $ECHO_C" >&6 5110 else 5111 ac_check_lib_save_LIBS=$LIBS 3141 5112 LIBS="-lcurses $LIBS" 3142 cat > conftest.$ac_ext <<EOF 3143 #line 3144 "configure" 3144 #include "confdefs.h" 3145 3146 int main() { 3147 main() 3148 ; return 0; } 3149 EOF 3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3151 rm -rf conftest* 3152 eval "ac_cv_lib_$ac_lib_var=yes" 3153 else 3154 echo "configure: failed program was:" >&5 3155 cat conftest.$ac_ext >&5 3156 rm -rf conftest* 3157 eval "ac_cv_lib_$ac_lib_var=no" 3158 fi 3159 rm -f conftest* 3160 LIBS="$ac_save_LIBS" 3161 3162 fi 3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3164 echo "$ac_t""yes" 1>&6 5113 cat >conftest.$ac_ext <<_ACEOF 5114 #line 5114 "configure" 5115 #include "confdefs.h" 5116 5117 int 5118 main () 5119 { 5120 main (); 5121 ; 5122 return 0; 5123 } 5124 _ACEOF 5125 rm -f conftest.$ac_objext conftest$ac_exeext 5126 if { (eval echo "$as_me:5126: \"$ac_link\"") >&5 5127 (eval $ac_link) 2>&5 5128 ac_status=$? 5129 echo "$as_me:5129: \$? = $ac_status" >&5 5130 (exit $ac_status); } && 5131 { ac_try='test -s conftest$ac_exeext' 5132 { (eval echo "$as_me:5132: \"$ac_try\"") >&5 5133 (eval $ac_try) 2>&5 5134 ac_status=$? 5135 echo "$as_me:5135: \$? = $ac_status" >&5 5136 (exit $ac_status); }; }; then 5137 ac_cv_lib_curses_main=yes 5138 else 5139 echo "$as_me: failed program was:" >&5 5140 cat conftest.$ac_ext >&5 5141 ac_cv_lib_curses_main=no 5142 fi 5143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5144 LIBS=$ac_check_lib_save_LIBS 5145 fi 5146 echo "$as_me:5146: result: $ac_cv_lib_curses_main" >&5 5147 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6 5148 if test $ac_cv_lib_curses_main = yes; then 3165 5149 LIBS="$LIBS -lcurses" 3166 else3167 echo "$ac_t""no" 1>&63168 5150 fi 3169 5151 … … 3172 5154 fi 3173 5155 3174 3175 5156 # --------------------------------------------------------------------------- 3176 5157 if test "$ac_cv_func_alloca" = 'no'; then 3177 5158 LIBOBJS="$LIBOBJS xmalloc.o error.o" 3178 5159 fi 3179 3180 5160 3181 5161 # --------------------------------------------------------------------------- … … 3184 5164 if test "${enable_override_longlong+set}" = set; then 3185 5165 enableval="$enable_override_longlong" 3186 cat >> 5166 cat >>confdefs.h <<\EOF 3187 5167 #define DISABLE_LONG_LONG 1 3188 5168 EOF 3189 5169 3190 fi 3191 5170 fi; 3192 5171 3193 5172 # --------------------------------------------------------------------------- 3194 5173 3195 trap '' 1 2 15 3196 cat > confcache <<\EOF 5174 ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile" 5175 ac_config_commands="$ac_config_commands default" 5176 cat >confcache <<\_ACEOF 3197 5177 # This file is a shell script that caches the results of configure 3198 5178 # tests run on this system so they can be shared between configure 3199 # scripts and configure runs. It is not useful on other systems. 3200 # If it contains results you don't want to keep, you may remove or edit it. 5179 # scripts and configure runs, see configure's option --config-cache. 5180 # It is not useful on other systems. If it contains results you don't 5181 # want to keep, you may remove or edit it. 3201 5182 # 3202 # By default, configure uses ./config.cache as the cache file, 3203 # creating it if it does not exist already. You can give configure 3204 # the --cache-file=FILE option to use a different cache file; that is 3205 # what configure does when it calls configure scripts in 3206 # subdirectories, so they share the cache. 3207 # Giving --cache-file=/dev/null disables caching, for debugging configure. 3208 # config.status only pays attention to the cache file if you give it the 3209 # --recheck option to rerun configure. 5183 # config.status only pays attention to the cache file if you give it 5184 # the --recheck option to rerun configure. 3210 5185 # 3211 EOF 5186 # `ac_cv_env_foo' variables (set or unset) will be overriden when 5187 # loading this file, other *unset* `ac_cv_foo' will be assigned the 5188 # following values. 5189 5190 _ACEOF 5191 3212 5192 # The following way of writing the cache mishandles newlines in values, 3213 5193 # but we know of no workaround that is simple, portable, and efficient. … … 3215 5195 # Ultrix sh set writes to stderr and can't be redirected directly, 3216 5196 # and sets the high bit in the cache file unless we assign to the vars. 3217 (set) 2>&1 | 3218 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3219 *ac_space=\ *) 3220 # `set' does not quote correctly, so add quotes (double-quote substitution 3221 # turns \\\\ into \\, and sed turns \\ into \). 3222 sed -n \ 3223 -e "s/'/'\\\\''/g" \ 3224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3225 ;; 3226 *) 3227 # `set' quotes correctly as required by POSIX, so do not add quotes. 3228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3229 ;; 3230 esac >> confcache 3231 if cmp -s $cache_file confcache; then 3232 : 3233 else 5197 { 5198 (set) 2>&1 | 5199 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5200 *ac_space=\ *) 5201 # `set' does not quote correctly, so add quotes (double-quote 5202 # substitution turns \\\\ into \\, and sed turns \\ into \). 5203 sed -n \ 5204 "s/'/'\\\\''/g; 5205 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5206 ;; 5207 *) 5208 # `set' quotes correctly as required by POSIX, so do not add quotes. 5209 sed -n \ 5210 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5211 ;; 5212 esac; 5213 } | 5214 sed ' 5215 t clear 5216 : clear 5217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5218 t end 5219 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5220 : end' >>confcache 5221 if cmp -s $cache_file confcache; then :; else 3234 5222 if test -w $cache_file; then 3235 echo "updating cache $cache_file"3236 cat confcache > 5223 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5224 cat confcache >$cache_file 3237 5225 else 3238 5226 echo "not updating unwritable cache $cache_file" … … 3241 5229 rm -f confcache 3242 5230 3243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 153244 3245 5231 test "x$prefix" = xNONE && prefix=$ac_default_prefix 3246 5232 # Let make expand exec_prefix. 3247 5233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3248 5234 3249 # Any assignment to VPATH causes Sun make to only execute 3250 # the first set of double-colon rules, so remove it if not needed. 3251 # If there is a colon in the path, we need to keep it. 5235 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5237 # trailing colons and then remove the whole line if VPATH becomes empty 5238 # (actually we leave an empty line to preserve line numbers). 3252 5239 if test "x$srcdir" = x.; then 3253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3254 fi 3255 3256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5240 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5241 s/:*\$(srcdir):*/:/; 5242 s/:*\${srcdir}:*/:/; 5243 s/:*@srcdir@:*/:/; 5244 s/^\([^=]*=[ ]*\):*/\1/; 5245 s/:*$//; 5246 s/^[^=]*=[ ]*$//; 5247 }' 5248 fi 3257 5249 3258 5250 DEFS=-DHAVE_CONFIG_H 3259 5251 3260 # Without the "./", some shells look in PATH for config.status.3261 5252 : ${CONFIG_STATUS=./config.status} 3262 3263 echo creating $CONFIG_STATUS 3264 rm -f $CONFIG_STATUS 3265 cat > $CONFIG_STATUS <<EOF 3266 #! /bin/sh 5253 ac_clean_files_save=$ac_clean_files 5254 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5255 { echo "$as_me:5255: creating $CONFIG_STATUS" >&5 5256 echo "$as_me: creating $CONFIG_STATUS" >&6;} 5257 cat >$CONFIG_STATUS <<_ACEOF 5258 #! $SHELL 3267 5259 # Generated automatically by configure. 3268 5260 # Run this file to recreate the current configuration. 3269 # This directory was configured as follows, 3270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5261 # Compiler output produced by configure, useful for debugging 5262 # configure, is in config.log if it exists. 5263 5264 debug=false 5265 SHELL=\${CONFIG_SHELL-$SHELL} 5266 ac_cs_invocation="\$0 \$@" 5267 5268 _ACEOF 5269 5270 cat >>$CONFIG_STATUS <<\_ACEOF 5271 # Be Bourne compatible 5272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5273 emulate sh 5274 NULLCMD=: 5275 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5276 set -o posix 5277 fi 5278 5279 # Name of the executable. 5280 as_me=`echo "$0" |sed 's,.*[\\/],,'` 5281 5282 if expr a : '\(a\)' >/dev/null 2>&1; then 5283 as_expr=expr 5284 else 5285 as_expr=false 5286 fi 5287 5288 rm -f conf$$ conf$$.exe conf$$.file 5289 echo >conf$$.file 5290 if ln -s conf$$.file conf$$ 2>/dev/null; then 5291 # We could just check for DJGPP; but this test a) works b) is more generic 5292 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5293 if test -f conf$$.exe; then 5294 # Don't use ln at all; we don't have any links 5295 as_ln_s='cp -p' 5296 else 5297 as_ln_s='ln -s' 5298 fi 5299 elif ln conf$$.file conf$$ 2>/dev/null; then 5300 as_ln_s=ln 5301 else 5302 as_ln_s='cp -p' 5303 fi 5304 rm -f conf$$ conf$$.exe conf$$.file 5305 5306 as_executable_p="test -f" 5307 5308 # Support unset when possible. 5309 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5310 as_unset=unset 5311 else 5312 as_unset=false 5313 fi 5314 5315 # NLS nuisances. 5316 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5317 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5318 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5319 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5320 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5321 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5322 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5323 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5324 5325 # IFS 5326 # We need space, tab and new line, in precisely that order. 5327 as_nl=' 5328 ' 5329 IFS=" $as_nl" 5330 5331 # CDPATH. 5332 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5333 5334 exec 6>&1 5335 5336 _ACEOF 5337 5338 # Files that config.status was made for. 5339 if test -n "$ac_config_files"; then 5340 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5341 fi 5342 5343 if test -n "$ac_config_headers"; then 5344 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5345 fi 5346 5347 if test -n "$ac_config_links"; then 5348 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5349 fi 5350 5351 if test -n "$ac_config_commands"; then 5352 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5353 fi 5354 5355 cat >>$CONFIG_STATUS <<\EOF 5356 5357 ac_cs_usage="\ 5358 \`$as_me' instantiates files from templates according to the 5359 current configuration. 5360 5361 Usage: $0 [OPTIONS] [FILE]... 5362 5363 -h, --help print this help, then exit 5364 -V, --version print version number, then exit 5365 -d, --debug don't remove temporary files 5366 --recheck update $as_me by reconfiguring in the same conditions 5367 --file=FILE[:TEMPLATE] 5368 instantiate the configuration file FILE 5369 --header=FILE[:TEMPLATE] 5370 instantiate the configuration header FILE 5371 5372 Configuration files: 5373 $config_files 5374 5375 Configuration headers: 5376 $config_headers 5377 5378 Configuration commands: 5379 $config_commands 5380 5381 Report bugs to <[email protected]>." 5382 EOF 5383 5384 cat >>$CONFIG_STATUS <<EOF 5385 ac_cs_version="\\ 5386 config.status 5387 configured by $0, generated by GNU Autoconf 2.50, 5388 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5389 5390 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5391 Free Software Foundation, Inc. 5392 This config.status script is free software; the Free Software Foundation 5393 gives unlimited permission to copy, distribute and modify it." 5394 srcdir=$srcdir 5395 INSTALL="$INSTALL" 5396 EOF 5397 5398 cat >>$CONFIG_STATUS <<\EOF 5399 # If no file are specified by the user, then we need to provide default 5400 # value. By we need to know if files were specified by the user. 5401 ac_need_defaults=: 5402 while test $# != 0 5403 do 5404 case $1 in 5405 --*=*) 5406 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5407 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5408 shift 5409 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5410 shift 5411 ;; 5412 -*);; 5413 *) # This is not an option, so the user has probably given explicit 5414 # arguments. 5415 ac_need_defaults=false;; 5416 esac 5417 5418 case $1 in 5419 # Handling of the options. 5420 EOF 5421 cat >>$CONFIG_STATUS <<EOF 5422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5423 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5424 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5425 EOF 5426 cat >>$CONFIG_STATUS <<\EOF 5427 --version | --vers* | -V ) 5428 echo "$ac_cs_version"; exit 0 ;; 5429 --he | --h) 5430 # Conflict between --help and --header 5431 { { echo "$as_me:5431: error: ambiguous option: $1 5432 Try \`$0 --help' for more information." >&5 5433 echo "$as_me: error: ambiguous option: $1 5434 Try \`$0 --help' for more information." >&2;} 5435 { (exit 1); exit 1; }; };; 5436 --help | --hel | -h ) 5437 echo "$ac_cs_usage"; exit 0 ;; 5438 --debug | --d* | -d ) 5439 debug=: ;; 5440 --file | --fil | --fi | --f ) 5441 shift 5442 CONFIG_FILES="$CONFIG_FILES $1" 5443 ac_need_defaults=false;; 5444 --header | --heade | --head | --hea ) 5445 shift 5446 CONFIG_HEADERS="$CONFIG_HEADERS $1" 5447 ac_need_defaults=false;; 5448 5449 # Handling of arguments. 5450 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5451 'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;; 5452 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 5453 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 5454 'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;; 5455 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 5456 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5457 5458 # This is an error. 5459 -*) { { echo "$as_me:5459: error: unrecognized option: $1 5460 Try \`$0 --help' for more information." >&5 5461 echo "$as_me: error: unrecognized option: $1 5462 Try \`$0 --help' for more information." >&2;} 5463 { (exit 1); exit 1; }; } ;; 5464 *) { { echo "$as_me:5464: error: invalid argument: $1" >&5 5465 echo "$as_me: error: invalid argument: $1" >&2;} 5466 { (exit 1); exit 1; }; };; 5467 esac 5468 shift 5469 done 5470 5471 exec 5>>config.log 5472 cat >&5 << _ACEOF 5473 5474 ## ----------------------- ## 5475 ## Running config.status. ## 5476 ## ----------------------- ## 5477 5478 This file was extended by $as_me 2.50, executed with 5479 > $ac_cs_invocation 5480 on `(hostname || uname -n) 2>/dev/null | sed 1q` 5481 5482 _ACEOF 5483 EOF 5484 5485 cat >>$CONFIG_STATUS <<\EOF 5486 # If the user did not use the arguments to specify the items to instantiate, 5487 # then the envvar interface is used. Set only those that are not. 5488 # We use the long form for the default assignment because of an extremely 5489 # bizarre bug on SunOS 4.1.3. 5490 if $ac_need_defaults; then 5491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5494 fi 5495 5496 # Create a temporary directory, and hook for its removal unless debugging. 5497 $debug || 5498 { 5499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5500 trap '{ (exit $?); exit $?; }' 1 2 13 15 5501 } 5502 5503 # Create a (secure) tmp directory for tmp files. 5504 : ${TMPDIR=/tmp} 5505 { 5506 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5507 test -n "$tmp" && test -d "$tmp" 5508 } || 5509 { 5510 tmp=$TMPDIR/cs$$-$RANDOM 5511 (umask 077 && mkdir $tmp) 5512 } || 5513 { 5514 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5515 { (exit 1); exit 1; } 5516 } 5517 5518 EOF 5519 5520 cat >>$CONFIG_STATUS <<EOF 5521 3271 5522 # 3272 # $0 $ac_configure_args5523 # CONFIG_FILES section. 3273 5524 # 3274 # Compiler output produced by configure, useful for debugging 3275 # configure, is in ./config.log if it exists. 3276 3277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3278 for ac_option 3279 do 3280 case "\$ac_option" in 3281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3285 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3286 exit 0 ;; 3287 -help | --help | --hel | --he | --h) 3288 echo "\$ac_cs_usage"; exit 0 ;; 3289 *) echo "\$ac_cs_usage"; exit 1 ;; 5525 5526 # No need to generate the scripts if there are no CONFIG_FILES. 5527 # This happens for instance when ./config.status config.h 5528 if test -n "\$CONFIG_FILES"; then 5529 # Protect against being on the right side of a sed subst in config.status. 5530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5532 s,@SHELL@,$SHELL,;t t 5533 s,@exec_prefix@,$exec_prefix,;t t 5534 s,@prefix@,$prefix,;t t 5535 s,@program_transform_name@,$program_transform_name,;t t 5536 s,@bindir@,$bindir,;t t 5537 s,@sbindir@,$sbindir,;t t 5538 s,@libexecdir@,$libexecdir,;t t 5539 s,@datadir@,$datadir,;t t 5540 s,@sysconfdir@,$sysconfdir,;t t 5541 s,@sharedstatedir@,$sharedstatedir,;t t 5542 s,@localstatedir@,$localstatedir,;t t 5543 s,@libdir@,$libdir,;t t 5544 s,@includedir@,$includedir,;t t 5545 s,@oldincludedir@,$oldincludedir,;t t 5546 s,@infodir@,$infodir,;t t 5547 s,@mandir@,$mandir,;t t 5548 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5549 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5550 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5551 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5552 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5553 s,@ECHO_C@,$ECHO_C,;t t 5554 s,@ECHO_N@,$ECHO_N,;t t 5555 s,@ECHO_T@,$ECHO_T,;t t 5556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5557 s,@DEFS@,$DEFS,;t t 5558 s,@LIBS@,$LIBS,;t t 5559 s,@PACKAGE@,$PACKAGE,;t t 5560 s,@VERSION@,$VERSION,;t t 5561 s,@CXX@,$CXX,;t t 5562 s,@CXXFLAGS@,$CXXFLAGS,;t t 5563 s,@LDFLAGS@,$LDFLAGS,;t t 5564 s,@CPPFLAGS@,$CPPFLAGS,;t t 5565 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 5566 s,@EXEEXT@,$EXEEXT,;t t 5567 s,@OBJEXT@,$OBJEXT,;t t 5568 s,@AWK@,$AWK,;t t 5569 s,@YACC@,$YACC,;t t 5570 s,@CC@,$CC,;t t 5571 s,@CFLAGS@,$CFLAGS,;t t 5572 s,@ac_ct_CC@,$ac_ct_CC,;t t 5573 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5574 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5575 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5576 s,@LN_S@,$LN_S,;t t 5577 s,@SET_MAKE@,$SET_MAKE,;t t 5578 s,@RANLIB@,$RANLIB,;t t 5579 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5580 s,@CPP@,$CPP,;t t 5581 s,@U@,$U,;t t 5582 s,@ANSI2KNR@,$ANSI2KNR,;t t 5583 s,@ALLOCA@,$ALLOCA,;t t 5584 s,@LIBOBJS@,$LIBOBJS,;t t 5585 CEOF 5586 5587 EOF 5588 5589 cat >>$CONFIG_STATUS <<\EOF 5590 # Split the substitutions into bite-sized pieces for seds with 5591 # small command number limits, like on Digital OSF/1 and HP-UX. 5592 ac_max_sed_lines=48 5593 ac_sed_frag=1 # Number of current file. 5594 ac_beg=1 # First line for current file. 5595 ac_end=$ac_max_sed_lines # Line after last line for current file. 5596 ac_more_lines=: 5597 ac_sed_cmds= 5598 while $ac_more_lines; do 5599 if test $ac_beg -gt 1; then 5600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5601 else 5602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5603 fi 5604 if test ! -s $tmp/subs.frag; then 5605 ac_more_lines=false 5606 else 5607 # The purpose of the label and of the branching condition is to 5608 # speed up the sed processing (if there are no `@' at all, there 5609 # is no need to browse any of the substitutions). 5610 # These are the two extra sed commands mentioned above. 5611 (echo ':t 5612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5613 if test -z "$ac_sed_cmds"; then 5614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5615 else 5616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5617 fi 5618 ac_sed_frag=`expr $ac_sed_frag + 1` 5619 ac_beg=$ac_end 5620 ac_end=`expr $ac_end + $ac_max_sed_lines` 5621 fi 5622 done 5623 if test -z "$ac_sed_cmds"; then 5624 ac_sed_cmds=cat 5625 fi 5626 fi # test -n "$CONFIG_FILES" 5627 5628 EOF 5629 cat >>$CONFIG_STATUS <<\EOF 5630 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5632 case $ac_file in 5633 - | *:- | *:-:* ) # input from stdin 5634 cat >$tmp/stdin 5635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5639 * ) ac_file_in=$ac_file.in ;; 3290 5640 esac 3291 done 3292 3293 ac_given_srcdir=$srcdir 3294 ac_given_INSTALL="$INSTALL" 3295 3296 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile 3297 jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3298 EOF 3299 cat >> $CONFIG_STATUS <<EOF 3300 3301 # Protect against being on the right side of a sed subst in config.status. 3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3304 $ac_vpsub 3305 $extrasub 3306 s%@SHELL@%$SHELL%g 3307 s%@CFLAGS@%$CFLAGS%g 3308 s%@CPPFLAGS@%$CPPFLAGS%g 3309 s%@CXXFLAGS@%$CXXFLAGS%g 3310 s%@FFLAGS@%$FFLAGS%g 3311 s%@DEFS@%$DEFS%g 3312 s%@LDFLAGS@%$LDFLAGS%g 3313 s%@LIBS@%$LIBS%g 3314 s%@exec_prefix@%$exec_prefix%g 3315 s%@prefix@%$prefix%g 3316 s%@program_transform_name@%$program_transform_name%g 3317 s%@bindir@%$bindir%g 3318 s%@sbindir@%$sbindir%g 3319 s%@libexecdir@%$libexecdir%g 3320 s%@datadir@%$datadir%g 3321 s%@sysconfdir@%$sysconfdir%g 3322 s%@sharedstatedir@%$sharedstatedir%g 3323 s%@localstatedir@%$localstatedir%g 3324 s%@libdir@%$libdir%g 3325 s%@includedir@%$includedir%g 3326 s%@oldincludedir@%$oldincludedir%g 3327 s%@infodir@%$infodir%g 3328 s%@mandir@%$mandir%g 3329 s%@PACKAGE@%$PACKAGE%g 3330 s%@VERSION@%$VERSION%g 3331 s%@CXX@%$CXX%g 3332 s%@AWK@%$AWK%g 3333 s%@YACC@%$YACC%g 3334 s%@CC@%$CC%g 3335 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3336 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3337 s%@INSTALL_DATA@%$INSTALL_DATA%g 3338 s%@LN_S@%$LN_S%g 3339 s%@SET_MAKE@%$SET_MAKE%g 3340 s%@RANLIB@%$RANLIB%g 3341 s%@CPP@%$CPP%g 3342 s%@U@%$U%g 3343 s%@ANSI2KNR@%$ANSI2KNR%g 3344 s%@ALLOCA@%$ALLOCA%g 3345 s%@LIBOBJS@%$LIBOBJS%g 3346 3347 CEOF 3348 EOF 3349 3350 cat >> $CONFIG_STATUS <<\EOF 3351 3352 # Split the substitutions into bite-sized pieces for seds with 3353 # small command number limits, like on Digital OSF/1 and HP-UX. 3354 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3355 ac_file=1 # Number of current file. 3356 ac_beg=1 # First line for current file. 3357 ac_end=$ac_max_sed_cmds # Line after last line for current file. 3358 ac_more_lines=: 3359 ac_sed_cmds="" 3360 while $ac_more_lines; do 3361 if test $ac_beg -gt 1; then 3362 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3363 else 3364 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3365 fi 3366 if test ! -s conftest.s$ac_file; then 3367 ac_more_lines=false 3368 rm -f conftest.s$ac_file 3369 else 3370 if test -z "$ac_sed_cmds"; then 3371 ac_sed_cmds="sed -f conftest.s$ac_file" 3372 else 3373 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3374 fi 3375 ac_file=`expr $ac_file + 1` 3376 ac_beg=$ac_end 3377 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3378 fi 3379 done 3380 if test -z "$ac_sed_cmds"; then 3381 ac_sed_cmds=cat 3382 fi 3383 EOF 3384 3385 cat >> $CONFIG_STATUS <<EOF 3386 3387 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile 3388 jni/Makefile java/org/greenstone/mgpp/Makefile"} 3389 EOF 3390 cat >> $CONFIG_STATUS <<\EOF 3391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3393 case "$ac_file" in 3394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3396 *) ac_file_in="${ac_file}.in" ;; 5641 5642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5643 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5644 X"$ac_file" : 'X\(//\)[^/]' \| \ 5645 X"$ac_file" : 'X\(//\)$' \| \ 5646 X"$ac_file" : 'X\(/\)' \| \ 5647 . : '\(.\)' 2>/dev/null || 5648 echo X"$ac_file" | 5649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5650 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5651 /^X\(\/\/\)$/{ s//\1/; q; } 5652 /^X\(\/\).*/{ s//\1/; q; } 5653 s/.*/./; q'` 5654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5655 { case "$ac_dir" in 5656 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5657 *) as_incr_dir=.;; 5658 esac 5659 as_dummy="$ac_dir" 5660 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5661 case $as_mkdir_dir in 5662 # Skip DOS drivespec 5663 ?:) as_incr_dir=$as_mkdir_dir ;; 5664 *) 5665 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5666 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5667 ;; 3397 5668 esac 3398 3399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3400 3401 # Remove last slash and all that follows it. Not all systems have dirname. 3402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3404 # The file is in a subdirectory. 3405 test ! -d "$ac_dir" && mkdir "$ac_dir" 3406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5669 done; } 5670 5671 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 3407 5672 # A "../" for each directory in $ac_dir_suffix. 3408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`5673 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 3409 5674 else 3410 5675 ac_dir_suffix= ac_dots= 3411 5676 fi 3412 5677 3413 case "$ac_given_srcdir" in 3414 .) srcdir=. 3415 if test -z "$ac_dots"; then top_srcdir=. 3416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5678 case $srcdir in 5679 .) ac_srcdir=. 5680 if test -z "$ac_dots"; then 5681 ac_top_srcdir=. 5682 else 5683 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5684 fi ;; 5685 [\\/]* | ?:[\\/]* ) 5686 ac_srcdir=$srcdir$ac_dir_suffix; 5687 ac_top_srcdir=$srcdir ;; 3418 5688 *) # Relative path. 3419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"3420 top_srcdir="$ac_dots$ac_given_srcdir";;5689 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 5690 ac_top_srcdir=$ac_dots$srcdir ;; 3421 5691 esac 3422 5692 3423 case "$ac_given_INSTALL"in3424 [ /$]*) INSTALL="$ac_given_INSTALL";;3425 *) INSTALL="$ac_dots$ac_given_INSTALL";;5693 case $INSTALL in 5694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5695 *) ac_INSTALL=$ac_dots$INSTALL ;; 3426 5696 esac 3427 5697 3428 echo creating "$ac_file" 3429 rm -f "$ac_file" 3430 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3431 case "$ac_file" in 3432 *Makefile*) ac_comsub="1i\\ 3433 # $configure_input" ;; 3434 *) ac_comsub= ;; 3435 esac 3436 3437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3438 sed -e "$ac_comsub 3439 s%@configure_input@%$configure_input%g 3440 s%@srcdir@%$srcdir%g 3441 s%@top_srcdir@%$top_srcdir%g 3442 s%@INSTALL@%$INSTALL%g 3443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3444 fi; done 3445 rm -f conftest.s* 5698 if test x"$ac_file" != x-; then 5699 { echo "$as_me:5699: creating $ac_file" >&5 5700 echo "$as_me: creating $ac_file" >&6;} 5701 rm -f "$ac_file" 5702 fi 5703 # Let's still pretend it is `configure' which instantiates (i.e., don't 5704 # use $as_me), people would be surprised to read: 5705 # /* config.h. Generated automatically by config.status. */ 5706 configure_input="Generated automatically from `echo $ac_file_in | 5707 sed 's,.*/,,'` by configure." 5708 5709 # First look for the input files in the build tree, otherwise in the 5710 # src tree. 5711 ac_file_inputs=`IFS=: 5712 for f in $ac_file_in; do 5713 case $f in 5714 -) echo $tmp/stdin ;; 5715 [\\/$]*) 5716 # Absolute (can't be DOS-style, as IFS=:) 5717 test -f "$f" || { { echo "$as_me:5717: error: cannot find input file: $f" >&5 5718 echo "$as_me: error: cannot find input file: $f" >&2;} 5719 { (exit 1); exit 1; }; } 5720 echo $f;; 5721 *) # Relative 5722 if test -f "$f"; then 5723 # Build tree 5724 echo $f 5725 elif test -f "$srcdir/$f"; then 5726 # Source tree 5727 echo $srcdir/$f 5728 else 5729 # /dev/null tree 5730 { { echo "$as_me:5730: error: cannot find input file: $f" >&5 5731 echo "$as_me: error: cannot find input file: $f" >&2;} 5732 { (exit 1); exit 1; }; } 5733 fi;; 5734 esac 5735 done` || { (exit 1); exit 1; } 5736 EOF 5737 cat >>$CONFIG_STATUS <<EOF 5738 sed "$ac_vpsub 5739 $extrasub 5740 EOF 5741 cat >>$CONFIG_STATUS <<\EOF 5742 :t 5743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5744 s,@configure_input@,$configure_input,;t t 5745 s,@srcdir@,$ac_srcdir,;t t 5746 s,@top_srcdir@,$ac_top_srcdir,;t t 5747 s,@INSTALL@,$ac_INSTALL,;t t 5748 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5749 rm -f $tmp/stdin 5750 if test x"$ac_file" != x-; then 5751 mv $tmp/out $ac_file 5752 else 5753 cat $tmp/out 5754 rm -f $tmp/out 5755 fi 5756 5757 done 5758 EOF 5759 cat >>$CONFIG_STATUS <<\EOF 5760 5761 # 5762 # CONFIG_HEADER section. 5763 # 3446 5764 3447 5765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 3449 5767 # 3450 5768 # ac_d sets the value in "#define NAME VALUE" lines. 3451 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][ ]*\)'3452 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'3453 ac_dC=' \3'3454 ac_dD=' %g'3455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".3456 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'3457 ac_uB=' \([ ]\)%\1#\2define\3'5769 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5770 ac_dB='[ ].*$,\1#\2' 5771 ac_dC=' ' 5772 ac_dD=',;t' 5773 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5774 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5775 ac_uB='$,\1#\2define\3' 3458 5776 ac_uC=' ' 3459 ac_uD='\4%g' 3460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3461 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3462 ac_eB='$%\1#\2define\3' 3463 ac_eC=' ' 3464 ac_eD='%g' 3465 3466 if test "${CONFIG_HEADERS+set}" != set; then 3467 EOF 3468 cat >> $CONFIG_STATUS <<EOF 3469 CONFIG_HEADERS="config.h" 3470 EOF 3471 cat >> $CONFIG_STATUS <<\EOF 3472 fi 3473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5777 ac_uD=',;t' 5778 5779 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 3474 5780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3475 case "$ac_file" in 3476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3478 *) ac_file_in="${ac_file}.in" ;; 5781 case $ac_file in 5782 - | *:- | *:-:* ) # input from stdin 5783 cat >$tmp/stdin 5784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5788 * ) ac_file_in=$ac_file.in ;; 3479 5789 esac 3480 5790 3481 echo creating $ac_file 3482 3483 rm -f conftest.frag conftest.in conftest.out 3484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3485 cat $ac_file_inputs > conftest.in 3486 3487 EOF 3488 3489 # Transform confdefs.h into a sed script conftest.vals that substitutes 3490 # the proper values into config.h.in to produce config.h. And first: 3491 # Protect against being on the right side of a sed subst in config.status. 3492 # Protect against being in an unquoted here document in config.status. 3493 rm -f conftest.vals 3494 cat > conftest.hdr <<\EOF 3495 s/[\\&%]/\\&/g 3496 s%[\\$`]%\\&%g 3497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3498 s%ac_d%ac_u%gp 3499 s%ac_u%ac_e%gp 3500 EOF 3501 sed -n -f conftest.hdr confdefs.h > conftest.vals 3502 rm -f conftest.hdr 5791 test x"$ac_file" != x- && { echo "$as_me:5791: creating $ac_file" >&5 5792 echo "$as_me: creating $ac_file" >&6;} 5793 5794 # First look for the input files in the build tree, otherwise in the 5795 # src tree. 5796 ac_file_inputs=`IFS=: 5797 for f in $ac_file_in; do 5798 case $f in 5799 -) echo $tmp/stdin ;; 5800 [\\/$]*) 5801 # Absolute (can't be DOS-style, as IFS=:) 5802 test -f "$f" || { { echo "$as_me:5802: error: cannot find input file: $f" >&5 5803 echo "$as_me: error: cannot find input file: $f" >&2;} 5804 { (exit 1); exit 1; }; } 5805 echo $f;; 5806 *) # Relative 5807 if test -f "$f"; then 5808 # Build tree 5809 echo $f 5810 elif test -f "$srcdir/$f"; then 5811 # Source tree 5812 echo $srcdir/$f 5813 else 5814 # /dev/null tree 5815 { { echo "$as_me:5815: error: cannot find input file: $f" >&5 5816 echo "$as_me: error: cannot find input file: $f" >&2;} 5817 { (exit 1); exit 1; }; } 5818 fi;; 5819 esac 5820 done` || { (exit 1); exit 1; } 5821 # Remove the trailing spaces. 5822 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5823 5824 EOF 5825 5826 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5827 # `conftest.undefs', that substitutes the proper values into 5828 # config.h.in to produce config.h. The first handles `#define' 5829 # templates, and the second `#undef' templates. 5830 # And first: Protect against being on the right side of a sed subst in 5831 # config.status. Protect against being in an unquoted here document 5832 # in config.status. 5833 rm -f conftest.defines conftest.undefs 5834 # Using a here document instead of a string reduces the quoting nightmare. 5835 # Putting comments in sed scripts is not portable. 5836 # 5837 # `end' is used to avoid that the second main sed command (meant for 5838 # 0-ary CPP macros) applies to n-ary macro definitions. 5839 # See the Autoconf documentation for `clear'. 5840 cat >confdef2sed.sed <<\EOF 5841 s/[\\&,]/\\&/g 5842 s,[\\$`],\\&,g 5843 t clear 5844 : clear 5845 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5846 t end 5847 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5848 : end 5849 EOF 5850 # If some macros were called several times there might be several times 5851 # the same #defines, which is useless. Nevertheless, we may not want to 5852 # sort them, since we want the *last* AC-DEFINE to be honored. 5853 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5854 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5855 rm -f confdef2sed.sed 3503 5856 3504 5857 # This sed command replaces #undef with comments. This is necessary, for 3505 5858 # example, in the case of _POSIX_SOURCE, which is predefined and required 3506 5859 # on some systems where configure will not decide to define it. 3507 cat >> conftest.vals <<\EOF 3508 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3509 EOF 3510 3511 # Break up conftest.vals because some shells have a limit on 3512 # the size of here documents, and old seds have small limits too. 3513 5860 cat >>conftest.undefs <<\EOF 5861 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5862 EOF 5863 5864 # Break up conftest.defines because some shells have a limit on the size 5865 # of here documents, and old seds have small limits too (100 cmds). 5866 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5867 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5868 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5869 echo ' :' >>$CONFIG_STATUS 3514 5870 rm -f conftest.tail 3515 while :5871 while grep . conftest.defines >/dev/null 3516 5872 do 3517 ac_lines=`grep -c . conftest.vals` 3518 # grep -c gives empty output for an empty file on some AIX systems. 3519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3520 # Write a limited-size here document to conftest.frag. 3521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5873 # Write a limited-size here document to $tmp/defines.sed. 5874 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5875 # Speed up: don't consider the non `#define' lines. 5876 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5877 # Work around the forget-to-reset-the-flag bug. 5878 echo 't clr' >>$CONFIG_STATUS 5879 echo ': clr' >>$CONFIG_STATUS 5880 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3523 5881 echo 'CEOF 3524 sed -f conftest.frag conftest.in > conftest.out3525 rm -f conftest.in3526 mv conftest.out conftest.in3527 ' >> 3528 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail3529 rm -f conftest. vals3530 mv conftest.tail conftest. vals5882 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5883 rm -f $tmp/in 5884 mv $tmp/out $tmp/in 5885 ' >>$CONFIG_STATUS 5886 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5887 rm -f conftest.defines 5888 mv conftest.tail conftest.defines 3531 5889 done 3532 rm -f conftest.vals 3533 3534 cat >> $CONFIG_STATUS <<\EOF 3535 rm -f conftest.frag conftest.h 3536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3537 cat conftest.in >> conftest.h 3538 rm -f conftest.in 3539 if cmp -s $ac_file conftest.h 2>/dev/null; then 3540 echo "$ac_file is unchanged" 3541 rm -f conftest.h 5890 rm -f conftest.defines 5891 echo ' fi # egrep' >>$CONFIG_STATUS 5892 echo >>$CONFIG_STATUS 5893 5894 # Break up conftest.undefs because some shells have a limit on the size 5895 # of here documents, and old seds have small limits too (100 cmds). 5896 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5897 rm -f conftest.tail 5898 while grep . conftest.undefs >/dev/null 5899 do 5900 # Write a limited-size here document to $tmp/undefs.sed. 5901 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5902 # Speed up: don't consider the non `#undef' 5903 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5904 # Work around the forget-to-reset-the-flag bug. 5905 echo 't clr' >>$CONFIG_STATUS 5906 echo ': clr' >>$CONFIG_STATUS 5907 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5908 echo 'CEOF 5909 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5910 rm -f $tmp/in 5911 mv $tmp/out $tmp/in 5912 ' >>$CONFIG_STATUS 5913 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5914 rm -f conftest.undefs 5915 mv conftest.tail conftest.undefs 5916 done 5917 rm -f conftest.undefs 5918 5919 cat >>$CONFIG_STATUS <<\EOF 5920 # Let's still pretend it is `configure' which instantiates (i.e., don't 5921 # use $as_me), people would be surprised to read: 5922 # /* config.h. Generated automatically by config.status. */ 5923 if test x"$ac_file" = x-; then 5924 echo "/* Generated automatically by configure. */" >$tmp/config.h 3542 5925 else 3543 # Remove last slash and all that follows it. Not all systems have dirname. 3544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5926 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 5927 fi 5928 cat $tmp/in >>$tmp/config.h 5929 rm -f $tmp/in 5930 if test x"$ac_file" != x-; then 5931 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5932 { echo "$as_me:5932: $ac_file is unchanged" >&5 5933 echo "$as_me: $ac_file is unchanged" >&6;} 5934 else 5935 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5936 X"$ac_file" : 'X\(//\)[^/]' \| \ 5937 X"$ac_file" : 'X\(//\)$' \| \ 5938 X"$ac_file" : 'X\(/\)' \| \ 5939 . : '\(.\)' 2>/dev/null || 5940 echo X"$ac_file" | 5941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5942 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5943 /^X\(\/\/\)$/{ s//\1/; q; } 5944 /^X\(\/\).*/{ s//\1/; q; } 5945 s/.*/./; q'` 3545 5946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3546 # The file is in a subdirectory. 3547 test ! -d "$ac_dir" && mkdir "$ac_dir" 5947 { case "$ac_dir" in 5948 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5949 *) as_incr_dir=.;; 5950 esac 5951 as_dummy="$ac_dir" 5952 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5953 case $as_mkdir_dir in 5954 # Skip DOS drivespec 5955 ?:) as_incr_dir=$as_mkdir_dir ;; 5956 *) 5957 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5958 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5959 ;; 5960 esac 5961 done; } 5962 5963 fi 5964 rm -f $ac_file 5965 mv $tmp/config.h $ac_file 3548 5966 fi 3549 rm -f $ac_file 3550 mv conftest.h $ac_file 5967 else 5968 cat $tmp/config.h 5969 rm -f $tmp/config.h 3551 5970 fi 3552 fi; done 3553 3554 EOF 3555 cat >> $CONFIG_STATUS <<EOF 3556 3557 EOF 3558 cat >> $CONFIG_STATUS <<\EOF 3559 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3560 exit 0 5971 done 5972 EOF 5973 cat >>$CONFIG_STATUS <<\EOF 5974 5975 # 5976 # CONFIG_COMMANDS section. 5977 # 5978 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5979 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5980 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5981 5982 case $ac_dest in 5983 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5984 esac 5985 done 5986 EOF 5987 5988 cat >>$CONFIG_STATUS <<\EOF 5989 5990 { (exit 0); exit 0; } 3561 5991 EOF 3562 5992 chmod +x $CONFIG_STATUS 3563 rm -fr confdefs* $ac_clean_files 3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3565 5993 ac_clean_files=$ac_clean_files_save 5994 5995 # configure is writing to config.log, and then calls config.status. 5996 # config.status does its own redirection, appending to config.log. 5997 # Unfortunately, on DOS this fails, as config.log is still kept open 5998 # by configure, so config.status won't be able to write to it; its 5999 # output is simply discarded. So we exec the FD to /dev/null, 6000 # effectively closing config.log, so it can be properly (re)opened and 6001 # appended to by config.status. When coming back to configure, we 6002 # need to make the FD available again. 6003 if test "$no_create" != yes; then 6004 ac_cs_success=: 6005 exec 5>/dev/null 6006 $SHELL $CONFIG_STATUS || ac_cs_success=false 6007 exec 5>>config.log 6008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6009 # would make configure fail if this is the last instruction. 6010 $ac_cs_success || { (exit 1); exit 1; } 6011 fi 6012 -
trunk/mgpp/configure.in
r8059 r8063 79 79 80 80 dnl see if gettext is in libc. (try the textdomain() function). 81 AC_CHECK_FUNC( textdomain, AC_DEFINE(ENABLE_NLS ,1) )81 AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) ) 82 82 83 83 # *** Custom checking (based on GNU tar configure.in) ***
Note:
See TracChangeset
for help on using the changeset viewer.