/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


Revision 1.6 - (hide annotations)
Wed Nov 21 08:25:04 2001 UTC (15 years, 10 months ago) by bertho
Branch: MAIN
Changes since 1.5: +131 -95 lines
Update configure to check for getopt.h which does not exist on Solaris 8.
1 bertho 1.1 #! /bin/sh
2    
3     # Guess values for system-dependent variables and create Makefiles.
4     # Generated automatically using autoconf version 2.13
5     # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6     #
7     # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9    
10     # Defaults:
11     ac_help=
12     ac_default_prefix=/usr/local
13     # Any additions from configure.in:
14     ac_help="$ac_help
15 bertho 1.4 --with-gd-inc=DIR location of the gd includes"
16 bertho 1.1 ac_help="$ac_help
17 bertho 1.4 --with-gd-lib=DIR location of the gd library"
18     ac_help="$ac_help
19     --with-z-inc=DIR location of zlib includes"
20     ac_help="$ac_help
21     --with-z-lib=DIR location of zlib library"
22 bertho 1.1 ac_help="$ac_help
23 bertho 1.5 --with-png-inc=DIR location of png includes"
24     ac_help="$ac_help
25     --with-png-lib=DIR location of png library"
26     ac_help="$ac_help
27     --with-jpeg-inc=DIR location of jpeg includes"
28     ac_help="$ac_help
29     --with-jpeg-lib=DIR location of jpeg library"
30 bertho 1.3 ac_help="$ac_help
31     --disable-speed Turn off lex table optimization reducing speed and size of executable"
32 bertho 1.1
33     # Initialize some variables set by options.
34     # The variables have the same names as the options, with
35     # dashes changed to underlines.
36     build=NONE
37     cache_file=./config.cache
38     exec_prefix=NONE
39     host=NONE
40     no_create=
41     nonopt=NONE
42     no_recursion=
43     prefix=NONE
44     program_prefix=NONE
45     program_suffix=NONE
46     program_transform_name=s,x,x,
47     silent=
48     site=
49     srcdir=
50     target=NONE
51     verbose=
52     x_includes=NONE
53     x_libraries=NONE
54     bindir='${exec_prefix}/bin'
55     sbindir='${exec_prefix}/sbin'
56     libexecdir='${exec_prefix}/libexec'
57     datadir='${prefix}/share'
58     sysconfdir='${prefix}/etc'
59     sharedstatedir='${prefix}/com'
60     localstatedir='${prefix}/var'
61     libdir='${exec_prefix}/lib'
62     includedir='${prefix}/include'
63     oldincludedir='/usr/include'
64     infodir='${prefix}/info'
65     mandir='${prefix}/man'
66    
67     # Initialize some other variables.
68     subdirs=
69     MFLAGS= MAKEFLAGS=
70     SHELL=${CONFIG_SHELL-/bin/sh}
71     # Maximum number of lines to put in a shell here document.
72     ac_max_here_lines=12
73    
74     ac_prev=
75     for ac_option
76     do
77    
78     # If the previous option needs an argument, assign it.
79     if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83     fi
84    
85     case "$ac_option" in
86     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87     *) ac_optarg= ;;
88     esac
89    
90     # Accept the important Cygnus configure options, so we can diagnose typos.
91    
92     case "$ac_option" in
93    
94     -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98    
99     -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103    
104     -cache-file | --cache-file | --cache-fil | --cache-fi \
105     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110    
111     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114     | --da=*)
115     datadir="$ac_optarg" ;;
116    
117     -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125    
126     -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134     *=*) ;;
135     *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138    
139     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141     | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145     | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147    
148     -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151    
152     -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156     Usage: configure [options] [host]
157     Options: [defaults in brackets after descriptions]
158     Configuration:
159     --cache-file=FILE cache test results in FILE
160     --help print this message
161     --no-create do not create output files
162     --quiet, --silent do not print \`checking...' messages
163     --version print the version of autoconf that created configure
164     Directory and file names:
165     --prefix=PREFIX install architecture-independent files in PREFIX
166     [$ac_default_prefix]
167     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168     [same as prefix]
169     --bindir=DIR user executables in DIR [EPREFIX/bin]
170     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172     --datadir=DIR read-only architecture-independent data in DIR
173     [PREFIX/share]
174     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175     --sharedstatedir=DIR modifiable architecture-independent data in DIR
176     [PREFIX/com]
177     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179     --includedir=DIR C header files in DIR [PREFIX/include]
180     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181     --infodir=DIR info documentation in DIR [PREFIX/info]
182     --mandir=DIR man documentation in DIR [PREFIX/man]
183     --srcdir=DIR find the sources in DIR [configure dir or ..]
184     --program-prefix=PREFIX prepend PREFIX to installed program names
185     --program-suffix=SUFFIX append SUFFIX to installed program names
186     --program-transform-name=PROGRAM
187     run sed PROGRAM on installed program names
188     EOF
189     cat << EOF
190     Host type:
191     --build=BUILD configure for building on BUILD [BUILD=HOST]
192     --host=HOST configure for HOST [guessed]
193     --target=TARGET configure for TARGET [TARGET=HOST]
194     Features and packages:
195     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199     --x-includes=DIR X include files are in DIR
200     --x-libraries=DIR X library files are in DIR
201     EOF
202     if test -n "$ac_help"; then
203     echo "--enable and --with options recognized:$ac_help"
204     fi
205     exit 0 ;;
206    
207     -host | --host | --hos | --ho)
208     ac_prev=host ;;
209     -host=* | --host=* | --hos=* | --ho=*)
210     host="$ac_optarg" ;;
211    
212     -includedir | --includedir | --includedi | --included | --include \
213     | --includ | --inclu | --incl | --inc)
214     ac_prev=includedir ;;
215     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216     | --includ=* | --inclu=* | --incl=* | --inc=*)
217     includedir="$ac_optarg" ;;
218    
219     -infodir | --infodir | --infodi | --infod | --info | --inf)
220     ac_prev=infodir ;;
221     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222     infodir="$ac_optarg" ;;
223    
224     -libdir | --libdir | --libdi | --libd)
225     ac_prev=libdir ;;
226     -libdir=* | --libdir=* | --libdi=* | --libd=*)
227     libdir="$ac_optarg" ;;
228    
229     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230     | --libexe | --libex | --libe)
231     ac_prev=libexecdir ;;
232     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233     | --libexe=* | --libex=* | --libe=*)
234     libexecdir="$ac_optarg" ;;
235    
236     -localstatedir | --localstatedir | --localstatedi | --localstated \
237     | --localstate | --localstat | --localsta | --localst \
238     | --locals | --local | --loca | --loc | --lo)
239     ac_prev=localstatedir ;;
240     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243     localstatedir="$ac_optarg" ;;
244    
245     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246     ac_prev=mandir ;;
247     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248     mandir="$ac_optarg" ;;
249    
250     -nfp | --nfp | --nf)
251     # Obsolete; use --without-fp.
252     with_fp=no ;;
253    
254     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255     | --no-cr | --no-c)
256     no_create=yes ;;
257    
258     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260     no_recursion=yes ;;
261    
262     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264     | --oldin | --oldi | --old | --ol | --o)
265     ac_prev=oldincludedir ;;
266     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269     oldincludedir="$ac_optarg" ;;
270    
271     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272     ac_prev=prefix ;;
273     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274     prefix="$ac_optarg" ;;
275    
276     -program-prefix | --program-prefix | --program-prefi | --program-pref \
277     | --program-pre | --program-pr | --program-p)
278     ac_prev=program_prefix ;;
279     -program-prefix=* | --program-prefix=* | --program-prefi=* \
280     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281     program_prefix="$ac_optarg" ;;
282    
283     -program-suffix | --program-suffix | --program-suffi | --program-suff \
284     | --program-suf | --program-su | --program-s)
285     ac_prev=program_suffix ;;
286     -program-suffix=* | --program-suffix=* | --program-suffi=* \
287     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288     program_suffix="$ac_optarg" ;;
289    
290     -program-transform-name | --program-transform-name \
291     | --program-transform-nam | --program-transform-na \
292     | --program-transform-n | --program-transform- \
293     | --program-transform | --program-transfor \
294     | --program-transfo | --program-transf \
295     | --program-trans | --program-tran \
296     | --progr-tra | --program-tr | --program-t)
297     ac_prev=program_transform_name ;;
298     -program-transform-name=* | --program-transform-name=* \
299     | --program-transform-nam=* | --program-transform-na=* \
300     | --program-transform-n=* | --program-transform-=* \
301     | --program-transform=* | --program-transfor=* \
302     | --program-transfo=* | --program-transf=* \
303     | --program-trans=* | --program-tran=* \
304     | --progr-tra=* | --program-tr=* | --program-t=*)
305     program_transform_name="$ac_optarg" ;;
306    
307     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308     | -silent | --silent | --silen | --sile | --sil)
309     silent=yes ;;
310    
311     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312     ac_prev=sbindir ;;
313     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314     | --sbi=* | --sb=*)
315     sbindir="$ac_optarg" ;;
316    
317     -sharedstatedir | --sharedstatedir | --sharedstatedi \
318     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319     | --sharedst | --shareds | --shared | --share | --shar \
320     | --sha | --sh)
321     ac_prev=sharedstatedir ;;
322     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325     | --sha=* | --sh=*)
326     sharedstatedir="$ac_optarg" ;;
327    
328     -site | --site | --sit)
329     ac_prev=site ;;
330     -site=* | --site=* | --sit=*)
331     site="$ac_optarg" ;;
332    
333     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337    
338     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339     | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344    
345     -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349    
350     -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352    
353     -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.13"
355     exit 0 ;;
356    
357     -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365     *=*) ;;
366     *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369    
370     -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378    
379     --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382    
383     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384     | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389    
390     -x-libraries | --x-libraries | --x-librarie | --x-librari \
391     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396    
397     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399    
400     *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402     echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409    
410     esac
411     done
412    
413     if test -n "$ac_prev"; then
414     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415     fi
416    
417     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418    
419     # File descriptor usage:
420     # 0 standard input
421     # 1 file creation
422     # 2 errors and warnings
423     # 3 some systems may open it to /dev/tty
424     # 4 used on the Kubota Titan
425     # 6 checking for... messages and results
426     # 5 compiler messages saved in config.log
427     if test "$silent" = yes; then
428     exec 6>/dev/null
429     else
430     exec 6>&1
431     fi
432     exec 5>./config.log
433    
434     echo "\
435     This file contains any messages produced by compilers while
436     running configure, to aid debugging if configure makes a mistake.
437     " 1>&5
438    
439     # Strip out --no-create and --no-recursion so they do not pile up.
440     # Also quote any args containing shell metacharacters.
441     ac_configure_args=
442     for ac_arg
443     do
444     case "$ac_arg" in
445     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446     | --no-cr | --no-c) ;;
447     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452     esac
453     done
454    
455     # NLS nuisances.
456     # Only set these to C if already set. These must not be set unconditionally
457     # because not all systems understand e.g. LANG=C (notably SCO).
458     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459     # Non-C LC_CTYPE values break the ctype check.
460     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464    
465     # confdefs.h avoids OS command line length limits that DEFS can exceed.
466     rm -rf conftest* confdefs.h
467     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468     echo > confdefs.h
469    
470     # A filename unique to this package, relative to the directory that
471     # configure is in, which we can look for to find out if srcdir is correct.
472     ac_unique_file=cvsgraph.c
473    
474     # Find the source files, if location was not specified.
475     if test -z "$srcdir"; then
476     ac_srcdir_defaulted=yes
477     # Try the directory containing this script, then its parent.
478     ac_prog=$0
479     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481     srcdir=$ac_confdir
482     if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484     fi
485     else
486     ac_srcdir_defaulted=no
487     fi
488     if test ! -r $srcdir/$ac_unique_file; then
489     if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491     else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493     fi
494     fi
495     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496    
497     # Prefer explicitly selected file to automatically selected ones.
498     if test -z "$CONFIG_SITE"; then
499     if test "x$prefix" != xNONE; then
500     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501     else
502     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503     fi
504     fi
505     for ac_site_file in $CONFIG_SITE; do
506     if test -r "$ac_site_file"; then
507     echo "loading site script $ac_site_file"
508     . "$ac_site_file"
509     fi
510     done
511    
512     if test -r "$cache_file"; then
513     echo "loading cache $cache_file"
514     . $cache_file
515     else
516     echo "creating cache $cache_file"
517     > $cache_file
518     fi
519    
520     ac_ext=c
521     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522     ac_cpp='$CPP $CPPFLAGS'
523     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525     cross_compiling=$ac_cv_prog_cc_cross
526    
527     ac_exeext=
528     ac_objext=o
529     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532     ac_n= ac_c='
533     ' ac_t=' '
534     else
535     ac_n=-n ac_c= ac_t=
536     fi
537     else
538     ac_n= ac_c='\c' ac_t=
539     fi
540    
541    
542    
543 bertho 1.2
544 bertho 1.1 # Extract the first word of "gcc", so it can be a program name with args.
545     set dummy gcc; ac_word=$2
546     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547 bertho 1.5 echo "configure:548: checking for $ac_word" >&5
548 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549     echo $ac_n "(cached) $ac_c" 1>&6
550     else
551     if test -n "$CC"; then
552     ac_cv_prog_CC="$CC" # Let the user override the test.
553     else
554     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
555     ac_dummy="$PATH"
556     for ac_dir in $ac_dummy; do
557     test -z "$ac_dir" && ac_dir=.
558     if test -f $ac_dir/$ac_word; then
559     ac_cv_prog_CC="gcc"
560     break
561     fi
562     done
563     IFS="$ac_save_ifs"
564     fi
565     fi
566     CC="$ac_cv_prog_CC"
567     if test -n "$CC"; then
568     echo "$ac_t""$CC" 1>&6
569     else
570     echo "$ac_t""no" 1>&6
571     fi
572    
573     if test -z "$CC"; then
574     # Extract the first word of "cc", so it can be a program name with args.
575     set dummy cc; ac_word=$2
576     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 bertho 1.5 echo "configure:578: checking for $ac_word" >&5
578 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579     echo $ac_n "(cached) $ac_c" 1>&6
580     else
581     if test -n "$CC"; then
582     ac_cv_prog_CC="$CC" # Let the user override the test.
583     else
584     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585     ac_prog_rejected=no
586     ac_dummy="$PATH"
587     for ac_dir in $ac_dummy; do
588     test -z "$ac_dir" && ac_dir=.
589     if test -f $ac_dir/$ac_word; then
590     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
591     ac_prog_rejected=yes
592     continue
593     fi
594     ac_cv_prog_CC="cc"
595     break
596     fi
597     done
598     IFS="$ac_save_ifs"
599     if test $ac_prog_rejected = yes; then
600     # We found a bogon in the path, so make sure we never use it.
601     set dummy $ac_cv_prog_CC
602     shift
603     if test $# -gt 0; then
604     # We chose a different compiler from the bogus one.
605     # However, it has the same basename, so the bogon will be chosen
606     # first if we set CC to just the basename; use the full file name.
607     shift
608     set dummy "$ac_dir/$ac_word" "$@"
609     shift
610     ac_cv_prog_CC="$@"
611     fi
612     fi
613     fi
614     fi
615     CC="$ac_cv_prog_CC"
616     if test -n "$CC"; then
617     echo "$ac_t""$CC" 1>&6
618     else
619     echo "$ac_t""no" 1>&6
620     fi
621    
622     if test -z "$CC"; then
623     case "`uname -s`" in
624     *win32* | *WIN32*)
625     # Extract the first word of "cl", so it can be a program name with args.
626     set dummy cl; ac_word=$2
627     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 bertho 1.5 echo "configure:629: checking for $ac_word" >&5
629 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630     echo $ac_n "(cached) $ac_c" 1>&6
631     else
632     if test -n "$CC"; then
633     ac_cv_prog_CC="$CC" # Let the user override the test.
634     else
635     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636     ac_dummy="$PATH"
637     for ac_dir in $ac_dummy; do
638     test -z "$ac_dir" && ac_dir=.
639     if test -f $ac_dir/$ac_word; then
640     ac_cv_prog_CC="cl"
641     break
642     fi
643     done
644     IFS="$ac_save_ifs"
645     fi
646     fi
647     CC="$ac_cv_prog_CC"
648     if test -n "$CC"; then
649     echo "$ac_t""$CC" 1>&6
650     else
651     echo "$ac_t""no" 1>&6
652     fi
653     ;;
654     esac
655     fi
656     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657     fi
658    
659     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
660 bertho 1.5 echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661 bertho 1.1
662     ac_ext=c
663     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
664     ac_cpp='$CPP $CPPFLAGS'
665     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
666     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
667     cross_compiling=$ac_cv_prog_cc_cross
668    
669     cat > conftest.$ac_ext << EOF
670    
671 bertho 1.5 #line 672 "configure"
672 bertho 1.1 #include "confdefs.h"
673    
674     main(){return(0);}
675     EOF
676 bertho 1.5 if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677 bertho 1.1 ac_cv_prog_cc_works=yes
678     # If we can't run a trivial program, we are probably using a cross compiler.
679     if (./conftest; exit) 2>/dev/null; then
680     ac_cv_prog_cc_cross=no
681     else
682     ac_cv_prog_cc_cross=yes
683     fi
684     else
685     echo "configure: failed program was:" >&5
686     cat conftest.$ac_ext >&5
687     ac_cv_prog_cc_works=no
688     fi
689     rm -fr conftest*
690     ac_ext=c
691     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
692     ac_cpp='$CPP $CPPFLAGS'
693     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
694     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
695     cross_compiling=$ac_cv_prog_cc_cross
696    
697     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
698     if test $ac_cv_prog_cc_works = no; then
699     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
700     fi
701     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
702 bertho 1.5 echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703 bertho 1.1 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704     cross_compiling=$ac_cv_prog_cc_cross
705    
706     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
707 bertho 1.5 echo "configure:708: checking whether we are using GNU C" >&5
708 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709     echo $ac_n "(cached) $ac_c" 1>&6
710     else
711     cat > conftest.c <<EOF
712     #ifdef __GNUC__
713     yes;
714     #endif
715     EOF
716 bertho 1.5 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717 bertho 1.1 ac_cv_prog_gcc=yes
718     else
719     ac_cv_prog_gcc=no
720     fi
721     fi
722    
723     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
724    
725     if test $ac_cv_prog_gcc = yes; then
726     GCC=yes
727     else
728     GCC=
729     fi
730    
731     ac_test_CFLAGS="${CFLAGS+set}"
732     ac_save_CFLAGS="$CFLAGS"
733     CFLAGS=
734     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
735 bertho 1.5 echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737     echo $ac_n "(cached) $ac_c" 1>&6
738     else
739     echo 'void f(){}' > conftest.c
740     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741     ac_cv_prog_cc_g=yes
742     else
743     ac_cv_prog_cc_g=no
744     fi
745     rm -f conftest*
746    
747     fi
748    
749     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
750     if test "$ac_test_CFLAGS" = set; then
751     CFLAGS="$ac_save_CFLAGS"
752     elif test $ac_cv_prog_cc_g = yes; then
753     if test "$GCC" = yes; then
754     CFLAGS="-g -O2"
755     else
756     CFLAGS="-g"
757     fi
758     else
759     if test "$GCC" = yes; then
760     CFLAGS="-O2"
761     else
762     CFLAGS=
763     fi
764     fi
765    
766     # Extract the first word of "flex", so it can be a program name with args.
767     set dummy flex; ac_word=$2
768     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 bertho 1.5 echo "configure:770: checking for $ac_word" >&5
770 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
771     echo $ac_n "(cached) $ac_c" 1>&6
772     else
773     if test -n "$LEX"; then
774     ac_cv_prog_LEX="$LEX" # Let the user override the test.
775     else
776     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
777     ac_dummy="$PATH"
778     for ac_dir in $ac_dummy; do
779     test -z "$ac_dir" && ac_dir=.
780     if test -f $ac_dir/$ac_word; then
781     ac_cv_prog_LEX="flex"
782     break
783     fi
784     done
785     IFS="$ac_save_ifs"
786     test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
787     fi
788     fi
789     LEX="$ac_cv_prog_LEX"
790     if test -n "$LEX"; then
791     echo "$ac_t""$LEX" 1>&6
792     else
793     echo "$ac_t""no" 1>&6
794     fi
795    
796     if test -z "$LEXLIB"
797     then
798     case "$LEX" in
799     flex*) ac_lib=fl ;;
800     *) ac_lib=l ;;
801     esac
802     echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
803 bertho 1.5 echo "configure:804: checking for yywrap in -l$ac_lib" >&5
804 bertho 1.1 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
805     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
806     echo $ac_n "(cached) $ac_c" 1>&6
807     else
808     ac_save_LIBS="$LIBS"
809     LIBS="-l$ac_lib $LIBS"
810     cat > conftest.$ac_ext <<EOF
811 bertho 1.5 #line 812 "configure"
812 bertho 1.1 #include "confdefs.h"
813     /* Override any gcc2 internal prototype to avoid an error. */
814     /* We use char because int might match the return type of a gcc2
815     builtin and then its argument prototype would still apply. */
816     char yywrap();
817    
818     int main() {
819     yywrap()
820     ; return 0; }
821     EOF
822 bertho 1.5 if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
823 bertho 1.1 rm -rf conftest*
824     eval "ac_cv_lib_$ac_lib_var=yes"
825     else
826     echo "configure: failed program was:" >&5
827     cat conftest.$ac_ext >&5
828     rm -rf conftest*
829     eval "ac_cv_lib_$ac_lib_var=no"
830     fi
831     rm -f conftest*
832     LIBS="$ac_save_LIBS"
833    
834     fi
835     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
836     echo "$ac_t""yes" 1>&6
837     LEXLIB="-l$ac_lib"
838     else
839     echo "$ac_t""no" 1>&6
840     fi
841    
842     fi
843    
844     for ac_prog in 'bison -y' byacc
845     do
846     # Extract the first word of "$ac_prog", so it can be a program name with args.
847     set dummy $ac_prog; ac_word=$2
848     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 bertho 1.5 echo "configure:850: checking for $ac_word" >&5
850 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
851     echo $ac_n "(cached) $ac_c" 1>&6
852     else
853     if test -n "$YACC"; then
854     ac_cv_prog_YACC="$YACC" # Let the user override the test.
855     else
856     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
857     ac_dummy="$PATH"
858     for ac_dir in $ac_dummy; do
859     test -z "$ac_dir" && ac_dir=.
860     if test -f $ac_dir/$ac_word; then
861     ac_cv_prog_YACC="$ac_prog"
862     break
863     fi
864     done
865     IFS="$ac_save_ifs"
866     fi
867     fi
868     YACC="$ac_cv_prog_YACC"
869     if test -n "$YACC"; then
870     echo "$ac_t""$YACC" 1>&6
871     else
872     echo "$ac_t""no" 1>&6
873     fi
874    
875     test -n "$YACC" && break
876     done
877     test -n "$YACC" || YACC="yacc"
878    
879    
880 bertho 1.3 LEXFLAGS="-8"
881     LEXSPEED="-Cf"
882 bertho 1.5 INCL=""
883 bertho 1.3
884 bertho 1.5 # Check whether --with-gd-inc or --without-gd-inc was given.
885     if test "${with_gd_inc+set}" = set; then
886     withval="$with_gd_inc"
887     INCL="${INCL} -I${withval}"
888 bertho 1.4
889     fi
890    
891    
892 bertho 1.5 # Check whether --with-gd-lib or --without-gd-lib was given.
893     if test "${with_gd_lib+set}" = set; then
894     withval="$with_gd_lib"
895     LIBS="${LIBS} -L${withval}"
896 bertho 1.1
897     fi
898    
899    
900 bertho 1.5 LIBS="$LIBS -lgd"
901    
902     # Check whether --with-z-inc or --without-z-inc was given.
903     if test "${with_z_inc+set}" = set; then
904     withval="$with_z_inc"
905     INCL="${INCL} -I${withval}"
906 bertho 1.4
907     fi
908    
909    
910 bertho 1.5 # Check whether --with-z-lib or --without-z-lib was given.
911     if test "${with_z_lib+set}" = set; then
912     withval="$with_z_lib"
913     LIBS="${LIBS} -L${withval} -lz"
914 bertho 1.1
915     fi
916    
917    
918 bertho 1.5 # Check whether --with-png-inc or --without-png-inc was given.
919     if test "${with_png_inc+set}" = set; then
920     withval="$with_png_inc"
921     INCL="${INCL} -I${withval}"
922    
923     fi
924    
925    
926     # Check whether --with-png-lib or --without-png-lib was given.
927     if test "${with_png_lib+set}" = set; then
928     withval="$with_png_lib"
929     LIBS="${LIBS} -L${withval} -lpng"
930    
931     fi
932    
933    
934     # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
935     if test "${with_jpeg_inc+set}" = set; then
936     withval="$with_jpeg_inc"
937     INCL="${INCL} -I${withval}"
938    
939     fi
940    
941    
942     # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
943     if test "${with_jpeg_lib+set}" = set; then
944     withval="$with_jpeg_lib"
945     LIBS="${LIBS} -L${withval} -ljpeg"
946 bertho 1.1
947     fi
948    
949    
950 bertho 1.3 # Check whether --enable-speed or --disable-speed was given.
951     if test "${enable_speed+set}" = set; then
952     enableval="$enable_speed"
953     if test "$enableval" = "no"; then LEXSPEED=""; fi
954     fi
955    
956    
957     if test "x$LEXSPEED" != "x"
958     then
959     LEXFLAGS="$LEXFLAGS $LEXSPEED"
960     fi
961    
962 bertho 1.5 CPPFLAGS="$CPPFLAGS $INCL"
963     CFLAGS="$CFLAGS $INCL"
964 bertho 1.1
965     if test "x${GCC}" = "xyes"
966     then
967     CFLAGS="$CFLAGS -Wall"
968     echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
969 bertho 1.5 echo "configure:970: checking "for gcc strength-reduce bug"" >&5
970 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
971     echo $ac_n "(cached) $ac_c" 1>&6
972     else
973     if test "$cross_compiling" = yes; then
974     ac_cv_c_gcc_strength_bug="yes"
975     else
976     cat > conftest.$ac_ext <<EOF
977 bertho 1.5 #line 978 "configure"
978 bertho 1.1 #include "confdefs.h"
979    
980     int main(void) {
981     static int Array[3];
982     unsigned int B = 3;
983     int i;
984     for(i=0; i<B; i++) Array[i] = i - 3;
985     exit( Array[1] != -2 );
986     }
987     EOF
988 bertho 1.5 if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
989 bertho 1.1 then
990     ac_cv_c_gcc_strength_bug="no"
991     else
992     echo "configure: failed program was:" >&5
993     cat conftest.$ac_ext >&5
994     rm -fr conftest*
995     ac_cv_c_gcc_strength_bug="yes"
996     fi
997     rm -fr conftest*
998     fi
999    
1000     fi
1001    
1002     echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1003     if test "$ac_cv_c_gcc_strength_bug" = "yes"
1004     then
1005     CFLAGS="$CFLAGS -fno-strength-reduce"
1006     fi
1007     fi
1008    
1009 bertho 1.6 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010     echo "configure:1011: checking how to run the C preprocessor" >&5
1011     # On Suns, sometimes $CPP names a directory.
1012     if test -n "$CPP" && test -d "$CPP"; then
1013     CPP=
1014     fi
1015     if test -z "$CPP"; then
1016     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017     echo $ac_n "(cached) $ac_c" 1>&6
1018     else
1019     # This must be in double quotes, not single quotes, because CPP may get
1020     # substituted into the Makefile and "${CC-cc}" will confuse make.
1021     CPP="${CC-cc} -E"
1022     # On the NeXT, cc -E runs the code through the compiler's parser,
1023     # not just through cpp.
1024     cat > conftest.$ac_ext <<EOF
1025     #line 1026 "configure"
1026     #include "confdefs.h"
1027     #include <assert.h>
1028     Syntax Error
1029     EOF
1030     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031     { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032     ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1033     if test -z "$ac_err"; then
1034     :
1035     else
1036     echo "$ac_err" >&5
1037     echo "configure: failed program was:" >&5
1038     cat conftest.$ac_ext >&5
1039     rm -rf conftest*
1040     CPP="${CC-cc} -E -traditional-cpp"
1041     cat > conftest.$ac_ext <<EOF
1042     #line 1043 "configure"
1043     #include "confdefs.h"
1044     #include <assert.h>
1045     Syntax Error
1046     EOF
1047     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048     { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049     ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050     if test -z "$ac_err"; then
1051     :
1052     else
1053     echo "$ac_err" >&5
1054     echo "configure: failed program was:" >&5
1055     cat conftest.$ac_ext >&5
1056     rm -rf conftest*
1057     CPP="${CC-cc} -nologo -E"
1058     cat > conftest.$ac_ext <<EOF
1059     #line 1060 "configure"
1060     #include "confdefs.h"
1061     #include <assert.h>
1062     Syntax Error
1063     EOF
1064     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065     { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066     ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067     if test -z "$ac_err"; then
1068     :
1069     else
1070     echo "$ac_err" >&5
1071     echo "configure: failed program was:" >&5
1072     cat conftest.$ac_ext >&5
1073     rm -rf conftest*
1074     CPP=/lib/cpp
1075     fi
1076     rm -f conftest*
1077     fi
1078     rm -f conftest*
1079     fi
1080     rm -f conftest*
1081     ac_cv_prog_CPP="$CPP"
1082     fi
1083     CPP="$ac_cv_prog_CPP"
1084     else
1085     ac_cv_prog_CPP="$CPP"
1086     fi
1087     echo "$ac_t""$CPP" 1>&6
1088    
1089     ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1090     echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1091     echo "configure:1092: checking for getopt.h" >&5
1092     if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1093     echo $ac_n "(cached) $ac_c" 1>&6
1094     else
1095     cat > conftest.$ac_ext <<EOF
1096     #line 1097 "configure"
1097     #include "confdefs.h"
1098     #include <getopt.h>
1099     EOF
1100     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101     { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102     ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1103     if test -z "$ac_err"; then
1104     rm -rf conftest*
1105     eval "ac_cv_header_$ac_safe=yes"
1106     else
1107     echo "$ac_err" >&5
1108     echo "configure: failed program was:" >&5
1109     cat conftest.$ac_ext >&5
1110     rm -rf conftest*
1111     eval "ac_cv_header_$ac_safe=no"
1112     fi
1113     rm -f conftest*
1114     fi
1115     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1116     echo "$ac_t""yes" 1>&6
1117     cat >> confdefs.h <<\EOF
1118     #define HAVE_GETOPT_H 1
1119     EOF
1120    
1121     else
1122     echo "$ac_t""no" 1>&6
1123     fi
1124    
1125 bertho 1.1
1126     echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1127 bertho 1.6 echo "configure:1128: checking for sqrt in -lm" >&5
1128 bertho 1.1 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1129     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1130     echo $ac_n "(cached) $ac_c" 1>&6
1131     else
1132     ac_save_LIBS="$LIBS"
1133     LIBS="-lm $LIBS"
1134     cat > conftest.$ac_ext <<EOF
1135 bertho 1.6 #line 1136 "configure"
1136 bertho 1.1 #include "confdefs.h"
1137     /* Override any gcc2 internal prototype to avoid an error. */
1138     /* We use char because int might match the return type of a gcc2
1139     builtin and then its argument prototype would still apply. */
1140     char sqrt();
1141    
1142     int main() {
1143     sqrt()
1144     ; return 0; }
1145     EOF
1146 bertho 1.6 if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1147 bertho 1.1 rm -rf conftest*
1148     eval "ac_cv_lib_$ac_lib_var=yes"
1149     else
1150     echo "configure: failed program was:" >&5
1151     cat conftest.$ac_ext >&5
1152     rm -rf conftest*
1153     eval "ac_cv_lib_$ac_lib_var=no"
1154     fi
1155     rm -f conftest*
1156     LIBS="$ac_save_LIBS"
1157    
1158     fi
1159     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1160     echo "$ac_t""yes" 1>&6
1161    
1162     cat >> confdefs.h <<\EOF
1163     #define LIBM 1
1164     EOF
1165    
1166     MATHLIBS="-lm"
1167     else
1168     echo "$ac_t""no" 1>&6
1169     fi
1170    
1171    
1172     echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1173 bertho 1.6 echo "configure:1174: checking for gdImageGif in -lgd" >&5
1174 bertho 1.1 ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1175     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176     echo $ac_n "(cached) $ac_c" 1>&6
1177     else
1178     ac_save_LIBS="$LIBS"
1179     LIBS="-lgd $LIBS"
1180     cat > conftest.$ac_ext <<EOF
1181 bertho 1.6 #line 1182 "configure"
1182 bertho 1.1 #include "confdefs.h"
1183     /* Override any gcc2 internal prototype to avoid an error. */
1184     /* We use char because int might match the return type of a gcc2
1185     builtin and then its argument prototype would still apply. */
1186     char gdImageGif();
1187    
1188     int main() {
1189     gdImageGif()
1190     ; return 0; }
1191     EOF
1192 bertho 1.6 if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 bertho 1.1 rm -rf conftest*
1194     eval "ac_cv_lib_$ac_lib_var=yes"
1195     else
1196     echo "configure: failed program was:" >&5
1197     cat conftest.$ac_ext >&5
1198     rm -rf conftest*
1199     eval "ac_cv_lib_$ac_lib_var=no"
1200     fi
1201     rm -f conftest*
1202     LIBS="$ac_save_LIBS"
1203    
1204     fi
1205     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1206     echo "$ac_t""yes" 1>&6
1207    
1208 bertho 1.2 cat >> confdefs.h <<\EOF
1209     #define HAVE_IMAGE_GIF 1
1210     EOF
1211    
1212    
1213 bertho 1.1 else
1214     echo "$ac_t""no" 1>&6
1215     fi
1216    
1217     echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1218 bertho 1.6 echo "configure:1219: checking for gdImagePng in -lgd" >&5
1219 bertho 1.1 ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1220     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221     echo $ac_n "(cached) $ac_c" 1>&6
1222     else
1223     ac_save_LIBS="$LIBS"
1224 bertho 1.2 LIBS="-lgd $LIBS"
1225 bertho 1.1 cat > conftest.$ac_ext <<EOF
1226 bertho 1.6 #line 1227 "configure"
1227 bertho 1.1 #include "confdefs.h"
1228     /* Override any gcc2 internal prototype to avoid an error. */
1229     /* We use char because int might match the return type of a gcc2
1230     builtin and then its argument prototype would still apply. */
1231     char gdImagePng();
1232    
1233     int main() {
1234     gdImagePng()
1235     ; return 0; }
1236     EOF
1237 bertho 1.6 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1238 bertho 1.2 rm -rf conftest*
1239     eval "ac_cv_lib_$ac_lib_var=yes"
1240     else
1241     echo "configure: failed program was:" >&5
1242     cat conftest.$ac_ext >&5
1243     rm -rf conftest*
1244     eval "ac_cv_lib_$ac_lib_var=no"
1245     fi
1246     rm -f conftest*
1247     LIBS="$ac_save_LIBS"
1248    
1249     fi
1250     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251     echo "$ac_t""yes" 1>&6
1252    
1253     cat >> confdefs.h <<\EOF
1254     #define HAVE_IMAGE_PNG 1
1255     EOF
1256    
1257    
1258     else
1259     echo "$ac_t""no" 1>&6
1260     fi
1261    
1262     echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1263 bertho 1.6 echo "configure:1264: checking for gdImageJpeg in -lgd" >&5
1264 bertho 1.2 ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1265     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1266     echo $ac_n "(cached) $ac_c" 1>&6
1267     else
1268     ac_save_LIBS="$LIBS"
1269     LIBS="-lgd $LIBS"
1270     cat > conftest.$ac_ext <<EOF
1271 bertho 1.6 #line 1272 "configure"
1272 bertho 1.2 #include "confdefs.h"
1273     /* Override any gcc2 internal prototype to avoid an error. */
1274     /* We use char because int might match the return type of a gcc2
1275     builtin and then its argument prototype would still apply. */
1276     char gdImageJpeg();
1277    
1278     int main() {
1279     gdImageJpeg()
1280     ; return 0; }
1281     EOF
1282 bertho 1.6 if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1283 bertho 1.1 rm -rf conftest*
1284     eval "ac_cv_lib_$ac_lib_var=yes"
1285     else
1286     echo "configure: failed program was:" >&5
1287     cat conftest.$ac_ext >&5
1288     rm -rf conftest*
1289     eval "ac_cv_lib_$ac_lib_var=no"
1290     fi
1291     rm -f conftest*
1292     LIBS="$ac_save_LIBS"
1293    
1294     fi
1295     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1296     echo "$ac_t""yes" 1>&6
1297    
1298 bertho 1.2 cat >> confdefs.h <<\EOF
1299     #define HAVE_IMAGE_JPEG 1
1300     EOF
1301    
1302    
1303 bertho 1.1 else
1304     echo "$ac_t""no" 1>&6
1305     fi
1306    
1307    
1308    
1309     ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1310     echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1311 bertho 1.6 echo "configure:1312: checking for gd.h" >&5
1312 bertho 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1313     echo $ac_n "(cached) $ac_c" 1>&6
1314     else
1315     cat > conftest.$ac_ext <<EOF
1316 bertho 1.6 #line 1317 "configure"
1317 bertho 1.1 #include "confdefs.h"
1318     #include <gd.h>
1319     EOF
1320     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1321 bertho 1.6 { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1322 bertho 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1323     if test -z "$ac_err"; then
1324     rm -rf conftest*
1325     eval "ac_cv_header_$ac_safe=yes"
1326     else
1327     echo "$ac_err" >&5
1328     echo "configure: failed program was:" >&5
1329     cat conftest.$ac_ext >&5
1330     rm -rf conftest*
1331     eval "ac_cv_header_$ac_safe=no"
1332     fi
1333     rm -f conftest*
1334     fi
1335     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1336     echo "$ac_t""yes" 1>&6
1337     have_gd_h="yes"
1338     else
1339     echo "$ac_t""no" 1>&6
1340     have_gd_h="no"
1341     fi
1342    
1343    
1344     if test $have_gd_h != "yes"; then
1345     echo
1346     echo "** The GD library is required for CvsGraph to function."
1347     echo " Get it from http://www.boutell.com, compile it and"
1348     echo " use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
1349     echo " its location. You might also have to use --with-z-inc, --with-z-lib"
1350     echo " and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
1351     echo " Check config.log for more information on the problem. If your system"
1352     echo " has libgd installed, you probably mis the gd.h header file."
1353     exit 1
1354     fi
1355    
1356    
1357 bertho 1.3
1358 bertho 1.1 trap '' 1 2 15
1359     cat > confcache <<\EOF
1360     # This file is a shell script that caches the results of configure
1361     # tests run on this system so they can be shared between configure
1362     # scripts and configure runs. It is not useful on other systems.
1363     # If it contains results you don't want to keep, you may remove or edit it.
1364     #
1365     # By default, configure uses ./config.cache as the cache file,
1366     # creating it if it does not exist already. You can give configure
1367     # the --cache-file=FILE option to use a different cache file; that is
1368     # what configure does when it calls configure scripts in
1369     # subdirectories, so they share the cache.
1370     # Giving --cache-file=/dev/null disables caching, for debugging configure.
1371     # config.status only pays attention to the cache file if you give it the
1372     # --recheck option to rerun configure.
1373     #
1374     EOF
1375     # The following way of writing the cache mishandles newlines in values,
1376     # but we know of no workaround that is simple, portable, and efficient.
1377     # So, don't put newlines in cache variables' values.
1378     # Ultrix sh set writes to stderr and can't be redirected directly,
1379     # and sets the high bit in the cache file unless we assign to the vars.
1380     (set) 2>&1 |
1381     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1382     *ac_space=\ *)
1383     # `set' does not quote correctly, so add quotes (double-quote substitution
1384     # turns \\\\ into \\, and sed turns \\ into \).
1385     sed -n \
1386     -e "s/'/'\\\\''/g" \
1387     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1388     ;;
1389     *)
1390     # `set' quotes correctly as required by POSIX, so do not add quotes.
1391     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1392     ;;
1393     esac >> confcache
1394     if cmp -s $cache_file confcache; then
1395     :
1396     else
1397     if test -w $cache_file; then
1398     echo "updating cache $cache_file"
1399     cat confcache > $cache_file
1400     else
1401     echo "not updating unwritable cache $cache_file"
1402     fi
1403     fi
1404     rm -f confcache
1405    
1406     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1407    
1408     test "x$prefix" = xNONE && prefix=$ac_default_prefix
1409     # Let make expand exec_prefix.
1410     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1411    
1412     # Any assignment to VPATH causes Sun make to only execute
1413     # the first set of double-colon rules, so remove it if not needed.
1414     # If there is a colon in the path, we need to keep it.
1415     if test "x$srcdir" = x.; then
1416     ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1417     fi
1418    
1419     trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1420    
1421 bertho 1.2 DEFS=-DHAVE_CONFIG_H
1422 bertho 1.1
1423     # Without the "./", some shells look in PATH for config.status.
1424     : ${CONFIG_STATUS=./config.status}
1425    
1426     echo creating $CONFIG_STATUS
1427     rm -f $CONFIG_STATUS
1428     cat > $CONFIG_STATUS <<EOF
1429     #! /bin/sh
1430     # Generated automatically by configure.
1431     # Run this file to recreate the current configuration.
1432     # This directory was configured as follows,
1433     # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1434     #
1435     # $0 $ac_configure_args
1436     #
1437     # Compiler output produced by configure, useful for debugging
1438     # configure, is in ./config.log if it exists.
1439    
1440     ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1441     for ac_option
1442     do
1443     case "\$ac_option" in
1444     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1445     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1446     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1447     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1448     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1449     exit 0 ;;
1450     -help | --help | --hel | --he | --h)
1451     echo "\$ac_cs_usage"; exit 0 ;;
1452     *) echo "\$ac_cs_usage"; exit 1 ;;
1453     esac
1454     done
1455    
1456     ac_given_srcdir=$srcdir
1457    
1458 bertho 1.2 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1459 bertho 1.1 EOF
1460     cat >> $CONFIG_STATUS <<EOF
1461    
1462     # Protect against being on the right side of a sed subst in config.status.
1463     sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1464     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1465     $ac_vpsub
1466     $extrasub
1467     s%@SHELL@%$SHELL%g
1468     s%@CFLAGS@%$CFLAGS%g
1469     s%@CPPFLAGS@%$CPPFLAGS%g
1470     s%@CXXFLAGS@%$CXXFLAGS%g
1471     s%@FFLAGS@%$FFLAGS%g
1472     s%@DEFS@%$DEFS%g
1473     s%@LDFLAGS@%$LDFLAGS%g
1474     s%@LIBS@%$LIBS%g
1475     s%@exec_prefix@%$exec_prefix%g
1476     s%@prefix@%$prefix%g
1477     s%@program_transform_name@%$program_transform_name%g
1478     s%@bindir@%$bindir%g
1479     s%@sbindir@%$sbindir%g
1480     s%@libexecdir@%$libexecdir%g
1481     s%@datadir@%$datadir%g
1482     s%@sysconfdir@%$sysconfdir%g
1483     s%@sharedstatedir@%$sharedstatedir%g
1484     s%@localstatedir@%$localstatedir%g
1485     s%@libdir@%$libdir%g
1486     s%@includedir@%$includedir%g
1487     s%@oldincludedir@%$oldincludedir%g
1488     s%@infodir@%$infodir%g
1489     s%@mandir@%$mandir%g
1490     s%@CC@%$CC%g
1491     s%@LEX@%$LEX%g
1492     s%@LEXLIB@%$LEXLIB%g
1493     s%@YACC@%$YACC%g
1494     s%@CPP@%$CPP%g
1495 bertho 1.3 s%@LEXFLAGS@%$LEXFLAGS%g
1496 bertho 1.1
1497     CEOF
1498     EOF
1499    
1500     cat >> $CONFIG_STATUS <<\EOF
1501    
1502     # Split the substitutions into bite-sized pieces for seds with
1503     # small command number limits, like on Digital OSF/1 and HP-UX.
1504     ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1505     ac_file=1 # Number of current file.
1506     ac_beg=1 # First line for current file.
1507     ac_end=$ac_max_sed_cmds # Line after last line for current file.
1508     ac_more_lines=:
1509     ac_sed_cmds=""
1510     while $ac_more_lines; do
1511     if test $ac_beg -gt 1; then
1512     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1513     else
1514     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1515     fi
1516     if test ! -s conftest.s$ac_file; then
1517     ac_more_lines=false
1518     rm -f conftest.s$ac_file
1519     else
1520     if test -z "$ac_sed_cmds"; then
1521     ac_sed_cmds="sed -f conftest.s$ac_file"
1522     else
1523     ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1524     fi
1525     ac_file=`expr $ac_file + 1`
1526     ac_beg=$ac_end
1527     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1528     fi
1529     done
1530     if test -z "$ac_sed_cmds"; then
1531     ac_sed_cmds=cat
1532     fi
1533     EOF
1534    
1535     cat >> $CONFIG_STATUS <<EOF
1536    
1537     CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1538     EOF
1539     cat >> $CONFIG_STATUS <<\EOF
1540     for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1541     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1542     case "$ac_file" in
1543     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1544     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1545     *) ac_file_in="${ac_file}.in" ;;
1546     esac
1547    
1548     # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1549    
1550     # Remove last slash and all that follows it. Not all systems have dirname.
1551     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1552     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1553     # The file is in a subdirectory.
1554     test ! -d "$ac_dir" && mkdir "$ac_dir"
1555     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1556     # A "../" for each directory in $ac_dir_suffix.
1557     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1558     else
1559     ac_dir_suffix= ac_dots=
1560     fi
1561    
1562     case "$ac_given_srcdir" in
1563     .) srcdir=.
1564     if test -z "$ac_dots"; then top_srcdir=.
1565     else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1566     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1567     *) # Relative path.
1568     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1569     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1570     esac
1571    
1572    
1573     echo creating "$ac_file"
1574     rm -f "$ac_file"
1575     configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1576     case "$ac_file" in
1577     *Makefile*) ac_comsub="1i\\
1578     # $configure_input" ;;
1579     *) ac_comsub= ;;
1580     esac
1581    
1582     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1583     sed -e "$ac_comsub
1584     s%@configure_input@%$configure_input%g
1585     s%@srcdir@%$srcdir%g
1586     s%@top_srcdir@%$top_srcdir%g
1587     " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1588     fi; done
1589     rm -f conftest.s*
1590 bertho 1.2
1591     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1592     # NAME is the cpp macro being defined and VALUE is the value it is being given.
1593     #
1594     # ac_d sets the value in "#define NAME VALUE" lines.
1595     ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1596     ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1597     ac_dC='\3'
1598     ac_dD='%g'
1599     # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1600     ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1601     ac_uB='\([ ]\)%\1#\2define\3'
1602     ac_uC=' '
1603     ac_uD='\4%g'
1604     # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1605     ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1606     ac_eB='$%\1#\2define\3'
1607     ac_eC=' '
1608     ac_eD='%g'
1609    
1610     if test "${CONFIG_HEADERS+set}" != set; then
1611     EOF
1612     cat >> $CONFIG_STATUS <<EOF
1613     CONFIG_HEADERS="config.h"
1614     EOF
1615     cat >> $CONFIG_STATUS <<\EOF
1616     fi
1617     for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1618     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1619     case "$ac_file" in
1620     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1621     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1622     *) ac_file_in="${ac_file}.in" ;;
1623     esac
1624    
1625     echo creating $ac_file
1626    
1627     rm -f conftest.frag conftest.in conftest.out
1628     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1629     cat $ac_file_inputs > conftest.in
1630    
1631     EOF
1632    
1633     # Transform confdefs.h into a sed script conftest.vals that substitutes
1634     # the proper values into config.h.in to produce config.h. And first:
1635     # Protect against being on the right side of a sed subst in config.status.
1636     # Protect against being in an unquoted here document in config.status.
1637     rm -f conftest.vals
1638     cat > conftest.hdr <<\EOF
1639     s/[\\&%]/\\&/g
1640     s%[\\$`]%\\&%g
1641     s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1642     s%ac_d%ac_u%gp
1643     s%ac_u%ac_e%gp
1644     EOF
1645     sed -n -f conftest.hdr confdefs.h > conftest.vals
1646     rm -f conftest.hdr
1647    
1648     # This sed command replaces #undef with comments. This is necessary, for
1649     # example, in the case of _POSIX_SOURCE, which is predefined and required
1650     # on some systems where configure will not decide to define it.
1651     cat >> conftest.vals <<\EOF
1652     s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1653     EOF
1654    
1655     # Break up conftest.vals because some shells have a limit on
1656     # the size of here documents, and old seds have small limits too.
1657    
1658     rm -f conftest.tail
1659     while :
1660     do
1661     ac_lines=`grep -c . conftest.vals`
1662     # grep -c gives empty output for an empty file on some AIX systems.
1663     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1664     # Write a limited-size here document to conftest.frag.
1665     echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1666     sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1667     echo 'CEOF
1668     sed -f conftest.frag conftest.in > conftest.out
1669     rm -f conftest.in
1670     mv conftest.out conftest.in
1671     ' >> $CONFIG_STATUS
1672     sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1673     rm -f conftest.vals
1674     mv conftest.tail conftest.vals
1675     done
1676     rm -f conftest.vals
1677    
1678     cat >> $CONFIG_STATUS <<\EOF
1679     rm -f conftest.frag conftest.h
1680     echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1681     cat conftest.in >> conftest.h
1682     rm -f conftest.in
1683     if cmp -s $ac_file conftest.h 2>/dev/null; then
1684     echo "$ac_file is unchanged"
1685     rm -f conftest.h
1686     else
1687     # Remove last slash and all that follows it. Not all systems have dirname.
1688     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1689     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1690     # The file is in a subdirectory.
1691     test ! -d "$ac_dir" && mkdir "$ac_dir"
1692     fi
1693     rm -f $ac_file
1694     mv conftest.h $ac_file
1695     fi
1696     fi; done
1697 bertho 1.1
1698     EOF
1699     cat >> $CONFIG_STATUS <<EOF
1700    
1701     EOF
1702     cat >> $CONFIG_STATUS <<\EOF
1703    
1704     exit 0
1705     EOF
1706     chmod +x $CONFIG_STATUS
1707     rm -fr confdefs* $ac_clean_files
1708     test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1709    
1710    
1711     echo "Configure done. Run 'make' to build CvsGraph"
1712    

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0