]> git.draconx.ca Git - gob-dx.git/blob - configure
Release 0.0.2
[gob-dx.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
16 ac_help="$ac_help
17   --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
18 ac_help="$ac_help
19   --disable-glibtest       Do not try to compile and run a test GLIB program"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
27 build=NONE
28 cache_file=./config.cache
29 exec_prefix=NONE
30 host=NONE
31 no_create=
32 nonopt=NONE
33 no_recursion=
34 prefix=NONE
35 program_prefix=NONE
36 program_suffix=NONE
37 program_transform_name=s,x,x,
38 silent=
39 site=
40 srcdir=
41 target=NONE
42 verbose=
43 x_includes=NONE
44 x_libraries=NONE
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
57
58 # Initialize some other variables.
59 subdirs=
60 MFLAGS= MAKEFLAGS=
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
63 ac_max_here_lines=12
64
65 ac_prev=
66 for ac_option
67 do
68
69   # If the previous option needs an argument, assign it.
70   if test -n "$ac_prev"; then
71     eval "$ac_prev=\$ac_option"
72     ac_prev=
73     continue
74   fi
75
76   case "$ac_option" in
77   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78   *) ac_optarg= ;;
79   esac
80
81   # Accept the important Cygnus configure options, so we can diagnose typos.
82
83   case "$ac_option" in
84
85   -bindir | --bindir | --bindi | --bind | --bin | --bi)
86     ac_prev=bindir ;;
87   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88     bindir="$ac_optarg" ;;
89
90   -build | --build | --buil | --bui | --bu)
91     ac_prev=build ;;
92   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93     build="$ac_optarg" ;;
94
95   -cache-file | --cache-file | --cache-fil | --cache-fi \
96   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97     ac_prev=cache_file ;;
98   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100     cache_file="$ac_optarg" ;;
101
102   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103     ac_prev=datadir ;;
104   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105   | --da=*)
106     datadir="$ac_optarg" ;;
107
108   -disable-* | --disable-*)
109     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110     # Reject names that are not valid shell variable names.
111     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113     fi
114     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115     eval "enable_${ac_feature}=no" ;;
116
117   -enable-* | --enable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     case "$ac_option" in
125       *=*) ;;
126       *) ac_optarg=yes ;;
127     esac
128     eval "enable_${ac_feature}='$ac_optarg'" ;;
129
130   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132   | --exec | --exe | --ex)
133     ac_prev=exec_prefix ;;
134   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136   | --exec=* | --exe=* | --ex=*)
137     exec_prefix="$ac_optarg" ;;
138
139   -gas | --gas | --ga | --g)
140     # Obsolete; use --with-gas.
141     with_gas=yes ;;
142
143   -help | --help | --hel | --he)
144     # Omit some internal or obsolete options to make the list less imposing.
145     # This message is too long to be a string in the A/UX 3.1 sh.
146     cat << EOF
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
149 Configuration:
150   --cache-file=FILE       cache test results in FILE
151   --help                  print this message
152   --no-create             do not create output files
153   --quiet, --silent       do not print \`checking...' messages
154   --version               print the version of autoconf that created configure
155 Directory and file names:
156   --prefix=PREFIX         install architecture-independent files in PREFIX
157                           [$ac_default_prefix]
158   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
159                           [same as prefix]
160   --bindir=DIR            user executables in DIR [EPREFIX/bin]
161   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
162   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
163   --datadir=DIR           read-only architecture-independent data in DIR
164                           [PREFIX/share]
165   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
166   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
167                           [PREFIX/com]
168   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
169   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
170   --includedir=DIR        C header files in DIR [PREFIX/include]
171   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
172   --infodir=DIR           info documentation in DIR [PREFIX/info]
173   --mandir=DIR            man documentation in DIR [PREFIX/man]
174   --srcdir=DIR            find the sources in DIR [configure dir or ..]
175   --program-prefix=PREFIX prepend PREFIX to installed program names
176   --program-suffix=SUFFIX append SUFFIX to installed program names
177   --program-transform-name=PROGRAM
178                           run sed PROGRAM on installed program names
179 EOF
180     cat << EOF
181 Host type:
182   --build=BUILD           configure for building on BUILD [BUILD=HOST]
183   --host=HOST             configure for HOST [guessed]
184   --target=TARGET         configure for TARGET [TARGET=HOST]
185 Features and packages:
186   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
187   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
188   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
189   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
190   --x-includes=DIR        X include files are in DIR
191   --x-libraries=DIR       X library files are in DIR
192 EOF
193     if test -n "$ac_help"; then
194       echo "--enable and --with options recognized:$ac_help"
195     fi
196     exit 0 ;;
197
198   -host | --host | --hos | --ho)
199     ac_prev=host ;;
200   -host=* | --host=* | --hos=* | --ho=*)
201     host="$ac_optarg" ;;
202
203   -includedir | --includedir | --includedi | --included | --include \
204   | --includ | --inclu | --incl | --inc)
205     ac_prev=includedir ;;
206   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207   | --includ=* | --inclu=* | --incl=* | --inc=*)
208     includedir="$ac_optarg" ;;
209
210   -infodir | --infodir | --infodi | --infod | --info | --inf)
211     ac_prev=infodir ;;
212   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213     infodir="$ac_optarg" ;;
214
215   -libdir | --libdir | --libdi | --libd)
216     ac_prev=libdir ;;
217   -libdir=* | --libdir=* | --libdi=* | --libd=*)
218     libdir="$ac_optarg" ;;
219
220   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221   | --libexe | --libex | --libe)
222     ac_prev=libexecdir ;;
223   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224   | --libexe=* | --libex=* | --libe=*)
225     libexecdir="$ac_optarg" ;;
226
227   -localstatedir | --localstatedir | --localstatedi | --localstated \
228   | --localstate | --localstat | --localsta | --localst \
229   | --locals | --local | --loca | --loc | --lo)
230     ac_prev=localstatedir ;;
231   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234     localstatedir="$ac_optarg" ;;
235
236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237     ac_prev=mandir ;;
238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239     mandir="$ac_optarg" ;;
240
241   -nfp | --nfp | --nf)
242     # Obsolete; use --without-fp.
243     with_fp=no ;;
244
245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246   | --no-cr | --no-c)
247     no_create=yes ;;
248
249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251     no_recursion=yes ;;
252
253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255   | --oldin | --oldi | --old | --ol | --o)
256     ac_prev=oldincludedir ;;
257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260     oldincludedir="$ac_optarg" ;;
261
262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263     ac_prev=prefix ;;
264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265     prefix="$ac_optarg" ;;
266
267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
268   | --program-pre | --program-pr | --program-p)
269     ac_prev=program_prefix ;;
270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272     program_prefix="$ac_optarg" ;;
273
274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
275   | --program-suf | --program-su | --program-s)
276     ac_prev=program_suffix ;;
277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279     program_suffix="$ac_optarg" ;;
280
281   -program-transform-name | --program-transform-name \
282   | --program-transform-nam | --program-transform-na \
283   | --program-transform-n | --program-transform- \
284   | --program-transform | --program-transfor \
285   | --program-transfo | --program-transf \
286   | --program-trans | --program-tran \
287   | --progr-tra | --program-tr | --program-t)
288     ac_prev=program_transform_name ;;
289   -program-transform-name=* | --program-transform-name=* \
290   | --program-transform-nam=* | --program-transform-na=* \
291   | --program-transform-n=* | --program-transform-=* \
292   | --program-transform=* | --program-transfor=* \
293   | --program-transfo=* | --program-transf=* \
294   | --program-trans=* | --program-tran=* \
295   | --progr-tra=* | --program-tr=* | --program-t=*)
296     program_transform_name="$ac_optarg" ;;
297
298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299   | -silent | --silent | --silen | --sile | --sil)
300     silent=yes ;;
301
302   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303     ac_prev=sbindir ;;
304   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305   | --sbi=* | --sb=*)
306     sbindir="$ac_optarg" ;;
307
308   -sharedstatedir | --sharedstatedir | --sharedstatedi \
309   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310   | --sharedst | --shareds | --shared | --share | --shar \
311   | --sha | --sh)
312     ac_prev=sharedstatedir ;;
313   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316   | --sha=* | --sh=*)
317     sharedstatedir="$ac_optarg" ;;
318
319   -site | --site | --sit)
320     ac_prev=site ;;
321   -site=* | --site=* | --sit=*)
322     site="$ac_optarg" ;;
323
324   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325     ac_prev=srcdir ;;
326   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327     srcdir="$ac_optarg" ;;
328
329   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330   | --syscon | --sysco | --sysc | --sys | --sy)
331     ac_prev=sysconfdir ;;
332   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334     sysconfdir="$ac_optarg" ;;
335
336   -target | --target | --targe | --targ | --tar | --ta | --t)
337     ac_prev=target ;;
338   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339     target="$ac_optarg" ;;
340
341   -v | -verbose | --verbose | --verbos | --verbo | --verb)
342     verbose=yes ;;
343
344   -version | --version | --versio | --versi | --vers)
345     echo "configure generated by autoconf version 2.13"
346     exit 0 ;;
347
348   -with-* | --with-*)
349     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350     # Reject names that are not valid shell variable names.
351     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353     fi
354     ac_package=`echo $ac_package| sed 's/-/_/g'`
355     case "$ac_option" in
356       *=*) ;;
357       *) ac_optarg=yes ;;
358     esac
359     eval "with_${ac_package}='$ac_optarg'" ;;
360
361   -without-* | --without-*)
362     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     eval "with_${ac_package}=no" ;;
369
370   --x)
371     # Obsolete; use --with-x.
372     with_x=yes ;;
373
374   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375   | --x-incl | --x-inc | --x-in | --x-i)
376     ac_prev=x_includes ;;
377   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379     x_includes="$ac_optarg" ;;
380
381   -x-libraries | --x-libraries | --x-librarie | --x-librari \
382   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383     ac_prev=x_libraries ;;
384   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386     x_libraries="$ac_optarg" ;;
387
388   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389     ;;
390
391   *)
392     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393       echo "configure: warning: $ac_option: invalid host type" 1>&2
394     fi
395     if test "x$nonopt" != xNONE; then
396       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
397     fi
398     nonopt="$ac_option"
399     ;;
400
401   esac
402 done
403
404 if test -n "$ac_prev"; then
405   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 fi
407
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
410 # File descriptor usage:
411 # 0 standard input
412 # 1 file creation
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
419   exec 6>/dev/null
420 else
421   exec 6>&1
422 fi
423 exec 5>./config.log
424
425 echo "\
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
428 " 1>&5
429
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
432 ac_configure_args=
433 for ac_arg
434 do
435   case "$ac_arg" in
436   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437   | --no-cr | --no-c) ;;
438   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
443   esac
444 done
445
446 # NLS nuisances.
447 # Only set these to C if already set.  These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
455
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 echo > confdefs.h
460
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=src/tree.h
464
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467   ac_srcdir_defaulted=yes
468   # Try the directory containing this script, then its parent.
469   ac_prog=$0
470   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472   srcdir=$ac_confdir
473   if test ! -r $srcdir/$ac_unique_file; then
474     srcdir=..
475   fi
476 else
477   ac_srcdir_defaulted=no
478 fi
479 if test ! -r $srcdir/$ac_unique_file; then
480   if test "$ac_srcdir_defaulted" = yes; then
481     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482   else
483     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484   fi
485 fi
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490   if test "x$prefix" != xNONE; then
491     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492   else
493     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494   fi
495 fi
496 for ac_site_file in $CONFIG_SITE; do
497   if test -r "$ac_site_file"; then
498     echo "loading site script $ac_site_file"
499     . "$ac_site_file"
500   fi
501 done
502
503 if test -r "$cache_file"; then
504   echo "loading cache $cache_file"
505   . $cache_file
506 else
507   echo "creating cache $cache_file"
508   > $cache_file
509 fi
510
511 ac_ext=c
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
517
518 ac_exeext=
519 ac_objext=o
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523     ac_n= ac_c='
524 ' ac_t='        '
525   else
526     ac_n=-n ac_c= ac_t=
527   fi
528 else
529   ac_n= ac_c='\c' ac_t=
530 fi
531
532
533
534
535
536 ac_aux_dir=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538   if test -f $ac_dir/install-sh; then
539     ac_aux_dir=$ac_dir
540     ac_install_sh="$ac_aux_dir/install-sh -c"
541     break
542   elif test -f $ac_dir/install.sh; then
543     ac_aux_dir=$ac_dir
544     ac_install_sh="$ac_aux_dir/install.sh -c"
545     break
546   fi
547 done
548 if test -z "$ac_aux_dir"; then
549   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 fi
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554
555 # Find a good install program.  We prefer a C program (faster),
556 # so one script is as good as another.  But avoid the broken or
557 # incompatible versions:
558 # SysV /etc/install, /usr/sbin/install
559 # SunOS /usr/etc/install
560 # IRIX /sbin/install
561 # AIX /bin/install
562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
573   for ac_dir in $PATH; do
574     # Account for people who put trailing slashes in PATH elements.
575     case "$ac_dir/" in
576     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577     *)
578       # OSF1 and SCO ODT 3.0 have their own names for install.
579       # Don't use installbsd from OSF since it installs stuff as root
580       # by default.
581       for ac_prog in ginstall scoinst install; do
582         if test -f $ac_dir/$ac_prog; then
583           if test $ac_prog = install &&
584             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585             # AIX install.  It has an incompatible calling convention.
586             :
587           else
588             ac_cv_path_install="$ac_dir/$ac_prog -c"
589             break 2
590           fi
591         fi
592       done
593       ;;
594     esac
595   done
596   IFS="$ac_save_IFS"
597
598 fi
599   if test "${ac_cv_path_install+set}" = set; then
600     INSTALL="$ac_cv_path_install"
601   else
602     # As a last resort, use the slow shell script.  We don't cache a
603     # path for INSTALL within a source directory, because that will
604     # break other packages using the cache if that directory is
605     # removed, or if the path is relative.
606     INSTALL="$ac_install_sh"
607   fi
608 fi
609 echo "$ac_t""$INSTALL" 1>&6
610
611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612 # It thinks the first close brace ends the variable substitution.
613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
621 # Just in case
622 sleep 1
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments.  Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
628 # directory).
629 if (
630    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631    if test "$*" = "X"; then
632       # -L didn't work.
633       set X `ls -t $srcdir/configure conftestfile`
634    fi
635    if test "$*" != "X $srcdir/configure conftestfile" \
636       && test "$*" != "X conftestfile $srcdir/configure"; then
637
638       # If neither matched, then we have a broken ls.  This can happen
639       # if, for instance, CONFIG_SHELL is bash and it inherits a
640       # broken ls alias from the environment.  This has actually
641       # happened.  Such a system could not be considered "sane".
642       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
644    fi
645
646    test "$2" = conftestfile
647    )
648 then
649    # Ok.
650    :
651 else
652    { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
654 fi
655 rm -f conftest*
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658   program_transform_name=
659 else
660   # Double any \ or $.  echo might interpret backslashes.
661   cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
663 EOF_SED
664   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665   rm -f conftestsed
666 fi
667 test "$program_prefix" != NONE &&
668   program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680   echo $ac_n "(cached) $ac_c" 1>&6
681 else
682   cat > conftestmake <<\EOF
683 all:
684         @echo 'ac_maketemp="${MAKE}"'
685 EOF
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689   eval ac_cv_prog_make_${ac_make}_set=yes
690 else
691   eval ac_cv_prog_make_${ac_make}_set=no
692 fi
693 rm -f conftestmake
694 fi
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696   echo "$ac_t""yes" 1>&6
697   SET_MAKE=
698 else
699   echo "$ac_t""no" 1>&6
700   SET_MAKE="MAKE=${MAKE-make}"
701 fi
702
703
704
705 PACKAGE=gob
706
707 VERSION=0.0.2
708
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 fi
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
714 EOF
715
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
718 EOF
719
720
721
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf.  Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729    ACLOCAL=aclocal
730    echo "$ac_t""found" 1>&6
731 else
732    ACLOCAL="$missing_dir/missing aclocal"
733    echo "$ac_t""missing" 1>&6
734 fi
735
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf.  Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742    AUTOCONF=autoconf
743    echo "$ac_t""found" 1>&6
744 else
745    AUTOCONF="$missing_dir/missing autoconf"
746    echo "$ac_t""missing" 1>&6
747 fi
748
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf.  Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
755    AUTOMAKE=automake
756    echo "$ac_t""found" 1>&6
757 else
758    AUTOMAKE="$missing_dir/missing automake"
759    echo "$ac_t""missing" 1>&6
760 fi
761
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf.  Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768    AUTOHEADER=autoheader
769    echo "$ac_t""found" 1>&6
770 else
771    AUTOHEADER="$missing_dir/missing autoheader"
772    echo "$ac_t""missing" 1>&6
773 fi
774
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf.  Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781    MAKEINFO=makeinfo
782    echo "$ac_t""found" 1>&6
783 else
784    MAKEINFO="$missing_dir/missing makeinfo"
785    echo "$ac_t""missing" 1>&6
786 fi
787
788
789
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795   echo $ac_n "(cached) $ac_c" 1>&6
796 else
797   if test -n "$CC"; then
798   ac_cv_prog_CC="$CC" # Let the user override the test.
799 else
800   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
801   ac_dummy="$PATH"
802   for ac_dir in $ac_dummy; do
803     test -z "$ac_dir" && ac_dir=.
804     if test -f $ac_dir/$ac_word; then
805       ac_cv_prog_CC="gcc"
806       break
807     fi
808   done
809   IFS="$ac_save_ifs"
810 fi
811 fi
812 CC="$ac_cv_prog_CC"
813 if test -n "$CC"; then
814   echo "$ac_t""$CC" 1>&6
815 else
816   echo "$ac_t""no" 1>&6
817 fi
818
819 if test -z "$CC"; then
820   # Extract the first word of "cc", so it can be a program name with args.
821 set dummy cc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825   echo $ac_n "(cached) $ac_c" 1>&6
826 else
827   if test -n "$CC"; then
828   ac_cv_prog_CC="$CC" # Let the user override the test.
829 else
830   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
831   ac_prog_rejected=no
832   ac_dummy="$PATH"
833   for ac_dir in $ac_dummy; do
834     test -z "$ac_dir" && ac_dir=.
835     if test -f $ac_dir/$ac_word; then
836       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
837         ac_prog_rejected=yes
838         continue
839       fi
840       ac_cv_prog_CC="cc"
841       break
842     fi
843   done
844   IFS="$ac_save_ifs"
845 if test $ac_prog_rejected = yes; then
846   # We found a bogon in the path, so make sure we never use it.
847   set dummy $ac_cv_prog_CC
848   shift
849   if test $# -gt 0; then
850     # We chose a different compiler from the bogus one.
851     # However, it has the same basename, so the bogon will be chosen
852     # first if we set CC to just the basename; use the full file name.
853     shift
854     set dummy "$ac_dir/$ac_word" "$@"
855     shift
856     ac_cv_prog_CC="$@"
857   fi
858 fi
859 fi
860 fi
861 CC="$ac_cv_prog_CC"
862 if test -n "$CC"; then
863   echo "$ac_t""$CC" 1>&6
864 else
865   echo "$ac_t""no" 1>&6
866 fi
867
868   if test -z "$CC"; then
869     case "`uname -s`" in
870     *win32* | *WIN32*)
871       # Extract the first word of "cl", so it can be a program name with args.
872 set dummy cl; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876   echo $ac_n "(cached) $ac_c" 1>&6
877 else
878   if test -n "$CC"; then
879   ac_cv_prog_CC="$CC" # Let the user override the test.
880 else
881   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
882   ac_dummy="$PATH"
883   for ac_dir in $ac_dummy; do
884     test -z "$ac_dir" && ac_dir=.
885     if test -f $ac_dir/$ac_word; then
886       ac_cv_prog_CC="cl"
887       break
888     fi
889   done
890   IFS="$ac_save_ifs"
891 fi
892 fi
893 CC="$ac_cv_prog_CC"
894 if test -n "$CC"; then
895   echo "$ac_t""$CC" 1>&6
896 else
897   echo "$ac_t""no" 1>&6
898 fi
899  ;;
900     esac
901   fi
902   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
903 fi
904
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
907
908 ac_ext=c
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
914
915 cat > conftest.$ac_ext << EOF
916
917 #line 918 "configure"
918 #include "confdefs.h"
919
920 main(){return(0);}
921 EOF
922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
923   ac_cv_prog_cc_works=yes
924   # If we can't run a trivial program, we are probably using a cross compiler.
925   if (./conftest; exit) 2>/dev/null; then
926     ac_cv_prog_cc_cross=no
927   else
928     ac_cv_prog_cc_cross=yes
929   fi
930 else
931   echo "configure: failed program was:" >&5
932   cat conftest.$ac_ext >&5
933   ac_cv_prog_cc_works=no
934 fi
935 rm -fr conftest*
936 ac_ext=c
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
942
943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
944 if test $ac_cv_prog_cc_works = no; then
945   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 fi
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
950 cross_compiling=$ac_cv_prog_cc_cross
951
952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
953 echo "configure:954: checking whether we are using GNU C" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
955   echo $ac_n "(cached) $ac_c" 1>&6
956 else
957   cat > conftest.c <<EOF
958 #ifdef __GNUC__
959   yes;
960 #endif
961 EOF
962 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
963   ac_cv_prog_gcc=yes
964 else
965   ac_cv_prog_gcc=no
966 fi
967 fi
968
969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970
971 if test $ac_cv_prog_gcc = yes; then
972   GCC=yes
973 else
974   GCC=
975 fi
976
977 ac_test_CFLAGS="${CFLAGS+set}"
978 ac_save_CFLAGS="$CFLAGS"
979 CFLAGS=
980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${CC-cc} accepts -g" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
983   echo $ac_n "(cached) $ac_c" 1>&6
984 else
985   echo 'void f(){}' > conftest.c
986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
987   ac_cv_prog_cc_g=yes
988 else
989   ac_cv_prog_cc_g=no
990 fi
991 rm -f conftest*
992
993 fi
994
995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
996 if test "$ac_test_CFLAGS" = set; then
997   CFLAGS="$ac_save_CFLAGS"
998 elif test $ac_cv_prog_cc_g = yes; then
999   if test "$GCC" = yes; then
1000     CFLAGS="-g -O2"
1001   else
1002     CFLAGS="-g"
1003   fi
1004 else
1005   if test "$GCC" = yes; then
1006     CFLAGS="-O2"
1007   else
1008     CFLAGS=
1009   fi
1010 fi
1011
1012 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1013 echo "configure:1014: checking how to run the C preprocessor" >&5
1014 # On Suns, sometimes $CPP names a directory.
1015 if test -n "$CPP" && test -d "$CPP"; then
1016   CPP=
1017 fi
1018 if test -z "$CPP"; then
1019 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1020   echo $ac_n "(cached) $ac_c" 1>&6
1021 else
1022     # This must be in double quotes, not single quotes, because CPP may get
1023   # substituted into the Makefile and "${CC-cc}" will confuse make.
1024   CPP="${CC-cc} -E"
1025   # On the NeXT, cc -E runs the code through the compiler's parser,
1026   # not just through cpp.
1027   cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <assert.h>
1031 Syntax Error
1032 EOF
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1036 if test -z "$ac_err"; then
1037   :
1038 else
1039   echo "$ac_err" >&5
1040   echo "configure: failed program was:" >&5
1041   cat conftest.$ac_ext >&5
1042   rm -rf conftest*
1043   CPP="${CC-cc} -E -traditional-cpp"
1044   cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <assert.h>
1048 Syntax Error
1049 EOF
1050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1053 if test -z "$ac_err"; then
1054   :
1055 else
1056   echo "$ac_err" >&5
1057   echo "configure: failed program was:" >&5
1058   cat conftest.$ac_ext >&5
1059   rm -rf conftest*
1060   CPP="${CC-cc} -nologo -E"
1061   cat > conftest.$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1064 #include <assert.h>
1065 Syntax Error
1066 EOF
1067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1068 { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1070 if test -z "$ac_err"; then
1071   :
1072 else
1073   echo "$ac_err" >&5
1074   echo "configure: failed program was:" >&5
1075   cat conftest.$ac_ext >&5
1076   rm -rf conftest*
1077   CPP=/lib/cpp
1078 fi
1079 rm -f conftest*
1080 fi
1081 rm -f conftest*
1082 fi
1083 rm -f conftest*
1084   ac_cv_prog_CPP="$CPP"
1085 fi
1086   CPP="$ac_cv_prog_CPP"
1087 else
1088   ac_cv_prog_CPP="$CPP"
1089 fi
1090 echo "$ac_t""$CPP" 1>&6
1091
1092 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1093 echo "configure:1094: checking for ANSI C header files" >&5
1094 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1095   echo $ac_n "(cached) $ac_c" 1>&6
1096 else
1097   cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <stdlib.h>
1101 #include <stdarg.h>
1102 #include <string.h>
1103 #include <float.h>
1104 EOF
1105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1106 { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1108 if test -z "$ac_err"; then
1109   rm -rf conftest*
1110   ac_cv_header_stdc=yes
1111 else
1112   echo "$ac_err" >&5
1113   echo "configure: failed program was:" >&5
1114   cat conftest.$ac_ext >&5
1115   rm -rf conftest*
1116   ac_cv_header_stdc=no
1117 fi
1118 rm -f conftest*
1119
1120 if test $ac_cv_header_stdc = yes; then
1121   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125 #include <string.h>
1126 EOF
1127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1128   egrep "memchr" >/dev/null 2>&1; then
1129   :
1130 else
1131   rm -rf conftest*
1132   ac_cv_header_stdc=no
1133 fi
1134 rm -f conftest*
1135
1136 fi
1137
1138 if test $ac_cv_header_stdc = yes; then
1139   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1143 #include <stdlib.h>
1144 EOF
1145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1146   egrep "free" >/dev/null 2>&1; then
1147   :
1148 else
1149   rm -rf conftest*
1150   ac_cv_header_stdc=no
1151 fi
1152 rm -f conftest*
1153
1154 fi
1155
1156 if test $ac_cv_header_stdc = yes; then
1157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1158 if test "$cross_compiling" = yes; then
1159   :
1160 else
1161   cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1164 #include <ctype.h>
1165 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1166 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1168 int main () { int i; for (i = 0; i < 256; i++)
1169 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1170 exit (0); }
1171
1172 EOF
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1174 then
1175   :
1176 else
1177   echo "configure: failed program was:" >&5
1178   cat conftest.$ac_ext >&5
1179   rm -fr conftest*
1180   ac_cv_header_stdc=no
1181 fi
1182 rm -fr conftest*
1183 fi
1184
1185 fi
1186 fi
1187
1188 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1189 if test $ac_cv_header_stdc = yes; then
1190   cat >> confdefs.h <<\EOF
1191 #define STDC_HEADERS 1
1192 EOF
1193
1194 fi
1195
1196 for ac_prog in 'bison -y' byacc
1197 do
1198 # Extract the first word of "$ac_prog", so it can be a program name with args.
1199 set dummy $ac_prog; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1203   echo $ac_n "(cached) $ac_c" 1>&6
1204 else
1205   if test -n "$YACC"; then
1206   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1207 else
1208   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1209   ac_dummy="$PATH"
1210   for ac_dir in $ac_dummy; do
1211     test -z "$ac_dir" && ac_dir=.
1212     if test -f $ac_dir/$ac_word; then
1213       ac_cv_prog_YACC="$ac_prog"
1214       break
1215     fi
1216   done
1217   IFS="$ac_save_ifs"
1218 fi
1219 fi
1220 YACC="$ac_cv_prog_YACC"
1221 if test -n "$YACC"; then
1222   echo "$ac_t""$YACC" 1>&6
1223 else
1224   echo "$ac_t""no" 1>&6
1225 fi
1226
1227 test -n "$YACC" && break
1228 done
1229 test -n "$YACC" || YACC="yacc"
1230
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 for ac_prog in flex lex
1233 do
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1239   echo $ac_n "(cached) $ac_c" 1>&6
1240 else
1241   if test -n "$LEX"; then
1242   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1243 else
1244   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1245   ac_dummy="$PATH"
1246   for ac_dir in $ac_dummy; do
1247     test -z "$ac_dir" && ac_dir=.
1248     if test -f $ac_dir/$ac_word; then
1249       ac_cv_prog_LEX="$ac_prog"
1250       break
1251     fi
1252   done
1253   IFS="$ac_save_ifs"
1254 fi
1255 fi
1256 LEX="$ac_cv_prog_LEX"
1257 if test -n "$LEX"; then
1258   echo "$ac_t""$LEX" 1>&6
1259 else
1260   echo "$ac_t""no" 1>&6
1261 fi
1262
1263 test -n "$LEX" && break
1264 done
1265 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1266
1267 # Extract the first word of "flex", so it can be a program name with args.
1268 set dummy flex; ac_word=$2
1269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270 echo "configure:1271: checking for $ac_word" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1272   echo $ac_n "(cached) $ac_c" 1>&6
1273 else
1274   if test -n "$LEX"; then
1275   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1276 else
1277   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1278   ac_dummy="$PATH"
1279   for ac_dir in $ac_dummy; do
1280     test -z "$ac_dir" && ac_dir=.
1281     if test -f $ac_dir/$ac_word; then
1282       ac_cv_prog_LEX="flex"
1283       break
1284     fi
1285   done
1286   IFS="$ac_save_ifs"
1287   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1288 fi
1289 fi
1290 LEX="$ac_cv_prog_LEX"
1291 if test -n "$LEX"; then
1292   echo "$ac_t""$LEX" 1>&6
1293 else
1294   echo "$ac_t""no" 1>&6
1295 fi
1296
1297 if test -z "$LEXLIB"
1298 then
1299   case "$LEX" in
1300   flex*) ac_lib=fl ;;
1301   *) ac_lib=l ;;
1302   esac
1303   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1304 echo "configure:1305: checking for yywrap in -l$ac_lib" >&5
1305 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307   echo $ac_n "(cached) $ac_c" 1>&6
1308 else
1309   ac_save_LIBS="$LIBS"
1310 LIBS="-l$ac_lib  $LIBS"
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1314 /* Override any gcc2 internal prototype to avoid an error.  */
1315 /* We use char because int might match the return type of a gcc2
1316     builtin and then its argument prototype would still apply.  */
1317 char yywrap();
1318
1319 int main() {
1320 yywrap()
1321 ; return 0; }
1322 EOF
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324   rm -rf conftest*
1325   eval "ac_cv_lib_$ac_lib_var=yes"
1326 else
1327   echo "configure: failed program was:" >&5
1328   cat conftest.$ac_ext >&5
1329   rm -rf conftest*
1330   eval "ac_cv_lib_$ac_lib_var=no"
1331 fi
1332 rm -f conftest*
1333 LIBS="$ac_save_LIBS"
1334
1335 fi
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337   echo "$ac_t""yes" 1>&6
1338   LEXLIB="-l$ac_lib"
1339 else
1340   echo "$ac_t""no" 1>&6
1341 fi
1342
1343 fi
1344
1345 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1346 echo "configure:1347: checking lex output file root" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1348   echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350   # The minimal lex program is just a single line: %%.  But some broken lexes
1351 # (Solaris, I think it was) want two %% lines, so accommodate them.
1352 echo '%%
1353 %%' | $LEX
1354 if test -f lex.yy.c; then
1355   ac_cv_prog_lex_root=lex.yy
1356 elif test -f lexyy.c; then
1357   ac_cv_prog_lex_root=lexyy
1358 else
1359   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1360 fi
1361 fi
1362
1363 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1365
1366 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether yytext is a pointer" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1369   echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371   # POSIX says lex can declare yytext either as a pointer or an array; the
1372 # default is implementation-dependent. Figure out which it is, since
1373 # not all implementations provide the %pointer and %array declarations.
1374 ac_cv_prog_lex_yytext_pointer=no
1375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1376 ac_save_LIBS="$LIBS"
1377 LIBS="$LIBS $LEXLIB"
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 `cat $LEX_OUTPUT_ROOT.c`
1382 int main() {
1383
1384 ; return 0; }
1385 EOF
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387   rm -rf conftest*
1388   ac_cv_prog_lex_yytext_pointer=yes
1389 else
1390   echo "configure: failed program was:" >&5
1391   cat conftest.$ac_ext >&5
1392 fi
1393 rm -f conftest*
1394 LIBS="$ac_save_LIBS"
1395 rm -f "${LEX_OUTPUT_ROOT}.c"
1396
1397 fi
1398
1399 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1400 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1401   cat >> confdefs.h <<\EOF
1402 #define YYTEXT_POINTER 1
1403 EOF
1404
1405 fi
1406
1407 # Find a good install program.  We prefer a C program (faster),
1408 # so one script is as good as another.  But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1413 # AIX /bin/install
1414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1417 # ./install, which can be erroneously created by make from ./install.sh.
1418 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1419 echo "configure:1420: checking for a BSD compatible install" >&5
1420 if test -z "$INSTALL"; then
1421 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1422   echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1425   for ac_dir in $PATH; do
1426     # Account for people who put trailing slashes in PATH elements.
1427     case "$ac_dir/" in
1428     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1429     *)
1430       # OSF1 and SCO ODT 3.0 have their own names for install.
1431       # Don't use installbsd from OSF since it installs stuff as root
1432       # by default.
1433       for ac_prog in ginstall scoinst install; do
1434         if test -f $ac_dir/$ac_prog; then
1435           if test $ac_prog = install &&
1436             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1437             # AIX install.  It has an incompatible calling convention.
1438             :
1439           else
1440             ac_cv_path_install="$ac_dir/$ac_prog -c"
1441             break 2
1442           fi
1443         fi
1444       done
1445       ;;
1446     esac
1447   done
1448   IFS="$ac_save_IFS"
1449
1450 fi
1451   if test "${ac_cv_path_install+set}" = set; then
1452     INSTALL="$ac_cv_path_install"
1453   else
1454     # As a last resort, use the slow shell script.  We don't cache a
1455     # path for INSTALL within a source directory, because that will
1456     # break other packages using the cache if that directory is
1457     # removed, or if the path is relative.
1458     INSTALL="$ac_install_sh"
1459   fi
1460 fi
1461 echo "$ac_t""$INSTALL" 1>&6
1462
1463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1464 # It thinks the first close brace ends the variable substitution.
1465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1466
1467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1468
1469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1470
1471 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1472 echo "configure:1473: checking how to run the C preprocessor" >&5
1473 # On Suns, sometimes $CPP names a directory.
1474 if test -n "$CPP" && test -d "$CPP"; then
1475   CPP=
1476 fi
1477 if test -z "$CPP"; then
1478 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1479   echo $ac_n "(cached) $ac_c" 1>&6
1480 else
1481     # This must be in double quotes, not single quotes, because CPP may get
1482   # substituted into the Makefile and "${CC-cc}" will confuse make.
1483   CPP="${CC-cc} -E"
1484   # On the NeXT, cc -E runs the code through the compiler's parser,
1485   # not just through cpp.
1486   cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <assert.h>
1490 Syntax Error
1491 EOF
1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1495 if test -z "$ac_err"; then
1496   :
1497 else
1498   echo "$ac_err" >&5
1499   echo "configure: failed program was:" >&5
1500   cat conftest.$ac_ext >&5
1501   rm -rf conftest*
1502   CPP="${CC-cc} -E -traditional-cpp"
1503   cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1506 #include <assert.h>
1507 Syntax Error
1508 EOF
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1512 if test -z "$ac_err"; then
1513   :
1514 else
1515   echo "$ac_err" >&5
1516   echo "configure: failed program was:" >&5
1517   cat conftest.$ac_ext >&5
1518   rm -rf conftest*
1519   CPP="${CC-cc} -nologo -E"
1520   cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 #include <assert.h>
1524 Syntax Error
1525 EOF
1526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1527 { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1529 if test -z "$ac_err"; then
1530   :
1531 else
1532   echo "$ac_err" >&5
1533   echo "configure: failed program was:" >&5
1534   cat conftest.$ac_ext >&5
1535   rm -rf conftest*
1536   CPP=/lib/cpp
1537 fi
1538 rm -f conftest*
1539 fi
1540 rm -f conftest*
1541 fi
1542 rm -f conftest*
1543   ac_cv_prog_CPP="$CPP"
1544 fi
1545   CPP="$ac_cv_prog_CPP"
1546 else
1547   ac_cv_prog_CPP="$CPP"
1548 fi
1549 echo "$ac_t""$CPP" 1>&6
1550
1551 # Extract the first word of "rm", so it can be a program name with args.
1552 set dummy rm; ac_word=$2
1553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_word" >&5
1555 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1556   echo $ac_n "(cached) $ac_c" 1>&6
1557 else
1558   case "$RM" in
1559   /*)
1560   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1561   ;;
1562   ?:/*)                  
1563   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1564   ;;
1565   *)
1566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1567   ac_dummy="$PATH"
1568   for ac_dir in $ac_dummy; do 
1569     test -z "$ac_dir" && ac_dir=.
1570     if test -f $ac_dir/$ac_word; then
1571       ac_cv_path_RM="$ac_dir/$ac_word"
1572       break
1573     fi
1574   done
1575   IFS="$ac_save_ifs"
1576   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1577   ;;
1578 esac
1579 fi
1580 RM="$ac_cv_path_RM"
1581 if test -n "$RM"; then
1582   echo "$ac_t""$RM" 1>&6
1583 else
1584   echo "$ac_t""no" 1>&6
1585 fi
1586
1587 # Extract the first word of "mv", so it can be a program name with args.
1588 set dummy mv; ac_word=$2
1589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1590 echo "configure:1591: checking for $ac_word" >&5
1591 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1592   echo $ac_n "(cached) $ac_c" 1>&6
1593 else
1594   case "$MV" in
1595   /*)
1596   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1597   ;;
1598   ?:/*)                  
1599   ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1600   ;;
1601   *)
1602   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1603   ac_dummy="$PATH"
1604   for ac_dir in $ac_dummy; do 
1605     test -z "$ac_dir" && ac_dir=.
1606     if test -f $ac_dir/$ac_word; then
1607       ac_cv_path_MV="$ac_dir/$ac_word"
1608       break
1609     fi
1610   done
1611   IFS="$ac_save_ifs"
1612   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1613   ;;
1614 esac
1615 fi
1616 MV="$ac_cv_path_MV"
1617 if test -n "$MV"; then
1618   echo "$ac_t""$MV" 1>&6
1619 else
1620   echo "$ac_t""no" 1>&6
1621 fi
1622
1623 # Extract the first word of "tar", so it can be a program name with args.
1624 set dummy tar; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1628   echo $ac_n "(cached) $ac_c" 1>&6
1629 else
1630   case "$TAR" in
1631   /*)
1632   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1633   ;;
1634   ?:/*)                  
1635   ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1636   ;;
1637   *)
1638   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1639   ac_dummy="$PATH"
1640   for ac_dir in $ac_dummy; do 
1641     test -z "$ac_dir" && ac_dir=.
1642     if test -f $ac_dir/$ac_word; then
1643       ac_cv_path_TAR="$ac_dir/$ac_word"
1644       break
1645     fi
1646   done
1647   IFS="$ac_save_ifs"
1648   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1649   ;;
1650 esac
1651 fi
1652 TAR="$ac_cv_path_TAR"
1653 if test -n "$TAR"; then
1654   echo "$ac_t""$TAR" 1>&6
1655 else
1656   echo "$ac_t""no" 1>&6
1657 fi
1658
1659 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1660 if test "${with_glib_prefix+set}" = set; then
1661   withval="$with_glib_prefix"
1662   glib_config_prefix="$withval"
1663 else
1664   glib_config_prefix=""
1665 fi
1666
1667 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1668 if test "${with_glib_exec_prefix+set}" = set; then
1669   withval="$with_glib_exec_prefix"
1670   glib_config_exec_prefix="$withval"
1671 else
1672   glib_config_exec_prefix=""
1673 fi
1674
1675 # Check whether --enable-glibtest or --disable-glibtest was given.
1676 if test "${enable_glibtest+set}" = set; then
1677   enableval="$enable_glibtest"
1678   :
1679 else
1680   enable_glibtest=yes
1681 fi
1682
1683
1684   if test x$glib_config_exec_prefix != x ; then
1685      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1686      if test x${GLIB_CONFIG+set} != xset ; then
1687         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1688      fi
1689   fi
1690   if test x$glib_config_prefix != x ; then
1691      glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1692      if test x${GLIB_CONFIG+set} != xset ; then
1693         GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1694      fi
1695   fi
1696
1697   for module in . 
1698   do
1699       case "$module" in
1700          gmodule) 
1701              glib_config_args="$glib_config_args gmodule"
1702          ;;
1703          gthread) 
1704              glib_config_args="$glib_config_args gthread"
1705          ;;
1706       esac
1707   done
1708
1709   # Extract the first word of "glib-config", so it can be a program name with args.
1710 set dummy glib-config; ac_word=$2
1711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_word" >&5
1713 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1714   echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716   case "$GLIB_CONFIG" in
1717   /*)
1718   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1719   ;;
1720   ?:/*)                  
1721   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1722   ;;
1723   *)
1724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1725   ac_dummy="$PATH"
1726   for ac_dir in $ac_dummy; do 
1727     test -z "$ac_dir" && ac_dir=.
1728     if test -f $ac_dir/$ac_word; then
1729       ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1730       break
1731     fi
1732   done
1733   IFS="$ac_save_ifs"
1734   test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1735   ;;
1736 esac
1737 fi
1738 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1739 if test -n "$GLIB_CONFIG"; then
1740   echo "$ac_t""$GLIB_CONFIG" 1>&6
1741 else
1742   echo "$ac_t""no" 1>&6
1743 fi
1744
1745   min_glib_version=1.2.0
1746   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1747 echo "configure:1748: checking for GLIB - version >= $min_glib_version" >&5
1748   no_glib=""
1749   if test "$GLIB_CONFIG" = "no" ; then
1750     no_glib=yes
1751   else
1752     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1753     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1754     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1755            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1756     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1757            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1758     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1759            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1760     if test "x$enable_glibtest" = "xyes" ; then
1761       ac_save_CFLAGS="$CFLAGS"
1762       ac_save_LIBS="$LIBS"
1763       CFLAGS="$CFLAGS $GLIB_CFLAGS"
1764       LIBS="$GLIB_LIBS $LIBS"
1765       rm -f conf.glibtest
1766       if test "$cross_compiling" = yes; then
1767   echo $ac_n "cross compiling; assumed OK... $ac_c"
1768 else
1769   cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772
1773 #include <glib.h>
1774 #include <stdio.h>
1775 #include <stdlib.h>
1776
1777 int 
1778 main ()
1779 {
1780   int major, minor, micro;
1781   char *tmp_version;
1782
1783   system ("touch conf.glibtest");
1784
1785   /* HP/UX 9 (%@#!) writes to sscanf strings */
1786   tmp_version = g_strdup("$min_glib_version");
1787   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1788      printf("%s, bad version string\n", "$min_glib_version");
1789      exit(1);
1790    }
1791
1792   if ((glib_major_version != $glib_config_major_version) ||
1793       (glib_minor_version != $glib_config_minor_version) ||
1794       (glib_micro_version != $glib_config_micro_version))
1795     {
1796       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
1797              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1798              glib_major_version, glib_minor_version, glib_micro_version);
1799       printf ("*** was found! If glib-config was correct, then it is best\n");
1800       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1801       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1802       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1803       printf("*** required on your system.\n");
1804       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1805       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1806       printf("*** before re-running configure\n");
1807     } 
1808   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1809            (glib_minor_version != GLIB_MINOR_VERSION) ||
1810            (glib_micro_version != GLIB_MICRO_VERSION))
1811     {
1812       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1813              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1814       printf("*** library (version %d.%d.%d)\n",
1815              glib_major_version, glib_minor_version, glib_micro_version);
1816     }
1817   else
1818     {
1819       if ((glib_major_version > major) ||
1820         ((glib_major_version == major) && (glib_minor_version > minor)) ||
1821         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1822       {
1823         return 0;
1824        }
1825      else
1826       {
1827         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1828                glib_major_version, glib_minor_version, glib_micro_version);
1829         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1830                major, minor, micro);
1831         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1832         printf("***\n");
1833         printf("*** If you have already installed a sufficiently new version, this error\n");
1834         printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1835         printf("*** being found. The easiest way to fix this is to remove the old version\n");
1836         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1837         printf("*** correct copy of glib-config. (In this case, you will have to\n");
1838         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1839         printf("*** so that the correct libraries are found at run-time))\n");
1840       }
1841     }
1842   return 1;
1843 }
1844
1845 EOF
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1847 then
1848   :
1849 else
1850   echo "configure: failed program was:" >&5
1851   cat conftest.$ac_ext >&5
1852   rm -fr conftest*
1853   no_glib=yes
1854 fi
1855 rm -fr conftest*
1856 fi
1857
1858        CFLAGS="$ac_save_CFLAGS"
1859        LIBS="$ac_save_LIBS"
1860      fi
1861   fi
1862   if test "x$no_glib" = x ; then
1863      echo "$ac_t""yes" 1>&6
1864      :     
1865   else
1866      echo "$ac_t""no" 1>&6
1867      if test "$GLIB_CONFIG" = "no" ; then
1868        echo "*** The glib-config script installed by GLIB could not be found"
1869        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1870        echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1871        echo "*** full path to glib-config."
1872      else
1873        if test -f conf.glibtest ; then
1874         :
1875        else
1876           echo "*** Could not run GLIB test program, checking why..."
1877           CFLAGS="$CFLAGS $GLIB_CFLAGS"
1878           LIBS="$LIBS $GLIB_LIBS"
1879           cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882
1883 #include <glib.h>
1884 #include <stdio.h>
1885
1886 int main() {
1887  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
1888 ; return 0; }
1889 EOF
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891   rm -rf conftest*
1892    echo "*** The test program compiled, but did not run. This usually means"
1893           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1894           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1895           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1896           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1897           echo "*** is required on your system"
1898           echo "***"
1899           echo "*** If you have an old version installed, it is best to remove it, although"
1900           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1901           echo "***"
1902           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1903           echo "*** came with the system with the command"
1904           echo "***"
1905           echo "***    rpm --erase --nodeps gtk gtk-devel" 
1906 else
1907   echo "configure: failed program was:" >&5
1908   cat conftest.$ac_ext >&5
1909   rm -rf conftest*
1910    echo "*** The test program failed to compile or link. See the file config.log for the"
1911           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1912           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1913           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 
1914 fi
1915 rm -f conftest*
1916           CFLAGS="$ac_save_CFLAGS"
1917           LIBS="$ac_save_LIBS"
1918        fi
1919      fi
1920      GLIB_CFLAGS=""
1921      GLIB_LIBS=""
1922      :
1923   fi
1924   
1925   
1926   rm -f conf.glibtest
1927
1928 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
1929 echo "configure:1930: checking for poptGetContext in -lpopt" >&5
1930 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
1931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1932   echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934   ac_save_LIBS="$LIBS"
1935 LIBS="-lpopt  $LIBS"
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 /* Override any gcc2 internal prototype to avoid an error.  */
1940 /* We use char because int might match the return type of a gcc2
1941     builtin and then its argument prototype would still apply.  */
1942 char poptGetContext();
1943
1944 int main() {
1945 poptGetContext()
1946 ; return 0; }
1947 EOF
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949   rm -rf conftest*
1950   eval "ac_cv_lib_$ac_lib_var=yes"
1951 else
1952   echo "configure: failed program was:" >&5
1953   cat conftest.$ac_ext >&5
1954   rm -rf conftest*
1955   eval "ac_cv_lib_$ac_lib_var=no"
1956 fi
1957 rm -f conftest*
1958 LIBS="$ac_save_LIBS"
1959
1960 fi
1961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1962   echo "$ac_t""yes" 1>&6
1963   POPT_LIB="-lreadline"
1964 else
1965   echo "$ac_t""no" 1>&6
1966 { echo "configure: error: Popt library not found" 1>&2; exit 1; }
1967 fi
1968
1969
1970
1971 #AM_PROG_LIBTOOL
1972
1973 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether to enable maintainer-specific portions of Makefiles" >&5
1975     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1976 if test "${enable_maintainer_mode+set}" = set; then
1977   enableval="$enable_maintainer_mode"
1978   USE_MAINTAINER_MODE=$enableval
1979 else
1980   USE_MAINTAINER_MODE=no
1981 fi
1982
1983   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1984   
1985
1986 if test $USE_MAINTAINER_MODE = yes; then
1987   MAINTAINER_MODE_TRUE=
1988   MAINTAINER_MODE_FALSE='#'
1989 else
1990   MAINTAINER_MODE_TRUE='#'
1991   MAINTAINER_MODE_FALSE=
1992 fi
1993   MAINT=$MAINTAINER_MODE_TRUE
1994   
1995
1996
1997
1998
1999
2000
2001 trap '' 1 2 15
2002 cat > confcache <<\EOF
2003 # This file is a shell script that caches the results of configure
2004 # tests run on this system so they can be shared between configure
2005 # scripts and configure runs.  It is not useful on other systems.
2006 # If it contains results you don't want to keep, you may remove or edit it.
2007 #
2008 # By default, configure uses ./config.cache as the cache file,
2009 # creating it if it does not exist already.  You can give configure
2010 # the --cache-file=FILE option to use a different cache file; that is
2011 # what configure does when it calls configure scripts in
2012 # subdirectories, so they share the cache.
2013 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2014 # config.status only pays attention to the cache file if you give it the
2015 # --recheck option to rerun configure.
2016 #
2017 EOF
2018 # The following way of writing the cache mishandles newlines in values,
2019 # but we know of no workaround that is simple, portable, and efficient.
2020 # So, don't put newlines in cache variables' values.
2021 # Ultrix sh set writes to stderr and can't be redirected directly,
2022 # and sets the high bit in the cache file unless we assign to the vars.
2023 (set) 2>&1 |
2024   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2025   *ac_space=\ *)
2026     # `set' does not quote correctly, so add quotes (double-quote substitution
2027     # turns \\\\ into \\, and sed turns \\ into \).
2028     sed -n \
2029       -e "s/'/'\\\\''/g" \
2030       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2031     ;;
2032   *)
2033     # `set' quotes correctly as required by POSIX, so do not add quotes.
2034     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2035     ;;
2036   esac >> confcache
2037 if cmp -s $cache_file confcache; then
2038   :
2039 else
2040   if test -w $cache_file; then
2041     echo "updating cache $cache_file"
2042     cat confcache > $cache_file
2043   else
2044     echo "not updating unwritable cache $cache_file"
2045   fi
2046 fi
2047 rm -f confcache
2048
2049 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2050
2051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2052 # Let make expand exec_prefix.
2053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2054
2055 # Any assignment to VPATH causes Sun make to only execute
2056 # the first set of double-colon rules, so remove it if not needed.
2057 # If there is a colon in the path, we need to keep it.
2058 if test "x$srcdir" = x.; then
2059   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2060 fi
2061
2062 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2063
2064 DEFS=-DHAVE_CONFIG_H
2065
2066 # Without the "./", some shells look in PATH for config.status.
2067 : ${CONFIG_STATUS=./config.status}
2068
2069 echo creating $CONFIG_STATUS
2070 rm -f $CONFIG_STATUS
2071 cat > $CONFIG_STATUS <<EOF
2072 #! /bin/sh
2073 # Generated automatically by configure.
2074 # Run this file to recreate the current configuration.
2075 # This directory was configured as follows,
2076 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2077 #
2078 # $0 $ac_configure_args
2079 #
2080 # Compiler output produced by configure, useful for debugging
2081 # configure, is in ./config.log if it exists.
2082
2083 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2084 for ac_option
2085 do
2086   case "\$ac_option" in
2087   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2088     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2089     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2090   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2091     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2092     exit 0 ;;
2093   -help | --help | --hel | --he | --h)
2094     echo "\$ac_cs_usage"; exit 0 ;;
2095   *) echo "\$ac_cs_usage"; exit 1 ;;
2096   esac
2097 done
2098
2099 ac_given_srcdir=$srcdir
2100 ac_given_INSTALL="$INSTALL"
2101
2102 trap 'rm -fr `echo "
2103 Makefile
2104 src/Makefile
2105 doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2106 EOF
2107 cat >> $CONFIG_STATUS <<EOF
2108
2109 # Protect against being on the right side of a sed subst in config.status.
2110 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2111  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2112 $ac_vpsub
2113 $extrasub
2114 s%@SHELL@%$SHELL%g
2115 s%@CFLAGS@%$CFLAGS%g
2116 s%@CPPFLAGS@%$CPPFLAGS%g
2117 s%@CXXFLAGS@%$CXXFLAGS%g
2118 s%@FFLAGS@%$FFLAGS%g
2119 s%@DEFS@%$DEFS%g
2120 s%@LDFLAGS@%$LDFLAGS%g
2121 s%@LIBS@%$LIBS%g
2122 s%@exec_prefix@%$exec_prefix%g
2123 s%@prefix@%$prefix%g
2124 s%@program_transform_name@%$program_transform_name%g
2125 s%@bindir@%$bindir%g
2126 s%@sbindir@%$sbindir%g
2127 s%@libexecdir@%$libexecdir%g
2128 s%@datadir@%$datadir%g
2129 s%@sysconfdir@%$sysconfdir%g
2130 s%@sharedstatedir@%$sharedstatedir%g
2131 s%@localstatedir@%$localstatedir%g
2132 s%@libdir@%$libdir%g
2133 s%@includedir@%$includedir%g
2134 s%@oldincludedir@%$oldincludedir%g
2135 s%@infodir@%$infodir%g
2136 s%@mandir@%$mandir%g
2137 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2138 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2139 s%@INSTALL_DATA@%$INSTALL_DATA%g
2140 s%@PACKAGE@%$PACKAGE%g
2141 s%@VERSION@%$VERSION%g
2142 s%@ACLOCAL@%$ACLOCAL%g
2143 s%@AUTOCONF@%$AUTOCONF%g
2144 s%@AUTOMAKE@%$AUTOMAKE%g
2145 s%@AUTOHEADER@%$AUTOHEADER%g
2146 s%@MAKEINFO@%$MAKEINFO%g
2147 s%@SET_MAKE@%$SET_MAKE%g
2148 s%@CC@%$CC%g
2149 s%@CPP@%$CPP%g
2150 s%@YACC@%$YACC%g
2151 s%@LEX@%$LEX%g
2152 s%@LEXLIB@%$LEXLIB%g
2153 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2154 s%@RM@%$RM%g
2155 s%@MV@%$MV%g
2156 s%@TAR@%$TAR%g
2157 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2158 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2159 s%@GLIB_LIBS@%$GLIB_LIBS%g
2160 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2161 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2162 s%@MAINT@%$MAINT%g
2163
2164 CEOF
2165 EOF
2166
2167 cat >> $CONFIG_STATUS <<\EOF
2168
2169 # Split the substitutions into bite-sized pieces for seds with
2170 # small command number limits, like on Digital OSF/1 and HP-UX.
2171 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2172 ac_file=1 # Number of current file.
2173 ac_beg=1 # First line for current file.
2174 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2175 ac_more_lines=:
2176 ac_sed_cmds=""
2177 while $ac_more_lines; do
2178   if test $ac_beg -gt 1; then
2179     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2180   else
2181     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2182   fi
2183   if test ! -s conftest.s$ac_file; then
2184     ac_more_lines=false
2185     rm -f conftest.s$ac_file
2186   else
2187     if test -z "$ac_sed_cmds"; then
2188       ac_sed_cmds="sed -f conftest.s$ac_file"
2189     else
2190       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2191     fi
2192     ac_file=`expr $ac_file + 1`
2193     ac_beg=$ac_end
2194     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2195   fi
2196 done
2197 if test -z "$ac_sed_cmds"; then
2198   ac_sed_cmds=cat
2199 fi
2200 EOF
2201
2202 cat >> $CONFIG_STATUS <<EOF
2203
2204 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2205 src/Makefile
2206 doc/Makefile"}
2207 EOF
2208 cat >> $CONFIG_STATUS <<\EOF
2209 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2210   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2211   case "$ac_file" in
2212   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2213        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2214   *) ac_file_in="${ac_file}.in" ;;
2215   esac
2216
2217   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2218
2219   # Remove last slash and all that follows it.  Not all systems have dirname.
2220   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2221   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2222     # The file is in a subdirectory.
2223     test ! -d "$ac_dir" && mkdir "$ac_dir"
2224     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2225     # A "../" for each directory in $ac_dir_suffix.
2226     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2227   else
2228     ac_dir_suffix= ac_dots=
2229   fi
2230
2231   case "$ac_given_srcdir" in
2232   .)  srcdir=.
2233       if test -z "$ac_dots"; then top_srcdir=.
2234       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2235   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2236   *) # Relative path.
2237     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2238     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2239   esac
2240
2241   case "$ac_given_INSTALL" in
2242   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2243   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2244   esac
2245
2246   echo creating "$ac_file"
2247   rm -f "$ac_file"
2248   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2249   case "$ac_file" in
2250   *Makefile*) ac_comsub="1i\\
2251 # $configure_input" ;;
2252   *) ac_comsub= ;;
2253   esac
2254
2255   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2256   sed -e "$ac_comsub
2257 s%@configure_input@%$configure_input%g
2258 s%@srcdir@%$srcdir%g
2259 s%@top_srcdir@%$top_srcdir%g
2260 s%@INSTALL@%$INSTALL%g
2261 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2262 fi; done
2263 rm -f conftest.s*
2264
2265 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2266 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2267 #
2268 # ac_d sets the value in "#define NAME VALUE" lines.
2269 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2270 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2271 ac_dC='\3'
2272 ac_dD='%g'
2273 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2274 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2275 ac_uB='\([      ]\)%\1#\2define\3'
2276 ac_uC=' '
2277 ac_uD='\4%g'
2278 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2279 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2280 ac_eB='$%\1#\2define\3'
2281 ac_eC=' '
2282 ac_eD='%g'
2283
2284 if test "${CONFIG_HEADERS+set}" != set; then
2285 EOF
2286 cat >> $CONFIG_STATUS <<EOF
2287   CONFIG_HEADERS="config.h"
2288 EOF
2289 cat >> $CONFIG_STATUS <<\EOF
2290 fi
2291 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2292   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2293   case "$ac_file" in
2294   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2295        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2296   *) ac_file_in="${ac_file}.in" ;;
2297   esac
2298
2299   echo creating $ac_file
2300
2301   rm -f conftest.frag conftest.in conftest.out
2302   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2303   cat $ac_file_inputs > conftest.in
2304
2305 EOF
2306
2307 # Transform confdefs.h into a sed script conftest.vals that substitutes
2308 # the proper values into config.h.in to produce config.h.  And first:
2309 # Protect against being on the right side of a sed subst in config.status.
2310 # Protect against being in an unquoted here document in config.status.
2311 rm -f conftest.vals
2312 cat > conftest.hdr <<\EOF
2313 s/[\\&%]/\\&/g
2314 s%[\\$`]%\\&%g
2315 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2316 s%ac_d%ac_u%gp
2317 s%ac_u%ac_e%gp
2318 EOF
2319 sed -n -f conftest.hdr confdefs.h > conftest.vals
2320 rm -f conftest.hdr
2321
2322 # This sed command replaces #undef with comments.  This is necessary, for
2323 # example, in the case of _POSIX_SOURCE, which is predefined and required
2324 # on some systems where configure will not decide to define it.
2325 cat >> conftest.vals <<\EOF
2326 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2327 EOF
2328
2329 # Break up conftest.vals because some shells have a limit on
2330 # the size of here documents, and old seds have small limits too.
2331
2332 rm -f conftest.tail
2333 while :
2334 do
2335   ac_lines=`grep -c . conftest.vals`
2336   # grep -c gives empty output for an empty file on some AIX systems.
2337   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2338   # Write a limited-size here document to conftest.frag.
2339   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2340   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2341   echo 'CEOF
2342   sed -f conftest.frag conftest.in > conftest.out
2343   rm -f conftest.in
2344   mv conftest.out conftest.in
2345 ' >> $CONFIG_STATUS
2346   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2347   rm -f conftest.vals
2348   mv conftest.tail conftest.vals
2349 done
2350 rm -f conftest.vals
2351
2352 cat >> $CONFIG_STATUS <<\EOF
2353   rm -f conftest.frag conftest.h
2354   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2355   cat conftest.in >> conftest.h
2356   rm -f conftest.in
2357   if cmp -s $ac_file conftest.h 2>/dev/null; then
2358     echo "$ac_file is unchanged"
2359     rm -f conftest.h
2360   else
2361     # Remove last slash and all that follows it.  Not all systems have dirname.
2362       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2363       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2364       # The file is in a subdirectory.
2365       test ! -d "$ac_dir" && mkdir "$ac_dir"
2366     fi
2367     rm -f $ac_file
2368     mv conftest.h $ac_file
2369   fi
2370 fi; done
2371
2372 EOF
2373 cat >> $CONFIG_STATUS <<EOF
2374
2375
2376 EOF
2377 cat >> $CONFIG_STATUS <<\EOF
2378 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2379
2380 exit 0
2381 EOF
2382 chmod +x $CONFIG_STATUS
2383 rm -fr confdefs* $ac_clean_files
2384 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2385