/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


Revision 1.15 - (hide annotations)
Sat Dec 4 02:18:13 2004 UTC (13 years ago) by bertho
Branch: MAIN
CVS Tags: REL_1_6_1, REL_1_5_2, REL_1_6_2, REL_1_6_0, source_head_20080521
Branch point for: svn-integration, automake-dev1
Changes since 1.14: +2 -2 lines
Fix the configure script to detect gd-2:
  The mystery is solved, I think. The problem seems to be a bug in the GIF
  support of gd-2.0.33. I didn't look into it further because CvsGraph was
  configured to output PNGs and shouldn't have been outputting GIFs in the
  first place. The reason it was outputting GIFs was a bug in CvsGraph's
  configure script which causes CvsGraph to be built without PNG support.
1 bertho 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 bertho 1.14 # Generated by GNU Autoconf 2.59.
4 bertho 1.1 #
5 bertho 1.14 # Copyright (C) 2003 Free Software Foundation, Inc.
6 bertho 1.1 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 bertho 1.11 ## --------------------- ##
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 bertho 1.14 DUALCASE=1; export DUALCASE # for MKS sh
23 bertho 1.11
24     # Support unset when possible.
25 bertho 1.14 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 bertho 1.11 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 bertho 1.14 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 bertho 1.11 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 bertho 1.14 test -d ./-p && rmdir ./-p
222 bertho 1.11 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 bertho 1.14 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 bertho 1.11
230     # Sed expression to map a string onto a valid variable name.
231 bertho 1.14 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 bertho 1.11
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 bertho 1.1
251 bertho 1.11 #
252     # Initializations.
253     #
254 bertho 1.1 ac_default_prefix=/usr/local
255 bertho 1.11 ac_config_libobj_dir=.
256     cross_compiling=no
257     subdirs=
258     MFLAGS=
259     MAKEFLAGS=
260     SHELL=${CONFIG_SHELL-/bin/sh}
261    
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 bertho 1.1
315     # Initialize some variables set by options.
316 bertho 1.11 ac_init_help=
317     ac_init_version=false
318 bertho 1.1 # The variables have the same names as the options, with
319     # dashes changed to underlines.
320 bertho 1.11 cache_file=/dev/null
321 bertho 1.1 exec_prefix=NONE
322     no_create=
323     no_recursion=
324     prefix=NONE
325     program_prefix=NONE
326     program_suffix=NONE
327     program_transform_name=s,x,x,
328     silent=
329     site=
330     srcdir=
331     verbose=
332     x_includes=NONE
333     x_libraries=NONE
334 bertho 1.11
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 bertho 1.1 bindir='${exec_prefix}/bin'
341     sbindir='${exec_prefix}/sbin'
342     libexecdir='${exec_prefix}/libexec'
343     datadir='${prefix}/share'
344     sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347     libdir='${exec_prefix}/lib'
348     includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350     infodir='${prefix}/info'
351     mandir='${prefix}/man'
352    
353     ac_prev=
354     for ac_option
355     do
356     # If the previous option needs an argument, assign it.
357     if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361     fi
362    
363 bertho 1.11 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 bertho 1.1
365     # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367 bertho 1.11 case $ac_option in
368 bertho 1.1
369     -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bertho 1.11 bindir=$ac_optarg ;;
373 bertho 1.1
374     -build | --build | --buil | --bui | --bu)
375 bertho 1.11 ac_prev=build_alias ;;
376 bertho 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 bertho 1.11 build_alias=$ac_optarg ;;
378 bertho 1.1
379     -cache-file | --cache-file | --cache-fil | --cache-fi \
380     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 bertho 1.11 cache_file=$ac_optarg ;;
385    
386     --config-cache | -C)
387     cache_file=config.cache ;;
388 bertho 1.1
389     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392     | --da=*)
393 bertho 1.11 datadir=$ac_optarg ;;
394 bertho 1.1
395     -disable-* | --disable-*)
396 bertho 1.11 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 bertho 1.1 # Reject names that are not valid shell variable names.
398 bertho 1.11 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403 bertho 1.1
404     -enable-* | --enable-*)
405 bertho 1.11 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 bertho 1.1 # Reject names that are not valid shell variable names.
407 bertho 1.11 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 bertho 1.1 *) ac_optarg=yes ;;
414     esac
415 bertho 1.11 eval "enable_$ac_feature='$ac_optarg'" ;;
416 bertho 1.1
417     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419     | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423     | --exec=* | --exe=* | --ex=*)
424 bertho 1.11 exec_prefix=$ac_optarg ;;
425 bertho 1.1
426     -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429    
430 bertho 1.11 -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436 bertho 1.1
437     -host | --host | --hos | --ho)
438 bertho 1.11 ac_prev=host_alias ;;
439 bertho 1.1 -host=* | --host=* | --hos=* | --ho=*)
440 bertho 1.11 host_alias=$ac_optarg ;;
441 bertho 1.1
442     -includedir | --includedir | --includedi | --included | --include \
443     | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446     | --includ=* | --inclu=* | --incl=* | --inc=*)
447 bertho 1.11 includedir=$ac_optarg ;;
448 bertho 1.1
449     -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 bertho 1.11 infodir=$ac_optarg ;;
453 bertho 1.1
454     -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456     -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 bertho 1.11 libdir=$ac_optarg ;;
458 bertho 1.1
459     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460     | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463     | --libexe=* | --libex=* | --libe=*)
464 bertho 1.11 libexecdir=$ac_optarg ;;
465 bertho 1.1
466     -localstatedir | --localstatedir | --localstatedi | --localstated \
467     | --localstate | --localstat | --localsta | --localst \
468     | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 bertho 1.11 localstatedir=$ac_optarg ;;
474 bertho 1.1
475     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 bertho 1.11 mandir=$ac_optarg ;;
479 bertho 1.1
480     -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483    
484     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 bertho 1.11 | --no-cr | --no-c | -n)
486 bertho 1.1 no_create=yes ;;
487    
488     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491    
492     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494     | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 bertho 1.11 oldincludedir=$ac_optarg ;;
500 bertho 1.1
501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 bertho 1.11 prefix=$ac_optarg ;;
505 bertho 1.1
506     -program-prefix | --program-prefix | --program-prefi | --program-pref \
507     | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509     -program-prefix=* | --program-prefix=* | --program-prefi=* \
510     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 bertho 1.11 program_prefix=$ac_optarg ;;
512 bertho 1.1
513     -program-suffix | --program-suffix | --program-suffi | --program-suff \
514     | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516     -program-suffix=* | --program-suffix=* | --program-suffi=* \
517     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 bertho 1.11 program_suffix=$ac_optarg ;;
519 bertho 1.1
520     -program-transform-name | --program-transform-name \
521     | --program-transform-nam | --program-transform-na \
522     | --program-transform-n | --program-transform- \
523     | --program-transform | --program-transfor \
524     | --program-transfo | --program-transf \
525     | --program-trans | --program-tran \
526     | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528     -program-transform-name=* | --program-transform-name=* \
529     | --program-transform-nam=* | --program-transform-na=* \
530     | --program-transform-n=* | --program-transform-=* \
531     | --program-transform=* | --program-transfor=* \
532     | --program-transfo=* | --program-transf=* \
533     | --program-trans=* | --program-tran=* \
534     | --progr-tra=* | --program-tr=* | --program-t=*)
535 bertho 1.11 program_transform_name=$ac_optarg ;;
536 bertho 1.1
537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538     | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540    
541     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544     | --sbi=* | --sb=*)
545 bertho 1.11 sbindir=$ac_optarg ;;
546 bertho 1.1
547     -sharedstatedir | --sharedstatedir | --sharedstatedi \
548     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549     | --sharedst | --shareds | --shared | --share | --shar \
550     | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555     | --sha=* | --sh=*)
556 bertho 1.11 sharedstatedir=$ac_optarg ;;
557 bertho 1.1
558     -site | --site | --sit)
559     ac_prev=site ;;
560     -site=* | --site=* | --sit=*)
561 bertho 1.11 site=$ac_optarg ;;
562 bertho 1.1
563     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 bertho 1.11 srcdir=$ac_optarg ;;
567 bertho 1.1
568     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569     | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 bertho 1.11 sysconfdir=$ac_optarg ;;
574 bertho 1.1
575     -target | --target | --targe | --targ | --tar | --ta | --t)
576 bertho 1.11 ac_prev=target_alias ;;
577 bertho 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 bertho 1.11 target_alias=$ac_optarg ;;
579 bertho 1.1
580     -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582    
583 bertho 1.11 -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585 bertho 1.1
586     -with-* | --with-*)
587 bertho 1.11 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 bertho 1.1 # Reject names that are not valid shell variable names.
589 bertho 1.11 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590     { echo "$as_me: error: invalid package name: $ac_package" >&2
591     { (exit 1); exit 1; }; }
592 bertho 1.1 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 bertho 1.11 case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 bertho 1.1 *) ac_optarg=yes ;;
596     esac
597 bertho 1.11 eval "with_$ac_package='$ac_optarg'" ;;
598 bertho 1.1
599     -without-* | --without-*)
600 bertho 1.11 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 bertho 1.1 # Reject names that are not valid shell variable names.
602 bertho 1.11 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603     { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607 bertho 1.1
608     --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611    
612     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613     | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 bertho 1.11 x_includes=$ac_optarg ;;
618 bertho 1.1
619     -x-libraries | --x-libraries | --x-librarie | --x-librari \
620     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 bertho 1.11 x_libraries=$ac_optarg ;;
625 bertho 1.1
626 bertho 1.11 -*) { echo "$as_me: error: unrecognized option: $ac_option
627     Try \`$0 --help' for more information." >&2
628     { (exit 1); exit 1; }; }
629 bertho 1.1 ;;
630    
631 bertho 1.11 *=*)
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 bertho 1.1 *)
642 bertho 1.11 # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 bertho 1.1 ;;
648    
649     esac
650     done
651    
652     if test -n "$ac_prev"; then
653 bertho 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654     { echo "$as_me: error: missing argument to $ac_option" >&2
655     { (exit 1); exit 1; }; }
656 bertho 1.1 fi
657    
658 bertho 1.11 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660     do
661     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 bertho 1.1
669 bertho 1.11 # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 bertho 1.14 localstatedir libdir includedir oldincludedir infodir mandir
672 bertho 1.1 do
673 bertho 1.11 eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678 bertho 1.1 esac
679     done
680    
681 bertho 1.11 # There might be people who depend on the old broken behavior: `$host'
682     # used to hold the argument of --host etc.
683     # FIXME: To remove some day.
684     build=$build_alias
685     host=$host_alias
686     target=$target_alias
687    
688     # FIXME: To remove some day.
689     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     ac_tool_prefix=
700     test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 bertho 1.1
702 bertho 1.11 test "$silent" = yes && exec 6>/dev/null
703 bertho 1.1
704    
705     # Find the source files, if location was not specified.
706     if test -z "$srcdir"; then
707     ac_srcdir_defaulted=yes
708     # Try the directory containing this script, then its parent.
709 bertho 1.11 ac_confdir=`(dirname "$0") 2>/dev/null ||
710     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 bertho 1.14 X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713     X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715 bertho 1.11 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 bertho 1.1 srcdir=$ac_confdir
722     if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728     if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730 bertho 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732 bertho 1.1 else
733 bertho 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735 bertho 1.1 fi
736     fi
737 bertho 1.11 (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 bertho 1.14 [$ac_default_prefix]
807 bertho 1.11 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 bertho 1.14 [PREFIX]
809 bertho 1.11
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 bertho 1.14
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 bertho 1.11
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 bertho 1.14 test -f $ac_srcdir/configure.in; then
954 bertho 1.11 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 bertho 1.14 Copyright (C) 2003 Free Software Foundation, Inc.
968 bertho 1.11 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 bertho 1.14 generated by GNU Autoconf 2.59. Invocation command line was
980 bertho 1.11
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 bertho 1.14 ac_must_keep_next=false # Got value, back to normal.
1057 bertho 1.11 else
1058 bertho 1.14 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 bertho 1.11 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 bertho 1.14 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 bertho 1.11 ;;
1105     *)
1106     sed -n \
1107 bertho 1.14 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 bertho 1.11 ;;
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 bertho 1.14 echo "$ac_var='"'"'$ac_val'"'"'"
1137 bertho 1.11 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 bertho 1.14 rm -f core *.core &&
1156 bertho 1.11 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 bertho 1.1
1175 bertho 1.11
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 bertho 1.1 # Prefer explicitly selected file to automatically selected ones.
1198     if test -z "$CONFIG_SITE"; then
1199     if test "x$prefix" != xNONE; then
1200     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201     else
1202     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203     fi
1204     fi
1205     for ac_site_file in $CONFIG_SITE; do
1206     if test -r "$ac_site_file"; then
1207 bertho 1.11 { 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 bertho 1.1 . "$ac_site_file"
1211     fi
1212     done
1213    
1214     if test -r "$cache_file"; then
1215 bertho 1.11 # Some versions of bash will fail to source /dev/null (special
1216     # 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 bertho 1.1 else
1226 bertho 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227     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 bertho 1.14 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 bertho 1.11 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 bertho 1.14 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 bertho 1.11 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 bertho 1.14 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 bertho 1.11 echo "$as_me: former value: $ac_old_val" >&2;}
1256 bertho 1.14 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 bertho 1.11 echo "$as_me: current value: $ac_new_val" >&2;}
1258 bertho 1.14 ac_cache_corrupted=:
1259 bertho 1.11 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 bertho 1.1 fi
1281    
1282     ac_ext=c
1283     ac_cpp='$CPP $CPPFLAGS'
1284 bertho 1.11 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287    
1288    
1289    
1290    
1291    
1292    
1293    
1294    
1295    
1296    
1297    
1298    
1299    
1300    
1301    
1302    
1303 bertho 1.1
1304    
1305    
1306 bertho 1.11 ac_config_headers="$ac_config_headers config.h"
1307 bertho 1.1
1308 bertho 1.2
1309 bertho 1.11 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 bertho 1.1 else
1322     if test -n "$CC"; then
1323     ac_cv_prog_CC="$CC" # Let the user override the test.
1324     else
1325 bertho 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326     for as_dir in $PATH
1327     do
1328     IFS=$as_save_IFS
1329     test -z "$as_dir" && as_dir=.
1330     for ac_exec_ext in '' $ac_executable_extensions; do
1331     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334     break 2
1335     fi
1336     done
1337     done
1338    
1339 bertho 1.1 fi
1340     fi
1341 bertho 1.11 CC=$ac_cv_prog_CC
1342 bertho 1.1 if test -n "$CC"; then
1343 bertho 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1344     echo "${ECHO_T}$CC" >&6
1345 bertho 1.1 else
1346 bertho 1.11 echo "$as_me:$LINENO: result: no" >&5
1347     echo "${ECHO_T}no" >&6
1348 bertho 1.1 fi
1349    
1350 bertho 1.11 fi
1351     if test -z "$ac_cv_prog_CC"; then
1352     ac_ct_CC=$CC
1353     # Extract the first word of "gcc", so it can be a program name with args.
1354     set dummy gcc; ac_word=$2
1355     echo "$as_me:$LINENO: checking for $ac_word" >&5
1356     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 bertho 1.1 else
1360 bertho 1.11 if test -n "$ac_ct_CC"; then
1361     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362 bertho 1.1 else
1363 bertho 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364     for as_dir in $PATH
1365     do
1366     IFS=$as_save_IFS
1367     test -z "$as_dir" && as_dir=.
1368     for ac_exec_ext in '' $ac_executable_extensions; do
1369     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370     ac_cv_prog_ac_ct_CC="gcc"
1371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372     break 2
1373 bertho 1.1 fi
1374 bertho 1.11 done
1375     done
1376    
1377 bertho 1.1 fi
1378     fi
1379 bertho 1.11 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 bertho 1.1 fi
1387 bertho 1.11
1388     CC=$ac_ct_CC
1389 bertho 1.1 else
1390 bertho 1.11 CC="$ac_cv_prog_CC"
1391 bertho 1.1 fi
1392    
1393 bertho 1.11 if test -z "$CC"; then
1394     if test -n "$ac_tool_prefix"; then
1395     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1396     set dummy ${ac_tool_prefix}cc; ac_word=$2
1397     echo "$as_me:$LINENO: checking for $ac_word" >&5
1398     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399     if test "${ac_cv_prog_CC+set}" = set; then
1400     echo $ECHO_N "(cached) $ECHO_C" >&6
1401 bertho 1.1 else
1402     if test -n "$CC"; then
1403     ac_cv_prog_CC="$CC" # Let the user override the test.
1404     else
1405 bertho 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406     for as_dir in $PATH
1407     do
1408     IFS=$as_save_IFS
1409     test -z "$as_dir" && as_dir=.
1410     for ac_exec_ext in '' $ac_executable_extensions; do
1411     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412     ac_cv_prog_CC="${ac_tool_prefix}cc"
1413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414     break 2
1415     fi
1416     done
1417     done
1418    
1419     fi
1420 bertho 1.1 fi
1421 bertho 1.11 CC=$ac_cv_prog_CC
1422 bertho 1.1 if test -n "$CC"; then
1423 bertho 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1424     echo "${ECHO_T}$CC" >&6
1425 bertho 1.1 else
1426 bertho 1.11 echo "$as_me:$LINENO: result: no" >&5
1427     echo "${ECHO_T}no" >&6
1428 bertho 1.1 fi
1429 bertho 1.11
1430     fi
1431     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 bertho 1.1 fi
1454 bertho 1.11 done
1455     done
1456    
1457     fi
1458     fi
1459     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460     if test -n "$ac_ct_CC"; then
1461     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1462     echo "${ECHO_T}$ac_ct_CC" >&6
1463     else
1464     echo "$as_me:$LINENO: result: no" >&5
1465     echo "${ECHO_T}no" >&6
1466 bertho 1.1 fi
1467    
1468 bertho 1.11 CC=$ac_ct_CC
1469     else
1470     CC="$ac_cv_prog_CC"
1471     fi
1472 bertho 1.1
1473 bertho 1.11 fi
1474     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 bertho 1.1
1504 bertho 1.11 if test $ac_prog_rejected = yes; then
1505     # We found a bogon in the path, so make sure we never use it.
1506     set dummy $ac_cv_prog_CC
1507     shift
1508     if test $# != 0; then
1509     # We chose a different compiler from the bogus one.
1510     # However, it has the same basename, so the bogon will be chosen
1511     # first if we set CC to just the basename; use the full file name.
1512     shift
1513     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514     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
1523     echo "$as_me:$LINENO: result: no" >&5
1524     echo "${ECHO_T}no" >&6
1525     fi
1526 bertho 1.1
1527 bertho 1.11 fi
1528     if test -z "$CC"; then
1529     if test -n "$ac_tool_prefix"; then
1530     for ac_prog in cl
1531     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 bertho 1.1
1556 bertho 1.11 fi
1557     fi
1558     CC=$ac_cv_prog_CC
1559     if test -n "$CC"; then
1560     echo "$as_me:$LINENO: result: $CC" >&5
1561     echo "${ECHO_T}$CC" >&6
1562 bertho 1.1 else
1563 bertho 1.11 echo "$as_me:$LINENO: result: no" >&5
1564     echo "${ECHO_T}no" >&6
1565 bertho 1.1 fi
1566    
1567 bertho 1.11 test -n "$CC" && break
1568     done
1569 bertho 1.1 fi
1570 bertho 1.11 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 bertho 1.1
1598 bertho 1.11 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 bertho 1.1 else
1605 bertho 1.11 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 bertho 1.1 fi
1614 bertho 1.11
1615 bertho 1.1 fi
1616    
1617    
1618 bertho 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1619     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 bertho 1.14 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 bertho 1.11 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 bertho 1.14 ;;
1686 bertho 1.11 conftest.$ac_ext )
1687 bertho 1.14 # This is the source file.
1688     ;;
1689 bertho 1.11 [ab].out )
1690 bertho 1.14 # We found the default executable, but exeext='' is most
1691     # certainly right.
1692     break;;
1693 bertho 1.11 *.* )
1694 bertho 1.14 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 bertho 1.11 * )
1701 bertho 1.14 break;;
1702 bertho 1.11 esac
1703     done
1704 bertho 1.1 else
1705 bertho 1.11 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 bertho 1.1 fi
1747 bertho 1.11 echo "$as_me:$LINENO: result: yes" >&5
1748     echo "${ECHO_T}yes" >&6
1749 bertho 1.1
1750 bertho 1.11 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 bertho 1.14 export ac_cv_exeext
1776     break;;
1777 bertho 1.11 * ) break;;
1778     esac
1779     done
1780 bertho 1.1 else
1781 bertho 1.11 { { 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     ;
1812     return 0;
1813     }
1814     _ACEOF
1815     rm -f conftest.o conftest.obj
1816     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817     (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
1829     echo "$as_me: failed program was:" >&5
1830     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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
1871 bertho 1.11 ac_status=$?
1872 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
1873     rm -f conftest.er1
1874     cat conftest.err >&5
1875 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876     (exit $ac_status); } &&
1877 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898 bertho 1.11 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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
1930 bertho 1.11 ac_status=$?
1931 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
1932     rm -f conftest.er1
1933     cat conftest.err >&5
1934 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935     (exit $ac_status); } &&
1936 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.1 ac_cv_prog_cc_g=yes
1950     else
1951 bertho 1.11 echo "$as_me: failed program was:" >&5
1952     sed 's/^/| /' conftest.$ac_ext >&5
1953    
1954     ac_cv_prog_cc_g=no
1955 bertho 1.1 fi
1956 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 bertho 1.1 fi
1958 bertho 1.11 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1959     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1960 bertho 1.1 if test "$ac_test_CFLAGS" = set; then
1961 bertho 1.11 CFLAGS=$ac_save_CFLAGS
1962 bertho 1.1 elif test $ac_cv_prog_cc_g = yes; then
1963     if test "$GCC" = yes; then
1964     CFLAGS="-g -O2"
1965     else
1966     CFLAGS="-g"
1967     fi
1968     else
1969     if test "$GCC" = yes; then
1970     CFLAGS="-O2"
1971     else
1972     CFLAGS=
1973     fi
1974     fi
1975 bertho 1.11 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 bertho 1.14
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 bertho 1.11 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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
2047 bertho 1.11 ac_status=$?
2048 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2049     rm -f conftest.er1
2050     cat conftest.err >&5
2051 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052     (exit $ac_status); } &&
2053 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext
2074 bertho 1.11 done
2075     rm -f conftest.$ac_ext conftest.$ac_objext
2076     CC=$ac_save_CC
2077 bertho 1.1
2078 bertho 1.11 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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
2102 bertho 1.11 ac_status=$?
2103 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2104     rm -f conftest.er1
2105     cat conftest.err >&5
2106 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107     (exit $ac_status); } &&
2108 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 '' \
2123 bertho 1.11 '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 bertho 1.14 $ac_declaration
2136 bertho 1.11 #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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
2148 bertho 1.11 ac_status=$?
2149 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2150     rm -f conftest.er1
2151     cat conftest.err >&5
2152 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153     (exit $ac_status); } &&
2154 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 bertho 1.11 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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
2193 bertho 1.11 ac_status=$?
2194 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2195     rm -f conftest.er1
2196     cat conftest.err >&5
2197 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198     (exit $ac_status); } &&
2199 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 bertho 1.11 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 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 bertho 1.11 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     for ac_prog in flex lex
2241     do
2242     # Extract the first word of "$ac_prog", so it can be a program name with args.
2243     set dummy $ac_prog; ac_word=$2
2244     echo "$as_me:$LINENO: checking for $ac_word" >&5
2245     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 bertho 1.1 else
2249     if test -n "$LEX"; then
2250     ac_cv_prog_LEX="$LEX" # Let the user override the test.
2251     else
2252 bertho 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253     for as_dir in $PATH
2254     do
2255     IFS=$as_save_IFS
2256     test -z "$as_dir" && as_dir=.
2257     for ac_exec_ext in '' $ac_executable_extensions; do
2258     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259     ac_cv_prog_LEX="$ac_prog"
2260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261     break 2
2262     fi
2263     done
2264     done
2265    
2266 bertho 1.1 fi
2267     fi
2268 bertho 1.11 LEX=$ac_cv_prog_LEX
2269 bertho 1.1 if test -n "$LEX"; then
2270 bertho 1.11 echo "$as_me:$LINENO: result: $LEX" >&5
2271     echo "${ECHO_T}$LEX" >&6
2272 bertho 1.1 else
2273 bertho 1.11 echo "$as_me:$LINENO: result: no" >&5
2274     echo "${ECHO_T}no" >&6
2275 bertho 1.1 fi
2276    
2277 bertho 1.11 test -n "$LEX" && break
2278     done
2279     test -n "$LEX" || LEX=":"
2280    
2281 bertho 1.1 if test -z "$LEXLIB"
2282     then
2283 bertho 1.11 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2284     echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2285     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2286     echo $ECHO_N "(cached) $ECHO_C" >&6
2287     else
2288     ac_check_lib_save_LIBS=$LIBS
2289     LIBS="-lfl $LIBS"
2290     cat >conftest.$ac_ext <<_ACEOF
2291     /* confdefs.h. */
2292     _ACEOF
2293     cat confdefs.h >>conftest.$ac_ext
2294     cat >>conftest.$ac_ext <<_ACEOF
2295     /* end confdefs.h. */
2296    
2297 bertho 1.1 /* Override any gcc2 internal prototype to avoid an error. */
2298 bertho 1.11 #ifdef __cplusplus
2299     extern "C"
2300     #endif
2301 bertho 1.1 /* We use char because int might match the return type of a gcc2
2302 bertho 1.11 builtin and then its argument prototype would still apply. */
2303     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 bertho 1.14 (eval $ac_link) 2>conftest.er1
2315 bertho 1.11 ac_status=$?
2316 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2317     rm -f conftest.er1
2318     cat conftest.err >&5
2319 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320     (exit $ac_status); } &&
2321 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
2342     conftest$ac_exeext conftest.$ac_ext
2343 bertho 1.11 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 bertho 1.1
2364 bertho 1.11 /* Override any gcc2 internal prototype to avoid an error. */
2365     #ifdef __cplusplus
2366     extern "C"
2367     #endif
2368     /* We use char because int might match the return type of a gcc2
2369     builtin and then its argument prototype would still apply. */
2370     char yywrap ();
2371     int
2372     main ()
2373     {
2374     yywrap ();
2375     ;
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 bertho 1.14 (eval $ac_link) 2>conftest.er1
2382 bertho 1.11 ac_status=$?
2383 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2384     rm -f conftest.er1
2385     cat conftest.err >&5
2386 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387     (exit $ac_status); } &&
2388 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
2409     conftest$ac_exeext conftest.$ac_ext
2410 bertho 1.11 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 bertho 1.1 fi
2417    
2418     fi
2419 bertho 1.11
2420 bertho 1.1 fi
2421    
2422 bertho 1.11 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 bertho 1.14 (eval $ac_link) 2>conftest.er1
2472 bertho 1.11 ac_status=$?
2473 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
2474     rm -f conftest.er1
2475     cat conftest.err >&5
2476 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477     (exit $ac_status); } &&
2478 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
2498     conftest$ac_exeext conftest.$ac_ext
2499 bertho 1.11 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 bertho 1.1 fi
2512    
2513 bertho 1.11 fi
2514 bertho 1.1 for ac_prog in 'bison -y' byacc
2515     do
2516 bertho 1.11 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 bertho 1.1 set dummy $ac_prog; ac_word=$2
2518 bertho 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520     if test "${ac_cv_prog_YACC+set}" = set; then
2521     echo $ECHO_N "(cached) $ECHO_C" >&6
2522 bertho 1.1 else
2523     if test -n "$YACC"; then
2524     ac_cv_prog_YACC="$YACC" # Let the user override the test.
2525     else
2526 bertho 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527     for as_dir in $PATH
2528     do
2529     IFS=$as_save_IFS
2530     test -z "$as_dir" && as_dir=.
2531     for ac_exec_ext in '' $ac_executable_extensions; do
2532     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533     ac_cv_prog_YACC="$ac_prog"
2534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536     fi
2537     done
2538     done
2539    
2540 bertho 1.1 fi
2541     fi
2542 bertho 1.11 YACC=$ac_cv_prog_YACC
2543 bertho 1.1 if test -n "$YACC"; then
2544 bertho 1.11 echo "$as_me:$LINENO: result: $YACC" >&5
2545     echo "${ECHO_T}$YACC" >&6
2546 bertho 1.1 else
2547 bertho 1.11 echo "$as_me:$LINENO: result: no" >&5
2548     echo "${ECHO_T}no" >&6
2549 bertho 1.1 fi
2550    
2551 bertho 1.11 test -n "$YACC" && break
2552 bertho 1.1 done
2553     test -n "$YACC" || YACC="yacc"
2554    
2555    
2556 bertho 1.3 LEXFLAGS="-8"
2557     LEXSPEED="-Cf"
2558 bertho 1.5 INCL=""
2559 bertho 1.3
2560 bertho 1.11
2561 bertho 1.5 # Check whether --with-gd-inc or --without-gd-inc was given.
2562     if test "${with_gd_inc+set}" = set; then
2563     withval="$with_gd_inc"
2564     INCL="${INCL} -I${withval}"
2565 bertho 1.11
2566     fi;
2567 bertho 1.4
2568    
2569 bertho 1.5 # 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 bertho 1.1
2574 bertho 1.11 fi;
2575 bertho 1.1
2576 bertho 1.5 LIBS="$LIBS -lgd"
2577 bertho 1.9 LIBPATH=""
2578 bertho 1.5
2579 bertho 1.11
2580 bertho 1.8 # 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 bertho 1.9 LIBS="${LIBS} -L${withval}"
2584 bertho 1.11
2585     fi;
2586 bertho 1.4
2587    
2588 bertho 1.8 # 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 bertho 1.9 LIBS="${LIBS} -L${withval}"
2592 bertho 1.11
2593     fi;
2594 bertho 1.1
2595    
2596 bertho 1.5 # 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 bertho 1.11
2601     fi;
2602 bertho 1.5
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 bertho 1.9 LIBS="${LIBS} -L${withval}"
2608 bertho 1.11
2609     fi;
2610 bertho 1.5
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 bertho 1.11
2617     fi;
2618 bertho 1.5
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 bertho 1.9 LIBS="${LIBS} -L${withval}"
2624 bertho 1.11
2625     fi;
2626 bertho 1.8
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 bertho 1.11
2633     fi;
2634 bertho 1.1
2635    
2636 bertho 1.8 # 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 bertho 1.9 LIBS="${LIBS} -L${withval}"
2640 bertho 1.7
2641 bertho 1.11 fi;
2642 bertho 1.7
2643 bertho 1.3 # 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 bertho 1.11 fi;
2648 bertho 1.3
2649     if test "x$LEXSPEED" != "x"
2650     then
2651     LEXFLAGS="$LEXFLAGS $LEXSPEED"
2652     fi
2653    
2654 bertho 1.5 CPPFLAGS="$CPPFLAGS $INCL"
2655     CFLAGS="$CFLAGS $INCL"
2656 bertho 1.1
2657     if test "x${GCC}" = "xyes"
2658     then
2659     CFLAGS="$CFLAGS -Wall"
2660 bertho 1.11 echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5
2661     echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6
2662     if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
2663     echo $ECHO_N "(cached) $ECHO_C" >&6
2664 bertho 1.1 else
2665     if test "$cross_compiling" = yes; then
2666     ac_cv_c_gcc_strength_bug="yes"
2667     else
2668 bertho 1.11 cat >conftest.$ac_ext <<_ACEOF
2669     /* confdefs.h. */
2670     _ACEOF
2671     cat confdefs.h >>conftest.$ac_ext
2672     cat >>conftest.$ac_ext <<_ACEOF
2673     /* end confdefs.h. */
2674 bertho 1.1
2675     int main(void) {
2676     static int Array[3];
2677     unsigned int B = 3;
2678     int i;
2679     for(i=0; i<B; i++) Array[i] = i - 3;
2680     exit( Array[1] != -2 );
2681     }
2682 bertho 1.11 _ACEOF
2683     rm -f conftest$ac_exeext
2684     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 bertho 1.1 ac_cv_c_gcc_strength_bug="no"
2695     else
2696 bertho 1.11 echo "$as_me: program exited with status $ac_status" >&5
2697     echo "$as_me: failed program was:" >&5
2698     sed 's/^/| /' conftest.$ac_ext >&5
2699    
2700     ( exit $ac_status )
2701     ac_cv_c_gcc_strength_bug="yes"
2702 bertho 1.1 fi
2703 bertho 1.14 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2704 bertho 1.1 fi
2705     fi
2706 bertho 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
2707     echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
2708 bertho 1.1 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2709     then
2710     CFLAGS="$CFLAGS -fno-strength-reduce"
2711     fi
2712     fi
2713    
2714 bertho 1.11 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 bertho 1.9 else
2719     if test "$cross_compiling" = yes; then
2720     ac_cv_c_size_int_ptr="yes"
2721     else
2722 bertho 1.11 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 bertho 1.9
2729     int main(void) {
2730     return sizeof(int) == sizeof(void *);
2731     }
2732 bertho 1.11 _ACEOF
2733     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 bertho 1.9 ac_cv_c_size_int_ptr="no"
2745     else
2746 bertho 1.11 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 bertho 1.14 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2754 bertho 1.11 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
2764     if test "$cross_compiling" = yes; then
2765     ac_cv_c_size_long_ptr="yes"
2766     else
2767     cat >conftest.$ac_ext <<_ACEOF
2768     /* confdefs.h. */
2769     _ACEOF
2770     cat confdefs.h >>conftest.$ac_ext
2771     cat >>conftest.$ac_ext <<_ACEOF
2772     /* end confdefs.h. */
2773    
2774     int main(void) {
2775     return sizeof(long) == sizeof(void *);
2776     }
2777     _ACEOF
2778     rm -f conftest$ac_exeext
2779     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780     (eval $ac_link) 2>&5
2781     ac_status=$?
2782     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2784     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785     (eval $ac_try) 2>&5
2786     ac_status=$?
2787     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788     (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 bertho 1.14 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2799 bertho 1.11 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 bertho 1.9 fi
2843 bertho 1.14 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2844 bertho 1.9 fi
2845     fi
2846 bertho 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_size_longlong_ptr" >&5
2847     echo "${ECHO_T}$ac_cv_c_size_longlong_ptr" >&6
2848 bertho 1.9
2849     if test "$ac_cv_c_size_int_ptr" = "no"
2850     then
2851 bertho 1.11 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
2869     INTTYPE="int"
2870 bertho 1.9 fi
2871    
2872 bertho 1.11 ac_ext=c
2873     ac_cpp='$CPP $CPPFLAGS'
2874     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877     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 bertho 1.6 # 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 bertho 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2885     echo $ECHO_N "(cached) $ECHO_C" >&6
2886 bertho 1.6 else
2887 bertho 1.11 # Double quotes because CPP needs to be expanded
2888     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889     do
2890     ac_preproc_ok=false
2891     for ac_c_preproc_warn_flag in '' yes
2892     do
2893     # Use a header file that comes with gcc, so configuring glibc
2894     # with a fresh cross-compiler works.
2895     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896     # <limits.h> exists even on freestanding compilers.
2897 bertho 1.6 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 bertho 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2899     cat >conftest.$ac_ext <<_ACEOF
2900     /* confdefs.h. */
2901     _ACEOF
2902     cat confdefs.h >>conftest.$ac_ext
2903     cat >>conftest.$ac_ext <<_ACEOF
2904     /* end confdefs.h. */
2905     #ifdef __STDC__
2906     # include <limits.h>
2907     #else
2908     # include <assert.h>
2909     #endif
2910 bertho 1.14 Syntax error
2911 bertho 1.11 _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 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 bertho 1.11 else
2924     ac_cpp_err=
2925     fi
2926     else
2927     ac_cpp_err=yes
2928     fi
2929     if test -z "$ac_cpp_err"; then
2930 bertho 1.6 :
2931     else
2932 bertho 1.11 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
2938     rm -f conftest.err conftest.$ac_ext
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 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 bertho 1.11 else
2962     ac_cpp_err=
2963     fi
2964     else
2965     ac_cpp_err=yes
2966     fi
2967     if test -z "$ac_cpp_err"; then
2968     # Broken: success on invalid input.
2969     continue
2970     else
2971     echo "$as_me: failed program was:" >&5
2972     sed 's/^/| /' conftest.$ac_ext >&5
2973    
2974     # Passes both tests.
2975     ac_preproc_ok=:
2976     break
2977     fi
2978     rm -f conftest.err conftest.$ac_ext
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
2986    
2987     done
2988     ac_cv_prog_CPP=$CPP
2989    
2990     fi
2991     CPP=$ac_cv_prog_CPP
2992     else
2993     ac_cv_prog_CPP=$CPP
2994     fi
2995     echo "$as_me:$LINENO: result: $CPP" >&5
2996     echo "${ECHO_T}$CPP" >&6
2997     ac_preproc_ok=false
2998     for ac_c_preproc_warn_flag in '' yes
2999     do
3000     # 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 bertho 1.14 Syntax error
3018 bertho 1.11 _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 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 bertho 1.11 else
3031     ac_cpp_err=
3032     fi
3033     else
3034     ac_cpp_err=yes
3035     fi
3036     if test -z "$ac_cpp_err"; then
3037     :
3038     else
3039     echo "$as_me: failed program was:" >&5
3040     sed 's/^/| /' conftest.$ac_ext >&5
3041    
3042     # Broken: fails on valid input.
3043     continue
3044     fi
3045     rm -f conftest.err conftest.$ac_ext
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 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 bertho 1.11 else
3069     ac_cpp_err=
3070     fi
3071     else
3072     ac_cpp_err=yes
3073     fi
3074     if test -z "$ac_cpp_err"; then
3075     # Broken: success on invalid input.
3076     continue
3077     else
3078     echo "$as_me: failed program was:" >&5
3079     sed 's/^/| /' conftest.$ac_ext >&5
3080    
3081     # 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 bertho 1.6 :
3092     else
3093 bertho 1.11 { { 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
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 "$as_me:$LINENO: checking for egrep" >&5
3108     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3109     if test "${ac_cv_prog_egrep+set}" = set; then
3110     echo $ECHO_N "(cached) $ECHO_C" >&6
3111     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
3117     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3118     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3119     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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
3149 bertho 1.11 ac_status=$?
3150 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3151     rm -f conftest.er1
3152     cat conftest.err >&5
3153 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154     (exit $ac_status); } &&
3155 bertho 1.14 { 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 bertho 1.11 { (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 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176 bertho 1.11
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 bertho 1.6 :
3191     else
3192 bertho 1.11 ac_cv_header_stdc=no
3193 bertho 1.6 fi
3194     rm -f conftest*
3195 bertho 1.11
3196     fi
3197    
3198     if test $ac_cv_header_stdc = yes; then
3199     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3200     cat >conftest.$ac_ext <<_ACEOF
3201     /* confdefs.h. */
3202     _ACEOF
3203     cat confdefs.h >>conftest.$ac_ext
3204     cat >>conftest.$ac_ext <<_ACEOF
3205     /* end confdefs.h. */
3206     #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
3213     ac_cv_header_stdc=no
3214 bertho 1.6 fi
3215     rm -f conftest*
3216 bertho 1.11
3217 bertho 1.6 fi
3218 bertho 1.11
3219     if test $ac_cv_header_stdc = yes; then
3220     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3221     if test "$cross_compiling" = yes; then
3222     :
3223     else
3224     cat >conftest.$ac_ext <<_ACEOF
3225     /* confdefs.h. */
3226     _ACEOF
3227     cat confdefs.h >>conftest.$ac_ext
3228     cat >>conftest.$ac_ext <<_ACEOF
3229     /* end confdefs.h. */
3230     #include <ctype.h>
3231     #if ((' ' & 0x0FF) == 0x020)
3232     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3233     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3234     #else
3235     # define ISLOWER(c) \
3236 bertho 1.14 (('a' <= (c) && (c) <= 'i') \
3237     || ('j' <= (c) && (c) <= 'r') \
3238     || ('s' <= (c) && (c) <= 'z'))
3239 bertho 1.11 # 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 bertho 1.14 || toupper (i) != TOUPPER (i))
3250 bertho 1.11 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
3267     echo "$as_me: program exited with status $ac_status" >&5
3268     echo "$as_me: failed program was:" >&5
3269     sed 's/^/| /' conftest.$ac_ext >&5
3270    
3271     ( exit $ac_status )
3272     ac_cv_header_stdc=no
3273     fi
3274 bertho 1.14 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3275 bertho 1.11 fi
3276     fi
3277     fi
3278     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 bertho 1.14 inttypes.h stdint.h unistd.h
3300 bertho 1.11 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 bertho 1.14 (eval $ac_compile) 2>conftest.er1
3320 bertho 1.11 ac_status=$?
3321 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3322     rm -f conftest.er1
3323     cat conftest.err >&5
3324 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325     (exit $ac_status); } &&
3326 bertho 1.14 { 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 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335     (eval $ac_try) 2>&5
3336     ac_status=$?
3337     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338     (exit $ac_status); }; }; then
3339     eval "$as_ac_Header=yes"
3340     else
3341     echo "$as_me: failed program was:" >&5
3342     sed 's/^/| /' conftest.$ac_ext >&5
3343    
3344     eval "$as_ac_Header=no"
3345     fi
3346 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 bertho 1.11 fi
3348     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3349     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350     if test `eval echo '${'$as_ac_Header'}'` = yes; then
3351     cat >>confdefs.h <<_ACEOF
3352     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3353     _ACEOF
3354    
3355 bertho 1.6 fi
3356 bertho 1.11
3357     done
3358    
3359    
3360     if test "${ac_cv_header_getopt_h+set}" = set; then
3361     echo "$as_me:$LINENO: checking for getopt.h" >&5
3362     echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
3363     if test "${ac_cv_header_getopt_h+set}" = set; then
3364     echo $ECHO_N "(cached) $ECHO_C" >&6
3365     fi
3366     echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
3367     echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
3368     else
3369     # Is the header compilable?
3370     echo "$as_me:$LINENO: checking getopt.h usability" >&5
3371     echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6
3372     cat >conftest.$ac_ext <<_ACEOF
3373     /* confdefs.h. */
3374     _ACEOF
3375     cat confdefs.h >>conftest.$ac_ext
3376     cat >>conftest.$ac_ext <<_ACEOF
3377     /* end confdefs.h. */
3378     $ac_includes_default
3379     #include <getopt.h>
3380     _ACEOF
3381     rm -f conftest.$ac_objext
3382     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 bertho 1.14 (eval $ac_compile) 2>conftest.er1
3384 bertho 1.11 ac_status=$?
3385 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3386     rm -f conftest.er1
3387     cat conftest.err >&5
3388 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389     (exit $ac_status); } &&
3390 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3391     || test ! -s conftest.err'
3392     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393     (eval $ac_try) 2>&5
3394     ac_status=$?
3395     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396     (exit $ac_status); }; } &&
3397     { ac_try='test -s conftest.$ac_objext'
3398 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399     (eval $ac_try) 2>&5
3400     ac_status=$?
3401     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402     (exit $ac_status); }; }; then
3403     ac_header_compiler=yes
3404     else
3405     echo "$as_me: failed program was:" >&5
3406     sed 's/^/| /' conftest.$ac_ext >&5
3407    
3408     ac_header_compiler=no
3409     fi
3410 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 bertho 1.11 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3412     echo "${ECHO_T}$ac_header_compiler" >&6
3413    
3414     # Is the header present?
3415     echo "$as_me:$LINENO: checking getopt.h presence" >&5
3416     echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6
3417     cat >conftest.$ac_ext <<_ACEOF
3418     /* confdefs.h. */
3419     _ACEOF
3420     cat confdefs.h >>conftest.$ac_ext
3421     cat >>conftest.$ac_ext <<_ACEOF
3422     /* end confdefs.h. */
3423     #include <getopt.h>
3424     _ACEOF
3425     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427     ac_status=$?
3428     grep -v '^ *+' conftest.er1 >conftest.err
3429     rm -f conftest.er1
3430     cat conftest.err >&5
3431     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432     (exit $ac_status); } >/dev/null; then
3433     if test -s conftest.err; then
3434     ac_cpp_err=$ac_c_preproc_warn_flag
3435 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 bertho 1.11 else
3437     ac_cpp_err=
3438     fi
3439 bertho 1.6 else
3440 bertho 1.11 ac_cpp_err=yes
3441 bertho 1.6 fi
3442 bertho 1.11 if test -z "$ac_cpp_err"; then
3443     ac_header_preproc=yes
3444     else
3445     echo "$as_me: failed program was:" >&5
3446     sed 's/^/| /' conftest.$ac_ext >&5
3447 bertho 1.6
3448 bertho 1.11 ac_header_preproc=no
3449     fi
3450     rm -f conftest.err conftest.$ac_ext
3451     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3452     echo "${ECHO_T}$ac_header_preproc" >&6
3453    
3454     # So? What about this header?
3455 bertho 1.14 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3456     yes:no: )
3457 bertho 1.11 { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
3458     echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3459 bertho 1.14 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
3460     echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
3461     ac_header_preproc=yes
3462 bertho 1.11 ;;
3463 bertho 1.14 no:yes:* )
3464 bertho 1.11 { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
3465     echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
3466 bertho 1.14 { echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
3467     echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
3468     { echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
3469     echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
3470     { echo "$as_me:$LINENO: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&5
3471     echo "$as_me: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&2;}
3472 bertho 1.11 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
3473     echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
3474 bertho 1.14 { echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
3475     echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
3476 bertho 1.11 (
3477     cat <<\_ASBOX
3478 bertho 1.14 ## ------------------------------------------ ##
3479     ## Report this to the AC_PACKAGE_NAME lists. ##
3480     ## ------------------------------------------ ##
3481 bertho 1.11 _ASBOX
3482     ) |
3483     sed "s/^/$as_me: WARNING: /" >&2
3484     ;;
3485     esac
3486     echo "$as_me:$LINENO: checking for getopt.h" >&5
3487     echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
3488     if test "${ac_cv_header_getopt_h+set}" = set; then
3489     echo $ECHO_N "(cached) $ECHO_C" >&6
3490 bertho 1.6 else
3491 bertho 1.11 ac_cv_header_getopt_h=$ac_header_preproc
3492 bertho 1.6 fi
3493 bertho 1.11 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
3494     echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
3495    
3496 bertho 1.6 fi
3497 bertho 1.11 if test $ac_cv_header_getopt_h = yes; then
3498     cat >>confdefs.h <<\_ACEOF
3499 bertho 1.6 #define HAVE_GETOPT_H 1
3500 bertho 1.11 _ACEOF
3501    
3502 bertho 1.6 fi
3503    
3504 bertho 1.1
3505 bertho 1.11
3506 bertho 1.13 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3507     echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3508     echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3509     if test "${ac_cv_header_sys_wait_h+set}" = set; then
3510     echo $ECHO_N "(cached) $ECHO_C" >&6
3511     fi
3512     echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3513     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3514     else
3515     # Is the header compilable?
3516     echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
3517     echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6
3518     cat >conftest.$ac_ext <<_ACEOF
3519     /* confdefs.h. */
3520     _ACEOF
3521     cat confdefs.h >>conftest.$ac_ext
3522     cat >>conftest.$ac_ext <<_ACEOF
3523     /* end confdefs.h. */
3524     $ac_includes_default
3525     #include <sys/wait.h>
3526     _ACEOF
3527     rm -f conftest.$ac_objext
3528     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 bertho 1.14 (eval $ac_compile) 2>conftest.er1
3530 bertho 1.13 ac_status=$?
3531 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3532     rm -f conftest.er1
3533     cat conftest.err >&5
3534 bertho 1.13 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535     (exit $ac_status); } &&
3536 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3537     || test ! -s conftest.err'
3538     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539     (eval $ac_try) 2>&5
3540     ac_status=$?
3541     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542     (exit $ac_status); }; } &&
3543     { ac_try='test -s conftest.$ac_objext'
3544 bertho 1.13 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545     (eval $ac_try) 2>&5
3546     ac_status=$?
3547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548     (exit $ac_status); }; }; then
3549     ac_header_compiler=yes
3550     else
3551     echo "$as_me: failed program was:" >&5
3552     sed 's/^/| /' conftest.$ac_ext >&5
3553    
3554     ac_header_compiler=no
3555     fi
3556 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 bertho 1.13 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3558     echo "${ECHO_T}$ac_header_compiler" >&6
3559    
3560     # Is the header present?
3561     echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
3562     echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6
3563     cat >conftest.$ac_ext <<_ACEOF
3564     /* confdefs.h. */
3565     _ACEOF
3566     cat confdefs.h >>conftest.$ac_ext
3567     cat >>conftest.$ac_ext <<_ACEOF
3568     /* end confdefs.h. */
3569     #include <sys/wait.h>
3570     _ACEOF
3571     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3572     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3573     ac_status=$?
3574     grep -v '^ *+' conftest.er1 >conftest.err
3575     rm -f conftest.er1
3576     cat conftest.err >&5
3577     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578     (exit $ac_status); } >/dev/null; then
3579     if test -s conftest.err; then
3580     ac_cpp_err=$ac_c_preproc_warn_flag
3581 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 bertho 1.13 else
3583     ac_cpp_err=
3584     fi
3585     else
3586     ac_cpp_err=yes
3587     fi
3588     if test -z "$ac_cpp_err"; then
3589     ac_header_preproc=yes
3590     else
3591     echo "$as_me: failed program was:" >&5
3592     sed 's/^/| /' conftest.$ac_ext >&5
3593    
3594     ac_header_preproc=no
3595     fi
3596     rm -f conftest.err conftest.$ac_ext
3597     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3598     echo "${ECHO_T}$ac_header_preproc" >&6
3599    
3600     # So? What about this header?
3601 bertho 1.14 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3602     yes:no: )
3603 bertho 1.13 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
3604     echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3605 bertho 1.14 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
3606     echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
3607     ac_header_preproc=yes
3608 bertho 1.13 ;;
3609 bertho 1.14 no:yes:* )
3610 bertho 1.13 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
3611     echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
3612 bertho 1.14 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5
3613     echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;}
3614     { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
3615     echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
3616     { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5
3617     echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;}
3618 bertho 1.13 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
3619     echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
3620 bertho 1.14 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
3621     echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
3622 bertho 1.13 (
3623     cat <<\_ASBOX
3624 bertho 1.14 ## ------------------------------------------ ##
3625     ## Report this to the AC_PACKAGE_NAME lists. ##
3626     ## ------------------------------------------ ##
3627 bertho 1.13 _ASBOX
3628     ) |
3629     sed "s/^/$as_me: WARNING: /" >&2
3630     ;;
3631     esac
3632     echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3633     echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3634     if test "${ac_cv_header_sys_wait_h+set}" = set; then
3635     echo $ECHO_N "(cached) $ECHO_C" >&6
3636     else
3637     ac_cv_header_sys_wait_h=$ac_header_preproc
3638     fi
3639     echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3640     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3641    
3642     fi
3643     if test $ac_cv_header_sys_wait_h = yes; then
3644     cat >>confdefs.h <<\_ACEOF
3645     #define HAVE_SYS_WAIT_H 1
3646     _ACEOF
3647    
3648     fi
3649    
3650    
3651    
3652 bertho 1.11 if test "${ac_cv_header_gd_h+set}" = set; then
3653     echo "$as_me:$LINENO: checking for gd.h" >&5
3654     echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3655     if test "${ac_cv_header_gd_h+set}" = set; then
3656     echo $ECHO_N "(cached) $ECHO_C" >&6
3657     fi
3658     echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3659     echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3660 bertho 1.9 else
3661 bertho 1.11 # Is the header compilable?
3662     echo "$as_me:$LINENO: checking gd.h usability" >&5
3663     echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
3664     cat >conftest.$ac_ext <<_ACEOF
3665     /* confdefs.h. */
3666     _ACEOF
3667     cat confdefs.h >>conftest.$ac_ext
3668     cat >>conftest.$ac_ext <<_ACEOF
3669     /* end confdefs.h. */
3670     $ac_includes_default
3671     #include <gd.h>
3672     _ACEOF
3673     rm -f conftest.$ac_objext
3674     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 bertho 1.14 (eval $ac_compile) 2>conftest.er1
3676 bertho 1.11 ac_status=$?
3677 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3678     rm -f conftest.er1
3679     cat conftest.err >&5
3680 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681     (exit $ac_status); } &&
3682 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3683     || test ! -s conftest.err'
3684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685     (eval $ac_try) 2>&5
3686     ac_status=$?
3687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688     (exit $ac_status); }; } &&
3689     { ac_try='test -s conftest.$ac_objext'
3690 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691     (eval $ac_try) 2>&5
3692     ac_status=$?
3693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694     (exit $ac_status); }; }; then
3695     ac_header_compiler=yes
3696     else
3697     echo "$as_me: failed program was:" >&5
3698     sed 's/^/| /' conftest.$ac_ext >&5
3699    
3700     ac_header_compiler=no
3701     fi
3702 bertho 1.14 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703 bertho 1.11 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3704     echo "${ECHO_T}$ac_header_compiler" >&6
3705    
3706     # Is the header present?
3707     echo "$as_me:$LINENO: checking gd.h presence" >&5
3708     echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
3709     cat >conftest.$ac_ext <<_ACEOF
3710     /* confdefs.h. */
3711     _ACEOF
3712     cat confdefs.h >>conftest.$ac_ext
3713     cat >>conftest.$ac_ext <<_ACEOF
3714     /* end confdefs.h. */
3715 bertho 1.9 #include <gd.h>
3716 bertho 1.11 _ACEOF
3717     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719     ac_status=$?
3720     grep -v '^ *+' conftest.er1 >conftest.err
3721     rm -f conftest.er1
3722     cat conftest.err >&5
3723     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724     (exit $ac_status); } >/dev/null; then
3725     if test -s conftest.err; then
3726     ac_cpp_err=$ac_c_preproc_warn_flag
3727 bertho 1.14 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3728 bertho 1.11 else
3729     ac_cpp_err=
3730     fi
3731     else
3732     ac_cpp_err=yes
3733 bertho 1.9 fi
3734 bertho 1.11 if test -z "$ac_cpp_err"; then
3735     ac_header_preproc=yes
3736     else
3737     echo "$as_me: failed program was:" >&5
3738     sed 's/^/| /' conftest.$ac_ext >&5
3739    
3740     ac_header_preproc=no
3741     fi
3742     rm -f conftest.err conftest.$ac_ext
3743     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3744     echo "${ECHO_T}$ac_header_preproc" >&6
3745    
3746     # So? What about this header?
3747 bertho 1.14 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3748     yes:no: )
3749 bertho 1.11 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3750     echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3751 bertho 1.14 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
3752     echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
3753     ac_header_preproc=yes
3754 bertho 1.11 ;;
3755 bertho 1.14 no:yes:* )
3756 bertho 1.11 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
3757     echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
3758 bertho 1.14 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
3759     echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
3760     { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
3761     echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
3762     { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
3763     echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
3764 bertho 1.11 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
3765     echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
3766 bertho 1.14 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
3767     echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
3768 bertho 1.11 (
3769     cat <<\_ASBOX
3770 bertho 1.14 ## ------------------------------------------ ##
3771     ## Report this to the AC_PACKAGE_NAME lists. ##
3772     ## ------------------------------------------ ##
3773 bertho 1.11 _ASBOX
3774     ) |
3775     sed "s/^/$as_me: WARNING: /" >&2
3776     ;;
3777     esac
3778     echo "$as_me:$LINENO: checking for gd.h" >&5
3779     echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3780     if test "${ac_cv_header_gd_h+set}" = set; then
3781     echo $ECHO_N "(cached) $ECHO_C" >&6
3782     else
3783     ac_cv_header_gd_h=$ac_header_preproc
3784     fi
3785     echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3786     echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3787    
3788 bertho 1.9 fi
3789 bertho 1.11 if test $ac_cv_header_gd_h = yes; then
3790     have_gd_h="yes"
3791 bertho 1.9 else
3792 bertho 1.11 have_gd_h="no"
3793 bertho 1.9 fi
3794    
3795    
3796 bertho 1.11
3797 bertho 1.9 if test "$have_gd_h" != "yes"; then
3798     echo
3799     echo "** The GD library is required for CvsGraph to function."
3800     echo " Get it from http://www.boutell.com, compile it and"
3801     echo " use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
3802     echo " its location. You might also have to use --with-z-inc, --with-z-lib"
3803     echo " and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
3804     echo " Check config.log for more information on the problem. If your system"
3805     echo " has libgd installed, you probably mis the gd.h header file."
3806     exit 1
3807     fi
3808    
3809 bertho 1.11 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3810     echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3811     if test "${ac_cv_lib_m_sqrt+set}" = set; then
3812     echo $ECHO_N "(cached) $ECHO_C" >&6
3813 bertho 1.1 else
3814 bertho 1.11 ac_check_lib_save_LIBS=$LIBS
3815 bertho 1.1 LIBS="-lm $LIBS"
3816 bertho 1.11 cat >conftest.$ac_ext <<_ACEOF
3817     /* confdefs.h. */
3818     _ACEOF
3819     cat confdefs.h >>conftest.$ac_ext
3820     cat >>conftest.$ac_ext <<_ACEOF
3821     /* end confdefs.h. */
3822    
3823 bertho 1.1 /* Override any gcc2 internal prototype to avoid an error. */
3824 bertho 1.11 #ifdef __cplusplus
3825     extern "C"
3826     #endif
3827 bertho 1.1 /* We use char because int might match the return type of a gcc2
3828 bertho 1.11 builtin and then its argument prototype would still apply. */
3829     char sqrt ();
3830     int
3831     main ()
3832     {
3833     sqrt ();
3834     ;
3835     return 0;
3836     }
3837     _ACEOF
3838     rm -f conftest.$ac_objext conftest$ac_exeext
3839     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840 bertho 1.14 (eval $ac_link) 2>conftest.er1
3841 bertho 1.11 ac_status=$?
3842 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3843     rm -f conftest.er1
3844     cat conftest.err >&5
3845 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846     (exit $ac_status); } &&
3847 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3848     || test ! -s conftest.err'
3849     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850     (eval $ac_try) 2>&5
3851     ac_status=$?
3852     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853     (exit $ac_status); }; } &&
3854     { ac_try='test -s conftest$ac_exeext'
3855 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856     (eval $ac_try) 2>&5
3857     ac_status=$?
3858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859     (exit $ac_status); }; }; then
3860     ac_cv_lib_m_sqrt=yes
3861     else
3862     echo "$as_me: failed program was:" >&5
3863     sed 's/^/| /' conftest.$ac_ext >&5
3864    
3865     ac_cv_lib_m_sqrt=no
3866     fi
3867 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
3868     conftest$ac_exeext conftest.$ac_ext
3869 bertho 1.11 LIBS=$ac_check_lib_save_LIBS
3870     fi
3871     echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3872     echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3873     if test $ac_cv_lib_m_sqrt = yes; then
3874 bertho 1.1
3875 bertho 1.11 cat >>confdefs.h <<\_ACEOF
3876 bertho 1.1 #define LIBM 1
3877 bertho 1.11 _ACEOF
3878 bertho 1.1
3879 bertho 1.8 MATHLIBS="-lm"
3880 bertho 1.11
3881 bertho 1.1 fi
3882    
3883    
3884 bertho 1.11 echo "$as_me:$LINENO: checking for compress in -lz" >&5
3885     echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
3886     if test "${ac_cv_lib_z_compress+set}" = set; then
3887     echo $ECHO_N "(cached) $ECHO_C" >&6
3888 bertho 1.9 else
3889 bertho 1.11 ac_check_lib_save_LIBS=$LIBS
3890 bertho 1.9 LIBS="-lz ${LIBPATH} ${MATHLIBS} $LIBS"
3891 bertho 1.11 cat >conftest.$ac_ext <<_ACEOF
3892     /* confdefs.h. */
3893     _ACEOF
3894     cat confdefs.h >>conftest.$ac_ext
3895     cat >>conftest.$ac_ext <<_ACEOF
3896     /* end confdefs.h. */
3897    
3898 bertho 1.9 /* Override any gcc2 internal prototype to avoid an error. */
3899 bertho 1.11 #ifdef __cplusplus
3900     extern "C"
3901     #endif
3902 bertho 1.9 /* We use char because int might match the return type of a gcc2
3903 bertho 1.11 builtin and then its argument prototype would still apply. */
3904     char compress ();
3905     int
3906     main ()
3907     {
3908     compress ();
3909     ;
3910     return 0;
3911     }
3912     _ACEOF
3913     rm -f conftest.$ac_objext conftest$ac_exeext
3914     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 bertho 1.14 (eval $ac_link) 2>conftest.er1
3916 bertho 1.11 ac_status=$?
3917 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3918     rm -f conftest.er1
3919     cat conftest.err >&5
3920 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921     (exit $ac_status); } &&
3922 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3923     || test ! -s conftest.err'
3924     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925     (eval $ac_try) 2>&5
3926     ac_status=$?
3927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928     (exit $ac_status); }; } &&
3929     { ac_try='test -s conftest$ac_exeext'
3930 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931     (eval $ac_try) 2>&5
3932     ac_status=$?
3933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934     (exit $ac_status); }; }; then
3935     ac_cv_lib_z_compress=yes
3936     else
3937     echo "$as_me: failed program was:" >&5
3938     sed 's/^/| /' conftest.$ac_ext >&5
3939    
3940     ac_cv_lib_z_compress=no
3941     fi
3942 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
3943     conftest$ac_exeext conftest.$ac_ext
3944 bertho 1.11 LIBS=$ac_check_lib_save_LIBS
3945     fi
3946     echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
3947     echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
3948     if test $ac_cv_lib_z_compress = yes; then
3949 bertho 1.9
3950     ac_have_libz="yes"
3951 bertho 1.15 LIBZ="-lz"
3952 bertho 1.11
3953 bertho 1.9 else
3954    
3955     ac_have_libz="no"
3956 bertho 1.11
3957 bertho 1.9 fi
3958    
3959    
3960 bertho 1.11 echo "$as_me:$LINENO: checking for FT_Load_Glyph in -lfreetype" >&5
3961     echo $ECHO_N "checking for FT_Load_Glyph in -lfreetype... $ECHO_C" >&6
3962     if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then
3963     echo $ECHO_N "(cached) $ECHO_C" >&6
3964 bertho 1.9 else
3965 bertho 1.11 ac_check_lib_save_LIBS=$LIBS
3966 bertho 1.9 LIBS="-lfreetype ${LIBPATH} ${MATHLIBS} $LIBS"
3967 bertho 1.11 cat >conftest.$ac_ext <<_ACEOF
3968     /* confdefs.h. */
3969     _ACEOF
3970     cat confdefs.h >>conftest.$ac_ext
3971     cat >>conftest.$ac_ext <<_ACEOF
3972     /* end confdefs.h. */
3973    
3974 bertho 1.9 /* Override any gcc2 internal prototype to avoid an error. */
3975 bertho 1.11 #ifdef __cplusplus
3976     extern "C"
3977     #endif
3978 bertho 1.9 /* We use char because int might match the return type of a gcc2
3979 bertho 1.11 builtin and then its argument prototype would still apply. */
3980     char FT_Load_Glyph ();
3981     int
3982     main ()
3983     {
3984     FT_Load_Glyph ();
3985     ;
3986     return 0;
3987     }
3988     _ACEOF
3989     rm -f conftest.$ac_objext conftest$ac_exeext
3990     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 bertho 1.14 (eval $ac_link) 2>conftest.er1
3992 bertho 1.11 ac_status=$?
3993 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
3994     rm -f conftest.er1
3995     cat conftest.err >&5
3996 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997     (exit $ac_status); } &&
3998 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
3999     || test ! -s conftest.err'
4000     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001     (eval $ac_try) 2>&5
4002     ac_status=$?
4003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004     (exit $ac_status); }; } &&
4005     { ac_try='test -s conftest$ac_exeext'
4006 bertho 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007     (eval $ac_try) 2>&5
4008     ac_status=$?
4009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010     (exit $ac_status); }; }; then
4011     ac_cv_lib_freetype_FT_Load_Glyph=yes
4012     else
4013     echo "$as_me: failed program was:" >&5
4014     sed 's/^/| /' conftest.$ac_ext >&5
4015    
4016     ac_cv_lib_freetype_FT_Load_Glyph=no
4017     fi
4018 bertho 1.14 rm -f conftest.err conftest.$ac_objext \
4019     conftest$ac_exeext conftest.$ac_ext
4020 bertho 1.11 LIBS=$ac_check_lib_save_LIBS
4021     fi
4022     echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
4023     echo "${ECHO_T}$ac_cv_lib_freetype_FT_Load_Glyph" >&6
4024     if test $ac_cv_lib_freetype_FT_Load_Glyph = yes; then
4025 bertho 1.9
4026     ac_have_libfreetype="yes"
4027     LIBFT="-lfreetype"
4028 bertho 1.11
4029 bertho 1.9 else
4030    
4031     ac_have_libfreetype="no"
4032 bertho 1.11
4033 bertho 1.9 fi
4034    
4035    
4036 bertho 1.11 echo "$as_me:$LINENO: checking for TT_Load_Glyph in -lttf" >&5
4037     echo $ECHO_N "checking for TT_Load_Glyph in -lttf... $ECHO_C" >&6
4038     if test "${ac_cv_lib_ttf_TT_Load_Glyph+set}" = set; then
4039     echo $ECHO_N "(cached) $ECHO_C" >&6
4040 bertho 1.9 else
4041 bertho 1.11 ac_check_lib_save_LIBS=$LIBS
4042 bertho 1.9 LIBS="-lttf ${LIBPATH} ${MATHLIBS} $LIBS"
4043 bertho 1.11 cat >conftest.$ac_ext <<_ACEOF
4044     /* confdefs.h. */
4045     _ACEOF
4046     cat confdefs.h >>conftest.$ac_ext
4047     cat >>conftest.$ac_ext <<_ACEOF
4048     /* end confdefs.h. */
4049    
4050 bertho 1.9 /* Override any gcc2 internal prototype to avoid an error. */
4051 bertho 1.11 #ifdef __cplusplus
4052     extern "C"
4053     #endif
4054 bertho 1.9 /* We use char because int might match the return type of a gcc2
4055 bertho 1.11 builtin and then its argument prototype would still apply. */
4056     char TT_Load_Glyph ();
4057     int
4058     main ()
4059     {
4060     TT_Load_Glyph ();
4061     ;
4062     return 0;
4063     }
4064     _ACEOF
4065     rm -f conftest.$ac_objext conftest$ac_exeext
4066     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 bertho 1.14 (eval $ac_link) 2>conftest.er1
4068 bertho 1.11 ac_status=$?
4069 bertho 1.14 grep -v '^ *+' conftest.er1 >conftest.err
4070     rm -f conftest.er1
4071     cat conftest.err >&5
4072 bertho 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073     (exit $ac_status); } &&
4074 bertho 1.14 { ac_try='test -z "$ac_c_werror_flag"
4075     || test ! -s conftest.err'
4076     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077     (eval $ac_try) 2>&5
4078     ac_status=$?
4079     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080     (exit $ac_status); }; } &&
4081