Annotation of parser3/configure, revision 1.2
1.1 paf 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: --disable-string-origins to switch off string origin tracking"
16: ac_help="$ac_help
17: --with-apache13[=D] D is the Apache13 source distribution directory
18: builds library for apache_module using that dir
19: (do not add /src)"
20: ac_help="$ac_help
21: --with-pathlink[=LKEY] put dynamic libraries paths to binary
22: using linker key (-R, -rpath-link)"
23: ac_help="$ac_help
24: --with-gnome-xml[=D] D is the directory where
25: Gnome XML libraries are installed"
26: ac_help="$ac_help
27: --with-db2[=D] D is the DB2 installation directory
28: DO NOT FORGET TO COMPILE DB2 WITH EXCEPTIONS SUPPORT!"
29: ac_help="$ac_help
30: --enable-shared[=PKGS] build shared libraries [default=yes]"
31: ac_help="$ac_help
32: --enable-static[=PKGS] build static libraries [default=yes]"
33: ac_help="$ac_help
34: --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
35: ac_help="$ac_help
36: --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
37: ac_help="$ac_help
38: --disable-libtool-lock avoid locking (might break parallel builds)"
39:
40: # Initialize some variables set by options.
41: # The variables have the same names as the options, with
42: # dashes changed to underlines.
43: build=NONE
44: cache_file=./config.cache
45: exec_prefix=NONE
46: host=NONE
47: no_create=
48: nonopt=NONE
49: no_recursion=
50: prefix=NONE
51: program_prefix=NONE
52: program_suffix=NONE
53: program_transform_name=s,x,x,
54: silent=
55: site=
56: srcdir=
57: target=NONE
58: verbose=
59: x_includes=NONE
60: x_libraries=NONE
61: bindir='${exec_prefix}/bin'
62: sbindir='${exec_prefix}/sbin'
63: libexecdir='${exec_prefix}/libexec'
64: datadir='${prefix}/share'
65: sysconfdir='${prefix}/etc'
66: sharedstatedir='${prefix}/com'
67: localstatedir='${prefix}/var'
68: libdir='${exec_prefix}/lib'
69: includedir='${prefix}/include'
70: oldincludedir='/usr/include'
71: infodir='${prefix}/info'
72: mandir='${prefix}/man'
73:
74: # Initialize some other variables.
75: subdirs=
76: MFLAGS= MAKEFLAGS=
77: SHELL=${CONFIG_SHELL-/bin/sh}
78: # Maximum number of lines to put in a shell here document.
79: ac_max_here_lines=12
80:
81: ac_prev=
82: for ac_option
83: do
84:
85: # If the previous option needs an argument, assign it.
86: if test -n "$ac_prev"; then
87: eval "$ac_prev=\$ac_option"
88: ac_prev=
89: continue
90: fi
91:
92: case "$ac_option" in
93: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94: *) ac_optarg= ;;
95: esac
96:
97: # Accept the important Cygnus configure options, so we can diagnose typos.
98:
99: case "$ac_option" in
100:
101: -bindir | --bindir | --bindi | --bind | --bin | --bi)
102: ac_prev=bindir ;;
103: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104: bindir="$ac_optarg" ;;
105:
106: -build | --build | --buil | --bui | --bu)
107: ac_prev=build ;;
108: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109: build="$ac_optarg" ;;
110:
111: -cache-file | --cache-file | --cache-fil | --cache-fi \
112: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113: ac_prev=cache_file ;;
114: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116: cache_file="$ac_optarg" ;;
117:
118: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119: ac_prev=datadir ;;
120: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121: | --da=*)
122: datadir="$ac_optarg" ;;
123:
124: -disable-* | --disable-*)
125: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126: # Reject names that are not valid shell variable names.
127: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129: fi
130: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131: eval "enable_${ac_feature}=no" ;;
132:
133: -enable-* | --enable-*)
134: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135: # Reject names that are not valid shell variable names.
136: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138: fi
139: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140: case "$ac_option" in
141: *=*) ;;
142: *) ac_optarg=yes ;;
143: esac
144: eval "enable_${ac_feature}='$ac_optarg'" ;;
145:
146: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148: | --exec | --exe | --ex)
149: ac_prev=exec_prefix ;;
150: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152: | --exec=* | --exe=* | --ex=*)
153: exec_prefix="$ac_optarg" ;;
154:
155: -gas | --gas | --ga | --g)
156: # Obsolete; use --with-gas.
157: with_gas=yes ;;
158:
159: -help | --help | --hel | --he)
160: # Omit some internal or obsolete options to make the list less imposing.
161: # This message is too long to be a string in the A/UX 3.1 sh.
162: cat << EOF
163: Usage: configure [options] [host]
164: Options: [defaults in brackets after descriptions]
165: Configuration:
166: --cache-file=FILE cache test results in FILE
167: --help print this message
168: --no-create do not create output files
169: --quiet, --silent do not print \`checking...' messages
170: --version print the version of autoconf that created configure
171: Directory and file names:
172: --prefix=PREFIX install architecture-independent files in PREFIX
173: [$ac_default_prefix]
174: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175: [same as prefix]
176: --bindir=DIR user executables in DIR [EPREFIX/bin]
177: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179: --datadir=DIR read-only architecture-independent data in DIR
180: [PREFIX/share]
181: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182: --sharedstatedir=DIR modifiable architecture-independent data in DIR
183: [PREFIX/com]
184: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186: --includedir=DIR C header files in DIR [PREFIX/include]
187: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188: --infodir=DIR info documentation in DIR [PREFIX/info]
189: --mandir=DIR man documentation in DIR [PREFIX/man]
190: --srcdir=DIR find the sources in DIR [configure dir or ..]
191: --program-prefix=PREFIX prepend PREFIX to installed program names
192: --program-suffix=SUFFIX append SUFFIX to installed program names
193: --program-transform-name=PROGRAM
194: run sed PROGRAM on installed program names
195: EOF
196: cat << EOF
197: Host type:
198: --build=BUILD configure for building on BUILD [BUILD=HOST]
199: --host=HOST configure for HOST [guessed]
200: --target=TARGET configure for TARGET [TARGET=HOST]
201: Features and packages:
202: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206: --x-includes=DIR X include files are in DIR
207: --x-libraries=DIR X library files are in DIR
208: EOF
209: if test -n "$ac_help"; then
210: echo "--enable and --with options recognized:$ac_help"
211: fi
212: exit 0 ;;
213:
214: -host | --host | --hos | --ho)
215: ac_prev=host ;;
216: -host=* | --host=* | --hos=* | --ho=*)
217: host="$ac_optarg" ;;
218:
219: -includedir | --includedir | --includedi | --included | --include \
220: | --includ | --inclu | --incl | --inc)
221: ac_prev=includedir ;;
222: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223: | --includ=* | --inclu=* | --incl=* | --inc=*)
224: includedir="$ac_optarg" ;;
225:
226: -infodir | --infodir | --infodi | --infod | --info | --inf)
227: ac_prev=infodir ;;
228: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229: infodir="$ac_optarg" ;;
230:
231: -libdir | --libdir | --libdi | --libd)
232: ac_prev=libdir ;;
233: -libdir=* | --libdir=* | --libdi=* | --libd=*)
234: libdir="$ac_optarg" ;;
235:
236: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237: | --libexe | --libex | --libe)
238: ac_prev=libexecdir ;;
239: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240: | --libexe=* | --libex=* | --libe=*)
241: libexecdir="$ac_optarg" ;;
242:
243: -localstatedir | --localstatedir | --localstatedi | --localstated \
244: | --localstate | --localstat | --localsta | --localst \
245: | --locals | --local | --loca | --loc | --lo)
246: ac_prev=localstatedir ;;
247: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250: localstatedir="$ac_optarg" ;;
251:
252: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253: ac_prev=mandir ;;
254: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255: mandir="$ac_optarg" ;;
256:
257: -nfp | --nfp | --nf)
258: # Obsolete; use --without-fp.
259: with_fp=no ;;
260:
261: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262: | --no-cr | --no-c)
263: no_create=yes ;;
264:
265: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267: no_recursion=yes ;;
268:
269: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271: | --oldin | --oldi | --old | --ol | --o)
272: ac_prev=oldincludedir ;;
273: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276: oldincludedir="$ac_optarg" ;;
277:
278: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279: ac_prev=prefix ;;
280: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281: prefix="$ac_optarg" ;;
282:
283: -program-prefix | --program-prefix | --program-prefi | --program-pref \
284: | --program-pre | --program-pr | --program-p)
285: ac_prev=program_prefix ;;
286: -program-prefix=* | --program-prefix=* | --program-prefi=* \
287: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288: program_prefix="$ac_optarg" ;;
289:
290: -program-suffix | --program-suffix | --program-suffi | --program-suff \
291: | --program-suf | --program-su | --program-s)
292: ac_prev=program_suffix ;;
293: -program-suffix=* | --program-suffix=* | --program-suffi=* \
294: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295: program_suffix="$ac_optarg" ;;
296:
297: -program-transform-name | --program-transform-name \
298: | --program-transform-nam | --program-transform-na \
299: | --program-transform-n | --program-transform- \
300: | --program-transform | --program-transfor \
301: | --program-transfo | --program-transf \
302: | --program-trans | --program-tran \
303: | --progr-tra | --program-tr | --program-t)
304: ac_prev=program_transform_name ;;
305: -program-transform-name=* | --program-transform-name=* \
306: | --program-transform-nam=* | --program-transform-na=* \
307: | --program-transform-n=* | --program-transform-=* \
308: | --program-transform=* | --program-transfor=* \
309: | --program-transfo=* | --program-transf=* \
310: | --program-trans=* | --program-tran=* \
311: | --progr-tra=* | --program-tr=* | --program-t=*)
312: program_transform_name="$ac_optarg" ;;
313:
314: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315: | -silent | --silent | --silen | --sile | --sil)
316: silent=yes ;;
317:
318: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319: ac_prev=sbindir ;;
320: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321: | --sbi=* | --sb=*)
322: sbindir="$ac_optarg" ;;
323:
324: -sharedstatedir | --sharedstatedir | --sharedstatedi \
325: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326: | --sharedst | --shareds | --shared | --share | --shar \
327: | --sha | --sh)
328: ac_prev=sharedstatedir ;;
329: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332: | --sha=* | --sh=*)
333: sharedstatedir="$ac_optarg" ;;
334:
335: -site | --site | --sit)
336: ac_prev=site ;;
337: -site=* | --site=* | --sit=*)
338: site="$ac_optarg" ;;
339:
340: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341: ac_prev=srcdir ;;
342: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343: srcdir="$ac_optarg" ;;
344:
345: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346: | --syscon | --sysco | --sysc | --sys | --sy)
347: ac_prev=sysconfdir ;;
348: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350: sysconfdir="$ac_optarg" ;;
351:
352: -target | --target | --targe | --targ | --tar | --ta | --t)
353: ac_prev=target ;;
354: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355: target="$ac_optarg" ;;
356:
357: -v | -verbose | --verbose | --verbos | --verbo | --verb)
358: verbose=yes ;;
359:
360: -version | --version | --versio | --versi | --vers)
361: echo "configure generated by autoconf version 2.13"
362: exit 0 ;;
363:
364: -with-* | --with-*)
365: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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: case "$ac_option" in
372: *=*) ;;
373: *) ac_optarg=yes ;;
374: esac
375: eval "with_${ac_package}='$ac_optarg'" ;;
376:
377: -without-* | --without-*)
378: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379: # Reject names that are not valid shell variable names.
380: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382: fi
383: ac_package=`echo $ac_package| sed 's/-/_/g'`
384: eval "with_${ac_package}=no" ;;
385:
386: --x)
387: # Obsolete; use --with-x.
388: with_x=yes ;;
389:
390: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391: | --x-incl | --x-inc | --x-in | --x-i)
392: ac_prev=x_includes ;;
393: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395: x_includes="$ac_optarg" ;;
396:
397: -x-libraries | --x-libraries | --x-librarie | --x-librari \
398: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399: ac_prev=x_libraries ;;
400: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402: x_libraries="$ac_optarg" ;;
403:
404: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405: ;;
406:
407: *)
408: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409: echo "configure: warning: $ac_option: invalid host type" 1>&2
410: fi
411: if test "x$nonopt" != xNONE; then
412: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413: fi
414: nonopt="$ac_option"
415: ;;
416:
417: esac
418: done
419:
420: if test -n "$ac_prev"; then
421: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422: fi
423:
424: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425:
426: # File descriptor usage:
427: # 0 standard input
428: # 1 file creation
429: # 2 errors and warnings
430: # 3 some systems may open it to /dev/tty
431: # 4 used on the Kubota Titan
432: # 6 checking for... messages and results
433: # 5 compiler messages saved in config.log
434: if test "$silent" = yes; then
435: exec 6>/dev/null
436: else
437: exec 6>&1
438: fi
439: exec 5>./config.log
440:
441: echo "\
442: This file contains any messages produced by compilers while
443: running configure, to aid debugging if configure makes a mistake.
444: " 1>&5
445:
446: # Strip out --no-create and --no-recursion so they do not pile up.
447: # Also quote any args containing shell metacharacters.
448: ac_configure_args=
449: for ac_arg
450: do
451: case "$ac_arg" in
452: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453: | --no-cr | --no-c) ;;
454: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459: esac
460: done
461:
462: # NLS nuisances.
463: # Only set these to C if already set. These must not be set unconditionally
464: # because not all systems understand e.g. LANG=C (notably SCO).
465: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466: # Non-C LC_CTYPE values break the ctype check.
467: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471:
472: # confdefs.h avoids OS command line length limits that DEFS can exceed.
473: rm -rf conftest* confdefs.h
474: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475: echo > confdefs.h
476:
477: # A filename unique to this package, relative to the directory that
478: # configure is in, which we can look for to find out if srcdir is correct.
479: ac_unique_file=README
480:
481: # Find the source files, if location was not specified.
482: if test -z "$srcdir"; then
483: ac_srcdir_defaulted=yes
484: # Try the directory containing this script, then its parent.
485: ac_prog=$0
486: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488: srcdir=$ac_confdir
489: if test ! -r $srcdir/$ac_unique_file; then
490: srcdir=..
491: fi
492: else
493: ac_srcdir_defaulted=no
494: fi
495: if test ! -r $srcdir/$ac_unique_file; then
496: if test "$ac_srcdir_defaulted" = yes; then
497: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498: else
499: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500: fi
501: fi
502: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503:
504: # Prefer explicitly selected file to automatically selected ones.
505: if test -z "$CONFIG_SITE"; then
506: if test "x$prefix" != xNONE; then
507: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508: else
509: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510: fi
511: fi
512: for ac_site_file in $CONFIG_SITE; do
513: if test -r "$ac_site_file"; then
514: echo "loading site script $ac_site_file"
515: . "$ac_site_file"
516: fi
517: done
518:
519: if test -r "$cache_file"; then
520: echo "loading cache $cache_file"
521: . $cache_file
522: else
523: echo "creating cache $cache_file"
524: > $cache_file
525: fi
526:
527: ac_ext=c
528: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529: ac_cpp='$CPP $CPPFLAGS'
530: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532: cross_compiling=$ac_cv_prog_cc_cross
533:
534: ac_exeext=
535: ac_objext=o
536: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539: ac_n= ac_c='
540: ' ac_t=' '
541: else
542: ac_n=-n ac_c= ac_t=
543: fi
544: else
545: ac_n= ac_c='\c' ac_t=
546: fi
547:
548:
549: ac_aux_dir=
550: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551: if test -f $ac_dir/install-sh; then
552: ac_aux_dir=$ac_dir
553: ac_install_sh="$ac_aux_dir/install-sh -c"
554: break
555: elif test -f $ac_dir/install.sh; then
556: ac_aux_dir=$ac_dir
557: ac_install_sh="$ac_aux_dir/install.sh -c"
558: break
559: fi
560: done
561: if test -z "$ac_aux_dir"; then
562: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563: fi
564: ac_config_guess=$ac_aux_dir/config.guess
565: ac_config_sub=$ac_aux_dir/config.sub
566: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
567:
568: # Find a good install program. We prefer a C program (faster),
569: # so one script is as good as another. But avoid the broken or
570: # incompatible versions:
571: # SysV /etc/install, /usr/sbin/install
572: # SunOS /usr/etc/install
573: # IRIX /sbin/install
574: # AIX /bin/install
575: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
576: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
577: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
578: # ./install, which can be erroneously created by make from ./install.sh.
579: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
580: echo "configure:581: checking for a BSD compatible install" >&5
581: if test -z "$INSTALL"; then
582: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
583: echo $ac_n "(cached) $ac_c" 1>&6
584: else
585: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
586: for ac_dir in $PATH; do
587: # Account for people who put trailing slashes in PATH elements.
588: case "$ac_dir/" in
589: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
590: *)
591: # OSF1 and SCO ODT 3.0 have their own names for install.
592: # Don't use installbsd from OSF since it installs stuff as root
593: # by default.
594: for ac_prog in ginstall scoinst install; do
595: if test -f $ac_dir/$ac_prog; then
596: if test $ac_prog = install &&
597: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
598: # AIX install. It has an incompatible calling convention.
599: :
600: else
601: ac_cv_path_install="$ac_dir/$ac_prog -c"
602: break 2
603: fi
604: fi
605: done
606: ;;
607: esac
608: done
609: IFS="$ac_save_IFS"
610:
611: fi
612: if test "${ac_cv_path_install+set}" = set; then
613: INSTALL="$ac_cv_path_install"
614: else
615: # As a last resort, use the slow shell script. We don't cache a
616: # path for INSTALL within a source directory, because that will
617: # break other packages using the cache if that directory is
618: # removed, or if the path is relative.
619: INSTALL="$ac_install_sh"
620: fi
621: fi
622: echo "$ac_t""$INSTALL" 1>&6
623:
624: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
625: # It thinks the first close brace ends the variable substitution.
626: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
627:
628: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
629:
630: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
631:
632: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
633: echo "configure:634: checking whether build environment is sane" >&5
634: # Just in case
635: sleep 1
636: echo timestamp > conftestfile
637: # Do `set' in a subshell so we don't clobber the current shell's
638: # arguments. Must try -L first in case configure is actually a
639: # symlink; some systems play weird games with the mod time of symlinks
640: # (eg FreeBSD returns the mod time of the symlink's containing
641: # directory).
642: if (
643: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
644: if test "$*" = "X"; then
645: # -L didn't work.
646: set X `ls -t $srcdir/configure conftestfile`
647: fi
648: if test "$*" != "X $srcdir/configure conftestfile" \
649: && test "$*" != "X conftestfile $srcdir/configure"; then
650:
651: # If neither matched, then we have a broken ls. This can happen
652: # if, for instance, CONFIG_SHELL is bash and it inherits a
653: # broken ls alias from the environment. This has actually
654: # happened. Such a system could not be considered "sane".
655: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
656: alias in your environment" 1>&2; exit 1; }
657: fi
658:
659: test "$2" = conftestfile
660: )
661: then
662: # Ok.
663: :
664: else
665: { echo "configure: error: newly created file is older than distributed files!
666: Check your system clock" 1>&2; exit 1; }
667: fi
668: rm -f conftest*
669: echo "$ac_t""yes" 1>&6
670: if test "$program_transform_name" = s,x,x,; then
671: program_transform_name=
672: else
673: # Double any \ or $. echo might interpret backslashes.
674: cat <<\EOF_SED > conftestsed
675: s,\\,\\\\,g; s,\$,$$,g
676: EOF_SED
677: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
678: rm -f conftestsed
679: fi
680: test "$program_prefix" != NONE &&
681: program_transform_name="s,^,${program_prefix},; $program_transform_name"
682: # Use a double $ so make ignores it.
683: test "$program_suffix" != NONE &&
684: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
685:
686: # sed with no file args requires a program.
687: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
688:
689: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
690: echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5
691: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
692: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
693: echo $ac_n "(cached) $ac_c" 1>&6
694: else
695: cat > conftestmake <<\EOF
696: all:
697: @echo 'ac_maketemp="${MAKE}"'
698: EOF
699: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
700: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
701: if test -n "$ac_maketemp"; then
702: eval ac_cv_prog_make_${ac_make}_set=yes
703: else
704: eval ac_cv_prog_make_${ac_make}_set=no
705: fi
706: rm -f conftestmake
707: fi
708: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
709: echo "$ac_t""yes" 1>&6
710: SET_MAKE=
711: else
712: echo "$ac_t""no" 1>&6
713: SET_MAKE="MAKE=${MAKE-make}"
714: fi
715:
716:
717: PACKAGE=parser
718:
719: VERSION=3.0b
720:
721: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
722: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
723: fi
724:
725:
726:
727: missing_dir=`cd $ac_aux_dir && pwd`
728: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
729: echo "configure:730: checking for working aclocal" >&5
730: # Run test in a subshell; some versions of sh will print an error if
731: # an executable is not found, even if stderr is redirected.
732: # Redirect stdin to placate older versions of autoconf. Sigh.
733: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
734: ACLOCAL=aclocal
735: echo "$ac_t""found" 1>&6
736: else
737: ACLOCAL="$missing_dir/missing aclocal"
738: echo "$ac_t""missing" 1>&6
739: fi
740:
741: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
742: echo "configure:743: checking for working autoconf" >&5
743: # Run test in a subshell; some versions of sh will print an error if
744: # an executable is not found, even if stderr is redirected.
745: # Redirect stdin to placate older versions of autoconf. Sigh.
746: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
747: AUTOCONF=autoconf
748: echo "$ac_t""found" 1>&6
749: else
750: AUTOCONF="$missing_dir/missing autoconf"
751: echo "$ac_t""missing" 1>&6
752: fi
753:
754: echo $ac_n "checking for working automake""... $ac_c" 1>&6
755: echo "configure:756: checking for working automake" >&5
756: # Run test in a subshell; some versions of sh will print an error if
757: # an executable is not found, even if stderr is redirected.
758: # Redirect stdin to placate older versions of autoconf. Sigh.
759: if (automake --version) < /dev/null > /dev/null 2>&1; then
760: AUTOMAKE=automake
761: echo "$ac_t""found" 1>&6
762: else
763: AUTOMAKE="$missing_dir/missing automake"
764: echo "$ac_t""missing" 1>&6
765: fi
766:
767: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
768: echo "configure:769: checking for working autoheader" >&5
769: # Run test in a subshell; some versions of sh will print an error if
770: # an executable is not found, even if stderr is redirected.
771: # Redirect stdin to placate older versions of autoconf. Sigh.
772: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773: AUTOHEADER=autoheader
774: echo "$ac_t""found" 1>&6
775: else
776: AUTOHEADER="$missing_dir/missing autoheader"
777: echo "$ac_t""missing" 1>&6
778: fi
779:
780: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
781: echo "configure:782: checking for working makeinfo" >&5
782: # Run test in a subshell; some versions of sh will print an error if
783: # an executable is not found, even if stderr is redirected.
784: # Redirect stdin to placate older versions of autoconf. Sigh.
785: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
786: MAKEINFO=makeinfo
787: echo "$ac_t""found" 1>&6
788: else
789: MAKEINFO="$missing_dir/missing makeinfo"
790: echo "$ac_t""missing" 1>&6
791: fi
792:
793:
794:
795: P3S=`pwd`
796:
797:
798: PARSER_VERSION=$VERSION
799: echo "/* automatically generated by configure */" > src/include/pa_version.h.new
800: echo "/* edit configure.in to change version number */" >> src/include/pa_version.h.new
801: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> src/include/pa_version.h.new
802: cmp src/include/pa_version.h.new src/include/pa_version.h >/dev/null 2>&1
803: if test $? -ne 0 ; then
804: rm -f src/include/pa_version.h && mv src/include/pa_version.h.new src/include/pa_version.h && \
805: echo 'Updated src/include/pa_version.h'
806: else
807: rm -f src/include/pa_version.h.new
808: fi
809:
810: # Find a good install program. We prefer a C program (faster),
811: # so one script is as good as another. But avoid the broken or
812: # incompatible versions:
813: # SysV /etc/install, /usr/sbin/install
814: # SunOS /usr/etc/install
815: # IRIX /sbin/install
816: # AIX /bin/install
817: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
818: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
819: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
820: # ./install, which can be erroneously created by make from ./install.sh.
821: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
822: echo "configure:823: checking for a BSD compatible install" >&5
823: if test -z "$INSTALL"; then
824: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
825: echo $ac_n "(cached) $ac_c" 1>&6
826: else
827: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
828: for ac_dir in $PATH; do
829: # Account for people who put trailing slashes in PATH elements.
830: case "$ac_dir/" in
831: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
832: *)
833: # OSF1 and SCO ODT 3.0 have their own names for install.
834: # Don't use installbsd from OSF since it installs stuff as root
835: # by default.
836: for ac_prog in ginstall scoinst install; do
837: if test -f $ac_dir/$ac_prog; then
838: if test $ac_prog = install &&
839: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
840: # AIX install. It has an incompatible calling convention.
841: :
842: else
843: ac_cv_path_install="$ac_dir/$ac_prog -c"
844: break 2
845: fi
846: fi
847: done
848: ;;
849: esac
850: done
851: IFS="$ac_save_IFS"
852:
853: fi
854: if test "${ac_cv_path_install+set}" = set; then
855: INSTALL="$ac_cv_path_install"
856: else
857: # As a last resort, use the slow shell script. We don't cache a
858: # path for INSTALL within a source directory, because that will
859: # break other packages using the cache if that directory is
860: # removed, or if the path is relative.
861: INSTALL="$ac_install_sh"
862: fi
863: fi
864: echo "$ac_t""$INSTALL" 1>&6
865:
866: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
867: # It thinks the first close brace ends the variable substitution.
868: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
869:
870: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
871:
872: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
873:
874: # Extract the first word of "gcc", so it can be a program name with args.
875: set dummy gcc; ac_word=$2
876: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877: echo "configure:878: checking for $ac_word" >&5
878: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879: echo $ac_n "(cached) $ac_c" 1>&6
880: else
881: if test -n "$CC"; then
882: ac_cv_prog_CC="$CC" # Let the user override the test.
883: else
884: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885: ac_dummy="$PATH"
886: for ac_dir in $ac_dummy; do
887: test -z "$ac_dir" && ac_dir=.
888: if test -f $ac_dir/$ac_word; then
889: ac_cv_prog_CC="gcc"
890: break
891: fi
892: done
893: IFS="$ac_save_ifs"
894: fi
895: fi
896: CC="$ac_cv_prog_CC"
897: if test -n "$CC"; then
898: echo "$ac_t""$CC" 1>&6
899: else
900: echo "$ac_t""no" 1>&6
901: fi
902:
903: if test -z "$CC"; then
904: # Extract the first word of "cc", so it can be a program name with args.
905: set dummy cc; ac_word=$2
906: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907: echo "configure:908: checking for $ac_word" >&5
908: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
909: echo $ac_n "(cached) $ac_c" 1>&6
910: else
911: if test -n "$CC"; then
912: ac_cv_prog_CC="$CC" # Let the user override the test.
913: else
914: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
915: ac_prog_rejected=no
916: ac_dummy="$PATH"
917: for ac_dir in $ac_dummy; do
918: test -z "$ac_dir" && ac_dir=.
919: if test -f $ac_dir/$ac_word; then
920: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
921: ac_prog_rejected=yes
922: continue
923: fi
924: ac_cv_prog_CC="cc"
925: break
926: fi
927: done
928: IFS="$ac_save_ifs"
929: if test $ac_prog_rejected = yes; then
930: # We found a bogon in the path, so make sure we never use it.
931: set dummy $ac_cv_prog_CC
932: shift
933: if test $# -gt 0; then
934: # We chose a different compiler from the bogus one.
935: # However, it has the same basename, so the bogon will be chosen
936: # first if we set CC to just the basename; use the full file name.
937: shift
938: set dummy "$ac_dir/$ac_word" "$@"
939: shift
940: ac_cv_prog_CC="$@"
941: fi
942: fi
943: fi
944: fi
945: CC="$ac_cv_prog_CC"
946: if test -n "$CC"; then
947: echo "$ac_t""$CC" 1>&6
948: else
949: echo "$ac_t""no" 1>&6
950: fi
951:
952: if test -z "$CC"; then
953: case "`uname -s`" in
954: *win32* | *WIN32*)
955: # Extract the first word of "cl", so it can be a program name with args.
956: set dummy cl; 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="cl"
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: esac
985: fi
986: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
987: fi
988:
989: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
990: echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
991:
992: ac_ext=c
993: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994: ac_cpp='$CPP $CPPFLAGS'
995: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997: cross_compiling=$ac_cv_prog_cc_cross
998:
999: cat > conftest.$ac_ext << EOF
1000:
1001: #line 1002 "configure"
1002: #include "confdefs.h"
1003:
1004: main(){return(0);}
1005: EOF
1006: if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1007: ac_cv_prog_cc_works=yes
1008: # If we can't run a trivial program, we are probably using a cross compiler.
1009: if (./conftest; exit) 2>/dev/null; then
1010: ac_cv_prog_cc_cross=no
1011: else
1012: ac_cv_prog_cc_cross=yes
1013: fi
1014: else
1015: echo "configure: failed program was:" >&5
1016: cat conftest.$ac_ext >&5
1017: ac_cv_prog_cc_works=no
1018: fi
1019: rm -fr conftest*
1020: ac_ext=c
1021: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1022: ac_cpp='$CPP $CPPFLAGS'
1023: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1024: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1025: cross_compiling=$ac_cv_prog_cc_cross
1026:
1027: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1028: if test $ac_cv_prog_cc_works = no; then
1029: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1030: fi
1031: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1032: echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1033: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1034: cross_compiling=$ac_cv_prog_cc_cross
1035:
1036: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1037: echo "configure:1038: checking whether we are using GNU C" >&5
1038: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1039: echo $ac_n "(cached) $ac_c" 1>&6
1040: else
1041: cat > conftest.c <<EOF
1042: #ifdef __GNUC__
1043: yes;
1044: #endif
1045: EOF
1046: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1047: ac_cv_prog_gcc=yes
1048: else
1049: ac_cv_prog_gcc=no
1050: fi
1051: fi
1052:
1053: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1054:
1055: if test $ac_cv_prog_gcc = yes; then
1056: GCC=yes
1057: else
1058: GCC=
1059: fi
1060:
1061: ac_test_CFLAGS="${CFLAGS+set}"
1062: ac_save_CFLAGS="$CFLAGS"
1063: CFLAGS=
1064: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1065: echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5
1066: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1067: echo $ac_n "(cached) $ac_c" 1>&6
1068: else
1069: echo 'void f(){}' > conftest.c
1070: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1071: ac_cv_prog_cc_g=yes
1072: else
1073: ac_cv_prog_cc_g=no
1074: fi
1075: rm -f conftest*
1076:
1077: fi
1078:
1079: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1080: if test "$ac_test_CFLAGS" = set; then
1081: CFLAGS="$ac_save_CFLAGS"
1082: elif test $ac_cv_prog_cc_g = yes; then
1083: if test "$GCC" = yes; then
1084: CFLAGS="-g -O2"
1085: else
1086: CFLAGS="-g"
1087: fi
1088: else
1089: if test "$GCC" = yes; then
1090: CFLAGS="-O2"
1091: else
1092: CFLAGS=
1093: fi
1094: fi
1095:
1096: ac_ext=c
1097: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1098: ac_cpp='$CPP $CPPFLAGS'
1099: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1100: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1101: cross_compiling=$ac_cv_prog_cc_cross
1102: echo $ac_n "checking for inline""... $ac_c" 1>&6
1103: echo "configure:1104: checking for inline" >&5
1104: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1105: echo $ac_n "(cached) $ac_c" 1>&6
1106: else
1107: ac_cv_c_inline=no
1108: for ac_kw in inline __inline__ __inline; do
1109: cat > conftest.$ac_ext <<EOF
1110: #line 1111 "configure"
1111: #include "confdefs.h"
1112:
1113: int main() {
1114: } $ac_kw foo() {
1115: ; return 0; }
1116: EOF
1117: if { (eval echo configure:1118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1118: rm -rf conftest*
1119: ac_cv_c_inline=$ac_kw; break
1120: else
1121: echo "configure: failed program was:" >&5
1122: cat conftest.$ac_ext >&5
1123: fi
1124: rm -f conftest*
1125: done
1126:
1127: fi
1128:
1129: echo "$ac_t""$ac_cv_c_inline" 1>&6
1130: case "$ac_cv_c_inline" in
1131: inline | yes) ;;
1132: no) cat >> confdefs.h <<\EOF
1133: #define inline
1134: EOF
1135: ;;
1136: *) cat >> confdefs.h <<EOF
1137: #define inline $ac_cv_c_inline
1138: EOF
1139: ;;
1140: esac
1141:
1142: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1143: do
1144: # Extract the first word of "$ac_prog", so it can be a program name with args.
1145: set dummy $ac_prog; ac_word=$2
1146: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147: echo "configure:1148: checking for $ac_word" >&5
1148: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1149: echo $ac_n "(cached) $ac_c" 1>&6
1150: else
1151: if test -n "$CXX"; then
1152: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1153: else
1154: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155: ac_dummy="$PATH"
1156: for ac_dir in $ac_dummy; do
1157: test -z "$ac_dir" && ac_dir=.
1158: if test -f $ac_dir/$ac_word; then
1159: ac_cv_prog_CXX="$ac_prog"
1160: break
1161: fi
1162: done
1163: IFS="$ac_save_ifs"
1164: fi
1165: fi
1166: CXX="$ac_cv_prog_CXX"
1167: if test -n "$CXX"; then
1168: echo "$ac_t""$CXX" 1>&6
1169: else
1170: echo "$ac_t""no" 1>&6
1171: fi
1172:
1173: test -n "$CXX" && break
1174: done
1175: test -n "$CXX" || CXX="gcc"
1176:
1177:
1178: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1179: echo "configure:1180: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1180:
1181: ac_ext=C
1182: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1183: ac_cpp='$CXXCPP $CPPFLAGS'
1184: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1185: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1186: cross_compiling=$ac_cv_prog_cxx_cross
1187:
1188: cat > conftest.$ac_ext << EOF
1189:
1190: #line 1191 "configure"
1191: #include "confdefs.h"
1192:
1193: int main(){return(0);}
1194: EOF
1195: if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1196: ac_cv_prog_cxx_works=yes
1197: # If we can't run a trivial program, we are probably using a cross compiler.
1198: if (./conftest; exit) 2>/dev/null; then
1199: ac_cv_prog_cxx_cross=no
1200: else
1201: ac_cv_prog_cxx_cross=yes
1202: fi
1203: else
1204: echo "configure: failed program was:" >&5
1205: cat conftest.$ac_ext >&5
1206: ac_cv_prog_cxx_works=no
1207: fi
1208: rm -fr conftest*
1209: ac_ext=c
1210: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1211: ac_cpp='$CPP $CPPFLAGS'
1212: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1213: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1214: cross_compiling=$ac_cv_prog_cc_cross
1215:
1216: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1217: if test $ac_cv_prog_cxx_works = no; then
1218: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1219: fi
1220: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1221: echo "configure:1222: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1222: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1223: cross_compiling=$ac_cv_prog_cxx_cross
1224:
1225: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1226: echo "configure:1227: checking whether we are using GNU C++" >&5
1227: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1228: echo $ac_n "(cached) $ac_c" 1>&6
1229: else
1230: cat > conftest.C <<EOF
1231: #ifdef __GNUC__
1232: yes;
1233: #endif
1234: EOF
1235: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1236: ac_cv_prog_gxx=yes
1237: else
1238: ac_cv_prog_gxx=no
1239: fi
1240: fi
1241:
1242: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1243:
1244: if test $ac_cv_prog_gxx = yes; then
1245: GXX=yes
1246: else
1247: GXX=
1248: fi
1249:
1250: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1251: ac_save_CXXFLAGS="$CXXFLAGS"
1252: CXXFLAGS=
1253: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1254: echo "configure:1255: checking whether ${CXX-g++} accepts -g" >&5
1255: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1256: echo $ac_n "(cached) $ac_c" 1>&6
1257: else
1258: echo 'void f(){}' > conftest.cc
1259: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1260: ac_cv_prog_cxx_g=yes
1261: else
1262: ac_cv_prog_cxx_g=no
1263: fi
1264: rm -f conftest*
1265:
1266: fi
1267:
1268: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1269: if test "$ac_test_CXXFLAGS" = set; then
1270: CXXFLAGS="$ac_save_CXXFLAGS"
1271: elif test $ac_cv_prog_cxx_g = yes; then
1272: if test "$GXX" = yes; then
1273: CXXFLAGS="-g -O2"
1274: else
1275: CXXFLAGS="-g"
1276: fi
1277: else
1278: if test "$GXX" = yes; then
1279: CXXFLAGS="-O2"
1280: else
1281: CXXFLAGS=
1282: fi
1283: fi
1284:
1285: ac_ext=C
1286: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1287: ac_cpp='$CXXCPP $CPPFLAGS'
1288: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1289: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1290: cross_compiling=$ac_cv_prog_cxx_cross
1291:
1292:
1293:
1294:
1295: # Check whether --enable-string-origins or --disable-string-origins was given.
1296: if test "${enable_string_origins+set}" = set; then
1297: enableval="$enable_string_origins"
1298:
1299: if test "$enableval" = "no"; then
1300: cat >> confdefs.h <<\EOF
1301: #define NO_STRING_ORIGIN
1302: EOF
1303:
1304: fi
1305:
1306:
1307: fi
1308:
1309:
1310: # Check whether --with-apache13 or --without-apache13 was given.
1311: if test "${with_apache13+set}" = set; then
1312: withval="$with_apache13"
1313: APACHE13=$withval
1314: if test \! -f "$APACHE13/src/include/httpd.h"; then
1315: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1316: fi
1317:
1318: fi
1319:
1320:
1321:
1322:
1323: if test -n "$APACHE13"; then
1324: COMPILE_APACHE13_MODULE_TRUE=
1325: COMPILE_APACHE13_MODULE_FALSE='#'
1326: else
1327: COMPILE_APACHE13_MODULE_TRUE='#'
1328: COMPILE_APACHE13_MODULE_FALSE=
1329: fi
1330:
1331:
1332: # Check whether --with-pathlink or --without-pathlink was given.
1333: if test "${with_pathlink+set}" = set; then
1334: withval="$with_pathlink"
1335: LD_PATHLINK=$withval
1336:
1337: fi
1338:
1339:
1340: # Check whether --with-gnome-xml or --without-gnome-xml was given.
1341: if test "${with_gnome_xml+set}" = set; then
1342: withval="$with_gnome_xml"
1343:
1344: GNOME_XML=$withval
1345: XMLBIN_DIR="$GNOME_XML/bin"
1346: XMLINC_DIR="$GNOME_XML/include"
1347: XMLLIB_DIR="$GNOME_XML/lib"
1348:
1349: if test \! -d $XMLBIN_DIR -o \! -d $XMLINC_DIR -o \! -d $XMLLIB_DIR; then
1350: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1351: fi
1352:
1353: cat >> confdefs.h <<\EOF
1354: #define XML
1355: EOF
1356:
1357:
1358: LIBXML2_SO_NAME=`cd $XMLLIB_DIR ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1359: if test -z "$LIBXML2_SO_NAME"; then
1360: { echo "configure: error: $LIBXML_DIR does not containt XML2 dynamic library" 1>&2; exit 1; }
1361: fi
1362: LIBGDOME_SO_NAME=`cd $XMLLIB_DIR ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1363: if test -z "$LIBGDOME_SO_NAME"; then
1364: { echo "configure: error: $LIBXML_DIR does not containt GDOME dynamic library" 1>&2; exit 1; }
1365: fi
1366: LIBXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1367: if test -z "$LIBXSLT_SO_NAME"; then
1368: { echo "configure: error: $LIBXML_DIR does not containt XSLT dynamic library" 1>&2; exit 1; }
1369: fi
1370: LIBEXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1371: if test -z "$LIBEXSLT_SO_NAME"; then
1372: { echo "configure: error: $LIBXML_DIR does not containt EXSLT dynamic library" 1>&2; exit 1; }
1373: fi
1374:
1375: GLIB_CONFIG=$XMLBIN_DIR/glib-config
1376: if test \! -x $GLIB_CONFIG; then
1377: GLIB_CONFIG=glib-config
1378: fi
1379: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1380: GLIB_LIBS=`$GLIB_CONFIG --libs`
1381:
1382: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC_DIR -I$XMLINC_DIR/libgdome -I$XMLINC_DIR/libxml2"
1383: XML_LIBS="-L$XMLLIB_DIR -lglib -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1384: if test \! -z "$LD_PATHLINK"; then
1385: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB_DIR"
1386: fi
1387:
1388: fi
1389:
1390:
1391:
1392:
1393: # Check whether --with-db2 or --without-db2 was given.
1394: if test "${with_db2+set}" = set; then
1395: withval="$with_db2"
1396: DB2_INST=$withval
1397: if test \! -f "$DB2_INST/include/db.h"; then
1398: { echo "configure: error: $DB2_INST does not seem to be valid DB2 installation directory" 1>&2; exit 1; }
1399: fi
1400: if test \! -f "$DB2_INST/lib/libdb.a"; then
1401: { echo "configure: error: $DB2_INST does not seem to be valid DB2 installation directory" 1>&2; exit 1; }
1402: fi
1403:
1404: echo $ac_n "checking version of LIBDB""... $ac_c" 1>&6
1405: echo "configure:1406: checking version of LIBDB" >&5
1406: cat > conftest.$ac_ext <<EOF
1407: #line 1408 "configure"
1408: #include "confdefs.h"
1409: #include <$DB2_INST/include/db.h>
1410:
1411: int main() {
1412: #ifdef DB_VERSION_MAJOR
1413: # if DB_VERSION_MAJOR!=2
1414: # error Parser needs LIBDB of 2.x.x version to compile
1415: # endif
1416: #else
1417: # error DB_VERSION_MAJOR not defined
1418: #endif
1419:
1420: ; return 0; }
1421: EOF
1422: if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423: rm -rf conftest*
1424:
1425: echo "$ac_t""ok" 1>&6
1426: DB2=1
1427: cat >> confdefs.h <<\EOF
1428: #define DB2
1429: EOF
1430:
1431: DB2_INCLUDES="-I$DB2_INST/include"
1432: DB2_LIBS="-L$DB2_INST/lib -ldb"
1433:
1434: else
1435: echo "configure: failed program was:" >&5
1436: cat conftest.$ac_ext >&5
1437: rm -rf conftest*
1438: { echo "configure: error: bad" 1>&2; exit 1; }
1439:
1440: fi
1441: rm -f conftest*
1442:
1443: fi
1444:
1445:
1446:
1447:
1448:
1449: # Make sure we can run config.sub.
1450: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1451: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1452: fi
1453:
1454: echo $ac_n "checking host system type""... $ac_c" 1>&6
1455: echo "configure:1456: checking host system type" >&5
1456:
1457: host_alias=$host
1458: case "$host_alias" in
1459: NONE)
1460: case $nonopt in
1461: NONE)
1462: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1463: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1464: fi ;;
1465: *) host_alias=$nonopt ;;
1466: esac ;;
1467: esac
1468:
1469: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1470: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473: echo "$ac_t""$host" 1>&6
1474:
1475:
1476:
1477: # Find a good install program. We prefer a C program (faster),
1478: # so one script is as good as another. But avoid the broken or
1479: # incompatible versions:
1480: # SysV /etc/install, /usr/sbin/install
1481: # SunOS /usr/etc/install
1482: # IRIX /sbin/install
1483: # AIX /bin/install
1484: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1485: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1486: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1487: # ./install, which can be erroneously created by make from ./install.sh.
1488: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1489: echo "configure:1490: checking for a BSD compatible install" >&5
1490: if test -z "$INSTALL"; then
1491: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1492: echo $ac_n "(cached) $ac_c" 1>&6
1493: else
1494: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1495: for ac_dir in $PATH; do
1496: # Account for people who put trailing slashes in PATH elements.
1497: case "$ac_dir/" in
1498: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1499: *)
1500: # OSF1 and SCO ODT 3.0 have their own names for install.
1501: # Don't use installbsd from OSF since it installs stuff as root
1502: # by default.
1503: for ac_prog in ginstall scoinst install; do
1504: if test -f $ac_dir/$ac_prog; then
1505: if test $ac_prog = install &&
1506: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1507: # AIX install. It has an incompatible calling convention.
1508: :
1509: else
1510: ac_cv_path_install="$ac_dir/$ac_prog -c"
1511: break 2
1512: fi
1513: fi
1514: done
1515: ;;
1516: esac
1517: done
1518: IFS="$ac_save_IFS"
1519:
1520: fi
1521: if test "${ac_cv_path_install+set}" = set; then
1522: INSTALL="$ac_cv_path_install"
1523: else
1524: # As a last resort, use the slow shell script. We don't cache a
1525: # path for INSTALL within a source directory, because that will
1526: # break other packages using the cache if that directory is
1527: # removed, or if the path is relative.
1528: INSTALL="$ac_install_sh"
1529: fi
1530: fi
1531: echo "$ac_t""$INSTALL" 1>&6
1532:
1533: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1534: # It thinks the first close brace ends the variable substitution.
1535: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1536:
1537: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1538:
1539: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1540:
1541: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1542: echo "configure:1543: checking whether ${MAKE-make} sets \${MAKE}" >&5
1543: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1544: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1545: echo $ac_n "(cached) $ac_c" 1>&6
1546: else
1547: cat > conftestmake <<\EOF
1548: all:
1549: @echo 'ac_maketemp="${MAKE}"'
1550: EOF
1551: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1552: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1553: if test -n "$ac_maketemp"; then
1554: eval ac_cv_prog_make_${ac_make}_set=yes
1555: else
1556: eval ac_cv_prog_make_${ac_make}_set=no
1557: fi
1558: rm -f conftestmake
1559: fi
1560: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1561: echo "$ac_t""yes" 1>&6
1562: SET_MAKE=
1563: else
1564: echo "$ac_t""no" 1>&6
1565: SET_MAKE="MAKE=${MAKE-make}"
1566: fi
1567:
1568: # Extract the first word of "ranlib", so it can be a program name with args.
1569: set dummy ranlib; ac_word=$2
1570: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571: echo "configure:1572: checking for $ac_word" >&5
1572: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1573: echo $ac_n "(cached) $ac_c" 1>&6
1574: else
1575: if test -n "$RANLIB"; then
1576: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1577: else
1578: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579: ac_dummy="$PATH"
1580: for ac_dir in $ac_dummy; do
1581: test -z "$ac_dir" && ac_dir=.
1582: if test -f $ac_dir/$ac_word; then
1583: ac_cv_prog_RANLIB="ranlib"
1584: break
1585: fi
1586: done
1587: IFS="$ac_save_ifs"
1588: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1589: fi
1590: fi
1591: RANLIB="$ac_cv_prog_RANLIB"
1592: if test -n "$RANLIB"; then
1593: echo "$ac_t""$RANLIB" 1>&6
1594: else
1595: echo "$ac_t""no" 1>&6
1596: fi
1597:
1598: for ac_prog in mawk gawk nawk awk
1599: do
1600: # Extract the first word of "$ac_prog", so it can be a program name with args.
1601: set dummy $ac_prog; ac_word=$2
1602: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603: echo "configure:1604: checking for $ac_word" >&5
1604: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1605: echo $ac_n "(cached) $ac_c" 1>&6
1606: else
1607: if test -n "$AWK"; then
1608: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1609: else
1610: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1611: ac_dummy="$PATH"
1612: for ac_dir in $ac_dummy; do
1613: test -z "$ac_dir" && ac_dir=.
1614: if test -f $ac_dir/$ac_word; then
1615: ac_cv_prog_AWK="$ac_prog"
1616: break
1617: fi
1618: done
1619: IFS="$ac_save_ifs"
1620: fi
1621: fi
1622: AWK="$ac_cv_prog_AWK"
1623: if test -n "$AWK"; then
1624: echo "$ac_t""$AWK" 1>&6
1625: else
1626: echo "$ac_t""no" 1>&6
1627: fi
1628:
1629: test -n "$AWK" && break
1630: done
1631:
1632:
1633: for ac_prog in 'bison -y' byacc
1634: do
1635: # Extract the first word of "$ac_prog", so it can be a program name with args.
1636: set dummy $ac_prog; ac_word=$2
1637: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638: echo "configure:1639: checking for $ac_word" >&5
1639: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1640: echo $ac_n "(cached) $ac_c" 1>&6
1641: else
1642: if test -n "$YACC"; then
1643: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1644: else
1645: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1646: ac_dummy="$PATH"
1647: for ac_dir in $ac_dummy; do
1648: test -z "$ac_dir" && ac_dir=.
1649: if test -f $ac_dir/$ac_word; then
1650: ac_cv_prog_YACC="$ac_prog"
1651: break
1652: fi
1653: done
1654: IFS="$ac_save_ifs"
1655: fi
1656: fi
1657: YACC="$ac_cv_prog_YACC"
1658: if test -n "$YACC"; then
1659: echo "$ac_t""$YACC" 1>&6
1660: else
1661: echo "$ac_t""no" 1>&6
1662: fi
1663:
1664: test -n "$YACC" && break
1665: done
1666: test -n "$YACC" || YACC="yacc"
1667:
1668: if test "$YACC" != "bison -y"; then
1669: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1670: else
1671: echo $ac_n "checking bison version""... $ac_c" 1>&6
1672: echo "configure:1673: checking bison version" >&5
1673: oldIFS=$IFS; IFS=.
1674: set `bison -V | sed -e 's/^GNU Bison version //'`
1675: IFS=$oldIFS
1676: if test "$1" = "1" -a "$2" -lt "25"; then
1677: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1678: fi
1679: echo "$ac_t""$1.$2 (ok)" 1>&6
1680: fi
1681:
1682: LIBLTDL='${top_builddir}/'src/libltdl/libltdlc.la
1683: INCLTDL='-I${top_srcdir}/'src/libltdl
1684:
1685:
1686:
1687:
1688: # Check whether --enable-shared or --disable-shared was given.
1689: if test "${enable_shared+set}" = set; then
1690: enableval="$enable_shared"
1691: p=${PACKAGE-default}
1692: case "$enableval" in
1693: yes) enable_shared=yes ;;
1694: no) enable_shared=no ;;
1695: *)
1696: enable_shared=no
1697: # Look at the argument we got. We use all the common list separators.
1698: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699: for pkg in $enableval; do
1700: if test "X$pkg" = "X$p"; then
1701: enable_shared=yes
1702: fi
1703: done
1704: IFS="$ac_save_ifs"
1705: ;;
1706: esac
1707: else
1708: enable_shared=yes
1709: fi
1710:
1711: # Check whether --enable-static or --disable-static was given.
1712: if test "${enable_static+set}" = set; then
1713: enableval="$enable_static"
1714: p=${PACKAGE-default}
1715: case "$enableval" in
1716: yes) enable_static=yes ;;
1717: no) enable_static=no ;;
1718: *)
1719: enable_static=no
1720: # Look at the argument we got. We use all the common list separators.
1721: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1722: for pkg in $enableval; do
1723: if test "X$pkg" = "X$p"; then
1724: enable_static=yes
1725: fi
1726: done
1727: IFS="$ac_save_ifs"
1728: ;;
1729: esac
1730: else
1731: enable_static=yes
1732: fi
1733:
1734: # Check whether --enable-fast-install or --disable-fast-install was given.
1735: if test "${enable_fast_install+set}" = set; then
1736: enableval="$enable_fast_install"
1737: p=${PACKAGE-default}
1738: case "$enableval" in
1739: yes) enable_fast_install=yes ;;
1740: no) enable_fast_install=no ;;
1741: *)
1742: enable_fast_install=no
1743: # Look at the argument we got. We use all the common list separators.
1744: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1745: for pkg in $enableval; do
1746: if test "X$pkg" = "X$p"; then
1747: enable_fast_install=yes
1748: fi
1749: done
1750: IFS="$ac_save_ifs"
1751: ;;
1752: esac
1753: else
1754: enable_fast_install=yes
1755: fi
1756:
1757: echo $ac_n "checking build system type""... $ac_c" 1>&6
1758: echo "configure:1759: checking build system type" >&5
1759:
1760: build_alias=$build
1761: case "$build_alias" in
1762: NONE)
1763: case $nonopt in
1764: NONE) build_alias=$host_alias ;;
1765: *) build_alias=$nonopt ;;
1766: esac ;;
1767: esac
1768:
1769: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1770: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773: echo "$ac_t""$build" 1>&6
1774:
1775: # Check whether --with-gnu-ld or --without-gnu-ld was given.
1776: if test "${with_gnu_ld+set}" = set; then
1777: withval="$with_gnu_ld"
1778: test "$withval" = no || with_gnu_ld=yes
1779: else
1780: with_gnu_ld=no
1781: fi
1782:
1783: ac_prog=ld
1784: if test "$ac_cv_prog_gcc" = yes; then
1785: # Check if gcc -print-prog-name=ld gives a path.
1786: echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1787: echo "configure:1788: checking for ld used by GCC" >&5
1788: ac_prog=`($CC -print-prog-name=ld) 2>&5`
1789: case "$ac_prog" in
1790: # Accept absolute paths.
1791: [\\/]* | [A-Za-z]:[\\/]*)
1792: re_direlt='/[^/][^/]*/\.\./'
1793: # Canonicalize the path of ld
1794: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1795: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1796: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1797: done
1798: test -z "$LD" && LD="$ac_prog"
1799: ;;
1800: "")
1801: # If it fails, then pretend we aren't using GCC.
1802: ac_prog=ld
1803: ;;
1804: *)
1805: # If it is relative, then search for the first ld in PATH.
1806: with_gnu_ld=unknown
1807: ;;
1808: esac
1809: elif test "$with_gnu_ld" = yes; then
1810: echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1811: echo "configure:1812: checking for GNU ld" >&5
1812: else
1813: echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1814: echo "configure:1815: checking for non-GNU ld" >&5
1815: fi
1816: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1817: echo $ac_n "(cached) $ac_c" 1>&6
1818: else
1819: if test -z "$LD"; then
1820: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1821: for ac_dir in $PATH; do
1822: test -z "$ac_dir" && ac_dir=.
1823: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1824: ac_cv_path_LD="$ac_dir/$ac_prog"
1825: # Check to see if the program is GNU ld. I'd rather use --version,
1826: # but apparently some GNU ld's only accept -v.
1827: # Break only if it was the GNU/non-GNU ld that we prefer.
1828: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1829: test "$with_gnu_ld" != no && break
1830: else
1831: test "$with_gnu_ld" != yes && break
1832: fi
1833: fi
1834: done
1835: IFS="$ac_save_ifs"
1836: else
1837: ac_cv_path_LD="$LD" # Let the user override the test with a path.
1838: fi
1839: fi
1840:
1841: LD="$ac_cv_path_LD"
1842: if test -n "$LD"; then
1843: echo "$ac_t""$LD" 1>&6
1844: else
1845: echo "$ac_t""no" 1>&6
1846: fi
1847: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1848: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1849: echo "configure:1850: checking if the linker ($LD) is GNU ld" >&5
1850: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1851: echo $ac_n "(cached) $ac_c" 1>&6
1852: else
1853: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1854: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1855: ac_cv_prog_gnu_ld=yes
1856: else
1857: ac_cv_prog_gnu_ld=no
1858: fi
1859: fi
1860:
1861: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1862:
1863:
1864: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1865: echo "configure:1866: checking for BSD-compatible nm" >&5
1866: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1867: echo $ac_n "(cached) $ac_c" 1>&6
1868: else
1869: if test -n "$NM"; then
1870: # Let the user override the test.
1871: ac_cv_path_NM="$NM"
1872: else
1873: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1874: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1875: test -z "$ac_dir" && ac_dir=.
1876: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1877: # Check to see if the nm accepts a BSD-compat flag.
1878: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1879: # nm: unknown option "B" ignored
1880: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1881: ac_cv_path_NM="$ac_dir/nm -B"
1882: break
1883: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1884: ac_cv_path_NM="$ac_dir/nm -p"
1885: break
1886: else
1887: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1888: continue # so that we can try to find one that supports BSD flags
1889: fi
1890: fi
1891: done
1892: IFS="$ac_save_ifs"
1893: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1894: fi
1895: fi
1896:
1897: NM="$ac_cv_path_NM"
1898: echo "$ac_t""$NM" 1>&6
1899:
1900: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1901: echo "configure:1902: checking whether ln -s works" >&5
1902: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1903: echo $ac_n "(cached) $ac_c" 1>&6
1904: else
1905: rm -f conftestdata
1906: if ln -s X conftestdata 2>/dev/null
1907: then
1908: rm -f conftestdata
1909: ac_cv_prog_LN_S="ln -s"
1910: else
1911: ac_cv_prog_LN_S=ln
1912: fi
1913: fi
1914: LN_S="$ac_cv_prog_LN_S"
1915: if test "$ac_cv_prog_LN_S" = "ln -s"; then
1916: echo "$ac_t""yes" 1>&6
1917: else
1918: echo "$ac_t""no" 1>&6
1919: fi
1920:
1921:
1922: case "$target" in
1923: NONE) lt_target="$host" ;;
1924: *) lt_target="$target" ;;
1925: esac
1926:
1927: # Check for any special flags to pass to ltconfig.
1928: libtool_flags="--cache-file=$cache_file"
1929: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1930: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1931: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1932: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1933: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1934:
1935:
1936: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1937: if test "${enable_libtool_lock+set}" = set; then
1938: enableval="$enable_libtool_lock"
1939: :
1940: fi
1941:
1942: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1943: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1944:
1945: # Some flags need to be propagated to the compiler or linker for good
1946: # libtool support.
1947: case "$lt_target" in
1948: *-*-irix6*)
1949: # Find out which ABI we are using.
1950: echo '#line 1951 "configure"' > conftest.$ac_ext
1951: if { (eval echo configure:1952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1952: case "`/usr/bin/file conftest.o`" in
1953: *32-bit*)
1954: LD="${LD-ld} -32"
1955: ;;
1956: *N32*)
1957: LD="${LD-ld} -n32"
1958: ;;
1959: *64-bit*)
1960: LD="${LD-ld} -64"
1961: ;;
1962: esac
1963: fi
1964: rm -rf conftest*
1965: ;;
1966:
1967: *-*-sco3.2v5*)
1968: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1969: SAVE_CFLAGS="$CFLAGS"
1970: CFLAGS="$CFLAGS -belf"
1971: echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1972: echo "configure:1973: checking whether the C compiler needs -belf" >&5
1973: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1974: echo $ac_n "(cached) $ac_c" 1>&6
1975: else
1976: cat > conftest.$ac_ext <<EOF
1977: #line 1978 "configure"
1978: #include "confdefs.h"
1979:
1980: int main() {
1981:
1982: ; return 0; }
1983: EOF
1984: if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1985: rm -rf conftest*
1986: lt_cv_cc_needs_belf=yes
1987: else
1988: echo "configure: failed program was:" >&5
1989: cat conftest.$ac_ext >&5
1990: rm -rf conftest*
1991: lt_cv_cc_needs_belf=no
1992: fi
1993: rm -f conftest*
1994: fi
1995:
1996: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1997: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1998: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1999: CFLAGS="$SAVE_CFLAGS"
2000: fi
2001: ;;
2002:
2003:
2004: esac
2005:
2006:
2007: # Save cache, so that ltconfig can load it
2008: cat > confcache <<\EOF
2009: # This file is a shell script that caches the results of configure
2010: # tests run on this system so they can be shared between configure
2011: # scripts and configure runs. It is not useful on other systems.
2012: # If it contains results you don't want to keep, you may remove or edit it.
2013: #
2014: # By default, configure uses ./config.cache as the cache file,
2015: # creating it if it does not exist already. You can give configure
2016: # the --cache-file=FILE option to use a different cache file; that is
2017: # what configure does when it calls configure scripts in
2018: # subdirectories, so they share the cache.
2019: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2020: # config.status only pays attention to the cache file if you give it the
2021: # --recheck option to rerun configure.
2022: #
2023: EOF
2024: # The following way of writing the cache mishandles newlines in values,
2025: # but we know of no workaround that is simple, portable, and efficient.
2026: # So, don't put newlines in cache variables' values.
2027: # Ultrix sh set writes to stderr and can't be redirected directly,
2028: # and sets the high bit in the cache file unless we assign to the vars.
2029: (set) 2>&1 |
2030: case `(ac_space=' '; set | grep ac_space) 2>&1` in
2031: *ac_space=\ *)
2032: # `set' does not quote correctly, so add quotes (double-quote substitution
2033: # turns \\\\ into \\, and sed turns \\ into \).
2034: sed -n \
2035: -e "s/'/'\\\\''/g" \
2036: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2037: ;;
2038: *)
2039: # `set' quotes correctly as required by POSIX, so do not add quotes.
2040: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2041: ;;
2042: esac >> confcache
2043: if cmp -s $cache_file confcache; then
2044: :
2045: else
2046: if test -w $cache_file; then
2047: echo "updating cache $cache_file"
2048: cat confcache > $cache_file
2049: else
2050: echo "not updating unwritable cache $cache_file"
2051: fi
2052: fi
2053: rm -f confcache
2054:
2055:
2056: # Actually configure libtool. ac_aux_dir is where install-sh is found.
2057: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2058: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2059: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2060: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2061: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2062: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2063: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2064:
2065: # Reload cache, that may have been modified by ltconfig
2066: if test -r "$cache_file"; then
2067: echo "loading cache $cache_file"
2068: . $cache_file
2069: else
2070: echo "creating cache $cache_file"
2071: > $cache_file
2072: fi
2073:
2074:
2075: # This can be used to rebuild libtool when needed
2076: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2077:
2078: # Always use our own libtool.
2079: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2080:
2081: # Redirect the config.log output again, so that the ltconfig log is not
2082: # clobbered by the next message.
2083: exec 5>>./config.log
2084:
2085:
2086:
2087: subdirs="src/libltdl"
2088:
2089:
2090:
2091: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2092: echo "configure:2093: checking how to run the C++ preprocessor" >&5
2093: if test -z "$CXXCPP"; then
2094: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2095: echo $ac_n "(cached) $ac_c" 1>&6
2096: else
2097: ac_ext=C
2098: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2099: ac_cpp='$CXXCPP $CPPFLAGS'
2100: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2101: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2102: cross_compiling=$ac_cv_prog_cxx_cross
2103: CXXCPP="${CXX-g++} -E"
2104: cat > conftest.$ac_ext <<EOF
2105: #line 2106 "configure"
2106: #include "confdefs.h"
2107: #include <stdlib.h>
2108: EOF
2109: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2110: { (eval echo configure:2111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2111: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2112: if test -z "$ac_err"; then
2113: :
2114: else
2115: echo "$ac_err" >&5
2116: echo "configure: failed program was:" >&5
2117: cat conftest.$ac_ext >&5
2118: rm -rf conftest*
2119: CXXCPP=/lib/cpp
2120: fi
2121: rm -f conftest*
2122: ac_cv_prog_CXXCPP="$CXXCPP"
2123: ac_ext=C
2124: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2125: ac_cpp='$CXXCPP $CPPFLAGS'
2126: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2127: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2128: cross_compiling=$ac_cv_prog_cxx_cross
2129: fi
2130: fi
2131: CXXCPP="$ac_cv_prog_CXXCPP"
2132: echo "$ac_t""$CXXCPP" 1>&6
2133:
2134: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2135: echo "configure:2136: checking for ANSI C header files" >&5
2136: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2137: echo $ac_n "(cached) $ac_c" 1>&6
2138: else
2139: cat > conftest.$ac_ext <<EOF
2140: #line 2141 "configure"
2141: #include "confdefs.h"
2142: #include <stdlib.h>
2143: #include <stdarg.h>
2144: #include <string.h>
2145: #include <float.h>
2146: EOF
2147: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148: { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150: if test -z "$ac_err"; then
2151: rm -rf conftest*
2152: ac_cv_header_stdc=yes
2153: else
2154: echo "$ac_err" >&5
2155: echo "configure: failed program was:" >&5
2156: cat conftest.$ac_ext >&5
2157: rm -rf conftest*
2158: ac_cv_header_stdc=no
2159: fi
2160: rm -f conftest*
2161:
2162: if test $ac_cv_header_stdc = yes; then
2163: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2164: cat > conftest.$ac_ext <<EOF
2165: #line 2166 "configure"
2166: #include "confdefs.h"
2167: #include <string.h>
2168: EOF
2169: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2170: egrep "memchr" >/dev/null 2>&1; then
2171: :
2172: else
2173: rm -rf conftest*
2174: ac_cv_header_stdc=no
2175: fi
2176: rm -f conftest*
2177:
2178: fi
2179:
2180: if test $ac_cv_header_stdc = yes; then
2181: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2182: cat > conftest.$ac_ext <<EOF
2183: #line 2184 "configure"
2184: #include "confdefs.h"
2185: #include <stdlib.h>
2186: EOF
2187: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2188: egrep "free" >/dev/null 2>&1; then
2189: :
2190: else
2191: rm -rf conftest*
2192: ac_cv_header_stdc=no
2193: fi
2194: rm -f conftest*
2195:
2196: fi
2197:
2198: if test $ac_cv_header_stdc = yes; then
2199: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2200: if test "$cross_compiling" = yes; then
2201: :
2202: else
2203: cat > conftest.$ac_ext <<EOF
2204: #line 2205 "configure"
2205: #include "confdefs.h"
2206: #ifdef __cplusplus
2207: extern "C" void exit(int);
2208: #endif
2209: #include <ctype.h>
2210: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2211: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2212: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2213: int main () { int i; for (i = 0; i < 256; i++)
2214: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2215: exit (0); }
2216:
2217: EOF
2218: if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2219: then
2220: :
2221: else
2222: echo "configure: failed program was:" >&5
2223: cat conftest.$ac_ext >&5
2224: rm -fr conftest*
2225: ac_cv_header_stdc=no
2226: fi
2227: rm -fr conftest*
2228: fi
2229:
2230: fi
2231: fi
2232:
2233: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2234: if test $ac_cv_header_stdc = yes; then
2235: cat >> confdefs.h <<\EOF
2236: #define STDC_HEADERS 1
2237: EOF
2238:
2239: fi
2240:
2241: echo $ac_n "checking for size_t""... $ac_c" 1>&6
2242: echo "configure:2243: checking for size_t" >&5
2243: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2244: echo $ac_n "(cached) $ac_c" 1>&6
2245: else
2246: cat > conftest.$ac_ext <<EOF
2247: #line 2248 "configure"
2248: #include "confdefs.h"
2249: #include <sys/types.h>
2250: #if STDC_HEADERS
2251: #include <stdlib.h>
2252: #include <stddef.h>
2253: #endif
2254: EOF
2255: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2256: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2257: rm -rf conftest*
2258: ac_cv_type_size_t=yes
2259: else
2260: rm -rf conftest*
2261: ac_cv_type_size_t=no
2262: fi
2263: rm -f conftest*
2264:
2265: fi
2266: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2267: if test $ac_cv_type_size_t = no; then
2268: cat >> confdefs.h <<\EOF
2269: #define size_t unsigned
2270: EOF
2271:
2272: fi
2273:
2274:
2275:
2276: for ac_hdr in unistd.h \
2277: process.h \
2278: stddef.h \
2279: stdarg.h \
2280: fcntl.h \
2281: sys/stat.h \
2282: io.h \
2283: stdio.h \
2284: errno.h \
2285: ctype.h \
2286: math.h \
2287: time.h \
2288: stdlib.h \
2289: string.h \
2290: direct.h \
2291: setjmp.h \
2292: memory.h \
2293: new \
2294: sys/file.h \
2295: sys/locking.h \
2296: sys/types.h
2297:
2298: do
2299: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2300: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2301: echo "configure:2302: checking for $ac_hdr" >&5
2302: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2303: echo $ac_n "(cached) $ac_c" 1>&6
2304: else
2305: cat > conftest.$ac_ext <<EOF
2306: #line 2307 "configure"
2307: #include "confdefs.h"
2308: #include <$ac_hdr>
2309: EOF
2310: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2311: { (eval echo configure:2312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2312: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2313: if test -z "$ac_err"; then
2314: rm -rf conftest*
2315: eval "ac_cv_header_$ac_safe=yes"
2316: else
2317: echo "$ac_err" >&5
2318: echo "configure: failed program was:" >&5
2319: cat conftest.$ac_ext >&5
2320: rm -rf conftest*
2321: eval "ac_cv_header_$ac_safe=no"
2322: fi
2323: rm -f conftest*
2324: fi
2325: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2326: echo "$ac_t""yes" 1>&6
2327: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2328: cat >> confdefs.h <<EOF
2329: #define $ac_tr_hdr 1
2330: EOF
2331:
2332: else
2333: echo "$ac_t""no" 1>&6
2334: fi
2335: done
2336:
2337:
2338:
2339: case "$host" in
2340: *-sunos5.6* | *-solaris2.6*)
2341: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
2342: echo "configure:2343: checking for main in -lxnet" >&5
2343: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2344: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345: echo $ac_n "(cached) $ac_c" 1>&6
2346: else
2347: ac_save_LIBS="$LIBS"
2348: LIBS="-lxnet $LIBS"
2349: cat > conftest.$ac_ext <<EOF
2350: #line 2351 "configure"
2351: #include "confdefs.h"
2352:
2353: int main() {
2354: main()
2355: ; return 0; }
2356: EOF
2357: if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2358: rm -rf conftest*
2359: eval "ac_cv_lib_$ac_lib_var=yes"
2360: else
2361: echo "configure: failed program was:" >&5
2362: cat conftest.$ac_ext >&5
2363: rm -rf conftest*
2364: eval "ac_cv_lib_$ac_lib_var=no"
2365: fi
2366: rm -f conftest*
2367: LIBS="$ac_save_LIBS"
2368:
2369: fi
2370: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2371: echo "$ac_t""yes" 1>&6
2372: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2373: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2374: cat >> confdefs.h <<EOF
2375: #define $ac_tr_lib 1
2376: EOF
2377:
2378: LIBS="-lxnet $LIBS"
2379:
2380: else
2381: echo "$ac_t""no" 1>&6
2382: fi
2383:
2384: ;;
2385: *-sunos5* | *-solaris2*)
2386: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2387: echo "configure:2388: checking for main in -lsocket" >&5
2388: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2389: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2390: echo $ac_n "(cached) $ac_c" 1>&6
2391: else
2392: ac_save_LIBS="$LIBS"
2393: LIBS="-lsocket $LIBS"
2394: cat > conftest.$ac_ext <<EOF
2395: #line 2396 "configure"
2396: #include "confdefs.h"
2397:
2398: int main() {
2399: main()
2400: ; return 0; }
2401: EOF
2402: if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403: rm -rf conftest*
2404: eval "ac_cv_lib_$ac_lib_var=yes"
2405: else
2406: echo "configure: failed program was:" >&5
2407: cat conftest.$ac_ext >&5
2408: rm -rf conftest*
2409: eval "ac_cv_lib_$ac_lib_var=no"
2410: fi
2411: rm -f conftest*
2412: LIBS="$ac_save_LIBS"
2413:
2414: fi
2415: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2416: echo "$ac_t""yes" 1>&6
2417: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2418: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2419: cat >> confdefs.h <<EOF
2420: #define $ac_tr_lib 1
2421: EOF
2422:
2423: LIBS="-lsocket $LIBS"
2424:
2425: else
2426: echo "$ac_t""no" 1>&6
2427: fi
2428:
2429: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2430: echo "configure:2431: checking for main in -lnsl" >&5
2431: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2432: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2433: echo $ac_n "(cached) $ac_c" 1>&6
2434: else
2435: ac_save_LIBS="$LIBS"
2436: LIBS="-lnsl $LIBS"
2437: cat > conftest.$ac_ext <<EOF
2438: #line 2439 "configure"
2439: #include "confdefs.h"
2440:
2441: int main() {
2442: main()
2443: ; return 0; }
2444: EOF
2445: if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446: rm -rf conftest*
2447: eval "ac_cv_lib_$ac_lib_var=yes"
2448: else
2449: echo "configure: failed program was:" >&5
2450: cat conftest.$ac_ext >&5
2451: rm -rf conftest*
2452: eval "ac_cv_lib_$ac_lib_var=no"
2453: fi
2454: rm -f conftest*
2455: LIBS="$ac_save_LIBS"
2456:
2457: fi
2458: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459: echo "$ac_t""yes" 1>&6
2460: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2461: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2462: cat >> confdefs.h <<EOF
2463: #define $ac_tr_lib 1
2464: EOF
2465:
2466: LIBS="-lnsl $LIBS"
2467:
2468: else
2469: echo "$ac_t""no" 1>&6
2470: fi
2471:
2472: ;;
2473: *-nec-sysv4*)
2474: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2475: echo "configure:2476: checking for gethostbyname in -lnsl" >&5
2476: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2477: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2478: echo $ac_n "(cached) $ac_c" 1>&6
2479: else
2480: ac_save_LIBS="$LIBS"
2481: LIBS="-lnsl $LIBS"
2482: cat > conftest.$ac_ext <<EOF
2483: #line 2484 "configure"
2484: #include "confdefs.h"
2485: /* Override any gcc2 internal prototype to avoid an error. */
2486: #ifdef __cplusplus
2487: extern "C"
2488: #endif
2489: /* We use char because int might match the return type of a gcc2
2490: builtin and then its argument prototype would still apply. */
2491: char gethostbyname();
2492:
2493: int main() {
2494: gethostbyname()
2495: ; return 0; }
2496: EOF
2497: if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498: rm -rf conftest*
2499: eval "ac_cv_lib_$ac_lib_var=yes"
2500: else
2501: echo "configure: failed program was:" >&5
2502: cat conftest.$ac_ext >&5
2503: rm -rf conftest*
2504: eval "ac_cv_lib_$ac_lib_var=no"
2505: fi
2506: rm -f conftest*
2507: LIBS="$ac_save_LIBS"
2508:
2509: fi
2510: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511: echo "$ac_t""yes" 1>&6
2512: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2513: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2514: cat >> confdefs.h <<EOF
2515: #define $ac_tr_lib 1
2516: EOF
2517:
2518: LIBS="-lnsl $LIBS"
2519:
2520: else
2521: echo "$ac_t""no" 1>&6
2522: fi
2523:
2524: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2525: echo "configure:2526: checking for socket in -lsocket" >&5
2526: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2527: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528: echo $ac_n "(cached) $ac_c" 1>&6
2529: else
2530: ac_save_LIBS="$LIBS"
2531: LIBS="-lsocket $LIBS"
2532: cat > conftest.$ac_ext <<EOF
2533: #line 2534 "configure"
2534: #include "confdefs.h"
2535: /* Override any gcc2 internal prototype to avoid an error. */
2536: #ifdef __cplusplus
2537: extern "C"
2538: #endif
2539: /* We use char because int might match the return type of a gcc2
2540: builtin and then its argument prototype would still apply. */
2541: char socket();
2542:
2543: int main() {
2544: socket()
2545: ; return 0; }
2546: EOF
2547: if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2548: rm -rf conftest*
2549: eval "ac_cv_lib_$ac_lib_var=yes"
2550: else
2551: echo "configure: failed program was:" >&5
2552: cat conftest.$ac_ext >&5
2553: rm -rf conftest*
2554: eval "ac_cv_lib_$ac_lib_var=no"
2555: fi
2556: rm -f conftest*
2557: LIBS="$ac_save_LIBS"
2558:
2559: fi
2560: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561: echo "$ac_t""yes" 1>&6
2562: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2563: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2564: cat >> confdefs.h <<EOF
2565: #define $ac_tr_lib 1
2566: EOF
2567:
2568: LIBS="-lsocket $LIBS"
2569:
2570: else
2571: echo "$ac_t""no" 1>&6
2572: fi
2573:
2574: ;;
2575: *-cygwin*)
2576: cat >> confdefs.h <<\EOF
2577: #define WIN32
2578: EOF
2579:
2580: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
2581: echo "configure:2582: checking for socket in -lwsock32" >&5
2582: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2583: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2584: echo $ac_n "(cached) $ac_c" 1>&6
2585: else
2586: ac_save_LIBS="$LIBS"
2587: LIBS="-lwsock32 $LIBS"
2588: cat > conftest.$ac_ext <<EOF
2589: #line 2590 "configure"
2590: #include "confdefs.h"
2591: /* Override any gcc2 internal prototype to avoid an error. */
2592: #ifdef __cplusplus
2593: extern "C"
2594: #endif
2595: /* We use char because int might match the return type of a gcc2
2596: builtin and then its argument prototype would still apply. */
2597: char socket();
2598:
2599: int main() {
2600: socket()
2601: ; return 0; }
2602: EOF
2603: if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2604: rm -rf conftest*
2605: eval "ac_cv_lib_$ac_lib_var=yes"
2606: else
2607: echo "configure: failed program was:" >&5
2608: cat conftest.$ac_ext >&5
2609: rm -rf conftest*
2610: eval "ac_cv_lib_$ac_lib_var=no"
2611: fi
2612: rm -f conftest*
2613: LIBS="$ac_save_LIBS"
2614:
2615: fi
2616: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2617: echo "$ac_t""yes" 1>&6
2618: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2619: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2620: cat >> confdefs.h <<EOF
2621: #define $ac_tr_lib 1
2622: EOF
2623:
2624: LIBS="-lwsock32 $LIBS"
2625:
2626: else
2627: echo "$ac_t""no" 1>&6
2628: fi
2629:
2630: ;;
2631: esac
2632:
2633: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2634: echo "configure:2635: checking for sin in -lm" >&5
2635: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2636: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2637: echo $ac_n "(cached) $ac_c" 1>&6
2638: else
2639: ac_save_LIBS="$LIBS"
2640: LIBS="-lm $LIBS"
2641: cat > conftest.$ac_ext <<EOF
2642: #line 2643 "configure"
2643: #include "confdefs.h"
2644: /* Override any gcc2 internal prototype to avoid an error. */
2645: #ifdef __cplusplus
2646: extern "C"
2647: #endif
2648: /* We use char because int might match the return type of a gcc2
2649: builtin and then its argument prototype would still apply. */
2650: char sin();
2651:
2652: int main() {
2653: sin()
2654: ; return 0; }
2655: EOF
2656: if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657: rm -rf conftest*
2658: eval "ac_cv_lib_$ac_lib_var=yes"
2659: else
2660: echo "configure: failed program was:" >&5
2661: cat conftest.$ac_ext >&5
2662: rm -rf conftest*
2663: eval "ac_cv_lib_$ac_lib_var=no"
2664: fi
2665: rm -f conftest*
2666: LIBS="$ac_save_LIBS"
2667:
2668: fi
2669: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2670: echo "$ac_t""yes" 1>&6
2671: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2672: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2673: cat >> confdefs.h <<EOF
2674: #define $ac_tr_lib 1
2675: EOF
2676:
2677: LIBS="-lm $LIBS"
2678:
2679: else
2680: echo "$ac_t""no" 1>&6
2681: fi
2682:
2683:
2684:
2685: for ac_func in trunc \
2686: round \
2687: sign \
2688: flock \
2689: _locking \
2690: lockf
2691:
2692: do
2693: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2694: echo "configure:2695: checking for $ac_func" >&5
2695: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2696: echo $ac_n "(cached) $ac_c" 1>&6
2697: else
2698: cat > conftest.$ac_ext <<EOF
2699: #line 2700 "configure"
2700: #include "confdefs.h"
2701: /* System header to define __stub macros and hopefully few prototypes,
2702: which can conflict with char $ac_func(); below. */
2703: #include <assert.h>
2704: /* Override any gcc2 internal prototype to avoid an error. */
2705: #ifdef __cplusplus
2706: extern "C"
2707: #endif
2708: /* We use char because int might match the return type of a gcc2
2709: builtin and then its argument prototype would still apply. */
2710: char $ac_func();
2711:
2712: int main() {
2713:
2714: /* The GNU C library defines this for functions which it implements
2715: to always fail with ENOSYS. Some functions are actually named
2716: something starting with __ and the normal name is an alias. */
2717: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2718: choke me
2719: #else
2720: $ac_func();
2721: #endif
2722:
2723: ; return 0; }
2724: EOF
2725: if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726: rm -rf conftest*
2727: eval "ac_cv_func_$ac_func=yes"
2728: else
2729: echo "configure: failed program was:" >&5
2730: cat conftest.$ac_ext >&5
2731: rm -rf conftest*
2732: eval "ac_cv_func_$ac_func=no"
2733: fi
2734: rm -f conftest*
2735: fi
2736:
2737: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2738: echo "$ac_t""yes" 1>&6
2739: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2740: cat >> confdefs.h <<EOF
2741: #define $ac_tr_func 1
2742: EOF
2743:
2744: else
2745: echo "$ac_t""no" 1>&6
2746: fi
2747: done
2748:
2749:
2750: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
2751: echo "configure:2752: checking whether compiler supports pragma pack" >&5
2752: cat > conftest.$ac_ext <<EOF
2753: #line 2754 "configure"
2754: #include "confdefs.h"
2755:
2756: int main() {
2757: #pragma pack(1)
2758: struct must_be_1_byte {
2759: char c;
2760: };
2761: #pragma pack()
2762: if(sizeof(must_be_1_byte)!=1)
2763: return 1;
2764:
2765: ; return 0; }
2766: EOF
2767: if { (eval echo configure:2768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2768: rm -rf conftest*
2769:
2770: echo "$ac_t""yes" 1>&6
2771: cat >> confdefs.h <<\EOF
2772: #define HAVE_PRAGMA_PACK
2773: EOF
2774:
2775:
2776: else
2777: echo "configure: failed program was:" >&5
2778: cat conftest.$ac_ext >&5
2779: rm -rf conftest*
2780: echo "$ac_t""no" 1>&6
2781:
2782: fi
2783: rm -f conftest*
2784:
2785: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
2786: echo "configure:2787: checking for set_new_handler" >&5
2787: cat > conftest.$ac_ext <<EOF
2788: #line 2789 "configure"
2789: #include "confdefs.h"
2790: #ifdef HAVE_NEW
2791: #include <new>
2792: #endif
2793: void failed_new() {}
2794:
2795: int main() {
2796: std::set_new_handler(failed_new);
2797:
2798: ; return 0; }
2799: EOF
2800: if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2801: rm -rf conftest*
2802:
2803: echo "$ac_t""yes" 1>&6
2804: cat >> confdefs.h <<\EOF
2805: #define HAVE_SET_NEW_HANDLER
2806: EOF
2807:
2808:
2809: else
2810: echo "configure: failed program was:" >&5
2811: cat conftest.$ac_ext >&5
2812: rm -rf conftest*
2813: echo "$ac_t""no" 1>&6
2814:
2815: fi
2816: rm -f conftest*
2817:
2818:
2819:
2820: APACHE_LIBS=$LIBS
2821: echo $ac_n "checking for __builtin_new in -lstdc++""... $ac_c" 1>&6
2822: echo "configure:2823: checking for __builtin_new in -lstdc++" >&5
2823: ac_lib_var=`echo stdc++'_'__builtin_new | sed 'y%./+-%__p_%'`
2824: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825: echo $ac_n "(cached) $ac_c" 1>&6
2826: else
2827: ac_save_LIBS="$LIBS"
2828: LIBS="-lstdc++ $LIBS"
2829: cat > conftest.$ac_ext <<EOF
2830: #line 2831 "configure"
2831: #include "confdefs.h"
2832: /* Override any gcc2 internal prototype to avoid an error. */
2833: #ifdef __cplusplus
2834: extern "C"
2835: #endif
2836: /* We use char because int might match the return type of a gcc2
2837: builtin and then its argument prototype would still apply. */
2838: char __builtin_new();
2839:
2840: int main() {
2841: __builtin_new()
2842: ; return 0; }
2843: EOF
2844: if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2845: rm -rf conftest*
2846: eval "ac_cv_lib_$ac_lib_var=yes"
2847: else
2848: echo "configure: failed program was:" >&5
2849: cat conftest.$ac_ext >&5
2850: rm -rf conftest*
2851: eval "ac_cv_lib_$ac_lib_var=no"
2852: fi
2853: rm -f conftest*
2854: LIBS="$ac_save_LIBS"
2855:
2856: fi
2857: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858: echo "$ac_t""yes" 1>&6
2859: APACHE_LIBS="$APACHE_LIBS -lstdc++"
2860:
2861: else
2862: echo "$ac_t""no" 1>&6
2863: fi
2864:
2865:
2866:
2867:
2868:
2869: # expand apostrophed
2870: e_sysconfdir=$sysconfdir
2871: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${prefix}/etc"
2872:
2873:
1.2 ! paf 2874: rootconfigdir=$e_sysconfdir
1.1 paf 2875:
2876:
2877:
2878: charsetsdir=$e_sysconfdir/parser3.charsets
2879:
2880:
2881: # expand apostrophed
2882: e_libdir=$libdir
2883: if test "$e_libdir" = "\${exec_prefix}/lib"; then
2884:
2885: # Let make expand exec_prefix.
2886: e_exec_prefix=$exec_prefix
2887: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$prefix
2888:
2889: # expand apostrophed
2890: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
2891: fi
2892:
2893: sqldriversdir=$e_libdir
2894:
2895:
2896:
2897:
2898:
2899:
2900:
2901: trap '' 1 2 15
2902: cat > confcache <<\EOF
2903: # This file is a shell script that caches the results of configure
2904: # tests run on this system so they can be shared between configure
2905: # scripts and configure runs. It is not useful on other systems.
2906: # If it contains results you don't want to keep, you may remove or edit it.
2907: #
2908: # By default, configure uses ./config.cache as the cache file,
2909: # creating it if it does not exist already. You can give configure
2910: # the --cache-file=FILE option to use a different cache file; that is
2911: # what configure does when it calls configure scripts in
2912: # subdirectories, so they share the cache.
2913: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2914: # config.status only pays attention to the cache file if you give it the
2915: # --recheck option to rerun configure.
2916: #
2917: EOF
2918: # The following way of writing the cache mishandles newlines in values,
2919: # but we know of no workaround that is simple, portable, and efficient.
2920: # So, don't put newlines in cache variables' values.
2921: # Ultrix sh set writes to stderr and can't be redirected directly,
2922: # and sets the high bit in the cache file unless we assign to the vars.
2923: (set) 2>&1 |
2924: case `(ac_space=' '; set | grep ac_space) 2>&1` in
2925: *ac_space=\ *)
2926: # `set' does not quote correctly, so add quotes (double-quote substitution
2927: # turns \\\\ into \\, and sed turns \\ into \).
2928: sed -n \
2929: -e "s/'/'\\\\''/g" \
2930: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2931: ;;
2932: *)
2933: # `set' quotes correctly as required by POSIX, so do not add quotes.
2934: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2935: ;;
2936: esac >> confcache
2937: if cmp -s $cache_file confcache; then
2938: :
2939: else
2940: if test -w $cache_file; then
2941: echo "updating cache $cache_file"
2942: cat confcache > $cache_file
2943: else
2944: echo "not updating unwritable cache $cache_file"
2945: fi
2946: fi
2947: rm -f confcache
2948:
2949: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2950:
2951: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2952: # Let make expand exec_prefix.
2953: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2954:
2955: # Any assignment to VPATH causes Sun make to only execute
2956: # the first set of double-colon rules, so remove it if not needed.
2957: # If there is a colon in the path, we need to keep it.
2958: if test "x$srcdir" = x.; then
2959: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2960: fi
2961:
2962: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2963:
2964: DEFS=-DHAVE_CONFIG_H
2965:
2966: # Without the "./", some shells look in PATH for config.status.
2967: : ${CONFIG_STATUS=./config.status}
2968:
2969: echo creating $CONFIG_STATUS
2970: rm -f $CONFIG_STATUS
2971: cat > $CONFIG_STATUS <<EOF
2972: #! /bin/sh
2973: # Generated automatically by configure.
2974: # Run this file to recreate the current configuration.
2975: # This directory was configured as follows,
2976: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2977: #
2978: # $0 $ac_configure_args
2979: #
2980: # Compiler output produced by configure, useful for debugging
2981: # configure, is in ./config.log if it exists.
2982:
2983: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2984: for ac_option
2985: do
2986: case "\$ac_option" in
2987: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2988: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2989: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2990: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2991: echo "$CONFIG_STATUS generated by autoconf version 2.13"
2992: exit 0 ;;
2993: -help | --help | --hel | --he | --h)
2994: echo "\$ac_cs_usage"; exit 0 ;;
2995: *) echo "\$ac_cs_usage"; exit 1 ;;
2996: esac
2997: done
2998:
2999: ac_given_srcdir=$srcdir
3000: ac_given_INSTALL="$INSTALL"
3001:
3002: trap 'rm -fr `echo "Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/main/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3003: EOF
3004: cat >> $CONFIG_STATUS <<EOF
3005:
3006: # Protect against being on the right side of a sed subst in config.status.
3007: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3008: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3009: $ac_vpsub
3010: $extrasub
3011: s%@SHELL@%$SHELL%g
3012: s%@CFLAGS@%$CFLAGS%g
3013: s%@CPPFLAGS@%$CPPFLAGS%g
3014: s%@CXXFLAGS@%$CXXFLAGS%g
3015: s%@FFLAGS@%$FFLAGS%g
3016: s%@DEFS@%$DEFS%g
3017: s%@LDFLAGS@%$LDFLAGS%g
3018: s%@LIBS@%$LIBS%g
3019: s%@exec_prefix@%$exec_prefix%g
3020: s%@prefix@%$prefix%g
3021: s%@program_transform_name@%$program_transform_name%g
3022: s%@bindir@%$bindir%g
3023: s%@sbindir@%$sbindir%g
3024: s%@libexecdir@%$libexecdir%g
3025: s%@datadir@%$datadir%g
3026: s%@sysconfdir@%$sysconfdir%g
3027: s%@sharedstatedir@%$sharedstatedir%g
3028: s%@localstatedir@%$localstatedir%g
3029: s%@libdir@%$libdir%g
3030: s%@includedir@%$includedir%g
3031: s%@oldincludedir@%$oldincludedir%g
3032: s%@infodir@%$infodir%g
3033: s%@mandir@%$mandir%g
3034: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3035: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3036: s%@INSTALL_DATA@%$INSTALL_DATA%g
3037: s%@PACKAGE@%$PACKAGE%g
3038: s%@VERSION@%$VERSION%g
3039: s%@ACLOCAL@%$ACLOCAL%g
3040: s%@AUTOCONF@%$AUTOCONF%g
3041: s%@AUTOMAKE@%$AUTOMAKE%g
3042: s%@AUTOHEADER@%$AUTOHEADER%g
3043: s%@MAKEINFO@%$MAKEINFO%g
3044: s%@SET_MAKE@%$SET_MAKE%g
3045: s%@P3S@%$P3S%g
3046: s%@CC@%$CC%g
3047: s%@CXX@%$CXX%g
3048: s%@APACHE13@%$APACHE13%g
3049: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3050: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3051: s%@XML_INCLUDES@%$XML_INCLUDES%g
3052: s%@XML_LIBS@%$XML_LIBS%g
3053: s%@DB2_INCLUDES@%$DB2_INCLUDES%g
3054: s%@DB2_LIBS@%$DB2_LIBS%g
3055: s%@host@%$host%g
3056: s%@host_alias@%$host_alias%g
3057: s%@host_cpu@%$host_cpu%g
3058: s%@host_vendor@%$host_vendor%g
3059: s%@host_os@%$host_os%g
3060: s%@RANLIB@%$RANLIB%g
3061: s%@AWK@%$AWK%g
3062: s%@YACC@%$YACC%g
3063: s%@INCLTDL@%$INCLTDL%g
3064: s%@LIBLTDL@%$LIBLTDL%g
3065: s%@LIBADD_DL@%$LIBADD_DL%g
3066: s%@build@%$build%g
3067: s%@build_alias@%$build_alias%g
3068: s%@build_cpu@%$build_cpu%g
3069: s%@build_vendor@%$build_vendor%g
3070: s%@build_os@%$build_os%g
3071: s%@LN_S@%$LN_S%g
3072: s%@LIBTOOL@%$LIBTOOL%g
3073: s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
3074: s%@subdirs@%$subdirs%g
3075: s%@CXXCPP@%$CXXCPP%g
3076: s%@APACHE_LIBS@%$APACHE_LIBS%g
1.2 ! paf 3077: s%@rootconfigdir@%$rootconfigdir%g
1.1 paf 3078: s%@charsetsdir@%$charsetsdir%g
3079: s%@sqldriversdir@%$sqldriversdir%g
3080:
3081: CEOF
3082: EOF
3083:
3084: cat >> $CONFIG_STATUS <<\EOF
3085:
3086: # Split the substitutions into bite-sized pieces for seds with
3087: # small command number limits, like on Digital OSF/1 and HP-UX.
3088: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3089: ac_file=1 # Number of current file.
3090: ac_beg=1 # First line for current file.
3091: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3092: ac_more_lines=:
3093: ac_sed_cmds=""
3094: while $ac_more_lines; do
3095: if test $ac_beg -gt 1; then
3096: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3097: else
3098: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3099: fi
3100: if test ! -s conftest.s$ac_file; then
3101: ac_more_lines=false
3102: rm -f conftest.s$ac_file
3103: else
3104: if test -z "$ac_sed_cmds"; then
3105: ac_sed_cmds="sed -f conftest.s$ac_file"
3106: else
3107: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3108: fi
3109: ac_file=`expr $ac_file + 1`
3110: ac_beg=$ac_end
3111: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3112: fi
3113: done
3114: if test -z "$ac_sed_cmds"; then
3115: ac_sed_cmds=cat
3116: fi
3117: EOF
3118:
3119: cat >> $CONFIG_STATUS <<EOF
3120:
3121: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/main/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile"}
3122: EOF
3123: cat >> $CONFIG_STATUS <<\EOF
3124: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3125: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3126: case "$ac_file" in
3127: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3128: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3129: *) ac_file_in="${ac_file}.in" ;;
3130: esac
3131:
3132: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3133:
3134: # Remove last slash and all that follows it. Not all systems have dirname.
3135: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3136: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3137: # The file is in a subdirectory.
3138: test ! -d "$ac_dir" && mkdir "$ac_dir"
3139: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3140: # A "../" for each directory in $ac_dir_suffix.
3141: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3142: else
3143: ac_dir_suffix= ac_dots=
3144: fi
3145:
3146: case "$ac_given_srcdir" in
3147: .) srcdir=.
3148: if test -z "$ac_dots"; then top_srcdir=.
3149: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3150: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3151: *) # Relative path.
3152: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3153: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3154: esac
3155:
3156: case "$ac_given_INSTALL" in
3157: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3158: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3159: esac
3160:
3161: echo creating "$ac_file"
3162: rm -f "$ac_file"
3163: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3164: case "$ac_file" in
3165: *Makefile*) ac_comsub="1i\\
3166: # $configure_input" ;;
3167: *) ac_comsub= ;;
3168: esac
3169:
3170: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3171: sed -e "$ac_comsub
3172: s%@configure_input@%$configure_input%g
3173: s%@srcdir@%$srcdir%g
3174: s%@top_srcdir@%$top_srcdir%g
3175: s%@INSTALL@%$INSTALL%g
3176: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3177: fi; done
3178: rm -f conftest.s*
3179:
3180: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3181: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3182: #
3183: # ac_d sets the value in "#define NAME VALUE" lines.
3184: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3185: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3186: ac_dC='\3'
3187: ac_dD='%g'
3188: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3189: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3190: ac_uB='\([ ]\)%\1#\2define\3'
3191: ac_uC=' '
3192: ac_uD='\4%g'
3193: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3194: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3195: ac_eB='$%\1#\2define\3'
3196: ac_eC=' '
3197: ac_eD='%g'
3198:
3199: if test "${CONFIG_HEADERS+set}" != set; then
3200: EOF
3201: cat >> $CONFIG_STATUS <<EOF
3202: CONFIG_HEADERS="src/include/pa_config_auto.h"
3203: EOF
3204: cat >> $CONFIG_STATUS <<\EOF
3205: fi
3206: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3207: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3208: case "$ac_file" in
3209: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3210: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3211: *) ac_file_in="${ac_file}.in" ;;
3212: esac
3213:
3214: echo creating $ac_file
3215:
3216: rm -f conftest.frag conftest.in conftest.out
3217: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3218: cat $ac_file_inputs > conftest.in
3219:
3220: EOF
3221:
3222: # Transform confdefs.h into a sed script conftest.vals that substitutes
3223: # the proper values into config.h.in to produce config.h. And first:
3224: # Protect against being on the right side of a sed subst in config.status.
3225: # Protect against being in an unquoted here document in config.status.
3226: rm -f conftest.vals
3227: cat > conftest.hdr <<\EOF
3228: s/[\\&%]/\\&/g
3229: s%[\\$`]%\\&%g
3230: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3231: s%ac_d%ac_u%gp
3232: s%ac_u%ac_e%gp
3233: EOF
3234: sed -n -f conftest.hdr confdefs.h > conftest.vals
3235: rm -f conftest.hdr
3236:
3237: # This sed command replaces #undef with comments. This is necessary, for
3238: # example, in the case of _POSIX_SOURCE, which is predefined and required
3239: # on some systems where configure will not decide to define it.
3240: cat >> conftest.vals <<\EOF
3241: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3242: EOF
3243:
3244: # Break up conftest.vals because some shells have a limit on
3245: # the size of here documents, and old seds have small limits too.
3246:
3247: rm -f conftest.tail
3248: while :
3249: do
3250: ac_lines=`grep -c . conftest.vals`
3251: # grep -c gives empty output for an empty file on some AIX systems.
3252: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3253: # Write a limited-size here document to conftest.frag.
3254: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3255: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3256: echo 'CEOF
3257: sed -f conftest.frag conftest.in > conftest.out
3258: rm -f conftest.in
3259: mv conftest.out conftest.in
3260: ' >> $CONFIG_STATUS
3261: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3262: rm -f conftest.vals
3263: mv conftest.tail conftest.vals
3264: done
3265: rm -f conftest.vals
3266:
3267: cat >> $CONFIG_STATUS <<\EOF
3268: rm -f conftest.frag conftest.h
3269: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3270: cat conftest.in >> conftest.h
3271: rm -f conftest.in
3272: if cmp -s $ac_file conftest.h 2>/dev/null; then
3273: echo "$ac_file is unchanged"
3274: rm -f conftest.h
3275: else
3276: # Remove last slash and all that follows it. Not all systems have dirname.
3277: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3278: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3279: # The file is in a subdirectory.
3280: test ! -d "$ac_dir" && mkdir "$ac_dir"
3281: fi
3282: rm -f $ac_file
3283: mv conftest.h $ac_file
3284: fi
3285: fi; done
3286:
3287: EOF
3288: cat >> $CONFIG_STATUS <<EOF
3289:
3290:
3291: EOF
3292: cat >> $CONFIG_STATUS <<\EOF
3293: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3294:
3295: exit 0
3296: EOF
3297: chmod +x $CONFIG_STATUS
3298: rm -fr confdefs* $ac_clean_files
3299: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3300:
3301: if test "$no_recursion" != yes; then
3302:
3303: # Remove --cache-file and --srcdir arguments so they do not pile up.
3304: ac_sub_configure_args=
3305: ac_prev=
3306: for ac_arg in $ac_configure_args; do
3307: if test -n "$ac_prev"; then
3308: ac_prev=
3309: continue
3310: fi
3311: case "$ac_arg" in
3312: -cache-file | --cache-file | --cache-fil | --cache-fi \
3313: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3314: ac_prev=cache_file ;;
3315: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3316: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3317: ;;
3318: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3319: ac_prev=srcdir ;;
3320: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3321: ;;
3322: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3323: esac
3324: done
3325:
3326: for ac_config_dir in src/libltdl; do
3327:
3328: # Do not complain, so a configure script can configure whichever
3329: # parts of a large source tree are present.
3330: if test ! -d $srcdir/$ac_config_dir; then
3331: continue
3332: fi
3333:
3334: echo configuring in $ac_config_dir
3335:
3336: case "$srcdir" in
3337: .) ;;
3338: *)
3339: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3340: else
3341: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3342: fi
3343: ;;
3344: esac
3345:
3346: ac_popdir=`pwd`
3347: cd $ac_config_dir
3348:
3349: # A "../" for each directory in /$ac_config_dir.
3350: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3351:
3352: case "$srcdir" in
3353: .) # No --srcdir option. We are building in place.
3354: ac_sub_srcdir=$srcdir ;;
3355: /*) # Absolute path.
3356: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3357: *) # Relative path.
3358: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3359: esac
3360:
3361: # Check for guested configure; otherwise get Cygnus style configure.
3362: if test -f $ac_sub_srcdir/configure; then
3363: ac_sub_configure=$ac_sub_srcdir/configure
3364: elif test -f $ac_sub_srcdir/configure.in; then
3365: ac_sub_configure=$ac_configure
3366: else
3367: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3368: ac_sub_configure=
3369: fi
3370:
3371: # The recursion is here.
3372: if test -n "$ac_sub_configure"; then
3373:
3374: # Make the cache file name correct relative to the subdirectory.
3375: case "$cache_file" in
3376: /*) ac_sub_cache_file=$cache_file ;;
3377: *) # Relative path.
3378: ac_sub_cache_file="$ac_dots$cache_file" ;;
3379: esac
3380: case "$ac_given_INSTALL" in
3381: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3382: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3383: esac
3384:
3385: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3386: # The eval makes quoting arguments work.
3387: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3388: then :
3389: else
3390: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3391: fi
3392: fi
3393:
3394: cd $ac_popdir
3395: done
3396: fi
3397:
E-mail: