5747674 [rkeene@sledge /home/rkeene/devel/libopennet-0.8.1]$ cat -n configure
   1 #! /bin/sh
   2 
   3 # 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.
   6 #
   7 # This configure script is free software; the Free Software Foundation
   8 # gives unlimited permission to copy, distribute and modify it.
   9 
  10 # Defaults:
  11 ac_help=
  12 ac_default_prefix=/usr/local
  13 # Any additions from configure.in:
  14 
  15 # Initialize some variables set by options.
  16 # The variables have the same names as the options, with
  17 # dashes changed to underlines.
  18 build=NONE
  19 cache_file=./config.cache
  20 exec_prefix=NONE
  21 host=NONE
  22 no_create=
  23 nonopt=NONE
  24 no_recursion=
  25 prefix=NONE
  26 program_prefix=NONE
  27 program_suffix=NONE
  28 program_transform_name=s,x,x,
  29 silent=
  30 site=
  31 srcdir=
  32 target=NONE
  33 verbose=
  34 x_includes=NONE
  35 x_libraries=NONE
  36 bindir='${exec_prefix}/bin'
  37 sbindir='${exec_prefix}/sbin'
  38 libexecdir='${exec_prefix}/libexec'
  39 datadir='${prefix}/share'
  40 sysconfdir='${prefix}/etc'
  41 sharedstatedir='${prefix}/com'
  42 localstatedir='${prefix}/var'
  43 libdir='${exec_prefix}/lib'
  44 includedir='${prefix}/include'
  45 oldincludedir='/usr/include'
  46 infodir='${prefix}/info'
  47 mandir='${prefix}/man'
  48 
  49 # Initialize some other variables.
  50 subdirs=
  51 MFLAGS= MAKEFLAGS=
  52 SHELL=${CONFIG_SHELL-/bin/sh}
  53 # Maximum number of lines to put in a shell here document.
  54 ac_max_here_lines=12
  55 
  56 ac_prev=
  57 for ac_option
  58 do
  59 
  60   # If the previous option needs an argument, assign it.
  61   if test -n "$ac_prev"; then
  62     eval "$ac_prev=\$ac_option"
  63     ac_prev=
  64     continue
  65   fi
  66 
  67   case "$ac_option" in
  68   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  69   *) ac_optarg= ;;
  70   esac
  71 
  72   # Accept the important Cygnus configure options, so we can diagnose typos.
  73 
  74   case "$ac_option" in
  75 
  76   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77     ac_prev=bindir ;;
  78   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79     bindir="$ac_optarg" ;;
  80 
  81   -build | --build | --buil | --bui | --bu)
  82     ac_prev=build ;;
  83   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  84     build="$ac_optarg" ;;
  85 
  86   -cache-file | --cache-file | --cache-fil | --cache-fi \
  87   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  88     ac_prev=cache_file ;;
  89   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  90   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  91     cache_file="$ac_optarg" ;;
  92 
  93   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  94     ac_prev=datadir ;;
  95   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  96   | --da=*)
  97     datadir="$ac_optarg" ;;
  98 
  99   -disable-* | --disable-*)
 100     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 101     # Reject names that are not valid shell variable names.
 102     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 103       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 104     fi
 105     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 106     eval "enable_${ac_feature}=no" ;;
 107 
 108   -enable-* | --enable-*)
 109     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 110     # Reject names that are not valid shell variable names.
 111     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 113     fi
 114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 115     case "$ac_option" in
 116       *=*) ;;
 117       *) ac_optarg=yes ;;
 118     esac
 119     eval "enable_${ac_feature}='$ac_optarg'" ;;
 120 
 121   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 122   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 123   | --exec | --exe | --ex)
 124     ac_prev=exec_prefix ;;
 125   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 126   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 127   | --exec=* | --exe=* | --ex=*)
 128     exec_prefix="$ac_optarg" ;;
 129 
 130   -gas | --gas | --ga | --g)
 131     # Obsolete; use --with-gas.
 132     with_gas=yes ;;
 133 
 134   -help | --help | --hel | --he)
 135     # Omit some internal or obsolete options to make the list less imposing.
 136     # This message is too long to be a string in the A/UX 3.1 sh.
 137     cat << EOF
 138 Usage: configure [options] [host]
 139 Options: [defaults in brackets after descriptions]
 140 Configuration:
 141   --cache-file=FILE       cache test results in FILE
 142   --help                  print this message
 143   --no-create             do not create output files
 144   --quiet, --silent       do not print \`checking...' messages
 145   --version               print the version of autoconf that created configure
 146 Directory and file names:
 147   --prefix=PREFIX         install architecture-independent files in PREFIX
 148                           [$ac_default_prefix]
 149   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 150                           [same as prefix]
 151   --bindir=DIR            user executables in DIR [EPREFIX/bin]
 152   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 153   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 154   --datadir=DIR           read-only architecture-independent data in DIR
 155                           [PREFIX/share]
 156   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 157   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 158                           [PREFIX/com]
 159   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 160   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 161   --includedir=DIR        C header files in DIR [PREFIX/include]
 162   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 163   --infodir=DIR           info documentation in DIR [PREFIX/info]
 164   --mandir=DIR            man documentation in DIR [PREFIX/man]
 165   --srcdir=DIR            find the sources in DIR [configure dir or ..]
 166   --program-prefix=PREFIX prepend PREFIX to installed program names
 167   --program-suffix=SUFFIX append SUFFIX to installed program names
 168   --program-transform-name=PROGRAM
 169                           run sed PROGRAM on installed program names
 170 EOF
 171     cat << EOF
 172 Host type:
 173   --build=BUILD           configure for building on BUILD [BUILD=HOST]
 174   --host=HOST             configure for HOST [guessed]
 175   --target=TARGET         configure for TARGET [TARGET=HOST]
 176 Features and packages:
 177   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 178   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 179   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 180   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 181   --x-includes=DIR        X include files are in DIR
 182   --x-libraries=DIR       X library files are in DIR
 183 EOF
 184     if test -n "$ac_help"; then
 185       echo "--enable and --with options recognized:$ac_help"
 186     fi
 187     exit 0 ;;
 188 
 189   -host | --host | --hos | --ho)
 190     ac_prev=host ;;
 191   -host=* | --host=* | --hos=* | --ho=*)
 192     host="$ac_optarg" ;;
 193 
 194   -includedir | --includedir | --includedi | --included | --include \
 195   | --includ | --inclu | --incl | --inc)
 196     ac_prev=includedir ;;
 197   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 198   | --includ=* | --inclu=* | --incl=* | --inc=*)
 199     includedir="$ac_optarg" ;;
 200 
 201   -infodir | --infodir | --infodi | --infod | --info | --inf)
 202     ac_prev=infodir ;;
 203   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 204     infodir="$ac_optarg" ;;
 205 
 206   -libdir | --libdir | --libdi | --libd)
 207     ac_prev=libdir ;;
 208   -libdir=* | --libdir=* | --libdi=* | --libd=*)
 209     libdir="$ac_optarg" ;;
 210 
 211   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 212   | --libexe | --libex | --libe)
 213     ac_prev=libexecdir ;;
 214   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 215   | --libexe=* | --libex=* | --libe=*)
 216     libexecdir="$ac_optarg" ;;
 217 
 218   -localstatedir | --localstatedir | --localstatedi | --localstated \
 219   | --localstate | --localstat | --localsta | --localst \
 220   | --locals | --local | --loca | --loc | --lo)
 221     ac_prev=localstatedir ;;
 222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 223   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 224   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 225     localstatedir="$ac_optarg" ;;
 226 
 227   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 228     ac_prev=mandir ;;
 229   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 230     mandir="$ac_optarg" ;;
 231 
 232   -nfp | --nfp | --nf)
 233     # Obsolete; use --without-fp.
 234     with_fp=no ;;
 235 
 236   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 237   | --no-cr | --no-c)
 238     no_create=yes ;;
 239 
 240   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 241   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 242     no_recursion=yes ;;
 243 
 244   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 245   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 246   | --oldin | --oldi | --old | --ol | --o)
 247     ac_prev=oldincludedir ;;
 248   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 249   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 250   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 251     oldincludedir="$ac_optarg" ;;
 252 
 253   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 254     ac_prev=prefix ;;
 255   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 256     prefix="$ac_optarg" ;;
 257 
 258   -program-prefix | --program-prefix | --program-prefi | --program-pref \
 259   | --program-pre | --program-pr | --program-p)
 260     ac_prev=program_prefix ;;
 261   -program-prefix=* | --program-prefix=* | --program-prefi=* \
 262   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 263     program_prefix="$ac_optarg" ;;
 264 
 265   -program-suffix | --program-suffix | --program-suffi | --program-suff \
 266   | --program-suf | --program-su | --program-s)
 267     ac_prev=program_suffix ;;
 268   -program-suffix=* | --program-suffix=* | --program-suffi=* \
 269   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 270     program_suffix="$ac_optarg" ;;
 271 
 272   -program-transform-name | --program-transform-name \
 273   | --program-transform-nam | --program-transform-na \
 274   | --program-transform-n | --program-transform- \
 275   | --program-transform | --program-transfor \
 276   | --program-transfo | --program-transf \
 277   | --program-trans | --program-tran \
 278   | --progr-tra | --program-tr | --program-t)
 279     ac_prev=program_transform_name ;;
 280   -program-transform-name=* | --program-transform-name=* \
 281   | --program-transform-nam=* | --program-transform-na=* \
 282   | --program-transform-n=* | --program-transform-=* \
 283   | --program-transform=* | --program-transfor=* \
 284   | --program-transfo=* | --program-transf=* \
 285   | --program-trans=* | --program-tran=* \
 286   | --progr-tra=* | --program-tr=* | --program-t=*)
 287     program_transform_name="$ac_optarg" ;;
 288 
 289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 290   | -silent | --silent | --silen | --sile | --sil)
 291     silent=yes ;;
 292 
 293   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 294     ac_prev=sbindir ;;
 295   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 296   | --sbi=* | --sb=*)
 297     sbindir="$ac_optarg" ;;
 298 
 299   -sharedstatedir | --sharedstatedir | --sharedstatedi \
 300   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 301   | --sharedst | --shareds | --shared | --share | --shar \
 302   | --sha | --sh)
 303     ac_prev=sharedstatedir ;;
 304   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 305   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 306   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 307   | --sha=* | --sh=*)
 308     sharedstatedir="$ac_optarg" ;;
 309 
 310   -site | --site | --sit)
 311     ac_prev=site ;;
 312   -site=* | --site=* | --sit=*)
 313     site="$ac_optarg" ;;
 314 
 315   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 316     ac_prev=srcdir ;;
 317   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 318     srcdir="$ac_optarg" ;;
 319 
 320   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 321   | --syscon | --sysco | --sysc | --sys | --sy)
 322     ac_prev=sysconfdir ;;
 323   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 324   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 325     sysconfdir="$ac_optarg" ;;
 326 
 327   -target | --target | --targe | --targ | --tar | --ta | --t)
 328     ac_prev=target ;;
 329   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 330     target="$ac_optarg" ;;
 331 
 332   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 333     verbose=yes ;;
 334 
 335   -version | --version | --versio | --versi | --vers)
 336     echo "configure generated by autoconf version 2.13"
 337     exit 0 ;;
 338 
 339   -with-* | --with-*)
 340     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 341     # Reject names that are not valid shell variable names.
 342     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 343       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 344     fi
 345     ac_package=`echo $ac_package| sed 's/-/_/g'`
 346     case "$ac_option" in
 347       *=*) ;;
 348       *) ac_optarg=yes ;;
 349     esac
 350     eval "with_${ac_package}='$ac_optarg'" ;;
 351 
 352   -without-* | --without-*)
 353     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 354     # Reject names that are not valid shell variable names.
 355     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 356       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 357     fi
 358     ac_package=`echo $ac_package| sed 's/-/_/g'`
 359     eval "with_${ac_package}=no" ;;
 360 
 361   --x)
 362     # Obsolete; use --with-x.
 363     with_x=yes ;;
 364 
 365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 366   | --x-incl | --x-inc | --x-in | --x-i)
 367     ac_prev=x_includes ;;
 368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 370     x_includes="$ac_optarg" ;;
 371 
 372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 374     ac_prev=x_libraries ;;
 375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 377     x_libraries="$ac_optarg" ;;
 378 
 379   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 380     ;;
 381 
 382   *)
 383     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 384       echo "configure: warning: $ac_option: invalid host type" 1>&2
 385     fi
 386     if test "x$nonopt" != xNONE; then
 387       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 388     fi
 389     nonopt="$ac_option"
 390     ;;
 391 
 392   esac
 393 done
 394 
 395 if test -n "$ac_prev"; then
 396   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 397 fi
 398 
 399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 400 
 401 # File descriptor usage:
 402 # 0 standard input
 403 # 1 file creation
 404 # 2 errors and warnings
 405 # 3 some systems may open it to /dev/tty
 406 # 4 used on the Kubota Titan
 407 # 6 checking for... messages and results
 408 # 5 compiler messages saved in config.log
 409 if test "$silent" = yes; then
 410   exec 6>/dev/null
 411 else
 412   exec 6>&1
 413 fi
 414 exec 5>./config.log
 415 
 416 echo "\
 417 This file contains any messages produced by compilers while
 418 running configure, to aid debugging if configure makes a mistake.
 419 " 1>&5
 420 
 421 # Strip out --no-create and --no-recursion so they do not pile up.
 422 # Also quote any args containing shell metacharacters.
 423 ac_configure_args=
 424 for ac_arg
 425 do
 426   case "$ac_arg" in
 427   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 428   | --no-cr | --no-c) ;;
 429   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 430   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 431   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 432   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 433   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 434   esac
 435 done
 436 
 437 # NLS nuisances.
 438 # Only set these to C if already set.  These must not be set unconditionally
 439 # because not all systems understand e.g. LANG=C (notably SCO).
 440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 441 # Non-C LC_CTYPE values break the ctype check.
 442 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 445 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 446 
 447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 448 rm -rf conftest* confdefs.h
 449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
 450 echo > confdefs.h
 451 
 452 # A filename unique to this package, relative to the directory that
 453 # configure is in, which we can look for to find out if srcdir is correct.
 454 ac_unique_file=buffer.c
 455 
 456 # Find the source files, if location was not specified.
 457 if test -z "$srcdir"; then
 458   ac_srcdir_defaulted=yes
 459   # Try the directory containing this script, then its parent.
 460   ac_prog=$0
 461   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 462   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 463   srcdir=$ac_confdir
 464   if test ! -r $srcdir/$ac_unique_file; then
 465     srcdir=..
 466   fi
 467 else
 468   ac_srcdir_defaulted=no
 469 fi
 470 if test ! -r $srcdir/$ac_unique_file; then
 471   if test "$ac_srcdir_defaulted" = yes; then
 472     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 473   else
 474     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 475   fi
 476 fi
 477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 478 
 479 # Prefer explicitly selected file to automatically selected ones.
 480 if test -z "$CONFIG_SITE"; then
 481   if test "x$prefix" != xNONE; then
 482     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 483   else
 484     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 485   fi
 486 fi
 487 for ac_site_file in $CONFIG_SITE; do
 488   if test -r "$ac_site_file"; then
 489     echo "loading site script $ac_site_file"
 490     . "$ac_site_file"
 491   fi
 492 done
 493 
 494 if test -r "$cache_file"; then
 495   echo "loading cache $cache_file"
 496   . $cache_file
 497 else
 498   echo "creating cache $cache_file"
 499   > $cache_file
 500 fi
 501 
 502 ac_ext=c
 503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 504 ac_cpp='$CPP $CPPFLAGS'
 505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 507 cross_compiling=$ac_cv_prog_cc_cross
 508 
 509 ac_exeext=
 510 ac_objext=o
 511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 512   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 513   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 514     ac_n= ac_c='
 515 ' ac_t='    '
 516   else
 517     ac_n=-n ac_c= ac_t=
 518   fi
 519 else
 520   ac_n= ac_c='\c' ac_t=
 521 fi
 522 
 523 
 524 
 525 
 526 # Extract the first word of "gcc", so it can be a program name with args.
 527 set dummy gcc; ac_word=$2
 528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 529 echo "configure:530: checking for $ac_word" >&5
 530 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 531   echo $ac_n "(cached) $ac_c" 1>&6
 532 else
 533   if test -n "$CC"; then
 534   ac_cv_prog_CC="$CC" # Let the user override the test.
 535 else
 536   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 537   ac_dummy="$PATH"
 538   for ac_dir in $ac_dummy; do
 539     test -z "$ac_dir" && ac_dir=.
 540     if test -f $ac_dir/$ac_word; then
 541       ac_cv_prog_CC="gcc"
 542       break
 543     fi
 544   done
 545   IFS="$ac_save_ifs"
 546 fi
 547 fi
 548 CC="$ac_cv_prog_CC"
 549 if test -n "$CC"; then
 550   echo "$ac_t""$CC" 1>&6
 551 else
 552   echo "$ac_t""no" 1>&6
 553 fi
 554 
 555 if test -z "$CC"; then
 556   # Extract the first word of "cc", so it can be a program name with args.
 557 set dummy cc; ac_word=$2
 558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 559 echo "configure:560: checking for $ac_word" >&5
 560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 561   echo $ac_n "(cached) $ac_c" 1>&6
 562 else
 563   if test -n "$CC"; then
 564   ac_cv_prog_CC="$CC" # Let the user override the test.
 565 else
 566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 567   ac_prog_rejected=no
 568   ac_dummy="$PATH"
 569   for ac_dir in $ac_dummy; do
 570     test -z "$ac_dir" && ac_dir=.
 571     if test -f $ac_dir/$ac_word; then
 572       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 573         ac_prog_rejected=yes
 574     continue
 575       fi
 576       ac_cv_prog_CC="cc"
 577       break
 578     fi
 579   done
 580   IFS="$ac_save_ifs"
 581 if test $ac_prog_rejected = yes; then
 582   # We found a bogon in the path, so make sure we never use it.
 583   set dummy $ac_cv_prog_CC
 584   shift
 585   if test $# -gt 0; then
 586     # We chose a different compiler from the bogus one.
 587     # However, it has the same basename, so the bogon will be chosen
 588     # first if we set CC to just the basename; use the full file name.
 589     shift
 590     set dummy "$ac_dir/$ac_word" "$@"
 591     shift
 592     ac_cv_prog_CC="$@"
 593   fi
 594 fi
 595 fi
 596 fi
 597 CC="$ac_cv_prog_CC"
 598 if test -n "$CC"; then
 599   echo "$ac_t""$CC" 1>&6
 600 else
 601   echo "$ac_t""no" 1>&6
 602 fi
 603 
 604   if test -z "$CC"; then
 605     case "`uname -s`" in
 606     *win32* | *WIN32*)
 607       # Extract the first word of "cl", so it can be a program name with args.
 608 set dummy cl; ac_word=$2
 609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 610 echo "configure:611: checking for $ac_word" >&5
 611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 612   echo $ac_n "(cached) $ac_c" 1>&6
 613 else
 614   if test -n "$CC"; then
 615   ac_cv_prog_CC="$CC" # Let the user override the test.
 616 else
 617   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 618   ac_dummy="$PATH"
 619   for ac_dir in $ac_dummy; do
 620     test -z "$ac_dir" && ac_dir=.
 621     if test -f $ac_dir/$ac_word; then
 622       ac_cv_prog_CC="cl"
 623       break
 624     fi
 625   done
 626   IFS="$ac_save_ifs"
 627 fi
 628 fi
 629 CC="$ac_cv_prog_CC"
 630 if test -n "$CC"; then
 631   echo "$ac_t""$CC" 1>&6
 632 else
 633   echo "$ac_t""no" 1>&6
 634 fi
 635  ;;
 636     esac
 637   fi
 638   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 639 fi
 640 
 641 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 642 echo "configure:643: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 643 
 644 ac_ext=c
 645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 646 ac_cpp='$CPP $CPPFLAGS'
 647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 649 cross_compiling=$ac_cv_prog_cc_cross
 650 
 651 cat > conftest.$ac_ext << EOF
 652 
 653 #line 654 "configure"
 654 #include "confdefs.h"
 655 
 656 main(){return(0);}
 657 EOF
 658 if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 659   ac_cv_prog_cc_works=yes
 660   # If we can't run a trivial program, we are probably using a cross compiler.
 661   if (./conftest; exit) 2>/dev/null; then
 662     ac_cv_prog_cc_cross=no
 663   else
 664     ac_cv_prog_cc_cross=yes
 665   fi
 666 else
 667   echo "configure: failed program was:" >&5
 668   cat conftest.$ac_ext >&5
 669   ac_cv_prog_cc_works=no
 670 fi
 671 rm -fr conftest*
 672 ac_ext=c
 673 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 674 ac_cpp='$CPP $CPPFLAGS'
 675 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 676 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 677 cross_compiling=$ac_cv_prog_cc_cross
 678 
 679 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 680 if test $ac_cv_prog_cc_works = no; then
 681   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1;
	}
 682 fi
 683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 684 echo "configure:685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 685 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 686 cross_compiling=$ac_cv_prog_cc_cross
 687 
 688 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 689 echo "configure:690: checking whether we are using GNU C" >&5
 690 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 691   echo $ac_n "(cached) $ac_c" 1>&6
 692 else
 693   cat > conftest.c <<EOF
 694 #ifdef __GNUC__
 695   yes;
 696 #endif
 697 EOF
 698 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep
	yes >/dev/null 2>&1; then
 699   ac_cv_prog_gcc=yes
 700 else
 701   ac_cv_prog_gcc=no
 702 fi
 703 fi
 704 
 705 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 706 
 707 if test $ac_cv_prog_gcc = yes; then
 708   GCC=yes
 709 else
 710   GCC=
 711 fi
 712 
 713 ac_test_CFLAGS="${CFLAGS+set}"
 714 ac_save_CFLAGS="$CFLAGS"
 715 CFLAGS=
 716 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 717 echo "configure:718: checking whether ${CC-cc} accepts -g" >&5
 718 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 719   echo $ac_n "(cached) $ac_c" 1>&6
 720 else
 721   echo 'void f(){}' > conftest.c
 722 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 723   ac_cv_prog_cc_g=yes
 724 else
 725   ac_cv_prog_cc_g=no
 726 fi
 727 rm -f conftest*
 728 
 729 fi
 730 
 731 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 732 if test "$ac_test_CFLAGS" = set; then
 733   CFLAGS="$ac_save_CFLAGS"
 734 elif test $ac_cv_prog_cc_g = yes; then
 735   if test "$GCC" = yes; then
 736     CFLAGS="-g -O2"
 737   else
 738     CFLAGS="-g"
 739   fi
 740 else
 741   if test "$GCC" = yes; then
 742     CFLAGS="-O2"
 743   else
 744     CFLAGS=
 745   fi
 746 fi
 747 
 748 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 749 echo "configure:750: checking whether ln -s works" >&5
 750 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 751   echo $ac_n "(cached) $ac_c" 1>&6
 752 else
 753   rm -f conftestdata
 754 if ln -s X conftestdata 2>/dev/null
 755 then
 756   rm -f conftestdata
 757   ac_cv_prog_LN_S="ln -s"
 758 else
 759   ac_cv_prog_LN_S=ln
 760 fi
 761 fi
 762 LN_S="$ac_cv_prog_LN_S"
 763 if test "$ac_cv_prog_LN_S" = "ln -s"; then
 764   echo "$ac_t""yes" 1>&6
 765 else
 766   echo "$ac_t""no" 1>&6
 767 fi
 768 
 769 
 770 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
 771 echo "configure:772: checking for pow in -lm" >&5
 772 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
 773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 774   echo $ac_n "(cached) $ac_c" 1>&6
 775 else
 776   ac_save_LIBS="$LIBS"
 777 LIBS="-lm  $LIBS"
 778 cat > conftest.$ac_ext <<EOF
 779 #line 780 "configure"
 780 #include "confdefs.h"
 781 /* Override any gcc2 internal prototype to avoid an error.  */
 782 /* We use char because int might match the return type of a gcc2
 783     builtin and then its argument prototype would still apply.  */
 784 char pow();
 785 
 786 int main() {
 787 pow()
 788 ; return 0; }
 789 EOF
 790 if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 791   rm -rf conftest*
 792   eval "ac_cv_lib_$ac_lib_var=yes"
 793 else
 794   echo "configure: failed program was:" >&5
 795   cat conftest.$ac_ext >&5
 796   rm -rf conftest*
 797   eval "ac_cv_lib_$ac_lib_var=no"
 798 fi
 799 rm -f conftest*
 800 LIBS="$ac_save_LIBS"
 801 
 802 fi
 803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 804   echo "$ac_t""yes" 1>&6
 805     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 806     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 807   cat >> confdefs.h <<EOF
 808 #define $ac_tr_lib 1
 809 EOF
 810 
 811   LIBS="-lm $LIBS"
 812 
 813 else
 814   echo "$ac_t""no" 1>&6
 815 fi
 816 
 817 
 818   
 819 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
 820 echo "configure:821: checking for library containing socket" >&5
 821 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
 822   echo $ac_n "(cached) $ac_c" 1>&6
 823 else
 824   ac_func_search_save_LIBS="$LIBS"
 825 ac_cv_search_socket="no"
 826 cat > conftest.$ac_ext <<EOF
 827 #line 828 "configure"
 828 #include "confdefs.h"
 829 /* Override any gcc2 internal prototype to avoid an error.  */
 830 /* We use char because int might match the return type of a gcc2
 831     builtin and then its argument prototype would still apply.  */
 832 char socket();
 833 
 834 int main() {
 835 socket()
 836 ; return 0; }
 837 EOF
 838 if { (eval echo configure:839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 839   rm -rf conftest*
 840   ac_cv_search_socket="none required"
 841 else
 842   echo "configure: failed program was:" >&5
 843   cat conftest.$ac_ext >&5
 844 fi
 845 rm -f conftest*
 846 test "$ac_cv_search_socket" = "no" && for i in socket nsl; do
 847 LIBS="-l$i  $ac_func_search_save_LIBS"
 848 cat > conftest.$ac_ext <<EOF
 849 #line 850 "configure"
 850 #include "confdefs.h"
 851 /* Override any gcc2 internal prototype to avoid an error.  */
 852 /* We use char because int might match the return type of a gcc2
 853     builtin and then its argument prototype would still apply.  */
 854 char socket();
 855 
 856 int main() {
 857 socket()
 858 ; return 0; }
 859 EOF
 860 if { (eval echo configure:861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 861   rm -rf conftest*
 862   ac_cv_search_socket="-l$i"
 863 break
 864 else
 865   echo "configure: failed program was:" >&5
 866   cat conftest.$ac_ext >&5
 867 fi
 868 rm -f conftest*
 869 done
 870 LIBS="$ac_func_search_save_LIBS"
 871 fi
 872 
 873 echo "$ac_t""$ac_cv_search_socket" 1>&6
 874 if test "$ac_cv_search_socket" != "no"; then
 875   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
 876   
 877 else :
 878   
 879 fi
 880   
 881 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
 882 echo "configure:883: checking for library containing gethostbyname" >&5
 883 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
 884   echo $ac_n "(cached) $ac_c" 1>&6
 885 else
 886   ac_func_search_save_LIBS="$LIBS"
 887 ac_cv_search_gethostbyname="no"
 888 cat > conftest.$ac_ext <<EOF
 889 #line 890 "configure"
 890 #include "confdefs.h"
 891 /* Override any gcc2 internal prototype to avoid an error.  */
 892 /* We use char because int might match the return type of a gcc2
 893     builtin and then its argument prototype would still apply.  */
 894 char gethostbyname();
 895 
 896 int main() {
 897 gethostbyname()
 898 ; return 0; }
 899 EOF
 900 if { (eval echo configure:901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 901   rm -rf conftest*
 902   ac_cv_search_gethostbyname="none required"
 903 else
 904   echo "configure: failed program was:" >&5
 905   cat conftest.$ac_ext >&5
 906 fi
 907 rm -f conftest*
 908 test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
 909 LIBS="-l$i  $ac_func_search_save_LIBS"
 910 cat > conftest.$ac_ext <<EOF
 911 #line 912 "configure"
 912 #include "confdefs.h"
 913 /* Override any gcc2 internal prototype to avoid an error.  */
 914 /* We use char because int might match the return type of a gcc2
 915     builtin and then its argument prototype would still apply.  */
 916 char gethostbyname();
 917 
 918 int main() {
 919 gethostbyname()
 920 ; return 0; }
 921 EOF
 922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 923   rm -rf conftest*
 924   ac_cv_search_gethostbyname="-l$i"
 925 break
 926 else
 927   echo "configure: failed program was:" >&5
 928   cat conftest.$ac_ext >&5
 929 fi
 930 rm -f conftest*
 931 done
 932 LIBS="$ac_func_search_save_LIBS"
 933 fi
 934 
 935 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
 936 if test "$ac_cv_search_gethostbyname" != "no"; then
 937   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 938   
 939 else :
 940   
 941 fi
 942   
 943 echo $ac_n "checking for library containing inet_aton""... $ac_c" 1>&6
 944 echo "configure:945: checking for library containing inet_aton" >&5
 945 if eval "test \"`echo '$''{'ac_cv_search_inet_aton'+set}'`\" = set"; then
 946   echo $ac_n "(cached) $ac_c" 1>&6
 947 else
 948   ac_func_search_save_LIBS="$LIBS"
 949 ac_cv_search_inet_aton="no"
 950 cat > conftest.$ac_ext <<EOF
 951 #line 952 "configure"
 952 #include "confdefs.h"
 953 /* Override any gcc2 internal prototype to avoid an error.  */
 954 /* We use char because int might match the return type of a gcc2
 955     builtin and then its argument prototype would still apply.  */
 956 char inet_aton();
 957 
 958 int main() {
 959 inet_aton()
 960 ; return 0; }
 961 EOF
 962 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 963   rm -rf conftest*
 964   ac_cv_search_inet_aton="none required"
 965 else
 966   echo "configure: failed program was:" >&5
 967   cat conftest.$ac_ext >&5
 968 fi
 969 rm -f conftest*
 970 test "$ac_cv_search_inet_aton" = "no" && for i in xnet; do
 971 LIBS="-l$i  $ac_func_search_save_LIBS"
 972 cat > conftest.$ac_ext <<EOF
 973 #line 974 "configure"
 974 #include "confdefs.h"
 975 /* Override any gcc2 internal prototype to avoid an error.  */
 976 /* We use char because int might match the return type of a gcc2
 977     builtin and then its argument prototype would still apply.  */
 978 char inet_aton();
 979 
 980 int main() {
 981 inet_aton()
 982 ; return 0; }
 983 EOF
 984 if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 985   rm -rf conftest*
 986   ac_cv_search_inet_aton="-l$i"
 987 break
 988 else
 989   echo "configure: failed program was:" >&5
 990   cat conftest.$ac_ext >&5
 991 fi
 992 rm -f conftest*
 993 done
 994 LIBS="$ac_func_search_save_LIBS"
 995 fi
 996 
 997 echo "$ac_t""$ac_cv_search_inet_aton" 1>&6
 998 if test "$ac_cv_search_inet_aton" != "no"; then
 999   test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
1000   cat >> confdefs.h <<\EOF
1001 #define HAVE_INET_ATON 1
1002 EOF
1003 
1004 else :
1005   
1006 echo $ac_n "checking for library containing inet_addr""... $ac_c" 1>&6
1007 echo "configure:1008: checking for library containing inet_addr" >&5
1008 if eval "test \"`echo '$''{'ac_cv_search_inet_addr'+set}'`\" = set"; then
1009   echo $ac_n "(cached) $ac_c" 1>&6
1010 else
1011   ac_func_search_save_LIBS="$LIBS"
1012 ac_cv_search_inet_addr="no"
1013 cat > conftest.$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1016 /* Override any gcc2 internal prototype to avoid an error.  */
1017 /* We use char because int might match the return type of a gcc2
1018     builtin and then its argument prototype would still apply.  */
1019 char inet_addr();
1020 
1021 int main() {
1022 inet_addr()
1023 ; return 0; }
1024 EOF
1025 if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1026   rm -rf conftest*
1027   ac_cv_search_inet_addr="none required"
1028 else
1029   echo "configure: failed program was:" >&5
1030   cat conftest.$ac_ext >&5
1031 fi
1032 rm -f conftest*
1033 test "$ac_cv_search_inet_addr" = "no" && for i in nsl; do
1034 LIBS="-l$i  $ac_func_search_save_LIBS"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 /* Override any gcc2 internal prototype to avoid an error.  */
1039 /* We use char because int might match the return type of a gcc2
1040     builtin and then its argument prototype would still apply.  */
1041 char inet_addr();
1042 
1043 int main() {
1044 inet_addr()
1045 ; return 0; }
1046 EOF
1047 if { (eval echo configure:1048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1048   rm -rf conftest*
1049   ac_cv_search_inet_addr="-l$i"
1050 break
1051 else
1052   echo "configure: failed program was:" >&5
1053   cat conftest.$ac_ext >&5
1054 fi
1055 rm -f conftest*
1056 done
1057 LIBS="$ac_func_search_save_LIBS"
1058 fi
1059 
1060 echo "$ac_t""$ac_cv_search_inet_addr" 1>&6
1061 if test "$ac_cv_search_inet_addr" != "no"; then
1062   test "$ac_cv_search_inet_addr" = "none required" || LIBS="$ac_cv_search_inet_addr $LIBS"
1063   
1064 else :
1065   
1066 fi
1067 fi
1068 
1069 
1070 ac_header_dirent=no
1071 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1072 do
1073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1074 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_hdr that defines DIR" >&5
1076 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1077   echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079   cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1082 #include <sys/types.h>
1083 #include <$ac_hdr>
1084 int main() {
1085 DIR *dirp = 0;
1086 ; return 0; }
1087 EOF
1088 if { (eval echo configure:1089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1089   rm -rf conftest*
1090   eval "ac_cv_header_dirent_$ac_safe=yes"
1091 else
1092   echo "configure: failed program was:" >&5
1093   cat conftest.$ac_ext >&5
1094   rm -rf conftest*
1095   eval "ac_cv_header_dirent_$ac_safe=no"
1096 fi
1097 rm -f conftest*
1098 fi
1099 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1100   echo "$ac_t""yes" 1>&6
1101     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1102   cat >> confdefs.h <<EOF
1103 #define $ac_tr_hdr 1
1104 EOF
1105  ac_header_dirent=$ac_hdr; break
1106 else
1107   echo "$ac_t""no" 1>&6
1108 fi
1109 done
1110 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1111 if test $ac_header_dirent = dirent.h; then
1112 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1113 echo "configure:1114: checking for opendir in -ldir" >&5
1114 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1116   echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118   ac_save_LIBS="$LIBS"
1119 LIBS="-ldir  $LIBS"
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1123 /* Override any gcc2 internal prototype to avoid an error.  */
1124 /* We use char because int might match the return type of a gcc2
1125     builtin and then its argument prototype would still apply.  */
1126 char opendir();
1127 
1128 int main() {
1129 opendir()
1130 ; return 0; }
1131 EOF
1132 if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133   rm -rf conftest*
1134   eval "ac_cv_lib_$ac_lib_var=yes"
1135 else
1136   echo "configure: failed program was:" >&5
1137   cat conftest.$ac_ext >&5
1138   rm -rf conftest*
1139   eval "ac_cv_lib_$ac_lib_var=no"
1140 fi
1141 rm -f conftest*
1142 LIBS="$ac_save_LIBS"
1143 
1144 fi
1145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1146   echo "$ac_t""yes" 1>&6
1147   LIBS="$LIBS -ldir"
1148 else
1149   echo "$ac_t""no" 1>&6
1150 fi
1151 
1152 else
1153 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1154 echo "configure:1155: checking for opendir in -lx" >&5
1155 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157   echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159   ac_save_LIBS="$LIBS"
1160 LIBS="-lx  $LIBS"
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1164 /* Override any gcc2 internal prototype to avoid an error.  */
1165 /* We use char because int might match the return type of a gcc2
1166     builtin and then its argument prototype would still apply.  */
1167 char opendir();
1168 
1169 int main() {
1170 opendir()
1171 ; return 0; }
1172 EOF
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174   rm -rf conftest*
1175   eval "ac_cv_lib_$ac_lib_var=yes"
1176 else
1177   echo "configure: failed program was:" >&5
1178   cat conftest.$ac_ext >&5
1179   rm -rf conftest*
1180   eval "ac_cv_lib_$ac_lib_var=no"
1181 fi
1182 rm -f conftest*
1183 LIBS="$ac_save_LIBS"
1184 
1185 fi
1186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187   echo "$ac_t""yes" 1>&6
1188   LIBS="$LIBS -lx"
1189 else
1190   echo "$ac_t""no" 1>&6
1191 fi
1192 
1193 fi
1194 
1195 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1196 echo "configure:1197: checking how to run the C preprocessor" >&5
1197 # On Suns, sometimes $CPP names a directory.
1198 if test -n "$CPP" && test -d "$CPP"; then
1199   CPP=
1200 fi
1201 if test -z "$CPP"; then
1202 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1203   echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205     # This must be in double quotes, not single quotes, because CPP may get
1206   # substituted into the Makefile and "${CC-cc}" will confuse make.
1207   CPP="${CC-cc} -E"
1208   # On the NeXT, cc -E runs the code through the compiler's parser,
1209   # not just through cpp.
1210   cat > conftest.$ac_ext <<EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1213 #include <assert.h>
1214 Syntax Error
1215 EOF
1216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1217 { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1219 if test -z "$ac_err"; then
1220   :
1221 else
1222   echo "$ac_err" >&5
1223   echo "configure: failed program was:" >&5
1224   cat conftest.$ac_ext >&5
1225   rm -rf conftest*
1226   CPP="${CC-cc} -E -traditional-cpp"
1227   cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1230 #include <assert.h>
1231 Syntax Error
1232 EOF
1233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1234 { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1236 if test -z "$ac_err"; then
1237   :
1238 else
1239   echo "$ac_err" >&5
1240   echo "configure: failed program was:" >&5
1241   cat conftest.$ac_ext >&5
1242   rm -rf conftest*
1243   CPP="${CC-cc} -nologo -E"
1244   cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <assert.h>
1248 Syntax Error
1249 EOF
1250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1253 if test -z "$ac_err"; then
1254   :
1255 else
1256   echo "$ac_err" >&5
1257   echo "configure: failed program was:" >&5
1258   cat conftest.$ac_ext >&5
1259   rm -rf conftest*
1260   CPP=/lib/cpp
1261 fi
1262 rm -f conftest*
1263 fi
1264 rm -f conftest*
1265 fi
1266 rm -f conftest*
1267   ac_cv_prog_CPP="$CPP"
1268 fi
1269   CPP="$ac_cv_prog_CPP"
1270 else
1271   ac_cv_prog_CPP="$CPP"
1272 fi
1273 echo "$ac_t""$CPP" 1>&6
1274 
1275 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1276 echo "configure:1277: checking for ANSI C header files" >&5
1277 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1278   echo $ac_n "(cached) $ac_c" 1>&6
1279 else
1280   cat > conftest.$ac_ext <<EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1283 #include <stdlib.h>
1284 #include <stdarg.h>
1285 #include <string.h>
1286 #include <float.h>
1287 EOF
1288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1292   rm -rf conftest*
1293   ac_cv_header_stdc=yes
1294 else
1295   echo "$ac_err" >&5
1296   echo "configure: failed program was:" >&5
1297   cat conftest.$ac_ext >&5
1298   rm -rf conftest*
1299   ac_cv_header_stdc=no
1300 fi
1301 rm -f conftest*
1302 
1303 if test $ac_cv_header_stdc = yes; then
1304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1308 #include <string.h>
1309 EOF
1310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1311   egrep "memchr" >/dev/null 2>&1; then
1312   :
1313 else
1314   rm -rf conftest*
1315   ac_cv_header_stdc=no
1316 fi
1317 rm -f conftest*
1318 
1319 fi
1320 
1321 if test $ac_cv_header_stdc = yes; then
1322   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1323 cat > conftest.$ac_ext <<EOF
1324 #line 1325 "configure"
1325 #include "confdefs.h"
1326 #include <stdlib.h>
1327 EOF
1328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1329   egrep "free" >/dev/null 2>&1; then
1330   :
1331 else
1332   rm -rf conftest*
1333   ac_cv_header_stdc=no
1334 fi
1335 rm -f conftest*
1336 
1337 fi
1338 
1339 if test $ac_cv_header_stdc = yes; then
1340   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1341 if test "$cross_compiling" = yes; then
1342   :
1343 else
1344   cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 #include <ctype.h>
1348 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1349 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1351 int main () { int i; for (i = 0; i < 256; i++)
1352 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1353 exit (0); }
1354 
1355 EOF
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} &&
	(./conftest; exit) 2>/dev/null
1357 then
1358   :
1359 else
1360   echo "configure: failed program was:" >&5
1361   cat conftest.$ac_ext >&5
1362   rm -fr conftest*
1363   ac_cv_header_stdc=no
1364 fi
1365 rm -fr conftest*
1366 fi
1367 
1368 fi
1369 fi
1370 
1371 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1372 if test $ac_cv_header_stdc = yes; then
1373   cat >> confdefs.h <<\EOF
1374 #define STDC_HEADERS 1
1375 EOF
1376 
1377 fi
1378 
1379 for ac_hdr in fcntl.h unistd.h stdint.h sys/socket.h
1380 do
1381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $ac_hdr" >&5
1384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1385   echo $ac_n "(cached) $ac_c" 1>&6
1386 else
1387   cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390 #include <$ac_hdr>
1391 EOF
1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1395 if test -z "$ac_err"; then
1396   rm -rf conftest*
1397   eval "ac_cv_header_$ac_safe=yes"
1398 else
1399   echo "$ac_err" >&5
1400   echo "configure: failed program was:" >&5
1401   cat conftest.$ac_ext >&5
1402   rm -rf conftest*
1403   eval "ac_cv_header_$ac_safe=no"
1404 fi
1405 rm -f conftest*
1406 fi
1407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1408   echo "$ac_t""yes" 1>&6
1409     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1410   cat >> confdefs.h <<EOF
1411 #define $ac_tr_hdr 1
1412 EOF
1413  
1414 else
1415   echo "$ac_t""no" 1>&6
1416 fi
1417 done
1418 
1419 
1420 echo $ac_n "checking for working const""... $ac_c" 1>&6
1421 echo "configure:1422: checking for working const" >&5
1422 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1423   echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425   cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 
1429 int main() {
1430 
1431 /* Ultrix mips cc rejects this.  */
1432 typedef int charset[2]; const charset x;
1433 /* SunOS 4.1.1 cc rejects this.  */
1434 char const *const *ccp;
1435 char **p;
1436 /* NEC SVR4.0.2 mips cc rejects this.  */
1437 struct point {int x, y;};
1438 static struct point const zero = {0,0};
1439 /* AIX XL C 1.02.0.0 rejects this.
1440    It does not let you subtract one const X* pointer from another in an arm
1441    of an if-expression whose if-part is not a constant expression */
1442 const char *g = "string";
1443 ccp = &g + (g ? g-g : 0);
1444 /* HPUX 7.0 cc rejects these. */
1445 ++ccp;
1446 p = (char**) ccp;
1447 ccp = (char const *const *) p;
1448 { /* SCO 3.2v4 cc rejects this.  */
1449   char *t;
1450   char const *s = 0 ? (char *) 0 : (char const *) 0;
1451 
1452   *t++ = 0;
1453 }
1454 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1455   int x[] = {25, 17};
1456   const int *foo = &x[0];
1457   ++foo;
1458 }
1459 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1460   typedef const int *iptr;
1461   iptr p = 0;
1462   ++p;
1463 }
1464 { /* AIX XL C 1.02.0.0 rejects this saying
1465      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1466   struct s { int j; const int *ap[3]; };
1467   struct s *b; b->j = 5;
1468 }
1469 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1470   const int foo = 10;
1471 }
1472 
1473 ; return 0; }
1474 EOF
1475 if { (eval echo configure:1476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1476   rm -rf conftest*
1477   ac_cv_c_const=yes
1478 else
1479   echo "configure: failed program was:" >&5
1480   cat conftest.$ac_ext >&5
1481   rm -rf conftest*
1482   ac_cv_c_const=no
1483 fi
1484 rm -f conftest*
1485 fi
1486 
1487 echo "$ac_t""$ac_cv_c_const" 1>&6
1488 if test $ac_cv_c_const = no; then
1489   cat >> confdefs.h <<\EOF
1490 #define const 
1491 EOF
1492 
1493 fi
1494 
1495 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1496 echo "configure:1497: checking for mode_t" >&5
1497 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1498   echo $ac_n "(cached) $ac_c" 1>&6
1499 else
1500   cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 #include <sys/types.h>
1504 #if STDC_HEADERS
1505 #include <stdlib.h>
1506 #include <stddef.h>
1507 #endif
1508 EOF
1509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1510   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1511   rm -rf conftest*
1512   ac_cv_type_mode_t=yes
1513 else
1514   rm -rf conftest*
1515   ac_cv_type_mode_t=no
1516 fi
1517 rm -f conftest*
1518 
1519 fi
1520 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1521 if test $ac_cv_type_mode_t = no; then
1522   cat >> confdefs.h <<\EOF
1523 #define mode_t int
1524 EOF
1525 
1526 fi
1527 
1528 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1529 echo "configure:1530: checking for off_t" >&5
1530 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1531   echo $ac_n "(cached) $ac_c" 1>&6
1532 else
1533   cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 #include <sys/types.h>
1537 #if STDC_HEADERS
1538 #include <stdlib.h>
1539 #include <stddef.h>
1540 #endif
1541 EOF
1542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1543   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1544   rm -rf conftest*
1545   ac_cv_type_off_t=yes
1546 else
1547   rm -rf conftest*
1548   ac_cv_type_off_t=no
1549 fi
1550 rm -f conftest*
1551 
1552 fi
1553 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1554 if test $ac_cv_type_off_t = no; then
1555   cat >> confdefs.h <<\EOF
1556 #define off_t long
1557 EOF
1558 
1559 fi
1560 
1561 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1562 echo "configure:1563: checking for size_t" >&5
1563 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1564   echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566   cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1569 #include <sys/types.h>
1570 #if STDC_HEADERS
1571 #include <stdlib.h>
1572 #include <stddef.h>
1573 #endif
1574 EOF
1575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1576   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1577   rm -rf conftest*
1578   ac_cv_type_size_t=yes
1579 else
1580   rm -rf conftest*
1581   ac_cv_type_size_t=no
1582 fi
1583 rm -f conftest*
1584 
1585 fi
1586 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1587 if test $ac_cv_type_size_t = no; then
1588   cat >> confdefs.h <<\EOF
1589 #define size_t unsigned
1590 EOF
1591 
1592 fi
1593 
1594 
1595 for ac_func in socket strcspn strdup strstr uname
1596 do
1597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_func" >&5
1599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1600   echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602   cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 /* System header to define __stub macros and hopefully few prototypes,
1606     which can conflict with char $ac_func(); below.  */
1607 #include <assert.h>
1608 /* Override any gcc2 internal prototype to avoid an error.  */
1609 /* We use char because int might match the return type of a gcc2
1610     builtin and then its argument prototype would still apply.  */
1611 char $ac_func();
1612 
1613 int main() {
1614 
1615 /* The GNU C library defines this for functions which it implements
1616     to always fail with ENOSYS.  Some functions are actually named
1617     something starting with __ and the normal name is an alias.  */
1618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1619 choke me
1620 #else
1621 $ac_func();
1622 #endif
1623 
1624 ; return 0; }
1625 EOF
1626 if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1627   rm -rf conftest*
1628   eval "ac_cv_func_$ac_func=yes"
1629 else
1630   echo "configure: failed program was:" >&5
1631   cat conftest.$ac_ext >&5
1632   rm -rf conftest*
1633   eval "ac_cv_func_$ac_func=no"
1634 fi
1635 rm -f conftest*
1636 fi
1637 
1638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1639   echo "$ac_t""yes" 1>&6
1640     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1641   cat >> confdefs.h <<EOF
1642 #define $ac_tr_func 1
1643 EOF
1644  
1645 else
1646   echo "$ac_t""no" 1>&6
1647 fi
1648 done
1649 
1650 for ac_func in strsep
1651 do
1652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_func" >&5
1654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1655   echo $ac_n "(cached) $ac_c" 1>&6
1656 else
1657   cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 /* System header to define __stub macros and hopefully few prototypes,
1661     which can conflict with char $ac_func(); below.  */
1662 #include <assert.h>
1663 /* Override any gcc2 internal prototype to avoid an error.  */
1664 /* We use char because int might match the return type of a gcc2
1665     builtin and then its argument prototype would still apply.  */
1666 char $ac_func();
1667 
1668 int main() {
1669 
1670 /* The GNU C library defines this for functions which it implements
1671     to always fail with ENOSYS.  Some functions are actually named
1672     something starting with __ and the normal name is an alias.  */
1673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1674 choke me
1675 #else
1676 $ac_func();
1677 #endif
1678 
1679 ; return 0; }
1680 EOF
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1682   rm -rf conftest*
1683   eval "ac_cv_func_$ac_func=yes"
1684 else
1685   echo "configure: failed program was:" >&5
1686   cat conftest.$ac_ext >&5
1687   rm -rf conftest*
1688   eval "ac_cv_func_$ac_func=no"
1689 fi
1690 rm -f conftest*
1691 fi
1692 
1693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1694   echo "$ac_t""yes" 1>&6
1695     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1696   cat >> confdefs.h <<EOF
1697 #define $ac_tr_func 1
1698 EOF
1699  
1700 else
1701   echo "$ac_t""no" 1>&6
1702 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1703 fi
1704 done
1705 
1706 
1707 
1708 trap '' 1 2 15
1709 cat > confcache <<\EOF
1710 # This file is a shell script that caches the results of configure
1711 # tests run on this system so they can be shared between configure
1712 # scripts and configure runs.  It is not useful on other systems.
1713 # If it contains results you don't want to keep, you may remove or edit it.
1714 #
1715 # By default, configure uses ./config.cache as the cache file,
1716 # creating it if it does not exist already.  You can give configure
1717 # the --cache-file=FILE option to use a different cache file; that is
1718 # what configure does when it calls configure scripts in
1719 # subdirectories, so they share the cache.
1720 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1721 # config.status only pays attention to the cache file if you give it the
1722 # --recheck option to rerun configure.
1723 #
1724 EOF
1725 # The following way of writing the cache mishandles newlines in values,
1726 # but we know of no workaround that is simple, portable, and efficient.
1727 # So, don't put newlines in cache variables' values.
1728 # Ultrix sh set writes to stderr and can't be redirected directly,
1729 # and sets the high bit in the cache file unless we assign to the vars.
1730 (set) 2>&1 |
1731   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1732   *ac_space=\ *)
1733     # `set' does not quote correctly, so add quotes (double-quote substitution
1734     # turns \\\\ into \\, and sed turns \\ into \).
1735     sed -n \
1736       -e "s/'/'\\\\''/g" \
1737       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1738     ;;
1739   *)
1740     # `set' quotes correctly as required by POSIX, so do not add quotes.
1741     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1742     ;;
1743   esac >> confcache
1744 if cmp -s $cache_file confcache; then
1745   :
1746 else
1747   if test -w $cache_file; then
1748     echo "updating cache $cache_file"
1749     cat confcache > $cache_file
1750   else
1751     echo "not updating unwritable cache $cache_file"
1752   fi
1753 fi
1754 rm -f confcache
1755 
1756 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1757 
1758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1759 # Let make expand exec_prefix.
1760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1761 
1762 # Any assignment to VPATH causes Sun make to only execute
1763 # the first set of double-colon rules, so remove it if not needed.
1764 # If there is a colon in the path, we need to keep it.
1765 if test "x$srcdir" = x.; then
1766   ac_vpsub='/^[     ]*VPATH[    ]*=[^:]*$/d'
1767 fi
1768 
1769 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1770 
1771 DEFS=-DHAVE_CONFIG_H
1772 
1773 # Without the "./", some shells look in PATH for config.status.
1774 : ${CONFIG_STATUS=./config.status}
1775 
1776 echo creating $CONFIG_STATUS
1777 rm -f $CONFIG_STATUS
1778 cat > $CONFIG_STATUS <<EOF
1779 #! /bin/sh
1780 # Generated automatically by configure.
1781 # Run this file to recreate the current configuration.
1782 # This directory was configured as follows,
1783 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1784 #
1785 # $0 $ac_configure_args
1786 #
1787 # Compiler output produced by configure, useful for debugging
1788 # configure, is in ./config.log if it exists.
1789 
1790 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1791 for ac_option
1792 do
1793   case "\$ac_option" in
1794   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1795     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1796     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1797   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1798     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1799     exit 0 ;;
1800   -help | --help | --hel | --he | --h)
1801     echo "\$ac_cs_usage"; exit 0 ;;
1802   *) echo "\$ac_cs_usage"; exit 1 ;;
1803   esac
1804 done
1805 
1806 ac_given_srcdir=$srcdir
1807 
1808 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1809 EOF
1810 cat >> $CONFIG_STATUS <<EOF
1811 
1812 # Protect against being on the right side of a sed subst in config.status.
1813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1814  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1815 $ac_vpsub
1816 $extrasub
1817 s%@SHELL@%$SHELL%g
1818 s%@CFLAGS@%$CFLAGS%g
1819 s%@CPPFLAGS@%$CPPFLAGS%g
1820 s%@CXXFLAGS@%$CXXFLAGS%g
1821 s%@FFLAGS@%$FFLAGS%g
1822 s%@DEFS@%$DEFS%g
1823 s%@LDFLAGS@%$LDFLAGS%g
1824 s%@LIBS@%$LIBS%g
1825 s%@exec_prefix@%$exec_prefix%g
1826 s%@prefix@%$prefix%g
1827 s%@program_transform_name@%$program_transform_name%g
1828 s%@bindir@%$bindir%g
1829 s%@sbindir@%$sbindir%g
1830 s%@libexecdir@%$libexecdir%g
1831 s%@datadir@%$datadir%g
1832 s%@sysconfdir@%$sysconfdir%g
1833 s%@sharedstatedir@%$sharedstatedir%g
1834 s%@localstatedir@%$localstatedir%g
1835 s%@libdir@%$libdir%g
1836 s%@includedir@%$includedir%g
1837 s%@oldincludedir@%$oldincludedir%g
1838 s%@infodir@%$infodir%g
1839 s%@mandir@%$mandir%g
1840 s%@CC@%$CC%g
1841 s%@LN_S@%$LN_S%g
1842 s%@CPP@%$CPP%g
1843 s%@LIBOBJS@%$LIBOBJS%g
1844 
1845 CEOF
1846 EOF
1847 
1848 cat >> $CONFIG_STATUS <<\EOF
1849 
1850 # Split the substitutions into bite-sized pieces for seds with
1851 # small command number limits, like on Digital OSF/1 and HP-UX.
1852 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1853 ac_file=1 # Number of current file.
1854 ac_beg=1 # First line for current file.
1855 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1856 ac_more_lines=:
1857 ac_sed_cmds=""
1858 while $ac_more_lines; do
1859   if test $ac_beg -gt 1; then
1860     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1861   else
1862     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1863   fi
1864   if test ! -s conftest.s$ac_file; then
1865     ac_more_lines=false
1866     rm -f conftest.s$ac_file
1867   else
1868     if test -z "$ac_sed_cmds"; then
1869       ac_sed_cmds="sed -f conftest.s$ac_file"
1870     else
1871       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1872     fi
1873     ac_file=`expr $ac_file + 1`
1874     ac_beg=$ac_end
1875     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1876   fi
1877 done
1878 if test -z "$ac_sed_cmds"; then
1879   ac_sed_cmds=cat
1880 fi
1881 EOF
1882 
1883 cat >> $CONFIG_STATUS <<EOF
1884 
1885 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1886 EOF
1887 cat >> $CONFIG_STATUS <<\EOF
1888 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1889   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1890   case "$ac_file" in
1891   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1892        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1893   *) ac_file_in="${ac_file}.in" ;;
1894   esac
1895 
1896   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1897 
1898   # Remove last slash and all that follows it.  Not all systems have dirname.
1899   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1900   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1901     # The file is in a subdirectory.
1902     test ! -d "$ac_dir" && mkdir "$ac_dir"
1903     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1904     # A "../" for each directory in $ac_dir_suffix.
1905     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1906   else
1907     ac_dir_suffix= ac_dots=
1908   fi
1909 
1910   case "$ac_given_srcdir" in
1911   .)  srcdir=.
1912       if test -z "$ac_dots"; then top_srcdir=.
1913       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1914   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1915   *) # Relative path.
1916     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1917     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1918   esac
1919 
1920 
1921   echo creating "$ac_file"
1922   rm -f "$ac_file"
1923   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1924   case "$ac_file" in
1925   *Makefile*) ac_comsub="1i\\
1926 # $configure_input" ;;
1927   *) ac_comsub= ;;
1928   esac
1929 
1930   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1931   sed -e "$ac_comsub
1932 s%@configure_input@%$configure_input%g
1933 s%@srcdir@%$srcdir%g
1934 s%@top_srcdir@%$top_srcdir%g
1935 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1936 fi; done
1937 rm -f conftest.s*
1938 
1939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1941 #
1942 # ac_d sets the value in "#define NAME VALUE" lines.
1943 ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
1944 ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
1945 ac_dC='\3'
1946 ac_dD='%g'
1947 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1948 ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
1949 ac_uB='\([  ]\)%\1#\2define\3'
1950 ac_uC=' '
1951 ac_uD='\4%g'
1952 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1953 ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
1954 ac_eB='$%\1#\2define\3'
1955 ac_eC=' '
1956 ac_eD='%g'
1957 
1958 if test "${CONFIG_HEADERS+set}" != set; then
1959 EOF
1960 cat >> $CONFIG_STATUS <<EOF
1961   CONFIG_HEADERS="config.h"
1962 EOF
1963 cat >> $CONFIG_STATUS <<\EOF
1964 fi
1965 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1966   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1967   case "$ac_file" in
1968   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1969        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1970   *) ac_file_in="${ac_file}.in" ;;
1971   esac
1972 
1973   echo creating $ac_file
1974 
1975   rm -f conftest.frag conftest.in conftest.out
1976   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1977   cat $ac_file_inputs > conftest.in
1978 
1979 EOF
1980 
1981 # Transform confdefs.h into a sed script conftest.vals that substitutes
1982 # the proper values into config.h.in to produce config.h.  And first:
1983 # Protect against being on the right side of a sed subst in config.status.
1984 # Protect against being in an unquoted here document in config.status.
1985 rm -f conftest.vals
1986 cat > conftest.hdr <<\EOF
1987 s/[\\&%]/\\&/g
1988 s%[\\$`]%\\&%g
1989 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1990 s%ac_d%ac_u%gp
1991 s%ac_u%ac_e%gp
1992 EOF
1993 sed -n -f conftest.hdr confdefs.h > conftest.vals
1994 rm -f conftest.hdr
1995 
1996 # This sed command replaces #undef with comments.  This is necessary, for
1997 # example, in the case of _POSIX_SOURCE, which is predefined and required
1998 # on some systems where configure will not decide to define it.
1999 cat >> conftest.vals <<\EOF
2000 s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2001 EOF
2002 
2003 # Break up conftest.vals because some shells have a limit on
2004 # the size of here documents, and old seds have small limits too.
2005 
2006 rm -f conftest.tail
2007 while :
2008 do
2009   ac_lines=`grep -c . conftest.vals`
2010   # grep -c gives empty output for an empty file on some AIX systems.
2011   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2012   # Write a limited-size here document to conftest.frag.
2013   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2014   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2015   echo 'CEOF
2016   sed -f conftest.frag conftest.in > conftest.out
2017   rm -f conftest.in
2018   mv conftest.out conftest.in
2019 ' >> $CONFIG_STATUS
2020   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2021   rm -f conftest.vals
2022   mv conftest.tail conftest.vals
2023 done
2024 rm -f conftest.vals
2025 
2026 cat >> $CONFIG_STATUS <<\EOF
2027   rm -f conftest.frag conftest.h
2028   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2029   cat conftest.in >> conftest.h
2030   rm -f conftest.in
2031   if cmp -s $ac_file conftest.h 2>/dev/null; then
2032     echo "$ac_file is unchanged"
2033     rm -f conftest.h
2034   else
2035     # Remove last slash and all that follows it.  Not all systems have dirname.
2036       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2037       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2038       # The file is in a subdirectory.
2039       test ! -d "$ac_dir" && mkdir "$ac_dir"
2040     fi
2041     rm -f $ac_file
2042     mv conftest.h $ac_file
2043   fi
2044 fi; done
2045 
2046 EOF
2047 cat >> $CONFIG_STATUS <<EOF
2048 
2049 EOF
2050 cat >> $CONFIG_STATUS <<\EOF
2051 
2052 exit 0
2053 EOF
2054 chmod +x $CONFIG_STATUS
2055 rm -fr confdefs* $ac_clean_files
2056 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5747675 [rkeene@sledge /home/rkeene/devel/libopennet-0.8.1]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2001-08-24 11:36:58