Annotation of sql/oracle/configure, revision 1.30
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.25 moko 3: # Generated by GNU Autoconf 2.59 for parser3 10.2.
1.1 parser 4: #
1.18 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 parser 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.11 paf 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
11:
12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.18 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.11 paf 23:
24: # Support unset when possible.
1.18 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.11 paf 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.18 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.11 paf 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.18 paf 221: test -d ./-p && rmdir ./-p
1.11 paf 222: as_mkdir_p=false
223: fi
224:
225: as_executable_p="test -f"
226:
227: # Sed expression to map a string onto a valid CPP name.
1.18 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.18 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.11 paf 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
241: $as_unset CDPATH
242:
1.25 moko 243: lt_ltdl_dir='libltdl'
1.11 paf 244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.25 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.11 paf 248:
249:
250: # Name of the host.
251: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
252: # so uname gets run too.
253: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.1 parser 254:
1.11 paf 255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.11 paf 261: ac_config_libobj_dir=.
262: cross_compiling=no
263: subdirs=
264: MFLAGS=
265: MAKEFLAGS=
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}
272:
273: # Identity of this package.
1.25 moko 274: PACKAGE_NAME='parser3'
275: PACKAGE_TARNAME='parser3'
276: PACKAGE_VERSION='10.2'
277: PACKAGE_STRING='parser3 10.2'
278: PACKAGE_BUGREPORT=''
1.11 paf 279:
280: ac_unique_file="parser3oracle.C"
281: # Factoring default headers for most tests.
282: ac_includes_default="\
283: #include <stdio.h>
284: #if HAVE_SYS_TYPES_H
285: # include <sys/types.h>
286: #endif
287: #if HAVE_SYS_STAT_H
288: # include <sys/stat.h>
289: #endif
290: #if STDC_HEADERS
291: # include <stdlib.h>
292: # include <stddef.h>
293: #else
294: # if HAVE_STDLIB_H
295: # include <stdlib.h>
296: # endif
297: #endif
298: #if HAVE_STRING_H
299: # if !STDC_HEADERS && HAVE_MEMORY_H
300: # include <memory.h>
301: # endif
302: # include <string.h>
303: #endif
304: #if HAVE_STRINGS_H
305: # include <strings.h>
306: #endif
307: #if HAVE_INTTYPES_H
308: # include <inttypes.h>
309: #else
310: # if HAVE_STDINT_H
311: # include <stdint.h>
312: # endif
313: #endif
314: #if HAVE_UNISTD_H
315: # include <unistd.h>
316: #endif"
317:
318: ac_subdirs_all="$ac_subdirs_all libltdl"
1.29 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 ORACLE_OCI_INC ORACLE_PUBLIC_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.11 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.11 paf 323: ac_init_help=
324: ac_init_version=false
1.1 parser 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.11 paf 327: cache_file=/dev/null
1.1 parser 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
1.11 paf 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.
1.1 parser 347: bindir='${exec_prefix}/bin'
348: sbindir='${exec_prefix}/sbin'
349: libexecdir='${exec_prefix}/libexec'
350: datadir='${prefix}/share'
351: sysconfdir='${prefix}/etc'
352: sharedstatedir='${prefix}/com'
353: localstatedir='${prefix}/var'
354: libdir='${exec_prefix}/lib'
355: includedir='${prefix}/include'
356: oldincludedir='/usr/include'
357: infodir='${prefix}/info'
358: mandir='${prefix}/man'
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
365: eval "$ac_prev=\$ac_option"
366: ac_prev=
367: continue
368: fi
369:
1.11 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 parser 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.11 paf 374: case $ac_option in
1.1 parser 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.11 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.11 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.11 paf 384: build_alias=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 parser 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.11 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.11 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.11 paf 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 parser 410:
411: -enable-* | --enable-*)
1.11 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.11 paf 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"`;;
1.1 parser 420: *) ac_optarg=yes ;;
421: esac
1.11 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 parser 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=*)
1.11 paf 431: exec_prefix=$ac_optarg ;;
1.1 parser 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.11 paf 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 ;;
1.1 parser 443:
444: -host | --host | --hos | --ho)
1.11 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.11 paf 447: host_alias=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 454: includedir=$ac_optarg ;;
1.1 parser 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.11 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.11 paf 464: libdir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 471: libexecdir=$ac_optarg ;;
1.1 parser 472:
473: -localstatedir | --localstatedir | --localstatedi | --localstated \
474: | --localstate | --localstat | --localsta | --localst \
475: | --locals | --local | --loca | --loc | --lo)
476: ac_prev=localstatedir ;;
477: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
478: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
479: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.11 paf 480: localstatedir=$ac_optarg ;;
1.1 parser 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.11 paf 485: mandir=$ac_optarg ;;
1.1 parser 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 \
1.11 paf 492: | --no-cr | --no-c | -n)
1.1 parser 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=*)
1.11 paf 506: oldincludedir=$ac_optarg ;;
1.1 parser 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.11 paf 511: prefix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 518: program_prefix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 525: program_suffix=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 542: program_transform_name=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 552: sbindir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.11 paf 568: site=$ac_optarg ;;
1.1 parser 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.11 paf 573: srcdir=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.11 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.11 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.11 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.11 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.11 paf 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; }; }
1.1 parser 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.11 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 parser 602: *) ac_optarg=yes ;;
603: esac
1.11 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.11 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.11 paf 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 parser 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=*)
1.11 paf 624: x_includes=$ac_optarg ;;
1.1 parser 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=*)
1.11 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.11 paf 633: -*) { echo "$as_me: error: unrecognized option: $ac_option
634: Try \`$0 --help' for more information." >&2
635: { (exit 1); exit 1; }; }
1.1 parser 636: ;;
637:
1.11 paf 638: *=*)
639: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
640: # Reject names that are not valid shell variable names.
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'"
646: export $ac_envvar ;;
647:
1.1 parser 648: *)
1.11 paf 649: # FIXME: should be removed in autoconf 3.0.
650: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
651: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
652: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
653: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 parser 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.11 paf 660: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
661: { echo "$as_me: error: missing argument to $ac_option" >&2
662: { (exit 1); exit 1; }; }
1.1 parser 663: fi
664:
1.11 paf 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; }; };;
673: esac
674: done
1.1 parser 675:
1.11 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.18 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.11 paf 680: eval ac_val=$`echo $ac_var`
681: case $ac_val in
682: [\\/$]* | ?:[\\/]* ) ;;
683: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
684: { (exit 1); exit 1; }; };;
1.1 parser 685: esac
686: done
687:
1.11 paf 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
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
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-
1.1 parser 708:
1.11 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 parser 710:
711:
712: # Find the source files, if location was not specified.
713: if test -z "$srcdir"; then
714: ac_srcdir_defaulted=yes
715: # Try the directory containing this script, then its parent.
1.11 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.11 paf 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 parser 728: srcdir=$ac_confdir
729: if test ! -r $srcdir/$ac_unique_file; then
730: srcdir=..
731: fi
732: else
733: ac_srcdir_defaulted=no
734: fi
735: if test ! -r $srcdir/$ac_unique_file; then
736: if test "$ac_srcdir_defaulted" = yes; then
1.11 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 parser 739: else
1.11 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 parser 742: fi
743: fi
1.11 paf 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
1.15 paf 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
1.25 moko 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.11 paf 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.25 moko 800: \`configure' configures parser3 10.2 to adapt to many kinds of systems.
1.11 paf 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
814: -q, --quiet, --silent do not print \`checking...' messages
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:
820: _ACEOF
821:
822: cat <<_ACEOF
823: Installation directories:
824: --prefix=PREFIX install architecture-independent files in PREFIX
1.18 paf 825: [$ac_default_prefix]
1.11 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.18 paf 827: [PREFIX]
1.11 paf 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:
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]
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.25 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3 10.2:";;
867: esac
1.11 paf 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]
1.18 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.25 moko 875: --enable-shared[=PKGS]
876: build shared libraries [default=yes]
877: --enable-static[=PKGS]
878: build static libraries [default=yes]
879: --enable-fast-install[=PKGS]
880: optimize for fast installation [default=yes]
1.11 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.25 moko 882: --enable-ltdl-install install libltdl
1.11 paf 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-oracleoci-inc=DIR DIR is the Oracle OCI includes directory
888: --with-oraclepublic-inc=DIR DIR is the Oracle public includes directory
1.25 moko 889: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
890: both]
891: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
892: --with-sysroot=DIR Search for dependent libraries within DIR
893: (or the compiler's sysroot if not specified).
894: --with-included-ltdl use the GNU ltdl sources included here
895: --with-ltdl-include=DIR use the ltdl headers installed in DIR
896: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.11 paf 897:
898: Some influential environment variables:
899: CXX C++ compiler command
900: CXXFLAGS C++ compiler flags
901: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902: nonstandard directory <lib dir>
903: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904: headers in a nonstandard directory <include dir>
905: CC C compiler command
906: CFLAGS C compiler flags
1.15 paf 907: CPP C preprocessor
1.25 moko 908: CXXCPP C++ preprocessor
1.11 paf 909:
910: Use these variables to override the choices made by `configure' or to help
911: it to find libraries and programs with nonstandard names/locations.
912:
913: _ACEOF
914: fi
915:
916: if test "$ac_init_help" = "recursive"; then
917: # If there are subdirs, report their specific --help.
918: ac_popdir=`pwd`
919: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920: test -d $ac_dir || continue
921: ac_builddir=.
922:
923: if test "$ac_dir" != .; then
924: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925: # A "../" for each directory in $ac_dir_suffix.
926: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927: else
928: ac_dir_suffix= ac_top_builddir=
929: fi
930:
931: case $srcdir in
932: .) # No --srcdir option. We are building in place.
933: ac_srcdir=.
934: if test -z "$ac_top_builddir"; then
935: ac_top_srcdir=.
936: else
937: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938: fi ;;
939: [\\/]* | ?:[\\/]* ) # Absolute path.
940: ac_srcdir=$srcdir$ac_dir_suffix;
941: ac_top_srcdir=$srcdir ;;
942: *) # Relative path.
943: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944: ac_top_srcdir=$ac_top_builddir$srcdir ;;
945: esac
1.18 paf 946:
947: # Do not use `cd foo && pwd` to compute absolute paths, because
948: # the directories may not exist.
949: case `pwd` in
950: .) ac_abs_builddir="$ac_dir";;
951: *)
952: case "$ac_dir" in
953: .) ac_abs_builddir=`pwd`;;
954: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955: *) ac_abs_builddir=`pwd`/"$ac_dir";;
956: esac;;
957: esac
958: case $ac_abs_builddir in
959: .) ac_abs_top_builddir=${ac_top_builddir}.;;
960: *)
961: case ${ac_top_builddir}. in
962: .) ac_abs_top_builddir=$ac_abs_builddir;;
963: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
965: esac;;
966: esac
967: case $ac_abs_builddir in
968: .) ac_abs_srcdir=$ac_srcdir;;
969: *)
970: case $ac_srcdir in
971: .) ac_abs_srcdir=$ac_abs_builddir;;
972: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
974: esac;;
975: esac
976: case $ac_abs_builddir in
977: .) ac_abs_top_srcdir=$ac_top_srcdir;;
978: *)
979: case $ac_top_srcdir in
980: .) ac_abs_top_srcdir=$ac_abs_builddir;;
981: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
983: esac;;
984: esac
1.11 paf 985:
986: cd $ac_dir
987: # Check for guested configure; otherwise get Cygnus style configure.
988: if test -f $ac_srcdir/configure.gnu; then
989: echo
990: $SHELL $ac_srcdir/configure.gnu --help=recursive
991: elif test -f $ac_srcdir/configure; then
992: echo
993: $SHELL $ac_srcdir/configure --help=recursive
994: elif test -f $ac_srcdir/configure.ac ||
1.18 paf 995: test -f $ac_srcdir/configure.in; then
1.11 paf 996: echo
997: $ac_configure --help
998: else
999: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1000: fi
1001: cd $ac_popdir
1002: done
1003: fi
1.1 parser 1004:
1.11 paf 1005: test -n "$ac_init_help" && exit 0
1006: if $ac_init_version; then
1007: cat <<\_ACEOF
1.25 moko 1008: parser3 configure 10.2
1009: generated by GNU Autoconf 2.59
1.11 paf 1010:
1.18 paf 1011: Copyright (C) 2003 Free Software Foundation, Inc.
1.11 paf 1012: This configure script is free software; the Free Software Foundation
1013: gives unlimited permission to copy, distribute and modify it.
1014: _ACEOF
1015: exit 0
1016: fi
1017: exec 5>config.log
1018: cat >&5 <<_ACEOF
1019: This file contains any messages produced by compilers while
1020: running configure, to aid debugging if configure makes a mistake.
1021:
1.25 moko 1022: It was created by parser3 $as_me 10.2, which was
1.18 paf 1023: generated by GNU Autoconf 2.59. Invocation command line was
1.11 paf 1024:
1025: $ $0 $@
1026:
1027: _ACEOF
1028: {
1029: cat <<_ASUNAME
1030: ## --------- ##
1031: ## Platform. ##
1032: ## --------- ##
1033:
1034: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039:
1040: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042:
1043: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050:
1051: _ASUNAME
1052:
1053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054: for as_dir in $PATH
1055: do
1056: IFS=$as_save_IFS
1057: test -z "$as_dir" && as_dir=.
1058: echo "PATH: $as_dir"
1059: done
1060:
1061: } >&5
1062:
1063: cat >&5 <<_ACEOF
1064:
1065:
1066: ## ----------- ##
1067: ## Core tests. ##
1068: ## ----------- ##
1069:
1070: _ACEOF
1071:
1072:
1073: # Keep a trace of the command line.
1074: # Strip out --no-create and --no-recursion so they do not pile up.
1075: # Strip out --silent because we don't want to record it for future runs.
1076: # Also quote any args containing shell meta-characters.
1077: # Make two passes to allow for proper duplicate-argument suppression.
1078: ac_configure_args=
1079: ac_configure_args0=
1080: ac_configure_args1=
1081: ac_sep=
1082: ac_must_keep_next=false
1083: for ac_pass in 1 2
1084: do
1085: for ac_arg
1086: do
1087: case $ac_arg in
1088: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090: | -silent | --silent | --silen | --sile | --sil)
1091: continue ;;
1092: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094: esac
1095: case $ac_pass in
1096: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097: 2)
1098: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099: if test $ac_must_keep_next = true; then
1.18 paf 1100: ac_must_keep_next=false # Got value, back to normal.
1.11 paf 1101: else
1.18 paf 1102: case $ac_arg in
1103: *=* | --config-cache | -C | -disable-* | --disable-* \
1104: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106: | -with-* | --with-* | -without-* | --without-* | --x)
1107: case "$ac_configure_args0 " in
1108: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109: esac
1110: ;;
1111: -* ) ac_must_keep_next=true ;;
1112: esac
1.11 paf 1113: fi
1114: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115: # Get rid of the leading space.
1116: ac_sep=" "
1117: ;;
1118: esac
1119: done
1120: done
1121: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123:
1124: # When interrupted or exit'd, cleanup temporary files, and complete
1125: # config.log. We remove comments because anyway the quotes in there
1126: # would cause problems or look ugly.
1127: # WARNING: Be sure not to use single quotes in there, as some shells,
1128: # such as our DU 5.0 friend, will then `close' the trap.
1129: trap 'exit_status=$?
1130: # Save into config.log some information that might help in debugging.
1131: {
1132: echo
1133:
1134: cat <<\_ASBOX
1135: ## ---------------- ##
1136: ## Cache variables. ##
1137: ## ---------------- ##
1138: _ASBOX
1139: echo
1140: # The following way of writing the cache mishandles newlines in values,
1141: {
1142: (set) 2>&1 |
1143: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144: *ac_space=\ *)
1145: sed -n \
1.18 paf 1146: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.11 paf 1148: ;;
1149: *)
1150: sed -n \
1.18 paf 1151: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.11 paf 1152: ;;
1153: esac;
1154: }
1155: echo
1156:
1157: cat <<\_ASBOX
1158: ## ----------------- ##
1159: ## Output variables. ##
1160: ## ----------------- ##
1161: _ASBOX
1162: echo
1163: for ac_var in $ac_subst_vars
1164: do
1165: eval ac_val=$`echo $ac_var`
1166: echo "$ac_var='"'"'$ac_val'"'"'"
1167: done | sort
1168: echo
1169:
1170: if test -n "$ac_subst_files"; then
1171: cat <<\_ASBOX
1172: ## ------------- ##
1173: ## Output files. ##
1174: ## ------------- ##
1175: _ASBOX
1176: echo
1177: for ac_var in $ac_subst_files
1178: do
1179: eval ac_val=$`echo $ac_var`
1.18 paf 1180: echo "$ac_var='"'"'$ac_val'"'"'"
1.11 paf 1181: done | sort
1182: echo
1183: fi
1184:
1185: if test -s confdefs.h; then
1186: cat <<\_ASBOX
1187: ## ----------- ##
1188: ## confdefs.h. ##
1189: ## ----------- ##
1190: _ASBOX
1191: echo
1192: sed "/^$/d" confdefs.h | sort
1193: echo
1194: fi
1195: test "$ac_signal" != 0 &&
1196: echo "$as_me: caught signal $ac_signal"
1197: echo "$as_me: exit $exit_status"
1198: } >&5
1.18 paf 1199: rm -f core *.core &&
1.11 paf 1200: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201: exit $exit_status
1202: ' 0
1203: for ac_signal in 1 2 13 15; do
1204: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205: done
1206: ac_signal=0
1207:
1208: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209: rm -rf conftest* confdefs.h
1210: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211: echo >confdefs.h
1212:
1213: # Predefined preprocessor variables.
1214:
1215: cat >>confdefs.h <<_ACEOF
1216: #define PACKAGE_NAME "$PACKAGE_NAME"
1217: _ACEOF
1218:
1219:
1220: cat >>confdefs.h <<_ACEOF
1221: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222: _ACEOF
1223:
1224:
1225: cat >>confdefs.h <<_ACEOF
1226: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227: _ACEOF
1228:
1229:
1230: cat >>confdefs.h <<_ACEOF
1231: #define PACKAGE_STRING "$PACKAGE_STRING"
1232: _ACEOF
1233:
1234:
1235: cat >>confdefs.h <<_ACEOF
1236: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237: _ACEOF
1238:
1239:
1240: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1241: # Prefer explicitly selected file to automatically selected ones.
1242: if test -z "$CONFIG_SITE"; then
1243: if test "x$prefix" != xNONE; then
1244: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245: else
1246: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247: fi
1248: fi
1249: for ac_site_file in $CONFIG_SITE; do
1250: if test -r "$ac_site_file"; then
1.11 paf 1251: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252: echo "$as_me: loading site script $ac_site_file" >&6;}
1253: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1254: . "$ac_site_file"
1255: fi
1256: done
1257:
1258: if test -r "$cache_file"; then
1.11 paf 1259: # Some versions of bash will fail to source /dev/null (special
1260: # files actually), so we avoid doing that.
1261: if test -f "$cache_file"; then
1262: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263: echo "$as_me: loading cache $cache_file" >&6;}
1264: case $cache_file in
1265: [\\/]* | ?:[\\/]* ) . $cache_file;;
1266: *) . ./$cache_file;;
1267: esac
1268: fi
1.1 parser 1269: else
1.11 paf 1270: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271: echo "$as_me: creating cache $cache_file" >&6;}
1272: >$cache_file
1273: fi
1274:
1275: # Check that the precious variables saved in the cache have kept the same
1276: # value.
1277: ac_cache_corrupted=false
1278: for ac_var in `(set) 2>&1 |
1.18 paf 1279: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.11 paf 1280: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281: eval ac_new_set=\$ac_env_${ac_var}_set
1282: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283: eval ac_new_val="\$ac_env_${ac_var}_value"
1284: case $ac_old_set,$ac_new_set in
1285: set,)
1286: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288: ac_cache_corrupted=: ;;
1289: ,set)
1290: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292: ac_cache_corrupted=: ;;
1293: ,);;
1294: *)
1295: if test "x$ac_old_val" != "x$ac_new_val"; then
1.18 paf 1296: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.11 paf 1297: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.18 paf 1298: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.11 paf 1299: echo "$as_me: former value: $ac_old_val" >&2;}
1.18 paf 1300: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.11 paf 1301: echo "$as_me: current value: $ac_new_val" >&2;}
1.18 paf 1302: ac_cache_corrupted=:
1.11 paf 1303: fi;;
1304: esac
1305: # Pass precious variables to config.status.
1306: if test "$ac_new_set" = set; then
1307: case $ac_new_val in
1308: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310: *) ac_arg=$ac_var=$ac_new_val ;;
1311: esac
1312: case " $ac_configure_args " in
1313: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1315: esac
1316: fi
1317: done
1318: if $ac_cache_corrupted; then
1319: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1320: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1321: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1322: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323: { (exit 1); exit 1; }; }
1.1 parser 1324: fi
1325:
1326: ac_ext=c
1327: ac_cpp='$CPP $CPPFLAGS'
1.11 paf 1328: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 1331:
1332:
1.11 paf 1333:
1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1.25 moko 1350:
1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358:
1359: ac_config_headers="$ac_config_headers config_auto.h"
1360:
1361:
1.18 paf 1362: am__api_version="1.9"
1.1 parser 1363: ac_aux_dir=
1364: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365: if test -f $ac_dir/install-sh; then
1366: ac_aux_dir=$ac_dir
1367: ac_install_sh="$ac_aux_dir/install-sh -c"
1368: break
1369: elif test -f $ac_dir/install.sh; then
1370: ac_aux_dir=$ac_dir
1371: ac_install_sh="$ac_aux_dir/install.sh -c"
1372: break
1.11 paf 1373: elif test -f $ac_dir/shtool; then
1374: ac_aux_dir=$ac_dir
1375: ac_install_sh="$ac_aux_dir/shtool install -c"
1376: break
1.1 parser 1377: fi
1378: done
1379: if test -z "$ac_aux_dir"; then
1.11 paf 1380: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382: { (exit 1); exit 1; }; }
1383: fi
1384: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1387:
1388: # Find a good install program. We prefer a C program (faster),
1389: # so one script is as good as another. But avoid the broken or
1390: # incompatible versions:
1391: # SysV /etc/install, /usr/sbin/install
1392: # SunOS /usr/etc/install
1393: # IRIX /sbin/install
1394: # AIX /bin/install
1.11 paf 1395: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1396: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1397: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1398: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1399: # OS/2's system install, which has a completely different semantic
1.1 parser 1400: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1401: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1402: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1403: if test -z "$INSTALL"; then
1.11 paf 1404: if test "${ac_cv_path_install+set}" = set; then
1405: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1406: else
1.11 paf 1407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408: for as_dir in $PATH
1409: do
1410: IFS=$as_save_IFS
1411: test -z "$as_dir" && as_dir=.
1412: # Account for people who put trailing slashes in PATH elements.
1413: case $as_dir/ in
1414: ./ | .// | /cC/* | \
1415: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1416: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1417: /usr/ucb/* ) ;;
1418: *)
1419: # OSF1 and SCO ODT 3.0 have their own names for install.
1420: # Don't use installbsd from OSF since it installs stuff as root
1421: # by default.
1422: for ac_prog in ginstall scoinst install; do
1423: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1424: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1425: if test $ac_prog = install &&
1426: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427: # AIX install. It has an incompatible calling convention.
1428: :
1429: elif test $ac_prog = install &&
1430: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1431: # program-specific install script used by HP pwplus--don't use.
1432: :
1433: else
1434: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1435: break 3
1436: fi
1437: fi
1.1 parser 1438: done
1.11 paf 1439: done
1440: ;;
1441: esac
1442: done
1443:
1.1 parser 1444:
1445: fi
1446: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1447: INSTALL=$ac_cv_path_install
1.1 parser 1448: else
1449: # As a last resort, use the slow shell script. We don't cache a
1450: # path for INSTALL within a source directory, because that will
1451: # break other packages using the cache if that directory is
1452: # removed, or if the path is relative.
1.11 paf 1453: INSTALL=$ac_install_sh
1.1 parser 1454: fi
1455: fi
1.11 paf 1456: echo "$as_me:$LINENO: result: $INSTALL" >&5
1457: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1458:
1459: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1460: # It thinks the first close brace ends the variable substitution.
1461: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1462:
1.11 paf 1463: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1464:
1465: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1466:
1.11 paf 1467: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1468: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1469: # Just in case
1470: sleep 1
1.11 paf 1471: echo timestamp > conftest.file
1.1 parser 1472: # Do `set' in a subshell so we don't clobber the current shell's
1473: # arguments. Must try -L first in case configure is actually a
1474: # symlink; some systems play weird games with the mod time of symlinks
1475: # (eg FreeBSD returns the mod time of the symlink's containing
1476: # directory).
1477: if (
1.11 paf 1478: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1479: if test "$*" = "X"; then
1480: # -L didn't work.
1.11 paf 1481: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1482: fi
1.11 paf 1483: rm -f conftest.file
1484: if test "$*" != "X $srcdir/configure conftest.file" \
1485: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1486:
1487: # If neither matched, then we have a broken ls. This can happen
1488: # if, for instance, CONFIG_SHELL is bash and it inherits a
1489: # broken ls alias from the environment. This has actually
1490: # happened. Such a system could not be considered "sane".
1.11 paf 1491: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1492: alias in your environment" >&5
1493: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1494: alias in your environment" >&2;}
1495: { (exit 1); exit 1; }; }
1.1 parser 1496: fi
1497:
1.11 paf 1498: test "$2" = conftest.file
1.1 parser 1499: )
1500: then
1501: # Ok.
1502: :
1503: else
1.11 paf 1504: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1505: Check your system clock" >&5
1506: echo "$as_me: error: newly created file is older than distributed files!
1507: Check your system clock" >&2;}
1508: { (exit 1); exit 1; }; }
1.1 parser 1509: fi
1.11 paf 1510: echo "$as_me:$LINENO: result: yes" >&5
1511: echo "${ECHO_T}yes" >&6
1.1 parser 1512: test "$program_prefix" != NONE &&
1.11 paf 1513: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1514: # Use a double $ so make ignores it.
1515: test "$program_suffix" != NONE &&
1.11 paf 1516: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1517: # Double any \ or $. echo might interpret backslashes.
1518: # By default was `s,x,x', remove it if useless.
1519: cat <<\_ACEOF >conftest.sed
1520: s/[\\$]/&&/g;s/;s,x,x,$//
1521: _ACEOF
1522: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1523: rm conftest.sed
1524:
1525: # expand $ac_aux_dir to an absolute path
1526: am_aux_dir=`cd $ac_aux_dir && pwd`
1527:
1528: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1529: # Use eval to expand $SHELL
1530: if eval "$MISSING --run true"; then
1531: am_missing_run="$MISSING --run "
1532: else
1533: am_missing_run=
1534: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1535: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1536: fi
1537:
1.18 paf 1538: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1539: # We used to keeping the `.' as first argument, in order to
1540: # allow $(mkdir_p) to be used without argument. As in
1541: # $(mkdir_p) $(somedir)
1542: # where $(somedir) is conditionally defined. However this is wrong
1543: # for two reasons:
1544: # 1. if the package is installed by a user who cannot write `.'
1545: # make install will fail,
1546: # 2. the above comment should most certainly read
1547: # $(mkdir_p) $(DESTDIR)$(somedir)
1548: # so it does not work when $(somedir) is undefined and
1549: # $(DESTDIR) is not.
1550: # To support the latter case, we have to write
1551: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1552: # so the `.' trick is pointless.
1553: mkdir_p='mkdir -p --'
1554: else
1555: # On NextStep and OpenStep, the `mkdir' command does not
1556: # recognize any option. It will interpret all options as
1557: # directories to create, and then abort because `.' already
1558: # exists.
1559: for d in ./-p ./--version;
1560: do
1561: test -d $d && rmdir $d
1562: done
1563: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1564: if test -f "$ac_aux_dir/mkinstalldirs"; then
1565: mkdir_p='$(mkinstalldirs)'
1566: else
1567: mkdir_p='$(install_sh) -d'
1568: fi
1569: fi
1570:
1.11 paf 1571: for ac_prog in gawk mawk nawk awk
1572: do
1573: # Extract the first word of "$ac_prog", so it can be a program name with args.
1574: set dummy $ac_prog; ac_word=$2
1575: echo "$as_me:$LINENO: checking for $ac_word" >&5
1576: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1577: if test "${ac_cv_prog_AWK+set}" = set; then
1578: echo $ECHO_N "(cached) $ECHO_C" >&6
1579: else
1580: if test -n "$AWK"; then
1581: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1582: else
1583: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584: for as_dir in $PATH
1585: do
1586: IFS=$as_save_IFS
1587: test -z "$as_dir" && as_dir=.
1588: for ac_exec_ext in '' $ac_executable_extensions; do
1589: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1590: ac_cv_prog_AWK="$ac_prog"
1591: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592: break 2
1593: fi
1594: done
1595: done
1596:
1597: fi
1598: fi
1599: AWK=$ac_cv_prog_AWK
1600: if test -n "$AWK"; then
1601: echo "$as_me:$LINENO: result: $AWK" >&5
1602: echo "${ECHO_T}$AWK" >&6
1603: else
1604: echo "$as_me:$LINENO: result: no" >&5
1605: echo "${ECHO_T}no" >&6
1606: fi
1.1 parser 1607:
1.11 paf 1608: test -n "$AWK" && break
1609: done
1.1 parser 1610:
1.11 paf 1611: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1612: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.18 paf 1613: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.11 paf 1614: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1615: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1616: else
1.11 paf 1617: cat >conftest.make <<\_ACEOF
1.1 parser 1618: all:
1.11 paf 1619: @echo 'ac_maketemp="$(MAKE)"'
1620: _ACEOF
1.1 parser 1621: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.11 paf 1622: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1623: if test -n "$ac_maketemp"; then
1624: eval ac_cv_prog_make_${ac_make}_set=yes
1625: else
1626: eval ac_cv_prog_make_${ac_make}_set=no
1627: fi
1.11 paf 1628: rm -f conftest.make
1.1 parser 1629: fi
1630: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.11 paf 1631: echo "$as_me:$LINENO: result: yes" >&5
1632: echo "${ECHO_T}yes" >&6
1.1 parser 1633: SET_MAKE=
1634: else
1.11 paf 1635: echo "$as_me:$LINENO: result: no" >&5
1636: echo "${ECHO_T}no" >&6
1.1 parser 1637: SET_MAKE="MAKE=${MAKE-make}"
1638: fi
1639:
1.18 paf 1640: rm -rf .tst 2>/dev/null
1641: mkdir .tst 2>/dev/null
1642: if test -d .tst; then
1643: am__leading_dot=.
1644: else
1645: am__leading_dot=_
1646: fi
1647: rmdir .tst 2>/dev/null
1648:
1649: # test to see if srcdir already configured
1.11 paf 1650: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1651: test -f $srcdir/config.status; then
1652: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1653: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1654: { (exit 1); exit 1; }; }
1655: fi
1656:
1657: # test whether we have cygpath
1658: if test -z "$CYGPATH_W"; then
1659: if (cygpath --version) >/dev/null 2>/dev/null; then
1660: CYGPATH_W='cygpath -w'
1661: else
1662: CYGPATH_W=echo
1663: fi
1664: fi
1665:
1666:
1667: # Define the identity of the package.
1.25 moko 1668: PACKAGE='parser3'
1669: VERSION='10.2'
1.1 parser 1670:
1671:
1.25 moko 1672: cat >>confdefs.h <<_ACEOF
1673: #define PACKAGE "$PACKAGE"
1674: _ACEOF
1675:
1676:
1677: cat >>confdefs.h <<_ACEOF
1678: #define VERSION "$VERSION"
1679: _ACEOF
1680:
1.11 paf 1681: # Some tools Automake needs.
1682:
1683: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1684:
1685:
1686: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1687:
1688:
1689: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1690:
1691:
1692: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1693:
1694:
1695: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1696:
1.11 paf 1697: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1698:
1.11 paf 1699: # Installed binaries are usually stripped using `strip' when the user
1700: # run `make install-strip'. However `strip' might not be the right
1701: # tool to use in cross-compilation environments, therefore Automake
1702: # will honor the `STRIP' environment variable to overrule this program.
1703: if test "$cross_compiling" != no; then
1704: if test -n "$ac_tool_prefix"; then
1705: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1706: set dummy ${ac_tool_prefix}strip; ac_word=$2
1707: echo "$as_me:$LINENO: checking for $ac_word" >&5
1708: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709: if test "${ac_cv_prog_STRIP+set}" = set; then
1710: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1711: else
1.11 paf 1712: if test -n "$STRIP"; then
1713: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1714: else
1715: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716: for as_dir in $PATH
1717: do
1718: IFS=$as_save_IFS
1719: test -z "$as_dir" && as_dir=.
1720: for ac_exec_ext in '' $ac_executable_extensions; do
1721: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1723: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724: break 2
1725: fi
1726: done
1727: done
1728:
1729: fi
1730: fi
1731: STRIP=$ac_cv_prog_STRIP
1732: if test -n "$STRIP"; then
1733: echo "$as_me:$LINENO: result: $STRIP" >&5
1734: echo "${ECHO_T}$STRIP" >&6
1735: else
1736: echo "$as_me:$LINENO: result: no" >&5
1737: echo "${ECHO_T}no" >&6
1.1 parser 1738: fi
1739:
1.11 paf 1740: fi
1741: if test -z "$ac_cv_prog_STRIP"; then
1742: ac_ct_STRIP=$STRIP
1743: # Extract the first word of "strip", so it can be a program name with args.
1744: set dummy strip; ac_word=$2
1745: echo "$as_me:$LINENO: checking for $ac_word" >&5
1746: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1748: echo $ECHO_N "(cached) $ECHO_C" >&6
1749: else
1750: if test -n "$ac_ct_STRIP"; then
1751: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 1752: else
1.11 paf 1753: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754: for as_dir in $PATH
1755: do
1756: IFS=$as_save_IFS
1757: test -z "$as_dir" && as_dir=.
1758: for ac_exec_ext in '' $ac_executable_extensions; do
1759: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760: ac_cv_prog_ac_ct_STRIP="strip"
1761: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762: break 2
1763: fi
1764: done
1765: done
1766:
1767: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1768: fi
1.1 parser 1769: fi
1.11 paf 1770: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1771: if test -n "$ac_ct_STRIP"; then
1772: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1773: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1774: else
1.11 paf 1775: echo "$as_me:$LINENO: result: no" >&5
1776: echo "${ECHO_T}no" >&6
1.1 parser 1777: fi
1778:
1.11 paf 1779: STRIP=$ac_ct_STRIP
1.1 parser 1780: else
1.11 paf 1781: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1782: fi
1783:
1784: fi
1.11 paf 1785: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 parser 1786:
1.11 paf 1787: # We need awk for the "check" target. The system "awk" is bad on
1788: # some platforms.
1.18 paf 1789: # Always define AMTAR for backward compatibility.
1790:
1791: AMTAR=${AMTAR-"${am_missing_run}tar"}
1792:
1793: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1794:
1795:
1.1 parser 1796:
1797:
1798:
1799:
1800:
1.2 parser 1801: # Check whether --with-oracleoci-inc or --without-oracleoci-inc was given.
1.1 parser 1802: if test "${with_oracleoci_inc+set}" = set; then
1803: withval="$with_oracleoci_inc"
1.11 paf 1804:
1.1 parser 1805: else
1806: withval="$ORACLE_HOME/rdbms/demo"
1807:
1.11 paf 1808: fi;
1.25 moko 1809:
1.2 parser 1810: ORACLE_OCI_INC=$withval
1.1 parser 1811:
1812:
1.2 parser 1813: if test \! -f "$ORACLE_OCI_INC/oci.h"; then
1.11 paf 1814: { { echo "$as_me:$LINENO: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&5
1815: echo "$as_me: error: $ORACLE_OCI_INC does not seem to be valid Oracle OCI includes directory" >&2;}
1816: { (exit 1); exit 1; }; }
1.2 parser 1817: fi
1818:
1819:
1820: # Check whether --with-oraclepublic-inc or --without-oraclepublic-inc was given.
1.1 parser 1821: if test "${with_oraclepublic_inc+set}" = set; then
1822: withval="$with_oraclepublic_inc"
1.11 paf 1823:
1.1 parser 1824: else
1825: withval="$ORACLE_HOME/network/public"
1826:
1.11 paf 1827: fi;
1.25 moko 1828:
1.2 parser 1829: ORACLE_PUBLIC_INC=$withval
1.1 parser 1830:
1831:
1.2 parser 1832: if test \! -f "$ORACLE_PUBLIC_INC/nzt.h"; then
1.11 paf 1833: { { echo "$as_me:$LINENO: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&5
1834: echo "$as_me: error: $ORACLE_PUBLIC_INC does not seem to be valid Oracle public includes directory" >&2;}
1835: { (exit 1); exit 1; }; }
1.2 parser 1836: fi
1837:
1.1 parser 1838: # Find a good install program. We prefer a C program (faster),
1839: # so one script is as good as another. But avoid the broken or
1840: # incompatible versions:
1841: # SysV /etc/install, /usr/sbin/install
1842: # SunOS /usr/etc/install
1843: # IRIX /sbin/install
1844: # AIX /bin/install
1.11 paf 1845: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1846: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1847: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1848: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.18 paf 1849: # OS/2's system install, which has a completely different semantic
1.1 parser 1850: # ./install, which can be erroneously created by make from ./install.sh.
1.11 paf 1851: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1852: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1853: if test -z "$INSTALL"; then
1.11 paf 1854: if test "${ac_cv_path_install+set}" = set; then
1855: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1856: else
1.11 paf 1857: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858: for as_dir in $PATH
1859: do
1860: IFS=$as_save_IFS
1861: test -z "$as_dir" && as_dir=.
1862: # Account for people who put trailing slashes in PATH elements.
1863: case $as_dir/ in
1864: ./ | .// | /cC/* | \
1865: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.18 paf 1866: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.11 paf 1867: /usr/ucb/* ) ;;
1868: *)
1869: # OSF1 and SCO ODT 3.0 have their own names for install.
1870: # Don't use installbsd from OSF since it installs stuff as root
1871: # by default.
1872: for ac_prog in ginstall scoinst install; do
1873: for ac_exec_ext in '' $ac_executable_extensions; do
1.18 paf 1874: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1875: if test $ac_prog = install &&
1876: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1877: # AIX install. It has an incompatible calling convention.
1878: :
1879: elif test $ac_prog = install &&
1880: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1881: # program-specific install script used by HP pwplus--don't use.
1882: :
1883: else
1884: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1885: break 3
1886: fi
1887: fi
1.1 parser 1888: done
1.11 paf 1889: done
1890: ;;
1891: esac
1892: done
1893:
1.1 parser 1894:
1895: fi
1896: if test "${ac_cv_path_install+set}" = set; then
1.11 paf 1897: INSTALL=$ac_cv_path_install
1.1 parser 1898: else
1899: # As a last resort, use the slow shell script. We don't cache a
1900: # path for INSTALL within a source directory, because that will
1901: # break other packages using the cache if that directory is
1902: # removed, or if the path is relative.
1.11 paf 1903: INSTALL=$ac_install_sh
1.1 parser 1904: fi
1905: fi
1.11 paf 1906: echo "$as_me:$LINENO: result: $INSTALL" >&5
1907: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1908:
1909: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1910: # It thinks the first close brace ends the variable substitution.
1911: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1912:
1.11 paf 1913: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1914:
1915: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1916:
1.11 paf 1917: ac_ext=cc
1.1 parser 1918: ac_cpp='$CXXCPP $CPPFLAGS'
1.11 paf 1919: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1922: if test -n "$ac_tool_prefix"; then
1923: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1924: do
1925: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927: echo "$as_me:$LINENO: checking for $ac_word" >&5
1928: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929: if test "${ac_cv_prog_CXX+set}" = set; then
1930: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1931: else
1932: if test -n "$CXX"; then
1933: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1934: else
1.11 paf 1935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936: for as_dir in $PATH
1937: do
1938: IFS=$as_save_IFS
1939: test -z "$as_dir" && as_dir=.
1940: for ac_exec_ext in '' $ac_executable_extensions; do
1941: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1943: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944: break 2
1945: fi
1946: done
1947: done
1948:
1.1 parser 1949: fi
1950: fi
1.11 paf 1951: CXX=$ac_cv_prog_CXX
1.1 parser 1952: if test -n "$CXX"; then
1.11 paf 1953: echo "$as_me:$LINENO: result: $CXX" >&5
1954: echo "${ECHO_T}$CXX" >&6
1.1 parser 1955: else
1.11 paf 1956: echo "$as_me:$LINENO: result: no" >&5
1957: echo "${ECHO_T}no" >&6
1.1 parser 1958: fi
1959:
1.11 paf 1960: test -n "$CXX" && break
1961: done
1962: fi
1963: if test -z "$CXX"; then
1964: ac_ct_CXX=$CXX
1965: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1966: do
1967: # Extract the first word of "$ac_prog", so it can be a program name with args.
1968: set dummy $ac_prog; ac_word=$2
1969: echo "$as_me:$LINENO: checking for $ac_word" >&5
1970: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1972: echo $ECHO_N "(cached) $ECHO_C" >&6
1973: else
1974: if test -n "$ac_ct_CXX"; then
1975: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1976: else
1977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978: for as_dir in $PATH
1979: do
1980: IFS=$as_save_IFS
1981: test -z "$as_dir" && as_dir=.
1982: for ac_exec_ext in '' $ac_executable_extensions; do
1983: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984: ac_cv_prog_ac_ct_CXX="$ac_prog"
1985: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986: break 2
1987: fi
1988: done
1.1 parser 1989: done
1990:
1.11 paf 1991: fi
1992: fi
1993: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1994: if test -n "$ac_ct_CXX"; then
1995: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1996: echo "${ECHO_T}$ac_ct_CXX" >&6
1997: else
1998: echo "$as_me:$LINENO: result: no" >&5
1999: echo "${ECHO_T}no" >&6
2000: fi
1.1 parser 2001:
1.11 paf 2002: test -n "$ac_ct_CXX" && break
2003: done
2004: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2005:
1.11 paf 2006: CXX=$ac_ct_CXX
2007: fi
1.1 parser 2008:
2009:
1.11 paf 2010: # Provide some information about the compiler.
2011: echo "$as_me:$LINENO:" \
2012: "checking for C++ compiler version" >&5
2013: ac_compiler=`set X $ac_compile; echo $2`
2014: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2015: (eval $ac_compiler --version </dev/null >&5) 2>&5
2016: ac_status=$?
2017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018: (exit $ac_status); }
2019: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2020: (eval $ac_compiler -v </dev/null >&5) 2>&5
2021: ac_status=$?
2022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023: (exit $ac_status); }
2024: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2025: (eval $ac_compiler -V </dev/null >&5) 2>&5
2026: ac_status=$?
2027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028: (exit $ac_status); }
2029:
2030: cat >conftest.$ac_ext <<_ACEOF
2031: /* confdefs.h. */
2032: _ACEOF
2033: cat confdefs.h >>conftest.$ac_ext
2034: cat >>conftest.$ac_ext <<_ACEOF
2035: /* end confdefs.h. */
2036:
2037: int
2038: main ()
2039: {
2040:
2041: ;
2042: return 0;
2043: }
2044: _ACEOF
2045: ac_clean_files_save=$ac_clean_files
2046: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2047: # Try to create an executable without -o first, disregard a.out.
2048: # It will help us diagnose broken compilers, and finding out an intuition
2049: # of exeext.
1.18 paf 2050: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2051: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.11 paf 2052: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2053: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2054: (eval $ac_link_default) 2>&5
2055: ac_status=$?
2056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057: (exit $ac_status); }; then
2058: # Find the output, starting from the most likely. This scheme is
2059: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2060: # resort.
2061:
2062: # Be careful to initialize this variable, since it used to be cached.
2063: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2064: ac_cv_exeext=
2065: # b.out is created by i960 compilers.
2066: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2067: do
2068: test -f "$ac_file" || continue
2069: case $ac_file in
2070: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.18 paf 2071: ;;
1.11 paf 2072: conftest.$ac_ext )
1.18 paf 2073: # This is the source file.
2074: ;;
1.11 paf 2075: [ab].out )
1.18 paf 2076: # We found the default executable, but exeext='' is most
2077: # certainly right.
2078: break;;
1.11 paf 2079: *.* )
1.18 paf 2080: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081: # FIXME: I believe we export ac_cv_exeext for Libtool,
2082: # but it would be cool to find out if it's true. Does anybody
2083: # maintain Libtool? --akim.
2084: export ac_cv_exeext
2085: break;;
1.11 paf 2086: * )
1.18 paf 2087: break;;
1.11 paf 2088: esac
2089: done
2090: else
2091: echo "$as_me: failed program was:" >&5
2092: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2093:
1.11 paf 2094: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2095: See \`config.log' for more details." >&5
2096: echo "$as_me: error: C++ compiler cannot create executables
2097: See \`config.log' for more details." >&2;}
2098: { (exit 77); exit 77; }; }
2099: fi
2100:
2101: ac_exeext=$ac_cv_exeext
2102: echo "$as_me:$LINENO: result: $ac_file" >&5
2103: echo "${ECHO_T}$ac_file" >&6
2104:
2105: # Check the compiler produces executables we can run. If not, either
2106: # the compiler is broken, or we cross compile.
2107: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2108: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2109: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2110: # If not cross compiling, check that we can run a simple program.
2111: if test "$cross_compiling" != yes; then
2112: if { ac_try='./$ac_file'
2113: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114: (eval $ac_try) 2>&5
2115: ac_status=$?
2116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117: (exit $ac_status); }; }; then
2118: cross_compiling=no
2119: else
2120: if test "$cross_compiling" = maybe; then
2121: cross_compiling=yes
2122: else
2123: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2124: If you meant to cross compile, use \`--host'.
2125: See \`config.log' for more details." >&5
2126: echo "$as_me: error: cannot run C++ compiled programs.
2127: If you meant to cross compile, use \`--host'.
2128: See \`config.log' for more details." >&2;}
2129: { (exit 1); exit 1; }; }
2130: fi
1.1 parser 2131: fi
1.11 paf 2132: fi
2133: echo "$as_me:$LINENO: result: yes" >&5
2134: echo "${ECHO_T}yes" >&6
2135:
2136: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2137: ac_clean_files=$ac_clean_files_save
2138: # Check the compiler produces executables we can run. If not, either
2139: # the compiler is broken, or we cross compile.
2140: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2141: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2142: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2143: echo "${ECHO_T}$cross_compiling" >&6
2144:
2145: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2146: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2147: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2148: (eval $ac_link) 2>&5
2149: ac_status=$?
2150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151: (exit $ac_status); }; then
2152: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2153: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2154: # work properly (i.e., refer to `conftest.exe'), while it won't with
2155: # `rm'.
2156: for ac_file in conftest.exe conftest conftest.*; do
2157: test -f "$ac_file" || continue
2158: case $ac_file in
2159: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2160: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.18 paf 2161: export ac_cv_exeext
2162: break;;
1.11 paf 2163: * ) break;;
2164: esac
2165: done
1.1 parser 2166: else
1.11 paf 2167: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2168: See \`config.log' for more details." >&5
2169: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2170: See \`config.log' for more details." >&2;}
2171: { (exit 1); exit 1; }; }
2172: fi
2173:
2174: rm -f conftest$ac_cv_exeext
2175: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2176: echo "${ECHO_T}$ac_cv_exeext" >&6
2177:
2178: rm -f conftest.$ac_ext
2179: EXEEXT=$ac_cv_exeext
2180: ac_exeext=$EXEEXT
2181: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2182: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2183: if test "${ac_cv_objext+set}" = set; then
2184: echo $ECHO_N "(cached) $ECHO_C" >&6
2185: else
2186: cat >conftest.$ac_ext <<_ACEOF
2187: /* confdefs.h. */
2188: _ACEOF
2189: cat confdefs.h >>conftest.$ac_ext
2190: cat >>conftest.$ac_ext <<_ACEOF
2191: /* end confdefs.h. */
2192:
2193: int
2194: main ()
2195: {
2196:
2197: ;
2198: return 0;
2199: }
2200: _ACEOF
2201: rm -f conftest.o conftest.obj
2202: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2203: (eval $ac_compile) 2>&5
2204: ac_status=$?
2205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206: (exit $ac_status); }; then
2207: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2208: case $ac_file in
2209: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2210: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2211: break;;
2212: esac
2213: done
1.1 parser 2214: else
1.11 paf 2215: echo "$as_me: failed program was:" >&5
2216: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2217:
1.11 paf 2218: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2219: See \`config.log' for more details." >&5
2220: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2221: See \`config.log' for more details." >&2;}
2222: { (exit 1); exit 1; }; }
2223: fi
2224:
2225: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2226: fi
2227: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2228: echo "${ECHO_T}$ac_cv_objext" >&6
2229: OBJEXT=$ac_cv_objext
2230: ac_objext=$OBJEXT
2231: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2232: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2233: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2234: echo $ECHO_N "(cached) $ECHO_C" >&6
2235: else
2236: cat >conftest.$ac_ext <<_ACEOF
2237: /* confdefs.h. */
2238: _ACEOF
2239: cat confdefs.h >>conftest.$ac_ext
2240: cat >>conftest.$ac_ext <<_ACEOF
2241: /* end confdefs.h. */
2242:
2243: int
2244: main ()
2245: {
2246: #ifndef __GNUC__
2247: choke me
2248: #endif
1.1 parser 2249:
1.11 paf 2250: ;
2251: return 0;
2252: }
2253: _ACEOF
2254: rm -f conftest.$ac_objext
2255: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2256: (eval $ac_compile) 2>conftest.er1
1.11 paf 2257: ac_status=$?
1.18 paf 2258: grep -v '^ *+' conftest.er1 >conftest.err
2259: rm -f conftest.er1
2260: cat conftest.err >&5
1.11 paf 2261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262: (exit $ac_status); } &&
1.18 paf 2263: { ac_try='test -z "$ac_cxx_werror_flag"
2264: || test ! -s conftest.err'
2265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266: (eval $ac_try) 2>&5
2267: ac_status=$?
2268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269: (exit $ac_status); }; } &&
2270: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2271: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272: (eval $ac_try) 2>&5
2273: ac_status=$?
2274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275: (exit $ac_status); }; }; then
2276: ac_compiler_gnu=yes
2277: else
2278: echo "$as_me: failed program was:" >&5
2279: sed 's/^/| /' conftest.$ac_ext >&5
2280:
2281: ac_compiler_gnu=no
2282: fi
1.18 paf 2283: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2284: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2285:
2286: fi
2287: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2288: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2289: GXX=`test $ac_compiler_gnu = yes && echo yes`
2290: ac_test_CXXFLAGS=${CXXFLAGS+set}
2291: ac_save_CXXFLAGS=$CXXFLAGS
2292: CXXFLAGS="-g"
2293: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2294: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2295: if test "${ac_cv_prog_cxx_g+set}" = set; then
2296: echo $ECHO_N "(cached) $ECHO_C" >&6
2297: else
2298: cat >conftest.$ac_ext <<_ACEOF
2299: /* confdefs.h. */
2300: _ACEOF
2301: cat confdefs.h >>conftest.$ac_ext
2302: cat >>conftest.$ac_ext <<_ACEOF
2303: /* end confdefs.h. */
2304:
2305: int
2306: main ()
2307: {
2308:
2309: ;
2310: return 0;
2311: }
2312: _ACEOF
2313: rm -f conftest.$ac_objext
2314: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2315: (eval $ac_compile) 2>conftest.er1
1.11 paf 2316: ac_status=$?
1.18 paf 2317: grep -v '^ *+' conftest.er1 >conftest.err
2318: rm -f conftest.er1
2319: cat conftest.err >&5
1.11 paf 2320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321: (exit $ac_status); } &&
1.18 paf 2322: { ac_try='test -z "$ac_cxx_werror_flag"
2323: || test ! -s conftest.err'
2324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325: (eval $ac_try) 2>&5
2326: ac_status=$?
2327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328: (exit $ac_status); }; } &&
2329: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331: (eval $ac_try) 2>&5
2332: ac_status=$?
2333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334: (exit $ac_status); }; }; then
2335: ac_cv_prog_cxx_g=yes
1.1 parser 2336: else
1.11 paf 2337: echo "$as_me: failed program was:" >&5
2338: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2339:
1.11 paf 2340: ac_cv_prog_cxx_g=no
1.1 parser 2341: fi
1.18 paf 2342: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2343: fi
1.11 paf 2344: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2345: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2346: if test "$ac_test_CXXFLAGS" = set; then
1.11 paf 2347: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2348: elif test $ac_cv_prog_cxx_g = yes; then
2349: if test "$GXX" = yes; then
2350: CXXFLAGS="-g -O2"
2351: else
2352: CXXFLAGS="-g"
2353: fi
2354: else
2355: if test "$GXX" = yes; then
2356: CXXFLAGS="-O2"
2357: else
2358: CXXFLAGS=
2359: fi
2360: fi
1.11 paf 2361: for ac_declaration in \
1.18 paf 2362: '' \
1.11 paf 2363: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2364: 'extern "C" void std::exit (int); using std::exit;' \
2365: 'extern "C" void exit (int) throw ();' \
2366: 'extern "C" void exit (int);' \
2367: 'void exit (int);'
2368: do
2369: cat >conftest.$ac_ext <<_ACEOF
2370: /* confdefs.h. */
2371: _ACEOF
2372: cat confdefs.h >>conftest.$ac_ext
2373: cat >>conftest.$ac_ext <<_ACEOF
2374: /* end confdefs.h. */
1.18 paf 2375: $ac_declaration
1.11 paf 2376: #include <stdlib.h>
2377: int
2378: main ()
2379: {
2380: exit (42);
2381: ;
2382: return 0;
2383: }
2384: _ACEOF
2385: rm -f conftest.$ac_objext
2386: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2387: (eval $ac_compile) 2>conftest.er1
1.11 paf 2388: ac_status=$?
1.18 paf 2389: grep -v '^ *+' conftest.er1 >conftest.err
2390: rm -f conftest.er1
2391: cat conftest.err >&5
1.11 paf 2392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393: (exit $ac_status); } &&
1.18 paf 2394: { ac_try='test -z "$ac_cxx_werror_flag"
2395: || test ! -s conftest.err'
2396: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397: (eval $ac_try) 2>&5
2398: ac_status=$?
2399: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400: (exit $ac_status); }; } &&
2401: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2402: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403: (eval $ac_try) 2>&5
2404: ac_status=$?
2405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406: (exit $ac_status); }; }; then
2407: :
2408: else
2409: echo "$as_me: failed program was:" >&5
2410: sed 's/^/| /' conftest.$ac_ext >&5
2411:
2412: continue
2413: fi
1.18 paf 2414: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2415: cat >conftest.$ac_ext <<_ACEOF
2416: /* confdefs.h. */
2417: _ACEOF
2418: cat confdefs.h >>conftest.$ac_ext
2419: cat >>conftest.$ac_ext <<_ACEOF
2420: /* end confdefs.h. */
2421: $ac_declaration
2422: int
2423: main ()
2424: {
2425: exit (42);
2426: ;
2427: return 0;
2428: }
2429: _ACEOF
2430: rm -f conftest.$ac_objext
2431: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 2432: (eval $ac_compile) 2>conftest.er1
1.11 paf 2433: ac_status=$?
1.18 paf 2434: grep -v '^ *+' conftest.er1 >conftest.err
2435: rm -f conftest.er1
2436: cat conftest.err >&5
1.11 paf 2437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438: (exit $ac_status); } &&
1.18 paf 2439: { ac_try='test -z "$ac_cxx_werror_flag"
2440: || test ! -s conftest.err'
2441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442: (eval $ac_try) 2>&5
2443: ac_status=$?
2444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445: (exit $ac_status); }; } &&
2446: { ac_try='test -s conftest.$ac_objext'
1.11 paf 2447: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448: (eval $ac_try) 2>&5
2449: ac_status=$?
2450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451: (exit $ac_status); }; }; then
2452: break
2453: else
2454: echo "$as_me: failed program was:" >&5
2455: sed 's/^/| /' conftest.$ac_ext >&5
2456:
2457: fi
1.18 paf 2458: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 2459: done
2460: rm -f conftest*
2461: if test -n "$ac_declaration"; then
2462: echo '#ifdef __cplusplus' >>confdefs.h
2463: echo $ac_declaration >>confdefs.h
2464: echo '#endif' >>confdefs.h
2465: fi
2466:
1.15 paf 2467: ac_ext=c
2468: ac_cpp='$CPP $CPPFLAGS'
2469: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.18 paf 2472: DEPDIR="${am__leading_dot}deps"
1.11 paf 2473:
2474: ac_config_commands="$ac_config_commands depfiles"
2475:
2476:
2477: am_make=${MAKE-make}
2478: cat > confinc << 'END'
1.18 paf 2479: am__doit:
1.11 paf 2480: @echo done
1.18 paf 2481: .PHONY: am__doit
1.11 paf 2482: END
2483: # If we don't find an include directive, just comment out the code.
2484: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2485: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2486: am__include="#"
2487: am__quote=
2488: _am_result=none
2489: # First try GNU make style include.
2490: echo "include confinc" > confmf
2491: # We grep out `Entering directory' and `Leaving directory'
2492: # messages which can occur if `w' ends up in MAKEFLAGS.
2493: # In particular we don't look at `^make:' because GNU make might
2494: # be invoked under some other name (usually "gmake"), in which
2495: # case it prints its new name instead of `make'.
2496: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2497: am__include=include
2498: am__quote=
2499: _am_result=GNU
2500: fi
2501: # Now try BSD make style include.
2502: if test "$am__include" = "#"; then
2503: echo '.include "confinc"' > confmf
2504: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2505: am__include=.include
2506: am__quote="\""
2507: _am_result=BSD
2508: fi
2509: fi
2510:
2511:
2512: echo "$as_me:$LINENO: result: $_am_result" >&5
2513: echo "${ECHO_T}$_am_result" >&6
2514: rm -f confinc confmf
2515:
2516: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2517: if test "${enable_dependency_tracking+set}" = set; then
2518: enableval="$enable_dependency_tracking"
2519:
2520: fi;
2521: if test "x$enable_dependency_tracking" != xno; then
2522: am_depcomp="$ac_aux_dir/depcomp"
2523: AMDEPBACKSLASH='\'
2524: fi
2525:
2526:
2527: if test "x$enable_dependency_tracking" != xno; then
2528: AMDEP_TRUE=
2529: AMDEP_FALSE='#'
2530: else
2531: AMDEP_TRUE='#'
2532: AMDEP_FALSE=
2533: fi
2534:
2535:
2536:
2537:
2538: depcc="$CXX" am_compiler_list=
2539:
2540: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2541: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2542: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2543: echo $ECHO_N "(cached) $ECHO_C" >&6
2544: else
2545: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2546: # We make a subdir and do the tests there. Otherwise we can end up
2547: # making bogus files that we don't know about and never remove. For
2548: # instance it was reported that on HP-UX the gcc test will end up
2549: # making a dummy file named `D' -- because `-MD' means `put the output
2550: # in D'.
2551: mkdir conftest.dir
2552: # Copy depcomp to subdir because otherwise we won't find it if we're
2553: # using a relative directory.
2554: cp "$am_depcomp" conftest.dir
2555: cd conftest.dir
1.18 paf 2556: # We will build objects and dependencies in a subdirectory because
2557: # it helps to detect inapplicable dependency modes. For instance
2558: # both Tru64's cc and ICC support -MD to output dependencies as a
2559: # side effect of compilation, but ICC will put the dependencies in
2560: # the current directory while Tru64 will put them in the object
2561: # directory.
2562: mkdir sub
1.11 paf 2563:
2564: am_cv_CXX_dependencies_compiler_type=none
2565: if test "$am_compiler_list" = ""; then
2566: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2567: fi
2568: for depmode in $am_compiler_list; do
1.18 paf 2569: # Setup a source with many dependencies, because some compilers
2570: # like to wrap large dependency lists on column 80 (with \), and
2571: # we should not choose a depcomp mode which is confused by this.
2572: #
1.11 paf 2573: # We need to recreate these files for each test, as the compiler may
2574: # overwrite some of them when testing with obscure command lines.
2575: # This happens at least with the AIX C compiler.
1.18 paf 2576: : > sub/conftest.c
2577: for i in 1 2 3 4 5 6; do
2578: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2579: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2580: # Solaris 8's {/usr,}/bin/sh.
2581: touch sub/conftst$i.h
2582: done
2583: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 2584:
2585: case $depmode in
2586: nosideeffect)
2587: # after this tag, mechanisms are not by side-effect, so they'll
2588: # only be used when explicitly requested
2589: if test "x$enable_dependency_tracking" = xyes; then
2590: continue
2591: else
2592: break
2593: fi
2594: ;;
2595: none) break ;;
2596: esac
2597: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2598: # mode. It turns out that the SunPro C++ compiler does not properly
2599: # handle `-M -o', and we need to detect this.
2600: if depmode=$depmode \
1.18 paf 2601: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2602: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2603: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2604: >/dev/null 2>conftest.err &&
2605: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2606: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 2607: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 2608: # icc doesn't choke on unknown options, it will just issue warnings
2609: # or remarks (even with -Werror). So we grep stderr for any message
2610: # that says an option was ignored or not supported.
2611: # When given -MP, icc 7.0 and 7.1 complain thusly:
2612: # icc: Command line warning: ignoring option '-M'; no argument required
2613: # The diagnosis changed in icc 8.0:
2614: # icc: Command line remark: option '-MP' not supported
2615: if (grep 'ignoring option' conftest.err ||
2616: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2617: am_cv_CXX_dependencies_compiler_type=$depmode
2618: break
2619: fi
1.11 paf 2620: fi
2621: done
2622:
2623: cd ..
2624: rm -rf conftest.dir
2625: else
2626: am_cv_CXX_dependencies_compiler_type=none
2627: fi
2628:
2629: fi
2630: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2631: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2632: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2633:
1.1 parser 2634:
2635:
1.11 paf 2636: if
2637: test "x$enable_dependency_tracking" != xno \
2638: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2639: am__fastdepCXX_TRUE=
2640: am__fastdepCXX_FALSE='#'
2641: else
2642: am__fastdepCXX_TRUE='#'
2643: am__fastdepCXX_FALSE=
2644: fi
2645:
2646:
2647: ac_ext=c
2648: ac_cpp='$CPP $CPPFLAGS'
2649: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652: if test -n "$ac_tool_prefix"; then
2653: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655: echo "$as_me:$LINENO: checking for $ac_word" >&5
2656: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657: if test "${ac_cv_prog_CC+set}" = set; then
2658: echo $ECHO_N "(cached) $ECHO_C" >&6
2659: else
2660: if test -n "$CC"; then
2661: ac_cv_prog_CC="$CC" # Let the user override the test.
2662: else
2663: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664: for as_dir in $PATH
2665: do
2666: IFS=$as_save_IFS
2667: test -z "$as_dir" && as_dir=.
2668: for ac_exec_ext in '' $ac_executable_extensions; do
2669: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672: break 2
2673: fi
2674: done
2675: done
1.1 parser 2676:
1.11 paf 2677: fi
2678: fi
2679: CC=$ac_cv_prog_CC
2680: if test -n "$CC"; then
2681: echo "$as_me:$LINENO: result: $CC" >&5
2682: echo "${ECHO_T}$CC" >&6
2683: else
2684: echo "$as_me:$LINENO: result: no" >&5
2685: echo "${ECHO_T}no" >&6
2686: fi
1.1 parser 2687:
1.11 paf 2688: fi
2689: if test -z "$ac_cv_prog_CC"; then
2690: ac_ct_CC=$CC
2691: # Extract the first word of "gcc", so it can be a program name with args.
2692: set dummy gcc; ac_word=$2
2693: echo "$as_me:$LINENO: checking for $ac_word" >&5
2694: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2696: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2697: else
1.11 paf 2698: if test -n "$ac_ct_CC"; then
2699: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2700: else
1.11 paf 2701: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702: for as_dir in $PATH
2703: do
2704: IFS=$as_save_IFS
2705: test -z "$as_dir" && as_dir=.
2706: for ac_exec_ext in '' $ac_executable_extensions; do
2707: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708: ac_cv_prog_ac_ct_CC="gcc"
2709: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710: break 2
2711: fi
2712: done
2713: done
2714:
2715: fi
1.1 parser 2716: fi
1.11 paf 2717: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718: if test -n "$ac_ct_CC"; then
2719: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2720: echo "${ECHO_T}$ac_ct_CC" >&6
2721: else
2722: echo "$as_me:$LINENO: result: no" >&5
2723: echo "${ECHO_T}no" >&6
1.1 parser 2724: fi
1.11 paf 2725:
2726: CC=$ac_ct_CC
1.1 parser 2727: else
1.11 paf 2728: CC="$ac_cv_prog_CC"
1.1 parser 2729: fi
2730:
1.11 paf 2731: if test -z "$CC"; then
2732: if test -n "$ac_tool_prefix"; then
2733: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734: set dummy ${ac_tool_prefix}cc; ac_word=$2
2735: echo "$as_me:$LINENO: checking for $ac_word" >&5
2736: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737: if test "${ac_cv_prog_CC+set}" = set; then
2738: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2739: else
2740: if test -n "$CC"; then
2741: ac_cv_prog_CC="$CC" # Let the user override the test.
2742: else
1.11 paf 2743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744: for as_dir in $PATH
2745: do
2746: IFS=$as_save_IFS
2747: test -z "$as_dir" && as_dir=.
2748: for ac_exec_ext in '' $ac_executable_extensions; do
2749: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750: ac_cv_prog_CC="${ac_tool_prefix}cc"
2751: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752: break 2
2753: fi
2754: done
2755: done
2756:
1.1 parser 2757: fi
2758: fi
1.11 paf 2759: CC=$ac_cv_prog_CC
1.1 parser 2760: if test -n "$CC"; then
1.11 paf 2761: echo "$as_me:$LINENO: result: $CC" >&5
2762: echo "${ECHO_T}$CC" >&6
2763: else
2764: echo "$as_me:$LINENO: result: no" >&5
2765: echo "${ECHO_T}no" >&6
2766: fi
2767:
2768: fi
2769: if test -z "$ac_cv_prog_CC"; then
2770: ac_ct_CC=$CC
2771: # Extract the first word of "cc", so it can be a program name with args.
2772: set dummy cc; ac_word=$2
2773: echo "$as_me:$LINENO: checking for $ac_word" >&5
2774: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776: echo $ECHO_N "(cached) $ECHO_C" >&6
2777: else
2778: if test -n "$ac_ct_CC"; then
2779: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780: else
2781: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782: for as_dir in $PATH
2783: do
2784: IFS=$as_save_IFS
2785: test -z "$as_dir" && as_dir=.
2786: for ac_exec_ext in '' $ac_executable_extensions; do
2787: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788: ac_cv_prog_ac_ct_CC="cc"
2789: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790: break 2
2791: fi
2792: done
2793: done
2794:
2795: fi
2796: fi
2797: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2798: if test -n "$ac_ct_CC"; then
2799: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2800: echo "${ECHO_T}$ac_ct_CC" >&6
2801: else
2802: echo "$as_me:$LINENO: result: no" >&5
2803: echo "${ECHO_T}no" >&6
2804: fi
2805:
2806: CC=$ac_ct_CC
1.1 parser 2807: else
1.11 paf 2808: CC="$ac_cv_prog_CC"
1.1 parser 2809: fi
2810:
1.11 paf 2811: fi
1.1 parser 2812: if test -z "$CC"; then
2813: # Extract the first word of "cc", so it can be a program name with args.
2814: set dummy cc; ac_word=$2
1.11 paf 2815: echo "$as_me:$LINENO: checking for $ac_word" >&5
2816: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817: if test "${ac_cv_prog_CC+set}" = set; then
2818: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2819: else
2820: if test -n "$CC"; then
2821: ac_cv_prog_CC="$CC" # Let the user override the test.
2822: else
2823: ac_prog_rejected=no
1.11 paf 2824: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825: for as_dir in $PATH
2826: do
2827: IFS=$as_save_IFS
2828: test -z "$as_dir" && as_dir=.
2829: for ac_exec_ext in '' $ac_executable_extensions; do
2830: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832: ac_prog_rejected=yes
2833: continue
2834: fi
2835: ac_cv_prog_CC="cc"
2836: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837: break 2
2838: fi
2839: done
2840: done
2841:
1.1 parser 2842: if test $ac_prog_rejected = yes; then
2843: # We found a bogon in the path, so make sure we never use it.
2844: set dummy $ac_cv_prog_CC
2845: shift
1.11 paf 2846: if test $# != 0; then
1.1 parser 2847: # We chose a different compiler from the bogus one.
2848: # However, it has the same basename, so the bogon will be chosen
2849: # first if we set CC to just the basename; use the full file name.
2850: shift
1.11 paf 2851: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2852: fi
2853: fi
2854: fi
2855: fi
1.11 paf 2856: CC=$ac_cv_prog_CC
1.1 parser 2857: if test -n "$CC"; then
1.11 paf 2858: echo "$as_me:$LINENO: result: $CC" >&5
2859: echo "${ECHO_T}$CC" >&6
1.1 parser 2860: else
1.11 paf 2861: echo "$as_me:$LINENO: result: no" >&5
2862: echo "${ECHO_T}no" >&6
1.1 parser 2863: fi
2864:
1.11 paf 2865: fi
2866: if test -z "$CC"; then
2867: if test -n "$ac_tool_prefix"; then
2868: for ac_prog in cl
2869: do
2870: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872: echo "$as_me:$LINENO: checking for $ac_word" >&5
2873: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874: if test "${ac_cv_prog_CC+set}" = set; then
2875: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2876: else
2877: if test -n "$CC"; then
2878: ac_cv_prog_CC="$CC" # Let the user override the test.
2879: else
1.11 paf 2880: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881: for as_dir in $PATH
2882: do
2883: IFS=$as_save_IFS
2884: test -z "$as_dir" && as_dir=.
2885: for ac_exec_ext in '' $ac_executable_extensions; do
2886: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2888: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889: break 2
2890: fi
2891: done
2892: done
2893:
1.1 parser 2894: fi
2895: fi
1.11 paf 2896: CC=$ac_cv_prog_CC
1.1 parser 2897: if test -n "$CC"; then
1.11 paf 2898: echo "$as_me:$LINENO: result: $CC" >&5
2899: echo "${ECHO_T}$CC" >&6
1.1 parser 2900: else
1.11 paf 2901: echo "$as_me:$LINENO: result: no" >&5
2902: echo "${ECHO_T}no" >&6
1.1 parser 2903: fi
1.11 paf 2904:
2905: test -n "$CC" && break
2906: done
2907: fi
2908: if test -z "$CC"; then
2909: ac_ct_CC=$CC
2910: for ac_prog in cl
2911: do
2912: # Extract the first word of "$ac_prog", so it can be a program name with args.
2913: set dummy $ac_prog; ac_word=$2
2914: echo "$as_me:$LINENO: checking for $ac_word" >&5
2915: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917: echo $ECHO_N "(cached) $ECHO_C" >&6
2918: else
2919: if test -n "$ac_ct_CC"; then
2920: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921: else
2922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923: for as_dir in $PATH
2924: do
2925: IFS=$as_save_IFS
2926: test -z "$as_dir" && as_dir=.
2927: for ac_exec_ext in '' $ac_executable_extensions; do
2928: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929: ac_cv_prog_ac_ct_CC="$ac_prog"
2930: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931: break 2
1.1 parser 2932: fi
1.11 paf 2933: done
2934: done
2935:
2936: fi
2937: fi
2938: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939: if test -n "$ac_ct_CC"; then
2940: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2941: echo "${ECHO_T}$ac_ct_CC" >&6
2942: else
2943: echo "$as_me:$LINENO: result: no" >&5
2944: echo "${ECHO_T}no" >&6
1.1 parser 2945: fi
2946:
1.11 paf 2947: test -n "$ac_ct_CC" && break
2948: done
1.1 parser 2949:
1.11 paf 2950: CC=$ac_ct_CC
2951: fi
1.1 parser 2952:
1.11 paf 2953: fi
1.1 parser 2954:
2955:
1.11 paf 2956: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2957: See \`config.log' for more details." >&5
2958: echo "$as_me: error: no acceptable C compiler found in \$PATH
2959: See \`config.log' for more details." >&2;}
2960: { (exit 1); exit 1; }; }
2961:
2962: # Provide some information about the compiler.
2963: echo "$as_me:$LINENO:" \
2964: "checking for C compiler version" >&5
2965: ac_compiler=`set X $ac_compile; echo $2`
2966: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2967: (eval $ac_compiler --version </dev/null >&5) 2>&5
2968: ac_status=$?
2969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970: (exit $ac_status); }
2971: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2972: (eval $ac_compiler -v </dev/null >&5) 2>&5
2973: ac_status=$?
2974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975: (exit $ac_status); }
2976: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2977: (eval $ac_compiler -V </dev/null >&5) 2>&5
2978: ac_status=$?
2979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980: (exit $ac_status); }
2981:
2982: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2984: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2985: echo $ECHO_N "(cached) $ECHO_C" >&6
2986: else
2987: cat >conftest.$ac_ext <<_ACEOF
2988: /* confdefs.h. */
2989: _ACEOF
2990: cat confdefs.h >>conftest.$ac_ext
2991: cat >>conftest.$ac_ext <<_ACEOF
2992: /* end confdefs.h. */
2993:
2994: int
2995: main ()
2996: {
2997: #ifndef __GNUC__
2998: choke me
1.1 parser 2999: #endif
3000:
1.11 paf 3001: ;
3002: return 0;
3003: }
3004: _ACEOF
3005: rm -f conftest.$ac_objext
3006: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3007: (eval $ac_compile) 2>conftest.er1
1.11 paf 3008: ac_status=$?
1.18 paf 3009: grep -v '^ *+' conftest.er1 >conftest.err
3010: rm -f conftest.er1
3011: cat conftest.err >&5
1.11 paf 3012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013: (exit $ac_status); } &&
1.18 paf 3014: { ac_try='test -z "$ac_c_werror_flag"
3015: || test ! -s conftest.err'
3016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017: (eval $ac_try) 2>&5
3018: ac_status=$?
3019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020: (exit $ac_status); }; } &&
3021: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023: (eval $ac_try) 2>&5
3024: ac_status=$?
3025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026: (exit $ac_status); }; }; then
3027: ac_compiler_gnu=yes
3028: else
3029: echo "$as_me: failed program was:" >&5
3030: sed 's/^/| /' conftest.$ac_ext >&5
3031:
3032: ac_compiler_gnu=no
3033: fi
1.18 paf 3034: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3035: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3036:
3037: fi
3038: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3039: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3040: GCC=`test $ac_compiler_gnu = yes && echo yes`
3041: ac_test_CFLAGS=${CFLAGS+set}
3042: ac_save_CFLAGS=$CFLAGS
3043: CFLAGS="-g"
3044: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3046: if test "${ac_cv_prog_cc_g+set}" = set; then
3047: echo $ECHO_N "(cached) $ECHO_C" >&6
3048: else
3049: cat >conftest.$ac_ext <<_ACEOF
3050: /* confdefs.h. */
3051: _ACEOF
3052: cat confdefs.h >>conftest.$ac_ext
3053: cat >>conftest.$ac_ext <<_ACEOF
3054: /* end confdefs.h. */
3055:
3056: int
3057: main ()
3058: {
3059:
3060: ;
3061: return 0;
3062: }
3063: _ACEOF
3064: rm -f conftest.$ac_objext
3065: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3066: (eval $ac_compile) 2>conftest.er1
1.11 paf 3067: ac_status=$?
1.18 paf 3068: grep -v '^ *+' conftest.er1 >conftest.err
3069: rm -f conftest.er1
3070: cat conftest.err >&5
1.11 paf 3071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072: (exit $ac_status); } &&
1.18 paf 3073: { ac_try='test -z "$ac_c_werror_flag"
3074: || test ! -s conftest.err'
3075: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076: (eval $ac_try) 2>&5
3077: ac_status=$?
3078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079: (exit $ac_status); }; } &&
3080: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3081: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082: (eval $ac_try) 2>&5
3083: ac_status=$?
3084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085: (exit $ac_status); }; }; then
3086: ac_cv_prog_cc_g=yes
1.1 parser 3087: else
1.11 paf 3088: echo "$as_me: failed program was:" >&5
3089: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3090:
1.11 paf 3091: ac_cv_prog_cc_g=no
1.1 parser 3092: fi
1.18 paf 3093: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3094: fi
1.11 paf 3095: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3097: if test "$ac_test_CFLAGS" = set; then
1.11 paf 3098: CFLAGS=$ac_save_CFLAGS
1.1 parser 3099: elif test $ac_cv_prog_cc_g = yes; then
3100: if test "$GCC" = yes; then
3101: CFLAGS="-g -O2"
3102: else
3103: CFLAGS="-g"
3104: fi
3105: else
3106: if test "$GCC" = yes; then
3107: CFLAGS="-O2"
3108: else
3109: CFLAGS=
3110: fi
3111: fi
1.11 paf 3112: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3113: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3114: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3115: echo $ECHO_N "(cached) $ECHO_C" >&6
3116: else
3117: ac_cv_prog_cc_stdc=no
3118: ac_save_CC=$CC
3119: cat >conftest.$ac_ext <<_ACEOF
3120: /* confdefs.h. */
3121: _ACEOF
3122: cat confdefs.h >>conftest.$ac_ext
3123: cat >>conftest.$ac_ext <<_ACEOF
3124: /* end confdefs.h. */
3125: #include <stdarg.h>
3126: #include <stdio.h>
3127: #include <sys/types.h>
3128: #include <sys/stat.h>
3129: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130: struct buf { int x; };
3131: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132: static char *e (p, i)
3133: char **p;
3134: int i;
3135: {
3136: return p[i];
3137: }
3138: static char *f (char * (*g) (char **, int), char **p, ...)
3139: {
3140: char *s;
3141: va_list v;
3142: va_start (v,p);
3143: s = g (p, va_arg (v,int));
3144: va_end (v);
3145: return s;
3146: }
1.18 paf 3147:
3148: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149: function prototypes and stuff, but not '\xHH' hex character constants.
3150: These don't provoke an error unfortunately, instead are silently treated
3151: as 'x'. The following induces an error, until -std1 is added to get
3152: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153: array size at least. It's necessary to write '\x00'==0 to get something
3154: that's true only with -std1. */
3155: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3156:
1.11 paf 3157: int test (int i, double x);
3158: struct s1 {int (*f) (int a);};
3159: struct s2 {int (*f) (double a);};
3160: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161: int argc;
3162: char **argv;
3163: int
3164: main ()
3165: {
3166: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3167: ;
3168: return 0;
3169: }
3170: _ACEOF
3171: # Don't try gcc -ansi; that turns off useful extensions and
3172: # breaks some systems' header files.
3173: # AIX -qlanglvl=ansi
3174: # Ultrix and OSF/1 -std1
3175: # HP-UX 10.20 and later -Ae
3176: # HP-UX older versions -Aa -D_HPUX_SOURCE
3177: # SVR4 -Xc -D__EXTENSIONS__
3178: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179: do
3180: CC="$ac_save_CC $ac_arg"
3181: rm -f conftest.$ac_objext
3182: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3183: (eval $ac_compile) 2>conftest.er1
1.11 paf 3184: ac_status=$?
1.18 paf 3185: grep -v '^ *+' conftest.er1 >conftest.err
3186: rm -f conftest.er1
3187: cat conftest.err >&5
1.11 paf 3188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189: (exit $ac_status); } &&
1.18 paf 3190: { ac_try='test -z "$ac_c_werror_flag"
3191: || test ! -s conftest.err'
3192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193: (eval $ac_try) 2>&5
3194: ac_status=$?
3195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196: (exit $ac_status); }; } &&
3197: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199: (eval $ac_try) 2>&5
3200: ac_status=$?
3201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202: (exit $ac_status); }; }; then
3203: ac_cv_prog_cc_stdc=$ac_arg
3204: break
3205: else
3206: echo "$as_me: failed program was:" >&5
3207: sed 's/^/| /' conftest.$ac_ext >&5
3208:
3209: fi
1.18 paf 3210: rm -f conftest.err conftest.$ac_objext
1.11 paf 3211: done
3212: rm -f conftest.$ac_ext conftest.$ac_objext
3213: CC=$ac_save_CC
3214:
3215: fi
3216:
3217: case "x$ac_cv_prog_cc_stdc" in
3218: x|xno)
3219: echo "$as_me:$LINENO: result: none needed" >&5
3220: echo "${ECHO_T}none needed" >&6 ;;
3221: *)
3222: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3223: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3224: CC="$CC $ac_cv_prog_cc_stdc" ;;
3225: esac
3226:
3227: # Some people use a C++ compiler to compile C. Since we use `exit',
3228: # in C++ we need to declare it. In case someone uses the same compiler
3229: # for both compiling C and C++ we need to have the C++ compiler decide
3230: # the declaration of exit, since it's the most demanding environment.
3231: cat >conftest.$ac_ext <<_ACEOF
3232: #ifndef __cplusplus
3233: choke me
3234: #endif
3235: _ACEOF
3236: rm -f conftest.$ac_objext
3237: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3238: (eval $ac_compile) 2>conftest.er1
1.11 paf 3239: ac_status=$?
1.18 paf 3240: grep -v '^ *+' conftest.er1 >conftest.err
3241: rm -f conftest.er1
3242: cat conftest.err >&5
1.11 paf 3243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244: (exit $ac_status); } &&
1.18 paf 3245: { ac_try='test -z "$ac_c_werror_flag"
3246: || test ! -s conftest.err'
3247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248: (eval $ac_try) 2>&5
3249: ac_status=$?
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); }; } &&
3252: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254: (eval $ac_try) 2>&5
3255: ac_status=$?
3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); }; }; then
3258: for ac_declaration in \
1.18 paf 3259: '' \
1.11 paf 3260: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3261: 'extern "C" void std::exit (int); using std::exit;' \
3262: 'extern "C" void exit (int) throw ();' \
3263: 'extern "C" void exit (int);' \
3264: 'void exit (int);'
3265: do
3266: cat >conftest.$ac_ext <<_ACEOF
3267: /* confdefs.h. */
3268: _ACEOF
3269: cat confdefs.h >>conftest.$ac_ext
3270: cat >>conftest.$ac_ext <<_ACEOF
3271: /* end confdefs.h. */
1.18 paf 3272: $ac_declaration
1.11 paf 3273: #include <stdlib.h>
3274: int
3275: main ()
3276: {
3277: exit (42);
3278: ;
3279: return 0;
3280: }
3281: _ACEOF
3282: rm -f conftest.$ac_objext
3283: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3284: (eval $ac_compile) 2>conftest.er1
1.11 paf 3285: ac_status=$?
1.18 paf 3286: grep -v '^ *+' conftest.er1 >conftest.err
3287: rm -f conftest.er1
3288: cat conftest.err >&5
1.11 paf 3289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290: (exit $ac_status); } &&
1.18 paf 3291: { ac_try='test -z "$ac_c_werror_flag"
3292: || test ! -s conftest.err'
3293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294: (eval $ac_try) 2>&5
3295: ac_status=$?
3296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297: (exit $ac_status); }; } &&
3298: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300: (eval $ac_try) 2>&5
3301: ac_status=$?
3302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303: (exit $ac_status); }; }; then
3304: :
3305: else
3306: echo "$as_me: failed program was:" >&5
3307: sed 's/^/| /' conftest.$ac_ext >&5
3308:
3309: continue
3310: fi
1.18 paf 3311: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3312: cat >conftest.$ac_ext <<_ACEOF
3313: /* confdefs.h. */
3314: _ACEOF
3315: cat confdefs.h >>conftest.$ac_ext
3316: cat >>conftest.$ac_ext <<_ACEOF
3317: /* end confdefs.h. */
3318: $ac_declaration
3319: int
3320: main ()
3321: {
3322: exit (42);
3323: ;
3324: return 0;
3325: }
3326: _ACEOF
3327: rm -f conftest.$ac_objext
3328: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 3329: (eval $ac_compile) 2>conftest.er1
1.11 paf 3330: ac_status=$?
1.18 paf 3331: grep -v '^ *+' conftest.er1 >conftest.err
3332: rm -f conftest.er1
3333: cat conftest.err >&5
1.11 paf 3334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335: (exit $ac_status); } &&
1.18 paf 3336: { ac_try='test -z "$ac_c_werror_flag"
3337: || test ! -s conftest.err'
3338: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339: (eval $ac_try) 2>&5
3340: ac_status=$?
3341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342: (exit $ac_status); }; } &&
3343: { ac_try='test -s conftest.$ac_objext'
1.11 paf 3344: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345: (eval $ac_try) 2>&5
3346: ac_status=$?
3347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348: (exit $ac_status); }; }; then
3349: break
3350: else
3351: echo "$as_me: failed program was:" >&5
3352: sed 's/^/| /' conftest.$ac_ext >&5
3353:
3354: fi
1.18 paf 3355: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 3356: done
3357: rm -f conftest*
3358: if test -n "$ac_declaration"; then
3359: echo '#ifdef __cplusplus' >>confdefs.h
3360: echo $ac_declaration >>confdefs.h
3361: echo '#endif' >>confdefs.h
3362: fi
3363:
3364: else
3365: echo "$as_me: failed program was:" >&5
3366: sed 's/^/| /' conftest.$ac_ext >&5
3367:
3368: fi
1.18 paf 3369: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3370: ac_ext=c
3371: ac_cpp='$CPP $CPPFLAGS'
3372: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 3375:
3376: depcc="$CC" am_compiler_list=
3377:
3378: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3379: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3380: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3381: echo $ECHO_N "(cached) $ECHO_C" >&6
3382: else
3383: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3384: # We make a subdir and do the tests there. Otherwise we can end up
3385: # making bogus files that we don't know about and never remove. For
3386: # instance it was reported that on HP-UX the gcc test will end up
3387: # making a dummy file named `D' -- because `-MD' means `put the output
3388: # in D'.
3389: mkdir conftest.dir
3390: # Copy depcomp to subdir because otherwise we won't find it if we're
3391: # using a relative directory.
3392: cp "$am_depcomp" conftest.dir
3393: cd conftest.dir
1.18 paf 3394: # We will build objects and dependencies in a subdirectory because
3395: # it helps to detect inapplicable dependency modes. For instance
3396: # both Tru64's cc and ICC support -MD to output dependencies as a
3397: # side effect of compilation, but ICC will put the dependencies in
3398: # the current directory while Tru64 will put them in the object
3399: # directory.
3400: mkdir sub
1.11 paf 3401:
3402: am_cv_CC_dependencies_compiler_type=none
3403: if test "$am_compiler_list" = ""; then
3404: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3405: fi
3406: for depmode in $am_compiler_list; do
1.18 paf 3407: # Setup a source with many dependencies, because some compilers
3408: # like to wrap large dependency lists on column 80 (with \), and
3409: # we should not choose a depcomp mode which is confused by this.
3410: #
1.11 paf 3411: # We need to recreate these files for each test, as the compiler may
3412: # overwrite some of them when testing with obscure command lines.
3413: # This happens at least with the AIX C compiler.
1.18 paf 3414: : > sub/conftest.c
3415: for i in 1 2 3 4 5 6; do
3416: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3417: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3418: # Solaris 8's {/usr,}/bin/sh.
3419: touch sub/conftst$i.h
3420: done
3421: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.11 paf 3422:
3423: case $depmode in
3424: nosideeffect)
3425: # after this tag, mechanisms are not by side-effect, so they'll
3426: # only be used when explicitly requested
3427: if test "x$enable_dependency_tracking" = xyes; then
3428: continue
3429: else
3430: break
3431: fi
3432: ;;
3433: none) break ;;
3434: esac
3435: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3436: # mode. It turns out that the SunPro C++ compiler does not properly
3437: # handle `-M -o', and we need to detect this.
3438: if depmode=$depmode \
1.18 paf 3439: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3440: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3441: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3442: >/dev/null 2>conftest.err &&
3443: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3444: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.11 paf 3445: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.18 paf 3446: # icc doesn't choke on unknown options, it will just issue warnings
3447: # or remarks (even with -Werror). So we grep stderr for any message
3448: # that says an option was ignored or not supported.
3449: # When given -MP, icc 7.0 and 7.1 complain thusly:
3450: # icc: Command line warning: ignoring option '-M'; no argument required
3451: # The diagnosis changed in icc 8.0:
3452: # icc: Command line remark: option '-MP' not supported
3453: if (grep 'ignoring option' conftest.err ||
3454: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3455: am_cv_CC_dependencies_compiler_type=$depmode
3456: break
3457: fi
1.11 paf 3458: fi
3459: done
3460:
3461: cd ..
3462: rm -rf conftest.dir
3463: else
3464: am_cv_CC_dependencies_compiler_type=none
3465: fi
3466:
3467: fi
3468: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3469: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3470: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3471:
3472:
3473:
3474: if
3475: test "x$enable_dependency_tracking" != xno \
3476: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3477: am__fastdepCC_TRUE=
3478: am__fastdepCC_FALSE='#'
3479: else
3480: am__fastdepCC_TRUE='#'
3481: am__fastdepCC_FALSE=
3482: fi
3483:
3484:
1.15 paf 3485:
3486:
3487:
3488:
3489:
3490:
3491:
3492:
1.25 moko 3493: case `pwd` in
3494: *\ * | *\ *)
3495: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3496: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.15 paf 3497: esac
3498:
1.25 moko 3499:
3500:
3501: macro_version='2.4.2'
3502: macro_revision='1.3337'
3503:
3504:
3505:
3506:
3507:
3508:
3509:
3510:
3511:
3512:
3513:
3514:
3515:
3516: ltmain="$ac_aux_dir/ltmain.sh"
3517:
1.15 paf 3518: # Make sure we can run config.sub.
3519: $ac_config_sub sun4 >/dev/null 2>&1 ||
3520: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3521: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3522: { (exit 1); exit 1; }; }
3523:
3524: echo "$as_me:$LINENO: checking build system type" >&5
3525: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3526: if test "${ac_cv_build+set}" = set; then
3527: echo $ECHO_N "(cached) $ECHO_C" >&6
3528: else
3529: ac_cv_build_alias=$build_alias
3530: test -z "$ac_cv_build_alias" &&
3531: ac_cv_build_alias=`$ac_config_guess`
3532: test -z "$ac_cv_build_alias" &&
3533: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3534: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3535: { (exit 1); exit 1; }; }
3536: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3537: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3538: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3539: { (exit 1); exit 1; }; }
3540:
3541: fi
3542: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3543: echo "${ECHO_T}$ac_cv_build" >&6
3544: build=$ac_cv_build
3545: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3546: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3547: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3548:
3549:
3550: echo "$as_me:$LINENO: checking host system type" >&5
3551: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3552: if test "${ac_cv_host+set}" = set; then
3553: echo $ECHO_N "(cached) $ECHO_C" >&6
3554: else
3555: ac_cv_host_alias=$host_alias
3556: test -z "$ac_cv_host_alias" &&
3557: ac_cv_host_alias=$ac_cv_build_alias
3558: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3559: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3560: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3561: { (exit 1); exit 1; }; }
3562:
3563: fi
3564: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3565: echo "${ECHO_T}$ac_cv_host" >&6
3566: host=$ac_cv_host
3567: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3568: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3569: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3570:
3571:
1.25 moko 3572: # Backslashify metacharacters that are still active within
3573: # double-quoted strings.
3574: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3575:
3576: # Same as above, but do not quote variable references.
3577: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3578:
3579: # Sed substitution to delay expansion of an escaped shell variable in a
3580: # double_quote_subst'ed string.
3581: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3582:
3583: # Sed substitution to delay expansion of an escaped single quote.
3584: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3585:
3586: # Sed substitution to avoid accidental globbing in evaled expressions
3587: no_glob_subst='s/\*/\\\*/g'
3588:
3589: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3590: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3591: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3592:
3593: echo "$as_me:$LINENO: checking how to print strings" >&5
3594: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3595: # Test print first, because it will be a builtin if present.
3596: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3597: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3598: ECHO='print -r --'
3599: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3600: ECHO='printf %s\n'
3601: else
3602: # Use this function as a fallback that always works.
3603: func_fallback_echo ()
3604: {
3605: eval 'cat <<_LTECHO_EOF
3606: $1
3607: _LTECHO_EOF'
3608: }
3609: ECHO='func_fallback_echo'
1.11 paf 3610: fi
3611:
1.25 moko 3612: # func_echo_all arg...
3613: # Invoke $ECHO with all args, space-separated.
3614: func_echo_all ()
3615: {
3616: $ECHO ""
3617: }
3618:
3619: case "$ECHO" in
3620: printf*) echo "$as_me:$LINENO: result: printf" >&5
3621: echo "${ECHO_T}printf" >&6 ;;
3622: print*) echo "$as_me:$LINENO: result: print -r" >&5
3623: echo "${ECHO_T}print -r" >&6 ;;
3624: *) echo "$as_me:$LINENO: result: cat" >&5
3625: echo "${ECHO_T}cat" >&6 ;;
3626: esac
3627:
3628:
3629:
3630:
3631:
3632:
3633:
3634:
3635:
3636:
3637:
3638:
1.1 parser 3639:
1.25 moko 3640:
3641: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3642: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3643: if test "${lt_cv_path_SED+set}" = set; then
3644: echo $ECHO_N "(cached) $ECHO_C" >&6
3645: else
3646: # Loop through the user's path and test for sed and gsed.
3647: # Then use that list of sed's as ones to test for truncation.
3648: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649: for as_dir in $PATH
3650: do
3651: IFS=$as_save_IFS
3652: test -z "$as_dir" && as_dir=.
3653: for lt_ac_prog in sed gsed; do
3654: for ac_exec_ext in '' $ac_executable_extensions; do
3655: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3656: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3657: fi
3658: done
3659: done
3660: done
3661: IFS=$as_save_IFS
3662: lt_ac_max=0
3663: lt_ac_count=0
3664: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3665: # along with /bin/sed that truncates output.
3666: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3667: test ! -f $lt_ac_sed && continue
3668: cat /dev/null > conftest.in
3669: lt_ac_count=0
3670: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3671: # Check for GNU sed and select it if it is found.
3672: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3673: lt_cv_path_SED=$lt_ac_sed
3674: break
3675: fi
3676: while true; do
3677: cat conftest.in conftest.in >conftest.tmp
3678: mv conftest.tmp conftest.in
3679: cp conftest.in conftest.nl
3680: echo >>conftest.nl
3681: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3682: cmp -s conftest.out conftest.nl || break
3683: # 10000 chars as input seems more than enough
3684: test $lt_ac_count -gt 10 && break
3685: lt_ac_count=`expr $lt_ac_count + 1`
3686: if test $lt_ac_count -gt $lt_ac_max; then
3687: lt_ac_max=$lt_ac_count
3688: lt_cv_path_SED=$lt_ac_sed
3689: fi
3690: done
3691: done
3692:
3693: fi
3694:
3695: SED=$lt_cv_path_SED
3696:
3697: echo "$as_me:$LINENO: result: $SED" >&5
3698: echo "${ECHO_T}$SED" >&6
3699:
3700: test -z "$SED" && SED=sed
3701: Xsed="$SED -e 1s/^X//"
3702:
3703:
3704:
3705:
3706:
3707:
3708:
3709:
3710:
3711:
3712:
3713: echo "$as_me:$LINENO: checking for egrep" >&5
3714: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3715: if test "${ac_cv_prog_egrep+set}" = set; then
3716: echo $ECHO_N "(cached) $ECHO_C" >&6
3717: else
3718: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3719: then ac_cv_prog_egrep='grep -E'
3720: else ac_cv_prog_egrep='egrep'
3721: fi
3722: fi
3723: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3724: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3725: EGREP=$ac_cv_prog_egrep
3726:
3727:
3728: echo "$as_me:$LINENO: checking for fgrep" >&5
3729: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3730: if test "${ac_cv_prog_fgrep+set}" = set; then
3731: echo $ECHO_N "(cached) $ECHO_C" >&6
3732: else
3733: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3734: then ac_cv_prog_fgrep='grep -F'
3735: else ac_cv_prog_fgrep='fgrep'
3736: fi
3737: fi
3738: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3739: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3740: FGREP=$ac_cv_prog_fgrep
3741:
3742:
3743: test -z "$GREP" && GREP=grep
3744:
3745:
3746:
3747:
3748:
3749:
3750:
3751:
3752:
3753:
3754:
3755:
3756:
3757:
3758:
3759:
3760:
3761:
3762:
3763: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3764: if test "${with_gnu_ld+set}" = set; then
3765: withval="$with_gnu_ld"
3766: test "$withval" = no || with_gnu_ld=yes
1.1 parser 3767: else
3768: with_gnu_ld=no
1.11 paf 3769: fi;
1.1 parser 3770: ac_prog=ld
1.11 paf 3771: if test "$GCC" = yes; then
1.1 parser 3772: # Check if gcc -print-prog-name=ld gives a path.
1.25 moko 3773: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3774: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.11 paf 3775: case $host in
3776: *-*-mingw*)
3777: # gcc leaves a trailing carriage return which upsets mingw
3778: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3779: *)
3780: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3781: esac
3782: case $ac_prog in
1.1 parser 3783: # Accept absolute paths.
1.25 moko 3784: [\\/]* | ?:[\\/]*)
1.1 parser 3785: re_direlt='/[^/][^/]*/\.\./'
1.25 moko 3786: # Canonicalize the pathname of ld
3787: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3788: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3789: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.1 parser 3790: done
3791: test -z "$LD" && LD="$ac_prog"
3792: ;;
3793: "")
3794: # If it fails, then pretend we aren't using GCC.
3795: ac_prog=ld
3796: ;;
3797: *)
3798: # If it is relative, then search for the first ld in PATH.
3799: with_gnu_ld=unknown
3800: ;;
3801: esac
3802: elif test "$with_gnu_ld" = yes; then
1.11 paf 3803: echo "$as_me:$LINENO: checking for GNU ld" >&5
3804: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.1 parser 3805: else
1.11 paf 3806: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3807: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.1 parser 3808: fi
1.11 paf 3809: if test "${lt_cv_path_LD+set}" = set; then
3810: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3811: else
3812: if test -z "$LD"; then
1.25 moko 3813: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3814: for ac_dir in $PATH; do
1.25 moko 3815: IFS="$lt_save_ifs"
1.1 parser 3816: test -z "$ac_dir" && ac_dir=.
3817: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.11 paf 3818: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3819: # Check to see if the program is GNU ld. I'd rather use --version,
1.25 moko 3820: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3821: # Break only if it was the GNU/non-GNU ld that we prefer.
1.25 moko 3822: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3823: *GNU* | *'with BFD'*)
1.1 parser 3824: test "$with_gnu_ld" != no && break
1.25 moko 3825: ;;
3826: *)
1.1 parser 3827: test "$with_gnu_ld" != yes && break
1.25 moko 3828: ;;
3829: esac
1.1 parser 3830: fi
3831: done
1.25 moko 3832: IFS="$lt_save_ifs"
1.1 parser 3833: else
1.11 paf 3834: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3835: fi
3836: fi
3837:
1.11 paf 3838: LD="$lt_cv_path_LD"
1.1 parser 3839: if test -n "$LD"; then
1.11 paf 3840: echo "$as_me:$LINENO: result: $LD" >&5
3841: echo "${ECHO_T}$LD" >&6
1.1 parser 3842: else
1.11 paf 3843: echo "$as_me:$LINENO: result: no" >&5
3844: echo "${ECHO_T}no" >&6
1.1 parser 3845: fi
1.11 paf 3846: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3847: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3848: { (exit 1); exit 1; }; }
3849: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3850: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3851: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3852: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3853: else
1.25 moko 3854: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3855: case `$LD -v 2>&1 </dev/null` in
3856: *GNU* | *'with BFD'*)
1.11 paf 3857: lt_cv_prog_gnu_ld=yes
1.25 moko 3858: ;;
3859: *)
1.11 paf 3860: lt_cv_prog_gnu_ld=no
1.25 moko 3861: ;;
3862: esac
1.1 parser 3863: fi
1.11 paf 3864: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3865: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3866: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3867:
3868:
3869:
1.25 moko 3870:
3871:
3872:
3873:
3874:
3875:
3876: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3877: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.11 paf 3878: if test "${lt_cv_path_NM+set}" = set; then
3879: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3880: else
3881: if test -n "$NM"; then
3882: # Let the user override the test.
1.11 paf 3883: lt_cv_path_NM="$NM"
1.1 parser 3884: else
1.25 moko 3885: lt_nm_to_check="${ac_tool_prefix}nm"
3886: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3887: lt_nm_to_check="$lt_nm_to_check nm"
3888: fi
3889: for lt_tmp_nm in $lt_nm_to_check; do
3890: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3891: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3892: IFS="$lt_save_ifs"
3893: test -z "$ac_dir" && ac_dir=.
3894: tmp_nm="$ac_dir/$lt_tmp_nm"
3895: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3896: # Check to see if the nm accepts a BSD-compat flag.
3897: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3898: # nm: unknown option "B" ignored
3899: # Tru64's nm complains that /dev/null is an invalid object file
3900: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3901: */dev/null* | *'Invalid file or object type'*)
3902: lt_cv_path_NM="$tmp_nm -B"
3903: break
3904: ;;
3905: *)
3906: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3907: */dev/null*)
3908: lt_cv_path_NM="$tmp_nm -p"
3909: break
3910: ;;
3911: *)
3912: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3913: continue # so that we can try to find one that supports BSD flags
3914: ;;
3915: esac
3916: ;;
3917: esac
1.1 parser 3918: fi
1.25 moko 3919: done
3920: IFS="$lt_save_ifs"
1.1 parser 3921: done
1.25 moko 3922: : ${lt_cv_path_NM=no}
1.1 parser 3923: fi
3924: fi
1.25 moko 3925: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3926: echo "${ECHO_T}$lt_cv_path_NM" >&6
3927: if test "$lt_cv_path_NM" != "no"; then
3928: NM="$lt_cv_path_NM"
3929: else
3930: # Didn't find any BSD compatible name lister, look for dumpbin.
3931: if test -n "$DUMPBIN"; then :
3932: # Let the user override the test.
3933: else
3934: if test -n "$ac_tool_prefix"; then
3935: for ac_prog in dumpbin "link -dump"
3936: do
3937: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3938: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3939: echo "$as_me:$LINENO: checking for $ac_word" >&5
3940: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3942: echo $ECHO_N "(cached) $ECHO_C" >&6
3943: else
3944: if test -n "$DUMPBIN"; then
3945: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3946: else
3947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948: for as_dir in $PATH
3949: do
3950: IFS=$as_save_IFS
3951: test -z "$as_dir" && as_dir=.
3952: for ac_exec_ext in '' $ac_executable_extensions; do
3953: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3955: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956: break 2
3957: fi
3958: done
3959: done
1.1 parser 3960:
1.25 moko 3961: fi
3962: fi
3963: DUMPBIN=$ac_cv_prog_DUMPBIN
3964: if test -n "$DUMPBIN"; then
3965: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3966: echo "${ECHO_T}$DUMPBIN" >&6
3967: else
3968: echo "$as_me:$LINENO: result: no" >&5
3969: echo "${ECHO_T}no" >&6
3970: fi
1.1 parser 3971:
1.25 moko 3972: test -n "$DUMPBIN" && break
3973: done
3974: fi
3975: if test -z "$DUMPBIN"; then
3976: ac_ct_DUMPBIN=$DUMPBIN
3977: for ac_prog in dumpbin "link -dump"
3978: do
3979: # Extract the first word of "$ac_prog", so it can be a program name with args.
3980: set dummy $ac_prog; ac_word=$2
3981: echo "$as_me:$LINENO: checking for $ac_word" >&5
3982: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
1.11 paf 3984: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3985: else
1.25 moko 3986: if test -n "$ac_ct_DUMPBIN"; then
3987: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3988: else
1.11 paf 3989: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990: for as_dir in $PATH
3991: do
3992: IFS=$as_save_IFS
3993: test -z "$as_dir" && as_dir=.
1.25 moko 3994: for ac_exec_ext in '' $ac_executable_extensions; do
3995: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3997: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998: break 2
3999: fi
4000: done
4001: done
4002:
4003: fi
4004: fi
4005: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4006: if test -n "$ac_ct_DUMPBIN"; then
4007: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4008: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4009: else
4010: echo "$as_me:$LINENO: result: no" >&5
4011: echo "${ECHO_T}no" >&6
4012: fi
4013:
4014: test -n "$ac_ct_DUMPBIN" && break
1.11 paf 4015: done
1.25 moko 4016: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
1.11 paf 4017:
1.25 moko 4018: DUMPBIN=$ac_ct_DUMPBIN
4019: fi
1.11 paf 4020:
1.25 moko 4021: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4022: *COFF*)
4023: DUMPBIN="$DUMPBIN -symbols"
4024: ;;
4025: *)
4026: DUMPBIN=:
4027: ;;
4028: esac
4029: fi
1.11 paf 4030:
1.25 moko 4031: if test "$DUMPBIN" != ":"; then
4032: NM="$DUMPBIN"
4033: fi
1.1 parser 4034: fi
1.25 moko 4035: test -z "$NM" && NM=nm
4036:
4037:
4038:
4039:
4040:
1.1 parser 4041:
1.25 moko 4042: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4043: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4044: if test "${lt_cv_nm_interface+set}" = set; then
4045: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 paf 4046: else
1.25 moko 4047: lt_cv_nm_interface="BSD nm"
4048: echo "int some_variable = 0;" > conftest.$ac_ext
4049: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4050: (eval "$ac_compile" 2>conftest.err)
4051: cat conftest.err >&5
4052: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4053: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4054: cat conftest.err >&5
4055: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4056: cat conftest.out >&5
4057: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4058: lt_cv_nm_interface="MS dumpbin"
4059: fi
4060: rm -f conftest*
1.7 paf 4061: fi
1.25 moko 4062: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4063: echo "${ECHO_T}$lt_cv_nm_interface" >&6
1.11 paf 4064:
4065: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4066: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4067: LN_S=$as_ln_s
4068: if test "$LN_S" = "ln -s"; then
4069: echo "$as_me:$LINENO: result: yes" >&5
4070: echo "${ECHO_T}yes" >&6
4071: else
4072: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4073: echo "${ECHO_T}no, using $LN_S" >&6
4074: fi
4075:
1.25 moko 4076: # find the maximum length of command line arguments
4077: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4078: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4079: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
1.11 paf 4080: echo $ECHO_N "(cached) $ECHO_C" >&6
4081: else
1.25 moko 4082: i=0
4083: teststring="ABCD"
4084:
4085: case $build_os in
4086: msdosdjgpp*)
4087: # On DJGPP, this test can blow up pretty badly due to problems in libc
4088: # (any single argument exceeding 2000 bytes causes a buffer overrun
4089: # during glob expansion). Even if it were fixed, the result of this
4090: # check would be larger than it should be.
4091: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4092: ;;
1.11 paf 4093:
1.25 moko 4094: gnu*)
4095: # Under GNU Hurd, this test is not required because there is
4096: # no limit to the length of command line arguments.
4097: # Libtool will interpret -1 as no limit whatsoever
4098: lt_cv_sys_max_cmd_len=-1;
4099: ;;
1.7 paf 4100:
1.25 moko 4101: cygwin* | mingw* | cegcc*)
4102: # On Win9x/ME, this test blows up -- it succeeds, but takes
4103: # about 5 minutes as the teststring grows exponentially.
4104: # Worse, since 9x/ME are not pre-emptively multitasking,
4105: # you end up with a "frozen" computer, even though with patience
4106: # the test eventually succeeds (with a max line length of 256k).
4107: # Instead, let's just punt: use the minimum linelength reported by
4108: # all of the supported platforms: 8192 (on NT/2K/XP).
4109: lt_cv_sys_max_cmd_len=8192;
4110: ;;
1.1 parser 4111:
1.25 moko 4112: mint*)
4113: # On MiNT this can take a long time and run out of memory.
4114: lt_cv_sys_max_cmd_len=8192;
4115: ;;
1.1 parser 4116:
1.25 moko 4117: amigaos*)
4118: # On AmigaOS with pdksh, this test takes hours, literally.
4119: # So we just punt and use a minimum line length of 8192.
4120: lt_cv_sys_max_cmd_len=8192;
4121: ;;
1.1 parser 4122:
1.25 moko 4123: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4124: # This has been around since 386BSD, at least. Likely further.
4125: if test -x /sbin/sysctl; then
4126: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4127: elif test -x /usr/sbin/sysctl; then
4128: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4129: else
4130: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4131: fi
4132: # And add a safety zone
4133: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4134: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.11 paf 4135: ;;
1.25 moko 4136:
4137: interix*)
4138: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4139: lt_cv_sys_max_cmd_len=196608
1.11 paf 4140: ;;
1.1 parser 4141:
1.25 moko 4142: os2*)
4143: # The test takes a long time on OS/2.
4144: lt_cv_sys_max_cmd_len=8192
4145: ;;
4146:
4147: osf*)
4148: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4149: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4150: # nice to cause kernel panics so lets avoid the loop below.
4151: # First set a reasonable default.
4152: lt_cv_sys_max_cmd_len=16384
4153: #
4154: if test -x /sbin/sysconfig; then
4155: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4156: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4157: esac
4158: fi
4159: ;;
4160: sco3.2v5*)
4161: lt_cv_sys_max_cmd_len=102400
4162: ;;
4163: sysv5* | sco5v6* | sysv4.2uw2*)
4164: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4165: if test -n "$kargmax"; then
4166: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4167: else
4168: lt_cv_sys_max_cmd_len=32768
4169: fi
4170: ;;
4171: *)
4172: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4173: if test -n "$lt_cv_sys_max_cmd_len"; then
4174: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4175: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4176: else
4177: # Make teststring a little bigger before we do anything with it.
4178: # a 1K string should be a reasonable start.
4179: for i in 1 2 3 4 5 6 7 8 ; do
4180: teststring=$teststring$teststring
4181: done
4182: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4183: # If test is not a shell built-in, we'll probably end up computing a
4184: # maximum length that is only half of the actual maximum length, but
4185: # we can't tell.
4186: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4187: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4188: test $i != 17 # 1/2 MB should be enough
4189: do
4190: i=`expr $i + 1`
4191: teststring=$teststring$teststring
4192: done
4193: # Only check the string length outside the loop.
4194: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4195: teststring=
4196: # Add a significant safety factor because C++ compilers can tack on
4197: # massive amounts of additional arguments before passing them to the
4198: # linker. It appears as though 1/2 is a usable value.
4199: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4200: fi
4201: ;;
4202: esac
4203:
4204: fi
4205:
4206: if test -n $lt_cv_sys_max_cmd_len ; then
4207: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4208: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4209: else
4210: echo "$as_me:$LINENO: result: none" >&5
4211: echo "${ECHO_T}none" >&6
4212: fi
4213: max_cmd_len=$lt_cv_sys_max_cmd_len
4214:
4215:
4216:
4217:
4218:
4219:
4220: : ${CP="cp -f"}
4221: : ${MV="mv -f"}
4222: : ${RM="rm -f"}
4223:
4224: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4225: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4226: # Try some XSI features
4227: xsi_shell=no
4228: ( _lt_dummy="a/b/c"
4229: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4230: = c,a/b,b/c, \
4231: && eval 'test $(( 1 + 1 )) -eq 2 \
4232: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4233: && xsi_shell=yes
4234: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4235: echo "${ECHO_T}$xsi_shell" >&6
4236:
4237:
4238: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4239: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4240: lt_shell_append=no
4241: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4242: >/dev/null 2>&1 \
4243: && lt_shell_append=yes
4244: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4245: echo "${ECHO_T}$lt_shell_append" >&6
4246:
4247:
4248: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4249: lt_unset=unset
4250: else
4251: lt_unset=false
4252: fi
4253:
4254:
4255:
4256:
4257:
4258: # test EBCDIC or ASCII
4259: case `echo X|tr X '\101'` in
4260: A) # ASCII based system
4261: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4262: lt_SP2NL='tr \040 \012'
4263: lt_NL2SP='tr \015\012 \040\040'
4264: ;;
4265: *) # EBCDIC based system
4266: lt_SP2NL='tr \100 \n'
4267: lt_NL2SP='tr \r\n \100\100'
4268: ;;
4269: esac
4270:
4271:
4272:
4273:
4274:
4275:
4276:
4277:
4278:
4279: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4280: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4281: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4282: echo $ECHO_N "(cached) $ECHO_C" >&6
4283: else
4284: case $host in
4285: *-*-mingw* )
4286: case $build in
4287: *-*-mingw* ) # actually msys
4288: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4289: ;;
4290: *-*-cygwin* )
4291: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4292: ;;
4293: * ) # otherwise, assume *nix
4294: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4295: ;;
4296: esac
4297: ;;
4298: *-*-cygwin* )
4299: case $build in
4300: *-*-mingw* ) # actually msys
4301: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4302: ;;
4303: *-*-cygwin* )
4304: lt_cv_to_host_file_cmd=func_convert_file_noop
4305: ;;
4306: * ) # otherwise, assume *nix
4307: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4308: ;;
4309: esac
4310: ;;
4311: * ) # unhandled hosts (and "normal" native builds)
4312: lt_cv_to_host_file_cmd=func_convert_file_noop
4313: ;;
4314: esac
4315:
4316: fi
4317:
4318: to_host_file_cmd=$lt_cv_to_host_file_cmd
4319: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4320: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4321:
4322:
4323:
4324:
4325:
4326: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4327: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4328: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4329: echo $ECHO_N "(cached) $ECHO_C" >&6
4330: else
4331: #assume ordinary cross tools, or native build.
4332: lt_cv_to_tool_file_cmd=func_convert_file_noop
4333: case $host in
4334: *-*-mingw* )
4335: case $build in
4336: *-*-mingw* ) # actually msys
4337: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4338: ;;
4339: esac
4340: ;;
4341: esac
4342:
4343: fi
4344:
4345: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4346: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4347: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4348:
4349:
4350:
4351:
4352:
4353: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4354: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4355: if test "${lt_cv_ld_reload_flag+set}" = set; then
4356: echo $ECHO_N "(cached) $ECHO_C" >&6
4357: else
4358: lt_cv_ld_reload_flag='-r'
4359: fi
4360: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4361: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4362: reload_flag=$lt_cv_ld_reload_flag
4363: case $reload_flag in
4364: "" | " "*) ;;
4365: *) reload_flag=" $reload_flag" ;;
4366: esac
4367: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4368: case $host_os in
4369: cygwin* | mingw* | pw32* | cegcc*)
4370: if test "$GCC" != yes; then
4371: reload_cmds=false
4372: fi
4373: ;;
4374: darwin*)
4375: if test "$GCC" = yes; then
4376: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4377: else
4378: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4379: fi
4380: ;;
4381: esac
4382:
4383:
4384:
4385:
4386:
4387:
4388:
4389:
4390:
4391: if test -n "$ac_tool_prefix"; then
4392: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4393: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4394: echo "$as_me:$LINENO: checking for $ac_word" >&5
4395: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4397: echo $ECHO_N "(cached) $ECHO_C" >&6
4398: else
4399: if test -n "$OBJDUMP"; then
4400: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4401: else
4402: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403: for as_dir in $PATH
4404: do
4405: IFS=$as_save_IFS
4406: test -z "$as_dir" && as_dir=.
4407: for ac_exec_ext in '' $ac_executable_extensions; do
4408: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4410: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411: break 2
4412: fi
4413: done
4414: done
4415:
4416: fi
4417: fi
4418: OBJDUMP=$ac_cv_prog_OBJDUMP
4419: if test -n "$OBJDUMP"; then
4420: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4421: echo "${ECHO_T}$OBJDUMP" >&6
4422: else
4423: echo "$as_me:$LINENO: result: no" >&5
4424: echo "${ECHO_T}no" >&6
4425: fi
4426:
4427: fi
4428: if test -z "$ac_cv_prog_OBJDUMP"; then
4429: ac_ct_OBJDUMP=$OBJDUMP
4430: # Extract the first word of "objdump", so it can be a program name with args.
4431: set dummy objdump; ac_word=$2
4432: echo "$as_me:$LINENO: checking for $ac_word" >&5
4433: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4435: echo $ECHO_N "(cached) $ECHO_C" >&6
4436: else
4437: if test -n "$ac_ct_OBJDUMP"; then
4438: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4439: else
4440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441: for as_dir in $PATH
4442: do
4443: IFS=$as_save_IFS
4444: test -z "$as_dir" && as_dir=.
4445: for ac_exec_ext in '' $ac_executable_extensions; do
4446: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4448: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449: break 2
4450: fi
4451: done
4452: done
4453:
4454: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4455: fi
4456: fi
4457: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4458: if test -n "$ac_ct_OBJDUMP"; then
4459: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4460: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4461: else
4462: echo "$as_me:$LINENO: result: no" >&5
4463: echo "${ECHO_T}no" >&6
4464: fi
4465:
4466: OBJDUMP=$ac_ct_OBJDUMP
4467: else
4468: OBJDUMP="$ac_cv_prog_OBJDUMP"
4469: fi
4470:
4471: test -z "$OBJDUMP" && OBJDUMP=objdump
4472:
4473:
4474:
4475:
4476:
4477:
4478: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4479: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4480: if test "${lt_cv_deplibs_check_method+set}" = set; then
4481: echo $ECHO_N "(cached) $ECHO_C" >&6
4482: else
4483: lt_cv_file_magic_cmd='$MAGIC_CMD'
4484: lt_cv_file_magic_test_file=
4485: lt_cv_deplibs_check_method='unknown'
4486: # Need to set the preceding variable on all platforms that support
4487: # interlibrary dependencies.
4488: # 'none' -- dependencies not supported.
4489: # `unknown' -- same as none, but documents that we really don't know.
4490: # 'pass_all' -- all dependencies passed with no checks.
4491: # 'test_compile' -- check by making test program.
4492: # 'file_magic [[regex]]' -- check by looking for files in library path
4493: # which responds to the $file_magic_cmd with a given extended regex.
4494: # If you have `file' or equivalent on your system and you're not sure
4495: # whether `pass_all' will *always* work, you probably want this one.
4496:
4497: case $host_os in
4498: aix[4-9]*)
4499: lt_cv_deplibs_check_method=pass_all
4500: ;;
4501:
4502: beos*)
4503: lt_cv_deplibs_check_method=pass_all
4504: ;;
4505:
4506: bsdi[45]*)
4507: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4508: lt_cv_file_magic_cmd='/usr/bin/file -L'
4509: lt_cv_file_magic_test_file=/shlib/libc.so
4510: ;;
4511:
4512: cygwin*)
4513: # func_win32_libid is a shell function defined in ltmain.sh
4514: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4515: lt_cv_file_magic_cmd='func_win32_libid'
4516: ;;
4517:
4518: mingw* | pw32*)
4519: # Base MSYS/MinGW do not provide the 'file' command needed by
4520: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4521: # unless we find 'file', for example because we are cross-compiling.
4522: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4523: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4524: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4525: lt_cv_file_magic_cmd='func_win32_libid'
4526: else
4527: # Keep this pattern in sync with the one in func_win32_libid.
4528: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4529: lt_cv_file_magic_cmd='$OBJDUMP -f'
4530: fi
4531: ;;
4532:
4533: cegcc*)
4534: # use the weaker test based on 'objdump'. See mingw*.
4535: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4536: lt_cv_file_magic_cmd='$OBJDUMP -f'
4537: ;;
4538:
4539: darwin* | rhapsody*)
4540: lt_cv_deplibs_check_method=pass_all
4541: ;;
4542:
4543: freebsd* | dragonfly*)
4544: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.11 paf 4545: case $host_cpu in
4546: i*86 )
4547: # Not sure whether the presence of OpenBSD here was a mistake.
4548: # Let's accept both of them until this is cleared up.
1.25 moko 4549: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.11 paf 4550: lt_cv_file_magic_cmd=/usr/bin/file
4551: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4552: ;;
4553: esac
1.11 paf 4554: else
4555: lt_cv_deplibs_check_method=pass_all
1.1 parser 4556: fi
4557: ;;
4558:
1.11 paf 4559: gnu*)
4560: lt_cv_deplibs_check_method=pass_all
4561: ;;
1.1 parser 4562:
1.25 moko 4563: haiku*)
4564: lt_cv_deplibs_check_method=pass_all
1.11 paf 4565: ;;
1.1 parser 4566:
1.25 moko 4567: hpux10.20* | hpux11*)
4568: lt_cv_file_magic_cmd=/usr/bin/file
4569: case $host_cpu in
4570: ia64*)
4571: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4572: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4573: ;;
4574: hppa*64*)
4575: 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]'
4576: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.11 paf 4577: ;;
4578: *)
1.25 moko 4579: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4580: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.11 paf 4581: ;;
4582: esac
1.25 moko 4583: ;;
4584:
4585: interix[3-9]*)
4586: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4587: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4588: ;;
4589:
4590: irix5* | irix6* | nonstopux*)
4591: case $LD in
4592: *-32|*"-32 ") libmagic=32-bit;;
4593: *-n32|*"-n32 ") libmagic=N32;;
4594: *-64|*"-64 ") libmagic=64-bit;;
4595: *) libmagic=never-match;;
4596: esac
1.11 paf 4597: lt_cv_deplibs_check_method=pass_all
4598: ;;
4599:
1.25 moko 4600: # This must be glibc/ELF.
4601: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4602: lt_cv_deplibs_check_method=pass_all
1.11 paf 4603: ;;
4604:
4605: netbsd*)
1.25 moko 4606: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4607: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 4608: else
1.25 moko 4609: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.11 paf 4610: fi
4611: ;;
4612:
4613: newos6*)
4614: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4615: lt_cv_file_magic_cmd=/usr/bin/file
4616: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4617: ;;
4618:
1.25 moko 4619: *nto* | *qnx*)
4620: lt_cv_deplibs_check_method=pass_all
4621: ;;
4622:
1.11 paf 4623: openbsd*)
1.25 moko 4624: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4625: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.11 paf 4626: else
1.25 moko 4627: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.11 paf 4628: fi
4629: ;;
4630:
4631: osf3* | osf4* | osf5*)
4632: lt_cv_deplibs_check_method=pass_all
4633: ;;
4634:
1.25 moko 4635: rdos*)
1.11 paf 4636: lt_cv_deplibs_check_method=pass_all
4637: ;;
4638:
4639: solaris*)
4640: lt_cv_deplibs_check_method=pass_all
4641: ;;
4642:
1.25 moko 4643: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.11 paf 4644: lt_cv_deplibs_check_method=pass_all
4645: ;;
4646:
1.25 moko 4647: sysv4 | sysv4.3*)
1.11 paf 4648: case $host_vendor in
4649: motorola)
4650: 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]'
4651: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4652: ;;
4653: ncr)
4654: lt_cv_deplibs_check_method=pass_all
4655: ;;
4656: sequent)
4657: lt_cv_file_magic_cmd='/bin/file'
4658: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4659: ;;
4660: sni)
4661: lt_cv_file_magic_cmd='/bin/file'
4662: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4663: lt_cv_file_magic_test_file=/lib/libc.so
4664: ;;
4665: siemens)
4666: lt_cv_deplibs_check_method=pass_all
4667: ;;
1.25 moko 4668: pc)
4669: lt_cv_deplibs_check_method=pass_all
4670: ;;
1.11 paf 4671: esac
4672: ;;
1.25 moko 4673:
4674: tpf*)
4675: lt_cv_deplibs_check_method=pass_all
4676: ;;
4677: esac
1.11 paf 4678:
4679: fi
4680: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4681: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.25 moko 4682:
4683: file_magic_glob=
4684: want_nocaseglob=no
4685: if test "$build" = "$host"; then
4686: case $host_os in
4687: mingw* | pw32*)
4688: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4689: want_nocaseglob=yes
4690: else
4691: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4692: fi
4693: ;;
4694: esac
4695: fi
4696:
1.11 paf 4697: file_magic_cmd=$lt_cv_file_magic_cmd
4698: deplibs_check_method=$lt_cv_deplibs_check_method
1.25 moko 4699: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4700:
4701:
4702:
1.11 paf 4703:
4704:
4705:
4706:
4707:
4708:
4709:
4710:
1.25 moko 4711:
4712:
4713:
4714:
4715:
4716:
4717:
4718:
4719:
4720:
4721:
4722: if test -n "$ac_tool_prefix"; then
4723: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4724: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4725: echo "$as_me:$LINENO: checking for $ac_word" >&5
4726: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4727: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4728: echo $ECHO_N "(cached) $ECHO_C" >&6
4729: else
4730: if test -n "$DLLTOOL"; then
4731: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4732: else
4733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734: for as_dir in $PATH
4735: do
4736: IFS=$as_save_IFS
4737: test -z "$as_dir" && as_dir=.
4738: for ac_exec_ext in '' $ac_executable_extensions; do
4739: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4741: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742: break 2
4743: fi
4744: done
4745: done
4746:
4747: fi
4748: fi
4749: DLLTOOL=$ac_cv_prog_DLLTOOL
4750: if test -n "$DLLTOOL"; then
4751: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4752: echo "${ECHO_T}$DLLTOOL" >&6
4753: else
4754: echo "$as_me:$LINENO: result: no" >&5
4755: echo "${ECHO_T}no" >&6
4756: fi
4757:
4758: fi
4759: if test -z "$ac_cv_prog_DLLTOOL"; then
4760: ac_ct_DLLTOOL=$DLLTOOL
4761: # Extract the first word of "dlltool", so it can be a program name with args.
4762: set dummy dlltool; ac_word=$2
4763: echo "$as_me:$LINENO: checking for $ac_word" >&5
4764: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.11 paf 4766: echo $ECHO_N "(cached) $ECHO_C" >&6
4767: else
1.25 moko 4768: if test -n "$ac_ct_DLLTOOL"; then
4769: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4770: else
4771: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772: for as_dir in $PATH
4773: do
4774: IFS=$as_save_IFS
4775: test -z "$as_dir" && as_dir=.
4776: for ac_exec_ext in '' $ac_executable_extensions; do
4777: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4779: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780: break 2
4781: fi
4782: done
4783: done
4784:
4785: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4786: fi
4787: fi
4788: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4789: if test -n "$ac_ct_DLLTOOL"; then
4790: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4791: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4792: else
4793: echo "$as_me:$LINENO: result: no" >&5
4794: echo "${ECHO_T}no" >&6
4795: fi
4796:
4797: DLLTOOL=$ac_ct_DLLTOOL
4798: else
4799: DLLTOOL="$ac_cv_prog_DLLTOOL"
4800: fi
4801:
4802: test -z "$DLLTOOL" && DLLTOOL=dlltool
4803:
1.11 paf 4804:
4805:
4806:
4807:
4808:
4809:
1.25 moko 4810: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4811: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4812: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4813: echo $ECHO_N "(cached) $ECHO_C" >&6
4814: else
4815: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.11 paf 4816:
4817: case $host_os in
1.25 moko 4818: cygwin* | mingw* | pw32* | cegcc*)
4819: # two different shell functions defined in ltmain.sh
4820: # decide which to use based on capabilities of $DLLTOOL
4821: case `$DLLTOOL --help 2>&1` in
4822: *--identify-strict*)
4823: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4824: ;;
4825: *)
4826: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4827: ;;
4828: esac
1.11 paf 4829: ;;
1.25 moko 4830: *)
4831: # fallback: assume linklib IS sharedlib
4832: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.11 paf 4833: ;;
4834: esac
4835:
4836: fi
1.25 moko 4837: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4838: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4839: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4840: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.11 paf 4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848:
1.25 moko 4849: if test -n "$ac_tool_prefix"; then
4850: for ac_prog in ar
4851: do
4852: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854: echo "$as_me:$LINENO: checking for $ac_word" >&5
4855: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856: if test "${ac_cv_prog_AR+set}" = set; then
4857: echo $ECHO_N "(cached) $ECHO_C" >&6
4858: else
4859: if test -n "$AR"; then
4860: ac_cv_prog_AR="$AR" # Let the user override the test.
4861: else
4862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863: for as_dir in $PATH
4864: do
4865: IFS=$as_save_IFS
4866: test -z "$as_dir" && as_dir=.
4867: for ac_exec_ext in '' $ac_executable_extensions; do
4868: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4870: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871: break 2
1.11 paf 4872: fi
4873: done
1.25 moko 4874: done
1.11 paf 4875:
4876: fi
4877: fi
1.25 moko 4878: AR=$ac_cv_prog_AR
4879: if test -n "$AR"; then
4880: echo "$as_me:$LINENO: result: $AR" >&5
4881: echo "${ECHO_T}$AR" >&6
1.11 paf 4882: else
1.25 moko 4883: echo "$as_me:$LINENO: result: no" >&5
4884: echo "${ECHO_T}no" >&6
1.11 paf 4885: fi
4886:
1.25 moko 4887: test -n "$AR" && break
4888: done
1.15 paf 4889: fi
1.25 moko 4890: if test -z "$AR"; then
4891: ac_ct_AR=$AR
4892: for ac_prog in ar
4893: do
4894: # Extract the first word of "$ac_prog", so it can be a program name with args.
4895: set dummy $ac_prog; ac_word=$2
4896: echo "$as_me:$LINENO: checking for $ac_word" >&5
4897: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.11 paf 4899: echo $ECHO_N "(cached) $ECHO_C" >&6
4900: else
1.25 moko 4901: if test -n "$ac_ct_AR"; then
4902: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4903: else
4904: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905: for as_dir in $PATH
1.11 paf 4906: do
1.25 moko 4907: IFS=$as_save_IFS
4908: test -z "$as_dir" && as_dir=.
4909: for ac_exec_ext in '' $ac_executable_extensions; do
4910: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911: ac_cv_prog_ac_ct_AR="$ac_prog"
4912: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913: break 2
1.11 paf 4914: fi
1.25 moko 4915: done
4916: done
1.11 paf 4917:
4918: fi
4919: fi
1.25 moko 4920: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4921: if test -n "$ac_ct_AR"; then
4922: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4923: echo "${ECHO_T}$ac_ct_AR" >&6
1.1 parser 4924: else
1.25 moko 4925: echo "$as_me:$LINENO: result: no" >&5
4926: echo "${ECHO_T}no" >&6
1.1 parser 4927: fi
1.11 paf 4928:
1.25 moko 4929: test -n "$ac_ct_AR" && break
1.11 paf 4930: done
1.25 moko 4931: test -n "$ac_ct_AR" || ac_ct_AR="false"
4932:
4933: AR=$ac_ct_AR
1.1 parser 4934: fi
4935:
1.25 moko 4936: : ${AR=ar}
4937: : ${AR_FLAGS=cru}
4938:
1.11 paf 4939:
4940:
1.1 parser 4941:
1.11 paf 4942:
4943:
4944:
4945:
4946:
4947:
4948:
1.25 moko 4949: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4950: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4951: if test "${lt_cv_ar_at_file+set}" = set; then
1.11 paf 4952: echo $ECHO_N "(cached) $ECHO_C" >&6
4953: else
1.25 moko 4954: lt_cv_ar_at_file=no
4955: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 4956: /* confdefs.h. */
4957: _ACEOF
4958: cat confdefs.h >>conftest.$ac_ext
4959: cat >>conftest.$ac_ext <<_ACEOF
4960: /* end confdefs.h. */
4961:
4962: int
4963: main ()
4964: {
4965:
4966: ;
4967: return 0;
4968: }
4969: _ACEOF
4970: rm -f conftest.$ac_objext
4971: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.18 paf 4972: (eval $ac_compile) 2>conftest.er1
1.11 paf 4973: ac_status=$?
1.18 paf 4974: grep -v '^ *+' conftest.er1 >conftest.err
4975: rm -f conftest.er1
4976: cat conftest.err >&5
1.11 paf 4977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978: (exit $ac_status); } &&
1.18 paf 4979: { ac_try='test -z "$ac_c_werror_flag"
4980: || test ! -s conftest.err'
4981: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982: (eval $ac_try) 2>&5
4983: ac_status=$?
4984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985: (exit $ac_status); }; } &&
4986: { ac_try='test -s conftest.$ac_objext'
1.11 paf 4987: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988: (eval $ac_try) 2>&5
4989: ac_status=$?
4990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991: (exit $ac_status); }; }; then
1.25 moko 4992: echo conftest.$ac_objext > conftest.lst
4993: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4994: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
4995: (eval $lt_ar_try) 2>&5
4996: ac_status=$?
4997: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998: (exit $ac_status); }
4999: if test "$ac_status" -eq 0; then
5000: # Ensure the archiver fails upon bogus file names.
5001: rm -f conftest.$ac_objext libconftest.a
5002: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5003: (eval $lt_ar_try) 2>&5
5004: ac_status=$?
5005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006: (exit $ac_status); }
5007: if test "$ac_status" -ne 0; then
5008: lt_cv_ar_at_file=@
5009: fi
5010: fi
5011: rm -f conftest.* libconftest.a
5012:
1.11 paf 5013: else
5014: echo "$as_me: failed program was:" >&5
5015: sed 's/^/| /' conftest.$ac_ext >&5
5016:
5017: fi
1.18 paf 5018: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 5019:
1.25 moko 5020: fi
5021: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5022: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
1.11 paf 5023:
1.25 moko 5024: if test "x$lt_cv_ar_at_file" = xno; then
5025: archiver_list_spec=
1.11 paf 5026: else
1.25 moko 5027: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5028: fi
5029:
5030:
5031:
1.25 moko 5032:
5033:
5034:
5035:
5036: if test -n "$ac_tool_prefix"; then
5037: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5038: set dummy ${ac_tool_prefix}strip; ac_word=$2
5039: echo "$as_me:$LINENO: checking for $ac_word" >&5
5040: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041: if test "${ac_cv_prog_STRIP+set}" = set; then
5042: echo $ECHO_N "(cached) $ECHO_C" >&6
5043: else
5044: if test -n "$STRIP"; then
5045: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5046: else
5047: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048: for as_dir in $PATH
5049: do
5050: IFS=$as_save_IFS
5051: test -z "$as_dir" && as_dir=.
5052: for ac_exec_ext in '' $ac_executable_extensions; do
5053: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5055: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056: break 2
5057: fi
5058: done
5059: done
5060:
5061: fi
5062: fi
5063: STRIP=$ac_cv_prog_STRIP
5064: if test -n "$STRIP"; then
5065: echo "$as_me:$LINENO: result: $STRIP" >&5
5066: echo "${ECHO_T}$STRIP" >&6
1.7 paf 5067: else
1.25 moko 5068: echo "$as_me:$LINENO: result: no" >&5
5069: echo "${ECHO_T}no" >&6
1.11 paf 5070: fi
5071:
1.7 paf 5072: fi
1.25 moko 5073: if test -z "$ac_cv_prog_STRIP"; then
5074: ac_ct_STRIP=$STRIP
5075: # Extract the first word of "strip", so it can be a program name with args.
5076: set dummy strip; ac_word=$2
5077: echo "$as_me:$LINENO: checking for $ac_word" >&5
5078: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5079: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5080: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 5081: else
1.25 moko 5082: if test -n "$ac_ct_STRIP"; then
5083: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.7 paf 5084: else
1.25 moko 5085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086: for as_dir in $PATH
5087: do
5088: IFS=$as_save_IFS
5089: test -z "$as_dir" && as_dir=.
5090: for ac_exec_ext in '' $ac_executable_extensions; do
5091: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092: ac_cv_prog_ac_ct_STRIP="strip"
5093: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094: break 2
5095: fi
5096: done
5097: done
1.11 paf 5098:
1.25 moko 5099: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.11 paf 5100: fi
5101: fi
1.25 moko 5102: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5103: if test -n "$ac_ct_STRIP"; then
5104: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5105: echo "${ECHO_T}$ac_ct_STRIP" >&6
5106: else
5107: echo "$as_me:$LINENO: result: no" >&5
5108: echo "${ECHO_T}no" >&6
1.11 paf 5109: fi
5110:
1.25 moko 5111: STRIP=$ac_ct_STRIP
5112: else
5113: STRIP="$ac_cv_prog_STRIP"
1.11 paf 5114: fi
5115:
1.25 moko 5116: test -z "$STRIP" && STRIP=:
1.11 paf 5117:
5118:
5119:
5120:
5121:
5122:
1.25 moko 5123: if test -n "$ac_tool_prefix"; then
5124: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5125: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5126: echo "$as_me:$LINENO: checking for $ac_word" >&5
5127: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5128: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.11 paf 5129: echo $ECHO_N "(cached) $ECHO_C" >&6
5130: else
1.25 moko 5131: if test -n "$RANLIB"; then
5132: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.11 paf 5133: else
1.25 moko 5134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135: for as_dir in $PATH
5136: do
5137: IFS=$as_save_IFS
5138: test -z "$as_dir" && as_dir=.
5139: for ac_exec_ext in '' $ac_executable_extensions; do
5140: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5142: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143: break 2
5144: fi
5145: done
5146: done
1.11 paf 5147:
5148: fi
5149: fi
1.25 moko 5150: RANLIB=$ac_cv_prog_RANLIB
5151: if test -n "$RANLIB"; then
5152: echo "$as_me:$LINENO: result: $RANLIB" >&5
5153: echo "${ECHO_T}$RANLIB" >&6
5154: else
5155: echo "$as_me:$LINENO: result: no" >&5
5156: echo "${ECHO_T}no" >&6
5157: fi
1.11 paf 5158:
5159: fi
1.25 moko 5160: if test -z "$ac_cv_prog_RANLIB"; then
5161: ac_ct_RANLIB=$RANLIB
5162: # Extract the first word of "ranlib", so it can be a program name with args.
5163: set dummy ranlib; ac_word=$2
5164: echo "$as_me:$LINENO: checking for $ac_word" >&5
5165: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5166: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167: echo $ECHO_N "(cached) $ECHO_C" >&6
5168: else
5169: if test -n "$ac_ct_RANLIB"; then
5170: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171: else
5172: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173: for as_dir in $PATH
5174: do
5175: IFS=$as_save_IFS
5176: test -z "$as_dir" && as_dir=.
5177: for ac_exec_ext in '' $ac_executable_extensions; do
5178: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179: ac_cv_prog_ac_ct_RANLIB="ranlib"
5180: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181: break 2
5182: fi
5183: done
1.11 paf 5184: done
5185:
1.25 moko 5186: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5187: fi
5188: fi
5189: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190: if test -n "$ac_ct_RANLIB"; then
5191: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.11 paf 5193: else
1.25 moko 5194: echo "$as_me:$LINENO: result: no" >&5
5195: echo "${ECHO_T}no" >&6
1.11 paf 5196: fi
5197:
1.25 moko 5198: RANLIB=$ac_ct_RANLIB
1.7 paf 5199: else
1.25 moko 5200: RANLIB="$ac_cv_prog_RANLIB"
1.7 paf 5201: fi
1.11 paf 5202:
1.25 moko 5203: test -z "$RANLIB" && RANLIB=:
5204:
5205:
5206:
5207:
5208:
5209:
5210: # Determine commands to create old-style static archives.
5211: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5212: old_postinstall_cmds='chmod 644 $oldlib'
5213: old_postuninstall_cmds=
1.11 paf 5214:
1.25 moko 5215: if test -n "$RANLIB"; then
5216: case $host_os in
5217: openbsd*)
5218: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.11 paf 5219: ;;
1.25 moko 5220: *)
5221: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 5222: ;;
1.25 moko 5223: esac
5224: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.11 paf 5225: fi
5226:
1.25 moko 5227: case $host_os in
5228: darwin*)
5229: lock_old_archive_extraction=yes ;;
5230: *)
5231: lock_old_archive_extraction=no ;;
5232: esac
1.11 paf 5233:
5234:
5235:
5236:
5237:
5238:
5239:
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:
1.25 moko 5272: # If no C compiler was specified, use CC.
5273: LTCC=${LTCC-"$CC"}
1.11 paf 5274:
1.25 moko 5275: # If no C compiler flags were specified, use CFLAGS.
5276: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.11 paf 5277:
1.25 moko 5278: # Allow CC to be a program name with arguments.
5279: compiler=$CC
1.11 paf 5280:
5281:
1.25 moko 5282: # Check for command to grab the raw symbol name followed by C symbol from nm.
5283: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5284: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5285: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5286: echo $ECHO_N "(cached) $ECHO_C" >&6
5287: else
5288:
5289: # These are sane defaults that work on at least a few old systems.
5290: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.11 paf 5291:
1.25 moko 5292: # Character class describing NM global symbol codes.
5293: symcode='[BCDEGRST]'
1.11 paf 5294:
1.25 moko 5295: # Regexp to match symbols that can be accessed directly from C.
5296: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.11 paf 5297:
1.25 moko 5298: # Define system-specific variables.
5299: case $host_os in
5300: aix*)
5301: symcode='[BCDT]'
5302: ;;
5303: cygwin* | mingw* | pw32* | cegcc*)
5304: symcode='[ABCDGISTW]'
5305: ;;
5306: hpux*)
5307: if test "$host_cpu" = ia64; then
5308: symcode='[ABCDEGRST]'
5309: fi
5310: ;;
5311: irix* | nonstopux*)
5312: symcode='[BCDEGRST]'
5313: ;;
5314: osf*)
5315: symcode='[BCDEGQRST]'
5316: ;;
5317: solaris*)
5318: symcode='[BDRT]'
5319: ;;
5320: sco3.2v5*)
5321: symcode='[DT]'
5322: ;;
5323: sysv4.2uw2*)
5324: symcode='[DT]'
5325: ;;
5326: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5327: symcode='[ABDT]'
5328: ;;
5329: sysv4)
5330: symcode='[DFNSTU]'
5331: ;;
5332: esac
1.11 paf 5333:
1.25 moko 5334: # If we're using GNU nm, then use its standard symbol codes.
5335: case `$NM -V 2>&1` in
5336: *GNU* | *'with BFD'*)
5337: symcode='[ABCDGIRSTW]' ;;
5338: esac
1.11 paf 5339:
1.25 moko 5340: # Transform an extracted symbol line into a proper C declaration.
5341: # Some systems (esp. on ia64) link data and code symbols differently,
5342: # so use this general approach.
5343: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.11 paf 5344:
1.25 moko 5345: # Transform an extracted symbol line into symbol name and symbol address
5346: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5347: 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'"
1.11 paf 5348:
1.25 moko 5349: # Handle CRLF in mingw tool chain
5350: opt_cr=
5351: case $build_os in
5352: mingw*)
5353: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5354: ;;
5355: esac
1.11 paf 5356:
1.25 moko 5357: # Try without a prefix underscore, then with it.
5358: for ac_symprfx in "" "_"; do
1.11 paf 5359:
1.25 moko 5360: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5361: symxfrm="\\1 $ac_symprfx\\2 \\2"
1.11 paf 5362:
1.25 moko 5363: # Write the raw and C identifiers.
5364: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5365: # Fake it for dumpbin and say T for any non-static function
5366: # and D for any global variable.
5367: # Also find C++ and __fastcall symbols from MSVC++,
5368: # which start with @ or ?.
5369: lt_cv_sys_global_symbol_pipe="$AWK '"\
5370: " {last_section=section; section=\$ 3};"\
5371: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5372: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5373: " \$ 0!~/External *\|/{next};"\
5374: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5375: " {if(hide[section]) next};"\
5376: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5377: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5378: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5379: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5380: " ' prfx=^$ac_symprfx"
5381: else
5382: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.11 paf 5383: fi
1.25 moko 5384: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
1.11 paf 5385:
1.25 moko 5386: # Check to see that the pipe works correctly.
5387: pipe_works=no
1.11 paf 5388:
1.25 moko 5389: rm -f conftest*
5390: cat > conftest.$ac_ext <<_LT_EOF
5391: #ifdef __cplusplus
5392: extern "C" {
5393: #endif
5394: char nm_test_var;
5395: void nm_test_func(void);
5396: void nm_test_func(void){}
5397: #ifdef __cplusplus
5398: }
5399: #endif
5400: int main(){nm_test_var='a';nm_test_func();return(0);}
5401: _LT_EOF
1.11 paf 5402:
1.25 moko 5403: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404: (eval $ac_compile) 2>&5
5405: ac_status=$?
5406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407: (exit $ac_status); }; then
5408: # Now try to grab the symbols.
5409: nlist=conftest.nm
5410: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5411: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5412: ac_status=$?
5413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414: (exit $ac_status); } && test -s "$nlist"; then
5415: # Try sorting and uniquifying the output.
5416: if sort "$nlist" | uniq > "$nlist"T; then
5417: mv -f "$nlist"T "$nlist"
5418: else
5419: rm -f "$nlist"T
5420: fi
1.11 paf 5421:
1.25 moko 5422: # Make sure that we snagged all the symbols we need.
5423: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5424: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5425: cat <<_LT_EOF > conftest.$ac_ext
5426: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5427: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5428: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5429: relocations are performed -- see ld's documentation on pseudo-relocs. */
5430: # define LT_DLSYM_CONST
5431: #elif defined(__osf__)
5432: /* This system does not cope well with relocations in const data. */
5433: # define LT_DLSYM_CONST
5434: #else
5435: # define LT_DLSYM_CONST const
5436: #endif
1.11 paf 5437:
1.25 moko 5438: #ifdef __cplusplus
5439: extern "C" {
5440: #endif
1.11 paf 5441:
1.25 moko 5442: _LT_EOF
5443: # Now generate the symbol file.
5444: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.11 paf 5445:
1.25 moko 5446: cat <<_LT_EOF >> conftest.$ac_ext
1.11 paf 5447:
1.25 moko 5448: /* The mapping between symbol names and symbols. */
5449: LT_DLSYM_CONST struct {
5450: const char *name;
5451: void *address;
5452: }
5453: lt__PROGRAM__LTX_preloaded_symbols[] =
5454: {
5455: { "@PROGRAM@", (void *) 0 },
5456: _LT_EOF
5457: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5458: cat <<\_LT_EOF >> conftest.$ac_ext
5459: {0, (void *) 0}
5460: };
1.11 paf 5461:
1.25 moko 5462: /* This works around a problem in FreeBSD linker */
5463: #ifdef FREEBSD_WORKAROUND
5464: static const void *lt_preloaded_setup() {
5465: return lt__PROGRAM__LTX_preloaded_symbols;
5466: }
5467: #endif
1.11 paf 5468:
1.25 moko 5469: #ifdef __cplusplus
5470: }
5471: #endif
5472: _LT_EOF
5473: # Now try linking the two files.
5474: mv conftest.$ac_objext conftstm.$ac_objext
5475: lt_globsym_save_LIBS=$LIBS
5476: lt_globsym_save_CFLAGS=$CFLAGS
5477: LIBS="conftstm.$ac_objext"
5478: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5479: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480: (eval $ac_link) 2>&5
5481: ac_status=$?
5482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5484: pipe_works=yes
5485: fi
5486: LIBS=$lt_globsym_save_LIBS
5487: CFLAGS=$lt_globsym_save_CFLAGS
5488: else
5489: echo "cannot find nm_test_func in $nlist" >&5
5490: fi
5491: else
5492: echo "cannot find nm_test_var in $nlist" >&5
1.11 paf 5493: fi
1.25 moko 5494: else
5495: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5496: fi
5497: else
5498: echo "$progname: failed program was:" >&5
5499: cat conftest.$ac_ext >&5
5500: fi
5501: rm -rf conftest* conftst*
5502:
5503: # Do not use the global_symbol_pipe unless it works.
5504: if test "$pipe_works" = yes; then
5505: break
1.11 paf 5506: else
1.25 moko 5507: lt_cv_sys_global_symbol_pipe=
5508: fi
5509: done
5510:
5511: fi
1.11 paf 5512:
1.25 moko 5513: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5514: lt_cv_sys_global_symbol_to_cdecl=
5515: fi
5516: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5517: echo "$as_me:$LINENO: result: failed" >&5
5518: echo "${ECHO_T}failed" >&6
5519: else
5520: echo "$as_me:$LINENO: result: ok" >&5
5521: echo "${ECHO_T}ok" >&6
5522: fi
1.11 paf 5523:
1.25 moko 5524: # Response file support.
5525: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5526: nm_file_list_spec='@'
5527: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5528: nm_file_list_spec='@'
5529: fi
1.11 paf 5530:
5531:
5532:
5533:
5534:
5535:
5536:
5537:
5538:
5539:
5540:
5541:
1.25 moko 5542:
5543:
5544:
5545:
5546:
5547:
5548:
5549:
5550:
5551:
5552:
5553:
5554:
5555:
5556:
5557: echo "$as_me:$LINENO: checking for sysroot" >&5
5558: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5559:
5560: # Check whether --with-sysroot or --without-sysroot was given.
5561: if test "${with_sysroot+set}" = set; then
5562: withval="$with_sysroot"
5563:
1.11 paf 5564: else
1.25 moko 5565: with_sysroot=no
5566: fi;
5567:
5568: lt_sysroot=
5569: case ${with_sysroot} in #(
5570: yes)
5571: if test "$GCC" = yes; then
5572: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5573: fi
5574: ;; #(
5575: /*)
5576: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5577: ;; #(
5578: no|'')
5579: ;; #(
5580: *)
5581: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5582: echo "${ECHO_T}${with_sysroot}" >&6
5583: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5584: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5585: { (exit 1); exit 1; }; }
5586: ;;
5587: esac
5588:
5589: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5590: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5591:
5592:
1.11 paf 5593:
5594:
5595:
1.25 moko 5596: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5597: if test "${enable_libtool_lock+set}" = set; then
5598: enableval="$enable_libtool_lock"
5599:
5600: fi;
5601: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5602:
5603: # Some flags need to be propagated to the compiler or linker for good
5604: # libtool support.
5605: case $host in
5606: ia64-*-hpux*)
5607: # Find out which ABI we are using.
5608: echo 'int i;' > conftest.$ac_ext
5609: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610: (eval $ac_compile) 2>&5
1.11 paf 5611: ac_status=$?
5612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5613: (exit $ac_status); }; then
5614: case `/usr/bin/file conftest.$ac_objext` in
5615: *ELF-32*)
5616: HPUX_IA64_MODE="32"
5617: ;;
5618: *ELF-64*)
5619: HPUX_IA64_MODE="64"
5620: ;;
5621: esac
5622: fi
5623: rm -rf conftest*
5624: ;;
5625: *-*-irix6*)
5626: # Find out which ABI we are using.
5627: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5628: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629: (eval $ac_compile) 2>&5
1.18 paf 5630: ac_status=$?
5631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5632: (exit $ac_status); }; then
5633: if test "$lt_cv_prog_gnu_ld" = yes; then
5634: case `/usr/bin/file conftest.$ac_objext` in
5635: *32-bit*)
5636: LD="${LD-ld} -melf32bsmip"
5637: ;;
5638: *N32*)
5639: LD="${LD-ld} -melf32bmipn32"
5640: ;;
5641: *64-bit*)
5642: LD="${LD-ld} -melf64bmip"
5643: ;;
5644: esac
5645: else
5646: case `/usr/bin/file conftest.$ac_objext` in
5647: *32-bit*)
5648: LD="${LD-ld} -32"
5649: ;;
5650: *N32*)
5651: LD="${LD-ld} -n32"
5652: ;;
5653: *64-bit*)
5654: LD="${LD-ld} -64"
5655: ;;
5656: esac
5657: fi
5658: fi
5659: rm -rf conftest*
5660: ;;
5661:
5662: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5663: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5664: # Find out which ABI we are using.
5665: echo 'int i;' > conftest.$ac_ext
5666: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667: (eval $ac_compile) 2>&5
1.11 paf 5668: ac_status=$?
5669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 moko 5670: (exit $ac_status); }; then
5671: case `/usr/bin/file conftest.o` in
5672: *32-bit*)
5673: case $host in
5674: x86_64-*kfreebsd*-gnu)
5675: LD="${LD-ld} -m elf_i386_fbsd"
5676: ;;
5677: x86_64-*linux*)
5678: LD="${LD-ld} -m elf_i386"
5679: ;;
5680: ppc64-*linux*|powerpc64-*linux*)
5681: LD="${LD-ld} -m elf32ppclinux"
5682: ;;
5683: s390x-*linux*)
5684: LD="${LD-ld} -m elf_s390"
5685: ;;
5686: sparc64-*linux*)
5687: LD="${LD-ld} -m elf32_sparc"
5688: ;;
5689: esac
1.11 paf 5690: ;;
1.25 moko 5691: *64-bit*)
5692: case $host in
5693: x86_64-*kfreebsd*-gnu)
5694: LD="${LD-ld} -m elf_x86_64_fbsd"
5695: ;;
5696: x86_64-*linux*)
5697: LD="${LD-ld} -m elf_x86_64"
5698: ;;
5699: ppc*-*linux*|powerpc*-*linux*)
5700: LD="${LD-ld} -m elf64ppc"
5701: ;;
5702: s390*-*linux*|s390*-*tpf*)
5703: LD="${LD-ld} -m elf64_s390"
5704: ;;
5705: sparc*-*linux*)
5706: LD="${LD-ld} -m elf64_sparc"
5707: ;;
5708: esac
1.11 paf 5709: ;;
1.25 moko 5710: esac
1.11 paf 5711: fi
1.25 moko 5712: rm -rf conftest*
5713: ;;
1.11 paf 5714:
1.25 moko 5715: *-*-sco3.2v5*)
5716: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5717: SAVE_CFLAGS="$CFLAGS"
5718: CFLAGS="$CFLAGS -belf"
5719: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5720: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5721: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.11 paf 5722: echo $ECHO_N "(cached) $ECHO_C" >&6
5723: else
1.25 moko 5724: ac_ext=c
5725: ac_cpp='$CPP $CPPFLAGS'
5726: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729:
5730: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 5731: /* confdefs.h. */
5732: _ACEOF
5733: cat confdefs.h >>conftest.$ac_ext
5734: cat >>conftest.$ac_ext <<_ACEOF
5735: /* end confdefs.h. */
5736:
5737: int
5738: main ()
5739: {
5740:
5741: ;
5742: return 0;
5743: }
5744: _ACEOF
5745: rm -f conftest.$ac_objext conftest$ac_exeext
5746: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 5747: (eval $ac_link) 2>conftest.er1
1.11 paf 5748: ac_status=$?
1.18 paf 5749: grep -v '^ *+' conftest.er1 >conftest.err
5750: rm -f conftest.er1
5751: cat conftest.err >&5
1.11 paf 5752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753: (exit $ac_status); } &&
1.18 paf 5754: { ac_try='test -z "$ac_c_werror_flag"
5755: || test ! -s conftest.err'
5756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757: (eval $ac_try) 2>&5
5758: ac_status=$?
5759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760: (exit $ac_status); }; } &&
5761: { ac_try='test -s conftest$ac_exeext'
1.11 paf 5762: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763: (eval $ac_try) 2>&5
5764: ac_status=$?
5765: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766: (exit $ac_status); }; }; then
1.25 moko 5767: lt_cv_cc_needs_belf=yes
1.11 paf 5768: else
5769: echo "$as_me: failed program was:" >&5
5770: sed 's/^/| /' conftest.$ac_ext >&5
5771:
1.25 moko 5772: lt_cv_cc_needs_belf=no
1.11 paf 5773: fi
1.18 paf 5774: rm -f conftest.err conftest.$ac_objext \
5775: conftest$ac_exeext conftest.$ac_ext
1.25 moko 5776: ac_ext=c
5777: ac_cpp='$CPP $CPPFLAGS'
5778: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 5781:
5782: fi
1.25 moko 5783: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5784: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5785: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5786: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5787: CFLAGS="$SAVE_CFLAGS"
5788: fi
5789: ;;
5790: *-*solaris*)
5791: # Find out which ABI we are using.
5792: echo 'int i;' > conftest.$ac_ext
5793: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794: (eval $ac_compile) 2>&5
5795: ac_status=$?
5796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797: (exit $ac_status); }; then
5798: case `/usr/bin/file conftest.o` in
5799: *64-bit*)
5800: case $lt_cv_prog_gnu_ld in
5801: yes*)
5802: case $host in
5803: i?86-*-solaris*)
5804: LD="${LD-ld} -m elf_x86_64"
5805: ;;
5806: sparc*-*-solaris*)
5807: LD="${LD-ld} -m elf64_sparc"
5808: ;;
5809: esac
5810: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5811: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5812: LD="${LD-ld}_sol2"
5813: fi
5814: ;;
5815: *)
5816: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5817: LD="${LD-ld} -64"
5818: fi
5819: ;;
5820: esac
5821: ;;
5822: esac
5823: fi
5824: rm -rf conftest*
5825: ;;
5826: esac
1.11 paf 5827:
1.25 moko 5828: need_locks="$enable_libtool_lock"
1.11 paf 5829:
1.25 moko 5830: if test -n "$ac_tool_prefix"; then
5831: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5832: set dummy ${ac_tool_prefix}mt; ac_word=$2
5833: echo "$as_me:$LINENO: checking for $ac_word" >&5
5834: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
5836: echo $ECHO_N "(cached) $ECHO_C" >&6
5837: else
5838: if test -n "$MANIFEST_TOOL"; then
5839: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5840: else
5841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842: for as_dir in $PATH
5843: do
5844: IFS=$as_save_IFS
5845: test -z "$as_dir" && as_dir=.
5846: for ac_exec_ext in '' $ac_executable_extensions; do
5847: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5849: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850: break 2
5851: fi
5852: done
5853: done
1.11 paf 5854:
1.25 moko 5855: fi
5856: fi
5857: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5858: if test -n "$MANIFEST_TOOL"; then
5859: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5860: echo "${ECHO_T}$MANIFEST_TOOL" >&6
5861: else
5862: echo "$as_me:$LINENO: result: no" >&5
5863: echo "${ECHO_T}no" >&6
5864: fi
1.11 paf 5865:
1.25 moko 5866: fi
5867: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5868: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5869: # Extract the first word of "mt", so it can be a program name with args.
5870: set dummy mt; ac_word=$2
5871: echo "$as_me:$LINENO: checking for $ac_word" >&5
5872: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
1.11 paf 5874: echo $ECHO_N "(cached) $ECHO_C" >&6
5875: else
1.25 moko 5876: if test -n "$ac_ct_MANIFEST_TOOL"; then
5877: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5878: else
5879: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880: for as_dir in $PATH
5881: do
5882: IFS=$as_save_IFS
5883: test -z "$as_dir" && as_dir=.
5884: for ac_exec_ext in '' $ac_executable_extensions; do
5885: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5887: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888: break 2
5889: fi
5890: done
5891: done
1.11 paf 5892:
1.25 moko 5893: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5894: fi
5895: fi
5896: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5897: if test -n "$ac_ct_MANIFEST_TOOL"; then
5898: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5899: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
1.11 paf 5900: else
1.25 moko 5901: echo "$as_me:$LINENO: result: no" >&5
5902: echo "${ECHO_T}no" >&6
1.11 paf 5903: fi
5904:
1.25 moko 5905: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5906: else
5907: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
1.11 paf 5908: fi
5909:
1.25 moko 5910: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5911: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5912: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5913: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.11 paf 5914: echo $ECHO_N "(cached) $ECHO_C" >&6
5915: else
1.25 moko 5916: lt_cv_path_mainfest_tool=no
5917: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5918: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5919: cat conftest.err >&5
5920: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5921: lt_cv_path_mainfest_tool=yes
5922: fi
5923: rm -f conftest*
5924: fi
5925: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5926: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5927: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5928: MANIFEST_TOOL=:
5929: fi
5930:
5931:
5932:
5933:
1.11 paf 5934:
5935:
1.25 moko 5936: case $host_os in
5937: rhapsody* | darwin*)
5938: if test -n "$ac_tool_prefix"; then
5939: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5940: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5941: echo "$as_me:$LINENO: checking for $ac_word" >&5
5942: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5944: echo $ECHO_N "(cached) $ECHO_C" >&6
5945: else
5946: if test -n "$DSYMUTIL"; then
5947: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5948: else
5949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950: for as_dir in $PATH
5951: do
5952: IFS=$as_save_IFS
5953: test -z "$as_dir" && as_dir=.
5954: for ac_exec_ext in '' $ac_executable_extensions; do
5955: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5957: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958: break 2
5959: fi
5960: done
5961: done
1.11 paf 5962:
1.25 moko 5963: fi
5964: fi
5965: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5966: if test -n "$DSYMUTIL"; then
5967: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5968: echo "${ECHO_T}$DSYMUTIL" >&6
1.11 paf 5969: else
1.25 moko 5970: echo "$as_me:$LINENO: result: no" >&5
5971: echo "${ECHO_T}no" >&6
5972: fi
1.11 paf 5973:
5974: fi
1.25 moko 5975: if test -z "$ac_cv_prog_DSYMUTIL"; then
5976: ac_ct_DSYMUTIL=$DSYMUTIL
5977: # Extract the first word of "dsymutil", so it can be a program name with args.
5978: set dummy dsymutil; ac_word=$2
5979: echo "$as_me:$LINENO: checking for $ac_word" >&5
5980: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5982: echo $ECHO_N "(cached) $ECHO_C" >&6
5983: else
5984: if test -n "$ac_ct_DSYMUTIL"; then
5985: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5986: else
5987: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988: for as_dir in $PATH
5989: do
5990: IFS=$as_save_IFS
5991: test -z "$as_dir" && as_dir=.
5992: for ac_exec_ext in '' $ac_executable_extensions; do
5993: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5995: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996: break 2
5997: fi
5998: done
5999: done
1.11 paf 6000:
1.25 moko 6001: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6002: fi
6003: fi
6004: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6005: if test -n "$ac_ct_DSYMUTIL"; then
6006: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6007: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6008: else
6009: echo "$as_me:$LINENO: result: no" >&5
6010: echo "${ECHO_T}no" >&6
1.11 paf 6011: fi
6012:
1.25 moko 6013: DSYMUTIL=$ac_ct_DSYMUTIL
1.11 paf 6014: else
1.25 moko 6015: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.11 paf 6016: fi
6017:
1.25 moko 6018: if test -n "$ac_tool_prefix"; then
6019: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6020: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6021: echo "$as_me:$LINENO: checking for $ac_word" >&5
6022: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6023: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6024: echo $ECHO_N "(cached) $ECHO_C" >&6
6025: else
6026: if test -n "$NMEDIT"; then
6027: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6028: else
6029: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030: for as_dir in $PATH
6031: do
6032: IFS=$as_save_IFS
6033: test -z "$as_dir" && as_dir=.
6034: for ac_exec_ext in '' $ac_executable_extensions; do
6035: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6037: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038: break 2
1.11 paf 6039: fi
1.25 moko 6040: done
6041: done
6042:
6043: fi
6044: fi
6045: NMEDIT=$ac_cv_prog_NMEDIT
6046: if test -n "$NMEDIT"; then
6047: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6048: echo "${ECHO_T}$NMEDIT" >&6
1.11 paf 6049: else
1.25 moko 6050: echo "$as_me:$LINENO: result: no" >&5
6051: echo "${ECHO_T}no" >&6
1.11 paf 6052: fi
6053:
1.25 moko 6054: fi
6055: if test -z "$ac_cv_prog_NMEDIT"; then
6056: ac_ct_NMEDIT=$NMEDIT
6057: # Extract the first word of "nmedit", so it can be a program name with args.
6058: set dummy nmedit; ac_word=$2
6059: echo "$as_me:$LINENO: checking for $ac_word" >&5
6060: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6061: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6062: echo $ECHO_N "(cached) $ECHO_C" >&6
6063: else
6064: if test -n "$ac_ct_NMEDIT"; then
6065: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6066: else
6067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068: for as_dir in $PATH
6069: do
6070: IFS=$as_save_IFS
6071: test -z "$as_dir" && as_dir=.
6072: for ac_exec_ext in '' $ac_executable_extensions; do
6073: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6074: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6075: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076: break 2
6077: fi
6078: done
6079: done
1.11 paf 6080:
1.25 moko 6081: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6082: fi
6083: fi
6084: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6085: if test -n "$ac_ct_NMEDIT"; then
6086: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6087: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6088: else
6089: echo "$as_me:$LINENO: result: no" >&5
6090: echo "${ECHO_T}no" >&6
6091: fi
1.11 paf 6092:
1.25 moko 6093: NMEDIT=$ac_ct_NMEDIT
1.11 paf 6094: else
1.25 moko 6095: NMEDIT="$ac_cv_prog_NMEDIT"
1.11 paf 6096: fi
6097:
1.25 moko 6098: if test -n "$ac_tool_prefix"; then
6099: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6100: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6101: echo "$as_me:$LINENO: checking for $ac_word" >&5
6102: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103: if test "${ac_cv_prog_LIPO+set}" = set; then
6104: echo $ECHO_N "(cached) $ECHO_C" >&6
6105: else
6106: if test -n "$LIPO"; then
6107: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6108: else
6109: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110: for as_dir in $PATH
6111: do
6112: IFS=$as_save_IFS
6113: test -z "$as_dir" && as_dir=.
6114: for ac_exec_ext in '' $ac_executable_extensions; do
6115: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6117: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118: break 2
1.11 paf 6119: fi
1.25 moko 6120: done
6121: done
6122:
6123: fi
6124: fi
6125: LIPO=$ac_cv_prog_LIPO
6126: if test -n "$LIPO"; then
6127: echo "$as_me:$LINENO: result: $LIPO" >&5
6128: echo "${ECHO_T}$LIPO" >&6
6129: else
6130: echo "$as_me:$LINENO: result: no" >&5
6131: echo "${ECHO_T}no" >&6
1.11 paf 6132: fi
6133:
1.25 moko 6134: fi
6135: if test -z "$ac_cv_prog_LIPO"; then
6136: ac_ct_LIPO=$LIPO
6137: # Extract the first word of "lipo", so it can be a program name with args.
6138: set dummy lipo; ac_word=$2
6139: echo "$as_me:$LINENO: checking for $ac_word" >&5
6140: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6141: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6142: echo $ECHO_N "(cached) $ECHO_C" >&6
6143: else
6144: if test -n "$ac_ct_LIPO"; then
6145: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6146: else
6147: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148: for as_dir in $PATH
6149: do
6150: IFS=$as_save_IFS
6151: test -z "$as_dir" && as_dir=.
6152: for ac_exec_ext in '' $ac_executable_extensions; do
6153: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154: ac_cv_prog_ac_ct_LIPO="lipo"
6155: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156: break 2
1.11 paf 6157: fi
1.25 moko 6158: done
6159: done
1.11 paf 6160:
1.25 moko 6161: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6162: fi
6163: fi
6164: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6165: if test -n "$ac_ct_LIPO"; then
6166: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6167: echo "${ECHO_T}$ac_ct_LIPO" >&6
6168: else
6169: echo "$as_me:$LINENO: result: no" >&5
6170: echo "${ECHO_T}no" >&6
6171: fi
1.11 paf 6172:
1.25 moko 6173: LIPO=$ac_ct_LIPO
6174: else
6175: LIPO="$ac_cv_prog_LIPO"
6176: fi
1.11 paf 6177:
1.25 moko 6178: if test -n "$ac_tool_prefix"; then
6179: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6180: set dummy ${ac_tool_prefix}otool; ac_word=$2
6181: echo "$as_me:$LINENO: checking for $ac_word" >&5
6182: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6183: if test "${ac_cv_prog_OTOOL+set}" = set; then
6184: echo $ECHO_N "(cached) $ECHO_C" >&6
6185: else
6186: if test -n "$OTOOL"; then
6187: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6188: else
6189: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190: for as_dir in $PATH
6191: do
6192: IFS=$as_save_IFS
6193: test -z "$as_dir" && as_dir=.
6194: for ac_exec_ext in '' $ac_executable_extensions; do
6195: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6197: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198: break 2
6199: fi
6200: done
6201: done
1.11 paf 6202:
1.25 moko 6203: fi
6204: fi
6205: OTOOL=$ac_cv_prog_OTOOL
6206: if test -n "$OTOOL"; then
6207: echo "$as_me:$LINENO: result: $OTOOL" >&5
6208: echo "${ECHO_T}$OTOOL" >&6
6209: else
6210: echo "$as_me:$LINENO: result: no" >&5
6211: echo "${ECHO_T}no" >&6
6212: fi
1.11 paf 6213:
1.25 moko 6214: fi
6215: if test -z "$ac_cv_prog_OTOOL"; then
6216: ac_ct_OTOOL=$OTOOL
6217: # Extract the first word of "otool", so it can be a program name with args.
6218: set dummy otool; ac_word=$2
6219: echo "$as_me:$LINENO: checking for $ac_word" >&5
6220: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6221: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6222: echo $ECHO_N "(cached) $ECHO_C" >&6
6223: else
6224: if test -n "$ac_ct_OTOOL"; then
6225: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6226: else
6227: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228: for as_dir in $PATH
6229: do
6230: IFS=$as_save_IFS
6231: test -z "$as_dir" && as_dir=.
6232: for ac_exec_ext in '' $ac_executable_extensions; do
6233: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234: ac_cv_prog_ac_ct_OTOOL="otool"
6235: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236: break 2
6237: fi
6238: done
6239: done
1.11 paf 6240:
1.25 moko 6241: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6242: fi
6243: fi
6244: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6245: if test -n "$ac_ct_OTOOL"; then
6246: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6247: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6248: else
6249: echo "$as_me:$LINENO: result: no" >&5
6250: echo "${ECHO_T}no" >&6
6251: fi
1.11 paf 6252:
1.25 moko 6253: OTOOL=$ac_ct_OTOOL
6254: else
6255: OTOOL="$ac_cv_prog_OTOOL"
6256: fi
1.11 paf 6257:
1.25 moko 6258: if test -n "$ac_tool_prefix"; then
6259: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6260: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6261: echo "$as_me:$LINENO: checking for $ac_word" >&5
6262: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6264: echo $ECHO_N "(cached) $ECHO_C" >&6
6265: else
6266: if test -n "$OTOOL64"; then
6267: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6268: else
6269: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270: for as_dir in $PATH
6271: do
6272: IFS=$as_save_IFS
6273: test -z "$as_dir" && as_dir=.
6274: for ac_exec_ext in '' $ac_executable_extensions; do
6275: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6277: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278: break 2
6279: fi
6280: done
6281: done
1.11 paf 6282:
1.25 moko 6283: fi
6284: fi
6285: OTOOL64=$ac_cv_prog_OTOOL64
6286: if test -n "$OTOOL64"; then
6287: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6288: echo "${ECHO_T}$OTOOL64" >&6
6289: else
6290: echo "$as_me:$LINENO: result: no" >&5
6291: echo "${ECHO_T}no" >&6
6292: fi
1.11 paf 6293:
1.25 moko 6294: fi
6295: if test -z "$ac_cv_prog_OTOOL64"; then
6296: ac_ct_OTOOL64=$OTOOL64
6297: # Extract the first word of "otool64", so it can be a program name with args.
6298: set dummy otool64; ac_word=$2
6299: echo "$as_me:$LINENO: checking for $ac_word" >&5
6300: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6301: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6302: echo $ECHO_N "(cached) $ECHO_C" >&6
6303: else
6304: if test -n "$ac_ct_OTOOL64"; then
6305: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6306: else
6307: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308: for as_dir in $PATH
6309: do
6310: IFS=$as_save_IFS
6311: test -z "$as_dir" && as_dir=.
6312: for ac_exec_ext in '' $ac_executable_extensions; do
6313: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314: ac_cv_prog_ac_ct_OTOOL64="otool64"
6315: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316: break 2
6317: fi
6318: done
6319: done
1.11 paf 6320:
1.25 moko 6321: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6322: fi
6323: fi
6324: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6325: if test -n "$ac_ct_OTOOL64"; then
6326: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6327: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6328: else
6329: echo "$as_me:$LINENO: result: no" >&5
6330: echo "${ECHO_T}no" >&6
6331: fi
1.11 paf 6332:
1.25 moko 6333: OTOOL64=$ac_ct_OTOOL64
6334: else
6335: OTOOL64="$ac_cv_prog_OTOOL64"
6336: fi
1.11 paf 6337:
6338:
6339:
6340:
6341:
6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353:
6354:
6355:
6356:
6357:
6358:
6359:
6360:
6361:
6362:
6363:
1.25 moko 6364: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6365: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6366: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6367: echo $ECHO_N "(cached) $ECHO_C" >&6
6368: else
6369: lt_cv_apple_cc_single_mod=no
6370: if test -z "${LT_MULTI_MODULE}"; then
6371: # By default we will add the -single_module flag. You can override
6372: # by either setting the environment variable LT_MULTI_MODULE
6373: # non-empty at configure time, or by adding -multi_module to the
6374: # link flags.
6375: rm -rf libconftest.dylib*
6376: echo "int foo(void){return 1;}" > conftest.c
6377: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6378: -dynamiclib -Wl,-single_module conftest.c" >&5
6379: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6380: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6381: _lt_result=$?
6382: # If there is a non-empty error log, and "single_module"
6383: # appears in it, assume the flag caused a linker warning
6384: if test -s conftest.err && $GREP single_module conftest.err; then
6385: cat conftest.err >&5
6386: # Otherwise, if the output was created with a 0 exit code from
6387: # the compiler, it worked.
6388: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6389: lt_cv_apple_cc_single_mod=yes
6390: else
6391: cat conftest.err >&5
6392: fi
6393: rm -rf libconftest.dylib*
6394: rm -f conftest.*
6395: fi
6396: fi
6397: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6398: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.11 paf 6399:
1.25 moko 6400: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6401: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6402: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6403: echo $ECHO_N "(cached) $ECHO_C" >&6
6404: else
6405: lt_cv_ld_exported_symbols_list=no
6406: save_LDFLAGS=$LDFLAGS
6407: echo "_main" > conftest.sym
6408: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6409: cat >conftest.$ac_ext <<_ACEOF
6410: /* confdefs.h. */
6411: _ACEOF
6412: cat confdefs.h >>conftest.$ac_ext
6413: cat >>conftest.$ac_ext <<_ACEOF
6414: /* end confdefs.h. */
1.11 paf 6415:
1.25 moko 6416: int
6417: main ()
6418: {
1.11 paf 6419:
1.25 moko 6420: ;
6421: return 0;
6422: }
6423: _ACEOF
6424: rm -f conftest.$ac_objext conftest$ac_exeext
6425: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426: (eval $ac_link) 2>conftest.er1
6427: ac_status=$?
6428: grep -v '^ *+' conftest.er1 >conftest.err
6429: rm -f conftest.er1
6430: cat conftest.err >&5
6431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432: (exit $ac_status); } &&
6433: { ac_try='test -z "$ac_c_werror_flag"
6434: || test ! -s conftest.err'
6435: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436: (eval $ac_try) 2>&5
6437: ac_status=$?
6438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439: (exit $ac_status); }; } &&
6440: { ac_try='test -s conftest$ac_exeext'
6441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442: (eval $ac_try) 2>&5
6443: ac_status=$?
6444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445: (exit $ac_status); }; }; then
6446: lt_cv_ld_exported_symbols_list=yes
6447: else
6448: echo "$as_me: failed program was:" >&5
6449: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6450:
1.25 moko 6451: lt_cv_ld_exported_symbols_list=no
6452: fi
6453: rm -f conftest.err conftest.$ac_objext \
6454: conftest$ac_exeext conftest.$ac_ext
6455: LDFLAGS="$save_LDFLAGS"
1.11 paf 6456:
1.25 moko 6457: fi
6458: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6459: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.11 paf 6460:
1.25 moko 6461: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6462: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6463: if test "${lt_cv_ld_force_load+set}" = set; then
6464: echo $ECHO_N "(cached) $ECHO_C" >&6
6465: else
6466: lt_cv_ld_force_load=no
6467: cat > conftest.c << _LT_EOF
6468: int forced_loaded() { return 2;}
6469: _LT_EOF
6470: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6471: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6472: echo "$AR cru libconftest.a conftest.o" >&5
6473: $AR cru libconftest.a conftest.o 2>&5
6474: echo "$RANLIB libconftest.a" >&5
6475: $RANLIB libconftest.a 2>&5
6476: cat > conftest.c << _LT_EOF
6477: int main() { return 0;}
6478: _LT_EOF
6479: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6480: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6481: _lt_result=$?
6482: if test -s conftest.err && $GREP force_load conftest.err; then
6483: cat conftest.err >&5
6484: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6485: lt_cv_ld_force_load=yes
6486: else
6487: cat conftest.err >&5
6488: fi
6489: rm -f conftest.err libconftest.a conftest conftest.c
6490: rm -rf conftest.dSYM
1.11 paf 6491:
1.25 moko 6492: fi
6493: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6494: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6495: case $host_os in
6496: rhapsody* | darwin1.[012])
6497: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6498: darwin1.*)
6499: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6500: darwin*) # darwin 5.x on
6501: # if running on 10.5 or later, the deployment target defaults
6502: # to the OS version, if on x86, and 10.4, the deployment
6503: # target defaults to 10.4. Don't you love it?
6504: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6505: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6506: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6507: 10.[012]*)
6508: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509: 10.*)
6510: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6511: esac
1.11 paf 6512: ;;
1.25 moko 6513: esac
6514: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6515: _lt_dar_single_mod='$single_module'
6516: fi
6517: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6518: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6519: else
6520: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.11 paf 6521: fi
1.25 moko 6522: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6523: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.11 paf 6524: else
1.25 moko 6525: _lt_dsymutil=
1.11 paf 6526: fi
6527: ;;
1.25 moko 6528: esac
1.11 paf 6529:
1.25 moko 6530: ac_ext=c
6531: ac_cpp='$CPP $CPPFLAGS'
6532: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6536: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6537: # On Suns, sometimes $CPP names a directory.
6538: if test -n "$CPP" && test -d "$CPP"; then
6539: CPP=
6540: fi
6541: if test -z "$CPP"; then
6542: if test "${ac_cv_prog_CPP+set}" = set; then
6543: echo $ECHO_N "(cached) $ECHO_C" >&6
6544: else
6545: # Double quotes because CPP needs to be expanded
6546: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6547: do
6548: ac_preproc_ok=false
6549: for ac_c_preproc_warn_flag in '' yes
6550: do
6551: # Use a header file that comes with gcc, so configuring glibc
6552: # with a fresh cross-compiler works.
6553: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6554: # <limits.h> exists even on freestanding compilers.
6555: # On the NeXT, cc -E runs the code through the compiler's parser,
6556: # not just through cpp. "Syntax error" is here to catch this case.
6557: cat >conftest.$ac_ext <<_ACEOF
6558: /* confdefs.h. */
6559: _ACEOF
6560: cat confdefs.h >>conftest.$ac_ext
6561: cat >>conftest.$ac_ext <<_ACEOF
6562: /* end confdefs.h. */
6563: #ifdef __STDC__
6564: # include <limits.h>
6565: #else
6566: # include <assert.h>
6567: #endif
6568: Syntax error
6569: _ACEOF
6570: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6571: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6572: ac_status=$?
6573: grep -v '^ *+' conftest.er1 >conftest.err
6574: rm -f conftest.er1
6575: cat conftest.err >&5
6576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577: (exit $ac_status); } >/dev/null; then
6578: if test -s conftest.err; then
6579: ac_cpp_err=$ac_c_preproc_warn_flag
6580: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6581: else
6582: ac_cpp_err=
6583: fi
6584: else
6585: ac_cpp_err=yes
1.11 paf 6586: fi
1.25 moko 6587: if test -z "$ac_cpp_err"; then
6588: :
6589: else
6590: echo "$as_me: failed program was:" >&5
6591: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6592:
1.25 moko 6593: # Broken: fails on valid input.
6594: continue
6595: fi
6596: rm -f conftest.err conftest.$ac_ext
1.11 paf 6597:
1.25 moko 6598: # OK, works on sane cases. Now check whether non-existent headers
6599: # can be detected and how.
6600: cat >conftest.$ac_ext <<_ACEOF
6601: /* confdefs.h. */
6602: _ACEOF
6603: cat confdefs.h >>conftest.$ac_ext
6604: cat >>conftest.$ac_ext <<_ACEOF
6605: /* end confdefs.h. */
6606: #include <ac_nonexistent.h>
6607: _ACEOF
6608: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6609: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6610: ac_status=$?
6611: grep -v '^ *+' conftest.er1 >conftest.err
6612: rm -f conftest.er1
6613: cat conftest.err >&5
6614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615: (exit $ac_status); } >/dev/null; then
6616: if test -s conftest.err; then
6617: ac_cpp_err=$ac_c_preproc_warn_flag
6618: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 6619: else
1.25 moko 6620: ac_cpp_err=
1.11 paf 6621: fi
6622: else
1.25 moko 6623: ac_cpp_err=yes
1.11 paf 6624: fi
1.25 moko 6625: if test -z "$ac_cpp_err"; then
6626: # Broken: success on invalid input.
6627: continue
6628: else
6629: echo "$as_me: failed program was:" >&5
6630: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6631:
1.25 moko 6632: # Passes both tests.
6633: ac_preproc_ok=:
6634: break
1.11 paf 6635: fi
1.25 moko 6636: rm -f conftest.err conftest.$ac_ext
1.11 paf 6637:
1.25 moko 6638: done
6639: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6640: rm -f conftest.err conftest.$ac_ext
6641: if $ac_preproc_ok; then
6642: break
6643: fi
1.11 paf 6644:
1.25 moko 6645: done
6646: ac_cv_prog_CPP=$CPP
1.11 paf 6647:
1.25 moko 6648: fi
6649: CPP=$ac_cv_prog_CPP
6650: else
6651: ac_cv_prog_CPP=$CPP
6652: fi
6653: echo "$as_me:$LINENO: result: $CPP" >&5
6654: echo "${ECHO_T}$CPP" >&6
6655: ac_preproc_ok=false
6656: for ac_c_preproc_warn_flag in '' yes
6657: do
6658: # Use a header file that comes with gcc, so configuring glibc
6659: # with a fresh cross-compiler works.
6660: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6661: # <limits.h> exists even on freestanding compilers.
6662: # On the NeXT, cc -E runs the code through the compiler's parser,
6663: # not just through cpp. "Syntax error" is here to catch this case.
6664: cat >conftest.$ac_ext <<_ACEOF
6665: /* confdefs.h. */
6666: _ACEOF
6667: cat confdefs.h >>conftest.$ac_ext
6668: cat >>conftest.$ac_ext <<_ACEOF
6669: /* end confdefs.h. */
6670: #ifdef __STDC__
6671: # include <limits.h>
6672: #else
6673: # include <assert.h>
6674: #endif
6675: Syntax error
6676: _ACEOF
6677: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6678: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679: ac_status=$?
6680: grep -v '^ *+' conftest.er1 >conftest.err
6681: rm -f conftest.er1
6682: cat conftest.err >&5
6683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684: (exit $ac_status); } >/dev/null; then
6685: if test -s conftest.err; then
6686: ac_cpp_err=$ac_c_preproc_warn_flag
6687: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6688: else
6689: ac_cpp_err=
6690: fi
6691: else
6692: ac_cpp_err=yes
6693: fi
6694: if test -z "$ac_cpp_err"; then
6695: :
6696: else
6697: echo "$as_me: failed program was:" >&5
6698: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6699:
1.25 moko 6700: # Broken: fails on valid input.
6701: continue
6702: fi
6703: rm -f conftest.err conftest.$ac_ext
1.11 paf 6704:
1.25 moko 6705: # OK, works on sane cases. Now check whether non-existent headers
6706: # can be detected and how.
6707: cat >conftest.$ac_ext <<_ACEOF
6708: /* confdefs.h. */
6709: _ACEOF
6710: cat confdefs.h >>conftest.$ac_ext
6711: cat >>conftest.$ac_ext <<_ACEOF
6712: /* end confdefs.h. */
6713: #include <ac_nonexistent.h>
6714: _ACEOF
6715: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6716: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6717: ac_status=$?
6718: grep -v '^ *+' conftest.er1 >conftest.err
6719: rm -f conftest.er1
6720: cat conftest.err >&5
6721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722: (exit $ac_status); } >/dev/null; then
6723: if test -s conftest.err; then
6724: ac_cpp_err=$ac_c_preproc_warn_flag
6725: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.11 paf 6726: else
1.25 moko 6727: ac_cpp_err=
1.11 paf 6728: fi
1.25 moko 6729: else
6730: ac_cpp_err=yes
6731: fi
6732: if test -z "$ac_cpp_err"; then
6733: # Broken: success on invalid input.
6734: continue
6735: else
6736: echo "$as_me: failed program was:" >&5
6737: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6738:
1.25 moko 6739: # Passes both tests.
6740: ac_preproc_ok=:
6741: break
6742: fi
6743: rm -f conftest.err conftest.$ac_ext
1.11 paf 6744:
1.25 moko 6745: done
6746: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6747: rm -f conftest.err conftest.$ac_ext
6748: if $ac_preproc_ok; then
6749: :
6750: else
6751: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6752: See \`config.log' for more details." >&5
6753: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6754: See \`config.log' for more details." >&2;}
6755: { (exit 1); exit 1; }; }
6756: fi
1.11 paf 6757:
1.25 moko 6758: ac_ext=c
6759: ac_cpp='$CPP $CPPFLAGS'
6760: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 paf 6763:
6764:
1.25 moko 6765: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6766: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6767: if test "${ac_cv_header_stdc+set}" = set; then
6768: echo $ECHO_N "(cached) $ECHO_C" >&6
6769: else
6770: cat >conftest.$ac_ext <<_ACEOF
6771: /* confdefs.h. */
6772: _ACEOF
6773: cat confdefs.h >>conftest.$ac_ext
6774: cat >>conftest.$ac_ext <<_ACEOF
6775: /* end confdefs.h. */
6776: #include <stdlib.h>
6777: #include <stdarg.h>
6778: #include <string.h>
6779: #include <float.h>
1.11 paf 6780:
1.25 moko 6781: int
6782: main ()
6783: {
1.11 paf 6784:
1.25 moko 6785: ;
6786: return 0;
6787: }
6788: _ACEOF
6789: rm -f conftest.$ac_objext
6790: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791: (eval $ac_compile) 2>conftest.er1
6792: ac_status=$?
6793: grep -v '^ *+' conftest.er1 >conftest.err
6794: rm -f conftest.er1
6795: cat conftest.err >&5
6796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797: (exit $ac_status); } &&
6798: { ac_try='test -z "$ac_c_werror_flag"
6799: || test ! -s conftest.err'
6800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801: (eval $ac_try) 2>&5
6802: ac_status=$?
6803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804: (exit $ac_status); }; } &&
6805: { ac_try='test -s conftest.$ac_objext'
6806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807: (eval $ac_try) 2>&5
6808: ac_status=$?
6809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810: (exit $ac_status); }; }; then
6811: ac_cv_header_stdc=yes
6812: else
6813: echo "$as_me: failed program was:" >&5
6814: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6815:
1.25 moko 6816: ac_cv_header_stdc=no
6817: fi
6818: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6819:
1.25 moko 6820: if test $ac_cv_header_stdc = yes; then
6821: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6822: cat >conftest.$ac_ext <<_ACEOF
6823: /* confdefs.h. */
6824: _ACEOF
6825: cat confdefs.h >>conftest.$ac_ext
6826: cat >>conftest.$ac_ext <<_ACEOF
6827: /* end confdefs.h. */
6828: #include <string.h>
1.11 paf 6829:
1.25 moko 6830: _ACEOF
6831: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832: $EGREP "memchr" >/dev/null 2>&1; then
6833: :
6834: else
6835: ac_cv_header_stdc=no
6836: fi
6837: rm -f conftest*
1.11 paf 6838:
1.25 moko 6839: fi
1.11 paf 6840:
1.25 moko 6841: if test $ac_cv_header_stdc = yes; then
6842: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6843: cat >conftest.$ac_ext <<_ACEOF
6844: /* confdefs.h. */
6845: _ACEOF
6846: cat confdefs.h >>conftest.$ac_ext
6847: cat >>conftest.$ac_ext <<_ACEOF
6848: /* end confdefs.h. */
6849: #include <stdlib.h>
1.11 paf 6850:
1.25 moko 6851: _ACEOF
6852: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853: $EGREP "free" >/dev/null 2>&1; then
6854: :
6855: else
6856: ac_cv_header_stdc=no
6857: fi
6858: rm -f conftest*
1.11 paf 6859:
1.25 moko 6860: fi
1.11 paf 6861:
1.25 moko 6862: if test $ac_cv_header_stdc = yes; then
6863: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6864: if test "$cross_compiling" = yes; then
6865: :
6866: else
6867: cat >conftest.$ac_ext <<_ACEOF
6868: /* confdefs.h. */
6869: _ACEOF
6870: cat confdefs.h >>conftest.$ac_ext
6871: cat >>conftest.$ac_ext <<_ACEOF
6872: /* end confdefs.h. */
6873: #include <ctype.h>
6874: #if ((' ' & 0x0FF) == 0x020)
6875: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6876: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6877: #else
6878: # define ISLOWER(c) \
6879: (('a' <= (c) && (c) <= 'i') \
6880: || ('j' <= (c) && (c) <= 'r') \
6881: || ('s' <= (c) && (c) <= 'z'))
6882: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6883: #endif
1.11 paf 6884:
1.25 moko 6885: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6886: int
6887: main ()
6888: {
6889: int i;
6890: for (i = 0; i < 256; i++)
6891: if (XOR (islower (i), ISLOWER (i))
6892: || toupper (i) != TOUPPER (i))
6893: exit(2);
6894: exit (0);
6895: }
6896: _ACEOF
6897: rm -f conftest$ac_exeext
6898: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899: (eval $ac_link) 2>&5
6900: ac_status=$?
6901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6903: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904: (eval $ac_try) 2>&5
6905: ac_status=$?
6906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907: (exit $ac_status); }; }; then
6908: :
6909: else
6910: echo "$as_me: program exited with status $ac_status" >&5
6911: echo "$as_me: failed program was:" >&5
6912: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 6913:
1.25 moko 6914: ( exit $ac_status )
6915: ac_cv_header_stdc=no
6916: fi
6917: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6918: fi
6919: fi
6920: fi
6921: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6922: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6923: if test $ac_cv_header_stdc = yes; then
1.11 paf 6924:
1.25 moko 6925: cat >>confdefs.h <<\_ACEOF
6926: #define STDC_HEADERS 1
6927: _ACEOF
1.11 paf 6928:
1.25 moko 6929: fi
1.11 paf 6930:
1.25 moko 6931: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.11 paf 6932:
6933:
6934:
6935:
6936:
6937:
6938:
6939:
6940:
1.25 moko 6941: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6942: inttypes.h stdint.h unistd.h
6943: do
6944: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6945: echo "$as_me:$LINENO: checking for $ac_header" >&5
6946: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6947: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6948: echo $ECHO_N "(cached) $ECHO_C" >&6
6949: else
6950: cat >conftest.$ac_ext <<_ACEOF
6951: /* confdefs.h. */
6952: _ACEOF
6953: cat confdefs.h >>conftest.$ac_ext
6954: cat >>conftest.$ac_ext <<_ACEOF
6955: /* end confdefs.h. */
6956: $ac_includes_default
1.11 paf 6957:
1.25 moko 6958: #include <$ac_header>
1.11 paf 6959: _ACEOF
1.25 moko 6960: rm -f conftest.$ac_objext
6961: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962: (eval $ac_compile) 2>conftest.er1
1.11 paf 6963: ac_status=$?
1.18 paf 6964: grep -v '^ *+' conftest.er1 >conftest.err
6965: rm -f conftest.er1
6966: cat conftest.err >&5
1.11 paf 6967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968: (exit $ac_status); } &&
1.18 paf 6969: { ac_try='test -z "$ac_c_werror_flag"
6970: || test ! -s conftest.err'
6971: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972: (eval $ac_try) 2>&5
6973: ac_status=$?
6974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975: (exit $ac_status); }; } &&
1.25 moko 6976: { ac_try='test -s conftest.$ac_objext'
1.11 paf 6977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978: (eval $ac_try) 2>&5
6979: ac_status=$?
6980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981: (exit $ac_status); }; }; then
1.25 moko 6982: eval "$as_ac_Header=yes"
1.11 paf 6983: else
6984: echo "$as_me: failed program was:" >&5
6985: sed 's/^/| /' conftest.$ac_ext >&5
6986:
1.25 moko 6987: eval "$as_ac_Header=no"
6988: fi
6989: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 6990: fi
1.25 moko 6991: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6992: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6993: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6994: cat >>confdefs.h <<_ACEOF
6995: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996: _ACEOF
6997:
1.11 paf 6998: fi
1.25 moko 6999:
7000: done
7001:
7002:
7003:
7004: for ac_header in dlfcn.h
7005: do
7006: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007: echo "$as_me:$LINENO: checking for $ac_header" >&5
7008: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7009: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.11 paf 7010: echo $ECHO_N "(cached) $ECHO_C" >&6
7011: else
1.25 moko 7012: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 7013: /* confdefs.h. */
7014: _ACEOF
7015: cat confdefs.h >>conftest.$ac_ext
7016: cat >>conftest.$ac_ext <<_ACEOF
7017: /* end confdefs.h. */
1.25 moko 7018: $ac_includes_default
1.11 paf 7019:
1.25 moko 7020: #include <$ac_header>
1.11 paf 7021: _ACEOF
1.25 moko 7022: rm -f conftest.$ac_objext
7023: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024: (eval $ac_compile) 2>conftest.er1
1.11 paf 7025: ac_status=$?
1.18 paf 7026: grep -v '^ *+' conftest.er1 >conftest.err
7027: rm -f conftest.er1
7028: cat conftest.err >&5
1.11 paf 7029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030: (exit $ac_status); } &&
1.18 paf 7031: { ac_try='test -z "$ac_c_werror_flag"
7032: || test ! -s conftest.err'
7033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034: (eval $ac_try) 2>&5
7035: ac_status=$?
7036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037: (exit $ac_status); }; } &&
1.25 moko 7038: { ac_try='test -s conftest.$ac_objext'
1.11 paf 7039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040: (eval $ac_try) 2>&5
7041: ac_status=$?
7042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043: (exit $ac_status); }; }; then
1.25 moko 7044: eval "$as_ac_Header=yes"
1.11 paf 7045: else
7046: echo "$as_me: failed program was:" >&5
7047: sed 's/^/| /' conftest.$ac_ext >&5
7048:
1.25 moko 7049: eval "$as_ac_Header=no"
1.11 paf 7050: fi
1.25 moko 7051: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.11 paf 7052: fi
1.25 moko 7053: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7054: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7055: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7056: cat >>confdefs.h <<_ACEOF
7057: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.11 paf 7058: _ACEOF
1.18 paf 7059:
1.25 moko 7060: fi
7061:
7062: done
7063:
1.18 paf 7064:
7065:
7066:
1.25 moko 7067: func_stripname_cnf ()
1.11 paf 7068: {
1.25 moko 7069: case ${2} in
7070: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7071: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7072: esac
7073: } # func_stripname_cnf
7074:
7075:
7076:
7077:
7078:
7079: # Set options
7080: enable_dlopen=yes
7081: enable_win32_dll=yes
7082:
7083: case $host in
7084: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7085: if test -n "$ac_tool_prefix"; then
7086: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7087: set dummy ${ac_tool_prefix}as; ac_word=$2
7088: echo "$as_me:$LINENO: checking for $ac_word" >&5
7089: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090: if test "${ac_cv_prog_AS+set}" = set; then
7091: echo $ECHO_N "(cached) $ECHO_C" >&6
7092: else
7093: if test -n "$AS"; then
7094: ac_cv_prog_AS="$AS" # Let the user override the test.
7095: else
7096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097: for as_dir in $PATH
7098: do
7099: IFS=$as_save_IFS
7100: test -z "$as_dir" && as_dir=.
7101: for ac_exec_ext in '' $ac_executable_extensions; do
7102: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103: ac_cv_prog_AS="${ac_tool_prefix}as"
7104: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105: break 2
7106: fi
7107: done
7108: done
1.11 paf 7109:
1.25 moko 7110: fi
7111: fi
7112: AS=$ac_cv_prog_AS
7113: if test -n "$AS"; then
7114: echo "$as_me:$LINENO: result: $AS" >&5
7115: echo "${ECHO_T}$AS" >&6
7116: else
7117: echo "$as_me:$LINENO: result: no" >&5
7118: echo "${ECHO_T}no" >&6
7119: fi
7120:
7121: fi
7122: if test -z "$ac_cv_prog_AS"; then
7123: ac_ct_AS=$AS
7124: # Extract the first word of "as", so it can be a program name with args.
7125: set dummy as; ac_word=$2
7126: echo "$as_me:$LINENO: checking for $ac_word" >&5
7127: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7128: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7129: echo $ECHO_N "(cached) $ECHO_C" >&6
7130: else
7131: if test -n "$ac_ct_AS"; then
7132: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
1.11 paf 7133: else
1.25 moko 7134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135: for as_dir in $PATH
7136: do
7137: IFS=$as_save_IFS
7138: test -z "$as_dir" && as_dir=.
7139: for ac_exec_ext in '' $ac_executable_extensions; do
7140: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141: ac_cv_prog_ac_ct_AS="as"
7142: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143: break 2
7144: fi
7145: done
7146: done
1.11 paf 7147:
1.25 moko 7148: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7149: fi
1.11 paf 7150: fi
1.25 moko 7151: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7152: if test -n "$ac_ct_AS"; then
7153: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7154: echo "${ECHO_T}$ac_ct_AS" >&6
7155: else
7156: echo "$as_me:$LINENO: result: no" >&5
7157: echo "${ECHO_T}no" >&6
1.11 paf 7158: fi
1.25 moko 7159:
7160: AS=$ac_ct_AS
1.11 paf 7161: else
1.25 moko 7162: AS="$ac_cv_prog_AS"
7163: fi
7164:
7165: if test -n "$ac_tool_prefix"; then
7166: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7167: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7168: echo "$as_me:$LINENO: checking for $ac_word" >&5
7169: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
1.11 paf 7171: echo $ECHO_N "(cached) $ECHO_C" >&6
7172: else
1.25 moko 7173: if test -n "$DLLTOOL"; then
7174: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.11 paf 7175: else
1.25 moko 7176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177: for as_dir in $PATH
7178: do
7179: IFS=$as_save_IFS
7180: test -z "$as_dir" && as_dir=.
7181: for ac_exec_ext in '' $ac_executable_extensions; do
7182: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7184: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185: break 2
7186: fi
7187: done
7188: done
1.11 paf 7189:
7190: fi
7191: fi
1.25 moko 7192: DLLTOOL=$ac_cv_prog_DLLTOOL
7193: if test -n "$DLLTOOL"; then
7194: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7195: echo "${ECHO_T}$DLLTOOL" >&6
1.11 paf 7196: else
1.25 moko 7197: echo "$as_me:$LINENO: result: no" >&5
7198: echo "${ECHO_T}no" >&6
7199: fi
7200:
7201: fi
7202: if test -z "$ac_cv_prog_DLLTOOL"; then
7203: ac_ct_DLLTOOL=$DLLTOOL
7204: # Extract the first word of "dlltool", so it can be a program name with args.
7205: set dummy dlltool; ac_word=$2
7206: echo "$as_me:$LINENO: checking for $ac_word" >&5
7207: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7208: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.11 paf 7209: echo $ECHO_N "(cached) $ECHO_C" >&6
7210: else
1.25 moko 7211: if test -n "$ac_ct_DLLTOOL"; then
7212: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
1.11 paf 7213: else
1.25 moko 7214: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215: for as_dir in $PATH
7216: do
7217: IFS=$as_save_IFS
7218: test -z "$as_dir" && as_dir=.
7219: for ac_exec_ext in '' $ac_executable_extensions; do
7220: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7222: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223: break 2
7224: fi
7225: done
7226: done
1.11 paf 7227:
1.25 moko 7228: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7229: fi
1.11 paf 7230: fi
1.25 moko 7231: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7232: if test -n "$ac_ct_DLLTOOL"; then
7233: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7234: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7235: else
7236: echo "$as_me:$LINENO: result: no" >&5
7237: echo "${ECHO_T}no" >&6
1.11 paf 7238: fi
1.25 moko 7239:
7240: DLLTOOL=$ac_ct_DLLTOOL
1.11 paf 7241: else
1.25 moko 7242: DLLTOOL="$ac_cv_prog_DLLTOOL"
7243: fi
7244:
7245: if test -n "$ac_tool_prefix"; then
7246: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7247: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7248: echo "$as_me:$LINENO: checking for $ac_word" >&5
7249: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7250: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
1.11 paf 7251: echo $ECHO_N "(cached) $ECHO_C" >&6
7252: else
1.25 moko 7253: if test -n "$OBJDUMP"; then
7254: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7255: else
7256: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257: for as_dir in $PATH
7258: do
7259: IFS=$as_save_IFS
7260: test -z "$as_dir" && as_dir=.
7261: for ac_exec_ext in '' $ac_executable_extensions; do
7262: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7264: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7265: break 2
7266: fi
7267: done
7268: done
7269:
7270: fi
7271: fi
7272: OBJDUMP=$ac_cv_prog_OBJDUMP
7273: if test -n "$OBJDUMP"; then
7274: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7275: echo "${ECHO_T}$OBJDUMP" >&6
7276: else
7277: echo "$as_me:$LINENO: result: no" >&5
7278: echo "${ECHO_T}no" >&6
7279: fi
1.11 paf 7280:
1.25 moko 7281: fi
7282: if test -z "$ac_cv_prog_OBJDUMP"; then
7283: ac_ct_OBJDUMP=$OBJDUMP
7284: # Extract the first word of "objdump", so it can be a program name with args.
7285: set dummy objdump; ac_word=$2
7286: echo "$as_me:$LINENO: checking for $ac_word" >&5
7287: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7288: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7289: echo $ECHO_N "(cached) $ECHO_C" >&6
7290: else
7291: if test -n "$ac_ct_OBJDUMP"; then
7292: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
1.11 paf 7293: else
1.25 moko 7294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295: for as_dir in $PATH
7296: do
7297: IFS=$as_save_IFS
7298: test -z "$as_dir" && as_dir=.
7299: for ac_exec_ext in '' $ac_executable_extensions; do
7300: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7302: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303: break 2
7304: fi
7305: done
7306: done
1.11 paf 7307:
1.25 moko 7308: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7309: fi
1.11 paf 7310: fi
1.25 moko 7311: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7312: if test -n "$ac_ct_OBJDUMP"; then
7313: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7314: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7315: else
7316: echo "$as_me:$LINENO: result: no" >&5
7317: echo "${ECHO_T}no" >&6
1.11 paf 7318: fi
1.25 moko 7319:
7320: OBJDUMP=$ac_ct_OBJDUMP
7321: else
7322: OBJDUMP="$ac_cv_prog_OBJDUMP"
1.11 paf 7323: fi
7324:
1.25 moko 7325: ;;
7326: esac
7327:
7328: test -z "$AS" && AS=as
7329:
1.11 paf 7330:
7331:
7332:
7333:
1.25 moko 7334: test -z "$DLLTOOL" && DLLTOOL=dlltool
1.11 paf 7335:
7336:
7337:
7338:
7339:
1.25 moko 7340: test -z "$OBJDUMP" && OBJDUMP=objdump
1.11 paf 7341:
7342:
7343:
7344:
7345:
7346:
7347:
7348:
7349:
1.25 moko 7350: # Check whether --enable-shared or --disable-shared was given.
7351: if test "${enable_shared+set}" = set; then
7352: enableval="$enable_shared"
7353: p=${PACKAGE-default}
7354: case $enableval in
7355: yes) enable_shared=yes ;;
7356: no) enable_shared=no ;;
7357: *)
7358: enable_shared=no
7359: # Look at the argument we got. We use all the common list separators.
7360: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361: for pkg in $enableval; do
7362: IFS="$lt_save_ifs"
7363: if test "X$pkg" = "X$p"; then
7364: enable_shared=yes
7365: fi
7366: done
7367: IFS="$lt_save_ifs"
7368: ;;
7369: esac
7370: else
7371: enable_shared=yes
7372: fi;
1.11 paf 7373:
7374:
7375:
7376:
7377:
7378:
7379:
7380:
1.25 moko 7381: # Check whether --enable-static or --disable-static was given.
7382: if test "${enable_static+set}" = set; then
7383: enableval="$enable_static"
7384: p=${PACKAGE-default}
7385: case $enableval in
7386: yes) enable_static=yes ;;
7387: no) enable_static=no ;;
7388: *)
7389: enable_static=no
7390: # Look at the argument we got. We use all the common list separators.
7391: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7392: for pkg in $enableval; do
7393: IFS="$lt_save_ifs"
7394: if test "X$pkg" = "X$p"; then
7395: enable_static=yes
7396: fi
7397: done
7398: IFS="$lt_save_ifs"
7399: ;;
7400: esac
1.11 paf 7401: else
1.25 moko 7402: enable_static=yes
7403: fi;
7404:
1.11 paf 7405:
7406:
7407:
7408:
7409:
7410:
7411:
7412:
1.25 moko 7413: # Check whether --with-pic or --without-pic was given.
7414: if test "${with_pic+set}" = set; then
7415: withval="$with_pic"
7416: lt_p=${PACKAGE-default}
7417: case $withval in
7418: yes|no) pic_mode=$withval ;;
7419: *)
7420: pic_mode=default
7421: # Look at the argument we got. We use all the common list separators.
7422: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7423: for lt_pkg in $withval; do
7424: IFS="$lt_save_ifs"
7425: if test "X$lt_pkg" = "X$lt_p"; then
7426: pic_mode=yes
7427: fi
7428: done
7429: IFS="$lt_save_ifs"
7430: ;;
1.11 paf 7431: esac
1.25 moko 7432: else
7433: pic_mode=default
7434: fi;
1.11 paf 7435:
1.25 moko 7436: test -z "$pic_mode" && pic_mode=default
1.11 paf 7437:
7438:
7439:
7440:
7441:
7442:
7443:
1.25 moko 7444: # Check whether --enable-fast-install or --disable-fast-install was given.
7445: if test "${enable_fast_install+set}" = set; then
7446: enableval="$enable_fast_install"
7447: p=${PACKAGE-default}
7448: case $enableval in
7449: yes) enable_fast_install=yes ;;
7450: no) enable_fast_install=no ;;
1.11 paf 7451: *)
1.25 moko 7452: enable_fast_install=no
7453: # Look at the argument we got. We use all the common list separators.
7454: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7455: for pkg in $enableval; do
7456: IFS="$lt_save_ifs"
7457: if test "X$pkg" = "X$p"; then
7458: enable_fast_install=yes
7459: fi
7460: done
7461: IFS="$lt_save_ifs"
1.11 paf 7462: ;;
7463: esac
1.25 moko 7464: else
7465: enable_fast_install=yes
7466: fi;
1.11 paf 7467:
7468:
7469:
7470:
7471:
7472:
7473:
7474:
7475:
7476:
1.25 moko 7477: # This can be used to rebuild libtool when needed
7478: LIBTOOL_DEPS="$ltmain"
1.11 paf 7479:
1.25 moko 7480: # Always use our own libtool.
7481: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.11 paf 7482:
7483:
7484:
7485:
7486:
7487:
7488:
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499:
7500:
7501:
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
1.25 moko 7512: test -z "$LN_S" && LN_S="ln -s"
1.11 paf 7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
1.25 moko 7527: if test -n "${ZSH_VERSION+set}" ; then
7528: setopt NO_GLOB_SUBST
7529: fi
1.11 paf 7530:
1.25 moko 7531: echo "$as_me:$LINENO: checking for objdir" >&5
7532: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7533: if test "${lt_cv_objdir+set}" = set; then
7534: echo $ECHO_N "(cached) $ECHO_C" >&6
7535: else
7536: rm -f .libs 2>/dev/null
7537: mkdir .libs 2>/dev/null
7538: if test -d .libs; then
7539: lt_cv_objdir=.libs
7540: else
7541: # MS-DOS does not allow filenames that begin with a dot.
7542: lt_cv_objdir=_libs
7543: fi
7544: rmdir .libs 2>/dev/null
7545: fi
7546: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7547: echo "${ECHO_T}$lt_cv_objdir" >&6
7548: objdir=$lt_cv_objdir
1.11 paf 7549:
7550:
7551:
7552:
7553:
1.25 moko 7554: cat >>confdefs.h <<_ACEOF
7555: #define LT_OBJDIR "$lt_cv_objdir/"
7556: _ACEOF
1.11 paf 7557:
7558:
7559:
7560:
1.25 moko 7561: case $host_os in
7562: aix3*)
7563: # AIX sometimes has problems with the GCC collect2 program. For some
7564: # reason, if we set the COLLECT_NAMES environment variable, the problems
7565: # vanish in a puff of smoke.
7566: if test "X${COLLECT_NAMES+set}" != Xset; then
7567: COLLECT_NAMES=
7568: export COLLECT_NAMES
7569: fi
7570: ;;
7571: esac
1.11 paf 7572:
1.25 moko 7573: # Global variables:
7574: ofile=libtool
7575: can_build_shared=yes
1.11 paf 7576:
1.25 moko 7577: # All known linkers require a `.a' archive for static linking (except MSVC,
7578: # which needs '.lib').
7579: libext=a
1.11 paf 7580:
1.25 moko 7581: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.11 paf 7582:
1.25 moko 7583: old_CC="$CC"
7584: old_CFLAGS="$CFLAGS"
1.11 paf 7585:
1.25 moko 7586: # Set sane defaults for various variables
7587: test -z "$CC" && CC=cc
7588: test -z "$LTCC" && LTCC=$CC
7589: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7590: test -z "$LD" && LD=ld
7591: test -z "$ac_objext" && ac_objext=o
1.11 paf 7592:
1.25 moko 7593: for cc_temp in $compiler""; do
7594: case $cc_temp in
7595: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7596: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7597: \-*) ;;
7598: *) break;;
7599: esac
7600: done
7601: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.11 paf 7602:
7603:
1.25 moko 7604: # Only perform the check for file, if the check method requires it
7605: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7606: case $deplibs_check_method in
7607: file_magic*)
7608: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7609: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7610: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7611: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7612: echo $ECHO_N "(cached) $ECHO_C" >&6
7613: else
7614: case $MAGIC_CMD in
7615: [\\/*] | ?:[\\/]*)
7616: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7617: ;;
7618: *)
7619: lt_save_MAGIC_CMD="$MAGIC_CMD"
7620: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7621: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7622: for ac_dir in $ac_dummy; do
7623: IFS="$lt_save_ifs"
7624: test -z "$ac_dir" && ac_dir=.
7625: if test -f $ac_dir/${ac_tool_prefix}file; then
7626: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7627: if test -n "$file_magic_test_file"; then
7628: case $deplibs_check_method in
7629: "file_magic "*)
7630: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7631: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7633: $EGREP "$file_magic_regex" > /dev/null; then
7634: :
7635: else
7636: cat <<_LT_EOF 1>&2
1.11 paf 7637:
1.25 moko 7638: *** Warning: the command libtool uses to detect shared libraries,
7639: *** $file_magic_cmd, produces output that libtool cannot recognize.
7640: *** The result is that libtool may fail to recognize shared libraries
7641: *** as such. This will affect the creation of libtool libraries that
7642: *** depend on shared libraries, but programs linked with such libtool
7643: *** libraries will work regardless of this problem. Nevertheless, you
7644: *** may want to report the problem to your system manager and/or to
7645: *** bug-libtool@gnu.org
1.11 paf 7646:
1.25 moko 7647: _LT_EOF
7648: fi ;;
7649: esac
7650: fi
7651: break
7652: fi
7653: done
7654: IFS="$lt_save_ifs"
7655: MAGIC_CMD="$lt_save_MAGIC_CMD"
7656: ;;
7657: esac
7658: fi
1.7 paf 7659:
1.25 moko 7660: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7661: if test -n "$MAGIC_CMD"; then
7662: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7663: echo "${ECHO_T}$MAGIC_CMD" >&6
7664: else
7665: echo "$as_me:$LINENO: result: no" >&5
7666: echo "${ECHO_T}no" >&6
7667: fi
1.7 paf 7668:
7669:
7670:
7671:
7672:
1.25 moko 7673: if test -z "$lt_cv_path_MAGIC_CMD"; then
7674: if test -n "$ac_tool_prefix"; then
7675: echo "$as_me:$LINENO: checking for file" >&5
7676: echo $ECHO_N "checking for file... $ECHO_C" >&6
7677: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7678: echo $ECHO_N "(cached) $ECHO_C" >&6
7679: else
7680: case $MAGIC_CMD in
7681: [\\/*] | ?:[\\/]*)
7682: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7683: ;;
7684: *)
7685: lt_save_MAGIC_CMD="$MAGIC_CMD"
7686: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7687: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7688: for ac_dir in $ac_dummy; do
7689: IFS="$lt_save_ifs"
7690: test -z "$ac_dir" && ac_dir=.
7691: if test -f $ac_dir/file; then
7692: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7693: if test -n "$file_magic_test_file"; then
7694: case $deplibs_check_method in
7695: "file_magic "*)
7696: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7697: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7699: $EGREP "$file_magic_regex" > /dev/null; then
7700: :
7701: else
7702: cat <<_LT_EOF 1>&2
1.7 paf 7703:
1.25 moko 7704: *** Warning: the command libtool uses to detect shared libraries,
7705: *** $file_magic_cmd, produces output that libtool cannot recognize.
7706: *** The result is that libtool may fail to recognize shared libraries
7707: *** as such. This will affect the creation of libtool libraries that
7708: *** depend on shared libraries, but programs linked with such libtool
7709: *** libraries will work regardless of this problem. Nevertheless, you
7710: *** may want to report the problem to your system manager and/or to
7711: *** bug-libtool@gnu.org
1.7 paf 7712:
1.25 moko 7713: _LT_EOF
7714: fi ;;
7715: esac
7716: fi
7717: break
7718: fi
7719: done
7720: IFS="$lt_save_ifs"
7721: MAGIC_CMD="$lt_save_MAGIC_CMD"
7722: ;;
7723: esac
7724: fi
1.7 paf 7725:
1.25 moko 7726: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727: if test -n "$MAGIC_CMD"; then
7728: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7729: echo "${ECHO_T}$MAGIC_CMD" >&6
7730: else
7731: echo "$as_me:$LINENO: result: no" >&5
7732: echo "${ECHO_T}no" >&6
1.11 paf 7733: fi
7734:
7735:
1.25 moko 7736: else
7737: MAGIC_CMD=:
7738: fi
1.1 parser 7739: fi
7740:
1.25 moko 7741: fi
7742: ;;
7743: esac
1.1 parser 7744:
1.25 moko 7745: # Use C for the default configuration in the libtool script
1.1 parser 7746:
1.25 moko 7747: lt_save_CC="$CC"
7748: ac_ext=c
7749: ac_cpp='$CPP $CPPFLAGS'
7750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 parser 7753:
7754:
1.25 moko 7755: # Source file extension for C test sources.
7756: ac_ext=c
1.11 paf 7757:
1.25 moko 7758: # Object file extension for compiled C test sources.
7759: objext=o
7760: objext=$objext
1.11 paf 7761:
1.25 moko 7762: # Code to be used in simple compile tests
7763: lt_simple_compile_test_code="int some_variable = 0;"
1.11 paf 7764:
1.25 moko 7765: # Code to be used in simple link tests
7766: lt_simple_link_test_code='int main(){return(0);}'
1.11 paf 7767:
7768:
7769:
7770:
7771:
1.1 parser 7772:
7773:
1.25 moko 7774: # If no C compiler was specified, use CC.
7775: LTCC=${LTCC-"$CC"}
1.1 parser 7776:
1.25 moko 7777: # If no C compiler flags were specified, use CFLAGS.
7778: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 parser 7779:
1.25 moko 7780: # Allow CC to be a program name with arguments.
7781: compiler=$CC
1.1 parser 7782:
1.25 moko 7783: # Save the default compiler, since it gets overwritten when the other
7784: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7785: compiler_DEFAULT=$CC
7786:
7787: # save warnings/boilerplate of simple test code
7788: ac_outfile=conftest.$ac_objext
7789: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7790: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7791: _lt_compiler_boilerplate=`cat conftest.err`
7792: $RM conftest*
7793:
7794: ac_outfile=conftest.$ac_objext
7795: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7796: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7797: _lt_linker_boilerplate=`cat conftest.err`
7798: $RM -r conftest*
7799:
7800:
7801: ## CAVEAT EMPTOR:
7802: ## There is no encapsulation within the following macros, do not change
7803: ## the running order or otherwise move them around unless you know exactly
7804: ## what you are doing...
7805: if test -n "$compiler"; then
1.1 parser 7806:
1.25 moko 7807: lt_prog_compiler_no_builtin_flag=
1.1 parser 7808:
1.25 moko 7809: if test "$GCC" = yes; then
7810: case $cc_basename in
7811: nvcc*)
7812: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7813: *)
7814: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7815: esac
1.1 parser 7816:
1.25 moko 7817: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7818: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7819: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.11 paf 7820: echo $ECHO_N "(cached) $ECHO_C" >&6
7821: else
1.25 moko 7822: lt_cv_prog_compiler_rtti_exceptions=no
7823: ac_outfile=conftest.$ac_objext
7824: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825: lt_compiler_flag="-fno-rtti -fno-exceptions"
7826: # Insert the option either (1) after the last *FLAGS variable, or
7827: # (2) before a word containing "conftest.", or (3) at the end.
7828: # Note that $ac_compile itself does not contain backslashes and begins
7829: # with a dollar sign (not a hyphen), so the echo should work correctly.
7830: # The option is referenced via a variable to avoid confusing sed.
7831: lt_compile=`echo "$ac_compile" | $SED \
7832: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834: -e 's:$: $lt_compiler_flag:'`
7835: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7836: (eval "$lt_compile" 2>conftest.err)
7837: ac_status=$?
7838: cat conftest.err >&5
7839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840: if (exit $ac_status) && test -s "$ac_outfile"; then
7841: # The compiler can only warn and ignore the option if not recognized
7842: # So say no if there are warnings other than the usual output.
7843: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7844: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7845: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7846: lt_cv_prog_compiler_rtti_exceptions=yes
7847: fi
7848: fi
7849: $RM conftest*
1.11 paf 7850:
7851: fi
1.25 moko 7852: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7853: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.11 paf 7854:
1.25 moko 7855: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7856: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.11 paf 7857: else
1.25 moko 7858: :
1.11 paf 7859: fi
7860:
7861: fi
7862:
1.25 moko 7863:
7864:
7865:
7866:
7867:
7868: lt_prog_compiler_wl=
7869: lt_prog_compiler_pic=
7870: lt_prog_compiler_static=
7871:
7872:
7873: if test "$GCC" = yes; then
7874: lt_prog_compiler_wl='-Wl,'
7875: lt_prog_compiler_static='-static'
7876:
7877: case $host_os in
7878: aix*)
7879: # All AIX code is PIC.
7880: if test "$host_cpu" = ia64; then
7881: # AIX 5 now supports IA64 processor
7882: lt_prog_compiler_static='-Bstatic'
7883: fi
7884: ;;
7885:
7886: amigaos*)
7887: case $host_cpu in
7888: powerpc)
7889: # see comment about AmigaOS4 .so support
7890: lt_prog_compiler_pic='-fPIC'
7891: ;;
7892: m68k)
7893: # FIXME: we need at least 68020 code to build shared libraries, but
7894: # adding the `-m68020' flag to GCC prevents building anything better,
7895: # like `-m68040'.
7896: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7897: ;;
7898: esac
7899: ;;
7900:
7901: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7902: # PIC is the default for these OSes.
7903: ;;
7904:
7905: mingw* | cygwin* | pw32* | os2* | cegcc*)
7906: # This hack is so that the source file can tell whether it is being
7907: # built for inclusion in a dll (and should export symbols for example).
7908: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7909: # (--disable-auto-import) libraries
7910: lt_prog_compiler_pic='-DDLL_EXPORT'
7911: ;;
7912:
7913: darwin* | rhapsody*)
7914: # PIC is the default on this platform
7915: # Common symbols not allowed in MH_DYLIB files
7916: lt_prog_compiler_pic='-fno-common'
7917: ;;
7918:
7919: haiku*)
7920: # PIC is the default for Haiku.
7921: # The "-static" flag exists, but is broken.
7922: lt_prog_compiler_static=
7923: ;;
7924:
7925: hpux*)
7926: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7927: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7928: # sets the default TLS model and affects inlining.
7929: case $host_cpu in
7930: hppa*64*)
7931: # +Z the default
7932: ;;
7933: *)
7934: lt_prog_compiler_pic='-fPIC'
7935: ;;
7936: esac
7937: ;;
7938:
7939: interix[3-9]*)
7940: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7941: # Instead, we relocate shared libraries at runtime.
7942: ;;
7943:
7944: msdosdjgpp*)
7945: # Just because we use GCC doesn't mean we suddenly get shared libraries
7946: # on systems that don't support them.
7947: lt_prog_compiler_can_build_shared=no
7948: enable_shared=no
7949: ;;
7950:
7951: *nto* | *qnx*)
7952: # QNX uses GNU C++, but need to define -shared option too, otherwise
7953: # it will coredump.
7954: lt_prog_compiler_pic='-fPIC -shared'
7955: ;;
7956:
7957: sysv4*MP*)
7958: if test -d /usr/nec; then
7959: lt_prog_compiler_pic=-Kconform_pic
7960: fi
7961: ;;
7962:
7963: *)
7964: lt_prog_compiler_pic='-fPIC'
7965: ;;
7966: esac
7967:
7968: case $cc_basename in
7969: nvcc*) # Cuda Compiler Driver 2.2
7970: lt_prog_compiler_wl='-Xlinker '
7971: if test -n "$lt_prog_compiler_pic"; then
7972: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7973: fi
7974: ;;
7975: esac
7976: else
7977: # PORTME Check for flag to pass linker flags through the system compiler.
7978: case $host_os in
7979: aix*)
7980: lt_prog_compiler_wl='-Wl,'
7981: if test "$host_cpu" = ia64; then
7982: # AIX 5 now supports IA64 processor
7983: lt_prog_compiler_static='-Bstatic'
7984: else
7985: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7986: fi
7987: ;;
7988:
7989: mingw* | cygwin* | pw32* | os2* | cegcc*)
7990: # This hack is so that the source file can tell whether it is being
7991: # built for inclusion in a dll (and should export symbols for example).
7992: lt_prog_compiler_pic='-DDLL_EXPORT'
7993: ;;
7994:
7995: hpux9* | hpux10* | hpux11*)
7996: lt_prog_compiler_wl='-Wl,'
7997: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7998: # not for PA HP-UX.
7999: case $host_cpu in
8000: hppa*64*|ia64*)
8001: # +Z the default
8002: ;;
8003: *)
8004: lt_prog_compiler_pic='+Z'
8005: ;;
8006: esac
8007: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8008: lt_prog_compiler_static='${wl}-a ${wl}archive'
8009: ;;
8010:
8011: irix5* | irix6* | nonstopux*)
8012: lt_prog_compiler_wl='-Wl,'
8013: # PIC (with -KPIC) is the default.
8014: lt_prog_compiler_static='-non_shared'
8015: ;;
8016:
8017: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8018: case $cc_basename in
8019: # old Intel for x86_64 which still supported -KPIC.
8020: ecc*)
8021: lt_prog_compiler_wl='-Wl,'
8022: lt_prog_compiler_pic='-KPIC'
8023: lt_prog_compiler_static='-static'
8024: ;;
8025: # icc used to be incompatible with GCC.
8026: # ICC 10 doesn't accept -KPIC any more.
8027: icc* | ifort*)
8028: lt_prog_compiler_wl='-Wl,'
8029: lt_prog_compiler_pic='-fPIC'
8030: lt_prog_compiler_static='-static'
8031: ;;
8032: # Lahey Fortran 8.1.
8033: lf95*)
8034: lt_prog_compiler_wl='-Wl,'
8035: lt_prog_compiler_pic='--shared'
8036: lt_prog_compiler_static='--static'
8037: ;;
8038: nagfor*)
8039: # NAG Fortran compiler
8040: lt_prog_compiler_wl='-Wl,-Wl,,'
8041: lt_prog_compiler_pic='-PIC'
8042: lt_prog_compiler_static='-Bstatic'
8043: ;;
8044: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8045: # Portland Group compilers (*not* the Pentium gcc compiler,
8046: # which looks to be a dead project)
8047: lt_prog_compiler_wl='-Wl,'
8048: lt_prog_compiler_pic='-fpic'
8049: lt_prog_compiler_static='-Bstatic'
8050: ;;
8051: ccc*)
8052: lt_prog_compiler_wl='-Wl,'
8053: # All Alpha code is PIC.
8054: lt_prog_compiler_static='-non_shared'
8055: ;;
8056: xl* | bgxl* | bgf* | mpixl*)
8057: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8058: lt_prog_compiler_wl='-Wl,'
8059: lt_prog_compiler_pic='-qpic'
8060: lt_prog_compiler_static='-qstaticlink'
8061: ;;
8062: *)
8063: case `$CC -V 2>&1 | sed 5q` in
8064: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8065: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8066: lt_prog_compiler_pic='-KPIC'
8067: lt_prog_compiler_static='-Bstatic'
8068: lt_prog_compiler_wl=''
8069: ;;
8070: *Sun\ F* | *Sun*Fortran*)
8071: lt_prog_compiler_pic='-KPIC'
8072: lt_prog_compiler_static='-Bstatic'
8073: lt_prog_compiler_wl='-Qoption ld '
8074: ;;
8075: *Sun\ C*)
8076: # Sun C 5.9
8077: lt_prog_compiler_pic='-KPIC'
8078: lt_prog_compiler_static='-Bstatic'
8079: lt_prog_compiler_wl='-Wl,'
8080: ;;
8081: *Intel*\ [CF]*Compiler*)
8082: lt_prog_compiler_wl='-Wl,'
8083: lt_prog_compiler_pic='-fPIC'
8084: lt_prog_compiler_static='-static'
8085: ;;
8086: *Portland\ Group*)
8087: lt_prog_compiler_wl='-Wl,'
8088: lt_prog_compiler_pic='-fpic'
8089: lt_prog_compiler_static='-Bstatic'
8090: ;;
8091: esac
8092: ;;
8093: esac
8094: ;;
8095:
8096: newsos6)
8097: lt_prog_compiler_pic='-KPIC'
8098: lt_prog_compiler_static='-Bstatic'
8099: ;;
8100:
8101: *nto* | *qnx*)
8102: # QNX uses GNU C++, but need to define -shared option too, otherwise
8103: # it will coredump.
8104: lt_prog_compiler_pic='-fPIC -shared'
8105: ;;
8106:
8107: osf3* | osf4* | osf5*)
8108: lt_prog_compiler_wl='-Wl,'
8109: # All OSF/1 code is PIC.
8110: lt_prog_compiler_static='-non_shared'
8111: ;;
8112:
8113: rdos*)
8114: lt_prog_compiler_static='-non_shared'
8115: ;;
8116:
8117: solaris*)
8118: lt_prog_compiler_pic='-KPIC'
8119: lt_prog_compiler_static='-Bstatic'
8120: case $cc_basename in
8121: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8122: lt_prog_compiler_wl='-Qoption ld ';;
8123: *)
8124: lt_prog_compiler_wl='-Wl,';;
8125: esac
8126: ;;
8127:
8128: sunos4*)
8129: lt_prog_compiler_wl='-Qoption ld '
8130: lt_prog_compiler_pic='-PIC'
8131: lt_prog_compiler_static='-Bstatic'
8132: ;;
8133:
8134: sysv4 | sysv4.2uw2* | sysv4.3*)
8135: lt_prog_compiler_wl='-Wl,'
8136: lt_prog_compiler_pic='-KPIC'
8137: lt_prog_compiler_static='-Bstatic'
8138: ;;
8139:
8140: sysv4*MP*)
8141: if test -d /usr/nec ;then
8142: lt_prog_compiler_pic='-Kconform_pic'
8143: lt_prog_compiler_static='-Bstatic'
8144: fi
8145: ;;
8146:
8147: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8148: lt_prog_compiler_wl='-Wl,'
8149: lt_prog_compiler_pic='-KPIC'
8150: lt_prog_compiler_static='-Bstatic'
8151: ;;
8152:
8153: unicos*)
8154: lt_prog_compiler_wl='-Wl,'
8155: lt_prog_compiler_can_build_shared=no
8156: ;;
8157:
8158: uts4*)
8159: lt_prog_compiler_pic='-pic'
8160: lt_prog_compiler_static='-Bstatic'
8161: ;;
8162:
8163: *)
8164: lt_prog_compiler_can_build_shared=no
8165: ;;
8166: esac
8167: fi
8168:
8169: case $host_os in
8170: # For platforms which do not support PIC, -DPIC is meaningless:
8171: *djgpp*)
8172: lt_prog_compiler_pic=
1.11 paf 8173: ;;
1.25 moko 8174: *)
8175: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.11 paf 8176: ;;
8177: esac
1.25 moko 8178:
8179: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8180: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8181: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8182: echo $ECHO_N "(cached) $ECHO_C" >&6
8183: else
8184: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8185: fi
8186: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8187: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8188: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8189:
8190: #
8191: # Check to make sure the PIC flag actually works.
8192: #
8193: if test -n "$lt_prog_compiler_pic"; then
8194: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8195: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8196: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.11 paf 8197: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 8198: else
1.25 moko 8199: lt_cv_prog_compiler_pic_works=no
8200: ac_outfile=conftest.$ac_objext
8201: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8203: # Insert the option either (1) after the last *FLAGS variable, or
8204: # (2) before a word containing "conftest.", or (3) at the end.
8205: # Note that $ac_compile itself does not contain backslashes and begins
8206: # with a dollar sign (not a hyphen), so the echo should work correctly.
8207: # The option is referenced via a variable to avoid confusing sed.
8208: lt_compile=`echo "$ac_compile" | $SED \
8209: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211: -e 's:$: $lt_compiler_flag:'`
8212: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8213: (eval "$lt_compile" 2>conftest.err)
8214: ac_status=$?
8215: cat conftest.err >&5
8216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217: if (exit $ac_status) && test -s "$ac_outfile"; then
8218: # The compiler can only warn and ignore the option if not recognized
8219: # So say no if there are warnings other than the usual output.
8220: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8221: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8222: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8223: lt_cv_prog_compiler_pic_works=yes
8224: fi
8225: fi
8226: $RM conftest*
8227:
1.1 parser 8228: fi
1.25 moko 8229: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8230: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.11 paf 8231:
1.25 moko 8232: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8233: case $lt_prog_compiler_pic in
8234: "" | " "*) ;;
8235: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8236: esac
8237: else
8238: lt_prog_compiler_pic=
8239: lt_prog_compiler_can_build_shared=no
1.1 parser 8240: fi
1.11 paf 8241:
1.1 parser 8242: fi
1.11 paf 8243:
1.1 parser 8244:
8245:
1.4 paf 8246:
8247:
1.11 paf 8248:
8249:
1.4 paf 8250:
8251:
1.25 moko 8252:
8253:
8254: #
8255: # Check to make sure the static flag actually works.
8256: #
8257: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8258: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8259: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8260: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8261: echo $ECHO_N "(cached) $ECHO_C" >&6
8262: else
8263: lt_cv_prog_compiler_static_works=no
8264: save_LDFLAGS="$LDFLAGS"
8265: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8266: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8267: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8268: # The linker can only warn and ignore the option if not recognized
8269: # So say no if there are warnings
8270: if test -s conftest.err; then
8271: # Append any errors to the config.log.
8272: cat conftest.err 1>&5
8273: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8274: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275: if diff conftest.exp conftest.er2 >/dev/null; then
8276: lt_cv_prog_compiler_static_works=yes
8277: fi
8278: else
8279: lt_cv_prog_compiler_static_works=yes
8280: fi
8281: fi
8282: $RM -r conftest*
8283: LDFLAGS="$save_LDFLAGS"
8284:
8285: fi
8286: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8287: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8288:
8289: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8290: :
1.4 paf 8291: else
1.25 moko 8292: lt_prog_compiler_static=
8293: fi
1.11 paf 8294:
8295:
1.25 moko 8296:
8297:
8298:
8299:
8300:
8301: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8302: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8303: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8304: echo $ECHO_N "(cached) $ECHO_C" >&6
8305: else
8306: lt_cv_prog_compiler_c_o=no
8307: $RM -r conftest 2>/dev/null
8308: mkdir conftest
8309: cd conftest
8310: mkdir out
8311: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312:
8313: lt_compiler_flag="-o out/conftest2.$ac_objext"
8314: # Insert the option either (1) after the last *FLAGS variable, or
8315: # (2) before a word containing "conftest.", or (3) at the end.
8316: # Note that $ac_compile itself does not contain backslashes and begins
8317: # with a dollar sign (not a hyphen), so the echo should work correctly.
8318: lt_compile=`echo "$ac_compile" | $SED \
8319: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321: -e 's:$: $lt_compiler_flag:'`
8322: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323: (eval "$lt_compile" 2>out/conftest.err)
8324: ac_status=$?
8325: cat out/conftest.err >&5
8326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8328: then
8329: # The compiler can only warn and ignore the option if not recognized
8330: # So say no if there are warnings
8331: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8332: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8333: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8334: lt_cv_prog_compiler_c_o=yes
8335: fi
8336: fi
8337: chmod u+w . 2>&5
8338: $RM conftest*
8339: # SGI C++ compiler will create directory out/ii_files/ for
8340: # template instantiation
8341: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8342: $RM out/* && rmdir out
8343: cd ..
8344: $RM -r conftest
8345: $RM conftest*
8346:
8347: fi
8348: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8349: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8350:
8351:
8352:
8353:
8354:
8355:
8356: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8357: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8358: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8359: echo $ECHO_N "(cached) $ECHO_C" >&6
8360: else
8361: lt_cv_prog_compiler_c_o=no
8362: $RM -r conftest 2>/dev/null
8363: mkdir conftest
8364: cd conftest
8365: mkdir out
8366: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367:
8368: lt_compiler_flag="-o out/conftest2.$ac_objext"
8369: # Insert the option either (1) after the last *FLAGS variable, or
8370: # (2) before a word containing "conftest.", or (3) at the end.
8371: # Note that $ac_compile itself does not contain backslashes and begins
8372: # with a dollar sign (not a hyphen), so the echo should work correctly.
8373: lt_compile=`echo "$ac_compile" | $SED \
8374: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376: -e 's:$: $lt_compiler_flag:'`
8377: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378: (eval "$lt_compile" 2>out/conftest.err)
8379: ac_status=$?
8380: cat out/conftest.err >&5
8381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8383: then
8384: # The compiler can only warn and ignore the option if not recognized
8385: # So say no if there are warnings
8386: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8387: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8388: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8389: lt_cv_prog_compiler_c_o=yes
8390: fi
8391: fi
8392: chmod u+w . 2>&5
8393: $RM conftest*
8394: # SGI C++ compiler will create directory out/ii_files/ for
8395: # template instantiation
8396: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8397: $RM out/* && rmdir out
8398: cd ..
8399: $RM -r conftest
8400: $RM conftest*
8401:
8402: fi
8403: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8404: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8405:
8406:
8407:
8408:
8409: hard_links="nottested"
8410: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8411: # do not overwrite the value of need_locks provided by the user
8412: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8413: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8414: hard_links=yes
8415: $RM conftest*
8416: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8417: touch conftest.a
8418: ln conftest.a conftest.b 2>&5 || hard_links=no
8419: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8420: echo "$as_me:$LINENO: result: $hard_links" >&5
8421: echo "${ECHO_T}$hard_links" >&6
8422: if test "$hard_links" = no; then
8423: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8424: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8425: need_locks=warn
8426: fi
8427: else
8428: need_locks=no
8429: fi
8430:
8431:
8432:
8433:
8434:
8435:
8436: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8437: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8438:
8439: runpath_var=
8440: allow_undefined_flag=
8441: always_export_symbols=no
8442: archive_cmds=
8443: archive_expsym_cmds=
8444: compiler_needs_object=no
8445: enable_shared_with_static_runtimes=no
8446: export_dynamic_flag_spec=
8447: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8448: hardcode_automatic=no
8449: hardcode_direct=no
8450: hardcode_direct_absolute=no
8451: hardcode_libdir_flag_spec=
8452: hardcode_libdir_separator=
8453: hardcode_minus_L=no
8454: hardcode_shlibpath_var=unsupported
8455: inherit_rpath=no
8456: link_all_deplibs=unknown
8457: module_cmds=
8458: module_expsym_cmds=
8459: old_archive_from_new_cmds=
8460: old_archive_from_expsyms_cmds=
8461: thread_safe_flag_spec=
8462: whole_archive_flag_spec=
8463: # include_expsyms should be a list of space-separated symbols to be *always*
8464: # included in the symbol list
8465: include_expsyms=
8466: # exclude_expsyms can be an extended regexp of symbols to exclude
8467: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469: # as well as any symbol that contains `d'.
8470: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8471: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472: # platforms (ab)use it in PIC code, but their linkers get confused if
8473: # the symbol is explicitly referenced. Since portable code cannot
8474: # rely on this symbol name, it's probably fine to never include it in
8475: # preloaded symbol tables.
8476: # Exclude shared library initialization/finalization symbols.
8477: extract_expsyms_cmds=
8478:
8479: case $host_os in
8480: cygwin* | mingw* | pw32* | cegcc*)
8481: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8482: # When not using gcc, we currently assume that we are using
8483: # Microsoft Visual C++.
8484: if test "$GCC" != yes; then
8485: with_gnu_ld=no
8486: fi
8487: ;;
8488: interix*)
8489: # we just hope/assume this is gcc and not c89 (= MSVC++)
8490: with_gnu_ld=yes
8491: ;;
8492: openbsd*)
8493: with_gnu_ld=no
8494: ;;
8495: esac
8496:
8497: ld_shlibs=yes
8498:
8499: # On some targets, GNU ld is compatible enough with the native linker
8500: # that we're better off using the native interface for both.
8501: lt_use_gnu_ld_interface=no
8502: if test "$with_gnu_ld" = yes; then
8503: case $host_os in
8504: aix*)
8505: # The AIX port of GNU ld has always aspired to compatibility
8506: # with the native linker. However, as the warning in the GNU ld
8507: # block says, versions before 2.19.5* couldn't really create working
8508: # shared libraries, regardless of the interface used.
8509: case `$LD -v 2>&1` in
8510: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8511: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8512: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8513: *)
8514: lt_use_gnu_ld_interface=yes
8515: ;;
8516: esac
8517: ;;
8518: *)
8519: lt_use_gnu_ld_interface=yes
8520: ;;
8521: esac
8522: fi
8523:
8524: if test "$lt_use_gnu_ld_interface" = yes; then
8525: # If archive_cmds runs LD, not CC, wlarc should be empty
8526: wlarc='${wl}'
8527:
8528: # Set some defaults for GNU ld with shared library support. These
8529: # are reset later if shared libraries are not supported. Putting them
8530: # here allows them to be overridden if necessary.
8531: runpath_var=LD_RUN_PATH
8532: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533: export_dynamic_flag_spec='${wl}--export-dynamic'
8534: # ancient GNU ld didn't support --whole-archive et. al.
8535: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8537: else
8538: whole_archive_flag_spec=
8539: fi
8540: supports_anon_versioning=no
8541: case `$LD -v 2>&1` in
8542: *GNU\ gold*) supports_anon_versioning=yes ;;
8543: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546: *\ 2.11.*) ;; # other 2.11 versions
8547: *) supports_anon_versioning=yes ;;
8548: esac
8549:
8550: # See if GNU ld supports shared libraries.
8551: case $host_os in
8552: aix[3-9]*)
8553: # On AIX/PPC, the GNU linker is very broken
8554: if test "$host_cpu" != ia64; then
8555: ld_shlibs=no
8556: cat <<_LT_EOF 1>&2
8557:
8558: *** Warning: the GNU linker, at least up to release 2.19, is reported
8559: *** to be unable to reliably create shared libraries on AIX.
8560: *** Therefore, libtool is disabling shared libraries support. If you
8561: *** really care for shared libraries, you may want to install binutils
8562: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8563: *** You will then need to restart the configuration process.
8564:
8565: _LT_EOF
8566: fi
8567: ;;
8568:
8569: amigaos*)
8570: case $host_cpu in
8571: powerpc)
8572: # see comment about AmigaOS4 .so support
8573: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574: archive_expsym_cmds=''
8575: ;;
8576: m68k)
8577: 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)'
8578: hardcode_libdir_flag_spec='-L$libdir'
8579: hardcode_minus_L=yes
8580: ;;
8581: esac
8582: ;;
8583:
8584: beos*)
8585: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8586: allow_undefined_flag=unsupported
8587: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8588: # support --undefined. This deserves some investigation. FIXME
8589: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590: else
8591: ld_shlibs=no
8592: fi
8593: ;;
8594:
8595: cygwin* | mingw* | pw32* | cegcc*)
8596: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8597: # as there is no search path for DLLs.
8598: hardcode_libdir_flag_spec='-L$libdir'
8599: export_dynamic_flag_spec='${wl}--export-all-symbols'
8600: allow_undefined_flag=unsupported
8601: always_export_symbols=no
8602: enable_shared_with_static_runtimes=yes
8603: 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'
8604: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8605:
8606: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8607: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608: # If the export-symbols file already is a .def file (1st line
8609: # is EXPORTS), use it as is; otherwise, prepend...
8610: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8611: cp $export_symbols $output_objdir/$soname.def;
8612: else
8613: echo EXPORTS > $output_objdir/$soname.def;
8614: cat $export_symbols >> $output_objdir/$soname.def;
8615: fi~
8616: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8617: else
8618: ld_shlibs=no
8619: fi
8620: ;;
8621:
8622: haiku*)
8623: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624: link_all_deplibs=yes
8625: ;;
8626:
8627: interix[3-9]*)
8628: hardcode_direct=no
8629: hardcode_shlibpath_var=no
8630: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8631: export_dynamic_flag_spec='${wl}-E'
8632: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8633: # Instead, shared libraries are loaded at an image base (0x10000000 by
8634: # default) and relocated if they conflict, which is a slow very memory
8635: # consuming and fragmenting process. To avoid this, we pick a random,
8636: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8637: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8638: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8639: 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'
8640: ;;
8641:
8642: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8643: tmp_diet=no
8644: if test "$host_os" = linux-dietlibc; then
8645: case $cc_basename in
8646: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8647: esac
8648: fi
8649: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8650: && test "$tmp_diet" = no
8651: then
8652: tmp_addflag=' $pic_flag'
8653: tmp_sharedflag='-shared'
8654: case $cc_basename,$host_cpu in
8655: pgcc*) # Portland Group C compiler
8656: 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'
8657: tmp_addflag=' $pic_flag'
8658: ;;
8659: pgf77* | pgf90* | pgf95* | pgfortran*)
8660: # Portland Group f77 and f90 compilers
8661: 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'
8662: tmp_addflag=' $pic_flag -Mnomain' ;;
8663: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8664: tmp_addflag=' -i_dynamic' ;;
8665: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8666: tmp_addflag=' -i_dynamic -nofor_main' ;;
8667: ifc* | ifort*) # Intel Fortran compiler
8668: tmp_addflag=' -nofor_main' ;;
8669: lf95*) # Lahey Fortran 8.1
8670: whole_archive_flag_spec=
8671: tmp_sharedflag='--shared' ;;
8672: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8673: tmp_sharedflag='-qmkshrobj'
8674: tmp_addflag= ;;
8675: nvcc*) # Cuda Compiler Driver 2.2
8676: 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'
8677: compiler_needs_object=yes
8678: ;;
8679: esac
8680: case `$CC -V 2>&1 | sed 5q` in
8681: *Sun\ C*) # Sun C 5.9
8682: 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'
8683: compiler_needs_object=yes
8684: tmp_sharedflag='-G' ;;
8685: *Sun\ F*) # Sun Fortran 8.3
8686: tmp_sharedflag='-G' ;;
8687: esac
8688: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8689:
8690: if test "x$supports_anon_versioning" = xyes; then
8691: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8692: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8693: echo "local: *; };" >> $output_objdir/$libname.ver~
8694: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8695: fi
8696:
8697: case $cc_basename in
8698: xlf* | bgf* | bgxlf* | mpixlf*)
8699: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8700: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8701: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8703: if test "x$supports_anon_versioning" = xyes; then
8704: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706: echo "local: *; };" >> $output_objdir/$libname.ver~
8707: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708: fi
8709: ;;
8710: esac
8711: else
8712: ld_shlibs=no
8713: fi
8714: ;;
8715:
8716: netbsd*)
8717: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719: wlarc=
8720: else
8721: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723: fi
8724: ;;
8725:
8726: solaris*)
8727: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8728: ld_shlibs=no
8729: cat <<_LT_EOF 1>&2
8730:
8731: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732: *** create shared libraries on Solaris systems. Therefore, libtool
8733: *** is disabling shared libraries support. We urge you to upgrade GNU
8734: *** binutils to release 2.9.1 or newer. Another option is to modify
8735: *** your PATH or compiler configuration so that the native linker is
8736: *** used, and then restart.
8737:
8738: _LT_EOF
8739: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742: else
8743: ld_shlibs=no
8744: fi
8745: ;;
8746:
8747: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748: case `$LD -v 2>&1` in
8749: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8750: ld_shlibs=no
8751: cat <<_LT_EOF 1>&2
8752:
8753: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754: *** reliably create shared libraries on SCO systems. Therefore, libtool
8755: *** is disabling shared libraries support. We urge you to upgrade GNU
8756: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8757: *** your PATH or compiler configuration so that the native linker is
8758: *** used, and then restart.
8759:
8760: _LT_EOF
8761: ;;
8762: *)
8763: # For security reasons, it is highly recommended that you always
8764: # use absolute paths for naming shared libraries, and exclude the
8765: # DT_RUNPATH tag from executables and libraries. But doing so
8766: # requires that you compile everything twice, which is a pain.
8767: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771: else
8772: ld_shlibs=no
8773: fi
8774: ;;
8775: esac
8776: ;;
8777:
8778: sunos4*)
8779: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780: wlarc=
8781: hardcode_direct=yes
8782: hardcode_shlibpath_var=no
8783: ;;
8784:
8785: *)
8786: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789: else
8790: ld_shlibs=no
8791: fi
8792: ;;
8793: esac
8794:
8795: if test "$ld_shlibs" = no; then
8796: runpath_var=
8797: hardcode_libdir_flag_spec=
8798: export_dynamic_flag_spec=
8799: whole_archive_flag_spec=
8800: fi
8801: else
8802: # PORTME fill in a description of your system's linker (not GNU ld)
8803: case $host_os in
8804: aix3*)
8805: allow_undefined_flag=unsupported
8806: always_export_symbols=yes
8807: 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'
8808: # Note: this linker hardcodes the directories in LIBPATH if there
8809: # are no directories specified by -L.
8810: hardcode_minus_L=yes
8811: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812: # Neither direct hardcoding nor static linking is supported with a
8813: # broken collect2.
8814: hardcode_direct=unsupported
8815: fi
8816: ;;
8817:
8818: aix[4-9]*)
8819: if test "$host_cpu" = ia64; then
8820: # On IA64, the linker does run time linking by default, so we don't
8821: # have to do anything special.
8822: aix_use_runtimelinking=no
8823: exp_sym_flag='-Bexport'
8824: no_entry_flag=""
8825: else
8826: # If we're using GNU nm, then we don't want the "-C" option.
8827: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828: # Also, AIX nm treats weak defined symbols like other global
8829: # defined symbols, whereas GNU nm marks them as "W".
8830: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8831: 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'
8832: else
8833: 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'
8834: fi
8835: aix_use_runtimelinking=no
8836:
8837: # Test if we are trying to use run time linking or normal
8838: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839: # need to do runtime linking.
8840: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8841: for ld_flag in $LDFLAGS; do
8842: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843: aix_use_runtimelinking=yes
8844: break
8845: fi
8846: done
8847: ;;
8848: esac
8849:
8850: exp_sym_flag='-bexport'
8851: no_entry_flag='-bnoentry'
8852: fi
8853:
8854: # When large executables or shared objects are built, AIX ld can
8855: # have problems creating the table of contents. If linking a library
8856: # or program results in "error TOC overflow" add -mminimal-toc to
8857: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8858: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8859:
8860: archive_cmds=''
8861: hardcode_direct=yes
8862: hardcode_direct_absolute=yes
8863: hardcode_libdir_separator=':'
8864: link_all_deplibs=yes
8865: file_list_spec='${wl}-f,'
8866:
8867: if test "$GCC" = yes; then
8868: case $host_os in aix4.[012]|aix4.[012].*)
8869: # We only want to do this on AIX 4.2 and lower, the check
8870: # below for broken collect2 doesn't work under 4.3+
8871: collect2name=`${CC} -print-prog-name=collect2`
8872: if test -f "$collect2name" &&
8873: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8874: then
8875: # We have reworked collect2
8876: :
8877: else
8878: # We have old collect2
8879: hardcode_direct=unsupported
8880: # It fails to find uninstalled libraries when the uninstalled
8881: # path is not listed in the libpath. Setting hardcode_minus_L
8882: # to unsupported forces relinking
8883: hardcode_minus_L=yes
8884: hardcode_libdir_flag_spec='-L$libdir'
8885: hardcode_libdir_separator=
8886: fi
8887: ;;
8888: esac
8889: shared_flag='-shared'
8890: if test "$aix_use_runtimelinking" = yes; then
8891: shared_flag="$shared_flag "'${wl}-G'
8892: fi
8893: else
8894: # not using gcc
8895: if test "$host_cpu" = ia64; then
8896: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897: # chokes on -Wl,-G. The following line is correct:
8898: shared_flag='-G'
8899: else
8900: if test "$aix_use_runtimelinking" = yes; then
8901: shared_flag='${wl}-G'
8902: else
8903: shared_flag='${wl}-bM:SRE'
8904: fi
8905: fi
8906: fi
8907:
8908: export_dynamic_flag_spec='${wl}-bexpall'
8909: # It seems that -bexpall does not export symbols beginning with
8910: # underscore (_), so it is better to generate a list of symbols to export.
8911: always_export_symbols=yes
8912: if test "$aix_use_runtimelinking" = yes; then
8913: # Warning - without using the other runtime loading flags (-brtl),
8914: # -berok will link without error, but may produce a broken library.
8915: allow_undefined_flag='-berok'
8916: # Determine the default libpath from the value encoded in an
8917: # empty executable.
8918: if test "${lt_cv_aix_libpath+set}" = set; then
8919: aix_libpath=$lt_cv_aix_libpath
8920: else
8921: if test "${lt_cv_aix_libpath_+set}" = set; then
8922: echo $ECHO_N "(cached) $ECHO_C" >&6
8923: else
8924: cat >conftest.$ac_ext <<_ACEOF
1.11 paf 8925: /* confdefs.h. */
8926: _ACEOF
8927: cat confdefs.h >>conftest.$ac_ext
8928: cat >>conftest.$ac_ext <<_ACEOF
8929: /* end confdefs.h. */
1.1 parser 8930:
1.11 paf 8931: int
8932: main ()
8933: {
1.1 parser 8934:
1.11 paf 8935: ;
8936: return 0;
8937: }
8938: _ACEOF
1.17 paf 8939: rm -f conftest.$ac_objext conftest$ac_exeext
8940: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18 paf 8941: (eval $ac_link) 2>conftest.er1
1.11 paf 8942: ac_status=$?
1.18 paf 8943: grep -v '^ *+' conftest.er1 >conftest.err
8944: rm -f conftest.er1
8945: cat conftest.err >&5
1.11 paf 8946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947: (exit $ac_status); } &&
1.18 paf 8948: { ac_try='test -z "$ac_c_werror_flag"
8949: || test ! -s conftest.err'
8950: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951: (eval $ac_try) 2>&5
8952: ac_status=$?
8953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954: (exit $ac_status); }; } &&
8955: { ac_try='test -s conftest$ac_exeext'
1.11 paf 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); }; }; then
8961:
1.25 moko 8962: lt_aix_libpath_sed='
8963: /Import File Strings/,/^$/ {
8964: /^0/ {
8965: s/^0 *\([^ ]*\) *$/\1/
8966: p
8967: }
8968: }'
8969: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970: # Check for a 64-bit object if we didn't find anything.
8971: if test -z "$lt_cv_aix_libpath_"; then
8972: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973: fi
1.11 paf 8974: else
8975: echo "$as_me: failed program was:" >&5
8976: sed 's/^/| /' conftest.$ac_ext >&5
8977:
8978: fi
1.18 paf 8979: rm -f conftest.err conftest.$ac_objext \
8980: conftest$ac_exeext conftest.$ac_ext
1.25 moko 8981: if test -z "$lt_cv_aix_libpath_"; then
8982: lt_cv_aix_libpath_="/usr/lib:/lib"
8983: fi
1.11 paf 8984:
8985: fi
8986:
1.25 moko 8987: aix_libpath=$lt_cv_aix_libpath_
8988: fi
1.11 paf 8989:
1.25 moko 8990: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991: 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"
8992: else
8993: if test "$host_cpu" = ia64; then
8994: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8995: allow_undefined_flag="-z nodefs"
8996: 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"
8997: else
8998: # Determine the default libpath from the value encoded in an
8999: # empty executable.
9000: if test "${lt_cv_aix_libpath+set}" = set; then
9001: aix_libpath=$lt_cv_aix_libpath
9002: else
9003: if test "${lt_cv_aix_libpath_+set}" = set; then
1.11 paf 9004: echo $ECHO_N "(cached) $ECHO_C" >&6
9005: else
9006: cat >conftest.$ac_ext <<_ACEOF
9007: /* confdefs.h. */
9008: _ACEOF
9009: cat confdefs.h >>conftest.$ac_ext
9010: cat >>conftest.$ac_ext <<_ACEOF
9011: /* end confdefs.h. */
1.25 moko 9012:
1.11 paf 9013: int
9014: main ()
9015: {
1.25 moko 9016:
1.11 paf 9017: ;
9018: return 0;
9019: }
9020: _ACEOF
1.25 moko 9021: rm -f conftest.$ac_objext conftest$ac_exeext
9022: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9023: (eval $ac_link) 2>conftest.er1
1.11 paf 9024: ac_status=$?
1.18 paf 9025: grep -v '^ *+' conftest.er1 >conftest.err
9026: rm -f conftest.er1
9027: cat conftest.err >&5
1.11 paf 9028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029: (exit $ac_status); } &&
1.18 paf 9030: { ac_try='test -z "$ac_c_werror_flag"
9031: || test ! -s conftest.err'
9032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033: (eval $ac_try) 2>&5
9034: ac_status=$?
9035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036: (exit $ac_status); }; } &&
1.25 moko 9037: { ac_try='test -s conftest$ac_exeext'
1.11 paf 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); }; }; then
1.25 moko 9043:
9044: lt_aix_libpath_sed='
9045: /Import File Strings/,/^$/ {
9046: /^0/ {
9047: s/^0 *\([^ ]*\) *$/\1/
9048: p
9049: }
9050: }'
9051: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052: # Check for a 64-bit object if we didn't find anything.
9053: if test -z "$lt_cv_aix_libpath_"; then
9054: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9055: fi
1.1 parser 9056: else
1.11 paf 9057: echo "$as_me: failed program was:" >&5
9058: sed 's/^/| /' conftest.$ac_ext >&5
9059:
9060: fi
1.25 moko 9061: rm -f conftest.err conftest.$ac_objext \
9062: conftest$ac_exeext conftest.$ac_ext
9063: if test -z "$lt_cv_aix_libpath_"; then
9064: lt_cv_aix_libpath_="/usr/lib:/lib"
9065: fi
9066:
9067: fi
9068:
9069: aix_libpath=$lt_cv_aix_libpath_
1.1 parser 9070: fi
9071:
1.25 moko 9072: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9073: # Warning - without using the other run time loading flags,
9074: # -berok will link without error, but may produce a broken library.
9075: no_undefined_flag=' ${wl}-bernotok'
9076: allow_undefined_flag=' ${wl}-berok'
9077: if test "$with_gnu_ld" = yes; then
9078: # We only use this code for GNU lds that support --whole-archive.
9079: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9080: else
9081: # Exported symbols can be pulled into shared objects from archives
9082: whole_archive_flag_spec='$convenience'
9083: fi
9084: archive_cmds_need_lc=yes
9085: # This is similar to how AIX traditionally builds its shared libraries.
9086: 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'
9087: fi
9088: fi
9089: ;;
1.1 parser 9090:
1.25 moko 9091: amigaos*)
9092: case $host_cpu in
9093: powerpc)
9094: # see comment about AmigaOS4 .so support
9095: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096: archive_expsym_cmds=''
9097: ;;
9098: m68k)
9099: 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)'
9100: hardcode_libdir_flag_spec='-L$libdir'
9101: hardcode_minus_L=yes
9102: ;;
9103: esac
9104: ;;
1.1 parser 9105:
1.25 moko 9106: bsdi[45]*)
9107: export_dynamic_flag_spec=-rdynamic
9108: ;;
1.1 parser 9109:
1.25 moko 9110: cygwin* | mingw* | pw32* | cegcc*)
9111: # When not using gcc, we currently assume that we are using
9112: # Microsoft Visual C++.
9113: # hardcode_libdir_flag_spec is actually meaningless, as there is
9114: # no search path for DLLs.
9115: case $cc_basename in
9116: cl*)
9117: # Native MSVC
9118: hardcode_libdir_flag_spec=' '
9119: allow_undefined_flag=unsupported
9120: always_export_symbols=yes
9121: file_list_spec='@'
9122: # Tell ltmain to make .lib files, not .a files.
9123: libext=lib
9124: # Tell ltmain to make .dll files, not .so files.
9125: shrext_cmds=".dll"
9126: # FIXME: Setting linknames here is a bad hack.
9127: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9128: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9130: else
9131: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9132: fi~
9133: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9134: linknames='
9135: # The linker will not automatically build a static lib if we build a DLL.
9136: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9137: enable_shared_with_static_runtimes=yes
9138: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9139: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140: # Don't use ranlib
9141: old_postinstall_cmds='chmod 644 $oldlib'
9142: postlink_cmds='lt_outputfile="@OUTPUT@"~
9143: lt_tool_outputfile="@TOOL_OUTPUT@"~
9144: case $lt_outputfile in
9145: *.exe|*.EXE) ;;
9146: *)
9147: lt_outputfile="$lt_outputfile.exe"
9148: lt_tool_outputfile="$lt_tool_outputfile.exe"
9149: ;;
9150: esac~
9151: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9152: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9153: $RM "$lt_outputfile.manifest";
9154: fi'
9155: ;;
9156: *)
9157: # Assume MSVC wrapper
9158: hardcode_libdir_flag_spec=' '
9159: allow_undefined_flag=unsupported
9160: # Tell ltmain to make .lib files, not .a files.
9161: libext=lib
9162: # Tell ltmain to make .dll files, not .so files.
9163: shrext_cmds=".dll"
9164: # FIXME: Setting linknames here is a bad hack.
9165: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9166: # The linker will automatically build a .lib file if we build a DLL.
9167: old_archive_from_new_cmds='true'
9168: # FIXME: Should let the user specify the lib program.
9169: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9170: enable_shared_with_static_runtimes=yes
9171: ;;
9172: esac
9173: ;;
1.1 parser 9174:
1.25 moko 9175: darwin* | rhapsody*)
1.1 parser 9176:
1.11 paf 9177:
1.25 moko 9178: archive_cmds_need_lc=no
9179: hardcode_direct=no
9180: hardcode_automatic=yes
9181: hardcode_shlibpath_var=unsupported
9182: if test "$lt_cv_ld_force_load" = "yes"; then
9183: 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\"`'
1.11 paf 9184:
1.1 parser 9185: else
1.25 moko 9186: whole_archive_flag_spec=''
1.1 parser 9187: fi
1.25 moko 9188: link_all_deplibs=yes
9189: allow_undefined_flag="$_lt_dar_allow_undefined"
9190: case $cc_basename in
9191: ifort*) _lt_dar_can_shared=yes ;;
9192: *) _lt_dar_can_shared=$GCC ;;
9193: esac
9194: if test "$_lt_dar_can_shared" = "yes"; then
9195: output_verbose_link_cmd=func_echo_all
9196: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9197: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9198: 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}"
9199: 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}"
1.1 parser 9200:
1.25 moko 9201: else
9202: ld_shlibs=no
9203: fi
1.1 parser 9204:
1.25 moko 9205: ;;
1.1 parser 9206:
1.25 moko 9207: dgux*)
9208: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209: hardcode_libdir_flag_spec='-L$libdir'
9210: hardcode_shlibpath_var=no
9211: ;;
1.11 paf 9212:
1.25 moko 9213: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9214: # support. Future versions do this automatically, but an explicit c++rt0.o
9215: # does not break anything, and helps significantly (at the cost of a little
9216: # extra space).
9217: freebsd2.2*)
9218: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9219: hardcode_libdir_flag_spec='-R$libdir'
9220: hardcode_direct=yes
9221: hardcode_shlibpath_var=no
9222: ;;
1.11 paf 9223:
1.25 moko 9224: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9225: freebsd2.*)
9226: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227: hardcode_direct=yes
9228: hardcode_minus_L=yes
9229: hardcode_shlibpath_var=no
9230: ;;
1.11 paf 9231:
1.25 moko 9232: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9233: freebsd* | dragonfly*)
9234: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9235: hardcode_libdir_flag_spec='-R$libdir'
9236: hardcode_direct=yes
9237: hardcode_shlibpath_var=no
9238: ;;
1.1 parser 9239:
1.25 moko 9240: hpux9*)
9241: if test "$GCC" = yes; then
9242: 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'
9243: else
9244: 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'
9245: fi
9246: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247: hardcode_libdir_separator=:
9248: hardcode_direct=yes
9249:
9250: # hardcode_minus_L: Not really in the search PATH,
9251: # but as the default location of the library.
9252: hardcode_minus_L=yes
9253: export_dynamic_flag_spec='${wl}-E'
9254: ;;
1.1 parser 9255:
1.25 moko 9256: hpux10*)
9257: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9258: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9259: else
9260: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9261: fi
9262: if test "$with_gnu_ld" = no; then
9263: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264: hardcode_libdir_separator=:
9265: hardcode_direct=yes
9266: hardcode_direct_absolute=yes
9267: export_dynamic_flag_spec='${wl}-E'
9268: # hardcode_minus_L: Not really in the search PATH,
9269: # but as the default location of the library.
9270: hardcode_minus_L=yes
9271: fi
9272: ;;
1.11 paf 9273:
1.25 moko 9274: hpux11*)
9275: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9276: case $host_cpu in
9277: hppa*64*)
9278: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9279: ;;
9280: ia64*)
9281: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9282: ;;
9283: *)
9284: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9285: ;;
9286: esac
9287: else
9288: case $host_cpu in
9289: hppa*64*)
9290: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9291: ;;
9292: ia64*)
9293: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9294: ;;
9295: *)
1.11 paf 9296:
1.25 moko 9297: # Older versions of the 11.00 compiler do not understand -b yet
9298: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9299: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9300: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9301: if test "${lt_cv_prog_compiler__b+set}" = set; then
9302: echo $ECHO_N "(cached) $ECHO_C" >&6
9303: else
9304: lt_cv_prog_compiler__b=no
9305: save_LDFLAGS="$LDFLAGS"
9306: LDFLAGS="$LDFLAGS -b"
9307: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9308: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9309: # The linker can only warn and ignore the option if not recognized
9310: # So say no if there are warnings
9311: if test -s conftest.err; then
9312: # Append any errors to the config.log.
9313: cat conftest.err 1>&5
9314: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9315: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9316: if diff conftest.exp conftest.er2 >/dev/null; then
9317: lt_cv_prog_compiler__b=yes
9318: fi
9319: else
9320: lt_cv_prog_compiler__b=yes
9321: fi
9322: fi
9323: $RM -r conftest*
9324: LDFLAGS="$save_LDFLAGS"
1.11 paf 9325:
9326: fi
1.25 moko 9327: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9328: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.11 paf 9329:
1.25 moko 9330: if test x"$lt_cv_prog_compiler__b" = xyes; then
9331: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.11 paf 9332: else
1.25 moko 9333: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.11 paf 9334: fi
9335:
1.25 moko 9336: ;;
9337: esac
9338: fi
9339: if test "$with_gnu_ld" = no; then
9340: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9341: hardcode_libdir_separator=:
9342:
9343: case $host_cpu in
9344: hppa*64*|ia64*)
9345: hardcode_direct=no
9346: hardcode_shlibpath_var=no
9347: ;;
9348: *)
9349: hardcode_direct=yes
9350: hardcode_direct_absolute=yes
9351: export_dynamic_flag_spec='${wl}-E'
1.11 paf 9352:
1.25 moko 9353: # hardcode_minus_L: Not really in the search PATH,
9354: # but as the default location of the library.
9355: hardcode_minus_L=yes
9356: ;;
9357: esac
9358: fi
9359: ;;
1.11 paf 9360:
1.25 moko 9361: irix5* | irix6* | nonstopux*)
9362: if test "$GCC" = yes; then
9363: 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'
9364: # Try to use the -exported_symbol ld option, if it does not
9365: # work, assume that -exports_file does not work either and
9366: # implicitly export all symbols.
9367: # This should be the same for all languages, so no per-tag cache variable.
9368: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9369: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9370: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9371: echo $ECHO_N "(cached) $ECHO_C" >&6
9372: else
9373: save_LDFLAGS="$LDFLAGS"
9374: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9375: cat >conftest.$ac_ext <<_ACEOF
9376: /* confdefs.h. */
9377: _ACEOF
9378: cat confdefs.h >>conftest.$ac_ext
9379: cat >>conftest.$ac_ext <<_ACEOF
9380: /* end confdefs.h. */
9381: int foo (void) { return 0; }
9382: _ACEOF
9383: rm -f conftest.$ac_objext conftest$ac_exeext
9384: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385: (eval $ac_link) 2>conftest.er1
9386: ac_status=$?
9387: grep -v '^ *+' conftest.er1 >conftest.err
9388: rm -f conftest.er1
9389: cat conftest.err >&5
9390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391: (exit $ac_status); } &&
9392: { ac_try='test -z "$ac_c_werror_flag"
9393: || test ! -s conftest.err'
9394: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395: (eval $ac_try) 2>&5
9396: ac_status=$?
9397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398: (exit $ac_status); }; } &&
9399: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9405: lt_cv_irix_exported_symbol=yes
9406: else
9407: echo "$as_me: failed program was:" >&5
9408: sed 's/^/| /' conftest.$ac_ext >&5
1.11 paf 9409:
1.25 moko 9410: lt_cv_irix_exported_symbol=no
1.11 paf 9411: fi
1.25 moko 9412: rm -f conftest.err conftest.$ac_objext \
9413: conftest$ac_exeext conftest.$ac_ext
9414: LDFLAGS="$save_LDFLAGS"
1.11 paf 9415: fi
1.25 moko 9416: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9417: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9418: if test "$lt_cv_irix_exported_symbol" = yes; then
9419: 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'
9420: fi
9421: else
9422: 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'
9423: 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'
9424: fi
9425: archive_cmds_need_lc='no'
9426: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427: hardcode_libdir_separator=:
9428: inherit_rpath=yes
9429: link_all_deplibs=yes
9430: ;;
1.11 paf 9431:
1.25 moko 9432: netbsd*)
9433: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9434: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9435: else
9436: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9437: fi
9438: hardcode_libdir_flag_spec='-R$libdir'
9439: hardcode_direct=yes
9440: hardcode_shlibpath_var=no
9441: ;;
1.11 paf 9442:
1.25 moko 9443: newsos6)
9444: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445: hardcode_direct=yes
9446: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9447: hardcode_libdir_separator=:
9448: hardcode_shlibpath_var=no
9449: ;;
1.11 paf 9450:
1.25 moko 9451: *nto* | *qnx*)
9452: ;;
1.11 paf 9453:
1.25 moko 9454: openbsd*)
9455: if test -f /usr/libexec/ld.so; then
9456: hardcode_direct=yes
9457: hardcode_shlibpath_var=no
9458: hardcode_direct_absolute=yes
9459: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9460: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9461: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9462: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9463: export_dynamic_flag_spec='${wl}-E'
9464: else
9465: case $host_os in
9466: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9467: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468: hardcode_libdir_flag_spec='-R$libdir'
9469: ;;
9470: *)
9471: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9472: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9473: ;;
9474: esac
9475: fi
9476: else
9477: ld_shlibs=no
9478: fi
9479: ;;
9480:
9481: os2*)
9482: hardcode_libdir_flag_spec='-L$libdir'
9483: hardcode_minus_L=yes
9484: allow_undefined_flag=unsupported
9485: 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'
9486: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9487: ;;
9488:
9489: osf3*)
9490: if test "$GCC" = yes; then
9491: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9492: 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'
9493: else
9494: allow_undefined_flag=' -expect_unresolved \*'
9495: 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'
9496: fi
9497: archive_cmds_need_lc='no'
9498: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499: hardcode_libdir_separator=:
9500: ;;
9501:
9502: osf4* | osf5*) # as osf3* with the addition of -msym flag
9503: if test "$GCC" = yes; then
9504: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9505: 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'
9506: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507: else
9508: allow_undefined_flag=' -expect_unresolved \*'
9509: 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'
9510: 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~
9511: $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'
9512:
9513: # Both c and cxx compiler support -rpath directly
9514: hardcode_libdir_flag_spec='-rpath $libdir'
9515: fi
9516: archive_cmds_need_lc='no'
9517: hardcode_libdir_separator=:
9518: ;;
9519:
9520: solaris*)
9521: no_undefined_flag=' -z defs'
9522: if test "$GCC" = yes; then
9523: wlarc='${wl}'
9524: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9525: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9526: $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'
9527: else
9528: case `$CC -V 2>&1` in
9529: *"Compilers 5.0"*)
9530: wlarc=''
9531: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9533: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9534: ;;
9535: *)
9536: wlarc='${wl}'
9537: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9538: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9539: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9540: ;;
9541: esac
9542: fi
9543: hardcode_libdir_flag_spec='-R$libdir'
9544: hardcode_shlibpath_var=no
9545: case $host_os in
9546: solaris2.[0-5] | solaris2.[0-5].*) ;;
9547: *)
9548: # The compiler driver will combine and reorder linker options,
9549: # but understands `-z linker_flag'. GCC discards it without `$wl',
9550: # but is careful enough not to reorder.
9551: # Supported since Solaris 2.6 (maybe 2.5.1?)
9552: if test "$GCC" = yes; then
9553: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9554: else
9555: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9556: fi
9557: ;;
9558: esac
9559: link_all_deplibs=yes
9560: ;;
9561:
9562: sunos4*)
9563: if test "x$host_vendor" = xsequent; then
9564: # Use $CC to link under sequent, because it throws in some extra .o
9565: # files that make .init and .fini sections work.
9566: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9567: else
9568: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9569: fi
9570: hardcode_libdir_flag_spec='-L$libdir'
9571: hardcode_direct=yes
9572: hardcode_minus_L=yes
9573: hardcode_shlibpath_var=no
9574: ;;
9575:
9576: sysv4)
9577: case $host_vendor in
9578: sni)
9579: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580: hardcode_direct=yes # is this really true???
9581: ;;
9582: siemens)
9583: ## LD is ld it makes a PLAMLIB
9584: ## CC just makes a GrossModule.
9585: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9586: reload_cmds='$CC -r -o $output$reload_objs'
9587: hardcode_direct=no
9588: ;;
9589: motorola)
9590: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9591: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9592: ;;
9593: esac
9594: runpath_var='LD_RUN_PATH'
9595: hardcode_shlibpath_var=no
9596: ;;
9597:
9598: sysv4.3*)
9599: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600: hardcode_shlibpath_var=no
9601: export_dynamic_flag_spec='-Bexport'
9602: ;;
9603:
9604: sysv4*MP*)
9605: if test -d /usr/nec; then
9606: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607: hardcode_shlibpath_var=no
9608: runpath_var=LD_RUN_PATH
9609: hardcode_runpath_var=yes
9610: ld_shlibs=yes
9611: fi
9612: ;;
9613:
9614: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9615: no_undefined_flag='${wl}-z,text'
9616: archive_cmds_need_lc=no
9617: hardcode_shlibpath_var=no
9618: runpath_var='LD_RUN_PATH'
9619:
9620: if test "$GCC" = yes; then
9621: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9622: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623: else
9624: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9625: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626: fi
9627: ;;
9628:
9629: sysv5* | sco3.2v5* | sco5v6*)
9630: # Note: We can NOT use -z defs as we might desire, because we do not
9631: # link with -lc, and that would cause any symbols used from libc to
9632: # always be unresolved, which means just about no library would
9633: # ever link correctly. If we're not using GNU ld we use -z text
9634: # though, which does catch some bad symbols but isn't as heavy-handed
9635: # as -z defs.
9636: no_undefined_flag='${wl}-z,text'
9637: allow_undefined_flag='${wl}-z,nodefs'
9638: archive_cmds_need_lc=no
9639: hardcode_shlibpath_var=no
9640: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9641: hardcode_libdir_separator=':'
9642: link_all_deplibs=yes
9643: export_dynamic_flag_spec='${wl}-Bexport'
9644: runpath_var='LD_RUN_PATH'
9645:
9646: if test "$GCC" = yes; then
9647: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649: else
9650: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9651: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652: fi
9653: ;;
9654:
9655: uts4*)
9656: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657: hardcode_libdir_flag_spec='-L$libdir'
9658: hardcode_shlibpath_var=no
9659: ;;
9660:
9661: *)
9662: ld_shlibs=no
9663: ;;
9664: esac
9665:
9666: if test x$host_vendor = xsni; then
9667: case $host in
9668: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9669: export_dynamic_flag_spec='${wl}-Blargedynsym'
9670: ;;
9671: esac
9672: fi
9673: fi
9674:
9675: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9676: echo "${ECHO_T}$ld_shlibs" >&6
9677: test "$ld_shlibs" = no && can_build_shared=no
9678:
9679: with_gnu_ld=$with_gnu_ld
9680:
9681:
9682:
9683:
9684:
9685:
9686:
9687:
9688:
9689:
9690:
9691:
9692:
9693:
9694:
9695: #
9696: # Do we need to explicitly link libc?
9697: #
9698: case "x$archive_cmds_need_lc" in
9699: x|xyes)
9700: # Assume -lc should be added
9701: archive_cmds_need_lc=yes
9702:
9703: if test "$enable_shared" = yes && test "$GCC" = yes; then
9704: case $archive_cmds in
9705: *'~'*)
9706: # FIXME: we may have to deal with multi-command sequences.
9707: ;;
9708: '$CC '*)
9709: # Test whether the compiler implicitly links with -lc since on some
9710: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9711: # to ld, don't add -lc before -lgcc.
9712: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9713: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9714: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9715: echo $ECHO_N "(cached) $ECHO_C" >&6
9716: else
9717: $RM conftest*
9718: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9719:
9720: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9721: (eval $ac_compile) 2>&5
9722: ac_status=$?
9723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724: (exit $ac_status); } 2>conftest.err; then
9725: soname=conftest
9726: lib=conftest
9727: libobjs=conftest.$ac_objext
9728: deplibs=
9729: wl=$lt_prog_compiler_wl
9730: pic_flag=$lt_prog_compiler_pic
9731: compiler_flags=-v
9732: linker_flags=-v
9733: verstring=
9734: output_objdir=.
9735: libname=conftest
9736: lt_save_allow_undefined_flag=$allow_undefined_flag
9737: allow_undefined_flag=
9738: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9739: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9740: ac_status=$?
9741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742: (exit $ac_status); }
9743: then
9744: lt_cv_archive_cmds_need_lc=no
9745: else
9746: lt_cv_archive_cmds_need_lc=yes
9747: fi
9748: allow_undefined_flag=$lt_save_allow_undefined_flag
9749: else
9750: cat conftest.err 1>&5
9751: fi
9752: $RM conftest*
9753:
9754: fi
9755: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9756: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9757: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9758: ;;
9759: esac
9760: fi
9761: ;;
9762: esac
1.11 paf 9763:
9764:
9765:
9766:
9767:
9768:
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:
1.1 parser 9803:
1.11 paf 9804:
9805:
9806:
9807:
9808:
1.1 parser 9809:
1.11 paf 9810:
9811:
9812:
9813:
1.1 parser 9814:
1.11 paf 9815:
9816:
9817:
9818:
1.1 parser 9819:
9820:
9821:
9822:
9823:
9824:
9825:
1.11 paf 9826:
9827:
9828:
1.18 paf 9829:
1.11 paf 9830:
9831:
1.1 parser 9832:
1.11 paf 9833:
9834:
9835:
1.1 parser 9836:
9837:
9838:
9839:
1.11 paf 9840:
9841:
1.1 parser 9842:
1.11 paf 9843:
9844:
9845:
1.25 moko 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: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9916: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9917:
9918: if test "$GCC" = yes; then
9919: case $host_os in
9920: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9921: *) lt_awk_arg="/^libraries:/" ;;
9922: esac
9923: case $host_os in
9924: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9925: *) lt_sed_strip_eq="s,=/,/,g" ;;
9926: esac
9927: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9928: case $lt_search_path_spec in
9929: *\;*)
9930: # if the path contains ";" then we assume it to be the separator
9931: # otherwise default to the standard path separator (i.e. ":") - it is
9932: # assumed that no part of a normal pathname contains ";" but that should
9933: # okay in the real world where ";" in dirpaths is itself problematic.
9934: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9935: ;;
9936: *)
9937: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9938: ;;
9939: esac
9940: # Ok, now we have the path, separated by spaces, we can step through it
9941: # and add multilib dir if necessary.
9942: lt_tmp_lt_search_path_spec=
9943: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9944: for lt_sys_path in $lt_search_path_spec; do
9945: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9946: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9947: else
9948: test -d "$lt_sys_path" && \
9949: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9950: fi
9951: done
9952: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9953: BEGIN {RS=" "; FS="/|\n";} {
9954: lt_foo="";
9955: lt_count=0;
9956: for (lt_i = NF; lt_i > 0; lt_i--) {
9957: if ($lt_i != "" && $lt_i != ".") {
9958: if ($lt_i == "..") {
9959: lt_count++;
9960: } else {
9961: if (lt_count == 0) {
9962: lt_foo="/" $lt_i lt_foo;
9963: } else {
9964: lt_count--;
9965: }
9966: }
9967: }
9968: }
9969: if (lt_foo != "") { lt_freq[lt_foo]++; }
9970: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9971: }'`
9972: # AWK program above erroneously prepends '/' to C:/dos/paths
9973: # for these hosts.
9974: case $host_os in
9975: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9976: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9977: esac
9978: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9979: else
9980: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9981: fi
9982: library_names_spec=
9983: libname_spec='lib$name'
9984: soname_spec=
9985: shrext_cmds=".so"
9986: postinstall_cmds=
9987: postuninstall_cmds=
9988: finish_cmds=
9989: finish_eval=
9990: shlibpath_var=
9991: shlibpath_overrides_runpath=unknown
9992: version_type=none
9993: dynamic_linker="$host_os ld.so"
9994: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9995: need_lib_prefix=unknown
9996: hardcode_into_libs=no
9997:
9998: # when you set need_version to no, make sure it does not cause -set_version
9999: # flags to be left without arguments
10000: need_version=unknown
10001:
10002: case $host_os in
10003: aix3*)
10004: version_type=linux # correct to gnu/linux during the next big refactor
10005: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10006: shlibpath_var=LIBPATH
10007:
10008: # AIX 3 has no versioning support, so we append a major version to the name.
10009: soname_spec='${libname}${release}${shared_ext}$major'
10010: ;;
10011:
10012: aix[4-9]*)
10013: version_type=linux # correct to gnu/linux during the next big refactor
10014: need_lib_prefix=no
10015: need_version=no
10016: hardcode_into_libs=yes
10017: if test "$host_cpu" = ia64; then
10018: # AIX 5 supports IA64
10019: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10020: shlibpath_var=LD_LIBRARY_PATH
10021: else
10022: # With GCC up to 2.95.x, collect2 would create an import file
10023: # for dependence libraries. The import file would start with
10024: # the line `#! .'. This would cause the generated library to
10025: # depend on `.', always an invalid library. This was fixed in
10026: # development snapshots of GCC prior to 3.0.
10027: case $host_os in
10028: aix4 | aix4.[01] | aix4.[01].*)
10029: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10030: echo ' yes '
10031: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10032: :
10033: else
10034: can_build_shared=no
10035: fi
10036: ;;
10037: esac
10038: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10039: # soname into executable. Probably we can add versioning support to
10040: # collect2, so additional links can be useful in future.
10041: if test "$aix_use_runtimelinking" = yes; then
10042: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10043: # instead of lib<name>.a to let people know that these are not
10044: # typical AIX shared libraries.
10045: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046: else
10047: # We preserve .a as extension for shared libraries through AIX4.2
10048: # and later when we are not doing run time linking.
10049: library_names_spec='${libname}${release}.a $libname.a'
10050: soname_spec='${libname}${release}${shared_ext}$major'
10051: fi
10052: shlibpath_var=LIBPATH
10053: fi
10054: ;;
10055:
10056: amigaos*)
10057: case $host_cpu in
10058: powerpc)
10059: # Since July 2007 AmigaOS4 officially supports .so libraries.
10060: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10061: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062: ;;
10063: m68k)
10064: library_names_spec='$libname.ixlibrary $libname.a'
10065: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10066: 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'
10067: ;;
10068: esac
10069: ;;
10070:
10071: beos*)
10072: library_names_spec='${libname}${shared_ext}'
10073: dynamic_linker="$host_os ld.so"
10074: shlibpath_var=LIBRARY_PATH
10075: ;;
10076:
10077: bsdi[45]*)
10078: version_type=linux # correct to gnu/linux during the next big refactor
10079: need_version=no
10080: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081: soname_spec='${libname}${release}${shared_ext}$major'
10082: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10083: shlibpath_var=LD_LIBRARY_PATH
10084: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10085: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10086: # the default ld.so.conf also contains /usr/contrib/lib and
10087: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10088: # libtool to hard-code these into programs
10089: ;;
10090:
10091: cygwin* | mingw* | pw32* | cegcc*)
10092: version_type=windows
10093: shrext_cmds=".dll"
10094: need_version=no
10095: need_lib_prefix=no
10096:
10097: case $GCC,$cc_basename in
10098: yes,*)
10099: # gcc
10100: library_names_spec='$libname.dll.a'
10101: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10102: postinstall_cmds='base_file=`basename \${file}`~
10103: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10104: dldir=$destdir/`dirname \$dlpath`~
10105: test -d \$dldir || mkdir -p \$dldir~
10106: $install_prog $dir/$dlname \$dldir/$dlname~
10107: chmod a+x \$dldir/$dlname~
10108: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10109: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10110: fi'
10111: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10112: dlpath=$dir/\$dldll~
10113: $RM \$dlpath'
10114: shlibpath_overrides_runpath=yes
10115:
10116: case $host_os in
10117: cygwin*)
10118: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10119: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10120:
10121: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10122: ;;
10123: mingw* | cegcc*)
10124: # MinGW DLLs use traditional 'lib' prefix
10125: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10126: ;;
10127: pw32*)
10128: # pw32 DLLs use 'pw' prefix rather than 'lib'
10129: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10130: ;;
10131: esac
10132: dynamic_linker='Win32 ld.exe'
10133: ;;
10134:
10135: *,cl*)
10136: # Native MSVC
10137: libname_spec='$name'
10138: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10139: library_names_spec='${libname}.dll.lib'
10140:
10141: case $build_os in
10142: mingw*)
10143: sys_lib_search_path_spec=
10144: lt_save_ifs=$IFS
10145: IFS=';'
10146: for lt_path in $LIB
10147: do
10148: IFS=$lt_save_ifs
10149: # Let DOS variable expansion print the short 8.3 style file name.
10150: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10151: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10152: done
10153: IFS=$lt_save_ifs
10154: # Convert to MSYS style.
10155: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10156: ;;
10157: cygwin*)
10158: # Convert to unix form, then to dos form, then back to unix form
10159: # but this time dos style (no spaces!) so that the unix form looks
10160: # like /cygdrive/c/PROGRA~1:/cygdr...
10161: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10162: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10163: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10164: ;;
10165: *)
10166: sys_lib_search_path_spec="$LIB"
10167: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10168: # It is most probably a Windows format PATH.
10169: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10170: else
10171: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10172: fi
10173: # FIXME: find the short name or the path components, as spaces are
10174: # common. (e.g. "Program Files" -> "PROGRA~1")
10175: ;;
10176: esac
10177:
10178: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10179: postinstall_cmds='base_file=`basename \${file}`~
10180: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10181: dldir=$destdir/`dirname \$dlpath`~
10182: test -d \$dldir || mkdir -p \$dldir~
10183: $install_prog $dir/$dlname \$dldir/$dlname'
10184: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10185: dlpath=$dir/\$dldll~
10186: $RM \$dlpath'
10187: shlibpath_overrides_runpath=yes
10188: dynamic_linker='Win32 link.exe'
10189: ;;
10190:
10191: *)
10192: # Assume MSVC wrapper
10193: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10194: dynamic_linker='Win32 ld.exe'
10195: ;;
10196: esac
10197: # FIXME: first we should search . and the directory the executable is in
10198: shlibpath_var=PATH
10199: ;;
10200:
10201: darwin* | rhapsody*)
10202: dynamic_linker="$host_os dyld"
10203: version_type=darwin
10204: need_lib_prefix=no
10205: need_version=no
10206: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10207: soname_spec='${libname}${release}${major}$shared_ext'
10208: shlibpath_overrides_runpath=yes
10209: shlibpath_var=DYLD_LIBRARY_PATH
10210: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10211:
10212: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10213: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10214: ;;
10215:
10216: dgux*)
10217: version_type=linux # correct to gnu/linux during the next big refactor
10218: need_lib_prefix=no
10219: need_version=no
10220: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10221: soname_spec='${libname}${release}${shared_ext}$major'
10222: shlibpath_var=LD_LIBRARY_PATH
10223: ;;
10224:
10225: freebsd* | dragonfly*)
10226: # DragonFly does not have aout. When/if they implement a new
10227: # versioning mechanism, adjust this.
10228: if test -x /usr/bin/objformat; then
10229: objformat=`/usr/bin/objformat`
1.11 paf 10230: else
1.25 moko 10231: case $host_os in
10232: freebsd[23].*) objformat=aout ;;
10233: *) objformat=elf ;;
10234: esac
1.11 paf 10235: fi
1.25 moko 10236: version_type=freebsd-$objformat
10237: case $version_type in
10238: freebsd-elf*)
10239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10240: need_version=no
10241: need_lib_prefix=no
10242: ;;
10243: freebsd-*)
10244: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10245: need_version=yes
10246: ;;
10247: esac
10248: shlibpath_var=LD_LIBRARY_PATH
10249: case $host_os in
10250: freebsd2.*)
10251: shlibpath_overrides_runpath=yes
10252: ;;
10253: freebsd3.[01]* | freebsdelf3.[01]*)
10254: shlibpath_overrides_runpath=yes
10255: hardcode_into_libs=yes
10256: ;;
10257: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10258: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10259: shlibpath_overrides_runpath=no
10260: hardcode_into_libs=yes
10261: ;;
10262: *) # from 4.6 on, and DragonFly
10263: shlibpath_overrides_runpath=yes
10264: hardcode_into_libs=yes
10265: ;;
10266: esac
10267: ;;
10268:
10269: gnu*)
10270: version_type=linux # correct to gnu/linux during the next big refactor
10271: need_lib_prefix=no
10272: need_version=no
10273: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10274: soname_spec='${libname}${release}${shared_ext}$major'
10275: shlibpath_var=LD_LIBRARY_PATH
10276: shlibpath_overrides_runpath=no
10277: hardcode_into_libs=yes
10278: ;;
10279:
10280: haiku*)
10281: version_type=linux # correct to gnu/linux during the next big refactor
10282: need_lib_prefix=no
10283: need_version=no
10284: dynamic_linker="$host_os runtime_loader"
10285: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10286: soname_spec='${libname}${release}${shared_ext}$major'
10287: shlibpath_var=LIBRARY_PATH
10288: shlibpath_overrides_runpath=yes
10289: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10290: hardcode_into_libs=yes
10291: ;;
10292:
10293: hpux9* | hpux10* | hpux11*)
10294: # Give a soname corresponding to the major version so that dld.sl refuses to
10295: # link against other versions.
10296: version_type=sunos
10297: need_lib_prefix=no
10298: need_version=no
10299: case $host_cpu in
10300: ia64*)
10301: shrext_cmds='.so'
10302: hardcode_into_libs=yes
10303: dynamic_linker="$host_os dld.so"
10304: shlibpath_var=LD_LIBRARY_PATH
10305: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307: soname_spec='${libname}${release}${shared_ext}$major'
10308: if test "X$HPUX_IA64_MODE" = X32; then
10309: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.11 paf 10310: else
1.25 moko 10311: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10312: fi
10313: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10314: ;;
10315: hppa*64*)
10316: shrext_cmds='.sl'
10317: hardcode_into_libs=yes
10318: dynamic_linker="$host_os dld.sl"
10319: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10320: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322: soname_spec='${libname}${release}${shared_ext}$major'
10323: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10324: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10325: ;;
10326: *)
10327: shrext_cmds='.sl'
10328: dynamic_linker="$host_os dld.sl"
10329: shlibpath_var=SHLIB_PATH
10330: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10331: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332: soname_spec='${libname}${release}${shared_ext}$major'
10333: ;;
10334: esac
10335: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10336: postinstall_cmds='chmod 555 $lib'
10337: # or fails outright, so override atomically:
10338: install_override_mode=555
10339: ;;
10340:
10341: interix[3-9]*)
10342: version_type=linux # correct to gnu/linux during the next big refactor
10343: need_lib_prefix=no
10344: need_version=no
10345: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10346: soname_spec='${libname}${release}${shared_ext}$major'
10347: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10348: shlibpath_var=LD_LIBRARY_PATH
10349: shlibpath_overrides_runpath=no
10350: hardcode_into_libs=yes
10351: ;;
10352:
10353: irix5* | irix6* | nonstopux*)
10354: case $host_os in
10355: nonstopux*) version_type=nonstopux ;;
10356: *)
10357: if test "$lt_cv_prog_gnu_ld" = yes; then
10358: version_type=linux # correct to gnu/linux during the next big refactor
10359: else
10360: version_type=irix
10361: fi ;;
10362: esac
10363: need_lib_prefix=no
10364: need_version=no
10365: soname_spec='${libname}${release}${shared_ext}$major'
10366: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10367: case $host_os in
10368: irix5* | nonstopux*)
10369: libsuff= shlibsuff=
10370: ;;
10371: *)
10372: case $LD in # libtool.m4 will add one of these switches to LD
10373: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10374: libsuff= shlibsuff= libmagic=32-bit;;
10375: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10376: libsuff=32 shlibsuff=N32 libmagic=N32;;
10377: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10378: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10379: *) libsuff= shlibsuff= libmagic=never-match;;
10380: esac
10381: ;;
10382: esac
10383: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10384: shlibpath_overrides_runpath=no
10385: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10386: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10387: hardcode_into_libs=yes
10388: ;;
10389:
10390: # No shared lib support for Linux oldld, aout, or coff.
10391: linux*oldld* | linux*aout* | linux*coff*)
10392: dynamic_linker=no
10393: ;;
10394:
10395: # This must be glibc/ELF.
10396: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10397: version_type=linux # correct to gnu/linux during the next big refactor
10398: need_lib_prefix=no
10399: need_version=no
10400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401: soname_spec='${libname}${release}${shared_ext}$major'
10402: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10403: shlibpath_var=LD_LIBRARY_PATH
10404: shlibpath_overrides_runpath=no
10405:
10406: # Some binutils ld are patched to set DT_RUNPATH
10407: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10408: echo $ECHO_N "(cached) $ECHO_C" >&6
10409: else
10410: lt_cv_shlibpath_overrides_runpath=no
10411: save_LDFLAGS=$LDFLAGS
10412: save_libdir=$libdir
10413: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415: cat >conftest.$ac_ext <<_ACEOF
10416: /* confdefs.h. */
10417: _ACEOF
10418: cat confdefs.h >>conftest.$ac_ext
10419: cat >>conftest.$ac_ext <<_ACEOF
10420: /* end confdefs.h. */
10421:
10422: int
10423: main ()
10424: {
10425:
10426: ;
10427: return 0;
10428: }
10429: _ACEOF
10430: rm -f conftest.$ac_objext conftest$ac_exeext
10431: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432: (eval $ac_link) 2>conftest.er1
10433: ac_status=$?
10434: grep -v '^ *+' conftest.er1 >conftest.err
10435: rm -f conftest.er1
10436: cat conftest.err >&5
10437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438: (exit $ac_status); } &&
10439: { ac_try='test -z "$ac_c_werror_flag"
10440: || test ! -s conftest.err'
10441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442: (eval $ac_try) 2>&5
10443: ac_status=$?
10444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445: (exit $ac_status); }; } &&
10446: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10452: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10453: lt_cv_shlibpath_overrides_runpath=yes
10454: fi
10455:
10456: else
10457: echo "$as_me: failed program was:" >&5
10458: sed 's/^/| /' conftest.$ac_ext >&5
10459:
10460: fi
10461: rm -f conftest.err conftest.$ac_objext \
10462: conftest$ac_exeext conftest.$ac_ext
10463: LDFLAGS=$save_LDFLAGS
10464: libdir=$save_libdir
10465:
10466: fi
10467:
10468: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10469:
10470: # This implies no fast_install, which is unacceptable.
10471: # Some rework will be needed to allow for fast_install
10472: # before this can be enabled.
10473: hardcode_into_libs=yes
10474:
10475: # Append ld.so.conf contents to the search path
10476: if test -f /etc/ld.so.conf; then
10477: 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' ' '`
10478: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10479: fi
10480:
10481: # We used to test for /lib/ld.so.1 and disable shared libraries on
10482: # powerpc, because MkLinux only supported shared libraries with the
10483: # GNU dynamic linker. Since this was broken with cross compilers,
10484: # most powerpc-linux boxes support dynamic linking these days and
10485: # people can always --disable-shared, the test was removed, and we
10486: # assume the GNU/Linux dynamic linker is in use.
10487: dynamic_linker='GNU/Linux ld.so'
10488: ;;
10489:
10490: netbsd*)
10491: version_type=sunos
10492: need_lib_prefix=no
10493: need_version=no
10494: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10495: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497: dynamic_linker='NetBSD (a.out) ld.so'
10498: else
10499: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500: soname_spec='${libname}${release}${shared_ext}$major'
10501: dynamic_linker='NetBSD ld.elf_so'
10502: fi
10503: shlibpath_var=LD_LIBRARY_PATH
10504: shlibpath_overrides_runpath=yes
10505: hardcode_into_libs=yes
10506: ;;
10507:
10508: newsos6)
10509: version_type=linux # correct to gnu/linux during the next big refactor
10510: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511: shlibpath_var=LD_LIBRARY_PATH
10512: shlibpath_overrides_runpath=yes
10513: ;;
10514:
10515: *nto* | *qnx*)
10516: version_type=qnx
10517: need_lib_prefix=no
10518: need_version=no
10519: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520: soname_spec='${libname}${release}${shared_ext}$major'
10521: shlibpath_var=LD_LIBRARY_PATH
10522: shlibpath_overrides_runpath=no
10523: hardcode_into_libs=yes
10524: dynamic_linker='ldqnx.so'
10525: ;;
10526:
10527: openbsd*)
10528: version_type=sunos
10529: sys_lib_dlsearch_path_spec="/usr/lib"
10530: need_lib_prefix=no
10531: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10532: case $host_os in
10533: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10534: *) need_version=no ;;
10535: esac
10536: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10537: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10538: shlibpath_var=LD_LIBRARY_PATH
10539: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10540: case $host_os in
10541: openbsd2.[89] | openbsd2.[89].*)
10542: shlibpath_overrides_runpath=no
10543: ;;
10544: *)
10545: shlibpath_overrides_runpath=yes
10546: ;;
10547: esac
10548: else
10549: shlibpath_overrides_runpath=yes
10550: fi
10551: ;;
10552:
10553: os2*)
10554: libname_spec='$name'
10555: shrext_cmds=".dll"
10556: need_lib_prefix=no
10557: library_names_spec='$libname${shared_ext} $libname.a'
10558: dynamic_linker='OS/2 ld.exe'
10559: shlibpath_var=LIBPATH
10560: ;;
10561:
10562: osf3* | osf4* | osf5*)
10563: version_type=osf
10564: need_lib_prefix=no
10565: need_version=no
10566: soname_spec='${libname}${release}${shared_ext}$major'
10567: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568: shlibpath_var=LD_LIBRARY_PATH
10569: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10570: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10571: ;;
10572:
10573: rdos*)
10574: dynamic_linker=no
10575: ;;
10576:
10577: solaris*)
10578: version_type=linux # correct to gnu/linux during the next big refactor
10579: need_lib_prefix=no
10580: need_version=no
10581: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582: soname_spec='${libname}${release}${shared_ext}$major'
10583: shlibpath_var=LD_LIBRARY_PATH
10584: shlibpath_overrides_runpath=yes
10585: hardcode_into_libs=yes
10586: # ldd complains unless libraries are executable
10587: postinstall_cmds='chmod +x $lib'
10588: ;;
10589:
10590: sunos4*)
10591: version_type=sunos
10592: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10594: shlibpath_var=LD_LIBRARY_PATH
10595: shlibpath_overrides_runpath=yes
10596: if test "$with_gnu_ld" = yes; then
10597: need_lib_prefix=no
10598: fi
10599: need_version=yes
10600: ;;
10601:
10602: sysv4 | sysv4.3*)
10603: version_type=linux # correct to gnu/linux during the next big refactor
10604: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605: soname_spec='${libname}${release}${shared_ext}$major'
10606: shlibpath_var=LD_LIBRARY_PATH
10607: case $host_vendor in
10608: sni)
10609: shlibpath_overrides_runpath=no
10610: need_lib_prefix=no
10611: runpath_var=LD_RUN_PATH
10612: ;;
10613: siemens)
10614: need_lib_prefix=no
10615: ;;
10616: motorola)
10617: need_lib_prefix=no
10618: need_version=no
10619: shlibpath_overrides_runpath=no
10620: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10621: ;;
10622: esac
10623: ;;
10624:
10625: sysv4*MP*)
10626: if test -d /usr/nec ;then
10627: version_type=linux # correct to gnu/linux during the next big refactor
10628: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10629: soname_spec='$libname${shared_ext}.$major'
10630: shlibpath_var=LD_LIBRARY_PATH
10631: fi
10632: ;;
10633:
10634: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10635: version_type=freebsd-elf
10636: need_lib_prefix=no
10637: need_version=no
10638: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10639: soname_spec='${libname}${release}${shared_ext}$major'
10640: shlibpath_var=LD_LIBRARY_PATH
10641: shlibpath_overrides_runpath=yes
10642: hardcode_into_libs=yes
10643: if test "$with_gnu_ld" = yes; then
10644: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10645: else
10646: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10647: case $host_os in
10648: sco3.2v5*)
10649: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10650: ;;
10651: esac
10652: fi
10653: sys_lib_dlsearch_path_spec='/usr/lib'
10654: ;;
10655:
10656: tpf*)
10657: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10658: version_type=linux # correct to gnu/linux during the next big refactor
10659: need_lib_prefix=no
10660: need_version=no
10661: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662: shlibpath_var=LD_LIBRARY_PATH
10663: shlibpath_overrides_runpath=no
10664: hardcode_into_libs=yes
10665: ;;
10666:
10667: uts4*)
10668: version_type=linux # correct to gnu/linux during the next big refactor
10669: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670: soname_spec='${libname}${release}${shared_ext}$major'
10671: shlibpath_var=LD_LIBRARY_PATH
10672: ;;
10673:
10674: *)
10675: dynamic_linker=no
10676: ;;
10677: esac
10678: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10679: echo "${ECHO_T}$dynamic_linker" >&6
10680: test "$dynamic_linker" = no && can_build_shared=no
10681:
10682: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10683: if test "$GCC" = yes; then
10684: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10685: fi
10686:
10687: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10688: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10689: fi
10690: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10691: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10692: fi
10693:
10694:
10695:
10696:
10697:
10698:
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: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10786: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10787: hardcode_action=
10788: if test -n "$hardcode_libdir_flag_spec" ||
10789: test -n "$runpath_var" ||
10790: test "X$hardcode_automatic" = "Xyes" ; then
10791:
10792: # We can hardcode non-existent directories.
10793: if test "$hardcode_direct" != no &&
10794: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10795: # have to relink, otherwise we might link with an installed library
10796: # when we should be linking with a yet-to-be-installed one
10797: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10798: test "$hardcode_minus_L" != no; then
10799: # Linking always hardcodes the temporary library directory.
10800: hardcode_action=relink
10801: else
10802: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10803: hardcode_action=immediate
10804: fi
10805: else
10806: # We cannot hardcode anything, or else we can only hardcode existing
10807: # directories.
10808: hardcode_action=unsupported
10809: fi
10810: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10811: echo "${ECHO_T}$hardcode_action" >&6
10812:
10813: if test "$hardcode_action" = relink ||
10814: test "$inherit_rpath" = yes; then
10815: # Fast installation is not supported
10816: enable_fast_install=no
10817: elif test "$shlibpath_overrides_runpath" = yes ||
10818: test "$enable_shared" = no; then
10819: # Fast installation is not necessary
10820: enable_fast_install=needless
10821: fi
10822:
10823:
10824:
10825:
10826:
10827:
10828: if test "x$enable_dlopen" != xyes; then
10829: enable_dlopen=unknown
10830: enable_dlopen_self=unknown
10831: enable_dlopen_self_static=unknown
10832: else
10833: lt_cv_dlopen=no
10834: lt_cv_dlopen_libs=
10835:
10836: case $host_os in
10837: beos*)
10838: lt_cv_dlopen="load_add_on"
10839: lt_cv_dlopen_libs=
10840: lt_cv_dlopen_self=yes
10841: ;;
10842:
10843: mingw* | pw32* | cegcc*)
10844: lt_cv_dlopen="LoadLibrary"
10845: lt_cv_dlopen_libs=
10846: ;;
10847:
10848: cygwin*)
10849: lt_cv_dlopen="dlopen"
10850: lt_cv_dlopen_libs=
10851: ;;
10852:
10853: darwin*)
10854: # if libdl is installed we need to link against it
10855: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10856: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10857: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10858: echo $ECHO_N "(cached) $ECHO_C" >&6
10859: else
10860: ac_check_lib_save_LIBS=$LIBS
10861: LIBS="-ldl $LIBS"
10862: cat >conftest.$ac_ext <<_ACEOF
10863: /* confdefs.h. */
10864: _ACEOF
10865: cat confdefs.h >>conftest.$ac_ext
10866: cat >>conftest.$ac_ext <<_ACEOF
10867: /* end confdefs.h. */
10868:
10869: /* Override any gcc2 internal prototype to avoid an error. */
10870: #ifdef __cplusplus
10871: extern "C"
10872: #endif
10873: /* We use char because int might match the return type of a gcc2
10874: builtin and then its argument prototype would still apply. */
10875: char dlopen ();
10876: int
10877: main ()
10878: {
10879: dlopen ();
10880: ;
10881: return 0;
10882: }
10883: _ACEOF
10884: rm -f conftest.$ac_objext conftest$ac_exeext
10885: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10886: (eval $ac_link) 2>conftest.er1
10887: ac_status=$?
10888: grep -v '^ *+' conftest.er1 >conftest.err
10889: rm -f conftest.er1
10890: cat conftest.err >&5
10891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892: (exit $ac_status); } &&
10893: { ac_try='test -z "$ac_c_werror_flag"
10894: || test ! -s conftest.err'
10895: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896: (eval $ac_try) 2>&5
10897: ac_status=$?
10898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899: (exit $ac_status); }; } &&
10900: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10906: ac_cv_lib_dl_dlopen=yes
10907: else
10908: echo "$as_me: failed program was:" >&5
10909: sed 's/^/| /' conftest.$ac_ext >&5
10910:
10911: ac_cv_lib_dl_dlopen=no
10912: fi
10913: rm -f conftest.err conftest.$ac_objext \
10914: conftest$ac_exeext conftest.$ac_ext
10915: LIBS=$ac_check_lib_save_LIBS
10916: fi
10917: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10918: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10919: if test $ac_cv_lib_dl_dlopen = yes; then
10920: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10921: else
10922:
10923: lt_cv_dlopen="dyld"
10924: lt_cv_dlopen_libs=
10925: lt_cv_dlopen_self=yes
10926:
10927: fi
10928:
10929: ;;
10930:
10931: *)
10932: echo "$as_me:$LINENO: checking for shl_load" >&5
10933: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10934: if test "${ac_cv_func_shl_load+set}" = set; then
10935: echo $ECHO_N "(cached) $ECHO_C" >&6
10936: else
10937: cat >conftest.$ac_ext <<_ACEOF
10938: /* confdefs.h. */
10939: _ACEOF
10940: cat confdefs.h >>conftest.$ac_ext
10941: cat >>conftest.$ac_ext <<_ACEOF
10942: /* end confdefs.h. */
10943: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10944: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945: #define shl_load innocuous_shl_load
10946:
10947: /* System header to define __stub macros and hopefully few prototypes,
10948: which can conflict with char shl_load (); below.
10949: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950: <limits.h> exists even on freestanding compilers. */
10951:
10952: #ifdef __STDC__
10953: # include <limits.h>
10954: #else
10955: # include <assert.h>
10956: #endif
10957:
10958: #undef shl_load
10959:
10960: /* Override any gcc2 internal prototype to avoid an error. */
10961: #ifdef __cplusplus
10962: extern "C"
10963: {
10964: #endif
10965: /* We use char because int might match the return type of a gcc2
10966: builtin and then its argument prototype would still apply. */
10967: char shl_load ();
10968: /* The GNU C library defines this for functions which it implements
10969: to always fail with ENOSYS. Some functions are actually named
10970: something starting with __ and the normal name is an alias. */
10971: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10972: choke me
10973: #else
10974: char (*f) () = shl_load;
10975: #endif
10976: #ifdef __cplusplus
10977: }
10978: #endif
10979:
10980: int
10981: main ()
10982: {
10983: return f != shl_load;
10984: ;
10985: return 0;
10986: }
10987: _ACEOF
10988: rm -f conftest.$ac_objext conftest$ac_exeext
10989: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990: (eval $ac_link) 2>conftest.er1
10991: ac_status=$?
10992: grep -v '^ *+' conftest.er1 >conftest.err
10993: rm -f conftest.er1
10994: cat conftest.err >&5
10995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996: (exit $ac_status); } &&
10997: { ac_try='test -z "$ac_c_werror_flag"
10998: || test ! -s conftest.err'
10999: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000: (eval $ac_try) 2>&5
11001: ac_status=$?
11002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003: (exit $ac_status); }; } &&
11004: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11010: ac_cv_func_shl_load=yes
11011: else
11012: echo "$as_me: failed program was:" >&5
11013: sed 's/^/| /' conftest.$ac_ext >&5
11014:
11015: ac_cv_func_shl_load=no
11016: fi
11017: rm -f conftest.err conftest.$ac_objext \
11018: conftest$ac_exeext conftest.$ac_ext
11019: fi
11020: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11021: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11022: if test $ac_cv_func_shl_load = yes; then
11023: lt_cv_dlopen="shl_load"
11024: else
11025: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11026: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11027: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11028: echo $ECHO_N "(cached) $ECHO_C" >&6
11029: else
11030: ac_check_lib_save_LIBS=$LIBS
11031: LIBS="-ldld $LIBS"
11032: cat >conftest.$ac_ext <<_ACEOF
11033: /* confdefs.h. */
11034: _ACEOF
11035: cat confdefs.h >>conftest.$ac_ext
11036: cat >>conftest.$ac_ext <<_ACEOF
11037: /* end confdefs.h. */
11038:
11039: /* Override any gcc2 internal prototype to avoid an error. */
11040: #ifdef __cplusplus
11041: extern "C"
11042: #endif
11043: /* We use char because int might match the return type of a gcc2
11044: builtin and then its argument prototype would still apply. */
11045: char shl_load ();
11046: int
11047: main ()
11048: {
11049: shl_load ();
11050: ;
11051: return 0;
11052: }
11053: _ACEOF
11054: rm -f conftest.$ac_objext conftest$ac_exeext
11055: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056: (eval $ac_link) 2>conftest.er1
11057: ac_status=$?
11058: grep -v '^ *+' conftest.er1 >conftest.err
11059: rm -f conftest.er1
11060: cat conftest.err >&5
11061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062: (exit $ac_status); } &&
11063: { ac_try='test -z "$ac_c_werror_flag"
11064: || test ! -s conftest.err'
11065: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066: (eval $ac_try) 2>&5
11067: ac_status=$?
11068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069: (exit $ac_status); }; } &&
11070: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11076: ac_cv_lib_dld_shl_load=yes
11077: else
11078: echo "$as_me: failed program was:" >&5
11079: sed 's/^/| /' conftest.$ac_ext >&5
11080:
11081: ac_cv_lib_dld_shl_load=no
11082: fi
11083: rm -f conftest.err conftest.$ac_objext \
11084: conftest$ac_exeext conftest.$ac_ext
11085: LIBS=$ac_check_lib_save_LIBS
11086: fi
11087: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11088: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11089: if test $ac_cv_lib_dld_shl_load = yes; then
11090: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11091: else
11092: echo "$as_me:$LINENO: checking for dlopen" >&5
11093: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11094: if test "${ac_cv_func_dlopen+set}" = set; then
11095: echo $ECHO_N "(cached) $ECHO_C" >&6
11096: else
11097: cat >conftest.$ac_ext <<_ACEOF
11098: /* confdefs.h. */
11099: _ACEOF
11100: cat confdefs.h >>conftest.$ac_ext
11101: cat >>conftest.$ac_ext <<_ACEOF
11102: /* end confdefs.h. */
11103: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11104: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11105: #define dlopen innocuous_dlopen
11106:
11107: /* System header to define __stub macros and hopefully few prototypes,
11108: which can conflict with char dlopen (); below.
11109: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11110: <limits.h> exists even on freestanding compilers. */
11111:
11112: #ifdef __STDC__
11113: # include <limits.h>
11114: #else
11115: # include <assert.h>
11116: #endif
11117:
11118: #undef dlopen
11119:
11120: /* Override any gcc2 internal prototype to avoid an error. */
11121: #ifdef __cplusplus
11122: extern "C"
11123: {
11124: #endif
11125: /* We use char because int might match the return type of a gcc2
11126: builtin and then its argument prototype would still apply. */
11127: char dlopen ();
11128: /* The GNU C library defines this for functions which it implements
11129: to always fail with ENOSYS. Some functions are actually named
11130: something starting with __ and the normal name is an alias. */
11131: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11132: choke me
11133: #else
11134: char (*f) () = dlopen;
11135: #endif
11136: #ifdef __cplusplus
11137: }
11138: #endif
11139:
11140: int
11141: main ()
11142: {
11143: return f != dlopen;
11144: ;
11145: return 0;
11146: }
11147: _ACEOF
11148: rm -f conftest.$ac_objext conftest$ac_exeext
11149: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150: (eval $ac_link) 2>conftest.er1
11151: ac_status=$?
11152: grep -v '^ *+' conftest.er1 >conftest.err
11153: rm -f conftest.er1
11154: cat conftest.err >&5
11155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156: (exit $ac_status); } &&
11157: { ac_try='test -z "$ac_c_werror_flag"
11158: || test ! -s conftest.err'
11159: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160: (eval $ac_try) 2>&5
11161: ac_status=$?
11162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163: (exit $ac_status); }; } &&
11164: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11170: ac_cv_func_dlopen=yes
11171: else
11172: echo "$as_me: failed program was:" >&5
11173: sed 's/^/| /' conftest.$ac_ext >&5
11174:
11175: ac_cv_func_dlopen=no
11176: fi
11177: rm -f conftest.err conftest.$ac_objext \
11178: conftest$ac_exeext conftest.$ac_ext
11179: fi
11180: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11181: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11182: if test $ac_cv_func_dlopen = yes; then
11183: lt_cv_dlopen="dlopen"
11184: else
11185: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11186: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11187: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11188: echo $ECHO_N "(cached) $ECHO_C" >&6
11189: else
11190: ac_check_lib_save_LIBS=$LIBS
11191: LIBS="-ldl $LIBS"
11192: cat >conftest.$ac_ext <<_ACEOF
11193: /* confdefs.h. */
11194: _ACEOF
11195: cat confdefs.h >>conftest.$ac_ext
11196: cat >>conftest.$ac_ext <<_ACEOF
11197: /* end confdefs.h. */
11198:
11199: /* Override any gcc2 internal prototype to avoid an error. */
11200: #ifdef __cplusplus
11201: extern "C"
11202: #endif
11203: /* We use char because int might match the return type of a gcc2
11204: builtin and then its argument prototype would still apply. */
11205: char dlopen ();
11206: int
11207: main ()
11208: {
11209: dlopen ();
11210: ;
11211: return 0;
11212: }
11213: _ACEOF
11214: rm -f conftest.$ac_objext conftest$ac_exeext
11215: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216: (eval $ac_link) 2>conftest.er1
11217: ac_status=$?
11218: grep -v '^ *+' conftest.er1 >conftest.err
11219: rm -f conftest.er1
11220: cat conftest.err >&5
11221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222: (exit $ac_status); } &&
11223: { ac_try='test -z "$ac_c_werror_flag"
11224: || test ! -s conftest.err'
11225: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226: (eval $ac_try) 2>&5
11227: ac_status=$?
11228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229: (exit $ac_status); }; } &&
11230: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11236: ac_cv_lib_dl_dlopen=yes
11237: else
11238: echo "$as_me: failed program was:" >&5
11239: sed 's/^/| /' conftest.$ac_ext >&5
11240:
11241: ac_cv_lib_dl_dlopen=no
11242: fi
11243: rm -f conftest.err conftest.$ac_objext \
11244: conftest$ac_exeext conftest.$ac_ext
11245: LIBS=$ac_check_lib_save_LIBS
11246: fi
11247: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11248: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11249: if test $ac_cv_lib_dl_dlopen = yes; then
11250: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11251: else
11252: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11253: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11254: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11255: echo $ECHO_N "(cached) $ECHO_C" >&6
11256: else
11257: ac_check_lib_save_LIBS=$LIBS
11258: LIBS="-lsvld $LIBS"
11259: cat >conftest.$ac_ext <<_ACEOF
11260: /* confdefs.h. */
11261: _ACEOF
11262: cat confdefs.h >>conftest.$ac_ext
11263: cat >>conftest.$ac_ext <<_ACEOF
11264: /* end confdefs.h. */
11265:
11266: /* Override any gcc2 internal prototype to avoid an error. */
11267: #ifdef __cplusplus
11268: extern "C"
11269: #endif
11270: /* We use char because int might match the return type of a gcc2
11271: builtin and then its argument prototype would still apply. */
11272: char dlopen ();
11273: int
11274: main ()
11275: {
11276: dlopen ();
11277: ;
11278: return 0;
11279: }
11280: _ACEOF
11281: rm -f conftest.$ac_objext conftest$ac_exeext
11282: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283: (eval $ac_link) 2>conftest.er1
11284: ac_status=$?
11285: grep -v '^ *+' conftest.er1 >conftest.err
11286: rm -f conftest.er1
11287: cat conftest.err >&5
11288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289: (exit $ac_status); } &&
11290: { ac_try='test -z "$ac_c_werror_flag"
11291: || test ! -s conftest.err'
11292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293: (eval $ac_try) 2>&5
11294: ac_status=$?
11295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296: (exit $ac_status); }; } &&
11297: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11303: ac_cv_lib_svld_dlopen=yes
11304: else
11305: echo "$as_me: failed program was:" >&5
11306: sed 's/^/| /' conftest.$ac_ext >&5
11307:
11308: ac_cv_lib_svld_dlopen=no
11309: fi
11310: rm -f conftest.err conftest.$ac_objext \
11311: conftest$ac_exeext conftest.$ac_ext
11312: LIBS=$ac_check_lib_save_LIBS
11313: fi
11314: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11315: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11316: if test $ac_cv_lib_svld_dlopen = yes; then
11317: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11318: else
11319: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11320: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11321: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11322: echo $ECHO_N "(cached) $ECHO_C" >&6
11323: else
11324: ac_check_lib_save_LIBS=$LIBS
11325: LIBS="-ldld $LIBS"
11326: cat >conftest.$ac_ext <<_ACEOF
11327: /* confdefs.h. */
11328: _ACEOF
11329: cat confdefs.h >>conftest.$ac_ext
11330: cat >>conftest.$ac_ext <<_ACEOF
11331: /* end confdefs.h. */
11332:
11333: /* Override any gcc2 internal prototype to avoid an error. */
11334: #ifdef __cplusplus
11335: extern "C"
11336: #endif
11337: /* We use char because int might match the return type of a gcc2
11338: builtin and then its argument prototype would still apply. */
11339: char dld_link ();
11340: int
11341: main ()
11342: {
11343: dld_link ();
11344: ;
11345: return 0;
11346: }
11347: _ACEOF
11348: rm -f conftest.$ac_objext conftest$ac_exeext
11349: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11350: (eval $ac_link) 2>conftest.er1
11351: ac_status=$?
11352: grep -v '^ *+' conftest.er1 >conftest.err
11353: rm -f conftest.er1
11354: cat conftest.err >&5
11355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356: (exit $ac_status); } &&
11357: { ac_try='test -z "$ac_c_werror_flag"
11358: || test ! -s conftest.err'
11359: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360: (eval $ac_try) 2>&5
11361: ac_status=$?
11362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363: (exit $ac_status); }; } &&
11364: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11370: ac_cv_lib_dld_dld_link=yes
11371: else
11372: echo "$as_me: failed program was:" >&5
11373: sed 's/^/| /' conftest.$ac_ext >&5
11374:
11375: ac_cv_lib_dld_dld_link=no
11376: fi
11377: rm -f conftest.err conftest.$ac_objext \
11378: conftest$ac_exeext conftest.$ac_ext
11379: LIBS=$ac_check_lib_save_LIBS
11380: fi
11381: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11382: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11383: if test $ac_cv_lib_dld_dld_link = yes; then
11384: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11385: fi
11386:
11387:
11388: fi
11389:
11390:
11391: fi
11392:
11393:
11394: fi
11395:
11396:
11397: fi
11398:
11399:
11400: fi
11401:
11402: ;;
11403: esac
11404:
11405: if test "x$lt_cv_dlopen" != xno; then
11406: enable_dlopen=yes
11407: else
11408: enable_dlopen=no
11409: fi
11410:
11411: case $lt_cv_dlopen in
11412: dlopen)
11413: save_CPPFLAGS="$CPPFLAGS"
11414: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11415:
11416: save_LDFLAGS="$LDFLAGS"
11417: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11418:
11419: save_LIBS="$LIBS"
11420: LIBS="$lt_cv_dlopen_libs $LIBS"
11421:
11422: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11423: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11424: if test "${lt_cv_dlopen_self+set}" = set; then
11425: echo $ECHO_N "(cached) $ECHO_C" >&6
11426: else
11427: if test "$cross_compiling" = yes; then :
11428: lt_cv_dlopen_self=cross
11429: else
11430: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431: lt_status=$lt_dlunknown
11432: cat > conftest.$ac_ext <<_LT_EOF
11433: #line $LINENO "configure"
11434: #include "confdefs.h"
11435:
11436: #if HAVE_DLFCN_H
11437: #include <dlfcn.h>
11438: #endif
11439:
11440: #include <stdio.h>
11441:
11442: #ifdef RTLD_GLOBAL
11443: # define LT_DLGLOBAL RTLD_GLOBAL
11444: #else
11445: # ifdef DL_GLOBAL
11446: # define LT_DLGLOBAL DL_GLOBAL
11447: # else
11448: # define LT_DLGLOBAL 0
11449: # endif
11450: #endif
11451:
11452: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453: find out it does not work in some platform. */
11454: #ifndef LT_DLLAZY_OR_NOW
11455: # ifdef RTLD_LAZY
11456: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11457: # else
11458: # ifdef DL_LAZY
11459: # define LT_DLLAZY_OR_NOW DL_LAZY
11460: # else
11461: # ifdef RTLD_NOW
11462: # define LT_DLLAZY_OR_NOW RTLD_NOW
11463: # else
11464: # ifdef DL_NOW
11465: # define LT_DLLAZY_OR_NOW DL_NOW
11466: # else
11467: # define LT_DLLAZY_OR_NOW 0
11468: # endif
11469: # endif
11470: # endif
11471: # endif
11472: #endif
11473:
11474: /* When -fvisbility=hidden is used, assume the code has been annotated
11475: correspondingly for the symbols needed. */
11476: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477: int fnord () __attribute__((visibility("default")));
11478: #endif
11479:
11480: int fnord () { return 42; }
11481: int main ()
11482: {
11483: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484: int status = $lt_dlunknown;
11485:
11486: if (self)
11487: {
11488: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11489: else
11490: {
11491: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11492: else puts (dlerror ());
11493: }
11494: /* dlclose (self); */
11495: }
11496: else
11497: puts (dlerror ());
11498:
11499: return status;
11500: }
11501: _LT_EOF
11502: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503: (eval $ac_link) 2>&5
11504: ac_status=$?
11505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11507: (./conftest; exit; ) >&5 2>/dev/null
11508: lt_status=$?
11509: case x$lt_status in
11510: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513: esac
11514: else :
11515: # compilation failed
11516: lt_cv_dlopen_self=no
11517: fi
11518: fi
11519: rm -fr conftest*
11520:
11521:
11522: fi
11523: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11524: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11525:
11526: if test "x$lt_cv_dlopen_self" = xyes; then
11527: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11529: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11530: if test "${lt_cv_dlopen_self_static+set}" = set; then
11531: echo $ECHO_N "(cached) $ECHO_C" >&6
11532: else
11533: if test "$cross_compiling" = yes; then :
11534: lt_cv_dlopen_self_static=cross
11535: else
11536: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537: lt_status=$lt_dlunknown
11538: cat > conftest.$ac_ext <<_LT_EOF
11539: #line $LINENO "configure"
11540: #include "confdefs.h"
11541:
11542: #if HAVE_DLFCN_H
11543: #include <dlfcn.h>
11544: #endif
11545:
11546: #include <stdio.h>
11547:
11548: #ifdef RTLD_GLOBAL
11549: # define LT_DLGLOBAL RTLD_GLOBAL
11550: #else
11551: # ifdef DL_GLOBAL
11552: # define LT_DLGLOBAL DL_GLOBAL
11553: # else
11554: # define LT_DLGLOBAL 0
11555: # endif
11556: #endif
11557:
11558: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559: find out it does not work in some platform. */
11560: #ifndef LT_DLLAZY_OR_NOW
11561: # ifdef RTLD_LAZY
11562: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11563: # else
11564: # ifdef DL_LAZY
11565: # define LT_DLLAZY_OR_NOW DL_LAZY
11566: # else
11567: # ifdef RTLD_NOW
11568: # define LT_DLLAZY_OR_NOW RTLD_NOW
11569: # else
11570: # ifdef DL_NOW
11571: # define LT_DLLAZY_OR_NOW DL_NOW
11572: # else
11573: # define LT_DLLAZY_OR_NOW 0
11574: # endif
11575: # endif
11576: # endif
11577: # endif
11578: #endif
11579:
11580: /* When -fvisbility=hidden is used, assume the code has been annotated
11581: correspondingly for the symbols needed. */
11582: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583: int fnord () __attribute__((visibility("default")));
11584: #endif
11585:
11586: int fnord () { return 42; }
11587: int main ()
11588: {
11589: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590: int status = $lt_dlunknown;
11591:
11592: if (self)
11593: {
11594: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11595: else
11596: {
11597: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598: else puts (dlerror ());
11599: }
11600: /* dlclose (self); */
11601: }
11602: else
11603: puts (dlerror ());
11604:
11605: return status;
11606: }
11607: _LT_EOF
11608: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609: (eval $ac_link) 2>&5
11610: ac_status=$?
11611: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11613: (./conftest; exit; ) >&5 2>/dev/null
11614: lt_status=$?
11615: case x$lt_status in
11616: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619: esac
11620: else :
11621: # compilation failed
11622: lt_cv_dlopen_self_static=no
11623: fi
11624: fi
11625: rm -fr conftest*
11626:
11627:
11628: fi
11629: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11630: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11631: fi
11632:
11633: CPPFLAGS="$save_CPPFLAGS"
11634: LDFLAGS="$save_LDFLAGS"
11635: LIBS="$save_LIBS"
11636: ;;
11637: esac
11638:
11639: case $lt_cv_dlopen_self in
11640: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641: *) enable_dlopen_self=unknown ;;
11642: esac
11643:
11644: case $lt_cv_dlopen_self_static in
11645: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646: *) enable_dlopen_self_static=unknown ;;
11647: esac
11648: fi
11649:
11650:
11651:
11652:
11653:
11654:
11655:
11656:
11657:
11658:
11659:
11660:
11661:
11662:
11663:
11664:
11665:
11666: striplib=
11667: old_striplib=
11668: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11669: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11670: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11673: echo "$as_me:$LINENO: result: yes" >&5
11674: echo "${ECHO_T}yes" >&6
11675: else
11676: # FIXME - insert some real tests, host_os isn't really good enough
11677: case $host_os in
11678: darwin*)
11679: if test -n "$STRIP" ; then
11680: striplib="$STRIP -x"
11681: old_striplib="$STRIP -S"
11682: echo "$as_me:$LINENO: result: yes" >&5
11683: echo "${ECHO_T}yes" >&6
11684: else
11685: echo "$as_me:$LINENO: result: no" >&5
11686: echo "${ECHO_T}no" >&6
11687: fi
11688: ;;
11689: *)
11690: echo "$as_me:$LINENO: result: no" >&5
11691: echo "${ECHO_T}no" >&6
11692: ;;
11693: esac
11694: fi
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707: # Report which library types will actually be built
11708: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11709: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11710: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11711: echo "${ECHO_T}$can_build_shared" >&6
11712:
11713: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11714: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11715: test "$can_build_shared" = "no" && enable_shared=no
11716:
11717: # On AIX, shared libraries and static libraries use the same namespace, and
11718: # are all built from PIC.
11719: case $host_os in
11720: aix3*)
11721: test "$enable_shared" = yes && enable_static=no
11722: if test -n "$RANLIB"; then
11723: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724: postinstall_cmds='$RANLIB $lib'
11725: fi
11726: ;;
11727:
11728: aix[4-9]*)
11729: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730: test "$enable_shared" = yes && enable_static=no
11731: fi
11732: ;;
11733: esac
11734: echo "$as_me:$LINENO: result: $enable_shared" >&5
11735: echo "${ECHO_T}$enable_shared" >&6
11736:
11737: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11738: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11739: # Make sure either enable_shared or enable_static is yes.
11740: test "$enable_shared" = yes || enable_static=yes
11741: echo "$as_me:$LINENO: result: $enable_static" >&5
11742: echo "${ECHO_T}$enable_static" >&6
11743:
11744:
11745:
11746:
11747: fi
11748: ac_ext=c
11749: ac_cpp='$CPP $CPPFLAGS'
11750: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753:
11754: CC="$lt_save_CC"
11755:
11756: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11757: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11758: (test "X$CXX" != "Xg++"))) ; then
11759: ac_ext=cc
11760: ac_cpp='$CXXCPP $CPPFLAGS'
11761: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11762: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11763: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11764: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11765: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11766: if test -z "$CXXCPP"; then
11767: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11768: echo $ECHO_N "(cached) $ECHO_C" >&6
11769: else
11770: # Double quotes because CXXCPP needs to be expanded
11771: for CXXCPP in "$CXX -E" "/lib/cpp"
11772: do
11773: ac_preproc_ok=false
11774: for ac_cxx_preproc_warn_flag in '' yes
11775: do
11776: # Use a header file that comes with gcc, so configuring glibc
11777: # with a fresh cross-compiler works.
11778: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11779: # <limits.h> exists even on freestanding compilers.
11780: # On the NeXT, cc -E runs the code through the compiler's parser,
11781: # not just through cpp. "Syntax error" is here to catch this case.
11782: cat >conftest.$ac_ext <<_ACEOF
11783: /* confdefs.h. */
11784: _ACEOF
11785: cat confdefs.h >>conftest.$ac_ext
11786: cat >>conftest.$ac_ext <<_ACEOF
11787: /* end confdefs.h. */
11788: #ifdef __STDC__
11789: # include <limits.h>
11790: #else
11791: # include <assert.h>
11792: #endif
11793: Syntax error
11794: _ACEOF
11795: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11796: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11797: ac_status=$?
11798: grep -v '^ *+' conftest.er1 >conftest.err
11799: rm -f conftest.er1
11800: cat conftest.err >&5
11801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802: (exit $ac_status); } >/dev/null; then
11803: if test -s conftest.err; then
11804: ac_cpp_err=$ac_cxx_preproc_warn_flag
11805: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11806: else
11807: ac_cpp_err=
11808: fi
11809: else
11810: ac_cpp_err=yes
11811: fi
11812: if test -z "$ac_cpp_err"; then
11813: :
11814: else
11815: echo "$as_me: failed program was:" >&5
11816: sed 's/^/| /' conftest.$ac_ext >&5
11817:
11818: # Broken: fails on valid input.
11819: continue
11820: fi
11821: rm -f conftest.err conftest.$ac_ext
11822:
11823: # OK, works on sane cases. Now check whether non-existent headers
11824: # can be detected and how.
11825: cat >conftest.$ac_ext <<_ACEOF
11826: /* confdefs.h. */
11827: _ACEOF
11828: cat confdefs.h >>conftest.$ac_ext
11829: cat >>conftest.$ac_ext <<_ACEOF
11830: /* end confdefs.h. */
11831: #include <ac_nonexistent.h>
11832: _ACEOF
11833: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11834: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11835: ac_status=$?
11836: grep -v '^ *+' conftest.er1 >conftest.err
11837: rm -f conftest.er1
11838: cat conftest.err >&5
11839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840: (exit $ac_status); } >/dev/null; then
11841: if test -s conftest.err; then
11842: ac_cpp_err=$ac_cxx_preproc_warn_flag
11843: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11844: else
11845: ac_cpp_err=
11846: fi
11847: else
11848: ac_cpp_err=yes
11849: fi
11850: if test -z "$ac_cpp_err"; then
11851: # Broken: success on invalid input.
11852: continue
11853: else
11854: echo "$as_me: failed program was:" >&5
11855: sed 's/^/| /' conftest.$ac_ext >&5
11856:
11857: # Passes both tests.
11858: ac_preproc_ok=:
11859: break
11860: fi
11861: rm -f conftest.err conftest.$ac_ext
11862:
11863: done
11864: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11865: rm -f conftest.err conftest.$ac_ext
11866: if $ac_preproc_ok; then
11867: break
11868: fi
11869:
11870: done
11871: ac_cv_prog_CXXCPP=$CXXCPP
11872:
11873: fi
11874: CXXCPP=$ac_cv_prog_CXXCPP
11875: else
11876: ac_cv_prog_CXXCPP=$CXXCPP
11877: fi
11878: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11879: echo "${ECHO_T}$CXXCPP" >&6
11880: ac_preproc_ok=false
11881: for ac_cxx_preproc_warn_flag in '' yes
11882: do
11883: # Use a header file that comes with gcc, so configuring glibc
11884: # with a fresh cross-compiler works.
11885: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886: # <limits.h> exists even on freestanding compilers.
11887: # On the NeXT, cc -E runs the code through the compiler's parser,
11888: # not just through cpp. "Syntax error" is here to catch this case.
11889: cat >conftest.$ac_ext <<_ACEOF
11890: /* confdefs.h. */
11891: _ACEOF
11892: cat confdefs.h >>conftest.$ac_ext
11893: cat >>conftest.$ac_ext <<_ACEOF
11894: /* end confdefs.h. */
11895: #ifdef __STDC__
11896: # include <limits.h>
11897: #else
11898: # include <assert.h>
11899: #endif
11900: Syntax error
11901: _ACEOF
11902: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11903: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11904: ac_status=$?
11905: grep -v '^ *+' conftest.er1 >conftest.err
11906: rm -f conftest.er1
11907: cat conftest.err >&5
11908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909: (exit $ac_status); } >/dev/null; then
11910: if test -s conftest.err; then
11911: ac_cpp_err=$ac_cxx_preproc_warn_flag
11912: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11913: else
11914: ac_cpp_err=
11915: fi
11916: else
11917: ac_cpp_err=yes
11918: fi
11919: if test -z "$ac_cpp_err"; then
11920: :
11921: else
11922: echo "$as_me: failed program was:" >&5
11923: sed 's/^/| /' conftest.$ac_ext >&5
11924:
11925: # Broken: fails on valid input.
11926: continue
11927: fi
11928: rm -f conftest.err conftest.$ac_ext
11929:
11930: # OK, works on sane cases. Now check whether non-existent headers
11931: # can be detected and how.
11932: cat >conftest.$ac_ext <<_ACEOF
11933: /* confdefs.h. */
11934: _ACEOF
11935: cat confdefs.h >>conftest.$ac_ext
11936: cat >>conftest.$ac_ext <<_ACEOF
11937: /* end confdefs.h. */
11938: #include <ac_nonexistent.h>
11939: _ACEOF
11940: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11941: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11942: ac_status=$?
11943: grep -v '^ *+' conftest.er1 >conftest.err
11944: rm -f conftest.er1
11945: cat conftest.err >&5
11946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947: (exit $ac_status); } >/dev/null; then
11948: if test -s conftest.err; then
11949: ac_cpp_err=$ac_cxx_preproc_warn_flag
11950: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11951: else
11952: ac_cpp_err=
11953: fi
11954: else
11955: ac_cpp_err=yes
11956: fi
11957: if test -z "$ac_cpp_err"; then
11958: # Broken: success on invalid input.
11959: continue
11960: else
11961: echo "$as_me: failed program was:" >&5
11962: sed 's/^/| /' conftest.$ac_ext >&5
11963:
11964: # Passes both tests.
11965: ac_preproc_ok=:
11966: break
11967: fi
11968: rm -f conftest.err conftest.$ac_ext
11969:
11970: done
11971: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11972: rm -f conftest.err conftest.$ac_ext
11973: if $ac_preproc_ok; then
11974: :
11975: else
11976: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11977: See \`config.log' for more details." >&5
11978: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11979: See \`config.log' for more details." >&2;}
11980: { (exit 1); exit 1; }; }
11981: fi
11982:
11983: ac_ext=c
11984: ac_cpp='$CPP $CPPFLAGS'
11985: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988:
11989: else
11990: _lt_caught_CXX_error=yes
11991: fi
11992:
11993: ac_ext=cc
11994: ac_cpp='$CXXCPP $CPPFLAGS'
11995: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998:
11999: archive_cmds_need_lc_CXX=no
12000: allow_undefined_flag_CXX=
12001: always_export_symbols_CXX=no
12002: archive_expsym_cmds_CXX=
12003: compiler_needs_object_CXX=no
12004: export_dynamic_flag_spec_CXX=
12005: hardcode_direct_CXX=no
12006: hardcode_direct_absolute_CXX=no
12007: hardcode_libdir_flag_spec_CXX=
12008: hardcode_libdir_separator_CXX=
12009: hardcode_minus_L_CXX=no
12010: hardcode_shlibpath_var_CXX=unsupported
12011: hardcode_automatic_CXX=no
12012: inherit_rpath_CXX=no
12013: module_cmds_CXX=
12014: module_expsym_cmds_CXX=
12015: link_all_deplibs_CXX=unknown
12016: old_archive_cmds_CXX=$old_archive_cmds
12017: reload_flag_CXX=$reload_flag
12018: reload_cmds_CXX=$reload_cmds
12019: no_undefined_flag_CXX=
12020: whole_archive_flag_spec_CXX=
12021: enable_shared_with_static_runtimes_CXX=no
12022:
12023: # Source file extension for C++ test sources.
12024: ac_ext=cpp
12025:
12026: # Object file extension for compiled C++ test sources.
12027: objext=o
12028: objext_CXX=$objext
12029:
12030: # No sense in running all these tests if we already determined that
12031: # the CXX compiler isn't working. Some variables (like enable_shared)
12032: # are currently assumed to apply to all compilers on this platform,
12033: # and will be corrupted by setting them based on a non-working compiler.
12034: if test "$_lt_caught_CXX_error" != yes; then
12035: # Code to be used in simple compile tests
12036: lt_simple_compile_test_code="int some_variable = 0;"
12037:
12038: # Code to be used in simple link tests
12039: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12040:
12041: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12042:
12043:
12044:
12045:
12046:
12047:
12048: # If no C compiler was specified, use CC.
12049: LTCC=${LTCC-"$CC"}
12050:
12051: # If no C compiler flags were specified, use CFLAGS.
12052: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12053:
12054: # Allow CC to be a program name with arguments.
12055: compiler=$CC
12056:
12057:
12058: # save warnings/boilerplate of simple test code
12059: ac_outfile=conftest.$ac_objext
12060: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12061: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12062: _lt_compiler_boilerplate=`cat conftest.err`
12063: $RM conftest*
12064:
12065: ac_outfile=conftest.$ac_objext
12066: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12067: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12068: _lt_linker_boilerplate=`cat conftest.err`
12069: $RM -r conftest*
12070:
12071:
12072: # Allow CC to be a program name with arguments.
12073: lt_save_CC=$CC
12074: lt_save_CFLAGS=$CFLAGS
12075: lt_save_LD=$LD
12076: lt_save_GCC=$GCC
12077: GCC=$GXX
12078: lt_save_with_gnu_ld=$with_gnu_ld
12079: lt_save_path_LD=$lt_cv_path_LD
12080: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12081: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12082: else
12083: $as_unset lt_cv_prog_gnu_ld
12084: fi
12085: if test -n "${lt_cv_path_LDCXX+set}"; then
12086: lt_cv_path_LD=$lt_cv_path_LDCXX
12087: else
12088: $as_unset lt_cv_path_LD
12089: fi
12090: test -z "${LDCXX+set}" || LD=$LDCXX
12091: CC=${CXX-"c++"}
12092: CFLAGS=$CXXFLAGS
12093: compiler=$CC
12094: compiler_CXX=$CC
12095: for cc_temp in $compiler""; do
12096: case $cc_temp in
12097: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12098: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12099: \-*) ;;
12100: *) break;;
12101: esac
12102: done
12103: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12104:
12105:
12106: if test -n "$compiler"; then
12107: # We don't want -fno-exception when compiling C++ code, so set the
12108: # no_builtin_flag separately
12109: if test "$GXX" = yes; then
12110: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12111: else
12112: lt_prog_compiler_no_builtin_flag_CXX=
12113: fi
12114:
12115: if test "$GXX" = yes; then
12116: # Set up default GNU C++ configuration
12117:
12118:
12119:
12120: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12121: if test "${with_gnu_ld+set}" = set; then
12122: withval="$with_gnu_ld"
12123: test "$withval" = no || with_gnu_ld=yes
12124: else
12125: with_gnu_ld=no
12126: fi;
12127: ac_prog=ld
12128: if test "$GCC" = yes; then
12129: # Check if gcc -print-prog-name=ld gives a path.
12130: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12131: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12132: case $host in
12133: *-*-mingw*)
12134: # gcc leaves a trailing carriage return which upsets mingw
12135: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12136: *)
12137: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12138: esac
12139: case $ac_prog in
12140: # Accept absolute paths.
12141: [\\/]* | ?:[\\/]*)
12142: re_direlt='/[^/][^/]*/\.\./'
12143: # Canonicalize the pathname of ld
12144: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12145: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12146: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12147: done
12148: test -z "$LD" && LD="$ac_prog"
12149: ;;
12150: "")
12151: # If it fails, then pretend we aren't using GCC.
12152: ac_prog=ld
12153: ;;
12154: *)
12155: # If it is relative, then search for the first ld in PATH.
12156: with_gnu_ld=unknown
12157: ;;
12158: esac
12159: elif test "$with_gnu_ld" = yes; then
12160: echo "$as_me:$LINENO: checking for GNU ld" >&5
12161: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12162: else
12163: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12164: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12165: fi
12166: if test "${lt_cv_path_LD+set}" = set; then
12167: echo $ECHO_N "(cached) $ECHO_C" >&6
12168: else
12169: if test -z "$LD"; then
12170: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12171: for ac_dir in $PATH; do
12172: IFS="$lt_save_ifs"
12173: test -z "$ac_dir" && ac_dir=.
12174: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12175: lt_cv_path_LD="$ac_dir/$ac_prog"
12176: # Check to see if the program is GNU ld. I'd rather use --version,
12177: # but apparently some variants of GNU ld only accept -v.
12178: # Break only if it was the GNU/non-GNU ld that we prefer.
12179: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12180: *GNU* | *'with BFD'*)
12181: test "$with_gnu_ld" != no && break
12182: ;;
12183: *)
12184: test "$with_gnu_ld" != yes && break
12185: ;;
12186: esac
12187: fi
12188: done
12189: IFS="$lt_save_ifs"
12190: else
12191: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12192: fi
12193: fi
12194:
12195: LD="$lt_cv_path_LD"
12196: if test -n "$LD"; then
12197: echo "$as_me:$LINENO: result: $LD" >&5
12198: echo "${ECHO_T}$LD" >&6
12199: else
12200: echo "$as_me:$LINENO: result: no" >&5
12201: echo "${ECHO_T}no" >&6
12202: fi
12203: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12204: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12205: { (exit 1); exit 1; }; }
12206: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12207: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12208: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12209: echo $ECHO_N "(cached) $ECHO_C" >&6
12210: else
12211: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12212: case `$LD -v 2>&1 </dev/null` in
12213: *GNU* | *'with BFD'*)
12214: lt_cv_prog_gnu_ld=yes
12215: ;;
12216: *)
12217: lt_cv_prog_gnu_ld=no
12218: ;;
12219: esac
12220: fi
12221: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12222: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12223: with_gnu_ld=$lt_cv_prog_gnu_ld
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12232: # archiving commands below assume that GNU ld is being used.
12233: if test "$with_gnu_ld" = yes; then
12234: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12235: 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'
12236:
12237: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12238: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12239:
12240: # If archive_cmds runs LD, not CC, wlarc should be empty
12241: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12242: # investigate it a little bit more. (MM)
12243: wlarc='${wl}'
12244:
12245: # ancient GNU ld didn't support --whole-archive et. al.
12246: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12247: $GREP 'no-whole-archive' > /dev/null; then
12248: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12249: else
12250: whole_archive_flag_spec_CXX=
12251: fi
12252: else
12253: with_gnu_ld=no
12254: wlarc=
12255:
12256: # A generic and very simple default shared library creation
12257: # command for GNU C++ for the case where it uses the native
12258: # linker, instead of GNU ld. If possible, this setting should
12259: # overridden to take advantage of the native linker features on
12260: # the platform it is being used on.
12261: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12262: fi
12263:
12264: # Commands to make compiler produce verbose output that lists
12265: # what "hidden" libraries, object files and flags are used when
12266: # linking a shared library.
12267: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12268:
12269: else
12270: GXX=no
12271: with_gnu_ld=no
12272: wlarc=
12273: fi
12274:
12275: # PORTME: fill in a description of your system's C++ link characteristics
12276: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12277: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12278: ld_shlibs_CXX=yes
12279: case $host_os in
12280: aix3*)
12281: # FIXME: insert proper C++ library support
12282: ld_shlibs_CXX=no
12283: ;;
12284: aix[4-9]*)
12285: if test "$host_cpu" = ia64; then
12286: # On IA64, the linker does run time linking by default, so we don't
12287: # have to do anything special.
12288: aix_use_runtimelinking=no
12289: exp_sym_flag='-Bexport'
12290: no_entry_flag=""
12291: else
12292: aix_use_runtimelinking=no
12293:
12294: # Test if we are trying to use run time linking or normal
12295: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12296: # need to do runtime linking.
12297: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12298: for ld_flag in $LDFLAGS; do
12299: case $ld_flag in
12300: *-brtl*)
12301: aix_use_runtimelinking=yes
12302: break
12303: ;;
12304: esac
12305: done
12306: ;;
12307: esac
12308:
12309: exp_sym_flag='-bexport'
12310: no_entry_flag='-bnoentry'
12311: fi
12312:
12313: # When large executables or shared objects are built, AIX ld can
12314: # have problems creating the table of contents. If linking a library
12315: # or program results in "error TOC overflow" add -mminimal-toc to
12316: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12317: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12318:
12319: archive_cmds_CXX=''
12320: hardcode_direct_CXX=yes
12321: hardcode_direct_absolute_CXX=yes
12322: hardcode_libdir_separator_CXX=':'
12323: link_all_deplibs_CXX=yes
12324: file_list_spec_CXX='${wl}-f,'
12325:
12326: if test "$GXX" = yes; then
12327: case $host_os in aix4.[012]|aix4.[012].*)
12328: # We only want to do this on AIX 4.2 and lower, the check
12329: # below for broken collect2 doesn't work under 4.3+
12330: collect2name=`${CC} -print-prog-name=collect2`
12331: if test -f "$collect2name" &&
12332: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12333: then
12334: # We have reworked collect2
12335: :
12336: else
12337: # We have old collect2
12338: hardcode_direct_CXX=unsupported
12339: # It fails to find uninstalled libraries when the uninstalled
12340: # path is not listed in the libpath. Setting hardcode_minus_L
12341: # to unsupported forces relinking
12342: hardcode_minus_L_CXX=yes
12343: hardcode_libdir_flag_spec_CXX='-L$libdir'
12344: hardcode_libdir_separator_CXX=
12345: fi
12346: esac
12347: shared_flag='-shared'
12348: if test "$aix_use_runtimelinking" = yes; then
12349: shared_flag="$shared_flag "'${wl}-G'
12350: fi
12351: else
12352: # not using gcc
12353: if test "$host_cpu" = ia64; then
12354: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12355: # chokes on -Wl,-G. The following line is correct:
12356: shared_flag='-G'
12357: else
12358: if test "$aix_use_runtimelinking" = yes; then
12359: shared_flag='${wl}-G'
12360: else
12361: shared_flag='${wl}-bM:SRE'
12362: fi
12363: fi
12364: fi
12365:
12366: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12367: # It seems that -bexpall does not export symbols beginning with
12368: # underscore (_), so it is better to generate a list of symbols to
12369: # export.
12370: always_export_symbols_CXX=yes
12371: if test "$aix_use_runtimelinking" = yes; then
12372: # Warning - without using the other runtime loading flags (-brtl),
12373: # -berok will link without error, but may produce a broken library.
12374: allow_undefined_flag_CXX='-berok'
12375: # Determine the default libpath from the value encoded in an empty
12376: # executable.
12377: if test "${lt_cv_aix_libpath+set}" = set; then
12378: aix_libpath=$lt_cv_aix_libpath
12379: else
12380: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12381: echo $ECHO_N "(cached) $ECHO_C" >&6
12382: else
12383: cat >conftest.$ac_ext <<_ACEOF
12384: /* confdefs.h. */
12385: _ACEOF
12386: cat confdefs.h >>conftest.$ac_ext
12387: cat >>conftest.$ac_ext <<_ACEOF
12388: /* end confdefs.h. */
12389:
12390: int
12391: main ()
12392: {
12393:
12394: ;
12395: return 0;
12396: }
12397: _ACEOF
12398: rm -f conftest.$ac_objext conftest$ac_exeext
12399: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400: (eval $ac_link) 2>conftest.er1
12401: ac_status=$?
12402: grep -v '^ *+' conftest.er1 >conftest.err
12403: rm -f conftest.er1
12404: cat conftest.err >&5
12405: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406: (exit $ac_status); } &&
12407: { ac_try='test -z "$ac_cxx_werror_flag"
12408: || test ! -s conftest.err'
12409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410: (eval $ac_try) 2>&5
12411: ac_status=$?
12412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413: (exit $ac_status); }; } &&
12414: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12420:
12421: lt_aix_libpath_sed='
12422: /Import File Strings/,/^$/ {
12423: /^0/ {
12424: s/^0 *\([^ ]*\) *$/\1/
12425: p
12426: }
12427: }'
12428: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12429: # Check for a 64-bit object if we didn't find anything.
12430: if test -z "$lt_cv_aix_libpath__CXX"; then
12431: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12432: fi
12433: else
12434: echo "$as_me: failed program was:" >&5
12435: sed 's/^/| /' conftest.$ac_ext >&5
12436:
12437: fi
12438: rm -f conftest.err conftest.$ac_objext \
12439: conftest$ac_exeext conftest.$ac_ext
12440: if test -z "$lt_cv_aix_libpath__CXX"; then
12441: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12442: fi
12443:
12444: fi
12445:
12446: aix_libpath=$lt_cv_aix_libpath__CXX
12447: fi
12448:
12449: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12450:
12451: 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"
12452: else
12453: if test "$host_cpu" = ia64; then
12454: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12455: allow_undefined_flag_CXX="-z nodefs"
12456: 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"
12457: else
12458: # Determine the default libpath from the value encoded in an
12459: # empty executable.
12460: if test "${lt_cv_aix_libpath+set}" = set; then
12461: aix_libpath=$lt_cv_aix_libpath
12462: else
12463: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12464: echo $ECHO_N "(cached) $ECHO_C" >&6
12465: else
12466: cat >conftest.$ac_ext <<_ACEOF
12467: /* confdefs.h. */
12468: _ACEOF
12469: cat confdefs.h >>conftest.$ac_ext
12470: cat >>conftest.$ac_ext <<_ACEOF
12471: /* end confdefs.h. */
12472:
12473: int
12474: main ()
12475: {
12476:
12477: ;
12478: return 0;
12479: }
12480: _ACEOF
12481: rm -f conftest.$ac_objext conftest$ac_exeext
12482: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483: (eval $ac_link) 2>conftest.er1
12484: ac_status=$?
12485: grep -v '^ *+' conftest.er1 >conftest.err
12486: rm -f conftest.er1
12487: cat conftest.err >&5
12488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489: (exit $ac_status); } &&
12490: { ac_try='test -z "$ac_cxx_werror_flag"
12491: || test ! -s conftest.err'
12492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493: (eval $ac_try) 2>&5
12494: ac_status=$?
12495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496: (exit $ac_status); }; } &&
12497: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12503:
12504: lt_aix_libpath_sed='
12505: /Import File Strings/,/^$/ {
12506: /^0/ {
12507: s/^0 *\([^ ]*\) *$/\1/
12508: p
12509: }
12510: }'
12511: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12512: # Check for a 64-bit object if we didn't find anything.
12513: if test -z "$lt_cv_aix_libpath__CXX"; then
12514: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12515: fi
12516: else
12517: echo "$as_me: failed program was:" >&5
12518: sed 's/^/| /' conftest.$ac_ext >&5
12519:
12520: fi
12521: rm -f conftest.err conftest.$ac_objext \
12522: conftest$ac_exeext conftest.$ac_ext
12523: if test -z "$lt_cv_aix_libpath__CXX"; then
12524: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12525: fi
12526:
12527: fi
12528:
12529: aix_libpath=$lt_cv_aix_libpath__CXX
12530: fi
12531:
12532: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12533: # Warning - without using the other run time loading flags,
12534: # -berok will link without error, but may produce a broken library.
12535: no_undefined_flag_CXX=' ${wl}-bernotok'
12536: allow_undefined_flag_CXX=' ${wl}-berok'
12537: if test "$with_gnu_ld" = yes; then
12538: # We only use this code for GNU lds that support --whole-archive.
12539: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12540: else
12541: # Exported symbols can be pulled into shared objects from archives
12542: whole_archive_flag_spec_CXX='$convenience'
12543: fi
12544: archive_cmds_need_lc_CXX=yes
12545: # This is similar to how AIX traditionally builds its shared
12546: # libraries.
12547: 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'
12548: fi
12549: fi
12550: ;;
12551:
12552: beos*)
12553: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12554: allow_undefined_flag_CXX=unsupported
12555: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12556: # support --undefined. This deserves some investigation. FIXME
12557: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12558: else
12559: ld_shlibs_CXX=no
12560: fi
12561: ;;
12562:
12563: chorus*)
12564: case $cc_basename in
12565: *)
12566: # FIXME: insert proper C++ library support
12567: ld_shlibs_CXX=no
12568: ;;
12569: esac
12570: ;;
12571:
12572: cygwin* | mingw* | pw32* | cegcc*)
12573: case $GXX,$cc_basename in
12574: ,cl* | no,cl*)
12575: # Native MSVC
12576: # hardcode_libdir_flag_spec is actually meaningless, as there is
12577: # no search path for DLLs.
12578: hardcode_libdir_flag_spec_CXX=' '
12579: allow_undefined_flag_CXX=unsupported
12580: always_export_symbols_CXX=yes
12581: file_list_spec_CXX='@'
12582: # Tell ltmain to make .lib files, not .a files.
12583: libext=lib
12584: # Tell ltmain to make .dll files, not .so files.
12585: shrext_cmds=".dll"
12586: # FIXME: Setting linknames here is a bad hack.
12587: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12588: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12589: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12590: else
12591: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12592: fi~
12593: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12594: linknames='
12595: # The linker will not automatically build a static lib if we build a DLL.
12596: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12597: enable_shared_with_static_runtimes_CXX=yes
12598: # Don't use ranlib
12599: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12600: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12601: lt_tool_outputfile="@TOOL_OUTPUT@"~
12602: case $lt_outputfile in
12603: *.exe|*.EXE) ;;
12604: *)
12605: lt_outputfile="$lt_outputfile.exe"
12606: lt_tool_outputfile="$lt_tool_outputfile.exe"
12607: ;;
12608: esac~
12609: func_to_tool_file "$lt_outputfile"~
12610: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12611: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12612: $RM "$lt_outputfile.manifest";
12613: fi'
12614: ;;
12615: *)
12616: # g++
12617: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12618: # as there is no search path for DLLs.
12619: hardcode_libdir_flag_spec_CXX='-L$libdir'
12620: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12621: allow_undefined_flag_CXX=unsupported
12622: always_export_symbols_CXX=no
12623: enable_shared_with_static_runtimes_CXX=yes
12624:
12625: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12626: 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'
12627: # If the export-symbols file already is a .def file (1st line
12628: # is EXPORTS), use it as is; otherwise, prepend...
12629: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12630: cp $export_symbols $output_objdir/$soname.def;
12631: else
12632: echo EXPORTS > $output_objdir/$soname.def;
12633: cat $export_symbols >> $output_objdir/$soname.def;
12634: fi~
12635: $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'
12636: else
12637: ld_shlibs_CXX=no
12638: fi
12639: ;;
12640: esac
12641: ;;
12642: darwin* | rhapsody*)
12643:
12644:
12645: archive_cmds_need_lc_CXX=no
12646: hardcode_direct_CXX=no
12647: hardcode_automatic_CXX=yes
12648: hardcode_shlibpath_var_CXX=unsupported
12649: if test "$lt_cv_ld_force_load" = "yes"; then
12650: 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\"`'
12651:
12652: else
12653: whole_archive_flag_spec_CXX=''
12654: fi
12655: link_all_deplibs_CXX=yes
12656: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12657: case $cc_basename in
12658: ifort*) _lt_dar_can_shared=yes ;;
12659: *) _lt_dar_can_shared=$GCC ;;
12660: esac
12661: if test "$_lt_dar_can_shared" = "yes"; then
12662: output_verbose_link_cmd=func_echo_all
12663: 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}"
12664: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12665: 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}"
12666: 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}"
12667: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12668: 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}"
12669: 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}"
12670: fi
12671:
12672: else
12673: ld_shlibs_CXX=no
12674: fi
12675:
12676: ;;
12677:
12678: dgux*)
12679: case $cc_basename in
12680: ec++*)
12681: # FIXME: insert proper C++ library support
12682: ld_shlibs_CXX=no
12683: ;;
12684: ghcx*)
12685: # Green Hills C++ Compiler
12686: # FIXME: insert proper C++ library support
12687: ld_shlibs_CXX=no
12688: ;;
12689: *)
12690: # FIXME: insert proper C++ library support
12691: ld_shlibs_CXX=no
12692: ;;
12693: esac
12694: ;;
12695:
12696: freebsd2.*)
12697: # C++ shared libraries reported to be fairly broken before
12698: # switch to ELF
12699: ld_shlibs_CXX=no
12700: ;;
12701:
12702: freebsd-elf*)
12703: archive_cmds_need_lc_CXX=no
12704: ;;
12705:
12706: freebsd* | dragonfly*)
12707: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12708: # conventions
12709: ld_shlibs_CXX=yes
12710: ;;
12711:
12712: gnu*)
12713: ;;
12714:
12715: haiku*)
12716: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12717: link_all_deplibs_CXX=yes
12718: ;;
12719:
12720: hpux9*)
12721: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12722: hardcode_libdir_separator_CXX=:
12723: export_dynamic_flag_spec_CXX='${wl}-E'
12724: hardcode_direct_CXX=yes
12725: hardcode_minus_L_CXX=yes # Not in the search PATH,
12726: # but as the default
12727: # location of the library.
12728:
12729: case $cc_basename in
12730: CC*)
12731: # FIXME: insert proper C++ library support
12732: ld_shlibs_CXX=no
12733: ;;
12734: aCC*)
12735: 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'
12736: # Commands to make compiler produce verbose output that lists
12737: # what "hidden" libraries, object files and flags are used when
12738: # linking a shared library.
12739: #
12740: # There doesn't appear to be a way to prevent this compiler from
12741: # explicitly linking system object files so we need to strip them
12742: # from the output so that they don't get included in the library
12743: # dependencies.
12744: 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"'
12745: ;;
12746: *)
12747: if test "$GXX" = yes; then
12748: 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'
12749: else
12750: # FIXME: insert proper C++ library support
12751: ld_shlibs_CXX=no
12752: fi
12753: ;;
12754: esac
12755: ;;
12756:
12757: hpux10*|hpux11*)
12758: if test $with_gnu_ld = no; then
12759: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12760: hardcode_libdir_separator_CXX=:
12761:
12762: case $host_cpu in
12763: hppa*64*|ia64*)
12764: ;;
12765: *)
12766: export_dynamic_flag_spec_CXX='${wl}-E'
12767: ;;
12768: esac
12769: fi
12770: case $host_cpu in
12771: hppa*64*|ia64*)
12772: hardcode_direct_CXX=no
12773: hardcode_shlibpath_var_CXX=no
12774: ;;
12775: *)
12776: hardcode_direct_CXX=yes
12777: hardcode_direct_absolute_CXX=yes
12778: hardcode_minus_L_CXX=yes # Not in the search PATH,
12779: # but as the default
12780: # location of the library.
12781: ;;
12782: esac
12783:
12784: case $cc_basename in
12785: CC*)
12786: # FIXME: insert proper C++ library support
12787: ld_shlibs_CXX=no
12788: ;;
12789: aCC*)
12790: case $host_cpu in
12791: hppa*64*)
12792: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12793: ;;
12794: ia64*)
12795: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12796: ;;
12797: *)
12798: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12799: ;;
12800: esac
12801: # Commands to make compiler produce verbose output that lists
12802: # what "hidden" libraries, object files and flags are used when
12803: # linking a shared library.
12804: #
12805: # There doesn't appear to be a way to prevent this compiler from
12806: # explicitly linking system object files so we need to strip them
12807: # from the output so that they don't get included in the library
12808: # dependencies.
12809: 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"'
12810: ;;
12811: *)
12812: if test "$GXX" = yes; then
12813: if test $with_gnu_ld = no; then
12814: case $host_cpu in
12815: hppa*64*)
12816: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12817: ;;
12818: ia64*)
12819: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820: ;;
12821: *)
12822: 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'
12823: ;;
12824: esac
12825: fi
12826: else
12827: # FIXME: insert proper C++ library support
12828: ld_shlibs_CXX=no
12829: fi
12830: ;;
12831: esac
12832: ;;
12833:
12834: interix[3-9]*)
12835: hardcode_direct_CXX=no
12836: hardcode_shlibpath_var_CXX=no
12837: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12838: export_dynamic_flag_spec_CXX='${wl}-E'
12839: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12840: # Instead, shared libraries are loaded at an image base (0x10000000 by
12841: # default) and relocated if they conflict, which is a slow very memory
12842: # consuming and fragmenting process. To avoid this, we pick a random,
12843: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12844: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12845: 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'
12846: 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'
12847: ;;
12848: irix5* | irix6*)
12849: case $cc_basename in
12850: CC*)
12851: # SGI C++
12852: 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'
12853:
12854: # Archives containing C++ object files must be created using
12855: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12856: # necessary to make sure instantiated templates are included
12857: # in the archive.
12858: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12859: ;;
12860: *)
12861: if test "$GXX" = yes; then
12862: if test "$with_gnu_ld" = no; then
12863: 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'
12864: else
12865: 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'
12866: fi
12867: fi
12868: link_all_deplibs_CXX=yes
12869: ;;
12870: esac
12871: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12872: hardcode_libdir_separator_CXX=:
12873: inherit_rpath_CXX=yes
12874: ;;
12875:
12876: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12877: case $cc_basename in
12878: KCC*)
12879: # Kuck and Associates, Inc. (KAI) C++ Compiler
12880:
12881: # KCC will only create a shared library if the output file
12882: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12883: # to its proper name (with version) after linking.
12884: 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'
12885: 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'
12886: # Commands to make compiler produce verbose output that lists
12887: # what "hidden" libraries, object files and flags are used when
12888: # linking a shared library.
12889: #
12890: # There doesn't appear to be a way to prevent this compiler from
12891: # explicitly linking system object files so we need to strip them
12892: # from the output so that they don't get included in the library
12893: # dependencies.
12894: 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"'
12895:
12896: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12897: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12898:
12899: # Archives containing C++ object files must be created using
12900: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12901: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12902: ;;
12903: icpc* | ecpc* )
12904: # Intel C++
12905: with_gnu_ld=yes
12906: # version 8.0 and above of icpc choke on multiply defined symbols
12907: # if we add $predep_objects and $postdep_objects, however 7.1 and
12908: # earlier do not add the objects themselves.
12909: case `$CC -V 2>&1` in
12910: *"Version 7."*)
12911: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912: 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'
12913: ;;
12914: *) # Version 8.0 or newer
12915: tmp_idyn=
12916: case $host_cpu in
12917: ia64*) tmp_idyn=' -i_dynamic';;
12918: esac
12919: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920: 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'
12921: ;;
12922: esac
12923: archive_cmds_need_lc_CXX=no
12924: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12925: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12926: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12927: ;;
12928: pgCC* | pgcpp*)
12929: # Portland Group C++ compiler
12930: case `$CC -V` in
12931: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12932: prelink_cmds_CXX='tpldir=Template.dir~
12933: rm -rf $tpldir~
12934: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12935: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12936: old_archive_cmds_CXX='tpldir=Template.dir~
12937: rm -rf $tpldir~
12938: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12939: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12940: $RANLIB $oldlib'
12941: archive_cmds_CXX='tpldir=Template.dir~
12942: rm -rf $tpldir~
12943: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12944: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12945: archive_expsym_cmds_CXX='tpldir=Template.dir~
12946: rm -rf $tpldir~
12947: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12948: $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'
12949: ;;
12950: *) # Version 6 and above use weak symbols
12951: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12952: 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'
12953: ;;
12954: esac
12955:
12956: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12957: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12958: 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'
12959: ;;
12960: cxx*)
12961: # Compaq C++
12962: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963: 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'
12964:
12965: runpath_var=LD_RUN_PATH
12966: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12967: hardcode_libdir_separator_CXX=:
12968:
12969: # Commands to make compiler produce verbose output that lists
12970: # what "hidden" libraries, object files and flags are used when
12971: # linking a shared library.
12972: #
12973: # There doesn't appear to be a way to prevent this compiler from
12974: # explicitly linking system object files so we need to strip them
12975: # from the output so that they don't get included in the library
12976: # dependencies.
12977: 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'
12978: ;;
12979: xl* | mpixl* | bgxl*)
12980: # IBM XL 8.0 on PPC, with GNU ld
12981: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12982: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12983: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984: if test "x$supports_anon_versioning" = xyes; then
12985: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12986: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12987: echo "local: *; };" >> $output_objdir/$libname.ver~
12988: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12989: fi
12990: ;;
12991: *)
12992: case `$CC -V 2>&1 | sed 5q` in
12993: *Sun\ C*)
12994: # Sun C++ 5.9
12995: no_undefined_flag_CXX=' -zdefs'
12996: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12997: 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'
12998: hardcode_libdir_flag_spec_CXX='-R$libdir'
12999: 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'
13000: compiler_needs_object_CXX=yes
13001:
13002: # Not sure whether something based on
13003: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13004: # would be better.
13005: output_verbose_link_cmd='func_echo_all'
13006:
13007: # Archives containing C++ object files must be created using
13008: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13009: # necessary to make sure instantiated templates are included
13010: # in the archive.
13011: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13012: ;;
13013: esac
13014: ;;
13015: esac
13016: ;;
13017:
13018: lynxos*)
13019: # FIXME: insert proper C++ library support
13020: ld_shlibs_CXX=no
13021: ;;
13022:
13023: m88k*)
13024: # FIXME: insert proper C++ library support
13025: ld_shlibs_CXX=no
13026: ;;
13027:
13028: mvs*)
13029: case $cc_basename in
13030: cxx*)
13031: # FIXME: insert proper C++ library support
13032: ld_shlibs_CXX=no
13033: ;;
13034: *)
13035: # FIXME: insert proper C++ library support
13036: ld_shlibs_CXX=no
13037: ;;
13038: esac
13039: ;;
13040:
13041: netbsd*)
13042: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13043: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13044: wlarc=
13045: hardcode_libdir_flag_spec_CXX='-R$libdir'
13046: hardcode_direct_CXX=yes
13047: hardcode_shlibpath_var_CXX=no
13048: fi
13049: # Workaround some broken pre-1.5 toolchains
13050: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13051: ;;
13052:
13053: *nto* | *qnx*)
13054: ld_shlibs_CXX=yes
13055: ;;
13056:
13057: openbsd2*)
13058: # C++ shared libraries are fairly broken
13059: ld_shlibs_CXX=no
13060: ;;
13061:
13062: openbsd*)
13063: if test -f /usr/libexec/ld.so; then
13064: hardcode_direct_CXX=yes
13065: hardcode_shlibpath_var_CXX=no
13066: hardcode_direct_absolute_CXX=yes
13067: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13068: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13069: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13070: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13071: export_dynamic_flag_spec_CXX='${wl}-E'
13072: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13073: fi
13074: output_verbose_link_cmd=func_echo_all
13075: else
13076: ld_shlibs_CXX=no
13077: fi
13078: ;;
13079:
13080: osf3* | osf4* | osf5*)
13081: case $cc_basename in
13082: KCC*)
13083: # Kuck and Associates, Inc. (KAI) C++ Compiler
13084:
13085: # KCC will only create a shared library if the output file
13086: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13087: # to its proper name (with version) after linking.
13088: 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'
13089:
13090: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091: hardcode_libdir_separator_CXX=:
13092:
13093: # Archives containing C++ object files must be created using
13094: # the KAI C++ compiler.
13095: case $host in
13096: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13097: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13098: esac
13099: ;;
13100: RCC*)
13101: # Rational C++ 2.4.1
13102: # FIXME: insert proper C++ library support
13103: ld_shlibs_CXX=no
13104: ;;
13105: cxx*)
13106: case $host in
13107: osf3*)
13108: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13109: 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'
13110: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13111: ;;
13112: *)
13113: allow_undefined_flag_CXX=' -expect_unresolved \*'
13114: 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'
13115: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13116: echo "-hidden">> $lib.exp~
13117: $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~
13118: $RM $lib.exp'
13119: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13120: ;;
13121: esac
13122:
13123: hardcode_libdir_separator_CXX=:
13124:
13125: # Commands to make compiler produce verbose output that lists
13126: # what "hidden" libraries, object files and flags are used when
13127: # linking a shared library.
13128: #
13129: # There doesn't appear to be a way to prevent this compiler from
13130: # explicitly linking system object files so we need to strip them
13131: # from the output so that they don't get included in the library
13132: # dependencies.
13133: 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"'
13134: ;;
13135: *)
13136: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13137: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13138: case $host in
13139: osf3*)
13140: 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'
13141: ;;
13142: *)
13143: 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'
13144: ;;
13145: esac
13146:
13147: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13148: hardcode_libdir_separator_CXX=:
13149:
13150: # Commands to make compiler produce verbose output that lists
13151: # what "hidden" libraries, object files and flags are used when
13152: # linking a shared library.
13153: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13154:
13155: else
13156: # FIXME: insert proper C++ library support
13157: ld_shlibs_CXX=no
13158: fi
13159: ;;
13160: esac
13161: ;;
13162:
13163: psos*)
13164: # FIXME: insert proper C++ library support
13165: ld_shlibs_CXX=no
13166: ;;
13167:
13168: sunos4*)
13169: case $cc_basename in
13170: CC*)
13171: # Sun C++ 4.x
13172: # FIXME: insert proper C++ library support
13173: ld_shlibs_CXX=no
13174: ;;
13175: lcc*)
13176: # Lucid
13177: # FIXME: insert proper C++ library support
13178: ld_shlibs_CXX=no
13179: ;;
13180: *)
13181: # FIXME: insert proper C++ library support
13182: ld_shlibs_CXX=no
13183: ;;
13184: esac
13185: ;;
13186:
13187: solaris*)
13188: case $cc_basename in
13189: CC* | sunCC*)
13190: # Sun C++ 4.2, 5.x and Centerline C++
13191: archive_cmds_need_lc_CXX=yes
13192: no_undefined_flag_CXX=' -zdefs'
13193: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13194: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13195: $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'
13196:
13197: hardcode_libdir_flag_spec_CXX='-R$libdir'
13198: hardcode_shlibpath_var_CXX=no
13199: case $host_os in
13200: solaris2.[0-5] | solaris2.[0-5].*) ;;
13201: *)
13202: # The compiler driver will combine and reorder linker options,
13203: # but understands `-z linker_flag'.
13204: # Supported since Solaris 2.6 (maybe 2.5.1?)
13205: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13206: ;;
13207: esac
13208: link_all_deplibs_CXX=yes
13209:
13210: output_verbose_link_cmd='func_echo_all'
13211:
13212: # Archives containing C++ object files must be created using
13213: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13214: # necessary to make sure instantiated templates are included
13215: # in the archive.
13216: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13217: ;;
13218: gcx*)
13219: # Green Hills C++ Compiler
13220: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13221:
13222: # The C++ compiler must be used to create the archive.
13223: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13224: ;;
13225: *)
13226: # GNU C++ compiler with Solaris linker
13227: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13228: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13229: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13230: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13231: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13232: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13233:
13234: # Commands to make compiler produce verbose output that lists
13235: # what "hidden" libraries, object files and flags are used when
13236: # linking a shared library.
13237: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13238: else
13239: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13240: # platform.
13241: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13242: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13243: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13244:
13245: # Commands to make compiler produce verbose output that lists
13246: # what "hidden" libraries, object files and flags are used when
13247: # linking a shared library.
13248: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13249: fi
13250:
13251: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13252: case $host_os in
13253: solaris2.[0-5] | solaris2.[0-5].*) ;;
13254: *)
13255: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13256: ;;
13257: esac
13258: fi
13259: ;;
13260: esac
13261: ;;
13262:
13263: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13264: no_undefined_flag_CXX='${wl}-z,text'
13265: archive_cmds_need_lc_CXX=no
13266: hardcode_shlibpath_var_CXX=no
13267: runpath_var='LD_RUN_PATH'
13268:
13269: case $cc_basename in
13270: CC*)
13271: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13272: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13273: ;;
13274: *)
13275: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13276: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277: ;;
13278: esac
13279: ;;
13280:
13281: sysv5* | sco3.2v5* | sco5v6*)
13282: # Note: We can NOT use -z defs as we might desire, because we do not
13283: # link with -lc, and that would cause any symbols used from libc to
13284: # always be unresolved, which means just about no library would
13285: # ever link correctly. If we're not using GNU ld we use -z text
13286: # though, which does catch some bad symbols but isn't as heavy-handed
13287: # as -z defs.
13288: no_undefined_flag_CXX='${wl}-z,text'
13289: allow_undefined_flag_CXX='${wl}-z,nodefs'
13290: archive_cmds_need_lc_CXX=no
13291: hardcode_shlibpath_var_CXX=no
13292: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13293: hardcode_libdir_separator_CXX=':'
13294: link_all_deplibs_CXX=yes
13295: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13296: runpath_var='LD_RUN_PATH'
13297:
13298: case $cc_basename in
13299: CC*)
13300: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13303: '"$old_archive_cmds_CXX"
13304: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13305: '"$reload_cmds_CXX"
13306: ;;
13307: *)
13308: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13310: ;;
13311: esac
13312: ;;
13313:
13314: tandem*)
13315: case $cc_basename in
13316: NCC*)
13317: # NonStop-UX NCC 3.20
13318: # FIXME: insert proper C++ library support
13319: ld_shlibs_CXX=no
13320: ;;
13321: *)
13322: # FIXME: insert proper C++ library support
13323: ld_shlibs_CXX=no
13324: ;;
13325: esac
13326: ;;
13327:
13328: vxworks*)
13329: # FIXME: insert proper C++ library support
13330: ld_shlibs_CXX=no
13331: ;;
13332:
13333: *)
13334: # FIXME: insert proper C++ library support
13335: ld_shlibs_CXX=no
13336: ;;
13337: esac
13338:
13339: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13340: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13341: test "$ld_shlibs_CXX" = no && can_build_shared=no
13342:
13343: GCC_CXX="$GXX"
13344: LD_CXX="$LD"
13345:
13346: ## CAVEAT EMPTOR:
13347: ## There is no encapsulation within the following macros, do not change
13348: ## the running order or otherwise move them around unless you know exactly
13349: ## what you are doing...
13350: # Dependencies to place before and after the object being linked:
13351: predep_objects_CXX=
13352: postdep_objects_CXX=
13353: predeps_CXX=
13354: postdeps_CXX=
13355: compiler_lib_search_path_CXX=
13356:
13357: cat > conftest.$ac_ext <<_LT_EOF
13358: class Foo
13359: {
13360: public:
13361: Foo (void) { a = 0; }
13362: private:
13363: int a;
13364: };
13365: _LT_EOF
13366:
13367:
13368: _lt_libdeps_save_CFLAGS=$CFLAGS
13369: case "$CC $CFLAGS " in #(
13370: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13371: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13372: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13373: esac
13374:
13375: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13376: (eval $ac_compile) 2>&5
13377: ac_status=$?
13378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379: (exit $ac_status); }; then
13380: # Parse the compiler output and extract the necessary
13381: # objects, libraries and library flags.
13382:
13383: # Sentinel used to keep track of whether or not we are before
13384: # the conftest object file.
13385: pre_test_object_deps_done=no
13386:
13387: for p in `eval "$output_verbose_link_cmd"`; do
13388: case ${prev}${p} in
13389:
13390: -L* | -R* | -l*)
13391: # Some compilers place space between "-{L,R}" and the path.
13392: # Remove the space.
13393: if test $p = "-L" ||
13394: test $p = "-R"; then
13395: prev=$p
13396: continue
13397: fi
13398:
13399: # Expand the sysroot to ease extracting the directories later.
13400: if test -z "$prev"; then
13401: case $p in
13402: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13403: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13404: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13405: esac
13406: fi
13407: case $p in
13408: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13409: esac
13410: if test "$pre_test_object_deps_done" = no; then
13411: case ${prev} in
13412: -L | -R)
13413: # Internal compiler library paths should come after those
13414: # provided the user. The postdeps already come after the
13415: # user supplied libs so there is no need to process them.
13416: if test -z "$compiler_lib_search_path_CXX"; then
13417: compiler_lib_search_path_CXX="${prev}${p}"
13418: else
13419: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13420: fi
13421: ;;
13422: # The "-l" case would never come before the object being
13423: # linked, so don't bother handling this case.
13424: esac
13425: else
13426: if test -z "$postdeps_CXX"; then
13427: postdeps_CXX="${prev}${p}"
13428: else
13429: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13430: fi
13431: fi
13432: prev=
13433: ;;
13434:
13435: *.lto.$objext) ;; # Ignore GCC LTO objects
13436: *.$objext)
13437: # This assumes that the test object file only shows up
13438: # once in the compiler output.
13439: if test "$p" = "conftest.$objext"; then
13440: pre_test_object_deps_done=yes
13441: continue
13442: fi
13443:
13444: if test "$pre_test_object_deps_done" = no; then
13445: if test -z "$predep_objects_CXX"; then
13446: predep_objects_CXX="$p"
13447: else
13448: predep_objects_CXX="$predep_objects_CXX $p"
13449: fi
13450: else
13451: if test -z "$postdep_objects_CXX"; then
13452: postdep_objects_CXX="$p"
13453: else
13454: postdep_objects_CXX="$postdep_objects_CXX $p"
13455: fi
13456: fi
13457: ;;
13458:
13459: *) ;; # Ignore the rest.
13460:
13461: esac
13462: done
13463:
13464: # Clean up.
13465: rm -f a.out a.exe
13466: else
13467: echo "libtool.m4: error: problem compiling CXX test program"
13468: fi
13469:
13470: $RM -f confest.$objext
13471: CFLAGS=$_lt_libdeps_save_CFLAGS
13472:
13473: # PORTME: override above test on systems where it is broken
13474: case $host_os in
13475: interix[3-9]*)
13476: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13477: # hack all around it, let's just trust "g++" to DTRT.
13478: predep_objects_CXX=
13479: postdep_objects_CXX=
13480: postdeps_CXX=
13481: ;;
13482:
13483: linux*)
13484: case `$CC -V 2>&1 | sed 5q` in
13485: *Sun\ C*)
13486: # Sun C++ 5.9
13487:
13488: # The more standards-conforming stlport4 library is
13489: # incompatible with the Cstd library. Avoid specifying
13490: # it if it's in CXXFLAGS. Ignore libCrun as
13491: # -library=stlport4 depends on it.
13492: case " $CXX $CXXFLAGS " in
13493: *" -library=stlport4 "*)
13494: solaris_use_stlport4=yes
13495: ;;
13496: esac
13497:
13498: if test "$solaris_use_stlport4" != yes; then
13499: postdeps_CXX='-library=Cstd -library=Crun'
13500: fi
13501: ;;
13502: esac
13503: ;;
13504:
13505: solaris*)
13506: case $cc_basename in
13507: CC* | sunCC*)
13508: # The more standards-conforming stlport4 library is
13509: # incompatible with the Cstd library. Avoid specifying
13510: # it if it's in CXXFLAGS. Ignore libCrun as
13511: # -library=stlport4 depends on it.
13512: case " $CXX $CXXFLAGS " in
13513: *" -library=stlport4 "*)
13514: solaris_use_stlport4=yes
13515: ;;
13516: esac
13517:
13518: # Adding this requires a known-good setup of shared libraries for
13519: # Sun compiler versions before 5.6, else PIC objects from an old
13520: # archive will be linked into the output, leading to subtle bugs.
13521: if test "$solaris_use_stlport4" != yes; then
13522: postdeps_CXX='-library=Cstd -library=Crun'
13523: fi
13524: ;;
13525: esac
13526: ;;
13527: esac
13528:
13529:
13530: case " $postdeps_CXX " in
13531: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13532: esac
13533: compiler_lib_search_dirs_CXX=
13534: if test -n "${compiler_lib_search_path_CXX}"; then
13535: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13536: fi
13537:
13538:
13539:
13540:
13541:
13542:
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: lt_prog_compiler_wl_CXX=
13569: lt_prog_compiler_pic_CXX=
13570: lt_prog_compiler_static_CXX=
13571:
13572:
13573: # C++ specific cases for pic, static, wl, etc.
13574: if test "$GXX" = yes; then
13575: lt_prog_compiler_wl_CXX='-Wl,'
13576: lt_prog_compiler_static_CXX='-static'
13577:
13578: case $host_os in
13579: aix*)
13580: # All AIX code is PIC.
13581: if test "$host_cpu" = ia64; then
13582: # AIX 5 now supports IA64 processor
13583: lt_prog_compiler_static_CXX='-Bstatic'
13584: fi
13585: ;;
13586:
13587: amigaos*)
13588: case $host_cpu in
13589: powerpc)
13590: # see comment about AmigaOS4 .so support
13591: lt_prog_compiler_pic_CXX='-fPIC'
13592: ;;
13593: m68k)
13594: # FIXME: we need at least 68020 code to build shared libraries, but
13595: # adding the `-m68020' flag to GCC prevents building anything better,
13596: # like `-m68040'.
13597: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13598: ;;
13599: esac
13600: ;;
13601:
13602: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13603: # PIC is the default for these OSes.
13604: ;;
13605: mingw* | cygwin* | os2* | pw32* | cegcc*)
13606: # This hack is so that the source file can tell whether it is being
13607: # built for inclusion in a dll (and should export symbols for example).
13608: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13609: # (--disable-auto-import) libraries
13610: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13611: ;;
13612: darwin* | rhapsody*)
13613: # PIC is the default on this platform
13614: # Common symbols not allowed in MH_DYLIB files
13615: lt_prog_compiler_pic_CXX='-fno-common'
13616: ;;
13617: *djgpp*)
13618: # DJGPP does not support shared libraries at all
13619: lt_prog_compiler_pic_CXX=
13620: ;;
13621: haiku*)
13622: # PIC is the default for Haiku.
13623: # The "-static" flag exists, but is broken.
13624: lt_prog_compiler_static_CXX=
13625: ;;
13626: interix[3-9]*)
13627: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13628: # Instead, we relocate shared libraries at runtime.
13629: ;;
13630: sysv4*MP*)
13631: if test -d /usr/nec; then
13632: lt_prog_compiler_pic_CXX=-Kconform_pic
13633: fi
13634: ;;
13635: hpux*)
13636: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13637: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13638: # sets the default TLS model and affects inlining.
13639: case $host_cpu in
13640: hppa*64*)
13641: ;;
13642: *)
13643: lt_prog_compiler_pic_CXX='-fPIC'
13644: ;;
13645: esac
13646: ;;
13647: *qnx* | *nto*)
13648: # QNX uses GNU C++, but need to define -shared option too, otherwise
13649: # it will coredump.
13650: lt_prog_compiler_pic_CXX='-fPIC -shared'
13651: ;;
13652: *)
13653: lt_prog_compiler_pic_CXX='-fPIC'
13654: ;;
13655: esac
13656: else
13657: case $host_os in
13658: aix[4-9]*)
13659: # All AIX code is PIC.
13660: if test "$host_cpu" = ia64; then
13661: # AIX 5 now supports IA64 processor
13662: lt_prog_compiler_static_CXX='-Bstatic'
13663: else
13664: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13665: fi
13666: ;;
13667: chorus*)
13668: case $cc_basename in
13669: cxch68*)
13670: # Green Hills C++ Compiler
13671: # _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"
13672: ;;
13673: esac
13674: ;;
13675: mingw* | cygwin* | os2* | pw32* | cegcc*)
13676: # This hack is so that the source file can tell whether it is being
13677: # built for inclusion in a dll (and should export symbols for example).
13678: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13679: ;;
13680: dgux*)
13681: case $cc_basename in
13682: ec++*)
13683: lt_prog_compiler_pic_CXX='-KPIC'
13684: ;;
13685: ghcx*)
13686: # Green Hills C++ Compiler
13687: lt_prog_compiler_pic_CXX='-pic'
13688: ;;
13689: *)
13690: ;;
13691: esac
13692: ;;
13693: freebsd* | dragonfly*)
13694: # FreeBSD uses GNU C++
13695: ;;
13696: hpux9* | hpux10* | hpux11*)
13697: case $cc_basename in
13698: CC*)
13699: lt_prog_compiler_wl_CXX='-Wl,'
13700: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13701: if test "$host_cpu" != ia64; then
13702: lt_prog_compiler_pic_CXX='+Z'
13703: fi
13704: ;;
13705: aCC*)
13706: lt_prog_compiler_wl_CXX='-Wl,'
13707: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13708: case $host_cpu in
13709: hppa*64*|ia64*)
13710: # +Z the default
13711: ;;
13712: *)
13713: lt_prog_compiler_pic_CXX='+Z'
13714: ;;
13715: esac
13716: ;;
13717: *)
13718: ;;
13719: esac
13720: ;;
13721: interix*)
13722: # This is c89, which is MS Visual C++ (no shared libs)
13723: # Anyone wants to do a port?
13724: ;;
13725: irix5* | irix6* | nonstopux*)
13726: case $cc_basename in
13727: CC*)
13728: lt_prog_compiler_wl_CXX='-Wl,'
13729: lt_prog_compiler_static_CXX='-non_shared'
13730: # CC pic flag -KPIC is the default.
13731: ;;
13732: *)
13733: ;;
13734: esac
13735: ;;
13736: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13737: case $cc_basename in
13738: KCC*)
13739: # KAI C++ Compiler
13740: lt_prog_compiler_wl_CXX='--backend -Wl,'
13741: lt_prog_compiler_pic_CXX='-fPIC'
13742: ;;
13743: ecpc* )
13744: # old Intel C++ for x86_64 which still supported -KPIC.
13745: lt_prog_compiler_wl_CXX='-Wl,'
13746: lt_prog_compiler_pic_CXX='-KPIC'
13747: lt_prog_compiler_static_CXX='-static'
13748: ;;
13749: icpc* )
13750: # Intel C++, used to be incompatible with GCC.
13751: # ICC 10 doesn't accept -KPIC any more.
13752: lt_prog_compiler_wl_CXX='-Wl,'
13753: lt_prog_compiler_pic_CXX='-fPIC'
13754: lt_prog_compiler_static_CXX='-static'
13755: ;;
13756: pgCC* | pgcpp*)
13757: # Portland Group C++ compiler
13758: lt_prog_compiler_wl_CXX='-Wl,'
13759: lt_prog_compiler_pic_CXX='-fpic'
13760: lt_prog_compiler_static_CXX='-Bstatic'
13761: ;;
13762: cxx*)
13763: # Compaq C++
13764: # Make sure the PIC flag is empty. It appears that all Alpha
13765: # Linux and Compaq Tru64 Unix objects are PIC.
13766: lt_prog_compiler_pic_CXX=
13767: lt_prog_compiler_static_CXX='-non_shared'
13768: ;;
13769: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13770: # IBM XL 8.0, 9.0 on PPC and BlueGene
13771: lt_prog_compiler_wl_CXX='-Wl,'
13772: lt_prog_compiler_pic_CXX='-qpic'
13773: lt_prog_compiler_static_CXX='-qstaticlink'
13774: ;;
13775: *)
13776: case `$CC -V 2>&1 | sed 5q` in
13777: *Sun\ C*)
13778: # Sun C++ 5.9
13779: lt_prog_compiler_pic_CXX='-KPIC'
13780: lt_prog_compiler_static_CXX='-Bstatic'
13781: lt_prog_compiler_wl_CXX='-Qoption ld '
13782: ;;
13783: esac
13784: ;;
13785: esac
13786: ;;
13787: lynxos*)
13788: ;;
13789: m88k*)
13790: ;;
13791: mvs*)
13792: case $cc_basename in
13793: cxx*)
13794: lt_prog_compiler_pic_CXX='-W c,exportall'
13795: ;;
13796: *)
13797: ;;
13798: esac
13799: ;;
13800: netbsd*)
13801: ;;
13802: *qnx* | *nto*)
13803: # QNX uses GNU C++, but need to define -shared option too, otherwise
13804: # it will coredump.
13805: lt_prog_compiler_pic_CXX='-fPIC -shared'
13806: ;;
13807: osf3* | osf4* | osf5*)
13808: case $cc_basename in
13809: KCC*)
13810: lt_prog_compiler_wl_CXX='--backend -Wl,'
13811: ;;
13812: RCC*)
13813: # Rational C++ 2.4.1
13814: lt_prog_compiler_pic_CXX='-pic'
13815: ;;
13816: cxx*)
13817: # Digital/Compaq C++
13818: lt_prog_compiler_wl_CXX='-Wl,'
13819: # Make sure the PIC flag is empty. It appears that all Alpha
13820: # Linux and Compaq Tru64 Unix objects are PIC.
13821: lt_prog_compiler_pic_CXX=
13822: lt_prog_compiler_static_CXX='-non_shared'
13823: ;;
13824: *)
13825: ;;
13826: esac
13827: ;;
13828: psos*)
13829: ;;
13830: solaris*)
13831: case $cc_basename in
13832: CC* | sunCC*)
13833: # Sun C++ 4.2, 5.x and Centerline C++
13834: lt_prog_compiler_pic_CXX='-KPIC'
13835: lt_prog_compiler_static_CXX='-Bstatic'
13836: lt_prog_compiler_wl_CXX='-Qoption ld '
13837: ;;
13838: gcx*)
13839: # Green Hills C++ Compiler
13840: lt_prog_compiler_pic_CXX='-PIC'
13841: ;;
13842: *)
13843: ;;
13844: esac
13845: ;;
13846: sunos4*)
13847: case $cc_basename in
13848: CC*)
13849: # Sun C++ 4.x
13850: lt_prog_compiler_pic_CXX='-pic'
13851: lt_prog_compiler_static_CXX='-Bstatic'
13852: ;;
13853: lcc*)
13854: # Lucid
13855: lt_prog_compiler_pic_CXX='-pic'
13856: ;;
13857: *)
13858: ;;
13859: esac
13860: ;;
13861: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13862: case $cc_basename in
13863: CC*)
13864: lt_prog_compiler_wl_CXX='-Wl,'
13865: lt_prog_compiler_pic_CXX='-KPIC'
13866: lt_prog_compiler_static_CXX='-Bstatic'
13867: ;;
13868: esac
13869: ;;
13870: tandem*)
13871: case $cc_basename in
13872: NCC*)
13873: # NonStop-UX NCC 3.20
13874: lt_prog_compiler_pic_CXX='-KPIC'
13875: ;;
13876: *)
13877: ;;
13878: esac
13879: ;;
13880: vxworks*)
13881: ;;
13882: *)
13883: lt_prog_compiler_can_build_shared_CXX=no
13884: ;;
13885: esac
13886: fi
13887:
13888: case $host_os in
13889: # For platforms which do not support PIC, -DPIC is meaningless:
13890: *djgpp*)
13891: lt_prog_compiler_pic_CXX=
13892: ;;
13893: *)
13894: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13895: ;;
13896: esac
13897:
13898: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13899: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13900: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13901: echo $ECHO_N "(cached) $ECHO_C" >&6
13902: else
13903: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13904: fi
13905: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13906: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13907: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13908:
13909: #
13910: # Check to make sure the PIC flag actually works.
13911: #
13912: if test -n "$lt_prog_compiler_pic_CXX"; then
13913: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13914: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13915: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13916: echo $ECHO_N "(cached) $ECHO_C" >&6
13917: else
13918: lt_cv_prog_compiler_pic_works_CXX=no
13919: ac_outfile=conftest.$ac_objext
13920: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13921: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13922: # Insert the option either (1) after the last *FLAGS variable, or
13923: # (2) before a word containing "conftest.", or (3) at the end.
13924: # Note that $ac_compile itself does not contain backslashes and begins
13925: # with a dollar sign (not a hyphen), so the echo should work correctly.
13926: # The option is referenced via a variable to avoid confusing sed.
13927: lt_compile=`echo "$ac_compile" | $SED \
13928: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13929: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13930: -e 's:$: $lt_compiler_flag:'`
13931: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13932: (eval "$lt_compile" 2>conftest.err)
13933: ac_status=$?
13934: cat conftest.err >&5
13935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936: if (exit $ac_status) && test -s "$ac_outfile"; then
13937: # The compiler can only warn and ignore the option if not recognized
13938: # So say no if there are warnings other than the usual output.
13939: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13940: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13941: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13942: lt_cv_prog_compiler_pic_works_CXX=yes
13943: fi
13944: fi
13945: $RM conftest*
13946:
13947: fi
13948: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13949: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13950:
13951: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13952: case $lt_prog_compiler_pic_CXX in
13953: "" | " "*) ;;
13954: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13955: esac
13956: else
13957: lt_prog_compiler_pic_CXX=
13958: lt_prog_compiler_can_build_shared_CXX=no
13959: fi
13960:
13961: fi
13962:
13963:
13964:
13965:
13966:
13967: #
13968: # Check to make sure the static flag actually works.
13969: #
13970: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13971: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13972: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13973: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13974: echo $ECHO_N "(cached) $ECHO_C" >&6
13975: else
13976: lt_cv_prog_compiler_static_works_CXX=no
13977: save_LDFLAGS="$LDFLAGS"
13978: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13979: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13980: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13981: # The linker can only warn and ignore the option if not recognized
13982: # So say no if there are warnings
13983: if test -s conftest.err; then
13984: # Append any errors to the config.log.
13985: cat conftest.err 1>&5
13986: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13987: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13988: if diff conftest.exp conftest.er2 >/dev/null; then
13989: lt_cv_prog_compiler_static_works_CXX=yes
13990: fi
13991: else
13992: lt_cv_prog_compiler_static_works_CXX=yes
13993: fi
13994: fi
13995: $RM -r conftest*
13996: LDFLAGS="$save_LDFLAGS"
13997:
13998: fi
13999: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14000: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14001:
14002: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14003: :
14004: else
14005: lt_prog_compiler_static_CXX=
14006: fi
14007:
14008:
14009:
14010:
14011: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14012: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14013: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14014: echo $ECHO_N "(cached) $ECHO_C" >&6
14015: else
14016: lt_cv_prog_compiler_c_o_CXX=no
14017: $RM -r conftest 2>/dev/null
14018: mkdir conftest
14019: cd conftest
14020: mkdir out
14021: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14022:
14023: lt_compiler_flag="-o out/conftest2.$ac_objext"
14024: # Insert the option either (1) after the last *FLAGS variable, or
14025: # (2) before a word containing "conftest.", or (3) at the end.
14026: # Note that $ac_compile itself does not contain backslashes and begins
14027: # with a dollar sign (not a hyphen), so the echo should work correctly.
14028: lt_compile=`echo "$ac_compile" | $SED \
14029: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14030: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14031: -e 's:$: $lt_compiler_flag:'`
14032: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14033: (eval "$lt_compile" 2>out/conftest.err)
14034: ac_status=$?
14035: cat out/conftest.err >&5
14036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14038: then
14039: # The compiler can only warn and ignore the option if not recognized
14040: # So say no if there are warnings
14041: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14042: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14043: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14044: lt_cv_prog_compiler_c_o_CXX=yes
14045: fi
14046: fi
14047: chmod u+w . 2>&5
14048: $RM conftest*
14049: # SGI C++ compiler will create directory out/ii_files/ for
14050: # template instantiation
14051: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14052: $RM out/* && rmdir out
14053: cd ..
14054: $RM -r conftest
14055: $RM conftest*
14056:
14057: fi
14058: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14059: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14060:
14061:
14062:
14063: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14064: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14065: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14066: echo $ECHO_N "(cached) $ECHO_C" >&6
14067: else
14068: lt_cv_prog_compiler_c_o_CXX=no
14069: $RM -r conftest 2>/dev/null
14070: mkdir conftest
14071: cd conftest
14072: mkdir out
14073: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074:
14075: lt_compiler_flag="-o out/conftest2.$ac_objext"
14076: # Insert the option either (1) after the last *FLAGS variable, or
14077: # (2) before a word containing "conftest.", or (3) at the end.
14078: # Note that $ac_compile itself does not contain backslashes and begins
14079: # with a dollar sign (not a hyphen), so the echo should work correctly.
14080: lt_compile=`echo "$ac_compile" | $SED \
14081: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083: -e 's:$: $lt_compiler_flag:'`
14084: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14085: (eval "$lt_compile" 2>out/conftest.err)
14086: ac_status=$?
14087: cat out/conftest.err >&5
14088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14090: then
14091: # The compiler can only warn and ignore the option if not recognized
14092: # So say no if there are warnings
14093: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14094: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14095: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14096: lt_cv_prog_compiler_c_o_CXX=yes
14097: fi
14098: fi
14099: chmod u+w . 2>&5
14100: $RM conftest*
14101: # SGI C++ compiler will create directory out/ii_files/ for
14102: # template instantiation
14103: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14104: $RM out/* && rmdir out
14105: cd ..
14106: $RM -r conftest
14107: $RM conftest*
14108:
14109: fi
14110: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14111: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14112:
14113:
14114:
14115:
14116: hard_links="nottested"
14117: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14118: # do not overwrite the value of need_locks provided by the user
14119: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14120: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14121: hard_links=yes
14122: $RM conftest*
14123: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14124: touch conftest.a
14125: ln conftest.a conftest.b 2>&5 || hard_links=no
14126: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14127: echo "$as_me:$LINENO: result: $hard_links" >&5
14128: echo "${ECHO_T}$hard_links" >&6
14129: if test "$hard_links" = no; then
14130: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14131: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14132: need_locks=warn
14133: fi
14134: else
14135: need_locks=no
14136: fi
14137:
14138:
14139:
14140: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14141: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14142:
14143: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14144: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14145: case $host_os in
14146: aix[4-9]*)
14147: # If we're using GNU nm, then we don't want the "-C" option.
14148: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14149: # Also, AIX nm treats weak defined symbols like other global defined
14150: # symbols, whereas GNU nm marks them as "W".
14151: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14152: 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'
14153: else
14154: 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'
14155: fi
14156: ;;
14157: pw32*)
14158: export_symbols_cmds_CXX="$ltdll_cmds"
14159: ;;
14160: cygwin* | mingw* | cegcc*)
14161: case $cc_basename in
14162: cl*)
14163: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14164: ;;
14165: *)
14166: 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'
14167: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14168: ;;
14169: esac
14170: ;;
14171: *)
14172: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14173: ;;
14174: esac
14175:
14176: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14177: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14178: test "$ld_shlibs_CXX" = no && can_build_shared=no
14179:
14180: with_gnu_ld_CXX=$with_gnu_ld
14181:
14182:
14183:
14184:
14185:
14186:
14187: #
14188: # Do we need to explicitly link libc?
14189: #
14190: case "x$archive_cmds_need_lc_CXX" in
14191: x|xyes)
14192: # Assume -lc should be added
14193: archive_cmds_need_lc_CXX=yes
14194:
14195: if test "$enable_shared" = yes && test "$GCC" = yes; then
14196: case $archive_cmds_CXX in
14197: *'~'*)
14198: # FIXME: we may have to deal with multi-command sequences.
14199: ;;
14200: '$CC '*)
14201: # Test whether the compiler implicitly links with -lc since on some
14202: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14203: # to ld, don't add -lc before -lgcc.
14204: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14205: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14206: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14207: echo $ECHO_N "(cached) $ECHO_C" >&6
14208: else
14209: $RM conftest*
14210: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14211:
14212: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213: (eval $ac_compile) 2>&5
14214: ac_status=$?
14215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216: (exit $ac_status); } 2>conftest.err; then
14217: soname=conftest
14218: lib=conftest
14219: libobjs=conftest.$ac_objext
14220: deplibs=
14221: wl=$lt_prog_compiler_wl_CXX
14222: pic_flag=$lt_prog_compiler_pic_CXX
14223: compiler_flags=-v
14224: linker_flags=-v
14225: verstring=
14226: output_objdir=.
14227: libname=conftest
14228: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14229: allow_undefined_flag_CXX=
14230: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14231: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14232: ac_status=$?
14233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234: (exit $ac_status); }
14235: then
14236: lt_cv_archive_cmds_need_lc_CXX=no
14237: else
14238: lt_cv_archive_cmds_need_lc_CXX=yes
14239: fi
14240: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14241: else
14242: cat conftest.err 1>&5
14243: fi
14244: $RM conftest*
14245:
14246: fi
14247: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14248: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14249: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14250: ;;
14251: esac
14252: fi
14253: ;;
14254: esac
14255:
14256:
14257:
14258:
14259:
14260:
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: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14318: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14319:
14320: library_names_spec=
14321: libname_spec='lib$name'
14322: soname_spec=
14323: shrext_cmds=".so"
14324: postinstall_cmds=
14325: postuninstall_cmds=
14326: finish_cmds=
14327: finish_eval=
14328: shlibpath_var=
14329: shlibpath_overrides_runpath=unknown
14330: version_type=none
14331: dynamic_linker="$host_os ld.so"
14332: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14333: need_lib_prefix=unknown
14334: hardcode_into_libs=no
14335:
14336: # when you set need_version to no, make sure it does not cause -set_version
14337: # flags to be left without arguments
14338: need_version=unknown
14339:
14340: case $host_os in
14341: aix3*)
14342: version_type=linux # correct to gnu/linux during the next big refactor
14343: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14344: shlibpath_var=LIBPATH
14345:
14346: # AIX 3 has no versioning support, so we append a major version to the name.
14347: soname_spec='${libname}${release}${shared_ext}$major'
14348: ;;
14349:
14350: aix[4-9]*)
14351: version_type=linux # correct to gnu/linux during the next big refactor
14352: need_lib_prefix=no
14353: need_version=no
14354: hardcode_into_libs=yes
14355: if test "$host_cpu" = ia64; then
14356: # AIX 5 supports IA64
14357: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14358: shlibpath_var=LD_LIBRARY_PATH
14359: else
14360: # With GCC up to 2.95.x, collect2 would create an import file
14361: # for dependence libraries. The import file would start with
14362: # the line `#! .'. This would cause the generated library to
14363: # depend on `.', always an invalid library. This was fixed in
14364: # development snapshots of GCC prior to 3.0.
14365: case $host_os in
14366: aix4 | aix4.[01] | aix4.[01].*)
14367: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14368: echo ' yes '
14369: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14370: :
14371: else
14372: can_build_shared=no
14373: fi
14374: ;;
14375: esac
14376: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14377: # soname into executable. Probably we can add versioning support to
14378: # collect2, so additional links can be useful in future.
14379: if test "$aix_use_runtimelinking" = yes; then
14380: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14381: # instead of lib<name>.a to let people know that these are not
14382: # typical AIX shared libraries.
14383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384: else
14385: # We preserve .a as extension for shared libraries through AIX4.2
14386: # and later when we are not doing run time linking.
14387: library_names_spec='${libname}${release}.a $libname.a'
14388: soname_spec='${libname}${release}${shared_ext}$major'
14389: fi
14390: shlibpath_var=LIBPATH
14391: fi
14392: ;;
14393:
14394: amigaos*)
14395: case $host_cpu in
14396: powerpc)
14397: # Since July 2007 AmigaOS4 officially supports .so libraries.
14398: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14399: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400: ;;
14401: m68k)
14402: library_names_spec='$libname.ixlibrary $libname.a'
14403: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14404: 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'
14405: ;;
14406: esac
14407: ;;
14408:
14409: beos*)
14410: library_names_spec='${libname}${shared_ext}'
14411: dynamic_linker="$host_os ld.so"
14412: shlibpath_var=LIBRARY_PATH
14413: ;;
14414:
14415: bsdi[45]*)
14416: version_type=linux # correct to gnu/linux during the next big refactor
14417: need_version=no
14418: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419: soname_spec='${libname}${release}${shared_ext}$major'
14420: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14421: shlibpath_var=LD_LIBRARY_PATH
14422: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14423: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14424: # the default ld.so.conf also contains /usr/contrib/lib and
14425: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14426: # libtool to hard-code these into programs
14427: ;;
14428:
14429: cygwin* | mingw* | pw32* | cegcc*)
14430: version_type=windows
14431: shrext_cmds=".dll"
14432: need_version=no
14433: need_lib_prefix=no
14434:
14435: case $GCC,$cc_basename in
14436: yes,*)
14437: # gcc
14438: library_names_spec='$libname.dll.a'
14439: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14440: postinstall_cmds='base_file=`basename \${file}`~
14441: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14442: dldir=$destdir/`dirname \$dlpath`~
14443: test -d \$dldir || mkdir -p \$dldir~
14444: $install_prog $dir/$dlname \$dldir/$dlname~
14445: chmod a+x \$dldir/$dlname~
14446: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14447: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14448: fi'
14449: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14450: dlpath=$dir/\$dldll~
14451: $RM \$dlpath'
14452: shlibpath_overrides_runpath=yes
14453:
14454: case $host_os in
14455: cygwin*)
14456: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14457: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14458:
14459: ;;
14460: mingw* | cegcc*)
14461: # MinGW DLLs use traditional 'lib' prefix
14462: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14463: ;;
14464: pw32*)
14465: # pw32 DLLs use 'pw' prefix rather than 'lib'
14466: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14467: ;;
14468: esac
14469: dynamic_linker='Win32 ld.exe'
14470: ;;
14471:
14472: *,cl*)
14473: # Native MSVC
14474: libname_spec='$name'
14475: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476: library_names_spec='${libname}.dll.lib'
14477:
14478: case $build_os in
14479: mingw*)
14480: sys_lib_search_path_spec=
14481: lt_save_ifs=$IFS
14482: IFS=';'
14483: for lt_path in $LIB
14484: do
14485: IFS=$lt_save_ifs
14486: # Let DOS variable expansion print the short 8.3 style file name.
14487: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14488: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14489: done
14490: IFS=$lt_save_ifs
14491: # Convert to MSYS style.
14492: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14493: ;;
14494: cygwin*)
14495: # Convert to unix form, then to dos form, then back to unix form
14496: # but this time dos style (no spaces!) so that the unix form looks
14497: # like /cygdrive/c/PROGRA~1:/cygdr...
14498: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14499: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14500: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14501: ;;
14502: *)
14503: sys_lib_search_path_spec="$LIB"
14504: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14505: # It is most probably a Windows format PATH.
14506: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14507: else
14508: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14509: fi
14510: # FIXME: find the short name or the path components, as spaces are
14511: # common. (e.g. "Program Files" -> "PROGRA~1")
14512: ;;
14513: esac
14514:
14515: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14516: postinstall_cmds='base_file=`basename \${file}`~
14517: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14518: dldir=$destdir/`dirname \$dlpath`~
14519: test -d \$dldir || mkdir -p \$dldir~
14520: $install_prog $dir/$dlname \$dldir/$dlname'
14521: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14522: dlpath=$dir/\$dldll~
14523: $RM \$dlpath'
14524: shlibpath_overrides_runpath=yes
14525: dynamic_linker='Win32 link.exe'
14526: ;;
14527:
14528: *)
14529: # Assume MSVC wrapper
14530: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14531: dynamic_linker='Win32 ld.exe'
14532: ;;
14533: esac
14534: # FIXME: first we should search . and the directory the executable is in
14535: shlibpath_var=PATH
14536: ;;
14537:
14538: darwin* | rhapsody*)
14539: dynamic_linker="$host_os dyld"
14540: version_type=darwin
14541: need_lib_prefix=no
14542: need_version=no
14543: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14544: soname_spec='${libname}${release}${major}$shared_ext'
14545: shlibpath_overrides_runpath=yes
14546: shlibpath_var=DYLD_LIBRARY_PATH
14547: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14548:
14549: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14550: ;;
14551:
14552: dgux*)
14553: version_type=linux # correct to gnu/linux during the next big refactor
14554: need_lib_prefix=no
14555: need_version=no
14556: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14557: soname_spec='${libname}${release}${shared_ext}$major'
14558: shlibpath_var=LD_LIBRARY_PATH
14559: ;;
14560:
14561: freebsd* | dragonfly*)
14562: # DragonFly does not have aout. When/if they implement a new
14563: # versioning mechanism, adjust this.
14564: if test -x /usr/bin/objformat; then
14565: objformat=`/usr/bin/objformat`
14566: else
14567: case $host_os in
14568: freebsd[23].*) objformat=aout ;;
14569: *) objformat=elf ;;
14570: esac
14571: fi
14572: version_type=freebsd-$objformat
14573: case $version_type in
14574: freebsd-elf*)
14575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14576: need_version=no
14577: need_lib_prefix=no
14578: ;;
14579: freebsd-*)
14580: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14581: need_version=yes
14582: ;;
14583: esac
14584: shlibpath_var=LD_LIBRARY_PATH
14585: case $host_os in
14586: freebsd2.*)
14587: shlibpath_overrides_runpath=yes
14588: ;;
14589: freebsd3.[01]* | freebsdelf3.[01]*)
14590: shlibpath_overrides_runpath=yes
14591: hardcode_into_libs=yes
14592: ;;
14593: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14594: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14595: shlibpath_overrides_runpath=no
14596: hardcode_into_libs=yes
14597: ;;
14598: *) # from 4.6 on, and DragonFly
14599: shlibpath_overrides_runpath=yes
14600: hardcode_into_libs=yes
14601: ;;
14602: esac
14603: ;;
14604:
14605: gnu*)
14606: version_type=linux # correct to gnu/linux during the next big refactor
14607: need_lib_prefix=no
14608: need_version=no
14609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14610: soname_spec='${libname}${release}${shared_ext}$major'
14611: shlibpath_var=LD_LIBRARY_PATH
14612: shlibpath_overrides_runpath=no
14613: hardcode_into_libs=yes
14614: ;;
14615:
14616: haiku*)
14617: version_type=linux # correct to gnu/linux during the next big refactor
14618: need_lib_prefix=no
14619: need_version=no
14620: dynamic_linker="$host_os runtime_loader"
14621: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622: soname_spec='${libname}${release}${shared_ext}$major'
14623: shlibpath_var=LIBRARY_PATH
14624: shlibpath_overrides_runpath=yes
14625: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14626: hardcode_into_libs=yes
14627: ;;
14628:
14629: hpux9* | hpux10* | hpux11*)
14630: # Give a soname corresponding to the major version so that dld.sl refuses to
14631: # link against other versions.
14632: version_type=sunos
14633: need_lib_prefix=no
14634: need_version=no
14635: case $host_cpu in
14636: ia64*)
14637: shrext_cmds='.so'
14638: hardcode_into_libs=yes
14639: dynamic_linker="$host_os dld.so"
14640: shlibpath_var=LD_LIBRARY_PATH
14641: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643: soname_spec='${libname}${release}${shared_ext}$major'
14644: if test "X$HPUX_IA64_MODE" = X32; then
14645: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14646: else
14647: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14648: fi
14649: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14650: ;;
14651: hppa*64*)
14652: shrext_cmds='.sl'
14653: hardcode_into_libs=yes
14654: dynamic_linker="$host_os dld.sl"
14655: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14656: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14657: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658: soname_spec='${libname}${release}${shared_ext}$major'
14659: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14660: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14661: ;;
14662: *)
14663: shrext_cmds='.sl'
14664: dynamic_linker="$host_os dld.sl"
14665: shlibpath_var=SHLIB_PATH
14666: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14667: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668: soname_spec='${libname}${release}${shared_ext}$major'
14669: ;;
14670: esac
14671: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14672: postinstall_cmds='chmod 555 $lib'
14673: # or fails outright, so override atomically:
14674: install_override_mode=555
14675: ;;
14676:
14677: interix[3-9]*)
14678: version_type=linux # correct to gnu/linux during the next big refactor
14679: need_lib_prefix=no
14680: need_version=no
14681: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14682: soname_spec='${libname}${release}${shared_ext}$major'
14683: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14684: shlibpath_var=LD_LIBRARY_PATH
14685: shlibpath_overrides_runpath=no
14686: hardcode_into_libs=yes
14687: ;;
14688:
14689: irix5* | irix6* | nonstopux*)
14690: case $host_os in
14691: nonstopux*) version_type=nonstopux ;;
14692: *)
14693: if test "$lt_cv_prog_gnu_ld" = yes; then
14694: version_type=linux # correct to gnu/linux during the next big refactor
14695: else
14696: version_type=irix
14697: fi ;;
14698: esac
14699: need_lib_prefix=no
14700: need_version=no
14701: soname_spec='${libname}${release}${shared_ext}$major'
14702: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14703: case $host_os in
14704: irix5* | nonstopux*)
14705: libsuff= shlibsuff=
14706: ;;
14707: *)
14708: case $LD in # libtool.m4 will add one of these switches to LD
14709: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14710: libsuff= shlibsuff= libmagic=32-bit;;
14711: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14712: libsuff=32 shlibsuff=N32 libmagic=N32;;
14713: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14714: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14715: *) libsuff= shlibsuff= libmagic=never-match;;
14716: esac
14717: ;;
14718: esac
14719: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14720: shlibpath_overrides_runpath=no
14721: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14722: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14723: hardcode_into_libs=yes
14724: ;;
14725:
14726: # No shared lib support for Linux oldld, aout, or coff.
14727: linux*oldld* | linux*aout* | linux*coff*)
14728: dynamic_linker=no
14729: ;;
14730:
14731: # This must be glibc/ELF.
14732: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14733: version_type=linux # correct to gnu/linux during the next big refactor
14734: need_lib_prefix=no
14735: need_version=no
14736: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737: soname_spec='${libname}${release}${shared_ext}$major'
14738: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14739: shlibpath_var=LD_LIBRARY_PATH
14740: shlibpath_overrides_runpath=no
14741:
14742: # Some binutils ld are patched to set DT_RUNPATH
14743: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14744: echo $ECHO_N "(cached) $ECHO_C" >&6
14745: else
14746: lt_cv_shlibpath_overrides_runpath=no
14747: save_LDFLAGS=$LDFLAGS
14748: save_libdir=$libdir
14749: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14750: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14751: cat >conftest.$ac_ext <<_ACEOF
14752: /* confdefs.h. */
14753: _ACEOF
14754: cat confdefs.h >>conftest.$ac_ext
14755: cat >>conftest.$ac_ext <<_ACEOF
14756: /* end confdefs.h. */
14757:
14758: int
14759: main ()
14760: {
14761:
14762: ;
14763: return 0;
14764: }
14765: _ACEOF
14766: rm -f conftest.$ac_objext conftest$ac_exeext
14767: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768: (eval $ac_link) 2>conftest.er1
14769: ac_status=$?
14770: grep -v '^ *+' conftest.er1 >conftest.err
14771: rm -f conftest.er1
14772: cat conftest.err >&5
14773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774: (exit $ac_status); } &&
14775: { ac_try='test -z "$ac_cxx_werror_flag"
14776: || test ! -s conftest.err'
14777: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778: (eval $ac_try) 2>&5
14779: ac_status=$?
14780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781: (exit $ac_status); }; } &&
14782: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14788: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14789: lt_cv_shlibpath_overrides_runpath=yes
14790: fi
14791:
14792: else
14793: echo "$as_me: failed program was:" >&5
14794: sed 's/^/| /' conftest.$ac_ext >&5
14795:
14796: fi
14797: rm -f conftest.err conftest.$ac_objext \
14798: conftest$ac_exeext conftest.$ac_ext
14799: LDFLAGS=$save_LDFLAGS
14800: libdir=$save_libdir
14801:
14802: fi
14803:
14804: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14805:
14806: # This implies no fast_install, which is unacceptable.
14807: # Some rework will be needed to allow for fast_install
14808: # before this can be enabled.
14809: hardcode_into_libs=yes
14810:
14811: # Append ld.so.conf contents to the search path
14812: if test -f /etc/ld.so.conf; then
14813: 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' ' '`
14814: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14815: fi
14816:
14817: # We used to test for /lib/ld.so.1 and disable shared libraries on
14818: # powerpc, because MkLinux only supported shared libraries with the
14819: # GNU dynamic linker. Since this was broken with cross compilers,
14820: # most powerpc-linux boxes support dynamic linking these days and
14821: # people can always --disable-shared, the test was removed, and we
14822: # assume the GNU/Linux dynamic linker is in use.
14823: dynamic_linker='GNU/Linux ld.so'
14824: ;;
14825:
14826: netbsd*)
14827: version_type=sunos
14828: need_lib_prefix=no
14829: need_version=no
14830: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14831: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14832: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14833: dynamic_linker='NetBSD (a.out) ld.so'
14834: else
14835: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836: soname_spec='${libname}${release}${shared_ext}$major'
14837: dynamic_linker='NetBSD ld.elf_so'
14838: fi
14839: shlibpath_var=LD_LIBRARY_PATH
14840: shlibpath_overrides_runpath=yes
14841: hardcode_into_libs=yes
14842: ;;
14843:
14844: newsos6)
14845: version_type=linux # correct to gnu/linux during the next big refactor
14846: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847: shlibpath_var=LD_LIBRARY_PATH
14848: shlibpath_overrides_runpath=yes
14849: ;;
14850:
14851: *nto* | *qnx*)
14852: version_type=qnx
14853: need_lib_prefix=no
14854: need_version=no
14855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856: soname_spec='${libname}${release}${shared_ext}$major'
14857: shlibpath_var=LD_LIBRARY_PATH
14858: shlibpath_overrides_runpath=no
14859: hardcode_into_libs=yes
14860: dynamic_linker='ldqnx.so'
14861: ;;
14862:
14863: openbsd*)
14864: version_type=sunos
14865: sys_lib_dlsearch_path_spec="/usr/lib"
14866: need_lib_prefix=no
14867: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14868: case $host_os in
14869: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14870: *) need_version=no ;;
14871: esac
14872: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14873: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14874: shlibpath_var=LD_LIBRARY_PATH
14875: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14876: case $host_os in
14877: openbsd2.[89] | openbsd2.[89].*)
14878: shlibpath_overrides_runpath=no
14879: ;;
14880: *)
14881: shlibpath_overrides_runpath=yes
14882: ;;
14883: esac
14884: else
14885: shlibpath_overrides_runpath=yes
14886: fi
14887: ;;
14888:
14889: os2*)
14890: libname_spec='$name'
14891: shrext_cmds=".dll"
14892: need_lib_prefix=no
14893: library_names_spec='$libname${shared_ext} $libname.a'
14894: dynamic_linker='OS/2 ld.exe'
14895: shlibpath_var=LIBPATH
14896: ;;
14897:
14898: osf3* | osf4* | osf5*)
14899: version_type=osf
14900: need_lib_prefix=no
14901: need_version=no
14902: soname_spec='${libname}${release}${shared_ext}$major'
14903: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904: shlibpath_var=LD_LIBRARY_PATH
14905: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14906: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14907: ;;
14908:
14909: rdos*)
14910: dynamic_linker=no
14911: ;;
14912:
14913: solaris*)
14914: version_type=linux # correct to gnu/linux during the next big refactor
14915: need_lib_prefix=no
14916: need_version=no
14917: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918: soname_spec='${libname}${release}${shared_ext}$major'
14919: shlibpath_var=LD_LIBRARY_PATH
14920: shlibpath_overrides_runpath=yes
14921: hardcode_into_libs=yes
14922: # ldd complains unless libraries are executable
14923: postinstall_cmds='chmod +x $lib'
14924: ;;
14925:
14926: sunos4*)
14927: version_type=sunos
14928: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14929: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14930: shlibpath_var=LD_LIBRARY_PATH
14931: shlibpath_overrides_runpath=yes
14932: if test "$with_gnu_ld" = yes; then
14933: need_lib_prefix=no
14934: fi
14935: need_version=yes
14936: ;;
14937:
14938: sysv4 | sysv4.3*)
14939: version_type=linux # correct to gnu/linux during the next big refactor
14940: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941: soname_spec='${libname}${release}${shared_ext}$major'
14942: shlibpath_var=LD_LIBRARY_PATH
14943: case $host_vendor in
14944: sni)
14945: shlibpath_overrides_runpath=no
14946: need_lib_prefix=no
14947: runpath_var=LD_RUN_PATH
14948: ;;
14949: siemens)
14950: need_lib_prefix=no
14951: ;;
14952: motorola)
14953: need_lib_prefix=no
14954: need_version=no
14955: shlibpath_overrides_runpath=no
14956: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14957: ;;
14958: esac
14959: ;;
14960:
14961: sysv4*MP*)
14962: if test -d /usr/nec ;then
14963: version_type=linux # correct to gnu/linux during the next big refactor
14964: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14965: soname_spec='$libname${shared_ext}.$major'
14966: shlibpath_var=LD_LIBRARY_PATH
14967: fi
14968: ;;
14969:
14970: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14971: version_type=freebsd-elf
14972: need_lib_prefix=no
14973: need_version=no
14974: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14975: soname_spec='${libname}${release}${shared_ext}$major'
14976: shlibpath_var=LD_LIBRARY_PATH
14977: shlibpath_overrides_runpath=yes
14978: hardcode_into_libs=yes
14979: if test "$with_gnu_ld" = yes; then
14980: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14981: else
14982: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14983: case $host_os in
14984: sco3.2v5*)
14985: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14986: ;;
14987: esac
14988: fi
14989: sys_lib_dlsearch_path_spec='/usr/lib'
14990: ;;
14991:
14992: tpf*)
14993: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14994: version_type=linux # correct to gnu/linux during the next big refactor
14995: need_lib_prefix=no
14996: need_version=no
14997: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998: shlibpath_var=LD_LIBRARY_PATH
14999: shlibpath_overrides_runpath=no
15000: hardcode_into_libs=yes
15001: ;;
15002:
15003: uts4*)
15004: version_type=linux # correct to gnu/linux during the next big refactor
15005: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006: soname_spec='${libname}${release}${shared_ext}$major'
15007: shlibpath_var=LD_LIBRARY_PATH
15008: ;;
15009:
15010: *)
15011: dynamic_linker=no
15012: ;;
15013: esac
15014: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15015: echo "${ECHO_T}$dynamic_linker" >&6
15016: test "$dynamic_linker" = no && can_build_shared=no
15017:
15018: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15019: if test "$GCC" = yes; then
15020: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15021: fi
15022:
15023: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15024: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15025: fi
15026: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15027: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15028: fi
15029:
15030:
15031:
15032:
15033:
15034:
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: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15068: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15069: hardcode_action_CXX=
15070: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15071: test -n "$runpath_var_CXX" ||
15072: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15073:
15074: # We can hardcode non-existent directories.
15075: if test "$hardcode_direct_CXX" != no &&
15076: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15077: # have to relink, otherwise we might link with an installed library
15078: # when we should be linking with a yet-to-be-installed one
15079: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15080: test "$hardcode_minus_L_CXX" != no; then
15081: # Linking always hardcodes the temporary library directory.
15082: hardcode_action_CXX=relink
15083: else
15084: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15085: hardcode_action_CXX=immediate
15086: fi
15087: else
15088: # We cannot hardcode anything, or else we can only hardcode existing
15089: # directories.
15090: hardcode_action_CXX=unsupported
15091: fi
15092: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15093: echo "${ECHO_T}$hardcode_action_CXX" >&6
15094:
15095: if test "$hardcode_action_CXX" = relink ||
15096: test "$inherit_rpath_CXX" = yes; then
15097: # Fast installation is not supported
15098: enable_fast_install=no
15099: elif test "$shlibpath_overrides_runpath" = yes ||
15100: test "$enable_shared" = no; then
15101: # Fast installation is not necessary
15102: enable_fast_install=needless
15103: fi
15104:
15105:
15106:
15107:
15108:
15109:
15110:
15111: fi # test -n "$compiler"
15112:
15113: CC=$lt_save_CC
15114: CFLAGS=$lt_save_CFLAGS
15115: LDCXX=$LD
15116: LD=$lt_save_LD
15117: GCC=$lt_save_GCC
15118: with_gnu_ld=$lt_save_with_gnu_ld
15119: lt_cv_path_LDCXX=$lt_cv_path_LD
15120: lt_cv_path_LD=$lt_save_path_LD
15121: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15122: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15123: fi # test "$_lt_caught_CXX_error" != yes
15124:
15125: ac_ext=c
15126: ac_cpp='$CPP $CPPFLAGS'
15127: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15128: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15129: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15130:
15131:
15132:
15133:
15134:
15135:
15136:
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145: ac_config_commands="$ac_config_commands libtool"
15146:
15147:
15148:
15149:
15150: # Only expand once:
15151:
15152:
15153: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15154: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15155: if test "${libltdl_cv_shlibext+set}" = set; then
15156: echo $ECHO_N "(cached) $ECHO_C" >&6
15157: else
15158:
15159: module=yes
15160: eval libltdl_cv_shlibext=$shrext_cmds
15161: module=no
15162: eval libltdl_cv_shrext=$shrext_cmds
15163:
15164: fi
15165: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15166: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15167: if test -n "$libltdl_cv_shlibext"; then
15168:
15169: cat >>confdefs.h <<_ACEOF
15170: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15171: _ACEOF
15172:
15173: fi
15174: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15175:
15176: cat >>confdefs.h <<_ACEOF
15177: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15178: _ACEOF
15179:
15180: fi
15181:
15182: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15183: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15184: if test "${lt_cv_module_path_var+set}" = set; then
15185: echo $ECHO_N "(cached) $ECHO_C" >&6
15186: else
15187: lt_cv_module_path_var="$shlibpath_var"
15188: fi
15189: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15190: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15191: if test -n "$lt_cv_module_path_var"; then
15192:
15193: cat >>confdefs.h <<_ACEOF
15194: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15195: _ACEOF
15196:
15197: fi
15198:
15199: echo "$as_me:$LINENO: checking for the default library search path" >&5
15200: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15201: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15202: echo $ECHO_N "(cached) $ECHO_C" >&6
15203: else
15204: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15205: fi
15206: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15207: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15208: if test -n "$lt_cv_sys_dlsearch_path"; then
15209: sys_dlsearch_path=
15210: for dir in $lt_cv_sys_dlsearch_path; do
15211: if test -z "$sys_dlsearch_path"; then
15212: sys_dlsearch_path="$dir"
15213: else
15214: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15215: fi
15216: done
15217:
15218: cat >>confdefs.h <<_ACEOF
15219: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15220: _ACEOF
15221:
15222: fi
15223:
15224:
15225: LT_DLLOADERS=
15226:
15227:
15228: ac_ext=c
15229: ac_cpp='$CPP $CPPFLAGS'
15230: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15231: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15232: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15233:
15234:
15235: LIBADD_DLOPEN=
15236: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15237: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15238: if test "${ac_cv_search_dlopen+set}" = set; then
15239: echo $ECHO_N "(cached) $ECHO_C" >&6
15240: else
15241: ac_func_search_save_LIBS=$LIBS
15242: ac_cv_search_dlopen=no
15243: cat >conftest.$ac_ext <<_ACEOF
15244: /* confdefs.h. */
15245: _ACEOF
15246: cat confdefs.h >>conftest.$ac_ext
15247: cat >>conftest.$ac_ext <<_ACEOF
15248: /* end confdefs.h. */
15249:
15250: /* Override any gcc2 internal prototype to avoid an error. */
15251: #ifdef __cplusplus
15252: extern "C"
15253: #endif
15254: /* We use char because int might match the return type of a gcc2
15255: builtin and then its argument prototype would still apply. */
15256: char dlopen ();
15257: int
15258: main ()
15259: {
15260: dlopen ();
15261: ;
15262: return 0;
15263: }
15264: _ACEOF
15265: rm -f conftest.$ac_objext conftest$ac_exeext
15266: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267: (eval $ac_link) 2>conftest.er1
15268: ac_status=$?
15269: grep -v '^ *+' conftest.er1 >conftest.err
15270: rm -f conftest.er1
15271: cat conftest.err >&5
15272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273: (exit $ac_status); } &&
15274: { ac_try='test -z "$ac_c_werror_flag"
15275: || test ! -s conftest.err'
15276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277: (eval $ac_try) 2>&5
15278: ac_status=$?
15279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280: (exit $ac_status); }; } &&
15281: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15287: ac_cv_search_dlopen="none required"
15288: else
15289: echo "$as_me: failed program was:" >&5
15290: sed 's/^/| /' conftest.$ac_ext >&5
15291:
15292: fi
15293: rm -f conftest.err conftest.$ac_objext \
15294: conftest$ac_exeext conftest.$ac_ext
15295: if test "$ac_cv_search_dlopen" = no; then
15296: for ac_lib in dl; do
15297: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15298: cat >conftest.$ac_ext <<_ACEOF
15299: /* confdefs.h. */
15300: _ACEOF
15301: cat confdefs.h >>conftest.$ac_ext
15302: cat >>conftest.$ac_ext <<_ACEOF
15303: /* end confdefs.h. */
15304:
15305: /* Override any gcc2 internal prototype to avoid an error. */
15306: #ifdef __cplusplus
15307: extern "C"
15308: #endif
15309: /* We use char because int might match the return type of a gcc2
15310: builtin and then its argument prototype would still apply. */
15311: char dlopen ();
15312: int
15313: main ()
15314: {
15315: dlopen ();
15316: ;
15317: return 0;
15318: }
15319: _ACEOF
15320: rm -f conftest.$ac_objext conftest$ac_exeext
15321: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322: (eval $ac_link) 2>conftest.er1
15323: ac_status=$?
15324: grep -v '^ *+' conftest.er1 >conftest.err
15325: rm -f conftest.er1
15326: cat conftest.err >&5
15327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328: (exit $ac_status); } &&
15329: { ac_try='test -z "$ac_c_werror_flag"
15330: || test ! -s conftest.err'
15331: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332: (eval $ac_try) 2>&5
15333: ac_status=$?
15334: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335: (exit $ac_status); }; } &&
15336: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15342: ac_cv_search_dlopen="-l$ac_lib"
15343: break
15344: else
15345: echo "$as_me: failed program was:" >&5
15346: sed 's/^/| /' conftest.$ac_ext >&5
15347:
15348: fi
15349: rm -f conftest.err conftest.$ac_objext \
15350: conftest$ac_exeext conftest.$ac_ext
15351: done
15352: fi
15353: LIBS=$ac_func_search_save_LIBS
15354: fi
15355: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15356: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15357: if test "$ac_cv_search_dlopen" != no; then
15358: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15359:
15360: cat >>confdefs.h <<\_ACEOF
15361: #define HAVE_LIBDL 1
15362: _ACEOF
15363:
15364: if test "$ac_cv_search_dlopen" != "none required" ; then
15365: LIBADD_DLOPEN="-ldl"
15366: fi
15367: libltdl_cv_lib_dl_dlopen="yes"
15368: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15369: else
15370: cat >conftest.$ac_ext <<_ACEOF
15371: /* confdefs.h. */
15372: _ACEOF
15373: cat confdefs.h >>conftest.$ac_ext
15374: cat >>conftest.$ac_ext <<_ACEOF
15375: /* end confdefs.h. */
15376: #if HAVE_DLFCN_H
15377: # include <dlfcn.h>
15378: #endif
15379:
15380: int
15381: main ()
15382: {
15383: dlopen(0, 0);
15384: ;
15385: return 0;
15386: }
15387: _ACEOF
15388: rm -f conftest.$ac_objext conftest$ac_exeext
15389: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390: (eval $ac_link) 2>conftest.er1
15391: ac_status=$?
15392: grep -v '^ *+' conftest.er1 >conftest.err
15393: rm -f conftest.er1
15394: cat conftest.err >&5
15395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396: (exit $ac_status); } &&
15397: { ac_try='test -z "$ac_c_werror_flag"
15398: || test ! -s conftest.err'
15399: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400: (eval $ac_try) 2>&5
15401: ac_status=$?
15402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403: (exit $ac_status); }; } &&
15404: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15410:
15411: cat >>confdefs.h <<\_ACEOF
15412: #define HAVE_LIBDL 1
15413: _ACEOF
15414:
15415: libltdl_cv_func_dlopen="yes"
15416: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15417: else
15418: echo "$as_me: failed program was:" >&5
15419: sed 's/^/| /' conftest.$ac_ext >&5
15420:
15421: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15422: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15423: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15424: echo $ECHO_N "(cached) $ECHO_C" >&6
15425: else
15426: ac_check_lib_save_LIBS=$LIBS
15427: LIBS="-lsvld $LIBS"
15428: cat >conftest.$ac_ext <<_ACEOF
15429: /* confdefs.h. */
15430: _ACEOF
15431: cat confdefs.h >>conftest.$ac_ext
15432: cat >>conftest.$ac_ext <<_ACEOF
15433: /* end confdefs.h. */
15434:
15435: /* Override any gcc2 internal prototype to avoid an error. */
15436: #ifdef __cplusplus
15437: extern "C"
15438: #endif
15439: /* We use char because int might match the return type of a gcc2
15440: builtin and then its argument prototype would still apply. */
15441: char dlopen ();
15442: int
15443: main ()
15444: {
15445: dlopen ();
15446: ;
15447: return 0;
15448: }
15449: _ACEOF
15450: rm -f conftest.$ac_objext conftest$ac_exeext
15451: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452: (eval $ac_link) 2>conftest.er1
15453: ac_status=$?
15454: grep -v '^ *+' conftest.er1 >conftest.err
15455: rm -f conftest.er1
15456: cat conftest.err >&5
15457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458: (exit $ac_status); } &&
15459: { ac_try='test -z "$ac_c_werror_flag"
15460: || test ! -s conftest.err'
15461: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462: (eval $ac_try) 2>&5
15463: ac_status=$?
15464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465: (exit $ac_status); }; } &&
15466: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15472: ac_cv_lib_svld_dlopen=yes
15473: else
15474: echo "$as_me: failed program was:" >&5
15475: sed 's/^/| /' conftest.$ac_ext >&5
15476:
15477: ac_cv_lib_svld_dlopen=no
15478: fi
15479: rm -f conftest.err conftest.$ac_objext \
15480: conftest$ac_exeext conftest.$ac_ext
15481: LIBS=$ac_check_lib_save_LIBS
15482: fi
15483: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15484: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15485: if test $ac_cv_lib_svld_dlopen = yes; then
15486:
15487: cat >>confdefs.h <<\_ACEOF
15488: #define HAVE_LIBDL 1
15489: _ACEOF
15490:
15491: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15492: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15493: fi
15494:
15495: fi
15496: rm -f conftest.err conftest.$ac_objext \
15497: conftest$ac_exeext conftest.$ac_ext
15498: fi
15499:
15500: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15501: then
15502: lt_save_LIBS="$LIBS"
15503: LIBS="$LIBS $LIBADD_DLOPEN"
15504:
15505: for ac_func in dlerror
15506: do
15507: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15508: echo "$as_me:$LINENO: checking for $ac_func" >&5
15509: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15510: if eval "test \"\${$as_ac_var+set}\" = set"; then
15511: echo $ECHO_N "(cached) $ECHO_C" >&6
15512: else
15513: cat >conftest.$ac_ext <<_ACEOF
15514: /* confdefs.h. */
15515: _ACEOF
15516: cat confdefs.h >>conftest.$ac_ext
15517: cat >>conftest.$ac_ext <<_ACEOF
15518: /* end confdefs.h. */
15519: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15520: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15521: #define $ac_func innocuous_$ac_func
15522:
15523: /* System header to define __stub macros and hopefully few prototypes,
15524: which can conflict with char $ac_func (); below.
15525: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15526: <limits.h> exists even on freestanding compilers. */
15527:
15528: #ifdef __STDC__
15529: # include <limits.h>
15530: #else
15531: # include <assert.h>
15532: #endif
15533:
15534: #undef $ac_func
15535:
15536: /* Override any gcc2 internal prototype to avoid an error. */
15537: #ifdef __cplusplus
15538: extern "C"
15539: {
15540: #endif
15541: /* We use char because int might match the return type of a gcc2
15542: builtin and then its argument prototype would still apply. */
15543: char $ac_func ();
15544: /* The GNU C library defines this for functions which it implements
15545: to always fail with ENOSYS. Some functions are actually named
15546: something starting with __ and the normal name is an alias. */
15547: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15548: choke me
15549: #else
15550: char (*f) () = $ac_func;
15551: #endif
15552: #ifdef __cplusplus
15553: }
15554: #endif
15555:
15556: int
15557: main ()
15558: {
15559: return f != $ac_func;
15560: ;
15561: return 0;
15562: }
15563: _ACEOF
15564: rm -f conftest.$ac_objext conftest$ac_exeext
15565: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15566: (eval $ac_link) 2>conftest.er1
15567: ac_status=$?
15568: grep -v '^ *+' conftest.er1 >conftest.err
15569: rm -f conftest.er1
15570: cat conftest.err >&5
15571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572: (exit $ac_status); } &&
15573: { ac_try='test -z "$ac_c_werror_flag"
15574: || test ! -s conftest.err'
15575: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576: (eval $ac_try) 2>&5
15577: ac_status=$?
15578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579: (exit $ac_status); }; } &&
15580: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15586: eval "$as_ac_var=yes"
15587: else
15588: echo "$as_me: failed program was:" >&5
15589: sed 's/^/| /' conftest.$ac_ext >&5
15590:
15591: eval "$as_ac_var=no"
15592: fi
15593: rm -f conftest.err conftest.$ac_objext \
15594: conftest$ac_exeext conftest.$ac_ext
15595: fi
15596: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15597: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15598: if test `eval echo '${'$as_ac_var'}'` = yes; then
15599: cat >>confdefs.h <<_ACEOF
15600: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601: _ACEOF
15602:
15603: fi
15604: done
15605:
15606: LIBS="$lt_save_LIBS"
15607: fi
15608:
15609:
15610: LIBADD_SHL_LOAD=
15611: echo "$as_me:$LINENO: checking for shl_load" >&5
15612: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15613: if test "${ac_cv_func_shl_load+set}" = set; then
15614: echo $ECHO_N "(cached) $ECHO_C" >&6
15615: else
15616: cat >conftest.$ac_ext <<_ACEOF
15617: /* confdefs.h. */
15618: _ACEOF
15619: cat confdefs.h >>conftest.$ac_ext
15620: cat >>conftest.$ac_ext <<_ACEOF
15621: /* end confdefs.h. */
15622: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15623: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15624: #define shl_load innocuous_shl_load
15625:
15626: /* System header to define __stub macros and hopefully few prototypes,
15627: which can conflict with char shl_load (); below.
15628: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15629: <limits.h> exists even on freestanding compilers. */
15630:
15631: #ifdef __STDC__
15632: # include <limits.h>
15633: #else
15634: # include <assert.h>
15635: #endif
15636:
15637: #undef shl_load
15638:
15639: /* Override any gcc2 internal prototype to avoid an error. */
15640: #ifdef __cplusplus
15641: extern "C"
15642: {
15643: #endif
15644: /* We use char because int might match the return type of a gcc2
15645: builtin and then its argument prototype would still apply. */
15646: char shl_load ();
15647: /* The GNU C library defines this for functions which it implements
15648: to always fail with ENOSYS. Some functions are actually named
15649: something starting with __ and the normal name is an alias. */
15650: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15651: choke me
15652: #else
15653: char (*f) () = shl_load;
15654: #endif
15655: #ifdef __cplusplus
15656: }
15657: #endif
15658:
15659: int
15660: main ()
15661: {
15662: return f != shl_load;
15663: ;
15664: return 0;
15665: }
15666: _ACEOF
15667: rm -f conftest.$ac_objext conftest$ac_exeext
15668: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669: (eval $ac_link) 2>conftest.er1
15670: ac_status=$?
15671: grep -v '^ *+' conftest.er1 >conftest.err
15672: rm -f conftest.er1
15673: cat conftest.err >&5
15674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675: (exit $ac_status); } &&
15676: { ac_try='test -z "$ac_c_werror_flag"
15677: || test ! -s conftest.err'
15678: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679: (eval $ac_try) 2>&5
15680: ac_status=$?
15681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682: (exit $ac_status); }; } &&
15683: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15689: ac_cv_func_shl_load=yes
15690: else
15691: echo "$as_me: failed program was:" >&5
15692: sed 's/^/| /' conftest.$ac_ext >&5
15693:
15694: ac_cv_func_shl_load=no
15695: fi
15696: rm -f conftest.err conftest.$ac_objext \
15697: conftest$ac_exeext conftest.$ac_ext
15698: fi
15699: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15700: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15701: if test $ac_cv_func_shl_load = yes; then
15702:
15703: cat >>confdefs.h <<\_ACEOF
15704: #define HAVE_SHL_LOAD 1
15705: _ACEOF
15706:
15707: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15708: else
15709: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15710: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15711: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15712: echo $ECHO_N "(cached) $ECHO_C" >&6
15713: else
15714: ac_check_lib_save_LIBS=$LIBS
15715: LIBS="-ldld $LIBS"
15716: cat >conftest.$ac_ext <<_ACEOF
15717: /* confdefs.h. */
15718: _ACEOF
15719: cat confdefs.h >>conftest.$ac_ext
15720: cat >>conftest.$ac_ext <<_ACEOF
15721: /* end confdefs.h. */
15722:
15723: /* Override any gcc2 internal prototype to avoid an error. */
15724: #ifdef __cplusplus
15725: extern "C"
15726: #endif
15727: /* We use char because int might match the return type of a gcc2
15728: builtin and then its argument prototype would still apply. */
15729: char shl_load ();
15730: int
15731: main ()
15732: {
15733: shl_load ();
15734: ;
15735: return 0;
15736: }
15737: _ACEOF
15738: rm -f conftest.$ac_objext conftest$ac_exeext
15739: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740: (eval $ac_link) 2>conftest.er1
15741: ac_status=$?
15742: grep -v '^ *+' conftest.er1 >conftest.err
15743: rm -f conftest.er1
15744: cat conftest.err >&5
15745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746: (exit $ac_status); } &&
15747: { ac_try='test -z "$ac_c_werror_flag"
15748: || test ! -s conftest.err'
15749: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750: (eval $ac_try) 2>&5
15751: ac_status=$?
15752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753: (exit $ac_status); }; } &&
15754: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15760: ac_cv_lib_dld_shl_load=yes
15761: else
15762: echo "$as_me: failed program was:" >&5
15763: sed 's/^/| /' conftest.$ac_ext >&5
15764:
15765: ac_cv_lib_dld_shl_load=no
15766: fi
15767: rm -f conftest.err conftest.$ac_objext \
15768: conftest$ac_exeext conftest.$ac_ext
15769: LIBS=$ac_check_lib_save_LIBS
15770: fi
15771: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15772: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15773: if test $ac_cv_lib_dld_shl_load = yes; then
15774:
15775: cat >>confdefs.h <<\_ACEOF
15776: #define HAVE_SHL_LOAD 1
15777: _ACEOF
15778:
15779: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15780: LIBADD_SHL_LOAD="-ldld"
15781: fi
15782:
15783: fi
15784:
15785:
15786:
15787: case $host_os in
15788: darwin[1567].*)
15789: # We only want this for pre-Mac OS X 10.4.
15790: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15791: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15792: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15793: echo $ECHO_N "(cached) $ECHO_C" >&6
15794: else
15795: cat >conftest.$ac_ext <<_ACEOF
15796: /* confdefs.h. */
15797: _ACEOF
15798: cat confdefs.h >>conftest.$ac_ext
15799: cat >>conftest.$ac_ext <<_ACEOF
15800: /* end confdefs.h. */
15801: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15802: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15803: #define _dyld_func_lookup innocuous__dyld_func_lookup
15804:
15805: /* System header to define __stub macros and hopefully few prototypes,
15806: which can conflict with char _dyld_func_lookup (); below.
15807: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15808: <limits.h> exists even on freestanding compilers. */
15809:
15810: #ifdef __STDC__
15811: # include <limits.h>
15812: #else
15813: # include <assert.h>
15814: #endif
15815:
15816: #undef _dyld_func_lookup
15817:
15818: /* Override any gcc2 internal prototype to avoid an error. */
15819: #ifdef __cplusplus
15820: extern "C"
15821: {
15822: #endif
15823: /* We use char because int might match the return type of a gcc2
15824: builtin and then its argument prototype would still apply. */
15825: char _dyld_func_lookup ();
15826: /* The GNU C library defines this for functions which it implements
15827: to always fail with ENOSYS. Some functions are actually named
15828: something starting with __ and the normal name is an alias. */
15829: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15830: choke me
15831: #else
15832: char (*f) () = _dyld_func_lookup;
15833: #endif
15834: #ifdef __cplusplus
15835: }
15836: #endif
15837:
15838: int
15839: main ()
15840: {
15841: return f != _dyld_func_lookup;
15842: ;
15843: return 0;
15844: }
15845: _ACEOF
15846: rm -f conftest.$ac_objext conftest$ac_exeext
15847: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15848: (eval $ac_link) 2>conftest.er1
15849: ac_status=$?
15850: grep -v '^ *+' conftest.er1 >conftest.err
15851: rm -f conftest.er1
15852: cat conftest.err >&5
15853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854: (exit $ac_status); } &&
15855: { ac_try='test -z "$ac_c_werror_flag"
15856: || test ! -s conftest.err'
15857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858: (eval $ac_try) 2>&5
15859: ac_status=$?
15860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861: (exit $ac_status); }; } &&
15862: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15868: ac_cv_func__dyld_func_lookup=yes
15869: else
15870: echo "$as_me: failed program was:" >&5
15871: sed 's/^/| /' conftest.$ac_ext >&5
15872:
15873: ac_cv_func__dyld_func_lookup=no
15874: fi
15875: rm -f conftest.err conftest.$ac_objext \
15876: conftest$ac_exeext conftest.$ac_ext
15877: fi
15878: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15879: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15880: if test $ac_cv_func__dyld_func_lookup = yes; then
15881:
15882: cat >>confdefs.h <<\_ACEOF
15883: #define HAVE_DYLD 1
15884: _ACEOF
15885:
15886: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15887: fi
15888:
15889: ;;
15890: beos*)
15891: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15892: ;;
15893: cygwin* | mingw* | os2* | pw32*)
15894: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15895: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15896: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15897: echo $ECHO_N "(cached) $ECHO_C" >&6
15898: else
15899: cat >conftest.$ac_ext <<_ACEOF
15900: /* confdefs.h. */
15901: _ACEOF
15902: cat confdefs.h >>conftest.$ac_ext
15903: cat >>conftest.$ac_ext <<_ACEOF
15904: /* end confdefs.h. */
15905: #include <sys/cygwin.h>
15906:
15907: int
15908: main ()
15909: {
15910: #ifndef cygwin_conv_path
15911: char *p = (char *) cygwin_conv_path;
15912: #endif
15913:
15914: ;
15915: return 0;
15916: }
15917: _ACEOF
15918: rm -f conftest.$ac_objext
15919: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920: (eval $ac_compile) 2>conftest.er1
15921: ac_status=$?
15922: grep -v '^ *+' conftest.er1 >conftest.err
15923: rm -f conftest.er1
15924: cat conftest.err >&5
15925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926: (exit $ac_status); } &&
15927: { ac_try='test -z "$ac_c_werror_flag"
15928: || test ! -s conftest.err'
15929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930: (eval $ac_try) 2>&5
15931: ac_status=$?
15932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933: (exit $ac_status); }; } &&
15934: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15940: ac_cv_have_decl_cygwin_conv_path=yes
15941: else
15942: echo "$as_me: failed program was:" >&5
15943: sed 's/^/| /' conftest.$ac_ext >&5
15944:
15945: ac_cv_have_decl_cygwin_conv_path=no
15946: fi
15947: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948: fi
15949: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15950: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15951: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15952:
15953: cat >>confdefs.h <<_ACEOF
15954: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15955: _ACEOF
15956:
15957:
15958: else
15959: cat >>confdefs.h <<_ACEOF
15960: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15961: _ACEOF
15962:
15963:
15964: fi
15965:
15966:
15967: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15968: ;;
15969: esac
15970:
15971: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15972: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15973: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15974: echo $ECHO_N "(cached) $ECHO_C" >&6
15975: else
15976: ac_check_lib_save_LIBS=$LIBS
15977: LIBS="-ldld $LIBS"
15978: cat >conftest.$ac_ext <<_ACEOF
15979: /* confdefs.h. */
15980: _ACEOF
15981: cat confdefs.h >>conftest.$ac_ext
15982: cat >>conftest.$ac_ext <<_ACEOF
15983: /* end confdefs.h. */
15984:
15985: /* Override any gcc2 internal prototype to avoid an error. */
15986: #ifdef __cplusplus
15987: extern "C"
15988: #endif
15989: /* We use char because int might match the return type of a gcc2
15990: builtin and then its argument prototype would still apply. */
15991: char dld_link ();
15992: int
15993: main ()
15994: {
15995: dld_link ();
15996: ;
15997: return 0;
15998: }
15999: _ACEOF
16000: rm -f conftest.$ac_objext conftest$ac_exeext
16001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002: (eval $ac_link) 2>conftest.er1
16003: ac_status=$?
16004: grep -v '^ *+' conftest.er1 >conftest.err
16005: rm -f conftest.er1
16006: cat conftest.err >&5
16007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008: (exit $ac_status); } &&
16009: { ac_try='test -z "$ac_c_werror_flag"
16010: || test ! -s conftest.err'
16011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012: (eval $ac_try) 2>&5
16013: ac_status=$?
16014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015: (exit $ac_status); }; } &&
16016: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16022: ac_cv_lib_dld_dld_link=yes
16023: else
16024: echo "$as_me: failed program was:" >&5
16025: sed 's/^/| /' conftest.$ac_ext >&5
16026:
16027: ac_cv_lib_dld_dld_link=no
16028: fi
16029: rm -f conftest.err conftest.$ac_objext \
16030: conftest$ac_exeext conftest.$ac_ext
16031: LIBS=$ac_check_lib_save_LIBS
16032: fi
16033: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16034: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16035: if test $ac_cv_lib_dld_dld_link = yes; then
16036:
16037: cat >>confdefs.h <<\_ACEOF
16038: #define HAVE_DLD 1
16039: _ACEOF
16040:
16041: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16042: fi
16043:
16044:
16045:
16046:
16047: LT_DLPREOPEN=
16048: if test -n "$LT_DLLOADERS"
16049: then
16050: for lt_loader in $LT_DLLOADERS; do
16051: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16052: done
16053:
16054: cat >>confdefs.h <<\_ACEOF
16055: #define HAVE_LIBDLLOADER 1
16056: _ACEOF
16057:
16058: fi
16059:
16060:
16061: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16062:
16063:
16064: ac_ext=c
16065: ac_cpp='$CPP $CPPFLAGS'
16066: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16069:
16070:
16071: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16072: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16073: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16074: echo $ECHO_N "(cached) $ECHO_C" >&6
16075: else
16076: lt_cv_sys_symbol_underscore=no
16077: cat > conftest.$ac_ext <<_LT_EOF
16078: void nm_test_func(){}
16079: int main(){nm_test_func;return 0;}
16080: _LT_EOF
16081: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16082: (eval $ac_compile) 2>&5
16083: ac_status=$?
16084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085: (exit $ac_status); }; then
16086: # Now try to grab the symbols.
16087: ac_nlist=conftest.nm
16088: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16089: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16090: ac_status=$?
16091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092: (exit $ac_status); } && test -s "$ac_nlist"; then
16093: # See whether the symbols have a leading underscore.
16094: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16095: lt_cv_sys_symbol_underscore=yes
16096: else
16097: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16098: :
16099: else
16100: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16101: fi
16102: fi
16103: else
16104: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16105: fi
16106: else
16107: echo "configure: failed program was:" >&5
16108: cat conftest.c >&5
16109: fi
16110: rm -rf conftest*
16111:
16112: fi
16113: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16114: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16115: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16116:
16117:
16118: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16119: if test x"$libltdl_cv_func_dlopen" = xyes ||
16120: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16121: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16122: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16123: if test "${libltdl_cv_need_uscore+set}" = set; then
16124: echo $ECHO_N "(cached) $ECHO_C" >&6
16125: else
16126: libltdl_cv_need_uscore=unknown
16127: save_LIBS="$LIBS"
16128: LIBS="$LIBS $LIBADD_DLOPEN"
16129: if test "$cross_compiling" = yes; then :
16130: libltdl_cv_need_uscore=cross
16131: else
16132: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16133: lt_status=$lt_dlunknown
16134: cat > conftest.$ac_ext <<_LT_EOF
16135: #line $LINENO "configure"
16136: #include "confdefs.h"
16137:
16138: #if HAVE_DLFCN_H
16139: #include <dlfcn.h>
16140: #endif
16141:
16142: #include <stdio.h>
16143:
16144: #ifdef RTLD_GLOBAL
16145: # define LT_DLGLOBAL RTLD_GLOBAL
16146: #else
16147: # ifdef DL_GLOBAL
16148: # define LT_DLGLOBAL DL_GLOBAL
16149: # else
16150: # define LT_DLGLOBAL 0
16151: # endif
16152: #endif
16153:
16154: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16155: find out it does not work in some platform. */
16156: #ifndef LT_DLLAZY_OR_NOW
16157: # ifdef RTLD_LAZY
16158: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16159: # else
16160: # ifdef DL_LAZY
16161: # define LT_DLLAZY_OR_NOW DL_LAZY
16162: # else
16163: # ifdef RTLD_NOW
16164: # define LT_DLLAZY_OR_NOW RTLD_NOW
16165: # else
16166: # ifdef DL_NOW
16167: # define LT_DLLAZY_OR_NOW DL_NOW
16168: # else
16169: # define LT_DLLAZY_OR_NOW 0
16170: # endif
16171: # endif
16172: # endif
16173: # endif
16174: #endif
16175:
16176: /* When -fvisbility=hidden is used, assume the code has been annotated
16177: correspondingly for the symbols needed. */
16178: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16179: int fnord () __attribute__((visibility("default")));
16180: #endif
16181:
16182: int fnord () { return 42; }
16183: int main ()
16184: {
16185: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16186: int status = $lt_dlunknown;
16187:
16188: if (self)
16189: {
16190: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16191: else
16192: {
16193: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16194: else puts (dlerror ());
16195: }
16196: /* dlclose (self); */
16197: }
16198: else
16199: puts (dlerror ());
16200:
16201: return status;
16202: }
16203: _LT_EOF
16204: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205: (eval $ac_link) 2>&5
16206: ac_status=$?
16207: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16209: (./conftest; exit; ) >&5 2>/dev/null
16210: lt_status=$?
16211: case x$lt_status in
16212: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16213: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16214: x$lt_dlunknown|x*) ;;
16215: esac
16216: else :
16217: # compilation failed
16218:
16219: fi
16220: fi
16221: rm -fr conftest*
16222:
16223: LIBS="$save_LIBS"
16224:
16225: fi
16226: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16227: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16228: fi
16229: fi
16230:
16231: if test x"$libltdl_cv_need_uscore" = xyes; then
16232:
16233: cat >>confdefs.h <<\_ACEOF
16234: #define NEED_USCORE 1
16235: _ACEOF
16236:
16237: fi
16238:
16239: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16240: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16241: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16242: echo $ECHO_N "(cached) $ECHO_C" >&6
16243: else
16244: # PORTME does your system automatically load deplibs for dlopen?
16245: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16246: # For now, we just catch OSes we know something about -- in the
16247: # future, we'll try test this programmatically.
16248: lt_cv_sys_dlopen_deplibs=unknown
16249: case $host_os in
16250: aix3*|aix4.1.*|aix4.2.*)
16251: # Unknown whether this is true for these versions of AIX, but
16252: # we want this `case' here to explicitly catch those versions.
16253: lt_cv_sys_dlopen_deplibs=unknown
16254: ;;
16255: aix[4-9]*)
16256: lt_cv_sys_dlopen_deplibs=yes
16257: ;;
16258: amigaos*)
16259: case $host_cpu in
16260: powerpc)
16261: lt_cv_sys_dlopen_deplibs=no
16262: ;;
16263: esac
16264: ;;
16265: darwin*)
16266: # Assuming the user has installed a libdl from somewhere, this is true
16267: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16268: lt_cv_sys_dlopen_deplibs=yes
16269: ;;
16270: freebsd* | dragonfly*)
16271: lt_cv_sys_dlopen_deplibs=yes
16272: ;;
16273: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16274: # GNU and its variants, using gnu ld.so (Glibc)
16275: lt_cv_sys_dlopen_deplibs=yes
16276: ;;
16277: hpux10*|hpux11*)
16278: lt_cv_sys_dlopen_deplibs=yes
16279: ;;
16280: interix*)
16281: lt_cv_sys_dlopen_deplibs=yes
16282: ;;
16283: irix[12345]*|irix6.[01]*)
16284: # Catch all versions of IRIX before 6.2, and indicate that we don't
16285: # know how it worked for any of those versions.
16286: lt_cv_sys_dlopen_deplibs=unknown
16287: ;;
16288: irix*)
16289: # The case above catches anything before 6.2, and it's known that
16290: # at 6.2 and later dlopen does load deplibs.
16291: lt_cv_sys_dlopen_deplibs=yes
16292: ;;
16293: netbsd*)
16294: lt_cv_sys_dlopen_deplibs=yes
16295: ;;
16296: openbsd*)
16297: lt_cv_sys_dlopen_deplibs=yes
16298: ;;
16299: osf[1234]*)
16300: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16301: # it did *not* use an RPATH in a shared library to find objects the
16302: # library depends on, so we explicitly say `no'.
16303: lt_cv_sys_dlopen_deplibs=no
16304: ;;
16305: osf5.0|osf5.0a|osf5.1)
16306: # dlopen *does* load deplibs and with the right loader patch applied
16307: # it even uses RPATH in a shared library to search for shared objects
16308: # that the library depends on, but there's no easy way to know if that
16309: # patch is installed. Since this is the case, all we can really
16310: # say is unknown -- it depends on the patch being installed. If
16311: # it is, this changes to `yes'. Without it, it would be `no'.
16312: lt_cv_sys_dlopen_deplibs=unknown
16313: ;;
16314: osf*)
16315: # the two cases above should catch all versions of osf <= 5.1. Read
16316: # the comments above for what we know about them.
16317: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16318: # is used to find them so we can finally say `yes'.
16319: lt_cv_sys_dlopen_deplibs=yes
16320: ;;
16321: qnx*)
16322: lt_cv_sys_dlopen_deplibs=yes
16323: ;;
16324: solaris*)
16325: lt_cv_sys_dlopen_deplibs=yes
16326: ;;
16327: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16328: libltdl_cv_sys_dlopen_deplibs=yes
16329: ;;
16330: esac
16331:
16332: fi
16333: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16334: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16335: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16336:
16337: cat >>confdefs.h <<\_ACEOF
16338: #define LTDL_DLOPEN_DEPLIBS 1
16339: _ACEOF
16340:
16341: fi
16342:
16343: :
16344:
16345:
16346: for ac_header in argz.h
16347: do
16348: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16349: echo "$as_me:$LINENO: checking for $ac_header" >&5
16350: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16351: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16352: echo $ECHO_N "(cached) $ECHO_C" >&6
16353: else
16354: cat >conftest.$ac_ext <<_ACEOF
16355: /* confdefs.h. */
16356: _ACEOF
16357: cat confdefs.h >>conftest.$ac_ext
16358: cat >>conftest.$ac_ext <<_ACEOF
16359: /* end confdefs.h. */
16360: $ac_includes_default
16361:
16362: #include <$ac_header>
16363: _ACEOF
16364: rm -f conftest.$ac_objext
16365: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16366: (eval $ac_compile) 2>conftest.er1
16367: ac_status=$?
16368: grep -v '^ *+' conftest.er1 >conftest.err
16369: rm -f conftest.er1
16370: cat conftest.err >&5
16371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372: (exit $ac_status); } &&
16373: { ac_try='test -z "$ac_c_werror_flag"
16374: || test ! -s conftest.err'
16375: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376: (eval $ac_try) 2>&5
16377: ac_status=$?
16378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379: (exit $ac_status); }; } &&
16380: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16386: eval "$as_ac_Header=yes"
16387: else
16388: echo "$as_me: failed program was:" >&5
16389: sed 's/^/| /' conftest.$ac_ext >&5
16390:
16391: eval "$as_ac_Header=no"
16392: fi
16393: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16394: fi
16395: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16396: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16397: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16398: cat >>confdefs.h <<_ACEOF
16399: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16400: _ACEOF
16401:
16402: fi
16403:
16404: done
16405:
16406:
16407: echo "$as_me:$LINENO: checking for error_t" >&5
16408: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16409: if test "${ac_cv_type_error_t+set}" = set; then
16410: echo $ECHO_N "(cached) $ECHO_C" >&6
16411: else
16412: cat >conftest.$ac_ext <<_ACEOF
16413: /* confdefs.h. */
16414: _ACEOF
16415: cat confdefs.h >>conftest.$ac_ext
16416: cat >>conftest.$ac_ext <<_ACEOF
16417: /* end confdefs.h. */
16418: #if defined(HAVE_ARGZ_H)
16419: # include <argz.h>
16420: #endif
16421:
16422: int
16423: main ()
16424: {
16425: if ((error_t *) 0)
16426: return 0;
16427: if (sizeof (error_t))
16428: return 0;
16429: ;
16430: return 0;
16431: }
16432: _ACEOF
16433: rm -f conftest.$ac_objext
16434: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435: (eval $ac_compile) 2>conftest.er1
16436: ac_status=$?
16437: grep -v '^ *+' conftest.er1 >conftest.err
16438: rm -f conftest.er1
16439: cat conftest.err >&5
16440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441: (exit $ac_status); } &&
16442: { ac_try='test -z "$ac_c_werror_flag"
16443: || test ! -s conftest.err'
16444: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445: (eval $ac_try) 2>&5
16446: ac_status=$?
16447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448: (exit $ac_status); }; } &&
16449: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16455: ac_cv_type_error_t=yes
16456: else
16457: echo "$as_me: failed program was:" >&5
16458: sed 's/^/| /' conftest.$ac_ext >&5
16459:
16460: ac_cv_type_error_t=no
16461: fi
16462: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463: fi
16464: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16465: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16466: if test $ac_cv_type_error_t = yes; then
16467:
16468: cat >>confdefs.h <<_ACEOF
16469: #define HAVE_ERROR_T 1
16470: _ACEOF
16471:
16472:
16473: else
16474:
16475: cat >>confdefs.h <<\_ACEOF
16476: #define error_t int
16477: _ACEOF
16478:
16479:
16480: cat >>confdefs.h <<\_ACEOF
16481: #define __error_t_defined 1
16482: _ACEOF
16483:
16484: fi
16485:
16486:
16487: ARGZ_H=
16488:
16489:
16490:
16491:
16492:
16493:
16494:
16495: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16496: argz_next argz_stringify
16497: do
16498: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16499: echo "$as_me:$LINENO: checking for $ac_func" >&5
16500: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16501: if eval "test \"\${$as_ac_var+set}\" = set"; then
16502: echo $ECHO_N "(cached) $ECHO_C" >&6
16503: else
16504: cat >conftest.$ac_ext <<_ACEOF
16505: /* confdefs.h. */
16506: _ACEOF
16507: cat confdefs.h >>conftest.$ac_ext
16508: cat >>conftest.$ac_ext <<_ACEOF
16509: /* end confdefs.h. */
16510: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16511: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16512: #define $ac_func innocuous_$ac_func
16513:
16514: /* System header to define __stub macros and hopefully few prototypes,
16515: which can conflict with char $ac_func (); below.
16516: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16517: <limits.h> exists even on freestanding compilers. */
16518:
16519: #ifdef __STDC__
16520: # include <limits.h>
16521: #else
16522: # include <assert.h>
16523: #endif
16524:
16525: #undef $ac_func
16526:
16527: /* Override any gcc2 internal prototype to avoid an error. */
16528: #ifdef __cplusplus
16529: extern "C"
16530: {
16531: #endif
16532: /* We use char because int might match the return type of a gcc2
16533: builtin and then its argument prototype would still apply. */
16534: char $ac_func ();
16535: /* The GNU C library defines this for functions which it implements
16536: to always fail with ENOSYS. Some functions are actually named
16537: something starting with __ and the normal name is an alias. */
16538: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16539: choke me
16540: #else
16541: char (*f) () = $ac_func;
16542: #endif
16543: #ifdef __cplusplus
16544: }
16545: #endif
16546:
16547: int
16548: main ()
16549: {
16550: return f != $ac_func;
16551: ;
16552: return 0;
16553: }
16554: _ACEOF
16555: rm -f conftest.$ac_objext conftest$ac_exeext
16556: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557: (eval $ac_link) 2>conftest.er1
16558: ac_status=$?
16559: grep -v '^ *+' conftest.er1 >conftest.err
16560: rm -f conftest.er1
16561: cat conftest.err >&5
16562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563: (exit $ac_status); } &&
16564: { ac_try='test -z "$ac_c_werror_flag"
16565: || test ! -s conftest.err'
16566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567: (eval $ac_try) 2>&5
16568: ac_status=$?
16569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570: (exit $ac_status); }; } &&
16571: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16577: eval "$as_ac_var=yes"
16578: else
16579: echo "$as_me: failed program was:" >&5
16580: sed 's/^/| /' conftest.$ac_ext >&5
16581:
16582: eval "$as_ac_var=no"
16583: fi
16584: rm -f conftest.err conftest.$ac_objext \
16585: conftest$ac_exeext conftest.$ac_ext
16586: fi
16587: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16588: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16589: if test `eval echo '${'$as_ac_var'}'` = yes; then
16590: cat >>confdefs.h <<_ACEOF
16591: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16592: _ACEOF
16593:
16594: else
16595: ARGZ_H=argz.h;
16596:
16597: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16598:
16599: fi
16600: done
16601:
16602:
16603: if test -z "$ARGZ_H"; then
16604: echo "$as_me:$LINENO: checking if argz actually works" >&5
16605: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16606: if test "${lt_cv_sys_argz_works+set}" = set; then
16607: echo $ECHO_N "(cached) $ECHO_C" >&6
16608: else
16609: case $host_os in #(
16610: *cygwin*)
16611: lt_cv_sys_argz_works=no
16612: if test "$cross_compiling" != no; then
16613: lt_cv_sys_argz_works="guessing no"
16614: else
16615: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16616: save_IFS=$IFS
16617: IFS=-.
16618: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16619: IFS=$save_IFS
16620: lt_os_major=${2-0}
16621: lt_os_minor=${3-0}
16622: lt_os_micro=${4-0}
16623: if test "$lt_os_major" -gt 1 \
16624: || { test "$lt_os_major" -eq 1 \
16625: && { test "$lt_os_minor" -gt 5 \
16626: || { test "$lt_os_minor" -eq 5 \
16627: && test "$lt_os_micro" -gt 24; }; }; }; then
16628: lt_cv_sys_argz_works=yes
16629: fi
16630: fi
16631: ;; #(
16632: *) lt_cv_sys_argz_works=yes ;;
16633: esac
16634: fi
16635: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16636: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16637: if test "$lt_cv_sys_argz_works" = yes; then
16638:
16639: cat >>confdefs.h <<\_ACEOF
16640: #define HAVE_WORKING_ARGZ 1
16641: _ACEOF
16642:
16643: else
16644: ARGZ_H=argz.h
16645:
16646:
16647: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16648:
16649: fi
16650:
16651: fi
16652:
16653:
16654:
16655:
16656: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16657: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16658: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16659: echo $ECHO_N "(cached) $ECHO_C" >&6
16660: else
16661: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16662: libltdl_cv_preloaded_symbols=yes
16663: else
16664: libltdl_cv_preloaded_symbols=no
16665: fi
16666:
16667: fi
16668: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16669: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16670: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16671:
16672: cat >>confdefs.h <<\_ACEOF
16673: #define HAVE_PRELOADED_SYMBOLS 1
16674: _ACEOF
16675:
16676: fi
16677:
16678: # Set options
16679:
16680:
16681:
16682:
16683:
16684:
16685:
16686:
16687:
16688:
16689:
16690:
16691: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16692: if test "${with_included_ltdl+set}" = set; then
16693: withval="$with_included_ltdl"
16694:
16695: fi;
16696:
16697: if test "x$with_included_ltdl" != xyes; then
16698: # We are not being forced to use the included libltdl sources, so
16699: # decide whether there is a useful installed version we can use.
16700: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16701: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16702: if test "${ac_cv_header_ltdl_h+set}" = set; then
16703: echo $ECHO_N "(cached) $ECHO_C" >&6
16704: else
16705: cat >conftest.$ac_ext <<_ACEOF
16706: /* confdefs.h. */
16707: _ACEOF
16708: cat confdefs.h >>conftest.$ac_ext
16709: cat >>conftest.$ac_ext <<_ACEOF
16710: /* end confdefs.h. */
16711: $ac_includes_default
16712:
16713:
16714: #include <ltdl.h>
16715: _ACEOF
16716: rm -f conftest.$ac_objext
16717: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718: (eval $ac_compile) 2>conftest.er1
16719: ac_status=$?
16720: grep -v '^ *+' conftest.er1 >conftest.err
16721: rm -f conftest.er1
16722: cat conftest.err >&5
16723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724: (exit $ac_status); } &&
16725: { ac_try='test -z "$ac_c_werror_flag"
16726: || test ! -s conftest.err'
16727: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728: (eval $ac_try) 2>&5
16729: ac_status=$?
16730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731: (exit $ac_status); }; } &&
16732: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16738: ac_cv_header_ltdl_h=yes
16739: else
16740: echo "$as_me: failed program was:" >&5
16741: sed 's/^/| /' conftest.$ac_ext >&5
16742:
16743: ac_cv_header_ltdl_h=no
16744: fi
16745: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16746: fi
16747: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16748: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16749: if test $ac_cv_header_ltdl_h = yes; then
16750: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16751: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16752: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16753: echo $ECHO_N "(cached) $ECHO_C" >&6
16754: else
16755: cat >conftest.$ac_ext <<_ACEOF
16756: /* confdefs.h. */
16757: _ACEOF
16758: cat confdefs.h >>conftest.$ac_ext
16759: cat >>conftest.$ac_ext <<_ACEOF
16760: /* end confdefs.h. */
16761: $ac_includes_default
16762: #include <ltdl.h>
16763:
16764: int
16765: main ()
16766: {
16767: #ifndef lt_dlinterface_register
16768: char *p = (char *) lt_dlinterface_register;
16769: #endif
16770:
16771: ;
16772: return 0;
16773: }
16774: _ACEOF
16775: rm -f conftest.$ac_objext
16776: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16777: (eval $ac_compile) 2>conftest.er1
16778: ac_status=$?
16779: grep -v '^ *+' conftest.er1 >conftest.err
16780: rm -f conftest.er1
16781: cat conftest.err >&5
16782: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783: (exit $ac_status); } &&
16784: { ac_try='test -z "$ac_c_werror_flag"
16785: || test ! -s conftest.err'
16786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787: (eval $ac_try) 2>&5
16788: ac_status=$?
16789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790: (exit $ac_status); }; } &&
16791: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16797: ac_cv_have_decl_lt_dlinterface_register=yes
16798: else
16799: echo "$as_me: failed program was:" >&5
16800: sed 's/^/| /' conftest.$ac_ext >&5
16801:
16802: ac_cv_have_decl_lt_dlinterface_register=no
16803: fi
16804: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16805: fi
16806: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16807: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16808: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16809: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16810: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16811: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16812: echo $ECHO_N "(cached) $ECHO_C" >&6
16813: else
16814: ac_check_lib_save_LIBS=$LIBS
16815: LIBS="-lltdl $LIBS"
16816: cat >conftest.$ac_ext <<_ACEOF
16817: /* confdefs.h. */
16818: _ACEOF
16819: cat confdefs.h >>conftest.$ac_ext
16820: cat >>conftest.$ac_ext <<_ACEOF
16821: /* end confdefs.h. */
16822:
16823: /* Override any gcc2 internal prototype to avoid an error. */
16824: #ifdef __cplusplus
16825: extern "C"
16826: #endif
16827: /* We use char because int might match the return type of a gcc2
16828: builtin and then its argument prototype would still apply. */
16829: char lt_dladvise_preload ();
16830: int
16831: main ()
16832: {
16833: lt_dladvise_preload ();
16834: ;
16835: return 0;
16836: }
16837: _ACEOF
16838: rm -f conftest.$ac_objext conftest$ac_exeext
16839: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16840: (eval $ac_link) 2>conftest.er1
16841: ac_status=$?
16842: grep -v '^ *+' conftest.er1 >conftest.err
16843: rm -f conftest.er1
16844: cat conftest.err >&5
16845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846: (exit $ac_status); } &&
16847: { ac_try='test -z "$ac_c_werror_flag"
16848: || test ! -s conftest.err'
16849: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850: (eval $ac_try) 2>&5
16851: ac_status=$?
16852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853: (exit $ac_status); }; } &&
16854: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16860: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16861: else
16862: echo "$as_me: failed program was:" >&5
16863: sed 's/^/| /' conftest.$ac_ext >&5
16864:
16865: ac_cv_lib_ltdl_lt_dladvise_preload=no
16866: fi
16867: rm -f conftest.err conftest.$ac_objext \
16868: conftest$ac_exeext conftest.$ac_ext
16869: LIBS=$ac_check_lib_save_LIBS
16870: fi
16871: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16872: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16873: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16874: with_included_ltdl=no
16875: else
16876: with_included_ltdl=yes
16877: fi
16878:
16879: else
16880: with_included_ltdl=yes
16881: fi
16882:
16883: else
16884: with_included_ltdl=yes
16885: fi
16886:
16887:
16888: fi
16889:
16890:
16891:
16892:
16893: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16894: if test "${with_ltdl_include+set}" = set; then
16895: withval="$with_ltdl_include"
16896:
16897: fi;
16898:
16899: if test -n "$with_ltdl_include"; then
16900: if test -f "$with_ltdl_include/ltdl.h"; then :
16901: else
16902: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16903: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16904: { (exit 1); exit 1; }; }
16905: fi
16906: else
16907: with_ltdl_include=no
16908: fi
16909:
16910:
16911: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16912: if test "${with_ltdl_lib+set}" = set; then
16913: withval="$with_ltdl_lib"
16914:
16915: fi;
16916:
16917: if test -n "$with_ltdl_lib"; then
16918: if test -f "$with_ltdl_lib/libltdl.la"; then :
16919: else
16920: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16921: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16922: { (exit 1); exit 1; }; }
16923: fi
16924: else
16925: with_ltdl_lib=no
16926: fi
16927:
16928: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16929: ,yes,no,no,)
16930: case $enable_ltdl_convenience in
16931: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16932: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16933: { (exit 1); exit 1; }; } ;;
16934: "") enable_ltdl_convenience=yes
16935: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16936: esac
16937: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16938: LTDLDEPS=$LIBLTDL
16939: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16940:
16941:
16942:
16943:
16944:
16945: # For backwards non-gettext consistent compatibility...
16946: INCLTDL="$LTDLINCL"
16947:
16948:
16949: ;;
16950: ,no,no,no,)
16951: # If the included ltdl is not to be used, then use the
16952: # preinstalled libltdl we found.
16953:
16954: cat >>confdefs.h <<\_ACEOF
16955: #define HAVE_LTDL 1
16956: _ACEOF
16957:
16958: LIBLTDL=-lltdl
16959: LTDLDEPS=
16960: LTDLINCL=
16961: ;;
16962: ,no*,no,*)
16963: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16964: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16965: { (exit 1); exit 1; }; }
16966: ;;
16967: *) with_included_ltdl=no
16968: LIBLTDL="-L$with_ltdl_lib -lltdl"
16969: LTDLDEPS=
16970: LTDLINCL="-I$with_ltdl_include"
16971: ;;
16972: esac
16973: INCLTDL="$LTDLINCL"
16974:
16975: # Report our decision...
16976: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16977: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
16978: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
16979: echo "${ECHO_T}$LTDLINCL" >&6
16980: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
16981: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
16982: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
16983: echo "${ECHO_T}$LIBLTDL" >&6
16984:
16985:
16986:
16987: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
16988: if test "${enable_ltdl_install+set}" = set; then
16989: enableval="$enable_ltdl_install"
16990:
16991: fi;
16992:
16993: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16994: *yes*) ;;
16995: *) enable_ltdl_convenience=yes ;;
16996: esac
16997:
16998:
16999:
17000: if test x"${enable_ltdl_install-no}" != xno; then
17001: INSTALL_LTDL_TRUE=
17002: INSTALL_LTDL_FALSE='#'
17003: else
17004: INSTALL_LTDL_TRUE='#'
17005: INSTALL_LTDL_FALSE=
17006: fi
17007:
17008:
17009:
17010: if test x"${enable_ltdl_convenience-no}" != xno; then
17011: CONVENIENCE_LTDL_TRUE=
17012: CONVENIENCE_LTDL_FALSE='#'
17013: else
17014: CONVENIENCE_LTDL_TRUE='#'
17015: CONVENIENCE_LTDL_FALSE=
17016: fi
17017:
17018:
17019:
17020:
17021:
17022: subdirs="$subdirs libltdl"
17023:
17024:
17025:
17026:
17027: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17028: # the user used. This is so that ltdl.h can pick up the parent projects
17029: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17030: # definitions required by ltdl.c.
17031: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17032:
17033:
17034:
17035:
17036:
17037:
17038:
17039:
17040:
17041: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17042: do
17043: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17044: echo "$as_me:$LINENO: checking for $ac_header" >&5
17045: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17046: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17047: echo $ECHO_N "(cached) $ECHO_C" >&6
17048: else
17049: cat >conftest.$ac_ext <<_ACEOF
17050: /* confdefs.h. */
17051: _ACEOF
17052: cat confdefs.h >>conftest.$ac_ext
17053: cat >>conftest.$ac_ext <<_ACEOF
17054: /* end confdefs.h. */
17055: $ac_includes_default
17056:
17057: #include <$ac_header>
17058: _ACEOF
17059: rm -f conftest.$ac_objext
17060: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061: (eval $ac_compile) 2>conftest.er1
17062: ac_status=$?
17063: grep -v '^ *+' conftest.er1 >conftest.err
17064: rm -f conftest.er1
17065: cat conftest.err >&5
17066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067: (exit $ac_status); } &&
17068: { ac_try='test -z "$ac_c_werror_flag"
17069: || test ! -s conftest.err'
17070: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071: (eval $ac_try) 2>&5
17072: ac_status=$?
17073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074: (exit $ac_status); }; } &&
17075: { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17081: eval "$as_ac_Header=yes"
17082: else
17083: echo "$as_me: failed program was:" >&5
17084: sed 's/^/| /' conftest.$ac_ext >&5
17085:
17086: eval "$as_ac_Header=no"
17087: fi
17088: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17089: fi
17090: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17091: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17092: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17093: cat >>confdefs.h <<_ACEOF
17094: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17095: _ACEOF
17096:
17097: fi
17098:
17099: done
17100:
17101:
17102:
17103:
17104:
17105: for ac_func in closedir opendir readdir
17106: do
17107: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108: echo "$as_me:$LINENO: checking for $ac_func" >&5
17109: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17110: if eval "test \"\${$as_ac_var+set}\" = set"; then
17111: echo $ECHO_N "(cached) $ECHO_C" >&6
17112: else
17113: cat >conftest.$ac_ext <<_ACEOF
17114: /* confdefs.h. */
17115: _ACEOF
17116: cat confdefs.h >>conftest.$ac_ext
17117: cat >>conftest.$ac_ext <<_ACEOF
17118: /* end confdefs.h. */
17119: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121: #define $ac_func innocuous_$ac_func
17122:
17123: /* System header to define __stub macros and hopefully few prototypes,
17124: which can conflict with char $ac_func (); below.
17125: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126: <limits.h> exists even on freestanding compilers. */
17127:
17128: #ifdef __STDC__
17129: # include <limits.h>
17130: #else
17131: # include <assert.h>
17132: #endif
17133:
17134: #undef $ac_func
17135:
17136: /* Override any gcc2 internal prototype to avoid an error. */
17137: #ifdef __cplusplus
17138: extern "C"
17139: {
17140: #endif
17141: /* We use char because int might match the return type of a gcc2
17142: builtin and then its argument prototype would still apply. */
17143: char $ac_func ();
17144: /* The GNU C library defines this for functions which it implements
17145: to always fail with ENOSYS. Some functions are actually named
17146: something starting with __ and the normal name is an alias. */
17147: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17148: choke me
17149: #else
17150: char (*f) () = $ac_func;
17151: #endif
17152: #ifdef __cplusplus
17153: }
17154: #endif
17155:
17156: int
17157: main ()
17158: {
17159: return f != $ac_func;
17160: ;
17161: return 0;
17162: }
17163: _ACEOF
17164: rm -f conftest.$ac_objext conftest$ac_exeext
17165: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17166: (eval $ac_link) 2>conftest.er1
17167: ac_status=$?
17168: grep -v '^ *+' conftest.er1 >conftest.err
17169: rm -f conftest.er1
17170: cat conftest.err >&5
17171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172: (exit $ac_status); } &&
17173: { ac_try='test -z "$ac_c_werror_flag"
17174: || test ! -s conftest.err'
17175: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176: (eval $ac_try) 2>&5
17177: ac_status=$?
17178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179: (exit $ac_status); }; } &&
17180: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17186: eval "$as_ac_var=yes"
17187: else
17188: echo "$as_me: failed program was:" >&5
17189: sed 's/^/| /' conftest.$ac_ext >&5
17190:
17191: eval "$as_ac_var=no"
17192: fi
17193: rm -f conftest.err conftest.$ac_objext \
17194: conftest$ac_exeext conftest.$ac_ext
17195: fi
17196: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17197: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17198: if test `eval echo '${'$as_ac_var'}'` = yes; then
17199: cat >>confdefs.h <<_ACEOF
17200: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201: _ACEOF
17202:
17203: else
17204:
17205:
17206: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17207:
17208: fi
17209: done
17210:
17211:
17212:
17213: for ac_func in strlcat strlcpy
17214: do
17215: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216: echo "$as_me:$LINENO: checking for $ac_func" >&5
17217: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17218: if eval "test \"\${$as_ac_var+set}\" = set"; then
17219: echo $ECHO_N "(cached) $ECHO_C" >&6
17220: else
17221: cat >conftest.$ac_ext <<_ACEOF
17222: /* confdefs.h. */
17223: _ACEOF
17224: cat confdefs.h >>conftest.$ac_ext
17225: cat >>conftest.$ac_ext <<_ACEOF
17226: /* end confdefs.h. */
17227: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229: #define $ac_func innocuous_$ac_func
17230:
17231: /* System header to define __stub macros and hopefully few prototypes,
17232: which can conflict with char $ac_func (); below.
17233: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234: <limits.h> exists even on freestanding compilers. */
17235:
17236: #ifdef __STDC__
17237: # include <limits.h>
17238: #else
17239: # include <assert.h>
17240: #endif
17241:
17242: #undef $ac_func
17243:
17244: /* Override any gcc2 internal prototype to avoid an error. */
17245: #ifdef __cplusplus
17246: extern "C"
17247: {
17248: #endif
17249: /* We use char because int might match the return type of a gcc2
17250: builtin and then its argument prototype would still apply. */
17251: char $ac_func ();
17252: /* The GNU C library defines this for functions which it implements
17253: to always fail with ENOSYS. Some functions are actually named
17254: something starting with __ and the normal name is an alias. */
17255: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17256: choke me
17257: #else
17258: char (*f) () = $ac_func;
17259: #endif
17260: #ifdef __cplusplus
17261: }
17262: #endif
17263:
17264: int
17265: main ()
17266: {
17267: return f != $ac_func;
17268: ;
17269: return 0;
17270: }
17271: _ACEOF
17272: rm -f conftest.$ac_objext conftest$ac_exeext
17273: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274: (eval $ac_link) 2>conftest.er1
17275: ac_status=$?
17276: grep -v '^ *+' conftest.er1 >conftest.err
17277: rm -f conftest.er1
17278: cat conftest.err >&5
17279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280: (exit $ac_status); } &&
17281: { ac_try='test -z "$ac_c_werror_flag"
17282: || test ! -s conftest.err'
17283: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284: (eval $ac_try) 2>&5
17285: ac_status=$?
17286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287: (exit $ac_status); }; } &&
17288: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17294: eval "$as_ac_var=yes"
17295: else
17296: echo "$as_me: failed program was:" >&5
17297: sed 's/^/| /' conftest.$ac_ext >&5
17298:
17299: eval "$as_ac_var=no"
17300: fi
17301: rm -f conftest.err conftest.$ac_objext \
17302: conftest$ac_exeext conftest.$ac_ext
17303: fi
17304: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17305: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17306: if test `eval echo '${'$as_ac_var'}'` = yes; then
17307: cat >>confdefs.h <<_ACEOF
17308: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309: _ACEOF
17310:
17311: else
17312:
17313:
17314: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17315:
17316: fi
17317: done
17318:
17319:
17320:
17321: cat >>confdefs.h <<_ACEOF
17322: #define LT_LIBEXT "$libext"
17323: _ACEOF
17324:
17325:
17326: name=
17327: eval "lt_libprefix=\"$libname_spec\""
17328:
17329: cat >>confdefs.h <<_ACEOF
17330: #define LT_LIBPREFIX "$lt_libprefix"
17331: _ACEOF
17332:
17333:
17334: name=ltdl
17335: eval "LTDLOPEN=\"$libname_spec\""
17336:
17337:
17338:
17339:
17340:
17341:
17342:
17343:
17344: # Only expand once:
17345:
17346:
17347:
17348: # Check whether --enable-static or --disable-static was given.
17349: if test "${enable_static+set}" = set; then
17350: enableval="$enable_static"
17351: p=${PACKAGE-default}
17352: case $enableval in
17353: yes) enable_static=yes ;;
17354: no) enable_static=no ;;
17355: *)
17356: enable_static=no
17357: # Look at the argument we got. We use all the common list separators.
17358: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17359: for pkg in $enableval; do
17360: IFS="$lt_save_ifs"
17361: if test "X$pkg" = "X$p"; then
17362: enable_static=yes
17363: fi
17364: done
17365: IFS="$lt_save_ifs"
17366: ;;
17367: esac
17368: else
17369: enable_static=no
17370: fi;
17371:
17372:
17373:
17374:
17375:
17376:
17377:
17378:
17379:
17380:
17381:
17382:
17383:
17384: for ac_header in stdio.h \
17385: stdlib.h \
17386: string.h \
17387: setjmp.h \
17388: ctype.h \
17389: setjmp.h
17390:
17391: do
17392: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17393: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17394: echo "$as_me:$LINENO: checking for $ac_header" >&5
17395: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17396: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17397: echo $ECHO_N "(cached) $ECHO_C" >&6
17398: fi
17399: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17400: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17401: else
17402: # Is the header compilable?
17403: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17404: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17405: cat >conftest.$ac_ext <<_ACEOF
17406: /* confdefs.h. */
17407: _ACEOF
17408: cat confdefs.h >>conftest.$ac_ext
17409: cat >>conftest.$ac_ext <<_ACEOF
17410: /* end confdefs.h. */
17411: $ac_includes_default
17412: #include <$ac_header>
17413: _ACEOF
17414: rm -f conftest.$ac_objext
17415: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17416: (eval $ac_compile) 2>conftest.er1
17417: ac_status=$?
17418: grep -v '^ *+' conftest.er1 >conftest.err
17419: rm -f conftest.er1
17420: cat conftest.err >&5
17421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422: (exit $ac_status); } &&
17423: { ac_try='test -z "$ac_c_werror_flag"
17424: || test ! -s conftest.err'
17425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426: (eval $ac_try) 2>&5
17427: ac_status=$?
17428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429: (exit $ac_status); }; } &&
17430: { ac_try='test -s conftest.$ac_objext'
17431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432: (eval $ac_try) 2>&5
17433: ac_status=$?
17434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435: (exit $ac_status); }; }; then
17436: ac_header_compiler=yes
17437: else
17438: echo "$as_me: failed program was:" >&5
17439: sed 's/^/| /' conftest.$ac_ext >&5
17440:
17441: ac_header_compiler=no
17442: fi
17443: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17444: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17445: echo "${ECHO_T}$ac_header_compiler" >&6
17446:
17447: # Is the header present?
17448: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17449: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17450: cat >conftest.$ac_ext <<_ACEOF
17451: /* confdefs.h. */
17452: _ACEOF
17453: cat confdefs.h >>conftest.$ac_ext
17454: cat >>conftest.$ac_ext <<_ACEOF
17455: /* end confdefs.h. */
17456: #include <$ac_header>
17457: _ACEOF
17458: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17459: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17460: ac_status=$?
17461: grep -v '^ *+' conftest.er1 >conftest.err
17462: rm -f conftest.er1
17463: cat conftest.err >&5
17464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465: (exit $ac_status); } >/dev/null; then
17466: if test -s conftest.err; then
17467: ac_cpp_err=$ac_c_preproc_warn_flag
17468: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17469: else
17470: ac_cpp_err=
17471: fi
17472: else
17473: ac_cpp_err=yes
17474: fi
17475: if test -z "$ac_cpp_err"; then
17476: ac_header_preproc=yes
17477: else
17478: echo "$as_me: failed program was:" >&5
17479: sed 's/^/| /' conftest.$ac_ext >&5
17480:
17481: ac_header_preproc=no
17482: fi
17483: rm -f conftest.err conftest.$ac_ext
17484: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17485: echo "${ECHO_T}$ac_header_preproc" >&6
17486:
17487: # So? What about this header?
17488: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17489: yes:no: )
17490: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17491: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17492: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17493: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17494: ac_header_preproc=yes
17495: ;;
17496: no:yes:* )
17497: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17498: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17499: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17500: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17501: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17502: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17503: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17504: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17505: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17506: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17507: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17508: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17509: (
17510: cat <<\_ASBOX
17511: ## ---------------------------------- ##
17512: ## Report this to the parser3 lists. ##
17513: ## ---------------------------------- ##
17514: _ASBOX
17515: ) |
17516: sed "s/^/$as_me: WARNING: /" >&2
17517: ;;
17518: esac
17519: echo "$as_me:$LINENO: checking for $ac_header" >&5
17520: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17521: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17522: echo $ECHO_N "(cached) $ECHO_C" >&6
17523: else
17524: eval "$as_ac_Header=\$ac_header_preproc"
17525: fi
17526: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17527: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17528:
17529: fi
17530: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17531: cat >>confdefs.h <<_ACEOF
17532: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17533: _ACEOF
17534:
17535: fi
17536:
17537: done
17538:
17539:
17540: echo "$as_me:$LINENO: checking for BSD setenv/getenv/unsetenv" >&5
17541: echo $ECHO_N "checking for BSD setenv/getenv/unsetenv... $ECHO_C" >&6
17542: cat >conftest.$ac_ext <<_ACEOF
17543: /* confdefs.h. */
17544: _ACEOF
17545: cat confdefs.h >>conftest.$ac_ext
17546: cat >>conftest.$ac_ext <<_ACEOF
17547: /* end confdefs.h. */
17548: #ifdef HAVE_STDLIB_H
17549: # include <stdlib.h>
17550: #endif
17551: #ifdef HAVE_STRING_H
17552: # include <string.h>
17553: #endif
17554:
17555: int
17556: main ()
17557: {
17558: #define TEST_NAME "oracle-configure-test-var"
17559: #define TEST_VALUE "oracle-configure-test-value"
17560: int result=setenv(TEST_NAME, TEST_VALUE, 1/*overwrite*/);
17561: char *getenv_value=getenv(TEST_NAME);
17562: if(!getenv_value)
17563: return 1;
17564: if(strcmp(getenv_value, TEST_VALUE)!=0)
17565: return 2;
17566: unsetenv(TEST_NAME);
17567:
17568: ;
17569: return 0;
17570: }
17571: _ACEOF
17572: rm -f conftest.$ac_objext conftest$ac_exeext
17573: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574: (eval $ac_link) 2>conftest.er1
17575: ac_status=$?
17576: grep -v '^ *+' conftest.er1 >conftest.err
17577: rm -f conftest.er1
17578: cat conftest.err >&5
17579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580: (exit $ac_status); } &&
17581: { ac_try='test -z "$ac_c_werror_flag"
17582: || test ! -s conftest.err'
17583: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584: (eval $ac_try) 2>&5
17585: ac_status=$?
17586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587: (exit $ac_status); }; } &&
17588: { ac_try='test -s conftest$ac_exeext'
17589: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590: (eval $ac_try) 2>&5
17591: ac_status=$?
17592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593: (exit $ac_status); }; }; then
17594:
17595: echo "$as_me:$LINENO: result: yes" >&5
17596: echo "${ECHO_T}yes" >&6
17597:
17598: cat >>confdefs.h <<\_ACEOF
17599: #define HAVE_SETENV
17600: _ACEOF
17601:
17602:
17603: else
17604: echo "$as_me: failed program was:" >&5
17605: sed 's/^/| /' conftest.$ac_ext >&5
17606:
17607: echo "$as_me:$LINENO: result: no" >&5
17608: echo "${ECHO_T}no" >&6
17609:
17610: echo "$as_me:$LINENO: checking for POSIX putenv/getenv" >&5
17611: echo $ECHO_N "checking for POSIX putenv/getenv... $ECHO_C" >&6
17612: cat >conftest.$ac_ext <<_ACEOF
17613: /* confdefs.h. */
17614: _ACEOF
17615: cat confdefs.h >>conftest.$ac_ext
17616: cat >>conftest.$ac_ext <<_ACEOF
17617: /* end confdefs.h. */
17618: #ifdef HAVE_STDLIB_H
17619: # include <stdlib.h>
17620: #endif
17621: #ifdef HAVE_STRING_H
17622: # include <string.h>
17623: #endif
17624:
17625: int
17626: main ()
17627: {
17628: #define TEST_NAME "oracle-configure-test-var"
17629: #define TEST_VALUE "oracle-configure-test-value"
17630: int result=putenv(TEST_NAME"="TEST_VALUE);
17631: char *getenv_value=getenv(TEST_NAME);
17632: if(!getenv_value)
17633: return 1;
17634: if(strcmp(getenv_value, TEST_NAME)!=0)
17635: return 2;
17636:
17637: ;
17638: return 0;
17639: }
17640: _ACEOF
17641: rm -f conftest.$ac_objext conftest$ac_exeext
17642: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643: (eval $ac_link) 2>conftest.er1
17644: ac_status=$?
17645: grep -v '^ *+' conftest.er1 >conftest.err
17646: rm -f conftest.er1
17647: cat conftest.err >&5
17648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649: (exit $ac_status); } &&
17650: { ac_try='test -z "$ac_c_werror_flag"
17651: || test ! -s conftest.err'
17652: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653: (eval $ac_try) 2>&5
17654: ac_status=$?
17655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656: (exit $ac_status); }; } &&
17657: { ac_try='test -s conftest$ac_exeext'
17658: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659: (eval $ac_try) 2>&5
17660: ac_status=$?
17661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662: (exit $ac_status); }; }; then
17663:
17664: echo "$as_me:$LINENO: result: yes" >&5
17665: echo "${ECHO_T}yes" >&6
17666:
17667: cat >>confdefs.h <<\_ACEOF
17668: #define HAVE_PUTENV
17669: _ACEOF
17670:
17671:
17672: else
17673: echo "$as_me: failed program was:" >&5
17674: sed 's/^/| /' conftest.$ac_ext >&5
17675:
17676: echo "$as_me:$LINENO: result: no" >&5
17677: echo "${ECHO_T}no" >&6
17678: { { echo "$as_me:$LINENO: error: \"there must be some function to modify environment\"" >&5
17679: echo "$as_me: error: \"there must be some function to modify environment\"" >&2;}
17680: { (exit 1); exit 1; }; }
17681:
17682: fi
17683: rm -f conftest.err conftest.$ac_objext \
17684: conftest$ac_exeext conftest.$ac_ext
17685:
17686: fi
17687: rm -f conftest.err conftest.$ac_objext \
17688: conftest$ac_exeext conftest.$ac_ext
17689:
17690: echo "$as_me:$LINENO: checking for size_t" >&5
17691: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17692: if test "${ac_cv_type_size_t+set}" = set; then
17693: echo $ECHO_N "(cached) $ECHO_C" >&6
17694: else
17695: cat >conftest.$ac_ext <<_ACEOF
17696: /* confdefs.h. */
17697: _ACEOF
17698: cat confdefs.h >>conftest.$ac_ext
17699: cat >>conftest.$ac_ext <<_ACEOF
17700: /* end confdefs.h. */
17701: $ac_includes_default
17702: int
17703: main ()
17704: {
17705: if ((size_t *) 0)
17706: return 0;
17707: if (sizeof (size_t))
17708: return 0;
17709: ;
17710: return 0;
17711: }
17712: _ACEOF
17713: rm -f conftest.$ac_objext
17714: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17715: (eval $ac_compile) 2>conftest.er1
17716: ac_status=$?
17717: grep -v '^ *+' conftest.er1 >conftest.err
17718: rm -f conftest.er1
17719: cat conftest.err >&5
17720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721: (exit $ac_status); } &&
17722: { ac_try='test -z "$ac_c_werror_flag"
17723: || test ! -s conftest.err'
17724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725: (eval $ac_try) 2>&5
17726: ac_status=$?
17727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728: (exit $ac_status); }; } &&
17729: { ac_try='test -s conftest.$ac_objext'
17730: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731: (eval $ac_try) 2>&5
17732: ac_status=$?
17733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734: (exit $ac_status); }; }; then
17735: ac_cv_type_size_t=yes
17736: else
17737: echo "$as_me: failed program was:" >&5
17738: sed 's/^/| /' conftest.$ac_ext >&5
17739:
17740: ac_cv_type_size_t=no
17741: fi
17742: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17743: fi
17744: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17745: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17746: if test $ac_cv_type_size_t = yes; then
17747: :
17748: else
17749:
17750: cat >>confdefs.h <<_ACEOF
17751: #define size_t unsigned
17752: _ACEOF
17753:
17754: fi
17755:
17756:
17757:
17758: ac_config_files="$ac_config_files Makefile"
17759: cat >confcache <<\_ACEOF
17760: # This file is a shell script that caches the results of configure
17761: # tests run on this system so they can be shared between configure
17762: # scripts and configure runs, see configure's option --config-cache.
17763: # It is not useful on other systems. If it contains results you don't
17764: # want to keep, you may remove or edit it.
17765: #
17766: # config.status only pays attention to the cache file if you give it
17767: # the --recheck option to rerun configure.
17768: #
17769: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17770: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17771: # following values.
17772:
17773: _ACEOF
17774:
17775: # The following way of writing the cache mishandles newlines in values,
17776: # but we know of no workaround that is simple, portable, and efficient.
17777: # So, don't put newlines in cache variables' values.
17778: # Ultrix sh set writes to stderr and can't be redirected directly,
17779: # and sets the high bit in the cache file unless we assign to the vars.
17780: {
17781: (set) 2>&1 |
17782: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17783: *ac_space=\ *)
17784: # `set' does not quote correctly, so add quotes (double-quote
17785: # substitution turns \\\\ into \\, and sed turns \\ into \).
17786: sed -n \
17787: "s/'/'\\\\''/g;
17788: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17789: ;;
17790: *)
17791: # `set' quotes correctly as required by POSIX, so do not add quotes.
17792: sed -n \
17793: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17794: ;;
17795: esac;
17796: } |
17797: sed '
17798: t clear
17799: : clear
17800: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17801: t end
17802: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17803: : end' >>confcache
17804: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17805: if test -w $cache_file; then
17806: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17807: cat confcache >$cache_file
17808: else
17809: echo "not updating unwritable cache $cache_file"
17810: fi
17811: fi
17812: rm -f confcache
17813:
17814: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17815: # Let make expand exec_prefix.
17816: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17817:
17818: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17819: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17820: # trailing colons and then remove the whole line if VPATH becomes empty
17821: # (actually we leave an empty line to preserve line numbers).
17822: if test "x$srcdir" = x.; then
17823: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17824: s/:*\$(srcdir):*/:/;
17825: s/:*\${srcdir}:*/:/;
17826: s/:*@srcdir@:*/:/;
17827: s/^\([^=]*=[ ]*\):*/\1/;
17828: s/:*$//;
17829: s/^[^=]*=[ ]*$//;
17830: }'
17831: fi
17832:
17833: DEFS=-DHAVE_CONFIG_H
17834:
17835: ac_libobjs=
17836: ac_ltlibobjs=
17837: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17838: # 1. Remove the extension, and $U if already installed.
17839: ac_i=`echo "$ac_i" |
17840: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17841: # 2. Add them.
17842: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17843: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17844: done
17845: LIBOBJS=$ac_libobjs
17846:
17847: LTLIBOBJS=$ac_ltlibobjs
17848:
17849:
17850: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17851: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17852: Usually this means the macro was only invoked conditionally." >&5
17853: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17854: Usually this means the macro was only invoked conditionally." >&2;}
17855: { (exit 1); exit 1; }; }
17856: fi
17857: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17858: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17859: Usually this means the macro was only invoked conditionally." >&5
17860: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17861: Usually this means the macro was only invoked conditionally." >&2;}
17862: { (exit 1); exit 1; }; }
17863: fi
17864: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17865: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17866: Usually this means the macro was only invoked conditionally." >&5
17867: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17868: Usually this means the macro was only invoked conditionally." >&2;}
17869: { (exit 1); exit 1; }; }
17870: fi
17871: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17872: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17873: Usually this means the macro was only invoked conditionally." >&5
17874: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17875: Usually this means the macro was only invoked conditionally." >&2;}
17876: { (exit 1); exit 1; }; }
17877: fi
17878: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17879: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17880: Usually this means the macro was only invoked conditionally." >&5
17881: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17882: Usually this means the macro was only invoked conditionally." >&2;}
17883: { (exit 1); exit 1; }; }
17884: fi
17885: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17886:
17887: _ltdl_libobjs=
17888: _ltdl_ltlibobjs=
17889: if test -n "$_LT_LIBOBJS"; then
17890: # Remove the extension.
17891: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17892: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17893: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17894: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17895: done
17896: fi
17897: ltdl_LIBOBJS=$_ltdl_libobjs
17898:
17899: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17900:
17901:
17902:
17903: : ${CONFIG_STATUS=./config.status}
17904: ac_clean_files_save=$ac_clean_files
17905: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17906: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17907: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17908: cat >$CONFIG_STATUS <<_ACEOF
17909: #! $SHELL
17910: # Generated by $as_me.
17911: # Run this file to recreate the current configuration.
17912: # Compiler output produced by configure, useful for debugging
17913: # configure, is in config.log if it exists.
17914:
17915: debug=false
17916: ac_cs_recheck=false
17917: ac_cs_silent=false
17918: SHELL=\${CONFIG_SHELL-$SHELL}
17919: _ACEOF
17920:
17921: cat >>$CONFIG_STATUS <<\_ACEOF
17922: ## --------------------- ##
17923: ## M4sh Initialization. ##
17924: ## --------------------- ##
17925:
17926: # Be Bourne compatible
17927: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17928: emulate sh
17929: NULLCMD=:
17930: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17931: # is contrary to our usage. Disable this feature.
17932: alias -g '${1+"$@"}'='"$@"'
17933: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17934: set -o posix
17935: fi
17936: DUALCASE=1; export DUALCASE # for MKS sh
17937:
17938: # Support unset when possible.
17939: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17940: as_unset=unset
17941: else
17942: as_unset=false
17943: fi
17944:
17945:
17946: # Work around bugs in pre-3.0 UWIN ksh.
17947: $as_unset ENV MAIL MAILPATH
17948: PS1='$ '
17949: PS2='> '
17950: PS4='+ '
17951:
17952: # NLS nuisances.
17953: for as_var in \
17954: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17955: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17956: LC_TELEPHONE LC_TIME
17957: do
17958: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17959: eval $as_var=C; export $as_var
17960: else
17961: $as_unset $as_var
17962: fi
17963: done
17964:
17965: # Required to use basename.
17966: if expr a : '\(a\)' >/dev/null 2>&1; then
17967: as_expr=expr
17968: else
17969: as_expr=false
17970: fi
17971:
17972: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17973: as_basename=basename
17974: else
17975: as_basename=false
17976: fi
17977:
17978:
17979: # Name of the executable.
17980: as_me=`$as_basename "$0" ||
17981: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17982: X"$0" : 'X\(//\)$' \| \
17983: X"$0" : 'X\(/\)$' \| \
17984: . : '\(.\)' 2>/dev/null ||
17985: echo X/"$0" |
17986: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17987: /^X\/\(\/\/\)$/{ s//\1/; q; }
17988: /^X\/\(\/\).*/{ s//\1/; q; }
17989: s/.*/./; q'`
17990:
17991:
17992: # PATH needs CR, and LINENO needs CR and PATH.
17993: # Avoid depending upon Character Ranges.
17994: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17995: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17996: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17997: as_cr_digits='0123456789'
17998: as_cr_alnum=$as_cr_Letters$as_cr_digits
17999:
18000: # The user is always right.
18001: if test "${PATH_SEPARATOR+set}" != set; then
18002: echo "#! /bin/sh" >conf$$.sh
18003: echo "exit 0" >>conf$$.sh
18004: chmod +x conf$$.sh
18005: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18006: PATH_SEPARATOR=';'
18007: else
18008: PATH_SEPARATOR=:
18009: fi
18010: rm -f conf$$.sh
18011: fi
18012:
18013:
18014: as_lineno_1=$LINENO
18015: as_lineno_2=$LINENO
18016: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18017: test "x$as_lineno_1" != "x$as_lineno_2" &&
18018: test "x$as_lineno_3" = "x$as_lineno_2" || {
18019: # Find who we are. Look in the path if we contain no path at all
18020: # relative or not.
18021: case $0 in
18022: *[\\/]* ) as_myself=$0 ;;
18023: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18024: for as_dir in $PATH
18025: do
18026: IFS=$as_save_IFS
18027: test -z "$as_dir" && as_dir=.
18028: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18029: done
18030:
18031: ;;
18032: esac
18033: # We did not find ourselves, most probably we were run as `sh COMMAND'
18034: # in which case we are not to be found in the path.
18035: if test "x$as_myself" = x; then
18036: as_myself=$0
18037: fi
18038: if test ! -f "$as_myself"; then
18039: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18040: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18041: { (exit 1); exit 1; }; }
18042: fi
18043: case $CONFIG_SHELL in
18044: '')
18045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18046: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18047: do
18048: IFS=$as_save_IFS
18049: test -z "$as_dir" && as_dir=.
18050: for as_base in sh bash ksh sh5; do
18051: case $as_dir in
18052: /*)
18053: if ("$as_dir/$as_base" -c '
18054: as_lineno_1=$LINENO
18055: as_lineno_2=$LINENO
18056: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18057: test "x$as_lineno_1" != "x$as_lineno_2" &&
18058: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18059: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18060: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18061: CONFIG_SHELL=$as_dir/$as_base
18062: export CONFIG_SHELL
18063: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18064: fi;;
18065: esac
18066: done
18067: done
18068: ;;
18069: esac
18070:
18071: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18072: # uniformly replaced by the line number. The first 'sed' inserts a
18073: # line-number line before each line; the second 'sed' does the real
18074: # work. The second script uses 'N' to pair each line-number line
18075: # with the numbered line, and appends trailing '-' during
18076: # substitution so that $LINENO is not a special case at line end.
18077: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18078: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18079: sed '=' <$as_myself |
18080: sed '
18081: N
18082: s,$,-,
18083: : loop
18084: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18085: t loop
18086: s,-$,,
18087: s,^['$as_cr_digits']*\n,,
18088: ' >$as_me.lineno &&
18089: chmod +x $as_me.lineno ||
18090: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18091: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18092: { (exit 1); exit 1; }; }
18093:
18094: # Don't try to exec as it changes $[0], causing all sort of problems
18095: # (the dirname of $[0] is not the place where we might find the
18096: # original and so on. Autoconf is especially sensible to this).
18097: . ./$as_me.lineno
18098: # Exit status is that of the last command.
18099: exit
18100: }
18101:
18102:
18103: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18104: *c*,-n*) ECHO_N= ECHO_C='
18105: ' ECHO_T=' ' ;;
18106: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18107: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18108: esac
18109:
18110: if expr a : '\(a\)' >/dev/null 2>&1; then
18111: as_expr=expr
18112: else
18113: as_expr=false
18114: fi
18115:
18116: rm -f conf$$ conf$$.exe conf$$.file
18117: echo >conf$$.file
18118: if ln -s conf$$.file conf$$ 2>/dev/null; then
18119: # We could just check for DJGPP; but this test a) works b) is more generic
18120: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18121: if test -f conf$$.exe; then
18122: # Don't use ln at all; we don't have any links
18123: as_ln_s='cp -p'
18124: else
18125: as_ln_s='ln -s'
18126: fi
18127: elif ln conf$$.file conf$$ 2>/dev/null; then
18128: as_ln_s=ln
18129: else
18130: as_ln_s='cp -p'
18131: fi
18132: rm -f conf$$ conf$$.exe conf$$.file
18133:
18134: if mkdir -p . 2>/dev/null; then
18135: as_mkdir_p=:
18136: else
18137: test -d ./-p && rmdir ./-p
18138: as_mkdir_p=false
18139: fi
18140:
18141: as_executable_p="test -f"
18142:
18143: # Sed expression to map a string onto a valid CPP name.
18144: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18145:
18146: # Sed expression to map a string onto a valid variable name.
18147: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18148:
18149:
18150: # IFS
18151: # We need space, tab and new line, in precisely that order.
18152: as_nl='
18153: '
18154: IFS=" $as_nl"
18155:
18156: # CDPATH.
18157: $as_unset CDPATH
18158:
18159: exec 6>&1
18160:
18161: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18162: # report actual input values of CONFIG_FILES etc. instead of their
18163: # values after options handling. Logging --version etc. is OK.
18164: exec 5>>config.log
18165: {
18166: echo
18167: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18168: ## Running $as_me. ##
18169: _ASBOX
18170: } >&5
18171: cat >&5 <<_CSEOF
18172:
18173: This file was extended by parser3 $as_me 10.2, which was
18174: generated by GNU Autoconf 2.59. Invocation command line was
18175:
18176: CONFIG_FILES = $CONFIG_FILES
18177: CONFIG_HEADERS = $CONFIG_HEADERS
18178: CONFIG_LINKS = $CONFIG_LINKS
18179: CONFIG_COMMANDS = $CONFIG_COMMANDS
18180: $ $0 $@
18181:
18182: _CSEOF
18183: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18184: echo >&5
18185: _ACEOF
18186:
18187: # Files that config.status was made for.
18188: if test -n "$ac_config_files"; then
18189: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18190: fi
18191:
18192: if test -n "$ac_config_headers"; then
18193: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18194: fi
18195:
18196: if test -n "$ac_config_links"; then
18197: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18198: fi
18199:
18200: if test -n "$ac_config_commands"; then
18201: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18202: fi
18203:
18204: cat >>$CONFIG_STATUS <<\_ACEOF
18205:
18206: ac_cs_usage="\
18207: \`$as_me' instantiates files from templates according to the
18208: current configuration.
18209:
18210: Usage: $0 [OPTIONS] [FILE]...
18211:
18212: -h, --help print this help, then exit
18213: -V, --version print version number, then exit
18214: -q, --quiet do not print progress messages
18215: -d, --debug don't remove temporary files
18216: --recheck update $as_me by reconfiguring in the same conditions
18217: --file=FILE[:TEMPLATE]
18218: instantiate the configuration file FILE
18219: --header=FILE[:TEMPLATE]
18220: instantiate the configuration header FILE
18221:
18222: Configuration files:
18223: $config_files
18224:
18225: Configuration headers:
18226: $config_headers
18227:
18228: Configuration commands:
18229: $config_commands
18230:
18231: Report bugs to <bug-autoconf@gnu.org>."
18232: _ACEOF
18233:
18234: cat >>$CONFIG_STATUS <<_ACEOF
18235: ac_cs_version="\\
18236: parser3 config.status 10.2
18237: configured by $0, generated by GNU Autoconf 2.59,
18238: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18239:
18240: Copyright (C) 2003 Free Software Foundation, Inc.
18241: This config.status script is free software; the Free Software Foundation
18242: gives unlimited permission to copy, distribute and modify it."
18243: srcdir=$srcdir
18244: INSTALL="$INSTALL"
18245: _ACEOF
18246:
18247: cat >>$CONFIG_STATUS <<\_ACEOF
18248: # If no file are specified by the user, then we need to provide default
18249: # value. By we need to know if files were specified by the user.
18250: ac_need_defaults=:
18251: while test $# != 0
18252: do
18253: case $1 in
18254: --*=*)
18255: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18256: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18257: ac_shift=:
18258: ;;
18259: -*)
18260: ac_option=$1
18261: ac_optarg=$2
18262: ac_shift=shift
18263: ;;
18264: *) # This is not an option, so the user has probably given explicit
18265: # arguments.
18266: ac_option=$1
18267: ac_need_defaults=false;;
18268: esac
18269:
18270: case $ac_option in
18271: # Handling of the options.
18272: _ACEOF
18273: cat >>$CONFIG_STATUS <<\_ACEOF
18274: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18275: ac_cs_recheck=: ;;
18276: --version | --vers* | -V )
18277: echo "$ac_cs_version"; exit 0 ;;
18278: --he | --h)
18279: # Conflict between --help and --header
18280: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18281: Try \`$0 --help' for more information." >&5
18282: echo "$as_me: error: ambiguous option: $1
18283: Try \`$0 --help' for more information." >&2;}
18284: { (exit 1); exit 1; }; };;
18285: --help | --hel | -h )
18286: echo "$ac_cs_usage"; exit 0 ;;
18287: --debug | --d* | -d )
18288: debug=: ;;
18289: --file | --fil | --fi | --f )
18290: $ac_shift
18291: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18292: ac_need_defaults=false;;
18293: --header | --heade | --head | --hea )
18294: $ac_shift
18295: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18296: ac_need_defaults=false;;
18297: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18298: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18299: ac_cs_silent=: ;;
18300:
18301: # This is an error.
18302: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18303: Try \`$0 --help' for more information." >&5
18304: echo "$as_me: error: unrecognized option: $1
18305: Try \`$0 --help' for more information." >&2;}
18306: { (exit 1); exit 1; }; } ;;
18307:
18308: *) ac_config_targets="$ac_config_targets $1" ;;
18309:
18310: esac
18311: shift
18312: done
18313:
18314: ac_configure_extra_args=
18315:
18316: if $ac_cs_silent; then
18317: exec 6>/dev/null
18318: ac_configure_extra_args="$ac_configure_extra_args --silent"
18319: fi
18320:
18321: _ACEOF
18322: cat >>$CONFIG_STATUS <<_ACEOF
18323: if \$ac_cs_recheck; then
18324: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18325: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18326: fi
18327:
18328: _ACEOF
18329:
18330: cat >>$CONFIG_STATUS <<_ACEOF
18331: #
18332: # INIT-COMMANDS section.
18333: #
18334:
18335: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18336:
18337:
18338: # The HP-UX ksh and POSIX shell print the target directory to stdout
18339: # if CDPATH is set.
18340: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18341:
18342: sed_quote_subst='$sed_quote_subst'
18343: double_quote_subst='$double_quote_subst'
18344: delay_variable_subst='$delay_variable_subst'
18345: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18346: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18347: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18348: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18349: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18350: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18351: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18352: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18353: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18354: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18355: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18356: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18357: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18358: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18359: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18360: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18361: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18362: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18363: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18364: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18365: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18366: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18367: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18368: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18369: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18370: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18371: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18372: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18373: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18374: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18375: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18376: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18377: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18378: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18379: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18380: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18381: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18382: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18383: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18384: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18385: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18386: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18387: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18388: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18389: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18390: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18391: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18392: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18393: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18394: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18395: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18396: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18397: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18398: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18399: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18400: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18401: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18402: 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"`'
18403: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18404: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18405: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18406: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18407: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18408: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18409: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18410: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18411: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18412: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18413: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18414: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18415: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18416: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18417: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18418: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18419: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18420: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18421: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18422: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18423: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18424: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18425: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18426: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18427: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18428: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18429: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18430: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18431: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18432: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18433: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18434: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18435: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18436: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18437: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18438: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18439: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18440: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18441: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18442: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18443: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18444: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18445: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18446: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18447: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18448: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18449: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18450: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18451: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18452: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18453: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18454: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18455: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18456: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18457: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18458: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18459: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18460: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18461: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18462: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18463: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18464: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18465: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18466: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18467: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18468: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18469: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18470: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18471: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18472: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18473: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18474: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18475: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18476: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18477: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18478: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18479: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18480: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18481: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18482: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18483: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18484: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18485: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18486: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18487: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18488: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18489: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18490: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18491: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18492: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18493: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18494: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18495: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18496: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18497: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18498: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18499: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18500: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18501: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18502: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18503: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18504: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18505: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18506: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18507: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18508: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18509: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18510: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18511: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18512: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18513: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18514: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18515: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18516: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18517: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18518: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18519: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18520: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18521: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18522: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18523: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18524: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18525: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18526: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18527: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18528: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18529: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18530:
18531: LTCC='$LTCC'
18532: LTCFLAGS='$LTCFLAGS'
18533: compiler='$compiler_DEFAULT'
18534:
18535: # A function that is used when there is no print builtin or printf.
18536: func_fallback_echo ()
18537: {
18538: eval 'cat <<_LTECHO_EOF
18539: \$1
18540: _LTECHO_EOF'
18541: }
18542:
18543: # Quote evaled strings.
18544: for var in AS \
18545: DLLTOOL \
18546: OBJDUMP \
18547: SHELL \
18548: ECHO \
18549: PATH_SEPARATOR \
18550: SED \
18551: GREP \
18552: EGREP \
18553: FGREP \
18554: LD \
18555: NM \
18556: LN_S \
18557: lt_SP2NL \
18558: lt_NL2SP \
18559: reload_flag \
18560: deplibs_check_method \
18561: file_magic_cmd \
18562: file_magic_glob \
18563: want_nocaseglob \
18564: sharedlib_from_linklib_cmd \
18565: AR \
18566: AR_FLAGS \
18567: archiver_list_spec \
18568: STRIP \
18569: RANLIB \
18570: CC \
18571: CFLAGS \
18572: compiler \
18573: lt_cv_sys_global_symbol_pipe \
18574: lt_cv_sys_global_symbol_to_cdecl \
18575: lt_cv_sys_global_symbol_to_c_name_address \
18576: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18577: nm_file_list_spec \
18578: lt_prog_compiler_no_builtin_flag \
18579: lt_prog_compiler_pic \
18580: lt_prog_compiler_wl \
18581: lt_prog_compiler_static \
18582: lt_cv_prog_compiler_c_o \
18583: need_locks \
18584: MANIFEST_TOOL \
18585: DSYMUTIL \
18586: NMEDIT \
18587: LIPO \
18588: OTOOL \
18589: OTOOL64 \
18590: shrext_cmds \
18591: export_dynamic_flag_spec \
18592: whole_archive_flag_spec \
18593: compiler_needs_object \
18594: with_gnu_ld \
18595: allow_undefined_flag \
18596: no_undefined_flag \
18597: hardcode_libdir_flag_spec \
18598: hardcode_libdir_separator \
18599: exclude_expsyms \
18600: include_expsyms \
18601: file_list_spec \
18602: variables_saved_for_relink \
18603: libname_spec \
18604: library_names_spec \
18605: soname_spec \
18606: install_override_mode \
18607: finish_eval \
18608: old_striplib \
18609: striplib \
18610: compiler_lib_search_dirs \
18611: predep_objects \
18612: postdep_objects \
18613: predeps \
18614: postdeps \
18615: compiler_lib_search_path \
18616: LD_CXX \
18617: reload_flag_CXX \
18618: compiler_CXX \
18619: lt_prog_compiler_no_builtin_flag_CXX \
18620: lt_prog_compiler_pic_CXX \
18621: lt_prog_compiler_wl_CXX \
18622: lt_prog_compiler_static_CXX \
18623: lt_cv_prog_compiler_c_o_CXX \
18624: export_dynamic_flag_spec_CXX \
18625: whole_archive_flag_spec_CXX \
18626: compiler_needs_object_CXX \
18627: with_gnu_ld_CXX \
18628: allow_undefined_flag_CXX \
18629: no_undefined_flag_CXX \
18630: hardcode_libdir_flag_spec_CXX \
18631: hardcode_libdir_separator_CXX \
18632: exclude_expsyms_CXX \
18633: include_expsyms_CXX \
18634: file_list_spec_CXX \
18635: compiler_lib_search_dirs_CXX \
18636: predep_objects_CXX \
18637: postdep_objects_CXX \
18638: predeps_CXX \
18639: postdeps_CXX \
18640: compiler_lib_search_path_CXX; do
18641: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18642: *[\\\\\\\`\\"\\\$]*)
18643: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18644: ;;
18645: *)
18646: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18647: ;;
18648: esac
18649: done
18650:
18651: # Double-quote double-evaled strings.
18652: for var in reload_cmds \
18653: old_postinstall_cmds \
18654: old_postuninstall_cmds \
18655: old_archive_cmds \
18656: extract_expsyms_cmds \
18657: old_archive_from_new_cmds \
18658: old_archive_from_expsyms_cmds \
18659: archive_cmds \
18660: archive_expsym_cmds \
18661: module_cmds \
18662: module_expsym_cmds \
18663: export_symbols_cmds \
18664: prelink_cmds \
18665: postlink_cmds \
18666: postinstall_cmds \
18667: postuninstall_cmds \
18668: finish_cmds \
18669: sys_lib_search_path_spec \
18670: sys_lib_dlsearch_path_spec \
18671: reload_cmds_CXX \
18672: old_archive_cmds_CXX \
18673: old_archive_from_new_cmds_CXX \
18674: old_archive_from_expsyms_cmds_CXX \
18675: archive_cmds_CXX \
18676: archive_expsym_cmds_CXX \
18677: module_cmds_CXX \
18678: module_expsym_cmds_CXX \
18679: export_symbols_cmds_CXX \
18680: prelink_cmds_CXX \
18681: postlink_cmds_CXX; do
18682: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18683: *[\\\\\\\`\\"\\\$]*)
18684: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18685: ;;
18686: *)
18687: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18688: ;;
18689: esac
18690: done
18691:
18692: ac_aux_dir='$ac_aux_dir'
18693: xsi_shell='$xsi_shell'
18694: lt_shell_append='$lt_shell_append'
18695:
18696: # See if we are running on zsh, and set the options which allow our
18697: # commands through without removal of \ escapes INIT.
18698: if test -n "\${ZSH_VERSION+set}" ; then
18699: setopt NO_GLOB_SUBST
18700: fi
18701:
18702:
18703: PACKAGE='$PACKAGE'
18704: VERSION='$VERSION'
18705: TIMESTAMP='$TIMESTAMP'
18706: RM='$RM'
18707: ofile='$ofile'
18708:
18709:
18710:
18711:
18712:
18713:
18714: _ACEOF
18715:
18716:
18717:
18718: cat >>$CONFIG_STATUS <<\_ACEOF
18719: for ac_config_target in $ac_config_targets
18720: do
18721: case "$ac_config_target" in
18722: # Handling of arguments.
18723: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18724: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18725: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18726: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18727: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18728: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18729: { (exit 1); exit 1; }; };;
18730: esac
18731: done
18732:
18733: # If the user did not use the arguments to specify the items to instantiate,
18734: # then the envvar interface is used. Set only those that are not.
18735: # We use the long form for the default assignment because of an extremely
18736: # bizarre bug on SunOS 4.1.3.
18737: if $ac_need_defaults; then
18738: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18739: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18740: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18741: fi
18742:
18743: # Have a temporary directory for convenience. Make it in the build tree
18744: # simply because there is no reason to put it here, and in addition,
18745: # creating and moving files from /tmp can sometimes cause problems.
18746: # Create a temporary directory, and hook for its removal unless debugging.
18747: $debug ||
18748: {
18749: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18750: trap '{ (exit 1); exit 1; }' 1 2 13 15
18751: }
18752:
18753: # Create a (secure) tmp directory for tmp files.
18754:
18755: {
18756: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18757: test -n "$tmp" && test -d "$tmp"
18758: } ||
18759: {
18760: tmp=./confstat$$-$RANDOM
18761: (umask 077 && mkdir $tmp)
18762: } ||
18763: {
18764: echo "$me: cannot create a temporary directory in ." >&2
18765: { (exit 1); exit 1; }
18766: }
18767:
18768: _ACEOF
18769:
18770: cat >>$CONFIG_STATUS <<_ACEOF
18771:
18772: #
18773: # CONFIG_FILES section.
18774: #
18775:
18776: # No need to generate the scripts if there are no CONFIG_FILES.
18777: # This happens for instance when ./config.status config.h
18778: if test -n "\$CONFIG_FILES"; then
18779: # Protect against being on the right side of a sed subst in config.status.
18780: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18781: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18782: s,@SHELL@,$SHELL,;t t
18783: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18784: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18785: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18786: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18787: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18788: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18789: s,@exec_prefix@,$exec_prefix,;t t
18790: s,@prefix@,$prefix,;t t
18791: s,@program_transform_name@,$program_transform_name,;t t
18792: s,@bindir@,$bindir,;t t
18793: s,@sbindir@,$sbindir,;t t
18794: s,@libexecdir@,$libexecdir,;t t
18795: s,@datadir@,$datadir,;t t
18796: s,@sysconfdir@,$sysconfdir,;t t
18797: s,@sharedstatedir@,$sharedstatedir,;t t
18798: s,@localstatedir@,$localstatedir,;t t
18799: s,@libdir@,$libdir,;t t
18800: s,@includedir@,$includedir,;t t
18801: s,@oldincludedir@,$oldincludedir,;t t
18802: s,@infodir@,$infodir,;t t
18803: s,@mandir@,$mandir,;t t
18804: s,@build_alias@,$build_alias,;t t
18805: s,@host_alias@,$host_alias,;t t
18806: s,@target_alias@,$target_alias,;t t
18807: s,@DEFS@,$DEFS,;t t
18808: s,@ECHO_C@,$ECHO_C,;t t
18809: s,@ECHO_N@,$ECHO_N,;t t
18810: s,@ECHO_T@,$ECHO_T,;t t
18811: s,@LIBS@,$LIBS,;t t
18812: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18813: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18814: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18815: s,@CYGPATH_W@,$CYGPATH_W,;t t
18816: s,@PACKAGE@,$PACKAGE,;t t
18817: s,@VERSION@,$VERSION,;t t
18818: s,@ACLOCAL@,$ACLOCAL,;t t
18819: s,@AUTOCONF@,$AUTOCONF,;t t
18820: s,@AUTOMAKE@,$AUTOMAKE,;t t
18821: s,@AUTOHEADER@,$AUTOHEADER,;t t
18822: s,@MAKEINFO@,$MAKEINFO,;t t
18823: s,@install_sh@,$install_sh,;t t
18824: s,@STRIP@,$STRIP,;t t
18825: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18826: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18827: s,@mkdir_p@,$mkdir_p,;t t
18828: s,@AWK@,$AWK,;t t
18829: s,@SET_MAKE@,$SET_MAKE,;t t
18830: s,@am__leading_dot@,$am__leading_dot,;t t
18831: s,@AMTAR@,$AMTAR,;t t
18832: s,@am__tar@,$am__tar,;t t
18833: s,@am__untar@,$am__untar,;t t
18834: s,@ORACLE_OCI_INC@,$ORACLE_OCI_INC,;t t
18835: s,@ORACLE_PUBLIC_INC@,$ORACLE_PUBLIC_INC,;t t
18836: s,@CXX@,$CXX,;t t
18837: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.29 moko 18838: s,@LDFLAGS@,$LDFLAGS,;t t
1.25 moko 18839: s,@CPPFLAGS@,$CPPFLAGS,;t t
18840: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18841: s,@EXEEXT@,$EXEEXT,;t t
18842: s,@OBJEXT@,$OBJEXT,;t t
18843: s,@DEPDIR@,$DEPDIR,;t t
18844: s,@am__include@,$am__include,;t t
18845: s,@am__quote@,$am__quote,;t t
18846: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18847: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18848: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18849: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18850: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18851: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18852: s,@CC@,$CC,;t t
18853: s,@CFLAGS@,$CFLAGS,;t t
18854: s,@ac_ct_CC@,$ac_ct_CC,;t t
18855: s,@CCDEPMODE@,$CCDEPMODE,;t t
18856: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18857: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18858: s,@AS@,$AS,;t t
18859: s,@ac_ct_AS@,$ac_ct_AS,;t t
18860: s,@DLLTOOL@,$DLLTOOL,;t t
18861: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18862: s,@OBJDUMP@,$OBJDUMP,;t t
18863: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
18864: s,@LIBTOOL@,$LIBTOOL,;t t
18865: s,@build@,$build,;t t
18866: s,@build_cpu@,$build_cpu,;t t
18867: s,@build_vendor@,$build_vendor,;t t
18868: s,@build_os@,$build_os,;t t
18869: s,@host@,$host,;t t
18870: s,@host_cpu@,$host_cpu,;t t
18871: s,@host_vendor@,$host_vendor,;t t
18872: s,@host_os@,$host_os,;t t
18873: s,@SED@,$SED,;t t
18874: s,@EGREP@,$EGREP,;t t
18875: s,@FGREP@,$FGREP,;t t
18876: s,@GREP@,$GREP,;t t
18877: s,@LD@,$LD,;t t
18878: s,@DUMPBIN@,$DUMPBIN,;t t
18879: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18880: s,@NM@,$NM,;t t
18881: s,@LN_S@,$LN_S,;t t
18882: s,@AR@,$AR,;t t
18883: s,@ac_ct_AR@,$ac_ct_AR,;t t
18884: s,@RANLIB@,$RANLIB,;t t
18885: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18886: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18887: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18888: s,@DSYMUTIL@,$DSYMUTIL,;t t
18889: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18890: s,@NMEDIT@,$NMEDIT,;t t
18891: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18892: s,@LIPO@,$LIPO,;t t
18893: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18894: s,@OTOOL@,$OTOOL,;t t
18895: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18896: s,@OTOOL64@,$OTOOL64,;t t
18897: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18898: s,@CPP@,$CPP,;t t
18899: s,@CXXCPP@,$CXXCPP,;t t
18900: s,@LIBLTDL@,$LIBLTDL,;t t
18901: s,@LTDLDEPS@,$LTDLDEPS,;t t
18902: s,@LTDLINCL@,$LTDLINCL,;t t
18903: s,@INCLTDL@,$INCLTDL,;t t
18904: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18905: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18906: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18907: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18908: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
18909: s,@LIBADD_DL@,$LIBADD_DL,;t t
18910: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18911: s,@ARGZ_H@,$ARGZ_H,;t t
18912: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18913: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18914: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18915: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18916: s,@subdirs@,$subdirs,;t t
18917: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18918: s,@LTDLOPEN@,$LTDLOPEN,;t t
18919: s,@LIBOBJS@,$LIBOBJS,;t t
18920: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18921: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18922: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18923: CEOF
18924:
18925: _ACEOF
18926:
18927: cat >>$CONFIG_STATUS <<\_ACEOF
18928: # Split the substitutions into bite-sized pieces for seds with
18929: # small command number limits, like on Digital OSF/1 and HP-UX.
18930: ac_max_sed_lines=48
18931: ac_sed_frag=1 # Number of current file.
18932: ac_beg=1 # First line for current file.
18933: ac_end=$ac_max_sed_lines # Line after last line for current file.
18934: ac_more_lines=:
18935: ac_sed_cmds=
18936: while $ac_more_lines; do
18937: if test $ac_beg -gt 1; then
18938: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18939: else
18940: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18941: fi
18942: if test ! -s $tmp/subs.frag; then
18943: ac_more_lines=false
18944: else
18945: # The purpose of the label and of the branching condition is to
18946: # speed up the sed processing (if there are no `@' at all, there
18947: # is no need to browse any of the substitutions).
18948: # These are the two extra sed commands mentioned above.
18949: (echo ':t
18950: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18951: if test -z "$ac_sed_cmds"; then
18952: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18953: else
18954: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18955: fi
18956: ac_sed_frag=`expr $ac_sed_frag + 1`
18957: ac_beg=$ac_end
18958: ac_end=`expr $ac_end + $ac_max_sed_lines`
18959: fi
18960: done
18961: if test -z "$ac_sed_cmds"; then
18962: ac_sed_cmds=cat
18963: fi
18964: fi # test -n "$CONFIG_FILES"
18965:
18966: _ACEOF
18967: cat >>$CONFIG_STATUS <<\_ACEOF
18968: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18969: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18970: case $ac_file in
18971: - | *:- | *:-:* ) # input from stdin
18972: cat >$tmp/stdin
18973: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18974: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18975: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18976: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18977: * ) ac_file_in=$ac_file.in ;;
18978: esac
18979:
18980: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18981: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18982: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18983: X"$ac_file" : 'X\(//\)[^/]' \| \
18984: X"$ac_file" : 'X\(//\)$' \| \
18985: X"$ac_file" : 'X\(/\)' \| \
18986: . : '\(.\)' 2>/dev/null ||
18987: echo X"$ac_file" |
18988: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18989: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18990: /^X\(\/\/\)$/{ s//\1/; q; }
18991: /^X\(\/\).*/{ s//\1/; q; }
18992: s/.*/./; q'`
18993: { if $as_mkdir_p; then
18994: mkdir -p "$ac_dir"
18995: else
18996: as_dir="$ac_dir"
18997: as_dirs=
18998: while test ! -d "$as_dir"; do
18999: as_dirs="$as_dir $as_dirs"
19000: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19001: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19002: X"$as_dir" : 'X\(//\)[^/]' \| \
19003: X"$as_dir" : 'X\(//\)$' \| \
19004: X"$as_dir" : 'X\(/\)' \| \
19005: . : '\(.\)' 2>/dev/null ||
19006: echo X"$as_dir" |
19007: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19008: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19009: /^X\(\/\/\)$/{ s//\1/; q; }
19010: /^X\(\/\).*/{ s//\1/; q; }
19011: s/.*/./; q'`
19012: done
19013: test ! -n "$as_dirs" || mkdir $as_dirs
19014: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19015: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19016: { (exit 1); exit 1; }; }; }
19017:
19018: ac_builddir=.
19019:
19020: if test "$ac_dir" != .; then
19021: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19022: # A "../" for each directory in $ac_dir_suffix.
19023: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19024: else
19025: ac_dir_suffix= ac_top_builddir=
19026: fi
19027:
19028: case $srcdir in
19029: .) # No --srcdir option. We are building in place.
19030: ac_srcdir=.
19031: if test -z "$ac_top_builddir"; then
19032: ac_top_srcdir=.
19033: else
19034: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19035: fi ;;
19036: [\\/]* | ?:[\\/]* ) # Absolute path.
19037: ac_srcdir=$srcdir$ac_dir_suffix;
19038: ac_top_srcdir=$srcdir ;;
19039: *) # Relative path.
19040: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19041: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19042: esac
19043:
19044: # Do not use `cd foo && pwd` to compute absolute paths, because
19045: # the directories may not exist.
19046: case `pwd` in
19047: .) ac_abs_builddir="$ac_dir";;
19048: *)
19049: case "$ac_dir" in
19050: .) ac_abs_builddir=`pwd`;;
19051: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19052: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19053: esac;;
19054: esac
19055: case $ac_abs_builddir in
19056: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19057: *)
19058: case ${ac_top_builddir}. in
19059: .) ac_abs_top_builddir=$ac_abs_builddir;;
19060: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19061: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19062: esac;;
19063: esac
19064: case $ac_abs_builddir in
19065: .) ac_abs_srcdir=$ac_srcdir;;
19066: *)
19067: case $ac_srcdir in
19068: .) ac_abs_srcdir=$ac_abs_builddir;;
19069: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19070: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19071: esac;;
19072: esac
19073: case $ac_abs_builddir in
19074: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19075: *)
19076: case $ac_top_srcdir in
19077: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19078: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19079: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19080: esac;;
19081: esac
19082:
19083:
19084: case $INSTALL in
19085: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19086: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19087: esac
19088:
19089: if test x"$ac_file" != x-; then
19090: { echo "$as_me:$LINENO: creating $ac_file" >&5
19091: echo "$as_me: creating $ac_file" >&6;}
19092: rm -f "$ac_file"
19093: fi
19094: # Let's still pretend it is `configure' which instantiates (i.e., don't
19095: # use $as_me), people would be surprised to read:
19096: # /* config.h. Generated by config.status. */
19097: if test x"$ac_file" = x-; then
19098: configure_input=
19099: else
19100: configure_input="$ac_file. "
19101: fi
19102: configure_input=$configure_input"Generated from `echo $ac_file_in |
19103: sed 's,.*/,,'` by configure."
19104:
19105: # First look for the input files in the build tree, otherwise in the
19106: # src tree.
19107: ac_file_inputs=`IFS=:
19108: for f in $ac_file_in; do
19109: case $f in
19110: -) echo $tmp/stdin ;;
19111: [\\/$]*)
19112: # Absolute (can't be DOS-style, as IFS=:)
19113: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19114: echo "$as_me: error: cannot find input file: $f" >&2;}
19115: { (exit 1); exit 1; }; }
19116: echo "$f";;
19117: *) # Relative
19118: if test -f "$f"; then
19119: # Build tree
19120: echo "$f"
19121: elif test -f "$srcdir/$f"; then
19122: # Source tree
19123: echo "$srcdir/$f"
19124: else
19125: # /dev/null tree
19126: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19127: echo "$as_me: error: cannot find input file: $f" >&2;}
19128: { (exit 1); exit 1; }; }
19129: fi;;
19130: esac
19131: done` || { (exit 1); exit 1; }
19132: _ACEOF
19133: cat >>$CONFIG_STATUS <<_ACEOF
19134: sed "$ac_vpsub
19135: $extrasub
19136: _ACEOF
19137: cat >>$CONFIG_STATUS <<\_ACEOF
19138: :t
19139: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19140: s,@configure_input@,$configure_input,;t t
19141: s,@srcdir@,$ac_srcdir,;t t
19142: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19143: s,@top_srcdir@,$ac_top_srcdir,;t t
19144: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19145: s,@builddir@,$ac_builddir,;t t
19146: s,@abs_builddir@,$ac_abs_builddir,;t t
19147: s,@top_builddir@,$ac_top_builddir,;t t
19148: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19149: s,@INSTALL@,$ac_INSTALL,;t t
19150: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19151: rm -f $tmp/stdin
19152: if test x"$ac_file" != x-; then
19153: mv $tmp/out $ac_file
19154: else
19155: cat $tmp/out
19156: rm -f $tmp/out
19157: fi
19158:
19159: done
19160: _ACEOF
19161: cat >>$CONFIG_STATUS <<\_ACEOF
19162:
19163: #
19164: # CONFIG_HEADER section.
19165: #
19166:
19167: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19168: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19169: #
19170: # ac_d sets the value in "#define NAME VALUE" lines.
19171: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19172: ac_dB='[ ].*$,\1#\2'
19173: ac_dC=' '
19174: ac_dD=',;t'
19175: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19176: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19177: ac_uB='$,\1#\2define\3'
19178: ac_uC=' '
19179: ac_uD=',;t'
19180:
19181: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19182: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19183: case $ac_file in
19184: - | *:- | *:-:* ) # input from stdin
19185: cat >$tmp/stdin
19186: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19187: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19188: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19189: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19190: * ) ac_file_in=$ac_file.in ;;
19191: esac
19192:
19193: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19194: echo "$as_me: creating $ac_file" >&6;}
19195:
19196: # First look for the input files in the build tree, otherwise in the
19197: # src tree.
19198: ac_file_inputs=`IFS=:
19199: for f in $ac_file_in; do
19200: case $f in
19201: -) echo $tmp/stdin ;;
19202: [\\/$]*)
19203: # Absolute (can't be DOS-style, as IFS=:)
19204: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19205: echo "$as_me: error: cannot find input file: $f" >&2;}
19206: { (exit 1); exit 1; }; }
19207: # Do quote $f, to prevent DOS paths from being IFS'd.
19208: echo "$f";;
19209: *) # Relative
19210: if test -f "$f"; then
19211: # Build tree
19212: echo "$f"
19213: elif test -f "$srcdir/$f"; then
19214: # Source tree
19215: echo "$srcdir/$f"
19216: else
19217: # /dev/null tree
19218: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19219: echo "$as_me: error: cannot find input file: $f" >&2;}
19220: { (exit 1); exit 1; }; }
19221: fi;;
19222: esac
19223: done` || { (exit 1); exit 1; }
19224: # Remove the trailing spaces.
19225: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19226:
19227: _ACEOF
19228:
19229: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19230: # `conftest.undefs', that substitutes the proper values into
19231: # config.h.in to produce config.h. The first handles `#define'
19232: # templates, and the second `#undef' templates.
19233: # And first: Protect against being on the right side of a sed subst in
19234: # config.status. Protect against being in an unquoted here document
19235: # in config.status.
19236: rm -f conftest.defines conftest.undefs
19237: # Using a here document instead of a string reduces the quoting nightmare.
19238: # Putting comments in sed scripts is not portable.
19239: #
19240: # `end' is used to avoid that the second main sed command (meant for
19241: # 0-ary CPP macros) applies to n-ary macro definitions.
19242: # See the Autoconf documentation for `clear'.
19243: cat >confdef2sed.sed <<\_ACEOF
19244: s/[\\&,]/\\&/g
19245: s,[\\$`],\\&,g
19246: t clear
19247: : clear
19248: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19249: t end
19250: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19251: : end
19252: _ACEOF
19253: # If some macros were called several times there might be several times
19254: # the same #defines, which is useless. Nevertheless, we may not want to
19255: # sort them, since we want the *last* AC-DEFINE to be honored.
19256: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19257: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19258: rm -f confdef2sed.sed
19259:
19260: # This sed command replaces #undef with comments. This is necessary, for
19261: # example, in the case of _POSIX_SOURCE, which is predefined and required
19262: # on some systems where configure will not decide to define it.
19263: cat >>conftest.undefs <<\_ACEOF
19264: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19265: _ACEOF
19266:
19267: # Break up conftest.defines because some shells have a limit on the size
19268: # of here documents, and old seds have small limits too (100 cmds).
19269: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19270: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19271: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19272: echo ' :' >>$CONFIG_STATUS
19273: rm -f conftest.tail
19274: while grep . conftest.defines >/dev/null
19275: do
19276: # Write a limited-size here document to $tmp/defines.sed.
19277: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19278: # Speed up: don't consider the non `#define' lines.
19279: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19280: # Work around the forget-to-reset-the-flag bug.
19281: echo 't clr' >>$CONFIG_STATUS
19282: echo ': clr' >>$CONFIG_STATUS
19283: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19284: echo 'CEOF
19285: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19286: rm -f $tmp/in
19287: mv $tmp/out $tmp/in
19288: ' >>$CONFIG_STATUS
19289: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19290: rm -f conftest.defines
19291: mv conftest.tail conftest.defines
19292: done
19293: rm -f conftest.defines
19294: echo ' fi # grep' >>$CONFIG_STATUS
19295: echo >>$CONFIG_STATUS
19296:
19297: # Break up conftest.undefs because some shells have a limit on the size
19298: # of here documents, and old seds have small limits too (100 cmds).
19299: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19300: rm -f conftest.tail
19301: while grep . conftest.undefs >/dev/null
19302: do
19303: # Write a limited-size here document to $tmp/undefs.sed.
19304: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19305: # Speed up: don't consider the non `#undef'
19306: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19307: # Work around the forget-to-reset-the-flag bug.
19308: echo 't clr' >>$CONFIG_STATUS
19309: echo ': clr' >>$CONFIG_STATUS
19310: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19311: echo 'CEOF
19312: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19313: rm -f $tmp/in
19314: mv $tmp/out $tmp/in
19315: ' >>$CONFIG_STATUS
19316: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19317: rm -f conftest.undefs
19318: mv conftest.tail conftest.undefs
19319: done
19320: rm -f conftest.undefs
19321:
19322: cat >>$CONFIG_STATUS <<\_ACEOF
19323: # Let's still pretend it is `configure' which instantiates (i.e., don't
19324: # use $as_me), people would be surprised to read:
19325: # /* config.h. Generated by config.status. */
19326: if test x"$ac_file" = x-; then
19327: echo "/* Generated by configure. */" >$tmp/config.h
19328: else
19329: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19330: fi
19331: cat $tmp/in >>$tmp/config.h
19332: rm -f $tmp/in
19333: if test x"$ac_file" != x-; then
19334: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19335: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19336: echo "$as_me: $ac_file is unchanged" >&6;}
19337: else
19338: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19339: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340: X"$ac_file" : 'X\(//\)[^/]' \| \
19341: X"$ac_file" : 'X\(//\)$' \| \
19342: X"$ac_file" : 'X\(/\)' \| \
19343: . : '\(.\)' 2>/dev/null ||
19344: echo X"$ac_file" |
19345: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19346: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19347: /^X\(\/\/\)$/{ s//\1/; q; }
19348: /^X\(\/\).*/{ s//\1/; q; }
19349: s/.*/./; q'`
19350: { if $as_mkdir_p; then
19351: mkdir -p "$ac_dir"
19352: else
19353: as_dir="$ac_dir"
19354: as_dirs=
19355: while test ! -d "$as_dir"; do
19356: as_dirs="$as_dir $as_dirs"
19357: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19358: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19359: X"$as_dir" : 'X\(//\)[^/]' \| \
19360: X"$as_dir" : 'X\(//\)$' \| \
19361: X"$as_dir" : 'X\(/\)' \| \
19362: . : '\(.\)' 2>/dev/null ||
19363: echo X"$as_dir" |
19364: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19365: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19366: /^X\(\/\/\)$/{ s//\1/; q; }
19367: /^X\(\/\).*/{ s//\1/; q; }
19368: s/.*/./; q'`
19369: done
19370: test ! -n "$as_dirs" || mkdir $as_dirs
19371: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19372: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19373: { (exit 1); exit 1; }; }; }
19374:
19375: rm -f $ac_file
19376: mv $tmp/config.h $ac_file
19377: fi
19378: else
19379: cat $tmp/config.h
19380: rm -f $tmp/config.h
19381: fi
19382: # Compute $ac_file's index in $config_headers.
19383: _am_stamp_count=1
19384: for _am_header in $config_headers :; do
19385: case $_am_header in
19386: $ac_file | $ac_file:* )
19387: break ;;
19388: * )
19389: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19390: esac
19391: done
19392: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19393: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19394: X$ac_file : 'X\(//\)[^/]' \| \
19395: X$ac_file : 'X\(//\)$' \| \
19396: X$ac_file : 'X\(/\)' \| \
19397: . : '\(.\)' 2>/dev/null ||
19398: echo X$ac_file |
19399: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19400: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19401: /^X\(\/\/\)$/{ s//\1/; q; }
19402: /^X\(\/\).*/{ s//\1/; q; }
19403: s/.*/./; q'`/stamp-h$_am_stamp_count
19404: done
19405: _ACEOF
19406: cat >>$CONFIG_STATUS <<\_ACEOF
19407:
19408: #
19409: # CONFIG_COMMANDS section.
19410: #
19411: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19412: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19413: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19414: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19415: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19416: X"$ac_dest" : 'X\(//\)[^/]' \| \
19417: X"$ac_dest" : 'X\(//\)$' \| \
19418: X"$ac_dest" : 'X\(/\)' \| \
19419: . : '\(.\)' 2>/dev/null ||
19420: echo X"$ac_dest" |
19421: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19422: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19423: /^X\(\/\/\)$/{ s//\1/; q; }
19424: /^X\(\/\).*/{ s//\1/; q; }
19425: s/.*/./; q'`
19426: { if $as_mkdir_p; then
19427: mkdir -p "$ac_dir"
19428: else
19429: as_dir="$ac_dir"
19430: as_dirs=
19431: while test ! -d "$as_dir"; do
19432: as_dirs="$as_dir $as_dirs"
19433: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19434: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19435: X"$as_dir" : 'X\(//\)[^/]' \| \
19436: X"$as_dir" : 'X\(//\)$' \| \
19437: X"$as_dir" : 'X\(/\)' \| \
19438: . : '\(.\)' 2>/dev/null ||
19439: echo X"$as_dir" |
19440: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19441: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19442: /^X\(\/\/\)$/{ s//\1/; q; }
19443: /^X\(\/\).*/{ s//\1/; q; }
19444: s/.*/./; q'`
19445: done
19446: test ! -n "$as_dirs" || mkdir $as_dirs
19447: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19448: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19449: { (exit 1); exit 1; }; }; }
19450:
19451: ac_builddir=.
19452:
19453: if test "$ac_dir" != .; then
19454: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19455: # A "../" for each directory in $ac_dir_suffix.
19456: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19457: else
19458: ac_dir_suffix= ac_top_builddir=
19459: fi
19460:
19461: case $srcdir in
19462: .) # No --srcdir option. We are building in place.
19463: ac_srcdir=.
19464: if test -z "$ac_top_builddir"; then
19465: ac_top_srcdir=.
19466: else
19467: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19468: fi ;;
19469: [\\/]* | ?:[\\/]* ) # Absolute path.
19470: ac_srcdir=$srcdir$ac_dir_suffix;
19471: ac_top_srcdir=$srcdir ;;
19472: *) # Relative path.
19473: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19474: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19475: esac
19476:
19477: # Do not use `cd foo && pwd` to compute absolute paths, because
19478: # the directories may not exist.
19479: case `pwd` in
19480: .) ac_abs_builddir="$ac_dir";;
19481: *)
19482: case "$ac_dir" in
19483: .) ac_abs_builddir=`pwd`;;
19484: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19485: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19486: esac;;
19487: esac
19488: case $ac_abs_builddir in
19489: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19490: *)
19491: case ${ac_top_builddir}. in
19492: .) ac_abs_top_builddir=$ac_abs_builddir;;
19493: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19494: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19495: esac;;
19496: esac
19497: case $ac_abs_builddir in
19498: .) ac_abs_srcdir=$ac_srcdir;;
19499: *)
19500: case $ac_srcdir in
19501: .) ac_abs_srcdir=$ac_abs_builddir;;
19502: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19503: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19504: esac;;
19505: esac
19506: case $ac_abs_builddir in
19507: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19508: *)
19509: case $ac_top_srcdir in
19510: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19511: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19512: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19513: esac;;
19514: esac
19515:
19516:
19517: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19518: echo "$as_me: executing $ac_dest commands" >&6;}
19519: case $ac_dest in
19520: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19521: # Strip MF so we end up with the name of the file.
19522: mf=`echo "$mf" | sed -e 's/:.*$//'`
19523: # Check whether this is an Automake generated Makefile or not.
19524: # We used to match only the files named `Makefile.in', but
19525: # some people rename them; so instead we look at the file content.
19526: # Grep'ing the first line is not enough: some people post-process
19527: # each Makefile.in and add a new line on top of each file to say so.
19528: # So let's grep whole file.
19529: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19530: dirpart=`(dirname "$mf") 2>/dev/null ||
19531: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19532: X"$mf" : 'X\(//\)[^/]' \| \
19533: X"$mf" : 'X\(//\)$' \| \
19534: X"$mf" : 'X\(/\)' \| \
19535: . : '\(.\)' 2>/dev/null ||
19536: echo X"$mf" |
19537: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19538: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19539: /^X\(\/\/\)$/{ s//\1/; q; }
19540: /^X\(\/\).*/{ s//\1/; q; }
19541: s/.*/./; q'`
19542: else
19543: continue
19544: fi
19545: # Extract the definition of DEPDIR, am__include, and am__quote
19546: # from the Makefile without running `make'.
19547: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19548: test -z "$DEPDIR" && continue
19549: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19550: test -z "am__include" && continue
19551: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19552: # When using ansi2knr, U may be empty or an underscore; expand it
19553: U=`sed -n 's/^U = //p' < "$mf"`
19554: # Find all dependency output files, they are included files with
19555: # $(DEPDIR) in their names. We invoke sed twice because it is the
19556: # simplest approach to changing $(DEPDIR) to its actual value in the
19557: # expansion.
19558: for file in `sed -n "
19559: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19560: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19561: # Make sure the directory exists.
19562: test -f "$dirpart/$file" && continue
19563: fdir=`(dirname "$file") 2>/dev/null ||
19564: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19565: X"$file" : 'X\(//\)[^/]' \| \
19566: X"$file" : 'X\(//\)$' \| \
19567: X"$file" : 'X\(/\)' \| \
19568: . : '\(.\)' 2>/dev/null ||
19569: echo X"$file" |
19570: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19571: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19572: /^X\(\/\/\)$/{ s//\1/; q; }
19573: /^X\(\/\).*/{ s//\1/; q; }
19574: s/.*/./; q'`
19575: { if $as_mkdir_p; then
19576: mkdir -p $dirpart/$fdir
19577: else
19578: as_dir=$dirpart/$fdir
19579: as_dirs=
19580: while test ! -d "$as_dir"; do
19581: as_dirs="$as_dir $as_dirs"
19582: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19583: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19584: X"$as_dir" : 'X\(//\)[^/]' \| \
19585: X"$as_dir" : 'X\(//\)$' \| \
19586: X"$as_dir" : 'X\(/\)' \| \
19587: . : '\(.\)' 2>/dev/null ||
19588: echo X"$as_dir" |
19589: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19590: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19591: /^X\(\/\/\)$/{ s//\1/; q; }
19592: /^X\(\/\).*/{ s//\1/; q; }
19593: s/.*/./; q'`
19594: done
19595: test ! -n "$as_dirs" || mkdir $as_dirs
19596: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19597: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19598: { (exit 1); exit 1; }; }; }
19599:
19600: # echo "creating $dirpart/$file"
19601: echo '# dummy' > "$dirpart/$file"
19602: done
19603: done
19604: ;;
19605: libtool )
19606:
19607: # See if we are running on zsh, and set the options which allow our
19608: # commands through without removal of \ escapes.
19609: if test -n "${ZSH_VERSION+set}" ; then
19610: setopt NO_GLOB_SUBST
19611: fi
19612:
19613: cfgfile="${ofile}T"
19614: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19615: $RM "$cfgfile"
19616:
19617: cat <<_LT_EOF >> "$cfgfile"
19618: #! $SHELL
19619:
19620: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19621: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19622: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19623: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19624: #
19625: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19626: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19627: # Foundation, Inc.
19628: # Written by Gordon Matzigkeit, 1996
19629: #
19630: # This file is part of GNU Libtool.
19631: #
19632: # GNU Libtool is free software; you can redistribute it and/or
19633: # modify it under the terms of the GNU General Public License as
19634: # published by the Free Software Foundation; either version 2 of
19635: # the License, or (at your option) any later version.
19636: #
19637: # As a special exception to the GNU General Public License,
19638: # if you distribute this file as part of a program or library that
19639: # is built using GNU Libtool, you may include this file under the
19640: # same distribution terms that you use for the rest of that program.
19641: #
19642: # GNU Libtool is distributed in the hope that it will be useful,
19643: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19644: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19645: # GNU General Public License for more details.
19646: #
19647: # You should have received a copy of the GNU General Public License
19648: # along with GNU Libtool; see the file COPYING. If not, a copy
19649: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19650: # obtained by writing to the Free Software Foundation, Inc.,
19651: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19652:
19653:
19654: # The names of the tagged configurations supported by this script.
19655: available_tags="CXX "
19656:
19657: # ### BEGIN LIBTOOL CONFIG
19658:
19659: # Which release of libtool.m4 was used?
19660: macro_version=$macro_version
19661: macro_revision=$macro_revision
19662:
19663: # Assembler program.
19664: AS=$lt_AS
19665:
19666: # DLL creation program.
19667: DLLTOOL=$lt_DLLTOOL
19668:
19669: # Object dumper program.
19670: OBJDUMP=$lt_OBJDUMP
19671:
19672: # Whether or not to build shared libraries.
19673: build_libtool_libs=$enable_shared
19674:
19675: # Whether or not to build static libraries.
19676: build_old_libs=$enable_static
19677:
19678: # What type of objects to build.
19679: pic_mode=$pic_mode
19680:
19681: # Whether or not to optimize for fast installation.
19682: fast_install=$enable_fast_install
19683:
19684: # Shell to use when invoking shell scripts.
19685: SHELL=$lt_SHELL
19686:
19687: # An echo program that protects backslashes.
19688: ECHO=$lt_ECHO
19689:
19690: # The PATH separator for the build system.
19691: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19692:
19693: # The host system.
19694: host_alias=$host_alias
19695: host=$host
19696: host_os=$host_os
19697:
19698: # The build system.
19699: build_alias=$build_alias
19700: build=$build
19701: build_os=$build_os
19702:
19703: # A sed program that does not truncate output.
19704: SED=$lt_SED
19705:
19706: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19707: Xsed="\$SED -e 1s/^X//"
19708:
19709: # A grep program that handles long lines.
19710: GREP=$lt_GREP
19711:
19712: # An ERE matcher.
19713: EGREP=$lt_EGREP
19714:
19715: # A literal string matcher.
19716: FGREP=$lt_FGREP
19717:
19718: # A BSD- or MS-compatible name lister.
19719: NM=$lt_NM
19720:
19721: # Whether we need soft or hard links.
19722: LN_S=$lt_LN_S
19723:
19724: # What is the maximum length of a command?
19725: max_cmd_len=$max_cmd_len
19726:
19727: # Object file suffix (normally "o").
19728: objext=$ac_objext
19729:
19730: # Executable file suffix (normally "").
19731: exeext=$exeext
19732:
19733: # whether the shell understands "unset".
19734: lt_unset=$lt_unset
19735:
19736: # turn spaces into newlines.
19737: SP2NL=$lt_lt_SP2NL
19738:
19739: # turn newlines into spaces.
19740: NL2SP=$lt_lt_NL2SP
19741:
19742: # convert \$build file names to \$host format.
19743: to_host_file_cmd=$lt_cv_to_host_file_cmd
19744:
19745: # convert \$build files to toolchain format.
19746: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19747:
19748: # Method to check whether dependent libraries are shared objects.
19749: deplibs_check_method=$lt_deplibs_check_method
19750:
19751: # Command to use when deplibs_check_method = "file_magic".
19752: file_magic_cmd=$lt_file_magic_cmd
19753:
19754: # How to find potential files when deplibs_check_method = "file_magic".
19755: file_magic_glob=$lt_file_magic_glob
19756:
19757: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19758: want_nocaseglob=$lt_want_nocaseglob
19759:
19760: # Command to associate shared and link libraries.
19761: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19762:
19763: # The archiver.
19764: AR=$lt_AR
19765:
19766: # Flags to create an archive.
19767: AR_FLAGS=$lt_AR_FLAGS
19768:
19769: # How to feed a file listing to the archiver.
19770: archiver_list_spec=$lt_archiver_list_spec
19771:
19772: # A symbol stripping program.
19773: STRIP=$lt_STRIP
19774:
19775: # Commands used to install an old-style archive.
19776: RANLIB=$lt_RANLIB
19777: old_postinstall_cmds=$lt_old_postinstall_cmds
19778: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19779:
19780: # Whether to use a lock for old archive extraction.
19781: lock_old_archive_extraction=$lock_old_archive_extraction
19782:
19783: # A C compiler.
19784: LTCC=$lt_CC
19785:
19786: # LTCC compiler flags.
19787: LTCFLAGS=$lt_CFLAGS
19788:
19789: # Take the output of nm and produce a listing of raw symbols and C names.
19790: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19791:
19792: # Transform the output of nm in a proper C declaration.
19793: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19794:
19795: # Transform the output of nm in a C name address pair.
19796: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19797:
19798: # Transform the output of nm in a C name address pair when lib prefix is needed.
19799: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19800:
19801: # Specify filename containing input files for \$NM.
19802: nm_file_list_spec=$lt_nm_file_list_spec
19803:
19804: # The root where to search for dependent libraries,and in which our libraries should be installed.
19805: lt_sysroot=$lt_sysroot
19806:
19807: # The name of the directory that contains temporary libtool files.
19808: objdir=$objdir
19809:
19810: # Used to examine libraries when file_magic_cmd begins with "file".
19811: MAGIC_CMD=$MAGIC_CMD
19812:
19813: # Must we lock files when doing compilation?
19814: need_locks=$lt_need_locks
19815:
19816: # Manifest tool.
19817: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19818:
19819: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19820: DSYMUTIL=$lt_DSYMUTIL
19821:
19822: # Tool to change global to local symbols on Mac OS X.
19823: NMEDIT=$lt_NMEDIT
19824:
19825: # Tool to manipulate fat objects and archives on Mac OS X.
19826: LIPO=$lt_LIPO
19827:
19828: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19829: OTOOL=$lt_OTOOL
19830:
19831: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19832: OTOOL64=$lt_OTOOL64
19833:
19834: # Old archive suffix (normally "a").
19835: libext=$libext
19836:
19837: # Shared library suffix (normally ".so").
19838: shrext_cmds=$lt_shrext_cmds
19839:
19840: # The commands to extract the exported symbol list from a shared archive.
19841: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19842:
19843: # Variables whose values should be saved in libtool wrapper scripts and
19844: # restored at link time.
19845: variables_saved_for_relink=$lt_variables_saved_for_relink
19846:
19847: # Do we need the "lib" prefix for modules?
19848: need_lib_prefix=$need_lib_prefix
19849:
19850: # Do we need a version for libraries?
19851: need_version=$need_version
19852:
19853: # Library versioning type.
19854: version_type=$version_type
19855:
19856: # Shared library runtime path variable.
19857: runpath_var=$runpath_var
19858:
19859: # Shared library path variable.
19860: shlibpath_var=$shlibpath_var
19861:
19862: # Is shlibpath searched before the hard-coded library search path?
19863: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19864:
19865: # Format of library name prefix.
19866: libname_spec=$lt_libname_spec
19867:
19868: # List of archive names. First name is the real one, the rest are links.
19869: # The last name is the one that the linker finds with -lNAME
19870: library_names_spec=$lt_library_names_spec
19871:
19872: # The coded name of the library, if different from the real name.
19873: soname_spec=$lt_soname_spec
19874:
19875: # Permission mode override for installation of shared libraries.
19876: install_override_mode=$lt_install_override_mode
19877:
19878: # Command to use after installation of a shared archive.
19879: postinstall_cmds=$lt_postinstall_cmds
19880:
19881: # Command to use after uninstallation of a shared archive.
19882: postuninstall_cmds=$lt_postuninstall_cmds
19883:
19884: # Commands used to finish a libtool library installation in a directory.
19885: finish_cmds=$lt_finish_cmds
19886:
19887: # As "finish_cmds", except a single script fragment to be evaled but
19888: # not shown.
19889: finish_eval=$lt_finish_eval
19890:
19891: # Whether we should hardcode library paths into libraries.
19892: hardcode_into_libs=$hardcode_into_libs
19893:
19894: # Compile-time system search path for libraries.
19895: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19896:
19897: # Run-time system search path for libraries.
19898: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19899:
19900: # Whether dlopen is supported.
19901: dlopen_support=$enable_dlopen
19902:
19903: # Whether dlopen of programs is supported.
19904: dlopen_self=$enable_dlopen_self
19905:
19906: # Whether dlopen of statically linked programs is supported.
19907: dlopen_self_static=$enable_dlopen_self_static
19908:
19909: # Commands to strip libraries.
19910: old_striplib=$lt_old_striplib
19911: striplib=$lt_striplib
19912:
19913:
19914: # The linker used to build libraries.
19915: LD=$lt_LD
19916:
19917: # How to create reloadable object files.
19918: reload_flag=$lt_reload_flag
19919: reload_cmds=$lt_reload_cmds
19920:
19921: # Commands used to build an old-style archive.
19922: old_archive_cmds=$lt_old_archive_cmds
19923:
19924: # A language specific compiler.
19925: CC=$lt_compiler
19926:
19927: # Is the compiler the GNU compiler?
19928: with_gcc=$GCC
19929:
19930: # Compiler flag to turn off builtin functions.
19931: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19932:
19933: # Additional compiler flags for building library objects.
19934: pic_flag=$lt_lt_prog_compiler_pic
19935:
19936: # How to pass a linker flag through the compiler.
19937: wl=$lt_lt_prog_compiler_wl
19938:
19939: # Compiler flag to prevent dynamic linking.
19940: link_static_flag=$lt_lt_prog_compiler_static
19941:
19942: # Does compiler simultaneously support -c and -o options?
19943: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19944:
19945: # Whether or not to add -lc for building shared libraries.
19946: build_libtool_need_lc=$archive_cmds_need_lc
19947:
19948: # Whether or not to disallow shared libs when runtime libs are static.
19949: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19950:
19951: # Compiler flag to allow reflexive dlopens.
19952: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19953:
19954: # Compiler flag to generate shared objects directly from archives.
19955: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19956:
19957: # Whether the compiler copes with passing no objects directly.
19958: compiler_needs_object=$lt_compiler_needs_object
19959:
19960: # Create an old-style archive from a shared archive.
19961: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19962:
19963: # Create a temporary old-style archive to link instead of a shared archive.
19964: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19965:
19966: # Commands used to build a shared archive.
19967: archive_cmds=$lt_archive_cmds
19968: archive_expsym_cmds=$lt_archive_expsym_cmds
19969:
19970: # Commands used to build a loadable module if different from building
19971: # a shared archive.
19972: module_cmds=$lt_module_cmds
19973: module_expsym_cmds=$lt_module_expsym_cmds
19974:
19975: # Whether we are building with GNU ld or not.
19976: with_gnu_ld=$lt_with_gnu_ld
19977:
19978: # Flag that allows shared libraries with undefined symbols to be built.
19979: allow_undefined_flag=$lt_allow_undefined_flag
19980:
19981: # Flag that enforces no undefined symbols.
19982: no_undefined_flag=$lt_no_undefined_flag
19983:
19984: # Flag to hardcode \$libdir into a binary during linking.
19985: # This must work even if \$libdir does not exist
19986: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19987:
19988: # Whether we need a single "-rpath" flag with a separated argument.
19989: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19990:
19991: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19992: # DIR into the resulting binary.
19993: hardcode_direct=$hardcode_direct
19994:
19995: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19996: # DIR into the resulting binary and the resulting library dependency is
19997: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19998: # library is relocated.
19999: hardcode_direct_absolute=$hardcode_direct_absolute
20000:
20001: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20002: # into the resulting binary.
20003: hardcode_minus_L=$hardcode_minus_L
20004:
20005: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20006: # into the resulting binary.
20007: hardcode_shlibpath_var=$hardcode_shlibpath_var
20008:
20009: # Set to "yes" if building a shared library automatically hardcodes DIR
20010: # into the library and all subsequent libraries and executables linked
20011: # against it.
20012: hardcode_automatic=$hardcode_automatic
20013:
20014: # Set to yes if linker adds runtime paths of dependent libraries
20015: # to runtime path list.
20016: inherit_rpath=$inherit_rpath
20017:
20018: # Whether libtool must link a program against all its dependency libraries.
20019: link_all_deplibs=$link_all_deplibs
20020:
20021: # Set to "yes" if exported symbols are required.
20022: always_export_symbols=$always_export_symbols
20023:
20024: # The commands to list exported symbols.
20025: export_symbols_cmds=$lt_export_symbols_cmds
20026:
20027: # Symbols that should not be listed in the preloaded symbols.
20028: exclude_expsyms=$lt_exclude_expsyms
20029:
20030: # Symbols that must always be exported.
20031: include_expsyms=$lt_include_expsyms
20032:
20033: # Commands necessary for linking programs (against libraries) with templates.
20034: prelink_cmds=$lt_prelink_cmds
20035:
20036: # Commands necessary for finishing linking programs.
20037: postlink_cmds=$lt_postlink_cmds
20038:
20039: # Specify filename containing input files.
20040: file_list_spec=$lt_file_list_spec
20041:
20042: # How to hardcode a shared library path into an executable.
20043: hardcode_action=$hardcode_action
20044:
20045: # The directories searched by this compiler when creating a shared library.
20046: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20047:
20048: # Dependencies to place before and after the objects being linked to
20049: # create a shared library.
20050: predep_objects=$lt_predep_objects
20051: postdep_objects=$lt_postdep_objects
20052: predeps=$lt_predeps
20053: postdeps=$lt_postdeps
20054:
20055: # The library search path used internally by the compiler when linking
20056: # a shared library.
20057: compiler_lib_search_path=$lt_compiler_lib_search_path
20058:
20059: # ### END LIBTOOL CONFIG
20060:
20061: _LT_EOF
20062:
20063: case $host_os in
20064: aix3*)
20065: cat <<\_LT_EOF >> "$cfgfile"
20066: # AIX sometimes has problems with the GCC collect2 program. For some
20067: # reason, if we set the COLLECT_NAMES environment variable, the problems
20068: # vanish in a puff of smoke.
20069: if test "X${COLLECT_NAMES+set}" != Xset; then
20070: COLLECT_NAMES=
20071: export COLLECT_NAMES
20072: fi
20073: _LT_EOF
20074: ;;
20075: esac
20076:
20077:
20078: ltmain="$ac_aux_dir/ltmain.sh"
20079:
20080:
20081: # We use sed instead of cat because bash on DJGPP gets confused if
20082: # if finds mixed CR/LF and LF-only lines. Since sed operates in
20083: # text mode, it properly converts lines to CR/LF. This bash problem
20084: # is reportedly fixed, but why not run on old versions too?
20085: sed '$q' "$ltmain" >> "$cfgfile" \
20086: || (rm -f "$cfgfile"; exit 1)
20087:
20088: if test x"$xsi_shell" = xyes; then
20089: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20090: func_dirname ()\
20091: {\
20092: \ case ${1} in\
20093: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20094: \ * ) func_dirname_result="${3}" ;;\
20095: \ esac\
20096: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20097: && mv -f "$cfgfile.tmp" "$cfgfile" \
20098: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20099: test 0 -eq $? || _lt_function_replace_fail=:
20100:
20101:
20102: sed -e '/^func_basename ()$/,/^} # func_basename /c\
20103: func_basename ()\
20104: {\
20105: \ func_basename_result="${1##*/}"\
20106: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20107: && mv -f "$cfgfile.tmp" "$cfgfile" \
20108: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20109: test 0 -eq $? || _lt_function_replace_fail=:
20110:
20111:
20112: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20113: func_dirname_and_basename ()\
20114: {\
20115: \ case ${1} in\
20116: \ */*) func_dirname_result="${1%/*}${2}" ;;\
20117: \ * ) func_dirname_result="${3}" ;;\
20118: \ esac\
20119: \ func_basename_result="${1##*/}"\
20120: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20121: && mv -f "$cfgfile.tmp" "$cfgfile" \
20122: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20123: test 0 -eq $? || _lt_function_replace_fail=:
20124:
20125:
20126: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20127: func_stripname ()\
20128: {\
20129: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20130: \ # positional parameters, so assign one to ordinary parameter first.\
20131: \ func_stripname_result=${3}\
20132: \ func_stripname_result=${func_stripname_result#"${1}"}\
20133: \ func_stripname_result=${func_stripname_result%"${2}"}\
20134: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20135: && mv -f "$cfgfile.tmp" "$cfgfile" \
20136: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20137: test 0 -eq $? || _lt_function_replace_fail=:
20138:
20139:
20140: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20141: func_split_long_opt ()\
20142: {\
20143: \ func_split_long_opt_name=${1%%=*}\
20144: \ func_split_long_opt_arg=${1#*=}\
20145: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20146: && mv -f "$cfgfile.tmp" "$cfgfile" \
20147: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20148: test 0 -eq $? || _lt_function_replace_fail=:
20149:
20150:
20151: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20152: func_split_short_opt ()\
20153: {\
20154: \ func_split_short_opt_arg=${1#??}\
20155: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20156: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20157: && mv -f "$cfgfile.tmp" "$cfgfile" \
20158: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20159: test 0 -eq $? || _lt_function_replace_fail=:
20160:
20161:
20162: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20163: func_lo2o ()\
20164: {\
20165: \ case ${1} in\
20166: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20167: \ *) func_lo2o_result=${1} ;;\
20168: \ esac\
20169: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20170: && mv -f "$cfgfile.tmp" "$cfgfile" \
20171: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20172: test 0 -eq $? || _lt_function_replace_fail=:
20173:
20174:
20175: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20176: func_xform ()\
20177: {\
20178: func_xform_result=${1%.*}.lo\
20179: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20180: && mv -f "$cfgfile.tmp" "$cfgfile" \
20181: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20182: test 0 -eq $? || _lt_function_replace_fail=:
20183:
20184:
20185: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20186: func_arith ()\
20187: {\
20188: func_arith_result=$(( $* ))\
20189: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20190: && mv -f "$cfgfile.tmp" "$cfgfile" \
20191: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20192: test 0 -eq $? || _lt_function_replace_fail=:
20193:
20194:
20195: sed -e '/^func_len ()$/,/^} # func_len /c\
20196: func_len ()\
20197: {\
20198: func_len_result=${#1}\
20199: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20200: && mv -f "$cfgfile.tmp" "$cfgfile" \
20201: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20202: test 0 -eq $? || _lt_function_replace_fail=:
20203:
20204: fi
20205:
20206: if test x"$lt_shell_append" = xyes; then
20207: sed -e '/^func_append ()$/,/^} # func_append /c\
20208: func_append ()\
20209: {\
20210: eval "${1}+=\\${2}"\
20211: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20212: && mv -f "$cfgfile.tmp" "$cfgfile" \
20213: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20214: test 0 -eq $? || _lt_function_replace_fail=:
20215:
20216:
20217: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20218: func_append_quoted ()\
20219: {\
20220: \ func_quote_for_eval "${2}"\
20221: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20222: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20223: && mv -f "$cfgfile.tmp" "$cfgfile" \
20224: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20225: test 0 -eq $? || _lt_function_replace_fail=:
20226:
20227:
20228: # Save a `func_append' function call where possible by direct use of '+='
20229: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20230: && mv -f "$cfgfile.tmp" "$cfgfile" \
20231: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20232: test 0 -eq $? || _lt_function_replace_fail=:
20233: else
20234: # Save a `func_append' function call even when '+=' is not available
20235: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20236: && mv -f "$cfgfile.tmp" "$cfgfile" \
20237: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20238: test 0 -eq $? || _lt_function_replace_fail=:
20239: fi
20240:
20241: if test x"$_lt_function_replace_fail" = x":"; then
20242: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20243: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20244: fi
20245:
20246:
20247: mv -f "$cfgfile" "$ofile" ||
20248: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20249: chmod +x "$ofile"
20250:
20251:
20252: cat <<_LT_EOF >> "$ofile"
20253:
20254: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20255:
20256: # The linker used to build libraries.
20257: LD=$lt_LD_CXX
20258:
20259: # How to create reloadable object files.
20260: reload_flag=$lt_reload_flag_CXX
20261: reload_cmds=$lt_reload_cmds_CXX
20262:
20263: # Commands used to build an old-style archive.
20264: old_archive_cmds=$lt_old_archive_cmds_CXX
20265:
20266: # A language specific compiler.
20267: CC=$lt_compiler_CXX
20268:
20269: # Is the compiler the GNU compiler?
20270: with_gcc=$GCC_CXX
20271:
20272: # Compiler flag to turn off builtin functions.
20273: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20274:
20275: # Additional compiler flags for building library objects.
20276: pic_flag=$lt_lt_prog_compiler_pic_CXX
20277:
20278: # How to pass a linker flag through the compiler.
20279: wl=$lt_lt_prog_compiler_wl_CXX
20280:
20281: # Compiler flag to prevent dynamic linking.
20282: link_static_flag=$lt_lt_prog_compiler_static_CXX
20283:
20284: # Does compiler simultaneously support -c and -o options?
20285: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20286:
20287: # Whether or not to add -lc for building shared libraries.
20288: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20289:
20290: # Whether or not to disallow shared libs when runtime libs are static.
20291: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20292:
20293: # Compiler flag to allow reflexive dlopens.
20294: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20295:
20296: # Compiler flag to generate shared objects directly from archives.
20297: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20298:
20299: # Whether the compiler copes with passing no objects directly.
20300: compiler_needs_object=$lt_compiler_needs_object_CXX
20301:
20302: # Create an old-style archive from a shared archive.
20303: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20304:
20305: # Create a temporary old-style archive to link instead of a shared archive.
20306: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20307:
20308: # Commands used to build a shared archive.
20309: archive_cmds=$lt_archive_cmds_CXX
20310: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20311:
20312: # Commands used to build a loadable module if different from building
20313: # a shared archive.
20314: module_cmds=$lt_module_cmds_CXX
20315: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20316:
20317: # Whether we are building with GNU ld or not.
20318: with_gnu_ld=$lt_with_gnu_ld_CXX
20319:
20320: # Flag that allows shared libraries with undefined symbols to be built.
20321: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20322:
20323: # Flag that enforces no undefined symbols.
20324: no_undefined_flag=$lt_no_undefined_flag_CXX
20325:
20326: # Flag to hardcode \$libdir into a binary during linking.
20327: # This must work even if \$libdir does not exist
20328: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20329:
20330: # Whether we need a single "-rpath" flag with a separated argument.
20331: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20332:
20333: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20334: # DIR into the resulting binary.
20335: hardcode_direct=$hardcode_direct_CXX
20336:
20337: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20338: # DIR into the resulting binary and the resulting library dependency is
20339: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20340: # library is relocated.
20341: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20342:
20343: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20344: # into the resulting binary.
20345: hardcode_minus_L=$hardcode_minus_L_CXX
20346:
20347: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20348: # into the resulting binary.
20349: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20350:
20351: # Set to "yes" if building a shared library automatically hardcodes DIR
20352: # into the library and all subsequent libraries and executables linked
20353: # against it.
20354: hardcode_automatic=$hardcode_automatic_CXX
20355:
20356: # Set to yes if linker adds runtime paths of dependent libraries
20357: # to runtime path list.
20358: inherit_rpath=$inherit_rpath_CXX
20359:
20360: # Whether libtool must link a program against all its dependency libraries.
20361: link_all_deplibs=$link_all_deplibs_CXX
20362:
20363: # Set to "yes" if exported symbols are required.
20364: always_export_symbols=$always_export_symbols_CXX
20365:
20366: # The commands to list exported symbols.
20367: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20368:
20369: # Symbols that should not be listed in the preloaded symbols.
20370: exclude_expsyms=$lt_exclude_expsyms_CXX
1.11 paf 20371:
1.25 moko 20372: # Symbols that must always be exported.
20373: include_expsyms=$lt_include_expsyms_CXX
1.1 parser 20374:
1.25 moko 20375: # Commands necessary for linking programs (against libraries) with templates.
20376: prelink_cmds=$lt_prelink_cmds_CXX
1.18 paf 20377:
1.25 moko 20378: # Commands necessary for finishing linking programs.
20379: postlink_cmds=$lt_postlink_cmds_CXX
1.11 paf 20380:
1.25 moko 20381: # Specify filename containing input files.
20382: file_list_spec=$lt_file_list_spec_CXX
1.11 paf 20383:
1.25 moko 20384: # How to hardcode a shared library path into an executable.
20385: hardcode_action=$hardcode_action_CXX
1.18 paf 20386:
1.25 moko 20387: # The directories searched by this compiler when creating a shared library.
20388: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
1.11 paf 20389:
1.25 moko 20390: # Dependencies to place before and after the objects being linked to
20391: # create a shared library.
20392: predep_objects=$lt_predep_objects_CXX
20393: postdep_objects=$lt_postdep_objects_CXX
20394: predeps=$lt_predeps_CXX
20395: postdeps=$lt_postdeps_CXX
20396:
20397: # The library search path used internally by the compiler when linking
20398: # a shared library.
20399: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.11 paf 20400:
1.25 moko 20401: # ### END LIBTOOL TAG CONFIG: CXX
20402: _LT_EOF
1.1 parser 20403:
1.11 paf 20404: ;;
20405: esac
20406: done
20407: _ACEOF
1.1 parser 20408:
1.11 paf 20409: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20410:
1.11 paf 20411: { (exit 0); exit 0; }
20412: _ACEOF
1.1 parser 20413: chmod +x $CONFIG_STATUS
1.11 paf 20414: ac_clean_files=$ac_clean_files_save
20415:
20416:
20417: # configure is writing to config.log, and then calls config.status.
20418: # config.status does its own redirection, appending to config.log.
20419: # Unfortunately, on DOS this fails, as config.log is still kept open
20420: # by configure, so config.status won't be able to write to it; its
20421: # output is simply discarded. So we exec the FD to /dev/null,
20422: # effectively closing config.log, so it can be properly (re)opened and
20423: # appended to by config.status. When coming back to configure, we
20424: # need to make the FD available again.
20425: if test "$no_create" != yes; then
20426: ac_cs_success=:
20427: ac_config_status_args=
20428: test "$silent" = yes &&
20429: ac_config_status_args="$ac_config_status_args --quiet"
20430: exec 5>/dev/null
20431: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20432: exec 5>>config.log
20433: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20434: # would make configure fail if this is the last instruction.
20435: $ac_cs_success || { (exit 1); exit 1; }
20436: fi
1.1 parser 20437:
1.11 paf 20438: #
20439: # CONFIG_SUBDIRS section.
20440: #
1.1 parser 20441: if test "$no_recursion" != yes; then
20442:
20443: # Remove --cache-file and --srcdir arguments so they do not pile up.
20444: ac_sub_configure_args=
20445: ac_prev=
20446: for ac_arg in $ac_configure_args; do
20447: if test -n "$ac_prev"; then
20448: ac_prev=
20449: continue
20450: fi
1.11 paf 20451: case $ac_arg in
1.1 parser 20452: -cache-file | --cache-file | --cache-fil | --cache-fi \
20453: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20454: ac_prev=cache_file ;;
20455: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.11 paf 20456: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20457: | --c=*)
20458: ;;
20459: --config-cache | -C)
1.1 parser 20460: ;;
20461: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20462: ac_prev=srcdir ;;
20463: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20464: ;;
1.11 paf 20465: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20466: ac_prev=prefix ;;
20467: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20468: ;;
1.1 parser 20469: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20470: esac
20471: done
20472:
1.11 paf 20473: # Always prepend --prefix to ensure using the same prefix
20474: # in subdir configurations.
20475: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20476:
20477: ac_popdir=`pwd`
20478: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20479:
20480: # Do not complain, so a configure script can configure whichever
20481: # parts of a large source tree are present.
1.11 paf 20482: test -d $srcdir/$ac_dir || continue
1.1 parser 20483:
1.11 paf 20484: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20485: echo "$as_me: configuring in $ac_dir" >&6;}
20486: { if $as_mkdir_p; then
20487: mkdir -p "$ac_dir"
20488: else
20489: as_dir="$ac_dir"
20490: as_dirs=
20491: while test ! -d "$as_dir"; do
20492: as_dirs="$as_dir $as_dirs"
20493: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20494: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.18 paf 20495: X"$as_dir" : 'X\(//\)[^/]' \| \
20496: X"$as_dir" : 'X\(//\)$' \| \
20497: X"$as_dir" : 'X\(/\)' \| \
20498: . : '\(.\)' 2>/dev/null ||
1.11 paf 20499: echo X"$as_dir" |
20500: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20501: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20502: /^X\(\/\/\)$/{ s//\1/; q; }
20503: /^X\(\/\).*/{ s//\1/; q; }
20504: s/.*/./; q'`
20505: done
20506: test ! -n "$as_dirs" || mkdir $as_dirs
20507: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20508: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20509: { (exit 1); exit 1; }; }; }
20510:
20511: ac_builddir=.
20512:
20513: if test "$ac_dir" != .; then
20514: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20515: # A "../" for each directory in $ac_dir_suffix.
20516: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20517: else
20518: ac_dir_suffix= ac_top_builddir=
20519: fi
20520:
20521: case $srcdir in
20522: .) # No --srcdir option. We are building in place.
20523: ac_srcdir=.
20524: if test -z "$ac_top_builddir"; then
20525: ac_top_srcdir=.
20526: else
20527: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20528: fi ;;
20529: [\\/]* | ?:[\\/]* ) # Absolute path.
20530: ac_srcdir=$srcdir$ac_dir_suffix;
20531: ac_top_srcdir=$srcdir ;;
20532: *) # Relative path.
20533: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20534: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20535: esac
1.18 paf 20536:
20537: # Do not use `cd foo && pwd` to compute absolute paths, because
20538: # the directories may not exist.
20539: case `pwd` in
20540: .) ac_abs_builddir="$ac_dir";;
20541: *)
20542: case "$ac_dir" in
20543: .) ac_abs_builddir=`pwd`;;
20544: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20545: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20546: esac;;
20547: esac
20548: case $ac_abs_builddir in
20549: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20550: *)
20551: case ${ac_top_builddir}. in
20552: .) ac_abs_top_builddir=$ac_abs_builddir;;
20553: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20554: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20555: esac;;
20556: esac
20557: case $ac_abs_builddir in
20558: .) ac_abs_srcdir=$ac_srcdir;;
20559: *)
20560: case $ac_srcdir in
20561: .) ac_abs_srcdir=$ac_abs_builddir;;
20562: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20563: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20564: esac;;
20565: esac
20566: case $ac_abs_builddir in
20567: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20568: *)
20569: case $ac_top_srcdir in
20570: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20571: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20572: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20573: esac;;
20574: esac
1.1 parser 20575:
20576:
1.11 paf 20577: cd $ac_dir
1.1 parser 20578:
20579: # Check for guested configure; otherwise get Cygnus style configure.
1.11 paf 20580: if test -f $ac_srcdir/configure.gnu; then
20581: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20582: elif test -f $ac_srcdir/configure; then
20583: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20584: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20585: ac_sub_configure=$ac_configure
20586: else
1.11 paf 20587: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20588: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20589: ac_sub_configure=
20590: fi
20591:
20592: # The recursion is here.
20593: if test -n "$ac_sub_configure"; then
20594: # Make the cache file name correct relative to the subdirectory.
1.11 paf 20595: case $cache_file in
20596: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20597: *) # Relative path.
1.18 paf 20598: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20599: esac
20600:
1.11 paf 20601: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20602: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20603: # The eval makes quoting arguments work.
1.11 paf 20604: eval $ac_sub_configure $ac_sub_configure_args \
1.18 paf 20605: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20606: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.11 paf 20607: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20608: { (exit 1); exit 1; }; }
1.1 parser 20609: fi
20610:
20611: cd $ac_popdir
20612: done
20613: fi
20614:
E-mail: