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