Warning, /tools/mpack-1.6/configure is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit 1994f5ca on 2025-05-13 23:28:15 UTC
ec6cf3b09d Ed H*0001 #! /bin/sh
0002
0003 # Guess values for system-dependent variables and create Makefiles.
1994f5cacb Jean*0004 # Generated automatically using autoconf version 2.13
ec6cf3b09d Ed H*0005 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
0006 #
0007 # This configure script is free software; the Free Software Foundation
0008 # gives unlimited permission to copy, distribute and modify it.
0009
0010 # Defaults:
0011 ac_help=
0012 ac_default_prefix=/usr/local
0013 # Any additions from configure.in:
0014
0015 # Initialize some variables set by options.
0016 # The variables have the same names as the options, with
0017 # dashes changed to underlines.
0018 build=NONE
0019 cache_file=./config.cache
0020 exec_prefix=NONE
0021 host=NONE
0022 no_create=
0023 nonopt=NONE
0024 no_recursion=
0025 prefix=NONE
0026 program_prefix=NONE
0027 program_suffix=NONE
0028 program_transform_name=s,x,x,
0029 silent=
0030 site=
0031 srcdir=
0032 target=NONE
0033 verbose=
0034 x_includes=NONE
0035 x_libraries=NONE
0036 bindir='${exec_prefix}/bin'
0037 sbindir='${exec_prefix}/sbin'
0038 libexecdir='${exec_prefix}/libexec'
0039 datadir='${prefix}/share'
0040 sysconfdir='${prefix}/etc'
0041 sharedstatedir='${prefix}/com'
0042 localstatedir='${prefix}/var'
0043 libdir='${exec_prefix}/lib'
0044 includedir='${prefix}/include'
0045 oldincludedir='/usr/include'
0046 infodir='${prefix}/info'
0047 mandir='${prefix}/man'
0048
0049 # Initialize some other variables.
0050 subdirs=
0051 MFLAGS= MAKEFLAGS=
0052 SHELL=${CONFIG_SHELL-/bin/sh}
0053 # Maximum number of lines to put in a shell here document.
0054 ac_max_here_lines=12
0055
0056 ac_prev=
0057 for ac_option
0058 do
0059
0060 # If the previous option needs an argument, assign it.
0061 if test -n "$ac_prev"; then
0062 eval "$ac_prev=\$ac_option"
0063 ac_prev=
0064 continue
0065 fi
0066
0067 case "$ac_option" in
0068 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
0069 *) ac_optarg= ;;
0070 esac
0071
0072 # Accept the important Cygnus configure options, so we can diagnose typos.
0073
0074 case "$ac_option" in
0075
0076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
0077 ac_prev=bindir ;;
0078 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0079 bindir="$ac_optarg" ;;
0080
0081 -build | --build | --buil | --bui | --bu)
0082 ac_prev=build ;;
0083 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
0084 build="$ac_optarg" ;;
0085
0086 -cache-file | --cache-file | --cache-fil | --cache-fi \
0087 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
0088 ac_prev=cache_file ;;
0089 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
0090 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0091 cache_file="$ac_optarg" ;;
0092
0093 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
0094 ac_prev=datadir ;;
0095 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
0096 | --da=*)
0097 datadir="$ac_optarg" ;;
0098
0099 -disable-* | --disable-*)
0100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
0101 # Reject names that are not valid shell variable names.
0102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
0103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0104 fi
0105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0106 eval "enable_${ac_feature}=no" ;;
0107
0108 -enable-* | --enable-*)
0109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
0110 # Reject names that are not valid shell variable names.
0111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
0112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
0113 fi
0114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
0115 case "$ac_option" in
0116 *=*) ;;
0117 *) ac_optarg=yes ;;
0118 esac
0119 eval "enable_${ac_feature}='$ac_optarg'" ;;
0120
0121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
0122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
0123 | --exec | --exe | --ex)
0124 ac_prev=exec_prefix ;;
0125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
0126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
0127 | --exec=* | --exe=* | --ex=*)
0128 exec_prefix="$ac_optarg" ;;
0129
0130 -gas | --gas | --ga | --g)
0131 # Obsolete; use --with-gas.
0132 with_gas=yes ;;
0133
0134 -help | --help | --hel | --he)
0135 # Omit some internal or obsolete options to make the list less imposing.
0136 # This message is too long to be a string in the A/UX 3.1 sh.
0137 cat << EOF
0138 Usage: configure [options] [host]
0139 Options: [defaults in brackets after descriptions]
0140 Configuration:
0141 --cache-file=FILE cache test results in FILE
0142 --help print this message
0143 --no-create do not create output files
0144 --quiet, --silent do not print \`checking...' messages
0145 --version print the version of autoconf that created configure
0146 Directory and file names:
0147 --prefix=PREFIX install architecture-independent files in PREFIX
0148 [$ac_default_prefix]
0149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
0150 [same as prefix]
0151 --bindir=DIR user executables in DIR [EPREFIX/bin]
0152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
0153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
0154 --datadir=DIR read-only architecture-independent data in DIR
0155 [PREFIX/share]
0156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
0157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
0158 [PREFIX/com]
0159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
0160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
0161 --includedir=DIR C header files in DIR [PREFIX/include]
0162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
0163 --infodir=DIR info documentation in DIR [PREFIX/info]
0164 --mandir=DIR man documentation in DIR [PREFIX/man]
0165 --srcdir=DIR find the sources in DIR [configure dir or ..]
0166 --program-prefix=PREFIX prepend PREFIX to installed program names
0167 --program-suffix=SUFFIX append SUFFIX to installed program names
0168 --program-transform-name=PROGRAM
0169 run sed PROGRAM on installed program names
0170 EOF
0171 cat << EOF
0172 Host type:
0173 --build=BUILD configure for building on BUILD [BUILD=HOST]
0174 --host=HOST configure for HOST [guessed]
0175 --target=TARGET configure for TARGET [TARGET=HOST]
0176 Features and packages:
0177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
0178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
0180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0181 --x-includes=DIR X include files are in DIR
0182 --x-libraries=DIR X library files are in DIR
0183 EOF
0184 if test -n "$ac_help"; then
0185 echo "--enable and --with options recognized:$ac_help"
0186 fi
0187 exit 0 ;;
0188
0189 -host | --host | --hos | --ho)
0190 ac_prev=host ;;
0191 -host=* | --host=* | --hos=* | --ho=*)
0192 host="$ac_optarg" ;;
0193
0194 -includedir | --includedir | --includedi | --included | --include \
0195 | --includ | --inclu | --incl | --inc)
0196 ac_prev=includedir ;;
0197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
0198 | --includ=* | --inclu=* | --incl=* | --inc=*)
0199 includedir="$ac_optarg" ;;
0200
0201 -infodir | --infodir | --infodi | --infod | --info | --inf)
0202 ac_prev=infodir ;;
0203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
0204 infodir="$ac_optarg" ;;
0205
0206 -libdir | --libdir | --libdi | --libd)
0207 ac_prev=libdir ;;
0208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
0209 libdir="$ac_optarg" ;;
0210
0211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
0212 | --libexe | --libex | --libe)
0213 ac_prev=libexecdir ;;
0214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
0215 | --libexe=* | --libex=* | --libe=*)
0216 libexecdir="$ac_optarg" ;;
0217
0218 -localstatedir | --localstatedir | --localstatedi | --localstated \
0219 | --localstate | --localstat | --localsta | --localst \
0220 | --locals | --local | --loca | --loc | --lo)
0221 ac_prev=localstatedir ;;
0222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
0223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
0224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
0225 localstatedir="$ac_optarg" ;;
0226
0227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
0228 ac_prev=mandir ;;
0229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
0230 mandir="$ac_optarg" ;;
0231
0232 -nfp | --nfp | --nf)
0233 # Obsolete; use --without-fp.
0234 with_fp=no ;;
0235
0236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0237 | --no-cr | --no-c)
0238 no_create=yes ;;
0239
0240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
0242 no_recursion=yes ;;
0243
0244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
0245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
0246 | --oldin | --oldi | --old | --ol | --o)
0247 ac_prev=oldincludedir ;;
0248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
0249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
0250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
0251 oldincludedir="$ac_optarg" ;;
0252
0253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
0254 ac_prev=prefix ;;
0255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
0256 prefix="$ac_optarg" ;;
0257
0258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
0259 | --program-pre | --program-pr | --program-p)
0260 ac_prev=program_prefix ;;
0261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
0262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0263 program_prefix="$ac_optarg" ;;
0264
0265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
0266 | --program-suf | --program-su | --program-s)
0267 ac_prev=program_suffix ;;
0268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
0269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
0270 program_suffix="$ac_optarg" ;;
0271
0272 -program-transform-name | --program-transform-name \
0273 | --program-transform-nam | --program-transform-na \
0274 | --program-transform-n | --program-transform- \
0275 | --program-transform | --program-transfor \
0276 | --program-transfo | --program-transf \
0277 | --program-trans | --program-tran \
0278 | --progr-tra | --program-tr | --program-t)
0279 ac_prev=program_transform_name ;;
0280 -program-transform-name=* | --program-transform-name=* \
0281 | --program-transform-nam=* | --program-transform-na=* \
0282 | --program-transform-n=* | --program-transform-=* \
0283 | --program-transform=* | --program-transfor=* \
0284 | --program-transfo=* | --program-transf=* \
0285 | --program-trans=* | --program-tran=* \
0286 | --progr-tra=* | --program-tr=* | --program-t=*)
0287 program_transform_name="$ac_optarg" ;;
0288
0289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
0290 | -silent | --silent | --silen | --sile | --sil)
0291 silent=yes ;;
0292
0293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
0294 ac_prev=sbindir ;;
0295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
0296 | --sbi=* | --sb=*)
0297 sbindir="$ac_optarg" ;;
0298
0299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
0300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
0301 | --sharedst | --shareds | --shared | --share | --shar \
0302 | --sha | --sh)
0303 ac_prev=sharedstatedir ;;
0304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
0305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
0306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
0307 | --sha=* | --sh=*)
0308 sharedstatedir="$ac_optarg" ;;
0309
0310 -site | --site | --sit)
0311 ac_prev=site ;;
0312 -site=* | --site=* | --sit=*)
0313 site="$ac_optarg" ;;
0314
0315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
0316 ac_prev=srcdir ;;
0317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
0318 srcdir="$ac_optarg" ;;
0319
0320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
0321 | --syscon | --sysco | --sysc | --sys | --sy)
0322 ac_prev=sysconfdir ;;
0323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
0324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
0325 sysconfdir="$ac_optarg" ;;
0326
0327 -target | --target | --targe | --targ | --tar | --ta | --t)
0328 ac_prev=target ;;
0329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
0330 target="$ac_optarg" ;;
0331
0332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
0333 verbose=yes ;;
0334
0335 -version | --version | --versio | --versi | --vers)
0336 echo "configure generated by autoconf version 2.13"
0337 exit 0 ;;
0338
0339 -with-* | --with-*)
0340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
0341 # Reject names that are not valid shell variable names.
0342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
0343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0344 fi
0345 ac_package=`echo $ac_package| sed 's/-/_/g'`
0346 case "$ac_option" in
0347 *=*) ;;
0348 *) ac_optarg=yes ;;
0349 esac
0350 eval "with_${ac_package}='$ac_optarg'" ;;
0351
0352 -without-* | --without-*)
0353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
0354 # Reject names that are not valid shell variable names.
0355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
0356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
0357 fi
0358 ac_package=`echo $ac_package| sed 's/-/_/g'`
0359 eval "with_${ac_package}=no" ;;
0360
0361 --x)
0362 # Obsolete; use --with-x.
0363 with_x=yes ;;
0364
0365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
0366 | --x-incl | --x-inc | --x-in | --x-i)
0367 ac_prev=x_includes ;;
0368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
0369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
0370 x_includes="$ac_optarg" ;;
0371
0372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
0373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
0374 ac_prev=x_libraries ;;
0375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
0376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
0377 x_libraries="$ac_optarg" ;;
0378
0379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
0380 ;;
0381
0382 *)
0383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
0384 echo "configure: warning: $ac_option: invalid host type" 1>&2
0385 fi
0386 if test "x$nonopt" != xNONE; then
0387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
0388 fi
0389 nonopt="$ac_option"
0390 ;;
0391
0392 esac
0393 done
0394
0395 if test -n "$ac_prev"; then
0396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
0397 fi
0398
0399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
0400
0401 # File descriptor usage:
0402 # 0 standard input
0403 # 1 file creation
0404 # 2 errors and warnings
0405 # 3 some systems may open it to /dev/tty
0406 # 4 used on the Kubota Titan
0407 # 6 checking for... messages and results
0408 # 5 compiler messages saved in config.log
0409 if test "$silent" = yes; then
0410 exec 6>/dev/null
0411 else
0412 exec 6>&1
0413 fi
0414 exec 5>./config.log
0415
0416 echo "\
0417 This file contains any messages produced by compilers while
0418 running configure, to aid debugging if configure makes a mistake.
0419 " 1>&5
0420
0421 # Strip out --no-create and --no-recursion so they do not pile up.
0422 # Also quote any args containing shell metacharacters.
0423 ac_configure_args=
0424 for ac_arg
0425 do
0426 case "$ac_arg" in
0427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0428 | --no-cr | --no-c) ;;
0429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
0430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
0431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
0432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
0433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
0434 esac
0435 done
0436
0437 # NLS nuisances.
0438 # Only set these to C if already set. These must not be set unconditionally
0439 # because not all systems understand e.g. LANG=C (notably SCO).
0440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
0441 # Non-C LC_CTYPE values break the ctype check.
0442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
0443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
0444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
0445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
0446
0447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
0448 rm -rf conftest* confdefs.h
0449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
0450 echo > confdefs.h
0451
0452 # A filename unique to this package, relative to the directory that
0453 # configure is in, which we can look for to find out if srcdir is correct.
0454 ac_unique_file=common.h
0455
0456 # Find the source files, if location was not specified.
0457 if test -z "$srcdir"; then
0458 ac_srcdir_defaulted=yes
0459 # Try the directory containing this script, then its parent.
0460 ac_prog=$0
0461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
0462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
0463 srcdir=$ac_confdir
0464 if test ! -r $srcdir/$ac_unique_file; then
0465 srcdir=..
0466 fi
0467 else
0468 ac_srcdir_defaulted=no
0469 fi
0470 if test ! -r $srcdir/$ac_unique_file; then
0471 if test "$ac_srcdir_defaulted" = yes; then
0472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
0473 else
0474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
0475 fi
0476 fi
0477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
0478
0479 # Prefer explicitly selected file to automatically selected ones.
0480 if test -z "$CONFIG_SITE"; then
0481 if test "x$prefix" != xNONE; then
0482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
0483 else
0484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
0485 fi
0486 fi
0487 for ac_site_file in $CONFIG_SITE; do
0488 if test -r "$ac_site_file"; then
0489 echo "loading site script $ac_site_file"
0490 . "$ac_site_file"
0491 fi
0492 done
0493
0494 if test -r "$cache_file"; then
0495 echo "loading cache $cache_file"
0496 . $cache_file
0497 else
0498 echo "creating cache $cache_file"
0499 > $cache_file
0500 fi
0501
0502 ac_ext=c
0503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0504 ac_cpp='$CPP $CPPFLAGS'
0505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0507 cross_compiling=$ac_cv_prog_cc_cross
0508
0509 ac_exeext=
0510 ac_objext=o
0511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
0512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
0513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
0514 ac_n= ac_c='
0515 ' ac_t=' '
0516 else
0517 ac_n=-n ac_c= ac_t=
0518 fi
0519 else
0520 ac_n= ac_c='\c' ac_t=
0521 fi
0522
0523 ac_aux_dir=
0524 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
0525 if test -f $ac_dir/install-sh; then
0526 ac_aux_dir=$ac_dir
0527 ac_install_sh="$ac_aux_dir/install-sh -c"
0528 break
0529 elif test -f $ac_dir/install.sh; then
0530 ac_aux_dir=$ac_dir
0531 ac_install_sh="$ac_aux_dir/install.sh -c"
0532 break
0533 fi
0534 done
0535 if test -z "$ac_aux_dir"; then
0536 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
0537 fi
0538 ac_config_guess=$ac_aux_dir/config.guess
0539 ac_config_sub=$ac_aux_dir/config.sub
0540 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
0541
0542 # Find a good install program. We prefer a C program (faster),
0543 # so one script is as good as another. But avoid the broken or
0544 # incompatible versions:
0545 # SysV /etc/install, /usr/sbin/install
0546 # SunOS /usr/etc/install
0547 # IRIX /sbin/install
0548 # AIX /bin/install
0549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
0550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
0551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0552 # ./install, which can be erroneously created by make from ./install.sh.
0553 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
0554 echo "configure:556: checking for a BSD compatible install" >&5
0555 if test -z "$INSTALL"; then
0556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
0557 echo $ac_n "(cached) $ac_c" 1>&6
0558 else
0559 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
0560 for ac_dir in $PATH; do
0561 # Account for people who put trailing slashes in PATH elements.
0562 case "$ac_dir/" in
0563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
0564 *)
0565 # OSF1 and SCO ODT 3.0 have their own names for install.
0566 # Don't use installbsd from OSF since it installs stuff as root
0567 # by default.
0568 for ac_prog in ginstall scoinst install; do
0569 if test -f $ac_dir/$ac_prog; then
0570 if test $ac_prog = install &&
0571 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
0572 # AIX install. It has an incompatible calling convention.
0573 :
0574 else
0575 ac_cv_path_install="$ac_dir/$ac_prog -c"
0576 break 2
0577 fi
0578 fi
0579 done
0580 ;;
0581 esac
0582 done
0583 IFS="$ac_save_IFS"
0584
0585 fi
0586 if test "${ac_cv_path_install+set}" = set; then
0587 INSTALL="$ac_cv_path_install"
0588 else
0589 # As a last resort, use the slow shell script. We don't cache a
0590 # path for INSTALL within a source directory, because that will
0591 # break other packages using the cache if that directory is
0592 # removed, or if the path is relative.
0593 INSTALL="$ac_install_sh"
0594 fi
0595 fi
0596 echo "$ac_t""$INSTALL" 1>&6
0597
0598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
0599 # It thinks the first close brace ends the variable substitution.
0600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
0601
0602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
0603
0604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
0605
0606 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
0607 echo "configure:609: checking whether build environment is sane" >&5
0608 # Just in case
0609 sleep 1
0610 echo timestamp > conftestfile
0611 # Do `set' in a subshell so we don't clobber the current shell's
0612 # arguments. Must try -L first in case configure is actually a
0613 # symlink; some systems play weird games with the mod time of symlinks
0614 # (eg FreeBSD returns the mod time of the symlink's containing
0615 # directory).
0616 if (
0617 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
0618 if test "$*" = "X"; then
0619 # -L didn't work.
0620 set X `ls -t $srcdir/configure conftestfile`
0621 fi
0622 if test "$*" != "X $srcdir/configure conftestfile" \
0623 && test "$*" != "X conftestfile $srcdir/configure"; then
0624
0625 # If neither matched, then we have a broken ls. This can happen
0626 # if, for instance, CONFIG_SHELL is bash and it inherits a
0627 # broken ls alias from the environment. This has actually
0628 # happened. Such a system could not be considered "sane".
0629 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
0630 alias in your environment" 1>&2; exit 1; }
0631 fi
0632
0633 test "$2" = conftestfile
0634 )
0635 then
0636 # Ok.
0637 :
0638 else
0639 { echo "configure: error: newly created file is older than distributed files!
0640 Check your system clock" 1>&2; exit 1; }
0641 fi
0642 rm -f conftest*
0643 echo "$ac_t""yes" 1>&6
0644 if test "$program_transform_name" = s,x,x,; then
0645 program_transform_name=
0646 else
0647 # Double any \ or $. echo might interpret backslashes.
0648 cat <<\EOF_SED > conftestsed
0649 s,\\,\\\\,g; s,\$,$$,g
0650 EOF_SED
0651 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
0652 rm -f conftestsed
0653 fi
0654 test "$program_prefix" != NONE &&
0655 program_transform_name="s,^,${program_prefix},; $program_transform_name"
0656 # Use a double $ so make ignores it.
0657 test "$program_suffix" != NONE &&
0658 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
0659
0660 # sed with no file args requires a program.
0661 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
0662
0663 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0664 echo "configure:666: checking whether ${MAKE-make} sets \${MAKE}" >&5
0665 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
0666 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
0667 echo $ac_n "(cached) $ac_c" 1>&6
0668 else
0669 cat > conftestmake <<\EOF
0670 all:
0671 @echo 'ac_maketemp="${MAKE}"'
0672 EOF
0673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0674 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
0675 if test -n "$ac_maketemp"; then
0676 eval ac_cv_prog_make_${ac_make}_set=yes
0677 else
0678 eval ac_cv_prog_make_${ac_make}_set=no
0679 fi
0680 rm -f conftestmake
0681 fi
0682 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
0683 echo "$ac_t""yes" 1>&6
0684 SET_MAKE=
0685 else
0686 echo "$ac_t""no" 1>&6
0687 SET_MAKE="MAKE=${MAKE-make}"
0688 fi
0689
0690 PACKAGE=mpack
0691
0692 VERSION=1.6
0693
0694 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
0695 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
0696 fi
0697 cat >> confdefs.h <<EOF
0698 #define PACKAGE "$PACKAGE"
0699 EOF
0700
0701 cat >> confdefs.h <<EOF
0702 #define VERSION "$VERSION"
0703 EOF
0704
0705 missing_dir=`cd $ac_aux_dir && pwd`
0706 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
0707 echo "configure:712: checking for working aclocal" >&5
0708 # Run test in a subshell; some versions of sh will print an error if
0709 # an executable is not found, even if stderr is redirected.
0710 # Redirect stdin to placate older versions of autoconf. Sigh.
0711 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
0712 ACLOCAL=aclocal
0713 echo "$ac_t""found" 1>&6
0714 else
0715 ACLOCAL="$missing_dir/missing aclocal"
0716 echo "$ac_t""missing" 1>&6
0717 fi
0718
0719 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
0720 echo "configure:725: checking for working autoconf" >&5
0721 # Run test in a subshell; some versions of sh will print an error if
0722 # an executable is not found, even if stderr is redirected.
0723 # Redirect stdin to placate older versions of autoconf. Sigh.
0724 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
0725 AUTOCONF=autoconf
0726 echo "$ac_t""found" 1>&6
0727 else
0728 AUTOCONF="$missing_dir/missing autoconf"
0729 echo "$ac_t""missing" 1>&6
0730 fi
0731
0732 echo $ac_n "checking for working automake""... $ac_c" 1>&6
0733 echo "configure:738: checking for working automake" >&5
0734 # Run test in a subshell; some versions of sh will print an error if
0735 # an executable is not found, even if stderr is redirected.
0736 # Redirect stdin to placate older versions of autoconf. Sigh.
0737 if (automake --version) < /dev/null > /dev/null 2>&1; then
0738 AUTOMAKE=automake
0739 echo "$ac_t""found" 1>&6
0740 else
0741 AUTOMAKE="$missing_dir/missing automake"
0742 echo "$ac_t""missing" 1>&6
0743 fi
0744
0745 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
0746 echo "configure:751: checking for working autoheader" >&5
0747 # Run test in a subshell; some versions of sh will print an error if
0748 # an executable is not found, even if stderr is redirected.
0749 # Redirect stdin to placate older versions of autoconf. Sigh.
0750 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
0751 AUTOHEADER=autoheader
0752 echo "$ac_t""found" 1>&6
0753 else
0754 AUTOHEADER="$missing_dir/missing autoheader"
0755 echo "$ac_t""missing" 1>&6
0756 fi
0757
0758 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
0759 echo "configure:764: checking for working makeinfo" >&5
0760 # Run test in a subshell; some versions of sh will print an error if
0761 # an executable is not found, even if stderr is redirected.
0762 # Redirect stdin to placate older versions of autoconf. Sigh.
0763 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
0764 MAKEINFO=makeinfo
0765 echo "$ac_t""found" 1>&6
0766 else
0767 MAKEINFO="$missing_dir/missing makeinfo"
0768 echo "$ac_t""missing" 1>&6
0769 fi
0770
0771 # Extract the first word of "gcc", so it can be a program name with args.
0772 set dummy gcc; ac_word=$2
0773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0774 echo "configure:780: checking for $ac_word" >&5
0775 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0776 echo $ac_n "(cached) $ac_c" 1>&6
0777 else
0778 if test -n "$CC"; then
0779 ac_cv_prog_CC="$CC" # Let the user override the test.
0780 else
0781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0782 ac_dummy="$PATH"
0783 for ac_dir in $ac_dummy; do
0784 test -z "$ac_dir" && ac_dir=.
0785 if test -f $ac_dir/$ac_word; then
0786 ac_cv_prog_CC="gcc"
0787 break
0788 fi
0789 done
0790 IFS="$ac_save_ifs"
0791 fi
0792 fi
0793 CC="$ac_cv_prog_CC"
0794 if test -n "$CC"; then
0795 echo "$ac_t""$CC" 1>&6
0796 else
0797 echo "$ac_t""no" 1>&6
0798 fi
0799
0800 if test -z "$CC"; then
0801 # Extract the first word of "cc", so it can be a program name with args.
0802 set dummy cc; ac_word=$2
0803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0804 echo "configure:810: checking for $ac_word" >&5
0805 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0806 echo $ac_n "(cached) $ac_c" 1>&6
0807 else
0808 if test -n "$CC"; then
0809 ac_cv_prog_CC="$CC" # Let the user override the test.
0810 else
0811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0812 ac_prog_rejected=no
0813 ac_dummy="$PATH"
0814 for ac_dir in $ac_dummy; do
0815 test -z "$ac_dir" && ac_dir=.
0816 if test -f $ac_dir/$ac_word; then
0817 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
0818 ac_prog_rejected=yes
0819 continue
0820 fi
0821 ac_cv_prog_CC="cc"
0822 break
0823 fi
0824 done
0825 IFS="$ac_save_ifs"
0826 if test $ac_prog_rejected = yes; then
0827 # We found a bogon in the path, so make sure we never use it.
0828 set dummy $ac_cv_prog_CC
0829 shift
0830 if test $# -gt 0; then
0831 # We chose a different compiler from the bogus one.
0832 # However, it has the same basename, so the bogon will be chosen
0833 # first if we set CC to just the basename; use the full file name.
0834 shift
0835 set dummy "$ac_dir/$ac_word" "$@"
0836 shift
0837 ac_cv_prog_CC="$@"
0838 fi
0839 fi
0840 fi
0841 fi
0842 CC="$ac_cv_prog_CC"
0843 if test -n "$CC"; then
0844 echo "$ac_t""$CC" 1>&6
0845 else
0846 echo "$ac_t""no" 1>&6
0847 fi
0848
0849 if test -z "$CC"; then
0850 case "`uname -s`" in
0851 *win32* | *WIN32*)
0852 # Extract the first word of "cl", so it can be a program name with args.
0853 set dummy cl; ac_word=$2
0854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
0855 echo "configure:861: checking for $ac_word" >&5
0856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
0857 echo $ac_n "(cached) $ac_c" 1>&6
0858 else
0859 if test -n "$CC"; then
0860 ac_cv_prog_CC="$CC" # Let the user override the test.
0861 else
0862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
0863 ac_dummy="$PATH"
0864 for ac_dir in $ac_dummy; do
0865 test -z "$ac_dir" && ac_dir=.
0866 if test -f $ac_dir/$ac_word; then
0867 ac_cv_prog_CC="cl"
0868 break
0869 fi
0870 done
0871 IFS="$ac_save_ifs"
0872 fi
0873 fi
0874 CC="$ac_cv_prog_CC"
0875 if test -n "$CC"; then
0876 echo "$ac_t""$CC" 1>&6
0877 else
0878 echo "$ac_t""no" 1>&6
0879 fi
0880 ;;
0881 esac
0882 fi
0883 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
0884 fi
0885
0886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
0887 echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
0888
0889 ac_ext=c
0890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0891 ac_cpp='$CPP $CPPFLAGS'
0892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0894 cross_compiling=$ac_cv_prog_cc_cross
0895
0896 cat > conftest.$ac_ext << EOF
0897
0898 #line 904 "configure"
0899 #include "confdefs.h"
0900
1994f5cacb Jean*0901 int main(){return(0);}
ec6cf3b09d Ed H*0902 EOF
0903 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0904 ac_cv_prog_cc_works=yes
0905 # If we can't run a trivial program, we are probably using a cross compiler.
0906 if (./conftest; exit) 2>/dev/null; then
0907 ac_cv_prog_cc_cross=no
0908 else
0909 ac_cv_prog_cc_cross=yes
0910 fi
0911 else
0912 echo "configure: failed program was:" >&5
0913 cat conftest.$ac_ext >&5
0914 ac_cv_prog_cc_works=no
0915 fi
0916 rm -fr conftest*
0917 ac_ext=c
0918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
0919 ac_cpp='$CPP $CPPFLAGS'
0920 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0921 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
0922 cross_compiling=$ac_cv_prog_cc_cross
0923
0924 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
0925 if test $ac_cv_prog_cc_works = no; then
0926 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
0927 fi
0928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
0929 echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
0930 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
0931 cross_compiling=$ac_cv_prog_cc_cross
0932
0933 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
0934 echo "configure:940: checking whether we are using GNU C" >&5
0935 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
0936 echo $ac_n "(cached) $ac_c" 1>&6
0937 else
0938 cat > conftest.c <<EOF
0939 #ifdef __GNUC__
0940 yes;
0941 #endif
0942 EOF
0943 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
0944 ac_cv_prog_gcc=yes
0945 else
0946 ac_cv_prog_gcc=no
0947 fi
0948 fi
0949
0950 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
0951
0952 if test $ac_cv_prog_gcc = yes; then
0953 GCC=yes
0954 else
0955 GCC=
0956 fi
0957
0958 ac_test_CFLAGS="${CFLAGS+set}"
0959 ac_save_CFLAGS="$CFLAGS"
0960 CFLAGS=
0961 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
0962 echo "configure:968: checking whether ${CC-cc} accepts -g" >&5
0963 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
0964 echo $ac_n "(cached) $ac_c" 1>&6
0965 else
0966 echo 'void f(){}' > conftest.c
0967 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
0968 ac_cv_prog_cc_g=yes
0969 else
0970 ac_cv_prog_cc_g=no
0971 fi
0972 rm -f conftest*
0973
0974 fi
0975
0976 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
0977 if test "$ac_test_CFLAGS" = set; then
0978 CFLAGS="$ac_save_CFLAGS"
0979 elif test $ac_cv_prog_cc_g = yes; then
0980 if test "$GCC" = yes; then
0981 CFLAGS="-g -O2"
0982 else
0983 CFLAGS="-g"
0984 fi
0985 else
0986 if test "$GCC" = yes; then
0987 CFLAGS="-O2"
0988 else
0989 CFLAGS=
0990 fi
0991 fi
0992
0993 save_LIBS="$LIBS"
0994 LIB_SOCKET=""
0995 echo $ac_n "checking for connect""... $ac_c" 1>&6
0996 echo "configure:1004: checking for connect" >&5
0997 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
0998 echo $ac_n "(cached) $ac_c" 1>&6
0999 else
1000 cat > conftest.$ac_ext <<EOF
1001 #line 1009 "configure"
1002 #include "confdefs.h"
1003 /* System header to define __stub macros and hopefully few prototypes,
1004 which can conflict with char connect(); below. */
1005 #include <assert.h>
1006 /* Override any gcc2 internal prototype to avoid an error. */
1007 /* We use char because int might match the return type of a gcc2
1008 builtin and then its argument prototype would still apply. */
1009 char connect();
1010
1011 int main() {
1012
1013 /* The GNU C library defines this for functions which it implements
1014 to always fail with ENOSYS. Some functions are actually named
1015 something starting with __ and the normal name is an alias. */
1016 #if defined (__stub_connect) || defined (__stub___connect)
1017 choke me
1018 #else
1019 connect();
1020 #endif
1021
1022 ; return 0; }
1023 EOF
1024 if { (eval echo configure:1032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1025 rm -rf conftest*
1026 eval "ac_cv_func_connect=yes"
1027 else
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1030 rm -rf conftest*
1031 eval "ac_cv_func_connect=no"
1032 fi
1033 rm -f conftest*
1034 fi
1035
1036 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1037 echo "$ac_t""yes" 1>&6
1038 :
1039 else
1040 echo "$ac_t""no" 1>&6
1041 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1042 echo "configure:1050: checking for gethostbyname in -lnsl" >&5
1043 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1046 else
1047 ac_save_LIBS="$LIBS"
1048 LIBS="-lnsl $LIBS"
1049 cat > conftest.$ac_ext <<EOF
1050 #line 1058 "configure"
1051 #include "confdefs.h"
1052 /* Override any gcc2 internal prototype to avoid an error. */
1053 /* We use char because int might match the return type of a gcc2
1054 builtin and then its argument prototype would still apply. */
1055 char gethostbyname();
1056
1057 int main() {
1058 gethostbyname()
1059 ; return 0; }
1060 EOF
1061 if { (eval echo configure:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1062 rm -rf conftest*
1063 eval "ac_cv_lib_$ac_lib_var=yes"
1064 else
1065 echo "configure: failed program was:" >&5
1066 cat conftest.$ac_ext >&5
1067 rm -rf conftest*
1068 eval "ac_cv_lib_$ac_lib_var=no"
1069 fi
1070 rm -f conftest*
1071 LIBS="$ac_save_LIBS"
1072
1073 fi
1074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1075 echo "$ac_t""yes" 1>&6
1076 LIB_SOCKET="-lnsl $LIB_SOCKET"
1077 else
1078 echo "$ac_t""no" 1>&6
1079 fi
1080
1081 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1082 echo "configure:1090: checking for connect in -lsocket" >&5
1083 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 ac_save_LIBS="$LIBS"
1088 LIBS="-lsocket $LIBS"
1089 cat > conftest.$ac_ext <<EOF
1090 #line 1098 "configure"
1091 #include "confdefs.h"
1092 /* Override any gcc2 internal prototype to avoid an error. */
1093 /* We use char because int might match the return type of a gcc2
1094 builtin and then its argument prototype would still apply. */
1095 char connect();
1096
1097 int main() {
1098 connect()
1099 ; return 0; }
1100 EOF
1101 if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1102 rm -rf conftest*
1103 eval "ac_cv_lib_$ac_lib_var=yes"
1104 else
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 rm -rf conftest*
1108 eval "ac_cv_lib_$ac_lib_var=no"
1109 fi
1110 rm -f conftest*
1111 LIBS="$ac_save_LIBS"
1112
1113 fi
1114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1115 echo "$ac_t""yes" 1>&6
1116 LIB_SOCKET="-lsocket $LIB_SOCKET"
1117 else
1118 echo "$ac_t""no" 1>&6
1119 fi
1120
1121
1122 fi
1123
1124 LIBS="$LIB_SOCKET $save_LIBS"
1125 echo $ac_n "checking for res_search""... $ac_c" 1>&6
1126 echo "configure:1134: checking for res_search" >&5
1127 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1129 else
1130 cat > conftest.$ac_ext <<EOF
1131 #line 1139 "configure"
1132 #include "confdefs.h"
1133 /* System header to define __stub macros and hopefully few prototypes,
1134 which can conflict with char res_search(); below. */
1135 #include <assert.h>
1136 /* Override any gcc2 internal prototype to avoid an error. */
1137 /* We use char because int might match the return type of a gcc2
1138 builtin and then its argument prototype would still apply. */
1139 char res_search();
1140
1141 int main() {
1142
1143 /* The GNU C library defines this for functions which it implements
1144 to always fail with ENOSYS. Some functions are actually named
1145 something starting with __ and the normal name is an alias. */
1146 #if defined (__stub_res_search) || defined (__stub___res_search)
1147 choke me
1148 #else
1149 res_search();
1150 #endif
1151
1152 ; return 0; }
1153 EOF
1154 if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1155 rm -rf conftest*
1156 eval "ac_cv_func_res_search=yes"
1157 else
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1160 rm -rf conftest*
1161 eval "ac_cv_func_res_search=no"
1162 fi
1163 rm -f conftest*
1164 fi
1165
1166 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1168 :
1169 else
1170 echo "$ac_t""no" 1>&6
1171 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
1172 echo "configure:1180: checking for res_search in -lresolv" >&5
1173 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
1174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 ac_save_LIBS="$LIBS"
1178 LIBS="-lresolv $LIBS"
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1188 "configure"
1181 #include "confdefs.h"
1182 /* Override any gcc2 internal prototype to avoid an error. */
1183 /* We use char because int might match the return type of a gcc2
1184 builtin and then its argument prototype would still apply. */
1185 char res_search();
1186
1187 int main() {
1188 res_search()
1189 ; return 0; }
1190 EOF
1191 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192 rm -rf conftest*
1193 eval "ac_cv_lib_$ac_lib_var=yes"
1194 else
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 rm -rf conftest*
1198 eval "ac_cv_lib_$ac_lib_var=no"
1199 fi
1200 rm -f conftest*
1201 LIBS="$ac_save_LIBS"
1202
1203 fi
1204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1206 LIB_SOCKET="-lresolv $LIB_SOCKET"
1207 else
1208 echo "$ac_t""no" 1>&6
1209 fi
1994f5cacb Jean*1210
ec6cf3b09d Ed H*1211 fi
1212
1213 LIBS="$LIB_SOCKET $save_LIBS"
1214 for ac_func in dn_expand dns_lookup
1215 do
1216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1217 echo "configure:1226: checking for $ac_func" >&5
1218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1231 "configure"
1223 #include "confdefs.h"
1224 /* System header to define __stub macros and hopefully few prototypes,
1225 which can conflict with char $ac_func(); below. */
1226 #include <assert.h>
1227 /* Override any gcc2 internal prototype to avoid an error. */
1228 /* We use char because int might match the return type of a gcc2
1229 builtin and then its argument prototype would still apply. */
1230 char $ac_func();
1231
1232 int main() {
1233
1234 /* The GNU C library defines this for functions which it implements
1235 to always fail with ENOSYS. Some functions are actually named
1236 something starting with __ and the normal name is an alias. */
1237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1238 choke me
1239 #else
1240 $ac_func();
1241 #endif
1242
1243 ; return 0; }
1244 EOF
1245 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1246 rm -rf conftest*
1247 eval "ac_cv_func_$ac_func=yes"
1248 else
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1251 rm -rf conftest*
1252 eval "ac_cv_func_$ac_func=no"
1253 fi
1254 rm -f conftest*
1255 fi
1256
1257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1258 echo "$ac_t""yes" 1>&6
1259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1260 cat >> confdefs.h <<EOF
1261 #define $ac_tr_func 1
1262 EOF
1994f5cacb Jean*1263
ec6cf3b09d Ed H*1264 else
1265 echo "$ac_t""no" 1>&6
1266 fi
1267 done
1268
1269 LIBS="$save_LIBS"
1270
1271
1272
1273 for ac_func in strchr
1274 do
1275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1276 echo "configure:1285: checking for $ac_func" >&5
1277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280 cat > conftest.$ac_ext <<EOF
1281 #line 1290 "configure"
1282 #include "confdefs.h"
1283 /* System header to define __stub macros and hopefully few prototypes,
1284 which can conflict with char $ac_func(); below. */
1285 #include <assert.h>
1286 /* Override any gcc2 internal prototype to avoid an error. */
1287 /* We use char because int might match the return type of a gcc2
1288 builtin and then its argument prototype would still apply. */
1289 char $ac_func();
1290
1291 int main() {
1292
1293 /* The GNU C library defines this for functions which it implements
1294 to always fail with ENOSYS. Some functions are actually named
1295 something starting with __ and the normal name is an alias. */
1296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1297 choke me
1298 #else
1299 $ac_func();
1300 #endif
1301
1302 ; return 0; }
1303 EOF
1304 if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305 rm -rf conftest*
1306 eval "ac_cv_func_$ac_func=yes"
1307 else
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1310 rm -rf conftest*
1311 eval "ac_cv_func_$ac_func=no"
1312 fi
1313 rm -f conftest*
1314 fi
1315
1316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1319 cat >> confdefs.h <<EOF
1320 #define $ac_tr_func 1
1321 EOF
1994f5cacb Jean*1322
ec6cf3b09d Ed H*1323 else
1324 echo "$ac_t""no" 1>&6
1325 fi
1326 done
1327
1328 for ac_func in strcasecmp getopt
1329 do
1330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1331 echo "configure:1340: checking for $ac_func" >&5
1332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1334 else
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1345 "configure"
1337 #include "confdefs.h"
1338 /* System header to define __stub macros and hopefully few prototypes,
1339 which can conflict with char $ac_func(); below. */
1340 #include <assert.h>
1341 /* Override any gcc2 internal prototype to avoid an error. */
1342 /* We use char because int might match the return type of a gcc2
1343 builtin and then its argument prototype would still apply. */
1344 char $ac_func();
1345
1346 int main() {
1347
1348 /* The GNU C library defines this for functions which it implements
1349 to always fail with ENOSYS. Some functions are actually named
1350 something starting with __ and the normal name is an alias. */
1351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1352 choke me
1353 #else
1354 $ac_func();
1355 #endif
1356
1357 ; return 0; }
1358 EOF
1359 if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1360 rm -rf conftest*
1361 eval "ac_cv_func_$ac_func=yes"
1362 else
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1365 rm -rf conftest*
1366 eval "ac_cv_func_$ac_func=no"
1367 fi
1368 rm -f conftest*
1369 fi
1370
1371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1372 echo "$ac_t""yes" 1>&6
1373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1374 cat >> confdefs.h <<EOF
1375 #define $ac_tr_func 1
1376 EOF
1994f5cacb Jean*1377
ec6cf3b09d Ed H*1378 else
1379 echo "$ac_t""no" 1>&6
1380 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1381 fi
1382 done
1383
351d1cc027 Jean*1384 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
ec6cf3b09d Ed H*1385
351d1cc027 Jean*1386 for ac_head in getopt
1387 do
1388 ac_header=${ac_head}.h
1389 echo $ac_n "checking for $ac_header""... $ac_c" 1>&6
1390 echo "configure:1396: checking for $ac_header" >&5
1391 if eval "test \"`echo '$''{'ac_cv_head_$ac_head'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1401 "configure"
1396 #include "confdefs.h"
1397 #include <stdio.h>
1398 #include <$ac_header>
1399 int main(int argc, char **argv) {
1400 printf("Hello!\n")
1401 ; return 0; }
1402 EOF
1403 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 rm -rf conftest*
1405 eval "ac_cv_head_$ac_head=yes"
1406 else
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1409 rm -rf conftest*
1410 eval "ac_cv_head_$ac_head=no"
1411 fi
1412 rm -f conftest*
1413 fi
1414
1415 if eval "test \"`echo '$ac_cv_head_'$ac_head`\" = yes"; then
1416 echo "$ac_t""yes" 1>&6
1417 ac_tr_head=HAVE_`echo ${ac_head}_h | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1418 cat >> confdefs.h <<EOF
1419 #define $ac_tr_head 1
1420 EOF
1994f5cacb Jean*1421
351d1cc027 Jean*1422 else
1423 echo "$ac_t""no" 1>&6
1424 fi
1425 done
1426
1427 #---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
ec6cf3b09d Ed H*1428
1429 trap '' 1 2 15
1430 cat > confcache <<\EOF
1431 # This file is a shell script that caches the results of configure
1432 # tests run on this system so they can be shared between configure
1433 # scripts and configure runs. It is not useful on other systems.
1434 # If it contains results you don't want to keep, you may remove or edit it.
1435 #
1436 # By default, configure uses ./config.cache as the cache file,
1437 # creating it if it does not exist already. You can give configure
1438 # the --cache-file=FILE option to use a different cache file; that is
1439 # what configure does when it calls configure scripts in
1440 # subdirectories, so they share the cache.
1441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1442 # config.status only pays attention to the cache file if you give it the
1443 # --recheck option to rerun configure.
1444 #
1445 EOF
1446 # The following way of writing the cache mishandles newlines in values,
1447 # but we know of no workaround that is simple, portable, and efficient.
1448 # So, don't put newlines in cache variables' values.
1449 # Ultrix sh set writes to stderr and can't be redirected directly,
1450 # and sets the high bit in the cache file unless we assign to the vars.
1451 (set) 2>&1 |
1452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1453 *ac_space=\ *)
1454 # `set' does not quote correctly, so add quotes (double-quote substitution
1455 # turns \\\\ into \\, and sed turns \\ into \).
1456 sed -n \
1457 -e "s/'/'\\\\''/g" \
1458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1459 ;;
1460 *)
1461 # `set' quotes correctly as required by POSIX, so do not add quotes.
1462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1463 ;;
1464 esac >> confcache
1465 if cmp -s $cache_file confcache; then
1466 :
1467 else
1468 if test -w $cache_file; then
1469 echo "updating cache $cache_file"
1470 cat confcache > $cache_file
1471 else
1472 echo "not updating unwritable cache $cache_file"
1473 fi
1474 fi
1475 rm -f confcache
1476
1477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1478
1479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1480 # Let make expand exec_prefix.
1481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1482
1483 # Any assignment to VPATH causes Sun make to only execute
1484 # the first set of double-colon rules, so remove it if not needed.
1485 # If there is a colon in the path, we need to keep it.
1486 if test "x$srcdir" = x.; then
1487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1488 fi
1489
1490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1491
1492 # Transform confdefs.h into DEFS.
1493 # Protect against shell expansion while executing Makefile rules.
1494 # Protect against Makefile macro expansion.
1495 cat > conftest.defs <<\EOF
1496 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1497 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1498 s%\[%\\&%g
1499 s%\]%\\&%g
1500 s%\$%$$%g
1501 EOF
1502 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1503 rm -f conftest.defs
1504
1505 # Without the "./", some shells look in PATH for config.status.
1506 : ${CONFIG_STATUS=./config.status}
1507
1508 echo creating $CONFIG_STATUS
1509 rm -f $CONFIG_STATUS
1510 cat > $CONFIG_STATUS <<EOF
1511 #! /bin/sh
1512 # Generated automatically by configure.
1513 # Run this file to recreate the current configuration.
1514 # This directory was configured as follows,
1515 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1516 #
1517 # $0 $ac_configure_args
1518 #
1519 # Compiler output produced by configure, useful for debugging
1520 # configure, is in ./config.log if it exists.
1521
1522 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1523 for ac_option
1524 do
1525 case "\$ac_option" in
1526 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1527 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1528 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1529 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1530 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1531 exit 0 ;;
1532 -help | --help | --hel | --he | --h)
1533 echo "\$ac_cs_usage"; exit 0 ;;
1534 *) echo "\$ac_cs_usage"; exit 1 ;;
1535 esac
1536 done
1537
1538 ac_given_srcdir=$srcdir
1539 ac_given_INSTALL="$INSTALL"
1540
1541 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1542 EOF
1543 cat >> $CONFIG_STATUS <<EOF
1544
1545 # Protect against being on the right side of a sed subst in config.status.
1546 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1547 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1548 $ac_vpsub
1549 $extrasub
1550 s%@SHELL@%$SHELL%g
1551 s%@CFLAGS@%$CFLAGS%g
1552 s%@CPPFLAGS@%$CPPFLAGS%g
1553 s%@CXXFLAGS@%$CXXFLAGS%g
1554 s%@FFLAGS@%$FFLAGS%g
1555 s%@DEFS@%$DEFS%g
1556 s%@LDFLAGS@%$LDFLAGS%g
1557 s%@LIBS@%$LIBS%g
1558 s%@exec_prefix@%$exec_prefix%g
1559 s%@prefix@%$prefix%g
1560 s%@program_transform_name@%$program_transform_name%g
1561 s%@bindir@%$bindir%g
1562 s%@sbindir@%$sbindir%g
1563 s%@libexecdir@%$libexecdir%g
1564 s%@datadir@%$datadir%g
1565 s%@sysconfdir@%$sysconfdir%g
1566 s%@sharedstatedir@%$sharedstatedir%g
1567 s%@localstatedir@%$localstatedir%g
1568 s%@libdir@%$libdir%g
1569 s%@includedir@%$includedir%g
1570 s%@oldincludedir@%$oldincludedir%g
1571 s%@infodir@%$infodir%g
1572 s%@mandir@%$mandir%g
1573 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1574 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1575 s%@INSTALL_DATA@%$INSTALL_DATA%g
1576 s%@PACKAGE@%$PACKAGE%g
1577 s%@VERSION@%$VERSION%g
1578 s%@ACLOCAL@%$ACLOCAL%g
1579 s%@AUTOCONF@%$AUTOCONF%g
1580 s%@AUTOMAKE@%$AUTOMAKE%g
1581 s%@AUTOHEADER@%$AUTOHEADER%g
1582 s%@MAKEINFO@%$MAKEINFO%g
1583 s%@SET_MAKE@%$SET_MAKE%g
1584 s%@CC@%$CC%g
1585 s%@LIB_SOCKET@%$LIB_SOCKET%g
1586 s%@LIBOBJS@%$LIBOBJS%g
1587
1588 CEOF
1589 EOF
1590
1591 cat >> $CONFIG_STATUS <<\EOF
1592
1593 # Split the substitutions into bite-sized pieces for seds with
1594 # small command number limits, like on Digital OSF/1 and HP-UX.
1595 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1596 ac_file=1 # Number of current file.
1597 ac_beg=1 # First line for current file.
1598 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1599 ac_more_lines=:
1600 ac_sed_cmds=""
1601 while $ac_more_lines; do
1602 if test $ac_beg -gt 1; then
1603 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1604 else
1605 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1606 fi
1607 if test ! -s conftest.s$ac_file; then
1608 ac_more_lines=false
1609 rm -f conftest.s$ac_file
1610 else
1611 if test -z "$ac_sed_cmds"; then
1612 ac_sed_cmds="sed -f conftest.s$ac_file"
1613 else
1614 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1615 fi
1616 ac_file=`expr $ac_file + 1`
1617 ac_beg=$ac_end
1618 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1619 fi
1620 done
1621 if test -z "$ac_sed_cmds"; then
1622 ac_sed_cmds=cat
1623 fi
1624 EOF
1625
1626 cat >> $CONFIG_STATUS <<EOF
1627
1628 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1629 EOF
1630 cat >> $CONFIG_STATUS <<\EOF
1631 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1633 case "$ac_file" in
1634 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1635 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1636 *) ac_file_in="${ac_file}.in" ;;
1637 esac
1638
1639 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1640
1641 # Remove last slash and all that follows it. Not all systems have dirname.
1642 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1643 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1644 # The file is in a subdirectory.
1645 test ! -d "$ac_dir" && mkdir "$ac_dir"
1646 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1647 # A "../" for each directory in $ac_dir_suffix.
1648 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1649 else
1650 ac_dir_suffix= ac_dots=
1651 fi
1652
1653 case "$ac_given_srcdir" in
1654 .) srcdir=.
1655 if test -z "$ac_dots"; then top_srcdir=.
1656 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1657 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1658 *) # Relative path.
1659 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1660 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1661 esac
1662
1663 case "$ac_given_INSTALL" in
1664 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1665 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1666 esac
1667
1668 echo creating "$ac_file"
1669 rm -f "$ac_file"
1670 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1671 case "$ac_file" in
1672 *Makefile*) ac_comsub="1i\\
1673 # $configure_input" ;;
1674 *) ac_comsub= ;;
1675 esac
1676
1677 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1678 sed -e "$ac_comsub
1679 s%@configure_input@%$configure_input%g
1680 s%@srcdir@%$srcdir%g
1681 s%@top_srcdir@%$top_srcdir%g
1682 s%@INSTALL@%$INSTALL%g
1683 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1684 fi; done
1685 rm -f conftest.s*
1686
1687 EOF
1688 cat >> $CONFIG_STATUS <<EOF
1689
1690 EOF
1691 cat >> $CONFIG_STATUS <<\EOF
1692
1693 exit 0
1694 EOF
1695 chmod +x $CONFIG_STATUS
1696 rm -fr confdefs* $ac_clean_files
1697 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1698