/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Diff of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Sat Feb 24 00:31:03 2001 UTC revision 1.14, Thu Oct 21 20:08:42 2004 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by GNU Autoconf 2.59.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright (C) 2003 Free Software Foundation, Inc.
6  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
7  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
8    ## --------------------- ##
9    ## M4sh Initialization.  ##
10    ## --------------------- ##
11    
12    # Be Bourne compatible
13    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14      emulate sh
15      NULLCMD=:
16      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17      # is contrary to our usage.  Disable this feature.
18      alias -g '${1+"$@"}'='"$@"'
19    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20      set -o posix
21    fi
22    DUALCASE=1; export DUALCASE # for MKS sh
23    
24    # Support unset when possible.
25    if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26      as_unset=unset
27    else
28      as_unset=false
29    fi
30    
31    
32    # Work around bugs in pre-3.0 UWIN ksh.
33    $as_unset ENV MAIL MAILPATH
34    PS1='$ '
35    PS2='> '
36    PS4='+ '
37    
38    # NLS nuisances.
39    for as_var in \
40      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42      LC_TELEPHONE LC_TIME
43    do
44      if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45        eval $as_var=C; export $as_var
46      else
47        $as_unset $as_var
48      fi
49    done
50    
51    # Required to use basename.
52    if expr a : '\(a\)' >/dev/null 2>&1; then
53      as_expr=expr
54    else
55      as_expr=false
56    fi
57    
58    if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59      as_basename=basename
60    else
61      as_basename=false
62    fi
63    
64    
65    # Name of the executable.
66    as_me=`$as_basename "$0" ||
67    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68             X"$0" : 'X\(//\)$' \| \
69             X"$0" : 'X\(/\)$' \| \
70             .     : '\(.\)' 2>/dev/null ||
71    echo X/"$0" |
72        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73              /^X\/\(\/\/\)$/{ s//\1/; q; }
74              /^X\/\(\/\).*/{ s//\1/; q; }
75              s/.*/./; q'`
76    
77    
78    # PATH needs CR, and LINENO needs CR and PATH.
79    # Avoid depending upon Character Ranges.
80    as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83    as_cr_digits='0123456789'
84    as_cr_alnum=$as_cr_Letters$as_cr_digits
85    
86    # The user is always right.
87    if test "${PATH_SEPARATOR+set}" != set; then
88      echo "#! /bin/sh" >conf$$.sh
89      echo  "exit 0"   >>conf$$.sh
90      chmod +x conf$$.sh
91      if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92        PATH_SEPARATOR=';'
93      else
94        PATH_SEPARATOR=:
95      fi
96      rm -f conf$$.sh
97    fi
98    
99    
100      as_lineno_1=$LINENO
101      as_lineno_2=$LINENO
102      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103      test "x$as_lineno_1" != "x$as_lineno_2" &&
104      test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105      # Find who we are.  Look in the path if we contain no path at all
106      # relative or not.
107      case $0 in
108        *[\\/]* ) as_myself=$0 ;;
109        *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110    for as_dir in $PATH
111    do
112      IFS=$as_save_IFS
113      test -z "$as_dir" && as_dir=.
114      test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115    done
116    
117           ;;
118      esac
119      # We did not find ourselves, most probably we were run as `sh COMMAND'
120      # in which case we are not to be found in the path.
121      if test "x$as_myself" = x; then
122        as_myself=$0
123      fi
124      if test ! -f "$as_myself"; then
125        { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126       { (exit 1); exit 1; }; }
127      fi
128      case $CONFIG_SHELL in
129      '')
130        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131    for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132    do
133      IFS=$as_save_IFS
134      test -z "$as_dir" && as_dir=.
135      for as_base in sh bash ksh sh5; do
136             case $as_dir in
137             /*)
138               if ("$as_dir/$as_base" -c '
139      as_lineno_1=$LINENO
140      as_lineno_2=$LINENO
141      as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142      test "x$as_lineno_1" != "x$as_lineno_2" &&
143      test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144                 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145                 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146                 CONFIG_SHELL=$as_dir/$as_base
147                 export CONFIG_SHELL
148                 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149               fi;;
150             esac
151           done
152    done
153    ;;
154      esac
155    
156      # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157      # uniformly replaced by the line number.  The first 'sed' inserts a
158      # line-number line before each line; the second 'sed' does the real
159      # work.  The second script uses 'N' to pair each line-number line
160      # with the numbered line, and appends trailing '-' during
161      # substitution so that $LINENO is not a special case at line end.
162      # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163      # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164      sed '=' <$as_myself |
165        sed '
166          N
167          s,$,-,
168          : loop
169          s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170          t loop
171          s,-$,,
172          s,^['$as_cr_digits']*\n,,
173        ' >$as_me.lineno &&
174      chmod +x $as_me.lineno ||
175        { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176       { (exit 1); exit 1; }; }
177    
178      # Don't try to exec as it changes $[0], causing all sort of problems
179      # (the dirname of $[0] is not the place where we might find the
180      # original and so on.  Autoconf is especially sensible to this).
181      . ./$as_me.lineno
182      # Exit status is that of the last command.
183      exit
184    }
185    
186    
187    case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188      *c*,-n*) ECHO_N= ECHO_C='
189    ' ECHO_T='      ' ;;
190      *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191      *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192    esac
193    
194    if expr a : '\(a\)' >/dev/null 2>&1; then
195      as_expr=expr
196    else
197      as_expr=false
198    fi
199    
200    rm -f conf$$ conf$$.exe conf$$.file
201    echo >conf$$.file
202    if ln -s conf$$.file conf$$ 2>/dev/null; then
203      # We could just check for DJGPP; but this test a) works b) is more generic
204      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205      if test -f conf$$.exe; then
206        # Don't use ln at all; we don't have any links
207        as_ln_s='cp -p'
208      else
209        as_ln_s='ln -s'
210      fi
211    elif ln conf$$.file conf$$ 2>/dev/null; then
212      as_ln_s=ln
213    else
214      as_ln_s='cp -p'
215    fi
216    rm -f conf$$ conf$$.exe conf$$.file
217    
218    if mkdir -p . 2>/dev/null; then
219      as_mkdir_p=:
220    else
221      test -d ./-p && rmdir ./-p
222      as_mkdir_p=false
223    fi
224    
225    as_executable_p="test -f"
226    
227    # Sed expression to map a string onto a valid CPP name.
228    as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229    
230    # Sed expression to map a string onto a valid variable name.
231    as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232    
233    
234    # IFS
235    # We need space, tab and new line, in precisely that order.
236    as_nl='
237    '
238    IFS="   $as_nl"
239    
240    # CDPATH.
241    $as_unset CDPATH
242    
243    
244    # Name of the host.
245    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246    # so uname gets run too.
247    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248    
249    exec 6>&1
250    
251  # Defaults:  #
252  ac_help=  # Initializations.
253    #
254  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
255  # Any additions from configure.in:  ac_config_libobj_dir=.
256  ac_help="$ac_help  cross_compiling=no
257    --with-gd=DIR           location of the gd lib/inc"  subdirs=
258  ac_help="$ac_help  MFLAGS=
259    --with-z=DIR            location of zlib lib/inc"  MAKEFLAGS=
260  ac_help="$ac_help  SHELL=${CONFIG_SHELL-/bin/sh}
261    --with-png=DIR          location of png lib/inc"  
262    # Maximum number of lines to put in a shell here document.
263    # This variable seems obsolete.  It should probably be removed, and
264    # only ac_max_sed_lines should be used.
265    : ${ac_max_here_lines=38}
266    
267    # Identity of this package.
268    PACKAGE_NAME=
269    PACKAGE_TARNAME=
270    PACKAGE_VERSION=
271    PACKAGE_STRING=
272    PACKAGE_BUGREPORT=
273    
274    ac_unique_file="cvsgraph.c"
275    # Factoring default headers for most tests.
276    ac_includes_default="\
277    #include <stdio.h>
278    #if HAVE_SYS_TYPES_H
279    # include <sys/types.h>
280    #endif
281    #if HAVE_SYS_STAT_H
282    # include <sys/stat.h>
283    #endif
284    #if STDC_HEADERS
285    # include <stdlib.h>
286    # include <stddef.h>
287    #else
288    # if HAVE_STDLIB_H
289    #  include <stdlib.h>
290    # endif
291    #endif
292    #if HAVE_STRING_H
293    # if !STDC_HEADERS && HAVE_MEMORY_H
294    #  include <memory.h>
295    # endif
296    # include <string.h>
297    #endif
298    #if HAVE_STRINGS_H
299    # include <strings.h>
300    #endif
301    #if HAVE_INTTYPES_H
302    # include <inttypes.h>
303    #else
304    # if HAVE_STDINT_H
305    #  include <stdint.h>
306    # endif
307    #endif
308    #if HAVE_UNISTD_H
309    # include <unistd.h>
310    #endif"
311    
312    ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC CPP EGREP LEXFLAGS INTTYPE LIBOBJS LTLIBOBJS'
313    ac_subst_files=''
314    
315  # Initialize some variables set by options.  # Initialize some variables set by options.
316    ac_init_help=
317    ac_init_version=false
318  # The variables have the same names as the options, with  # The variables have the same names as the options, with
319  # dashes changed to underlines.  # dashes changed to underlines.
320  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
321  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
322  no_create=  no_create=
 nonopt=NONE  
323  no_recursion=  no_recursion=
324  prefix=NONE  prefix=NONE
325  program_prefix=NONE  program_prefix=NONE
# Line 35  Line 328 
328  silent=  silent=
329  site=  site=
330  srcdir=  srcdir=
 target=NONE  
331  verbose=  verbose=
332  x_includes=NONE  x_includes=NONE
333  x_libraries=NONE  x_libraries=NONE
334    
335    # Installation directory options.
336    # These are left unexpanded so users can "make install exec_prefix=/foo"
337    # and all the variables that are supposed to be based on exec_prefix
338    # by default will actually change.
339    # Use braces instead of parens because sh, perl, etc. also accept them.
340  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
341  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
342  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 52  Line 350 
350  infodir='${prefix}/info'  infodir='${prefix}/info'
351  mandir='${prefix}/man'  mandir='${prefix}/man'
352    
 # Initialize some other variables.  
 subdirs=  
 MFLAGS= MAKEFLAGS=  
 SHELL=${CONFIG_SHELL-/bin/sh}  
 # Maximum number of lines to put in a shell here document.  
 ac_max_here_lines=12  
   
353  ac_prev=  ac_prev=
354  for ac_option  for ac_option
355  do  do
   
356    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
357    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
358      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 70  Line 360 
360      continue      continue
361    fi    fi
362    
363    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
364    
365    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367    case "$ac_option" in    case $ac_option in
368    
369    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
370      ac_prev=bindir ;;      ac_prev=bindir ;;
371    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
373    
374    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
375      ac_prev=build ;;      ac_prev=build_alias ;;
376    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
378    
379    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
380    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381      ac_prev=cache_file ;;      ac_prev=cache_file ;;
382    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
385    
386      --config-cache | -C)
387        cache_file=config.cache ;;
388    
389    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390      ac_prev=datadir ;;      ac_prev=datadir ;;
391    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392    | --da=*)    | --da=*)
393      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
394    
395    -disable-* | --disable-*)    -disable-* | --disable-*)
396      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
398      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400      fi     { (exit 1); exit 1; }; }
401      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
403    
404    -enable-* | --enable-*)    -enable-* | --enable-*)
405      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
407      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409      fi     { (exit 1); exit 1; }; }
410      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411      case "$ac_option" in      case $ac_option in
412        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
414      esac      esac
415      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
416    
417    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 131  Line 421 
421    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
424      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
425    
426    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
427      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
428      with_gas=yes ;;      with_gas=yes ;;
429    
430    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
431      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
432      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433      cat << EOF      ac_init_help=recursive ;;
434  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
436    
437    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
438      ac_prev=host ;;      ac_prev=host_alias ;;
439    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
440      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
441    
442    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
443    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
444      ac_prev=includedir ;;      ac_prev=includedir ;;
445    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
447      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
448    
449    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
450      ac_prev=infodir ;;      ac_prev=infodir ;;
451    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
453    
454    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
455      ac_prev=libdir ;;      ac_prev=libdir ;;
456    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
457      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
458    
459    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
461      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
462    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
464      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
465    
466    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
467    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 228  Line 470 
470    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
474    
475    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476      ac_prev=mandir ;;      ac_prev=mandir ;;
477    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
479    
480    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
481      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
482      with_fp=no ;;      with_fp=no ;;
483    
484    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485    | --no-cr | --no-c)    | --no-cr | --no-c | -n)
486      no_create=yes ;;      no_create=yes ;;
487    
488    -no-recursion | --no-recursion | --no-recursio | --no-recursi \    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 254  Line 496 
496    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
500    
501    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502      ac_prev=prefix ;;      ac_prev=prefix ;;
503    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
505    
506    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
507    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
508      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
509    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
510    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
512    
513    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
514    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
515      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
516    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
517    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
519    
520    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
521    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 290  Line 532 
532    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
533    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
534    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
535      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
536    
537    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 300  Line 542 
542      ac_prev=sbindir ;;      ac_prev=sbindir ;;
543    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
545      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
546    
547    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
548    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 311  Line 553 
553    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555    | --sha=* | --sh=*)    | --sha=* | --sh=*)
556      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
557    
558    -site | --site | --sit)    -site | --site | --sit)
559      ac_prev=site ;;      ac_prev=site ;;
560    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
561      site="$ac_optarg" ;;      site=$ac_optarg ;;
562    
563    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564      ac_prev=srcdir ;;      ac_prev=srcdir ;;
565    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
567    
568    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
570      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
571    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
574    
575    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
576      ac_prev=target ;;      ac_prev=target_alias ;;
577    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
579    
580    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
581      verbose=yes ;;      verbose=yes ;;
582    
583    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
584      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
585    
586    -with-* | --with-*)    -with-* | --with-*)
587      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
589      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
591      fi     { (exit 1); exit 1; }; }
592      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
593      case "$ac_option" in      case $ac_option in
594        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
596      esac      esac
597      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
598    
599    -without-* | --without-*)    -without-* | --without-*)
600      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
602      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
604      fi     { (exit 1); exit 1; }; }
605      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
606      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
607    
608    --x)    --x)
609      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 373  Line 614 
614      ac_prev=x_includes ;;      ac_prev=x_includes ;;
615    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
618    
619    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
620    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
622    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
625    
626    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
627    Try \`$0 --help' for more information." >&2
628       { (exit 1); exit 1; }; }
629      ;;      ;;
630    
631      *=*)
632        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633        # Reject names that are not valid shell variable names.
634        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636       { (exit 1); exit 1; }; }
637        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638        eval "$ac_envvar='$ac_optarg'"
639        export $ac_envvar ;;
640    
641    *)    *)
642      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
643        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
647      ;;      ;;
648    
649    esac    esac
650  done  done
651    
652  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
653    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
655       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
656  fi  fi
 exec 5>./config.log  
657    
658  echo "\  # Be sure to have absolute paths.
659  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
660  running configure, to aid debugging if configure makes a mistake.  do
661  " 1>&5    eval ac_val=$`echo $ac_var`
662      case $ac_val in
663        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664        *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665       { (exit 1); exit 1; }; };;
666      esac
667    done
668    
669  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
670  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
672  do  do
673    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
674    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
675    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
676    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
678    esac    esac
679  done  done
680    
681  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
682  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
683  # because not all systems understand e.g. LANG=C (notably SCO).  # FIXME: To remove some day.
684  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  build=$build_alias
685  # Non-C LC_CTYPE values break the ctype check.  host=$host_alias
686  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  target=$target_alias
687  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  
688  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  # FIXME: To remove some day.
689  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi  if test "x$host_alias" != x; then
690      if test "x$build_alias" = x; then
691        cross_compiling=maybe
692        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693        If a cross compiler is detected then cross compile mode will be used." >&2
694      elif test "x$build_alias" != "x$host_alias"; then
695        cross_compiling=yes
696      fi
697    fi
698    
699  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
700  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
701  # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
702  echo > confdefs.h  test "$silent" = yes && exec 6>/dev/null
703    
 # A filename unique to this package, relative to the directory that  
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=cvsgraph.c  
704    
705  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
706  if test -z "$srcdir"; then  if test -z "$srcdir"; then
707    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
708    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
709    ac_prog=$0    ac_confdir=`(dirname "$0") 2>/dev/null ||
710    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`  $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.           X"$0" : 'X\(//\)[^/]' \| \
712             X"$0" : 'X\(//\)$' \| \
713             X"$0" : 'X\(/\)' \| \
714             .     : '\(.\)' 2>/dev/null ||
715    echo X"$0" |
716        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718              /^X\(\/\/\)$/{ s//\1/; q; }
719              /^X\(\/\).*/{ s//\1/; q; }
720              s/.*/./; q'`
721    srcdir=$ac_confdir    srcdir=$ac_confdir
722    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
723      srcdir=..      srcdir=..
# Line 475  Line 727 
727  fi  fi
728  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
729    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
730      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731       { (exit 1); exit 1; }; }
732    else    else
733      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734       { (exit 1); exit 1; }; }
735    fi    fi
736  fi  fi
737  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738      { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739       { (exit 1); exit 1; }; }
740    srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741    ac_env_build_alias_set=${build_alias+set}
742    ac_env_build_alias_value=$build_alias
743    ac_cv_env_build_alias_set=${build_alias+set}
744    ac_cv_env_build_alias_value=$build_alias
745    ac_env_host_alias_set=${host_alias+set}
746    ac_env_host_alias_value=$host_alias
747    ac_cv_env_host_alias_set=${host_alias+set}
748    ac_cv_env_host_alias_value=$host_alias
749    ac_env_target_alias_set=${target_alias+set}
750    ac_env_target_alias_value=$target_alias
751    ac_cv_env_target_alias_set=${target_alias+set}
752    ac_cv_env_target_alias_value=$target_alias
753    ac_env_CC_set=${CC+set}
754    ac_env_CC_value=$CC
755    ac_cv_env_CC_set=${CC+set}
756    ac_cv_env_CC_value=$CC
757    ac_env_CFLAGS_set=${CFLAGS+set}
758    ac_env_CFLAGS_value=$CFLAGS
759    ac_cv_env_CFLAGS_set=${CFLAGS+set}
760    ac_cv_env_CFLAGS_value=$CFLAGS
761    ac_env_LDFLAGS_set=${LDFLAGS+set}
762    ac_env_LDFLAGS_value=$LDFLAGS
763    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764    ac_cv_env_LDFLAGS_value=$LDFLAGS
765    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766    ac_env_CPPFLAGS_value=$CPPFLAGS
767    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769    ac_env_CPP_set=${CPP+set}
770    ac_env_CPP_value=$CPP
771    ac_cv_env_CPP_set=${CPP+set}
772    ac_cv_env_CPP_value=$CPP
773    
774    #
775    # Report the --help message.
776    #
777    if test "$ac_init_help" = "long"; then
778      # Omit some internal or obsolete options to make the list less imposing.
779      # This message is too long to be a string in the A/UX 3.1 sh.
780      cat <<_ACEOF
781    \`configure' configures this package to adapt to many kinds of systems.
782    
783    Usage: $0 [OPTION]... [VAR=VALUE]...
784    
785    To assign environment variables (e.g., CC, CFLAGS...), specify them as
786    VAR=VALUE.  See below for descriptions of some of the useful variables.
787    
788    Defaults for the options are specified in brackets.
789    
790    Configuration:
791      -h, --help              display this help and exit
792          --help=short        display options specific to this package
793          --help=recursive    display the short help of all the included packages
794      -V, --version           display version information and exit
795      -q, --quiet, --silent   do not print \`checking...' messages
796          --cache-file=FILE   cache test results in FILE [disabled]
797      -C, --config-cache      alias for \`--cache-file=config.cache'
798      -n, --no-create         do not create output files
799          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800    
801    _ACEOF
802    
803      cat <<_ACEOF
804    Installation directories:
805      --prefix=PREFIX         install architecture-independent files in PREFIX
806                              [$ac_default_prefix]
807      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                              [PREFIX]
809    
810    By default, \`make install' will install all the files in
811    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813    for instance \`--prefix=\$HOME'.
814    
815    For better control, use the options below.
816    
817    Fine tuning of the installation directories:
818      --bindir=DIR           user executables [EPREFIX/bin]
819      --sbindir=DIR          system admin executables [EPREFIX/sbin]
820      --libexecdir=DIR       program executables [EPREFIX/libexec]
821      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825      --libdir=DIR           object code libraries [EPREFIX/lib]
826      --includedir=DIR       C header files [PREFIX/include]
827      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828      --infodir=DIR          info documentation [PREFIX/info]
829      --mandir=DIR           man documentation [PREFIX/man]
830    _ACEOF
831    
832      cat <<\_ACEOF
833    _ACEOF
834    fi
835    
836    if test -n "$ac_init_help"; then
837    
838      cat <<\_ACEOF
839    
840    Optional Features:
841      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
842      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
843      --disable-speed         Turn off lex table optimization reducing speed and size of executable
844    
845    Optional Packages:
846      --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
847      --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
848      --with-gd-inc=DIR       location of the gd includes
849      --with-gd-lib=DIR       location of the gd library
850      --with-freetype-lib=DIR    location of freetype library
851      --with-freetype2-lib=DIR    location of freetype2 library
852      --with-png-inc=DIR      location of png includes
853      --with-png-lib=DIR      location of png library
854      --with-jpeg-inc=DIR    location of jpeg includes
855      --with-jpeg-lib=DIR    location of jpeg library
856      --with-z-inc=DIR        location of zlib includes
857      --with-z-lib=DIR        location of zlib library
858    
859    Some influential environment variables:
860      CC          C compiler command
861      CFLAGS      C compiler flags
862      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
863                  nonstandard directory <lib dir>
864      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
865                  headers in a nonstandard directory <include dir>
866      CPP         C preprocessor
867    
868    Use these variables to override the choices made by `configure' or to help
869    it to find libraries and programs with nonstandard names/locations.
870    
871    _ACEOF
872    fi
873    
874    if test "$ac_init_help" = "recursive"; then
875      # If there are subdirs, report their specific --help.
876      ac_popdir=`pwd`
877      for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878        test -d $ac_dir || continue
879        ac_builddir=.
880    
881    if test "$ac_dir" != .; then
882      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883      # A "../" for each directory in $ac_dir_suffix.
884      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885    else
886      ac_dir_suffix= ac_top_builddir=
887    fi
888    
889    case $srcdir in
890      .)  # No --srcdir option.  We are building in place.
891        ac_srcdir=.
892        if test -z "$ac_top_builddir"; then
893           ac_top_srcdir=.
894        else
895           ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896        fi ;;
897      [\\/]* | ?:[\\/]* )  # Absolute path.
898        ac_srcdir=$srcdir$ac_dir_suffix;
899        ac_top_srcdir=$srcdir ;;
900      *) # Relative path.
901        ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902        ac_top_srcdir=$ac_top_builddir$srcdir ;;
903    esac
904    
905    # Do not use `cd foo && pwd` to compute absolute paths, because
906    # the directories may not exist.
907    case `pwd` in
908    .) ac_abs_builddir="$ac_dir";;
909    *)
910      case "$ac_dir" in
911      .) ac_abs_builddir=`pwd`;;
912      [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913      *) ac_abs_builddir=`pwd`/"$ac_dir";;
914      esac;;
915    esac
916    case $ac_abs_builddir in
917    .) ac_abs_top_builddir=${ac_top_builddir}.;;
918    *)
919      case ${ac_top_builddir}. in
920      .) ac_abs_top_builddir=$ac_abs_builddir;;
921      [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922      *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923      esac;;
924    esac
925    case $ac_abs_builddir in
926    .) ac_abs_srcdir=$ac_srcdir;;
927    *)
928      case $ac_srcdir in
929      .) ac_abs_srcdir=$ac_abs_builddir;;
930      [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931      *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932      esac;;
933    esac
934    case $ac_abs_builddir in
935    .) ac_abs_top_srcdir=$ac_top_srcdir;;
936    *)
937      case $ac_top_srcdir in
938      .) ac_abs_top_srcdir=$ac_abs_builddir;;
939      [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940      *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941      esac;;
942    esac
943    
944        cd $ac_dir
945        # Check for guested configure; otherwise get Cygnus style configure.
946        if test -f $ac_srcdir/configure.gnu; then
947          echo
948          $SHELL $ac_srcdir/configure.gnu  --help=recursive
949        elif test -f $ac_srcdir/configure; then
950          echo
951          $SHELL $ac_srcdir/configure  --help=recursive
952        elif test -f $ac_srcdir/configure.ac ||
953               test -f $ac_srcdir/configure.in; then
954          echo
955          $ac_configure --help
956        else
957          echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958        fi
959        cd $ac_popdir
960      done
961    fi
962    
963    test -n "$ac_init_help" && exit 0
964    if $ac_init_version; then
965      cat <<\_ACEOF
966    
967    Copyright (C) 2003 Free Software Foundation, Inc.
968    This configure script is free software; the Free Software Foundation
969    gives unlimited permission to copy, distribute and modify it.
970    _ACEOF
971      exit 0
972    fi
973    exec 5>config.log
974    cat >&5 <<_ACEOF
975    This file contains any messages produced by compilers while
976    running configure, to aid debugging if configure makes a mistake.
977    
978    It was created by $as_me, which was
979    generated by GNU Autoconf 2.59.  Invocation command line was
980    
981      $ $0 $@
982    
983    _ACEOF
984    {
985    cat <<_ASUNAME
986    ## --------- ##
987    ## Platform. ##
988    ## --------- ##
989    
990    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991    uname -m = `(uname -m) 2>/dev/null || echo unknown`
992    uname -r = `(uname -r) 2>/dev/null || echo unknown`
993    uname -s = `(uname -s) 2>/dev/null || echo unknown`
994    uname -v = `(uname -v) 2>/dev/null || echo unknown`
995    
996    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
998    
999    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1000    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1001    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1003    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1004    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1005    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1006    
1007    _ASUNAME
1008    
1009    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010    for as_dir in $PATH
1011    do
1012      IFS=$as_save_IFS
1013      test -z "$as_dir" && as_dir=.
1014      echo "PATH: $as_dir"
1015    done
1016    
1017    } >&5
1018    
1019    cat >&5 <<_ACEOF
1020    
1021    
1022    ## ----------- ##
1023    ## Core tests. ##
1024    ## ----------- ##
1025    
1026    _ACEOF
1027    
1028    
1029    # Keep a trace of the command line.
1030    # Strip out --no-create and --no-recursion so they do not pile up.
1031    # Strip out --silent because we don't want to record it for future runs.
1032    # Also quote any args containing shell meta-characters.
1033    # Make two passes to allow for proper duplicate-argument suppression.
1034    ac_configure_args=
1035    ac_configure_args0=
1036    ac_configure_args1=
1037    ac_sep=
1038    ac_must_keep_next=false
1039    for ac_pass in 1 2
1040    do
1041      for ac_arg
1042      do
1043        case $ac_arg in
1044        -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045        -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046        | -silent | --silent | --silen | --sile | --sil)
1047          continue ;;
1048        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049          ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050        esac
1051        case $ac_pass in
1052        1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053        2)
1054          ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055          if test $ac_must_keep_next = true; then
1056            ac_must_keep_next=false # Got value, back to normal.
1057          else
1058            case $ac_arg in
1059              *=* | --config-cache | -C | -disable-* | --disable-* \
1060              | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061              | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062              | -with-* | --with-* | -without-* | --without-* | --x)
1063                case "$ac_configure_args0 " in
1064                  "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065                esac
1066                ;;
1067              -* ) ac_must_keep_next=true ;;
1068            esac
1069          fi
1070          ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071          # Get rid of the leading space.
1072          ac_sep=" "
1073          ;;
1074        esac
1075      done
1076    done
1077    $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078    $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079    
1080    # When interrupted or exit'd, cleanup temporary files, and complete
1081    # config.log.  We remove comments because anyway the quotes in there
1082    # would cause problems or look ugly.
1083    # WARNING: Be sure not to use single quotes in there, as some shells,
1084    # such as our DU 5.0 friend, will then `close' the trap.
1085    trap 'exit_status=$?
1086      # Save into config.log some information that might help in debugging.
1087      {
1088        echo
1089    
1090        cat <<\_ASBOX
1091    ## ---------------- ##
1092    ## Cache variables. ##
1093    ## ---------------- ##
1094    _ASBOX
1095        echo
1096        # The following way of writing the cache mishandles newlines in values,
1097    {
1098      (set) 2>&1 |
1099        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100        *ac_space=\ *)
1101          sed -n \
1102            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104          ;;
1105        *)
1106          sed -n \
1107            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108          ;;
1109        esac;
1110    }
1111        echo
1112    
1113        cat <<\_ASBOX
1114    ## ----------------- ##
1115    ## Output variables. ##
1116    ## ----------------- ##
1117    _ASBOX
1118        echo
1119        for ac_var in $ac_subst_vars
1120        do
1121          eval ac_val=$`echo $ac_var`
1122          echo "$ac_var='"'"'$ac_val'"'"'"
1123        done | sort
1124        echo
1125    
1126        if test -n "$ac_subst_files"; then
1127          cat <<\_ASBOX
1128    ## ------------- ##
1129    ## Output files. ##
1130    ## ------------- ##
1131    _ASBOX
1132          echo
1133          for ac_var in $ac_subst_files
1134          do
1135            eval ac_val=$`echo $ac_var`
1136            echo "$ac_var='"'"'$ac_val'"'"'"
1137          done | sort
1138          echo
1139        fi
1140    
1141        if test -s confdefs.h; then
1142          cat <<\_ASBOX
1143    ## ----------- ##
1144    ## confdefs.h. ##
1145    ## ----------- ##
1146    _ASBOX
1147          echo
1148          sed "/^$/d" confdefs.h | sort
1149          echo
1150        fi
1151        test "$ac_signal" != 0 &&
1152          echo "$as_me: caught signal $ac_signal"
1153        echo "$as_me: exit $exit_status"
1154      } >&5
1155      rm -f core *.core &&
1156      rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157        exit $exit_status
1158         ' 0
1159    for ac_signal in 1 2 13 15; do
1160      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161    done
1162    ac_signal=0
1163    
1164    # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165    rm -rf conftest* confdefs.h
1166    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167    echo >confdefs.h
1168    
1169    # Predefined preprocessor variables.
1170    
1171    cat >>confdefs.h <<_ACEOF
1172    #define PACKAGE_NAME "$PACKAGE_NAME"
1173    _ACEOF
1174    
1175    
1176    cat >>confdefs.h <<_ACEOF
1177    #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178    _ACEOF
1179    
1180    
1181    cat >>confdefs.h <<_ACEOF
1182    #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183    _ACEOF
1184    
1185    
1186    cat >>confdefs.h <<_ACEOF
1187    #define PACKAGE_STRING "$PACKAGE_STRING"
1188    _ACEOF
1189    
1190    
1191    cat >>confdefs.h <<_ACEOF
1192    #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193    _ACEOF
1194    
1195    
1196    # Let the site file select an alternate cache file if it wants to.
1197  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
1198  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
1199    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 492  Line 1204 
1204  fi  fi
1205  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
1206    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
1207      echo "loading site script $ac_site_file"      { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208    echo "$as_me: loading site script $ac_site_file" >&6;}
1209        sed 's/^/| /' "$ac_site_file" >&5
1210      . "$ac_site_file"      . "$ac_site_file"
1211    fi    fi
1212  done  done
1213    
1214  if test -r "$cache_file"; then  if test -r "$cache_file"; then
1215    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
1216    . $cache_file    # files actually), so we avoid doing that.
1217      if test -f "$cache_file"; then
1218        { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219    echo "$as_me: loading cache $cache_file" >&6;}
1220        case $cache_file in
1221          [\\/]* | ?:[\\/]* ) . $cache_file;;
1222          *)                      . ./$cache_file;;
1223        esac
1224      fi
1225  else  else
1226    echo "creating cache $cache_file"    { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
1228      >$cache_file
1229    fi
1230    
1231    # Check that the precious variables saved in the cache have kept the same
1232    # value.
1233    ac_cache_corrupted=false
1234    for ac_var in `(set) 2>&1 |
1235                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236      eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237      eval ac_new_set=\$ac_env_${ac_var}_set
1238      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239      eval ac_new_val="\$ac_env_${ac_var}_value"
1240      case $ac_old_set,$ac_new_set in
1241        set,)
1242          { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244          ac_cache_corrupted=: ;;
1245        ,set)
1246          { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248          ac_cache_corrupted=: ;;
1249        ,);;
1250        *)
1251          if test "x$ac_old_val" != "x$ac_new_val"; then
1252            { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254            { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1255    echo "$as_me:   former value:  $ac_old_val" >&2;}
1256            { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1257    echo "$as_me:   current value: $ac_new_val" >&2;}
1258            ac_cache_corrupted=:
1259          fi;;
1260      esac
1261      # Pass precious variables to config.status.
1262      if test "$ac_new_set" = set; then
1263        case $ac_new_val in
1264        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266        *) ac_arg=$ac_var=$ac_new_val ;;
1267        esac
1268        case " $ac_configure_args " in
1269          *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1270          *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271        esac
1272      fi
1273    done
1274    if $ac_cache_corrupted; then
1275      { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277      { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279       { (exit 1); exit 1; }; }
1280  fi  fi
1281    
1282  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
1283  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1284  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287    
 ac_exeext=  
 ac_objext=o  
 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  
   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.  
   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then  
     ac_n= ac_c='  
 ' ac_t='        '  
   else  
     ac_n=-n ac_c= ac_t=  
   fi  
 else  
   ac_n= ac_c='\c' ac_t=  
 fi  
1288    
1289    
1290    
1291    
1292  # Extract the first word of "gcc", so it can be a program name with args.  
1293  set dummy gcc; ac_word=$2  
1294  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
1295  echo "configure:536: checking for $ac_word" >&5  
1296  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  
1297    echo $ac_n "(cached) $ac_c" 1>&6  
1298    
1299    
1300    
1301    
1302    
1303    
1304    
1305    
1306              ac_config_headers="$ac_config_headers config.h"
1307    
1308    
1309    ac_ext=c
1310    ac_cpp='$CPP $CPPFLAGS'
1311    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314    if test -n "$ac_tool_prefix"; then
1315      # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1316    set dummy ${ac_tool_prefix}gcc; ac_word=$2
1317    echo "$as_me:$LINENO: checking for $ac_word" >&5
1318    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319    if test "${ac_cv_prog_CC+set}" = set; then
1320      echo $ECHO_N "(cached) $ECHO_C" >&6
1321  else  else
1322    if test -n "$CC"; then    if test -n "$CC"; then
1323    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1324  else  else
1325    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326    ac_dummy="$PATH"  for as_dir in $PATH
1327    for ac_dir in $ac_dummy; do  do
1328      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1329      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1330        ac_cv_prog_CC="gcc"    for ac_exec_ext in '' $ac_executable_extensions; do
1331        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332      fi      ac_cv_prog_CC="${ac_tool_prefix}gcc"
1333    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334    IFS="$ac_save_ifs"      break 2
1335      fi
1336    done
1337    done
1338    
1339  fi  fi
1340  fi  fi
1341  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1342  if test -n "$CC"; then  if test -n "$CC"; then
1343    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1344    echo "${ECHO_T}$CC" >&6
1345  else  else
1346    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1347    echo "${ECHO_T}no" >&6
1348  fi  fi
1349    
1350  if test -z "$CC"; then  fi
1351    # Extract the first word of "cc", so it can be a program name with args.  if test -z "$ac_cv_prog_CC"; then
1352  set dummy cc; ac_word=$2    ac_ct_CC=$CC
1353  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6    # Extract the first word of "gcc", so it can be a program name with args.
1354  echo "configure:566: checking for $ac_word" >&5  set dummy gcc; ac_word=$2
1355  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
1356    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1358      echo $ECHO_N "(cached) $ECHO_C" >&6
1359  else  else
1360    if test -n "$CC"; then    if test -n "$ac_ct_CC"; then
1361    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362  else  else
1363    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364    ac_prog_rejected=no  for as_dir in $PATH
1365    ac_dummy="$PATH"  do
1366    for ac_dir in $ac_dummy; do    IFS=$as_save_IFS
1367      test -z "$ac_dir" && ac_dir=.    test -z "$as_dir" && as_dir=.
1368      if test -f $ac_dir/$ac_word; then    for ac_exec_ext in '' $ac_executable_extensions; do
1369        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370          ac_prog_rejected=yes      ac_cv_prog_ac_ct_CC="gcc"
1371          continue      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372        fi      break 2
       ac_cv_prog_CC="cc"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
 if test $ac_prog_rejected = yes; then  
   # We found a bogon in the path, so make sure we never use it.  
   set dummy $ac_cv_prog_CC  
   shift  
   if test $# -gt 0; then  
     # We chose a different compiler from the bogus one.  
     # However, it has the same basename, so the bogon will be chosen  
     # first if we set CC to just the basename; use the full file name.  
     shift  
     set dummy "$ac_dir/$ac_word" "$@"  
     shift  
     ac_cv_prog_CC="$@"  
1373    fi    fi
1374    done
1375    done
1376    
1377  fi  fi
1378  fi  fi
1379    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1380    if test -n "$ac_ct_CC"; then
1381      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1382    echo "${ECHO_T}$ac_ct_CC" >&6
1383    else
1384      echo "$as_me:$LINENO: result: no" >&5
1385    echo "${ECHO_T}no" >&6
1386  fi  fi
1387  CC="$ac_cv_prog_CC"  
1388  if test -n "$CC"; then    CC=$ac_ct_CC
   echo "$ac_t""$CC" 1>&6  
1389  else  else
1390    echo "$ac_t""no" 1>&6    CC="$ac_cv_prog_CC"
1391  fi  fi
1392    
1393    if test -z "$CC"; then  if test -z "$CC"; then
1394      case "`uname -s`" in    if test -n "$ac_tool_prefix"; then
1395      *win32* | *WIN32*)    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1396        # Extract the first word of "cl", so it can be a program name with args.  set dummy ${ac_tool_prefix}cc; ac_word=$2
1397  set dummy cl; ac_word=$2  echo "$as_me:$LINENO: checking for $ac_word" >&5
1398  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399  echo "configure:617: checking for $ac_word" >&5  if test "${ac_cv_prog_CC+set}" = set; then
1400  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
   echo $ac_n "(cached) $ac_c" 1>&6  
1401  else  else
1402    if test -n "$CC"; then    if test -n "$CC"; then
1403    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1404  else  else
1405    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406    ac_dummy="$PATH"  for as_dir in $PATH
1407    for ac_dir in $ac_dummy; do  do
1408      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
1409      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
1410        ac_cv_prog_CC="cl"    for ac_exec_ext in '' $ac_executable_extensions; do
1411        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412      fi      ac_cv_prog_CC="${ac_tool_prefix}cc"
1413    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414    IFS="$ac_save_ifs"      break 2
1415      fi
1416    done
1417    done
1418    
1419  fi  fi
1420  fi  fi
1421  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1422  if test -n "$CC"; then  if test -n "$CC"; then
1423    echo "$ac_t""$CC" 1>&6    echo "$as_me:$LINENO: result: $CC" >&5
1424    echo "${ECHO_T}$CC" >&6
1425  else  else
1426    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
1427  fi  echo "${ECHO_T}no" >&6
  ;;  
     esac  
   fi  
   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  
1428  fi  fi
1429    
1430  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
1431  echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  if test -z "$ac_cv_prog_CC"; then
1432      ac_ct_CC=$CC
1433      # Extract the first word of "cc", so it can be a program name with args.
1434    set dummy cc; ac_word=$2
1435    echo "$as_me:$LINENO: checking for $ac_word" >&5
1436    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438      echo $ECHO_N "(cached) $ECHO_C" >&6
1439    else
1440      if test -n "$ac_ct_CC"; then
1441      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442    else
1443    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444    for as_dir in $PATH
1445    do
1446      IFS=$as_save_IFS
1447      test -z "$as_dir" && as_dir=.
1448      for ac_exec_ext in '' $ac_executable_extensions; do
1449      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450        ac_cv_prog_ac_ct_CC="cc"
1451        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452        break 2
1453      fi
1454    done
1455    done
1456    
1457  ac_ext=c  fi
1458  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  fi
1459  ac_cpp='$CPP $CPPFLAGS'  ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  if test -n "$ac_ct_CC"; then
1461  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'    echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1462  cross_compiling=$ac_cv_prog_cc_cross  echo "${ECHO_T}$ac_ct_CC" >&6
1463    else
1464      echo "$as_me:$LINENO: result: no" >&5
1465    echo "${ECHO_T}no" >&6
1466    fi
1467    
1468  cat > conftest.$ac_ext << EOF    CC=$ac_ct_CC
1469    else
1470      CC="$ac_cv_prog_CC"
1471    fi
1472    
1473  #line 660 "configure"  fi
1474  #include "confdefs.h"  if test -z "$CC"; then
1475      # Extract the first word of "cc", so it can be a program name with args.
1476    set dummy cc; ac_word=$2
1477    echo "$as_me:$LINENO: checking for $ac_word" >&5
1478    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479    if test "${ac_cv_prog_CC+set}" = set; then
1480      echo $ECHO_N "(cached) $ECHO_C" >&6
1481    else
1482      if test -n "$CC"; then
1483      ac_cv_prog_CC="$CC" # Let the user override the test.
1484    else
1485      ac_prog_rejected=no
1486    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487    for as_dir in $PATH
1488    do
1489      IFS=$as_save_IFS
1490      test -z "$as_dir" && as_dir=.
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493        if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1494           ac_prog_rejected=yes
1495           continue
1496         fi
1497        ac_cv_prog_CC="cc"
1498        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499        break 2
1500      fi
1501    done
1502    done
1503    
1504  main(){return(0);}  if test $ac_prog_rejected = yes; then
1505  EOF    # We found a bogon in the path, so make sure we never use it.
1506  if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then    set dummy $ac_cv_prog_CC
1507    ac_cv_prog_cc_works=yes    shift
1508    # If we can't run a trivial program, we are probably using a cross compiler.    if test $# != 0; then
1509    if (./conftest; exit) 2>/dev/null; then      # We chose a different compiler from the bogus one.
1510      ac_cv_prog_cc_cross=no      # However, it has the same basename, so the bogon will be chosen
1511    else      # first if we set CC to just the basename; use the full file name.
1512      ac_cv_prog_cc_cross=yes      shift
1513        ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514    fi    fi
1515    fi
1516    fi
1517    fi
1518    CC=$ac_cv_prog_CC
1519    if test -n "$CC"; then
1520      echo "$as_me:$LINENO: result: $CC" >&5
1521    echo "${ECHO_T}$CC" >&6
1522  else  else
1523    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: result: no" >&5
1524    cat conftest.$ac_ext >&5  echo "${ECHO_T}no" >&6
   ac_cv_prog_cc_works=no  
1525  fi  fi
 rm -fr conftest*  
 ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1526    
 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
 if test $ac_cv_prog_cc_works = no; then  
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  
1527  fi  fi
1528  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  if test -z "$CC"; then
1529  echo "configure:691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5    if test -n "$ac_tool_prefix"; then
1530  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6    for ac_prog in cl
1531  cross_compiling=$ac_cv_prog_cc_cross    do
1532        # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1533    set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1534    echo "$as_me:$LINENO: checking for $ac_word" >&5
1535    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536    if test "${ac_cv_prog_CC+set}" = set; then
1537      echo $ECHO_N "(cached) $ECHO_C" >&6
1538    else
1539      if test -n "$CC"; then
1540      ac_cv_prog_CC="$CC" # Let the user override the test.
1541    else
1542    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543    for as_dir in $PATH
1544    do
1545      IFS=$as_save_IFS
1546      test -z "$as_dir" && as_dir=.
1547      for ac_exec_ext in '' $ac_executable_extensions; do
1548      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549        ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1550        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551        break 2
1552      fi
1553    done
1554    done
1555    
1556  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  fi
1557  echo "configure:696: checking whether we are using GNU C" >&5  fi
1558  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  CC=$ac_cv_prog_CC
1559    echo $ac_n "(cached) $ac_c" 1>&6  if test -n "$CC"; then
1560      echo "$as_me:$LINENO: result: $CC" >&5
1561    echo "${ECHO_T}$CC" >&6
1562  else  else
1563    cat > conftest.c <<EOF    echo "$as_me:$LINENO: result: no" >&5
1564  #ifdef __GNUC__  echo "${ECHO_T}no" >&6
1565    yes;  fi
1566  #endif  
1567  EOF      test -n "$CC" && break
1568  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then    done
1569    ac_cv_prog_gcc=yes  fi
1570    if test -z "$CC"; then
1571      ac_ct_CC=$CC
1572      for ac_prog in cl
1573    do
1574      # Extract the first word of "$ac_prog", so it can be a program name with args.
1575    set dummy $ac_prog; ac_word=$2
1576    echo "$as_me:$LINENO: checking for $ac_word" >&5
1577    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579      echo $ECHO_N "(cached) $ECHO_C" >&6
1580    else
1581      if test -n "$ac_ct_CC"; then
1582      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583    else
1584    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585    for as_dir in $PATH
1586    do
1587      IFS=$as_save_IFS
1588      test -z "$as_dir" && as_dir=.
1589      for ac_exec_ext in '' $ac_executable_extensions; do
1590      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591        ac_cv_prog_ac_ct_CC="$ac_prog"
1592        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593        break 2
1594      fi
1595    done
1596    done
1597    
1598    fi
1599    fi
1600    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601    if test -n "$ac_ct_CC"; then
1602      echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603    echo "${ECHO_T}$ac_ct_CC" >&6
1604  else  else
1605    ac_cv_prog_gcc=no    echo "$as_me:$LINENO: result: no" >&5
1606    echo "${ECHO_T}no" >&6
1607    fi
1608    
1609      test -n "$ac_ct_CC" && break
1610    done
1611    
1612      CC=$ac_ct_CC
1613  fi  fi
1614    
1615  fi  fi
1616    
 echo "$ac_t""$ac_cv_prog_gcc" 1>&6  
1617    
1618  if test $ac_cv_prog_gcc = yes; then  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1619    GCC=yes  See \`config.log' for more details." >&5
1620    echo "$as_me: error: no acceptable C compiler found in \$PATH
1621    See \`config.log' for more details." >&2;}
1622       { (exit 1); exit 1; }; }
1623    
1624    # Provide some information about the compiler.
1625    echo "$as_me:$LINENO:" \
1626         "checking for C compiler version" >&5
1627    ac_compiler=`set X $ac_compile; echo $2`
1628    { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1629      (eval $ac_compiler --version </dev/null >&5) 2>&5
1630      ac_status=$?
1631      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632      (exit $ac_status); }
1633    { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1634      (eval $ac_compiler -v </dev/null >&5) 2>&5
1635      ac_status=$?
1636      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637      (exit $ac_status); }
1638    { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1639      (eval $ac_compiler -V </dev/null >&5) 2>&5
1640      ac_status=$?
1641      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642      (exit $ac_status); }
1643    
1644    cat >conftest.$ac_ext <<_ACEOF
1645    /* confdefs.h.  */
1646    _ACEOF
1647    cat confdefs.h >>conftest.$ac_ext
1648    cat >>conftest.$ac_ext <<_ACEOF
1649    /* end confdefs.h.  */
1650    
1651    int
1652    main ()
1653    {
1654    
1655      ;
1656      return 0;
1657    }
1658    _ACEOF
1659    ac_clean_files_save=$ac_clean_files
1660    ac_clean_files="$ac_clean_files a.out a.exe b.out"
1661    # Try to create an executable without -o first, disregard a.out.
1662    # It will help us diagnose broken compilers, and finding out an intuition
1663    # of exeext.
1664    echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1665    echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1666    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1667    if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1668      (eval $ac_link_default) 2>&5
1669      ac_status=$?
1670      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671      (exit $ac_status); }; then
1672      # Find the output, starting from the most likely.  This scheme is
1673    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1674    # resort.
1675    
1676    # Be careful to initialize this variable, since it used to be cached.
1677    # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1678    ac_cv_exeext=
1679    # b.out is created by i960 compilers.
1680    for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1681    do
1682      test -f "$ac_file" || continue
1683      case $ac_file in
1684        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1685            ;;
1686        conftest.$ac_ext )
1687            # This is the source file.
1688            ;;
1689        [ab].out )
1690            # We found the default executable, but exeext='' is most
1691            # certainly right.
1692            break;;
1693        *.* )
1694            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1695            # FIXME: I believe we export ac_cv_exeext for Libtool,
1696            # but it would be cool to find out if it's true.  Does anybody
1697            # maintain Libtool? --akim.
1698            export ac_cv_exeext
1699            break;;
1700        * )
1701            break;;
1702      esac
1703    done
1704  else  else
1705    GCC=    echo "$as_me: failed program was:" >&5
1706    sed 's/^/| /' conftest.$ac_ext >&5
1707    
1708    { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1709    See \`config.log' for more details." >&5
1710    echo "$as_me: error: C compiler cannot create executables
1711    See \`config.log' for more details." >&2;}
1712       { (exit 77); exit 77; }; }
1713    fi
1714    
1715    ac_exeext=$ac_cv_exeext
1716    echo "$as_me:$LINENO: result: $ac_file" >&5
1717    echo "${ECHO_T}$ac_file" >&6
1718    
1719    # Check the compiler produces executables we can run.  If not, either
1720    # the compiler is broken, or we cross compile.
1721    echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1723    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1724    # If not cross compiling, check that we can run a simple program.
1725    if test "$cross_compiling" != yes; then
1726      if { ac_try='./$ac_file'
1727      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728      (eval $ac_try) 2>&5
1729      ac_status=$?
1730      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731      (exit $ac_status); }; }; then
1732        cross_compiling=no
1733      else
1734        if test "$cross_compiling" = maybe; then
1735            cross_compiling=yes
1736        else
1737            { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1738    If you meant to cross compile, use \`--host'.
1739    See \`config.log' for more details." >&5
1740    echo "$as_me: error: cannot run C compiled programs.
1741    If you meant to cross compile, use \`--host'.
1742    See \`config.log' for more details." >&2;}
1743       { (exit 1); exit 1; }; }
1744        fi
1745      fi
1746  fi  fi
1747    echo "$as_me:$LINENO: result: yes" >&5
1748    echo "${ECHO_T}yes" >&6
1749    
1750    rm -f a.out a.exe conftest$ac_cv_exeext b.out
1751    ac_clean_files=$ac_clean_files_save
1752    # Check the compiler produces executables we can run.  If not, either
1753    # the compiler is broken, or we cross compile.
1754    echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1755    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1756    echo "$as_me:$LINENO: result: $cross_compiling" >&5
1757    echo "${ECHO_T}$cross_compiling" >&6
1758    
1759    echo "$as_me:$LINENO: checking for suffix of executables" >&5
1760    echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1761    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1762      (eval $ac_link) 2>&5
1763      ac_status=$?
1764      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765      (exit $ac_status); }; then
1766      # If both `conftest.exe' and `conftest' are `present' (well, observable)
1767    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1768    # work properly (i.e., refer to `conftest.exe'), while it won't with
1769    # `rm'.
1770    for ac_file in conftest.exe conftest conftest.*; do
1771      test -f "$ac_file" || continue
1772      case $ac_file in
1773        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1774        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775              export ac_cv_exeext
1776              break;;
1777        * ) break;;
1778      esac
1779    done
1780    else
1781      { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1782    See \`config.log' for more details." >&5
1783    echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1784    See \`config.log' for more details." >&2;}
1785       { (exit 1); exit 1; }; }
1786    fi
1787    
1788    rm -f conftest$ac_cv_exeext
1789    echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1790    echo "${ECHO_T}$ac_cv_exeext" >&6
1791    
1792    rm -f conftest.$ac_ext
1793    EXEEXT=$ac_cv_exeext
1794    ac_exeext=$EXEEXT
1795    echo "$as_me:$LINENO: checking for suffix of object files" >&5
1796    echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1797    if test "${ac_cv_objext+set}" = set; then
1798      echo $ECHO_N "(cached) $ECHO_C" >&6
1799    else
1800      cat >conftest.$ac_ext <<_ACEOF
1801    /* confdefs.h.  */
1802    _ACEOF
1803    cat confdefs.h >>conftest.$ac_ext
1804    cat >>conftest.$ac_ext <<_ACEOF
1805    /* end confdefs.h.  */
1806    
1807    int
1808    main ()
1809    {
1810    
1811  ac_test_CFLAGS="${CFLAGS+set}"    ;
1812  ac_save_CFLAGS="$CFLAGS"    return 0;
1813  CFLAGS=  }
1814  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
1815  echo "configure:724: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.o conftest.obj
1816  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
1818      ac_status=$?
1819      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820      (exit $ac_status); }; then
1821      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1822      case $ac_file in
1823        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1824        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1825           break;;
1826      esac
1827    done
1828  else  else
1829    echo 'void f(){}' > conftest.c    echo "$as_me: failed program was:" >&5
1830  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  sed 's/^/| /' conftest.$ac_ext >&5
1831    
1832    { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1833    See \`config.log' for more details." >&5
1834    echo "$as_me: error: cannot compute suffix of object files: cannot compile
1835    See \`config.log' for more details." >&2;}
1836       { (exit 1); exit 1; }; }
1837    fi
1838    
1839    rm -f conftest.$ac_cv_objext conftest.$ac_ext
1840    fi
1841    echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1842    echo "${ECHO_T}$ac_cv_objext" >&6
1843    OBJEXT=$ac_cv_objext
1844    ac_objext=$OBJEXT
1845    echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1846    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1847    if test "${ac_cv_c_compiler_gnu+set}" = set; then
1848      echo $ECHO_N "(cached) $ECHO_C" >&6
1849    else
1850      cat >conftest.$ac_ext <<_ACEOF
1851    /* confdefs.h.  */
1852    _ACEOF
1853    cat confdefs.h >>conftest.$ac_ext
1854    cat >>conftest.$ac_ext <<_ACEOF
1855    /* end confdefs.h.  */
1856    
1857    int
1858    main ()
1859    {
1860    #ifndef __GNUC__
1861           choke me
1862    #endif
1863    
1864      ;
1865      return 0;
1866    }
1867    _ACEOF
1868    rm -f conftest.$ac_objext
1869    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870      (eval $ac_compile) 2>conftest.er1
1871      ac_status=$?
1872      grep -v '^ *+' conftest.er1 >conftest.err
1873      rm -f conftest.er1
1874      cat conftest.err >&5
1875      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876      (exit $ac_status); } &&
1877             { ac_try='test -z "$ac_c_werror_flag"
1878                             || test ! -s conftest.err'
1879      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880      (eval $ac_try) 2>&5
1881      ac_status=$?
1882      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883      (exit $ac_status); }; } &&
1884             { ac_try='test -s conftest.$ac_objext'
1885      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886      (eval $ac_try) 2>&5
1887      ac_status=$?
1888      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889      (exit $ac_status); }; }; then
1890      ac_compiler_gnu=yes
1891    else
1892      echo "$as_me: failed program was:" >&5
1893    sed 's/^/| /' conftest.$ac_ext >&5
1894    
1895    ac_compiler_gnu=no
1896    fi
1897    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898    ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899    
1900    fi
1901    echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1902    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1903    GCC=`test $ac_compiler_gnu = yes && echo yes`
1904    ac_test_CFLAGS=${CFLAGS+set}
1905    ac_save_CFLAGS=$CFLAGS
1906    CFLAGS="-g"
1907    echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1908    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1909    if test "${ac_cv_prog_cc_g+set}" = set; then
1910      echo $ECHO_N "(cached) $ECHO_C" >&6
1911    else
1912      cat >conftest.$ac_ext <<_ACEOF
1913    /* confdefs.h.  */
1914    _ACEOF
1915    cat confdefs.h >>conftest.$ac_ext
1916    cat >>conftest.$ac_ext <<_ACEOF
1917    /* end confdefs.h.  */
1918    
1919    int
1920    main ()
1921    {
1922    
1923      ;
1924      return 0;
1925    }
1926    _ACEOF
1927    rm -f conftest.$ac_objext
1928    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929      (eval $ac_compile) 2>conftest.er1
1930      ac_status=$?
1931      grep -v '^ *+' conftest.er1 >conftest.err
1932      rm -f conftest.er1
1933      cat conftest.err >&5
1934      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935      (exit $ac_status); } &&
1936             { ac_try='test -z "$ac_c_werror_flag"
1937                             || test ! -s conftest.err'
1938      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939      (eval $ac_try) 2>&5
1940      ac_status=$?
1941      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942      (exit $ac_status); }; } &&
1943             { ac_try='test -s conftest.$ac_objext'
1944      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945      (eval $ac_try) 2>&5
1946      ac_status=$?
1947      echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948      (exit $ac_status); }; }; then
1949    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1950  else  else
1951    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
1952  fi  sed 's/^/| /' conftest.$ac_ext >&5
 rm -f conftest*  
1953    
1954    ac_cv_prog_cc_g=no
1955  fi  fi
1956    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  fi
1958    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1959    echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1960  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1961    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
1962  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1963    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1964      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 750  Line 1972 
1972      CFLAGS=      CFLAGS=
1973    fi    fi
1974  fi  fi
1975    echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1976    echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1977    if test "${ac_cv_prog_cc_stdc+set}" = set; then
1978      echo $ECHO_N "(cached) $ECHO_C" >&6
1979    else
1980      ac_cv_prog_cc_stdc=no
1981    ac_save_CC=$CC
1982    cat >conftest.$ac_ext <<_ACEOF
1983    /* confdefs.h.  */
1984    _ACEOF
1985    cat confdefs.h >>conftest.$ac_ext
1986    cat >>conftest.$ac_ext <<_ACEOF
1987    /* end confdefs.h.  */
1988    #include <stdarg.h>
1989    #include <stdio.h>
1990    #include <sys/types.h>
1991    #include <sys/stat.h>
1992    /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1993    struct buf { int x; };
1994    FILE * (*rcsopen) (struct buf *, struct stat *, int);
1995    static char *e (p, i)
1996         char **p;
1997         int i;
1998    {
1999      return p[i];
2000    }
2001    static char *f (char * (*g) (char **, int), char **p, ...)
2002    {
2003      char *s;
2004      va_list v;
2005      va_start (v,p);
2006      s = g (p, va_arg (v,int));
2007      va_end (v);
2008      return s;
2009    }
2010    
2011    /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2012       function prototypes and stuff, but not '\xHH' hex character constants.
2013       These don't provoke an error unfortunately, instead are silently treated
2014       as 'x'.  The following induces an error, until -std1 is added to get
2015       proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2016       array size at least.  It's necessary to write '\x00'==0 to get something
2017       that's true only with -std1.  */
2018    int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2019    
2020    int test (int i, double x);
2021    struct s1 {int (*f) (int a);};
2022    struct s2 {int (*f) (double a);};
2023    int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2024    int argc;
2025    char **argv;
2026    int
2027    main ()
2028    {
2029    return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2030      ;
2031      return 0;
2032    }
2033    _ACEOF
2034    # Don't try gcc -ansi; that turns off useful extensions and
2035    # breaks some systems' header files.
2036    # AIX                   -qlanglvl=ansi
2037    # Ultrix and OSF/1      -std1
2038    # HP-UX 10.20 and later -Ae
2039    # HP-UX older versions  -Aa -D_HPUX_SOURCE
2040    # SVR4                  -Xc -D__EXTENSIONS__
2041    for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2042    do
2043      CC="$ac_save_CC $ac_arg"
2044      rm -f conftest.$ac_objext
2045    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046      (eval $ac_compile) 2>conftest.er1
2047      ac_status=$?
2048      grep -v '^ *+' conftest.er1 >conftest.err
2049      rm -f conftest.er1
2050      cat conftest.err >&5
2051      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052      (exit $ac_status); } &&
2053             { ac_try='test -z "$ac_c_werror_flag"
2054                             || test ! -s conftest.err'
2055      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056      (eval $ac_try) 2>&5
2057      ac_status=$?
2058      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059      (exit $ac_status); }; } &&
2060             { ac_try='test -s conftest.$ac_objext'
2061      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062      (eval $ac_try) 2>&5
2063      ac_status=$?
2064      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065      (exit $ac_status); }; }; then
2066      ac_cv_prog_cc_stdc=$ac_arg
2067    break
2068    else
2069      echo "$as_me: failed program was:" >&5
2070    sed 's/^/| /' conftest.$ac_ext >&5
2071    
2072    fi
2073    rm -f conftest.err conftest.$ac_objext
2074    done
2075    rm -f conftest.$ac_ext conftest.$ac_objext
2076    CC=$ac_save_CC
2077    
2078    fi
2079    
2080    case "x$ac_cv_prog_cc_stdc" in
2081      x|xno)
2082        echo "$as_me:$LINENO: result: none needed" >&5
2083    echo "${ECHO_T}none needed" >&6 ;;
2084      *)
2085        echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2086    echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2087        CC="$CC $ac_cv_prog_cc_stdc" ;;
2088    esac
2089    
2090    # Some people use a C++ compiler to compile C.  Since we use `exit',
2091    # in C++ we need to declare it.  In case someone uses the same compiler
2092    # for both compiling C and C++ we need to have the C++ compiler decide
2093    # the declaration of exit, since it's the most demanding environment.
2094    cat >conftest.$ac_ext <<_ACEOF
2095    #ifndef __cplusplus
2096      choke me
2097    #endif
2098    _ACEOF
2099    rm -f conftest.$ac_objext
2100    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101      (eval $ac_compile) 2>conftest.er1
2102      ac_status=$?
2103      grep -v '^ *+' conftest.er1 >conftest.err
2104      rm -f conftest.er1
2105      cat conftest.err >&5
2106      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107      (exit $ac_status); } &&
2108             { ac_try='test -z "$ac_c_werror_flag"
2109                             || test ! -s conftest.err'
2110      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111      (eval $ac_try) 2>&5
2112      ac_status=$?
2113      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114      (exit $ac_status); }; } &&
2115             { ac_try='test -s conftest.$ac_objext'
2116      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117      (eval $ac_try) 2>&5
2118      ac_status=$?
2119      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120      (exit $ac_status); }; }; then
2121      for ac_declaration in \
2122       '' \
2123       'extern "C" void std::exit (int) throw (); using std::exit;' \
2124       'extern "C" void std::exit (int); using std::exit;' \
2125       'extern "C" void exit (int) throw ();' \
2126       'extern "C" void exit (int);' \
2127       'void exit (int);'
2128    do
2129      cat >conftest.$ac_ext <<_ACEOF
2130    /* confdefs.h.  */
2131    _ACEOF
2132    cat confdefs.h >>conftest.$ac_ext
2133    cat >>conftest.$ac_ext <<_ACEOF
2134    /* end confdefs.h.  */
2135    $ac_declaration
2136    #include <stdlib.h>
2137    int
2138    main ()
2139    {
2140    exit (42);
2141      ;
2142      return 0;
2143    }
2144    _ACEOF
2145    rm -f conftest.$ac_objext
2146    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147      (eval $ac_compile) 2>conftest.er1
2148      ac_status=$?
2149      grep -v '^ *+' conftest.er1 >conftest.err
2150      rm -f conftest.er1
2151      cat conftest.err >&5
2152      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153      (exit $ac_status); } &&
2154             { ac_try='test -z "$ac_c_werror_flag"
2155                             || test ! -s conftest.err'
2156      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157      (eval $ac_try) 2>&5
2158      ac_status=$?
2159      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160      (exit $ac_status); }; } &&
2161             { ac_try='test -s conftest.$ac_objext'
2162      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163      (eval $ac_try) 2>&5
2164      ac_status=$?
2165      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166      (exit $ac_status); }; }; then
2167      :
2168    else
2169      echo "$as_me: failed program was:" >&5
2170    sed 's/^/| /' conftest.$ac_ext >&5
2171    
2172    continue
2173    fi
2174    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175      cat >conftest.$ac_ext <<_ACEOF
2176    /* confdefs.h.  */
2177    _ACEOF
2178    cat confdefs.h >>conftest.$ac_ext
2179    cat >>conftest.$ac_ext <<_ACEOF
2180    /* end confdefs.h.  */
2181    $ac_declaration
2182    int
2183    main ()
2184    {
2185    exit (42);
2186      ;
2187      return 0;
2188    }
2189    _ACEOF
2190    rm -f conftest.$ac_objext
2191    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192      (eval $ac_compile) 2>conftest.er1
2193      ac_status=$?
2194      grep -v '^ *+' conftest.er1 >conftest.err
2195      rm -f conftest.er1
2196      cat conftest.err >&5
2197      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198      (exit $ac_status); } &&
2199             { ac_try='test -z "$ac_c_werror_flag"
2200                             || test ! -s conftest.err'
2201      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202      (eval $ac_try) 2>&5
2203      ac_status=$?
2204      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205      (exit $ac_status); }; } &&
2206             { ac_try='test -s conftest.$ac_objext'
2207      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208      (eval $ac_try) 2>&5
2209      ac_status=$?
2210      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211      (exit $ac_status); }; }; then
2212      break
2213    else
2214      echo "$as_me: failed program was:" >&5
2215    sed 's/^/| /' conftest.$ac_ext >&5
2216    
2217    fi
2218    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219    done
2220    rm -f conftest*
2221    if test -n "$ac_declaration"; then
2222      echo '#ifdef __cplusplus' >>confdefs.h
2223      echo $ac_declaration      >>confdefs.h
2224      echo '#endif'             >>confdefs.h
2225    fi
2226    
2227    else
2228      echo "$as_me: failed program was:" >&5
2229    sed 's/^/| /' conftest.$ac_ext >&5
2230    
2231    fi
2232    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233    ac_ext=c
2234    ac_cpp='$CPP $CPPFLAGS'
2235    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238    
2239    
2240  # Extract the first word of "flex", so it can be a program name with args.  for ac_prog in flex lex
2241  set dummy flex; ac_word=$2  do
2242  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6    # Extract the first word of "$ac_prog", so it can be a program name with args.
2243  echo "configure:758: checking for $ac_word" >&5  set dummy $ac_prog; ac_word=$2
2244  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  echo "$as_me:$LINENO: checking for $ac_word" >&5
2245    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246    if test "${ac_cv_prog_LEX+set}" = set; then
2247      echo $ECHO_N "(cached) $ECHO_C" >&6
2248  else  else
2249    if test -n "$LEX"; then    if test -n "$LEX"; then
2250    ac_cv_prog_LEX="$LEX" # Let the user override the test.    ac_cv_prog_LEX="$LEX" # Let the user override the test.
2251  else  else
2252    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253    ac_dummy="$PATH"  for as_dir in $PATH
2254    for ac_dir in $ac_dummy; do  do
2255      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2256      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2257        ac_cv_prog_LEX="flex"    for ac_exec_ext in '' $ac_executable_extensions; do
2258        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259      fi      ac_cv_prog_LEX="$ac_prog"
2260    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261    IFS="$ac_save_ifs"      break 2
2262    test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"    fi
2263    done
2264    done
2265    
2266  fi  fi
2267  fi  fi
2268  LEX="$ac_cv_prog_LEX"  LEX=$ac_cv_prog_LEX
2269  if test -n "$LEX"; then  if test -n "$LEX"; then
2270    echo "$ac_t""$LEX" 1>&6    echo "$as_me:$LINENO: result: $LEX" >&5
2271    echo "${ECHO_T}$LEX" >&6
2272  else  else
2273    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2274    echo "${ECHO_T}no" >&6
2275  fi  fi
2276    
2277      test -n "$LEX" && break
2278    done
2279    test -n "$LEX" || LEX=":"
2280    
2281  if test -z "$LEXLIB"  if test -z "$LEXLIB"
2282  then  then
2283    case "$LEX" in    echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2284    flex*) ac_lib=fl ;;  echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2285    *) ac_lib=l ;;  if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2286    esac    echo $ECHO_N "(cached) $ECHO_C" >&6
2287    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6  else
2288  echo "configure:792: checking for yywrap in -l$ac_lib" >&5    ac_check_lib_save_LIBS=$LIBS
2289  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  LIBS="-lfl  $LIBS"
2290  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  cat >conftest.$ac_ext <<_ACEOF
2291    echo $ac_n "(cached) $ac_c" 1>&6  /* confdefs.h.  */
2292  else  _ACEOF
2293    ac_save_LIBS="$LIBS"  cat confdefs.h >>conftest.$ac_ext
2294  LIBS="-l$ac_lib  $LIBS"  cat >>conftest.$ac_ext <<_ACEOF
2295  cat > conftest.$ac_ext <<EOF  /* end confdefs.h.  */
2296  #line 800 "configure"  
 #include "confdefs.h"  
2297  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2298    #ifdef __cplusplus
2299    extern "C"
2300    #endif
2301  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2302      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
2303  char yywrap();  char yywrap ();
2304    int
2305    main ()
2306    {
2307    yywrap ();
2308      ;
2309      return 0;
2310    }
2311    _ACEOF
2312    rm -f conftest.$ac_objext conftest$ac_exeext
2313    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2314      (eval $ac_link) 2>conftest.er1
2315      ac_status=$?
2316      grep -v '^ *+' conftest.er1 >conftest.err
2317      rm -f conftest.er1
2318      cat conftest.err >&5
2319      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320      (exit $ac_status); } &&
2321             { ac_try='test -z "$ac_c_werror_flag"
2322                             || test ! -s conftest.err'
2323      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324      (eval $ac_try) 2>&5
2325      ac_status=$?
2326      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327      (exit $ac_status); }; } &&
2328             { ac_try='test -s conftest$ac_exeext'
2329      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330      (eval $ac_try) 2>&5
2331      ac_status=$?
2332      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333      (exit $ac_status); }; }; then
2334      ac_cv_lib_fl_yywrap=yes
2335    else
2336      echo "$as_me: failed program was:" >&5
2337    sed 's/^/| /' conftest.$ac_ext >&5
2338    
2339    ac_cv_lib_fl_yywrap=no
2340    fi
2341    rm -f conftest.err conftest.$ac_objext \
2342          conftest$ac_exeext conftest.$ac_ext
2343    LIBS=$ac_check_lib_save_LIBS
2344    fi
2345    echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2346    echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2347    if test $ac_cv_lib_fl_yywrap = yes; then
2348      LEXLIB="-lfl"
2349    else
2350      echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2351    echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2352    if test "${ac_cv_lib_l_yywrap+set}" = set; then
2353      echo $ECHO_N "(cached) $ECHO_C" >&6
2354    else
2355      ac_check_lib_save_LIBS=$LIBS
2356    LIBS="-ll  $LIBS"
2357    cat >conftest.$ac_ext <<_ACEOF
2358    /* confdefs.h.  */
2359    _ACEOF
2360    cat confdefs.h >>conftest.$ac_ext
2361    cat >>conftest.$ac_ext <<_ACEOF
2362    /* end confdefs.h.  */
2363    
2364  int main() {  /* Override any gcc2 internal prototype to avoid an error.  */
2365  yywrap()  #ifdef __cplusplus
2366  ; return 0; }  extern "C"
2367  EOF  #endif
2368  if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  /* We use char because int might match the return type of a gcc2
2369    rm -rf conftest*     builtin and then its argument prototype would still apply.  */
2370    eval "ac_cv_lib_$ac_lib_var=yes"  char yywrap ();
2371  else  int
2372    echo "configure: failed program was:" >&5  main ()
2373    cat conftest.$ac_ext >&5  {
2374    rm -rf conftest*  yywrap ();
2375    eval "ac_cv_lib_$ac_lib_var=no"    ;
2376      return 0;
2377    }
2378    _ACEOF
2379    rm -f conftest.$ac_objext conftest$ac_exeext
2380    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381      (eval $ac_link) 2>conftest.er1
2382      ac_status=$?
2383      grep -v '^ *+' conftest.er1 >conftest.err
2384      rm -f conftest.er1
2385      cat conftest.err >&5
2386      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387      (exit $ac_status); } &&
2388             { ac_try='test -z "$ac_c_werror_flag"
2389                             || test ! -s conftest.err'
2390      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391      (eval $ac_try) 2>&5
2392      ac_status=$?
2393      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394      (exit $ac_status); }; } &&
2395             { ac_try='test -s conftest$ac_exeext'
2396      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397      (eval $ac_try) 2>&5
2398      ac_status=$?
2399      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400      (exit $ac_status); }; }; then
2401      ac_cv_lib_l_yywrap=yes
2402    else
2403      echo "$as_me: failed program was:" >&5
2404    sed 's/^/| /' conftest.$ac_ext >&5
2405    
2406    ac_cv_lib_l_yywrap=no
2407    fi
2408    rm -f conftest.err conftest.$ac_objext \
2409          conftest$ac_exeext conftest.$ac_ext
2410    LIBS=$ac_check_lib_save_LIBS
2411    fi
2412    echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2413    echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2414    if test $ac_cv_lib_l_yywrap = yes; then
2415      LEXLIB="-ll"
2416  fi  fi
 rm -f conftest*  
 LIBS="$ac_save_LIBS"  
2417    
2418  fi  fi
2419  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   LEXLIB="-l$ac_lib"  
 else  
   echo "$ac_t""no" 1>&6  
2420  fi  fi
2421    
2422    if test "x$LEX" != "x:"; then
2423      echo "$as_me:$LINENO: checking lex output file root" >&5
2424    echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2425    if test "${ac_cv_prog_lex_root+set}" = set; then
2426      echo $ECHO_N "(cached) $ECHO_C" >&6
2427    else
2428      # The minimal lex program is just a single line: %%.  But some broken lexes
2429    # (Solaris, I think it was) want two %% lines, so accommodate them.
2430    cat >conftest.l <<_ACEOF
2431    %%
2432    %%
2433    _ACEOF
2434    { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2435      (eval $LEX conftest.l) 2>&5
2436      ac_status=$?
2437      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438      (exit $ac_status); }
2439    if test -f lex.yy.c; then
2440      ac_cv_prog_lex_root=lex.yy
2441    elif test -f lexyy.c; then
2442      ac_cv_prog_lex_root=lexyy
2443    else
2444      { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2445    echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2446       { (exit 1); exit 1; }; }
2447    fi
2448    fi
2449    echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2450    echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2451    rm -f conftest.l
2452    LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2453    
2454    echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2455    echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2456    if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2457      echo $ECHO_N "(cached) $ECHO_C" >&6
2458    else
2459      # POSIX says lex can declare yytext either as a pointer or an array; the
2460    # default is implementation-dependent. Figure out which it is, since
2461    # not all implementations provide the %pointer and %array declarations.
2462    ac_cv_prog_lex_yytext_pointer=no
2463    echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2464    ac_save_LIBS=$LIBS
2465    LIBS="$LIBS $LEXLIB"
2466    cat >conftest.$ac_ext <<_ACEOF
2467    `cat $LEX_OUTPUT_ROOT.c`
2468    _ACEOF
2469    rm -f conftest.$ac_objext conftest$ac_exeext
2470    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471      (eval $ac_link) 2>conftest.er1
2472      ac_status=$?
2473      grep -v '^ *+' conftest.er1 >conftest.err
2474      rm -f conftest.er1
2475      cat conftest.err >&5
2476      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477      (exit $ac_status); } &&
2478             { ac_try='test -z "$ac_c_werror_flag"
2479                             || test ! -s conftest.err'
2480      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481      (eval $ac_try) 2>&5
2482      ac_status=$?
2483      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484      (exit $ac_status); }; } &&
2485             { ac_try='test -s conftest$ac_exeext'
2486      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487      (eval $ac_try) 2>&5
2488      ac_status=$?
2489      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490      (exit $ac_status); }; }; then
2491      ac_cv_prog_lex_yytext_pointer=yes
2492    else
2493      echo "$as_me: failed program was:" >&5
2494    sed 's/^/| /' conftest.$ac_ext >&5
2495    
2496    fi
2497    rm -f conftest.err conftest.$ac_objext \
2498          conftest$ac_exeext conftest.$ac_ext
2499    LIBS=$ac_save_LIBS
2500    rm -f "${LEX_OUTPUT_ROOT}.c"
2501    
2502    fi
2503    echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2504    echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2505    if test $ac_cv_prog_lex_yytext_pointer = yes; then
2506    
2507    cat >>confdefs.h <<\_ACEOF
2508    #define YYTEXT_POINTER 1
2509    _ACEOF
2510    
2511  fi  fi
2512    
2513    fi
2514  for ac_prog in 'bison -y' byacc  for ac_prog in 'bison -y' byacc
2515  do  do
2516  # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
2517  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2518  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for $ac_word" >&5
2519  echo "configure:838: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if test "${ac_cv_prog_YACC+set}" = set; then
2521    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2522  else  else
2523    if test -n "$YACC"; then    if test -n "$YACC"; then
2524    ac_cv_prog_YACC="$YACC" # Let the user override the test.    ac_cv_prog_YACC="$YACC" # Let the user override the test.
2525  else  else
2526    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527    ac_dummy="$PATH"  for as_dir in $PATH
2528    for ac_dir in $ac_dummy; do  do
2529      test -z "$ac_dir" && ac_dir=.    IFS=$as_save_IFS
2530      if test -f $ac_dir/$ac_word; then    test -z "$as_dir" && as_dir=.
2531        ac_cv_prog_YACC="$ac_prog"    for ac_exec_ext in '' $ac_executable_extensions; do
2532        break    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533      fi      ac_cv_prog_YACC="$ac_prog"
2534    done      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535    IFS="$ac_save_ifs"      break 2
2536      fi
2537    done
2538    done
2539    
2540  fi  fi
2541  fi  fi
2542  YACC="$ac_cv_prog_YACC"  YACC=$ac_cv_prog_YACC
2543  if test -n "$YACC"; then  if test -n "$YACC"; then
2544    echo "$ac_t""$YACC" 1>&6    echo "$as_me:$LINENO: result: $YACC" >&5
2545    echo "${ECHO_T}$YACC" >&6
2546  else  else
2547    echo "$ac_t""no" 1>&6    echo "$as_me:$LINENO: result: no" >&5
2548    echo "${ECHO_T}no" >&6
2549  fi  fi
2550    
2551  test -n "$YACC" && break    test -n "$YACC" && break
2552  done  done
2553  test -n "$YACC" || YACC="yacc"  test -n "$YACC" || YACC="yacc"
2554    
2555    
2556  # Check whether --with-gd or --without-gd was given.  LEXFLAGS="-8"
2557  if test "${with_gd+set}" = set; then  LEXSPEED="-Cf"
2558    withval="$with_gd"  INCL=""
   LDFLAGS="${LDFLAGS} -L${withval}"  
                 CFLAGS="${CFLAGS} -I${withval}"  
   
 fi  
2559    
2560    
2561  # Check whether --with-z or --without-z was given.  # Check whether --with-gd-inc or --without-gd-inc was given.
2562  if test "${with_z+set}" = set; then  if test "${with_gd_inc+set}" = set; then
2563    withval="$with_z"    withval="$with_gd_inc"
2564    LDFLAGS="${LDFLAGS} -L${withval}"    INCL="${INCL} -I${withval}"
                 CFLAGS="${CFLAGS} -I${withval}"  
   
 fi  
2565    
2566    fi;
2567    
2568    
2569    # Check whether --with-gd-lib or --without-gd-lib was given.
2570    if test "${with_gd_lib+set}" = set; then
2571      withval="$with_gd_lib"
2572      LIBS="${LIBS} -L${withval}"
2573    
2574    fi;
2575    
2576    LIBS="$LIBS -lgd"
2577    LIBPATH=""
2578    
2579    
2580    # Check whether --with-freetype-lib or --without-freetype-lib was given.
2581    if test "${with_freetype_lib+set}" = set; then
2582      withval="$with_freetype_lib"
2583      LIBS="${LIBS} -L${withval}"
2584    
2585    fi;
2586    
2587    
2588    # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
2589    if test "${with_freetype2_lib+set}" = set; then
2590      withval="$with_freetype2_lib"
2591      LIBS="${LIBS} -L${withval}"
2592    
2593    fi;
2594    
2595    
2596    # Check whether --with-png-inc or --without-png-inc was given.
2597    if test "${with_png_inc+set}" = set; then
2598      withval="$with_png_inc"
2599      INCL="${INCL} -I${withval}"
2600    
2601    fi;
2602    
2603    
2604    # Check whether --with-png-lib or --without-png-lib was given.
2605    if test "${with_png_lib+set}" = set; then
2606      withval="$with_png_lib"
2607      LIBS="${LIBS} -L${withval}"
2608    
2609    fi;
2610    
 # Check whether --with-png or --without-png was given.  
 if test "${with_png+set}" = set; then  
   withval="$with_png"  
   LDFLAGS="${LDFLAGS} -L${withval}"  
                 CFLAGS="${CFLAGS} -I${withval}"  
   
 fi  
2611    
2612    # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
2613    if test "${with_jpeg_inc+set}" = set; then
2614      withval="$with_jpeg_inc"
2615      INCL="${INCL} -I${withval}"
2616    
2617  LDFLAGS="${LDFLAGS} -lgd"  fi;
2618    
2619    
2620    # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
2621    if test "${with_jpeg_lib+set}" = set; then
2622      withval="$with_jpeg_lib"
2623      LIBS="${LIBS} -L${withval}"
2624    
2625    fi;
2626    
2627    
2628    # Check whether --with-z-inc or --without-z-inc was given.
2629    if test "${with_z_inc+set}" = set; then
2630      withval="$with_z_inc"
2631      INCL="${INCL} -I${withval}"
2632    
2633    fi;
2634    
2635    
2636    # Check whether --with-z-lib or --without-z-lib was given.
2637    if test "${with_z_lib+set}" = set; then
2638      withval="$with_z_lib"
2639      LIBS="${LIBS} -L${withval}"
2640    
2641    fi;
2642    
2643    # Check whether --enable-speed or --disable-speed was given.
2644    if test "${enable_speed+set}" = set; then
2645      enableval="$enable_speed"
2646      if test "$enableval" = "no"; then LEXSPEED=""; fi
2647    fi;
2648    
2649    if test "x$LEXSPEED" != "x"
2650    then
2651      LEXFLAGS="$LEXFLAGS $LEXSPEED"
2652    fi
2653    
2654    CPPFLAGS="$CPPFLAGS $INCL"
2655    CFLAGS="$CFLAGS $INCL"
2656    
2657  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
2658  then  then
2659    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
2660    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6    echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5
2661  echo "configure:903: checking "for gcc strength-reduce bug"" >&5  echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6
2662  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then  if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
2663    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2664  else  else
2665    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
2666    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
2667  else  else
2668    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2669  #line 911 "configure"  /* confdefs.h.  */
2670  #include "confdefs.h"  _ACEOF
2671    cat confdefs.h >>conftest.$ac_ext
2672    cat >>conftest.$ac_ext <<_ACEOF
2673    /* end confdefs.h.  */
2674    
2675  int main(void) {  int main(void) {
2676    static int Array[3];    static int Array[3];
# Line 917  Line 2679 
2679    for(i=0; i<B; i++) Array[i] = i - 3;    for(i=0; i<B; i++) Array[i] = i - 3;
2680    exit( Array[1] != -2 );    exit( Array[1] != -2 );
2681  }  }
2682  EOF  _ACEOF
2683  if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  rm -f conftest$ac_exeext
2684  then  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685      (eval $ac_link) 2>&5
2686      ac_status=$?
2687      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2689      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690      (eval $ac_try) 2>&5
2691      ac_status=$?
2692      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693      (exit $ac_status); }; }; then
2694    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
2695  else  else
2696    echo "configure: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
2697    cat conftest.$ac_ext >&5  echo "$as_me: failed program was:" >&5
2698    rm -fr conftest*  sed 's/^/| /' conftest.$ac_ext >&5
2699    ac_cv_c_gcc_strength_bug="yes"  
2700    ( exit $ac_status )
2701    ac_cv_c_gcc_strength_bug="yes"
2702  fi  fi
2703  rm -fr conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2704  fi  fi
   
2705  fi  fi
2706    echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
2707  echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6  echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
2708    if test "$ac_cv_c_gcc_strength_bug" = "yes"    if test "$ac_cv_c_gcc_strength_bug" = "yes"
2709    then    then
2710      CFLAGS="$CFLAGS -fno-strength-reduce"      CFLAGS="$CFLAGS -fno-strength-reduce"
2711    fi    fi
2712  fi  fi
2713    
2714    echo "$as_me:$LINENO: checking \"sizes of int and void *\"" >&5
2715    echo $ECHO_N "checking \"sizes of int and void *\"... $ECHO_C" >&6
2716    if test "${ac_cv_c_size_int_ptr+set}" = set; then
2717      echo $ECHO_N "(cached) $ECHO_C" >&6
2718    else
2719      if test "$cross_compiling" = yes; then
2720      ac_cv_c_size_int_ptr="yes"
2721    else
2722      cat >conftest.$ac_ext <<_ACEOF
2723    /* confdefs.h.  */
2724    _ACEOF
2725    cat confdefs.h >>conftest.$ac_ext
2726    cat >>conftest.$ac_ext <<_ACEOF
2727    /* end confdefs.h.  */
2728    
2729  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  int main(void) {
2730  echo "configure:945: checking for sqrt in -lm" >&5    return sizeof(int) == sizeof(void *);
2731  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  }
2732  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  _ACEOF
2733    echo $ac_n "(cached) $ac_c" 1>&6  rm -f conftest$ac_exeext
2734    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2735      (eval $ac_link) 2>&5
2736      ac_status=$?
2737      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2739      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740      (eval $ac_try) 2>&5
2741      ac_status=$?
2742      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743      (exit $ac_status); }; }; then
2744      ac_cv_c_size_int_ptr="no"
2745    else
2746      echo "$as_me: program exited with status $ac_status" >&5
2747    echo "$as_me: failed program was:" >&5
2748    sed 's/^/| /' conftest.$ac_ext >&5
2749    
2750    ( exit $ac_status )
2751    ac_cv_c_size_int_ptr="yes"
2752    fi
2753    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2754    fi
2755    fi
2756    echo "$as_me:$LINENO: result: $ac_cv_c_size_int_ptr" >&5
2757    echo "${ECHO_T}$ac_cv_c_size_int_ptr" >&6
2758    
2759    echo "$as_me:$LINENO: checking \"sizes of long and void *\"" >&5
2760    echo $ECHO_N "checking \"sizes of long and void *\"... $ECHO_C" >&6
2761    if test "${ac_cv_c_size_long_ptr+set}" = set; then
2762      echo $ECHO_N "(cached) $ECHO_C" >&6
2763  else  else
2764    ac_save_LIBS="$LIBS"    if test "$cross_compiling" = yes; then
2765  LIBS="-lm  $LIBS"    ac_cv_c_size_long_ptr="yes"
2766  cat > conftest.$ac_ext <<EOF  else
2767  #line 953 "configure"    cat >conftest.$ac_ext <<_ACEOF
2768  #include "confdefs.h"  /* confdefs.h.  */
2769  /* Override any gcc2 internal prototype to avoid an error.  */  _ACEOF
2770  /* We use char because int might match the return type of a gcc2  cat confdefs.h >>conftest.$ac_ext
2771      builtin and then its argument prototype would still apply.  */  cat >>conftest.$ac_ext <<_ACEOF
2772  char sqrt();  /* end confdefs.h.  */
2773    
2774  int main() {  int main(void) {
2775  sqrt()    return sizeof(long) == sizeof(void *);
2776  ; return 0; }  }
2777  EOF  _ACEOF
2778  if { (eval echo configure:964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -f conftest$ac_exeext
2779    rm -rf conftest*  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780    eval "ac_cv_lib_$ac_lib_var=yes"    (eval $ac_link) 2>&5
2781  else    ac_status=$?
2782    echo "configure: failed program was:" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783    cat conftest.$ac_ext >&5    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2784    rm -rf conftest*    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785    eval "ac_cv_lib_$ac_lib_var=no"    (eval $ac_try) 2>&5
2786  fi    ac_status=$?
2787  rm -f conftest*    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  LIBS="$ac_save_LIBS"    (exit $ac_status); }; }; then
2789      ac_cv_c_size_long_ptr="no"
2790    else
2791      echo "$as_me: program exited with status $ac_status" >&5
2792    echo "$as_me: failed program was:" >&5
2793    sed 's/^/| /' conftest.$ac_ext >&5
2794    
2795    ( exit $ac_status )
2796    ac_cv_c_size_long_ptr="yes"
2797    fi
2798    rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2799    fi
2800    fi
2801    echo "$as_me:$LINENO: result: $ac_cv_c_size_long_ptr" >&5
2802    echo "${ECHO_T}$ac_cv_c_size_long_ptr" >&6
2803    
2804    echo "$as_me:$LINENO: checking \"sizes of long long and void *\"" >&5
2805    echo $ECHO_N "checking \"sizes of long long and void *\"... $ECHO_C" >&6
2806    if test "${ac_cv_c_size_longlong_ptr+set}" = set; then
2807      echo $ECHO_N "(cached) $ECHO_C" >&6
2808    else
2809      if test "$cross_compiling" = yes; then
2810      ac_cv_c_size_longlong_ptr="yes"
2811    else
2812      cat >conftest.$ac_ext <<_ACEOF
2813    /* confdefs.h.  */
2814    _ACEOF
2815    cat confdefs.h >>conftest.$ac_ext
2816    cat >>conftest.$ac_ext <<_ACEOF
2817    /* end confdefs.h.  */
2818    
2819    int main(void) {
2820      return sizeof(long long) == sizeof(void *);
2821    }
2822    _ACEOF
2823    rm -f conftest$ac_exeext
2824    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2825      (eval $ac_link) 2>&5
2826      ac_status=$?
2827      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2829      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830      (eval $ac_try) 2>&5
2831      ac_status=$?
2832      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833      (exit $ac_status); }; }; then
2834      ac_cv_c_size_longlong_ptr="no"
2835    else
2836      echo "$as_me: program exited with status $ac_status" >&5
2837    echo "$as_me: failed program was:" >&5
2838    sed 's/^/| /' conftest.$ac_ext >&5
2839    
2840    ( exit $ac_status )
2841    ac_cv_c_size_longlong_ptr="yes"
2842  fi  fi
2843  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2844    echo "$ac_t""yes" 1>&6  fi
2845    fi
2846          cat >> confdefs.h <<\EOF  echo "$as_me:$LINENO: result: $ac_cv_c_size_longlong_ptr" >&5
2847  #define LIBM 1  echo "${ECHO_T}$ac_cv_c_size_longlong_ptr" >&6
 EOF  
2848    
2849          MATHLIBS="-lm"  if test "$ac_cv_c_size_int_ptr" = "no"
2850    then
2851            if test "$ac_cv_c_size_long_ptr" = "no"
2852            then
2853                    if test "$ac_cv_c_size_longlong_ptr" = "no"
2854                    then
2855                            echo "** The size of an integer is not equal to a pointer."
2856                            echo "   There are currently assumtions in the app that"
2857                            echo "   prevents it from running if these sizes are not"
2858                            echo "   equal."
2859                            echo "   Please configure with a compiler that uses the"
2860                            echo "   same sizes for ints and pointers."
2861                            exit 1
2862                    else
2863                            INTTYPE="long long"
2864                    fi
2865            else
2866                    INTTYPE="long"
2867            fi
2868  else  else
2869    echo "$ac_t""no" 1>&6          INTTYPE="int"
2870  fi  fi
2871    
2872    ac_ext=c
2873  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  ac_cpp='$CPP $CPPFLAGS'
2874  echo "configure:991: checking for gdImageGif in -lgd" >&5  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877    echo $ac_n "(cached) $ac_c" 1>&6  echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2879    # On Suns, sometimes $CPP names a directory.
2880    if test -n "$CPP" && test -d "$CPP"; then
2881      CPP=
2882    fi
2883    if test -z "$CPP"; then
2884      if test "${ac_cv_prog_CPP+set}" = set; then
2885      echo $ECHO_N "(cached) $ECHO_C" >&6
2886  else  else
2887    ac_save_LIBS="$LIBS"        # Double quotes because CPP needs to be expanded
2888  LIBS="-lgd  $LIBS"      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889  cat > conftest.$ac_ext <<EOF      do
2890  #line 999 "configure"        ac_preproc_ok=false
2891  #include "confdefs.h"  for ac_c_preproc_warn_flag in '' yes
2892  /* Override any gcc2 internal prototype to avoid an error.  */  do
2893  /* We use char because int might match the return type of a gcc2    # Use a header file that comes with gcc, so configuring glibc
2894      builtin and then its argument prototype would still apply.  */    # with a fresh cross-compiler works.
2895  char gdImageGif();    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896      # <limits.h> exists even on freestanding compilers.
2897  int main() {    # On the NeXT, cc -E runs the code through the compiler's parser,
2898  gdImageGif()    # not just through cpp. "Syntax error" is here to catch this case.
2899  ; return 0; }    cat >conftest.$ac_ext <<_ACEOF
2900  EOF  /* confdefs.h.  */
2901  if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  _ACEOF
2902    rm -rf conftest*  cat confdefs.h >>conftest.$ac_ext
2903    eval "ac_cv_lib_$ac_lib_var=yes"  cat >>conftest.$ac_ext <<_ACEOF
2904  else  /* end confdefs.h.  */
2905    echo "configure: failed program was:" >&5  #ifdef __STDC__
2906    cat conftest.$ac_ext >&5  # include <limits.h>
2907    rm -rf conftest*  #else
2908    eval "ac_cv_lib_$ac_lib_var=no"  # include <assert.h>
2909    #endif
2910                         Syntax error
2911    _ACEOF
2912    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914      ac_status=$?
2915      grep -v '^ *+' conftest.er1 >conftest.err
2916      rm -f conftest.er1
2917      cat conftest.err >&5
2918      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919      (exit $ac_status); } >/dev/null; then
2920      if test -s conftest.err; then
2921        ac_cpp_err=$ac_c_preproc_warn_flag
2922        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923      else
2924        ac_cpp_err=
2925      fi
2926    else
2927      ac_cpp_err=yes
2928  fi  fi
2929  rm -f conftest*  if test -z "$ac_cpp_err"; then
2930  LIBS="$ac_save_LIBS"    :
2931    else
2932      echo "$as_me: failed program was:" >&5
2933    sed 's/^/| /' conftest.$ac_ext >&5
2934    
2935      # Broken: fails on valid input.
2936    continue
2937  fi  fi
2938  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  rm -f conftest.err conftest.$ac_ext
   echo "$ac_t""yes" 1>&6  
   
         cat >> confdefs.h <<\EOF  
 #define HAVE_IMAGE_GIF 1  
 EOF  
2939    
2940      # OK, works on sane cases.  Now check whether non-existent headers
2941      # can be detected and how.
2942      cat >conftest.$ac_ext <<_ACEOF
2943    /* confdefs.h.  */
2944    _ACEOF
2945    cat confdefs.h >>conftest.$ac_ext
2946    cat >>conftest.$ac_ext <<_ACEOF
2947    /* end confdefs.h.  */
2948    #include <ac_nonexistent.h>
2949    _ACEOF
2950    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952      ac_status=$?
2953      grep -v '^ *+' conftest.er1 >conftest.err
2954      rm -f conftest.er1
2955      cat conftest.err >&5
2956      echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957      (exit $ac_status); } >/dev/null; then
2958      if test -s conftest.err; then
2959        ac_cpp_err=$ac_c_preproc_warn_flag
2960        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961      else
2962        ac_cpp_err=
2963      fi
2964  else  else
2965    echo "$ac_t""no" 1>&6    ac_cpp_err=yes
2966  fi  fi
2967    if test -z "$ac_cpp_err"; then
2968  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6    # Broken: success on invalid input.
2969  echo "configure:1036: checking for gdImagePng in -lgd" >&5  continue
 ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
2970  else  else
2971    ac_save_LIBS="$LIBS"    echo "$as_me: failed program was:" >&5
2972  LIBS="-lgd  $LIBS"  sed 's/^/| /' conftest.$ac_ext >&5
 cat > conftest.$ac_ext <<EOF  
 #line 1044 "configure"  
 #include "confdefs.h"  
 /* Override any gcc2 internal prototype to avoid an error.  */  
 /* We use char because int might match the return type of a gcc2  
     builtin and then its argument prototype would still apply.  */  
 char gdImagePng();  
2973    
2974  int main() {    # Passes both tests.
2975  gdImagePng()  ac_preproc_ok=:
2976  ; return 0; }  break
 EOF  
 if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
2977  fi  fi
2978  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
 LIBS="$ac_save_LIBS"  
2979    
2980    done
2981    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982    rm -f conftest.err conftest.$ac_ext
2983    if $ac_preproc_ok; then
2984      break
2985  fi  fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
   
         cat >> confdefs.h <<\EOF  
 #define HAVE_IMAGE_PNG 1  
 EOF  
2986    
2987          LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"      done
2988        ac_cv_prog_CPP=$CPP
2989    
2990    fi
2991      CPP=$ac_cv_prog_CPP
2992  else  else
2993    echo "$ac_t""no" 1>&6    ac_cv_prog_CPP=$CPP
2994  fi  fi
2995    echo "$as_me:$LINENO: result: $CPP" >&5
2996  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo "${ECHO_T}$CPP" >&6
2997  echo "configure:1082: checking for gdImageJpeg in -lgd" >&5  ac_preproc_ok=false
2998  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  for ac_c_preproc_warn_flag in '' yes
2999  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  do
3000    echo $ac_n "(cached) $ac_c" 1>&6    # Use a header file that comes with gcc, so configuring glibc
3001      # with a fresh cross-compiler works.
3002      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003      # <limits.h> exists even on freestanding compilers.
3004      # On the NeXT, cc -E runs the code through the compiler's parser,
3005      # not just through cpp. "Syntax error" is here to catch this case.
3006      cat >conftest.$ac_ext <<_ACEOF
3007    /* confdefs.h.  */
3008    _ACEOF
3009    cat confdefs.h >>conftest.$ac_ext
3010    cat >>conftest.$ac_ext <<_ACEOF
3011    /* end confdefs.h.  */
3012    #ifdef __STDC__
3013    # include <limits.h>
3014    #else
3015    # include <assert.h>
3016    #endif
3017                         Syntax error
3018    _ACEOF
3019    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021      ac_status=$?
3022      grep -v '^ *+' conftest.er1 >conftest.err
3023      rm -f conftest.er1
3024      cat conftest.err >&5
3025      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026      (exit $ac_status); } >/dev/null; then
3027      if test -s conftest.err; then
3028        ac_cpp_err=$ac_c_preproc_warn_flag
3029        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030      else
3031        ac_cpp_err=
3032      fi
3033  else  else
3034    ac_save_LIBS="$LIBS"    ac_cpp_err=yes
3035  LIBS="-lgd  $LIBS"  fi
3036  cat > conftest.$ac_ext <<EOF  if test -z "$ac_cpp_err"; then
3037  #line 1090 "configure"    :
3038  #include "confdefs.h"  else
3039  /* Override any gcc2 internal prototype to avoid an error.  */    echo "$as_me: failed program was:" >&5
3040  /* We use char because int might match the return type of a gcc2  sed 's/^/| /' conftest.$ac_ext >&5
     builtin and then its argument prototype would still apply.  */  
 char gdImageJpeg();  
3041    
3042  int main() {    # Broken: fails on valid input.
3043  gdImageJpeg()  continue
 ; return 0; }  
 EOF  
 if { (eval echo configure:1101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_lib_$ac_lib_var=no"  
3044  fi  fi
3045  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
 LIBS="$ac_save_LIBS"  
3046    
3047      # OK, works on sane cases.  Now check whether non-existent headers
3048      # can be detected and how.
3049      cat >conftest.$ac_ext <<_ACEOF
3050    /* confdefs.h.  */
3051    _ACEOF
3052    cat confdefs.h >>conftest.$ac_ext
3053    cat >>conftest.$ac_ext <<_ACEOF
3054    /* end confdefs.h.  */
3055    #include <ac_nonexistent.h>
3056    _ACEOF
3057    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059      ac_status=$?
3060      grep -v '^ *+' conftest.er1 >conftest.err
3061      rm -f conftest.er1
3062      cat conftest.err >&5
3063      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064      (exit $ac_status); } >/dev/null; then
3065      if test -s conftest.err; then
3066        ac_cpp_err=$ac_c_preproc_warn_flag
3067        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068      else
3069        ac_cpp_err=
3070      fi
3071    else
3072      ac_cpp_err=yes
3073  fi  fi
3074  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if test -z "$ac_cpp_err"; then
3075    echo "$ac_t""yes" 1>&6    # Broken: success on invalid input.
3076    continue
3077          cat >> confdefs.h <<\EOF  else
3078  #define HAVE_IMAGE_JPEG 1    echo "$as_me: failed program was:" >&5
3079  EOF  sed 's/^/| /' conftest.$ac_ext >&5
3080    
3081          LDFLAGS="$LDFLAGS -ljpeg"    # Passes both tests.
3082    ac_preproc_ok=:
3083    break
3084    fi
3085    rm -f conftest.err conftest.$ac_ext
3086    
3087    done
3088    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089    rm -f conftest.err conftest.$ac_ext
3090    if $ac_preproc_ok; then
3091      :
3092  else  else
3093    echo "$ac_t""no" 1>&6    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3094    See \`config.log' for more details." >&5
3095    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3096    See \`config.log' for more details." >&2;}
3097       { (exit 1); exit 1; }; }
3098  fi  fi
3099    
3100    ac_ext=c
3101    ac_cpp='$CPP $CPPFLAGS'
3102    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104    ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105    
3106    
3107  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo "$as_me:$LINENO: checking for egrep" >&5
3108  echo "configure:1130: checking how to run the C preprocessor" >&5  echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3109  # On Suns, sometimes $CPP names a directory.  if test "${ac_cv_prog_egrep+set}" = set; then
3110  if test -n "$CPP" && test -d "$CPP"; then    echo $ECHO_N "(cached) $ECHO_C" >&6
3111    CPP=  else
3112      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3113        then ac_cv_prog_egrep='grep -E'
3114        else ac_cv_prog_egrep='egrep'
3115        fi
3116  fi  fi
3117  if test -z "$CPP"; then  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3118  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3119    echo $ac_n "(cached) $ac_c" 1>&6   EGREP=$ac_cv_prog_egrep
3120    
3121    
3122    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3123    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3124    if test "${ac_cv_header_stdc+set}" = set; then
3125      echo $ECHO_N "(cached) $ECHO_C" >&6
3126    else
3127      cat >conftest.$ac_ext <<_ACEOF
3128    /* confdefs.h.  */
3129    _ACEOF
3130    cat confdefs.h >>conftest.$ac_ext
3131    cat >>conftest.$ac_ext <<_ACEOF
3132    /* end confdefs.h.  */
3133    #include <stdlib.h>
3134    #include <stdarg.h>
3135    #include <string.h>
3136    #include <float.h>
3137    
3138    int
3139    main ()
3140    {
3141    
3142      ;
3143      return 0;
3144    }
3145    _ACEOF
3146    rm -f conftest.$ac_objext
3147    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148      (eval $ac_compile) 2>conftest.er1
3149      ac_status=$?
3150      grep -v '^ *+' conftest.er1 >conftest.err
3151      rm -f conftest.er1
3152      cat conftest.err >&5
3153      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154      (exit $ac_status); } &&
3155             { ac_try='test -z "$ac_c_werror_flag"
3156                             || test ! -s conftest.err'
3157      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158      (eval $ac_try) 2>&5
3159      ac_status=$?
3160      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161      (exit $ac_status); }; } &&
3162             { ac_try='test -s conftest.$ac_objext'
3163      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164      (eval $ac_try) 2>&5
3165      ac_status=$?
3166      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167      (exit $ac_status); }; }; then
3168      ac_cv_header_stdc=yes
3169    else
3170      echo "$as_me: failed program was:" >&5
3171    sed 's/^/| /' conftest.$ac_ext >&5
3172    
3173    ac_cv_header_stdc=no
3174    fi
3175    rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176    
3177    if test $ac_cv_header_stdc = yes; then
3178      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3179      cat >conftest.$ac_ext <<_ACEOF
3180    /* confdefs.h.  */
3181    _ACEOF
3182    cat confdefs.h >>conftest.$ac_ext
3183    cat >>conftest.$ac_ext <<_ACEOF
3184    /* end confdefs.h.  */
3185    #include <string.h>
3186    
3187    _ACEOF
3188    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189      $EGREP "memchr" >/dev/null 2>&1; then
3190      :
3191  else  else
3192      # This must be in double quotes, not single quotes, because CPP may get    ac_cv_header_stdc=no
3193    # substituted into the Makefile and "${CC-cc}" will confuse make.  fi
3194    CPP="${CC-cc} -E"  rm -f conftest*
3195    # On the NeXT, cc -E runs the code through the compiler's parser,  
3196    # not just through cpp.  fi
3197    cat > conftest.$ac_ext <<EOF  
3198  #line 1145 "configure"  if test $ac_cv_header_stdc = yes; then
3199  #include "confdefs.h"    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3200  #include <assert.h>    cat >conftest.$ac_ext <<_ACEOF
3201  Syntax Error  /* confdefs.h.  */
3202  EOF  _ACEOF
3203  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  cat confdefs.h >>conftest.$ac_ext
3204  { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  cat >>conftest.$ac_ext <<_ACEOF
3205  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  /* end confdefs.h.  */
3206  if test -z "$ac_err"; then  #include <stdlib.h>
3207    
3208    _ACEOF
3209    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210      $EGREP "free" >/dev/null 2>&1; then
3211    :    :
3212  else  else
3213    echo "$ac_err" >&5    ac_cv_header_stdc=no
3214    echo "configure: failed program was:" >&5  fi
3215    cat conftest.$ac_ext >&5  rm -f conftest*
3216    rm -rf conftest*  
3217    CPP="${CC-cc} -E -traditional-cpp"  fi
3218    cat > conftest.$ac_ext <<EOF  
3219  #line 1162 "configure"  if test $ac_cv_header_stdc = yes; then
3220  #include "confdefs.h"    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3221  #include <assert.h>    if test "$cross_compiling" = yes; then
 Syntax Error  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
3222    :    :
3223  else  else
3224    echo "$ac_err" >&5    cat >conftest.$ac_ext <<_ACEOF
3225    echo "configure: failed program was:" >&5  /* confdefs.h.  */
3226    cat conftest.$ac_ext >&5  _ACEOF
3227    rm -rf conftest*  cat confdefs.h >>conftest.$ac_ext
3228    CPP="${CC-cc} -nologo -E"  cat >>conftest.$ac_ext <<_ACEOF
3229    cat > conftest.$ac_ext <<EOF  /* end confdefs.h.  */
3230  #line 1179 "configure"  #include <ctype.h>
3231  #include "confdefs.h"  #if ((' ' & 0x0FF) == 0x020)
3232  #include <assert.h>  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3233  Syntax Error  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3234  EOF  #else
3235  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  # define ISLOWER(c) \
3236  { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }                     (('a' <= (c) && (c) <= 'i') \
3237  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`                       || ('j' <= (c) && (c) <= 'r') \
3238  if test -z "$ac_err"; then                       || ('s' <= (c) && (c) <= 'z'))
3239    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3240    #endif
3241    
3242    #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3243    int
3244    main ()
3245    {
3246      int i;
3247      for (i = 0; i < 256; i++)
3248        if (XOR (islower (i), ISLOWER (i))
3249            || toupper (i) != TOUPPER (i))
3250          exit(2);
3251      exit (0);
3252    }
3253    _ACEOF
3254    rm -f conftest$ac_exeext
3255    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3256      (eval $ac_link) 2>&5
3257      ac_status=$?
3258      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259      (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3260      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261      (eval $ac_try) 2>&5
3262      ac_status=$?
3263      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264      (exit $ac_status); }; }; then
3265    :    :
3266  else  else
3267    echo "$ac_err" >&5    echo "$as_me: program exited with status $ac_status" >&5
3268    echo "configure: failed program was:" >&5  echo "$as_me: failed program was:" >&5
3269    cat conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3270    rm -rf conftest*  
3271    CPP=/lib/cpp  ( exit $ac_status )
3272    ac_cv_header_stdc=no
3273  fi  fi
3274  rm -f conftest*  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3275  fi  fi
 rm -f conftest*  
3276  fi  fi
 rm -f conftest*  
   ac_cv_prog_CPP="$CPP"  
3277  fi  fi
3278    CPP="$ac_cv_prog_CPP"  echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3279    echo "${ECHO_T}$ac_cv_header_stdc" >&6
3280    if test $ac_cv_header_stdc = yes; then
3281    
3282    cat >>confdefs.h <<\_ACEOF
3283    #define STDC_HEADERS 1
3284    _ACEOF
3285    
3286    fi
3287    
3288    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3289    
3290    
3291    
3292    
3293    
3294    
3295    
3296    
3297    
3298    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3299                      inttypes.h stdint.h unistd.h
3300    do
3301    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3302    echo "$as_me:$LINENO: checking for $ac_header" >&5
3303    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3304    if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305      echo $ECHO_N "(cached) $ECHO_C" >&6
3306    else
3307      cat >conftest.$ac_ext <<_ACEOF
3308    /* confdefs.h.  */
3309    _ACEOF
3310    cat confdefs.h >>conftest.$ac_ext
3311    cat >>conftest.$ac_ext <<_ACEOF
3312    /* end confdefs.h.  */
3313    $ac_includes_default
3314    
3315    #include <$ac_header>
3316    _ACEOF
3317    rm -f conftest.$ac_objext
3318    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319      (eval $ac_compile) 2>conftest.er1
3320      ac_status=$?
3321      grep -v '^ *+' conftest.er1 >conftest.err
3322      rm -f conftest.er1
3323      cat conftest.err >&5
3324      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325      (exit $ac_status); } &&
3326             { ac_try='test -z "$ac_c_werror_flag"
3327                             || test ! -s conftest.err'
3328      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329      (eval $ac_try) 2>&5
3330      ac_status=$?
3331      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332      (exit $ac_status); }; } &&
3333             { ac_try='test -s conftest.$ac_objext'
3334      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335      (eval $ac_try) 2>&5