/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


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