Annotation of parser3/configure, revision 1.52
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.37 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.37 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.37 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.37 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.37 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.37 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.37 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.37 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
843: echo "configure:844: checking host system type" >&5
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.41 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
930: echo "configure:931: checking whether ${MAKE-make} sets \${MAKE}" >&5
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
959: echo "configure:960: checking for $ac_word" >&5
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
991: echo "configure:992: checking for $ac_word" >&5
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
1026: echo "configure:1027: checking for $ac_word" >&5
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
1060: echo "configure:1061: checking bison version" >&5
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.41 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.41 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.41 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.41 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.41 paf 1197: #line 1198 "configure"
1.1 paf 1198: #include "confdefs.h"
1199:
1200: main(){return(0);}
1201: EOF
1.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 paf 1386: #line 1387 "configure"
1.1 paf 1387: #include "confdefs.h"
1388:
1389: int main(){return(0);}
1390: EOF
1.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 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.41 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.28 paf 1925: LIBLTDL='${top_builddir}/'src/lib/libltdl/libltdlc.a
1926: INCLTDL='-I${top_srcdir}/'src/lib/libltdl
1.1 paf 1927:
1928:
1929:
1930:
1.28 paf 1931: subdirs="src/lib/libltdl"
1.8 paf 1932:
1933: LIBADD_DL=
1934: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.41 paf 1935: echo "configure:1936: checking for dlopen in -ldl" >&5
1.8 paf 1936: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1937: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1938: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1939: else
1.8 paf 1940: ac_save_LIBS="$LIBS"
1941: LIBS="-ldl $LIBS"
1942: cat > conftest.$ac_ext <<EOF
1.41 paf 1943: #line 1944 "configure"
1.8 paf 1944: #include "confdefs.h"
1945: /* Override any gcc2 internal prototype to avoid an error. */
1946: #ifdef __cplusplus
1947: extern "C"
1948: #endif
1949: /* We use char because int might match the return type of a gcc2
1950: builtin and then its argument prototype would still apply. */
1951: char dlopen();
1.1 paf 1952:
1.8 paf 1953: int main() {
1954: dlopen()
1955: ; return 0; }
1956: EOF
1.41 paf 1957: if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 1958: rm -rf conftest*
1959: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 1960: else
1.8 paf 1961: echo "configure: failed program was:" >&5
1962: cat conftest.$ac_ext >&5
1963: rm -rf conftest*
1964: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 1965: fi
1.8 paf 1966: rm -f conftest*
1967: LIBS="$ac_save_LIBS"
1.1 paf 1968:
1.8 paf 1969: fi
1970: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1971: echo "$ac_t""yes" 1>&6
1972: cat >> confdefs.h <<\EOF
1973: #define HAVE_LIBDL 1
1974: EOF
1975: LIBADD_DL="-ldl"
1976: else
1977: echo "$ac_t""no" 1>&6
1978: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.41 paf 1979: echo "configure:1980: checking for dlopen" >&5
1.8 paf 1980: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1981: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 1982: else
1.8 paf 1983: cat > conftest.$ac_ext <<EOF
1.41 paf 1984: #line 1985 "configure"
1.8 paf 1985: #include "confdefs.h"
1986: /* System header to define __stub macros and hopefully few prototypes,
1987: which can conflict with char dlopen(); below. */
1988: #include <assert.h>
1989: /* Override any gcc2 internal prototype to avoid an error. */
1990: #ifdef __cplusplus
1991: extern "C"
1992: #endif
1993: /* We use char because int might match the return type of a gcc2
1994: builtin and then its argument prototype would still apply. */
1995: char dlopen();
1.1 paf 1996:
1.8 paf 1997: int main() {
1.1 paf 1998:
1.8 paf 1999: /* The GNU C library defines this for functions which it implements
2000: to always fail with ENOSYS. Some functions are actually named
2001: something starting with __ and the normal name is an alias. */
2002: #if defined (__stub_dlopen) || defined (__stub___dlopen)
2003: choke me
2004: #else
2005: dlopen();
2006: #endif
1.1 paf 2007:
1.8 paf 2008: ; return 0; }
2009: EOF
1.41 paf 2010: if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2011: rm -rf conftest*
2012: eval "ac_cv_func_dlopen=yes"
1.1 paf 2013: else
1.8 paf 2014: echo "configure: failed program was:" >&5
2015: cat conftest.$ac_ext >&5
2016: rm -rf conftest*
2017: eval "ac_cv_func_dlopen=no"
1.1 paf 2018: fi
1.8 paf 2019: rm -f conftest*
1.1 paf 2020: fi
2021:
1.8 paf 2022: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2023: echo "$ac_t""yes" 1>&6
2024: cat >> confdefs.h <<\EOF
2025: #define HAVE_LIBDL 1
2026: EOF
2027:
1.1 paf 2028: else
2029: echo "$ac_t""no" 1>&6
2030: fi
1.8 paf 2031:
2032: fi
2033:
2034: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.41 paf 2035: echo "configure:2036: checking for shl_load" >&5
1.8 paf 2036: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 2037: echo $ac_n "(cached) $ac_c" 1>&6
2038: else
1.8 paf 2039: cat > conftest.$ac_ext <<EOF
1.41 paf 2040: #line 2041 "configure"
1.8 paf 2041: #include "confdefs.h"
2042: /* System header to define __stub macros and hopefully few prototypes,
2043: which can conflict with char shl_load(); below. */
2044: #include <assert.h>
2045: /* Override any gcc2 internal prototype to avoid an error. */
2046: #ifdef __cplusplus
2047: extern "C"
2048: #endif
2049: /* We use char because int might match the return type of a gcc2
2050: builtin and then its argument prototype would still apply. */
2051: char shl_load();
1.1 paf 2052:
1.8 paf 2053: int main() {
1.1 paf 2054:
1.8 paf 2055: /* The GNU C library defines this for functions which it implements
2056: to always fail with ENOSYS. Some functions are actually named
2057: something starting with __ and the normal name is an alias. */
2058: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2059: choke me
2060: #else
2061: shl_load();
2062: #endif
1.1 paf 2063:
1.8 paf 2064: ; return 0; }
2065: EOF
1.41 paf 2066: if { (eval echo configure:2067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2067: rm -rf conftest*
2068: eval "ac_cv_func_shl_load=yes"
1.1 paf 2069: else
1.8 paf 2070: echo "configure: failed program was:" >&5
2071: cat conftest.$ac_ext >&5
2072: rm -rf conftest*
2073: eval "ac_cv_func_shl_load=no"
1.1 paf 2074: fi
1.8 paf 2075: rm -f conftest*
1.1 paf 2076: fi
2077:
1.8 paf 2078: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2079: echo "$ac_t""yes" 1>&6
2080: cat >> confdefs.h <<\EOF
2081: #define HAVE_SHL_LOAD 1
2082: EOF
1.1 paf 2083:
1.8 paf 2084: else
2085: echo "$ac_t""no" 1>&6
2086: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.41 paf 2087: echo "configure:2088: checking for shl_load in -ldld" >&5
1.8 paf 2088: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2089: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2090: echo $ac_n "(cached) $ac_c" 1>&6
2091: else
1.8 paf 2092: ac_save_LIBS="$LIBS"
2093: LIBS="-ldld $LIBS"
2094: cat > conftest.$ac_ext <<EOF
1.41 paf 2095: #line 2096 "configure"
1.8 paf 2096: #include "confdefs.h"
2097: /* Override any gcc2 internal prototype to avoid an error. */
2098: #ifdef __cplusplus
2099: extern "C"
2100: #endif
2101: /* We use char because int might match the return type of a gcc2
2102: builtin and then its argument prototype would still apply. */
2103: char shl_load();
2104:
2105: int main() {
2106: shl_load()
2107: ; return 0; }
2108: EOF
1.41 paf 2109: if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2110: rm -rf conftest*
2111: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2112: else
1.8 paf 2113: echo "configure: failed program was:" >&5
2114: cat conftest.$ac_ext >&5
2115: rm -rf conftest*
2116: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2117: fi
1.8 paf 2118: rm -f conftest*
2119: LIBS="$ac_save_LIBS"
2120:
1.1 paf 2121: fi
1.8 paf 2122: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2123: echo "$ac_t""yes" 1>&6
1.8 paf 2124: cat >> confdefs.h <<\EOF
2125: #define HAVE_SHL_LOAD 1
2126: EOF
2127: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2128: else
2129: echo "$ac_t""no" 1>&6
2130: fi
2131:
1.8 paf 2132: fi
1.1 paf 2133:
1.8 paf 2134: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.41 paf 2135: echo "configure:2136: checking for dld_link in -ldld" >&5
1.8 paf 2136: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2137: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2138: echo $ac_n "(cached) $ac_c" 1>&6
2139: else
2140: ac_save_LIBS="$LIBS"
2141: LIBS="-ldld $LIBS"
2142: cat > conftest.$ac_ext <<EOF
1.41 paf 2143: #line 2144 "configure"
1.8 paf 2144: #include "confdefs.h"
2145: /* Override any gcc2 internal prototype to avoid an error. */
2146: #ifdef __cplusplus
2147: extern "C"
2148: #endif
2149: /* We use char because int might match the return type of a gcc2
2150: builtin and then its argument prototype would still apply. */
2151: char dld_link();
1.1 paf 2152:
1.8 paf 2153: int main() {
2154: dld_link()
2155: ; return 0; }
2156: EOF
1.41 paf 2157: if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2158: rm -rf conftest*
2159: eval "ac_cv_lib_$ac_lib_var=yes"
2160: else
2161: echo "configure: failed program was:" >&5
2162: cat conftest.$ac_ext >&5
2163: rm -rf conftest*
2164: eval "ac_cv_lib_$ac_lib_var=no"
2165: fi
2166: rm -f conftest*
2167: LIBS="$ac_save_LIBS"
1.1 paf 2168:
1.8 paf 2169: fi
2170: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171: echo "$ac_t""yes" 1>&6
2172: cat >> confdefs.h <<\EOF
2173: #define HAVE_DLD 1
2174: EOF
2175: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2176: else
2177: echo "$ac_t""no" 1>&6
1.1 paf 2178: fi
2179:
2180:
2181:
1.8 paf 2182: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2183: LIBS_SAVE="$LIBS"
2184: LIBS="$LIBS $LIBADD_DL"
2185: for ac_func in dlerror
2186: do
2187: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.41 paf 2188: echo "configure:2189: checking for $ac_func" >&5
1.8 paf 2189: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2190: echo $ac_n "(cached) $ac_c" 1>&6
2191: else
2192: cat > conftest.$ac_ext <<EOF
1.41 paf 2193: #line 2194 "configure"
1.1 paf 2194: #include "confdefs.h"
1.8 paf 2195: /* System header to define __stub macros and hopefully few prototypes,
2196: which can conflict with char $ac_func(); below. */
2197: #include <assert.h>
2198: /* Override any gcc2 internal prototype to avoid an error. */
2199: #ifdef __cplusplus
2200: extern "C"
2201: #endif
2202: /* We use char because int might match the return type of a gcc2
2203: builtin and then its argument prototype would still apply. */
2204: char $ac_func();
1.1 paf 2205:
2206: int main() {
2207:
1.8 paf 2208: /* The GNU C library defines this for functions which it implements
2209: to always fail with ENOSYS. Some functions are actually named
2210: something starting with __ and the normal name is an alias. */
2211: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2212: choke me
2213: #else
2214: $ac_func();
2215: #endif
2216:
1.1 paf 2217: ; return 0; }
2218: EOF
1.41 paf 2219: if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2220: rm -rf conftest*
1.8 paf 2221: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2222: else
2223: echo "configure: failed program was:" >&5
2224: cat conftest.$ac_ext >&5
2225: rm -rf conftest*
1.8 paf 2226: eval "ac_cv_func_$ac_func=no"
1.1 paf 2227: fi
2228: rm -f conftest*
2229: fi
2230:
1.8 paf 2231: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2232: echo "$ac_t""yes" 1>&6
2233: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2234: cat >> confdefs.h <<EOF
2235: #define $ac_tr_func 1
1.1 paf 2236: EOF
1.8 paf 2237:
1.1 paf 2238: else
1.8 paf 2239: echo "$ac_t""no" 1>&6
1.1 paf 2240: fi
1.8 paf 2241: done
1.1 paf 2242:
1.8 paf 2243: LIBS="$LIBS_SAVE"
1.1 paf 2244: fi
2245:
2246:
2247: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.41 paf 2248: echo "configure:2249: checking how to run the C++ preprocessor" >&5
1.1 paf 2249: if test -z "$CXXCPP"; then
2250: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2251: echo $ac_n "(cached) $ac_c" 1>&6
2252: else
2253: ac_ext=C
2254: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2255: ac_cpp='$CXXCPP $CPPFLAGS'
2256: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2257: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2258: cross_compiling=$ac_cv_prog_cxx_cross
2259: CXXCPP="${CXX-g++} -E"
2260: cat > conftest.$ac_ext <<EOF
1.41 paf 2261: #line 2262 "configure"
1.1 paf 2262: #include "confdefs.h"
2263: #include <stdlib.h>
2264: EOF
2265: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.41 paf 2266: { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2267: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268: if test -z "$ac_err"; then
2269: :
2270: else
2271: echo "$ac_err" >&5
2272: echo "configure: failed program was:" >&5
2273: cat conftest.$ac_ext >&5
2274: rm -rf conftest*
2275: CXXCPP=/lib/cpp
2276: fi
2277: rm -f conftest*
2278: ac_cv_prog_CXXCPP="$CXXCPP"
2279: ac_ext=C
2280: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2281: ac_cpp='$CXXCPP $CPPFLAGS'
2282: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2283: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2284: cross_compiling=$ac_cv_prog_cxx_cross
2285: fi
2286: fi
2287: CXXCPP="$ac_cv_prog_CXXCPP"
2288: echo "$ac_t""$CXXCPP" 1>&6
2289:
2290: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.41 paf 2291: echo "configure:2292: checking for ANSI C header files" >&5
1.1 paf 2292: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2293: echo $ac_n "(cached) $ac_c" 1>&6
2294: else
2295: cat > conftest.$ac_ext <<EOF
1.41 paf 2296: #line 2297 "configure"
1.1 paf 2297: #include "confdefs.h"
2298: #include <stdlib.h>
2299: #include <stdarg.h>
2300: #include <string.h>
2301: #include <float.h>
2302: EOF
2303: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.41 paf 2304: { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2305: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2306: if test -z "$ac_err"; then
2307: rm -rf conftest*
2308: ac_cv_header_stdc=yes
2309: else
2310: echo "$ac_err" >&5
2311: echo "configure: failed program was:" >&5
2312: cat conftest.$ac_ext >&5
2313: rm -rf conftest*
2314: ac_cv_header_stdc=no
2315: fi
2316: rm -f conftest*
2317:
2318: if test $ac_cv_header_stdc = yes; then
2319: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2320: cat > conftest.$ac_ext <<EOF
1.41 paf 2321: #line 2322 "configure"
1.1 paf 2322: #include "confdefs.h"
2323: #include <string.h>
2324: EOF
2325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326: egrep "memchr" >/dev/null 2>&1; then
2327: :
2328: else
2329: rm -rf conftest*
2330: ac_cv_header_stdc=no
2331: fi
2332: rm -f conftest*
2333:
2334: fi
2335:
2336: if test $ac_cv_header_stdc = yes; then
2337: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2338: cat > conftest.$ac_ext <<EOF
1.41 paf 2339: #line 2340 "configure"
1.1 paf 2340: #include "confdefs.h"
2341: #include <stdlib.h>
2342: EOF
2343: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2344: egrep "free" >/dev/null 2>&1; then
2345: :
2346: else
2347: rm -rf conftest*
2348: ac_cv_header_stdc=no
2349: fi
2350: rm -f conftest*
2351:
2352: fi
2353:
2354: if test $ac_cv_header_stdc = yes; then
2355: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2356: if test "$cross_compiling" = yes; then
2357: :
2358: else
2359: cat > conftest.$ac_ext <<EOF
1.41 paf 2360: #line 2361 "configure"
1.1 paf 2361: #include "confdefs.h"
2362: #ifdef __cplusplus
2363: extern "C" void exit(int);
2364: #endif
2365: #include <ctype.h>
2366: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2367: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2368: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2369: int main () { int i; for (i = 0; i < 256; i++)
2370: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2371: exit (0); }
2372:
2373: EOF
1.41 paf 2374: if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2375: then
2376: :
2377: else
2378: echo "configure: failed program was:" >&5
2379: cat conftest.$ac_ext >&5
2380: rm -fr conftest*
2381: ac_cv_header_stdc=no
2382: fi
2383: rm -fr conftest*
2384: fi
2385:
2386: fi
2387: fi
2388:
2389: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2390: if test $ac_cv_header_stdc = yes; then
2391: cat >> confdefs.h <<\EOF
2392: #define STDC_HEADERS 1
2393: EOF
2394:
2395: fi
2396:
2397: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.41 paf 2398: echo "configure:2399: checking for size_t" >&5
1.1 paf 2399: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2400: echo $ac_n "(cached) $ac_c" 1>&6
2401: else
2402: cat > conftest.$ac_ext <<EOF
1.41 paf 2403: #line 2404 "configure"
1.1 paf 2404: #include "confdefs.h"
2405: #include <sys/types.h>
2406: #if STDC_HEADERS
2407: #include <stdlib.h>
2408: #include <stddef.h>
2409: #endif
2410: EOF
2411: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2412: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2413: rm -rf conftest*
2414: ac_cv_type_size_t=yes
2415: else
2416: rm -rf conftest*
2417: ac_cv_type_size_t=no
2418: fi
2419: rm -f conftest*
2420:
2421: fi
2422: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2423: if test $ac_cv_type_size_t = no; then
2424: cat >> confdefs.h <<\EOF
2425: #define size_t unsigned
2426: EOF
2427:
2428: fi
2429:
1.30 paf 2430: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.41 paf 2431: echo "configure:2432: checking for off_t" >&5
1.30 paf 2432: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2433: echo $ac_n "(cached) $ac_c" 1>&6
2434: else
2435: cat > conftest.$ac_ext <<EOF
1.41 paf 2436: #line 2437 "configure"
1.30 paf 2437: #include "confdefs.h"
2438: #include <sys/types.h>
2439: #if STDC_HEADERS
2440: #include <stdlib.h>
2441: #include <stddef.h>
2442: #endif
2443: EOF
2444: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2445: egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2446: rm -rf conftest*
2447: ac_cv_type_off_t=yes
2448: else
2449: rm -rf conftest*
2450: ac_cv_type_off_t=no
2451: fi
2452: rm -f conftest*
2453:
2454: fi
2455: echo "$ac_t""$ac_cv_type_off_t" 1>&6
2456: if test $ac_cv_type_off_t = no; then
2457: cat >> confdefs.h <<\EOF
2458: #define off_t long
2459: EOF
2460:
2461: fi
2462:
2463: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.41 paf 2464: echo "configure:2465: checking for ssize_t" >&5
1.30 paf 2465: if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2466: echo $ac_n "(cached) $ac_c" 1>&6
2467: else
2468: cat > conftest.$ac_ext <<EOF
1.41 paf 2469: #line 2470 "configure"
1.30 paf 2470: #include "confdefs.h"
2471: #include <sys/types.h>
2472: #if STDC_HEADERS
2473: #include <stdlib.h>
2474: #include <stddef.h>
2475: #endif
2476: EOF
2477: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478: egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2479: rm -rf conftest*
2480: ac_cv_type_ssize_t=yes
2481: else
2482: rm -rf conftest*
2483: ac_cv_type_ssize_t=no
2484: fi
2485: rm -f conftest*
2486:
2487: fi
2488: echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2489: if test $ac_cv_type_ssize_t = no; then
2490: cat >> confdefs.h <<\EOF
2491: #define ssize_t int
2492: EOF
2493:
2494: fi
2495:
2496:
1.1 paf 2497:
2498:
1.8 paf 2499: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.41 paf 2500: echo "configure:2501: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2501: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2502: echo $ac_n "(cached) $ac_c" 1>&6
2503: else
2504: cat > conftest.$ac_ext <<EOF
1.41 paf 2505: #line 2506 "configure"
1.8 paf 2506: #include "confdefs.h"
2507: #include <sys/types.h>
2508: #include <sys/time.h>
2509: #include <time.h>
2510: int main() {
2511: struct tm *tp;
2512: ; return 0; }
2513: EOF
1.41 paf 2514: if { (eval echo configure:2515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2515: rm -rf conftest*
2516: ac_cv_header_time=yes
2517: else
2518: echo "configure: failed program was:" >&5
2519: cat conftest.$ac_ext >&5
2520: rm -rf conftest*
2521: ac_cv_header_time=no
2522: fi
2523: rm -f conftest*
2524: fi
2525:
2526: echo "$ac_t""$ac_cv_header_time" 1>&6
2527: if test $ac_cv_header_time = yes; then
2528: cat >> confdefs.h <<\EOF
2529: #define TIME_WITH_SYS_TIME 1
2530: EOF
2531:
2532: fi
2533:
2534:
1.51 paf 2535: for ac_hdr in signal.h \
2536: unistd.h \
1.1 paf 2537: process.h \
2538: stddef.h \
2539: stdarg.h \
2540: fcntl.h \
2541: sys/stat.h \
2542: io.h \
2543: stdio.h \
2544: errno.h \
2545: ctype.h \
2546: math.h \
1.31 paf 2547: crypt.h \
1.3 paf 2548: time.h sys/time.h \
1.1 paf 2549: stdlib.h \
2550: string.h \
2551: direct.h \
2552: setjmp.h \
2553: memory.h \
2554: new \
2555: sys/file.h \
2556: sys/locking.h \
1.3 paf 2557: sys/types.h \
2558: sys/select.h \
1.39 paf 2559: sys/resource.h \
1.52 ! paf 2560: winsock.h \
! 2561: sys/socket.h \
! 2562: netinet/in.h \
! 2563: arpa/inet.h \
! 2564: netdb.h
1.1 paf 2565:
2566: do
2567: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2568: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.52 ! paf 2569: echo "configure:2570: checking for $ac_hdr" >&5
1.1 paf 2570: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2571: echo $ac_n "(cached) $ac_c" 1>&6
2572: else
2573: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2574: #line 2575 "configure"
1.1 paf 2575: #include "confdefs.h"
2576: #include <$ac_hdr>
2577: EOF
2578: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.52 ! paf 2579: { (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2580: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2581: if test -z "$ac_err"; then
2582: rm -rf conftest*
2583: eval "ac_cv_header_$ac_safe=yes"
2584: else
2585: echo "$ac_err" >&5
2586: echo "configure: failed program was:" >&5
2587: cat conftest.$ac_ext >&5
2588: rm -rf conftest*
2589: eval "ac_cv_header_$ac_safe=no"
2590: fi
2591: rm -f conftest*
2592: fi
2593: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2594: echo "$ac_t""yes" 1>&6
2595: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2596: cat >> confdefs.h <<EOF
2597: #define $ac_tr_hdr 1
2598: EOF
2599:
2600: else
2601: echo "$ac_t""no" 1>&6
2602: fi
2603: done
2604:
2605:
2606:
2607: case "$host" in
2608: *-sunos5.6* | *-solaris2.6*)
2609: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.52 ! paf 2610: echo "configure:2611: checking for main in -lxnet" >&5
1.1 paf 2611: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2612: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2613: echo $ac_n "(cached) $ac_c" 1>&6
2614: else
2615: ac_save_LIBS="$LIBS"
2616: LIBS="-lxnet $LIBS"
2617: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2618: #line 2619 "configure"
1.1 paf 2619: #include "confdefs.h"
2620:
2621: int main() {
2622: main()
2623: ; return 0; }
2624: EOF
1.52 ! paf 2625: if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2626: rm -rf conftest*
2627: eval "ac_cv_lib_$ac_lib_var=yes"
2628: else
2629: echo "configure: failed program was:" >&5
2630: cat conftest.$ac_ext >&5
2631: rm -rf conftest*
2632: eval "ac_cv_lib_$ac_lib_var=no"
2633: fi
2634: rm -f conftest*
2635: LIBS="$ac_save_LIBS"
2636:
2637: fi
2638: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2639: echo "$ac_t""yes" 1>&6
2640: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2641: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2642: cat >> confdefs.h <<EOF
2643: #define $ac_tr_lib 1
2644: EOF
2645:
2646: LIBS="-lxnet $LIBS"
2647:
2648: else
2649: echo "$ac_t""no" 1>&6
2650: fi
2651:
2652: ;;
2653: *-sunos5* | *-solaris2*)
2654: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.52 ! paf 2655: echo "configure:2656: checking for main in -lsocket" >&5
1.1 paf 2656: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2657: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2658: echo $ac_n "(cached) $ac_c" 1>&6
2659: else
2660: ac_save_LIBS="$LIBS"
2661: LIBS="-lsocket $LIBS"
2662: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2663: #line 2664 "configure"
1.1 paf 2664: #include "confdefs.h"
2665:
2666: int main() {
2667: main()
2668: ; return 0; }
2669: EOF
1.52 ! paf 2670: if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2671: rm -rf conftest*
2672: eval "ac_cv_lib_$ac_lib_var=yes"
2673: else
2674: echo "configure: failed program was:" >&5
2675: cat conftest.$ac_ext >&5
2676: rm -rf conftest*
2677: eval "ac_cv_lib_$ac_lib_var=no"
2678: fi
2679: rm -f conftest*
2680: LIBS="$ac_save_LIBS"
2681:
2682: fi
2683: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2684: echo "$ac_t""yes" 1>&6
2685: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2686: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2687: cat >> confdefs.h <<EOF
2688: #define $ac_tr_lib 1
2689: EOF
2690:
2691: LIBS="-lsocket $LIBS"
2692:
2693: else
2694: echo "$ac_t""no" 1>&6
2695: fi
2696:
2697: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.52 ! paf 2698: echo "configure:2699: checking for main in -lnsl" >&5
1.1 paf 2699: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2700: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2701: echo $ac_n "(cached) $ac_c" 1>&6
2702: else
2703: ac_save_LIBS="$LIBS"
2704: LIBS="-lnsl $LIBS"
2705: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2706: #line 2707 "configure"
1.1 paf 2707: #include "confdefs.h"
2708:
2709: int main() {
2710: main()
2711: ; return 0; }
2712: EOF
1.52 ! paf 2713: if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2714: rm -rf conftest*
2715: eval "ac_cv_lib_$ac_lib_var=yes"
2716: else
2717: echo "configure: failed program was:" >&5
2718: cat conftest.$ac_ext >&5
2719: rm -rf conftest*
2720: eval "ac_cv_lib_$ac_lib_var=no"
2721: fi
2722: rm -f conftest*
2723: LIBS="$ac_save_LIBS"
2724:
2725: fi
2726: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2727: echo "$ac_t""yes" 1>&6
2728: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2729: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2730: cat >> confdefs.h <<EOF
2731: #define $ac_tr_lib 1
2732: EOF
2733:
2734: LIBS="-lnsl $LIBS"
2735:
2736: else
2737: echo "$ac_t""no" 1>&6
2738: fi
2739:
2740: ;;
2741: *-nec-sysv4*)
2742: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.52 ! paf 2743: echo "configure:2744: checking for gethostbyname in -lnsl" >&5
1.1 paf 2744: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2745: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2746: echo $ac_n "(cached) $ac_c" 1>&6
2747: else
2748: ac_save_LIBS="$LIBS"
2749: LIBS="-lnsl $LIBS"
2750: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2751: #line 2752 "configure"
1.1 paf 2752: #include "confdefs.h"
2753: /* Override any gcc2 internal prototype to avoid an error. */
2754: #ifdef __cplusplus
2755: extern "C"
2756: #endif
2757: /* We use char because int might match the return type of a gcc2
2758: builtin and then its argument prototype would still apply. */
2759: char gethostbyname();
2760:
2761: int main() {
2762: gethostbyname()
2763: ; return 0; }
2764: EOF
1.52 ! paf 2765: if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2766: rm -rf conftest*
2767: eval "ac_cv_lib_$ac_lib_var=yes"
2768: else
2769: echo "configure: failed program was:" >&5
2770: cat conftest.$ac_ext >&5
2771: rm -rf conftest*
2772: eval "ac_cv_lib_$ac_lib_var=no"
2773: fi
2774: rm -f conftest*
2775: LIBS="$ac_save_LIBS"
2776:
2777: fi
2778: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2779: echo "$ac_t""yes" 1>&6
2780: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2781: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2782: cat >> confdefs.h <<EOF
2783: #define $ac_tr_lib 1
2784: EOF
2785:
2786: LIBS="-lnsl $LIBS"
2787:
2788: else
2789: echo "$ac_t""no" 1>&6
2790: fi
2791:
2792: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.52 ! paf 2793: echo "configure:2794: checking for socket in -lsocket" >&5
1.1 paf 2794: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2795: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2796: echo $ac_n "(cached) $ac_c" 1>&6
2797: else
2798: ac_save_LIBS="$LIBS"
2799: LIBS="-lsocket $LIBS"
2800: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2801: #line 2802 "configure"
1.1 paf 2802: #include "confdefs.h"
2803: /* Override any gcc2 internal prototype to avoid an error. */
2804: #ifdef __cplusplus
2805: extern "C"
2806: #endif
2807: /* We use char because int might match the return type of a gcc2
2808: builtin and then its argument prototype would still apply. */
2809: char socket();
2810:
2811: int main() {
2812: socket()
2813: ; return 0; }
2814: EOF
1.52 ! paf 2815: if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2816: rm -rf conftest*
2817: eval "ac_cv_lib_$ac_lib_var=yes"
2818: else
2819: echo "configure: failed program was:" >&5
2820: cat conftest.$ac_ext >&5
2821: rm -rf conftest*
2822: eval "ac_cv_lib_$ac_lib_var=no"
2823: fi
2824: rm -f conftest*
2825: LIBS="$ac_save_LIBS"
2826:
2827: fi
2828: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2829: echo "$ac_t""yes" 1>&6
2830: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2831: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2832: cat >> confdefs.h <<EOF
2833: #define $ac_tr_lib 1
2834: EOF
2835:
2836: LIBS="-lsocket $LIBS"
2837:
2838: else
2839: echo "$ac_t""no" 1>&6
2840: fi
2841:
2842: ;;
2843: *-cygwin*)
2844: cat >> confdefs.h <<\EOF
2845: #define WIN32
2846: EOF
2847:
2848: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.52 ! paf 2849: echo "configure:2850: checking for socket in -lwsock32" >&5
1.1 paf 2850: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2851: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2852: echo $ac_n "(cached) $ac_c" 1>&6
2853: else
2854: ac_save_LIBS="$LIBS"
2855: LIBS="-lwsock32 $LIBS"
2856: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2857: #line 2858 "configure"
1.1 paf 2858: #include "confdefs.h"
2859: /* Override any gcc2 internal prototype to avoid an error. */
2860: #ifdef __cplusplus
2861: extern "C"
2862: #endif
2863: /* We use char because int might match the return type of a gcc2
2864: builtin and then its argument prototype would still apply. */
2865: char socket();
2866:
2867: int main() {
2868: socket()
2869: ; return 0; }
2870: EOF
1.52 ! paf 2871: if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2872: rm -rf conftest*
2873: eval "ac_cv_lib_$ac_lib_var=yes"
2874: else
2875: echo "configure: failed program was:" >&5
2876: cat conftest.$ac_ext >&5
2877: rm -rf conftest*
2878: eval "ac_cv_lib_$ac_lib_var=no"
2879: fi
2880: rm -f conftest*
2881: LIBS="$ac_save_LIBS"
2882:
2883: fi
2884: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2885: echo "$ac_t""yes" 1>&6
2886: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2887: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2888: cat >> confdefs.h <<EOF
2889: #define $ac_tr_lib 1
2890: EOF
2891:
2892: LIBS="-lwsock32 $LIBS"
2893:
2894: else
2895: echo "$ac_t""no" 1>&6
2896: fi
2897:
2898: ;;
1.22 paf 2899: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2900: *-hpux*)
1.22 paf 2901: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.52 ! paf 2902: echo "configure:2903: checking for main in -lnsl" >&5
1.22 paf 2903: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2904: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2905: echo $ac_n "(cached) $ac_c" 1>&6
2906: else
2907: ac_save_LIBS="$LIBS"
2908: LIBS="-lnsl $LIBS"
2909: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2910: #line 2911 "configure"
1.22 paf 2911: #include "confdefs.h"
2912:
2913: int main() {
2914: main()
2915: ; return 0; }
2916: EOF
1.52 ! paf 2917: if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22 paf 2918: rm -rf conftest*
2919: eval "ac_cv_lib_$ac_lib_var=yes"
2920: else
2921: echo "configure: failed program was:" >&5
2922: cat conftest.$ac_ext >&5
2923: rm -rf conftest*
2924: eval "ac_cv_lib_$ac_lib_var=no"
2925: fi
2926: rm -f conftest*
2927: LIBS="$ac_save_LIBS"
2928:
2929: fi
2930: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2931: echo "$ac_t""yes" 1>&6
2932: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2933: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2934: cat >> confdefs.h <<EOF
2935: #define $ac_tr_lib 1
2936: EOF
2937:
2938: LIBS="-lnsl $LIBS"
2939:
2940: else
2941: echo "$ac_t""no" 1>&6
2942: fi
2943:
2944: ;;
1.1 paf 2945: esac
2946:
2947: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.52 ! paf 2948: echo "configure:2949: checking for sin in -lm" >&5
1.1 paf 2949: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2950: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2951: echo $ac_n "(cached) $ac_c" 1>&6
2952: else
2953: ac_save_LIBS="$LIBS"
2954: LIBS="-lm $LIBS"
2955: cat > conftest.$ac_ext <<EOF
1.52 ! paf 2956: #line 2957 "configure"
1.1 paf 2957: #include "confdefs.h"
2958: /* Override any gcc2 internal prototype to avoid an error. */
2959: #ifdef __cplusplus
2960: extern "C"
2961: #endif
2962: /* We use char because int might match the return type of a gcc2
2963: builtin and then its argument prototype would still apply. */
2964: char sin();
2965:
2966: int main() {
2967: sin()
2968: ; return 0; }
2969: EOF
1.52 ! paf 2970: if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2971: rm -rf conftest*
2972: eval "ac_cv_lib_$ac_lib_var=yes"
2973: else
2974: echo "configure: failed program was:" >&5
2975: cat conftest.$ac_ext >&5
2976: rm -rf conftest*
2977: eval "ac_cv_lib_$ac_lib_var=no"
2978: fi
2979: rm -f conftest*
2980: LIBS="$ac_save_LIBS"
2981:
2982: fi
2983: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2984: echo "$ac_t""yes" 1>&6
2985: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2986: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2987: cat >> confdefs.h <<EOF
2988: #define $ac_tr_lib 1
2989: EOF
2990:
2991: LIBS="-lm $LIBS"
2992:
2993: else
2994: echo "$ac_t""no" 1>&6
2995: fi
2996:
2997:
1.31 paf 2998: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.52 ! paf 2999: echo "configure:3000: checking for crypt in -lcrypt" >&5
1.31 paf 3000: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3001: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3002: echo $ac_n "(cached) $ac_c" 1>&6
3003: else
3004: ac_save_LIBS="$LIBS"
3005: LIBS="-lcrypt $LIBS"
3006: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3007: #line 3008 "configure"
1.31 paf 3008: #include "confdefs.h"
3009: /* Override any gcc2 internal prototype to avoid an error. */
3010: #ifdef __cplusplus
3011: extern "C"
3012: #endif
3013: /* We use char because int might match the return type of a gcc2
3014: builtin and then its argument prototype would still apply. */
3015: char crypt();
3016:
3017: int main() {
3018: crypt()
3019: ; return 0; }
3020: EOF
1.52 ! paf 3021: if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31 paf 3022: rm -rf conftest*
3023: eval "ac_cv_lib_$ac_lib_var=yes"
3024: else
3025: echo "configure: failed program was:" >&5
3026: cat conftest.$ac_ext >&5
3027: rm -rf conftest*
3028: eval "ac_cv_lib_$ac_lib_var=no"
3029: fi
3030: rm -f conftest*
3031: LIBS="$ac_save_LIBS"
3032:
3033: fi
3034: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3035: echo "$ac_t""yes" 1>&6
3036: ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3037: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3038: cat >> confdefs.h <<EOF
3039: #define $ac_tr_lib 1
3040: EOF
3041:
3042: LIBS="-lcrypt $LIBS"
3043:
3044: else
3045: echo "$ac_t""no" 1>&6
3046: fi
3047:
3048:
1.1 paf 3049:
3050: for ac_func in trunc \
3051: round \
3052: sign \
3053: flock \
3054: _locking \
1.5 paf 3055: fcntl \
1.3 paf 3056: lockf \
1.31 paf 3057: getrusage \
1.49 paf 3058: gettimeofday \
1.52 ! paf 3059: crypt \
! 3060: sigsetjmp siglongjmp
1.1 paf 3061:
3062: do
3063: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.52 ! paf 3064: echo "configure:3065: checking for $ac_func" >&5
1.1 paf 3065: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3066: echo $ac_n "(cached) $ac_c" 1>&6
3067: else
3068: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3069: #line 3070 "configure"
1.1 paf 3070: #include "confdefs.h"
3071: /* System header to define __stub macros and hopefully few prototypes,
3072: which can conflict with char $ac_func(); below. */
3073: #include <assert.h>
3074: /* Override any gcc2 internal prototype to avoid an error. */
3075: #ifdef __cplusplus
3076: extern "C"
3077: #endif
3078: /* We use char because int might match the return type of a gcc2
3079: builtin and then its argument prototype would still apply. */
3080: char $ac_func();
3081:
3082: int main() {
3083:
3084: /* The GNU C library defines this for functions which it implements
3085: to always fail with ENOSYS. Some functions are actually named
3086: something starting with __ and the normal name is an alias. */
3087: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3088: choke me
3089: #else
3090: $ac_func();
3091: #endif
3092:
3093: ; return 0; }
3094: EOF
1.52 ! paf 3095: if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3096: rm -rf conftest*
3097: eval "ac_cv_func_$ac_func=yes"
3098: else
3099: echo "configure: failed program was:" >&5
3100: cat conftest.$ac_ext >&5
3101: rm -rf conftest*
3102: eval "ac_cv_func_$ac_func=no"
3103: fi
3104: rm -f conftest*
3105: fi
3106:
3107: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3108: echo "$ac_t""yes" 1>&6
3109: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3110: cat >> confdefs.h <<EOF
3111: #define $ac_tr_func 1
3112: EOF
3113:
3114: else
3115: echo "$ac_t""no" 1>&6
3116: fi
3117: done
3118:
3119:
1.3 paf 3120:
3121: for ac_func in qsort
3122: do
3123: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.52 ! paf 3124: echo "configure:3125: checking for $ac_func" >&5
1.3 paf 3125: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3126: echo $ac_n "(cached) $ac_c" 1>&6
3127: else
3128: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3129: #line 3130 "configure"
1.3 paf 3130: #include "confdefs.h"
3131: /* System header to define __stub macros and hopefully few prototypes,
3132: which can conflict with char $ac_func(); below. */
3133: #include <assert.h>
3134: /* Override any gcc2 internal prototype to avoid an error. */
3135: #ifdef __cplusplus
3136: extern "C"
3137: #endif
3138: /* We use char because int might match the return type of a gcc2
3139: builtin and then its argument prototype would still apply. */
3140: char $ac_func();
3141:
3142: int main() {
3143:
3144: /* The GNU C library defines this for functions which it implements
3145: to always fail with ENOSYS. Some functions are actually named
3146: something starting with __ and the normal name is an alias. */
3147: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3148: choke me
3149: #else
3150: $ac_func();
3151: #endif
3152:
3153: ; return 0; }
3154: EOF
1.52 ! paf 3155: if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3156: rm -rf conftest*
3157: eval "ac_cv_func_$ac_func=yes"
3158: else
3159: echo "configure: failed program was:" >&5
3160: cat conftest.$ac_ext >&5
3161: rm -rf conftest*
3162: eval "ac_cv_func_$ac_func=no"
3163: fi
3164: rm -f conftest*
3165: fi
3166:
3167: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3168: echo "$ac_t""yes" 1>&6
3169: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3170: cat >> confdefs.h <<EOF
3171: #define $ac_tr_func 1
3172: EOF
3173:
3174: else
3175: echo "$ac_t""no" 1>&6
3176: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3177: fi
3178: done
3179:
3180: for ac_func in select
3181: do
3182: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.52 ! paf 3183: echo "configure:3184: checking for $ac_func" >&5
1.3 paf 3184: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3185: echo $ac_n "(cached) $ac_c" 1>&6
3186: else
3187: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3188: #line 3189 "configure"
1.3 paf 3189: #include "confdefs.h"
3190: /* System header to define __stub macros and hopefully few prototypes,
3191: which can conflict with char $ac_func(); below. */
3192: #include <assert.h>
3193: /* Override any gcc2 internal prototype to avoid an error. */
3194: #ifdef __cplusplus
3195: extern "C"
3196: #endif
3197: /* We use char because int might match the return type of a gcc2
3198: builtin and then its argument prototype would still apply. */
3199: char $ac_func();
3200:
3201: int main() {
3202:
3203: /* The GNU C library defines this for functions which it implements
3204: to always fail with ENOSYS. Some functions are actually named
3205: something starting with __ and the normal name is an alias. */
3206: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3207: choke me
3208: #else
3209: $ac_func();
3210: #endif
3211:
3212: ; return 0; }
3213: EOF
1.52 ! paf 3214: if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3215: rm -rf conftest*
3216: eval "ac_cv_func_$ac_func=yes"
3217: else
3218: echo "configure: failed program was:" >&5
3219: cat conftest.$ac_ext >&5
3220: rm -rf conftest*
3221: eval "ac_cv_func_$ac_func=no"
3222: fi
3223: rm -f conftest*
3224: fi
3225:
3226: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3227: echo "$ac_t""yes" 1>&6
3228: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3229: cat >> confdefs.h <<EOF
3230: #define $ac_tr_func 1
3231: EOF
3232:
3233: else
3234: echo "$ac_t""no" 1>&6
3235: { echo "configure: error: No select library function." 1>&2; exit 1; }
3236: fi
3237: done
3238:
3239:
1.47 paf 3240:
3241: echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
1.52 ! paf 3242: echo "configure:3243: checking for timezone variable" >&5
1.47 paf 3243: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3244: #line 3245 "configure"
1.47 paf 3245: #include "confdefs.h"
3246: #include <time.h>
3247: int main() {
3248:
3249: time_t test=timezone;
3250:
3251: ; return 0; }
3252: EOF
1.52 ! paf 3253: if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3254: rm -rf conftest*
3255: cat >> confdefs.h <<\EOF
3256: #define HAVE_TIMEZONE 1
3257: EOF
3258:
3259: echo "$ac_t""yes" 1>&6
3260: else
3261: echo "configure: failed program was:" >&5
3262: cat conftest.$ac_ext >&5
3263: rm -rf conftest*
3264: echo "$ac_t""no" 1>&6
3265: fi
3266: rm -f conftest*
3267:
3268: echo $ac_n "checking for daylight variable""... $ac_c" 1>&6
1.52 ! paf 3269: echo "configure:3270: checking for daylight variable" >&5
1.47 paf 3270: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3271: #line 3272 "configure"
1.47 paf 3272: #include "confdefs.h"
3273: #include <time.h>
3274: int main() {
3275:
3276: int test=daylight;
3277:
3278: ; return 0; }
3279: EOF
1.52 ! paf 3280: if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3281: rm -rf conftest*
3282: cat >> confdefs.h <<\EOF
3283: #define HAVE_DAYLIGHT 1
3284: EOF
3285:
3286: echo "$ac_t""yes" 1>&6
3287: else
3288: echo "configure: failed program was:" >&5
3289: cat conftest.$ac_ext >&5
3290: rm -rf conftest*
3291: echo "$ac_t""no" 1>&6
3292: fi
3293: rm -f conftest*
3294:
3295: echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1.52 ! paf 3296: echo "configure:3297: checking for tm_gmtoff in struct tm" >&5
1.47 paf 3297: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3298: #line 3299 "configure"
1.47 paf 3299: #include "confdefs.h"
3300: #include <time.h>
3301: int main() {
3302: struct tm tm;
3303: tm.tm_gmtoff=0;
3304:
3305: ; return 0; }
3306: EOF
1.52 ! paf 3307: if { (eval echo configure:3308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3308: rm -rf conftest*
3309: cat >> confdefs.h <<\EOF
3310: #define HAVE_TM_GMTOFF 1
3311: EOF
3312:
3313: echo "$ac_t""yes" 1>&6
3314: else
3315: echo "configure: failed program was:" >&5
3316: cat conftest.$ac_ext >&5
3317: rm -rf conftest*
3318: echo "$ac_t""no" 1>&6
3319: fi
3320: rm -f conftest*
3321:
3322: echo $ac_n "checking for tm_tzadj in struct tm""... $ac_c" 1>&6
1.52 ! paf 3323: echo "configure:3324: checking for tm_tzadj in struct tm" >&5
1.47 paf 3324: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3325: #line 3326 "configure"
1.47 paf 3326: #include "confdefs.h"
3327: #include <time.h>
3328: int main() {
3329: struct tm tm;
3330: tm.tm_tzadj=0;
3331:
3332: ; return 0; }
3333: EOF
1.52 ! paf 3334: if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47 paf 3335: rm -rf conftest*
3336: cat >> confdefs.h <<\EOF
3337: #define HAVE_TM_TZADJ 1
3338: EOF
3339:
3340: echo "$ac_t""yes" 1>&6
3341: else
3342: echo "configure: failed program was:" >&5
3343: cat conftest.$ac_ext >&5
3344: rm -rf conftest*
3345: echo "$ac_t""no" 1>&6
3346: fi
3347: rm -f conftest*
3348:
3349:
1.1 paf 3350: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.52 ! paf 3351: echo "configure:3352: checking whether compiler supports pragma pack" >&5
1.1 paf 3352: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3353: #line 3354 "configure"
1.1 paf 3354: #include "confdefs.h"
3355: #pragma pack(1)
1.25 paf 3356: struct _1_byte {
1.1 paf 3357: char c;
1.25 paf 3358: };
1.1 paf 3359: #pragma pack()
1.25 paf 3360:
3361: int main() {
1.1 paf 3362:
3363: ; return 0; }
3364: EOF
1.52 ! paf 3365: if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3366: rm -rf conftest*
3367:
3368: echo "$ac_t""yes" 1>&6
3369: cat >> confdefs.h <<\EOF
3370: #define HAVE_PRAGMA_PACK
3371: EOF
3372:
3373:
3374: else
3375: echo "configure: failed program was:" >&5
3376: cat conftest.$ac_ext >&5
3377: rm -rf conftest*
3378: echo "$ac_t""no" 1>&6
3379:
3380: fi
3381: rm -f conftest*
3382:
3383: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.52 ! paf 3384: echo "configure:3385: checking for set_new_handler" >&5
1.1 paf 3385: cat > conftest.$ac_ext <<EOF
1.52 ! paf 3386: #line 3387 "configure"
1.1 paf 3387: #include "confdefs.h"
3388: #ifdef HAVE_NEW
3389: #include <new>
3390: #endif
3391: void failed_new() {}
3392:
3393: int main() {
3394: std::set_new_handler(failed_new);
3395:
3396: ; return 0; }
3397: EOF
1.52 ! paf 3398: if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3399: rm -rf conftest*
3400:
3401: echo "$ac_t""yes" 1>&6
3402: cat >> confdefs.h <<\EOF
3403: #define HAVE_SET_NEW_HANDLER
3404: EOF
3405:
3406:
3407: else
3408: echo "configure: failed program was:" >&5
3409: cat conftest.$ac_ext >&5
3410: rm -rf conftest*
3411: echo "$ac_t""no" 1>&6
3412:
3413: fi
3414: rm -f conftest*
3415:
3416:
3417:
1.15 paf 3418:
1.8 paf 3419: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3420:
3421:
3422:
3423:
3424: # expand apostrophed
1.4 paf 3425: e_prefix=$prefix
3426: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3427:
1.1 paf 3428: e_sysconfdir=$sysconfdir
1.4 paf 3429: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3430:
3431:
3432: charsetsdir=$e_sysconfdir/parser3.charsets
3433:
3434:
3435: # expand apostrophed
3436: e_libdir=$libdir
3437: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3438:
3439: # Let make expand exec_prefix.
3440: e_exec_prefix=$exec_prefix
1.10 paf 3441: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3442:
3443: # expand apostrophed
3444: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3445: fi
3446:
3447: sqldriversdir=$e_libdir
3448:
3449:
3450:
3451:
3452:
3453:
3454:
3455: trap '' 1 2 15
3456: cat > confcache <<\EOF
3457: # This file is a shell script that caches the results of configure
3458: # tests run on this system so they can be shared between configure
3459: # scripts and configure runs. It is not useful on other systems.
3460: # If it contains results you don't want to keep, you may remove or edit it.
3461: #
3462: # By default, configure uses ./config.cache as the cache file,
3463: # creating it if it does not exist already. You can give configure
3464: # the --cache-file=FILE option to use a different cache file; that is
3465: # what configure does when it calls configure scripts in
3466: # subdirectories, so they share the cache.
3467: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3468: # config.status only pays attention to the cache file if you give it the
3469: # --recheck option to rerun configure.
3470: #
3471: EOF
3472: # The following way of writing the cache mishandles newlines in values,
3473: # but we know of no workaround that is simple, portable, and efficient.
3474: # So, don't put newlines in cache variables' values.
3475: # Ultrix sh set writes to stderr and can't be redirected directly,
3476: # and sets the high bit in the cache file unless we assign to the vars.
3477: (set) 2>&1 |
3478: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3479: *ac_space=\ *)
3480: # `set' does not quote correctly, so add quotes (double-quote substitution
3481: # turns \\\\ into \\, and sed turns \\ into \).
3482: sed -n \
3483: -e "s/'/'\\\\''/g" \
3484: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3485: ;;
3486: *)
3487: # `set' quotes correctly as required by POSIX, so do not add quotes.
3488: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3489: ;;
3490: esac >> confcache
3491: if cmp -s $cache_file confcache; then
3492: :
3493: else
3494: if test -w $cache_file; then
3495: echo "updating cache $cache_file"
3496: cat confcache > $cache_file
3497: else
3498: echo "not updating unwritable cache $cache_file"
3499: fi
3500: fi
3501: rm -f confcache
3502:
3503: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3504:
3505: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3506: # Let make expand exec_prefix.
3507: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3508:
3509: # Any assignment to VPATH causes Sun make to only execute
3510: # the first set of double-colon rules, so remove it if not needed.
3511: # If there is a colon in the path, we need to keep it.
3512: if test "x$srcdir" = x.; then
3513: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3514: fi
3515:
3516: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3517:
3518: DEFS=-DHAVE_CONFIG_H
3519:
3520: # Without the "./", some shells look in PATH for config.status.
3521: : ${CONFIG_STATUS=./config.status}
3522:
3523: echo creating $CONFIG_STATUS
3524: rm -f $CONFIG_STATUS
3525: cat > $CONFIG_STATUS <<EOF
3526: #! /bin/sh
3527: # Generated automatically by configure.
3528: # Run this file to recreate the current configuration.
3529: # This directory was configured as follows,
3530: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3531: #
3532: # $0 $ac_configure_args
3533: #
3534: # Compiler output produced by configure, useful for debugging
3535: # configure, is in ./config.log if it exists.
3536:
3537: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3538: for ac_option
3539: do
3540: case "\$ac_option" in
3541: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3542: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3543: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3544: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3545: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3546: exit 0 ;;
3547: -help | --help | --hel | --he | --h)
3548: echo "\$ac_cs_usage"; exit 0 ;;
3549: *) echo "\$ac_cs_usage"; exit 1 ;;
3550: esac
3551: done
3552:
3553: ac_given_srcdir=$srcdir
3554: ac_given_INSTALL="$INSTALL"
3555:
1.36 paf 3556: 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/libltdl/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 3557: EOF
3558: cat >> $CONFIG_STATUS <<EOF
3559:
3560: # Protect against being on the right side of a sed subst in config.status.
3561: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3562: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3563: $ac_vpsub
3564: $extrasub
3565: s%@SHELL@%$SHELL%g
3566: s%@CFLAGS@%$CFLAGS%g
3567: s%@CPPFLAGS@%$CPPFLAGS%g
3568: s%@CXXFLAGS@%$CXXFLAGS%g
3569: s%@FFLAGS@%$FFLAGS%g
3570: s%@DEFS@%$DEFS%g
3571: s%@LDFLAGS@%$LDFLAGS%g
3572: s%@LIBS@%$LIBS%g
3573: s%@exec_prefix@%$exec_prefix%g
3574: s%@prefix@%$prefix%g
3575: s%@program_transform_name@%$program_transform_name%g
3576: s%@bindir@%$bindir%g
3577: s%@sbindir@%$sbindir%g
3578: s%@libexecdir@%$libexecdir%g
3579: s%@datadir@%$datadir%g
3580: s%@sysconfdir@%$sysconfdir%g
3581: s%@sharedstatedir@%$sharedstatedir%g
3582: s%@localstatedir@%$localstatedir%g
3583: s%@libdir@%$libdir%g
3584: s%@includedir@%$includedir%g
3585: s%@oldincludedir@%$oldincludedir%g
3586: s%@infodir@%$infodir%g
3587: s%@mandir@%$mandir%g
3588: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3589: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3590: s%@INSTALL_DATA@%$INSTALL_DATA%g
3591: s%@PACKAGE@%$PACKAGE%g
3592: s%@VERSION@%$VERSION%g
3593: s%@ACLOCAL@%$ACLOCAL%g
3594: s%@AUTOCONF@%$AUTOCONF%g
3595: s%@AUTOMAKE@%$AUTOMAKE%g
3596: s%@AUTOHEADER@%$AUTOHEADER%g
3597: s%@MAKEINFO@%$MAKEINFO%g
3598: s%@SET_MAKE@%$SET_MAKE%g
3599: s%@P3S@%$P3S%g
1.41 paf 3600: s%@host@%$host%g
3601: s%@host_alias@%$host_alias%g
3602: s%@host_cpu@%$host_cpu%g
3603: s%@host_vendor@%$host_vendor%g
3604: s%@host_os@%$host_os%g
3605: s%@RANLIB@%$RANLIB%g
3606: s%@AWK@%$AWK%g
3607: s%@YACC@%$YACC%g
1.1 paf 3608: s%@CC@%$CC%g
3609: s%@CXX@%$CXX%g
1.15 paf 3610: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3611: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 paf 3612: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3613: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3614: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3615: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40 paf 3616: s%@dll_extension@%$dll_extension%g
1.17 paf 3617: s%@mysql_client@%$mysql_client%g
3618: s%@pgsql_client@%$pgsql_client%g
3619: s%@oracle_client@%$oracle_client%g
1.12 paf 3620: s%@XML_INCLUDES@%$XML_INCLUDES%g
3621: s%@XML_LIBS@%$XML_LIBS%g
1.29 paf 3622: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
3623: s%@MIME_LIBS@%$MIME_LIBS%g
1.1 paf 3624: s%@APACHE13@%$APACHE13%g
3625: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3626: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3627: s%@INCLTDL@%$INCLTDL%g
3628: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3629: s%@subdirs@%$subdirs%g
1.1 paf 3630: s%@LIBADD_DL@%$LIBADD_DL%g
3631: s%@CXXCPP@%$CXXCPP%g
3632: s%@APACHE_LIBS@%$APACHE_LIBS%g
3633: s%@charsetsdir@%$charsetsdir%g
3634: s%@sqldriversdir@%$sqldriversdir%g
3635:
3636: CEOF
3637: EOF
3638:
3639: cat >> $CONFIG_STATUS <<\EOF
3640:
3641: # Split the substitutions into bite-sized pieces for seds with
3642: # small command number limits, like on Digital OSF/1 and HP-UX.
3643: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3644: ac_file=1 # Number of current file.
3645: ac_beg=1 # First line for current file.
3646: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3647: ac_more_lines=:
3648: ac_sed_cmds=""
3649: while $ac_more_lines; do
3650: if test $ac_beg -gt 1; then
3651: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3652: else
3653: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3654: fi
3655: if test ! -s conftest.s$ac_file; then
3656: ac_more_lines=false
3657: rm -f conftest.s$ac_file
3658: else
3659: if test -z "$ac_sed_cmds"; then
3660: ac_sed_cmds="sed -f conftest.s$ac_file"
3661: else
3662: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3663: fi
3664: ac_file=`expr $ac_file + 1`
3665: ac_beg=$ac_end
3666: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3667: fi
3668: done
3669: if test -z "$ac_sed_cmds"; then
3670: ac_sed_cmds=cat
3671: fi
3672: EOF
3673:
3674: cat >> $CONFIG_STATUS <<EOF
3675:
1.36 paf 3676: 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/libltdl/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 3677: EOF
3678: cat >> $CONFIG_STATUS <<\EOF
3679: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3680: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3681: case "$ac_file" in
3682: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3683: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3684: *) ac_file_in="${ac_file}.in" ;;
3685: esac
3686:
3687: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3688:
3689: # Remove last slash and all that follows it. Not all systems have dirname.
3690: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3691: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3692: # The file is in a subdirectory.
3693: test ! -d "$ac_dir" && mkdir "$ac_dir"
3694: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3695: # A "../" for each directory in $ac_dir_suffix.
3696: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3697: else
3698: ac_dir_suffix= ac_dots=
3699: fi
3700:
3701: case "$ac_given_srcdir" in
3702: .) srcdir=.
3703: if test -z "$ac_dots"; then top_srcdir=.
3704: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3705: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3706: *) # Relative path.
3707: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3708: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3709: esac
3710:
3711: case "$ac_given_INSTALL" in
3712: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3713: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3714: esac
3715:
3716: echo creating "$ac_file"
3717: rm -f "$ac_file"
3718: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3719: case "$ac_file" in
3720: *Makefile*) ac_comsub="1i\\
3721: # $configure_input" ;;
3722: *) ac_comsub= ;;
3723: esac
3724:
3725: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3726: sed -e "$ac_comsub
3727: s%@configure_input@%$configure_input%g
3728: s%@srcdir@%$srcdir%g
3729: s%@top_srcdir@%$top_srcdir%g
3730: s%@INSTALL@%$INSTALL%g
3731: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3732: fi; done
3733: rm -f conftest.s*
3734:
3735: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3736: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3737: #
3738: # ac_d sets the value in "#define NAME VALUE" lines.
3739: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3740: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3741: ac_dC='\3'
3742: ac_dD='%g'
3743: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3744: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3745: ac_uB='\([ ]\)%\1#\2define\3'
3746: ac_uC=' '
3747: ac_uD='\4%g'
3748: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3749: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3750: ac_eB='$%\1#\2define\3'
3751: ac_eC=' '
3752: ac_eD='%g'
3753:
3754: if test "${CONFIG_HEADERS+set}" != set; then
3755: EOF
3756: cat >> $CONFIG_STATUS <<EOF
3757: CONFIG_HEADERS="src/include/pa_config_auto.h"
3758: EOF
3759: cat >> $CONFIG_STATUS <<\EOF
3760: fi
3761: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3762: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3763: case "$ac_file" in
3764: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3765: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3766: *) ac_file_in="${ac_file}.in" ;;
3767: esac
3768:
3769: echo creating $ac_file
3770:
3771: rm -f conftest.frag conftest.in conftest.out
3772: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3773: cat $ac_file_inputs > conftest.in
3774:
3775: EOF
3776:
3777: # Transform confdefs.h into a sed script conftest.vals that substitutes
3778: # the proper values into config.h.in to produce config.h. And first:
3779: # Protect against being on the right side of a sed subst in config.status.
3780: # Protect against being in an unquoted here document in config.status.
3781: rm -f conftest.vals
3782: cat > conftest.hdr <<\EOF
3783: s/[\\&%]/\\&/g
3784: s%[\\$`]%\\&%g
3785: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3786: s%ac_d%ac_u%gp
3787: s%ac_u%ac_e%gp
3788: EOF
3789: sed -n -f conftest.hdr confdefs.h > conftest.vals
3790: rm -f conftest.hdr
3791:
3792: # This sed command replaces #undef with comments. This is necessary, for
3793: # example, in the case of _POSIX_SOURCE, which is predefined and required
3794: # on some systems where configure will not decide to define it.
3795: cat >> conftest.vals <<\EOF
3796: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3797: EOF
3798:
3799: # Break up conftest.vals because some shells have a limit on
3800: # the size of here documents, and old seds have small limits too.
3801:
3802: rm -f conftest.tail
3803: while :
3804: do
3805: ac_lines=`grep -c . conftest.vals`
3806: # grep -c gives empty output for an empty file on some AIX systems.
3807: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3808: # Write a limited-size here document to conftest.frag.
3809: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3810: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3811: echo 'CEOF
3812: sed -f conftest.frag conftest.in > conftest.out
3813: rm -f conftest.in
3814: mv conftest.out conftest.in
3815: ' >> $CONFIG_STATUS
3816: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3817: rm -f conftest.vals
3818: mv conftest.tail conftest.vals
3819: done
3820: rm -f conftest.vals
3821:
3822: cat >> $CONFIG_STATUS <<\EOF
3823: rm -f conftest.frag conftest.h
3824: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3825: cat conftest.in >> conftest.h
3826: rm -f conftest.in
3827: if cmp -s $ac_file conftest.h 2>/dev/null; then
3828: echo "$ac_file is unchanged"
3829: rm -f conftest.h
3830: else
3831: # Remove last slash and all that follows it. Not all systems have dirname.
3832: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3833: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3834: # The file is in a subdirectory.
3835: test ! -d "$ac_dir" && mkdir "$ac_dir"
3836: fi
3837: rm -f $ac_file
3838: mv conftest.h $ac_file
3839: fi
3840: fi; done
3841:
3842: EOF
3843: cat >> $CONFIG_STATUS <<EOF
3844:
3845:
3846: EOF
3847: cat >> $CONFIG_STATUS <<\EOF
3848: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3849:
3850: exit 0
3851: EOF
3852: chmod +x $CONFIG_STATUS
3853: rm -fr confdefs* $ac_clean_files
3854: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3855:
3856: if test "$no_recursion" != yes; then
3857:
3858: # Remove --cache-file and --srcdir arguments so they do not pile up.
3859: ac_sub_configure_args=
3860: ac_prev=
3861: for ac_arg in $ac_configure_args; do
3862: if test -n "$ac_prev"; then
3863: ac_prev=
3864: continue
3865: fi
3866: case "$ac_arg" in
3867: -cache-file | --cache-file | --cache-fil | --cache-fi \
3868: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3869: ac_prev=cache_file ;;
3870: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3871: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3872: ;;
3873: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3874: ac_prev=srcdir ;;
3875: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3876: ;;
3877: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3878: esac
3879: done
3880:
1.28 paf 3881: for ac_config_dir in src/lib/libltdl; do
1.1 paf 3882:
3883: # Do not complain, so a configure script can configure whichever
3884: # parts of a large source tree are present.
3885: if test ! -d $srcdir/$ac_config_dir; then
3886: continue
3887: fi
3888:
3889: echo configuring in $ac_config_dir
3890:
3891: case "$srcdir" in
3892: .) ;;
3893: *)
3894: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3895: else
3896: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3897: fi
3898: ;;
3899: esac
3900:
3901: ac_popdir=`pwd`
3902: cd $ac_config_dir
3903:
3904: # A "../" for each directory in /$ac_config_dir.
3905: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3906:
3907: case "$srcdir" in
3908: .) # No --srcdir option. We are building in place.
3909: ac_sub_srcdir=$srcdir ;;
3910: /*) # Absolute path.
3911: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3912: *) # Relative path.
3913: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3914: esac
3915:
3916: # Check for guested configure; otherwise get Cygnus style configure.
3917: if test -f $ac_sub_srcdir/configure; then
3918: ac_sub_configure=$ac_sub_srcdir/configure
3919: elif test -f $ac_sub_srcdir/configure.in; then
3920: ac_sub_configure=$ac_configure
3921: else
3922: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3923: ac_sub_configure=
3924: fi
3925:
3926: # The recursion is here.
3927: if test -n "$ac_sub_configure"; then
3928:
3929: # Make the cache file name correct relative to the subdirectory.
3930: case "$cache_file" in
3931: /*) ac_sub_cache_file=$cache_file ;;
3932: *) # Relative path.
3933: ac_sub_cache_file="$ac_dots$cache_file" ;;
3934: esac
3935: case "$ac_given_INSTALL" in
3936: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3937: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3938: esac
3939:
3940: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3941: # The eval makes quoting arguments work.
3942: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3943: then :
3944: else
3945: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3946: fi
3947: fi
3948:
3949: cd $ac_popdir
3950: done
3951: fi
3952:
E-mail: