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