Annotation of parser3/configure, revision 1.40
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:
836: # Find a good install program. We prefer a C program (faster),
837: # so one script is as good as another. But avoid the broken or
838: # incompatible versions:
839: # SysV /etc/install, /usr/sbin/install
840: # SunOS /usr/etc/install
841: # IRIX /sbin/install
842: # AIX /bin/install
843: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
844: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
845: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
846: # ./install, which can be erroneously created by make from ./install.sh.
847: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.37 paf 848: echo "configure:849: checking for a BSD compatible install" >&5
1.1 paf 849: if test -z "$INSTALL"; then
850: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
851: echo $ac_n "(cached) $ac_c" 1>&6
852: else
853: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
854: for ac_dir in $PATH; do
855: # Account for people who put trailing slashes in PATH elements.
856: case "$ac_dir/" in
857: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
858: *)
859: # OSF1 and SCO ODT 3.0 have their own names for install.
860: # Don't use installbsd from OSF since it installs stuff as root
861: # by default.
862: for ac_prog in ginstall scoinst install; do
863: if test -f $ac_dir/$ac_prog; then
864: if test $ac_prog = install &&
865: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
866: # AIX install. It has an incompatible calling convention.
867: :
868: else
869: ac_cv_path_install="$ac_dir/$ac_prog -c"
870: break 2
871: fi
872: fi
873: done
874: ;;
875: esac
876: done
877: IFS="$ac_save_IFS"
878:
879: fi
880: if test "${ac_cv_path_install+set}" = set; then
881: INSTALL="$ac_cv_path_install"
882: else
883: # As a last resort, use the slow shell script. We don't cache a
884: # path for INSTALL within a source directory, because that will
885: # break other packages using the cache if that directory is
886: # removed, or if the path is relative.
887: INSTALL="$ac_install_sh"
888: fi
889: fi
890: echo "$ac_t""$INSTALL" 1>&6
891:
892: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
893: # It thinks the first close brace ends the variable substitution.
894: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895:
896: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
897:
898: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899:
900: # Extract the first word of "gcc", so it can be a program name with args.
901: set dummy gcc; ac_word=$2
902: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.37 paf 903: echo "configure:904: checking for $ac_word" >&5
1.1 paf 904: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
905: echo $ac_n "(cached) $ac_c" 1>&6
906: else
907: if test -n "$CC"; then
908: ac_cv_prog_CC="$CC" # Let the user override the test.
909: else
910: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911: ac_dummy="$PATH"
912: for ac_dir in $ac_dummy; do
913: test -z "$ac_dir" && ac_dir=.
914: if test -f $ac_dir/$ac_word; then
915: ac_cv_prog_CC="gcc"
916: break
917: fi
918: done
919: IFS="$ac_save_ifs"
920: fi
921: fi
922: CC="$ac_cv_prog_CC"
923: if test -n "$CC"; then
924: echo "$ac_t""$CC" 1>&6
925: else
926: echo "$ac_t""no" 1>&6
927: fi
928:
929: if test -z "$CC"; then
930: # Extract the first word of "cc", so it can be a program name with args.
931: set dummy cc; ac_word=$2
932: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.37 paf 933: echo "configure:934: checking for $ac_word" >&5
1.1 paf 934: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
935: echo $ac_n "(cached) $ac_c" 1>&6
936: else
937: if test -n "$CC"; then
938: ac_cv_prog_CC="$CC" # Let the user override the test.
939: else
940: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941: ac_prog_rejected=no
942: ac_dummy="$PATH"
943: for ac_dir in $ac_dummy; do
944: test -z "$ac_dir" && ac_dir=.
945: if test -f $ac_dir/$ac_word; then
946: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
947: ac_prog_rejected=yes
948: continue
949: fi
950: ac_cv_prog_CC="cc"
951: break
952: fi
953: done
954: IFS="$ac_save_ifs"
955: if test $ac_prog_rejected = yes; then
956: # We found a bogon in the path, so make sure we never use it.
957: set dummy $ac_cv_prog_CC
958: shift
959: if test $# -gt 0; then
960: # We chose a different compiler from the bogus one.
961: # However, it has the same basename, so the bogon will be chosen
962: # first if we set CC to just the basename; use the full file name.
963: shift
964: set dummy "$ac_dir/$ac_word" "$@"
965: shift
966: ac_cv_prog_CC="$@"
967: fi
968: fi
969: fi
970: fi
971: CC="$ac_cv_prog_CC"
972: if test -n "$CC"; then
973: echo "$ac_t""$CC" 1>&6
974: else
975: echo "$ac_t""no" 1>&6
976: fi
977:
978: if test -z "$CC"; then
979: case "`uname -s`" in
980: *win32* | *WIN32*)
981: # Extract the first word of "cl", so it can be a program name with args.
982: set dummy cl; ac_word=$2
983: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.37 paf 984: echo "configure:985: checking for $ac_word" >&5
1.1 paf 985: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
986: echo $ac_n "(cached) $ac_c" 1>&6
987: else
988: if test -n "$CC"; then
989: ac_cv_prog_CC="$CC" # Let the user override the test.
990: else
991: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
992: ac_dummy="$PATH"
993: for ac_dir in $ac_dummy; do
994: test -z "$ac_dir" && ac_dir=.
995: if test -f $ac_dir/$ac_word; then
996: ac_cv_prog_CC="cl"
997: break
998: fi
999: done
1000: IFS="$ac_save_ifs"
1001: fi
1002: fi
1003: CC="$ac_cv_prog_CC"
1004: if test -n "$CC"; then
1005: echo "$ac_t""$CC" 1>&6
1006: else
1007: echo "$ac_t""no" 1>&6
1008: fi
1009: ;;
1010: esac
1011: fi
1012: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1013: fi
1014:
1015: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.37 paf 1016: echo "configure:1017: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 paf 1017:
1018: ac_ext=c
1019: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1020: ac_cpp='$CPP $CPPFLAGS'
1021: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1022: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1023: cross_compiling=$ac_cv_prog_cc_cross
1024:
1025: cat > conftest.$ac_ext << EOF
1026:
1.37 paf 1027: #line 1028 "configure"
1.1 paf 1028: #include "confdefs.h"
1029:
1030: main(){return(0);}
1031: EOF
1.37 paf 1032: if { (eval echo configure:1033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1033: ac_cv_prog_cc_works=yes
1034: # If we can't run a trivial program, we are probably using a cross compiler.
1035: if (./conftest; exit) 2>/dev/null; then
1036: ac_cv_prog_cc_cross=no
1037: else
1038: ac_cv_prog_cc_cross=yes
1039: fi
1040: else
1041: echo "configure: failed program was:" >&5
1042: cat conftest.$ac_ext >&5
1043: ac_cv_prog_cc_works=no
1044: fi
1045: rm -fr conftest*
1046: ac_ext=c
1047: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1048: ac_cpp='$CPP $CPPFLAGS'
1049: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1050: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1051: cross_compiling=$ac_cv_prog_cc_cross
1052:
1053: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1054: if test $ac_cv_prog_cc_works = no; then
1055: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1056: fi
1057: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.37 paf 1058: echo "configure:1059: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1059: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1060: cross_compiling=$ac_cv_prog_cc_cross
1061:
1062: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.37 paf 1063: echo "configure:1064: checking whether we are using GNU C" >&5
1.1 paf 1064: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1065: echo $ac_n "(cached) $ac_c" 1>&6
1066: else
1067: cat > conftest.c <<EOF
1068: #ifdef __GNUC__
1069: yes;
1070: #endif
1071: EOF
1.37 paf 1072: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1073: ac_cv_prog_gcc=yes
1074: else
1075: ac_cv_prog_gcc=no
1076: fi
1077: fi
1078:
1079: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1080:
1081: if test $ac_cv_prog_gcc = yes; then
1082: GCC=yes
1083: else
1084: GCC=
1085: fi
1086:
1087: ac_test_CFLAGS="${CFLAGS+set}"
1088: ac_save_CFLAGS="$CFLAGS"
1089: CFLAGS=
1090: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.37 paf 1091: echo "configure:1092: checking whether ${CC-cc} accepts -g" >&5
1.1 paf 1092: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1093: echo $ac_n "(cached) $ac_c" 1>&6
1094: else
1095: echo 'void f(){}' > conftest.c
1096: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1097: ac_cv_prog_cc_g=yes
1098: else
1099: ac_cv_prog_cc_g=no
1100: fi
1101: rm -f conftest*
1102:
1103: fi
1104:
1105: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1106: if test "$ac_test_CFLAGS" = set; then
1107: CFLAGS="$ac_save_CFLAGS"
1108: elif test $ac_cv_prog_cc_g = yes; then
1109: if test "$GCC" = yes; then
1110: CFLAGS="-g -O2"
1111: else
1112: CFLAGS="-g"
1113: fi
1114: else
1115: if test "$GCC" = yes; then
1116: CFLAGS="-O2"
1117: else
1118: CFLAGS=
1119: fi
1120: fi
1121:
1122: ac_ext=c
1123: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1124: ac_cpp='$CPP $CPPFLAGS'
1125: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1126: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1127: cross_compiling=$ac_cv_prog_cc_cross
1128: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.37 paf 1129: echo "configure:1130: checking for inline" >&5
1.1 paf 1130: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1131: echo $ac_n "(cached) $ac_c" 1>&6
1132: else
1133: ac_cv_c_inline=no
1134: for ac_kw in inline __inline__ __inline; do
1135: cat > conftest.$ac_ext <<EOF
1.37 paf 1136: #line 1137 "configure"
1.1 paf 1137: #include "confdefs.h"
1138:
1139: int main() {
1140: } $ac_kw foo() {
1141: ; return 0; }
1142: EOF
1.37 paf 1143: if { (eval echo configure:1144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 1144: rm -rf conftest*
1145: ac_cv_c_inline=$ac_kw; break
1146: else
1147: echo "configure: failed program was:" >&5
1148: cat conftest.$ac_ext >&5
1149: fi
1150: rm -f conftest*
1151: done
1152:
1153: fi
1154:
1155: echo "$ac_t""$ac_cv_c_inline" 1>&6
1156: case "$ac_cv_c_inline" in
1157: inline | yes) ;;
1158: no) cat >> confdefs.h <<\EOF
1159: #define inline
1160: EOF
1161: ;;
1162: *) cat >> confdefs.h <<EOF
1163: #define inline $ac_cv_c_inline
1164: EOF
1165: ;;
1166: esac
1167:
1168: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1169: do
1170: # Extract the first word of "$ac_prog", so it can be a program name with args.
1171: set dummy $ac_prog; ac_word=$2
1172: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.37 paf 1173: echo "configure:1174: checking for $ac_word" >&5
1.1 paf 1174: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1175: echo $ac_n "(cached) $ac_c" 1>&6
1176: else
1177: if test -n "$CXX"; then
1178: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1179: else
1180: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1181: ac_dummy="$PATH"
1182: for ac_dir in $ac_dummy; do
1183: test -z "$ac_dir" && ac_dir=.
1184: if test -f $ac_dir/$ac_word; then
1185: ac_cv_prog_CXX="$ac_prog"
1186: break
1187: fi
1188: done
1189: IFS="$ac_save_ifs"
1190: fi
1191: fi
1192: CXX="$ac_cv_prog_CXX"
1193: if test -n "$CXX"; then
1194: echo "$ac_t""$CXX" 1>&6
1195: else
1196: echo "$ac_t""no" 1>&6
1197: fi
1198:
1199: test -n "$CXX" && break
1200: done
1201: test -n "$CXX" || CXX="gcc"
1202:
1203:
1204: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.37 paf 1205: echo "configure:1206: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 paf 1206:
1207: ac_ext=C
1208: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1209: ac_cpp='$CXXCPP $CPPFLAGS'
1210: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1211: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1212: cross_compiling=$ac_cv_prog_cxx_cross
1213:
1214: cat > conftest.$ac_ext << EOF
1215:
1.37 paf 1216: #line 1217 "configure"
1.1 paf 1217: #include "confdefs.h"
1218:
1219: int main(){return(0);}
1220: EOF
1.37 paf 1221: if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 1222: ac_cv_prog_cxx_works=yes
1223: # If we can't run a trivial program, we are probably using a cross compiler.
1224: if (./conftest; exit) 2>/dev/null; then
1225: ac_cv_prog_cxx_cross=no
1226: else
1227: ac_cv_prog_cxx_cross=yes
1228: fi
1229: else
1230: echo "configure: failed program was:" >&5
1231: cat conftest.$ac_ext >&5
1232: ac_cv_prog_cxx_works=no
1233: fi
1234: rm -fr conftest*
1235: ac_ext=c
1236: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1237: ac_cpp='$CPP $CPPFLAGS'
1238: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1239: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1240: cross_compiling=$ac_cv_prog_cc_cross
1241:
1242: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1243: if test $ac_cv_prog_cxx_works = no; then
1244: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1245: fi
1246: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.37 paf 1247: echo "configure:1248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 paf 1248: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1249: cross_compiling=$ac_cv_prog_cxx_cross
1250:
1251: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.37 paf 1252: echo "configure:1253: checking whether we are using GNU C++" >&5
1.1 paf 1253: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1254: echo $ac_n "(cached) $ac_c" 1>&6
1255: else
1256: cat > conftest.C <<EOF
1257: #ifdef __GNUC__
1258: yes;
1259: #endif
1260: EOF
1.37 paf 1261: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 paf 1262: ac_cv_prog_gxx=yes
1263: else
1264: ac_cv_prog_gxx=no
1265: fi
1266: fi
1267:
1268: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1269:
1270: if test $ac_cv_prog_gxx = yes; then
1271: GXX=yes
1272: else
1273: GXX=
1274: fi
1275:
1276: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1277: ac_save_CXXFLAGS="$CXXFLAGS"
1278: CXXFLAGS=
1279: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.37 paf 1280: echo "configure:1281: checking whether ${CXX-g++} accepts -g" >&5
1.1 paf 1281: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1282: echo $ac_n "(cached) $ac_c" 1>&6
1283: else
1284: echo 'void f(){}' > conftest.cc
1285: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1286: ac_cv_prog_cxx_g=yes
1287: else
1288: ac_cv_prog_cxx_g=no
1289: fi
1290: rm -f conftest*
1291:
1292: fi
1293:
1294: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1295: if test "$ac_test_CXXFLAGS" = set; then
1296: CXXFLAGS="$ac_save_CXXFLAGS"
1297: elif test $ac_cv_prog_cxx_g = yes; then
1298: if test "$GXX" = yes; then
1299: CXXFLAGS="-g -O2"
1300: else
1301: CXXFLAGS="-g"
1302: fi
1303: else
1304: if test "$GXX" = yes; then
1305: CXXFLAGS="-O2"
1306: else
1307: CXXFLAGS=
1308: fi
1309: fi
1310:
1311: ac_ext=C
1312: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1313: ac_cpp='$CXXCPP $CPPFLAGS'
1314: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1315: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1316: cross_compiling=$ac_cv_prog_cxx_cross
1317:
1318:
1319:
1320:
1.15 paf 1321: # Check whether --enable-link-libstdcpp or --disable-link-libstdcpp was given.
1322: if test "${enable_link_libstdcpp+set}" = set; then
1323: enableval="$enable_link_libstdcpp"
1324:
1325: LINK_LIBSTDCPP_FLAG=$enableval
1326: if test "$enableval" = "no"; then
1327: echo "configure: warning: disabling libstdc++ linkage" 1>&2
1328: fi
1329:
1330:
1331: fi
1332:
1333:
1334:
1335: if test "$LINK_LIBSTDCPP_FLAG" = "no"; then
1336: DO_NOT_LINK_LIBSTDCPP_TRUE=
1337: DO_NOT_LINK_LIBSTDCPP_FALSE='#'
1338: else
1339: DO_NOT_LINK_LIBSTDCPP_TRUE='#'
1340: DO_NOT_LINK_LIBSTDCPP_FALSE=
1341: fi
1342:
1.1 paf 1343: # Check whether --enable-string-origins or --disable-string-origins was given.
1344: if test "${enable_string_origins+set}" = set; then
1345: enableval="$enable_string_origins"
1346:
1347: if test "$enableval" = "no"; then
1.14 paf 1348: echo "configure: warning: disabling string origin tracking" 1>&2
1.1 paf 1349: cat >> confdefs.h <<\EOF
1350: #define NO_STRING_ORIGIN
1351: EOF
1352:
1353: fi
1354:
1355:
1356: fi
1357:
1358:
1.13 paf 1359: # Check whether --enable-execs or --disable-execs was given.
1360: if test "${enable_execs+set}" = set; then
1361: enableval="$enable_execs"
1362:
1363: if test "$enableval" = "no"; then
1.14 paf 1364: echo "configure: warning: disabling file execs" 1>&2
1.13 paf 1365: cat >> confdefs.h <<\EOF
1366: #define NO_PA_EXECS
1367: EOF
1368:
1369: fi
1370:
1371:
1372: fi
1373:
1374:
1.14 paf 1375: # Check whether --enable-foreign-group-files or --disable-foreign-group-files was given.
1376: if test "${enable_foreign_group_files+set}" = set; then
1377: enableval="$enable_foreign_group_files"
1378:
1379: if test "$enableval" = "no"; then
1380: echo "configure: warning: disabling reading of files belonging to group other then effective" 1>&2
1381: cat >> confdefs.h <<\EOF
1382: #define NO_FOREIGN_GROUP_FILES
1383: EOF
1384:
1385: fi
1386:
1387:
1388: fi
1389:
1.18 paf 1390: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 1391: CHARSETS_REQUESTED="windows-1251"
1392: # Check whether --with-charsets or --without-charsets was given.
1393: if test "${with_charsets+set}" = set; then
1394: withval="$with_charsets"
1395: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1396: fi
1397:
1398:
1.18 paf 1399: # Checking whether all requested charsets have corresponding .cfg files
1400: for c in $CHARSETS_REQUESTED; do
1401: if test \! -f $srccharsetsdir/$c.cfg; then
1402: { echo "configure: error: bad charset requested "$c" - file $srccharsetsdir/$c.cfg not found" 1>&2; exit 1; }
1403: fi
1404: done
1.17 paf 1405:
1.18 paf 1406: # Switching on commentcharset_XXX='#'
1.17 paf 1407:
1408:
1409: commentcharset_windows1251='#'
1.18 paf 1410: for c in $CHARSETS_REQUESTED; do
1.17 paf 1411: if test "windows-1251" = "$c"; then
1.18 paf 1412: echo "configure: warning: Enabling charset windows-1251" 1>&2
1413: commentcharset_windows1251=
1.17 paf 1414: fi
1415: done
1416:
1417:
1418:
1419: commentcharset_windows1250='#'
1.18 paf 1420: for c in $CHARSETS_REQUESTED; do
1.17 paf 1421: if test "windows-1250" = "$c"; then
1.18 paf 1422: echo "configure: warning: Enabling charset windows-1250" 1>&2
1423: commentcharset_windows1250=
1.17 paf 1424: fi
1425: done
1426:
1427:
1428:
1429: commentcharset_windows1257='#'
1.18 paf 1430: for c in $CHARSETS_REQUESTED; do
1.17 paf 1431: if test "windows-1257" = "$c"; then
1.18 paf 1432: echo "configure: warning: Enabling charset windows-1257" 1>&2
1433: commentcharset_windows1257=
1.17 paf 1434: fi
1435: done
1436:
1437:
1438:
1439: commentcharset_koi8r='#'
1.18 paf 1440: for c in $CHARSETS_REQUESTED; do
1.17 paf 1441: if test "koi8-r" = "$c"; then
1.18 paf 1442: echo "configure: warning: Enabling charset koi8-r" 1>&2
1443: commentcharset_koi8r=
1.17 paf 1444: fi
1445: done
1446:
1447:
1448:
1449:
1.40 ! paf 1450: echo $ac_n "checking for dynamic-link library extension""... $ac_c" 1>&6
! 1451: echo "configure:1452: checking for dynamic-link library extension" >&5
! 1452: case "$host_os" in
! 1453: hpux9* | hpux10* | hpux11*)
! 1454: dll_extension=sl
! 1455: ;;
! 1456: cygwin)
! 1457: dll_extension=dll
! 1458: ;;
! 1459: *)
! 1460: dll_extension=so
! 1461: esac
! 1462: echo "$ac_t""$dll_extension" 1>&6
! 1463:
! 1464:
1.17 paf 1465: # Check whether --with-mysql-client or --without-mysql-client was given.
1466: if test "${with_mysql_client+set}" = set; then
1467: withval="$with_mysql_client"
1468: mysql_client=$withval
1469:
1470: else
1471: echo $ac_n "checking for mysql client""... $ac_c" 1>&6
1.40 ! paf 1472: echo "configure:1473: checking for mysql client" >&5
1.17 paf 1473: for lib in \
1.40 ! paf 1474: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
! 1475: /usr/local/lib/libmysqlclient.$dll_extension \
! 1476: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 1477: if test -f $lib; then mysql_client=$lib; fi
1478: done
1479:
1480: if test -z "$mysql_client"; then
1481: mysql_client="-configure could not guess-"
1482: echo "configure: warning: could not guess mysql client" 1>&2
1483: else
1484: echo "$ac_t""$mysql_client" 1>&6
1485: fi
1486:
1487:
1488: fi
1489:
1490:
1491:
1492: # Check whether --with-pgsql-client or --without-pgsql-client was given.
1493: if test "${with_pgsql_client+set}" = set; then
1494: withval="$with_pgsql_client"
1495: mysql_client=$withval
1496:
1497: else
1498: echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
1.40 ! paf 1499: echo "configure:1500: checking for pgsql client" >&5
1.17 paf 1500: for lib in \
1.40 ! paf 1501: /usr/local/pgsql/lib/libpq.$dll_extension \
! 1502: /usr/local/lib/libpq.$dll_extension \
! 1503: /usr/lib/libpq.$dll_extension; do
1.17 paf 1504: if test -f $lib; then pgsql_client=$lib; fi
1505: done
1506:
1507: if test -z "$pgsql_client"; then
1508: pgsql_client="-configure could not guess-"
1509: echo "configure: warning: could not guess pgsql client" 1>&2
1510: else
1511: echo "$ac_t""$pgsql_client" 1>&6
1512: fi
1513:
1514:
1515: fi
1516:
1517:
1518:
1519: # Check whether --with-oracle-client or --without-oracle-client was given.
1520: if test "${with_oracle_client+set}" = set; then
1521: withval="$with_oracle_client"
1522: oracle_client=$withval
1523:
1524: else
1525: echo $ac_n "checking for oracle client""... $ac_c" 1>&6
1.40 ! paf 1526: echo "configure:1527: checking for oracle client" >&5
! 1527: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 1528: if test -f $lib; then oracle_client=$lib; fi
1529:
1530: if test -z "$oracle_client"; then
1531: oracle_client="-configure could not guess-"
1532: echo "configure: warning: could not guess oracle client" 1>&2
1533: else
1534: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1535: echo "$ac_t""$oracle_client" 1>&6
1536: fi
1537:
1538:
1539: fi
1540:
1541:
1542:
1543:
1.14 paf 1544:
1.1 paf 1545: # Check whether --with-pathlink or --without-pathlink was given.
1546: if test "${with_pathlink+set}" = set; then
1547: withval="$with_pathlink"
1548: LD_PATHLINK=$withval
1549:
1550: fi
1551:
1.37 paf 1552: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
1553: if test "${with_sjlj_exceptions+set}" = set; then
1554: withval="$with_sjlj_exceptions"
1555: cat >> confdefs.h <<\EOF
1556: #define PA_WITH_SJLJ_EXCEPTIONS
1557: EOF
1558:
1559:
1560: fi
1561:
1.1 paf 1562:
1.15 paf 1563:
1.7 paf 1564: # Check whether --with-glib-config or --without-glib-config was given.
1565: if test "${with_glib_config+set}" = set; then
1566: withval="$with_glib_config"
1567: GLIB_CONFIG=$withval
1568:
1569: fi
1570:
1571:
1.10 paf 1572: # Check whether --with-shared-xml or --without-shared-xml was given.
1573: if test "${with_shared_xml+set}" = set; then
1574: withval="$with_shared_xml"
1.1 paf 1575:
1576: GNOME_XML=$withval
1.11 paf 1577: XMLBIN="$GNOME_XML/bin"
1578: XMLINC="$GNOME_XML/include"
1579: XMLLIB="$GNOME_XML/lib"
1.1 paf 1580:
1.11 paf 1581: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1 paf 1582: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1583: fi
1584:
1585: cat >> confdefs.h <<\EOF
1586: #define XML
1587: EOF
1588:
1589:
1.11 paf 1590: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1591: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1592: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1593: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 1594:
1595: if test -z "$GLIB_CONFIG"; then
1.11 paf 1596: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 1597: if test \! -x $GLIB_CONFIG; then
1598: GLIB_CONFIG=glib-config
1599: fi
1.1 paf 1600: fi
1601: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1602: GLIB_LIBS=`$GLIB_CONFIG --libs`
1603:
1.11 paf 1604: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1605: 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 1606: if test \! -z "$LD_PATHLINK"; then
1.11 paf 1607: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 1608: fi
1609:
1610: fi
1611:
1.10 paf 1612: # Check whether --with-static-xml or --without-static-xml was given.
1613: if test "${with_static_xml+set}" = set; then
1614: withval="$with_static_xml"
1615:
1616: GNOME_XML=$withval
1.11 paf 1617: XMLBIN="$GNOME_XML/bin"
1618: XMLINC="$GNOME_XML/include"
1619: XMLLIB="$GNOME_XML/lib"
1.10 paf 1620:
1.11 paf 1621: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10 paf 1622: { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1623: fi
1624:
1625: cat >> confdefs.h <<\EOF
1626: #define XML
1627: EOF
1628:
1629:
1630: if test -z "$GLIB_CONFIG"; then
1.11 paf 1631: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 1632: if test \! -x $GLIB_CONFIG; then
1633: GLIB_CONFIG=glib-config
1634: fi
1635: fi
1636: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1637:
1.11 paf 1638: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1639: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1640: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
1641: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 1642:
1643: fi
1644:
1645:
1.1 paf 1646:
1647:
1.29 paf 1648: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
1649: if test "${with_shared_mailreceive+set}" = set; then
1650: withval="$with_shared_mailreceive"
1651:
1652: GNOME_MIME=$withval
1653: MIMEBIN="$GNOME_MIME/bin"
1654: MIMEINC="$GNOME_MIME/include"
1655: MIMELIB="$GNOME_MIME/lib"
1656:
1657: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1658: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1659: fi
1660:
1661: cat >> confdefs.h <<\EOF
1662: #define WITH_MAILRECEIVE
1663: EOF
1664:
1665:
1666: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1667:
1668: if test -z "$GLIB_CONFIG"; then
1669: GLIB_CONFIG=$MIMEBIN/glib-config
1670: if test \! -x $GLIB_CONFIG; then
1671: GLIB_CONFIG=glib-config
1672: fi
1673: fi
1674: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1675: GLIB_LIBS=`$GLIB_CONFIG --libs`
1676:
1677: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1678: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
1679: if test \! -z "$LD_PATHLINK"; then
1680: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1681: fi
1682:
1683: fi
1684:
1685: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
1686: if test "${with_static_mailreceive+set}" = set; then
1687: withval="$with_static_mailreceive"
1688:
1689: GNOME_MIME=$withval
1690: MIMEBIN="$GNOME_MIME/bin"
1691: MIMEINC="$GNOME_MIME/include"
1692: MIMELIB="$GNOME_MIME/lib"
1693:
1694: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1695: { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
1696: fi
1697:
1698: cat >> confdefs.h <<\EOF
1699: #define WITH_MAILRECEIVE
1700: EOF
1701:
1702:
1703: if test -z "$GLIB_CONFIG"; then
1704: GLIB_CONFIG=$MIMEBIN/glib-config
1705: if test \! -x $GLIB_CONFIG; then
1706: GLIB_CONFIG=glib-config
1707: fi
1708: fi
1709: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1710:
1711: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
1712: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1713: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1714: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1715:
1716: fi
1717:
1718:
1719:
1720:
1.16 paf 1721:
1722: # Check whether --with-sendmail or --without-sendmail was given.
1723: if test "${with_sendmail+set}" = set; then
1724: withval="$with_sendmail"
1725: cat >> confdefs.h <<EOF
1726: #define PA_FORCED_SENDMAIL "$withval"
1727: EOF
1728:
1729:
1730: fi
1731:
1732:
1733:
1.12 paf 1734: # Check whether --with-apache13 or --without-apache13 was given.
1735: if test "${with_apache13+set}" = set; then
1736: withval="$with_apache13"
1737: APACHE13=$withval
1738: if test \! -f "$APACHE13/src/include/httpd.h"; then
1739: { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
1740: fi
1741:
1742: fi
1743:
1744:
1745:
1746:
1747: if test -n "$APACHE13"; then
1748: COMPILE_APACHE13_MODULE_TRUE=
1749: COMPILE_APACHE13_MODULE_FALSE='#'
1750: else
1751: COMPILE_APACHE13_MODULE_TRUE='#'
1752: COMPILE_APACHE13_MODULE_FALSE=
1753: fi
1754:
1755:
1.1 paf 1756:
1757: # Make sure we can run config.sub.
1758: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1759: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1760: fi
1761:
1762: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.40 ! paf 1763: echo "configure:1764: checking host system type" >&5
1.1 paf 1764:
1765: host_alias=$host
1766: case "$host_alias" in
1767: NONE)
1768: case $nonopt in
1769: NONE)
1770: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1771: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1772: fi ;;
1773: *) host_alias=$nonopt ;;
1774: esac ;;
1775: esac
1776:
1777: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1778: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781: echo "$ac_t""$host" 1>&6
1782:
1783:
1784:
1785: # Find a good install program. We prefer a C program (faster),
1786: # so one script is as good as another. But avoid the broken or
1787: # incompatible versions:
1788: # SysV /etc/install, /usr/sbin/install
1789: # SunOS /usr/etc/install
1790: # IRIX /sbin/install
1791: # AIX /bin/install
1792: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1793: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1794: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1795: # ./install, which can be erroneously created by make from ./install.sh.
1796: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.40 ! paf 1797: echo "configure:1798: checking for a BSD compatible install" >&5
1.1 paf 1798: if test -z "$INSTALL"; then
1799: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1800: echo $ac_n "(cached) $ac_c" 1>&6
1801: else
1802: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1803: for ac_dir in $PATH; do
1804: # Account for people who put trailing slashes in PATH elements.
1805: case "$ac_dir/" in
1806: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1807: *)
1808: # OSF1 and SCO ODT 3.0 have their own names for install.
1809: # Don't use installbsd from OSF since it installs stuff as root
1810: # by default.
1811: for ac_prog in ginstall scoinst install; do
1812: if test -f $ac_dir/$ac_prog; then
1813: if test $ac_prog = install &&
1814: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1815: # AIX install. It has an incompatible calling convention.
1816: :
1817: else
1818: ac_cv_path_install="$ac_dir/$ac_prog -c"
1819: break 2
1820: fi
1821: fi
1822: done
1823: ;;
1824: esac
1825: done
1826: IFS="$ac_save_IFS"
1827:
1828: fi
1829: if test "${ac_cv_path_install+set}" = set; then
1830: INSTALL="$ac_cv_path_install"
1831: else
1832: # As a last resort, use the slow shell script. We don't cache a
1833: # path for INSTALL within a source directory, because that will
1834: # break other packages using the cache if that directory is
1835: # removed, or if the path is relative.
1836: INSTALL="$ac_install_sh"
1837: fi
1838: fi
1839: echo "$ac_t""$INSTALL" 1>&6
1840:
1841: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842: # It thinks the first close brace ends the variable substitution.
1843: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844:
1845: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1846:
1847: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848:
1849: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.40 ! paf 1850: echo "configure:1851: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 paf 1851: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1852: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1853: echo $ac_n "(cached) $ac_c" 1>&6
1854: else
1855: cat > conftestmake <<\EOF
1856: all:
1857: @echo 'ac_maketemp="${MAKE}"'
1858: EOF
1859: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1860: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1861: if test -n "$ac_maketemp"; then
1862: eval ac_cv_prog_make_${ac_make}_set=yes
1863: else
1864: eval ac_cv_prog_make_${ac_make}_set=no
1865: fi
1866: rm -f conftestmake
1867: fi
1868: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1869: echo "$ac_t""yes" 1>&6
1870: SET_MAKE=
1871: else
1872: echo "$ac_t""no" 1>&6
1873: SET_MAKE="MAKE=${MAKE-make}"
1874: fi
1875:
1876: # Extract the first word of "ranlib", so it can be a program name with args.
1877: set dummy ranlib; ac_word=$2
1878: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.40 ! paf 1879: echo "configure:1880: checking for $ac_word" >&5
1.1 paf 1880: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1881: echo $ac_n "(cached) $ac_c" 1>&6
1882: else
1883: if test -n "$RANLIB"; then
1884: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1885: else
1886: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887: ac_dummy="$PATH"
1888: for ac_dir in $ac_dummy; do
1889: test -z "$ac_dir" && ac_dir=.
1890: if test -f $ac_dir/$ac_word; then
1891: ac_cv_prog_RANLIB="ranlib"
1892: break
1893: fi
1894: done
1895: IFS="$ac_save_ifs"
1896: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1897: fi
1898: fi
1899: RANLIB="$ac_cv_prog_RANLIB"
1900: if test -n "$RANLIB"; then
1901: echo "$ac_t""$RANLIB" 1>&6
1902: else
1903: echo "$ac_t""no" 1>&6
1904: fi
1905:
1906: for ac_prog in mawk gawk nawk awk
1907: do
1908: # Extract the first word of "$ac_prog", so it can be a program name with args.
1909: set dummy $ac_prog; ac_word=$2
1910: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.40 ! paf 1911: echo "configure:1912: checking for $ac_word" >&5
1.1 paf 1912: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1913: echo $ac_n "(cached) $ac_c" 1>&6
1914: else
1915: if test -n "$AWK"; then
1916: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1917: else
1918: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919: ac_dummy="$PATH"
1920: for ac_dir in $ac_dummy; do
1921: test -z "$ac_dir" && ac_dir=.
1922: if test -f $ac_dir/$ac_word; then
1923: ac_cv_prog_AWK="$ac_prog"
1924: break
1925: fi
1926: done
1927: IFS="$ac_save_ifs"
1928: fi
1929: fi
1930: AWK="$ac_cv_prog_AWK"
1931: if test -n "$AWK"; then
1932: echo "$ac_t""$AWK" 1>&6
1933: else
1934: echo "$ac_t""no" 1>&6
1935: fi
1936:
1937: test -n "$AWK" && break
1938: done
1939:
1940:
1941: for ac_prog in 'bison -y' byacc
1942: do
1943: # Extract the first word of "$ac_prog", so it can be a program name with args.
1944: set dummy $ac_prog; ac_word=$2
1945: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.40 ! paf 1946: echo "configure:1947: checking for $ac_word" >&5
1.1 paf 1947: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1948: echo $ac_n "(cached) $ac_c" 1>&6
1949: else
1950: if test -n "$YACC"; then
1951: ac_cv_prog_YACC="$YACC" # Let the user override the test.
1952: else
1953: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1954: ac_dummy="$PATH"
1955: for ac_dir in $ac_dummy; do
1956: test -z "$ac_dir" && ac_dir=.
1957: if test -f $ac_dir/$ac_word; then
1958: ac_cv_prog_YACC="$ac_prog"
1959: break
1960: fi
1961: done
1962: IFS="$ac_save_ifs"
1963: fi
1964: fi
1965: YACC="$ac_cv_prog_YACC"
1966: if test -n "$YACC"; then
1967: echo "$ac_t""$YACC" 1>&6
1968: else
1969: echo "$ac_t""no" 1>&6
1970: fi
1971:
1972: test -n "$YACC" && break
1973: done
1974: test -n "$YACC" || YACC="yacc"
1975:
1976: if test "$YACC" != "bison -y"; then
1977: echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
1978: else
1979: echo $ac_n "checking bison version""... $ac_c" 1>&6
1.40 ! paf 1980: echo "configure:1981: checking bison version" >&5
1.1 paf 1981: oldIFS=$IFS; IFS=.
1982: set `bison -V | sed -e 's/^GNU Bison version //'`
1983: IFS=$oldIFS
1984: if test "$1" = "1" -a "$2" -lt "25"; then
1985: echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
1986: fi
1987: echo "$ac_t""$1.$2 (ok)" 1>&6
1988: fi
1989:
1.28 paf 1990: LIBLTDL='${top_builddir}/'src/lib/libltdl/libltdlc.a
1991: INCLTDL='-I${top_srcdir}/'src/lib/libltdl
1.1 paf 1992:
1993:
1994:
1995:
1.28 paf 1996: subdirs="src/lib/libltdl"
1.8 paf 1997:
1998: LIBADD_DL=
1999: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.40 ! paf 2000: echo "configure:2001: checking for dlopen in -ldl" >&5
1.8 paf 2001: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2002: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 2004: else
1.8 paf 2005: ac_save_LIBS="$LIBS"
2006: LIBS="-ldl $LIBS"
2007: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2008: #line 2009 "configure"
1.8 paf 2009: #include "confdefs.h"
2010: /* Override any gcc2 internal prototype to avoid an error. */
2011: #ifdef __cplusplus
2012: extern "C"
2013: #endif
2014: /* We use char because int might match the return type of a gcc2
2015: builtin and then its argument prototype would still apply. */
2016: char dlopen();
1.1 paf 2017:
1.8 paf 2018: int main() {
2019: dlopen()
2020: ; return 0; }
2021: EOF
1.40 ! paf 2022: if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2023: rm -rf conftest*
2024: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2025: else
1.8 paf 2026: echo "configure: failed program was:" >&5
2027: cat conftest.$ac_ext >&5
2028: rm -rf conftest*
2029: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2030: fi
1.8 paf 2031: rm -f conftest*
2032: LIBS="$ac_save_LIBS"
1.1 paf 2033:
1.8 paf 2034: fi
2035: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2036: echo "$ac_t""yes" 1>&6
2037: cat >> confdefs.h <<\EOF
2038: #define HAVE_LIBDL 1
2039: EOF
2040: LIBADD_DL="-ldl"
2041: else
2042: echo "$ac_t""no" 1>&6
2043: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.40 ! paf 2044: echo "configure:2045: checking for dlopen" >&5
1.8 paf 2045: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2046: echo $ac_n "(cached) $ac_c" 1>&6
1.1 paf 2047: else
1.8 paf 2048: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2049: #line 2050 "configure"
1.8 paf 2050: #include "confdefs.h"
2051: /* System header to define __stub macros and hopefully few prototypes,
2052: which can conflict with char dlopen(); below. */
2053: #include <assert.h>
2054: /* Override any gcc2 internal prototype to avoid an error. */
2055: #ifdef __cplusplus
2056: extern "C"
2057: #endif
2058: /* We use char because int might match the return type of a gcc2
2059: builtin and then its argument prototype would still apply. */
2060: char dlopen();
1.1 paf 2061:
1.8 paf 2062: int main() {
1.1 paf 2063:
1.8 paf 2064: /* The GNU C library defines this for functions which it implements
2065: to always fail with ENOSYS. Some functions are actually named
2066: something starting with __ and the normal name is an alias. */
2067: #if defined (__stub_dlopen) || defined (__stub___dlopen)
2068: choke me
2069: #else
2070: dlopen();
2071: #endif
1.1 paf 2072:
1.8 paf 2073: ; return 0; }
2074: EOF
1.40 ! paf 2075: if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2076: rm -rf conftest*
2077: eval "ac_cv_func_dlopen=yes"
1.1 paf 2078: else
1.8 paf 2079: echo "configure: failed program was:" >&5
2080: cat conftest.$ac_ext >&5
2081: rm -rf conftest*
2082: eval "ac_cv_func_dlopen=no"
1.1 paf 2083: fi
1.8 paf 2084: rm -f conftest*
1.1 paf 2085: fi
2086:
1.8 paf 2087: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2088: echo "$ac_t""yes" 1>&6
2089: cat >> confdefs.h <<\EOF
2090: #define HAVE_LIBDL 1
2091: EOF
2092:
1.1 paf 2093: else
2094: echo "$ac_t""no" 1>&6
2095: fi
1.8 paf 2096:
2097: fi
2098:
2099: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.40 ! paf 2100: echo "configure:2101: checking for shl_load" >&5
1.8 paf 2101: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1 paf 2102: echo $ac_n "(cached) $ac_c" 1>&6
2103: else
1.8 paf 2104: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2105: #line 2106 "configure"
1.8 paf 2106: #include "confdefs.h"
2107: /* System header to define __stub macros and hopefully few prototypes,
2108: which can conflict with char shl_load(); below. */
2109: #include <assert.h>
2110: /* Override any gcc2 internal prototype to avoid an error. */
2111: #ifdef __cplusplus
2112: extern "C"
2113: #endif
2114: /* We use char because int might match the return type of a gcc2
2115: builtin and then its argument prototype would still apply. */
2116: char shl_load();
1.1 paf 2117:
1.8 paf 2118: int main() {
1.1 paf 2119:
1.8 paf 2120: /* The GNU C library defines this for functions which it implements
2121: to always fail with ENOSYS. Some functions are actually named
2122: something starting with __ and the normal name is an alias. */
2123: #if defined (__stub_shl_load) || defined (__stub___shl_load)
2124: choke me
2125: #else
2126: shl_load();
2127: #endif
1.1 paf 2128:
1.8 paf 2129: ; return 0; }
2130: EOF
1.40 ! paf 2131: if { (eval echo configure:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2132: rm -rf conftest*
2133: eval "ac_cv_func_shl_load=yes"
1.1 paf 2134: else
1.8 paf 2135: echo "configure: failed program was:" >&5
2136: cat conftest.$ac_ext >&5
2137: rm -rf conftest*
2138: eval "ac_cv_func_shl_load=no"
1.1 paf 2139: fi
1.8 paf 2140: rm -f conftest*
1.1 paf 2141: fi
2142:
1.8 paf 2143: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2144: echo "$ac_t""yes" 1>&6
2145: cat >> confdefs.h <<\EOF
2146: #define HAVE_SHL_LOAD 1
2147: EOF
1.1 paf 2148:
1.8 paf 2149: else
2150: echo "$ac_t""no" 1>&6
2151: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.40 ! paf 2152: echo "configure:2153: checking for shl_load in -ldld" >&5
1.8 paf 2153: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2154: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 paf 2155: echo $ac_n "(cached) $ac_c" 1>&6
2156: else
1.8 paf 2157: ac_save_LIBS="$LIBS"
2158: LIBS="-ldld $LIBS"
2159: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2160: #line 2161 "configure"
1.8 paf 2161: #include "confdefs.h"
2162: /* Override any gcc2 internal prototype to avoid an error. */
2163: #ifdef __cplusplus
2164: extern "C"
2165: #endif
2166: /* We use char because int might match the return type of a gcc2
2167: builtin and then its argument prototype would still apply. */
2168: char shl_load();
2169:
2170: int main() {
2171: shl_load()
2172: ; return 0; }
2173: EOF
1.40 ! paf 2174: if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2175: rm -rf conftest*
2176: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 paf 2177: else
1.8 paf 2178: echo "configure: failed program was:" >&5
2179: cat conftest.$ac_ext >&5
2180: rm -rf conftest*
2181: eval "ac_cv_lib_$ac_lib_var=no"
1.1 paf 2182: fi
1.8 paf 2183: rm -f conftest*
2184: LIBS="$ac_save_LIBS"
2185:
1.1 paf 2186: fi
1.8 paf 2187: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 paf 2188: echo "$ac_t""yes" 1>&6
1.8 paf 2189: cat >> confdefs.h <<\EOF
2190: #define HAVE_SHL_LOAD 1
2191: EOF
2192: LIBADD_DL="$LIBADD_DL -ldld"
1.1 paf 2193: else
2194: echo "$ac_t""no" 1>&6
2195: fi
2196:
1.8 paf 2197: fi
1.1 paf 2198:
1.8 paf 2199: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.40 ! paf 2200: echo "configure:2201: checking for dld_link in -ldld" >&5
1.8 paf 2201: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2202: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2203: echo $ac_n "(cached) $ac_c" 1>&6
2204: else
2205: ac_save_LIBS="$LIBS"
2206: LIBS="-ldld $LIBS"
2207: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2208: #line 2209 "configure"
1.8 paf 2209: #include "confdefs.h"
2210: /* Override any gcc2 internal prototype to avoid an error. */
2211: #ifdef __cplusplus
2212: extern "C"
2213: #endif
2214: /* We use char because int might match the return type of a gcc2
2215: builtin and then its argument prototype would still apply. */
2216: char dld_link();
1.1 paf 2217:
1.8 paf 2218: int main() {
2219: dld_link()
2220: ; return 0; }
2221: EOF
1.40 ! paf 2222: if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8 paf 2223: rm -rf conftest*
2224: eval "ac_cv_lib_$ac_lib_var=yes"
2225: else
2226: echo "configure: failed program was:" >&5
2227: cat conftest.$ac_ext >&5
2228: rm -rf conftest*
2229: eval "ac_cv_lib_$ac_lib_var=no"
2230: fi
2231: rm -f conftest*
2232: LIBS="$ac_save_LIBS"
1.1 paf 2233:
1.8 paf 2234: fi
2235: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2236: echo "$ac_t""yes" 1>&6
2237: cat >> confdefs.h <<\EOF
2238: #define HAVE_DLD 1
2239: EOF
2240: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2241: else
2242: echo "$ac_t""no" 1>&6
1.1 paf 2243: fi
2244:
2245:
2246:
1.8 paf 2247: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2248: LIBS_SAVE="$LIBS"
2249: LIBS="$LIBS $LIBADD_DL"
2250: for ac_func in dlerror
2251: do
2252: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.40 ! paf 2253: echo "configure:2254: checking for $ac_func" >&5
1.8 paf 2254: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1 paf 2255: echo $ac_n "(cached) $ac_c" 1>&6
2256: else
2257: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2258: #line 2259 "configure"
1.1 paf 2259: #include "confdefs.h"
1.8 paf 2260: /* System header to define __stub macros and hopefully few prototypes,
2261: which can conflict with char $ac_func(); below. */
2262: #include <assert.h>
2263: /* Override any gcc2 internal prototype to avoid an error. */
2264: #ifdef __cplusplus
2265: extern "C"
2266: #endif
2267: /* We use char because int might match the return type of a gcc2
2268: builtin and then its argument prototype would still apply. */
2269: char $ac_func();
1.1 paf 2270:
2271: int main() {
2272:
1.8 paf 2273: /* The GNU C library defines this for functions which it implements
2274: to always fail with ENOSYS. Some functions are actually named
2275: something starting with __ and the normal name is an alias. */
2276: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2277: choke me
2278: #else
2279: $ac_func();
2280: #endif
2281:
1.1 paf 2282: ; return 0; }
2283: EOF
1.40 ! paf 2284: if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2285: rm -rf conftest*
1.8 paf 2286: eval "ac_cv_func_$ac_func=yes"
1.1 paf 2287: else
2288: echo "configure: failed program was:" >&5
2289: cat conftest.$ac_ext >&5
2290: rm -rf conftest*
1.8 paf 2291: eval "ac_cv_func_$ac_func=no"
1.1 paf 2292: fi
2293: rm -f conftest*
2294: fi
2295:
1.8 paf 2296: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2297: echo "$ac_t""yes" 1>&6
2298: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2299: cat >> confdefs.h <<EOF
2300: #define $ac_tr_func 1
1.1 paf 2301: EOF
1.8 paf 2302:
1.1 paf 2303: else
1.8 paf 2304: echo "$ac_t""no" 1>&6
1.1 paf 2305: fi
1.8 paf 2306: done
1.1 paf 2307:
1.8 paf 2308: LIBS="$LIBS_SAVE"
1.1 paf 2309: fi
2310:
2311:
2312: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.40 ! paf 2313: echo "configure:2314: checking how to run the C++ preprocessor" >&5
1.1 paf 2314: if test -z "$CXXCPP"; then
2315: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2316: echo $ac_n "(cached) $ac_c" 1>&6
2317: else
2318: ac_ext=C
2319: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2320: ac_cpp='$CXXCPP $CPPFLAGS'
2321: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2322: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2323: cross_compiling=$ac_cv_prog_cxx_cross
2324: CXXCPP="${CXX-g++} -E"
2325: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2326: #line 2327 "configure"
1.1 paf 2327: #include "confdefs.h"
2328: #include <stdlib.h>
2329: EOF
2330: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.40 ! paf 2331: { (eval echo configure:2332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2332: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2333: if test -z "$ac_err"; then
2334: :
2335: else
2336: echo "$ac_err" >&5
2337: echo "configure: failed program was:" >&5
2338: cat conftest.$ac_ext >&5
2339: rm -rf conftest*
2340: CXXCPP=/lib/cpp
2341: fi
2342: rm -f conftest*
2343: ac_cv_prog_CXXCPP="$CXXCPP"
2344: ac_ext=C
2345: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2346: ac_cpp='$CXXCPP $CPPFLAGS'
2347: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2348: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2349: cross_compiling=$ac_cv_prog_cxx_cross
2350: fi
2351: fi
2352: CXXCPP="$ac_cv_prog_CXXCPP"
2353: echo "$ac_t""$CXXCPP" 1>&6
2354:
2355: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.40 ! paf 2356: echo "configure:2357: checking for ANSI C header files" >&5
1.1 paf 2357: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2358: echo $ac_n "(cached) $ac_c" 1>&6
2359: else
2360: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2361: #line 2362 "configure"
1.1 paf 2362: #include "confdefs.h"
2363: #include <stdlib.h>
2364: #include <stdarg.h>
2365: #include <string.h>
2366: #include <float.h>
2367: EOF
2368: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.40 ! paf 2369: { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2370: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371: if test -z "$ac_err"; then
2372: rm -rf conftest*
2373: ac_cv_header_stdc=yes
2374: else
2375: echo "$ac_err" >&5
2376: echo "configure: failed program was:" >&5
2377: cat conftest.$ac_ext >&5
2378: rm -rf conftest*
2379: ac_cv_header_stdc=no
2380: fi
2381: rm -f conftest*
2382:
2383: if test $ac_cv_header_stdc = yes; then
2384: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2385: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2386: #line 2387 "configure"
1.1 paf 2387: #include "confdefs.h"
2388: #include <string.h>
2389: EOF
2390: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2391: egrep "memchr" >/dev/null 2>&1; then
2392: :
2393: else
2394: rm -rf conftest*
2395: ac_cv_header_stdc=no
2396: fi
2397: rm -f conftest*
2398:
2399: fi
2400:
2401: if test $ac_cv_header_stdc = yes; then
2402: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2403: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2404: #line 2405 "configure"
1.1 paf 2405: #include "confdefs.h"
2406: #include <stdlib.h>
2407: EOF
2408: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2409: egrep "free" >/dev/null 2>&1; then
2410: :
2411: else
2412: rm -rf conftest*
2413: ac_cv_header_stdc=no
2414: fi
2415: rm -f conftest*
2416:
2417: fi
2418:
2419: if test $ac_cv_header_stdc = yes; then
2420: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2421: if test "$cross_compiling" = yes; then
2422: :
2423: else
2424: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2425: #line 2426 "configure"
1.1 paf 2426: #include "confdefs.h"
2427: #ifdef __cplusplus
2428: extern "C" void exit(int);
2429: #endif
2430: #include <ctype.h>
2431: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2432: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2433: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2434: int main () { int i; for (i = 0; i < 256; i++)
2435: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2436: exit (0); }
2437:
2438: EOF
1.40 ! paf 2439: if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 paf 2440: then
2441: :
2442: else
2443: echo "configure: failed program was:" >&5
2444: cat conftest.$ac_ext >&5
2445: rm -fr conftest*
2446: ac_cv_header_stdc=no
2447: fi
2448: rm -fr conftest*
2449: fi
2450:
2451: fi
2452: fi
2453:
2454: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2455: if test $ac_cv_header_stdc = yes; then
2456: cat >> confdefs.h <<\EOF
2457: #define STDC_HEADERS 1
2458: EOF
2459:
2460: fi
2461:
2462: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.40 ! paf 2463: echo "configure:2464: checking for size_t" >&5
1.1 paf 2464: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2465: echo $ac_n "(cached) $ac_c" 1>&6
2466: else
2467: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2468: #line 2469 "configure"
1.1 paf 2469: #include "confdefs.h"
2470: #include <sys/types.h>
2471: #if STDC_HEADERS
2472: #include <stdlib.h>
2473: #include <stddef.h>
2474: #endif
2475: EOF
2476: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2477: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2478: rm -rf conftest*
2479: ac_cv_type_size_t=yes
2480: else
2481: rm -rf conftest*
2482: ac_cv_type_size_t=no
2483: fi
2484: rm -f conftest*
2485:
2486: fi
2487: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2488: if test $ac_cv_type_size_t = no; then
2489: cat >> confdefs.h <<\EOF
2490: #define size_t unsigned
2491: EOF
2492:
2493: fi
2494:
1.30 paf 2495: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.40 ! paf 2496: echo "configure:2497: checking for off_t" >&5
1.30 paf 2497: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2498: echo $ac_n "(cached) $ac_c" 1>&6
2499: else
2500: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2501: #line 2502 "configure"
1.30 paf 2502: #include "confdefs.h"
2503: #include <sys/types.h>
2504: #if STDC_HEADERS
2505: #include <stdlib.h>
2506: #include <stddef.h>
2507: #endif
2508: EOF
2509: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2510: egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2511: rm -rf conftest*
2512: ac_cv_type_off_t=yes
2513: else
2514: rm -rf conftest*
2515: ac_cv_type_off_t=no
2516: fi
2517: rm -f conftest*
2518:
2519: fi
2520: echo "$ac_t""$ac_cv_type_off_t" 1>&6
2521: if test $ac_cv_type_off_t = no; then
2522: cat >> confdefs.h <<\EOF
2523: #define off_t long
2524: EOF
2525:
2526: fi
2527:
2528: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.40 ! paf 2529: echo "configure:2530: checking for ssize_t" >&5
1.30 paf 2530: if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2531: echo $ac_n "(cached) $ac_c" 1>&6
2532: else
2533: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2534: #line 2535 "configure"
1.30 paf 2535: #include "confdefs.h"
2536: #include <sys/types.h>
2537: #if STDC_HEADERS
2538: #include <stdlib.h>
2539: #include <stddef.h>
2540: #endif
2541: EOF
2542: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543: egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2544: rm -rf conftest*
2545: ac_cv_type_ssize_t=yes
2546: else
2547: rm -rf conftest*
2548: ac_cv_type_ssize_t=no
2549: fi
2550: rm -f conftest*
2551:
2552: fi
2553: echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2554: if test $ac_cv_type_ssize_t = no; then
2555: cat >> confdefs.h <<\EOF
2556: #define ssize_t int
2557: EOF
2558:
2559: fi
2560:
2561:
1.1 paf 2562:
2563:
1.8 paf 2564: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.40 ! paf 2565: echo "configure:2566: checking whether time.h and sys/time.h may both be included" >&5
1.8 paf 2566: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2567: echo $ac_n "(cached) $ac_c" 1>&6
2568: else
2569: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2570: #line 2571 "configure"
1.8 paf 2571: #include "confdefs.h"
2572: #include <sys/types.h>
2573: #include <sys/time.h>
2574: #include <time.h>
2575: int main() {
2576: struct tm *tp;
2577: ; return 0; }
2578: EOF
1.40 ! paf 2579: if { (eval echo configure:2580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8 paf 2580: rm -rf conftest*
2581: ac_cv_header_time=yes
2582: else
2583: echo "configure: failed program was:" >&5
2584: cat conftest.$ac_ext >&5
2585: rm -rf conftest*
2586: ac_cv_header_time=no
2587: fi
2588: rm -f conftest*
2589: fi
2590:
2591: echo "$ac_t""$ac_cv_header_time" 1>&6
2592: if test $ac_cv_header_time = yes; then
2593: cat >> confdefs.h <<\EOF
2594: #define TIME_WITH_SYS_TIME 1
2595: EOF
2596:
2597: fi
2598:
2599:
1.1 paf 2600: for ac_hdr in unistd.h \
2601: process.h \
2602: stddef.h \
2603: stdarg.h \
2604: fcntl.h \
2605: sys/stat.h \
2606: io.h \
2607: stdio.h \
2608: errno.h \
2609: ctype.h \
2610: math.h \
1.31 paf 2611: crypt.h \
1.3 paf 2612: time.h sys/time.h \
1.1 paf 2613: stdlib.h \
2614: string.h \
2615: direct.h \
2616: setjmp.h \
2617: memory.h \
2618: new \
2619: sys/file.h \
2620: sys/locking.h \
1.3 paf 2621: sys/types.h \
2622: sys/select.h \
1.39 paf 2623: sys/resource.h \
2624: winsock.h
1.1 paf 2625:
2626: do
2627: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2628: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.40 ! paf 2629: echo "configure:2630: checking for $ac_hdr" >&5
1.1 paf 2630: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2631: echo $ac_n "(cached) $ac_c" 1>&6
2632: else
2633: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2634: #line 2635 "configure"
1.1 paf 2635: #include "confdefs.h"
2636: #include <$ac_hdr>
2637: EOF
2638: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.40 ! paf 2639: { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 paf 2640: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641: if test -z "$ac_err"; then
2642: rm -rf conftest*
2643: eval "ac_cv_header_$ac_safe=yes"
2644: else
2645: echo "$ac_err" >&5
2646: echo "configure: failed program was:" >&5
2647: cat conftest.$ac_ext >&5
2648: rm -rf conftest*
2649: eval "ac_cv_header_$ac_safe=no"
2650: fi
2651: rm -f conftest*
2652: fi
2653: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2654: echo "$ac_t""yes" 1>&6
2655: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2656: cat >> confdefs.h <<EOF
2657: #define $ac_tr_hdr 1
2658: EOF
2659:
2660: else
2661: echo "$ac_t""no" 1>&6
2662: fi
2663: done
2664:
2665:
2666:
2667: case "$host" in
2668: *-sunos5.6* | *-solaris2.6*)
2669: echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.40 ! paf 2670: echo "configure:2671: checking for main in -lxnet" >&5
1.1 paf 2671: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
2672: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2673: echo $ac_n "(cached) $ac_c" 1>&6
2674: else
2675: ac_save_LIBS="$LIBS"
2676: LIBS="-lxnet $LIBS"
2677: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2678: #line 2679 "configure"
1.1 paf 2679: #include "confdefs.h"
2680:
2681: int main() {
2682: main()
2683: ; return 0; }
2684: EOF
1.40 ! paf 2685: if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2686: rm -rf conftest*
2687: eval "ac_cv_lib_$ac_lib_var=yes"
2688: else
2689: echo "configure: failed program was:" >&5
2690: cat conftest.$ac_ext >&5
2691: rm -rf conftest*
2692: eval "ac_cv_lib_$ac_lib_var=no"
2693: fi
2694: rm -f conftest*
2695: LIBS="$ac_save_LIBS"
2696:
2697: fi
2698: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2699: echo "$ac_t""yes" 1>&6
2700: ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2701: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2702: cat >> confdefs.h <<EOF
2703: #define $ac_tr_lib 1
2704: EOF
2705:
2706: LIBS="-lxnet $LIBS"
2707:
2708: else
2709: echo "$ac_t""no" 1>&6
2710: fi
2711:
2712: ;;
2713: *-sunos5* | *-solaris2*)
2714: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.40 ! paf 2715: echo "configure:2716: checking for main in -lsocket" >&5
1.1 paf 2716: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2717: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718: echo $ac_n "(cached) $ac_c" 1>&6
2719: else
2720: ac_save_LIBS="$LIBS"
2721: LIBS="-lsocket $LIBS"
2722: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2723: #line 2724 "configure"
1.1 paf 2724: #include "confdefs.h"
2725:
2726: int main() {
2727: main()
2728: ; return 0; }
2729: EOF
1.40 ! paf 2730: if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2731: rm -rf conftest*
2732: eval "ac_cv_lib_$ac_lib_var=yes"
2733: else
2734: echo "configure: failed program was:" >&5
2735: cat conftest.$ac_ext >&5
2736: rm -rf conftest*
2737: eval "ac_cv_lib_$ac_lib_var=no"
2738: fi
2739: rm -f conftest*
2740: LIBS="$ac_save_LIBS"
2741:
2742: fi
2743: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2744: echo "$ac_t""yes" 1>&6
2745: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2746: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2747: cat >> confdefs.h <<EOF
2748: #define $ac_tr_lib 1
2749: EOF
2750:
2751: LIBS="-lsocket $LIBS"
2752:
2753: else
2754: echo "$ac_t""no" 1>&6
2755: fi
2756:
2757: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.40 ! paf 2758: echo "configure:2759: checking for main in -lnsl" >&5
1.1 paf 2759: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2760: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2761: echo $ac_n "(cached) $ac_c" 1>&6
2762: else
2763: ac_save_LIBS="$LIBS"
2764: LIBS="-lnsl $LIBS"
2765: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2766: #line 2767 "configure"
1.1 paf 2767: #include "confdefs.h"
2768:
2769: int main() {
2770: main()
2771: ; return 0; }
2772: EOF
1.40 ! paf 2773: if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2774: rm -rf conftest*
2775: eval "ac_cv_lib_$ac_lib_var=yes"
2776: else
2777: echo "configure: failed program was:" >&5
2778: cat conftest.$ac_ext >&5
2779: rm -rf conftest*
2780: eval "ac_cv_lib_$ac_lib_var=no"
2781: fi
2782: rm -f conftest*
2783: LIBS="$ac_save_LIBS"
2784:
2785: fi
2786: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2787: echo "$ac_t""yes" 1>&6
2788: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2789: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2790: cat >> confdefs.h <<EOF
2791: #define $ac_tr_lib 1
2792: EOF
2793:
2794: LIBS="-lnsl $LIBS"
2795:
2796: else
2797: echo "$ac_t""no" 1>&6
2798: fi
2799:
2800: ;;
2801: *-nec-sysv4*)
2802: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.40 ! paf 2803: echo "configure:2804: checking for gethostbyname in -lnsl" >&5
1.1 paf 2804: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2805: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2806: echo $ac_n "(cached) $ac_c" 1>&6
2807: else
2808: ac_save_LIBS="$LIBS"
2809: LIBS="-lnsl $LIBS"
2810: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2811: #line 2812 "configure"
1.1 paf 2812: #include "confdefs.h"
2813: /* Override any gcc2 internal prototype to avoid an error. */
2814: #ifdef __cplusplus
2815: extern "C"
2816: #endif
2817: /* We use char because int might match the return type of a gcc2
2818: builtin and then its argument prototype would still apply. */
2819: char gethostbyname();
2820:
2821: int main() {
2822: gethostbyname()
2823: ; return 0; }
2824: EOF
1.40 ! paf 2825: if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2826: rm -rf conftest*
2827: eval "ac_cv_lib_$ac_lib_var=yes"
2828: else
2829: echo "configure: failed program was:" >&5
2830: cat conftest.$ac_ext >&5
2831: rm -rf conftest*
2832: eval "ac_cv_lib_$ac_lib_var=no"
2833: fi
2834: rm -f conftest*
2835: LIBS="$ac_save_LIBS"
2836:
2837: fi
2838: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2839: echo "$ac_t""yes" 1>&6
2840: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2841: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2842: cat >> confdefs.h <<EOF
2843: #define $ac_tr_lib 1
2844: EOF
2845:
2846: LIBS="-lnsl $LIBS"
2847:
2848: else
2849: echo "$ac_t""no" 1>&6
2850: fi
2851:
2852: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.40 ! paf 2853: echo "configure:2854: checking for socket in -lsocket" >&5
1.1 paf 2854: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2855: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2856: echo $ac_n "(cached) $ac_c" 1>&6
2857: else
2858: ac_save_LIBS="$LIBS"
2859: LIBS="-lsocket $LIBS"
2860: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2861: #line 2862 "configure"
1.1 paf 2862: #include "confdefs.h"
2863: /* Override any gcc2 internal prototype to avoid an error. */
2864: #ifdef __cplusplus
2865: extern "C"
2866: #endif
2867: /* We use char because int might match the return type of a gcc2
2868: builtin and then its argument prototype would still apply. */
2869: char socket();
2870:
2871: int main() {
2872: socket()
2873: ; return 0; }
2874: EOF
1.40 ! paf 2875: if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2876: rm -rf conftest*
2877: eval "ac_cv_lib_$ac_lib_var=yes"
2878: else
2879: echo "configure: failed program was:" >&5
2880: cat conftest.$ac_ext >&5
2881: rm -rf conftest*
2882: eval "ac_cv_lib_$ac_lib_var=no"
2883: fi
2884: rm -f conftest*
2885: LIBS="$ac_save_LIBS"
2886:
2887: fi
2888: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2889: echo "$ac_t""yes" 1>&6
2890: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2891: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2892: cat >> confdefs.h <<EOF
2893: #define $ac_tr_lib 1
2894: EOF
2895:
2896: LIBS="-lsocket $LIBS"
2897:
2898: else
2899: echo "$ac_t""no" 1>&6
2900: fi
2901:
2902: ;;
2903: *-cygwin*)
2904: cat >> confdefs.h <<\EOF
2905: #define WIN32
2906: EOF
2907:
2908: echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.40 ! paf 2909: echo "configure:2910: checking for socket in -lwsock32" >&5
1.1 paf 2910: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
2911: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2912: echo $ac_n "(cached) $ac_c" 1>&6
2913: else
2914: ac_save_LIBS="$LIBS"
2915: LIBS="-lwsock32 $LIBS"
2916: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2917: #line 2918 "configure"
1.1 paf 2918: #include "confdefs.h"
2919: /* Override any gcc2 internal prototype to avoid an error. */
2920: #ifdef __cplusplus
2921: extern "C"
2922: #endif
2923: /* We use char because int might match the return type of a gcc2
2924: builtin and then its argument prototype would still apply. */
2925: char socket();
2926:
2927: int main() {
2928: socket()
2929: ; return 0; }
2930: EOF
1.40 ! paf 2931: if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 2932: rm -rf conftest*
2933: eval "ac_cv_lib_$ac_lib_var=yes"
2934: else
2935: echo "configure: failed program was:" >&5
2936: cat conftest.$ac_ext >&5
2937: rm -rf conftest*
2938: eval "ac_cv_lib_$ac_lib_var=no"
2939: fi
2940: rm -f conftest*
2941: LIBS="$ac_save_LIBS"
2942:
2943: fi
2944: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2945: echo "$ac_t""yes" 1>&6
2946: ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2947: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2948: cat >> confdefs.h <<EOF
2949: #define $ac_tr_lib 1
2950: EOF
2951:
2952: LIBS="-lwsock32 $LIBS"
2953:
2954: else
2955: echo "$ac_t""no" 1>&6
2956: fi
2957:
2958: ;;
1.22 paf 2959: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 2960: *-hpux*)
1.22 paf 2961: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.40 ! paf 2962: echo "configure:2963: checking for main in -lnsl" >&5
1.22 paf 2963: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2964: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2965: echo $ac_n "(cached) $ac_c" 1>&6
2966: else
2967: ac_save_LIBS="$LIBS"
2968: LIBS="-lnsl $LIBS"
2969: cat > conftest.$ac_ext <<EOF
1.40 ! paf 2970: #line 2971 "configure"
1.22 paf 2971: #include "confdefs.h"
2972:
2973: int main() {
2974: main()
2975: ; return 0; }
2976: EOF
1.40 ! paf 2977: if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22 paf 2978: rm -rf conftest*
2979: eval "ac_cv_lib_$ac_lib_var=yes"
2980: else
2981: echo "configure: failed program was:" >&5
2982: cat conftest.$ac_ext >&5
2983: rm -rf conftest*
2984: eval "ac_cv_lib_$ac_lib_var=no"
2985: fi
2986: rm -f conftest*
2987: LIBS="$ac_save_LIBS"
2988:
2989: fi
2990: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2991: echo "$ac_t""yes" 1>&6
2992: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2993: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2994: cat >> confdefs.h <<EOF
2995: #define $ac_tr_lib 1
2996: EOF
2997:
2998: LIBS="-lnsl $LIBS"
2999:
3000: else
3001: echo "$ac_t""no" 1>&6
3002: fi
3003:
3004: ;;
1.1 paf 3005: esac
3006:
3007: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.40 ! paf 3008: echo "configure:3009: checking for sin in -lm" >&5
1.1 paf 3009: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3010: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3011: echo $ac_n "(cached) $ac_c" 1>&6
3012: else
3013: ac_save_LIBS="$LIBS"
3014: LIBS="-lm $LIBS"
3015: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3016: #line 3017 "configure"
1.1 paf 3017: #include "confdefs.h"
3018: /* Override any gcc2 internal prototype to avoid an error. */
3019: #ifdef __cplusplus
3020: extern "C"
3021: #endif
3022: /* We use char because int might match the return type of a gcc2
3023: builtin and then its argument prototype would still apply. */
3024: char sin();
3025:
3026: int main() {
3027: sin()
3028: ; return 0; }
3029: EOF
1.40 ! paf 3030: if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3031: rm -rf conftest*
3032: eval "ac_cv_lib_$ac_lib_var=yes"
3033: else
3034: echo "configure: failed program was:" >&5
3035: cat conftest.$ac_ext >&5
3036: rm -rf conftest*
3037: eval "ac_cv_lib_$ac_lib_var=no"
3038: fi
3039: rm -f conftest*
3040: LIBS="$ac_save_LIBS"
3041:
3042: fi
3043: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044: echo "$ac_t""yes" 1>&6
3045: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3046: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3047: cat >> confdefs.h <<EOF
3048: #define $ac_tr_lib 1
3049: EOF
3050:
3051: LIBS="-lm $LIBS"
3052:
3053: else
3054: echo "$ac_t""no" 1>&6
3055: fi
3056:
3057:
1.31 paf 3058: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.40 ! paf 3059: echo "configure:3060: checking for crypt in -lcrypt" >&5
1.31 paf 3060: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3061: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3062: echo $ac_n "(cached) $ac_c" 1>&6
3063: else
3064: ac_save_LIBS="$LIBS"
3065: LIBS="-lcrypt $LIBS"
3066: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3067: #line 3068 "configure"
1.31 paf 3068: #include "confdefs.h"
3069: /* Override any gcc2 internal prototype to avoid an error. */
3070: #ifdef __cplusplus
3071: extern "C"
3072: #endif
3073: /* We use char because int might match the return type of a gcc2
3074: builtin and then its argument prototype would still apply. */
3075: char crypt();
3076:
3077: int main() {
3078: crypt()
3079: ; return 0; }
3080: EOF
1.40 ! paf 3081: if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31 paf 3082: rm -rf conftest*
3083: eval "ac_cv_lib_$ac_lib_var=yes"
3084: else
3085: echo "configure: failed program was:" >&5
3086: cat conftest.$ac_ext >&5
3087: rm -rf conftest*
3088: eval "ac_cv_lib_$ac_lib_var=no"
3089: fi
3090: rm -f conftest*
3091: LIBS="$ac_save_LIBS"
3092:
3093: fi
3094: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3095: echo "$ac_t""yes" 1>&6
3096: ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3097: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3098: cat >> confdefs.h <<EOF
3099: #define $ac_tr_lib 1
3100: EOF
3101:
3102: LIBS="-lcrypt $LIBS"
3103:
3104: else
3105: echo "$ac_t""no" 1>&6
3106: fi
3107:
3108:
1.1 paf 3109:
3110: for ac_func in trunc \
3111: round \
3112: sign \
3113: flock \
3114: _locking \
1.5 paf 3115: fcntl \
1.3 paf 3116: lockf \
1.31 paf 3117: getrusage \
3118: crypt
1.1 paf 3119:
3120: do
3121: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.40 ! paf 3122: echo "configure:3123: checking for $ac_func" >&5
1.1 paf 3123: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3124: echo $ac_n "(cached) $ac_c" 1>&6
3125: else
3126: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3127: #line 3128 "configure"
1.1 paf 3128: #include "confdefs.h"
3129: /* System header to define __stub macros and hopefully few prototypes,
3130: which can conflict with char $ac_func(); below. */
3131: #include <assert.h>
3132: /* Override any gcc2 internal prototype to avoid an error. */
3133: #ifdef __cplusplus
3134: extern "C"
3135: #endif
3136: /* We use char because int might match the return type of a gcc2
3137: builtin and then its argument prototype would still apply. */
3138: char $ac_func();
3139:
3140: int main() {
3141:
3142: /* The GNU C library defines this for functions which it implements
3143: to always fail with ENOSYS. Some functions are actually named
3144: something starting with __ and the normal name is an alias. */
3145: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3146: choke me
3147: #else
3148: $ac_func();
3149: #endif
3150:
3151: ; return 0; }
3152: EOF
1.40 ! paf 3153: if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 paf 3154: rm -rf conftest*
3155: eval "ac_cv_func_$ac_func=yes"
3156: else
3157: echo "configure: failed program was:" >&5
3158: cat conftest.$ac_ext >&5
3159: rm -rf conftest*
3160: eval "ac_cv_func_$ac_func=no"
3161: fi
3162: rm -f conftest*
3163: fi
3164:
3165: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3166: echo "$ac_t""yes" 1>&6
3167: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3168: cat >> confdefs.h <<EOF
3169: #define $ac_tr_func 1
3170: EOF
3171:
3172: else
3173: echo "$ac_t""no" 1>&6
3174: fi
3175: done
3176:
3177:
1.3 paf 3178:
3179: for ac_func in qsort
3180: do
3181: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.40 ! paf 3182: echo "configure:3183: checking for $ac_func" >&5
1.3 paf 3183: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3184: echo $ac_n "(cached) $ac_c" 1>&6
3185: else
3186: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3187: #line 3188 "configure"
1.3 paf 3188: #include "confdefs.h"
3189: /* System header to define __stub macros and hopefully few prototypes,
3190: which can conflict with char $ac_func(); below. */
3191: #include <assert.h>
3192: /* Override any gcc2 internal prototype to avoid an error. */
3193: #ifdef __cplusplus
3194: extern "C"
3195: #endif
3196: /* We use char because int might match the return type of a gcc2
3197: builtin and then its argument prototype would still apply. */
3198: char $ac_func();
3199:
3200: int main() {
3201:
3202: /* The GNU C library defines this for functions which it implements
3203: to always fail with ENOSYS. Some functions are actually named
3204: something starting with __ and the normal name is an alias. */
3205: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3206: choke me
3207: #else
3208: $ac_func();
3209: #endif
3210:
3211: ; return 0; }
3212: EOF
1.40 ! paf 3213: if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3214: rm -rf conftest*
3215: eval "ac_cv_func_$ac_func=yes"
3216: else
3217: echo "configure: failed program was:" >&5
3218: cat conftest.$ac_ext >&5
3219: rm -rf conftest*
3220: eval "ac_cv_func_$ac_func=no"
3221: fi
3222: rm -f conftest*
3223: fi
3224:
3225: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3226: echo "$ac_t""yes" 1>&6
3227: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3228: cat >> confdefs.h <<EOF
3229: #define $ac_tr_func 1
3230: EOF
3231:
3232: else
3233: echo "$ac_t""no" 1>&6
3234: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
3235: fi
3236: done
3237:
3238: for ac_func in select
3239: do
3240: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.40 ! paf 3241: echo "configure:3242: checking for $ac_func" >&5
1.3 paf 3242: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3243: echo $ac_n "(cached) $ac_c" 1>&6
3244: else
3245: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3246: #line 3247 "configure"
1.3 paf 3247: #include "confdefs.h"
3248: /* System header to define __stub macros and hopefully few prototypes,
3249: which can conflict with char $ac_func(); below. */
3250: #include <assert.h>
3251: /* Override any gcc2 internal prototype to avoid an error. */
3252: #ifdef __cplusplus
3253: extern "C"
3254: #endif
3255: /* We use char because int might match the return type of a gcc2
3256: builtin and then its argument prototype would still apply. */
3257: char $ac_func();
3258:
3259: int main() {
3260:
3261: /* The GNU C library defines this for functions which it implements
3262: to always fail with ENOSYS. Some functions are actually named
3263: something starting with __ and the normal name is an alias. */
3264: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3265: choke me
3266: #else
3267: $ac_func();
3268: #endif
3269:
3270: ; return 0; }
3271: EOF
1.40 ! paf 3272: if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3 paf 3273: rm -rf conftest*
3274: eval "ac_cv_func_$ac_func=yes"
3275: else
3276: echo "configure: failed program was:" >&5
3277: cat conftest.$ac_ext >&5
3278: rm -rf conftest*
3279: eval "ac_cv_func_$ac_func=no"
3280: fi
3281: rm -f conftest*
3282: fi
3283:
3284: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3285: echo "$ac_t""yes" 1>&6
3286: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3287: cat >> confdefs.h <<EOF
3288: #define $ac_tr_func 1
3289: EOF
3290:
3291: else
3292: echo "$ac_t""no" 1>&6
3293: { echo "configure: error: No select library function." 1>&2; exit 1; }
3294: fi
3295: done
3296:
3297:
1.1 paf 3298: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.40 ! paf 3299: echo "configure:3300: checking whether compiler supports pragma pack" >&5
1.1 paf 3300: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3301: #line 3302 "configure"
1.1 paf 3302: #include "confdefs.h"
3303: #pragma pack(1)
1.25 paf 3304: struct _1_byte {
1.1 paf 3305: char c;
1.25 paf 3306: };
1.1 paf 3307: #pragma pack()
1.25 paf 3308:
3309: int main() {
1.1 paf 3310:
3311: ; return 0; }
3312: EOF
1.40 ! paf 3313: if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3314: rm -rf conftest*
3315:
3316: echo "$ac_t""yes" 1>&6
3317: cat >> confdefs.h <<\EOF
3318: #define HAVE_PRAGMA_PACK
3319: EOF
3320:
3321:
3322: else
3323: echo "configure: failed program was:" >&5
3324: cat conftest.$ac_ext >&5
3325: rm -rf conftest*
3326: echo "$ac_t""no" 1>&6
3327:
3328: fi
3329: rm -f conftest*
3330:
3331: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.40 ! paf 3332: echo "configure:3333: checking for set_new_handler" >&5
1.1 paf 3333: cat > conftest.$ac_ext <<EOF
1.40 ! paf 3334: #line 3335 "configure"
1.1 paf 3335: #include "confdefs.h"
3336: #ifdef HAVE_NEW
3337: #include <new>
3338: #endif
3339: void failed_new() {}
3340:
3341: int main() {
3342: std::set_new_handler(failed_new);
3343:
3344: ; return 0; }
3345: EOF
1.40 ! paf 3346: if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 paf 3347: rm -rf conftest*
3348:
3349: echo "$ac_t""yes" 1>&6
3350: cat >> confdefs.h <<\EOF
3351: #define HAVE_SET_NEW_HANDLER
3352: EOF
3353:
3354:
3355: else
3356: echo "configure: failed program was:" >&5
3357: cat conftest.$ac_ext >&5
3358: rm -rf conftest*
3359: echo "$ac_t""no" 1>&6
3360:
3361: fi
3362: rm -f conftest*
3363:
3364:
3365:
1.15 paf 3366:
1.8 paf 3367: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 3368:
3369:
3370:
3371:
3372: # expand apostrophed
1.4 paf 3373: e_prefix=$prefix
3374: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
3375:
1.1 paf 3376: e_sysconfdir=$sysconfdir
1.4 paf 3377: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 3378:
3379:
3380: charsetsdir=$e_sysconfdir/parser3.charsets
3381:
3382:
3383: # expand apostrophed
3384: e_libdir=$libdir
3385: if test "$e_libdir" = "\${exec_prefix}/lib"; then
3386:
3387: # Let make expand exec_prefix.
3388: e_exec_prefix=$exec_prefix
1.10 paf 3389: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 3390:
3391: # expand apostrophed
3392: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
3393: fi
3394:
3395: sqldriversdir=$e_libdir
3396:
3397:
3398:
3399:
3400:
3401:
3402:
3403: trap '' 1 2 15
3404: cat > confcache <<\EOF
3405: # This file is a shell script that caches the results of configure
3406: # tests run on this system so they can be shared between configure
3407: # scripts and configure runs. It is not useful on other systems.
3408: # If it contains results you don't want to keep, you may remove or edit it.
3409: #
3410: # By default, configure uses ./config.cache as the cache file,
3411: # creating it if it does not exist already. You can give configure
3412: # the --cache-file=FILE option to use a different cache file; that is
3413: # what configure does when it calls configure scripts in
3414: # subdirectories, so they share the cache.
3415: # Giving --cache-file=/dev/null disables caching, for debugging configure.
3416: # config.status only pays attention to the cache file if you give it the
3417: # --recheck option to rerun configure.
3418: #
3419: EOF
3420: # The following way of writing the cache mishandles newlines in values,
3421: # but we know of no workaround that is simple, portable, and efficient.
3422: # So, don't put newlines in cache variables' values.
3423: # Ultrix sh set writes to stderr and can't be redirected directly,
3424: # and sets the high bit in the cache file unless we assign to the vars.
3425: (set) 2>&1 |
3426: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3427: *ac_space=\ *)
3428: # `set' does not quote correctly, so add quotes (double-quote substitution
3429: # turns \\\\ into \\, and sed turns \\ into \).
3430: sed -n \
3431: -e "s/'/'\\\\''/g" \
3432: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3433: ;;
3434: *)
3435: # `set' quotes correctly as required by POSIX, so do not add quotes.
3436: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3437: ;;
3438: esac >> confcache
3439: if cmp -s $cache_file confcache; then
3440: :
3441: else
3442: if test -w $cache_file; then
3443: echo "updating cache $cache_file"
3444: cat confcache > $cache_file
3445: else
3446: echo "not updating unwritable cache $cache_file"
3447: fi
3448: fi
3449: rm -f confcache
3450:
3451: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3452:
3453: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3454: # Let make expand exec_prefix.
3455: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3456:
3457: # Any assignment to VPATH causes Sun make to only execute
3458: # the first set of double-colon rules, so remove it if not needed.
3459: # If there is a colon in the path, we need to keep it.
3460: if test "x$srcdir" = x.; then
3461: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3462: fi
3463:
3464: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3465:
3466: DEFS=-DHAVE_CONFIG_H
3467:
3468: # Without the "./", some shells look in PATH for config.status.
3469: : ${CONFIG_STATUS=./config.status}
3470:
3471: echo creating $CONFIG_STATUS
3472: rm -f $CONFIG_STATUS
3473: cat > $CONFIG_STATUS <<EOF
3474: #! /bin/sh
3475: # Generated automatically by configure.
3476: # Run this file to recreate the current configuration.
3477: # This directory was configured as follows,
3478: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3479: #
3480: # $0 $ac_configure_args
3481: #
3482: # Compiler output produced by configure, useful for debugging
3483: # configure, is in ./config.log if it exists.
3484:
3485: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3486: for ac_option
3487: do
3488: case "\$ac_option" in
3489: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3490: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3491: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3492: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3493: echo "$CONFIG_STATUS generated by autoconf version 2.13"
3494: exit 0 ;;
3495: -help | --help | --hel | --he | --h)
3496: echo "\$ac_cs_usage"; exit 0 ;;
3497: *) echo "\$ac_cs_usage"; exit 1 ;;
3498: esac
3499: done
3500:
3501: ac_given_srcdir=$srcdir
3502: ac_given_INSTALL="$INSTALL"
3503:
1.36 paf 3504: 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 3505: EOF
3506: cat >> $CONFIG_STATUS <<EOF
3507:
3508: # Protect against being on the right side of a sed subst in config.status.
3509: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3510: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3511: $ac_vpsub
3512: $extrasub
3513: s%@SHELL@%$SHELL%g
3514: s%@CFLAGS@%$CFLAGS%g
3515: s%@CPPFLAGS@%$CPPFLAGS%g
3516: s%@CXXFLAGS@%$CXXFLAGS%g
3517: s%@FFLAGS@%$FFLAGS%g
3518: s%@DEFS@%$DEFS%g
3519: s%@LDFLAGS@%$LDFLAGS%g
3520: s%@LIBS@%$LIBS%g
3521: s%@exec_prefix@%$exec_prefix%g
3522: s%@prefix@%$prefix%g
3523: s%@program_transform_name@%$program_transform_name%g
3524: s%@bindir@%$bindir%g
3525: s%@sbindir@%$sbindir%g
3526: s%@libexecdir@%$libexecdir%g
3527: s%@datadir@%$datadir%g
3528: s%@sysconfdir@%$sysconfdir%g
3529: s%@sharedstatedir@%$sharedstatedir%g
3530: s%@localstatedir@%$localstatedir%g
3531: s%@libdir@%$libdir%g
3532: s%@includedir@%$includedir%g
3533: s%@oldincludedir@%$oldincludedir%g
3534: s%@infodir@%$infodir%g
3535: s%@mandir@%$mandir%g
3536: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3537: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3538: s%@INSTALL_DATA@%$INSTALL_DATA%g
3539: s%@PACKAGE@%$PACKAGE%g
3540: s%@VERSION@%$VERSION%g
3541: s%@ACLOCAL@%$ACLOCAL%g
3542: s%@AUTOCONF@%$AUTOCONF%g
3543: s%@AUTOMAKE@%$AUTOMAKE%g
3544: s%@AUTOHEADER@%$AUTOHEADER%g
3545: s%@MAKEINFO@%$MAKEINFO%g
3546: s%@SET_MAKE@%$SET_MAKE%g
3547: s%@P3S@%$P3S%g
3548: s%@CC@%$CC%g
3549: s%@CXX@%$CXX%g
1.15 paf 3550: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
3551: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.17 paf 3552: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
3553: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
3554: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
3555: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40 ! paf 3556: s%@dll_extension@%$dll_extension%g
1.17 paf 3557: s%@mysql_client@%$mysql_client%g
3558: s%@pgsql_client@%$pgsql_client%g
3559: s%@oracle_client@%$oracle_client%g
1.12 paf 3560: s%@XML_INCLUDES@%$XML_INCLUDES%g
3561: s%@XML_LIBS@%$XML_LIBS%g
1.29 paf 3562: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
3563: s%@MIME_LIBS@%$MIME_LIBS%g
1.1 paf 3564: s%@APACHE13@%$APACHE13%g
3565: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
3566: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
3567: s%@host@%$host%g
3568: s%@host_alias@%$host_alias%g
3569: s%@host_cpu@%$host_cpu%g
3570: s%@host_vendor@%$host_vendor%g
3571: s%@host_os@%$host_os%g
3572: s%@RANLIB@%$RANLIB%g
3573: s%@AWK@%$AWK%g
3574: s%@YACC@%$YACC%g
3575: s%@INCLTDL@%$INCLTDL%g
3576: s%@LIBLTDL@%$LIBLTDL%g
1.8 paf 3577: s%@subdirs@%$subdirs%g
1.1 paf 3578: s%@LIBADD_DL@%$LIBADD_DL%g
3579: s%@CXXCPP@%$CXXCPP%g
3580: s%@APACHE_LIBS@%$APACHE_LIBS%g
3581: s%@charsetsdir@%$charsetsdir%g
3582: s%@sqldriversdir@%$sqldriversdir%g
3583:
3584: CEOF
3585: EOF
3586:
3587: cat >> $CONFIG_STATUS <<\EOF
3588:
3589: # Split the substitutions into bite-sized pieces for seds with
3590: # small command number limits, like on Digital OSF/1 and HP-UX.
3591: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3592: ac_file=1 # Number of current file.
3593: ac_beg=1 # First line for current file.
3594: ac_end=$ac_max_sed_cmds # Line after last line for current file.
3595: ac_more_lines=:
3596: ac_sed_cmds=""
3597: while $ac_more_lines; do
3598: if test $ac_beg -gt 1; then
3599: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3600: else
3601: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3602: fi
3603: if test ! -s conftest.s$ac_file; then
3604: ac_more_lines=false
3605: rm -f conftest.s$ac_file
3606: else
3607: if test -z "$ac_sed_cmds"; then
3608: ac_sed_cmds="sed -f conftest.s$ac_file"
3609: else
3610: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3611: fi
3612: ac_file=`expr $ac_file + 1`
3613: ac_beg=$ac_end
3614: ac_end=`expr $ac_end + $ac_max_sed_cmds`
3615: fi
3616: done
3617: if test -z "$ac_sed_cmds"; then
3618: ac_sed_cmds=cat
3619: fi
3620: EOF
3621:
3622: cat >> $CONFIG_STATUS <<EOF
3623:
1.36 paf 3624: 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 3625: EOF
3626: cat >> $CONFIG_STATUS <<\EOF
3627: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3628: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3629: case "$ac_file" in
3630: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3631: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3632: *) ac_file_in="${ac_file}.in" ;;
3633: esac
3634:
3635: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3636:
3637: # Remove last slash and all that follows it. Not all systems have dirname.
3638: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3639: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3640: # The file is in a subdirectory.
3641: test ! -d "$ac_dir" && mkdir "$ac_dir"
3642: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3643: # A "../" for each directory in $ac_dir_suffix.
3644: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3645: else
3646: ac_dir_suffix= ac_dots=
3647: fi
3648:
3649: case "$ac_given_srcdir" in
3650: .) srcdir=.
3651: if test -z "$ac_dots"; then top_srcdir=.
3652: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3653: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3654: *) # Relative path.
3655: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3656: top_srcdir="$ac_dots$ac_given_srcdir" ;;
3657: esac
3658:
3659: case "$ac_given_INSTALL" in
3660: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3661: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3662: esac
3663:
3664: echo creating "$ac_file"
3665: rm -f "$ac_file"
3666: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3667: case "$ac_file" in
3668: *Makefile*) ac_comsub="1i\\
3669: # $configure_input" ;;
3670: *) ac_comsub= ;;
3671: esac
3672:
3673: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3674: sed -e "$ac_comsub
3675: s%@configure_input@%$configure_input%g
3676: s%@srcdir@%$srcdir%g
3677: s%@top_srcdir@%$top_srcdir%g
3678: s%@INSTALL@%$INSTALL%g
3679: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3680: fi; done
3681: rm -f conftest.s*
3682:
3683: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3684: # NAME is the cpp macro being defined and VALUE is the value it is being given.
3685: #
3686: # ac_d sets the value in "#define NAME VALUE" lines.
3687: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3688: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3689: ac_dC='\3'
3690: ac_dD='%g'
3691: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3692: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3693: ac_uB='\([ ]\)%\1#\2define\3'
3694: ac_uC=' '
3695: ac_uD='\4%g'
3696: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3697: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3698: ac_eB='$%\1#\2define\3'
3699: ac_eC=' '
3700: ac_eD='%g'
3701:
3702: if test "${CONFIG_HEADERS+set}" != set; then
3703: EOF
3704: cat >> $CONFIG_STATUS <<EOF
3705: CONFIG_HEADERS="src/include/pa_config_auto.h"
3706: EOF
3707: cat >> $CONFIG_STATUS <<\EOF
3708: fi
3709: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3710: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3711: case "$ac_file" in
3712: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3713: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3714: *) ac_file_in="${ac_file}.in" ;;
3715: esac
3716:
3717: echo creating $ac_file
3718:
3719: rm -f conftest.frag conftest.in conftest.out
3720: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3721: cat $ac_file_inputs > conftest.in
3722:
3723: EOF
3724:
3725: # Transform confdefs.h into a sed script conftest.vals that substitutes
3726: # the proper values into config.h.in to produce config.h. And first:
3727: # Protect against being on the right side of a sed subst in config.status.
3728: # Protect against being in an unquoted here document in config.status.
3729: rm -f conftest.vals
3730: cat > conftest.hdr <<\EOF
3731: s/[\\&%]/\\&/g
3732: s%[\\$`]%\\&%g
3733: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3734: s%ac_d%ac_u%gp
3735: s%ac_u%ac_e%gp
3736: EOF
3737: sed -n -f conftest.hdr confdefs.h > conftest.vals
3738: rm -f conftest.hdr
3739:
3740: # This sed command replaces #undef with comments. This is necessary, for
3741: # example, in the case of _POSIX_SOURCE, which is predefined and required
3742: # on some systems where configure will not decide to define it.
3743: cat >> conftest.vals <<\EOF
3744: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3745: EOF
3746:
3747: # Break up conftest.vals because some shells have a limit on
3748: # the size of here documents, and old seds have small limits too.
3749:
3750: rm -f conftest.tail
3751: while :
3752: do
3753: ac_lines=`grep -c . conftest.vals`
3754: # grep -c gives empty output for an empty file on some AIX systems.
3755: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3756: # Write a limited-size here document to conftest.frag.
3757: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3758: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3759: echo 'CEOF
3760: sed -f conftest.frag conftest.in > conftest.out
3761: rm -f conftest.in
3762: mv conftest.out conftest.in
3763: ' >> $CONFIG_STATUS
3764: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3765: rm -f conftest.vals
3766: mv conftest.tail conftest.vals
3767: done
3768: rm -f conftest.vals
3769:
3770: cat >> $CONFIG_STATUS <<\EOF
3771: rm -f conftest.frag conftest.h
3772: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3773: cat conftest.in >> conftest.h
3774: rm -f conftest.in
3775: if cmp -s $ac_file conftest.h 2>/dev/null; then
3776: echo "$ac_file is unchanged"
3777: rm -f conftest.h
3778: else
3779: # Remove last slash and all that follows it. Not all systems have dirname.
3780: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3781: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3782: # The file is in a subdirectory.
3783: test ! -d "$ac_dir" && mkdir "$ac_dir"
3784: fi
3785: rm -f $ac_file
3786: mv conftest.h $ac_file
3787: fi
3788: fi; done
3789:
3790: EOF
3791: cat >> $CONFIG_STATUS <<EOF
3792:
3793:
3794: EOF
3795: cat >> $CONFIG_STATUS <<\EOF
3796: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
3797:
3798: exit 0
3799: EOF
3800: chmod +x $CONFIG_STATUS
3801: rm -fr confdefs* $ac_clean_files
3802: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3803:
3804: if test "$no_recursion" != yes; then
3805:
3806: # Remove --cache-file and --srcdir arguments so they do not pile up.
3807: ac_sub_configure_args=
3808: ac_prev=
3809: for ac_arg in $ac_configure_args; do
3810: if test -n "$ac_prev"; then
3811: ac_prev=
3812: continue
3813: fi
3814: case "$ac_arg" in
3815: -cache-file | --cache-file | --cache-fil | --cache-fi \
3816: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3817: ac_prev=cache_file ;;
3818: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3819: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3820: ;;
3821: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3822: ac_prev=srcdir ;;
3823: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3824: ;;
3825: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3826: esac
3827: done
3828:
1.28 paf 3829: for ac_config_dir in src/lib/libltdl; do
1.1 paf 3830:
3831: # Do not complain, so a configure script can configure whichever
3832: # parts of a large source tree are present.
3833: if test ! -d $srcdir/$ac_config_dir; then
3834: continue
3835: fi
3836:
3837: echo configuring in $ac_config_dir
3838:
3839: case "$srcdir" in
3840: .) ;;
3841: *)
3842: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3843: else
3844: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3845: fi
3846: ;;
3847: esac
3848:
3849: ac_popdir=`pwd`
3850: cd $ac_config_dir
3851:
3852: # A "../" for each directory in /$ac_config_dir.
3853: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3854:
3855: case "$srcdir" in
3856: .) # No --srcdir option. We are building in place.
3857: ac_sub_srcdir=$srcdir ;;
3858: /*) # Absolute path.
3859: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3860: *) # Relative path.
3861: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3862: esac
3863:
3864: # Check for guested configure; otherwise get Cygnus style configure.
3865: if test -f $ac_sub_srcdir/configure; then
3866: ac_sub_configure=$ac_sub_srcdir/configure
3867: elif test -f $ac_sub_srcdir/configure.in; then
3868: ac_sub_configure=$ac_configure
3869: else
3870: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3871: ac_sub_configure=
3872: fi
3873:
3874: # The recursion is here.
3875: if test -n "$ac_sub_configure"; then
3876:
3877: # Make the cache file name correct relative to the subdirectory.
3878: case "$cache_file" in
3879: /*) ac_sub_cache_file=$cache_file ;;
3880: *) # Relative path.
3881: ac_sub_cache_file="$ac_dots$cache_file" ;;
3882: esac
3883: case "$ac_given_INSTALL" in
3884: [/$]*) INSTALL="$ac_given_INSTALL" ;;
3885: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3886: esac
3887:
3888: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3889: # The eval makes quoting arguments work.
3890: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3891: then :
3892: else
3893: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3894: fi
3895: fi
3896:
3897: cd $ac_popdir
3898: done
3899: fi
3900:
E-mail: