Annotation of sql/mysql/configure, revision 1.21
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.15 paf 3: # Generated by GNU Autoconf 2.57.
1.1 parser 4: #
1.15 paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
1.1 parser 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.15 paf 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243: # Find the correct PATH separator. Usually this is `:', but
244: # DJGPP uses `;' like DOS.
245: if test "X${PATH_SEPARATOR+set}" != Xset; then
246: UNAME=${UNAME-`uname 2>/dev/null`}
247: case X$UNAME in
248: *-DOS) lt_cv_sys_path_separator=';' ;;
249: *) lt_cv_sys_path_separator=':' ;;
250: esac
251: PATH_SEPARATOR=$lt_cv_sys_path_separator
252: fi
253:
254:
255: # Check that we are running under the correct shell.
256: SHELL=${CONFIG_SHELL-/bin/sh}
257:
258: case X$ECHO in
259: X*--fallback-echo)
260: # Remove one level of quotation (which was required for Make).
261: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262: ;;
263: esac
264:
265: echo=${ECHO-echo}
266: if test "X$1" = X--no-reexec; then
267: # Discard the --no-reexec flag, and continue.
268: shift
269: elif test "X$1" = X--fallback-echo; then
270: # Avoid inline document here, it may be left over
271: :
272: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273: # Yippee, $echo works!
274: :
275: else
276: # Restart under the correct shell.
277: exec $SHELL "$0" --no-reexec ${1+"$@"}
278: fi
279:
280: if test "X$1" = X--fallback-echo; then
281: # used as fallback echo
282: shift
283: cat <<EOF
284:
285: EOF
286: exit 0
287: fi
288:
289: # The HP-UX ksh and POSIX shell print the target directory to stdout
290: # if CDPATH is set.
291: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292:
293: if test -z "$ECHO"; then
294: if test "X${echo_test_string+set}" != Xset; then
295: # find a string as large as possible, as long as the shell can cope with it
296: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299: echo_test_string="`eval $cmd`" &&
300: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301: then
302: break
303: fi
304: done
305: fi
306:
307: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309: test "X$echo_testing_string" = "X$echo_test_string"; then
310: :
311: else
312: # The Solaris, AIX, and Digital Unix default echo programs unquote
313: # backslashes. This makes it impossible to quote backslashes using
314: # echo "$something" | sed 's/\\/\\\\/g'
315: #
316: # So, first we look for a working echo in the user's PATH.
317:
318: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319: for dir in $PATH /usr/ucb; do
320: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323: test "X$echo_testing_string" = "X$echo_test_string"; then
324: echo="$dir/echo"
325: break
326: fi
327: done
328: IFS="$save_ifs"
329:
330: if test "X$echo" = Xecho; then
331: # We didn't find a better echo, so look for alternatives.
332: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334: test "X$echo_testing_string" = "X$echo_test_string"; then
335: # This shell has a builtin print -r that does the trick.
336: echo='print -r'
337: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338: test "X$CONFIG_SHELL" != X/bin/ksh; then
339: # If we have ksh, try running configure again with it.
340: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341: export ORIGINAL_CONFIG_SHELL
342: CONFIG_SHELL=/bin/ksh
343: export CONFIG_SHELL
344: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345: else
346: # Try using printf.
347: echo='printf %s\n'
348: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350: test "X$echo_testing_string" = "X$echo_test_string"; then
351: # Cool, printf works
352: :
353: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354: test "X$echo_testing_string" = 'X\t' &&
355: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356: test "X$echo_testing_string" = "X$echo_test_string"; then
357: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358: export CONFIG_SHELL
359: SHELL="$CONFIG_SHELL"
360: export SHELL
361: echo="$CONFIG_SHELL $0 --fallback-echo"
362: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363: test "X$echo_testing_string" = 'X\t' &&
364: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365: test "X$echo_testing_string" = "X$echo_test_string"; then
366: echo="$CONFIG_SHELL $0 --fallback-echo"
367: else
368: # maybe with a smaller string...
369: prev=:
370:
371: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373: then
374: break
375: fi
376: prev="$cmd"
377: done
378:
379: if test "$prev" != 'sed 50q "$0"'; then
380: echo_test_string=`eval $prev`
381: export echo_test_string
382: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383: else
384: # Oops. We lost completely, so just stick with echo.
385: echo=echo
386: fi
387: fi
388: fi
389: fi
390: fi
391: fi
392:
393: # Copy echo and quote the copy suitably for passing to libtool from
394: # the Makefile, instead of quoting the original, which is used later.
395: ECHO=$echo
396: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398: fi
399:
400:
1.1 parser 401:
1.15 paf 402: # Name of the host.
403: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404: # so uname gets run too.
405: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406:
407: exec 6>&1
408:
409: #
410: # Initializations.
411: #
1.1 parser 412: ac_default_prefix=/usr/local
1.15 paf 413: ac_config_libobj_dir=.
414: cross_compiling=no
415: subdirs=
416: MFLAGS=
417: MAKEFLAGS=
418: SHELL=${CONFIG_SHELL-/bin/sh}
419:
420: # Maximum number of lines to put in a shell here document.
421: # This variable seems obsolete. It should probably be removed, and
422: # only ac_max_sed_lines should be used.
423: : ${ac_max_here_lines=38}
424:
425: # Identity of this package.
426: PACKAGE_NAME=
427: PACKAGE_TARNAME=
428: PACKAGE_VERSION=
429: PACKAGE_STRING=
430: PACKAGE_BUGREPORT=
431:
432: ac_unique_file="parser3mysql.C"
433: # Factoring default headers for most tests.
434: ac_includes_default="\
435: #include <stdio.h>
436: #if HAVE_SYS_TYPES_H
437: # include <sys/types.h>
438: #endif
439: #if HAVE_SYS_STAT_H
440: # include <sys/stat.h>
441: #endif
442: #if STDC_HEADERS
443: # include <stdlib.h>
444: # include <stddef.h>
445: #else
446: # if HAVE_STDLIB_H
447: # include <stdlib.h>
448: # endif
449: #endif
450: #if HAVE_STRING_H
451: # if !STDC_HEADERS && HAVE_MEMORY_H
452: # include <memory.h>
453: # endif
454: # include <string.h>
455: #endif
456: #if HAVE_STRINGS_H
457: # include <strings.h>
458: #endif
459: #if HAVE_INTTYPES_H
460: # include <inttypes.h>
461: #else
462: # if HAVE_STDINT_H
463: # include <stdint.h>
464: # endif
465: #endif
466: #if HAVE_UNISTD_H
467: # include <unistd.h>
468: #endif"
469:
470: ac_subdirs_all="$ac_subdirs_all libltdl"
1.20 paf 471: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MYSQL_INC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CXXCPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
1.15 paf 472: ac_subst_files=''
1.1 parser 473:
474: # Initialize some variables set by options.
1.15 paf 475: ac_init_help=
476: ac_init_version=false
1.1 parser 477: # The variables have the same names as the options, with
478: # dashes changed to underlines.
1.15 paf 479: cache_file=/dev/null
1.1 parser 480: exec_prefix=NONE
481: no_create=
482: no_recursion=
483: prefix=NONE
484: program_prefix=NONE
485: program_suffix=NONE
486: program_transform_name=s,x,x,
487: silent=
488: site=
489: srcdir=
490: verbose=
491: x_includes=NONE
492: x_libraries=NONE
1.15 paf 493:
494: # Installation directory options.
495: # These are left unexpanded so users can "make install exec_prefix=/foo"
496: # and all the variables that are supposed to be based on exec_prefix
497: # by default will actually change.
498: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 parser 499: bindir='${exec_prefix}/bin'
500: sbindir='${exec_prefix}/sbin'
501: libexecdir='${exec_prefix}/libexec'
502: datadir='${prefix}/share'
503: sysconfdir='${prefix}/etc'
504: sharedstatedir='${prefix}/com'
505: localstatedir='${prefix}/var'
506: libdir='${exec_prefix}/lib'
507: includedir='${prefix}/include'
508: oldincludedir='/usr/include'
509: infodir='${prefix}/info'
510: mandir='${prefix}/man'
511:
512: ac_prev=
513: for ac_option
514: do
515: # If the previous option needs an argument, assign it.
516: if test -n "$ac_prev"; then
517: eval "$ac_prev=\$ac_option"
518: ac_prev=
519: continue
520: fi
521:
1.15 paf 522: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 523:
524: # Accept the important Cygnus configure options, so we can diagnose typos.
525:
1.15 paf 526: case $ac_option in
1.1 parser 527:
528: -bindir | --bindir | --bindi | --bind | --bin | --bi)
529: ac_prev=bindir ;;
530: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.15 paf 531: bindir=$ac_optarg ;;
1.1 parser 532:
533: -build | --build | --buil | --bui | --bu)
1.15 paf 534: ac_prev=build_alias ;;
1.1 parser 535: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 paf 536: build_alias=$ac_optarg ;;
1.1 parser 537:
538: -cache-file | --cache-file | --cache-fil | --cache-fi \
539: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540: ac_prev=cache_file ;;
541: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.15 paf 543: cache_file=$ac_optarg ;;
544:
545: --config-cache | -C)
546: cache_file=config.cache ;;
1.1 parser 547:
548: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549: ac_prev=datadir ;;
550: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551: | --da=*)
1.15 paf 552: datadir=$ac_optarg ;;
1.1 parser 553:
554: -disable-* | --disable-*)
1.15 paf 555: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 556: # Reject names that are not valid shell variable names.
1.15 paf 557: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559: { (exit 1); exit 1; }; }
560: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561: eval "enable_$ac_feature=no" ;;
1.1 parser 562:
563: -enable-* | --enable-*)
1.15 paf 564: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 565: # Reject names that are not valid shell variable names.
1.15 paf 566: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568: { (exit 1); exit 1; }; }
569: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570: case $ac_option in
571: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 572: *) ac_optarg=yes ;;
573: esac
1.15 paf 574: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 575:
576: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578: | --exec | --exe | --ex)
579: ac_prev=exec_prefix ;;
580: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582: | --exec=* | --exe=* | --ex=*)
1.15 paf 583: exec_prefix=$ac_optarg ;;
1.1 parser 584:
585: -gas | --gas | --ga | --g)
586: # Obsolete; use --with-gas.
587: with_gas=yes ;;
588:
1.15 paf 589: -help | --help | --hel | --he | -h)
590: ac_init_help=long ;;
591: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592: ac_init_help=recursive ;;
593: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594: ac_init_help=short ;;
1.1 parser 595:
596: -host | --host | --hos | --ho)
1.15 paf 597: ac_prev=host_alias ;;
1.1 parser 598: -host=* | --host=* | --hos=* | --ho=*)
1.15 paf 599: host_alias=$ac_optarg ;;
1.1 parser 600:
601: -includedir | --includedir | --includedi | --included | --include \
602: | --includ | --inclu | --incl | --inc)
603: ac_prev=includedir ;;
604: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.15 paf 606: includedir=$ac_optarg ;;
1.1 parser 607:
608: -infodir | --infodir | --infodi | --infod | --info | --inf)
609: ac_prev=infodir ;;
610: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.15 paf 611: infodir=$ac_optarg ;;
1.1 parser 612:
613: -libdir | --libdir | --libdi | --libd)
614: ac_prev=libdir ;;
615: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 paf 616: libdir=$ac_optarg ;;
1.1 parser 617:
618: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619: | --libexe | --libex | --libe)
620: ac_prev=libexecdir ;;
621: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622: | --libexe=* | --libex=* | --libe=*)
1.15 paf 623: libexecdir=$ac_optarg ;;
1.1 parser 624:
625: -localstatedir | --localstatedir | --localstatedi | --localstated \
626: | --localstate | --localstat | --localsta | --localst \
627: | --locals | --local | --loca | --loc | --lo)
628: ac_prev=localstatedir ;;
629: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.15 paf 632: localstatedir=$ac_optarg ;;
1.1 parser 633:
634: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635: ac_prev=mandir ;;
636: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.15 paf 637: mandir=$ac_optarg ;;
1.1 parser 638:
639: -nfp | --nfp | --nf)
640: # Obsolete; use --without-fp.
641: with_fp=no ;;
642:
643: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.15 paf 644: | --no-cr | --no-c | -n)
1.1 parser 645: no_create=yes ;;
646:
647: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649: no_recursion=yes ;;
650:
651: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653: | --oldin | --oldi | --old | --ol | --o)
654: ac_prev=oldincludedir ;;
655: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.15 paf 658: oldincludedir=$ac_optarg ;;
1.1 parser 659:
660: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661: ac_prev=prefix ;;
662: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.15 paf 663: prefix=$ac_optarg ;;
1.1 parser 664:
665: -program-prefix | --program-prefix | --program-prefi | --program-pref \
666: | --program-pre | --program-pr | --program-p)
667: ac_prev=program_prefix ;;
668: -program-prefix=* | --program-prefix=* | --program-prefi=* \
669: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.15 paf 670: program_prefix=$ac_optarg ;;
1.1 parser 671:
672: -program-suffix | --program-suffix | --program-suffi | --program-suff \
673: | --program-suf | --program-su | --program-s)
674: ac_prev=program_suffix ;;
675: -program-suffix=* | --program-suffix=* | --program-suffi=* \
676: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.15 paf 677: program_suffix=$ac_optarg ;;
1.1 parser 678:
679: -program-transform-name | --program-transform-name \
680: | --program-transform-nam | --program-transform-na \
681: | --program-transform-n | --program-transform- \
682: | --program-transform | --program-transfor \
683: | --program-transfo | --program-transf \
684: | --program-trans | --program-tran \
685: | --progr-tra | --program-tr | --program-t)
686: ac_prev=program_transform_name ;;
687: -program-transform-name=* | --program-transform-name=* \
688: | --program-transform-nam=* | --program-transform-na=* \
689: | --program-transform-n=* | --program-transform-=* \
690: | --program-transform=* | --program-transfor=* \
691: | --program-transfo=* | --program-transf=* \
692: | --program-trans=* | --program-tran=* \
693: | --progr-tra=* | --program-tr=* | --program-t=*)
1.15 paf 694: program_transform_name=$ac_optarg ;;
1.1 parser 695:
696: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697: | -silent | --silent | --silen | --sile | --sil)
698: silent=yes ;;
699:
700: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701: ac_prev=sbindir ;;
702: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703: | --sbi=* | --sb=*)
1.15 paf 704: sbindir=$ac_optarg ;;
1.1 parser 705:
706: -sharedstatedir | --sharedstatedir | --sharedstatedi \
707: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708: | --sharedst | --shareds | --shared | --share | --shar \
709: | --sha | --sh)
710: ac_prev=sharedstatedir ;;
711: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714: | --sha=* | --sh=*)
1.15 paf 715: sharedstatedir=$ac_optarg ;;
1.1 parser 716:
717: -site | --site | --sit)
718: ac_prev=site ;;
719: -site=* | --site=* | --sit=*)
1.15 paf 720: site=$ac_optarg ;;
1.1 parser 721:
722: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723: ac_prev=srcdir ;;
724: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.15 paf 725: srcdir=$ac_optarg ;;
1.1 parser 726:
727: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728: | --syscon | --sysco | --sysc | --sys | --sy)
729: ac_prev=sysconfdir ;;
730: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.15 paf 732: sysconfdir=$ac_optarg ;;
1.1 parser 733:
734: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 paf 735: ac_prev=target_alias ;;
1.1 parser 736: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 paf 737: target_alias=$ac_optarg ;;
1.1 parser 738:
739: -v | -verbose | --verbose | --verbos | --verbo | --verb)
740: verbose=yes ;;
741:
1.15 paf 742: -version | --version | --versio | --versi | --vers | -V)
743: ac_init_version=: ;;
1.1 parser 744:
745: -with-* | --with-*)
1.15 paf 746: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 747: # Reject names that are not valid shell variable names.
1.15 paf 748: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749: { echo "$as_me: error: invalid package name: $ac_package" >&2
750: { (exit 1); exit 1; }; }
1.1 parser 751: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.15 paf 752: case $ac_option in
753: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 754: *) ac_optarg=yes ;;
755: esac
1.15 paf 756: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 757:
758: -without-* | --without-*)
1.15 paf 759: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 760: # Reject names that are not valid shell variable names.
1.15 paf 761: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762: { echo "$as_me: error: invalid package name: $ac_package" >&2
763: { (exit 1); exit 1; }; }
764: ac_package=`echo $ac_package | sed 's/-/_/g'`
765: eval "with_$ac_package=no" ;;
1.1 parser 766:
767: --x)
768: # Obsolete; use --with-x.
769: with_x=yes ;;
770:
771: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772: | --x-incl | --x-inc | --x-in | --x-i)
773: ac_prev=x_includes ;;
774: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.15 paf 776: x_includes=$ac_optarg ;;
1.1 parser 777:
778: -x-libraries | --x-libraries | --x-librarie | --x-librari \
779: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780: ac_prev=x_libraries ;;
781: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.15 paf 783: x_libraries=$ac_optarg ;;
1.1 parser 784:
1.15 paf 785: -*) { echo "$as_me: error: unrecognized option: $ac_option
786: Try \`$0 --help' for more information." >&2
787: { (exit 1); exit 1; }; }
1.1 parser 788: ;;
789:
1.15 paf 790: *=*)
791: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792: # Reject names that are not valid shell variable names.
793: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795: { (exit 1); exit 1; }; }
796: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797: eval "$ac_envvar='$ac_optarg'"
798: export $ac_envvar ;;
799:
1.1 parser 800: *)
1.15 paf 801: # FIXME: should be removed in autoconf 3.0.
802: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 806: ;;
807:
808: esac
809: done
810:
811: if test -n "$ac_prev"; then
1.15 paf 812: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813: { echo "$as_me: error: missing argument to $ac_option" >&2
814: { (exit 1); exit 1; }; }
1.1 parser 815: fi
816:
1.15 paf 817: # Be sure to have absolute paths.
818: for ac_var in exec_prefix prefix
819: do
820: eval ac_val=$`echo $ac_var`
821: case $ac_val in
822: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824: { (exit 1); exit 1; }; };;
825: esac
826: done
1.1 parser 827:
1.15 paf 828: # Be sure to have absolute paths.
829: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 831: do
1.15 paf 832: eval ac_val=$`echo $ac_var`
833: case $ac_val in
834: [\\/$]* | ?:[\\/]* ) ;;
835: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836: { (exit 1); exit 1; }; };;
1.1 parser 837: esac
838: done
839:
1.15 paf 840: # There might be people who depend on the old broken behavior: `$host'
841: # used to hold the argument of --host etc.
842: # FIXME: To remove some day.
843: build=$build_alias
844: host=$host_alias
845: target=$target_alias
846:
847: # FIXME: To remove some day.
848: if test "x$host_alias" != x; then
849: if test "x$build_alias" = x; then
850: cross_compiling=maybe
851: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852: If a cross compiler is detected then cross compile mode will be used." >&2
853: elif test "x$build_alias" != "x$host_alias"; then
854: cross_compiling=yes
855: fi
856: fi
857:
858: ac_tool_prefix=
859: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 parser 860:
1.15 paf 861: test "$silent" = yes && exec 6>/dev/null
1.1 parser 862:
863:
864: # Find the source files, if location was not specified.
865: if test -z "$srcdir"; then
866: ac_srcdir_defaulted=yes
867: # Try the directory containing this script, then its parent.
1.15 paf 868: ac_confdir=`(dirname "$0") 2>/dev/null ||
869: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870: X"$0" : 'X\(//\)[^/]' \| \
871: X"$0" : 'X\(//\)$' \| \
872: X"$0" : 'X\(/\)' \| \
873: . : '\(.\)' 2>/dev/null ||
874: echo X"$0" |
875: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877: /^X\(\/\/\)$/{ s//\1/; q; }
878: /^X\(\/\).*/{ s//\1/; q; }
879: s/.*/./; q'`
1.1 parser 880: srcdir=$ac_confdir
881: if test ! -r $srcdir/$ac_unique_file; then
882: srcdir=..
883: fi
884: else
885: ac_srcdir_defaulted=no
886: fi
887: if test ! -r $srcdir/$ac_unique_file; then
888: if test "$ac_srcdir_defaulted" = yes; then
1.15 paf 889: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890: { (exit 1); exit 1; }; }
1.1 parser 891: else
1.15 paf 892: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893: { (exit 1); exit 1; }; }
1.1 parser 894: fi
895: fi
1.15 paf 896: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898: { (exit 1); exit 1; }; }
899: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900: ac_env_build_alias_set=${build_alias+set}
901: ac_env_build_alias_value=$build_alias
902: ac_cv_env_build_alias_set=${build_alias+set}
903: ac_cv_env_build_alias_value=$build_alias
904: ac_env_host_alias_set=${host_alias+set}
905: ac_env_host_alias_value=$host_alias
906: ac_cv_env_host_alias_set=${host_alias+set}
907: ac_cv_env_host_alias_value=$host_alias
908: ac_env_target_alias_set=${target_alias+set}
909: ac_env_target_alias_value=$target_alias
910: ac_cv_env_target_alias_set=${target_alias+set}
911: ac_cv_env_target_alias_value=$target_alias
912: ac_env_CXX_set=${CXX+set}
913: ac_env_CXX_value=$CXX
914: ac_cv_env_CXX_set=${CXX+set}
915: ac_cv_env_CXX_value=$CXX
916: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917: ac_env_CXXFLAGS_value=$CXXFLAGS
918: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920: ac_env_LDFLAGS_set=${LDFLAGS+set}
921: ac_env_LDFLAGS_value=$LDFLAGS
922: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923: ac_cv_env_LDFLAGS_value=$LDFLAGS
924: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925: ac_env_CPPFLAGS_value=$CPPFLAGS
926: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928: ac_env_CC_set=${CC+set}
929: ac_env_CC_value=$CC
930: ac_cv_env_CC_set=${CC+set}
931: ac_cv_env_CC_value=$CC
932: ac_env_CFLAGS_set=${CFLAGS+set}
933: ac_env_CFLAGS_value=$CFLAGS
934: ac_cv_env_CFLAGS_set=${CFLAGS+set}
935: ac_cv_env_CFLAGS_value=$CFLAGS
936: ac_env_CXXCPP_set=${CXXCPP+set}
937: ac_env_CXXCPP_value=$CXXCPP
938: ac_cv_env_CXXCPP_set=${CXXCPP+set}
939: ac_cv_env_CXXCPP_value=$CXXCPP
940:
941: #
942: # Report the --help message.
943: #
944: if test "$ac_init_help" = "long"; then
945: # Omit some internal or obsolete options to make the list less imposing.
946: # This message is too long to be a string in the A/UX 3.1 sh.
947: cat <<_ACEOF
948: \`configure' configures this package to adapt to many kinds of systems.
949:
950: Usage: $0 [OPTION]... [VAR=VALUE]...
951:
952: To assign environment variables (e.g., CC, CFLAGS...), specify them as
953: VAR=VALUE. See below for descriptions of some of the useful variables.
954:
955: Defaults for the options are specified in brackets.
956:
957: Configuration:
958: -h, --help display this help and exit
959: --help=short display options specific to this package
960: --help=recursive display the short help of all the included packages
961: -V, --version display version information and exit
962: -q, --quiet, --silent do not print \`checking...' messages
963: --cache-file=FILE cache test results in FILE [disabled]
964: -C, --config-cache alias for \`--cache-file=config.cache'
965: -n, --no-create do not create output files
966: --srcdir=DIR find the sources in DIR [configure dir or \`..']
967:
968: _ACEOF
969:
970: cat <<_ACEOF
971: Installation directories:
972: --prefix=PREFIX install architecture-independent files in PREFIX
973: [$ac_default_prefix]
974: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
975: [PREFIX]
976:
977: By default, \`make install' will install all the files in
978: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980: for instance \`--prefix=\$HOME'.
981:
982: For better control, use the options below.
983:
984: Fine tuning of the installation directories:
985: --bindir=DIR user executables [EPREFIX/bin]
986: --sbindir=DIR system admin executables [EPREFIX/sbin]
987: --libexecdir=DIR program executables [EPREFIX/libexec]
988: --datadir=DIR read-only architecture-independent data [PREFIX/share]
989: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
992: --libdir=DIR object code libraries [EPREFIX/lib]
993: --includedir=DIR C header files [PREFIX/include]
994: --oldincludedir=DIR C header files for non-gcc [/usr/include]
995: --infodir=DIR info documentation [PREFIX/info]
996: --mandir=DIR man documentation [PREFIX/man]
997: _ACEOF
998:
999: cat <<\_ACEOF
1000:
1001: Program names:
1002: --program-prefix=PREFIX prepend PREFIX to installed program names
1003: --program-suffix=SUFFIX append SUFFIX to installed program names
1004: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1005:
1006: System types:
1007: --build=BUILD configure for building on BUILD [guessed]
1008: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1009: _ACEOF
1010: fi
1011:
1012: if test -n "$ac_init_help"; then
1013:
1014: cat <<\_ACEOF
1015:
1016: Optional Features:
1017: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1018: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1019: --disable-dependency-tracking Speeds up one-time builds
1020: --enable-dependency-tracking Do not reject slow dependency extractors
1021: --enable-static=PKGS build static libraries default=no
1022: --enable-shared=PKGS build shared libraries default=yes
1023: --enable-fast-install=PKGS optimize for fast installation default=yes
1024: --disable-libtool-lock avoid locking (might break parallel builds)
1025:
1026: Optional Packages:
1027: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1028: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1029: --with-mysql-inc=DIR DIR is the MySQL includes directory
1030: --with-gnu-ld assume the C compiler uses GNU ld default=no
1031: --with-pic try to use only PIC/non-PIC objects default=use both
1032:
1033: Some influential environment variables:
1034: CXX C++ compiler command
1035: CXXFLAGS C++ compiler flags
1036: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037: nonstandard directory <lib dir>
1038: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039: headers in a nonstandard directory <include dir>
1040: CC C compiler command
1041: CFLAGS C compiler flags
1042: CXXCPP C++ preprocessor
1043:
1044: Use these variables to override the choices made by `configure' or to help
1045: it to find libraries and programs with nonstandard names/locations.
1046:
1047: _ACEOF
1048: fi
1049:
1050: if test "$ac_init_help" = "recursive"; then
1051: # If there are subdirs, report their specific --help.
1052: ac_popdir=`pwd`
1053: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054: test -d $ac_dir || continue
1055: ac_builddir=.
1056:
1057: if test "$ac_dir" != .; then
1058: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059: # A "../" for each directory in $ac_dir_suffix.
1060: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061: else
1062: ac_dir_suffix= ac_top_builddir=
1063: fi
1064:
1065: case $srcdir in
1066: .) # No --srcdir option. We are building in place.
1067: ac_srcdir=.
1068: if test -z "$ac_top_builddir"; then
1069: ac_top_srcdir=.
1070: else
1071: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072: fi ;;
1073: [\\/]* | ?:[\\/]* ) # Absolute path.
1074: ac_srcdir=$srcdir$ac_dir_suffix;
1075: ac_top_srcdir=$srcdir ;;
1076: *) # Relative path.
1077: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079: esac
1080: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1081: # absolute.
1082: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1083: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1084: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1085: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1086:
1087: cd $ac_dir
1088: # Check for guested configure; otherwise get Cygnus style configure.
1089: if test -f $ac_srcdir/configure.gnu; then
1090: echo
1091: $SHELL $ac_srcdir/configure.gnu --help=recursive
1092: elif test -f $ac_srcdir/configure; then
1093: echo
1094: $SHELL $ac_srcdir/configure --help=recursive
1095: elif test -f $ac_srcdir/configure.ac ||
1096: test -f $ac_srcdir/configure.in; then
1097: echo
1098: $ac_configure --help
1099: else
1100: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1101: fi
1102: cd $ac_popdir
1103: done
1104: fi
1105:
1106: test -n "$ac_init_help" && exit 0
1107: if $ac_init_version; then
1108: cat <<\_ACEOF
1109:
1110: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1111: Free Software Foundation, Inc.
1112: This configure script is free software; the Free Software Foundation
1113: gives unlimited permission to copy, distribute and modify it.
1114: _ACEOF
1115: exit 0
1116: fi
1117: exec 5>config.log
1118: cat >&5 <<_ACEOF
1119: This file contains any messages produced by compilers while
1120: running configure, to aid debugging if configure makes a mistake.
1121:
1122: It was created by $as_me, which was
1123: generated by GNU Autoconf 2.57. Invocation command line was
1124:
1125: $ $0 $@
1126:
1127: _ACEOF
1128: {
1129: cat <<_ASUNAME
1130: ## --------- ##
1131: ## Platform. ##
1132: ## --------- ##
1133:
1134: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1135: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1136: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1137: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1138: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1139:
1140: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1141: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1142:
1143: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1144: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1145: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1146: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1147: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1148: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1149: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1150:
1151: _ASUNAME
1152:
1153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1154: for as_dir in $PATH
1155: do
1156: IFS=$as_save_IFS
1157: test -z "$as_dir" && as_dir=.
1158: echo "PATH: $as_dir"
1159: done
1160:
1161: } >&5
1162:
1163: cat >&5 <<_ACEOF
1164:
1165:
1166: ## ----------- ##
1167: ## Core tests. ##
1168: ## ----------- ##
1169:
1170: _ACEOF
1171:
1172:
1173: # Keep a trace of the command line.
1174: # Strip out --no-create and --no-recursion so they do not pile up.
1175: # Strip out --silent because we don't want to record it for future runs.
1176: # Also quote any args containing shell meta-characters.
1177: # Make two passes to allow for proper duplicate-argument suppression.
1178: ac_configure_args=
1179: ac_configure_args0=
1180: ac_configure_args1=
1181: ac_sep=
1182: ac_must_keep_next=false
1183: for ac_pass in 1 2
1184: do
1185: for ac_arg
1186: do
1187: case $ac_arg in
1188: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1189: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190: | -silent | --silent | --silen | --sile | --sil)
1191: continue ;;
1192: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1194: esac
1195: case $ac_pass in
1196: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1197: 2)
1198: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1199: if test $ac_must_keep_next = true; then
1200: ac_must_keep_next=false # Got value, back to normal.
1201: else
1202: case $ac_arg in
1203: *=* | --config-cache | -C | -disable-* | --disable-* \
1204: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1205: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1206: | -with-* | --with-* | -without-* | --without-* | --x)
1207: case "$ac_configure_args0 " in
1208: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1209: esac
1210: ;;
1211: -* ) ac_must_keep_next=true ;;
1212: esac
1213: fi
1214: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1215: # Get rid of the leading space.
1216: ac_sep=" "
1217: ;;
1218: esac
1219: done
1220: done
1221: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1222: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1223:
1224: # When interrupted or exit'd, cleanup temporary files, and complete
1225: # config.log. We remove comments because anyway the quotes in there
1226: # would cause problems or look ugly.
1227: # WARNING: Be sure not to use single quotes in there, as some shells,
1228: # such as our DU 5.0 friend, will then `close' the trap.
1229: trap 'exit_status=$?
1230: # Save into config.log some information that might help in debugging.
1231: {
1232: echo
1233:
1234: cat <<\_ASBOX
1235: ## ---------------- ##
1236: ## Cache variables. ##
1237: ## ---------------- ##
1238: _ASBOX
1239: echo
1240: # The following way of writing the cache mishandles newlines in values,
1241: {
1242: (set) 2>&1 |
1243: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1244: *ac_space=\ *)
1245: sed -n \
1246: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1247: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1248: ;;
1249: *)
1250: sed -n \
1251: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1252: ;;
1253: esac;
1254: }
1255: echo
1256:
1257: cat <<\_ASBOX
1258: ## ----------------- ##
1259: ## Output variables. ##
1260: ## ----------------- ##
1261: _ASBOX
1262: echo
1263: for ac_var in $ac_subst_vars
1264: do
1265: eval ac_val=$`echo $ac_var`
1266: echo "$ac_var='"'"'$ac_val'"'"'"
1267: done | sort
1268: echo
1269:
1270: if test -n "$ac_subst_files"; then
1271: cat <<\_ASBOX
1272: ## ------------- ##
1273: ## Output files. ##
1274: ## ------------- ##
1275: _ASBOX
1276: echo
1277: for ac_var in $ac_subst_files
1278: do
1279: eval ac_val=$`echo $ac_var`
1280: echo "$ac_var='"'"'$ac_val'"'"'"
1281: done | sort
1282: echo
1283: fi
1284:
1285: if test -s confdefs.h; then
1286: cat <<\_ASBOX
1287: ## ----------- ##
1288: ## confdefs.h. ##
1289: ## ----------- ##
1290: _ASBOX
1291: echo
1292: sed "/^$/d" confdefs.h | sort
1293: echo
1294: fi
1295: test "$ac_signal" != 0 &&
1296: echo "$as_me: caught signal $ac_signal"
1297: echo "$as_me: exit $exit_status"
1298: } >&5
1299: rm -f core core.* *.core &&
1300: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1301: exit $exit_status
1302: ' 0
1303: for ac_signal in 1 2 13 15; do
1304: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1305: done
1306: ac_signal=0
1307:
1308: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1309: rm -rf conftest* confdefs.h
1310: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1311: echo >confdefs.h
1312:
1313: # Predefined preprocessor variables.
1314:
1315: cat >>confdefs.h <<_ACEOF
1316: #define PACKAGE_NAME "$PACKAGE_NAME"
1317: _ACEOF
1318:
1319:
1320: cat >>confdefs.h <<_ACEOF
1321: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1322: _ACEOF
1323:
1324:
1325: cat >>confdefs.h <<_ACEOF
1326: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1327: _ACEOF
1.1 parser 1328:
1.15 paf 1329:
1330: cat >>confdefs.h <<_ACEOF
1331: #define PACKAGE_STRING "$PACKAGE_STRING"
1332: _ACEOF
1333:
1334:
1335: cat >>confdefs.h <<_ACEOF
1336: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1337: _ACEOF
1338:
1339:
1340: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1341: # Prefer explicitly selected file to automatically selected ones.
1342: if test -z "$CONFIG_SITE"; then
1343: if test "x$prefix" != xNONE; then
1344: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1345: else
1346: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1347: fi
1348: fi
1349: for ac_site_file in $CONFIG_SITE; do
1350: if test -r "$ac_site_file"; then
1.15 paf 1351: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1352: echo "$as_me: loading site script $ac_site_file" >&6;}
1353: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1354: . "$ac_site_file"
1355: fi
1356: done
1357:
1358: if test -r "$cache_file"; then
1.15 paf 1359: # Some versions of bash will fail to source /dev/null (special
1360: # files actually), so we avoid doing that.
1361: if test -f "$cache_file"; then
1362: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1363: echo "$as_me: loading cache $cache_file" >&6;}
1364: case $cache_file in
1365: [\\/]* | ?:[\\/]* ) . $cache_file;;
1366: *) . ./$cache_file;;
1367: esac
1368: fi
1.1 parser 1369: else
1.15 paf 1370: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1371: echo "$as_me: creating cache $cache_file" >&6;}
1372: >$cache_file
1373: fi
1374:
1375: # Check that the precious variables saved in the cache have kept the same
1376: # value.
1377: ac_cache_corrupted=false
1378: for ac_var in `(set) 2>&1 |
1379: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1380: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1381: eval ac_new_set=\$ac_env_${ac_var}_set
1382: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1383: eval ac_new_val="\$ac_env_${ac_var}_value"
1384: case $ac_old_set,$ac_new_set in
1385: set,)
1386: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1387: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1388: ac_cache_corrupted=: ;;
1389: ,set)
1390: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1391: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1392: ac_cache_corrupted=: ;;
1393: ,);;
1394: *)
1395: if test "x$ac_old_val" != "x$ac_new_val"; then
1396: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1397: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1398: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1399: echo "$as_me: former value: $ac_old_val" >&2;}
1400: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1401: echo "$as_me: current value: $ac_new_val" >&2;}
1402: ac_cache_corrupted=:
1403: fi;;
1404: esac
1405: # Pass precious variables to config.status.
1406: if test "$ac_new_set" = set; then
1407: case $ac_new_val in
1408: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1409: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1410: *) ac_arg=$ac_var=$ac_new_val ;;
1411: esac
1412: case " $ac_configure_args " in
1413: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1414: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1415: esac
1416: fi
1417: done
1418: if $ac_cache_corrupted; then
1419: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1420: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1421: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1422: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1423: { (exit 1); exit 1; }; }
1.1 parser 1424: fi
1425:
1426: ac_ext=c
1427: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 1428: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1430: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431:
1432:
1433:
1434:
1435:
1436:
1437:
1438:
1439:
1440:
1441:
1442:
1443:
1444:
1445:
1446:
1447:
1448:
1449:
1.1 parser 1450:
1451:
1.15 paf 1452: am__api_version="1.7"
1.1 parser 1453: ac_aux_dir=
1454: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1455: if test -f $ac_dir/install-sh; then
1456: ac_aux_dir=$ac_dir
1457: ac_install_sh="$ac_aux_dir/install-sh -c"
1458: break
1459: elif test -f $ac_dir/install.sh; then
1460: ac_aux_dir=$ac_dir
1461: ac_install_sh="$ac_aux_dir/install.sh -c"
1462: break
1.15 paf 1463: elif test -f $ac_dir/shtool; then
1464: ac_aux_dir=$ac_dir
1465: ac_install_sh="$ac_aux_dir/shtool install -c"
1466: break
1.1 parser 1467: fi
1468: done
1469: if test -z "$ac_aux_dir"; then
1.15 paf 1470: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1471: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1472: { (exit 1); exit 1; }; }
1473: fi
1474: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1475: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1476: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1477:
1478: # Find a good install program. We prefer a C program (faster),
1479: # so one script is as good as another. But avoid the broken or
1480: # incompatible versions:
1481: # SysV /etc/install, /usr/sbin/install
1482: # SunOS /usr/etc/install
1483: # IRIX /sbin/install
1484: # AIX /bin/install
1.15 paf 1485: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1486: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1487: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1488: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1489: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1490: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1491: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1492: if test -z "$INSTALL"; then
1.15 paf 1493: if test "${ac_cv_path_install+set}" = set; then
1494: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1495: else
1.15 paf 1496: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497: for as_dir in $PATH
1498: do
1499: IFS=$as_save_IFS
1500: test -z "$as_dir" && as_dir=.
1501: # Account for people who put trailing slashes in PATH elements.
1502: case $as_dir/ in
1503: ./ | .// | /cC/* | \
1504: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1505: /usr/ucb/* ) ;;
1506: *)
1507: # OSF1 and SCO ODT 3.0 have their own names for install.
1508: # Don't use installbsd from OSF since it installs stuff as root
1509: # by default.
1510: for ac_prog in ginstall scoinst install; do
1511: for ac_exec_ext in '' $ac_executable_extensions; do
1512: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1513: if test $ac_prog = install &&
1514: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1515: # AIX install. It has an incompatible calling convention.
1516: :
1517: elif test $ac_prog = install &&
1518: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519: # program-specific install script used by HP pwplus--don't use.
1520: :
1521: else
1522: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1523: break 3
1524: fi
1525: fi
1.1 parser 1526: done
1.15 paf 1527: done
1528: ;;
1529: esac
1530: done
1531:
1.1 parser 1532:
1533: fi
1534: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1535: INSTALL=$ac_cv_path_install
1.1 parser 1536: else
1537: # As a last resort, use the slow shell script. We don't cache a
1538: # path for INSTALL within a source directory, because that will
1539: # break other packages using the cache if that directory is
1540: # removed, or if the path is relative.
1.15 paf 1541: INSTALL=$ac_install_sh
1.1 parser 1542: fi
1543: fi
1.15 paf 1544: echo "$as_me:$LINENO: result: $INSTALL" >&5
1545: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1546:
1547: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1548: # It thinks the first close brace ends the variable substitution.
1549: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1550:
1.15 paf 1551: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1552:
1553: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1554:
1.15 paf 1555: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1556: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1557: # Just in case
1558: sleep 1
1.15 paf 1559: echo timestamp > conftest.file
1.1 parser 1560: # Do `set' in a subshell so we don't clobber the current shell's
1561: # arguments. Must try -L first in case configure is actually a
1562: # symlink; some systems play weird games with the mod time of symlinks
1563: # (eg FreeBSD returns the mod time of the symlink's containing
1564: # directory).
1565: if (
1.15 paf 1566: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1567: if test "$*" = "X"; then
1568: # -L didn't work.
1.15 paf 1569: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1570: fi
1.15 paf 1571: rm -f conftest.file
1572: if test "$*" != "X $srcdir/configure conftest.file" \
1573: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1574:
1575: # If neither matched, then we have a broken ls. This can happen
1576: # if, for instance, CONFIG_SHELL is bash and it inherits a
1577: # broken ls alias from the environment. This has actually
1578: # happened. Such a system could not be considered "sane".
1.15 paf 1579: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1580: alias in your environment" >&5
1581: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1582: alias in your environment" >&2;}
1583: { (exit 1); exit 1; }; }
1.1 parser 1584: fi
1585:
1.15 paf 1586: test "$2" = conftest.file
1.1 parser 1587: )
1588: then
1589: # Ok.
1590: :
1591: else
1.15 paf 1592: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1593: Check your system clock" >&5
1594: echo "$as_me: error: newly created file is older than distributed files!
1595: Check your system clock" >&2;}
1596: { (exit 1); exit 1; }; }
1.1 parser 1597: fi
1.15 paf 1598: echo "$as_me:$LINENO: result: yes" >&5
1599: echo "${ECHO_T}yes" >&6
1.1 parser 1600: test "$program_prefix" != NONE &&
1.15 paf 1601: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1602: # Use a double $ so make ignores it.
1603: test "$program_suffix" != NONE &&
1.15 paf 1604: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1605: # Double any \ or $. echo might interpret backslashes.
1606: # By default was `s,x,x', remove it if useless.
1607: cat <<\_ACEOF >conftest.sed
1608: s/[\\$]/&&/g;s/;s,x,x,$//
1609: _ACEOF
1610: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1611: rm conftest.sed
1612:
1613:
1614: # expand $ac_aux_dir to an absolute path
1615: am_aux_dir=`cd $ac_aux_dir && pwd`
1616:
1617: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1618: # Use eval to expand $SHELL
1619: if eval "$MISSING --run true"; then
1620: am_missing_run="$MISSING --run "
1621: else
1622: am_missing_run=
1623: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1624: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1625: fi
1626:
1627: for ac_prog in gawk mawk nawk awk
1628: do
1629: # Extract the first word of "$ac_prog", so it can be a program name with args.
1630: set dummy $ac_prog; ac_word=$2
1631: echo "$as_me:$LINENO: checking for $ac_word" >&5
1632: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633: if test "${ac_cv_prog_AWK+set}" = set; then
1634: echo $ECHO_N "(cached) $ECHO_C" >&6
1635: else
1636: if test -n "$AWK"; then
1637: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1638: else
1639: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640: for as_dir in $PATH
1641: do
1642: IFS=$as_save_IFS
1643: test -z "$as_dir" && as_dir=.
1644: for ac_exec_ext in '' $ac_executable_extensions; do
1645: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646: ac_cv_prog_AWK="$ac_prog"
1647: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648: break 2
1649: fi
1650: done
1651: done
1652:
1653: fi
1654: fi
1655: AWK=$ac_cv_prog_AWK
1656: if test -n "$AWK"; then
1657: echo "$as_me:$LINENO: result: $AWK" >&5
1658: echo "${ECHO_T}$AWK" >&6
1659: else
1660: echo "$as_me:$LINENO: result: no" >&5
1661: echo "${ECHO_T}no" >&6
1662: fi
1.1 parser 1663:
1.15 paf 1664: test -n "$AWK" && break
1665: done
1.1 parser 1666:
1.15 paf 1667: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1668: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1669: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1670: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1671: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1672: else
1.15 paf 1673: cat >conftest.make <<\_ACEOF
1.1 parser 1674: all:
1.15 paf 1675: @echo 'ac_maketemp="$(MAKE)"'
1676: _ACEOF
1.1 parser 1677: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1678: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1679: if test -n "$ac_maketemp"; then
1680: eval ac_cv_prog_make_${ac_make}_set=yes
1681: else
1682: eval ac_cv_prog_make_${ac_make}_set=no
1683: fi
1.15 paf 1684: rm -f conftest.make
1.1 parser 1685: fi
1686: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1687: echo "$as_me:$LINENO: result: yes" >&5
1688: echo "${ECHO_T}yes" >&6
1.1 parser 1689: SET_MAKE=
1690: else
1.15 paf 1691: echo "$as_me:$LINENO: result: no" >&5
1692: echo "${ECHO_T}no" >&6
1.1 parser 1693: SET_MAKE="MAKE=${MAKE-make}"
1694: fi
1695:
1.15 paf 1696: # test to see if srcdir already configured
1697: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1698: test -f $srcdir/config.status; then
1699: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1700: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1701: { (exit 1); exit 1; }; }
1702: fi
1703:
1704: # test whether we have cygpath
1705: if test -z "$CYGPATH_W"; then
1706: if (cygpath --version) >/dev/null 2>/dev/null; then
1707: CYGPATH_W='cygpath -w'
1708: else
1709: CYGPATH_W=echo
1710: fi
1711: fi
1712:
1713:
1714: # Define the identity of the package.
1715: PACKAGE=parser3mysql
1.21 ! paf 1716: VERSION=3.1.0
1.15 paf 1717:
1718:
1719: # Some tools Automake needs.
1720:
1721: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1722:
1723:
1724: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1725:
1726:
1.15 paf 1727: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1728:
1729:
1730: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1731:
1732:
1733: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1734:
1735:
1.15 paf 1736: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 parser 1737:
1.15 paf 1738: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1739:
1.15 paf 1740: # Installed binaries are usually stripped using `strip' when the user
1741: # run `make install-strip'. However `strip' might not be the right
1742: # tool to use in cross-compilation environments, therefore Automake
1743: # will honor the `STRIP' environment variable to overrule this program.
1744: if test "$cross_compiling" != no; then
1745: if test -n "$ac_tool_prefix"; then
1746: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1747: set dummy ${ac_tool_prefix}strip; ac_word=$2
1748: echo "$as_me:$LINENO: checking for $ac_word" >&5
1749: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750: if test "${ac_cv_prog_STRIP+set}" = set; then
1751: echo $ECHO_N "(cached) $ECHO_C" >&6
1752: else
1753: if test -n "$STRIP"; then
1754: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1755: else
1.15 paf 1756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757: for as_dir in $PATH
1758: do
1759: IFS=$as_save_IFS
1760: test -z "$as_dir" && as_dir=.
1761: for ac_exec_ext in '' $ac_executable_extensions; do
1762: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1764: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765: break 2
1766: fi
1767: done
1768: done
1769:
1770: fi
1771: fi
1772: STRIP=$ac_cv_prog_STRIP
1773: if test -n "$STRIP"; then
1774: echo "$as_me:$LINENO: result: $STRIP" >&5
1775: echo "${ECHO_T}$STRIP" >&6
1776: else
1777: echo "$as_me:$LINENO: result: no" >&5
1778: echo "${ECHO_T}no" >&6
1.1 parser 1779: fi
1780:
1.15 paf 1781: fi
1782: if test -z "$ac_cv_prog_STRIP"; then
1783: ac_ct_STRIP=$STRIP
1784: # Extract the first word of "strip", so it can be a program name with args.
1785: set dummy strip; ac_word=$2
1786: echo "$as_me:$LINENO: checking for $ac_word" >&5
1787: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1790: else
1.15 paf 1791: if test -n "$ac_ct_STRIP"; then
1792: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1793: else
1794: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795: for as_dir in $PATH
1796: do
1797: IFS=$as_save_IFS
1798: test -z "$as_dir" && as_dir=.
1799: for ac_exec_ext in '' $ac_executable_extensions; do
1800: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801: ac_cv_prog_ac_ct_STRIP="strip"
1802: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803: break 2
1804: fi
1805: done
1806: done
1807:
1808: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1809: fi
1.15 paf 1810: fi
1811: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1812: if test -n "$ac_ct_STRIP"; then
1813: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1814: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1815: else
1.15 paf 1816: echo "$as_me:$LINENO: result: no" >&5
1817: echo "${ECHO_T}no" >&6
1.1 parser 1818: fi
1819:
1.15 paf 1820: STRIP=$ac_ct_STRIP
1.1 parser 1821: else
1.15 paf 1822: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1823: fi
1824:
1825: fi
1.15 paf 1826: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1827:
1828: # We need awk for the "check" target. The system "awk" is bad on
1829: # some platforms.
1.1 parser 1830:
1831:
1832:
1833:
1.15 paf 1834: ac_config_headers="$ac_config_headers config_auto.h"
1835:
1.1 parser 1836:
1837:
1838:
1839:
1.8 paf 1840:
1841:
1842:
1.4 paf 1843: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1844: if test "${with_mysql_inc+set}" = set; then
1845: withval="$with_mysql_inc"
1.15 paf 1846:
1.8 paf 1847: if test -r "$withval/mysql.h"; then
1848: MYSQL_INC=$withval
1849: fi
1850:
1851:
1852: if test -z "$MYSQL_INC"; then
1.15 paf 1853: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
1854: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
1855: { (exit 1); exit 1; }; }
1.8 paf 1856: fi
1857:
1.1 parser 1858: else
1.15 paf 1859: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
1860: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1861: for d in \
1862: /usr/local/include/mysql \
1863: /usr/include/mysql ; do
1.15 paf 1864:
1.8 paf 1865: if test -r "$d/mysql.h"; then
1866: MYSQL_INC=$d
1867: fi
1868:
1869: done
1870:
1871: if test -z "$MYSQL_INC"; then
1.15 paf 1872: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
1873: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
1874: { (exit 1); exit 1; }; }
1.8 paf 1875: fi
1876:
1.15 paf 1877: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
1878: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1879:
1.15 paf 1880: fi;
1.3 parser 1881:
1.1 parser 1882:
1883:
1.3 parser 1884:
1.1 parser 1885:
1886: # Find a good install program. We prefer a C program (faster),
1887: # so one script is as good as another. But avoid the broken or
1888: # incompatible versions:
1889: # SysV /etc/install, /usr/sbin/install
1890: # SunOS /usr/etc/install
1891: # IRIX /sbin/install
1892: # AIX /bin/install
1.15 paf 1893: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1894: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1895: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1896: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1897: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1898: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1899: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1900: if test -z "$INSTALL"; then
1.15 paf 1901: if test "${ac_cv_path_install+set}" = set; then
1902: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1903: else
1.15 paf 1904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905: for as_dir in $PATH
1906: do
1907: IFS=$as_save_IFS
1908: test -z "$as_dir" && as_dir=.
1909: # Account for people who put trailing slashes in PATH elements.
1910: case $as_dir/ in
1911: ./ | .// | /cC/* | \
1912: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1913: /usr/ucb/* ) ;;
1914: *)
1915: # OSF1 and SCO ODT 3.0 have their own names for install.
1916: # Don't use installbsd from OSF since it installs stuff as root
1917: # by default.
1918: for ac_prog in ginstall scoinst install; do
1919: for ac_exec_ext in '' $ac_executable_extensions; do
1920: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1921: if test $ac_prog = install &&
1922: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1923: # AIX install. It has an incompatible calling convention.
1924: :
1925: elif test $ac_prog = install &&
1926: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1927: # program-specific install script used by HP pwplus--don't use.
1928: :
1929: else
1930: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1931: break 3
1932: fi
1933: fi
1.1 parser 1934: done
1.15 paf 1935: done
1936: ;;
1937: esac
1938: done
1939:
1.1 parser 1940:
1941: fi
1942: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1943: INSTALL=$ac_cv_path_install
1.1 parser 1944: else
1945: # As a last resort, use the slow shell script. We don't cache a
1946: # path for INSTALL within a source directory, because that will
1947: # break other packages using the cache if that directory is
1948: # removed, or if the path is relative.
1.15 paf 1949: INSTALL=$ac_install_sh
1.1 parser 1950: fi
1951: fi
1.15 paf 1952: echo "$as_me:$LINENO: result: $INSTALL" >&5
1953: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1954:
1955: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1956: # It thinks the first close brace ends the variable substitution.
1957: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1958:
1.15 paf 1959: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1960:
1961: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1962:
1.15 paf 1963: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1964: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1965: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1966: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1967: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1968: else
1.15 paf 1969: cat >conftest.make <<\_ACEOF
1.1 parser 1970: all:
1.15 paf 1971: @echo 'ac_maketemp="$(MAKE)"'
1972: _ACEOF
1.1 parser 1973: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1974: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1975: if test -n "$ac_maketemp"; then
1976: eval ac_cv_prog_make_${ac_make}_set=yes
1977: else
1978: eval ac_cv_prog_make_${ac_make}_set=no
1979: fi
1.15 paf 1980: rm -f conftest.make
1.1 parser 1981: fi
1982: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1983: echo "$as_me:$LINENO: result: yes" >&5
1984: echo "${ECHO_T}yes" >&6
1.1 parser 1985: SET_MAKE=
1986: else
1.15 paf 1987: echo "$as_me:$LINENO: result: no" >&5
1988: echo "${ECHO_T}no" >&6
1.1 parser 1989: SET_MAKE="MAKE=${MAKE-make}"
1990: fi
1991:
1.15 paf 1992: for ac_prog in gawk mawk nawk awk
1.1 parser 1993: do
1.15 paf 1994: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 parser 1995: set dummy $ac_prog; ac_word=$2
1.15 paf 1996: echo "$as_me:$LINENO: checking for $ac_word" >&5
1997: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998: if test "${ac_cv_prog_AWK+set}" = set; then
1999: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2000: else
2001: if test -n "$AWK"; then
2002: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2003: else
1.15 paf 2004: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005: for as_dir in $PATH
2006: do
2007: IFS=$as_save_IFS
2008: test -z "$as_dir" && as_dir=.
2009: for ac_exec_ext in '' $ac_executable_extensions; do
2010: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011: ac_cv_prog_AWK="$ac_prog"
2012: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013: break 2
2014: fi
2015: done
2016: done
2017:
1.1 parser 2018: fi
2019: fi
1.15 paf 2020: AWK=$ac_cv_prog_AWK
1.1 parser 2021: if test -n "$AWK"; then
1.15 paf 2022: echo "$as_me:$LINENO: result: $AWK" >&5
2023: echo "${ECHO_T}$AWK" >&6
1.1 parser 2024: else
1.15 paf 2025: echo "$as_me:$LINENO: result: no" >&5
2026: echo "${ECHO_T}no" >&6
1.1 parser 2027: fi
2028:
1.15 paf 2029: test -n "$AWK" && break
1.1 parser 2030: done
2031:
2032:
1.15 paf 2033: ac_ext=cc
1.1 parser 2034: ac_cpp='$CXXCPP $CPPFLAGS'
1.15 paf 2035: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2038:
2039: ac_ext=cc
2040: ac_cpp='$CXXCPP $CPPFLAGS'
2041: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2044: if test -n "$ac_tool_prefix"; then
2045: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2046: do
2047: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049: echo "$as_me:$LINENO: checking for $ac_word" >&5
2050: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051: if test "${ac_cv_prog_CXX+set}" = set; then
2052: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2053: else
2054: if test -n "$CXX"; then
2055: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2056: else
1.15 paf 2057: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058: for as_dir in $PATH
2059: do
2060: IFS=$as_save_IFS
2061: test -z "$as_dir" && as_dir=.
2062: for ac_exec_ext in '' $ac_executable_extensions; do
2063: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2065: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066: break 2
2067: fi
2068: done
2069: done
2070:
1.1 parser 2071: fi
2072: fi
1.15 paf 2073: CXX=$ac_cv_prog_CXX
1.1 parser 2074: if test -n "$CXX"; then
1.15 paf 2075: echo "$as_me:$LINENO: result: $CXX" >&5
2076: echo "${ECHO_T}$CXX" >&6
1.1 parser 2077: else
1.15 paf 2078: echo "$as_me:$LINENO: result: no" >&5
2079: echo "${ECHO_T}no" >&6
1.1 parser 2080: fi
2081:
1.15 paf 2082: test -n "$CXX" && break
2083: done
2084: fi
2085: if test -z "$CXX"; then
2086: ac_ct_CXX=$CXX
2087: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2088: do
2089: # Extract the first word of "$ac_prog", so it can be a program name with args.
2090: set dummy $ac_prog; ac_word=$2
2091: echo "$as_me:$LINENO: checking for $ac_word" >&5
2092: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2094: echo $ECHO_N "(cached) $ECHO_C" >&6
2095: else
2096: if test -n "$ac_ct_CXX"; then
2097: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2098: else
2099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100: for as_dir in $PATH
2101: do
2102: IFS=$as_save_IFS
2103: test -z "$as_dir" && as_dir=.
2104: for ac_exec_ext in '' $ac_executable_extensions; do
2105: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106: ac_cv_prog_ac_ct_CXX="$ac_prog"
2107: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108: break 2
2109: fi
2110: done
1.1 parser 2111: done
2112:
1.15 paf 2113: fi
2114: fi
2115: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2116: if test -n "$ac_ct_CXX"; then
2117: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2118: echo "${ECHO_T}$ac_ct_CXX" >&6
2119: else
2120: echo "$as_me:$LINENO: result: no" >&5
2121: echo "${ECHO_T}no" >&6
2122: fi
1.1 parser 2123:
1.15 paf 2124: test -n "$ac_ct_CXX" && break
2125: done
2126: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2127:
1.15 paf 2128: CXX=$ac_ct_CXX
2129: fi
1.1 parser 2130:
2131:
1.15 paf 2132: # Provide some information about the compiler.
2133: echo "$as_me:$LINENO:" \
2134: "checking for C++ compiler version" >&5
2135: ac_compiler=`set X $ac_compile; echo $2`
2136: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137: (eval $ac_compiler --version </dev/null >&5) 2>&5
2138: ac_status=$?
2139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140: (exit $ac_status); }
2141: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2142: (eval $ac_compiler -v </dev/null >&5) 2>&5
2143: ac_status=$?
2144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145: (exit $ac_status); }
2146: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147: (eval $ac_compiler -V </dev/null >&5) 2>&5
2148: ac_status=$?
2149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150: (exit $ac_status); }
2151:
2152: cat >conftest.$ac_ext <<_ACEOF
2153: #line $LINENO "configure"
2154: /* confdefs.h. */
2155: _ACEOF
2156: cat confdefs.h >>conftest.$ac_ext
2157: cat >>conftest.$ac_ext <<_ACEOF
2158: /* end confdefs.h. */
2159:
2160: int
2161: main ()
2162: {
2163:
2164: ;
2165: return 0;
2166: }
2167: _ACEOF
2168: ac_clean_files_save=$ac_clean_files
2169: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170: # Try to create an executable without -o first, disregard a.out.
2171: # It will help us diagnose broken compilers, and finding out an intuition
2172: # of exeext.
2173: echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2174: echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2175: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177: (eval $ac_link_default) 2>&5
2178: ac_status=$?
2179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180: (exit $ac_status); }; then
2181: # Find the output, starting from the most likely. This scheme is
2182: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183: # resort.
2184:
2185: # Be careful to initialize this variable, since it used to be cached.
2186: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187: ac_cv_exeext=
2188: # b.out is created by i960 compilers.
2189: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190: do
2191: test -f "$ac_file" || continue
2192: case $ac_file in
2193: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194: ;;
2195: conftest.$ac_ext )
2196: # This is the source file.
2197: ;;
2198: [ab].out )
2199: # We found the default executable, but exeext='' is most
2200: # certainly right.
2201: break;;
2202: *.* )
2203: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204: # FIXME: I believe we export ac_cv_exeext for Libtool,
2205: # but it would be cool to find out if it's true. Does anybody
2206: # maintain Libtool? --akim.
2207: export ac_cv_exeext
2208: break;;
2209: * )
2210: break;;
2211: esac
2212: done
2213: else
2214: echo "$as_me: failed program was:" >&5
2215: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2216:
1.15 paf 2217: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2218: See \`config.log' for more details." >&5
2219: echo "$as_me: error: C++ compiler cannot create executables
2220: See \`config.log' for more details." >&2;}
2221: { (exit 77); exit 77; }; }
2222: fi
2223:
2224: ac_exeext=$ac_cv_exeext
2225: echo "$as_me:$LINENO: result: $ac_file" >&5
2226: echo "${ECHO_T}$ac_file" >&6
2227:
2228: # Check the compiler produces executables we can run. If not, either
2229: # the compiler is broken, or we cross compile.
2230: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2231: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2232: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233: # If not cross compiling, check that we can run a simple program.
2234: if test "$cross_compiling" != yes; then
2235: if { ac_try='./$ac_file'
2236: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237: (eval $ac_try) 2>&5
2238: ac_status=$?
2239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240: (exit $ac_status); }; }; then
2241: cross_compiling=no
2242: else
2243: if test "$cross_compiling" = maybe; then
2244: cross_compiling=yes
2245: else
2246: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2247: If you meant to cross compile, use \`--host'.
2248: See \`config.log' for more details." >&5
2249: echo "$as_me: error: cannot run C++ compiled programs.
2250: If you meant to cross compile, use \`--host'.
2251: See \`config.log' for more details." >&2;}
2252: { (exit 1); exit 1; }; }
2253: fi
1.1 parser 2254: fi
1.15 paf 2255: fi
2256: echo "$as_me:$LINENO: result: yes" >&5
2257: echo "${ECHO_T}yes" >&6
2258:
2259: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260: ac_clean_files=$ac_clean_files_save
2261: # Check the compiler produces executables we can run. If not, either
2262: # the compiler is broken, or we cross compile.
2263: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266: echo "${ECHO_T}$cross_compiling" >&6
2267:
2268: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271: (eval $ac_link) 2>&5
2272: ac_status=$?
2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274: (exit $ac_status); }; then
2275: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277: # work properly (i.e., refer to `conftest.exe'), while it won't with
2278: # `rm'.
2279: for ac_file in conftest.exe conftest conftest.*; do
2280: test -f "$ac_file" || continue
2281: case $ac_file in
2282: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284: export ac_cv_exeext
2285: break;;
2286: * ) break;;
2287: esac
2288: done
1.1 parser 2289: else
1.15 paf 2290: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291: See \`config.log' for more details." >&5
2292: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293: See \`config.log' for more details." >&2;}
2294: { (exit 1); exit 1; }; }
2295: fi
2296:
2297: rm -f conftest$ac_cv_exeext
2298: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299: echo "${ECHO_T}$ac_cv_exeext" >&6
2300:
2301: rm -f conftest.$ac_ext
2302: EXEEXT=$ac_cv_exeext
2303: ac_exeext=$EXEEXT
2304: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306: if test "${ac_cv_objext+set}" = set; then
2307: echo $ECHO_N "(cached) $ECHO_C" >&6
2308: else
2309: cat >conftest.$ac_ext <<_ACEOF
2310: #line $LINENO "configure"
2311: /* confdefs.h. */
2312: _ACEOF
2313: cat confdefs.h >>conftest.$ac_ext
2314: cat >>conftest.$ac_ext <<_ACEOF
2315: /* end confdefs.h. */
2316:
2317: int
2318: main ()
2319: {
2320:
2321: ;
2322: return 0;
2323: }
2324: _ACEOF
2325: rm -f conftest.o conftest.obj
2326: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327: (eval $ac_compile) 2>&5
2328: ac_status=$?
2329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330: (exit $ac_status); }; then
2331: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332: case $ac_file in
2333: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335: break;;
2336: esac
2337: done
1.1 parser 2338: else
1.15 paf 2339: echo "$as_me: failed program was:" >&5
2340: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2341:
1.15 paf 2342: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343: See \`config.log' for more details." >&5
2344: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345: See \`config.log' for more details." >&2;}
2346: { (exit 1); exit 1; }; }
2347: fi
2348:
2349: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350: fi
2351: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352: echo "${ECHO_T}$ac_cv_objext" >&6
2353: OBJEXT=$ac_cv_objext
2354: ac_objext=$OBJEXT
2355: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2356: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2357: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2358: echo $ECHO_N "(cached) $ECHO_C" >&6
2359: else
2360: cat >conftest.$ac_ext <<_ACEOF
2361: #line $LINENO "configure"
2362: /* confdefs.h. */
2363: _ACEOF
2364: cat confdefs.h >>conftest.$ac_ext
2365: cat >>conftest.$ac_ext <<_ACEOF
2366: /* end confdefs.h. */
2367:
2368: int
2369: main ()
2370: {
2371: #ifndef __GNUC__
2372: choke me
2373: #endif
1.1 parser 2374:
1.15 paf 2375: ;
2376: return 0;
2377: }
2378: _ACEOF
2379: rm -f conftest.$ac_objext
2380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381: (eval $ac_compile) 2>&5
2382: ac_status=$?
2383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384: (exit $ac_status); } &&
2385: { ac_try='test -s conftest.$ac_objext'
2386: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387: (eval $ac_try) 2>&5
2388: ac_status=$?
2389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390: (exit $ac_status); }; }; then
2391: ac_compiler_gnu=yes
2392: else
2393: echo "$as_me: failed program was:" >&5
2394: sed 's/^/| /' conftest.$ac_ext >&5
2395:
2396: ac_compiler_gnu=no
2397: fi
2398: rm -f conftest.$ac_objext conftest.$ac_ext
2399: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2400:
2401: fi
2402: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2403: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2404: GXX=`test $ac_compiler_gnu = yes && echo yes`
2405: ac_test_CXXFLAGS=${CXXFLAGS+set}
2406: ac_save_CXXFLAGS=$CXXFLAGS
2407: CXXFLAGS="-g"
2408: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2409: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2410: if test "${ac_cv_prog_cxx_g+set}" = set; then
2411: echo $ECHO_N "(cached) $ECHO_C" >&6
2412: else
2413: cat >conftest.$ac_ext <<_ACEOF
2414: #line $LINENO "configure"
2415: /* confdefs.h. */
2416: _ACEOF
2417: cat confdefs.h >>conftest.$ac_ext
2418: cat >>conftest.$ac_ext <<_ACEOF
2419: /* end confdefs.h. */
2420:
2421: int
2422: main ()
2423: {
2424:
2425: ;
2426: return 0;
2427: }
2428: _ACEOF
2429: rm -f conftest.$ac_objext
2430: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431: (eval $ac_compile) 2>&5
2432: ac_status=$?
2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); } &&
2435: { ac_try='test -s conftest.$ac_objext'
2436: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437: (eval $ac_try) 2>&5
2438: ac_status=$?
2439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440: (exit $ac_status); }; }; then
2441: ac_cv_prog_cxx_g=yes
1.1 parser 2442: else
1.15 paf 2443: echo "$as_me: failed program was:" >&5
2444: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2445:
1.15 paf 2446: ac_cv_prog_cxx_g=no
1.1 parser 2447: fi
1.15 paf 2448: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 2449: fi
1.15 paf 2450: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2451: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2452: if test "$ac_test_CXXFLAGS" = set; then
1.15 paf 2453: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2454: elif test $ac_cv_prog_cxx_g = yes; then
2455: if test "$GXX" = yes; then
2456: CXXFLAGS="-g -O2"
2457: else
2458: CXXFLAGS="-g"
2459: fi
2460: else
2461: if test "$GXX" = yes; then
2462: CXXFLAGS="-O2"
2463: else
2464: CXXFLAGS=
2465: fi
2466: fi
1.15 paf 2467: for ac_declaration in \
2468: ''\
2469: '#include <stdlib.h>' \
2470: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2471: 'extern "C" void std::exit (int); using std::exit;' \
2472: 'extern "C" void exit (int) throw ();' \
2473: 'extern "C" void exit (int);' \
2474: 'void exit (int);'
2475: do
2476: cat >conftest.$ac_ext <<_ACEOF
2477: #line $LINENO "configure"
2478: /* confdefs.h. */
2479: _ACEOF
2480: cat confdefs.h >>conftest.$ac_ext
2481: cat >>conftest.$ac_ext <<_ACEOF
2482: /* end confdefs.h. */
2483: #include <stdlib.h>
2484: $ac_declaration
2485: int
2486: main ()
2487: {
2488: exit (42);
2489: ;
2490: return 0;
2491: }
2492: _ACEOF
2493: rm -f conftest.$ac_objext
2494: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495: (eval $ac_compile) 2>&5
2496: ac_status=$?
2497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498: (exit $ac_status); } &&
2499: { ac_try='test -s conftest.$ac_objext'
2500: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501: (eval $ac_try) 2>&5
2502: ac_status=$?
2503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504: (exit $ac_status); }; }; then
2505: :
2506: else
2507: echo "$as_me: failed program was:" >&5
2508: sed 's/^/| /' conftest.$ac_ext >&5
2509:
2510: continue
2511: fi
2512: rm -f conftest.$ac_objext conftest.$ac_ext
2513: cat >conftest.$ac_ext <<_ACEOF
2514: #line $LINENO "configure"
2515: /* confdefs.h. */
2516: _ACEOF
2517: cat confdefs.h >>conftest.$ac_ext
2518: cat >>conftest.$ac_ext <<_ACEOF
2519: /* end confdefs.h. */
2520: $ac_declaration
2521: int
2522: main ()
2523: {
2524: exit (42);
2525: ;
2526: return 0;
2527: }
2528: _ACEOF
2529: rm -f conftest.$ac_objext
2530: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531: (eval $ac_compile) 2>&5
2532: ac_status=$?
2533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534: (exit $ac_status); } &&
2535: { ac_try='test -s conftest.$ac_objext'
2536: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537: (eval $ac_try) 2>&5
2538: ac_status=$?
2539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540: (exit $ac_status); }; }; then
2541: break
2542: else
2543: echo "$as_me: failed program was:" >&5
2544: sed 's/^/| /' conftest.$ac_ext >&5
2545:
2546: fi
2547: rm -f conftest.$ac_objext conftest.$ac_ext
2548: done
2549: rm -f conftest*
2550: if test -n "$ac_declaration"; then
2551: echo '#ifdef __cplusplus' >>confdefs.h
2552: echo $ac_declaration >>confdefs.h
2553: echo '#endif' >>confdefs.h
2554: fi
2555:
2556: ac_ext=cc
2557: ac_cpp='$CXXCPP $CPPFLAGS'
2558: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2561: rm -f .deps 2>/dev/null
2562: mkdir .deps 2>/dev/null
2563: if test -d .deps; then
2564: DEPDIR=.deps
2565: else
2566: # MS-DOS does not allow filenames that begin with a dot.
2567: DEPDIR=_deps
2568: fi
2569: rmdir .deps 2>/dev/null
2570:
2571:
2572: ac_config_commands="$ac_config_commands depfiles"
2573:
2574:
2575: am_make=${MAKE-make}
2576: cat > confinc << 'END'
2577: doit:
2578: @echo done
2579: END
2580: # If we don't find an include directive, just comment out the code.
2581: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2582: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2583: am__include="#"
2584: am__quote=
2585: _am_result=none
2586: # First try GNU make style include.
2587: echo "include confinc" > confmf
2588: # We grep out `Entering directory' and `Leaving directory'
2589: # messages which can occur if `w' ends up in MAKEFLAGS.
2590: # In particular we don't look at `^make:' because GNU make might
2591: # be invoked under some other name (usually "gmake"), in which
2592: # case it prints its new name instead of `make'.
2593: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2594: am__include=include
2595: am__quote=
2596: _am_result=GNU
2597: fi
2598: # Now try BSD make style include.
2599: if test "$am__include" = "#"; then
2600: echo '.include "confinc"' > confmf
2601: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2602: am__include=.include
2603: am__quote="\""
2604: _am_result=BSD
2605: fi
2606: fi
2607:
2608:
2609: echo "$as_me:$LINENO: result: $_am_result" >&5
2610: echo "${ECHO_T}$_am_result" >&6
2611: rm -f confinc confmf
2612:
2613: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2614: if test "${enable_dependency_tracking+set}" = set; then
2615: enableval="$enable_dependency_tracking"
2616:
2617: fi;
2618: if test "x$enable_dependency_tracking" != xno; then
2619: am_depcomp="$ac_aux_dir/depcomp"
2620: AMDEPBACKSLASH='\'
2621: fi
2622:
2623:
2624: if test "x$enable_dependency_tracking" != xno; then
2625: AMDEP_TRUE=
2626: AMDEP_FALSE='#'
2627: else
2628: AMDEP_TRUE='#'
2629: AMDEP_FALSE=
2630: fi
2631:
2632:
2633:
2634:
2635: depcc="$CXX" am_compiler_list=
2636:
2637: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2638: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2639: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2640: echo $ECHO_N "(cached) $ECHO_C" >&6
2641: else
2642: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2643: # We make a subdir and do the tests there. Otherwise we can end up
2644: # making bogus files that we don't know about and never remove. For
2645: # instance it was reported that on HP-UX the gcc test will end up
2646: # making a dummy file named `D' -- because `-MD' means `put the output
2647: # in D'.
2648: mkdir conftest.dir
2649: # Copy depcomp to subdir because otherwise we won't find it if we're
2650: # using a relative directory.
2651: cp "$am_depcomp" conftest.dir
2652: cd conftest.dir
2653:
2654: am_cv_CXX_dependencies_compiler_type=none
2655: if test "$am_compiler_list" = ""; then
2656: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2657: fi
2658: for depmode in $am_compiler_list; do
2659: # We need to recreate these files for each test, as the compiler may
2660: # overwrite some of them when testing with obscure command lines.
2661: # This happens at least with the AIX C compiler.
2662: echo '#include "conftest.h"' > conftest.c
2663: echo 'int i;' > conftest.h
2664: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2665:
2666: case $depmode in
2667: nosideeffect)
2668: # after this tag, mechanisms are not by side-effect, so they'll
2669: # only be used when explicitly requested
2670: if test "x$enable_dependency_tracking" = xyes; then
2671: continue
2672: else
2673: break
2674: fi
2675: ;;
2676: none) break ;;
2677: esac
2678: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2679: # mode. It turns out that the SunPro C++ compiler does not properly
2680: # handle `-M -o', and we need to detect this.
2681: if depmode=$depmode \
2682: source=conftest.c object=conftest.o \
2683: depfile=conftest.Po tmpdepfile=conftest.TPo \
2684: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2685: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2686: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2687: am_cv_CXX_dependencies_compiler_type=$depmode
2688: break
2689: fi
2690: done
2691:
2692: cd ..
2693: rm -rf conftest.dir
2694: else
2695: am_cv_CXX_dependencies_compiler_type=none
2696: fi
2697:
2698: fi
2699: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2700: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2701: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2702:
2703:
2704:
2705: if
2706: test "x$enable_dependency_tracking" != xno \
2707: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2708: am__fastdepCXX_TRUE=
2709: am__fastdepCXX_FALSE='#'
2710: else
2711: am__fastdepCXX_TRUE='#'
2712: am__fastdepCXX_FALSE=
2713: fi
2714:
1.1 parser 2715:
2716:
1.15 paf 2717: case $enable_ltdl_convenience in
2718: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
2719: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
2720: { (exit 1); exit 1; }; } ;;
2721: "") enable_ltdl_convenience=yes
2722: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2723: esac
1.1 parser 2724: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1.15 paf 2725: LTDLINCL='-I${top_srcdir}/''libltdl'
2726: # For backwards non-gettext consistent compatibility...
2727: INCLTDL="$LTDLINCL"
1.1 parser 2728:
2729:
2730:
2731:
1.9 paf 2732: # Check whether --enable-static or --disable-static was given.
2733: if test "${enable_static+set}" = set; then
2734: enableval="$enable_static"
1.1 parser 2735: p=${PACKAGE-default}
1.15 paf 2736: case $enableval in
1.9 paf 2737: yes) enable_static=yes ;;
2738: no) enable_static=no ;;
1.1 parser 2739: *)
1.9 paf 2740: enable_static=no
1.1 parser 2741: # Look at the argument we got. We use all the common list separators.
2742: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2743: for pkg in $enableval; do
2744: if test "X$pkg" = "X$p"; then
1.9 paf 2745: enable_static=yes
1.1 parser 2746: fi
2747: done
2748: IFS="$ac_save_ifs"
2749: ;;
2750: esac
2751: else
1.9 paf 2752: enable_static=no
1.15 paf 2753: fi;
1.11 paf 2754:
1.9 paf 2755: # Check whether --enable-shared or --disable-shared was given.
2756: if test "${enable_shared+set}" = set; then
2757: enableval="$enable_shared"
1.1 parser 2758: p=${PACKAGE-default}
1.15 paf 2759: case $enableval in
1.9 paf 2760: yes) enable_shared=yes ;;
2761: no) enable_shared=no ;;
1.1 parser 2762: *)
1.9 paf 2763: enable_shared=no
1.1 parser 2764: # Look at the argument we got. We use all the common list separators.
2765: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2766: for pkg in $enableval; do
2767: if test "X$pkg" = "X$p"; then
1.9 paf 2768: enable_shared=yes
1.1 parser 2769: fi
2770: done
2771: IFS="$ac_save_ifs"
2772: ;;
2773: esac
2774: else
1.9 paf 2775: enable_shared=yes
1.15 paf 2776: fi;
1.1 parser 2777: # Check whether --enable-fast-install or --disable-fast-install was given.
2778: if test "${enable_fast_install+set}" = set; then
2779: enableval="$enable_fast_install"
2780: p=${PACKAGE-default}
1.15 paf 2781: case $enableval in
1.1 parser 2782: yes) enable_fast_install=yes ;;
2783: no) enable_fast_install=no ;;
2784: *)
2785: enable_fast_install=no
2786: # Look at the argument we got. We use all the common list separators.
2787: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2788: for pkg in $enableval; do
2789: if test "X$pkg" = "X$p"; then
2790: enable_fast_install=yes
2791: fi
2792: done
2793: IFS="$ac_save_ifs"
2794: ;;
2795: esac
2796: else
2797: enable_fast_install=yes
1.15 paf 2798: fi;
1.1 parser 2799: # Make sure we can run config.sub.
1.15 paf 2800: $ac_config_sub sun4 >/dev/null 2>&1 ||
2801: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2802: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2803: { (exit 1); exit 1; }; }
2804:
2805: echo "$as_me:$LINENO: checking build system type" >&5
2806: echo $ECHO_N "checking build system type... $ECHO_C" >&6
2807: if test "${ac_cv_build+set}" = set; then
2808: echo $ECHO_N "(cached) $ECHO_C" >&6
2809: else
2810: ac_cv_build_alias=$build_alias
2811: test -z "$ac_cv_build_alias" &&
2812: ac_cv_build_alias=`$ac_config_guess`
2813: test -z "$ac_cv_build_alias" &&
2814: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2815: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2816: { (exit 1); exit 1; }; }
2817: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2818: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2819: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2820: { (exit 1); exit 1; }; }
2821:
2822: fi
2823: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2824: echo "${ECHO_T}$ac_cv_build" >&6
2825: build=$ac_cv_build
2826: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2827: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2828: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2829:
2830:
2831: echo "$as_me:$LINENO: checking host system type" >&5
2832: echo $ECHO_N "checking host system type... $ECHO_C" >&6
2833: if test "${ac_cv_host+set}" = set; then
2834: echo $ECHO_N "(cached) $ECHO_C" >&6
2835: else
2836: ac_cv_host_alias=$host_alias
2837: test -z "$ac_cv_host_alias" &&
2838: ac_cv_host_alias=$ac_cv_build_alias
2839: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2840: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2841: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2842: { (exit 1); exit 1; }; }
2843:
2844: fi
2845: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2846: echo "${ECHO_T}$ac_cv_host" >&6
2847: host=$ac_cv_host
2848: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2849: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2850: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 parser 2851:
2852:
1.15 paf 2853: ac_ext=c
2854: ac_cpp='$CPP $CPPFLAGS'
2855: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858: if test -n "$ac_tool_prefix"; then
2859: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2860: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2861: echo "$as_me:$LINENO: checking for $ac_word" >&5
2862: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863: if test "${ac_cv_prog_CC+set}" = set; then
2864: echo $ECHO_N "(cached) $ECHO_C" >&6
2865: else
2866: if test -n "$CC"; then
2867: ac_cv_prog_CC="$CC" # Let the user override the test.
2868: else
2869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870: for as_dir in $PATH
2871: do
2872: IFS=$as_save_IFS
2873: test -z "$as_dir" && as_dir=.
2874: for ac_exec_ext in '' $ac_executable_extensions; do
2875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878: break 2
2879: fi
2880: done
2881: done
1.1 parser 2882:
1.15 paf 2883: fi
2884: fi
2885: CC=$ac_cv_prog_CC
2886: if test -n "$CC"; then
2887: echo "$as_me:$LINENO: result: $CC" >&5
2888: echo "${ECHO_T}$CC" >&6
2889: else
2890: echo "$as_me:$LINENO: result: no" >&5
2891: echo "${ECHO_T}no" >&6
2892: fi
1.1 parser 2893:
1.15 paf 2894: fi
2895: if test -z "$ac_cv_prog_CC"; then
2896: ac_ct_CC=$CC
2897: # Extract the first word of "gcc", so it can be a program name with args.
2898: set dummy gcc; ac_word=$2
2899: echo "$as_me:$LINENO: checking for $ac_word" >&5
2900: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2901: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2903: else
1.15 paf 2904: if test -n "$ac_ct_CC"; then
2905: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2906: else
1.15 paf 2907: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908: for as_dir in $PATH
2909: do
2910: IFS=$as_save_IFS
2911: test -z "$as_dir" && as_dir=.
2912: for ac_exec_ext in '' $ac_executable_extensions; do
2913: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914: ac_cv_prog_ac_ct_CC="gcc"
2915: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916: break 2
2917: fi
2918: done
2919: done
2920:
2921: fi
1.1 parser 2922: fi
1.15 paf 2923: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924: if test -n "$ac_ct_CC"; then
2925: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2926: echo "${ECHO_T}$ac_ct_CC" >&6
2927: else
2928: echo "$as_me:$LINENO: result: no" >&5
2929: echo "${ECHO_T}no" >&6
1.1 parser 2930: fi
1.15 paf 2931:
2932: CC=$ac_ct_CC
1.1 parser 2933: else
1.15 paf 2934: CC="$ac_cv_prog_CC"
1.1 parser 2935: fi
2936:
1.15 paf 2937: if test -z "$CC"; then
2938: if test -n "$ac_tool_prefix"; then
2939: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940: set dummy ${ac_tool_prefix}cc; ac_word=$2
2941: echo "$as_me:$LINENO: checking for $ac_word" >&5
2942: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943: if test "${ac_cv_prog_CC+set}" = set; then
2944: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2945: else
2946: if test -n "$CC"; then
2947: ac_cv_prog_CC="$CC" # Let the user override the test.
2948: else
1.15 paf 2949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950: for as_dir in $PATH
2951: do
2952: IFS=$as_save_IFS
2953: test -z "$as_dir" && as_dir=.
2954: for ac_exec_ext in '' $ac_executable_extensions; do
2955: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956: ac_cv_prog_CC="${ac_tool_prefix}cc"
2957: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958: break 2
2959: fi
2960: done
2961: done
2962:
1.1 parser 2963: fi
2964: fi
1.15 paf 2965: CC=$ac_cv_prog_CC
1.1 parser 2966: if test -n "$CC"; then
1.15 paf 2967: echo "$as_me:$LINENO: result: $CC" >&5
2968: echo "${ECHO_T}$CC" >&6
2969: else
2970: echo "$as_me:$LINENO: result: no" >&5
2971: echo "${ECHO_T}no" >&6
2972: fi
2973:
2974: fi
2975: if test -z "$ac_cv_prog_CC"; then
2976: ac_ct_CC=$CC
2977: # Extract the first word of "cc", so it can be a program name with args.
2978: set dummy cc; ac_word=$2
2979: echo "$as_me:$LINENO: checking for $ac_word" >&5
2980: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2981: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2982: echo $ECHO_N "(cached) $ECHO_C" >&6
2983: else
2984: if test -n "$ac_ct_CC"; then
2985: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986: else
2987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988: for as_dir in $PATH
2989: do
2990: IFS=$as_save_IFS
2991: test -z "$as_dir" && as_dir=.
2992: for ac_exec_ext in '' $ac_executable_extensions; do
2993: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994: ac_cv_prog_ac_ct_CC="cc"
2995: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996: break 2
2997: fi
2998: done
2999: done
3000:
3001: fi
3002: fi
3003: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004: if test -n "$ac_ct_CC"; then
3005: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006: echo "${ECHO_T}$ac_ct_CC" >&6
3007: else
3008: echo "$as_me:$LINENO: result: no" >&5
3009: echo "${ECHO_T}no" >&6
3010: fi
3011:
3012: CC=$ac_ct_CC
1.1 parser 3013: else
1.15 paf 3014: CC="$ac_cv_prog_CC"
1.1 parser 3015: fi
3016:
1.15 paf 3017: fi
1.1 parser 3018: if test -z "$CC"; then
3019: # Extract the first word of "cc", so it can be a program name with args.
3020: set dummy cc; ac_word=$2
1.15 paf 3021: echo "$as_me:$LINENO: checking for $ac_word" >&5
3022: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023: if test "${ac_cv_prog_CC+set}" = set; then
3024: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3025: else
3026: if test -n "$CC"; then
3027: ac_cv_prog_CC="$CC" # Let the user override the test.
3028: else
3029: ac_prog_rejected=no
1.15 paf 3030: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031: for as_dir in $PATH
3032: do
3033: IFS=$as_save_IFS
3034: test -z "$as_dir" && as_dir=.
3035: for ac_exec_ext in '' $ac_executable_extensions; do
3036: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038: ac_prog_rejected=yes
3039: continue
3040: fi
3041: ac_cv_prog_CC="cc"
3042: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043: break 2
3044: fi
3045: done
3046: done
3047:
1.1 parser 3048: if test $ac_prog_rejected = yes; then
3049: # We found a bogon in the path, so make sure we never use it.
3050: set dummy $ac_cv_prog_CC
3051: shift
1.15 paf 3052: if test $# != 0; then
1.1 parser 3053: # We chose a different compiler from the bogus one.
3054: # However, it has the same basename, so the bogon will be chosen
3055: # first if we set CC to just the basename; use the full file name.
3056: shift
1.15 paf 3057: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 3058: fi
3059: fi
3060: fi
3061: fi
1.15 paf 3062: CC=$ac_cv_prog_CC
1.1 parser 3063: if test -n "$CC"; then
1.15 paf 3064: echo "$as_me:$LINENO: result: $CC" >&5
3065: echo "${ECHO_T}$CC" >&6
1.1 parser 3066: else
1.15 paf 3067: echo "$as_me:$LINENO: result: no" >&5
3068: echo "${ECHO_T}no" >&6
1.1 parser 3069: fi
3070:
1.15 paf 3071: fi
3072: if test -z "$CC"; then
3073: if test -n "$ac_tool_prefix"; then
3074: for ac_prog in cl
3075: do
3076: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078: echo "$as_me:$LINENO: checking for $ac_word" >&5
3079: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080: if test "${ac_cv_prog_CC+set}" = set; then
3081: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3082: else
3083: if test -n "$CC"; then
3084: ac_cv_prog_CC="$CC" # Let the user override the test.
3085: else
1.15 paf 3086: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087: for as_dir in $PATH
3088: do
3089: IFS=$as_save_IFS
3090: test -z "$as_dir" && as_dir=.
3091: for ac_exec_ext in '' $ac_executable_extensions; do
3092: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095: break 2
3096: fi
3097: done
3098: done
3099:
1.1 parser 3100: fi
3101: fi
1.15 paf 3102: CC=$ac_cv_prog_CC
1.1 parser 3103: if test -n "$CC"; then
1.15 paf 3104: echo "$as_me:$LINENO: result: $CC" >&5
3105: echo "${ECHO_T}$CC" >&6
1.1 parser 3106: else
1.15 paf 3107: echo "$as_me:$LINENO: result: no" >&5
3108: echo "${ECHO_T}no" >&6
3109: fi
3110:
3111: test -n "$CC" && break
3112: done
1.1 parser 3113: fi
1.15 paf 3114: if test -z "$CC"; then
3115: ac_ct_CC=$CC
3116: for ac_prog in cl
3117: do
3118: # Extract the first word of "$ac_prog", so it can be a program name with args.
3119: set dummy $ac_prog; ac_word=$2
3120: echo "$as_me:$LINENO: checking for $ac_word" >&5
3121: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3123: echo $ECHO_N "(cached) $ECHO_C" >&6
3124: else
3125: if test -n "$ac_ct_CC"; then
3126: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127: else
3128: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129: for as_dir in $PATH
3130: do
3131: IFS=$as_save_IFS
3132: test -z "$as_dir" && as_dir=.
3133: for ac_exec_ext in '' $ac_executable_extensions; do
3134: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135: ac_cv_prog_ac_ct_CC="$ac_prog"
3136: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137: break 2
1.1 parser 3138: fi
1.15 paf 3139: done
3140: done
3141:
3142: fi
3143: fi
3144: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145: if test -n "$ac_ct_CC"; then
3146: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3147: echo "${ECHO_T}$ac_ct_CC" >&6
3148: else
3149: echo "$as_me:$LINENO: result: no" >&5
3150: echo "${ECHO_T}no" >&6
1.1 parser 3151: fi
3152:
1.15 paf 3153: test -n "$ac_ct_CC" && break
3154: done
1.1 parser 3155:
1.15 paf 3156: CC=$ac_ct_CC
3157: fi
1.1 parser 3158:
1.15 paf 3159: fi
1.1 parser 3160:
3161:
1.15 paf 3162: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3163: See \`config.log' for more details." >&5
3164: echo "$as_me: error: no acceptable C compiler found in \$PATH
3165: See \`config.log' for more details." >&2;}
3166: { (exit 1); exit 1; }; }
3167:
3168: # Provide some information about the compiler.
3169: echo "$as_me:$LINENO:" \
3170: "checking for C compiler version" >&5
3171: ac_compiler=`set X $ac_compile; echo $2`
3172: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3173: (eval $ac_compiler --version </dev/null >&5) 2>&5
3174: ac_status=$?
3175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176: (exit $ac_status); }
3177: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3178: (eval $ac_compiler -v </dev/null >&5) 2>&5
3179: ac_status=$?
3180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181: (exit $ac_status); }
3182: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3183: (eval $ac_compiler -V </dev/null >&5) 2>&5
3184: ac_status=$?
3185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186: (exit $ac_status); }
3187:
3188: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3189: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3190: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3191: echo $ECHO_N "(cached) $ECHO_C" >&6
3192: else
3193: cat >conftest.$ac_ext <<_ACEOF
3194: #line $LINENO "configure"
3195: /* confdefs.h. */
3196: _ACEOF
3197: cat confdefs.h >>conftest.$ac_ext
3198: cat >>conftest.$ac_ext <<_ACEOF
3199: /* end confdefs.h. */
3200:
3201: int
3202: main ()
3203: {
3204: #ifndef __GNUC__
3205: choke me
1.1 parser 3206: #endif
3207:
1.15 paf 3208: ;
3209: return 0;
3210: }
3211: _ACEOF
3212: rm -f conftest.$ac_objext
3213: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214: (eval $ac_compile) 2>&5
3215: ac_status=$?
3216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217: (exit $ac_status); } &&
3218: { ac_try='test -s conftest.$ac_objext'
3219: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220: (eval $ac_try) 2>&5
3221: ac_status=$?
3222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223: (exit $ac_status); }; }; then
3224: ac_compiler_gnu=yes
3225: else
3226: echo "$as_me: failed program was:" >&5
3227: sed 's/^/| /' conftest.$ac_ext >&5
3228:
3229: ac_compiler_gnu=no
3230: fi
3231: rm -f conftest.$ac_objext conftest.$ac_ext
3232: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3233:
3234: fi
3235: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3236: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3237: GCC=`test $ac_compiler_gnu = yes && echo yes`
3238: ac_test_CFLAGS=${CFLAGS+set}
3239: ac_save_CFLAGS=$CFLAGS
3240: CFLAGS="-g"
3241: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3243: if test "${ac_cv_prog_cc_g+set}" = set; then
3244: echo $ECHO_N "(cached) $ECHO_C" >&6
3245: else
3246: cat >conftest.$ac_ext <<_ACEOF
3247: #line $LINENO "configure"
3248: /* confdefs.h. */
3249: _ACEOF
3250: cat confdefs.h >>conftest.$ac_ext
3251: cat >>conftest.$ac_ext <<_ACEOF
3252: /* end confdefs.h. */
3253:
3254: int
3255: main ()
3256: {
3257:
3258: ;
3259: return 0;
3260: }
3261: _ACEOF
3262: rm -f conftest.$ac_objext
3263: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264: (eval $ac_compile) 2>&5
3265: ac_status=$?
3266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267: (exit $ac_status); } &&
3268: { ac_try='test -s conftest.$ac_objext'
3269: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270: (eval $ac_try) 2>&5
3271: ac_status=$?
3272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273: (exit $ac_status); }; }; then
3274: ac_cv_prog_cc_g=yes
1.1 parser 3275: else
1.15 paf 3276: echo "$as_me: failed program was:" >&5
3277: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3278:
1.15 paf 3279: ac_cv_prog_cc_g=no
1.1 parser 3280: fi
1.15 paf 3281: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 3282: fi
1.15 paf 3283: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3285: if test "$ac_test_CFLAGS" = set; then
1.15 paf 3286: CFLAGS=$ac_save_CFLAGS
1.1 parser 3287: elif test $ac_cv_prog_cc_g = yes; then
3288: if test "$GCC" = yes; then
3289: CFLAGS="-g -O2"
3290: else
3291: CFLAGS="-g"
3292: fi
3293: else
3294: if test "$GCC" = yes; then
3295: CFLAGS="-O2"
3296: else
3297: CFLAGS=
3298: fi
3299: fi
1.15 paf 3300: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3301: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3302: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3303: echo $ECHO_N "(cached) $ECHO_C" >&6
3304: else
3305: ac_cv_prog_cc_stdc=no
3306: ac_save_CC=$CC
3307: cat >conftest.$ac_ext <<_ACEOF
3308: #line $LINENO "configure"
3309: /* confdefs.h. */
3310: _ACEOF
3311: cat confdefs.h >>conftest.$ac_ext
3312: cat >>conftest.$ac_ext <<_ACEOF
3313: /* end confdefs.h. */
3314: #include <stdarg.h>
3315: #include <stdio.h>
3316: #include <sys/types.h>
3317: #include <sys/stat.h>
3318: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3319: struct buf { int x; };
3320: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3321: static char *e (p, i)
3322: char **p;
3323: int i;
3324: {
3325: return p[i];
3326: }
3327: static char *f (char * (*g) (char **, int), char **p, ...)
3328: {
3329: char *s;
3330: va_list v;
3331: va_start (v,p);
3332: s = g (p, va_arg (v,int));
3333: va_end (v);
3334: return s;
3335: }
3336: int test (int i, double x);
3337: struct s1 {int (*f) (int a);};
3338: struct s2 {int (*f) (double a);};
3339: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3340: int argc;
3341: char **argv;
3342: int
3343: main ()
3344: {
3345: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3346: ;
3347: return 0;
3348: }
3349: _ACEOF
3350: # Don't try gcc -ansi; that turns off useful extensions and
3351: # breaks some systems' header files.
3352: # AIX -qlanglvl=ansi
3353: # Ultrix and OSF/1 -std1
3354: # HP-UX 10.20 and later -Ae
3355: # HP-UX older versions -Aa -D_HPUX_SOURCE
3356: # SVR4 -Xc -D__EXTENSIONS__
3357: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3358: do
3359: CC="$ac_save_CC $ac_arg"
3360: rm -f conftest.$ac_objext
3361: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362: (eval $ac_compile) 2>&5
3363: ac_status=$?
3364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365: (exit $ac_status); } &&
3366: { ac_try='test -s conftest.$ac_objext'
3367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368: (eval $ac_try) 2>&5
3369: ac_status=$?
3370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371: (exit $ac_status); }; }; then
3372: ac_cv_prog_cc_stdc=$ac_arg
3373: break
3374: else
3375: echo "$as_me: failed program was:" >&5
3376: sed 's/^/| /' conftest.$ac_ext >&5
3377:
3378: fi
3379: rm -f conftest.$ac_objext
3380: done
3381: rm -f conftest.$ac_ext conftest.$ac_objext
3382: CC=$ac_save_CC
3383:
3384: fi
3385:
3386: case "x$ac_cv_prog_cc_stdc" in
3387: x|xno)
3388: echo "$as_me:$LINENO: result: none needed" >&5
3389: echo "${ECHO_T}none needed" >&6 ;;
3390: *)
3391: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3392: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3393: CC="$CC $ac_cv_prog_cc_stdc" ;;
3394: esac
3395:
3396: # Some people use a C++ compiler to compile C. Since we use `exit',
3397: # in C++ we need to declare it. In case someone uses the same compiler
3398: # for both compiling C and C++ we need to have the C++ compiler decide
3399: # the declaration of exit, since it's the most demanding environment.
3400: cat >conftest.$ac_ext <<_ACEOF
3401: #ifndef __cplusplus
3402: choke me
3403: #endif
3404: _ACEOF
3405: rm -f conftest.$ac_objext
3406: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407: (eval $ac_compile) 2>&5
3408: ac_status=$?
3409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410: (exit $ac_status); } &&
3411: { ac_try='test -s conftest.$ac_objext'
3412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413: (eval $ac_try) 2>&5
3414: ac_status=$?
3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416: (exit $ac_status); }; }; then
3417: for ac_declaration in \
3418: ''\
3419: '#include <stdlib.h>' \
3420: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3421: 'extern "C" void std::exit (int); using std::exit;' \
3422: 'extern "C" void exit (int) throw ();' \
3423: 'extern "C" void exit (int);' \
3424: 'void exit (int);'
3425: do
3426: cat >conftest.$ac_ext <<_ACEOF
3427: #line $LINENO "configure"
3428: /* confdefs.h. */
3429: _ACEOF
3430: cat confdefs.h >>conftest.$ac_ext
3431: cat >>conftest.$ac_ext <<_ACEOF
3432: /* end confdefs.h. */
3433: #include <stdlib.h>
3434: $ac_declaration
3435: int
3436: main ()
3437: {
3438: exit (42);
3439: ;
3440: return 0;
3441: }
3442: _ACEOF
3443: rm -f conftest.$ac_objext
3444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445: (eval $ac_compile) 2>&5
3446: ac_status=$?
3447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448: (exit $ac_status); } &&
3449: { ac_try='test -s conftest.$ac_objext'
3450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451: (eval $ac_try) 2>&5
3452: ac_status=$?
3453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454: (exit $ac_status); }; }; then
3455: :
3456: else
3457: echo "$as_me: failed program was:" >&5
3458: sed 's/^/| /' conftest.$ac_ext >&5
3459:
3460: continue
3461: fi
3462: rm -f conftest.$ac_objext conftest.$ac_ext
3463: cat >conftest.$ac_ext <<_ACEOF
3464: #line $LINENO "configure"
3465: /* confdefs.h. */
3466: _ACEOF
3467: cat confdefs.h >>conftest.$ac_ext
3468: cat >>conftest.$ac_ext <<_ACEOF
3469: /* end confdefs.h. */
3470: $ac_declaration
3471: int
3472: main ()
3473: {
3474: exit (42);
3475: ;
3476: return 0;
3477: }
3478: _ACEOF
3479: rm -f conftest.$ac_objext
3480: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481: (eval $ac_compile) 2>&5
3482: ac_status=$?
3483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484: (exit $ac_status); } &&
3485: { ac_try='test -s conftest.$ac_objext'
3486: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487: (eval $ac_try) 2>&5
3488: ac_status=$?
3489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490: (exit $ac_status); }; }; then
3491: break
3492: else
3493: echo "$as_me: failed program was:" >&5
3494: sed 's/^/| /' conftest.$ac_ext >&5
3495:
3496: fi
3497: rm -f conftest.$ac_objext conftest.$ac_ext
3498: done
3499: rm -f conftest*
3500: if test -n "$ac_declaration"; then
3501: echo '#ifdef __cplusplus' >>confdefs.h
3502: echo $ac_declaration >>confdefs.h
3503: echo '#endif' >>confdefs.h
3504: fi
3505:
3506: else
3507: echo "$as_me: failed program was:" >&5
3508: sed 's/^/| /' conftest.$ac_ext >&5
3509:
3510: fi
3511: rm -f conftest.$ac_objext conftest.$ac_ext
3512: ac_ext=cc
3513: ac_cpp='$CXXCPP $CPPFLAGS'
3514: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3517:
3518: depcc="$CC" am_compiler_list=
3519:
3520: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3521: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3522: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3523: echo $ECHO_N "(cached) $ECHO_C" >&6
3524: else
3525: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3526: # We make a subdir and do the tests there. Otherwise we can end up
3527: # making bogus files that we don't know about and never remove. For
3528: # instance it was reported that on HP-UX the gcc test will end up
3529: # making a dummy file named `D' -- because `-MD' means `put the output
3530: # in D'.
3531: mkdir conftest.dir
3532: # Copy depcomp to subdir because otherwise we won't find it if we're
3533: # using a relative directory.
3534: cp "$am_depcomp" conftest.dir
3535: cd conftest.dir
3536:
3537: am_cv_CC_dependencies_compiler_type=none
3538: if test "$am_compiler_list" = ""; then
3539: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3540: fi
3541: for depmode in $am_compiler_list; do
3542: # We need to recreate these files for each test, as the compiler may
3543: # overwrite some of them when testing with obscure command lines.
3544: # This happens at least with the AIX C compiler.
3545: echo '#include "conftest.h"' > conftest.c
3546: echo 'int i;' > conftest.h
3547: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3548:
3549: case $depmode in
3550: nosideeffect)
3551: # after this tag, mechanisms are not by side-effect, so they'll
3552: # only be used when explicitly requested
3553: if test "x$enable_dependency_tracking" = xyes; then
3554: continue
3555: else
3556: break
3557: fi
3558: ;;
3559: none) break ;;
3560: esac
3561: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3562: # mode. It turns out that the SunPro C++ compiler does not properly
3563: # handle `-M -o', and we need to detect this.
3564: if depmode=$depmode \
3565: source=conftest.c object=conftest.o \
3566: depfile=conftest.Po tmpdepfile=conftest.TPo \
3567: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3568: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3569: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3570: am_cv_CC_dependencies_compiler_type=$depmode
3571: break
3572: fi
3573: done
3574:
3575: cd ..
3576: rm -rf conftest.dir
3577: else
3578: am_cv_CC_dependencies_compiler_type=none
3579: fi
3580:
3581: fi
3582: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3583: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3584: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3585:
3586:
3587:
3588: if
3589: test "x$enable_dependency_tracking" != xno \
3590: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3591: am__fastdepCC_TRUE=
3592: am__fastdepCC_FALSE='#'
3593: else
3594: am__fastdepCC_TRUE='#'
3595: am__fastdepCC_FALSE=
3596: fi
3597:
3598:
3599: # Find the correct PATH separator. Usually this is `:', but
3600: # DJGPP uses `;' like DOS.
3601: if test "X${PATH_SEPARATOR+set}" != Xset; then
3602: UNAME=${UNAME-`uname 2>/dev/null`}
3603: case X$UNAME in
3604: *-DOS) lt_cv_sys_path_separator=';' ;;
3605: *) lt_cv_sys_path_separator=':' ;;
3606: esac
3607: PATH_SEPARATOR=$lt_cv_sys_path_separator
3608: fi
3609:
1.1 parser 3610:
3611: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3612: if test "${with_gnu_ld+set}" = set; then
3613: withval="$with_gnu_ld"
3614: test "$withval" = no || with_gnu_ld=yes
3615: else
3616: with_gnu_ld=no
1.15 paf 3617: fi;
1.1 parser 3618: ac_prog=ld
1.15 paf 3619: if test "$GCC" = yes; then
1.1 parser 3620: # Check if gcc -print-prog-name=ld gives a path.
1.15 paf 3621: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3622: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3623: case $host in
3624: *-*-mingw*)
3625: # gcc leaves a trailing carriage return which upsets mingw
3626: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3627: *)
3628: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3629: esac
3630: case $ac_prog in
1.1 parser 3631: # Accept absolute paths.
3632: [\\/]* | [A-Za-z]:[\\/]*)
3633: re_direlt='/[^/][^/]*/\.\./'
3634: # Canonicalize the path of ld
3635: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3636: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3637: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3638: done
3639: test -z "$LD" && LD="$ac_prog"
3640: ;;
3641: "")
3642: # If it fails, then pretend we aren't using GCC.
3643: ac_prog=ld
3644: ;;
3645: *)
3646: # If it is relative, then search for the first ld in PATH.
3647: with_gnu_ld=unknown
3648: ;;
3649: esac
3650: elif test "$with_gnu_ld" = yes; then
1.15 paf 3651: echo "$as_me:$LINENO: checking for GNU ld" >&5
3652: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3653: else
1.15 paf 3654: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3655: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3656: fi
1.15 paf 3657: if test "${lt_cv_path_LD+set}" = set; then
3658: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3659: else
3660: if test -z "$LD"; then
1.15 paf 3661: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3662: for ac_dir in $PATH; do
3663: test -z "$ac_dir" && ac_dir=.
3664: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 3665: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3666: # Check to see if the program is GNU ld. I'd rather use --version,
3667: # but apparently some GNU ld's only accept -v.
3668: # Break only if it was the GNU/non-GNU ld that we prefer.
1.15 paf 3669: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1.1 parser 3670: test "$with_gnu_ld" != no && break
3671: else
3672: test "$with_gnu_ld" != yes && break
3673: fi
3674: fi
3675: done
3676: IFS="$ac_save_ifs"
3677: else
1.15 paf 3678: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3679: fi
3680: fi
3681:
1.15 paf 3682: LD="$lt_cv_path_LD"
1.1 parser 3683: if test -n "$LD"; then
1.15 paf 3684: echo "$as_me:$LINENO: result: $LD" >&5
3685: echo "${ECHO_T}$LD" >&6
1.1 parser 3686: else
1.15 paf 3687: echo "$as_me:$LINENO: result: no" >&5
3688: echo "${ECHO_T}no" >&6
1.1 parser 3689: fi
1.15 paf 3690: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3691: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3692: { (exit 1); exit 1; }; }
3693: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3694: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3695: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3696: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3697: else
3698: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3699: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1.15 paf 3700: lt_cv_prog_gnu_ld=yes
1.1 parser 3701: else
1.15 paf 3702: lt_cv_prog_gnu_ld=no
1.1 parser 3703: fi
3704: fi
1.15 paf 3705: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3706: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3707: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3708:
3709:
1.15 paf 3710: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3711: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3712: if test "${lt_cv_ld_reload_flag+set}" = set; then
3713: echo $ECHO_N "(cached) $ECHO_C" >&6
3714: else
3715: lt_cv_ld_reload_flag='-r'
3716: fi
3717: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3718: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3719: reload_flag=$lt_cv_ld_reload_flag
3720: test -n "$reload_flag" && reload_flag=" $reload_flag"
1.1 parser 3721:
1.15 paf 3722: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3723: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3724: if test "${lt_cv_path_NM+set}" = set; then
3725: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3726: else
3727: if test -n "$NM"; then
3728: # Let the user override the test.
1.15 paf 3729: lt_cv_path_NM="$NM"
1.1 parser 3730: else
1.15 paf 3731: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3732: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3733: test -z "$ac_dir" && ac_dir=.
1.15 paf 3734: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3735: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1.1 parser 3736: # Check to see if the nm accepts a BSD-compat flag.
3737: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3738: # nm: unknown option "B" ignored
1.15 paf 3739: # Tru64's nm complains that /dev/null is an invalid object file
3740: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3741: lt_cv_path_NM="$tmp_nm -B"
1.1 parser 3742: break
1.15 paf 3743: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3744: lt_cv_path_NM="$tmp_nm -p"
1.1 parser 3745: break
3746: else
1.15 paf 3747: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.1 parser 3748: continue # so that we can try to find one that supports BSD flags
3749: fi
3750: fi
3751: done
3752: IFS="$ac_save_ifs"
1.15 paf 3753: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.1 parser 3754: fi
3755: fi
3756:
1.15 paf 3757: NM="$lt_cv_path_NM"
3758: echo "$as_me:$LINENO: result: $NM" >&5
3759: echo "${ECHO_T}$NM" >&6
1.1 parser 3760:
1.15 paf 3761: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3762: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3763: if test "${lt_cv_path_SED+set}" = set; then
3764: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3765: else
1.15 paf 3766: # Loop through the user's path and test for sed and gsed.
3767: # Then use that list of sed's as ones to test for truncation.
3768: as_executable_p="test -f"
3769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770: for as_dir in $PATH
3771: do
3772: IFS=$as_save_IFS
3773: test -z "$as_dir" && as_dir=.
3774: for ac_prog in sed gsed; do
3775: for ac_exec_ext in '' $ac_executable_extensions; do
3776: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3777: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3778: fi
3779: done
3780: done
3781: done
3782:
3783: # Create a temporary directory, and hook for its removal unless debugging.
3784: $debug ||
3785: {
3786: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3787: trap '{ (exit 1); exit 1; }' 1 2 13 15
3788: }
3789:
3790: # Create a (secure) tmp directory for tmp files.
3791: : ${TMPDIR=/tmp}
3792: {
3793: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3794: test -n "$tmp" && test -d "$tmp"
3795: } ||
3796: {
3797: tmp=$TMPDIR/sed$$-$RANDOM
3798: (umask 077 && mkdir $tmp)
3799: } ||
3800: {
3801: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3802: { (exit 1); exit 1; }
3803: }
3804: _max=0
3805: _count=0
3806: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3807: # along with /bin/sed that truncates output.
3808: for _sed in $_sed_list /usr/xpg4/bin/sed; do
3809: test ! -f ${_sed} && break
3810: cat /dev/null > "$tmp/sed.in"
3811: _count=0
3812: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3813: # Check for GNU sed and select it if it is found.
3814: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3815: lt_cv_path_SED=${_sed}
3816: break
3817: fi
3818: while true; do
3819: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3820: mv "$tmp/sed.tmp" "$tmp/sed.in"
3821: cp "$tmp/sed.in" "$tmp/sed.nl"
3822: echo >>"$tmp/sed.nl"
3823: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3824: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3825: # 40000 chars as input seems more than enough
3826: test $_count -gt 10 && break
3827: _count=`expr $_count + 1`
3828: if test $_count -gt $_max; then
3829: _max=$_count
3830: lt_cv_path_SED=$_sed
3831: fi
3832: done
3833: done
3834: rm -rf "$tmp"
3835:
1.1 parser 3836: fi
3837:
1.15 paf 3838: if test "X$SED" != "X"; then
3839: lt_cv_path_SED=$SED
1.11 paf 3840: else
1.15 paf 3841: SED=$lt_cv_path_SED
1.11 paf 3842: fi
1.15 paf 3843: echo "$as_me:$LINENO: result: $SED" >&5
3844: echo "${ECHO_T}$SED" >&6
3845:
3846: echo "$as_me:$LINENO: checking whether ln -s works" >&5
3847: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3848: LN_S=$as_ln_s
3849: if test "$LN_S" = "ln -s"; then
3850: echo "$as_me:$LINENO: result: yes" >&5
3851: echo "${ECHO_T}yes" >&6
3852: else
3853: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3854: echo "${ECHO_T}no, using $LN_S" >&6
3855: fi
3856:
3857: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3858: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3859: if test "${lt_cv_deplibs_check_method+set}" = set; then
3860: echo $ECHO_N "(cached) $ECHO_C" >&6
3861: else
3862: lt_cv_file_magic_cmd='$MAGIC_CMD'
3863: lt_cv_file_magic_test_file=
3864: lt_cv_deplibs_check_method='unknown'
3865: # Need to set the preceding variable on all platforms that support
3866: # interlibrary dependencies.
3867: # 'none' -- dependencies not supported.
3868: # `unknown' -- same as none, but documents that we really don't know.
3869: # 'pass_all' -- all dependencies passed with no checks.
3870: # 'test_compile' -- check by making test program.
3871: # 'file_magic [[regex]]' -- check by looking for files in library path
3872: # which responds to the $file_magic_cmd with a given egrep regex.
3873: # If you have `file' or equivalent on your system and you're not sure
3874: # whether `pass_all' will *always* work, you probably want this one.
3875:
3876: case $host_os in
3877: aix4* | aix5*)
3878: lt_cv_deplibs_check_method=pass_all
3879: ;;
1.11 paf 3880:
1.15 paf 3881: beos*)
3882: lt_cv_deplibs_check_method=pass_all
3883: ;;
1.1 parser 3884:
1.15 paf 3885: bsdi4*)
3886: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3887: lt_cv_file_magic_cmd='/usr/bin/file -L'
3888: lt_cv_file_magic_test_file=/shlib/libc.so
3889: ;;
1.1 parser 3890:
1.15 paf 3891: cygwin* | mingw* | pw32*)
3892: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3893: lt_cv_file_magic_cmd='$OBJDUMP -f'
3894: ;;
1.1 parser 3895:
1.15 paf 3896: darwin* | rhapsody*)
3897: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3898: lt_cv_file_magic_cmd='/usr/bin/file -L'
3899: case "$host_os" in
3900: rhapsody* | darwin1.[012])
3901: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3902: ;;
3903: *) # Darwin 1.3 on
3904: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3905: ;;
3906: esac
3907: ;;
1.1 parser 3908:
1.15 paf 3909: freebsd*)
3910: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3911: case $host_cpu in
3912: i*86 )
3913: # Not sure whether the presence of OpenBSD here was a mistake.
3914: # Let's accept both of them until this is cleared up.
3915: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3916: lt_cv_file_magic_cmd=/usr/bin/file
3917: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 3918: ;;
3919: esac
1.15 paf 3920: else
3921: lt_cv_deplibs_check_method=pass_all
1.1 parser 3922: fi
3923: ;;
3924:
1.15 paf 3925: gnu*)
3926: lt_cv_deplibs_check_method=pass_all
3927: ;;
1.1 parser 3928:
1.15 paf 3929: hpux10.20*|hpux11*)
3930: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3931: lt_cv_file_magic_cmd=/usr/bin/file
3932: lt_cv_file_magic_test_file=/usr/lib/libc.sl
3933: ;;
1.1 parser 3934:
1.15 paf 3935: irix5* | irix6* | nonstopux*)
3936: case $host_os in
3937: irix5* | nonstopux*)
3938: # this will be overridden with pass_all, but let us keep it just in case
3939: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3940: ;;
3941: *)
3942: case $LD in
3943: *-32|*"-32 ") libmagic=32-bit;;
3944: *-n32|*"-n32 ") libmagic=N32;;
3945: *-64|*"-64 ") libmagic=64-bit;;
3946: *) libmagic=never-match;;
3947: esac
3948: # this will be overridden with pass_all, but let us keep it just in case
3949: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3950: ;;
3951: esac
3952: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3953: lt_cv_deplibs_check_method=pass_all
3954: ;;
3955:
3956: # This must be Linux ELF.
3957: linux-gnu*)
3958: case $host_cpu in
3959: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3960: lt_cv_deplibs_check_method=pass_all ;;
3961: *)
3962: # glibc up to 2.1.1 does not perform some relocations on ARM
3963: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3964: esac
3965: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3966: ;;
3967:
3968: netbsd*)
3969: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3971: else
3972: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3973: fi
3974: ;;
3975:
3976: newos6*)
3977: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3978: lt_cv_file_magic_cmd=/usr/bin/file
3979: lt_cv_file_magic_test_file=/usr/lib/libnls.so
3980: ;;
1.1 parser 3981:
1.15 paf 3982: openbsd*)
3983: lt_cv_file_magic_cmd=/usr/bin/file
3984: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3985: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3986: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3987: else
3988: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1.1 parser 3989: fi
3990: ;;
3991:
1.15 paf 3992: osf3* | osf4* | osf5*)
3993: # this will be overridden with pass_all, but let us keep it just in case
3994: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3995: lt_cv_file_magic_test_file=/shlib/libc.so
3996: lt_cv_deplibs_check_method=pass_all
3997: ;;
3998:
3999: sco3.2v5*)
4000: lt_cv_deplibs_check_method=pass_all
4001: ;;
4002:
4003: solaris*)
4004: lt_cv_deplibs_check_method=pass_all
4005: lt_cv_file_magic_test_file=/lib/libc.so
4006: ;;
4007:
4008: sysv5uw[78]* | sysv4*uw2*)
4009: lt_cv_deplibs_check_method=pass_all
4010: ;;
4011:
4012: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4013: case $host_vendor in
4014: motorola)
4015: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4016: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4017: ;;
4018: ncr)
4019: lt_cv_deplibs_check_method=pass_all
4020: ;;
4021: sequent)
4022: lt_cv_file_magic_cmd='/bin/file'
4023: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4024: ;;
4025: sni)
4026: lt_cv_file_magic_cmd='/bin/file'
4027: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4028: lt_cv_file_magic_test_file=/lib/libc.so
4029: ;;
4030: siemens)
4031: lt_cv_deplibs_check_method=pass_all
4032: ;;
4033: esac
4034: ;;
4035: esac
4036:
4037: fi
4038: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4039: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4040: file_magic_cmd=$lt_cv_file_magic_cmd
4041: deplibs_check_method=$lt_cv_deplibs_check_method
4042:
4043:
4044:
4045:
4046:
4047:
4048:
4049:
4050: # Check for command to grab the raw symbol name followed by C symbol from nm.
4051: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4052: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4053: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4054: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4055: else
1.15 paf 4056:
4057: # These are sane defaults that work on at least a few old systems.
4058: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4059:
4060: # Character class describing NM global symbol codes.
4061: symcode='[BCDEGRST]'
4062:
4063: # Regexp to match symbols that can be accessed directly from C.
4064: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4065:
4066: # Transform the above into a raw symbol and a C symbol.
4067: symxfrm='\1 \2\3 \3'
4068:
4069: # Transform an extracted symbol line into a proper C declaration
4070: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4071:
4072: # Transform an extracted symbol line into symbol name and symbol address
4073: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4074:
4075: # Define system-specific variables.
4076: case $host_os in
4077: aix*)
4078: symcode='[BCDT]'
4079: ;;
4080: cygwin* | mingw* | pw32*)
4081: symcode='[ABCDGISTW]'
4082: ;;
4083: hpux*) # Its linker distinguishes data from code symbols
4084: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4085: lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4086: ;;
4087: irix* | nonstopux*)
4088: symcode='[BCDEGRST]'
4089: ;;
4090: osf*)
4091: symcode='[BCDEGQRST]'
4092: ;;
4093: solaris* | sysv5*)
4094: symcode='[BDT]'
4095: ;;
4096: sysv4)
4097: symcode='[DFNSTU]'
4098: ;;
4099: esac
4100:
4101: # Handle CRLF in mingw tool chain
4102: opt_cr=
4103: case $host_os in
4104: mingw*)
4105: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4106: ;;
4107: esac
4108:
4109: # If we're using GNU nm, then use its standard symbol codes.
4110: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4111: symcode='[ABCDGISTW]'
4112: fi
4113:
4114: # Try without a prefix undercore, then with it.
4115: for ac_symprfx in "" "_"; do
4116:
4117: # Write the raw and C identifiers.
4118: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4119:
4120: # Check to see that the pipe works correctly.
4121: pipe_works=no
4122: rm -f conftest*
4123: cat > conftest.$ac_ext <<EOF
4124: #ifdef __cplusplus
4125: extern "C" {
4126: #endif
4127: char nm_test_var;
4128: void nm_test_func(){}
4129: #ifdef __cplusplus
4130: }
4131: #endif
4132: int main(){nm_test_var='a';nm_test_func();return(0);}
4133: EOF
4134:
4135: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4136: (eval $ac_compile) 2>&5
4137: ac_status=$?
4138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139: (exit $ac_status); }; then
4140: # Now try to grab the symbols.
4141: nlist=conftest.nm
4142: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4143: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4144: ac_status=$?
4145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146: (exit $ac_status); } && test -s "$nlist"; then
4147: # Try sorting and uniquifying the output.
4148: if sort "$nlist" | uniq > "$nlist"T; then
4149: mv -f "$nlist"T "$nlist"
4150: else
4151: rm -f "$nlist"T
4152: fi
4153:
4154: # Make sure that we snagged all the symbols we need.
4155: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4156: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4157: cat <<EOF > conftest.$ac_ext
4158: #ifdef __cplusplus
4159: extern "C" {
4160: #endif
4161:
4162: EOF
4163: # Now generate the symbol file.
4164: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4165:
4166: cat <<EOF >> conftest.$ac_ext
4167: #if defined (__STDC__) && __STDC__
4168: # define lt_ptr void *
4169: #else
4170: # define lt_ptr char *
4171: # define const
4172: #endif
4173:
4174: /* The mapping between symbol names and symbols. */
4175: const struct {
4176: const char *name;
4177: lt_ptr address;
4178: }
4179: lt_preloaded_symbols[] =
4180: {
4181: EOF
4182: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4183: cat <<\EOF >> conftest.$ac_ext
4184: {0, (lt_ptr) 0}
4185: };
4186:
4187: #ifdef __cplusplus
4188: }
4189: #endif
4190: EOF
4191: # Now try linking the two files.
4192: mv conftest.$ac_objext conftstm.$ac_objext
4193: save_LIBS="$LIBS"
4194: save_CFLAGS="$CFLAGS"
4195: LIBS="conftstm.$ac_objext"
4196: CFLAGS="$CFLAGS$no_builtin_flag"
4197: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4198: (eval $ac_link) 2>&5
4199: ac_status=$?
4200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201: (exit $ac_status); } && test -s conftest$ac_exeext; then
4202: pipe_works=yes
4203: fi
4204: LIBS="$save_LIBS"
4205: CFLAGS="$save_CFLAGS"
4206: else
4207: echo "cannot find nm_test_func in $nlist" >&5
4208: fi
4209: else
4210: echo "cannot find nm_test_var in $nlist" >&5
4211: fi
4212: else
4213: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.11 paf 4214: fi
1.15 paf 4215: else
4216: echo "$progname: failed program was:" >&5
4217: cat conftest.$ac_ext >&5
4218: fi
4219: rm -f conftest* conftst*
4220:
4221: # Do not use the global_symbol_pipe unless it works.
4222: if test "$pipe_works" = yes; then
4223: break
4224: else
4225: lt_cv_sys_global_symbol_pipe=
4226: fi
4227: done
4228:
1.11 paf 4229: fi
1.15 paf 4230:
4231: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4232: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4233: global_symbol_to_cdecl=
4234: global_symbol_to_c_name_address=
4235: else
4236: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4237: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1.11 paf 4238: fi
1.15 paf 4239: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4240: then
4241: echo "$as_me:$LINENO: result: failed" >&5
4242: echo "${ECHO_T}failed" >&6
1.11 paf 4243: else
1.15 paf 4244: echo "$as_me:$LINENO: result: ok" >&5
4245: echo "${ECHO_T}ok" >&6
1.11 paf 4246: fi
4247:
4248:
1.15 paf 4249: ac_ext=cc
4250: ac_cpp='$CXXCPP $CPPFLAGS'
4251: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4254: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4255: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4256: if test -z "$CXXCPP"; then
4257: if test "${ac_cv_prog_CXXCPP+set}" = set; then
4258: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4259: else
1.15 paf 4260: # Double quotes because CXXCPP needs to be expanded
4261: for CXXCPP in "$CXX -E" "/lib/cpp"
4262: do
4263: ac_preproc_ok=false
4264: for ac_cxx_preproc_warn_flag in '' yes
4265: do
4266: # Use a header file that comes with gcc, so configuring glibc
4267: # with a fresh cross-compiler works.
4268: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269: # <limits.h> exists even on freestanding compilers.
4270: # On the NeXT, cc -E runs the code through the compiler's parser,
4271: # not just through cpp. "Syntax error" is here to catch this case.
4272: cat >conftest.$ac_ext <<_ACEOF
4273: #line $LINENO "configure"
4274: /* confdefs.h. */
4275: _ACEOF
4276: cat confdefs.h >>conftest.$ac_ext
4277: cat >>conftest.$ac_ext <<_ACEOF
4278: /* end confdefs.h. */
4279: #ifdef __STDC__
4280: # include <limits.h>
4281: #else
4282: # include <assert.h>
4283: #endif
4284: Syntax error
4285: _ACEOF
4286: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4287: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288: ac_status=$?
4289: grep -v '^ *+' conftest.er1 >conftest.err
4290: rm -f conftest.er1
4291: cat conftest.err >&5
4292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293: (exit $ac_status); } >/dev/null; then
4294: if test -s conftest.err; then
4295: ac_cpp_err=$ac_cxx_preproc_warn_flag
4296: else
4297: ac_cpp_err=
4298: fi
1.11 paf 4299: else
1.15 paf 4300: ac_cpp_err=yes
1.11 paf 4301: fi
1.15 paf 4302: if test -z "$ac_cpp_err"; then
4303: :
1.11 paf 4304: else
1.15 paf 4305: echo "$as_me: failed program was:" >&5
4306: sed 's/^/| /' conftest.$ac_ext >&5
4307:
4308: # Broken: fails on valid input.
4309: continue
1.11 paf 4310: fi
1.15 paf 4311: rm -f conftest.err conftest.$ac_ext
1.11 paf 4312:
1.15 paf 4313: # OK, works on sane cases. Now check whether non-existent headers
4314: # can be detected and how.
4315: cat >conftest.$ac_ext <<_ACEOF
4316: #line $LINENO "configure"
4317: /* confdefs.h. */
4318: _ACEOF
4319: cat confdefs.h >>conftest.$ac_ext
4320: cat >>conftest.$ac_ext <<_ACEOF
4321: /* end confdefs.h. */
4322: #include <ac_nonexistent.h>
4323: _ACEOF
4324: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4325: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4326: ac_status=$?
4327: grep -v '^ *+' conftest.er1 >conftest.err
4328: rm -f conftest.er1
4329: cat conftest.err >&5
4330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331: (exit $ac_status); } >/dev/null; then
4332: if test -s conftest.err; then
4333: ac_cpp_err=$ac_cxx_preproc_warn_flag
4334: else
4335: ac_cpp_err=
4336: fi
1.11 paf 4337: else
1.15 paf 4338: ac_cpp_err=yes
1.11 paf 4339: fi
1.15 paf 4340: if test -z "$ac_cpp_err"; then
4341: # Broken: success on invalid input.
4342: continue
4343: else
4344: echo "$as_me: failed program was:" >&5
4345: sed 's/^/| /' conftest.$ac_ext >&5
4346:
4347: # Passes both tests.
4348: ac_preproc_ok=:
4349: break
1.11 paf 4350: fi
1.15 paf 4351: rm -f conftest.err conftest.$ac_ext
1.11 paf 4352:
1.15 paf 4353: done
4354: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4355: rm -f conftest.err conftest.$ac_ext
4356: if $ac_preproc_ok; then
4357: break
1.11 paf 4358: fi
1.15 paf 4359:
4360: done
4361: ac_cv_prog_CXXCPP=$CXXCPP
4362:
1.11 paf 4363: fi
1.15 paf 4364: CXXCPP=$ac_cv_prog_CXXCPP
1.11 paf 4365: else
1.15 paf 4366: ac_cv_prog_CXXCPP=$CXXCPP
1.11 paf 4367: fi
1.15 paf 4368: echo "$as_me:$LINENO: result: $CXXCPP" >&5
4369: echo "${ECHO_T}$CXXCPP" >&6
4370: ac_preproc_ok=false
4371: for ac_cxx_preproc_warn_flag in '' yes
4372: do
4373: # Use a header file that comes with gcc, so configuring glibc
4374: # with a fresh cross-compiler works.
4375: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376: # <limits.h> exists even on freestanding compilers.
4377: # On the NeXT, cc -E runs the code through the compiler's parser,
4378: # not just through cpp. "Syntax error" is here to catch this case.
4379: cat >conftest.$ac_ext <<_ACEOF
4380: #line $LINENO "configure"
4381: /* confdefs.h. */
4382: _ACEOF
4383: cat confdefs.h >>conftest.$ac_ext
4384: cat >>conftest.$ac_ext <<_ACEOF
4385: /* end confdefs.h. */
4386: #ifdef __STDC__
4387: # include <limits.h>
4388: #else
4389: # include <assert.h>
4390: #endif
4391: Syntax error
4392: _ACEOF
4393: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4394: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395: ac_status=$?
4396: grep -v '^ *+' conftest.er1 >conftest.err
4397: rm -f conftest.er1
4398: cat conftest.err >&5
4399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400: (exit $ac_status); } >/dev/null; then
4401: if test -s conftest.err; then
4402: ac_cpp_err=$ac_cxx_preproc_warn_flag
4403: else
4404: ac_cpp_err=
4405: fi
1.11 paf 4406: else
1.15 paf 4407: ac_cpp_err=yes
1.11 paf 4408: fi
1.15 paf 4409: if test -z "$ac_cpp_err"; then
4410: :
1.11 paf 4411: else
1.15 paf 4412: echo "$as_me: failed program was:" >&5
4413: sed 's/^/| /' conftest.$ac_ext >&5
4414:
4415: # Broken: fails on valid input.
4416: continue
1.11 paf 4417: fi
1.15 paf 4418: rm -f conftest.err conftest.$ac_ext
1.11 paf 4419:
1.15 paf 4420: # OK, works on sane cases. Now check whether non-existent headers
4421: # can be detected and how.
4422: cat >conftest.$ac_ext <<_ACEOF
4423: #line $LINENO "configure"
4424: /* confdefs.h. */
4425: _ACEOF
4426: cat confdefs.h >>conftest.$ac_ext
4427: cat >>conftest.$ac_ext <<_ACEOF
4428: /* end confdefs.h. */
4429: #include <ac_nonexistent.h>
4430: _ACEOF
4431: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433: ac_status=$?
4434: grep -v '^ *+' conftest.er1 >conftest.err
4435: rm -f conftest.er1
4436: cat conftest.err >&5
4437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438: (exit $ac_status); } >/dev/null; then
4439: if test -s conftest.err; then
4440: ac_cpp_err=$ac_cxx_preproc_warn_flag
4441: else
4442: ac_cpp_err=
4443: fi
1.11 paf 4444: else
1.15 paf 4445: ac_cpp_err=yes
1.11 paf 4446: fi
1.15 paf 4447: if test -z "$ac_cpp_err"; then
4448: # Broken: success on invalid input.
4449: continue
4450: else
4451: echo "$as_me: failed program was:" >&5
4452: sed 's/^/| /' conftest.$ac_ext >&5
4453:
4454: # Passes both tests.
4455: ac_preproc_ok=:
4456: break
1.11 paf 4457: fi
1.15 paf 4458: rm -f conftest.err conftest.$ac_ext
1.11 paf 4459:
1.15 paf 4460: done
4461: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462: rm -f conftest.err conftest.$ac_ext
4463: if $ac_preproc_ok; then
4464: :
1.11 paf 4465: else
1.15 paf 4466: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4467: See \`config.log' for more details." >&5
4468: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4469: See \`config.log' for more details." >&2;}
4470: { (exit 1); exit 1; }; }
1.11 paf 4471: fi
4472:
1.15 paf 4473: ac_ext=cc
4474: ac_cpp='$CXXCPP $CPPFLAGS'
4475: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478:
1.11 paf 4479:
1.15 paf 4480: echo "$as_me:$LINENO: checking for egrep" >&5
4481: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4482: if test "${ac_cv_prog_egrep+set}" = set; then
4483: echo $ECHO_N "(cached) $ECHO_C" >&6
4484: else
4485: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4486: then ac_cv_prog_egrep='grep -E'
4487: else ac_cv_prog_egrep='egrep'
1.11 paf 4488: fi
4489: fi
1.15 paf 4490: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4491: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4492: EGREP=$ac_cv_prog_egrep
4493:
4494:
4495: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4496: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4497: if test "${ac_cv_header_stdc+set}" = set; then
4498: echo $ECHO_N "(cached) $ECHO_C" >&6
4499: else
4500: cat >conftest.$ac_ext <<_ACEOF
4501: #line $LINENO "configure"
4502: /* confdefs.h. */
4503: _ACEOF
4504: cat confdefs.h >>conftest.$ac_ext
4505: cat >>conftest.$ac_ext <<_ACEOF
4506: /* end confdefs.h. */
4507: #include <stdlib.h>
4508: #include <stdarg.h>
4509: #include <string.h>
4510: #include <float.h>
4511:
4512: int
4513: main ()
4514: {
4515:
4516: ;
4517: return 0;
4518: }
4519: _ACEOF
4520: rm -f conftest.$ac_objext
4521: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522: (eval $ac_compile) 2>&5
4523: ac_status=$?
4524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525: (exit $ac_status); } &&
4526: { ac_try='test -s conftest.$ac_objext'
4527: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528: (eval $ac_try) 2>&5
4529: ac_status=$?
4530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531: (exit $ac_status); }; }; then
4532: ac_cv_header_stdc=yes
1.11 paf 4533: else
1.15 paf 4534: echo "$as_me: failed program was:" >&5
4535: sed 's/^/| /' conftest.$ac_ext >&5
4536:
4537: ac_cv_header_stdc=no
1.11 paf 4538: fi
1.15 paf 4539: rm -f conftest.$ac_objext conftest.$ac_ext
4540:
4541: if test $ac_cv_header_stdc = yes; then
4542: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4543: cat >conftest.$ac_ext <<_ACEOF
4544: #line $LINENO "configure"
4545: /* confdefs.h. */
4546: _ACEOF
4547: cat confdefs.h >>conftest.$ac_ext
4548: cat >>conftest.$ac_ext <<_ACEOF
4549: /* end confdefs.h. */
4550: #include <string.h>
1.11 paf 4551:
1.15 paf 4552: _ACEOF
4553: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554: $EGREP "memchr" >/dev/null 2>&1; then
4555: :
1.11 paf 4556: else
1.15 paf 4557: ac_cv_header_stdc=no
1.11 paf 4558: fi
1.15 paf 4559: rm -f conftest*
4560:
1.11 paf 4561: fi
4562:
1.15 paf 4563: if test $ac_cv_header_stdc = yes; then
4564: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4565: cat >conftest.$ac_ext <<_ACEOF
4566: #line $LINENO "configure"
4567: /* confdefs.h. */
4568: _ACEOF
4569: cat confdefs.h >>conftest.$ac_ext
4570: cat >>conftest.$ac_ext <<_ACEOF
4571: /* end confdefs.h. */
4572: #include <stdlib.h>
1.1 parser 4573:
1.15 paf 4574: _ACEOF
4575: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576: $EGREP "free" >/dev/null 2>&1; then
1.1 parser 4577: :
4578: else
1.15 paf 4579: ac_cv_header_stdc=no
1.1 parser 4580: fi
1.15 paf 4581: rm -f conftest*
1.1 parser 4582:
1.15 paf 4583: fi
1.1 parser 4584:
1.15 paf 4585: if test $ac_cv_header_stdc = yes; then
4586: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4587: if test "$cross_compiling" = yes; then
4588: :
4589: else
4590: cat >conftest.$ac_ext <<_ACEOF
4591: #line $LINENO "configure"
4592: /* confdefs.h. */
4593: _ACEOF
4594: cat confdefs.h >>conftest.$ac_ext
4595: cat >>conftest.$ac_ext <<_ACEOF
4596: /* end confdefs.h. */
4597: #include <ctype.h>
4598: #if ((' ' & 0x0FF) == 0x020)
4599: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4600: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4601: #else
4602: # define ISLOWER(c) \
4603: (('a' <= (c) && (c) <= 'i') \
4604: || ('j' <= (c) && (c) <= 'r') \
4605: || ('s' <= (c) && (c) <= 'z'))
4606: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4607: #endif
1.1 parser 4608:
1.15 paf 4609: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4610: int
4611: main ()
4612: {
4613: int i;
4614: for (i = 0; i < 256; i++)
4615: if (XOR (islower (i), ISLOWER (i))
4616: || toupper (i) != TOUPPER (i))
4617: exit(2);
4618: exit (0);
4619: }
4620: _ACEOF
4621: rm -f conftest$ac_exeext
4622: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623: (eval $ac_link) 2>&5
4624: ac_status=$?
4625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628: (eval $ac_try) 2>&5
4629: ac_status=$?
4630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631: (exit $ac_status); }; }; then
4632: :
1.1 parser 4633: else
1.15 paf 4634: echo "$as_me: program exited with status $ac_status" >&5
4635: echo "$as_me: failed program was:" >&5
4636: sed 's/^/| /' conftest.$ac_ext >&5
4637:
4638: ( exit $ac_status )
4639: ac_cv_header_stdc=no
4640: fi
4641: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 parser 4642: fi
1.15 paf 4643: fi
4644: fi
4645: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4646: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4647: if test $ac_cv_header_stdc = yes; then
1.1 parser 4648:
1.15 paf 4649: cat >>confdefs.h <<\_ACEOF
4650: #define STDC_HEADERS 1
4651: _ACEOF
1.1 parser 4652:
1.15 paf 4653: fi
1.1 parser 4654:
1.15 paf 4655: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 parser 4656:
4657:
4658:
4659:
4660:
4661:
1.15 paf 4662:
4663:
4664:
4665: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4666: inttypes.h stdint.h unistd.h
4667: do
4668: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4669: echo "$as_me:$LINENO: checking for $ac_header" >&5
4670: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4671: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672: echo $ECHO_N "(cached) $ECHO_C" >&6
4673: else
4674: cat >conftest.$ac_ext <<_ACEOF
4675: #line $LINENO "configure"
4676: /* confdefs.h. */
4677: _ACEOF
4678: cat confdefs.h >>conftest.$ac_ext
4679: cat >>conftest.$ac_ext <<_ACEOF
4680: /* end confdefs.h. */
4681: $ac_includes_default
4682:
4683: #include <$ac_header>
4684: _ACEOF
4685: rm -f conftest.$ac_objext
4686: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4687: (eval $ac_compile) 2>&5
4688: ac_status=$?
4689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690: (exit $ac_status); } &&
4691: { ac_try='test -s conftest.$ac_objext'
4692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693: (eval $ac_try) 2>&5
4694: ac_status=$?
4695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696: (exit $ac_status); }; }; then
4697: eval "$as_ac_Header=yes"
4698: else
4699: echo "$as_me: failed program was:" >&5
4700: sed 's/^/| /' conftest.$ac_ext >&5
4701:
4702: eval "$as_ac_Header=no"
4703: fi
4704: rm -f conftest.$ac_objext conftest.$ac_ext
4705: fi
4706: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4707: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4708: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709: cat >>confdefs.h <<_ACEOF
4710: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711: _ACEOF
4712:
4713: fi
4714:
4715: done
4716:
4717:
4718:
4719: for ac_header in dlfcn.h
4720: do
4721: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4722: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723: echo "$as_me:$LINENO: checking for $ac_header" >&5
4724: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4725: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4726: echo $ECHO_N "(cached) $ECHO_C" >&6
4727: fi
4728: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4729: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4730: else
4731: # Is the header compilable?
4732: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4733: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4734: cat >conftest.$ac_ext <<_ACEOF
4735: #line $LINENO "configure"
4736: /* confdefs.h. */
4737: _ACEOF
4738: cat confdefs.h >>conftest.$ac_ext
4739: cat >>conftest.$ac_ext <<_ACEOF
4740: /* end confdefs.h. */
4741: $ac_includes_default
4742: #include <$ac_header>
4743: _ACEOF
4744: rm -f conftest.$ac_objext
4745: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746: (eval $ac_compile) 2>&5
4747: ac_status=$?
4748: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749: (exit $ac_status); } &&
4750: { ac_try='test -s conftest.$ac_objext'
4751: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752: (eval $ac_try) 2>&5
4753: ac_status=$?
4754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755: (exit $ac_status); }; }; then
4756: ac_header_compiler=yes
4757: else
4758: echo "$as_me: failed program was:" >&5
4759: sed 's/^/| /' conftest.$ac_ext >&5
4760:
4761: ac_header_compiler=no
4762: fi
4763: rm -f conftest.$ac_objext conftest.$ac_ext
4764: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4765: echo "${ECHO_T}$ac_header_compiler" >&6
4766:
4767: # Is the header present?
4768: echo "$as_me:$LINENO: checking $ac_header presence" >&5
4769: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4770: cat >conftest.$ac_ext <<_ACEOF
4771: #line $LINENO "configure"
4772: /* confdefs.h. */
4773: _ACEOF
4774: cat confdefs.h >>conftest.$ac_ext
4775: cat >>conftest.$ac_ext <<_ACEOF
4776: /* end confdefs.h. */
4777: #include <$ac_header>
4778: _ACEOF
4779: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4780: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4781: ac_status=$?
4782: grep -v '^ *+' conftest.er1 >conftest.err
4783: rm -f conftest.er1
4784: cat conftest.err >&5
4785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786: (exit $ac_status); } >/dev/null; then
4787: if test -s conftest.err; then
4788: ac_cpp_err=$ac_cxx_preproc_warn_flag
4789: else
4790: ac_cpp_err=
4791: fi
4792: else
4793: ac_cpp_err=yes
4794: fi
4795: if test -z "$ac_cpp_err"; then
4796: ac_header_preproc=yes
4797: else
4798: echo "$as_me: failed program was:" >&5
4799: sed 's/^/| /' conftest.$ac_ext >&5
4800:
4801: ac_header_preproc=no
4802: fi
4803: rm -f conftest.err conftest.$ac_ext
4804: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4805: echo "${ECHO_T}$ac_header_preproc" >&6
4806:
4807: # So? What about this header?
4808: case $ac_header_compiler:$ac_header_preproc in
4809: yes:no )
4810: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4811: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4812: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4813: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4814: (
4815: cat <<\_ASBOX
4816: ## ------------------------------------ ##
4817: ## Report this to bug-autoconf@gnu.org. ##
4818: ## ------------------------------------ ##
4819: _ASBOX
4820: ) |
4821: sed "s/^/$as_me: WARNING: /" >&2
4822: ;;
4823: no:yes )
4824: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4825: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4826: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4827: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4828: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4829: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4830: (
4831: cat <<\_ASBOX
4832: ## ------------------------------------ ##
4833: ## Report this to bug-autoconf@gnu.org. ##
4834: ## ------------------------------------ ##
4835: _ASBOX
4836: ) |
4837: sed "s/^/$as_me: WARNING: /" >&2
4838: ;;
4839: esac
4840: echo "$as_me:$LINENO: checking for $ac_header" >&5
4841: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 4844: else
1.15 paf 4845: eval "$as_ac_Header=$ac_header_preproc"
4846: fi
4847: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4848: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4849:
4850: fi
4851: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4852: cat >>confdefs.h <<_ACEOF
4853: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4854: _ACEOF
4855:
4856: fi
4857:
4858: done
4859:
4860:
4861:
4862:
4863:
4864:
4865: # Only perform the check for file, if the check method requires it
4866: case $deplibs_check_method in
4867: file_magic*)
4868: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4869: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4870: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4871: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4872: echo $ECHO_N "(cached) $ECHO_C" >&6
4873: else
4874: case $MAGIC_CMD in
4875: /*)
4876: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4877: ;;
4878: ?:/*)
4879: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4880: ;;
4881: *)
4882: ac_save_MAGIC_CMD="$MAGIC_CMD"
4883: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4884: ac_dummy="/usr/bin:$PATH"
4885: for ac_dir in $ac_dummy; do
4886: test -z "$ac_dir" && ac_dir=.
4887: if test -f $ac_dir/${ac_tool_prefix}file; then
4888: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4889: if test -n "$file_magic_test_file"; then
4890: case $deplibs_check_method in
4891: "file_magic "*)
4892: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4893: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4894: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4895: egrep "$file_magic_regex" > /dev/null; then
4896: :
4897: else
4898: cat <<EOF 1>&2
4899:
4900: *** Warning: the command libtool uses to detect shared libraries,
4901: *** $file_magic_cmd, produces output that libtool cannot recognize.
4902: *** The result is that libtool may fail to recognize shared libraries
4903: *** as such. This will affect the creation of libtool libraries that
4904: *** depend on shared libraries, but programs linked with such libtool
4905: *** libraries will work regardless of this problem. Nevertheless, you
4906: *** may want to report the problem to your system manager and/or to
4907: *** bug-libtool@gnu.org
4908:
4909: EOF
4910: fi ;;
4911: esac
4912: fi
4913: break
4914: fi
4915: done
4916: IFS="$ac_save_ifs"
4917: MAGIC_CMD="$ac_save_MAGIC_CMD"
4918: ;;
4919: esac
4920: fi
4921:
4922: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4923: if test -n "$MAGIC_CMD"; then
4924: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4925: echo "${ECHO_T}$MAGIC_CMD" >&6
4926: else
4927: echo "$as_me:$LINENO: result: no" >&5
4928: echo "${ECHO_T}no" >&6
4929: fi
4930:
4931: if test -z "$lt_cv_path_MAGIC_CMD"; then
4932: if test -n "$ac_tool_prefix"; then
4933: echo "$as_me:$LINENO: checking for file" >&5
4934: echo $ECHO_N "checking for file... $ECHO_C" >&6
4935: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4936: echo $ECHO_N "(cached) $ECHO_C" >&6
4937: else
4938: case $MAGIC_CMD in
4939: /*)
4940: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4941: ;;
4942: ?:/*)
4943: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4944: ;;
4945: *)
4946: ac_save_MAGIC_CMD="$MAGIC_CMD"
4947: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4948: ac_dummy="/usr/bin:$PATH"
4949: for ac_dir in $ac_dummy; do
4950: test -z "$ac_dir" && ac_dir=.
4951: if test -f $ac_dir/file; then
4952: lt_cv_path_MAGIC_CMD="$ac_dir/file"
4953: if test -n "$file_magic_test_file"; then
4954: case $deplibs_check_method in
4955: "file_magic "*)
4956: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4957: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4958: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4959: egrep "$file_magic_regex" > /dev/null; then
4960: :
4961: else
4962: cat <<EOF 1>&2
4963:
4964: *** Warning: the command libtool uses to detect shared libraries,
4965: *** $file_magic_cmd, produces output that libtool cannot recognize.
4966: *** The result is that libtool may fail to recognize shared libraries
4967: *** as such. This will affect the creation of libtool libraries that
4968: *** depend on shared libraries, but programs linked with such libtool
4969: *** libraries will work regardless of this problem. Nevertheless, you
4970: *** may want to report the problem to your system manager and/or to
4971: *** bug-libtool@gnu.org
4972:
1.1 parser 4973: EOF
1.15 paf 4974: fi ;;
4975: esac
4976: fi
4977: break
4978: fi
4979: done
4980: IFS="$ac_save_ifs"
4981: MAGIC_CMD="$ac_save_MAGIC_CMD"
4982: ;;
4983: esac
4984: fi
4985:
4986: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4987: if test -n "$MAGIC_CMD"; then
4988: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4989: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 parser 4990: else
1.15 paf 4991: echo "$as_me:$LINENO: result: no" >&5
4992: echo "${ECHO_T}no" >&6
1.1 parser 4993: fi
1.15 paf 4994:
4995: else
4996: MAGIC_CMD=:
4997: fi
1.1 parser 4998: fi
4999:
1.15 paf 5000: fi
5001: ;;
5002: esac
1.1 parser 5003:
1.15 paf 5004: if test -n "$ac_tool_prefix"; then
5005: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5006: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5007: echo "$as_me:$LINENO: checking for $ac_word" >&5
5008: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009: if test "${ac_cv_prog_RANLIB+set}" = set; then
5010: echo $ECHO_N "(cached) $ECHO_C" >&6
5011: else
5012: if test -n "$RANLIB"; then
5013: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5014: else
5015: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016: for as_dir in $PATH
1.1 parser 5017: do
1.15 paf 5018: IFS=$as_save_IFS
5019: test -z "$as_dir" && as_dir=.
5020: for ac_exec_ext in '' $ac_executable_extensions; do
5021: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5023: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024: break 2
5025: fi
5026: done
5027: done
5028:
5029: fi
5030: fi
5031: RANLIB=$ac_cv_prog_RANLIB
5032: if test -n "$RANLIB"; then
5033: echo "$as_me:$LINENO: result: $RANLIB" >&5
5034: echo "${ECHO_T}$RANLIB" >&6
5035: else
5036: echo "$as_me:$LINENO: result: no" >&5
5037: echo "${ECHO_T}no" >&6
5038: fi
5039:
5040: fi
5041: if test -z "$ac_cv_prog_RANLIB"; then
5042: ac_ct_RANLIB=$RANLIB
5043: # Extract the first word of "ranlib", so it can be a program name with args.
5044: set dummy ranlib; ac_word=$2
5045: echo "$as_me:$LINENO: checking for $ac_word" >&5
5046: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5047: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5049: else
1.15 paf 5050: if test -n "$ac_ct_RANLIB"; then
5051: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.1 parser 5052: else
1.15 paf 5053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054: for as_dir in $PATH
5055: do
5056: IFS=$as_save_IFS
5057: test -z "$as_dir" && as_dir=.
5058: for ac_exec_ext in '' $ac_executable_extensions; do
5059: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060: ac_cv_prog_ac_ct_RANLIB="ranlib"
5061: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062: break 2
5063: fi
5064: done
5065: done
5066:
5067: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5068: fi
1.1 parser 5069: fi
1.15 paf 5070: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5071: if test -n "$ac_ct_RANLIB"; then
5072: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5073: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5074: else
5075: echo "$as_me:$LINENO: result: no" >&5
5076: echo "${ECHO_T}no" >&6
1.1 parser 5077: fi
1.15 paf 5078:
5079: RANLIB=$ac_ct_RANLIB
1.1 parser 5080: else
1.15 paf 5081: RANLIB="$ac_cv_prog_RANLIB"
1.1 parser 5082: fi
1.15 paf 5083:
5084: if test -n "$ac_tool_prefix"; then
5085: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5086: set dummy ${ac_tool_prefix}strip; ac_word=$2
5087: echo "$as_me:$LINENO: checking for $ac_word" >&5
5088: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089: if test "${ac_cv_prog_STRIP+set}" = set; then
5090: echo $ECHO_N "(cached) $ECHO_C" >&6
5091: else
5092: if test -n "$STRIP"; then
5093: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5094: else
5095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096: for as_dir in $PATH
5097: do
5098: IFS=$as_save_IFS
5099: test -z "$as_dir" && as_dir=.
5100: for ac_exec_ext in '' $ac_executable_extensions; do
5101: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5103: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104: break 2
5105: fi
1.1 parser 5106: done
1.15 paf 5107: done
5108:
5109: fi
5110: fi
5111: STRIP=$ac_cv_prog_STRIP
5112: if test -n "$STRIP"; then
5113: echo "$as_me:$LINENO: result: $STRIP" >&5
5114: echo "${ECHO_T}$STRIP" >&6
5115: else
5116: echo "$as_me:$LINENO: result: no" >&5
5117: echo "${ECHO_T}no" >&6
5118: fi
1.1 parser 5119:
1.15 paf 5120: fi
5121: if test -z "$ac_cv_prog_STRIP"; then
5122: ac_ct_STRIP=$STRIP
5123: # Extract the first word of "strip", so it can be a program name with args.
5124: set dummy strip; ac_word=$2
5125: echo "$as_me:$LINENO: checking for $ac_word" >&5
5126: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5127: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5128: echo $ECHO_N "(cached) $ECHO_C" >&6
5129: else
5130: if test -n "$ac_ct_STRIP"; then
5131: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5132: else
5133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134: for as_dir in $PATH
5135: do
5136: IFS=$as_save_IFS
5137: test -z "$as_dir" && as_dir=.
5138: for ac_exec_ext in '' $ac_executable_extensions; do
5139: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140: ac_cv_prog_ac_ct_STRIP="strip"
5141: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142: break 2
5143: fi
5144: done
5145: done
1.1 parser 5146:
1.15 paf 5147: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5148: fi
5149: fi
5150: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5151: if test -n "$ac_ct_STRIP"; then
5152: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5153: echo "${ECHO_T}$ac_ct_STRIP" >&6
5154: else
5155: echo "$as_me:$LINENO: result: no" >&5
5156: echo "${ECHO_T}no" >&6
5157: fi
1.1 parser 5158:
1.15 paf 5159: STRIP=$ac_ct_STRIP
1.1 parser 5160: else
1.15 paf 5161: STRIP="$ac_cv_prog_STRIP"
5162: fi
5163:
5164:
5165: enable_dlopen=no
5166: enable_win32_dll=no
5167:
5168: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5169: if test "${enable_libtool_lock+set}" = set; then
5170: enableval="$enable_libtool_lock"
5171:
5172: fi;
5173: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5174:
5175: # Some flags need to be propagated to the compiler or linker for good
5176: # libtool support.
5177: case $host in
5178: *-*-irix6*)
5179: # Find out which ABI we are using.
1.20 paf 5180: echo '#line 5180 "configure"' > conftest.$ac_ext
1.15 paf 5181: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182: (eval $ac_compile) 2>&5
5183: ac_status=$?
5184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185: (exit $ac_status); }; then
5186: case `/usr/bin/file conftest.$ac_objext` in
5187: *32-bit*)
5188: LD="${LD-ld} -32"
5189: ;;
5190: *N32*)
5191: LD="${LD-ld} -n32"
5192: ;;
5193: *64-bit*)
5194: LD="${LD-ld} -64"
5195: ;;
5196: esac
5197: fi
1.1 parser 5198: rm -rf conftest*
1.15 paf 5199: ;;
5200:
5201: *-*-sco3.2v5*)
5202: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5203: SAVE_CFLAGS="$CFLAGS"
5204: CFLAGS="$CFLAGS -belf"
5205: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5206: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5207: if test "${lt_cv_cc_needs_belf+set}" = set; then
5208: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5209: else
5210:
1.15 paf 5211:
5212: ac_ext=c
5213: ac_cpp='$CPP $CPPFLAGS'
5214: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217:
5218: cat >conftest.$ac_ext <<_ACEOF
5219: #line $LINENO "configure"
5220: /* confdefs.h. */
5221: _ACEOF
5222: cat confdefs.h >>conftest.$ac_ext
5223: cat >>conftest.$ac_ext <<_ACEOF
5224: /* end confdefs.h. */
5225:
5226: int
5227: main ()
5228: {
5229:
5230: ;
5231: return 0;
5232: }
5233: _ACEOF
5234: rm -f conftest.$ac_objext conftest$ac_exeext
5235: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5236: (eval $ac_link) 2>&5
5237: ac_status=$?
5238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239: (exit $ac_status); } &&
5240: { ac_try='test -s conftest$ac_exeext'
5241: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242: (eval $ac_try) 2>&5
5243: ac_status=$?
5244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245: (exit $ac_status); }; }; then
5246: lt_cv_cc_needs_belf=yes
1.1 parser 5247: else
1.15 paf 5248: echo "$as_me: failed program was:" >&5
5249: sed 's/^/| /' conftest.$ac_ext >&5
5250:
5251: lt_cv_cc_needs_belf=no
1.1 parser 5252: fi
1.15 paf 5253: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5254: ac_ext=cc
5255: ac_cpp='$CXXCPP $CPPFLAGS'
5256: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 parser 5259:
5260: fi
1.15 paf 5261: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5262: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5263: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5264: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5265: CFLAGS="$SAVE_CFLAGS"
5266: fi
5267: ;;
5268:
5269:
5270: esac
5271:
5272: # Sed substitution that helps us do robust quoting. It backslashifies
5273: # metacharacters that are still active within double-quoted strings.
5274: Xsed='sed -e s/^X//'
5275: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5276:
5277: # Same as above, but do not quote variable references.
5278: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5279:
5280: # Sed substitution to delay expansion of an escaped shell variable in a
5281: # double_quote_subst'ed string.
5282: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5283:
5284: # Constants:
5285: rm="rm -f"
5286:
5287: # Global variables:
5288: default_ofile=libtool
5289: can_build_shared=yes
5290:
5291: # All known linkers require a `.a' archive for static linking (except M$VC,
5292: # which needs '.lib').
5293: libext=a
5294: ltmain="$ac_aux_dir/ltmain.sh"
5295: ofile="$default_ofile"
5296: with_gnu_ld="$lt_cv_prog_gnu_ld"
5297: need_locks="$enable_libtool_lock"
5298:
5299: old_CC="$CC"
5300: old_CFLAGS="$CFLAGS"
5301:
5302: # Set sane defaults for various variables
5303: test -z "$AR" && AR=ar
5304: test -z "$AR_FLAGS" && AR_FLAGS=cru
5305: test -z "$AS" && AS=as
5306: test -z "$CC" && CC=cc
5307: test -z "$DLLTOOL" && DLLTOOL=dlltool
5308: test -z "$LD" && LD=ld
5309: test -z "$LN_S" && LN_S="ln -s"
5310: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5311: test -z "$NM" && NM=nm
5312: test -z "$OBJDUMP" && OBJDUMP=objdump
5313: test -z "$RANLIB" && RANLIB=:
5314: test -z "$STRIP" && STRIP=:
5315: test -z "$ac_objext" && ac_objext=o
1.1 parser 5316:
1.15 paf 5317: if test x"$host" != x"$build"; then
5318: ac_tool_prefix=${host_alias}-
1.1 parser 5319: else
1.15 paf 5320: ac_tool_prefix=
1.1 parser 5321: fi
5322:
1.15 paf 5323: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5324: case $host_os in
5325: linux-gnu*) ;;
5326: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5327: esac
5328:
5329: case $host_os in
5330: aix3*)
5331: # AIX sometimes has problems with the GCC collect2 program. For some
5332: # reason, if we set the COLLECT_NAMES environment variable, the problems
5333: # vanish in a puff of smoke.
5334: if test "X${COLLECT_NAMES+set}" != Xset; then
5335: COLLECT_NAMES=
5336: export COLLECT_NAMES
5337: fi
5338: ;;
5339: esac
5340:
5341: # Determine commands to create old-style static archives.
5342: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5343: old_postinstall_cmds='chmod 644 $oldlib'
5344: old_postuninstall_cmds=
5345:
5346: if test -n "$RANLIB"; then
5347: case $host_os in
5348: openbsd*)
5349: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5350: ;;
5351: *)
5352: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5353: ;;
5354: esac
5355: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.1 parser 5356: fi
5357:
1.15 paf 5358: # Allow CC to be a program name with arguments.
5359: set dummy $CC
5360: compiler="$2"
5361:
5362: echo "$as_me:$LINENO: checking for objdir" >&5
5363: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5364: rm -f .libs 2>/dev/null
5365: mkdir .libs 2>/dev/null
5366: if test -d .libs; then
5367: objdir=.libs
5368: else
5369: # MS-DOS does not allow filenames that begin with a dot.
5370: objdir=_libs
5371: fi
5372: rmdir .libs 2>/dev/null
5373: echo "$as_me:$LINENO: result: $objdir" >&5
5374: echo "${ECHO_T}$objdir" >&6
5375:
5376:
5377:
5378: # Check whether --with-pic or --without-pic was given.
5379: if test "${with_pic+set}" = set; then
5380: withval="$with_pic"
5381: pic_mode="$withval"
5382: else
5383: pic_mode=default
5384: fi;
5385: test -z "$pic_mode" && pic_mode=default
5386:
5387: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5388: # in isolation, and that seeing it set (from the cache) indicates that
5389: # the associated values are set (in the cache) correctly too.
5390: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5391: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5392: if test "${lt_cv_prog_cc_pic+set}" = set; then
5393: echo $ECHO_N "(cached) $ECHO_C" >&6
5394: else
5395: lt_cv_prog_cc_pic=
5396: lt_cv_prog_cc_shlib=
5397: lt_cv_prog_cc_wl=
5398: lt_cv_prog_cc_static=
5399: lt_cv_prog_cc_no_builtin=
5400: lt_cv_prog_cc_can_build_shared=$can_build_shared
5401:
5402: if test "$GCC" = yes; then
5403: lt_cv_prog_cc_wl='-Wl,'
5404: lt_cv_prog_cc_static='-static'
1.1 parser 5405:
1.15 paf 5406: case $host_os in
5407: aix*)
5408: # Below there is a dirty hack to force normal static linking with -ldl
5409: # The problem is because libdl dynamically linked with both libc and
5410: # libC (AIX C++ library), which obviously doesn't included in libraries
5411: # list by gcc. This cause undefined symbols with -static flags.
5412: # This hack allows C programs to be linked with "-static -ldl", but
5413: # not sure about C++ programs.
5414: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5415: ;;
5416: amigaos*)
5417: # FIXME: we need at least 68020 code to build shared libraries, but
5418: # adding the `-m68020' flag to GCC prevents building anything better,
5419: # like `-m68040'.
5420: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5421: ;;
5422: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5423: # PIC is the default for these OSes.
5424: ;;
5425: darwin* | rhapsody*)
5426: # PIC is the default on this platform
5427: # Common symbols not allowed in MH_DYLIB files
5428: lt_cv_prog_cc_pic='-fno-common'
5429: ;;
5430: cygwin* | mingw* | pw32* | os2*)
5431: # This hack is so that the source file can tell whether it is being
5432: # built for inclusion in a dll (and should export symbols for example).
5433: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5434: ;;
5435: sysv4*MP*)
5436: if test -d /usr/nec; then
5437: lt_cv_prog_cc_pic=-Kconform_pic
5438: fi
5439: ;;
5440: *)
5441: lt_cv_prog_cc_pic='-fPIC'
5442: ;;
5443: esac
5444: else
5445: # PORTME Check for PIC flags for the system compiler.
5446: case $host_os in
5447: aix3* | aix4* | aix5*)
5448: lt_cv_prog_cc_wl='-Wl,'
5449: # All AIX code is PIC.
5450: if test "$host_cpu" = ia64; then
5451: # AIX 5 now supports IA64 processor
5452: lt_cv_prog_cc_static='-Bstatic'
5453: else
5454: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5455: fi
5456: ;;
5457:
5458: hpux9* | hpux10* | hpux11*)
5459: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5460: lt_cv_prog_cc_wl='-Wl,'
5461: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5462: lt_cv_prog_cc_pic='+Z'
5463: ;;
5464:
5465: irix5* | irix6* | nonstopux*)
5466: lt_cv_prog_cc_wl='-Wl,'
5467: lt_cv_prog_cc_static='-non_shared'
5468: # PIC (with -KPIC) is the default.
5469: ;;
5470:
5471: cygwin* | mingw* | pw32* | os2*)
5472: # This hack is so that the source file can tell whether it is being
5473: # built for inclusion in a dll (and should export symbols for example).
5474: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5475: ;;
5476:
5477: newsos6)
5478: lt_cv_prog_cc_pic='-KPIC'
5479: lt_cv_prog_cc_static='-Bstatic'
5480: ;;
5481:
5482: osf3* | osf4* | osf5*)
5483: # All OSF/1 code is PIC.
5484: lt_cv_prog_cc_wl='-Wl,'
5485: lt_cv_prog_cc_static='-non_shared'
5486: ;;
5487:
5488: sco3.2v5*)
5489: lt_cv_prog_cc_pic='-Kpic'
5490: lt_cv_prog_cc_static='-dn'
5491: lt_cv_prog_cc_shlib='-belf'
5492: ;;
5493:
5494: solaris*)
5495: lt_cv_prog_cc_pic='-KPIC'
5496: lt_cv_prog_cc_static='-Bstatic'
5497: lt_cv_prog_cc_wl='-Wl,'
5498: ;;
5499:
5500: sunos4*)
5501: lt_cv_prog_cc_pic='-PIC'
5502: lt_cv_prog_cc_static='-Bstatic'
5503: lt_cv_prog_cc_wl='-Qoption ld '
5504: ;;
5505:
5506: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5507: lt_cv_prog_cc_pic='-KPIC'
5508: lt_cv_prog_cc_static='-Bstatic'
5509: lt_cv_prog_cc_wl='-Wl,'
5510: ;;
5511:
5512: uts4*)
5513: lt_cv_prog_cc_pic='-pic'
5514: lt_cv_prog_cc_static='-Bstatic'
5515: ;;
5516:
5517: sysv4*MP*)
5518: if test -d /usr/nec ;then
5519: lt_cv_prog_cc_pic='-Kconform_pic'
5520: lt_cv_prog_cc_static='-Bstatic'
5521: fi
5522: ;;
5523:
5524: *)
5525: lt_cv_prog_cc_can_build_shared=no
5526: ;;
5527: esac
5528: fi
5529:
5530: fi
5531:
5532: if test -z "$lt_cv_prog_cc_pic"; then
5533: echo "$as_me:$LINENO: result: none" >&5
5534: echo "${ECHO_T}none" >&6
5535: else
5536: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5537: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5538:
5539: # Check to make sure the pic_flag actually works.
5540: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5541: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5542: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5543: echo $ECHO_N "(cached) $ECHO_C" >&6
5544: else
5545: save_CFLAGS="$CFLAGS"
5546: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5547: cat >conftest.$ac_ext <<_ACEOF
5548: #line $LINENO "configure"
5549: /* confdefs.h. */
5550: _ACEOF
5551: cat confdefs.h >>conftest.$ac_ext
5552: cat >>conftest.$ac_ext <<_ACEOF
5553: /* end confdefs.h. */
5554:
5555: int
5556: main ()
5557: {
5558:
5559: ;
5560: return 0;
5561: }
5562: _ACEOF
5563: rm -f conftest.$ac_objext
5564: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565: (eval $ac_compile) 2>&5
5566: ac_status=$?
5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568: (exit $ac_status); } &&
5569: { ac_try='test -s conftest.$ac_objext'
5570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571: (eval $ac_try) 2>&5
5572: ac_status=$?
5573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574: (exit $ac_status); }; }; then
5575: case $host_os in
5576: hpux9* | hpux10* | hpux11*)
5577: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5578: # they create non-PIC objects. So, if there were any warnings, we
5579: # assume that PIC is not supported.
5580: if test -s conftest.err; then
5581: lt_cv_prog_cc_pic_works=no
5582: else
5583: lt_cv_prog_cc_pic_works=yes
5584: fi
5585: ;;
5586: *)
5587: lt_cv_prog_cc_pic_works=yes
5588: ;;
5589: esac
5590:
5591: else
5592: echo "$as_me: failed program was:" >&5
5593: sed 's/^/| /' conftest.$ac_ext >&5
5594:
5595: lt_cv_prog_cc_pic_works=no
5596:
5597: fi
5598: rm -f conftest.$ac_objext conftest.$ac_ext
5599: CFLAGS="$save_CFLAGS"
5600:
5601: fi
5602:
5603:
5604: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5605: lt_cv_prog_cc_pic=
5606: lt_cv_prog_cc_can_build_shared=no
5607: else
5608: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5609: fi
5610:
5611: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5612: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5613: fi
5614:
5615: # Check for any special shared library compilation flags.
5616: if test -n "$lt_cv_prog_cc_shlib"; then
5617: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5618: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5619: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5620: else
5621: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5622: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5623: lt_cv_prog_cc_can_build_shared=no
5624: fi
5625: fi
5626:
5627: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5628: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5629: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5630: echo $ECHO_N "(cached) $ECHO_C" >&6
5631: else
5632: lt_cv_prog_cc_static_works=no
5633: save_LDFLAGS="$LDFLAGS"
5634: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5635: cat >conftest.$ac_ext <<_ACEOF
5636: #line $LINENO "configure"
5637: /* confdefs.h. */
5638: _ACEOF
5639: cat confdefs.h >>conftest.$ac_ext
5640: cat >>conftest.$ac_ext <<_ACEOF
5641: /* end confdefs.h. */
5642:
5643: int
5644: main ()
5645: {
5646:
5647: ;
5648: return 0;
5649: }
5650: _ACEOF
5651: rm -f conftest.$ac_objext conftest$ac_exeext
5652: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653: (eval $ac_link) 2>&5
5654: ac_status=$?
5655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656: (exit $ac_status); } &&
5657: { ac_try='test -s conftest$ac_exeext'
5658: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659: (eval $ac_try) 2>&5
5660: ac_status=$?
5661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662: (exit $ac_status); }; }; then
5663: lt_cv_prog_cc_static_works=yes
5664: else
5665: echo "$as_me: failed program was:" >&5
5666: sed 's/^/| /' conftest.$ac_ext >&5
5667:
5668: fi
5669: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5670: LDFLAGS="$save_LDFLAGS"
5671:
5672: fi
5673:
5674:
5675: # Belt *and* braces to stop my trousers falling down:
5676: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5677: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5678: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5679:
5680: pic_flag="$lt_cv_prog_cc_pic"
5681: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5682: wl="$lt_cv_prog_cc_wl"
5683: link_static_flag="$lt_cv_prog_cc_static"
5684: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5685: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5686:
5687:
5688: # Check to see if options -o and -c are simultaneously supported by compiler
5689: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5690: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5691: if test "${lt_cv_compiler_c_o+set}" = set; then
5692: echo $ECHO_N "(cached) $ECHO_C" >&6
5693: else
5694:
5695: $rm -r conftest 2>/dev/null
5696: mkdir conftest
5697: cd conftest
5698: echo "int some_variable = 0;" > conftest.$ac_ext
5699: mkdir out
5700: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5701: # that will create temporary files in the current directory regardless of
5702: # the output directory. Thus, making CWD read-only will cause this test
5703: # to fail, enabling locking or at least warning the user not to do parallel
5704: # builds.
5705: chmod -w .
5706: save_CFLAGS="$CFLAGS"
5707: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5708: compiler_c_o=no
1.20 paf 5709: if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.15 paf 5710: # The compiler can only warn and ignore the option if not recognized
5711: # So say no if there are warnings
5712: if test -s out/conftest.err; then
5713: lt_cv_compiler_c_o=no
5714: else
5715: lt_cv_compiler_c_o=yes
5716: fi
5717: else
5718: # Append any errors to the config.log.
5719: cat out/conftest.err 1>&5
5720: lt_cv_compiler_c_o=no
5721: fi
5722: CFLAGS="$save_CFLAGS"
5723: chmod u+w .
5724: $rm conftest* out/*
5725: rmdir out
5726: cd ..
5727: rmdir conftest
5728: $rm -r conftest 2>/dev/null
5729:
5730: fi
5731:
5732: compiler_c_o=$lt_cv_compiler_c_o
5733: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5734: echo "${ECHO_T}$compiler_c_o" >&6
5735:
5736: if test x"$compiler_c_o" = x"yes"; then
5737: # Check to see if we can write to a .lo
5738: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5739: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5740: if test "${lt_cv_compiler_o_lo+set}" = set; then
5741: echo $ECHO_N "(cached) $ECHO_C" >&6
5742: else
5743:
5744: lt_cv_compiler_o_lo=no
5745: save_CFLAGS="$CFLAGS"
5746: CFLAGS="$CFLAGS -c -o conftest.lo"
5747: save_objext="$ac_objext"
5748: ac_objext=lo
5749: cat >conftest.$ac_ext <<_ACEOF
5750: #line $LINENO "configure"
5751: /* confdefs.h. */
5752: _ACEOF
5753: cat confdefs.h >>conftest.$ac_ext
5754: cat >>conftest.$ac_ext <<_ACEOF
5755: /* end confdefs.h. */
5756:
5757: int
5758: main ()
5759: {
5760: int some_variable = 0;
5761: ;
5762: return 0;
5763: }
5764: _ACEOF
5765: rm -f conftest.$ac_objext
5766: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767: (eval $ac_compile) 2>&5
5768: ac_status=$?
5769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770: (exit $ac_status); } &&
5771: { ac_try='test -s conftest.$ac_objext'
5772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773: (eval $ac_try) 2>&5
5774: ac_status=$?
5775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776: (exit $ac_status); }; }; then
5777: # The compiler can only warn and ignore the option if not recognized
5778: # So say no if there are warnings
5779: if test -s conftest.err; then
5780: lt_cv_compiler_o_lo=no
5781: else
5782: lt_cv_compiler_o_lo=yes
5783: fi
5784:
5785: else
5786: echo "$as_me: failed program was:" >&5
5787: sed 's/^/| /' conftest.$ac_ext >&5
5788:
5789: fi
5790: rm -f conftest.$ac_objext conftest.$ac_ext
5791: ac_objext="$save_objext"
5792: CFLAGS="$save_CFLAGS"
5793:
5794: fi
5795:
5796: compiler_o_lo=$lt_cv_compiler_o_lo
5797: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5798: echo "${ECHO_T}$compiler_o_lo" >&6
5799: else
5800: compiler_o_lo=no
5801: fi
5802:
5803: # Check to see if we can do hard links to lock some files if needed
5804: hard_links="nottested"
5805: if test "$compiler_c_o" = no && test "$need_locks" != no; then
5806: # do not overwrite the value of need_locks provided by the user
5807: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5808: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5809: hard_links=yes
5810: $rm conftest*
5811: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5812: touch conftest.a
5813: ln conftest.a conftest.b 2>&5 || hard_links=no
5814: ln conftest.a conftest.b 2>/dev/null && hard_links=no
5815: echo "$as_me:$LINENO: result: $hard_links" >&5
5816: echo "${ECHO_T}$hard_links" >&6
5817: if test "$hard_links" = no; then
5818: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5819: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5820: need_locks=warn
5821: fi
5822: else
5823: need_locks=no
5824: fi
5825:
5826: if test "$GCC" = yes; then
5827: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5828: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5829: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5830: echo "int some_variable = 0;" > conftest.$ac_ext
5831: save_CFLAGS="$CFLAGS"
5832: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5833: compiler_rtti_exceptions=no
5834: cat >conftest.$ac_ext <<_ACEOF
5835: #line $LINENO "configure"
5836: /* confdefs.h. */
5837: _ACEOF
5838: cat confdefs.h >>conftest.$ac_ext
5839: cat >>conftest.$ac_ext <<_ACEOF
5840: /* end confdefs.h. */
5841:
5842: int
5843: main ()
5844: {
5845: int some_variable = 0;
5846: ;
5847: return 0;
5848: }
5849: _ACEOF
5850: rm -f conftest.$ac_objext
5851: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852: (eval $ac_compile) 2>&5
5853: ac_status=$?
5854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855: (exit $ac_status); } &&
5856: { ac_try='test -s conftest.$ac_objext'
5857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858: (eval $ac_try) 2>&5
5859: ac_status=$?
5860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861: (exit $ac_status); }; }; then
5862: # The compiler can only warn and ignore the option if not recognized
5863: # So say no if there are warnings
5864: if test -s conftest.err; then
5865: compiler_rtti_exceptions=no
5866: else
5867: compiler_rtti_exceptions=yes
5868: fi
5869:
5870: else
5871: echo "$as_me: failed program was:" >&5
5872: sed 's/^/| /' conftest.$ac_ext >&5
5873:
5874: fi
5875: rm -f conftest.$ac_objext conftest.$ac_ext
5876: CFLAGS="$save_CFLAGS"
5877: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5878: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5879:
5880: if test "$compiler_rtti_exceptions" = "yes"; then
5881: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5882: else
5883: no_builtin_flag=' -fno-builtin'
5884: fi
5885: fi
5886:
5887: # See if the linker supports building shared libraries.
5888: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5889: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5890:
5891: allow_undefined_flag=
5892: no_undefined_flag=
5893: need_lib_prefix=unknown
5894: need_version=unknown
5895: # when you set need_version to no, make sure it does not cause -set_version
5896: # flags to be left without arguments
5897: archive_cmds=
5898: archive_expsym_cmds=
5899: old_archive_from_new_cmds=
5900: old_archive_from_expsyms_cmds=
5901: export_dynamic_flag_spec=
5902: whole_archive_flag_spec=
5903: thread_safe_flag_spec=
5904: hardcode_into_libs=no
5905: hardcode_libdir_flag_spec=
5906: hardcode_libdir_separator=
5907: hardcode_direct=no
5908: hardcode_minus_L=no
5909: hardcode_shlibpath_var=unsupported
5910: runpath_var=
5911: link_all_deplibs=unknown
5912: always_export_symbols=no
5913: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5914: # include_expsyms should be a list of space-separated symbols to be *always*
5915: # included in the symbol list
5916: include_expsyms=
5917: # exclude_expsyms can be an egrep regular expression of symbols to exclude
5918: # it will be wrapped by ` (' and `)$', so one must not match beginning or
5919: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5920: # as well as any symbol that contains `d'.
5921: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5922: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5923: # platforms (ab)use it in PIC code, but their linkers get confused if
5924: # the symbol is explicitly referenced. Since portable code cannot
5925: # rely on this symbol name, it's probably fine to never include it in
5926: # preloaded symbol tables.
5927: extract_expsyms_cmds=
5928:
5929: case $host_os in
5930: cygwin* | mingw* | pw32*)
5931: # FIXME: the MSVC++ port hasn't been tested in a loooong time
5932: # When not using gcc, we currently assume that we are using
5933: # Microsoft Visual C++.
5934: if test "$GCC" != yes; then
5935: with_gnu_ld=no
5936: fi
5937: ;;
5938: openbsd*)
5939: with_gnu_ld=no
5940: ;;
5941: esac
5942:
5943: ld_shlibs=yes
5944: if test "$with_gnu_ld" = yes; then
5945: # If archive_cmds runs LD, not CC, wlarc should be empty
5946: wlarc='${wl}'
5947:
5948: # See if GNU ld supports shared libraries.
5949: case $host_os in
5950: aix3* | aix4* | aix5*)
5951: # On AIX, the GNU linker is very broken
5952: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5953: ld_shlibs=no
5954: cat <<EOF 1>&2
5955:
5956: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5957: *** to be unable to reliably create shared libraries on AIX.
5958: *** Therefore, libtool is disabling shared libraries support. If you
5959: *** really care for shared libraries, you may want to modify your PATH
5960: *** so that a non-GNU linker is found, and then restart.
5961:
5962: EOF
5963: ;;
5964:
5965: amigaos*)
5966: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5967: hardcode_libdir_flag_spec='-L$libdir'
5968: hardcode_minus_L=yes
5969:
5970: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5971: # that the semantics of dynamic libraries on AmigaOS, at least up
5972: # to version 4, is to share data among multiple programs linked
5973: # with the same dynamic library. Since this doesn't match the
5974: # behavior of shared libraries on other platforms, we can use
5975: # them.
5976: ld_shlibs=no
5977: ;;
5978:
5979: beos*)
5980: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5981: allow_undefined_flag=unsupported
5982: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5983: # support --undefined. This deserves some investigation. FIXME
5984: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5985: else
5986: ld_shlibs=no
5987: fi
5988: ;;
5989:
5990: cygwin* | mingw* | pw32*)
5991: # hardcode_libdir_flag_spec is actually meaningless, as there is
5992: # no search path for DLLs.
5993: hardcode_libdir_flag_spec='-L$libdir'
5994: allow_undefined_flag=unsupported
5995: always_export_symbols=yes
5996:
5997: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5998: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5999: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6000: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6001: else $CC -o impgen impgen.c ; fi)~
6002: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6003:
6004: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6005:
6006: # cygwin and mingw dlls have different entry points and sets of symbols
6007: # to exclude.
6008: # FIXME: what about values for MSVC?
6009: dll_entry=__cygwin_dll_entry@12
6010: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6011: case $host_os in
6012: mingw*)
6013: # mingw values
6014: dll_entry=_DllMainCRTStartup@12
6015: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6016: ;;
6017: esac
6018:
6019: # mingw and cygwin differ, and it's simplest to just exclude the union
6020: # of the two symbol sets.
6021: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6022:
6023: # recent cygwin and mingw systems supply a stub DllMain which the user
6024: # can override, but on older systems we have to supply one (in ltdll.c)
6025: if test "x$lt_cv_need_dllmain" = "xyes"; then
6026: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6027: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6028: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6029: else
6030: ltdll_obj=
6031: ltdll_cmds=
6032: fi
6033:
6034: # Extract the symbol export list from an `--export-all' def file,
6035: # then regenerate the def file from the symbol export list, so that
6036: # the compiled dll only exports the symbol export list.
6037: # Be careful not to strip the DATA tag left be newer dlltools.
6038: export_symbols_cmds="$ltdll_cmds"'
6039: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6040: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6041:
6042: # If the export-symbols file already is a .def file (1st line
6043: # is EXPORTS), use it as is.
6044: # If DATA tags from a recent dlltool are present, honour them!
6045: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6046: cp $export_symbols $output_objdir/$soname-def;
6047: else
6048: echo EXPORTS > $output_objdir/$soname-def;
6049: _lt_hint=1;
6050: cat $export_symbols | while read symbol; do
6051: set dummy \$symbol;
6052: case \$# in
6053: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6054: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6055: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6056: esac;
6057: _lt_hint=`expr 1 + \$_lt_hint`;
6058: done;
6059: fi~
6060: '"$ltdll_cmds"'
6061: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6062: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6063: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6064: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6065: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6066: ;;
6067:
6068: netbsd*)
6069: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6070: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6071: wlarc=
6072: else
6073: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6074: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6075: fi
6076: ;;
6077:
6078: solaris* | sysv5*)
6079: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6080: ld_shlibs=no
6081: cat <<EOF 1>&2
6082:
6083: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6084: *** create shared libraries on Solaris systems. Therefore, libtool
6085: *** is disabling shared libraries support. We urge you to upgrade GNU
6086: *** binutils to release 2.9.1 or newer. Another option is to modify
6087: *** your PATH or compiler configuration so that the native linker is
6088: *** used, and then restart.
6089:
6090: EOF
6091: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6092: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6094: else
6095: ld_shlibs=no
6096: fi
6097: ;;
6098:
6099: sunos4*)
6100: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6101: wlarc=
6102: hardcode_direct=yes
6103: hardcode_shlibpath_var=no
6104: ;;
6105:
6106: *)
6107: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6108: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6109: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6110: else
6111: ld_shlibs=no
6112: fi
6113: ;;
6114: esac
6115:
6116: if test "$ld_shlibs" = yes; then
6117: runpath_var=LD_RUN_PATH
6118: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6119: export_dynamic_flag_spec='${wl}--export-dynamic'
6120: case $host_os in
6121: cygwin* | mingw* | pw32*)
6122: # dlltool doesn't understand --whole-archive et. al.
6123: whole_archive_flag_spec=
6124: ;;
6125: *)
6126: # ancient GNU ld didn't support --whole-archive et. al.
6127: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6128: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6129: else
6130: whole_archive_flag_spec=
6131: fi
6132: ;;
6133: esac
6134: fi
6135: else
6136: # PORTME fill in a description of your system's linker (not GNU ld)
6137: case $host_os in
6138: aix3*)
6139: allow_undefined_flag=unsupported
6140: always_export_symbols=yes
6141: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6142: # Note: this linker hardcodes the directories in LIBPATH if there
6143: # are no directories specified by -L.
6144: hardcode_minus_L=yes
6145: if test "$GCC" = yes && test -z "$link_static_flag"; then
6146: # Neither direct hardcoding nor static linking is supported with a
6147: # broken collect2.
6148: hardcode_direct=unsupported
6149: fi
6150: ;;
6151:
6152: aix4* | aix5*)
6153: if test "$host_cpu" = ia64; then
6154: # On IA64, the linker does run time linking by default, so we don't
6155: # have to do anything special.
6156: aix_use_runtimelinking=no
6157: exp_sym_flag='-Bexport'
6158: no_entry_flag=""
6159: else
6160: aix_use_runtimelinking=no
6161:
6162: # Test if we are trying to use run time linking or normal
6163: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6164: # need to do runtime linking.
6165: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6166: for ld_flag in $LDFLAGS; do
6167: case $ld_flag in
6168: *-brtl*)
6169: aix_use_runtimelinking=yes
6170: break
6171: ;;
6172: esac
6173: done
6174: esac
6175:
6176: exp_sym_flag='-bexport'
6177: no_entry_flag='-bnoentry'
6178: fi
6179:
6180: # When large executables or shared objects are built, AIX ld can
6181: # have problems creating the table of contents. If linking a library
6182: # or program results in "error TOC overflow" add -mminimal-toc to
6183: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6184: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6185:
6186: hardcode_direct=yes
6187: archive_cmds=''
6188: hardcode_libdir_separator=':'
6189: if test "$GCC" = yes; then
6190: case $host_os in aix4.[012]|aix4.[012].*)
6191: collect2name=`${CC} -print-prog-name=collect2`
6192: if test -f "$collect2name" && \
6193: strings "$collect2name" | grep resolve_lib_name >/dev/null
6194: then
6195: # We have reworked collect2
6196: hardcode_direct=yes
6197: else
6198: # We have old collect2
6199: hardcode_direct=unsupported
6200: # It fails to find uninstalled libraries when the uninstalled
6201: # path is not listed in the libpath. Setting hardcode_minus_L
6202: # to unsupported forces relinking
6203: hardcode_minus_L=yes
6204: hardcode_libdir_flag_spec='-L$libdir'
6205: hardcode_libdir_separator=
6206: fi
6207: esac
6208:
6209: shared_flag='-shared'
6210: else
6211: # not using gcc
6212: if test "$host_cpu" = ia64; then
6213: shared_flag='${wl}-G'
6214: else
6215: if test "$aix_use_runtimelinking" = yes; then
6216: shared_flag='${wl}-G'
6217: else
6218: shared_flag='${wl}-bM:SRE'
6219: fi
6220: fi
6221: fi
6222:
6223: # It seems that -bexpall can do strange things, so it is better to
6224: # generate a list of symbols to export.
6225: always_export_symbols=yes
6226: if test "$aix_use_runtimelinking" = yes; then
6227: # Warning - without using the other runtime loading flags (-brtl),
6228: # -berok will link without error, but may produce a broken library.
6229: allow_undefined_flag='-berok'
6230: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6231: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6232: else
6233: if test "$host_cpu" = ia64; then
6234: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6235: allow_undefined_flag="-z nodefs"
6236: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6237: else
6238: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6239: # Warning - without using the other run time loading flags,
6240: # -berok will link without error, but may produce a broken library.
6241: allow_undefined_flag='${wl}-berok'
6242: # This is a bit strange, but is similar to how AIX traditionally builds
6243: # it's shared libraries.
6244: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6245: fi
6246: fi
6247: ;;
6248:
6249: amigaos*)
6250: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6251: hardcode_libdir_flag_spec='-L$libdir'
6252: hardcode_minus_L=yes
6253: # see comment about different semantics on the GNU ld section
6254: ld_shlibs=no
6255: ;;
6256:
6257: cygwin* | mingw* | pw32*)
6258: # When not using gcc, we currently assume that we are using
6259: # Microsoft Visual C++.
6260: # hardcode_libdir_flag_spec is actually meaningless, as there is
6261: # no search path for DLLs.
6262: hardcode_libdir_flag_spec=' '
6263: allow_undefined_flag=unsupported
6264: # Tell ltmain to make .lib files, not .a files.
6265: libext=lib
6266: # FIXME: Setting linknames here is a bad hack.
6267: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6268: # The linker will automatically build a .lib file if we build a DLL.
6269: old_archive_from_new_cmds='true'
6270: # FIXME: Should let the user specify the lib program.
6271: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6272: fix_srcfile_path='`cygpath -w "$srcfile"`'
6273: ;;
6274:
6275: darwin* | rhapsody*)
6276: case "$host_os" in
6277: rhapsody* | darwin1.[012])
6278: allow_undefined_flag='-undefined suppress'
6279: ;;
6280: *) # Darwin 1.3 on
6281: allow_undefined_flag='-flat_namespace -undefined suppress'
6282: ;;
6283: esac
6284: # FIXME: Relying on posixy $() will cause problems for
6285: # cross-compilation, but unfortunately the echo tests do not
6286: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6287: # `"' quotes if we put them in here... so don't!
6288: archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6289: # We need to add '_' to the symbols in $export_symbols first
6290: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6291: hardcode_direct=yes
6292: hardcode_shlibpath_var=no
6293: whole_archive_flag_spec='-all_load $convenience'
6294: ;;
6295:
6296: freebsd1*)
6297: ld_shlibs=no
6298: ;;
6299:
6300: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6301: # support. Future versions do this automatically, but an explicit c++rt0.o
6302: # does not break anything, and helps significantly (at the cost of a little
6303: # extra space).
6304: freebsd2.2*)
6305: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6306: hardcode_libdir_flag_spec='-R$libdir'
6307: hardcode_direct=yes
6308: hardcode_shlibpath_var=no
6309: ;;
6310:
6311: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6312: freebsd2*)
6313: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6314: hardcode_direct=yes
6315: hardcode_minus_L=yes
6316: hardcode_shlibpath_var=no
6317: ;;
6318:
6319: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6320: freebsd*)
6321: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6322: hardcode_libdir_flag_spec='-R$libdir'
6323: hardcode_direct=yes
6324: hardcode_shlibpath_var=no
6325: ;;
6326:
6327: hpux9* | hpux10* | hpux11*)
6328: case $host_os in
6329: hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6330: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6331: esac
6332: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6333: hardcode_libdir_separator=:
6334: hardcode_direct=yes
6335: hardcode_minus_L=yes # Not in the search PATH, but as the default
6336: # location of the library.
6337: export_dynamic_flag_spec='${wl}-E'
6338: ;;
6339:
6340: irix5* | irix6* | nonstopux*)
6341: if test "$GCC" = yes; then
6342: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6343: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6344: else
6345: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6346: hardcode_libdir_flag_spec='-rpath $libdir'
6347: fi
6348: hardcode_libdir_separator=:
6349: link_all_deplibs=yes
6350: ;;
6351:
6352: netbsd*)
6353: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6354: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6355: else
6356: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6357: fi
6358: hardcode_libdir_flag_spec='-R$libdir'
6359: hardcode_direct=yes
6360: hardcode_shlibpath_var=no
6361: ;;
6362:
6363: newsos6)
6364: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6365: hardcode_direct=yes
6366: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6367: hardcode_libdir_separator=:
6368: hardcode_shlibpath_var=no
6369: ;;
6370:
6371: openbsd*)
6372: hardcode_direct=yes
6373: hardcode_shlibpath_var=no
6374: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6375: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6376: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6377: export_dynamic_flag_spec='${wl}-E'
6378: else
6379: case "$host_os" in
6380: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6381: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6382: hardcode_libdir_flag_spec='-R$libdir'
6383: ;;
6384: *)
6385: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6386: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6387: ;;
6388: esac
6389: fi
6390: ;;
6391:
6392: os2*)
6393: hardcode_libdir_flag_spec='-L$libdir'
6394: hardcode_minus_L=yes
6395: allow_undefined_flag=unsupported
6396: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6397: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6398: ;;
6399:
6400: osf3*)
6401: if test "$GCC" = yes; then
6402: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6403: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6404: else
6405: allow_undefined_flag=' -expect_unresolved \*'
6406: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6407: fi
6408: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6409: hardcode_libdir_separator=:
6410: ;;
6411:
6412: osf4* | osf5*) # as osf3* with the addition of -msym flag
6413: if test "$GCC" = yes; then
6414: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6415: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6416: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6417: else
6418: allow_undefined_flag=' -expect_unresolved \*'
6419: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6420: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6421: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6422:
6423: #Both c and cxx compiler support -rpath directly
6424: hardcode_libdir_flag_spec='-rpath $libdir'
6425: fi
6426: hardcode_libdir_separator=:
6427: ;;
6428:
6429: sco3.2v5*)
6430: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6431: hardcode_shlibpath_var=no
6432: runpath_var=LD_RUN_PATH
6433: hardcode_runpath_var=yes
6434: export_dynamic_flag_spec='${wl}-Bexport'
6435: ;;
6436:
6437: solaris*)
6438: # gcc --version < 3.0 without binutils cannot create self contained
6439: # shared libraries reliably, requiring libgcc.a to resolve some of
6440: # the object symbols generated in some cases. Libraries that use
6441: # assert need libgcc.a to resolve __eprintf, for example. Linking
6442: # a copy of libgcc.a into every shared library to guarantee resolving
6443: # such symbols causes other problems: According to Tim Van Holder
6444: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6445: # (to the application) exception stack for one thing.
6446: no_undefined_flag=' -z defs'
6447: if test "$GCC" = yes; then
6448: case `$CC --version 2>/dev/null` in
6449: [12].*)
6450: cat <<EOF 1>&2
6451:
6452: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6453: *** create self contained shared libraries on Solaris systems, without
6454: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6455: *** -no-undefined support, which will at least allow you to build shared
6456: *** libraries. However, you may find that when you link such libraries
6457: *** into an application without using GCC, you have to manually add
6458: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6459: *** upgrade to a newer version of GCC. Another option is to rebuild your
6460: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6461:
6462: EOF
6463: no_undefined_flag=
6464: ;;
6465: esac
6466: fi
6467: # $CC -shared without GNU ld will not create a library from C++
6468: # object files and a static libstdc++, better avoid it by now
6469: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6470: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6471: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6472: hardcode_libdir_flag_spec='-R$libdir'
6473: hardcode_shlibpath_var=no
6474: case $host_os in
6475: solaris2.[0-5] | solaris2.[0-5].*) ;;
6476: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6477: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6478: esac
6479: link_all_deplibs=yes
6480: ;;
6481:
6482: sunos4*)
6483: if test "x$host_vendor" = xsequent; then
6484: # Use $CC to link under sequent, because it throws in some extra .o
6485: # files that make .init and .fini sections work.
6486: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6487: else
6488: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6489: fi
6490: hardcode_libdir_flag_spec='-L$libdir'
6491: hardcode_direct=yes
6492: hardcode_minus_L=yes
6493: hardcode_shlibpath_var=no
6494: ;;
6495:
6496: sysv4)
6497: case $host_vendor in
6498: sni)
6499: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6500: hardcode_direct=yes # is this really true???
6501: ;;
6502: siemens)
6503: ## LD is ld it makes a PLAMLIB
6504: ## CC just makes a GrossModule.
6505: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6506: reload_cmds='$CC -r -o $output$reload_objs'
6507: hardcode_direct=no
6508: ;;
6509: motorola)
6510: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6511: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6512: ;;
6513: esac
6514: runpath_var='LD_RUN_PATH'
6515: hardcode_shlibpath_var=no
6516: ;;
6517:
6518: sysv4.3*)
6519: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6520: hardcode_shlibpath_var=no
6521: export_dynamic_flag_spec='-Bexport'
6522: ;;
6523:
6524: sysv5*)
6525: no_undefined_flag=' -z text'
6526: # $CC -shared without GNU ld will not create a library from C++
6527: # object files and a static libstdc++, better avoid it by now
6528: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6529: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6530: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6531: hardcode_libdir_flag_spec=
6532: hardcode_shlibpath_var=no
6533: runpath_var='LD_RUN_PATH'
6534: ;;
6535:
6536: uts4*)
6537: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6538: hardcode_libdir_flag_spec='-L$libdir'
6539: hardcode_shlibpath_var=no
6540: ;;
6541:
6542: dgux*)
6543: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544: hardcode_libdir_flag_spec='-L$libdir'
6545: hardcode_shlibpath_var=no
6546: ;;
6547:
6548: sysv4*MP*)
6549: if test -d /usr/nec; then
6550: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551: hardcode_shlibpath_var=no
6552: runpath_var=LD_RUN_PATH
6553: hardcode_runpath_var=yes
6554: ld_shlibs=yes
6555: fi
6556: ;;
6557:
6558: sysv4.2uw2*)
6559: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6560: hardcode_direct=yes
6561: hardcode_minus_L=no
6562: hardcode_shlibpath_var=no
6563: hardcode_runpath_var=yes
6564: runpath_var=LD_RUN_PATH
6565: ;;
6566:
6567: sysv5uw7* | unixware7*)
6568: no_undefined_flag='${wl}-z ${wl}text'
6569: if test "$GCC" = yes; then
6570: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6571: else
6572: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6573: fi
6574: runpath_var='LD_RUN_PATH'
6575: hardcode_shlibpath_var=no
6576: ;;
6577:
6578: *)
6579: ld_shlibs=no
6580: ;;
6581: esac
6582: fi
6583: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6584: echo "${ECHO_T}$ld_shlibs" >&6
6585: test "$ld_shlibs" = no && can_build_shared=no
6586:
6587: # Check hardcoding attributes.
6588: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6589: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6590: hardcode_action=
6591: if test -n "$hardcode_libdir_flag_spec" || \
6592: test -n "$runpath_var"; then
6593:
6594: # We can hardcode non-existant directories.
6595: if test "$hardcode_direct" != no &&
6596: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6597: # have to relink, otherwise we might link with an installed library
6598: # when we should be linking with a yet-to-be-installed one
6599: ## test "$hardcode_shlibpath_var" != no &&
6600: test "$hardcode_minus_L" != no; then
6601: # Linking always hardcodes the temporary library directory.
6602: hardcode_action=relink
6603: else
6604: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6605: hardcode_action=immediate
6606: fi
6607: else
6608: # We cannot hardcode anything, or else we can only hardcode existing
6609: # directories.
6610: hardcode_action=unsupported
6611: fi
6612: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6613: echo "${ECHO_T}$hardcode_action" >&6
6614:
6615: striplib=
6616: old_striplib=
6617: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6618: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6619: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6620: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6621: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6622: echo "$as_me:$LINENO: result: yes" >&5
6623: echo "${ECHO_T}yes" >&6
6624: else
6625: echo "$as_me:$LINENO: result: no" >&5
6626: echo "${ECHO_T}no" >&6
6627: fi
6628:
6629: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6630: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6631:
6632: # PORTME Fill in your ld.so characteristics
6633: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6634: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6635: library_names_spec=
6636: libname_spec='lib$name'
6637: soname_spec=
6638: postinstall_cmds=
6639: postuninstall_cmds=
6640: finish_cmds=
6641: finish_eval=
6642: shlibpath_var=
6643: shlibpath_overrides_runpath=unknown
6644: version_type=none
6645: dynamic_linker="$host_os ld.so"
6646: sys_lib_dlsearch_path_spec="/lib /usr/lib"
6647: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6648:
6649: case $host_os in
6650: aix3*)
6651: version_type=linux
6652: library_names_spec='${libname}${release}.so$versuffix $libname.a'
6653: shlibpath_var=LIBPATH
6654:
6655: # AIX has no versioning support, so we append a major version to the name.
6656: soname_spec='${libname}${release}.so$major'
6657: ;;
6658:
6659: aix4* | aix5*)
6660: version_type=linux
6661: need_lib_prefix=no
6662: need_version=no
6663: hardcode_into_libs=yes
6664: if test "$host_cpu" = ia64; then
6665: # AIX 5 supports IA64
6666: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6667: shlibpath_var=LD_LIBRARY_PATH
6668: else
6669: # With GCC up to 2.95.x, collect2 would create an import file
6670: # for dependence libraries. The import file would start with
6671: # the line `#! .'. This would cause the generated library to
6672: # depend on `.', always an invalid library. This was fixed in
6673: # development snapshots of GCC prior to 3.0.
6674: case $host_os in
6675: aix4 | aix4.[01] | aix4.[01].*)
6676: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6677: echo ' yes '
6678: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6679: :
6680: else
6681: can_build_shared=no
6682: fi
6683: ;;
6684: esac
6685: # AIX (on Power*) has no versioning support, so currently we can
6686: # not hardcode correct soname into executable. Probably we can
6687: # add versioning support to collect2, so additional links can
6688: # be useful in future.
6689: if test "$aix_use_runtimelinking" = yes; then
6690: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6691: # instead of lib<name>.a to let people know that these are not
6692: # typical AIX shared libraries.
6693: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694: else
6695: # We preserve .a as extension for shared libraries through AIX4.2
6696: # and later when we are not doing run time linking.
6697: library_names_spec='${libname}${release}.a $libname.a'
6698: soname_spec='${libname}${release}.so$major'
6699: fi
6700: shlibpath_var=LIBPATH
6701: fi
6702: hardcode_into_libs=yes
6703: ;;
6704:
6705: amigaos*)
6706: library_names_spec='$libname.ixlibrary $libname.a'
6707: # Create ${libname}_ixlibrary.a entries in /sys/libs.
6708: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6709: ;;
6710:
6711: beos*)
6712: library_names_spec='${libname}.so'
6713: dynamic_linker="$host_os ld.so"
6714: shlibpath_var=LIBRARY_PATH
6715: ;;
6716:
6717: bsdi4*)
6718: version_type=linux
6719: need_version=no
6720: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721: soname_spec='${libname}${release}.so$major'
6722: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6723: shlibpath_var=LD_LIBRARY_PATH
6724: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6725: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6726: export_dynamic_flag_spec=-rdynamic
6727: # the default ld.so.conf also contains /usr/contrib/lib and
6728: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6729: # libtool to hard-code these into programs
6730: ;;
6731:
6732: cygwin* | mingw* | pw32*)
6733: version_type=windows
6734: need_version=no
6735: need_lib_prefix=no
6736: case $GCC,$host_os in
6737: yes,cygwin*)
6738: library_names_spec='$libname.dll.a'
6739: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6740: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6741: dldir=$destdir/`dirname \$dlpath`~
6742: test -d \$dldir || mkdir -p \$dldir~
6743: $install_prog .libs/$dlname \$dldir/$dlname'
6744: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6745: dlpath=$dir/\$dldll~
6746: $rm \$dlpath'
6747: ;;
6748: yes,mingw*)
6749: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6750: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6751: ;;
6752: yes,pw32*)
6753: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6754: ;;
6755: *)
6756: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6757: ;;
6758: esac
6759: dynamic_linker='Win32 ld.exe'
6760: # FIXME: first we should search . and the directory the executable is in
6761: shlibpath_var=PATH
6762: ;;
6763:
6764: darwin* | rhapsody*)
6765: dynamic_linker="$host_os dyld"
6766: version_type=darwin
6767: need_lib_prefix=no
6768: need_version=no
6769: # FIXME: Relying on posixy $() will cause problems for
6770: # cross-compilation, but unfortunately the echo tests do not
6771: # yet detect zsh echo's removal of \ escapes.
6772: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6773: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6774: shlibpath_overrides_runpath=yes
6775: shlibpath_var=DYLD_LIBRARY_PATH
6776: ;;
6777:
6778: freebsd1*)
6779: dynamic_linker=no
6780: ;;
6781:
6782: freebsd*)
6783: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6784: version_type=freebsd-$objformat
6785: case $version_type in
6786: freebsd-elf*)
6787: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6788: need_version=no
6789: need_lib_prefix=no
6790: ;;
6791: freebsd-*)
6792: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6793: need_version=yes
6794: ;;
6795: esac
6796: shlibpath_var=LD_LIBRARY_PATH
6797: case $host_os in
6798: freebsd2*)
6799: shlibpath_overrides_runpath=yes
6800: ;;
6801: *)
6802: shlibpath_overrides_runpath=no
6803: hardcode_into_libs=yes
6804: ;;
6805: esac
6806: ;;
6807:
6808: gnu*)
6809: version_type=linux
6810: need_lib_prefix=no
6811: need_version=no
6812: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6813: soname_spec='${libname}${release}.so$major'
6814: shlibpath_var=LD_LIBRARY_PATH
6815: hardcode_into_libs=yes
6816: ;;
6817:
6818: hpux9* | hpux10* | hpux11*)
6819: # Give a soname corresponding to the major version so that dld.sl refuses to
6820: # link against other versions.
6821: dynamic_linker="$host_os dld.sl"
6822: version_type=sunos
6823: need_lib_prefix=no
6824: need_version=no
6825: shlibpath_var=SHLIB_PATH
6826: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6827: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6828: soname_spec='${libname}${release}.sl$major'
6829: # HP-UX runs *really* slowly unless shared libraries are mode 555.
6830: postinstall_cmds='chmod 555 $lib'
6831: ;;
6832:
6833: irix5* | irix6* | nonstopux*)
6834: case $host_os in
6835: nonstopux*) version_type=nonstopux ;;
6836: *) version_type=irix ;;
6837: esac
6838: need_lib_prefix=no
6839: need_version=no
6840: soname_spec='${libname}${release}.so$major'
6841: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6842: case $host_os in
6843: irix5* | nonstopux*)
6844: libsuff= shlibsuff=
6845: ;;
6846: *)
6847: case $LD in # libtool.m4 will add one of these switches to LD
6848: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6849: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6850: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6851: *) libsuff= shlibsuff= libmagic=never-match;;
6852: esac
6853: ;;
6854: esac
6855: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6856: shlibpath_overrides_runpath=no
6857: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6858: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6859: ;;
6860:
6861: # No shared lib support for Linux oldld, aout, or coff.
6862: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6863: dynamic_linker=no
6864: ;;
6865:
6866: # This must be Linux ELF.
6867: linux-gnu*)
6868: version_type=linux
6869: need_lib_prefix=no
6870: need_version=no
6871: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6872: soname_spec='${libname}${release}.so$major'
6873: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6874: shlibpath_var=LD_LIBRARY_PATH
6875: shlibpath_overrides_runpath=no
6876: # This implies no fast_install, which is unacceptable.
6877: # Some rework will be needed to allow for fast_install
6878: # before this can be enabled.
6879: hardcode_into_libs=yes
6880:
6881: # We used to test for /lib/ld.so.1 and disable shared libraries on
6882: # powerpc, because MkLinux only supported shared libraries with the
6883: # GNU dynamic linker. Since this was broken with cross compilers,
6884: # most powerpc-linux boxes support dynamic linking these days and
6885: # people can always --disable-shared, the test was removed, and we
6886: # assume the GNU/Linux dynamic linker is in use.
6887: dynamic_linker='GNU/Linux ld.so'
6888: ;;
6889:
6890: netbsd*)
6891: version_type=sunos
6892: need_lib_prefix=no
6893: need_version=no
6894: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6895: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6896: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6897: dynamic_linker='NetBSD (a.out) ld.so'
6898: else
6899: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6900: soname_spec='${libname}${release}.so$major'
6901: dynamic_linker='NetBSD ld.elf_so'
6902: fi
6903: shlibpath_var=LD_LIBRARY_PATH
6904: shlibpath_overrides_runpath=yes
6905: hardcode_into_libs=yes
6906: ;;
6907:
6908: newsos6)
6909: version_type=linux
6910: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6911: shlibpath_var=LD_LIBRARY_PATH
6912: shlibpath_overrides_runpath=yes
6913: ;;
6914:
6915: openbsd*)
6916: version_type=sunos
6917: need_lib_prefix=no
6918: need_version=no
6919: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6920: case "$host_os" in
6921: openbsd2.[89] | openbsd2.[89].*)
6922: shlibpath_overrides_runpath=no
6923: ;;
6924: *)
6925: shlibpath_overrides_runpath=yes
6926: ;;
6927: esac
6928: else
6929: shlibpath_overrides_runpath=yes
6930: fi
6931: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6932: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6933: shlibpath_var=LD_LIBRARY_PATH
6934: ;;
6935:
6936: os2*)
6937: libname_spec='$name'
6938: need_lib_prefix=no
6939: library_names_spec='$libname.dll $libname.a'
6940: dynamic_linker='OS/2 ld.exe'
6941: shlibpath_var=LIBPATH
6942: ;;
6943:
6944: osf3* | osf4* | osf5*)
6945: version_type=osf
6946: need_version=no
6947: soname_spec='${libname}${release}.so$major'
6948: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6949: shlibpath_var=LD_LIBRARY_PATH
6950: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6951: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6952: hardcode_into_libs=yes
6953: ;;
6954:
6955: sco3.2v5*)
6956: version_type=osf
6957: soname_spec='${libname}${release}.so$major'
6958: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6959: shlibpath_var=LD_LIBRARY_PATH
6960: ;;
6961:
6962: solaris*)
6963: version_type=linux
6964: need_lib_prefix=no
6965: need_version=no
6966: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6967: soname_spec='${libname}${release}.so$major'
6968: shlibpath_var=LD_LIBRARY_PATH
6969: shlibpath_overrides_runpath=yes
6970: hardcode_into_libs=yes
6971: # ldd complains unless libraries are executable
6972: postinstall_cmds='chmod +x $lib'
6973: ;;
6974:
6975: sunos4*)
6976: version_type=sunos
6977: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6978: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6979: shlibpath_var=LD_LIBRARY_PATH
6980: shlibpath_overrides_runpath=yes
6981: if test "$with_gnu_ld" = yes; then
6982: need_lib_prefix=no
6983: fi
6984: need_version=yes
6985: ;;
6986:
6987: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6988: version_type=linux
6989: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6990: soname_spec='${libname}${release}.so$major'
6991: shlibpath_var=LD_LIBRARY_PATH
6992: case $host_vendor in
6993: sni)
6994: shlibpath_overrides_runpath=no
6995: need_lib_prefix=no
6996: export_dynamic_flag_spec='${wl}-Blargedynsym'
6997: runpath_var=LD_RUN_PATH
6998: ;;
6999: siemens)
7000: need_lib_prefix=no
7001: ;;
7002: motorola)
7003: need_lib_prefix=no
7004: need_version=no
7005: shlibpath_overrides_runpath=no
7006: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7007: ;;
7008: esac
7009: ;;
7010:
7011: uts4*)
7012: version_type=linux
7013: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7014: soname_spec='${libname}${release}.so$major'
7015: shlibpath_var=LD_LIBRARY_PATH
7016: ;;
7017:
7018: dgux*)
7019: version_type=linux
7020: need_lib_prefix=no
7021: need_version=no
7022: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7023: soname_spec='${libname}${release}.so$major'
7024: shlibpath_var=LD_LIBRARY_PATH
7025: ;;
7026:
7027: sysv4*MP*)
7028: if test -d /usr/nec ;then
7029: version_type=linux
7030: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7031: soname_spec='$libname.so.$major'
7032: shlibpath_var=LD_LIBRARY_PATH
7033: fi
7034: ;;
7035:
7036: *)
7037: dynamic_linker=no
7038: ;;
7039: esac
7040: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7041: echo "${ECHO_T}$dynamic_linker" >&6
7042: test "$dynamic_linker" = no && can_build_shared=no
7043:
7044: # Report the final consequences.
7045: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7046: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7047: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7048: echo "${ECHO_T}$can_build_shared" >&6
7049:
7050: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7051: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7052: test "$can_build_shared" = "no" && enable_shared=no
7053:
7054: # On AIX, shared libraries and static libraries use the same namespace, and
7055: # are all built from PIC.
7056: case "$host_os" in
7057: aix3*)
7058: test "$enable_shared" = yes && enable_static=no
7059: if test -n "$RANLIB"; then
7060: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7061: postinstall_cmds='$RANLIB $lib'
7062: fi
7063: ;;
7064:
7065: aix4*)
7066: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7067: test "$enable_shared" = yes && enable_static=no
7068: fi
7069: ;;
7070: esac
7071: echo "$as_me:$LINENO: result: $enable_shared" >&5
7072: echo "${ECHO_T}$enable_shared" >&6
7073:
7074: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7075: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7076: # Make sure either enable_shared or enable_static is yes.
7077: test "$enable_shared" = yes || enable_static=yes
7078: echo "$as_me:$LINENO: result: $enable_static" >&5
7079: echo "${ECHO_T}$enable_static" >&6
7080:
7081: if test "$hardcode_action" = relink; then
7082: # Fast installation is not supported
7083: enable_fast_install=no
7084: elif test "$shlibpath_overrides_runpath" = yes ||
7085: test "$enable_shared" = no; then
7086: # Fast installation is not necessary
7087: enable_fast_install=needless
7088: fi
7089:
7090: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7091: if test "$GCC" = yes; then
7092: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7093: fi
7094:
7095: if test "x$enable_dlopen" != xyes; then
7096: enable_dlopen=unknown
7097: enable_dlopen_self=unknown
7098: enable_dlopen_self_static=unknown
7099: else
7100: lt_cv_dlopen=no
7101: lt_cv_dlopen_libs=
7102:
7103: case $host_os in
7104: beos*)
7105: lt_cv_dlopen="load_add_on"
7106: lt_cv_dlopen_libs=
7107: lt_cv_dlopen_self=yes
7108: ;;
7109:
7110: cygwin* | mingw* | pw32*)
7111: lt_cv_dlopen="LoadLibrary"
7112: lt_cv_dlopen_libs=
7113: ;;
7114:
7115: *)
7116: echo "$as_me:$LINENO: checking for shl_load" >&5
7117: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7118: if test "${ac_cv_func_shl_load+set}" = set; then
7119: echo $ECHO_N "(cached) $ECHO_C" >&6
7120: else
7121: cat >conftest.$ac_ext <<_ACEOF
7122: #line $LINENO "configure"
7123: /* confdefs.h. */
7124: _ACEOF
7125: cat confdefs.h >>conftest.$ac_ext
7126: cat >>conftest.$ac_ext <<_ACEOF
7127: /* end confdefs.h. */
7128: /* System header to define __stub macros and hopefully few prototypes,
7129: which can conflict with char shl_load (); below.
7130: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7131: <limits.h> exists even on freestanding compilers. */
7132: #ifdef __STDC__
7133: # include <limits.h>
7134: #else
7135: # include <assert.h>
7136: #endif
7137: /* Override any gcc2 internal prototype to avoid an error. */
7138: #ifdef __cplusplus
7139: extern "C"
7140: {
7141: #endif
7142: /* We use char because int might match the return type of a gcc2
7143: builtin and then its argument prototype would still apply. */
7144: char shl_load ();
7145: /* The GNU C library defines this for functions which it implements
7146: to always fail with ENOSYS. Some functions are actually named
7147: something starting with __ and the normal name is an alias. */
7148: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7149: choke me
7150: #else
7151: char (*f) () = shl_load;
7152: #endif
7153: #ifdef __cplusplus
7154: }
7155: #endif
7156:
7157: int
7158: main ()
7159: {
7160: return f != shl_load;
7161: ;
7162: return 0;
7163: }
7164: _ACEOF
7165: rm -f conftest.$ac_objext conftest$ac_exeext
7166: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167: (eval $ac_link) 2>&5
7168: ac_status=$?
7169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170: (exit $ac_status); } &&
7171: { ac_try='test -s conftest$ac_exeext'
7172: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173: (eval $ac_try) 2>&5
7174: ac_status=$?
7175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176: (exit $ac_status); }; }; then
7177: ac_cv_func_shl_load=yes
7178: else
7179: echo "$as_me: failed program was:" >&5
7180: sed 's/^/| /' conftest.$ac_ext >&5
7181:
7182: ac_cv_func_shl_load=no
7183: fi
7184: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7185: fi
7186: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7187: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7188: if test $ac_cv_func_shl_load = yes; then
7189: lt_cv_dlopen="shl_load"
7190: else
7191: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7192: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7193: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7194: echo $ECHO_N "(cached) $ECHO_C" >&6
7195: else
7196: ac_check_lib_save_LIBS=$LIBS
7197: LIBS="-ldld $LIBS"
7198: cat >conftest.$ac_ext <<_ACEOF
7199: #line $LINENO "configure"
7200: /* confdefs.h. */
7201: _ACEOF
7202: cat confdefs.h >>conftest.$ac_ext
7203: cat >>conftest.$ac_ext <<_ACEOF
7204: /* end confdefs.h. */
7205:
7206: /* Override any gcc2 internal prototype to avoid an error. */
7207: #ifdef __cplusplus
7208: extern "C"
7209: #endif
7210: /* We use char because int might match the return type of a gcc2
7211: builtin and then its argument prototype would still apply. */
7212: char shl_load ();
7213: int
7214: main ()
7215: {
7216: shl_load ();
7217: ;
7218: return 0;
7219: }
7220: _ACEOF
7221: rm -f conftest.$ac_objext conftest$ac_exeext
7222: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7223: (eval $ac_link) 2>&5
7224: ac_status=$?
7225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226: (exit $ac_status); } &&
7227: { ac_try='test -s conftest$ac_exeext'
7228: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229: (eval $ac_try) 2>&5
7230: ac_status=$?
7231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232: (exit $ac_status); }; }; then
7233: ac_cv_lib_dld_shl_load=yes
7234: else
7235: echo "$as_me: failed program was:" >&5
7236: sed 's/^/| /' conftest.$ac_ext >&5
7237:
7238: ac_cv_lib_dld_shl_load=no
7239: fi
7240: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241: LIBS=$ac_check_lib_save_LIBS
7242: fi
7243: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7244: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7245: if test $ac_cv_lib_dld_shl_load = yes; then
7246: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7247: else
7248: echo "$as_me:$LINENO: checking for dlopen" >&5
7249: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7250: if test "${ac_cv_func_dlopen+set}" = set; then
7251: echo $ECHO_N "(cached) $ECHO_C" >&6
7252: else
7253: cat >conftest.$ac_ext <<_ACEOF
7254: #line $LINENO "configure"
7255: /* confdefs.h. */
7256: _ACEOF
7257: cat confdefs.h >>conftest.$ac_ext
7258: cat >>conftest.$ac_ext <<_ACEOF
7259: /* end confdefs.h. */
7260: /* System header to define __stub macros and hopefully few prototypes,
7261: which can conflict with char dlopen (); below.
7262: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263: <limits.h> exists even on freestanding compilers. */
7264: #ifdef __STDC__
7265: # include <limits.h>
7266: #else
7267: # include <assert.h>
7268: #endif
7269: /* Override any gcc2 internal prototype to avoid an error. */
7270: #ifdef __cplusplus
7271: extern "C"
7272: {
7273: #endif
7274: /* We use char because int might match the return type of a gcc2
7275: builtin and then its argument prototype would still apply. */
7276: char dlopen ();
7277: /* The GNU C library defines this for functions which it implements
7278: to always fail with ENOSYS. Some functions are actually named
7279: something starting with __ and the normal name is an alias. */
7280: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7281: choke me
7282: #else
7283: char (*f) () = dlopen;
7284: #endif
7285: #ifdef __cplusplus
7286: }
7287: #endif
7288:
7289: int
7290: main ()
7291: {
7292: return f != dlopen;
7293: ;
7294: return 0;
7295: }
7296: _ACEOF
7297: rm -f conftest.$ac_objext conftest$ac_exeext
7298: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299: (eval $ac_link) 2>&5
7300: ac_status=$?
7301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302: (exit $ac_status); } &&
7303: { ac_try='test -s conftest$ac_exeext'
7304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305: (eval $ac_try) 2>&5
7306: ac_status=$?
7307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308: (exit $ac_status); }; }; then
7309: ac_cv_func_dlopen=yes
7310: else
7311: echo "$as_me: failed program was:" >&5
7312: sed 's/^/| /' conftest.$ac_ext >&5
7313:
7314: ac_cv_func_dlopen=no
7315: fi
7316: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7317: fi
7318: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7319: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7320: if test $ac_cv_func_dlopen = yes; then
7321: lt_cv_dlopen="dlopen"
7322: else
7323: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7324: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7325: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7326: echo $ECHO_N "(cached) $ECHO_C" >&6
7327: else
7328: ac_check_lib_save_LIBS=$LIBS
7329: LIBS="-ldl $LIBS"
7330: cat >conftest.$ac_ext <<_ACEOF
7331: #line $LINENO "configure"
7332: /* confdefs.h. */
7333: _ACEOF
7334: cat confdefs.h >>conftest.$ac_ext
7335: cat >>conftest.$ac_ext <<_ACEOF
7336: /* end confdefs.h. */
7337:
7338: /* Override any gcc2 internal prototype to avoid an error. */
7339: #ifdef __cplusplus
7340: extern "C"
7341: #endif
7342: /* We use char because int might match the return type of a gcc2
7343: builtin and then its argument prototype would still apply. */
7344: char dlopen ();
7345: int
7346: main ()
7347: {
7348: dlopen ();
7349: ;
7350: return 0;
7351: }
7352: _ACEOF
7353: rm -f conftest.$ac_objext conftest$ac_exeext
7354: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7355: (eval $ac_link) 2>&5
7356: ac_status=$?
7357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358: (exit $ac_status); } &&
7359: { ac_try='test -s conftest$ac_exeext'
7360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361: (eval $ac_try) 2>&5
7362: ac_status=$?
7363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364: (exit $ac_status); }; }; then
7365: ac_cv_lib_dl_dlopen=yes
7366: else
7367: echo "$as_me: failed program was:" >&5
7368: sed 's/^/| /' conftest.$ac_ext >&5
7369:
7370: ac_cv_lib_dl_dlopen=no
7371: fi
7372: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7373: LIBS=$ac_check_lib_save_LIBS
7374: fi
7375: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7376: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7377: if test $ac_cv_lib_dl_dlopen = yes; then
7378: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7379: else
7380: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7381: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7382: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7383: echo $ECHO_N "(cached) $ECHO_C" >&6
7384: else
7385: ac_check_lib_save_LIBS=$LIBS
7386: LIBS="-lsvld $LIBS"
7387: cat >conftest.$ac_ext <<_ACEOF
7388: #line $LINENO "configure"
7389: /* confdefs.h. */
7390: _ACEOF
7391: cat confdefs.h >>conftest.$ac_ext
7392: cat >>conftest.$ac_ext <<_ACEOF
7393: /* end confdefs.h. */
7394:
7395: /* Override any gcc2 internal prototype to avoid an error. */
7396: #ifdef __cplusplus
7397: extern "C"
7398: #endif
7399: /* We use char because int might match the return type of a gcc2
7400: builtin and then its argument prototype would still apply. */
7401: char dlopen ();
7402: int
7403: main ()
7404: {
7405: dlopen ();
7406: ;
7407: return 0;
7408: }
7409: _ACEOF
7410: rm -f conftest.$ac_objext conftest$ac_exeext
7411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412: (eval $ac_link) 2>&5
7413: ac_status=$?
7414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415: (exit $ac_status); } &&
7416: { ac_try='test -s conftest$ac_exeext'
7417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418: (eval $ac_try) 2>&5
7419: ac_status=$?
7420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421: (exit $ac_status); }; }; then
7422: ac_cv_lib_svld_dlopen=yes
7423: else
7424: echo "$as_me: failed program was:" >&5
7425: sed 's/^/| /' conftest.$ac_ext >&5
7426:
7427: ac_cv_lib_svld_dlopen=no
7428: fi
7429: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7430: LIBS=$ac_check_lib_save_LIBS
7431: fi
7432: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7433: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7434: if test $ac_cv_lib_svld_dlopen = yes; then
7435: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7436: else
7437: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7438: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7439: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7440: echo $ECHO_N "(cached) $ECHO_C" >&6
7441: else
7442: ac_check_lib_save_LIBS=$LIBS
7443: LIBS="-ldld $LIBS"
7444: cat >conftest.$ac_ext <<_ACEOF
7445: #line $LINENO "configure"
7446: /* confdefs.h. */
7447: _ACEOF
7448: cat confdefs.h >>conftest.$ac_ext
7449: cat >>conftest.$ac_ext <<_ACEOF
7450: /* end confdefs.h. */
7451:
7452: /* Override any gcc2 internal prototype to avoid an error. */
7453: #ifdef __cplusplus
7454: extern "C"
7455: #endif
7456: /* We use char because int might match the return type of a gcc2
7457: builtin and then its argument prototype would still apply. */
7458: char dld_link ();
7459: int
7460: main ()
7461: {
7462: dld_link ();
7463: ;
7464: return 0;
7465: }
7466: _ACEOF
7467: rm -f conftest.$ac_objext conftest$ac_exeext
7468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469: (eval $ac_link) 2>&5
7470: ac_status=$?
7471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472: (exit $ac_status); } &&
7473: { ac_try='test -s conftest$ac_exeext'
7474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475: (eval $ac_try) 2>&5
7476: ac_status=$?
7477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478: (exit $ac_status); }; }; then
7479: ac_cv_lib_dld_dld_link=yes
7480: else
7481: echo "$as_me: failed program was:" >&5
7482: sed 's/^/| /' conftest.$ac_ext >&5
7483:
7484: ac_cv_lib_dld_dld_link=no
7485: fi
7486: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7487: LIBS=$ac_check_lib_save_LIBS
7488: fi
7489: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7490: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7491: if test $ac_cv_lib_dld_dld_link = yes; then
7492: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7493: fi
7494:
7495:
7496: fi
7497:
7498:
7499: fi
7500:
7501:
7502: fi
7503:
7504:
7505: fi
7506:
7507:
7508: fi
7509:
7510: ;;
7511: esac
7512:
7513: if test "x$lt_cv_dlopen" != xno; then
7514: enable_dlopen=yes
7515: else
7516: enable_dlopen=no
7517: fi
7518:
7519: case $lt_cv_dlopen in
7520: dlopen)
7521: save_CPPFLAGS="$CPPFLAGS"
7522: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7523:
7524: save_LDFLAGS="$LDFLAGS"
7525: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7526:
7527: save_LIBS="$LIBS"
7528: LIBS="$lt_cv_dlopen_libs $LIBS"
7529:
7530: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7531: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7532: if test "${lt_cv_dlopen_self+set}" = set; then
7533: echo $ECHO_N "(cached) $ECHO_C" >&6
7534: else
7535: if test "$cross_compiling" = yes; then :
7536: lt_cv_dlopen_self=cross
7537: else
7538: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7539: lt_status=$lt_dlunknown
7540: cat > conftest.$ac_ext <<EOF
1.20 paf 7541: #line 7541 "configure"
1.15 paf 7542: #include "confdefs.h"
7543:
7544: #if HAVE_DLFCN_H
7545: #include <dlfcn.h>
7546: #endif
7547:
7548: #include <stdio.h>
7549:
7550: #ifdef RTLD_GLOBAL
7551: # define LT_DLGLOBAL RTLD_GLOBAL
7552: #else
7553: # ifdef DL_GLOBAL
7554: # define LT_DLGLOBAL DL_GLOBAL
7555: # else
7556: # define LT_DLGLOBAL 0
7557: # endif
7558: #endif
7559:
7560: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7561: find out it does not work in some platform. */
7562: #ifndef LT_DLLAZY_OR_NOW
7563: # ifdef RTLD_LAZY
7564: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7565: # else
7566: # ifdef DL_LAZY
7567: # define LT_DLLAZY_OR_NOW DL_LAZY
7568: # else
7569: # ifdef RTLD_NOW
7570: # define LT_DLLAZY_OR_NOW RTLD_NOW
7571: # else
7572: # ifdef DL_NOW
7573: # define LT_DLLAZY_OR_NOW DL_NOW
7574: # else
7575: # define LT_DLLAZY_OR_NOW 0
7576: # endif
7577: # endif
7578: # endif
7579: # endif
7580: #endif
7581:
7582: #ifdef __cplusplus
7583: extern "C" void exit (int);
7584: #endif
7585:
7586: void fnord() { int i=42;}
7587: int main ()
7588: {
7589: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7590: int status = $lt_dlunknown;
7591:
7592: if (self)
7593: {
7594: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7595: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7596: /* dlclose (self); */
7597: }
7598:
7599: exit (status);
7600: }
7601: EOF
7602: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7603: (eval $ac_link) 2>&5
7604: ac_status=$?
7605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7607: (./conftest; exit; ) 2>/dev/null
7608: lt_status=$?
7609: case x$lt_status in
7610: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7611: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7612: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7613: esac
7614: else :
7615: # compilation failed
7616: lt_cv_dlopen_self=no
7617: fi
7618: fi
7619: rm -fr conftest*
7620:
7621:
7622: fi
7623: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7624: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7625:
7626: if test "x$lt_cv_dlopen_self" = xyes; then
7627: LDFLAGS="$LDFLAGS $link_static_flag"
7628: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7629: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7630: if test "${lt_cv_dlopen_self_static+set}" = set; then
7631: echo $ECHO_N "(cached) $ECHO_C" >&6
7632: else
7633: if test "$cross_compiling" = yes; then :
7634: lt_cv_dlopen_self_static=cross
7635: else
7636: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7637: lt_status=$lt_dlunknown
7638: cat > conftest.$ac_ext <<EOF
1.20 paf 7639: #line 7639 "configure"
1.15 paf 7640: #include "confdefs.h"
7641:
7642: #if HAVE_DLFCN_H
7643: #include <dlfcn.h>
7644: #endif
7645:
7646: #include <stdio.h>
7647:
7648: #ifdef RTLD_GLOBAL
7649: # define LT_DLGLOBAL RTLD_GLOBAL
7650: #else
7651: # ifdef DL_GLOBAL
7652: # define LT_DLGLOBAL DL_GLOBAL
7653: # else
7654: # define LT_DLGLOBAL 0
7655: # endif
7656: #endif
7657:
7658: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7659: find out it does not work in some platform. */
7660: #ifndef LT_DLLAZY_OR_NOW
7661: # ifdef RTLD_LAZY
7662: # define LT_DLLAZY_OR_NOW RTLD_LAZY
7663: # else
7664: # ifdef DL_LAZY
7665: # define LT_DLLAZY_OR_NOW DL_LAZY
7666: # else
7667: # ifdef RTLD_NOW
7668: # define LT_DLLAZY_OR_NOW RTLD_NOW
7669: # else
7670: # ifdef DL_NOW
7671: # define LT_DLLAZY_OR_NOW DL_NOW
7672: # else
7673: # define LT_DLLAZY_OR_NOW 0
7674: # endif
7675: # endif
7676: # endif
7677: # endif
7678: #endif
7679:
7680: #ifdef __cplusplus
7681: extern "C" void exit (int);
7682: #endif
7683:
7684: void fnord() { int i=42;}
7685: int main ()
7686: {
7687: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7688: int status = $lt_dlunknown;
7689:
7690: if (self)
7691: {
7692: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7693: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7694: /* dlclose (self); */
7695: }
7696:
7697: exit (status);
7698: }
1.1 parser 7699: EOF
1.15 paf 7700: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7701: (eval $ac_link) 2>&5
7702: ac_status=$?
7703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7705: (./conftest; exit; ) 2>/dev/null
7706: lt_status=$?
7707: case x$lt_status in
7708: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7709: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7710: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7711: esac
7712: else :
7713: # compilation failed
7714: lt_cv_dlopen_self_static=no
7715: fi
7716: fi
7717: rm -fr conftest*
7718:
7719:
7720: fi
7721: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7722: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7723: fi
7724:
7725: CPPFLAGS="$save_CPPFLAGS"
7726: LDFLAGS="$save_LDFLAGS"
7727: LIBS="$save_LIBS"
7728: ;;
7729: esac
7730:
7731: case $lt_cv_dlopen_self in
7732: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7733: *) enable_dlopen_self=unknown ;;
7734: esac
7735:
7736: case $lt_cv_dlopen_self_static in
7737: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7738: *) enable_dlopen_self_static=unknown ;;
7739: esac
7740: fi
7741:
7742:
7743: if test "$enable_shared" = yes && test "$GCC" = yes; then
7744: case $archive_cmds in
7745: *'~'*)
7746: # FIXME: we may have to deal with multi-command sequences.
7747: ;;
7748: '$CC '*)
7749: # Test whether the compiler implicitly links with -lc since on some
7750: # systems, -lgcc has to come before -lc. If gcc already passes -lc
7751: # to ld, don't add -lc before -lgcc.
7752: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7753: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7754: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7755: echo $ECHO_N "(cached) $ECHO_C" >&6
7756: else
7757: $rm conftest*
7758: echo 'static int dummy;' > conftest.$ac_ext
7759:
7760: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761: (eval $ac_compile) 2>&5
7762: ac_status=$?
7763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764: (exit $ac_status); }; then
7765: soname=conftest
7766: lib=conftest
7767: libobjs=conftest.$ac_objext
7768: deplibs=
7769: wl=$lt_cv_prog_cc_wl
7770: compiler_flags=-v
7771: linker_flags=-v
7772: verstring=
7773: output_objdir=.
7774: libname=conftest
7775: save_allow_undefined_flag=$allow_undefined_flag
7776: allow_undefined_flag=
7777: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7778: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7779: ac_status=$?
7780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781: (exit $ac_status); }
7782: then
7783: lt_cv_archive_cmds_need_lc=no
7784: else
7785: lt_cv_archive_cmds_need_lc=yes
7786: fi
7787: allow_undefined_flag=$save_allow_undefined_flag
7788: else
7789: cat conftest.err 1>&5
7790: fi
7791: fi
7792:
7793: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7794: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7795: ;;
7796: esac
7797: fi
7798: need_lc=${lt_cv_archive_cmds_need_lc-yes}
7799:
7800: # The second clause should only fire when bootstrapping the
7801: # libtool distribution, otherwise you forgot to ship ltmain.sh
7802: # with your package, and you will get complaints that there are
7803: # no rules to generate ltmain.sh.
7804: if test -f "$ltmain"; then
1.1 parser 7805: :
7806: else
1.15 paf 7807: # If there is no Makefile yet, we rely on a make rule to execute
7808: # `config.status --recheck' to rerun these tests and create the
7809: # libtool script then.
7810: test -f Makefile && make "$ltmain"
7811: fi
7812:
7813: if test -f "$ltmain"; then
7814: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7815: $rm -f "${ofile}T"
7816:
7817: echo creating $ofile
7818:
7819: # Now quote all the things that may contain metacharacters while being
7820: # careful not to overquote the AC_SUBSTed values. We take copies of the
7821: # variables and quote the copies for generation of the libtool script.
7822: for var in echo old_CC old_CFLAGS SED \
7823: AR AR_FLAGS CC LD LN_S NM SHELL \
7824: reload_flag reload_cmds wl \
7825: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7826: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7827: library_names_spec soname_spec \
7828: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7829: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7830: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7831: old_striplib striplib file_magic_cmd export_symbols_cmds \
7832: deplibs_check_method allow_undefined_flag no_undefined_flag \
7833: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7834: global_symbol_to_c_name_address \
7835: hardcode_libdir_flag_spec hardcode_libdir_separator \
7836: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7837: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7838:
7839: case $var in
7840: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7841: old_postinstall_cmds | old_postuninstall_cmds | \
7842: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7843: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7844: postinstall_cmds | postuninstall_cmds | \
7845: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7846: # Double-quote double-evaled strings.
7847: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7848: ;;
7849: *)
7850: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7851: ;;
7852: esac
7853: done
7854:
7855: cat <<__EOF__ > "${ofile}T"
7856: #! $SHELL
7857:
7858: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7859: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7860: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7861: #
7862: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7863: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7864: #
7865: # This program is free software; you can redistribute it and/or modify
7866: # it under the terms of the GNU General Public License as published by
7867: # the Free Software Foundation; either version 2 of the License, or
7868: # (at your option) any later version.
7869: #
7870: # This program is distributed in the hope that it will be useful, but
7871: # WITHOUT ANY WARRANTY; without even the implied warranty of
7872: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7873: # General Public License for more details.
7874: #
7875: # You should have received a copy of the GNU General Public License
7876: # along with this program; if not, write to the Free Software
7877: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7878: #
7879: # As a special exception to the GNU General Public License, if you
7880: # distribute this file as part of a program that contains a
7881: # configuration script generated by Autoconf, you may include it under
7882: # the same distribution terms that you use for the rest of that program.
7883:
7884: # A sed that does not truncate output.
7885: SED=$lt_SED
7886:
7887: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7888: Xsed="${SED} -e s/^X//"
7889:
7890: # The HP-UX ksh and POSIX shell print the target directory to stdout
7891: # if CDPATH is set.
7892: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7893:
7894: # ### BEGIN LIBTOOL CONFIG
7895:
7896: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7897:
7898: # Shell to use when invoking shell scripts.
7899: SHELL=$lt_SHELL
7900:
7901: # Whether or not to build shared libraries.
7902: build_libtool_libs=$enable_shared
7903:
7904: # Whether or not to build static libraries.
7905: build_old_libs=$enable_static
7906:
7907: # Whether or not to add -lc for building shared libraries.
7908: build_libtool_need_lc=$need_lc
7909:
7910: # Whether or not to optimize for fast installation.
7911: fast_install=$enable_fast_install
7912:
7913: # The host system.
7914: host_alias=$host_alias
7915: host=$host
7916:
7917: # An echo program that does not interpret backslashes.
7918: echo=$lt_echo
7919:
7920: # The archiver.
7921: AR=$lt_AR
7922: AR_FLAGS=$lt_AR_FLAGS
7923:
7924: # The default C compiler.
7925: CC=$lt_CC
7926:
7927: # Is the compiler the GNU C compiler?
7928: with_gcc=$GCC
7929:
7930: # The linker used to build libraries.
7931: LD=$lt_LD
7932:
7933: # Whether we need hard or soft links.
7934: LN_S=$lt_LN_S
7935:
7936: # A BSD-compatible nm program.
7937: NM=$lt_NM
7938:
7939: # A symbol stripping program
7940: STRIP=$STRIP
7941:
7942: # Used to examine libraries when file_magic_cmd begins "file"
7943: MAGIC_CMD=$MAGIC_CMD
7944:
7945: # Used on cygwin: DLL creation program.
7946: DLLTOOL="$DLLTOOL"
7947:
7948: # Used on cygwin: object dumper.
7949: OBJDUMP="$OBJDUMP"
7950:
7951: # Used on cygwin: assembler.
7952: AS="$AS"
7953:
7954: # The name of the directory that contains temporary libtool files.
7955: objdir=$objdir
7956:
7957: # How to create reloadable object files.
7958: reload_flag=$lt_reload_flag
7959: reload_cmds=$lt_reload_cmds
7960:
7961: # How to pass a linker flag through the compiler.
7962: wl=$lt_wl
7963:
7964: # Object file suffix (normally "o").
7965: objext="$ac_objext"
7966:
7967: # Old archive suffix (normally "a").
7968: libext="$libext"
7969:
7970: # Executable file suffix (normally "").
7971: exeext="$exeext"
7972:
7973: # Additional compiler flags for building library objects.
7974: pic_flag=$lt_pic_flag
7975: pic_mode=$pic_mode
7976:
7977: # Does compiler simultaneously support -c and -o options?
7978: compiler_c_o=$lt_compiler_c_o
7979:
7980: # Can we write directly to a .lo ?
7981: compiler_o_lo=$lt_compiler_o_lo
7982:
7983: # Must we lock files when doing compilation ?
7984: need_locks=$lt_need_locks
7985:
7986: # Do we need the lib prefix for modules?
7987: need_lib_prefix=$need_lib_prefix
7988:
7989: # Do we need a version for libraries?
7990: need_version=$need_version
7991:
7992: # Whether dlopen is supported.
7993: dlopen_support=$enable_dlopen
7994:
7995: # Whether dlopen of programs is supported.
7996: dlopen_self=$enable_dlopen_self
7997:
7998: # Whether dlopen of statically linked programs is supported.
7999: dlopen_self_static=$enable_dlopen_self_static
8000:
8001: # Compiler flag to prevent dynamic linking.
8002: link_static_flag=$lt_link_static_flag
8003:
8004: # Compiler flag to turn off builtin functions.
8005: no_builtin_flag=$lt_no_builtin_flag
8006:
8007: # Compiler flag to allow reflexive dlopens.
8008: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8009:
8010: # Compiler flag to generate shared objects directly from archives.
8011: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8012:
8013: # Compiler flag to generate thread-safe objects.
8014: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8015:
8016: # Library versioning type.
8017: version_type=$version_type
8018:
8019: # Format of library name prefix.
8020: libname_spec=$lt_libname_spec
8021:
8022: # List of archive names. First name is the real one, the rest are links.
8023: # The last name is the one that the linker finds with -lNAME.
8024: library_names_spec=$lt_library_names_spec
8025:
8026: # The coded name of the library, if different from the real name.
8027: soname_spec=$lt_soname_spec
8028:
8029: # Commands used to build and install an old-style archive.
8030: RANLIB=$lt_RANLIB
8031: old_archive_cmds=$lt_old_archive_cmds
8032: old_postinstall_cmds=$lt_old_postinstall_cmds
8033: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8034:
8035: # Create an old-style archive from a shared archive.
8036: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8037:
8038: # Create a temporary old-style archive to link instead of a shared archive.
8039: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8040:
8041: # Commands used to build and install a shared archive.
8042: archive_cmds=$lt_archive_cmds
8043: archive_expsym_cmds=$lt_archive_expsym_cmds
8044: postinstall_cmds=$lt_postinstall_cmds
8045: postuninstall_cmds=$lt_postuninstall_cmds
8046:
8047: # Commands to strip libraries.
8048: old_striplib=$lt_old_striplib
8049: striplib=$lt_striplib
8050:
8051: # Method to check whether dependent libraries are shared objects.
8052: deplibs_check_method=$lt_deplibs_check_method
8053:
8054: # Command to use when deplibs_check_method == file_magic.
8055: file_magic_cmd=$lt_file_magic_cmd
8056:
8057: # Flag that allows shared libraries with undefined symbols to be built.
8058: allow_undefined_flag=$lt_allow_undefined_flag
8059:
8060: # Flag that forces no undefined symbols.
8061: no_undefined_flag=$lt_no_undefined_flag
8062:
8063: # Commands used to finish a libtool library installation in a directory.
8064: finish_cmds=$lt_finish_cmds
8065:
8066: # Same as above, but a single script fragment to be evaled but not shown.
8067: finish_eval=$lt_finish_eval
8068:
8069: # Take the output of nm and produce a listing of raw symbols and C names.
8070: global_symbol_pipe=$lt_global_symbol_pipe
8071:
8072: # Transform the output of nm in a proper C declaration
8073: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8074:
8075: # Transform the output of nm in a C name address pair
8076: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8077:
8078: # This is the shared library runtime path variable.
8079: runpath_var=$runpath_var
8080:
8081: # This is the shared library path variable.
8082: shlibpath_var=$shlibpath_var
8083:
8084: # Is shlibpath searched before the hard-coded library search path?
8085: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8086:
8087: # How to hardcode a shared library path into an executable.
8088: hardcode_action=$hardcode_action
8089:
8090: # Whether we should hardcode library paths into libraries.
8091: hardcode_into_libs=$hardcode_into_libs
8092:
8093: # Flag to hardcode \$libdir into a binary during linking.
8094: # This must work even if \$libdir does not exist.
8095: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8096:
8097: # Whether we need a single -rpath flag with a separated argument.
8098: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8099:
8100: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8101: # resulting binary.
8102: hardcode_direct=$hardcode_direct
8103:
8104: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8105: # resulting binary.
8106: hardcode_minus_L=$hardcode_minus_L
8107:
8108: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8109: # the resulting binary.
8110: hardcode_shlibpath_var=$hardcode_shlibpath_var
8111:
8112: # Variables whose values should be saved in libtool wrapper scripts and
8113: # restored at relink time.
8114: variables_saved_for_relink="$variables_saved_for_relink"
8115:
8116: # Whether libtool must link a program against all its dependency libraries.
8117: link_all_deplibs=$link_all_deplibs
8118:
8119: # Compile-time system search path for libraries
8120: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8121:
8122: # Run-time system search path for libraries
8123: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8124:
8125: # Fix the shell variable \$srcfile for the compiler.
8126: fix_srcfile_path="$fix_srcfile_path"
8127:
8128: # Set to yes if exported symbols are required.
8129: always_export_symbols=$always_export_symbols
8130:
8131: # The commands to list exported symbols.
8132: export_symbols_cmds=$lt_export_symbols_cmds
8133:
8134: # The commands to extract the exported symbol list from a shared archive.
8135: extract_expsyms_cmds=$lt_extract_expsyms_cmds
8136:
8137: # Symbols that should not be listed in the preloaded symbols.
8138: exclude_expsyms=$lt_exclude_expsyms
8139:
8140: # Symbols that must always be exported.
8141: include_expsyms=$lt_include_expsyms
8142:
8143: # ### END LIBTOOL CONFIG
8144:
8145: __EOF__
8146:
8147: case $host_os in
8148: aix3*)
8149: cat <<\EOF >> "${ofile}T"
8150:
8151: # AIX sometimes has problems with the GCC collect2 program. For some
8152: # reason, if we set the COLLECT_NAMES environment variable, the problems
8153: # vanish in a puff of smoke.
8154: if test "X${COLLECT_NAMES+set}" != Xset; then
8155: COLLECT_NAMES=
8156: export COLLECT_NAMES
8157: fi
8158: EOF
8159: ;;
8160: esac
8161:
8162: case $host_os in
8163: cygwin* | mingw* | pw32* | os2*)
8164: cat <<'EOF' >> "${ofile}T"
8165: # This is a source program that is used to create dlls on Windows
8166: # Don't remove nor modify the starting and closing comments
8167: # /* ltdll.c starts here */
8168: # #define WIN32_LEAN_AND_MEAN
8169: # #include <windows.h>
8170: # #undef WIN32_LEAN_AND_MEAN
8171: # #include <stdio.h>
8172: #
8173: # #ifndef __CYGWIN__
8174: # # ifdef __CYGWIN32__
8175: # # define __CYGWIN__ __CYGWIN32__
8176: # # endif
8177: # #endif
8178: #
8179: # #ifdef __cplusplus
8180: # extern "C" {
8181: # #endif
8182: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8183: # #ifdef __cplusplus
8184: # }
8185: # #endif
8186: #
8187: # #ifdef __CYGWIN__
8188: # #include <cygwin/cygwin_dll.h>
8189: # DECLARE_CYGWIN_DLL( DllMain );
8190: # #endif
8191: # HINSTANCE __hDllInstance_base;
8192: #
8193: # BOOL APIENTRY
8194: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8195: # {
8196: # __hDllInstance_base = hInst;
8197: # return TRUE;
8198: # }
8199: # /* ltdll.c ends here */
8200: # This is a source program that is used to create import libraries
8201: # on Windows for dlls which lack them. Don't remove nor modify the
8202: # starting and closing comments
8203: # /* impgen.c starts here */
8204: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8205: #
8206: # This file is part of GNU libtool.
8207: #
8208: # This program is free software; you can redistribute it and/or modify
8209: # it under the terms of the GNU General Public License as published by
8210: # the Free Software Foundation; either version 2 of the License, or
8211: # (at your option) any later version.
8212: #
8213: # This program is distributed in the hope that it will be useful,
8214: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8215: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8216: # GNU General Public License for more details.
8217: #
8218: # You should have received a copy of the GNU General Public License
8219: # along with this program; if not, write to the Free Software
8220: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8221: # */
8222: #
8223: # #include <stdio.h> /* for printf() */
8224: # #include <unistd.h> /* for open(), lseek(), read() */
8225: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8226: # #include <string.h> /* for strdup() */
8227: #
8228: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8229: # #ifndef O_BINARY
8230: # #define O_BINARY 0
8231: # #endif
8232: #
8233: # static unsigned int
8234: # pe_get16 (fd, offset)
8235: # int fd;
8236: # int offset;
8237: # {
8238: # unsigned char b[2];
8239: # lseek (fd, offset, SEEK_SET);
8240: # read (fd, b, 2);
8241: # return b[0] + (b[1]<<8);
8242: # }
8243: #
8244: # static unsigned int
8245: # pe_get32 (fd, offset)
8246: # int fd;
8247: # int offset;
8248: # {
8249: # unsigned char b[4];
8250: # lseek (fd, offset, SEEK_SET);
8251: # read (fd, b, 4);
8252: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8253: # }
8254: #
8255: # static unsigned int
8256: # pe_as32 (ptr)
8257: # void *ptr;
8258: # {
8259: # unsigned char *b = ptr;
8260: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8261: # }
8262: #
8263: # int
8264: # main (argc, argv)
8265: # int argc;
8266: # char *argv[];
8267: # {
8268: # int dll;
8269: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8270: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8271: # unsigned long name_rvas, nexp;
8272: # unsigned char *expdata, *erva;
8273: # char *filename, *dll_name;
8274: #
8275: # filename = argv[1];
8276: #
8277: # dll = open(filename, O_RDONLY|O_BINARY);
8278: # if (dll < 1)
8279: # return 1;
8280: #
8281: # dll_name = filename;
8282: #
8283: # for (i=0; filename[i]; i++)
8284: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8285: # dll_name = filename + i +1;
8286: #
8287: # pe_header_offset = pe_get32 (dll, 0x3c);
8288: # opthdr_ofs = pe_header_offset + 4 + 20;
8289: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8290: #
8291: # if (num_entries < 1) /* no exports */
8292: # return 1;
8293: #
8294: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8295: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8296: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8297: # secptr = (pe_header_offset + 4 + 20 +
8298: # pe_get16 (dll, pe_header_offset + 4 + 16));
8299: #
8300: # expptr = 0;
8301: # for (i = 0; i < nsections; i++)
8302: # {
8303: # char sname[8];
8304: # unsigned long secptr1 = secptr + 40 * i;
8305: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8306: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8307: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8308: # lseek(dll, secptr1, SEEK_SET);
8309: # read(dll, sname, 8);
8310: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8311: # {
8312: # expptr = fptr + (export_rva - vaddr);
8313: # if (export_rva + export_size > vaddr + vsize)
8314: # export_size = vsize - (export_rva - vaddr);
8315: # break;
8316: # }
8317: # }
8318: #
8319: # expdata = (unsigned char*)malloc(export_size);
8320: # lseek (dll, expptr, SEEK_SET);
8321: # read (dll, expdata, export_size);
8322: # erva = expdata - export_rva;
8323: #
8324: # nexp = pe_as32 (expdata+24);
8325: # name_rvas = pe_as32 (expdata+32);
8326: #
8327: # printf ("EXPORTS\n");
8328: # for (i = 0; i<nexp; i++)
8329: # {
8330: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8331: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8332: # }
8333: #
8334: # return 0;
8335: # }
8336: # /* impgen.c ends here */
8337:
8338: EOF
8339: ;;
8340: esac
8341:
8342: # We use sed instead of cat because bash on DJGPP gets confused if
8343: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8344: # text mode, it properly converts lines to CR/LF. This bash problem
8345: # is reportedly fixed, but why not run on old versions too?
8346: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8347:
8348: mv -f "${ofile}T" "$ofile" || \
8349: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8350: chmod +x "$ofile"
8351: fi
8352:
8353:
8354:
8355:
8356:
8357: # This can be used to rebuild libtool when needed
8358: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8359:
1.17 paf 8360: # Always use rootdir libtool.
8361: LIBTOOL="$ac_aux_dir/libtool"
1.15 paf 8362:
8363: # Prevent multiple expansion
8364:
8365:
8366:
8367:
8368: subdirs="$subdirs libltdl"
8369:
8370:
8371:
8372:
8373:
8374:
8375:
8376:
8377: for ac_header in stdio.h \
8378: stdlib.h \
8379: string.h \
8380: setjmp.h
8381:
8382: do
8383: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8384: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8385: echo "$as_me:$LINENO: checking for $ac_header" >&5
8386: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8387: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388: echo $ECHO_N "(cached) $ECHO_C" >&6
8389: fi
8390: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8391: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8392: else
8393: # Is the header compilable?
8394: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8395: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8396: cat >conftest.$ac_ext <<_ACEOF
8397: #line $LINENO "configure"
8398: /* confdefs.h. */
8399: _ACEOF
8400: cat confdefs.h >>conftest.$ac_ext
8401: cat >>conftest.$ac_ext <<_ACEOF
8402: /* end confdefs.h. */
8403: $ac_includes_default
8404: #include <$ac_header>
8405: _ACEOF
8406: rm -f conftest.$ac_objext
8407: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8408: (eval $ac_compile) 2>&5
8409: ac_status=$?
8410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411: (exit $ac_status); } &&
8412: { ac_try='test -s conftest.$ac_objext'
8413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414: (eval $ac_try) 2>&5
8415: ac_status=$?
8416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417: (exit $ac_status); }; }; then
8418: ac_header_compiler=yes
8419: else
8420: echo "$as_me: failed program was:" >&5
8421: sed 's/^/| /' conftest.$ac_ext >&5
8422:
8423: ac_header_compiler=no
8424: fi
8425: rm -f conftest.$ac_objext conftest.$ac_ext
8426: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427: echo "${ECHO_T}$ac_header_compiler" >&6
8428:
8429: # Is the header present?
8430: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8432: cat >conftest.$ac_ext <<_ACEOF
8433: #line $LINENO "configure"
8434: /* confdefs.h. */
8435: _ACEOF
8436: cat confdefs.h >>conftest.$ac_ext
8437: cat >>conftest.$ac_ext <<_ACEOF
8438: /* end confdefs.h. */
8439: #include <$ac_header>
8440: _ACEOF
8441: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8443: ac_status=$?
8444: grep -v '^ *+' conftest.er1 >conftest.err
8445: rm -f conftest.er1
8446: cat conftest.err >&5
8447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448: (exit $ac_status); } >/dev/null; then
8449: if test -s conftest.err; then
8450: ac_cpp_err=$ac_cxx_preproc_warn_flag
8451: else
8452: ac_cpp_err=
8453: fi
8454: else
8455: ac_cpp_err=yes
8456: fi
8457: if test -z "$ac_cpp_err"; then
8458: ac_header_preproc=yes
8459: else
8460: echo "$as_me: failed program was:" >&5
8461: sed 's/^/| /' conftest.$ac_ext >&5
8462:
8463: ac_header_preproc=no
8464: fi
8465: rm -f conftest.err conftest.$ac_ext
8466: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467: echo "${ECHO_T}$ac_header_preproc" >&6
8468:
8469: # So? What about this header?
8470: case $ac_header_compiler:$ac_header_preproc in
8471: yes:no )
8472: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8475: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8476: (
8477: cat <<\_ASBOX
8478: ## ------------------------------------ ##
8479: ## Report this to bug-autoconf@gnu.org. ##
8480: ## ------------------------------------ ##
8481: _ASBOX
8482: ) |
8483: sed "s/^/$as_me: WARNING: /" >&2
8484: ;;
8485: no:yes )
8486: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8487: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8488: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8489: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8490: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8491: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8492: (
8493: cat <<\_ASBOX
8494: ## ------------------------------------ ##
8495: ## Report this to bug-autoconf@gnu.org. ##
8496: ## ------------------------------------ ##
8497: _ASBOX
8498: ) |
8499: sed "s/^/$as_me: WARNING: /" >&2
8500: ;;
8501: esac
8502: echo "$as_me:$LINENO: checking for $ac_header" >&5
8503: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505: echo $ECHO_N "(cached) $ECHO_C" >&6
8506: else
8507: eval "$as_ac_Header=$ac_header_preproc"
1.1 parser 8508: fi
1.15 paf 8509: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8511:
1.1 parser 8512: fi
1.15 paf 8513: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514: cat >>confdefs.h <<_ACEOF
8515: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516: _ACEOF
1.1 parser 8517:
8518: fi
8519:
1.15 paf 8520: done
8521:
1.1 parser 8522:
8523:
1.15 paf 8524: echo "$as_me:$LINENO: checking for size_t" >&5
8525: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8526: if test "${ac_cv_type_size_t+set}" = set; then
8527: echo $ECHO_N "(cached) $ECHO_C" >&6
8528: else
8529: cat >conftest.$ac_ext <<_ACEOF
8530: #line $LINENO "configure"
8531: /* confdefs.h. */
8532: _ACEOF
8533: cat confdefs.h >>conftest.$ac_ext
8534: cat >>conftest.$ac_ext <<_ACEOF
8535: /* end confdefs.h. */
8536: $ac_includes_default
8537: int
8538: main ()
8539: {
8540: if ((size_t *) 0)
8541: return 0;
8542: if (sizeof (size_t))
8543: return 0;
8544: ;
8545: return 0;
8546: }
8547: _ACEOF
8548: rm -f conftest.$ac_objext
8549: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550: (eval $ac_compile) 2>&5
8551: ac_status=$?
8552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553: (exit $ac_status); } &&
8554: { ac_try='test -s conftest.$ac_objext'
8555: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556: (eval $ac_try) 2>&5
8557: ac_status=$?
8558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559: (exit $ac_status); }; }; then
1.1 parser 8560: ac_cv_type_size_t=yes
8561: else
1.15 paf 8562: echo "$as_me: failed program was:" >&5
8563: sed 's/^/| /' conftest.$ac_ext >&5
8564:
8565: ac_cv_type_size_t=no
8566: fi
8567: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 parser 8568: fi
1.15 paf 8569: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8570: echo "${ECHO_T}$ac_cv_type_size_t" >&6
8571: if test $ac_cv_type_size_t = yes; then
8572: :
8573: else
1.1 parser 8574:
1.15 paf 8575: cat >>confdefs.h <<_ACEOF
1.1 parser 8576: #define size_t unsigned
1.15 paf 8577: _ACEOF
1.1 parser 8578:
8579: fi
8580:
8581:
8582:
8583:
1.15 paf 8584: ac_config_files="$ac_config_files Makefile"
8585: cat >confcache <<\_ACEOF
1.1 parser 8586: # This file is a shell script that caches the results of configure
8587: # tests run on this system so they can be shared between configure
1.15 paf 8588: # scripts and configure runs, see configure's option --config-cache.
8589: # It is not useful on other systems. If it contains results you don't
8590: # want to keep, you may remove or edit it.
1.1 parser 8591: #
1.15 paf 8592: # config.status only pays attention to the cache file if you give it
8593: # the --recheck option to rerun configure.
1.1 parser 8594: #
1.15 paf 8595: # `ac_cv_env_foo' variables (set or unset) will be overridden when
8596: # loading this file, other *unset* `ac_cv_foo' will be assigned the
8597: # following values.
8598:
8599: _ACEOF
8600:
1.1 parser 8601: # The following way of writing the cache mishandles newlines in values,
8602: # but we know of no workaround that is simple, portable, and efficient.
8603: # So, don't put newlines in cache variables' values.
8604: # Ultrix sh set writes to stderr and can't be redirected directly,
8605: # and sets the high bit in the cache file unless we assign to the vars.
1.15 paf 8606: {
8607: (set) 2>&1 |
8608: case `(ac_space=' '; set | grep ac_space) 2>&1` in
8609: *ac_space=\ *)
8610: # `set' does not quote correctly, so add quotes (double-quote
8611: # substitution turns \\\\ into \\, and sed turns \\ into \).
8612: sed -n \
8613: "s/'/'\\\\''/g;
8614: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8615: ;;
8616: *)
8617: # `set' quotes correctly as required by POSIX, so do not add quotes.
8618: sed -n \
8619: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8620: ;;
8621: esac;
8622: } |
8623: sed '
8624: t clear
8625: : clear
8626: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8627: t end
8628: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8629: : end' >>confcache
8630: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 parser 8631: if test -w $cache_file; then
1.15 paf 8632: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8633: cat confcache >$cache_file
1.1 parser 8634: else
8635: echo "not updating unwritable cache $cache_file"
8636: fi
8637: fi
8638: rm -f confcache
8639:
8640: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8641: # Let make expand exec_prefix.
8642: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8643:
1.15 paf 8644: # VPATH may cause trouble with some makes, so we remove $(srcdir),
8645: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8646: # trailing colons and then remove the whole line if VPATH becomes empty
8647: # (actually we leave an empty line to preserve line numbers).
1.1 parser 8648: if test "x$srcdir" = x.; then
1.15 paf 8649: ac_vpsub='/^[ ]*VPATH[ ]*=/{
8650: s/:*\$(srcdir):*/:/;
8651: s/:*\${srcdir}:*/:/;
8652: s/:*@srcdir@:*/:/;
8653: s/^\([^=]*=[ ]*\):*/\1/;
8654: s/:*$//;
8655: s/^[^=]*=[ ]*$//;
8656: }'
1.1 parser 8657: fi
8658:
1.15 paf 8659: DEFS=-DHAVE_CONFIG_H
8660:
8661: ac_libobjs=
8662: ac_ltlibobjs=
8663: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8664: # 1. Remove the extension, and $U if already installed.
8665: ac_i=`echo "$ac_i" |
8666: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8667: # 2. Add them.
8668: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8669: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8670: done
8671: LIBOBJS=$ac_libobjs
8672:
8673: LTLIBOBJS=$ac_ltlibobjs
8674:
1.1 parser 8675:
1.15 paf 8676: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8677: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8678: Usually this means the macro was only invoked conditionally." >&5
8679: echo "$as_me: error: conditional \"AMDEP\" was never defined.
8680: Usually this means the macro was only invoked conditionally." >&2;}
8681: { (exit 1); exit 1; }; }
8682: fi
8683: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8684: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8685: Usually this means the macro was only invoked conditionally." >&5
8686: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8687: Usually this means the macro was only invoked conditionally." >&2;}
8688: { (exit 1); exit 1; }; }
8689: fi
8690: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8691: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8692: Usually this means the macro was only invoked conditionally." >&5
8693: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8694: Usually this means the macro was only invoked conditionally." >&2;}
8695: { (exit 1); exit 1; }; }
8696: fi
1.1 parser 8697:
8698: : ${CONFIG_STATUS=./config.status}
1.15 paf 8699: ac_clean_files_save=$ac_clean_files
8700: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8701: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8702: echo "$as_me: creating $CONFIG_STATUS" >&6;}
8703: cat >$CONFIG_STATUS <<_ACEOF
8704: #! $SHELL
8705: # Generated by $as_me.
8706: # Run this file to recreate the current configuration.
8707: # Compiler output produced by configure, useful for debugging
8708: # configure, is in config.log if it exists.
8709:
8710: debug=false
8711: ac_cs_recheck=false
8712: ac_cs_silent=false
8713: SHELL=\${CONFIG_SHELL-$SHELL}
8714: _ACEOF
8715:
8716: cat >>$CONFIG_STATUS <<\_ACEOF
8717: ## --------------------- ##
8718: ## M4sh Initialization. ##
8719: ## --------------------- ##
8720:
8721: # Be Bourne compatible
8722: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8723: emulate sh
8724: NULLCMD=:
8725: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8726: # is contrary to our usage. Disable this feature.
8727: alias -g '${1+"$@"}'='"$@"'
8728: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8729: set -o posix
8730: fi
8731:
8732: # Support unset when possible.
8733: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8734: as_unset=unset
8735: else
8736: as_unset=false
8737: fi
8738:
8739:
8740: # Work around bugs in pre-3.0 UWIN ksh.
8741: $as_unset ENV MAIL MAILPATH
8742: PS1='$ '
8743: PS2='> '
8744: PS4='+ '
8745:
8746: # NLS nuisances.
8747: for as_var in \
8748: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8749: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8750: LC_TELEPHONE LC_TIME
8751: do
8752: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8753: eval $as_var=C; export $as_var
8754: else
8755: $as_unset $as_var
8756: fi
8757: done
8758:
8759: # Required to use basename.
8760: if expr a : '\(a\)' >/dev/null 2>&1; then
8761: as_expr=expr
8762: else
8763: as_expr=false
8764: fi
8765:
8766: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8767: as_basename=basename
8768: else
8769: as_basename=false
8770: fi
8771:
8772:
8773: # Name of the executable.
8774: as_me=`$as_basename "$0" ||
8775: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8776: X"$0" : 'X\(//\)$' \| \
8777: X"$0" : 'X\(/\)$' \| \
8778: . : '\(.\)' 2>/dev/null ||
8779: echo X/"$0" |
8780: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8781: /^X\/\(\/\/\)$/{ s//\1/; q; }
8782: /^X\/\(\/\).*/{ s//\1/; q; }
8783: s/.*/./; q'`
8784:
8785:
8786: # PATH needs CR, and LINENO needs CR and PATH.
8787: # Avoid depending upon Character Ranges.
8788: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8789: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8790: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8791: as_cr_digits='0123456789'
8792: as_cr_alnum=$as_cr_Letters$as_cr_digits
8793:
8794: # The user is always right.
8795: if test "${PATH_SEPARATOR+set}" != set; then
8796: echo "#! /bin/sh" >conf$$.sh
8797: echo "exit 0" >>conf$$.sh
8798: chmod +x conf$$.sh
8799: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8800: PATH_SEPARATOR=';'
8801: else
8802: PATH_SEPARATOR=:
8803: fi
8804: rm -f conf$$.sh
8805: fi
8806:
8807:
8808: as_lineno_1=$LINENO
8809: as_lineno_2=$LINENO
8810: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8811: test "x$as_lineno_1" != "x$as_lineno_2" &&
8812: test "x$as_lineno_3" = "x$as_lineno_2" || {
8813: # Find who we are. Look in the path if we contain no path at all
8814: # relative or not.
8815: case $0 in
8816: *[\\/]* ) as_myself=$0 ;;
8817: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818: for as_dir in $PATH
8819: do
8820: IFS=$as_save_IFS
8821: test -z "$as_dir" && as_dir=.
8822: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8823: done
8824:
8825: ;;
8826: esac
8827: # We did not find ourselves, most probably we were run as `sh COMMAND'
8828: # in which case we are not to be found in the path.
8829: if test "x$as_myself" = x; then
8830: as_myself=$0
8831: fi
8832: if test ! -f "$as_myself"; then
8833: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8834: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8835: { (exit 1); exit 1; }; }
8836: fi
8837: case $CONFIG_SHELL in
8838: '')
8839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8841: do
8842: IFS=$as_save_IFS
8843: test -z "$as_dir" && as_dir=.
8844: for as_base in sh bash ksh sh5; do
8845: case $as_dir in
8846: /*)
8847: if ("$as_dir/$as_base" -c '
8848: as_lineno_1=$LINENO
8849: as_lineno_2=$LINENO
8850: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8851: test "x$as_lineno_1" != "x$as_lineno_2" &&
8852: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8853: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8854: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8855: CONFIG_SHELL=$as_dir/$as_base
8856: export CONFIG_SHELL
8857: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8858: fi;;
8859: esac
8860: done
8861: done
8862: ;;
8863: esac
8864:
8865: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8866: # uniformly replaced by the line number. The first 'sed' inserts a
8867: # line-number line before each line; the second 'sed' does the real
8868: # work. The second script uses 'N' to pair each line-number line
8869: # with the numbered line, and appends trailing '-' during
8870: # substitution so that $LINENO is not a special case at line end.
8871: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8872: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8873: sed '=' <$as_myself |
8874: sed '
8875: N
8876: s,$,-,
8877: : loop
8878: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8879: t loop
8880: s,-$,,
8881: s,^['$as_cr_digits']*\n,,
8882: ' >$as_me.lineno &&
8883: chmod +x $as_me.lineno ||
8884: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8885: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8886: { (exit 1); exit 1; }; }
8887:
8888: # Don't try to exec as it changes $[0], causing all sort of problems
8889: # (the dirname of $[0] is not the place where we might find the
8890: # original and so on. Autoconf is especially sensible to this).
8891: . ./$as_me.lineno
8892: # Exit status is that of the last command.
8893: exit
8894: }
8895:
8896:
8897: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8898: *c*,-n*) ECHO_N= ECHO_C='
8899: ' ECHO_T=' ' ;;
8900: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8901: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8902: esac
8903:
8904: if expr a : '\(a\)' >/dev/null 2>&1; then
8905: as_expr=expr
8906: else
8907: as_expr=false
8908: fi
8909:
8910: rm -f conf$$ conf$$.exe conf$$.file
8911: echo >conf$$.file
8912: if ln -s conf$$.file conf$$ 2>/dev/null; then
8913: # We could just check for DJGPP; but this test a) works b) is more generic
8914: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8915: if test -f conf$$.exe; then
8916: # Don't use ln at all; we don't have any links
8917: as_ln_s='cp -p'
8918: else
8919: as_ln_s='ln -s'
8920: fi
8921: elif ln conf$$.file conf$$ 2>/dev/null; then
8922: as_ln_s=ln
8923: else
8924: as_ln_s='cp -p'
8925: fi
8926: rm -f conf$$ conf$$.exe conf$$.file
8927:
8928: if mkdir -p . 2>/dev/null; then
8929: as_mkdir_p=:
8930: else
8931: as_mkdir_p=false
8932: fi
8933:
8934: as_executable_p="test -f"
8935:
8936: # Sed expression to map a string onto a valid CPP name.
8937: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8938:
8939: # Sed expression to map a string onto a valid variable name.
8940: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8941:
8942:
8943: # IFS
8944: # We need space, tab and new line, in precisely that order.
8945: as_nl='
8946: '
8947: IFS=" $as_nl"
8948:
8949: # CDPATH.
8950: $as_unset CDPATH
8951:
8952: exec 6>&1
8953:
8954: # Open the log real soon, to keep \$[0] and so on meaningful, and to
8955: # report actual input values of CONFIG_FILES etc. instead of their
8956: # values after options handling. Logging --version etc. is OK.
8957: exec 5>>config.log
8958: {
8959: echo
8960: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8961: ## Running $as_me. ##
8962: _ASBOX
8963: } >&5
8964: cat >&5 <<_CSEOF
8965:
8966: This file was extended by $as_me, which was
8967: generated by GNU Autoconf 2.57. Invocation command line was
8968:
8969: CONFIG_FILES = $CONFIG_FILES
8970: CONFIG_HEADERS = $CONFIG_HEADERS
8971: CONFIG_LINKS = $CONFIG_LINKS
8972: CONFIG_COMMANDS = $CONFIG_COMMANDS
8973: $ $0 $@
8974:
8975: _CSEOF
8976: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8977: echo >&5
8978: _ACEOF
8979:
8980: # Files that config.status was made for.
8981: if test -n "$ac_config_files"; then
8982: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8983: fi
8984:
8985: if test -n "$ac_config_headers"; then
8986: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8987: fi
8988:
8989: if test -n "$ac_config_links"; then
8990: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8991: fi
8992:
8993: if test -n "$ac_config_commands"; then
8994: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8995: fi
8996:
8997: cat >>$CONFIG_STATUS <<\_ACEOF
8998:
8999: ac_cs_usage="\
9000: \`$as_me' instantiates files from templates according to the
9001: current configuration.
9002:
9003: Usage: $0 [OPTIONS] [FILE]...
9004:
9005: -h, --help print this help, then exit
9006: -V, --version print version number, then exit
9007: -q, --quiet do not print progress messages
9008: -d, --debug don't remove temporary files
9009: --recheck update $as_me by reconfiguring in the same conditions
9010: --file=FILE[:TEMPLATE]
9011: instantiate the configuration file FILE
9012: --header=FILE[:TEMPLATE]
9013: instantiate the configuration header FILE
9014:
9015: Configuration files:
9016: $config_files
9017:
9018: Configuration headers:
9019: $config_headers
9020:
9021: Configuration commands:
9022: $config_commands
9023:
9024: Report bugs to <bug-autoconf@gnu.org>."
9025: _ACEOF
9026:
9027: cat >>$CONFIG_STATUS <<_ACEOF
9028: ac_cs_version="\\
9029: config.status
9030: configured by $0, generated by GNU Autoconf 2.57,
9031: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9032:
9033: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9034: Free Software Foundation, Inc.
9035: This config.status script is free software; the Free Software Foundation
9036: gives unlimited permission to copy, distribute and modify it."
9037: srcdir=$srcdir
9038: INSTALL="$INSTALL"
9039: _ACEOF
9040:
9041: cat >>$CONFIG_STATUS <<\_ACEOF
9042: # If no file are specified by the user, then we need to provide default
9043: # value. By we need to know if files were specified by the user.
9044: ac_need_defaults=:
9045: while test $# != 0
9046: do
9047: case $1 in
9048: --*=*)
9049: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9050: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9051: ac_shift=:
9052: ;;
9053: -*)
9054: ac_option=$1
9055: ac_optarg=$2
9056: ac_shift=shift
9057: ;;
9058: *) # This is not an option, so the user has probably given explicit
9059: # arguments.
9060: ac_option=$1
9061: ac_need_defaults=false;;
9062: esac
9063:
9064: case $ac_option in
9065: # Handling of the options.
9066: _ACEOF
9067: cat >>$CONFIG_STATUS <<\_ACEOF
9068: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9069: ac_cs_recheck=: ;;
9070: --version | --vers* | -V )
9071: echo "$ac_cs_version"; exit 0 ;;
9072: --he | --h)
9073: # Conflict between --help and --header
9074: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9075: Try \`$0 --help' for more information." >&5
9076: echo "$as_me: error: ambiguous option: $1
9077: Try \`$0 --help' for more information." >&2;}
9078: { (exit 1); exit 1; }; };;
9079: --help | --hel | -h )
9080: echo "$ac_cs_usage"; exit 0 ;;
9081: --debug | --d* | -d )
9082: debug=: ;;
9083: --file | --fil | --fi | --f )
9084: $ac_shift
9085: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9086: ac_need_defaults=false;;
9087: --header | --heade | --head | --hea )
9088: $ac_shift
9089: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9090: ac_need_defaults=false;;
9091: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9092: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9093: ac_cs_silent=: ;;
9094:
9095: # This is an error.
9096: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9097: Try \`$0 --help' for more information." >&5
9098: echo "$as_me: error: unrecognized option: $1
9099: Try \`$0 --help' for more information." >&2;}
9100: { (exit 1); exit 1; }; } ;;
9101:
9102: *) ac_config_targets="$ac_config_targets $1" ;;
1.1 parser 9103:
1.15 paf 9104: esac
9105: shift
9106: done
9107:
9108: ac_configure_extra_args=
9109:
9110: if $ac_cs_silent; then
9111: exec 6>/dev/null
9112: ac_configure_extra_args="$ac_configure_extra_args --silent"
9113: fi
9114:
9115: _ACEOF
9116: cat >>$CONFIG_STATUS <<_ACEOF
9117: if \$ac_cs_recheck; then
9118: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9119: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9120: fi
9121:
9122: _ACEOF
9123:
9124: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9125: #
1.15 paf 9126: # INIT-COMMANDS section.
1.1 parser 9127: #
9128:
1.15 paf 9129: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9130:
9131: _ACEOF
9132:
9133:
9134:
9135: cat >>$CONFIG_STATUS <<\_ACEOF
9136: for ac_config_target in $ac_config_targets
1.1 parser 9137: do
1.15 paf 9138: case "$ac_config_target" in
9139: # Handling of arguments.
9140: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9141: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9142: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9143: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9144: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9145: { (exit 1); exit 1; }; };;
1.1 parser 9146: esac
9147: done
9148:
1.15 paf 9149: # If the user did not use the arguments to specify the items to instantiate,
9150: # then the envvar interface is used. Set only those that are not.
9151: # We use the long form for the default assignment because of an extremely
9152: # bizarre bug on SunOS 4.1.3.
9153: if $ac_need_defaults; then
9154: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9155: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9156: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9157: fi
9158:
9159: # Have a temporary directory for convenience. Make it in the build tree
9160: # simply because there is no reason to put it here, and in addition,
9161: # creating and moving files from /tmp can sometimes cause problems.
9162: # Create a temporary directory, and hook for its removal unless debugging.
9163: $debug ||
9164: {
9165: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9166: trap '{ (exit 1); exit 1; }' 1 2 13 15
9167: }
9168:
9169: # Create a (secure) tmp directory for tmp files.
9170:
9171: {
9172: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9173: test -n "$tmp" && test -d "$tmp"
9174: } ||
9175: {
9176: tmp=./confstat$$-$RANDOM
9177: (umask 077 && mkdir $tmp)
9178: } ||
9179: {
9180: echo "$me: cannot create a temporary directory in ." >&2
9181: { (exit 1); exit 1; }
9182: }
9183:
9184: _ACEOF
1.1 parser 9185:
1.15 paf 9186: cat >>$CONFIG_STATUS <<_ACEOF
1.1 parser 9187:
1.15 paf 9188: #
9189: # CONFIG_FILES section.
9190: #
1.1 parser 9191:
1.15 paf 9192: # No need to generate the scripts if there are no CONFIG_FILES.
9193: # This happens for instance when ./config.status config.h
9194: if test -n "\$CONFIG_FILES"; then
9195: # Protect against being on the right side of a sed subst in config.status.
9196: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9197: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9198: s,@SHELL@,$SHELL,;t t
9199: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9200: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9201: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9202: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9203: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9204: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9205: s,@exec_prefix@,$exec_prefix,;t t
9206: s,@prefix@,$prefix,;t t
9207: s,@program_transform_name@,$program_transform_name,;t t
9208: s,@bindir@,$bindir,;t t
9209: s,@sbindir@,$sbindir,;t t
9210: s,@libexecdir@,$libexecdir,;t t
9211: s,@datadir@,$datadir,;t t
9212: s,@sysconfdir@,$sysconfdir,;t t
9213: s,@sharedstatedir@,$sharedstatedir,;t t
9214: s,@localstatedir@,$localstatedir,;t t
9215: s,@libdir@,$libdir,;t t
9216: s,@includedir@,$includedir,;t t
9217: s,@oldincludedir@,$oldincludedir,;t t
9218: s,@infodir@,$infodir,;t t
9219: s,@mandir@,$mandir,;t t
9220: s,@build_alias@,$build_alias,;t t
9221: s,@host_alias@,$host_alias,;t t
9222: s,@target_alias@,$target_alias,;t t
9223: s,@DEFS@,$DEFS,;t t
9224: s,@ECHO_C@,$ECHO_C,;t t
9225: s,@ECHO_N@,$ECHO_N,;t t
9226: s,@ECHO_T@,$ECHO_T,;t t
9227: s,@LIBS@,$LIBS,;t t
9228: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9229: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9230: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9231: s,@CYGPATH_W@,$CYGPATH_W,;t t
9232: s,@PACKAGE@,$PACKAGE,;t t
9233: s,@VERSION@,$VERSION,;t t
9234: s,@ACLOCAL@,$ACLOCAL,;t t
9235: s,@AUTOCONF@,$AUTOCONF,;t t
9236: s,@AUTOMAKE@,$AUTOMAKE,;t t
9237: s,@AUTOHEADER@,$AUTOHEADER,;t t
9238: s,@MAKEINFO@,$MAKEINFO,;t t
9239: s,@AMTAR@,$AMTAR,;t t
9240: s,@install_sh@,$install_sh,;t t
9241: s,@STRIP@,$STRIP,;t t
9242: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9243: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9244: s,@AWK@,$AWK,;t t
9245: s,@SET_MAKE@,$SET_MAKE,;t t
9246: s,@MYSQL_INC@,$MYSQL_INC,;t t
9247: s,@CXX@,$CXX,;t t
9248: s,@CXXFLAGS@,$CXXFLAGS,;t t
9249: s,@LDFLAGS@,$LDFLAGS,;t t
9250: s,@CPPFLAGS@,$CPPFLAGS,;t t
9251: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9252: s,@EXEEXT@,$EXEEXT,;t t
9253: s,@OBJEXT@,$OBJEXT,;t t
9254: s,@DEPDIR@,$DEPDIR,;t t
9255: s,@am__include@,$am__include,;t t
9256: s,@am__quote@,$am__quote,;t t
9257: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9258: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9259: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9260: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9261: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9262: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9263: s,@INCLTDL@,$INCLTDL,;t t
9264: s,@LIBLTDL@,$LIBLTDL,;t t
9265: s,@LIBADD_DL@,$LIBADD_DL,;t t
9266: s,@build@,$build,;t t
9267: s,@build_cpu@,$build_cpu,;t t
9268: s,@build_vendor@,$build_vendor,;t t
9269: s,@build_os@,$build_os,;t t
9270: s,@host@,$host,;t t
9271: s,@host_cpu@,$host_cpu,;t t
9272: s,@host_vendor@,$host_vendor,;t t
9273: s,@host_os@,$host_os,;t t
9274: s,@CC@,$CC,;t t
9275: s,@CFLAGS@,$CFLAGS,;t t
9276: s,@ac_ct_CC@,$ac_ct_CC,;t t
9277: s,@CCDEPMODE@,$CCDEPMODE,;t t
9278: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9279: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9280: s,@LN_S@,$LN_S,;t t
9281: s,@ECHO@,$ECHO,;t t
9282: s,@RANLIB@,$RANLIB,;t t
9283: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9284: s,@CXXCPP@,$CXXCPP,;t t
9285: s,@EGREP@,$EGREP,;t t
9286: s,@LIBTOOL@,$LIBTOOL,;t t
9287: s,@subdirs@,$subdirs,;t t
9288: s,@LIBOBJS@,$LIBOBJS,;t t
9289: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 parser 9290: CEOF
9291:
1.15 paf 9292: _ACEOF
1.1 parser 9293:
1.15 paf 9294: cat >>$CONFIG_STATUS <<\_ACEOF
9295: # Split the substitutions into bite-sized pieces for seds with
9296: # small command number limits, like on Digital OSF/1 and HP-UX.
9297: ac_max_sed_lines=48
9298: ac_sed_frag=1 # Number of current file.
9299: ac_beg=1 # First line for current file.
9300: ac_end=$ac_max_sed_lines # Line after last line for current file.
9301: ac_more_lines=:
9302: ac_sed_cmds=
9303: while $ac_more_lines; do
9304: if test $ac_beg -gt 1; then
9305: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9306: else
9307: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9308: fi
9309: if test ! -s $tmp/subs.frag; then
9310: ac_more_lines=false
9311: else
9312: # The purpose of the label and of the branching condition is to
9313: # speed up the sed processing (if there are no `@' at all, there
9314: # is no need to browse any of the substitutions).
9315: # These are the two extra sed commands mentioned above.
9316: (echo ':t
9317: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9318: if test -z "$ac_sed_cmds"; then
9319: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9320: else
9321: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9322: fi
9323: ac_sed_frag=`expr $ac_sed_frag + 1`
9324: ac_beg=$ac_end
9325: ac_end=`expr $ac_end + $ac_max_sed_lines`
9326: fi
9327: done
9328: if test -z "$ac_sed_cmds"; then
9329: ac_sed_cmds=cat
1.1 parser 9330: fi
1.15 paf 9331: fi # test -n "$CONFIG_FILES"
1.1 parser 9332:
1.15 paf 9333: _ACEOF
9334: cat >>$CONFIG_STATUS <<\_ACEOF
9335: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9336: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9337: case $ac_file in
9338: - | *:- | *:-:* ) # input from stdin
9339: cat >$tmp/stdin
9340: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9341: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9342: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9343: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9344: * ) ac_file_in=$ac_file.in ;;
9345: esac
1.1 parser 9346:
1.15 paf 9347: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9348: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9349: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9350: X"$ac_file" : 'X\(//\)[^/]' \| \
9351: X"$ac_file" : 'X\(//\)$' \| \
9352: X"$ac_file" : 'X\(/\)' \| \
9353: . : '\(.\)' 2>/dev/null ||
9354: echo X"$ac_file" |
9355: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9356: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9357: /^X\(\/\/\)$/{ s//\1/; q; }
9358: /^X\(\/\).*/{ s//\1/; q; }
9359: s/.*/./; q'`
9360: { if $as_mkdir_p; then
9361: mkdir -p "$ac_dir"
9362: else
9363: as_dir="$ac_dir"
9364: as_dirs=
9365: while test ! -d "$as_dir"; do
9366: as_dirs="$as_dir $as_dirs"
9367: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9368: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9369: X"$as_dir" : 'X\(//\)[^/]' \| \
9370: X"$as_dir" : 'X\(//\)$' \| \
9371: X"$as_dir" : 'X\(/\)' \| \
9372: . : '\(.\)' 2>/dev/null ||
9373: echo X"$as_dir" |
9374: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9375: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9376: /^X\(\/\/\)$/{ s//\1/; q; }
9377: /^X\(\/\).*/{ s//\1/; q; }
9378: s/.*/./; q'`
9379: done
9380: test ! -n "$as_dirs" || mkdir $as_dirs
9381: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9382: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9383: { (exit 1); exit 1; }; }; }
9384:
9385: ac_builddir=.
9386:
9387: if test "$ac_dir" != .; then
9388: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9389: # A "../" for each directory in $ac_dir_suffix.
9390: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9391: else
9392: ac_dir_suffix= ac_top_builddir=
9393: fi
9394:
9395: case $srcdir in
9396: .) # No --srcdir option. We are building in place.
9397: ac_srcdir=.
9398: if test -z "$ac_top_builddir"; then
9399: ac_top_srcdir=.
9400: else
9401: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9402: fi ;;
9403: [\\/]* | ?:[\\/]* ) # Absolute path.
9404: ac_srcdir=$srcdir$ac_dir_suffix;
9405: ac_top_srcdir=$srcdir ;;
1.1 parser 9406: *) # Relative path.
1.15 paf 9407: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9408: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9409: esac
9410: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9411: # absolute.
9412: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9413: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9414: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9415: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9416:
9417:
9418: case $INSTALL in
9419: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9420: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 parser 9421: esac
9422:
1.15 paf 9423: if test x"$ac_file" != x-; then
9424: { echo "$as_me:$LINENO: creating $ac_file" >&5
9425: echo "$as_me: creating $ac_file" >&6;}
9426: rm -f "$ac_file"
9427: fi
9428: # Let's still pretend it is `configure' which instantiates (i.e., don't
9429: # use $as_me), people would be surprised to read:
9430: # /* config.h. Generated by config.status. */
9431: if test x"$ac_file" = x-; then
9432: configure_input=
9433: else
9434: configure_input="$ac_file. "
9435: fi
9436: configure_input=$configure_input"Generated from `echo $ac_file_in |
9437: sed 's,.*/,,'` by configure."
9438:
9439: # First look for the input files in the build tree, otherwise in the
9440: # src tree.
9441: ac_file_inputs=`IFS=:
9442: for f in $ac_file_in; do
9443: case $f in
9444: -) echo $tmp/stdin ;;
9445: [\\/$]*)
9446: # Absolute (can't be DOS-style, as IFS=:)
9447: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9448: echo "$as_me: error: cannot find input file: $f" >&2;}
9449: { (exit 1); exit 1; }; }
9450: echo $f;;
9451: *) # Relative
9452: if test -f "$f"; then
9453: # Build tree
9454: echo $f
9455: elif test -f "$srcdir/$f"; then
9456: # Source tree
9457: echo $srcdir/$f
9458: else
9459: # /dev/null tree
9460: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9461: echo "$as_me: error: cannot find input file: $f" >&2;}
9462: { (exit 1); exit 1; }; }
9463: fi;;
9464: esac
9465: done` || { (exit 1); exit 1; }
9466: _ACEOF
9467: cat >>$CONFIG_STATUS <<_ACEOF
9468: sed "$ac_vpsub
9469: $extrasub
9470: _ACEOF
9471: cat >>$CONFIG_STATUS <<\_ACEOF
9472: :t
9473: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9474: s,@configure_input@,$configure_input,;t t
9475: s,@srcdir@,$ac_srcdir,;t t
9476: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9477: s,@top_srcdir@,$ac_top_srcdir,;t t
9478: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9479: s,@builddir@,$ac_builddir,;t t
9480: s,@abs_builddir@,$ac_abs_builddir,;t t
9481: s,@top_builddir@,$ac_top_builddir,;t t
9482: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9483: s,@INSTALL@,$ac_INSTALL,;t t
9484: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9485: rm -f $tmp/stdin
9486: if test x"$ac_file" != x-; then
9487: mv $tmp/out $ac_file
9488: else
9489: cat $tmp/out
9490: rm -f $tmp/out
9491: fi
9492:
9493: done
9494: _ACEOF
9495: cat >>$CONFIG_STATUS <<\_ACEOF
9496:
9497: #
9498: # CONFIG_HEADER section.
9499: #
1.1 parser 9500:
9501: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9502: # NAME is the cpp macro being defined and VALUE is the value it is being given.
9503: #
9504: # ac_d sets the value in "#define NAME VALUE" lines.
1.15 paf 9505: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9506: ac_dB='[ ].*$,\1#\2'
9507: ac_dC=' '
9508: ac_dD=',;t'
9509: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9510: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9511: ac_uB='$,\1#\2define\3'
1.1 parser 9512: ac_uC=' '
1.15 paf 9513: ac_uD=',;t'
1.1 parser 9514:
1.15 paf 9515: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 parser 9516: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.15 paf 9517: case $ac_file in
9518: - | *:- | *:-:* ) # input from stdin
9519: cat >$tmp/stdin
9520: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9521: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9522: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9523: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9524: * ) ac_file_in=$ac_file.in ;;
1.1 parser 9525: esac
9526:
1.15 paf 9527: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9528: echo "$as_me: creating $ac_file" >&6;}
1.1 parser 9529:
1.15 paf 9530: # First look for the input files in the build tree, otherwise in the
9531: # src tree.
9532: ac_file_inputs=`IFS=:
9533: for f in $ac_file_in; do
9534: case $f in
9535: -) echo $tmp/stdin ;;
9536: [\\/$]*)
9537: # Absolute (can't be DOS-style, as IFS=:)
9538: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9539: echo "$as_me: error: cannot find input file: $f" >&2;}
9540: { (exit 1); exit 1; }; }
9541: echo $f;;
9542: *) # Relative
9543: if test -f "$f"; then
9544: # Build tree
9545: echo $f
9546: elif test -f "$srcdir/$f"; then
9547: # Source tree
9548: echo $srcdir/$f
9549: else
9550: # /dev/null tree
9551: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9552: echo "$as_me: error: cannot find input file: $f" >&2;}
9553: { (exit 1); exit 1; }; }
9554: fi;;
9555: esac
9556: done` || { (exit 1); exit 1; }
9557: # Remove the trailing spaces.
9558: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9559:
9560: _ACEOF
9561:
9562: # Transform confdefs.h into two sed scripts, `conftest.defines' and
9563: # `conftest.undefs', that substitutes the proper values into
9564: # config.h.in to produce config.h. The first handles `#define'
9565: # templates, and the second `#undef' templates.
9566: # And first: Protect against being on the right side of a sed subst in
9567: # config.status. Protect against being in an unquoted here document
9568: # in config.status.
9569: rm -f conftest.defines conftest.undefs
9570: # Using a here document instead of a string reduces the quoting nightmare.
9571: # Putting comments in sed scripts is not portable.
9572: #
9573: # `end' is used to avoid that the second main sed command (meant for
9574: # 0-ary CPP macros) applies to n-ary macro definitions.
9575: # See the Autoconf documentation for `clear'.
9576: cat >confdef2sed.sed <<\_ACEOF
9577: s/[\\&,]/\\&/g
9578: s,[\\$`],\\&,g
9579: t clear
9580: : clear
9581: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9582: t end
9583: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9584: : end
9585: _ACEOF
9586: # If some macros were called several times there might be several times
9587: # the same #defines, which is useless. Nevertheless, we may not want to
9588: # sort them, since we want the *last* AC-DEFINE to be honored.
9589: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9590: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9591: rm -f confdef2sed.sed
1.1 parser 9592:
9593: # This sed command replaces #undef with comments. This is necessary, for
9594: # example, in the case of _POSIX_SOURCE, which is predefined and required
9595: # on some systems where configure will not decide to define it.
1.15 paf 9596: cat >>conftest.undefs <<\_ACEOF
9597: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9598: _ACEOF
9599:
9600: # Break up conftest.defines because some shells have a limit on the size
9601: # of here documents, and old seds have small limits too (100 cmds).
9602: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9603: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9604: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9605: echo ' :' >>$CONFIG_STATUS
9606: rm -f conftest.tail
9607: while grep . conftest.defines >/dev/null
9608: do
9609: # Write a limited-size here document to $tmp/defines.sed.
9610: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9611: # Speed up: don't consider the non `#define' lines.
9612: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9613: # Work around the forget-to-reset-the-flag bug.
9614: echo 't clr' >>$CONFIG_STATUS
9615: echo ': clr' >>$CONFIG_STATUS
9616: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9617: echo 'CEOF
9618: sed -f $tmp/defines.sed $tmp/in >$tmp/out
9619: rm -f $tmp/in
9620: mv $tmp/out $tmp/in
9621: ' >>$CONFIG_STATUS
9622: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9623: rm -f conftest.defines
9624: mv conftest.tail conftest.defines
9625: done
9626: rm -f conftest.defines
9627: echo ' fi # grep' >>$CONFIG_STATUS
9628: echo >>$CONFIG_STATUS
9629:
9630: # Break up conftest.undefs because some shells have a limit on the size
9631: # of here documents, and old seds have small limits too (100 cmds).
9632: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 parser 9633: rm -f conftest.tail
1.15 paf 9634: while grep . conftest.undefs >/dev/null
1.1 parser 9635: do
1.15 paf 9636: # Write a limited-size here document to $tmp/undefs.sed.
9637: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9638: # Speed up: don't consider the non `#undef'
9639: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9640: # Work around the forget-to-reset-the-flag bug.
9641: echo 't clr' >>$CONFIG_STATUS
9642: echo ': clr' >>$CONFIG_STATUS
9643: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 parser 9644: echo 'CEOF
1.15 paf 9645: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9646: rm -f $tmp/in
9647: mv $tmp/out $tmp/in
9648: ' >>$CONFIG_STATUS
9649: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9650: rm -f conftest.undefs
9651: mv conftest.tail conftest.undefs
9652: done
9653: rm -f conftest.undefs
9654:
9655: cat >>$CONFIG_STATUS <<\_ACEOF
9656: # Let's still pretend it is `configure' which instantiates (i.e., don't
9657: # use $as_me), people would be surprised to read:
9658: # /* config.h. Generated by config.status. */
9659: if test x"$ac_file" = x-; then
9660: echo "/* Generated by configure. */" >$tmp/config.h
9661: else
9662: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9663: fi
9664: cat $tmp/in >>$tmp/config.h
9665: rm -f $tmp/in
9666: if test x"$ac_file" != x-; then
9667: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9668: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9669: echo "$as_me: $ac_file is unchanged" >&6;}
9670: else
9671: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9672: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9673: X"$ac_file" : 'X\(//\)[^/]' \| \
9674: X"$ac_file" : 'X\(//\)$' \| \
9675: X"$ac_file" : 'X\(/\)' \| \
9676: . : '\(.\)' 2>/dev/null ||
9677: echo X"$ac_file" |
9678: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9679: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9680: /^X\(\/\/\)$/{ s//\1/; q; }
9681: /^X\(\/\).*/{ s//\1/; q; }
9682: s/.*/./; q'`
9683: { if $as_mkdir_p; then
9684: mkdir -p "$ac_dir"
9685: else
9686: as_dir="$ac_dir"
9687: as_dirs=
9688: while test ! -d "$as_dir"; do
9689: as_dirs="$as_dir $as_dirs"
9690: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9691: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9692: X"$as_dir" : 'X\(//\)[^/]' \| \
9693: X"$as_dir" : 'X\(//\)$' \| \
9694: X"$as_dir" : 'X\(/\)' \| \
9695: . : '\(.\)' 2>/dev/null ||
9696: echo X"$as_dir" |
9697: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9698: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9699: /^X\(\/\/\)$/{ s//\1/; q; }
9700: /^X\(\/\).*/{ s//\1/; q; }
9701: s/.*/./; q'`
9702: done
9703: test ! -n "$as_dirs" || mkdir $as_dirs
9704: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9705: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9706: { (exit 1); exit 1; }; }; }
9707:
9708: rm -f $ac_file
9709: mv $tmp/config.h $ac_file
1.1 parser 9710: fi
1.15 paf 9711: else
9712: cat $tmp/config.h
9713: rm -f $tmp/config.h
1.1 parser 9714: fi
1.15 paf 9715: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
9716: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9717: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9718: X$ac_file : 'X\(//\)[^/]' \| \
9719: X$ac_file : 'X\(//\)$' \| \
9720: X$ac_file : 'X\(/\)' \| \
9721: . : '\(.\)' 2>/dev/null ||
9722: echo X$ac_file |
9723: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9724: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9725: /^X\(\/\/\)$/{ s//\1/; q; }
9726: /^X\(\/\).*/{ s//\1/; q; }
9727: s/.*/./; q'`/stamp-h$_am_stamp_count
9728: done
9729: _ACEOF
9730: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9731:
1.15 paf 9732: #
9733: # CONFIG_COMMANDS section.
9734: #
9735: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9736: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9737: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9738: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9739: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9740: X"$ac_dest" : 'X\(//\)[^/]' \| \
9741: X"$ac_dest" : 'X\(//\)$' \| \
9742: X"$ac_dest" : 'X\(/\)' \| \
9743: . : '\(.\)' 2>/dev/null ||
9744: echo X"$ac_dest" |
9745: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9746: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9747: /^X\(\/\/\)$/{ s//\1/; q; }
9748: /^X\(\/\).*/{ s//\1/; q; }
9749: s/.*/./; q'`
9750: ac_builddir=.
9751:
9752: if test "$ac_dir" != .; then
9753: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9754: # A "../" for each directory in $ac_dir_suffix.
9755: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9756: else
9757: ac_dir_suffix= ac_top_builddir=
9758: fi
9759:
9760: case $srcdir in
9761: .) # No --srcdir option. We are building in place.
9762: ac_srcdir=.
9763: if test -z "$ac_top_builddir"; then
9764: ac_top_srcdir=.
9765: else
9766: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9767: fi ;;
9768: [\\/]* | ?:[\\/]* ) # Absolute path.
9769: ac_srcdir=$srcdir$ac_dir_suffix;
9770: ac_top_srcdir=$srcdir ;;
9771: *) # Relative path.
9772: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9773: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9774: esac
9775: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9776: # absolute.
9777: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9778: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9779: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9780: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9781:
9782:
9783: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9784: echo "$as_me: executing $ac_dest commands" >&6;}
9785: case $ac_dest in
9786: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9787: # Strip MF so we end up with the name of the file.
9788: mf=`echo "$mf" | sed -e 's/:.*$//'`
9789: # Check whether this is an Automake generated Makefile or not.
9790: # We used to match only the files named `Makefile.in', but
9791: # some people rename them; so instead we look at the file content.
9792: # Grep'ing the first line is not enough: some people post-process
9793: # each Makefile.in and add a new line on top of each file to say so.
9794: # So let's grep whole file.
9795: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9796: dirpart=`(dirname "$mf") 2>/dev/null ||
9797: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9798: X"$mf" : 'X\(//\)[^/]' \| \
9799: X"$mf" : 'X\(//\)$' \| \
9800: X"$mf" : 'X\(/\)' \| \
9801: . : '\(.\)' 2>/dev/null ||
9802: echo X"$mf" |
9803: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9804: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9805: /^X\(\/\/\)$/{ s//\1/; q; }
9806: /^X\(\/\).*/{ s//\1/; q; }
9807: s/.*/./; q'`
9808: else
9809: continue
9810: fi
9811: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9812: # Extract the definition of DEP_FILES from the Makefile without
9813: # running `make'.
9814: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9815: test -z "$DEPDIR" && continue
9816: # When using ansi2knr, U may be empty or an underscore; expand it
9817: U=`sed -n -e '/^U = / s///p' < "$mf"`
9818: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9819: # We invoke sed twice because it is the simplest approach to
9820: # changing $(DEPDIR) to its actual value in the expansion.
9821: for file in `sed -n -e '
9822: /^DEP_FILES = .*\\\\$/ {
9823: s/^DEP_FILES = //
9824: :loop
9825: s/\\\\$//
9826: p
9827: n
9828: /\\\\$/ b loop
9829: p
9830: }
9831: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9832: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9833: # Make sure the directory exists.
9834: test -f "$dirpart/$file" && continue
9835: fdir=`(dirname "$file") 2>/dev/null ||
9836: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9837: X"$file" : 'X\(//\)[^/]' \| \
9838: X"$file" : 'X\(//\)$' \| \
9839: X"$file" : 'X\(/\)' \| \
9840: . : '\(.\)' 2>/dev/null ||
9841: echo X"$file" |
9842: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9843: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9844: /^X\(\/\/\)$/{ s//\1/; q; }
9845: /^X\(\/\).*/{ s//\1/; q; }
9846: s/.*/./; q'`
9847: { if $as_mkdir_p; then
9848: mkdir -p $dirpart/$fdir
9849: else
9850: as_dir=$dirpart/$fdir
9851: as_dirs=
9852: while test ! -d "$as_dir"; do
9853: as_dirs="$as_dir $as_dirs"
9854: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9855: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9856: X"$as_dir" : 'X\(//\)[^/]' \| \
9857: X"$as_dir" : 'X\(//\)$' \| \
9858: X"$as_dir" : 'X\(/\)' \| \
9859: . : '\(.\)' 2>/dev/null ||
9860: echo X"$as_dir" |
9861: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9862: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9863: /^X\(\/\/\)$/{ s//\1/; q; }
9864: /^X\(\/\).*/{ s//\1/; q; }
9865: s/.*/./; q'`
9866: done
9867: test ! -n "$as_dirs" || mkdir $as_dirs
9868: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9869: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9870: { (exit 1); exit 1; }; }; }
1.1 parser 9871:
1.15 paf 9872: # echo "creating $dirpart/$file"
9873: echo '# dummy' > "$dirpart/$file"
9874: done
9875: done
9876: ;;
9877: esac
9878: done
9879: _ACEOF
1.1 parser 9880:
1.15 paf 9881: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 9882:
1.15 paf 9883: { (exit 0); exit 0; }
9884: _ACEOF
1.1 parser 9885: chmod +x $CONFIG_STATUS
1.15 paf 9886: ac_clean_files=$ac_clean_files_save
9887:
9888:
9889: # configure is writing to config.log, and then calls config.status.
9890: # config.status does its own redirection, appending to config.log.
9891: # Unfortunately, on DOS this fails, as config.log is still kept open
9892: # by configure, so config.status won't be able to write to it; its
9893: # output is simply discarded. So we exec the FD to /dev/null,
9894: # effectively closing config.log, so it can be properly (re)opened and
9895: # appended to by config.status. When coming back to configure, we
9896: # need to make the FD available again.
9897: if test "$no_create" != yes; then
9898: ac_cs_success=:
9899: ac_config_status_args=
9900: test "$silent" = yes &&
9901: ac_config_status_args="$ac_config_status_args --quiet"
9902: exec 5>/dev/null
9903: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9904: exec 5>>config.log
9905: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9906: # would make configure fail if this is the last instruction.
9907: $ac_cs_success || { (exit 1); exit 1; }
9908: fi
1.1 parser 9909:
1.15 paf 9910: #
9911: # CONFIG_SUBDIRS section.
9912: #
1.1 parser 9913: if test "$no_recursion" != yes; then
9914:
9915: # Remove --cache-file and --srcdir arguments so they do not pile up.
9916: ac_sub_configure_args=
9917: ac_prev=
9918: for ac_arg in $ac_configure_args; do
9919: if test -n "$ac_prev"; then
9920: ac_prev=
9921: continue
9922: fi
1.15 paf 9923: case $ac_arg in
1.1 parser 9924: -cache-file | --cache-file | --cache-fil | --cache-fi \
9925: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9926: ac_prev=cache_file ;;
9927: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 9928: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9929: | --c=*)
9930: ;;
9931: --config-cache | -C)
1.1 parser 9932: ;;
9933: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9934: ac_prev=srcdir ;;
9935: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9936: ;;
1.15 paf 9937: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9938: ac_prev=prefix ;;
9939: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9940: ;;
1.1 parser 9941: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9942: esac
9943: done
9944:
1.15 paf 9945: # Always prepend --prefix to ensure using the same prefix
9946: # in subdir configurations.
9947: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9948:
9949: ac_popdir=`pwd`
9950: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 9951:
9952: # Do not complain, so a configure script can configure whichever
9953: # parts of a large source tree are present.
1.15 paf 9954: test -d $srcdir/$ac_dir || continue
1.1 parser 9955:
1.15 paf 9956: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9957: echo "$as_me: configuring in $ac_dir" >&6;}
9958: { if $as_mkdir_p; then
9959: mkdir -p "$ac_dir"
9960: else
9961: as_dir="$ac_dir"
9962: as_dirs=
9963: while test ! -d "$as_dir"; do
9964: as_dirs="$as_dir $as_dirs"
9965: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9966: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9967: X"$as_dir" : 'X\(//\)[^/]' \| \
9968: X"$as_dir" : 'X\(//\)$' \| \
9969: X"$as_dir" : 'X\(/\)' \| \
9970: . : '\(.\)' 2>/dev/null ||
9971: echo X"$as_dir" |
9972: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9973: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9974: /^X\(\/\/\)$/{ s//\1/; q; }
9975: /^X\(\/\).*/{ s//\1/; q; }
9976: s/.*/./; q'`
9977: done
9978: test ! -n "$as_dirs" || mkdir $as_dirs
9979: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9980: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9981: { (exit 1); exit 1; }; }; }
9982:
9983: ac_builddir=.
9984:
9985: if test "$ac_dir" != .; then
9986: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9987: # A "../" for each directory in $ac_dir_suffix.
9988: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9989: else
9990: ac_dir_suffix= ac_top_builddir=
9991: fi
9992:
9993: case $srcdir in
9994: .) # No --srcdir option. We are building in place.
9995: ac_srcdir=.
9996: if test -z "$ac_top_builddir"; then
9997: ac_top_srcdir=.
9998: else
9999: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10000: fi ;;
10001: [\\/]* | ?:[\\/]* ) # Absolute path.
10002: ac_srcdir=$srcdir$ac_dir_suffix;
10003: ac_top_srcdir=$srcdir ;;
10004: *) # Relative path.
10005: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10006: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10007: esac
10008: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10009: # absolute.
10010: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10011: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10012: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10013: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 parser 10014:
10015:
1.15 paf 10016: cd $ac_dir
1.1 parser 10017:
10018: # Check for guested configure; otherwise get Cygnus style configure.
1.15 paf 10019: if test -f $ac_srcdir/configure.gnu; then
10020: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10021: elif test -f $ac_srcdir/configure; then
10022: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10023: elif test -f $ac_srcdir/configure.in; then
1.1 parser 10024: ac_sub_configure=$ac_configure
10025: else
1.15 paf 10026: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10027: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 10028: ac_sub_configure=
10029: fi
10030:
10031: # The recursion is here.
10032: if test -n "$ac_sub_configure"; then
10033: # Make the cache file name correct relative to the subdirectory.
1.15 paf 10034: case $cache_file in
10035: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 10036: *) # Relative path.
1.15 paf 10037: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 10038: esac
10039:
1.15 paf 10040: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10041: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 10042: # The eval makes quoting arguments work.
1.15 paf 10043: eval $ac_sub_configure $ac_sub_configure_args \
10044: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10045: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10046: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10047: { (exit 1); exit 1; }; }
1.1 parser 10048: fi
10049:
10050: cd $ac_popdir
10051: done
10052: fi
10053:
E-mail: