]> git.draconx.ca Git - gob-dx.git/blob - configure
Release 0.90.1
[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 PACKAGE=gob
705
706 VERSION=0.90.1
707
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710 fi
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
713 EOF
714
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
717 EOF
718
719
720
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf.  Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
728    ACLOCAL=aclocal
729    echo "$ac_t""found" 1>&6
730 else
731    ACLOCAL="$missing_dir/missing aclocal"
732    echo "$ac_t""missing" 1>&6
733 fi
734
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf.  Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
741    AUTOCONF=autoconf
742    echo "$ac_t""found" 1>&6
743 else
744    AUTOCONF="$missing_dir/missing autoconf"
745    echo "$ac_t""missing" 1>&6
746 fi
747
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf.  Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
754    AUTOMAKE=automake
755    echo "$ac_t""found" 1>&6
756 else
757    AUTOMAKE="$missing_dir/missing automake"
758    echo "$ac_t""missing" 1>&6
759 fi
760
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf.  Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767    AUTOHEADER=autoheader
768    echo "$ac_t""found" 1>&6
769 else
770    AUTOHEADER="$missing_dir/missing autoheader"
771    echo "$ac_t""missing" 1>&6
772 fi
773
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf.  Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
780    MAKEINFO=makeinfo
781    echo "$ac_t""found" 1>&6
782 else
783    MAKEINFO="$missing_dir/missing makeinfo"
784    echo "$ac_t""missing" 1>&6
785 fi
786
787
788
789 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794   echo $ac_n "(cached) $ac_c" 1>&6
795 else
796   if test -n "$CC"; then
797   ac_cv_prog_CC="$CC" # Let the user override the test.
798 else
799   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
800   ac_dummy="$PATH"
801   for ac_dir in $ac_dummy; do
802     test -z "$ac_dir" && ac_dir=.
803     if test -f $ac_dir/$ac_word; then
804       ac_cv_prog_CC="gcc"
805       break
806     fi
807   done
808   IFS="$ac_save_ifs"
809 fi
810 fi
811 CC="$ac_cv_prog_CC"
812 if test -n "$CC"; then
813   echo "$ac_t""$CC" 1>&6
814 else
815   echo "$ac_t""no" 1>&6
816 fi
817
818 if test -z "$CC"; then
819   # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824   echo $ac_n "(cached) $ac_c" 1>&6
825 else
826   if test -n "$CC"; then
827   ac_cv_prog_CC="$CC" # Let the user override the test.
828 else
829   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
830   ac_prog_rejected=no
831   ac_dummy="$PATH"
832   for ac_dir in $ac_dummy; do
833     test -z "$ac_dir" && ac_dir=.
834     if test -f $ac_dir/$ac_word; then
835       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
836         ac_prog_rejected=yes
837         continue
838       fi
839       ac_cv_prog_CC="cc"
840       break
841     fi
842   done
843   IFS="$ac_save_ifs"
844 if test $ac_prog_rejected = yes; then
845   # We found a bogon in the path, so make sure we never use it.
846   set dummy $ac_cv_prog_CC
847   shift
848   if test $# -gt 0; then
849     # We chose a different compiler from the bogus one.
850     # However, it has the same basename, so the bogon will be chosen
851     # first if we set CC to just the basename; use the full file name.
852     shift
853     set dummy "$ac_dir/$ac_word" "$@"
854     shift
855     ac_cv_prog_CC="$@"
856   fi
857 fi
858 fi
859 fi
860 CC="$ac_cv_prog_CC"
861 if test -n "$CC"; then
862   echo "$ac_t""$CC" 1>&6
863 else
864   echo "$ac_t""no" 1>&6
865 fi
866
867   if test -z "$CC"; then
868     case "`uname -s`" in
869     *win32* | *WIN32*)
870       # Extract the first word of "cl", so it can be a program name with args.
871 set dummy cl; ac_word=$2
872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
873 echo "configure:874: checking for $ac_word" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
875   echo $ac_n "(cached) $ac_c" 1>&6
876 else
877   if test -n "$CC"; then
878   ac_cv_prog_CC="$CC" # Let the user override the test.
879 else
880   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
881   ac_dummy="$PATH"
882   for ac_dir in $ac_dummy; do
883     test -z "$ac_dir" && ac_dir=.
884     if test -f $ac_dir/$ac_word; then
885       ac_cv_prog_CC="cl"
886       break
887     fi
888   done
889   IFS="$ac_save_ifs"
890 fi
891 fi
892 CC="$ac_cv_prog_CC"
893 if test -n "$CC"; then
894   echo "$ac_t""$CC" 1>&6
895 else
896   echo "$ac_t""no" 1>&6
897 fi
898  ;;
899     esac
900   fi
901   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
902 fi
903
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
906
907 ac_ext=c
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp='$CPP $CPPFLAGS'
910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling=$ac_cv_prog_cc_cross
913
914 cat > conftest.$ac_ext << EOF
915
916 #line 917 "configure"
917 #include "confdefs.h"
918
919 main(){return(0);}
920 EOF
921 if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
922   ac_cv_prog_cc_works=yes
923   # If we can't run a trivial program, we are probably using a cross compiler.
924   if (./conftest; exit) 2>/dev/null; then
925     ac_cv_prog_cc_cross=no
926   else
927     ac_cv_prog_cc_cross=yes
928   fi
929 else
930   echo "configure: failed program was:" >&5
931   cat conftest.$ac_ext >&5
932   ac_cv_prog_cc_works=no
933 fi
934 rm -fr conftest*
935 ac_ext=c
936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940 cross_compiling=$ac_cv_prog_cc_cross
941
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no; then
944   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
945 fi
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling=$ac_cv_prog_cc_cross
950
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954   echo $ac_n "(cached) $ac_c" 1>&6
955 else
956   cat > conftest.c <<EOF
957 #ifdef __GNUC__
958   yes;
959 #endif
960 EOF
961 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
962   ac_cv_prog_gcc=yes
963 else
964   ac_cv_prog_gcc=no
965 fi
966 fi
967
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
969
970 if test $ac_cv_prog_gcc = yes; then
971   GCC=yes
972 else
973   GCC=
974 fi
975
976 ac_test_CFLAGS="${CFLAGS+set}"
977 ac_save_CFLAGS="$CFLAGS"
978 CFLAGS=
979 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${CC-cc} accepts -g" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
982   echo $ac_n "(cached) $ac_c" 1>&6
983 else
984   echo 'void f(){}' > conftest.c
985 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
986   ac_cv_prog_cc_g=yes
987 else
988   ac_cv_prog_cc_g=no
989 fi
990 rm -f conftest*
991
992 fi
993
994 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
995 if test "$ac_test_CFLAGS" = set; then
996   CFLAGS="$ac_save_CFLAGS"
997 elif test $ac_cv_prog_cc_g = yes; then
998   if test "$GCC" = yes; then
999     CFLAGS="-g -O2"
1000   else
1001     CFLAGS="-g"
1002   fi
1003 else
1004   if test "$GCC" = yes; then
1005     CFLAGS="-O2"
1006   else
1007     CFLAGS=
1008   fi
1009 fi
1010
1011 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1012 echo "configure:1013: checking how to run the C preprocessor" >&5
1013 # On Suns, sometimes $CPP names a directory.
1014 if test -n "$CPP" && test -d "$CPP"; then
1015   CPP=
1016 fi
1017 if test -z "$CPP"; then
1018 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1019   echo $ac_n "(cached) $ac_c" 1>&6
1020 else
1021     # This must be in double quotes, not single quotes, because CPP may get
1022   # substituted into the Makefile and "${CC-cc}" will confuse make.
1023   CPP="${CC-cc} -E"
1024   # On the NeXT, cc -E runs the code through the compiler's parser,
1025   # not just through cpp.
1026   cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029 #include <assert.h>
1030 Syntax Error
1031 EOF
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1036   :
1037 else
1038   echo "$ac_err" >&5
1039   echo "configure: failed program was:" >&5
1040   cat conftest.$ac_ext >&5
1041   rm -rf conftest*
1042   CPP="${CC-cc} -E -traditional-cpp"
1043   cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 #include <assert.h>
1047 Syntax Error
1048 EOF
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1053   :
1054 else
1055   echo "$ac_err" >&5
1056   echo "configure: failed program was:" >&5
1057   cat conftest.$ac_ext >&5
1058   rm -rf conftest*
1059   CPP="${CC-cc} -nologo -E"
1060   cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1063 #include <assert.h>
1064 Syntax Error
1065 EOF
1066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067 { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069 if test -z "$ac_err"; then
1070   :
1071 else
1072   echo "$ac_err" >&5
1073   echo "configure: failed program was:" >&5
1074   cat conftest.$ac_ext >&5
1075   rm -rf conftest*
1076   CPP=/lib/cpp
1077 fi
1078 rm -f conftest*
1079 fi
1080 rm -f conftest*
1081 fi
1082 rm -f conftest*
1083   ac_cv_prog_CPP="$CPP"
1084 fi
1085   CPP="$ac_cv_prog_CPP"
1086 else
1087   ac_cv_prog_CPP="$CPP"
1088 fi
1089 echo "$ac_t""$CPP" 1>&6
1090
1091 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1092 echo "configure:1093: checking for ANSI C header files" >&5
1093 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1094   echo $ac_n "(cached) $ac_c" 1>&6
1095 else
1096   cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1099 #include <stdlib.h>
1100 #include <stdarg.h>
1101 #include <string.h>
1102 #include <float.h>
1103 EOF
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1108   rm -rf conftest*
1109   ac_cv_header_stdc=yes
1110 else
1111   echo "$ac_err" >&5
1112   echo "configure: failed program was:" >&5
1113   cat conftest.$ac_ext >&5
1114   rm -rf conftest*
1115   ac_cv_header_stdc=no
1116 fi
1117 rm -f conftest*
1118
1119 if test $ac_cv_header_stdc = yes; then
1120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1121 cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1124 #include <string.h>
1125 EOF
1126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1127   egrep "memchr" >/dev/null 2>&1; then
1128   :
1129 else
1130   rm -rf conftest*
1131   ac_cv_header_stdc=no
1132 fi
1133 rm -f conftest*
1134
1135 fi
1136
1137 if test $ac_cv_header_stdc = yes; then
1138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1142 #include <stdlib.h>
1143 EOF
1144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1145   egrep "free" >/dev/null 2>&1; then
1146   :
1147 else
1148   rm -rf conftest*
1149   ac_cv_header_stdc=no
1150 fi
1151 rm -f conftest*
1152
1153 fi
1154
1155 if test $ac_cv_header_stdc = yes; then
1156   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1157 if test "$cross_compiling" = yes; then
1158   :
1159 else
1160   cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1163 #include <ctype.h>
1164 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1165 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1167 int main () { int i; for (i = 0; i < 256; i++)
1168 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1169 exit (0); }
1170
1171 EOF
1172 if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1173 then
1174   :
1175 else
1176   echo "configure: failed program was:" >&5
1177   cat conftest.$ac_ext >&5
1178   rm -fr conftest*
1179   ac_cv_header_stdc=no
1180 fi
1181 rm -fr conftest*
1182 fi
1183
1184 fi
1185 fi
1186
1187 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1188 if test $ac_cv_header_stdc = yes; then
1189   cat >> confdefs.h <<\EOF
1190 #define STDC_HEADERS 1
1191 EOF
1192
1193 fi
1194
1195 for ac_prog in 'bison -y' byacc
1196 do
1197 # Extract the first word of "$ac_prog", so it can be a program name with args.
1198 set dummy $ac_prog; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1202   echo $ac_n "(cached) $ac_c" 1>&6
1203 else
1204   if test -n "$YACC"; then
1205   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1206 else
1207   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1208   ac_dummy="$PATH"
1209   for ac_dir in $ac_dummy; do
1210     test -z "$ac_dir" && ac_dir=.
1211     if test -f $ac_dir/$ac_word; then
1212       ac_cv_prog_YACC="$ac_prog"
1213       break
1214     fi
1215   done
1216   IFS="$ac_save_ifs"
1217 fi
1218 fi
1219 YACC="$ac_cv_prog_YACC"
1220 if test -n "$YACC"; then
1221   echo "$ac_t""$YACC" 1>&6
1222 else
1223   echo "$ac_t""no" 1>&6
1224 fi
1225
1226 test -n "$YACC" && break
1227 done
1228 test -n "$YACC" || YACC="yacc"
1229
1230 missing_dir=`cd $ac_aux_dir && pwd`
1231 for ac_prog in flex lex
1232 do
1233 # Extract the first word of "$ac_prog", so it can be a program name with args.
1234 set dummy $ac_prog; ac_word=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1238   echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240   if test -n "$LEX"; then
1241   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1242 else
1243   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1244   ac_dummy="$PATH"
1245   for ac_dir in $ac_dummy; do
1246     test -z "$ac_dir" && ac_dir=.
1247     if test -f $ac_dir/$ac_word; then
1248       ac_cv_prog_LEX="$ac_prog"
1249       break
1250     fi
1251   done
1252   IFS="$ac_save_ifs"
1253 fi
1254 fi
1255 LEX="$ac_cv_prog_LEX"
1256 if test -n "$LEX"; then
1257   echo "$ac_t""$LEX" 1>&6
1258 else
1259   echo "$ac_t""no" 1>&6
1260 fi
1261
1262 test -n "$LEX" && break
1263 done
1264 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1265
1266 # Extract the first word of "flex", so it can be a program name with args.
1267 set dummy flex; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1271   echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273   if test -n "$LEX"; then
1274   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1275 else
1276   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1277   ac_dummy="$PATH"
1278   for ac_dir in $ac_dummy; do
1279     test -z "$ac_dir" && ac_dir=.
1280     if test -f $ac_dir/$ac_word; then
1281       ac_cv_prog_LEX="flex"
1282       break
1283     fi
1284   done
1285   IFS="$ac_save_ifs"
1286   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1287 fi
1288 fi
1289 LEX="$ac_cv_prog_LEX"
1290 if test -n "$LEX"; then
1291   echo "$ac_t""$LEX" 1>&6
1292 else
1293   echo "$ac_t""no" 1>&6
1294 fi
1295
1296 if test -z "$LEXLIB"
1297 then
1298   case "$LEX" in
1299   flex*) ac_lib=fl ;;
1300   *) ac_lib=l ;;
1301   esac
1302   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1303 echo "configure:1304: checking for yywrap in -l$ac_lib" >&5
1304 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   ac_save_LIBS="$LIBS"
1309 LIBS="-l$ac_lib  $LIBS"
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 /* Override any gcc2 internal prototype to avoid an error.  */
1314 /* We use char because int might match the return type of a gcc2
1315     builtin and then its argument prototype would still apply.  */
1316 char yywrap();
1317
1318 int main() {
1319 yywrap()
1320 ; return 0; }
1321 EOF
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1323   rm -rf conftest*
1324   eval "ac_cv_lib_$ac_lib_var=yes"
1325 else
1326   echo "configure: failed program was:" >&5
1327   cat conftest.$ac_ext >&5
1328   rm -rf conftest*
1329   eval "ac_cv_lib_$ac_lib_var=no"
1330 fi
1331 rm -f conftest*
1332 LIBS="$ac_save_LIBS"
1333
1334 fi
1335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1336   echo "$ac_t""yes" 1>&6
1337   LEXLIB="-l$ac_lib"
1338 else
1339   echo "$ac_t""no" 1>&6
1340 fi
1341
1342 fi
1343
1344 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1345 echo "configure:1346: checking lex output file root" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1347   echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349   # The minimal lex program is just a single line: %%.  But some broken lexes
1350 # (Solaris, I think it was) want two %% lines, so accommodate them.
1351 echo '%%
1352 %%' | $LEX
1353 if test -f lex.yy.c; then
1354   ac_cv_prog_lex_root=lex.yy
1355 elif test -f lexyy.c; then
1356   ac_cv_prog_lex_root=lexyy
1357 else
1358   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1359 fi
1360 fi
1361
1362 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1363 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1364
1365 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1366 echo "configure:1367: checking whether yytext is a pointer" >&5
1367 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1368   echo $ac_n "(cached) $ac_c" 1>&6
1369 else
1370   # POSIX says lex can declare yytext either as a pointer or an array; the
1371 # default is implementation-dependent. Figure out which it is, since
1372 # not all implementations provide the %pointer and %array declarations.
1373 ac_cv_prog_lex_yytext_pointer=no
1374 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1375 ac_save_LIBS="$LIBS"
1376 LIBS="$LIBS $LEXLIB"
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 `cat $LEX_OUTPUT_ROOT.c`
1381 int main() {
1382
1383 ; return 0; }
1384 EOF
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386   rm -rf conftest*
1387   ac_cv_prog_lex_yytext_pointer=yes
1388 else
1389   echo "configure: failed program was:" >&5
1390   cat conftest.$ac_ext >&5
1391 fi
1392 rm -f conftest*
1393 LIBS="$ac_save_LIBS"
1394 rm -f "${LEX_OUTPUT_ROOT}.c"
1395
1396 fi
1397
1398 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1400   cat >> confdefs.h <<\EOF
1401 #define YYTEXT_POINTER 1
1402 EOF
1403
1404 fi
1405
1406 # Find a good install program.  We prefer a C program (faster),
1407 # so one script is as good as another.  But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1412 # AIX /bin/install
1413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1416 # ./install, which can be erroneously created by make from ./install.sh.
1417 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1418 echo "configure:1419: checking for a BSD compatible install" >&5
1419 if test -z "$INSTALL"; then
1420 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1421   echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1424   for ac_dir in $PATH; do
1425     # Account for people who put trailing slashes in PATH elements.
1426     case "$ac_dir/" in
1427     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1428     *)
1429       # OSF1 and SCO ODT 3.0 have their own names for install.
1430       # Don't use installbsd from OSF since it installs stuff as root
1431       # by default.
1432       for ac_prog in ginstall scoinst install; do
1433         if test -f $ac_dir/$ac_prog; then
1434           if test $ac_prog = install &&
1435             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1436             # AIX install.  It has an incompatible calling convention.
1437             :
1438           else
1439             ac_cv_path_install="$ac_dir/$ac_prog -c"
1440             break 2
1441           fi
1442         fi
1443       done
1444       ;;
1445     esac
1446   done
1447   IFS="$ac_save_IFS"
1448
1449 fi
1450   if test "${ac_cv_path_install+set}" = set; then
1451     INSTALL="$ac_cv_path_install"
1452   else
1453     # As a last resort, use the slow shell script.  We don't cache a
1454     # path for INSTALL within a source directory, because that will
1455     # break other packages using the cache if that directory is
1456     # removed, or if the path is relative.
1457     INSTALL="$ac_install_sh"
1458   fi
1459 fi
1460 echo "$ac_t""$INSTALL" 1>&6
1461
1462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1463 # It thinks the first close brace ends the variable substitution.
1464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1465
1466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1467
1468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1469
1470 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1471 echo "configure:1472: checking how to run the C preprocessor" >&5
1472 # On Suns, sometimes $CPP names a directory.
1473 if test -n "$CPP" && test -d "$CPP"; then
1474   CPP=
1475 fi
1476 if test -z "$CPP"; then
1477 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1478   echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480     # This must be in double quotes, not single quotes, because CPP may get
1481   # substituted into the Makefile and "${CC-cc}" will confuse make.
1482   CPP="${CC-cc} -E"
1483   # On the NeXT, cc -E runs the code through the compiler's parser,
1484   # not just through cpp.
1485   cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <assert.h>
1489 Syntax Error
1490 EOF
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1495   :
1496 else
1497   echo "$ac_err" >&5
1498   echo "configure: failed program was:" >&5
1499   cat conftest.$ac_ext >&5
1500   rm -rf conftest*
1501   CPP="${CC-cc} -E -traditional-cpp"
1502   cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <assert.h>
1506 Syntax Error
1507 EOF
1508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1511 if test -z "$ac_err"; then
1512   :
1513 else
1514   echo "$ac_err" >&5
1515   echo "configure: failed program was:" >&5
1516   cat conftest.$ac_ext >&5
1517   rm -rf conftest*
1518   CPP="${CC-cc} -nologo -E"
1519   cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <assert.h>
1523 Syntax Error
1524 EOF
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1528 if test -z "$ac_err"; then
1529   :
1530 else
1531   echo "$ac_err" >&5
1532   echo "configure: failed program was:" >&5
1533   cat conftest.$ac_ext >&5
1534   rm -rf conftest*
1535   CPP=/lib/cpp
1536 fi
1537 rm -f conftest*
1538 fi
1539 rm -f conftest*
1540 fi
1541 rm -f conftest*
1542   ac_cv_prog_CPP="$CPP"
1543 fi
1544   CPP="$ac_cv_prog_CPP"
1545 else
1546   ac_cv_prog_CPP="$CPP"
1547 fi
1548 echo "$ac_t""$CPP" 1>&6
1549
1550 # Extract the first word of "rm", so it can be a program name with args.
1551 set dummy rm; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1555   echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557   case "$RM" in
1558   /*)
1559   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1560   ;;
1561   ?:/*)                  
1562   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1563   ;;
1564   *)
1565   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1566   ac_dummy="$PATH"
1567   for ac_dir in $ac_dummy; do 
1568     test -z "$ac_dir" && ac_dir=.
1569     if test -f $ac_dir/$ac_word; then
1570       ac_cv_path_RM="$ac_dir/$ac_word"
1571       break
1572     fi
1573   done
1574   IFS="$ac_save_ifs"
1575   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1576   ;;
1577 esac
1578 fi
1579 RM="$ac_cv_path_RM"
1580 if test -n "$RM"; then
1581   echo "$ac_t""$RM" 1>&6
1582 else
1583   echo "$ac_t""no" 1>&6
1584 fi
1585
1586 # Extract the first word of "mv", so it can be a program name with args.
1587 set dummy mv; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1591   echo $ac_n "(cached) $ac_c" 1>&6
1592 else
1593   case "$MV" in
1594   /*)
1595   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1596   ;;
1597   ?:/*)                  
1598   ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1599   ;;
1600   *)
1601   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1602   ac_dummy="$PATH"
1603   for ac_dir in $ac_dummy; do 
1604     test -z "$ac_dir" && ac_dir=.
1605     if test -f $ac_dir/$ac_word; then
1606       ac_cv_path_MV="$ac_dir/$ac_word"
1607       break
1608     fi
1609   done
1610   IFS="$ac_save_ifs"
1611   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1612   ;;
1613 esac
1614 fi
1615 MV="$ac_cv_path_MV"
1616 if test -n "$MV"; then
1617   echo "$ac_t""$MV" 1>&6
1618 else
1619   echo "$ac_t""no" 1>&6
1620 fi
1621
1622 # Extract the first word of "tar", so it can be a program name with args.
1623 set dummy tar; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1627   echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629   case "$TAR" in
1630   /*)
1631   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1632   ;;
1633   ?:/*)                  
1634   ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1635   ;;
1636   *)
1637   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1638   ac_dummy="$PATH"
1639   for ac_dir in $ac_dummy; do 
1640     test -z "$ac_dir" && ac_dir=.
1641     if test -f $ac_dir/$ac_word; then
1642       ac_cv_path_TAR="$ac_dir/$ac_word"
1643       break
1644     fi
1645   done
1646   IFS="$ac_save_ifs"
1647   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1648   ;;
1649 esac
1650 fi
1651 TAR="$ac_cv_path_TAR"
1652 if test -n "$TAR"; then
1653   echo "$ac_t""$TAR" 1>&6
1654 else
1655   echo "$ac_t""no" 1>&6
1656 fi
1657
1658 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1659 if test "${with_glib_prefix+set}" = set; then
1660   withval="$with_glib_prefix"
1661   glib_config_prefix="$withval"
1662 else
1663   glib_config_prefix=""
1664 fi
1665
1666 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1667 if test "${with_glib_exec_prefix+set}" = set; then
1668   withval="$with_glib_exec_prefix"
1669   glib_config_exec_prefix="$withval"
1670 else
1671   glib_config_exec_prefix=""
1672 fi
1673
1674 # Check whether --enable-glibtest or --disable-glibtest was given.
1675 if test "${enable_glibtest+set}" = set; then
1676   enableval="$enable_glibtest"
1677   :
1678 else
1679   enable_glibtest=yes
1680 fi
1681
1682
1683   if test x$glib_config_exec_prefix != x ; then
1684      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1685      if test x${GLIB_CONFIG+set} != xset ; then
1686         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1687      fi
1688   fi
1689   if test x$glib_config_prefix != x ; then
1690      glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1691      if test x${GLIB_CONFIG+set} != xset ; then
1692         GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1693      fi
1694   fi
1695
1696   for module in . 
1697   do
1698       case "$module" in
1699          gmodule) 
1700              glib_config_args="$glib_config_args gmodule"
1701          ;;
1702          gthread) 
1703              glib_config_args="$glib_config_args gthread"
1704          ;;
1705       esac
1706   done
1707
1708   # Extract the first word of "glib-config", so it can be a program name with args.
1709 set dummy glib-config; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1713   echo $ac_n "(cached) $ac_c" 1>&6
1714 else
1715   case "$GLIB_CONFIG" in
1716   /*)
1717   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1718   ;;
1719   ?:/*)                  
1720   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1721   ;;
1722   *)
1723   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1724   ac_dummy="$PATH"
1725   for ac_dir in $ac_dummy; do 
1726     test -z "$ac_dir" && ac_dir=.
1727     if test -f $ac_dir/$ac_word; then
1728       ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1729       break
1730     fi
1731   done
1732   IFS="$ac_save_ifs"
1733   test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1734   ;;
1735 esac
1736 fi
1737 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1738 if test -n "$GLIB_CONFIG"; then
1739   echo "$ac_t""$GLIB_CONFIG" 1>&6
1740 else
1741   echo "$ac_t""no" 1>&6
1742 fi
1743
1744   min_glib_version=1.2.0
1745   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1746 echo "configure:1747: checking for GLIB - version >= $min_glib_version" >&5
1747   no_glib=""
1748   if test "$GLIB_CONFIG" = "no" ; then
1749     no_glib=yes
1750   else
1751     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1752     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1753     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1754            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1755     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1756            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1757     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1758            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1759     if test "x$enable_glibtest" = "xyes" ; then
1760       ac_save_CFLAGS="$CFLAGS"
1761       ac_save_LIBS="$LIBS"
1762       CFLAGS="$CFLAGS $GLIB_CFLAGS"
1763       LIBS="$GLIB_LIBS $LIBS"
1764       rm -f conf.glibtest
1765       if test "$cross_compiling" = yes; then
1766   echo $ac_n "cross compiling; assumed OK... $ac_c"
1767 else
1768   cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771
1772 #include <glib.h>
1773 #include <stdio.h>
1774 #include <stdlib.h>
1775
1776 int 
1777 main ()
1778 {
1779   int major, minor, micro;
1780   char *tmp_version;
1781
1782   system ("touch conf.glibtest");
1783
1784   /* HP/UX 9 (%@#!) writes to sscanf strings */
1785   tmp_version = g_strdup("$min_glib_version");
1786   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1787      printf("%s, bad version string\n", "$min_glib_version");
1788      exit(1);
1789    }
1790
1791   if ((glib_major_version != $glib_config_major_version) ||
1792       (glib_minor_version != $glib_config_minor_version) ||
1793       (glib_micro_version != $glib_config_micro_version))
1794     {
1795       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
1796              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1797              glib_major_version, glib_minor_version, glib_micro_version);
1798       printf ("*** was found! If glib-config was correct, then it is best\n");
1799       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1800       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1801       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1802       printf("*** required on your system.\n");
1803       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1804       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1805       printf("*** before re-running configure\n");
1806     } 
1807   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1808            (glib_minor_version != GLIB_MINOR_VERSION) ||
1809            (glib_micro_version != GLIB_MICRO_VERSION))
1810     {
1811       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1812              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1813       printf("*** library (version %d.%d.%d)\n",
1814              glib_major_version, glib_minor_version, glib_micro_version);
1815     }
1816   else
1817     {
1818       if ((glib_major_version > major) ||
1819         ((glib_major_version == major) && (glib_minor_version > minor)) ||
1820         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1821       {
1822         return 0;
1823        }
1824      else
1825       {
1826         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1827                glib_major_version, glib_minor_version, glib_micro_version);
1828         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1829                major, minor, micro);
1830         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1831         printf("***\n");
1832         printf("*** If you have already installed a sufficiently new version, this error\n");
1833         printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1834         printf("*** being found. The easiest way to fix this is to remove the old version\n");
1835         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1836         printf("*** correct copy of glib-config. (In this case, you will have to\n");
1837         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1838         printf("*** so that the correct libraries are found at run-time))\n");
1839       }
1840     }
1841   return 1;
1842 }
1843
1844 EOF
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1846 then
1847   :
1848 else
1849   echo "configure: failed program was:" >&5
1850   cat conftest.$ac_ext >&5
1851   rm -fr conftest*
1852   no_glib=yes
1853 fi
1854 rm -fr conftest*
1855 fi
1856
1857        CFLAGS="$ac_save_CFLAGS"
1858        LIBS="$ac_save_LIBS"
1859      fi
1860   fi
1861   if test "x$no_glib" = x ; then
1862      echo "$ac_t""yes" 1>&6
1863      :     
1864   else
1865      echo "$ac_t""no" 1>&6
1866      if test "$GLIB_CONFIG" = "no" ; then
1867        echo "*** The glib-config script installed by GLIB could not be found"
1868        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1869        echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1870        echo "*** full path to glib-config."
1871      else
1872        if test -f conf.glibtest ; then
1873         :
1874        else
1875           echo "*** Could not run GLIB test program, checking why..."
1876           CFLAGS="$CFLAGS $GLIB_CFLAGS"
1877           LIBS="$LIBS $GLIB_LIBS"
1878           cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881
1882 #include <glib.h>
1883 #include <stdio.h>
1884
1885 int main() {
1886  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
1887 ; return 0; }
1888 EOF
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1890   rm -rf conftest*
1891    echo "*** The test program compiled, but did not run. This usually means"
1892           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1893           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1894           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1895           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
1896           echo "*** is required on your system"
1897           echo "***"
1898           echo "*** If you have an old version installed, it is best to remove it, although"
1899           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1900           echo "***"
1901           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1902           echo "*** came with the system with the command"
1903           echo "***"
1904           echo "***    rpm --erase --nodeps gtk gtk-devel" 
1905 else
1906   echo "configure: failed program was:" >&5
1907   cat conftest.$ac_ext >&5
1908   rm -rf conftest*
1909    echo "*** The test program failed to compile or link. See the file config.log for the"
1910           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1911           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1912           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 
1913 fi
1914 rm -f conftest*
1915           CFLAGS="$ac_save_CFLAGS"
1916           LIBS="$ac_save_LIBS"
1917        fi
1918      fi
1919      GLIB_CFLAGS=""
1920      GLIB_LIBS=""
1921      :
1922   fi
1923   
1924   
1925   rm -f conf.glibtest
1926
1927 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
1928 echo "configure:1929: checking for poptGetContext in -lpopt" >&5
1929 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
1930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1931   echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933   ac_save_LIBS="$LIBS"
1934 LIBS="-lpopt  $LIBS"
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* Override any gcc2 internal prototype to avoid an error.  */
1939 /* We use char because int might match the return type of a gcc2
1940     builtin and then its argument prototype would still apply.  */
1941 char poptGetContext();
1942
1943 int main() {
1944 poptGetContext()
1945 ; return 0; }
1946 EOF
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1948   rm -rf conftest*
1949   eval "ac_cv_lib_$ac_lib_var=yes"
1950 else
1951   echo "configure: failed program was:" >&5
1952   cat conftest.$ac_ext >&5
1953   rm -rf conftest*
1954   eval "ac_cv_lib_$ac_lib_var=no"
1955 fi
1956 rm -f conftest*
1957 LIBS="$ac_save_LIBS"
1958
1959 fi
1960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1961   echo "$ac_t""yes" 1>&6
1962   POPT_LIB="-lreadline"
1963 else
1964   echo "$ac_t""no" 1>&6
1965 { echo "configure: error: Popt library not found" 1>&2; exit 1; }
1966 fi
1967
1968
1969
1970 #AM_PROG_LIBTOOL
1971
1972 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether to enable maintainer-specific portions of Makefiles" >&5
1974     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1975 if test "${enable_maintainer_mode+set}" = set; then
1976   enableval="$enable_maintainer_mode"
1977   USE_MAINTAINER_MODE=$enableval
1978 else
1979   USE_MAINTAINER_MODE=no
1980 fi
1981
1982   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1983   
1984
1985 if test $USE_MAINTAINER_MODE = yes; then
1986   MAINTAINER_MODE_TRUE=
1987   MAINTAINER_MODE_FALSE='#'
1988 else
1989   MAINTAINER_MODE_TRUE='#'
1990   MAINTAINER_MODE_FALSE=
1991 fi
1992   MAINT=$MAINTAINER_MODE_TRUE
1993   
1994
1995
1996
1997
1998
1999
2000 trap '' 1 2 15
2001 cat > confcache <<\EOF
2002 # This file is a shell script that caches the results of configure
2003 # tests run on this system so they can be shared between configure
2004 # scripts and configure runs.  It is not useful on other systems.
2005 # If it contains results you don't want to keep, you may remove or edit it.
2006 #
2007 # By default, configure uses ./config.cache as the cache file,
2008 # creating it if it does not exist already.  You can give configure
2009 # the --cache-file=FILE option to use a different cache file; that is
2010 # what configure does when it calls configure scripts in
2011 # subdirectories, so they share the cache.
2012 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2013 # config.status only pays attention to the cache file if you give it the
2014 # --recheck option to rerun configure.
2015 #
2016 EOF
2017 # The following way of writing the cache mishandles newlines in values,
2018 # but we know of no workaround that is simple, portable, and efficient.
2019 # So, don't put newlines in cache variables' values.
2020 # Ultrix sh set writes to stderr and can't be redirected directly,
2021 # and sets the high bit in the cache file unless we assign to the vars.
2022 (set) 2>&1 |
2023   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2024   *ac_space=\ *)
2025     # `set' does not quote correctly, so add quotes (double-quote substitution
2026     # turns \\\\ into \\, and sed turns \\ into \).
2027     sed -n \
2028       -e "s/'/'\\\\''/g" \
2029       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2030     ;;
2031   *)
2032     # `set' quotes correctly as required by POSIX, so do not add quotes.
2033     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2034     ;;
2035   esac >> confcache
2036 if cmp -s $cache_file confcache; then
2037   :
2038 else
2039   if test -w $cache_file; then
2040     echo "updating cache $cache_file"
2041     cat confcache > $cache_file
2042   else
2043     echo "not updating unwritable cache $cache_file"
2044   fi
2045 fi
2046 rm -f confcache
2047
2048 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2049
2050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2051 # Let make expand exec_prefix.
2052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2053
2054 # Any assignment to VPATH causes Sun make to only execute
2055 # the first set of double-colon rules, so remove it if not needed.
2056 # If there is a colon in the path, we need to keep it.
2057 if test "x$srcdir" = x.; then
2058   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2059 fi
2060
2061 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2062
2063 DEFS=-DHAVE_CONFIG_H
2064
2065 # Without the "./", some shells look in PATH for config.status.
2066 : ${CONFIG_STATUS=./config.status}
2067
2068 echo creating $CONFIG_STATUS
2069 rm -f $CONFIG_STATUS
2070 cat > $CONFIG_STATUS <<EOF
2071 #! /bin/sh
2072 # Generated automatically by configure.
2073 # Run this file to recreate the current configuration.
2074 # This directory was configured as follows,
2075 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2076 #
2077 # $0 $ac_configure_args
2078 #
2079 # Compiler output produced by configure, useful for debugging
2080 # configure, is in ./config.log if it exists.
2081
2082 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2083 for ac_option
2084 do
2085   case "\$ac_option" in
2086   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2087     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2088     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2089   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2090     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2091     exit 0 ;;
2092   -help | --help | --hel | --he | --h)
2093     echo "\$ac_cs_usage"; exit 0 ;;
2094   *) echo "\$ac_cs_usage"; exit 1 ;;
2095   esac
2096 done
2097
2098 ac_given_srcdir=$srcdir
2099 ac_given_INSTALL="$INSTALL"
2100
2101 trap 'rm -fr `echo "
2102 gob.spec
2103 Makefile
2104 src/Makefile
2105 doc/Makefile
2106 doc/gob.1 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2107 EOF
2108 cat >> $CONFIG_STATUS <<EOF
2109
2110 # Protect against being on the right side of a sed subst in config.status.
2111 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2112  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2113 $ac_vpsub
2114 $extrasub
2115 s%@SHELL@%$SHELL%g
2116 s%@CFLAGS@%$CFLAGS%g
2117 s%@CPPFLAGS@%$CPPFLAGS%g
2118 s%@CXXFLAGS@%$CXXFLAGS%g
2119 s%@FFLAGS@%$FFLAGS%g
2120 s%@DEFS@%$DEFS%g
2121 s%@LDFLAGS@%$LDFLAGS%g
2122 s%@LIBS@%$LIBS%g
2123 s%@exec_prefix@%$exec_prefix%g
2124 s%@prefix@%$prefix%g
2125 s%@program_transform_name@%$program_transform_name%g
2126 s%@bindir@%$bindir%g
2127 s%@sbindir@%$sbindir%g
2128 s%@libexecdir@%$libexecdir%g
2129 s%@datadir@%$datadir%g
2130 s%@sysconfdir@%$sysconfdir%g
2131 s%@sharedstatedir@%$sharedstatedir%g
2132 s%@localstatedir@%$localstatedir%g
2133 s%@libdir@%$libdir%g
2134 s%@includedir@%$includedir%g
2135 s%@oldincludedir@%$oldincludedir%g
2136 s%@infodir@%$infodir%g
2137 s%@mandir@%$mandir%g
2138 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2139 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2140 s%@INSTALL_DATA@%$INSTALL_DATA%g
2141 s%@PACKAGE@%$PACKAGE%g
2142 s%@VERSION@%$VERSION%g
2143 s%@ACLOCAL@%$ACLOCAL%g
2144 s%@AUTOCONF@%$AUTOCONF%g
2145 s%@AUTOMAKE@%$AUTOMAKE%g
2146 s%@AUTOHEADER@%$AUTOHEADER%g
2147 s%@MAKEINFO@%$MAKEINFO%g
2148 s%@SET_MAKE@%$SET_MAKE%g
2149 s%@CC@%$CC%g
2150 s%@CPP@%$CPP%g
2151 s%@YACC@%$YACC%g
2152 s%@LEX@%$LEX%g
2153 s%@LEXLIB@%$LEXLIB%g
2154 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2155 s%@RM@%$RM%g
2156 s%@MV@%$MV%g
2157 s%@TAR@%$TAR%g
2158 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2159 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2160 s%@GLIB_LIBS@%$GLIB_LIBS%g
2161 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2162 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2163 s%@MAINT@%$MAINT%g
2164
2165 CEOF
2166 EOF
2167
2168 cat >> $CONFIG_STATUS <<\EOF
2169
2170 # Split the substitutions into bite-sized pieces for seds with
2171 # small command number limits, like on Digital OSF/1 and HP-UX.
2172 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2173 ac_file=1 # Number of current file.
2174 ac_beg=1 # First line for current file.
2175 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2176 ac_more_lines=:
2177 ac_sed_cmds=""
2178 while $ac_more_lines; do
2179   if test $ac_beg -gt 1; then
2180     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2181   else
2182     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2183   fi
2184   if test ! -s conftest.s$ac_file; then
2185     ac_more_lines=false
2186     rm -f conftest.s$ac_file
2187   else
2188     if test -z "$ac_sed_cmds"; then
2189       ac_sed_cmds="sed -f conftest.s$ac_file"
2190     else
2191       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2192     fi
2193     ac_file=`expr $ac_file + 1`
2194     ac_beg=$ac_end
2195     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2196   fi
2197 done
2198 if test -z "$ac_sed_cmds"; then
2199   ac_sed_cmds=cat
2200 fi
2201 EOF
2202
2203 cat >> $CONFIG_STATUS <<EOF
2204
2205 CONFIG_FILES=\${CONFIG_FILES-"gob.spec
2206 Makefile
2207 src/Makefile
2208 doc/Makefile
2209 doc/gob.1"}
2210 EOF
2211 cat >> $CONFIG_STATUS <<\EOF
2212 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2213   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2214   case "$ac_file" in
2215   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2216        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2217   *) ac_file_in="${ac_file}.in" ;;
2218   esac
2219
2220   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2221
2222   # Remove last slash and all that follows it.  Not all systems have dirname.
2223   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2224   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2225     # The file is in a subdirectory.
2226     test ! -d "$ac_dir" && mkdir "$ac_dir"
2227     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2228     # A "../" for each directory in $ac_dir_suffix.
2229     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2230   else
2231     ac_dir_suffix= ac_dots=
2232   fi
2233
2234   case "$ac_given_srcdir" in
2235   .)  srcdir=.
2236       if test -z "$ac_dots"; then top_srcdir=.
2237       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2238   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2239   *) # Relative path.
2240     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2241     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2242   esac
2243
2244   case "$ac_given_INSTALL" in
2245   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2246   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2247   esac
2248
2249   echo creating "$ac_file"
2250   rm -f "$ac_file"
2251   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2252   case "$ac_file" in
2253   *Makefile*) ac_comsub="1i\\
2254 # $configure_input" ;;
2255   *) ac_comsub= ;;
2256   esac
2257
2258   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2259   sed -e "$ac_comsub
2260 s%@configure_input@%$configure_input%g
2261 s%@srcdir@%$srcdir%g
2262 s%@top_srcdir@%$top_srcdir%g
2263 s%@INSTALL@%$INSTALL%g
2264 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2265 fi; done
2266 rm -f conftest.s*
2267
2268 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2269 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2270 #
2271 # ac_d sets the value in "#define NAME VALUE" lines.
2272 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2273 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2274 ac_dC='\3'
2275 ac_dD='%g'
2276 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2277 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2278 ac_uB='\([      ]\)%\1#\2define\3'
2279 ac_uC=' '
2280 ac_uD='\4%g'
2281 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2282 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2283 ac_eB='$%\1#\2define\3'
2284 ac_eC=' '
2285 ac_eD='%g'
2286
2287 if test "${CONFIG_HEADERS+set}" != set; then
2288 EOF
2289 cat >> $CONFIG_STATUS <<EOF
2290   CONFIG_HEADERS="config.h"
2291 EOF
2292 cat >> $CONFIG_STATUS <<\EOF
2293 fi
2294 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2295   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2296   case "$ac_file" in
2297   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2298        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2299   *) ac_file_in="${ac_file}.in" ;;
2300   esac
2301
2302   echo creating $ac_file
2303
2304   rm -f conftest.frag conftest.in conftest.out
2305   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2306   cat $ac_file_inputs > conftest.in
2307
2308 EOF
2309
2310 # Transform confdefs.h into a sed script conftest.vals that substitutes
2311 # the proper values into config.h.in to produce config.h.  And first:
2312 # Protect against being on the right side of a sed subst in config.status.
2313 # Protect against being in an unquoted here document in config.status.
2314 rm -f conftest.vals
2315 cat > conftest.hdr <<\EOF
2316 s/[\\&%]/\\&/g
2317 s%[\\$`]%\\&%g
2318 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2319 s%ac_d%ac_u%gp
2320 s%ac_u%ac_e%gp
2321 EOF
2322 sed -n -f conftest.hdr confdefs.h > conftest.vals
2323 rm -f conftest.hdr
2324
2325 # This sed command replaces #undef with comments.  This is necessary, for
2326 # example, in the case of _POSIX_SOURCE, which is predefined and required
2327 # on some systems where configure will not decide to define it.
2328 cat >> conftest.vals <<\EOF
2329 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2330 EOF
2331
2332 # Break up conftest.vals because some shells have a limit on
2333 # the size of here documents, and old seds have small limits too.
2334
2335 rm -f conftest.tail
2336 while :
2337 do
2338   ac_lines=`grep -c . conftest.vals`
2339   # grep -c gives empty output for an empty file on some AIX systems.
2340   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2341   # Write a limited-size here document to conftest.frag.
2342   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2343   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2344   echo 'CEOF
2345   sed -f conftest.frag conftest.in > conftest.out
2346   rm -f conftest.in
2347   mv conftest.out conftest.in
2348 ' >> $CONFIG_STATUS
2349   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2350   rm -f conftest.vals
2351   mv conftest.tail conftest.vals
2352 done
2353 rm -f conftest.vals
2354
2355 cat >> $CONFIG_STATUS <<\EOF
2356   rm -f conftest.frag conftest.h
2357   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2358   cat conftest.in >> conftest.h
2359   rm -f conftest.in
2360   if cmp -s $ac_file conftest.h 2>/dev/null; then
2361     echo "$ac_file is unchanged"
2362     rm -f conftest.h
2363   else
2364     # Remove last slash and all that follows it.  Not all systems have dirname.
2365       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2366       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2367       # The file is in a subdirectory.
2368       test ! -d "$ac_dir" && mkdir "$ac_dir"
2369     fi
2370     rm -f $ac_file
2371     mv conftest.h $ac_file
2372   fi
2373 fi; done
2374
2375 EOF
2376 cat >> $CONFIG_STATUS <<EOF
2377
2378
2379 EOF
2380 cat >> $CONFIG_STATUS <<\EOF
2381 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2382
2383 exit 0
2384 EOF
2385 chmod +x $CONFIG_STATUS
2386 rm -fr confdefs* $ac_clean_files
2387 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2388