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