home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / crh / freebsd / rootkit / sniffit.0.3.5 / configure < prev    next >
Encoding:
Text File  |  2002-05-27  |  50.3 KB  |  1,675 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  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. # Maximum number of lines to put in a shell here document.
  53. ac_max_here_lines=12
  54.  
  55. ac_prev=
  56. for ac_option
  57. do
  58.  
  59.   # If the previous option needs an argument, assign it.
  60.   if test -n "$ac_prev"; then
  61.     eval "$ac_prev=\$ac_option"
  62.     ac_prev=
  63.     continue
  64.   fi
  65.  
  66.   case "$ac_option" in
  67.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68.   *) ac_optarg= ;;
  69.   esac
  70.  
  71.   # Accept the important Cygnus configure options, so we can diagnose typos.
  72.  
  73.   case "$ac_option" in
  74.  
  75.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  76.     ac_prev=bindir ;;
  77.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  78.     bindir="$ac_optarg" ;;
  79.  
  80.   -build | --build | --buil | --bui | --bu)
  81.     ac_prev=build ;;
  82.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  83.     build="$ac_optarg" ;;
  84.  
  85.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  86.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  87.     ac_prev=cache_file ;;
  88.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  89.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  90.     cache_file="$ac_optarg" ;;
  91.  
  92.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  93.     ac_prev=datadir ;;
  94.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  95.   | --da=*)
  96.     datadir="$ac_optarg" ;;
  97.  
  98.   -disable-* | --disable-*)
  99.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  100.     # Reject names that are not valid shell variable names.
  101.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  102.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103.     fi
  104.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105.     eval "enable_${ac_feature}=no" ;;
  106.  
  107.   -enable-* | --enable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     case "$ac_option" in
  115.       *=*) ;;
  116.       *) ac_optarg=yes ;;
  117.     esac
  118.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  119.  
  120.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  121.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  122.   | --exec | --exe | --ex)
  123.     ac_prev=exec_prefix ;;
  124.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  125.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  126.   | --exec=* | --exe=* | --ex=*)
  127.     exec_prefix="$ac_optarg" ;;
  128.  
  129.   -gas | --gas | --ga | --g)
  130.     # Obsolete; use --with-gas.
  131.     with_gas=yes ;;
  132.  
  133.   -help | --help | --hel | --he)
  134.     # Omit some internal or obsolete options to make the list less imposing.
  135.     # This message is too long to be a string in the A/UX 3.1 sh.
  136.     cat << EOF
  137. Usage: configure [options] [host]
  138. Options: [defaults in brackets after descriptions]
  139. Configuration:
  140.   --cache-file=FILE       cache test results in FILE
  141.   --help                  print this message
  142.   --no-create             do not create output files
  143.   --quiet, --silent       do not print \`checking...' messages
  144.   --version               print the version of autoconf that created configure
  145. Directory and file names:
  146.   --prefix=PREFIX         install architecture-independent files in PREFIX
  147.                           [$ac_default_prefix]
  148.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  149.                           [same as prefix]
  150.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  151.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  152.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  153.   --datadir=DIR           read-only architecture-independent data in DIR
  154.                           [PREFIX/share]
  155.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  156.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  157.                           [PREFIX/com]
  158.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  159.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  160.   --includedir=DIR        C header files in DIR [PREFIX/include]
  161.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  162.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  163.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  164.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  165.   --program-prefix=PREFIX prepend PREFIX to installed program names
  166.   --program-suffix=SUFFIX append SUFFIX to installed program names
  167.   --program-transform-name=PROGRAM
  168.                           run sed PROGRAM on installed program names
  169. EOF
  170.     cat << EOF
  171. Host type:
  172.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  173.   --host=HOST             configure for HOST [guessed]
  174.   --target=TARGET         configure for TARGET [TARGET=HOST]
  175. Features and packages:
  176.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  177.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  178.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  179.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  180.   --x-includes=DIR        X include files are in DIR
  181.   --x-libraries=DIR       X library files are in DIR
  182. EOF
  183.     if test -n "$ac_help"; then
  184.       echo "--enable and --with options recognized:$ac_help"
  185.     fi
  186.     exit 0 ;;
  187.  
  188.   -host | --host | --hos | --ho)
  189.     ac_prev=host ;;
  190.   -host=* | --host=* | --hos=* | --ho=*)
  191.     host="$ac_optarg" ;;
  192.  
  193.   -includedir | --includedir | --includedi | --included | --include \
  194.   | --includ | --inclu | --incl | --inc)
  195.     ac_prev=includedir ;;
  196.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  197.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  198.     includedir="$ac_optarg" ;;
  199.  
  200.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  201.     ac_prev=infodir ;;
  202.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  203.     infodir="$ac_optarg" ;;
  204.  
  205.   -libdir | --libdir | --libdi | --libd)
  206.     ac_prev=libdir ;;
  207.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  208.     libdir="$ac_optarg" ;;
  209.  
  210.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  211.   | --libexe | --libex | --libe)
  212.     ac_prev=libexecdir ;;
  213.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  214.   | --libexe=* | --libex=* | --libe=*)
  215.     libexecdir="$ac_optarg" ;;
  216.  
  217.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  218.   | --localstate | --localstat | --localsta | --localst \
  219.   | --locals | --local | --loca | --loc | --lo)
  220.     ac_prev=localstatedir ;;
  221.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  222.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  223.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  224.     localstatedir="$ac_optarg" ;;
  225.  
  226.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  227.     ac_prev=mandir ;;
  228.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  229.     mandir="$ac_optarg" ;;
  230.  
  231.   -nfp | --nfp | --nf)
  232.     # Obsolete; use --without-fp.
  233.     with_fp=no ;;
  234.  
  235.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  236.   | --no-cr | --no-c)
  237.     no_create=yes ;;
  238.  
  239.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  240.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  241.     no_recursion=yes ;;
  242.  
  243.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  244.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  245.   | --oldin | --oldi | --old | --ol | --o)
  246.     ac_prev=oldincludedir ;;
  247.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  248.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  249.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  250.     oldincludedir="$ac_optarg" ;;
  251.  
  252.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  253.     ac_prev=prefix ;;
  254.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  255.     prefix="$ac_optarg" ;;
  256.  
  257.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  258.   | --program-pre | --program-pr | --program-p)
  259.     ac_prev=program_prefix ;;
  260.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  261.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  262.     program_prefix="$ac_optarg" ;;
  263.  
  264.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  265.   | --program-suf | --program-su | --program-s)
  266.     ac_prev=program_suffix ;;
  267.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  268.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  269.     program_suffix="$ac_optarg" ;;
  270.  
  271.   -program-transform-name | --program-transform-name \
  272.   | --program-transform-nam | --program-transform-na \
  273.   | --program-transform-n | --program-transform- \
  274.   | --program-transform | --program-transfor \
  275.   | --program-transfo | --program-transf \
  276.   | --program-trans | --program-tran \
  277.   | --progr-tra | --program-tr | --program-t)
  278.     ac_prev=program_transform_name ;;
  279.   -program-transform-name=* | --program-transform-name=* \
  280.   | --program-transform-nam=* | --program-transform-na=* \
  281.   | --program-transform-n=* | --program-transform-=* \
  282.   | --program-transform=* | --program-transfor=* \
  283.   | --program-transfo=* | --program-transf=* \
  284.   | --program-trans=* | --program-tran=* \
  285.   | --progr-tra=* | --program-tr=* | --program-t=*)
  286.     program_transform_name="$ac_optarg" ;;
  287.  
  288.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  289.   | -silent | --silent | --silen | --sile | --sil)
  290.     silent=yes ;;
  291.  
  292.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  293.     ac_prev=sbindir ;;
  294.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  295.   | --sbi=* | --sb=*)
  296.     sbindir="$ac_optarg" ;;
  297.  
  298.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  299.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  300.   | --sharedst | --shareds | --shared | --share | --shar \
  301.   | --sha | --sh)
  302.     ac_prev=sharedstatedir ;;
  303.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  304.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  305.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  306.   | --sha=* | --sh=*)
  307.     sharedstatedir="$ac_optarg" ;;
  308.  
  309.   -site | --site | --sit)
  310.     ac_prev=site ;;
  311.   -site=* | --site=* | --sit=*)
  312.     site="$ac_optarg" ;;
  313.  
  314.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  315.     ac_prev=srcdir ;;
  316.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  317.     srcdir="$ac_optarg" ;;
  318.  
  319.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  320.   | --syscon | --sysco | --sysc | --sys | --sy)
  321.     ac_prev=sysconfdir ;;
  322.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  323.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  324.     sysconfdir="$ac_optarg" ;;
  325.  
  326.   -target | --target | --targe | --targ | --tar | --ta | --t)
  327.     ac_prev=target ;;
  328.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  329.     target="$ac_optarg" ;;
  330.  
  331.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  332.     verbose=yes ;;
  333.  
  334.   -version | --version | --versio | --versi | --vers)
  335.     echo "configure generated by autoconf version 2.12"
  336.     exit 0 ;;
  337.  
  338.   -with-* | --with-*)
  339.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  340.     # Reject names that are not valid shell variable names.
  341.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  342.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  343.     fi
  344.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  345.     case "$ac_option" in
  346.       *=*) ;;
  347.       *) ac_optarg=yes ;;
  348.     esac
  349.     eval "with_${ac_package}='$ac_optarg'" ;;
  350.  
  351.   -without-* | --without-*)
  352.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  353.     # Reject names that are not valid shell variable names.
  354.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  355.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  356.     fi
  357.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  358.     eval "with_${ac_package}=no" ;;
  359.  
  360.   --x)
  361.     # Obsolete; use --with-x.
  362.     with_x=yes ;;
  363.  
  364.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  365.   | --x-incl | --x-inc | --x-in | --x-i)
  366.     ac_prev=x_includes ;;
  367.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  368.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  369.     x_includes="$ac_optarg" ;;
  370.  
  371.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  372.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  373.     ac_prev=x_libraries ;;
  374.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  375.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  376.     x_libraries="$ac_optarg" ;;
  377.  
  378.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  379.     ;;
  380.  
  381.   *)
  382.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  383.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  384.     fi
  385.     if test "x$nonopt" != xNONE; then
  386.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  387.     fi
  388.     nonopt="$ac_option"
  389.     ;;
  390.  
  391.   esac
  392. done
  393.  
  394. if test -n "$ac_prev"; then
  395.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  396. fi
  397.  
  398. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  399.  
  400. # File descriptor usage:
  401. # 0 standard input
  402. # 1 file creation
  403. # 2 errors and warnings
  404. # 3 some systems may open it to /dev/tty
  405. # 4 used on the Kubota Titan
  406. # 6 checking for... messages and results
  407. # 5 compiler messages saved in config.log
  408. if test "$silent" = yes; then
  409.   exec 6>/dev/null
  410. else
  411.   exec 6>&1
  412. fi
  413. exec 5>./config.log
  414.  
  415. echo "\
  416. This file contains any messages produced by compilers while
  417. running configure, to aid debugging if configure makes a mistake.
  418. " 1>&5
  419.  
  420. # Strip out --no-create and --no-recursion so they do not pile up.
  421. # Also quote any args containing shell metacharacters.
  422. ac_configure_args=
  423. for ac_arg
  424. do
  425.   case "$ac_arg" in
  426.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427.   | --no-cr | --no-c) ;;
  428.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  430.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  431.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  432.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  433.   esac
  434. done
  435.  
  436. # NLS nuisances.
  437. # Only set these to C if already set.  These must not be set unconditionally
  438. # because not all systems understand e.g. LANG=C (notably SCO).
  439. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  440. # Non-C LC_CTYPE values break the ctype check.
  441. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  442. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  443. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  444. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  445.  
  446. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  447. rm -rf conftest* confdefs.h
  448. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  449. echo > confdefs.h
  450.  
  451. # A filename unique to this package, relative to the directory that
  452. # configure is in, which we can look for to find out if srcdir is correct.
  453. ac_unique_file=sniffit.h
  454.  
  455. # Find the source files, if location was not specified.
  456. if test -z "$srcdir"; then
  457.   ac_srcdir_defaulted=yes
  458.   # Try the directory containing this script, then its parent.
  459.   ac_prog=$0
  460.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  461.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  462.   srcdir=$ac_confdir
  463.   if test ! -r $srcdir/$ac_unique_file; then
  464.     srcdir=..
  465.   fi
  466. else
  467.   ac_srcdir_defaulted=no
  468. fi
  469. if test ! -r $srcdir/$ac_unique_file; then
  470.   if test "$ac_srcdir_defaulted" = yes; then
  471.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  472.   else
  473.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  474.   fi
  475. fi
  476. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  477.  
  478. # Prefer explicitly selected file to automatically selected ones.
  479. if test -z "$CONFIG_SITE"; then
  480.   if test "x$prefix" != xNONE; then
  481.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  482.   else
  483.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  484.   fi
  485. fi
  486. for ac_site_file in $CONFIG_SITE; do
  487.   if test -r "$ac_site_file"; then
  488.     echo "loading site script $ac_site_file"
  489.     . "$ac_site_file"
  490.   fi
  491. done
  492.  
  493. if test -r "$cache_file"; then
  494.   echo "loading cache $cache_file"
  495.   . $cache_file
  496. else
  497.   echo "creating cache $cache_file"
  498.   > $cache_file
  499. fi
  500.  
  501. ac_ext=c
  502. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  503. ac_cpp='$CPP $CPPFLAGS'
  504. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  505. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  506. cross_compiling=$ac_cv_prog_cc_cross
  507.  
  508. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  509.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  510.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  511.     ac_n= ac_c='
  512. ' ac_t='    '
  513.   else
  514.     ac_n=-n ac_c= ac_t=
  515.   fi
  516. else
  517.   ac_n= ac_c='\c' ac_t=
  518. fi
  519.  
  520.  
  521.  
  522. ac_aux_dir=
  523. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  524.   if test -f $ac_dir/install-sh; then
  525.     ac_aux_dir=$ac_dir
  526.     ac_install_sh="$ac_aux_dir/install-sh -c"
  527.     break
  528.   elif test -f $ac_dir/install.sh; then
  529.     ac_aux_dir=$ac_dir
  530.     ac_install_sh="$ac_aux_dir/install.sh -c"
  531.     break
  532.   fi
  533. done
  534. if test -z "$ac_aux_dir"; then
  535.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  536. fi
  537. ac_config_guess=$ac_aux_dir/config.guess
  538. ac_config_sub=$ac_aux_dir/config.sub
  539. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  540.  
  541. subdirs="libpcap-0.3"
  542.  
  543.  
  544. # Extract the first word of "gcc", so it can be a program name with args.
  545. set dummy gcc; ac_word=$2
  546. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  547. echo "configure:548: checking for $ac_word" >&5
  548. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  549.   echo $ac_n "(cached) $ac_c" 1>&6
  550. else
  551.   if test -n "$CC"; then
  552.   ac_cv_prog_CC="$CC" # Let the user override the test.
  553. else
  554.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  555.   for ac_dir in $PATH; do
  556.     test -z "$ac_dir" && ac_dir=.
  557.     if test -f $ac_dir/$ac_word; then
  558.       ac_cv_prog_CC="gcc"
  559.       break
  560.     fi
  561.   done
  562.   IFS="$ac_save_ifs"
  563. fi
  564. fi
  565. CC="$ac_cv_prog_CC"
  566. if test -n "$CC"; then
  567.   echo "$ac_t""$CC" 1>&6
  568. else
  569.   echo "$ac_t""no" 1>&6
  570. fi
  571.  
  572. if test -z "$CC"; then
  573.   # Extract the first word of "cc", so it can be a program name with args.
  574. set dummy cc; ac_word=$2
  575. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  576. echo "configure:577: checking for $ac_word" >&5
  577. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  578.   echo $ac_n "(cached) $ac_c" 1>&6
  579. else
  580.   if test -n "$CC"; then
  581.   ac_cv_prog_CC="$CC" # Let the user override the test.
  582. else
  583.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  584.   ac_prog_rejected=no
  585.   for ac_dir in $PATH; do
  586.     test -z "$ac_dir" && ac_dir=.
  587.     if test -f $ac_dir/$ac_word; then
  588.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  589.         ac_prog_rejected=yes
  590.     continue
  591.       fi
  592.       ac_cv_prog_CC="cc"
  593.       break
  594.     fi
  595.   done
  596.   IFS="$ac_save_ifs"
  597. if test $ac_prog_rejected = yes; then
  598.   # We found a bogon in the path, so make sure we never use it.
  599.   set dummy $ac_cv_prog_CC
  600.   shift
  601.   if test $# -gt 0; then
  602.     # We chose a different compiler from the bogus one.
  603.     # However, it has the same basename, so the bogon will be chosen
  604.     # first if we set CC to just the basename; use the full file name.
  605.     shift
  606.     set dummy "$ac_dir/$ac_word" "$@"
  607.     shift
  608.     ac_cv_prog_CC="$@"
  609.   fi
  610. fi
  611. fi
  612. fi
  613. CC="$ac_cv_prog_CC"
  614. if test -n "$CC"; then
  615.   echo "$ac_t""$CC" 1>&6
  616. else
  617.   echo "$ac_t""no" 1>&6
  618. fi
  619.  
  620.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  621. fi
  622.  
  623. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  624. echo "configure:625: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  625.  
  626. ac_ext=c
  627. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  628. ac_cpp='$CPP $CPPFLAGS'
  629. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  630. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  631. cross_compiling=$ac_cv_prog_cc_cross
  632.  
  633. cat > conftest.$ac_ext <<EOF
  634. #line 635 "configure"
  635. #include "confdefs.h"
  636. main(){return(0);}
  637. EOF
  638. if { (eval echo configure:639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  639.   ac_cv_prog_cc_works=yes
  640.   # If we can't run a trivial program, we are probably using a cross compiler.
  641.   if (./conftest; exit) 2>/dev/null; then
  642.     ac_cv_prog_cc_cross=no
  643.   else
  644.     ac_cv_prog_cc_cross=yes
  645.   fi
  646. else
  647.   echo "configure: failed program was:" >&5
  648.   cat conftest.$ac_ext >&5
  649.   ac_cv_prog_cc_works=no
  650. fi
  651. rm -fr conftest*
  652.  
  653. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  654. if test $ac_cv_prog_cc_works = no; then
  655.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  656. fi
  657. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  658. echo "configure:659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  659. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  660. cross_compiling=$ac_cv_prog_cc_cross
  661.  
  662. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  663. echo "configure:664: checking whether we are using GNU C" >&5
  664. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  665.   echo $ac_n "(cached) $ac_c" 1>&6
  666. else
  667.   cat > conftest.c <<EOF
  668. #ifdef __GNUC__
  669.   yes;
  670. #endif
  671. EOF
  672. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  673.   ac_cv_prog_gcc=yes
  674. else
  675.   ac_cv_prog_gcc=no
  676. fi
  677. fi
  678.  
  679. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  680.  
  681. if test $ac_cv_prog_gcc = yes; then
  682.   GCC=yes
  683.   ac_test_CFLAGS="${CFLAGS+set}"
  684.   ac_save_CFLAGS="$CFLAGS"
  685.   CFLAGS=
  686.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  687. echo "configure:688: checking whether ${CC-cc} accepts -g" >&5
  688. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  689.   echo $ac_n "(cached) $ac_c" 1>&6
  690. else
  691.   echo 'void f(){}' > conftest.c
  692. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  693.   ac_cv_prog_cc_g=yes
  694. else
  695.   ac_cv_prog_cc_g=no
  696. fi
  697. rm -f conftest*
  698.  
  699. fi
  700.  
  701. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  702.   if test "$ac_test_CFLAGS" = set; then
  703.     CFLAGS="$ac_save_CFLAGS"
  704.   elif test $ac_cv_prog_cc_g = yes; then
  705.     CFLAGS="-g -O2"
  706.   else
  707.     CFLAGS="-O2"
  708.   fi
  709. else
  710.   GCC=
  711.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  712. fi
  713.  
  714.  
  715. NCURSES_PATH=/usr/include:/usr/include/ncurses:/usr/include/curses:/usr/local/include:/usr/local/include/ncurses:/usr/local/include/curses
  716. echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
  717. echo "configure:718: checking for main in -lncurses" >&5
  718. ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
  719. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  720.   echo $ac_n "(cached) $ac_c" 1>&6
  721. else
  722.   ac_save_LIBS="$LIBS"
  723. LIBS="-lncurses  $LIBS"
  724. cat > conftest.$ac_ext <<EOF
  725. #line 726 "configure"
  726. #include "confdefs.h"
  727.  
  728. int main() {
  729. main()
  730. ; return 0; }
  731. EOF
  732. if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  733.   rm -rf conftest*
  734.   eval "ac_cv_lib_$ac_lib_var=yes"
  735. else
  736.   echo "configure: failed program was:" >&5
  737.   cat conftest.$ac_ext >&5
  738.   rm -rf conftest*
  739.   eval "ac_cv_lib_$ac_lib_var=no"
  740. fi
  741. rm -f conftest*
  742. LIBS="$ac_save_LIBS"
  743.  
  744. fi
  745. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  746.   echo "$ac_t""yes" 1>&6
  747.     ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  748.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  749.   cat >> confdefs.h <<EOF
  750. #define $ac_tr_lib 1
  751. EOF
  752.  
  753.   LIBS="-lncurses $LIBS"
  754.  
  755. else
  756.   echo "$ac_t""no" 1>&6
  757. fi
  758.  
  759.  
  760. for ac_prog in ncurses.h
  761. do
  762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  763. set dummy $ac_prog; ac_word=$2
  764. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  765. echo "configure:766: checking for $ac_word" >&5
  766. if eval "test \"`echo '$''{'ac_cv_path_NCURSES_LOCATION'+set}'`\" = set"; then
  767.   echo $ac_n "(cached) $ac_c" 1>&6
  768. else
  769.   case "$NCURSES_LOCATION" in
  770.   /*)
  771.   ac_cv_path_NCURSES_LOCATION="$NCURSES_LOCATION" # Let the user override the test with a path.
  772.   ;;
  773.   *)
  774.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  775.   for ac_dir in $NCURSES_PATH$ac_dummy; do
  776.     test -z "$ac_dir" && ac_dir=.
  777.     if test -f $ac_dir/$ac_word; then
  778.       ac_cv_path_NCURSES_LOCATION="$ac_dir/$ac_word"
  779.       break
  780.     fi
  781.   done
  782.   IFS="$ac_save_ifs"
  783.   ;;
  784. esac
  785. fi
  786. NCURSES_LOCATION="$ac_cv_path_NCURSES_LOCATION"
  787. if test -n "$NCURSES_LOCATION"; then
  788.   echo "$ac_t""$NCURSES_LOCATION" 1>&6
  789. else
  790.   echo "$ac_t""no" 1>&6
  791. fi
  792.  
  793. test -n "$NCURSES_LOCATION" && break
  794. done
  795. test -n "$NCURSES_LOCATION" || NCURSES_LOCATION="no"
  796.  
  797. if test "$NCURSES_LOCATION" != no; then
  798.     echo "#include \"$NCURSES_LOCATION\"" >sn_curses.h
  799.     cat >> confdefs.h <<\EOF
  800. #define HAVE_NCURSES_H 1
  801. EOF
  802.  
  803. fi
  804.  
  805. for ac_func in shmget
  806. do
  807. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  808. echo "configure:809: checking for $ac_func" >&5
  809. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  810.   echo $ac_n "(cached) $ac_c" 1>&6
  811. else
  812.   cat > conftest.$ac_ext <<EOF
  813. #line 814 "configure"
  814. #include "confdefs.h"
  815. /* System header to define __stub macros and hopefully few prototypes,
  816.     which can conflict with char $ac_func(); below.  */
  817. #include <assert.h>
  818. /* Override any gcc2 internal prototype to avoid an error.  */
  819. /* We use char because int might match the return type of a gcc2
  820.     builtin and then its argument prototype would still apply.  */
  821. char $ac_func();
  822.  
  823. int main() {
  824.  
  825. /* The GNU C library defines this for functions which it implements
  826.     to always fail with ENOSYS.  Some functions are actually named
  827.     something starting with __ and the normal name is an alias.  */
  828. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  829. choke me
  830. #else
  831. $ac_func();
  832. #endif
  833.  
  834. ; return 0; }
  835. EOF
  836. if { (eval echo configure:837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  837.   rm -rf conftest*
  838.   eval "ac_cv_func_$ac_func=yes"
  839. else
  840.   echo "configure: failed program was:" >&5
  841.   cat conftest.$ac_ext >&5
  842.   rm -rf conftest*
  843.   eval "ac_cv_func_$ac_func=no"
  844. fi
  845. rm -f conftest*
  846. fi
  847.  
  848. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  849.   echo "$ac_t""yes" 1>&6
  850.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  851.   cat >> confdefs.h <<EOF
  852. #define $ac_tr_func 1
  853. EOF
  854.  
  855. else
  856.   echo "$ac_t""no" 1>&6
  857. fi
  858. done
  859.  
  860.  
  861. for ac_func in atexit
  862. do
  863. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  864. echo "configure:865: checking for $ac_func" >&5
  865. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  866.   echo $ac_n "(cached) $ac_c" 1>&6
  867. else
  868.   cat > conftest.$ac_ext <<EOF
  869. #line 870 "configure"
  870. #include "confdefs.h"
  871. /* System header to define __stub macros and hopefully few prototypes,
  872.     which can conflict with char $ac_func(); below.  */
  873. #include <assert.h>
  874. /* Override any gcc2 internal prototype to avoid an error.  */
  875. /* We use char because int might match the return type of a gcc2
  876.     builtin and then its argument prototype would still apply.  */
  877. char $ac_func();
  878.  
  879. int main() {
  880.  
  881. /* The GNU C library defines this for functions which it implements
  882.     to always fail with ENOSYS.  Some functions are actually named
  883.     something starting with __ and the normal name is an alias.  */
  884. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  885. choke me
  886. #else
  887. $ac_func();
  888. #endif
  889.  
  890. ; return 0; }
  891. EOF
  892. if { (eval echo configure:893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  893.   rm -rf conftest*
  894.   eval "ac_cv_func_$ac_func=yes"
  895. else
  896.   echo "configure: failed program was:" >&5
  897.   cat conftest.$ac_ext >&5
  898.   rm -rf conftest*
  899.   eval "ac_cv_func_$ac_func=no"
  900. fi
  901. rm -f conftest*
  902. fi
  903.  
  904. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  905.   echo "$ac_t""yes" 1>&6
  906.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  907.   cat >> confdefs.h <<EOF
  908. #define $ac_tr_func 1
  909. EOF
  910.  
  911. else
  912.   echo "$ac_t""no" 1>&6
  913. fi
  914. done
  915.  
  916.  
  917. echo $ac_n "checking size of unsigned short int""... $ac_c" 1>&6
  918. echo "configure:919: checking size of unsigned short int" >&5
  919. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short_int'+set}'`\" = set"; then
  920.   echo $ac_n "(cached) $ac_c" 1>&6
  921. else
  922.   if test "$cross_compiling" = yes; then
  923.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  924. else
  925.   cat > conftest.$ac_ext <<EOF
  926. #line 927 "configure"
  927. #include "confdefs.h"
  928. #include <stdio.h>
  929. main()
  930. {
  931.   FILE *f=fopen("conftestval", "w");
  932.   if (!f) exit(1);
  933.   fprintf(f, "%d\n", sizeof(unsigned short int));
  934.   exit(0);
  935. }
  936. EOF
  937. if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  938. then
  939.   ac_cv_sizeof_unsigned_short_int=`cat conftestval`
  940. else
  941.   echo "configure: failed program was:" >&5
  942.   cat conftest.$ac_ext >&5
  943.   rm -fr conftest*
  944.   ac_cv_sizeof_unsigned_short_int=0
  945. fi
  946. rm -fr conftest*
  947. fi
  948.  
  949. fi
  950. echo "$ac_t""$ac_cv_sizeof_unsigned_short_int" 1>&6
  951. cat >> confdefs.h <<EOF
  952. #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
  953. EOF
  954.  
  955.  
  956. if test $ac_cv_sizeof_unsigned_short_int -ne 2; then
  957.     echo "unisigned short is NOT 2 bytes... quiting"
  958.     exit
  959. fi
  960. echo $ac_n "checking size of unsigned long int""... $ac_c" 1>&6
  961. echo "configure:962: checking size of unsigned long int" >&5
  962. if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_int'+set}'`\" = set"; then
  963.   echo $ac_n "(cached) $ac_c" 1>&6
  964. else
  965.   if test "$cross_compiling" = yes; then
  966.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  967. else
  968.   cat > conftest.$ac_ext <<EOF
  969. #line 970 "configure"
  970. #include "confdefs.h"
  971. #include <stdio.h>
  972. main()
  973. {
  974.   FILE *f=fopen("conftestval", "w");
  975.   if (!f) exit(1);
  976.   fprintf(f, "%d\n", sizeof(unsigned long int));
  977.   exit(0);
  978. }
  979. EOF
  980. if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  981. then
  982.   ac_cv_sizeof_unsigned_long_int=`cat conftestval`
  983. else
  984.   echo "configure: failed program was:" >&5
  985.   cat conftest.$ac_ext >&5
  986.   rm -fr conftest*
  987.   ac_cv_sizeof_unsigned_long_int=0
  988. fi
  989. rm -fr conftest*
  990. fi
  991.  
  992. fi
  993. echo "$ac_t""$ac_cv_sizeof_unsigned_long_int" 1>&6
  994. cat >> confdefs.h <<EOF
  995. #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
  996. EOF
  997.  
  998.  
  999. if test $ac_cv_sizeof_unsigned_long_int -ne 4; then
  1000.     echo "unisigned short is NOT 4 bytes... quiting"
  1001.     exit
  1002. fi
  1003.  
  1004.  
  1005.  
  1006. # Do some error checking and defaulting for the host and target type.
  1007. # The inputs are:
  1008. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  1009. #
  1010. # The rules are:
  1011. # 1. You are not allowed to specify --host, --target, and nonopt at the
  1012. #    same time.
  1013. # 2. Host defaults to nonopt.
  1014. # 3. If nonopt is not specified, then host defaults to the current host,
  1015. #    as determined by config.guess.
  1016. # 4. Target and build default to nonopt.
  1017. # 5. If nonopt is not specified, then target and build default to host.
  1018.  
  1019. # The aliases save the names the user supplied, while $host etc.
  1020. # will get canonicalized.
  1021. case $host---$target---$nonopt in
  1022. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  1023. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  1024. esac
  1025.  
  1026.  
  1027. # Make sure we can run config.sub.
  1028. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1029. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1030. fi
  1031.  
  1032. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1033. echo "configure:1034: checking host system type" >&5
  1034.  
  1035. host_alias=$host
  1036. case "$host_alias" in
  1037. NONE)
  1038.   case $nonopt in
  1039.   NONE)
  1040.     if host_alias=`$ac_config_guess`; then :
  1041.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1042.     fi ;;
  1043.   *) host_alias=$nonopt ;;
  1044.   esac ;;
  1045. esac
  1046.  
  1047. host=`$ac_config_sub $host_alias`
  1048. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1049. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1050. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1051. echo "$ac_t""$host" 1>&6
  1052.  
  1053. echo $ac_n "checking target system type""... $ac_c" 1>&6
  1054. echo "configure:1055: checking target system type" >&5
  1055.  
  1056. target_alias=$target
  1057. case "$target_alias" in
  1058. NONE)
  1059.   case $nonopt in
  1060.   NONE) target_alias=$host_alias ;;
  1061.   *) target_alias=$nonopt ;;
  1062.   esac ;;
  1063. esac
  1064.  
  1065. target=`$ac_config_sub $target_alias`
  1066. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1067. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1068. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1069. echo "$ac_t""$target" 1>&6
  1070.  
  1071. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1072. echo "configure:1073: checking build system type" >&5
  1073.  
  1074. build_alias=$build
  1075. case "$build_alias" in
  1076. NONE)
  1077.   case $nonopt in
  1078.   NONE) build_alias=$host_alias ;;
  1079.   *) build_alias=$nonopt ;;
  1080.   esac ;;
  1081. esac
  1082.  
  1083. build=`$ac_config_sub $build_alias`
  1084. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1085. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1086. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1087. echo "$ac_t""$build" 1>&6
  1088.  
  1089. test "$host_alias" != "$target_alias" &&
  1090.   test "$program_prefix$program_suffix$program_transform_name" = \
  1091.     NONENONEs,x,x, &&
  1092.   program_prefix=${target_alias}-
  1093.  
  1094. case "$target_os" in
  1095. linux*)
  1096.     cat >> confdefs.h <<\EOF
  1097. #define LINUX 1
  1098. EOF
  1099.  
  1100.     OS_OPT=    
  1101.     
  1102.         ;;
  1103. sunos*)
  1104.     cat >> confdefs.h <<\EOF
  1105. #define SUNOS 1
  1106. EOF
  1107.  
  1108.     echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
  1109. echo "configure:1110: checking for main in -lsocket" >&5
  1110. ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
  1111. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1112.   echo $ac_n "(cached) $ac_c" 1>&6
  1113. else
  1114.   ac_save_LIBS="$LIBS"
  1115. LIBS="-lsocket  $LIBS"
  1116. cat > conftest.$ac_ext <<EOF
  1117. #line 1118 "configure"
  1118. #include "confdefs.h"
  1119.  
  1120. int main() {
  1121. main()
  1122. ; return 0; }
  1123. EOF
  1124. if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1125.   rm -rf conftest*
  1126.   eval "ac_cv_lib_$ac_lib_var=yes"
  1127. else
  1128.   echo "configure: failed program was:" >&5
  1129.   cat conftest.$ac_ext >&5
  1130.   rm -rf conftest*
  1131.   eval "ac_cv_lib_$ac_lib_var=no"
  1132. fi
  1133. rm -f conftest*
  1134. LIBS="$ac_save_LIBS"
  1135.  
  1136. fi
  1137. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1138.   echo "$ac_t""yes" 1>&6
  1139.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1140.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1141.   cat >> confdefs.h <<EOF
  1142. #define $ac_tr_lib 1
  1143. EOF
  1144.  
  1145.   LIBS="-lsocket $LIBS"
  1146.  
  1147. else
  1148.   echo "$ac_t""no" 1>&6
  1149. fi
  1150.  
  1151.     echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
  1152. echo "configure:1153: checking for main in -lnsl" >&5
  1153. ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
  1154. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1155.   echo $ac_n "(cached) $ac_c" 1>&6
  1156. else
  1157.   ac_save_LIBS="$LIBS"
  1158. LIBS="-lnsl  $LIBS"
  1159. cat > conftest.$ac_ext <<EOF
  1160. #line 1161 "configure"
  1161. #include "confdefs.h"
  1162.  
  1163. int main() {
  1164. main()
  1165. ; return 0; }
  1166. EOF
  1167. if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1168.   rm -rf conftest*
  1169.   eval "ac_cv_lib_$ac_lib_var=yes"
  1170. else
  1171.   echo "configure: failed program was:" >&5
  1172.   cat conftest.$ac_ext >&5
  1173.   rm -rf conftest*
  1174.   eval "ac_cv_lib_$ac_lib_var=no"
  1175. fi
  1176. rm -f conftest*
  1177. LIBS="$ac_save_LIBS"
  1178.  
  1179. fi
  1180. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1181.   echo "$ac_t""yes" 1>&6
  1182.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1183.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1184.   cat >> confdefs.h <<EOF
  1185. #define $ac_tr_lib 1
  1186. EOF
  1187.  
  1188.   LIBS="-lnsl $LIBS"
  1189.  
  1190. else
  1191.   echo "$ac_t""no" 1>&6
  1192. fi
  1193.  
  1194.     OS_OPT=
  1195.     
  1196.     ;;
  1197. solaris*)
  1198.     cat >> confdefs.h <<\EOF
  1199. #define SUNOS 1
  1200. EOF
  1201.  
  1202.     echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
  1203. echo "configure:1204: checking for main in -lsocket" >&5
  1204. ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
  1205. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1206.   echo $ac_n "(cached) $ac_c" 1>&6
  1207. else
  1208.   ac_save_LIBS="$LIBS"
  1209. LIBS="-lsocket  $LIBS"
  1210. cat > conftest.$ac_ext <<EOF
  1211. #line 1212 "configure"
  1212. #include "confdefs.h"
  1213.  
  1214. int main() {
  1215. main()
  1216. ; return 0; }
  1217. EOF
  1218. if { (eval echo configure:1219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1219.   rm -rf conftest*
  1220.   eval "ac_cv_lib_$ac_lib_var=yes"
  1221. else
  1222.   echo "configure: failed program was:" >&5
  1223.   cat conftest.$ac_ext >&5
  1224.   rm -rf conftest*
  1225.   eval "ac_cv_lib_$ac_lib_var=no"
  1226. fi
  1227. rm -f conftest*
  1228. LIBS="$ac_save_LIBS"
  1229.  
  1230. fi
  1231. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1232.   echo "$ac_t""yes" 1>&6
  1233.     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1234.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1235.   cat >> confdefs.h <<EOF
  1236. #define $ac_tr_lib 1
  1237. EOF
  1238.  
  1239.   LIBS="-lsocket $LIBS"
  1240.  
  1241. else
  1242.   echo "$ac_t""no" 1>&6
  1243. fi
  1244.  
  1245.     echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
  1246. echo "configure:1247: checking for main in -lnsl" >&5
  1247. ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
  1248. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1249.   echo $ac_n "(cached) $ac_c" 1>&6
  1250. else
  1251.   ac_save_LIBS="$LIBS"
  1252. LIBS="-lnsl  $LIBS"
  1253. cat > conftest.$ac_ext <<EOF
  1254. #line 1255 "configure"
  1255. #include "confdefs.h"
  1256.  
  1257. int main() {
  1258. main()
  1259. ; return 0; }
  1260. EOF
  1261. if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1262.   rm -rf conftest*
  1263.   eval "ac_cv_lib_$ac_lib_var=yes"
  1264. else
  1265.   echo "configure: failed program was:" >&5
  1266.   cat conftest.$ac_ext >&5
  1267.   rm -rf conftest*
  1268.   eval "ac_cv_lib_$ac_lib_var=no"
  1269. fi
  1270. rm -f conftest*
  1271. LIBS="$ac_save_LIBS"
  1272.  
  1273. fi
  1274. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1275.   echo "$ac_t""yes" 1>&6
  1276.     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1277.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1278.   cat >> confdefs.h <<EOF
  1279. #define $ac_tr_lib 1
  1280. EOF
  1281.  
  1282.   LIBS="-lnsl $LIBS"
  1283.  
  1284. else
  1285.   echo "$ac_t""no" 1>&6
  1286. fi
  1287.  
  1288.     OS_OPT=
  1289.     
  1290.         ;;
  1291. irix*)
  1292.     cat >> confdefs.h <<\EOF
  1293. #define IRIX 1
  1294. EOF
  1295.  
  1296.     OS_OPT=
  1297.     
  1298.         ;;
  1299. freebsd*)
  1300.     cat >> confdefs.h <<\EOF
  1301. #define FREEBSD 1
  1302. EOF
  1303.  
  1304.     OS_OPT=
  1305.     
  1306.         ;;
  1307. *)
  1308.     echo "NOT A SUPPORTED SYSTEM / OR SYSTEM NOT RECOGNISED"
  1309.     echo "Contact <Coder@reptile.rug.ac.be> if you feel it might be a bug."
  1310.     exit    
  1311.     ;;
  1312. esac                    
  1313.  
  1314. trap '' 1 2 15
  1315. cat > confcache <<\EOF
  1316. # This file is a shell script that caches the results of configure
  1317. # tests run on this system so they can be shared between configure
  1318. # scripts and configure runs.  It is not useful on other systems.
  1319. # If it contains results you don't want to keep, you may remove or edit it.
  1320. #
  1321. # By default, configure uses ./config.cache as the cache file,
  1322. # creating it if it does not exist already.  You can give configure
  1323. # the --cache-file=FILE option to use a different cache file; that is
  1324. # what configure does when it calls configure scripts in
  1325. # subdirectories, so they share the cache.
  1326. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1327. # config.status only pays attention to the cache file if you give it the
  1328. # --recheck option to rerun configure.
  1329. #
  1330. EOF
  1331. # The following way of writing the cache mishandles newlines in values,
  1332. # but we know of no workaround that is simple, portable, and efficient.
  1333. # So, don't put newlines in cache variables' values.
  1334. # Ultrix sh set writes to stderr and can't be redirected directly,
  1335. # and sets the high bit in the cache file unless we assign to the vars.
  1336. (set) 2>&1 |
  1337.   case `(ac_space=' '; set) 2>&1` in
  1338.   *ac_space=\ *)
  1339.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1340.     # turns \\\\ into \\, and sed turns \\ into \).
  1341.     sed -n \
  1342.       -e "s/'/'\\\\''/g" \
  1343.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1344.     ;;
  1345.   *)
  1346.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1347.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1348.     ;;
  1349.   esac >> confcache
  1350. if cmp -s $cache_file confcache; then
  1351.   :
  1352. else
  1353.   if test -w $cache_file; then
  1354.     echo "updating cache $cache_file"
  1355.     cat confcache > $cache_file
  1356.   else
  1357.     echo "not updating unwritable cache $cache_file"
  1358.   fi
  1359. fi
  1360. rm -f confcache
  1361.  
  1362. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1363.  
  1364. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1365. # Let make expand exec_prefix.
  1366. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1367.  
  1368. # Any assignment to VPATH causes Sun make to only execute
  1369. # the first set of double-colon rules, so remove it if not needed.
  1370. # If there is a colon in the path, we need to keep it.
  1371. if test "x$srcdir" = x.; then
  1372.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1373. fi
  1374.  
  1375. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1376.  
  1377. # Transform confdefs.h into DEFS.
  1378. # Protect against shell expansion while executing Makefile rules.
  1379. # Protect against Makefile macro expansion.
  1380. cat > conftest.defs <<\EOF
  1381. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1382. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1383. s%\[%\\&%g
  1384. s%\]%\\&%g
  1385. s%\$%$$%g
  1386. EOF
  1387. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1388. rm -f conftest.defs
  1389.  
  1390.  
  1391. # Without the "./", some shells look in PATH for config.status.
  1392. : ${CONFIG_STATUS=./config.status}
  1393.  
  1394. echo creating $CONFIG_STATUS
  1395. rm -f $CONFIG_STATUS
  1396. cat > $CONFIG_STATUS <<EOF
  1397. #! /bin/sh
  1398. # Generated automatically by configure.
  1399. # Run this file to recreate the current configuration.
  1400. # This directory was configured as follows,
  1401. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1402. #
  1403. # $0 $ac_configure_args
  1404. #
  1405. # Compiler output produced by configure, useful for debugging
  1406. # configure, is in ./config.log if it exists.
  1407.  
  1408. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1409. for ac_option
  1410. do
  1411.   case "\$ac_option" in
  1412.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1413.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1414.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1415.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1416.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1417.     exit 0 ;;
  1418.   -help | --help | --hel | --he | --h)
  1419.     echo "\$ac_cs_usage"; exit 0 ;;
  1420.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1421.   esac
  1422. done
  1423.  
  1424. ac_given_srcdir=$srcdir
  1425.  
  1426. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1427. EOF
  1428. cat >> $CONFIG_STATUS <<EOF
  1429.  
  1430. # Protect against being on the right side of a sed subst in config.status.
  1431. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1432.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1433. $ac_vpsub
  1434. $extrasub
  1435. s%@CFLAGS@%$CFLAGS%g
  1436. s%@CPPFLAGS@%$CPPFLAGS%g
  1437. s%@CXXFLAGS@%$CXXFLAGS%g
  1438. s%@DEFS@%$DEFS%g
  1439. s%@LDFLAGS@%$LDFLAGS%g
  1440. s%@LIBS@%$LIBS%g
  1441. s%@exec_prefix@%$exec_prefix%g
  1442. s%@prefix@%$prefix%g
  1443. s%@program_transform_name@%$program_transform_name%g
  1444. s%@bindir@%$bindir%g
  1445. s%@sbindir@%$sbindir%g
  1446. s%@libexecdir@%$libexecdir%g
  1447. s%@datadir@%$datadir%g
  1448. s%@sysconfdir@%$sysconfdir%g
  1449. s%@sharedstatedir@%$sharedstatedir%g
  1450. s%@localstatedir@%$localstatedir%g
  1451. s%@libdir@%$libdir%g
  1452. s%@includedir@%$includedir%g
  1453. s%@oldincludedir@%$oldincludedir%g
  1454. s%@infodir@%$infodir%g
  1455. s%@mandir@%$mandir%g
  1456. s%@subdirs@%$subdirs%g
  1457. s%@CC@%$CC%g
  1458. s%@NCURSES_LOCATION@%$NCURSES_LOCATION%g
  1459. s%@host@%$host%g
  1460. s%@host_alias@%$host_alias%g
  1461. s%@host_cpu@%$host_cpu%g
  1462. s%@host_vendor@%$host_vendor%g
  1463. s%@host_os@%$host_os%g
  1464. s%@target@%$target%g
  1465. s%@target_alias@%$target_alias%g
  1466. s%@target_cpu@%$target_cpu%g
  1467. s%@target_vendor@%$target_vendor%g
  1468. s%@target_os@%$target_os%g
  1469. s%@build@%$build%g
  1470. s%@build_alias@%$build_alias%g
  1471. s%@build_cpu@%$build_cpu%g
  1472. s%@build_vendor@%$build_vendor%g
  1473. s%@build_os@%$build_os%g
  1474. s%@OS_OPT@%$OS_OPT%g
  1475.  
  1476. CEOF
  1477. EOF
  1478.  
  1479. cat >> $CONFIG_STATUS <<\EOF
  1480.  
  1481. # Split the substitutions into bite-sized pieces for seds with
  1482. # small command number limits, like on Digital OSF/1 and HP-UX.
  1483. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1484. ac_file=1 # Number of current file.
  1485. ac_beg=1 # First line for current file.
  1486. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1487. ac_more_lines=:
  1488. ac_sed_cmds=""
  1489. while $ac_more_lines; do
  1490.   if test $ac_beg -gt 1; then
  1491.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1492.   else
  1493.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1494.   fi
  1495.   if test ! -s conftest.s$ac_file; then
  1496.     ac_more_lines=false
  1497.     rm -f conftest.s$ac_file
  1498.   else
  1499.     if test -z "$ac_sed_cmds"; then
  1500.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1501.     else
  1502.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1503.     fi
  1504.     ac_file=`expr $ac_file + 1`
  1505.     ac_beg=$ac_end
  1506.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1507.   fi
  1508. done
  1509. if test -z "$ac_sed_cmds"; then
  1510.   ac_sed_cmds=cat
  1511. fi
  1512. EOF
  1513.  
  1514. cat >> $CONFIG_STATUS <<EOF
  1515.  
  1516. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1517. EOF
  1518. cat >> $CONFIG_STATUS <<\EOF
  1519. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1520.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1521.   case "$ac_file" in
  1522.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1523.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1524.   *) ac_file_in="${ac_file}.in" ;;
  1525.   esac
  1526.  
  1527.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1528.  
  1529.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1530.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1531.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1532.     # The file is in a subdirectory.
  1533.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1534.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1535.     # A "../" for each directory in $ac_dir_suffix.
  1536.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1537.   else
  1538.     ac_dir_suffix= ac_dots=
  1539.   fi
  1540.  
  1541.   case "$ac_given_srcdir" in
  1542.   .)  srcdir=.
  1543.       if test -z "$ac_dots"; then top_srcdir=.
  1544.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1545.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1546.   *) # Relative path.
  1547.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1548.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1549.   esac
  1550.  
  1551.  
  1552.   echo creating "$ac_file"
  1553.   rm -f "$ac_file"
  1554.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1555.   case "$ac_file" in
  1556.   *Makefile*) ac_comsub="1i\\
  1557. # $configure_input" ;;
  1558.   *) ac_comsub= ;;
  1559.   esac
  1560.  
  1561.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1562.   sed -e "$ac_comsub
  1563. s%@configure_input@%$configure_input%g
  1564. s%@srcdir@%$srcdir%g
  1565. s%@top_srcdir@%$top_srcdir%g
  1566. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1567. fi; done
  1568. rm -f conftest.s*
  1569.  
  1570. EOF
  1571. cat >> $CONFIG_STATUS <<EOF
  1572.  
  1573. EOF
  1574. cat >> $CONFIG_STATUS <<\EOF
  1575.  
  1576. exit 0
  1577. EOF
  1578. chmod +x $CONFIG_STATUS
  1579. rm -fr confdefs* $ac_clean_files
  1580. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1581.  
  1582. if test "$no_recursion" != yes; then
  1583.  
  1584.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  1585.   ac_sub_configure_args=
  1586.   ac_prev=
  1587.   for ac_arg in $ac_configure_args; do
  1588.     if test -n "$ac_prev"; then
  1589.       ac_prev=
  1590.       continue
  1591.     fi
  1592.     case "$ac_arg" in
  1593.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  1594.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1595.       ac_prev=cache_file ;;
  1596.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1597.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1598.       ;;
  1599.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1600.       ac_prev=srcdir ;;
  1601.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1602.       ;;
  1603.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  1604.     esac
  1605.   done
  1606.  
  1607.   for ac_config_dir in libpcap-0.3; do
  1608.  
  1609.     # Do not complain, so a configure script can configure whichever
  1610.     # parts of a large source tree are present.
  1611.     if test ! -d $srcdir/$ac_config_dir; then
  1612.       continue
  1613.     fi
  1614.  
  1615.     echo configuring in $ac_config_dir
  1616.  
  1617.     case "$srcdir" in
  1618.     .) ;;
  1619.     *)
  1620.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  1621.       else
  1622.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  1623.       fi
  1624.       ;;
  1625.     esac
  1626.  
  1627.     ac_popdir=`pwd`
  1628.     cd $ac_config_dir
  1629.  
  1630.       # A "../" for each directory in /$ac_config_dir.
  1631.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  1632.  
  1633.     case "$srcdir" in
  1634.     .) # No --srcdir option.  We are building in place.
  1635.       ac_sub_srcdir=$srcdir ;;
  1636.     /*) # Absolute path.
  1637.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  1638.     *) # Relative path.
  1639.       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  1640.     esac
  1641.  
  1642.     # Check for guested configure; otherwise get Cygnus style configure.
  1643.     if test -f $ac_sub_srcdir/configure; then
  1644.       ac_sub_configure=$ac_sub_srcdir/configure
  1645.     elif test -f $ac_sub_srcdir/configure.in; then
  1646.       ac_sub_configure=$ac_configure
  1647.     else
  1648.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  1649.       ac_sub_configure=
  1650.     fi
  1651.  
  1652.     # The recursion is here.
  1653.     if test -n "$ac_sub_configure"; then
  1654.  
  1655.       # Make the cache file name correct relative to the subdirectory.
  1656.       case "$cache_file" in
  1657.       /*) ac_sub_cache_file=$cache_file ;;
  1658.       *) # Relative path.
  1659.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  1660.       esac
  1661.  
  1662.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  1663.       # The eval makes quoting arguments work.
  1664.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  1665.       then :
  1666.       else
  1667.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  1668.       fi
  1669.     fi
  1670.  
  1671.     cd $ac_popdir
  1672.   done
  1673. fi
  1674.  
  1675.