home *** CD-ROM | disk | FTP | other *** search
/ ftp.sunet.sepub/pictures / 2014.11.ftp.sunet.se-pictures.tar / ftp.sunet.se / pub / pictures / ACiD-artpacks / programs / unix / editors / gimp-plugins-unstable-0_99_23_tar.gz / gimp-plugins-unstable-0_99_23_tar / gimp-plugins-unstable-0.99.23 / configure < prev    next >
Text File  |  1998-03-27  |  71KB  |  2,321 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. ac_help="$ac_help
  15.   --enable-shared         build shared libraries [default=yes]
  16.   --enable-shared=PKGS    only build shared libraries if the current package
  17.                           appears as an element in the PKGS list"
  18. ac_help="$ac_help
  19.   --enable-static         build static libraries [default=yes]
  20.   --enable-static=PKGS    only build shared libraries if the current package
  21.                           appears as an element in the PKGS list"
  22. ac_help="$ac_help
  23.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  24. ac_help="$ac_help
  25.   --enable-maintainer-mode enable make rules and dependencies not useful
  26.                           (and sometimes confusing) to the casual installer"
  27. ac_help="$ac_help
  28.   --enable-debug          turn on debugging [default=no]"
  29. ac_help="$ac_help
  30.   --enable-ansi           turn on strict ansi [default=no]"
  31. ac_help="$ac_help
  32. --with-{tcl/tk}        use this tcl/tk library"
  33.  
  34. # Initialize some variables set by options.
  35. # The variables have the same names as the options, with
  36. # dashes changed to underlines.
  37. build=NONE
  38. cache_file=./config.cache
  39. exec_prefix=NONE
  40. host=NONE
  41. no_create=
  42. nonopt=NONE
  43. no_recursion=
  44. prefix=NONE
  45. program_prefix=NONE
  46. program_suffix=NONE
  47. program_transform_name=s,x,x,
  48. silent=
  49. site=
  50. srcdir=
  51. target=NONE
  52. verbose=
  53. x_includes=NONE
  54. x_libraries=NONE
  55. bindir='${exec_prefix}/bin'
  56. sbindir='${exec_prefix}/sbin'
  57. libexecdir='${exec_prefix}/libexec'
  58. datadir='${prefix}/share'
  59. sysconfdir='${prefix}/etc'
  60. sharedstatedir='${prefix}/com'
  61. localstatedir='${prefix}/var'
  62. libdir='${exec_prefix}/lib'
  63. includedir='${prefix}/include'
  64. oldincludedir='/usr/include'
  65. infodir='${prefix}/info'
  66. mandir='${prefix}/man'
  67.  
  68. # Initialize some other variables.
  69. subdirs=
  70. MFLAGS= MAKEFLAGS=
  71. # Maximum number of lines to put in a shell here document.
  72. ac_max_here_lines=12
  73.  
  74. ac_prev=
  75. for ac_option
  76. do
  77.  
  78.   # If the previous option needs an argument, assign it.
  79.   if test -n "$ac_prev"; then
  80.     eval "$ac_prev=\$ac_option"
  81.     ac_prev=
  82.     continue
  83.   fi
  84.  
  85.   case "$ac_option" in
  86.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  87.   *) ac_optarg= ;;
  88.   esac
  89.  
  90.   # Accept the important Cygnus configure options, so we can diagnose typos.
  91.  
  92.   case "$ac_option" in
  93.  
  94.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  95.     ac_prev=bindir ;;
  96.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  97.     bindir="$ac_optarg" ;;
  98.  
  99.   -build | --build | --buil | --bui | --bu)
  100.     ac_prev=build ;;
  101.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  102.     build="$ac_optarg" ;;
  103.  
  104.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  105.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  106.     ac_prev=cache_file ;;
  107.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  108.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  109.     cache_file="$ac_optarg" ;;
  110.  
  111.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  112.     ac_prev=datadir ;;
  113.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  114.   | --da=*)
  115.     datadir="$ac_optarg" ;;
  116.  
  117.   -disable-* | --disable-*)
  118.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  119.     # Reject names that are not valid shell variable names.
  120.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  121.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  122.     fi
  123.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  124.     eval "enable_${ac_feature}=no" ;;
  125.  
  126.   -enable-* | --enable-*)
  127.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  128.     # Reject names that are not valid shell variable names.
  129.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  130.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  131.     fi
  132.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  133.     case "$ac_option" in
  134.       *=*) ;;
  135.       *) ac_optarg=yes ;;
  136.     esac
  137.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  138.  
  139.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  140.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  141.   | --exec | --exe | --ex)
  142.     ac_prev=exec_prefix ;;
  143.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  144.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  145.   | --exec=* | --exe=* | --ex=*)
  146.     exec_prefix="$ac_optarg" ;;
  147.  
  148.   -gas | --gas | --ga | --g)
  149.     # Obsolete; use --with-gas.
  150.     with_gas=yes ;;
  151.  
  152.   -help | --help | --hel | --he)
  153.     # Omit some internal or obsolete options to make the list less imposing.
  154.     # This message is too long to be a string in the A/UX 3.1 sh.
  155.     cat << EOF
  156. Usage: configure [options] [host]
  157. Options: [defaults in brackets after descriptions]
  158. Configuration:
  159.   --cache-file=FILE       cache test results in FILE
  160.   --help                  print this message
  161.   --no-create             do not create output files
  162.   --quiet, --silent       do not print \`checking...' messages
  163.   --version               print the version of autoconf that created configure
  164. Directory and file names:
  165.   --prefix=PREFIX         install architecture-independent files in PREFIX
  166.                           [$ac_default_prefix]
  167.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  168.                           [same as prefix]
  169.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  170.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  171.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  172.   --datadir=DIR           read-only architecture-independent data in DIR
  173.                           [PREFIX/share]
  174.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  175.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  176.                           [PREFIX/com]
  177.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  178.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  179.   --includedir=DIR        C header files in DIR [PREFIX/include]
  180.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  181.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  182.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  183.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  184.   --program-prefix=PREFIX prepend PREFIX to installed program names
  185.   --program-suffix=SUFFIX append SUFFIX to installed program names
  186.   --program-transform-name=PROGRAM
  187.                           run sed PROGRAM on installed program names
  188. EOF
  189.     cat << EOF
  190. Host type:
  191.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  192.   --host=HOST             configure for HOST [guessed]
  193.   --target=TARGET         configure for TARGET [TARGET=HOST]
  194. Features and packages:
  195.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  196.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  197.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  198.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  199.   --x-includes=DIR        X include files are in DIR
  200.   --x-libraries=DIR       X library files are in DIR
  201. EOF
  202.     if test -n "$ac_help"; then
  203.       echo "--enable and --with options recognized:$ac_help"
  204.     fi
  205.     exit 0 ;;
  206.  
  207.   -host | --host | --hos | --ho)
  208.     ac_prev=host ;;
  209.   -host=* | --host=* | --hos=* | --ho=*)
  210.     host="$ac_optarg" ;;
  211.  
  212.   -includedir | --includedir | --includedi | --included | --include \
  213.   | --includ | --inclu | --incl | --inc)
  214.     ac_prev=includedir ;;
  215.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  216.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  217.     includedir="$ac_optarg" ;;
  218.  
  219.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  220.     ac_prev=infodir ;;
  221.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  222.     infodir="$ac_optarg" ;;
  223.  
  224.   -libdir | --libdir | --libdi | --libd)
  225.     ac_prev=libdir ;;
  226.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  227.     libdir="$ac_optarg" ;;
  228.  
  229.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  230.   | --libexe | --libex | --libe)
  231.     ac_prev=libexecdir ;;
  232.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  233.   | --libexe=* | --libex=* | --libe=*)
  234.     libexecdir="$ac_optarg" ;;
  235.  
  236.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  237.   | --localstate | --localstat | --localsta | --localst \
  238.   | --locals | --local | --loca | --loc | --lo)
  239.     ac_prev=localstatedir ;;
  240.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  241.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  242.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  243.     localstatedir="$ac_optarg" ;;
  244.  
  245.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  246.     ac_prev=mandir ;;
  247.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  248.     mandir="$ac_optarg" ;;
  249.  
  250.   -nfp | --nfp | --nf)
  251.     # Obsolete; use --without-fp.
  252.     with_fp=no ;;
  253.  
  254.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  255.   | --no-cr | --no-c)
  256.     no_create=yes ;;
  257.  
  258.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  259.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  260.     no_recursion=yes ;;
  261.  
  262.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  263.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  264.   | --oldin | --oldi | --old | --ol | --o)
  265.     ac_prev=oldincludedir ;;
  266.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  267.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  268.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  269.     oldincludedir="$ac_optarg" ;;
  270.  
  271.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  272.     ac_prev=prefix ;;
  273.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  274.     prefix="$ac_optarg" ;;
  275.  
  276.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  277.   | --program-pre | --program-pr | --program-p)
  278.     ac_prev=program_prefix ;;
  279.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  280.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  281.     program_prefix="$ac_optarg" ;;
  282.  
  283.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  284.   | --program-suf | --program-su | --program-s)
  285.     ac_prev=program_suffix ;;
  286.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  287.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  288.     program_suffix="$ac_optarg" ;;
  289.  
  290.   -program-transform-name | --program-transform-name \
  291.   | --program-transform-nam | --program-transform-na \
  292.   | --program-transform-n | --program-transform- \
  293.   | --program-transform | --program-transfor \
  294.   | --program-transfo | --program-transf \
  295.   | --program-trans | --program-tran \
  296.   | --progr-tra | --program-tr | --program-t)
  297.     ac_prev=program_transform_name ;;
  298.   -program-transform-name=* | --program-transform-name=* \
  299.   | --program-transform-nam=* | --program-transform-na=* \
  300.   | --program-transform-n=* | --program-transform-=* \
  301.   | --program-transform=* | --program-transfor=* \
  302.   | --program-transfo=* | --program-transf=* \
  303.   | --program-trans=* | --program-tran=* \
  304.   | --progr-tra=* | --program-tr=* | --program-t=*)
  305.     program_transform_name="$ac_optarg" ;;
  306.  
  307.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  308.   | -silent | --silent | --silen | --sile | --sil)
  309.     silent=yes ;;
  310.  
  311.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  312.     ac_prev=sbindir ;;
  313.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  314.   | --sbi=* | --sb=*)
  315.     sbindir="$ac_optarg" ;;
  316.  
  317.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  318.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  319.   | --sharedst | --shareds | --shared | --share | --shar \
  320.   | --sha | --sh)
  321.     ac_prev=sharedstatedir ;;
  322.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  323.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  324.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  325.   | --sha=* | --sh=*)
  326.     sharedstatedir="$ac_optarg" ;;
  327.  
  328.   -site | --site | --sit)
  329.     ac_prev=site ;;
  330.   -site=* | --site=* | --sit=*)
  331.     site="$ac_optarg" ;;
  332.  
  333.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  334.     ac_prev=srcdir ;;
  335.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  336.     srcdir="$ac_optarg" ;;
  337.  
  338.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  339.   | --syscon | --sysco | --sysc | --sys | --sy)
  340.     ac_prev=sysconfdir ;;
  341.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  342.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  343.     sysconfdir="$ac_optarg" ;;
  344.  
  345.   -target | --target | --targe | --targ | --tar | --ta | --t)
  346.     ac_prev=target ;;
  347.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  348.     target="$ac_optarg" ;;
  349.  
  350.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  351.     verbose=yes ;;
  352.  
  353.   -version | --version | --versio | --versi | --vers)
  354.     echo "configure generated by autoconf version 2.12"
  355.     exit 0 ;;
  356.  
  357.   -with-* | --with-*)
  358.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  359.     # Reject names that are not valid shell variable names.
  360.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  361.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362.     fi
  363.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  364.     case "$ac_option" in
  365.       *=*) ;;
  366.       *) ac_optarg=yes ;;
  367.     esac
  368.     eval "with_${ac_package}='$ac_optarg'" ;;
  369.  
  370.   -without-* | --without-*)
  371.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  372.     # Reject names that are not valid shell variable names.
  373.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  374.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  375.     fi
  376.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  377.     eval "with_${ac_package}=no" ;;
  378.  
  379.   --x)
  380.     # Obsolete; use --with-x.
  381.     with_x=yes ;;
  382.  
  383.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  384.   | --x-incl | --x-inc | --x-in | --x-i)
  385.     ac_prev=x_includes ;;
  386.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  387.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  388.     x_includes="$ac_optarg" ;;
  389.  
  390.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  391.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  392.     ac_prev=x_libraries ;;
  393.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  394.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  395.     x_libraries="$ac_optarg" ;;
  396.  
  397.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  398.     ;;
  399.  
  400.   *)
  401.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  402.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  403.     fi
  404.     if test "x$nonopt" != xNONE; then
  405.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  406.     fi
  407.     nonopt="$ac_option"
  408.     ;;
  409.  
  410.   esac
  411. done
  412.  
  413. if test -n "$ac_prev"; then
  414.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  415. fi
  416.  
  417. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  418.  
  419. # File descriptor usage:
  420. # 0 standard input
  421. # 1 file creation
  422. # 2 errors and warnings
  423. # 3 some systems may open it to /dev/tty
  424. # 4 used on the Kubota Titan
  425. # 6 checking for... messages and results
  426. # 5 compiler messages saved in config.log
  427. if test "$silent" = yes; then
  428.   exec 6>/dev/null
  429. else
  430.   exec 6>&1
  431. fi
  432. exec 5>./config.log
  433.  
  434. echo "\
  435. This file contains any messages produced by compilers while
  436. running configure, to aid debugging if configure makes a mistake.
  437. " 1>&5
  438.  
  439. # Strip out --no-create and --no-recursion so they do not pile up.
  440. # Also quote any args containing shell metacharacters.
  441. ac_configure_args=
  442. for ac_arg
  443. do
  444.   case "$ac_arg" in
  445.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  446.   | --no-cr | --no-c) ;;
  447.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  448.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  449.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  450.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  451.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  452.   esac
  453. done
  454.  
  455. # NLS nuisances.
  456. # Only set these to C if already set.  These must not be set unconditionally
  457. # because not all systems understand e.g. LANG=C (notably SCO).
  458. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  459. # Non-C LC_CTYPE values break the ctype check.
  460. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  461. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  462. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  463. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  464.  
  465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  466. rm -rf conftest* confdefs.h
  467. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  468. echo > confdefs.h
  469.  
  470. # A filename unique to this package, relative to the directory that
  471. # configure is in, which we can look for to find out if srcdir is correct.
  472. ac_unique_file=wilberdust
  473.  
  474. # Find the source files, if location was not specified.
  475. if test -z "$srcdir"; then
  476.   ac_srcdir_defaulted=yes
  477.   # Try the directory containing this script, then its parent.
  478.   ac_prog=$0
  479.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  480.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  481.   srcdir=$ac_confdir
  482.   if test ! -r $srcdir/$ac_unique_file; then
  483.     srcdir=..
  484.   fi
  485. else
  486.   ac_srcdir_defaulted=no
  487. fi
  488. if test ! -r $srcdir/$ac_unique_file; then
  489.   if test "$ac_srcdir_defaulted" = yes; then
  490.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  491.   else
  492.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  493.   fi
  494. fi
  495. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  496.  
  497. # Prefer explicitly selected file to automatically selected ones.
  498. if test -z "$CONFIG_SITE"; then
  499.   if test "x$prefix" != xNONE; then
  500.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  501.   else
  502.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  503.   fi
  504. fi
  505. for ac_site_file in $CONFIG_SITE; do
  506.   if test -r "$ac_site_file"; then
  507.     echo "loading site script $ac_site_file"
  508.     . "$ac_site_file"
  509.   fi
  510. done
  511.  
  512. if test -r "$cache_file"; then
  513.   echo "loading cache $cache_file"
  514.   . $cache_file
  515. else
  516.   echo "creating cache $cache_file"
  517.   > $cache_file
  518. fi
  519.  
  520. ac_ext=c
  521. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  522. ac_cpp='$CPP $CPPFLAGS'
  523. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  524. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  525. cross_compiling=$ac_cv_prog_cc_cross
  526.  
  527. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  528.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  529.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  530.     ac_n= ac_c='
  531. ' ac_t='    '
  532.   else
  533.     ac_n=-n ac_c= ac_t=
  534.   fi
  535. else
  536.   ac_n= ac_c='\c' ac_t=
  537. fi
  538.  
  539.  
  540.  
  541. GIMP_MAJOR_VERSION_NUMBER=0
  542. GIMP_MINOR_VERSION_NUMBER=99
  543. GIMP_MICRO_VERSION_NUMBER=23
  544.  
  545. ac_aux_dir=
  546. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  547.   if test -f $ac_dir/install-sh; then
  548.     ac_aux_dir=$ac_dir
  549.     ac_install_sh="$ac_aux_dir/install-sh -c"
  550.     break
  551.   elif test -f $ac_dir/install.sh; then
  552.     ac_aux_dir=$ac_dir
  553.     ac_install_sh="$ac_aux_dir/install.sh -c"
  554.     break
  555.   fi
  556. done
  557. if test -z "$ac_aux_dir"; then
  558.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  559. fi
  560. ac_config_guess=$ac_aux_dir/config.guess
  561. ac_config_sub=$ac_aux_dir/config.sub
  562. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  563.  
  564. # Find a good install program.  We prefer a C program (faster),
  565. # so one script is as good as another.  But avoid the broken or
  566. # incompatible versions:
  567. # SysV /etc/install, /usr/sbin/install
  568. # SunOS /usr/etc/install
  569. # IRIX /sbin/install
  570. # AIX /bin/install
  571. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  572. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  573. # ./install, which can be erroneously created by make from ./install.sh.
  574. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  575. echo "configure:576: checking for a BSD compatible install" >&5
  576. if test -z "$INSTALL"; then
  577. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  578.   echo $ac_n "(cached) $ac_c" 1>&6
  579. else
  580.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  581.   for ac_dir in $PATH; do
  582.     # Account for people who put trailing slashes in PATH elements.
  583.     case "$ac_dir/" in
  584.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  585.     *)
  586.       # OSF1 and SCO ODT 3.0 have their own names for install.
  587.       for ac_prog in ginstall installbsd scoinst install; do
  588.         if test -f $ac_dir/$ac_prog; then
  589.       if test $ac_prog = install &&
  590.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  591.         # AIX install.  It has an incompatible calling convention.
  592.         # OSF/1 installbsd also uses dspmsg, but is usable.
  593.         :
  594.       else
  595.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  596.         break 2
  597.       fi
  598.     fi
  599.       done
  600.       ;;
  601.     esac
  602.   done
  603.   IFS="$ac_save_IFS"
  604.  
  605. fi
  606.   if test "${ac_cv_path_install+set}" = set; then
  607.     INSTALL="$ac_cv_path_install"
  608.   else
  609.     # As a last resort, use the slow shell script.  We don't cache a
  610.     # path for INSTALL within a source directory, because that will
  611.     # break other packages using the cache if that directory is
  612.     # removed, or if the path is relative.
  613.     INSTALL="$ac_install_sh"
  614.   fi
  615. fi
  616. echo "$ac_t""$INSTALL" 1>&6
  617.  
  618. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  619. # It thinks the first close brace ends the variable substitution.
  620. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  621.  
  622. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  623.  
  624.  
  625. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  626.  
  627. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  628. echo "configure:629: checking whether build environment is sane" >&5
  629. # Just in case
  630. sleep 1
  631. echo timestamp > conftestfile
  632. # Do `set' in a subshell so we don't clobber the current shell's
  633. # arguments.  Must try -L first in case configure is actually a
  634. # symlink; some systems play weird games with the mod time of symlinks
  635. # (eg FreeBSD returns the mod time of the symlink's containing
  636. # directory).
  637. if (
  638.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  639.    if test "$*" = "X"; then
  640.       # -L didn't work.
  641.       set X `ls -t $srcdir/configure conftestfile`
  642.    fi
  643.    if test "$*" != "X $srcdir/configure conftestfile" \
  644.       && test "$*" != "X conftestfile $srcdir/configure"; then
  645.  
  646.       # If neither matched, then we have a broken ls.  This can happen
  647.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  648.       # broken ls alias from the environment.  This has actually
  649.       # happened.  Such a system could not be considered "sane".
  650.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  651. alias in your environment" 1>&2; exit 1; }
  652.    fi
  653.  
  654.    test "$2" = conftestfile
  655.    )
  656. then
  657.    # Ok.
  658.    :
  659. else
  660.    { echo "configure: error: newly created file is older than distributed files!
  661. Check your system clock" 1>&2; exit 1; }
  662. fi
  663. rm -f conftest*
  664. echo "$ac_t""yes" 1>&6
  665. if test "$program_transform_name" = s,x,x,; then
  666.   program_transform_name=
  667. else
  668.   # Double any \ or $.  echo might interpret backslashes.
  669.   cat <<\EOF_SED > conftestsed
  670. s,\\,\\\\,g; s,\$,$$,g
  671. EOF_SED
  672.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  673.   rm -f conftestsed
  674. fi
  675. test "$program_prefix" != NONE &&
  676.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  677. # Use a double $ so make ignores it.
  678. test "$program_suffix" != NONE &&
  679.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  680.  
  681. # sed with no file args requires a program.
  682. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  683.  
  684. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  685. echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5
  686. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  687. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  688.   echo $ac_n "(cached) $ac_c" 1>&6
  689. else
  690.   cat > conftestmake <<\EOF
  691. all:
  692.     @echo 'ac_maketemp="${MAKE}"'
  693. EOF
  694. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  695. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  696. if test -n "$ac_maketemp"; then
  697.   eval ac_cv_prog_make_${ac_make}_set=yes
  698. else
  699.   eval ac_cv_prog_make_${ac_make}_set=no
  700. fi
  701. rm -f conftestmake
  702. fi
  703. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  704.   echo "$ac_t""yes" 1>&6
  705.   SET_MAKE=
  706. else
  707.   echo "$ac_t""no" 1>&6
  708.   SET_MAKE="MAKE=${MAKE-make}"
  709. fi
  710.  
  711.  
  712. PACKAGE=gimp
  713.  
  714. VERSION=0.99.23
  715.  
  716. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  717.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  718. fi
  719. cat >> confdefs.h <<EOF
  720. #define PACKAGE "$PACKAGE"
  721. EOF
  722.  
  723. cat >> confdefs.h <<EOF
  724. #define VERSION "$VERSION"
  725. EOF
  726.  
  727.  
  728.  
  729. missing_dir=`cd $ac_aux_dir && pwd`
  730. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  731. echo "configure:732: checking for working aclocal" >&5
  732. # Run test in a subshell; some versions of sh will print an error if
  733. # an executable is not found, even if stderr is redirected.
  734. # Redirect stdin to placate older versions of autoconf.  Sigh.
  735. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  736.    ACLOCAL=aclocal
  737.    echo "$ac_t""found" 1>&6
  738. else
  739.    ACLOCAL="$missing_dir/missing aclocal"
  740.    echo "$ac_t""missing" 1>&6
  741. fi
  742.  
  743. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  744. echo "configure:745: checking for working autoconf" >&5
  745. # Run test in a subshell; some versions of sh will print an error if
  746. # an executable is not found, even if stderr is redirected.
  747. # Redirect stdin to placate older versions of autoconf.  Sigh.
  748. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  749.    AUTOCONF=autoconf
  750.    echo "$ac_t""found" 1>&6
  751. else
  752.    AUTOCONF="$missing_dir/missing autoconf"
  753.    echo "$ac_t""missing" 1>&6
  754. fi
  755.  
  756. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  757. echo "configure:758: checking for working automake" >&5
  758. # Run test in a subshell; some versions of sh will print an error if
  759. # an executable is not found, even if stderr is redirected.
  760. # Redirect stdin to placate older versions of autoconf.  Sigh.
  761. if (automake --version) < /dev/null > /dev/null 2>&1; then
  762.    AUTOMAKE=automake
  763.    echo "$ac_t""found" 1>&6
  764. else
  765.    AUTOMAKE="$missing_dir/missing automake"
  766.    echo "$ac_t""missing" 1>&6
  767. fi
  768.  
  769. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  770. echo "configure:771: checking for working autoheader" >&5
  771. # Run test in a subshell; some versions of sh will print an error if
  772. # an executable is not found, even if stderr is redirected.
  773. # Redirect stdin to placate older versions of autoconf.  Sigh.
  774. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  775.    AUTOHEADER=autoheader
  776.    echo "$ac_t""found" 1>&6
  777. else
  778.    AUTOHEADER="$missing_dir/missing autoheader"
  779.    echo "$ac_t""missing" 1>&6
  780. fi
  781.  
  782. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  783. echo "configure:784: checking for working makeinfo" >&5
  784. # Run test in a subshell; some versions of sh will print an error if
  785. # an executable is not found, even if stderr is redirected.
  786. # Redirect stdin to placate older versions of autoconf.  Sigh.
  787. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  788.    MAKEINFO=makeinfo
  789.    echo "$ac_t""found" 1>&6
  790. else
  791.    MAKEINFO="$missing_dir/missing makeinfo"
  792.    echo "$ac_t""missing" 1>&6
  793. fi
  794.  
  795.  
  796.  
  797. # Check whether --enable-shared or --disable-shared was given.
  798. if test "${enable_shared+set}" = set; then
  799.   enableval="$enable_shared"
  800.   p=${PACKAGE-default}
  801. case "$enableval" in
  802. yes) enable_shared=yes ;;
  803. no) enable_shared=no ;;
  804. *)
  805.   enable_shared=no
  806.   # Look at the argument we got.  We use all the common list separators.
  807.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  808.   for pkg in $enableval; do
  809.     if test "X$pkg" = "X$p"; then
  810.       enable_shared=yes
  811.     fi
  812.   done
  813.   IFS="$ac_save_ifs"
  814.   ;;
  815. esac
  816. else
  817.   enable_shared=yes
  818. fi
  819.  
  820. # Check whether --enable-static or --disable-static was given.
  821. if test "${enable_static+set}" = set; then
  822.   enableval="$enable_static"
  823.   p=${PACKAGE-default}
  824. case "$enableval" in
  825. yes) enable_static=yes ;;
  826. no) enable_static=no ;;
  827. *)
  828.   enable_static=no
  829.   # Look at the argument we got.  We use all the common list separators.
  830.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  831.   for pkg in $enableval; do
  832.     if test "X$pkg" = "X$p"; then
  833.       enable_static=yes
  834.     fi
  835.   done
  836.   IFS="$ac_save_ifs"
  837.   ;;
  838. esac
  839. else
  840.   enable_static=yes
  841. fi
  842.  
  843.  
  844. # Make sure we can run config.sub.
  845. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  846. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  847. fi
  848.  
  849. echo $ac_n "checking host system type""... $ac_c" 1>&6
  850. echo "configure:851: checking host system type" >&5
  851.  
  852. host_alias=$host
  853. case "$host_alias" in
  854. NONE)
  855.   case $nonopt in
  856.   NONE)
  857.     if host_alias=`$ac_config_guess`; then :
  858.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  859.     fi ;;
  860.   *) host_alias=$nonopt ;;
  861.   esac ;;
  862. esac
  863.  
  864. host=`$ac_config_sub $host_alias`
  865. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  866. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  867. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  868. echo "$ac_t""$host" 1>&6
  869.  
  870. # Extract the first word of "ranlib", so it can be a program name with args.
  871. set dummy ranlib; ac_word=$2
  872. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  873. echo "configure:874: checking for $ac_word" >&5
  874. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  875.   echo $ac_n "(cached) $ac_c" 1>&6
  876. else
  877.   if test -n "$RANLIB"; then
  878.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  879. else
  880.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  881.   for ac_dir in $PATH; do
  882.     test -z "$ac_dir" && ac_dir=.
  883.     if test -f $ac_dir/$ac_word; then
  884.       ac_cv_prog_RANLIB="ranlib"
  885.       break
  886.     fi
  887.   done
  888.   IFS="$ac_save_ifs"
  889.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  890. fi
  891. fi
  892. RANLIB="$ac_cv_prog_RANLIB"
  893. if test -n "$RANLIB"; then
  894.   echo "$ac_t""$RANLIB" 1>&6
  895. else
  896.   echo "$ac_t""no" 1>&6
  897. fi
  898.  
  899. # Extract the first word of "gcc", so it can be a program name with args.
  900. set dummy gcc; ac_word=$2
  901. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  902. echo "configure:903: checking for $ac_word" >&5
  903. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  904.   echo $ac_n "(cached) $ac_c" 1>&6
  905. else
  906.   if test -n "$CC"; then
  907.   ac_cv_prog_CC="$CC" # Let the user override the test.
  908. else
  909.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  910.   for ac_dir in $PATH; do
  911.     test -z "$ac_dir" && ac_dir=.
  912.     if test -f $ac_dir/$ac_word; then
  913.       ac_cv_prog_CC="gcc"
  914.       break
  915.     fi
  916.   done
  917.   IFS="$ac_save_ifs"
  918. fi
  919. fi
  920. CC="$ac_cv_prog_CC"
  921. if test -n "$CC"; then
  922.   echo "$ac_t""$CC" 1>&6
  923. else
  924.   echo "$ac_t""no" 1>&6
  925. fi
  926.  
  927. if test -z "$CC"; then
  928.   # Extract the first word of "cc", so it can be a program name with args.
  929. set dummy cc; ac_word=$2
  930. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  931. echo "configure:932: checking for $ac_word" >&5
  932. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  933.   echo $ac_n "(cached) $ac_c" 1>&6
  934. else
  935.   if test -n "$CC"; then
  936.   ac_cv_prog_CC="$CC" # Let the user override the test.
  937. else
  938.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  939.   ac_prog_rejected=no
  940.   for ac_dir in $PATH; do
  941.     test -z "$ac_dir" && ac_dir=.
  942.     if test -f $ac_dir/$ac_word; then
  943.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  944.         ac_prog_rejected=yes
  945.     continue
  946.       fi
  947.       ac_cv_prog_CC="cc"
  948.       break
  949.     fi
  950.   done
  951.   IFS="$ac_save_ifs"
  952. if test $ac_prog_rejected = yes; then
  953.   # We found a bogon in the path, so make sure we never use it.
  954.   set dummy $ac_cv_prog_CC
  955.   shift
  956.   if test $# -gt 0; then
  957.     # We chose a different compiler from the bogus one.
  958.     # However, it has the same basename, so the bogon will be chosen
  959.     # first if we set CC to just the basename; use the full file name.
  960.     shift
  961.     set dummy "$ac_dir/$ac_word" "$@"
  962.     shift
  963.     ac_cv_prog_CC="$@"
  964.   fi
  965. fi
  966. fi
  967. fi
  968. CC="$ac_cv_prog_CC"
  969. if test -n "$CC"; then
  970.   echo "$ac_t""$CC" 1>&6
  971. else
  972.   echo "$ac_t""no" 1>&6
  973. fi
  974.  
  975.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  976. fi
  977.  
  978. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  979. echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  980.  
  981. ac_ext=c
  982. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  983. ac_cpp='$CPP $CPPFLAGS'
  984. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  985. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  986. cross_compiling=$ac_cv_prog_cc_cross
  987.  
  988. cat > conftest.$ac_ext <<EOF
  989. #line 990 "configure"
  990. #include "confdefs.h"
  991. main(){return(0);}
  992. EOF
  993. if { (eval echo configure:994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  994.   ac_cv_prog_cc_works=yes
  995.   # If we can't run a trivial program, we are probably using a cross compiler.
  996.   if (./conftest; exit) 2>/dev/null; then
  997.     ac_cv_prog_cc_cross=no
  998.   else
  999.     ac_cv_prog_cc_cross=yes
  1000.   fi
  1001. else
  1002.   echo "configure: failed program was:" >&5
  1003.   cat conftest.$ac_ext >&5
  1004.   ac_cv_prog_cc_works=no
  1005. fi
  1006. rm -fr conftest*
  1007.  
  1008. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1009. if test $ac_cv_prog_cc_works = no; then
  1010.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1011. fi
  1012. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1013. echo "configure:1014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1014. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1015. cross_compiling=$ac_cv_prog_cc_cross
  1016.  
  1017. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1018. echo "configure:1019: checking whether we are using GNU C" >&5
  1019. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1020.   echo $ac_n "(cached) $ac_c" 1>&6
  1021. else
  1022.   cat > conftest.c <<EOF
  1023. #ifdef __GNUC__
  1024.   yes;
  1025. #endif
  1026. EOF
  1027. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1028.   ac_cv_prog_gcc=yes
  1029. else
  1030.   ac_cv_prog_gcc=no
  1031. fi
  1032. fi
  1033.  
  1034. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1035.  
  1036. if test $ac_cv_prog_gcc = yes; then
  1037.   GCC=yes
  1038.   ac_test_CFLAGS="${CFLAGS+set}"
  1039.   ac_save_CFLAGS="$CFLAGS"
  1040.   CFLAGS=
  1041.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1042. echo "configure:1043: checking whether ${CC-cc} accepts -g" >&5
  1043. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1044.   echo $ac_n "(cached) $ac_c" 1>&6
  1045. else
  1046.   echo 'void f(){}' > conftest.c
  1047. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1048.   ac_cv_prog_cc_g=yes
  1049. else
  1050.   ac_cv_prog_cc_g=no
  1051. fi
  1052. rm -f conftest*
  1053.  
  1054. fi
  1055.  
  1056. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1057.   if test "$ac_test_CFLAGS" = set; then
  1058.     CFLAGS="$ac_save_CFLAGS"
  1059.   elif test $ac_cv_prog_cc_g = yes; then
  1060.     CFLAGS="-g -O2"
  1061.   else
  1062.     CFLAGS="-O2"
  1063.   fi
  1064. else
  1065.   GCC=
  1066.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1067. fi
  1068.  
  1069. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1070. if test "${with_gnu_ld+set}" = set; then
  1071.   withval="$with_gnu_ld"
  1072.   test "$withval" = no || with_gnu_ld=yes
  1073. else
  1074.   with_gnu_ld=no
  1075. fi
  1076.  
  1077.  
  1078. ac_prog=ld
  1079. if test "$ac_cv_prog_gcc" = yes; then
  1080.   # Check if gcc -print-prog-name=ld gives a path.
  1081.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1082. echo "configure:1083: checking for ld used by GCC" >&5
  1083.   ac_prog=`($CC -print-prog-name=ld) 2>&5`
  1084.   case "$ac_prog" in
  1085.   # Accept absolute paths.
  1086.   /* | A-Za-z:\\*)
  1087.     test -z "$LD" && LD="$ac_prog"
  1088.     ;;
  1089.   "")
  1090.     # If it fails, then pretend we aren't using GCC.
  1091.     ac_prog=ld
  1092.     ;;
  1093.   *)
  1094.     # If it is relative, then search for the first ld in PATH.
  1095.     with_gnu_ld=unknown
  1096.     ;;
  1097.   esac
  1098. elif test "$with_gnu_ld" = yes; then
  1099.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1100. echo "configure:1101: checking for GNU ld" >&5
  1101. else
  1102.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1103. echo "configure:1104: checking for non-GNU ld" >&5
  1104. fi
  1105. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1106.   echo $ac_n "(cached) $ac_c" 1>&6
  1107. else
  1108.   if test -z "$LD"; then
  1109.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1110.   for ac_dir in $PATH; do
  1111.     test -z "$ac_dir" && ac_dir=.
  1112.     if test -f "$ac_dir/$ac_prog"; then
  1113.       ac_cv_path_LD="$ac_dir/$ac_prog"
  1114.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1115.       # but apparently some GNU ld's only accept -v.
  1116.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1117.       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1118.     test "$with_gnu_ld" != no && break
  1119.       else
  1120.         test "$with_gnu_ld" != yes && break
  1121.       fi
  1122.     fi
  1123.   done
  1124.   IFS="$ac_save_ifs"
  1125. else
  1126.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1127. fi
  1128. fi
  1129.  
  1130. LD="$ac_cv_path_LD"
  1131. if test -n "$LD"; then
  1132.   echo "$ac_t""$LD" 1>&6
  1133. else
  1134.   echo "$ac_t""no" 1>&6
  1135. fi
  1136. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1137.  
  1138. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1139. echo "configure:1140: checking if the linker ($LD) is GNU ld" >&5
  1140. if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
  1141.   echo $ac_n "(cached) $ac_c" 1>&6
  1142. else
  1143.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1144. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1145.   ac_cv_prog_gnu_ld=yes
  1146. else
  1147.   ac_cv_prog_gnu_ld=no
  1148. fi
  1149. fi
  1150.  
  1151. echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
  1152.  
  1153.  
  1154. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1155. echo "configure:1156: checking for BSD-compatible nm" >&5
  1156. if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
  1157.   echo $ac_n "(cached) $ac_c" 1>&6
  1158. else
  1159.   case "$NM" in
  1160. /* | A-Za-z:\\*)
  1161.   ac_cv_path_NM="$NM" # Let the user override the test with a path.
  1162.   ;;
  1163. *)
  1164.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1165.   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
  1166.     test -z "$ac_dir" && ac_dir=.
  1167.     if test -f $ac_dir/nm; then
  1168.       # Check to see if the nm accepts a BSD-compat flag.
  1169.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1170.       #   nm: unknown option "B" ignored
  1171.       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1172.         ac_cv_path_NM="$ac_dir/nm -B"
  1173.       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1174.         ac_cv_path_NM="$ac_dir/nm -p"
  1175.       else
  1176.         ac_cv_path_NM="$ac_dir/nm"
  1177.       fi
  1178.       break
  1179.     fi
  1180.   done
  1181.   IFS="$ac_save_ifs"
  1182.   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  1183.   ;;
  1184. esac
  1185. fi
  1186.  
  1187. NM="$ac_cv_path_NM"
  1188. echo "$ac_t""$NM" 1>&6
  1189.  
  1190.  
  1191. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1192. echo "configure:1193: checking whether ln -s works" >&5
  1193. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1194.   echo $ac_n "(cached) $ac_c" 1>&6
  1195. else
  1196.   rm -f conftestdata
  1197. if ln -s X conftestdata 2>/dev/null
  1198. then
  1199.   rm -f conftestdata
  1200.   ac_cv_prog_LN_S="ln -s"
  1201. else
  1202.   ac_cv_prog_LN_S=ln
  1203. fi
  1204. fi
  1205. LN_S="$ac_cv_prog_LN_S"
  1206. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1207.   echo "$ac_t""yes" 1>&6
  1208. else
  1209.   echo "$ac_t""no" 1>&6
  1210. fi
  1211.  
  1212. # Always use our own libtool.
  1213. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1214.  
  1215. # Check for any special flags to pass to ltconfig.
  1216. libtool_flags=
  1217. test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  1218. test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  1219. test "$silent" = yes && libtool_flags="$libtool_flags --silent"
  1220. test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  1221. test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  1222.  
  1223. # Some flags need to be propagated to the compiler or linker for good
  1224. # libtool support.
  1225. case "$host" in
  1226. *-*-irix6*)
  1227.   # Find out which ABI we are using.
  1228.   echo '#line 1229 "configure"' > conftest.$ac_ext
  1229.   if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1230.     case "`/usr/bin/file conftest.o`" in
  1231.     *32-bit*)
  1232.       LD="${LD-ld} -32"
  1233.       ;;
  1234.     *N32*)
  1235.       LD="${LD-ld} -n32"
  1236.       ;;
  1237.     *64-bit*)
  1238.       LD="${LD-ld} -64"
  1239.       ;;
  1240.     esac
  1241.   fi
  1242.   rm -rf conftest*
  1243.   ;;
  1244.  
  1245. *-*-sco3.2v5*)
  1246.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1247.   CFLAGS="$CFLAGS -belf"
  1248.   ;;
  1249. esac
  1250.  
  1251. # Actually configure libtool.  ac_aux_dir is where install-sh is found.
  1252. CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  1253. LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
  1254. ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
  1255. $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
  1256. || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  1257.  
  1258.  
  1259. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  1260. echo "configure:1261: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1261.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1262. if test "${enable_maintainer_mode+set}" = set; then
  1263.   enableval="$enable_maintainer_mode"
  1264.   USE_MAINTAINER_MODE=$enableval
  1265. else
  1266.   USE_MAINTAINER_MODE=no
  1267. fi
  1268.  
  1269.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  1270.   if test $USE_MAINTAINER_MODE = yes; then
  1271.     MAINT=
  1272.   else
  1273.     MAINT='#M#'
  1274.   fi
  1275.   
  1276.  
  1277.  
  1278.  
  1279. # Make sure we can run config.sub.
  1280. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  1281. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1282. fi
  1283.  
  1284. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1285. echo "configure:1286: checking host system type" >&5
  1286.  
  1287. host_alias=$host
  1288. case "$host_alias" in
  1289. NONE)
  1290.   case $nonopt in
  1291.   NONE)
  1292.     if host_alias=`$ac_config_guess`; then :
  1293.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1294.     fi ;;
  1295.   *) host_alias=$nonopt ;;
  1296.   esac ;;
  1297. esac
  1298.  
  1299. host=`$ac_config_sub $host_alias`
  1300. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1301. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1302. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1303. echo "$ac_t""$host" 1>&6
  1304.  
  1305.  
  1306. # Check whether --enable-debug or --disable-debug was given.
  1307. if test "${enable_debug+set}" = set; then
  1308.   enableval="$enable_debug"
  1309.   if eval "test x$enable_debug = xyes"; then
  1310.   DEBUGFLAG="-g"
  1311. fi
  1312. fi
  1313.  
  1314.  
  1315. # Check whether --enable-ansi or --disable-ansi was given.
  1316. if test "${enable_ansi+set}" = set; then
  1317.   enableval="$enable_ansi"
  1318.   :
  1319. else
  1320.   enable_ansi=no
  1321. fi
  1322.  
  1323.  
  1324.  
  1325.  
  1326. if test -n "$DEBUGFLAG"; then
  1327.   CFLAGS="$DEBUGFLAG $CFLAGS"
  1328. fi
  1329.  
  1330. # Extract the first word of "gcc", so it can be a program name with args.
  1331. set dummy gcc; ac_word=$2
  1332. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1333. echo "configure:1334: checking for $ac_word" >&5
  1334. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1335.   echo $ac_n "(cached) $ac_c" 1>&6
  1336. else
  1337.   if test -n "$CC"; then
  1338.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1339. else
  1340.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1341.   for ac_dir in $PATH; do
  1342.     test -z "$ac_dir" && ac_dir=.
  1343.     if test -f $ac_dir/$ac_word; then
  1344.       ac_cv_prog_CC="gcc"
  1345.       break
  1346.     fi
  1347.   done
  1348.   IFS="$ac_save_ifs"
  1349. fi
  1350. fi
  1351. CC="$ac_cv_prog_CC"
  1352. if test -n "$CC"; then
  1353.   echo "$ac_t""$CC" 1>&6
  1354. else
  1355.   echo "$ac_t""no" 1>&6
  1356. fi
  1357.  
  1358. if test -z "$CC"; then
  1359.   # Extract the first word of "cc", so it can be a program name with args.
  1360. set dummy cc; ac_word=$2
  1361. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1362. echo "configure:1363: checking for $ac_word" >&5
  1363. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1364.   echo $ac_n "(cached) $ac_c" 1>&6
  1365. else
  1366.   if test -n "$CC"; then
  1367.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1368. else
  1369.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1370.   ac_prog_rejected=no
  1371.   for ac_dir in $PATH; do
  1372.     test -z "$ac_dir" && ac_dir=.
  1373.     if test -f $ac_dir/$ac_word; then
  1374.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1375.         ac_prog_rejected=yes
  1376.     continue
  1377.       fi
  1378.       ac_cv_prog_CC="cc"
  1379.       break
  1380.     fi
  1381.   done
  1382.   IFS="$ac_save_ifs"
  1383. if test $ac_prog_rejected = yes; then
  1384.   # We found a bogon in the path, so make sure we never use it.
  1385.   set dummy $ac_cv_prog_CC
  1386.   shift
  1387.   if test $# -gt 0; then
  1388.     # We chose a different compiler from the bogus one.
  1389.     # However, it has the same basename, so the bogon will be chosen
  1390.     # first if we set CC to just the basename; use the full file name.
  1391.     shift
  1392.     set dummy "$ac_dir/$ac_word" "$@"
  1393.     shift
  1394.     ac_cv_prog_CC="$@"
  1395.   fi
  1396. fi
  1397. fi
  1398. fi
  1399. CC="$ac_cv_prog_CC"
  1400. if test -n "$CC"; then
  1401.   echo "$ac_t""$CC" 1>&6
  1402. else
  1403.   echo "$ac_t""no" 1>&6
  1404. fi
  1405.  
  1406.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1407. fi
  1408.  
  1409. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1410. echo "configure:1411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1411.  
  1412. ac_ext=c
  1413. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1414. ac_cpp='$CPP $CPPFLAGS'
  1415. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1416. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1417. cross_compiling=$ac_cv_prog_cc_cross
  1418.  
  1419. cat > conftest.$ac_ext <<EOF
  1420. #line 1421 "configure"
  1421. #include "confdefs.h"
  1422. main(){return(0);}
  1423. EOF
  1424. if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1425.   ac_cv_prog_cc_works=yes
  1426.   # If we can't run a trivial program, we are probably using a cross compiler.
  1427.   if (./conftest; exit) 2>/dev/null; then
  1428.     ac_cv_prog_cc_cross=no
  1429.   else
  1430.     ac_cv_prog_cc_cross=yes
  1431.   fi
  1432. else
  1433.   echo "configure: failed program was:" >&5
  1434.   cat conftest.$ac_ext >&5
  1435.   ac_cv_prog_cc_works=no
  1436. fi
  1437. rm -fr conftest*
  1438.  
  1439. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1440. if test $ac_cv_prog_cc_works = no; then
  1441.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1442. fi
  1443. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1444. echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1445. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1446. cross_compiling=$ac_cv_prog_cc_cross
  1447.  
  1448. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1449. echo "configure:1450: checking whether we are using GNU C" >&5
  1450. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1451.   echo $ac_n "(cached) $ac_c" 1>&6
  1452. else
  1453.   cat > conftest.c <<EOF
  1454. #ifdef __GNUC__
  1455.   yes;
  1456. #endif
  1457. EOF
  1458. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1459.   ac_cv_prog_gcc=yes
  1460. else
  1461.   ac_cv_prog_gcc=no
  1462. fi
  1463. fi
  1464.  
  1465. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1466.  
  1467. if test $ac_cv_prog_gcc = yes; then
  1468.   GCC=yes
  1469.   ac_test_CFLAGS="${CFLAGS+set}"
  1470.   ac_save_CFLAGS="$CFLAGS"
  1471.   CFLAGS=
  1472.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1473. echo "configure:1474: checking whether ${CC-cc} accepts -g" >&5
  1474. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1475.   echo $ac_n "(cached) $ac_c" 1>&6
  1476. else
  1477.   echo 'void f(){}' > conftest.c
  1478. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1479.   ac_cv_prog_cc_g=yes
  1480. else
  1481.   ac_cv_prog_cc_g=no
  1482. fi
  1483. rm -f conftest*
  1484.  
  1485. fi
  1486.  
  1487. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1488.   if test "$ac_test_CFLAGS" = set; then
  1489.     CFLAGS="$ac_save_CFLAGS"
  1490.   elif test $ac_cv_prog_cc_g = yes; then
  1491.     CFLAGS="-g -O2"
  1492.   else
  1493.     CFLAGS="-O2"
  1494.   fi
  1495. else
  1496.   GCC=
  1497.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1498. fi
  1499.  
  1500.  
  1501.  
  1502.  
  1503. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1504. echo "configure:1505: checking for ${CC-cc} option to accept ANSI C" >&5
  1505. if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
  1506.   echo $ac_n "(cached) $ac_c" 1>&6
  1507. else
  1508.   am_cv_prog_cc_stdc=no
  1509. ac_save_CC="$CC"
  1510. # Don't try gcc -ansi; that turns off useful extensions and
  1511. # breaks some systems' header files.
  1512. # AIX            -qlanglvl=ansi
  1513. # Ultrix and OSF/1    -std1
  1514. # HP-UX            -Aa -D_HPUX_SOURCE
  1515. # SVR4            -Xc -D__EXTENSIONS__
  1516. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1517. do
  1518.   CC="$ac_save_CC $ac_arg"
  1519.   cat > conftest.$ac_ext <<EOF
  1520. #line 1521 "configure"
  1521. #include "confdefs.h"
  1522. #include <stdarg.h>
  1523. #include <stdio.h>
  1524. #include <sys/types.h>
  1525. #include <sys/stat.h>
  1526. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  1527. struct buf { int x; };
  1528. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1529. static char *e (p, i)
  1530.      char **p;
  1531.      int i;
  1532. {
  1533.   return p[i];
  1534. }
  1535. static char *f (char * (*g) (char **, int), char **p, ...)
  1536. {
  1537.   char *s;
  1538.   va_list v;
  1539.   va_start (v,p);
  1540.   s = g (p, va_arg (v,int));
  1541.   va_end (v);
  1542.   return s;
  1543. }
  1544. int test (int i, double x);
  1545. struct s1 {int (*f) (int a);};
  1546. struct s2 {int (*f) (double a);};
  1547. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1548. int argc;
  1549. char **argv;
  1550.  
  1551. int main() {
  1552.  
  1553. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  1554.  
  1555. ; return 0; }
  1556. EOF
  1557. if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1558.   rm -rf conftest*
  1559.   am_cv_prog_cc_stdc="$ac_arg"; break
  1560. else
  1561.   echo "configure: failed program was:" >&5
  1562.   cat conftest.$ac_ext >&5
  1563. fi
  1564. rm -f conftest*
  1565. done
  1566. CC="$ac_save_CC"
  1567.  
  1568. fi
  1569.  
  1570. if test -z "$am_cv_prog_cc_stdc"; then
  1571.   echo "$ac_t""none needed" 1>&6
  1572. else
  1573.   echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
  1574. fi
  1575. case "x$am_cv_prog_cc_stdc" in
  1576.   x|xno) ;;
  1577.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  1578. esac
  1579.  
  1580. # Find a good install program.  We prefer a C program (faster),
  1581. # so one script is as good as another.  But avoid the broken or
  1582. # incompatible versions:
  1583. # SysV /etc/install, /usr/sbin/install
  1584. # SunOS /usr/etc/install
  1585. # IRIX /sbin/install
  1586. # AIX /bin/install
  1587. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1588. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1589. # ./install, which can be erroneously created by make from ./install.sh.
  1590. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1591. echo "configure:1592: checking for a BSD compatible install" >&5
  1592. if test -z "$INSTALL"; then
  1593. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1594.   echo $ac_n "(cached) $ac_c" 1>&6
  1595. else
  1596.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  1597.   for ac_dir in $PATH; do
  1598.     # Account for people who put trailing slashes in PATH elements.
  1599.     case "$ac_dir/" in
  1600.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1601.     *)
  1602.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1603.       for ac_prog in ginstall installbsd scoinst install; do
  1604.         if test -f $ac_dir/$ac_prog; then
  1605.       if test $ac_prog = install &&
  1606.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1607.         # AIX install.  It has an incompatible calling convention.
  1608.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1609.         :
  1610.       else
  1611.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1612.         break 2
  1613.       fi
  1614.     fi
  1615.       done
  1616.       ;;
  1617.     esac
  1618.   done
  1619.   IFS="$ac_save_IFS"
  1620.  
  1621. fi
  1622.   if test "${ac_cv_path_install+set}" = set; then
  1623.     INSTALL="$ac_cv_path_install"
  1624.   else
  1625.     # As a last resort, use the slow shell script.  We don't cache a
  1626.     # path for INSTALL within a source directory, because that will
  1627.     # break other packages using the cache if that directory is
  1628.     # removed, or if the path is relative.
  1629.     INSTALL="$ac_install_sh"
  1630.   fi
  1631. fi
  1632. echo "$ac_t""$INSTALL" 1>&6
  1633.  
  1634. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1635. # It thinks the first close brace ends the variable substitution.
  1636. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1637.  
  1638. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1639.  
  1640. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1641. echo "configure:1642: checking whether ln -s works" >&5
  1642. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1643.   echo $ac_n "(cached) $ac_c" 1>&6
  1644. else
  1645.   rm -f conftestdata
  1646. if ln -s X conftestdata 2>/dev/null
  1647. then
  1648.   rm -f conftestdata
  1649.   ac_cv_prog_LN_S="ln -s"
  1650. else
  1651.   ac_cv_prog_LN_S=ln
  1652. fi
  1653. fi
  1654. LN_S="$ac_cv_prog_LN_S"
  1655. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1656.   echo "$ac_t""yes" 1>&6
  1657. else
  1658.   echo "$ac_t""no" 1>&6
  1659. fi
  1660.  
  1661. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1662. echo "configure:1663: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1663. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1664. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1665.   echo $ac_n "(cached) $ac_c" 1>&6
  1666. else
  1667.   cat > conftestmake <<\EOF
  1668. all:
  1669.     @echo 'ac_maketemp="${MAKE}"'
  1670. EOF
  1671. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1672. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1673. if test -n "$ac_maketemp"; then
  1674.   eval ac_cv_prog_make_${ac_make}_set=yes
  1675. else
  1676.   eval ac_cv_prog_make_${ac_make}_set=no
  1677. fi
  1678. rm -f conftestmake
  1679. fi
  1680. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1681.   echo "$ac_t""yes" 1>&6
  1682.   SET_MAKE=
  1683. else
  1684.   echo "$ac_t""no" 1>&6
  1685.   SET_MAKE="MAKE=${MAKE-make}"
  1686. fi
  1687.  
  1688.  
  1689.           # Extract the first word of "gtk-config", so it can be a program name with args.
  1690. set dummy gtk-config; ac_word=$2
  1691. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1692. echo "configure:1693: checking for $ac_word" >&5
  1693. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  1694.   echo $ac_n "(cached) $ac_c" 1>&6
  1695. else
  1696.   case "$GTK_CONFIG" in
  1697.   /*)
  1698.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  1699.   ;;
  1700.   *)
  1701.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1702.   for ac_dir in $PATH; do
  1703.     test -z "$ac_dir" && ac_dir=.
  1704.     if test -f $ac_dir/$ac_word; then
  1705.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  1706.       break
  1707.     fi
  1708.   done
  1709.   IFS="$ac_save_ifs"
  1710.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  1711.   ;;
  1712. esac
  1713. fi
  1714. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  1715. if test -n "$GTK_CONFIG"; then
  1716.   echo "$ac_t""$GTK_CONFIG" 1>&6
  1717. else
  1718.   echo "$ac_t""no" 1>&6
  1719. fi
  1720.  
  1721.   min_gtk_version=0.99.7
  1722.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  1723. echo "configure:1724: checking for GTK - version >= $min_gtk_version" >&5
  1724.   no_gtk=""
  1725.   if test "$GTK_CONFIG" != "no" ; then
  1726.     GTK_CFLAGS=`$GTK_CONFIG --cflags`
  1727.     GTK_LIBS=`$GTK_CONFIG --libs`
  1728.     ac_save_CFLAGS="$CFLAGS"
  1729.     ac_save_LIBS="$LIBS"
  1730.     CFLAGS="$CFLAGS $GTK_CFLAGS"
  1731.     LIBS="$LIBS $GTK_LIBS"
  1732.     if test "$cross_compiling" = yes; then
  1733.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1734. else
  1735.   cat > conftest.$ac_ext <<EOF
  1736. #line 1737 "configure"
  1737. #include "confdefs.h"
  1738.  
  1739. #include <gtk/gtk.h>
  1740. #include <stdio.h>
  1741.  
  1742. int 
  1743. main ()
  1744. {
  1745.   int major, minor, micro;
  1746.  
  1747.   if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
  1748.      printf("%s, bad version string\n", "$min_gtk_version");
  1749.      exit(1);
  1750.    }
  1751.  
  1752.    return !((gtk_major_version > major) ||
  1753.            ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  1754.          ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
  1755. }
  1756.  
  1757. EOF
  1758. if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1759. then
  1760.   :
  1761. else
  1762.   echo "configure: failed program was:" >&5
  1763.   cat conftest.$ac_ext >&5
  1764.   rm -fr conftest*
  1765.   no_gtk=yes
  1766. fi
  1767. rm -fr conftest*
  1768. fi
  1769.  
  1770.      CFLAGS="$ac_save_CFLAGS"
  1771.      LIBS="$ac_save_LIBS"
  1772.   else
  1773.      no_gtk=yes
  1774.   fi
  1775.   if test "x$no_gtk" = x ; then
  1776.      echo "$ac_t""yes" 1>&6
  1777.      :     
  1778.   else
  1779.      echo "$ac_t""no" 1>&6
  1780.      GTK_CFLAGS=""
  1781.      GTK_LIBS=""
  1782.      { echo "configure: error: Cannot include/link gtk/gdk/glib--check CFLAGS/LDFLAGS" 1>&2; exit 1; }
  1783.   fi
  1784.   
  1785.   
  1786.  
  1787.     X_LIBS="-lgimpui -lgimp $GTK_LIBS"
  1788.         X_CFLAGS=$GTK_CFLAGS
  1789.         
  1790.         
  1791.  
  1792.  
  1793. if eval "test x$GCC = xyes"; then
  1794.   if echo "$CFLAGS" | grep "\-Wall" > /dev/null 2> /dev/null; then
  1795.     CFLAGS="$CFLAGS"
  1796.   else
  1797.     CFLAGS="$CFLAGS -Wall"
  1798.   fi
  1799.  
  1800.   if eval "test x$enable_ansi = xyes"; then
  1801.     if echo "$CFLAGS" | grep "\-ansi" > /dev/null 2> /dev/null; then
  1802.       CFLAGS="$CFLAGS"
  1803.     else
  1804.       CFLAGS="$CFLAGS -ansi"
  1805.     fi
  1806.  
  1807.     if echo "$CFLAGS" | grep "\-pedantic" > /dev/null 2> /dev/null; then
  1808.       CFLAGS="$CFLAGS"
  1809.     else
  1810.       CFLAGS="$CFLAGS -pedantic"
  1811.     fi
  1812.   fi
  1813. fi
  1814.  
  1815.   if test -z "$LIBTCL_LIB"; then
  1816.     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1817. echo "configure:1818: checking for dlopen in -ldl" >&5
  1818. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1819. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1820.   echo $ac_n "(cached) $ac_c" 1>&6
  1821. else
  1822.   ac_save_LIBS="$LIBS"
  1823. LIBS="-ldl  $LIBS"
  1824. cat > conftest.$ac_ext <<EOF
  1825. #line 1826 "configure"
  1826. #include "confdefs.h"
  1827. /* Override any gcc2 internal prototype to avoid an error.  */
  1828. /* We use char because int might match the return type of a gcc2
  1829.     builtin and then its argument prototype would still apply.  */
  1830. char dlopen();
  1831.  
  1832. int main() {
  1833. dlopen()
  1834. ; return 0; }
  1835. EOF
  1836. if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1837.   rm -rf conftest*
  1838.   eval "ac_cv_lib_$ac_lib_var=yes"
  1839. else
  1840.   echo "configure: failed program was:" >&5
  1841.   cat conftest.$ac_ext >&5
  1842.   rm -rf conftest*
  1843.   eval "ac_cv_lib_$ac_lib_var=no"
  1844. fi
  1845. rm -f conftest*
  1846. LIBS="$ac_save_LIBS"
  1847.  
  1848. fi
  1849. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1850.   echo "$ac_t""yes" 1>&6
  1851.   DL_LIBRARY=-ldl
  1852. else
  1853.   echo "$ac_t""no" 1>&6
  1854. fi
  1855.  
  1856.     # Check whether --with-tcl or --without-tcl was given.
  1857. if test "${with_tcl+set}" = set; then
  1858.   withval="$with_tcl"
  1859.   echo $ac_n "checking for Tcl_StaticPackage in -l$with_tcl""... $ac_c" 1>&6
  1860. echo "configure:1861: checking for Tcl_StaticPackage in -l$with_tcl" >&5
  1861. ac_lib_var=`echo $with_tcl'_'Tcl_StaticPackage | sed 'y%./+-%__p_%'`
  1862. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1863.   echo $ac_n "(cached) $ac_c" 1>&6
  1864. else
  1865.   ac_save_LIBS="$LIBS"
  1866. LIBS="-l$with_tcl -lm $DL_LIBRARY $LIBS"
  1867. cat > conftest.$ac_ext <<EOF
  1868. #line 1869 "configure"
  1869. #include "confdefs.h"
  1870. /* Override any gcc2 internal prototype to avoid an error.  */
  1871. /* We use char because int might match the return type of a gcc2
  1872.     builtin and then its argument prototype would still apply.  */
  1873. char Tcl_StaticPackage();
  1874.  
  1875. int main() {
  1876. Tcl_StaticPackage()
  1877. ; return 0; }
  1878. EOF
  1879. if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1880.   rm -rf conftest*
  1881.   eval "ac_cv_lib_$ac_lib_var=yes"
  1882. else
  1883.   echo "configure: failed program was:" >&5
  1884.   cat conftest.$ac_ext >&5
  1885.   rm -rf conftest*
  1886.   eval "ac_cv_lib_$ac_lib_var=no"
  1887. fi
  1888. rm -f conftest*
  1889. LIBS="$ac_save_LIBS"
  1890.  
  1891. fi
  1892. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1893.   echo "$ac_t""yes" 1>&6
  1894.   GIMPTCL='gimptcl'; LIBTCL_LIB="-l$with_tcl -l$with_tk $DL_LIBRARY"
  1895. else
  1896.   echo "$ac_t""no" 1>&6
  1897. echo "configure: warning: *** gimptcl plug-in will not be built ***" 1>&2
  1898. fi
  1899.  
  1900. else
  1901.   echo $ac_n "checking for Tcl_StaticPackage in -ltcl""... $ac_c" 1>&6
  1902. echo "configure:1903: checking for Tcl_StaticPackage in -ltcl" >&5
  1903. ac_lib_var=`echo tcl'_'Tcl_StaticPackage | sed 'y%./+-%__p_%'`
  1904. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1905.   echo $ac_n "(cached) $ac_c" 1>&6
  1906. else
  1907.   ac_save_LIBS="$LIBS"
  1908. LIBS="-ltcl -lm $DL_LIBRARY $LIBS"
  1909. cat > conftest.$ac_ext <<EOF
  1910. #line 1911 "configure"
  1911. #include "confdefs.h"
  1912. /* Override any gcc2 internal prototype to avoid an error.  */
  1913. /* We use char because int might match the return type of a gcc2
  1914.     builtin and then its argument prototype would still apply.  */
  1915. char Tcl_StaticPackage();
  1916.  
  1917. int main() {
  1918. Tcl_StaticPackage()
  1919. ; return 0; }
  1920. EOF
  1921. if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1922.   rm -rf conftest*
  1923.   eval "ac_cv_lib_$ac_lib_var=yes"
  1924. else
  1925.   echo "configure: failed program was:" >&5
  1926.   cat conftest.$ac_ext >&5
  1927.   rm -rf conftest*
  1928.   eval "ac_cv_lib_$ac_lib_var=no"
  1929. fi
  1930. rm -f conftest*
  1931. LIBS="$ac_save_LIBS"
  1932.  
  1933. fi
  1934. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1935.   echo "$ac_t""yes" 1>&6
  1936.   GIMPTCL='gimptcl'; LIBTCL_LIB="-ltcl -ltk $DL_LIBRARY"
  1937. else
  1938.   echo "$ac_t""no" 1>&6
  1939. echo "configure: warning: *** gimptcl plug-in will not be built ***" 1>&2
  1940. fi
  1941.  
  1942. fi
  1943.  
  1944.   fi
  1945.  
  1946. gimpdatadir=$datadir/$PACKAGE
  1947. gimpplugindir=$libdir/$PACKAGE/$GIMP_MAJOR_VERSION_NUMBER.$GIMP_MINOR_VERSION_NUMBER
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957. trap '' 1 2 15
  1958. cat > confcache <<\EOF
  1959. # This file is a shell script that caches the results of configure
  1960. # tests run on this system so they can be shared between configure
  1961. # scripts and configure runs.  It is not useful on other systems.
  1962. # If it contains results you don't want to keep, you may remove or edit it.
  1963. #
  1964. # By default, configure uses ./config.cache as the cache file,
  1965. # creating it if it does not exist already.  You can give configure
  1966. # the --cache-file=FILE option to use a different cache file; that is
  1967. # what configure does when it calls configure scripts in
  1968. # subdirectories, so they share the cache.
  1969. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1970. # config.status only pays attention to the cache file if you give it the
  1971. # --recheck option to rerun configure.
  1972. #
  1973. EOF
  1974. # The following way of writing the cache mishandles newlines in values,
  1975. # but we know of no workaround that is simple, portable, and efficient.
  1976. # So, don't put newlines in cache variables' values.
  1977. # Ultrix sh set writes to stderr and can't be redirected directly,
  1978. # and sets the high bit in the cache file unless we assign to the vars.
  1979. (set) 2>&1 |
  1980.   case `(ac_space=' '; set) 2>&1` in
  1981.   *ac_space=\ *)
  1982.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1983.     # turns \\\\ into \\, and sed turns \\ into \).
  1984.     sed -n \
  1985.       -e "s/'/'\\\\''/g" \
  1986.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1987.     ;;
  1988.   *)
  1989.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1990.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1991.     ;;
  1992.   esac >> confcache
  1993. if cmp -s $cache_file confcache; then
  1994.   :
  1995. else
  1996.   if test -w $cache_file; then
  1997.     echo "updating cache $cache_file"
  1998.     cat confcache > $cache_file
  1999.   else
  2000.     echo "not updating unwritable cache $cache_file"
  2001.   fi
  2002. fi
  2003. rm -f confcache
  2004.  
  2005. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2006.  
  2007. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2008. # Let make expand exec_prefix.
  2009. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2010.  
  2011. # Any assignment to VPATH causes Sun make to only execute
  2012. # the first set of double-colon rules, so remove it if not needed.
  2013. # If there is a colon in the path, we need to keep it.
  2014. if test "x$srcdir" = x.; then
  2015.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2016. fi
  2017.  
  2018. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2019.  
  2020. # Transform confdefs.h into DEFS.
  2021. # Protect against shell expansion while executing Makefile rules.
  2022. # Protect against Makefile macro expansion.
  2023. cat > conftest.defs <<\EOF
  2024. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2025. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2026. s%\[%\\&%g
  2027. s%\]%\\&%g
  2028. s%\$%$$%g
  2029. EOF
  2030. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2031. rm -f conftest.defs
  2032.  
  2033.  
  2034. # Without the "./", some shells look in PATH for config.status.
  2035. : ${CONFIG_STATUS=./config.status}
  2036.  
  2037. echo creating $CONFIG_STATUS
  2038. rm -f $CONFIG_STATUS
  2039. cat > $CONFIG_STATUS <<EOF
  2040. #! /bin/sh
  2041. # Generated automatically by configure.
  2042. # Run this file to recreate the current configuration.
  2043. # This directory was configured as follows,
  2044. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2045. #
  2046. # $0 $ac_configure_args
  2047. #
  2048. # Compiler output produced by configure, useful for debugging
  2049. # configure, is in ./config.log if it exists.
  2050.  
  2051. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2052. for ac_option
  2053. do
  2054.   case "\$ac_option" in
  2055.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2056.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2057.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2058.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2059.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2060.     exit 0 ;;
  2061.   -help | --help | --hel | --he | --h)
  2062.     echo "\$ac_cs_usage"; exit 0 ;;
  2063.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2064.   esac
  2065. done
  2066.  
  2067. ac_given_srcdir=$srcdir
  2068. ac_given_INSTALL="$INSTALL"
  2069.  
  2070. trap 'rm -fr `echo "Anamorphose/Makefile
  2071. CentralReflection/Makefile
  2072. Curtain/Makefile
  2073. DigitalSignature/Makefile
  2074. Encrypt_Decrypt/Makefile
  2075. FractalExplorer/Makefile
  2076. Lighting/Makefile
  2077. ascii/Makefile
  2078. blur2/Makefile
  2079. coordmap/Makefile
  2080. figures/Makefile
  2081. fp/Makefile
  2082. fuse/Makefile
  2083. gag/Makefile
  2084. gflare/Makefile
  2085. gimptcl/Makefile
  2086. guash/Makefile
  2087. holes/Makefile
  2088. icon/Makefile
  2089. lic/Makefile
  2090. magiceye/Makefile
  2091. mathmap/Makefile
  2092. psd/Makefile
  2093. quant/Makefile
  2094. rcm/Makefile
  2095. refract/Makefile
  2096. screenshot/Makefile
  2097. sharpen/Makefile
  2098. stegano/Makefile
  2099. stereogram/Makefile
  2100. tdi/Makefile
  2101. twist/Makefile
  2102. universal/Makefile
  2103. user_filter/Makefile
  2104. warp/Makefile
  2105. xbm/Makefile
  2106. dumpwindow/Makefile
  2107. pagecurl/Makefile
  2108. " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2109. EOF
  2110. cat >> $CONFIG_STATUS <<EOF
  2111.  
  2112. # Protect against being on the right side of a sed subst in config.status.
  2113. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2114.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2115. $ac_vpsub
  2116. $extrasub
  2117. s%@CFLAGS@%$CFLAGS%g
  2118. s%@CPPFLAGS@%$CPPFLAGS%g
  2119. s%@CXXFLAGS@%$CXXFLAGS%g
  2120. s%@DEFS@%$DEFS%g
  2121. s%@LDFLAGS@%$LDFLAGS%g
  2122. s%@LIBS@%$LIBS%g
  2123. s%@exec_prefix@%$exec_prefix%g
  2124. s%@prefix@%$prefix%g
  2125. s%@program_transform_name@%$program_transform_name%g
  2126. s%@bindir@%$bindir%g
  2127. s%@sbindir@%$sbindir%g
  2128. s%@libexecdir@%$libexecdir%g
  2129. s%@datadir@%$datadir%g
  2130. s%@sysconfdir@%$sysconfdir%g
  2131. s%@sharedstatedir@%$sharedstatedir%g
  2132. s%@localstatedir@%$localstatedir%g
  2133. s%@libdir@%$libdir%g
  2134. s%@includedir@%$includedir%g
  2135. s%@oldincludedir@%$oldincludedir%g
  2136. s%@infodir@%$infodir%g
  2137. s%@mandir@%$mandir%g
  2138. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2139. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2140. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2141. s%@PACKAGE@%$PACKAGE%g
  2142. s%@VERSION@%$VERSION%g
  2143. s%@ACLOCAL@%$ACLOCAL%g
  2144. s%@AUTOCONF@%$AUTOCONF%g
  2145. s%@AUTOMAKE@%$AUTOMAKE%g
  2146. s%@AUTOHEADER@%$AUTOHEADER%g
  2147. s%@MAKEINFO@%$MAKEINFO%g
  2148. s%@SET_MAKE@%$SET_MAKE%g
  2149. s%@host@%$host%g
  2150. s%@host_alias@%$host_alias%g
  2151. s%@host_cpu@%$host_cpu%g
  2152. s%@host_vendor@%$host_vendor%g
  2153. s%@host_os@%$host_os%g
  2154. s%@RANLIB@%$RANLIB%g
  2155. s%@CC@%$CC%g
  2156. s%@LD@%$LD%g
  2157. s%@NM@%$NM%g
  2158. s%@LN_S@%$LN_S%g
  2159. s%@LIBTOOL@%$LIBTOOL%g
  2160. s%@MAINT@%$MAINT%g
  2161. s%@GTK_CONFIG@%$GTK_CONFIG%g
  2162. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  2163. s%@GTK_LIBS@%$GTK_LIBS%g
  2164. s%@X_LIBS@%$X_LIBS%g
  2165. s%@X_CFLAGS@%$X_CFLAGS%g
  2166. s%@gimpdir@%$gimpdir%g
  2167. s%@gimpdatadir@%$gimpdatadir%g
  2168. s%@gimpplugindir@%$gimpplugindir%g
  2169. s%@GIMPTCL@%$GIMPTCL%g
  2170. s%@LIBTCL_LIB@%$LIBTCL_LIB%g
  2171.  
  2172. CEOF
  2173. EOF
  2174.  
  2175. cat >> $CONFIG_STATUS <<\EOF
  2176.  
  2177. # Split the substitutions into bite-sized pieces for seds with
  2178. # small command number limits, like on Digital OSF/1 and HP-UX.
  2179. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2180. ac_file=1 # Number of current file.
  2181. ac_beg=1 # First line for current file.
  2182. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2183. ac_more_lines=:
  2184. ac_sed_cmds=""
  2185. while $ac_more_lines; do
  2186.   if test $ac_beg -gt 1; then
  2187.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2188.   else
  2189.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2190.   fi
  2191.   if test ! -s conftest.s$ac_file; then
  2192.     ac_more_lines=false
  2193.     rm -f conftest.s$ac_file
  2194.   else
  2195.     if test -z "$ac_sed_cmds"; then
  2196.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2197.     else
  2198.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2199.     fi
  2200.     ac_file=`expr $ac_file + 1`
  2201.     ac_beg=$ac_end
  2202.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2203.   fi
  2204. done
  2205. if test -z "$ac_sed_cmds"; then
  2206.   ac_sed_cmds=cat
  2207. fi
  2208. EOF
  2209.  
  2210. cat >> $CONFIG_STATUS <<EOF
  2211.  
  2212. CONFIG_FILES=\${CONFIG_FILES-"Anamorphose/Makefile
  2213. CentralReflection/Makefile
  2214. Curtain/Makefile
  2215. DigitalSignature/Makefile
  2216. Encrypt_Decrypt/Makefile
  2217. FractalExplorer/Makefile
  2218. Lighting/Makefile
  2219. ascii/Makefile
  2220. blur2/Makefile
  2221. coordmap/Makefile
  2222. figures/Makefile
  2223. fp/Makefile
  2224. fuse/Makefile
  2225. gag/Makefile
  2226. gflare/Makefile
  2227. gimptcl/Makefile
  2228. guash/Makefile
  2229. holes/Makefile
  2230. icon/Makefile
  2231. lic/Makefile
  2232. magiceye/Makefile
  2233. mathmap/Makefile
  2234. psd/Makefile
  2235. quant/Makefile
  2236. rcm/Makefile
  2237. refract/Makefile
  2238. screenshot/Makefile
  2239. sharpen/Makefile
  2240. stegano/Makefile
  2241. stereogram/Makefile
  2242. tdi/Makefile
  2243. twist/Makefile
  2244. universal/Makefile
  2245. user_filter/Makefile
  2246. warp/Makefile
  2247. xbm/Makefile
  2248. dumpwindow/Makefile
  2249. pagecurl/Makefile
  2250. "}
  2251. EOF
  2252. cat >> $CONFIG_STATUS <<\EOF
  2253. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2254.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2255.   case "$ac_file" in
  2256.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2257.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2258.   *) ac_file_in="${ac_file}.in" ;;
  2259.   esac
  2260.  
  2261.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2262.  
  2263.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2264.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2265.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2266.     # The file is in a subdirectory.
  2267.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2268.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2269.     # A "../" for each directory in $ac_dir_suffix.
  2270.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2271.   else
  2272.     ac_dir_suffix= ac_dots=
  2273.   fi
  2274.  
  2275.   case "$ac_given_srcdir" in
  2276.   .)  srcdir=.
  2277.       if test -z "$ac_dots"; then top_srcdir=.
  2278.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2279.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2280.   *) # Relative path.
  2281.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2282.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2283.   esac
  2284.  
  2285.   case "$ac_given_INSTALL" in
  2286.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2287.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2288.   esac
  2289.  
  2290.   echo creating "$ac_file"
  2291.   rm -f "$ac_file"
  2292.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2293.   case "$ac_file" in
  2294.   *Makefile*) ac_comsub="1i\\
  2295. # $configure_input" ;;
  2296.   *) ac_comsub= ;;
  2297.   esac
  2298.  
  2299.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2300.   sed -e "$ac_comsub
  2301. s%@configure_input@%$configure_input%g
  2302. s%@srcdir@%$srcdir%g
  2303. s%@top_srcdir@%$top_srcdir%g
  2304. s%@INSTALL@%$INSTALL%g
  2305. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2306. fi; done
  2307. rm -f conftest.s*
  2308.  
  2309. EOF
  2310. cat >> $CONFIG_STATUS <<EOF
  2311.  
  2312. EOF
  2313. cat >> $CONFIG_STATUS <<\EOF
  2314.  
  2315. exit 0
  2316. EOF
  2317. chmod +x $CONFIG_STATUS
  2318. rm -fr confdefs* $ac_clean_files
  2319. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2320.  
  2321.