home *** CD-ROM | disk | FTP | other *** search
/ Steganos Hacker Tools / SHT151.iso / programme / scanner / nmapNTsp1 / Win_2000.exe / nmapNT-src / nmapfe / configure < prev    next >
Encoding:
Text File  |  2000-05-08  |  43.8 KB  |  1,293 lines

  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. ac_help="$ac_help
  15.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  16. ac_help="$ac_help
  17.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  18. ac_help="$ac_help
  19.   --disable-gtktest       Do not try to compile and run a test GTK program"
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. SHELL=${CONFIG_SHELL-/bin/sh}
  59. # Maximum number of lines to put in a shell here document.
  60. ac_max_here_lines=12
  61.  
  62. ac_prev=
  63. for ac_option
  64. do
  65.  
  66.   # If the previous option needs an argument, assign it.
  67.   if test -n "$ac_prev"; then
  68.     eval "$ac_prev=\$ac_option"
  69.     ac_prev=
  70.     continue
  71.   fi
  72.  
  73.   case "$ac_option" in
  74.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75.   *) ac_optarg= ;;
  76.   esac
  77.  
  78.   # Accept the important Cygnus configure options, so we can diagnose typos.
  79.  
  80.   case "$ac_option" in
  81.  
  82.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  83.     ac_prev=bindir ;;
  84.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  85.     bindir="$ac_optarg" ;;
  86.  
  87.   -build | --build | --buil | --bui | --bu)
  88.     ac_prev=build ;;
  89.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  90.     build="$ac_optarg" ;;
  91.  
  92.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  93.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  94.     ac_prev=cache_file ;;
  95.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  96.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  97.     cache_file="$ac_optarg" ;;
  98.  
  99.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  100.     ac_prev=datadir ;;
  101.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  102.   | --da=*)
  103.     datadir="$ac_optarg" ;;
  104.  
  105.   -disable-* | --disable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     eval "enable_${ac_feature}=no" ;;
  113.  
  114.   -enable-* | --enable-*)
  115.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  116.     # Reject names that are not valid shell variable names.
  117.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  118.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  119.     fi
  120.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  121.     case "$ac_option" in
  122.       *=*) ;;
  123.       *) ac_optarg=yes ;;
  124.     esac
  125.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  126.  
  127.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  128.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  129.   | --exec | --exe | --ex)
  130.     ac_prev=exec_prefix ;;
  131.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  132.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  133.   | --exec=* | --exe=* | --ex=*)
  134.     exec_prefix="$ac_optarg" ;;
  135.  
  136.   -gas | --gas | --ga | --g)
  137.     # Obsolete; use --with-gas.
  138.     with_gas=yes ;;
  139.  
  140.   -help | --help | --hel | --he)
  141.     # Omit some internal or obsolete options to make the list less imposing.
  142.     # This message is too long to be a string in the A/UX 3.1 sh.
  143.     cat << EOF
  144. Usage: configure [options] [host]
  145. Options: [defaults in brackets after descriptions]
  146. Configuration:
  147.   --cache-file=FILE       cache test results in FILE
  148.   --help                  print this message
  149.   --no-create             do not create output files
  150.   --quiet, --silent       do not print \`checking...' messages
  151.   --version               print the version of autoconf that created configure
  152. Directory and file names:
  153.   --prefix=PREFIX         install architecture-independent files in PREFIX
  154.                           [$ac_default_prefix]
  155.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  156.                           [same as prefix]
  157.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  158.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  159.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  160.   --datadir=DIR           read-only architecture-independent data in DIR
  161.                           [PREFIX/share]
  162.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  163.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  164.                           [PREFIX/com]
  165.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  166.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  167.   --includedir=DIR        C header files in DIR [PREFIX/include]
  168.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  169.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  170.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  171.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  172.   --program-prefix=PREFIX prepend PREFIX to installed program names
  173.   --program-suffix=SUFFIX append SUFFIX to installed program names
  174.   --program-transform-name=PROGRAM
  175.                           run sed PROGRAM on installed program names
  176. EOF
  177.     cat << EOF
  178. Host type:
  179.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  180.   --host=HOST             configure for HOST [guessed]
  181.   --target=TARGET         configure for TARGET [TARGET=HOST]
  182. Features and packages:
  183.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  184.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  185.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  186.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  187.   --x-includes=DIR        X include files are in DIR
  188.   --x-libraries=DIR       X library files are in DIR
  189. EOF
  190.     if test -n "$ac_help"; then
  191.       echo "--enable and --with options recognized:$ac_help"
  192.     fi
  193.     exit 0 ;;
  194.  
  195.   -host | --host | --hos | --ho)
  196.     ac_prev=host ;;
  197.   -host=* | --host=* | --hos=* | --ho=*)
  198.     host="$ac_optarg" ;;
  199.  
  200.   -includedir | --includedir | --includedi | --included | --include \
  201.   | --includ | --inclu | --incl | --inc)
  202.     ac_prev=includedir ;;
  203.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  204.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  205.     includedir="$ac_optarg" ;;
  206.  
  207.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  208.     ac_prev=infodir ;;
  209.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  210.     infodir="$ac_optarg" ;;
  211.  
  212.   -libdir | --libdir | --libdi | --libd)
  213.     ac_prev=libdir ;;
  214.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  215.     libdir="$ac_optarg" ;;
  216.  
  217.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  218.   | --libexe | --libex | --libe)
  219.     ac_prev=libexecdir ;;
  220.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  221.   | --libexe=* | --libex=* | --libe=*)
  222.     libexecdir="$ac_optarg" ;;
  223.  
  224.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  225.   | --localstate | --localstat | --localsta | --localst \
  226.   | --locals | --local | --loca | --loc | --lo)
  227.     ac_prev=localstatedir ;;
  228.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  229.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  230.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  231.     localstatedir="$ac_optarg" ;;
  232.  
  233.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  234.     ac_prev=mandir ;;
  235.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  236.     mandir="$ac_optarg" ;;
  237.  
  238.   -nfp | --nfp | --nf)
  239.     # Obsolete; use --without-fp.
  240.     with_fp=no ;;
  241.  
  242.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  243.   | --no-cr | --no-c)
  244.     no_create=yes ;;
  245.  
  246.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  247.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  248.     no_recursion=yes ;;
  249.  
  250.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  251.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  252.   | --oldin | --oldi | --old | --ol | --o)
  253.     ac_prev=oldincludedir ;;
  254.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  255.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  256.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  257.     oldincludedir="$ac_optarg" ;;
  258.  
  259.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  260.     ac_prev=prefix ;;
  261.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  262.     prefix="$ac_optarg" ;;
  263.  
  264.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  265.   | --program-pre | --program-pr | --program-p)
  266.     ac_prev=program_prefix ;;
  267.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  268.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  269.     program_prefix="$ac_optarg" ;;
  270.  
  271.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  272.   | --program-suf | --program-su | --program-s)
  273.     ac_prev=program_suffix ;;
  274.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  275.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  276.     program_suffix="$ac_optarg" ;;
  277.  
  278.   -program-transform-name | --program-transform-name \
  279.   | --program-transform-nam | --program-transform-na \
  280.   | --program-transform-n | --program-transform- \
  281.   | --program-transform | --program-transfor \
  282.   | --program-transfo | --program-transf \
  283.   | --program-trans | --program-tran \
  284.   | --progr-tra | --program-tr | --program-t)
  285.     ac_prev=program_transform_name ;;
  286.   -program-transform-name=* | --program-transform-name=* \
  287.   | --program-transform-nam=* | --program-transform-na=* \
  288.   | --program-transform-n=* | --program-transform-=* \
  289.   | --program-transform=* | --program-transfor=* \
  290.   | --program-transfo=* | --program-transf=* \
  291.   | --program-trans=* | --program-tran=* \
  292.   | --progr-tra=* | --program-tr=* | --program-t=*)
  293.     program_transform_name="$ac_optarg" ;;
  294.  
  295.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  296.   | -silent | --silent | --silen | --sile | --sil)
  297.     silent=yes ;;
  298.  
  299.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  300.     ac_prev=sbindir ;;
  301.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  302.   | --sbi=* | --sb=*)
  303.     sbindir="$ac_optarg" ;;
  304.  
  305.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  306.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  307.   | --sharedst | --shareds | --shared | --share | --shar \
  308.   | --sha | --sh)
  309.     ac_prev=sharedstatedir ;;
  310.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  311.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  312.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  313.   | --sha=* | --sh=*)
  314.     sharedstatedir="$ac_optarg" ;;
  315.  
  316.   -site | --site | --sit)
  317.     ac_prev=site ;;
  318.   -site=* | --site=* | --sit=*)
  319.     site="$ac_optarg" ;;
  320.  
  321.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  322.     ac_prev=srcdir ;;
  323.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  324.     srcdir="$ac_optarg" ;;
  325.  
  326.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  327.   | --syscon | --sysco | --sysc | --sys | --sy)
  328.     ac_prev=sysconfdir ;;
  329.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  330.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  331.     sysconfdir="$ac_optarg" ;;
  332.  
  333.   -target | --target | --targe | --targ | --tar | --ta | --t)
  334.     ac_prev=target ;;
  335.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  336.     target="$ac_optarg" ;;
  337.  
  338.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  339.     verbose=yes ;;
  340.  
  341.   -version | --version | --versio | --versi | --vers)
  342.     echo "configure generated by autoconf version 2.13"
  343.     exit 0 ;;
  344.  
  345.   -with-* | --with-*)
  346.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  347.     # Reject names that are not valid shell variable names.
  348.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  349.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  350.     fi
  351.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  352.     case "$ac_option" in
  353.       *=*) ;;
  354.       *) ac_optarg=yes ;;
  355.     esac
  356.     eval "with_${ac_package}='$ac_optarg'" ;;
  357.  
  358.   -without-* | --without-*)
  359.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  360.     # Reject names that are not valid shell variable names.
  361.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  362.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  363.     fi
  364.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  365.     eval "with_${ac_package}=no" ;;
  366.  
  367.   --x)
  368.     # Obsolete; use --with-x.
  369.     with_x=yes ;;
  370.  
  371.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  372.   | --x-incl | --x-inc | --x-in | --x-i)
  373.     ac_prev=x_includes ;;
  374.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  375.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  376.     x_includes="$ac_optarg" ;;
  377.  
  378.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  379.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  380.     ac_prev=x_libraries ;;
  381.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  382.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  383.     x_libraries="$ac_optarg" ;;
  384.  
  385.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  386.     ;;
  387.  
  388.   *)
  389.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  390.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  391.     fi
  392.     if test "x$nonopt" != xNONE; then
  393.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  394.     fi
  395.     nonopt="$ac_option"
  396.     ;;
  397.  
  398.   esac
  399. done
  400.  
  401. if test -n "$ac_prev"; then
  402.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  403. fi
  404.  
  405. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  406.  
  407. # File descriptor usage:
  408. # 0 standard input
  409. # 1 file creation
  410. # 2 errors and warnings
  411. # 3 some systems may open it to /dev/tty
  412. # 4 used on the Kubota Titan
  413. # 6 checking for... messages and results
  414. # 5 compiler messages saved in config.log
  415. if test "$silent" = yes; then
  416.   exec 6>/dev/null
  417. else
  418.   exec 6>&1
  419. fi
  420. exec 5>./config.log
  421.  
  422. echo "\
  423. This file contains any messages produced by compilers while
  424. running configure, to aid debugging if configure makes a mistake.
  425. " 1>&5
  426.  
  427. # Strip out --no-create and --no-recursion so they do not pile up.
  428. # Also quote any args containing shell metacharacters.
  429. ac_configure_args=
  430. for ac_arg
  431. do
  432.   case "$ac_arg" in
  433.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  434.   | --no-cr | --no-c) ;;
  435.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  436.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  437.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  438.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  439.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  440.   esac
  441. done
  442.  
  443. # NLS nuisances.
  444. # Only set these to C if already set.  These must not be set unconditionally
  445. # because not all systems understand e.g. LANG=C (notably SCO).
  446. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  447. # Non-C LC_CTYPE values break the ctype check.
  448. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  449. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  450. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  451. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  452.  
  453. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  454. rm -rf conftest* confdefs.h
  455. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  456. echo > confdefs.h
  457.  
  458. # A filename unique to this package, relative to the directory that
  459. # configure is in, which we can look for to find out if srcdir is correct.
  460. ac_unique_file=nmapfe.c
  461.  
  462. # Find the source files, if location was not specified.
  463. if test -z "$srcdir"; then
  464.   ac_srcdir_defaulted=yes
  465.   # Try the directory containing this script, then its parent.
  466.   ac_prog=$0
  467.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  468.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  469.   srcdir=$ac_confdir
  470.   if test ! -r $srcdir/$ac_unique_file; then
  471.     srcdir=..
  472.   fi
  473. else
  474.   ac_srcdir_defaulted=no
  475. fi
  476. if test ! -r $srcdir/$ac_unique_file; then
  477.   if test "$ac_srcdir_defaulted" = yes; then
  478.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  479.   else
  480.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  481.   fi
  482. fi
  483. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  484.  
  485. # Prefer explicitly selected file to automatically selected ones.
  486. if test -z "$CONFIG_SITE"; then
  487.   if test "x$prefix" != xNONE; then
  488.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  489.   else
  490.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  491.   fi
  492. fi
  493. for ac_site_file in $CONFIG_SITE; do
  494.   if test -r "$ac_site_file"; then
  495.     echo "loading site script $ac_site_file"
  496.     . "$ac_site_file"
  497.   fi
  498. done
  499.  
  500. if test -r "$cache_file"; then
  501.   echo "loading cache $cache_file"
  502.   . $cache_file
  503. else
  504.   echo "creating cache $cache_file"
  505.   > $cache_file
  506. fi
  507.  
  508. ac_ext=c
  509. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  510. ac_cpp='$CPP $CPPFLAGS'
  511. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  512. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  513. cross_compiling=$ac_cv_prog_cc_cross
  514.  
  515. ac_exeext=
  516. ac_objext=o
  517. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  518.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  519.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  520.     ac_n= ac_c='
  521. ' ac_t='    '
  522.   else
  523.     ac_n=-n ac_c= ac_t=
  524.   fi
  525. else
  526.   ac_n= ac_c='\c' ac_t=
  527. fi
  528.  
  529.  
  530.  
  531. #AM_INIT_AUTOMAKE(nmapfe, 0.9.5)
  532.  
  533. # Extract the first word of "gcc", so it can be a program name with args.
  534. set dummy gcc; ac_word=$2
  535. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  536. echo "configure:537: checking for $ac_word" >&5
  537. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  538.   echo $ac_n "(cached) $ac_c" 1>&6
  539. else
  540.   if test -n "$CC"; then
  541.   ac_cv_prog_CC="$CC" # Let the user override the test.
  542. else
  543.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  544.   ac_dummy="$PATH"
  545.   for ac_dir in $ac_dummy; do
  546.     test -z "$ac_dir" && ac_dir=.
  547.     if test -f $ac_dir/$ac_word; then
  548.       ac_cv_prog_CC="gcc"
  549.       break
  550.     fi
  551.   done
  552.   IFS="$ac_save_ifs"
  553. fi
  554. fi
  555. CC="$ac_cv_prog_CC"
  556. if test -n "$CC"; then
  557.   echo "$ac_t""$CC" 1>&6
  558. else
  559.   echo "$ac_t""no" 1>&6
  560. fi
  561.  
  562. if test -z "$CC"; then
  563.   # Extract the first word of "cc", so it can be a program name with args.
  564. set dummy cc; ac_word=$2
  565. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  566. echo "configure:567: checking for $ac_word" >&5
  567. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  568.   echo $ac_n "(cached) $ac_c" 1>&6
  569. else
  570.   if test -n "$CC"; then
  571.   ac_cv_prog_CC="$CC" # Let the user override the test.
  572. else
  573.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  574.   ac_prog_rejected=no
  575.   ac_dummy="$PATH"
  576.   for ac_dir in $ac_dummy; do
  577.     test -z "$ac_dir" && ac_dir=.
  578.     if test -f $ac_dir/$ac_word; then
  579.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  580.         ac_prog_rejected=yes
  581.     continue
  582.       fi
  583.       ac_cv_prog_CC="cc"
  584.       break
  585.     fi
  586.   done
  587.   IFS="$ac_save_ifs"
  588. if test $ac_prog_rejected = yes; then
  589.   # We found a bogon in the path, so make sure we never use it.
  590.   set dummy $ac_cv_prog_CC
  591.   shift
  592.   if test $# -gt 0; then
  593.     # We chose a different compiler from the bogus one.
  594.     # However, it has the same basename, so the bogon will be chosen
  595.     # first if we set CC to just the basename; use the full file name.
  596.     shift
  597.     set dummy "$ac_dir/$ac_word" "$@"
  598.     shift
  599.     ac_cv_prog_CC="$@"
  600.   fi
  601. fi
  602. fi
  603. fi
  604. CC="$ac_cv_prog_CC"
  605. if test -n "$CC"; then
  606.   echo "$ac_t""$CC" 1>&6
  607. else
  608.   echo "$ac_t""no" 1>&6
  609. fi
  610.  
  611.   if test -z "$CC"; then
  612.     case "`uname -s`" in
  613.     *win32* | *WIN32*)
  614.       # Extract the first word of "cl", so it can be a program name with args.
  615. set dummy cl; ac_word=$2
  616. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  617. echo "configure:618: checking for $ac_word" >&5
  618. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  619.   echo $ac_n "(cached) $ac_c" 1>&6
  620. else
  621.   if test -n "$CC"; then
  622.   ac_cv_prog_CC="$CC" # Let the user override the test.
  623. else
  624.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  625.   ac_dummy="$PATH"
  626.   for ac_dir in $ac_dummy; do
  627.     test -z "$ac_dir" && ac_dir=.
  628.     if test -f $ac_dir/$ac_word; then
  629.       ac_cv_prog_CC="cl"
  630.       break
  631.     fi
  632.   done
  633.   IFS="$ac_save_ifs"
  634. fi
  635. fi
  636. CC="$ac_cv_prog_CC"
  637. if test -n "$CC"; then
  638.   echo "$ac_t""$CC" 1>&6
  639. else
  640.   echo "$ac_t""no" 1>&6
  641. fi
  642.  ;;
  643.     esac
  644.   fi
  645.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  646. fi
  647.  
  648. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  649. echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  650.  
  651. ac_ext=c
  652. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  653. ac_cpp='$CPP $CPPFLAGS'
  654. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  655. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  656. cross_compiling=$ac_cv_prog_cc_cross
  657.  
  658. cat > conftest.$ac_ext << EOF
  659.  
  660. #line 661 "configure"
  661. #include "confdefs.h"
  662.  
  663. main(){return(0);}
  664. EOF
  665. if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  666.   ac_cv_prog_cc_works=yes
  667.   # If we can't run a trivial program, we are probably using a cross compiler.
  668.   if (./conftest; exit) 2>/dev/null; then
  669.     ac_cv_prog_cc_cross=no
  670.   else
  671.     ac_cv_prog_cc_cross=yes
  672.   fi
  673. else
  674.   echo "configure: failed program was:" >&5
  675.   cat conftest.$ac_ext >&5
  676.   ac_cv_prog_cc_works=no
  677. fi
  678. rm -fr conftest*
  679. ac_ext=c
  680. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  681. ac_cpp='$CPP $CPPFLAGS'
  682. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  683. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  684. cross_compiling=$ac_cv_prog_cc_cross
  685.  
  686. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  687. if test $ac_cv_prog_cc_works = no; then
  688.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  689. fi
  690. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  691. echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  692. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  693. cross_compiling=$ac_cv_prog_cc_cross
  694.  
  695. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  696. echo "configure:697: checking whether we are using GNU C" >&5
  697. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  698.   echo $ac_n "(cached) $ac_c" 1>&6
  699. else
  700.   cat > conftest.c <<EOF
  701. #ifdef __GNUC__
  702.   yes;
  703. #endif
  704. EOF
  705. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  706.   ac_cv_prog_gcc=yes
  707. else
  708.   ac_cv_prog_gcc=no
  709. fi
  710. fi
  711.  
  712. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  713.  
  714. if test $ac_cv_prog_gcc = yes; then
  715.   GCC=yes
  716. else
  717.   GCC=
  718. fi
  719.  
  720. ac_test_CFLAGS="${CFLAGS+set}"
  721. ac_save_CFLAGS="$CFLAGS"
  722. CFLAGS=
  723. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  724. echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
  725. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  726.   echo $ac_n "(cached) $ac_c" 1>&6
  727. else
  728.   echo 'void f(){}' > conftest.c
  729. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  730.   ac_cv_prog_cc_g=yes
  731. else
  732.   ac_cv_prog_cc_g=no
  733. fi
  734. rm -f conftest*
  735.  
  736. fi
  737.  
  738. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  739. if test "$ac_test_CFLAGS" = set; then
  740.   CFLAGS="$ac_save_CFLAGS"
  741. elif test $ac_cv_prog_cc_g = yes; then
  742.   if test "$GCC" = yes; then
  743.     CFLAGS="-g -O2"
  744.   else
  745.     CFLAGS="-g"
  746.   fi
  747. else
  748.   if test "$GCC" = yes; then
  749.     CFLAGS="-O2"
  750.   else
  751.     CFLAGS=
  752.   fi
  753. fi
  754.  
  755.  
  756. #AM_PATH_GTK(1.0.0,
  757. #            [LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"],
  758. #            AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?))
  759. # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  760. if test "${with_gtk_prefix+set}" = set; then
  761.   withval="$with_gtk_prefix"
  762.   gtk_config_prefix="$withval"
  763. else
  764.   gtk_config_prefix=""
  765. fi
  766.  
  767. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  768. if test "${with_gtk_exec_prefix+set}" = set; then
  769.   withval="$with_gtk_exec_prefix"
  770.   gtk_config_exec_prefix="$withval"
  771. else
  772.   gtk_config_exec_prefix=""
  773. fi
  774.  
  775. # Check whether --enable-gtktest or --disable-gtktest was given.
  776. if test "${enable_gtktest+set}" = set; then
  777.   enableval="$enable_gtktest"
  778.   :
  779. else
  780.   enable_gtktest=yes
  781. fi
  782.  
  783.  
  784.   for module in . 
  785.   do
  786.       case "$module" in
  787.          gthread) 
  788.              gtk_config_args="$gtk_config_args gthread"
  789.          ;;
  790.       esac
  791.   done
  792.  
  793.   if test x$gtk_config_exec_prefix != x ; then
  794.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  795.      if test x${GTK_CONFIG+set} != xset ; then
  796.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  797.      fi
  798.   fi
  799.   if test x$gtk_config_prefix != x ; then
  800.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  801.      if test x${GTK_CONFIG+set} != xset ; then
  802.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  803.      fi
  804.   fi
  805.  
  806.   # Extract the first word of "gtk-config", so it can be a program name with args.
  807. set dummy gtk-config; ac_word=$2
  808. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  809. echo "configure:810: checking for $ac_word" >&5
  810. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  811.   echo $ac_n "(cached) $ac_c" 1>&6
  812. else
  813.   case "$GTK_CONFIG" in
  814.   /*)
  815.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  816.   ;;
  817.   ?:/*)             
  818.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  819.   ;;
  820.   *)
  821.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  822.   ac_dummy="$PATH"
  823.   for ac_dir in $ac_dummy; do 
  824.     test -z "$ac_dir" && ac_dir=.
  825.     if test -f $ac_dir/$ac_word; then
  826.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  827.       break
  828.     fi
  829.   done
  830.   IFS="$ac_save_ifs"
  831.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  832.   ;;
  833. esac
  834. fi
  835. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  836. if test -n "$GTK_CONFIG"; then
  837.   echo "$ac_t""$GTK_CONFIG" 1>&6
  838. else
  839.   echo "$ac_t""no" 1>&6
  840. fi
  841.  
  842.   min_gtk_version=1.0.0
  843.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  844. echo "configure:845: checking for GTK - version >= $min_gtk_version" >&5
  845.   no_gtk=""
  846.   if test "$GTK_CONFIG" = "no" ; then
  847.     no_gtk=yes
  848.   else
  849.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  850.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  851.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  852.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  853.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  854.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  855.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  856.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  857.     if test "x$enable_gtktest" = "xyes" ; then
  858.       ac_save_CFLAGS="$CFLAGS"
  859.       ac_save_LIBS="$LIBS"
  860.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  861.       LIBS="$GTK_LIBS $LIBS"
  862.       rm -f conf.gtktest
  863.       if test "$cross_compiling" = yes; then
  864.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  865. else
  866.   cat > conftest.$ac_ext <<EOF
  867. #line 868 "configure"
  868. #include "confdefs.h"
  869.  
  870. #include <gtk/gtk.h>
  871. #include <stdio.h>
  872. #include <stdlib.h>
  873.  
  874. int 
  875. main ()
  876. {
  877.   int major, minor, micro;
  878.   char *tmp_version;
  879.  
  880.   system ("touch conf.gtktest");
  881.  
  882.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  883.   tmp_version = g_strdup("$min_gtk_version");
  884.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  885.      printf("%s, bad version string\n", "$min_gtk_version");
  886.      exit(1);
  887.    }
  888.  
  889.   if ((gtk_major_version != $gtk_config_major_version) ||
  890.       (gtk_minor_version != $gtk_config_minor_version) ||
  891.       (gtk_micro_version != $gtk_config_micro_version))
  892.     {
  893.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  894.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  895.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  896.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  897.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  898.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  899.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  900.       printf("*** required on your system.\n");
  901.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  902.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  903.       printf("*** before re-running configure\n");
  904.     } 
  905. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  906.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  907.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  908.            (gtk_micro_version != GTK_MICRO_VERSION))
  909.     {
  910.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  911.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  912.       printf("*** library (version %d.%d.%d)\n",
  913.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  914.     }
  915. #endif /* defined (GTK_MAJOR_VERSION) ... */
  916.   else
  917.     {
  918.       if ((gtk_major_version > major) ||
  919.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  920.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  921.       {
  922.         return 0;
  923.        }
  924.      else
  925.       {
  926.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  927.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  928.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  929.            major, minor, micro);
  930.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  931.         printf("***\n");
  932.         printf("*** If you have already installed a sufficiently new version, this error\n");
  933.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  934.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  935.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  936.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  937.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  938.         printf("*** so that the correct libraries are found at run-time))\n");
  939.       }
  940.     }
  941.   return 1;
  942. }
  943.  
  944. EOF
  945. if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  946. then
  947.   :
  948. else
  949.   echo "configure: failed program was:" >&5
  950.   cat conftest.$ac_ext >&5
  951.   rm -fr conftest*
  952.   no_gtk=yes
  953. fi
  954. rm -fr conftest*
  955. fi
  956.  
  957.        CFLAGS="$ac_save_CFLAGS"
  958.        LIBS="$ac_save_LIBS"
  959.      fi
  960.   fi
  961.   if test "x$no_gtk" = x ; then
  962.      echo "$ac_t""yes" 1>&6
  963.      LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"     
  964.   else
  965.      echo "$ac_t""no" 1>&6
  966.      if test "$GTK_CONFIG" = "no" ; then
  967.        echo "*** The gtk-config script installed by GTK could not be found"
  968.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  969.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  970.        echo "*** full path to gtk-config."
  971.      else
  972.        if test -f conf.gtktest ; then
  973.         :
  974.        else
  975.           echo "*** Could not run GTK test program, checking why..."
  976.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  977.           LIBS="$LIBS $GTK_LIBS"
  978.           cat > conftest.$ac_ext <<EOF
  979. #line 980 "configure"
  980. #include "confdefs.h"
  981.  
  982. #include <gtk/gtk.h>
  983. #include <stdio.h>
  984.  
  985. int main() {
  986.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  987. ; return 0; }
  988. EOF
  989. if { (eval echo configure:990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  990.   rm -rf conftest*
  991.    echo "*** The test program compiled, but did not run. This usually means"
  992.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  993.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  994.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  995.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  996.           echo "*** is required on your system"
  997.       echo "***"
  998.           echo "*** If you have an old version installed, it is best to remove it, although"
  999.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1000.           echo "***"
  1001.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  1002.           echo "*** came with the system with the command"
  1003.           echo "***"
  1004.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  1005. else
  1006.   echo "configure: failed program was:" >&5
  1007.   cat conftest.$ac_ext >&5
  1008.   rm -rf conftest*
  1009.    echo "*** The test program failed to compile or link. See the file config.log for the"
  1010.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  1011.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  1012.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  1013. fi
  1014. rm -f conftest*
  1015.           CFLAGS="$ac_save_CFLAGS"
  1016.           LIBS="$ac_save_LIBS"
  1017.        fi
  1018.      fi
  1019.      GTK_CFLAGS=""
  1020.      GTK_LIBS=""
  1021.      cat >> confdefs.h <<\EOF
  1022. #define MISSING_GTK 1
  1023. EOF
  1024.  \
  1025.         echo "configure: warning: NMAPFE WILL NOT BE BUILT -- BUT NMAP SHOULD STILL WORK " 1>&2
  1026.   fi
  1027.   
  1028.   
  1029.   rm -f conf.gtktest
  1030.  
  1031.  
  1032. if test "x$GCC" = "xyes"; then
  1033.   if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
  1034.     CFLAGS="$CFLAGS -Wall"
  1035.   fi
  1036. fi
  1037.  
  1038. trap '' 1 2 15
  1039. cat > confcache <<\EOF
  1040. # This file is a shell script that caches the results of configure
  1041. # tests run on this system so they can be shared between configure
  1042. # scripts and configure runs.  It is not useful on other systems.
  1043. # If it contains results you don't want to keep, you may remove or edit it.
  1044. #
  1045. # By default, configure uses ./config.cache as the cache file,
  1046. # creating it if it does not exist already.  You can give configure
  1047. # the --cache-file=FILE option to use a different cache file; that is
  1048. # what configure does when it calls configure scripts in
  1049. # subdirectories, so they share the cache.
  1050. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1051. # config.status only pays attention to the cache file if you give it the
  1052. # --recheck option to rerun configure.
  1053. #
  1054. EOF
  1055. # The following way of writing the cache mishandles newlines in values,
  1056. # but we know of no workaround that is simple, portable, and efficient.
  1057. # So, don't put newlines in cache variables' values.
  1058. # Ultrix sh set writes to stderr and can't be redirected directly,
  1059. # and sets the high bit in the cache file unless we assign to the vars.
  1060. (set) 2>&1 |
  1061.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1062.   *ac_space=\ *)
  1063.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1064.     # turns \\\\ into \\, and sed turns \\ into \).
  1065.     sed -n \
  1066.       -e "s/'/'\\\\''/g" \
  1067.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1068.     ;;
  1069.   *)
  1070.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1071.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1072.     ;;
  1073.   esac >> confcache
  1074. if cmp -s $cache_file confcache; then
  1075.   :
  1076. else
  1077.   if test -w $cache_file; then
  1078.     echo "updating cache $cache_file"
  1079.     cat confcache > $cache_file
  1080.   else
  1081.     echo "not updating unwritable cache $cache_file"
  1082.   fi
  1083. fi
  1084. rm -f confcache
  1085.  
  1086. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1087.  
  1088. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1089. # Let make expand exec_prefix.
  1090. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1091.  
  1092. # Any assignment to VPATH causes Sun make to only execute
  1093. # the first set of double-colon rules, so remove it if not needed.
  1094. # If there is a colon in the path, we need to keep it.
  1095. if test "x$srcdir" = x.; then
  1096.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1097. fi
  1098.  
  1099. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1100.  
  1101. # Transform confdefs.h into DEFS.
  1102. # Protect against shell expansion while executing Makefile rules.
  1103. # Protect against Makefile macro expansion.
  1104. cat > conftest.defs <<\EOF
  1105. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1106. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1107. s%\[%\\&%g
  1108. s%\]%\\&%g
  1109. s%\$%$$%g
  1110. EOF
  1111. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1112. rm -f conftest.defs
  1113.  
  1114.  
  1115. # Without the "./", some shells look in PATH for config.status.
  1116. : ${CONFIG_STATUS=./config.status}
  1117.  
  1118. echo creating $CONFIG_STATUS
  1119. rm -f $CONFIG_STATUS
  1120. cat > $CONFIG_STATUS <<EOF
  1121. #! /bin/sh
  1122. # Generated automatically by configure.
  1123. # Run this file to recreate the current configuration.
  1124. # This directory was configured as follows,
  1125. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1126. #
  1127. # $0 $ac_configure_args
  1128. #
  1129. # Compiler output produced by configure, useful for debugging
  1130. # configure, is in ./config.log if it exists.
  1131.  
  1132. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1133. for ac_option
  1134. do
  1135.   case "\$ac_option" in
  1136.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1137.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1138.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1139.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1140.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1141.     exit 0 ;;
  1142.   -help | --help | --hel | --he | --h)
  1143.     echo "\$ac_cs_usage"; exit 0 ;;
  1144.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1145.   esac
  1146. done
  1147.  
  1148. ac_given_srcdir=$srcdir
  1149.  
  1150. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1151. EOF
  1152. cat >> $CONFIG_STATUS <<EOF
  1153.  
  1154. # Protect against being on the right side of a sed subst in config.status.
  1155. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1156.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1157. $ac_vpsub
  1158. $extrasub
  1159. s%@SHELL@%$SHELL%g
  1160. s%@CFLAGS@%$CFLAGS%g
  1161. s%@CPPFLAGS@%$CPPFLAGS%g
  1162. s%@CXXFLAGS@%$CXXFLAGS%g
  1163. s%@FFLAGS@%$FFLAGS%g
  1164. s%@DEFS@%$DEFS%g
  1165. s%@LDFLAGS@%$LDFLAGS%g
  1166. s%@LIBS@%$LIBS%g
  1167. s%@exec_prefix@%$exec_prefix%g
  1168. s%@prefix@%$prefix%g
  1169. s%@program_transform_name@%$program_transform_name%g
  1170. s%@bindir@%$bindir%g
  1171. s%@sbindir@%$sbindir%g
  1172. s%@libexecdir@%$libexecdir%g
  1173. s%@datadir@%$datadir%g
  1174. s%@sysconfdir@%$sysconfdir%g
  1175. s%@sharedstatedir@%$sharedstatedir%g
  1176. s%@localstatedir@%$localstatedir%g
  1177. s%@libdir@%$libdir%g
  1178. s%@includedir@%$includedir%g
  1179. s%@oldincludedir@%$oldincludedir%g
  1180. s%@infodir@%$infodir%g
  1181. s%@mandir@%$mandir%g
  1182. s%@CC@%$CC%g
  1183. s%@GTK_CONFIG@%$GTK_CONFIG%g
  1184. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  1185. s%@GTK_LIBS@%$GTK_LIBS%g
  1186.  
  1187. CEOF
  1188. EOF
  1189.  
  1190. cat >> $CONFIG_STATUS <<\EOF
  1191.  
  1192. # Split the substitutions into bite-sized pieces for seds with
  1193. # small command number limits, like on Digital OSF/1 and HP-UX.
  1194. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1195. ac_file=1 # Number of current file.
  1196. ac_beg=1 # First line for current file.
  1197. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1198. ac_more_lines=:
  1199. ac_sed_cmds=""
  1200. while $ac_more_lines; do
  1201.   if test $ac_beg -gt 1; then
  1202.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1203.   else
  1204.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1205.   fi
  1206.   if test ! -s conftest.s$ac_file; then
  1207.     ac_more_lines=false
  1208.     rm -f conftest.s$ac_file
  1209.   else
  1210.     if test -z "$ac_sed_cmds"; then
  1211.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1212.     else
  1213.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1214.     fi
  1215.     ac_file=`expr $ac_file + 1`
  1216.     ac_beg=$ac_end
  1217.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1218.   fi
  1219. done
  1220. if test -z "$ac_sed_cmds"; then
  1221.   ac_sed_cmds=cat
  1222. fi
  1223. EOF
  1224.  
  1225. cat >> $CONFIG_STATUS <<EOF
  1226.  
  1227. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1228. EOF
  1229. cat >> $CONFIG_STATUS <<\EOF
  1230. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1231.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1232.   case "$ac_file" in
  1233.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1234.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1235.   *) ac_file_in="${ac_file}.in" ;;
  1236.   esac
  1237.  
  1238.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1239.  
  1240.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1241.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1242.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1243.     # The file is in a subdirectory.
  1244.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1245.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1246.     # A "../" for each directory in $ac_dir_suffix.
  1247.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1248.   else
  1249.     ac_dir_suffix= ac_dots=
  1250.   fi
  1251.  
  1252.   case "$ac_given_srcdir" in
  1253.   .)  srcdir=.
  1254.       if test -z "$ac_dots"; then top_srcdir=.
  1255.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1256.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1257.   *) # Relative path.
  1258.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1259.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1260.   esac
  1261.  
  1262.  
  1263.   echo creating "$ac_file"
  1264.   rm -f "$ac_file"
  1265.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1266.   case "$ac_file" in
  1267.   *Makefile*) ac_comsub="1i\\
  1268. # $configure_input" ;;
  1269.   *) ac_comsub= ;;
  1270.   esac
  1271.  
  1272.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1273.   sed -e "$ac_comsub
  1274. s%@configure_input@%$configure_input%g
  1275. s%@srcdir@%$srcdir%g
  1276. s%@top_srcdir@%$top_srcdir%g
  1277. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1278. fi; done
  1279. rm -f conftest.s*
  1280.  
  1281. EOF
  1282. cat >> $CONFIG_STATUS <<EOF
  1283.  
  1284. EOF
  1285. cat >> $CONFIG_STATUS <<\EOF
  1286.  
  1287. exit 0
  1288. EOF
  1289. chmod +x $CONFIG_STATUS
  1290. rm -fr confdefs* $ac_clean_files
  1291. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1292.  
  1293.