Annotation of sql/sqlite/configure, revision 1.6
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.59.
4: #
5: # Copyright (C) 2003 Free Software Foundation, Inc.
6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
22: DUALCASE=1; export DUALCASE # for MKS sh
23:
24: # Support unset when possible.
25: if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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: test -d ./-p && rmdir ./-p
222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229:
230: # Sed expression to map a string onto a valid variable name.
231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
243:
244: # Find the correct PATH separator. Usually this is `:', but
245: # DJGPP uses `;' like DOS.
246: if test "X${PATH_SEPARATOR+set}" != Xset; then
247: UNAME=${UNAME-`uname 2>/dev/null`}
248: case X$UNAME in
249: *-DOS) lt_cv_sys_path_separator=';' ;;
250: *) lt_cv_sys_path_separator=':' ;;
251: esac
252: PATH_SEPARATOR=$lt_cv_sys_path_separator
253: fi
254:
255:
256: # Check that we are running under the correct shell.
257: SHELL=${CONFIG_SHELL-/bin/sh}
258:
259: case X$ECHO in
260: X*--fallback-echo)
261: # Remove one level of quotation (which was required for Make).
262: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
263: ;;
264: esac
265:
266: echo=${ECHO-echo}
267: if test "X$1" = X--no-reexec; then
268: # Discard the --no-reexec flag, and continue.
269: shift
270: elif test "X$1" = X--fallback-echo; then
271: # Avoid inline document here, it may be left over
272: :
273: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274: # Yippee, $echo works!
275: :
276: else
277: # Restart under the correct shell.
278: exec $SHELL "$0" --no-reexec ${1+"$@"}
279: fi
280:
281: if test "X$1" = X--fallback-echo; then
282: # used as fallback echo
283: shift
284: cat <<EOF
285:
286: EOF
287: exit 0
288: fi
289:
290: # The HP-UX ksh and POSIX shell print the target directory to stdout
291: # if CDPATH is set.
292: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
293:
294: if test -z "$ECHO"; then
295: if test "X${echo_test_string+set}" != Xset; then
296: # find a string as large as possible, as long as the shell can cope with it
297: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300: echo_test_string="`eval $cmd`" &&
301: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
302: then
303: break
304: fi
305: done
306: fi
307:
308: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310: test "X$echo_testing_string" = "X$echo_test_string"; then
311: :
312: else
313: # The Solaris, AIX, and Digital Unix default echo programs unquote
314: # backslashes. This makes it impossible to quote backslashes using
315: # echo "$something" | sed 's/\\/\\\\/g'
316: #
317: # So, first we look for a working echo in the user's PATH.
318:
319: IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320: for dir in $PATH /usr/ucb; do
321: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: echo="$dir/echo"
326: break
327: fi
328: done
329: IFS="$save_ifs"
330:
331: if test "X$echo" = Xecho; then
332: # We didn't find a better echo, so look for alternatives.
333: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335: test "X$echo_testing_string" = "X$echo_test_string"; then
336: # This shell has a builtin print -r that does the trick.
337: echo='print -r'
338: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339: test "X$CONFIG_SHELL" != X/bin/ksh; then
340: # If we have ksh, try running configure again with it.
341: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342: export ORIGINAL_CONFIG_SHELL
343: CONFIG_SHELL=/bin/ksh
344: export CONFIG_SHELL
345: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
346: else
347: # Try using printf.
348: echo='printf %s\n'
349: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351: test "X$echo_testing_string" = "X$echo_test_string"; then
352: # Cool, printf works
353: :
354: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355: test "X$echo_testing_string" = 'X\t' &&
356: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357: test "X$echo_testing_string" = "X$echo_test_string"; then
358: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
359: export CONFIG_SHELL
360: SHELL="$CONFIG_SHELL"
361: export SHELL
362: echo="$CONFIG_SHELL $0 --fallback-echo"
363: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364: test "X$echo_testing_string" = 'X\t' &&
365: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366: test "X$echo_testing_string" = "X$echo_test_string"; then
367: echo="$CONFIG_SHELL $0 --fallback-echo"
368: else
369: # maybe with a smaller string...
370: prev=:
371:
372: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374: then
375: break
376: fi
377: prev="$cmd"
378: done
379:
380: if test "$prev" != 'sed 50q "$0"'; then
381: echo_test_string=`eval $prev`
382: export echo_test_string
383: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
384: else
385: # Oops. We lost completely, so just stick with echo.
386: echo=echo
387: fi
388: fi
389: fi
390: fi
391: fi
392: fi
393:
394: # Copy echo and quote the copy suitably for passing to libtool from
395: # the Makefile, instead of quoting the original, which is used later.
396: ECHO=$echo
397: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399: fi
400:
401:
402:
403: # Name of the host.
404: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405: # so uname gets run too.
406: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
407:
408: exec 6>&1
409:
410: #
411: # Initializations.
412: #
413: ac_default_prefix=/usr/local
414: ac_config_libobj_dir=.
415: cross_compiling=no
416: subdirs=
417: MFLAGS=
418: MAKEFLAGS=
419: SHELL=${CONFIG_SHELL-/bin/sh}
420:
421: # Maximum number of lines to put in a shell here document.
422: # This variable seems obsolete. It should probably be removed, and
423: # only ac_max_sed_lines should be used.
424: : ${ac_max_here_lines=38}
425:
426: # Identity of this package.
427: PACKAGE_NAME=
428: PACKAGE_TARNAME=
429: PACKAGE_VERSION=
430: PACKAGE_STRING=
431: PACKAGE_BUGREPORT=
432:
433: ac_unique_file="parser3sqlite.C"
434: # Factoring default headers for most tests.
435: ac_includes_default="\
436: #include <stdio.h>
437: #if HAVE_SYS_TYPES_H
438: # include <sys/types.h>
439: #endif
440: #if HAVE_SYS_STAT_H
441: # include <sys/stat.h>
442: #endif
443: #if STDC_HEADERS
444: # include <stdlib.h>
445: # include <stddef.h>
446: #else
447: # if HAVE_STDLIB_H
448: # include <stdlib.h>
449: # endif
450: #endif
451: #if HAVE_STRING_H
452: # if !STDC_HEADERS && HAVE_MEMORY_H
453: # include <memory.h>
454: # endif
455: # include <string.h>
456: #endif
457: #if HAVE_STRINGS_H
458: # include <strings.h>
459: #endif
460: #if HAVE_INTTYPES_H
461: # include <inttypes.h>
462: #else
463: # if HAVE_STDINT_H
464: # include <stdint.h>
465: # endif
466: #endif
467: #if HAVE_UNISTD_H
468: # include <unistd.h>
469: #endif"
470:
471: ac_subdirs_all="$ac_subdirs_all libltdl"
1.6 ! misha 472: 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SQLITE_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE INCLTDL LIBLTDL LIBADD_DL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL subdirs LIBOBJS LTLIBOBJS'
1.1 misha 473: ac_subst_files=''
474:
475: # Initialize some variables set by options.
476: ac_init_help=
477: ac_init_version=false
478: # The variables have the same names as the options, with
479: # dashes changed to underlines.
480: cache_file=/dev/null
481: exec_prefix=NONE
482: no_create=
483: no_recursion=
484: prefix=NONE
485: program_prefix=NONE
486: program_suffix=NONE
487: program_transform_name=s,x,x,
488: silent=
489: site=
490: srcdir=
491: verbose=
492: x_includes=NONE
493: x_libraries=NONE
494:
495: # Installation directory options.
496: # These are left unexpanded so users can "make install exec_prefix=/foo"
497: # and all the variables that are supposed to be based on exec_prefix
498: # by default will actually change.
499: # Use braces instead of parens because sh, perl, etc. also accept them.
500: bindir='${exec_prefix}/bin'
501: sbindir='${exec_prefix}/sbin'
502: libexecdir='${exec_prefix}/libexec'
503: datadir='${prefix}/share'
504: sysconfdir='${prefix}/etc'
505: sharedstatedir='${prefix}/com'
506: localstatedir='${prefix}/var'
507: libdir='${exec_prefix}/lib'
508: includedir='${prefix}/include'
509: oldincludedir='/usr/include'
510: infodir='${prefix}/info'
511: mandir='${prefix}/man'
512:
513: ac_prev=
514: for ac_option
515: do
516: # If the previous option needs an argument, assign it.
517: if test -n "$ac_prev"; then
518: eval "$ac_prev=\$ac_option"
519: ac_prev=
520: continue
521: fi
522:
523: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524:
525: # Accept the important Cygnus configure options, so we can diagnose typos.
526:
527: case $ac_option in
528:
529: -bindir | --bindir | --bindi | --bind | --bin | --bi)
530: ac_prev=bindir ;;
531: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532: bindir=$ac_optarg ;;
533:
534: -build | --build | --buil | --bui | --bu)
535: ac_prev=build_alias ;;
536: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
537: build_alias=$ac_optarg ;;
538:
539: -cache-file | --cache-file | --cache-fil | --cache-fi \
540: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541: ac_prev=cache_file ;;
542: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544: cache_file=$ac_optarg ;;
545:
546: --config-cache | -C)
547: cache_file=config.cache ;;
548:
549: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550: ac_prev=datadir ;;
551: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552: | --da=*)
553: datadir=$ac_optarg ;;
554:
555: -disable-* | --disable-*)
556: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557: # Reject names that are not valid shell variable names.
558: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560: { (exit 1); exit 1; }; }
561: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562: eval "enable_$ac_feature=no" ;;
563:
564: -enable-* | --enable-*)
565: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566: # Reject names that are not valid shell variable names.
567: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
569: { (exit 1); exit 1; }; }
570: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571: case $ac_option in
572: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573: *) ac_optarg=yes ;;
574: esac
575: eval "enable_$ac_feature='$ac_optarg'" ;;
576:
577: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579: | --exec | --exe | --ex)
580: ac_prev=exec_prefix ;;
581: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583: | --exec=* | --exe=* | --ex=*)
584: exec_prefix=$ac_optarg ;;
585:
586: -gas | --gas | --ga | --g)
587: # Obsolete; use --with-gas.
588: with_gas=yes ;;
589:
590: -help | --help | --hel | --he | -h)
591: ac_init_help=long ;;
592: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593: ac_init_help=recursive ;;
594: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595: ac_init_help=short ;;
596:
597: -host | --host | --hos | --ho)
598: ac_prev=host_alias ;;
599: -host=* | --host=* | --hos=* | --ho=*)
600: host_alias=$ac_optarg ;;
601:
602: -includedir | --includedir | --includedi | --included | --include \
603: | --includ | --inclu | --incl | --inc)
604: ac_prev=includedir ;;
605: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606: | --includ=* | --inclu=* | --incl=* | --inc=*)
607: includedir=$ac_optarg ;;
608:
609: -infodir | --infodir | --infodi | --infod | --info | --inf)
610: ac_prev=infodir ;;
611: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612: infodir=$ac_optarg ;;
613:
614: -libdir | --libdir | --libdi | --libd)
615: ac_prev=libdir ;;
616: -libdir=* | --libdir=* | --libdi=* | --libd=*)
617: libdir=$ac_optarg ;;
618:
619: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620: | --libexe | --libex | --libe)
621: ac_prev=libexecdir ;;
622: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623: | --libexe=* | --libex=* | --libe=*)
624: libexecdir=$ac_optarg ;;
625:
626: -localstatedir | --localstatedir | --localstatedi | --localstated \
627: | --localstate | --localstat | --localsta | --localst \
628: | --locals | --local | --loca | --loc | --lo)
629: ac_prev=localstatedir ;;
630: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
632: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633: localstatedir=$ac_optarg ;;
634:
635: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636: ac_prev=mandir ;;
637: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638: mandir=$ac_optarg ;;
639:
640: -nfp | --nfp | --nf)
641: # Obsolete; use --without-fp.
642: with_fp=no ;;
643:
644: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
645: | --no-cr | --no-c | -n)
646: no_create=yes ;;
647:
648: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
649: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650: no_recursion=yes ;;
651:
652: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654: | --oldin | --oldi | --old | --ol | --o)
655: ac_prev=oldincludedir ;;
656: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659: oldincludedir=$ac_optarg ;;
660:
661: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662: ac_prev=prefix ;;
663: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664: prefix=$ac_optarg ;;
665:
666: -program-prefix | --program-prefix | --program-prefi | --program-pref \
667: | --program-pre | --program-pr | --program-p)
668: ac_prev=program_prefix ;;
669: -program-prefix=* | --program-prefix=* | --program-prefi=* \
670: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671: program_prefix=$ac_optarg ;;
672:
673: -program-suffix | --program-suffix | --program-suffi | --program-suff \
674: | --program-suf | --program-su | --program-s)
675: ac_prev=program_suffix ;;
676: -program-suffix=* | --program-suffix=* | --program-suffi=* \
677: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678: program_suffix=$ac_optarg ;;
679:
680: -program-transform-name | --program-transform-name \
681: | --program-transform-nam | --program-transform-na \
682: | --program-transform-n | --program-transform- \
683: | --program-transform | --program-transfor \
684: | --program-transfo | --program-transf \
685: | --program-trans | --program-tran \
686: | --progr-tra | --program-tr | --program-t)
687: ac_prev=program_transform_name ;;
688: -program-transform-name=* | --program-transform-name=* \
689: | --program-transform-nam=* | --program-transform-na=* \
690: | --program-transform-n=* | --program-transform-=* \
691: | --program-transform=* | --program-transfor=* \
692: | --program-transfo=* | --program-transf=* \
693: | --program-trans=* | --program-tran=* \
694: | --progr-tra=* | --program-tr=* | --program-t=*)
695: program_transform_name=$ac_optarg ;;
696:
697: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
698: | -silent | --silent | --silen | --sile | --sil)
699: silent=yes ;;
700:
701: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702: ac_prev=sbindir ;;
703: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704: | --sbi=* | --sb=*)
705: sbindir=$ac_optarg ;;
706:
707: -sharedstatedir | --sharedstatedir | --sharedstatedi \
708: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709: | --sharedst | --shareds | --shared | --share | --shar \
710: | --sha | --sh)
711: ac_prev=sharedstatedir ;;
712: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715: | --sha=* | --sh=*)
716: sharedstatedir=$ac_optarg ;;
717:
718: -site | --site | --sit)
719: ac_prev=site ;;
720: -site=* | --site=* | --sit=*)
721: site=$ac_optarg ;;
722:
723: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724: ac_prev=srcdir ;;
725: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726: srcdir=$ac_optarg ;;
727:
728: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729: | --syscon | --sysco | --sysc | --sys | --sy)
730: ac_prev=sysconfdir ;;
731: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733: sysconfdir=$ac_optarg ;;
734:
735: -target | --target | --targe | --targ | --tar | --ta | --t)
736: ac_prev=target_alias ;;
737: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738: target_alias=$ac_optarg ;;
739:
740: -v | -verbose | --verbose | --verbos | --verbo | --verb)
741: verbose=yes ;;
742:
743: -version | --version | --versio | --versi | --vers | -V)
744: ac_init_version=: ;;
745:
746: -with-* | --with-*)
747: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748: # Reject names that are not valid shell variable names.
749: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750: { echo "$as_me: error: invalid package name: $ac_package" >&2
751: { (exit 1); exit 1; }; }
752: ac_package=`echo $ac_package| sed 's/-/_/g'`
753: case $ac_option in
754: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755: *) ac_optarg=yes ;;
756: esac
757: eval "with_$ac_package='$ac_optarg'" ;;
758:
759: -without-* | --without-*)
760: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761: # Reject names that are not valid shell variable names.
762: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763: { echo "$as_me: error: invalid package name: $ac_package" >&2
764: { (exit 1); exit 1; }; }
765: ac_package=`echo $ac_package | sed 's/-/_/g'`
766: eval "with_$ac_package=no" ;;
767:
768: --x)
769: # Obsolete; use --with-x.
770: with_x=yes ;;
771:
772: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773: | --x-incl | --x-inc | --x-in | --x-i)
774: ac_prev=x_includes ;;
775: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777: x_includes=$ac_optarg ;;
778:
779: -x-libraries | --x-libraries | --x-librarie | --x-librari \
780: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781: ac_prev=x_libraries ;;
782: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784: x_libraries=$ac_optarg ;;
785:
786: -*) { echo "$as_me: error: unrecognized option: $ac_option
787: Try \`$0 --help' for more information." >&2
788: { (exit 1); exit 1; }; }
789: ;;
790:
791: *=*)
792: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793: # Reject names that are not valid shell variable names.
794: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796: { (exit 1); exit 1; }; }
797: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798: eval "$ac_envvar='$ac_optarg'"
799: export $ac_envvar ;;
800:
801: *)
802: # FIXME: should be removed in autoconf 3.0.
803: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807: ;;
808:
809: esac
810: done
811:
812: if test -n "$ac_prev"; then
813: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814: { echo "$as_me: error: missing argument to $ac_option" >&2
815: { (exit 1); exit 1; }; }
816: fi
817:
818: # Be sure to have absolute paths.
819: for ac_var in exec_prefix prefix
820: do
821: eval ac_val=$`echo $ac_var`
822: case $ac_val in
823: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825: { (exit 1); exit 1; }; };;
826: esac
827: done
828:
829: # Be sure to have absolute paths.
830: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831: localstatedir libdir includedir oldincludedir infodir mandir
832: do
833: eval ac_val=$`echo $ac_var`
834: case $ac_val in
835: [\\/$]* | ?:[\\/]* ) ;;
836: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837: { (exit 1); exit 1; }; };;
838: esac
839: done
840:
841: # There might be people who depend on the old broken behavior: `$host'
842: # used to hold the argument of --host etc.
843: # FIXME: To remove some day.
844: build=$build_alias
845: host=$host_alias
846: target=$target_alias
847:
848: # FIXME: To remove some day.
849: if test "x$host_alias" != x; then
850: if test "x$build_alias" = x; then
851: cross_compiling=maybe
852: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853: If a cross compiler is detected then cross compile mode will be used." >&2
854: elif test "x$build_alias" != "x$host_alias"; then
855: cross_compiling=yes
856: fi
857: fi
858:
859: ac_tool_prefix=
860: test -n "$host_alias" && ac_tool_prefix=$host_alias-
861:
862: test "$silent" = yes && exec 6>/dev/null
863:
864:
865: # Find the source files, if location was not specified.
866: if test -z "$srcdir"; then
867: ac_srcdir_defaulted=yes
868: # Try the directory containing this script, then its parent.
869: ac_confdir=`(dirname "$0") 2>/dev/null ||
870: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871: X"$0" : 'X\(//\)[^/]' \| \
872: X"$0" : 'X\(//\)$' \| \
873: X"$0" : 'X\(/\)' \| \
874: . : '\(.\)' 2>/dev/null ||
875: echo X"$0" |
876: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
878: /^X\(\/\/\)$/{ s//\1/; q; }
879: /^X\(\/\).*/{ s//\1/; q; }
880: s/.*/./; q'`
881: srcdir=$ac_confdir
882: if test ! -r $srcdir/$ac_unique_file; then
883: srcdir=..
884: fi
885: else
886: ac_srcdir_defaulted=no
887: fi
888: if test ! -r $srcdir/$ac_unique_file; then
889: if test "$ac_srcdir_defaulted" = yes; then
890: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891: { (exit 1); exit 1; }; }
892: else
893: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894: { (exit 1); exit 1; }; }
895: fi
896: fi
897: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899: { (exit 1); exit 1; }; }
900: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901: ac_env_build_alias_set=${build_alias+set}
902: ac_env_build_alias_value=$build_alias
903: ac_cv_env_build_alias_set=${build_alias+set}
904: ac_cv_env_build_alias_value=$build_alias
905: ac_env_host_alias_set=${host_alias+set}
906: ac_env_host_alias_value=$host_alias
907: ac_cv_env_host_alias_set=${host_alias+set}
908: ac_cv_env_host_alias_value=$host_alias
909: ac_env_target_alias_set=${target_alias+set}
910: ac_env_target_alias_value=$target_alias
911: ac_cv_env_target_alias_set=${target_alias+set}
912: ac_cv_env_target_alias_value=$target_alias
913: ac_env_CXX_set=${CXX+set}
914: ac_env_CXX_value=$CXX
915: ac_cv_env_CXX_set=${CXX+set}
916: ac_cv_env_CXX_value=$CXX
917: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
918: ac_env_CXXFLAGS_value=$CXXFLAGS
919: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
920: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
921: ac_env_LDFLAGS_set=${LDFLAGS+set}
922: ac_env_LDFLAGS_value=$LDFLAGS
923: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924: ac_cv_env_LDFLAGS_value=$LDFLAGS
925: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926: ac_env_CPPFLAGS_value=$CPPFLAGS
927: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929: ac_env_CC_set=${CC+set}
930: ac_env_CC_value=$CC
931: ac_cv_env_CC_set=${CC+set}
932: ac_cv_env_CC_value=$CC
933: ac_env_CFLAGS_set=${CFLAGS+set}
934: ac_env_CFLAGS_value=$CFLAGS
935: ac_cv_env_CFLAGS_set=${CFLAGS+set}
936: ac_cv_env_CFLAGS_value=$CFLAGS
937: ac_env_CPP_set=${CPP+set}
938: ac_env_CPP_value=$CPP
939: ac_cv_env_CPP_set=${CPP+set}
940: ac_cv_env_CPP_value=$CPP
941:
942: #
943: # Report the --help message.
944: #
945: if test "$ac_init_help" = "long"; then
946: # Omit some internal or obsolete options to make the list less imposing.
947: # This message is too long to be a string in the A/UX 3.1 sh.
948: cat <<_ACEOF
949: \`configure' configures this package to adapt to many kinds of systems.
950:
951: Usage: $0 [OPTION]... [VAR=VALUE]...
952:
953: To assign environment variables (e.g., CC, CFLAGS...), specify them as
954: VAR=VALUE. See below for descriptions of some of the useful variables.
955:
956: Defaults for the options are specified in brackets.
957:
958: Configuration:
959: -h, --help display this help and exit
960: --help=short display options specific to this package
961: --help=recursive display the short help of all the included packages
962: -V, --version display version information and exit
963: -q, --quiet, --silent do not print \`checking...' messages
964: --cache-file=FILE cache test results in FILE [disabled]
965: -C, --config-cache alias for \`--cache-file=config.cache'
966: -n, --no-create do not create output files
967: --srcdir=DIR find the sources in DIR [configure dir or \`..']
968:
969: _ACEOF
970:
971: cat <<_ACEOF
972: Installation directories:
973: --prefix=PREFIX install architecture-independent files in PREFIX
974: [$ac_default_prefix]
975: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976: [PREFIX]
977:
978: By default, \`make install' will install all the files in
979: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981: for instance \`--prefix=\$HOME'.
982:
983: For better control, use the options below.
984:
985: Fine tuning of the installation directories:
986: --bindir=DIR user executables [EPREFIX/bin]
987: --sbindir=DIR system admin executables [EPREFIX/sbin]
988: --libexecdir=DIR program executables [EPREFIX/libexec]
989: --datadir=DIR read-only architecture-independent data [PREFIX/share]
990: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993: --libdir=DIR object code libraries [EPREFIX/lib]
994: --includedir=DIR C header files [PREFIX/include]
995: --oldincludedir=DIR C header files for non-gcc [/usr/include]
996: --infodir=DIR info documentation [PREFIX/info]
997: --mandir=DIR man documentation [PREFIX/man]
998: _ACEOF
999:
1000: cat <<\_ACEOF
1001:
1002: Program names:
1003: --program-prefix=PREFIX prepend PREFIX to installed program names
1004: --program-suffix=SUFFIX append SUFFIX to installed program names
1005: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1006:
1007: System types:
1008: --build=BUILD configure for building on BUILD [guessed]
1009: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1010: _ACEOF
1011: fi
1012:
1013: if test -n "$ac_init_help"; then
1014:
1015: cat <<\_ACEOF
1016:
1017: Optional Features:
1018: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020: --disable-dependency-tracking speeds up one-time build
1021: --enable-dependency-tracking do not reject slow dependency extractors
1022: --enable-static=PKGS build static libraries default=no
1023: --enable-shared=PKGS build shared libraries default=yes
1024: --enable-fast-install=PKGS optimize for fast installation default=yes
1025: --disable-libtool-lock avoid locking (might break parallel builds)
1026:
1027: Optional Packages:
1028: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.6 ! misha 1031: --with-dynamic-stdcpp link libstdc++ dynamically
! 1032: by default, libstdc++ is linked statically
1.1 misha 1033: --with-gnu-ld assume the C compiler uses GNU ld default=no
1034: --with-pic try to use only PIC/non-PIC objects default=use both
1035:
1036: Some influential environment variables:
1037: CXX C++ compiler command
1038: CXXFLAGS C++ compiler flags
1039: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1040: nonstandard directory <lib dir>
1041: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1042: headers in a nonstandard directory <include dir>
1043: CC C compiler command
1044: CFLAGS C compiler flags
1045: CPP C preprocessor
1046:
1047: Use these variables to override the choices made by `configure' or to help
1048: it to find libraries and programs with nonstandard names/locations.
1049:
1050: _ACEOF
1051: fi
1052:
1053: if test "$ac_init_help" = "recursive"; then
1054: # If there are subdirs, report their specific --help.
1055: ac_popdir=`pwd`
1056: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057: test -d $ac_dir || continue
1058: ac_builddir=.
1059:
1060: if test "$ac_dir" != .; then
1061: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062: # A "../" for each directory in $ac_dir_suffix.
1063: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064: else
1065: ac_dir_suffix= ac_top_builddir=
1066: fi
1067:
1068: case $srcdir in
1069: .) # No --srcdir option. We are building in place.
1070: ac_srcdir=.
1071: if test -z "$ac_top_builddir"; then
1072: ac_top_srcdir=.
1073: else
1074: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075: fi ;;
1076: [\\/]* | ?:[\\/]* ) # Absolute path.
1077: ac_srcdir=$srcdir$ac_dir_suffix;
1078: ac_top_srcdir=$srcdir ;;
1079: *) # Relative path.
1080: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082: esac
1083:
1084: # Do not use `cd foo && pwd` to compute absolute paths, because
1085: # the directories may not exist.
1086: case `pwd` in
1087: .) ac_abs_builddir="$ac_dir";;
1088: *)
1089: case "$ac_dir" in
1090: .) ac_abs_builddir=`pwd`;;
1091: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092: *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093: esac;;
1094: esac
1095: case $ac_abs_builddir in
1096: .) ac_abs_top_builddir=${ac_top_builddir}.;;
1097: *)
1098: case ${ac_top_builddir}. in
1099: .) ac_abs_top_builddir=$ac_abs_builddir;;
1100: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102: esac;;
1103: esac
1104: case $ac_abs_builddir in
1105: .) ac_abs_srcdir=$ac_srcdir;;
1106: *)
1107: case $ac_srcdir in
1108: .) ac_abs_srcdir=$ac_abs_builddir;;
1109: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111: esac;;
1112: esac
1113: case $ac_abs_builddir in
1114: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1115: *)
1116: case $ac_top_srcdir in
1117: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120: esac;;
1121: esac
1122:
1123: cd $ac_dir
1124: # Check for guested configure; otherwise get Cygnus style configure.
1125: if test -f $ac_srcdir/configure.gnu; then
1126: echo
1127: $SHELL $ac_srcdir/configure.gnu --help=recursive
1128: elif test -f $ac_srcdir/configure; then
1129: echo
1130: $SHELL $ac_srcdir/configure --help=recursive
1131: elif test -f $ac_srcdir/configure.ac ||
1132: test -f $ac_srcdir/configure.in; then
1133: echo
1134: $ac_configure --help
1135: else
1136: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137: fi
1138: cd $ac_popdir
1139: done
1140: fi
1141:
1142: test -n "$ac_init_help" && exit 0
1143: if $ac_init_version; then
1144: cat <<\_ACEOF
1145:
1146: Copyright (C) 2003 Free Software Foundation, Inc.
1147: This configure script is free software; the Free Software Foundation
1148: gives unlimited permission to copy, distribute and modify it.
1149: _ACEOF
1150: exit 0
1151: fi
1152: exec 5>config.log
1153: cat >&5 <<_ACEOF
1154: This file contains any messages produced by compilers while
1155: running configure, to aid debugging if configure makes a mistake.
1156:
1157: It was created by $as_me, which was
1158: generated by GNU Autoconf 2.59. Invocation command line was
1159:
1160: $ $0 $@
1161:
1162: _ACEOF
1163: {
1164: cat <<_ASUNAME
1165: ## --------- ##
1166: ## Platform. ##
1167: ## --------- ##
1168:
1169: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174:
1175: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177:
1178: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185:
1186: _ASUNAME
1187:
1188: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189: for as_dir in $PATH
1190: do
1191: IFS=$as_save_IFS
1192: test -z "$as_dir" && as_dir=.
1193: echo "PATH: $as_dir"
1194: done
1195:
1196: } >&5
1197:
1198: cat >&5 <<_ACEOF
1199:
1200:
1201: ## ----------- ##
1202: ## Core tests. ##
1203: ## ----------- ##
1204:
1205: _ACEOF
1206:
1207:
1208: # Keep a trace of the command line.
1209: # Strip out --no-create and --no-recursion so they do not pile up.
1210: # Strip out --silent because we don't want to record it for future runs.
1211: # Also quote any args containing shell meta-characters.
1212: # Make two passes to allow for proper duplicate-argument suppression.
1213: ac_configure_args=
1214: ac_configure_args0=
1215: ac_configure_args1=
1216: ac_sep=
1217: ac_must_keep_next=false
1218: for ac_pass in 1 2
1219: do
1220: for ac_arg
1221: do
1222: case $ac_arg in
1223: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225: | -silent | --silent | --silen | --sile | --sil)
1226: continue ;;
1227: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229: esac
1230: case $ac_pass in
1231: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232: 2)
1233: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234: if test $ac_must_keep_next = true; then
1235: ac_must_keep_next=false # Got value, back to normal.
1236: else
1237: case $ac_arg in
1238: *=* | --config-cache | -C | -disable-* | --disable-* \
1239: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241: | -with-* | --with-* | -without-* | --without-* | --x)
1242: case "$ac_configure_args0 " in
1243: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244: esac
1245: ;;
1246: -* ) ac_must_keep_next=true ;;
1247: esac
1248: fi
1249: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250: # Get rid of the leading space.
1251: ac_sep=" "
1252: ;;
1253: esac
1254: done
1255: done
1256: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258:
1259: # When interrupted or exit'd, cleanup temporary files, and complete
1260: # config.log. We remove comments because anyway the quotes in there
1261: # would cause problems or look ugly.
1262: # WARNING: Be sure not to use single quotes in there, as some shells,
1263: # such as our DU 5.0 friend, will then `close' the trap.
1264: trap 'exit_status=$?
1265: # Save into config.log some information that might help in debugging.
1266: {
1267: echo
1268:
1269: cat <<\_ASBOX
1270: ## ---------------- ##
1271: ## Cache variables. ##
1272: ## ---------------- ##
1273: _ASBOX
1274: echo
1275: # The following way of writing the cache mishandles newlines in values,
1276: {
1277: (set) 2>&1 |
1278: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279: *ac_space=\ *)
1280: sed -n \
1281: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283: ;;
1284: *)
1285: sed -n \
1286: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287: ;;
1288: esac;
1289: }
1290: echo
1291:
1292: cat <<\_ASBOX
1293: ## ----------------- ##
1294: ## Output variables. ##
1295: ## ----------------- ##
1296: _ASBOX
1297: echo
1298: for ac_var in $ac_subst_vars
1299: do
1300: eval ac_val=$`echo $ac_var`
1301: echo "$ac_var='"'"'$ac_val'"'"'"
1302: done | sort
1303: echo
1304:
1305: if test -n "$ac_subst_files"; then
1306: cat <<\_ASBOX
1307: ## ------------- ##
1308: ## Output files. ##
1309: ## ------------- ##
1310: _ASBOX
1311: echo
1312: for ac_var in $ac_subst_files
1313: do
1314: eval ac_val=$`echo $ac_var`
1315: echo "$ac_var='"'"'$ac_val'"'"'"
1316: done | sort
1317: echo
1318: fi
1319:
1320: if test -s confdefs.h; then
1321: cat <<\_ASBOX
1322: ## ----------- ##
1323: ## confdefs.h. ##
1324: ## ----------- ##
1325: _ASBOX
1326: echo
1327: sed "/^$/d" confdefs.h | sort
1328: echo
1329: fi
1330: test "$ac_signal" != 0 &&
1331: echo "$as_me: caught signal $ac_signal"
1332: echo "$as_me: exit $exit_status"
1333: } >&5
1334: rm -f core *.core &&
1335: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336: exit $exit_status
1337: ' 0
1338: for ac_signal in 1 2 13 15; do
1339: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340: done
1341: ac_signal=0
1342:
1343: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1344: rm -rf conftest* confdefs.h
1345: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346: echo >confdefs.h
1347:
1348: # Predefined preprocessor variables.
1349:
1350: cat >>confdefs.h <<_ACEOF
1351: #define PACKAGE_NAME "$PACKAGE_NAME"
1352: _ACEOF
1353:
1354:
1355: cat >>confdefs.h <<_ACEOF
1356: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357: _ACEOF
1358:
1359:
1360: cat >>confdefs.h <<_ACEOF
1361: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362: _ACEOF
1363:
1364:
1365: cat >>confdefs.h <<_ACEOF
1366: #define PACKAGE_STRING "$PACKAGE_STRING"
1367: _ACEOF
1368:
1369:
1370: cat >>confdefs.h <<_ACEOF
1371: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372: _ACEOF
1373:
1374:
1375: # Let the site file select an alternate cache file if it wants to.
1376: # Prefer explicitly selected file to automatically selected ones.
1377: if test -z "$CONFIG_SITE"; then
1378: if test "x$prefix" != xNONE; then
1379: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380: else
1381: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382: fi
1383: fi
1384: for ac_site_file in $CONFIG_SITE; do
1385: if test -r "$ac_site_file"; then
1386: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387: echo "$as_me: loading site script $ac_site_file" >&6;}
1388: sed 's/^/| /' "$ac_site_file" >&5
1389: . "$ac_site_file"
1390: fi
1391: done
1392:
1393: if test -r "$cache_file"; then
1394: # Some versions of bash will fail to source /dev/null (special
1395: # files actually), so we avoid doing that.
1396: if test -f "$cache_file"; then
1397: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398: echo "$as_me: loading cache $cache_file" >&6;}
1399: case $cache_file in
1400: [\\/]* | ?:[\\/]* ) . $cache_file;;
1401: *) . ./$cache_file;;
1402: esac
1403: fi
1404: else
1405: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406: echo "$as_me: creating cache $cache_file" >&6;}
1407: >$cache_file
1408: fi
1409:
1410: # Check that the precious variables saved in the cache have kept the same
1411: # value.
1412: ac_cache_corrupted=false
1413: for ac_var in `(set) 2>&1 |
1414: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416: eval ac_new_set=\$ac_env_${ac_var}_set
1417: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418: eval ac_new_val="\$ac_env_${ac_var}_value"
1419: case $ac_old_set,$ac_new_set in
1420: set,)
1421: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423: ac_cache_corrupted=: ;;
1424: ,set)
1425: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427: ac_cache_corrupted=: ;;
1428: ,);;
1429: *)
1430: if test "x$ac_old_val" != "x$ac_new_val"; then
1431: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1432: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1433: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1434: echo "$as_me: former value: $ac_old_val" >&2;}
1435: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1436: echo "$as_me: current value: $ac_new_val" >&2;}
1437: ac_cache_corrupted=:
1438: fi;;
1439: esac
1440: # Pass precious variables to config.status.
1441: if test "$ac_new_set" = set; then
1442: case $ac_new_val in
1443: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1444: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1445: *) ac_arg=$ac_var=$ac_new_val ;;
1446: esac
1447: case " $ac_configure_args " in
1448: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1449: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450: esac
1451: fi
1452: done
1453: if $ac_cache_corrupted; then
1454: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1455: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1456: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1457: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1458: { (exit 1); exit 1; }; }
1459: fi
1460:
1461: ac_ext=c
1462: ac_cpp='$CPP $CPPFLAGS'
1463: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1464: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1465: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1466:
1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477:
1478:
1479:
1480:
1481:
1482:
1483:
1484:
1485:
1486:
1487: am__api_version="1.9"
1488: ac_aux_dir=
1489: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1490: if test -f $ac_dir/install-sh; then
1491: ac_aux_dir=$ac_dir
1492: ac_install_sh="$ac_aux_dir/install-sh -c"
1493: break
1494: elif test -f $ac_dir/install.sh; then
1495: ac_aux_dir=$ac_dir
1496: ac_install_sh="$ac_aux_dir/install.sh -c"
1497: break
1498: elif test -f $ac_dir/shtool; then
1499: ac_aux_dir=$ac_dir
1500: ac_install_sh="$ac_aux_dir/shtool install -c"
1501: break
1502: fi
1503: done
1504: if test -z "$ac_aux_dir"; then
1505: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1506: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1507: { (exit 1); exit 1; }; }
1508: fi
1509: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512:
1513: # Find a good install program. We prefer a C program (faster),
1514: # so one script is as good as another. But avoid the broken or
1515: # incompatible versions:
1516: # SysV /etc/install, /usr/sbin/install
1517: # SunOS /usr/etc/install
1518: # IRIX /sbin/install
1519: # AIX /bin/install
1520: # AmigaOS /C/install, which installs bootblocks on floppy discs
1521: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1522: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1523: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1524: # OS/2's system install, which has a completely different semantic
1525: # ./install, which can be erroneously created by make from ./install.sh.
1526: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1527: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1528: if test -z "$INSTALL"; then
1529: if test "${ac_cv_path_install+set}" = set; then
1530: echo $ECHO_N "(cached) $ECHO_C" >&6
1531: else
1532: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533: for as_dir in $PATH
1534: do
1535: IFS=$as_save_IFS
1536: test -z "$as_dir" && as_dir=.
1537: # Account for people who put trailing slashes in PATH elements.
1538: case $as_dir/ in
1539: ./ | .// | /cC/* | \
1540: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1541: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1542: /usr/ucb/* ) ;;
1543: *)
1544: # OSF1 and SCO ODT 3.0 have their own names for install.
1545: # Don't use installbsd from OSF since it installs stuff as root
1546: # by default.
1547: for ac_prog in ginstall scoinst install; do
1548: for ac_exec_ext in '' $ac_executable_extensions; do
1549: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1550: if test $ac_prog = install &&
1551: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1552: # AIX install. It has an incompatible calling convention.
1553: :
1554: elif test $ac_prog = install &&
1555: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1556: # program-specific install script used by HP pwplus--don't use.
1557: :
1558: else
1559: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1560: break 3
1561: fi
1562: fi
1563: done
1564: done
1565: ;;
1566: esac
1567: done
1568:
1569:
1570: fi
1571: if test "${ac_cv_path_install+set}" = set; then
1572: INSTALL=$ac_cv_path_install
1573: else
1574: # As a last resort, use the slow shell script. We don't cache a
1575: # path for INSTALL within a source directory, because that will
1576: # break other packages using the cache if that directory is
1577: # removed, or if the path is relative.
1578: INSTALL=$ac_install_sh
1579: fi
1580: fi
1581: echo "$as_me:$LINENO: result: $INSTALL" >&5
1582: echo "${ECHO_T}$INSTALL" >&6
1583:
1584: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1585: # It thinks the first close brace ends the variable substitution.
1586: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1587:
1588: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1589:
1590: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1591:
1592: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1593: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1594: # Just in case
1595: sleep 1
1596: echo timestamp > conftest.file
1597: # Do `set' in a subshell so we don't clobber the current shell's
1598: # arguments. Must try -L first in case configure is actually a
1599: # symlink; some systems play weird games with the mod time of symlinks
1600: # (eg FreeBSD returns the mod time of the symlink's containing
1601: # directory).
1602: if (
1603: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1604: if test "$*" = "X"; then
1605: # -L didn't work.
1606: set X `ls -t $srcdir/configure conftest.file`
1607: fi
1608: rm -f conftest.file
1609: if test "$*" != "X $srcdir/configure conftest.file" \
1610: && test "$*" != "X conftest.file $srcdir/configure"; then
1611:
1612: # If neither matched, then we have a broken ls. This can happen
1613: # if, for instance, CONFIG_SHELL is bash and it inherits a
1614: # broken ls alias from the environment. This has actually
1615: # happened. Such a system could not be considered "sane".
1616: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1617: alias in your environment" >&5
1618: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1619: alias in your environment" >&2;}
1620: { (exit 1); exit 1; }; }
1621: fi
1622:
1623: test "$2" = conftest.file
1624: )
1625: then
1626: # Ok.
1627: :
1628: else
1629: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1630: Check your system clock" >&5
1631: echo "$as_me: error: newly created file is older than distributed files!
1632: Check your system clock" >&2;}
1633: { (exit 1); exit 1; }; }
1634: fi
1635: echo "$as_me:$LINENO: result: yes" >&5
1636: echo "${ECHO_T}yes" >&6
1637: test "$program_prefix" != NONE &&
1638: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1639: # Use a double $ so make ignores it.
1640: test "$program_suffix" != NONE &&
1641: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1642: # Double any \ or $. echo might interpret backslashes.
1643: # By default was `s,x,x', remove it if useless.
1644: cat <<\_ACEOF >conftest.sed
1645: s/[\\$]/&&/g;s/;s,x,x,$//
1646: _ACEOF
1647: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1648: rm conftest.sed
1649:
1650: # expand $ac_aux_dir to an absolute path
1651: am_aux_dir=`cd $ac_aux_dir && pwd`
1652:
1653: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1654: # Use eval to expand $SHELL
1655: if eval "$MISSING --run true"; then
1656: am_missing_run="$MISSING --run "
1657: else
1658: am_missing_run=
1659: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1660: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1661: fi
1662:
1663: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1664: # We used to keeping the `.' as first argument, in order to
1665: # allow $(mkdir_p) to be used without argument. As in
1666: # $(mkdir_p) $(somedir)
1667: # where $(somedir) is conditionally defined. However this is wrong
1668: # for two reasons:
1669: # 1. if the package is installed by a user who cannot write `.'
1670: # make install will fail,
1671: # 2. the above comment should most certainly read
1672: # $(mkdir_p) $(DESTDIR)$(somedir)
1673: # so it does not work when $(somedir) is undefined and
1674: # $(DESTDIR) is not.
1675: # To support the latter case, we have to write
1676: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1677: # so the `.' trick is pointless.
1678: mkdir_p='mkdir -p --'
1679: else
1680: # On NextStep and OpenStep, the `mkdir' command does not
1681: # recognize any option. It will interpret all options as
1682: # directories to create, and then abort because `.' already
1683: # exists.
1684: for d in ./-p ./--version;
1685: do
1686: test -d $d && rmdir $d
1687: done
1688: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1689: if test -f "$ac_aux_dir/mkinstalldirs"; then
1690: mkdir_p='$(mkinstalldirs)'
1691: else
1692: mkdir_p='$(install_sh) -d'
1693: fi
1694: fi
1695:
1696: for ac_prog in gawk mawk nawk awk
1697: do
1698: # Extract the first word of "$ac_prog", so it can be a program name with args.
1699: set dummy $ac_prog; ac_word=$2
1700: echo "$as_me:$LINENO: checking for $ac_word" >&5
1701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702: if test "${ac_cv_prog_AWK+set}" = set; then
1703: echo $ECHO_N "(cached) $ECHO_C" >&6
1704: else
1705: if test -n "$AWK"; then
1706: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1707: else
1708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709: for as_dir in $PATH
1710: do
1711: IFS=$as_save_IFS
1712: test -z "$as_dir" && as_dir=.
1713: for ac_exec_ext in '' $ac_executable_extensions; do
1714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715: ac_cv_prog_AWK="$ac_prog"
1716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717: break 2
1718: fi
1719: done
1720: done
1721:
1722: fi
1723: fi
1724: AWK=$ac_cv_prog_AWK
1725: if test -n "$AWK"; then
1726: echo "$as_me:$LINENO: result: $AWK" >&5
1727: echo "${ECHO_T}$AWK" >&6
1728: else
1729: echo "$as_me:$LINENO: result: no" >&5
1730: echo "${ECHO_T}no" >&6
1731: fi
1732:
1733: test -n "$AWK" && break
1734: done
1735:
1736: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1737: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1738: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1739: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1740: echo $ECHO_N "(cached) $ECHO_C" >&6
1741: else
1742: cat >conftest.make <<\_ACEOF
1743: all:
1744: @echo 'ac_maketemp="$(MAKE)"'
1745: _ACEOF
1746: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1747: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1748: if test -n "$ac_maketemp"; then
1749: eval ac_cv_prog_make_${ac_make}_set=yes
1750: else
1751: eval ac_cv_prog_make_${ac_make}_set=no
1752: fi
1753: rm -f conftest.make
1754: fi
1755: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1756: echo "$as_me:$LINENO: result: yes" >&5
1757: echo "${ECHO_T}yes" >&6
1758: SET_MAKE=
1759: else
1760: echo "$as_me:$LINENO: result: no" >&5
1761: echo "${ECHO_T}no" >&6
1762: SET_MAKE="MAKE=${MAKE-make}"
1763: fi
1764:
1765: rm -rf .tst 2>/dev/null
1766: mkdir .tst 2>/dev/null
1767: if test -d .tst; then
1768: am__leading_dot=.
1769: else
1770: am__leading_dot=_
1771: fi
1772: rmdir .tst 2>/dev/null
1773:
1774: # test to see if srcdir already configured
1775: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1776: test -f $srcdir/config.status; then
1777: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1778: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1779: { (exit 1); exit 1; }; }
1780: fi
1781:
1782: # test whether we have cygpath
1783: if test -z "$CYGPATH_W"; then
1784: if (cygpath --version) >/dev/null 2>/dev/null; then
1785: CYGPATH_W='cygpath -w'
1786: else
1787: CYGPATH_W=echo
1788: fi
1789: fi
1790:
1791:
1792: # Define the identity of the package.
1793: PACKAGE=parser3sqlite
1.4 misha 1794: VERSION=10.0
1.1 misha 1795:
1796:
1797: # Some tools Automake needs.
1798:
1799: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1800:
1801:
1802: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1803:
1804:
1805: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1806:
1807:
1808: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1809:
1810:
1811: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1812:
1813: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1814:
1815: # Installed binaries are usually stripped using `strip' when the user
1816: # run `make install-strip'. However `strip' might not be the right
1817: # tool to use in cross-compilation environments, therefore Automake
1818: # will honor the `STRIP' environment variable to overrule this program.
1819: if test "$cross_compiling" != no; then
1820: if test -n "$ac_tool_prefix"; then
1821: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1822: set dummy ${ac_tool_prefix}strip; ac_word=$2
1823: echo "$as_me:$LINENO: checking for $ac_word" >&5
1824: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825: if test "${ac_cv_prog_STRIP+set}" = set; then
1826: echo $ECHO_N "(cached) $ECHO_C" >&6
1827: else
1828: if test -n "$STRIP"; then
1829: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1830: else
1831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832: for as_dir in $PATH
1833: do
1834: IFS=$as_save_IFS
1835: test -z "$as_dir" && as_dir=.
1836: for ac_exec_ext in '' $ac_executable_extensions; do
1837: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1839: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840: break 2
1841: fi
1842: done
1843: done
1844:
1845: fi
1846: fi
1847: STRIP=$ac_cv_prog_STRIP
1848: if test -n "$STRIP"; then
1849: echo "$as_me:$LINENO: result: $STRIP" >&5
1850: echo "${ECHO_T}$STRIP" >&6
1851: else
1852: echo "$as_me:$LINENO: result: no" >&5
1853: echo "${ECHO_T}no" >&6
1854: fi
1855:
1856: fi
1857: if test -z "$ac_cv_prog_STRIP"; then
1858: ac_ct_STRIP=$STRIP
1859: # Extract the first word of "strip", so it can be a program name with args.
1860: set dummy strip; ac_word=$2
1861: echo "$as_me:$LINENO: checking for $ac_word" >&5
1862: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1864: echo $ECHO_N "(cached) $ECHO_C" >&6
1865: else
1866: if test -n "$ac_ct_STRIP"; then
1867: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1868: else
1869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870: for as_dir in $PATH
1871: do
1872: IFS=$as_save_IFS
1873: test -z "$as_dir" && as_dir=.
1874: for ac_exec_ext in '' $ac_executable_extensions; do
1875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876: ac_cv_prog_ac_ct_STRIP="strip"
1877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878: break 2
1879: fi
1880: done
1881: done
1882:
1883: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1884: fi
1885: fi
1886: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1887: if test -n "$ac_ct_STRIP"; then
1888: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1889: echo "${ECHO_T}$ac_ct_STRIP" >&6
1890: else
1891: echo "$as_me:$LINENO: result: no" >&5
1892: echo "${ECHO_T}no" >&6
1893: fi
1894:
1895: STRIP=$ac_ct_STRIP
1896: else
1897: STRIP="$ac_cv_prog_STRIP"
1898: fi
1899:
1900: fi
1901: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1902:
1903: # We need awk for the "check" target. The system "awk" is bad on
1904: # some platforms.
1905: # Always define AMTAR for backward compatibility.
1906:
1907: AMTAR=${AMTAR-"${am_missing_run}tar"}
1908:
1909: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1910:
1911:
1912:
1913:
1914:
1915:
1916: ac_config_headers="$ac_config_headers config_auto.h"
1917:
1918:
1919:
1920:
1921:
1922:
1923:
1924:
1925: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
1926: if test "${with_sqlite_inc+set}" = set; then
1927: withval="$with_sqlite_inc"
1928:
1929: if test -r "$withval/sqlite3.h"; then
1930: SQLITE_INC=$withval
1931: fi
1932:
1933:
1.4 misha 1934: if test -z "$SQLITE_INC"; then
1.1 misha 1935: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
1936: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
1937: { (exit 1); exit 1; }; }
1.4 misha 1938: fi
1.1 misha 1939:
1940: else
1941: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
1942: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1943: for d in \
1944: /usr/local/include/sqlite \
1945: /usr/include/sqlite ; do
1946:
1947: if test -r "$d/sqlite3.h"; then
1948: SQLITE_INC=$d
1949: fi
1950:
1951: done
1952:
1.4 misha 1953: if test -z "$SQLITE_INC"; then
1954: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
1.1 misha 1955: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
1956: { (exit 1); exit 1; }; }
1.4 misha 1957: fi
1.1 misha 1958:
1959: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
1960: echo "${ECHO_T}$SQLITE_INC" >&6
1961:
1962: fi;
1963:
1964:
1965:
1966:
1967:
1.6 ! misha 1968:
! 1969: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
! 1970: if test "${with_dynamic_stdcpp+set}" = set; then
! 1971: withval="$with_dynamic_stdcpp"
! 1972:
! 1973: LDFLAGS="-lstdc++"
! 1974:
! 1975: else
! 1976:
! 1977: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
! 1978:
! 1979: fi;
! 1980:
! 1981:
! 1982:
! 1983:
1.1 misha 1984: # Find a good install program. We prefer a C program (faster),
1985: # so one script is as good as another. But avoid the broken or
1986: # incompatible versions:
1987: # SysV /etc/install, /usr/sbin/install
1988: # SunOS /usr/etc/install
1989: # IRIX /sbin/install
1990: # AIX /bin/install
1991: # AmigaOS /C/install, which installs bootblocks on floppy discs
1992: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1993: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1994: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1995: # OS/2's system install, which has a completely different semantic
1996: # ./install, which can be erroneously created by make from ./install.sh.
1997: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1998: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1999: if test -z "$INSTALL"; then
2000: if test "${ac_cv_path_install+set}" = set; then
2001: echo $ECHO_N "(cached) $ECHO_C" >&6
2002: else
2003: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004: for as_dir in $PATH
2005: do
2006: IFS=$as_save_IFS
2007: test -z "$as_dir" && as_dir=.
2008: # Account for people who put trailing slashes in PATH elements.
2009: case $as_dir/ in
2010: ./ | .// | /cC/* | \
2011: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2012: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2013: /usr/ucb/* ) ;;
2014: *)
2015: # OSF1 and SCO ODT 3.0 have their own names for install.
2016: # Don't use installbsd from OSF since it installs stuff as root
2017: # by default.
2018: for ac_prog in ginstall scoinst install; do
2019: for ac_exec_ext in '' $ac_executable_extensions; do
2020: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2021: if test $ac_prog = install &&
2022: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023: # AIX install. It has an incompatible calling convention.
2024: :
2025: elif test $ac_prog = install &&
2026: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027: # program-specific install script used by HP pwplus--don't use.
2028: :
2029: else
2030: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031: break 3
2032: fi
2033: fi
2034: done
2035: done
2036: ;;
2037: esac
2038: done
2039:
2040:
2041: fi
2042: if test "${ac_cv_path_install+set}" = set; then
2043: INSTALL=$ac_cv_path_install
2044: else
2045: # As a last resort, use the slow shell script. We don't cache a
2046: # path for INSTALL within a source directory, because that will
2047: # break other packages using the cache if that directory is
2048: # removed, or if the path is relative.
2049: INSTALL=$ac_install_sh
2050: fi
2051: fi
2052: echo "$as_me:$LINENO: result: $INSTALL" >&5
2053: echo "${ECHO_T}$INSTALL" >&6
2054:
2055: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2056: # It thinks the first close brace ends the variable substitution.
2057: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2058:
2059: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2060:
2061: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2062:
2063: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2064: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2065: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2066: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2067: echo $ECHO_N "(cached) $ECHO_C" >&6
2068: else
2069: cat >conftest.make <<\_ACEOF
2070: all:
2071: @echo 'ac_maketemp="$(MAKE)"'
2072: _ACEOF
2073: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2074: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2075: if test -n "$ac_maketemp"; then
2076: eval ac_cv_prog_make_${ac_make}_set=yes
2077: else
2078: eval ac_cv_prog_make_${ac_make}_set=no
2079: fi
2080: rm -f conftest.make
2081: fi
2082: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2083: echo "$as_me:$LINENO: result: yes" >&5
2084: echo "${ECHO_T}yes" >&6
2085: SET_MAKE=
2086: else
2087: echo "$as_me:$LINENO: result: no" >&5
2088: echo "${ECHO_T}no" >&6
2089: SET_MAKE="MAKE=${MAKE-make}"
2090: fi
2091:
2092: for ac_prog in gawk mawk nawk awk
2093: do
2094: # Extract the first word of "$ac_prog", so it can be a program name with args.
2095: set dummy $ac_prog; ac_word=$2
2096: echo "$as_me:$LINENO: checking for $ac_word" >&5
2097: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098: if test "${ac_cv_prog_AWK+set}" = set; then
2099: echo $ECHO_N "(cached) $ECHO_C" >&6
2100: else
2101: if test -n "$AWK"; then
2102: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2103: else
2104: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105: for as_dir in $PATH
2106: do
2107: IFS=$as_save_IFS
2108: test -z "$as_dir" && as_dir=.
2109: for ac_exec_ext in '' $ac_executable_extensions; do
2110: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111: ac_cv_prog_AWK="$ac_prog"
2112: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113: break 2
2114: fi
2115: done
2116: done
2117:
2118: fi
2119: fi
2120: AWK=$ac_cv_prog_AWK
2121: if test -n "$AWK"; then
2122: echo "$as_me:$LINENO: result: $AWK" >&5
2123: echo "${ECHO_T}$AWK" >&6
2124: else
2125: echo "$as_me:$LINENO: result: no" >&5
2126: echo "${ECHO_T}no" >&6
2127: fi
2128:
2129: test -n "$AWK" && break
2130: done
2131:
2132: ac_ext=cc
2133: ac_cpp='$CXXCPP $CPPFLAGS'
2134: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2137: if test -n "$ac_tool_prefix"; then
2138: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2139: do
2140: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2141: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2142: echo "$as_me:$LINENO: checking for $ac_word" >&5
2143: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144: if test "${ac_cv_prog_CXX+set}" = set; then
2145: echo $ECHO_N "(cached) $ECHO_C" >&6
2146: else
2147: if test -n "$CXX"; then
2148: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2149: else
2150: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151: for as_dir in $PATH
2152: do
2153: IFS=$as_save_IFS
2154: test -z "$as_dir" && as_dir=.
2155: for ac_exec_ext in '' $ac_executable_extensions; do
2156: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2158: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159: break 2
2160: fi
2161: done
2162: done
2163:
2164: fi
2165: fi
2166: CXX=$ac_cv_prog_CXX
2167: if test -n "$CXX"; then
2168: echo "$as_me:$LINENO: result: $CXX" >&5
2169: echo "${ECHO_T}$CXX" >&6
2170: else
2171: echo "$as_me:$LINENO: result: no" >&5
2172: echo "${ECHO_T}no" >&6
2173: fi
2174:
2175: test -n "$CXX" && break
2176: done
2177: fi
2178: if test -z "$CXX"; then
2179: ac_ct_CXX=$CXX
2180: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2181: do
2182: # Extract the first word of "$ac_prog", so it can be a program name with args.
2183: set dummy $ac_prog; ac_word=$2
2184: echo "$as_me:$LINENO: checking for $ac_word" >&5
2185: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2187: echo $ECHO_N "(cached) $ECHO_C" >&6
2188: else
2189: if test -n "$ac_ct_CXX"; then
2190: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2191: else
2192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193: for as_dir in $PATH
2194: do
2195: IFS=$as_save_IFS
2196: test -z "$as_dir" && as_dir=.
2197: for ac_exec_ext in '' $ac_executable_extensions; do
2198: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199: ac_cv_prog_ac_ct_CXX="$ac_prog"
2200: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201: break 2
2202: fi
2203: done
2204: done
2205:
2206: fi
2207: fi
2208: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2209: if test -n "$ac_ct_CXX"; then
2210: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2211: echo "${ECHO_T}$ac_ct_CXX" >&6
2212: else
2213: echo "$as_me:$LINENO: result: no" >&5
2214: echo "${ECHO_T}no" >&6
2215: fi
2216:
2217: test -n "$ac_ct_CXX" && break
2218: done
2219: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2220:
2221: CXX=$ac_ct_CXX
2222: fi
2223:
2224:
2225: # Provide some information about the compiler.
2226: echo "$as_me:$LINENO:" \
2227: "checking for C++ compiler version" >&5
2228: ac_compiler=`set X $ac_compile; echo $2`
2229: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2230: (eval $ac_compiler --version </dev/null >&5) 2>&5
2231: ac_status=$?
2232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233: (exit $ac_status); }
2234: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2235: (eval $ac_compiler -v </dev/null >&5) 2>&5
2236: ac_status=$?
2237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238: (exit $ac_status); }
2239: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2240: (eval $ac_compiler -V </dev/null >&5) 2>&5
2241: ac_status=$?
2242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243: (exit $ac_status); }
2244:
2245: cat >conftest.$ac_ext <<_ACEOF
2246: /* confdefs.h. */
2247: _ACEOF
2248: cat confdefs.h >>conftest.$ac_ext
2249: cat >>conftest.$ac_ext <<_ACEOF
2250: /* end confdefs.h. */
2251:
2252: int
2253: main ()
2254: {
2255:
2256: ;
2257: return 0;
2258: }
2259: _ACEOF
2260: ac_clean_files_save=$ac_clean_files
2261: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2262: # Try to create an executable without -o first, disregard a.out.
2263: # It will help us diagnose broken compilers, and finding out an intuition
2264: # of exeext.
2265: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2266: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2267: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2268: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2269: (eval $ac_link_default) 2>&5
2270: ac_status=$?
2271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272: (exit $ac_status); }; then
2273: # Find the output, starting from the most likely. This scheme is
2274: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2275: # resort.
2276:
2277: # Be careful to initialize this variable, since it used to be cached.
2278: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2279: ac_cv_exeext=
2280: # b.out is created by i960 compilers.
2281: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2282: do
2283: test -f "$ac_file" || continue
2284: case $ac_file in
2285: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2286: ;;
2287: conftest.$ac_ext )
2288: # This is the source file.
2289: ;;
2290: [ab].out )
2291: # We found the default executable, but exeext='' is most
2292: # certainly right.
2293: break;;
2294: *.* )
2295: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296: # FIXME: I believe we export ac_cv_exeext for Libtool,
2297: # but it would be cool to find out if it's true. Does anybody
2298: # maintain Libtool? --akim.
2299: export ac_cv_exeext
2300: break;;
2301: * )
2302: break;;
2303: esac
2304: done
2305: else
2306: echo "$as_me: failed program was:" >&5
2307: sed 's/^/| /' conftest.$ac_ext >&5
2308:
2309: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2310: See \`config.log' for more details." >&5
2311: echo "$as_me: error: C++ compiler cannot create executables
2312: See \`config.log' for more details." >&2;}
2313: { (exit 77); exit 77; }; }
2314: fi
2315:
2316: ac_exeext=$ac_cv_exeext
2317: echo "$as_me:$LINENO: result: $ac_file" >&5
2318: echo "${ECHO_T}$ac_file" >&6
2319:
2320: # Check the compiler produces executables we can run. If not, either
2321: # the compiler is broken, or we cross compile.
2322: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2323: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2324: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2325: # If not cross compiling, check that we can run a simple program.
2326: if test "$cross_compiling" != yes; then
2327: if { ac_try='./$ac_file'
2328: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329: (eval $ac_try) 2>&5
2330: ac_status=$?
2331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332: (exit $ac_status); }; }; then
2333: cross_compiling=no
2334: else
2335: if test "$cross_compiling" = maybe; then
2336: cross_compiling=yes
2337: else
2338: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2339: If you meant to cross compile, use \`--host'.
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: cannot run C++ compiled programs.
2342: If you meant to cross compile, use \`--host'.
2343: See \`config.log' for more details." >&2;}
2344: { (exit 1); exit 1; }; }
2345: fi
2346: fi
2347: fi
2348: echo "$as_me:$LINENO: result: yes" >&5
2349: echo "${ECHO_T}yes" >&6
2350:
2351: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2352: ac_clean_files=$ac_clean_files_save
2353: # Check the compiler produces executables we can run. If not, either
2354: # the compiler is broken, or we cross compile.
2355: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2357: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358: echo "${ECHO_T}$cross_compiling" >&6
2359:
2360: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2362: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2363: (eval $ac_link) 2>&5
2364: ac_status=$?
2365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366: (exit $ac_status); }; then
2367: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2368: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2369: # work properly (i.e., refer to `conftest.exe'), while it won't with
2370: # `rm'.
2371: for ac_file in conftest.exe conftest conftest.*; do
2372: test -f "$ac_file" || continue
2373: case $ac_file in
2374: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2375: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376: export ac_cv_exeext
2377: break;;
2378: * ) break;;
2379: esac
2380: done
2381: else
2382: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2383: See \`config.log' for more details." >&5
2384: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2385: See \`config.log' for more details." >&2;}
2386: { (exit 1); exit 1; }; }
2387: fi
2388:
2389: rm -f conftest$ac_cv_exeext
2390: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2391: echo "${ECHO_T}$ac_cv_exeext" >&6
2392:
2393: rm -f conftest.$ac_ext
2394: EXEEXT=$ac_cv_exeext
2395: ac_exeext=$EXEEXT
2396: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2397: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2398: if test "${ac_cv_objext+set}" = set; then
2399: echo $ECHO_N "(cached) $ECHO_C" >&6
2400: else
2401: cat >conftest.$ac_ext <<_ACEOF
2402: /* confdefs.h. */
2403: _ACEOF
2404: cat confdefs.h >>conftest.$ac_ext
2405: cat >>conftest.$ac_ext <<_ACEOF
2406: /* end confdefs.h. */
2407:
2408: int
2409: main ()
2410: {
2411:
2412: ;
2413: return 0;
2414: }
2415: _ACEOF
2416: rm -f conftest.o conftest.obj
2417: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418: (eval $ac_compile) 2>&5
2419: ac_status=$?
2420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421: (exit $ac_status); }; then
2422: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2423: case $ac_file in
2424: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2425: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2426: break;;
2427: esac
2428: done
2429: else
2430: echo "$as_me: failed program was:" >&5
2431: sed 's/^/| /' conftest.$ac_ext >&5
2432:
2433: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434: See \`config.log' for more details." >&5
2435: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436: See \`config.log' for more details." >&2;}
2437: { (exit 1); exit 1; }; }
2438: fi
2439:
2440: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2441: fi
2442: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443: echo "${ECHO_T}$ac_cv_objext" >&6
2444: OBJEXT=$ac_cv_objext
2445: ac_objext=$OBJEXT
2446: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2447: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2448: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2449: echo $ECHO_N "(cached) $ECHO_C" >&6
2450: else
2451: cat >conftest.$ac_ext <<_ACEOF
2452: /* confdefs.h. */
2453: _ACEOF
2454: cat confdefs.h >>conftest.$ac_ext
2455: cat >>conftest.$ac_ext <<_ACEOF
2456: /* end confdefs.h. */
2457:
2458: int
2459: main ()
2460: {
2461: #ifndef __GNUC__
2462: choke me
2463: #endif
2464:
2465: ;
2466: return 0;
2467: }
2468: _ACEOF
2469: rm -f conftest.$ac_objext
2470: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471: (eval $ac_compile) 2>conftest.er1
2472: ac_status=$?
2473: grep -v '^ *+' conftest.er1 >conftest.err
2474: rm -f conftest.er1
2475: cat conftest.err >&5
2476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477: (exit $ac_status); } &&
2478: { ac_try='test -z "$ac_cxx_werror_flag"
2479: || test ! -s conftest.err'
2480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481: (eval $ac_try) 2>&5
2482: ac_status=$?
2483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484: (exit $ac_status); }; } &&
2485: { ac_try='test -s conftest.$ac_objext'
2486: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487: (eval $ac_try) 2>&5
2488: ac_status=$?
2489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490: (exit $ac_status); }; }; then
2491: ac_compiler_gnu=yes
2492: else
2493: echo "$as_me: failed program was:" >&5
2494: sed 's/^/| /' conftest.$ac_ext >&5
2495:
2496: ac_compiler_gnu=no
2497: fi
2498: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2500:
2501: fi
2502: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2503: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2504: GXX=`test $ac_compiler_gnu = yes && echo yes`
2505: ac_test_CXXFLAGS=${CXXFLAGS+set}
2506: ac_save_CXXFLAGS=$CXXFLAGS
2507: CXXFLAGS="-g"
2508: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2509: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2510: if test "${ac_cv_prog_cxx_g+set}" = set; then
2511: echo $ECHO_N "(cached) $ECHO_C" >&6
2512: else
2513: cat >conftest.$ac_ext <<_ACEOF
2514: /* confdefs.h. */
2515: _ACEOF
2516: cat confdefs.h >>conftest.$ac_ext
2517: cat >>conftest.$ac_ext <<_ACEOF
2518: /* end confdefs.h. */
2519:
2520: int
2521: main ()
2522: {
2523:
2524: ;
2525: return 0;
2526: }
2527: _ACEOF
2528: rm -f conftest.$ac_objext
2529: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530: (eval $ac_compile) 2>conftest.er1
2531: ac_status=$?
2532: grep -v '^ *+' conftest.er1 >conftest.err
2533: rm -f conftest.er1
2534: cat conftest.err >&5
2535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536: (exit $ac_status); } &&
2537: { ac_try='test -z "$ac_cxx_werror_flag"
2538: || test ! -s conftest.err'
2539: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540: (eval $ac_try) 2>&5
2541: ac_status=$?
2542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543: (exit $ac_status); }; } &&
2544: { ac_try='test -s conftest.$ac_objext'
2545: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546: (eval $ac_try) 2>&5
2547: ac_status=$?
2548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549: (exit $ac_status); }; }; then
2550: ac_cv_prog_cxx_g=yes
2551: else
2552: echo "$as_me: failed program was:" >&5
2553: sed 's/^/| /' conftest.$ac_ext >&5
2554:
2555: ac_cv_prog_cxx_g=no
2556: fi
2557: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558: fi
2559: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2560: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2561: if test "$ac_test_CXXFLAGS" = set; then
2562: CXXFLAGS=$ac_save_CXXFLAGS
2563: elif test $ac_cv_prog_cxx_g = yes; then
2564: if test "$GXX" = yes; then
2565: CXXFLAGS="-g -O2"
2566: else
2567: CXXFLAGS="-g"
2568: fi
2569: else
2570: if test "$GXX" = yes; then
2571: CXXFLAGS="-O2"
2572: else
2573: CXXFLAGS=
2574: fi
2575: fi
2576: for ac_declaration in \
2577: '' \
2578: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579: 'extern "C" void std::exit (int); using std::exit;' \
2580: 'extern "C" void exit (int) throw ();' \
2581: 'extern "C" void exit (int);' \
2582: 'void exit (int);'
2583: do
2584: cat >conftest.$ac_ext <<_ACEOF
2585: /* confdefs.h. */
2586: _ACEOF
2587: cat confdefs.h >>conftest.$ac_ext
2588: cat >>conftest.$ac_ext <<_ACEOF
2589: /* end confdefs.h. */
2590: $ac_declaration
2591: #include <stdlib.h>
2592: int
2593: main ()
2594: {
2595: exit (42);
2596: ;
2597: return 0;
2598: }
2599: _ACEOF
2600: rm -f conftest.$ac_objext
2601: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602: (eval $ac_compile) 2>conftest.er1
2603: ac_status=$?
2604: grep -v '^ *+' conftest.er1 >conftest.err
2605: rm -f conftest.er1
2606: cat conftest.err >&5
2607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608: (exit $ac_status); } &&
2609: { ac_try='test -z "$ac_cxx_werror_flag"
2610: || test ! -s conftest.err'
2611: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612: (eval $ac_try) 2>&5
2613: ac_status=$?
2614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615: (exit $ac_status); }; } &&
2616: { ac_try='test -s conftest.$ac_objext'
2617: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618: (eval $ac_try) 2>&5
2619: ac_status=$?
2620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621: (exit $ac_status); }; }; then
2622: :
2623: else
2624: echo "$as_me: failed program was:" >&5
2625: sed 's/^/| /' conftest.$ac_ext >&5
2626:
2627: continue
2628: fi
2629: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630: cat >conftest.$ac_ext <<_ACEOF
2631: /* confdefs.h. */
2632: _ACEOF
2633: cat confdefs.h >>conftest.$ac_ext
2634: cat >>conftest.$ac_ext <<_ACEOF
2635: /* end confdefs.h. */
2636: $ac_declaration
2637: int
2638: main ()
2639: {
2640: exit (42);
2641: ;
2642: return 0;
2643: }
2644: _ACEOF
2645: rm -f conftest.$ac_objext
2646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647: (eval $ac_compile) 2>conftest.er1
2648: ac_status=$?
2649: grep -v '^ *+' conftest.er1 >conftest.err
2650: rm -f conftest.er1
2651: cat conftest.err >&5
2652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653: (exit $ac_status); } &&
2654: { ac_try='test -z "$ac_cxx_werror_flag"
2655: || test ! -s conftest.err'
2656: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657: (eval $ac_try) 2>&5
2658: ac_status=$?
2659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660: (exit $ac_status); }; } &&
2661: { ac_try='test -s conftest.$ac_objext'
2662: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663: (eval $ac_try) 2>&5
2664: ac_status=$?
2665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666: (exit $ac_status); }; }; then
2667: break
2668: else
2669: echo "$as_me: failed program was:" >&5
2670: sed 's/^/| /' conftest.$ac_ext >&5
2671:
2672: fi
2673: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674: done
2675: rm -f conftest*
2676: if test -n "$ac_declaration"; then
2677: echo '#ifdef __cplusplus' >>confdefs.h
2678: echo $ac_declaration >>confdefs.h
2679: echo '#endif' >>confdefs.h
2680: fi
2681:
2682: ac_ext=c
2683: ac_cpp='$CPP $CPPFLAGS'
2684: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687: DEPDIR="${am__leading_dot}deps"
2688:
2689: ac_config_commands="$ac_config_commands depfiles"
2690:
2691:
2692: am_make=${MAKE-make}
2693: cat > confinc << 'END'
2694: am__doit:
2695: @echo done
2696: .PHONY: am__doit
2697: END
2698: # If we don't find an include directive, just comment out the code.
2699: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2700: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2701: am__include="#"
2702: am__quote=
2703: _am_result=none
2704: # First try GNU make style include.
2705: echo "include confinc" > confmf
2706: # We grep out `Entering directory' and `Leaving directory'
2707: # messages which can occur if `w' ends up in MAKEFLAGS.
2708: # In particular we don't look at `^make:' because GNU make might
2709: # be invoked under some other name (usually "gmake"), in which
2710: # case it prints its new name instead of `make'.
2711: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2712: am__include=include
2713: am__quote=
2714: _am_result=GNU
2715: fi
2716: # Now try BSD make style include.
2717: if test "$am__include" = "#"; then
2718: echo '.include "confinc"' > confmf
2719: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2720: am__include=.include
2721: am__quote="\""
2722: _am_result=BSD
2723: fi
2724: fi
2725:
2726:
2727: echo "$as_me:$LINENO: result: $_am_result" >&5
2728: echo "${ECHO_T}$_am_result" >&6
2729: rm -f confinc confmf
2730:
2731: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2732: if test "${enable_dependency_tracking+set}" = set; then
2733: enableval="$enable_dependency_tracking"
2734:
2735: fi;
2736: if test "x$enable_dependency_tracking" != xno; then
2737: am_depcomp="$ac_aux_dir/depcomp"
2738: AMDEPBACKSLASH='\'
2739: fi
2740:
2741:
2742: if test "x$enable_dependency_tracking" != xno; then
2743: AMDEP_TRUE=
2744: AMDEP_FALSE='#'
2745: else
2746: AMDEP_TRUE='#'
2747: AMDEP_FALSE=
2748: fi
2749:
2750:
2751:
2752:
2753: depcc="$CXX" am_compiler_list=
2754:
2755: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2756: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2757: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2758: echo $ECHO_N "(cached) $ECHO_C" >&6
2759: else
2760: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2761: # We make a subdir and do the tests there. Otherwise we can end up
2762: # making bogus files that we don't know about and never remove. For
2763: # instance it was reported that on HP-UX the gcc test will end up
2764: # making a dummy file named `D' -- because `-MD' means `put the output
2765: # in D'.
2766: mkdir conftest.dir
2767: # Copy depcomp to subdir because otherwise we won't find it if we're
2768: # using a relative directory.
2769: cp "$am_depcomp" conftest.dir
2770: cd conftest.dir
2771: # We will build objects and dependencies in a subdirectory because
2772: # it helps to detect inapplicable dependency modes. For instance
2773: # both Tru64's cc and ICC support -MD to output dependencies as a
2774: # side effect of compilation, but ICC will put the dependencies in
2775: # the current directory while Tru64 will put them in the object
2776: # directory.
2777: mkdir sub
2778:
2779: am_cv_CXX_dependencies_compiler_type=none
2780: if test "$am_compiler_list" = ""; then
2781: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2782: fi
2783: for depmode in $am_compiler_list; do
2784: # Setup a source with many dependencies, because some compilers
2785: # like to wrap large dependency lists on column 80 (with \), and
2786: # we should not choose a depcomp mode which is confused by this.
2787: #
2788: # We need to recreate these files for each test, as the compiler may
2789: # overwrite some of them when testing with obscure command lines.
2790: # This happens at least with the AIX C compiler.
2791: : > sub/conftest.c
2792: for i in 1 2 3 4 5 6; do
2793: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2794: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2795: # Solaris 8's {/usr,}/bin/sh.
2796: touch sub/conftst$i.h
2797: done
2798: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2799:
2800: case $depmode in
2801: nosideeffect)
2802: # after this tag, mechanisms are not by side-effect, so they'll
2803: # only be used when explicitly requested
2804: if test "x$enable_dependency_tracking" = xyes; then
2805: continue
2806: else
2807: break
2808: fi
2809: ;;
2810: none) break ;;
2811: esac
2812: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2813: # mode. It turns out that the SunPro C++ compiler does not properly
2814: # handle `-M -o', and we need to detect this.
2815: if depmode=$depmode \
2816: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2817: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2818: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2819: >/dev/null 2>conftest.err &&
2820: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2821: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2822: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2823: # icc doesn't choke on unknown options, it will just issue warnings
2824: # or remarks (even with -Werror). So we grep stderr for any message
2825: # that says an option was ignored or not supported.
2826: # When given -MP, icc 7.0 and 7.1 complain thusly:
2827: # icc: Command line warning: ignoring option '-M'; no argument required
2828: # The diagnosis changed in icc 8.0:
2829: # icc: Command line remark: option '-MP' not supported
2830: if (grep 'ignoring option' conftest.err ||
2831: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2832: am_cv_CXX_dependencies_compiler_type=$depmode
2833: break
2834: fi
2835: fi
2836: done
2837:
2838: cd ..
2839: rm -rf conftest.dir
2840: else
2841: am_cv_CXX_dependencies_compiler_type=none
2842: fi
2843:
2844: fi
2845: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2846: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2847: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2848:
2849:
2850:
2851: if
2852: test "x$enable_dependency_tracking" != xno \
2853: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2854: am__fastdepCXX_TRUE=
2855: am__fastdepCXX_FALSE='#'
2856: else
2857: am__fastdepCXX_TRUE='#'
2858: am__fastdepCXX_FALSE=
2859: fi
2860:
2861:
2862: ac_ext=c
2863: ac_cpp='$CPP $CPPFLAGS'
2864: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867: if test -n "$ac_tool_prefix"; then
2868: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2869: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2870: echo "$as_me:$LINENO: checking for $ac_word" >&5
2871: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872: if test "${ac_cv_prog_CC+set}" = set; then
2873: echo $ECHO_N "(cached) $ECHO_C" >&6
2874: else
2875: if test -n "$CC"; then
2876: ac_cv_prog_CC="$CC" # Let the user override the test.
2877: else
2878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879: for as_dir in $PATH
2880: do
2881: IFS=$as_save_IFS
2882: test -z "$as_dir" && as_dir=.
2883: for ac_exec_ext in '' $ac_executable_extensions; do
2884: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2886: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887: break 2
2888: fi
2889: done
2890: done
2891:
2892: fi
2893: fi
2894: CC=$ac_cv_prog_CC
2895: if test -n "$CC"; then
2896: echo "$as_me:$LINENO: result: $CC" >&5
2897: echo "${ECHO_T}$CC" >&6
2898: else
2899: echo "$as_me:$LINENO: result: no" >&5
2900: echo "${ECHO_T}no" >&6
2901: fi
2902:
2903: fi
2904: if test -z "$ac_cv_prog_CC"; then
2905: ac_ct_CC=$CC
2906: # Extract the first word of "gcc", so it can be a program name with args.
2907: set dummy gcc; ac_word=$2
2908: echo "$as_me:$LINENO: checking for $ac_word" >&5
2909: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2911: echo $ECHO_N "(cached) $ECHO_C" >&6
2912: else
2913: if test -n "$ac_ct_CC"; then
2914: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915: else
2916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917: for as_dir in $PATH
2918: do
2919: IFS=$as_save_IFS
2920: test -z "$as_dir" && as_dir=.
2921: for ac_exec_ext in '' $ac_executable_extensions; do
2922: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923: ac_cv_prog_ac_ct_CC="gcc"
2924: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925: break 2
2926: fi
2927: done
2928: done
2929:
2930: fi
2931: fi
2932: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2933: if test -n "$ac_ct_CC"; then
2934: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2935: echo "${ECHO_T}$ac_ct_CC" >&6
2936: else
2937: echo "$as_me:$LINENO: result: no" >&5
2938: echo "${ECHO_T}no" >&6
2939: fi
2940:
2941: CC=$ac_ct_CC
2942: else
2943: CC="$ac_cv_prog_CC"
2944: fi
2945:
2946: if test -z "$CC"; then
2947: if test -n "$ac_tool_prefix"; then
2948: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949: set dummy ${ac_tool_prefix}cc; ac_word=$2
2950: echo "$as_me:$LINENO: checking for $ac_word" >&5
2951: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952: if test "${ac_cv_prog_CC+set}" = set; then
2953: echo $ECHO_N "(cached) $ECHO_C" >&6
2954: else
2955: if test -n "$CC"; then
2956: ac_cv_prog_CC="$CC" # Let the user override the test.
2957: else
2958: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959: for as_dir in $PATH
2960: do
2961: IFS=$as_save_IFS
2962: test -z "$as_dir" && as_dir=.
2963: for ac_exec_ext in '' $ac_executable_extensions; do
2964: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965: ac_cv_prog_CC="${ac_tool_prefix}cc"
2966: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967: break 2
2968: fi
2969: done
2970: done
2971:
2972: fi
2973: fi
2974: CC=$ac_cv_prog_CC
2975: if test -n "$CC"; then
2976: echo "$as_me:$LINENO: result: $CC" >&5
2977: echo "${ECHO_T}$CC" >&6
2978: else
2979: echo "$as_me:$LINENO: result: no" >&5
2980: echo "${ECHO_T}no" >&6
2981: fi
2982:
2983: fi
2984: if test -z "$ac_cv_prog_CC"; then
2985: ac_ct_CC=$CC
2986: # Extract the first word of "cc", so it can be a program name with args.
2987: set dummy cc; ac_word=$2
2988: echo "$as_me:$LINENO: checking for $ac_word" >&5
2989: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2991: echo $ECHO_N "(cached) $ECHO_C" >&6
2992: else
2993: if test -n "$ac_ct_CC"; then
2994: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995: else
2996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997: for as_dir in $PATH
2998: do
2999: IFS=$as_save_IFS
3000: test -z "$as_dir" && as_dir=.
3001: for ac_exec_ext in '' $ac_executable_extensions; do
3002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003: ac_cv_prog_ac_ct_CC="cc"
3004: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005: break 2
3006: fi
3007: done
3008: done
3009:
3010: fi
3011: fi
3012: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013: if test -n "$ac_ct_CC"; then
3014: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015: echo "${ECHO_T}$ac_ct_CC" >&6
3016: else
3017: echo "$as_me:$LINENO: result: no" >&5
3018: echo "${ECHO_T}no" >&6
3019: fi
3020:
3021: CC=$ac_ct_CC
3022: else
3023: CC="$ac_cv_prog_CC"
3024: fi
3025:
3026: fi
3027: if test -z "$CC"; then
3028: # Extract the first word of "cc", so it can be a program name with args.
3029: set dummy cc; ac_word=$2
3030: echo "$as_me:$LINENO: checking for $ac_word" >&5
3031: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032: if test "${ac_cv_prog_CC+set}" = set; then
3033: echo $ECHO_N "(cached) $ECHO_C" >&6
3034: else
3035: if test -n "$CC"; then
3036: ac_cv_prog_CC="$CC" # Let the user override the test.
3037: else
3038: ac_prog_rejected=no
3039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040: for as_dir in $PATH
3041: do
3042: IFS=$as_save_IFS
3043: test -z "$as_dir" && as_dir=.
3044: for ac_exec_ext in '' $ac_executable_extensions; do
3045: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047: ac_prog_rejected=yes
3048: continue
3049: fi
3050: ac_cv_prog_CC="cc"
3051: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052: break 2
3053: fi
3054: done
3055: done
3056:
3057: if test $ac_prog_rejected = yes; then
3058: # We found a bogon in the path, so make sure we never use it.
3059: set dummy $ac_cv_prog_CC
3060: shift
3061: if test $# != 0; then
3062: # We chose a different compiler from the bogus one.
3063: # However, it has the same basename, so the bogon will be chosen
3064: # first if we set CC to just the basename; use the full file name.
3065: shift
3066: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3067: fi
3068: fi
3069: fi
3070: fi
3071: CC=$ac_cv_prog_CC
3072: if test -n "$CC"; then
3073: echo "$as_me:$LINENO: result: $CC" >&5
3074: echo "${ECHO_T}$CC" >&6
3075: else
3076: echo "$as_me:$LINENO: result: no" >&5
3077: echo "${ECHO_T}no" >&6
3078: fi
3079:
3080: fi
3081: if test -z "$CC"; then
3082: if test -n "$ac_tool_prefix"; then
3083: for ac_prog in cl
3084: do
3085: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087: echo "$as_me:$LINENO: checking for $ac_word" >&5
3088: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089: if test "${ac_cv_prog_CC+set}" = set; then
3090: echo $ECHO_N "(cached) $ECHO_C" >&6
3091: else
3092: if test -n "$CC"; then
3093: ac_cv_prog_CC="$CC" # Let the user override the test.
3094: else
3095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096: for as_dir in $PATH
3097: do
3098: IFS=$as_save_IFS
3099: test -z "$as_dir" && as_dir=.
3100: for ac_exec_ext in '' $ac_executable_extensions; do
3101: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104: break 2
3105: fi
3106: done
3107: done
3108:
3109: fi
3110: fi
3111: CC=$ac_cv_prog_CC
3112: if test -n "$CC"; then
3113: echo "$as_me:$LINENO: result: $CC" >&5
3114: echo "${ECHO_T}$CC" >&6
3115: else
3116: echo "$as_me:$LINENO: result: no" >&5
3117: echo "${ECHO_T}no" >&6
3118: fi
3119:
3120: test -n "$CC" && break
3121: done
3122: fi
3123: if test -z "$CC"; then
3124: ac_ct_CC=$CC
3125: for ac_prog in cl
3126: do
3127: # Extract the first word of "$ac_prog", so it can be a program name with args.
3128: set dummy $ac_prog; ac_word=$2
3129: echo "$as_me:$LINENO: checking for $ac_word" >&5
3130: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3132: echo $ECHO_N "(cached) $ECHO_C" >&6
3133: else
3134: if test -n "$ac_ct_CC"; then
3135: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136: else
3137: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138: for as_dir in $PATH
3139: do
3140: IFS=$as_save_IFS
3141: test -z "$as_dir" && as_dir=.
3142: for ac_exec_ext in '' $ac_executable_extensions; do
3143: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144: ac_cv_prog_ac_ct_CC="$ac_prog"
3145: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146: break 2
3147: fi
3148: done
3149: done
3150:
3151: fi
3152: fi
3153: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154: if test -n "$ac_ct_CC"; then
3155: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3156: echo "${ECHO_T}$ac_ct_CC" >&6
3157: else
3158: echo "$as_me:$LINENO: result: no" >&5
3159: echo "${ECHO_T}no" >&6
3160: fi
3161:
3162: test -n "$ac_ct_CC" && break
3163: done
3164:
3165: CC=$ac_ct_CC
3166: fi
3167:
3168: fi
3169:
3170:
3171: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3172: See \`config.log' for more details." >&5
3173: echo "$as_me: error: no acceptable C compiler found in \$PATH
3174: See \`config.log' for more details." >&2;}
3175: { (exit 1); exit 1; }; }
3176:
3177: # Provide some information about the compiler.
3178: echo "$as_me:$LINENO:" \
3179: "checking for C compiler version" >&5
3180: ac_compiler=`set X $ac_compile; echo $2`
3181: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3182: (eval $ac_compiler --version </dev/null >&5) 2>&5
3183: ac_status=$?
3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); }
3186: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3187: (eval $ac_compiler -v </dev/null >&5) 2>&5
3188: ac_status=$?
3189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190: (exit $ac_status); }
3191: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3192: (eval $ac_compiler -V </dev/null >&5) 2>&5
3193: ac_status=$?
3194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195: (exit $ac_status); }
3196:
3197: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3198: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3199: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3200: echo $ECHO_N "(cached) $ECHO_C" >&6
3201: else
3202: cat >conftest.$ac_ext <<_ACEOF
3203: /* confdefs.h. */
3204: _ACEOF
3205: cat confdefs.h >>conftest.$ac_ext
3206: cat >>conftest.$ac_ext <<_ACEOF
3207: /* end confdefs.h. */
3208:
3209: int
3210: main ()
3211: {
3212: #ifndef __GNUC__
3213: choke me
3214: #endif
3215:
3216: ;
3217: return 0;
3218: }
3219: _ACEOF
3220: rm -f conftest.$ac_objext
3221: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222: (eval $ac_compile) 2>conftest.er1
3223: ac_status=$?
3224: grep -v '^ *+' conftest.er1 >conftest.err
3225: rm -f conftest.er1
3226: cat conftest.err >&5
3227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228: (exit $ac_status); } &&
3229: { ac_try='test -z "$ac_c_werror_flag"
3230: || test ! -s conftest.err'
3231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232: (eval $ac_try) 2>&5
3233: ac_status=$?
3234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235: (exit $ac_status); }; } &&
3236: { ac_try='test -s conftest.$ac_objext'
3237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238: (eval $ac_try) 2>&5
3239: ac_status=$?
3240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241: (exit $ac_status); }; }; then
3242: ac_compiler_gnu=yes
3243: else
3244: echo "$as_me: failed program was:" >&5
3245: sed 's/^/| /' conftest.$ac_ext >&5
3246:
3247: ac_compiler_gnu=no
3248: fi
3249: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3251:
3252: fi
3253: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3254: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3255: GCC=`test $ac_compiler_gnu = yes && echo yes`
3256: ac_test_CFLAGS=${CFLAGS+set}
3257: ac_save_CFLAGS=$CFLAGS
3258: CFLAGS="-g"
3259: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3260: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3261: if test "${ac_cv_prog_cc_g+set}" = set; then
3262: echo $ECHO_N "(cached) $ECHO_C" >&6
3263: else
3264: cat >conftest.$ac_ext <<_ACEOF
3265: /* confdefs.h. */
3266: _ACEOF
3267: cat confdefs.h >>conftest.$ac_ext
3268: cat >>conftest.$ac_ext <<_ACEOF
3269: /* end confdefs.h. */
3270:
3271: int
3272: main ()
3273: {
3274:
3275: ;
3276: return 0;
3277: }
3278: _ACEOF
3279: rm -f conftest.$ac_objext
3280: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281: (eval $ac_compile) 2>conftest.er1
3282: ac_status=$?
3283: grep -v '^ *+' conftest.er1 >conftest.err
3284: rm -f conftest.er1
3285: cat conftest.err >&5
3286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287: (exit $ac_status); } &&
3288: { ac_try='test -z "$ac_c_werror_flag"
3289: || test ! -s conftest.err'
3290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291: (eval $ac_try) 2>&5
3292: ac_status=$?
3293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294: (exit $ac_status); }; } &&
3295: { ac_try='test -s conftest.$ac_objext'
3296: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297: (eval $ac_try) 2>&5
3298: ac_status=$?
3299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300: (exit $ac_status); }; }; then
3301: ac_cv_prog_cc_g=yes
3302: else
3303: echo "$as_me: failed program was:" >&5
3304: sed 's/^/| /' conftest.$ac_ext >&5
3305:
3306: ac_cv_prog_cc_g=no
3307: fi
3308: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309: fi
3310: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3311: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3312: if test "$ac_test_CFLAGS" = set; then
3313: CFLAGS=$ac_save_CFLAGS
3314: elif test $ac_cv_prog_cc_g = yes; then
3315: if test "$GCC" = yes; then
3316: CFLAGS="-g -O2"
3317: else
3318: CFLAGS="-g"
3319: fi
3320: else
3321: if test "$GCC" = yes; then
3322: CFLAGS="-O2"
3323: else
3324: CFLAGS=
3325: fi
3326: fi
3327: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3328: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3329: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3330: echo $ECHO_N "(cached) $ECHO_C" >&6
3331: else
3332: ac_cv_prog_cc_stdc=no
3333: ac_save_CC=$CC
3334: cat >conftest.$ac_ext <<_ACEOF
3335: /* confdefs.h. */
3336: _ACEOF
3337: cat confdefs.h >>conftest.$ac_ext
3338: cat >>conftest.$ac_ext <<_ACEOF
3339: /* end confdefs.h. */
3340: #include <stdarg.h>
3341: #include <stdio.h>
3342: #include <sys/types.h>
3343: #include <sys/stat.h>
3344: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345: struct buf { int x; };
3346: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347: static char *e (p, i)
3348: char **p;
3349: int i;
3350: {
3351: return p[i];
3352: }
3353: static char *f (char * (*g) (char **, int), char **p, ...)
3354: {
3355: char *s;
3356: va_list v;
3357: va_start (v,p);
3358: s = g (p, va_arg (v,int));
3359: va_end (v);
3360: return s;
3361: }
3362:
3363: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364: function prototypes and stuff, but not '\xHH' hex character constants.
3365: These don't provoke an error unfortunately, instead are silently treated
3366: as 'x'. The following induces an error, until -std1 is added to get
3367: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368: array size at least. It's necessary to write '\x00'==0 to get something
3369: that's true only with -std1. */
3370: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3371:
3372: int test (int i, double x);
3373: struct s1 {int (*f) (int a);};
3374: struct s2 {int (*f) (double a);};
3375: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376: int argc;
3377: char **argv;
3378: int
3379: main ()
3380: {
3381: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3382: ;
3383: return 0;
3384: }
3385: _ACEOF
3386: # Don't try gcc -ansi; that turns off useful extensions and
3387: # breaks some systems' header files.
3388: # AIX -qlanglvl=ansi
3389: # Ultrix and OSF/1 -std1
3390: # HP-UX 10.20 and later -Ae
3391: # HP-UX older versions -Aa -D_HPUX_SOURCE
3392: # SVR4 -Xc -D__EXTENSIONS__
3393: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394: do
3395: CC="$ac_save_CC $ac_arg"
3396: rm -f conftest.$ac_objext
3397: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398: (eval $ac_compile) 2>conftest.er1
3399: ac_status=$?
3400: grep -v '^ *+' conftest.er1 >conftest.err
3401: rm -f conftest.er1
3402: cat conftest.err >&5
3403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404: (exit $ac_status); } &&
3405: { ac_try='test -z "$ac_c_werror_flag"
3406: || test ! -s conftest.err'
3407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408: (eval $ac_try) 2>&5
3409: ac_status=$?
3410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411: (exit $ac_status); }; } &&
3412: { ac_try='test -s conftest.$ac_objext'
3413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414: (eval $ac_try) 2>&5
3415: ac_status=$?
3416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417: (exit $ac_status); }; }; then
3418: ac_cv_prog_cc_stdc=$ac_arg
3419: break
3420: else
3421: echo "$as_me: failed program was:" >&5
3422: sed 's/^/| /' conftest.$ac_ext >&5
3423:
3424: fi
3425: rm -f conftest.err conftest.$ac_objext
3426: done
3427: rm -f conftest.$ac_ext conftest.$ac_objext
3428: CC=$ac_save_CC
3429:
3430: fi
3431:
3432: case "x$ac_cv_prog_cc_stdc" in
3433: x|xno)
3434: echo "$as_me:$LINENO: result: none needed" >&5
3435: echo "${ECHO_T}none needed" >&6 ;;
3436: *)
3437: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3438: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3439: CC="$CC $ac_cv_prog_cc_stdc" ;;
3440: esac
3441:
3442: # Some people use a C++ compiler to compile C. Since we use `exit',
3443: # in C++ we need to declare it. In case someone uses the same compiler
3444: # for both compiling C and C++ we need to have the C++ compiler decide
3445: # the declaration of exit, since it's the most demanding environment.
3446: cat >conftest.$ac_ext <<_ACEOF
3447: #ifndef __cplusplus
3448: choke me
3449: #endif
3450: _ACEOF
3451: rm -f conftest.$ac_objext
3452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453: (eval $ac_compile) 2>conftest.er1
3454: ac_status=$?
3455: grep -v '^ *+' conftest.er1 >conftest.err
3456: rm -f conftest.er1
3457: cat conftest.err >&5
3458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459: (exit $ac_status); } &&
3460: { ac_try='test -z "$ac_c_werror_flag"
3461: || test ! -s conftest.err'
3462: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463: (eval $ac_try) 2>&5
3464: ac_status=$?
3465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466: (exit $ac_status); }; } &&
3467: { ac_try='test -s conftest.$ac_objext'
3468: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469: (eval $ac_try) 2>&5
3470: ac_status=$?
3471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472: (exit $ac_status); }; }; then
3473: for ac_declaration in \
3474: '' \
3475: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3476: 'extern "C" void std::exit (int); using std::exit;' \
3477: 'extern "C" void exit (int) throw ();' \
3478: 'extern "C" void exit (int);' \
3479: 'void exit (int);'
3480: do
3481: cat >conftest.$ac_ext <<_ACEOF
3482: /* confdefs.h. */
3483: _ACEOF
3484: cat confdefs.h >>conftest.$ac_ext
3485: cat >>conftest.$ac_ext <<_ACEOF
3486: /* end confdefs.h. */
3487: $ac_declaration
3488: #include <stdlib.h>
3489: int
3490: main ()
3491: {
3492: exit (42);
3493: ;
3494: return 0;
3495: }
3496: _ACEOF
3497: rm -f conftest.$ac_objext
3498: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499: (eval $ac_compile) 2>conftest.er1
3500: ac_status=$?
3501: grep -v '^ *+' conftest.er1 >conftest.err
3502: rm -f conftest.er1
3503: cat conftest.err >&5
3504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505: (exit $ac_status); } &&
3506: { ac_try='test -z "$ac_c_werror_flag"
3507: || test ! -s conftest.err'
3508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509: (eval $ac_try) 2>&5
3510: ac_status=$?
3511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512: (exit $ac_status); }; } &&
3513: { ac_try='test -s conftest.$ac_objext'
3514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515: (eval $ac_try) 2>&5
3516: ac_status=$?
3517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518: (exit $ac_status); }; }; then
3519: :
3520: else
3521: echo "$as_me: failed program was:" >&5
3522: sed 's/^/| /' conftest.$ac_ext >&5
3523:
3524: continue
3525: fi
3526: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527: cat >conftest.$ac_ext <<_ACEOF
3528: /* confdefs.h. */
3529: _ACEOF
3530: cat confdefs.h >>conftest.$ac_ext
3531: cat >>conftest.$ac_ext <<_ACEOF
3532: /* end confdefs.h. */
3533: $ac_declaration
3534: int
3535: main ()
3536: {
3537: exit (42);
3538: ;
3539: return 0;
3540: }
3541: _ACEOF
3542: rm -f conftest.$ac_objext
3543: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544: (eval $ac_compile) 2>conftest.er1
3545: ac_status=$?
3546: grep -v '^ *+' conftest.er1 >conftest.err
3547: rm -f conftest.er1
3548: cat conftest.err >&5
3549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550: (exit $ac_status); } &&
3551: { ac_try='test -z "$ac_c_werror_flag"
3552: || test ! -s conftest.err'
3553: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554: (eval $ac_try) 2>&5
3555: ac_status=$?
3556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557: (exit $ac_status); }; } &&
3558: { ac_try='test -s conftest.$ac_objext'
3559: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560: (eval $ac_try) 2>&5
3561: ac_status=$?
3562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563: (exit $ac_status); }; }; then
3564: break
3565: else
3566: echo "$as_me: failed program was:" >&5
3567: sed 's/^/| /' conftest.$ac_ext >&5
3568:
3569: fi
3570: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571: done
3572: rm -f conftest*
3573: if test -n "$ac_declaration"; then
3574: echo '#ifdef __cplusplus' >>confdefs.h
3575: echo $ac_declaration >>confdefs.h
3576: echo '#endif' >>confdefs.h
3577: fi
3578:
3579: else
3580: echo "$as_me: failed program was:" >&5
3581: sed 's/^/| /' conftest.$ac_ext >&5
3582:
3583: fi
3584: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585: ac_ext=c
3586: ac_cpp='$CPP $CPPFLAGS'
3587: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590:
3591: depcc="$CC" am_compiler_list=
3592:
3593: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3594: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3595: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3596: echo $ECHO_N "(cached) $ECHO_C" >&6
3597: else
3598: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3599: # We make a subdir and do the tests there. Otherwise we can end up
3600: # making bogus files that we don't know about and never remove. For
3601: # instance it was reported that on HP-UX the gcc test will end up
3602: # making a dummy file named `D' -- because `-MD' means `put the output
3603: # in D'.
3604: mkdir conftest.dir
3605: # Copy depcomp to subdir because otherwise we won't find it if we're
3606: # using a relative directory.
3607: cp "$am_depcomp" conftest.dir
3608: cd conftest.dir
3609: # We will build objects and dependencies in a subdirectory because
3610: # it helps to detect inapplicable dependency modes. For instance
3611: # both Tru64's cc and ICC support -MD to output dependencies as a
3612: # side effect of compilation, but ICC will put the dependencies in
3613: # the current directory while Tru64 will put them in the object
3614: # directory.
3615: mkdir sub
3616:
3617: am_cv_CC_dependencies_compiler_type=none
3618: if test "$am_compiler_list" = ""; then
3619: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3620: fi
3621: for depmode in $am_compiler_list; do
3622: # Setup a source with many dependencies, because some compilers
3623: # like to wrap large dependency lists on column 80 (with \), and
3624: # we should not choose a depcomp mode which is confused by this.
3625: #
3626: # We need to recreate these files for each test, as the compiler may
3627: # overwrite some of them when testing with obscure command lines.
3628: # This happens at least with the AIX C compiler.
3629: : > sub/conftest.c
3630: for i in 1 2 3 4 5 6; do
3631: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3632: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3633: # Solaris 8's {/usr,}/bin/sh.
3634: touch sub/conftst$i.h
3635: done
3636: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3637:
3638: case $depmode in
3639: nosideeffect)
3640: # after this tag, mechanisms are not by side-effect, so they'll
3641: # only be used when explicitly requested
3642: if test "x$enable_dependency_tracking" = xyes; then
3643: continue
3644: else
3645: break
3646: fi
3647: ;;
3648: none) break ;;
3649: esac
3650: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3651: # mode. It turns out that the SunPro C++ compiler does not properly
3652: # handle `-M -o', and we need to detect this.
3653: if depmode=$depmode \
3654: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3655: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3656: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3657: >/dev/null 2>conftest.err &&
3658: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3659: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3660: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3661: # icc doesn't choke on unknown options, it will just issue warnings
3662: # or remarks (even with -Werror). So we grep stderr for any message
3663: # that says an option was ignored or not supported.
3664: # When given -MP, icc 7.0 and 7.1 complain thusly:
3665: # icc: Command line warning: ignoring option '-M'; no argument required
3666: # The diagnosis changed in icc 8.0:
3667: # icc: Command line remark: option '-MP' not supported
3668: if (grep 'ignoring option' conftest.err ||
3669: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3670: am_cv_CC_dependencies_compiler_type=$depmode
3671: break
3672: fi
3673: fi
3674: done
3675:
3676: cd ..
3677: rm -rf conftest.dir
3678: else
3679: am_cv_CC_dependencies_compiler_type=none
3680: fi
3681:
3682: fi
3683: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3684: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3685: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3686:
3687:
3688:
3689: if
3690: test "x$enable_dependency_tracking" != xno \
3691: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692: am__fastdepCC_TRUE=
3693: am__fastdepCC_FALSE='#'
3694: else
3695: am__fastdepCC_TRUE='#'
3696: am__fastdepCC_FALSE=
3697: fi
3698:
3699:
3700:
3701: ac_ext=c
3702: ac_cpp='$CPP $CPPFLAGS'
3703: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706:
3707:
3708: case $enable_ltdl_convenience in
3709: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3710: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3711: { (exit 1); exit 1; }; } ;;
3712: "") enable_ltdl_convenience=yes
3713: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3714: esac
3715: LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3716: LTDLINCL='-I${top_srcdir}/''libltdl'
3717: # For backwards non-gettext consistent compatibility...
3718: INCLTDL="$LTDLINCL"
3719:
3720:
3721:
3722:
3723: # Check whether --enable-static or --disable-static was given.
3724: if test "${enable_static+set}" = set; then
3725: enableval="$enable_static"
3726: p=${PACKAGE-default}
3727: case $enableval in
3728: yes) enable_static=yes ;;
3729: no) enable_static=no ;;
3730: *)
3731: enable_static=no
3732: # Look at the argument we got. We use all the common list separators.
3733: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3734: for pkg in $enableval; do
3735: if test "X$pkg" = "X$p"; then
3736: enable_static=yes
3737: fi
3738: done
3739: IFS="$ac_save_ifs"
3740: ;;
3741: esac
3742: else
3743: enable_static=no
3744: fi;
3745:
3746: # Check whether --enable-shared or --disable-shared was given.
3747: if test "${enable_shared+set}" = set; then
3748: enableval="$enable_shared"
3749: p=${PACKAGE-default}
3750: case $enableval in
3751: yes) enable_shared=yes ;;
3752: no) enable_shared=no ;;
3753: *)
3754: enable_shared=no
3755: # Look at the argument we got. We use all the common list separators.
3756: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3757: for pkg in $enableval; do
3758: if test "X$pkg" = "X$p"; then
3759: enable_shared=yes
3760: fi
3761: done
3762: IFS="$ac_save_ifs"
3763: ;;
3764: esac
3765: else
3766: enable_shared=yes
3767: fi;
3768: # Check whether --enable-fast-install or --disable-fast-install was given.
3769: if test "${enable_fast_install+set}" = set; then
3770: enableval="$enable_fast_install"
3771: p=${PACKAGE-default}
3772: case $enableval in
3773: yes) enable_fast_install=yes ;;
3774: no) enable_fast_install=no ;;
3775: *)
3776: enable_fast_install=no
3777: # Look at the argument we got. We use all the common list separators.
3778: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3779: for pkg in $enableval; do
3780: if test "X$pkg" = "X$p"; then
3781: enable_fast_install=yes
3782: fi
3783: done
3784: IFS="$ac_save_ifs"
3785: ;;
3786: esac
3787: else
3788: enable_fast_install=yes
3789: fi;
3790: # Make sure we can run config.sub.
3791: $ac_config_sub sun4 >/dev/null 2>&1 ||
3792: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3793: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3794: { (exit 1); exit 1; }; }
3795:
3796: echo "$as_me:$LINENO: checking build system type" >&5
3797: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3798: if test "${ac_cv_build+set}" = set; then
3799: echo $ECHO_N "(cached) $ECHO_C" >&6
3800: else
3801: ac_cv_build_alias=$build_alias
3802: test -z "$ac_cv_build_alias" &&
3803: ac_cv_build_alias=`$ac_config_guess`
3804: test -z "$ac_cv_build_alias" &&
3805: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3806: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3807: { (exit 1); exit 1; }; }
3808: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3809: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3810: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3811: { (exit 1); exit 1; }; }
3812:
3813: fi
3814: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3815: echo "${ECHO_T}$ac_cv_build" >&6
3816: build=$ac_cv_build
3817: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3818: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3819: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3820:
3821:
3822: echo "$as_me:$LINENO: checking host system type" >&5
3823: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3824: if test "${ac_cv_host+set}" = set; then
3825: echo $ECHO_N "(cached) $ECHO_C" >&6
3826: else
3827: ac_cv_host_alias=$host_alias
3828: test -z "$ac_cv_host_alias" &&
3829: ac_cv_host_alias=$ac_cv_build_alias
3830: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3831: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3832: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3833: { (exit 1); exit 1; }; }
3834:
3835: fi
3836: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3837: echo "${ECHO_T}$ac_cv_host" >&6
3838: host=$ac_cv_host
3839: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3840: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3841: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3842:
3843:
3844: # Find the correct PATH separator. Usually this is `:', but
3845: # DJGPP uses `;' like DOS.
3846: if test "X${PATH_SEPARATOR+set}" != Xset; then
3847: UNAME=${UNAME-`uname 2>/dev/null`}
3848: case X$UNAME in
3849: *-DOS) lt_cv_sys_path_separator=';' ;;
3850: *) lt_cv_sys_path_separator=':' ;;
3851: esac
3852: PATH_SEPARATOR=$lt_cv_sys_path_separator
3853: fi
3854:
3855:
3856: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3857: if test "${with_gnu_ld+set}" = set; then
3858: withval="$with_gnu_ld"
3859: test "$withval" = no || with_gnu_ld=yes
3860: else
3861: with_gnu_ld=no
3862: fi;
3863: ac_prog=ld
3864: if test "$GCC" = yes; then
3865: # Check if gcc -print-prog-name=ld gives a path.
3866: echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3867: echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3868: case $host in
3869: *-*-mingw*)
3870: # gcc leaves a trailing carriage return which upsets mingw
3871: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3872: *)
3873: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3874: esac
3875: case $ac_prog in
3876: # Accept absolute paths.
3877: [\\/]* | [A-Za-z]:[\\/]*)
3878: re_direlt='/[^/][^/]*/\.\./'
3879: # Canonicalize the path of ld
3880: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3881: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3882: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3883: done
3884: test -z "$LD" && LD="$ac_prog"
3885: ;;
3886: "")
3887: # If it fails, then pretend we aren't using GCC.
3888: ac_prog=ld
3889: ;;
3890: *)
3891: # If it is relative, then search for the first ld in PATH.
3892: with_gnu_ld=unknown
3893: ;;
3894: esac
3895: elif test "$with_gnu_ld" = yes; then
3896: echo "$as_me:$LINENO: checking for GNU ld" >&5
3897: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3898: else
3899: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3900: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3901: fi
3902: if test "${lt_cv_path_LD+set}" = set; then
3903: echo $ECHO_N "(cached) $ECHO_C" >&6
3904: else
3905: if test -z "$LD"; then
3906: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3907: for ac_dir in $PATH; do
3908: test -z "$ac_dir" && ac_dir=.
3909: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3910: lt_cv_path_LD="$ac_dir/$ac_prog"
3911: # Check to see if the program is GNU ld. I'd rather use --version,
3912: # but apparently some GNU ld's only accept -v.
3913: # Break only if it was the GNU/non-GNU ld that we prefer.
3914: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3915: test "$with_gnu_ld" != no && break
3916: else
3917: test "$with_gnu_ld" != yes && break
3918: fi
3919: fi
3920: done
3921: IFS="$ac_save_ifs"
3922: else
3923: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3924: fi
3925: fi
3926:
3927: LD="$lt_cv_path_LD"
3928: if test -n "$LD"; then
3929: echo "$as_me:$LINENO: result: $LD" >&5
3930: echo "${ECHO_T}$LD" >&6
3931: else
3932: echo "$as_me:$LINENO: result: no" >&5
3933: echo "${ECHO_T}no" >&6
3934: fi
3935: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3936: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3937: { (exit 1); exit 1; }; }
3938: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3939: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3940: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3941: echo $ECHO_N "(cached) $ECHO_C" >&6
3942: else
3943: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3944: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3945: lt_cv_prog_gnu_ld=yes
3946: else
3947: lt_cv_prog_gnu_ld=no
3948: fi
3949: fi
3950: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3951: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3952: with_gnu_ld=$lt_cv_prog_gnu_ld
3953:
3954:
3955: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3956: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3957: if test "${lt_cv_ld_reload_flag+set}" = set; then
3958: echo $ECHO_N "(cached) $ECHO_C" >&6
3959: else
3960: lt_cv_ld_reload_flag='-r'
3961: fi
3962: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3963: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3964: reload_flag=$lt_cv_ld_reload_flag
3965: test -n "$reload_flag" && reload_flag=" $reload_flag"
3966:
3967: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3968: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3969: if test "${lt_cv_path_NM+set}" = set; then
3970: echo $ECHO_N "(cached) $ECHO_C" >&6
3971: else
3972: if test -n "$NM"; then
3973: # Let the user override the test.
3974: lt_cv_path_NM="$NM"
3975: else
3976: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3977: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3978: test -z "$ac_dir" && ac_dir=.
3979: tmp_nm=$ac_dir/${ac_tool_prefix}nm
3980: if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3981: # Check to see if the nm accepts a BSD-compat flag.
3982: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3983: # nm: unknown option "B" ignored
3984: # Tru64's nm complains that /dev/null is an invalid object file
3985: if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3986: lt_cv_path_NM="$tmp_nm -B"
3987: break
3988: elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3989: lt_cv_path_NM="$tmp_nm -p"
3990: break
3991: else
3992: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3993: continue # so that we can try to find one that supports BSD flags
3994: fi
3995: fi
3996: done
3997: IFS="$ac_save_ifs"
3998: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3999: fi
4000: fi
4001:
4002: NM="$lt_cv_path_NM"
4003: echo "$as_me:$LINENO: result: $NM" >&5
4004: echo "${ECHO_T}$NM" >&6
4005:
4006: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4007: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4008: if test "${lt_cv_path_SED+set}" = set; then
4009: echo $ECHO_N "(cached) $ECHO_C" >&6
4010: else
4011: # Loop through the user's path and test for sed and gsed.
4012: # Then use that list of sed's as ones to test for truncation.
4013: as_executable_p="test -f"
4014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015: for as_dir in $PATH
4016: do
4017: IFS=$as_save_IFS
4018: test -z "$as_dir" && as_dir=.
4019: for ac_prog in sed gsed; do
4020: for ac_exec_ext in '' $ac_executable_extensions; do
4021: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4022: _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4023: fi
4024: done
4025: done
4026: done
4027:
4028: # Create a temporary directory, and hook for its removal unless debugging.
4029: $debug ||
4030: {
4031: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4032: trap '{ (exit 1); exit 1; }' 1 2 13 15
4033: }
4034:
4035: # Create a (secure) tmp directory for tmp files.
4036: : ${TMPDIR=/tmp}
4037: {
4038: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4039: test -n "$tmp" && test -d "$tmp"
4040: } ||
4041: {
4042: tmp=$TMPDIR/sed$$-$RANDOM
4043: (umask 077 && mkdir $tmp)
4044: } ||
4045: {
4046: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4047: { (exit 1); exit 1; }
4048: }
4049: _max=0
4050: _count=0
4051: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4052: # along with /bin/sed that truncates output.
4053: for _sed in $_sed_list /usr/xpg4/bin/sed; do
4054: test ! -f ${_sed} && break
4055: cat /dev/null > "$tmp/sed.in"
4056: _count=0
4057: echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4058: # Check for GNU sed and select it if it is found.
4059: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4060: lt_cv_path_SED=${_sed}
4061: break
4062: fi
4063: while true; do
4064: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4065: mv "$tmp/sed.tmp" "$tmp/sed.in"
4066: cp "$tmp/sed.in" "$tmp/sed.nl"
4067: echo >>"$tmp/sed.nl"
4068: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4069: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4070: # 40000 chars as input seems more than enough
4071: test $_count -gt 10 && break
4072: _count=`expr $_count + 1`
4073: if test $_count -gt $_max; then
4074: _max=$_count
4075: lt_cv_path_SED=$_sed
4076: fi
4077: done
4078: done
4079: rm -rf "$tmp"
4080:
4081: fi
4082:
4083: if test "X$SED" != "X"; then
4084: lt_cv_path_SED=$SED
4085: else
4086: SED=$lt_cv_path_SED
4087: fi
4088: echo "$as_me:$LINENO: result: $SED" >&5
4089: echo "${ECHO_T}$SED" >&6
4090:
4091: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4092: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4093: LN_S=$as_ln_s
4094: if test "$LN_S" = "ln -s"; then
4095: echo "$as_me:$LINENO: result: yes" >&5
4096: echo "${ECHO_T}yes" >&6
4097: else
4098: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4099: echo "${ECHO_T}no, using $LN_S" >&6
4100: fi
4101:
4102: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4103: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4104: if test "${lt_cv_deplibs_check_method+set}" = set; then
4105: echo $ECHO_N "(cached) $ECHO_C" >&6
4106: else
4107: lt_cv_file_magic_cmd='$MAGIC_CMD'
4108: lt_cv_file_magic_test_file=
4109: lt_cv_deplibs_check_method='unknown'
4110: # Need to set the preceding variable on all platforms that support
4111: # interlibrary dependencies.
4112: # 'none' -- dependencies not supported.
4113: # `unknown' -- same as none, but documents that we really don't know.
4114: # 'pass_all' -- all dependencies passed with no checks.
4115: # 'test_compile' -- check by making test program.
4116: # 'file_magic [[regex]]' -- check by looking for files in library path
4117: # which responds to the $file_magic_cmd with a given egrep regex.
4118: # If you have `file' or equivalent on your system and you're not sure
4119: # whether `pass_all' will *always* work, you probably want this one.
4120:
4121: case $host_os in
4122: aix4* | aix5*)
4123: lt_cv_deplibs_check_method=pass_all
4124: ;;
4125:
4126: beos*)
4127: lt_cv_deplibs_check_method=pass_all
4128: ;;
4129:
4130: bsdi4*)
4131: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4132: lt_cv_file_magic_cmd='/usr/bin/file -L'
4133: lt_cv_file_magic_test_file=/shlib/libc.so
4134: ;;
4135:
4136: cygwin* | mingw* | pw32*)
4137: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4138: lt_cv_file_magic_cmd='$OBJDUMP -f'
4139: ;;
4140:
4141: darwin* | rhapsody*)
4142: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4143: lt_cv_file_magic_cmd='/usr/bin/file -L'
4144: case "$host_os" in
4145: rhapsody* | darwin1.[012])
4146: lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4147: ;;
4148: *) # Darwin 1.3 on
4149: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4150: ;;
4151: esac
4152: ;;
4153:
4154: freebsd*)
4155: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4156: case $host_cpu in
4157: i*86 )
4158: # Not sure whether the presence of OpenBSD here was a mistake.
4159: # Let's accept both of them until this is cleared up.
4160: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4161: lt_cv_file_magic_cmd=/usr/bin/file
4162: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4163: ;;
4164: esac
4165: else
4166: lt_cv_deplibs_check_method=pass_all
4167: fi
4168: ;;
4169:
4170: gnu*)
4171: lt_cv_deplibs_check_method=pass_all
4172: ;;
4173:
4174: hpux10.20*|hpux11*)
4175: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4176: lt_cv_file_magic_cmd=/usr/bin/file
4177: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4178: ;;
4179:
4180: irix5* | irix6* | nonstopux*)
4181: case $host_os in
4182: irix5* | nonstopux*)
4183: # this will be overridden with pass_all, but let us keep it just in case
4184: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4185: ;;
4186: *)
4187: case $LD in
4188: *-32|*"-32 ") libmagic=32-bit;;
4189: *-n32|*"-n32 ") libmagic=N32;;
4190: *-64|*"-64 ") libmagic=64-bit;;
4191: *) libmagic=never-match;;
4192: esac
4193: # this will be overridden with pass_all, but let us keep it just in case
4194: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4195: ;;
4196: esac
4197: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4198: lt_cv_deplibs_check_method=pass_all
4199: ;;
4200:
4201: # This must be Linux ELF.
4202: linux-gnu*)
4203: case $host_cpu in
4204: alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4205: lt_cv_deplibs_check_method=pass_all ;;
4206: *)
4207: # glibc up to 2.1.1 does not perform some relocations on ARM
4208: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4209: esac
4210: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4211: ;;
4212:
4213: netbsd*)
4214: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4215: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4216: else
4217: lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4218: fi
4219: ;;
4220:
4221: newos6*)
4222: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4223: lt_cv_file_magic_cmd=/usr/bin/file
4224: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4225: ;;
4226:
4227: openbsd*)
4228: lt_cv_file_magic_cmd=/usr/bin/file
4229: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4230: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4231: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4232: else
4233: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4234: fi
4235: ;;
4236:
4237: osf3* | osf4* | osf5*)
4238: # this will be overridden with pass_all, but let us keep it just in case
4239: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4240: lt_cv_file_magic_test_file=/shlib/libc.so
4241: lt_cv_deplibs_check_method=pass_all
4242: ;;
4243:
4244: sco3.2v5*)
4245: lt_cv_deplibs_check_method=pass_all
4246: ;;
4247:
4248: solaris*)
4249: lt_cv_deplibs_check_method=pass_all
4250: lt_cv_file_magic_test_file=/lib/libc.so
4251: ;;
4252:
4253: sysv5uw[78]* | sysv4*uw2*)
4254: lt_cv_deplibs_check_method=pass_all
4255: ;;
4256:
4257: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4258: case $host_vendor in
4259: motorola)
4260: 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]'
4261: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4262: ;;
4263: ncr)
4264: lt_cv_deplibs_check_method=pass_all
4265: ;;
4266: sequent)
4267: lt_cv_file_magic_cmd='/bin/file'
4268: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4269: ;;
4270: sni)
4271: lt_cv_file_magic_cmd='/bin/file'
4272: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4273: lt_cv_file_magic_test_file=/lib/libc.so
4274: ;;
4275: siemens)
4276: lt_cv_deplibs_check_method=pass_all
4277: ;;
4278: esac
4279: ;;
4280: esac
4281:
4282: fi
4283: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4284: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4285: file_magic_cmd=$lt_cv_file_magic_cmd
4286: deplibs_check_method=$lt_cv_deplibs_check_method
4287:
4288:
4289:
4290:
4291:
4292:
4293:
4294:
4295: # Check for command to grab the raw symbol name followed by C symbol from nm.
4296: echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4297: echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4298: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4299: echo $ECHO_N "(cached) $ECHO_C" >&6
4300: else
4301:
4302: # These are sane defaults that work on at least a few old systems.
4303: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4304:
4305: # Character class describing NM global symbol codes.
4306: symcode='[BCDEGRST]'
4307:
4308: # Regexp to match symbols that can be accessed directly from C.
4309: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4310:
4311: # Transform the above into a raw symbol and a C symbol.
4312: symxfrm='\1 \2\3 \3'
4313:
4314: # Transform an extracted symbol line into a proper C declaration
4315: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4316:
4317: # Transform an extracted symbol line into symbol name and symbol address
4318: 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'"
4319:
4320: # Define system-specific variables.
4321: case $host_os in
4322: aix*)
4323: symcode='[BCDT]'
4324: ;;
4325: cygwin* | mingw* | pw32*)
4326: symcode='[ABCDGISTW]'
4327: ;;
4328: hpux*) # Its linker distinguishes data from code symbols
4329: lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4330: 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'"
4331: ;;
4332: irix* | nonstopux*)
4333: symcode='[BCDEGRST]'
4334: ;;
4335: osf*)
4336: symcode='[BCDEGQRST]'
4337: ;;
4338: solaris* | sysv5*)
4339: symcode='[BDT]'
4340: ;;
4341: sysv4)
4342: symcode='[DFNSTU]'
4343: ;;
4344: esac
4345:
4346: # Handle CRLF in mingw tool chain
4347: opt_cr=
4348: case $host_os in
4349: mingw*)
4350: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4351: ;;
4352: esac
4353:
4354: # If we're using GNU nm, then use its standard symbol codes.
4355: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4356: symcode='[ABCDGISTW]'
4357: fi
4358:
4359: # Try without a prefix undercore, then with it.
4360: for ac_symprfx in "" "_"; do
4361:
4362: # Write the raw and C identifiers.
4363: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4364:
4365: # Check to see that the pipe works correctly.
4366: pipe_works=no
4367: rm -f conftest*
4368: cat > conftest.$ac_ext <<EOF
4369: #ifdef __cplusplus
4370: extern "C" {
4371: #endif
4372: char nm_test_var;
4373: void nm_test_func(){}
4374: #ifdef __cplusplus
4375: }
4376: #endif
4377: int main(){nm_test_var='a';nm_test_func();return(0);}
4378: EOF
4379:
4380: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381: (eval $ac_compile) 2>&5
4382: ac_status=$?
4383: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384: (exit $ac_status); }; then
4385: # Now try to grab the symbols.
4386: nlist=conftest.nm
4387: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4388: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4389: ac_status=$?
4390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391: (exit $ac_status); } && test -s "$nlist"; then
4392: # Try sorting and uniquifying the output.
4393: if sort "$nlist" | uniq > "$nlist"T; then
4394: mv -f "$nlist"T "$nlist"
4395: else
4396: rm -f "$nlist"T
4397: fi
4398:
4399: # Make sure that we snagged all the symbols we need.
4400: if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4401: if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4402: cat <<EOF > conftest.$ac_ext
4403: #ifdef __cplusplus
4404: extern "C" {
4405: #endif
4406:
4407: EOF
4408: # Now generate the symbol file.
4409: eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4410:
4411: cat <<EOF >> conftest.$ac_ext
4412: #if defined (__STDC__) && __STDC__
4413: # define lt_ptr void *
4414: #else
4415: # define lt_ptr char *
4416: # define const
4417: #endif
4418:
4419: /* The mapping between symbol names and symbols. */
4420: const struct {
4421: const char *name;
4422: lt_ptr address;
4423: }
4424: lt_preloaded_symbols[] =
4425: {
4426: EOF
4427: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4428: cat <<\EOF >> conftest.$ac_ext
4429: {0, (lt_ptr) 0}
4430: };
4431:
4432: #ifdef __cplusplus
4433: }
4434: #endif
4435: EOF
4436: # Now try linking the two files.
4437: mv conftest.$ac_objext conftstm.$ac_objext
4438: save_LIBS="$LIBS"
4439: save_CFLAGS="$CFLAGS"
4440: LIBS="conftstm.$ac_objext"
4441: CFLAGS="$CFLAGS$no_builtin_flag"
4442: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443: (eval $ac_link) 2>&5
4444: ac_status=$?
4445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446: (exit $ac_status); } && test -s conftest$ac_exeext; then
4447: pipe_works=yes
4448: fi
4449: LIBS="$save_LIBS"
4450: CFLAGS="$save_CFLAGS"
4451: else
4452: echo "cannot find nm_test_func in $nlist" >&5
4453: fi
4454: else
4455: echo "cannot find nm_test_var in $nlist" >&5
4456: fi
4457: else
4458: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4459: fi
4460: else
4461: echo "$progname: failed program was:" >&5
4462: cat conftest.$ac_ext >&5
4463: fi
4464: rm -f conftest* conftst*
4465:
4466: # Do not use the global_symbol_pipe unless it works.
4467: if test "$pipe_works" = yes; then
4468: break
4469: else
4470: lt_cv_sys_global_symbol_pipe=
4471: fi
4472: done
4473:
4474: fi
4475:
4476: global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4477: if test -z "$lt_cv_sys_global_symbol_pipe"; then
4478: global_symbol_to_cdecl=
4479: global_symbol_to_c_name_address=
4480: else
4481: global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4482: global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4483: fi
4484: if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4485: then
4486: echo "$as_me:$LINENO: result: failed" >&5
4487: echo "${ECHO_T}failed" >&6
4488: else
4489: echo "$as_me:$LINENO: result: ok" >&5
4490: echo "${ECHO_T}ok" >&6
4491: fi
4492:
4493: ac_ext=c
4494: ac_cpp='$CPP $CPPFLAGS'
4495: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4498: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4499: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4500: # On Suns, sometimes $CPP names a directory.
4501: if test -n "$CPP" && test -d "$CPP"; then
4502: CPP=
4503: fi
4504: if test -z "$CPP"; then
4505: if test "${ac_cv_prog_CPP+set}" = set; then
4506: echo $ECHO_N "(cached) $ECHO_C" >&6
4507: else
4508: # Double quotes because CPP needs to be expanded
4509: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4510: do
4511: ac_preproc_ok=false
4512: for ac_c_preproc_warn_flag in '' yes
4513: do
4514: # Use a header file that comes with gcc, so configuring glibc
4515: # with a fresh cross-compiler works.
4516: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4517: # <limits.h> exists even on freestanding compilers.
4518: # On the NeXT, cc -E runs the code through the compiler's parser,
4519: # not just through cpp. "Syntax error" is here to catch this case.
4520: cat >conftest.$ac_ext <<_ACEOF
4521: /* confdefs.h. */
4522: _ACEOF
4523: cat confdefs.h >>conftest.$ac_ext
4524: cat >>conftest.$ac_ext <<_ACEOF
4525: /* end confdefs.h. */
4526: #ifdef __STDC__
4527: # include <limits.h>
4528: #else
4529: # include <assert.h>
4530: #endif
4531: Syntax error
4532: _ACEOF
4533: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4534: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4535: ac_status=$?
4536: grep -v '^ *+' conftest.er1 >conftest.err
4537: rm -f conftest.er1
4538: cat conftest.err >&5
4539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540: (exit $ac_status); } >/dev/null; then
4541: if test -s conftest.err; then
4542: ac_cpp_err=$ac_c_preproc_warn_flag
4543: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4544: else
4545: ac_cpp_err=
4546: fi
4547: else
4548: ac_cpp_err=yes
4549: fi
4550: if test -z "$ac_cpp_err"; then
4551: :
4552: else
4553: echo "$as_me: failed program was:" >&5
4554: sed 's/^/| /' conftest.$ac_ext >&5
4555:
4556: # Broken: fails on valid input.
4557: continue
4558: fi
4559: rm -f conftest.err conftest.$ac_ext
4560:
4561: # OK, works on sane cases. Now check whether non-existent headers
4562: # can be detected and how.
4563: cat >conftest.$ac_ext <<_ACEOF
4564: /* confdefs.h. */
4565: _ACEOF
4566: cat confdefs.h >>conftest.$ac_ext
4567: cat >>conftest.$ac_ext <<_ACEOF
4568: /* end confdefs.h. */
4569: #include <ac_nonexistent.h>
4570: _ACEOF
4571: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4572: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4573: ac_status=$?
4574: grep -v '^ *+' conftest.er1 >conftest.err
4575: rm -f conftest.er1
4576: cat conftest.err >&5
4577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578: (exit $ac_status); } >/dev/null; then
4579: if test -s conftest.err; then
4580: ac_cpp_err=$ac_c_preproc_warn_flag
4581: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4582: else
4583: ac_cpp_err=
4584: fi
4585: else
4586: ac_cpp_err=yes
4587: fi
4588: if test -z "$ac_cpp_err"; then
4589: # Broken: success on invalid input.
4590: continue
4591: else
4592: echo "$as_me: failed program was:" >&5
4593: sed 's/^/| /' conftest.$ac_ext >&5
4594:
4595: # Passes both tests.
4596: ac_preproc_ok=:
4597: break
4598: fi
4599: rm -f conftest.err conftest.$ac_ext
4600:
4601: done
4602: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603: rm -f conftest.err conftest.$ac_ext
4604: if $ac_preproc_ok; then
4605: break
4606: fi
4607:
4608: done
4609: ac_cv_prog_CPP=$CPP
4610:
4611: fi
4612: CPP=$ac_cv_prog_CPP
4613: else
4614: ac_cv_prog_CPP=$CPP
4615: fi
4616: echo "$as_me:$LINENO: result: $CPP" >&5
4617: echo "${ECHO_T}$CPP" >&6
4618: ac_preproc_ok=false
4619: for ac_c_preproc_warn_flag in '' yes
4620: do
4621: # Use a header file that comes with gcc, so configuring glibc
4622: # with a fresh cross-compiler works.
4623: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624: # <limits.h> exists even on freestanding compilers.
4625: # On the NeXT, cc -E runs the code through the compiler's parser,
4626: # not just through cpp. "Syntax error" is here to catch this case.
4627: cat >conftest.$ac_ext <<_ACEOF
4628: /* confdefs.h. */
4629: _ACEOF
4630: cat confdefs.h >>conftest.$ac_ext
4631: cat >>conftest.$ac_ext <<_ACEOF
4632: /* end confdefs.h. */
4633: #ifdef __STDC__
4634: # include <limits.h>
4635: #else
4636: # include <assert.h>
4637: #endif
4638: Syntax error
4639: _ACEOF
4640: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642: ac_status=$?
4643: grep -v '^ *+' conftest.er1 >conftest.err
4644: rm -f conftest.er1
4645: cat conftest.err >&5
4646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647: (exit $ac_status); } >/dev/null; then
4648: if test -s conftest.err; then
4649: ac_cpp_err=$ac_c_preproc_warn_flag
4650: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4651: else
4652: ac_cpp_err=
4653: fi
4654: else
4655: ac_cpp_err=yes
4656: fi
4657: if test -z "$ac_cpp_err"; then
4658: :
4659: else
4660: echo "$as_me: failed program was:" >&5
4661: sed 's/^/| /' conftest.$ac_ext >&5
4662:
4663: # Broken: fails on valid input.
4664: continue
4665: fi
4666: rm -f conftest.err conftest.$ac_ext
4667:
4668: # OK, works on sane cases. Now check whether non-existent headers
4669: # can be detected and how.
4670: cat >conftest.$ac_ext <<_ACEOF
4671: /* confdefs.h. */
4672: _ACEOF
4673: cat confdefs.h >>conftest.$ac_ext
4674: cat >>conftest.$ac_ext <<_ACEOF
4675: /* end confdefs.h. */
4676: #include <ac_nonexistent.h>
4677: _ACEOF
4678: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4679: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4680: ac_status=$?
4681: grep -v '^ *+' conftest.er1 >conftest.err
4682: rm -f conftest.er1
4683: cat conftest.err >&5
4684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685: (exit $ac_status); } >/dev/null; then
4686: if test -s conftest.err; then
4687: ac_cpp_err=$ac_c_preproc_warn_flag
4688: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4689: else
4690: ac_cpp_err=
4691: fi
4692: else
4693: ac_cpp_err=yes
4694: fi
4695: if test -z "$ac_cpp_err"; then
4696: # Broken: success on invalid input.
4697: continue
4698: else
4699: echo "$as_me: failed program was:" >&5
4700: sed 's/^/| /' conftest.$ac_ext >&5
4701:
4702: # Passes both tests.
4703: ac_preproc_ok=:
4704: break
4705: fi
4706: rm -f conftest.err conftest.$ac_ext
4707:
4708: done
4709: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710: rm -f conftest.err conftest.$ac_ext
4711: if $ac_preproc_ok; then
4712: :
4713: else
4714: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4715: See \`config.log' for more details." >&5
4716: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4717: See \`config.log' for more details." >&2;}
4718: { (exit 1); exit 1; }; }
4719: fi
4720:
4721: ac_ext=c
4722: ac_cpp='$CPP $CPPFLAGS'
4723: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726:
4727:
4728: echo "$as_me:$LINENO: checking for egrep" >&5
4729: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4730: if test "${ac_cv_prog_egrep+set}" = set; then
4731: echo $ECHO_N "(cached) $ECHO_C" >&6
4732: else
4733: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4734: then ac_cv_prog_egrep='grep -E'
4735: else ac_cv_prog_egrep='egrep'
4736: fi
4737: fi
4738: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4739: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4740: EGREP=$ac_cv_prog_egrep
4741:
4742:
4743: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4744: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4745: if test "${ac_cv_header_stdc+set}" = set; then
4746: echo $ECHO_N "(cached) $ECHO_C" >&6
4747: else
4748: cat >conftest.$ac_ext <<_ACEOF
4749: /* confdefs.h. */
4750: _ACEOF
4751: cat confdefs.h >>conftest.$ac_ext
4752: cat >>conftest.$ac_ext <<_ACEOF
4753: /* end confdefs.h. */
4754: #include <stdlib.h>
4755: #include <stdarg.h>
4756: #include <string.h>
4757: #include <float.h>
4758:
4759: int
4760: main ()
4761: {
4762:
4763: ;
4764: return 0;
4765: }
4766: _ACEOF
4767: rm -f conftest.$ac_objext
4768: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769: (eval $ac_compile) 2>conftest.er1
4770: ac_status=$?
4771: grep -v '^ *+' conftest.er1 >conftest.err
4772: rm -f conftest.er1
4773: cat conftest.err >&5
4774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775: (exit $ac_status); } &&
4776: { ac_try='test -z "$ac_c_werror_flag"
4777: || test ! -s conftest.err'
4778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779: (eval $ac_try) 2>&5
4780: ac_status=$?
4781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782: (exit $ac_status); }; } &&
4783: { ac_try='test -s conftest.$ac_objext'
4784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785: (eval $ac_try) 2>&5
4786: ac_status=$?
4787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788: (exit $ac_status); }; }; then
4789: ac_cv_header_stdc=yes
4790: else
4791: echo "$as_me: failed program was:" >&5
4792: sed 's/^/| /' conftest.$ac_ext >&5
4793:
4794: ac_cv_header_stdc=no
4795: fi
4796: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797:
4798: if test $ac_cv_header_stdc = yes; then
4799: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4800: cat >conftest.$ac_ext <<_ACEOF
4801: /* confdefs.h. */
4802: _ACEOF
4803: cat confdefs.h >>conftest.$ac_ext
4804: cat >>conftest.$ac_ext <<_ACEOF
4805: /* end confdefs.h. */
4806: #include <string.h>
4807:
4808: _ACEOF
4809: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810: $EGREP "memchr" >/dev/null 2>&1; then
4811: :
4812: else
4813: ac_cv_header_stdc=no
4814: fi
4815: rm -f conftest*
4816:
4817: fi
4818:
4819: if test $ac_cv_header_stdc = yes; then
4820: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821: cat >conftest.$ac_ext <<_ACEOF
4822: /* confdefs.h. */
4823: _ACEOF
4824: cat confdefs.h >>conftest.$ac_ext
4825: cat >>conftest.$ac_ext <<_ACEOF
4826: /* end confdefs.h. */
4827: #include <stdlib.h>
4828:
4829: _ACEOF
4830: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831: $EGREP "free" >/dev/null 2>&1; then
4832: :
4833: else
4834: ac_cv_header_stdc=no
4835: fi
4836: rm -f conftest*
4837:
4838: fi
4839:
4840: if test $ac_cv_header_stdc = yes; then
4841: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4842: if test "$cross_compiling" = yes; then
4843: :
4844: else
4845: cat >conftest.$ac_ext <<_ACEOF
4846: /* confdefs.h. */
4847: _ACEOF
4848: cat confdefs.h >>conftest.$ac_ext
4849: cat >>conftest.$ac_ext <<_ACEOF
4850: /* end confdefs.h. */
4851: #include <ctype.h>
4852: #if ((' ' & 0x0FF) == 0x020)
4853: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4854: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4855: #else
4856: # define ISLOWER(c) \
4857: (('a' <= (c) && (c) <= 'i') \
4858: || ('j' <= (c) && (c) <= 'r') \
4859: || ('s' <= (c) && (c) <= 'z'))
4860: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4861: #endif
4862:
4863: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4864: int
4865: main ()
4866: {
4867: int i;
4868: for (i = 0; i < 256; i++)
4869: if (XOR (islower (i), ISLOWER (i))
4870: || toupper (i) != TOUPPER (i))
4871: exit(2);
4872: exit (0);
4873: }
4874: _ACEOF
4875: rm -f conftest$ac_exeext
4876: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4877: (eval $ac_link) 2>&5
4878: ac_status=$?
4879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4881: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882: (eval $ac_try) 2>&5
4883: ac_status=$?
4884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885: (exit $ac_status); }; }; then
4886: :
4887: else
4888: echo "$as_me: program exited with status $ac_status" >&5
4889: echo "$as_me: failed program was:" >&5
4890: sed 's/^/| /' conftest.$ac_ext >&5
4891:
4892: ( exit $ac_status )
4893: ac_cv_header_stdc=no
4894: fi
4895: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4896: fi
4897: fi
4898: fi
4899: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4900: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4901: if test $ac_cv_header_stdc = yes; then
4902:
4903: cat >>confdefs.h <<\_ACEOF
4904: #define STDC_HEADERS 1
4905: _ACEOF
4906:
4907: fi
4908:
4909: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4910:
4911:
4912:
4913:
4914:
4915:
4916:
4917:
4918:
4919: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4920: inttypes.h stdint.h unistd.h
4921: do
4922: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4923: echo "$as_me:$LINENO: checking for $ac_header" >&5
4924: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4925: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4926: echo $ECHO_N "(cached) $ECHO_C" >&6
4927: else
4928: cat >conftest.$ac_ext <<_ACEOF
4929: /* confdefs.h. */
4930: _ACEOF
4931: cat confdefs.h >>conftest.$ac_ext
4932: cat >>conftest.$ac_ext <<_ACEOF
4933: /* end confdefs.h. */
4934: $ac_includes_default
4935:
4936: #include <$ac_header>
4937: _ACEOF
4938: rm -f conftest.$ac_objext
4939: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940: (eval $ac_compile) 2>conftest.er1
4941: ac_status=$?
4942: grep -v '^ *+' conftest.er1 >conftest.err
4943: rm -f conftest.er1
4944: cat conftest.err >&5
4945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946: (exit $ac_status); } &&
4947: { ac_try='test -z "$ac_c_werror_flag"
4948: || test ! -s conftest.err'
4949: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950: (eval $ac_try) 2>&5
4951: ac_status=$?
4952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953: (exit $ac_status); }; } &&
4954: { ac_try='test -s conftest.$ac_objext'
4955: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956: (eval $ac_try) 2>&5
4957: ac_status=$?
4958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959: (exit $ac_status); }; }; then
4960: eval "$as_ac_Header=yes"
4961: else
4962: echo "$as_me: failed program was:" >&5
4963: sed 's/^/| /' conftest.$ac_ext >&5
4964:
4965: eval "$as_ac_Header=no"
4966: fi
4967: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4968: fi
4969: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4970: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972: cat >>confdefs.h <<_ACEOF
4973: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974: _ACEOF
4975:
4976: fi
4977:
4978: done
4979:
4980:
4981:
4982: for ac_header in dlfcn.h
4983: do
4984: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986: echo "$as_me:$LINENO: checking for $ac_header" >&5
4987: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4988: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4989: echo $ECHO_N "(cached) $ECHO_C" >&6
4990: fi
4991: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4992: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993: else
4994: # Is the header compilable?
4995: echo "$as_me:$LINENO: checking $ac_header usability" >&5
4996: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4997: cat >conftest.$ac_ext <<_ACEOF
4998: /* confdefs.h. */
4999: _ACEOF
5000: cat confdefs.h >>conftest.$ac_ext
5001: cat >>conftest.$ac_ext <<_ACEOF
5002: /* end confdefs.h. */
5003: $ac_includes_default
5004: #include <$ac_header>
5005: _ACEOF
5006: rm -f conftest.$ac_objext
5007: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008: (eval $ac_compile) 2>conftest.er1
5009: ac_status=$?
5010: grep -v '^ *+' conftest.er1 >conftest.err
5011: rm -f conftest.er1
5012: cat conftest.err >&5
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); } &&
5015: { ac_try='test -z "$ac_c_werror_flag"
5016: || test ! -s conftest.err'
5017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018: (eval $ac_try) 2>&5
5019: ac_status=$?
5020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021: (exit $ac_status); }; } &&
5022: { ac_try='test -s conftest.$ac_objext'
5023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024: (eval $ac_try) 2>&5
5025: ac_status=$?
5026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027: (exit $ac_status); }; }; then
5028: ac_header_compiler=yes
5029: else
5030: echo "$as_me: failed program was:" >&5
5031: sed 's/^/| /' conftest.$ac_ext >&5
5032:
5033: ac_header_compiler=no
5034: fi
5035: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5037: echo "${ECHO_T}$ac_header_compiler" >&6
5038:
5039: # Is the header present?
5040: echo "$as_me:$LINENO: checking $ac_header presence" >&5
5041: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5042: cat >conftest.$ac_ext <<_ACEOF
5043: /* confdefs.h. */
5044: _ACEOF
5045: cat confdefs.h >>conftest.$ac_ext
5046: cat >>conftest.$ac_ext <<_ACEOF
5047: /* end confdefs.h. */
5048: #include <$ac_header>
5049: _ACEOF
5050: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052: ac_status=$?
5053: grep -v '^ *+' conftest.er1 >conftest.err
5054: rm -f conftest.er1
5055: cat conftest.err >&5
5056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057: (exit $ac_status); } >/dev/null; then
5058: if test -s conftest.err; then
5059: ac_cpp_err=$ac_c_preproc_warn_flag
5060: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5061: else
5062: ac_cpp_err=
5063: fi
5064: else
5065: ac_cpp_err=yes
5066: fi
5067: if test -z "$ac_cpp_err"; then
5068: ac_header_preproc=yes
5069: else
5070: echo "$as_me: failed program was:" >&5
5071: sed 's/^/| /' conftest.$ac_ext >&5
5072:
5073: ac_header_preproc=no
5074: fi
5075: rm -f conftest.err conftest.$ac_ext
5076: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5077: echo "${ECHO_T}$ac_header_preproc" >&6
5078:
5079: # So? What about this header?
5080: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5081: yes:no: )
5082: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5083: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5084: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5085: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5086: ac_header_preproc=yes
5087: ;;
5088: no:yes:* )
5089: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5090: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5091: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5092: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5093: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5094: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5095: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5096: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5097: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5098: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5099: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5100: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5101: (
5102: cat <<\_ASBOX
5103: ## ------------------------------------------ ##
5104: ## Report this to the AC_PACKAGE_NAME lists. ##
5105: ## ------------------------------------------ ##
5106: _ASBOX
5107: ) |
5108: sed "s/^/$as_me: WARNING: /" >&2
5109: ;;
5110: esac
5111: echo "$as_me:$LINENO: checking for $ac_header" >&5
5112: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5113: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114: echo $ECHO_N "(cached) $ECHO_C" >&6
5115: else
5116: eval "$as_ac_Header=\$ac_header_preproc"
5117: fi
5118: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5119: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120:
5121: fi
5122: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5123: cat >>confdefs.h <<_ACEOF
5124: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125: _ACEOF
5126:
5127: fi
5128:
5129: done
5130:
5131:
5132:
5133:
5134:
5135:
5136: # Only perform the check for file, if the check method requires it
5137: case $deplibs_check_method in
5138: file_magic*)
5139: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5140: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5141: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5142: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5143: echo $ECHO_N "(cached) $ECHO_C" >&6
5144: else
5145: case $MAGIC_CMD in
5146: /*)
5147: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5148: ;;
5149: ?:/*)
5150: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5151: ;;
5152: *)
5153: ac_save_MAGIC_CMD="$MAGIC_CMD"
5154: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5155: ac_dummy="/usr/bin:$PATH"
5156: for ac_dir in $ac_dummy; do
5157: test -z "$ac_dir" && ac_dir=.
5158: if test -f $ac_dir/${ac_tool_prefix}file; then
5159: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5160: if test -n "$file_magic_test_file"; then
5161: case $deplibs_check_method in
5162: "file_magic "*)
5163: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5164: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5165: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5166: egrep "$file_magic_regex" > /dev/null; then
5167: :
5168: else
5169: cat <<EOF 1>&2
5170:
5171: *** Warning: the command libtool uses to detect shared libraries,
5172: *** $file_magic_cmd, produces output that libtool cannot recognize.
5173: *** The result is that libtool may fail to recognize shared libraries
5174: *** as such. This will affect the creation of libtool libraries that
5175: *** depend on shared libraries, but programs linked with such libtool
5176: *** libraries will work regardless of this problem. Nevertheless, you
5177: *** may want to report the problem to your system manager and/or to
5178: *** bug-libtool@gnu.org
5179:
5180: EOF
5181: fi ;;
5182: esac
5183: fi
5184: break
5185: fi
5186: done
5187: IFS="$ac_save_ifs"
5188: MAGIC_CMD="$ac_save_MAGIC_CMD"
5189: ;;
5190: esac
5191: fi
5192:
5193: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5194: if test -n "$MAGIC_CMD"; then
5195: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5196: echo "${ECHO_T}$MAGIC_CMD" >&6
5197: else
5198: echo "$as_me:$LINENO: result: no" >&5
5199: echo "${ECHO_T}no" >&6
5200: fi
5201:
5202: if test -z "$lt_cv_path_MAGIC_CMD"; then
5203: if test -n "$ac_tool_prefix"; then
5204: echo "$as_me:$LINENO: checking for file" >&5
5205: echo $ECHO_N "checking for file... $ECHO_C" >&6
5206: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5207: echo $ECHO_N "(cached) $ECHO_C" >&6
5208: else
5209: case $MAGIC_CMD in
5210: /*)
5211: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5212: ;;
5213: ?:/*)
5214: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5215: ;;
5216: *)
5217: ac_save_MAGIC_CMD="$MAGIC_CMD"
5218: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5219: ac_dummy="/usr/bin:$PATH"
5220: for ac_dir in $ac_dummy; do
5221: test -z "$ac_dir" && ac_dir=.
5222: if test -f $ac_dir/file; then
5223: lt_cv_path_MAGIC_CMD="$ac_dir/file"
5224: if test -n "$file_magic_test_file"; then
5225: case $deplibs_check_method in
5226: "file_magic "*)
5227: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5228: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5229: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5230: egrep "$file_magic_regex" > /dev/null; then
5231: :
5232: else
5233: cat <<EOF 1>&2
5234:
5235: *** Warning: the command libtool uses to detect shared libraries,
5236: *** $file_magic_cmd, produces output that libtool cannot recognize.
5237: *** The result is that libtool may fail to recognize shared libraries
5238: *** as such. This will affect the creation of libtool libraries that
5239: *** depend on shared libraries, but programs linked with such libtool
5240: *** libraries will work regardless of this problem. Nevertheless, you
5241: *** may want to report the problem to your system manager and/or to
5242: *** bug-libtool@gnu.org
5243:
5244: EOF
5245: fi ;;
5246: esac
5247: fi
5248: break
5249: fi
5250: done
5251: IFS="$ac_save_ifs"
5252: MAGIC_CMD="$ac_save_MAGIC_CMD"
5253: ;;
5254: esac
5255: fi
5256:
5257: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5258: if test -n "$MAGIC_CMD"; then
5259: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5260: echo "${ECHO_T}$MAGIC_CMD" >&6
5261: else
5262: echo "$as_me:$LINENO: result: no" >&5
5263: echo "${ECHO_T}no" >&6
5264: fi
5265:
5266: else
5267: MAGIC_CMD=:
5268: fi
5269: fi
5270:
5271: fi
5272: ;;
5273: esac
5274:
5275: if test -n "$ac_tool_prefix"; then
5276: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5277: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5278: echo "$as_me:$LINENO: checking for $ac_word" >&5
5279: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5280: if test "${ac_cv_prog_RANLIB+set}" = set; then
5281: echo $ECHO_N "(cached) $ECHO_C" >&6
5282: else
5283: if test -n "$RANLIB"; then
5284: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5285: else
5286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287: for as_dir in $PATH
5288: do
5289: IFS=$as_save_IFS
5290: test -z "$as_dir" && as_dir=.
5291: for ac_exec_ext in '' $ac_executable_extensions; do
5292: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5294: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295: break 2
5296: fi
5297: done
5298: done
5299:
5300: fi
5301: fi
5302: RANLIB=$ac_cv_prog_RANLIB
5303: if test -n "$RANLIB"; then
5304: echo "$as_me:$LINENO: result: $RANLIB" >&5
5305: echo "${ECHO_T}$RANLIB" >&6
5306: else
5307: echo "$as_me:$LINENO: result: no" >&5
5308: echo "${ECHO_T}no" >&6
5309: fi
5310:
5311: fi
5312: if test -z "$ac_cv_prog_RANLIB"; then
5313: ac_ct_RANLIB=$RANLIB
5314: # Extract the first word of "ranlib", so it can be a program name with args.
5315: set dummy ranlib; ac_word=$2
5316: echo "$as_me:$LINENO: checking for $ac_word" >&5
5317: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5318: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5319: echo $ECHO_N "(cached) $ECHO_C" >&6
5320: else
5321: if test -n "$ac_ct_RANLIB"; then
5322: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5323: else
5324: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325: for as_dir in $PATH
5326: do
5327: IFS=$as_save_IFS
5328: test -z "$as_dir" && as_dir=.
5329: for ac_exec_ext in '' $ac_executable_extensions; do
5330: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5331: ac_cv_prog_ac_ct_RANLIB="ranlib"
5332: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333: break 2
5334: fi
5335: done
5336: done
5337:
5338: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5339: fi
5340: fi
5341: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5342: if test -n "$ac_ct_RANLIB"; then
5343: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5344: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5345: else
5346: echo "$as_me:$LINENO: result: no" >&5
5347: echo "${ECHO_T}no" >&6
5348: fi
5349:
5350: RANLIB=$ac_ct_RANLIB
5351: else
5352: RANLIB="$ac_cv_prog_RANLIB"
5353: fi
5354:
5355: if test -n "$ac_tool_prefix"; then
5356: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5357: set dummy ${ac_tool_prefix}strip; ac_word=$2
5358: echo "$as_me:$LINENO: checking for $ac_word" >&5
5359: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360: if test "${ac_cv_prog_STRIP+set}" = set; then
5361: echo $ECHO_N "(cached) $ECHO_C" >&6
5362: else
5363: if test -n "$STRIP"; then
5364: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5365: else
5366: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367: for as_dir in $PATH
5368: do
5369: IFS=$as_save_IFS
5370: test -z "$as_dir" && as_dir=.
5371: for ac_exec_ext in '' $ac_executable_extensions; do
5372: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5374: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375: break 2
5376: fi
5377: done
5378: done
5379:
5380: fi
5381: fi
5382: STRIP=$ac_cv_prog_STRIP
5383: if test -n "$STRIP"; then
5384: echo "$as_me:$LINENO: result: $STRIP" >&5
5385: echo "${ECHO_T}$STRIP" >&6
5386: else
5387: echo "$as_me:$LINENO: result: no" >&5
5388: echo "${ECHO_T}no" >&6
5389: fi
5390:
5391: fi
5392: if test -z "$ac_cv_prog_STRIP"; then
5393: ac_ct_STRIP=$STRIP
5394: # Extract the first word of "strip", so it can be a program name with args.
5395: set dummy strip; ac_word=$2
5396: echo "$as_me:$LINENO: checking for $ac_word" >&5
5397: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5398: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5399: echo $ECHO_N "(cached) $ECHO_C" >&6
5400: else
5401: if test -n "$ac_ct_STRIP"; then
5402: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5403: else
5404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405: for as_dir in $PATH
5406: do
5407: IFS=$as_save_IFS
5408: test -z "$as_dir" && as_dir=.
5409: for ac_exec_ext in '' $ac_executable_extensions; do
5410: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411: ac_cv_prog_ac_ct_STRIP="strip"
5412: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413: break 2
5414: fi
5415: done
5416: done
5417:
5418: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5419: fi
5420: fi
5421: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5422: if test -n "$ac_ct_STRIP"; then
5423: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5424: echo "${ECHO_T}$ac_ct_STRIP" >&6
5425: else
5426: echo "$as_me:$LINENO: result: no" >&5
5427: echo "${ECHO_T}no" >&6
5428: fi
5429:
5430: STRIP=$ac_ct_STRIP
5431: else
5432: STRIP="$ac_cv_prog_STRIP"
5433: fi
5434:
5435:
5436: enable_dlopen=no
5437: enable_win32_dll=no
5438:
5439: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5440: if test "${enable_libtool_lock+set}" = set; then
5441: enableval="$enable_libtool_lock"
5442:
5443: fi;
5444: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5445:
5446: # Some flags need to be propagated to the compiler or linker for good
5447: # libtool support.
5448: case $host in
5449: *-*-irix6*)
5450: # Find out which ABI we are using.
1.6 ! misha 5451: echo '#line 5451 "configure"' > conftest.$ac_ext
1.1 misha 5452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453: (eval $ac_compile) 2>&5
5454: ac_status=$?
5455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456: (exit $ac_status); }; then
5457: case `/usr/bin/file conftest.$ac_objext` in
5458: *32-bit*)
5459: LD="${LD-ld} -32"
5460: ;;
5461: *N32*)
5462: LD="${LD-ld} -n32"
5463: ;;
5464: *64-bit*)
5465: LD="${LD-ld} -64"
5466: ;;
5467: esac
5468: fi
5469: rm -rf conftest*
5470: ;;
5471:
5472: *-*-sco3.2v5*)
5473: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5474: SAVE_CFLAGS="$CFLAGS"
5475: CFLAGS="$CFLAGS -belf"
5476: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5477: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5478: if test "${lt_cv_cc_needs_belf+set}" = set; then
5479: echo $ECHO_N "(cached) $ECHO_C" >&6
5480: else
5481:
5482:
5483: ac_ext=c
5484: ac_cpp='$CPP $CPPFLAGS'
5485: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488:
5489: cat >conftest.$ac_ext <<_ACEOF
5490: /* confdefs.h. */
5491: _ACEOF
5492: cat confdefs.h >>conftest.$ac_ext
5493: cat >>conftest.$ac_ext <<_ACEOF
5494: /* end confdefs.h. */
5495:
5496: int
5497: main ()
5498: {
5499:
5500: ;
5501: return 0;
5502: }
5503: _ACEOF
5504: rm -f conftest.$ac_objext conftest$ac_exeext
5505: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506: (eval $ac_link) 2>conftest.er1
5507: ac_status=$?
5508: grep -v '^ *+' conftest.er1 >conftest.err
5509: rm -f conftest.er1
5510: cat conftest.err >&5
5511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512: (exit $ac_status); } &&
5513: { ac_try='test -z "$ac_c_werror_flag"
5514: || test ! -s conftest.err'
5515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516: (eval $ac_try) 2>&5
5517: ac_status=$?
5518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519: (exit $ac_status); }; } &&
5520: { ac_try='test -s conftest$ac_exeext'
5521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522: (eval $ac_try) 2>&5
5523: ac_status=$?
5524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525: (exit $ac_status); }; }; then
5526: lt_cv_cc_needs_belf=yes
5527: else
5528: echo "$as_me: failed program was:" >&5
5529: sed 's/^/| /' conftest.$ac_ext >&5
5530:
5531: lt_cv_cc_needs_belf=no
5532: fi
5533: rm -f conftest.err conftest.$ac_objext \
5534: conftest$ac_exeext conftest.$ac_ext
5535: ac_ext=c
5536: ac_cpp='$CPP $CPPFLAGS'
5537: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540:
5541: fi
5542: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5543: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5544: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5545: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5546: CFLAGS="$SAVE_CFLAGS"
5547: fi
5548: ;;
5549:
5550:
5551: esac
5552:
5553: # Sed substitution that helps us do robust quoting. It backslashifies
5554: # metacharacters that are still active within double-quoted strings.
5555: Xsed='sed -e s/^X//'
5556: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5557:
5558: # Same as above, but do not quote variable references.
5559: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5560:
5561: # Sed substitution to delay expansion of an escaped shell variable in a
5562: # double_quote_subst'ed string.
5563: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5564:
5565: # Constants:
5566: rm="rm -f"
5567:
5568: # Global variables:
5569: default_ofile=libtool
5570: can_build_shared=yes
5571:
5572: # All known linkers require a `.a' archive for static linking (except M$VC,
5573: # which needs '.lib').
5574: libext=a
5575: ltmain="$ac_aux_dir/ltmain.sh"
5576: ofile="$default_ofile"
5577: with_gnu_ld="$lt_cv_prog_gnu_ld"
5578: need_locks="$enable_libtool_lock"
5579:
5580: old_CC="$CC"
5581: old_CFLAGS="$CFLAGS"
5582:
5583: # Set sane defaults for various variables
5584: test -z "$AR" && AR=ar
5585: test -z "$AR_FLAGS" && AR_FLAGS=cru
5586: test -z "$AS" && AS=as
5587: test -z "$CC" && CC=cc
5588: test -z "$DLLTOOL" && DLLTOOL=dlltool
5589: test -z "$LD" && LD=ld
5590: test -z "$LN_S" && LN_S="ln -s"
5591: test -z "$MAGIC_CMD" && MAGIC_CMD=file
5592: test -z "$NM" && NM=nm
5593: test -z "$OBJDUMP" && OBJDUMP=objdump
5594: test -z "$RANLIB" && RANLIB=:
5595: test -z "$STRIP" && STRIP=:
5596: test -z "$ac_objext" && ac_objext=o
5597:
5598: if test x"$host" != x"$build"; then
5599: ac_tool_prefix=${host_alias}-
5600: else
5601: ac_tool_prefix=
5602: fi
5603:
5604: # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5605: case $host_os in
5606: linux-gnu*) ;;
5607: linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5608: esac
5609:
5610: case $host_os in
5611: aix3*)
5612: # AIX sometimes has problems with the GCC collect2 program. For some
5613: # reason, if we set the COLLECT_NAMES environment variable, the problems
5614: # vanish in a puff of smoke.
5615: if test "X${COLLECT_NAMES+set}" != Xset; then
5616: COLLECT_NAMES=
5617: export COLLECT_NAMES
5618: fi
5619: ;;
5620: esac
5621:
5622: # Determine commands to create old-style static archives.
5623: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5624: old_postinstall_cmds='chmod 644 $oldlib'
5625: old_postuninstall_cmds=
5626:
5627: if test -n "$RANLIB"; then
5628: case $host_os in
5629: openbsd*)
5630: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5631: ;;
5632: *)
5633: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5634: ;;
5635: esac
5636: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5637: fi
5638:
5639: # Allow CC to be a program name with arguments.
5640: set dummy $CC
5641: compiler="$2"
5642:
5643: ## FIXME: this should be a separate macro
5644: ##
5645: echo "$as_me:$LINENO: checking for objdir" >&5
5646: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5647: rm -f .libs 2>/dev/null
5648: mkdir .libs 2>/dev/null
5649: if test -d .libs; then
5650: objdir=.libs
5651: else
5652: # MS-DOS does not allow filenames that begin with a dot.
5653: objdir=_libs
5654: fi
5655: rmdir .libs 2>/dev/null
5656: echo "$as_me:$LINENO: result: $objdir" >&5
5657: echo "${ECHO_T}$objdir" >&6
5658: ##
5659: ## END FIXME
5660:
5661:
5662: ## FIXME: this should be a separate macro
5663: ##
5664:
5665: # Check whether --with-pic or --without-pic was given.
5666: if test "${with_pic+set}" = set; then
5667: withval="$with_pic"
5668: pic_mode="$withval"
5669: else
5670: pic_mode=default
5671: fi;
5672: test -z "$pic_mode" && pic_mode=default
5673:
5674: # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5675: # in isolation, and that seeing it set (from the cache) indicates that
5676: # the associated values are set (in the cache) correctly too.
5677: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5678: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5679: if test "${lt_cv_prog_cc_pic+set}" = set; then
5680: echo $ECHO_N "(cached) $ECHO_C" >&6
5681: else
5682: lt_cv_prog_cc_pic=
5683: lt_cv_prog_cc_shlib=
5684: lt_cv_prog_cc_wl=
5685: lt_cv_prog_cc_static=
5686: lt_cv_prog_cc_no_builtin=
5687: lt_cv_prog_cc_can_build_shared=$can_build_shared
5688:
5689: if test "$GCC" = yes; then
5690: lt_cv_prog_cc_wl='-Wl,'
5691: lt_cv_prog_cc_static='-static'
5692:
5693: case $host_os in
5694: aix*)
5695: # Below there is a dirty hack to force normal static linking with -ldl
5696: # The problem is because libdl dynamically linked with both libc and
5697: # libC (AIX C++ library), which obviously doesn't included in libraries
5698: # list by gcc. This cause undefined symbols with -static flags.
5699: # This hack allows C programs to be linked with "-static -ldl", but
5700: # not sure about C++ programs.
5701: lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5702: ;;
5703: amigaos*)
5704: # FIXME: we need at least 68020 code to build shared libraries, but
5705: # adding the `-m68020' flag to GCC prevents building anything better,
5706: # like `-m68040'.
5707: lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5708: ;;
5709: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5710: # PIC is the default for these OSes.
5711: ;;
5712: darwin* | rhapsody*)
5713: # PIC is the default on this platform
5714: # Common symbols not allowed in MH_DYLIB files
5715: lt_cv_prog_cc_pic='-fno-common'
5716: ;;
5717: cygwin* | mingw* | pw32* | os2*)
5718: # This hack is so that the source file can tell whether it is being
5719: # built for inclusion in a dll (and should export symbols for example).
5720: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5721: ;;
5722: sysv4*MP*)
5723: if test -d /usr/nec; then
5724: lt_cv_prog_cc_pic=-Kconform_pic
5725: fi
5726: ;;
5727: *)
5728: lt_cv_prog_cc_pic='-fPIC'
5729: ;;
5730: esac
5731: else
5732: # PORTME Check for PIC flags for the system compiler.
5733: case $host_os in
5734: aix3* | aix4* | aix5*)
5735: lt_cv_prog_cc_wl='-Wl,'
5736: # All AIX code is PIC.
5737: if test "$host_cpu" = ia64; then
5738: # AIX 5 now supports IA64 processor
5739: lt_cv_prog_cc_static='-Bstatic'
5740: else
5741: lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5742: fi
5743: ;;
5744:
5745: hpux9* | hpux10* | hpux11*)
5746: # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5747: lt_cv_prog_cc_wl='-Wl,'
5748: lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5749: lt_cv_prog_cc_pic='+Z'
5750: ;;
5751:
5752: irix5* | irix6* | nonstopux*)
5753: lt_cv_prog_cc_wl='-Wl,'
5754: lt_cv_prog_cc_static='-non_shared'
5755: # PIC (with -KPIC) is the default.
5756: ;;
5757:
5758: cygwin* | mingw* | pw32* | os2*)
5759: # This hack is so that the source file can tell whether it is being
5760: # built for inclusion in a dll (and should export symbols for example).
5761: lt_cv_prog_cc_pic='-DDLL_EXPORT'
5762: ;;
5763:
5764: newsos6)
5765: lt_cv_prog_cc_pic='-KPIC'
5766: lt_cv_prog_cc_static='-Bstatic'
5767: ;;
5768:
5769: osf3* | osf4* | osf5*)
5770: # All OSF/1 code is PIC.
5771: lt_cv_prog_cc_wl='-Wl,'
5772: lt_cv_prog_cc_static='-non_shared'
5773: ;;
5774:
5775: sco3.2v5*)
5776: lt_cv_prog_cc_pic='-Kpic'
5777: lt_cv_prog_cc_static='-dn'
5778: lt_cv_prog_cc_shlib='-belf'
5779: ;;
5780:
5781: solaris*)
5782: lt_cv_prog_cc_pic='-KPIC'
5783: lt_cv_prog_cc_static='-Bstatic'
5784: lt_cv_prog_cc_wl='-Wl,'
5785: ;;
5786:
5787: sunos4*)
5788: lt_cv_prog_cc_pic='-PIC'
5789: lt_cv_prog_cc_static='-Bstatic'
5790: lt_cv_prog_cc_wl='-Qoption ld '
5791: ;;
5792:
5793: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5794: lt_cv_prog_cc_pic='-KPIC'
5795: lt_cv_prog_cc_static='-Bstatic'
5796: lt_cv_prog_cc_wl='-Wl,'
5797: ;;
5798:
5799: uts4*)
5800: lt_cv_prog_cc_pic='-pic'
5801: lt_cv_prog_cc_static='-Bstatic'
5802: ;;
5803:
5804: sysv4*MP*)
5805: if test -d /usr/nec ;then
5806: lt_cv_prog_cc_pic='-Kconform_pic'
5807: lt_cv_prog_cc_static='-Bstatic'
5808: fi
5809: ;;
5810:
5811: *)
5812: lt_cv_prog_cc_can_build_shared=no
5813: ;;
5814: esac
5815: fi
5816:
5817: fi
5818:
5819: if test -z "$lt_cv_prog_cc_pic"; then
5820: echo "$as_me:$LINENO: result: none" >&5
5821: echo "${ECHO_T}none" >&6
5822: else
5823: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5824: echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5825:
5826: # Check to make sure the pic_flag actually works.
5827: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5828: echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5829: if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5830: echo $ECHO_N "(cached) $ECHO_C" >&6
5831: else
5832: save_CFLAGS="$CFLAGS"
5833: CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5834: cat >conftest.$ac_ext <<_ACEOF
5835: /* confdefs.h. */
5836: _ACEOF
5837: cat confdefs.h >>conftest.$ac_ext
5838: cat >>conftest.$ac_ext <<_ACEOF
5839: /* end confdefs.h. */
5840:
5841: int
5842: main ()
5843: {
5844:
5845: ;
5846: return 0;
5847: }
5848: _ACEOF
5849: rm -f conftest.$ac_objext
5850: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5851: (eval $ac_compile) 2>conftest.er1
5852: ac_status=$?
5853: grep -v '^ *+' conftest.er1 >conftest.err
5854: rm -f conftest.er1
5855: cat conftest.err >&5
5856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857: (exit $ac_status); } &&
5858: { ac_try='test -z "$ac_c_werror_flag"
5859: || test ! -s conftest.err'
5860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861: (eval $ac_try) 2>&5
5862: ac_status=$?
5863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864: (exit $ac_status); }; } &&
5865: { ac_try='test -s conftest.$ac_objext'
5866: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867: (eval $ac_try) 2>&5
5868: ac_status=$?
5869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870: (exit $ac_status); }; }; then
5871: case $host_os in
5872: hpux9* | hpux10* | hpux11*)
5873: # On HP-UX, both CC and GCC only warn that PIC is supported... then
5874: # they create non-PIC objects. So, if there were any warnings, we
5875: # assume that PIC is not supported.
5876: if test -s conftest.err; then
5877: lt_cv_prog_cc_pic_works=no
5878: else
5879: lt_cv_prog_cc_pic_works=yes
5880: fi
5881: ;;
5882: *)
5883: lt_cv_prog_cc_pic_works=yes
5884: ;;
5885: esac
5886:
5887: else
5888: echo "$as_me: failed program was:" >&5
5889: sed 's/^/| /' conftest.$ac_ext >&5
5890:
5891: lt_cv_prog_cc_pic_works=no
5892:
5893: fi
5894: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895: CFLAGS="$save_CFLAGS"
5896:
5897: fi
5898:
5899:
5900: if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5901: lt_cv_prog_cc_pic=
5902: lt_cv_prog_cc_can_build_shared=no
5903: else
5904: lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5905: fi
5906:
5907: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5908: echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5909: fi
5910: ##
5911: ## END FIXME
5912:
5913: # Check for any special shared library compilation flags.
5914: if test -n "$lt_cv_prog_cc_shlib"; then
5915: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5916: echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5917: if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5918: else
5919: { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5920: echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5921: lt_cv_prog_cc_can_build_shared=no
5922: fi
5923: fi
5924:
5925: ## FIXME: this should be a separate macro
5926: ##
5927: echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5928: echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5929: if test "${lt_cv_prog_cc_static_works+set}" = set; then
5930: echo $ECHO_N "(cached) $ECHO_C" >&6
5931: else
5932: lt_cv_prog_cc_static_works=no
5933: save_LDFLAGS="$LDFLAGS"
5934: LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5935: cat >conftest.$ac_ext <<_ACEOF
5936: /* confdefs.h. */
5937: _ACEOF
5938: cat confdefs.h >>conftest.$ac_ext
5939: cat >>conftest.$ac_ext <<_ACEOF
5940: /* end confdefs.h. */
5941:
5942: int
5943: main ()
5944: {
5945:
5946: ;
5947: return 0;
5948: }
5949: _ACEOF
5950: rm -f conftest.$ac_objext conftest$ac_exeext
5951: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952: (eval $ac_link) 2>conftest.er1
5953: ac_status=$?
5954: grep -v '^ *+' conftest.er1 >conftest.err
5955: rm -f conftest.er1
5956: cat conftest.err >&5
5957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958: (exit $ac_status); } &&
5959: { ac_try='test -z "$ac_c_werror_flag"
5960: || test ! -s conftest.err'
5961: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962: (eval $ac_try) 2>&5
5963: ac_status=$?
5964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965: (exit $ac_status); }; } &&
5966: { ac_try='test -s conftest$ac_exeext'
5967: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968: (eval $ac_try) 2>&5
5969: ac_status=$?
5970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971: (exit $ac_status); }; }; then
5972: lt_cv_prog_cc_static_works=yes
5973: else
5974: echo "$as_me: failed program was:" >&5
5975: sed 's/^/| /' conftest.$ac_ext >&5
5976:
5977: fi
5978: rm -f conftest.err conftest.$ac_objext \
5979: conftest$ac_exeext conftest.$ac_ext
5980: LDFLAGS="$save_LDFLAGS"
5981:
5982: fi
5983:
5984:
5985: # Belt *and* braces to stop my trousers falling down:
5986: test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5987: echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5988: echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5989:
5990: pic_flag="$lt_cv_prog_cc_pic"
5991: special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5992: wl="$lt_cv_prog_cc_wl"
5993: link_static_flag="$lt_cv_prog_cc_static"
5994: no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5995: can_build_shared="$lt_cv_prog_cc_can_build_shared"
5996: ##
5997: ## END FIXME
5998:
5999:
6000: ## FIXME: this should be a separate macro
6001: ##
6002: # Check to see if options -o and -c are simultaneously supported by compiler
6003: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6004: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6005: if test "${lt_cv_compiler_c_o+set}" = set; then
6006: echo $ECHO_N "(cached) $ECHO_C" >&6
6007: else
6008:
6009: $rm -r conftest 2>/dev/null
6010: mkdir conftest
6011: cd conftest
6012: echo "int some_variable = 0;" > conftest.$ac_ext
6013: mkdir out
6014: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6015: # that will create temporary files in the current directory regardless of
6016: # the output directory. Thus, making CWD read-only will cause this test
6017: # to fail, enabling locking or at least warning the user not to do parallel
6018: # builds.
6019: chmod -w .
6020: save_CFLAGS="$CFLAGS"
6021: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6022: compiler_c_o=no
1.6 ! misha 6023: if { (eval echo configure:6023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1.1 misha 6024: # The compiler can only warn and ignore the option if not recognized
6025: # So say no if there are warnings
6026: if test -s out/conftest.err; then
6027: lt_cv_compiler_c_o=no
6028: else
6029: lt_cv_compiler_c_o=yes
6030: fi
6031: else
6032: # Append any errors to the config.log.
6033: cat out/conftest.err 1>&5
6034: lt_cv_compiler_c_o=no
6035: fi
6036: CFLAGS="$save_CFLAGS"
6037: chmod u+w .
6038: $rm conftest* out/*
6039: rmdir out
6040: cd ..
6041: rmdir conftest
6042: $rm -r conftest 2>/dev/null
6043:
6044: fi
6045:
6046: compiler_c_o=$lt_cv_compiler_c_o
6047: echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6048: echo "${ECHO_T}$compiler_c_o" >&6
6049:
6050: if test x"$compiler_c_o" = x"yes"; then
6051: # Check to see if we can write to a .lo
6052: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6053: echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6054: if test "${lt_cv_compiler_o_lo+set}" = set; then
6055: echo $ECHO_N "(cached) $ECHO_C" >&6
6056: else
6057:
6058: lt_cv_compiler_o_lo=no
6059: save_CFLAGS="$CFLAGS"
6060: CFLAGS="$CFLAGS -c -o conftest.lo"
6061: save_objext="$ac_objext"
6062: ac_objext=lo
6063: cat >conftest.$ac_ext <<_ACEOF
6064: /* confdefs.h. */
6065: _ACEOF
6066: cat confdefs.h >>conftest.$ac_ext
6067: cat >>conftest.$ac_ext <<_ACEOF
6068: /* end confdefs.h. */
6069:
6070: int
6071: main ()
6072: {
6073: int some_variable = 0;
6074: ;
6075: return 0;
6076: }
6077: _ACEOF
6078: rm -f conftest.$ac_objext
6079: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080: (eval $ac_compile) 2>conftest.er1
6081: ac_status=$?
6082: grep -v '^ *+' conftest.er1 >conftest.err
6083: rm -f conftest.er1
6084: cat conftest.err >&5
6085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086: (exit $ac_status); } &&
6087: { ac_try='test -z "$ac_c_werror_flag"
6088: || test ! -s conftest.err'
6089: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090: (eval $ac_try) 2>&5
6091: ac_status=$?
6092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093: (exit $ac_status); }; } &&
6094: { ac_try='test -s conftest.$ac_objext'
6095: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096: (eval $ac_try) 2>&5
6097: ac_status=$?
6098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099: (exit $ac_status); }; }; then
6100: # The compiler can only warn and ignore the option if not recognized
6101: # So say no if there are warnings
6102: if test -s conftest.err; then
6103: lt_cv_compiler_o_lo=no
6104: else
6105: lt_cv_compiler_o_lo=yes
6106: fi
6107:
6108: else
6109: echo "$as_me: failed program was:" >&5
6110: sed 's/^/| /' conftest.$ac_ext >&5
6111:
6112: fi
6113: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114: ac_objext="$save_objext"
6115: CFLAGS="$save_CFLAGS"
6116:
6117: fi
6118:
6119: compiler_o_lo=$lt_cv_compiler_o_lo
6120: echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6121: echo "${ECHO_T}$compiler_o_lo" >&6
6122: else
6123: compiler_o_lo=no
6124: fi
6125: ##
6126: ## END FIXME
6127:
6128: ## FIXME: this should be a separate macro
6129: ##
6130: # Check to see if we can do hard links to lock some files if needed
6131: hard_links="nottested"
6132: if test "$compiler_c_o" = no && test "$need_locks" != no; then
6133: # do not overwrite the value of need_locks provided by the user
6134: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6135: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6136: hard_links=yes
6137: $rm conftest*
6138: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6139: touch conftest.a
6140: ln conftest.a conftest.b 2>&5 || hard_links=no
6141: ln conftest.a conftest.b 2>/dev/null && hard_links=no
6142: echo "$as_me:$LINENO: result: $hard_links" >&5
6143: echo "${ECHO_T}$hard_links" >&6
6144: if test "$hard_links" = no; then
6145: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6146: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6147: need_locks=warn
6148: fi
6149: else
6150: need_locks=no
6151: fi
6152: ##
6153: ## END FIXME
6154:
6155: ## FIXME: this should be a separate macro
6156: ##
6157: if test "$GCC" = yes; then
6158: # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6159: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6160: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6161: echo "int some_variable = 0;" > conftest.$ac_ext
6162: save_CFLAGS="$CFLAGS"
6163: CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6164: compiler_rtti_exceptions=no
6165: cat >conftest.$ac_ext <<_ACEOF
6166: /* confdefs.h. */
6167: _ACEOF
6168: cat confdefs.h >>conftest.$ac_ext
6169: cat >>conftest.$ac_ext <<_ACEOF
6170: /* end confdefs.h. */
6171:
6172: int
6173: main ()
6174: {
6175: int some_variable = 0;
6176: ;
6177: return 0;
6178: }
6179: _ACEOF
6180: rm -f conftest.$ac_objext
6181: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182: (eval $ac_compile) 2>conftest.er1
6183: ac_status=$?
6184: grep -v '^ *+' conftest.er1 >conftest.err
6185: rm -f conftest.er1
6186: cat conftest.err >&5
6187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188: (exit $ac_status); } &&
6189: { ac_try='test -z "$ac_c_werror_flag"
6190: || test ! -s conftest.err'
6191: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192: (eval $ac_try) 2>&5
6193: ac_status=$?
6194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195: (exit $ac_status); }; } &&
6196: { ac_try='test -s conftest.$ac_objext'
6197: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198: (eval $ac_try) 2>&5
6199: ac_status=$?
6200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201: (exit $ac_status); }; }; then
6202: # The compiler can only warn and ignore the option if not recognized
6203: # So say no if there are warnings
6204: if test -s conftest.err; then
6205: compiler_rtti_exceptions=no
6206: else
6207: compiler_rtti_exceptions=yes
6208: fi
6209:
6210: else
6211: echo "$as_me: failed program was:" >&5
6212: sed 's/^/| /' conftest.$ac_ext >&5
6213:
6214: fi
6215: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216: CFLAGS="$save_CFLAGS"
6217: echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6218: echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6219:
6220: if test "$compiler_rtti_exceptions" = "yes"; then
6221: no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6222: else
6223: no_builtin_flag=' -fno-builtin'
6224: fi
6225: fi
6226: ##
6227: ## END FIXME
6228:
6229: ## FIXME: this should be a separate macro
6230: ##
6231: # See if the linker supports building shared libraries.
6232: echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6233: echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6234:
6235: allow_undefined_flag=
6236: no_undefined_flag=
6237: need_lib_prefix=unknown
6238: need_version=unknown
6239: # when you set need_version to no, make sure it does not cause -set_version
6240: # flags to be left without arguments
6241: archive_cmds=
6242: archive_expsym_cmds=
6243: old_archive_from_new_cmds=
6244: old_archive_from_expsyms_cmds=
6245: export_dynamic_flag_spec=
6246: whole_archive_flag_spec=
6247: thread_safe_flag_spec=
6248: hardcode_into_libs=no
6249: hardcode_libdir_flag_spec=
6250: hardcode_libdir_separator=
6251: hardcode_direct=no
6252: hardcode_minus_L=no
6253: hardcode_shlibpath_var=unsupported
6254: runpath_var=
6255: link_all_deplibs=unknown
6256: always_export_symbols=no
6257: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6258: # include_expsyms should be a list of space-separated symbols to be *always*
6259: # included in the symbol list
6260: include_expsyms=
6261: # exclude_expsyms can be an egrep regular expression of symbols to exclude
6262: # it will be wrapped by ` (' and `)$', so one must not match beginning or
6263: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6264: # as well as any symbol that contains `d'.
6265: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6266: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6267: # platforms (ab)use it in PIC code, but their linkers get confused if
6268: # the symbol is explicitly referenced. Since portable code cannot
6269: # rely on this symbol name, it's probably fine to never include it in
6270: # preloaded symbol tables.
6271: extract_expsyms_cmds=
6272:
6273: case $host_os in
6274: cygwin* | mingw* | pw32*)
6275: # FIXME: the MSVC++ port hasn't been tested in a loooong time
6276: # When not using gcc, we currently assume that we are using
6277: # Microsoft Visual C++.
6278: if test "$GCC" != yes; then
6279: with_gnu_ld=no
6280: fi
6281: ;;
6282: openbsd*)
6283: with_gnu_ld=no
6284: ;;
6285: esac
6286:
6287: ld_shlibs=yes
6288: if test "$with_gnu_ld" = yes; then
6289: # If archive_cmds runs LD, not CC, wlarc should be empty
6290: wlarc='${wl}'
6291:
6292: # See if GNU ld supports shared libraries.
6293: case $host_os in
6294: aix3* | aix4* | aix5*)
6295: # On AIX, the GNU linker is very broken
6296: # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6297: ld_shlibs=no
6298: cat <<EOF 1>&2
6299:
6300: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6301: *** to be unable to reliably create shared libraries on AIX.
6302: *** Therefore, libtool is disabling shared libraries support. If you
6303: *** really care for shared libraries, you may want to modify your PATH
6304: *** so that a non-GNU linker is found, and then restart.
6305:
6306: EOF
6307: ;;
6308:
6309: amigaos*)
6310: 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)'
6311: hardcode_libdir_flag_spec='-L$libdir'
6312: hardcode_minus_L=yes
6313:
6314: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6315: # that the semantics of dynamic libraries on AmigaOS, at least up
6316: # to version 4, is to share data among multiple programs linked
6317: # with the same dynamic library. Since this doesn't match the
6318: # behavior of shared libraries on other platforms, we can use
6319: # them.
6320: ld_shlibs=no
6321: ;;
6322:
6323: beos*)
6324: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6325: allow_undefined_flag=unsupported
6326: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6327: # support --undefined. This deserves some investigation. FIXME
6328: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6329: else
6330: ld_shlibs=no
6331: fi
6332: ;;
6333:
6334: cygwin* | mingw* | pw32*)
6335: # hardcode_libdir_flag_spec is actually meaningless, as there is
6336: # no search path for DLLs.
6337: hardcode_libdir_flag_spec='-L$libdir'
6338: allow_undefined_flag=unsupported
6339: always_export_symbols=yes
6340:
6341: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6342: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6343: test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6344: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6345: else $CC -o impgen impgen.c ; fi)~
6346: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6347:
6348: old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6349:
6350: # cygwin and mingw dlls have different entry points and sets of symbols
6351: # to exclude.
6352: # FIXME: what about values for MSVC?
6353: dll_entry=__cygwin_dll_entry@12
6354: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6355: case $host_os in
6356: mingw*)
6357: # mingw values
6358: dll_entry=_DllMainCRTStartup@12
6359: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6360: ;;
6361: esac
6362:
6363: # mingw and cygwin differ, and it's simplest to just exclude the union
6364: # of the two symbol sets.
6365: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6366:
6367: # recent cygwin and mingw systems supply a stub DllMain which the user
6368: # can override, but on older systems we have to supply one (in ltdll.c)
6369: if test "x$lt_cv_need_dllmain" = "xyes"; then
6370: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6371: 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~
6372: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6373: else
6374: ltdll_obj=
6375: ltdll_cmds=
6376: fi
6377:
6378: # Extract the symbol export list from an `--export-all' def file,
6379: # then regenerate the def file from the symbol export list, so that
6380: # the compiled dll only exports the symbol export list.
6381: # Be careful not to strip the DATA tag left be newer dlltools.
6382: export_symbols_cmds="$ltdll_cmds"'
6383: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6384: sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6385:
6386: # If the export-symbols file already is a .def file (1st line
6387: # is EXPORTS), use it as is.
6388: # If DATA tags from a recent dlltool are present, honour them!
6389: archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6390: cp $export_symbols $output_objdir/$soname-def;
6391: else
6392: echo EXPORTS > $output_objdir/$soname-def;
6393: _lt_hint=1;
6394: cat $export_symbols | while read symbol; do
6395: set dummy \$symbol;
6396: case \$# in
6397: 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6398: 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6399: *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6400: esac;
6401: _lt_hint=`expr 1 + \$_lt_hint`;
6402: done;
6403: fi~
6404: '"$ltdll_cmds"'
6405: $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~
6406: $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~
6407: $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~
6408: $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~
6409: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6410: ;;
6411:
6412: netbsd*)
6413: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6414: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6415: wlarc=
6416: else
6417: archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6418: archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6419: fi
6420: ;;
6421:
6422: solaris* | sysv5*)
6423: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6424: ld_shlibs=no
6425: cat <<EOF 1>&2
6426:
6427: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6428: *** create shared libraries on Solaris systems. Therefore, libtool
6429: *** is disabling shared libraries support. We urge you to upgrade GNU
6430: *** binutils to release 2.9.1 or newer. Another option is to modify
6431: *** your PATH or compiler configuration so that the native linker is
6432: *** used, and then restart.
6433:
6434: EOF
6435: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6436: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6438: else
6439: ld_shlibs=no
6440: fi
6441: ;;
6442:
6443: sunos4*)
6444: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6445: wlarc=
6446: hardcode_direct=yes
6447: hardcode_shlibpath_var=no
6448: ;;
6449:
6450: *)
6451: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6452: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6453: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6454: else
6455: ld_shlibs=no
6456: fi
6457: ;;
6458: esac
6459:
6460: if test "$ld_shlibs" = yes; then
6461: runpath_var=LD_RUN_PATH
6462: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6463: export_dynamic_flag_spec='${wl}--export-dynamic'
6464: case $host_os in
6465: cygwin* | mingw* | pw32*)
6466: # dlltool doesn't understand --whole-archive et. al.
6467: whole_archive_flag_spec=
6468: ;;
6469: *)
6470: # ancient GNU ld didn't support --whole-archive et. al.
6471: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6472: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6473: else
6474: whole_archive_flag_spec=
6475: fi
6476: ;;
6477: esac
6478: fi
6479: else
6480: # PORTME fill in a description of your system's linker (not GNU ld)
6481: case $host_os in
6482: aix3*)
6483: allow_undefined_flag=unsupported
6484: always_export_symbols=yes
6485: 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'
6486: # Note: this linker hardcodes the directories in LIBPATH if there
6487: # are no directories specified by -L.
6488: hardcode_minus_L=yes
6489: if test "$GCC" = yes && test -z "$link_static_flag"; then
6490: # Neither direct hardcoding nor static linking is supported with a
6491: # broken collect2.
6492: hardcode_direct=unsupported
6493: fi
6494: ;;
6495:
6496: aix4* | aix5*)
6497: if test "$host_cpu" = ia64; then
6498: # On IA64, the linker does run time linking by default, so we don't
6499: # have to do anything special.
6500: aix_use_runtimelinking=no
6501: exp_sym_flag='-Bexport'
6502: no_entry_flag=""
6503: else
6504: aix_use_runtimelinking=no
6505:
6506: # Test if we are trying to use run time linking or normal
6507: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6508: # need to do runtime linking.
6509: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6510: for ld_flag in $LDFLAGS; do
6511: case $ld_flag in
6512: *-brtl*)
6513: aix_use_runtimelinking=yes
6514: break
6515: ;;
6516: esac
6517: done
6518: esac
6519:
6520: exp_sym_flag='-bexport'
6521: no_entry_flag='-bnoentry'
6522: fi
6523:
6524: # When large executables or shared objects are built, AIX ld can
6525: # have problems creating the table of contents. If linking a library
6526: # or program results in "error TOC overflow" add -mminimal-toc to
6527: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6528: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6529:
6530: hardcode_direct=yes
6531: archive_cmds=''
6532: hardcode_libdir_separator=':'
6533: if test "$GCC" = yes; then
6534: case $host_os in aix4.[012]|aix4.[012].*)
6535: collect2name=`${CC} -print-prog-name=collect2`
6536: if test -f "$collect2name" && \
6537: strings "$collect2name" | grep resolve_lib_name >/dev/null
6538: then
6539: # We have reworked collect2
6540: hardcode_direct=yes
6541: else
6542: # We have old collect2
6543: hardcode_direct=unsupported
6544: # It fails to find uninstalled libraries when the uninstalled
6545: # path is not listed in the libpath. Setting hardcode_minus_L
6546: # to unsupported forces relinking
6547: hardcode_minus_L=yes
6548: hardcode_libdir_flag_spec='-L$libdir'
6549: hardcode_libdir_separator=
6550: fi
6551: esac
6552:
6553: shared_flag='-shared'
6554: else
6555: # not using gcc
6556: if test "$host_cpu" = ia64; then
6557: shared_flag='${wl}-G'
6558: else
6559: if test "$aix_use_runtimelinking" = yes; then
6560: shared_flag='${wl}-G'
6561: else
6562: shared_flag='${wl}-bM:SRE'
6563: fi
6564: fi
6565: fi
6566:
6567: # It seems that -bexpall can do strange things, so it is better to
6568: # generate a list of symbols to export.
6569: always_export_symbols=yes
6570: if test "$aix_use_runtimelinking" = yes; then
6571: # Warning - without using the other runtime loading flags (-brtl),
6572: # -berok will link without error, but may produce a broken library.
6573: allow_undefined_flag='-berok'
6574: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6575: 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"
6576: else
6577: if test "$host_cpu" = ia64; then
6578: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6579: allow_undefined_flag="-z nodefs"
6580: 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"
6581: else
6582: hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6583: # Warning - without using the other run time loading flags,
6584: # -berok will link without error, but may produce a broken library.
6585: allow_undefined_flag='${wl}-berok'
6586: # This is a bit strange, but is similar to how AIX traditionally builds
6587: # it's shared libraries.
6588: 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'
6589: fi
6590: fi
6591: ;;
6592:
6593: amigaos*)
6594: 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)'
6595: hardcode_libdir_flag_spec='-L$libdir'
6596: hardcode_minus_L=yes
6597: # see comment about different semantics on the GNU ld section
6598: ld_shlibs=no
6599: ;;
6600:
6601: cygwin* | mingw* | pw32*)
6602: # When not using gcc, we currently assume that we are using
6603: # Microsoft Visual C++.
6604: # hardcode_libdir_flag_spec is actually meaningless, as there is
6605: # no search path for DLLs.
6606: hardcode_libdir_flag_spec=' '
6607: allow_undefined_flag=unsupported
6608: # Tell ltmain to make .lib files, not .a files.
6609: libext=lib
6610: # FIXME: Setting linknames here is a bad hack.
6611: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6612: # The linker will automatically build a .lib file if we build a DLL.
6613: old_archive_from_new_cmds='true'
6614: # FIXME: Should let the user specify the lib program.
6615: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6616: fix_srcfile_path='`cygpath -w "$srcfile"`'
6617: ;;
6618:
6619: darwin* | rhapsody*)
6620: case "$host_os" in
6621: rhapsody* | darwin1.[012])
6622: allow_undefined_flag='-undefined suppress'
6623: ;;
6624: *) # Darwin 1.3 on
6625: allow_undefined_flag='-flat_namespace -undefined suppress'
6626: ;;
6627: esac
6628: # FIXME: Relying on posixy $() will cause problems for
6629: # cross-compilation, but unfortunately the echo tests do not
6630: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6631: # `"' quotes if we put them in here... so don't!
6632: 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)'
6633: # We need to add '_' to the symbols in $export_symbols first
6634: #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6635: hardcode_direct=yes
6636: hardcode_shlibpath_var=no
6637: whole_archive_flag_spec='-all_load $convenience'
6638: ;;
6639:
6640: freebsd1*)
6641: ld_shlibs=no
6642: ;;
6643:
6644: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6645: # support. Future versions do this automatically, but an explicit c++rt0.o
6646: # does not break anything, and helps significantly (at the cost of a little
6647: # extra space).
6648: freebsd2.2*)
6649: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6650: hardcode_libdir_flag_spec='-R$libdir'
6651: hardcode_direct=yes
6652: hardcode_shlibpath_var=no
6653: ;;
6654:
6655: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6656: freebsd2*)
6657: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6658: hardcode_direct=yes
6659: hardcode_minus_L=yes
6660: hardcode_shlibpath_var=no
6661: ;;
6662:
6663: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6664: freebsd*)
6665: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6666: hardcode_libdir_flag_spec='-R$libdir'
6667: hardcode_direct=yes
6668: hardcode_shlibpath_var=no
6669: ;;
6670:
6671: hpux9* | hpux10* | hpux11*)
6672: case $host_os in
6673: 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' ;;
6674: *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6675: esac
6676: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6677: hardcode_libdir_separator=:
6678: hardcode_direct=yes
6679: hardcode_minus_L=yes # Not in the search PATH, but as the default
6680: # location of the library.
6681: export_dynamic_flag_spec='${wl}-E'
6682: ;;
6683:
6684: irix5* | irix6* | nonstopux*)
6685: if test "$GCC" = yes; then
6686: 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'
6687: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6688: else
6689: 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'
6690: hardcode_libdir_flag_spec='-rpath $libdir'
6691: fi
6692: hardcode_libdir_separator=:
6693: link_all_deplibs=yes
6694: ;;
6695:
6696: netbsd*)
6697: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6698: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6699: else
6700: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6701: fi
6702: hardcode_libdir_flag_spec='-R$libdir'
6703: hardcode_direct=yes
6704: hardcode_shlibpath_var=no
6705: ;;
6706:
6707: newsos6)
6708: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6709: hardcode_direct=yes
6710: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6711: hardcode_libdir_separator=:
6712: hardcode_shlibpath_var=no
6713: ;;
6714:
6715: openbsd*)
6716: hardcode_direct=yes
6717: hardcode_shlibpath_var=no
6718: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6719: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6720: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6721: export_dynamic_flag_spec='${wl}-E'
6722: else
6723: case "$host_os" in
6724: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6725: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6726: hardcode_libdir_flag_spec='-R$libdir'
6727: ;;
6728: *)
6729: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6730: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6731: ;;
6732: esac
6733: fi
6734: ;;
6735:
6736: os2*)
6737: hardcode_libdir_flag_spec='-L$libdir'
6738: hardcode_minus_L=yes
6739: allow_undefined_flag=unsupported
6740: 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'
6741: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6742: ;;
6743:
6744: osf3*)
6745: if test "$GCC" = yes; then
6746: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6747: 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'
6748: else
6749: allow_undefined_flag=' -expect_unresolved \*'
6750: 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'
6751: fi
6752: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6753: hardcode_libdir_separator=:
6754: ;;
6755:
6756: osf4* | osf5*) # as osf3* with the addition of -msym flag
6757: if test "$GCC" = yes; then
6758: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6759: 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'
6760: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6761: else
6762: allow_undefined_flag=' -expect_unresolved \*'
6763: 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'
6764: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6765: $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'
6766:
6767: #Both c and cxx compiler support -rpath directly
6768: hardcode_libdir_flag_spec='-rpath $libdir'
6769: fi
6770: hardcode_libdir_separator=:
6771: ;;
6772:
6773: sco3.2v5*)
6774: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6775: hardcode_shlibpath_var=no
6776: runpath_var=LD_RUN_PATH
6777: hardcode_runpath_var=yes
6778: export_dynamic_flag_spec='${wl}-Bexport'
6779: ;;
6780:
6781: solaris*)
6782: # gcc --version < 3.0 without binutils cannot create self contained
6783: # shared libraries reliably, requiring libgcc.a to resolve some of
6784: # the object symbols generated in some cases. Libraries that use
6785: # assert need libgcc.a to resolve __eprintf, for example. Linking
6786: # a copy of libgcc.a into every shared library to guarantee resolving
6787: # such symbols causes other problems: According to Tim Van Holder
6788: # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6789: # (to the application) exception stack for one thing.
6790: no_undefined_flag=' -z defs'
6791: if test "$GCC" = yes; then
6792: case `$CC --version 2>/dev/null` in
6793: [12].*)
6794: cat <<EOF 1>&2
6795:
6796: *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6797: *** create self contained shared libraries on Solaris systems, without
6798: *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6799: *** -no-undefined support, which will at least allow you to build shared
6800: *** libraries. However, you may find that when you link such libraries
6801: *** into an application without using GCC, you have to manually add
6802: *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6803: *** upgrade to a newer version of GCC. Another option is to rebuild your
6804: *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6805:
6806: EOF
6807: no_undefined_flag=
6808: ;;
6809: esac
6810: fi
6811: # $CC -shared without GNU ld will not create a library from C++
6812: # object files and a static libstdc++, better avoid it by now
6813: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6814: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6815: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6816: hardcode_libdir_flag_spec='-R$libdir'
6817: hardcode_shlibpath_var=no
6818: case $host_os in
6819: solaris2.[0-5] | solaris2.[0-5].*) ;;
6820: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6821: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6822: esac
6823: link_all_deplibs=yes
6824: ;;
6825:
6826: sunos4*)
6827: if test "x$host_vendor" = xsequent; then
6828: # Use $CC to link under sequent, because it throws in some extra .o
6829: # files that make .init and .fini sections work.
6830: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6831: else
6832: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6833: fi
6834: hardcode_libdir_flag_spec='-L$libdir'
6835: hardcode_direct=yes
6836: hardcode_minus_L=yes
6837: hardcode_shlibpath_var=no
6838: ;;
6839:
6840: sysv4)
6841: case $host_vendor in
6842: sni)
6843: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844: hardcode_direct=yes # is this really true???
6845: ;;
6846: siemens)
6847: ## LD is ld it makes a PLAMLIB
6848: ## CC just makes a GrossModule.
6849: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6850: reload_cmds='$CC -r -o $output$reload_objs'
6851: hardcode_direct=no
6852: ;;
6853: motorola)
6854: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6855: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6856: ;;
6857: esac
6858: runpath_var='LD_RUN_PATH'
6859: hardcode_shlibpath_var=no
6860: ;;
6861:
6862: sysv4.3*)
6863: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6864: hardcode_shlibpath_var=no
6865: export_dynamic_flag_spec='-Bexport'
6866: ;;
6867:
6868: sysv5*)
6869: no_undefined_flag=' -z text'
6870: # $CC -shared without GNU ld will not create a library from C++
6871: # object files and a static libstdc++, better avoid it by now
6872: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6873: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6874: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6875: hardcode_libdir_flag_spec=
6876: hardcode_shlibpath_var=no
6877: runpath_var='LD_RUN_PATH'
6878: ;;
6879:
6880: uts4*)
6881: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6882: hardcode_libdir_flag_spec='-L$libdir'
6883: hardcode_shlibpath_var=no
6884: ;;
6885:
6886: dgux*)
6887: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6888: hardcode_libdir_flag_spec='-L$libdir'
6889: hardcode_shlibpath_var=no
6890: ;;
6891:
6892: sysv4*MP*)
6893: if test -d /usr/nec; then
6894: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6895: hardcode_shlibpath_var=no
6896: runpath_var=LD_RUN_PATH
6897: hardcode_runpath_var=yes
6898: ld_shlibs=yes
6899: fi
6900: ;;
6901:
6902: sysv4.2uw2*)
6903: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6904: hardcode_direct=yes
6905: hardcode_minus_L=no
6906: hardcode_shlibpath_var=no
6907: hardcode_runpath_var=yes
6908: runpath_var=LD_RUN_PATH
6909: ;;
6910:
6911: sysv5uw7* | unixware7*)
6912: no_undefined_flag='${wl}-z ${wl}text'
6913: if test "$GCC" = yes; then
6914: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6915: else
6916: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6917: fi
6918: runpath_var='LD_RUN_PATH'
6919: hardcode_shlibpath_var=no
6920: ;;
6921:
6922: *)
6923: ld_shlibs=no
6924: ;;
6925: esac
6926: fi
6927: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6928: echo "${ECHO_T}$ld_shlibs" >&6
6929: test "$ld_shlibs" = no && can_build_shared=no
6930: ##
6931: ## END FIXME
6932:
6933: ## FIXME: this should be a separate macro
6934: ##
6935: # Check hardcoding attributes.
6936: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6937: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6938: hardcode_action=
6939: if test -n "$hardcode_libdir_flag_spec" || \
6940: test -n "$runpath_var"; then
6941:
6942: # We can hardcode non-existant directories.
6943: if test "$hardcode_direct" != no &&
6944: # If the only mechanism to avoid hardcoding is shlibpath_var, we
6945: # have to relink, otherwise we might link with an installed library
6946: # when we should be linking with a yet-to-be-installed one
6947: ## test "$hardcode_shlibpath_var" != no &&
6948: test "$hardcode_minus_L" != no; then
6949: # Linking always hardcodes the temporary library directory.
6950: hardcode_action=relink
6951: else
6952: # We can link without hardcoding, and we can hardcode nonexisting dirs.
6953: hardcode_action=immediate
6954: fi
6955: else
6956: # We cannot hardcode anything, or else we can only hardcode existing
6957: # directories.
6958: hardcode_action=unsupported
6959: fi
6960: echo "$as_me:$LINENO: result: $hardcode_action" >&5
6961: echo "${ECHO_T}$hardcode_action" >&6
6962: ##
6963: ## END FIXME
6964:
6965: ## FIXME: this should be a separate macro
6966: ##
6967: striplib=
6968: old_striplib=
6969: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6970: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6971: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6972: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6973: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6974: echo "$as_me:$LINENO: result: yes" >&5
6975: echo "${ECHO_T}yes" >&6
6976: else
6977: echo "$as_me:$LINENO: result: no" >&5
6978: echo "${ECHO_T}no" >&6
6979: fi
6980: ##
6981: ## END FIXME
6982:
6983: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6984: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6985:
6986: ## FIXME: this should be a separate macro
6987: ##
6988: # PORTME Fill in your ld.so characteristics
6989: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6990: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6991: library_names_spec=
6992: libname_spec='lib$name'
6993: soname_spec=
6994: postinstall_cmds=
6995: postuninstall_cmds=
6996: finish_cmds=
6997: finish_eval=
6998: shlibpath_var=
6999: shlibpath_overrides_runpath=unknown
7000: version_type=none
7001: dynamic_linker="$host_os ld.so"
7002: sys_lib_dlsearch_path_spec="/lib /usr/lib"
7003: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7004:
7005: case $host_os in
7006: aix3*)
7007: version_type=linux
7008: library_names_spec='${libname}${release}.so$versuffix $libname.a'
7009: shlibpath_var=LIBPATH
7010:
7011: # AIX has no versioning support, so we append a major version to the name.
7012: soname_spec='${libname}${release}.so$major'
7013: ;;
7014:
7015: aix4* | aix5*)
7016: version_type=linux
7017: need_lib_prefix=no
7018: need_version=no
7019: hardcode_into_libs=yes
7020: if test "$host_cpu" = ia64; then
7021: # AIX 5 supports IA64
7022: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7023: shlibpath_var=LD_LIBRARY_PATH
7024: else
7025: # With GCC up to 2.95.x, collect2 would create an import file
7026: # for dependence libraries. The import file would start with
7027: # the line `#! .'. This would cause the generated library to
7028: # depend on `.', always an invalid library. This was fixed in
7029: # development snapshots of GCC prior to 3.0.
7030: case $host_os in
7031: aix4 | aix4.[01] | aix4.[01].*)
7032: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7033: echo ' yes '
7034: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7035: :
7036: else
7037: can_build_shared=no
7038: fi
7039: ;;
7040: esac
7041: # AIX (on Power*) has no versioning support, so currently we can
7042: # not hardcode correct soname into executable. Probably we can
7043: # add versioning support to collect2, so additional links can
7044: # be useful in future.
7045: if test "$aix_use_runtimelinking" = yes; then
7046: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7047: # instead of lib<name>.a to let people know that these are not
7048: # typical AIX shared libraries.
7049: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7050: else
7051: # We preserve .a as extension for shared libraries through AIX4.2
7052: # and later when we are not doing run time linking.
7053: library_names_spec='${libname}${release}.a $libname.a'
7054: soname_spec='${libname}${release}.so$major'
7055: fi
7056: shlibpath_var=LIBPATH
7057: fi
7058: hardcode_into_libs=yes
7059: ;;
7060:
7061: amigaos*)
7062: library_names_spec='$libname.ixlibrary $libname.a'
7063: # Create ${libname}_ixlibrary.a entries in /sys/libs.
7064: 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'
7065: ;;
7066:
7067: beos*)
7068: library_names_spec='${libname}.so'
7069: dynamic_linker="$host_os ld.so"
7070: shlibpath_var=LIBRARY_PATH
7071: ;;
7072:
7073: bsdi4*)
7074: version_type=linux
7075: need_version=no
7076: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7077: soname_spec='${libname}${release}.so$major'
7078: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7079: shlibpath_var=LD_LIBRARY_PATH
7080: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7081: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7082: export_dynamic_flag_spec=-rdynamic
7083: # the default ld.so.conf also contains /usr/contrib/lib and
7084: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7085: # libtool to hard-code these into programs
7086: ;;
7087:
7088: cygwin* | mingw* | pw32*)
7089: version_type=windows
7090: need_version=no
7091: need_lib_prefix=no
7092: case $GCC,$host_os in
7093: yes,cygwin*)
7094: library_names_spec='$libname.dll.a'
7095: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7096: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7097: dldir=$destdir/`dirname \$dlpath`~
7098: test -d \$dldir || mkdir -p \$dldir~
7099: $install_prog .libs/$dlname \$dldir/$dlname'
7100: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7101: dlpath=$dir/\$dldll~
7102: $rm \$dlpath'
7103: ;;
7104: yes,mingw*)
7105: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7106: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7107: ;;
7108: yes,pw32*)
7109: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7110: ;;
7111: *)
7112: library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7113: ;;
7114: esac
7115: dynamic_linker='Win32 ld.exe'
7116: # FIXME: first we should search . and the directory the executable is in
7117: shlibpath_var=PATH
7118: ;;
7119:
7120: darwin* | rhapsody*)
7121: dynamic_linker="$host_os dyld"
7122: version_type=darwin
7123: need_lib_prefix=no
7124: need_version=no
7125: # FIXME: Relying on posixy $() will cause problems for
7126: # cross-compilation, but unfortunately the echo tests do not
7127: # yet detect zsh echo's removal of \ escapes.
7128: 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)'
7129: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7130: shlibpath_overrides_runpath=yes
7131: shlibpath_var=DYLD_LIBRARY_PATH
7132: ;;
7133:
7134: freebsd1*)
7135: dynamic_linker=no
7136: ;;
7137:
7138: freebsd*)
7139: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7140: version_type=freebsd-$objformat
7141: case $version_type in
7142: freebsd-elf*)
7143: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7144: need_version=no
7145: need_lib_prefix=no
7146: ;;
7147: freebsd-*)
7148: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7149: need_version=yes
7150: ;;
7151: esac
7152: shlibpath_var=LD_LIBRARY_PATH
7153: case $host_os in
7154: freebsd2*)
7155: shlibpath_overrides_runpath=yes
7156: ;;
7157: *)
7158: shlibpath_overrides_runpath=no
7159: hardcode_into_libs=yes
7160: ;;
7161: esac
7162: ;;
7163:
7164: gnu*)
7165: version_type=linux
7166: need_lib_prefix=no
7167: need_version=no
7168: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7169: soname_spec='${libname}${release}.so$major'
7170: shlibpath_var=LD_LIBRARY_PATH
7171: hardcode_into_libs=yes
7172: ;;
7173:
7174: hpux9* | hpux10* | hpux11*)
7175: # Give a soname corresponding to the major version so that dld.sl refuses to
7176: # link against other versions.
7177: dynamic_linker="$host_os dld.sl"
7178: version_type=sunos
7179: need_lib_prefix=no
7180: need_version=no
7181: shlibpath_var=SHLIB_PATH
7182: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7183: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7184: soname_spec='${libname}${release}.sl$major'
7185: # HP-UX runs *really* slowly unless shared libraries are mode 555.
7186: postinstall_cmds='chmod 555 $lib'
7187: ;;
7188:
7189: irix5* | irix6* | nonstopux*)
7190: case $host_os in
7191: nonstopux*) version_type=nonstopux ;;
7192: *) version_type=irix ;;
7193: esac
7194: need_lib_prefix=no
7195: need_version=no
7196: soname_spec='${libname}${release}.so$major'
7197: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7198: case $host_os in
7199: irix5* | nonstopux*)
7200: libsuff= shlibsuff=
7201: ;;
7202: *)
7203: case $LD in # libtool.m4 will add one of these switches to LD
7204: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7205: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7206: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7207: *) libsuff= shlibsuff= libmagic=never-match;;
7208: esac
7209: ;;
7210: esac
7211: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7212: shlibpath_overrides_runpath=no
7213: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7214: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7215: ;;
7216:
7217: # No shared lib support for Linux oldld, aout, or coff.
7218: linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7219: dynamic_linker=no
7220: ;;
7221:
7222: # This must be Linux ELF.
7223: linux-gnu*)
7224: version_type=linux
7225: need_lib_prefix=no
7226: need_version=no
7227: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7228: soname_spec='${libname}${release}.so$major'
7229: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7230: shlibpath_var=LD_LIBRARY_PATH
7231: shlibpath_overrides_runpath=no
7232: # This implies no fast_install, which is unacceptable.
7233: # Some rework will be needed to allow for fast_install
7234: # before this can be enabled.
7235: hardcode_into_libs=yes
7236:
7237: # We used to test for /lib/ld.so.1 and disable shared libraries on
7238: # powerpc, because MkLinux only supported shared libraries with the
7239: # GNU dynamic linker. Since this was broken with cross compilers,
7240: # most powerpc-linux boxes support dynamic linking these days and
7241: # people can always --disable-shared, the test was removed, and we
7242: # assume the GNU/Linux dynamic linker is in use.
7243: dynamic_linker='GNU/Linux ld.so'
7244: ;;
7245:
7246: netbsd*)
7247: version_type=sunos
7248: need_lib_prefix=no
7249: need_version=no
7250: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7251: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7252: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7253: dynamic_linker='NetBSD (a.out) ld.so'
7254: else
7255: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7256: soname_spec='${libname}${release}.so$major'
7257: dynamic_linker='NetBSD ld.elf_so'
7258: fi
7259: shlibpath_var=LD_LIBRARY_PATH
7260: shlibpath_overrides_runpath=yes
7261: hardcode_into_libs=yes
7262: ;;
7263:
7264: newsos6)
7265: version_type=linux
7266: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7267: shlibpath_var=LD_LIBRARY_PATH
7268: shlibpath_overrides_runpath=yes
7269: ;;
7270:
7271: openbsd*)
7272: version_type=sunos
7273: need_lib_prefix=no
7274: need_version=no
7275: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7276: case "$host_os" in
7277: openbsd2.[89] | openbsd2.[89].*)
7278: shlibpath_overrides_runpath=no
7279: ;;
7280: *)
7281: shlibpath_overrides_runpath=yes
7282: ;;
7283: esac
7284: else
7285: shlibpath_overrides_runpath=yes
7286: fi
7287: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7288: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7289: shlibpath_var=LD_LIBRARY_PATH
7290: ;;
7291:
7292: os2*)
7293: libname_spec='$name'
7294: need_lib_prefix=no
7295: library_names_spec='$libname.dll $libname.a'
7296: dynamic_linker='OS/2 ld.exe'
7297: shlibpath_var=LIBPATH
7298: ;;
7299:
7300: osf3* | osf4* | osf5*)
7301: version_type=osf
7302: need_version=no
7303: soname_spec='${libname}${release}.so$major'
7304: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7305: shlibpath_var=LD_LIBRARY_PATH
7306: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7307: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7308: hardcode_into_libs=yes
7309: ;;
7310:
7311: sco3.2v5*)
7312: version_type=osf
7313: soname_spec='${libname}${release}.so$major'
7314: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7315: shlibpath_var=LD_LIBRARY_PATH
7316: ;;
7317:
7318: solaris*)
7319: version_type=linux
7320: need_lib_prefix=no
7321: need_version=no
7322: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7323: soname_spec='${libname}${release}.so$major'
7324: shlibpath_var=LD_LIBRARY_PATH
7325: shlibpath_overrides_runpath=yes
7326: hardcode_into_libs=yes
7327: # ldd complains unless libraries are executable
7328: postinstall_cmds='chmod +x $lib'
7329: ;;
7330:
7331: sunos4*)
7332: version_type=sunos
7333: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7334: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7335: shlibpath_var=LD_LIBRARY_PATH
7336: shlibpath_overrides_runpath=yes
7337: if test "$with_gnu_ld" = yes; then
7338: need_lib_prefix=no
7339: fi
7340: need_version=yes
7341: ;;
7342:
7343: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7344: version_type=linux
7345: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7346: soname_spec='${libname}${release}.so$major'
7347: shlibpath_var=LD_LIBRARY_PATH
7348: case $host_vendor in
7349: sni)
7350: shlibpath_overrides_runpath=no
7351: need_lib_prefix=no
7352: export_dynamic_flag_spec='${wl}-Blargedynsym'
7353: runpath_var=LD_RUN_PATH
7354: ;;
7355: siemens)
7356: need_lib_prefix=no
7357: ;;
7358: motorola)
7359: need_lib_prefix=no
7360: need_version=no
7361: shlibpath_overrides_runpath=no
7362: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7363: ;;
7364: esac
7365: ;;
7366:
7367: uts4*)
7368: version_type=linux
7369: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7370: soname_spec='${libname}${release}.so$major'
7371: shlibpath_var=LD_LIBRARY_PATH
7372: ;;
7373:
7374: dgux*)
7375: version_type=linux
7376: need_lib_prefix=no
7377: need_version=no
7378: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7379: soname_spec='${libname}${release}.so$major'
7380: shlibpath_var=LD_LIBRARY_PATH
7381: ;;
7382:
7383: sysv4*MP*)
7384: if test -d /usr/nec ;then
7385: version_type=linux
7386: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7387: soname_spec='$libname.so.$major'
7388: shlibpath_var=LD_LIBRARY_PATH
7389: fi
7390: ;;
7391:
7392: *)
7393: dynamic_linker=no
7394: ;;
7395: esac
7396: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7397: echo "${ECHO_T}$dynamic_linker" >&6
7398: test "$dynamic_linker" = no && can_build_shared=no
7399: ##
7400: ## END FIXME
7401:
7402: ## FIXME: this should be a separate macro
7403: ##
7404: # Report the final consequences.
7405: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7406: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7407: echo "$as_me:$LINENO: result: $can_build_shared" >&5
7408: echo "${ECHO_T}$can_build_shared" >&6
7409: ##
7410: ## END FIXME
7411:
7412: ## FIXME: this should be a separate macro
7413: ##
7414: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7415: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7416: test "$can_build_shared" = "no" && enable_shared=no
7417:
7418: # On AIX, shared libraries and static libraries use the same namespace, and
7419: # are all built from PIC.
7420: case "$host_os" in
7421: aix3*)
7422: test "$enable_shared" = yes && enable_static=no
7423: if test -n "$RANLIB"; then
7424: archive_cmds="$archive_cmds~\$RANLIB \$lib"
7425: postinstall_cmds='$RANLIB $lib'
7426: fi
7427: ;;
7428:
7429: aix4*)
7430: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7431: test "$enable_shared" = yes && enable_static=no
7432: fi
7433: ;;
7434: esac
7435: echo "$as_me:$LINENO: result: $enable_shared" >&5
7436: echo "${ECHO_T}$enable_shared" >&6
7437: ##
7438: ## END FIXME
7439:
7440: ## FIXME: this should be a separate macro
7441: ##
7442: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7443: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7444: # Make sure either enable_shared or enable_static is yes.
7445: test "$enable_shared" = yes || enable_static=yes
7446: echo "$as_me:$LINENO: result: $enable_static" >&5
7447: echo "${ECHO_T}$enable_static" >&6
7448: ##
7449: ## END FIXME
7450:
7451: if test "$hardcode_action" = relink; then
7452: # Fast installation is not supported
7453: enable_fast_install=no
7454: elif test "$shlibpath_overrides_runpath" = yes ||
7455: test "$enable_shared" = no; then
7456: # Fast installation is not necessary
7457: enable_fast_install=needless
7458: fi
7459:
7460: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7461: if test "$GCC" = yes; then
7462: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7463: fi
7464:
7465: if test "x$enable_dlopen" != xyes; then
7466: enable_dlopen=unknown
7467: enable_dlopen_self=unknown
7468: enable_dlopen_self_static=unknown
7469: else
7470: lt_cv_dlopen=no
7471: lt_cv_dlopen_libs=
7472:
7473: case $host_os in
7474: beos*)
7475: lt_cv_dlopen="load_add_on"
7476: lt_cv_dlopen_libs=
7477: lt_cv_dlopen_self=yes
7478: ;;
7479:
7480: cygwin* | mingw* | pw32*)
7481: lt_cv_dlopen="LoadLibrary"
7482: lt_cv_dlopen_libs=
7483: ;;
7484:
7485: *)
7486: echo "$as_me:$LINENO: checking for shl_load" >&5
7487: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7488: if test "${ac_cv_func_shl_load+set}" = set; then
7489: echo $ECHO_N "(cached) $ECHO_C" >&6
7490: else
7491: cat >conftest.$ac_ext <<_ACEOF
7492: /* confdefs.h. */
7493: _ACEOF
7494: cat confdefs.h >>conftest.$ac_ext
7495: cat >>conftest.$ac_ext <<_ACEOF
7496: /* end confdefs.h. */
7497: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7498: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7499: #define shl_load innocuous_shl_load
7500:
7501: /* System header to define __stub macros and hopefully few prototypes,
7502: which can conflict with char shl_load (); below.
7503: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7504: <limits.h> exists even on freestanding compilers. */
7505:
7506: #ifdef __STDC__
7507: # include <limits.h>
7508: #else
7509: # include <assert.h>
7510: #endif
7511:
7512: #undef shl_load
7513:
7514: /* Override any gcc2 internal prototype to avoid an error. */
7515: #ifdef __cplusplus
7516: extern "C"
7517: {
7518: #endif
7519: /* We use char because int might match the return type of a gcc2
7520: builtin and then its argument prototype would still apply. */
7521: char shl_load ();
7522: /* The GNU C library defines this for functions which it implements
7523: to always fail with ENOSYS. Some functions are actually named
7524: something starting with __ and the normal name is an alias. */
7525: #if defined (__stub_shl_load) || defined (__stub___shl_load)
7526: choke me
7527: #else
7528: char (*f) () = shl_load;
7529: #endif
7530: #ifdef __cplusplus
7531: }
7532: #endif
7533:
7534: int
7535: main ()
7536: {
7537: return f != shl_load;
7538: ;
7539: return 0;
7540: }
7541: _ACEOF
7542: rm -f conftest.$ac_objext conftest$ac_exeext
7543: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544: (eval $ac_link) 2>conftest.er1
7545: ac_status=$?
7546: grep -v '^ *+' conftest.er1 >conftest.err
7547: rm -f conftest.er1
7548: cat conftest.err >&5
7549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550: (exit $ac_status); } &&
7551: { ac_try='test -z "$ac_c_werror_flag"
7552: || test ! -s conftest.err'
7553: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554: (eval $ac_try) 2>&5
7555: ac_status=$?
7556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557: (exit $ac_status); }; } &&
7558: { ac_try='test -s conftest$ac_exeext'
7559: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560: (eval $ac_try) 2>&5
7561: ac_status=$?
7562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563: (exit $ac_status); }; }; then
7564: ac_cv_func_shl_load=yes
7565: else
7566: echo "$as_me: failed program was:" >&5
7567: sed 's/^/| /' conftest.$ac_ext >&5
7568:
7569: ac_cv_func_shl_load=no
7570: fi
7571: rm -f conftest.err conftest.$ac_objext \
7572: conftest$ac_exeext conftest.$ac_ext
7573: fi
7574: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7575: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7576: if test $ac_cv_func_shl_load = yes; then
7577: lt_cv_dlopen="shl_load"
7578: else
7579: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7580: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7581: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7582: echo $ECHO_N "(cached) $ECHO_C" >&6
7583: else
7584: ac_check_lib_save_LIBS=$LIBS
7585: LIBS="-ldld $LIBS"
7586: cat >conftest.$ac_ext <<_ACEOF
7587: /* confdefs.h. */
7588: _ACEOF
7589: cat confdefs.h >>conftest.$ac_ext
7590: cat >>conftest.$ac_ext <<_ACEOF
7591: /* end confdefs.h. */
7592:
7593: /* Override any gcc2 internal prototype to avoid an error. */
7594: #ifdef __cplusplus
7595: extern "C"
7596: #endif
7597: /* We use char because int might match the return type of a gcc2
7598: builtin and then its argument prototype would still apply. */
7599: char shl_load ();
7600: int
7601: main ()
7602: {
7603: shl_load ();
7604: ;
7605: return 0;
7606: }
7607: _ACEOF
7608: rm -f conftest.$ac_objext conftest$ac_exeext
7609: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610: (eval $ac_link) 2>conftest.er1
7611: ac_status=$?
7612: grep -v '^ *+' conftest.er1 >conftest.err
7613: rm -f conftest.er1
7614: cat conftest.err >&5
7615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616: (exit $ac_status); } &&
7617: { ac_try='test -z "$ac_c_werror_flag"
7618: || test ! -s conftest.err'
7619: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620: (eval $ac_try) 2>&5
7621: ac_status=$?
7622: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623: (exit $ac_status); }; } &&
7624: { ac_try='test -s conftest$ac_exeext'
7625: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626: (eval $ac_try) 2>&5
7627: ac_status=$?
7628: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629: (exit $ac_status); }; }; then
7630: ac_cv_lib_dld_shl_load=yes
7631: else
7632: echo "$as_me: failed program was:" >&5
7633: sed 's/^/| /' conftest.$ac_ext >&5
7634:
7635: ac_cv_lib_dld_shl_load=no
7636: fi
7637: rm -f conftest.err conftest.$ac_objext \
7638: conftest$ac_exeext conftest.$ac_ext
7639: LIBS=$ac_check_lib_save_LIBS
7640: fi
7641: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7642: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7643: if test $ac_cv_lib_dld_shl_load = yes; then
7644: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7645: else
7646: echo "$as_me:$LINENO: checking for dlopen" >&5
7647: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7648: if test "${ac_cv_func_dlopen+set}" = set; then
7649: echo $ECHO_N "(cached) $ECHO_C" >&6
7650: else
7651: cat >conftest.$ac_ext <<_ACEOF
7652: /* confdefs.h. */
7653: _ACEOF
7654: cat confdefs.h >>conftest.$ac_ext
7655: cat >>conftest.$ac_ext <<_ACEOF
7656: /* end confdefs.h. */
7657: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7658: For example, HP-UX 11i <limits.h> declares gettimeofday. */
7659: #define dlopen innocuous_dlopen
7660:
7661: /* System header to define __stub macros and hopefully few prototypes,
7662: which can conflict with char dlopen (); below.
7663: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664: <limits.h> exists even on freestanding compilers. */
7665:
7666: #ifdef __STDC__
7667: # include <limits.h>
7668: #else
7669: # include <assert.h>
7670: #endif
7671:
7672: #undef dlopen
7673:
7674: /* Override any gcc2 internal prototype to avoid an error. */
7675: #ifdef __cplusplus
7676: extern "C"
7677: {
7678: #endif
7679: /* We use char because int might match the return type of a gcc2
7680: builtin and then its argument prototype would still apply. */
7681: char dlopen ();
7682: /* The GNU C library defines this for functions which it implements
7683: to always fail with ENOSYS. Some functions are actually named
7684: something starting with __ and the normal name is an alias. */
7685: #if defined (__stub_dlopen) || defined (__stub___dlopen)
7686: choke me
7687: #else
7688: char (*f) () = dlopen;
7689: #endif
7690: #ifdef __cplusplus
7691: }
7692: #endif
7693:
7694: int
7695: main ()
7696: {
7697: return f != dlopen;
7698: ;
7699: return 0;
7700: }
7701: _ACEOF
7702: rm -f conftest.$ac_objext conftest$ac_exeext
7703: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704: (eval $ac_link) 2>conftest.er1
7705: ac_status=$?
7706: grep -v '^ *+' conftest.er1 >conftest.err
7707: rm -f conftest.er1
7708: cat conftest.err >&5
7709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710: (exit $ac_status); } &&
7711: { ac_try='test -z "$ac_c_werror_flag"
7712: || test ! -s conftest.err'
7713: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714: (eval $ac_try) 2>&5
7715: ac_status=$?
7716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717: (exit $ac_status); }; } &&
7718: { ac_try='test -s conftest$ac_exeext'
7719: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720: (eval $ac_try) 2>&5
7721: ac_status=$?
7722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723: (exit $ac_status); }; }; then
7724: ac_cv_func_dlopen=yes
7725: else
7726: echo "$as_me: failed program was:" >&5
7727: sed 's/^/| /' conftest.$ac_ext >&5
7728:
7729: ac_cv_func_dlopen=no
7730: fi
7731: rm -f conftest.err conftest.$ac_objext \
7732: conftest$ac_exeext conftest.$ac_ext
7733: fi
7734: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7735: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7736: if test $ac_cv_func_dlopen = yes; then
7737: lt_cv_dlopen="dlopen"
7738: else
7739: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7740: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7741: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7742: echo $ECHO_N "(cached) $ECHO_C" >&6
7743: else
7744: ac_check_lib_save_LIBS=$LIBS
7745: LIBS="-ldl $LIBS"
7746: cat >conftest.$ac_ext <<_ACEOF
7747: /* confdefs.h. */
7748: _ACEOF
7749: cat confdefs.h >>conftest.$ac_ext
7750: cat >>conftest.$ac_ext <<_ACEOF
7751: /* end confdefs.h. */
7752:
7753: /* Override any gcc2 internal prototype to avoid an error. */
7754: #ifdef __cplusplus
7755: extern "C"
7756: #endif
7757: /* We use char because int might match the return type of a gcc2
7758: builtin and then its argument prototype would still apply. */
7759: char dlopen ();
7760: int
7761: main ()
7762: {
7763: dlopen ();
7764: ;
7765: return 0;
7766: }
7767: _ACEOF
7768: rm -f conftest.$ac_objext conftest$ac_exeext
7769: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770: (eval $ac_link) 2>conftest.er1
7771: ac_status=$?
7772: grep -v '^ *+' conftest.er1 >conftest.err
7773: rm -f conftest.er1
7774: cat conftest.err >&5
7775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776: (exit $ac_status); } &&
7777: { ac_try='test -z "$ac_c_werror_flag"
7778: || test ! -s conftest.err'
7779: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780: (eval $ac_try) 2>&5
7781: ac_status=$?
7782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783: (exit $ac_status); }; } &&
7784: { ac_try='test -s conftest$ac_exeext'
7785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786: (eval $ac_try) 2>&5
7787: ac_status=$?
7788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789: (exit $ac_status); }; }; then
7790: ac_cv_lib_dl_dlopen=yes
7791: else
7792: echo "$as_me: failed program was:" >&5
7793: sed 's/^/| /' conftest.$ac_ext >&5
7794:
7795: ac_cv_lib_dl_dlopen=no
7796: fi
7797: rm -f conftest.err conftest.$ac_objext \
7798: conftest$ac_exeext conftest.$ac_ext
7799: LIBS=$ac_check_lib_save_LIBS
7800: fi
7801: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7802: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7803: if test $ac_cv_lib_dl_dlopen = yes; then
7804: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7805: else
7806: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7807: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7808: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7809: echo $ECHO_N "(cached) $ECHO_C" >&6
7810: else
7811: ac_check_lib_save_LIBS=$LIBS
7812: LIBS="-lsvld $LIBS"
7813: cat >conftest.$ac_ext <<_ACEOF
7814: /* confdefs.h. */
7815: _ACEOF
7816: cat confdefs.h >>conftest.$ac_ext
7817: cat >>conftest.$ac_ext <<_ACEOF
7818: /* end confdefs.h. */
7819:
7820: /* Override any gcc2 internal prototype to avoid an error. */
7821: #ifdef __cplusplus
7822: extern "C"
7823: #endif
7824: /* We use char because int might match the return type of a gcc2
7825: builtin and then its argument prototype would still apply. */
7826: char dlopen ();
7827: int
7828: main ()
7829: {
7830: dlopen ();
7831: ;
7832: return 0;
7833: }
7834: _ACEOF
7835: rm -f conftest.$ac_objext conftest$ac_exeext
7836: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7837: (eval $ac_link) 2>conftest.er1
7838: ac_status=$?
7839: grep -v '^ *+' conftest.er1 >conftest.err
7840: rm -f conftest.er1
7841: cat conftest.err >&5
7842: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843: (exit $ac_status); } &&
7844: { ac_try='test -z "$ac_c_werror_flag"
7845: || test ! -s conftest.err'
7846: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847: (eval $ac_try) 2>&5
7848: ac_status=$?
7849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850: (exit $ac_status); }; } &&
7851: { ac_try='test -s conftest$ac_exeext'
7852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853: (eval $ac_try) 2>&5
7854: ac_status=$?
7855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856: (exit $ac_status); }; }; then
7857: ac_cv_lib_svld_dlopen=yes
7858: else
7859: echo "$as_me: failed program was:" >&5
7860: sed 's/^/| /' conftest.$ac_ext >&5
7861:
7862: ac_cv_lib_svld_dlopen=no
7863: fi
7864: rm -f conftest.err conftest.$ac_objext \
7865: conftest$ac_exeext conftest.$ac_ext
7866: LIBS=$ac_check_lib_save_LIBS
7867: fi
7868: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7869: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7870: if test $ac_cv_lib_svld_dlopen = yes; then
7871: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7872: else
7873: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7874: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7875: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7876: echo $ECHO_N "(cached) $ECHO_C" >&6
7877: else
7878: ac_check_lib_save_LIBS=$LIBS
7879: LIBS="-ldld $LIBS"
7880: cat >conftest.$ac_ext <<_ACEOF
7881: /* confdefs.h. */
7882: _ACEOF
7883: cat confdefs.h >>conftest.$ac_ext
7884: cat >>conftest.$ac_ext <<_ACEOF
7885: /* end confdefs.h. */
7886:
7887: /* Override any gcc2 internal prototype to avoid an error. */
7888: #ifdef __cplusplus
7889: extern "C"
7890: #endif
7891: /* We use char because int might match the return type of a gcc2
7892: builtin and then its argument prototype would still apply. */
7893: char dld_link ();
7894: int
7895: main ()
7896: {
7897: dld_link ();
7898: ;
7899: return 0;
7900: }
7901: _ACEOF
7902: rm -f conftest.$ac_objext conftest$ac_exeext
7903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904: (eval $ac_link) 2>conftest.er1
7905: ac_status=$?
7906: grep -v '^ *+' conftest.er1 >conftest.err
7907: rm -f conftest.er1
7908: cat conftest.err >&5
7909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910: (exit $ac_status); } &&
7911: { ac_try='test -z "$ac_c_werror_flag"
7912: || test ! -s conftest.err'
7913: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914: (eval $ac_try) 2>&5
7915: ac_status=$?
7916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917: (exit $ac_status); }; } &&
7918: { ac_try='test -s conftest$ac_exeext'
7919: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920: (eval $ac_try) 2>&5
7921: ac_status=$?
7922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923: (exit $ac_status); }; }; then
7924: ac_cv_lib_dld_dld_link=yes
7925: else
7926: echo "$as_me: failed program was:" >&5
7927: sed 's/^/| /' conftest.$ac_ext >&5
7928:
7929: ac_cv_lib_dld_dld_link=no
7930: fi
7931: rm -f conftest.err conftest.$ac_objext \
7932: conftest$ac_exeext conftest.$ac_ext
7933: LIBS=$ac_check_lib_save_LIBS
7934: fi
7935: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7936: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7937: if test $ac_cv_lib_dld_dld_link = yes; then
7938: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7939: fi
7940:
7941:
7942: fi
7943:
7944:
7945: fi
7946:
7947:
7948: fi
7949:
7950:
7951: fi
7952:
7953:
7954: fi
7955:
7956: ;;
7957: esac
7958:
7959: if test "x$lt_cv_dlopen" != xno; then
7960: enable_dlopen=yes
7961: else
7962: enable_dlopen=no
7963: fi
7964:
7965: case $lt_cv_dlopen in
7966: dlopen)
7967: save_CPPFLAGS="$CPPFLAGS"
7968: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7969:
7970: save_LDFLAGS="$LDFLAGS"
7971: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7972:
7973: save_LIBS="$LIBS"
7974: LIBS="$lt_cv_dlopen_libs $LIBS"
7975:
7976: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7977: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7978: if test "${lt_cv_dlopen_self+set}" = set; then
7979: echo $ECHO_N "(cached) $ECHO_C" >&6
7980: else
7981: if test "$cross_compiling" = yes; then :
7982: lt_cv_dlopen_self=cross
7983: else
7984: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7985: lt_status=$lt_dlunknown
7986: cat > conftest.$ac_ext <<EOF
1.6 ! misha 7987: #line 7987 "configure"
1.1 misha 7988: #include "confdefs.h"
7989:
7990: #if HAVE_DLFCN_H
7991: #include <dlfcn.h>
7992: #endif
7993:
7994: #include <stdio.h>
7995:
7996: #ifdef RTLD_GLOBAL
7997: # define LT_DLGLOBAL RTLD_GLOBAL
7998: #else
7999: # ifdef DL_GLOBAL
8000: # define LT_DLGLOBAL DL_GLOBAL
8001: # else
8002: # define LT_DLGLOBAL 0
8003: # endif
8004: #endif
8005:
8006: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8007: find out it does not work in some platform. */
8008: #ifndef LT_DLLAZY_OR_NOW
8009: # ifdef RTLD_LAZY
8010: # define LT_DLLAZY_OR_NOW RTLD_LAZY
8011: # else
8012: # ifdef DL_LAZY
8013: # define LT_DLLAZY_OR_NOW DL_LAZY
8014: # else
8015: # ifdef RTLD_NOW
8016: # define LT_DLLAZY_OR_NOW RTLD_NOW
8017: # else
8018: # ifdef DL_NOW
8019: # define LT_DLLAZY_OR_NOW DL_NOW
8020: # else
8021: # define LT_DLLAZY_OR_NOW 0
8022: # endif
8023: # endif
8024: # endif
8025: # endif
8026: #endif
8027:
8028: #ifdef __cplusplus
8029: extern "C" void exit (int);
8030: #endif
8031:
8032: void fnord() { int i=42;}
8033: int main ()
8034: {
8035: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8036: int status = $lt_dlunknown;
8037:
8038: if (self)
8039: {
8040: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8041: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8042: /* dlclose (self); */
8043: }
8044:
8045: exit (status);
8046: }
8047: EOF
8048: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8049: (eval $ac_link) 2>&5
8050: ac_status=$?
8051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8053: (./conftest; exit; ) 2>/dev/null
8054: lt_status=$?
8055: case x$lt_status in
8056: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8057: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8058: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8059: esac
8060: else :
8061: # compilation failed
8062: lt_cv_dlopen_self=no
8063: fi
8064: fi
8065: rm -fr conftest*
8066:
8067:
8068: fi
8069: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8070: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8071:
8072: if test "x$lt_cv_dlopen_self" = xyes; then
8073: LDFLAGS="$LDFLAGS $link_static_flag"
8074: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8075: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8076: if test "${lt_cv_dlopen_self_static+set}" = set; then
8077: echo $ECHO_N "(cached) $ECHO_C" >&6
8078: else
8079: if test "$cross_compiling" = yes; then :
8080: lt_cv_dlopen_self_static=cross
8081: else
8082: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8083: lt_status=$lt_dlunknown
8084: cat > conftest.$ac_ext <<EOF
1.6 ! misha 8085: #line 8085 "configure"
1.1 misha 8086: #include "confdefs.h"
8087:
8088: #if HAVE_DLFCN_H
8089: #include <dlfcn.h>
8090: #endif
8091:
8092: #include <stdio.h>
8093:
8094: #ifdef RTLD_GLOBAL
8095: # define LT_DLGLOBAL RTLD_GLOBAL
8096: #else
8097: # ifdef DL_GLOBAL
8098: # define LT_DLGLOBAL DL_GLOBAL
8099: # else
8100: # define LT_DLGLOBAL 0
8101: # endif
8102: #endif
8103:
8104: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8105: find out it does not work in some platform. */
8106: #ifndef LT_DLLAZY_OR_NOW
8107: # ifdef RTLD_LAZY
8108: # define LT_DLLAZY_OR_NOW RTLD_LAZY
8109: # else
8110: # ifdef DL_LAZY
8111: # define LT_DLLAZY_OR_NOW DL_LAZY
8112: # else
8113: # ifdef RTLD_NOW
8114: # define LT_DLLAZY_OR_NOW RTLD_NOW
8115: # else
8116: # ifdef DL_NOW
8117: # define LT_DLLAZY_OR_NOW DL_NOW
8118: # else
8119: # define LT_DLLAZY_OR_NOW 0
8120: # endif
8121: # endif
8122: # endif
8123: # endif
8124: #endif
8125:
8126: #ifdef __cplusplus
8127: extern "C" void exit (int);
8128: #endif
8129:
8130: void fnord() { int i=42;}
8131: int main ()
8132: {
8133: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8134: int status = $lt_dlunknown;
8135:
8136: if (self)
8137: {
8138: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8139: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8140: /* dlclose (self); */
8141: }
8142:
8143: exit (status);
8144: }
8145: EOF
8146: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147: (eval $ac_link) 2>&5
8148: ac_status=$?
8149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8151: (./conftest; exit; ) 2>/dev/null
8152: lt_status=$?
8153: case x$lt_status in
8154: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8155: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8156: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8157: esac
8158: else :
8159: # compilation failed
8160: lt_cv_dlopen_self_static=no
8161: fi
8162: fi
8163: rm -fr conftest*
8164:
8165:
8166: fi
8167: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8168: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8169: fi
8170:
8171: CPPFLAGS="$save_CPPFLAGS"
8172: LDFLAGS="$save_LDFLAGS"
8173: LIBS="$save_LIBS"
8174: ;;
8175: esac
8176:
8177: case $lt_cv_dlopen_self in
8178: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8179: *) enable_dlopen_self=unknown ;;
8180: esac
8181:
8182: case $lt_cv_dlopen_self_static in
8183: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8184: *) enable_dlopen_self_static=unknown ;;
8185: esac
8186: fi
8187:
8188:
8189: ## FIXME: this should be a separate macro
8190: ##
8191: if test "$enable_shared" = yes && test "$GCC" = yes; then
8192: case $archive_cmds in
8193: *'~'*)
8194: # FIXME: we may have to deal with multi-command sequences.
8195: ;;
8196: '$CC '*)
8197: # Test whether the compiler implicitly links with -lc since on some
8198: # systems, -lgcc has to come before -lc. If gcc already passes -lc
8199: # to ld, don't add -lc before -lgcc.
8200: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8201: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8202: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8203: echo $ECHO_N "(cached) $ECHO_C" >&6
8204: else
8205: $rm conftest*
8206: echo 'static int dummy;' > conftest.$ac_ext
8207:
8208: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209: (eval $ac_compile) 2>&5
8210: ac_status=$?
8211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212: (exit $ac_status); }; then
8213: soname=conftest
8214: lib=conftest
8215: libobjs=conftest.$ac_objext
8216: deplibs=
8217: wl=$lt_cv_prog_cc_wl
8218: compiler_flags=-v
8219: linker_flags=-v
8220: verstring=
8221: output_objdir=.
8222: libname=conftest
8223: save_allow_undefined_flag=$allow_undefined_flag
8224: allow_undefined_flag=
8225: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8226: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8227: ac_status=$?
8228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229: (exit $ac_status); }
8230: then
8231: lt_cv_archive_cmds_need_lc=no
8232: else
8233: lt_cv_archive_cmds_need_lc=yes
8234: fi
8235: allow_undefined_flag=$save_allow_undefined_flag
8236: else
8237: cat conftest.err 1>&5
8238: fi
8239: fi
8240:
8241: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8242: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8243: ;;
8244: esac
8245: fi
8246: need_lc=${lt_cv_archive_cmds_need_lc-yes}
8247: ##
8248: ## END FIXME
8249:
8250: ## FIXME: this should be a separate macro
8251: ##
8252: # The second clause should only fire when bootstrapping the
8253: # libtool distribution, otherwise you forgot to ship ltmain.sh
8254: # with your package, and you will get complaints that there are
8255: # no rules to generate ltmain.sh.
8256: if test -f "$ltmain"; then
8257: :
8258: else
8259: # If there is no Makefile yet, we rely on a make rule to execute
8260: # `config.status --recheck' to rerun these tests and create the
8261: # libtool script then.
8262: test -f Makefile && make "$ltmain"
8263: fi
8264:
8265: if test -f "$ltmain"; then
8266: trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8267: $rm -f "${ofile}T"
8268:
8269: echo creating $ofile
8270:
8271: # Now quote all the things that may contain metacharacters while being
8272: # careful not to overquote the AC_SUBSTed values. We take copies of the
8273: # variables and quote the copies for generation of the libtool script.
8274: for var in echo old_CC old_CFLAGS SED \
8275: AR AR_FLAGS CC LD LN_S NM SHELL \
8276: reload_flag reload_cmds wl \
8277: pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8278: thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8279: library_names_spec soname_spec \
8280: RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8281: old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8282: postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8283: old_striplib striplib file_magic_cmd export_symbols_cmds \
8284: deplibs_check_method allow_undefined_flag no_undefined_flag \
8285: finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8286: global_symbol_to_c_name_address \
8287: hardcode_libdir_flag_spec hardcode_libdir_separator \
8288: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8289: compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8290:
8291: case $var in
8292: reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8293: old_postinstall_cmds | old_postuninstall_cmds | \
8294: export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8295: extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8296: postinstall_cmds | postuninstall_cmds | \
8297: finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8298: # Double-quote double-evaled strings.
8299: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8300: ;;
8301: *)
8302: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8303: ;;
8304: esac
8305: done
8306:
8307: cat <<__EOF__ > "${ofile}T"
8308: #! $SHELL
8309:
8310: # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8311: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8312: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8313: #
8314: # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8315: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8316: #
8317: # This program is free software; you can redistribute it and/or modify
8318: # it under the terms of the GNU General Public License as published by
8319: # the Free Software Foundation; either version 2 of the License, or
8320: # (at your option) any later version.
8321: #
8322: # This program is distributed in the hope that it will be useful, but
8323: # WITHOUT ANY WARRANTY; without even the implied warranty of
8324: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8325: # General Public License for more details.
8326: #
8327: # You should have received a copy of the GNU General Public License
8328: # along with this program; if not, write to the Free Software
8329: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8330: #
8331: # As a special exception to the GNU General Public License, if you
8332: # distribute this file as part of a program that contains a
8333: # configuration script generated by Autoconf, you may include it under
8334: # the same distribution terms that you use for the rest of that program.
8335:
8336: # A sed that does not truncate output.
8337: SED=$lt_SED
8338:
8339: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8340: Xsed="${SED} -e s/^X//"
8341:
8342: # The HP-UX ksh and POSIX shell print the target directory to stdout
8343: # if CDPATH is set.
8344: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8345:
8346: # ### BEGIN LIBTOOL CONFIG
8347:
8348: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8349:
8350: # Shell to use when invoking shell scripts.
8351: SHELL=$lt_SHELL
8352:
8353: # Whether or not to build shared libraries.
8354: build_libtool_libs=$enable_shared
8355:
8356: # Whether or not to build static libraries.
8357: build_old_libs=$enable_static
8358:
8359: # Whether or not to add -lc for building shared libraries.
8360: build_libtool_need_lc=$need_lc
8361:
8362: # Whether or not to optimize for fast installation.
8363: fast_install=$enable_fast_install
8364:
8365: # The host system.
8366: host_alias=$host_alias
8367: host=$host
8368:
8369: # An echo program that does not interpret backslashes.
8370: echo=$lt_echo
8371:
8372: # The archiver.
8373: AR=$lt_AR
8374: AR_FLAGS=$lt_AR_FLAGS
8375:
8376: # The default C compiler.
8377: CC=$lt_CC
8378:
8379: # Is the compiler the GNU C compiler?
8380: with_gcc=$GCC
8381:
8382: # The linker used to build libraries.
8383: LD=$lt_LD
8384:
8385: # Whether we need hard or soft links.
8386: LN_S=$lt_LN_S
8387:
8388: # A BSD-compatible nm program.
8389: NM=$lt_NM
8390:
8391: # A symbol stripping program
8392: STRIP=$STRIP
8393:
8394: # Used to examine libraries when file_magic_cmd begins "file"
8395: MAGIC_CMD=$MAGIC_CMD
8396:
8397: # Used on cygwin: DLL creation program.
8398: DLLTOOL="$DLLTOOL"
8399:
8400: # Used on cygwin: object dumper.
8401: OBJDUMP="$OBJDUMP"
8402:
8403: # Used on cygwin: assembler.
8404: AS="$AS"
8405:
8406: # The name of the directory that contains temporary libtool files.
8407: objdir=$objdir
8408:
8409: # How to create reloadable object files.
8410: reload_flag=$lt_reload_flag
8411: reload_cmds=$lt_reload_cmds
8412:
8413: # How to pass a linker flag through the compiler.
8414: wl=$lt_wl
8415:
8416: # Object file suffix (normally "o").
8417: objext="$ac_objext"
8418:
8419: # Old archive suffix (normally "a").
8420: libext="$libext"
8421:
8422: # Executable file suffix (normally "").
8423: exeext="$exeext"
8424:
8425: # Additional compiler flags for building library objects.
8426: pic_flag=$lt_pic_flag
8427: pic_mode=$pic_mode
8428:
8429: # Does compiler simultaneously support -c and -o options?
8430: compiler_c_o=$lt_compiler_c_o
8431:
8432: # Can we write directly to a .lo ?
8433: compiler_o_lo=$lt_compiler_o_lo
8434:
8435: # Must we lock files when doing compilation ?
8436: need_locks=$lt_need_locks
8437:
8438: # Do we need the lib prefix for modules?
8439: need_lib_prefix=$need_lib_prefix
8440:
8441: # Do we need a version for libraries?
8442: need_version=$need_version
8443:
8444: # Whether dlopen is supported.
8445: dlopen_support=$enable_dlopen
8446:
8447: # Whether dlopen of programs is supported.
8448: dlopen_self=$enable_dlopen_self
8449:
8450: # Whether dlopen of statically linked programs is supported.
8451: dlopen_self_static=$enable_dlopen_self_static
8452:
8453: # Compiler flag to prevent dynamic linking.
8454: link_static_flag=$lt_link_static_flag
8455:
8456: # Compiler flag to turn off builtin functions.
8457: no_builtin_flag=$lt_no_builtin_flag
8458:
8459: # Compiler flag to allow reflexive dlopens.
8460: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8461:
8462: # Compiler flag to generate shared objects directly from archives.
8463: whole_archive_flag_spec=$lt_whole_archive_flag_spec
8464:
8465: # Compiler flag to generate thread-safe objects.
8466: thread_safe_flag_spec=$lt_thread_safe_flag_spec
8467:
8468: # Library versioning type.
8469: version_type=$version_type
8470:
8471: # Format of library name prefix.
8472: libname_spec=$lt_libname_spec
8473:
8474: # List of archive names. First name is the real one, the rest are links.
8475: # The last name is the one that the linker finds with -lNAME.
8476: library_names_spec=$lt_library_names_spec
8477:
8478: # The coded name of the library, if different from the real name.
8479: soname_spec=$lt_soname_spec
8480:
8481: # Commands used to build and install an old-style archive.
8482: RANLIB=$lt_RANLIB
8483: old_archive_cmds=$lt_old_archive_cmds
8484: old_postinstall_cmds=$lt_old_postinstall_cmds
8485: old_postuninstall_cmds=$lt_old_postuninstall_cmds
8486:
8487: # Create an old-style archive from a shared archive.
8488: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8489:
8490: # Create a temporary old-style archive to link instead of a shared archive.
8491: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8492:
8493: # Commands used to build and install a shared archive.
8494: archive_cmds=$lt_archive_cmds
8495: archive_expsym_cmds=$lt_archive_expsym_cmds
8496: postinstall_cmds=$lt_postinstall_cmds
8497: postuninstall_cmds=$lt_postuninstall_cmds
8498:
8499: # Commands to strip libraries.
8500: old_striplib=$lt_old_striplib
8501: striplib=$lt_striplib
8502:
8503: # Method to check whether dependent libraries are shared objects.
8504: deplibs_check_method=$lt_deplibs_check_method
8505:
8506: # Command to use when deplibs_check_method == file_magic.
8507: file_magic_cmd=$lt_file_magic_cmd
8508:
8509: # Flag that allows shared libraries with undefined symbols to be built.
8510: allow_undefined_flag=$lt_allow_undefined_flag
8511:
8512: # Flag that forces no undefined symbols.
8513: no_undefined_flag=$lt_no_undefined_flag
8514:
8515: # Commands used to finish a libtool library installation in a directory.
8516: finish_cmds=$lt_finish_cmds
8517:
8518: # Same as above, but a single script fragment to be evaled but not shown.
8519: finish_eval=$lt_finish_eval
8520:
8521: # Take the output of nm and produce a listing of raw symbols and C names.
8522: global_symbol_pipe=$lt_global_symbol_pipe
8523:
8524: # Transform the output of nm in a proper C declaration
8525: global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8526:
8527: # Transform the output of nm in a C name address pair
8528: global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8529:
8530: # This is the shared library runtime path variable.
8531: runpath_var=$runpath_var
8532:
8533: # This is the shared library path variable.
8534: shlibpath_var=$shlibpath_var
8535:
8536: # Is shlibpath searched before the hard-coded library search path?
8537: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8538:
8539: # How to hardcode a shared library path into an executable.
8540: hardcode_action=$hardcode_action
8541:
8542: # Whether we should hardcode library paths into libraries.
8543: hardcode_into_libs=$hardcode_into_libs
8544:
8545: # Flag to hardcode \$libdir into a binary during linking.
8546: # This must work even if \$libdir does not exist.
8547: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8548:
8549: # Whether we need a single -rpath flag with a separated argument.
8550: hardcode_libdir_separator=$lt_hardcode_libdir_separator
8551:
8552: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8553: # resulting binary.
8554: hardcode_direct=$hardcode_direct
8555:
8556: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8557: # resulting binary.
8558: hardcode_minus_L=$hardcode_minus_L
8559:
8560: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8561: # the resulting binary.
8562: hardcode_shlibpath_var=$hardcode_shlibpath_var
8563:
8564: # Variables whose values should be saved in libtool wrapper scripts and
8565: # restored at relink time.
8566: variables_saved_for_relink="$variables_saved_for_relink"
8567:
8568: # Whether libtool must link a program against all its dependency libraries.
8569: link_all_deplibs=$link_all_deplibs
8570:
8571: # Compile-time system search path for libraries
8572: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8573:
8574: # Run-time system search path for libraries
8575: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8576:
8577: # Fix the shell variable \$srcfile for the compiler.
8578: fix_srcfile_path="$fix_srcfile_path"
8579:
8580: # Set to yes if exported symbols are required.
8581: always_export_symbols=$always_export_symbols
8582:
8583: # The commands to list exported symbols.
8584: export_symbols_cmds=$lt_export_symbols_cmds
8585:
8586: # The commands to extract the exported symbol list from a shared archive.
8587: extract_expsyms_cmds=$lt_extract_expsyms_cmds
8588:
8589: # Symbols that should not be listed in the preloaded symbols.
8590: exclude_expsyms=$lt_exclude_expsyms
8591:
8592: # Symbols that must always be exported.
8593: include_expsyms=$lt_include_expsyms
8594:
8595: # ### END LIBTOOL CONFIG
8596:
8597: __EOF__
8598:
8599: case $host_os in
8600: aix3*)
8601: cat <<\EOF >> "${ofile}T"
8602:
8603: # AIX sometimes has problems with the GCC collect2 program. For some
8604: # reason, if we set the COLLECT_NAMES environment variable, the problems
8605: # vanish in a puff of smoke.
8606: if test "X${COLLECT_NAMES+set}" != Xset; then
8607: COLLECT_NAMES=
8608: export COLLECT_NAMES
8609: fi
8610: EOF
8611: ;;
8612: esac
8613:
8614: case $host_os in
8615: cygwin* | mingw* | pw32* | os2*)
8616: cat <<'EOF' >> "${ofile}T"
8617: # This is a source program that is used to create dlls on Windows
8618: # Don't remove nor modify the starting and closing comments
8619: # /* ltdll.c starts here */
8620: # #define WIN32_LEAN_AND_MEAN
8621: # #include <windows.h>
8622: # #undef WIN32_LEAN_AND_MEAN
8623: # #include <stdio.h>
8624: #
8625: # #ifndef __CYGWIN__
8626: # # ifdef __CYGWIN32__
8627: # # define __CYGWIN__ __CYGWIN32__
8628: # # endif
8629: # #endif
8630: #
8631: # #ifdef __cplusplus
8632: # extern "C" {
8633: # #endif
8634: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8635: # #ifdef __cplusplus
8636: # }
8637: # #endif
8638: #
8639: # #ifdef __CYGWIN__
8640: # #include <cygwin/cygwin_dll.h>
8641: # DECLARE_CYGWIN_DLL( DllMain );
8642: # #endif
8643: # HINSTANCE __hDllInstance_base;
8644: #
8645: # BOOL APIENTRY
8646: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8647: # {
8648: # __hDllInstance_base = hInst;
8649: # return TRUE;
8650: # }
8651: # /* ltdll.c ends here */
8652: # This is a source program that is used to create import libraries
8653: # on Windows for dlls which lack them. Don't remove nor modify the
8654: # starting and closing comments
8655: # /* impgen.c starts here */
8656: # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8657: #
8658: # This file is part of GNU libtool.
8659: #
8660: # This program is free software; you can redistribute it and/or modify
8661: # it under the terms of the GNU General Public License as published by
8662: # the Free Software Foundation; either version 2 of the License, or
8663: # (at your option) any later version.
8664: #
8665: # This program is distributed in the hope that it will be useful,
8666: # but WITHOUT ANY WARRANTY; without even the implied warranty of
8667: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8668: # GNU General Public License for more details.
8669: #
8670: # You should have received a copy of the GNU General Public License
8671: # along with this program; if not, write to the Free Software
8672: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8673: # */
8674: #
8675: # #include <stdio.h> /* for printf() */
8676: # #include <unistd.h> /* for open(), lseek(), read() */
8677: # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8678: # #include <string.h> /* for strdup() */
8679: #
8680: # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8681: # #ifndef O_BINARY
8682: # #define O_BINARY 0
8683: # #endif
8684: #
8685: # static unsigned int
8686: # pe_get16 (fd, offset)
8687: # int fd;
8688: # int offset;
8689: # {
8690: # unsigned char b[2];
8691: # lseek (fd, offset, SEEK_SET);
8692: # read (fd, b, 2);
8693: # return b[0] + (b[1]<<8);
8694: # }
8695: #
8696: # static unsigned int
8697: # pe_get32 (fd, offset)
8698: # int fd;
8699: # int offset;
8700: # {
8701: # unsigned char b[4];
8702: # lseek (fd, offset, SEEK_SET);
8703: # read (fd, b, 4);
8704: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8705: # }
8706: #
8707: # static unsigned int
8708: # pe_as32 (ptr)
8709: # void *ptr;
8710: # {
8711: # unsigned char *b = ptr;
8712: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8713: # }
8714: #
8715: # int
8716: # main (argc, argv)
8717: # int argc;
8718: # char *argv[];
8719: # {
8720: # int dll;
8721: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8722: # unsigned long export_rva, export_size, nsections, secptr, expptr;
8723: # unsigned long name_rvas, nexp;
8724: # unsigned char *expdata, *erva;
8725: # char *filename, *dll_name;
8726: #
8727: # filename = argv[1];
8728: #
8729: # dll = open(filename, O_RDONLY|O_BINARY);
8730: # if (dll < 1)
8731: # return 1;
8732: #
8733: # dll_name = filename;
8734: #
8735: # for (i=0; filename[i]; i++)
8736: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8737: # dll_name = filename + i +1;
8738: #
8739: # pe_header_offset = pe_get32 (dll, 0x3c);
8740: # opthdr_ofs = pe_header_offset + 4 + 20;
8741: # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8742: #
8743: # if (num_entries < 1) /* no exports */
8744: # return 1;
8745: #
8746: # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8747: # export_size = pe_get32 (dll, opthdr_ofs + 100);
8748: # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8749: # secptr = (pe_header_offset + 4 + 20 +
8750: # pe_get16 (dll, pe_header_offset + 4 + 16));
8751: #
8752: # expptr = 0;
8753: # for (i = 0; i < nsections; i++)
8754: # {
8755: # char sname[8];
8756: # unsigned long secptr1 = secptr + 40 * i;
8757: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8758: # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8759: # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8760: # lseek(dll, secptr1, SEEK_SET);
8761: # read(dll, sname, 8);
8762: # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8763: # {
8764: # expptr = fptr + (export_rva - vaddr);
8765: # if (export_rva + export_size > vaddr + vsize)
8766: # export_size = vsize - (export_rva - vaddr);
8767: # break;
8768: # }
8769: # }
8770: #
8771: # expdata = (unsigned char*)malloc(export_size);
8772: # lseek (dll, expptr, SEEK_SET);
8773: # read (dll, expdata, export_size);
8774: # erva = expdata - export_rva;
8775: #
8776: # nexp = pe_as32 (expdata+24);
8777: # name_rvas = pe_as32 (expdata+32);
8778: #
8779: # printf ("EXPORTS\n");
8780: # for (i = 0; i<nexp; i++)
8781: # {
8782: # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8783: # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8784: # }
8785: #
8786: # return 0;
8787: # }
8788: # /* impgen.c ends here */
8789:
8790: EOF
8791: ;;
8792: esac
8793:
8794: # We use sed instead of cat because bash on DJGPP gets confused if
8795: # if finds mixed CR/LF and LF-only lines. Since sed operates in
8796: # text mode, it properly converts lines to CR/LF. This bash problem
8797: # is reportedly fixed, but why not run on old versions too?
8798: sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8799:
8800: mv -f "${ofile}T" "$ofile" || \
8801: (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8802: chmod +x "$ofile"
8803: fi
8804: ##
8805: ## END FIXME
8806:
8807:
8808:
8809:
8810:
8811: # This can be used to rebuild libtool when needed
8812: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8813:
8814: # Always use rootdir libtool.
8815: LIBTOOL="$ac_aux_dir/libtool"
8816:
8817: # Prevent multiple expansion
8818:
8819:
8820:
8821:
8822: subdirs="$subdirs libltdl"
8823:
8824:
8825:
8826:
8827:
8828:
8829:
8830:
8831:
8832: for ac_header in stdio.h \
8833: stdlib.h \
8834: string.h \
8835: setjmp.h \
8836: ctype.h
8837:
8838: do
8839: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8840: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8841: echo "$as_me:$LINENO: checking for $ac_header" >&5
8842: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8843: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8844: echo $ECHO_N "(cached) $ECHO_C" >&6
8845: fi
8846: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848: else
8849: # Is the header compilable?
8850: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8852: cat >conftest.$ac_ext <<_ACEOF
8853: /* confdefs.h. */
8854: _ACEOF
8855: cat confdefs.h >>conftest.$ac_ext
8856: cat >>conftest.$ac_ext <<_ACEOF
8857: /* end confdefs.h. */
8858: $ac_includes_default
8859: #include <$ac_header>
8860: _ACEOF
8861: rm -f conftest.$ac_objext
8862: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863: (eval $ac_compile) 2>conftest.er1
8864: ac_status=$?
8865: grep -v '^ *+' conftest.er1 >conftest.err
8866: rm -f conftest.er1
8867: cat conftest.err >&5
8868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869: (exit $ac_status); } &&
8870: { ac_try='test -z "$ac_c_werror_flag"
8871: || test ! -s conftest.err'
8872: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873: (eval $ac_try) 2>&5
8874: ac_status=$?
8875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876: (exit $ac_status); }; } &&
8877: { ac_try='test -s conftest.$ac_objext'
8878: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879: (eval $ac_try) 2>&5
8880: ac_status=$?
8881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882: (exit $ac_status); }; }; then
8883: ac_header_compiler=yes
8884: else
8885: echo "$as_me: failed program was:" >&5
8886: sed 's/^/| /' conftest.$ac_ext >&5
8887:
8888: ac_header_compiler=no
8889: fi
8890: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8892: echo "${ECHO_T}$ac_header_compiler" >&6
8893:
8894: # Is the header present?
8895: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8896: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8897: cat >conftest.$ac_ext <<_ACEOF
8898: /* confdefs.h. */
8899: _ACEOF
8900: cat confdefs.h >>conftest.$ac_ext
8901: cat >>conftest.$ac_ext <<_ACEOF
8902: /* end confdefs.h. */
8903: #include <$ac_header>
8904: _ACEOF
8905: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8906: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8907: ac_status=$?
8908: grep -v '^ *+' conftest.er1 >conftest.err
8909: rm -f conftest.er1
8910: cat conftest.err >&5
8911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912: (exit $ac_status); } >/dev/null; then
8913: if test -s conftest.err; then
8914: ac_cpp_err=$ac_c_preproc_warn_flag
8915: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8916: else
8917: ac_cpp_err=
8918: fi
8919: else
8920: ac_cpp_err=yes
8921: fi
8922: if test -z "$ac_cpp_err"; then
8923: ac_header_preproc=yes
8924: else
8925: echo "$as_me: failed program was:" >&5
8926: sed 's/^/| /' conftest.$ac_ext >&5
8927:
8928: ac_header_preproc=no
8929: fi
8930: rm -f conftest.err conftest.$ac_ext
8931: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8932: echo "${ECHO_T}$ac_header_preproc" >&6
8933:
8934: # So? What about this header?
8935: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8936: yes:no: )
8937: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8938: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8939: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8940: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8941: ac_header_preproc=yes
8942: ;;
8943: no:yes:* )
8944: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8945: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8946: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8947: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8948: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8949: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8950: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8951: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8952: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8953: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8954: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8955: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8956: (
8957: cat <<\_ASBOX
8958: ## ------------------------------------------ ##
8959: ## Report this to the AC_PACKAGE_NAME lists. ##
8960: ## ------------------------------------------ ##
8961: _ASBOX
8962: ) |
8963: sed "s/^/$as_me: WARNING: /" >&2
8964: ;;
8965: esac
8966: echo "$as_me:$LINENO: checking for $ac_header" >&5
8967: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8968: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8969: echo $ECHO_N "(cached) $ECHO_C" >&6
8970: else
8971: eval "$as_ac_Header=\$ac_header_preproc"
8972: fi
8973: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8974: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8975:
8976: fi
8977: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8978: cat >>confdefs.h <<_ACEOF
8979: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980: _ACEOF
8981:
8982: fi
8983:
8984: done
8985:
8986:
8987:
8988: echo "$as_me:$LINENO: checking for size_t" >&5
8989: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8990: if test "${ac_cv_type_size_t+set}" = set; then
8991: echo $ECHO_N "(cached) $ECHO_C" >&6
8992: else
8993: cat >conftest.$ac_ext <<_ACEOF
8994: /* confdefs.h. */
8995: _ACEOF
8996: cat confdefs.h >>conftest.$ac_ext
8997: cat >>conftest.$ac_ext <<_ACEOF
8998: /* end confdefs.h. */
8999: $ac_includes_default
9000: int
9001: main ()
9002: {
9003: if ((size_t *) 0)
9004: return 0;
9005: if (sizeof (size_t))
9006: return 0;
9007: ;
9008: return 0;
9009: }
9010: _ACEOF
9011: rm -f conftest.$ac_objext
9012: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9013: (eval $ac_compile) 2>conftest.er1
9014: ac_status=$?
9015: grep -v '^ *+' conftest.er1 >conftest.err
9016: rm -f conftest.er1
9017: cat conftest.err >&5
9018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019: (exit $ac_status); } &&
9020: { ac_try='test -z "$ac_c_werror_flag"
9021: || test ! -s conftest.err'
9022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023: (eval $ac_try) 2>&5
9024: ac_status=$?
9025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026: (exit $ac_status); }; } &&
9027: { ac_try='test -s conftest.$ac_objext'
9028: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029: (eval $ac_try) 2>&5
9030: ac_status=$?
9031: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032: (exit $ac_status); }; }; then
9033: ac_cv_type_size_t=yes
9034: else
9035: echo "$as_me: failed program was:" >&5
9036: sed 's/^/| /' conftest.$ac_ext >&5
9037:
9038: ac_cv_type_size_t=no
9039: fi
9040: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9041: fi
9042: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9043: echo "${ECHO_T}$ac_cv_type_size_t" >&6
9044: if test $ac_cv_type_size_t = yes; then
9045: :
9046: else
9047:
9048: cat >>confdefs.h <<_ACEOF
9049: #define size_t unsigned
9050: _ACEOF
9051:
9052: fi
9053:
9054:
9055:
9056:
9057: ac_config_files="$ac_config_files Makefile"
9058: cat >confcache <<\_ACEOF
9059: # This file is a shell script that caches the results of configure
9060: # tests run on this system so they can be shared between configure
9061: # scripts and configure runs, see configure's option --config-cache.
9062: # It is not useful on other systems. If it contains results you don't
9063: # want to keep, you may remove or edit it.
9064: #
9065: # config.status only pays attention to the cache file if you give it
9066: # the --recheck option to rerun configure.
9067: #
9068: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9069: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9070: # following values.
9071:
9072: _ACEOF
9073:
9074: # The following way of writing the cache mishandles newlines in values,
9075: # but we know of no workaround that is simple, portable, and efficient.
9076: # So, don't put newlines in cache variables' values.
9077: # Ultrix sh set writes to stderr and can't be redirected directly,
9078: # and sets the high bit in the cache file unless we assign to the vars.
9079: {
9080: (set) 2>&1 |
9081: case `(ac_space=' '; set | grep ac_space) 2>&1` in
9082: *ac_space=\ *)
9083: # `set' does not quote correctly, so add quotes (double-quote
9084: # substitution turns \\\\ into \\, and sed turns \\ into \).
9085: sed -n \
9086: "s/'/'\\\\''/g;
9087: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9088: ;;
9089: *)
9090: # `set' quotes correctly as required by POSIX, so do not add quotes.
9091: sed -n \
9092: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9093: ;;
9094: esac;
9095: } |
9096: sed '
9097: t clear
9098: : clear
9099: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9100: t end
9101: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9102: : end' >>confcache
9103: if diff $cache_file confcache >/dev/null 2>&1; then :; else
9104: if test -w $cache_file; then
9105: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9106: cat confcache >$cache_file
9107: else
9108: echo "not updating unwritable cache $cache_file"
9109: fi
9110: fi
9111: rm -f confcache
9112:
9113: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9114: # Let make expand exec_prefix.
9115: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9116:
9117: # VPATH may cause trouble with some makes, so we remove $(srcdir),
9118: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9119: # trailing colons and then remove the whole line if VPATH becomes empty
9120: # (actually we leave an empty line to preserve line numbers).
9121: if test "x$srcdir" = x.; then
9122: ac_vpsub='/^[ ]*VPATH[ ]*=/{
9123: s/:*\$(srcdir):*/:/;
9124: s/:*\${srcdir}:*/:/;
9125: s/:*@srcdir@:*/:/;
9126: s/^\([^=]*=[ ]*\):*/\1/;
9127: s/:*$//;
9128: s/^[^=]*=[ ]*$//;
9129: }'
9130: fi
9131:
9132: DEFS=-DHAVE_CONFIG_H
9133:
9134: ac_libobjs=
9135: ac_ltlibobjs=
9136: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9137: # 1. Remove the extension, and $U if already installed.
9138: ac_i=`echo "$ac_i" |
9139: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9140: # 2. Add them.
9141: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9142: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9143: done
9144: LIBOBJS=$ac_libobjs
9145:
9146: LTLIBOBJS=$ac_ltlibobjs
9147:
9148:
9149: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9150: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9151: Usually this means the macro was only invoked conditionally." >&5
9152: echo "$as_me: error: conditional \"AMDEP\" was never defined.
9153: Usually this means the macro was only invoked conditionally." >&2;}
9154: { (exit 1); exit 1; }; }
9155: fi
9156: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9157: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9158: Usually this means the macro was only invoked conditionally." >&5
9159: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9160: Usually this means the macro was only invoked conditionally." >&2;}
9161: { (exit 1); exit 1; }; }
9162: fi
9163: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9164: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9165: Usually this means the macro was only invoked conditionally." >&5
9166: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9167: Usually this means the macro was only invoked conditionally." >&2;}
9168: { (exit 1); exit 1; }; }
9169: fi
9170:
9171: : ${CONFIG_STATUS=./config.status}
9172: ac_clean_files_save=$ac_clean_files
9173: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9174: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9175: echo "$as_me: creating $CONFIG_STATUS" >&6;}
9176: cat >$CONFIG_STATUS <<_ACEOF
9177: #! $SHELL
9178: # Generated by $as_me.
9179: # Run this file to recreate the current configuration.
9180: # Compiler output produced by configure, useful for debugging
9181: # configure, is in config.log if it exists.
9182:
9183: debug=false
9184: ac_cs_recheck=false
9185: ac_cs_silent=false
9186: SHELL=\${CONFIG_SHELL-$SHELL}
9187: _ACEOF
9188:
9189: cat >>$CONFIG_STATUS <<\_ACEOF
9190: ## --------------------- ##
9191: ## M4sh Initialization. ##
9192: ## --------------------- ##
9193:
9194: # Be Bourne compatible
9195: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9196: emulate sh
9197: NULLCMD=:
9198: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9199: # is contrary to our usage. Disable this feature.
9200: alias -g '${1+"$@"}'='"$@"'
9201: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9202: set -o posix
9203: fi
9204: DUALCASE=1; export DUALCASE # for MKS sh
9205:
9206: # Support unset when possible.
9207: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9208: as_unset=unset
9209: else
9210: as_unset=false
9211: fi
9212:
9213:
9214: # Work around bugs in pre-3.0 UWIN ksh.
9215: $as_unset ENV MAIL MAILPATH
9216: PS1='$ '
9217: PS2='> '
9218: PS4='+ '
9219:
9220: # NLS nuisances.
9221: for as_var in \
9222: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9223: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9224: LC_TELEPHONE LC_TIME
9225: do
9226: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9227: eval $as_var=C; export $as_var
9228: else
9229: $as_unset $as_var
9230: fi
9231: done
9232:
9233: # Required to use basename.
9234: if expr a : '\(a\)' >/dev/null 2>&1; then
9235: as_expr=expr
9236: else
9237: as_expr=false
9238: fi
9239:
9240: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9241: as_basename=basename
9242: else
9243: as_basename=false
9244: fi
9245:
9246:
9247: # Name of the executable.
9248: as_me=`$as_basename "$0" ||
9249: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9250: X"$0" : 'X\(//\)$' \| \
9251: X"$0" : 'X\(/\)$' \| \
9252: . : '\(.\)' 2>/dev/null ||
9253: echo X/"$0" |
9254: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9255: /^X\/\(\/\/\)$/{ s//\1/; q; }
9256: /^X\/\(\/\).*/{ s//\1/; q; }
9257: s/.*/./; q'`
9258:
9259:
9260: # PATH needs CR, and LINENO needs CR and PATH.
9261: # Avoid depending upon Character Ranges.
9262: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9263: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9264: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9265: as_cr_digits='0123456789'
9266: as_cr_alnum=$as_cr_Letters$as_cr_digits
9267:
9268: # The user is always right.
9269: if test "${PATH_SEPARATOR+set}" != set; then
9270: echo "#! /bin/sh" >conf$$.sh
9271: echo "exit 0" >>conf$$.sh
9272: chmod +x conf$$.sh
9273: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9274: PATH_SEPARATOR=';'
9275: else
9276: PATH_SEPARATOR=:
9277: fi
9278: rm -f conf$$.sh
9279: fi
9280:
9281:
9282: as_lineno_1=$LINENO
9283: as_lineno_2=$LINENO
9284: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9285: test "x$as_lineno_1" != "x$as_lineno_2" &&
9286: test "x$as_lineno_3" = "x$as_lineno_2" || {
9287: # Find who we are. Look in the path if we contain no path at all
9288: # relative or not.
9289: case $0 in
9290: *[\\/]* ) as_myself=$0 ;;
9291: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292: for as_dir in $PATH
9293: do
9294: IFS=$as_save_IFS
9295: test -z "$as_dir" && as_dir=.
9296: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9297: done
9298:
9299: ;;
9300: esac
9301: # We did not find ourselves, most probably we were run as `sh COMMAND'
9302: # in which case we are not to be found in the path.
9303: if test "x$as_myself" = x; then
9304: as_myself=$0
9305: fi
9306: if test ! -f "$as_myself"; then
9307: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9308: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9309: { (exit 1); exit 1; }; }
9310: fi
9311: case $CONFIG_SHELL in
9312: '')
9313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9315: do
9316: IFS=$as_save_IFS
9317: test -z "$as_dir" && as_dir=.
9318: for as_base in sh bash ksh sh5; do
9319: case $as_dir in
9320: /*)
9321: if ("$as_dir/$as_base" -c '
9322: as_lineno_1=$LINENO
9323: as_lineno_2=$LINENO
9324: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9325: test "x$as_lineno_1" != "x$as_lineno_2" &&
9326: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9327: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9328: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9329: CONFIG_SHELL=$as_dir/$as_base
9330: export CONFIG_SHELL
9331: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9332: fi;;
9333: esac
9334: done
9335: done
9336: ;;
9337: esac
9338:
9339: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9340: # uniformly replaced by the line number. The first 'sed' inserts a
9341: # line-number line before each line; the second 'sed' does the real
9342: # work. The second script uses 'N' to pair each line-number line
9343: # with the numbered line, and appends trailing '-' during
9344: # substitution so that $LINENO is not a special case at line end.
9345: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9346: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9347: sed '=' <$as_myself |
9348: sed '
9349: N
9350: s,$,-,
9351: : loop
9352: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9353: t loop
9354: s,-$,,
9355: s,^['$as_cr_digits']*\n,,
9356: ' >$as_me.lineno &&
9357: chmod +x $as_me.lineno ||
9358: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9359: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9360: { (exit 1); exit 1; }; }
9361:
9362: # Don't try to exec as it changes $[0], causing all sort of problems
9363: # (the dirname of $[0] is not the place where we might find the
9364: # original and so on. Autoconf is especially sensible to this).
9365: . ./$as_me.lineno
9366: # Exit status is that of the last command.
9367: exit
9368: }
9369:
9370:
9371: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9372: *c*,-n*) ECHO_N= ECHO_C='
9373: ' ECHO_T=' ' ;;
9374: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9375: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9376: esac
9377:
9378: if expr a : '\(a\)' >/dev/null 2>&1; then
9379: as_expr=expr
9380: else
9381: as_expr=false
9382: fi
9383:
9384: rm -f conf$$ conf$$.exe conf$$.file
9385: echo >conf$$.file
9386: if ln -s conf$$.file conf$$ 2>/dev/null; then
9387: # We could just check for DJGPP; but this test a) works b) is more generic
9388: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9389: if test -f conf$$.exe; then
9390: # Don't use ln at all; we don't have any links
9391: as_ln_s='cp -p'
9392: else
9393: as_ln_s='ln -s'
9394: fi
9395: elif ln conf$$.file conf$$ 2>/dev/null; then
9396: as_ln_s=ln
9397: else
9398: as_ln_s='cp -p'
9399: fi
9400: rm -f conf$$ conf$$.exe conf$$.file
9401:
9402: if mkdir -p . 2>/dev/null; then
9403: as_mkdir_p=:
9404: else
9405: test -d ./-p && rmdir ./-p
9406: as_mkdir_p=false
9407: fi
9408:
9409: as_executable_p="test -f"
9410:
9411: # Sed expression to map a string onto a valid CPP name.
9412: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9413:
9414: # Sed expression to map a string onto a valid variable name.
9415: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9416:
9417:
9418: # IFS
9419: # We need space, tab and new line, in precisely that order.
9420: as_nl='
9421: '
9422: IFS=" $as_nl"
9423:
9424: # CDPATH.
9425: $as_unset CDPATH
9426:
9427: exec 6>&1
9428:
9429: # Open the log real soon, to keep \$[0] and so on meaningful, and to
9430: # report actual input values of CONFIG_FILES etc. instead of their
9431: # values after options handling. Logging --version etc. is OK.
9432: exec 5>>config.log
9433: {
9434: echo
9435: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9436: ## Running $as_me. ##
9437: _ASBOX
9438: } >&5
9439: cat >&5 <<_CSEOF
9440:
9441: This file was extended by $as_me, which was
9442: generated by GNU Autoconf 2.59. Invocation command line was
9443:
9444: CONFIG_FILES = $CONFIG_FILES
9445: CONFIG_HEADERS = $CONFIG_HEADERS
9446: CONFIG_LINKS = $CONFIG_LINKS
9447: CONFIG_COMMANDS = $CONFIG_COMMANDS
9448: $ $0 $@
9449:
9450: _CSEOF
9451: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9452: echo >&5
9453: _ACEOF
9454:
9455: # Files that config.status was made for.
9456: if test -n "$ac_config_files"; then
9457: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9458: fi
9459:
9460: if test -n "$ac_config_headers"; then
9461: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9462: fi
9463:
9464: if test -n "$ac_config_links"; then
9465: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9466: fi
9467:
9468: if test -n "$ac_config_commands"; then
9469: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9470: fi
9471:
9472: cat >>$CONFIG_STATUS <<\_ACEOF
9473:
9474: ac_cs_usage="\
9475: \`$as_me' instantiates files from templates according to the
9476: current configuration.
9477:
9478: Usage: $0 [OPTIONS] [FILE]...
9479:
9480: -h, --help print this help, then exit
9481: -V, --version print version number, then exit
9482: -q, --quiet do not print progress messages
9483: -d, --debug don't remove temporary files
9484: --recheck update $as_me by reconfiguring in the same conditions
9485: --file=FILE[:TEMPLATE]
9486: instantiate the configuration file FILE
9487: --header=FILE[:TEMPLATE]
9488: instantiate the configuration header FILE
9489:
9490: Configuration files:
9491: $config_files
9492:
9493: Configuration headers:
9494: $config_headers
9495:
9496: Configuration commands:
9497: $config_commands
9498:
9499: Report bugs to <bug-autoconf@gnu.org>."
9500: _ACEOF
9501:
9502: cat >>$CONFIG_STATUS <<_ACEOF
9503: ac_cs_version="\\
9504: config.status
9505: configured by $0, generated by GNU Autoconf 2.59,
9506: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9507:
9508: Copyright (C) 2003 Free Software Foundation, Inc.
9509: This config.status script is free software; the Free Software Foundation
9510: gives unlimited permission to copy, distribute and modify it."
9511: srcdir=$srcdir
9512: INSTALL="$INSTALL"
9513: _ACEOF
9514:
9515: cat >>$CONFIG_STATUS <<\_ACEOF
9516: # If no file are specified by the user, then we need to provide default
9517: # value. By we need to know if files were specified by the user.
9518: ac_need_defaults=:
9519: while test $# != 0
9520: do
9521: case $1 in
9522: --*=*)
9523: ac_option=`expr "x$1" : 'x\([^=]*\)='`
9524: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9525: ac_shift=:
9526: ;;
9527: -*)
9528: ac_option=$1
9529: ac_optarg=$2
9530: ac_shift=shift
9531: ;;
9532: *) # This is not an option, so the user has probably given explicit
9533: # arguments.
9534: ac_option=$1
9535: ac_need_defaults=false;;
9536: esac
9537:
9538: case $ac_option in
9539: # Handling of the options.
9540: _ACEOF
9541: cat >>$CONFIG_STATUS <<\_ACEOF
9542: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9543: ac_cs_recheck=: ;;
9544: --version | --vers* | -V )
9545: echo "$ac_cs_version"; exit 0 ;;
9546: --he | --h)
9547: # Conflict between --help and --header
9548: { { echo "$as_me:$LINENO: error: ambiguous option: $1
9549: Try \`$0 --help' for more information." >&5
9550: echo "$as_me: error: ambiguous option: $1
9551: Try \`$0 --help' for more information." >&2;}
9552: { (exit 1); exit 1; }; };;
9553: --help | --hel | -h )
9554: echo "$ac_cs_usage"; exit 0 ;;
9555: --debug | --d* | -d )
9556: debug=: ;;
9557: --file | --fil | --fi | --f )
9558: $ac_shift
9559: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9560: ac_need_defaults=false;;
9561: --header | --heade | --head | --hea )
9562: $ac_shift
9563: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9564: ac_need_defaults=false;;
9565: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9566: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9567: ac_cs_silent=: ;;
9568:
9569: # This is an error.
9570: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9571: Try \`$0 --help' for more information." >&5
9572: echo "$as_me: error: unrecognized option: $1
9573: Try \`$0 --help' for more information." >&2;}
9574: { (exit 1); exit 1; }; } ;;
9575:
9576: *) ac_config_targets="$ac_config_targets $1" ;;
9577:
9578: esac
9579: shift
9580: done
9581:
9582: ac_configure_extra_args=
9583:
9584: if $ac_cs_silent; then
9585: exec 6>/dev/null
9586: ac_configure_extra_args="$ac_configure_extra_args --silent"
9587: fi
9588:
9589: _ACEOF
9590: cat >>$CONFIG_STATUS <<_ACEOF
9591: if \$ac_cs_recheck; then
9592: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9593: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9594: fi
9595:
9596: _ACEOF
9597:
9598: cat >>$CONFIG_STATUS <<_ACEOF
9599: #
9600: # INIT-COMMANDS section.
9601: #
9602:
9603: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9604:
9605: _ACEOF
9606:
9607:
9608:
9609: cat >>$CONFIG_STATUS <<\_ACEOF
9610: for ac_config_target in $ac_config_targets
9611: do
9612: case "$ac_config_target" in
9613: # Handling of arguments.
9614: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9615: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9616: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
9617: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9618: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9619: { (exit 1); exit 1; }; };;
9620: esac
9621: done
9622:
9623: # If the user did not use the arguments to specify the items to instantiate,
9624: # then the envvar interface is used. Set only those that are not.
9625: # We use the long form for the default assignment because of an extremely
9626: # bizarre bug on SunOS 4.1.3.
9627: if $ac_need_defaults; then
9628: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9629: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9630: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9631: fi
9632:
9633: # Have a temporary directory for convenience. Make it in the build tree
9634: # simply because there is no reason to put it here, and in addition,
9635: # creating and moving files from /tmp can sometimes cause problems.
9636: # Create a temporary directory, and hook for its removal unless debugging.
9637: $debug ||
9638: {
9639: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9640: trap '{ (exit 1); exit 1; }' 1 2 13 15
9641: }
9642:
9643: # Create a (secure) tmp directory for tmp files.
9644:
9645: {
9646: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9647: test -n "$tmp" && test -d "$tmp"
9648: } ||
9649: {
9650: tmp=./confstat$$-$RANDOM
9651: (umask 077 && mkdir $tmp)
9652: } ||
9653: {
9654: echo "$me: cannot create a temporary directory in ." >&2
9655: { (exit 1); exit 1; }
9656: }
9657:
9658: _ACEOF
9659:
9660: cat >>$CONFIG_STATUS <<_ACEOF
9661:
9662: #
9663: # CONFIG_FILES section.
9664: #
9665:
9666: # No need to generate the scripts if there are no CONFIG_FILES.
9667: # This happens for instance when ./config.status config.h
9668: if test -n "\$CONFIG_FILES"; then
9669: # Protect against being on the right side of a sed subst in config.status.
9670: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9671: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9672: s,@SHELL@,$SHELL,;t t
9673: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9674: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9675: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9676: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9677: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9678: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9679: s,@exec_prefix@,$exec_prefix,;t t
9680: s,@prefix@,$prefix,;t t
9681: s,@program_transform_name@,$program_transform_name,;t t
9682: s,@bindir@,$bindir,;t t
9683: s,@sbindir@,$sbindir,;t t
9684: s,@libexecdir@,$libexecdir,;t t
9685: s,@datadir@,$datadir,;t t
9686: s,@sysconfdir@,$sysconfdir,;t t
9687: s,@sharedstatedir@,$sharedstatedir,;t t
9688: s,@localstatedir@,$localstatedir,;t t
9689: s,@libdir@,$libdir,;t t
9690: s,@includedir@,$includedir,;t t
9691: s,@oldincludedir@,$oldincludedir,;t t
9692: s,@infodir@,$infodir,;t t
9693: s,@mandir@,$mandir,;t t
9694: s,@build_alias@,$build_alias,;t t
9695: s,@host_alias@,$host_alias,;t t
9696: s,@target_alias@,$target_alias,;t t
9697: s,@DEFS@,$DEFS,;t t
9698: s,@ECHO_C@,$ECHO_C,;t t
9699: s,@ECHO_N@,$ECHO_N,;t t
9700: s,@ECHO_T@,$ECHO_T,;t t
9701: s,@LIBS@,$LIBS,;t t
9702: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9703: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9704: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9705: s,@CYGPATH_W@,$CYGPATH_W,;t t
9706: s,@PACKAGE@,$PACKAGE,;t t
9707: s,@VERSION@,$VERSION,;t t
9708: s,@ACLOCAL@,$ACLOCAL,;t t
9709: s,@AUTOCONF@,$AUTOCONF,;t t
9710: s,@AUTOMAKE@,$AUTOMAKE,;t t
9711: s,@AUTOHEADER@,$AUTOHEADER,;t t
9712: s,@MAKEINFO@,$MAKEINFO,;t t
9713: s,@install_sh@,$install_sh,;t t
9714: s,@STRIP@,$STRIP,;t t
9715: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9716: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9717: s,@mkdir_p@,$mkdir_p,;t t
9718: s,@AWK@,$AWK,;t t
9719: s,@SET_MAKE@,$SET_MAKE,;t t
9720: s,@am__leading_dot@,$am__leading_dot,;t t
9721: s,@AMTAR@,$AMTAR,;t t
9722: s,@am__tar@,$am__tar,;t t
9723: s,@am__untar@,$am__untar,;t t
9724: s,@SQLITE_INC@,$SQLITE_INC,;t t
1.6 ! misha 9725: s,@LDFLAGS@,$LDFLAGS,;t t
1.1 misha 9726: s,@CXX@,$CXX,;t t
9727: s,@CXXFLAGS@,$CXXFLAGS,;t t
9728: s,@CPPFLAGS@,$CPPFLAGS,;t t
9729: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9730: s,@EXEEXT@,$EXEEXT,;t t
9731: s,@OBJEXT@,$OBJEXT,;t t
9732: s,@DEPDIR@,$DEPDIR,;t t
9733: s,@am__include@,$am__include,;t t
9734: s,@am__quote@,$am__quote,;t t
9735: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9736: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9737: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9738: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9739: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9740: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9741: s,@CC@,$CC,;t t
9742: s,@CFLAGS@,$CFLAGS,;t t
9743: s,@ac_ct_CC@,$ac_ct_CC,;t t
9744: s,@CCDEPMODE@,$CCDEPMODE,;t t
9745: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9746: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9747: s,@INCLTDL@,$INCLTDL,;t t
9748: s,@LIBLTDL@,$LIBLTDL,;t t
9749: s,@LIBADD_DL@,$LIBADD_DL,;t t
9750: s,@build@,$build,;t t
9751: s,@build_cpu@,$build_cpu,;t t
9752: s,@build_vendor@,$build_vendor,;t t
9753: s,@build_os@,$build_os,;t t
9754: s,@host@,$host,;t t
9755: s,@host_cpu@,$host_cpu,;t t
9756: s,@host_vendor@,$host_vendor,;t t
9757: s,@host_os@,$host_os,;t t
9758: s,@LN_S@,$LN_S,;t t
9759: s,@ECHO@,$ECHO,;t t
9760: s,@RANLIB@,$RANLIB,;t t
9761: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9762: s,@CPP@,$CPP,;t t
9763: s,@EGREP@,$EGREP,;t t
9764: s,@LIBTOOL@,$LIBTOOL,;t t
9765: s,@subdirs@,$subdirs,;t t
9766: s,@LIBOBJS@,$LIBOBJS,;t t
9767: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9768: CEOF
9769:
9770: _ACEOF
9771:
9772: cat >>$CONFIG_STATUS <<\_ACEOF
9773: # Split the substitutions into bite-sized pieces for seds with
9774: # small command number limits, like on Digital OSF/1 and HP-UX.
9775: ac_max_sed_lines=48
9776: ac_sed_frag=1 # Number of current file.
9777: ac_beg=1 # First line for current file.
9778: ac_end=$ac_max_sed_lines # Line after last line for current file.
9779: ac_more_lines=:
9780: ac_sed_cmds=
9781: while $ac_more_lines; do
9782: if test $ac_beg -gt 1; then
9783: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9784: else
9785: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9786: fi
9787: if test ! -s $tmp/subs.frag; then
9788: ac_more_lines=false
9789: else
9790: # The purpose of the label and of the branching condition is to
9791: # speed up the sed processing (if there are no `@' at all, there
9792: # is no need to browse any of the substitutions).
9793: # These are the two extra sed commands mentioned above.
9794: (echo ':t
9795: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9796: if test -z "$ac_sed_cmds"; then
9797: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9798: else
9799: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9800: fi
9801: ac_sed_frag=`expr $ac_sed_frag + 1`
9802: ac_beg=$ac_end
9803: ac_end=`expr $ac_end + $ac_max_sed_lines`
9804: fi
9805: done
9806: if test -z "$ac_sed_cmds"; then
9807: ac_sed_cmds=cat
9808: fi
9809: fi # test -n "$CONFIG_FILES"
9810:
9811: _ACEOF
9812: cat >>$CONFIG_STATUS <<\_ACEOF
9813: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9814: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9815: case $ac_file in
9816: - | *:- | *:-:* ) # input from stdin
9817: cat >$tmp/stdin
9818: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9819: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9820: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9821: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9822: * ) ac_file_in=$ac_file.in ;;
9823: esac
9824:
9825: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9826: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9827: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9828: X"$ac_file" : 'X\(//\)[^/]' \| \
9829: X"$ac_file" : 'X\(//\)$' \| \
9830: X"$ac_file" : 'X\(/\)' \| \
9831: . : '\(.\)' 2>/dev/null ||
9832: echo X"$ac_file" |
9833: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9834: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9835: /^X\(\/\/\)$/{ s//\1/; q; }
9836: /^X\(\/\).*/{ s//\1/; q; }
9837: s/.*/./; q'`
9838: { if $as_mkdir_p; then
9839: mkdir -p "$ac_dir"
9840: else
9841: as_dir="$ac_dir"
9842: as_dirs=
9843: while test ! -d "$as_dir"; do
9844: as_dirs="$as_dir $as_dirs"
9845: as_dir=`(dirname "$as_dir") 2>/dev/null ||
9846: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9847: X"$as_dir" : 'X\(//\)[^/]' \| \
9848: X"$as_dir" : 'X\(//\)$' \| \
9849: X"$as_dir" : 'X\(/\)' \| \
9850: . : '\(.\)' 2>/dev/null ||
9851: echo X"$as_dir" |
9852: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9853: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9854: /^X\(\/\/\)$/{ s//\1/; q; }
9855: /^X\(\/\).*/{ s//\1/; q; }
9856: s/.*/./; q'`
9857: done
9858: test ! -n "$as_dirs" || mkdir $as_dirs
9859: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9860: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9861: { (exit 1); exit 1; }; }; }
9862:
9863: ac_builddir=.
9864:
9865: if test "$ac_dir" != .; then
9866: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9867: # A "../" for each directory in $ac_dir_suffix.
9868: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9869: else
9870: ac_dir_suffix= ac_top_builddir=
9871: fi
9872:
9873: case $srcdir in
9874: .) # No --srcdir option. We are building in place.
9875: ac_srcdir=.
9876: if test -z "$ac_top_builddir"; then
9877: ac_top_srcdir=.
9878: else
9879: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9880: fi ;;
9881: [\\/]* | ?:[\\/]* ) # Absolute path.
9882: ac_srcdir=$srcdir$ac_dir_suffix;
9883: ac_top_srcdir=$srcdir ;;
9884: *) # Relative path.
9885: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9886: ac_top_srcdir=$ac_top_builddir$srcdir ;;
9887: esac
9888:
9889: # Do not use `cd foo && pwd` to compute absolute paths, because
9890: # the directories may not exist.
9891: case `pwd` in
9892: .) ac_abs_builddir="$ac_dir";;
9893: *)
9894: case "$ac_dir" in
9895: .) ac_abs_builddir=`pwd`;;
9896: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9897: *) ac_abs_builddir=`pwd`/"$ac_dir";;
9898: esac;;
9899: esac
9900: case $ac_abs_builddir in
9901: .) ac_abs_top_builddir=${ac_top_builddir}.;;
9902: *)
9903: case ${ac_top_builddir}. in
9904: .) ac_abs_top_builddir=$ac_abs_builddir;;
9905: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9906: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9907: esac;;
9908: esac
9909: case $ac_abs_builddir in
9910: .) ac_abs_srcdir=$ac_srcdir;;
9911: *)
9912: case $ac_srcdir in
9913: .) ac_abs_srcdir=$ac_abs_builddir;;
9914: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9915: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9916: esac;;
9917: esac
9918: case $ac_abs_builddir in
9919: .) ac_abs_top_srcdir=$ac_top_srcdir;;
9920: *)
9921: case $ac_top_srcdir in
9922: .) ac_abs_top_srcdir=$ac_abs_builddir;;
9923: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9924: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9925: esac;;
9926: esac
9927:
9928:
9929: case $INSTALL in
9930: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9931: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9932: esac
9933:
9934: if test x"$ac_file" != x-; then
9935: { echo "$as_me:$LINENO: creating $ac_file" >&5
9936: echo "$as_me: creating $ac_file" >&6;}
9937: rm -f "$ac_file"
9938: fi
9939: # Let's still pretend it is `configure' which instantiates (i.e., don't
9940: # use $as_me), people would be surprised to read:
9941: # /* config.h. Generated by config.status. */
9942: if test x"$ac_file" = x-; then
9943: configure_input=
9944: else
9945: configure_input="$ac_file. "
9946: fi
9947: configure_input=$configure_input"Generated from `echo $ac_file_in |
9948: sed 's,.*/,,'` by configure."
9949:
9950: # First look for the input files in the build tree, otherwise in the
9951: # src tree.
9952: ac_file_inputs=`IFS=:
9953: for f in $ac_file_in; do
9954: case $f in
9955: -) echo $tmp/stdin ;;
9956: [\\/$]*)
9957: # Absolute (can't be DOS-style, as IFS=:)
9958: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9959: echo "$as_me: error: cannot find input file: $f" >&2;}
9960: { (exit 1); exit 1; }; }
9961: echo "$f";;
9962: *) # Relative
9963: if test -f "$f"; then
9964: # Build tree
9965: echo "$f"
9966: elif test -f "$srcdir/$f"; then
9967: # Source tree
9968: echo "$srcdir/$f"
9969: else
9970: # /dev/null tree
9971: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9972: echo "$as_me: error: cannot find input file: $f" >&2;}
9973: { (exit 1); exit 1; }; }
9974: fi;;
9975: esac
9976: done` || { (exit 1); exit 1; }
9977: _ACEOF
9978: cat >>$CONFIG_STATUS <<_ACEOF
9979: sed "$ac_vpsub
9980: $extrasub
9981: _ACEOF
9982: cat >>$CONFIG_STATUS <<\_ACEOF
9983: :t
9984: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9985: s,@configure_input@,$configure_input,;t t
9986: s,@srcdir@,$ac_srcdir,;t t
9987: s,@abs_srcdir@,$ac_abs_srcdir,;t t
9988: s,@top_srcdir@,$ac_top_srcdir,;t t
9989: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9990: s,@builddir@,$ac_builddir,;t t
9991: s,@abs_builddir@,$ac_abs_builddir,;t t
9992: s,@top_builddir@,$ac_top_builddir,;t t
9993: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9994: s,@INSTALL@,$ac_INSTALL,;t t
9995: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9996: rm -f $tmp/stdin
9997: if test x"$ac_file" != x-; then
9998: mv $tmp/out $ac_file
9999: else
10000: cat $tmp/out
10001: rm -f $tmp/out
10002: fi
10003:
10004: done
10005: _ACEOF
10006: cat >>$CONFIG_STATUS <<\_ACEOF
10007:
10008: #
10009: # CONFIG_HEADER section.
10010: #
10011:
10012: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10013: # NAME is the cpp macro being defined and VALUE is the value it is being given.
10014: #
10015: # ac_d sets the value in "#define NAME VALUE" lines.
10016: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10017: ac_dB='[ ].*$,\1#\2'
10018: ac_dC=' '
10019: ac_dD=',;t'
10020: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10021: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10022: ac_uB='$,\1#\2define\3'
10023: ac_uC=' '
10024: ac_uD=',;t'
10025:
10026: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10027: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10028: case $ac_file in
10029: - | *:- | *:-:* ) # input from stdin
10030: cat >$tmp/stdin
10031: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10032: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10033: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10034: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10035: * ) ac_file_in=$ac_file.in ;;
10036: esac
10037:
10038: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10039: echo "$as_me: creating $ac_file" >&6;}
10040:
10041: # First look for the input files in the build tree, otherwise in the
10042: # src tree.
10043: ac_file_inputs=`IFS=:
10044: for f in $ac_file_in; do
10045: case $f in
10046: -) echo $tmp/stdin ;;
10047: [\\/$]*)
10048: # Absolute (can't be DOS-style, as IFS=:)
10049: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10050: echo "$as_me: error: cannot find input file: $f" >&2;}
10051: { (exit 1); exit 1; }; }
10052: # Do quote $f, to prevent DOS paths from being IFS'd.
10053: echo "$f";;
10054: *) # Relative
10055: if test -f "$f"; then
10056: # Build tree
10057: echo "$f"
10058: elif test -f "$srcdir/$f"; then
10059: # Source tree
10060: echo "$srcdir/$f"
10061: else
10062: # /dev/null tree
10063: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10064: echo "$as_me: error: cannot find input file: $f" >&2;}
10065: { (exit 1); exit 1; }; }
10066: fi;;
10067: esac
10068: done` || { (exit 1); exit 1; }
10069: # Remove the trailing spaces.
10070: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10071:
10072: _ACEOF
10073:
10074: # Transform confdefs.h into two sed scripts, `conftest.defines' and
10075: # `conftest.undefs', that substitutes the proper values into
10076: # config.h.in to produce config.h. The first handles `#define'
10077: # templates, and the second `#undef' templates.
10078: # And first: Protect against being on the right side of a sed subst in
10079: # config.status. Protect against being in an unquoted here document
10080: # in config.status.
10081: rm -f conftest.defines conftest.undefs
10082: # Using a here document instead of a string reduces the quoting nightmare.
10083: # Putting comments in sed scripts is not portable.
10084: #
10085: # `end' is used to avoid that the second main sed command (meant for
10086: # 0-ary CPP macros) applies to n-ary macro definitions.
10087: # See the Autoconf documentation for `clear'.
10088: cat >confdef2sed.sed <<\_ACEOF
10089: s/[\\&,]/\\&/g
10090: s,[\\$`],\\&,g
10091: t clear
10092: : clear
10093: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10094: t end
10095: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10096: : end
10097: _ACEOF
10098: # If some macros were called several times there might be several times
10099: # the same #defines, which is useless. Nevertheless, we may not want to
10100: # sort them, since we want the *last* AC-DEFINE to be honored.
10101: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10102: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10103: rm -f confdef2sed.sed
10104:
10105: # This sed command replaces #undef with comments. This is necessary, for
10106: # example, in the case of _POSIX_SOURCE, which is predefined and required
10107: # on some systems where configure will not decide to define it.
10108: cat >>conftest.undefs <<\_ACEOF
10109: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10110: _ACEOF
10111:
10112: # Break up conftest.defines because some shells have a limit on the size
10113: # of here documents, and old seds have small limits too (100 cmds).
10114: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10115: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10116: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10117: echo ' :' >>$CONFIG_STATUS
10118: rm -f conftest.tail
10119: while grep . conftest.defines >/dev/null
10120: do
10121: # Write a limited-size here document to $tmp/defines.sed.
10122: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10123: # Speed up: don't consider the non `#define' lines.
10124: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10125: # Work around the forget-to-reset-the-flag bug.
10126: echo 't clr' >>$CONFIG_STATUS
10127: echo ': clr' >>$CONFIG_STATUS
10128: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10129: echo 'CEOF
10130: sed -f $tmp/defines.sed $tmp/in >$tmp/out
10131: rm -f $tmp/in
10132: mv $tmp/out $tmp/in
10133: ' >>$CONFIG_STATUS
10134: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10135: rm -f conftest.defines
10136: mv conftest.tail conftest.defines
10137: done
10138: rm -f conftest.defines
10139: echo ' fi # grep' >>$CONFIG_STATUS
10140: echo >>$CONFIG_STATUS
10141:
10142: # Break up conftest.undefs because some shells have a limit on the size
10143: # of here documents, and old seds have small limits too (100 cmds).
10144: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10145: rm -f conftest.tail
10146: while grep . conftest.undefs >/dev/null
10147: do
10148: # Write a limited-size here document to $tmp/undefs.sed.
10149: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10150: # Speed up: don't consider the non `#undef'
10151: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10152: # Work around the forget-to-reset-the-flag bug.
10153: echo 't clr' >>$CONFIG_STATUS
10154: echo ': clr' >>$CONFIG_STATUS
10155: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10156: echo 'CEOF
10157: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10158: rm -f $tmp/in
10159: mv $tmp/out $tmp/in
10160: ' >>$CONFIG_STATUS
10161: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10162: rm -f conftest.undefs
10163: mv conftest.tail conftest.undefs
10164: done
10165: rm -f conftest.undefs
10166:
10167: cat >>$CONFIG_STATUS <<\_ACEOF
10168: # Let's still pretend it is `configure' which instantiates (i.e., don't
10169: # use $as_me), people would be surprised to read:
10170: # /* config.h. Generated by config.status. */
10171: if test x"$ac_file" = x-; then
10172: echo "/* Generated by configure. */" >$tmp/config.h
10173: else
10174: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10175: fi
10176: cat $tmp/in >>$tmp/config.h
10177: rm -f $tmp/in
10178: if test x"$ac_file" != x-; then
10179: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10180: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10181: echo "$as_me: $ac_file is unchanged" >&6;}
10182: else
10183: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10184: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10185: X"$ac_file" : 'X\(//\)[^/]' \| \
10186: X"$ac_file" : 'X\(//\)$' \| \
10187: X"$ac_file" : 'X\(/\)' \| \
10188: . : '\(.\)' 2>/dev/null ||
10189: echo X"$ac_file" |
10190: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10191: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10192: /^X\(\/\/\)$/{ s//\1/; q; }
10193: /^X\(\/\).*/{ s//\1/; q; }
10194: s/.*/./; q'`
10195: { if $as_mkdir_p; then
10196: mkdir -p "$ac_dir"
10197: else
10198: as_dir="$ac_dir"
10199: as_dirs=
10200: while test ! -d "$as_dir"; do
10201: as_dirs="$as_dir $as_dirs"
10202: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10203: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10204: X"$as_dir" : 'X\(//\)[^/]' \| \
10205: X"$as_dir" : 'X\(//\)$' \| \
10206: X"$as_dir" : 'X\(/\)' \| \
10207: . : '\(.\)' 2>/dev/null ||
10208: echo X"$as_dir" |
10209: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10210: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10211: /^X\(\/\/\)$/{ s//\1/; q; }
10212: /^X\(\/\).*/{ s//\1/; q; }
10213: s/.*/./; q'`
10214: done
10215: test ! -n "$as_dirs" || mkdir $as_dirs
10216: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10217: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10218: { (exit 1); exit 1; }; }; }
10219:
10220: rm -f $ac_file
10221: mv $tmp/config.h $ac_file
10222: fi
10223: else
10224: cat $tmp/config.h
10225: rm -f $tmp/config.h
10226: fi
10227: # Compute $ac_file's index in $config_headers.
10228: _am_stamp_count=1
10229: for _am_header in $config_headers :; do
10230: case $_am_header in
10231: $ac_file | $ac_file:* )
10232: break ;;
10233: * )
10234: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10235: esac
10236: done
10237: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10238: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10239: X$ac_file : 'X\(//\)[^/]' \| \
10240: X$ac_file : 'X\(//\)$' \| \
10241: X$ac_file : 'X\(/\)' \| \
10242: . : '\(.\)' 2>/dev/null ||
10243: echo X$ac_file |
10244: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10245: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10246: /^X\(\/\/\)$/{ s//\1/; q; }
10247: /^X\(\/\).*/{ s//\1/; q; }
10248: s/.*/./; q'`/stamp-h$_am_stamp_count
10249: done
10250: _ACEOF
10251: cat >>$CONFIG_STATUS <<\_ACEOF
10252:
10253: #
10254: # CONFIG_COMMANDS section.
10255: #
10256: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10257: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10258: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10259: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10260: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10261: X"$ac_dest" : 'X\(//\)[^/]' \| \
10262: X"$ac_dest" : 'X\(//\)$' \| \
10263: X"$ac_dest" : 'X\(/\)' \| \
10264: . : '\(.\)' 2>/dev/null ||
10265: echo X"$ac_dest" |
10266: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10267: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10268: /^X\(\/\/\)$/{ s//\1/; q; }
10269: /^X\(\/\).*/{ s//\1/; q; }
10270: s/.*/./; q'`
10271: { if $as_mkdir_p; then
10272: mkdir -p "$ac_dir"
10273: else
10274: as_dir="$ac_dir"
10275: as_dirs=
10276: while test ! -d "$as_dir"; do
10277: as_dirs="$as_dir $as_dirs"
10278: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10279: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10280: X"$as_dir" : 'X\(//\)[^/]' \| \
10281: X"$as_dir" : 'X\(//\)$' \| \
10282: X"$as_dir" : 'X\(/\)' \| \
10283: . : '\(.\)' 2>/dev/null ||
10284: echo X"$as_dir" |
10285: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10286: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10287: /^X\(\/\/\)$/{ s//\1/; q; }
10288: /^X\(\/\).*/{ s//\1/; q; }
10289: s/.*/./; q'`
10290: done
10291: test ! -n "$as_dirs" || mkdir $as_dirs
10292: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10293: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10294: { (exit 1); exit 1; }; }; }
10295:
10296: ac_builddir=.
10297:
10298: if test "$ac_dir" != .; then
10299: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10300: # A "../" for each directory in $ac_dir_suffix.
10301: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10302: else
10303: ac_dir_suffix= ac_top_builddir=
10304: fi
10305:
10306: case $srcdir in
10307: .) # No --srcdir option. We are building in place.
10308: ac_srcdir=.
10309: if test -z "$ac_top_builddir"; then
10310: ac_top_srcdir=.
10311: else
10312: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10313: fi ;;
10314: [\\/]* | ?:[\\/]* ) # Absolute path.
10315: ac_srcdir=$srcdir$ac_dir_suffix;
10316: ac_top_srcdir=$srcdir ;;
10317: *) # Relative path.
10318: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10319: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10320: esac
10321:
10322: # Do not use `cd foo && pwd` to compute absolute paths, because
10323: # the directories may not exist.
10324: case `pwd` in
10325: .) ac_abs_builddir="$ac_dir";;
10326: *)
10327: case "$ac_dir" in
10328: .) ac_abs_builddir=`pwd`;;
10329: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10330: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10331: esac;;
10332: esac
10333: case $ac_abs_builddir in
10334: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10335: *)
10336: case ${ac_top_builddir}. in
10337: .) ac_abs_top_builddir=$ac_abs_builddir;;
10338: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10339: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10340: esac;;
10341: esac
10342: case $ac_abs_builddir in
10343: .) ac_abs_srcdir=$ac_srcdir;;
10344: *)
10345: case $ac_srcdir in
10346: .) ac_abs_srcdir=$ac_abs_builddir;;
10347: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10348: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10349: esac;;
10350: esac
10351: case $ac_abs_builddir in
10352: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10353: *)
10354: case $ac_top_srcdir in
10355: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10356: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10357: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10358: esac;;
10359: esac
10360:
10361:
10362: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10363: echo "$as_me: executing $ac_dest commands" >&6;}
10364: case $ac_dest in
10365: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10366: # Strip MF so we end up with the name of the file.
10367: mf=`echo "$mf" | sed -e 's/:.*$//'`
10368: # Check whether this is an Automake generated Makefile or not.
10369: # We used to match only the files named `Makefile.in', but
10370: # some people rename them; so instead we look at the file content.
10371: # Grep'ing the first line is not enough: some people post-process
10372: # each Makefile.in and add a new line on top of each file to say so.
10373: # So let's grep whole file.
10374: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10375: dirpart=`(dirname "$mf") 2>/dev/null ||
10376: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10377: X"$mf" : 'X\(//\)[^/]' \| \
10378: X"$mf" : 'X\(//\)$' \| \
10379: X"$mf" : 'X\(/\)' \| \
10380: . : '\(.\)' 2>/dev/null ||
10381: echo X"$mf" |
10382: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10383: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10384: /^X\(\/\/\)$/{ s//\1/; q; }
10385: /^X\(\/\).*/{ s//\1/; q; }
10386: s/.*/./; q'`
10387: else
10388: continue
10389: fi
10390: # Extract the definition of DEPDIR, am__include, and am__quote
10391: # from the Makefile without running `make'.
10392: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10393: test -z "$DEPDIR" && continue
10394: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10395: test -z "am__include" && continue
10396: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10397: # When using ansi2knr, U may be empty or an underscore; expand it
10398: U=`sed -n 's/^U = //p' < "$mf"`
10399: # Find all dependency output files, they are included files with
10400: # $(DEPDIR) in their names. We invoke sed twice because it is the
10401: # simplest approach to changing $(DEPDIR) to its actual value in the
10402: # expansion.
10403: for file in `sed -n "
10404: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10405: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10406: # Make sure the directory exists.
10407: test -f "$dirpart/$file" && continue
10408: fdir=`(dirname "$file") 2>/dev/null ||
10409: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10410: X"$file" : 'X\(//\)[^/]' \| \
10411: X"$file" : 'X\(//\)$' \| \
10412: X"$file" : 'X\(/\)' \| \
10413: . : '\(.\)' 2>/dev/null ||
10414: echo X"$file" |
10415: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10416: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10417: /^X\(\/\/\)$/{ s//\1/; q; }
10418: /^X\(\/\).*/{ s//\1/; q; }
10419: s/.*/./; q'`
10420: { if $as_mkdir_p; then
10421: mkdir -p $dirpart/$fdir
10422: else
10423: as_dir=$dirpart/$fdir
10424: as_dirs=
10425: while test ! -d "$as_dir"; do
10426: as_dirs="$as_dir $as_dirs"
10427: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10428: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10429: X"$as_dir" : 'X\(//\)[^/]' \| \
10430: X"$as_dir" : 'X\(//\)$' \| \
10431: X"$as_dir" : 'X\(/\)' \| \
10432: . : '\(.\)' 2>/dev/null ||
10433: echo X"$as_dir" |
10434: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10435: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10436: /^X\(\/\/\)$/{ s//\1/; q; }
10437: /^X\(\/\).*/{ s//\1/; q; }
10438: s/.*/./; q'`
10439: done
10440: test ! -n "$as_dirs" || mkdir $as_dirs
10441: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10442: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10443: { (exit 1); exit 1; }; }; }
10444:
10445: # echo "creating $dirpart/$file"
10446: echo '# dummy' > "$dirpart/$file"
10447: done
10448: done
10449: ;;
10450: esac
10451: done
10452: _ACEOF
10453:
10454: cat >>$CONFIG_STATUS <<\_ACEOF
10455:
10456: { (exit 0); exit 0; }
10457: _ACEOF
10458: chmod +x $CONFIG_STATUS
10459: ac_clean_files=$ac_clean_files_save
10460:
10461:
10462: # configure is writing to config.log, and then calls config.status.
10463: # config.status does its own redirection, appending to config.log.
10464: # Unfortunately, on DOS this fails, as config.log is still kept open
10465: # by configure, so config.status won't be able to write to it; its
10466: # output is simply discarded. So we exec the FD to /dev/null,
10467: # effectively closing config.log, so it can be properly (re)opened and
10468: # appended to by config.status. When coming back to configure, we
10469: # need to make the FD available again.
10470: if test "$no_create" != yes; then
10471: ac_cs_success=:
10472: ac_config_status_args=
10473: test "$silent" = yes &&
10474: ac_config_status_args="$ac_config_status_args --quiet"
10475: exec 5>/dev/null
10476: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10477: exec 5>>config.log
10478: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10479: # would make configure fail if this is the last instruction.
10480: $ac_cs_success || { (exit 1); exit 1; }
10481: fi
10482:
10483: #
10484: # CONFIG_SUBDIRS section.
10485: #
10486: if test "$no_recursion" != yes; then
10487:
10488: # Remove --cache-file and --srcdir arguments so they do not pile up.
10489: ac_sub_configure_args=
10490: ac_prev=
10491: for ac_arg in $ac_configure_args; do
10492: if test -n "$ac_prev"; then
10493: ac_prev=
10494: continue
10495: fi
10496: case $ac_arg in
10497: -cache-file | --cache-file | --cache-fil | --cache-fi \
10498: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10499: ac_prev=cache_file ;;
10500: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10501: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10502: | --c=*)
10503: ;;
10504: --config-cache | -C)
10505: ;;
10506: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10507: ac_prev=srcdir ;;
10508: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10509: ;;
10510: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10511: ac_prev=prefix ;;
10512: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10513: ;;
10514: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10515: esac
10516: done
10517:
10518: # Always prepend --prefix to ensure using the same prefix
10519: # in subdir configurations.
10520: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10521:
10522: ac_popdir=`pwd`
10523: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10524:
10525: # Do not complain, so a configure script can configure whichever
10526: # parts of a large source tree are present.
10527: test -d $srcdir/$ac_dir || continue
10528:
10529: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10530: echo "$as_me: configuring in $ac_dir" >&6;}
10531: { if $as_mkdir_p; then
10532: mkdir -p "$ac_dir"
10533: else
10534: as_dir="$ac_dir"
10535: as_dirs=
10536: while test ! -d "$as_dir"; do
10537: as_dirs="$as_dir $as_dirs"
10538: as_dir=`(dirname "$as_dir") 2>/dev/null ||
10539: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10540: X"$as_dir" : 'X\(//\)[^/]' \| \
10541: X"$as_dir" : 'X\(//\)$' \| \
10542: X"$as_dir" : 'X\(/\)' \| \
10543: . : '\(.\)' 2>/dev/null ||
10544: echo X"$as_dir" |
10545: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10546: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10547: /^X\(\/\/\)$/{ s//\1/; q; }
10548: /^X\(\/\).*/{ s//\1/; q; }
10549: s/.*/./; q'`
10550: done
10551: test ! -n "$as_dirs" || mkdir $as_dirs
10552: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10553: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10554: { (exit 1); exit 1; }; }; }
10555:
10556: ac_builddir=.
10557:
10558: if test "$ac_dir" != .; then
10559: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10560: # A "../" for each directory in $ac_dir_suffix.
10561: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10562: else
10563: ac_dir_suffix= ac_top_builddir=
10564: fi
10565:
10566: case $srcdir in
10567: .) # No --srcdir option. We are building in place.
10568: ac_srcdir=.
10569: if test -z "$ac_top_builddir"; then
10570: ac_top_srcdir=.
10571: else
10572: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10573: fi ;;
10574: [\\/]* | ?:[\\/]* ) # Absolute path.
10575: ac_srcdir=$srcdir$ac_dir_suffix;
10576: ac_top_srcdir=$srcdir ;;
10577: *) # Relative path.
10578: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10579: ac_top_srcdir=$ac_top_builddir$srcdir ;;
10580: esac
10581:
10582: # Do not use `cd foo && pwd` to compute absolute paths, because
10583: # the directories may not exist.
10584: case `pwd` in
10585: .) ac_abs_builddir="$ac_dir";;
10586: *)
10587: case "$ac_dir" in
10588: .) ac_abs_builddir=`pwd`;;
10589: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10590: *) ac_abs_builddir=`pwd`/"$ac_dir";;
10591: esac;;
10592: esac
10593: case $ac_abs_builddir in
10594: .) ac_abs_top_builddir=${ac_top_builddir}.;;
10595: *)
10596: case ${ac_top_builddir}. in
10597: .) ac_abs_top_builddir=$ac_abs_builddir;;
10598: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10599: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10600: esac;;
10601: esac
10602: case $ac_abs_builddir in
10603: .) ac_abs_srcdir=$ac_srcdir;;
10604: *)
10605: case $ac_srcdir in
10606: .) ac_abs_srcdir=$ac_abs_builddir;;
10607: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10608: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10609: esac;;
10610: esac
10611: case $ac_abs_builddir in
10612: .) ac_abs_top_srcdir=$ac_top_srcdir;;
10613: *)
10614: case $ac_top_srcdir in
10615: .) ac_abs_top_srcdir=$ac_abs_builddir;;
10616: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10617: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10618: esac;;
10619: esac
10620:
10621:
10622: cd $ac_dir
10623:
10624: # Check for guested configure; otherwise get Cygnus style configure.
10625: if test -f $ac_srcdir/configure.gnu; then
10626: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10627: elif test -f $ac_srcdir/configure; then
10628: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10629: elif test -f $ac_srcdir/configure.in; then
10630: ac_sub_configure=$ac_configure
10631: else
10632: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10633: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10634: ac_sub_configure=
10635: fi
10636:
10637: # The recursion is here.
10638: if test -n "$ac_sub_configure"; then
10639: # Make the cache file name correct relative to the subdirectory.
10640: case $cache_file in
10641: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10642: *) # Relative path.
10643: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
10644: esac
10645:
10646: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10647: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10648: # The eval makes quoting arguments work.
10649: eval $ac_sub_configure $ac_sub_configure_args \
10650: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10651: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10652: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10653: { (exit 1); exit 1; }; }
10654: fi
10655:
10656: cd $ac_popdir
10657: done
10658: fi
10659:
E-mail: