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