/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


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