Annotation of sql/sqlite/configure, revision 1.21
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.13 moko 3: # Generated by GNU Autoconf 2.59 for parser3sqlite.C 10.2.
1.1 misha 4: #
1.11 moko 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.11 moko 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
1.1 misha 11:
1.11 moko 12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.1 misha 14: emulate sh
15: NULLCMD=:
1.11 moko 16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.1 misha 17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
1.11 moko 19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
1.10 moko 21: fi
1.11 moko 22: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 23:
1.11 moko 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
1.1 misha 29: fi
30:
1.10 moko 31:
1.11 moko 32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
1.1 misha 34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
1.11 moko 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
1.1 misha 43: do
1.11 moko 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
1.1 misha 46: else
1.11 moko 47: $as_unset $as_var
1.1 misha 48: fi
1.11 moko 49: done
1.10 moko 50:
1.11 moko 51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
1.1 misha 53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
1.11 moko 58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.1 misha 59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
1.11 moko 65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
1.1 misha 67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
1.11 moko 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:
1.1 misha 77:
1.11 moko 78: # PATH needs CR, and LINENO needs CR and PATH.
1.1 misha 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:
1.11 moko 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
1.1 misha 155:
1.11 moko 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 |
1.1 misha 165: sed '
166: N
1.11 moko 167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1.1 misha 170: t loop
1.11 moko 171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
1.1 misha 173: ' >$as_me.lineno &&
1.11 moko 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; }; }
1.1 misha 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
1.11 moko 180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
1.1 misha 182: # Exit status is that of the last command.
183: exit
184: }
185:
1.11 moko 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= ;;
1.1 misha 192: esac
193:
1.11 moko 194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
1.1 misha 196: else
1.11 moko 197: as_expr=false
1.1 misha 198: fi
1.11 moko 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
1.10 moko 209: as_ln_s='ln -s'
1.1 misha 210: fi
1.11 moko 211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
1.1 misha 213: else
214: as_ln_s='cp -p'
215: fi
1.11 moko 216: rm -f conf$$ conf$$.exe conf$$.file
1.1 misha 217:
218: if mkdir -p . 2>/dev/null; then
1.11 moko 219: as_mkdir_p=:
1.1 misha 220: else
221: test -d ./-p && rmdir ./-p
222: as_mkdir_p=false
223: fi
224:
1.11 moko 225: as_executable_p="test -f"
1.1 misha 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:
1.11 moko 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:
1.13 moko 243: lt_ltdl_dir='libltdl'
244:
1.1 misha 245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.8 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.1 misha 248:
249:
250: # Name of the host.
1.11 moko 251: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1.1 misha 252: # so uname gets run too.
253: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254:
1.11 moko 255: exec 6>&1
256:
1.1 misha 257: #
258: # Initializations.
259: #
260: ac_default_prefix=/usr/local
261: ac_config_libobj_dir=.
262: cross_compiling=no
263: subdirs=
264: MFLAGS=
265: MAKEFLAGS=
1.11 moko 266: SHELL=${CONFIG_SHELL-/bin/sh}
267:
268: # Maximum number of lines to put in a shell here document.
269: # This variable seems obsolete. It should probably be removed, and
270: # only ac_max_sed_lines should be used.
271: : ${ac_max_here_lines=38}
1.1 misha 272:
273: # Identity of this package.
1.13 moko 274: PACKAGE_NAME='parser3sqlite.C'
275: PACKAGE_TARNAME='parser3sqlite-c'
276: PACKAGE_VERSION='10.2'
277: PACKAGE_STRING='parser3sqlite.C 10.2'
278: PACKAGE_BUGREPORT=''
1.1 misha 279:
280: ac_unique_file="parser3sqlite.C"
281: # Factoring default headers for most tests.
282: ac_includes_default="\
283: #include <stdio.h>
1.11 moko 284: #if HAVE_SYS_TYPES_H
1.1 misha 285: # include <sys/types.h>
286: #endif
1.11 moko 287: #if HAVE_SYS_STAT_H
1.1 misha 288: # include <sys/stat.h>
289: #endif
1.11 moko 290: #if STDC_HEADERS
1.1 misha 291: # include <stdlib.h>
292: # include <stddef.h>
293: #else
1.11 moko 294: # if HAVE_STDLIB_H
1.1 misha 295: # include <stdlib.h>
296: # endif
297: #endif
1.11 moko 298: #if HAVE_STRING_H
299: # if !STDC_HEADERS && HAVE_MEMORY_H
1.1 misha 300: # include <memory.h>
301: # endif
302: # include <string.h>
303: #endif
1.11 moko 304: #if HAVE_STRINGS_H
1.1 misha 305: # include <strings.h>
306: #endif
1.11 moko 307: #if HAVE_INTTYPES_H
1.1 misha 308: # include <inttypes.h>
1.11 moko 309: #else
310: # if HAVE_STDINT_H
311: # include <stdint.h>
312: # endif
1.1 misha 313: #endif
1.11 moko 314: #if HAVE_UNISTD_H
1.1 misha 315: # include <unistd.h>
316: #endif"
317:
1.11 moko 318: ac_subdirs_all="$ac_subdirs_all libltdl"
1.17 moko 319: 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB MANIFEST_TOOL ac_ct_MANIFEST_TOOL DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CXXCPP LIBLTDL LTDLDEPS LTDLINCL INCLTDL LT_DLLOADERS LIBADD_DLOPEN LIBADD_SHL_LOAD LIBADD_DLD_LINK LT_DLPREOPEN LIBADD_DL sys_symbol_underscore ARGZ_H INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE subdirs LT_CONFIG_H LTDLOPEN LIBOBJS LTLIBOBJS ltdl_LIBOBJS ltdl_LTLIBOBJS'
1.1 misha 320: ac_subst_files=''
321:
322: # Initialize some variables set by options.
323: ac_init_help=
324: ac_init_version=false
325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
327: cache_file=/dev/null
328: exec_prefix=NONE
329: no_create=
330: no_recursion=
331: prefix=NONE
332: program_prefix=NONE
333: program_suffix=NONE
334: program_transform_name=s,x,x,
335: silent=
336: site=
337: srcdir=
338: verbose=
339: x_includes=NONE
340: x_libraries=NONE
341:
342: # Installation directory options.
343: # These are left unexpanded so users can "make install exec_prefix=/foo"
344: # and all the variables that are supposed to be based on exec_prefix
345: # by default will actually change.
346: # Use braces instead of parens because sh, perl, etc. also accept them.
347: bindir='${exec_prefix}/bin'
348: sbindir='${exec_prefix}/sbin'
349: libexecdir='${exec_prefix}/libexec'
1.11 moko 350: datadir='${prefix}/share'
1.1 misha 351: sysconfdir='${prefix}/etc'
352: sharedstatedir='${prefix}/com'
353: localstatedir='${prefix}/var'
1.11 moko 354: libdir='${exec_prefix}/lib'
1.1 misha 355: includedir='${prefix}/include'
356: oldincludedir='/usr/include'
1.11 moko 357: infodir='${prefix}/info'
358: mandir='${prefix}/man'
1.1 misha 359:
360: ac_prev=
361: for ac_option
362: do
363: # If the previous option needs an argument, assign it.
364: if test -n "$ac_prev"; then
1.11 moko 365: eval "$ac_prev=\$ac_option"
1.1 misha 366: ac_prev=
367: continue
368: fi
369:
1.11 moko 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 misha 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.11 moko 374: case $ac_option in
1.1 misha 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379: bindir=$ac_optarg ;;
380:
381: -build | --build | --buil | --bui | --bu)
382: ac_prev=build_alias ;;
383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
384: build_alias=$ac_optarg ;;
385:
386: -cache-file | --cache-file | --cache-fil | --cache-fi \
387: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
388: ac_prev=cache_file ;;
389: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
390: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
395:
1.11 moko 396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1.1 misha 397: ac_prev=datadir ;;
1.11 moko 398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.1 misha 400: datadir=$ac_optarg ;;
401:
402: -disable-* | --disable-*)
1.11 moko 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misha 404: # Reject names that are not valid shell variable names.
1.11 moko 405: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407: { (exit 1); exit 1; }; }
408: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409: eval "enable_$ac_feature=no" ;;
1.1 misha 410:
411: -enable-* | --enable-*)
1.11 moko 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misha 413: # Reject names that are not valid shell variable names.
1.11 moko 414: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
415: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
416: { (exit 1); exit 1; }; }
417: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
418: case $ac_option in
419: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420: *) ac_optarg=yes ;;
1.1 misha 421: esac
1.11 moko 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 misha 423:
424: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426: | --exec | --exe | --ex)
427: ac_prev=exec_prefix ;;
428: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430: | --exec=* | --exe=* | --ex=*)
431: exec_prefix=$ac_optarg ;;
432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
437: -help | --help | --hel | --he | -h)
438: ac_init_help=long ;;
439: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
440: ac_init_help=recursive ;;
441: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
442: ac_init_help=short ;;
443:
444: -host | --host | --hos | --ho)
445: ac_prev=host_alias ;;
446: -host=* | --host=* | --hos=* | --ho=*)
447: host_alias=$ac_optarg ;;
448:
449: -includedir | --includedir | --includedi | --included | --include \
450: | --includ | --inclu | --incl | --inc)
451: ac_prev=includedir ;;
452: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
453: | --includ=* | --inclu=* | --incl=* | --inc=*)
454: includedir=$ac_optarg ;;
455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
459: infodir=$ac_optarg ;;
460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
464: libdir=$ac_optarg ;;
465:
466: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
467: | --libexe | --libex | --libe)
468: ac_prev=libexecdir ;;
469: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
470: | --libexe=* | --libex=* | --libe=*)
471: libexecdir=$ac_optarg ;;
472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.11 moko 474: | --localstate | --localstat | --localsta | --localst \
475: | --locals | --local | --loca | --loc | --lo)
1.1 misha 476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.11 moko 478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.1 misha 480: localstatedir=$ac_optarg ;;
481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485: mandir=$ac_optarg ;;
486:
487: -nfp | --nfp | --nf)
488: # Obsolete; use --without-fp.
489: with_fp=no ;;
490:
491: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492: | --no-cr | --no-c | -n)
493: no_create=yes ;;
494:
495: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497: no_recursion=yes ;;
498:
499: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
500: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
501: | --oldin | --oldi | --old | --ol | --o)
502: ac_prev=oldincludedir ;;
503: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
504: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
505: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
506: oldincludedir=$ac_optarg ;;
507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511: prefix=$ac_optarg ;;
512:
513: -program-prefix | --program-prefix | --program-prefi | --program-pref \
514: | --program-pre | --program-pr | --program-p)
515: ac_prev=program_prefix ;;
516: -program-prefix=* | --program-prefix=* | --program-prefi=* \
517: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
518: program_prefix=$ac_optarg ;;
519:
520: -program-suffix | --program-suffix | --program-suffi | --program-suff \
521: | --program-suf | --program-su | --program-s)
522: ac_prev=program_suffix ;;
523: -program-suffix=* | --program-suffix=* | --program-suffi=* \
524: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
525: program_suffix=$ac_optarg ;;
526:
527: -program-transform-name | --program-transform-name \
528: | --program-transform-nam | --program-transform-na \
529: | --program-transform-n | --program-transform- \
530: | --program-transform | --program-transfor \
531: | --program-transfo | --program-transf \
532: | --program-trans | --program-tran \
533: | --progr-tra | --program-tr | --program-t)
534: ac_prev=program_transform_name ;;
535: -program-transform-name=* | --program-transform-name=* \
536: | --program-transform-nam=* | --program-transform-na=* \
537: | --program-transform-n=* | --program-transform-=* \
538: | --program-transform=* | --program-transfor=* \
539: | --program-transfo=* | --program-transf=* \
540: | --program-trans=* | --program-tran=* \
541: | --progr-tra=* | --program-tr=* | --program-t=*)
542: program_transform_name=$ac_optarg ;;
543:
544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
545: | -silent | --silent | --silen | --sile | --sil)
546: silent=yes ;;
547:
548: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
549: ac_prev=sbindir ;;
550: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
551: | --sbi=* | --sb=*)
552: sbindir=$ac_optarg ;;
553:
554: -sharedstatedir | --sharedstatedir | --sharedstatedi \
555: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
556: | --sharedst | --shareds | --shared | --share | --shar \
557: | --sha | --sh)
558: ac_prev=sharedstatedir ;;
559: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
560: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
561: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
562: | --sha=* | --sh=*)
563: sharedstatedir=$ac_optarg ;;
564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
568: site=$ac_optarg ;;
569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573: srcdir=$ac_optarg ;;
574:
575: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
576: | --syscon | --sysco | --sysc | --sys | --sy)
577: ac_prev=sysconfdir ;;
578: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
579: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
580: sysconfdir=$ac_optarg ;;
581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
583: ac_prev=target_alias ;;
584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
585: target_alias=$ac_optarg ;;
586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
592:
593: -with-* | --with-*)
1.11 moko 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misha 595: # Reject names that are not valid shell variable names.
1.11 moko 596: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
597: { echo "$as_me: error: invalid package name: $ac_package" >&2
598: { (exit 1); exit 1; }; }
599: ac_package=`echo $ac_package| sed 's/-/_/g'`
600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602: *) ac_optarg=yes ;;
1.1 misha 603: esac
1.11 moko 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 misha 605:
606: -without-* | --without-*)
1.11 moko 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misha 608: # Reject names that are not valid shell variable names.
1.11 moko 609: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610: { echo "$as_me: error: invalid package name: $ac_package" >&2
611: { (exit 1); exit 1; }; }
612: ac_package=`echo $ac_package | sed 's/-/_/g'`
613: eval "with_$ac_package=no" ;;
1.1 misha 614:
615: --x)
616: # Obsolete; use --with-x.
617: with_x=yes ;;
618:
619: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
620: | --x-incl | --x-inc | --x-in | --x-i)
621: ac_prev=x_includes ;;
622: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
623: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
624: x_includes=$ac_optarg ;;
625:
626: -x-libraries | --x-libraries | --x-librarie | --x-librari \
627: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
628: ac_prev=x_libraries ;;
629: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
630: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
631: x_libraries=$ac_optarg ;;
632:
1.11 moko 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
634: Try \`$0 --help' for more information." >&2
635: { (exit 1); exit 1; }; }
1.1 misha 636: ;;
637:
638: *=*)
639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
640: # Reject names that are not valid shell variable names.
1.11 moko 641: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
642: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
643: { (exit 1); exit 1; }; }
644: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
645: eval "$ac_envvar='$ac_optarg'"
1.1 misha 646: export $ac_envvar ;;
647:
648: *)
649: # FIXME: should be removed in autoconf 3.0.
1.11 moko 650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misha 651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.11 moko 652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 misha 653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.11 moko 661: { echo "$as_me: error: missing argument to $ac_option" >&2
662: { (exit 1); exit 1; }; }
1.10 moko 663: fi
664:
1.11 moko 665: # Be sure to have absolute paths.
666: for ac_var in exec_prefix prefix
667: do
668: eval ac_val=$`echo $ac_var`
669: case $ac_val in
670: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
671: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
672: { (exit 1); exit 1; }; };;
1.10 moko 673: esac
1.11 moko 674: done
1.1 misha 675:
1.11 moko 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 misha 679: do
1.11 moko 680: eval ac_val=$`echo $ac_var`
1.1 misha 681: case $ac_val in
1.11 moko 682: [\\/$]* | ?:[\\/]* ) ;;
683: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
684: { (exit 1); exit 1; }; };;
1.1 misha 685: esac
686: done
687:
688: # There might be people who depend on the old broken behavior: `$host'
689: # used to hold the argument of --host etc.
690: # FIXME: To remove some day.
691: build=$build_alias
692: host=$host_alias
693: target=$target_alias
694:
695: # FIXME: To remove some day.
696: if test "x$host_alias" != x; then
697: if test "x$build_alias" = x; then
698: cross_compiling=maybe
1.11 moko 699: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
700: If a cross compiler is detected then cross compile mode will be used." >&2
1.1 misha 701: elif test "x$build_alias" != "x$host_alias"; then
702: cross_compiling=yes
703: fi
704: fi
705:
706: ac_tool_prefix=
707: test -n "$host_alias" && ac_tool_prefix=$host_alias-
708:
709: test "$silent" = yes && exec 6>/dev/null
710:
711:
712: # Find the source files, if location was not specified.
713: if test -z "$srcdir"; then
714: ac_srcdir_defaulted=yes
1.11 moko 715: # Try the directory containing this script, then its parent.
716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
722: echo X"$0" |
723: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
724: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
725: /^X\(\/\/\)$/{ s//\1/; q; }
726: /^X\(\/\).*/{ s//\1/; q; }
727: s/.*/./; q'`
1.1 misha 728: srcdir=$ac_confdir
1.11 moko 729: if test ! -r $srcdir/$ac_unique_file; then
1.1 misha 730: srcdir=..
731: fi
732: else
733: ac_srcdir_defaulted=no
734: fi
1.11 moko 735: if test ! -r $srcdir/$ac_unique_file; then
736: if test "$ac_srcdir_defaulted" = yes; then
737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
739: else
740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
742: fi
743: fi
744: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
745: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
746: { (exit 1); exit 1; }; }
747: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
748: ac_env_build_alias_set=${build_alias+set}
749: ac_env_build_alias_value=$build_alias
750: ac_cv_env_build_alias_set=${build_alias+set}
751: ac_cv_env_build_alias_value=$build_alias
752: ac_env_host_alias_set=${host_alias+set}
753: ac_env_host_alias_value=$host_alias
754: ac_cv_env_host_alias_set=${host_alias+set}
755: ac_cv_env_host_alias_value=$host_alias
756: ac_env_target_alias_set=${target_alias+set}
757: ac_env_target_alias_value=$target_alias
758: ac_cv_env_target_alias_set=${target_alias+set}
759: ac_cv_env_target_alias_value=$target_alias
760: ac_env_CXX_set=${CXX+set}
761: ac_env_CXX_value=$CXX
762: ac_cv_env_CXX_set=${CXX+set}
763: ac_cv_env_CXX_value=$CXX
764: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765: ac_env_CXXFLAGS_value=$CXXFLAGS
766: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768: ac_env_LDFLAGS_set=${LDFLAGS+set}
769: ac_env_LDFLAGS_value=$LDFLAGS
770: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771: ac_cv_env_LDFLAGS_value=$LDFLAGS
772: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773: ac_env_CPPFLAGS_value=$CPPFLAGS
774: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776: ac_env_CC_set=${CC+set}
777: ac_env_CC_value=$CC
778: ac_cv_env_CC_set=${CC+set}
779: ac_cv_env_CC_value=$CC
780: ac_env_CFLAGS_set=${CFLAGS+set}
781: ac_env_CFLAGS_value=$CFLAGS
782: ac_cv_env_CFLAGS_set=${CFLAGS+set}
783: ac_cv_env_CFLAGS_value=$CFLAGS
784: ac_env_CPP_set=${CPP+set}
785: ac_env_CPP_value=$CPP
786: ac_cv_env_CPP_set=${CPP+set}
787: ac_cv_env_CPP_value=$CPP
788: ac_env_CXXCPP_set=${CXXCPP+set}
789: ac_env_CXXCPP_value=$CXXCPP
790: ac_cv_env_CXXCPP_set=${CXXCPP+set}
791: ac_cv_env_CXXCPP_value=$CXXCPP
1.1 misha 792:
793: #
794: # Report the --help message.
795: #
796: if test "$ac_init_help" = "long"; then
797: # Omit some internal or obsolete options to make the list less imposing.
798: # This message is too long to be a string in the A/UX 3.1 sh.
799: cat <<_ACEOF
1.13 moko 800: \`configure' configures parser3sqlite.C 10.2 to adapt to many kinds of systems.
1.1 misha 801:
802: Usage: $0 [OPTION]... [VAR=VALUE]...
803:
804: To assign environment variables (e.g., CC, CFLAGS...), specify them as
805: VAR=VALUE. See below for descriptions of some of the useful variables.
806:
807: Defaults for the options are specified in brackets.
808:
809: Configuration:
810: -h, --help display this help and exit
811: --help=short display options specific to this package
812: --help=recursive display the short help of all the included packages
813: -V, --version display version information and exit
1.11 moko 814: -q, --quiet, --silent do not print \`checking...' messages
1.1 misha 815: --cache-file=FILE cache test results in FILE [disabled]
816: -C, --config-cache alias for \`--cache-file=config.cache'
817: -n, --no-create do not create output files
818: --srcdir=DIR find the sources in DIR [configure dir or \`..']
819:
1.11 moko 820: _ACEOF
821:
822: cat <<_ACEOF
1.1 misha 823: Installation directories:
824: --prefix=PREFIX install architecture-independent files in PREFIX
1.11 moko 825: [$ac_default_prefix]
1.1 misha 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.11 moko 827: [PREFIX]
1.1 misha 828:
829: By default, \`make install' will install all the files in
830: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
831: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
832: for instance \`--prefix=\$HOME'.
833:
834: For better control, use the options below.
835:
836: Fine tuning of the installation directories:
1.11 moko 837: --bindir=DIR user executables [EPREFIX/bin]
838: --sbindir=DIR system admin executables [EPREFIX/sbin]
839: --libexecdir=DIR program executables [EPREFIX/libexec]
840: --datadir=DIR read-only architecture-independent data [PREFIX/share]
841: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
842: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
843: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
844: --libdir=DIR object code libraries [EPREFIX/lib]
845: --includedir=DIR C header files [PREFIX/include]
846: --oldincludedir=DIR C header files for non-gcc [/usr/include]
847: --infodir=DIR info documentation [PREFIX/info]
848: --mandir=DIR man documentation [PREFIX/man]
1.1 misha 849: _ACEOF
850:
851: cat <<\_ACEOF
852:
853: Program names:
854: --program-prefix=PREFIX prepend PREFIX to installed program names
855: --program-suffix=SUFFIX append SUFFIX to installed program names
856: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
857:
858: System types:
859: --build=BUILD configure for building on BUILD [guessed]
860: --host=HOST cross-compile to build programs to run on HOST [BUILD]
861: _ACEOF
862: fi
863:
864: if test -n "$ac_init_help"; then
1.13 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3sqlite.C 10.2:";;
867: esac
1.1 misha 868: cat <<\_ACEOF
869:
870: Optional Features:
871: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
872: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.20 moko 875: --enable-static[=PKGS]
876: build static libraries [default=no]
1.11 moko 877: --enable-shared[=PKGS]
878: build shared libraries [default=yes]
1.8 moko 879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.1 misha 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 882: --enable-ltdl-install install libltdl
1.1 misha 883:
884: Optional Packages:
885: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.11 moko 888: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 889: both]
890: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
891: --with-sysroot=DIR Search for dependent libraries within DIR
892: (or the compiler's sysroot if not specified).
893: --with-included-ltdl use the GNU ltdl sources included here
894: --with-ltdl-include=DIR use the ltdl headers installed in DIR
895: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 896:
897: Some influential environment variables:
898: CXX C++ compiler command
899: CXXFLAGS C++ compiler flags
900: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901: nonstandard directory <lib dir>
1.11 moko 902: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903: headers in a nonstandard directory <include dir>
1.1 misha 904: CC C compiler command
905: CFLAGS C compiler flags
906: CPP C preprocessor
1.8 moko 907: CXXCPP C++ preprocessor
1.1 misha 908:
909: Use these variables to override the choices made by `configure' or to help
910: it to find libraries and programs with nonstandard names/locations.
911:
912: _ACEOF
913: fi
914:
915: if test "$ac_init_help" = "recursive"; then
916: # If there are subdirs, report their specific --help.
1.11 moko 917: ac_popdir=`pwd`
1.1 misha 918: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.11 moko 919: test -d $ac_dir || continue
1.1 misha 920: ac_builddir=.
921:
1.11 moko 922: if test "$ac_dir" != .; then
923: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924: # A "../" for each directory in $ac_dir_suffix.
925: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926: else
927: ac_dir_suffix= ac_top_builddir=
928: fi
1.1 misha 929:
930: case $srcdir in
1.11 moko 931: .) # No --srcdir option. We are building in place.
1.1 misha 932: ac_srcdir=.
1.11 moko 933: if test -z "$ac_top_builddir"; then
934: ac_top_srcdir=.
935: else
936: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937: fi ;;
938: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 939: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 940: ac_top_srcdir=$srcdir ;;
941: *) # Relative path.
942: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943: ac_top_srcdir=$ac_top_builddir$srcdir ;;
944: esac
945:
946: # Do not use `cd foo && pwd` to compute absolute paths, because
947: # the directories may not exist.
948: case `pwd` in
949: .) ac_abs_builddir="$ac_dir";;
950: *)
951: case "$ac_dir" in
952: .) ac_abs_builddir=`pwd`;;
953: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954: *) ac_abs_builddir=`pwd`/"$ac_dir";;
955: esac;;
956: esac
957: case $ac_abs_builddir in
958: .) ac_abs_top_builddir=${ac_top_builddir}.;;
959: *)
960: case ${ac_top_builddir}. in
961: .) ac_abs_top_builddir=$ac_abs_builddir;;
962: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964: esac;;
965: esac
966: case $ac_abs_builddir in
967: .) ac_abs_srcdir=$ac_srcdir;;
968: *)
969: case $ac_srcdir in
970: .) ac_abs_srcdir=$ac_abs_builddir;;
971: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973: esac;;
974: esac
975: case $ac_abs_builddir in
976: .) ac_abs_top_srcdir=$ac_top_srcdir;;
977: *)
978: case $ac_top_srcdir in
979: .) ac_abs_top_srcdir=$ac_abs_builddir;;
980: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982: esac;;
1.1 misha 983: esac
984:
1.11 moko 985: cd $ac_dir
986: # Check for guested configure; otherwise get Cygnus style configure.
987: if test -f $ac_srcdir/configure.gnu; then
988: echo
989: $SHELL $ac_srcdir/configure.gnu --help=recursive
990: elif test -f $ac_srcdir/configure; then
991: echo
992: $SHELL $ac_srcdir/configure --help=recursive
993: elif test -f $ac_srcdir/configure.ac ||
994: test -f $ac_srcdir/configure.in; then
995: echo
996: $ac_configure --help
1.1 misha 997: else
1.11 moko 998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999: fi
1000: cd $ac_popdir
1.1 misha 1001: done
1002: fi
1003:
1.11 moko 1004: test -n "$ac_init_help" && exit 0
1.1 misha 1005: if $ac_init_version; then
1006: cat <<\_ACEOF
1.13 moko 1007: parser3sqlite.C configure 10.2
1008: generated by GNU Autoconf 2.59
1.1 misha 1009:
1.11 moko 1010: Copyright (C) 2003 Free Software Foundation, Inc.
1.1 misha 1011: This configure script is free software; the Free Software Foundation
1012: gives unlimited permission to copy, distribute and modify it.
1013: _ACEOF
1.11 moko 1014: exit 0
1.1 misha 1015: fi
1.11 moko 1016: exec 5>config.log
1017: cat >&5 <<_ACEOF
1018: This file contains any messages produced by compilers while
1019: running configure, to aid debugging if configure makes a mistake.
1.1 misha 1020:
1.13 moko 1021: It was created by parser3sqlite.C $as_me 10.2, which was
1.11 moko 1022: generated by GNU Autoconf 2.59. Invocation command line was
1.10 moko 1023:
1.11 moko 1024: $ $0 $@
1.1 misha 1025:
1.11 moko 1026: _ACEOF
1.1 misha 1027: {
1.11 moko 1028: cat <<_ASUNAME
1029: ## --------- ##
1030: ## Platform. ##
1031: ## --------- ##
1.10 moko 1032:
1.11 moko 1033: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 1038:
1.11 moko 1039: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1 misha 1040: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1041:
1042: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1043: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1044: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.11 moko 1045: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1.1 misha 1046: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1047: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1048: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049:
1050: _ASUNAME
1051:
1052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053: for as_dir in $PATH
1054: do
1055: IFS=$as_save_IFS
1056: test -z "$as_dir" && as_dir=.
1.11 moko 1057: echo "PATH: $as_dir"
1058: done
1.1 misha 1059:
1060: } >&5
1061:
1062: cat >&5 <<_ACEOF
1063:
1064:
1065: ## ----------- ##
1066: ## Core tests. ##
1067: ## ----------- ##
1068:
1069: _ACEOF
1070:
1071:
1072: # Keep a trace of the command line.
1073: # Strip out --no-create and --no-recursion so they do not pile up.
1074: # Strip out --silent because we don't want to record it for future runs.
1075: # Also quote any args containing shell meta-characters.
1076: # Make two passes to allow for proper duplicate-argument suppression.
1077: ac_configure_args=
1078: ac_configure_args0=
1079: ac_configure_args1=
1.11 moko 1080: ac_sep=
1.1 misha 1081: ac_must_keep_next=false
1082: for ac_pass in 1 2
1083: do
1084: for ac_arg
1085: do
1086: case $ac_arg in
1087: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089: | -silent | --silent | --silen | --sile | --sil)
1090: continue ;;
1.11 moko 1091: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1093: esac
1094: case $ac_pass in
1.11 moko 1095: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1 misha 1096: 2)
1.11 moko 1097: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1 misha 1098: if test $ac_must_keep_next = true; then
1099: ac_must_keep_next=false # Got value, back to normal.
1100: else
1101: case $ac_arg in
1102: *=* | --config-cache | -C | -disable-* | --disable-* \
1103: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105: | -with-* | --with-* | -without-* | --without-* | --x)
1106: case "$ac_configure_args0 " in
1107: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108: esac
1109: ;;
1110: -* ) ac_must_keep_next=true ;;
1111: esac
1112: fi
1.11 moko 1113: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114: # Get rid of the leading space.
1115: ac_sep=" "
1.1 misha 1116: ;;
1117: esac
1118: done
1119: done
1.11 moko 1120: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1 misha 1122:
1123: # When interrupted or exit'd, cleanup temporary files, and complete
1124: # config.log. We remove comments because anyway the quotes in there
1125: # would cause problems or look ugly.
1.11 moko 1126: # WARNING: Be sure not to use single quotes in there, as some shells,
1127: # such as our DU 5.0 friend, will then `close' the trap.
1.1 misha 1128: trap 'exit_status=$?
1129: # Save into config.log some information that might help in debugging.
1130: {
1131: echo
1132:
1.11 moko 1133: cat <<\_ASBOX
1134: ## ---------------- ##
1.1 misha 1135: ## Cache variables. ##
1.11 moko 1136: ## ---------------- ##
1137: _ASBOX
1.1 misha 1138: echo
1139: # The following way of writing the cache mishandles newlines in values,
1.11 moko 1140: {
1.1 misha 1141: (set) 2>&1 |
1.11 moko 1142: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143: *ac_space=\ *)
1.1 misha 1144: sed -n \
1.11 moko 1145: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147: ;;
1.1 misha 1148: *)
1.11 moko 1149: sed -n \
1150: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.1 misha 1151: ;;
1.11 moko 1152: esac;
1153: }
1.1 misha 1154: echo
1155:
1.11 moko 1156: cat <<\_ASBOX
1157: ## ----------------- ##
1.1 misha 1158: ## Output variables. ##
1.11 moko 1159: ## ----------------- ##
1160: _ASBOX
1.1 misha 1161: echo
1162: for ac_var in $ac_subst_vars
1163: do
1.11 moko 1164: eval ac_val=$`echo $ac_var`
1165: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1166: done | sort
1167: echo
1168:
1169: if test -n "$ac_subst_files"; then
1.11 moko 1170: cat <<\_ASBOX
1171: ## ------------- ##
1172: ## Output files. ##
1173: ## ------------- ##
1174: _ASBOX
1.1 misha 1175: echo
1176: for ac_var in $ac_subst_files
1177: do
1.11 moko 1178: eval ac_val=$`echo $ac_var`
1179: echo "$ac_var='"'"'$ac_val'"'"'"
1.1 misha 1180: done | sort
1181: echo
1182: fi
1183:
1184: if test -s confdefs.h; then
1.11 moko 1185: cat <<\_ASBOX
1186: ## ----------- ##
1.1 misha 1187: ## confdefs.h. ##
1.11 moko 1188: ## ----------- ##
1189: _ASBOX
1.1 misha 1190: echo
1.11 moko 1191: sed "/^$/d" confdefs.h | sort
1.1 misha 1192: echo
1193: fi
1194: test "$ac_signal" != 0 &&
1.11 moko 1195: echo "$as_me: caught signal $ac_signal"
1196: echo "$as_me: exit $exit_status"
1.1 misha 1197: } >&5
1.11 moko 1198: rm -f core *.core &&
1199: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 1200: exit $exit_status
1.11 moko 1201: ' 0
1.1 misha 1202: for ac_signal in 1 2 13 15; do
1.11 moko 1203: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1 misha 1204: done
1205: ac_signal=0
1206:
1207: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.11 moko 1208: rm -rf conftest* confdefs.h
1209: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210: echo >confdefs.h
1.1 misha 1211:
1212: # Predefined preprocessor variables.
1213:
1214: cat >>confdefs.h <<_ACEOF
1215: #define PACKAGE_NAME "$PACKAGE_NAME"
1216: _ACEOF
1217:
1.11 moko 1218:
1.1 misha 1219: cat >>confdefs.h <<_ACEOF
1220: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221: _ACEOF
1222:
1.11 moko 1223:
1.1 misha 1224: cat >>confdefs.h <<_ACEOF
1225: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226: _ACEOF
1227:
1.11 moko 1228:
1.1 misha 1229: cat >>confdefs.h <<_ACEOF
1230: #define PACKAGE_STRING "$PACKAGE_STRING"
1231: _ACEOF
1232:
1.11 moko 1233:
1.10 moko 1234: cat >>confdefs.h <<_ACEOF
1235: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236: _ACEOF
1.1 misha 1237:
1238:
1239: # Let the site file select an alternate cache file if it wants to.
1.11 moko 1240: # Prefer explicitly selected file to automatically selected ones.
1241: if test -z "$CONFIG_SITE"; then
1242: if test "x$prefix" != xNONE; then
1243: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244: else
1245: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246: fi
1247: fi
1248: for ac_site_file in $CONFIG_SITE; do
1249: if test -r "$ac_site_file"; then
1250: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251: echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 1252: sed 's/^/| /' "$ac_site_file" >&5
1.11 moko 1253: . "$ac_site_file"
1.1 misha 1254: fi
1255: done
1256:
1257: if test -r "$cache_file"; then
1.11 moko 1258: # Some versions of bash will fail to source /dev/null (special
1259: # files actually), so we avoid doing that.
1260: if test -f "$cache_file"; then
1261: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262: echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 1263: case $cache_file in
1.11 moko 1264: [\\/]* | ?:[\\/]* ) . $cache_file;;
1265: *) . ./$cache_file;;
1.1 misha 1266: esac
1267: fi
1268: else
1.11 moko 1269: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270: echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 1271: >$cache_file
1272: fi
1273:
1274: # Check that the precious variables saved in the cache have kept the same
1275: # value.
1276: ac_cache_corrupted=false
1.11 moko 1277: for ac_var in `(set) 2>&1 |
1278: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.1 misha 1279: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280: eval ac_new_set=\$ac_env_${ac_var}_set
1.11 moko 1281: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282: eval ac_new_val="\$ac_env_${ac_var}_value"
1.1 misha 1283: case $ac_old_set,$ac_new_set in
1284: set,)
1.11 moko 1285: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 1287: ac_cache_corrupted=: ;;
1288: ,set)
1.11 moko 1289: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 1291: ac_cache_corrupted=: ;;
1292: ,);;
1293: *)
1294: if test "x$ac_old_val" != "x$ac_new_val"; then
1.11 moko 1295: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1298: echo "$as_me: former value: $ac_old_val" >&2;}
1299: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1300: echo "$as_me: current value: $ac_new_val" >&2;}
1301: ac_cache_corrupted=:
1.1 misha 1302: fi;;
1303: esac
1304: # Pass precious variables to config.status.
1305: if test "$ac_new_set" = set; then
1306: case $ac_new_val in
1.11 moko 1307: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 1309: *) ac_arg=$ac_var=$ac_new_val ;;
1310: esac
1311: case " $ac_configure_args " in
1312: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.11 moko 1313: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1 misha 1314: esac
1315: fi
1316: done
1317: if $ac_cache_corrupted; then
1.11 moko 1318: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322: { (exit 1); exit 1; }; }
1323: fi
1.1 misha 1324:
1325: ac_ext=c
1326: ac_cpp='$CPP $CPPFLAGS'
1327: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330:
1331:
1332:
1333:
1.11 moko 1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1.13 moko 1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358: ac_config_headers="$ac_config_headers config_auto.h"
1359:
1360:
1.1 misha 1361: am__api_version="1.9"
1362: ac_aux_dir=
1.11 moko 1363: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1364: if test -f $ac_dir/install-sh; then
1.1 misha 1365: ac_aux_dir=$ac_dir
1366: ac_install_sh="$ac_aux_dir/install-sh -c"
1367: break
1.11 moko 1368: elif test -f $ac_dir/install.sh; then
1.1 misha 1369: ac_aux_dir=$ac_dir
1370: ac_install_sh="$ac_aux_dir/install.sh -c"
1371: break
1.11 moko 1372: elif test -f $ac_dir/shtool; then
1.1 misha 1373: ac_aux_dir=$ac_dir
1374: ac_install_sh="$ac_aux_dir/shtool install -c"
1375: break
1376: fi
1377: done
1378: if test -z "$ac_aux_dir"; then
1.11 moko 1379: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1380: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1381: { (exit 1); exit 1; }; }
1382: fi
1383: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1384: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1385: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 misha 1386:
1387: # Find a good install program. We prefer a C program (faster),
1388: # so one script is as good as another. But avoid the broken or
1389: # incompatible versions:
1390: # SysV /etc/install, /usr/sbin/install
1391: # SunOS /usr/etc/install
1392: # IRIX /sbin/install
1393: # AIX /bin/install
1394: # AmigaOS /C/install, which installs bootblocks on floppy discs
1395: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1396: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1397: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1398: # OS/2's system install, which has a completely different semantic
1399: # ./install, which can be erroneously created by make from ./install.sh.
1.11 moko 1400: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1401: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 misha 1402: if test -z "$INSTALL"; then
1.11 moko 1403: if test "${ac_cv_path_install+set}" = set; then
1404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1405: else
1406: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407: for as_dir in $PATH
1408: do
1409: IFS=$as_save_IFS
1410: test -z "$as_dir" && as_dir=.
1.11 moko 1411: # Account for people who put trailing slashes in PATH elements.
1412: case $as_dir/ in
1413: ./ | .// | /cC/* | \
1.1 misha 1414: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.11 moko 1415: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 misha 1416: /usr/ucb/* ) ;;
1417: *)
1418: # OSF1 and SCO ODT 3.0 have their own names for install.
1419: # Don't use installbsd from OSF since it installs stuff as root
1420: # by default.
1421: for ac_prog in ginstall scoinst install; do
1422: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 1423: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misha 1424: if test $ac_prog = install &&
1425: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1426: # AIX install. It has an incompatible calling convention.
1427: :
1428: elif test $ac_prog = install &&
1429: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1430: # program-specific install script used by HP pwplus--don't use.
1431: :
1432: else
1.11 moko 1433: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1434: break 3
1.1 misha 1435: fi
1436: fi
1437: done
1438: done
1439: ;;
1440: esac
1.11 moko 1441: done
1.1 misha 1442:
1443:
1444: fi
1445: if test "${ac_cv_path_install+set}" = set; then
1446: INSTALL=$ac_cv_path_install
1447: else
1.11 moko 1448: # As a last resort, use the slow shell script. We don't cache a
1449: # path for INSTALL within a source directory, because that will
1.1 misha 1450: # break other packages using the cache if that directory is
1.11 moko 1451: # removed, or if the path is relative.
1.1 misha 1452: INSTALL=$ac_install_sh
1453: fi
1454: fi
1.11 moko 1455: echo "$as_me:$LINENO: result: $INSTALL" >&5
1456: echo "${ECHO_T}$INSTALL" >&6
1.1 misha 1457:
1458: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1459: # It thinks the first close brace ends the variable substitution.
1460: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461:
1462: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1463:
1464: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465:
1.11 moko 1466: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1467: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 misha 1468: # Just in case
1469: sleep 1
1470: echo timestamp > conftest.file
1471: # Do `set' in a subshell so we don't clobber the current shell's
1472: # arguments. Must try -L first in case configure is actually a
1473: # symlink; some systems play weird games with the mod time of symlinks
1474: # (eg FreeBSD returns the mod time of the symlink's containing
1475: # directory).
1476: if (
1477: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1478: if test "$*" = "X"; then
1479: # -L didn't work.
1480: set X `ls -t $srcdir/configure conftest.file`
1481: fi
1482: rm -f conftest.file
1483: if test "$*" != "X $srcdir/configure conftest.file" \
1484: && test "$*" != "X conftest.file $srcdir/configure"; then
1485:
1486: # If neither matched, then we have a broken ls. This can happen
1487: # if, for instance, CONFIG_SHELL is bash and it inherits a
1488: # broken ls alias from the environment. This has actually
1489: # happened. Such a system could not be considered "sane".
1.11 moko 1490: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1491: alias in your environment" >&5
1492: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&2;}
1494: { (exit 1); exit 1; }; }
1.1 misha 1495: fi
1496:
1497: test "$2" = conftest.file
1498: )
1499: then
1500: # Ok.
1501: :
1502: else
1.11 moko 1503: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1504: Check your system clock" >&5
1505: echo "$as_me: error: newly created file is older than distributed files!
1506: Check your system clock" >&2;}
1507: { (exit 1); exit 1; }; }
1.1 misha 1508: fi
1.11 moko 1509: echo "$as_me:$LINENO: result: yes" >&5
1510: echo "${ECHO_T}yes" >&6
1.1 misha 1511: test "$program_prefix" != NONE &&
1.11 moko 1512: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 misha 1513: # Use a double $ so make ignores it.
1514: test "$program_suffix" != NONE &&
1.11 moko 1515: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1516: # Double any \ or $. echo might interpret backslashes.
1.1 misha 1517: # By default was `s,x,x', remove it if useless.
1.11 moko 1518: cat <<\_ACEOF >conftest.sed
1519: s/[\\$]/&&/g;s/;s,x,x,$//
1520: _ACEOF
1521: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1522: rm conftest.sed
1.1 misha 1523:
1524: # expand $ac_aux_dir to an absolute path
1525: am_aux_dir=`cd $ac_aux_dir && pwd`
1526:
1527: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528: # Use eval to expand $SHELL
1529: if eval "$MISSING --run true"; then
1530: am_missing_run="$MISSING --run "
1531: else
1532: am_missing_run=
1.11 moko 1533: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 1535: fi
1536:
1537: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1538: # We used to keeping the `.' as first argument, in order to
1539: # allow $(mkdir_p) to be used without argument. As in
1540: # $(mkdir_p) $(somedir)
1541: # where $(somedir) is conditionally defined. However this is wrong
1542: # for two reasons:
1543: # 1. if the package is installed by a user who cannot write `.'
1544: # make install will fail,
1545: # 2. the above comment should most certainly read
1546: # $(mkdir_p) $(DESTDIR)$(somedir)
1547: # so it does not work when $(somedir) is undefined and
1548: # $(DESTDIR) is not.
1549: # To support the latter case, we have to write
1550: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1551: # so the `.' trick is pointless.
1552: mkdir_p='mkdir -p --'
1553: else
1554: # On NextStep and OpenStep, the `mkdir' command does not
1555: # recognize any option. It will interpret all options as
1556: # directories to create, and then abort because `.' already
1557: # exists.
1558: for d in ./-p ./--version;
1559: do
1560: test -d $d && rmdir $d
1561: done
1562: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1563: if test -f "$ac_aux_dir/mkinstalldirs"; then
1564: mkdir_p='$(mkinstalldirs)'
1565: else
1566: mkdir_p='$(install_sh) -d'
1567: fi
1568: fi
1569:
1570: for ac_prog in gawk mawk nawk awk
1571: do
1572: # Extract the first word of "$ac_prog", so it can be a program name with args.
1573: set dummy $ac_prog; ac_word=$2
1.11 moko 1574: echo "$as_me:$LINENO: checking for $ac_word" >&5
1575: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576: if test "${ac_cv_prog_AWK+set}" = set; then
1577: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1578: else
1579: if test -n "$AWK"; then
1580: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581: else
1582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583: for as_dir in $PATH
1584: do
1585: IFS=$as_save_IFS
1586: test -z "$as_dir" && as_dir=.
1.11 moko 1587: for ac_exec_ext in '' $ac_executable_extensions; do
1588: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1589: ac_cv_prog_AWK="$ac_prog"
1.11 moko 1590: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1591: break 2
1592: fi
1593: done
1.11 moko 1594: done
1.1 misha 1595:
1596: fi
1597: fi
1598: AWK=$ac_cv_prog_AWK
1599: if test -n "$AWK"; then
1.11 moko 1600: echo "$as_me:$LINENO: result: $AWK" >&5
1601: echo "${ECHO_T}$AWK" >&6
1.1 misha 1602: else
1.11 moko 1603: echo "$as_me:$LINENO: result: no" >&5
1604: echo "${ECHO_T}no" >&6
1.1 misha 1605: fi
1606:
1607: test -n "$AWK" && break
1608: done
1609:
1.11 moko 1610: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1611: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1612: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1613: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1615: else
1616: cat >conftest.make <<\_ACEOF
1617: all:
1.11 moko 1618: @echo 'ac_maketemp="$(MAKE)"'
1.1 misha 1619: _ACEOF
1.11 moko 1620: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1621: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1622: if test -n "$ac_maketemp"; then
1623: eval ac_cv_prog_make_${ac_make}_set=yes
1624: else
1625: eval ac_cv_prog_make_${ac_make}_set=no
1626: fi
1.1 misha 1627: rm -f conftest.make
1628: fi
1.11 moko 1629: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1630: echo "$as_me:$LINENO: result: yes" >&5
1631: echo "${ECHO_T}yes" >&6
1.1 misha 1632: SET_MAKE=
1633: else
1.11 moko 1634: echo "$as_me:$LINENO: result: no" >&5
1635: echo "${ECHO_T}no" >&6
1.1 misha 1636: SET_MAKE="MAKE=${MAKE-make}"
1637: fi
1638:
1639: rm -rf .tst 2>/dev/null
1640: mkdir .tst 2>/dev/null
1641: if test -d .tst; then
1642: am__leading_dot=.
1643: else
1644: am__leading_dot=_
1645: fi
1646: rmdir .tst 2>/dev/null
1647:
1648: # test to see if srcdir already configured
1649: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1650: test -f $srcdir/config.status; then
1.11 moko 1651: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1652: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1653: { (exit 1); exit 1; }; }
1.1 misha 1654: fi
1655:
1656: # test whether we have cygpath
1657: if test -z "$CYGPATH_W"; then
1658: if (cygpath --version) >/dev/null 2>/dev/null; then
1659: CYGPATH_W='cygpath -w'
1660: else
1661: CYGPATH_W=echo
1662: fi
1663: fi
1664:
1665:
1666: # Define the identity of the package.
1.13 moko 1667: PACKAGE='parser3sqlite-c'
1668: VERSION='10.2'
1.1 misha 1669:
1670:
1.13 moko 1671: cat >>confdefs.h <<_ACEOF
1672: #define PACKAGE "$PACKAGE"
1673: _ACEOF
1674:
1675:
1676: cat >>confdefs.h <<_ACEOF
1677: #define VERSION "$VERSION"
1678: _ACEOF
1679:
1.1 misha 1680: # Some tools Automake needs.
1681:
1682: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1683:
1684:
1685: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1686:
1687:
1688: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1689:
1690:
1691: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1692:
1693:
1694: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1695:
1696: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1697:
1698: # Installed binaries are usually stripped using `strip' when the user
1699: # run `make install-strip'. However `strip' might not be the right
1700: # tool to use in cross-compilation environments, therefore Automake
1701: # will honor the `STRIP' environment variable to overrule this program.
1702: if test "$cross_compiling" != no; then
1703: if test -n "$ac_tool_prefix"; then
1704: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1705: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 1706: echo "$as_me:$LINENO: checking for $ac_word" >&5
1707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708: if test "${ac_cv_prog_STRIP+set}" = set; then
1709: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1710: else
1711: if test -n "$STRIP"; then
1712: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1713: else
1714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715: for as_dir in $PATH
1716: do
1717: IFS=$as_save_IFS
1718: test -z "$as_dir" && as_dir=.
1.11 moko 1719: for ac_exec_ext in '' $ac_executable_extensions; do
1720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1721: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 1722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1723: break 2
1724: fi
1725: done
1.11 moko 1726: done
1727:
1.1 misha 1728: fi
1729: fi
1730: STRIP=$ac_cv_prog_STRIP
1731: if test -n "$STRIP"; then
1.11 moko 1732: echo "$as_me:$LINENO: result: $STRIP" >&5
1733: echo "${ECHO_T}$STRIP" >&6
1.1 misha 1734: else
1.11 moko 1735: echo "$as_me:$LINENO: result: no" >&5
1736: echo "${ECHO_T}no" >&6
1.1 misha 1737: fi
1738:
1739: fi
1740: if test -z "$ac_cv_prog_STRIP"; then
1741: ac_ct_STRIP=$STRIP
1742: # Extract the first word of "strip", so it can be a program name with args.
1743: set dummy strip; ac_word=$2
1.11 moko 1744: echo "$as_me:$LINENO: checking for $ac_word" >&5
1745: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1747: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1748: else
1749: if test -n "$ac_ct_STRIP"; then
1750: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1751: else
1752: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753: for as_dir in $PATH
1754: do
1755: IFS=$as_save_IFS
1756: test -z "$as_dir" && as_dir=.
1.11 moko 1757: for ac_exec_ext in '' $ac_executable_extensions; do
1758: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1759: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 1760: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1761: break 2
1762: fi
1763: done
1.11 moko 1764: done
1.1 misha 1765:
1.11 moko 1766: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 1767: fi
1768: fi
1769: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1770: if test -n "$ac_ct_STRIP"; then
1.11 moko 1771: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1772: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 misha 1773: else
1.11 moko 1774: echo "$as_me:$LINENO: result: no" >&5
1775: echo "${ECHO_T}no" >&6
1.1 misha 1776: fi
1777:
1.11 moko 1778: STRIP=$ac_ct_STRIP
1.1 misha 1779: else
1780: STRIP="$ac_cv_prog_STRIP"
1781: fi
1782:
1783: fi
1784: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1785:
1786: # We need awk for the "check" target. The system "awk" is bad on
1787: # some platforms.
1788: # Always define AMTAR for backward compatibility.
1789:
1790: AMTAR=${AMTAR-"${am_missing_run}tar"}
1791:
1792: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1793:
1794:
1795:
1796:
1797:
1798:
1799:
1800:
1801:
1.11 moko 1802: # Check whether --with-sqlite-inc or --without-sqlite-inc was given.
1803: if test "${with_sqlite_inc+set}" = set; then
1804: withval="$with_sqlite_inc"
1.1 misha 1805:
1806: if test -r "$withval/sqlite3.h"; then
1807: SQLITE_INC=$withval
1808: fi
1809:
1810:
1.4 misha 1811: if test -z "$SQLITE_INC"; then
1.11 moko 1812: { { echo "$as_me:$LINENO: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&5
1813: echo "$as_me: error: $SQLITE_INC does not seem to be valid SQLite includes directory" >&2;}
1814: { (exit 1); exit 1; }; }
1.4 misha 1815: fi
1.1 misha 1816:
1817: else
1.11 moko 1818: echo "$as_me:$LINENO: checking for SQLITE_INC directory" >&5
1819: echo $ECHO_N "checking for SQLITE_INC directory... $ECHO_C" >&6
1.1 misha 1820: for d in \
1.9 moko 1821: /usr/local/include \
1822: /usr/include \
1.1 misha 1823: /usr/local/include/sqlite \
1824: /usr/include/sqlite ; do
1825:
1826: if test -r "$d/sqlite3.h"; then
1827: SQLITE_INC=$d
1828: fi
1829:
1830: done
1831:
1.4 misha 1832: if test -z "$SQLITE_INC"; then
1.11 moko 1833: { { echo "$as_me:$LINENO: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&5
1834: echo "$as_me: error: use --with-sqlite-inc=DIR to specify SQLite includes directory" >&2;}
1835: { (exit 1); exit 1; }; }
1.4 misha 1836: fi
1.1 misha 1837:
1.11 moko 1838: echo "$as_me:$LINENO: result: $SQLITE_INC" >&5
1839: echo "${ECHO_T}$SQLITE_INC" >&6
1.1 misha 1840:
1.11 moko 1841: fi;
1.1 misha 1842:
1843:
1844:
1.11 moko 1845: # Find a good install program. We prefer a C program (faster),
1846: # so one script is as good as another. But avoid the broken or
1847: # incompatible versions:
1848: # SysV /etc/install, /usr/sbin/install
1849: # SunOS /usr/etc/install
1850: # IRIX /sbin/install
1851: # AIX /bin/install
1852: # AmigaOS /C/install, which installs bootblocks on floppy discs
1853: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1854: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1855: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1856: # OS/2's system install, which has a completely different semantic
1857: # ./install, which can be erroneously created by make from ./install.sh.
1858: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1859: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1860: if test -z "$INSTALL"; then
1861: if test "${ac_cv_path_install+set}" = set; then
1862: echo $ECHO_N "(cached) $ECHO_C" >&6
1863: else
1864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865: for as_dir in $PATH
1866: do
1867: IFS=$as_save_IFS
1868: test -z "$as_dir" && as_dir=.
1869: # Account for people who put trailing slashes in PATH elements.
1870: case $as_dir/ in
1871: ./ | .// | /cC/* | \
1872: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1873: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1874: /usr/ucb/* ) ;;
1875: *)
1876: # OSF1 and SCO ODT 3.0 have their own names for install.
1877: # Don't use installbsd from OSF since it installs stuff as root
1878: # by default.
1879: for ac_prog in ginstall scoinst install; do
1880: for ac_exec_ext in '' $ac_executable_extensions; do
1881: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1882: if test $ac_prog = install &&
1883: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1884: # AIX install. It has an incompatible calling convention.
1885: :
1886: elif test $ac_prog = install &&
1887: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1888: # program-specific install script used by HP pwplus--don't use.
1889: :
1890: else
1891: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1892: break 3
1893: fi
1894: fi
1895: done
1896: done
1897: ;;
1898: esac
1899: done
1900:
1901:
1902: fi
1903: if test "${ac_cv_path_install+set}" = set; then
1904: INSTALL=$ac_cv_path_install
1905: else
1906: # As a last resort, use the slow shell script. We don't cache a
1907: # path for INSTALL within a source directory, because that will
1908: # break other packages using the cache if that directory is
1909: # removed, or if the path is relative.
1910: INSTALL=$ac_install_sh
1911: fi
1.10 moko 1912: fi
1.11 moko 1913: echo "$as_me:$LINENO: result: $INSTALL" >&5
1914: echo "${ECHO_T}$INSTALL" >&6
1.6 misha 1915:
1.11 moko 1916: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1917: # It thinks the first close brace ends the variable substitution.
1918: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.6 misha 1919:
1.11 moko 1920: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.6 misha 1921:
1.11 moko 1922: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 misha 1923:
1.11 moko 1924: ac_ext=cc
1.1 misha 1925: ac_cpp='$CXXCPP $CPPFLAGS'
1926: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 1929: if test -n "$ac_tool_prefix"; then
1930: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1931: do
1932: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 1934: echo "$as_me:$LINENO: checking for $ac_word" >&5
1935: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936: if test "${ac_cv_prog_CXX+set}" = set; then
1937: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1938: else
1939: if test -n "$CXX"; then
1940: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1941: else
1942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943: for as_dir in $PATH
1944: do
1945: IFS=$as_save_IFS
1946: test -z "$as_dir" && as_dir=.
1.11 moko 1947: for ac_exec_ext in '' $ac_executable_extensions; do
1948: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1949: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.11 moko 1950: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1951: break 2
1952: fi
1953: done
1.11 moko 1954: done
1.1 misha 1955:
1956: fi
1957: fi
1958: CXX=$ac_cv_prog_CXX
1959: if test -n "$CXX"; then
1.11 moko 1960: echo "$as_me:$LINENO: result: $CXX" >&5
1961: echo "${ECHO_T}$CXX" >&6
1.1 misha 1962: else
1.11 moko 1963: echo "$as_me:$LINENO: result: no" >&5
1964: echo "${ECHO_T}no" >&6
1.1 misha 1965: fi
1966:
1967: test -n "$CXX" && break
1968: done
1969: fi
1970: if test -z "$CXX"; then
1971: ac_ct_CXX=$CXX
1.11 moko 1972: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.1 misha 1973: do
1974: # Extract the first word of "$ac_prog", so it can be a program name with args.
1975: set dummy $ac_prog; ac_word=$2
1.11 moko 1976: echo "$as_me:$LINENO: checking for $ac_word" >&5
1977: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 1980: else
1981: if test -n "$ac_ct_CXX"; then
1982: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1983: else
1984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985: for as_dir in $PATH
1986: do
1987: IFS=$as_save_IFS
1988: test -z "$as_dir" && as_dir=.
1.11 moko 1989: for ac_exec_ext in '' $ac_executable_extensions; do
1990: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 1991: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.11 moko 1992: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 1993: break 2
1994: fi
1995: done
1.11 moko 1996: done
1.1 misha 1997:
1998: fi
1999: fi
2000: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001: if test -n "$ac_ct_CXX"; then
1.11 moko 2002: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 misha 2004: else
1.11 moko 2005: echo "$as_me:$LINENO: result: no" >&5
2006: echo "${ECHO_T}no" >&6
1.1 misha 2007: fi
2008:
2009: test -n "$ac_ct_CXX" && break
2010: done
1.11 moko 2011: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 misha 2012:
1.11 moko 2013: CXX=$ac_ct_CXX
1.1 misha 2014: fi
2015:
1.11 moko 2016:
1.1 misha 2017: # Provide some information about the compiler.
1.11 moko 2018: echo "$as_me:$LINENO:" \
2019: "checking for C++ compiler version" >&5
2020: ac_compiler=`set X $ac_compile; echo $2`
2021: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022: (eval $ac_compiler --version </dev/null >&5) 2>&5
2023: ac_status=$?
2024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025: (exit $ac_status); }
2026: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027: (eval $ac_compiler -v </dev/null >&5) 2>&5
2028: ac_status=$?
2029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030: (exit $ac_status); }
2031: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2033: ac_status=$?
1.11 moko 2034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035: (exit $ac_status); }
1.1 misha 2036:
1.11 moko 2037: cat >conftest.$ac_ext <<_ACEOF
2038: /* confdefs.h. */
2039: _ACEOF
2040: cat confdefs.h >>conftest.$ac_ext
2041: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2042: /* end confdefs.h. */
2043:
2044: int
2045: main ()
2046: {
2047:
2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: ac_clean_files_save=$ac_clean_files
1.11 moko 2053: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.1 misha 2054: # Try to create an executable without -o first, disregard a.out.
2055: # It will help us diagnose broken compilers, and finding out an intuition
2056: # of exeext.
1.11 moko 2057: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2059: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061: (eval $ac_link_default) 2>&5
2062: ac_status=$?
2063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064: (exit $ac_status); }; then
2065: # Find the output, starting from the most likely. This scheme is
2066: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067: # resort.
2068:
2069: # Be careful to initialize this variable, since it used to be cached.
2070: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071: ac_cv_exeext=
2072: # b.out is created by i960 compilers.
2073: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.1 misha 2074: do
2075: test -f "$ac_file" || continue
2076: case $ac_file in
1.11 moko 2077: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078: ;;
2079: conftest.$ac_ext )
2080: # This is the source file.
1.1 misha 2081: ;;
2082: [ab].out )
2083: # We found the default executable, but exeext='' is most
2084: # certainly right.
2085: break;;
2086: *.* )
1.11 moko 2087: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088: # FIXME: I believe we export ac_cv_exeext for Libtool,
2089: # but it would be cool to find out if it's true. Does anybody
2090: # maintain Libtool? --akim.
2091: export ac_cv_exeext
1.1 misha 2092: break;;
2093: * )
2094: break;;
2095: esac
2096: done
1.11 moko 2097: else
2098: echo "$as_me: failed program was:" >&5
2099: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2100:
1.11 moko 2101: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102: See \`config.log' for more details." >&5
2103: echo "$as_me: error: C++ compiler cannot create executables
2104: See \`config.log' for more details." >&2;}
2105: { (exit 77); exit 77; }; }
1.10 moko 2106: fi
1.1 misha 2107:
2108: ac_exeext=$ac_cv_exeext
1.11 moko 2109: echo "$as_me:$LINENO: result: $ac_file" >&5
2110: echo "${ECHO_T}$ac_file" >&6
2111:
2112: # Check the compiler produces executables we can run. If not, either
2113: # the compiler is broken, or we cross compile.
2114: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117: # If not cross compiling, check that we can run a simple program.
2118: if test "$cross_compiling" != yes; then
2119: if { ac_try='./$ac_file'
2120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121: (eval $ac_try) 2>&5
2122: ac_status=$?
2123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124: (exit $ac_status); }; }; then
2125: cross_compiling=no
2126: else
2127: if test "$cross_compiling" = maybe; then
2128: cross_compiling=yes
2129: else
2130: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2131: If you meant to cross compile, use \`--host'.
2132: See \`config.log' for more details." >&5
2133: echo "$as_me: error: cannot run C++ compiled programs.
2134: If you meant to cross compile, use \`--host'.
2135: See \`config.log' for more details." >&2;}
2136: { (exit 1); exit 1; }; }
2137: fi
2138: fi
2139: fi
2140: echo "$as_me:$LINENO: result: yes" >&5
2141: echo "${ECHO_T}yes" >&6
1.1 misha 2142:
1.11 moko 2143: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.1 misha 2144: ac_clean_files=$ac_clean_files_save
1.11 moko 2145: # Check the compiler produces executables we can run. If not, either
2146: # the compiler is broken, or we cross compile.
2147: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150: echo "${ECHO_T}$cross_compiling" >&6
2151:
2152: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155: (eval $ac_link) 2>&5
1.1 misha 2156: ac_status=$?
1.11 moko 2157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158: (exit $ac_status); }; then
1.1 misha 2159: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161: # work properly (i.e., refer to `conftest.exe'), while it won't with
2162: # `rm'.
2163: for ac_file in conftest.exe conftest conftest.*; do
2164: test -f "$ac_file" || continue
2165: case $ac_file in
1.11 moko 2166: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.1 misha 2167: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.11 moko 2168: export ac_cv_exeext
1.1 misha 2169: break;;
2170: * ) break;;
2171: esac
2172: done
2173: else
1.11 moko 2174: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175: See \`config.log' for more details." >&5
2176: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177: See \`config.log' for more details." >&2;}
2178: { (exit 1); exit 1; }; }
2179: fi
2180:
2181: rm -f conftest$ac_cv_exeext
2182: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 misha 2184:
2185: rm -f conftest.$ac_ext
2186: EXEEXT=$ac_cv_exeext
2187: ac_exeext=$EXEEXT
1.11 moko 2188: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190: if test "${ac_cv_objext+set}" = set; then
2191: echo $ECHO_N "(cached) $ECHO_C" >&6
2192: else
2193: cat >conftest.$ac_ext <<_ACEOF
2194: /* confdefs.h. */
1.10 moko 2195: _ACEOF
1.11 moko 2196: cat confdefs.h >>conftest.$ac_ext
2197: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2198: /* end confdefs.h. */
2199:
2200: int
2201: main ()
2202: {
2203:
2204: ;
2205: return 0;
2206: }
2207: _ACEOF
2208: rm -f conftest.o conftest.obj
1.11 moko 2209: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210: (eval $ac_compile) 2>&5
2211: ac_status=$?
2212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213: (exit $ac_status); }; then
2214: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.1 misha 2215: case $ac_file in
1.11 moko 2216: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.1 misha 2217: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218: break;;
2219: esac
2220: done
2221: else
1.11 moko 2222: echo "$as_me: failed program was:" >&5
1.1 misha 2223: sed 's/^/| /' conftest.$ac_ext >&5
2224:
1.11 moko 2225: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226: See \`config.log' for more details." >&5
2227: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228: See \`config.log' for more details." >&2;}
2229: { (exit 1); exit 1; }; }
1.1 misha 2230: fi
1.11 moko 2231:
1.1 misha 2232: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233: fi
1.11 moko 2234: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235: echo "${ECHO_T}$ac_cv_objext" >&6
1.1 misha 2236: OBJEXT=$ac_cv_objext
2237: ac_objext=$OBJEXT
1.11 moko 2238: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2242: else
1.11 moko 2243: cat >conftest.$ac_ext <<_ACEOF
2244: /* confdefs.h. */
2245: _ACEOF
2246: cat confdefs.h >>conftest.$ac_ext
2247: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2248: /* end confdefs.h. */
2249:
2250: int
2251: main ()
2252: {
2253: #ifndef __GNUC__
2254: choke me
2255: #endif
2256:
2257: ;
2258: return 0;
2259: }
2260: _ACEOF
1.11 moko 2261: rm -f conftest.$ac_objext
2262: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263: (eval $ac_compile) 2>conftest.er1
2264: ac_status=$?
2265: grep -v '^ *+' conftest.er1 >conftest.err
2266: rm -f conftest.er1
2267: cat conftest.err >&5
2268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269: (exit $ac_status); } &&
2270: { ac_try='test -z "$ac_cxx_werror_flag"
2271: || test ! -s conftest.err'
2272: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273: (eval $ac_try) 2>&5
2274: ac_status=$?
2275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276: (exit $ac_status); }; } &&
2277: { ac_try='test -s conftest.$ac_objext'
2278: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279: (eval $ac_try) 2>&5
2280: ac_status=$?
2281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282: (exit $ac_status); }; }; then
1.1 misha 2283: ac_compiler_gnu=yes
2284: else
1.11 moko 2285: echo "$as_me: failed program was:" >&5
2286: sed 's/^/| /' conftest.$ac_ext >&5
2287:
2288: ac_compiler_gnu=no
1.1 misha 2289: fi
1.11 moko 2290: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 2291: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2292:
2293: fi
1.11 moko 2294: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296: GXX=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 2297: ac_test_CXXFLAGS=${CXXFLAGS+set}
2298: ac_save_CXXFLAGS=$CXXFLAGS
1.11 moko 2299: CXXFLAGS="-g"
2300: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302: if test "${ac_cv_prog_cxx_g+set}" = set; then
2303: echo $ECHO_N "(cached) $ECHO_C" >&6
2304: else
2305: cat >conftest.$ac_ext <<_ACEOF
2306: /* confdefs.h. */
2307: _ACEOF
2308: cat confdefs.h >>conftest.$ac_ext
2309: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2310: /* end confdefs.h. */
2311:
2312: int
2313: main ()
2314: {
2315:
2316: ;
2317: return 0;
2318: }
2319: _ACEOF
1.11 moko 2320: rm -f conftest.$ac_objext
2321: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322: (eval $ac_compile) 2>conftest.er1
2323: ac_status=$?
2324: grep -v '^ *+' conftest.er1 >conftest.err
2325: rm -f conftest.er1
2326: cat conftest.err >&5
2327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328: (exit $ac_status); } &&
2329: { ac_try='test -z "$ac_cxx_werror_flag"
2330: || test ! -s conftest.err'
2331: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332: (eval $ac_try) 2>&5
2333: ac_status=$?
2334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335: (exit $ac_status); }; } &&
2336: { ac_try='test -s conftest.$ac_objext'
2337: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338: (eval $ac_try) 2>&5
2339: ac_status=$?
2340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341: (exit $ac_status); }; }; then
1.1 misha 2342: ac_cv_prog_cxx_g=yes
2343: else
1.11 moko 2344: echo "$as_me: failed program was:" >&5
2345: sed 's/^/| /' conftest.$ac_ext >&5
2346:
2347: ac_cv_prog_cxx_g=no
2348: fi
2349: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350: fi
2351: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353: if test "$ac_test_CXXFLAGS" = set; then
2354: CXXFLAGS=$ac_save_CXXFLAGS
2355: elif test $ac_cv_prog_cxx_g = yes; then
2356: if test "$GXX" = yes; then
2357: CXXFLAGS="-g -O2"
2358: else
2359: CXXFLAGS="-g"
2360: fi
2361: else
2362: if test "$GXX" = yes; then
2363: CXXFLAGS="-O2"
2364: else
2365: CXXFLAGS=
2366: fi
2367: fi
2368: for ac_declaration in \
2369: '' \
2370: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371: 'extern "C" void std::exit (int); using std::exit;' \
2372: 'extern "C" void exit (int) throw ();' \
2373: 'extern "C" void exit (int);' \
2374: 'void exit (int);'
2375: do
2376: cat >conftest.$ac_ext <<_ACEOF
2377: /* confdefs.h. */
2378: _ACEOF
2379: cat confdefs.h >>conftest.$ac_ext
2380: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2381: /* end confdefs.h. */
1.11 moko 2382: $ac_declaration
2383: #include <stdlib.h>
1.1 misha 2384: int
2385: main ()
2386: {
1.11 moko 2387: exit (42);
1.1 misha 2388: ;
2389: return 0;
2390: }
2391: _ACEOF
1.11 moko 2392: rm -f conftest.$ac_objext
2393: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394: (eval $ac_compile) 2>conftest.er1
2395: ac_status=$?
2396: grep -v '^ *+' conftest.er1 >conftest.err
2397: rm -f conftest.er1
2398: cat conftest.err >&5
2399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400: (exit $ac_status); } &&
2401: { ac_try='test -z "$ac_cxx_werror_flag"
2402: || test ! -s conftest.err'
2403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404: (eval $ac_try) 2>&5
2405: ac_status=$?
2406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407: (exit $ac_status); }; } &&
2408: { ac_try='test -s conftest.$ac_objext'
2409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410: (eval $ac_try) 2>&5
2411: ac_status=$?
2412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413: (exit $ac_status); }; }; then
2414: :
2415: else
2416: echo "$as_me: failed program was:" >&5
2417: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 2418:
1.11 moko 2419: continue
2420: fi
2421: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422: cat >conftest.$ac_ext <<_ACEOF
2423: /* confdefs.h. */
2424: _ACEOF
2425: cat confdefs.h >>conftest.$ac_ext
2426: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 2427: /* end confdefs.h. */
1.11 moko 2428: $ac_declaration
1.1 misha 2429: int
2430: main ()
2431: {
1.11 moko 2432: exit (42);
1.1 misha 2433: ;
2434: return 0;
2435: }
2436: _ACEOF
1.11 moko 2437: rm -f conftest.$ac_objext
2438: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439: (eval $ac_compile) 2>conftest.er1
2440: ac_status=$?
2441: grep -v '^ *+' conftest.er1 >conftest.err
2442: rm -f conftest.er1
2443: cat conftest.err >&5
2444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445: (exit $ac_status); } &&
2446: { ac_try='test -z "$ac_cxx_werror_flag"
2447: || test ! -s conftest.err'
2448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449: (eval $ac_try) 2>&5
2450: ac_status=$?
2451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452: (exit $ac_status); }; } &&
2453: { ac_try='test -s conftest.$ac_objext'
2454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455: (eval $ac_try) 2>&5
2456: ac_status=$?
2457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458: (exit $ac_status); }; }; then
2459: break
2460: else
2461: echo "$as_me: failed program was:" >&5
2462: sed 's/^/| /' conftest.$ac_ext >&5
2463:
1.10 moko 2464: fi
1.11 moko 2465: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466: done
2467: rm -f conftest*
2468: if test -n "$ac_declaration"; then
2469: echo '#ifdef __cplusplus' >>confdefs.h
2470: echo $ac_declaration >>confdefs.h
2471: echo '#endif' >>confdefs.h
1.1 misha 2472: fi
1.11 moko 2473:
1.1 misha 2474: ac_ext=c
2475: ac_cpp='$CPP $CPPFLAGS'
2476: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479: DEPDIR="${am__leading_dot}deps"
2480:
1.11 moko 2481: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 2482:
2483:
2484: am_make=${MAKE-make}
2485: cat > confinc << 'END'
2486: am__doit:
2487: @echo done
2488: .PHONY: am__doit
2489: END
2490: # If we don't find an include directive, just comment out the code.
1.11 moko 2491: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2492: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.1 misha 2493: am__include="#"
2494: am__quote=
2495: _am_result=none
2496: # First try GNU make style include.
2497: echo "include confinc" > confmf
2498: # We grep out `Entering directory' and `Leaving directory'
2499: # messages which can occur if `w' ends up in MAKEFLAGS.
2500: # In particular we don't look at `^make:' because GNU make might
2501: # be invoked under some other name (usually "gmake"), in which
2502: # case it prints its new name instead of `make'.
2503: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2504: am__include=include
2505: am__quote=
2506: _am_result=GNU
2507: fi
2508: # Now try BSD make style include.
2509: if test "$am__include" = "#"; then
2510: echo '.include "confinc"' > confmf
2511: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2512: am__include=.include
2513: am__quote="\""
2514: _am_result=BSD
2515: fi
2516: fi
2517:
2518:
1.11 moko 2519: echo "$as_me:$LINENO: result: $_am_result" >&5
2520: echo "${ECHO_T}$_am_result" >&6
1.1 misha 2521: rm -f confinc confmf
2522:
1.11 moko 2523: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2524: if test "${enable_dependency_tracking+set}" = set; then
2525: enableval="$enable_dependency_tracking"
1.1 misha 2526:
1.11 moko 2527: fi;
1.1 misha 2528: if test "x$enable_dependency_tracking" != xno; then
2529: am_depcomp="$ac_aux_dir/depcomp"
2530: AMDEPBACKSLASH='\'
2531: fi
2532:
2533:
2534: if test "x$enable_dependency_tracking" != xno; then
2535: AMDEP_TRUE=
2536: AMDEP_FALSE='#'
2537: else
2538: AMDEP_TRUE='#'
2539: AMDEP_FALSE=
2540: fi
2541:
2542:
2543:
2544:
2545: depcc="$CXX" am_compiler_list=
2546:
1.11 moko 2547: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2548: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2549: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2550: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2551: else
2552: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2553: # We make a subdir and do the tests there. Otherwise we can end up
2554: # making bogus files that we don't know about and never remove. For
2555: # instance it was reported that on HP-UX the gcc test will end up
2556: # making a dummy file named `D' -- because `-MD' means `put the output
2557: # in D'.
2558: mkdir conftest.dir
2559: # Copy depcomp to subdir because otherwise we won't find it if we're
2560: # using a relative directory.
2561: cp "$am_depcomp" conftest.dir
2562: cd conftest.dir
2563: # We will build objects and dependencies in a subdirectory because
2564: # it helps to detect inapplicable dependency modes. For instance
2565: # both Tru64's cc and ICC support -MD to output dependencies as a
2566: # side effect of compilation, but ICC will put the dependencies in
2567: # the current directory while Tru64 will put them in the object
2568: # directory.
2569: mkdir sub
2570:
2571: am_cv_CXX_dependencies_compiler_type=none
2572: if test "$am_compiler_list" = ""; then
2573: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2574: fi
2575: for depmode in $am_compiler_list; do
2576: # Setup a source with many dependencies, because some compilers
2577: # like to wrap large dependency lists on column 80 (with \), and
2578: # we should not choose a depcomp mode which is confused by this.
2579: #
2580: # We need to recreate these files for each test, as the compiler may
2581: # overwrite some of them when testing with obscure command lines.
2582: # This happens at least with the AIX C compiler.
2583: : > sub/conftest.c
2584: for i in 1 2 3 4 5 6; do
2585: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2586: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2587: # Solaris 8's {/usr,}/bin/sh.
2588: touch sub/conftst$i.h
2589: done
2590: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2591:
2592: case $depmode in
2593: nosideeffect)
2594: # after this tag, mechanisms are not by side-effect, so they'll
2595: # only be used when explicitly requested
2596: if test "x$enable_dependency_tracking" = xyes; then
2597: continue
2598: else
2599: break
2600: fi
2601: ;;
2602: none) break ;;
2603: esac
2604: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2605: # mode. It turns out that the SunPro C++ compiler does not properly
2606: # handle `-M -o', and we need to detect this.
2607: if depmode=$depmode \
2608: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2609: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2610: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2611: >/dev/null 2>conftest.err &&
2612: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2613: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2614: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2615: # icc doesn't choke on unknown options, it will just issue warnings
2616: # or remarks (even with -Werror). So we grep stderr for any message
2617: # that says an option was ignored or not supported.
2618: # When given -MP, icc 7.0 and 7.1 complain thusly:
2619: # icc: Command line warning: ignoring option '-M'; no argument required
2620: # The diagnosis changed in icc 8.0:
2621: # icc: Command line remark: option '-MP' not supported
2622: if (grep 'ignoring option' conftest.err ||
2623: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2624: am_cv_CXX_dependencies_compiler_type=$depmode
2625: break
2626: fi
2627: fi
2628: done
2629:
2630: cd ..
2631: rm -rf conftest.dir
2632: else
2633: am_cv_CXX_dependencies_compiler_type=none
2634: fi
2635:
2636: fi
1.11 moko 2637: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2638: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.1 misha 2639: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2640:
2641:
2642:
2643: if
2644: test "x$enable_dependency_tracking" != xno \
2645: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2646: am__fastdepCXX_TRUE=
2647: am__fastdepCXX_FALSE='#'
2648: else
2649: am__fastdepCXX_TRUE='#'
2650: am__fastdepCXX_FALSE=
2651: fi
2652:
2653:
2654: ac_ext=c
2655: ac_cpp='$CPP $CPPFLAGS'
2656: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659: if test -n "$ac_tool_prefix"; then
2660: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2661: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 moko 2662: echo "$as_me:$LINENO: checking for $ac_word" >&5
2663: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664: if test "${ac_cv_prog_CC+set}" = set; then
2665: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2666: else
2667: if test -n "$CC"; then
2668: ac_cv_prog_CC="$CC" # Let the user override the test.
2669: else
2670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671: for as_dir in $PATH
2672: do
2673: IFS=$as_save_IFS
2674: test -z "$as_dir" && as_dir=.
1.11 moko 2675: for ac_exec_ext in '' $ac_executable_extensions; do
2676: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2677: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 moko 2678: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2679: break 2
2680: fi
2681: done
1.11 moko 2682: done
1.1 misha 2683:
2684: fi
2685: fi
2686: CC=$ac_cv_prog_CC
2687: if test -n "$CC"; then
1.11 moko 2688: echo "$as_me:$LINENO: result: $CC" >&5
2689: echo "${ECHO_T}$CC" >&6
1.1 misha 2690: else
1.11 moko 2691: echo "$as_me:$LINENO: result: no" >&5
2692: echo "${ECHO_T}no" >&6
1.1 misha 2693: fi
2694:
2695: fi
2696: if test -z "$ac_cv_prog_CC"; then
2697: ac_ct_CC=$CC
2698: # Extract the first word of "gcc", so it can be a program name with args.
2699: set dummy gcc; ac_word=$2
1.11 moko 2700: echo "$as_me:$LINENO: checking for $ac_word" >&5
2701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2704: else
2705: if test -n "$ac_ct_CC"; then
2706: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707: else
2708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709: for as_dir in $PATH
2710: do
2711: IFS=$as_save_IFS
2712: test -z "$as_dir" && as_dir=.
1.11 moko 2713: for ac_exec_ext in '' $ac_executable_extensions; do
2714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2715: ac_cv_prog_ac_ct_CC="gcc"
1.11 moko 2716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2717: break 2
2718: fi
2719: done
1.11 moko 2720: done
1.1 misha 2721:
2722: fi
2723: fi
2724: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725: if test -n "$ac_ct_CC"; then
1.11 moko 2726: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2728: else
1.11 moko 2729: echo "$as_me:$LINENO: result: no" >&5
2730: echo "${ECHO_T}no" >&6
1.1 misha 2731: fi
2732:
1.11 moko 2733: CC=$ac_ct_CC
1.1 misha 2734: else
2735: CC="$ac_cv_prog_CC"
2736: fi
2737:
2738: if test -z "$CC"; then
1.11 moko 2739: if test -n "$ac_tool_prefix"; then
2740: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 2741: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 moko 2742: echo "$as_me:$LINENO: checking for $ac_word" >&5
2743: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744: if test "${ac_cv_prog_CC+set}" = set; then
2745: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2746: else
2747: if test -n "$CC"; then
2748: ac_cv_prog_CC="$CC" # Let the user override the test.
2749: else
2750: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751: for as_dir in $PATH
2752: do
2753: IFS=$as_save_IFS
2754: test -z "$as_dir" && as_dir=.
1.11 moko 2755: for ac_exec_ext in '' $ac_executable_extensions; do
2756: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2757: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 moko 2758: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2759: break 2
2760: fi
2761: done
1.11 moko 2762: done
1.1 misha 2763:
2764: fi
2765: fi
2766: CC=$ac_cv_prog_CC
2767: if test -n "$CC"; then
1.11 moko 2768: echo "$as_me:$LINENO: result: $CC" >&5
2769: echo "${ECHO_T}$CC" >&6
2770: else
2771: echo "$as_me:$LINENO: result: no" >&5
2772: echo "${ECHO_T}no" >&6
2773: fi
2774:
2775: fi
2776: if test -z "$ac_cv_prog_CC"; then
2777: ac_ct_CC=$CC
2778: # Extract the first word of "cc", so it can be a program name with args.
2779: set dummy cc; ac_word=$2
2780: echo "$as_me:$LINENO: checking for $ac_word" >&5
2781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2783: echo $ECHO_N "(cached) $ECHO_C" >&6
2784: else
2785: if test -n "$ac_ct_CC"; then
2786: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787: else
2788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789: for as_dir in $PATH
2790: do
2791: IFS=$as_save_IFS
2792: test -z "$as_dir" && as_dir=.
2793: for ac_exec_ext in '' $ac_executable_extensions; do
2794: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795: ac_cv_prog_ac_ct_CC="cc"
2796: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797: break 2
2798: fi
2799: done
2800: done
2801:
2802: fi
2803: fi
2804: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805: if test -n "$ac_ct_CC"; then
2806: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2807: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2808: else
1.11 moko 2809: echo "$as_me:$LINENO: result: no" >&5
2810: echo "${ECHO_T}no" >&6
1.1 misha 2811: fi
2812:
1.11 moko 2813: CC=$ac_ct_CC
2814: else
2815: CC="$ac_cv_prog_CC"
2816: fi
1.10 moko 2817:
1.1 misha 2818: fi
2819: if test -z "$CC"; then
2820: # Extract the first word of "cc", so it can be a program name with args.
2821: set dummy cc; ac_word=$2
1.11 moko 2822: echo "$as_me:$LINENO: checking for $ac_word" >&5
2823: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824: if test "${ac_cv_prog_CC+set}" = set; then
2825: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2826: else
2827: if test -n "$CC"; then
2828: ac_cv_prog_CC="$CC" # Let the user override the test.
2829: else
2830: ac_prog_rejected=no
2831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832: for as_dir in $PATH
2833: do
2834: IFS=$as_save_IFS
2835: test -z "$as_dir" && as_dir=.
1.11 moko 2836: for ac_exec_ext in '' $ac_executable_extensions; do
2837: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2838: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839: ac_prog_rejected=yes
2840: continue
2841: fi
2842: ac_cv_prog_CC="cc"
1.11 moko 2843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2844: break 2
2845: fi
2846: done
1.11 moko 2847: done
1.1 misha 2848:
2849: if test $ac_prog_rejected = yes; then
2850: # We found a bogon in the path, so make sure we never use it.
2851: set dummy $ac_cv_prog_CC
2852: shift
2853: if test $# != 0; then
2854: # We chose a different compiler from the bogus one.
2855: # However, it has the same basename, so the bogon will be chosen
2856: # first if we set CC to just the basename; use the full file name.
2857: shift
2858: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2859: fi
2860: fi
2861: fi
2862: fi
2863: CC=$ac_cv_prog_CC
2864: if test -n "$CC"; then
1.11 moko 2865: echo "$as_me:$LINENO: result: $CC" >&5
2866: echo "${ECHO_T}$CC" >&6
1.1 misha 2867: else
1.11 moko 2868: echo "$as_me:$LINENO: result: no" >&5
2869: echo "${ECHO_T}no" >&6
1.1 misha 2870: fi
2871:
2872: fi
2873: if test -z "$CC"; then
2874: if test -n "$ac_tool_prefix"; then
1.11 moko 2875: for ac_prog in cl
1.1 misha 2876: do
2877: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 2879: echo "$as_me:$LINENO: checking for $ac_word" >&5
2880: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881: if test "${ac_cv_prog_CC+set}" = set; then
2882: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2883: else
2884: if test -n "$CC"; then
2885: ac_cv_prog_CC="$CC" # Let the user override the test.
2886: else
2887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888: for as_dir in $PATH
2889: do
2890: IFS=$as_save_IFS
2891: test -z "$as_dir" && as_dir=.
1.11 moko 2892: for ac_exec_ext in '' $ac_executable_extensions; do
2893: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2894: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 moko 2895: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2896: break 2
2897: fi
2898: done
1.11 moko 2899: done
1.1 misha 2900:
2901: fi
2902: fi
2903: CC=$ac_cv_prog_CC
2904: if test -n "$CC"; then
1.11 moko 2905: echo "$as_me:$LINENO: result: $CC" >&5
2906: echo "${ECHO_T}$CC" >&6
1.1 misha 2907: else
1.11 moko 2908: echo "$as_me:$LINENO: result: no" >&5
2909: echo "${ECHO_T}no" >&6
1.1 misha 2910: fi
2911:
2912: test -n "$CC" && break
2913: done
2914: fi
2915: if test -z "$CC"; then
2916: ac_ct_CC=$CC
1.11 moko 2917: for ac_prog in cl
1.1 misha 2918: do
2919: # Extract the first word of "$ac_prog", so it can be a program name with args.
2920: set dummy $ac_prog; ac_word=$2
1.11 moko 2921: echo "$as_me:$LINENO: checking for $ac_word" >&5
2922: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2923: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2924: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2925: else
2926: if test -n "$ac_ct_CC"; then
2927: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928: else
2929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930: for as_dir in $PATH
2931: do
2932: IFS=$as_save_IFS
2933: test -z "$as_dir" && as_dir=.
1.11 moko 2934: for ac_exec_ext in '' $ac_executable_extensions; do
2935: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misha 2936: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 moko 2937: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2938: break 2
2939: fi
2940: done
1.11 moko 2941: done
1.1 misha 2942:
2943: fi
2944: fi
2945: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946: if test -n "$ac_ct_CC"; then
1.11 moko 2947: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2948: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 misha 2949: else
1.11 moko 2950: echo "$as_me:$LINENO: result: no" >&5
2951: echo "${ECHO_T}no" >&6
1.1 misha 2952: fi
2953:
2954: test -n "$ac_ct_CC" && break
2955: done
2956:
1.11 moko 2957: CC=$ac_ct_CC
1.1 misha 2958: fi
2959:
2960: fi
2961:
2962:
1.11 moko 2963: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964: See \`config.log' for more details." >&5
2965: echo "$as_me: error: no acceptable C compiler found in \$PATH
2966: See \`config.log' for more details." >&2;}
2967: { (exit 1); exit 1; }; }
1.1 misha 2968:
2969: # Provide some information about the compiler.
1.11 moko 2970: echo "$as_me:$LINENO:" \
2971: "checking for C compiler version" >&5
2972: ac_compiler=`set X $ac_compile; echo $2`
2973: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2974: (eval $ac_compiler --version </dev/null >&5) 2>&5
2975: ac_status=$?
2976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977: (exit $ac_status); }
2978: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2979: (eval $ac_compiler -v </dev/null >&5) 2>&5
2980: ac_status=$?
2981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982: (exit $ac_status); }
2983: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2984: (eval $ac_compiler -V </dev/null >&5) 2>&5
1.1 misha 2985: ac_status=$?
1.11 moko 2986: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987: (exit $ac_status); }
2988:
2989: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2991: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 2993: else
1.11 moko 2994: cat >conftest.$ac_ext <<_ACEOF
2995: /* confdefs.h. */
2996: _ACEOF
2997: cat confdefs.h >>conftest.$ac_ext
2998: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 2999: /* end confdefs.h. */
3000:
3001: int
3002: main ()
3003: {
3004: #ifndef __GNUC__
3005: choke me
3006: #endif
3007:
3008: ;
3009: return 0;
3010: }
3011: _ACEOF
1.11 moko 3012: rm -f conftest.$ac_objext
3013: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014: (eval $ac_compile) 2>conftest.er1
3015: ac_status=$?
3016: grep -v '^ *+' conftest.er1 >conftest.err
3017: rm -f conftest.er1
3018: cat conftest.err >&5
3019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020: (exit $ac_status); } &&
3021: { ac_try='test -z "$ac_c_werror_flag"
3022: || test ! -s conftest.err'
3023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024: (eval $ac_try) 2>&5
3025: ac_status=$?
3026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027: (exit $ac_status); }; } &&
3028: { ac_try='test -s conftest.$ac_objext'
3029: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030: (eval $ac_try) 2>&5
3031: ac_status=$?
3032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033: (exit $ac_status); }; }; then
1.1 misha 3034: ac_compiler_gnu=yes
3035: else
1.11 moko 3036: echo "$as_me: failed program was:" >&5
3037: sed 's/^/| /' conftest.$ac_ext >&5
3038:
3039: ac_compiler_gnu=no
1.1 misha 3040: fi
1.11 moko 3041: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3042: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043:
3044: fi
1.11 moko 3045: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3047: GCC=`test $ac_compiler_gnu = yes && echo yes`
1.1 misha 3048: ac_test_CFLAGS=${CFLAGS+set}
3049: ac_save_CFLAGS=$CFLAGS
1.11 moko 3050: CFLAGS="-g"
3051: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3053: if test "${ac_cv_prog_cc_g+set}" = set; then
3054: echo $ECHO_N "(cached) $ECHO_C" >&6
3055: else
3056: cat >conftest.$ac_ext <<_ACEOF
3057: /* confdefs.h. */
3058: _ACEOF
3059: cat confdefs.h >>conftest.$ac_ext
3060: cat >>conftest.$ac_ext <<_ACEOF
1.10 moko 3061: /* end confdefs.h. */
3062:
3063: int
3064: main ()
3065: {
3066:
3067: ;
3068: return 0;
3069: }
3070: _ACEOF
1.11 moko 3071: rm -f conftest.$ac_objext
3072: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3073: (eval $ac_compile) 2>conftest.er1
3074: ac_status=$?
3075: grep -v '^ *+' conftest.er1 >conftest.err
3076: rm -f conftest.er1
3077: cat conftest.err >&5
3078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079: (exit $ac_status); } &&
3080: { ac_try='test -z "$ac_c_werror_flag"
3081: || test ! -s conftest.err'
3082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083: (eval $ac_try) 2>&5
3084: ac_status=$?
3085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086: (exit $ac_status); }; } &&
3087: { ac_try='test -s conftest.$ac_objext'
3088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089: (eval $ac_try) 2>&5
3090: ac_status=$?
3091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092: (exit $ac_status); }; }; then
1.10 moko 3093: ac_cv_prog_cc_g=yes
1.1 misha 3094: else
1.11 moko 3095: echo "$as_me: failed program was:" >&5
3096: sed 's/^/| /' conftest.$ac_ext >&5
1.1 misha 3097:
1.11 moko 3098: ac_cv_prog_cc_g=no
1.10 moko 3099: fi
1.11 moko 3100: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3101: fi
1.11 moko 3102: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3103: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 misha 3104: if test "$ac_test_CFLAGS" = set; then
3105: CFLAGS=$ac_save_CFLAGS
3106: elif test $ac_cv_prog_cc_g = yes; then
3107: if test "$GCC" = yes; then
3108: CFLAGS="-g -O2"
3109: else
3110: CFLAGS="-g"
3111: fi
3112: else
3113: if test "$GCC" = yes; then
3114: CFLAGS="-O2"
3115: else
3116: CFLAGS=
3117: fi
3118: fi
1.11 moko 3119: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3120: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3121: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3123: else
1.11 moko 3124: ac_cv_prog_cc_stdc=no
1.1 misha 3125: ac_save_CC=$CC
1.11 moko 3126: cat >conftest.$ac_ext <<_ACEOF
3127: /* confdefs.h. */
3128: _ACEOF
3129: cat confdefs.h >>conftest.$ac_ext
3130: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 3131: /* end confdefs.h. */
3132: #include <stdarg.h>
3133: #include <stdio.h>
3134: #include <sys/types.h>
3135: #include <sys/stat.h>
3136: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3137: struct buf { int x; };
3138: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3139: static char *e (p, i)
3140: char **p;
3141: int i;
3142: {
3143: return p[i];
3144: }
3145: static char *f (char * (*g) (char **, int), char **p, ...)
3146: {
3147: char *s;
3148: va_list v;
3149: va_start (v,p);
3150: s = g (p, va_arg (v,int));
3151: va_end (v);
3152: return s;
3153: }
3154:
3155: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3156: function prototypes and stuff, but not '\xHH' hex character constants.
3157: These don't provoke an error unfortunately, instead are silently treated
1.11 moko 3158: as 'x'. The following induces an error, until -std1 is added to get
1.1 misha 3159: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3160: array size at least. It's necessary to write '\x00'==0 to get something
1.11 moko 3161: that's true only with -std1. */
1.1 misha 3162: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3163:
3164: int test (int i, double x);
3165: struct s1 {int (*f) (int a);};
3166: struct s2 {int (*f) (double a);};
3167: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3168: int argc;
3169: char **argv;
3170: int
3171: main ()
3172: {
3173: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3174: ;
3175: return 0;
3176: }
3177: _ACEOF
1.11 moko 3178: # Don't try gcc -ansi; that turns off useful extensions and
3179: # breaks some systems' header files.
3180: # AIX -qlanglvl=ansi
3181: # Ultrix and OSF/1 -std1
3182: # HP-UX 10.20 and later -Ae
3183: # HP-UX older versions -Aa -D_HPUX_SOURCE
3184: # SVR4 -Xc -D__EXTENSIONS__
3185: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 3186: do
3187: CC="$ac_save_CC $ac_arg"
1.11 moko 3188: rm -f conftest.$ac_objext
3189: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190: (eval $ac_compile) 2>conftest.er1
3191: ac_status=$?
3192: grep -v '^ *+' conftest.er1 >conftest.err
3193: rm -f conftest.er1
3194: cat conftest.err >&5
3195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196: (exit $ac_status); } &&
3197: { ac_try='test -z "$ac_c_werror_flag"
3198: || test ! -s conftest.err'
3199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200: (eval $ac_try) 2>&5
3201: ac_status=$?
3202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203: (exit $ac_status); }; } &&
3204: { ac_try='test -s conftest.$ac_objext'
3205: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206: (eval $ac_try) 2>&5
3207: ac_status=$?
3208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209: (exit $ac_status); }; }; then
3210: ac_cv_prog_cc_stdc=$ac_arg
3211: break
3212: else
3213: echo "$as_me: failed program was:" >&5
3214: sed 's/^/| /' conftest.$ac_ext >&5
3215:
1.1 misha 3216: fi
1.11 moko 3217: rm -f conftest.err conftest.$ac_objext
1.1 misha 3218: done
1.11 moko 3219: rm -f conftest.$ac_ext conftest.$ac_objext
1.1 misha 3220: CC=$ac_save_CC
3221:
3222: fi
1.11 moko 3223:
3224: case "x$ac_cv_prog_cc_stdc" in
3225: x|xno)
3226: echo "$as_me:$LINENO: result: none needed" >&5
3227: echo "${ECHO_T}none needed" >&6 ;;
1.1 misha 3228: *)
1.11 moko 3229: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3230: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3231: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 misha 3232: esac
3233:
1.11 moko 3234: # Some people use a C++ compiler to compile C. Since we use `exit',
3235: # in C++ we need to declare it. In case someone uses the same compiler
3236: # for both compiling C and C++ we need to have the C++ compiler decide
3237: # the declaration of exit, since it's the most demanding environment.
3238: cat >conftest.$ac_ext <<_ACEOF
3239: #ifndef __cplusplus
3240: choke me
3241: #endif
3242: _ACEOF
3243: rm -f conftest.$ac_objext
3244: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245: (eval $ac_compile) 2>conftest.er1
3246: ac_status=$?
3247: grep -v '^ *+' conftest.er1 >conftest.err
3248: rm -f conftest.er1
3249: cat conftest.err >&5
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); } &&
3252: { ac_try='test -z "$ac_c_werror_flag"
3253: || test ! -s conftest.err'
3254: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255: (eval $ac_try) 2>&5
3256: ac_status=$?
3257: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258: (exit $ac_status); }; } &&
3259: { ac_try='test -s conftest.$ac_objext'
3260: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261: (eval $ac_try) 2>&5
3262: ac_status=$?
3263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264: (exit $ac_status); }; }; then
3265: for ac_declaration in \
3266: '' \
3267: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3268: 'extern "C" void std::exit (int); using std::exit;' \
3269: 'extern "C" void exit (int) throw ();' \
3270: 'extern "C" void exit (int);' \
3271: 'void exit (int);'
3272: do
3273: cat >conftest.$ac_ext <<_ACEOF
3274: /* confdefs.h. */
3275: _ACEOF
3276: cat confdefs.h >>conftest.$ac_ext
3277: cat >>conftest.$ac_ext <<_ACEOF
3278: /* end confdefs.h. */
3279: $ac_declaration
3280: #include <stdlib.h>
3281: int
3282: main ()
3283: {
3284: exit (42);
3285: ;
3286: return 0;
3287: }
3288: _ACEOF
3289: rm -f conftest.$ac_objext
3290: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291: (eval $ac_compile) 2>conftest.er1
3292: ac_status=$?
3293: grep -v '^ *+' conftest.er1 >conftest.err
3294: rm -f conftest.er1
3295: cat conftest.err >&5
3296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297: (exit $ac_status); } &&
3298: { ac_try='test -z "$ac_c_werror_flag"
3299: || test ! -s conftest.err'
3300: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301: (eval $ac_try) 2>&5
3302: ac_status=$?
3303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304: (exit $ac_status); }; } &&
3305: { ac_try='test -s conftest.$ac_objext'
3306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307: (eval $ac_try) 2>&5
3308: ac_status=$?
3309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310: (exit $ac_status); }; }; then
3311: :
3312: else
3313: echo "$as_me: failed program was:" >&5
3314: sed 's/^/| /' conftest.$ac_ext >&5
3315:
3316: continue
3317: fi
3318: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319: cat >conftest.$ac_ext <<_ACEOF
3320: /* confdefs.h. */
3321: _ACEOF
3322: cat confdefs.h >>conftest.$ac_ext
3323: cat >>conftest.$ac_ext <<_ACEOF
3324: /* end confdefs.h. */
3325: $ac_declaration
3326: int
3327: main ()
3328: {
3329: exit (42);
3330: ;
3331: return 0;
3332: }
3333: _ACEOF
3334: rm -f conftest.$ac_objext
3335: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336: (eval $ac_compile) 2>conftest.er1
3337: ac_status=$?
3338: grep -v '^ *+' conftest.er1 >conftest.err
3339: rm -f conftest.er1
3340: cat conftest.err >&5
3341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342: (exit $ac_status); } &&
3343: { ac_try='test -z "$ac_c_werror_flag"
3344: || test ! -s conftest.err'
3345: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346: (eval $ac_try) 2>&5
3347: ac_status=$?
3348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349: (exit $ac_status); }; } &&
3350: { ac_try='test -s conftest.$ac_objext'
3351: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352: (eval $ac_try) 2>&5
3353: ac_status=$?
3354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355: (exit $ac_status); }; }; then
3356: break
3357: else
3358: echo "$as_me: failed program was:" >&5
3359: sed 's/^/| /' conftest.$ac_ext >&5
3360:
3361: fi
3362: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363: done
3364: rm -f conftest*
3365: if test -n "$ac_declaration"; then
3366: echo '#ifdef __cplusplus' >>confdefs.h
3367: echo $ac_declaration >>confdefs.h
3368: echo '#endif' >>confdefs.h
1.1 misha 3369: fi
3370:
1.11 moko 3371: else
3372: echo "$as_me: failed program was:" >&5
3373: sed 's/^/| /' conftest.$ac_ext >&5
3374:
3375: fi
3376: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3377: ac_ext=c
3378: ac_cpp='$CPP $CPPFLAGS'
3379: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382:
3383: depcc="$CC" am_compiler_list=
3384:
1.11 moko 3385: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3386: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3387: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3388: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3389: else
3390: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3391: # We make a subdir and do the tests there. Otherwise we can end up
3392: # making bogus files that we don't know about and never remove. For
3393: # instance it was reported that on HP-UX the gcc test will end up
3394: # making a dummy file named `D' -- because `-MD' means `put the output
3395: # in D'.
3396: mkdir conftest.dir
3397: # Copy depcomp to subdir because otherwise we won't find it if we're
3398: # using a relative directory.
3399: cp "$am_depcomp" conftest.dir
3400: cd conftest.dir
3401: # We will build objects and dependencies in a subdirectory because
3402: # it helps to detect inapplicable dependency modes. For instance
3403: # both Tru64's cc and ICC support -MD to output dependencies as a
3404: # side effect of compilation, but ICC will put the dependencies in
3405: # the current directory while Tru64 will put them in the object
3406: # directory.
3407: mkdir sub
3408:
3409: am_cv_CC_dependencies_compiler_type=none
3410: if test "$am_compiler_list" = ""; then
3411: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3412: fi
3413: for depmode in $am_compiler_list; do
3414: # Setup a source with many dependencies, because some compilers
3415: # like to wrap large dependency lists on column 80 (with \), and
3416: # we should not choose a depcomp mode which is confused by this.
3417: #
3418: # We need to recreate these files for each test, as the compiler may
3419: # overwrite some of them when testing with obscure command lines.
3420: # This happens at least with the AIX C compiler.
3421: : > sub/conftest.c
3422: for i in 1 2 3 4 5 6; do
3423: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3424: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3425: # Solaris 8's {/usr,}/bin/sh.
3426: touch sub/conftst$i.h
3427: done
3428: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3429:
3430: case $depmode in
3431: nosideeffect)
3432: # after this tag, mechanisms are not by side-effect, so they'll
3433: # only be used when explicitly requested
3434: if test "x$enable_dependency_tracking" = xyes; then
3435: continue
3436: else
3437: break
3438: fi
3439: ;;
3440: none) break ;;
3441: esac
3442: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3443: # mode. It turns out that the SunPro C++ compiler does not properly
3444: # handle `-M -o', and we need to detect this.
3445: if depmode=$depmode \
3446: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3447: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3448: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3449: >/dev/null 2>conftest.err &&
3450: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3451: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3452: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3453: # icc doesn't choke on unknown options, it will just issue warnings
3454: # or remarks (even with -Werror). So we grep stderr for any message
3455: # that says an option was ignored or not supported.
3456: # When given -MP, icc 7.0 and 7.1 complain thusly:
3457: # icc: Command line warning: ignoring option '-M'; no argument required
3458: # The diagnosis changed in icc 8.0:
3459: # icc: Command line remark: option '-MP' not supported
3460: if (grep 'ignoring option' conftest.err ||
3461: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3462: am_cv_CC_dependencies_compiler_type=$depmode
3463: break
3464: fi
3465: fi
3466: done
3467:
3468: cd ..
3469: rm -rf conftest.dir
3470: else
3471: am_cv_CC_dependencies_compiler_type=none
3472: fi
3473:
3474: fi
1.11 moko 3475: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3476: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.1 misha 3477: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3478:
3479:
3480:
3481: if
3482: test "x$enable_dependency_tracking" != xno \
3483: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3484: am__fastdepCC_TRUE=
3485: am__fastdepCC_FALSE='#'
3486: else
3487: am__fastdepCC_TRUE='#'
3488: am__fastdepCC_FALSE=
3489: fi
3490:
3491:
3492:
1.8 moko 3493:
1.13 moko 3494:
3495:
3496:
3497:
3498:
3499:
1.8 moko 3500: case `pwd` in
3501: *\ * | *\ *)
1.11 moko 3502: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3503: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 3504: esac
3505:
3506:
3507:
3508: macro_version='2.4.2'
3509: macro_revision='1.3337'
3510:
3511:
3512:
3513:
3514:
3515:
3516:
1.1 misha 3517:
3518:
3519:
3520:
3521:
3522:
1.8 moko 3523: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 3524:
3525: # Make sure we can run config.sub.
1.11 moko 3526: $ac_config_sub sun4 >/dev/null 2>&1 ||
3527: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3528: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3529: { (exit 1); exit 1; }; }
3530:
3531: echo "$as_me:$LINENO: checking build system type" >&5
3532: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3533: if test "${ac_cv_build+set}" = set; then
3534: echo $ECHO_N "(cached) $ECHO_C" >&6
3535: else
3536: ac_cv_build_alias=$build_alias
3537: test -z "$ac_cv_build_alias" &&
3538: ac_cv_build_alias=`$ac_config_guess`
3539: test -z "$ac_cv_build_alias" &&
3540: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3541: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3542: { (exit 1); exit 1; }; }
3543: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3544: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3545: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3546: { (exit 1); exit 1; }; }
1.1 misha 3547:
1.11 moko 3548: fi
3549: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3550: echo "${ECHO_T}$ac_cv_build" >&6
1.10 moko 3551: build=$ac_cv_build
1.11 moko 3552: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3553: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3554: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3555:
3556:
3557: echo "$as_me:$LINENO: checking host system type" >&5
3558: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3559: if test "${ac_cv_host+set}" = set; then
3560: echo $ECHO_N "(cached) $ECHO_C" >&6
3561: else
3562: ac_cv_host_alias=$host_alias
3563: test -z "$ac_cv_host_alias" &&
3564: ac_cv_host_alias=$ac_cv_build_alias
3565: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3566: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3567: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3568: { (exit 1); exit 1; }; }
1.1 misha 3569:
3570: fi
1.11 moko 3571: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3572: echo "${ECHO_T}$ac_cv_host" >&6
1.1 misha 3573: host=$ac_cv_host
1.11 moko 3574: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3575: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3576: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 misha 3577:
3578:
1.8 moko 3579: # Backslashify metacharacters that are still active within
3580: # double-quoted strings.
3581: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3582:
3583: # Same as above, but do not quote variable references.
3584: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3585:
3586: # Sed substitution to delay expansion of an escaped shell variable in a
3587: # double_quote_subst'ed string.
3588: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3589:
3590: # Sed substitution to delay expansion of an escaped single quote.
3591: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 3592:
1.8 moko 3593: # Sed substitution to avoid accidental globbing in evaled expressions
3594: no_glob_subst='s/\*/\\\*/g'
1.1 misha 3595:
1.8 moko 3596: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3597: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3598: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3599:
1.11 moko 3600: echo "$as_me:$LINENO: checking how to print strings" >&5
3601: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
1.8 moko 3602: # Test print first, because it will be a builtin if present.
3603: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3604: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3605: ECHO='print -r --'
3606: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3607: ECHO='printf %s\n'
1.1 misha 3608: else
1.8 moko 3609: # Use this function as a fallback that always works.
3610: func_fallback_echo ()
3611: {
3612: eval 'cat <<_LTECHO_EOF
3613: $1
3614: _LTECHO_EOF'
3615: }
3616: ECHO='func_fallback_echo'
1.1 misha 3617: fi
1.8 moko 3618:
3619: # func_echo_all arg...
3620: # Invoke $ECHO with all args, space-separated.
3621: func_echo_all ()
3622: {
3623: $ECHO ""
3624: }
3625:
3626: case "$ECHO" in
1.11 moko 3627: printf*) echo "$as_me:$LINENO: result: printf" >&5
3628: echo "${ECHO_T}printf" >&6 ;;
3629: print*) echo "$as_me:$LINENO: result: print -r" >&5
3630: echo "${ECHO_T}print -r" >&6 ;;
3631: *) echo "$as_me:$LINENO: result: cat" >&5
3632: echo "${ECHO_T}cat" >&6 ;;
1.8 moko 3633: esac
3634:
3635:
3636:
3637:
3638:
3639:
3640:
3641:
3642:
3643:
3644:
3645:
3646:
3647:
1.11 moko 3648: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3649: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3650: if test "${lt_cv_path_SED+set}" = set; then
3651: echo $ECHO_N "(cached) $ECHO_C" >&6
3652: else
3653: # Loop through the user's path and test for sed and gsed.
3654: # Then use that list of sed's as ones to test for truncation.
3655: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 3656: for as_dir in $PATH
3657: do
3658: IFS=$as_save_IFS
3659: test -z "$as_dir" && as_dir=.
1.11 moko 3660: for lt_ac_prog in sed gsed; do
1.8 moko 3661: for ac_exec_ext in '' $ac_executable_extensions; do
1.11 moko 3662: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3663: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3664: fi
1.8 moko 3665: done
3666: done
1.11 moko 3667: done
1.8 moko 3668: IFS=$as_save_IFS
1.11 moko 3669: lt_ac_max=0
3670: lt_ac_count=0
3671: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3672: # along with /bin/sed that truncates output.
3673: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3674: test ! -f $lt_ac_sed && continue
3675: cat /dev/null > conftest.in
3676: lt_ac_count=0
3677: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3678: # Check for GNU sed and select it if it is found.
3679: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3680: lt_cv_path_SED=$lt_ac_sed
3681: break
1.8 moko 3682: fi
1.11 moko 3683: while true; do
3684: cat conftest.in conftest.in >conftest.tmp
3685: mv conftest.tmp conftest.in
3686: cp conftest.in conftest.nl
3687: echo >>conftest.nl
3688: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3689: cmp -s conftest.out conftest.nl || break
3690: # 10000 chars as input seems more than enough
3691: test $lt_ac_count -gt 10 && break
3692: lt_ac_count=`expr $lt_ac_count + 1`
3693: if test $lt_ac_count -gt $lt_ac_max; then
3694: lt_ac_max=$lt_ac_count
3695: lt_cv_path_SED=$lt_ac_sed
3696: fi
3697: done
3698: done
3699:
1.10 moko 3700: fi
1.8 moko 3701:
1.11 moko 3702: SED=$lt_cv_path_SED
3703:
3704: echo "$as_me:$LINENO: result: $SED" >&5
3705: echo "${ECHO_T}$SED" >&6
1.8 moko 3706:
3707: test -z "$SED" && SED=sed
3708: Xsed="$SED -e 1s/^X//"
3709:
3710:
3711:
3712:
3713:
3714:
3715:
3716:
3717:
3718:
3719:
1.11 moko 3720: echo "$as_me:$LINENO: checking for egrep" >&5
3721: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3722: if test "${ac_cv_prog_egrep+set}" = set; then
3723: echo $ECHO_N "(cached) $ECHO_C" >&6
3724: else
3725: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3726: then ac_cv_prog_egrep='grep -E'
3727: else ac_cv_prog_egrep='egrep'
1.8 moko 3728: fi
3729: fi
1.11 moko 3730: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3731: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3732: EGREP=$ac_cv_prog_egrep
1.8 moko 3733:
3734:
1.11 moko 3735: echo "$as_me:$LINENO: checking for fgrep" >&5
3736: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3737: if test "${ac_cv_prog_fgrep+set}" = set; then
3738: echo $ECHO_N "(cached) $ECHO_C" >&6
3739: else
3740: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3741: then ac_cv_prog_fgrep='grep -F'
3742: else ac_cv_prog_fgrep='fgrep'
1.8 moko 3743: fi
3744: fi
1.11 moko 3745: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3746: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3747: FGREP=$ac_cv_prog_fgrep
1.8 moko 3748:
3749:
3750: test -z "$GREP" && GREP=grep
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763:
3764:
3765:
3766:
3767:
3768:
3769:
1.11 moko 3770: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3771: if test "${with_gnu_ld+set}" = set; then
3772: withval="$with_gnu_ld"
3773: test "$withval" = no || with_gnu_ld=yes
1.8 moko 3774: else
3775: with_gnu_ld=no
1.11 moko 3776: fi;
1.8 moko 3777: ac_prog=ld
3778: if test "$GCC" = yes; then
3779: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 3780: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3781: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 3782: case $host in
3783: *-*-mingw*)
3784: # gcc leaves a trailing carriage return which upsets mingw
3785: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3786: *)
3787: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3788: esac
3789: case $ac_prog in
3790: # Accept absolute paths.
3791: [\\/]* | ?:[\\/]*)
3792: re_direlt='/[^/][^/]*/\.\./'
3793: # Canonicalize the pathname of ld
3794: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3795: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3796: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3797: done
3798: test -z "$LD" && LD="$ac_prog"
3799: ;;
3800: "")
3801: # If it fails, then pretend we aren't using GCC.
3802: ac_prog=ld
3803: ;;
3804: *)
3805: # If it is relative, then search for the first ld in PATH.
3806: with_gnu_ld=unknown
3807: ;;
3808: esac
3809: elif test "$with_gnu_ld" = yes; then
1.11 moko 3810: echo "$as_me:$LINENO: checking for GNU ld" >&5
3811: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 3812: else
1.11 moko 3813: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3814: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 3815: fi
1.11 moko 3816: if test "${lt_cv_path_LD+set}" = set; then
3817: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3818: else
3819: if test -z "$LD"; then
1.8 moko 3820: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 3821: for ac_dir in $PATH; do
1.8 moko 3822: IFS="$lt_save_ifs"
1.1 misha 3823: test -z "$ac_dir" && ac_dir=.
3824: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3825: lt_cv_path_LD="$ac_dir/$ac_prog"
3826: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 3827: # but apparently some variants of GNU ld only accept -v.
1.1 misha 3828: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 3829: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3830: *GNU* | *'with BFD'*)
1.1 misha 3831: test "$with_gnu_ld" != no && break
1.8 moko 3832: ;;
3833: *)
1.1 misha 3834: test "$with_gnu_ld" != yes && break
1.8 moko 3835: ;;
3836: esac
1.1 misha 3837: fi
3838: done
1.8 moko 3839: IFS="$lt_save_ifs"
1.1 misha 3840: else
3841: lt_cv_path_LD="$LD" # Let the user override the test with a path.
3842: fi
3843: fi
3844:
3845: LD="$lt_cv_path_LD"
3846: if test -n "$LD"; then
1.11 moko 3847: echo "$as_me:$LINENO: result: $LD" >&5
3848: echo "${ECHO_T}$LD" >&6
1.1 misha 3849: else
1.11 moko 3850: echo "$as_me:$LINENO: result: no" >&5
3851: echo "${ECHO_T}no" >&6
1.1 misha 3852: fi
1.11 moko 3853: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3854: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3855: { (exit 1); exit 1; }; }
3856: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3857: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3858: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3859: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3860: else
1.8 moko 3861: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3862: case `$LD -v 2>&1 </dev/null` in
3863: *GNU* | *'with BFD'*)
1.1 misha 3864: lt_cv_prog_gnu_ld=yes
1.8 moko 3865: ;;
3866: *)
1.1 misha 3867: lt_cv_prog_gnu_ld=no
1.8 moko 3868: ;;
3869: esac
1.1 misha 3870: fi
1.11 moko 3871: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3872: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.1 misha 3873: with_gnu_ld=$lt_cv_prog_gnu_ld
3874:
3875:
3876:
1.8 moko 3877:
3878:
3879:
3880:
3881:
3882:
1.11 moko 3883: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3884: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3885: if test "${lt_cv_path_NM+set}" = set; then
3886: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3887: else
3888: if test -n "$NM"; then
3889: # Let the user override the test.
3890: lt_cv_path_NM="$NM"
3891: else
1.8 moko 3892: lt_nm_to_check="${ac_tool_prefix}nm"
3893: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3894: lt_nm_to_check="$lt_nm_to_check nm"
3895: fi
3896: for lt_tmp_nm in $lt_nm_to_check; do
3897: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3898: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3899: IFS="$lt_save_ifs"
3900: test -z "$ac_dir" && ac_dir=.
3901: tmp_nm="$ac_dir/$lt_tmp_nm"
3902: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3903: # Check to see if the nm accepts a BSD-compat flag.
3904: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3905: # nm: unknown option "B" ignored
3906: # Tru64's nm complains that /dev/null is an invalid object file
3907: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3908: */dev/null* | *'Invalid file or object type'*)
3909: lt_cv_path_NM="$tmp_nm -B"
3910: break
3911: ;;
3912: *)
3913: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3914: */dev/null*)
3915: lt_cv_path_NM="$tmp_nm -p"
3916: break
3917: ;;
3918: *)
3919: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3920: continue # so that we can try to find one that supports BSD flags
3921: ;;
3922: esac
3923: ;;
3924: esac
1.1 misha 3925: fi
1.8 moko 3926: done
3927: IFS="$lt_save_ifs"
1.1 misha 3928: done
1.8 moko 3929: : ${lt_cv_path_NM=no}
1.1 misha 3930: fi
3931: fi
1.11 moko 3932: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3933: echo "${ECHO_T}$lt_cv_path_NM" >&6
1.8 moko 3934: if test "$lt_cv_path_NM" != "no"; then
3935: NM="$lt_cv_path_NM"
3936: else
3937: # Didn't find any BSD compatible name lister, look for dumpbin.
3938: if test -n "$DUMPBIN"; then :
3939: # Let the user override the test.
3940: else
3941: if test -n "$ac_tool_prefix"; then
3942: for ac_prog in dumpbin "link -dump"
3943: do
3944: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3945: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 3946: echo "$as_me:$LINENO: checking for $ac_word" >&5
3947: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 3950: else
1.8 moko 3951: if test -n "$DUMPBIN"; then
3952: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3953: else
1.1 misha 3954: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955: for as_dir in $PATH
3956: do
3957: IFS=$as_save_IFS
3958: test -z "$as_dir" && as_dir=.
1.11 moko 3959: for ac_exec_ext in '' $ac_executable_extensions; do
3960: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 3961: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.11 moko 3962: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 3963: break 2
3964: fi
3965: done
1.11 moko 3966: done
3967:
1.8 moko 3968: fi
3969: fi
3970: DUMPBIN=$ac_cv_prog_DUMPBIN
3971: if test -n "$DUMPBIN"; then
1.11 moko 3972: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3973: echo "${ECHO_T}$DUMPBIN" >&6
1.8 moko 3974: else
1.11 moko 3975: echo "$as_me:$LINENO: result: no" >&5
3976: echo "${ECHO_T}no" >&6
1.8 moko 3977: fi
1.1 misha 3978:
1.8 moko 3979: test -n "$DUMPBIN" && break
1.1 misha 3980: done
1.8 moko 3981: fi
3982: if test -z "$DUMPBIN"; then
3983: ac_ct_DUMPBIN=$DUMPBIN
3984: for ac_prog in dumpbin "link -dump"
3985: do
3986: # Extract the first word of "$ac_prog", so it can be a program name with args.
3987: set dummy $ac_prog; ac_word=$2
1.11 moko 3988: echo "$as_me:$LINENO: checking for $ac_word" >&5
3989: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 3992: else
3993: if test -n "$ac_ct_DUMPBIN"; then
3994: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3995: else
3996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997: for as_dir in $PATH
3998: do
3999: IFS=$as_save_IFS
4000: test -z "$as_dir" && as_dir=.
1.11 moko 4001: for ac_exec_ext in '' $ac_executable_extensions; do
4002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4003: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.11 moko 4004: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4005: break 2
4006: fi
4007: done
1.11 moko 4008: done
1.1 misha 4009:
4010: fi
1.8 moko 4011: fi
4012: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4013: if test -n "$ac_ct_DUMPBIN"; then
1.11 moko 4014: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4015: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.1 misha 4016: else
1.11 moko 4017: echo "$as_me:$LINENO: result: no" >&5
4018: echo "${ECHO_T}no" >&6
1.1 misha 4019: fi
4020:
1.8 moko 4021: test -n "$ac_ct_DUMPBIN" && break
4022: done
1.11 moko 4023: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.8 moko 4024:
1.11 moko 4025: DUMPBIN=$ac_ct_DUMPBIN
1.1 misha 4026: fi
4027:
1.8 moko 4028: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4029: *COFF*)
4030: DUMPBIN="$DUMPBIN -symbols"
4031: ;;
4032: *)
4033: DUMPBIN=:
4034: ;;
4035: esac
4036: fi
4037:
4038: if test "$DUMPBIN" != ":"; then
4039: NM="$DUMPBIN"
4040: fi
4041: fi
4042: test -z "$NM" && NM=nm
4043:
4044:
4045:
4046:
4047:
4048:
1.11 moko 4049: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4050: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4051: if test "${lt_cv_nm_interface+set}" = set; then
4052: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4053: else
4054: lt_cv_nm_interface="BSD nm"
4055: echo "int some_variable = 0;" > conftest.$ac_ext
4056: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4057: (eval "$ac_compile" 2>conftest.err)
4058: cat conftest.err >&5
4059: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4060: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4061: cat conftest.err >&5
4062: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4063: cat conftest.out >&5
4064: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4065: lt_cv_nm_interface="MS dumpbin"
4066: fi
4067: rm -f conftest*
4068: fi
1.11 moko 4069: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4070: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.8 moko 4071:
1.11 moko 4072: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4073: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.8 moko 4074: LN_S=$as_ln_s
4075: if test "$LN_S" = "ln -s"; then
1.11 moko 4076: echo "$as_me:$LINENO: result: yes" >&5
4077: echo "${ECHO_T}yes" >&6
1.8 moko 4078: else
1.11 moko 4079: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4080: echo "${ECHO_T}no, using $LN_S" >&6
1.8 moko 4081: fi
4082:
4083: # find the maximum length of command line arguments
1.11 moko 4084: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4085: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4086: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4088: else
4089: i=0
4090: teststring="ABCD"
4091:
4092: case $build_os in
4093: msdosdjgpp*)
4094: # On DJGPP, this test can blow up pretty badly due to problems in libc
4095: # (any single argument exceeding 2000 bytes causes a buffer overrun
4096: # during glob expansion). Even if it were fixed, the result of this
4097: # check would be larger than it should be.
4098: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4099: ;;
4100:
4101: gnu*)
4102: # Under GNU Hurd, this test is not required because there is
4103: # no limit to the length of command line arguments.
4104: # Libtool will interpret -1 as no limit whatsoever
4105: lt_cv_sys_max_cmd_len=-1;
4106: ;;
4107:
4108: cygwin* | mingw* | cegcc*)
4109: # On Win9x/ME, this test blows up -- it succeeds, but takes
4110: # about 5 minutes as the teststring grows exponentially.
4111: # Worse, since 9x/ME are not pre-emptively multitasking,
4112: # you end up with a "frozen" computer, even though with patience
4113: # the test eventually succeeds (with a max line length of 256k).
4114: # Instead, let's just punt: use the minimum linelength reported by
4115: # all of the supported platforms: 8192 (on NT/2K/XP).
4116: lt_cv_sys_max_cmd_len=8192;
4117: ;;
4118:
4119: mint*)
4120: # On MiNT this can take a long time and run out of memory.
4121: lt_cv_sys_max_cmd_len=8192;
4122: ;;
4123:
4124: amigaos*)
4125: # On AmigaOS with pdksh, this test takes hours, literally.
4126: # So we just punt and use a minimum line length of 8192.
4127: lt_cv_sys_max_cmd_len=8192;
4128: ;;
4129:
4130: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4131: # This has been around since 386BSD, at least. Likely further.
4132: if test -x /sbin/sysctl; then
4133: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4134: elif test -x /usr/sbin/sysctl; then
4135: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4136: else
4137: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4138: fi
4139: # And add a safety zone
4140: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4141: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4142: ;;
4143:
4144: interix*)
4145: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4146: lt_cv_sys_max_cmd_len=196608
4147: ;;
4148:
4149: os2*)
4150: # The test takes a long time on OS/2.
4151: lt_cv_sys_max_cmd_len=8192
4152: ;;
4153:
4154: osf*)
4155: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4156: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4157: # nice to cause kernel panics so lets avoid the loop below.
4158: # First set a reasonable default.
4159: lt_cv_sys_max_cmd_len=16384
4160: #
4161: if test -x /sbin/sysconfig; then
4162: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4163: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4164: esac
4165: fi
4166: ;;
4167: sco3.2v5*)
4168: lt_cv_sys_max_cmd_len=102400
4169: ;;
4170: sysv5* | sco5v6* | sysv4.2uw2*)
4171: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4172: if test -n "$kargmax"; then
4173: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4174: else
4175: lt_cv_sys_max_cmd_len=32768
4176: fi
4177: ;;
4178: *)
4179: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4180: if test -n "$lt_cv_sys_max_cmd_len"; then
4181: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4182: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4183: else
4184: # Make teststring a little bigger before we do anything with it.
4185: # a 1K string should be a reasonable start.
4186: for i in 1 2 3 4 5 6 7 8 ; do
4187: teststring=$teststring$teststring
4188: done
4189: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4190: # If test is not a shell built-in, we'll probably end up computing a
4191: # maximum length that is only half of the actual maximum length, but
4192: # we can't tell.
4193: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4194: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4195: test $i != 17 # 1/2 MB should be enough
4196: do
4197: i=`expr $i + 1`
4198: teststring=$teststring$teststring
4199: done
4200: # Only check the string length outside the loop.
4201: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4202: teststring=
4203: # Add a significant safety factor because C++ compilers can tack on
4204: # massive amounts of additional arguments before passing them to the
4205: # linker. It appears as though 1/2 is a usable value.
4206: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4207: fi
4208: ;;
4209: esac
4210:
4211: fi
4212:
4213: if test -n $lt_cv_sys_max_cmd_len ; then
1.11 moko 4214: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4215: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.8 moko 4216: else
1.11 moko 4217: echo "$as_me:$LINENO: result: none" >&5
4218: echo "${ECHO_T}none" >&6
1.8 moko 4219: fi
4220: max_cmd_len=$lt_cv_sys_max_cmd_len
4221:
4222:
4223:
4224:
4225:
4226:
4227: : ${CP="cp -f"}
4228: : ${MV="mv -f"}
4229: : ${RM="rm -f"}
4230:
1.11 moko 4231: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4232: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1.8 moko 4233: # Try some XSI features
4234: xsi_shell=no
4235: ( _lt_dummy="a/b/c"
4236: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4237: = c,a/b,b/c, \
4238: && eval 'test $(( 1 + 1 )) -eq 2 \
4239: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4240: && xsi_shell=yes
1.11 moko 4241: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4242: echo "${ECHO_T}$xsi_shell" >&6
1.8 moko 4243:
4244:
1.11 moko 4245: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4246: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1.8 moko 4247: lt_shell_append=no
4248: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4249: >/dev/null 2>&1 \
4250: && lt_shell_append=yes
1.11 moko 4251: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4252: echo "${ECHO_T}$lt_shell_append" >&6
1.8 moko 4253:
4254:
4255: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4256: lt_unset=unset
4257: else
4258: lt_unset=false
4259: fi
4260:
4261:
4262:
4263:
4264:
4265: # test EBCDIC or ASCII
4266: case `echo X|tr X '\101'` in
4267: A) # ASCII based system
4268: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4269: lt_SP2NL='tr \040 \012'
4270: lt_NL2SP='tr \015\012 \040\040'
4271: ;;
4272: *) # EBCDIC based system
4273: lt_SP2NL='tr \100 \n'
4274: lt_NL2SP='tr \r\n \100\100'
4275: ;;
4276: esac
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284:
4285:
1.11 moko 4286: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4287: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4288: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4289: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4290: else
4291: case $host in
4292: *-*-mingw* )
4293: case $build in
4294: *-*-mingw* ) # actually msys
4295: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4296: ;;
4297: *-*-cygwin* )
4298: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4299: ;;
4300: * ) # otherwise, assume *nix
4301: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4302: ;;
4303: esac
4304: ;;
4305: *-*-cygwin* )
4306: case $build in
4307: *-*-mingw* ) # actually msys
4308: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4309: ;;
4310: *-*-cygwin* )
4311: lt_cv_to_host_file_cmd=func_convert_file_noop
4312: ;;
4313: * ) # otherwise, assume *nix
4314: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4315: ;;
4316: esac
4317: ;;
4318: * ) # unhandled hosts (and "normal" native builds)
4319: lt_cv_to_host_file_cmd=func_convert_file_noop
4320: ;;
4321: esac
4322:
4323: fi
4324:
4325: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.11 moko 4326: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4327: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
1.8 moko 4328:
4329:
4330:
4331:
4332:
1.11 moko 4333: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4334: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4335: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4336: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4337: else
4338: #assume ordinary cross tools, or native build.
4339: lt_cv_to_tool_file_cmd=func_convert_file_noop
4340: case $host in
4341: *-*-mingw* )
4342: case $build in
4343: *-*-mingw* ) # actually msys
4344: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4345: ;;
4346: esac
4347: ;;
4348: esac
4349:
4350: fi
4351:
4352: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.11 moko 4353: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4354: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
1.8 moko 4355:
4356:
4357:
4358:
4359:
1.11 moko 4360: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4361: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4362: if test "${lt_cv_ld_reload_flag+set}" = set; then
4363: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4364: else
4365: lt_cv_ld_reload_flag='-r'
4366: fi
1.11 moko 4367: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4368: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.8 moko 4369: reload_flag=$lt_cv_ld_reload_flag
4370: case $reload_flag in
4371: "" | " "*) ;;
4372: *) reload_flag=" $reload_flag" ;;
4373: esac
4374: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375: case $host_os in
4376: cygwin* | mingw* | pw32* | cegcc*)
4377: if test "$GCC" != yes; then
4378: reload_cmds=false
4379: fi
4380: ;;
4381: darwin*)
4382: if test "$GCC" = yes; then
4383: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4384: else
4385: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4386: fi
4387: ;;
4388: esac
4389:
4390:
4391:
4392:
4393:
4394:
4395:
4396:
4397:
4398: if test -n "$ac_tool_prefix"; then
4399: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4400: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.11 moko 4401: echo "$as_me:$LINENO: checking for $ac_word" >&5
4402: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4404: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4405: else
4406: if test -n "$OBJDUMP"; then
4407: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4408: else
4409: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410: for as_dir in $PATH
4411: do
4412: IFS=$as_save_IFS
4413: test -z "$as_dir" && as_dir=.
1.11 moko 4414: for ac_exec_ext in '' $ac_executable_extensions; do
4415: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4416: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.11 moko 4417: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4418: break 2
4419: fi
4420: done
1.11 moko 4421: done
1.8 moko 4422:
4423: fi
4424: fi
4425: OBJDUMP=$ac_cv_prog_OBJDUMP
4426: if test -n "$OBJDUMP"; then
1.11 moko 4427: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4428: echo "${ECHO_T}$OBJDUMP" >&6
1.8 moko 4429: else
1.11 moko 4430: echo "$as_me:$LINENO: result: no" >&5
4431: echo "${ECHO_T}no" >&6
1.8 moko 4432: fi
4433:
4434: fi
4435: if test -z "$ac_cv_prog_OBJDUMP"; then
4436: ac_ct_OBJDUMP=$OBJDUMP
4437: # Extract the first word of "objdump", so it can be a program name with args.
4438: set dummy objdump; ac_word=$2
1.11 moko 4439: echo "$as_me:$LINENO: checking for $ac_word" >&5
4440: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4442: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4443: else
4444: if test -n "$ac_ct_OBJDUMP"; then
4445: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4446: else
4447: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448: for as_dir in $PATH
4449: do
4450: IFS=$as_save_IFS
4451: test -z "$as_dir" && as_dir=.
1.11 moko 4452: for ac_exec_ext in '' $ac_executable_extensions; do
4453: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4454: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.11 moko 4455: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4456: break 2
4457: fi
4458: done
1.11 moko 4459: done
1.8 moko 4460:
1.11 moko 4461: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
1.8 moko 4462: fi
4463: fi
4464: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4465: if test -n "$ac_ct_OBJDUMP"; then
1.11 moko 4466: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4467: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
1.8 moko 4468: else
1.11 moko 4469: echo "$as_me:$LINENO: result: no" >&5
4470: echo "${ECHO_T}no" >&6
1.8 moko 4471: fi
4472:
1.11 moko 4473: OBJDUMP=$ac_ct_OBJDUMP
1.8 moko 4474: else
4475: OBJDUMP="$ac_cv_prog_OBJDUMP"
4476: fi
4477:
4478: test -z "$OBJDUMP" && OBJDUMP=objdump
4479:
4480:
4481:
4482:
4483:
4484:
1.11 moko 4485: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4486: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4487: if test "${lt_cv_deplibs_check_method+set}" = set; then
4488: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4489: else
4490: lt_cv_file_magic_cmd='$MAGIC_CMD'
4491: lt_cv_file_magic_test_file=
4492: lt_cv_deplibs_check_method='unknown'
4493: # Need to set the preceding variable on all platforms that support
4494: # interlibrary dependencies.
4495: # 'none' -- dependencies not supported.
4496: # `unknown' -- same as none, but documents that we really don't know.
4497: # 'pass_all' -- all dependencies passed with no checks.
4498: # 'test_compile' -- check by making test program.
4499: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 4500: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 4501: # If you have `file' or equivalent on your system and you're not sure
4502: # whether `pass_all' will *always* work, you probably want this one.
4503:
4504: case $host_os in
1.8 moko 4505: aix[4-9]*)
1.1 misha 4506: lt_cv_deplibs_check_method=pass_all
4507: ;;
4508:
4509: beos*)
4510: lt_cv_deplibs_check_method=pass_all
4511: ;;
4512:
1.8 moko 4513: bsdi[45]*)
1.1 misha 4514: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4515: lt_cv_file_magic_cmd='/usr/bin/file -L'
4516: lt_cv_file_magic_test_file=/shlib/libc.so
4517: ;;
4518:
1.8 moko 4519: cygwin*)
4520: # func_win32_libid is a shell function defined in ltmain.sh
4521: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522: lt_cv_file_magic_cmd='func_win32_libid'
4523: ;;
4524:
4525: mingw* | pw32*)
4526: # Base MSYS/MinGW do not provide the 'file' command needed by
4527: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4528: # unless we find 'file', for example because we are cross-compiling.
4529: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4530: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4531: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532: lt_cv_file_magic_cmd='func_win32_libid'
4533: else
4534: # Keep this pattern in sync with the one in func_win32_libid.
4535: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4536: lt_cv_file_magic_cmd='$OBJDUMP -f'
4537: fi
4538: ;;
4539:
4540: cegcc*)
4541: # use the weaker test based on 'objdump'. See mingw*.
4542: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 4543: lt_cv_file_magic_cmd='$OBJDUMP -f'
4544: ;;
4545:
4546: darwin* | rhapsody*)
1.8 moko 4547: lt_cv_deplibs_check_method=pass_all
1.1 misha 4548: ;;
4549:
1.8 moko 4550: freebsd* | dragonfly*)
4551: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 4552: case $host_cpu in
4553: i*86 )
4554: # Not sure whether the presence of OpenBSD here was a mistake.
4555: # Let's accept both of them until this is cleared up.
1.8 moko 4556: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 4557: lt_cv_file_magic_cmd=/usr/bin/file
4558: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4559: ;;
4560: esac
4561: else
4562: lt_cv_deplibs_check_method=pass_all
4563: fi
4564: ;;
4565:
4566: gnu*)
4567: lt_cv_deplibs_check_method=pass_all
4568: ;;
4569:
1.8 moko 4570: haiku*)
4571: lt_cv_deplibs_check_method=pass_all
1.1 misha 4572: ;;
4573:
1.8 moko 4574: hpux10.20* | hpux11*)
4575: lt_cv_file_magic_cmd=/usr/bin/file
4576: case $host_cpu in
4577: ia64*)
4578: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4579: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4580: ;;
4581: hppa*64*)
4582: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4583: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 4584: ;;
4585: *)
1.8 moko 4586: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4587: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 4588: ;;
4589: esac
1.8 moko 4590: ;;
4591:
4592: interix[3-9]*)
4593: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4594: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4595: ;;
4596:
4597: irix5* | irix6* | nonstopux*)
4598: case $LD in
4599: *-32|*"-32 ") libmagic=32-bit;;
4600: *-n32|*"-n32 ") libmagic=N32;;
4601: *-64|*"-64 ") libmagic=64-bit;;
4602: *) libmagic=never-match;;
4603: esac
1.1 misha 4604: lt_cv_deplibs_check_method=pass_all
4605: ;;
4606:
1.8 moko 4607: # This must be glibc/ELF.
4608: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4609: lt_cv_deplibs_check_method=pass_all
1.1 misha 4610: ;;
4611:
4612: netbsd*)
1.8 moko 4613: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4615: else
1.8 moko 4616: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 4617: fi
4618: ;;
4619:
4620: newos6*)
4621: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4622: lt_cv_file_magic_cmd=/usr/bin/file
4623: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4624: ;;
4625:
1.8 moko 4626: *nto* | *qnx*)
4627: lt_cv_deplibs_check_method=pass_all
4628: ;;
4629:
1.1 misha 4630: openbsd*)
1.8 moko 4631: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 4633: else
1.8 moko 4634: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 4635: fi
4636: ;;
4637:
4638: osf3* | osf4* | osf5*)
4639: lt_cv_deplibs_check_method=pass_all
4640: ;;
4641:
1.8 moko 4642: rdos*)
1.1 misha 4643: lt_cv_deplibs_check_method=pass_all
4644: ;;
4645:
4646: solaris*)
4647: lt_cv_deplibs_check_method=pass_all
4648: ;;
4649:
1.8 moko 4650: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 4651: lt_cv_deplibs_check_method=pass_all
4652: ;;
4653:
1.8 moko 4654: sysv4 | sysv4.3*)
1.1 misha 4655: case $host_vendor in
4656: motorola)
4657: 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]'
4658: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4659: ;;
4660: ncr)
4661: lt_cv_deplibs_check_method=pass_all
4662: ;;
4663: sequent)
4664: lt_cv_file_magic_cmd='/bin/file'
4665: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4666: ;;
4667: sni)
4668: lt_cv_file_magic_cmd='/bin/file'
4669: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4670: lt_cv_file_magic_test_file=/lib/libc.so
4671: ;;
4672: siemens)
4673: lt_cv_deplibs_check_method=pass_all
4674: ;;
1.8 moko 4675: pc)
4676: lt_cv_deplibs_check_method=pass_all
4677: ;;
1.1 misha 4678: esac
4679: ;;
1.8 moko 4680:
4681: tpf*)
4682: lt_cv_deplibs_check_method=pass_all
4683: ;;
1.1 misha 4684: esac
4685:
4686: fi
1.11 moko 4687: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4688: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.8 moko 4689:
4690: file_magic_glob=
4691: want_nocaseglob=no
4692: if test "$build" = "$host"; then
4693: case $host_os in
4694: mingw* | pw32*)
4695: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4696: want_nocaseglob=yes
4697: else
4698: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4699: fi
4700: ;;
4701: esac
4702: fi
4703:
1.1 misha 4704: file_magic_cmd=$lt_cv_file_magic_cmd
4705: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 4706: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4707:
4708:
1.1 misha 4709:
4710:
4711:
4712:
4713:
4714:
4715:
4716:
1.8 moko 4717:
4718:
4719:
4720:
4721:
4722:
4723:
4724:
4725:
4726:
4727:
4728:
4729: if test -n "$ac_tool_prefix"; then
4730: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4731: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.11 moko 4732: echo "$as_me:$LINENO: checking for $ac_word" >&5
4733: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4735: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4736: else
4737: if test -n "$DLLTOOL"; then
4738: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4739: else
4740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741: for as_dir in $PATH
4742: do
4743: IFS=$as_save_IFS
4744: test -z "$as_dir" && as_dir=.
1.11 moko 4745: for ac_exec_ext in '' $ac_executable_extensions; do
4746: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4747: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.11 moko 4748: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4749: break 2
4750: fi
4751: done
1.11 moko 4752: done
1.8 moko 4753:
4754: fi
4755: fi
4756: DLLTOOL=$ac_cv_prog_DLLTOOL
4757: if test -n "$DLLTOOL"; then
1.11 moko 4758: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4759: echo "${ECHO_T}$DLLTOOL" >&6
1.8 moko 4760: else
1.11 moko 4761: echo "$as_me:$LINENO: result: no" >&5
4762: echo "${ECHO_T}no" >&6
1.8 moko 4763: fi
4764:
4765: fi
4766: if test -z "$ac_cv_prog_DLLTOOL"; then
4767: ac_ct_DLLTOOL=$DLLTOOL
4768: # Extract the first word of "dlltool", so it can be a program name with args.
4769: set dummy dlltool; ac_word=$2
1.11 moko 4770: echo "$as_me:$LINENO: checking for $ac_word" >&5
4771: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4773: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4774: else
1.8 moko 4775: if test -n "$ac_ct_DLLTOOL"; then
4776: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4777: else
4778: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779: for as_dir in $PATH
4780: do
4781: IFS=$as_save_IFS
4782: test -z "$as_dir" && as_dir=.
1.11 moko 4783: for ac_exec_ext in '' $ac_executable_extensions; do
4784: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4785: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.11 moko 4786: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4787: break 2
4788: fi
4789: done
1.11 moko 4790: done
1.8 moko 4791:
1.11 moko 4792: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
1.8 moko 4793: fi
4794: fi
4795: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4796: if test -n "$ac_ct_DLLTOOL"; then
1.11 moko 4797: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4798: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
1.8 moko 4799: else
1.11 moko 4800: echo "$as_me:$LINENO: result: no" >&5
4801: echo "${ECHO_T}no" >&6
1.8 moko 4802: fi
4803:
1.11 moko 4804: DLLTOOL=$ac_ct_DLLTOOL
1.8 moko 4805: else
4806: DLLTOOL="$ac_cv_prog_DLLTOOL"
4807: fi
4808:
4809: test -z "$DLLTOOL" && DLLTOOL=dlltool
4810:
4811:
4812:
4813:
1.1 misha 4814:
4815:
4816:
1.11 moko 4817: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4818: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4819: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4820: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4821: else
4822: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 4823:
4824: case $host_os in
1.8 moko 4825: cygwin* | mingw* | pw32* | cegcc*)
4826: # two different shell functions defined in ltmain.sh
4827: # decide which to use based on capabilities of $DLLTOOL
4828: case `$DLLTOOL --help 2>&1` in
4829: *--identify-strict*)
4830: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4831: ;;
4832: *)
4833: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4834: ;;
4835: esac
1.1 misha 4836: ;;
1.8 moko 4837: *)
4838: # fallback: assume linklib IS sharedlib
4839: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 4840: ;;
4841: esac
4842:
4843: fi
1.11 moko 4844: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4845: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
1.8 moko 4846: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4847: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 4848:
4849:
4850:
4851:
4852:
4853:
4854:
4855:
1.8 moko 4856: if test -n "$ac_tool_prefix"; then
4857: for ac_prog in ar
4858: do
4859: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4860: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 moko 4861: echo "$as_me:$LINENO: checking for $ac_word" >&5
4862: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863: if test "${ac_cv_prog_AR+set}" = set; then
4864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 4865: else
4866: if test -n "$AR"; then
4867: ac_cv_prog_AR="$AR" # Let the user override the test.
4868: else
4869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870: for as_dir in $PATH
4871: do
4872: IFS=$as_save_IFS
4873: test -z "$as_dir" && as_dir=.
1.11 moko 4874: for ac_exec_ext in '' $ac_executable_extensions; do
4875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4876: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.11 moko 4877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4878: break 2
1.1 misha 4879: fi
1.8 moko 4880: done
1.11 moko 4881: done
1.1 misha 4882:
4883: fi
4884: fi
1.8 moko 4885: AR=$ac_cv_prog_AR
4886: if test -n "$AR"; then
1.11 moko 4887: echo "$as_me:$LINENO: result: $AR" >&5
4888: echo "${ECHO_T}$AR" >&6
1.1 misha 4889: else
1.11 moko 4890: echo "$as_me:$LINENO: result: no" >&5
4891: echo "${ECHO_T}no" >&6
1.1 misha 4892: fi
4893:
1.8 moko 4894: test -n "$AR" && break
4895: done
1.1 misha 4896: fi
1.8 moko 4897: if test -z "$AR"; then
4898: ac_ct_AR=$AR
4899: for ac_prog in ar
4900: do
4901: # Extract the first word of "$ac_prog", so it can be a program name with args.
4902: set dummy $ac_prog; ac_word=$2
1.11 moko 4903: echo "$as_me:$LINENO: checking for $ac_word" >&5
4904: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4907: else
1.8 moko 4908: if test -n "$ac_ct_AR"; then
4909: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4910: else
4911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912: for as_dir in $PATH
1.1 misha 4913: do
1.8 moko 4914: IFS=$as_save_IFS
4915: test -z "$as_dir" && as_dir=.
1.11 moko 4916: for ac_exec_ext in '' $ac_executable_extensions; do
4917: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 4918: ac_cv_prog_ac_ct_AR="$ac_prog"
1.11 moko 4919: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4920: break 2
1.1 misha 4921: fi
1.8 moko 4922: done
1.11 moko 4923: done
1.1 misha 4924:
4925: fi
4926: fi
1.8 moko 4927: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4928: if test -n "$ac_ct_AR"; then
1.11 moko 4929: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4930: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 misha 4931: else
1.11 moko 4932: echo "$as_me:$LINENO: result: no" >&5
4933: echo "${ECHO_T}no" >&6
1.1 misha 4934: fi
4935:
1.8 moko 4936: test -n "$ac_ct_AR" && break
1.1 misha 4937: done
1.11 moko 4938: test -n "$ac_ct_AR" || ac_ct_AR="false"
1.8 moko 4939:
1.11 moko 4940: AR=$ac_ct_AR
1.1 misha 4941: fi
4942:
1.8 moko 4943: : ${AR=ar}
4944: : ${AR_FLAGS=cru}
4945:
1.1 misha 4946:
4947:
4948:
4949:
4950:
4951:
4952:
4953:
4954:
4955:
1.11 moko 4956: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4957: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4958: if test "${lt_cv_ar_at_file+set}" = set; then
4959: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 4960: else
1.8 moko 4961: lt_cv_ar_at_file=no
1.11 moko 4962: cat >conftest.$ac_ext <<_ACEOF
4963: /* confdefs.h. */
4964: _ACEOF
4965: cat confdefs.h >>conftest.$ac_ext
4966: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 4967: /* end confdefs.h. */
4968:
4969: int
4970: main ()
4971: {
4972:
4973: ;
4974: return 0;
4975: }
4976: _ACEOF
1.11 moko 4977: rm -f conftest.$ac_objext
4978: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979: (eval $ac_compile) 2>conftest.er1
4980: ac_status=$?
4981: grep -v '^ *+' conftest.er1 >conftest.err
4982: rm -f conftest.er1
4983: cat conftest.err >&5
4984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985: (exit $ac_status); } &&
4986: { ac_try='test -z "$ac_c_werror_flag"
4987: || test ! -s conftest.err'
4988: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989: (eval $ac_try) 2>&5
4990: ac_status=$?
4991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992: (exit $ac_status); }; } &&
4993: { ac_try='test -s conftest.$ac_objext'
4994: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995: (eval $ac_try) 2>&5
4996: ac_status=$?
4997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998: (exit $ac_status); }; }; then
1.8 moko 4999: echo conftest.$ac_objext > conftest.lst
5000: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.11 moko 5001: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5002: (eval $lt_ar_try) 2>&5
5003: ac_status=$?
1.11 moko 5004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005: (exit $ac_status); }
1.8 moko 5006: if test "$ac_status" -eq 0; then
5007: # Ensure the archiver fails upon bogus file names.
5008: rm -f conftest.$ac_objext libconftest.a
1.11 moko 5009: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
1.8 moko 5010: (eval $lt_ar_try) 2>&5
5011: ac_status=$?
1.11 moko 5012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013: (exit $ac_status); }
1.8 moko 5014: if test "$ac_status" -ne 0; then
5015: lt_cv_ar_at_file=@
5016: fi
5017: fi
5018: rm -f conftest.* libconftest.a
5019:
1.11 moko 5020: else
5021: echo "$as_me: failed program was:" >&5
5022: sed 's/^/| /' conftest.$ac_ext >&5
5023:
1.1 misha 5024: fi
1.11 moko 5025: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 5026:
1.8 moko 5027: fi
1.11 moko 5028: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5029: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.8 moko 5030:
5031: if test "x$lt_cv_ar_at_file" = xno; then
5032: archiver_list_spec=
1.1 misha 5033: else
1.8 moko 5034: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 5035: fi
5036:
5037:
5038:
1.8 moko 5039:
5040:
5041:
5042:
5043: if test -n "$ac_tool_prefix"; then
5044: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5045: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.11 moko 5046: echo "$as_me:$LINENO: checking for $ac_word" >&5
5047: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048: if test "${ac_cv_prog_STRIP+set}" = set; then
5049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5050: else
5051: if test -n "$STRIP"; then
5052: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5053: else
5054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055: for as_dir in $PATH
5056: do
5057: IFS=$as_save_IFS
5058: test -z "$as_dir" && as_dir=.
1.11 moko 5059: for ac_exec_ext in '' $ac_executable_extensions; do
5060: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5061: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.11 moko 5062: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5063: break 2
5064: fi
5065: done
1.11 moko 5066: done
1.8 moko 5067:
5068: fi
5069: fi
5070: STRIP=$ac_cv_prog_STRIP
5071: if test -n "$STRIP"; then
1.11 moko 5072: echo "$as_me:$LINENO: result: $STRIP" >&5
5073: echo "${ECHO_T}$STRIP" >&6
1.1 misha 5074: else
1.11 moko 5075: echo "$as_me:$LINENO: result: no" >&5
5076: echo "${ECHO_T}no" >&6
1.1 misha 5077: fi
5078:
5079: fi
1.8 moko 5080: if test -z "$ac_cv_prog_STRIP"; then
5081: ac_ct_STRIP=$STRIP
5082: # Extract the first word of "strip", so it can be a program name with args.
5083: set dummy strip; ac_word=$2
1.11 moko 5084: echo "$as_me:$LINENO: checking for $ac_word" >&5
5085: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5088: else
1.8 moko 5089: if test -n "$ac_ct_STRIP"; then
5090: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 5091: else
1.8 moko 5092: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093: for as_dir in $PATH
5094: do
5095: IFS=$as_save_IFS
5096: test -z "$as_dir" && as_dir=.
1.11 moko 5097: for ac_exec_ext in '' $ac_executable_extensions; do
5098: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5099: ac_cv_prog_ac_ct_STRIP="strip"
1.11 moko 5100: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5101: break 2
5102: fi
5103: done
1.11 moko 5104: done
1.1 misha 5105:
1.11 moko 5106: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 misha 5107: fi
5108: fi
1.8 moko 5109: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5110: if test -n "$ac_ct_STRIP"; then
1.11 moko 5111: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5112: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.8 moko 5113: else
1.11 moko 5114: echo "$as_me:$LINENO: result: no" >&5
5115: echo "${ECHO_T}no" >&6
1.1 misha 5116: fi
5117:
1.11 moko 5118: STRIP=$ac_ct_STRIP
1.8 moko 5119: else
5120: STRIP="$ac_cv_prog_STRIP"
1.1 misha 5121: fi
5122:
1.8 moko 5123: test -z "$STRIP" && STRIP=:
1.1 misha 5124:
5125:
5126:
5127:
5128:
5129:
1.8 moko 5130: if test -n "$ac_tool_prefix"; then
5131: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5132: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.11 moko 5133: echo "$as_me:$LINENO: checking for $ac_word" >&5
5134: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135: if test "${ac_cv_prog_RANLIB+set}" = set; then
5136: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5137: else
1.8 moko 5138: if test -n "$RANLIB"; then
5139: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 5140: else
1.8 moko 5141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142: for as_dir in $PATH
5143: do
5144: IFS=$as_save_IFS
5145: test -z "$as_dir" && as_dir=.
1.11 moko 5146: for ac_exec_ext in '' $ac_executable_extensions; do
5147: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5148: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.11 moko 5149: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5150: break 2
5151: fi
5152: done
1.11 moko 5153: done
1.1 misha 5154:
5155: fi
5156: fi
1.8 moko 5157: RANLIB=$ac_cv_prog_RANLIB
5158: if test -n "$RANLIB"; then
1.11 moko 5159: echo "$as_me:$LINENO: result: $RANLIB" >&5
5160: echo "${ECHO_T}$RANLIB" >&6
1.8 moko 5161: else
1.11 moko 5162: echo "$as_me:$LINENO: result: no" >&5
5163: echo "${ECHO_T}no" >&6
1.8 moko 5164: fi
1.1 misha 5165:
5166: fi
1.8 moko 5167: if test -z "$ac_cv_prog_RANLIB"; then
5168: ac_ct_RANLIB=$RANLIB
5169: # Extract the first word of "ranlib", so it can be a program name with args.
5170: set dummy ranlib; ac_word=$2
1.11 moko 5171: echo "$as_me:$LINENO: checking for $ac_word" >&5
5172: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5175: else
5176: if test -n "$ac_ct_RANLIB"; then
5177: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5178: else
5179: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180: for as_dir in $PATH
5181: do
5182: IFS=$as_save_IFS
5183: test -z "$as_dir" && as_dir=.
1.11 moko 5184: for ac_exec_ext in '' $ac_executable_extensions; do
5185: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5186: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.11 moko 5187: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5188: break 2
5189: fi
5190: done
1.11 moko 5191: done
1.1 misha 5192:
1.11 moko 5193: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.8 moko 5194: fi
1.1 misha 5195: fi
1.8 moko 5196: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5197: if test -n "$ac_ct_RANLIB"; then
1.11 moko 5198: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5199: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1 misha 5200: else
1.11 moko 5201: echo "$as_me:$LINENO: result: no" >&5
5202: echo "${ECHO_T}no" >&6
1.1 misha 5203: fi
5204:
1.11 moko 5205: RANLIB=$ac_ct_RANLIB
1.1 misha 5206: else
1.8 moko 5207: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 5208: fi
5209:
1.8 moko 5210: test -z "$RANLIB" && RANLIB=:
5211:
5212:
5213:
5214:
5215:
5216:
5217: # Determine commands to create old-style static archives.
5218: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5219: old_postinstall_cmds='chmod 644 $oldlib'
5220: old_postuninstall_cmds=
1.1 misha 5221:
1.8 moko 5222: if test -n "$RANLIB"; then
5223: case $host_os in
5224: openbsd*)
5225: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 5226: ;;
1.8 moko 5227: *)
5228: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 5229: ;;
1.8 moko 5230: esac
5231: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5232: fi
5233:
5234: case $host_os in
5235: darwin*)
5236: lock_old_archive_extraction=yes ;;
5237: *)
5238: lock_old_archive_extraction=no ;;
1.1 misha 5239: esac
5240:
5241:
5242:
5243:
5244:
5245:
5246:
5247:
5248:
5249:
5250:
5251:
5252:
5253:
5254:
5255:
5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
5272:
5273:
1.8 moko 5274:
5275:
5276:
5277:
5278:
5279: # If no C compiler was specified, use CC.
5280: LTCC=${LTCC-"$CC"}
5281:
5282: # If no C compiler flags were specified, use CFLAGS.
5283: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5284:
5285: # Allow CC to be a program name with arguments.
5286: compiler=$CC
5287:
5288:
5289: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.11 moko 5290: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5291: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5292: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5294: else
5295:
1.8 moko 5296: # These are sane defaults that work on at least a few old systems.
5297: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 5298:
1.8 moko 5299: # Character class describing NM global symbol codes.
5300: symcode='[BCDEGRST]'
1.1 misha 5301:
1.8 moko 5302: # Regexp to match symbols that can be accessed directly from C.
5303: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 5304:
1.8 moko 5305: # Define system-specific variables.
5306: case $host_os in
5307: aix*)
5308: symcode='[BCDT]'
5309: ;;
5310: cygwin* | mingw* | pw32* | cegcc*)
5311: symcode='[ABCDGISTW]'
5312: ;;
5313: hpux*)
5314: if test "$host_cpu" = ia64; then
5315: symcode='[ABCDEGRST]'
5316: fi
5317: ;;
5318: irix* | nonstopux*)
5319: symcode='[BCDEGRST]'
5320: ;;
5321: osf*)
5322: symcode='[BCDEGQRST]'
5323: ;;
5324: solaris*)
5325: symcode='[BDRT]'
5326: ;;
5327: sco3.2v5*)
5328: symcode='[DT]'
5329: ;;
5330: sysv4.2uw2*)
5331: symcode='[DT]'
5332: ;;
5333: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5334: symcode='[ABDT]'
5335: ;;
5336: sysv4)
5337: symcode='[DFNSTU]'
5338: ;;
5339: esac
5340:
5341: # If we're using GNU nm, then use its standard symbol codes.
5342: case `$NM -V 2>&1` in
5343: *GNU* | *'with BFD'*)
5344: symcode='[ABCDGIRSTW]' ;;
5345: esac
5346:
5347: # Transform an extracted symbol line into a proper C declaration.
5348: # Some systems (esp. on ia64) link data and code symbols differently,
5349: # so use this general approach.
5350: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5351:
5352: # Transform an extracted symbol line into symbol name and symbol address
5353: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5354: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5355:
5356: # Handle CRLF in mingw tool chain
5357: opt_cr=
5358: case $build_os in
5359: mingw*)
5360: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361: ;;
5362: esac
5363:
5364: # Try without a prefix underscore, then with it.
5365: for ac_symprfx in "" "_"; do
5366:
5367: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5368: symxfrm="\\1 $ac_symprfx\\2 \\2"
5369:
5370: # Write the raw and C identifiers.
5371: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5372: # Fake it for dumpbin and say T for any non-static function
5373: # and D for any global variable.
5374: # Also find C++ and __fastcall symbols from MSVC++,
5375: # which start with @ or ?.
5376: lt_cv_sys_global_symbol_pipe="$AWK '"\
5377: " {last_section=section; section=\$ 3};"\
5378: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5379: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5380: " \$ 0!~/External *\|/{next};"\
5381: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5382: " {if(hide[section]) next};"\
5383: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5384: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5385: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5386: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5387: " ' prfx=^$ac_symprfx"
5388: else
5389: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5390: fi
5391: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5392:
5393: # Check to see that the pipe works correctly.
5394: pipe_works=no
1.1 misha 5395:
1.8 moko 5396: rm -f conftest*
5397: cat > conftest.$ac_ext <<_LT_EOF
5398: #ifdef __cplusplus
5399: extern "C" {
5400: #endif
5401: char nm_test_var;
5402: void nm_test_func(void);
5403: void nm_test_func(void){}
5404: #ifdef __cplusplus
1.1 misha 5405: }
1.8 moko 5406: #endif
5407: int main(){nm_test_var='a';nm_test_func();return(0);}
5408: _LT_EOF
5409:
1.11 moko 5410: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5411: (eval $ac_compile) 2>&5
1.1 misha 5412: ac_status=$?
1.11 moko 5413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414: (exit $ac_status); }; then
1.8 moko 5415: # Now try to grab the symbols.
5416: nlist=conftest.nm
1.11 moko 5417: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
1.8 moko 5418: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 5419: ac_status=$?
1.11 moko 5420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421: (exit $ac_status); } && test -s "$nlist"; then
1.8 moko 5422: # Try sorting and uniquifying the output.
5423: if sort "$nlist" | uniq > "$nlist"T; then
5424: mv -f "$nlist"T "$nlist"
5425: else
5426: rm -f "$nlist"T
5427: fi
5428:
5429: # Make sure that we snagged all the symbols we need.
5430: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5431: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5432: cat <<_LT_EOF > conftest.$ac_ext
5433: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5434: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5435: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5436: relocations are performed -- see ld's documentation on pseudo-relocs. */
5437: # define LT_DLSYM_CONST
5438: #elif defined(__osf__)
5439: /* This system does not cope well with relocations in const data. */
5440: # define LT_DLSYM_CONST
5441: #else
5442: # define LT_DLSYM_CONST const
5443: #endif
5444:
5445: #ifdef __cplusplus
5446: extern "C" {
5447: #endif
5448:
5449: _LT_EOF
5450: # Now generate the symbol file.
5451: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5452:
5453: cat <<_LT_EOF >> conftest.$ac_ext
5454:
5455: /* The mapping between symbol names and symbols. */
5456: LT_DLSYM_CONST struct {
5457: const char *name;
5458: void *address;
5459: }
5460: lt__PROGRAM__LTX_preloaded_symbols[] =
5461: {
5462: { "@PROGRAM@", (void *) 0 },
5463: _LT_EOF
5464: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5465: cat <<\_LT_EOF >> conftest.$ac_ext
5466: {0, (void *) 0}
5467: };
5468:
5469: /* This works around a problem in FreeBSD linker */
5470: #ifdef FREEBSD_WORKAROUND
5471: static const void *lt_preloaded_setup() {
5472: return lt__PROGRAM__LTX_preloaded_symbols;
5473: }
5474: #endif
5475:
5476: #ifdef __cplusplus
5477: }
5478: #endif
5479: _LT_EOF
5480: # Now try linking the two files.
5481: mv conftest.$ac_objext conftstm.$ac_objext
5482: lt_globsym_save_LIBS=$LIBS
5483: lt_globsym_save_CFLAGS=$CFLAGS
5484: LIBS="conftstm.$ac_objext"
5485: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.11 moko 5486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 5487: (eval $ac_link) 2>&5
1.1 misha 5488: ac_status=$?
1.11 moko 5489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490: (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.8 moko 5491: pipe_works=yes
5492: fi
5493: LIBS=$lt_globsym_save_LIBS
5494: CFLAGS=$lt_globsym_save_CFLAGS
5495: else
5496: echo "cannot find nm_test_func in $nlist" >&5
5497: fi
5498: else
5499: echo "cannot find nm_test_var in $nlist" >&5
5500: fi
5501: else
5502: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5503: fi
5504: else
5505: echo "$progname: failed program was:" >&5
5506: cat conftest.$ac_ext >&5
5507: fi
5508: rm -rf conftest* conftst*
5509:
5510: # Do not use the global_symbol_pipe unless it works.
5511: if test "$pipe_works" = yes; then
5512: break
5513: else
5514: lt_cv_sys_global_symbol_pipe=
5515: fi
5516: done
5517:
5518: fi
5519:
5520: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5521: lt_cv_sys_global_symbol_to_cdecl=
5522: fi
5523: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.11 moko 5524: echo "$as_me:$LINENO: result: failed" >&5
5525: echo "${ECHO_T}failed" >&6
1.1 misha 5526: else
1.11 moko 5527: echo "$as_me:$LINENO: result: ok" >&5
5528: echo "${ECHO_T}ok" >&6
1.8 moko 5529: fi
1.1 misha 5530:
1.8 moko 5531: # Response file support.
5532: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5533: nm_file_list_spec='@'
5534: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5535: nm_file_list_spec='@'
1.1 misha 5536: fi
5537:
5538:
5539:
5540:
5541:
5542:
5543:
5544:
5545:
5546:
5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
5556:
5557:
1.8 moko 5558:
5559:
5560:
5561:
5562:
5563:
1.11 moko 5564: echo "$as_me:$LINENO: checking for sysroot" >&5
5565: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5566:
5567: # Check whether --with-sysroot or --without-sysroot was given.
5568: if test "${with_sysroot+set}" = set; then
5569: withval="$with_sysroot"
1.8 moko 5570:
1.1 misha 5571: else
1.8 moko 5572: with_sysroot=no
1.11 moko 5573: fi;
1.1 misha 5574:
1.8 moko 5575: lt_sysroot=
5576: case ${with_sysroot} in #(
5577: yes)
5578: if test "$GCC" = yes; then
5579: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5580: fi
5581: ;; #(
5582: /*)
5583: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5584: ;; #(
5585: no|'')
5586: ;; #(
5587: *)
1.11 moko 5588: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5589: echo "${ECHO_T}${with_sysroot}" >&6
5590: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5591: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5592: { (exit 1); exit 1; }; }
1.8 moko 5593: ;;
5594: esac
5595:
1.11 moko 5596: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5597: echo "${ECHO_T}${lt_sysroot:-no}" >&6
1.8 moko 5598:
5599:
5600:
5601:
5602:
1.11 moko 5603: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5604: if test "${enable_libtool_lock+set}" = set; then
5605: enableval="$enable_libtool_lock"
1.1 misha 5606:
1.11 moko 5607: fi;
1.8 moko 5608: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 5609:
1.8 moko 5610: # Some flags need to be propagated to the compiler or linker for good
5611: # libtool support.
5612: case $host in
5613: ia64-*-hpux*)
5614: # Find out which ABI we are using.
5615: echo 'int i;' > conftest.$ac_ext
1.11 moko 5616: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5617: (eval $ac_compile) 2>&5
5618: ac_status=$?
1.11 moko 5619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620: (exit $ac_status); }; then
1.8 moko 5621: case `/usr/bin/file conftest.$ac_objext` in
5622: *ELF-32*)
5623: HPUX_IA64_MODE="32"
5624: ;;
5625: *ELF-64*)
5626: HPUX_IA64_MODE="64"
5627: ;;
1.1 misha 5628: esac
5629: fi
1.8 moko 5630: rm -rf conftest*
5631: ;;
5632: *-*-irix6*)
5633: # Find out which ABI we are using.
5634: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.11 moko 5635: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5636: (eval $ac_compile) 2>&5
1.1 misha 5637: ac_status=$?
1.11 moko 5638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639: (exit $ac_status); }; then
1.8 moko 5640: if test "$lt_cv_prog_gnu_ld" = yes; then
5641: case `/usr/bin/file conftest.$ac_objext` in
5642: *32-bit*)
5643: LD="${LD-ld} -melf32bsmip"
5644: ;;
5645: *N32*)
5646: LD="${LD-ld} -melf32bmipn32"
5647: ;;
5648: *64-bit*)
5649: LD="${LD-ld} -melf64bmip"
5650: ;;
5651: esac
5652: else
5653: case `/usr/bin/file conftest.$ac_objext` in
5654: *32-bit*)
5655: LD="${LD-ld} -32"
5656: ;;
5657: *N32*)
5658: LD="${LD-ld} -n32"
5659: ;;
5660: *64-bit*)
5661: LD="${LD-ld} -64"
5662: ;;
5663: esac
5664: fi
5665: fi
5666: rm -rf conftest*
5667: ;;
5668:
5669: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5670: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5671: # Find out which ABI we are using.
5672: echo 'int i;' > conftest.$ac_ext
1.11 moko 5673: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5674: (eval $ac_compile) 2>&5
1.1 misha 5675: ac_status=$?
1.11 moko 5676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677: (exit $ac_status); }; then
1.8 moko 5678: case `/usr/bin/file conftest.o` in
5679: *32-bit*)
5680: case $host in
5681: x86_64-*kfreebsd*-gnu)
5682: LD="${LD-ld} -m elf_i386_fbsd"
5683: ;;
5684: x86_64-*linux*)
5685: LD="${LD-ld} -m elf_i386"
5686: ;;
5687: ppc64-*linux*|powerpc64-*linux*)
5688: LD="${LD-ld} -m elf32ppclinux"
5689: ;;
5690: s390x-*linux*)
5691: LD="${LD-ld} -m elf_s390"
5692: ;;
5693: sparc64-*linux*)
5694: LD="${LD-ld} -m elf32_sparc"
5695: ;;
5696: esac
1.1 misha 5697: ;;
1.8 moko 5698: *64-bit*)
5699: case $host in
5700: x86_64-*kfreebsd*-gnu)
5701: LD="${LD-ld} -m elf_x86_64_fbsd"
5702: ;;
5703: x86_64-*linux*)
5704: LD="${LD-ld} -m elf_x86_64"
5705: ;;
5706: ppc*-*linux*|powerpc*-*linux*)
5707: LD="${LD-ld} -m elf64ppc"
5708: ;;
5709: s390*-*linux*|s390*-*tpf*)
5710: LD="${LD-ld} -m elf64_s390"
5711: ;;
5712: sparc*-*linux*)
5713: LD="${LD-ld} -m elf64_sparc"
5714: ;;
5715: esac
1.1 misha 5716: ;;
1.8 moko 5717: esac
1.1 misha 5718: fi
1.8 moko 5719: rm -rf conftest*
5720: ;;
1.1 misha 5721:
1.8 moko 5722: *-*-sco3.2v5*)
5723: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5724: SAVE_CFLAGS="$CFLAGS"
5725: CFLAGS="$CFLAGS -belf"
1.11 moko 5726: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5727: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5728: if test "${lt_cv_cc_needs_belf+set}" = set; then
5729: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5730: else
1.8 moko 5731: ac_ext=c
5732: ac_cpp='$CPP $CPPFLAGS'
5733: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736:
1.11 moko 5737: cat >conftest.$ac_ext <<_ACEOF
5738: /* confdefs.h. */
5739: _ACEOF
5740: cat confdefs.h >>conftest.$ac_ext
5741: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 5742: /* end confdefs.h. */
5743:
5744: int
5745: main ()
5746: {
5747:
5748: ;
5749: return 0;
5750: }
5751: _ACEOF
1.11 moko 5752: rm -f conftest.$ac_objext conftest$ac_exeext
5753: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754: (eval $ac_link) 2>conftest.er1
5755: ac_status=$?
5756: grep -v '^ *+' conftest.er1 >conftest.err
5757: rm -f conftest.er1
5758: cat conftest.err >&5
5759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760: (exit $ac_status); } &&
5761: { ac_try='test -z "$ac_c_werror_flag"
5762: || test ! -s conftest.err'
5763: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764: (eval $ac_try) 2>&5
5765: ac_status=$?
5766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767: (exit $ac_status); }; } &&
5768: { ac_try='test -s conftest$ac_exeext'
5769: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770: (eval $ac_try) 2>&5
5771: ac_status=$?
5772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773: (exit $ac_status); }; }; then
1.8 moko 5774: lt_cv_cc_needs_belf=yes
1.1 misha 5775: else
1.11 moko 5776: echo "$as_me: failed program was:" >&5
5777: sed 's/^/| /' conftest.$ac_ext >&5
5778:
5779: lt_cv_cc_needs_belf=no
1.1 misha 5780: fi
1.11 moko 5781: rm -f conftest.err conftest.$ac_objext \
5782: conftest$ac_exeext conftest.$ac_ext
1.8 moko 5783: ac_ext=c
5784: ac_cpp='$CPP $CPPFLAGS'
5785: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 5788:
5789: fi
1.11 moko 5790: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5791: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.8 moko 5792: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5793: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5794: CFLAGS="$SAVE_CFLAGS"
5795: fi
5796: ;;
5797: *-*solaris*)
5798: # Find out which ABI we are using.
5799: echo 'int i;' > conftest.$ac_ext
1.11 moko 5800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 5801: (eval $ac_compile) 2>&5
5802: ac_status=$?
1.11 moko 5803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804: (exit $ac_status); }; then
1.8 moko 5805: case `/usr/bin/file conftest.o` in
5806: *64-bit*)
5807: case $lt_cv_prog_gnu_ld in
5808: yes*)
5809: case $host in
5810: i?86-*-solaris*)
5811: LD="${LD-ld} -m elf_x86_64"
5812: ;;
5813: sparc*-*-solaris*)
5814: LD="${LD-ld} -m elf64_sparc"
5815: ;;
5816: esac
5817: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5818: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5819: LD="${LD-ld}_sol2"
5820: fi
5821: ;;
5822: *)
5823: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5824: LD="${LD-ld} -64"
5825: fi
5826: ;;
5827: esac
5828: ;;
5829: esac
5830: fi
5831: rm -rf conftest*
5832: ;;
5833: esac
1.1 misha 5834:
1.8 moko 5835: need_locks="$enable_libtool_lock"
1.1 misha 5836:
1.8 moko 5837: if test -n "$ac_tool_prefix"; then
5838: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5839: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.11 moko 5840: echo "$as_me:$LINENO: checking for $ac_word" >&5
5841: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5842: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5843: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5844: else
1.8 moko 5845: if test -n "$MANIFEST_TOOL"; then
5846: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5847: else
5848: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849: for as_dir in $PATH
5850: do
5851: IFS=$as_save_IFS
5852: test -z "$as_dir" && as_dir=.
1.11 moko 5853: for ac_exec_ext in '' $ac_executable_extensions; do
5854: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5855: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.11 moko 5856: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5857: break 2
5858: fi
5859: done
1.11 moko 5860: done
1.1 misha 5861:
1.8 moko 5862: fi
5863: fi
5864: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5865: if test -n "$MANIFEST_TOOL"; then
1.11 moko 5866: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5867: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.1 misha 5868: else
1.11 moko 5869: echo "$as_me:$LINENO: result: no" >&5
5870: echo "${ECHO_T}no" >&6
1.1 misha 5871: fi
5872:
5873: fi
1.8 moko 5874: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5875: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5876: # Extract the first word of "mt", so it can be a program name with args.
5877: set dummy mt; ac_word=$2
1.11 moko 5878: echo "$as_me:$LINENO: checking for $ac_word" >&5
5879: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5881: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5882: else
5883: if test -n "$ac_ct_MANIFEST_TOOL"; then
5884: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5885: else
5886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887: for as_dir in $PATH
5888: do
5889: IFS=$as_save_IFS
5890: test -z "$as_dir" && as_dir=.
1.11 moko 5891: for ac_exec_ext in '' $ac_executable_extensions; do
5892: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5893: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.11 moko 5894: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5895: break 2
5896: fi
5897: done
1.11 moko 5898: done
1.1 misha 5899:
1.11 moko 5900: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
1.8 moko 5901: fi
5902: fi
5903: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5904: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.11 moko 5905: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5906: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.8 moko 5907: else
1.11 moko 5908: echo "$as_me:$LINENO: result: no" >&5
5909: echo "${ECHO_T}no" >&6
1.8 moko 5910: fi
5911:
1.11 moko 5912: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
1.8 moko 5913: else
5914: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5915: fi
1.1 misha 5916:
1.8 moko 5917: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.11 moko 5918: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5919: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5920: if test "${lt_cv_path_mainfest_tool+set}" = set; then
5921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5922: else
1.8 moko 5923: lt_cv_path_mainfest_tool=no
5924: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5925: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5926: cat conftest.err >&5
5927: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5928: lt_cv_path_mainfest_tool=yes
5929: fi
5930: rm -f conftest*
5931: fi
1.11 moko 5932: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5933: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
1.8 moko 5934: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5935: MANIFEST_TOOL=:
5936: fi
5937:
5938:
5939:
1.1 misha 5940:
5941:
5942:
1.8 moko 5943: case $host_os in
5944: rhapsody* | darwin*)
5945: if test -n "$ac_tool_prefix"; then
5946: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5947: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.11 moko 5948: echo "$as_me:$LINENO: checking for $ac_word" >&5
5949: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5951: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 5952: else
1.8 moko 5953: if test -n "$DSYMUTIL"; then
5954: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5955: else
5956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957: for as_dir in $PATH
5958: do
5959: IFS=$as_save_IFS
5960: test -z "$as_dir" && as_dir=.
1.11 moko 5961: for ac_exec_ext in '' $ac_executable_extensions; do
5962: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 5963: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.11 moko 5964: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5965: break 2
5966: fi
5967: done
1.11 moko 5968: done
1.1 misha 5969:
5970: fi
1.8 moko 5971: fi
5972: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5973: if test -n "$DSYMUTIL"; then
1.11 moko 5974: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5975: echo "${ECHO_T}$DSYMUTIL" >&6
1.8 moko 5976: else
1.11 moko 5977: echo "$as_me:$LINENO: result: no" >&5
5978: echo "${ECHO_T}no" >&6
1.8 moko 5979: fi
1.1 misha 5980:
5981: fi
1.8 moko 5982: if test -z "$ac_cv_prog_DSYMUTIL"; then
5983: ac_ct_DSYMUTIL=$DSYMUTIL
5984: # Extract the first word of "dsymutil", so it can be a program name with args.
5985: set dummy dsymutil; ac_word=$2
1.11 moko 5986: echo "$as_me:$LINENO: checking for $ac_word" >&5
5987: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5988: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5989: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 5990: else
5991: if test -n "$ac_ct_DSYMUTIL"; then
5992: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5993: else
5994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995: for as_dir in $PATH
5996: do
5997: IFS=$as_save_IFS
5998: test -z "$as_dir" && as_dir=.
1.11 moko 5999: for ac_exec_ext in '' $ac_executable_extensions; do
6000: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6001: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.11 moko 6002: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6003: break 2
6004: fi
6005: done
1.11 moko 6006: done
1.1 misha 6007:
1.11 moko 6008: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
1.8 moko 6009: fi
6010: fi
6011: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6012: if test -n "$ac_ct_DSYMUTIL"; then
1.11 moko 6013: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6014: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.1 misha 6015: else
1.11 moko 6016: echo "$as_me:$LINENO: result: no" >&5
6017: echo "${ECHO_T}no" >&6
1.1 misha 6018: fi
6019:
1.11 moko 6020: DSYMUTIL=$ac_ct_DSYMUTIL
1.1 misha 6021: else
1.8 moko 6022: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 6023: fi
6024:
1.8 moko 6025: if test -n "$ac_tool_prefix"; then
6026: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6027: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.11 moko 6028: echo "$as_me:$LINENO: checking for $ac_word" >&5
6029: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6031: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6032: else
6033: if test -n "$NMEDIT"; then
6034: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6035: else
6036: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037: for as_dir in $PATH
6038: do
6039: IFS=$as_save_IFS
6040: test -z "$as_dir" && as_dir=.
1.11 moko 6041: for ac_exec_ext in '' $ac_executable_extensions; do
6042: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6043: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.11 moko 6044: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6045: break 2
6046: fi
6047: done
1.11 moko 6048: done
1.1 misha 6049:
1.8 moko 6050: fi
6051: fi
6052: NMEDIT=$ac_cv_prog_NMEDIT
6053: if test -n "$NMEDIT"; then
1.11 moko 6054: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6055: echo "${ECHO_T}$NMEDIT" >&6
1.8 moko 6056: else
1.11 moko 6057: echo "$as_me:$LINENO: result: no" >&5
6058: echo "${ECHO_T}no" >&6
1.8 moko 6059: fi
1.1 misha 6060:
1.8 moko 6061: fi
6062: if test -z "$ac_cv_prog_NMEDIT"; then
6063: ac_ct_NMEDIT=$NMEDIT
6064: # Extract the first word of "nmedit", so it can be a program name with args.
6065: set dummy nmedit; ac_word=$2
1.11 moko 6066: echo "$as_me:$LINENO: checking for $ac_word" >&5
6067: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6069: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6070: else
6071: if test -n "$ac_ct_NMEDIT"; then
6072: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 6073: else
1.8 moko 6074: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075: for as_dir in $PATH
6076: do
6077: IFS=$as_save_IFS
6078: test -z "$as_dir" && as_dir=.
1.11 moko 6079: for ac_exec_ext in '' $ac_executable_extensions; do
6080: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6081: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.11 moko 6082: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6083: break 2
6084: fi
6085: done
1.11 moko 6086: done
1.1 misha 6087:
1.11 moko 6088: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
1.8 moko 6089: fi
6090: fi
6091: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6092: if test -n "$ac_ct_NMEDIT"; then
1.11 moko 6093: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6094: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
1.8 moko 6095: else
1.11 moko 6096: echo "$as_me:$LINENO: result: no" >&5
6097: echo "${ECHO_T}no" >&6
1.1 misha 6098: fi
6099:
1.11 moko 6100: NMEDIT=$ac_ct_NMEDIT
1.8 moko 6101: else
6102: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 6103: fi
6104:
1.8 moko 6105: if test -n "$ac_tool_prefix"; then
6106: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6107: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.11 moko 6108: echo "$as_me:$LINENO: checking for $ac_word" >&5
6109: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110: if test "${ac_cv_prog_LIPO+set}" = set; then
6111: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6112: else
6113: if test -n "$LIPO"; then
6114: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6115: else
6116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117: for as_dir in $PATH
6118: do
6119: IFS=$as_save_IFS
6120: test -z "$as_dir" && as_dir=.
1.11 moko 6121: for ac_exec_ext in '' $ac_executable_extensions; do
6122: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6123: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.11 moko 6124: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6125: break 2
6126: fi
6127: done
1.11 moko 6128: done
1.1 misha 6129:
1.8 moko 6130: fi
6131: fi
6132: LIPO=$ac_cv_prog_LIPO
6133: if test -n "$LIPO"; then
1.11 moko 6134: echo "$as_me:$LINENO: result: $LIPO" >&5
6135: echo "${ECHO_T}$LIPO" >&6
1.8 moko 6136: else
1.11 moko 6137: echo "$as_me:$LINENO: result: no" >&5
6138: echo "${ECHO_T}no" >&6
1.8 moko 6139: fi
1.1 misha 6140:
1.8 moko 6141: fi
6142: if test -z "$ac_cv_prog_LIPO"; then
6143: ac_ct_LIPO=$LIPO
6144: # Extract the first word of "lipo", so it can be a program name with args.
6145: set dummy lipo; ac_word=$2
1.11 moko 6146: echo "$as_me:$LINENO: checking for $ac_word" >&5
6147: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6149: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6150: else
6151: if test -n "$ac_ct_LIPO"; then
6152: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6153: else
6154: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155: for as_dir in $PATH
6156: do
6157: IFS=$as_save_IFS
6158: test -z "$as_dir" && as_dir=.
1.11 moko 6159: for ac_exec_ext in '' $ac_executable_extensions; do
6160: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6161: ac_cv_prog_ac_ct_LIPO="lipo"
1.11 moko 6162: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6163: break 2
1.1 misha 6164: fi
1.8 moko 6165: done
1.11 moko 6166: done
1.8 moko 6167:
1.11 moko 6168: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
1.8 moko 6169: fi
6170: fi
6171: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6172: if test -n "$ac_ct_LIPO"; then
1.11 moko 6173: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6174: echo "${ECHO_T}$ac_ct_LIPO" >&6
1.8 moko 6175: else
1.11 moko 6176: echo "$as_me:$LINENO: result: no" >&5
6177: echo "${ECHO_T}no" >&6
1.8 moko 6178: fi
6179:
1.11 moko 6180: LIPO=$ac_ct_LIPO
1.8 moko 6181: else
6182: LIPO="$ac_cv_prog_LIPO"
6183: fi
1.1 misha 6184:
1.8 moko 6185: if test -n "$ac_tool_prefix"; then
6186: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6187: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.11 moko 6188: echo "$as_me:$LINENO: checking for $ac_word" >&5
6189: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6190: if test "${ac_cv_prog_OTOOL+set}" = set; then
6191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6192: else
6193: if test -n "$OTOOL"; then
6194: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6195: else
6196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197: for as_dir in $PATH
6198: do
6199: IFS=$as_save_IFS
6200: test -z "$as_dir" && as_dir=.
1.11 moko 6201: for ac_exec_ext in '' $ac_executable_extensions; do
6202: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6203: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.11 moko 6204: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6205: break 2
6206: fi
6207: done
1.11 moko 6208: done
1.1 misha 6209:
1.8 moko 6210: fi
6211: fi
6212: OTOOL=$ac_cv_prog_OTOOL
6213: if test -n "$OTOOL"; then
1.11 moko 6214: echo "$as_me:$LINENO: result: $OTOOL" >&5
6215: echo "${ECHO_T}$OTOOL" >&6
1.8 moko 6216: else
1.11 moko 6217: echo "$as_me:$LINENO: result: no" >&5
6218: echo "${ECHO_T}no" >&6
1.8 moko 6219: fi
1.1 misha 6220:
1.8 moko 6221: fi
6222: if test -z "$ac_cv_prog_OTOOL"; then
6223: ac_ct_OTOOL=$OTOOL
6224: # Extract the first word of "otool", so it can be a program name with args.
6225: set dummy otool; ac_word=$2
1.11 moko 6226: echo "$as_me:$LINENO: checking for $ac_word" >&5
6227: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6228: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6229: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6230: else
6231: if test -n "$ac_ct_OTOOL"; then
6232: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6233: else
6234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235: for as_dir in $PATH
6236: do
6237: IFS=$as_save_IFS
6238: test -z "$as_dir" && as_dir=.
1.11 moko 6239: for ac_exec_ext in '' $ac_executable_extensions; do
6240: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6241: ac_cv_prog_ac_ct_OTOOL="otool"
1.11 moko 6242: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6243: break 2
6244: fi
6245: done
1.11 moko 6246: done
1.1 misha 6247:
1.11 moko 6248: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
1.8 moko 6249: fi
6250: fi
6251: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6252: if test -n "$ac_ct_OTOOL"; then
1.11 moko 6253: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6254: echo "${ECHO_T}$ac_ct_OTOOL" >&6
1.8 moko 6255: else
1.11 moko 6256: echo "$as_me:$LINENO: result: no" >&5
6257: echo "${ECHO_T}no" >&6
1.8 moko 6258: fi
1.1 misha 6259:
1.11 moko 6260: OTOOL=$ac_ct_OTOOL
1.8 moko 6261: else
6262: OTOOL="$ac_cv_prog_OTOOL"
6263: fi
1.1 misha 6264:
1.8 moko 6265: if test -n "$ac_tool_prefix"; then
6266: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6267: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.11 moko 6268: echo "$as_me:$LINENO: checking for $ac_word" >&5
6269: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6270: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6271: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6272: else
6273: if test -n "$OTOOL64"; then
6274: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6275: else
6276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277: for as_dir in $PATH
6278: do
6279: IFS=$as_save_IFS
6280: test -z "$as_dir" && as_dir=.
1.11 moko 6281: for ac_exec_ext in '' $ac_executable_extensions; do
6282: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6283: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.11 moko 6284: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6285: break 2
6286: fi
6287: done
1.11 moko 6288: done
1.1 misha 6289:
1.8 moko 6290: fi
6291: fi
6292: OTOOL64=$ac_cv_prog_OTOOL64
6293: if test -n "$OTOOL64"; then
1.11 moko 6294: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6295: echo "${ECHO_T}$OTOOL64" >&6
1.8 moko 6296: else
1.11 moko 6297: echo "$as_me:$LINENO: result: no" >&5
6298: echo "${ECHO_T}no" >&6
1.8 moko 6299: fi
1.1 misha 6300:
1.8 moko 6301: fi
6302: if test -z "$ac_cv_prog_OTOOL64"; then
6303: ac_ct_OTOOL64=$OTOOL64
6304: # Extract the first word of "otool64", so it can be a program name with args.
6305: set dummy otool64; ac_word=$2
1.11 moko 6306: echo "$as_me:$LINENO: checking for $ac_word" >&5
6307: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6308: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6310: else
6311: if test -n "$ac_ct_OTOOL64"; then
6312: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6313: else
6314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315: for as_dir in $PATH
6316: do
6317: IFS=$as_save_IFS
6318: test -z "$as_dir" && as_dir=.
1.11 moko 6319: for ac_exec_ext in '' $ac_executable_extensions; do
6320: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.8 moko 6321: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.11 moko 6322: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6323: break 2
6324: fi
6325: done
1.11 moko 6326: done
1.1 misha 6327:
1.11 moko 6328: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
1.8 moko 6329: fi
6330: fi
6331: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6332: if test -n "$ac_ct_OTOOL64"; then
1.11 moko 6333: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6334: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
1.8 moko 6335: else
1.11 moko 6336: echo "$as_me:$LINENO: result: no" >&5
6337: echo "${ECHO_T}no" >&6
1.8 moko 6338: fi
1.1 misha 6339:
1.11 moko 6340: OTOOL64=$ac_ct_OTOOL64
1.8 moko 6341: else
6342: OTOOL64="$ac_cv_prog_OTOOL64"
6343: fi
1.1 misha 6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
1.11 moko 6371: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6372: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6373: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6374: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6375: else
6376: lt_cv_apple_cc_single_mod=no
6377: if test -z "${LT_MULTI_MODULE}"; then
6378: # By default we will add the -single_module flag. You can override
6379: # by either setting the environment variable LT_MULTI_MODULE
6380: # non-empty at configure time, or by adding -multi_module to the
6381: # link flags.
6382: rm -rf libconftest.dylib*
6383: echo "int foo(void){return 1;}" > conftest.c
6384: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6385: -dynamiclib -Wl,-single_module conftest.c" >&5
6386: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6387: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6388: _lt_result=$?
6389: # If there is a non-empty error log, and "single_module"
6390: # appears in it, assume the flag caused a linker warning
6391: if test -s conftest.err && $GREP single_module conftest.err; then
6392: cat conftest.err >&5
6393: # Otherwise, if the output was created with a 0 exit code from
6394: # the compiler, it worked.
6395: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6396: lt_cv_apple_cc_single_mod=yes
6397: else
6398: cat conftest.err >&5
6399: fi
6400: rm -rf libconftest.dylib*
6401: rm -f conftest.*
6402: fi
6403: fi
1.11 moko 6404: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6405: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.1 misha 6406:
1.11 moko 6407: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6408: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6409: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6410: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6411: else
6412: lt_cv_ld_exported_symbols_list=no
6413: save_LDFLAGS=$LDFLAGS
6414: echo "_main" > conftest.sym
6415: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.11 moko 6416: cat >conftest.$ac_ext <<_ACEOF
6417: /* confdefs.h. */
6418: _ACEOF
6419: cat confdefs.h >>conftest.$ac_ext
6420: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6421: /* end confdefs.h. */
1.1 misha 6422:
1.8 moko 6423: int
6424: main ()
6425: {
1.1 misha 6426:
1.8 moko 6427: ;
6428: return 0;
6429: }
6430: _ACEOF
1.11 moko 6431: rm -f conftest.$ac_objext conftest$ac_exeext
6432: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433: (eval $ac_link) 2>conftest.er1
6434: ac_status=$?
6435: grep -v '^ *+' conftest.er1 >conftest.err
6436: rm -f conftest.er1
6437: cat conftest.err >&5
6438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439: (exit $ac_status); } &&
6440: { ac_try='test -z "$ac_c_werror_flag"
6441: || test ! -s conftest.err'
6442: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443: (eval $ac_try) 2>&5
6444: ac_status=$?
6445: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446: (exit $ac_status); }; } &&
6447: { ac_try='test -s conftest$ac_exeext'
6448: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449: (eval $ac_try) 2>&5
6450: ac_status=$?
6451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452: (exit $ac_status); }; }; then
1.8 moko 6453: lt_cv_ld_exported_symbols_list=yes
6454: else
1.11 moko 6455: echo "$as_me: failed program was:" >&5
6456: sed 's/^/| /' conftest.$ac_ext >&5
6457:
6458: lt_cv_ld_exported_symbols_list=no
1.8 moko 6459: fi
1.11 moko 6460: rm -f conftest.err conftest.$ac_objext \
6461: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6462: LDFLAGS="$save_LDFLAGS"
1.1 misha 6463:
1.8 moko 6464: fi
1.11 moko 6465: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6466: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.1 misha 6467:
1.11 moko 6468: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6469: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6470: if test "${lt_cv_ld_force_load+set}" = set; then
6471: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6472: else
6473: lt_cv_ld_force_load=no
6474: cat > conftest.c << _LT_EOF
6475: int forced_loaded() { return 2;}
6476: _LT_EOF
6477: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6478: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6479: echo "$AR cru libconftest.a conftest.o" >&5
6480: $AR cru libconftest.a conftest.o 2>&5
6481: echo "$RANLIB libconftest.a" >&5
6482: $RANLIB libconftest.a 2>&5
6483: cat > conftest.c << _LT_EOF
6484: int main() { return 0;}
6485: _LT_EOF
6486: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6487: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6488: _lt_result=$?
6489: if test -s conftest.err && $GREP force_load conftest.err; then
6490: cat conftest.err >&5
6491: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6492: lt_cv_ld_force_load=yes
6493: else
6494: cat conftest.err >&5
6495: fi
6496: rm -f conftest.err libconftest.a conftest conftest.c
6497: rm -rf conftest.dSYM
1.1 misha 6498:
1.8 moko 6499: fi
1.11 moko 6500: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6501: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
1.8 moko 6502: case $host_os in
6503: rhapsody* | darwin1.[012])
6504: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6505: darwin1.*)
6506: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6507: darwin*) # darwin 5.x on
6508: # if running on 10.5 or later, the deployment target defaults
6509: # to the OS version, if on x86, and 10.4, the deployment
6510: # target defaults to 10.4. Don't you love it?
6511: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6512: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6513: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6514: 10.[012]*)
6515: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6516: 10.*)
6517: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6518: esac
1.1 misha 6519: ;;
1.8 moko 6520: esac
6521: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6522: _lt_dar_single_mod='$single_module'
6523: fi
6524: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6525: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6526: else
6527: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 6528: fi
1.8 moko 6529: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6530: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 6531: else
1.8 moko 6532: _lt_dsymutil=
1.1 misha 6533: fi
6534: ;;
1.8 moko 6535: esac
1.1 misha 6536:
1.8 moko 6537: ac_ext=c
6538: ac_cpp='$CPP $CPPFLAGS'
6539: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6540: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 moko 6542: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6543: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.8 moko 6544: # On Suns, sometimes $CPP names a directory.
6545: if test -n "$CPP" && test -d "$CPP"; then
6546: CPP=
6547: fi
6548: if test -z "$CPP"; then
1.11 moko 6549: if test "${ac_cv_prog_CPP+set}" = set; then
6550: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6551: else
6552: # Double quotes because CPP needs to be expanded
6553: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6554: do
6555: ac_preproc_ok=false
6556: for ac_c_preproc_warn_flag in '' yes
6557: do
6558: # Use a header file that comes with gcc, so configuring glibc
6559: # with a fresh cross-compiler works.
6560: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6561: # <limits.h> exists even on freestanding compilers.
6562: # On the NeXT, cc -E runs the code through the compiler's parser,
6563: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6564: cat >conftest.$ac_ext <<_ACEOF
6565: /* confdefs.h. */
6566: _ACEOF
6567: cat confdefs.h >>conftest.$ac_ext
6568: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6569: /* end confdefs.h. */
6570: #ifdef __STDC__
6571: # include <limits.h>
6572: #else
6573: # include <assert.h>
6574: #endif
6575: Syntax error
6576: _ACEOF
1.11 moko 6577: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6578: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6579: ac_status=$?
6580: grep -v '^ *+' conftest.er1 >conftest.err
6581: rm -f conftest.er1
6582: cat conftest.err >&5
6583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584: (exit $ac_status); } >/dev/null; then
6585: if test -s conftest.err; then
6586: ac_cpp_err=$ac_c_preproc_warn_flag
6587: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6588: else
6589: ac_cpp_err=
6590: fi
6591: else
6592: ac_cpp_err=yes
6593: fi
6594: if test -z "$ac_cpp_err"; then
6595: :
6596: else
6597: echo "$as_me: failed program was:" >&5
6598: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6599:
1.8 moko 6600: # Broken: fails on valid input.
6601: continue
6602: fi
1.11 moko 6603: rm -f conftest.err conftest.$ac_ext
1.1 misha 6604:
1.11 moko 6605: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6606: # can be detected and how.
1.11 moko 6607: cat >conftest.$ac_ext <<_ACEOF
6608: /* confdefs.h. */
6609: _ACEOF
6610: cat confdefs.h >>conftest.$ac_ext
6611: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6612: /* end confdefs.h. */
6613: #include <ac_nonexistent.h>
6614: _ACEOF
1.11 moko 6615: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6616: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6617: ac_status=$?
6618: grep -v '^ *+' conftest.er1 >conftest.err
6619: rm -f conftest.er1
6620: cat conftest.err >&5
6621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622: (exit $ac_status); } >/dev/null; then
6623: if test -s conftest.err; then
6624: ac_cpp_err=$ac_c_preproc_warn_flag
6625: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6626: else
6627: ac_cpp_err=
6628: fi
6629: else
6630: ac_cpp_err=yes
6631: fi
6632: if test -z "$ac_cpp_err"; then
1.8 moko 6633: # Broken: success on invalid input.
6634: continue
6635: else
1.11 moko 6636: echo "$as_me: failed program was:" >&5
6637: sed 's/^/| /' conftest.$ac_ext >&5
6638:
1.8 moko 6639: # Passes both tests.
6640: ac_preproc_ok=:
6641: break
1.1 misha 6642: fi
1.11 moko 6643: rm -f conftest.err conftest.$ac_ext
1.1 misha 6644:
1.8 moko 6645: done
6646: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6647: rm -f conftest.err conftest.$ac_ext
6648: if $ac_preproc_ok; then
1.8 moko 6649: break
1.1 misha 6650: fi
6651:
1.8 moko 6652: done
6653: ac_cv_prog_CPP=$CPP
1.1 misha 6654:
1.8 moko 6655: fi
6656: CPP=$ac_cv_prog_CPP
6657: else
6658: ac_cv_prog_CPP=$CPP
6659: fi
1.11 moko 6660: echo "$as_me:$LINENO: result: $CPP" >&5
6661: echo "${ECHO_T}$CPP" >&6
1.8 moko 6662: ac_preproc_ok=false
6663: for ac_c_preproc_warn_flag in '' yes
6664: do
6665: # Use a header file that comes with gcc, so configuring glibc
6666: # with a fresh cross-compiler works.
6667: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6668: # <limits.h> exists even on freestanding compilers.
6669: # On the NeXT, cc -E runs the code through the compiler's parser,
6670: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 6671: cat >conftest.$ac_ext <<_ACEOF
6672: /* confdefs.h. */
6673: _ACEOF
6674: cat confdefs.h >>conftest.$ac_ext
6675: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6676: /* end confdefs.h. */
6677: #ifdef __STDC__
6678: # include <limits.h>
6679: #else
6680: # include <assert.h>
6681: #endif
6682: Syntax error
6683: _ACEOF
1.11 moko 6684: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686: ac_status=$?
6687: grep -v '^ *+' conftest.er1 >conftest.err
6688: rm -f conftest.er1
6689: cat conftest.err >&5
6690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691: (exit $ac_status); } >/dev/null; then
6692: if test -s conftest.err; then
6693: ac_cpp_err=$ac_c_preproc_warn_flag
6694: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695: else
6696: ac_cpp_err=
6697: fi
6698: else
6699: ac_cpp_err=yes
6700: fi
6701: if test -z "$ac_cpp_err"; then
6702: :
6703: else
6704: echo "$as_me: failed program was:" >&5
6705: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6706:
1.8 moko 6707: # Broken: fails on valid input.
6708: continue
6709: fi
1.11 moko 6710: rm -f conftest.err conftest.$ac_ext
1.1 misha 6711:
1.11 moko 6712: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 6713: # can be detected and how.
1.11 moko 6714: cat >conftest.$ac_ext <<_ACEOF
6715: /* confdefs.h. */
6716: _ACEOF
6717: cat confdefs.h >>conftest.$ac_ext
6718: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6719: /* end confdefs.h. */
6720: #include <ac_nonexistent.h>
6721: _ACEOF
1.11 moko 6722: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6723: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6724: ac_status=$?
6725: grep -v '^ *+' conftest.er1 >conftest.err
6726: rm -f conftest.er1
6727: cat conftest.err >&5
6728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729: (exit $ac_status); } >/dev/null; then
6730: if test -s conftest.err; then
6731: ac_cpp_err=$ac_c_preproc_warn_flag
6732: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6733: else
6734: ac_cpp_err=
6735: fi
6736: else
6737: ac_cpp_err=yes
6738: fi
6739: if test -z "$ac_cpp_err"; then
1.8 moko 6740: # Broken: success on invalid input.
6741: continue
6742: else
1.11 moko 6743: echo "$as_me: failed program was:" >&5
6744: sed 's/^/| /' conftest.$ac_ext >&5
6745:
1.8 moko 6746: # Passes both tests.
6747: ac_preproc_ok=:
6748: break
6749: fi
1.11 moko 6750: rm -f conftest.err conftest.$ac_ext
1.8 moko 6751:
6752: done
6753: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 6754: rm -f conftest.err conftest.$ac_ext
6755: if $ac_preproc_ok; then
6756: :
1.8 moko 6757: else
1.11 moko 6758: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6759: See \`config.log' for more details." >&5
6760: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6761: See \`config.log' for more details." >&2;}
6762: { (exit 1); exit 1; }; }
1.8 moko 6763: fi
1.1 misha 6764:
1.8 moko 6765: ac_ext=c
6766: ac_cpp='$CPP $CPPFLAGS'
6767: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6770:
6771:
1.11 moko 6772: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6773: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6774: if test "${ac_cv_header_stdc+set}" = set; then
6775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 6776: else
1.11 moko 6777: cat >conftest.$ac_ext <<_ACEOF
6778: /* confdefs.h. */
6779: _ACEOF
6780: cat confdefs.h >>conftest.$ac_ext
6781: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6782: /* end confdefs.h. */
6783: #include <stdlib.h>
6784: #include <stdarg.h>
6785: #include <string.h>
6786: #include <float.h>
1.1 misha 6787:
1.8 moko 6788: int
6789: main ()
6790: {
1.1 misha 6791:
1.8 moko 6792: ;
6793: return 0;
6794: }
6795: _ACEOF
1.11 moko 6796: rm -f conftest.$ac_objext
6797: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798: (eval $ac_compile) 2>conftest.er1
6799: ac_status=$?
6800: grep -v '^ *+' conftest.er1 >conftest.err
6801: rm -f conftest.er1
6802: cat conftest.err >&5
6803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804: (exit $ac_status); } &&
6805: { ac_try='test -z "$ac_c_werror_flag"
6806: || test ! -s conftest.err'
6807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808: (eval $ac_try) 2>&5
6809: ac_status=$?
6810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811: (exit $ac_status); }; } &&
6812: { ac_try='test -s conftest.$ac_objext'
6813: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814: (eval $ac_try) 2>&5
6815: ac_status=$?
6816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817: (exit $ac_status); }; }; then
1.8 moko 6818: ac_cv_header_stdc=yes
6819: else
1.11 moko 6820: echo "$as_me: failed program was:" >&5
6821: sed 's/^/| /' conftest.$ac_ext >&5
6822:
6823: ac_cv_header_stdc=no
1.8 moko 6824: fi
1.11 moko 6825: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6826:
1.8 moko 6827: if test $ac_cv_header_stdc = yes; then
6828: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.11 moko 6829: cat >conftest.$ac_ext <<_ACEOF
6830: /* confdefs.h. */
6831: _ACEOF
6832: cat confdefs.h >>conftest.$ac_ext
6833: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6834: /* end confdefs.h. */
6835: #include <string.h>
6836:
6837: _ACEOF
6838: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6839: $EGREP "memchr" >/dev/null 2>&1; then
6840: :
1.8 moko 6841: else
6842: ac_cv_header_stdc=no
6843: fi
6844: rm -f conftest*
6845:
6846: fi
6847:
6848: if test $ac_cv_header_stdc = yes; then
6849: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.11 moko 6850: cat >conftest.$ac_ext <<_ACEOF
6851: /* confdefs.h. */
6852: _ACEOF
6853: cat confdefs.h >>conftest.$ac_ext
6854: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6855: /* end confdefs.h. */
6856: #include <stdlib.h>
6857:
6858: _ACEOF
6859: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.11 moko 6860: $EGREP "free" >/dev/null 2>&1; then
6861: :
1.8 moko 6862: else
6863: ac_cv_header_stdc=no
6864: fi
6865: rm -f conftest*
6866:
6867: fi
1.1 misha 6868:
1.8 moko 6869: if test $ac_cv_header_stdc = yes; then
6870: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.11 moko 6871: if test "$cross_compiling" = yes; then
1.8 moko 6872: :
6873: else
1.11 moko 6874: cat >conftest.$ac_ext <<_ACEOF
6875: /* confdefs.h. */
6876: _ACEOF
6877: cat confdefs.h >>conftest.$ac_ext
6878: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 6879: /* end confdefs.h. */
6880: #include <ctype.h>
6881: #if ((' ' & 0x0FF) == 0x020)
6882: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6883: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6884: #else
6885: # define ISLOWER(c) \
6886: (('a' <= (c) && (c) <= 'i') \
6887: || ('j' <= (c) && (c) <= 'r') \
6888: || ('s' <= (c) && (c) <= 'z'))
6889: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890: #endif
1.1 misha 6891:
1.8 moko 6892: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6893: int
6894: main ()
6895: {
6896: int i;
6897: for (i = 0; i < 256; i++)
6898: if (XOR (islower (i), ISLOWER (i))
6899: || toupper (i) != TOUPPER (i))
1.11 moko 6900: exit(2);
6901: exit (0);
1.8 moko 6902: }
6903: _ACEOF
1.11 moko 6904: rm -f conftest$ac_exeext
6905: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6906: (eval $ac_link) 2>&5
6907: ac_status=$?
6908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911: (eval $ac_try) 2>&5
6912: ac_status=$?
6913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914: (exit $ac_status); }; }; then
6915: :
6916: else
6917: echo "$as_me: program exited with status $ac_status" >&5
6918: echo "$as_me: failed program was:" >&5
6919: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 6920:
1.11 moko 6921: ( exit $ac_status )
6922: ac_cv_header_stdc=no
1.8 moko 6923: fi
1.11 moko 6924: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.8 moko 6925: fi
6926: fi
6927: fi
1.11 moko 6928: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6929: echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.8 moko 6930: if test $ac_cv_header_stdc = yes; then
1.1 misha 6931:
1.11 moko 6932: cat >>confdefs.h <<\_ACEOF
6933: #define STDC_HEADERS 1
6934: _ACEOF
1.1 misha 6935:
1.8 moko 6936: fi
1.1 misha 6937:
1.8 moko 6938: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1 misha 6939:
6940:
6941:
6942:
6943:
6944:
1.11 moko 6945:
6946:
6947:
6948: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6949: inttypes.h stdint.h unistd.h
6950: do
6951: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6952: echo "$as_me:$LINENO: checking for $ac_header" >&5
6953: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6954: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6955: echo $ECHO_N "(cached) $ECHO_C" >&6
6956: else
6957: cat >conftest.$ac_ext <<_ACEOF
6958: /* confdefs.h. */
6959: _ACEOF
6960: cat confdefs.h >>conftest.$ac_ext
6961: cat >>conftest.$ac_ext <<_ACEOF
6962: /* end confdefs.h. */
6963: $ac_includes_default
6964:
6965: #include <$ac_header>
6966: _ACEOF
6967: rm -f conftest.$ac_objext
6968: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969: (eval $ac_compile) 2>conftest.er1
6970: ac_status=$?
6971: grep -v '^ *+' conftest.er1 >conftest.err
6972: rm -f conftest.er1
6973: cat conftest.err >&5
6974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975: (exit $ac_status); } &&
6976: { ac_try='test -z "$ac_c_werror_flag"
6977: || test ! -s conftest.err'
6978: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979: (eval $ac_try) 2>&5
6980: ac_status=$?
6981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982: (exit $ac_status); }; } &&
6983: { ac_try='test -s conftest.$ac_objext'
6984: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985: (eval $ac_try) 2>&5
6986: ac_status=$?
6987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988: (exit $ac_status); }; }; then
6989: eval "$as_ac_Header=yes"
6990: else
6991: echo "$as_me: failed program was:" >&5
6992: sed 's/^/| /' conftest.$ac_ext >&5
6993:
6994: eval "$as_ac_Header=no"
6995: fi
6996: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997: fi
6998: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6999: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7000: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7001: cat >>confdefs.h <<_ACEOF
7002: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7003: _ACEOF
7004:
7005: fi
7006:
7007: done
7008:
7009:
7010:
7011: for ac_header in dlfcn.h
7012: do
7013: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014: echo "$as_me:$LINENO: checking for $ac_header" >&5
7015: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7017: echo $ECHO_N "(cached) $ECHO_C" >&6
7018: else
7019: cat >conftest.$ac_ext <<_ACEOF
7020: /* confdefs.h. */
7021: _ACEOF
7022: cat confdefs.h >>conftest.$ac_ext
7023: cat >>conftest.$ac_ext <<_ACEOF
7024: /* end confdefs.h. */
7025: $ac_includes_default
7026:
7027: #include <$ac_header>
7028: _ACEOF
7029: rm -f conftest.$ac_objext
7030: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031: (eval $ac_compile) 2>conftest.er1
7032: ac_status=$?
7033: grep -v '^ *+' conftest.er1 >conftest.err
7034: rm -f conftest.er1
7035: cat conftest.err >&5
7036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037: (exit $ac_status); } &&
7038: { ac_try='test -z "$ac_c_werror_flag"
7039: || test ! -s conftest.err'
7040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041: (eval $ac_try) 2>&5
7042: ac_status=$?
7043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044: (exit $ac_status); }; } &&
7045: { ac_try='test -s conftest.$ac_objext'
7046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047: (eval $ac_try) 2>&5
7048: ac_status=$?
7049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050: (exit $ac_status); }; }; then
7051: eval "$as_ac_Header=yes"
7052: else
7053: echo "$as_me: failed program was:" >&5
7054: sed 's/^/| /' conftest.$ac_ext >&5
7055:
7056: eval "$as_ac_Header=no"
7057: fi
7058: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059: fi
7060: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063: cat >>confdefs.h <<_ACEOF
7064: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065: _ACEOF
7066:
7067: fi
7068:
7069: done
1.1 misha 7070:
7071:
7072:
1.8 moko 7073:
7074: func_stripname_cnf ()
1.1 misha 7075: {
1.8 moko 7076: case ${2} in
7077: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7078: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7079: esac
7080: } # func_stripname_cnf
7081:
7082:
7083:
7084:
7085:
7086: # Set options
1.20 moko 7087: # Check whether --enable-static or --disable-static was given.
7088: if test "${enable_static+set}" = set; then
7089: enableval="$enable_static"
7090: p=${PACKAGE-default}
7091: case $enableval in
7092: yes) enable_static=yes ;;
7093: no) enable_static=no ;;
7094: *)
7095: enable_static=no
7096: # Look at the argument we got. We use all the common list separators.
7097: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7098: for pkg in $enableval; do
7099: IFS="$lt_save_ifs"
7100: if test "X$pkg" = "X$p"; then
7101: enable_static=yes
7102: fi
7103: done
7104: IFS="$lt_save_ifs"
7105: ;;
7106: esac
7107: else
7108: enable_static=no
7109: fi;
7110:
7111:
7112:
7113:
7114:
7115:
1.8 moko 7116: enable_dlopen=yes
1.13 moko 7117: enable_win32_dll=yes
1.8 moko 7118:
1.13 moko 7119: case $host in
7120: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7121: if test -n "$ac_tool_prefix"; then
7122: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7123: set dummy ${ac_tool_prefix}as; ac_word=$2
7124: echo "$as_me:$LINENO: checking for $ac_word" >&5
7125: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126: if test "${ac_cv_prog_AS+set}" = set; then
7127: echo $ECHO_N "(cached) $ECHO_C" >&6
7128: else
7129: if test -n "$AS"; then
7130: ac_cv_prog_AS="$AS" # Let the user override the test.
7131: else
7132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133: for as_dir in $PATH
7134: do
7135: IFS=$as_save_IFS
7136: test -z "$as_dir" && as_dir=.
7137: for ac_exec_ext in '' $ac_executable_extensions; do
7138: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139: ac_cv_prog_AS="${ac_tool_prefix}as"
7140: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141: break 2
7142: fi
7143: done
7144: done
1.8 moko 7145:
1.13 moko 7146: fi
7147: fi
7148: AS=$ac_cv_prog_AS
7149: if test -n "$AS"; then
7150: echo "$as_me:$LINENO: result: $AS" >&5
7151: echo "${ECHO_T}$AS" >&6
7152: else
7153: echo "$as_me:$LINENO: result: no" >&5
7154: echo "${ECHO_T}no" >&6
7155: fi
1.8 moko 7156:
1.13 moko 7157: fi
7158: if test -z "$ac_cv_prog_AS"; then
7159: ac_ct_AS=$AS
7160: # Extract the first word of "as", so it can be a program name with args.
7161: set dummy as; ac_word=$2
7162: echo "$as_me:$LINENO: checking for $ac_word" >&5
7163: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7165: echo $ECHO_N "(cached) $ECHO_C" >&6
7166: else
7167: if test -n "$ac_ct_AS"; then
7168: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7169: else
7170: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171: for as_dir in $PATH
7172: do
7173: IFS=$as_save_IFS
7174: test -z "$as_dir" && as_dir=.
7175: for ac_exec_ext in '' $ac_executable_extensions; do
7176: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177: ac_cv_prog_ac_ct_AS="as"
7178: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179: break 2
7180: fi
7181: done
7182: done
1.8 moko 7183:
1.13 moko 7184: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7185: fi
7186: fi
7187: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7188: if test -n "$ac_ct_AS"; then
7189: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7190: echo "${ECHO_T}$ac_ct_AS" >&6
7191: else
7192: echo "$as_me:$LINENO: result: no" >&5
7193: echo "${ECHO_T}no" >&6
7194: fi
1.8 moko 7195:
1.13 moko 7196: AS=$ac_ct_AS
7197: else
7198: AS="$ac_cv_prog_AS"
7199: fi
1.1 misha 7200:
1.13 moko 7201: if test -n "$ac_tool_prefix"; then
7202: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7203: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7204: echo "$as_me:$LINENO: checking for $ac_word" >&5
7205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7206: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7207: echo $ECHO_N "(cached) $ECHO_C" >&6
7208: else
7209: if test -n "$DLLTOOL"; then
7210: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.1 misha 7211: else
1.13 moko 7212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213: for as_dir in $PATH
7214: do
7215: IFS=$as_save_IFS
7216: test -z "$as_dir" && as_dir=.
7217: for ac_exec_ext in '' $ac_executable_extensions; do
7218: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7220: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221: break 2
7222: fi
7223: done
7224: done
7225:
7226: fi
7227: fi
7228: DLLTOOL=$ac_cv_prog_DLLTOOL
7229: if test -n "$DLLTOOL"; then
7230: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7231: echo "${ECHO_T}$DLLTOOL" >&6
7232: else
7233: echo "$as_me:$LINENO: result: no" >&5
7234: echo "${ECHO_T}no" >&6
7235: fi
7236:
7237: fi
7238: if test -z "$ac_cv_prog_DLLTOOL"; then
7239: ac_ct_DLLTOOL=$DLLTOOL
7240: # Extract the first word of "dlltool", so it can be a program name with args.
7241: set dummy dlltool; ac_word=$2
7242: echo "$as_me:$LINENO: checking for $ac_word" >&5
7243: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7245: echo $ECHO_N "(cached) $ECHO_C" >&6
7246: else
7247: if test -n "$ac_ct_DLLTOOL"; then
7248: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7249: else
7250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251: for as_dir in $PATH
7252: do
7253: IFS=$as_save_IFS
7254: test -z "$as_dir" && as_dir=.
7255: for ac_exec_ext in '' $ac_executable_extensions; do
7256: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7258: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259: break 2
7260: fi
7261: done
7262: done
7263:
7264: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7265: fi
7266: fi
7267: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7268: if test -n "$ac_ct_DLLTOOL"; then
7269: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7270: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7271: else
7272: echo "$as_me:$LINENO: result: no" >&5
7273: echo "${ECHO_T}no" >&6
7274: fi
7275:
7276: DLLTOOL=$ac_ct_DLLTOOL
7277: else
7278: DLLTOOL="$ac_cv_prog_DLLTOOL"
7279: fi
7280:
7281: if test -n "$ac_tool_prefix"; then
7282: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7283: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7284: echo "$as_me:$LINENO: checking for $ac_word" >&5
7285: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7287: echo $ECHO_N "(cached) $ECHO_C" >&6
7288: else
7289: if test -n "$OBJDUMP"; then
7290: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7291: else
7292: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293: for as_dir in $PATH
7294: do
7295: IFS=$as_save_IFS
7296: test -z "$as_dir" && as_dir=.
7297: for ac_exec_ext in '' $ac_executable_extensions; do
7298: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7300: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301: break 2
7302: fi
7303: done
7304: done
7305:
7306: fi
7307: fi
7308: OBJDUMP=$ac_cv_prog_OBJDUMP
7309: if test -n "$OBJDUMP"; then
7310: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7311: echo "${ECHO_T}$OBJDUMP" >&6
7312: else
7313: echo "$as_me:$LINENO: result: no" >&5
7314: echo "${ECHO_T}no" >&6
7315: fi
7316:
7317: fi
7318: if test -z "$ac_cv_prog_OBJDUMP"; then
7319: ac_ct_OBJDUMP=$OBJDUMP
7320: # Extract the first word of "objdump", so it can be a program name with args.
7321: set dummy objdump; ac_word=$2
7322: echo "$as_me:$LINENO: checking for $ac_word" >&5
7323: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7325: echo $ECHO_N "(cached) $ECHO_C" >&6
7326: else
7327: if test -n "$ac_ct_OBJDUMP"; then
7328: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7329: else
7330: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331: for as_dir in $PATH
7332: do
7333: IFS=$as_save_IFS
7334: test -z "$as_dir" && as_dir=.
7335: for ac_exec_ext in '' $ac_executable_extensions; do
7336: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7338: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339: break 2
7340: fi
7341: done
7342: done
7343:
7344: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7345: fi
7346: fi
7347: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7348: if test -n "$ac_ct_OBJDUMP"; then
7349: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7350: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7351: else
7352: echo "$as_me:$LINENO: result: no" >&5
7353: echo "${ECHO_T}no" >&6
7354: fi
7355:
7356: OBJDUMP=$ac_ct_OBJDUMP
7357: else
7358: OBJDUMP="$ac_cv_prog_OBJDUMP"
7359: fi
7360:
7361: ;;
7362: esac
7363:
7364: test -z "$AS" && AS=as
7365:
7366:
7367:
7368:
7369:
7370: test -z "$DLLTOOL" && DLLTOOL=dlltool
7371:
7372:
7373:
7374:
7375:
7376: test -z "$OBJDUMP" && OBJDUMP=objdump
7377:
7378:
7379:
7380:
7381:
7382:
7383:
7384:
7385:
7386: # Check whether --enable-shared or --disable-shared was given.
7387: if test "${enable_shared+set}" = set; then
7388: enableval="$enable_shared"
7389: p=${PACKAGE-default}
7390: case $enableval in
7391: yes) enable_shared=yes ;;
7392: no) enable_shared=no ;;
7393: *)
7394: enable_shared=no
7395: # Look at the argument we got. We use all the common list separators.
7396: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397: for pkg in $enableval; do
7398: IFS="$lt_save_ifs"
7399: if test "X$pkg" = "X$p"; then
7400: enable_shared=yes
7401: fi
7402: done
7403: IFS="$lt_save_ifs"
7404: ;;
7405: esac
7406: else
7407: enable_shared=yes
7408: fi;
1.8 moko 7409:
7410:
7411:
7412:
7413:
7414:
7415:
1.1 misha 7416:
1.8 moko 7417:
7418:
1.11 moko 7419: # Check whether --with-pic or --without-pic was given.
7420: if test "${with_pic+set}" = set; then
7421: withval="$with_pic"
7422: lt_p=${PACKAGE-default}
1.8 moko 7423: case $withval in
7424: yes|no) pic_mode=$withval ;;
7425: *)
7426: pic_mode=default
7427: # Look at the argument we got. We use all the common list separators.
7428: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7429: for lt_pkg in $withval; do
7430: IFS="$lt_save_ifs"
7431: if test "X$lt_pkg" = "X$lt_p"; then
7432: pic_mode=yes
7433: fi
7434: done
7435: IFS="$lt_save_ifs"
7436: ;;
7437: esac
1.1 misha 7438: else
1.8 moko 7439: pic_mode=default
1.11 moko 7440: fi;
1.8 moko 7441:
7442: test -z "$pic_mode" && pic_mode=default
7443:
7444:
7445:
7446:
7447:
7448:
1.1 misha 7449:
1.11 moko 7450: # Check whether --enable-fast-install or --disable-fast-install was given.
7451: if test "${enable_fast_install+set}" = set; then
7452: enableval="$enable_fast_install"
7453: p=${PACKAGE-default}
1.8 moko 7454: case $enableval in
7455: yes) enable_fast_install=yes ;;
7456: no) enable_fast_install=no ;;
7457: *)
7458: enable_fast_install=no
7459: # Look at the argument we got. We use all the common list separators.
7460: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7461: for pkg in $enableval; do
7462: IFS="$lt_save_ifs"
7463: if test "X$pkg" = "X$p"; then
7464: enable_fast_install=yes
7465: fi
7466: done
7467: IFS="$lt_save_ifs"
7468: ;;
7469: esac
1.1 misha 7470: else
1.8 moko 7471: enable_fast_install=yes
1.11 moko 7472: fi;
1.8 moko 7473:
7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481:
7482:
7483: # This can be used to rebuild libtool when needed
7484: LIBTOOL_DEPS="$ltmain"
7485:
7486: # Always use our own libtool.
7487: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7488:
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518: test -z "$LN_S" && LN_S="ln -s"
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
1.1 misha 7532:
1.8 moko 7533: if test -n "${ZSH_VERSION+set}" ; then
7534: setopt NO_GLOB_SUBST
1.1 misha 7535: fi
1.8 moko 7536:
1.11 moko 7537: echo "$as_me:$LINENO: checking for objdir" >&5
7538: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7539: if test "${lt_cv_objdir+set}" = set; then
7540: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7541: else
7542: rm -f .libs 2>/dev/null
7543: mkdir .libs 2>/dev/null
7544: if test -d .libs; then
7545: lt_cv_objdir=.libs
7546: else
7547: # MS-DOS does not allow filenames that begin with a dot.
7548: lt_cv_objdir=_libs
1.1 misha 7549: fi
1.8 moko 7550: rmdir .libs 2>/dev/null
7551: fi
1.11 moko 7552: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7553: echo "${ECHO_T}$lt_cv_objdir" >&6
1.8 moko 7554: objdir=$lt_cv_objdir
1.1 misha 7555:
7556:
7557:
7558:
7559:
1.8 moko 7560: cat >>confdefs.h <<_ACEOF
7561: #define LT_OBJDIR "$lt_cv_objdir/"
7562: _ACEOF
1.1 misha 7563:
7564:
7565:
7566:
1.8 moko 7567: case $host_os in
7568: aix3*)
7569: # AIX sometimes has problems with the GCC collect2 program. For some
7570: # reason, if we set the COLLECT_NAMES environment variable, the problems
7571: # vanish in a puff of smoke.
7572: if test "X${COLLECT_NAMES+set}" != Xset; then
7573: COLLECT_NAMES=
7574: export COLLECT_NAMES
7575: fi
7576: ;;
7577: esac
1.1 misha 7578:
1.8 moko 7579: # Global variables:
7580: ofile=libtool
7581: can_build_shared=yes
1.1 misha 7582:
1.8 moko 7583: # All known linkers require a `.a' archive for static linking (except MSVC,
7584: # which needs '.lib').
7585: libext=a
1.1 misha 7586:
1.8 moko 7587: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 7588:
1.8 moko 7589: old_CC="$CC"
7590: old_CFLAGS="$CFLAGS"
1.1 misha 7591:
1.8 moko 7592: # Set sane defaults for various variables
7593: test -z "$CC" && CC=cc
7594: test -z "$LTCC" && LTCC=$CC
7595: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7596: test -z "$LD" && LD=ld
7597: test -z "$ac_objext" && ac_objext=o
1.1 misha 7598:
1.8 moko 7599: for cc_temp in $compiler""; do
7600: case $cc_temp in
7601: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7602: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7603: \-*) ;;
7604: *) break;;
1.1 misha 7605: esac
1.8 moko 7606: done
7607: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 7608:
7609:
1.8 moko 7610: # Only perform the check for file, if the check method requires it
7611: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7612: case $deplibs_check_method in
7613: file_magic*)
7614: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.11 moko 7615: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7616: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7617: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7618: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7619: else
7620: case $MAGIC_CMD in
7621: [\\/*] | ?:[\\/]*)
7622: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7623: ;;
7624: *)
7625: lt_save_MAGIC_CMD="$MAGIC_CMD"
7626: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7628: for ac_dir in $ac_dummy; do
7629: IFS="$lt_save_ifs"
7630: test -z "$ac_dir" && ac_dir=.
7631: if test -f $ac_dir/${ac_tool_prefix}file; then
7632: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7633: if test -n "$file_magic_test_file"; then
7634: case $deplibs_check_method in
7635: "file_magic "*)
7636: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7637: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7639: $EGREP "$file_magic_regex" > /dev/null; then
7640: :
7641: else
7642: cat <<_LT_EOF 1>&2
1.1 misha 7643:
1.8 moko 7644: *** Warning: the command libtool uses to detect shared libraries,
7645: *** $file_magic_cmd, produces output that libtool cannot recognize.
7646: *** The result is that libtool may fail to recognize shared libraries
7647: *** as such. This will affect the creation of libtool libraries that
7648: *** depend on shared libraries, but programs linked with such libtool
7649: *** libraries will work regardless of this problem. Nevertheless, you
7650: *** may want to report the problem to your system manager and/or to
7651: *** bug-libtool@gnu.org
1.1 misha 7652:
1.8 moko 7653: _LT_EOF
7654: fi ;;
7655: esac
7656: fi
7657: break
7658: fi
7659: done
7660: IFS="$lt_save_ifs"
7661: MAGIC_CMD="$lt_save_MAGIC_CMD"
7662: ;;
7663: esac
7664: fi
1.1 misha 7665:
1.8 moko 7666: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7667: if test -n "$MAGIC_CMD"; then
1.11 moko 7668: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7669: echo "${ECHO_T}$MAGIC_CMD" >&6
1.1 misha 7670: else
1.11 moko 7671: echo "$as_me:$LINENO: result: no" >&5
7672: echo "${ECHO_T}no" >&6
1.8 moko 7673: fi
7674:
1.1 misha 7675:
7676:
7677:
7678:
1.8 moko 7679: if test -z "$lt_cv_path_MAGIC_CMD"; then
7680: if test -n "$ac_tool_prefix"; then
1.11 moko 7681: echo "$as_me:$LINENO: checking for file" >&5
7682: echo $ECHO_N "checking for file... $ECHO_C" >&6
7683: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7684: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 7685: else
7686: case $MAGIC_CMD in
7687: [\\/*] | ?:[\\/]*)
7688: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7689: ;;
7690: *)
7691: lt_save_MAGIC_CMD="$MAGIC_CMD"
7692: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7693: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7694: for ac_dir in $ac_dummy; do
7695: IFS="$lt_save_ifs"
7696: test -z "$ac_dir" && ac_dir=.
7697: if test -f $ac_dir/file; then
7698: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7699: if test -n "$file_magic_test_file"; then
7700: case $deplibs_check_method in
7701: "file_magic "*)
7702: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7703: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7704: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7705: $EGREP "$file_magic_regex" > /dev/null; then
7706: :
7707: else
7708: cat <<_LT_EOF 1>&2
7709:
7710: *** Warning: the command libtool uses to detect shared libraries,
7711: *** $file_magic_cmd, produces output that libtool cannot recognize.
7712: *** The result is that libtool may fail to recognize shared libraries
7713: *** as such. This will affect the creation of libtool libraries that
7714: *** depend on shared libraries, but programs linked with such libtool
7715: *** libraries will work regardless of this problem. Nevertheless, you
7716: *** may want to report the problem to your system manager and/or to
7717: *** bug-libtool@gnu.org
1.1 misha 7718:
1.8 moko 7719: _LT_EOF
7720: fi ;;
7721: esac
7722: fi
7723: break
7724: fi
7725: done
7726: IFS="$lt_save_ifs"
7727: MAGIC_CMD="$lt_save_MAGIC_CMD"
7728: ;;
7729: esac
7730: fi
1.1 misha 7731:
1.8 moko 7732: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733: if test -n "$MAGIC_CMD"; then
1.11 moko 7734: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7735: echo "${ECHO_T}$MAGIC_CMD" >&6
1.8 moko 7736: else
1.11 moko 7737: echo "$as_me:$LINENO: result: no" >&5
7738: echo "${ECHO_T}no" >&6
1.8 moko 7739: fi
1.1 misha 7740:
7741:
1.8 moko 7742: else
7743: MAGIC_CMD=:
1.1 misha 7744: fi
7745: fi
1.8 moko 7746:
7747: fi
7748: ;;
7749: esac
7750:
7751: # Use C for the default configuration in the libtool script
7752:
7753: lt_save_CC="$CC"
7754: ac_ext=c
7755: ac_cpp='$CPP $CPPFLAGS'
7756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759:
7760:
7761: # Source file extension for C test sources.
7762: ac_ext=c
7763:
7764: # Object file extension for compiled C test sources.
7765: objext=o
7766: objext=$objext
7767:
7768: # Code to be used in simple compile tests
7769: lt_simple_compile_test_code="int some_variable = 0;"
7770:
7771: # Code to be used in simple link tests
7772: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 7773:
7774:
7775:
7776:
7777:
7778:
7779:
1.8 moko 7780: # If no C compiler was specified, use CC.
7781: LTCC=${LTCC-"$CC"}
1.1 misha 7782:
1.8 moko 7783: # If no C compiler flags were specified, use CFLAGS.
7784: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 7785:
1.8 moko 7786: # Allow CC to be a program name with arguments.
7787: compiler=$CC
1.1 misha 7788:
1.8 moko 7789: # Save the default compiler, since it gets overwritten when the other
7790: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7791: compiler_DEFAULT=$CC
1.1 misha 7792:
1.8 moko 7793: # save warnings/boilerplate of simple test code
7794: ac_outfile=conftest.$ac_objext
7795: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7796: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7797: _lt_compiler_boilerplate=`cat conftest.err`
7798: $RM conftest*
1.1 misha 7799:
1.8 moko 7800: ac_outfile=conftest.$ac_objext
7801: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7802: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7803: _lt_linker_boilerplate=`cat conftest.err`
7804: $RM -r conftest*
1.1 misha 7805:
7806:
1.12 moko 7807: ## CAVEAT EMPTOR:
7808: ## There is no encapsulation within the following macros, do not change
7809: ## the running order or otherwise move them around unless you know exactly
7810: ## what you are doing...
1.8 moko 7811: if test -n "$compiler"; then
1.1 misha 7812:
1.8 moko 7813: lt_prog_compiler_no_builtin_flag=
1.1 misha 7814:
1.8 moko 7815: if test "$GCC" = yes; then
7816: case $cc_basename in
7817: nvcc*)
7818: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7819: *)
7820: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 7821: esac
7822:
1.11 moko 7823: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7824: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7825: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7826: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 7827: else
1.8 moko 7828: lt_cv_prog_compiler_rtti_exceptions=no
7829: ac_outfile=conftest.$ac_objext
7830: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7831: lt_compiler_flag="-fno-rtti -fno-exceptions"
7832: # Insert the option either (1) after the last *FLAGS variable, or
7833: # (2) before a word containing "conftest.", or (3) at the end.
7834: # Note that $ac_compile itself does not contain backslashes and begins
7835: # with a dollar sign (not a hyphen), so the echo should work correctly.
7836: # The option is referenced via a variable to avoid confusing sed.
7837: lt_compile=`echo "$ac_compile" | $SED \
7838: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840: -e 's:$: $lt_compiler_flag:'`
7841: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7842: (eval "$lt_compile" 2>conftest.err)
7843: ac_status=$?
7844: cat conftest.err >&5
7845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846: if (exit $ac_status) && test -s "$ac_outfile"; then
7847: # The compiler can only warn and ignore the option if not recognized
7848: # So say no if there are warnings other than the usual output.
7849: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7850: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7851: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7852: lt_cv_prog_compiler_rtti_exceptions=yes
7853: fi
7854: fi
7855: $RM conftest*
1.1 misha 7856:
7857: fi
1.11 moko 7858: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7859: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.1 misha 7860:
1.8 moko 7861: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7862: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7863: else
7864: :
1.1 misha 7865: fi
7866:
1.8 moko 7867: fi
1.1 misha 7868:
7869:
7870:
7871:
7872:
7873:
1.8 moko 7874: lt_prog_compiler_wl=
7875: lt_prog_compiler_pic=
7876: lt_prog_compiler_static=
1.1 misha 7877:
7878:
1.8 moko 7879: if test "$GCC" = yes; then
7880: lt_prog_compiler_wl='-Wl,'
7881: lt_prog_compiler_static='-static'
1.1 misha 7882:
1.8 moko 7883: case $host_os in
7884: aix*)
7885: # All AIX code is PIC.
7886: if test "$host_cpu" = ia64; then
7887: # AIX 5 now supports IA64 processor
7888: lt_prog_compiler_static='-Bstatic'
7889: fi
7890: ;;
1.1 misha 7891:
1.8 moko 7892: amigaos*)
7893: case $host_cpu in
7894: powerpc)
7895: # see comment about AmigaOS4 .so support
7896: lt_prog_compiler_pic='-fPIC'
7897: ;;
7898: m68k)
7899: # FIXME: we need at least 68020 code to build shared libraries, but
7900: # adding the `-m68020' flag to GCC prevents building anything better,
7901: # like `-m68040'.
7902: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7903: ;;
7904: esac
7905: ;;
1.1 misha 7906:
1.8 moko 7907: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7908: # PIC is the default for these OSes.
7909: ;;
1.1 misha 7910:
1.8 moko 7911: mingw* | cygwin* | pw32* | os2* | cegcc*)
7912: # This hack is so that the source file can tell whether it is being
7913: # built for inclusion in a dll (and should export symbols for example).
7914: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7915: # (--disable-auto-import) libraries
7916: lt_prog_compiler_pic='-DDLL_EXPORT'
7917: ;;
1.1 misha 7918:
1.8 moko 7919: darwin* | rhapsody*)
7920: # PIC is the default on this platform
7921: # Common symbols not allowed in MH_DYLIB files
7922: lt_prog_compiler_pic='-fno-common'
7923: ;;
1.1 misha 7924:
1.8 moko 7925: haiku*)
7926: # PIC is the default for Haiku.
7927: # The "-static" flag exists, but is broken.
7928: lt_prog_compiler_static=
7929: ;;
1.1 misha 7930:
1.8 moko 7931: hpux*)
7932: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7933: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7934: # sets the default TLS model and affects inlining.
7935: case $host_cpu in
7936: hppa*64*)
7937: # +Z the default
7938: ;;
7939: *)
7940: lt_prog_compiler_pic='-fPIC'
7941: ;;
7942: esac
7943: ;;
1.1 misha 7944:
1.8 moko 7945: interix[3-9]*)
7946: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7947: # Instead, we relocate shared libraries at runtime.
7948: ;;
1.1 misha 7949:
1.8 moko 7950: msdosdjgpp*)
7951: # Just because we use GCC doesn't mean we suddenly get shared libraries
7952: # on systems that don't support them.
7953: lt_prog_compiler_can_build_shared=no
7954: enable_shared=no
7955: ;;
1.1 misha 7956:
1.8 moko 7957: *nto* | *qnx*)
7958: # QNX uses GNU C++, but need to define -shared option too, otherwise
7959: # it will coredump.
7960: lt_prog_compiler_pic='-fPIC -shared'
7961: ;;
1.1 misha 7962:
1.8 moko 7963: sysv4*MP*)
7964: if test -d /usr/nec; then
7965: lt_prog_compiler_pic=-Kconform_pic
7966: fi
7967: ;;
1.1 misha 7968:
1.8 moko 7969: *)
7970: lt_prog_compiler_pic='-fPIC'
7971: ;;
7972: esac
1.1 misha 7973:
1.8 moko 7974: case $cc_basename in
7975: nvcc*) # Cuda Compiler Driver 2.2
7976: lt_prog_compiler_wl='-Xlinker '
7977: if test -n "$lt_prog_compiler_pic"; then
7978: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7979: fi
7980: ;;
7981: esac
7982: else
7983: # PORTME Check for flag to pass linker flags through the system compiler.
7984: case $host_os in
7985: aix*)
7986: lt_prog_compiler_wl='-Wl,'
7987: if test "$host_cpu" = ia64; then
7988: # AIX 5 now supports IA64 processor
7989: lt_prog_compiler_static='-Bstatic'
7990: else
7991: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7992: fi
7993: ;;
1.1 misha 7994:
1.8 moko 7995: mingw* | cygwin* | pw32* | os2* | cegcc*)
7996: # This hack is so that the source file can tell whether it is being
7997: # built for inclusion in a dll (and should export symbols for example).
7998: lt_prog_compiler_pic='-DDLL_EXPORT'
7999: ;;
1.1 misha 8000:
1.8 moko 8001: hpux9* | hpux10* | hpux11*)
8002: lt_prog_compiler_wl='-Wl,'
8003: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8004: # not for PA HP-UX.
8005: case $host_cpu in
8006: hppa*64*|ia64*)
8007: # +Z the default
8008: ;;
8009: *)
8010: lt_prog_compiler_pic='+Z'
8011: ;;
8012: esac
8013: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8014: lt_prog_compiler_static='${wl}-a ${wl}archive'
8015: ;;
1.1 misha 8016:
1.8 moko 8017: irix5* | irix6* | nonstopux*)
8018: lt_prog_compiler_wl='-Wl,'
8019: # PIC (with -KPIC) is the default.
8020: lt_prog_compiler_static='-non_shared'
8021: ;;
1.1 misha 8022:
1.8 moko 8023: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8024: case $cc_basename in
8025: # old Intel for x86_64 which still supported -KPIC.
8026: ecc*)
8027: lt_prog_compiler_wl='-Wl,'
8028: lt_prog_compiler_pic='-KPIC'
8029: lt_prog_compiler_static='-static'
8030: ;;
8031: # icc used to be incompatible with GCC.
8032: # ICC 10 doesn't accept -KPIC any more.
8033: icc* | ifort*)
8034: lt_prog_compiler_wl='-Wl,'
8035: lt_prog_compiler_pic='-fPIC'
8036: lt_prog_compiler_static='-static'
8037: ;;
8038: # Lahey Fortran 8.1.
8039: lf95*)
8040: lt_prog_compiler_wl='-Wl,'
8041: lt_prog_compiler_pic='--shared'
8042: lt_prog_compiler_static='--static'
8043: ;;
8044: nagfor*)
8045: # NAG Fortran compiler
8046: lt_prog_compiler_wl='-Wl,-Wl,,'
8047: lt_prog_compiler_pic='-PIC'
8048: lt_prog_compiler_static='-Bstatic'
8049: ;;
8050: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8051: # Portland Group compilers (*not* the Pentium gcc compiler,
8052: # which looks to be a dead project)
8053: lt_prog_compiler_wl='-Wl,'
8054: lt_prog_compiler_pic='-fpic'
8055: lt_prog_compiler_static='-Bstatic'
8056: ;;
8057: ccc*)
8058: lt_prog_compiler_wl='-Wl,'
8059: # All Alpha code is PIC.
8060: lt_prog_compiler_static='-non_shared'
8061: ;;
8062: xl* | bgxl* | bgf* | mpixl*)
8063: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8064: lt_prog_compiler_wl='-Wl,'
8065: lt_prog_compiler_pic='-qpic'
8066: lt_prog_compiler_static='-qstaticlink'
8067: ;;
8068: *)
8069: case `$CC -V 2>&1 | sed 5q` in
8070: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8071: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8072: lt_prog_compiler_pic='-KPIC'
8073: lt_prog_compiler_static='-Bstatic'
8074: lt_prog_compiler_wl=''
8075: ;;
8076: *Sun\ F* | *Sun*Fortran*)
8077: lt_prog_compiler_pic='-KPIC'
8078: lt_prog_compiler_static='-Bstatic'
8079: lt_prog_compiler_wl='-Qoption ld '
8080: ;;
8081: *Sun\ C*)
8082: # Sun C 5.9
8083: lt_prog_compiler_pic='-KPIC'
8084: lt_prog_compiler_static='-Bstatic'
8085: lt_prog_compiler_wl='-Wl,'
8086: ;;
8087: *Intel*\ [CF]*Compiler*)
8088: lt_prog_compiler_wl='-Wl,'
8089: lt_prog_compiler_pic='-fPIC'
8090: lt_prog_compiler_static='-static'
8091: ;;
8092: *Portland\ Group*)
8093: lt_prog_compiler_wl='-Wl,'
8094: lt_prog_compiler_pic='-fpic'
8095: lt_prog_compiler_static='-Bstatic'
8096: ;;
8097: esac
8098: ;;
8099: esac
8100: ;;
1.1 misha 8101:
1.8 moko 8102: newsos6)
8103: lt_prog_compiler_pic='-KPIC'
8104: lt_prog_compiler_static='-Bstatic'
8105: ;;
1.1 misha 8106:
1.8 moko 8107: *nto* | *qnx*)
8108: # QNX uses GNU C++, but need to define -shared option too, otherwise
8109: # it will coredump.
8110: lt_prog_compiler_pic='-fPIC -shared'
8111: ;;
1.1 misha 8112:
1.8 moko 8113: osf3* | osf4* | osf5*)
8114: lt_prog_compiler_wl='-Wl,'
8115: # All OSF/1 code is PIC.
8116: lt_prog_compiler_static='-non_shared'
8117: ;;
1.1 misha 8118:
1.8 moko 8119: rdos*)
8120: lt_prog_compiler_static='-non_shared'
8121: ;;
1.1 misha 8122:
1.8 moko 8123: solaris*)
8124: lt_prog_compiler_pic='-KPIC'
8125: lt_prog_compiler_static='-Bstatic'
8126: case $cc_basename in
8127: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8128: lt_prog_compiler_wl='-Qoption ld ';;
8129: *)
8130: lt_prog_compiler_wl='-Wl,';;
8131: esac
8132: ;;
1.1 misha 8133:
1.8 moko 8134: sunos4*)
8135: lt_prog_compiler_wl='-Qoption ld '
8136: lt_prog_compiler_pic='-PIC'
8137: lt_prog_compiler_static='-Bstatic'
8138: ;;
1.1 misha 8139:
1.8 moko 8140: sysv4 | sysv4.2uw2* | sysv4.3*)
8141: lt_prog_compiler_wl='-Wl,'
8142: lt_prog_compiler_pic='-KPIC'
8143: lt_prog_compiler_static='-Bstatic'
8144: ;;
1.1 misha 8145:
1.8 moko 8146: sysv4*MP*)
8147: if test -d /usr/nec ;then
8148: lt_prog_compiler_pic='-Kconform_pic'
8149: lt_prog_compiler_static='-Bstatic'
8150: fi
8151: ;;
1.1 misha 8152:
1.8 moko 8153: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8154: lt_prog_compiler_wl='-Wl,'
8155: lt_prog_compiler_pic='-KPIC'
8156: lt_prog_compiler_static='-Bstatic'
8157: ;;
1.1 misha 8158:
1.8 moko 8159: unicos*)
8160: lt_prog_compiler_wl='-Wl,'
8161: lt_prog_compiler_can_build_shared=no
8162: ;;
1.1 misha 8163:
1.8 moko 8164: uts4*)
8165: lt_prog_compiler_pic='-pic'
8166: lt_prog_compiler_static='-Bstatic'
8167: ;;
1.1 misha 8168:
1.8 moko 8169: *)
8170: lt_prog_compiler_can_build_shared=no
8171: ;;
8172: esac
8173: fi
1.1 misha 8174:
1.8 moko 8175: case $host_os in
8176: # For platforms which do not support PIC, -DPIC is meaningless:
8177: *djgpp*)
8178: lt_prog_compiler_pic=
8179: ;;
8180: *)
8181: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8182: ;;
8183: esac
1.1 misha 8184:
1.11 moko 8185: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8186: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8187: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8188: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8189: else
8190: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8191: fi
1.11 moko 8192: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8193: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
1.8 moko 8194: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 8195:
1.8 moko 8196: #
8197: # Check to make sure the PIC flag actually works.
8198: #
8199: if test -n "$lt_prog_compiler_pic"; then
1.11 moko 8200: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8201: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8202: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8203: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8204: else
8205: lt_cv_prog_compiler_pic_works=no
8206: ac_outfile=conftest.$ac_objext
8207: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8208: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8209: # Insert the option either (1) after the last *FLAGS variable, or
8210: # (2) before a word containing "conftest.", or (3) at the end.
8211: # Note that $ac_compile itself does not contain backslashes and begins
8212: # with a dollar sign (not a hyphen), so the echo should work correctly.
8213: # The option is referenced via a variable to avoid confusing sed.
8214: lt_compile=`echo "$ac_compile" | $SED \
8215: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8216: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8217: -e 's:$: $lt_compiler_flag:'`
8218: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219: (eval "$lt_compile" 2>conftest.err)
8220: ac_status=$?
8221: cat conftest.err >&5
8222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223: if (exit $ac_status) && test -s "$ac_outfile"; then
8224: # The compiler can only warn and ignore the option if not recognized
8225: # So say no if there are warnings other than the usual output.
8226: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8228: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8229: lt_cv_prog_compiler_pic_works=yes
8230: fi
8231: fi
8232: $RM conftest*
1.1 misha 8233:
1.8 moko 8234: fi
1.11 moko 8235: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8236: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.1 misha 8237:
1.8 moko 8238: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8239: case $lt_prog_compiler_pic in
8240: "" | " "*) ;;
8241: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8242: esac
8243: else
8244: lt_prog_compiler_pic=
8245: lt_prog_compiler_can_build_shared=no
8246: fi
1.1 misha 8247:
1.8 moko 8248: fi
1.1 misha 8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
8258:
8259:
1.8 moko 8260: #
8261: # Check to make sure the static flag actually works.
8262: #
8263: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.11 moko 8264: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8265: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8266: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8267: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8268: else
8269: lt_cv_prog_compiler_static_works=no
8270: save_LDFLAGS="$LDFLAGS"
8271: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8272: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8273: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8274: # The linker can only warn and ignore the option if not recognized
8275: # So say no if there are warnings
8276: if test -s conftest.err; then
8277: # Append any errors to the config.log.
8278: cat conftest.err 1>&5
8279: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8280: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281: if diff conftest.exp conftest.er2 >/dev/null; then
8282: lt_cv_prog_compiler_static_works=yes
8283: fi
8284: else
8285: lt_cv_prog_compiler_static_works=yes
8286: fi
8287: fi
8288: $RM -r conftest*
8289: LDFLAGS="$save_LDFLAGS"
1.1 misha 8290:
1.8 moko 8291: fi
1.11 moko 8292: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8293: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.1 misha 8294:
1.8 moko 8295: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8296: :
8297: else
8298: lt_prog_compiler_static=
8299: fi
1.1 misha 8300:
8301:
8302:
8303:
8304:
8305:
8306:
1.11 moko 8307: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8308: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8309: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8310: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8311: else
8312: lt_cv_prog_compiler_c_o=no
8313: $RM -r conftest 2>/dev/null
8314: mkdir conftest
8315: cd conftest
8316: mkdir out
8317: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318:
8319: lt_compiler_flag="-o out/conftest2.$ac_objext"
8320: # Insert the option either (1) after the last *FLAGS variable, or
8321: # (2) before a word containing "conftest.", or (3) at the end.
8322: # Note that $ac_compile itself does not contain backslashes and begins
8323: # with a dollar sign (not a hyphen), so the echo should work correctly.
8324: lt_compile=`echo "$ac_compile" | $SED \
8325: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327: -e 's:$: $lt_compiler_flag:'`
8328: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329: (eval "$lt_compile" 2>out/conftest.err)
8330: ac_status=$?
8331: cat out/conftest.err >&5
8332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334: then
8335: # The compiler can only warn and ignore the option if not recognized
8336: # So say no if there are warnings
8337: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8338: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340: lt_cv_prog_compiler_c_o=yes
8341: fi
8342: fi
8343: chmod u+w . 2>&5
8344: $RM conftest*
8345: # SGI C++ compiler will create directory out/ii_files/ for
8346: # template instantiation
8347: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348: $RM out/* && rmdir out
8349: cd ..
8350: $RM -r conftest
8351: $RM conftest*
1.1 misha 8352:
1.8 moko 8353: fi
1.11 moko 8354: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8355: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8356:
8357:
8358:
8359:
8360:
8361:
1.11 moko 8362: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8363: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8364: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8365: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 8366: else
8367: lt_cv_prog_compiler_c_o=no
8368: $RM -r conftest 2>/dev/null
8369: mkdir conftest
8370: cd conftest
8371: mkdir out
8372: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373:
8374: lt_compiler_flag="-o out/conftest2.$ac_objext"
8375: # Insert the option either (1) after the last *FLAGS variable, or
8376: # (2) before a word containing "conftest.", or (3) at the end.
8377: # Note that $ac_compile itself does not contain backslashes and begins
8378: # with a dollar sign (not a hyphen), so the echo should work correctly.
8379: lt_compile=`echo "$ac_compile" | $SED \
8380: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8381: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8382: -e 's:$: $lt_compiler_flag:'`
8383: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8384: (eval "$lt_compile" 2>out/conftest.err)
8385: ac_status=$?
8386: cat out/conftest.err >&5
8387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8389: then
8390: # The compiler can only warn and ignore the option if not recognized
8391: # So say no if there are warnings
8392: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8393: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8394: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8395: lt_cv_prog_compiler_c_o=yes
8396: fi
8397: fi
8398: chmod u+w . 2>&5
8399: $RM conftest*
8400: # SGI C++ compiler will create directory out/ii_files/ for
8401: # template instantiation
8402: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8403: $RM out/* && rmdir out
8404: cd ..
8405: $RM -r conftest
8406: $RM conftest*
1.1 misha 8407:
1.8 moko 8408: fi
1.11 moko 8409: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8410: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.1 misha 8411:
8412:
8413:
8414:
1.8 moko 8415: hard_links="nottested"
8416: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8417: # do not overwrite the value of need_locks provided by the user
1.11 moko 8418: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8419: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 8420: hard_links=yes
8421: $RM conftest*
8422: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8423: touch conftest.a
8424: ln conftest.a conftest.b 2>&5 || hard_links=no
8425: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 8426: echo "$as_me:$LINENO: result: $hard_links" >&5
8427: echo "${ECHO_T}$hard_links" >&6
1.8 moko 8428: if test "$hard_links" = no; then
1.11 moko 8429: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8430: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8431: need_locks=warn
8432: fi
8433: else
8434: need_locks=no
8435: fi
1.1 misha 8436:
8437:
8438:
8439:
8440:
8441:
1.11 moko 8442: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8443: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.1 misha 8444:
1.8 moko 8445: runpath_var=
8446: allow_undefined_flag=
8447: always_export_symbols=no
8448: archive_cmds=
8449: archive_expsym_cmds=
8450: compiler_needs_object=no
8451: enable_shared_with_static_runtimes=no
8452: export_dynamic_flag_spec=
8453: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8454: hardcode_automatic=no
8455: hardcode_direct=no
8456: hardcode_direct_absolute=no
8457: hardcode_libdir_flag_spec=
8458: hardcode_libdir_separator=
8459: hardcode_minus_L=no
8460: hardcode_shlibpath_var=unsupported
8461: inherit_rpath=no
8462: link_all_deplibs=unknown
8463: module_cmds=
8464: module_expsym_cmds=
8465: old_archive_from_new_cmds=
8466: old_archive_from_expsyms_cmds=
8467: thread_safe_flag_spec=
8468: whole_archive_flag_spec=
8469: # include_expsyms should be a list of space-separated symbols to be *always*
8470: # included in the symbol list
8471: include_expsyms=
8472: # exclude_expsyms can be an extended regexp of symbols to exclude
8473: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8474: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8475: # as well as any symbol that contains `d'.
8476: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8477: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8478: # platforms (ab)use it in PIC code, but their linkers get confused if
8479: # the symbol is explicitly referenced. Since portable code cannot
8480: # rely on this symbol name, it's probably fine to never include it in
8481: # preloaded symbol tables.
8482: # Exclude shared library initialization/finalization symbols.
8483: extract_expsyms_cmds=
1.1 misha 8484:
1.8 moko 8485: case $host_os in
8486: cygwin* | mingw* | pw32* | cegcc*)
8487: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8488: # When not using gcc, we currently assume that we are using
8489: # Microsoft Visual C++.
8490: if test "$GCC" != yes; then
8491: with_gnu_ld=no
8492: fi
8493: ;;
8494: interix*)
8495: # we just hope/assume this is gcc and not c89 (= MSVC++)
8496: with_gnu_ld=yes
8497: ;;
8498: openbsd*)
8499: with_gnu_ld=no
8500: ;;
8501: esac
1.1 misha 8502:
1.8 moko 8503: ld_shlibs=yes
1.1 misha 8504:
1.8 moko 8505: # On some targets, GNU ld is compatible enough with the native linker
8506: # that we're better off using the native interface for both.
8507: lt_use_gnu_ld_interface=no
8508: if test "$with_gnu_ld" = yes; then
8509: case $host_os in
8510: aix*)
8511: # The AIX port of GNU ld has always aspired to compatibility
8512: # with the native linker. However, as the warning in the GNU ld
8513: # block says, versions before 2.19.5* couldn't really create working
8514: # shared libraries, regardless of the interface used.
8515: case `$LD -v 2>&1` in
8516: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8517: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8518: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8519: *)
8520: lt_use_gnu_ld_interface=yes
8521: ;;
8522: esac
8523: ;;
8524: *)
8525: lt_use_gnu_ld_interface=yes
8526: ;;
8527: esac
8528: fi
1.1 misha 8529:
1.8 moko 8530: if test "$lt_use_gnu_ld_interface" = yes; then
8531: # If archive_cmds runs LD, not CC, wlarc should be empty
8532: wlarc='${wl}'
8533:
8534: # Set some defaults for GNU ld with shared library support. These
8535: # are reset later if shared libraries are not supported. Putting them
8536: # here allows them to be overridden if necessary.
8537: runpath_var=LD_RUN_PATH
8538: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8539: export_dynamic_flag_spec='${wl}--export-dynamic'
8540: # ancient GNU ld didn't support --whole-archive et. al.
8541: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8542: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8543: else
8544: whole_archive_flag_spec=
8545: fi
8546: supports_anon_versioning=no
8547: case `$LD -v 2>&1` in
8548: *GNU\ gold*) supports_anon_versioning=yes ;;
8549: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8550: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8551: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8552: *\ 2.11.*) ;; # other 2.11 versions
8553: *) supports_anon_versioning=yes ;;
8554: esac
1.1 misha 8555:
1.8 moko 8556: # See if GNU ld supports shared libraries.
8557: case $host_os in
8558: aix[3-9]*)
8559: # On AIX/PPC, the GNU linker is very broken
8560: if test "$host_cpu" != ia64; then
8561: ld_shlibs=no
8562: cat <<_LT_EOF 1>&2
1.1 misha 8563:
1.8 moko 8564: *** Warning: the GNU linker, at least up to release 2.19, is reported
8565: *** to be unable to reliably create shared libraries on AIX.
8566: *** Therefore, libtool is disabling shared libraries support. If you
8567: *** really care for shared libraries, you may want to install binutils
8568: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8569: *** You will then need to restart the configuration process.
1.1 misha 8570:
1.8 moko 8571: _LT_EOF
8572: fi
8573: ;;
1.1 misha 8574:
1.8 moko 8575: amigaos*)
8576: case $host_cpu in
8577: powerpc)
8578: # see comment about AmigaOS4 .so support
8579: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580: archive_expsym_cmds=''
8581: ;;
8582: m68k)
8583: 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)'
8584: hardcode_libdir_flag_spec='-L$libdir'
8585: hardcode_minus_L=yes
8586: ;;
8587: esac
8588: ;;
1.1 misha 8589:
1.8 moko 8590: beos*)
8591: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8592: allow_undefined_flag=unsupported
8593: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8594: # support --undefined. This deserves some investigation. FIXME
8595: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596: else
8597: ld_shlibs=no
8598: fi
8599: ;;
1.1 misha 8600:
1.8 moko 8601: cygwin* | mingw* | pw32* | cegcc*)
8602: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8603: # as there is no search path for DLLs.
8604: hardcode_libdir_flag_spec='-L$libdir'
8605: export_dynamic_flag_spec='${wl}--export-all-symbols'
8606: allow_undefined_flag=unsupported
8607: always_export_symbols=no
8608: enable_shared_with_static_runtimes=yes
8609: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8610: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8611:
8612: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8613: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614: # If the export-symbols file already is a .def file (1st line
8615: # is EXPORTS), use it as is; otherwise, prepend...
8616: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8617: cp $export_symbols $output_objdir/$soname.def;
8618: else
8619: echo EXPORTS > $output_objdir/$soname.def;
8620: cat $export_symbols >> $output_objdir/$soname.def;
8621: fi~
8622: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8623: else
8624: ld_shlibs=no
8625: fi
8626: ;;
1.1 misha 8627:
1.8 moko 8628: haiku*)
8629: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630: link_all_deplibs=yes
8631: ;;
1.1 misha 8632:
1.8 moko 8633: interix[3-9]*)
8634: hardcode_direct=no
8635: hardcode_shlibpath_var=no
8636: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8637: export_dynamic_flag_spec='${wl}-E'
8638: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8639: # Instead, shared libraries are loaded at an image base (0x10000000 by
8640: # default) and relocated if they conflict, which is a slow very memory
8641: # consuming and fragmenting process. To avoid this, we pick a random,
8642: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8643: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8644: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8645: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8646: ;;
1.1 misha 8647:
1.8 moko 8648: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8649: tmp_diet=no
8650: if test "$host_os" = linux-dietlibc; then
8651: case $cc_basename in
8652: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8653: esac
8654: fi
8655: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8656: && test "$tmp_diet" = no
8657: then
8658: tmp_addflag=' $pic_flag'
8659: tmp_sharedflag='-shared'
8660: case $cc_basename,$host_cpu in
8661: pgcc*) # Portland Group C compiler
8662: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8663: tmp_addflag=' $pic_flag'
8664: ;;
8665: pgf77* | pgf90* | pgf95* | pgfortran*)
8666: # Portland Group f77 and f90 compilers
8667: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8668: tmp_addflag=' $pic_flag -Mnomain' ;;
8669: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8670: tmp_addflag=' -i_dynamic' ;;
8671: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8672: tmp_addflag=' -i_dynamic -nofor_main' ;;
8673: ifc* | ifort*) # Intel Fortran compiler
8674: tmp_addflag=' -nofor_main' ;;
8675: lf95*) # Lahey Fortran 8.1
8676: whole_archive_flag_spec=
8677: tmp_sharedflag='--shared' ;;
8678: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8679: tmp_sharedflag='-qmkshrobj'
8680: tmp_addflag= ;;
8681: nvcc*) # Cuda Compiler Driver 2.2
8682: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8683: compiler_needs_object=yes
8684: ;;
8685: esac
8686: case `$CC -V 2>&1 | sed 5q` in
8687: *Sun\ C*) # Sun C 5.9
8688: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8689: compiler_needs_object=yes
8690: tmp_sharedflag='-G' ;;
8691: *Sun\ F*) # Sun Fortran 8.3
8692: tmp_sharedflag='-G' ;;
8693: esac
8694: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 8695:
1.8 moko 8696: if test "x$supports_anon_versioning" = xyes; then
8697: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699: echo "local: *; };" >> $output_objdir/$libname.ver~
8700: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701: fi
8702:
8703: case $cc_basename in
8704: xlf* | bgf* | bgxlf* | mpixlf*)
8705: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8706: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8707: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8709: if test "x$supports_anon_versioning" = xyes; then
8710: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8711: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8712: echo "local: *; };" >> $output_objdir/$libname.ver~
8713: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8714: fi
8715: ;;
8716: esac
8717: else
8718: ld_shlibs=no
8719: fi
8720: ;;
1.1 misha 8721:
1.8 moko 8722: netbsd*)
8723: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8724: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8725: wlarc=
8726: else
8727: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729: fi
8730: ;;
1.1 misha 8731:
1.8 moko 8732: solaris*)
8733: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8734: ld_shlibs=no
8735: cat <<_LT_EOF 1>&2
1.1 misha 8736:
1.8 moko 8737: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8738: *** create shared libraries on Solaris systems. Therefore, libtool
8739: *** is disabling shared libraries support. We urge you to upgrade GNU
8740: *** binutils to release 2.9.1 or newer. Another option is to modify
8741: *** your PATH or compiler configuration so that the native linker is
8742: *** used, and then restart.
1.1 misha 8743:
1.8 moko 8744: _LT_EOF
8745: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8748: else
8749: ld_shlibs=no
8750: fi
8751: ;;
1.1 misha 8752:
1.8 moko 8753: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8754: case `$LD -v 2>&1` in
8755: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8756: ld_shlibs=no
8757: cat <<_LT_EOF 1>&2
1.1 misha 8758:
1.8 moko 8759: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8760: *** reliably create shared libraries on SCO systems. Therefore, libtool
8761: *** is disabling shared libraries support. We urge you to upgrade GNU
8762: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8763: *** your PATH or compiler configuration so that the native linker is
8764: *** used, and then restart.
1.1 misha 8765:
1.8 moko 8766: _LT_EOF
8767: ;;
8768: *)
8769: # For security reasons, it is highly recommended that you always
8770: # use absolute paths for naming shared libraries, and exclude the
8771: # DT_RUNPATH tag from executables and libraries. But doing so
8772: # requires that you compile everything twice, which is a pain.
8773: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8774: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777: else
8778: ld_shlibs=no
8779: fi
8780: ;;
8781: esac
8782: ;;
1.1 misha 8783:
1.8 moko 8784: sunos4*)
8785: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8786: wlarc=
8787: hardcode_direct=yes
8788: hardcode_shlibpath_var=no
8789: ;;
1.1 misha 8790:
1.8 moko 8791: *)
8792: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795: else
8796: ld_shlibs=no
8797: fi
8798: ;;
8799: esac
1.1 misha 8800:
1.8 moko 8801: if test "$ld_shlibs" = no; then
8802: runpath_var=
8803: hardcode_libdir_flag_spec=
8804: export_dynamic_flag_spec=
8805: whole_archive_flag_spec=
8806: fi
8807: else
8808: # PORTME fill in a description of your system's linker (not GNU ld)
8809: case $host_os in
8810: aix3*)
8811: allow_undefined_flag=unsupported
8812: always_export_symbols=yes
8813: 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'
8814: # Note: this linker hardcodes the directories in LIBPATH if there
8815: # are no directories specified by -L.
8816: hardcode_minus_L=yes
8817: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8818: # Neither direct hardcoding nor static linking is supported with a
8819: # broken collect2.
8820: hardcode_direct=unsupported
8821: fi
8822: ;;
1.1 misha 8823:
1.8 moko 8824: aix[4-9]*)
8825: if test "$host_cpu" = ia64; then
8826: # On IA64, the linker does run time linking by default, so we don't
8827: # have to do anything special.
8828: aix_use_runtimelinking=no
8829: exp_sym_flag='-Bexport'
8830: no_entry_flag=""
8831: else
8832: # If we're using GNU nm, then we don't want the "-C" option.
8833: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8834: # Also, AIX nm treats weak defined symbols like other global
8835: # defined symbols, whereas GNU nm marks them as "W".
8836: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8837: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8838: else
8839: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8840: fi
8841: aix_use_runtimelinking=no
1.1 misha 8842:
1.8 moko 8843: # Test if we are trying to use run time linking or normal
8844: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8845: # need to do runtime linking.
8846: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8847: for ld_flag in $LDFLAGS; do
8848: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8849: aix_use_runtimelinking=yes
8850: break
8851: fi
8852: done
8853: ;;
8854: esac
1.1 misha 8855:
1.8 moko 8856: exp_sym_flag='-bexport'
8857: no_entry_flag='-bnoentry'
8858: fi
1.1 misha 8859:
1.8 moko 8860: # When large executables or shared objects are built, AIX ld can
8861: # have problems creating the table of contents. If linking a library
8862: # or program results in "error TOC overflow" add -mminimal-toc to
8863: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8864: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8865:
8866: archive_cmds=''
8867: hardcode_direct=yes
8868: hardcode_direct_absolute=yes
8869: hardcode_libdir_separator=':'
8870: link_all_deplibs=yes
8871: file_list_spec='${wl}-f,'
8872:
8873: if test "$GCC" = yes; then
8874: case $host_os in aix4.[012]|aix4.[012].*)
8875: # We only want to do this on AIX 4.2 and lower, the check
8876: # below for broken collect2 doesn't work under 4.3+
8877: collect2name=`${CC} -print-prog-name=collect2`
8878: if test -f "$collect2name" &&
8879: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8880: then
8881: # We have reworked collect2
8882: :
8883: else
8884: # We have old collect2
8885: hardcode_direct=unsupported
8886: # It fails to find uninstalled libraries when the uninstalled
8887: # path is not listed in the libpath. Setting hardcode_minus_L
8888: # to unsupported forces relinking
8889: hardcode_minus_L=yes
8890: hardcode_libdir_flag_spec='-L$libdir'
8891: hardcode_libdir_separator=
8892: fi
8893: ;;
8894: esac
8895: shared_flag='-shared'
8896: if test "$aix_use_runtimelinking" = yes; then
8897: shared_flag="$shared_flag "'${wl}-G'
8898: fi
8899: else
8900: # not using gcc
8901: if test "$host_cpu" = ia64; then
8902: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8903: # chokes on -Wl,-G. The following line is correct:
8904: shared_flag='-G'
8905: else
8906: if test "$aix_use_runtimelinking" = yes; then
8907: shared_flag='${wl}-G'
8908: else
8909: shared_flag='${wl}-bM:SRE'
8910: fi
8911: fi
8912: fi
1.1 misha 8913:
1.8 moko 8914: export_dynamic_flag_spec='${wl}-bexpall'
8915: # It seems that -bexpall does not export symbols beginning with
8916: # underscore (_), so it is better to generate a list of symbols to export.
8917: always_export_symbols=yes
8918: if test "$aix_use_runtimelinking" = yes; then
8919: # Warning - without using the other runtime loading flags (-brtl),
8920: # -berok will link without error, but may produce a broken library.
8921: allow_undefined_flag='-berok'
8922: # Determine the default libpath from the value encoded in an
8923: # empty executable.
8924: if test "${lt_cv_aix_libpath+set}" = set; then
8925: aix_libpath=$lt_cv_aix_libpath
8926: else
1.11 moko 8927: if test "${lt_cv_aix_libpath_+set}" = set; then
8928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 8929: else
1.11 moko 8930: cat >conftest.$ac_ext <<_ACEOF
8931: /* confdefs.h. */
8932: _ACEOF
8933: cat confdefs.h >>conftest.$ac_ext
8934: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 8935: /* end confdefs.h. */
1.8 moko 8936:
8937: int
8938: main ()
8939: {
8940:
8941: ;
8942: return 0;
8943: }
1.1 misha 8944: _ACEOF
1.11 moko 8945: rm -f conftest.$ac_objext conftest$ac_exeext
8946: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947: (eval $ac_link) 2>conftest.er1
8948: ac_status=$?
8949: grep -v '^ *+' conftest.er1 >conftest.err
8950: rm -f conftest.er1
8951: cat conftest.err >&5
8952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953: (exit $ac_status); } &&
8954: { ac_try='test -z "$ac_c_werror_flag"
8955: || test ! -s conftest.err'
8956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957: (eval $ac_try) 2>&5
8958: ac_status=$?
8959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960: (exit $ac_status); }; } &&
8961: { ac_try='test -s conftest$ac_exeext'
8962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963: (eval $ac_try) 2>&5
8964: ac_status=$?
8965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966: (exit $ac_status); }; }; then
1.8 moko 8967:
8968: lt_aix_libpath_sed='
8969: /Import File Strings/,/^$/ {
8970: /^0/ {
8971: s/^0 *\([^ ]*\) *$/\1/
8972: p
8973: }
8974: }'
8975: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976: # Check for a 64-bit object if we didn't find anything.
8977: if test -z "$lt_cv_aix_libpath_"; then
8978: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979: fi
1.11 moko 8980: else
8981: echo "$as_me: failed program was:" >&5
8982: sed 's/^/| /' conftest.$ac_ext >&5
8983:
1.1 misha 8984: fi
1.11 moko 8985: rm -f conftest.err conftest.$ac_objext \
8986: conftest$ac_exeext conftest.$ac_ext
1.8 moko 8987: if test -z "$lt_cv_aix_libpath_"; then
8988: lt_cv_aix_libpath_="/usr/lib:/lib"
8989: fi
8990:
8991: fi
8992:
8993: aix_libpath=$lt_cv_aix_libpath_
8994: fi
1.1 misha 8995:
1.8 moko 8996: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8997: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8998: else
8999: if test "$host_cpu" = ia64; then
9000: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9001: allow_undefined_flag="-z nodefs"
9002: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9003: else
9004: # Determine the default libpath from the value encoded in an
9005: # empty executable.
9006: if test "${lt_cv_aix_libpath+set}" = set; then
9007: aix_libpath=$lt_cv_aix_libpath
9008: else
1.11 moko 9009: if test "${lt_cv_aix_libpath_+set}" = set; then
9010: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 9011: else
1.11 moko 9012: cat >conftest.$ac_ext <<_ACEOF
9013: /* confdefs.h. */
9014: _ACEOF
9015: cat confdefs.h >>conftest.$ac_ext
9016: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9017: /* end confdefs.h. */
1.8 moko 9018:
9019: int
9020: main ()
9021: {
9022:
9023: ;
9024: return 0;
9025: }
1.1 misha 9026: _ACEOF
1.11 moko 9027: rm -f conftest.$ac_objext conftest$ac_exeext
9028: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029: (eval $ac_link) 2>conftest.er1
9030: ac_status=$?
9031: grep -v '^ *+' conftest.er1 >conftest.err
9032: rm -f conftest.er1
9033: cat conftest.err >&5
9034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035: (exit $ac_status); } &&
9036: { ac_try='test -z "$ac_c_werror_flag"
9037: || test ! -s conftest.err'
9038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039: (eval $ac_try) 2>&5
9040: ac_status=$?
9041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042: (exit $ac_status); }; } &&
9043: { ac_try='test -s conftest$ac_exeext'
9044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045: (eval $ac_try) 2>&5
9046: ac_status=$?
9047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048: (exit $ac_status); }; }; then
1.8 moko 9049:
9050: lt_aix_libpath_sed='
9051: /Import File Strings/,/^$/ {
9052: /^0/ {
9053: s/^0 *\([^ ]*\) *$/\1/
9054: p
9055: }
9056: }'
9057: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9058: # Check for a 64-bit object if we didn't find anything.
9059: if test -z "$lt_cv_aix_libpath_"; then
9060: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9061: fi
1.11 moko 9062: else
9063: echo "$as_me: failed program was:" >&5
9064: sed 's/^/| /' conftest.$ac_ext >&5
9065:
1.1 misha 9066: fi
1.11 moko 9067: rm -f conftest.err conftest.$ac_objext \
9068: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9069: if test -z "$lt_cv_aix_libpath_"; then
9070: lt_cv_aix_libpath_="/usr/lib:/lib"
9071: fi
9072:
9073: fi
9074:
9075: aix_libpath=$lt_cv_aix_libpath_
9076: fi
9077:
9078: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9079: # Warning - without using the other run time loading flags,
9080: # -berok will link without error, but may produce a broken library.
9081: no_undefined_flag=' ${wl}-bernotok'
9082: allow_undefined_flag=' ${wl}-berok'
9083: if test "$with_gnu_ld" = yes; then
9084: # We only use this code for GNU lds that support --whole-archive.
9085: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9086: else
9087: # Exported symbols can be pulled into shared objects from archives
9088: whole_archive_flag_spec='$convenience'
9089: fi
9090: archive_cmds_need_lc=yes
9091: # This is similar to how AIX traditionally builds its shared libraries.
9092: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9093: fi
9094: fi
9095: ;;
9096:
9097: amigaos*)
9098: case $host_cpu in
9099: powerpc)
9100: # see comment about AmigaOS4 .so support
9101: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102: archive_expsym_cmds=''
9103: ;;
9104: m68k)
9105: 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)'
9106: hardcode_libdir_flag_spec='-L$libdir'
9107: hardcode_minus_L=yes
9108: ;;
9109: esac
9110: ;;
9111:
9112: bsdi[45]*)
9113: export_dynamic_flag_spec=-rdynamic
9114: ;;
9115:
9116: cygwin* | mingw* | pw32* | cegcc*)
9117: # When not using gcc, we currently assume that we are using
9118: # Microsoft Visual C++.
9119: # hardcode_libdir_flag_spec is actually meaningless, as there is
9120: # no search path for DLLs.
9121: case $cc_basename in
9122: cl*)
9123: # Native MSVC
9124: hardcode_libdir_flag_spec=' '
9125: allow_undefined_flag=unsupported
9126: always_export_symbols=yes
9127: file_list_spec='@'
9128: # Tell ltmain to make .lib files, not .a files.
9129: libext=lib
9130: # Tell ltmain to make .dll files, not .so files.
9131: shrext_cmds=".dll"
9132: # FIXME: Setting linknames here is a bad hack.
9133: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9134: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9135: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9136: else
9137: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9138: fi~
9139: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9140: linknames='
9141: # The linker will not automatically build a static lib if we build a DLL.
9142: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9143: enable_shared_with_static_runtimes=yes
9144: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9145: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9146: # Don't use ranlib
9147: old_postinstall_cmds='chmod 644 $oldlib'
9148: postlink_cmds='lt_outputfile="@OUTPUT@"~
9149: lt_tool_outputfile="@TOOL_OUTPUT@"~
9150: case $lt_outputfile in
9151: *.exe|*.EXE) ;;
9152: *)
9153: lt_outputfile="$lt_outputfile.exe"
9154: lt_tool_outputfile="$lt_tool_outputfile.exe"
9155: ;;
9156: esac~
9157: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9158: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9159: $RM "$lt_outputfile.manifest";
9160: fi'
9161: ;;
9162: *)
9163: # Assume MSVC wrapper
9164: hardcode_libdir_flag_spec=' '
9165: allow_undefined_flag=unsupported
9166: # Tell ltmain to make .lib files, not .a files.
9167: libext=lib
9168: # Tell ltmain to make .dll files, not .so files.
9169: shrext_cmds=".dll"
9170: # FIXME: Setting linknames here is a bad hack.
9171: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9172: # The linker will automatically build a .lib file if we build a DLL.
9173: old_archive_from_new_cmds='true'
9174: # FIXME: Should let the user specify the lib program.
9175: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9176: enable_shared_with_static_runtimes=yes
9177: ;;
9178: esac
9179: ;;
9180:
9181: darwin* | rhapsody*)
9182:
9183:
9184: archive_cmds_need_lc=no
9185: hardcode_direct=no
9186: hardcode_automatic=yes
9187: hardcode_shlibpath_var=unsupported
9188: if test "$lt_cv_ld_force_load" = "yes"; then
9189: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9190:
9191: else
9192: whole_archive_flag_spec=''
9193: fi
9194: link_all_deplibs=yes
9195: allow_undefined_flag="$_lt_dar_allow_undefined"
9196: case $cc_basename in
9197: ifort*) _lt_dar_can_shared=yes ;;
9198: *) _lt_dar_can_shared=$GCC ;;
9199: esac
9200: if test "$_lt_dar_can_shared" = "yes"; then
9201: output_verbose_link_cmd=func_echo_all
9202: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9203: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9204: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9205: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9206:
9207: else
9208: ld_shlibs=no
9209: fi
9210:
9211: ;;
9212:
9213: dgux*)
9214: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215: hardcode_libdir_flag_spec='-L$libdir'
9216: hardcode_shlibpath_var=no
9217: ;;
9218:
9219: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9220: # support. Future versions do this automatically, but an explicit c++rt0.o
9221: # does not break anything, and helps significantly (at the cost of a little
9222: # extra space).
9223: freebsd2.2*)
9224: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9225: hardcode_libdir_flag_spec='-R$libdir'
9226: hardcode_direct=yes
9227: hardcode_shlibpath_var=no
9228: ;;
9229:
9230: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9231: freebsd2.*)
9232: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9233: hardcode_direct=yes
9234: hardcode_minus_L=yes
9235: hardcode_shlibpath_var=no
9236: ;;
9237:
9238: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9239: freebsd* | dragonfly*)
9240: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9241: hardcode_libdir_flag_spec='-R$libdir'
9242: hardcode_direct=yes
9243: hardcode_shlibpath_var=no
9244: ;;
9245:
9246: hpux9*)
9247: if test "$GCC" = yes; then
9248: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9249: else
9250: 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'
9251: fi
9252: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9253: hardcode_libdir_separator=:
9254: hardcode_direct=yes
9255:
9256: # hardcode_minus_L: Not really in the search PATH,
9257: # but as the default location of the library.
9258: hardcode_minus_L=yes
9259: export_dynamic_flag_spec='${wl}-E'
9260: ;;
9261:
9262: hpux10*)
9263: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9264: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9265: else
9266: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9267: fi
9268: if test "$with_gnu_ld" = no; then
9269: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270: hardcode_libdir_separator=:
9271: hardcode_direct=yes
9272: hardcode_direct_absolute=yes
9273: export_dynamic_flag_spec='${wl}-E'
9274: # hardcode_minus_L: Not really in the search PATH,
9275: # but as the default location of the library.
9276: hardcode_minus_L=yes
9277: fi
9278: ;;
9279:
9280: hpux11*)
9281: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9282: case $host_cpu in
9283: hppa*64*)
9284: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285: ;;
9286: ia64*)
9287: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9288: ;;
9289: *)
9290: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9291: ;;
9292: esac
9293: else
9294: case $host_cpu in
9295: hppa*64*)
9296: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9297: ;;
9298: ia64*)
9299: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9300: ;;
9301: *)
1.1 misha 9302:
1.8 moko 9303: # Older versions of the 11.00 compiler do not understand -b yet
9304: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.11 moko 9305: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9306: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9307: if test "${lt_cv_prog_compiler__b+set}" = set; then
9308: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9309: else
1.8 moko 9310: lt_cv_prog_compiler__b=no
9311: save_LDFLAGS="$LDFLAGS"
9312: LDFLAGS="$LDFLAGS -b"
9313: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9314: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9315: # The linker can only warn and ignore the option if not recognized
9316: # So say no if there are warnings
9317: if test -s conftest.err; then
9318: # Append any errors to the config.log.
9319: cat conftest.err 1>&5
9320: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9321: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9322: if diff conftest.exp conftest.er2 >/dev/null; then
9323: lt_cv_prog_compiler__b=yes
9324: fi
9325: else
9326: lt_cv_prog_compiler__b=yes
9327: fi
9328: fi
9329: $RM -r conftest*
9330: LDFLAGS="$save_LDFLAGS"
1.1 misha 9331:
9332: fi
1.11 moko 9333: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9334: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 misha 9335:
1.8 moko 9336: if test x"$lt_cv_prog_compiler__b" = xyes; then
9337: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9338: else
9339: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9340: fi
9341:
1.8 moko 9342: ;;
9343: esac
9344: fi
9345: if test "$with_gnu_ld" = no; then
9346: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9347: hardcode_libdir_separator=:
9348:
9349: case $host_cpu in
9350: hppa*64*|ia64*)
9351: hardcode_direct=no
9352: hardcode_shlibpath_var=no
9353: ;;
9354: *)
9355: hardcode_direct=yes
9356: hardcode_direct_absolute=yes
9357: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9358:
1.8 moko 9359: # hardcode_minus_L: Not really in the search PATH,
9360: # but as the default location of the library.
9361: hardcode_minus_L=yes
9362: ;;
9363: esac
9364: fi
9365: ;;
1.1 misha 9366:
1.8 moko 9367: irix5* | irix6* | nonstopux*)
9368: if test "$GCC" = yes; then
9369: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9370: # Try to use the -exported_symbol ld option, if it does not
9371: # work, assume that -exports_file does not work either and
9372: # implicitly export all symbols.
9373: # This should be the same for all languages, so no per-tag cache variable.
1.11 moko 9374: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9375: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9376: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9377: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9378: else
1.8 moko 9379: save_LDFLAGS="$LDFLAGS"
9380: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.11 moko 9381: cat >conftest.$ac_ext <<_ACEOF
9382: /* confdefs.h. */
9383: _ACEOF
9384: cat confdefs.h >>conftest.$ac_ext
9385: cat >>conftest.$ac_ext <<_ACEOF
1.1 misha 9386: /* end confdefs.h. */
1.8 moko 9387: int foo (void) { return 0; }
1.1 misha 9388: _ACEOF
1.11 moko 9389: rm -f conftest.$ac_objext conftest$ac_exeext
9390: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391: (eval $ac_link) 2>conftest.er1
9392: ac_status=$?
9393: grep -v '^ *+' conftest.er1 >conftest.err
9394: rm -f conftest.er1
9395: cat conftest.err >&5
9396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397: (exit $ac_status); } &&
9398: { ac_try='test -z "$ac_c_werror_flag"
9399: || test ! -s conftest.err'
9400: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401: (eval $ac_try) 2>&5
9402: ac_status=$?
9403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404: (exit $ac_status); }; } &&
9405: { ac_try='test -s conftest$ac_exeext'
9406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407: (eval $ac_try) 2>&5
9408: ac_status=$?
9409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410: (exit $ac_status); }; }; then
1.8 moko 9411: lt_cv_irix_exported_symbol=yes
1.1 misha 9412: else
1.11 moko 9413: echo "$as_me: failed program was:" >&5
9414: sed 's/^/| /' conftest.$ac_ext >&5
9415:
9416: lt_cv_irix_exported_symbol=no
1.1 misha 9417: fi
1.11 moko 9418: rm -f conftest.err conftest.$ac_objext \
9419: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9420: LDFLAGS="$save_LDFLAGS"
1.1 misha 9421: fi
1.11 moko 9422: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9423: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
1.8 moko 9424: if test "$lt_cv_irix_exported_symbol" = yes; then
9425: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9426: fi
9427: else
9428: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9429: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9430: fi
9431: archive_cmds_need_lc='no'
9432: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9433: hardcode_libdir_separator=:
9434: inherit_rpath=yes
9435: link_all_deplibs=yes
9436: ;;
1.1 misha 9437:
1.8 moko 9438: netbsd*)
9439: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9440: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9441: else
9442: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9443: fi
9444: hardcode_libdir_flag_spec='-R$libdir'
9445: hardcode_direct=yes
9446: hardcode_shlibpath_var=no
9447: ;;
1.1 misha 9448:
1.8 moko 9449: newsos6)
9450: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451: hardcode_direct=yes
9452: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9453: hardcode_libdir_separator=:
9454: hardcode_shlibpath_var=no
9455: ;;
1.1 misha 9456:
1.8 moko 9457: *nto* | *qnx*)
9458: ;;
1.1 misha 9459:
1.8 moko 9460: openbsd*)
9461: if test -f /usr/libexec/ld.so; then
9462: hardcode_direct=yes
9463: hardcode_shlibpath_var=no
9464: hardcode_direct_absolute=yes
9465: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9466: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9467: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9468: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9469: export_dynamic_flag_spec='${wl}-E'
9470: else
9471: case $host_os in
9472: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9473: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474: hardcode_libdir_flag_spec='-R$libdir'
9475: ;;
9476: *)
9477: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9478: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9479: ;;
9480: esac
9481: fi
9482: else
9483: ld_shlibs=no
9484: fi
9485: ;;
1.1 misha 9486:
1.8 moko 9487: os2*)
9488: hardcode_libdir_flag_spec='-L$libdir'
9489: hardcode_minus_L=yes
9490: allow_undefined_flag=unsupported
9491: 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'
9492: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9493: ;;
1.1 misha 9494:
1.8 moko 9495: osf3*)
9496: if test "$GCC" = yes; then
9497: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9498: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9499: else
9500: allow_undefined_flag=' -expect_unresolved \*'
9501: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9502: fi
9503: archive_cmds_need_lc='no'
9504: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505: hardcode_libdir_separator=:
9506: ;;
1.1 misha 9507:
1.8 moko 9508: osf4* | osf5*) # as osf3* with the addition of -msym flag
9509: if test "$GCC" = yes; then
9510: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9511: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9512: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513: else
9514: allow_undefined_flag=' -expect_unresolved \*'
9515: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9516: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9517: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9518:
9519: # Both c and cxx compiler support -rpath directly
9520: hardcode_libdir_flag_spec='-rpath $libdir'
9521: fi
9522: archive_cmds_need_lc='no'
9523: hardcode_libdir_separator=:
9524: ;;
9525:
9526: solaris*)
9527: no_undefined_flag=' -z defs'
9528: if test "$GCC" = yes; then
9529: wlarc='${wl}'
9530: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9531: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9532: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9533: else
9534: case `$CC -V 2>&1` in
9535: *"Compilers 5.0"*)
9536: wlarc=''
9537: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9539: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9540: ;;
9541: *)
9542: wlarc='${wl}'
9543: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9544: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9545: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9546: ;;
9547: esac
9548: fi
9549: hardcode_libdir_flag_spec='-R$libdir'
9550: hardcode_shlibpath_var=no
9551: case $host_os in
9552: solaris2.[0-5] | solaris2.[0-5].*) ;;
9553: *)
9554: # The compiler driver will combine and reorder linker options,
9555: # but understands `-z linker_flag'. GCC discards it without `$wl',
9556: # but is careful enough not to reorder.
9557: # Supported since Solaris 2.6 (maybe 2.5.1?)
9558: if test "$GCC" = yes; then
9559: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9560: else
9561: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9562: fi
9563: ;;
9564: esac
9565: link_all_deplibs=yes
9566: ;;
9567:
9568: sunos4*)
9569: if test "x$host_vendor" = xsequent; then
9570: # Use $CC to link under sequent, because it throws in some extra .o
9571: # files that make .init and .fini sections work.
9572: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9573: else
9574: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9575: fi
9576: hardcode_libdir_flag_spec='-L$libdir'
9577: hardcode_direct=yes
9578: hardcode_minus_L=yes
9579: hardcode_shlibpath_var=no
9580: ;;
9581:
9582: sysv4)
9583: case $host_vendor in
9584: sni)
9585: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586: hardcode_direct=yes # is this really true???
9587: ;;
9588: siemens)
9589: ## LD is ld it makes a PLAMLIB
9590: ## CC just makes a GrossModule.
9591: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9592: reload_cmds='$CC -r -o $output$reload_objs'
9593: hardcode_direct=no
9594: ;;
9595: motorola)
9596: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9598: ;;
9599: esac
9600: runpath_var='LD_RUN_PATH'
9601: hardcode_shlibpath_var=no
9602: ;;
9603:
9604: sysv4.3*)
9605: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606: hardcode_shlibpath_var=no
9607: export_dynamic_flag_spec='-Bexport'
9608: ;;
9609:
9610: sysv4*MP*)
9611: if test -d /usr/nec; then
9612: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613: hardcode_shlibpath_var=no
9614: runpath_var=LD_RUN_PATH
9615: hardcode_runpath_var=yes
9616: ld_shlibs=yes
9617: fi
9618: ;;
9619:
9620: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9621: no_undefined_flag='${wl}-z,text'
9622: archive_cmds_need_lc=no
9623: hardcode_shlibpath_var=no
9624: runpath_var='LD_RUN_PATH'
9625:
9626: if test "$GCC" = yes; then
9627: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629: else
9630: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632: fi
9633: ;;
9634:
9635: sysv5* | sco3.2v5* | sco5v6*)
9636: # Note: We can NOT use -z defs as we might desire, because we do not
9637: # link with -lc, and that would cause any symbols used from libc to
9638: # always be unresolved, which means just about no library would
9639: # ever link correctly. If we're not using GNU ld we use -z text
9640: # though, which does catch some bad symbols but isn't as heavy-handed
9641: # as -z defs.
9642: no_undefined_flag='${wl}-z,text'
9643: allow_undefined_flag='${wl}-z,nodefs'
9644: archive_cmds_need_lc=no
9645: hardcode_shlibpath_var=no
9646: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9647: hardcode_libdir_separator=':'
9648: link_all_deplibs=yes
9649: export_dynamic_flag_spec='${wl}-Bexport'
9650: runpath_var='LD_RUN_PATH'
9651:
9652: if test "$GCC" = yes; then
9653: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655: else
9656: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658: fi
9659: ;;
1.1 misha 9660:
1.8 moko 9661: uts4*)
9662: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663: hardcode_libdir_flag_spec='-L$libdir'
9664: hardcode_shlibpath_var=no
1.1 misha 9665: ;;
1.8 moko 9666:
1.1 misha 9667: *)
1.8 moko 9668: ld_shlibs=no
1.1 misha 9669: ;;
1.8 moko 9670: esac
9671:
9672: if test x$host_vendor = xsni; then
9673: case $host in
9674: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9675: export_dynamic_flag_spec='${wl}-Blargedynsym'
9676: ;;
9677: esac
9678: fi
1.1 misha 9679: fi
9680:
1.11 moko 9681: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9682: echo "${ECHO_T}$ld_shlibs" >&6
1.8 moko 9683: test "$ld_shlibs" = no && can_build_shared=no
9684:
9685: with_gnu_ld=$with_gnu_ld
1.1 misha 9686:
9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698:
9699:
9700:
1.8 moko 9701: #
9702: # Do we need to explicitly link libc?
9703: #
9704: case "x$archive_cmds_need_lc" in
9705: x|xyes)
9706: # Assume -lc should be added
9707: archive_cmds_need_lc=yes
9708:
9709: if test "$enable_shared" = yes && test "$GCC" = yes; then
9710: case $archive_cmds in
9711: *'~'*)
9712: # FIXME: we may have to deal with multi-command sequences.
9713: ;;
9714: '$CC '*)
9715: # Test whether the compiler implicitly links with -lc since on some
9716: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9717: # to ld, don't add -lc before -lgcc.
1.11 moko 9718: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9719: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9720: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9721: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 misha 9722: else
1.8 moko 9723: $RM conftest*
9724: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9725:
1.11 moko 9726: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 9727: (eval $ac_compile) 2>&5
9728: ac_status=$?
1.11 moko 9729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730: (exit $ac_status); } 2>conftest.err; then
1.8 moko 9731: soname=conftest
9732: lib=conftest
9733: libobjs=conftest.$ac_objext
9734: deplibs=
9735: wl=$lt_prog_compiler_wl
9736: pic_flag=$lt_prog_compiler_pic
9737: compiler_flags=-v
9738: linker_flags=-v
9739: verstring=
9740: output_objdir=.
9741: libname=conftest
9742: lt_save_allow_undefined_flag=$allow_undefined_flag
9743: allow_undefined_flag=
1.11 moko 9744: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 9745: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9746: ac_status=$?
1.11 moko 9747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748: (exit $ac_status); }
1.8 moko 9749: then
9750: lt_cv_archive_cmds_need_lc=no
9751: else
9752: lt_cv_archive_cmds_need_lc=yes
9753: fi
9754: allow_undefined_flag=$lt_save_allow_undefined_flag
9755: else
9756: cat conftest.err 1>&5
9757: fi
9758: $RM conftest*
9759:
1.1 misha 9760: fi
1.11 moko 9761: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9762: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
1.8 moko 9763: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9764: ;;
9765: esac
9766: fi
9767: ;;
9768: esac
9769:
9770:
9771:
9772:
9773:
9774:
9775:
9776:
9777:
9778:
9779:
9780:
9781:
9782:
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
1.1 misha 9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
9885:
9886:
9887:
9888:
9889:
9890:
9891:
9892:
9893:
9894:
9895:
9896:
9897:
9898:
9899:
9900:
9901:
9902:
9903:
9904:
9905:
9906:
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
1.11 moko 9921: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9922: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.1 misha 9923:
1.8 moko 9924: if test "$GCC" = yes; then
9925: case $host_os in
9926: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9927: *) lt_awk_arg="/^libraries:/" ;;
9928: esac
9929: case $host_os in
9930: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9931: *) lt_sed_strip_eq="s,=/,/,g" ;;
9932: esac
9933: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9934: case $lt_search_path_spec in
9935: *\;*)
9936: # if the path contains ";" then we assume it to be the separator
9937: # otherwise default to the standard path separator (i.e. ":") - it is
9938: # assumed that no part of a normal pathname contains ";" but that should
9939: # okay in the real world where ";" in dirpaths is itself problematic.
9940: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9941: ;;
9942: *)
9943: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9944: ;;
9945: esac
9946: # Ok, now we have the path, separated by spaces, we can step through it
9947: # and add multilib dir if necessary.
9948: lt_tmp_lt_search_path_spec=
9949: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9950: for lt_sys_path in $lt_search_path_spec; do
9951: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9952: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9953: else
9954: test -d "$lt_sys_path" && \
9955: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9956: fi
9957: done
9958: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9959: BEGIN {RS=" "; FS="/|\n";} {
9960: lt_foo="";
9961: lt_count=0;
9962: for (lt_i = NF; lt_i > 0; lt_i--) {
9963: if ($lt_i != "" && $lt_i != ".") {
9964: if ($lt_i == "..") {
9965: lt_count++;
9966: } else {
9967: if (lt_count == 0) {
9968: lt_foo="/" $lt_i lt_foo;
9969: } else {
9970: lt_count--;
9971: }
9972: }
9973: }
9974: }
9975: if (lt_foo != "") { lt_freq[lt_foo]++; }
9976: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9977: }'`
9978: # AWK program above erroneously prepends '/' to C:/dos/paths
9979: # for these hosts.
9980: case $host_os in
9981: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9982: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9983: esac
9984: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 9985: else
1.8 moko 9986: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 9987: fi
1.8 moko 9988: library_names_spec=
9989: libname_spec='lib$name'
9990: soname_spec=
9991: shrext_cmds=".so"
9992: postinstall_cmds=
9993: postuninstall_cmds=
9994: finish_cmds=
9995: finish_eval=
9996: shlibpath_var=
9997: shlibpath_overrides_runpath=unknown
9998: version_type=none
9999: dynamic_linker="$host_os ld.so"
10000: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10001: need_lib_prefix=unknown
10002: hardcode_into_libs=no
10003:
10004: # when you set need_version to no, make sure it does not cause -set_version
10005: # flags to be left without arguments
10006: need_version=unknown
10007:
10008: case $host_os in
10009: aix3*)
10010: version_type=linux # correct to gnu/linux during the next big refactor
10011: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10012: shlibpath_var=LIBPATH
10013:
10014: # AIX 3 has no versioning support, so we append a major version to the name.
10015: soname_spec='${libname}${release}${shared_ext}$major'
10016: ;;
1.1 misha 10017:
1.8 moko 10018: aix[4-9]*)
10019: version_type=linux # correct to gnu/linux during the next big refactor
10020: need_lib_prefix=no
10021: need_version=no
10022: hardcode_into_libs=yes
10023: if test "$host_cpu" = ia64; then
10024: # AIX 5 supports IA64
10025: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10026: shlibpath_var=LD_LIBRARY_PATH
10027: else
10028: # With GCC up to 2.95.x, collect2 would create an import file
10029: # for dependence libraries. The import file would start with
10030: # the line `#! .'. This would cause the generated library to
10031: # depend on `.', always an invalid library. This was fixed in
10032: # development snapshots of GCC prior to 3.0.
10033: case $host_os in
10034: aix4 | aix4.[01] | aix4.[01].*)
10035: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10036: echo ' yes '
10037: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10038: :
10039: else
10040: can_build_shared=no
10041: fi
10042: ;;
10043: esac
10044: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10045: # soname into executable. Probably we can add versioning support to
10046: # collect2, so additional links can be useful in future.
10047: if test "$aix_use_runtimelinking" = yes; then
10048: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10049: # instead of lib<name>.a to let people know that these are not
10050: # typical AIX shared libraries.
10051: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10052: else
1.8 moko 10053: # We preserve .a as extension for shared libraries through AIX4.2
10054: # and later when we are not doing run time linking.
10055: library_names_spec='${libname}${release}.a $libname.a'
10056: soname_spec='${libname}${release}${shared_ext}$major'
10057: fi
10058: shlibpath_var=LIBPATH
10059: fi
10060: ;;
10061:
10062: amigaos*)
10063: case $host_cpu in
10064: powerpc)
10065: # Since July 2007 AmigaOS4 officially supports .so libraries.
10066: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10067: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068: ;;
10069: m68k)
10070: library_names_spec='$libname.ixlibrary $libname.a'
10071: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10072: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10073: ;;
10074: esac
10075: ;;
10076:
10077: beos*)
10078: library_names_spec='${libname}${shared_ext}'
10079: dynamic_linker="$host_os ld.so"
10080: shlibpath_var=LIBRARY_PATH
10081: ;;
10082:
10083: bsdi[45]*)
10084: version_type=linux # correct to gnu/linux during the next big refactor
10085: need_version=no
10086: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087: soname_spec='${libname}${release}${shared_ext}$major'
10088: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10089: shlibpath_var=LD_LIBRARY_PATH
10090: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10091: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10092: # the default ld.so.conf also contains /usr/contrib/lib and
10093: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10094: # libtool to hard-code these into programs
10095: ;;
10096:
10097: cygwin* | mingw* | pw32* | cegcc*)
10098: version_type=windows
10099: shrext_cmds=".dll"
10100: need_version=no
10101: need_lib_prefix=no
10102:
10103: case $GCC,$cc_basename in
10104: yes,*)
10105: # gcc
10106: library_names_spec='$libname.dll.a'
10107: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10108: postinstall_cmds='base_file=`basename \${file}`~
10109: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10110: dldir=$destdir/`dirname \$dlpath`~
10111: test -d \$dldir || mkdir -p \$dldir~
10112: $install_prog $dir/$dlname \$dldir/$dlname~
10113: chmod a+x \$dldir/$dlname~
10114: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10115: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10116: fi'
10117: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10118: dlpath=$dir/\$dldll~
10119: $RM \$dlpath'
10120: shlibpath_overrides_runpath=yes
10121:
10122: case $host_os in
10123: cygwin*)
10124: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10125: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10126:
10127: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10128: ;;
10129: mingw* | cegcc*)
10130: # MinGW DLLs use traditional 'lib' prefix
10131: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132: ;;
10133: pw32*)
10134: # pw32 DLLs use 'pw' prefix rather than 'lib'
10135: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10136: ;;
10137: esac
10138: dynamic_linker='Win32 ld.exe'
10139: ;;
10140:
10141: *,cl*)
10142: # Native MSVC
10143: libname_spec='$name'
10144: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10145: library_names_spec='${libname}.dll.lib'
10146:
10147: case $build_os in
10148: mingw*)
10149: sys_lib_search_path_spec=
10150: lt_save_ifs=$IFS
10151: IFS=';'
10152: for lt_path in $LIB
10153: do
10154: IFS=$lt_save_ifs
10155: # Let DOS variable expansion print the short 8.3 style file name.
10156: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10157: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10158: done
10159: IFS=$lt_save_ifs
10160: # Convert to MSYS style.
10161: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10162: ;;
10163: cygwin*)
10164: # Convert to unix form, then to dos form, then back to unix form
10165: # but this time dos style (no spaces!) so that the unix form looks
10166: # like /cygdrive/c/PROGRA~1:/cygdr...
10167: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10168: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10169: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10170: ;;
10171: *)
10172: sys_lib_search_path_spec="$LIB"
10173: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10174: # It is most probably a Windows format PATH.
10175: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10176: else
10177: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10178: fi
10179: # FIXME: find the short name or the path components, as spaces are
10180: # common. (e.g. "Program Files" -> "PROGRA~1")
10181: ;;
10182: esac
10183:
10184: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185: postinstall_cmds='base_file=`basename \${file}`~
10186: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187: dldir=$destdir/`dirname \$dlpath`~
10188: test -d \$dldir || mkdir -p \$dldir~
10189: $install_prog $dir/$dlname \$dldir/$dlname'
10190: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10191: dlpath=$dir/\$dldll~
10192: $RM \$dlpath'
10193: shlibpath_overrides_runpath=yes
10194: dynamic_linker='Win32 link.exe'
10195: ;;
10196:
10197: *)
10198: # Assume MSVC wrapper
10199: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10200: dynamic_linker='Win32 ld.exe'
10201: ;;
10202: esac
10203: # FIXME: first we should search . and the directory the executable is in
10204: shlibpath_var=PATH
10205: ;;
10206:
10207: darwin* | rhapsody*)
10208: dynamic_linker="$host_os dyld"
10209: version_type=darwin
10210: need_lib_prefix=no
10211: need_version=no
10212: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10213: soname_spec='${libname}${release}${major}$shared_ext'
10214: shlibpath_overrides_runpath=yes
10215: shlibpath_var=DYLD_LIBRARY_PATH
10216: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 10217:
1.8 moko 10218: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10219: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10220: ;;
1.1 misha 10221:
1.8 moko 10222: dgux*)
10223: version_type=linux # correct to gnu/linux during the next big refactor
10224: need_lib_prefix=no
10225: need_version=no
10226: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10227: soname_spec='${libname}${release}${shared_ext}$major'
10228: shlibpath_var=LD_LIBRARY_PATH
10229: ;;
1.1 misha 10230:
1.8 moko 10231: freebsd* | dragonfly*)
10232: # DragonFly does not have aout. When/if they implement a new
10233: # versioning mechanism, adjust this.
10234: if test -x /usr/bin/objformat; then
10235: objformat=`/usr/bin/objformat`
1.1 misha 10236: else
1.8 moko 10237: case $host_os in
10238: freebsd[23].*) objformat=aout ;;
10239: *) objformat=elf ;;
10240: esac
1.1 misha 10241: fi
1.8 moko 10242: version_type=freebsd-$objformat
10243: case $version_type in
10244: freebsd-elf*)
10245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10246: need_version=no
10247: need_lib_prefix=no
10248: ;;
10249: freebsd-*)
10250: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10251: need_version=yes
10252: ;;
10253: esac
10254: shlibpath_var=LD_LIBRARY_PATH
10255: case $host_os in
10256: freebsd2.*)
10257: shlibpath_overrides_runpath=yes
10258: ;;
10259: freebsd3.[01]* | freebsdelf3.[01]*)
10260: shlibpath_overrides_runpath=yes
10261: hardcode_into_libs=yes
10262: ;;
10263: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10264: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10265: shlibpath_overrides_runpath=no
10266: hardcode_into_libs=yes
10267: ;;
10268: *) # from 4.6 on, and DragonFly
10269: shlibpath_overrides_runpath=yes
10270: hardcode_into_libs=yes
10271: ;;
10272: esac
10273: ;;
10274:
10275: gnu*)
10276: version_type=linux # correct to gnu/linux during the next big refactor
10277: need_lib_prefix=no
10278: need_version=no
10279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10280: soname_spec='${libname}${release}${shared_ext}$major'
10281: shlibpath_var=LD_LIBRARY_PATH
10282: shlibpath_overrides_runpath=no
10283: hardcode_into_libs=yes
10284: ;;
10285:
10286: haiku*)
10287: version_type=linux # correct to gnu/linux during the next big refactor
10288: need_lib_prefix=no
10289: need_version=no
10290: dynamic_linker="$host_os runtime_loader"
10291: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292: soname_spec='${libname}${release}${shared_ext}$major'
10293: shlibpath_var=LIBRARY_PATH
10294: shlibpath_overrides_runpath=yes
10295: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10296: hardcode_into_libs=yes
10297: ;;
10298:
10299: hpux9* | hpux10* | hpux11*)
10300: # Give a soname corresponding to the major version so that dld.sl refuses to
10301: # link against other versions.
10302: version_type=sunos
10303: need_lib_prefix=no
10304: need_version=no
10305: case $host_cpu in
10306: ia64*)
10307: shrext_cmds='.so'
10308: hardcode_into_libs=yes
10309: dynamic_linker="$host_os dld.so"
10310: shlibpath_var=LD_LIBRARY_PATH
10311: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10312: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313: soname_spec='${libname}${release}${shared_ext}$major'
10314: if test "X$HPUX_IA64_MODE" = X32; then
10315: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10316: else
10317: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10318: fi
10319: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320: ;;
10321: hppa*64*)
10322: shrext_cmds='.sl'
10323: hardcode_into_libs=yes
10324: dynamic_linker="$host_os dld.sl"
10325: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10326: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10327: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328: soname_spec='${libname}${release}${shared_ext}$major'
10329: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10330: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10331: ;;
10332: *)
10333: shrext_cmds='.sl'
10334: dynamic_linker="$host_os dld.sl"
10335: shlibpath_var=SHLIB_PATH
10336: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10337: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338: soname_spec='${libname}${release}${shared_ext}$major'
10339: ;;
10340: esac
10341: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10342: postinstall_cmds='chmod 555 $lib'
10343: # or fails outright, so override atomically:
10344: install_override_mode=555
10345: ;;
10346:
10347: interix[3-9]*)
10348: version_type=linux # correct to gnu/linux during the next big refactor
10349: need_lib_prefix=no
10350: need_version=no
10351: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10352: soname_spec='${libname}${release}${shared_ext}$major'
10353: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10354: shlibpath_var=LD_LIBRARY_PATH
10355: shlibpath_overrides_runpath=no
10356: hardcode_into_libs=yes
10357: ;;
10358:
10359: irix5* | irix6* | nonstopux*)
10360: case $host_os in
10361: nonstopux*) version_type=nonstopux ;;
10362: *)
10363: if test "$lt_cv_prog_gnu_ld" = yes; then
10364: version_type=linux # correct to gnu/linux during the next big refactor
10365: else
10366: version_type=irix
10367: fi ;;
10368: esac
10369: need_lib_prefix=no
10370: need_version=no
10371: soname_spec='${libname}${release}${shared_ext}$major'
10372: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10373: case $host_os in
10374: irix5* | nonstopux*)
10375: libsuff= shlibsuff=
10376: ;;
10377: *)
10378: case $LD in # libtool.m4 will add one of these switches to LD
10379: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10380: libsuff= shlibsuff= libmagic=32-bit;;
10381: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10382: libsuff=32 shlibsuff=N32 libmagic=N32;;
10383: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10384: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10385: *) libsuff= shlibsuff= libmagic=never-match;;
10386: esac
10387: ;;
10388: esac
10389: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10390: shlibpath_overrides_runpath=no
10391: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10392: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10393: hardcode_into_libs=yes
10394: ;;
10395:
10396: # No shared lib support for Linux oldld, aout, or coff.
10397: linux*oldld* | linux*aout* | linux*coff*)
10398: dynamic_linker=no
10399: ;;
10400:
10401: # This must be glibc/ELF.
10402: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10403: version_type=linux # correct to gnu/linux during the next big refactor
10404: need_lib_prefix=no
10405: need_version=no
10406: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407: soname_spec='${libname}${release}${shared_ext}$major'
10408: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10409: shlibpath_var=LD_LIBRARY_PATH
10410: shlibpath_overrides_runpath=no
10411:
10412: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 10413: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10414: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10415: else
10416: lt_cv_shlibpath_overrides_runpath=no
10417: save_LDFLAGS=$LDFLAGS
10418: save_libdir=$libdir
10419: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10420: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.11 moko 10421: cat >conftest.$ac_ext <<_ACEOF
10422: /* confdefs.h. */
10423: _ACEOF
10424: cat confdefs.h >>conftest.$ac_ext
10425: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10426: /* end confdefs.h. */
10427:
10428: int
10429: main ()
10430: {
10431:
10432: ;
10433: return 0;
10434: }
10435: _ACEOF
1.11 moko 10436: rm -f conftest.$ac_objext conftest$ac_exeext
10437: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438: (eval $ac_link) 2>conftest.er1
10439: ac_status=$?
10440: grep -v '^ *+' conftest.er1 >conftest.err
10441: rm -f conftest.er1
10442: cat conftest.err >&5
10443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444: (exit $ac_status); } &&
10445: { ac_try='test -z "$ac_c_werror_flag"
10446: || test ! -s conftest.err'
10447: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448: (eval $ac_try) 2>&5
10449: ac_status=$?
10450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451: (exit $ac_status); }; } &&
10452: { ac_try='test -s conftest$ac_exeext'
10453: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454: (eval $ac_try) 2>&5
10455: ac_status=$?
10456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457: (exit $ac_status); }; }; then
10458: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 10459: lt_cv_shlibpath_overrides_runpath=yes
10460: fi
1.11 moko 10461:
10462: else
10463: echo "$as_me: failed program was:" >&5
10464: sed 's/^/| /' conftest.$ac_ext >&5
10465:
1.8 moko 10466: fi
1.11 moko 10467: rm -f conftest.err conftest.$ac_objext \
10468: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10469: LDFLAGS=$save_LDFLAGS
10470: libdir=$save_libdir
10471:
10472: fi
10473:
10474: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10475:
10476: # This implies no fast_install, which is unacceptable.
10477: # Some rework will be needed to allow for fast_install
10478: # before this can be enabled.
10479: hardcode_into_libs=yes
10480:
10481: # Append ld.so.conf contents to the search path
10482: if test -f /etc/ld.so.conf; then
10483: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10484: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10485: fi
10486:
10487: # We used to test for /lib/ld.so.1 and disable shared libraries on
10488: # powerpc, because MkLinux only supported shared libraries with the
10489: # GNU dynamic linker. Since this was broken with cross compilers,
10490: # most powerpc-linux boxes support dynamic linking these days and
10491: # people can always --disable-shared, the test was removed, and we
10492: # assume the GNU/Linux dynamic linker is in use.
10493: dynamic_linker='GNU/Linux ld.so'
10494: ;;
10495:
10496: netbsd*)
10497: version_type=sunos
10498: need_lib_prefix=no
10499: need_version=no
10500: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10502: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10503: dynamic_linker='NetBSD (a.out) ld.so'
10504: else
10505: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506: soname_spec='${libname}${release}${shared_ext}$major'
10507: dynamic_linker='NetBSD ld.elf_so'
10508: fi
10509: shlibpath_var=LD_LIBRARY_PATH
10510: shlibpath_overrides_runpath=yes
10511: hardcode_into_libs=yes
10512: ;;
10513:
10514: newsos6)
10515: version_type=linux # correct to gnu/linux during the next big refactor
10516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517: shlibpath_var=LD_LIBRARY_PATH
10518: shlibpath_overrides_runpath=yes
10519: ;;
10520:
10521: *nto* | *qnx*)
10522: version_type=qnx
10523: need_lib_prefix=no
10524: need_version=no
10525: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526: soname_spec='${libname}${release}${shared_ext}$major'
10527: shlibpath_var=LD_LIBRARY_PATH
10528: shlibpath_overrides_runpath=no
10529: hardcode_into_libs=yes
10530: dynamic_linker='ldqnx.so'
10531: ;;
10532:
10533: openbsd*)
10534: version_type=sunos
10535: sys_lib_dlsearch_path_spec="/usr/lib"
10536: need_lib_prefix=no
10537: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538: case $host_os in
10539: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540: *) need_version=no ;;
10541: esac
10542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544: shlibpath_var=LD_LIBRARY_PATH
10545: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546: case $host_os in
10547: openbsd2.[89] | openbsd2.[89].*)
10548: shlibpath_overrides_runpath=no
10549: ;;
10550: *)
10551: shlibpath_overrides_runpath=yes
10552: ;;
10553: esac
1.1 misha 10554: else
1.8 moko 10555: shlibpath_overrides_runpath=yes
10556: fi
10557: ;;
10558:
10559: os2*)
10560: libname_spec='$name'
10561: shrext_cmds=".dll"
10562: need_lib_prefix=no
10563: library_names_spec='$libname${shared_ext} $libname.a'
10564: dynamic_linker='OS/2 ld.exe'
10565: shlibpath_var=LIBPATH
10566: ;;
10567:
10568: osf3* | osf4* | osf5*)
10569: version_type=osf
10570: need_lib_prefix=no
10571: need_version=no
10572: soname_spec='${libname}${release}${shared_ext}$major'
10573: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574: shlibpath_var=LD_LIBRARY_PATH
10575: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10577: ;;
10578:
10579: rdos*)
10580: dynamic_linker=no
10581: ;;
10582:
10583: solaris*)
10584: version_type=linux # correct to gnu/linux during the next big refactor
10585: need_lib_prefix=no
10586: need_version=no
10587: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588: soname_spec='${libname}${release}${shared_ext}$major'
10589: shlibpath_var=LD_LIBRARY_PATH
10590: shlibpath_overrides_runpath=yes
10591: hardcode_into_libs=yes
10592: # ldd complains unless libraries are executable
10593: postinstall_cmds='chmod +x $lib'
10594: ;;
10595:
10596: sunos4*)
10597: version_type=sunos
10598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10600: shlibpath_var=LD_LIBRARY_PATH
10601: shlibpath_overrides_runpath=yes
10602: if test "$with_gnu_ld" = yes; then
10603: need_lib_prefix=no
10604: fi
10605: need_version=yes
10606: ;;
10607:
10608: sysv4 | sysv4.3*)
10609: version_type=linux # correct to gnu/linux during the next big refactor
10610: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611: soname_spec='${libname}${release}${shared_ext}$major'
10612: shlibpath_var=LD_LIBRARY_PATH
10613: case $host_vendor in
10614: sni)
10615: shlibpath_overrides_runpath=no
10616: need_lib_prefix=no
10617: runpath_var=LD_RUN_PATH
10618: ;;
10619: siemens)
10620: need_lib_prefix=no
10621: ;;
10622: motorola)
10623: need_lib_prefix=no
10624: need_version=no
10625: shlibpath_overrides_runpath=no
10626: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10627: ;;
10628: esac
10629: ;;
10630:
10631: sysv4*MP*)
10632: if test -d /usr/nec ;then
10633: version_type=linux # correct to gnu/linux during the next big refactor
10634: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10635: soname_spec='$libname${shared_ext}.$major'
10636: shlibpath_var=LD_LIBRARY_PATH
10637: fi
10638: ;;
10639:
10640: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641: version_type=freebsd-elf
10642: need_lib_prefix=no
10643: need_version=no
10644: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645: soname_spec='${libname}${release}${shared_ext}$major'
10646: shlibpath_var=LD_LIBRARY_PATH
10647: shlibpath_overrides_runpath=yes
10648: hardcode_into_libs=yes
10649: if test "$with_gnu_ld" = yes; then
10650: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10651: else
10652: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10653: case $host_os in
10654: sco3.2v5*)
10655: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10656: ;;
10657: esac
10658: fi
10659: sys_lib_dlsearch_path_spec='/usr/lib'
10660: ;;
10661:
10662: tpf*)
10663: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10664: version_type=linux # correct to gnu/linux during the next big refactor
10665: need_lib_prefix=no
10666: need_version=no
10667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668: shlibpath_var=LD_LIBRARY_PATH
10669: shlibpath_overrides_runpath=no
10670: hardcode_into_libs=yes
10671: ;;
10672:
10673: uts4*)
10674: version_type=linux # correct to gnu/linux during the next big refactor
10675: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676: soname_spec='${libname}${release}${shared_ext}$major'
10677: shlibpath_var=LD_LIBRARY_PATH
10678: ;;
10679:
10680: *)
10681: dynamic_linker=no
10682: ;;
10683: esac
1.11 moko 10684: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10685: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 10686: test "$dynamic_linker" = no && can_build_shared=no
10687:
10688: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10689: if test "$GCC" = yes; then
10690: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10691: fi
10692:
10693: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10694: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10695: fi
10696: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10697: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10698: fi
10699:
10700:
10701:
10702:
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
1.11 moko 10791: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10792: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 10793: hardcode_action=
10794: if test -n "$hardcode_libdir_flag_spec" ||
10795: test -n "$runpath_var" ||
10796: test "X$hardcode_automatic" = "Xyes" ; then
10797:
10798: # We can hardcode non-existent directories.
10799: if test "$hardcode_direct" != no &&
10800: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10801: # have to relink, otherwise we might link with an installed library
10802: # when we should be linking with a yet-to-be-installed one
10803: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10804: test "$hardcode_minus_L" != no; then
10805: # Linking always hardcodes the temporary library directory.
10806: hardcode_action=relink
10807: else
10808: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10809: hardcode_action=immediate
10810: fi
10811: else
10812: # We cannot hardcode anything, or else we can only hardcode existing
10813: # directories.
10814: hardcode_action=unsupported
10815: fi
1.11 moko 10816: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10817: echo "${ECHO_T}$hardcode_action" >&6
1.8 moko 10818:
10819: if test "$hardcode_action" = relink ||
10820: test "$inherit_rpath" = yes; then
10821: # Fast installation is not supported
10822: enable_fast_install=no
10823: elif test "$shlibpath_overrides_runpath" = yes ||
10824: test "$enable_shared" = no; then
10825: # Fast installation is not necessary
10826: enable_fast_install=needless
10827: fi
10828:
10829:
10830:
10831:
10832:
10833:
10834: if test "x$enable_dlopen" != xyes; then
10835: enable_dlopen=unknown
10836: enable_dlopen_self=unknown
10837: enable_dlopen_self_static=unknown
10838: else
10839: lt_cv_dlopen=no
10840: lt_cv_dlopen_libs=
10841:
10842: case $host_os in
10843: beos*)
10844: lt_cv_dlopen="load_add_on"
10845: lt_cv_dlopen_libs=
10846: lt_cv_dlopen_self=yes
10847: ;;
10848:
10849: mingw* | pw32* | cegcc*)
10850: lt_cv_dlopen="LoadLibrary"
10851: lt_cv_dlopen_libs=
10852: ;;
10853:
10854: cygwin*)
10855: lt_cv_dlopen="dlopen"
10856: lt_cv_dlopen_libs=
10857: ;;
10858:
10859: darwin*)
10860: # if libdl is installed we need to link against it
1.11 moko 10861: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10862: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10863: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10864: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 10865: else
10866: ac_check_lib_save_LIBS=$LIBS
10867: LIBS="-ldl $LIBS"
1.11 moko 10868: cat >conftest.$ac_ext <<_ACEOF
10869: /* confdefs.h. */
10870: _ACEOF
10871: cat confdefs.h >>conftest.$ac_ext
10872: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 10873: /* end confdefs.h. */
10874:
1.11 moko 10875: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 10876: #ifdef __cplusplus
10877: extern "C"
10878: #endif
1.11 moko 10879: /* We use char because int might match the return type of a gcc2
10880: builtin and then its argument prototype would still apply. */
1.8 moko 10881: char dlopen ();
10882: int
10883: main ()
10884: {
1.11 moko 10885: dlopen ();
1.8 moko 10886: ;
10887: return 0;
10888: }
10889: _ACEOF
1.11 moko 10890: rm -f conftest.$ac_objext conftest$ac_exeext
10891: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10892: (eval $ac_link) 2>conftest.er1
10893: ac_status=$?
10894: grep -v '^ *+' conftest.er1 >conftest.err
10895: rm -f conftest.er1
10896: cat conftest.err >&5
10897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898: (exit $ac_status); } &&
10899: { ac_try='test -z "$ac_c_werror_flag"
10900: || test ! -s conftest.err'
10901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902: (eval $ac_try) 2>&5
10903: ac_status=$?
10904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905: (exit $ac_status); }; } &&
10906: { ac_try='test -s conftest$ac_exeext'
10907: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908: (eval $ac_try) 2>&5
10909: ac_status=$?
10910: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911: (exit $ac_status); }; }; then
1.8 moko 10912: ac_cv_lib_dl_dlopen=yes
10913: else
1.11 moko 10914: echo "$as_me: failed program was:" >&5
10915: sed 's/^/| /' conftest.$ac_ext >&5
10916:
10917: ac_cv_lib_dl_dlopen=no
1.8 moko 10918: fi
1.11 moko 10919: rm -f conftest.err conftest.$ac_objext \
10920: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10921: LIBS=$ac_check_lib_save_LIBS
10922: fi
1.11 moko 10923: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10924: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10925: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 10926: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10927: else
10928:
10929: lt_cv_dlopen="dyld"
10930: lt_cv_dlopen_libs=
10931: lt_cv_dlopen_self=yes
10932:
10933: fi
10934:
10935: ;;
10936:
10937: *)
1.11 moko 10938: echo "$as_me:$LINENO: checking for shl_load" >&5
10939: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10940: if test "${ac_cv_func_shl_load+set}" = set; then
10941: echo $ECHO_N "(cached) $ECHO_C" >&6
10942: else
10943: cat >conftest.$ac_ext <<_ACEOF
10944: /* confdefs.h. */
10945: _ACEOF
10946: cat confdefs.h >>conftest.$ac_ext
10947: cat >>conftest.$ac_ext <<_ACEOF
10948: /* end confdefs.h. */
10949: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10950: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10951: #define shl_load innocuous_shl_load
10952:
10953: /* System header to define __stub macros and hopefully few prototypes,
10954: which can conflict with char shl_load (); below.
10955: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10956: <limits.h> exists even on freestanding compilers. */
10957:
10958: #ifdef __STDC__
10959: # include <limits.h>
10960: #else
10961: # include <assert.h>
10962: #endif
10963:
10964: #undef shl_load
10965:
10966: /* Override any gcc2 internal prototype to avoid an error. */
10967: #ifdef __cplusplus
10968: extern "C"
10969: {
10970: #endif
10971: /* We use char because int might match the return type of a gcc2
10972: builtin and then its argument prototype would still apply. */
10973: char shl_load ();
10974: /* The GNU C library defines this for functions which it implements
10975: to always fail with ENOSYS. Some functions are actually named
10976: something starting with __ and the normal name is an alias. */
10977: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10978: choke me
10979: #else
10980: char (*f) () = shl_load;
10981: #endif
10982: #ifdef __cplusplus
10983: }
10984: #endif
10985:
10986: int
10987: main ()
10988: {
10989: return f != shl_load;
10990: ;
10991: return 0;
10992: }
10993: _ACEOF
10994: rm -f conftest.$ac_objext conftest$ac_exeext
10995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996: (eval $ac_link) 2>conftest.er1
10997: ac_status=$?
10998: grep -v '^ *+' conftest.er1 >conftest.err
10999: rm -f conftest.er1
11000: cat conftest.err >&5
11001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002: (exit $ac_status); } &&
11003: { ac_try='test -z "$ac_c_werror_flag"
11004: || test ! -s conftest.err'
11005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006: (eval $ac_try) 2>&5
11007: ac_status=$?
11008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009: (exit $ac_status); }; } &&
11010: { ac_try='test -s conftest$ac_exeext'
11011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012: (eval $ac_try) 2>&5
11013: ac_status=$?
11014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015: (exit $ac_status); }; }; then
11016: ac_cv_func_shl_load=yes
11017: else
11018: echo "$as_me: failed program was:" >&5
11019: sed 's/^/| /' conftest.$ac_ext >&5
11020:
11021: ac_cv_func_shl_load=no
11022: fi
11023: rm -f conftest.err conftest.$ac_objext \
11024: conftest$ac_exeext conftest.$ac_ext
11025: fi
11026: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11027: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11028: if test $ac_cv_func_shl_load = yes; then
1.8 moko 11029: lt_cv_dlopen="shl_load"
11030: else
1.11 moko 11031: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11032: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11033: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11034: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11035: else
11036: ac_check_lib_save_LIBS=$LIBS
11037: LIBS="-ldld $LIBS"
1.11 moko 11038: cat >conftest.$ac_ext <<_ACEOF
11039: /* confdefs.h. */
11040: _ACEOF
11041: cat confdefs.h >>conftest.$ac_ext
11042: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11043: /* end confdefs.h. */
11044:
1.11 moko 11045: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11046: #ifdef __cplusplus
11047: extern "C"
11048: #endif
1.11 moko 11049: /* We use char because int might match the return type of a gcc2
11050: builtin and then its argument prototype would still apply. */
1.8 moko 11051: char shl_load ();
11052: int
11053: main ()
11054: {
1.11 moko 11055: shl_load ();
1.8 moko 11056: ;
11057: return 0;
11058: }
11059: _ACEOF
1.11 moko 11060: rm -f conftest.$ac_objext conftest$ac_exeext
11061: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062: (eval $ac_link) 2>conftest.er1
11063: ac_status=$?
11064: grep -v '^ *+' conftest.er1 >conftest.err
11065: rm -f conftest.er1
11066: cat conftest.err >&5
11067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068: (exit $ac_status); } &&
11069: { ac_try='test -z "$ac_c_werror_flag"
11070: || test ! -s conftest.err'
11071: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072: (eval $ac_try) 2>&5
11073: ac_status=$?
11074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075: (exit $ac_status); }; } &&
11076: { ac_try='test -s conftest$ac_exeext'
11077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078: (eval $ac_try) 2>&5
11079: ac_status=$?
11080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081: (exit $ac_status); }; }; then
1.8 moko 11082: ac_cv_lib_dld_shl_load=yes
11083: else
1.11 moko 11084: echo "$as_me: failed program was:" >&5
11085: sed 's/^/| /' conftest.$ac_ext >&5
11086:
11087: ac_cv_lib_dld_shl_load=no
1.8 moko 11088: fi
1.11 moko 11089: rm -f conftest.err conftest.$ac_objext \
11090: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11091: LIBS=$ac_check_lib_save_LIBS
11092: fi
1.11 moko 11093: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11094: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11095: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 11096: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11097: else
1.11 moko 11098: echo "$as_me:$LINENO: checking for dlopen" >&5
11099: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11100: if test "${ac_cv_func_dlopen+set}" = set; then
11101: echo $ECHO_N "(cached) $ECHO_C" >&6
11102: else
11103: cat >conftest.$ac_ext <<_ACEOF
11104: /* confdefs.h. */
11105: _ACEOF
11106: cat confdefs.h >>conftest.$ac_ext
11107: cat >>conftest.$ac_ext <<_ACEOF
11108: /* end confdefs.h. */
11109: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11110: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111: #define dlopen innocuous_dlopen
11112:
11113: /* System header to define __stub macros and hopefully few prototypes,
11114: which can conflict with char dlopen (); below.
11115: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116: <limits.h> exists even on freestanding compilers. */
11117:
11118: #ifdef __STDC__
11119: # include <limits.h>
11120: #else
11121: # include <assert.h>
11122: #endif
11123:
11124: #undef dlopen
11125:
11126: /* Override any gcc2 internal prototype to avoid an error. */
11127: #ifdef __cplusplus
11128: extern "C"
11129: {
11130: #endif
11131: /* We use char because int might match the return type of a gcc2
11132: builtin and then its argument prototype would still apply. */
11133: char dlopen ();
11134: /* The GNU C library defines this for functions which it implements
11135: to always fail with ENOSYS. Some functions are actually named
11136: something starting with __ and the normal name is an alias. */
11137: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11138: choke me
11139: #else
11140: char (*f) () = dlopen;
11141: #endif
11142: #ifdef __cplusplus
11143: }
11144: #endif
11145:
11146: int
11147: main ()
11148: {
11149: return f != dlopen;
11150: ;
11151: return 0;
11152: }
11153: _ACEOF
11154: rm -f conftest.$ac_objext conftest$ac_exeext
11155: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156: (eval $ac_link) 2>conftest.er1
11157: ac_status=$?
11158: grep -v '^ *+' conftest.er1 >conftest.err
11159: rm -f conftest.er1
11160: cat conftest.err >&5
11161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162: (exit $ac_status); } &&
11163: { ac_try='test -z "$ac_c_werror_flag"
11164: || test ! -s conftest.err'
11165: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166: (eval $ac_try) 2>&5
11167: ac_status=$?
11168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169: (exit $ac_status); }; } &&
11170: { ac_try='test -s conftest$ac_exeext'
11171: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172: (eval $ac_try) 2>&5
11173: ac_status=$?
11174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175: (exit $ac_status); }; }; then
11176: ac_cv_func_dlopen=yes
11177: else
11178: echo "$as_me: failed program was:" >&5
11179: sed 's/^/| /' conftest.$ac_ext >&5
11180:
11181: ac_cv_func_dlopen=no
11182: fi
11183: rm -f conftest.err conftest.$ac_objext \
11184: conftest$ac_exeext conftest.$ac_ext
11185: fi
11186: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11187: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11188: if test $ac_cv_func_dlopen = yes; then
1.8 moko 11189: lt_cv_dlopen="dlopen"
11190: else
1.11 moko 11191: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11192: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11193: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11194: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11195: else
11196: ac_check_lib_save_LIBS=$LIBS
11197: LIBS="-ldl $LIBS"
1.11 moko 11198: cat >conftest.$ac_ext <<_ACEOF
11199: /* confdefs.h. */
11200: _ACEOF
11201: cat confdefs.h >>conftest.$ac_ext
11202: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11203: /* end confdefs.h. */
11204:
1.11 moko 11205: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11206: #ifdef __cplusplus
11207: extern "C"
11208: #endif
1.11 moko 11209: /* We use char because int might match the return type of a gcc2
11210: builtin and then its argument prototype would still apply. */
1.8 moko 11211: char dlopen ();
11212: int
11213: main ()
11214: {
1.11 moko 11215: dlopen ();
1.8 moko 11216: ;
11217: return 0;
11218: }
11219: _ACEOF
1.11 moko 11220: rm -f conftest.$ac_objext conftest$ac_exeext
11221: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222: (eval $ac_link) 2>conftest.er1
11223: ac_status=$?
11224: grep -v '^ *+' conftest.er1 >conftest.err
11225: rm -f conftest.er1
11226: cat conftest.err >&5
11227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228: (exit $ac_status); } &&
11229: { ac_try='test -z "$ac_c_werror_flag"
11230: || test ! -s conftest.err'
11231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232: (eval $ac_try) 2>&5
11233: ac_status=$?
11234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235: (exit $ac_status); }; } &&
11236: { ac_try='test -s conftest$ac_exeext'
11237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238: (eval $ac_try) 2>&5
11239: ac_status=$?
11240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241: (exit $ac_status); }; }; then
1.8 moko 11242: ac_cv_lib_dl_dlopen=yes
11243: else
1.11 moko 11244: echo "$as_me: failed program was:" >&5
11245: sed 's/^/| /' conftest.$ac_ext >&5
11246:
11247: ac_cv_lib_dl_dlopen=no
1.8 moko 11248: fi
1.11 moko 11249: rm -f conftest.err conftest.$ac_objext \
11250: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11251: LIBS=$ac_check_lib_save_LIBS
11252: fi
1.11 moko 11253: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11254: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11255: if test $ac_cv_lib_dl_dlopen = yes; then
1.8 moko 11256: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11257: else
1.11 moko 11258: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11259: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11260: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11261: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11262: else
11263: ac_check_lib_save_LIBS=$LIBS
11264: LIBS="-lsvld $LIBS"
1.11 moko 11265: cat >conftest.$ac_ext <<_ACEOF
11266: /* confdefs.h. */
11267: _ACEOF
11268: cat confdefs.h >>conftest.$ac_ext
11269: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11270: /* end confdefs.h. */
11271:
1.11 moko 11272: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11273: #ifdef __cplusplus
11274: extern "C"
11275: #endif
1.11 moko 11276: /* We use char because int might match the return type of a gcc2
11277: builtin and then its argument prototype would still apply. */
1.8 moko 11278: char dlopen ();
11279: int
11280: main ()
11281: {
1.11 moko 11282: dlopen ();
1.8 moko 11283: ;
11284: return 0;
11285: }
11286: _ACEOF
1.11 moko 11287: rm -f conftest.$ac_objext conftest$ac_exeext
11288: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289: (eval $ac_link) 2>conftest.er1
11290: ac_status=$?
11291: grep -v '^ *+' conftest.er1 >conftest.err
11292: rm -f conftest.er1
11293: cat conftest.err >&5
11294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295: (exit $ac_status); } &&
11296: { ac_try='test -z "$ac_c_werror_flag"
11297: || test ! -s conftest.err'
11298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299: (eval $ac_try) 2>&5
11300: ac_status=$?
11301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302: (exit $ac_status); }; } &&
11303: { ac_try='test -s conftest$ac_exeext'
11304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305: (eval $ac_try) 2>&5
11306: ac_status=$?
11307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308: (exit $ac_status); }; }; then
1.8 moko 11309: ac_cv_lib_svld_dlopen=yes
11310: else
1.11 moko 11311: echo "$as_me: failed program was:" >&5
11312: sed 's/^/| /' conftest.$ac_ext >&5
11313:
11314: ac_cv_lib_svld_dlopen=no
1.8 moko 11315: fi
1.11 moko 11316: rm -f conftest.err conftest.$ac_objext \
11317: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11318: LIBS=$ac_check_lib_save_LIBS
11319: fi
1.11 moko 11320: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11321: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11322: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 11323: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11324: else
1.11 moko 11325: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11326: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11327: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11328: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11329: else
11330: ac_check_lib_save_LIBS=$LIBS
11331: LIBS="-ldld $LIBS"
1.11 moko 11332: cat >conftest.$ac_ext <<_ACEOF
11333: /* confdefs.h. */
11334: _ACEOF
11335: cat confdefs.h >>conftest.$ac_ext
11336: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11337: /* end confdefs.h. */
11338:
1.11 moko 11339: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 11340: #ifdef __cplusplus
11341: extern "C"
11342: #endif
1.11 moko 11343: /* We use char because int might match the return type of a gcc2
11344: builtin and then its argument prototype would still apply. */
1.8 moko 11345: char dld_link ();
11346: int
11347: main ()
11348: {
1.11 moko 11349: dld_link ();
1.8 moko 11350: ;
11351: return 0;
11352: }
11353: _ACEOF
1.11 moko 11354: rm -f conftest.$ac_objext conftest$ac_exeext
11355: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356: (eval $ac_link) 2>conftest.er1
11357: ac_status=$?
11358: grep -v '^ *+' conftest.er1 >conftest.err
11359: rm -f conftest.er1
11360: cat conftest.err >&5
11361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362: (exit $ac_status); } &&
11363: { ac_try='test -z "$ac_c_werror_flag"
11364: || test ! -s conftest.err'
11365: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366: (eval $ac_try) 2>&5
11367: ac_status=$?
11368: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369: (exit $ac_status); }; } &&
11370: { ac_try='test -s conftest$ac_exeext'
11371: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372: (eval $ac_try) 2>&5
11373: ac_status=$?
11374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375: (exit $ac_status); }; }; then
1.8 moko 11376: ac_cv_lib_dld_dld_link=yes
11377: else
1.11 moko 11378: echo "$as_me: failed program was:" >&5
11379: sed 's/^/| /' conftest.$ac_ext >&5
11380:
11381: ac_cv_lib_dld_dld_link=no
1.8 moko 11382: fi
1.11 moko 11383: rm -f conftest.err conftest.$ac_objext \
11384: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11385: LIBS=$ac_check_lib_save_LIBS
11386: fi
1.11 moko 11387: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11388: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11389: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 11390: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11391: fi
11392:
11393:
11394: fi
11395:
11396:
11397: fi
11398:
11399:
11400: fi
11401:
11402:
11403: fi
11404:
11405:
11406: fi
11407:
11408: ;;
11409: esac
11410:
11411: if test "x$lt_cv_dlopen" != xno; then
11412: enable_dlopen=yes
11413: else
11414: enable_dlopen=no
11415: fi
11416:
11417: case $lt_cv_dlopen in
11418: dlopen)
11419: save_CPPFLAGS="$CPPFLAGS"
11420: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11421:
11422: save_LDFLAGS="$LDFLAGS"
11423: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11424:
11425: save_LIBS="$LIBS"
11426: LIBS="$lt_cv_dlopen_libs $LIBS"
11427:
1.11 moko 11428: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11429: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11430: if test "${lt_cv_dlopen_self+set}" = set; then
11431: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11432: else
11433: if test "$cross_compiling" = yes; then :
11434: lt_cv_dlopen_self=cross
11435: else
11436: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11437: lt_status=$lt_dlunknown
11438: cat > conftest.$ac_ext <<_LT_EOF
11439: #line $LINENO "configure"
11440: #include "confdefs.h"
11441:
11442: #if HAVE_DLFCN_H
11443: #include <dlfcn.h>
11444: #endif
11445:
11446: #include <stdio.h>
11447:
11448: #ifdef RTLD_GLOBAL
11449: # define LT_DLGLOBAL RTLD_GLOBAL
11450: #else
11451: # ifdef DL_GLOBAL
11452: # define LT_DLGLOBAL DL_GLOBAL
11453: # else
11454: # define LT_DLGLOBAL 0
11455: # endif
11456: #endif
11457:
11458: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11459: find out it does not work in some platform. */
11460: #ifndef LT_DLLAZY_OR_NOW
11461: # ifdef RTLD_LAZY
11462: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11463: # else
11464: # ifdef DL_LAZY
11465: # define LT_DLLAZY_OR_NOW DL_LAZY
11466: # else
11467: # ifdef RTLD_NOW
11468: # define LT_DLLAZY_OR_NOW RTLD_NOW
11469: # else
11470: # ifdef DL_NOW
11471: # define LT_DLLAZY_OR_NOW DL_NOW
11472: # else
11473: # define LT_DLLAZY_OR_NOW 0
11474: # endif
11475: # endif
11476: # endif
11477: # endif
11478: #endif
11479:
11480: /* When -fvisbility=hidden is used, assume the code has been annotated
11481: correspondingly for the symbols needed. */
11482: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11483: int fnord () __attribute__((visibility("default")));
11484: #endif
11485:
11486: int fnord () { return 42; }
11487: int main ()
11488: {
11489: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11490: int status = $lt_dlunknown;
11491:
11492: if (self)
11493: {
11494: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11495: else
11496: {
11497: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11498: else puts (dlerror ());
11499: }
11500: /* dlclose (self); */
11501: }
11502: else
11503: puts (dlerror ());
11504:
11505: return status;
11506: }
11507: _LT_EOF
1.11 moko 11508: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11509: (eval $ac_link) 2>&5
11510: ac_status=$?
1.11 moko 11511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11513: (./conftest; exit; ) >&5 2>/dev/null
11514: lt_status=$?
11515: case x$lt_status in
11516: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11517: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11518: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11519: esac
11520: else :
11521: # compilation failed
11522: lt_cv_dlopen_self=no
11523: fi
11524: fi
11525: rm -fr conftest*
11526:
11527:
11528: fi
1.11 moko 11529: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11530: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.8 moko 11531:
11532: if test "x$lt_cv_dlopen_self" = xyes; then
11533: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.11 moko 11534: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11535: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11536: if test "${lt_cv_dlopen_self_static+set}" = set; then
11537: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11538: else
11539: if test "$cross_compiling" = yes; then :
11540: lt_cv_dlopen_self_static=cross
11541: else
11542: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11543: lt_status=$lt_dlunknown
11544: cat > conftest.$ac_ext <<_LT_EOF
11545: #line $LINENO "configure"
11546: #include "confdefs.h"
11547:
11548: #if HAVE_DLFCN_H
11549: #include <dlfcn.h>
11550: #endif
11551:
11552: #include <stdio.h>
11553:
11554: #ifdef RTLD_GLOBAL
11555: # define LT_DLGLOBAL RTLD_GLOBAL
11556: #else
11557: # ifdef DL_GLOBAL
11558: # define LT_DLGLOBAL DL_GLOBAL
11559: # else
11560: # define LT_DLGLOBAL 0
11561: # endif
11562: #endif
11563:
11564: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11565: find out it does not work in some platform. */
11566: #ifndef LT_DLLAZY_OR_NOW
11567: # ifdef RTLD_LAZY
11568: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11569: # else
11570: # ifdef DL_LAZY
11571: # define LT_DLLAZY_OR_NOW DL_LAZY
11572: # else
11573: # ifdef RTLD_NOW
11574: # define LT_DLLAZY_OR_NOW RTLD_NOW
11575: # else
11576: # ifdef DL_NOW
11577: # define LT_DLLAZY_OR_NOW DL_NOW
11578: # else
11579: # define LT_DLLAZY_OR_NOW 0
11580: # endif
11581: # endif
11582: # endif
11583: # endif
11584: #endif
11585:
11586: /* When -fvisbility=hidden is used, assume the code has been annotated
11587: correspondingly for the symbols needed. */
11588: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11589: int fnord () __attribute__((visibility("default")));
11590: #endif
11591:
11592: int fnord () { return 42; }
11593: int main ()
11594: {
11595: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596: int status = $lt_dlunknown;
11597:
11598: if (self)
11599: {
11600: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601: else
11602: {
11603: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11604: else puts (dlerror ());
11605: }
11606: /* dlclose (self); */
11607: }
11608: else
11609: puts (dlerror ());
11610:
11611: return status;
11612: }
11613: _LT_EOF
1.11 moko 11614: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 11615: (eval $ac_link) 2>&5
11616: ac_status=$?
1.11 moko 11617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11619: (./conftest; exit; ) >&5 2>/dev/null
11620: lt_status=$?
11621: case x$lt_status in
11622: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11623: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11624: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11625: esac
11626: else :
11627: # compilation failed
11628: lt_cv_dlopen_self_static=no
11629: fi
11630: fi
11631: rm -fr conftest*
11632:
11633:
11634: fi
1.11 moko 11635: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11636: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.8 moko 11637: fi
11638:
11639: CPPFLAGS="$save_CPPFLAGS"
11640: LDFLAGS="$save_LDFLAGS"
11641: LIBS="$save_LIBS"
11642: ;;
11643: esac
11644:
11645: case $lt_cv_dlopen_self in
11646: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11647: *) enable_dlopen_self=unknown ;;
11648: esac
11649:
11650: case $lt_cv_dlopen_self_static in
11651: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11652: *) enable_dlopen_self_static=unknown ;;
11653: esac
11654: fi
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666:
11667:
11668:
11669:
11670:
11671:
11672: striplib=
11673: old_striplib=
1.11 moko 11674: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11675: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8 moko 11676: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11677: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11678: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.11 moko 11679: echo "$as_me:$LINENO: result: yes" >&5
11680: echo "${ECHO_T}yes" >&6
1.8 moko 11681: else
11682: # FIXME - insert some real tests, host_os isn't really good enough
11683: case $host_os in
11684: darwin*)
11685: if test -n "$STRIP" ; then
11686: striplib="$STRIP -x"
11687: old_striplib="$STRIP -S"
1.11 moko 11688: echo "$as_me:$LINENO: result: yes" >&5
11689: echo "${ECHO_T}yes" >&6
1.8 moko 11690: else
1.11 moko 11691: echo "$as_me:$LINENO: result: no" >&5
11692: echo "${ECHO_T}no" >&6
1.8 moko 11693: fi
11694: ;;
11695: *)
1.11 moko 11696: echo "$as_me:$LINENO: result: no" >&5
11697: echo "${ECHO_T}no" >&6
1.8 moko 11698: ;;
11699: esac
11700: fi
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713: # Report which library types will actually be built
1.11 moko 11714: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11715: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11716: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11717: echo "${ECHO_T}$can_build_shared" >&6
1.8 moko 11718:
1.11 moko 11719: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11720: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.8 moko 11721: test "$can_build_shared" = "no" && enable_shared=no
11722:
11723: # On AIX, shared libraries and static libraries use the same namespace, and
11724: # are all built from PIC.
11725: case $host_os in
11726: aix3*)
11727: test "$enable_shared" = yes && enable_static=no
11728: if test -n "$RANLIB"; then
11729: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11730: postinstall_cmds='$RANLIB $lib'
11731: fi
11732: ;;
11733:
11734: aix[4-9]*)
11735: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11736: test "$enable_shared" = yes && enable_static=no
11737: fi
11738: ;;
11739: esac
1.11 moko 11740: echo "$as_me:$LINENO: result: $enable_shared" >&5
11741: echo "${ECHO_T}$enable_shared" >&6
1.8 moko 11742:
1.11 moko 11743: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11744: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.8 moko 11745: # Make sure either enable_shared or enable_static is yes.
11746: test "$enable_shared" = yes || enable_static=yes
1.11 moko 11747: echo "$as_me:$LINENO: result: $enable_static" >&5
11748: echo "${ECHO_T}$enable_static" >&6
1.8 moko 11749:
11750:
11751:
11752:
11753: fi
11754: ac_ext=c
11755: ac_cpp='$CPP $CPPFLAGS'
11756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11759:
11760: CC="$lt_save_CC"
11761:
11762: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11763: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11764: (test "X$CXX" != "Xg++"))) ; then
1.11 moko 11765: ac_ext=cc
1.8 moko 11766: ac_cpp='$CXXCPP $CPPFLAGS'
11767: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.11 moko 11770: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11771: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.8 moko 11772: if test -z "$CXXCPP"; then
1.11 moko 11773: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11774: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 11775: else
11776: # Double quotes because CXXCPP needs to be expanded
11777: for CXXCPP in "$CXX -E" "/lib/cpp"
11778: do
11779: ac_preproc_ok=false
11780: for ac_cxx_preproc_warn_flag in '' yes
11781: do
11782: # Use a header file that comes with gcc, so configuring glibc
11783: # with a fresh cross-compiler works.
11784: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785: # <limits.h> exists even on freestanding compilers.
11786: # On the NeXT, cc -E runs the code through the compiler's parser,
11787: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11788: cat >conftest.$ac_ext <<_ACEOF
11789: /* confdefs.h. */
11790: _ACEOF
11791: cat confdefs.h >>conftest.$ac_ext
11792: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11793: /* end confdefs.h. */
11794: #ifdef __STDC__
11795: # include <limits.h>
11796: #else
11797: # include <assert.h>
11798: #endif
11799: Syntax error
11800: _ACEOF
1.11 moko 11801: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803: ac_status=$?
11804: grep -v '^ *+' conftest.er1 >conftest.err
11805: rm -f conftest.er1
11806: cat conftest.err >&5
11807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808: (exit $ac_status); } >/dev/null; then
11809: if test -s conftest.err; then
11810: ac_cpp_err=$ac_cxx_preproc_warn_flag
11811: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11812: else
11813: ac_cpp_err=
11814: fi
11815: else
11816: ac_cpp_err=yes
11817: fi
11818: if test -z "$ac_cpp_err"; then
11819: :
11820: else
11821: echo "$as_me: failed program was:" >&5
11822: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11823:
1.8 moko 11824: # Broken: fails on valid input.
11825: continue
11826: fi
1.11 moko 11827: rm -f conftest.err conftest.$ac_ext
1.8 moko 11828:
1.11 moko 11829: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11830: # can be detected and how.
1.11 moko 11831: cat >conftest.$ac_ext <<_ACEOF
11832: /* confdefs.h. */
11833: _ACEOF
11834: cat confdefs.h >>conftest.$ac_ext
11835: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11836: /* end confdefs.h. */
11837: #include <ac_nonexistent.h>
11838: _ACEOF
1.11 moko 11839: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11840: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11841: ac_status=$?
11842: grep -v '^ *+' conftest.er1 >conftest.err
11843: rm -f conftest.er1
11844: cat conftest.err >&5
11845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846: (exit $ac_status); } >/dev/null; then
11847: if test -s conftest.err; then
11848: ac_cpp_err=$ac_cxx_preproc_warn_flag
11849: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11850: else
11851: ac_cpp_err=
11852: fi
11853: else
11854: ac_cpp_err=yes
11855: fi
11856: if test -z "$ac_cpp_err"; then
1.8 moko 11857: # Broken: success on invalid input.
11858: continue
11859: else
1.11 moko 11860: echo "$as_me: failed program was:" >&5
11861: sed 's/^/| /' conftest.$ac_ext >&5
11862:
1.8 moko 11863: # Passes both tests.
11864: ac_preproc_ok=:
11865: break
11866: fi
1.11 moko 11867: rm -f conftest.err conftest.$ac_ext
1.8 moko 11868:
11869: done
11870: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11871: rm -f conftest.err conftest.$ac_ext
11872: if $ac_preproc_ok; then
1.8 moko 11873: break
11874: fi
11875:
11876: done
11877: ac_cv_prog_CXXCPP=$CXXCPP
11878:
11879: fi
11880: CXXCPP=$ac_cv_prog_CXXCPP
11881: else
11882: ac_cv_prog_CXXCPP=$CXXCPP
11883: fi
1.11 moko 11884: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11885: echo "${ECHO_T}$CXXCPP" >&6
1.8 moko 11886: ac_preproc_ok=false
11887: for ac_cxx_preproc_warn_flag in '' yes
11888: do
11889: # Use a header file that comes with gcc, so configuring glibc
11890: # with a fresh cross-compiler works.
11891: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892: # <limits.h> exists even on freestanding compilers.
11893: # On the NeXT, cc -E runs the code through the compiler's parser,
11894: # not just through cpp. "Syntax error" is here to catch this case.
1.11 moko 11895: cat >conftest.$ac_ext <<_ACEOF
11896: /* confdefs.h. */
11897: _ACEOF
11898: cat confdefs.h >>conftest.$ac_ext
11899: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11900: /* end confdefs.h. */
11901: #ifdef __STDC__
11902: # include <limits.h>
11903: #else
11904: # include <assert.h>
11905: #endif
11906: Syntax error
11907: _ACEOF
1.11 moko 11908: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11909: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11910: ac_status=$?
11911: grep -v '^ *+' conftest.er1 >conftest.err
11912: rm -f conftest.er1
11913: cat conftest.err >&5
11914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915: (exit $ac_status); } >/dev/null; then
11916: if test -s conftest.err; then
11917: ac_cpp_err=$ac_cxx_preproc_warn_flag
11918: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11919: else
11920: ac_cpp_err=
11921: fi
11922: else
11923: ac_cpp_err=yes
11924: fi
11925: if test -z "$ac_cpp_err"; then
11926: :
11927: else
11928: echo "$as_me: failed program was:" >&5
11929: sed 's/^/| /' conftest.$ac_ext >&5
1.10 moko 11930:
11931: # Broken: fails on valid input.
1.8 moko 11932: continue
11933: fi
1.11 moko 11934: rm -f conftest.err conftest.$ac_ext
1.8 moko 11935:
1.11 moko 11936: # OK, works on sane cases. Now check whether non-existent headers
1.8 moko 11937: # can be detected and how.
1.11 moko 11938: cat >conftest.$ac_ext <<_ACEOF
11939: /* confdefs.h. */
11940: _ACEOF
11941: cat confdefs.h >>conftest.$ac_ext
11942: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 11943: /* end confdefs.h. */
11944: #include <ac_nonexistent.h>
11945: _ACEOF
1.11 moko 11946: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11947: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11948: ac_status=$?
11949: grep -v '^ *+' conftest.er1 >conftest.err
11950: rm -f conftest.er1
11951: cat conftest.err >&5
11952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953: (exit $ac_status); } >/dev/null; then
11954: if test -s conftest.err; then
11955: ac_cpp_err=$ac_cxx_preproc_warn_flag
11956: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11957: else
11958: ac_cpp_err=
11959: fi
11960: else
11961: ac_cpp_err=yes
11962: fi
11963: if test -z "$ac_cpp_err"; then
1.8 moko 11964: # Broken: success on invalid input.
11965: continue
11966: else
1.11 moko 11967: echo "$as_me: failed program was:" >&5
11968: sed 's/^/| /' conftest.$ac_ext >&5
11969:
1.8 moko 11970: # Passes both tests.
11971: ac_preproc_ok=:
11972: break
11973: fi
1.11 moko 11974: rm -f conftest.err conftest.$ac_ext
1.8 moko 11975:
11976: done
11977: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.11 moko 11978: rm -f conftest.err conftest.$ac_ext
11979: if $ac_preproc_ok; then
11980: :
1.8 moko 11981: else
1.11 moko 11982: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11983: See \`config.log' for more details." >&5
11984: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11985: See \`config.log' for more details." >&2;}
11986: { (exit 1); exit 1; }; }
1.8 moko 11987: fi
11988:
11989: ac_ext=c
11990: ac_cpp='$CPP $CPPFLAGS'
11991: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994:
11995: else
11996: _lt_caught_CXX_error=yes
11997: fi
11998:
1.11 moko 11999: ac_ext=cc
1.8 moko 12000: ac_cpp='$CXXCPP $CPPFLAGS'
12001: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12002: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12003: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12004:
12005: archive_cmds_need_lc_CXX=no
12006: allow_undefined_flag_CXX=
12007: always_export_symbols_CXX=no
12008: archive_expsym_cmds_CXX=
12009: compiler_needs_object_CXX=no
12010: export_dynamic_flag_spec_CXX=
12011: hardcode_direct_CXX=no
12012: hardcode_direct_absolute_CXX=no
12013: hardcode_libdir_flag_spec_CXX=
12014: hardcode_libdir_separator_CXX=
12015: hardcode_minus_L_CXX=no
12016: hardcode_shlibpath_var_CXX=unsupported
12017: hardcode_automatic_CXX=no
12018: inherit_rpath_CXX=no
12019: module_cmds_CXX=
12020: module_expsym_cmds_CXX=
12021: link_all_deplibs_CXX=unknown
12022: old_archive_cmds_CXX=$old_archive_cmds
12023: reload_flag_CXX=$reload_flag
12024: reload_cmds_CXX=$reload_cmds
12025: no_undefined_flag_CXX=
12026: whole_archive_flag_spec_CXX=
12027: enable_shared_with_static_runtimes_CXX=no
12028:
12029: # Source file extension for C++ test sources.
12030: ac_ext=cpp
12031:
12032: # Object file extension for compiled C++ test sources.
12033: objext=o
12034: objext_CXX=$objext
12035:
12036: # No sense in running all these tests if we already determined that
12037: # the CXX compiler isn't working. Some variables (like enable_shared)
12038: # are currently assumed to apply to all compilers on this platform,
12039: # and will be corrupted by setting them based on a non-working compiler.
12040: if test "$_lt_caught_CXX_error" != yes; then
12041: # Code to be used in simple compile tests
12042: lt_simple_compile_test_code="int some_variable = 0;"
12043:
12044: # Code to be used in simple link tests
12045: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12046:
12047: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12048:
12049:
12050:
12051:
12052:
12053:
12054: # If no C compiler was specified, use CC.
12055: LTCC=${LTCC-"$CC"}
12056:
12057: # If no C compiler flags were specified, use CFLAGS.
12058: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12059:
12060: # Allow CC to be a program name with arguments.
12061: compiler=$CC
12062:
12063:
12064: # save warnings/boilerplate of simple test code
12065: ac_outfile=conftest.$ac_objext
12066: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12067: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12068: _lt_compiler_boilerplate=`cat conftest.err`
12069: $RM conftest*
12070:
12071: ac_outfile=conftest.$ac_objext
12072: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12073: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12074: _lt_linker_boilerplate=`cat conftest.err`
12075: $RM -r conftest*
12076:
12077:
12078: # Allow CC to be a program name with arguments.
12079: lt_save_CC=$CC
12080: lt_save_CFLAGS=$CFLAGS
12081: lt_save_LD=$LD
12082: lt_save_GCC=$GCC
12083: GCC=$GXX
12084: lt_save_with_gnu_ld=$with_gnu_ld
12085: lt_save_path_LD=$lt_cv_path_LD
12086: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12087: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12088: else
12089: $as_unset lt_cv_prog_gnu_ld
12090: fi
12091: if test -n "${lt_cv_path_LDCXX+set}"; then
12092: lt_cv_path_LD=$lt_cv_path_LDCXX
12093: else
12094: $as_unset lt_cv_path_LD
12095: fi
12096: test -z "${LDCXX+set}" || LD=$LDCXX
12097: CC=${CXX-"c++"}
12098: CFLAGS=$CXXFLAGS
12099: compiler=$CC
12100: compiler_CXX=$CC
12101: for cc_temp in $compiler""; do
12102: case $cc_temp in
12103: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12104: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12105: \-*) ;;
12106: *) break;;
12107: esac
12108: done
12109: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12110:
12111:
12112: if test -n "$compiler"; then
12113: # We don't want -fno-exception when compiling C++ code, so set the
12114: # no_builtin_flag separately
12115: if test "$GXX" = yes; then
12116: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12117: else
12118: lt_prog_compiler_no_builtin_flag_CXX=
12119: fi
12120:
12121: if test "$GXX" = yes; then
12122: # Set up default GNU C++ configuration
12123:
12124:
12125:
1.11 moko 12126: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12127: if test "${with_gnu_ld+set}" = set; then
12128: withval="$with_gnu_ld"
12129: test "$withval" = no || with_gnu_ld=yes
1.8 moko 12130: else
12131: with_gnu_ld=no
1.11 moko 12132: fi;
1.8 moko 12133: ac_prog=ld
12134: if test "$GCC" = yes; then
12135: # Check if gcc -print-prog-name=ld gives a path.
1.11 moko 12136: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12137: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.8 moko 12138: case $host in
12139: *-*-mingw*)
12140: # gcc leaves a trailing carriage return which upsets mingw
12141: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12142: *)
12143: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12144: esac
12145: case $ac_prog in
12146: # Accept absolute paths.
12147: [\\/]* | ?:[\\/]*)
12148: re_direlt='/[^/][^/]*/\.\./'
12149: # Canonicalize the pathname of ld
12150: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12151: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12152: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12153: done
12154: test -z "$LD" && LD="$ac_prog"
12155: ;;
12156: "")
12157: # If it fails, then pretend we aren't using GCC.
12158: ac_prog=ld
12159: ;;
12160: *)
12161: # If it is relative, then search for the first ld in PATH.
12162: with_gnu_ld=unknown
12163: ;;
12164: esac
12165: elif test "$with_gnu_ld" = yes; then
1.11 moko 12166: echo "$as_me:$LINENO: checking for GNU ld" >&5
12167: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.8 moko 12168: else
1.11 moko 12169: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12170: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.8 moko 12171: fi
1.11 moko 12172: if test "${lt_cv_path_LD+set}" = set; then
12173: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12174: else
12175: if test -z "$LD"; then
12176: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12177: for ac_dir in $PATH; do
12178: IFS="$lt_save_ifs"
12179: test -z "$ac_dir" && ac_dir=.
12180: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12181: lt_cv_path_LD="$ac_dir/$ac_prog"
12182: # Check to see if the program is GNU ld. I'd rather use --version,
12183: # but apparently some variants of GNU ld only accept -v.
12184: # Break only if it was the GNU/non-GNU ld that we prefer.
12185: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12186: *GNU* | *'with BFD'*)
12187: test "$with_gnu_ld" != no && break
12188: ;;
12189: *)
12190: test "$with_gnu_ld" != yes && break
12191: ;;
12192: esac
12193: fi
12194: done
12195: IFS="$lt_save_ifs"
12196: else
12197: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12198: fi
12199: fi
12200:
12201: LD="$lt_cv_path_LD"
12202: if test -n "$LD"; then
1.11 moko 12203: echo "$as_me:$LINENO: result: $LD" >&5
12204: echo "${ECHO_T}$LD" >&6
1.8 moko 12205: else
1.11 moko 12206: echo "$as_me:$LINENO: result: no" >&5
12207: echo "${ECHO_T}no" >&6
1.8 moko 12208: fi
1.11 moko 12209: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12210: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12211: { (exit 1); exit 1; }; }
12212: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12213: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12214: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12215: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12216: else
12217: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12218: case `$LD -v 2>&1 </dev/null` in
12219: *GNU* | *'with BFD'*)
12220: lt_cv_prog_gnu_ld=yes
12221: ;;
12222: *)
12223: lt_cv_prog_gnu_ld=no
12224: ;;
12225: esac
12226: fi
1.11 moko 12227: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12228: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.8 moko 12229: with_gnu_ld=$lt_cv_prog_gnu_ld
12230:
12231:
12232:
12233:
12234:
12235:
12236:
12237: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12238: # archiving commands below assume that GNU ld is being used.
12239: if test "$with_gnu_ld" = yes; then
12240: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12241: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12242:
12243: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12244: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12245:
12246: # If archive_cmds runs LD, not CC, wlarc should be empty
12247: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12248: # investigate it a little bit more. (MM)
12249: wlarc='${wl}'
12250:
12251: # ancient GNU ld didn't support --whole-archive et. al.
12252: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12253: $GREP 'no-whole-archive' > /dev/null; then
12254: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12255: else
12256: whole_archive_flag_spec_CXX=
12257: fi
12258: else
12259: with_gnu_ld=no
12260: wlarc=
12261:
12262: # A generic and very simple default shared library creation
12263: # command for GNU C++ for the case where it uses the native
12264: # linker, instead of GNU ld. If possible, this setting should
12265: # overridden to take advantage of the native linker features on
12266: # the platform it is being used on.
12267: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12268: fi
12269:
12270: # Commands to make compiler produce verbose output that lists
12271: # what "hidden" libraries, object files and flags are used when
12272: # linking a shared library.
12273: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12274:
12275: else
12276: GXX=no
12277: with_gnu_ld=no
12278: wlarc=
12279: fi
12280:
12281: # PORTME: fill in a description of your system's C++ link characteristics
1.11 moko 12282: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12283: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 12284: ld_shlibs_CXX=yes
12285: case $host_os in
12286: aix3*)
12287: # FIXME: insert proper C++ library support
12288: ld_shlibs_CXX=no
12289: ;;
12290: aix[4-9]*)
12291: if test "$host_cpu" = ia64; then
12292: # On IA64, the linker does run time linking by default, so we don't
12293: # have to do anything special.
12294: aix_use_runtimelinking=no
12295: exp_sym_flag='-Bexport'
12296: no_entry_flag=""
12297: else
12298: aix_use_runtimelinking=no
12299:
12300: # Test if we are trying to use run time linking or normal
12301: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12302: # need to do runtime linking.
12303: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12304: for ld_flag in $LDFLAGS; do
12305: case $ld_flag in
12306: *-brtl*)
12307: aix_use_runtimelinking=yes
12308: break
12309: ;;
12310: esac
12311: done
12312: ;;
12313: esac
12314:
12315: exp_sym_flag='-bexport'
12316: no_entry_flag='-bnoentry'
12317: fi
12318:
12319: # When large executables or shared objects are built, AIX ld can
12320: # have problems creating the table of contents. If linking a library
12321: # or program results in "error TOC overflow" add -mminimal-toc to
12322: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12323: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12324:
12325: archive_cmds_CXX=''
12326: hardcode_direct_CXX=yes
12327: hardcode_direct_absolute_CXX=yes
12328: hardcode_libdir_separator_CXX=':'
12329: link_all_deplibs_CXX=yes
12330: file_list_spec_CXX='${wl}-f,'
12331:
12332: if test "$GXX" = yes; then
12333: case $host_os in aix4.[012]|aix4.[012].*)
12334: # We only want to do this on AIX 4.2 and lower, the check
12335: # below for broken collect2 doesn't work under 4.3+
12336: collect2name=`${CC} -print-prog-name=collect2`
12337: if test -f "$collect2name" &&
12338: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12339: then
12340: # We have reworked collect2
12341: :
12342: else
12343: # We have old collect2
12344: hardcode_direct_CXX=unsupported
12345: # It fails to find uninstalled libraries when the uninstalled
12346: # path is not listed in the libpath. Setting hardcode_minus_L
12347: # to unsupported forces relinking
12348: hardcode_minus_L_CXX=yes
12349: hardcode_libdir_flag_spec_CXX='-L$libdir'
12350: hardcode_libdir_separator_CXX=
12351: fi
12352: esac
12353: shared_flag='-shared'
12354: if test "$aix_use_runtimelinking" = yes; then
12355: shared_flag="$shared_flag "'${wl}-G'
12356: fi
12357: else
12358: # not using gcc
12359: if test "$host_cpu" = ia64; then
12360: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12361: # chokes on -Wl,-G. The following line is correct:
12362: shared_flag='-G'
12363: else
12364: if test "$aix_use_runtimelinking" = yes; then
12365: shared_flag='${wl}-G'
12366: else
12367: shared_flag='${wl}-bM:SRE'
12368: fi
12369: fi
12370: fi
12371:
12372: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12373: # It seems that -bexpall does not export symbols beginning with
12374: # underscore (_), so it is better to generate a list of symbols to
12375: # export.
12376: always_export_symbols_CXX=yes
12377: if test "$aix_use_runtimelinking" = yes; then
12378: # Warning - without using the other runtime loading flags (-brtl),
12379: # -berok will link without error, but may produce a broken library.
12380: allow_undefined_flag_CXX='-berok'
12381: # Determine the default libpath from the value encoded in an empty
12382: # executable.
12383: if test "${lt_cv_aix_libpath+set}" = set; then
12384: aix_libpath=$lt_cv_aix_libpath
12385: else
1.11 moko 12386: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12387: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12388: else
1.11 moko 12389: cat >conftest.$ac_ext <<_ACEOF
12390: /* confdefs.h. */
12391: _ACEOF
12392: cat confdefs.h >>conftest.$ac_ext
12393: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12394: /* end confdefs.h. */
12395:
12396: int
12397: main ()
12398: {
12399:
12400: ;
12401: return 0;
12402: }
12403: _ACEOF
1.11 moko 12404: rm -f conftest.$ac_objext conftest$ac_exeext
12405: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12406: (eval $ac_link) 2>conftest.er1
12407: ac_status=$?
12408: grep -v '^ *+' conftest.er1 >conftest.err
12409: rm -f conftest.er1
12410: cat conftest.err >&5
12411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412: (exit $ac_status); } &&
12413: { ac_try='test -z "$ac_cxx_werror_flag"
12414: || test ! -s conftest.err'
12415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416: (eval $ac_try) 2>&5
12417: ac_status=$?
12418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419: (exit $ac_status); }; } &&
12420: { ac_try='test -s conftest$ac_exeext'
12421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422: (eval $ac_try) 2>&5
12423: ac_status=$?
12424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425: (exit $ac_status); }; }; then
1.8 moko 12426:
12427: lt_aix_libpath_sed='
12428: /Import File Strings/,/^$/ {
12429: /^0/ {
12430: s/^0 *\([^ ]*\) *$/\1/
12431: p
12432: }
12433: }'
12434: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12435: # Check for a 64-bit object if we didn't find anything.
12436: if test -z "$lt_cv_aix_libpath__CXX"; then
12437: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12438: fi
1.11 moko 12439: else
12440: echo "$as_me: failed program was:" >&5
12441: sed 's/^/| /' conftest.$ac_ext >&5
12442:
1.8 moko 12443: fi
1.11 moko 12444: rm -f conftest.err conftest.$ac_objext \
12445: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12446: if test -z "$lt_cv_aix_libpath__CXX"; then
12447: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12448: fi
12449:
12450: fi
12451:
12452: aix_libpath=$lt_cv_aix_libpath__CXX
12453: fi
12454:
12455: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12456:
12457: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12458: else
12459: if test "$host_cpu" = ia64; then
12460: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12461: allow_undefined_flag_CXX="-z nodefs"
12462: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12463: else
12464: # Determine the default libpath from the value encoded in an
12465: # empty executable.
12466: if test "${lt_cv_aix_libpath+set}" = set; then
12467: aix_libpath=$lt_cv_aix_libpath
12468: else
1.11 moko 12469: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12470: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 12471: else
1.11 moko 12472: cat >conftest.$ac_ext <<_ACEOF
12473: /* confdefs.h. */
12474: _ACEOF
12475: cat confdefs.h >>conftest.$ac_ext
12476: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 12477: /* end confdefs.h. */
12478:
12479: int
12480: main ()
12481: {
12482:
12483: ;
12484: return 0;
12485: }
12486: _ACEOF
1.11 moko 12487: rm -f conftest.$ac_objext conftest$ac_exeext
12488: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489: (eval $ac_link) 2>conftest.er1
12490: ac_status=$?
12491: grep -v '^ *+' conftest.er1 >conftest.err
12492: rm -f conftest.er1
12493: cat conftest.err >&5
12494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495: (exit $ac_status); } &&
12496: { ac_try='test -z "$ac_cxx_werror_flag"
12497: || test ! -s conftest.err'
12498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499: (eval $ac_try) 2>&5
12500: ac_status=$?
12501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502: (exit $ac_status); }; } &&
12503: { ac_try='test -s conftest$ac_exeext'
12504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505: (eval $ac_try) 2>&5
12506: ac_status=$?
12507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508: (exit $ac_status); }; }; then
1.8 moko 12509:
12510: lt_aix_libpath_sed='
12511: /Import File Strings/,/^$/ {
12512: /^0/ {
12513: s/^0 *\([^ ]*\) *$/\1/
12514: p
12515: }
12516: }'
12517: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12518: # Check for a 64-bit object if we didn't find anything.
12519: if test -z "$lt_cv_aix_libpath__CXX"; then
12520: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12521: fi
1.11 moko 12522: else
12523: echo "$as_me: failed program was:" >&5
12524: sed 's/^/| /' conftest.$ac_ext >&5
12525:
1.8 moko 12526: fi
1.11 moko 12527: rm -f conftest.err conftest.$ac_objext \
12528: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12529: if test -z "$lt_cv_aix_libpath__CXX"; then
12530: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12531: fi
12532:
12533: fi
12534:
12535: aix_libpath=$lt_cv_aix_libpath__CXX
12536: fi
12537:
12538: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12539: # Warning - without using the other run time loading flags,
12540: # -berok will link without error, but may produce a broken library.
12541: no_undefined_flag_CXX=' ${wl}-bernotok'
12542: allow_undefined_flag_CXX=' ${wl}-berok'
12543: if test "$with_gnu_ld" = yes; then
12544: # We only use this code for GNU lds that support --whole-archive.
12545: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12546: else
12547: # Exported symbols can be pulled into shared objects from archives
12548: whole_archive_flag_spec_CXX='$convenience'
12549: fi
12550: archive_cmds_need_lc_CXX=yes
12551: # This is similar to how AIX traditionally builds its shared
12552: # libraries.
12553: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12554: fi
12555: fi
12556: ;;
12557:
12558: beos*)
12559: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12560: allow_undefined_flag_CXX=unsupported
12561: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12562: # support --undefined. This deserves some investigation. FIXME
12563: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12564: else
12565: ld_shlibs_CXX=no
12566: fi
12567: ;;
12568:
12569: chorus*)
12570: case $cc_basename in
12571: *)
12572: # FIXME: insert proper C++ library support
12573: ld_shlibs_CXX=no
12574: ;;
12575: esac
12576: ;;
12577:
12578: cygwin* | mingw* | pw32* | cegcc*)
12579: case $GXX,$cc_basename in
12580: ,cl* | no,cl*)
12581: # Native MSVC
12582: # hardcode_libdir_flag_spec is actually meaningless, as there is
12583: # no search path for DLLs.
12584: hardcode_libdir_flag_spec_CXX=' '
12585: allow_undefined_flag_CXX=unsupported
12586: always_export_symbols_CXX=yes
12587: file_list_spec_CXX='@'
12588: # Tell ltmain to make .lib files, not .a files.
12589: libext=lib
12590: # Tell ltmain to make .dll files, not .so files.
12591: shrext_cmds=".dll"
12592: # FIXME: Setting linknames here is a bad hack.
12593: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12594: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12595: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12596: else
12597: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12598: fi~
12599: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12600: linknames='
12601: # The linker will not automatically build a static lib if we build a DLL.
12602: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12603: enable_shared_with_static_runtimes_CXX=yes
12604: # Don't use ranlib
12605: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12606: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12607: lt_tool_outputfile="@TOOL_OUTPUT@"~
12608: case $lt_outputfile in
12609: *.exe|*.EXE) ;;
12610: *)
12611: lt_outputfile="$lt_outputfile.exe"
12612: lt_tool_outputfile="$lt_tool_outputfile.exe"
12613: ;;
12614: esac~
12615: func_to_tool_file "$lt_outputfile"~
12616: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12617: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12618: $RM "$lt_outputfile.manifest";
12619: fi'
12620: ;;
12621: *)
12622: # g++
12623: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12624: # as there is no search path for DLLs.
12625: hardcode_libdir_flag_spec_CXX='-L$libdir'
12626: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12627: allow_undefined_flag_CXX=unsupported
12628: always_export_symbols_CXX=no
12629: enable_shared_with_static_runtimes_CXX=yes
12630:
12631: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12632: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12633: # If the export-symbols file already is a .def file (1st line
12634: # is EXPORTS), use it as is; otherwise, prepend...
12635: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12636: cp $export_symbols $output_objdir/$soname.def;
12637: else
12638: echo EXPORTS > $output_objdir/$soname.def;
12639: cat $export_symbols >> $output_objdir/$soname.def;
12640: fi~
12641: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12642: else
12643: ld_shlibs_CXX=no
12644: fi
12645: ;;
12646: esac
12647: ;;
12648: darwin* | rhapsody*)
12649:
12650:
12651: archive_cmds_need_lc_CXX=no
12652: hardcode_direct_CXX=no
12653: hardcode_automatic_CXX=yes
12654: hardcode_shlibpath_var_CXX=unsupported
12655: if test "$lt_cv_ld_force_load" = "yes"; then
12656: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12657:
12658: else
12659: whole_archive_flag_spec_CXX=''
12660: fi
12661: link_all_deplibs_CXX=yes
12662: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12663: case $cc_basename in
12664: ifort*) _lt_dar_can_shared=yes ;;
12665: *) _lt_dar_can_shared=$GCC ;;
12666: esac
12667: if test "$_lt_dar_can_shared" = "yes"; then
12668: output_verbose_link_cmd=func_echo_all
12669: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12670: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12671: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12672: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12673: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12674: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12675: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12676: fi
12677:
12678: else
12679: ld_shlibs_CXX=no
12680: fi
12681:
12682: ;;
12683:
12684: dgux*)
12685: case $cc_basename in
12686: ec++*)
12687: # FIXME: insert proper C++ library support
12688: ld_shlibs_CXX=no
12689: ;;
12690: ghcx*)
12691: # Green Hills C++ Compiler
12692: # FIXME: insert proper C++ library support
12693: ld_shlibs_CXX=no
12694: ;;
12695: *)
12696: # FIXME: insert proper C++ library support
12697: ld_shlibs_CXX=no
12698: ;;
12699: esac
12700: ;;
12701:
12702: freebsd2.*)
12703: # C++ shared libraries reported to be fairly broken before
12704: # switch to ELF
12705: ld_shlibs_CXX=no
12706: ;;
12707:
12708: freebsd-elf*)
12709: archive_cmds_need_lc_CXX=no
12710: ;;
12711:
12712: freebsd* | dragonfly*)
12713: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12714: # conventions
12715: ld_shlibs_CXX=yes
12716: ;;
12717:
12718: gnu*)
12719: ;;
12720:
12721: haiku*)
12722: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723: link_all_deplibs_CXX=yes
12724: ;;
12725:
12726: hpux9*)
12727: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12728: hardcode_libdir_separator_CXX=:
12729: export_dynamic_flag_spec_CXX='${wl}-E'
12730: hardcode_direct_CXX=yes
12731: hardcode_minus_L_CXX=yes # Not in the search PATH,
12732: # but as the default
12733: # location of the library.
12734:
12735: case $cc_basename in
12736: CC*)
12737: # FIXME: insert proper C++ library support
12738: ld_shlibs_CXX=no
12739: ;;
12740: aCC*)
12741: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12742: # Commands to make compiler produce verbose output that lists
12743: # what "hidden" libraries, object files and flags are used when
12744: # linking a shared library.
12745: #
12746: # There doesn't appear to be a way to prevent this compiler from
12747: # explicitly linking system object files so we need to strip them
12748: # from the output so that they don't get included in the library
12749: # dependencies.
12750: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12751: ;;
12752: *)
12753: if test "$GXX" = yes; then
12754: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12755: else
12756: # FIXME: insert proper C++ library support
12757: ld_shlibs_CXX=no
12758: fi
12759: ;;
12760: esac
12761: ;;
12762:
12763: hpux10*|hpux11*)
12764: if test $with_gnu_ld = no; then
12765: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12766: hardcode_libdir_separator_CXX=:
12767:
12768: case $host_cpu in
12769: hppa*64*|ia64*)
12770: ;;
12771: *)
12772: export_dynamic_flag_spec_CXX='${wl}-E'
12773: ;;
12774: esac
12775: fi
12776: case $host_cpu in
12777: hppa*64*|ia64*)
12778: hardcode_direct_CXX=no
12779: hardcode_shlibpath_var_CXX=no
12780: ;;
12781: *)
12782: hardcode_direct_CXX=yes
12783: hardcode_direct_absolute_CXX=yes
12784: hardcode_minus_L_CXX=yes # Not in the search PATH,
12785: # but as the default
12786: # location of the library.
12787: ;;
12788: esac
12789:
12790: case $cc_basename in
12791: CC*)
12792: # FIXME: insert proper C++ library support
12793: ld_shlibs_CXX=no
12794: ;;
12795: aCC*)
12796: case $host_cpu in
12797: hppa*64*)
12798: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12799: ;;
12800: ia64*)
12801: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12802: ;;
12803: *)
12804: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12805: ;;
12806: esac
12807: # Commands to make compiler produce verbose output that lists
12808: # what "hidden" libraries, object files and flags are used when
12809: # linking a shared library.
12810: #
12811: # There doesn't appear to be a way to prevent this compiler from
12812: # explicitly linking system object files so we need to strip them
12813: # from the output so that they don't get included in the library
12814: # dependencies.
12815: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12816: ;;
12817: *)
12818: if test "$GXX" = yes; then
12819: if test $with_gnu_ld = no; then
12820: case $host_cpu in
12821: hppa*64*)
12822: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823: ;;
12824: ia64*)
12825: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826: ;;
12827: *)
12828: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829: ;;
12830: esac
12831: fi
12832: else
12833: # FIXME: insert proper C++ library support
12834: ld_shlibs_CXX=no
12835: fi
12836: ;;
12837: esac
12838: ;;
12839:
12840: interix[3-9]*)
12841: hardcode_direct_CXX=no
12842: hardcode_shlibpath_var_CXX=no
12843: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12844: export_dynamic_flag_spec_CXX='${wl}-E'
12845: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12846: # Instead, shared libraries are loaded at an image base (0x10000000 by
12847: # default) and relocated if they conflict, which is a slow very memory
12848: # consuming and fragmenting process. To avoid this, we pick a random,
12849: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12850: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12851: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12852: archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12853: ;;
12854: irix5* | irix6*)
12855: case $cc_basename in
12856: CC*)
12857: # SGI C++
12858: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12859:
12860: # Archives containing C++ object files must be created using
12861: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12862: # necessary to make sure instantiated templates are included
12863: # in the archive.
12864: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12865: ;;
12866: *)
12867: if test "$GXX" = yes; then
12868: if test "$with_gnu_ld" = no; then
12869: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12870: else
12871: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12872: fi
12873: fi
12874: link_all_deplibs_CXX=yes
12875: ;;
12876: esac
12877: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878: hardcode_libdir_separator_CXX=:
12879: inherit_rpath_CXX=yes
12880: ;;
12881:
12882: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12883: case $cc_basename in
12884: KCC*)
12885: # Kuck and Associates, Inc. (KAI) C++ Compiler
12886:
12887: # KCC will only create a shared library if the output file
12888: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12889: # to its proper name (with version) after linking.
12890: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12891: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12892: # Commands to make compiler produce verbose output that lists
12893: # what "hidden" libraries, object files and flags are used when
12894: # linking a shared library.
12895: #
12896: # There doesn't appear to be a way to prevent this compiler from
12897: # explicitly linking system object files so we need to strip them
12898: # from the output so that they don't get included in the library
12899: # dependencies.
12900: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12901:
12902: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12903: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12904:
12905: # Archives containing C++ object files must be created using
12906: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12907: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12908: ;;
12909: icpc* | ecpc* )
12910: # Intel C++
12911: with_gnu_ld=yes
12912: # version 8.0 and above of icpc choke on multiply defined symbols
12913: # if we add $predep_objects and $postdep_objects, however 7.1 and
12914: # earlier do not add the objects themselves.
12915: case `$CC -V 2>&1` in
12916: *"Version 7."*)
12917: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12919: ;;
12920: *) # Version 8.0 or newer
12921: tmp_idyn=
12922: case $host_cpu in
12923: ia64*) tmp_idyn=' -i_dynamic';;
12924: esac
12925: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12927: ;;
12928: esac
12929: archive_cmds_need_lc_CXX=no
12930: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12931: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12932: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12933: ;;
12934: pgCC* | pgcpp*)
12935: # Portland Group C++ compiler
12936: case `$CC -V` in
12937: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12938: prelink_cmds_CXX='tpldir=Template.dir~
12939: rm -rf $tpldir~
12940: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12941: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12942: old_archive_cmds_CXX='tpldir=Template.dir~
12943: rm -rf $tpldir~
12944: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12945: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12946: $RANLIB $oldlib'
12947: archive_cmds_CXX='tpldir=Template.dir~
12948: rm -rf $tpldir~
12949: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12950: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12951: archive_expsym_cmds_CXX='tpldir=Template.dir~
12952: rm -rf $tpldir~
12953: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12954: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12955: ;;
12956: *) # Version 6 and above use weak symbols
12957: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12958: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12959: ;;
12960: esac
12961:
12962: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12963: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12964: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12965: ;;
12966: cxx*)
12967: # Compaq C++
12968: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12970:
12971: runpath_var=LD_RUN_PATH
12972: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12973: hardcode_libdir_separator_CXX=:
12974:
12975: # Commands to make compiler produce verbose output that lists
12976: # what "hidden" libraries, object files and flags are used when
12977: # linking a shared library.
12978: #
12979: # There doesn't appear to be a way to prevent this compiler from
12980: # explicitly linking system object files so we need to strip them
12981: # from the output so that they don't get included in the library
12982: # dependencies.
12983: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12984: ;;
12985: xl* | mpixl* | bgxl*)
12986: # IBM XL 8.0 on PPC, with GNU ld
12987: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12989: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990: if test "x$supports_anon_versioning" = xyes; then
12991: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12992: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12993: echo "local: *; };" >> $output_objdir/$libname.ver~
12994: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12995: fi
12996: ;;
12997: *)
12998: case `$CC -V 2>&1 | sed 5q` in
12999: *Sun\ C*)
13000: # Sun C++ 5.9
13001: no_undefined_flag_CXX=' -zdefs'
13002: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13003: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13004: hardcode_libdir_flag_spec_CXX='-R$libdir'
13005: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13006: compiler_needs_object_CXX=yes
13007:
13008: # Not sure whether something based on
13009: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13010: # would be better.
13011: output_verbose_link_cmd='func_echo_all'
13012:
13013: # Archives containing C++ object files must be created using
13014: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13015: # necessary to make sure instantiated templates are included
13016: # in the archive.
13017: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13018: ;;
13019: esac
13020: ;;
13021: esac
13022: ;;
13023:
13024: lynxos*)
13025: # FIXME: insert proper C++ library support
13026: ld_shlibs_CXX=no
13027: ;;
13028:
13029: m88k*)
13030: # FIXME: insert proper C++ library support
13031: ld_shlibs_CXX=no
13032: ;;
13033:
13034: mvs*)
13035: case $cc_basename in
13036: cxx*)
13037: # FIXME: insert proper C++ library support
13038: ld_shlibs_CXX=no
13039: ;;
13040: *)
13041: # FIXME: insert proper C++ library support
13042: ld_shlibs_CXX=no
13043: ;;
13044: esac
13045: ;;
13046:
13047: netbsd*)
13048: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13049: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13050: wlarc=
13051: hardcode_libdir_flag_spec_CXX='-R$libdir'
13052: hardcode_direct_CXX=yes
13053: hardcode_shlibpath_var_CXX=no
13054: fi
13055: # Workaround some broken pre-1.5 toolchains
13056: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13057: ;;
13058:
13059: *nto* | *qnx*)
13060: ld_shlibs_CXX=yes
13061: ;;
13062:
13063: openbsd2*)
13064: # C++ shared libraries are fairly broken
13065: ld_shlibs_CXX=no
13066: ;;
13067:
13068: openbsd*)
13069: if test -f /usr/libexec/ld.so; then
13070: hardcode_direct_CXX=yes
13071: hardcode_shlibpath_var_CXX=no
13072: hardcode_direct_absolute_CXX=yes
13073: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13074: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13075: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13076: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13077: export_dynamic_flag_spec_CXX='${wl}-E'
13078: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13079: fi
13080: output_verbose_link_cmd=func_echo_all
13081: else
13082: ld_shlibs_CXX=no
13083: fi
13084: ;;
13085:
13086: osf3* | osf4* | osf5*)
13087: case $cc_basename in
13088: KCC*)
13089: # Kuck and Associates, Inc. (KAI) C++ Compiler
13090:
13091: # KCC will only create a shared library if the output file
13092: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13093: # to its proper name (with version) after linking.
13094: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13095:
13096: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13097: hardcode_libdir_separator_CXX=:
13098:
13099: # Archives containing C++ object files must be created using
13100: # the KAI C++ compiler.
13101: case $host in
13102: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13103: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13104: esac
13105: ;;
13106: RCC*)
13107: # Rational C++ 2.4.1
13108: # FIXME: insert proper C++ library support
13109: ld_shlibs_CXX=no
13110: ;;
13111: cxx*)
13112: case $host in
13113: osf3*)
13114: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13115: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13116: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13117: ;;
13118: *)
13119: allow_undefined_flag_CXX=' -expect_unresolved \*'
13120: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13121: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13122: echo "-hidden">> $lib.exp~
13123: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13124: $RM $lib.exp'
13125: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13126: ;;
13127: esac
13128:
13129: hardcode_libdir_separator_CXX=:
13130:
13131: # Commands to make compiler produce verbose output that lists
13132: # what "hidden" libraries, object files and flags are used when
13133: # linking a shared library.
13134: #
13135: # There doesn't appear to be a way to prevent this compiler from
13136: # explicitly linking system object files so we need to strip them
13137: # from the output so that they don't get included in the library
13138: # dependencies.
13139: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13140: ;;
13141: *)
13142: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13143: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13144: case $host in
13145: osf3*)
13146: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13147: ;;
13148: *)
13149: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13150: ;;
13151: esac
13152:
13153: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13154: hardcode_libdir_separator_CXX=:
13155:
13156: # Commands to make compiler produce verbose output that lists
13157: # what "hidden" libraries, object files and flags are used when
13158: # linking a shared library.
13159: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13160:
13161: else
13162: # FIXME: insert proper C++ library support
13163: ld_shlibs_CXX=no
13164: fi
13165: ;;
13166: esac
13167: ;;
13168:
13169: psos*)
13170: # FIXME: insert proper C++ library support
13171: ld_shlibs_CXX=no
13172: ;;
13173:
13174: sunos4*)
13175: case $cc_basename in
13176: CC*)
13177: # Sun C++ 4.x
13178: # FIXME: insert proper C++ library support
13179: ld_shlibs_CXX=no
13180: ;;
13181: lcc*)
13182: # Lucid
13183: # FIXME: insert proper C++ library support
13184: ld_shlibs_CXX=no
13185: ;;
13186: *)
13187: # FIXME: insert proper C++ library support
13188: ld_shlibs_CXX=no
13189: ;;
13190: esac
13191: ;;
13192:
13193: solaris*)
13194: case $cc_basename in
13195: CC* | sunCC*)
13196: # Sun C++ 4.2, 5.x and Centerline C++
13197: archive_cmds_need_lc_CXX=yes
13198: no_undefined_flag_CXX=' -zdefs'
13199: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13201: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13202:
13203: hardcode_libdir_flag_spec_CXX='-R$libdir'
13204: hardcode_shlibpath_var_CXX=no
13205: case $host_os in
13206: solaris2.[0-5] | solaris2.[0-5].*) ;;
13207: *)
13208: # The compiler driver will combine and reorder linker options,
13209: # but understands `-z linker_flag'.
13210: # Supported since Solaris 2.6 (maybe 2.5.1?)
13211: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13212: ;;
13213: esac
13214: link_all_deplibs_CXX=yes
13215:
13216: output_verbose_link_cmd='func_echo_all'
13217:
13218: # Archives containing C++ object files must be created using
13219: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13220: # necessary to make sure instantiated templates are included
13221: # in the archive.
13222: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13223: ;;
13224: gcx*)
13225: # Green Hills C++ Compiler
13226: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13227:
13228: # The C++ compiler must be used to create the archive.
13229: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13230: ;;
13231: *)
13232: # GNU C++ compiler with Solaris linker
13233: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13234: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13235: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13236: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13237: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13238: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13239:
13240: # Commands to make compiler produce verbose output that lists
13241: # what "hidden" libraries, object files and flags are used when
13242: # linking a shared library.
13243: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13244: else
13245: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13246: # platform.
13247: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13248: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13249: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13250:
13251: # Commands to make compiler produce verbose output that lists
13252: # what "hidden" libraries, object files and flags are used when
13253: # linking a shared library.
13254: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13255: fi
13256:
13257: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13258: case $host_os in
13259: solaris2.[0-5] | solaris2.[0-5].*) ;;
13260: *)
13261: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13262: ;;
13263: esac
13264: fi
13265: ;;
13266: esac
13267: ;;
13268:
13269: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13270: no_undefined_flag_CXX='${wl}-z,text'
13271: archive_cmds_need_lc_CXX=no
13272: hardcode_shlibpath_var_CXX=no
13273: runpath_var='LD_RUN_PATH'
13274:
13275: case $cc_basename in
13276: CC*)
13277: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13278: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279: ;;
13280: *)
13281: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283: ;;
13284: esac
13285: ;;
13286:
13287: sysv5* | sco3.2v5* | sco5v6*)
13288: # Note: We can NOT use -z defs as we might desire, because we do not
13289: # link with -lc, and that would cause any symbols used from libc to
13290: # always be unresolved, which means just about no library would
13291: # ever link correctly. If we're not using GNU ld we use -z text
13292: # though, which does catch some bad symbols but isn't as heavy-handed
13293: # as -z defs.
13294: no_undefined_flag_CXX='${wl}-z,text'
13295: allow_undefined_flag_CXX='${wl}-z,nodefs'
13296: archive_cmds_need_lc_CXX=no
13297: hardcode_shlibpath_var_CXX=no
13298: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13299: hardcode_libdir_separator_CXX=':'
13300: link_all_deplibs_CXX=yes
13301: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13302: runpath_var='LD_RUN_PATH'
13303:
13304: case $cc_basename in
13305: CC*)
13306: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13307: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13309: '"$old_archive_cmds_CXX"
13310: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13311: '"$reload_cmds_CXX"
13312: ;;
13313: *)
13314: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316: ;;
13317: esac
13318: ;;
13319:
13320: tandem*)
13321: case $cc_basename in
13322: NCC*)
13323: # NonStop-UX NCC 3.20
13324: # FIXME: insert proper C++ library support
13325: ld_shlibs_CXX=no
13326: ;;
13327: *)
13328: # FIXME: insert proper C++ library support
13329: ld_shlibs_CXX=no
13330: ;;
13331: esac
13332: ;;
13333:
13334: vxworks*)
13335: # FIXME: insert proper C++ library support
13336: ld_shlibs_CXX=no
13337: ;;
13338:
13339: *)
13340: # FIXME: insert proper C++ library support
13341: ld_shlibs_CXX=no
13342: ;;
13343: esac
13344:
1.11 moko 13345: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13346: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 13347: test "$ld_shlibs_CXX" = no && can_build_shared=no
13348:
13349: GCC_CXX="$GXX"
13350: LD_CXX="$LD"
13351:
13352: ## CAVEAT EMPTOR:
13353: ## There is no encapsulation within the following macros, do not change
13354: ## the running order or otherwise move them around unless you know exactly
13355: ## what you are doing...
13356: # Dependencies to place before and after the object being linked:
13357: predep_objects_CXX=
13358: postdep_objects_CXX=
13359: predeps_CXX=
13360: postdeps_CXX=
13361: compiler_lib_search_path_CXX=
13362:
13363: cat > conftest.$ac_ext <<_LT_EOF
13364: class Foo
13365: {
13366: public:
13367: Foo (void) { a = 0; }
13368: private:
13369: int a;
13370: };
13371: _LT_EOF
13372:
13373:
13374: _lt_libdeps_save_CFLAGS=$CFLAGS
13375: case "$CC $CFLAGS " in #(
13376: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13377: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13378: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13379: esac
13380:
1.11 moko 13381: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 13382: (eval $ac_compile) 2>&5
13383: ac_status=$?
1.11 moko 13384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385: (exit $ac_status); }; then
1.8 moko 13386: # Parse the compiler output and extract the necessary
13387: # objects, libraries and library flags.
13388:
13389: # Sentinel used to keep track of whether or not we are before
13390: # the conftest object file.
13391: pre_test_object_deps_done=no
13392:
13393: for p in `eval "$output_verbose_link_cmd"`; do
13394: case ${prev}${p} in
13395:
13396: -L* | -R* | -l*)
13397: # Some compilers place space between "-{L,R}" and the path.
13398: # Remove the space.
13399: if test $p = "-L" ||
13400: test $p = "-R"; then
13401: prev=$p
13402: continue
13403: fi
13404:
13405: # Expand the sysroot to ease extracting the directories later.
13406: if test -z "$prev"; then
13407: case $p in
13408: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13409: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13410: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13411: esac
13412: fi
13413: case $p in
13414: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13415: esac
13416: if test "$pre_test_object_deps_done" = no; then
13417: case ${prev} in
13418: -L | -R)
13419: # Internal compiler library paths should come after those
13420: # provided the user. The postdeps already come after the
13421: # user supplied libs so there is no need to process them.
13422: if test -z "$compiler_lib_search_path_CXX"; then
13423: compiler_lib_search_path_CXX="${prev}${p}"
13424: else
13425: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13426: fi
13427: ;;
13428: # The "-l" case would never come before the object being
13429: # linked, so don't bother handling this case.
13430: esac
13431: else
13432: if test -z "$postdeps_CXX"; then
13433: postdeps_CXX="${prev}${p}"
13434: else
13435: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13436: fi
13437: fi
13438: prev=
13439: ;;
13440:
13441: *.lto.$objext) ;; # Ignore GCC LTO objects
13442: *.$objext)
13443: # This assumes that the test object file only shows up
13444: # once in the compiler output.
13445: if test "$p" = "conftest.$objext"; then
13446: pre_test_object_deps_done=yes
13447: continue
13448: fi
13449:
13450: if test "$pre_test_object_deps_done" = no; then
13451: if test -z "$predep_objects_CXX"; then
13452: predep_objects_CXX="$p"
13453: else
13454: predep_objects_CXX="$predep_objects_CXX $p"
13455: fi
13456: else
13457: if test -z "$postdep_objects_CXX"; then
13458: postdep_objects_CXX="$p"
13459: else
13460: postdep_objects_CXX="$postdep_objects_CXX $p"
13461: fi
13462: fi
13463: ;;
13464:
13465: *) ;; # Ignore the rest.
13466:
13467: esac
13468: done
13469:
13470: # Clean up.
13471: rm -f a.out a.exe
13472: else
13473: echo "libtool.m4: error: problem compiling CXX test program"
13474: fi
13475:
13476: $RM -f confest.$objext
13477: CFLAGS=$_lt_libdeps_save_CFLAGS
13478:
13479: # PORTME: override above test on systems where it is broken
13480: case $host_os in
13481: interix[3-9]*)
13482: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13483: # hack all around it, let's just trust "g++" to DTRT.
13484: predep_objects_CXX=
13485: postdep_objects_CXX=
13486: postdeps_CXX=
13487: ;;
13488:
13489: linux*)
13490: case `$CC -V 2>&1 | sed 5q` in
13491: *Sun\ C*)
13492: # Sun C++ 5.9
13493:
13494: # The more standards-conforming stlport4 library is
13495: # incompatible with the Cstd library. Avoid specifying
13496: # it if it's in CXXFLAGS. Ignore libCrun as
13497: # -library=stlport4 depends on it.
13498: case " $CXX $CXXFLAGS " in
13499: *" -library=stlport4 "*)
13500: solaris_use_stlport4=yes
13501: ;;
13502: esac
13503:
13504: if test "$solaris_use_stlport4" != yes; then
13505: postdeps_CXX='-library=Cstd -library=Crun'
13506: fi
13507: ;;
13508: esac
13509: ;;
13510:
13511: solaris*)
13512: case $cc_basename in
13513: CC* | sunCC*)
13514: # The more standards-conforming stlport4 library is
13515: # incompatible with the Cstd library. Avoid specifying
13516: # it if it's in CXXFLAGS. Ignore libCrun as
13517: # -library=stlport4 depends on it.
13518: case " $CXX $CXXFLAGS " in
13519: *" -library=stlport4 "*)
13520: solaris_use_stlport4=yes
13521: ;;
13522: esac
13523:
13524: # Adding this requires a known-good setup of shared libraries for
13525: # Sun compiler versions before 5.6, else PIC objects from an old
13526: # archive will be linked into the output, leading to subtle bugs.
13527: if test "$solaris_use_stlport4" != yes; then
13528: postdeps_CXX='-library=Cstd -library=Crun'
13529: fi
13530: ;;
13531: esac
13532: ;;
13533: esac
13534:
13535:
13536: case " $postdeps_CXX " in
13537: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13538: esac
13539: compiler_lib_search_dirs_CXX=
13540: if test -n "${compiler_lib_search_path_CXX}"; then
13541: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13542: fi
13543:
13544:
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574: lt_prog_compiler_wl_CXX=
13575: lt_prog_compiler_pic_CXX=
13576: lt_prog_compiler_static_CXX=
13577:
13578:
13579: # C++ specific cases for pic, static, wl, etc.
13580: if test "$GXX" = yes; then
13581: lt_prog_compiler_wl_CXX='-Wl,'
13582: lt_prog_compiler_static_CXX='-static'
13583:
13584: case $host_os in
13585: aix*)
13586: # All AIX code is PIC.
13587: if test "$host_cpu" = ia64; then
13588: # AIX 5 now supports IA64 processor
13589: lt_prog_compiler_static_CXX='-Bstatic'
13590: fi
13591: ;;
13592:
13593: amigaos*)
13594: case $host_cpu in
13595: powerpc)
13596: # see comment about AmigaOS4 .so support
13597: lt_prog_compiler_pic_CXX='-fPIC'
13598: ;;
13599: m68k)
13600: # FIXME: we need at least 68020 code to build shared libraries, but
13601: # adding the `-m68020' flag to GCC prevents building anything better,
13602: # like `-m68040'.
13603: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13604: ;;
13605: esac
13606: ;;
13607:
13608: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13609: # PIC is the default for these OSes.
13610: ;;
13611: mingw* | cygwin* | os2* | pw32* | cegcc*)
13612: # This hack is so that the source file can tell whether it is being
13613: # built for inclusion in a dll (and should export symbols for example).
13614: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13615: # (--disable-auto-import) libraries
13616: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13617: ;;
13618: darwin* | rhapsody*)
13619: # PIC is the default on this platform
13620: # Common symbols not allowed in MH_DYLIB files
13621: lt_prog_compiler_pic_CXX='-fno-common'
13622: ;;
13623: *djgpp*)
13624: # DJGPP does not support shared libraries at all
13625: lt_prog_compiler_pic_CXX=
13626: ;;
13627: haiku*)
13628: # PIC is the default for Haiku.
13629: # The "-static" flag exists, but is broken.
13630: lt_prog_compiler_static_CXX=
13631: ;;
13632: interix[3-9]*)
13633: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13634: # Instead, we relocate shared libraries at runtime.
13635: ;;
13636: sysv4*MP*)
13637: if test -d /usr/nec; then
13638: lt_prog_compiler_pic_CXX=-Kconform_pic
13639: fi
13640: ;;
13641: hpux*)
13642: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13643: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13644: # sets the default TLS model and affects inlining.
13645: case $host_cpu in
13646: hppa*64*)
13647: ;;
13648: *)
13649: lt_prog_compiler_pic_CXX='-fPIC'
13650: ;;
13651: esac
13652: ;;
13653: *qnx* | *nto*)
13654: # QNX uses GNU C++, but need to define -shared option too, otherwise
13655: # it will coredump.
13656: lt_prog_compiler_pic_CXX='-fPIC -shared'
13657: ;;
13658: *)
13659: lt_prog_compiler_pic_CXX='-fPIC'
13660: ;;
13661: esac
13662: else
13663: case $host_os in
13664: aix[4-9]*)
13665: # All AIX code is PIC.
13666: if test "$host_cpu" = ia64; then
13667: # AIX 5 now supports IA64 processor
13668: lt_prog_compiler_static_CXX='-Bstatic'
13669: else
13670: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13671: fi
13672: ;;
13673: chorus*)
13674: case $cc_basename in
13675: cxch68*)
13676: # Green Hills C++ Compiler
13677: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13678: ;;
13679: esac
13680: ;;
13681: mingw* | cygwin* | os2* | pw32* | cegcc*)
13682: # This hack is so that the source file can tell whether it is being
13683: # built for inclusion in a dll (and should export symbols for example).
13684: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13685: ;;
13686: dgux*)
13687: case $cc_basename in
13688: ec++*)
13689: lt_prog_compiler_pic_CXX='-KPIC'
13690: ;;
13691: ghcx*)
13692: # Green Hills C++ Compiler
13693: lt_prog_compiler_pic_CXX='-pic'
13694: ;;
13695: *)
13696: ;;
13697: esac
13698: ;;
13699: freebsd* | dragonfly*)
13700: # FreeBSD uses GNU C++
13701: ;;
13702: hpux9* | hpux10* | hpux11*)
13703: case $cc_basename in
13704: CC*)
13705: lt_prog_compiler_wl_CXX='-Wl,'
13706: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13707: if test "$host_cpu" != ia64; then
13708: lt_prog_compiler_pic_CXX='+Z'
13709: fi
13710: ;;
13711: aCC*)
13712: lt_prog_compiler_wl_CXX='-Wl,'
13713: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13714: case $host_cpu in
13715: hppa*64*|ia64*)
13716: # +Z the default
13717: ;;
13718: *)
13719: lt_prog_compiler_pic_CXX='+Z'
13720: ;;
13721: esac
13722: ;;
13723: *)
13724: ;;
13725: esac
13726: ;;
13727: interix*)
13728: # This is c89, which is MS Visual C++ (no shared libs)
13729: # Anyone wants to do a port?
13730: ;;
13731: irix5* | irix6* | nonstopux*)
13732: case $cc_basename in
13733: CC*)
13734: lt_prog_compiler_wl_CXX='-Wl,'
13735: lt_prog_compiler_static_CXX='-non_shared'
13736: # CC pic flag -KPIC is the default.
13737: ;;
13738: *)
13739: ;;
13740: esac
13741: ;;
13742: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13743: case $cc_basename in
13744: KCC*)
13745: # KAI C++ Compiler
13746: lt_prog_compiler_wl_CXX='--backend -Wl,'
13747: lt_prog_compiler_pic_CXX='-fPIC'
13748: ;;
13749: ecpc* )
13750: # old Intel C++ for x86_64 which still supported -KPIC.
13751: lt_prog_compiler_wl_CXX='-Wl,'
13752: lt_prog_compiler_pic_CXX='-KPIC'
13753: lt_prog_compiler_static_CXX='-static'
13754: ;;
13755: icpc* )
13756: # Intel C++, used to be incompatible with GCC.
13757: # ICC 10 doesn't accept -KPIC any more.
13758: lt_prog_compiler_wl_CXX='-Wl,'
13759: lt_prog_compiler_pic_CXX='-fPIC'
13760: lt_prog_compiler_static_CXX='-static'
13761: ;;
13762: pgCC* | pgcpp*)
13763: # Portland Group C++ compiler
13764: lt_prog_compiler_wl_CXX='-Wl,'
13765: lt_prog_compiler_pic_CXX='-fpic'
13766: lt_prog_compiler_static_CXX='-Bstatic'
13767: ;;
13768: cxx*)
13769: # Compaq C++
13770: # Make sure the PIC flag is empty. It appears that all Alpha
13771: # Linux and Compaq Tru64 Unix objects are PIC.
13772: lt_prog_compiler_pic_CXX=
13773: lt_prog_compiler_static_CXX='-non_shared'
13774: ;;
13775: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13776: # IBM XL 8.0, 9.0 on PPC and BlueGene
13777: lt_prog_compiler_wl_CXX='-Wl,'
13778: lt_prog_compiler_pic_CXX='-qpic'
13779: lt_prog_compiler_static_CXX='-qstaticlink'
13780: ;;
13781: *)
13782: case `$CC -V 2>&1 | sed 5q` in
13783: *Sun\ C*)
13784: # Sun C++ 5.9
13785: lt_prog_compiler_pic_CXX='-KPIC'
13786: lt_prog_compiler_static_CXX='-Bstatic'
13787: lt_prog_compiler_wl_CXX='-Qoption ld '
13788: ;;
13789: esac
13790: ;;
13791: esac
13792: ;;
13793: lynxos*)
13794: ;;
13795: m88k*)
13796: ;;
13797: mvs*)
13798: case $cc_basename in
13799: cxx*)
13800: lt_prog_compiler_pic_CXX='-W c,exportall'
13801: ;;
13802: *)
13803: ;;
13804: esac
13805: ;;
13806: netbsd*)
13807: ;;
13808: *qnx* | *nto*)
13809: # QNX uses GNU C++, but need to define -shared option too, otherwise
13810: # it will coredump.
13811: lt_prog_compiler_pic_CXX='-fPIC -shared'
13812: ;;
13813: osf3* | osf4* | osf5*)
13814: case $cc_basename in
13815: KCC*)
13816: lt_prog_compiler_wl_CXX='--backend -Wl,'
13817: ;;
13818: RCC*)
13819: # Rational C++ 2.4.1
13820: lt_prog_compiler_pic_CXX='-pic'
13821: ;;
13822: cxx*)
13823: # Digital/Compaq C++
13824: lt_prog_compiler_wl_CXX='-Wl,'
13825: # Make sure the PIC flag is empty. It appears that all Alpha
13826: # Linux and Compaq Tru64 Unix objects are PIC.
13827: lt_prog_compiler_pic_CXX=
13828: lt_prog_compiler_static_CXX='-non_shared'
13829: ;;
13830: *)
13831: ;;
13832: esac
13833: ;;
13834: psos*)
13835: ;;
13836: solaris*)
13837: case $cc_basename in
13838: CC* | sunCC*)
13839: # Sun C++ 4.2, 5.x and Centerline C++
13840: lt_prog_compiler_pic_CXX='-KPIC'
13841: lt_prog_compiler_static_CXX='-Bstatic'
13842: lt_prog_compiler_wl_CXX='-Qoption ld '
13843: ;;
13844: gcx*)
13845: # Green Hills C++ Compiler
13846: lt_prog_compiler_pic_CXX='-PIC'
13847: ;;
13848: *)
13849: ;;
13850: esac
13851: ;;
13852: sunos4*)
13853: case $cc_basename in
13854: CC*)
13855: # Sun C++ 4.x
13856: lt_prog_compiler_pic_CXX='-pic'
13857: lt_prog_compiler_static_CXX='-Bstatic'
13858: ;;
13859: lcc*)
13860: # Lucid
13861: lt_prog_compiler_pic_CXX='-pic'
13862: ;;
13863: *)
13864: ;;
13865: esac
13866: ;;
13867: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13868: case $cc_basename in
13869: CC*)
13870: lt_prog_compiler_wl_CXX='-Wl,'
13871: lt_prog_compiler_pic_CXX='-KPIC'
13872: lt_prog_compiler_static_CXX='-Bstatic'
13873: ;;
13874: esac
13875: ;;
13876: tandem*)
13877: case $cc_basename in
13878: NCC*)
13879: # NonStop-UX NCC 3.20
13880: lt_prog_compiler_pic_CXX='-KPIC'
13881: ;;
13882: *)
13883: ;;
13884: esac
13885: ;;
13886: vxworks*)
13887: ;;
13888: *)
13889: lt_prog_compiler_can_build_shared_CXX=no
13890: ;;
13891: esac
13892: fi
13893:
13894: case $host_os in
13895: # For platforms which do not support PIC, -DPIC is meaningless:
13896: *djgpp*)
13897: lt_prog_compiler_pic_CXX=
13898: ;;
13899: *)
13900: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13901: ;;
13902: esac
13903:
1.11 moko 13904: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13905: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13906: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13907: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13908: else
13909: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13910: fi
1.11 moko 13911: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13912: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
1.8 moko 13913: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13914:
13915: #
13916: # Check to make sure the PIC flag actually works.
13917: #
13918: if test -n "$lt_prog_compiler_pic_CXX"; then
1.11 moko 13919: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13920: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13921: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13923: else
13924: lt_cv_prog_compiler_pic_works_CXX=no
13925: ac_outfile=conftest.$ac_objext
13926: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13927: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13928: # Insert the option either (1) after the last *FLAGS variable, or
13929: # (2) before a word containing "conftest.", or (3) at the end.
13930: # Note that $ac_compile itself does not contain backslashes and begins
13931: # with a dollar sign (not a hyphen), so the echo should work correctly.
13932: # The option is referenced via a variable to avoid confusing sed.
13933: lt_compile=`echo "$ac_compile" | $SED \
13934: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936: -e 's:$: $lt_compiler_flag:'`
13937: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13938: (eval "$lt_compile" 2>conftest.err)
13939: ac_status=$?
13940: cat conftest.err >&5
13941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942: if (exit $ac_status) && test -s "$ac_outfile"; then
13943: # The compiler can only warn and ignore the option if not recognized
13944: # So say no if there are warnings other than the usual output.
13945: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13946: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13947: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13948: lt_cv_prog_compiler_pic_works_CXX=yes
13949: fi
13950: fi
13951: $RM conftest*
13952:
13953: fi
1.11 moko 13954: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13955: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
1.8 moko 13956:
13957: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13958: case $lt_prog_compiler_pic_CXX in
13959: "" | " "*) ;;
13960: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13961: esac
13962: else
13963: lt_prog_compiler_pic_CXX=
13964: lt_prog_compiler_can_build_shared_CXX=no
13965: fi
13966:
13967: fi
13968:
13969:
13970:
13971:
13972:
13973: #
13974: # Check to make sure the static flag actually works.
13975: #
13976: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.11 moko 13977: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13978: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13979: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13980: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 13981: else
13982: lt_cv_prog_compiler_static_works_CXX=no
13983: save_LDFLAGS="$LDFLAGS"
13984: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13985: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13986: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13987: # The linker can only warn and ignore the option if not recognized
13988: # So say no if there are warnings
13989: if test -s conftest.err; then
13990: # Append any errors to the config.log.
13991: cat conftest.err 1>&5
13992: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13993: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13994: if diff conftest.exp conftest.er2 >/dev/null; then
13995: lt_cv_prog_compiler_static_works_CXX=yes
13996: fi
13997: else
13998: lt_cv_prog_compiler_static_works_CXX=yes
13999: fi
14000: fi
14001: $RM -r conftest*
14002: LDFLAGS="$save_LDFLAGS"
14003:
14004: fi
1.11 moko 14005: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14006: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
1.8 moko 14007:
14008: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14009: :
14010: else
14011: lt_prog_compiler_static_CXX=
14012: fi
14013:
14014:
14015:
14016:
1.11 moko 14017: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14018: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14019: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14020: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14021: else
14022: lt_cv_prog_compiler_c_o_CXX=no
14023: $RM -r conftest 2>/dev/null
14024: mkdir conftest
14025: cd conftest
14026: mkdir out
14027: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028:
14029: lt_compiler_flag="-o out/conftest2.$ac_objext"
14030: # Insert the option either (1) after the last *FLAGS variable, or
14031: # (2) before a word containing "conftest.", or (3) at the end.
14032: # Note that $ac_compile itself does not contain backslashes and begins
14033: # with a dollar sign (not a hyphen), so the echo should work correctly.
14034: lt_compile=`echo "$ac_compile" | $SED \
14035: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037: -e 's:$: $lt_compiler_flag:'`
14038: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039: (eval "$lt_compile" 2>out/conftest.err)
14040: ac_status=$?
14041: cat out/conftest.err >&5
14042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14044: then
14045: # The compiler can only warn and ignore the option if not recognized
14046: # So say no if there are warnings
14047: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14048: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14049: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14050: lt_cv_prog_compiler_c_o_CXX=yes
14051: fi
14052: fi
14053: chmod u+w . 2>&5
14054: $RM conftest*
14055: # SGI C++ compiler will create directory out/ii_files/ for
14056: # template instantiation
14057: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14058: $RM out/* && rmdir out
14059: cd ..
14060: $RM -r conftest
14061: $RM conftest*
14062:
14063: fi
1.11 moko 14064: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14065: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14066:
14067:
14068:
1.11 moko 14069: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14070: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14071: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14072: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14073: else
14074: lt_cv_prog_compiler_c_o_CXX=no
14075: $RM -r conftest 2>/dev/null
14076: mkdir conftest
14077: cd conftest
14078: mkdir out
14079: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14080:
14081: lt_compiler_flag="-o out/conftest2.$ac_objext"
14082: # Insert the option either (1) after the last *FLAGS variable, or
14083: # (2) before a word containing "conftest.", or (3) at the end.
14084: # Note that $ac_compile itself does not contain backslashes and begins
14085: # with a dollar sign (not a hyphen), so the echo should work correctly.
14086: lt_compile=`echo "$ac_compile" | $SED \
14087: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14088: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14089: -e 's:$: $lt_compiler_flag:'`
14090: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14091: (eval "$lt_compile" 2>out/conftest.err)
14092: ac_status=$?
14093: cat out/conftest.err >&5
14094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14096: then
14097: # The compiler can only warn and ignore the option if not recognized
14098: # So say no if there are warnings
14099: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14100: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14101: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14102: lt_cv_prog_compiler_c_o_CXX=yes
14103: fi
14104: fi
14105: chmod u+w . 2>&5
14106: $RM conftest*
14107: # SGI C++ compiler will create directory out/ii_files/ for
14108: # template instantiation
14109: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14110: $RM out/* && rmdir out
14111: cd ..
14112: $RM -r conftest
14113: $RM conftest*
14114:
14115: fi
1.11 moko 14116: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14117: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.8 moko 14118:
14119:
14120:
14121:
14122: hard_links="nottested"
14123: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14124: # do not overwrite the value of need_locks provided by the user
1.11 moko 14125: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14126: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.8 moko 14127: hard_links=yes
14128: $RM conftest*
14129: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14130: touch conftest.a
14131: ln conftest.a conftest.b 2>&5 || hard_links=no
14132: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11 moko 14133: echo "$as_me:$LINENO: result: $hard_links" >&5
14134: echo "${ECHO_T}$hard_links" >&6
1.8 moko 14135: if test "$hard_links" = no; then
1.11 moko 14136: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14137: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14138: need_locks=warn
14139: fi
14140: else
14141: need_locks=no
14142: fi
14143:
14144:
14145:
1.11 moko 14146: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14147: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.8 moko 14148:
14149: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14150: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14151: case $host_os in
14152: aix[4-9]*)
14153: # If we're using GNU nm, then we don't want the "-C" option.
14154: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14155: # Also, AIX nm treats weak defined symbols like other global defined
14156: # symbols, whereas GNU nm marks them as "W".
14157: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14158: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14159: else
14160: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14161: fi
14162: ;;
14163: pw32*)
14164: export_symbols_cmds_CXX="$ltdll_cmds"
14165: ;;
14166: cygwin* | mingw* | cegcc*)
14167: case $cc_basename in
14168: cl*)
14169: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14170: ;;
14171: *)
14172: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14173: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14174: ;;
14175: esac
14176: ;;
14177: *)
14178: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179: ;;
14180: esac
14181:
1.11 moko 14182: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183: echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.8 moko 14184: test "$ld_shlibs_CXX" = no && can_build_shared=no
14185:
14186: with_gnu_ld_CXX=$with_gnu_ld
14187:
14188:
14189:
14190:
14191:
14192:
14193: #
14194: # Do we need to explicitly link libc?
14195: #
14196: case "x$archive_cmds_need_lc_CXX" in
14197: x|xyes)
14198: # Assume -lc should be added
14199: archive_cmds_need_lc_CXX=yes
14200:
14201: if test "$enable_shared" = yes && test "$GCC" = yes; then
14202: case $archive_cmds_CXX in
14203: *'~'*)
14204: # FIXME: we may have to deal with multi-command sequences.
14205: ;;
14206: '$CC '*)
14207: # Test whether the compiler implicitly links with -lc since on some
14208: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14209: # to ld, don't add -lc before -lgcc.
1.11 moko 14210: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14211: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14212: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14213: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14214: else
14215: $RM conftest*
14216: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14217:
1.11 moko 14218: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 14219: (eval $ac_compile) 2>&5
14220: ac_status=$?
1.11 moko 14221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222: (exit $ac_status); } 2>conftest.err; then
1.8 moko 14223: soname=conftest
14224: lib=conftest
14225: libobjs=conftest.$ac_objext
14226: deplibs=
14227: wl=$lt_prog_compiler_wl_CXX
14228: pic_flag=$lt_prog_compiler_pic_CXX
14229: compiler_flags=-v
14230: linker_flags=-v
14231: verstring=
14232: output_objdir=.
14233: libname=conftest
14234: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14235: allow_undefined_flag_CXX=
1.11 moko 14236: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.8 moko 14237: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14238: ac_status=$?
1.11 moko 14239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240: (exit $ac_status); }
1.8 moko 14241: then
14242: lt_cv_archive_cmds_need_lc_CXX=no
14243: else
14244: lt_cv_archive_cmds_need_lc_CXX=yes
14245: fi
14246: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14247: else
14248: cat conftest.err 1>&5
14249: fi
14250: $RM conftest*
14251:
14252: fi
1.11 moko 14253: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14254: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
1.8 moko 14255: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14256: ;;
14257: esac
14258: fi
14259: ;;
14260: esac
14261:
14262:
14263:
14264:
14265:
14266:
14267:
14268:
14269:
14270:
14271:
14272:
14273:
14274:
14275:
14276:
14277:
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
1.11 moko 14323: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14324: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.8 moko 14325:
14326: library_names_spec=
14327: libname_spec='lib$name'
14328: soname_spec=
14329: shrext_cmds=".so"
14330: postinstall_cmds=
14331: postuninstall_cmds=
14332: finish_cmds=
14333: finish_eval=
14334: shlibpath_var=
14335: shlibpath_overrides_runpath=unknown
14336: version_type=none
14337: dynamic_linker="$host_os ld.so"
14338: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14339: need_lib_prefix=unknown
14340: hardcode_into_libs=no
14341:
14342: # when you set need_version to no, make sure it does not cause -set_version
14343: # flags to be left without arguments
14344: need_version=unknown
14345:
14346: case $host_os in
14347: aix3*)
14348: version_type=linux # correct to gnu/linux during the next big refactor
14349: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14350: shlibpath_var=LIBPATH
14351:
14352: # AIX 3 has no versioning support, so we append a major version to the name.
14353: soname_spec='${libname}${release}${shared_ext}$major'
14354: ;;
14355:
14356: aix[4-9]*)
14357: version_type=linux # correct to gnu/linux during the next big refactor
14358: need_lib_prefix=no
14359: need_version=no
14360: hardcode_into_libs=yes
14361: if test "$host_cpu" = ia64; then
14362: # AIX 5 supports IA64
14363: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14364: shlibpath_var=LD_LIBRARY_PATH
14365: else
14366: # With GCC up to 2.95.x, collect2 would create an import file
14367: # for dependence libraries. The import file would start with
14368: # the line `#! .'. This would cause the generated library to
14369: # depend on `.', always an invalid library. This was fixed in
14370: # development snapshots of GCC prior to 3.0.
14371: case $host_os in
14372: aix4 | aix4.[01] | aix4.[01].*)
14373: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14374: echo ' yes '
14375: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14376: :
14377: else
14378: can_build_shared=no
14379: fi
14380: ;;
14381: esac
14382: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14383: # soname into executable. Probably we can add versioning support to
14384: # collect2, so additional links can be useful in future.
14385: if test "$aix_use_runtimelinking" = yes; then
14386: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14387: # instead of lib<name>.a to let people know that these are not
14388: # typical AIX shared libraries.
14389: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390: else
14391: # We preserve .a as extension for shared libraries through AIX4.2
14392: # and later when we are not doing run time linking.
14393: library_names_spec='${libname}${release}.a $libname.a'
14394: soname_spec='${libname}${release}${shared_ext}$major'
14395: fi
14396: shlibpath_var=LIBPATH
14397: fi
14398: ;;
14399:
14400: amigaos*)
14401: case $host_cpu in
14402: powerpc)
14403: # Since July 2007 AmigaOS4 officially supports .so libraries.
14404: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14405: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406: ;;
14407: m68k)
14408: library_names_spec='$libname.ixlibrary $libname.a'
14409: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14410: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14411: ;;
14412: esac
14413: ;;
14414:
14415: beos*)
14416: library_names_spec='${libname}${shared_ext}'
14417: dynamic_linker="$host_os ld.so"
14418: shlibpath_var=LIBRARY_PATH
14419: ;;
14420:
14421: bsdi[45]*)
14422: version_type=linux # correct to gnu/linux during the next big refactor
14423: need_version=no
14424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425: soname_spec='${libname}${release}${shared_ext}$major'
14426: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14427: shlibpath_var=LD_LIBRARY_PATH
14428: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14429: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14430: # the default ld.so.conf also contains /usr/contrib/lib and
14431: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14432: # libtool to hard-code these into programs
14433: ;;
14434:
14435: cygwin* | mingw* | pw32* | cegcc*)
14436: version_type=windows
14437: shrext_cmds=".dll"
14438: need_version=no
14439: need_lib_prefix=no
14440:
14441: case $GCC,$cc_basename in
14442: yes,*)
14443: # gcc
14444: library_names_spec='$libname.dll.a'
14445: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14446: postinstall_cmds='base_file=`basename \${file}`~
14447: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14448: dldir=$destdir/`dirname \$dlpath`~
14449: test -d \$dldir || mkdir -p \$dldir~
14450: $install_prog $dir/$dlname \$dldir/$dlname~
14451: chmod a+x \$dldir/$dlname~
14452: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14453: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14454: fi'
14455: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14456: dlpath=$dir/\$dldll~
14457: $RM \$dlpath'
14458: shlibpath_overrides_runpath=yes
14459:
14460: case $host_os in
14461: cygwin*)
14462: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14463: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14464:
14465: ;;
14466: mingw* | cegcc*)
14467: # MinGW DLLs use traditional 'lib' prefix
14468: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14469: ;;
14470: pw32*)
14471: # pw32 DLLs use 'pw' prefix rather than 'lib'
14472: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14473: ;;
14474: esac
14475: dynamic_linker='Win32 ld.exe'
14476: ;;
14477:
14478: *,cl*)
14479: # Native MSVC
14480: libname_spec='$name'
14481: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482: library_names_spec='${libname}.dll.lib'
14483:
14484: case $build_os in
14485: mingw*)
14486: sys_lib_search_path_spec=
14487: lt_save_ifs=$IFS
14488: IFS=';'
14489: for lt_path in $LIB
14490: do
14491: IFS=$lt_save_ifs
14492: # Let DOS variable expansion print the short 8.3 style file name.
14493: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14494: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14495: done
14496: IFS=$lt_save_ifs
14497: # Convert to MSYS style.
14498: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14499: ;;
14500: cygwin*)
14501: # Convert to unix form, then to dos form, then back to unix form
14502: # but this time dos style (no spaces!) so that the unix form looks
14503: # like /cygdrive/c/PROGRA~1:/cygdr...
14504: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14505: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14506: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14507: ;;
14508: *)
14509: sys_lib_search_path_spec="$LIB"
14510: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14511: # It is most probably a Windows format PATH.
14512: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14513: else
14514: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14515: fi
14516: # FIXME: find the short name or the path components, as spaces are
14517: # common. (e.g. "Program Files" -> "PROGRA~1")
14518: ;;
14519: esac
14520:
14521: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14522: postinstall_cmds='base_file=`basename \${file}`~
14523: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14524: dldir=$destdir/`dirname \$dlpath`~
14525: test -d \$dldir || mkdir -p \$dldir~
14526: $install_prog $dir/$dlname \$dldir/$dlname'
14527: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14528: dlpath=$dir/\$dldll~
14529: $RM \$dlpath'
14530: shlibpath_overrides_runpath=yes
14531: dynamic_linker='Win32 link.exe'
14532: ;;
14533:
14534: *)
14535: # Assume MSVC wrapper
14536: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14537: dynamic_linker='Win32 ld.exe'
14538: ;;
14539: esac
14540: # FIXME: first we should search . and the directory the executable is in
14541: shlibpath_var=PATH
14542: ;;
14543:
14544: darwin* | rhapsody*)
14545: dynamic_linker="$host_os dyld"
14546: version_type=darwin
14547: need_lib_prefix=no
14548: need_version=no
14549: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14550: soname_spec='${libname}${release}${major}$shared_ext'
14551: shlibpath_overrides_runpath=yes
14552: shlibpath_var=DYLD_LIBRARY_PATH
14553: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14554:
14555: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14556: ;;
14557:
14558: dgux*)
14559: version_type=linux # correct to gnu/linux during the next big refactor
14560: need_lib_prefix=no
14561: need_version=no
14562: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14563: soname_spec='${libname}${release}${shared_ext}$major'
14564: shlibpath_var=LD_LIBRARY_PATH
14565: ;;
14566:
14567: freebsd* | dragonfly*)
14568: # DragonFly does not have aout. When/if they implement a new
14569: # versioning mechanism, adjust this.
14570: if test -x /usr/bin/objformat; then
14571: objformat=`/usr/bin/objformat`
14572: else
14573: case $host_os in
14574: freebsd[23].*) objformat=aout ;;
14575: *) objformat=elf ;;
14576: esac
14577: fi
14578: version_type=freebsd-$objformat
14579: case $version_type in
14580: freebsd-elf*)
14581: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14582: need_version=no
14583: need_lib_prefix=no
14584: ;;
14585: freebsd-*)
14586: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14587: need_version=yes
14588: ;;
14589: esac
14590: shlibpath_var=LD_LIBRARY_PATH
14591: case $host_os in
14592: freebsd2.*)
14593: shlibpath_overrides_runpath=yes
14594: ;;
14595: freebsd3.[01]* | freebsdelf3.[01]*)
14596: shlibpath_overrides_runpath=yes
14597: hardcode_into_libs=yes
14598: ;;
14599: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14600: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14601: shlibpath_overrides_runpath=no
14602: hardcode_into_libs=yes
14603: ;;
14604: *) # from 4.6 on, and DragonFly
14605: shlibpath_overrides_runpath=yes
14606: hardcode_into_libs=yes
14607: ;;
14608: esac
14609: ;;
14610:
14611: gnu*)
14612: version_type=linux # correct to gnu/linux during the next big refactor
14613: need_lib_prefix=no
14614: need_version=no
14615: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14616: soname_spec='${libname}${release}${shared_ext}$major'
14617: shlibpath_var=LD_LIBRARY_PATH
14618: shlibpath_overrides_runpath=no
14619: hardcode_into_libs=yes
14620: ;;
14621:
14622: haiku*)
14623: version_type=linux # correct to gnu/linux during the next big refactor
14624: need_lib_prefix=no
14625: need_version=no
14626: dynamic_linker="$host_os runtime_loader"
14627: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14628: soname_spec='${libname}${release}${shared_ext}$major'
14629: shlibpath_var=LIBRARY_PATH
14630: shlibpath_overrides_runpath=yes
14631: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14632: hardcode_into_libs=yes
14633: ;;
14634:
14635: hpux9* | hpux10* | hpux11*)
14636: # Give a soname corresponding to the major version so that dld.sl refuses to
14637: # link against other versions.
14638: version_type=sunos
14639: need_lib_prefix=no
14640: need_version=no
14641: case $host_cpu in
14642: ia64*)
14643: shrext_cmds='.so'
14644: hardcode_into_libs=yes
14645: dynamic_linker="$host_os dld.so"
14646: shlibpath_var=LD_LIBRARY_PATH
14647: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14648: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649: soname_spec='${libname}${release}${shared_ext}$major'
14650: if test "X$HPUX_IA64_MODE" = X32; then
14651: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14652: else
14653: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14654: fi
14655: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14656: ;;
14657: hppa*64*)
14658: shrext_cmds='.sl'
14659: hardcode_into_libs=yes
14660: dynamic_linker="$host_os dld.sl"
14661: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14662: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14663: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664: soname_spec='${libname}${release}${shared_ext}$major'
14665: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14666: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14667: ;;
14668: *)
14669: shrext_cmds='.sl'
14670: dynamic_linker="$host_os dld.sl"
14671: shlibpath_var=SHLIB_PATH
14672: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674: soname_spec='${libname}${release}${shared_ext}$major'
14675: ;;
14676: esac
14677: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14678: postinstall_cmds='chmod 555 $lib'
14679: # or fails outright, so override atomically:
14680: install_override_mode=555
14681: ;;
14682:
14683: interix[3-9]*)
14684: version_type=linux # correct to gnu/linux during the next big refactor
14685: need_lib_prefix=no
14686: need_version=no
14687: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14688: soname_spec='${libname}${release}${shared_ext}$major'
14689: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14690: shlibpath_var=LD_LIBRARY_PATH
14691: shlibpath_overrides_runpath=no
14692: hardcode_into_libs=yes
14693: ;;
14694:
14695: irix5* | irix6* | nonstopux*)
14696: case $host_os in
14697: nonstopux*) version_type=nonstopux ;;
14698: *)
14699: if test "$lt_cv_prog_gnu_ld" = yes; then
14700: version_type=linux # correct to gnu/linux during the next big refactor
14701: else
14702: version_type=irix
14703: fi ;;
14704: esac
14705: need_lib_prefix=no
14706: need_version=no
14707: soname_spec='${libname}${release}${shared_ext}$major'
14708: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14709: case $host_os in
14710: irix5* | nonstopux*)
14711: libsuff= shlibsuff=
14712: ;;
14713: *)
14714: case $LD in # libtool.m4 will add one of these switches to LD
14715: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14716: libsuff= shlibsuff= libmagic=32-bit;;
14717: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14718: libsuff=32 shlibsuff=N32 libmagic=N32;;
14719: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14720: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14721: *) libsuff= shlibsuff= libmagic=never-match;;
14722: esac
14723: ;;
14724: esac
14725: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14726: shlibpath_overrides_runpath=no
14727: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14728: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14729: hardcode_into_libs=yes
14730: ;;
14731:
14732: # No shared lib support for Linux oldld, aout, or coff.
14733: linux*oldld* | linux*aout* | linux*coff*)
14734: dynamic_linker=no
14735: ;;
14736:
14737: # This must be glibc/ELF.
14738: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14739: version_type=linux # correct to gnu/linux during the next big refactor
14740: need_lib_prefix=no
14741: need_version=no
14742: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743: soname_spec='${libname}${release}${shared_ext}$major'
14744: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14745: shlibpath_var=LD_LIBRARY_PATH
14746: shlibpath_overrides_runpath=no
14747:
14748: # Some binutils ld are patched to set DT_RUNPATH
1.11 moko 14749: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14750: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 14751: else
14752: lt_cv_shlibpath_overrides_runpath=no
14753: save_LDFLAGS=$LDFLAGS
14754: save_libdir=$libdir
14755: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14756: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.11 moko 14757: cat >conftest.$ac_ext <<_ACEOF
14758: /* confdefs.h. */
14759: _ACEOF
14760: cat confdefs.h >>conftest.$ac_ext
14761: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 14762: /* end confdefs.h. */
14763:
14764: int
14765: main ()
14766: {
14767:
14768: ;
14769: return 0;
14770: }
14771: _ACEOF
1.11 moko 14772: rm -f conftest.$ac_objext conftest$ac_exeext
14773: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774: (eval $ac_link) 2>conftest.er1
14775: ac_status=$?
14776: grep -v '^ *+' conftest.er1 >conftest.err
14777: rm -f conftest.er1
14778: cat conftest.err >&5
14779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780: (exit $ac_status); } &&
14781: { ac_try='test -z "$ac_cxx_werror_flag"
14782: || test ! -s conftest.err'
14783: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784: (eval $ac_try) 2>&5
14785: ac_status=$?
14786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787: (exit $ac_status); }; } &&
14788: { ac_try='test -s conftest$ac_exeext'
14789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790: (eval $ac_try) 2>&5
14791: ac_status=$?
14792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793: (exit $ac_status); }; }; then
14794: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
1.8 moko 14795: lt_cv_shlibpath_overrides_runpath=yes
14796: fi
1.11 moko 14797:
14798: else
14799: echo "$as_me: failed program was:" >&5
14800: sed 's/^/| /' conftest.$ac_ext >&5
14801:
1.8 moko 14802: fi
1.11 moko 14803: rm -f conftest.err conftest.$ac_objext \
14804: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14805: LDFLAGS=$save_LDFLAGS
14806: libdir=$save_libdir
14807:
14808: fi
14809:
14810: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14811:
14812: # This implies no fast_install, which is unacceptable.
14813: # Some rework will be needed to allow for fast_install
14814: # before this can be enabled.
14815: hardcode_into_libs=yes
14816:
14817: # Append ld.so.conf contents to the search path
14818: if test -f /etc/ld.so.conf; then
14819: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14820: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14821: fi
14822:
14823: # We used to test for /lib/ld.so.1 and disable shared libraries on
14824: # powerpc, because MkLinux only supported shared libraries with the
14825: # GNU dynamic linker. Since this was broken with cross compilers,
14826: # most powerpc-linux boxes support dynamic linking these days and
14827: # people can always --disable-shared, the test was removed, and we
14828: # assume the GNU/Linux dynamic linker is in use.
14829: dynamic_linker='GNU/Linux ld.so'
14830: ;;
14831:
14832: netbsd*)
14833: version_type=sunos
14834: need_lib_prefix=no
14835: need_version=no
14836: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14837: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14838: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14839: dynamic_linker='NetBSD (a.out) ld.so'
14840: else
14841: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842: soname_spec='${libname}${release}${shared_ext}$major'
14843: dynamic_linker='NetBSD ld.elf_so'
14844: fi
14845: shlibpath_var=LD_LIBRARY_PATH
14846: shlibpath_overrides_runpath=yes
14847: hardcode_into_libs=yes
14848: ;;
14849:
14850: newsos6)
14851: version_type=linux # correct to gnu/linux during the next big refactor
14852: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853: shlibpath_var=LD_LIBRARY_PATH
14854: shlibpath_overrides_runpath=yes
14855: ;;
14856:
14857: *nto* | *qnx*)
14858: version_type=qnx
14859: need_lib_prefix=no
14860: need_version=no
14861: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862: soname_spec='${libname}${release}${shared_ext}$major'
14863: shlibpath_var=LD_LIBRARY_PATH
14864: shlibpath_overrides_runpath=no
14865: hardcode_into_libs=yes
14866: dynamic_linker='ldqnx.so'
14867: ;;
14868:
14869: openbsd*)
14870: version_type=sunos
14871: sys_lib_dlsearch_path_spec="/usr/lib"
14872: need_lib_prefix=no
14873: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14874: case $host_os in
14875: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14876: *) need_version=no ;;
14877: esac
14878: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14879: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14880: shlibpath_var=LD_LIBRARY_PATH
14881: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882: case $host_os in
14883: openbsd2.[89] | openbsd2.[89].*)
14884: shlibpath_overrides_runpath=no
14885: ;;
14886: *)
14887: shlibpath_overrides_runpath=yes
14888: ;;
14889: esac
14890: else
14891: shlibpath_overrides_runpath=yes
14892: fi
14893: ;;
14894:
14895: os2*)
14896: libname_spec='$name'
14897: shrext_cmds=".dll"
14898: need_lib_prefix=no
14899: library_names_spec='$libname${shared_ext} $libname.a'
14900: dynamic_linker='OS/2 ld.exe'
14901: shlibpath_var=LIBPATH
14902: ;;
14903:
14904: osf3* | osf4* | osf5*)
14905: version_type=osf
14906: need_lib_prefix=no
14907: need_version=no
14908: soname_spec='${libname}${release}${shared_ext}$major'
14909: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910: shlibpath_var=LD_LIBRARY_PATH
14911: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14912: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14913: ;;
14914:
14915: rdos*)
14916: dynamic_linker=no
14917: ;;
14918:
14919: solaris*)
14920: version_type=linux # correct to gnu/linux during the next big refactor
14921: need_lib_prefix=no
14922: need_version=no
14923: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924: soname_spec='${libname}${release}${shared_ext}$major'
14925: shlibpath_var=LD_LIBRARY_PATH
14926: shlibpath_overrides_runpath=yes
14927: hardcode_into_libs=yes
14928: # ldd complains unless libraries are executable
14929: postinstall_cmds='chmod +x $lib'
14930: ;;
14931:
14932: sunos4*)
14933: version_type=sunos
14934: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14935: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14936: shlibpath_var=LD_LIBRARY_PATH
14937: shlibpath_overrides_runpath=yes
14938: if test "$with_gnu_ld" = yes; then
14939: need_lib_prefix=no
14940: fi
14941: need_version=yes
14942: ;;
14943:
14944: sysv4 | sysv4.3*)
14945: version_type=linux # correct to gnu/linux during the next big refactor
14946: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947: soname_spec='${libname}${release}${shared_ext}$major'
14948: shlibpath_var=LD_LIBRARY_PATH
14949: case $host_vendor in
14950: sni)
14951: shlibpath_overrides_runpath=no
14952: need_lib_prefix=no
14953: runpath_var=LD_RUN_PATH
14954: ;;
14955: siemens)
14956: need_lib_prefix=no
14957: ;;
14958: motorola)
14959: need_lib_prefix=no
14960: need_version=no
14961: shlibpath_overrides_runpath=no
14962: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14963: ;;
14964: esac
14965: ;;
14966:
14967: sysv4*MP*)
14968: if test -d /usr/nec ;then
14969: version_type=linux # correct to gnu/linux during the next big refactor
14970: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14971: soname_spec='$libname${shared_ext}.$major'
14972: shlibpath_var=LD_LIBRARY_PATH
14973: fi
14974: ;;
14975:
14976: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14977: version_type=freebsd-elf
14978: need_lib_prefix=no
14979: need_version=no
14980: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14981: soname_spec='${libname}${release}${shared_ext}$major'
14982: shlibpath_var=LD_LIBRARY_PATH
14983: shlibpath_overrides_runpath=yes
14984: hardcode_into_libs=yes
14985: if test "$with_gnu_ld" = yes; then
14986: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14987: else
14988: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14989: case $host_os in
14990: sco3.2v5*)
14991: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14992: ;;
14993: esac
14994: fi
14995: sys_lib_dlsearch_path_spec='/usr/lib'
14996: ;;
14997:
14998: tpf*)
14999: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15000: version_type=linux # correct to gnu/linux during the next big refactor
15001: need_lib_prefix=no
15002: need_version=no
15003: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004: shlibpath_var=LD_LIBRARY_PATH
15005: shlibpath_overrides_runpath=no
15006: hardcode_into_libs=yes
15007: ;;
15008:
15009: uts4*)
15010: version_type=linux # correct to gnu/linux during the next big refactor
15011: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012: soname_spec='${libname}${release}${shared_ext}$major'
15013: shlibpath_var=LD_LIBRARY_PATH
15014: ;;
15015:
15016: *)
15017: dynamic_linker=no
15018: ;;
15019: esac
1.11 moko 15020: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15021: echo "${ECHO_T}$dynamic_linker" >&6
1.8 moko 15022: test "$dynamic_linker" = no && can_build_shared=no
15023:
15024: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15025: if test "$GCC" = yes; then
15026: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15027: fi
15028:
15029: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15030: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15031: fi
15032: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15033: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15034: fi
15035:
15036:
15037:
15038:
15039:
15040:
15041:
15042:
15043:
15044:
15045:
15046:
15047:
15048:
15049:
15050:
15051:
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
1.11 moko 15073: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15074: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8 moko 15075: hardcode_action_CXX=
15076: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15077: test -n "$runpath_var_CXX" ||
15078: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15079:
15080: # We can hardcode non-existent directories.
15081: if test "$hardcode_direct_CXX" != no &&
15082: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15083: # have to relink, otherwise we might link with an installed library
15084: # when we should be linking with a yet-to-be-installed one
15085: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15086: test "$hardcode_minus_L_CXX" != no; then
15087: # Linking always hardcodes the temporary library directory.
15088: hardcode_action_CXX=relink
15089: else
15090: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15091: hardcode_action_CXX=immediate
15092: fi
15093: else
15094: # We cannot hardcode anything, or else we can only hardcode existing
15095: # directories.
15096: hardcode_action_CXX=unsupported
15097: fi
1.11 moko 15098: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15099: echo "${ECHO_T}$hardcode_action_CXX" >&6
1.8 moko 15100:
15101: if test "$hardcode_action_CXX" = relink ||
15102: test "$inherit_rpath_CXX" = yes; then
15103: # Fast installation is not supported
15104: enable_fast_install=no
15105: elif test "$shlibpath_overrides_runpath" = yes ||
15106: test "$enable_shared" = no; then
15107: # Fast installation is not necessary
15108: enable_fast_install=needless
15109: fi
15110:
15111:
15112:
15113:
15114:
15115:
15116:
15117: fi # test -n "$compiler"
15118:
15119: CC=$lt_save_CC
15120: CFLAGS=$lt_save_CFLAGS
15121: LDCXX=$LD
15122: LD=$lt_save_LD
15123: GCC=$lt_save_GCC
15124: with_gnu_ld=$lt_save_with_gnu_ld
15125: lt_cv_path_LDCXX=$lt_cv_path_LD
15126: lt_cv_path_LD=$lt_save_path_LD
15127: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15128: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15129: fi # test "$_lt_caught_CXX_error" != yes
15130:
15131: ac_ext=c
15132: ac_cpp='$CPP $CPPFLAGS'
15133: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15134: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15135: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15136:
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145:
15146:
15147:
15148:
15149:
15150:
1.11 moko 15151: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15152:
15153:
15154:
15155:
15156: # Only expand once:
15157:
15158:
1.11 moko 15159: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15160: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15161: if test "${libltdl_cv_shlibext+set}" = set; then
15162: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15163: else
15164:
15165: module=yes
15166: eval libltdl_cv_shlibext=$shrext_cmds
15167: module=no
15168: eval libltdl_cv_shrext=$shrext_cmds
15169:
15170: fi
1.11 moko 15171: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15172: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
1.8 moko 15173: if test -n "$libltdl_cv_shlibext"; then
15174:
15175: cat >>confdefs.h <<_ACEOF
15176: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15177: _ACEOF
15178:
15179: fi
15180: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15181:
15182: cat >>confdefs.h <<_ACEOF
15183: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15184: _ACEOF
15185:
15186: fi
15187:
1.11 moko 15188: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15189: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15190: if test "${lt_cv_module_path_var+set}" = set; then
15191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15192: else
15193: lt_cv_module_path_var="$shlibpath_var"
15194: fi
1.11 moko 15195: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15196: echo "${ECHO_T}$lt_cv_module_path_var" >&6
1.8 moko 15197: if test -n "$lt_cv_module_path_var"; then
15198:
15199: cat >>confdefs.h <<_ACEOF
15200: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15201: _ACEOF
15202:
15203: fi
15204:
1.11 moko 15205: echo "$as_me:$LINENO: checking for the default library search path" >&5
15206: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15207: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15208: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15209: else
15210: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15211: fi
1.11 moko 15212: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15213: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
1.8 moko 15214: if test -n "$lt_cv_sys_dlsearch_path"; then
15215: sys_dlsearch_path=
15216: for dir in $lt_cv_sys_dlsearch_path; do
15217: if test -z "$sys_dlsearch_path"; then
15218: sys_dlsearch_path="$dir"
15219: else
15220: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15221: fi
15222: done
15223:
15224: cat >>confdefs.h <<_ACEOF
15225: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15226: _ACEOF
15227:
15228: fi
15229:
15230:
15231: LT_DLLOADERS=
15232:
15233:
15234: ac_ext=c
15235: ac_cpp='$CPP $CPPFLAGS'
15236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15239:
15240:
15241: LIBADD_DLOPEN=
1.11 moko 15242: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15243: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15244: if test "${ac_cv_search_dlopen+set}" = set; then
15245: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15246: else
15247: ac_func_search_save_LIBS=$LIBS
1.11 moko 15248: ac_cv_search_dlopen=no
15249: cat >conftest.$ac_ext <<_ACEOF
15250: /* confdefs.h. */
15251: _ACEOF
15252: cat confdefs.h >>conftest.$ac_ext
15253: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15254: /* end confdefs.h. */
15255:
1.11 moko 15256: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15257: #ifdef __cplusplus
15258: extern "C"
15259: #endif
1.11 moko 15260: /* We use char because int might match the return type of a gcc2
15261: builtin and then its argument prototype would still apply. */
1.8 moko 15262: char dlopen ();
15263: int
15264: main ()
15265: {
1.11 moko 15266: dlopen ();
1.8 moko 15267: ;
15268: return 0;
15269: }
15270: _ACEOF
1.11 moko 15271: rm -f conftest.$ac_objext conftest$ac_exeext
15272: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273: (eval $ac_link) 2>conftest.er1
15274: ac_status=$?
15275: grep -v '^ *+' conftest.er1 >conftest.err
15276: rm -f conftest.er1
15277: cat conftest.err >&5
15278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279: (exit $ac_status); } &&
15280: { ac_try='test -z "$ac_c_werror_flag"
15281: || test ! -s conftest.err'
15282: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283: (eval $ac_try) 2>&5
15284: ac_status=$?
15285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286: (exit $ac_status); }; } &&
15287: { ac_try='test -s conftest$ac_exeext'
15288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289: (eval $ac_try) 2>&5
15290: ac_status=$?
15291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292: (exit $ac_status); }; }; then
15293: ac_cv_search_dlopen="none required"
15294: else
15295: echo "$as_me: failed program was:" >&5
15296: sed 's/^/| /' conftest.$ac_ext >&5
15297:
15298: fi
15299: rm -f conftest.err conftest.$ac_objext \
15300: conftest$ac_exeext conftest.$ac_ext
15301: if test "$ac_cv_search_dlopen" = no; then
15302: for ac_lib in dl; do
1.10 moko 15303: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.11 moko 15304: cat >conftest.$ac_ext <<_ACEOF
15305: /* confdefs.h. */
15306: _ACEOF
15307: cat confdefs.h >>conftest.$ac_ext
15308: cat >>conftest.$ac_ext <<_ACEOF
15309: /* end confdefs.h. */
1.8 moko 15310:
1.11 moko 15311: /* Override any gcc2 internal prototype to avoid an error. */
15312: #ifdef __cplusplus
15313: extern "C"
15314: #endif
15315: /* We use char because int might match the return type of a gcc2
15316: builtin and then its argument prototype would still apply. */
15317: char dlopen ();
15318: int
15319: main ()
15320: {
15321: dlopen ();
15322: ;
15323: return 0;
15324: }
15325: _ACEOF
15326: rm -f conftest.$ac_objext conftest$ac_exeext
15327: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15328: (eval $ac_link) 2>conftest.er1
15329: ac_status=$?
15330: grep -v '^ *+' conftest.er1 >conftest.err
15331: rm -f conftest.er1
15332: cat conftest.err >&5
15333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334: (exit $ac_status); } &&
15335: { ac_try='test -z "$ac_c_werror_flag"
15336: || test ! -s conftest.err'
15337: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338: (eval $ac_try) 2>&5
15339: ac_status=$?
15340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341: (exit $ac_status); }; } &&
15342: { ac_try='test -s conftest$ac_exeext'
15343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344: (eval $ac_try) 2>&5
15345: ac_status=$?
15346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347: (exit $ac_status); }; }; then
15348: ac_cv_search_dlopen="-l$ac_lib"
15349: break
1.8 moko 15350: else
1.11 moko 15351: echo "$as_me: failed program was:" >&5
15352: sed 's/^/| /' conftest.$ac_ext >&5
15353:
15354: fi
15355: rm -f conftest.err conftest.$ac_objext \
15356: conftest$ac_exeext conftest.$ac_ext
15357: done
1.8 moko 15358: fi
15359: LIBS=$ac_func_search_save_LIBS
15360: fi
1.11 moko 15361: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15362: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15363: if test "$ac_cv_search_dlopen" != no; then
15364: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
1.8 moko 15365:
1.11 moko 15366: cat >>confdefs.h <<\_ACEOF
15367: #define HAVE_LIBDL 1
15368: _ACEOF
1.8 moko 15369:
15370: if test "$ac_cv_search_dlopen" != "none required" ; then
15371: LIBADD_DLOPEN="-ldl"
15372: fi
15373: libltdl_cv_lib_dl_dlopen="yes"
15374: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15375: else
1.11 moko 15376: cat >conftest.$ac_ext <<_ACEOF
15377: /* confdefs.h. */
15378: _ACEOF
15379: cat confdefs.h >>conftest.$ac_ext
15380: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15381: /* end confdefs.h. */
15382: #if HAVE_DLFCN_H
15383: # include <dlfcn.h>
15384: #endif
15385:
15386: int
15387: main ()
15388: {
15389: dlopen(0, 0);
15390: ;
15391: return 0;
15392: }
15393: _ACEOF
1.11 moko 15394: rm -f conftest.$ac_objext conftest$ac_exeext
15395: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396: (eval $ac_link) 2>conftest.er1
15397: ac_status=$?
15398: grep -v '^ *+' conftest.er1 >conftest.err
15399: rm -f conftest.er1
15400: cat conftest.err >&5
15401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402: (exit $ac_status); } &&
15403: { ac_try='test -z "$ac_c_werror_flag"
15404: || test ! -s conftest.err'
15405: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406: (eval $ac_try) 2>&5
15407: ac_status=$?
15408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409: (exit $ac_status); }; } &&
15410: { ac_try='test -s conftest$ac_exeext'
15411: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412: (eval $ac_try) 2>&5
15413: ac_status=$?
15414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415: (exit $ac_status); }; }; then
1.8 moko 15416:
1.11 moko 15417: cat >>confdefs.h <<\_ACEOF
15418: #define HAVE_LIBDL 1
15419: _ACEOF
1.8 moko 15420:
15421: libltdl_cv_func_dlopen="yes"
15422: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15423: else
1.11 moko 15424: echo "$as_me: failed program was:" >&5
15425: sed 's/^/| /' conftest.$ac_ext >&5
15426:
15427: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15428: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15429: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15430: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15431: else
15432: ac_check_lib_save_LIBS=$LIBS
15433: LIBS="-lsvld $LIBS"
1.11 moko 15434: cat >conftest.$ac_ext <<_ACEOF
15435: /* confdefs.h. */
15436: _ACEOF
15437: cat confdefs.h >>conftest.$ac_ext
15438: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15439: /* end confdefs.h. */
15440:
1.11 moko 15441: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15442: #ifdef __cplusplus
15443: extern "C"
15444: #endif
1.11 moko 15445: /* We use char because int might match the return type of a gcc2
15446: builtin and then its argument prototype would still apply. */
1.8 moko 15447: char dlopen ();
15448: int
15449: main ()
15450: {
1.11 moko 15451: dlopen ();
1.8 moko 15452: ;
15453: return 0;
15454: }
15455: _ACEOF
1.11 moko 15456: rm -f conftest.$ac_objext conftest$ac_exeext
15457: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15458: (eval $ac_link) 2>conftest.er1
15459: ac_status=$?
15460: grep -v '^ *+' conftest.er1 >conftest.err
15461: rm -f conftest.er1
15462: cat conftest.err >&5
15463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464: (exit $ac_status); } &&
15465: { ac_try='test -z "$ac_c_werror_flag"
15466: || test ! -s conftest.err'
15467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468: (eval $ac_try) 2>&5
15469: ac_status=$?
15470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471: (exit $ac_status); }; } &&
15472: { ac_try='test -s conftest$ac_exeext'
15473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474: (eval $ac_try) 2>&5
15475: ac_status=$?
15476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477: (exit $ac_status); }; }; then
1.8 moko 15478: ac_cv_lib_svld_dlopen=yes
15479: else
1.11 moko 15480: echo "$as_me: failed program was:" >&5
15481: sed 's/^/| /' conftest.$ac_ext >&5
15482:
15483: ac_cv_lib_svld_dlopen=no
1.8 moko 15484: fi
1.11 moko 15485: rm -f conftest.err conftest.$ac_objext \
15486: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15487: LIBS=$ac_check_lib_save_LIBS
15488: fi
1.11 moko 15489: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15490: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15491: if test $ac_cv_lib_svld_dlopen = yes; then
1.8 moko 15492:
1.11 moko 15493: cat >>confdefs.h <<\_ACEOF
15494: #define HAVE_LIBDL 1
15495: _ACEOF
1.8 moko 15496:
15497: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15498: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15499: fi
15500:
15501: fi
1.11 moko 15502: rm -f conftest.err conftest.$ac_objext \
15503: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15504: fi
15505:
15506: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15507: then
15508: lt_save_LIBS="$LIBS"
15509: LIBS="$LIBS $LIBADD_DLOPEN"
1.11 moko 15510:
15511: for ac_func in dlerror
15512: do
15513: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15514: echo "$as_me:$LINENO: checking for $ac_func" >&5
15515: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15516: if eval "test \"\${$as_ac_var+set}\" = set"; then
15517: echo $ECHO_N "(cached) $ECHO_C" >&6
15518: else
15519: cat >conftest.$ac_ext <<_ACEOF
15520: /* confdefs.h. */
15521: _ACEOF
15522: cat confdefs.h >>conftest.$ac_ext
15523: cat >>conftest.$ac_ext <<_ACEOF
15524: /* end confdefs.h. */
15525: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15526: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15527: #define $ac_func innocuous_$ac_func
15528:
15529: /* System header to define __stub macros and hopefully few prototypes,
15530: which can conflict with char $ac_func (); below.
15531: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15532: <limits.h> exists even on freestanding compilers. */
15533:
15534: #ifdef __STDC__
15535: # include <limits.h>
15536: #else
15537: # include <assert.h>
15538: #endif
15539:
15540: #undef $ac_func
15541:
15542: /* Override any gcc2 internal prototype to avoid an error. */
15543: #ifdef __cplusplus
15544: extern "C"
15545: {
15546: #endif
15547: /* We use char because int might match the return type of a gcc2
15548: builtin and then its argument prototype would still apply. */
15549: char $ac_func ();
15550: /* The GNU C library defines this for functions which it implements
15551: to always fail with ENOSYS. Some functions are actually named
15552: something starting with __ and the normal name is an alias. */
15553: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15554: choke me
15555: #else
15556: char (*f) () = $ac_func;
15557: #endif
15558: #ifdef __cplusplus
15559: }
15560: #endif
15561:
15562: int
15563: main ()
15564: {
15565: return f != $ac_func;
15566: ;
15567: return 0;
15568: }
15569: _ACEOF
15570: rm -f conftest.$ac_objext conftest$ac_exeext
15571: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572: (eval $ac_link) 2>conftest.er1
15573: ac_status=$?
15574: grep -v '^ *+' conftest.er1 >conftest.err
15575: rm -f conftest.er1
15576: cat conftest.err >&5
15577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578: (exit $ac_status); } &&
15579: { ac_try='test -z "$ac_c_werror_flag"
15580: || test ! -s conftest.err'
15581: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582: (eval $ac_try) 2>&5
15583: ac_status=$?
15584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585: (exit $ac_status); }; } &&
15586: { ac_try='test -s conftest$ac_exeext'
15587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588: (eval $ac_try) 2>&5
15589: ac_status=$?
15590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591: (exit $ac_status); }; }; then
15592: eval "$as_ac_var=yes"
15593: else
15594: echo "$as_me: failed program was:" >&5
15595: sed 's/^/| /' conftest.$ac_ext >&5
15596:
15597: eval "$as_ac_var=no"
15598: fi
15599: rm -f conftest.err conftest.$ac_objext \
15600: conftest$ac_exeext conftest.$ac_ext
15601: fi
15602: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15603: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15604: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 15605: cat >>confdefs.h <<_ACEOF
1.11 moko 15606: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 15607: _ACEOF
15608:
15609: fi
15610: done
15611:
15612: LIBS="$lt_save_LIBS"
15613: fi
15614:
15615:
15616: LIBADD_SHL_LOAD=
1.11 moko 15617: echo "$as_me:$LINENO: checking for shl_load" >&5
15618: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15619: if test "${ac_cv_func_shl_load+set}" = set; then
15620: echo $ECHO_N "(cached) $ECHO_C" >&6
15621: else
15622: cat >conftest.$ac_ext <<_ACEOF
15623: /* confdefs.h. */
15624: _ACEOF
15625: cat confdefs.h >>conftest.$ac_ext
15626: cat >>conftest.$ac_ext <<_ACEOF
15627: /* end confdefs.h. */
15628: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15629: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15630: #define shl_load innocuous_shl_load
15631:
15632: /* System header to define __stub macros and hopefully few prototypes,
15633: which can conflict with char shl_load (); below.
15634: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15635: <limits.h> exists even on freestanding compilers. */
15636:
15637: #ifdef __STDC__
15638: # include <limits.h>
15639: #else
15640: # include <assert.h>
15641: #endif
15642:
15643: #undef shl_load
15644:
15645: /* Override any gcc2 internal prototype to avoid an error. */
15646: #ifdef __cplusplus
15647: extern "C"
15648: {
15649: #endif
15650: /* We use char because int might match the return type of a gcc2
15651: builtin and then its argument prototype would still apply. */
15652: char shl_load ();
15653: /* The GNU C library defines this for functions which it implements
15654: to always fail with ENOSYS. Some functions are actually named
15655: something starting with __ and the normal name is an alias. */
15656: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15657: choke me
15658: #else
15659: char (*f) () = shl_load;
15660: #endif
15661: #ifdef __cplusplus
15662: }
15663: #endif
15664:
15665: int
15666: main ()
15667: {
15668: return f != shl_load;
15669: ;
15670: return 0;
15671: }
15672: _ACEOF
15673: rm -f conftest.$ac_objext conftest$ac_exeext
15674: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15675: (eval $ac_link) 2>conftest.er1
15676: ac_status=$?
15677: grep -v '^ *+' conftest.er1 >conftest.err
15678: rm -f conftest.er1
15679: cat conftest.err >&5
15680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681: (exit $ac_status); } &&
15682: { ac_try='test -z "$ac_c_werror_flag"
15683: || test ! -s conftest.err'
15684: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685: (eval $ac_try) 2>&5
15686: ac_status=$?
15687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688: (exit $ac_status); }; } &&
15689: { ac_try='test -s conftest$ac_exeext'
15690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691: (eval $ac_try) 2>&5
15692: ac_status=$?
15693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694: (exit $ac_status); }; }; then
15695: ac_cv_func_shl_load=yes
15696: else
15697: echo "$as_me: failed program was:" >&5
15698: sed 's/^/| /' conftest.$ac_ext >&5
15699:
15700: ac_cv_func_shl_load=no
15701: fi
15702: rm -f conftest.err conftest.$ac_objext \
15703: conftest$ac_exeext conftest.$ac_ext
15704: fi
15705: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15706: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15707: if test $ac_cv_func_shl_load = yes; then
1.8 moko 15708:
1.11 moko 15709: cat >>confdefs.h <<\_ACEOF
15710: #define HAVE_SHL_LOAD 1
15711: _ACEOF
1.8 moko 15712:
15713: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15714: else
1.11 moko 15715: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15716: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15717: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15718: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15719: else
15720: ac_check_lib_save_LIBS=$LIBS
15721: LIBS="-ldld $LIBS"
1.11 moko 15722: cat >conftest.$ac_ext <<_ACEOF
15723: /* confdefs.h. */
15724: _ACEOF
15725: cat confdefs.h >>conftest.$ac_ext
15726: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15727: /* end confdefs.h. */
15728:
1.11 moko 15729: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15730: #ifdef __cplusplus
15731: extern "C"
15732: #endif
1.11 moko 15733: /* We use char because int might match the return type of a gcc2
15734: builtin and then its argument prototype would still apply. */
1.8 moko 15735: char shl_load ();
15736: int
15737: main ()
15738: {
1.11 moko 15739: shl_load ();
1.8 moko 15740: ;
15741: return 0;
15742: }
15743: _ACEOF
1.11 moko 15744: rm -f conftest.$ac_objext conftest$ac_exeext
15745: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15746: (eval $ac_link) 2>conftest.er1
15747: ac_status=$?
15748: grep -v '^ *+' conftest.er1 >conftest.err
15749: rm -f conftest.er1
15750: cat conftest.err >&5
15751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752: (exit $ac_status); } &&
15753: { ac_try='test -z "$ac_c_werror_flag"
15754: || test ! -s conftest.err'
15755: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756: (eval $ac_try) 2>&5
15757: ac_status=$?
15758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759: (exit $ac_status); }; } &&
15760: { ac_try='test -s conftest$ac_exeext'
15761: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762: (eval $ac_try) 2>&5
15763: ac_status=$?
15764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765: (exit $ac_status); }; }; then
1.8 moko 15766: ac_cv_lib_dld_shl_load=yes
15767: else
1.11 moko 15768: echo "$as_me: failed program was:" >&5
15769: sed 's/^/| /' conftest.$ac_ext >&5
15770:
15771: ac_cv_lib_dld_shl_load=no
1.8 moko 15772: fi
1.11 moko 15773: rm -f conftest.err conftest.$ac_objext \
15774: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15775: LIBS=$ac_check_lib_save_LIBS
15776: fi
1.11 moko 15777: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15778: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15779: if test $ac_cv_lib_dld_shl_load = yes; then
1.8 moko 15780:
1.11 moko 15781: cat >>confdefs.h <<\_ACEOF
15782: #define HAVE_SHL_LOAD 1
15783: _ACEOF
1.8 moko 15784:
15785: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15786: LIBADD_SHL_LOAD="-ldld"
15787: fi
15788:
15789: fi
15790:
15791:
15792:
15793: case $host_os in
15794: darwin[1567].*)
15795: # We only want this for pre-Mac OS X 10.4.
1.11 moko 15796: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15797: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15798: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15799: echo $ECHO_N "(cached) $ECHO_C" >&6
15800: else
15801: cat >conftest.$ac_ext <<_ACEOF
15802: /* confdefs.h. */
15803: _ACEOF
15804: cat confdefs.h >>conftest.$ac_ext
15805: cat >>conftest.$ac_ext <<_ACEOF
15806: /* end confdefs.h. */
15807: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15808: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15809: #define _dyld_func_lookup innocuous__dyld_func_lookup
15810:
15811: /* System header to define __stub macros and hopefully few prototypes,
15812: which can conflict with char _dyld_func_lookup (); below.
15813: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15814: <limits.h> exists even on freestanding compilers. */
15815:
15816: #ifdef __STDC__
15817: # include <limits.h>
15818: #else
15819: # include <assert.h>
15820: #endif
15821:
15822: #undef _dyld_func_lookup
15823:
15824: /* Override any gcc2 internal prototype to avoid an error. */
15825: #ifdef __cplusplus
15826: extern "C"
15827: {
15828: #endif
15829: /* We use char because int might match the return type of a gcc2
15830: builtin and then its argument prototype would still apply. */
15831: char _dyld_func_lookup ();
15832: /* The GNU C library defines this for functions which it implements
15833: to always fail with ENOSYS. Some functions are actually named
15834: something starting with __ and the normal name is an alias. */
15835: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15836: choke me
15837: #else
15838: char (*f) () = _dyld_func_lookup;
15839: #endif
15840: #ifdef __cplusplus
15841: }
15842: #endif
15843:
15844: int
15845: main ()
15846: {
15847: return f != _dyld_func_lookup;
15848: ;
15849: return 0;
15850: }
15851: _ACEOF
15852: rm -f conftest.$ac_objext conftest$ac_exeext
15853: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15854: (eval $ac_link) 2>conftest.er1
15855: ac_status=$?
15856: grep -v '^ *+' conftest.er1 >conftest.err
15857: rm -f conftest.er1
15858: cat conftest.err >&5
15859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860: (exit $ac_status); } &&
15861: { ac_try='test -z "$ac_c_werror_flag"
15862: || test ! -s conftest.err'
15863: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864: (eval $ac_try) 2>&5
15865: ac_status=$?
15866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867: (exit $ac_status); }; } &&
15868: { ac_try='test -s conftest$ac_exeext'
15869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870: (eval $ac_try) 2>&5
15871: ac_status=$?
15872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873: (exit $ac_status); }; }; then
15874: ac_cv_func__dyld_func_lookup=yes
15875: else
15876: echo "$as_me: failed program was:" >&5
15877: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 15878:
1.11 moko 15879: ac_cv_func__dyld_func_lookup=no
15880: fi
15881: rm -f conftest.err conftest.$ac_objext \
15882: conftest$ac_exeext conftest.$ac_ext
15883: fi
15884: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15885: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15886: if test $ac_cv_func__dyld_func_lookup = yes; then
15887:
15888: cat >>confdefs.h <<\_ACEOF
15889: #define HAVE_DYLD 1
15890: _ACEOF
1.8 moko 15891:
15892: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15893: fi
15894:
15895: ;;
15896: beos*)
15897: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15898: ;;
15899: cygwin* | mingw* | os2* | pw32*)
1.11 moko 15900: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15901: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15902: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15903: echo $ECHO_N "(cached) $ECHO_C" >&6
15904: else
15905: cat >conftest.$ac_ext <<_ACEOF
15906: /* confdefs.h. */
15907: _ACEOF
15908: cat confdefs.h >>conftest.$ac_ext
15909: cat >>conftest.$ac_ext <<_ACEOF
15910: /* end confdefs.h. */
15911: #include <sys/cygwin.h>
15912:
15913: int
15914: main ()
15915: {
15916: #ifndef cygwin_conv_path
15917: char *p = (char *) cygwin_conv_path;
15918: #endif
15919:
15920: ;
15921: return 0;
15922: }
15923: _ACEOF
15924: rm -f conftest.$ac_objext
15925: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926: (eval $ac_compile) 2>conftest.er1
15927: ac_status=$?
15928: grep -v '^ *+' conftest.er1 >conftest.err
15929: rm -f conftest.er1
15930: cat conftest.err >&5
15931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932: (exit $ac_status); } &&
15933: { ac_try='test -z "$ac_c_werror_flag"
15934: || test ! -s conftest.err'
15935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936: (eval $ac_try) 2>&5
15937: ac_status=$?
15938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939: (exit $ac_status); }; } &&
15940: { ac_try='test -s conftest.$ac_objext'
15941: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942: (eval $ac_try) 2>&5
15943: ac_status=$?
15944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945: (exit $ac_status); }; }; then
15946: ac_cv_have_decl_cygwin_conv_path=yes
1.8 moko 15947: else
1.11 moko 15948: echo "$as_me: failed program was:" >&5
15949: sed 's/^/| /' conftest.$ac_ext >&5
15950:
15951: ac_cv_have_decl_cygwin_conv_path=no
15952: fi
15953: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.8 moko 15954: fi
1.11 moko 15955: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15956: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15957: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
1.8 moko 15958:
15959: cat >>confdefs.h <<_ACEOF
1.11 moko 15960: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15961: _ACEOF
15962:
15963:
15964: else
15965: cat >>confdefs.h <<_ACEOF
15966: #define HAVE_DECL_CYGWIN_CONV_PATH 0
1.8 moko 15967: _ACEOF
15968:
1.11 moko 15969:
15970: fi
15971:
15972:
1.8 moko 15973: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15974: ;;
15975: esac
15976:
1.11 moko 15977: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15978: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15979: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15980: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 15981: else
15982: ac_check_lib_save_LIBS=$LIBS
15983: LIBS="-ldld $LIBS"
1.11 moko 15984: cat >conftest.$ac_ext <<_ACEOF
15985: /* confdefs.h. */
15986: _ACEOF
15987: cat confdefs.h >>conftest.$ac_ext
15988: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 15989: /* end confdefs.h. */
15990:
1.11 moko 15991: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 15992: #ifdef __cplusplus
15993: extern "C"
15994: #endif
1.11 moko 15995: /* We use char because int might match the return type of a gcc2
15996: builtin and then its argument prototype would still apply. */
1.8 moko 15997: char dld_link ();
15998: int
15999: main ()
16000: {
1.11 moko 16001: dld_link ();
1.8 moko 16002: ;
16003: return 0;
16004: }
16005: _ACEOF
1.11 moko 16006: rm -f conftest.$ac_objext conftest$ac_exeext
16007: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16008: (eval $ac_link) 2>conftest.er1
16009: ac_status=$?
16010: grep -v '^ *+' conftest.er1 >conftest.err
16011: rm -f conftest.er1
16012: cat conftest.err >&5
16013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014: (exit $ac_status); } &&
16015: { ac_try='test -z "$ac_c_werror_flag"
16016: || test ! -s conftest.err'
16017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018: (eval $ac_try) 2>&5
16019: ac_status=$?
16020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021: (exit $ac_status); }; } &&
16022: { ac_try='test -s conftest$ac_exeext'
16023: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024: (eval $ac_try) 2>&5
16025: ac_status=$?
16026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027: (exit $ac_status); }; }; then
1.8 moko 16028: ac_cv_lib_dld_dld_link=yes
16029: else
1.11 moko 16030: echo "$as_me: failed program was:" >&5
16031: sed 's/^/| /' conftest.$ac_ext >&5
16032:
16033: ac_cv_lib_dld_dld_link=no
1.8 moko 16034: fi
1.11 moko 16035: rm -f conftest.err conftest.$ac_objext \
16036: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16037: LIBS=$ac_check_lib_save_LIBS
16038: fi
1.11 moko 16039: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16040: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16041: if test $ac_cv_lib_dld_dld_link = yes; then
1.8 moko 16042:
1.11 moko 16043: cat >>confdefs.h <<\_ACEOF
16044: #define HAVE_DLD 1
16045: _ACEOF
1.8 moko 16046:
16047: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16048: fi
16049:
16050:
16051:
16052:
16053: LT_DLPREOPEN=
16054: if test -n "$LT_DLLOADERS"
16055: then
16056: for lt_loader in $LT_DLLOADERS; do
16057: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16058: done
16059:
1.11 moko 16060: cat >>confdefs.h <<\_ACEOF
16061: #define HAVE_LIBDLLOADER 1
16062: _ACEOF
1.8 moko 16063:
16064: fi
16065:
16066:
16067: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16068:
16069:
16070: ac_ext=c
16071: ac_cpp='$CPP $CPPFLAGS'
16072: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16075:
16076:
1.11 moko 16077: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16078: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16079: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16080: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16081: else
16082: lt_cv_sys_symbol_underscore=no
16083: cat > conftest.$ac_ext <<_LT_EOF
16084: void nm_test_func(){}
16085: int main(){nm_test_func;return 0;}
16086: _LT_EOF
1.11 moko 16087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.8 moko 16088: (eval $ac_compile) 2>&5
16089: ac_status=$?
1.11 moko 16090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091: (exit $ac_status); }; then
1.8 moko 16092: # Now try to grab the symbols.
16093: ac_nlist=conftest.nm
1.11 moko 16094: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
1.8 moko 16095: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16096: ac_status=$?
1.11 moko 16097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098: (exit $ac_status); } && test -s "$ac_nlist"; then
1.8 moko 16099: # See whether the symbols have a leading underscore.
16100: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16101: lt_cv_sys_symbol_underscore=yes
16102: else
16103: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16104: :
16105: else
16106: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16107: fi
16108: fi
16109: else
16110: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16111: fi
16112: else
16113: echo "configure: failed program was:" >&5
16114: cat conftest.c >&5
16115: fi
16116: rm -rf conftest*
16117:
16118: fi
1.11 moko 16119: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16120: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
1.8 moko 16121: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16122:
16123:
16124: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16125: if test x"$libltdl_cv_func_dlopen" = xyes ||
16126: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.11 moko 16127: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16128: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16129: if test "${libltdl_cv_need_uscore+set}" = set; then
16130: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16131: else
16132: libltdl_cv_need_uscore=unknown
16133: save_LIBS="$LIBS"
16134: LIBS="$LIBS $LIBADD_DLOPEN"
16135: if test "$cross_compiling" = yes; then :
16136: libltdl_cv_need_uscore=cross
16137: else
16138: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16139: lt_status=$lt_dlunknown
16140: cat > conftest.$ac_ext <<_LT_EOF
16141: #line $LINENO "configure"
16142: #include "confdefs.h"
16143:
16144: #if HAVE_DLFCN_H
16145: #include <dlfcn.h>
16146: #endif
16147:
16148: #include <stdio.h>
16149:
16150: #ifdef RTLD_GLOBAL
16151: # define LT_DLGLOBAL RTLD_GLOBAL
16152: #else
16153: # ifdef DL_GLOBAL
16154: # define LT_DLGLOBAL DL_GLOBAL
16155: # else
16156: # define LT_DLGLOBAL 0
16157: # endif
16158: #endif
16159:
16160: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16161: find out it does not work in some platform. */
16162: #ifndef LT_DLLAZY_OR_NOW
16163: # ifdef RTLD_LAZY
16164: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16165: # else
16166: # ifdef DL_LAZY
16167: # define LT_DLLAZY_OR_NOW DL_LAZY
16168: # else
16169: # ifdef RTLD_NOW
16170: # define LT_DLLAZY_OR_NOW RTLD_NOW
16171: # else
16172: # ifdef DL_NOW
16173: # define LT_DLLAZY_OR_NOW DL_NOW
16174: # else
16175: # define LT_DLLAZY_OR_NOW 0
16176: # endif
16177: # endif
16178: # endif
16179: # endif
16180: #endif
16181:
16182: /* When -fvisbility=hidden is used, assume the code has been annotated
16183: correspondingly for the symbols needed. */
16184: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16185: int fnord () __attribute__((visibility("default")));
16186: #endif
16187:
16188: int fnord () { return 42; }
16189: int main ()
16190: {
16191: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16192: int status = $lt_dlunknown;
16193:
16194: if (self)
16195: {
16196: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16197: else
16198: {
16199: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16200: else puts (dlerror ());
16201: }
16202: /* dlclose (self); */
16203: }
16204: else
16205: puts (dlerror ());
16206:
16207: return status;
16208: }
16209: _LT_EOF
1.11 moko 16210: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8 moko 16211: (eval $ac_link) 2>&5
16212: ac_status=$?
1.11 moko 16213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 16215: (./conftest; exit; ) >&5 2>/dev/null
16216: lt_status=$?
16217: case x$lt_status in
16218: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16219: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16220: x$lt_dlunknown|x*) ;;
16221: esac
16222: else :
16223: # compilation failed
16224:
16225: fi
16226: fi
16227: rm -fr conftest*
16228:
16229: LIBS="$save_LIBS"
16230:
16231: fi
1.11 moko 16232: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16233: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
1.8 moko 16234: fi
16235: fi
16236:
16237: if test x"$libltdl_cv_need_uscore" = xyes; then
16238:
1.11 moko 16239: cat >>confdefs.h <<\_ACEOF
16240: #define NEED_USCORE 1
16241: _ACEOF
1.8 moko 16242:
16243: fi
16244:
1.11 moko 16245: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16246: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16247: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16248: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16249: else
16250: # PORTME does your system automatically load deplibs for dlopen?
16251: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16252: # For now, we just catch OSes we know something about -- in the
16253: # future, we'll try test this programmatically.
16254: lt_cv_sys_dlopen_deplibs=unknown
16255: case $host_os in
16256: aix3*|aix4.1.*|aix4.2.*)
16257: # Unknown whether this is true for these versions of AIX, but
16258: # we want this `case' here to explicitly catch those versions.
16259: lt_cv_sys_dlopen_deplibs=unknown
16260: ;;
16261: aix[4-9]*)
16262: lt_cv_sys_dlopen_deplibs=yes
16263: ;;
16264: amigaos*)
16265: case $host_cpu in
16266: powerpc)
16267: lt_cv_sys_dlopen_deplibs=no
16268: ;;
16269: esac
16270: ;;
16271: darwin*)
16272: # Assuming the user has installed a libdl from somewhere, this is true
16273: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16274: lt_cv_sys_dlopen_deplibs=yes
16275: ;;
16276: freebsd* | dragonfly*)
16277: lt_cv_sys_dlopen_deplibs=yes
16278: ;;
16279: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16280: # GNU and its variants, using gnu ld.so (Glibc)
16281: lt_cv_sys_dlopen_deplibs=yes
16282: ;;
16283: hpux10*|hpux11*)
16284: lt_cv_sys_dlopen_deplibs=yes
16285: ;;
16286: interix*)
16287: lt_cv_sys_dlopen_deplibs=yes
16288: ;;
16289: irix[12345]*|irix6.[01]*)
16290: # Catch all versions of IRIX before 6.2, and indicate that we don't
16291: # know how it worked for any of those versions.
16292: lt_cv_sys_dlopen_deplibs=unknown
16293: ;;
16294: irix*)
16295: # The case above catches anything before 6.2, and it's known that
16296: # at 6.2 and later dlopen does load deplibs.
16297: lt_cv_sys_dlopen_deplibs=yes
16298: ;;
16299: netbsd*)
16300: lt_cv_sys_dlopen_deplibs=yes
16301: ;;
16302: openbsd*)
16303: lt_cv_sys_dlopen_deplibs=yes
16304: ;;
16305: osf[1234]*)
16306: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16307: # it did *not* use an RPATH in a shared library to find objects the
16308: # library depends on, so we explicitly say `no'.
16309: lt_cv_sys_dlopen_deplibs=no
16310: ;;
16311: osf5.0|osf5.0a|osf5.1)
16312: # dlopen *does* load deplibs and with the right loader patch applied
16313: # it even uses RPATH in a shared library to search for shared objects
16314: # that the library depends on, but there's no easy way to know if that
16315: # patch is installed. Since this is the case, all we can really
16316: # say is unknown -- it depends on the patch being installed. If
16317: # it is, this changes to `yes'. Without it, it would be `no'.
16318: lt_cv_sys_dlopen_deplibs=unknown
16319: ;;
16320: osf*)
16321: # the two cases above should catch all versions of osf <= 5.1. Read
16322: # the comments above for what we know about them.
16323: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16324: # is used to find them so we can finally say `yes'.
16325: lt_cv_sys_dlopen_deplibs=yes
16326: ;;
16327: qnx*)
16328: lt_cv_sys_dlopen_deplibs=yes
16329: ;;
16330: solaris*)
16331: lt_cv_sys_dlopen_deplibs=yes
16332: ;;
16333: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16334: libltdl_cv_sys_dlopen_deplibs=yes
16335: ;;
16336: esac
16337:
16338: fi
1.11 moko 16339: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16340: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
1.8 moko 16341: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16342:
1.11 moko 16343: cat >>confdefs.h <<\_ACEOF
16344: #define LTDL_DLOPEN_DEPLIBS 1
16345: _ACEOF
1.8 moko 16346:
16347: fi
16348:
16349: :
16350:
1.11 moko 16351:
1.8 moko 16352: for ac_header in argz.h
1.11 moko 16353: do
16354: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16355: echo "$as_me:$LINENO: checking for $ac_header" >&5
16356: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16357: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16358: echo $ECHO_N "(cached) $ECHO_C" >&6
16359: else
16360: cat >conftest.$ac_ext <<_ACEOF
16361: /* confdefs.h. */
16362: _ACEOF
16363: cat confdefs.h >>conftest.$ac_ext
16364: cat >>conftest.$ac_ext <<_ACEOF
16365: /* end confdefs.h. */
16366: $ac_includes_default
16367:
16368: #include <$ac_header>
16369: _ACEOF
16370: rm -f conftest.$ac_objext
16371: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372: (eval $ac_compile) 2>conftest.er1
16373: ac_status=$?
16374: grep -v '^ *+' conftest.er1 >conftest.err
16375: rm -f conftest.er1
16376: cat conftest.err >&5
16377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378: (exit $ac_status); } &&
16379: { ac_try='test -z "$ac_c_werror_flag"
16380: || test ! -s conftest.err'
16381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382: (eval $ac_try) 2>&5
16383: ac_status=$?
16384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385: (exit $ac_status); }; } &&
16386: { ac_try='test -s conftest.$ac_objext'
16387: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388: (eval $ac_try) 2>&5
16389: ac_status=$?
16390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391: (exit $ac_status); }; }; then
16392: eval "$as_ac_Header=yes"
16393: else
16394: echo "$as_me: failed program was:" >&5
16395: sed 's/^/| /' conftest.$ac_ext >&5
16396:
16397: eval "$as_ac_Header=no"
16398: fi
16399: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16400: fi
16401: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16402: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16403: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 16404: cat >>confdefs.h <<_ACEOF
1.11 moko 16405: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16406: _ACEOF
16407:
16408: fi
16409:
16410: done
16411:
16412:
1.11 moko 16413: echo "$as_me:$LINENO: checking for error_t" >&5
16414: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16415: if test "${ac_cv_type_error_t+set}" = set; then
16416: echo $ECHO_N "(cached) $ECHO_C" >&6
16417: else
16418: cat >conftest.$ac_ext <<_ACEOF
16419: /* confdefs.h. */
16420: _ACEOF
16421: cat confdefs.h >>conftest.$ac_ext
16422: cat >>conftest.$ac_ext <<_ACEOF
16423: /* end confdefs.h. */
16424: #if defined(HAVE_ARGZ_H)
1.8 moko 16425: # include <argz.h>
16426: #endif
1.11 moko 16427:
16428: int
16429: main ()
16430: {
16431: if ((error_t *) 0)
16432: return 0;
16433: if (sizeof (error_t))
16434: return 0;
16435: ;
16436: return 0;
16437: }
16438: _ACEOF
16439: rm -f conftest.$ac_objext
16440: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16441: (eval $ac_compile) 2>conftest.er1
16442: ac_status=$?
16443: grep -v '^ *+' conftest.er1 >conftest.err
16444: rm -f conftest.er1
16445: cat conftest.err >&5
16446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447: (exit $ac_status); } &&
16448: { ac_try='test -z "$ac_c_werror_flag"
16449: || test ! -s conftest.err'
16450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451: (eval $ac_try) 2>&5
16452: ac_status=$?
16453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454: (exit $ac_status); }; } &&
16455: { ac_try='test -s conftest.$ac_objext'
16456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457: (eval $ac_try) 2>&5
16458: ac_status=$?
16459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460: (exit $ac_status); }; }; then
16461: ac_cv_type_error_t=yes
16462: else
16463: echo "$as_me: failed program was:" >&5
16464: sed 's/^/| /' conftest.$ac_ext >&5
16465:
16466: ac_cv_type_error_t=no
16467: fi
16468: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16469: fi
16470: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16471: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16472: if test $ac_cv_type_error_t = yes; then
1.8 moko 16473:
16474: cat >>confdefs.h <<_ACEOF
16475: #define HAVE_ERROR_T 1
16476: _ACEOF
16477:
16478:
16479: else
16480:
1.11 moko 16481: cat >>confdefs.h <<\_ACEOF
16482: #define error_t int
16483: _ACEOF
1.8 moko 16484:
16485:
1.11 moko 16486: cat >>confdefs.h <<\_ACEOF
16487: #define __error_t_defined 1
16488: _ACEOF
1.8 moko 16489:
16490: fi
16491:
16492:
16493: ARGZ_H=
1.11 moko 16494:
16495:
16496:
16497:
16498:
16499:
16500:
1.8 moko 16501: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16502: argz_next argz_stringify
1.11 moko 16503: do
16504: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16505: echo "$as_me:$LINENO: checking for $ac_func" >&5
16506: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16507: if eval "test \"\${$as_ac_var+set}\" = set"; then
16508: echo $ECHO_N "(cached) $ECHO_C" >&6
16509: else
16510: cat >conftest.$ac_ext <<_ACEOF
16511: /* confdefs.h. */
16512: _ACEOF
16513: cat confdefs.h >>conftest.$ac_ext
16514: cat >>conftest.$ac_ext <<_ACEOF
16515: /* end confdefs.h. */
16516: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16517: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16518: #define $ac_func innocuous_$ac_func
16519:
16520: /* System header to define __stub macros and hopefully few prototypes,
16521: which can conflict with char $ac_func (); below.
16522: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16523: <limits.h> exists even on freestanding compilers. */
16524:
16525: #ifdef __STDC__
16526: # include <limits.h>
16527: #else
16528: # include <assert.h>
16529: #endif
16530:
16531: #undef $ac_func
16532:
16533: /* Override any gcc2 internal prototype to avoid an error. */
16534: #ifdef __cplusplus
16535: extern "C"
16536: {
16537: #endif
16538: /* We use char because int might match the return type of a gcc2
16539: builtin and then its argument prototype would still apply. */
16540: char $ac_func ();
16541: /* The GNU C library defines this for functions which it implements
16542: to always fail with ENOSYS. Some functions are actually named
16543: something starting with __ and the normal name is an alias. */
16544: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545: choke me
16546: #else
16547: char (*f) () = $ac_func;
16548: #endif
16549: #ifdef __cplusplus
16550: }
16551: #endif
16552:
16553: int
16554: main ()
16555: {
16556: return f != $ac_func;
16557: ;
16558: return 0;
16559: }
16560: _ACEOF
16561: rm -f conftest.$ac_objext conftest$ac_exeext
16562: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563: (eval $ac_link) 2>conftest.er1
16564: ac_status=$?
16565: grep -v '^ *+' conftest.er1 >conftest.err
16566: rm -f conftest.er1
16567: cat conftest.err >&5
16568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569: (exit $ac_status); } &&
16570: { ac_try='test -z "$ac_c_werror_flag"
16571: || test ! -s conftest.err'
16572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573: (eval $ac_try) 2>&5
16574: ac_status=$?
16575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576: (exit $ac_status); }; } &&
16577: { ac_try='test -s conftest$ac_exeext'
16578: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579: (eval $ac_try) 2>&5
16580: ac_status=$?
16581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582: (exit $ac_status); }; }; then
16583: eval "$as_ac_var=yes"
16584: else
16585: echo "$as_me: failed program was:" >&5
16586: sed 's/^/| /' conftest.$ac_ext >&5
16587:
16588: eval "$as_ac_var=no"
16589: fi
16590: rm -f conftest.err conftest.$ac_objext \
16591: conftest$ac_exeext conftest.$ac_ext
16592: fi
16593: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16594: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16595: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 16596: cat >>confdefs.h <<_ACEOF
1.11 moko 16597: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16598: _ACEOF
16599:
16600: else
16601: ARGZ_H=argz.h;
16602:
16603: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16604:
16605: fi
16606: done
16607:
16608:
1.11 moko 16609: if test -z "$ARGZ_H"; then
16610: echo "$as_me:$LINENO: checking if argz actually works" >&5
16611: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16612: if test "${lt_cv_sys_argz_works+set}" = set; then
16613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16614: else
16615: case $host_os in #(
16616: *cygwin*)
16617: lt_cv_sys_argz_works=no
16618: if test "$cross_compiling" != no; then
16619: lt_cv_sys_argz_works="guessing no"
16620: else
16621: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16622: save_IFS=$IFS
16623: IFS=-.
16624: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16625: IFS=$save_IFS
16626: lt_os_major=${2-0}
16627: lt_os_minor=${3-0}
16628: lt_os_micro=${4-0}
16629: if test "$lt_os_major" -gt 1 \
16630: || { test "$lt_os_major" -eq 1 \
16631: && { test "$lt_os_minor" -gt 5 \
16632: || { test "$lt_os_minor" -eq 5 \
16633: && test "$lt_os_micro" -gt 24; }; }; }; then
16634: lt_cv_sys_argz_works=yes
16635: fi
16636: fi
16637: ;; #(
16638: *) lt_cv_sys_argz_works=yes ;;
16639: esac
16640: fi
1.11 moko 16641: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16642: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16643: if test "$lt_cv_sys_argz_works" = yes; then
1.8 moko 16644:
1.11 moko 16645: cat >>confdefs.h <<\_ACEOF
16646: #define HAVE_WORKING_ARGZ 1
16647: _ACEOF
1.8 moko 16648:
16649: else
16650: ARGZ_H=argz.h
16651:
16652:
16653: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16654:
16655: fi
1.11 moko 16656:
1.8 moko 16657: fi
16658:
16659:
16660:
1.11 moko 16661:
16662: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16663: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16664: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16665: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16666: else
16667: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16668: libltdl_cv_preloaded_symbols=yes
16669: else
16670: libltdl_cv_preloaded_symbols=no
16671: fi
16672:
16673: fi
1.11 moko 16674: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16675: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
1.8 moko 16676: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16677:
1.11 moko 16678: cat >>confdefs.h <<\_ACEOF
16679: #define HAVE_PRELOADED_SYMBOLS 1
16680: _ACEOF
1.8 moko 16681:
16682: fi
16683:
16684: # Set options
16685:
16686:
16687:
16688:
16689:
16690:
16691:
16692:
16693:
16694:
16695:
16696:
1.11 moko 16697: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16698: if test "${with_included_ltdl+set}" = set; then
16699: withval="$with_included_ltdl"
1.8 moko 16700:
1.11 moko 16701: fi;
1.8 moko 16702:
16703: if test "x$with_included_ltdl" != xyes; then
16704: # We are not being forced to use the included libltdl sources, so
16705: # decide whether there is a useful installed version we can use.
1.11 moko 16706: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16707: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16708: if test "${ac_cv_header_ltdl_h+set}" = set; then
16709: echo $ECHO_N "(cached) $ECHO_C" >&6
16710: else
16711: cat >conftest.$ac_ext <<_ACEOF
16712: /* confdefs.h. */
16713: _ACEOF
16714: cat confdefs.h >>conftest.$ac_ext
16715: cat >>conftest.$ac_ext <<_ACEOF
16716: /* end confdefs.h. */
16717: $ac_includes_default
16718:
16719:
16720: #include <ltdl.h>
16721: _ACEOF
16722: rm -f conftest.$ac_objext
16723: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16724: (eval $ac_compile) 2>conftest.er1
16725: ac_status=$?
16726: grep -v '^ *+' conftest.er1 >conftest.err
16727: rm -f conftest.er1
16728: cat conftest.err >&5
16729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730: (exit $ac_status); } &&
16731: { ac_try='test -z "$ac_c_werror_flag"
16732: || test ! -s conftest.err'
16733: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734: (eval $ac_try) 2>&5
16735: ac_status=$?
16736: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737: (exit $ac_status); }; } &&
16738: { ac_try='test -s conftest.$ac_objext'
16739: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740: (eval $ac_try) 2>&5
16741: ac_status=$?
16742: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743: (exit $ac_status); }; }; then
16744: ac_cv_header_ltdl_h=yes
16745: else
16746: echo "$as_me: failed program was:" >&5
16747: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 16748:
1.11 moko 16749: ac_cv_header_ltdl_h=no
16750: fi
16751: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752: fi
16753: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16754: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16755: if test $ac_cv_header_ltdl_h = yes; then
16756: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16757: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16758: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16759: echo $ECHO_N "(cached) $ECHO_C" >&6
16760: else
16761: cat >conftest.$ac_ext <<_ACEOF
16762: /* confdefs.h. */
16763: _ACEOF
16764: cat confdefs.h >>conftest.$ac_ext
16765: cat >>conftest.$ac_ext <<_ACEOF
16766: /* end confdefs.h. */
16767: $ac_includes_default
1.8 moko 16768: #include <ltdl.h>
1.11 moko 16769:
16770: int
16771: main ()
16772: {
16773: #ifndef lt_dlinterface_register
16774: char *p = (char *) lt_dlinterface_register;
16775: #endif
16776:
16777: ;
16778: return 0;
16779: }
16780: _ACEOF
16781: rm -f conftest.$ac_objext
16782: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783: (eval $ac_compile) 2>conftest.er1
16784: ac_status=$?
16785: grep -v '^ *+' conftest.er1 >conftest.err
16786: rm -f conftest.er1
16787: cat conftest.err >&5
16788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789: (exit $ac_status); } &&
16790: { ac_try='test -z "$ac_c_werror_flag"
16791: || test ! -s conftest.err'
16792: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793: (eval $ac_try) 2>&5
16794: ac_status=$?
16795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796: (exit $ac_status); }; } &&
16797: { ac_try='test -s conftest.$ac_objext'
16798: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799: (eval $ac_try) 2>&5
16800: ac_status=$?
16801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802: (exit $ac_status); }; }; then
16803: ac_cv_have_decl_lt_dlinterface_register=yes
16804: else
16805: echo "$as_me: failed program was:" >&5
16806: sed 's/^/| /' conftest.$ac_ext >&5
16807:
16808: ac_cv_have_decl_lt_dlinterface_register=no
16809: fi
16810: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811: fi
16812: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16813: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16814: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16815: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16816: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16817: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16818: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 moko 16819: else
16820: ac_check_lib_save_LIBS=$LIBS
16821: LIBS="-lltdl $LIBS"
1.11 moko 16822: cat >conftest.$ac_ext <<_ACEOF
16823: /* confdefs.h. */
16824: _ACEOF
16825: cat confdefs.h >>conftest.$ac_ext
16826: cat >>conftest.$ac_ext <<_ACEOF
1.8 moko 16827: /* end confdefs.h. */
16828:
1.11 moko 16829: /* Override any gcc2 internal prototype to avoid an error. */
1.8 moko 16830: #ifdef __cplusplus
16831: extern "C"
16832: #endif
1.11 moko 16833: /* We use char because int might match the return type of a gcc2
16834: builtin and then its argument prototype would still apply. */
1.8 moko 16835: char lt_dladvise_preload ();
16836: int
16837: main ()
16838: {
1.11 moko 16839: lt_dladvise_preload ();
1.8 moko 16840: ;
16841: return 0;
16842: }
16843: _ACEOF
1.11 moko 16844: rm -f conftest.$ac_objext conftest$ac_exeext
16845: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846: (eval $ac_link) 2>conftest.er1
16847: ac_status=$?
16848: grep -v '^ *+' conftest.er1 >conftest.err
16849: rm -f conftest.er1
16850: cat conftest.err >&5
16851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852: (exit $ac_status); } &&
16853: { ac_try='test -z "$ac_c_werror_flag"
16854: || test ! -s conftest.err'
16855: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856: (eval $ac_try) 2>&5
16857: ac_status=$?
16858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859: (exit $ac_status); }; } &&
16860: { ac_try='test -s conftest$ac_exeext'
16861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862: (eval $ac_try) 2>&5
16863: ac_status=$?
16864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865: (exit $ac_status); }; }; then
1.8 moko 16866: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16867: else
1.11 moko 16868: echo "$as_me: failed program was:" >&5
16869: sed 's/^/| /' conftest.$ac_ext >&5
16870:
16871: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16872: fi
1.11 moko 16873: rm -f conftest.err conftest.$ac_objext \
16874: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16875: LIBS=$ac_check_lib_save_LIBS
16876: fi
1.11 moko 16877: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16878: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16879: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
1.8 moko 16880: with_included_ltdl=no
16881: else
16882: with_included_ltdl=yes
16883: fi
16884:
16885: else
16886: with_included_ltdl=yes
16887: fi
16888:
16889: else
16890: with_included_ltdl=yes
16891: fi
16892:
16893:
16894: fi
16895:
16896:
16897:
16898:
1.11 moko 16899: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16900: if test "${with_ltdl_include+set}" = set; then
16901: withval="$with_ltdl_include"
1.8 moko 16902:
1.11 moko 16903: fi;
1.8 moko 16904:
16905: if test -n "$with_ltdl_include"; then
16906: if test -f "$with_ltdl_include/ltdl.h"; then :
16907: else
1.11 moko 16908: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16909: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16910: { (exit 1); exit 1; }; }
1.8 moko 16911: fi
16912: else
16913: with_ltdl_include=no
16914: fi
16915:
16916:
1.11 moko 16917: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16918: if test "${with_ltdl_lib+set}" = set; then
16919: withval="$with_ltdl_lib"
1.8 moko 16920:
1.11 moko 16921: fi;
1.8 moko 16922:
16923: if test -n "$with_ltdl_lib"; then
16924: if test -f "$with_ltdl_lib/libltdl.la"; then :
16925: else
1.11 moko 16926: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16927: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16928: { (exit 1); exit 1; }; }
1.8 moko 16929: fi
16930: else
16931: with_ltdl_lib=no
16932: fi
16933:
16934: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16935: ,yes,no,no,)
16936: case $enable_ltdl_convenience in
1.11 moko 16937: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16938: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16939: { (exit 1); exit 1; }; } ;;
1.8 moko 16940: "") enable_ltdl_convenience=yes
16941: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16942: esac
1.11 moko 16943: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16944: LTDLDEPS=$LIBLTDL
16945: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16946:
16947:
16948:
16949:
16950:
16951: # For backwards non-gettext consistent compatibility...
16952: INCLTDL="$LTDLINCL"
16953:
16954:
16955: ;;
16956: ,no,no,no,)
16957: # If the included ltdl is not to be used, then use the
16958: # preinstalled libltdl we found.
16959:
1.11 moko 16960: cat >>confdefs.h <<\_ACEOF
16961: #define HAVE_LTDL 1
16962: _ACEOF
1.8 moko 16963:
16964: LIBLTDL=-lltdl
16965: LTDLDEPS=
16966: LTDLINCL=
16967: ;;
16968: ,no*,no,*)
1.11 moko 16969: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16970: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16971: { (exit 1); exit 1; }; }
1.8 moko 16972: ;;
16973: *) with_included_ltdl=no
16974: LIBLTDL="-L$with_ltdl_lib -lltdl"
16975: LTDLDEPS=
16976: LTDLINCL="-I$with_ltdl_include"
16977: ;;
16978: esac
16979: INCLTDL="$LTDLINCL"
16980:
16981: # Report our decision...
1.11 moko 16982: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16983: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16984: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16985: echo "${ECHO_T}$LTDLINCL" >&6
16986: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16987: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16988: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16989: echo "${ECHO_T}$LIBLTDL" >&6
1.8 moko 16990:
16991:
16992:
1.11 moko 16993: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
16994: if test "${enable_ltdl_install+set}" = set; then
16995: enableval="$enable_ltdl_install"
1.8 moko 16996:
1.11 moko 16997: fi;
1.8 moko 16998:
16999: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17000: *yes*) ;;
17001: *) enable_ltdl_convenience=yes ;;
17002: esac
17003:
17004:
17005:
17006: if test x"${enable_ltdl_install-no}" != xno; then
17007: INSTALL_LTDL_TRUE=
17008: INSTALL_LTDL_FALSE='#'
17009: else
17010: INSTALL_LTDL_TRUE='#'
17011: INSTALL_LTDL_FALSE=
17012: fi
17013:
17014:
17015:
17016: if test x"${enable_ltdl_convenience-no}" != xno; then
17017: CONVENIENCE_LTDL_TRUE=
17018: CONVENIENCE_LTDL_FALSE='#'
17019: else
17020: CONVENIENCE_LTDL_TRUE='#'
17021: CONVENIENCE_LTDL_FALSE=
17022: fi
17023:
17024:
17025:
1.11 moko 17026:
17027:
17028: subdirs="$subdirs libltdl"
1.8 moko 17029:
17030:
17031:
17032:
17033: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17034: # the user used. This is so that ltdl.h can pick up the parent projects
17035: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17036: # definitions required by ltdl.c.
17037: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17038:
17039:
17040:
1.10 moko 17041:
1.8 moko 17042:
17043:
17044:
1.11 moko 17045:
17046:
17047: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17048: do
17049: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17050: echo "$as_me:$LINENO: checking for $ac_header" >&5
17051: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17052: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17053: echo $ECHO_N "(cached) $ECHO_C" >&6
17054: else
17055: cat >conftest.$ac_ext <<_ACEOF
17056: /* confdefs.h. */
17057: _ACEOF
17058: cat confdefs.h >>conftest.$ac_ext
17059: cat >>conftest.$ac_ext <<_ACEOF
17060: /* end confdefs.h. */
17061: $ac_includes_default
17062:
17063: #include <$ac_header>
17064: _ACEOF
17065: rm -f conftest.$ac_objext
17066: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17067: (eval $ac_compile) 2>conftest.er1
17068: ac_status=$?
17069: grep -v '^ *+' conftest.er1 >conftest.err
17070: rm -f conftest.er1
17071: cat conftest.err >&5
17072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073: (exit $ac_status); } &&
17074: { ac_try='test -z "$ac_c_werror_flag"
17075: || test ! -s conftest.err'
17076: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077: (eval $ac_try) 2>&5
17078: ac_status=$?
17079: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080: (exit $ac_status); }; } &&
17081: { ac_try='test -s conftest.$ac_objext'
17082: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083: (eval $ac_try) 2>&5
17084: ac_status=$?
17085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086: (exit $ac_status); }; }; then
17087: eval "$as_ac_Header=yes"
17088: else
17089: echo "$as_me: failed program was:" >&5
17090: sed 's/^/| /' conftest.$ac_ext >&5
17091:
17092: eval "$as_ac_Header=no"
17093: fi
17094: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17095: fi
17096: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17097: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17098: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17099: cat >>confdefs.h <<_ACEOF
17100: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17101: _ACEOF
17102:
17103: fi
17104:
17105: done
17106:
17107:
17108:
17109:
17110:
17111: for ac_func in closedir opendir readdir
17112: do
17113: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17114: echo "$as_me:$LINENO: checking for $ac_func" >&5
17115: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17116: if eval "test \"\${$as_ac_var+set}\" = set"; then
17117: echo $ECHO_N "(cached) $ECHO_C" >&6
17118: else
17119: cat >conftest.$ac_ext <<_ACEOF
17120: /* confdefs.h. */
17121: _ACEOF
17122: cat confdefs.h >>conftest.$ac_ext
17123: cat >>conftest.$ac_ext <<_ACEOF
17124: /* end confdefs.h. */
17125: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17126: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17127: #define $ac_func innocuous_$ac_func
17128:
17129: /* System header to define __stub macros and hopefully few prototypes,
17130: which can conflict with char $ac_func (); below.
17131: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132: <limits.h> exists even on freestanding compilers. */
17133:
17134: #ifdef __STDC__
17135: # include <limits.h>
17136: #else
17137: # include <assert.h>
17138: #endif
17139:
17140: #undef $ac_func
17141:
17142: /* Override any gcc2 internal prototype to avoid an error. */
17143: #ifdef __cplusplus
17144: extern "C"
17145: {
17146: #endif
17147: /* We use char because int might match the return type of a gcc2
17148: builtin and then its argument prototype would still apply. */
17149: char $ac_func ();
17150: /* The GNU C library defines this for functions which it implements
17151: to always fail with ENOSYS. Some functions are actually named
17152: something starting with __ and the normal name is an alias. */
17153: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17154: choke me
17155: #else
17156: char (*f) () = $ac_func;
17157: #endif
17158: #ifdef __cplusplus
17159: }
17160: #endif
17161:
17162: int
17163: main ()
17164: {
17165: return f != $ac_func;
17166: ;
17167: return 0;
17168: }
17169: _ACEOF
17170: rm -f conftest.$ac_objext conftest$ac_exeext
17171: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172: (eval $ac_link) 2>conftest.er1
17173: ac_status=$?
17174: grep -v '^ *+' conftest.er1 >conftest.err
17175: rm -f conftest.er1
17176: cat conftest.err >&5
17177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178: (exit $ac_status); } &&
17179: { ac_try='test -z "$ac_c_werror_flag"
17180: || test ! -s conftest.err'
17181: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182: (eval $ac_try) 2>&5
17183: ac_status=$?
17184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185: (exit $ac_status); }; } &&
17186: { ac_try='test -s conftest$ac_exeext'
17187: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188: (eval $ac_try) 2>&5
17189: ac_status=$?
17190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191: (exit $ac_status); }; }; then
17192: eval "$as_ac_var=yes"
17193: else
17194: echo "$as_me: failed program was:" >&5
17195: sed 's/^/| /' conftest.$ac_ext >&5
17196:
17197: eval "$as_ac_var=no"
17198: fi
17199: rm -f conftest.err conftest.$ac_objext \
17200: conftest$ac_exeext conftest.$ac_ext
17201: fi
17202: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17203: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17204: if test `eval echo '${'$as_ac_var'}'` = yes; then
17205: cat >>confdefs.h <<_ACEOF
17206: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17207: _ACEOF
1.8 moko 17208:
1.10 moko 17209: else
1.8 moko 17210:
17211:
1.10 moko 17212: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 17213:
1.10 moko 17214: fi
1.8 moko 17215: done
17216:
1.11 moko 17217:
17218:
1.8 moko 17219: for ac_func in strlcat strlcpy
1.11 moko 17220: do
17221: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17222: echo "$as_me:$LINENO: checking for $ac_func" >&5
17223: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17224: if eval "test \"\${$as_ac_var+set}\" = set"; then
17225: echo $ECHO_N "(cached) $ECHO_C" >&6
17226: else
17227: cat >conftest.$ac_ext <<_ACEOF
17228: /* confdefs.h. */
17229: _ACEOF
17230: cat confdefs.h >>conftest.$ac_ext
17231: cat >>conftest.$ac_ext <<_ACEOF
17232: /* end confdefs.h. */
17233: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17234: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17235: #define $ac_func innocuous_$ac_func
17236:
17237: /* System header to define __stub macros and hopefully few prototypes,
17238: which can conflict with char $ac_func (); below.
17239: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240: <limits.h> exists even on freestanding compilers. */
17241:
17242: #ifdef __STDC__
17243: # include <limits.h>
17244: #else
17245: # include <assert.h>
17246: #endif
17247:
17248: #undef $ac_func
17249:
17250: /* Override any gcc2 internal prototype to avoid an error. */
17251: #ifdef __cplusplus
17252: extern "C"
17253: {
17254: #endif
17255: /* We use char because int might match the return type of a gcc2
17256: builtin and then its argument prototype would still apply. */
17257: char $ac_func ();
17258: /* The GNU C library defines this for functions which it implements
17259: to always fail with ENOSYS. Some functions are actually named
17260: something starting with __ and the normal name is an alias. */
17261: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17262: choke me
17263: #else
17264: char (*f) () = $ac_func;
17265: #endif
17266: #ifdef __cplusplus
17267: }
17268: #endif
17269:
17270: int
17271: main ()
17272: {
17273: return f != $ac_func;
17274: ;
17275: return 0;
17276: }
17277: _ACEOF
17278: rm -f conftest.$ac_objext conftest$ac_exeext
17279: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17280: (eval $ac_link) 2>conftest.er1
17281: ac_status=$?
17282: grep -v '^ *+' conftest.er1 >conftest.err
17283: rm -f conftest.er1
17284: cat conftest.err >&5
17285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286: (exit $ac_status); } &&
17287: { ac_try='test -z "$ac_c_werror_flag"
17288: || test ! -s conftest.err'
17289: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290: (eval $ac_try) 2>&5
17291: ac_status=$?
17292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293: (exit $ac_status); }; } &&
17294: { ac_try='test -s conftest$ac_exeext'
17295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296: (eval $ac_try) 2>&5
17297: ac_status=$?
17298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299: (exit $ac_status); }; }; then
17300: eval "$as_ac_var=yes"
17301: else
17302: echo "$as_me: failed program was:" >&5
17303: sed 's/^/| /' conftest.$ac_ext >&5
17304:
17305: eval "$as_ac_var=no"
17306: fi
17307: rm -f conftest.err conftest.$ac_objext \
17308: conftest$ac_exeext conftest.$ac_ext
17309: fi
17310: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17311: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17312: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.8 moko 17313: cat >>confdefs.h <<_ACEOF
1.11 moko 17314: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 17315: _ACEOF
17316:
17317: else
17318:
17319:
17320: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17321:
17322: fi
17323: done
17324:
17325:
17326:
17327: cat >>confdefs.h <<_ACEOF
17328: #define LT_LIBEXT "$libext"
17329: _ACEOF
17330:
17331:
17332: name=
17333: eval "lt_libprefix=\"$libname_spec\""
17334:
17335: cat >>confdefs.h <<_ACEOF
17336: #define LT_LIBPREFIX "$lt_libprefix"
17337: _ACEOF
17338:
17339:
17340: name=ltdl
17341: eval "LTDLOPEN=\"$libname_spec\""
17342:
17343:
17344:
17345:
17346:
17347:
17348:
17349:
17350: # Only expand once:
17351:
17352:
17353:
1.13 moko 17354:
1.8 moko 17355:
1.11 moko 17356:
17357:
17358:
17359:
1.8 moko 17360: for ac_header in stdio.h \
17361: stdlib.h \
17362: string.h \
17363: setjmp.h \
17364: ctype.h
17365:
1.11 moko 17366: do
17367: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17368: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17369: echo "$as_me:$LINENO: checking for $ac_header" >&5
17370: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17371: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17372: echo $ECHO_N "(cached) $ECHO_C" >&6
17373: fi
17374: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17375: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17376: else
17377: # Is the header compilable?
17378: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17379: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17380: cat >conftest.$ac_ext <<_ACEOF
17381: /* confdefs.h. */
17382: _ACEOF
17383: cat confdefs.h >>conftest.$ac_ext
17384: cat >>conftest.$ac_ext <<_ACEOF
17385: /* end confdefs.h. */
17386: $ac_includes_default
17387: #include <$ac_header>
17388: _ACEOF
17389: rm -f conftest.$ac_objext
17390: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17391: (eval $ac_compile) 2>conftest.er1
17392: ac_status=$?
17393: grep -v '^ *+' conftest.er1 >conftest.err
17394: rm -f conftest.er1
17395: cat conftest.err >&5
17396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397: (exit $ac_status); } &&
17398: { ac_try='test -z "$ac_c_werror_flag"
17399: || test ! -s conftest.err'
17400: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401: (eval $ac_try) 2>&5
17402: ac_status=$?
17403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404: (exit $ac_status); }; } &&
17405: { ac_try='test -s conftest.$ac_objext'
17406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407: (eval $ac_try) 2>&5
17408: ac_status=$?
17409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410: (exit $ac_status); }; }; then
17411: ac_header_compiler=yes
17412: else
17413: echo "$as_me: failed program was:" >&5
17414: sed 's/^/| /' conftest.$ac_ext >&5
17415:
17416: ac_header_compiler=no
17417: fi
17418: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17419: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17420: echo "${ECHO_T}$ac_header_compiler" >&6
17421:
17422: # Is the header present?
17423: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17424: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17425: cat >conftest.$ac_ext <<_ACEOF
17426: /* confdefs.h. */
17427: _ACEOF
17428: cat confdefs.h >>conftest.$ac_ext
17429: cat >>conftest.$ac_ext <<_ACEOF
17430: /* end confdefs.h. */
17431: #include <$ac_header>
17432: _ACEOF
17433: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17434: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17435: ac_status=$?
17436: grep -v '^ *+' conftest.er1 >conftest.err
17437: rm -f conftest.er1
17438: cat conftest.err >&5
17439: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440: (exit $ac_status); } >/dev/null; then
17441: if test -s conftest.err; then
17442: ac_cpp_err=$ac_c_preproc_warn_flag
17443: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17444: else
17445: ac_cpp_err=
17446: fi
17447: else
17448: ac_cpp_err=yes
17449: fi
17450: if test -z "$ac_cpp_err"; then
17451: ac_header_preproc=yes
17452: else
17453: echo "$as_me: failed program was:" >&5
17454: sed 's/^/| /' conftest.$ac_ext >&5
17455:
17456: ac_header_preproc=no
17457: fi
17458: rm -f conftest.err conftest.$ac_ext
17459: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17460: echo "${ECHO_T}$ac_header_preproc" >&6
17461:
17462: # So? What about this header?
17463: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17464: yes:no: )
17465: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17466: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17467: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17468: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17469: ac_header_preproc=yes
17470: ;;
17471: no:yes:* )
17472: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17473: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17474: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17475: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17476: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17477: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17478: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17479: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17480: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17481: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17482: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17483: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17484: (
17485: cat <<\_ASBOX
17486: ## ------------------------------------------ ##
1.13 moko 17487: ## Report this to the parser3sqlite.C lists. ##
1.11 moko 17488: ## ------------------------------------------ ##
17489: _ASBOX
17490: ) |
17491: sed "s/^/$as_me: WARNING: /" >&2
17492: ;;
17493: esac
17494: echo "$as_me:$LINENO: checking for $ac_header" >&5
17495: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17496: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17497: echo $ECHO_N "(cached) $ECHO_C" >&6
17498: else
17499: eval "$as_ac_Header=\$ac_header_preproc"
17500: fi
17501: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17502: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17503:
17504: fi
17505: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.8 moko 17506: cat >>confdefs.h <<_ACEOF
1.11 moko 17507: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 17508: _ACEOF
17509:
17510: fi
17511:
17512: done
17513:
17514:
1.11 moko 17515: echo "$as_me:$LINENO: checking for size_t" >&5
17516: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17517: if test "${ac_cv_type_size_t+set}" = set; then
17518: echo $ECHO_N "(cached) $ECHO_C" >&6
17519: else
17520: cat >conftest.$ac_ext <<_ACEOF
17521: /* confdefs.h. */
17522: _ACEOF
17523: cat confdefs.h >>conftest.$ac_ext
17524: cat >>conftest.$ac_ext <<_ACEOF
17525: /* end confdefs.h. */
17526: $ac_includes_default
17527: int
17528: main ()
17529: {
17530: if ((size_t *) 0)
17531: return 0;
17532: if (sizeof (size_t))
17533: return 0;
17534: ;
17535: return 0;
17536: }
17537: _ACEOF
17538: rm -f conftest.$ac_objext
17539: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540: (eval $ac_compile) 2>conftest.er1
17541: ac_status=$?
17542: grep -v '^ *+' conftest.er1 >conftest.err
17543: rm -f conftest.er1
17544: cat conftest.err >&5
17545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546: (exit $ac_status); } &&
17547: { ac_try='test -z "$ac_c_werror_flag"
17548: || test ! -s conftest.err'
17549: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550: (eval $ac_try) 2>&5
17551: ac_status=$?
17552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553: (exit $ac_status); }; } &&
17554: { ac_try='test -s conftest.$ac_objext'
17555: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556: (eval $ac_try) 2>&5
17557: ac_status=$?
17558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559: (exit $ac_status); }; }; then
17560: ac_cv_type_size_t=yes
17561: else
17562: echo "$as_me: failed program was:" >&5
17563: sed 's/^/| /' conftest.$ac_ext >&5
1.8 moko 17564:
1.11 moko 17565: ac_cv_type_size_t=no
17566: fi
17567: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17568: fi
17569: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17570: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17571: if test $ac_cv_type_size_t = yes; then
17572: :
1.8 moko 17573: else
17574:
17575: cat >>confdefs.h <<_ACEOF
1.11 moko 17576: #define size_t unsigned
1.8 moko 17577: _ACEOF
17578:
17579: fi
17580:
17581:
17582:
1.11 moko 17583: ac_config_files="$ac_config_files Makefile"
1.8 moko 17584: cat >confcache <<\_ACEOF
17585: # This file is a shell script that caches the results of configure
17586: # tests run on this system so they can be shared between configure
17587: # scripts and configure runs, see configure's option --config-cache.
17588: # It is not useful on other systems. If it contains results you don't
17589: # want to keep, you may remove or edit it.
17590: #
17591: # config.status only pays attention to the cache file if you give it
17592: # the --recheck option to rerun configure.
17593: #
17594: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17595: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17596: # following values.
17597:
17598: _ACEOF
17599:
17600: # The following way of writing the cache mishandles newlines in values,
17601: # but we know of no workaround that is simple, portable, and efficient.
1.11 moko 17602: # So, don't put newlines in cache variables' values.
1.8 moko 17603: # Ultrix sh set writes to stderr and can't be redirected directly,
17604: # and sets the high bit in the cache file unless we assign to the vars.
1.11 moko 17605: {
1.8 moko 17606: (set) 2>&1 |
1.11 moko 17607: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17608: *ac_space=\ *)
17609: # `set' does not quote correctly, so add quotes (double-quote
17610: # substitution turns \\\\ into \\, and sed turns \\ into \).
1.8 moko 17611: sed -n \
17612: "s/'/'\\\\''/g;
17613: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.11 moko 17614: ;;
1.8 moko 17615: *)
17616: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.11 moko 17617: sed -n \
17618: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.8 moko 17619: ;;
1.11 moko 17620: esac;
17621: } |
1.8 moko 17622: sed '
17623: t clear
1.11 moko 17624: : clear
1.8 moko 17625: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17626: t end
1.11 moko 17627: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17628: : end' >>confcache
17629: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17630: if test -w $cache_file; then
17631: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.8 moko 17632: cat confcache >$cache_file
17633: else
1.11 moko 17634: echo "not updating unwritable cache $cache_file"
1.8 moko 17635: fi
17636: fi
17637: rm -f confcache
17638:
17639: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17640: # Let make expand exec_prefix.
17641: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17642:
1.11 moko 17643: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17644: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17645: # trailing colons and then remove the whole line if VPATH becomes empty
17646: # (actually we leave an empty line to preserve line numbers).
17647: if test "x$srcdir" = x.; then
17648: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17649: s/:*\$(srcdir):*/:/;
17650: s/:*\${srcdir}:*/:/;
17651: s/:*@srcdir@:*/:/;
17652: s/^\([^=]*=[ ]*\):*/\1/;
17653: s/:*$//;
17654: s/^[^=]*=[ ]*$//;
17655: }'
17656: fi
17657:
1.8 moko 17658: DEFS=-DHAVE_CONFIG_H
17659:
17660: ac_libobjs=
17661: ac_ltlibobjs=
17662: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17663: # 1. Remove the extension, and $U if already installed.
1.11 moko 17664: ac_i=`echo "$ac_i" |
17665: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17666: # 2. Add them.
17667: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17668: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.8 moko 17669: done
17670: LIBOBJS=$ac_libobjs
17671:
17672: LTLIBOBJS=$ac_ltlibobjs
17673:
17674:
17675: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.11 moko 17676: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17677: Usually this means the macro was only invoked conditionally." >&5
17678: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17679: Usually this means the macro was only invoked conditionally." >&2;}
17680: { (exit 1); exit 1; }; }
1.8 moko 17681: fi
17682: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.11 moko 17683: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17684: Usually this means the macro was only invoked conditionally." >&5
17685: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17686: Usually this means the macro was only invoked conditionally." >&2;}
17687: { (exit 1); exit 1; }; }
1.8 moko 17688: fi
17689: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.11 moko 17690: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17691: Usually this means the macro was only invoked conditionally." >&5
17692: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17693: Usually this means the macro was only invoked conditionally." >&2;}
17694: { (exit 1); exit 1; }; }
1.8 moko 17695: fi
17696: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.11 moko 17697: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17698: Usually this means the macro was only invoked conditionally." >&5
17699: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17700: Usually this means the macro was only invoked conditionally." >&2;}
17701: { (exit 1); exit 1; }; }
1.8 moko 17702: fi
17703: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.11 moko 17704: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17705: Usually this means the macro was only invoked conditionally." >&5
17706: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17707: Usually this means the macro was only invoked conditionally." >&2;}
17708: { (exit 1); exit 1; }; }
1.8 moko 17709: fi
1.11 moko 17710: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
1.8 moko 17711:
17712: _ltdl_libobjs=
17713: _ltdl_ltlibobjs=
17714: if test -n "$_LT_LIBOBJS"; then
17715: # Remove the extension.
17716: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17717: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17718: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17719: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17720: done
17721: fi
17722: ltdl_LIBOBJS=$_ltdl_libobjs
17723:
17724: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17725:
17726:
17727:
17728: : ${CONFIG_STATUS=./config.status}
17729: ac_clean_files_save=$ac_clean_files
17730: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 moko 17731: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17732: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17733: cat >$CONFIG_STATUS <<_ACEOF
1.8 moko 17734: #! $SHELL
17735: # Generated by $as_me.
17736: # Run this file to recreate the current configuration.
17737: # Compiler output produced by configure, useful for debugging
17738: # configure, is in config.log if it exists.
17739:
17740: debug=false
17741: ac_cs_recheck=false
17742: ac_cs_silent=false
1.11 moko 17743: SHELL=\${CONFIG_SHELL-$SHELL}
17744: _ACEOF
1.10 moko 17745:
1.11 moko 17746: cat >>$CONFIG_STATUS <<\_ACEOF
17747: ## --------------------- ##
17748: ## M4sh Initialization. ##
17749: ## --------------------- ##
1.8 moko 17750:
1.11 moko 17751: # Be Bourne compatible
17752: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.8 moko 17753: emulate sh
17754: NULLCMD=:
1.11 moko 17755: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.8 moko 17756: # is contrary to our usage. Disable this feature.
17757: alias -g '${1+"$@"}'='"$@"'
1.11 moko 17758: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17759: set -o posix
1.10 moko 17760: fi
1.11 moko 17761: DUALCASE=1; export DUALCASE # for MKS sh
1.10 moko 17762:
1.11 moko 17763: # Support unset when possible.
17764: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17765: as_unset=unset
17766: else
17767: as_unset=false
1.8 moko 17768: fi
17769:
17770:
1.11 moko 17771: # Work around bugs in pre-3.0 UWIN ksh.
17772: $as_unset ENV MAIL MAILPATH
1.8 moko 17773: PS1='$ '
17774: PS2='> '
17775: PS4='+ '
17776:
17777: # NLS nuisances.
1.11 moko 17778: for as_var in \
17779: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17780: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17781: LC_TELEPHONE LC_TIME
17782: do
17783: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17784: eval $as_var=C; export $as_var
17785: else
17786: $as_unset $as_var
17787: fi
17788: done
1.8 moko 17789:
1.11 moko 17790: # Required to use basename.
17791: if expr a : '\(a\)' >/dev/null 2>&1; then
1.8 moko 17792: as_expr=expr
17793: else
17794: as_expr=false
17795: fi
17796:
1.11 moko 17797: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.8 moko 17798: as_basename=basename
17799: else
17800: as_basename=false
17801: fi
17802:
17803:
1.11 moko 17804: # Name of the executable.
17805: as_me=`$as_basename "$0" ||
1.8 moko 17806: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17807: X"$0" : 'X\(//\)$' \| \
1.11 moko 17808: X"$0" : 'X\(/\)$' \| \
17809: . : '\(.\)' 2>/dev/null ||
17810: echo X/"$0" |
17811: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17812: /^X\/\(\/\/\)$/{ s//\1/; q; }
17813: /^X\/\(\/\).*/{ s//\1/; q; }
17814: s/.*/./; q'`
17815:
1.8 moko 17816:
1.11 moko 17817: # PATH needs CR, and LINENO needs CR and PATH.
1.8 moko 17818: # Avoid depending upon Character Ranges.
17819: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17820: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17821: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17822: as_cr_digits='0123456789'
17823: as_cr_alnum=$as_cr_Letters$as_cr_digits
17824:
1.11 moko 17825: # The user is always right.
17826: if test "${PATH_SEPARATOR+set}" != set; then
17827: echo "#! /bin/sh" >conf$$.sh
17828: echo "exit 0" >>conf$$.sh
17829: chmod +x conf$$.sh
17830: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17831: PATH_SEPARATOR=';'
17832: else
17833: PATH_SEPARATOR=:
17834: fi
17835: rm -f conf$$.sh
17836: fi
17837:
17838:
17839: as_lineno_1=$LINENO
17840: as_lineno_2=$LINENO
17841: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17842: test "x$as_lineno_1" != "x$as_lineno_2" &&
17843: test "x$as_lineno_3" = "x$as_lineno_2" || {
17844: # Find who we are. Look in the path if we contain no path at all
17845: # relative or not.
17846: case $0 in
17847: *[\\/]* ) as_myself=$0 ;;
17848: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17849: for as_dir in $PATH
17850: do
17851: IFS=$as_save_IFS
17852: test -z "$as_dir" && as_dir=.
17853: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17854: done
17855:
17856: ;;
17857: esac
17858: # We did not find ourselves, most probably we were run as `sh COMMAND'
17859: # in which case we are not to be found in the path.
17860: if test "x$as_myself" = x; then
17861: as_myself=$0
17862: fi
17863: if test ! -f "$as_myself"; then
17864: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17865: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17866: { (exit 1); exit 1; }; }
17867: fi
17868: case $CONFIG_SHELL in
17869: '')
17870: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17872: do
17873: IFS=$as_save_IFS
17874: test -z "$as_dir" && as_dir=.
17875: for as_base in sh bash ksh sh5; do
17876: case $as_dir in
17877: /*)
17878: if ("$as_dir/$as_base" -c '
17879: as_lineno_1=$LINENO
17880: as_lineno_2=$LINENO
17881: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17882: test "x$as_lineno_1" != "x$as_lineno_2" &&
17883: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17884: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17885: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17886: CONFIG_SHELL=$as_dir/$as_base
17887: export CONFIG_SHELL
17888: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17889: fi;;
17890: esac
17891: done
17892: done
17893: ;;
17894: esac
17895:
17896: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17897: # uniformly replaced by the line number. The first 'sed' inserts a
17898: # line-number line before each line; the second 'sed' does the real
17899: # work. The second script uses 'N' to pair each line-number line
17900: # with the numbered line, and appends trailing '-' during
17901: # substitution so that $LINENO is not a special case at line end.
17902: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17903: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17904: sed '=' <$as_myself |
17905: sed '
17906: N
17907: s,$,-,
17908: : loop
17909: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17910: t loop
17911: s,-$,,
17912: s,^['$as_cr_digits']*\n,,
17913: ' >$as_me.lineno &&
17914: chmod +x $as_me.lineno ||
17915: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17916: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17917: { (exit 1); exit 1; }; }
17918:
17919: # Don't try to exec as it changes $[0], causing all sort of problems
17920: # (the dirname of $[0] is not the place where we might find the
17921: # original and so on. Autoconf is especially sensible to this).
17922: . ./$as_me.lineno
17923: # Exit status is that of the last command.
17924: exit
17925: }
17926:
17927:
17928: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17929: *c*,-n*) ECHO_N= ECHO_C='
17930: ' ECHO_T=' ' ;;
17931: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17932: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.8 moko 17933: esac
17934:
1.11 moko 17935: if expr a : '\(a\)' >/dev/null 2>&1; then
17936: as_expr=expr
1.8 moko 17937: else
1.11 moko 17938: as_expr=false
1.8 moko 17939: fi
1.11 moko 17940:
17941: rm -f conf$$ conf$$.exe conf$$.file
17942: echo >conf$$.file
17943: if ln -s conf$$.file conf$$ 2>/dev/null; then
17944: # We could just check for DJGPP; but this test a) works b) is more generic
17945: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17946: if test -f conf$$.exe; then
17947: # Don't use ln at all; we don't have any links
17948: as_ln_s='cp -p'
17949: else
1.10 moko 17950: as_ln_s='ln -s'
1.8 moko 17951: fi
1.11 moko 17952: elif ln conf$$.file conf$$ 2>/dev/null; then
17953: as_ln_s=ln
1.8 moko 17954: else
17955: as_ln_s='cp -p'
17956: fi
1.11 moko 17957: rm -f conf$$ conf$$.exe conf$$.file
1.8 moko 17958:
17959: if mkdir -p . 2>/dev/null; then
1.11 moko 17960: as_mkdir_p=:
1.8 moko 17961: else
17962: test -d ./-p && rmdir ./-p
17963: as_mkdir_p=false
17964: fi
17965:
1.11 moko 17966: as_executable_p="test -f"
1.8 moko 17967:
17968: # Sed expression to map a string onto a valid CPP name.
17969: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17970:
17971: # Sed expression to map a string onto a valid variable name.
17972: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17973:
17974:
1.11 moko 17975: # IFS
17976: # We need space, tab and new line, in precisely that order.
17977: as_nl='
17978: '
17979: IFS=" $as_nl"
17980:
17981: # CDPATH.
17982: $as_unset CDPATH
17983:
1.8 moko 17984: exec 6>&1
17985:
1.11 moko 17986: # Open the log real soon, to keep \$[0] and so on meaningful, and to
1.8 moko 17987: # report actual input values of CONFIG_FILES etc. instead of their
1.11 moko 17988: # values after options handling. Logging --version etc. is OK.
17989: exec 5>>config.log
17990: {
17991: echo
17992: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17993: ## Running $as_me. ##
17994: _ASBOX
17995: } >&5
17996: cat >&5 <<_CSEOF
17997:
1.13 moko 17998: This file was extended by parser3sqlite.C $as_me 10.2, which was
1.11 moko 17999: generated by GNU Autoconf 2.59. Invocation command line was
1.8 moko 18000:
18001: CONFIG_FILES = $CONFIG_FILES
18002: CONFIG_HEADERS = $CONFIG_HEADERS
18003: CONFIG_LINKS = $CONFIG_LINKS
18004: CONFIG_COMMANDS = $CONFIG_COMMANDS
18005: $ $0 $@
18006:
1.11 moko 18007: _CSEOF
18008: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18009: echo >&5
1.8 moko 18010: _ACEOF
18011:
1.11 moko 18012: # Files that config.status was made for.
18013: if test -n "$ac_config_files"; then
18014: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18015: fi
1.8 moko 18016:
1.11 moko 18017: if test -n "$ac_config_headers"; then
18018: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18019: fi
1.8 moko 18020:
1.11 moko 18021: if test -n "$ac_config_links"; then
18022: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18023: fi
1.8 moko 18024:
1.11 moko 18025: if test -n "$ac_config_commands"; then
18026: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18027: fi
1.8 moko 18028:
1.11 moko 18029: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18030:
18031: ac_cs_usage="\
1.11 moko 18032: \`$as_me' instantiates files from templates according to the
18033: current configuration.
1.8 moko 18034:
1.11 moko 18035: Usage: $0 [OPTIONS] [FILE]...
1.8 moko 18036:
18037: -h, --help print this help, then exit
1.11 moko 18038: -V, --version print version number, then exit
18039: -q, --quiet do not print progress messages
1.8 moko 18040: -d, --debug don't remove temporary files
18041: --recheck update $as_me by reconfiguring in the same conditions
1.11 moko 18042: --file=FILE[:TEMPLATE]
18043: instantiate the configuration file FILE
18044: --header=FILE[:TEMPLATE]
18045: instantiate the configuration header FILE
1.8 moko 18046:
18047: Configuration files:
18048: $config_files
18049:
18050: Configuration headers:
18051: $config_headers
18052:
18053: Configuration commands:
18054: $config_commands
18055:
1.11 moko 18056: Report bugs to <bug-autoconf@gnu.org>."
18057: _ACEOF
1.10 moko 18058:
1.11 moko 18059: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18060: ac_cs_version="\\
1.13 moko 18061: parser3sqlite.C config.status 10.2
1.11 moko 18062: configured by $0, generated by GNU Autoconf 2.59,
18063: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.8 moko 18064:
1.11 moko 18065: Copyright (C) 2003 Free Software Foundation, Inc.
1.8 moko 18066: This config.status script is free software; the Free Software Foundation
18067: gives unlimited permission to copy, distribute and modify it."
1.11 moko 18068: srcdir=$srcdir
18069: INSTALL="$INSTALL"
1.8 moko 18070: _ACEOF
18071:
1.11 moko 18072: cat >>$CONFIG_STATUS <<\_ACEOF
18073: # If no file are specified by the user, then we need to provide default
18074: # value. By we need to know if files were specified by the user.
1.8 moko 18075: ac_need_defaults=:
18076: while test $# != 0
18077: do
18078: case $1 in
1.11 moko 18079: --*=*)
18080: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18081: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.8 moko 18082: ac_shift=:
18083: ;;
1.11 moko 18084: -*)
1.8 moko 18085: ac_option=$1
18086: ac_optarg=$2
18087: ac_shift=shift
18088: ;;
1.11 moko 18089: *) # This is not an option, so the user has probably given explicit
18090: # arguments.
18091: ac_option=$1
18092: ac_need_defaults=false;;
1.8 moko 18093: esac
18094:
18095: case $ac_option in
18096: # Handling of the options.
1.11 moko 18097: _ACEOF
18098: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18099: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18100: ac_cs_recheck=: ;;
1.11 moko 18101: --version | --vers* | -V )
18102: echo "$ac_cs_version"; exit 0 ;;
18103: --he | --h)
18104: # Conflict between --help and --header
18105: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18106: Try \`$0 --help' for more information." >&5
18107: echo "$as_me: error: ambiguous option: $1
18108: Try \`$0 --help' for more information." >&2;}
18109: { (exit 1); exit 1; }; };;
18110: --help | --hel | -h )
18111: echo "$ac_cs_usage"; exit 0 ;;
18112: --debug | --d* | -d )
1.8 moko 18113: debug=: ;;
18114: --file | --fil | --fi | --f )
18115: $ac_shift
1.11 moko 18116: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.8 moko 18117: ac_need_defaults=false;;
18118: --header | --heade | --head | --hea )
18119: $ac_shift
1.11 moko 18120: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.8 moko 18121: ac_need_defaults=false;;
18122: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18123: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18124: ac_cs_silent=: ;;
18125:
18126: # This is an error.
1.11 moko 18127: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18128: Try \`$0 --help' for more information." >&5
18129: echo "$as_me: error: unrecognized option: $1
18130: Try \`$0 --help' for more information." >&2;}
18131: { (exit 1); exit 1; }; } ;;
1.8 moko 18132:
1.11 moko 18133: *) ac_config_targets="$ac_config_targets $1" ;;
1.8 moko 18134:
18135: esac
18136: shift
18137: done
18138:
18139: ac_configure_extra_args=
18140:
18141: if $ac_cs_silent; then
18142: exec 6>/dev/null
18143: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 moko 18144: fi
18145:
18146: _ACEOF
1.11 moko 18147: cat >>$CONFIG_STATUS <<_ACEOF
1.10 moko 18148: if \$ac_cs_recheck; then
1.11 moko 18149: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18150: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.10 moko 18151: fi
18152:
18153: _ACEOF
1.11 moko 18154:
18155: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18156: #
1.11 moko 18157: # INIT-COMMANDS section.
1.8 moko 18158: #
1.11 moko 18159:
1.8 moko 18160: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18161:
18162:
18163: # The HP-UX ksh and POSIX shell print the target directory to stdout
18164: # if CDPATH is set.
18165: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18166:
18167: sed_quote_subst='$sed_quote_subst'
18168: double_quote_subst='$double_quote_subst'
18169: delay_variable_subst='$delay_variable_subst'
18170: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18171: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.20 moko 18172: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.13 moko 18173: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18174: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18175: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.8 moko 18176: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18177: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18178: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18179: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18180: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18181: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18182: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18183: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18184: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18185: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18186: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18187: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18188: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18189: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18190: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18191: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18192: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18193: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18194: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18195: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18196: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18197: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18198: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18199: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18200: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18201: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18202: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18203: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18204: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18205: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18206: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18207: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18208: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18209: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18210: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18211: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18212: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18213: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18214: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18215: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18216: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18217: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18218: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18219: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18220: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18221: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18222: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18223: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18224: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18225: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18226: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18227: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18228: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18229: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18230: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18231: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18232: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18233: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18234: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18235: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18236: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18237: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18238: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18239: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18240: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18241: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18242: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18243: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18244: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18245: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18246: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18247: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18248: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18249: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18250: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18251: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18252: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18253: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18254: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18255: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18256: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18257: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18258: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18259: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18260: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18261: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18262: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18263: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18264: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18265: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18266: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18267: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18268: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18269: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18270: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18271: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18272: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18273: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18274: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18275: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18276: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18277: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18278: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18279: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18280: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18281: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18282: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18283: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18284: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18285: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18286: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18287: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18288: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18289: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18290: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18291: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18292: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18293: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18294: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18295: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18296: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18297: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18298: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18299: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18300: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18301: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18302: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18303: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18304: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18305: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18306: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18307: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18308: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18309: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18310: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18311: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18312: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18313: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18314: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18315: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18316: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18317: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18318: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18319: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18320: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18321: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18322: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18323: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18324: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18325: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18326: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18327: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18328: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18329: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18330: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18331: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18332: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18333: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18334: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18335: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18336: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18337: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18338: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18339: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18340: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18341: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18342: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18343: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18344: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18345: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18346: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18347: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18348: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18349: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18350: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18351: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18352: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18353: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18354: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18355:
18356: LTCC='$LTCC'
18357: LTCFLAGS='$LTCFLAGS'
18358: compiler='$compiler_DEFAULT'
18359:
18360: # A function that is used when there is no print builtin or printf.
18361: func_fallback_echo ()
18362: {
18363: eval 'cat <<_LTECHO_EOF
18364: \$1
18365: _LTECHO_EOF'
18366: }
18367:
18368: # Quote evaled strings.
1.13 moko 18369: for var in AS \
18370: DLLTOOL \
18371: OBJDUMP \
18372: SHELL \
1.8 moko 18373: ECHO \
18374: PATH_SEPARATOR \
18375: SED \
18376: GREP \
18377: EGREP \
18378: FGREP \
18379: LD \
18380: NM \
18381: LN_S \
18382: lt_SP2NL \
18383: lt_NL2SP \
18384: reload_flag \
18385: deplibs_check_method \
18386: file_magic_cmd \
18387: file_magic_glob \
18388: want_nocaseglob \
18389: sharedlib_from_linklib_cmd \
18390: AR \
18391: AR_FLAGS \
18392: archiver_list_spec \
18393: STRIP \
18394: RANLIB \
18395: CC \
18396: CFLAGS \
18397: compiler \
18398: lt_cv_sys_global_symbol_pipe \
18399: lt_cv_sys_global_symbol_to_cdecl \
18400: lt_cv_sys_global_symbol_to_c_name_address \
18401: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18402: nm_file_list_spec \
18403: lt_prog_compiler_no_builtin_flag \
18404: lt_prog_compiler_pic \
18405: lt_prog_compiler_wl \
18406: lt_prog_compiler_static \
18407: lt_cv_prog_compiler_c_o \
18408: need_locks \
18409: MANIFEST_TOOL \
18410: DSYMUTIL \
18411: NMEDIT \
18412: LIPO \
18413: OTOOL \
18414: OTOOL64 \
18415: shrext_cmds \
18416: export_dynamic_flag_spec \
18417: whole_archive_flag_spec \
18418: compiler_needs_object \
18419: with_gnu_ld \
18420: allow_undefined_flag \
18421: no_undefined_flag \
18422: hardcode_libdir_flag_spec \
18423: hardcode_libdir_separator \
18424: exclude_expsyms \
18425: include_expsyms \
18426: file_list_spec \
18427: variables_saved_for_relink \
18428: libname_spec \
18429: library_names_spec \
18430: soname_spec \
18431: install_override_mode \
18432: finish_eval \
18433: old_striplib \
18434: striplib \
18435: compiler_lib_search_dirs \
18436: predep_objects \
18437: postdep_objects \
18438: predeps \
18439: postdeps \
18440: compiler_lib_search_path \
18441: LD_CXX \
18442: reload_flag_CXX \
18443: compiler_CXX \
18444: lt_prog_compiler_no_builtin_flag_CXX \
18445: lt_prog_compiler_pic_CXX \
18446: lt_prog_compiler_wl_CXX \
18447: lt_prog_compiler_static_CXX \
18448: lt_cv_prog_compiler_c_o_CXX \
18449: export_dynamic_flag_spec_CXX \
18450: whole_archive_flag_spec_CXX \
18451: compiler_needs_object_CXX \
18452: with_gnu_ld_CXX \
18453: allow_undefined_flag_CXX \
18454: no_undefined_flag_CXX \
18455: hardcode_libdir_flag_spec_CXX \
18456: hardcode_libdir_separator_CXX \
18457: exclude_expsyms_CXX \
18458: include_expsyms_CXX \
18459: file_list_spec_CXX \
18460: compiler_lib_search_dirs_CXX \
18461: predep_objects_CXX \
18462: postdep_objects_CXX \
18463: predeps_CXX \
18464: postdeps_CXX \
18465: compiler_lib_search_path_CXX; do
18466: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18467: *[\\\\\\\`\\"\\\$]*)
18468: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18469: ;;
18470: *)
18471: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18472: ;;
18473: esac
18474: done
18475:
18476: # Double-quote double-evaled strings.
18477: for var in reload_cmds \
18478: old_postinstall_cmds \
18479: old_postuninstall_cmds \
18480: old_archive_cmds \
18481: extract_expsyms_cmds \
18482: old_archive_from_new_cmds \
18483: old_archive_from_expsyms_cmds \
18484: archive_cmds \
18485: archive_expsym_cmds \
18486: module_cmds \
18487: module_expsym_cmds \
18488: export_symbols_cmds \
18489: prelink_cmds \
18490: postlink_cmds \
18491: postinstall_cmds \
18492: postuninstall_cmds \
18493: finish_cmds \
18494: sys_lib_search_path_spec \
18495: sys_lib_dlsearch_path_spec \
18496: reload_cmds_CXX \
18497: old_archive_cmds_CXX \
18498: old_archive_from_new_cmds_CXX \
18499: old_archive_from_expsyms_cmds_CXX \
18500: archive_cmds_CXX \
18501: archive_expsym_cmds_CXX \
18502: module_cmds_CXX \
18503: module_expsym_cmds_CXX \
18504: export_symbols_cmds_CXX \
18505: prelink_cmds_CXX \
18506: postlink_cmds_CXX; do
18507: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18508: *[\\\\\\\`\\"\\\$]*)
18509: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18510: ;;
18511: *)
18512: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18513: ;;
18514: esac
18515: done
18516:
18517: ac_aux_dir='$ac_aux_dir'
18518: xsi_shell='$xsi_shell'
18519: lt_shell_append='$lt_shell_append'
18520:
18521: # See if we are running on zsh, and set the options which allow our
18522: # commands through without removal of \ escapes INIT.
18523: if test -n "\${ZSH_VERSION+set}" ; then
18524: setopt NO_GLOB_SUBST
18525: fi
18526:
18527:
18528: PACKAGE='$PACKAGE'
18529: VERSION='$VERSION'
18530: TIMESTAMP='$TIMESTAMP'
18531: RM='$RM'
18532: ofile='$ofile'
18533:
18534:
18535:
18536:
18537:
18538:
18539: _ACEOF
18540:
18541:
1.11 moko 18542:
18543: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18544: for ac_config_target in $ac_config_targets
18545: do
1.11 moko 18546: case "$ac_config_target" in
18547: # Handling of arguments.
18548: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18549: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18550: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18551: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18552: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18553: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18554: { (exit 1); exit 1; }; };;
1.8 moko 18555: esac
18556: done
18557:
18558: # If the user did not use the arguments to specify the items to instantiate,
18559: # then the envvar interface is used. Set only those that are not.
18560: # We use the long form for the default assignment because of an extremely
18561: # bizarre bug on SunOS 4.1.3.
18562: if $ac_need_defaults; then
18563: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18564: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18565: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18566: fi
18567:
18568: # Have a temporary directory for convenience. Make it in the build tree
1.11 moko 18569: # simply because there is no reason to put it here, and in addition,
1.8 moko 18570: # creating and moving files from /tmp can sometimes cause problems.
1.11 moko 18571: # Create a temporary directory, and hook for its removal unless debugging.
1.8 moko 18572: $debug ||
18573: {
1.11 moko 18574: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18575: trap '{ (exit 1); exit 1; }' 1 2 13 15
1.8 moko 18576: }
1.11 moko 18577:
1.8 moko 18578: # Create a (secure) tmp directory for tmp files.
18579:
18580: {
1.11 moko 18581: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.8 moko 18582: test -n "$tmp" && test -d "$tmp"
18583: } ||
18584: {
1.11 moko 18585: tmp=./confstat$$-$RANDOM
18586: (umask 077 && mkdir $tmp)
18587: } ||
1.8 moko 18588: {
1.11 moko 18589: echo "$me: cannot create a temporary directory in ." >&2
18590: { (exit 1); exit 1; }
1.8 moko 18591: }
18592:
18593: _ACEOF
18594:
1.11 moko 18595: cat >>$CONFIG_STATUS <<_ACEOF
1.8 moko 18596:
1.11 moko 18597: #
18598: # CONFIG_FILES section.
18599: #
1.8 moko 18600:
1.11 moko 18601: # No need to generate the scripts if there are no CONFIG_FILES.
18602: # This happens for instance when ./config.status config.h
18603: if test -n "\$CONFIG_FILES"; then
18604: # Protect against being on the right side of a sed subst in config.status.
18605: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18606: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18607: s,@SHELL@,$SHELL,;t t
18608: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18609: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18610: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18611: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18612: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18613: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18614: s,@exec_prefix@,$exec_prefix,;t t
18615: s,@prefix@,$prefix,;t t
18616: s,@program_transform_name@,$program_transform_name,;t t
18617: s,@bindir@,$bindir,;t t
18618: s,@sbindir@,$sbindir,;t t
18619: s,@libexecdir@,$libexecdir,;t t
18620: s,@datadir@,$datadir,;t t
18621: s,@sysconfdir@,$sysconfdir,;t t
18622: s,@sharedstatedir@,$sharedstatedir,;t t
18623: s,@localstatedir@,$localstatedir,;t t
18624: s,@libdir@,$libdir,;t t
18625: s,@includedir@,$includedir,;t t
18626: s,@oldincludedir@,$oldincludedir,;t t
18627: s,@infodir@,$infodir,;t t
18628: s,@mandir@,$mandir,;t t
18629: s,@build_alias@,$build_alias,;t t
18630: s,@host_alias@,$host_alias,;t t
18631: s,@target_alias@,$target_alias,;t t
18632: s,@DEFS@,$DEFS,;t t
18633: s,@ECHO_C@,$ECHO_C,;t t
18634: s,@ECHO_N@,$ECHO_N,;t t
18635: s,@ECHO_T@,$ECHO_T,;t t
18636: s,@LIBS@,$LIBS,;t t
18637: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18638: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18639: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18640: s,@CYGPATH_W@,$CYGPATH_W,;t t
18641: s,@PACKAGE@,$PACKAGE,;t t
18642: s,@VERSION@,$VERSION,;t t
18643: s,@ACLOCAL@,$ACLOCAL,;t t
18644: s,@AUTOCONF@,$AUTOCONF,;t t
18645: s,@AUTOMAKE@,$AUTOMAKE,;t t
18646: s,@AUTOHEADER@,$AUTOHEADER,;t t
18647: s,@MAKEINFO@,$MAKEINFO,;t t
18648: s,@install_sh@,$install_sh,;t t
18649: s,@STRIP@,$STRIP,;t t
18650: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18651: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18652: s,@mkdir_p@,$mkdir_p,;t t
18653: s,@AWK@,$AWK,;t t
18654: s,@SET_MAKE@,$SET_MAKE,;t t
18655: s,@am__leading_dot@,$am__leading_dot,;t t
18656: s,@AMTAR@,$AMTAR,;t t
18657: s,@am__tar@,$am__tar,;t t
18658: s,@am__untar@,$am__untar,;t t
18659: s,@SQLITE_INC@,$SQLITE_INC,;t t
18660: s,@CXX@,$CXX,;t t
18661: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.17 moko 18662: s,@LDFLAGS@,$LDFLAGS,;t t
1.11 moko 18663: s,@CPPFLAGS@,$CPPFLAGS,;t t
18664: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18665: s,@EXEEXT@,$EXEEXT,;t t
18666: s,@OBJEXT@,$OBJEXT,;t t
18667: s,@DEPDIR@,$DEPDIR,;t t
18668: s,@am__include@,$am__include,;t t
18669: s,@am__quote@,$am__quote,;t t
18670: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18671: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18672: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18673: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18674: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18675: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18676: s,@CC@,$CC,;t t
18677: s,@CFLAGS@,$CFLAGS,;t t
18678: s,@ac_ct_CC@,$ac_ct_CC,;t t
18679: s,@CCDEPMODE@,$CCDEPMODE,;t t
18680: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18681: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.13 moko 18682: s,@AS@,$AS,;t t
18683: s,@ac_ct_AS@,$ac_ct_AS,;t t
18684: s,@DLLTOOL@,$DLLTOOL,;t t
18685: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18686: s,@OBJDUMP@,$OBJDUMP,;t t
18687: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.11 moko 18688: s,@LIBTOOL@,$LIBTOOL,;t t
18689: s,@build@,$build,;t t
18690: s,@build_cpu@,$build_cpu,;t t
18691: s,@build_vendor@,$build_vendor,;t t
18692: s,@build_os@,$build_os,;t t
18693: s,@host@,$host,;t t
18694: s,@host_cpu@,$host_cpu,;t t
18695: s,@host_vendor@,$host_vendor,;t t
18696: s,@host_os@,$host_os,;t t
18697: s,@SED@,$SED,;t t
18698: s,@EGREP@,$EGREP,;t t
18699: s,@FGREP@,$FGREP,;t t
18700: s,@GREP@,$GREP,;t t
18701: s,@LD@,$LD,;t t
18702: s,@DUMPBIN@,$DUMPBIN,;t t
18703: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18704: s,@NM@,$NM,;t t
18705: s,@LN_S@,$LN_S,;t t
18706: s,@AR@,$AR,;t t
18707: s,@ac_ct_AR@,$ac_ct_AR,;t t
18708: s,@RANLIB@,$RANLIB,;t t
18709: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18710: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18711: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18712: s,@DSYMUTIL@,$DSYMUTIL,;t t
18713: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18714: s,@NMEDIT@,$NMEDIT,;t t
18715: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18716: s,@LIPO@,$LIPO,;t t
18717: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18718: s,@OTOOL@,$OTOOL,;t t
18719: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18720: s,@OTOOL64@,$OTOOL64,;t t
18721: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18722: s,@CPP@,$CPP,;t t
18723: s,@CXXCPP@,$CXXCPP,;t t
18724: s,@LIBLTDL@,$LIBLTDL,;t t
18725: s,@LTDLDEPS@,$LTDLDEPS,;t t
18726: s,@LTDLINCL@,$LTDLINCL,;t t
18727: s,@INCLTDL@,$INCLTDL,;t t
18728: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18729: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18730: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18731: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18732: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.13 moko 18733: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.11 moko 18734: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18735: s,@ARGZ_H@,$ARGZ_H,;t t
18736: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18737: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18738: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18739: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18740: s,@subdirs@,$subdirs,;t t
18741: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18742: s,@LTDLOPEN@,$LTDLOPEN,;t t
18743: s,@LIBOBJS@,$LIBOBJS,;t t
18744: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18745: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18746: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18747: CEOF
18748:
18749: _ACEOF
18750:
18751: cat >>$CONFIG_STATUS <<\_ACEOF
18752: # Split the substitutions into bite-sized pieces for seds with
18753: # small command number limits, like on Digital OSF/1 and HP-UX.
18754: ac_max_sed_lines=48
18755: ac_sed_frag=1 # Number of current file.
18756: ac_beg=1 # First line for current file.
18757: ac_end=$ac_max_sed_lines # Line after last line for current file.
18758: ac_more_lines=:
18759: ac_sed_cmds=
18760: while $ac_more_lines; do
18761: if test $ac_beg -gt 1; then
18762: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18763: else
18764: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18765: fi
18766: if test ! -s $tmp/subs.frag; then
18767: ac_more_lines=false
18768: else
18769: # The purpose of the label and of the branching condition is to
18770: # speed up the sed processing (if there are no `@' at all, there
18771: # is no need to browse any of the substitutions).
18772: # These are the two extra sed commands mentioned above.
18773: (echo ':t
18774: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18775: if test -z "$ac_sed_cmds"; then
18776: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18777: else
18778: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18779: fi
18780: ac_sed_frag=`expr $ac_sed_frag + 1`
18781: ac_beg=$ac_end
18782: ac_end=`expr $ac_end + $ac_max_sed_lines`
18783: fi
18784: done
18785: if test -z "$ac_sed_cmds"; then
18786: ac_sed_cmds=cat
1.8 moko 18787: fi
1.11 moko 18788: fi # test -n "$CONFIG_FILES"
1.8 moko 18789:
18790: _ACEOF
1.11 moko 18791: cat >>$CONFIG_STATUS <<\_ACEOF
18792: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18793: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18794: case $ac_file in
18795: - | *:- | *:-:* ) # input from stdin
18796: cat >$tmp/stdin
18797: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18798: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18799: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18800: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18801: * ) ac_file_in=$ac_file.in ;;
1.8 moko 18802: esac
18803:
1.11 moko 18804: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18805: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.8 moko 18806: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18807: X"$ac_file" : 'X\(//\)[^/]' \| \
18808: X"$ac_file" : 'X\(//\)$' \| \
1.11 moko 18809: X"$ac_file" : 'X\(/\)' \| \
18810: . : '\(.\)' 2>/dev/null ||
18811: echo X"$ac_file" |
18812: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18813: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18814: /^X\(\/\/\)$/{ s//\1/; q; }
18815: /^X\(\/\).*/{ s//\1/; q; }
18816: s/.*/./; q'`
18817: { if $as_mkdir_p; then
18818: mkdir -p "$ac_dir"
18819: else
18820: as_dir="$ac_dir"
18821: as_dirs=
18822: while test ! -d "$as_dir"; do
18823: as_dirs="$as_dir $as_dirs"
18824: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18825: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18826: X"$as_dir" : 'X\(//\)[^/]' \| \
18827: X"$as_dir" : 'X\(//\)$' \| \
18828: X"$as_dir" : 'X\(/\)' \| \
18829: . : '\(.\)' 2>/dev/null ||
18830: echo X"$as_dir" |
18831: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18832: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18833: /^X\(\/\/\)$/{ s//\1/; q; }
18834: /^X\(\/\).*/{ s//\1/; q; }
18835: s/.*/./; q'`
18836: done
18837: test ! -n "$as_dirs" || mkdir $as_dirs
18838: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18839: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18840: { (exit 1); exit 1; }; }; }
18841:
1.8 moko 18842: ac_builddir=.
18843:
1.11 moko 18844: if test "$ac_dir" != .; then
18845: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18846: # A "../" for each directory in $ac_dir_suffix.
18847: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18848: else
18849: ac_dir_suffix= ac_top_builddir=
18850: fi
1.8 moko 18851:
18852: case $srcdir in
1.11 moko 18853: .) # No --srcdir option. We are building in place.
1.8 moko 18854: ac_srcdir=.
1.11 moko 18855: if test -z "$ac_top_builddir"; then
18856: ac_top_srcdir=.
18857: else
18858: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18859: fi ;;
18860: [\\/]* | ?:[\\/]* ) # Absolute path.
1.8 moko 18861: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 18862: ac_top_srcdir=$srcdir ;;
18863: *) # Relative path.
18864: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18865: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.8 moko 18866: esac
18867:
1.11 moko 18868: # Do not use `cd foo && pwd` to compute absolute paths, because
18869: # the directories may not exist.
18870: case `pwd` in
18871: .) ac_abs_builddir="$ac_dir";;
18872: *)
18873: case "$ac_dir" in
18874: .) ac_abs_builddir=`pwd`;;
18875: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18876: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18877: esac;;
18878: esac
18879: case $ac_abs_builddir in
18880: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18881: *)
18882: case ${ac_top_builddir}. in
18883: .) ac_abs_top_builddir=$ac_abs_builddir;;
18884: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18885: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18886: esac;;
18887: esac
18888: case $ac_abs_builddir in
18889: .) ac_abs_srcdir=$ac_srcdir;;
18890: *)
18891: case $ac_srcdir in
18892: .) ac_abs_srcdir=$ac_abs_builddir;;
18893: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18894: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18895: esac;;
18896: esac
18897: case $ac_abs_builddir in
18898: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18899: *)
18900: case $ac_top_srcdir in
18901: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18902: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18903: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18904: esac;;
18905: esac
1.8 moko 18906:
18907:
18908: case $INSTALL in
18909: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.11 moko 18910: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.8 moko 18911: esac
18912:
1.11 moko 18913: if test x"$ac_file" != x-; then
18914: { echo "$as_me:$LINENO: creating $ac_file" >&5
18915: echo "$as_me: creating $ac_file" >&6;}
18916: rm -f "$ac_file"
18917: fi
18918: # Let's still pretend it is `configure' which instantiates (i.e., don't
18919: # use $as_me), people would be surprised to read:
18920: # /* config.h. Generated by config.status. */
18921: if test x"$ac_file" = x-; then
18922: configure_input=
18923: else
18924: configure_input="$ac_file. "
18925: fi
18926: configure_input=$configure_input"Generated from `echo $ac_file_in |
18927: sed 's,.*/,,'` by configure."
18928:
18929: # First look for the input files in the build tree, otherwise in the
18930: # src tree.
18931: ac_file_inputs=`IFS=:
18932: for f in $ac_file_in; do
18933: case $f in
18934: -) echo $tmp/stdin ;;
18935: [\\/$]*)
18936: # Absolute (can't be DOS-style, as IFS=:)
18937: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18938: echo "$as_me: error: cannot find input file: $f" >&2;}
18939: { (exit 1); exit 1; }; }
18940: echo "$f";;
18941: *) # Relative
18942: if test -f "$f"; then
18943: # Build tree
18944: echo "$f"
18945: elif test -f "$srcdir/$f"; then
18946: # Source tree
18947: echo "$srcdir/$f"
18948: else
18949: # /dev/null tree
18950: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18951: echo "$as_me: error: cannot find input file: $f" >&2;}
18952: { (exit 1); exit 1; }; }
18953: fi;;
18954: esac
18955: done` || { (exit 1); exit 1; }
1.10 moko 18956: _ACEOF
1.11 moko 18957: cat >>$CONFIG_STATUS <<_ACEOF
18958: sed "$ac_vpsub
1.8 moko 18959: $extrasub
18960: _ACEOF
1.11 moko 18961: cat >>$CONFIG_STATUS <<\_ACEOF
1.8 moko 18962: :t
18963: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.11 moko 18964: s,@configure_input@,$configure_input,;t t
18965: s,@srcdir@,$ac_srcdir,;t t
18966: s,@abs_srcdir@,$ac_abs_srcdir,;t t
18967: s,@top_srcdir@,$ac_top_srcdir,;t t
18968: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18969: s,@builddir@,$ac_builddir,;t t
18970: s,@abs_builddir@,$ac_abs_builddir,;t t
18971: s,@top_builddir@,$ac_top_builddir,;t t
18972: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18973: s,@INSTALL@,$ac_INSTALL,;t t
18974: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18975: rm -f $tmp/stdin
18976: if test x"$ac_file" != x-; then
18977: mv $tmp/out $ac_file
18978: else
18979: cat $tmp/out
18980: rm -f $tmp/out
18981: fi
18982:
18983: done
18984: _ACEOF
18985: cat >>$CONFIG_STATUS <<\_ACEOF
18986:
18987: #
18988: # CONFIG_HEADER section.
18989: #
18990:
18991: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18992: # NAME is the cpp macro being defined and VALUE is the value it is being given.
18993: #
18994: # ac_d sets the value in "#define NAME VALUE" lines.
18995: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18996: ac_dB='[ ].*$,\1#\2'
18997: ac_dC=' '
18998: ac_dD=',;t'
18999: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19000: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19001: ac_uB='$,\1#\2define\3'
19002: ac_uC=' '
19003: ac_uD=',;t'
1.8 moko 19004:
1.11 moko 19005: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19006: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.8 moko 19007: case $ac_file in
1.11 moko 19008: - | *:- | *:-:* ) # input from stdin
19009: cat >$tmp/stdin
19010: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19011: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19012: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19013: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19014: * ) ac_file_in=$ac_file.in ;;
19015: esac
19016:
19017: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19018: echo "$as_me: creating $ac_file" >&6;}
19019:
19020: # First look for the input files in the build tree, otherwise in the
19021: # src tree.
19022: ac_file_inputs=`IFS=:
19023: for f in $ac_file_in; do
19024: case $f in
19025: -) echo $tmp/stdin ;;
19026: [\\/$]*)
19027: # Absolute (can't be DOS-style, as IFS=:)
19028: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19029: echo "$as_me: error: cannot find input file: $f" >&2;}
19030: { (exit 1); exit 1; }; }
19031: # Do quote $f, to prevent DOS paths from being IFS'd.
19032: echo "$f";;
19033: *) # Relative
19034: if test -f "$f"; then
19035: # Build tree
19036: echo "$f"
19037: elif test -f "$srcdir/$f"; then
19038: # Source tree
19039: echo "$srcdir/$f"
19040: else
19041: # /dev/null tree
19042: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19043: echo "$as_me: error: cannot find input file: $f" >&2;}
19044: { (exit 1); exit 1; }; }
19045: fi;;
19046: esac
19047: done` || { (exit 1); exit 1; }
19048: # Remove the trailing spaces.
19049: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19050:
19051: _ACEOF
19052:
19053: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19054: # `conftest.undefs', that substitutes the proper values into
19055: # config.h.in to produce config.h. The first handles `#define'
19056: # templates, and the second `#undef' templates.
19057: # And first: Protect against being on the right side of a sed subst in
19058: # config.status. Protect against being in an unquoted here document
19059: # in config.status.
19060: rm -f conftest.defines conftest.undefs
19061: # Using a here document instead of a string reduces the quoting nightmare.
19062: # Putting comments in sed scripts is not portable.
19063: #
19064: # `end' is used to avoid that the second main sed command (meant for
19065: # 0-ary CPP macros) applies to n-ary macro definitions.
19066: # See the Autoconf documentation for `clear'.
19067: cat >confdef2sed.sed <<\_ACEOF
19068: s/[\\&,]/\\&/g
19069: s,[\\$`],\\&,g
19070: t clear
19071: : clear
19072: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19073: t end
19074: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19075: : end
19076: _ACEOF
19077: # If some macros were called several times there might be several times
19078: # the same #defines, which is useless. Nevertheless, we may not want to
19079: # sort them, since we want the *last* AC-DEFINE to be honored.
19080: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19081: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19082: rm -f confdef2sed.sed
19083:
19084: # This sed command replaces #undef with comments. This is necessary, for
19085: # example, in the case of _POSIX_SOURCE, which is predefined and required
19086: # on some systems where configure will not decide to define it.
19087: cat >>conftest.undefs <<\_ACEOF
19088: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19089: _ACEOF
19090:
19091: # Break up conftest.defines because some shells have a limit on the size
19092: # of here documents, and old seds have small limits too (100 cmds).
19093: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19094: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19095: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19096: echo ' :' >>$CONFIG_STATUS
19097: rm -f conftest.tail
19098: while grep . conftest.defines >/dev/null
19099: do
19100: # Write a limited-size here document to $tmp/defines.sed.
19101: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19102: # Speed up: don't consider the non `#define' lines.
19103: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19104: # Work around the forget-to-reset-the-flag bug.
19105: echo 't clr' >>$CONFIG_STATUS
19106: echo ': clr' >>$CONFIG_STATUS
19107: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19108: echo 'CEOF
19109: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19110: rm -f $tmp/in
19111: mv $tmp/out $tmp/in
19112: ' >>$CONFIG_STATUS
19113: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19114: rm -f conftest.defines
19115: mv conftest.tail conftest.defines
19116: done
19117: rm -f conftest.defines
19118: echo ' fi # grep' >>$CONFIG_STATUS
19119: echo >>$CONFIG_STATUS
19120:
19121: # Break up conftest.undefs because some shells have a limit on the size
19122: # of here documents, and old seds have small limits too (100 cmds).
19123: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19124: rm -f conftest.tail
19125: while grep . conftest.undefs >/dev/null
19126: do
19127: # Write a limited-size here document to $tmp/undefs.sed.
19128: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19129: # Speed up: don't consider the non `#undef'
19130: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19131: # Work around the forget-to-reset-the-flag bug.
19132: echo 't clr' >>$CONFIG_STATUS
19133: echo ': clr' >>$CONFIG_STATUS
19134: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19135: echo 'CEOF
19136: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19137: rm -f $tmp/in
19138: mv $tmp/out $tmp/in
19139: ' >>$CONFIG_STATUS
19140: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19141: rm -f conftest.undefs
19142: mv conftest.tail conftest.undefs
19143: done
19144: rm -f conftest.undefs
19145:
19146: cat >>$CONFIG_STATUS <<\_ACEOF
19147: # Let's still pretend it is `configure' which instantiates (i.e., don't
19148: # use $as_me), people would be surprised to read:
19149: # /* config.h. Generated by config.status. */
19150: if test x"$ac_file" = x-; then
19151: echo "/* Generated by configure. */" >$tmp/config.h
19152: else
19153: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19154: fi
19155: cat $tmp/in >>$tmp/config.h
19156: rm -f $tmp/in
1.8 moko 19157: if test x"$ac_file" != x-; then
1.11 moko 19158: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19159: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19160: echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 19161: else
1.11 moko 19162: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19163: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19164: X"$ac_file" : 'X\(//\)[^/]' \| \
19165: X"$ac_file" : 'X\(//\)$' \| \
19166: X"$ac_file" : 'X\(/\)' \| \
19167: . : '\(.\)' 2>/dev/null ||
19168: echo X"$ac_file" |
19169: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19170: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19171: /^X\(\/\/\)$/{ s//\1/; q; }
19172: /^X\(\/\).*/{ s//\1/; q; }
19173: s/.*/./; q'`
19174: { if $as_mkdir_p; then
19175: mkdir -p "$ac_dir"
19176: else
19177: as_dir="$ac_dir"
19178: as_dirs=
19179: while test ! -d "$as_dir"; do
19180: as_dirs="$as_dir $as_dirs"
19181: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19182: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19183: X"$as_dir" : 'X\(//\)[^/]' \| \
19184: X"$as_dir" : 'X\(//\)$' \| \
19185: X"$as_dir" : 'X\(/\)' \| \
19186: . : '\(.\)' 2>/dev/null ||
19187: echo X"$as_dir" |
19188: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19189: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19190: /^X\(\/\/\)$/{ s//\1/; q; }
19191: /^X\(\/\).*/{ s//\1/; q; }
19192: s/.*/./; q'`
19193: done
19194: test ! -n "$as_dirs" || mkdir $as_dirs
19195: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19196: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19197: { (exit 1); exit 1; }; }; }
19198:
19199: rm -f $ac_file
19200: mv $tmp/config.h $ac_file
1.8 moko 19201: fi
19202: else
1.11 moko 19203: cat $tmp/config.h
19204: rm -f $tmp/config.h
1.8 moko 19205: fi
1.11 moko 19206: # Compute $ac_file's index in $config_headers.
1.8 moko 19207: _am_stamp_count=1
19208: for _am_header in $config_headers :; do
19209: case $_am_header in
1.11 moko 19210: $ac_file | $ac_file:* )
1.8 moko 19211: break ;;
19212: * )
19213: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19214: esac
19215: done
1.11 moko 19216: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19217: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19218: X$ac_file : 'X\(//\)[^/]' \| \
19219: X$ac_file : 'X\(//\)$' \| \
19220: X$ac_file : 'X\(/\)' \| \
19221: . : '\(.\)' 2>/dev/null ||
19222: echo X$ac_file |
19223: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19224: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19225: /^X\(\/\/\)$/{ s//\1/; q; }
19226: /^X\(\/\).*/{ s//\1/; q; }
19227: s/.*/./; q'`/stamp-h$_am_stamp_count
19228: done
19229: _ACEOF
19230: cat >>$CONFIG_STATUS <<\_ACEOF
19231:
19232: #
19233: # CONFIG_COMMANDS section.
19234: #
19235: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19236: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19237: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19238: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19239: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19240: X"$ac_dest" : 'X\(//\)[^/]' \| \
19241: X"$ac_dest" : 'X\(//\)$' \| \
19242: X"$ac_dest" : 'X\(/\)' \| \
19243: . : '\(.\)' 2>/dev/null ||
19244: echo X"$ac_dest" |
19245: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19246: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19247: /^X\(\/\/\)$/{ s//\1/; q; }
19248: /^X\(\/\).*/{ s//\1/; q; }
19249: s/.*/./; q'`
19250: { if $as_mkdir_p; then
19251: mkdir -p "$ac_dir"
19252: else
19253: as_dir="$ac_dir"
19254: as_dirs=
19255: while test ! -d "$as_dir"; do
19256: as_dirs="$as_dir $as_dirs"
19257: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19258: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19259: X"$as_dir" : 'X\(//\)[^/]' \| \
19260: X"$as_dir" : 'X\(//\)$' \| \
19261: X"$as_dir" : 'X\(/\)' \| \
19262: . : '\(.\)' 2>/dev/null ||
19263: echo X"$as_dir" |
19264: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19265: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19266: /^X\(\/\/\)$/{ s//\1/; q; }
19267: /^X\(\/\).*/{ s//\1/; q; }
19268: s/.*/./; q'`
19269: done
19270: test ! -n "$as_dirs" || mkdir $as_dirs
19271: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19272: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19273: { (exit 1); exit 1; }; }; }
19274:
19275: ac_builddir=.
19276:
19277: if test "$ac_dir" != .; then
19278: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19279: # A "../" for each directory in $ac_dir_suffix.
19280: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19281: else
19282: ac_dir_suffix= ac_top_builddir=
19283: fi
19284:
19285: case $srcdir in
19286: .) # No --srcdir option. We are building in place.
19287: ac_srcdir=.
19288: if test -z "$ac_top_builddir"; then
19289: ac_top_srcdir=.
19290: else
19291: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19292: fi ;;
19293: [\\/]* | ?:[\\/]* ) # Absolute path.
19294: ac_srcdir=$srcdir$ac_dir_suffix;
19295: ac_top_srcdir=$srcdir ;;
19296: *) # Relative path.
19297: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19298: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19299: esac
1.8 moko 19300:
1.11 moko 19301: # Do not use `cd foo && pwd` to compute absolute paths, because
19302: # the directories may not exist.
19303: case `pwd` in
19304: .) ac_abs_builddir="$ac_dir";;
19305: *)
19306: case "$ac_dir" in
19307: .) ac_abs_builddir=`pwd`;;
19308: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19309: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19310: esac;;
19311: esac
19312: case $ac_abs_builddir in
19313: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19314: *)
19315: case ${ac_top_builddir}. in
19316: .) ac_abs_top_builddir=$ac_abs_builddir;;
19317: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19318: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19319: esac;;
19320: esac
19321: case $ac_abs_builddir in
19322: .) ac_abs_srcdir=$ac_srcdir;;
19323: *)
19324: case $ac_srcdir in
19325: .) ac_abs_srcdir=$ac_abs_builddir;;
19326: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19327: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19328: esac;;
19329: esac
19330: case $ac_abs_builddir in
19331: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19332: *)
19333: case $ac_top_srcdir in
19334: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19335: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19336: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19337: esac;;
19338: esac
1.8 moko 19339:
19340:
1.11 moko 19341: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19342: echo "$as_me: executing $ac_dest commands" >&6;}
19343: case $ac_dest in
19344: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 19345: # Strip MF so we end up with the name of the file.
19346: mf=`echo "$mf" | sed -e 's/:.*$//'`
19347: # Check whether this is an Automake generated Makefile or not.
19348: # We used to match only the files named `Makefile.in', but
19349: # some people rename them; so instead we look at the file content.
19350: # Grep'ing the first line is not enough: some people post-process
19351: # each Makefile.in and add a new line on top of each file to say so.
19352: # So let's grep whole file.
19353: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.11 moko 19354: dirpart=`(dirname "$mf") 2>/dev/null ||
1.8 moko 19355: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19356: X"$mf" : 'X\(//\)[^/]' \| \
19357: X"$mf" : 'X\(//\)$' \| \
1.11 moko 19358: X"$mf" : 'X\(/\)' \| \
19359: . : '\(.\)' 2>/dev/null ||
19360: echo X"$mf" |
19361: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19362: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19363: /^X\(\/\/\)$/{ s//\1/; q; }
19364: /^X\(\/\).*/{ s//\1/; q; }
19365: s/.*/./; q'`
1.8 moko 19366: else
19367: continue
19368: fi
19369: # Extract the definition of DEPDIR, am__include, and am__quote
19370: # from the Makefile without running `make'.
19371: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19372: test -z "$DEPDIR" && continue
19373: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19374: test -z "am__include" && continue
19375: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19376: # When using ansi2knr, U may be empty or an underscore; expand it
19377: U=`sed -n 's/^U = //p' < "$mf"`
19378: # Find all dependency output files, they are included files with
19379: # $(DEPDIR) in their names. We invoke sed twice because it is the
19380: # simplest approach to changing $(DEPDIR) to its actual value in the
19381: # expansion.
19382: for file in `sed -n "
19383: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19384: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19385: # Make sure the directory exists.
19386: test -f "$dirpart/$file" && continue
1.11 moko 19387: fdir=`(dirname "$file") 2>/dev/null ||
1.8 moko 19388: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19389: X"$file" : 'X\(//\)[^/]' \| \
19390: X"$file" : 'X\(//\)$' \| \
1.11 moko 19391: X"$file" : 'X\(/\)' \| \
19392: . : '\(.\)' 2>/dev/null ||
19393: echo X"$file" |
19394: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19395: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19396: /^X\(\/\/\)$/{ s//\1/; q; }
19397: /^X\(\/\).*/{ s//\1/; q; }
19398: s/.*/./; q'`
19399: { if $as_mkdir_p; then
19400: mkdir -p $dirpart/$fdir
19401: else
19402: as_dir=$dirpart/$fdir
19403: as_dirs=
19404: while test ! -d "$as_dir"; do
19405: as_dirs="$as_dir $as_dirs"
19406: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19407: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19408: X"$as_dir" : 'X\(//\)[^/]' \| \
19409: X"$as_dir" : 'X\(//\)$' \| \
19410: X"$as_dir" : 'X\(/\)' \| \
19411: . : '\(.\)' 2>/dev/null ||
19412: echo X"$as_dir" |
19413: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19414: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19415: /^X\(\/\/\)$/{ s//\1/; q; }
19416: /^X\(\/\).*/{ s//\1/; q; }
19417: s/.*/./; q'`
19418: done
19419: test ! -n "$as_dirs" || mkdir $as_dirs
19420: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19421: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19422: { (exit 1); exit 1; }; }; }
19423:
1.8 moko 19424: # echo "creating $dirpart/$file"
19425: echo '# dummy' > "$dirpart/$file"
19426: done
19427: done
19428: ;;
1.11 moko 19429: libtool )
1.8 moko 19430:
19431: # See if we are running on zsh, and set the options which allow our
19432: # commands through without removal of \ escapes.
19433: if test -n "${ZSH_VERSION+set}" ; then
19434: setopt NO_GLOB_SUBST
19435: fi
19436:
19437: cfgfile="${ofile}T"
19438: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19439: $RM "$cfgfile"
19440:
19441: cat <<_LT_EOF >> "$cfgfile"
19442: #! $SHELL
19443:
19444: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19445: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19446: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19447: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19448: #
19449: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19450: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19451: # Foundation, Inc.
19452: # Written by Gordon Matzigkeit, 1996
19453: #
19454: # This file is part of GNU Libtool.
19455: #
19456: # GNU Libtool is free software; you can redistribute it and/or
19457: # modify it under the terms of the GNU General Public License as
19458: # published by the Free Software Foundation; either version 2 of
19459: # the License, or (at your option) any later version.
19460: #
19461: # As a special exception to the GNU General Public License,
19462: # if you distribute this file as part of a program or library that
19463: # is built using GNU Libtool, you may include this file under the
19464: # same distribution terms that you use for the rest of that program.
19465: #
19466: # GNU Libtool is distributed in the hope that it will be useful,
19467: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19468: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19469: # GNU General Public License for more details.
19470: #
19471: # You should have received a copy of the GNU General Public License
19472: # along with GNU Libtool; see the file COPYING. If not, a copy
19473: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19474: # obtained by writing to the Free Software Foundation, Inc.,
19475: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19476:
19477:
19478: # The names of the tagged configurations supported by this script.
19479: available_tags="CXX "
19480:
19481: # ### BEGIN LIBTOOL CONFIG
19482:
19483: # Which release of libtool.m4 was used?
19484: macro_version=$macro_version
19485: macro_revision=$macro_revision
19486:
1.20 moko 19487: # Whether or not to build static libraries.
19488: build_old_libs=$enable_static
19489:
1.13 moko 19490: # Assembler program.
19491: AS=$lt_AS
19492:
19493: # DLL creation program.
19494: DLLTOOL=$lt_DLLTOOL
19495:
19496: # Object dumper program.
19497: OBJDUMP=$lt_OBJDUMP
19498:
1.8 moko 19499: # Whether or not to build shared libraries.
19500: build_libtool_libs=$enable_shared
19501:
19502: # What type of objects to build.
19503: pic_mode=$pic_mode
19504:
19505: # Whether or not to optimize for fast installation.
19506: fast_install=$enable_fast_install
19507:
19508: # Shell to use when invoking shell scripts.
19509: SHELL=$lt_SHELL
19510:
19511: # An echo program that protects backslashes.
19512: ECHO=$lt_ECHO
19513:
19514: # The PATH separator for the build system.
19515: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19516:
19517: # The host system.
19518: host_alias=$host_alias
19519: host=$host
19520: host_os=$host_os
19521:
19522: # The build system.
19523: build_alias=$build_alias
19524: build=$build
19525: build_os=$build_os
19526:
19527: # A sed program that does not truncate output.
19528: SED=$lt_SED
19529:
19530: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19531: Xsed="\$SED -e 1s/^X//"
19532:
19533: # A grep program that handles long lines.
19534: GREP=$lt_GREP
19535:
19536: # An ERE matcher.
19537: EGREP=$lt_EGREP
19538:
19539: # A literal string matcher.
19540: FGREP=$lt_FGREP
19541:
19542: # A BSD- or MS-compatible name lister.
19543: NM=$lt_NM
19544:
19545: # Whether we need soft or hard links.
19546: LN_S=$lt_LN_S
19547:
19548: # What is the maximum length of a command?
19549: max_cmd_len=$max_cmd_len
19550:
19551: # Object file suffix (normally "o").
19552: objext=$ac_objext
19553:
19554: # Executable file suffix (normally "").
19555: exeext=$exeext
19556:
19557: # whether the shell understands "unset".
19558: lt_unset=$lt_unset
19559:
19560: # turn spaces into newlines.
19561: SP2NL=$lt_lt_SP2NL
19562:
19563: # turn newlines into spaces.
19564: NL2SP=$lt_lt_NL2SP
19565:
19566: # convert \$build file names to \$host format.
19567: to_host_file_cmd=$lt_cv_to_host_file_cmd
19568:
19569: # convert \$build files to toolchain format.
19570: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19571:
19572: # Method to check whether dependent libraries are shared objects.
19573: deplibs_check_method=$lt_deplibs_check_method
19574:
19575: # Command to use when deplibs_check_method = "file_magic".
19576: file_magic_cmd=$lt_file_magic_cmd
19577:
19578: # How to find potential files when deplibs_check_method = "file_magic".
19579: file_magic_glob=$lt_file_magic_glob
19580:
19581: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19582: want_nocaseglob=$lt_want_nocaseglob
19583:
19584: # Command to associate shared and link libraries.
19585: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19586:
19587: # The archiver.
19588: AR=$lt_AR
19589:
19590: # Flags to create an archive.
19591: AR_FLAGS=$lt_AR_FLAGS
19592:
19593: # How to feed a file listing to the archiver.
19594: archiver_list_spec=$lt_archiver_list_spec
19595:
19596: # A symbol stripping program.
19597: STRIP=$lt_STRIP
19598:
19599: # Commands used to install an old-style archive.
19600: RANLIB=$lt_RANLIB
19601: old_postinstall_cmds=$lt_old_postinstall_cmds
19602: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19603:
19604: # Whether to use a lock for old archive extraction.
19605: lock_old_archive_extraction=$lock_old_archive_extraction
19606:
19607: # A C compiler.
19608: LTCC=$lt_CC
19609:
19610: # LTCC compiler flags.
19611: LTCFLAGS=$lt_CFLAGS
19612:
19613: # Take the output of nm and produce a listing of raw symbols and C names.
19614: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19615:
19616: # Transform the output of nm in a proper C declaration.
19617: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19618:
19619: # Transform the output of nm in a C name address pair.
19620: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19621:
19622: # Transform the output of nm in a C name address pair when lib prefix is needed.
19623: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19624:
19625: # Specify filename containing input files for \$NM.
19626: nm_file_list_spec=$lt_nm_file_list_spec
19627:
19628: # The root where to search for dependent libraries,and in which our libraries should be installed.
19629: lt_sysroot=$lt_sysroot
19630:
19631: # The name of the directory that contains temporary libtool files.
19632: objdir=$objdir
19633:
19634: # Used to examine libraries when file_magic_cmd begins with "file".
19635: MAGIC_CMD=$MAGIC_CMD
19636:
19637: # Must we lock files when doing compilation?
19638: need_locks=$lt_need_locks
19639:
19640: # Manifest tool.
19641: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19642:
19643: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19644: DSYMUTIL=$lt_DSYMUTIL
19645:
19646: # Tool to change global to local symbols on Mac OS X.
19647: NMEDIT=$lt_NMEDIT
19648:
19649: # Tool to manipulate fat objects and archives on Mac OS X.
19650: LIPO=$lt_LIPO
19651:
19652: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19653: OTOOL=$lt_OTOOL
19654:
19655: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19656: OTOOL64=$lt_OTOOL64
19657:
19658: # Old archive suffix (normally "a").
19659: libext=$libext
19660:
19661: # Shared library suffix (normally ".so").
19662: shrext_cmds=$lt_shrext_cmds
19663:
19664: # The commands to extract the exported symbol list from a shared archive.
19665: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19666:
19667: # Variables whose values should be saved in libtool wrapper scripts and
19668: # restored at link time.
19669: variables_saved_for_relink=$lt_variables_saved_for_relink
19670:
19671: # Do we need the "lib" prefix for modules?
19672: need_lib_prefix=$need_lib_prefix
19673:
19674: # Do we need a version for libraries?
19675: need_version=$need_version
19676:
19677: # Library versioning type.
19678: version_type=$version_type
19679:
19680: # Shared library runtime path variable.
19681: runpath_var=$runpath_var
19682:
19683: # Shared library path variable.
19684: shlibpath_var=$shlibpath_var
19685:
19686: # Is shlibpath searched before the hard-coded library search path?
19687: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19688:
19689: # Format of library name prefix.
19690: libname_spec=$lt_libname_spec
19691:
19692: # List of archive names. First name is the real one, the rest are links.
19693: # The last name is the one that the linker finds with -lNAME
19694: library_names_spec=$lt_library_names_spec
19695:
19696: # The coded name of the library, if different from the real name.
19697: soname_spec=$lt_soname_spec
19698:
19699: # Permission mode override for installation of shared libraries.
19700: install_override_mode=$lt_install_override_mode
19701:
19702: # Command to use after installation of a shared archive.
19703: postinstall_cmds=$lt_postinstall_cmds
19704:
19705: # Command to use after uninstallation of a shared archive.
19706: postuninstall_cmds=$lt_postuninstall_cmds
19707:
19708: # Commands used to finish a libtool library installation in a directory.
19709: finish_cmds=$lt_finish_cmds
19710:
19711: # As "finish_cmds", except a single script fragment to be evaled but
19712: # not shown.
19713: finish_eval=$lt_finish_eval
19714:
19715: # Whether we should hardcode library paths into libraries.
19716: hardcode_into_libs=$hardcode_into_libs
19717:
19718: # Compile-time system search path for libraries.
19719: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19720:
19721: # Run-time system search path for libraries.
19722: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19723:
19724: # Whether dlopen is supported.
19725: dlopen_support=$enable_dlopen
19726:
19727: # Whether dlopen of programs is supported.
19728: dlopen_self=$enable_dlopen_self
19729:
19730: # Whether dlopen of statically linked programs is supported.
19731: dlopen_self_static=$enable_dlopen_self_static
19732:
19733: # Commands to strip libraries.
19734: old_striplib=$lt_old_striplib
19735: striplib=$lt_striplib
19736:
19737:
19738: # The linker used to build libraries.
19739: LD=$lt_LD
19740:
19741: # How to create reloadable object files.
19742: reload_flag=$lt_reload_flag
19743: reload_cmds=$lt_reload_cmds
19744:
19745: # Commands used to build an old-style archive.
19746: old_archive_cmds=$lt_old_archive_cmds
19747:
19748: # A language specific compiler.
19749: CC=$lt_compiler
19750:
19751: # Is the compiler the GNU compiler?
19752: with_gcc=$GCC
19753:
19754: # Compiler flag to turn off builtin functions.
19755: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19756:
19757: # Additional compiler flags for building library objects.
19758: pic_flag=$lt_lt_prog_compiler_pic
19759:
19760: # How to pass a linker flag through the compiler.
19761: wl=$lt_lt_prog_compiler_wl
19762:
19763: # Compiler flag to prevent dynamic linking.
19764: link_static_flag=$lt_lt_prog_compiler_static
19765:
19766: # Does compiler simultaneously support -c and -o options?
19767: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19768:
19769: # Whether or not to add -lc for building shared libraries.
19770: build_libtool_need_lc=$archive_cmds_need_lc
19771:
19772: # Whether or not to disallow shared libs when runtime libs are static.
19773: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19774:
19775: # Compiler flag to allow reflexive dlopens.
19776: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19777:
19778: # Compiler flag to generate shared objects directly from archives.
19779: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19780:
19781: # Whether the compiler copes with passing no objects directly.
19782: compiler_needs_object=$lt_compiler_needs_object
19783:
19784: # Create an old-style archive from a shared archive.
19785: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19786:
19787: # Create a temporary old-style archive to link instead of a shared archive.
19788: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19789:
19790: # Commands used to build a shared archive.
19791: archive_cmds=$lt_archive_cmds
19792: archive_expsym_cmds=$lt_archive_expsym_cmds
19793:
19794: # Commands used to build a loadable module if different from building
19795: # a shared archive.
19796: module_cmds=$lt_module_cmds
19797: module_expsym_cmds=$lt_module_expsym_cmds
19798:
19799: # Whether we are building with GNU ld or not.
19800: with_gnu_ld=$lt_with_gnu_ld
19801:
19802: # Flag that allows shared libraries with undefined symbols to be built.
19803: allow_undefined_flag=$lt_allow_undefined_flag
19804:
19805: # Flag that enforces no undefined symbols.
19806: no_undefined_flag=$lt_no_undefined_flag
19807:
19808: # Flag to hardcode \$libdir into a binary during linking.
19809: # This must work even if \$libdir does not exist
19810: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19811:
19812: # Whether we need a single "-rpath" flag with a separated argument.
19813: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19814:
19815: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19816: # DIR into the resulting binary.
19817: hardcode_direct=$hardcode_direct
19818:
19819: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19820: # DIR into the resulting binary and the resulting library dependency is
19821: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19822: # library is relocated.
19823: hardcode_direct_absolute=$hardcode_direct_absolute
19824:
19825: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19826: # into the resulting binary.
19827: hardcode_minus_L=$hardcode_minus_L
19828:
19829: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19830: # into the resulting binary.
19831: hardcode_shlibpath_var=$hardcode_shlibpath_var
19832:
19833: # Set to "yes" if building a shared library automatically hardcodes DIR
19834: # into the library and all subsequent libraries and executables linked
19835: # against it.
19836: hardcode_automatic=$hardcode_automatic
19837:
19838: # Set to yes if linker adds runtime paths of dependent libraries
19839: # to runtime path list.
19840: inherit_rpath=$inherit_rpath
19841:
19842: # Whether libtool must link a program against all its dependency libraries.
19843: link_all_deplibs=$link_all_deplibs
19844:
19845: # Set to "yes" if exported symbols are required.
19846: always_export_symbols=$always_export_symbols
19847:
19848: # The commands to list exported symbols.
19849: export_symbols_cmds=$lt_export_symbols_cmds
19850:
19851: # Symbols that should not be listed in the preloaded symbols.
19852: exclude_expsyms=$lt_exclude_expsyms
19853:
19854: # Symbols that must always be exported.
19855: include_expsyms=$lt_include_expsyms
19856:
19857: # Commands necessary for linking programs (against libraries) with templates.
19858: prelink_cmds=$lt_prelink_cmds
19859:
19860: # Commands necessary for finishing linking programs.
19861: postlink_cmds=$lt_postlink_cmds
19862:
19863: # Specify filename containing input files.
19864: file_list_spec=$lt_file_list_spec
19865:
19866: # How to hardcode a shared library path into an executable.
19867: hardcode_action=$hardcode_action
19868:
19869: # The directories searched by this compiler when creating a shared library.
19870: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19871:
19872: # Dependencies to place before and after the objects being linked to
19873: # create a shared library.
19874: predep_objects=$lt_predep_objects
19875: postdep_objects=$lt_postdep_objects
19876: predeps=$lt_predeps
19877: postdeps=$lt_postdeps
19878:
19879: # The library search path used internally by the compiler when linking
19880: # a shared library.
19881: compiler_lib_search_path=$lt_compiler_lib_search_path
19882:
19883: # ### END LIBTOOL CONFIG
19884:
19885: _LT_EOF
19886:
19887: case $host_os in
19888: aix3*)
19889: cat <<\_LT_EOF >> "$cfgfile"
19890: # AIX sometimes has problems with the GCC collect2 program. For some
19891: # reason, if we set the COLLECT_NAMES environment variable, the problems
19892: # vanish in a puff of smoke.
19893: if test "X${COLLECT_NAMES+set}" != Xset; then
19894: COLLECT_NAMES=
19895: export COLLECT_NAMES
19896: fi
19897: _LT_EOF
19898: ;;
19899: esac
19900:
19901:
19902: ltmain="$ac_aux_dir/ltmain.sh"
19903:
19904:
19905: # We use sed instead of cat because bash on DJGPP gets confused if
19906: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19907: # text mode, it properly converts lines to CR/LF. This bash problem
19908: # is reportedly fixed, but why not run on old versions too?
19909: sed '$q' "$ltmain" >> "$cfgfile" \
19910: || (rm -f "$cfgfile"; exit 1)
19911:
19912: if test x"$xsi_shell" = xyes; then
19913: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19914: func_dirname ()\
19915: {\
19916: \ case ${1} in\
19917: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19918: \ * ) func_dirname_result="${3}" ;;\
19919: \ esac\
19920: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19921: && mv -f "$cfgfile.tmp" "$cfgfile" \
19922: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19923: test 0 -eq $? || _lt_function_replace_fail=:
19924:
19925:
19926: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19927: func_basename ()\
19928: {\
19929: \ func_basename_result="${1##*/}"\
19930: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19931: && mv -f "$cfgfile.tmp" "$cfgfile" \
19932: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19933: test 0 -eq $? || _lt_function_replace_fail=:
19934:
19935:
19936: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19937: func_dirname_and_basename ()\
19938: {\
19939: \ case ${1} in\
19940: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19941: \ * ) func_dirname_result="${3}" ;;\
19942: \ esac\
19943: \ func_basename_result="${1##*/}"\
19944: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19945: && mv -f "$cfgfile.tmp" "$cfgfile" \
19946: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19947: test 0 -eq $? || _lt_function_replace_fail=:
19948:
19949:
19950: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19951: func_stripname ()\
19952: {\
19953: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19954: \ # positional parameters, so assign one to ordinary parameter first.\
19955: \ func_stripname_result=${3}\
19956: \ func_stripname_result=${func_stripname_result#"${1}"}\
19957: \ func_stripname_result=${func_stripname_result%"${2}"}\
19958: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19959: && mv -f "$cfgfile.tmp" "$cfgfile" \
19960: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19961: test 0 -eq $? || _lt_function_replace_fail=:
19962:
19963:
19964: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19965: func_split_long_opt ()\
19966: {\
19967: \ func_split_long_opt_name=${1%%=*}\
19968: \ func_split_long_opt_arg=${1#*=}\
19969: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19970: && mv -f "$cfgfile.tmp" "$cfgfile" \
19971: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19972: test 0 -eq $? || _lt_function_replace_fail=:
19973:
19974:
19975: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19976: func_split_short_opt ()\
19977: {\
19978: \ func_split_short_opt_arg=${1#??}\
19979: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19980: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19981: && mv -f "$cfgfile.tmp" "$cfgfile" \
19982: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19983: test 0 -eq $? || _lt_function_replace_fail=:
19984:
19985:
19986: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19987: func_lo2o ()\
19988: {\
19989: \ case ${1} in\
19990: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19991: \ *) func_lo2o_result=${1} ;;\
19992: \ esac\
19993: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19994: && mv -f "$cfgfile.tmp" "$cfgfile" \
19995: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19996: test 0 -eq $? || _lt_function_replace_fail=:
19997:
19998:
19999: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20000: func_xform ()\
20001: {\
20002: func_xform_result=${1%.*}.lo\
20003: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20004: && mv -f "$cfgfile.tmp" "$cfgfile" \
20005: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20006: test 0 -eq $? || _lt_function_replace_fail=:
20007:
20008:
20009: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20010: func_arith ()\
20011: {\
20012: func_arith_result=$(( $* ))\
20013: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20014: && mv -f "$cfgfile.tmp" "$cfgfile" \
20015: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20016: test 0 -eq $? || _lt_function_replace_fail=:
20017:
20018:
20019: sed -e '/^func_len ()$/,/^} # func_len /c\
20020: func_len ()\
20021: {\
20022: func_len_result=${#1}\
20023: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20024: && mv -f "$cfgfile.tmp" "$cfgfile" \
20025: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20026: test 0 -eq $? || _lt_function_replace_fail=:
20027:
20028: fi
20029:
20030: if test x"$lt_shell_append" = xyes; then
20031: sed -e '/^func_append ()$/,/^} # func_append /c\
20032: func_append ()\
20033: {\
20034: eval "${1}+=\\${2}"\
20035: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20036: && mv -f "$cfgfile.tmp" "$cfgfile" \
20037: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20038: test 0 -eq $? || _lt_function_replace_fail=:
20039:
20040:
20041: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20042: func_append_quoted ()\
20043: {\
20044: \ func_quote_for_eval "${2}"\
20045: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20046: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20047: && mv -f "$cfgfile.tmp" "$cfgfile" \
20048: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20049: test 0 -eq $? || _lt_function_replace_fail=:
20050:
20051:
20052: # Save a `func_append' function call where possible by direct use of '+='
20053: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20054: && mv -f "$cfgfile.tmp" "$cfgfile" \
20055: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20056: test 0 -eq $? || _lt_function_replace_fail=:
20057: else
20058: # Save a `func_append' function call even when '+=' is not available
20059: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20060: && mv -f "$cfgfile.tmp" "$cfgfile" \
20061: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20062: test 0 -eq $? || _lt_function_replace_fail=:
20063: fi
20064:
20065: if test x"$_lt_function_replace_fail" = x":"; then
1.11 moko 20066: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20067: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 20068: fi
20069:
20070:
20071: mv -f "$cfgfile" "$ofile" ||
20072: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20073: chmod +x "$ofile"
20074:
20075:
20076: cat <<_LT_EOF >> "$ofile"
20077:
20078: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20079:
20080: # The linker used to build libraries.
20081: LD=$lt_LD_CXX
20082:
20083: # How to create reloadable object files.
20084: reload_flag=$lt_reload_flag_CXX
20085: reload_cmds=$lt_reload_cmds_CXX
20086:
20087: # Commands used to build an old-style archive.
20088: old_archive_cmds=$lt_old_archive_cmds_CXX
20089:
20090: # A language specific compiler.
20091: CC=$lt_compiler_CXX
20092:
20093: # Is the compiler the GNU compiler?
20094: with_gcc=$GCC_CXX
20095:
20096: # Compiler flag to turn off builtin functions.
20097: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20098:
20099: # Additional compiler flags for building library objects.
20100: pic_flag=$lt_lt_prog_compiler_pic_CXX
20101:
20102: # How to pass a linker flag through the compiler.
20103: wl=$lt_lt_prog_compiler_wl_CXX
20104:
20105: # Compiler flag to prevent dynamic linking.
20106: link_static_flag=$lt_lt_prog_compiler_static_CXX
20107:
20108: # Does compiler simultaneously support -c and -o options?
20109: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20110:
20111: # Whether or not to add -lc for building shared libraries.
20112: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20113:
20114: # Whether or not to disallow shared libs when runtime libs are static.
20115: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20116:
20117: # Compiler flag to allow reflexive dlopens.
20118: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20119:
20120: # Compiler flag to generate shared objects directly from archives.
20121: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20122:
20123: # Whether the compiler copes with passing no objects directly.
20124: compiler_needs_object=$lt_compiler_needs_object_CXX
20125:
20126: # Create an old-style archive from a shared archive.
20127: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20128:
20129: # Create a temporary old-style archive to link instead of a shared archive.
20130: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20131:
20132: # Commands used to build a shared archive.
20133: archive_cmds=$lt_archive_cmds_CXX
20134: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20135:
20136: # Commands used to build a loadable module if different from building
20137: # a shared archive.
20138: module_cmds=$lt_module_cmds_CXX
20139: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20140:
20141: # Whether we are building with GNU ld or not.
20142: with_gnu_ld=$lt_with_gnu_ld_CXX
20143:
20144: # Flag that allows shared libraries with undefined symbols to be built.
20145: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20146:
20147: # Flag that enforces no undefined symbols.
20148: no_undefined_flag=$lt_no_undefined_flag_CXX
20149:
20150: # Flag to hardcode \$libdir into a binary during linking.
20151: # This must work even if \$libdir does not exist
20152: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20153:
20154: # Whether we need a single "-rpath" flag with a separated argument.
20155: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20156:
20157: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20158: # DIR into the resulting binary.
20159: hardcode_direct=$hardcode_direct_CXX
20160:
20161: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20162: # DIR into the resulting binary and the resulting library dependency is
20163: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20164: # library is relocated.
20165: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20166:
20167: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20168: # into the resulting binary.
20169: hardcode_minus_L=$hardcode_minus_L_CXX
20170:
20171: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20172: # into the resulting binary.
20173: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20174:
20175: # Set to "yes" if building a shared library automatically hardcodes DIR
20176: # into the library and all subsequent libraries and executables linked
20177: # against it.
20178: hardcode_automatic=$hardcode_automatic_CXX
20179:
20180: # Set to yes if linker adds runtime paths of dependent libraries
20181: # to runtime path list.
20182: inherit_rpath=$inherit_rpath_CXX
20183:
20184: # Whether libtool must link a program against all its dependency libraries.
20185: link_all_deplibs=$link_all_deplibs_CXX
20186:
20187: # Set to "yes" if exported symbols are required.
20188: always_export_symbols=$always_export_symbols_CXX
20189:
20190: # The commands to list exported symbols.
20191: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20192:
20193: # Symbols that should not be listed in the preloaded symbols.
20194: exclude_expsyms=$lt_exclude_expsyms_CXX
20195:
20196: # Symbols that must always be exported.
20197: include_expsyms=$lt_include_expsyms_CXX
20198:
20199: # Commands necessary for linking programs (against libraries) with templates.
20200: prelink_cmds=$lt_prelink_cmds_CXX
20201:
20202: # Commands necessary for finishing linking programs.
20203: postlink_cmds=$lt_postlink_cmds_CXX
20204:
20205: # Specify filename containing input files.
20206: file_list_spec=$lt_file_list_spec_CXX
20207:
20208: # How to hardcode a shared library path into an executable.
20209: hardcode_action=$hardcode_action_CXX
20210:
20211: # The directories searched by this compiler when creating a shared library.
20212: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20213:
20214: # Dependencies to place before and after the objects being linked to
20215: # create a shared library.
20216: predep_objects=$lt_predep_objects_CXX
20217: postdep_objects=$lt_postdep_objects_CXX
20218: predeps=$lt_predeps_CXX
20219: postdeps=$lt_postdeps_CXX
20220:
20221: # The library search path used internally by the compiler when linking
20222: # a shared library.
20223: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20224:
20225: # ### END LIBTOOL TAG CONFIG: CXX
20226: _LT_EOF
1.1 misha 20227:
20228: ;;
20229: esac
1.11 moko 20230: done
20231: _ACEOF
1.1 misha 20232:
1.11 moko 20233: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 misha 20234:
1.11 moko 20235: { (exit 0); exit 0; }
1.1 misha 20236: _ACEOF
1.11 moko 20237: chmod +x $CONFIG_STATUS
1.1 misha 20238: ac_clean_files=$ac_clean_files_save
20239:
20240:
20241: # configure is writing to config.log, and then calls config.status.
20242: # config.status does its own redirection, appending to config.log.
20243: # Unfortunately, on DOS this fails, as config.log is still kept open
20244: # by configure, so config.status won't be able to write to it; its
20245: # output is simply discarded. So we exec the FD to /dev/null,
20246: # effectively closing config.log, so it can be properly (re)opened and
20247: # appended to by config.status. When coming back to configure, we
20248: # need to make the FD available again.
20249: if test "$no_create" != yes; then
20250: ac_cs_success=:
20251: ac_config_status_args=
20252: test "$silent" = yes &&
20253: ac_config_status_args="$ac_config_status_args --quiet"
20254: exec 5>/dev/null
20255: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20256: exec 5>>config.log
20257: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20258: # would make configure fail if this is the last instruction.
1.11 moko 20259: $ac_cs_success || { (exit 1); exit 1; }
1.1 misha 20260: fi
20261:
20262: #
20263: # CONFIG_SUBDIRS section.
20264: #
20265: if test "$no_recursion" != yes; then
20266:
1.11 moko 20267: # Remove --cache-file and --srcdir arguments so they do not pile up.
1.1 misha 20268: ac_sub_configure_args=
20269: ac_prev=
1.11 moko 20270: for ac_arg in $ac_configure_args; do
1.1 misha 20271: if test -n "$ac_prev"; then
20272: ac_prev=
20273: continue
20274: fi
20275: case $ac_arg in
20276: -cache-file | --cache-file | --cache-fil | --cache-fi \
20277: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20278: ac_prev=cache_file ;;
20279: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20280: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20281: | --c=*)
20282: ;;
20283: --config-cache | -C)
20284: ;;
20285: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20286: ac_prev=srcdir ;;
20287: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20288: ;;
20289: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20290: ac_prev=prefix ;;
20291: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20292: ;;
1.11 moko 20293: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1.1 misha 20294: esac
20295: done
20296:
20297: # Always prepend --prefix to ensure using the same prefix
20298: # in subdir configurations.
1.11 moko 20299: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
1.1 misha 20300:
20301: ac_popdir=`pwd`
20302: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20303:
20304: # Do not complain, so a configure script can configure whichever
20305: # parts of a large source tree are present.
1.11 moko 20306: test -d $srcdir/$ac_dir || continue
20307:
20308: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20309: echo "$as_me: configuring in $ac_dir" >&6;}
20310: { if $as_mkdir_p; then
20311: mkdir -p "$ac_dir"
20312: else
20313: as_dir="$ac_dir"
20314: as_dirs=
20315: while test ! -d "$as_dir"; do
20316: as_dirs="$as_dir $as_dirs"
20317: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20318: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319: X"$as_dir" : 'X\(//\)[^/]' \| \
20320: X"$as_dir" : 'X\(//\)$' \| \
20321: X"$as_dir" : 'X\(/\)' \| \
20322: . : '\(.\)' 2>/dev/null ||
20323: echo X"$as_dir" |
20324: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326: /^X\(\/\/\)$/{ s//\1/; q; }
20327: /^X\(\/\).*/{ s//\1/; q; }
20328: s/.*/./; q'`
20329: done
20330: test ! -n "$as_dirs" || mkdir $as_dirs
20331: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20332: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20333: { (exit 1); exit 1; }; }; }
1.1 misha 20334:
20335: ac_builddir=.
20336:
1.11 moko 20337: if test "$ac_dir" != .; then
20338: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20339: # A "../" for each directory in $ac_dir_suffix.
20340: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20341: else
20342: ac_dir_suffix= ac_top_builddir=
20343: fi
1.1 misha 20344:
20345: case $srcdir in
1.11 moko 20346: .) # No --srcdir option. We are building in place.
1.1 misha 20347: ac_srcdir=.
1.11 moko 20348: if test -z "$ac_top_builddir"; then
20349: ac_top_srcdir=.
20350: else
20351: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20352: fi ;;
20353: [\\/]* | ?:[\\/]* ) # Absolute path.
1.1 misha 20354: ac_srcdir=$srcdir$ac_dir_suffix;
1.11 moko 20355: ac_top_srcdir=$srcdir ;;
20356: *) # Relative path.
20357: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20358: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20359: esac
20360:
20361: # Do not use `cd foo && pwd` to compute absolute paths, because
20362: # the directories may not exist.
20363: case `pwd` in
20364: .) ac_abs_builddir="$ac_dir";;
20365: *)
20366: case "$ac_dir" in
20367: .) ac_abs_builddir=`pwd`;;
20368: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20369: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20370: esac;;
20371: esac
20372: case $ac_abs_builddir in
20373: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20374: *)
20375: case ${ac_top_builddir}. in
20376: .) ac_abs_top_builddir=$ac_abs_builddir;;
20377: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20378: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20379: esac;;
20380: esac
20381: case $ac_abs_builddir in
20382: .) ac_abs_srcdir=$ac_srcdir;;
20383: *)
20384: case $ac_srcdir in
20385: .) ac_abs_srcdir=$ac_abs_builddir;;
20386: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20387: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20388: esac;;
20389: esac
20390: case $ac_abs_builddir in
20391: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20392: *)
20393: case $ac_top_srcdir in
20394: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20395: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20396: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20397: esac;;
1.1 misha 20398: esac
20399:
20400:
1.11 moko 20401: cd $ac_dir
1.1 misha 20402:
20403: # Check for guested configure; otherwise get Cygnus style configure.
1.11 moko 20404: if test -f $ac_srcdir/configure.gnu; then
20405: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20406: elif test -f $ac_srcdir/configure; then
20407: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20408: elif test -f $ac_srcdir/configure.in; then
20409: ac_sub_configure=$ac_configure
1.1 misha 20410: else
1.11 moko 20411: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20412: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 20413: ac_sub_configure=
20414: fi
20415:
20416: # The recursion is here.
20417: if test -n "$ac_sub_configure"; then
20418: # Make the cache file name correct relative to the subdirectory.
20419: case $cache_file in
20420: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.11 moko 20421: *) # Relative path.
20422: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 misha 20423: esac
20424:
1.11 moko 20425: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20426: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 20427: # The eval makes quoting arguments work.
1.11 moko 20428: eval $ac_sub_configure $ac_sub_configure_args \
20429: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20430: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20431: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20432: { (exit 1); exit 1; }; }
1.1 misha 20433: fi
20434:
1.11 moko 20435: cd $ac_popdir
1.1 misha 20436: done
20437: fi
20438:
E-mail: