Annotation of sql/mysql/configure, revision 1.13.2.1
1.1 parser 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.8 paf 15: --with-mysql-inc=DIR DIR is the MySQL includes directory"
1.1 parser 16: ac_help="$ac_help
1.9 paf 17: --enable-static[=PKGS] build static libraries [default=no]"
18: ac_help="$ac_help
1.1 parser 19: --enable-shared[=PKGS] build shared libraries [default=yes]"
20: ac_help="$ac_help
21: --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22: ac_help="$ac_help
23: --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24: ac_help="$ac_help
25: --disable-libtool-lock avoid locking (might break parallel builds)"
26:
27: # Initialize some variables set by options.
28: # The variables have the same names as the options, with
29: # dashes changed to underlines.
30: build=NONE
31: cache_file=./config.cache
32: exec_prefix=NONE
33: host=NONE
34: no_create=
35: nonopt=NONE
36: no_recursion=
37: prefix=NONE
38: program_prefix=NONE
39: program_suffix=NONE
40: program_transform_name=s,x,x,
41: silent=
42: site=
43: srcdir=
44: target=NONE
45: verbose=
46: x_includes=NONE
47: x_libraries=NONE
48: bindir='${exec_prefix}/bin'
49: sbindir='${exec_prefix}/sbin'
50: libexecdir='${exec_prefix}/libexec'
51: datadir='${prefix}/share'
52: sysconfdir='${prefix}/etc'
53: sharedstatedir='${prefix}/com'
54: localstatedir='${prefix}/var'
55: libdir='${exec_prefix}/lib'
56: includedir='${prefix}/include'
57: oldincludedir='/usr/include'
58: infodir='${prefix}/info'
59: mandir='${prefix}/man'
60:
61: # Initialize some other variables.
62: subdirs=
63: MFLAGS= MAKEFLAGS=
64: SHELL=${CONFIG_SHELL-/bin/sh}
65: # Maximum number of lines to put in a shell here document.
66: ac_max_here_lines=12
67:
68: ac_prev=
69: for ac_option
70: do
71:
72: # If the previous option needs an argument, assign it.
73: if test -n "$ac_prev"; then
74: eval "$ac_prev=\$ac_option"
75: ac_prev=
76: continue
77: fi
78:
79: case "$ac_option" in
80: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81: *) ac_optarg= ;;
82: esac
83:
84: # Accept the important Cygnus configure options, so we can diagnose typos.
85:
86: case "$ac_option" in
87:
88: -bindir | --bindir | --bindi | --bind | --bin | --bi)
89: ac_prev=bindir ;;
90: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91: bindir="$ac_optarg" ;;
92:
93: -build | --build | --buil | --bui | --bu)
94: ac_prev=build ;;
95: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96: build="$ac_optarg" ;;
97:
98: -cache-file | --cache-file | --cache-fil | --cache-fi \
99: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100: ac_prev=cache_file ;;
101: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103: cache_file="$ac_optarg" ;;
104:
105: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106: ac_prev=datadir ;;
107: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108: | --da=*)
109: datadir="$ac_optarg" ;;
110:
111: -disable-* | --disable-*)
112: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113: # Reject names that are not valid shell variable names.
114: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116: fi
117: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118: eval "enable_${ac_feature}=no" ;;
119:
120: -enable-* | --enable-*)
121: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122: # Reject names that are not valid shell variable names.
123: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125: fi
126: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127: case "$ac_option" in
128: *=*) ;;
129: *) ac_optarg=yes ;;
130: esac
131: eval "enable_${ac_feature}='$ac_optarg'" ;;
132:
133: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135: | --exec | --exe | --ex)
136: ac_prev=exec_prefix ;;
137: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139: | --exec=* | --exe=* | --ex=*)
140: exec_prefix="$ac_optarg" ;;
141:
142: -gas | --gas | --ga | --g)
143: # Obsolete; use --with-gas.
144: with_gas=yes ;;
145:
146: -help | --help | --hel | --he)
147: # Omit some internal or obsolete options to make the list less imposing.
148: # This message is too long to be a string in the A/UX 3.1 sh.
149: cat << EOF
150: Usage: configure [options] [host]
151: Options: [defaults in brackets after descriptions]
152: Configuration:
153: --cache-file=FILE cache test results in FILE
154: --help print this message
155: --no-create do not create output files
156: --quiet, --silent do not print \`checking...' messages
157: --version print the version of autoconf that created configure
158: Directory and file names:
159: --prefix=PREFIX install architecture-independent files in PREFIX
160: [$ac_default_prefix]
161: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162: [same as prefix]
163: --bindir=DIR user executables in DIR [EPREFIX/bin]
164: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166: --datadir=DIR read-only architecture-independent data in DIR
167: [PREFIX/share]
168: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169: --sharedstatedir=DIR modifiable architecture-independent data in DIR
170: [PREFIX/com]
171: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173: --includedir=DIR C header files in DIR [PREFIX/include]
174: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175: --infodir=DIR info documentation in DIR [PREFIX/info]
176: --mandir=DIR man documentation in DIR [PREFIX/man]
177: --srcdir=DIR find the sources in DIR [configure dir or ..]
178: --program-prefix=PREFIX prepend PREFIX to installed program names
179: --program-suffix=SUFFIX append SUFFIX to installed program names
180: --program-transform-name=PROGRAM
181: run sed PROGRAM on installed program names
182: EOF
183: cat << EOF
184: Host type:
185: --build=BUILD configure for building on BUILD [BUILD=HOST]
186: --host=HOST configure for HOST [guessed]
187: --target=TARGET configure for TARGET [TARGET=HOST]
188: Features and packages:
189: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193: --x-includes=DIR X include files are in DIR
194: --x-libraries=DIR X library files are in DIR
195: EOF
196: if test -n "$ac_help"; then
197: echo "--enable and --with options recognized:$ac_help"
198: fi
199: exit 0 ;;
200:
201: -host | --host | --hos | --ho)
202: ac_prev=host ;;
203: -host=* | --host=* | --hos=* | --ho=*)
204: host="$ac_optarg" ;;
205:
206: -includedir | --includedir | --includedi | --included | --include \
207: | --includ | --inclu | --incl | --inc)
208: ac_prev=includedir ;;
209: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210: | --includ=* | --inclu=* | --incl=* | --inc=*)
211: includedir="$ac_optarg" ;;
212:
213: -infodir | --infodir | --infodi | --infod | --info | --inf)
214: ac_prev=infodir ;;
215: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216: infodir="$ac_optarg" ;;
217:
218: -libdir | --libdir | --libdi | --libd)
219: ac_prev=libdir ;;
220: -libdir=* | --libdir=* | --libdi=* | --libd=*)
221: libdir="$ac_optarg" ;;
222:
223: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224: | --libexe | --libex | --libe)
225: ac_prev=libexecdir ;;
226: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227: | --libexe=* | --libex=* | --libe=*)
228: libexecdir="$ac_optarg" ;;
229:
230: -localstatedir | --localstatedir | --localstatedi | --localstated \
231: | --localstate | --localstat | --localsta | --localst \
232: | --locals | --local | --loca | --loc | --lo)
233: ac_prev=localstatedir ;;
234: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237: localstatedir="$ac_optarg" ;;
238:
239: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240: ac_prev=mandir ;;
241: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242: mandir="$ac_optarg" ;;
243:
244: -nfp | --nfp | --nf)
245: # Obsolete; use --without-fp.
246: with_fp=no ;;
247:
248: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249: | --no-cr | --no-c)
250: no_create=yes ;;
251:
252: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254: no_recursion=yes ;;
255:
256: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258: | --oldin | --oldi | --old | --ol | --o)
259: ac_prev=oldincludedir ;;
260: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263: oldincludedir="$ac_optarg" ;;
264:
265: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266: ac_prev=prefix ;;
267: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268: prefix="$ac_optarg" ;;
269:
270: -program-prefix | --program-prefix | --program-prefi | --program-pref \
271: | --program-pre | --program-pr | --program-p)
272: ac_prev=program_prefix ;;
273: -program-prefix=* | --program-prefix=* | --program-prefi=* \
274: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275: program_prefix="$ac_optarg" ;;
276:
277: -program-suffix | --program-suffix | --program-suffi | --program-suff \
278: | --program-suf | --program-su | --program-s)
279: ac_prev=program_suffix ;;
280: -program-suffix=* | --program-suffix=* | --program-suffi=* \
281: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282: program_suffix="$ac_optarg" ;;
283:
284: -program-transform-name | --program-transform-name \
285: | --program-transform-nam | --program-transform-na \
286: | --program-transform-n | --program-transform- \
287: | --program-transform | --program-transfor \
288: | --program-transfo | --program-transf \
289: | --program-trans | --program-tran \
290: | --progr-tra | --program-tr | --program-t)
291: ac_prev=program_transform_name ;;
292: -program-transform-name=* | --program-transform-name=* \
293: | --program-transform-nam=* | --program-transform-na=* \
294: | --program-transform-n=* | --program-transform-=* \
295: | --program-transform=* | --program-transfor=* \
296: | --program-transfo=* | --program-transf=* \
297: | --program-trans=* | --program-tran=* \
298: | --progr-tra=* | --program-tr=* | --program-t=*)
299: program_transform_name="$ac_optarg" ;;
300:
301: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302: | -silent | --silent | --silen | --sile | --sil)
303: silent=yes ;;
304:
305: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306: ac_prev=sbindir ;;
307: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308: | --sbi=* | --sb=*)
309: sbindir="$ac_optarg" ;;
310:
311: -sharedstatedir | --sharedstatedir | --sharedstatedi \
312: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313: | --sharedst | --shareds | --shared | --share | --shar \
314: | --sha | --sh)
315: ac_prev=sharedstatedir ;;
316: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319: | --sha=* | --sh=*)
320: sharedstatedir="$ac_optarg" ;;
321:
322: -site | --site | --sit)
323: ac_prev=site ;;
324: -site=* | --site=* | --sit=*)
325: site="$ac_optarg" ;;
326:
327: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328: ac_prev=srcdir ;;
329: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330: srcdir="$ac_optarg" ;;
331:
332: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333: | --syscon | --sysco | --sysc | --sys | --sy)
334: ac_prev=sysconfdir ;;
335: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337: sysconfdir="$ac_optarg" ;;
338:
339: -target | --target | --targe | --targ | --tar | --ta | --t)
340: ac_prev=target ;;
341: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342: target="$ac_optarg" ;;
343:
344: -v | -verbose | --verbose | --verbos | --verbo | --verb)
345: verbose=yes ;;
346:
347: -version | --version | --versio | --versi | --vers)
348: echo "configure generated by autoconf version 2.13"
349: exit 0 ;;
350:
351: -with-* | --with-*)
352: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353: # Reject names that are not valid shell variable names.
354: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356: fi
357: ac_package=`echo $ac_package| sed 's/-/_/g'`
358: case "$ac_option" in
359: *=*) ;;
360: *) ac_optarg=yes ;;
361: esac
362: eval "with_${ac_package}='$ac_optarg'" ;;
363:
364: -without-* | --without-*)
365: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366: # Reject names that are not valid shell variable names.
367: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369: fi
370: ac_package=`echo $ac_package| sed 's/-/_/g'`
371: eval "with_${ac_package}=no" ;;
372:
373: --x)
374: # Obsolete; use --with-x.
375: with_x=yes ;;
376:
377: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378: | --x-incl | --x-inc | --x-in | --x-i)
379: ac_prev=x_includes ;;
380: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382: x_includes="$ac_optarg" ;;
383:
384: -x-libraries | --x-libraries | --x-librarie | --x-librari \
385: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386: ac_prev=x_libraries ;;
387: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389: x_libraries="$ac_optarg" ;;
390:
391: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392: ;;
393:
394: *)
395: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396: echo "configure: warning: $ac_option: invalid host type" 1>&2
397: fi
398: if test "x$nonopt" != xNONE; then
399: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400: fi
401: nonopt="$ac_option"
402: ;;
403:
404: esac
405: done
406:
407: if test -n "$ac_prev"; then
408: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409: fi
410:
411: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412:
413: # File descriptor usage:
414: # 0 standard input
415: # 1 file creation
416: # 2 errors and warnings
417: # 3 some systems may open it to /dev/tty
418: # 4 used on the Kubota Titan
419: # 6 checking for... messages and results
420: # 5 compiler messages saved in config.log
421: if test "$silent" = yes; then
422: exec 6>/dev/null
423: else
424: exec 6>&1
425: fi
426: exec 5>./config.log
427:
428: echo "\
429: This file contains any messages produced by compilers while
430: running configure, to aid debugging if configure makes a mistake.
431: " 1>&5
432:
433: # Strip out --no-create and --no-recursion so they do not pile up.
434: # Also quote any args containing shell metacharacters.
435: ac_configure_args=
436: for ac_arg
437: do
438: case "$ac_arg" in
439: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440: | --no-cr | --no-c) ;;
441: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446: esac
447: done
448:
449: # NLS nuisances.
450: # Only set these to C if already set. These must not be set unconditionally
451: # because not all systems understand e.g. LANG=C (notably SCO).
452: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453: # Non-C LC_CTYPE values break the ctype check.
454: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458:
459: # confdefs.h avoids OS command line length limits that DEFS can exceed.
460: rm -rf conftest* confdefs.h
461: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462: echo > confdefs.h
463:
464: # A filename unique to this package, relative to the directory that
465: # configure is in, which we can look for to find out if srcdir is correct.
466: ac_unique_file=parser3mysql.C
467:
468: # Find the source files, if location was not specified.
469: if test -z "$srcdir"; then
470: ac_srcdir_defaulted=yes
471: # Try the directory containing this script, then its parent.
472: ac_prog=$0
473: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475: srcdir=$ac_confdir
476: if test ! -r $srcdir/$ac_unique_file; then
477: srcdir=..
478: fi
479: else
480: ac_srcdir_defaulted=no
481: fi
482: if test ! -r $srcdir/$ac_unique_file; then
483: if test "$ac_srcdir_defaulted" = yes; then
484: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485: else
486: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487: fi
488: fi
489: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490:
491: # Prefer explicitly selected file to automatically selected ones.
492: if test -z "$CONFIG_SITE"; then
493: if test "x$prefix" != xNONE; then
494: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495: else
496: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497: fi
498: fi
499: for ac_site_file in $CONFIG_SITE; do
500: if test -r "$ac_site_file"; then
501: echo "loading site script $ac_site_file"
502: . "$ac_site_file"
503: fi
504: done
505:
506: if test -r "$cache_file"; then
507: echo "loading cache $cache_file"
508: . $cache_file
509: else
510: echo "creating cache $cache_file"
511: > $cache_file
512: fi
513:
514: ac_ext=c
515: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516: ac_cpp='$CPP $CPPFLAGS'
517: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519: cross_compiling=$ac_cv_prog_cc_cross
520:
521: ac_exeext=
522: ac_objext=o
523: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526: ac_n= ac_c='
527: ' ac_t=' '
528: else
529: ac_n=-n ac_c= ac_t=
530: fi
531: else
532: ac_n= ac_c='\c' ac_t=
533: fi
534:
535:
536: ac_aux_dir=
537: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538: if test -f $ac_dir/install-sh; then
539: ac_aux_dir=$ac_dir
540: ac_install_sh="$ac_aux_dir/install-sh -c"
541: break
542: elif test -f $ac_dir/install.sh; then
543: ac_aux_dir=$ac_dir
544: ac_install_sh="$ac_aux_dir/install.sh -c"
545: break
546: fi
547: done
548: if test -z "$ac_aux_dir"; then
549: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550: fi
551: ac_config_guess=$ac_aux_dir/config.guess
552: ac_config_sub=$ac_aux_dir/config.sub
553: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554:
555: # Find a good install program. We prefer a C program (faster),
556: # so one script is as good as another. But avoid the broken or
557: # incompatible versions:
558: # SysV /etc/install, /usr/sbin/install
559: # SunOS /usr/etc/install
560: # IRIX /sbin/install
561: # AIX /bin/install
562: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565: # ./install, which can be erroneously created by make from ./install.sh.
566: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567: echo "configure:568: checking for a BSD compatible install" >&5
568: if test -z "$INSTALL"; then
569: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570: echo $ac_n "(cached) $ac_c" 1>&6
571: else
572: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
573: for ac_dir in $PATH; do
574: # Account for people who put trailing slashes in PATH elements.
575: case "$ac_dir/" in
576: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
577: *)
578: # OSF1 and SCO ODT 3.0 have their own names for install.
579: # Don't use installbsd from OSF since it installs stuff as root
580: # by default.
581: for ac_prog in ginstall scoinst install; do
582: if test -f $ac_dir/$ac_prog; then
583: if test $ac_prog = install &&
584: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585: # AIX install. It has an incompatible calling convention.
586: :
587: else
588: ac_cv_path_install="$ac_dir/$ac_prog -c"
589: break 2
590: fi
591: fi
592: done
593: ;;
594: esac
595: done
596: IFS="$ac_save_IFS"
597:
598: fi
599: if test "${ac_cv_path_install+set}" = set; then
600: INSTALL="$ac_cv_path_install"
601: else
602: # As a last resort, use the slow shell script. We don't cache a
603: # path for INSTALL within a source directory, because that will
604: # break other packages using the cache if that directory is
605: # removed, or if the path is relative.
606: INSTALL="$ac_install_sh"
607: fi
608: fi
609: echo "$ac_t""$INSTALL" 1>&6
610:
611: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612: # It thinks the first close brace ends the variable substitution.
613: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
614:
615: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616:
617: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
618:
619: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620: echo "configure:621: checking whether build environment is sane" >&5
621: # Just in case
622: sleep 1
623: echo timestamp > conftestfile
624: # Do `set' in a subshell so we don't clobber the current shell's
625: # arguments. Must try -L first in case configure is actually a
626: # symlink; some systems play weird games with the mod time of symlinks
627: # (eg FreeBSD returns the mod time of the symlink's containing
628: # directory).
629: if (
630: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631: if test "$*" = "X"; then
632: # -L didn't work.
633: set X `ls -t $srcdir/configure conftestfile`
634: fi
635: if test "$*" != "X $srcdir/configure conftestfile" \
636: && test "$*" != "X conftestfile $srcdir/configure"; then
637:
638: # If neither matched, then we have a broken ls. This can happen
639: # if, for instance, CONFIG_SHELL is bash and it inherits a
640: # broken ls alias from the environment. This has actually
641: # happened. Such a system could not be considered "sane".
642: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
643: alias in your environment" 1>&2; exit 1; }
644: fi
645:
646: test "$2" = conftestfile
647: )
648: then
649: # Ok.
650: :
651: else
652: { echo "configure: error: newly created file is older than distributed files!
653: Check your system clock" 1>&2; exit 1; }
654: fi
655: rm -f conftest*
656: echo "$ac_t""yes" 1>&6
657: if test "$program_transform_name" = s,x,x,; then
658: program_transform_name=
659: else
660: # Double any \ or $. echo might interpret backslashes.
661: cat <<\EOF_SED > conftestsed
662: s,\\,\\\\,g; s,\$,$$,g
663: EOF_SED
664: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
665: rm -f conftestsed
666: fi
667: test "$program_prefix" != NONE &&
668: program_transform_name="s,^,${program_prefix},; $program_transform_name"
669: # Use a double $ so make ignores it.
670: test "$program_suffix" != NONE &&
671: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
672:
673: # sed with no file args requires a program.
674: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
675:
676: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677: echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680: echo $ac_n "(cached) $ac_c" 1>&6
681: else
682: cat > conftestmake <<\EOF
683: all:
684: @echo 'ac_maketemp="${MAKE}"'
685: EOF
686: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688: if test -n "$ac_maketemp"; then
689: eval ac_cv_prog_make_${ac_make}_set=yes
690: else
691: eval ac_cv_prog_make_${ac_make}_set=no
692: fi
693: rm -f conftestmake
694: fi
695: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696: echo "$ac_t""yes" 1>&6
697: SET_MAKE=
698: else
699: echo "$ac_t""no" 1>&6
700: SET_MAKE="MAKE=${MAKE-make}"
701: fi
702:
703:
1.10 paf 704: PACKAGE=parser3mysql
1.1 parser 705:
1.13.2.1! paf 706: VERSION=3.0.0006
1.1 parser 707:
708: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
710: fi
711:
712:
713:
714: missing_dir=`cd $ac_aux_dir && pwd`
715: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
716: echo "configure:717: checking for working aclocal" >&5
717: # Run test in a subshell; some versions of sh will print an error if
718: # an executable is not found, even if stderr is redirected.
719: # Redirect stdin to placate older versions of autoconf. Sigh.
720: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
721: ACLOCAL=aclocal
722: echo "$ac_t""found" 1>&6
723: else
724: ACLOCAL="$missing_dir/missing aclocal"
725: echo "$ac_t""missing" 1>&6
726: fi
727:
728: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
729: echo "configure:730: checking for working autoconf" >&5
730: # Run test in a subshell; some versions of sh will print an error if
731: # an executable is not found, even if stderr is redirected.
732: # Redirect stdin to placate older versions of autoconf. Sigh.
733: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
734: AUTOCONF=autoconf
735: echo "$ac_t""found" 1>&6
736: else
737: AUTOCONF="$missing_dir/missing autoconf"
738: echo "$ac_t""missing" 1>&6
739: fi
740:
741: echo $ac_n "checking for working automake""... $ac_c" 1>&6
742: echo "configure:743: checking for working automake" >&5
743: # Run test in a subshell; some versions of sh will print an error if
744: # an executable is not found, even if stderr is redirected.
745: # Redirect stdin to placate older versions of autoconf. Sigh.
746: if (automake --version) < /dev/null > /dev/null 2>&1; then
747: AUTOMAKE=automake
748: echo "$ac_t""found" 1>&6
749: else
750: AUTOMAKE="$missing_dir/missing automake"
751: echo "$ac_t""missing" 1>&6
752: fi
753:
754: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
755: echo "configure:756: checking for working autoheader" >&5
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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
760: AUTOHEADER=autoheader
761: echo "$ac_t""found" 1>&6
762: else
763: AUTOHEADER="$missing_dir/missing autoheader"
764: echo "$ac_t""missing" 1>&6
765: fi
766:
767: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
768: echo "configure:769: checking for working makeinfo" >&5
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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
773: MAKEINFO=makeinfo
774: echo "$ac_t""found" 1>&6
775: else
776: MAKEINFO="$missing_dir/missing makeinfo"
777: echo "$ac_t""missing" 1>&6
778: fi
779:
780:
781:
782:
783:
784:
785:
786:
1.8 paf 787:
788:
789:
790:
1.4 paf 791: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 792: if test "${with_mysql_inc+set}" = set; then
793: withval="$with_mysql_inc"
1.8 paf 794:
795: if test -r "$withval/mysql.h"; then
796: MYSQL_INC=$withval
797: fi
798:
799:
800: if test -z "$MYSQL_INC"; then
801: { echo "configure: error: $MYSQL_INC does not seem to be valid MySQL includes directory" 1>&2; exit 1; }
802: fi
803:
1.1 parser 804: else
1.8 paf 805: echo $ac_n "checking for MYSQL_INC directory""... $ac_c" 1>&6
806: echo "configure:807: checking for MYSQL_INC directory" >&5
807: for d in \
808: /usr/local/include/mysql \
809: /usr/include/mysql ; do
810:
811: if test -r "$d/mysql.h"; then
812: MYSQL_INC=$d
813: fi
814:
815: done
816:
817: if test -z "$MYSQL_INC"; then
818: { echo "configure: error: use --with-mysql-inc=DIR to specify MySQL includes directory" 1>&2; exit 1; }
819: fi
820:
821: echo "$ac_t""$MYSQL_INC" 1>&6
1.1 parser 822:
823: fi
824:
1.3 parser 825:
1.1 parser 826:
827:
1.3 parser 828:
1.1 parser 829:
830: # Find a good install program. We prefer a C program (faster),
831: # so one script is as good as another. But avoid the broken or
832: # incompatible versions:
833: # SysV /etc/install, /usr/sbin/install
834: # SunOS /usr/etc/install
835: # IRIX /sbin/install
836: # AIX /bin/install
837: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
838: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
839: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
840: # ./install, which can be erroneously created by make from ./install.sh.
841: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.8 paf 842: echo "configure:843: checking for a BSD compatible install" >&5
1.1 parser 843: if test -z "$INSTALL"; then
844: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
845: echo $ac_n "(cached) $ac_c" 1>&6
846: else
847: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
848: for ac_dir in $PATH; do
849: # Account for people who put trailing slashes in PATH elements.
850: case "$ac_dir/" in
851: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
852: *)
853: # OSF1 and SCO ODT 3.0 have their own names for install.
854: # Don't use installbsd from OSF since it installs stuff as root
855: # by default.
856: for ac_prog in ginstall scoinst install; do
857: if test -f $ac_dir/$ac_prog; then
858: if test $ac_prog = install &&
859: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
860: # AIX install. It has an incompatible calling convention.
861: :
862: else
863: ac_cv_path_install="$ac_dir/$ac_prog -c"
864: break 2
865: fi
866: fi
867: done
868: ;;
869: esac
870: done
871: IFS="$ac_save_IFS"
872:
873: fi
874: if test "${ac_cv_path_install+set}" = set; then
875: INSTALL="$ac_cv_path_install"
876: else
877: # As a last resort, use the slow shell script. We don't cache a
878: # path for INSTALL within a source directory, because that will
879: # break other packages using the cache if that directory is
880: # removed, or if the path is relative.
881: INSTALL="$ac_install_sh"
882: fi
883: fi
884: echo "$ac_t""$INSTALL" 1>&6
885:
886: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
887: # It thinks the first close brace ends the variable substitution.
888: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
889:
890: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
891:
892: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
893:
894: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.8 paf 895: echo "configure:896: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 parser 896: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
897: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
898: echo $ac_n "(cached) $ac_c" 1>&6
899: else
900: cat > conftestmake <<\EOF
901: all:
902: @echo 'ac_maketemp="${MAKE}"'
903: EOF
904: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
905: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
906: if test -n "$ac_maketemp"; then
907: eval ac_cv_prog_make_${ac_make}_set=yes
908: else
909: eval ac_cv_prog_make_${ac_make}_set=no
910: fi
911: rm -f conftestmake
912: fi
913: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
914: echo "$ac_t""yes" 1>&6
915: SET_MAKE=
916: else
917: echo "$ac_t""no" 1>&6
918: SET_MAKE="MAKE=${MAKE-make}"
919: fi
920:
1.7 paf 921: for ac_prog in mawk gawk nawk awk
1.1 parser 922: do
923: # Extract the first word of "$ac_prog", so it can be a program name with args.
924: set dummy $ac_prog; ac_word=$2
925: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.8 paf 926: echo "configure:927: checking for $ac_word" >&5
1.1 parser 927: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
928: echo $ac_n "(cached) $ac_c" 1>&6
929: else
930: if test -n "$AWK"; then
931: ac_cv_prog_AWK="$AWK" # Let the user override the test.
932: else
933: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
934: ac_dummy="$PATH"
935: for ac_dir in $ac_dummy; do
936: test -z "$ac_dir" && ac_dir=.
937: if test -f $ac_dir/$ac_word; then
938: ac_cv_prog_AWK="$ac_prog"
939: break
940: fi
941: done
942: IFS="$ac_save_ifs"
943: fi
944: fi
945: AWK="$ac_cv_prog_AWK"
946: if test -n "$AWK"; then
947: echo "$ac_t""$AWK" 1>&6
948: else
949: echo "$ac_t""no" 1>&6
950: fi
951:
952: test -n "$AWK" && break
953: done
954:
955:
956: ac_ext=C
957: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958: ac_cpp='$CXXCPP $CPPFLAGS'
959: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961: cross_compiling=$ac_cv_prog_cxx_cross
962:
963: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
964: do
965: # Extract the first word of "$ac_prog", so it can be a program name with args.
966: set dummy $ac_prog; ac_word=$2
967: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.8 paf 968: echo "configure:969: checking for $ac_word" >&5
1.1 parser 969: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
970: echo $ac_n "(cached) $ac_c" 1>&6
971: else
972: if test -n "$CXX"; then
973: ac_cv_prog_CXX="$CXX" # Let the user override the test.
974: else
975: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
976: ac_dummy="$PATH"
977: for ac_dir in $ac_dummy; do
978: test -z "$ac_dir" && ac_dir=.
979: if test -f $ac_dir/$ac_word; then
980: ac_cv_prog_CXX="$ac_prog"
981: break
982: fi
983: done
984: IFS="$ac_save_ifs"
985: fi
986: fi
987: CXX="$ac_cv_prog_CXX"
988: if test -n "$CXX"; then
989: echo "$ac_t""$CXX" 1>&6
990: else
991: echo "$ac_t""no" 1>&6
992: fi
993:
994: test -n "$CXX" && break
995: done
996: test -n "$CXX" || CXX="gcc"
997:
998:
999: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.8 paf 1000: echo "configure:1001: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1 parser 1001:
1002: ac_ext=C
1003: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1004: ac_cpp='$CXXCPP $CPPFLAGS'
1005: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1006: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1007: cross_compiling=$ac_cv_prog_cxx_cross
1008:
1009: cat > conftest.$ac_ext << EOF
1010:
1.8 paf 1011: #line 1012 "configure"
1.1 parser 1012: #include "confdefs.h"
1013:
1014: int main(){return(0);}
1015: EOF
1.8 paf 1016: if { (eval echo configure:1017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1017: ac_cv_prog_cxx_works=yes
1018: # If we can't run a trivial program, we are probably using a cross compiler.
1019: if (./conftest; exit) 2>/dev/null; then
1020: ac_cv_prog_cxx_cross=no
1021: else
1022: ac_cv_prog_cxx_cross=yes
1023: fi
1024: else
1025: echo "configure: failed program was:" >&5
1026: cat conftest.$ac_ext >&5
1027: ac_cv_prog_cxx_works=no
1028: fi
1029: rm -fr conftest*
1030: ac_ext=C
1031: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1032: ac_cpp='$CXXCPP $CPPFLAGS'
1033: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1034: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1035: cross_compiling=$ac_cv_prog_cxx_cross
1036:
1037: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1038: if test $ac_cv_prog_cxx_works = no; then
1039: { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1040: fi
1041: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.8 paf 1042: echo "configure:1043: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 parser 1043: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1044: cross_compiling=$ac_cv_prog_cxx_cross
1045:
1046: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.8 paf 1047: echo "configure:1048: checking whether we are using GNU C++" >&5
1.1 parser 1048: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1049: echo $ac_n "(cached) $ac_c" 1>&6
1050: else
1051: cat > conftest.C <<EOF
1052: #ifdef __GNUC__
1053: yes;
1054: #endif
1055: EOF
1.8 paf 1056: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 parser 1057: ac_cv_prog_gxx=yes
1058: else
1059: ac_cv_prog_gxx=no
1060: fi
1061: fi
1062:
1063: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1064:
1065: if test $ac_cv_prog_gxx = yes; then
1066: GXX=yes
1067: else
1068: GXX=
1069: fi
1070:
1071: ac_test_CXXFLAGS="${CXXFLAGS+set}"
1072: ac_save_CXXFLAGS="$CXXFLAGS"
1073: CXXFLAGS=
1074: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.8 paf 1075: echo "configure:1076: checking whether ${CXX-g++} accepts -g" >&5
1.1 parser 1076: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1077: echo $ac_n "(cached) $ac_c" 1>&6
1078: else
1079: echo 'void f(){}' > conftest.cc
1080: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1081: ac_cv_prog_cxx_g=yes
1082: else
1083: ac_cv_prog_cxx_g=no
1084: fi
1085: rm -f conftest*
1086:
1087: fi
1088:
1089: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1090: if test "$ac_test_CXXFLAGS" = set; then
1091: CXXFLAGS="$ac_save_CXXFLAGS"
1092: elif test $ac_cv_prog_cxx_g = yes; then
1093: if test "$GXX" = yes; then
1094: CXXFLAGS="-g -O2"
1095: else
1096: CXXFLAGS="-g"
1097: fi
1098: else
1099: if test "$GXX" = yes; then
1100: CXXFLAGS="-O2"
1101: else
1102: CXXFLAGS=
1103: fi
1104: fi
1105:
1106:
1107: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1108: INCLTDL='-I${top_srcdir}/''libltdl'
1109:
1110:
1111:
1112:
1113:
1.9 paf 1114: # Check whether --enable-static or --disable-static was given.
1115: if test "${enable_static+set}" = set; then
1116: enableval="$enable_static"
1.1 parser 1117: p=${PACKAGE-default}
1118: case "$enableval" in
1.9 paf 1119: yes) enable_static=yes ;;
1120: no) enable_static=no ;;
1.1 parser 1121: *)
1.9 paf 1122: enable_static=no
1.1 parser 1123: # Look at the argument we got. We use all the common list separators.
1124: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1125: for pkg in $enableval; do
1126: if test "X$pkg" = "X$p"; then
1.9 paf 1127: enable_static=yes
1.1 parser 1128: fi
1129: done
1130: IFS="$ac_save_ifs"
1131: ;;
1132: esac
1133: else
1.9 paf 1134: enable_static=no
1.1 parser 1135: fi
1136:
1.11 paf 1137:
1.9 paf 1138: # Check whether --enable-shared or --disable-shared was given.
1139: if test "${enable_shared+set}" = set; then
1140: enableval="$enable_shared"
1.1 parser 1141: p=${PACKAGE-default}
1142: case "$enableval" in
1.9 paf 1143: yes) enable_shared=yes ;;
1144: no) enable_shared=no ;;
1.1 parser 1145: *)
1.9 paf 1146: enable_shared=no
1.1 parser 1147: # Look at the argument we got. We use all the common list separators.
1148: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1149: for pkg in $enableval; do
1150: if test "X$pkg" = "X$p"; then
1.9 paf 1151: enable_shared=yes
1.1 parser 1152: fi
1153: done
1154: IFS="$ac_save_ifs"
1155: ;;
1156: esac
1157: else
1.9 paf 1158: enable_shared=yes
1.1 parser 1159: fi
1160:
1161: # Check whether --enable-fast-install or --disable-fast-install was given.
1162: if test "${enable_fast_install+set}" = set; then
1163: enableval="$enable_fast_install"
1164: p=${PACKAGE-default}
1165: case "$enableval" in
1166: yes) enable_fast_install=yes ;;
1167: no) enable_fast_install=no ;;
1168: *)
1169: enable_fast_install=no
1170: # Look at the argument we got. We use all the common list separators.
1171: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1172: for pkg in $enableval; do
1173: if test "X$pkg" = "X$p"; then
1174: enable_fast_install=yes
1175: fi
1176: done
1177: IFS="$ac_save_ifs"
1178: ;;
1179: esac
1180: else
1181: enable_fast_install=yes
1182: fi
1183:
1184:
1185: # Make sure we can run config.sub.
1186: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1187: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1188: fi
1189:
1190: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.11 paf 1191: echo "configure:1192: checking host system type" >&5
1.1 parser 1192:
1193: host_alias=$host
1194: case "$host_alias" in
1195: NONE)
1196: case $nonopt in
1197: NONE)
1198: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1199: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1200: fi ;;
1201: *) host_alias=$nonopt ;;
1202: esac ;;
1203: esac
1204:
1205: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1206: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1207: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1208: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1209: echo "$ac_t""$host" 1>&6
1210:
1211: echo $ac_n "checking build system type""... $ac_c" 1>&6
1.11 paf 1212: echo "configure:1213: checking build system type" >&5
1.1 parser 1213:
1214: build_alias=$build
1215: case "$build_alias" in
1216: NONE)
1217: case $nonopt in
1218: NONE) build_alias=$host_alias ;;
1219: *) build_alias=$nonopt ;;
1220: esac ;;
1221: esac
1222:
1223: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1224: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1225: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1226: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1227: echo "$ac_t""$build" 1>&6
1228:
1229: # Extract the first word of "ranlib", so it can be a program name with args.
1230: set dummy ranlib; ac_word=$2
1231: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.11 paf 1232: echo "configure:1233: checking for $ac_word" >&5
1.1 parser 1233: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1234: echo $ac_n "(cached) $ac_c" 1>&6
1235: else
1236: if test -n "$RANLIB"; then
1237: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1238: else
1239: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240: ac_dummy="$PATH"
1241: for ac_dir in $ac_dummy; do
1242: test -z "$ac_dir" && ac_dir=.
1243: if test -f $ac_dir/$ac_word; then
1244: ac_cv_prog_RANLIB="ranlib"
1245: break
1246: fi
1247: done
1248: IFS="$ac_save_ifs"
1249: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1250: fi
1251: fi
1252: RANLIB="$ac_cv_prog_RANLIB"
1253: if test -n "$RANLIB"; then
1254: echo "$ac_t""$RANLIB" 1>&6
1255: else
1256: echo "$ac_t""no" 1>&6
1257: fi
1258:
1259: # Extract the first word of "gcc", so it can be a program name with args.
1260: set dummy gcc; ac_word=$2
1261: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.11 paf 1262: echo "configure:1263: checking for $ac_word" >&5
1.1 parser 1263: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1264: echo $ac_n "(cached) $ac_c" 1>&6
1265: else
1266: if test -n "$CC"; then
1267: ac_cv_prog_CC="$CC" # Let the user override the test.
1268: else
1269: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1270: ac_dummy="$PATH"
1271: for ac_dir in $ac_dummy; do
1272: test -z "$ac_dir" && ac_dir=.
1273: if test -f $ac_dir/$ac_word; then
1274: ac_cv_prog_CC="gcc"
1275: break
1276: fi
1277: done
1278: IFS="$ac_save_ifs"
1279: fi
1280: fi
1281: CC="$ac_cv_prog_CC"
1282: if test -n "$CC"; then
1283: echo "$ac_t""$CC" 1>&6
1284: else
1285: echo "$ac_t""no" 1>&6
1286: fi
1287:
1288: if test -z "$CC"; then
1289: # Extract the first word of "cc", so it can be a program name with args.
1290: set dummy cc; ac_word=$2
1291: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.11 paf 1292: echo "configure:1293: checking for $ac_word" >&5
1.1 parser 1293: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1294: echo $ac_n "(cached) $ac_c" 1>&6
1295: else
1296: if test -n "$CC"; then
1297: ac_cv_prog_CC="$CC" # Let the user override the test.
1298: else
1299: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1300: ac_prog_rejected=no
1301: ac_dummy="$PATH"
1302: for ac_dir in $ac_dummy; do
1303: test -z "$ac_dir" && ac_dir=.
1304: if test -f $ac_dir/$ac_word; then
1305: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1306: ac_prog_rejected=yes
1307: continue
1308: fi
1309: ac_cv_prog_CC="cc"
1310: break
1311: fi
1312: done
1313: IFS="$ac_save_ifs"
1314: if test $ac_prog_rejected = yes; then
1315: # We found a bogon in the path, so make sure we never use it.
1316: set dummy $ac_cv_prog_CC
1317: shift
1318: if test $# -gt 0; then
1319: # We chose a different compiler from the bogus one.
1320: # However, it has the same basename, so the bogon will be chosen
1321: # first if we set CC to just the basename; use the full file name.
1322: shift
1323: set dummy "$ac_dir/$ac_word" "$@"
1324: shift
1325: ac_cv_prog_CC="$@"
1326: fi
1327: fi
1328: fi
1329: fi
1330: CC="$ac_cv_prog_CC"
1331: if test -n "$CC"; then
1332: echo "$ac_t""$CC" 1>&6
1333: else
1334: echo "$ac_t""no" 1>&6
1335: fi
1336:
1337: if test -z "$CC"; then
1338: case "`uname -s`" in
1339: *win32* | *WIN32*)
1340: # Extract the first word of "cl", so it can be a program name with args.
1341: set dummy cl; ac_word=$2
1342: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.11 paf 1343: echo "configure:1344: checking for $ac_word" >&5
1.1 parser 1344: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1345: echo $ac_n "(cached) $ac_c" 1>&6
1346: else
1347: if test -n "$CC"; then
1348: ac_cv_prog_CC="$CC" # Let the user override the test.
1349: else
1350: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351: ac_dummy="$PATH"
1352: for ac_dir in $ac_dummy; do
1353: test -z "$ac_dir" && ac_dir=.
1354: if test -f $ac_dir/$ac_word; then
1355: ac_cv_prog_CC="cl"
1356: break
1357: fi
1358: done
1359: IFS="$ac_save_ifs"
1360: fi
1361: fi
1362: CC="$ac_cv_prog_CC"
1363: if test -n "$CC"; then
1364: echo "$ac_t""$CC" 1>&6
1365: else
1366: echo "$ac_t""no" 1>&6
1367: fi
1368: ;;
1369: esac
1370: fi
1371: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1372: fi
1373:
1374: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.11 paf 1375: echo "configure:1376: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 parser 1376:
1377: ac_ext=c
1378: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1379: ac_cpp='$CPP $CPPFLAGS'
1380: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1381: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1382: cross_compiling=$ac_cv_prog_cc_cross
1383:
1384: cat > conftest.$ac_ext << EOF
1385:
1.11 paf 1386: #line 1387 "configure"
1.1 parser 1387: #include "confdefs.h"
1388:
1389: main(){return(0);}
1390: EOF
1.11 paf 1391: if { (eval echo configure:1392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1392: ac_cv_prog_cc_works=yes
1393: # If we can't run a trivial program, we are probably using a cross compiler.
1394: if (./conftest; exit) 2>/dev/null; then
1395: ac_cv_prog_cc_cross=no
1396: else
1397: ac_cv_prog_cc_cross=yes
1398: fi
1399: else
1400: echo "configure: failed program was:" >&5
1401: cat conftest.$ac_ext >&5
1402: ac_cv_prog_cc_works=no
1403: fi
1404: rm -fr conftest*
1405: ac_ext=C
1406: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1407: ac_cpp='$CXXCPP $CPPFLAGS'
1408: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1409: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1410: cross_compiling=$ac_cv_prog_cxx_cross
1411:
1412: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1413: if test $ac_cv_prog_cc_works = no; then
1414: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1415: fi
1416: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.11 paf 1417: echo "configure:1418: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 parser 1418: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1419: cross_compiling=$ac_cv_prog_cc_cross
1420:
1421: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.11 paf 1422: echo "configure:1423: checking whether we are using GNU C" >&5
1.1 parser 1423: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1424: echo $ac_n "(cached) $ac_c" 1>&6
1425: else
1426: cat > conftest.c <<EOF
1427: #ifdef __GNUC__
1428: yes;
1429: #endif
1430: EOF
1.11 paf 1431: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 parser 1432: ac_cv_prog_gcc=yes
1433: else
1434: ac_cv_prog_gcc=no
1435: fi
1436: fi
1437:
1438: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1439:
1440: if test $ac_cv_prog_gcc = yes; then
1441: GCC=yes
1442: else
1443: GCC=
1444: fi
1445:
1446: ac_test_CFLAGS="${CFLAGS+set}"
1447: ac_save_CFLAGS="$CFLAGS"
1448: CFLAGS=
1449: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.11 paf 1450: echo "configure:1451: checking whether ${CC-cc} accepts -g" >&5
1.1 parser 1451: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1452: echo $ac_n "(cached) $ac_c" 1>&6
1453: else
1454: echo 'void f(){}' > conftest.c
1455: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1456: ac_cv_prog_cc_g=yes
1457: else
1458: ac_cv_prog_cc_g=no
1459: fi
1460: rm -f conftest*
1461:
1462: fi
1463:
1464: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1465: if test "$ac_test_CFLAGS" = set; then
1466: CFLAGS="$ac_save_CFLAGS"
1467: elif test $ac_cv_prog_cc_g = yes; then
1468: if test "$GCC" = yes; then
1469: CFLAGS="-g -O2"
1470: else
1471: CFLAGS="-g"
1472: fi
1473: else
1474: if test "$GCC" = yes; then
1475: CFLAGS="-O2"
1476: else
1477: CFLAGS=
1478: fi
1479: fi
1480:
1481: # Check whether --with-gnu-ld or --without-gnu-ld was given.
1482: if test "${with_gnu_ld+set}" = set; then
1483: withval="$with_gnu_ld"
1484: test "$withval" = no || with_gnu_ld=yes
1485: else
1486: with_gnu_ld=no
1487: fi
1488:
1489: ac_prog=ld
1490: if test "$ac_cv_prog_gcc" = yes; then
1491: # Check if gcc -print-prog-name=ld gives a path.
1492: echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.11 paf 1493: echo "configure:1494: checking for ld used by GCC" >&5
1.1 parser 1494: ac_prog=`($CC -print-prog-name=ld) 2>&5`
1495: case "$ac_prog" in
1496: # Accept absolute paths.
1497: [\\/]* | [A-Za-z]:[\\/]*)
1498: re_direlt='/[^/][^/]*/\.\./'
1499: # Canonicalize the path of ld
1500: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1501: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1502: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1503: done
1504: test -z "$LD" && LD="$ac_prog"
1505: ;;
1506: "")
1507: # If it fails, then pretend we aren't using GCC.
1508: ac_prog=ld
1509: ;;
1510: *)
1511: # If it is relative, then search for the first ld in PATH.
1512: with_gnu_ld=unknown
1513: ;;
1514: esac
1515: elif test "$with_gnu_ld" = yes; then
1516: echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.11 paf 1517: echo "configure:1518: checking for GNU ld" >&5
1.1 parser 1518: else
1519: echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.11 paf 1520: echo "configure:1521: checking for non-GNU ld" >&5
1.1 parser 1521: fi
1522: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1523: echo $ac_n "(cached) $ac_c" 1>&6
1524: else
1525: if test -z "$LD"; then
1526: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1527: for ac_dir in $PATH; do
1528: test -z "$ac_dir" && ac_dir=.
1529: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1530: ac_cv_path_LD="$ac_dir/$ac_prog"
1531: # Check to see if the program is GNU ld. I'd rather use --version,
1532: # but apparently some GNU ld's only accept -v.
1533: # Break only if it was the GNU/non-GNU ld that we prefer.
1534: if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1535: test "$with_gnu_ld" != no && break
1536: else
1537: test "$with_gnu_ld" != yes && break
1538: fi
1539: fi
1540: done
1541: IFS="$ac_save_ifs"
1542: else
1543: ac_cv_path_LD="$LD" # Let the user override the test with a path.
1544: fi
1545: fi
1546:
1547: LD="$ac_cv_path_LD"
1548: if test -n "$LD"; then
1549: echo "$ac_t""$LD" 1>&6
1550: else
1551: echo "$ac_t""no" 1>&6
1552: fi
1553: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1554: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.11 paf 1555: echo "configure:1556: checking if the linker ($LD) is GNU ld" >&5
1.1 parser 1556: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1557: echo $ac_n "(cached) $ac_c" 1>&6
1558: else
1559: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1560: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1561: ac_cv_prog_gnu_ld=yes
1562: else
1563: ac_cv_prog_gnu_ld=no
1564: fi
1565: fi
1566:
1567: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1568:
1569:
1570: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1.11 paf 1571: echo "configure:1572: checking for BSD-compatible nm" >&5
1.1 parser 1572: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1573: echo $ac_n "(cached) $ac_c" 1>&6
1574: else
1575: if test -n "$NM"; then
1576: # Let the user override the test.
1577: ac_cv_path_NM="$NM"
1578: else
1579: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1580: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1581: test -z "$ac_dir" && ac_dir=.
1582: if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1583: # Check to see if the nm accepts a BSD-compat flag.
1584: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1585: # nm: unknown option "B" ignored
1586: if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1587: ac_cv_path_NM="$ac_dir/nm -B"
1588: break
1589: elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1590: ac_cv_path_NM="$ac_dir/nm -p"
1591: break
1592: else
1593: ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1594: continue # so that we can try to find one that supports BSD flags
1595: fi
1596: fi
1597: done
1598: IFS="$ac_save_ifs"
1599: test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1600: fi
1601: fi
1602:
1603: NM="$ac_cv_path_NM"
1604: echo "$ac_t""$NM" 1>&6
1605:
1606: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.11 paf 1607: echo "configure:1608: checking whether ln -s works" >&5
1.1 parser 1608: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1609: echo $ac_n "(cached) $ac_c" 1>&6
1610: else
1611: rm -f conftestdata
1612: if ln -s X conftestdata 2>/dev/null
1613: then
1614: rm -f conftestdata
1615: ac_cv_prog_LN_S="ln -s"
1616: else
1617: ac_cv_prog_LN_S=ln
1618: fi
1619: fi
1620: LN_S="$ac_cv_prog_LN_S"
1621: if test "$ac_cv_prog_LN_S" = "ln -s"; then
1622: echo "$ac_t""yes" 1>&6
1623: else
1624: echo "$ac_t""no" 1>&6
1625: fi
1626:
1.11 paf 1627: if test $host != $build; then
1628: ac_tool_prefix=${host_alias}-
1629: else
1630: ac_tool_prefix=
1631: fi
1632:
1.1 parser 1633:
1634: case "$target" in
1635: NONE) lt_target="$host" ;;
1636: *) lt_target="$target" ;;
1637: esac
1638:
1639: # Check for any special flags to pass to ltconfig.
1640: libtool_flags="--cache-file=$cache_file"
1641: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1642: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1643: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1644: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1645: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1646: libtool_flags="$libtool_flags --enable-dlopen"
1.11 paf 1647: libtool_flags="$libtool_flags --enable-win32-dll"
1.1 parser 1648: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1649: if test "${enable_libtool_lock+set}" = set; then
1650: enableval="$enable_libtool_lock"
1651: :
1652: fi
1653:
1654: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1655: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1656:
1657: # Some flags need to be propagated to the compiler or linker for good
1658: # libtool support.
1659: case "$lt_target" in
1660: *-*-irix6*)
1661: # Find out which ABI we are using.
1.11 paf 1662: echo '#line 1663 "configure"' > conftest.$ac_ext
1663: if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 parser 1664: case "`/usr/bin/file conftest.o`" in
1665: *32-bit*)
1666: LD="${LD-ld} -32"
1667: ;;
1668: *N32*)
1669: LD="${LD-ld} -n32"
1670: ;;
1671: *64-bit*)
1672: LD="${LD-ld} -64"
1673: ;;
1674: esac
1675: fi
1676: rm -rf conftest*
1677: ;;
1678:
1679: *-*-sco3.2v5*)
1680: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1681: SAVE_CFLAGS="$CFLAGS"
1682: CFLAGS="$CFLAGS -belf"
1683: echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1.11 paf 1684: echo "configure:1685: checking whether the C compiler needs -belf" >&5
1.1 parser 1685: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1686: echo $ac_n "(cached) $ac_c" 1>&6
1687: else
1688: cat > conftest.$ac_ext <<EOF
1.11 paf 1689: #line 1690 "configure"
1.1 parser 1690: #include "confdefs.h"
1691:
1692: int main() {
1693:
1694: ; return 0; }
1695: EOF
1.11 paf 1696: if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 parser 1697: rm -rf conftest*
1698: lt_cv_cc_needs_belf=yes
1699: else
1700: echo "configure: failed program was:" >&5
1701: cat conftest.$ac_ext >&5
1702: rm -rf conftest*
1703: lt_cv_cc_needs_belf=no
1704: fi
1705: rm -f conftest*
1706: fi
1707:
1708: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1709: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1710: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1711: CFLAGS="$SAVE_CFLAGS"
1712: fi
1713: ;;
1714:
1.11 paf 1715: *-*-cygwin* | *-*-mingw*)
1716: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1717: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1718: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1719: echo "configure:1720: checking for $ac_word" >&5
1720: if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1721: echo $ac_n "(cached) $ac_c" 1>&6
1722: else
1723: if test -n "$DLLTOOL"; then
1724: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1725: else
1726: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1727: ac_dummy="$PATH"
1728: for ac_dir in $ac_dummy; do
1729: test -z "$ac_dir" && ac_dir=.
1730: if test -f $ac_dir/$ac_word; then
1731: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1732: break
1733: fi
1734: done
1735: IFS="$ac_save_ifs"
1736: fi
1737: fi
1738: DLLTOOL="$ac_cv_prog_DLLTOOL"
1739: if test -n "$DLLTOOL"; then
1740: echo "$ac_t""$DLLTOOL" 1>&6
1741: else
1742: echo "$ac_t""no" 1>&6
1743: fi
1744:
1745:
1746: if test -z "$ac_cv_prog_DLLTOOL"; then
1747: if test -n "$ac_tool_prefix"; then
1748: # Extract the first word of "dlltool", so it can be a program name with args.
1749: set dummy dlltool; ac_word=$2
1750: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751: echo "configure:1752: checking for $ac_word" >&5
1752: if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1753: echo $ac_n "(cached) $ac_c" 1>&6
1754: else
1755: if test -n "$DLLTOOL"; then
1756: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1757: else
1758: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1759: ac_dummy="$PATH"
1760: for ac_dir in $ac_dummy; do
1761: test -z "$ac_dir" && ac_dir=.
1762: if test -f $ac_dir/$ac_word; then
1763: ac_cv_prog_DLLTOOL="dlltool"
1764: break
1765: fi
1766: done
1767: IFS="$ac_save_ifs"
1768: test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1769: fi
1770: fi
1771: DLLTOOL="$ac_cv_prog_DLLTOOL"
1772: if test -n "$DLLTOOL"; then
1773: echo "$ac_t""$DLLTOOL" 1>&6
1774: else
1775: echo "$ac_t""no" 1>&6
1776: fi
1777:
1778: else
1779: DLLTOOL="false"
1780: fi
1781: fi
1782:
1783: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1784: set dummy ${ac_tool_prefix}as; ac_word=$2
1785: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1786: echo "configure:1787: checking for $ac_word" >&5
1787: if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1788: echo $ac_n "(cached) $ac_c" 1>&6
1789: else
1790: if test -n "$AS"; then
1791: ac_cv_prog_AS="$AS" # Let the user override the test.
1792: else
1793: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1794: ac_dummy="$PATH"
1795: for ac_dir in $ac_dummy; do
1796: test -z "$ac_dir" && ac_dir=.
1797: if test -f $ac_dir/$ac_word; then
1798: ac_cv_prog_AS="${ac_tool_prefix}as"
1799: break
1800: fi
1801: done
1802: IFS="$ac_save_ifs"
1803: fi
1804: fi
1805: AS="$ac_cv_prog_AS"
1806: if test -n "$AS"; then
1807: echo "$ac_t""$AS" 1>&6
1808: else
1809: echo "$ac_t""no" 1>&6
1810: fi
1811:
1812:
1813: if test -z "$ac_cv_prog_AS"; then
1814: if test -n "$ac_tool_prefix"; then
1815: # Extract the first word of "as", so it can be a program name with args.
1816: set dummy as; ac_word=$2
1817: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1818: echo "configure:1819: checking for $ac_word" >&5
1819: if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1820: echo $ac_n "(cached) $ac_c" 1>&6
1821: else
1822: if test -n "$AS"; then
1823: ac_cv_prog_AS="$AS" # Let the user override the test.
1824: else
1825: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1826: ac_dummy="$PATH"
1827: for ac_dir in $ac_dummy; do
1828: test -z "$ac_dir" && ac_dir=.
1829: if test -f $ac_dir/$ac_word; then
1830: ac_cv_prog_AS="as"
1831: break
1832: fi
1833: done
1834: IFS="$ac_save_ifs"
1835: test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1836: fi
1837: fi
1838: AS="$ac_cv_prog_AS"
1839: if test -n "$AS"; then
1840: echo "$ac_t""$AS" 1>&6
1841: else
1842: echo "$ac_t""no" 1>&6
1843: fi
1844:
1845: else
1846: AS="false"
1847: fi
1848: fi
1849:
1850: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1851: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1852: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853: echo "configure:1854: checking for $ac_word" >&5
1854: if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1855: echo $ac_n "(cached) $ac_c" 1>&6
1856: else
1857: if test -n "$OBJDUMP"; then
1858: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1859: else
1860: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861: ac_dummy="$PATH"
1862: for ac_dir in $ac_dummy; do
1863: test -z "$ac_dir" && ac_dir=.
1864: if test -f $ac_dir/$ac_word; then
1865: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1866: break
1867: fi
1868: done
1869: IFS="$ac_save_ifs"
1870: fi
1871: fi
1872: OBJDUMP="$ac_cv_prog_OBJDUMP"
1873: if test -n "$OBJDUMP"; then
1874: echo "$ac_t""$OBJDUMP" 1>&6
1875: else
1876: echo "$ac_t""no" 1>&6
1877: fi
1878:
1879:
1880: if test -z "$ac_cv_prog_OBJDUMP"; then
1881: if test -n "$ac_tool_prefix"; then
1882: # Extract the first word of "objdump", so it can be a program name with args.
1883: set dummy objdump; ac_word=$2
1884: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885: echo "configure:1886: checking for $ac_word" >&5
1886: if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1887: echo $ac_n "(cached) $ac_c" 1>&6
1888: else
1889: if test -n "$OBJDUMP"; then
1890: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1891: else
1892: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1893: ac_dummy="$PATH"
1894: for ac_dir in $ac_dummy; do
1895: test -z "$ac_dir" && ac_dir=.
1896: if test -f $ac_dir/$ac_word; then
1897: ac_cv_prog_OBJDUMP="objdump"
1898: break
1899: fi
1900: done
1901: IFS="$ac_save_ifs"
1902: test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1903: fi
1904: fi
1905: OBJDUMP="$ac_cv_prog_OBJDUMP"
1906: if test -n "$OBJDUMP"; then
1907: echo "$ac_t""$OBJDUMP" 1>&6
1908: else
1909: echo "$ac_t""no" 1>&6
1910: fi
1911:
1912: else
1913: OBJDUMP="false"
1914: fi
1915: fi
1916:
1917: ;;
1.1 parser 1918:
1919: esac
1920:
1921:
1922: # Save cache, so that ltconfig can load it
1923: cat > confcache <<\EOF
1924: # This file is a shell script that caches the results of configure
1925: # tests run on this system so they can be shared between configure
1926: # scripts and configure runs. It is not useful on other systems.
1927: # If it contains results you don't want to keep, you may remove or edit it.
1928: #
1929: # By default, configure uses ./config.cache as the cache file,
1930: # creating it if it does not exist already. You can give configure
1931: # the --cache-file=FILE option to use a different cache file; that is
1932: # what configure does when it calls configure scripts in
1933: # subdirectories, so they share the cache.
1934: # Giving --cache-file=/dev/null disables caching, for debugging configure.
1935: # config.status only pays attention to the cache file if you give it the
1936: # --recheck option to rerun configure.
1937: #
1938: EOF
1939: # The following way of writing the cache mishandles newlines in values,
1940: # but we know of no workaround that is simple, portable, and efficient.
1941: # So, don't put newlines in cache variables' values.
1942: # Ultrix sh set writes to stderr and can't be redirected directly,
1943: # and sets the high bit in the cache file unless we assign to the vars.
1944: (set) 2>&1 |
1945: case `(ac_space=' '; set | grep ac_space) 2>&1` in
1946: *ac_space=\ *)
1947: # `set' does not quote correctly, so add quotes (double-quote substitution
1948: # turns \\\\ into \\, and sed turns \\ into \).
1949: sed -n \
1950: -e "s/'/'\\\\''/g" \
1951: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1952: ;;
1953: *)
1954: # `set' quotes correctly as required by POSIX, so do not add quotes.
1955: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1956: ;;
1957: esac >> confcache
1958: if cmp -s $cache_file confcache; then
1959: :
1960: else
1961: if test -w $cache_file; then
1962: echo "updating cache $cache_file"
1963: cat confcache > $cache_file
1964: else
1965: echo "not updating unwritable cache $cache_file"
1966: fi
1967: fi
1968: rm -f confcache
1969:
1970:
1971: # Actually configure libtool. ac_aux_dir is where install-sh is found.
1972: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1973: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1974: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1975: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1976: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1977: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1978: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1979:
1980: # Reload cache, that may have been modified by ltconfig
1981: if test -r "$cache_file"; then
1982: echo "loading cache $cache_file"
1983: . $cache_file
1984: else
1985: echo "creating cache $cache_file"
1986: > $cache_file
1987: fi
1988:
1989:
1990: # This can be used to rebuild libtool when needed
1991: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1992:
1993: # Always use our own libtool.
1994: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1995:
1996: # Redirect the config.log output again, so that the ltconfig log is not
1997: # clobbered by the next message.
1998: exec 5>>./config.log
1999:
2000: subdirs="libltdl"
2001:
2002:
2003:
2004:
2005: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.11 paf 2006: echo "configure:2007: checking how to run the C++ preprocessor" >&5
1.1 parser 2007: if test -z "$CXXCPP"; then
2008: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2009: echo $ac_n "(cached) $ac_c" 1>&6
2010: else
2011: ac_ext=C
2012: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2013: ac_cpp='$CXXCPP $CPPFLAGS'
2014: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2015: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2016: cross_compiling=$ac_cv_prog_cxx_cross
2017: CXXCPP="${CXX-g++} -E"
2018: cat > conftest.$ac_ext <<EOF
1.11 paf 2019: #line 2020 "configure"
1.1 parser 2020: #include "confdefs.h"
2021: #include <stdlib.h>
2022: EOF
2023: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.11 paf 2024: { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 2025: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2026: if test -z "$ac_err"; then
2027: :
2028: else
2029: echo "$ac_err" >&5
2030: echo "configure: failed program was:" >&5
2031: cat conftest.$ac_ext >&5
2032: rm -rf conftest*
2033: CXXCPP=/lib/cpp
2034: fi
2035: rm -f conftest*
2036: ac_cv_prog_CXXCPP="$CXXCPP"
2037: ac_ext=C
2038: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2039: ac_cpp='$CXXCPP $CPPFLAGS'
2040: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2041: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2042: cross_compiling=$ac_cv_prog_cxx_cross
2043: fi
2044: fi
2045: CXXCPP="$ac_cv_prog_CXXCPP"
2046: echo "$ac_t""$CXXCPP" 1>&6
2047:
2048: for ac_hdr in stdio.h \
2049: stdlib.h \
1.6 paf 2050: string.h \
2051: setjmp.h
1.1 parser 2052:
2053: do
2054: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2055: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.11 paf 2056: echo "configure:2057: checking for $ac_hdr" >&5
1.1 parser 2057: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2058: echo $ac_n "(cached) $ac_c" 1>&6
2059: else
2060: cat > conftest.$ac_ext <<EOF
1.11 paf 2061: #line 2062 "configure"
1.1 parser 2062: #include "confdefs.h"
2063: #include <$ac_hdr>
2064: EOF
2065: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.11 paf 2066: { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 2067: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2068: if test -z "$ac_err"; then
2069: rm -rf conftest*
2070: eval "ac_cv_header_$ac_safe=yes"
2071: else
2072: echo "$ac_err" >&5
2073: echo "configure: failed program was:" >&5
2074: cat conftest.$ac_ext >&5
2075: rm -rf conftest*
2076: eval "ac_cv_header_$ac_safe=no"
2077: fi
2078: rm -f conftest*
2079: fi
2080: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2081: echo "$ac_t""yes" 1>&6
2082: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2083: cat >> confdefs.h <<EOF
2084: #define $ac_tr_hdr 1
2085: EOF
2086:
2087: else
2088: echo "$ac_t""no" 1>&6
2089: fi
2090: done
2091:
2092:
2093:
2094: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.11 paf 2095: echo "configure:2096: checking for ANSI C header files" >&5
1.1 parser 2096: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2097: echo $ac_n "(cached) $ac_c" 1>&6
2098: else
2099: cat > conftest.$ac_ext <<EOF
1.11 paf 2100: #line 2101 "configure"
1.1 parser 2101: #include "confdefs.h"
2102: #include <stdlib.h>
2103: #include <stdarg.h>
2104: #include <string.h>
2105: #include <float.h>
2106: EOF
2107: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.11 paf 2108: { (eval echo configure:2109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 parser 2109: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2110: if test -z "$ac_err"; then
2111: rm -rf conftest*
2112: ac_cv_header_stdc=yes
2113: else
2114: echo "$ac_err" >&5
2115: echo "configure: failed program was:" >&5
2116: cat conftest.$ac_ext >&5
2117: rm -rf conftest*
2118: ac_cv_header_stdc=no
2119: fi
2120: rm -f conftest*
2121:
2122: if test $ac_cv_header_stdc = yes; then
2123: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2124: cat > conftest.$ac_ext <<EOF
1.11 paf 2125: #line 2126 "configure"
1.1 parser 2126: #include "confdefs.h"
2127: #include <string.h>
2128: EOF
2129: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2130: egrep "memchr" >/dev/null 2>&1; then
2131: :
2132: else
2133: rm -rf conftest*
2134: ac_cv_header_stdc=no
2135: fi
2136: rm -f conftest*
2137:
2138: fi
2139:
2140: if test $ac_cv_header_stdc = yes; then
2141: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2142: cat > conftest.$ac_ext <<EOF
1.11 paf 2143: #line 2144 "configure"
1.1 parser 2144: #include "confdefs.h"
2145: #include <stdlib.h>
2146: EOF
2147: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2148: egrep "free" >/dev/null 2>&1; then
2149: :
2150: else
2151: rm -rf conftest*
2152: ac_cv_header_stdc=no
2153: fi
2154: rm -f conftest*
2155:
2156: fi
2157:
2158: if test $ac_cv_header_stdc = yes; then
2159: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2160: if test "$cross_compiling" = yes; then
2161: :
2162: else
2163: cat > conftest.$ac_ext <<EOF
1.11 paf 2164: #line 2165 "configure"
1.1 parser 2165: #include "confdefs.h"
2166: #ifdef __cplusplus
1.7 paf 2167: extern "C" void exit(int);
1.1 parser 2168: #endif
2169: #include <ctype.h>
2170: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2171: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2172: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2173: int main () { int i; for (i = 0; i < 256; i++)
2174: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2175: exit (0); }
2176:
2177: EOF
1.11 paf 2178: if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 parser 2179: then
2180: :
2181: else
2182: echo "configure: failed program was:" >&5
2183: cat conftest.$ac_ext >&5
2184: rm -fr conftest*
2185: ac_cv_header_stdc=no
2186: fi
2187: rm -fr conftest*
2188: fi
2189:
2190: fi
2191: fi
2192:
2193: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2194: if test $ac_cv_header_stdc = yes; then
2195: cat >> confdefs.h <<\EOF
2196: #define STDC_HEADERS 1
2197: EOF
2198:
2199: fi
2200:
2201: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.11 paf 2202: echo "configure:2203: checking for size_t" >&5
1.1 parser 2203: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2204: echo $ac_n "(cached) $ac_c" 1>&6
2205: else
2206: cat > conftest.$ac_ext <<EOF
1.11 paf 2207: #line 2208 "configure"
1.1 parser 2208: #include "confdefs.h"
2209: #include <sys/types.h>
2210: #if STDC_HEADERS
2211: #include <stdlib.h>
2212: #include <stddef.h>
2213: #endif
2214: EOF
2215: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2216: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2217: rm -rf conftest*
2218: ac_cv_type_size_t=yes
2219: else
2220: rm -rf conftest*
2221: ac_cv_type_size_t=no
2222: fi
2223: rm -f conftest*
2224:
2225: fi
2226: echo "$ac_t""$ac_cv_type_size_t" 1>&6
2227: if test $ac_cv_type_size_t = no; then
2228: cat >> confdefs.h <<\EOF
2229: #define size_t unsigned
2230: EOF
2231:
2232: fi
2233:
2234:
2235:
2236:
2237: trap '' 1 2 15
2238: cat > confcache <<\EOF
2239: # This file is a shell script that caches the results of configure
2240: # tests run on this system so they can be shared between configure
2241: # scripts and configure runs. It is not useful on other systems.
2242: # If it contains results you don't want to keep, you may remove or edit it.
2243: #
2244: # By default, configure uses ./config.cache as the cache file,
2245: # creating it if it does not exist already. You can give configure
2246: # the --cache-file=FILE option to use a different cache file; that is
2247: # what configure does when it calls configure scripts in
2248: # subdirectories, so they share the cache.
2249: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2250: # config.status only pays attention to the cache file if you give it the
2251: # --recheck option to rerun configure.
2252: #
2253: EOF
2254: # The following way of writing the cache mishandles newlines in values,
2255: # but we know of no workaround that is simple, portable, and efficient.
2256: # So, don't put newlines in cache variables' values.
2257: # Ultrix sh set writes to stderr and can't be redirected directly,
2258: # and sets the high bit in the cache file unless we assign to the vars.
2259: (set) 2>&1 |
2260: case `(ac_space=' '; set | grep ac_space) 2>&1` in
2261: *ac_space=\ *)
2262: # `set' does not quote correctly, so add quotes (double-quote substitution
2263: # turns \\\\ into \\, and sed turns \\ into \).
2264: sed -n \
2265: -e "s/'/'\\\\''/g" \
2266: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2267: ;;
2268: *)
2269: # `set' quotes correctly as required by POSIX, so do not add quotes.
2270: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2271: ;;
2272: esac >> confcache
2273: if cmp -s $cache_file confcache; then
2274: :
2275: else
2276: if test -w $cache_file; then
2277: echo "updating cache $cache_file"
2278: cat confcache > $cache_file
2279: else
2280: echo "not updating unwritable cache $cache_file"
2281: fi
2282: fi
2283: rm -f confcache
2284:
2285: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2286:
2287: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2288: # Let make expand exec_prefix.
2289: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2290:
2291: # Any assignment to VPATH causes Sun make to only execute
2292: # the first set of double-colon rules, so remove it if not needed.
2293: # If there is a colon in the path, we need to keep it.
2294: if test "x$srcdir" = x.; then
2295: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2296: fi
2297:
2298: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2299:
2300: DEFS=-DHAVE_CONFIG_H
2301:
2302: # Without the "./", some shells look in PATH for config.status.
2303: : ${CONFIG_STATUS=./config.status}
2304:
2305: echo creating $CONFIG_STATUS
2306: rm -f $CONFIG_STATUS
2307: cat > $CONFIG_STATUS <<EOF
2308: #! /bin/sh
2309: # Generated automatically by configure.
2310: # Run this file to recreate the current configuration.
2311: # This directory was configured as follows,
2312: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2313: #
2314: # $0 $ac_configure_args
2315: #
2316: # Compiler output produced by configure, useful for debugging
2317: # configure, is in ./config.log if it exists.
2318:
2319: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2320: for ac_option
2321: do
2322: case "\$ac_option" in
2323: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2324: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2325: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2326: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2327: echo "$CONFIG_STATUS generated by autoconf version 2.13"
2328: exit 0 ;;
2329: -help | --help | --hel | --he | --h)
2330: echo "\$ac_cs_usage"; exit 0 ;;
2331: *) echo "\$ac_cs_usage"; exit 1 ;;
2332: esac
2333: done
2334:
2335: ac_given_srcdir=$srcdir
2336: ac_given_INSTALL="$INSTALL"
2337:
1.13 paf 2338: trap 'rm -fr `echo "Makefile config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 parser 2339: EOF
2340: cat >> $CONFIG_STATUS <<EOF
2341:
2342: # Protect against being on the right side of a sed subst in config.status.
2343: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2344: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2345: $ac_vpsub
2346: $extrasub
2347: s%@SHELL@%$SHELL%g
2348: s%@CFLAGS@%$CFLAGS%g
2349: s%@CPPFLAGS@%$CPPFLAGS%g
2350: s%@CXXFLAGS@%$CXXFLAGS%g
2351: s%@FFLAGS@%$FFLAGS%g
2352: s%@DEFS@%$DEFS%g
2353: s%@LDFLAGS@%$LDFLAGS%g
2354: s%@LIBS@%$LIBS%g
2355: s%@exec_prefix@%$exec_prefix%g
2356: s%@prefix@%$prefix%g
2357: s%@program_transform_name@%$program_transform_name%g
2358: s%@bindir@%$bindir%g
2359: s%@sbindir@%$sbindir%g
2360: s%@libexecdir@%$libexecdir%g
2361: s%@datadir@%$datadir%g
2362: s%@sysconfdir@%$sysconfdir%g
2363: s%@sharedstatedir@%$sharedstatedir%g
2364: s%@localstatedir@%$localstatedir%g
2365: s%@libdir@%$libdir%g
2366: s%@includedir@%$includedir%g
2367: s%@oldincludedir@%$oldincludedir%g
2368: s%@infodir@%$infodir%g
2369: s%@mandir@%$mandir%g
2370: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2371: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2372: s%@INSTALL_DATA@%$INSTALL_DATA%g
2373: s%@PACKAGE@%$PACKAGE%g
2374: s%@VERSION@%$VERSION%g
2375: s%@ACLOCAL@%$ACLOCAL%g
2376: s%@AUTOCONF@%$AUTOCONF%g
2377: s%@AUTOMAKE@%$AUTOMAKE%g
2378: s%@AUTOHEADER@%$AUTOHEADER%g
2379: s%@MAKEINFO@%$MAKEINFO%g
2380: s%@SET_MAKE@%$SET_MAKE%g
2381: s%@MYSQL_INC@%$MYSQL_INC%g
2382: s%@AWK@%$AWK%g
2383: s%@CXX@%$CXX%g
2384: s%@INCLTDL@%$INCLTDL%g
2385: s%@LIBLTDL@%$LIBLTDL%g
2386: s%@LIBADD_DL@%$LIBADD_DL%g
2387: s%@host@%$host%g
2388: s%@host_alias@%$host_alias%g
2389: s%@host_cpu@%$host_cpu%g
2390: s%@host_vendor@%$host_vendor%g
2391: s%@host_os@%$host_os%g
2392: s%@build@%$build%g
2393: s%@build_alias@%$build_alias%g
2394: s%@build_cpu@%$build_cpu%g
2395: s%@build_vendor@%$build_vendor%g
2396: s%@build_os@%$build_os%g
2397: s%@RANLIB@%$RANLIB%g
2398: s%@CC@%$CC%g
2399: s%@LN_S@%$LN_S%g
1.11 paf 2400: s%@DLLTOOL@%$DLLTOOL%g
2401: s%@AS@%$AS%g
2402: s%@OBJDUMP@%$OBJDUMP%g
1.1 parser 2403: s%@LIBTOOL@%$LIBTOOL%g
2404: s%@subdirs@%$subdirs%g
2405: s%@CXXCPP@%$CXXCPP%g
2406:
2407: CEOF
2408: EOF
2409:
2410: cat >> $CONFIG_STATUS <<\EOF
2411:
2412: # Split the substitutions into bite-sized pieces for seds with
2413: # small command number limits, like on Digital OSF/1 and HP-UX.
2414: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2415: ac_file=1 # Number of current file.
2416: ac_beg=1 # First line for current file.
2417: ac_end=$ac_max_sed_cmds # Line after last line for current file.
2418: ac_more_lines=:
2419: ac_sed_cmds=""
2420: while $ac_more_lines; do
2421: if test $ac_beg -gt 1; then
2422: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2423: else
2424: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2425: fi
2426: if test ! -s conftest.s$ac_file; then
2427: ac_more_lines=false
2428: rm -f conftest.s$ac_file
2429: else
2430: if test -z "$ac_sed_cmds"; then
2431: ac_sed_cmds="sed -f conftest.s$ac_file"
2432: else
2433: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2434: fi
2435: ac_file=`expr $ac_file + 1`
2436: ac_beg=$ac_end
2437: ac_end=`expr $ac_end + $ac_max_sed_cmds`
2438: fi
2439: done
2440: if test -z "$ac_sed_cmds"; then
2441: ac_sed_cmds=cat
2442: fi
2443: EOF
2444:
2445: cat >> $CONFIG_STATUS <<EOF
2446:
1.13 paf 2447: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1.1 parser 2448: EOF
2449: cat >> $CONFIG_STATUS <<\EOF
2450: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2451: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2452: case "$ac_file" in
2453: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2454: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2455: *) ac_file_in="${ac_file}.in" ;;
2456: esac
2457:
2458: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2459:
2460: # Remove last slash and all that follows it. Not all systems have dirname.
2461: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2462: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2463: # The file is in a subdirectory.
2464: test ! -d "$ac_dir" && mkdir "$ac_dir"
2465: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2466: # A "../" for each directory in $ac_dir_suffix.
2467: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2468: else
2469: ac_dir_suffix= ac_dots=
2470: fi
2471:
2472: case "$ac_given_srcdir" in
2473: .) srcdir=.
2474: if test -z "$ac_dots"; then top_srcdir=.
2475: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2476: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2477: *) # Relative path.
2478: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2479: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2480: esac
2481:
2482: case "$ac_given_INSTALL" in
2483: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2484: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2485: esac
2486:
2487: echo creating "$ac_file"
2488: rm -f "$ac_file"
2489: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2490: case "$ac_file" in
2491: *Makefile*) ac_comsub="1i\\
2492: # $configure_input" ;;
2493: *) ac_comsub= ;;
2494: esac
2495:
2496: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2497: sed -e "$ac_comsub
2498: s%@configure_input@%$configure_input%g
2499: s%@srcdir@%$srcdir%g
2500: s%@top_srcdir@%$top_srcdir%g
2501: s%@INSTALL@%$INSTALL%g
2502: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2503: fi; done
2504: rm -f conftest.s*
2505:
2506: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2507: # NAME is the cpp macro being defined and VALUE is the value it is being given.
2508: #
2509: # ac_d sets the value in "#define NAME VALUE" lines.
2510: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2511: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2512: ac_dC='\3'
2513: ac_dD='%g'
2514: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2515: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2516: ac_uB='\([ ]\)%\1#\2define\3'
2517: ac_uC=' '
2518: ac_uD='\4%g'
2519: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2520: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2521: ac_eB='$%\1#\2define\3'
2522: ac_eC=' '
2523: ac_eD='%g'
2524:
2525: if test "${CONFIG_HEADERS+set}" != set; then
2526: EOF
2527: cat >> $CONFIG_STATUS <<EOF
2528: CONFIG_HEADERS="config_auto.h"
2529: EOF
2530: cat >> $CONFIG_STATUS <<\EOF
2531: fi
2532: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2533: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2534: case "$ac_file" in
2535: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2536: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2537: *) ac_file_in="${ac_file}.in" ;;
2538: esac
2539:
2540: echo creating $ac_file
2541:
2542: rm -f conftest.frag conftest.in conftest.out
2543: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2544: cat $ac_file_inputs > conftest.in
2545:
2546: EOF
2547:
2548: # Transform confdefs.h into a sed script conftest.vals that substitutes
2549: # the proper values into config.h.in to produce config.h. And first:
2550: # Protect against being on the right side of a sed subst in config.status.
2551: # Protect against being in an unquoted here document in config.status.
2552: rm -f conftest.vals
2553: cat > conftest.hdr <<\EOF
2554: s/[\\&%]/\\&/g
2555: s%[\\$`]%\\&%g
2556: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2557: s%ac_d%ac_u%gp
2558: s%ac_u%ac_e%gp
2559: EOF
2560: sed -n -f conftest.hdr confdefs.h > conftest.vals
2561: rm -f conftest.hdr
2562:
2563: # This sed command replaces #undef with comments. This is necessary, for
2564: # example, in the case of _POSIX_SOURCE, which is predefined and required
2565: # on some systems where configure will not decide to define it.
2566: cat >> conftest.vals <<\EOF
2567: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2568: EOF
2569:
2570: # Break up conftest.vals because some shells have a limit on
2571: # the size of here documents, and old seds have small limits too.
2572:
2573: rm -f conftest.tail
2574: while :
2575: do
2576: ac_lines=`grep -c . conftest.vals`
2577: # grep -c gives empty output for an empty file on some AIX systems.
2578: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2579: # Write a limited-size here document to conftest.frag.
2580: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2581: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2582: echo 'CEOF
2583: sed -f conftest.frag conftest.in > conftest.out
2584: rm -f conftest.in
2585: mv conftest.out conftest.in
2586: ' >> $CONFIG_STATUS
2587: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2588: rm -f conftest.vals
2589: mv conftest.tail conftest.vals
2590: done
2591: rm -f conftest.vals
2592:
2593: cat >> $CONFIG_STATUS <<\EOF
2594: rm -f conftest.frag conftest.h
2595: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2596: cat conftest.in >> conftest.h
2597: rm -f conftest.in
2598: if cmp -s $ac_file conftest.h 2>/dev/null; then
2599: echo "$ac_file is unchanged"
2600: rm -f conftest.h
2601: else
2602: # Remove last slash and all that follows it. Not all systems have dirname.
2603: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2604: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2605: # The file is in a subdirectory.
2606: test ! -d "$ac_dir" && mkdir "$ac_dir"
2607: fi
2608: rm -f $ac_file
2609: mv conftest.h $ac_file
2610: fi
2611: fi; done
2612:
2613: EOF
2614: cat >> $CONFIG_STATUS <<EOF
2615:
2616:
2617: EOF
2618: cat >> $CONFIG_STATUS <<\EOF
2619: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2620:
2621: exit 0
2622: EOF
2623: chmod +x $CONFIG_STATUS
2624: rm -fr confdefs* $ac_clean_files
2625: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2626:
2627: if test "$no_recursion" != yes; then
2628:
2629: # Remove --cache-file and --srcdir arguments so they do not pile up.
2630: ac_sub_configure_args=
2631: ac_prev=
2632: for ac_arg in $ac_configure_args; do
2633: if test -n "$ac_prev"; then
2634: ac_prev=
2635: continue
2636: fi
2637: case "$ac_arg" in
2638: -cache-file | --cache-file | --cache-fil | --cache-fi \
2639: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2640: ac_prev=cache_file ;;
2641: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2642: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2643: ;;
2644: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2645: ac_prev=srcdir ;;
2646: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2647: ;;
2648: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2649: esac
2650: done
2651:
2652: for ac_config_dir in libltdl; do
2653:
2654: # Do not complain, so a configure script can configure whichever
2655: # parts of a large source tree are present.
2656: if test ! -d $srcdir/$ac_config_dir; then
2657: continue
2658: fi
2659:
2660: echo configuring in $ac_config_dir
2661:
2662: case "$srcdir" in
2663: .) ;;
2664: *)
2665: if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2666: else
2667: { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2668: fi
2669: ;;
2670: esac
2671:
2672: ac_popdir=`pwd`
2673: cd $ac_config_dir
2674:
2675: # A "../" for each directory in /$ac_config_dir.
2676: ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2677:
2678: case "$srcdir" in
2679: .) # No --srcdir option. We are building in place.
2680: ac_sub_srcdir=$srcdir ;;
2681: /*) # Absolute path.
2682: ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2683: *) # Relative path.
2684: ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2685: esac
2686:
2687: # Check for guested configure; otherwise get Cygnus style configure.
2688: if test -f $ac_sub_srcdir/configure; then
2689: ac_sub_configure=$ac_sub_srcdir/configure
2690: elif test -f $ac_sub_srcdir/configure.in; then
2691: ac_sub_configure=$ac_configure
2692: else
2693: echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2694: ac_sub_configure=
2695: fi
2696:
2697: # The recursion is here.
2698: if test -n "$ac_sub_configure"; then
2699:
2700: # Make the cache file name correct relative to the subdirectory.
2701: case "$cache_file" in
2702: /*) ac_sub_cache_file=$cache_file ;;
2703: *) # Relative path.
2704: ac_sub_cache_file="$ac_dots$cache_file" ;;
2705: esac
2706: case "$ac_given_INSTALL" in
2707: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2708: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2709: esac
2710:
2711: echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2712: # The eval makes quoting arguments work.
2713: if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2714: then :
2715: else
2716: { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2717: fi
2718: fi
2719:
2720: cd $ac_popdir
2721: done
2722: fi
2723:
E-mail: