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