/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


Revision 1.12 - (show annotations)
Sun Aug 15 16:58:22 2004 UTC (13 years, 2 months ago) by bertho
Branch: MAIN
CVS Tags: REL_1_5_0
Changes since 1.11: +63 -9 lines
- Added drawing of partial trees. You now can select a subtree based on a
  revision number, branch number or symbolic tag to show only that part of the
  tree. New config option branch_subtree selects which part is shown. If the
  subtree is empty, then the whole tree is shown.

- Most error and warning messages are now displayed in the graph, instead of
  being written to stderr. This enables you to see an image eventhough errors
  might be present. The old method would generate a corrupt image.
  New configuration options include msg_color and msg_font to control the looks
  of it. Messages are always printed at the bottom of the image.

- Fixed a bug in the folding code where subtrees would not fold correctly.

- Added diff links in the map-generation for detected merges so that you can
  get the differences in merge-operations. The options map_merge_href and
  map_merge_alt must be set accordingly.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
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
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 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
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 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
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 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 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
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 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 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
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 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 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
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 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -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
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
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 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
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 libexecdir=$ac_optarg ;;
464
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 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
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 | --no-cr | --no-c | -n)
485 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 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
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 program_prefix=$ac_optarg ;;
511
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 program_suffix=$ac_optarg ;;
518
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 program_transform_name=$ac_optarg ;;
535
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 sbindir=$ac_optarg ;;
545
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 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
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 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 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 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 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
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 x_includes=$ac_optarg ;;
617
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 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
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 *)
641 # 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 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 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 fi
656
657 # 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
668 # 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 do
672 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 esac
678 done
679
680 # 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
701 test "$silent" = yes && exec 6>/dev/null
702
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 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 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 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (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
1142
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 # 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 { 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 . "$ac_site_file"
1178 fi
1179 done
1180
1181 if test -r "$cache_file"; then
1182 # 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 else
1193 { 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 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 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
1271
1272
1273 ac_config_headers="$ac_config_headers config.h"
1274
1275
1276 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 else
1289 if test -n "$CC"; then
1290 ac_cv_prog_CC="$CC" # Let the user override the test.
1291 else
1292 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 fi
1307 fi
1308 CC=$ac_cv_prog_CC
1309 if test -n "$CC"; then
1310 echo "$as_me:$LINENO: result: $CC" >&5
1311 echo "${ECHO_T}$CC" >&6
1312 else
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1315 fi
1316
1317 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 else
1327 if test -n "$ac_ct_CC"; then
1328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1329 else
1330 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 fi
1341 done
1342 done
1343
1344 fi
1345 fi
1346 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 fi
1354
1355 CC=$ac_ct_CC
1356 else
1357 CC="$ac_cv_prog_CC"
1358 fi
1359
1360 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 else
1369 if test -n "$CC"; then
1370 ac_cv_prog_CC="$CC" # Let the user override the test.
1371 else
1372 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 fi
1388 CC=$ac_cv_prog_CC
1389 if test -n "$CC"; then
1390 echo "$as_me:$LINENO: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 fi
1396
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 fi
1421 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 fi
1434
1435 CC=$ac_ct_CC
1436 else
1437 CC="$ac_cv_prog_CC"
1438 fi
1439
1440 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
1471 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
1494 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
1523 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 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1532 fi
1533
1534 test -n "$CC" && break
1535 done
1536 fi
1537 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
1565 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 else
1572 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 fi
1581
1582 fi
1583
1584
1585 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 else
1673 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 fi
1715 echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1717
1718 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 else
1749 { { 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 ac_cv_prog_cc_g=yes
1901 else
1902 echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_cv_prog_cc_g=no
1906 fi
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1910 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1911 if test "$ac_test_CFLAGS" = set; then
1912 CFLAGS=$ac_save_CFLAGS
1913 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 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
2010 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 else
2154 if test -n "$LEX"; then
2155 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2156 else
2157 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 fi
2172 fi
2173 LEX=$ac_cv_prog_LEX
2174 if test -n "$LEX"; then
2175 echo "$as_me:$LINENO: result: $LEX" >&5
2176 echo "${ECHO_T}$LEX" >&6
2177 else
2178 echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6
2180 fi
2181
2182 test -n "$LEX" && break
2183 done
2184 test -n "$LEX" || LEX=":"
2185
2186 if test -z "$LEXLIB"
2187 then
2188 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 /* Override any gcc2 internal prototype to avoid an error. */
2204 #ifdef __cplusplus
2205 extern "C"
2206 #endif
2207 /* We use char because int might match the return type of a gcc2
2208 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
2260 /* 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 fi
2302
2303 fi
2304
2305 fi
2306
2307 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 fi
2386
2387 fi
2388 for ac_prog in 'bison -y' byacc
2389 do
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 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 else
2397 if test -n "$YACC"; then
2398 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2399 else
2400 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 fi
2415 fi
2416 YACC=$ac_cv_prog_YACC
2417 if test -n "$YACC"; then
2418 echo "$as_me:$LINENO: result: $YACC" >&5
2419 echo "${ECHO_T}$YACC" >&6
2420 else
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425 test -n "$YACC" && break
2426 done
2427 test -n "$YACC" || YACC="yacc"
2428
2429
2430 LEXFLAGS="-8"
2431 LEXSPEED="-Cf"
2432 INCL=""
2433
2434
2435 # 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
2440 fi;
2441
2442
2443 # 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
2448 fi;
2449
2450 LIBS="$LIBS -lgd"
2451 LIBPATH=""
2452
2453
2454 # 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 LIBS="${LIBS} -L${withval}"
2458
2459 fi;
2460
2461
2462 # 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 LIBS="${LIBS} -L${withval}"
2466
2467 fi;
2468
2469
2470 # 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
2475 fi;
2476
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 LIBS="${LIBS} -L${withval}"
2482
2483 fi;
2484
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
2491 fi;
2492
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 LIBS="${LIBS} -L${withval}"
2498
2499 fi;
2500
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
2507 fi;
2508
2509
2510 # 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 LIBS="${LIBS} -L${withval}"
2514
2515 fi;
2516
2517 # 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 fi;
2522
2523 if test "x$LEXSPEED" != "x"
2524 then
2525 LEXFLAGS="$LEXFLAGS $LEXSPEED"
2526 fi
2527
2528 CPPFLAGS="$CPPFLAGS $INCL"
2529 CFLAGS="$CFLAGS $INCL"
2530
2531 if test "x${GCC}" = "xyes"
2532 then
2533 CFLAGS="$CFLAGS -Wall"
2534 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 else
2539 if test "$cross_compiling" = yes; then
2540 ac_cv_c_gcc_strength_bug="yes"
2541 else
2542 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
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 _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 ac_cv_c_gcc_strength_bug="no"
2570 else
2571 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 fi
2578 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2579 fi
2580 fi
2581 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
2582 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
2583 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2584 then
2585 CFLAGS="$CFLAGS -fno-strength-reduce"
2586 fi
2587 fi
2588
2589 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 else
2594 if test "$cross_compiling" = yes; then
2595 ac_cv_c_size_int_ptr="yes"
2596 else
2597 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
2605 int main(void) {
2606 return sizeof(int) == sizeof(void *);
2607 }
2608 _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 ac_cv_c_size_int_ptr="no"
2621 else
2622 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 fi
2721 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2722 fi
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_c_size_longlong_ptr" >&5
2725 echo "${ECHO_T}$ac_cv_c_size_longlong_ptr" >&6
2726
2727 if test "$ac_cv_c_size_int_ptr" = "no"
2728 then
2729 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 fi
2749
2750 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 # 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 if test "${ac_cv_prog_CPP+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 # 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 # On the NeXT, cc -E runs the code through the compiler's parser,
2776 # 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 :
2809 else
2810 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 :
2970 else
2971 { { 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 :
3061 else
3062 ac_cv_header_stdc=no
3063 fi
3064 rm -f conftest*
3065
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 fi
3086 rm -f conftest*
3087
3088 fi
3089
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 fi
3219
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 else
3294 ac_cpp_err=yes
3295 fi
3296 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
3302 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 else
3346 ac_cv_header_getopt_h=$ac_header_preproc
3347 fi
3348 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
3349 echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
3350
3351 fi
3352 if test $ac_cv_header_getopt_h = yes; then
3353 cat >>confdefs.h <<\_ACEOF
3354 #define HAVE_GETOPT_H 1
3355 _ACEOF
3356
3357 fi
3358
3359
3360
3361 if test "${ac_cv_header_gd_h+set}" = set; then
3362 echo "$as_me:$LINENO: checking for gd.h" >&5
3363 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3364 if test "${ac_cv_header_gd_h+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 fi
3367 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3368 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3369 else
3370 # Is the header compilable?
3371 echo "$as_me:$LINENO: checking gd.h usability" >&5
3372 echo $ECHO_N "checking gd.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 <gd.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 gd.h presence" >&5
3408 echo $ECHO_N "checking gd.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 <gd.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: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3450 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3451 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
3452 echo "$as_me: WARNING: gd.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: gd.h: present but cannot be compiled" >&5
3464 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
3465 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
3466 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
3467 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
3468 echo "$as_me: WARNING: gd.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 gd.h" >&5
3480 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3481 if test "${ac_cv_header_gd_h+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484 ac_cv_header_gd_h=$ac_header_preproc
3485 fi
3486 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3487 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3488
3489 fi
3490 if test $ac_cv_header_gd_h = yes; then
3491 have_gd_h="yes"
3492 else
3493 have_gd_h="no"
3494 fi
3495
3496
3497
3498 if test "$have_gd_h" != "yes"; then
3499 echo
3500 echo "** The GD library is required for CvsGraph to function."
3501 echo " Get it from http://www.boutell.com, compile it and"
3502 echo " use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
3503 echo " its location. You might also have to use --with-z-inc, --with-z-lib"
3504 echo " and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
3505 echo " Check config.log for more information on the problem. If your system"
3506 echo " has libgd installed, you probably mis the gd.h header file."
3507 exit 1
3508 fi
3509
3510 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3511 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3512 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 ac_check_lib_save_LIBS=$LIBS
3516 LIBS="-lm $LIBS"
3517 cat >conftest.$ac_ext <<_ACEOF
3518 #line $LINENO "configure"
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 #ifdef __cplusplus
3527 extern "C"
3528 #endif
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3531 char sqrt ();
3532 int
3533 main ()
3534 {
3535 sqrt ();
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext conftest$ac_exeext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3542 (eval $ac_link) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -s conftest$ac_exeext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_cv_lib_m_sqrt=yes
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 ac_cv_lib_m_sqrt=no
3558 fi
3559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3560 LIBS=$ac_check_lib_save_LIBS
3561 fi
3562 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3563 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3564 if test $ac_cv_lib_m_sqrt = yes; then
3565
3566 cat >>confdefs.h <<\_ACEOF
3567 #define LIBM 1
3568 _ACEOF
3569
3570 MATHLIBS="-lm"
3571
3572 fi
3573
3574
3575 echo "$as_me:$LINENO: checking for compress in -lz" >&5
3576 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
3577 if test "${ac_cv_lib_z_compress+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 ac_check_lib_save_LIBS=$LIBS
3581 LIBS="-lz ${LIBPATH} ${MATHLIBS} $LIBS"
3582 cat >conftest.$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 #ifdef __cplusplus
3592 extern "C"
3593 #endif
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char compress ();
3597 int
3598 main ()
3599 {
3600 compress ();
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext conftest$ac_exeext
3606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -s conftest$ac_exeext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_lib_z_compress=yes
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_lib_z_compress=no
3623 fi
3624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3625 LIBS=$ac_check_lib_save_LIBS
3626 fi
3627 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
3628 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
3629 if test $ac_cv_lib_z_compress = yes; then
3630
3631 ac_have_libz="yes"
3632 ZLIB="-lz"
3633
3634 else
3635
3636 ac_have_libz="no"
3637
3638 fi
3639
3640
3641 echo "$as_me:$LINENO: checking for FT_Load_Glyph in -lfreetype" >&5
3642 echo $ECHO_N "checking for FT_Load_Glyph in -lfreetype... $ECHO_C" >&6
3643 if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 ac_check_lib_save_LIBS=$LIBS
3647 LIBS="-lfreetype ${LIBPATH} ${MATHLIBS} $LIBS"
3648 cat >conftest.$ac_ext <<_ACEOF
3649 #line $LINENO "configure"
3650 /* confdefs.h. */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3655
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 #ifdef __cplusplus
3658 extern "C"
3659 #endif
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3662 char FT_Load_Glyph ();
3663 int
3664 main ()
3665 {
3666 FT_Load_Glyph ();
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest$ac_exeext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_lib_freetype_FT_Load_Glyph=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_cv_lib_freetype_FT_Load_Glyph=no
3689 fi
3690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3691 LIBS=$ac_check_lib_save_LIBS
3692 fi
3693 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
3694 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Load_Glyph" >&6
3695 if test $ac_cv_lib_freetype_FT_Load_Glyph = yes; then
3696
3697 ac_have_libfreetype="yes"
3698 LIBFT="-lfreetype"
3699
3700 else
3701
3702 ac_have_libfreetype="no"
3703
3704 fi
3705
3706
3707 echo "$as_me:$LINENO: checking for TT_Load_Glyph in -lttf" >&5
3708 echo $ECHO_N "checking for TT_Load_Glyph in -lttf... $ECHO_C" >&6
3709 if test "${ac_cv_lib_ttf_TT_Load_Glyph+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 ac_check_lib_save_LIBS=$LIBS
3713 LIBS="-lttf ${LIBPATH} ${MATHLIBS} $LIBS"
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721
3722 /* Override any gcc2 internal prototype to avoid an error. */
3723 #ifdef __cplusplus
3724 extern "C"
3725 #endif
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3728 char TT_Load_Glyph ();
3729 int
3730 main ()
3731 {
3732 TT_Load_Glyph ();
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_lib_ttf_TT_Load_Glyph=yes
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 ac_cv_lib_ttf_TT_Load_Glyph=no
3755 fi
3756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3757 LIBS=$ac_check_lib_save_LIBS
3758 fi
3759 echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Load_Glyph" >&5
3760 echo "${ECHO_T}$ac_cv_lib_ttf_TT_Load_Glyph" >&6
3761 if test $ac_cv_lib_ttf_TT_Load_Glyph = yes; then
3762
3763 ac_have_libttf="yes"
3764 LIBTT="-lttf"
3765
3766 else
3767
3768 ac_have_libttf="no"
3769
3770 fi
3771
3772
3773 echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
3774 echo $ECHO_N "checking for png_create_read_struct in -lpng... $ECHO_C" >&6
3775 if test "${ac_cv_lib_png_png_create_read_struct_+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 ac_check_lib_save_LIBS=$LIBS
3779 LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS} $LIBS"
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 #ifdef __cplusplus
3790 extern "C"
3791 #endif
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3794 char png_create_read_struct ();
3795 int
3796 main ()
3797 {
3798 png_create_read_struct ();
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805 (eval $ac_link) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest$ac_exeext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_cv_lib_png_png_create_read_struct_=yes
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 ac_cv_lib_png_png_create_read_struct_=no
3821 fi
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 LIBS=$ac_check_lib_save_LIBS
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct_" >&5
3826 echo "${ECHO_T}$ac_cv_lib_png_png_create_read_struct_" >&6
3827 if test $ac_cv_lib_png_png_create_read_struct_ = yes; then
3828
3829 ac_have_libpng="yes"
3830 LIBPNG="-lpng"
3831
3832 else
3833
3834 ac_have_libpng="no"
3835
3836 fi
3837
3838
3839 echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
3840 echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
3841 if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844 ac_check_lib_save_LIBS=$LIBS
3845 LIBS="-ljpeg ${LIBPATH} ${MATHLIBS} $LIBS"
3846 cat >conftest.$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 #ifdef __cplusplus
3856 extern "C"
3857 #endif
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3860 char jpeg_CreateCompress ();
3861 int
3862 main ()
3863 {
3864 jpeg_CreateCompress ();
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext conftest$ac_exeext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871 (eval $ac_link) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_lib_jpeg_jpeg_CreateCompress=yes
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ac_cv_lib_jpeg_jpeg_CreateCompress=no
3887 fi
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889 LIBS=$ac_check_lib_save_LIBS
3890 fi
3891 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
3892 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
3893 if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
3894
3895 ac_have_libjpeg="yes"
3896 LIBJPEG="-ljpeg"
3897
3898 else
3899
3900 ac_have_libjpeg="no"
3901
3902 fi
3903
3904
3905 OLIBS="${LIBS}"
3906 LIBS="${LIBS} ${MATHLIB}"
3907 echo "$as_me:$LINENO: checking \"whether libpng needs -lz\"" >&5
3908 echo $ECHO_N "checking \"whether libpng needs -lz\"... $ECHO_C" >&6
3909 if test "${ac_cv_png_needs_z+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 #ifdef __cplusplus
3922 extern "C"
3923 #endif
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char png_create_read_struct ();
3927 int
3928 main ()
3929 {
3930 png_create_read_struct ();
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext conftest$ac_exeext
3936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947
3948 ac_cv_png_needs_z="no"
3949
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954
3955 ac_cv_png_needs_z="yes"
3956
3957 fi
3958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959 fi
3960 echo "$as_me:$LINENO: result: $ac_cv_png_needs_z" >&5
3961 echo "${ECHO_T}$ac_cv_png_needs_z" >&6
3962 LIBS="${OLIBS}"
3963
3964
3965 OLIBS="${LIBS}"
3966 LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
3967 echo "$as_me:$LINENO: checking \"whether libgd needs -lpng\"" >&5
3968 echo $ECHO_N "checking \"whether libgd needs -lpng\"... $ECHO_C" >&6
3969 if test "${ac_cv_gd_needs_png+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 cat >conftest.$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 #ifdef __cplusplus
3982 extern "C"
3983 #endif
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3986 char gdImagePng ();
3987 int
3988 main ()
3989 {
3990 gdImagePng ();
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007
4008 ac_cv_gd_needs_png="no"
4009
4010 else
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014
4015 ac_cv_gd_needs_png="yes"
4016
4017 fi
4018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4019 fi
4020 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_png" >&5
4021 echo "${ECHO_T}$ac_cv_gd_needs_png" >&6
4022 LIBS="${OLIBS}"
4023
4024 OLIBS="${LIBS}"
4025 LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4026 echo "$as_me:$LINENO: checking \"whether libgd needs -ljpeg\"" >&5
4027 echo $ECHO_N "checking \"whether libgd needs -ljpeg\"... $ECHO_C" >&6
4028 if test "${ac_cv_gd_needs_jpeg+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 cat >conftest.$ac_ext <<_ACEOF
4032 #line $LINENO "configure"
4033 /* confdefs.h. */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 #ifdef __cplusplus
4041 extern "C"
4042 #endif
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4045 char gdImageJpeg ();
4046 int
4047 main ()
4048 {
4049 gdImageJpeg ();
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext conftest$ac_exeext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056 (eval $ac_link) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -s conftest$ac_exeext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066
4067 ac_cv_gd_needs_jpeg="no"
4068
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073
4074 ac_cv_gd_needs_jpeg="yes"
4075
4076 fi
4077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4078 fi
4079 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_jpeg" >&5
4080 echo "${ECHO_T}$ac_cv_gd_needs_jpeg" >&6
4081 LIBS="${OLIBS}"
4082
4083 OLIBS="${LIBS}"
4084 LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4085 echo "$as_me:$LINENO: checking \"whether libgd needs -lttf\"" >&5
4086 echo $ECHO_N "checking \"whether libgd needs -lttf\"... $ECHO_C" >&6
4087 if test "${ac_cv_gd_needs_ttf+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 cat >conftest.$ac_ext <<_ACEOF
4091 #line $LINENO "configure"
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 #ifdef __cplusplus
4100 extern "C"
4101 #endif
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4104 char gdImageStringTTF ();
4105 int
4106 main ()
4107 {
4108 gdImageStringTTF ();
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext conftest$ac_exeext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115 (eval $ac_link) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } &&
4119 { ac_try='test -s conftest$ac_exeext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125
4126 ac_cv_gd_needs_ttf="no"
4127
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132
4133 ac_cv_gd_needs_ttf="yes"
4134
4135 fi
4136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4137 fi
4138 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_ttf" >&5
4139 echo "${ECHO_T}$ac_cv_gd_needs_ttf" >&6
4140 LIBS="${OLIBS}"
4141
4142 OLIBS="${LIBS}"
4143 LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4144 echo "$as_me:$LINENO: checking \"whether libgd needs -lfreetype\"" >&5
4145 echo $ECHO_N "checking \"whether libgd needs -lfreetype\"... $ECHO_C" >&6
4146 if test "${ac_cv_gd_needs_freetype+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line $LINENO "configure"
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156
4157 /* Override any gcc2 internal prototype to avoid an error. */
4158 #ifdef __cplusplus
4159 extern "C"
4160 #endif
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4163 char gdImageStringFT ();
4164 int
4165 main ()
4166 {
4167 gdImageStringFT ();
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext conftest$ac_exeext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4174 (eval $ac_link) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184
4185 ac_cv_gd_needs_freetype="no"
4186
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191
4192 ac_cv_gd_needs_freetype="yes"
4193
4194 fi
4195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4196 fi
4197 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_freetype" >&5
4198 echo "${ECHO_T}$ac_cv_gd_needs_freetype" >&6
4199 LIBS="${OLIBS}"
4200
4201 if test "$ac_cv_gd_needs_freetype" = "yes"
4202 then
4203 if test "$ac_have_libfreetype" != "yes" -a "$ac_have_libttf" != "yes"
4204 then
4205 echo "** WARNING: Required library libfreetype not found"
4206 fi
4207 LIBS="${LIBS} ${LIBFT}"
4208 fi
4209
4210 if test "$ac_cv_gd_needs_ttf" = "yes"
4211 then
4212 if test "$ac_have_libttf" != "yes" -a "$ac_have_libfreetype" != "yes"
4213 then
4214 echo "** WARNING: Required library libttf not found"
4215 fi
4216 LIBS="${LIBS} ${LIBTT}"
4217 fi
4218
4219 if test "$ac_cv_gd_needs_jpeg" = "yes"
4220 then
4221 if test "$ac_have_libjpeg" != "yes"
4222 then
4223 echo "** WARNING: Required library libjpeg not found"
4224 fi
4225 LIBS="${LIBS} ${LIBJPEG}"
4226 fi
4227
4228 if test "$ac_cv_gd_needs_png" = "yes"
4229 then
4230 if test "$ac_have_libpng" != "yes"
4231 then
4232 echo "** WARNING: Required library libpng not found"
4233 fi
4234 LIBS="${LIBS} ${LIBPNG}"
4235 if test "$ac_cv_png_needs_z" = "yes"
4236 then
4237 if test "$ac_have_libz" != "yes"
4238 then
4239 echo "** WARNING: Required library libz not found"
4240 fi
4241 LIBS="${LIBS} ${LIBZ}"
4242 fi
4243 fi
4244
4245 LIBS="${LIBS} ${MATHLIBS}"
4246
4247 echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
4248 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6
4249 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252 ac_check_lib_save_LIBS=$LIBS
4253 LIBS="-lgd $LIBS"
4254 cat >conftest.$ac_ext <<_ACEOF
4255 #line $LINENO "configure"
4256 /* confdefs.h. */
4257 _ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261
4262 /* Override any gcc2 internal prototype to avoid an error. */
4263 #ifdef __cplusplus
4264 extern "C"
4265 #endif
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4268 char gdImageGif ();
4269 int
4270 main ()
4271 {
4272 gdImageGif ();
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_gd_gdImageGif=yes
4290 else
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ac_cv_lib_gd_gdImageGif=no
4295 fi
4296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4297 LIBS=$ac_check_lib_save_LIBS
4298 fi
4299 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
4300 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6
4301 if test $ac_cv_lib_gd_gdImageGif = yes; then
4302
4303 cat >>confdefs.h <<\_ACEOF
4304 #define HAVE_IMAGE_GIF 1
4305 _ACEOF
4306
4307 have_gifs="yes"
4308
4309 else
4310 have_gifs="no"
4311
4312 fi
4313
4314
4315
4316 echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
4317 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
4318 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 ac_check_lib_save_LIBS=$LIBS
4322 LIBS="-lgd $LIBS"
4323 cat >conftest.$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 #ifdef __cplusplus
4333 extern "C"
4334 #endif
4335 /* We use char because int might match the return type of a gcc2
4336 builtin and then its argument prototype would still apply. */
4337 char gdImagePng ();
4338 int
4339 main ()
4340 {
4341 gdImagePng ();
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4348 (eval $ac_link) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -s conftest$ac_exeext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_lib_gd_gdImagePng=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ac_cv_lib_gd_gdImagePng=no
4364 fi
4365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
4369 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
4370 if test $ac_cv_lib_gd_gdImagePng = yes; then
4371
4372 cat >>confdefs.h <<\_ACEOF
4373 #define HAVE_IMAGE_PNG 1
4374 _ACEOF
4375
4376
4377 fi
4378
4379 echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
4380 echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6
4381 if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 ac_check_lib_save_LIBS=$LIBS
4385 LIBS="-lgd $LIBS"
4386 cat >conftest.$ac_ext <<_ACEOF
4387 #line $LINENO "configure"
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 #ifdef __cplusplus
4396 extern "C"
4397 #endif
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4400 char gdImageJpeg ();
4401 int
4402 main ()
4403 {
4404 gdImageJpeg ();
4405 ;
4406 return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 (eval $ac_link) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -s conftest$ac_exeext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_cv_lib_gd_gdImageJpeg=yes
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 ac_cv_lib_gd_gdImageJpeg=no
4427 fi
4428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 LIBS=$ac_check_lib_save_LIBS
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
4432 echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6
4433 if test $ac_cv_lib_gd_gdImageJpeg = yes; then
4434
4435 cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_IMAGE_JPEG 1
4437 _ACEOF
4438
4439
4440 fi
4441
4442 echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
4443 echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6
4444 if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 ac_check_lib_save_LIBS=$LIBS
4448 LIBS="-lgd $LIBS"
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 #ifdef __cplusplus
4459 extern "C"
4460 #endif
4461 /* We use char because int might match the return type of a gcc2
4462 builtin and then its argument prototype would still apply. */
4463 char gdImageStringTTF ();
4464 int
4465 main ()
4466 {
4467 gdImageStringTTF ();
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.$ac_objext conftest$ac_exeext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4474 (eval $ac_link) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_lib_gd_gdImageStringTTF=yes
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_cv_lib_gd_gdImageStringTTF=no
4490 fi
4491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4492 LIBS=$ac_check_lib_save_LIBS
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
4495 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6
4496 if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
4497
4498 if test "$ac_have_libttf" = "yes"
4499 then
4500 cat >>confdefs.h <<\_ACEOF
4501 #define HAVE_GDIMAGESTRINGTTF 1
4502 _ACEOF
4503
4504 fi
4505
4506 fi
4507
4508 echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
4509 echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6
4510 if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 ac_check_lib_save_LIBS=$LIBS
4514 LIBS="-lgd $LIBS"
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line $LINENO "configure"
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529 char gdImageStringFT ();
4530 int
4531 main ()
4532 {
4533 gdImageStringFT ();
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest$ac_exeext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_lib_gd_gdImageStringFT=yes
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 ac_cv_lib_gd_gdImageStringFT=no
4556 fi
4557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4558 LIBS=$ac_check_lib_save_LIBS
4559 fi
4560 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
4561 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6
4562 if test $ac_cv_lib_gd_gdImageStringFT = yes; then
4563
4564 if test "$ac_have_libfreetype" = "yes"
4565 then
4566 cat >>confdefs.h <<\_ACEOF
4567 #define HAVE_GDIMAGESTRINGFT 1
4568 _ACEOF
4569
4570 fi
4571
4572 fi
4573
4574 echo "$as_me:$LINENO: checking for gdImageFilledArc in -lgd" >&5
4575 echo $ECHO_N "checking for gdImageFilledArc in -lgd... $ECHO_C" >&6
4576 if test "${ac_cv_lib_gd_gdImageFilledArc+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 ac_check_lib_save_LIBS=$LIBS
4580 LIBS="-lgd $LIBS"
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 #ifdef __cplusplus
4591 extern "C"
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595 char gdImageFilledArc ();
4596 int
4597 main ()
4598 {
4599 gdImageFilledArc ();
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext conftest$ac_exeext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4606 (eval $ac_link) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_lib_gd_gdImageFilledArc=yes
4617 else
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ac_cv_lib_gd_gdImageFilledArc=no
4622 fi
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageFilledArc" >&5
4627 echo "${ECHO_T}$ac_cv_lib_gd_gdImageFilledArc" >&6
4628 if test $ac_cv_lib_gd_gdImageFilledArc = yes; then
4629
4630 cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_GDIMAGEFILLEDARC 1
4632 _ACEOF
4633
4634
4635 fi
4636
4637
4638
4639
4640
4641
4642 ac_config_files="$ac_config_files Makefile"
4643 cat >confcache <<\_ACEOF
4644 # This file is a shell script that caches the results of configure
4645 # tests run on this system so they can be shared between configure
4646 # scripts and configure runs, see configure's option --config-cache.
4647 # It is not useful on other systems. If it contains results you don't
4648 # want to keep, you may remove or edit it.
4649 #
4650 # config.status only pays attention to the cache file if you give it
4651 # the --recheck option to rerun configure.
4652 #
4653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4655 # following values.
4656
4657 _ACEOF
4658
4659 # The following way of writing the cache mishandles newlines in values,
4660 # but we know of no workaround that is simple, portable, and efficient.
4661 # So, don't put newlines in cache variables' values.
4662 # Ultrix sh set writes to stderr and can't be redirected directly,
4663 # and sets the high bit in the cache file unless we assign to the vars.
4664 {
4665 (set) 2>&1 |
4666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4667 *ac_space=\ *)
4668 # `set' does not quote correctly, so add quotes (double-quote
4669 # substitution turns \\\\ into \\, and sed turns \\ into \).
4670 sed -n \
4671 "s/'/'\\\\''/g;
4672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4673 ;;
4674 *)
4675 # `set' quotes correctly as required by POSIX, so do not add quotes.
4676 sed -n \
4677 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4678 ;;
4679 esac;
4680 } |
4681 sed '
4682 t clear
4683 : clear
4684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4685 t end
4686 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4687 : end' >>confcache
4688 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4689 if test -w $cache_file; then
4690 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4691 cat confcache >$cache_file
4692 else
4693 echo "not updating unwritable cache $cache_file"
4694 fi
4695 fi
4696 rm -f confcache
4697
4698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4699 # Let make expand exec_prefix.
4700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4701
4702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4704 # trailing colons and then remove the whole line if VPATH becomes empty
4705 # (actually we leave an empty line to preserve line numbers).
4706 if test "x$srcdir" = x.; then
4707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4708 s/:*\$(srcdir):*/:/;
4709 s/:*\${srcdir}:*/:/;
4710 s/:*@srcdir@:*/:/;
4711 s/^\([^=]*=[ ]*\):*/\1/;
4712 s/:*$//;
4713 s/^[^=]*=[ ]*$//;
4714 }'
4715 fi
4716
4717 DEFS=-DHAVE_CONFIG_H
4718
4719 ac_libobjs=
4720 ac_ltlibobjs=
4721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4722 # 1. Remove the extension, and $U if already installed.
4723 ac_i=`echo "$ac_i" |
4724 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4725 # 2. Add them.
4726 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4727 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4728 done
4729 LIBOBJS=$ac_libobjs
4730
4731 LTLIBOBJS=$ac_ltlibobjs
4732
4733
4734
4735 : ${CONFIG_STATUS=./config.status}
4736 ac_clean_files_save=$ac_clean_files
4737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4740 cat >$CONFIG_STATUS <<_ACEOF
4741 #! $SHELL
4742 # Generated by $as_me.
4743 # Run this file to recreate the current configuration.
4744 # Compiler output produced by configure, useful for debugging
4745 # configure, is in config.log if it exists.
4746
4747 debug=false
4748 ac_cs_recheck=false
4749 ac_cs_silent=false
4750 SHELL=\${CONFIG_SHELL-$SHELL}
4751 _ACEOF
4752
4753 cat >>$CONFIG_STATUS <<\_ACEOF
4754 ## --------------------- ##
4755 ## M4sh Initialization. ##
4756 ## --------------------- ##
4757
4758 # Be Bourne compatible
4759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4760 emulate sh
4761 NULLCMD=:
4762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4763 # is contrary to our usage. Disable this feature.
4764 alias -g '${1+"$@"}'='"$@"'
4765 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4766 set -o posix
4767 fi
4768
4769 # Support unset when possible.
4770 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4771 as_unset=unset
4772 else
4773 as_unset=false
4774 fi
4775
4776
4777 # Work around bugs in pre-3.0 UWIN ksh.
4778 $as_unset ENV MAIL MAILPATH
4779 PS1='$ '
4780 PS2='> '
4781 PS4='+ '
4782
4783 # NLS nuisances.
4784 for as_var in \
4785 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4786 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4787 LC_TELEPHONE LC_TIME
4788 do
4789 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4790 eval $as_var=C; export $as_var
4791 else
4792 $as_unset $as_var
4793 fi
4794 done
4795
4796 # Required to use basename.
4797 if expr a : '\(a\)' >/dev/null 2>&1; then
4798 as_expr=expr
4799 else
4800 as_expr=false
4801 fi
4802
4803 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4804 as_basename=basename
4805 else
4806 as_basename=false
4807 fi
4808
4809
4810 # Name of the executable.
4811 as_me=`$as_basename "$0" ||
4812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4813 X"$0" : 'X\(//\)$' \| \
4814 X"$0" : 'X\(/\)$' \| \
4815 . : '\(.\)' 2>/dev/null ||
4816 echo X/"$0" |
4817 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4818 /^X\/\(\/\/\)$/{ s//\1/; q; }
4819 /^X\/\(\/\).*/{ s//\1/; q; }
4820 s/.*/./; q'`
4821
4822
4823 # PATH needs CR, and LINENO needs CR and PATH.
4824 # Avoid depending upon Character Ranges.
4825 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4826 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4827 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4828 as_cr_digits='0123456789'
4829 as_cr_alnum=$as_cr_Letters$as_cr_digits
4830
4831 # The user is always right.
4832 if test "${PATH_SEPARATOR+set}" != set; then
4833 echo "#! /bin/sh" >conf$$.sh
4834 echo "exit 0" >>conf$$.sh
4835 chmod +x conf$$.sh
4836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4837 PATH_SEPARATOR=';'
4838 else
4839 PATH_SEPARATOR=:
4840 fi
4841 rm -f conf$$.sh
4842 fi
4843
4844
4845 as_lineno_1=$LINENO
4846 as_lineno_2=$LINENO
4847 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4848 test "x$as_lineno_1" != "x$as_lineno_2" &&
4849 test "x$as_lineno_3" = "x$as_lineno_2" || {
4850 # Find who we are. Look in the path if we contain no path at all
4851 # relative or not.
4852 case $0 in
4853 *[\\/]* ) as_myself=$0 ;;
4854 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4856 do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4860 done
4861
4862 ;;
4863 esac
4864 # We did not find ourselves, most probably we were run as `sh COMMAND'
4865 # in which case we are not to be found in the path.
4866 if test "x$as_myself" = x; then
4867 as_myself=$0
4868 fi
4869 if test ! -f "$as_myself"; then
4870 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4871 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4872 { (exit 1); exit 1; }; }
4873 fi
4874 case $CONFIG_SHELL in
4875 '')
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for as_base in sh bash ksh sh5; do
4882 case $as_dir in
4883 /*)
4884 if ("$as_dir/$as_base" -c '
4885 as_lineno_1=$LINENO
4886 as_lineno_2=$LINENO
4887 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4888 test "x$as_lineno_1" != "x$as_lineno_2" &&
4889 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4890 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4891 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4892 CONFIG_SHELL=$as_dir/$as_base
4893 export CONFIG_SHELL
4894 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4895 fi;;
4896 esac
4897 done
4898 done
4899 ;;
4900 esac
4901
4902 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4903 # uniformly replaced by the line number. The first 'sed' inserts a
4904 # line-number line before each line; the second 'sed' does the real
4905 # work. The second script uses 'N' to pair each line-number line
4906 # with the numbered line, and appends trailing '-' during
4907 # substitution so that $LINENO is not a special case at line end.
4908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4909 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4910 sed '=' <$as_myself |
4911 sed '
4912 N
4913 s,$,-,
4914 : loop
4915 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4916 t loop
4917 s,-$,,
4918 s,^['$as_cr_digits']*\n,,
4919 ' >$as_me.lineno &&
4920 chmod +x $as_me.lineno ||
4921 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4922 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4923 { (exit 1); exit 1; }; }
4924
4925 # Don't try to exec as it changes $[0], causing all sort of problems
4926 # (the dirname of $[0] is not the place where we might find the
4927 # original and so on. Autoconf is especially sensible to this).
4928 . ./$as_me.lineno
4929 # Exit status is that of the last command.
4930 exit
4931 }
4932
4933
4934 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4935 *c*,-n*) ECHO_N= ECHO_C='
4936 ' ECHO_T=' ' ;;
4937 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4938 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4939 esac
4940
4941 if expr a : '\(a\)' >/dev/null 2>&1; then
4942 as_expr=expr
4943 else
4944 as_expr=false
4945 fi
4946
4947 rm -f conf$$ conf$$.exe conf$$.file
4948 echo >conf$$.file
4949 if ln -s conf$$.file conf$$ 2>/dev/null; then
4950 # We could just check for DJGPP; but this test a) works b) is more generic
4951 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4952 if test -f conf$$.exe; then
4953 # Don't use ln at all; we don't have any links
4954 as_ln_s='cp -p'
4955 else
4956 as_ln_s='ln -s'
4957 fi
4958 elif ln conf$$.file conf$$ 2>/dev/null; then
4959 as_ln_s=ln
4960 else
4961 as_ln_s='cp -p'
4962 fi
4963 rm -f conf$$ conf$$.exe conf$$.file
4964
4965 if mkdir -p . 2>/dev/null; then
4966 as_mkdir_p=:
4967 else
4968 as_mkdir_p=false
4969 fi
4970
4971 as_executable_p="test -f"
4972
4973 # Sed expression to map a string onto a valid CPP name.
4974 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4975
4976 # Sed expression to map a string onto a valid variable name.
4977 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4978
4979
4980 # IFS
4981 # We need space, tab and new line, in precisely that order.
4982 as_nl='
4983 '
4984 IFS=" $as_nl"
4985
4986 # CDPATH.
4987 $as_unset CDPATH
4988
4989 exec 6>&1
4990
4991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4992 # report actual input values of CONFIG_FILES etc. instead of their
4993 # values after options handling. Logging --version etc. is OK.
4994 exec 5>>config.log
4995 {
4996 echo
4997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4998 ## Running $as_me. ##
4999 _ASBOX
5000 } >&5
5001 cat >&5 <<_CSEOF
5002
5003 This file was extended by $as_me, which was
5004 generated by GNU Autoconf 2.57. Invocation command line was
5005
5006 CONFIG_FILES = $CONFIG_FILES
5007 CONFIG_HEADERS = $CONFIG_HEADERS
5008 CONFIG_LINKS = $CONFIG_LINKS
5009 CONFIG_COMMANDS = $CONFIG_COMMANDS
5010 $ $0 $@
5011
5012 _CSEOF
5013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5014 echo >&5
5015 _ACEOF
5016
5017 # Files that config.status was made for.
5018 if test -n "$ac_config_files"; then
5019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5020 fi
5021
5022 if test -n "$ac_config_headers"; then
5023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5024 fi
5025
5026 if test -n "$ac_config_links"; then
5027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5028 fi
5029
5030 if test -n "$ac_config_commands"; then
5031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5032 fi
5033
5034 cat >>$CONFIG_STATUS <<\_ACEOF
5035
5036 ac_cs_usage="\
5037 \`$as_me' instantiates files from templates according to the
5038 current configuration.
5039
5040 Usage: $0 [OPTIONS] [FILE]...
5041
5042 -h, --help print this help, then exit
5043 -V, --version print version number, then exit
5044 -q, --quiet do not print progress messages
5045 -d, --debug don't remove temporary files
5046 --recheck update $as_me by reconfiguring in the same conditions
5047 --file=FILE[:TEMPLATE]
5048 instantiate the configuration file FILE
5049 --header=FILE[:TEMPLATE]
5050 instantiate the configuration header FILE
5051
5052 Configuration files:
5053 $config_files
5054
5055 Configuration headers:
5056 $config_headers
5057
5058 Report bugs to <bug-autoconf@gnu.org>."
5059 _ACEOF
5060
5061 cat >>$CONFIG_STATUS <<_ACEOF
5062 ac_cs_version="\\
5063 config.status
5064 configured by $0, generated by GNU Autoconf 2.57,
5065 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5066
5067 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5068 Free Software Foundation, Inc.
5069 This config.status script is free software; the Free Software Foundation
5070 gives unlimited permission to copy, distribute and modify it."
5071 srcdir=$srcdir
5072 _ACEOF
5073
5074 cat >>$CONFIG_STATUS <<\_ACEOF
5075 # If no file are specified by the user, then we need to provide default
5076 # value. By we need to know if files were specified by the user.
5077 ac_need_defaults=:
5078 while test $# != 0
5079 do
5080 case $1 in
5081 --*=*)
5082 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5083 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5084 ac_shift=:
5085 ;;
5086 -*)
5087 ac_option=$1
5088 ac_optarg=$2
5089 ac_shift=shift
5090 ;;
5091 *) # This is not an option, so the user has probably given explicit
5092 # arguments.
5093 ac_option=$1
5094 ac_need_defaults=false;;
5095 esac
5096
5097 case $ac_option in
5098 # Handling of the options.
5099 _ACEOF
5100 cat >>$CONFIG_STATUS <<\_ACEOF
5101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5102 ac_cs_recheck=: ;;
5103 --version | --vers* | -V )
5104 echo "$ac_cs_version"; exit 0 ;;
5105 --he | --h)
5106 # Conflict between --help and --header
5107 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5108 Try \`$0 --help' for more information." >&5
5109 echo "$as_me: error: ambiguous option: $1
5110 Try \`$0 --help' for more information." >&2;}
5111 { (exit 1); exit 1; }; };;
5112 --help | --hel | -h )
5113 echo "$ac_cs_usage"; exit 0 ;;
5114 --debug | --d* | -d )
5115 debug=: ;;
5116 --file | --fil | --fi | --f )
5117 $ac_shift
5118 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5119 ac_need_defaults=false;;
5120 --header | --heade | --head | --hea )
5121 $ac_shift
5122 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5123 ac_need_defaults=false;;
5124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5126 ac_cs_silent=: ;;
5127
5128 # This is an error.
5129 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5130 Try \`$0 --help' for more information." >&5
5131 echo "$as_me: error: unrecognized option: $1
5132 Try \`$0 --help' for more information." >&2;}
5133 { (exit 1); exit 1; }; } ;;
5134
5135 *) ac_config_targets="$ac_config_targets $1" ;;
5136
5137 esac
5138 shift
5139 done
5140
5141 ac_configure_extra_args=
5142
5143 if $ac_cs_silent; then
5144 exec 6>/dev/null
5145 ac_configure_extra_args="$ac_configure_extra_args --silent"
5146 fi
5147
5148 _ACEOF
5149 cat >>$CONFIG_STATUS <<_ACEOF
5150 if \$ac_cs_recheck; then
5151 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5152 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5153 fi
5154
5155 _ACEOF
5156
5157
5158
5159
5160
5161 cat >>$CONFIG_STATUS <<\_ACEOF
5162 for ac_config_target in $ac_config_targets
5163 do
5164 case "$ac_config_target" in
5165 # Handling of arguments.
5166 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5167 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5168 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5169 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5170 { (exit 1); exit 1; }; };;
5171 esac
5172 done
5173
5174 # If the user did not use the arguments to specify the items to instantiate,
5175 # then the envvar interface is used. Set only those that are not.
5176 # We use the long form for the default assignment because of an extremely
5177 # bizarre bug on SunOS 4.1.3.
5178 if $ac_need_defaults; then
5179 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5180 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5181 fi
5182
5183 # Have a temporary directory for convenience. Make it in the build tree
5184 # simply because there is no reason to put it here, and in addition,
5185 # creating and moving files from /tmp can sometimes cause problems.
5186 # Create a temporary directory, and hook for its removal unless debugging.
5187 $debug ||
5188 {
5189 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5190 trap '{ (exit 1); exit 1; }' 1 2 13 15
5191 }
5192
5193 # Create a (secure) tmp directory for tmp files.
5194
5195 {
5196 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5197 test -n "$tmp" && test -d "$tmp"
5198 } ||
5199 {
5200 tmp=./confstat$$-$RANDOM
5201 (umask 077 && mkdir $tmp)
5202 } ||
5203 {
5204 echo "$me: cannot create a temporary directory in ." >&2
5205 { (exit 1); exit 1; }
5206 }
5207
5208 _ACEOF
5209
5210 cat >>$CONFIG_STATUS <<_ACEOF
5211
5212 #
5213 # CONFIG_FILES section.
5214 #
5215
5216 # No need to generate the scripts if there are no CONFIG_FILES.
5217 # This happens for instance when ./config.status config.h
5218 if test -n "\$CONFIG_FILES"; then
5219 # Protect against being on the right side of a sed subst in config.status.
5220 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5221 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5222 s,@SHELL@,$SHELL,;t t
5223 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5224 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5225 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5226 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5227 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5228 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5229 s,@exec_prefix@,$exec_prefix,;t t
5230 s,@prefix@,$prefix,;t t
5231 s,@program_transform_name@,$program_transform_name,;t t
5232 s,@bindir@,$bindir,;t t
5233 s,@sbindir@,$sbindir,;t t
5234 s,@libexecdir@,$libexecdir,;t t
5235 s,@datadir@,$datadir,;t t
5236 s,@sysconfdir@,$sysconfdir,;t t
5237 s,@sharedstatedir@,$sharedstatedir,;t t
5238 s,@localstatedir@,$localstatedir,;t t
5239 s,@libdir@,$libdir,;t t
5240 s,@includedir@,$includedir,;t t
5241 s,@oldincludedir@,$oldincludedir,;t t
5242 s,@infodir@,$infodir,;t t
5243 s,@mandir@,$mandir,;t t
5244 s,@build_alias@,$build_alias,;t t
5245 s,@host_alias@,$host_alias,;t t
5246 s,@target_alias@,$target_alias,;t t
5247 s,@DEFS@,$DEFS,;t t
5248 s,@ECHO_C@,$ECHO_C,;t t
5249 s,@ECHO_N@,$ECHO_N,;t t
5250 s,@ECHO_T@,$ECHO_T,;t t
5251 s,@LIBS@,$LIBS,;t t
5252 s,@CC@,$CC,;t t
5253 s,@CFLAGS@,$CFLAGS,;t t
5254 s,@LDFLAGS@,$LDFLAGS,;t t
5255 s,@CPPFLAGS@,$CPPFLAGS,;t t
5256 s,@ac_ct_CC@,$ac_ct_CC,;t t
5257 s,@EXEEXT@,$EXEEXT,;t t
5258 s,@OBJEXT@,$OBJEXT,;t t
5259 s,@LEX@,$LEX,;t t
5260 s,@LEXLIB@,$LEXLIB,;t t
5261 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
5262 s,@YACC@,$YACC,;t t
5263 s,@CPP@,$CPP,;t t
5264 s,@EGREP@,$EGREP,;t t
5265 s,@LEXFLAGS@,$LEXFLAGS,;t t
5266 s,@INTTYPE@,$INTTYPE,;t t
5267 s,@LIBOBJS@,$LIBOBJS,;t t
5268 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5269 CEOF
5270
5271 _ACEOF
5272
5273 cat >>$CONFIG_STATUS <<\_ACEOF
5274 # Split the substitutions into bite-sized pieces for seds with
5275 # small command number limits, like on Digital OSF/1 and HP-UX.
5276 ac_max_sed_lines=48
5277 ac_sed_frag=1 # Number of current file.
5278 ac_beg=1 # First line for current file.
5279 ac_end=$ac_max_sed_lines # Line after last line for current file.
5280 ac_more_lines=:
5281 ac_sed_cmds=
5282 while $ac_more_lines; do
5283 if test $ac_beg -gt 1; then
5284 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5285 else
5286 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5287 fi
5288 if test ! -s $tmp/subs.frag; then
5289 ac_more_lines=false
5290 else
5291 # The purpose of the label and of the branching condition is to
5292 # speed up the sed processing (if there are no `@' at all, there
5293 # is no need to browse any of the substitutions).
5294 # These are the two extra sed commands mentioned above.
5295 (echo ':t
5296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5297 if test -z "$ac_sed_cmds"; then
5298 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5299 else
5300 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5301 fi
5302 ac_sed_frag=`expr $ac_sed_frag + 1`
5303 ac_beg=$ac_end
5304 ac_end=`expr $ac_end + $ac_max_sed_lines`
5305 fi
5306 done
5307 if test -z "$ac_sed_cmds"; then
5308 ac_sed_cmds=cat
5309 fi
5310 fi # test -n "$CONFIG_FILES"
5311
5312 _ACEOF
5313 cat >>$CONFIG_STATUS <<\_ACEOF
5314 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5316 case $ac_file in
5317 - | *:- | *:-:* ) # input from stdin
5318 cat >$tmp/stdin
5319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5323 * ) ac_file_in=$ac_file.in ;;
5324 esac
5325
5326 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5329 X"$ac_file" : 'X\(//\)[^/]' \| \
5330 X"$ac_file" : 'X\(//\)$' \| \
5331 X"$ac_file" : 'X\(/\)' \| \
5332 . : '\(.\)' 2>/dev/null ||
5333 echo X"$ac_file" |
5334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5336 /^X\(\/\/\)$/{ s//\1/; q; }
5337 /^X\(\/\).*/{ s//\1/; q; }
5338 s/.*/./; q'`
5339 { if $as_mkdir_p; then
5340 mkdir -p "$ac_dir"
5341 else
5342 as_dir="$ac_dir"
5343 as_dirs=
5344 while test ! -d "$as_dir"; do
5345 as_dirs="$as_dir $as_dirs"
5346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5348 X"$as_dir" : 'X\(//\)[^/]' \| \
5349 X"$as_dir" : 'X\(//\)$' \| \
5350 X"$as_dir" : 'X\(/\)' \| \
5351 . : '\(.\)' 2>/dev/null ||
5352 echo X"$as_dir" |
5353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5355 /^X\(\/\/\)$/{ s//\1/; q; }
5356 /^X\(\/\).*/{ s//\1/; q; }
5357 s/.*/./; q'`
5358 done
5359 test ! -n "$as_dirs" || mkdir $as_dirs
5360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5361 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5362 { (exit 1); exit 1; }; }; }
5363
5364 ac_builddir=.
5365
5366 if test "$ac_dir" != .; then
5367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5368 # A "../" for each directory in $ac_dir_suffix.
5369 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5370 else
5371 ac_dir_suffix= ac_top_builddir=
5372 fi
5373
5374 case $srcdir in
5375 .) # No --srcdir option. We are building in place.
5376 ac_srcdir=.
5377 if test -z "$ac_top_builddir"; then
5378 ac_top_srcdir=.
5379 else
5380 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5381 fi ;;
5382 [\\/]* | ?:[\\/]* ) # Absolute path.
5383 ac_srcdir=$srcdir$ac_dir_suffix;
5384 ac_top_srcdir=$srcdir ;;
5385 *) # Relative path.
5386 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5387 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5388 esac
5389 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5390 # absolute.
5391 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5392 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5393 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5394 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5395
5396
5397
5398 if test x"$ac_file" != x-; then
5399 { echo "$as_me:$LINENO: creating $ac_file" >&5
5400 echo "$as_me: creating $ac_file" >&6;}
5401 rm -f "$ac_file"
5402 fi
5403 # Let's still pretend it is `configure' which instantiates (i.e., don't
5404 # use $as_me), people would be surprised to read:
5405 # /* config.h. Generated by config.status. */
5406 if test x"$ac_file" = x-; then
5407 configure_input=
5408 else
5409 configure_input="$ac_file. "
5410 fi
5411 configure_input=$configure_input"Generated from `echo $ac_file_in |
5412 sed 's,.*/,,'` by configure."
5413
5414 # First look for the input files in the build tree, otherwise in the
5415 # src tree.
5416 ac_file_inputs=`IFS=:
5417 for f in $ac_file_in; do
5418 case $f in
5419 -) echo $tmp/stdin ;;
5420 [\\/$]*)
5421 # Absolute (can't be DOS-style, as IFS=:)
5422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5423 echo "$as_me: error: cannot find input file: $f" >&2;}
5424 { (exit 1); exit 1; }; }
5425 echo $f;;
5426 *) # Relative
5427 if test -f "$f"; then
5428 # Build tree
5429 echo $f
5430 elif test -f "$srcdir/$f"; then
5431 # Source tree
5432 echo $srcdir/$f
5433 else
5434 # /dev/null tree
5435 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5436 echo "$as_me: error: cannot find input file: $f" >&2;}
5437 { (exit 1); exit 1; }; }
5438 fi;;
5439 esac
5440 done` || { (exit 1); exit 1; }
5441 _ACEOF
5442 cat >>$CONFIG_STATUS <<_ACEOF
5443 sed "$ac_vpsub
5444 $extrasub
5445 _ACEOF
5446 cat >>$CONFIG_STATUS <<\_ACEOF
5447 :t
5448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5449 s,@configure_input@,$configure_input,;t t
5450 s,@srcdir@,$ac_srcdir,;t t
5451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5452 s,@top_srcdir@,$ac_top_srcdir,;t t
5453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5454 s,@builddir@,$ac_builddir,;t t
5455 s,@abs_builddir@,$ac_abs_builddir,;t t
5456 s,@top_builddir@,$ac_top_builddir,;t t
5457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5458 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5459 rm -f $tmp/stdin
5460 if test x"$ac_file" != x-; then
5461 mv $tmp/out $ac_file
5462 else
5463 cat $tmp/out
5464 rm -f $tmp/out
5465 fi
5466
5467 done
5468 _ACEOF
5469 cat >>$CONFIG_STATUS <<\_ACEOF
5470
5471 #
5472 # CONFIG_HEADER section.
5473 #
5474
5475 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5476 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5477 #
5478 # ac_d sets the value in "#define NAME VALUE" lines.
5479 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5480 ac_dB='[ ].*$,\1#\2'
5481 ac_dC=' '
5482 ac_dD=',;t'
5483 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5484 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5485 ac_uB='$,\1#\2define\3'
5486 ac_uC=' '
5487 ac_uD=',;t'
5488
5489 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5490 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5491 case $ac_file in
5492 - | *:- | *:-:* ) # input from stdin
5493 cat >$tmp/stdin
5494 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5495 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5496 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5497 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5498 * ) ac_file_in=$ac_file.in ;;
5499 esac
5500
5501 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5502 echo "$as_me: creating $ac_file" >&6;}
5503
5504 # First look for the input files in the build tree, otherwise in the
5505 # src tree.
5506 ac_file_inputs=`IFS=:
5507 for f in $ac_file_in; do
5508 case $f in
5509 -) echo $tmp/stdin ;;
5510 [\\/$]*)
5511 # Absolute (can't be DOS-style, as IFS=:)
5512 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5513 echo "$as_me: error: cannot find input file: $f" >&2;}
5514 { (exit 1); exit 1; }; }
5515 echo $f;;
5516 *) # Relative
5517 if test -f "$f"; then
5518 # Build tree
5519 echo $f
5520 elif test -f "$srcdir/$f"; then
5521 # Source tree
5522 echo $srcdir/$f
5523 else
5524 # /dev/null tree
5525 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5526 echo "$as_me: error: cannot find input file: $f" >&2;}
5527 { (exit 1); exit 1; }; }
5528 fi;;
5529 esac
5530 done` || { (exit 1); exit 1; }
5531 # Remove the trailing spaces.
5532 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5533
5534 _ACEOF
5535
5536 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5537 # `conftest.undefs', that substitutes the proper values into
5538 # config.h.in to produce config.h. The first handles `#define'
5539 # templates, and the second `#undef' templates.
5540 # And first: Protect against being on the right side of a sed subst in
5541 # config.status. Protect against being in an unquoted here document
5542 # in config.status.
5543 rm -f conftest.defines conftest.undefs
5544 # Using a here document instead of a string reduces the quoting nightmare.
5545 # Putting comments in sed scripts is not portable.
5546 #
5547 # `end' is used to avoid that the second main sed command (meant for
5548 # 0-ary CPP macros) applies to n-ary macro definitions.
5549 # See the Autoconf documentation for `clear'.
5550 cat >confdef2sed.sed <<\_ACEOF
5551 s/[\\&,]/\\&/g
5552 s,[\\$`],\\&,g
5553 t clear
5554 : clear
5555 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5556 t end
5557 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5558 : end
5559 _ACEOF
5560 # If some macros were called several times there might be several times
5561 # the same #defines, which is useless. Nevertheless, we may not want to
5562 # sort them, since we want the *last* AC-DEFINE to be honored.
5563 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5564 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5565 rm -f confdef2sed.sed
5566
5567 # This sed command replaces #undef with comments. This is necessary, for
5568 # example, in the case of _POSIX_SOURCE, which is predefined and required
5569 # on some systems where configure will not decide to define it.
5570 cat >>conftest.undefs <<\_ACEOF
5571 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5572 _ACEOF
5573
5574 # Break up conftest.defines because some shells have a limit on the size
5575 # of here documents, and old seds have small limits too (100 cmds).
5576 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5577 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5578 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5579 echo ' :' >>$CONFIG_STATUS
5580 rm -f conftest.tail
5581 while grep . conftest.defines >/dev/null
5582 do
5583 # Write a limited-size here document to $tmp/defines.sed.
5584 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5585 # Speed up: don't consider the non `#define' lines.
5586 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5587 # Work around the forget-to-reset-the-flag bug.
5588 echo 't clr' >>$CONFIG_STATUS
5589 echo ': clr' >>$CONFIG_STATUS
5590 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5591 echo 'CEOF
5592 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5593 rm -f $tmp/in
5594 mv $tmp/out $tmp/in
5595 ' >>$CONFIG_STATUS
5596 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5597 rm -f conftest.defines
5598 mv conftest.tail conftest.defines
5599 done
5600 rm -f conftest.defines
5601 echo ' fi # grep' >>$CONFIG_STATUS
5602 echo >>$CONFIG_STATUS
5603
5604 # Break up conftest.undefs because some shells have a limit on the size
5605 # of here documents, and old seds have small limits too (100 cmds).
5606 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5607 rm -f conftest.tail
5608 while grep . conftest.undefs >/dev/null
5609 do
5610 # Write a limited-size here document to $tmp/undefs.sed.
5611 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5612 # Speed up: don't consider the non `#undef'
5613 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5614 # Work around the forget-to-reset-the-flag bug.
5615 echo 't clr' >>$CONFIG_STATUS
5616 echo ': clr' >>$CONFIG_STATUS
5617 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5618 echo 'CEOF
5619 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5620 rm -f $tmp/in
5621 mv $tmp/out $tmp/in
5622 ' >>$CONFIG_STATUS
5623 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5624 rm -f conftest.undefs
5625 mv conftest.tail conftest.undefs
5626 done
5627 rm -f conftest.undefs
5628
5629 cat >>$CONFIG_STATUS <<\_ACEOF
5630 # Let's still pretend it is `configure' which instantiates (i.e., don't
5631 # use $as_me), people would be surprised to read:
5632 # /* config.h. Generated by config.status. */
5633 if test x"$ac_file" = x-; then
5634 echo "/* Generated by configure. */" >$tmp/config.h
5635 else
5636 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5637 fi
5638 cat $tmp/in >>$tmp/config.h
5639 rm -f $tmp/in
5640 if test x"$ac_file" != x-; then
5641 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5642 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5643 echo "$as_me: $ac_file is unchanged" >&6;}
5644 else
5645 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5647 X"$ac_file" : 'X\(//\)[^/]' \| \
5648 X"$ac_file" : 'X\(//\)$' \| \
5649 X"$ac_file" : 'X\(/\)' \| \
5650 . : '\(.\)' 2>/dev/null ||
5651 echo X"$ac_file" |
5652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5654 /^X\(\/\/\)$/{ s//\1/; q; }
5655 /^X\(\/\).*/{ s//\1/; q; }
5656 s/.*/./; q'`
5657 { if $as_mkdir_p; then
5658 mkdir -p "$ac_dir"
5659 else
5660 as_dir="$ac_dir"
5661 as_dirs=
5662 while test ! -d "$as_dir"; do
5663 as_dirs="$as_dir $as_dirs"
5664 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5665 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5666 X"$as_dir" : 'X\(//\)[^/]' \| \
5667 X"$as_dir" : 'X\(//\)$' \| \
5668 X"$as_dir" : 'X\(/\)' \| \
5669 . : '\(.\)' 2>/dev/null ||
5670 echo X"$as_dir" |
5671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5673 /^X\(\/\/\)$/{ s//\1/; q; }
5674 /^X\(\/\).*/{ s//\1/; q; }
5675 s/.*/./; q'`
5676 done
5677 test ! -n "$as_dirs" || mkdir $as_dirs
5678 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5679 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5680 { (exit 1); exit 1; }; }; }
5681
5682 rm -f $ac_file
5683 mv $tmp/config.h $ac_file
5684 fi
5685 else
5686 cat $tmp/config.h
5687 rm -f $tmp/config.h
5688 fi
5689 done
5690 _ACEOF
5691
5692 cat >>$CONFIG_STATUS <<\_ACEOF
5693
5694 { (exit 0); exit 0; }
5695 _ACEOF
5696 chmod +x $CONFIG_STATUS
5697 ac_clean_files=$ac_clean_files_save
5698
5699
5700 # configure is writing to config.log, and then calls config.status.
5701 # config.status does its own redirection, appending to config.log.
5702 # Unfortunately, on DOS this fails, as config.log is still kept open
5703 # by configure, so config.status won't be able to write to it; its
5704 # output is simply discarded. So we exec the FD to /dev/null,
5705 # effectively closing config.log, so it can be properly (re)opened and
5706 # appended to by config.status. When coming back to configure, we
5707 # need to make the FD available again.
5708 if test "$no_create" != yes; then
5709 ac_cs_success=:
5710 ac_config_status_args=
5711 test "$silent" = yes &&
5712 ac_config_status_args="$ac_config_status_args --quiet"
5713 exec 5>/dev/null
5714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5715 exec 5>>config.log
5716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5717 # would make configure fail if this is the last instruction.
5718 $ac_cs_success || { (exit 1); exit 1; }
5719 fi
5720
5721
5722 echo "Configure done. Run 'make' to build CvsGraph"
5723

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0