Annotation of sql/mysql/configure, revision 1.37
1.1 parser 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.36 moko 3: # Generated by GNU Autoconf 2.59 for parser3mysql.C 10.3.
1.1 parser 4: #
1.25 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.15 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.25 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.15 paf 23:
24: # Support unset when possible.
1.25 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.15 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.25 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.15 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.25 paf 221: test -d ./-p && rmdir ./-p
1.15 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.25 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.15 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.25 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.15 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.36 moko 243: lt_ltdl_dir='libltdl'
244:
1.15 paf 245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
1.35 moko 247: lt_dlopen_dir="$lt_ltdl_dir"
1.15 paf 248:
1.1 parser 249:
1.15 paf 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`
254:
255: exec 6>&1
256:
257: #
258: # Initializations.
259: #
1.1 parser 260: ac_default_prefix=/usr/local
1.15 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.36 moko 274: PACKAGE_NAME='parser3mysql.C'
275: PACKAGE_TARNAME='parser3mysql-c'
276: PACKAGE_VERSION='10.3'
277: PACKAGE_STRING='parser3mysql.C 10.3'
278: PACKAGE_BUGREPORT=''
1.15 paf 279:
280: ac_unique_file="parser3mysql.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.36 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 MYSQL_INC LDFLAGS CXX CXXFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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.15 paf 320: ac_subst_files=''
1.1 parser 321:
322: # Initialize some variables set by options.
1.15 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.15 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.15 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.15 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.15 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.15 paf 379: bindir=$ac_optarg ;;
1.1 parser 380:
381: -build | --build | --buil | --bui | --bu)
1.15 paf 382: ac_prev=build_alias ;;
1.1 parser 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.15 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.15 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.15 paf 400: datadir=$ac_optarg ;;
1.1 parser 401:
402: -disable-* | --disable-*)
1.15 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 parser 404: # Reject names that are not valid shell variable names.
1.15 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.15 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 parser 413: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 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.15 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.15 paf 445: ac_prev=host_alias ;;
1.1 parser 446: -host=* | --host=* | --hos=* | --ho=*)
1.15 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.15 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.15 paf 459: infodir=$ac_optarg ;;
1.1 parser 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 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.15 paf 563: sharedstatedir=$ac_optarg ;;
1.1 parser 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.15 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.15 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.15 paf 580: sysconfdir=$ac_optarg ;;
1.1 parser 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.15 paf 583: ac_prev=target_alias ;;
1.1 parser 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.15 paf 585: target_alias=$ac_optarg ;;
1.1 parser 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.15 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 parser 592:
593: -with-* | --with-*)
1.15 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 parser 595: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 parser 605:
606: -without-* | --without-*)
1.15 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 parser 608: # Reject names that are not valid shell variable names.
1.15 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.15 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.15 paf 631: x_libraries=$ac_optarg ;;
1.1 parser 632:
1.15 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.15 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.15 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.15 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.15 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.15 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.25 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 parser 679: do
1.15 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.15 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.15 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.15 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.15 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.15 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.15 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.15 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.24 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.35 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.15 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.36 moko 800: \`configure' configures parser3mysql.C 10.3 to adapt to many kinds of systems.
1.15 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.25 paf 825: [$ac_default_prefix]
1.15 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 paf 827: [PREFIX]
1.15 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.36 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser3mysql.C 10.3:";;
867: esac
1.15 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.25 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.35 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.15 paf 881: --disable-libtool-lock avoid locking (might break parallel builds)
1.35 moko 882: --enable-ltdl-install install libltdl
1.15 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-mysql-inc=DIR DIR is the MySQL includes directory
1.33 misha 888: --with-dynamic-stdcpp link libstdc++ dynamically
889: by default, libstdc++ is linked statically
1.35 moko 890: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
891: both]
892: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
893: --with-sysroot=DIR Search for dependent libraries within DIR
894: (or the compiler's sysroot if not specified).
895: --with-included-ltdl use the GNU ltdl sources included here
896: --with-ltdl-include=DIR use the ltdl headers installed in DIR
897: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.15 paf 898:
899: Some influential environment variables:
900: CXX C++ compiler command
901: CXXFLAGS C++ compiler flags
902: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903: nonstandard directory <lib dir>
904: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905: headers in a nonstandard directory <include dir>
906: CC C compiler command
907: CFLAGS C compiler flags
1.24 paf 908: CPP C preprocessor
1.35 moko 909: CXXCPP C++ preprocessor
1.15 paf 910:
911: Use these variables to override the choices made by `configure' or to help
912: it to find libraries and programs with nonstandard names/locations.
913:
914: _ACEOF
915: fi
916:
917: if test "$ac_init_help" = "recursive"; then
918: # If there are subdirs, report their specific --help.
919: ac_popdir=`pwd`
920: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921: test -d $ac_dir || continue
922: ac_builddir=.
923:
924: if test "$ac_dir" != .; then
925: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926: # A "../" for each directory in $ac_dir_suffix.
927: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928: else
929: ac_dir_suffix= ac_top_builddir=
930: fi
931:
932: case $srcdir in
933: .) # No --srcdir option. We are building in place.
934: ac_srcdir=.
935: if test -z "$ac_top_builddir"; then
936: ac_top_srcdir=.
937: else
938: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939: fi ;;
940: [\\/]* | ?:[\\/]* ) # Absolute path.
941: ac_srcdir=$srcdir$ac_dir_suffix;
942: ac_top_srcdir=$srcdir ;;
943: *) # Relative path.
944: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945: ac_top_srcdir=$ac_top_builddir$srcdir ;;
946: esac
1.25 paf 947:
948: # Do not use `cd foo && pwd` to compute absolute paths, because
949: # the directories may not exist.
950: case `pwd` in
951: .) ac_abs_builddir="$ac_dir";;
952: *)
953: case "$ac_dir" in
954: .) ac_abs_builddir=`pwd`;;
955: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956: *) ac_abs_builddir=`pwd`/"$ac_dir";;
957: esac;;
958: esac
959: case $ac_abs_builddir in
960: .) ac_abs_top_builddir=${ac_top_builddir}.;;
961: *)
962: case ${ac_top_builddir}. in
963: .) ac_abs_top_builddir=$ac_abs_builddir;;
964: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966: esac;;
967: esac
968: case $ac_abs_builddir in
969: .) ac_abs_srcdir=$ac_srcdir;;
970: *)
971: case $ac_srcdir in
972: .) ac_abs_srcdir=$ac_abs_builddir;;
973: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975: esac;;
976: esac
977: case $ac_abs_builddir in
978: .) ac_abs_top_srcdir=$ac_top_srcdir;;
979: *)
980: case $ac_top_srcdir in
981: .) ac_abs_top_srcdir=$ac_abs_builddir;;
982: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984: esac;;
985: esac
1.15 paf 986:
987: cd $ac_dir
988: # Check for guested configure; otherwise get Cygnus style configure.
989: if test -f $ac_srcdir/configure.gnu; then
990: echo
991: $SHELL $ac_srcdir/configure.gnu --help=recursive
992: elif test -f $ac_srcdir/configure; then
993: echo
994: $SHELL $ac_srcdir/configure --help=recursive
995: elif test -f $ac_srcdir/configure.ac ||
1.25 paf 996: test -f $ac_srcdir/configure.in; then
1.15 paf 997: echo
998: $ac_configure --help
999: else
1000: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001: fi
1002: cd $ac_popdir
1003: done
1004: fi
1005:
1006: test -n "$ac_init_help" && exit 0
1007: if $ac_init_version; then
1008: cat <<\_ACEOF
1.36 moko 1009: parser3mysql.C configure 10.3
1010: generated by GNU Autoconf 2.59
1.15 paf 1011:
1.25 paf 1012: Copyright (C) 2003 Free Software Foundation, Inc.
1.15 paf 1013: This configure script is free software; the Free Software Foundation
1014: gives unlimited permission to copy, distribute and modify it.
1015: _ACEOF
1016: exit 0
1017: fi
1018: exec 5>config.log
1019: cat >&5 <<_ACEOF
1020: This file contains any messages produced by compilers while
1021: running configure, to aid debugging if configure makes a mistake.
1022:
1.36 moko 1023: It was created by parser3mysql.C $as_me 10.3, which was
1.25 paf 1024: generated by GNU Autoconf 2.59. Invocation command line was
1.15 paf 1025:
1026: $ $0 $@
1027:
1028: _ACEOF
1029: {
1030: cat <<_ASUNAME
1031: ## --------- ##
1032: ## Platform. ##
1033: ## --------- ##
1034:
1035: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040:
1041: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043:
1044: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051:
1052: _ASUNAME
1053:
1054: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055: for as_dir in $PATH
1056: do
1057: IFS=$as_save_IFS
1058: test -z "$as_dir" && as_dir=.
1059: echo "PATH: $as_dir"
1060: done
1061:
1062: } >&5
1063:
1064: cat >&5 <<_ACEOF
1065:
1066:
1067: ## ----------- ##
1068: ## Core tests. ##
1069: ## ----------- ##
1070:
1071: _ACEOF
1072:
1073:
1074: # Keep a trace of the command line.
1075: # Strip out --no-create and --no-recursion so they do not pile up.
1076: # Strip out --silent because we don't want to record it for future runs.
1077: # Also quote any args containing shell meta-characters.
1078: # Make two passes to allow for proper duplicate-argument suppression.
1079: ac_configure_args=
1080: ac_configure_args0=
1081: ac_configure_args1=
1082: ac_sep=
1083: ac_must_keep_next=false
1084: for ac_pass in 1 2
1085: do
1086: for ac_arg
1087: do
1088: case $ac_arg in
1089: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091: | -silent | --silent | --silen | --sile | --sil)
1092: continue ;;
1093: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095: esac
1096: case $ac_pass in
1097: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098: 2)
1099: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100: if test $ac_must_keep_next = true; then
1.25 paf 1101: ac_must_keep_next=false # Got value, back to normal.
1.15 paf 1102: else
1.25 paf 1103: case $ac_arg in
1104: *=* | --config-cache | -C | -disable-* | --disable-* \
1105: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107: | -with-* | --with-* | -without-* | --without-* | --x)
1108: case "$ac_configure_args0 " in
1109: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110: esac
1111: ;;
1112: -* ) ac_must_keep_next=true ;;
1113: esac
1.15 paf 1114: fi
1115: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116: # Get rid of the leading space.
1117: ac_sep=" "
1118: ;;
1119: esac
1120: done
1121: done
1122: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124:
1125: # When interrupted or exit'd, cleanup temporary files, and complete
1126: # config.log. We remove comments because anyway the quotes in there
1127: # would cause problems or look ugly.
1128: # WARNING: Be sure not to use single quotes in there, as some shells,
1129: # such as our DU 5.0 friend, will then `close' the trap.
1130: trap 'exit_status=$?
1131: # Save into config.log some information that might help in debugging.
1132: {
1133: echo
1134:
1135: cat <<\_ASBOX
1136: ## ---------------- ##
1137: ## Cache variables. ##
1138: ## ---------------- ##
1139: _ASBOX
1140: echo
1141: # The following way of writing the cache mishandles newlines in values,
1142: {
1143: (set) 2>&1 |
1144: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145: *ac_space=\ *)
1146: sed -n \
1.25 paf 1147: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.15 paf 1149: ;;
1150: *)
1151: sed -n \
1.25 paf 1152: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.15 paf 1153: ;;
1154: esac;
1155: }
1156: echo
1157:
1158: cat <<\_ASBOX
1159: ## ----------------- ##
1160: ## Output variables. ##
1161: ## ----------------- ##
1162: _ASBOX
1163: echo
1164: for ac_var in $ac_subst_vars
1165: do
1166: eval ac_val=$`echo $ac_var`
1167: echo "$ac_var='"'"'$ac_val'"'"'"
1168: done | sort
1169: echo
1170:
1171: if test -n "$ac_subst_files"; then
1172: cat <<\_ASBOX
1173: ## ------------- ##
1174: ## Output files. ##
1175: ## ------------- ##
1176: _ASBOX
1177: echo
1178: for ac_var in $ac_subst_files
1179: do
1180: eval ac_val=$`echo $ac_var`
1.25 paf 1181: echo "$ac_var='"'"'$ac_val'"'"'"
1.15 paf 1182: done | sort
1183: echo
1184: fi
1185:
1186: if test -s confdefs.h; then
1187: cat <<\_ASBOX
1188: ## ----------- ##
1189: ## confdefs.h. ##
1190: ## ----------- ##
1191: _ASBOX
1192: echo
1193: sed "/^$/d" confdefs.h | sort
1194: echo
1195: fi
1196: test "$ac_signal" != 0 &&
1197: echo "$as_me: caught signal $ac_signal"
1198: echo "$as_me: exit $exit_status"
1199: } >&5
1.25 paf 1200: rm -f core *.core &&
1.15 paf 1201: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202: exit $exit_status
1203: ' 0
1204: for ac_signal in 1 2 13 15; do
1205: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206: done
1207: ac_signal=0
1208:
1209: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210: rm -rf conftest* confdefs.h
1211: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212: echo >confdefs.h
1213:
1214: # Predefined preprocessor variables.
1215:
1216: cat >>confdefs.h <<_ACEOF
1217: #define PACKAGE_NAME "$PACKAGE_NAME"
1218: _ACEOF
1219:
1220:
1221: cat >>confdefs.h <<_ACEOF
1222: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223: _ACEOF
1224:
1225:
1226: cat >>confdefs.h <<_ACEOF
1227: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228: _ACEOF
1.1 parser 1229:
1.15 paf 1230:
1231: cat >>confdefs.h <<_ACEOF
1232: #define PACKAGE_STRING "$PACKAGE_STRING"
1233: _ACEOF
1234:
1235:
1236: cat >>confdefs.h <<_ACEOF
1237: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238: _ACEOF
1239:
1240:
1241: # Let the site file select an alternate cache file if it wants to.
1.1 parser 1242: # Prefer explicitly selected file to automatically selected ones.
1243: if test -z "$CONFIG_SITE"; then
1244: if test "x$prefix" != xNONE; then
1245: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246: else
1247: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248: fi
1249: fi
1250: for ac_site_file in $CONFIG_SITE; do
1251: if test -r "$ac_site_file"; then
1.15 paf 1252: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253: echo "$as_me: loading site script $ac_site_file" >&6;}
1254: sed 's/^/| /' "$ac_site_file" >&5
1.1 parser 1255: . "$ac_site_file"
1256: fi
1257: done
1258:
1259: if test -r "$cache_file"; then
1.15 paf 1260: # Some versions of bash will fail to source /dev/null (special
1261: # files actually), so we avoid doing that.
1262: if test -f "$cache_file"; then
1263: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264: echo "$as_me: loading cache $cache_file" >&6;}
1265: case $cache_file in
1266: [\\/]* | ?:[\\/]* ) . $cache_file;;
1267: *) . ./$cache_file;;
1268: esac
1269: fi
1.1 parser 1270: else
1.15 paf 1271: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272: echo "$as_me: creating cache $cache_file" >&6;}
1273: >$cache_file
1274: fi
1275:
1276: # Check that the precious variables saved in the cache have kept the same
1277: # value.
1278: ac_cache_corrupted=false
1279: for ac_var in `(set) 2>&1 |
1.25 paf 1280: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.15 paf 1281: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282: eval ac_new_set=\$ac_env_${ac_var}_set
1283: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284: eval ac_new_val="\$ac_env_${ac_var}_value"
1285: case $ac_old_set,$ac_new_set in
1286: set,)
1287: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289: ac_cache_corrupted=: ;;
1290: ,set)
1291: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293: ac_cache_corrupted=: ;;
1294: ,);;
1295: *)
1296: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 paf 1297: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.15 paf 1298: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 paf 1299: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.15 paf 1300: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 paf 1301: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.15 paf 1302: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 paf 1303: ac_cache_corrupted=:
1.15 paf 1304: fi;;
1305: esac
1306: # Pass precious variables to config.status.
1307: if test "$ac_new_set" = set; then
1308: case $ac_new_val in
1309: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311: *) ac_arg=$ac_var=$ac_new_val ;;
1312: esac
1313: case " $ac_configure_args " in
1314: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1315: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316: esac
1317: fi
1318: done
1319: if $ac_cache_corrupted; then
1320: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324: { (exit 1); exit 1; }; }
1.1 parser 1325: fi
1326:
1327: ac_ext=c
1328: ac_cpp='$CPP $CPPFLAGS'
1.15 paf 1329: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332:
1333:
1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1.1 parser 1351:
1352:
1.36 moko 1353:
1354:
1355:
1356:
1357:
1358:
1359:
1360: ac_config_headers="$ac_config_headers config_auto.h"
1361:
1362:
1.25 paf 1363: am__api_version="1.9"
1.1 parser 1364: ac_aux_dir=
1365: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366: if test -f $ac_dir/install-sh; then
1367: ac_aux_dir=$ac_dir
1368: ac_install_sh="$ac_aux_dir/install-sh -c"
1369: break
1370: elif test -f $ac_dir/install.sh; then
1371: ac_aux_dir=$ac_dir
1372: ac_install_sh="$ac_aux_dir/install.sh -c"
1373: break
1.15 paf 1374: elif test -f $ac_dir/shtool; then
1375: ac_aux_dir=$ac_dir
1376: ac_install_sh="$ac_aux_dir/shtool install -c"
1377: break
1.1 parser 1378: fi
1379: done
1380: if test -z "$ac_aux_dir"; then
1.15 paf 1381: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383: { (exit 1); exit 1; }; }
1384: fi
1385: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 parser 1388:
1389: # Find a good install program. We prefer a C program (faster),
1390: # so one script is as good as another. But avoid the broken or
1391: # incompatible versions:
1392: # SysV /etc/install, /usr/sbin/install
1393: # SunOS /usr/etc/install
1394: # IRIX /sbin/install
1395: # AIX /bin/install
1.15 paf 1396: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1397: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1400: # OS/2's system install, which has a completely different semantic
1.1 parser 1401: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1402: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1404: if test -z "$INSTALL"; then
1.15 paf 1405: if test "${ac_cv_path_install+set}" = set; then
1406: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1407: else
1.15 paf 1408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409: for as_dir in $PATH
1410: do
1411: IFS=$as_save_IFS
1412: test -z "$as_dir" && as_dir=.
1413: # Account for people who put trailing slashes in PATH elements.
1414: case $as_dir/ in
1415: ./ | .// | /cC/* | \
1416: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1417: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1418: /usr/ucb/* ) ;;
1419: *)
1420: # OSF1 and SCO ODT 3.0 have their own names for install.
1421: # Don't use installbsd from OSF since it installs stuff as root
1422: # by default.
1423: for ac_prog in ginstall scoinst install; do
1424: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1425: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426: if test $ac_prog = install &&
1427: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428: # AIX install. It has an incompatible calling convention.
1429: :
1430: elif test $ac_prog = install &&
1431: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432: # program-specific install script used by HP pwplus--don't use.
1433: :
1434: else
1435: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436: break 3
1437: fi
1438: fi
1.1 parser 1439: done
1.15 paf 1440: done
1441: ;;
1442: esac
1443: done
1444:
1.1 parser 1445:
1446: fi
1447: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1448: INSTALL=$ac_cv_path_install
1.1 parser 1449: else
1450: # As a last resort, use the slow shell script. We don't cache a
1451: # path for INSTALL within a source directory, because that will
1452: # break other packages using the cache if that directory is
1453: # removed, or if the path is relative.
1.15 paf 1454: INSTALL=$ac_install_sh
1.1 parser 1455: fi
1456: fi
1.15 paf 1457: echo "$as_me:$LINENO: result: $INSTALL" >&5
1458: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1459:
1460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461: # It thinks the first close brace ends the variable substitution.
1462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463:
1.15 paf 1464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1465:
1466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467:
1.15 paf 1468: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 parser 1470: # Just in case
1471: sleep 1
1.15 paf 1472: echo timestamp > conftest.file
1.1 parser 1473: # Do `set' in a subshell so we don't clobber the current shell's
1474: # arguments. Must try -L first in case configure is actually a
1475: # symlink; some systems play weird games with the mod time of symlinks
1476: # (eg FreeBSD returns the mod time of the symlink's containing
1477: # directory).
1478: if (
1.15 paf 1479: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 parser 1480: if test "$*" = "X"; then
1481: # -L didn't work.
1.15 paf 1482: set X `ls -t $srcdir/configure conftest.file`
1.1 parser 1483: fi
1.15 paf 1484: rm -f conftest.file
1485: if test "$*" != "X $srcdir/configure conftest.file" \
1486: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 parser 1487:
1488: # If neither matched, then we have a broken ls. This can happen
1489: # if, for instance, CONFIG_SHELL is bash and it inherits a
1490: # broken ls alias from the environment. This has actually
1491: # happened. Such a system could not be considered "sane".
1.15 paf 1492: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1493: alias in your environment" >&5
1494: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1495: alias in your environment" >&2;}
1496: { (exit 1); exit 1; }; }
1.1 parser 1497: fi
1498:
1.15 paf 1499: test "$2" = conftest.file
1.1 parser 1500: )
1501: then
1502: # Ok.
1503: :
1504: else
1.15 paf 1505: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506: Check your system clock" >&5
1507: echo "$as_me: error: newly created file is older than distributed files!
1508: Check your system clock" >&2;}
1509: { (exit 1); exit 1; }; }
1.1 parser 1510: fi
1.15 paf 1511: echo "$as_me:$LINENO: result: yes" >&5
1512: echo "${ECHO_T}yes" >&6
1.1 parser 1513: test "$program_prefix" != NONE &&
1.15 paf 1514: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 parser 1515: # Use a double $ so make ignores it.
1516: test "$program_suffix" != NONE &&
1.15 paf 1517: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518: # Double any \ or $. echo might interpret backslashes.
1519: # By default was `s,x,x', remove it if useless.
1520: cat <<\_ACEOF >conftest.sed
1521: s/[\\$]/&&/g;s/;s,x,x,$//
1522: _ACEOF
1523: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524: rm conftest.sed
1525:
1526: # expand $ac_aux_dir to an absolute path
1527: am_aux_dir=`cd $ac_aux_dir && pwd`
1528:
1529: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1530: # Use eval to expand $SHELL
1531: if eval "$MISSING --run true"; then
1532: am_missing_run="$MISSING --run "
1533: else
1534: am_missing_run=
1535: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1536: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1537: fi
1538:
1.25 paf 1539: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1540: # We used to keeping the `.' as first argument, in order to
1541: # allow $(mkdir_p) to be used without argument. As in
1542: # $(mkdir_p) $(somedir)
1543: # where $(somedir) is conditionally defined. However this is wrong
1544: # for two reasons:
1545: # 1. if the package is installed by a user who cannot write `.'
1546: # make install will fail,
1547: # 2. the above comment should most certainly read
1548: # $(mkdir_p) $(DESTDIR)$(somedir)
1549: # so it does not work when $(somedir) is undefined and
1550: # $(DESTDIR) is not.
1551: # To support the latter case, we have to write
1552: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1553: # so the `.' trick is pointless.
1554: mkdir_p='mkdir -p --'
1555: else
1556: # On NextStep and OpenStep, the `mkdir' command does not
1557: # recognize any option. It will interpret all options as
1558: # directories to create, and then abort because `.' already
1559: # exists.
1560: for d in ./-p ./--version;
1561: do
1562: test -d $d && rmdir $d
1563: done
1564: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1565: if test -f "$ac_aux_dir/mkinstalldirs"; then
1566: mkdir_p='$(mkinstalldirs)'
1567: else
1568: mkdir_p='$(install_sh) -d'
1569: fi
1570: fi
1571:
1.15 paf 1572: for ac_prog in gawk mawk nawk awk
1573: do
1574: # Extract the first word of "$ac_prog", so it can be a program name with args.
1575: set dummy $ac_prog; ac_word=$2
1576: echo "$as_me:$LINENO: checking for $ac_word" >&5
1577: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578: if test "${ac_cv_prog_AWK+set}" = set; then
1579: echo $ECHO_N "(cached) $ECHO_C" >&6
1580: else
1581: if test -n "$AWK"; then
1582: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1583: else
1584: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585: for as_dir in $PATH
1586: do
1587: IFS=$as_save_IFS
1588: test -z "$as_dir" && as_dir=.
1589: for ac_exec_ext in '' $ac_executable_extensions; do
1590: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591: ac_cv_prog_AWK="$ac_prog"
1592: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593: break 2
1594: fi
1595: done
1596: done
1597:
1598: fi
1599: fi
1600: AWK=$ac_cv_prog_AWK
1601: if test -n "$AWK"; then
1602: echo "$as_me:$LINENO: result: $AWK" >&5
1603: echo "${ECHO_T}$AWK" >&6
1604: else
1605: echo "$as_me:$LINENO: result: no" >&5
1606: echo "${ECHO_T}no" >&6
1607: fi
1.1 parser 1608:
1.15 paf 1609: test -n "$AWK" && break
1610: done
1.1 parser 1611:
1.15 paf 1612: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1613: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.25 paf 1614: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.15 paf 1615: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1616: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1617: else
1.15 paf 1618: cat >conftest.make <<\_ACEOF
1.1 parser 1619: all:
1.15 paf 1620: @echo 'ac_maketemp="$(MAKE)"'
1621: _ACEOF
1.1 parser 1622: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.15 paf 1623: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 parser 1624: if test -n "$ac_maketemp"; then
1625: eval ac_cv_prog_make_${ac_make}_set=yes
1626: else
1627: eval ac_cv_prog_make_${ac_make}_set=no
1628: fi
1.15 paf 1629: rm -f conftest.make
1.1 parser 1630: fi
1631: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.15 paf 1632: echo "$as_me:$LINENO: result: yes" >&5
1633: echo "${ECHO_T}yes" >&6
1.1 parser 1634: SET_MAKE=
1635: else
1.15 paf 1636: echo "$as_me:$LINENO: result: no" >&5
1637: echo "${ECHO_T}no" >&6
1.1 parser 1638: SET_MAKE="MAKE=${MAKE-make}"
1639: fi
1640:
1.25 paf 1641: rm -rf .tst 2>/dev/null
1642: mkdir .tst 2>/dev/null
1643: if test -d .tst; then
1644: am__leading_dot=.
1645: else
1646: am__leading_dot=_
1647: fi
1648: rmdir .tst 2>/dev/null
1649:
1650: # test to see if srcdir already configured
1.15 paf 1651: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1652: test -f $srcdir/config.status; then
1653: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1654: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1655: { (exit 1); exit 1; }; }
1656: fi
1657:
1658: # test whether we have cygpath
1659: if test -z "$CYGPATH_W"; then
1660: if (cygpath --version) >/dev/null 2>/dev/null; then
1661: CYGPATH_W='cygpath -w'
1662: else
1663: CYGPATH_W=echo
1664: fi
1665: fi
1666:
1667:
1668: # Define the identity of the package.
1.36 moko 1669: PACKAGE='parser3mysql-c'
1670: VERSION='10.3'
1.15 paf 1671:
1672:
1.36 moko 1673: cat >>confdefs.h <<_ACEOF
1674: #define PACKAGE "$PACKAGE"
1675: _ACEOF
1676:
1677:
1678: cat >>confdefs.h <<_ACEOF
1679: #define VERSION "$VERSION"
1680: _ACEOF
1681:
1.15 paf 1682: # Some tools Automake needs.
1683:
1684: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1685:
1686:
1687: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 parser 1688:
1689:
1.15 paf 1690: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1691:
1692:
1693: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1694:
1695:
1696: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 parser 1697:
1.15 paf 1698: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 parser 1699:
1.15 paf 1700: # Installed binaries are usually stripped using `strip' when the user
1701: # run `make install-strip'. However `strip' might not be the right
1702: # tool to use in cross-compilation environments, therefore Automake
1703: # will honor the `STRIP' environment variable to overrule this program.
1704: if test "$cross_compiling" != no; then
1705: if test -n "$ac_tool_prefix"; then
1706: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1707: set dummy ${ac_tool_prefix}strip; ac_word=$2
1708: echo "$as_me:$LINENO: checking for $ac_word" >&5
1709: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710: if test "${ac_cv_prog_STRIP+set}" = set; then
1711: echo $ECHO_N "(cached) $ECHO_C" >&6
1712: else
1713: if test -n "$STRIP"; then
1714: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.1 parser 1715: else
1.15 paf 1716: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717: for as_dir in $PATH
1718: do
1719: IFS=$as_save_IFS
1720: test -z "$as_dir" && as_dir=.
1721: for ac_exec_ext in '' $ac_executable_extensions; do
1722: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1724: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725: break 2
1726: fi
1727: done
1728: done
1729:
1730: fi
1731: fi
1732: STRIP=$ac_cv_prog_STRIP
1733: if test -n "$STRIP"; then
1734: echo "$as_me:$LINENO: result: $STRIP" >&5
1735: echo "${ECHO_T}$STRIP" >&6
1736: else
1737: echo "$as_me:$LINENO: result: no" >&5
1738: echo "${ECHO_T}no" >&6
1.1 parser 1739: fi
1740:
1.15 paf 1741: fi
1742: if test -z "$ac_cv_prog_STRIP"; then
1743: ac_ct_STRIP=$STRIP
1744: # Extract the first word of "strip", so it can be a program name with args.
1745: set dummy strip; ac_word=$2
1746: echo "$as_me:$LINENO: checking for $ac_word" >&5
1747: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1750: else
1.15 paf 1751: if test -n "$ac_ct_STRIP"; then
1752: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1753: else
1754: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755: for as_dir in $PATH
1756: do
1757: IFS=$as_save_IFS
1758: test -z "$as_dir" && as_dir=.
1759: for ac_exec_ext in '' $ac_executable_extensions; do
1760: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761: ac_cv_prog_ac_ct_STRIP="strip"
1762: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763: break 2
1764: fi
1765: done
1766: done
1767:
1768: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 1769: fi
1.15 paf 1770: fi
1771: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1772: if test -n "$ac_ct_STRIP"; then
1773: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1774: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 parser 1775: else
1.15 paf 1776: echo "$as_me:$LINENO: result: no" >&5
1777: echo "${ECHO_T}no" >&6
1.1 parser 1778: fi
1779:
1.15 paf 1780: STRIP=$ac_ct_STRIP
1.1 parser 1781: else
1.15 paf 1782: STRIP="$ac_cv_prog_STRIP"
1.1 parser 1783: fi
1784:
1785: fi
1.15 paf 1786: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1787:
1788: # We need awk for the "check" target. The system "awk" is bad on
1789: # some platforms.
1.25 paf 1790: # Always define AMTAR for backward compatibility.
1791:
1792: AMTAR=${AMTAR-"${am_missing_run}tar"}
1793:
1794: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1795:
1796:
1.1 parser 1797:
1798:
1799:
1800:
1801:
1802:
1803:
1.4 paf 1804: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1 parser 1805: if test "${with_mysql_inc+set}" = set; then
1806: withval="$with_mysql_inc"
1.15 paf 1807:
1.8 paf 1808: if test -r "$withval/mysql.h"; then
1809: MYSQL_INC=$withval
1810: fi
1811:
1812:
1.33 misha 1813: if test -z "$MYSQL_INC"; then
1.15 paf 1814: { { echo "$as_me:$LINENO: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&5
1815: echo "$as_me: error: $MYSQL_INC does not seem to be valid MySQL includes directory" >&2;}
1816: { (exit 1); exit 1; }; }
1.33 misha 1817: fi
1.8 paf 1818:
1.1 parser 1819: else
1.15 paf 1820: echo "$as_me:$LINENO: checking for MYSQL_INC directory" >&5
1821: echo $ECHO_N "checking for MYSQL_INC directory... $ECHO_C" >&6
1.8 paf 1822: for d in \
1823: /usr/local/include/mysql \
1824: /usr/include/mysql ; do
1.15 paf 1825:
1.8 paf 1826: if test -r "$d/mysql.h"; then
1827: MYSQL_INC=$d
1828: fi
1829:
1830: done
1831:
1.33 misha 1832: if test -z "$MYSQL_INC"; then
1833: { { echo "$as_me:$LINENO: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&5
1.15 paf 1834: echo "$as_me: error: use --with-mysql-inc=DIR to specify MySQL includes directory" >&2;}
1835: { (exit 1); exit 1; }; }
1.33 misha 1836: fi
1.8 paf 1837:
1.15 paf 1838: echo "$as_me:$LINENO: result: $MYSQL_INC" >&5
1839: echo "${ECHO_T}$MYSQL_INC" >&6
1.1 parser 1840:
1.15 paf 1841: fi;
1.3 parser 1842:
1.1 parser 1843:
1844:
1.3 parser 1845:
1.33 misha 1846: # Check whether --with-dynamic-stdcpp or --without-dynamic-stdcpp was given.
1847: if test "${with_dynamic_stdcpp+set}" = set; then
1848: withval="$with_dynamic_stdcpp"
1849:
1850: LDFLAGS="-lstdc++"
1851:
1852: else
1853:
1854: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
1855:
1856: fi;
1857:
1858:
1859:
1.1 parser 1860: # Find a good install program. We prefer a C program (faster),
1861: # so one script is as good as another. But avoid the broken or
1862: # incompatible versions:
1863: # SysV /etc/install, /usr/sbin/install
1864: # SunOS /usr/etc/install
1865: # IRIX /sbin/install
1866: # AIX /bin/install
1.15 paf 1867: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 parser 1868: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1869: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1870: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.25 paf 1871: # OS/2's system install, which has a completely different semantic
1.1 parser 1872: # ./install, which can be erroneously created by make from ./install.sh.
1.15 paf 1873: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1874: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 parser 1875: if test -z "$INSTALL"; then
1.15 paf 1876: if test "${ac_cv_path_install+set}" = set; then
1877: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1878: else
1.15 paf 1879: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880: for as_dir in $PATH
1881: do
1882: IFS=$as_save_IFS
1883: test -z "$as_dir" && as_dir=.
1884: # Account for people who put trailing slashes in PATH elements.
1885: case $as_dir/ in
1886: ./ | .// | /cC/* | \
1887: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.25 paf 1888: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.15 paf 1889: /usr/ucb/* ) ;;
1890: *)
1891: # OSF1 and SCO ODT 3.0 have their own names for install.
1892: # Don't use installbsd from OSF since it installs stuff as root
1893: # by default.
1894: for ac_prog in ginstall scoinst install; do
1895: for ac_exec_ext in '' $ac_executable_extensions; do
1.25 paf 1896: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1897: if test $ac_prog = install &&
1898: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1899: # AIX install. It has an incompatible calling convention.
1900: :
1901: elif test $ac_prog = install &&
1902: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1903: # program-specific install script used by HP pwplus--don't use.
1904: :
1905: else
1906: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1907: break 3
1908: fi
1909: fi
1.1 parser 1910: done
1.15 paf 1911: done
1912: ;;
1913: esac
1914: done
1915:
1.1 parser 1916:
1917: fi
1918: if test "${ac_cv_path_install+set}" = set; then
1.15 paf 1919: INSTALL=$ac_cv_path_install
1.1 parser 1920: else
1921: # As a last resort, use the slow shell script. We don't cache a
1922: # path for INSTALL within a source directory, because that will
1923: # break other packages using the cache if that directory is
1924: # removed, or if the path is relative.
1.15 paf 1925: INSTALL=$ac_install_sh
1.1 parser 1926: fi
1927: fi
1.15 paf 1928: echo "$as_me:$LINENO: result: $INSTALL" >&5
1929: echo "${ECHO_T}$INSTALL" >&6
1.1 parser 1930:
1931: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1932: # It thinks the first close brace ends the variable substitution.
1933: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1934:
1.15 paf 1935: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 parser 1936:
1937: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1938:
1.15 paf 1939: ac_ext=cc
1940: ac_cpp='$CXXCPP $CPPFLAGS'
1941: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1944: if test -n "$ac_tool_prefix"; then
1945: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1946: do
1947: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949: echo "$as_me:$LINENO: checking for $ac_word" >&5
1950: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951: if test "${ac_cv_prog_CXX+set}" = set; then
1952: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 1953: else
1954: if test -n "$CXX"; then
1955: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1956: else
1.15 paf 1957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958: for as_dir in $PATH
1959: do
1960: IFS=$as_save_IFS
1961: test -z "$as_dir" && as_dir=.
1962: for ac_exec_ext in '' $ac_executable_extensions; do
1963: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1965: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966: break 2
1967: fi
1968: done
1969: done
1970:
1.1 parser 1971: fi
1972: fi
1.15 paf 1973: CXX=$ac_cv_prog_CXX
1.1 parser 1974: if test -n "$CXX"; then
1.15 paf 1975: echo "$as_me:$LINENO: result: $CXX" >&5
1976: echo "${ECHO_T}$CXX" >&6
1.1 parser 1977: else
1.15 paf 1978: echo "$as_me:$LINENO: result: no" >&5
1979: echo "${ECHO_T}no" >&6
1.1 parser 1980: fi
1981:
1.15 paf 1982: test -n "$CXX" && break
1983: done
1984: fi
1985: if test -z "$CXX"; then
1986: ac_ct_CXX=$CXX
1987: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1988: do
1989: # Extract the first word of "$ac_prog", so it can be a program name with args.
1990: set dummy $ac_prog; ac_word=$2
1991: echo "$as_me:$LINENO: checking for $ac_word" >&5
1992: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1994: echo $ECHO_N "(cached) $ECHO_C" >&6
1995: else
1996: if test -n "$ac_ct_CXX"; then
1997: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1998: else
1999: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000: for as_dir in $PATH
2001: do
2002: IFS=$as_save_IFS
2003: test -z "$as_dir" && as_dir=.
2004: for ac_exec_ext in '' $ac_executable_extensions; do
2005: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006: ac_cv_prog_ac_ct_CXX="$ac_prog"
2007: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008: break 2
2009: fi
2010: done
1.1 parser 2011: done
2012:
1.15 paf 2013: fi
2014: fi
2015: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2016: if test -n "$ac_ct_CXX"; then
2017: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2018: echo "${ECHO_T}$ac_ct_CXX" >&6
2019: else
2020: echo "$as_me:$LINENO: result: no" >&5
2021: echo "${ECHO_T}no" >&6
2022: fi
1.1 parser 2023:
1.15 paf 2024: test -n "$ac_ct_CXX" && break
2025: done
2026: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.1 parser 2027:
1.15 paf 2028: CXX=$ac_ct_CXX
2029: fi
1.1 parser 2030:
2031:
1.15 paf 2032: # Provide some information about the compiler.
2033: echo "$as_me:$LINENO:" \
2034: "checking for C++ compiler version" >&5
2035: ac_compiler=`set X $ac_compile; echo $2`
2036: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2037: (eval $ac_compiler --version </dev/null >&5) 2>&5
2038: ac_status=$?
2039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040: (exit $ac_status); }
2041: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2042: (eval $ac_compiler -v </dev/null >&5) 2>&5
2043: ac_status=$?
2044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045: (exit $ac_status); }
2046: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2047: (eval $ac_compiler -V </dev/null >&5) 2>&5
2048: ac_status=$?
2049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050: (exit $ac_status); }
2051:
2052: cat >conftest.$ac_ext <<_ACEOF
2053: /* confdefs.h. */
2054: _ACEOF
2055: cat confdefs.h >>conftest.$ac_ext
2056: cat >>conftest.$ac_ext <<_ACEOF
2057: /* end confdefs.h. */
2058:
2059: int
2060: main ()
2061: {
2062:
2063: ;
2064: return 0;
2065: }
2066: _ACEOF
2067: ac_clean_files_save=$ac_clean_files
2068: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2069: # Try to create an executable without -o first, disregard a.out.
2070: # It will help us diagnose broken compilers, and finding out an intuition
2071: # of exeext.
1.25 paf 2072: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2073: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.15 paf 2074: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2075: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2076: (eval $ac_link_default) 2>&5
2077: ac_status=$?
2078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079: (exit $ac_status); }; then
2080: # Find the output, starting from the most likely. This scheme is
2081: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2082: # resort.
2083:
2084: # Be careful to initialize this variable, since it used to be cached.
2085: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2086: ac_cv_exeext=
2087: # b.out is created by i960 compilers.
2088: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2089: do
2090: test -f "$ac_file" || continue
2091: case $ac_file in
2092: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25 paf 2093: ;;
1.15 paf 2094: conftest.$ac_ext )
1.25 paf 2095: # This is the source file.
2096: ;;
1.15 paf 2097: [ab].out )
1.25 paf 2098: # We found the default executable, but exeext='' is most
2099: # certainly right.
2100: break;;
1.15 paf 2101: *.* )
1.25 paf 2102: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103: # FIXME: I believe we export ac_cv_exeext for Libtool,
2104: # but it would be cool to find out if it's true. Does anybody
2105: # maintain Libtool? --akim.
2106: export ac_cv_exeext
2107: break;;
1.15 paf 2108: * )
1.25 paf 2109: break;;
1.15 paf 2110: esac
2111: done
2112: else
2113: echo "$as_me: failed program was:" >&5
2114: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2115:
1.15 paf 2116: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2117: See \`config.log' for more details." >&5
2118: echo "$as_me: error: C++ compiler cannot create executables
2119: See \`config.log' for more details." >&2;}
2120: { (exit 77); exit 77; }; }
2121: fi
2122:
2123: ac_exeext=$ac_cv_exeext
2124: echo "$as_me:$LINENO: result: $ac_file" >&5
2125: echo "${ECHO_T}$ac_file" >&6
2126:
2127: # Check the compiler produces executables we can run. If not, either
2128: # the compiler is broken, or we cross compile.
2129: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2130: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2131: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2132: # If not cross compiling, check that we can run a simple program.
2133: if test "$cross_compiling" != yes; then
2134: if { ac_try='./$ac_file'
2135: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136: (eval $ac_try) 2>&5
2137: ac_status=$?
2138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139: (exit $ac_status); }; }; then
2140: cross_compiling=no
2141: else
2142: if test "$cross_compiling" = maybe; then
2143: cross_compiling=yes
2144: else
2145: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2146: If you meant to cross compile, use \`--host'.
2147: See \`config.log' for more details." >&5
2148: echo "$as_me: error: cannot run C++ compiled programs.
2149: If you meant to cross compile, use \`--host'.
2150: See \`config.log' for more details." >&2;}
2151: { (exit 1); exit 1; }; }
2152: fi
1.1 parser 2153: fi
1.15 paf 2154: fi
2155: echo "$as_me:$LINENO: result: yes" >&5
2156: echo "${ECHO_T}yes" >&6
2157:
2158: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159: ac_clean_files=$ac_clean_files_save
2160: # Check the compiler produces executables we can run. If not, either
2161: # the compiler is broken, or we cross compile.
2162: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2164: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165: echo "${ECHO_T}$cross_compiling" >&6
2166:
2167: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2169: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2170: (eval $ac_link) 2>&5
2171: ac_status=$?
2172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173: (exit $ac_status); }; then
2174: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2175: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2176: # work properly (i.e., refer to `conftest.exe'), while it won't with
2177: # `rm'.
2178: for ac_file in conftest.exe conftest conftest.*; do
2179: test -f "$ac_file" || continue
2180: case $ac_file in
2181: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2182: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 paf 2183: export ac_cv_exeext
2184: break;;
1.15 paf 2185: * ) break;;
2186: esac
2187: done
1.1 parser 2188: else
1.15 paf 2189: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2190: See \`config.log' for more details." >&5
2191: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2192: See \`config.log' for more details." >&2;}
2193: { (exit 1); exit 1; }; }
2194: fi
2195:
2196: rm -f conftest$ac_cv_exeext
2197: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2198: echo "${ECHO_T}$ac_cv_exeext" >&6
2199:
2200: rm -f conftest.$ac_ext
2201: EXEEXT=$ac_cv_exeext
2202: ac_exeext=$EXEEXT
2203: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2204: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2205: if test "${ac_cv_objext+set}" = set; then
2206: echo $ECHO_N "(cached) $ECHO_C" >&6
2207: else
2208: cat >conftest.$ac_ext <<_ACEOF
2209: /* confdefs.h. */
2210: _ACEOF
2211: cat confdefs.h >>conftest.$ac_ext
2212: cat >>conftest.$ac_ext <<_ACEOF
2213: /* end confdefs.h. */
2214:
2215: int
2216: main ()
2217: {
2218:
2219: ;
2220: return 0;
2221: }
2222: _ACEOF
2223: rm -f conftest.o conftest.obj
2224: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225: (eval $ac_compile) 2>&5
2226: ac_status=$?
2227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228: (exit $ac_status); }; then
2229: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2230: case $ac_file in
2231: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2232: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2233: break;;
2234: esac
2235: done
1.1 parser 2236: else
1.15 paf 2237: echo "$as_me: failed program was:" >&5
2238: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2239:
1.15 paf 2240: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2241: See \`config.log' for more details." >&5
2242: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2243: See \`config.log' for more details." >&2;}
2244: { (exit 1); exit 1; }; }
2245: fi
2246:
2247: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2248: fi
2249: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2250: echo "${ECHO_T}$ac_cv_objext" >&6
2251: OBJEXT=$ac_cv_objext
2252: ac_objext=$OBJEXT
2253: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2254: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2255: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2256: echo $ECHO_N "(cached) $ECHO_C" >&6
2257: else
2258: cat >conftest.$ac_ext <<_ACEOF
2259: /* confdefs.h. */
2260: _ACEOF
2261: cat confdefs.h >>conftest.$ac_ext
2262: cat >>conftest.$ac_ext <<_ACEOF
2263: /* end confdefs.h. */
2264:
2265: int
2266: main ()
2267: {
2268: #ifndef __GNUC__
2269: choke me
2270: #endif
1.1 parser 2271:
1.15 paf 2272: ;
2273: return 0;
2274: }
2275: _ACEOF
2276: rm -f conftest.$ac_objext
2277: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2278: (eval $ac_compile) 2>conftest.er1
1.15 paf 2279: ac_status=$?
1.25 paf 2280: grep -v '^ *+' conftest.er1 >conftest.err
2281: rm -f conftest.er1
2282: cat conftest.err >&5
1.15 paf 2283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284: (exit $ac_status); } &&
1.25 paf 2285: { ac_try='test -z "$ac_cxx_werror_flag"
2286: || test ! -s conftest.err'
2287: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288: (eval $ac_try) 2>&5
2289: ac_status=$?
2290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291: (exit $ac_status); }; } &&
2292: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2293: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294: (eval $ac_try) 2>&5
2295: ac_status=$?
2296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297: (exit $ac_status); }; }; then
2298: ac_compiler_gnu=yes
2299: else
2300: echo "$as_me: failed program was:" >&5
2301: sed 's/^/| /' conftest.$ac_ext >&5
2302:
2303: ac_compiler_gnu=no
2304: fi
1.25 paf 2305: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2306: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2307:
2308: fi
2309: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2310: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2311: GXX=`test $ac_compiler_gnu = yes && echo yes`
2312: ac_test_CXXFLAGS=${CXXFLAGS+set}
2313: ac_save_CXXFLAGS=$CXXFLAGS
2314: CXXFLAGS="-g"
2315: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2316: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2317: if test "${ac_cv_prog_cxx_g+set}" = set; then
2318: echo $ECHO_N "(cached) $ECHO_C" >&6
2319: else
2320: cat >conftest.$ac_ext <<_ACEOF
2321: /* confdefs.h. */
2322: _ACEOF
2323: cat confdefs.h >>conftest.$ac_ext
2324: cat >>conftest.$ac_ext <<_ACEOF
2325: /* end confdefs.h. */
2326:
2327: int
2328: main ()
2329: {
2330:
2331: ;
2332: return 0;
2333: }
2334: _ACEOF
2335: rm -f conftest.$ac_objext
2336: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2337: (eval $ac_compile) 2>conftest.er1
1.15 paf 2338: ac_status=$?
1.25 paf 2339: grep -v '^ *+' conftest.er1 >conftest.err
2340: rm -f conftest.er1
2341: cat conftest.err >&5
1.15 paf 2342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343: (exit $ac_status); } &&
1.25 paf 2344: { ac_try='test -z "$ac_cxx_werror_flag"
2345: || test ! -s conftest.err'
2346: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347: (eval $ac_try) 2>&5
2348: ac_status=$?
2349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350: (exit $ac_status); }; } &&
2351: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2352: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353: (eval $ac_try) 2>&5
2354: ac_status=$?
2355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356: (exit $ac_status); }; }; then
2357: ac_cv_prog_cxx_g=yes
1.1 parser 2358: else
1.15 paf 2359: echo "$as_me: failed program was:" >&5
2360: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 2361:
1.15 paf 2362: ac_cv_prog_cxx_g=no
1.1 parser 2363: fi
1.25 paf 2364: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 2365: fi
1.15 paf 2366: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2367: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 parser 2368: if test "$ac_test_CXXFLAGS" = set; then
1.15 paf 2369: CXXFLAGS=$ac_save_CXXFLAGS
1.1 parser 2370: elif test $ac_cv_prog_cxx_g = yes; then
2371: if test "$GXX" = yes; then
2372: CXXFLAGS="-g -O2"
2373: else
2374: CXXFLAGS="-g"
2375: fi
2376: else
2377: if test "$GXX" = yes; then
2378: CXXFLAGS="-O2"
2379: else
2380: CXXFLAGS=
2381: fi
2382: fi
1.15 paf 2383: for ac_declaration in \
1.25 paf 2384: '' \
1.15 paf 2385: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2386: 'extern "C" void std::exit (int); using std::exit;' \
2387: 'extern "C" void exit (int) throw ();' \
2388: 'extern "C" void exit (int);' \
2389: 'void exit (int);'
2390: do
2391: cat >conftest.$ac_ext <<_ACEOF
2392: /* confdefs.h. */
2393: _ACEOF
2394: cat confdefs.h >>conftest.$ac_ext
2395: cat >>conftest.$ac_ext <<_ACEOF
2396: /* end confdefs.h. */
1.25 paf 2397: $ac_declaration
1.15 paf 2398: #include <stdlib.h>
2399: int
2400: main ()
2401: {
2402: exit (42);
2403: ;
2404: return 0;
2405: }
2406: _ACEOF
2407: rm -f conftest.$ac_objext
2408: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2409: (eval $ac_compile) 2>conftest.er1
1.15 paf 2410: ac_status=$?
1.25 paf 2411: grep -v '^ *+' conftest.er1 >conftest.err
2412: rm -f conftest.er1
2413: cat conftest.err >&5
1.15 paf 2414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415: (exit $ac_status); } &&
1.25 paf 2416: { ac_try='test -z "$ac_cxx_werror_flag"
2417: || test ! -s conftest.err'
2418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419: (eval $ac_try) 2>&5
2420: ac_status=$?
2421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422: (exit $ac_status); }; } &&
2423: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425: (eval $ac_try) 2>&5
2426: ac_status=$?
2427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428: (exit $ac_status); }; }; then
2429: :
2430: else
2431: echo "$as_me: failed program was:" >&5
2432: sed 's/^/| /' conftest.$ac_ext >&5
2433:
2434: continue
2435: fi
1.25 paf 2436: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2437: cat >conftest.$ac_ext <<_ACEOF
2438: /* confdefs.h. */
2439: _ACEOF
2440: cat confdefs.h >>conftest.$ac_ext
2441: cat >>conftest.$ac_ext <<_ACEOF
2442: /* end confdefs.h. */
2443: $ac_declaration
2444: int
2445: main ()
2446: {
2447: exit (42);
2448: ;
2449: return 0;
2450: }
2451: _ACEOF
2452: rm -f conftest.$ac_objext
2453: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 2454: (eval $ac_compile) 2>conftest.er1
1.15 paf 2455: ac_status=$?
1.25 paf 2456: grep -v '^ *+' conftest.er1 >conftest.err
2457: rm -f conftest.er1
2458: cat conftest.err >&5
1.15 paf 2459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460: (exit $ac_status); } &&
1.25 paf 2461: { ac_try='test -z "$ac_cxx_werror_flag"
2462: || test ! -s conftest.err'
2463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464: (eval $ac_try) 2>&5
2465: ac_status=$?
2466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467: (exit $ac_status); }; } &&
2468: { ac_try='test -s conftest.$ac_objext'
1.15 paf 2469: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470: (eval $ac_try) 2>&5
2471: ac_status=$?
2472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473: (exit $ac_status); }; }; then
2474: break
2475: else
2476: echo "$as_me: failed program was:" >&5
2477: sed 's/^/| /' conftest.$ac_ext >&5
2478:
2479: fi
1.25 paf 2480: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 2481: done
2482: rm -f conftest*
2483: if test -n "$ac_declaration"; then
2484: echo '#ifdef __cplusplus' >>confdefs.h
2485: echo $ac_declaration >>confdefs.h
2486: echo '#endif' >>confdefs.h
2487: fi
2488:
1.24 paf 2489: ac_ext=c
2490: ac_cpp='$CPP $CPPFLAGS'
2491: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.25 paf 2494: DEPDIR="${am__leading_dot}deps"
1.15 paf 2495:
2496: ac_config_commands="$ac_config_commands depfiles"
2497:
2498:
2499: am_make=${MAKE-make}
2500: cat > confinc << 'END'
1.25 paf 2501: am__doit:
1.15 paf 2502: @echo done
1.25 paf 2503: .PHONY: am__doit
1.15 paf 2504: END
2505: # If we don't find an include directive, just comment out the code.
2506: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2507: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2508: am__include="#"
2509: am__quote=
2510: _am_result=none
2511: # First try GNU make style include.
2512: echo "include confinc" > confmf
2513: # We grep out `Entering directory' and `Leaving directory'
2514: # messages which can occur if `w' ends up in MAKEFLAGS.
2515: # In particular we don't look at `^make:' because GNU make might
2516: # be invoked under some other name (usually "gmake"), in which
2517: # case it prints its new name instead of `make'.
2518: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2519: am__include=include
2520: am__quote=
2521: _am_result=GNU
2522: fi
2523: # Now try BSD make style include.
2524: if test "$am__include" = "#"; then
2525: echo '.include "confinc"' > confmf
2526: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2527: am__include=.include
2528: am__quote="\""
2529: _am_result=BSD
2530: fi
2531: fi
2532:
2533:
2534: echo "$as_me:$LINENO: result: $_am_result" >&5
2535: echo "${ECHO_T}$_am_result" >&6
2536: rm -f confinc confmf
2537:
2538: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2539: if test "${enable_dependency_tracking+set}" = set; then
2540: enableval="$enable_dependency_tracking"
2541:
2542: fi;
2543: if test "x$enable_dependency_tracking" != xno; then
2544: am_depcomp="$ac_aux_dir/depcomp"
2545: AMDEPBACKSLASH='\'
2546: fi
2547:
2548:
2549: if test "x$enable_dependency_tracking" != xno; then
2550: AMDEP_TRUE=
2551: AMDEP_FALSE='#'
2552: else
2553: AMDEP_TRUE='#'
2554: AMDEP_FALSE=
2555: fi
2556:
2557:
2558:
2559:
2560: depcc="$CXX" am_compiler_list=
2561:
2562: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2563: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2564: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2565: echo $ECHO_N "(cached) $ECHO_C" >&6
2566: else
2567: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2568: # We make a subdir and do the tests there. Otherwise we can end up
2569: # making bogus files that we don't know about and never remove. For
2570: # instance it was reported that on HP-UX the gcc test will end up
2571: # making a dummy file named `D' -- because `-MD' means `put the output
2572: # in D'.
2573: mkdir conftest.dir
2574: # Copy depcomp to subdir because otherwise we won't find it if we're
2575: # using a relative directory.
2576: cp "$am_depcomp" conftest.dir
2577: cd conftest.dir
1.25 paf 2578: # We will build objects and dependencies in a subdirectory because
2579: # it helps to detect inapplicable dependency modes. For instance
2580: # both Tru64's cc and ICC support -MD to output dependencies as a
2581: # side effect of compilation, but ICC will put the dependencies in
2582: # the current directory while Tru64 will put them in the object
2583: # directory.
2584: mkdir sub
1.15 paf 2585:
2586: am_cv_CXX_dependencies_compiler_type=none
2587: if test "$am_compiler_list" = ""; then
2588: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2589: fi
2590: for depmode in $am_compiler_list; do
1.25 paf 2591: # Setup a source with many dependencies, because some compilers
2592: # like to wrap large dependency lists on column 80 (with \), and
2593: # we should not choose a depcomp mode which is confused by this.
2594: #
1.15 paf 2595: # We need to recreate these files for each test, as the compiler may
2596: # overwrite some of them when testing with obscure command lines.
2597: # This happens at least with the AIX C compiler.
1.25 paf 2598: : > sub/conftest.c
2599: for i in 1 2 3 4 5 6; do
2600: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2601: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2602: # Solaris 8's {/usr,}/bin/sh.
2603: touch sub/conftst$i.h
2604: done
2605: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 2606:
2607: case $depmode in
2608: nosideeffect)
2609: # after this tag, mechanisms are not by side-effect, so they'll
2610: # only be used when explicitly requested
2611: if test "x$enable_dependency_tracking" = xyes; then
2612: continue
2613: else
2614: break
2615: fi
2616: ;;
2617: none) break ;;
2618: esac
2619: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2620: # mode. It turns out that the SunPro C++ compiler does not properly
2621: # handle `-M -o', and we need to detect this.
2622: if depmode=$depmode \
1.25 paf 2623: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2624: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2625: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2626: >/dev/null 2>conftest.err &&
2627: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2628: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 2629: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 2630: # icc doesn't choke on unknown options, it will just issue warnings
2631: # or remarks (even with -Werror). So we grep stderr for any message
2632: # that says an option was ignored or not supported.
2633: # When given -MP, icc 7.0 and 7.1 complain thusly:
2634: # icc: Command line warning: ignoring option '-M'; no argument required
2635: # The diagnosis changed in icc 8.0:
2636: # icc: Command line remark: option '-MP' not supported
2637: if (grep 'ignoring option' conftest.err ||
2638: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2639: am_cv_CXX_dependencies_compiler_type=$depmode
2640: break
2641: fi
1.15 paf 2642: fi
2643: done
2644:
2645: cd ..
2646: rm -rf conftest.dir
2647: else
2648: am_cv_CXX_dependencies_compiler_type=none
2649: fi
2650:
2651: fi
2652: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2653: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2654: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2655:
2656:
2657:
2658: if
2659: test "x$enable_dependency_tracking" != xno \
2660: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2661: am__fastdepCXX_TRUE=
2662: am__fastdepCXX_FALSE='#'
2663: else
2664: am__fastdepCXX_TRUE='#'
2665: am__fastdepCXX_FALSE=
2666: fi
2667:
1.1 parser 2668:
1.15 paf 2669: ac_ext=c
2670: ac_cpp='$CPP $CPPFLAGS'
2671: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674: if test -n "$ac_tool_prefix"; then
2675: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677: echo "$as_me:$LINENO: checking for $ac_word" >&5
2678: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679: if test "${ac_cv_prog_CC+set}" = set; then
2680: echo $ECHO_N "(cached) $ECHO_C" >&6
2681: else
2682: if test -n "$CC"; then
2683: ac_cv_prog_CC="$CC" # Let the user override the test.
2684: else
2685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686: for as_dir in $PATH
2687: do
2688: IFS=$as_save_IFS
2689: test -z "$as_dir" && as_dir=.
2690: for ac_exec_ext in '' $ac_executable_extensions; do
2691: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694: break 2
2695: fi
2696: done
2697: done
1.1 parser 2698:
1.15 paf 2699: fi
2700: fi
2701: CC=$ac_cv_prog_CC
2702: if test -n "$CC"; then
2703: echo "$as_me:$LINENO: result: $CC" >&5
2704: echo "${ECHO_T}$CC" >&6
2705: else
2706: echo "$as_me:$LINENO: result: no" >&5
2707: echo "${ECHO_T}no" >&6
2708: fi
1.1 parser 2709:
1.15 paf 2710: fi
2711: if test -z "$ac_cv_prog_CC"; then
2712: ac_ct_CC=$CC
2713: # Extract the first word of "gcc", so it can be a program name with args.
2714: set dummy gcc; ac_word=$2
2715: echo "$as_me:$LINENO: checking for $ac_word" >&5
2716: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2719: else
1.15 paf 2720: if test -n "$ac_ct_CC"; then
2721: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 parser 2722: else
1.15 paf 2723: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724: for as_dir in $PATH
2725: do
2726: IFS=$as_save_IFS
2727: test -z "$as_dir" && as_dir=.
2728: for ac_exec_ext in '' $ac_executable_extensions; do
2729: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730: ac_cv_prog_ac_ct_CC="gcc"
2731: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732: break 2
2733: fi
2734: done
2735: done
2736:
2737: fi
1.1 parser 2738: fi
1.15 paf 2739: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740: if test -n "$ac_ct_CC"; then
2741: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2742: echo "${ECHO_T}$ac_ct_CC" >&6
2743: else
2744: echo "$as_me:$LINENO: result: no" >&5
2745: echo "${ECHO_T}no" >&6
1.1 parser 2746: fi
1.15 paf 2747:
2748: CC=$ac_ct_CC
1.1 parser 2749: else
1.15 paf 2750: CC="$ac_cv_prog_CC"
1.1 parser 2751: fi
2752:
1.15 paf 2753: if test -z "$CC"; then
2754: if test -n "$ac_tool_prefix"; then
2755: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2756: set dummy ${ac_tool_prefix}cc; ac_word=$2
2757: echo "$as_me:$LINENO: checking for $ac_word" >&5
2758: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759: if test "${ac_cv_prog_CC+set}" = set; then
2760: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2761: else
2762: if test -n "$CC"; then
2763: ac_cv_prog_CC="$CC" # Let the user override the test.
2764: else
1.15 paf 2765: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766: for as_dir in $PATH
2767: do
2768: IFS=$as_save_IFS
2769: test -z "$as_dir" && as_dir=.
2770: for ac_exec_ext in '' $ac_executable_extensions; do
2771: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772: ac_cv_prog_CC="${ac_tool_prefix}cc"
2773: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774: break 2
2775: fi
2776: done
2777: done
2778:
1.1 parser 2779: fi
2780: fi
1.15 paf 2781: CC=$ac_cv_prog_CC
1.1 parser 2782: if test -n "$CC"; then
1.15 paf 2783: echo "$as_me:$LINENO: result: $CC" >&5
2784: echo "${ECHO_T}$CC" >&6
2785: else
2786: echo "$as_me:$LINENO: result: no" >&5
2787: echo "${ECHO_T}no" >&6
2788: fi
2789:
2790: fi
2791: if test -z "$ac_cv_prog_CC"; then
2792: ac_ct_CC=$CC
2793: # Extract the first word of "cc", so it can be a program name with args.
2794: set dummy cc; ac_word=$2
2795: echo "$as_me:$LINENO: checking for $ac_word" >&5
2796: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798: echo $ECHO_N "(cached) $ECHO_C" >&6
2799: else
2800: if test -n "$ac_ct_CC"; then
2801: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802: else
2803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804: for as_dir in $PATH
2805: do
2806: IFS=$as_save_IFS
2807: test -z "$as_dir" && as_dir=.
2808: for ac_exec_ext in '' $ac_executable_extensions; do
2809: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810: ac_cv_prog_ac_ct_CC="cc"
2811: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812: break 2
2813: fi
2814: done
2815: done
2816:
2817: fi
2818: fi
2819: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820: if test -n "$ac_ct_CC"; then
2821: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2822: echo "${ECHO_T}$ac_ct_CC" >&6
2823: else
2824: echo "$as_me:$LINENO: result: no" >&5
2825: echo "${ECHO_T}no" >&6
2826: fi
2827:
2828: CC=$ac_ct_CC
1.1 parser 2829: else
1.15 paf 2830: CC="$ac_cv_prog_CC"
1.1 parser 2831: fi
2832:
1.15 paf 2833: fi
1.1 parser 2834: if test -z "$CC"; then
2835: # Extract the first word of "cc", so it can be a program name with args.
2836: set dummy cc; ac_word=$2
1.15 paf 2837: echo "$as_me:$LINENO: checking for $ac_word" >&5
2838: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839: if test "${ac_cv_prog_CC+set}" = set; then
2840: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2841: else
2842: if test -n "$CC"; then
2843: ac_cv_prog_CC="$CC" # Let the user override the test.
2844: else
2845: ac_prog_rejected=no
1.15 paf 2846: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847: for as_dir in $PATH
2848: do
2849: IFS=$as_save_IFS
2850: test -z "$as_dir" && as_dir=.
2851: for ac_exec_ext in '' $ac_executable_extensions; do
2852: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2854: ac_prog_rejected=yes
2855: continue
2856: fi
2857: ac_cv_prog_CC="cc"
2858: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859: break 2
2860: fi
2861: done
2862: done
2863:
1.1 parser 2864: if test $ac_prog_rejected = yes; then
2865: # We found a bogon in the path, so make sure we never use it.
2866: set dummy $ac_cv_prog_CC
2867: shift
1.15 paf 2868: if test $# != 0; then
1.1 parser 2869: # We chose a different compiler from the bogus one.
2870: # However, it has the same basename, so the bogon will be chosen
2871: # first if we set CC to just the basename; use the full file name.
2872: shift
1.15 paf 2873: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 parser 2874: fi
2875: fi
2876: fi
2877: fi
1.15 paf 2878: CC=$ac_cv_prog_CC
1.1 parser 2879: if test -n "$CC"; then
1.15 paf 2880: echo "$as_me:$LINENO: result: $CC" >&5
2881: echo "${ECHO_T}$CC" >&6
1.1 parser 2882: else
1.15 paf 2883: echo "$as_me:$LINENO: result: no" >&5
2884: echo "${ECHO_T}no" >&6
1.1 parser 2885: fi
2886:
1.15 paf 2887: fi
2888: if test -z "$CC"; then
2889: if test -n "$ac_tool_prefix"; then
2890: for ac_prog in cl
2891: do
2892: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2893: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2894: echo "$as_me:$LINENO: checking for $ac_word" >&5
2895: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896: if test "${ac_cv_prog_CC+set}" = set; then
2897: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 2898: else
2899: if test -n "$CC"; then
2900: ac_cv_prog_CC="$CC" # Let the user override the test.
2901: else
1.15 paf 2902: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903: for as_dir in $PATH
2904: do
2905: IFS=$as_save_IFS
2906: test -z "$as_dir" && as_dir=.
2907: for ac_exec_ext in '' $ac_executable_extensions; do
2908: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2910: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911: break 2
2912: fi
2913: done
2914: done
2915:
1.1 parser 2916: fi
2917: fi
1.15 paf 2918: CC=$ac_cv_prog_CC
1.1 parser 2919: if test -n "$CC"; then
1.15 paf 2920: echo "$as_me:$LINENO: result: $CC" >&5
2921: echo "${ECHO_T}$CC" >&6
1.1 parser 2922: else
1.15 paf 2923: echo "$as_me:$LINENO: result: no" >&5
2924: echo "${ECHO_T}no" >&6
2925: fi
2926:
2927: test -n "$CC" && break
2928: done
1.1 parser 2929: fi
1.15 paf 2930: if test -z "$CC"; then
2931: ac_ct_CC=$CC
2932: for ac_prog in cl
2933: do
2934: # Extract the first word of "$ac_prog", so it can be a program name with args.
2935: set dummy $ac_prog; ac_word=$2
2936: echo "$as_me:$LINENO: checking for $ac_word" >&5
2937: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2938: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939: echo $ECHO_N "(cached) $ECHO_C" >&6
2940: else
2941: if test -n "$ac_ct_CC"; then
2942: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943: else
2944: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945: for as_dir in $PATH
2946: do
2947: IFS=$as_save_IFS
2948: test -z "$as_dir" && as_dir=.
2949: for ac_exec_ext in '' $ac_executable_extensions; do
2950: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951: ac_cv_prog_ac_ct_CC="$ac_prog"
2952: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953: break 2
1.1 parser 2954: fi
1.15 paf 2955: done
2956: done
2957:
2958: fi
2959: fi
2960: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961: if test -n "$ac_ct_CC"; then
2962: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2963: echo "${ECHO_T}$ac_ct_CC" >&6
2964: else
2965: echo "$as_me:$LINENO: result: no" >&5
2966: echo "${ECHO_T}no" >&6
1.1 parser 2967: fi
2968:
1.15 paf 2969: test -n "$ac_ct_CC" && break
2970: done
1.1 parser 2971:
1.15 paf 2972: CC=$ac_ct_CC
2973: fi
1.1 parser 2974:
1.15 paf 2975: fi
1.1 parser 2976:
2977:
1.15 paf 2978: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2979: See \`config.log' for more details." >&5
2980: echo "$as_me: error: no acceptable C compiler found in \$PATH
2981: See \`config.log' for more details." >&2;}
2982: { (exit 1); exit 1; }; }
2983:
2984: # Provide some information about the compiler.
2985: echo "$as_me:$LINENO:" \
2986: "checking for C compiler version" >&5
2987: ac_compiler=`set X $ac_compile; echo $2`
2988: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2989: (eval $ac_compiler --version </dev/null >&5) 2>&5
2990: ac_status=$?
2991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992: (exit $ac_status); }
2993: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2994: (eval $ac_compiler -v </dev/null >&5) 2>&5
2995: ac_status=$?
2996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997: (exit $ac_status); }
2998: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2999: (eval $ac_compiler -V </dev/null >&5) 2>&5
3000: ac_status=$?
3001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002: (exit $ac_status); }
3003:
3004: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3005: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3006: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3007: echo $ECHO_N "(cached) $ECHO_C" >&6
3008: else
3009: cat >conftest.$ac_ext <<_ACEOF
3010: /* confdefs.h. */
3011: _ACEOF
3012: cat confdefs.h >>conftest.$ac_ext
3013: cat >>conftest.$ac_ext <<_ACEOF
3014: /* end confdefs.h. */
3015:
3016: int
3017: main ()
3018: {
3019: #ifndef __GNUC__
3020: choke me
1.1 parser 3021: #endif
3022:
1.15 paf 3023: ;
3024: return 0;
3025: }
3026: _ACEOF
3027: rm -f conftest.$ac_objext
3028: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3029: (eval $ac_compile) 2>conftest.er1
1.15 paf 3030: ac_status=$?
1.25 paf 3031: grep -v '^ *+' conftest.er1 >conftest.err
3032: rm -f conftest.er1
3033: cat conftest.err >&5
1.15 paf 3034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035: (exit $ac_status); } &&
1.25 paf 3036: { ac_try='test -z "$ac_c_werror_flag"
3037: || test ! -s conftest.err'
3038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039: (eval $ac_try) 2>&5
3040: ac_status=$?
3041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042: (exit $ac_status); }; } &&
3043: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045: (eval $ac_try) 2>&5
3046: ac_status=$?
3047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048: (exit $ac_status); }; }; then
3049: ac_compiler_gnu=yes
3050: else
3051: echo "$as_me: failed program was:" >&5
3052: sed 's/^/| /' conftest.$ac_ext >&5
3053:
3054: ac_compiler_gnu=no
3055: fi
1.25 paf 3056: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3057: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3058:
3059: fi
3060: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3061: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3062: GCC=`test $ac_compiler_gnu = yes && echo yes`
3063: ac_test_CFLAGS=${CFLAGS+set}
3064: ac_save_CFLAGS=$CFLAGS
3065: CFLAGS="-g"
3066: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3068: if test "${ac_cv_prog_cc_g+set}" = set; then
3069: echo $ECHO_N "(cached) $ECHO_C" >&6
3070: else
3071: cat >conftest.$ac_ext <<_ACEOF
3072: /* confdefs.h. */
3073: _ACEOF
3074: cat confdefs.h >>conftest.$ac_ext
3075: cat >>conftest.$ac_ext <<_ACEOF
3076: /* end confdefs.h. */
3077:
3078: int
3079: main ()
3080: {
3081:
3082: ;
3083: return 0;
3084: }
3085: _ACEOF
3086: rm -f conftest.$ac_objext
3087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3088: (eval $ac_compile) 2>conftest.er1
1.15 paf 3089: ac_status=$?
1.25 paf 3090: grep -v '^ *+' conftest.er1 >conftest.err
3091: rm -f conftest.er1
3092: cat conftest.err >&5
1.15 paf 3093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094: (exit $ac_status); } &&
1.25 paf 3095: { ac_try='test -z "$ac_c_werror_flag"
3096: || test ! -s conftest.err'
3097: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098: (eval $ac_try) 2>&5
3099: ac_status=$?
3100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101: (exit $ac_status); }; } &&
3102: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3103: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104: (eval $ac_try) 2>&5
3105: ac_status=$?
3106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107: (exit $ac_status); }; }; then
3108: ac_cv_prog_cc_g=yes
1.1 parser 3109: else
1.15 paf 3110: echo "$as_me: failed program was:" >&5
3111: sed 's/^/| /' conftest.$ac_ext >&5
1.1 parser 3112:
1.15 paf 3113: ac_cv_prog_cc_g=no
1.1 parser 3114: fi
1.25 paf 3115: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 parser 3116: fi
1.15 paf 3117: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3118: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 parser 3119: if test "$ac_test_CFLAGS" = set; then
1.15 paf 3120: CFLAGS=$ac_save_CFLAGS
1.1 parser 3121: elif test $ac_cv_prog_cc_g = yes; then
3122: if test "$GCC" = yes; then
3123: CFLAGS="-g -O2"
3124: else
3125: CFLAGS="-g"
3126: fi
3127: else
3128: if test "$GCC" = yes; then
3129: CFLAGS="-O2"
3130: else
3131: CFLAGS=
3132: fi
3133: fi
1.15 paf 3134: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3135: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3136: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3137: echo $ECHO_N "(cached) $ECHO_C" >&6
3138: else
3139: ac_cv_prog_cc_stdc=no
3140: ac_save_CC=$CC
3141: cat >conftest.$ac_ext <<_ACEOF
3142: /* confdefs.h. */
3143: _ACEOF
3144: cat confdefs.h >>conftest.$ac_ext
3145: cat >>conftest.$ac_ext <<_ACEOF
3146: /* end confdefs.h. */
3147: #include <stdarg.h>
3148: #include <stdio.h>
3149: #include <sys/types.h>
3150: #include <sys/stat.h>
3151: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3152: struct buf { int x; };
3153: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3154: static char *e (p, i)
3155: char **p;
3156: int i;
3157: {
3158: return p[i];
3159: }
3160: static char *f (char * (*g) (char **, int), char **p, ...)
3161: {
3162: char *s;
3163: va_list v;
3164: va_start (v,p);
3165: s = g (p, va_arg (v,int));
3166: va_end (v);
3167: return s;
3168: }
1.25 paf 3169:
3170: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3171: function prototypes and stuff, but not '\xHH' hex character constants.
3172: These don't provoke an error unfortunately, instead are silently treated
3173: as 'x'. The following induces an error, until -std1 is added to get
3174: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3175: array size at least. It's necessary to write '\x00'==0 to get something
3176: that's true only with -std1. */
3177: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178:
1.15 paf 3179: int test (int i, double x);
3180: struct s1 {int (*f) (int a);};
3181: struct s2 {int (*f) (double a);};
3182: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3183: int argc;
3184: char **argv;
3185: int
3186: main ()
3187: {
3188: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3189: ;
3190: return 0;
3191: }
3192: _ACEOF
3193: # Don't try gcc -ansi; that turns off useful extensions and
3194: # breaks some systems' header files.
3195: # AIX -qlanglvl=ansi
3196: # Ultrix and OSF/1 -std1
3197: # HP-UX 10.20 and later -Ae
3198: # HP-UX older versions -Aa -D_HPUX_SOURCE
3199: # SVR4 -Xc -D__EXTENSIONS__
3200: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3201: do
3202: CC="$ac_save_CC $ac_arg"
3203: rm -f conftest.$ac_objext
3204: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3205: (eval $ac_compile) 2>conftest.er1
1.15 paf 3206: ac_status=$?
1.25 paf 3207: grep -v '^ *+' conftest.er1 >conftest.err
3208: rm -f conftest.er1
3209: cat conftest.err >&5
1.15 paf 3210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211: (exit $ac_status); } &&
1.25 paf 3212: { ac_try='test -z "$ac_c_werror_flag"
3213: || test ! -s conftest.err'
3214: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215: (eval $ac_try) 2>&5
3216: ac_status=$?
3217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218: (exit $ac_status); }; } &&
3219: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3220: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221: (eval $ac_try) 2>&5
3222: ac_status=$?
3223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224: (exit $ac_status); }; }; then
3225: ac_cv_prog_cc_stdc=$ac_arg
3226: break
3227: else
3228: echo "$as_me: failed program was:" >&5
3229: sed 's/^/| /' conftest.$ac_ext >&5
3230:
3231: fi
1.25 paf 3232: rm -f conftest.err conftest.$ac_objext
1.15 paf 3233: done
3234: rm -f conftest.$ac_ext conftest.$ac_objext
3235: CC=$ac_save_CC
3236:
3237: fi
3238:
3239: case "x$ac_cv_prog_cc_stdc" in
3240: x|xno)
3241: echo "$as_me:$LINENO: result: none needed" >&5
3242: echo "${ECHO_T}none needed" >&6 ;;
3243: *)
3244: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3245: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3246: CC="$CC $ac_cv_prog_cc_stdc" ;;
3247: esac
3248:
3249: # Some people use a C++ compiler to compile C. Since we use `exit',
3250: # in C++ we need to declare it. In case someone uses the same compiler
3251: # for both compiling C and C++ we need to have the C++ compiler decide
3252: # the declaration of exit, since it's the most demanding environment.
3253: cat >conftest.$ac_ext <<_ACEOF
3254: #ifndef __cplusplus
3255: choke me
3256: #endif
3257: _ACEOF
3258: rm -f conftest.$ac_objext
3259: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3260: (eval $ac_compile) 2>conftest.er1
1.15 paf 3261: ac_status=$?
1.25 paf 3262: grep -v '^ *+' conftest.er1 >conftest.err
3263: rm -f conftest.er1
3264: cat conftest.err >&5
1.15 paf 3265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266: (exit $ac_status); } &&
1.25 paf 3267: { ac_try='test -z "$ac_c_werror_flag"
3268: || test ! -s conftest.err'
3269: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270: (eval $ac_try) 2>&5
3271: ac_status=$?
3272: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273: (exit $ac_status); }; } &&
3274: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3275: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276: (eval $ac_try) 2>&5
3277: ac_status=$?
3278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279: (exit $ac_status); }; }; then
3280: for ac_declaration in \
1.25 paf 3281: '' \
1.15 paf 3282: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3283: 'extern "C" void std::exit (int); using std::exit;' \
3284: 'extern "C" void exit (int) throw ();' \
3285: 'extern "C" void exit (int);' \
3286: 'void exit (int);'
3287: do
3288: cat >conftest.$ac_ext <<_ACEOF
3289: /* confdefs.h. */
3290: _ACEOF
3291: cat confdefs.h >>conftest.$ac_ext
3292: cat >>conftest.$ac_ext <<_ACEOF
3293: /* end confdefs.h. */
1.25 paf 3294: $ac_declaration
1.15 paf 3295: #include <stdlib.h>
3296: int
3297: main ()
3298: {
3299: exit (42);
3300: ;
3301: return 0;
3302: }
3303: _ACEOF
3304: rm -f conftest.$ac_objext
3305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3306: (eval $ac_compile) 2>conftest.er1
1.15 paf 3307: ac_status=$?
1.25 paf 3308: grep -v '^ *+' conftest.er1 >conftest.err
3309: rm -f conftest.er1
3310: cat conftest.err >&5
1.15 paf 3311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312: (exit $ac_status); } &&
1.25 paf 3313: { ac_try='test -z "$ac_c_werror_flag"
3314: || test ! -s conftest.err'
3315: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316: (eval $ac_try) 2>&5
3317: ac_status=$?
3318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319: (exit $ac_status); }; } &&
3320: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322: (eval $ac_try) 2>&5
3323: ac_status=$?
3324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325: (exit $ac_status); }; }; then
3326: :
3327: else
3328: echo "$as_me: failed program was:" >&5
3329: sed 's/^/| /' conftest.$ac_ext >&5
3330:
3331: continue
3332: fi
1.25 paf 3333: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3334: cat >conftest.$ac_ext <<_ACEOF
3335: /* confdefs.h. */
3336: _ACEOF
3337: cat confdefs.h >>conftest.$ac_ext
3338: cat >>conftest.$ac_ext <<_ACEOF
3339: /* end confdefs.h. */
3340: $ac_declaration
3341: int
3342: main ()
3343: {
3344: exit (42);
3345: ;
3346: return 0;
3347: }
3348: _ACEOF
3349: rm -f conftest.$ac_objext
3350: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 3351: (eval $ac_compile) 2>conftest.er1
1.15 paf 3352: ac_status=$?
1.25 paf 3353: grep -v '^ *+' conftest.er1 >conftest.err
3354: rm -f conftest.er1
3355: cat conftest.err >&5
1.15 paf 3356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357: (exit $ac_status); } &&
1.25 paf 3358: { ac_try='test -z "$ac_c_werror_flag"
3359: || test ! -s conftest.err'
3360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361: (eval $ac_try) 2>&5
3362: ac_status=$?
3363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364: (exit $ac_status); }; } &&
3365: { ac_try='test -s conftest.$ac_objext'
1.15 paf 3366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367: (eval $ac_try) 2>&5
3368: ac_status=$?
3369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370: (exit $ac_status); }; }; then
3371: break
3372: else
3373: echo "$as_me: failed program was:" >&5
3374: sed 's/^/| /' conftest.$ac_ext >&5
3375:
3376: fi
1.25 paf 3377: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 3378: done
3379: rm -f conftest*
3380: if test -n "$ac_declaration"; then
3381: echo '#ifdef __cplusplus' >>confdefs.h
3382: echo $ac_declaration >>confdefs.h
3383: echo '#endif' >>confdefs.h
3384: fi
3385:
3386: else
3387: echo "$as_me: failed program was:" >&5
3388: sed 's/^/| /' conftest.$ac_ext >&5
3389:
3390: fi
1.25 paf 3391: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.24 paf 3392: ac_ext=c
3393: ac_cpp='$CPP $CPPFLAGS'
3394: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 3397:
3398: depcc="$CC" am_compiler_list=
3399:
3400: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3402: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403: echo $ECHO_N "(cached) $ECHO_C" >&6
3404: else
3405: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406: # We make a subdir and do the tests there. Otherwise we can end up
3407: # making bogus files that we don't know about and never remove. For
3408: # instance it was reported that on HP-UX the gcc test will end up
3409: # making a dummy file named `D' -- because `-MD' means `put the output
3410: # in D'.
3411: mkdir conftest.dir
3412: # Copy depcomp to subdir because otherwise we won't find it if we're
3413: # using a relative directory.
3414: cp "$am_depcomp" conftest.dir
3415: cd conftest.dir
1.25 paf 3416: # We will build objects and dependencies in a subdirectory because
3417: # it helps to detect inapplicable dependency modes. For instance
3418: # both Tru64's cc and ICC support -MD to output dependencies as a
3419: # side effect of compilation, but ICC will put the dependencies in
3420: # the current directory while Tru64 will put them in the object
3421: # directory.
3422: mkdir sub
1.15 paf 3423:
3424: am_cv_CC_dependencies_compiler_type=none
3425: if test "$am_compiler_list" = ""; then
3426: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427: fi
3428: for depmode in $am_compiler_list; do
1.25 paf 3429: # Setup a source with many dependencies, because some compilers
3430: # like to wrap large dependency lists on column 80 (with \), and
3431: # we should not choose a depcomp mode which is confused by this.
3432: #
1.15 paf 3433: # We need to recreate these files for each test, as the compiler may
3434: # overwrite some of them when testing with obscure command lines.
3435: # This happens at least with the AIX C compiler.
1.25 paf 3436: : > sub/conftest.c
3437: for i in 1 2 3 4 5 6; do
3438: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440: # Solaris 8's {/usr,}/bin/sh.
3441: touch sub/conftst$i.h
3442: done
3443: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.15 paf 3444:
3445: case $depmode in
3446: nosideeffect)
3447: # after this tag, mechanisms are not by side-effect, so they'll
3448: # only be used when explicitly requested
3449: if test "x$enable_dependency_tracking" = xyes; then
3450: continue
3451: else
3452: break
3453: fi
3454: ;;
3455: none) break ;;
3456: esac
3457: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458: # mode. It turns out that the SunPro C++ compiler does not properly
3459: # handle `-M -o', and we need to detect this.
3460: if depmode=$depmode \
1.25 paf 3461: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464: >/dev/null 2>conftest.err &&
3465: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3466: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.15 paf 3467: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.25 paf 3468: # icc doesn't choke on unknown options, it will just issue warnings
3469: # or remarks (even with -Werror). So we grep stderr for any message
3470: # that says an option was ignored or not supported.
3471: # When given -MP, icc 7.0 and 7.1 complain thusly:
3472: # icc: Command line warning: ignoring option '-M'; no argument required
3473: # The diagnosis changed in icc 8.0:
3474: # icc: Command line remark: option '-MP' not supported
3475: if (grep 'ignoring option' conftest.err ||
3476: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3477: am_cv_CC_dependencies_compiler_type=$depmode
3478: break
3479: fi
1.15 paf 3480: fi
3481: done
3482:
3483: cd ..
3484: rm -rf conftest.dir
3485: else
3486: am_cv_CC_dependencies_compiler_type=none
3487: fi
3488:
3489: fi
3490: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3491: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3492: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493:
3494:
3495:
3496: if
3497: test "x$enable_dependency_tracking" != xno \
3498: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3499: am__fastdepCC_TRUE=
3500: am__fastdepCC_FALSE='#'
3501: else
3502: am__fastdepCC_TRUE='#'
3503: am__fastdepCC_FALSE=
3504: fi
3505:
3506:
1.24 paf 3507:
1.35 moko 3508:
1.36 moko 3509:
3510:
3511:
3512:
3513:
3514:
1.35 moko 3515: case `pwd` in
3516: *\ * | *\ *)
3517: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3518: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3519: esac
3520:
3521:
3522:
3523: macro_version='2.4.2'
3524: macro_revision='1.3337'
3525:
3526:
3527:
3528:
3529:
3530:
3531:
1.24 paf 3532:
3533:
3534:
3535:
3536:
3537:
1.35 moko 3538: ltmain="$ac_aux_dir/ltmain.sh"
1.24 paf 3539:
3540: # Make sure we can run config.sub.
3541: $ac_config_sub sun4 >/dev/null 2>&1 ||
3542: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3543: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3544: { (exit 1); exit 1; }; }
3545:
3546: echo "$as_me:$LINENO: checking build system type" >&5
3547: echo $ECHO_N "checking build system type... $ECHO_C" >&6
3548: if test "${ac_cv_build+set}" = set; then
3549: echo $ECHO_N "(cached) $ECHO_C" >&6
3550: else
3551: ac_cv_build_alias=$build_alias
3552: test -z "$ac_cv_build_alias" &&
3553: ac_cv_build_alias=`$ac_config_guess`
3554: test -z "$ac_cv_build_alias" &&
3555: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3556: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3557: { (exit 1); exit 1; }; }
3558: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3559: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3560: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3561: { (exit 1); exit 1; }; }
3562:
3563: fi
3564: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3565: echo "${ECHO_T}$ac_cv_build" >&6
3566: build=$ac_cv_build
3567: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3568: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3569: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3570:
3571:
3572: echo "$as_me:$LINENO: checking host system type" >&5
3573: echo $ECHO_N "checking host system type... $ECHO_C" >&6
3574: if test "${ac_cv_host+set}" = set; then
3575: echo $ECHO_N "(cached) $ECHO_C" >&6
3576: else
3577: ac_cv_host_alias=$host_alias
3578: test -z "$ac_cv_host_alias" &&
3579: ac_cv_host_alias=$ac_cv_build_alias
3580: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3581: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3582: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3583: { (exit 1); exit 1; }; }
3584:
3585: fi
3586: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3587: echo "${ECHO_T}$ac_cv_host" >&6
3588: host=$ac_cv_host
3589: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3590: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3591: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3592:
3593:
1.35 moko 3594: # Backslashify metacharacters that are still active within
3595: # double-quoted strings.
3596: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3597:
3598: # Same as above, but do not quote variable references.
3599: double_quote_subst='s/\(["`\\]\)/\\\1/g'
3600:
3601: # Sed substitution to delay expansion of an escaped shell variable in a
3602: # double_quote_subst'ed string.
3603: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3604:
3605: # Sed substitution to delay expansion of an escaped single quote.
3606: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.15 paf 3607:
1.35 moko 3608: # Sed substitution to avoid accidental globbing in evaled expressions
3609: no_glob_subst='s/\*/\\\*/g'
1.1 parser 3610:
1.35 moko 3611: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3612: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3613: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3614:
3615: echo "$as_me:$LINENO: checking how to print strings" >&5
3616: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
3617: # Test print first, because it will be a builtin if present.
3618: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3619: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3620: ECHO='print -r --'
3621: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3622: ECHO='printf %s\n'
1.1 parser 3623: else
1.35 moko 3624: # Use this function as a fallback that always works.
3625: func_fallback_echo ()
3626: {
3627: eval 'cat <<_LTECHO_EOF
3628: $1
3629: _LTECHO_EOF'
3630: }
3631: ECHO='func_fallback_echo'
1.1 parser 3632: fi
1.35 moko 3633:
3634: # func_echo_all arg...
3635: # Invoke $ECHO with all args, space-separated.
3636: func_echo_all ()
3637: {
3638: $ECHO ""
3639: }
3640:
3641: case "$ECHO" in
3642: printf*) echo "$as_me:$LINENO: result: printf" >&5
3643: echo "${ECHO_T}printf" >&6 ;;
3644: print*) echo "$as_me:$LINENO: result: print -r" >&5
3645: echo "${ECHO_T}print -r" >&6 ;;
3646: *) echo "$as_me:$LINENO: result: cat" >&5
3647: echo "${ECHO_T}cat" >&6 ;;
3648: esac
3649:
3650:
3651:
3652:
3653:
3654:
3655:
3656:
3657:
3658:
3659:
3660:
3661:
3662:
3663: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3664: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3665: if test "${lt_cv_path_SED+set}" = set; then
3666: echo $ECHO_N "(cached) $ECHO_C" >&6
3667: else
3668: # Loop through the user's path and test for sed and gsed.
3669: # Then use that list of sed's as ones to test for truncation.
3670: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671: for as_dir in $PATH
3672: do
3673: IFS=$as_save_IFS
3674: test -z "$as_dir" && as_dir=.
3675: for lt_ac_prog in sed gsed; do
3676: for ac_exec_ext in '' $ac_executable_extensions; do
3677: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3678: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3679: fi
3680: done
3681: done
3682: done
3683: IFS=$as_save_IFS
3684: lt_ac_max=0
3685: lt_ac_count=0
3686: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3687: # along with /bin/sed that truncates output.
3688: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3689: test ! -f $lt_ac_sed && continue
3690: cat /dev/null > conftest.in
3691: lt_ac_count=0
3692: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3693: # Check for GNU sed and select it if it is found.
3694: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3695: lt_cv_path_SED=$lt_ac_sed
3696: break
3697: fi
3698: while true; do
3699: cat conftest.in conftest.in >conftest.tmp
3700: mv conftest.tmp conftest.in
3701: cp conftest.in conftest.nl
3702: echo >>conftest.nl
3703: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3704: cmp -s conftest.out conftest.nl || break
3705: # 10000 chars as input seems more than enough
3706: test $lt_ac_count -gt 10 && break
3707: lt_ac_count=`expr $lt_ac_count + 1`
3708: if test $lt_ac_count -gt $lt_ac_max; then
3709: lt_ac_max=$lt_ac_count
3710: lt_cv_path_SED=$lt_ac_sed
3711: fi
3712: done
3713: done
3714:
3715: fi
3716:
3717: SED=$lt_cv_path_SED
3718:
3719: echo "$as_me:$LINENO: result: $SED" >&5
3720: echo "${ECHO_T}$SED" >&6
3721:
3722: test -z "$SED" && SED=sed
3723: Xsed="$SED -e 1s/^X//"
3724:
3725:
3726:
3727:
3728:
3729:
3730:
3731:
3732:
3733:
3734:
3735: echo "$as_me:$LINENO: checking for egrep" >&5
3736: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3737: if test "${ac_cv_prog_egrep+set}" = set; then
3738: echo $ECHO_N "(cached) $ECHO_C" >&6
3739: else
3740: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3741: then ac_cv_prog_egrep='grep -E'
3742: else ac_cv_prog_egrep='egrep'
3743: fi
3744: fi
3745: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3746: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3747: EGREP=$ac_cv_prog_egrep
3748:
3749:
3750: echo "$as_me:$LINENO: checking for fgrep" >&5
3751: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3752: if test "${ac_cv_prog_fgrep+set}" = set; then
3753: echo $ECHO_N "(cached) $ECHO_C" >&6
3754: else
3755: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3756: then ac_cv_prog_fgrep='grep -F'
3757: else ac_cv_prog_fgrep='fgrep'
3758: fi
3759: fi
3760: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3761: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3762: FGREP=$ac_cv_prog_fgrep
3763:
3764:
3765: test -z "$GREP" && GREP=grep
3766:
3767:
3768:
3769:
3770:
3771:
3772:
3773:
3774:
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784:
3785: # Check whether --with-gnu-ld or --without-gnu-ld was given.
3786: if test "${with_gnu_ld+set}" = set; then
3787: withval="$with_gnu_ld"
3788: test "$withval" = no || with_gnu_ld=yes
3789: else
3790: with_gnu_ld=no
3791: fi;
3792: ac_prog=ld
3793: if test "$GCC" = yes; then
3794: # Check if gcc -print-prog-name=ld gives a path.
3795: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3796: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3797: case $host in
3798: *-*-mingw*)
3799: # gcc leaves a trailing carriage return which upsets mingw
3800: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3801: *)
3802: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3803: esac
3804: case $ac_prog in
3805: # Accept absolute paths.
3806: [\\/]* | ?:[\\/]*)
3807: re_direlt='/[^/][^/]*/\.\./'
3808: # Canonicalize the pathname of ld
3809: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3810: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3811: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3812: done
3813: test -z "$LD" && LD="$ac_prog"
3814: ;;
3815: "")
3816: # If it fails, then pretend we aren't using GCC.
3817: ac_prog=ld
3818: ;;
3819: *)
3820: # If it is relative, then search for the first ld in PATH.
3821: with_gnu_ld=unknown
3822: ;;
3823: esac
3824: elif test "$with_gnu_ld" = yes; then
3825: echo "$as_me:$LINENO: checking for GNU ld" >&5
3826: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3827: else
3828: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3829: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3830: fi
3831: if test "${lt_cv_path_LD+set}" = set; then
1.15 paf 3832: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3833: else
3834: if test -z "$LD"; then
1.35 moko 3835: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 parser 3836: for ac_dir in $PATH; do
1.35 moko 3837: IFS="$lt_save_ifs"
1.1 parser 3838: test -z "$ac_dir" && ac_dir=.
3839: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.15 paf 3840: lt_cv_path_LD="$ac_dir/$ac_prog"
1.1 parser 3841: # Check to see if the program is GNU ld. I'd rather use --version,
1.35 moko 3842: # but apparently some variants of GNU ld only accept -v.
1.1 parser 3843: # Break only if it was the GNU/non-GNU ld that we prefer.
1.35 moko 3844: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3845: *GNU* | *'with BFD'*)
1.1 parser 3846: test "$with_gnu_ld" != no && break
1.35 moko 3847: ;;
3848: *)
1.1 parser 3849: test "$with_gnu_ld" != yes && break
1.35 moko 3850: ;;
3851: esac
1.1 parser 3852: fi
3853: done
1.35 moko 3854: IFS="$lt_save_ifs"
1.1 parser 3855: else
1.15 paf 3856: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.1 parser 3857: fi
3858: fi
3859:
1.15 paf 3860: LD="$lt_cv_path_LD"
1.1 parser 3861: if test -n "$LD"; then
1.15 paf 3862: echo "$as_me:$LINENO: result: $LD" >&5
3863: echo "${ECHO_T}$LD" >&6
1.1 parser 3864: else
1.15 paf 3865: echo "$as_me:$LINENO: result: no" >&5
3866: echo "${ECHO_T}no" >&6
1.1 parser 3867: fi
1.15 paf 3868: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3869: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3870: { (exit 1); exit 1; }; }
3871: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3872: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3873: if test "${lt_cv_prog_gnu_ld+set}" = set; then
3874: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3875: else
1.35 moko 3876: # I'd rather use --version here, but apparently some GNU lds only accept -v.
3877: case `$LD -v 2>&1 </dev/null` in
3878: *GNU* | *'with BFD'*)
1.15 paf 3879: lt_cv_prog_gnu_ld=yes
1.35 moko 3880: ;;
3881: *)
1.15 paf 3882: lt_cv_prog_gnu_ld=no
1.35 moko 3883: ;;
3884: esac
1.1 parser 3885: fi
1.15 paf 3886: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3887: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3888: with_gnu_ld=$lt_cv_prog_gnu_ld
1.1 parser 3889:
3890:
3891:
1.35 moko 3892:
3893:
3894:
3895:
3896:
3897:
3898: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3899: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
1.15 paf 3900: if test "${lt_cv_path_NM+set}" = set; then
3901: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3902: else
3903: if test -n "$NM"; then
3904: # Let the user override the test.
1.15 paf 3905: lt_cv_path_NM="$NM"
1.1 parser 3906: else
1.35 moko 3907: lt_nm_to_check="${ac_tool_prefix}nm"
3908: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3909: lt_nm_to_check="$lt_nm_to_check nm"
3910: fi
3911: for lt_tmp_nm in $lt_nm_to_check; do
3912: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3913: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3914: IFS="$lt_save_ifs"
3915: test -z "$ac_dir" && ac_dir=.
3916: tmp_nm="$ac_dir/$lt_tmp_nm"
3917: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3918: # Check to see if the nm accepts a BSD-compat flag.
3919: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3920: # nm: unknown option "B" ignored
3921: # Tru64's nm complains that /dev/null is an invalid object file
3922: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3923: */dev/null* | *'Invalid file or object type'*)
3924: lt_cv_path_NM="$tmp_nm -B"
3925: break
3926: ;;
3927: *)
3928: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3929: */dev/null*)
3930: lt_cv_path_NM="$tmp_nm -p"
3931: break
3932: ;;
3933: *)
3934: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3935: continue # so that we can try to find one that supports BSD flags
3936: ;;
3937: esac
3938: ;;
3939: esac
1.1 parser 3940: fi
1.35 moko 3941: done
3942: IFS="$lt_save_ifs"
1.1 parser 3943: done
1.35 moko 3944: : ${lt_cv_path_NM=no}
1.1 parser 3945: fi
3946: fi
1.35 moko 3947: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3948: echo "${ECHO_T}$lt_cv_path_NM" >&6
3949: if test "$lt_cv_path_NM" != "no"; then
3950: NM="$lt_cv_path_NM"
3951: else
3952: # Didn't find any BSD compatible name lister, look for dumpbin.
3953: if test -n "$DUMPBIN"; then :
3954: # Let the user override the test.
3955: else
3956: if test -n "$ac_tool_prefix"; then
3957: for ac_prog in dumpbin "link -dump"
3958: do
3959: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3960: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3961: echo "$as_me:$LINENO: checking for $ac_word" >&5
3962: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
1.15 paf 3964: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 3965: else
1.35 moko 3966: if test -n "$DUMPBIN"; then
3967: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3968: else
1.15 paf 3969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970: for as_dir in $PATH
3971: do
3972: IFS=$as_save_IFS
3973: test -z "$as_dir" && as_dir=.
1.35 moko 3974: for ac_exec_ext in '' $ac_executable_extensions; do
3975: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3977: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978: break 2
3979: fi
3980: done
1.15 paf 3981: done
3982:
1.35 moko 3983: fi
3984: fi
3985: DUMPBIN=$ac_cv_prog_DUMPBIN
3986: if test -n "$DUMPBIN"; then
3987: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3988: echo "${ECHO_T}$DUMPBIN" >&6
3989: else
3990: echo "$as_me:$LINENO: result: no" >&5
3991: echo "${ECHO_T}no" >&6
3992: fi
1.15 paf 3993:
1.35 moko 3994: test -n "$DUMPBIN" && break
1.15 paf 3995: done
1.35 moko 3996: fi
3997: if test -z "$DUMPBIN"; then
3998: ac_ct_DUMPBIN=$DUMPBIN
3999: for ac_prog in dumpbin "link -dump"
4000: do
4001: # Extract the first word of "$ac_prog", so it can be a program name with args.
4002: set dummy $ac_prog; ac_word=$2
4003: echo "$as_me:$LINENO: checking for $ac_word" >&5
4004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4006: echo $ECHO_N "(cached) $ECHO_C" >&6
4007: else
4008: if test -n "$ac_ct_DUMPBIN"; then
4009: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4010: else
4011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012: for as_dir in $PATH
4013: do
4014: IFS=$as_save_IFS
4015: test -z "$as_dir" && as_dir=.
4016: for ac_exec_ext in '' $ac_executable_extensions; do
4017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020: break 2
4021: fi
4022: done
4023: done
1.15 paf 4024:
1.1 parser 4025: fi
1.35 moko 4026: fi
4027: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4028: if test -n "$ac_ct_DUMPBIN"; then
4029: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4030: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1.11 paf 4031: else
1.35 moko 4032: echo "$as_me:$LINENO: result: no" >&5
4033: echo "${ECHO_T}no" >&6
1.11 paf 4034: fi
1.15 paf 4035:
1.35 moko 4036: test -n "$ac_ct_DUMPBIN" && break
4037: done
4038: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4039:
4040: DUMPBIN=$ac_ct_DUMPBIN
1.15 paf 4041: fi
4042:
1.35 moko 4043: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4044: *COFF*)
4045: DUMPBIN="$DUMPBIN -symbols"
4046: ;;
4047: *)
4048: DUMPBIN=:
4049: ;;
4050: esac
4051: fi
4052:
4053: if test "$DUMPBIN" != ":"; then
4054: NM="$DUMPBIN"
4055: fi
4056: fi
4057: test -z "$NM" && NM=nm
4058:
4059:
4060:
4061:
4062:
4063:
4064: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4065: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4066: if test "${lt_cv_nm_interface+set}" = set; then
4067: echo $ECHO_N "(cached) $ECHO_C" >&6
4068: else
4069: lt_cv_nm_interface="BSD nm"
4070: echo "int some_variable = 0;" > conftest.$ac_ext
4071: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4072: (eval "$ac_compile" 2>conftest.err)
4073: cat conftest.err >&5
4074: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4075: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4076: cat conftest.err >&5
4077: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4078: cat conftest.out >&5
4079: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4080: lt_cv_nm_interface="MS dumpbin"
4081: fi
4082: rm -f conftest*
4083: fi
4084: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4085: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4086:
4087: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4088: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4089: LN_S=$as_ln_s
4090: if test "$LN_S" = "ln -s"; then
4091: echo "$as_me:$LINENO: result: yes" >&5
4092: echo "${ECHO_T}yes" >&6
4093: else
4094: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4095: echo "${ECHO_T}no, using $LN_S" >&6
4096: fi
4097:
4098: # find the maximum length of command line arguments
4099: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4100: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4101: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4102: echo $ECHO_N "(cached) $ECHO_C" >&6
4103: else
4104: i=0
4105: teststring="ABCD"
4106:
4107: case $build_os in
4108: msdosdjgpp*)
4109: # On DJGPP, this test can blow up pretty badly due to problems in libc
4110: # (any single argument exceeding 2000 bytes causes a buffer overrun
4111: # during glob expansion). Even if it were fixed, the result of this
4112: # check would be larger than it should be.
4113: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4114: ;;
4115:
4116: gnu*)
4117: # Under GNU Hurd, this test is not required because there is
4118: # no limit to the length of command line arguments.
4119: # Libtool will interpret -1 as no limit whatsoever
4120: lt_cv_sys_max_cmd_len=-1;
4121: ;;
4122:
4123: cygwin* | mingw* | cegcc*)
4124: # On Win9x/ME, this test blows up -- it succeeds, but takes
4125: # about 5 minutes as the teststring grows exponentially.
4126: # Worse, since 9x/ME are not pre-emptively multitasking,
4127: # you end up with a "frozen" computer, even though with patience
4128: # the test eventually succeeds (with a max line length of 256k).
4129: # Instead, let's just punt: use the minimum linelength reported by
4130: # all of the supported platforms: 8192 (on NT/2K/XP).
4131: lt_cv_sys_max_cmd_len=8192;
4132: ;;
4133:
4134: mint*)
4135: # On MiNT this can take a long time and run out of memory.
4136: lt_cv_sys_max_cmd_len=8192;
4137: ;;
4138:
4139: amigaos*)
4140: # On AmigaOS with pdksh, this test takes hours, literally.
4141: # So we just punt and use a minimum line length of 8192.
4142: lt_cv_sys_max_cmd_len=8192;
4143: ;;
4144:
4145: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4146: # This has been around since 386BSD, at least. Likely further.
4147: if test -x /sbin/sysctl; then
4148: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4149: elif test -x /usr/sbin/sysctl; then
4150: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4151: else
4152: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4153: fi
4154: # And add a safety zone
4155: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4156: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4157: ;;
4158:
4159: interix*)
4160: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4161: lt_cv_sys_max_cmd_len=196608
4162: ;;
4163:
4164: os2*)
4165: # The test takes a long time on OS/2.
4166: lt_cv_sys_max_cmd_len=8192
4167: ;;
4168:
4169: osf*)
4170: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4171: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4172: # nice to cause kernel panics so lets avoid the loop below.
4173: # First set a reasonable default.
4174: lt_cv_sys_max_cmd_len=16384
4175: #
4176: if test -x /sbin/sysconfig; then
4177: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4178: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4179: esac
4180: fi
4181: ;;
4182: sco3.2v5*)
4183: lt_cv_sys_max_cmd_len=102400
4184: ;;
4185: sysv5* | sco5v6* | sysv4.2uw2*)
4186: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4187: if test -n "$kargmax"; then
4188: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4189: else
4190: lt_cv_sys_max_cmd_len=32768
4191: fi
4192: ;;
4193: *)
4194: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4195: if test -n "$lt_cv_sys_max_cmd_len"; then
4196: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4197: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4198: else
4199: # Make teststring a little bigger before we do anything with it.
4200: # a 1K string should be a reasonable start.
4201: for i in 1 2 3 4 5 6 7 8 ; do
4202: teststring=$teststring$teststring
4203: done
4204: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4205: # If test is not a shell built-in, we'll probably end up computing a
4206: # maximum length that is only half of the actual maximum length, but
4207: # we can't tell.
4208: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4209: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4210: test $i != 17 # 1/2 MB should be enough
4211: do
4212: i=`expr $i + 1`
4213: teststring=$teststring$teststring
4214: done
4215: # Only check the string length outside the loop.
4216: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4217: teststring=
4218: # Add a significant safety factor because C++ compilers can tack on
4219: # massive amounts of additional arguments before passing them to the
4220: # linker. It appears as though 1/2 is a usable value.
4221: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4222: fi
4223: ;;
4224: esac
4225:
4226: fi
4227:
4228: if test -n $lt_cv_sys_max_cmd_len ; then
4229: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4230: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4231: else
4232: echo "$as_me:$LINENO: result: none" >&5
4233: echo "${ECHO_T}none" >&6
4234: fi
4235: max_cmd_len=$lt_cv_sys_max_cmd_len
4236:
4237:
4238:
4239:
4240:
4241:
4242: : ${CP="cp -f"}
4243: : ${MV="mv -f"}
4244: : ${RM="rm -f"}
4245:
4246: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4247: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4248: # Try some XSI features
4249: xsi_shell=no
4250: ( _lt_dummy="a/b/c"
4251: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4252: = c,a/b,b/c, \
4253: && eval 'test $(( 1 + 1 )) -eq 2 \
4254: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4255: && xsi_shell=yes
4256: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4257: echo "${ECHO_T}$xsi_shell" >&6
4258:
4259:
4260: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4261: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4262: lt_shell_append=no
4263: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4264: >/dev/null 2>&1 \
4265: && lt_shell_append=yes
4266: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4267: echo "${ECHO_T}$lt_shell_append" >&6
4268:
4269:
4270: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4271: lt_unset=unset
4272: else
4273: lt_unset=false
4274: fi
4275:
4276:
4277:
4278:
4279:
4280: # test EBCDIC or ASCII
4281: case `echo X|tr X '\101'` in
4282: A) # ASCII based system
4283: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4284: lt_SP2NL='tr \040 \012'
4285: lt_NL2SP='tr \015\012 \040\040'
4286: ;;
4287: *) # EBCDIC based system
4288: lt_SP2NL='tr \100 \n'
4289: lt_NL2SP='tr \r\n \100\100'
4290: ;;
4291: esac
4292:
4293:
4294:
4295:
4296:
4297:
4298:
4299:
4300:
4301: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4302: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4303: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4304: echo $ECHO_N "(cached) $ECHO_C" >&6
4305: else
4306: case $host in
4307: *-*-mingw* )
4308: case $build in
4309: *-*-mingw* ) # actually msys
4310: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4311: ;;
4312: *-*-cygwin* )
4313: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4314: ;;
4315: * ) # otherwise, assume *nix
4316: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4317: ;;
4318: esac
4319: ;;
4320: *-*-cygwin* )
4321: case $build in
4322: *-*-mingw* ) # actually msys
4323: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4324: ;;
4325: *-*-cygwin* )
4326: lt_cv_to_host_file_cmd=func_convert_file_noop
4327: ;;
4328: * ) # otherwise, assume *nix
4329: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4330: ;;
4331: esac
4332: ;;
4333: * ) # unhandled hosts (and "normal" native builds)
4334: lt_cv_to_host_file_cmd=func_convert_file_noop
4335: ;;
4336: esac
4337:
4338: fi
4339:
4340: to_host_file_cmd=$lt_cv_to_host_file_cmd
4341: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4342: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4343:
4344:
4345:
4346:
4347:
4348: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4349: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4350: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4351: echo $ECHO_N "(cached) $ECHO_C" >&6
4352: else
4353: #assume ordinary cross tools, or native build.
4354: lt_cv_to_tool_file_cmd=func_convert_file_noop
4355: case $host in
4356: *-*-mingw* )
4357: case $build in
4358: *-*-mingw* ) # actually msys
4359: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4360: ;;
4361: esac
4362: ;;
4363: esac
4364:
4365: fi
4366:
4367: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4368: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4369: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4370:
4371:
4372:
4373:
4374:
4375: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4376: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4377: if test "${lt_cv_ld_reload_flag+set}" = set; then
4378: echo $ECHO_N "(cached) $ECHO_C" >&6
4379: else
4380: lt_cv_ld_reload_flag='-r'
4381: fi
4382: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4383: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4384: reload_flag=$lt_cv_ld_reload_flag
4385: case $reload_flag in
4386: "" | " "*) ;;
4387: *) reload_flag=" $reload_flag" ;;
4388: esac
4389: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4390: case $host_os in
4391: cygwin* | mingw* | pw32* | cegcc*)
4392: if test "$GCC" != yes; then
4393: reload_cmds=false
4394: fi
4395: ;;
4396: darwin*)
4397: if test "$GCC" = yes; then
4398: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4399: else
4400: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4401: fi
4402: ;;
4403: esac
4404:
4405:
4406:
4407:
4408:
4409:
4410:
4411:
4412:
4413: if test -n "$ac_tool_prefix"; then
4414: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4415: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4416: echo "$as_me:$LINENO: checking for $ac_word" >&5
4417: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4418: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4419: echo $ECHO_N "(cached) $ECHO_C" >&6
4420: else
4421: if test -n "$OBJDUMP"; then
4422: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4423: else
4424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425: for as_dir in $PATH
4426: do
4427: IFS=$as_save_IFS
4428: test -z "$as_dir" && as_dir=.
4429: for ac_exec_ext in '' $ac_executable_extensions; do
4430: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4432: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433: break 2
4434: fi
4435: done
4436: done
4437:
4438: fi
4439: fi
4440: OBJDUMP=$ac_cv_prog_OBJDUMP
4441: if test -n "$OBJDUMP"; then
4442: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4443: echo "${ECHO_T}$OBJDUMP" >&6
4444: else
4445: echo "$as_me:$LINENO: result: no" >&5
4446: echo "${ECHO_T}no" >&6
4447: fi
4448:
4449: fi
4450: if test -z "$ac_cv_prog_OBJDUMP"; then
4451: ac_ct_OBJDUMP=$OBJDUMP
4452: # Extract the first word of "objdump", so it can be a program name with args.
4453: set dummy objdump; ac_word=$2
4454: echo "$as_me:$LINENO: checking for $ac_word" >&5
4455: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4457: echo $ECHO_N "(cached) $ECHO_C" >&6
4458: else
4459: if test -n "$ac_ct_OBJDUMP"; then
4460: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4461: else
4462: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463: for as_dir in $PATH
4464: do
4465: IFS=$as_save_IFS
4466: test -z "$as_dir" && as_dir=.
4467: for ac_exec_ext in '' $ac_executable_extensions; do
4468: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4470: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471: break 2
4472: fi
4473: done
4474: done
4475:
4476: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4477: fi
4478: fi
4479: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4480: if test -n "$ac_ct_OBJDUMP"; then
4481: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4482: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4483: else
4484: echo "$as_me:$LINENO: result: no" >&5
4485: echo "${ECHO_T}no" >&6
4486: fi
4487:
4488: OBJDUMP=$ac_ct_OBJDUMP
4489: else
4490: OBJDUMP="$ac_cv_prog_OBJDUMP"
4491: fi
4492:
4493: test -z "$OBJDUMP" && OBJDUMP=objdump
4494:
4495:
4496:
4497:
4498:
4499:
4500: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4501: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1.15 paf 4502: if test "${lt_cv_deplibs_check_method+set}" = set; then
4503: echo $ECHO_N "(cached) $ECHO_C" >&6
4504: else
4505: lt_cv_file_magic_cmd='$MAGIC_CMD'
4506: lt_cv_file_magic_test_file=
4507: lt_cv_deplibs_check_method='unknown'
4508: # Need to set the preceding variable on all platforms that support
4509: # interlibrary dependencies.
4510: # 'none' -- dependencies not supported.
4511: # `unknown' -- same as none, but documents that we really don't know.
4512: # 'pass_all' -- all dependencies passed with no checks.
4513: # 'test_compile' -- check by making test program.
4514: # 'file_magic [[regex]]' -- check by looking for files in library path
1.35 moko 4515: # which responds to the $file_magic_cmd with a given extended regex.
1.15 paf 4516: # If you have `file' or equivalent on your system and you're not sure
4517: # whether `pass_all' will *always* work, you probably want this one.
4518:
4519: case $host_os in
1.35 moko 4520: aix[4-9]*)
1.15 paf 4521: lt_cv_deplibs_check_method=pass_all
4522: ;;
1.11 paf 4523:
1.15 paf 4524: beos*)
4525: lt_cv_deplibs_check_method=pass_all
4526: ;;
1.1 parser 4527:
1.35 moko 4528: bsdi[45]*)
1.15 paf 4529: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4530: lt_cv_file_magic_cmd='/usr/bin/file -L'
4531: lt_cv_file_magic_test_file=/shlib/libc.so
4532: ;;
1.1 parser 4533:
1.35 moko 4534: cygwin*)
4535: # func_win32_libid is a shell function defined in ltmain.sh
4536: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4537: lt_cv_file_magic_cmd='func_win32_libid'
4538: ;;
4539:
4540: mingw* | pw32*)
4541: # Base MSYS/MinGW do not provide the 'file' command needed by
4542: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4543: # unless we find 'file', for example because we are cross-compiling.
4544: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4545: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4546: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4547: lt_cv_file_magic_cmd='func_win32_libid'
4548: else
4549: # Keep this pattern in sync with the one in func_win32_libid.
4550: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4551: lt_cv_file_magic_cmd='$OBJDUMP -f'
4552: fi
4553: ;;
4554:
4555: cegcc*)
4556: # use the weaker test based on 'objdump'. See mingw*.
4557: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.15 paf 4558: lt_cv_file_magic_cmd='$OBJDUMP -f'
4559: ;;
1.1 parser 4560:
1.15 paf 4561: darwin* | rhapsody*)
1.35 moko 4562: lt_cv_deplibs_check_method=pass_all
1.15 paf 4563: ;;
1.1 parser 4564:
1.35 moko 4565: freebsd* | dragonfly*)
4566: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.15 paf 4567: case $host_cpu in
4568: i*86 )
4569: # Not sure whether the presence of OpenBSD here was a mistake.
4570: # Let's accept both of them until this is cleared up.
1.35 moko 4571: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.15 paf 4572: lt_cv_file_magic_cmd=/usr/bin/file
4573: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.1 parser 4574: ;;
4575: esac
1.15 paf 4576: else
4577: lt_cv_deplibs_check_method=pass_all
1.1 parser 4578: fi
4579: ;;
4580:
1.15 paf 4581: gnu*)
4582: lt_cv_deplibs_check_method=pass_all
4583: ;;
1.1 parser 4584:
1.35 moko 4585: haiku*)
4586: lt_cv_deplibs_check_method=pass_all
1.15 paf 4587: ;;
1.1 parser 4588:
1.35 moko 4589: hpux10.20* | hpux11*)
4590: lt_cv_file_magic_cmd=/usr/bin/file
4591: case $host_cpu in
4592: ia64*)
4593: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4594: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4595: ;;
4596: hppa*64*)
4597: 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]'
4598: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.15 paf 4599: ;;
4600: *)
1.35 moko 4601: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4602: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.15 paf 4603: ;;
4604: esac
1.35 moko 4605: ;;
4606:
4607: interix[3-9]*)
4608: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4609: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4610: ;;
4611:
4612: irix5* | irix6* | nonstopux*)
4613: case $LD in
4614: *-32|*"-32 ") libmagic=32-bit;;
4615: *-n32|*"-n32 ") libmagic=N32;;
4616: *-64|*"-64 ") libmagic=64-bit;;
4617: *) libmagic=never-match;;
4618: esac
1.15 paf 4619: lt_cv_deplibs_check_method=pass_all
4620: ;;
4621:
1.35 moko 4622: # This must be glibc/ELF.
4623: linux* | k*bsd*-gnu | kopensolaris*-gnu)
4624: lt_cv_deplibs_check_method=pass_all
1.15 paf 4625: ;;
4626:
4627: netbsd*)
1.35 moko 4628: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4629: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.15 paf 4630: else
1.35 moko 4631: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.15 paf 4632: fi
4633: ;;
4634:
4635: newos6*)
4636: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4637: lt_cv_file_magic_cmd=/usr/bin/file
4638: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4639: ;;
1.1 parser 4640:
1.35 moko 4641: *nto* | *qnx*)
4642: lt_cv_deplibs_check_method=pass_all
4643: ;;
4644:
1.15 paf 4645: openbsd*)
1.35 moko 4646: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4647: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.15 paf 4648: else
1.35 moko 4649: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 parser 4650: fi
4651: ;;
4652:
1.15 paf 4653: osf3* | osf4* | osf5*)
4654: lt_cv_deplibs_check_method=pass_all
4655: ;;
4656:
1.35 moko 4657: rdos*)
1.15 paf 4658: lt_cv_deplibs_check_method=pass_all
4659: ;;
4660:
4661: solaris*)
4662: lt_cv_deplibs_check_method=pass_all
4663: ;;
4664:
1.35 moko 4665: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.15 paf 4666: lt_cv_deplibs_check_method=pass_all
4667: ;;
4668:
1.35 moko 4669: sysv4 | sysv4.3*)
1.15 paf 4670: case $host_vendor in
4671: motorola)
4672: 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]'
4673: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4674: ;;
4675: ncr)
4676: lt_cv_deplibs_check_method=pass_all
4677: ;;
4678: sequent)
4679: lt_cv_file_magic_cmd='/bin/file'
4680: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4681: ;;
4682: sni)
4683: lt_cv_file_magic_cmd='/bin/file'
4684: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4685: lt_cv_file_magic_test_file=/lib/libc.so
4686: ;;
4687: siemens)
4688: lt_cv_deplibs_check_method=pass_all
4689: ;;
1.35 moko 4690: pc)
4691: lt_cv_deplibs_check_method=pass_all
4692: ;;
1.15 paf 4693: esac
4694: ;;
1.35 moko 4695:
4696: tpf*)
4697: lt_cv_deplibs_check_method=pass_all
4698: ;;
1.15 paf 4699: esac
4700:
4701: fi
4702: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4703: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.35 moko 4704:
4705: file_magic_glob=
4706: want_nocaseglob=no
4707: if test "$build" = "$host"; then
4708: case $host_os in
4709: mingw* | pw32*)
4710: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4711: want_nocaseglob=yes
4712: else
4713: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4714: fi
4715: ;;
4716: esac
4717: fi
4718:
1.15 paf 4719: file_magic_cmd=$lt_cv_file_magic_cmd
4720: deplibs_check_method=$lt_cv_deplibs_check_method
1.35 moko 4721: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4722:
4723:
1.15 paf 4724:
4725:
4726:
4727:
4728:
4729:
4730:
4731:
1.35 moko 4732:
4733:
4734:
4735:
4736:
4737:
4738:
4739:
4740:
4741:
4742:
4743:
4744: if test -n "$ac_tool_prefix"; then
4745: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4746: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4747: echo "$as_me:$LINENO: checking for $ac_word" >&5
4748: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4750: echo $ECHO_N "(cached) $ECHO_C" >&6
4751: else
4752: if test -n "$DLLTOOL"; then
4753: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4754: else
4755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756: for as_dir in $PATH
4757: do
4758: IFS=$as_save_IFS
4759: test -z "$as_dir" && as_dir=.
4760: for ac_exec_ext in '' $ac_executable_extensions; do
4761: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4763: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764: break 2
4765: fi
4766: done
4767: done
4768:
4769: fi
4770: fi
4771: DLLTOOL=$ac_cv_prog_DLLTOOL
4772: if test -n "$DLLTOOL"; then
4773: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4774: echo "${ECHO_T}$DLLTOOL" >&6
4775: else
4776: echo "$as_me:$LINENO: result: no" >&5
4777: echo "${ECHO_T}no" >&6
4778: fi
4779:
4780: fi
4781: if test -z "$ac_cv_prog_DLLTOOL"; then
4782: ac_ct_DLLTOOL=$DLLTOOL
4783: # Extract the first word of "dlltool", so it can be a program name with args.
4784: set dummy dlltool; ac_word=$2
4785: echo "$as_me:$LINENO: checking for $ac_word" >&5
4786: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
1.15 paf 4788: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4789: else
1.35 moko 4790: if test -n "$ac_ct_DLLTOOL"; then
4791: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4792: else
4793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794: for as_dir in $PATH
4795: do
4796: IFS=$as_save_IFS
4797: test -z "$as_dir" && as_dir=.
4798: for ac_exec_ext in '' $ac_executable_extensions; do
4799: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4801: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802: break 2
4803: fi
4804: done
4805: done
4806:
4807: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4808: fi
4809: fi
4810: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4811: if test -n "$ac_ct_DLLTOOL"; then
4812: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4813: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4814: else
4815: echo "$as_me:$LINENO: result: no" >&5
4816: echo "${ECHO_T}no" >&6
4817: fi
4818:
4819: DLLTOOL=$ac_ct_DLLTOOL
4820: else
4821: DLLTOOL="$ac_cv_prog_DLLTOOL"
4822: fi
4823:
4824: test -z "$DLLTOOL" && DLLTOOL=dlltool
4825:
4826:
4827:
4828:
1.15 paf 4829:
4830:
4831:
1.35 moko 4832: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
4833: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
4834: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
4835: echo $ECHO_N "(cached) $ECHO_C" >&6
4836: else
4837: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.15 paf 4838:
4839: case $host_os in
1.35 moko 4840: cygwin* | mingw* | pw32* | cegcc*)
4841: # two different shell functions defined in ltmain.sh
4842: # decide which to use based on capabilities of $DLLTOOL
4843: case `$DLLTOOL --help 2>&1` in
4844: *--identify-strict*)
4845: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4846: ;;
4847: *)
4848: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4849: ;;
4850: esac
1.15 paf 4851: ;;
1.35 moko 4852: *)
4853: # fallback: assume linklib IS sharedlib
4854: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.15 paf 4855: ;;
4856: esac
4857:
4858: fi
1.35 moko 4859: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4860: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
4861: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4862: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.15 paf 4863:
4864:
4865:
4866:
4867:
4868:
4869:
4870:
1.35 moko 4871: if test -n "$ac_tool_prefix"; then
4872: for ac_prog in ar
4873: do
4874: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876: echo "$as_me:$LINENO: checking for $ac_word" >&5
4877: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878: if test "${ac_cv_prog_AR+set}" = set; then
4879: echo $ECHO_N "(cached) $ECHO_C" >&6
4880: else
4881: if test -n "$AR"; then
4882: ac_cv_prog_AR="$AR" # Let the user override the test.
4883: else
4884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885: for as_dir in $PATH
4886: do
4887: IFS=$as_save_IFS
4888: test -z "$as_dir" && as_dir=.
4889: for ac_exec_ext in '' $ac_executable_extensions; do
4890: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4892: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4893: break 2
1.15 paf 4894: fi
1.35 moko 4895: done
1.15 paf 4896: done
4897:
1.11 paf 4898: fi
4899: fi
1.35 moko 4900: AR=$ac_cv_prog_AR
4901: if test -n "$AR"; then
4902: echo "$as_me:$LINENO: result: $AR" >&5
4903: echo "${ECHO_T}$AR" >&6
1.11 paf 4904: else
1.35 moko 4905: echo "$as_me:$LINENO: result: no" >&5
4906: echo "${ECHO_T}no" >&6
1.11 paf 4907: fi
4908:
1.35 moko 4909: test -n "$AR" && break
4910: done
1.24 paf 4911: fi
1.35 moko 4912: if test -z "$AR"; then
4913: ac_ct_AR=$AR
4914: for ac_prog in ar
4915: do
4916: # Extract the first word of "$ac_prog", so it can be a program name with args.
4917: set dummy $ac_prog; ac_word=$2
4918: echo "$as_me:$LINENO: checking for $ac_word" >&5
4919: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.15 paf 4921: echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 paf 4922: else
1.35 moko 4923: if test -n "$ac_ct_AR"; then
4924: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4925: else
4926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927: for as_dir in $PATH
1.15 paf 4928: do
1.35 moko 4929: IFS=$as_save_IFS
4930: test -z "$as_dir" && as_dir=.
4931: for ac_exec_ext in '' $ac_executable_extensions; do
4932: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933: ac_cv_prog_ac_ct_AR="$ac_prog"
4934: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935: break 2
1.15 paf 4936: fi
1.35 moko 4937: done
4938: done
1.15 paf 4939:
1.11 paf 4940: fi
4941: fi
1.35 moko 4942: ac_ct_AR=$ac_cv_prog_ac_ct_AR
4943: if test -n "$ac_ct_AR"; then
4944: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4945: echo "${ECHO_T}$ac_ct_AR" >&6
1.15 paf 4946: else
1.35 moko 4947: echo "$as_me:$LINENO: result: no" >&5
4948: echo "${ECHO_T}no" >&6
1.11 paf 4949: fi
4950:
1.35 moko 4951: test -n "$ac_ct_AR" && break
1.15 paf 4952: done
1.35 moko 4953: test -n "$ac_ct_AR" || ac_ct_AR="false"
4954:
4955: AR=$ac_ct_AR
1.11 paf 4956: fi
1.15 paf 4957:
1.35 moko 4958: : ${AR=ar}
4959: : ${AR_FLAGS=cru}
4960:
1.15 paf 4961:
4962:
1.11 paf 4963:
1.15 paf 4964:
1.11 paf 4965:
4966:
1.15 paf 4967:
1.11 paf 4968:
1.15 paf 4969:
4970:
1.35 moko 4971: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
4972: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
4973: if test "${lt_cv_ar_at_file+set}" = set; then
1.15 paf 4974: echo $ECHO_N "(cached) $ECHO_C" >&6
4975: else
1.35 moko 4976: lt_cv_ar_at_file=no
4977: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 4978: /* confdefs.h. */
4979: _ACEOF
4980: cat confdefs.h >>conftest.$ac_ext
4981: cat >>conftest.$ac_ext <<_ACEOF
4982: /* end confdefs.h. */
4983:
4984: int
4985: main ()
4986: {
4987:
4988: ;
4989: return 0;
4990: }
4991: _ACEOF
4992: rm -f conftest.$ac_objext
4993: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 paf 4994: (eval $ac_compile) 2>conftest.er1
1.15 paf 4995: ac_status=$?
1.25 paf 4996: grep -v '^ *+' conftest.er1 >conftest.err
4997: rm -f conftest.er1
4998: cat conftest.err >&5
1.15 paf 4999: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000: (exit $ac_status); } &&
1.25 paf 5001: { ac_try='test -z "$ac_c_werror_flag"
5002: || test ! -s conftest.err'
5003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004: (eval $ac_try) 2>&5
5005: ac_status=$?
5006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007: (exit $ac_status); }; } &&
5008: { ac_try='test -s conftest.$ac_objext'
1.15 paf 5009: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010: (eval $ac_try) 2>&5
5011: ac_status=$?
5012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013: (exit $ac_status); }; }; then
1.35 moko 5014: echo conftest.$ac_objext > conftest.lst
5015: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5016: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5017: (eval $lt_ar_try) 2>&5
5018: ac_status=$?
5019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020: (exit $ac_status); }
5021: if test "$ac_status" -eq 0; then
5022: # Ensure the archiver fails upon bogus file names.
5023: rm -f conftest.$ac_objext libconftest.a
5024: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5025: (eval $lt_ar_try) 2>&5
5026: ac_status=$?
5027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028: (exit $ac_status); }
5029: if test "$ac_status" -ne 0; then
5030: lt_cv_ar_at_file=@
5031: fi
5032: fi
5033: rm -f conftest.* libconftest.a
5034:
1.11 paf 5035: else
1.15 paf 5036: echo "$as_me: failed program was:" >&5
5037: sed 's/^/| /' conftest.$ac_ext >&5
5038:
1.11 paf 5039: fi
1.25 paf 5040: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 5041:
1.35 moko 5042: fi
5043: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5044: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5045:
5046: if test "x$lt_cv_ar_at_file" = xno; then
5047: archiver_list_spec=
1.11 paf 5048: else
1.35 moko 5049: archiver_list_spec=$lt_cv_ar_at_file
1.11 paf 5050: fi
1.15 paf 5051:
1.11 paf 5052:
1.1 parser 5053:
1.35 moko 5054:
5055:
5056:
5057:
5058: if test -n "$ac_tool_prefix"; then
5059: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5060: set dummy ${ac_tool_prefix}strip; ac_word=$2
5061: echo "$as_me:$LINENO: checking for $ac_word" >&5
5062: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063: if test "${ac_cv_prog_STRIP+set}" = set; then
5064: echo $ECHO_N "(cached) $ECHO_C" >&6
5065: else
5066: if test -n "$STRIP"; then
5067: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5068: else
5069: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070: for as_dir in $PATH
5071: do
5072: IFS=$as_save_IFS
5073: test -z "$as_dir" && as_dir=.
5074: for ac_exec_ext in '' $ac_executable_extensions; do
5075: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5077: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078: break 2
5079: fi
5080: done
5081: done
5082:
5083: fi
5084: fi
5085: STRIP=$ac_cv_prog_STRIP
5086: if test -n "$STRIP"; then
5087: echo "$as_me:$LINENO: result: $STRIP" >&5
5088: echo "${ECHO_T}$STRIP" >&6
1.1 parser 5089: else
1.35 moko 5090: echo "$as_me:$LINENO: result: no" >&5
5091: echo "${ECHO_T}no" >&6
1.1 parser 5092: fi
5093:
1.15 paf 5094: fi
1.35 moko 5095: if test -z "$ac_cv_prog_STRIP"; then
5096: ac_ct_STRIP=$STRIP
5097: # Extract the first word of "strip", so it can be a program name with args.
5098: set dummy strip; ac_word=$2
5099: echo "$as_me:$LINENO: checking for $ac_word" >&5
5100: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5102: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5103: else
1.35 moko 5104: if test -n "$ac_ct_STRIP"; then
5105: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 parser 5106: else
1.35 moko 5107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108: for as_dir in $PATH
5109: do
5110: IFS=$as_save_IFS
5111: test -z "$as_dir" && as_dir=.
5112: for ac_exec_ext in '' $ac_executable_extensions; do
5113: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114: ac_cv_prog_ac_ct_STRIP="strip"
5115: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116: break 2
5117: fi
5118: done
5119: done
1.15 paf 5120:
1.35 moko 5121: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.1 parser 5122: fi
1.15 paf 5123: fi
1.35 moko 5124: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5125: if test -n "$ac_ct_STRIP"; then
5126: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5127: echo "${ECHO_T}$ac_ct_STRIP" >&6
5128: else
5129: echo "$as_me:$LINENO: result: no" >&5
5130: echo "${ECHO_T}no" >&6
1.15 paf 5131: fi
1.1 parser 5132:
1.35 moko 5133: STRIP=$ac_ct_STRIP
5134: else
5135: STRIP="$ac_cv_prog_STRIP"
1.15 paf 5136: fi
1.1 parser 5137:
1.35 moko 5138: test -z "$STRIP" && STRIP=:
1.1 parser 5139:
5140:
5141:
5142:
5143:
5144:
1.35 moko 5145: if test -n "$ac_tool_prefix"; then
5146: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5147: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5148: echo "$as_me:$LINENO: checking for $ac_word" >&5
5149: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150: if test "${ac_cv_prog_RANLIB+set}" = set; then
1.15 paf 5151: echo $ECHO_N "(cached) $ECHO_C" >&6
5152: else
1.35 moko 5153: if test -n "$RANLIB"; then
5154: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.15 paf 5155: else
1.35 moko 5156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157: for as_dir in $PATH
5158: do
5159: IFS=$as_save_IFS
5160: test -z "$as_dir" && as_dir=.
5161: for ac_exec_ext in '' $ac_executable_extensions; do
5162: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5164: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165: break 2
5166: fi
5167: done
5168: done
1.15 paf 5169:
5170: fi
5171: fi
1.35 moko 5172: RANLIB=$ac_cv_prog_RANLIB
5173: if test -n "$RANLIB"; then
5174: echo "$as_me:$LINENO: result: $RANLIB" >&5
5175: echo "${ECHO_T}$RANLIB" >&6
5176: else
5177: echo "$as_me:$LINENO: result: no" >&5
5178: echo "${ECHO_T}no" >&6
5179: fi
1.15 paf 5180:
5181: fi
1.35 moko 5182: if test -z "$ac_cv_prog_RANLIB"; then
5183: ac_ct_RANLIB=$RANLIB
5184: # Extract the first word of "ranlib", so it can be a program name with args.
5185: set dummy ranlib; ac_word=$2
5186: echo "$as_me:$LINENO: checking for $ac_word" >&5
5187: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5189: echo $ECHO_N "(cached) $ECHO_C" >&6
5190: else
5191: if test -n "$ac_ct_RANLIB"; then
5192: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5193: else
5194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195: for as_dir in $PATH
5196: do
5197: IFS=$as_save_IFS
5198: test -z "$as_dir" && as_dir=.
5199: for ac_exec_ext in '' $ac_executable_extensions; do
5200: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201: ac_cv_prog_ac_ct_RANLIB="ranlib"
5202: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203: break 2
5204: fi
5205: done
1.15 paf 5206: done
5207:
1.35 moko 5208: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5209: fi
1.15 paf 5210: fi
1.35 moko 5211: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5212: if test -n "$ac_ct_RANLIB"; then
5213: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5214: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.15 paf 5215: else
1.35 moko 5216: echo "$as_me:$LINENO: result: no" >&5
5217: echo "${ECHO_T}no" >&6
1.15 paf 5218: fi
5219:
1.35 moko 5220: RANLIB=$ac_ct_RANLIB
1.15 paf 5221: else
1.35 moko 5222: RANLIB="$ac_cv_prog_RANLIB"
1.15 paf 5223: fi
5224:
1.35 moko 5225: test -z "$RANLIB" && RANLIB=:
5226:
5227:
5228:
5229:
5230:
5231:
5232: # Determine commands to create old-style static archives.
5233: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5234: old_postinstall_cmds='chmod 644 $oldlib'
5235: old_postuninstall_cmds=
1.15 paf 5236:
1.35 moko 5237: if test -n "$RANLIB"; then
5238: case $host_os in
5239: openbsd*)
5240: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.15 paf 5241: ;;
1.35 moko 5242: *)
5243: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.15 paf 5244: ;;
1.35 moko 5245: esac
5246: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5247: fi
5248:
5249: case $host_os in
5250: darwin*)
5251: lock_old_archive_extraction=yes ;;
5252: *)
5253: lock_old_archive_extraction=no ;;
1.15 paf 5254: esac
5255:
5256:
5257:
5258:
5259:
5260:
5261:
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
5271:
1.1 parser 5272:
5273:
1.15 paf 5274:
5275:
5276:
5277:
5278:
5279:
1.1 parser 5280:
5281:
5282:
1.15 paf 5283:
5284:
5285:
5286:
5287:
5288:
1.35 moko 5289:
5290:
5291:
5292:
5293:
5294: # If no C compiler was specified, use CC.
5295: LTCC=${LTCC-"$CC"}
5296:
5297: # If no C compiler flags were specified, use CFLAGS.
5298: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5299:
5300: # Allow CC to be a program name with arguments.
5301: compiler=$CC
5302:
5303:
5304: # Check for command to grab the raw symbol name followed by C symbol from nm.
5305: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5306: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5307: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.15 paf 5308: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 parser 5309: else
5310:
1.35 moko 5311: # These are sane defaults that work on at least a few old systems.
5312: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.15 paf 5313:
1.35 moko 5314: # Character class describing NM global symbol codes.
5315: symcode='[BCDEGRST]'
1.15 paf 5316:
1.35 moko 5317: # Regexp to match symbols that can be accessed directly from C.
5318: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.15 paf 5319:
1.35 moko 5320: # Define system-specific variables.
5321: case $host_os in
5322: aix*)
5323: symcode='[BCDT]'
5324: ;;
5325: cygwin* | mingw* | pw32* | cegcc*)
5326: symcode='[ABCDGISTW]'
5327: ;;
5328: hpux*)
5329: if test "$host_cpu" = ia64; then
5330: symcode='[ABCDEGRST]'
5331: fi
5332: ;;
5333: irix* | nonstopux*)
5334: symcode='[BCDEGRST]'
5335: ;;
5336: osf*)
5337: symcode='[BCDEGQRST]'
5338: ;;
5339: solaris*)
5340: symcode='[BDRT]'
5341: ;;
5342: sco3.2v5*)
5343: symcode='[DT]'
5344: ;;
5345: sysv4.2uw2*)
5346: symcode='[DT]'
5347: ;;
5348: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5349: symcode='[ABDT]'
5350: ;;
5351: sysv4)
5352: symcode='[DFNSTU]'
5353: ;;
5354: esac
5355:
5356: # If we're using GNU nm, then use its standard symbol codes.
5357: case `$NM -V 2>&1` in
5358: *GNU* | *'with BFD'*)
5359: symcode='[ABCDGIRSTW]' ;;
5360: esac
5361:
5362: # Transform an extracted symbol line into a proper C declaration.
5363: # Some systems (esp. on ia64) link data and code symbols differently,
5364: # so use this general approach.
5365: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5366:
5367: # Transform an extracted symbol line into symbol name and symbol address
5368: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5369: 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'"
5370:
5371: # Handle CRLF in mingw tool chain
5372: opt_cr=
5373: case $build_os in
5374: mingw*)
5375: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376: ;;
5377: esac
5378:
5379: # Try without a prefix underscore, then with it.
5380: for ac_symprfx in "" "_"; do
5381:
5382: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5383: symxfrm="\\1 $ac_symprfx\\2 \\2"
5384:
5385: # Write the raw and C identifiers.
5386: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5387: # Fake it for dumpbin and say T for any non-static function
5388: # and D for any global variable.
5389: # Also find C++ and __fastcall symbols from MSVC++,
5390: # which start with @ or ?.
5391: lt_cv_sys_global_symbol_pipe="$AWK '"\
5392: " {last_section=section; section=\$ 3};"\
5393: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5394: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5395: " \$ 0!~/External *\|/{next};"\
5396: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5397: " {if(hide[section]) next};"\
5398: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5399: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5400: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5401: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5402: " ' prfx=^$ac_symprfx"
5403: else
5404: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5405: fi
5406: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5407:
5408: # Check to see that the pipe works correctly.
5409: pipe_works=no
1.15 paf 5410:
1.35 moko 5411: rm -f conftest*
5412: cat > conftest.$ac_ext <<_LT_EOF
5413: #ifdef __cplusplus
5414: extern "C" {
5415: #endif
5416: char nm_test_var;
5417: void nm_test_func(void);
5418: void nm_test_func(void){}
5419: #ifdef __cplusplus
1.15 paf 5420: }
1.35 moko 5421: #endif
5422: int main(){nm_test_var='a';nm_test_func();return(0);}
5423: _LT_EOF
5424:
5425: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426: (eval $ac_compile) 2>&5
1.15 paf 5427: ac_status=$?
5428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5429: (exit $ac_status); }; then
5430: # Now try to grab the symbols.
5431: nlist=conftest.nm
5432: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5433: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.25 paf 5434: ac_status=$?
5435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5436: (exit $ac_status); } && test -s "$nlist"; then
5437: # Try sorting and uniquifying the output.
5438: if sort "$nlist" | uniq > "$nlist"T; then
5439: mv -f "$nlist"T "$nlist"
5440: else
5441: rm -f "$nlist"T
5442: fi
5443:
5444: # Make sure that we snagged all the symbols we need.
5445: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5446: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5447: cat <<_LT_EOF > conftest.$ac_ext
5448: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5449: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5450: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5451: relocations are performed -- see ld's documentation on pseudo-relocs. */
5452: # define LT_DLSYM_CONST
5453: #elif defined(__osf__)
5454: /* This system does not cope well with relocations in const data. */
5455: # define LT_DLSYM_CONST
5456: #else
5457: # define LT_DLSYM_CONST const
5458: #endif
5459:
5460: #ifdef __cplusplus
5461: extern "C" {
5462: #endif
5463:
5464: _LT_EOF
5465: # Now generate the symbol file.
5466: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5467:
5468: cat <<_LT_EOF >> conftest.$ac_ext
5469:
5470: /* The mapping between symbol names and symbols. */
5471: LT_DLSYM_CONST struct {
5472: const char *name;
5473: void *address;
5474: }
5475: lt__PROGRAM__LTX_preloaded_symbols[] =
5476: {
5477: { "@PROGRAM@", (void *) 0 },
5478: _LT_EOF
5479: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5480: cat <<\_LT_EOF >> conftest.$ac_ext
5481: {0, (void *) 0}
5482: };
5483:
5484: /* This works around a problem in FreeBSD linker */
5485: #ifdef FREEBSD_WORKAROUND
5486: static const void *lt_preloaded_setup() {
5487: return lt__PROGRAM__LTX_preloaded_symbols;
5488: }
5489: #endif
5490:
5491: #ifdef __cplusplus
5492: }
5493: #endif
5494: _LT_EOF
5495: # Now try linking the two files.
5496: mv conftest.$ac_objext conftstm.$ac_objext
5497: lt_globsym_save_LIBS=$LIBS
5498: lt_globsym_save_CFLAGS=$CFLAGS
5499: LIBS="conftstm.$ac_objext"
5500: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5501: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502: (eval $ac_link) 2>&5
1.15 paf 5503: ac_status=$?
5504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5505: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5506: pipe_works=yes
5507: fi
5508: LIBS=$lt_globsym_save_LIBS
5509: CFLAGS=$lt_globsym_save_CFLAGS
5510: else
5511: echo "cannot find nm_test_func in $nlist" >&5
5512: fi
5513: else
5514: echo "cannot find nm_test_var in $nlist" >&5
5515: fi
5516: else
5517: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5518: fi
5519: else
5520: echo "$progname: failed program was:" >&5
5521: cat conftest.$ac_ext >&5
5522: fi
5523: rm -rf conftest* conftst*
5524:
5525: # Do not use the global_symbol_pipe unless it works.
5526: if test "$pipe_works" = yes; then
5527: break
5528: else
5529: lt_cv_sys_global_symbol_pipe=
5530: fi
5531: done
5532:
5533: fi
5534:
5535: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5536: lt_cv_sys_global_symbol_to_cdecl=
5537: fi
5538: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5539: echo "$as_me:$LINENO: result: failed" >&5
5540: echo "${ECHO_T}failed" >&6
1.1 parser 5541: else
1.35 moko 5542: echo "$as_me:$LINENO: result: ok" >&5
5543: echo "${ECHO_T}ok" >&6
5544: fi
1.15 paf 5545:
1.35 moko 5546: # Response file support.
5547: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5548: nm_file_list_spec='@'
5549: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5550: nm_file_list_spec='@'
1.1 parser 5551: fi
5552:
1.15 paf 5553:
5554:
5555:
5556:
5557:
5558:
5559:
5560:
5561:
5562:
1.1 parser 5563:
5564:
1.15 paf 5565:
5566:
5567:
1.1 parser 5568:
1.15 paf 5569:
5570:
5571:
5572:
1.35 moko 5573:
5574:
5575:
5576:
5577:
5578:
5579: echo "$as_me:$LINENO: checking for sysroot" >&5
5580: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
5581:
5582: # Check whether --with-sysroot or --without-sysroot was given.
5583: if test "${with_sysroot+set}" = set; then
5584: withval="$with_sysroot"
5585:
1.15 paf 5586: else
1.35 moko 5587: with_sysroot=no
1.15 paf 5588: fi;
5589:
1.35 moko 5590: lt_sysroot=
5591: case ${with_sysroot} in #(
5592: yes)
5593: if test "$GCC" = yes; then
5594: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5595: fi
5596: ;; #(
5597: /*)
5598: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5599: ;; #(
5600: no|'')
5601: ;; #(
5602: *)
5603: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
5604: echo "${ECHO_T}${with_sysroot}" >&6
5605: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
5606: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
5607: { (exit 1); exit 1; }; }
5608: ;;
5609: esac
5610:
5611: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
5612: echo "${ECHO_T}${lt_sysroot:-no}" >&6
5613:
5614:
5615:
5616:
5617:
5618: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5619: if test "${enable_libtool_lock+set}" = set; then
5620: enableval="$enable_libtool_lock"
1.15 paf 5621:
1.35 moko 5622: fi;
5623: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 parser 5624:
1.35 moko 5625: # Some flags need to be propagated to the compiler or linker for good
5626: # libtool support.
5627: case $host in
5628: ia64-*-hpux*)
5629: # Find out which ABI we are using.
5630: echo 'int i;' > conftest.$ac_ext
5631: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5632: (eval $ac_compile) 2>&5
5633: ac_status=$?
5634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635: (exit $ac_status); }; then
5636: case `/usr/bin/file conftest.$ac_objext` in
5637: *ELF-32*)
5638: HPUX_IA64_MODE="32"
5639: ;;
5640: *ELF-64*)
5641: HPUX_IA64_MODE="64"
5642: ;;
1.15 paf 5643: esac
5644: fi
1.35 moko 5645: rm -rf conftest*
5646: ;;
5647: *-*-irix6*)
5648: # Find out which ABI we are using.
5649: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5650: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651: (eval $ac_compile) 2>&5
1.15 paf 5652: ac_status=$?
5653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5654: (exit $ac_status); }; then
5655: if test "$lt_cv_prog_gnu_ld" = yes; then
5656: case `/usr/bin/file conftest.$ac_objext` in
5657: *32-bit*)
5658: LD="${LD-ld} -melf32bsmip"
5659: ;;
5660: *N32*)
5661: LD="${LD-ld} -melf32bmipn32"
5662: ;;
5663: *64-bit*)
5664: LD="${LD-ld} -melf64bmip"
5665: ;;
5666: esac
5667: else
5668: case `/usr/bin/file conftest.$ac_objext` in
5669: *32-bit*)
5670: LD="${LD-ld} -32"
5671: ;;
5672: *N32*)
5673: LD="${LD-ld} -n32"
5674: ;;
5675: *64-bit*)
5676: LD="${LD-ld} -64"
5677: ;;
5678: esac
5679: fi
5680: fi
5681: rm -rf conftest*
5682: ;;
5683:
5684: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5685: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5686: # Find out which ABI we are using.
5687: echo 'int i;' > conftest.$ac_ext
5688: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689: (eval $ac_compile) 2>&5
1.25 paf 5690: ac_status=$?
5691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 5692: (exit $ac_status); }; then
5693: case `/usr/bin/file conftest.o` in
5694: *32-bit*)
5695: case $host in
5696: x86_64-*kfreebsd*-gnu)
5697: LD="${LD-ld} -m elf_i386_fbsd"
5698: ;;
5699: x86_64-*linux*)
5700: LD="${LD-ld} -m elf_i386"
5701: ;;
5702: ppc64-*linux*|powerpc64-*linux*)
5703: LD="${LD-ld} -m elf32ppclinux"
5704: ;;
5705: s390x-*linux*)
5706: LD="${LD-ld} -m elf_s390"
5707: ;;
5708: sparc64-*linux*)
5709: LD="${LD-ld} -m elf32_sparc"
5710: ;;
5711: esac
1.15 paf 5712: ;;
1.35 moko 5713: *64-bit*)
5714: case $host in
5715: x86_64-*kfreebsd*-gnu)
5716: LD="${LD-ld} -m elf_x86_64_fbsd"
5717: ;;
5718: x86_64-*linux*)
5719: LD="${LD-ld} -m elf_x86_64"
5720: ;;
5721: ppc*-*linux*|powerpc*-*linux*)
5722: LD="${LD-ld} -m elf64ppc"
5723: ;;
5724: s390*-*linux*|s390*-*tpf*)
5725: LD="${LD-ld} -m elf64_s390"
5726: ;;
5727: sparc*-*linux*)
5728: LD="${LD-ld} -m elf64_sparc"
5729: ;;
5730: esac
1.15 paf 5731: ;;
1.35 moko 5732: esac
1.15 paf 5733: fi
1.35 moko 5734: rm -rf conftest*
5735: ;;
1.15 paf 5736:
1.35 moko 5737: *-*-sco3.2v5*)
5738: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5739: SAVE_CFLAGS="$CFLAGS"
5740: CFLAGS="$CFLAGS -belf"
5741: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5742: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5743: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.15 paf 5744: echo $ECHO_N "(cached) $ECHO_C" >&6
5745: else
1.35 moko 5746: ac_ext=c
5747: ac_cpp='$CPP $CPPFLAGS'
5748: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751:
5752: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 5753: /* confdefs.h. */
5754: _ACEOF
5755: cat confdefs.h >>conftest.$ac_ext
5756: cat >>conftest.$ac_ext <<_ACEOF
5757: /* end confdefs.h. */
5758:
5759: int
5760: main ()
5761: {
5762:
5763: ;
5764: return 0;
5765: }
5766: _ACEOF
5767: rm -f conftest.$ac_objext conftest$ac_exeext
5768: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 paf 5769: (eval $ac_link) 2>conftest.er1
1.15 paf 5770: ac_status=$?
1.25 paf 5771: grep -v '^ *+' conftest.er1 >conftest.err
5772: rm -f conftest.er1
5773: cat conftest.err >&5
1.15 paf 5774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775: (exit $ac_status); } &&
1.25 paf 5776: { ac_try='test -z "$ac_c_werror_flag"
5777: || test ! -s conftest.err'
5778: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779: (eval $ac_try) 2>&5
5780: ac_status=$?
5781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782: (exit $ac_status); }; } &&
5783: { ac_try='test -s conftest$ac_exeext'
1.15 paf 5784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785: (eval $ac_try) 2>&5
5786: ac_status=$?
5787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788: (exit $ac_status); }; }; then
1.35 moko 5789: lt_cv_cc_needs_belf=yes
1.15 paf 5790: else
5791: echo "$as_me: failed program was:" >&5
5792: sed 's/^/| /' conftest.$ac_ext >&5
5793:
1.35 moko 5794: lt_cv_cc_needs_belf=no
1.15 paf 5795: fi
1.25 paf 5796: rm -f conftest.err conftest.$ac_objext \
5797: conftest$ac_exeext conftest.$ac_ext
1.35 moko 5798: ac_ext=c
5799: ac_cpp='$CPP $CPPFLAGS'
5800: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 5803:
5804: fi
1.35 moko 5805: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5806: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5807: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5808: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5809: CFLAGS="$SAVE_CFLAGS"
5810: fi
5811: ;;
5812: *-*solaris*)
5813: # Find out which ABI we are using.
5814: echo 'int i;' > conftest.$ac_ext
5815: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816: (eval $ac_compile) 2>&5
5817: ac_status=$?
5818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819: (exit $ac_status); }; then
5820: case `/usr/bin/file conftest.o` in
5821: *64-bit*)
5822: case $lt_cv_prog_gnu_ld in
5823: yes*)
5824: case $host in
5825: i?86-*-solaris*)
5826: LD="${LD-ld} -m elf_x86_64"
5827: ;;
5828: sparc*-*-solaris*)
5829: LD="${LD-ld} -m elf64_sparc"
5830: ;;
5831: esac
5832: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5833: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5834: LD="${LD-ld}_sol2"
5835: fi
5836: ;;
5837: *)
5838: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5839: LD="${LD-ld} -64"
5840: fi
5841: ;;
5842: esac
5843: ;;
5844: esac
5845: fi
5846: rm -rf conftest*
5847: ;;
5848: esac
1.15 paf 5849:
1.35 moko 5850: need_locks="$enable_libtool_lock"
1.15 paf 5851:
1.35 moko 5852: if test -n "$ac_tool_prefix"; then
5853: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5854: set dummy ${ac_tool_prefix}mt; ac_word=$2
5855: echo "$as_me:$LINENO: checking for $ac_word" >&5
5856: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
1.15 paf 5858: echo $ECHO_N "(cached) $ECHO_C" >&6
5859: else
1.35 moko 5860: if test -n "$MANIFEST_TOOL"; then
5861: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5862: else
5863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864: for as_dir in $PATH
5865: do
5866: IFS=$as_save_IFS
5867: test -z "$as_dir" && as_dir=.
5868: for ac_exec_ext in '' $ac_executable_extensions; do
5869: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5871: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872: break 2
5873: fi
5874: done
5875: done
1.15 paf 5876:
1.35 moko 5877: fi
5878: fi
5879: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5880: if test -n "$MANIFEST_TOOL"; then
5881: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
5882: echo "${ECHO_T}$MANIFEST_TOOL" >&6
1.15 paf 5883: else
1.35 moko 5884: echo "$as_me:$LINENO: result: no" >&5
5885: echo "${ECHO_T}no" >&6
1.15 paf 5886: fi
5887:
5888: fi
1.35 moko 5889: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5890: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5891: # Extract the first word of "mt", so it can be a program name with args.
5892: set dummy mt; ac_word=$2
5893: echo "$as_me:$LINENO: checking for $ac_word" >&5
5894: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
5896: echo $ECHO_N "(cached) $ECHO_C" >&6
5897: else
5898: if test -n "$ac_ct_MANIFEST_TOOL"; then
5899: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5900: else
5901: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902: for as_dir in $PATH
5903: do
5904: IFS=$as_save_IFS
5905: test -z "$as_dir" && as_dir=.
5906: for ac_exec_ext in '' $ac_executable_extensions; do
5907: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5909: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910: break 2
5911: fi
5912: done
5913: done
1.15 paf 5914:
1.35 moko 5915: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
5916: fi
5917: fi
5918: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5919: if test -n "$ac_ct_MANIFEST_TOOL"; then
5920: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
5921: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
5922: else
5923: echo "$as_me:$LINENO: result: no" >&5
5924: echo "${ECHO_T}no" >&6
5925: fi
5926:
5927: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5928: else
5929: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5930: fi
1.15 paf 5931:
1.35 moko 5932: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5933: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
5934: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
5935: if test "${lt_cv_path_mainfest_tool+set}" = set; then
1.15 paf 5936: echo $ECHO_N "(cached) $ECHO_C" >&6
5937: else
1.35 moko 5938: lt_cv_path_mainfest_tool=no
5939: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5940: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5941: cat conftest.err >&5
5942: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5943: lt_cv_path_mainfest_tool=yes
5944: fi
5945: rm -f conftest*
5946: fi
5947: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
5948: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
5949: if test "x$lt_cv_path_mainfest_tool" != xyes; then
5950: MANIFEST_TOOL=:
5951: fi
5952:
5953:
5954:
1.15 paf 5955:
5956:
5957:
1.35 moko 5958: case $host_os in
5959: rhapsody* | darwin*)
5960: if test -n "$ac_tool_prefix"; then
5961: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5962: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5963: echo "$as_me:$LINENO: checking for $ac_word" >&5
5964: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5965: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5966: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 5967: else
1.35 moko 5968: if test -n "$DSYMUTIL"; then
5969: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5970: else
5971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972: for as_dir in $PATH
5973: do
5974: IFS=$as_save_IFS
5975: test -z "$as_dir" && as_dir=.
5976: for ac_exec_ext in '' $ac_executable_extensions; do
5977: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5979: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980: break 2
5981: fi
5982: done
5983: done
1.15 paf 5984:
5985: fi
1.35 moko 5986: fi
5987: DSYMUTIL=$ac_cv_prog_DSYMUTIL
5988: if test -n "$DSYMUTIL"; then
5989: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5990: echo "${ECHO_T}$DSYMUTIL" >&6
5991: else
5992: echo "$as_me:$LINENO: result: no" >&5
5993: echo "${ECHO_T}no" >&6
5994: fi
1.15 paf 5995:
5996: fi
1.35 moko 5997: if test -z "$ac_cv_prog_DSYMUTIL"; then
5998: ac_ct_DSYMUTIL=$DSYMUTIL
5999: # Extract the first word of "dsymutil", so it can be a program name with args.
6000: set dummy dsymutil; ac_word=$2
6001: echo "$as_me:$LINENO: checking for $ac_word" >&5
6002: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6004: echo $ECHO_N "(cached) $ECHO_C" >&6
6005: else
6006: if test -n "$ac_ct_DSYMUTIL"; then
6007: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6008: else
6009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010: for as_dir in $PATH
6011: do
6012: IFS=$as_save_IFS
6013: test -z "$as_dir" && as_dir=.
6014: for ac_exec_ext in '' $ac_executable_extensions; do
6015: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6017: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018: break 2
6019: fi
6020: done
6021: done
1.15 paf 6022:
1.35 moko 6023: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6024: fi
6025: fi
6026: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6027: if test -n "$ac_ct_DSYMUTIL"; then
6028: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6029: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
1.15 paf 6030: else
1.35 moko 6031: echo "$as_me:$LINENO: result: no" >&5
6032: echo "${ECHO_T}no" >&6
1.15 paf 6033: fi
6034:
1.35 moko 6035: DSYMUTIL=$ac_ct_DSYMUTIL
1.15 paf 6036: else
1.35 moko 6037: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.15 paf 6038: fi
6039:
1.35 moko 6040: if test -n "$ac_tool_prefix"; then
6041: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6042: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6043: echo "$as_me:$LINENO: checking for $ac_word" >&5
6044: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6045: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6046: echo $ECHO_N "(cached) $ECHO_C" >&6
6047: else
6048: if test -n "$NMEDIT"; then
6049: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6050: else
6051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052: for as_dir in $PATH
6053: do
6054: IFS=$as_save_IFS
6055: test -z "$as_dir" && as_dir=.
6056: for ac_exec_ext in '' $ac_executable_extensions; do
6057: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6059: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060: break 2
6061: fi
6062: done
6063: done
1.15 paf 6064:
1.35 moko 6065: fi
6066: fi
6067: NMEDIT=$ac_cv_prog_NMEDIT
6068: if test -n "$NMEDIT"; then
6069: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6070: echo "${ECHO_T}$NMEDIT" >&6
6071: else
6072: echo "$as_me:$LINENO: result: no" >&5
6073: echo "${ECHO_T}no" >&6
6074: fi
1.15 paf 6075:
1.35 moko 6076: fi
6077: if test -z "$ac_cv_prog_NMEDIT"; then
6078: ac_ct_NMEDIT=$NMEDIT
6079: # Extract the first word of "nmedit", so it can be a program name with args.
6080: set dummy nmedit; ac_word=$2
6081: echo "$as_me:$LINENO: checking for $ac_word" >&5
6082: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6084: echo $ECHO_N "(cached) $ECHO_C" >&6
6085: else
6086: if test -n "$ac_ct_NMEDIT"; then
6087: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.15 paf 6088: else
1.35 moko 6089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090: for as_dir in $PATH
6091: do
6092: IFS=$as_save_IFS
6093: test -z "$as_dir" && as_dir=.
6094: for ac_exec_ext in '' $ac_executable_extensions; do
6095: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6097: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098: break 2
6099: fi
6100: done
6101: done
1.15 paf 6102:
1.35 moko 6103: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6104: fi
6105: fi
6106: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6107: if test -n "$ac_ct_NMEDIT"; then
6108: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6109: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6110: else
6111: echo "$as_me:$LINENO: result: no" >&5
6112: echo "${ECHO_T}no" >&6
1.15 paf 6113: fi
6114:
1.35 moko 6115: NMEDIT=$ac_ct_NMEDIT
6116: else
6117: NMEDIT="$ac_cv_prog_NMEDIT"
1.15 paf 6118: fi
6119:
1.35 moko 6120: if test -n "$ac_tool_prefix"; then
6121: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6122: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6123: echo "$as_me:$LINENO: checking for $ac_word" >&5
6124: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125: if test "${ac_cv_prog_LIPO+set}" = set; then
6126: echo $ECHO_N "(cached) $ECHO_C" >&6
6127: else
6128: if test -n "$LIPO"; then
6129: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6130: else
6131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132: for as_dir in $PATH
6133: do
6134: IFS=$as_save_IFS
6135: test -z "$as_dir" && as_dir=.
6136: for ac_exec_ext in '' $ac_executable_extensions; do
6137: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6139: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140: break 2
6141: fi
6142: done
6143: done
1.15 paf 6144:
1.35 moko 6145: fi
6146: fi
6147: LIPO=$ac_cv_prog_LIPO
6148: if test -n "$LIPO"; then
6149: echo "$as_me:$LINENO: result: $LIPO" >&5
6150: echo "${ECHO_T}$LIPO" >&6
6151: else
6152: echo "$as_me:$LINENO: result: no" >&5
6153: echo "${ECHO_T}no" >&6
6154: fi
1.15 paf 6155:
1.35 moko 6156: fi
6157: if test -z "$ac_cv_prog_LIPO"; then
6158: ac_ct_LIPO=$LIPO
6159: # Extract the first word of "lipo", so it can be a program name with args.
6160: set dummy lipo; ac_word=$2
6161: echo "$as_me:$LINENO: checking for $ac_word" >&5
6162: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6163: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6164: echo $ECHO_N "(cached) $ECHO_C" >&6
6165: else
6166: if test -n "$ac_ct_LIPO"; then
6167: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6168: else
6169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170: for as_dir in $PATH
6171: do
6172: IFS=$as_save_IFS
6173: test -z "$as_dir" && as_dir=.
6174: for ac_exec_ext in '' $ac_executable_extensions; do
6175: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176: ac_cv_prog_ac_ct_LIPO="lipo"
6177: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6178: break 2
1.15 paf 6179: fi
1.35 moko 6180: done
6181: done
6182:
6183: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6184: fi
6185: fi
6186: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6187: if test -n "$ac_ct_LIPO"; then
6188: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6189: echo "${ECHO_T}$ac_ct_LIPO" >&6
6190: else
6191: echo "$as_me:$LINENO: result: no" >&5
6192: echo "${ECHO_T}no" >&6
6193: fi
6194:
6195: LIPO=$ac_ct_LIPO
6196: else
6197: LIPO="$ac_cv_prog_LIPO"
6198: fi
1.15 paf 6199:
1.35 moko 6200: if test -n "$ac_tool_prefix"; then
6201: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6202: set dummy ${ac_tool_prefix}otool; ac_word=$2
6203: echo "$as_me:$LINENO: checking for $ac_word" >&5
6204: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6205: if test "${ac_cv_prog_OTOOL+set}" = set; then
6206: echo $ECHO_N "(cached) $ECHO_C" >&6
6207: else
6208: if test -n "$OTOOL"; then
6209: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6210: else
6211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212: for as_dir in $PATH
6213: do
6214: IFS=$as_save_IFS
6215: test -z "$as_dir" && as_dir=.
6216: for ac_exec_ext in '' $ac_executable_extensions; do
6217: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6219: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220: break 2
6221: fi
6222: done
6223: done
1.15 paf 6224:
1.35 moko 6225: fi
6226: fi
6227: OTOOL=$ac_cv_prog_OTOOL
6228: if test -n "$OTOOL"; then
6229: echo "$as_me:$LINENO: result: $OTOOL" >&5
6230: echo "${ECHO_T}$OTOOL" >&6
6231: else
6232: echo "$as_me:$LINENO: result: no" >&5
6233: echo "${ECHO_T}no" >&6
6234: fi
1.15 paf 6235:
1.35 moko 6236: fi
6237: if test -z "$ac_cv_prog_OTOOL"; then
6238: ac_ct_OTOOL=$OTOOL
6239: # Extract the first word of "otool", so it can be a program name with args.
6240: set dummy otool; ac_word=$2
6241: echo "$as_me:$LINENO: checking for $ac_word" >&5
6242: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6244: echo $ECHO_N "(cached) $ECHO_C" >&6
6245: else
6246: if test -n "$ac_ct_OTOOL"; then
6247: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6248: else
6249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250: for as_dir in $PATH
6251: do
6252: IFS=$as_save_IFS
6253: test -z "$as_dir" && as_dir=.
6254: for ac_exec_ext in '' $ac_executable_extensions; do
6255: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256: ac_cv_prog_ac_ct_OTOOL="otool"
6257: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258: break 2
6259: fi
6260: done
6261: done
1.15 paf 6262:
1.35 moko 6263: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6264: fi
6265: fi
6266: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6267: if test -n "$ac_ct_OTOOL"; then
6268: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6269: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6270: else
6271: echo "$as_me:$LINENO: result: no" >&5
6272: echo "${ECHO_T}no" >&6
6273: fi
1.15 paf 6274:
1.35 moko 6275: OTOOL=$ac_ct_OTOOL
6276: else
6277: OTOOL="$ac_cv_prog_OTOOL"
6278: fi
1.15 paf 6279:
1.35 moko 6280: if test -n "$ac_tool_prefix"; then
6281: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6282: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6283: echo "$as_me:$LINENO: checking for $ac_word" >&5
6284: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6285: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6286: echo $ECHO_N "(cached) $ECHO_C" >&6
6287: else
6288: if test -n "$OTOOL64"; then
6289: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6290: else
6291: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292: for as_dir in $PATH
6293: do
6294: IFS=$as_save_IFS
6295: test -z "$as_dir" && as_dir=.
6296: for ac_exec_ext in '' $ac_executable_extensions; do
6297: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6299: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300: break 2
6301: fi
6302: done
6303: done
1.15 paf 6304:
1.35 moko 6305: fi
6306: fi
6307: OTOOL64=$ac_cv_prog_OTOOL64
6308: if test -n "$OTOOL64"; then
6309: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6310: echo "${ECHO_T}$OTOOL64" >&6
6311: else
6312: echo "$as_me:$LINENO: result: no" >&5
6313: echo "${ECHO_T}no" >&6
6314: fi
1.15 paf 6315:
1.35 moko 6316: fi
6317: if test -z "$ac_cv_prog_OTOOL64"; then
6318: ac_ct_OTOOL64=$OTOOL64
6319: # Extract the first word of "otool64", so it can be a program name with args.
6320: set dummy otool64; ac_word=$2
6321: echo "$as_me:$LINENO: checking for $ac_word" >&5
6322: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6324: echo $ECHO_N "(cached) $ECHO_C" >&6
6325: else
6326: if test -n "$ac_ct_OTOOL64"; then
6327: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6328: else
6329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330: for as_dir in $PATH
6331: do
6332: IFS=$as_save_IFS
6333: test -z "$as_dir" && as_dir=.
6334: for ac_exec_ext in '' $ac_executable_extensions; do
6335: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336: ac_cv_prog_ac_ct_OTOOL64="otool64"
6337: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338: break 2
6339: fi
6340: done
6341: done
1.15 paf 6342:
1.35 moko 6343: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6344: fi
6345: fi
6346: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6347: if test -n "$ac_ct_OTOOL64"; then
6348: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6349: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6350: else
6351: echo "$as_me:$LINENO: result: no" >&5
6352: echo "${ECHO_T}no" >&6
6353: fi
1.15 paf 6354:
1.35 moko 6355: OTOOL64=$ac_ct_OTOOL64
6356: else
6357: OTOOL64="$ac_cv_prog_OTOOL64"
6358: fi
1.15 paf 6359:
6360:
6361:
6362:
6363:
6364:
6365:
6366:
6367:
6368:
6369:
6370:
6371:
6372:
6373:
6374:
6375:
6376:
6377:
6378:
6379:
6380:
6381:
6382:
6383:
6384:
6385:
1.35 moko 6386: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6387: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6388: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6389: echo $ECHO_N "(cached) $ECHO_C" >&6
6390: else
6391: lt_cv_apple_cc_single_mod=no
6392: if test -z "${LT_MULTI_MODULE}"; then
6393: # By default we will add the -single_module flag. You can override
6394: # by either setting the environment variable LT_MULTI_MODULE
6395: # non-empty at configure time, or by adding -multi_module to the
6396: # link flags.
6397: rm -rf libconftest.dylib*
6398: echo "int foo(void){return 1;}" > conftest.c
6399: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6400: -dynamiclib -Wl,-single_module conftest.c" >&5
6401: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6402: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6403: _lt_result=$?
6404: # If there is a non-empty error log, and "single_module"
6405: # appears in it, assume the flag caused a linker warning
6406: if test -s conftest.err && $GREP single_module conftest.err; then
6407: cat conftest.err >&5
6408: # Otherwise, if the output was created with a 0 exit code from
6409: # the compiler, it worked.
6410: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6411: lt_cv_apple_cc_single_mod=yes
6412: else
6413: cat conftest.err >&5
6414: fi
6415: rm -rf libconftest.dylib*
6416: rm -f conftest.*
6417: fi
6418: fi
6419: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6420: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
1.15 paf 6421:
1.35 moko 6422: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6423: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6424: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6425: echo $ECHO_N "(cached) $ECHO_C" >&6
6426: else
6427: lt_cv_ld_exported_symbols_list=no
6428: save_LDFLAGS=$LDFLAGS
6429: echo "_main" > conftest.sym
6430: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6431: cat >conftest.$ac_ext <<_ACEOF
6432: /* confdefs.h. */
6433: _ACEOF
6434: cat confdefs.h >>conftest.$ac_ext
6435: cat >>conftest.$ac_ext <<_ACEOF
6436: /* end confdefs.h. */
1.15 paf 6437:
1.35 moko 6438: int
6439: main ()
6440: {
1.15 paf 6441:
1.35 moko 6442: ;
6443: return 0;
6444: }
6445: _ACEOF
6446: rm -f conftest.$ac_objext conftest$ac_exeext
6447: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6448: (eval $ac_link) 2>conftest.er1
6449: ac_status=$?
6450: grep -v '^ *+' conftest.er1 >conftest.err
6451: rm -f conftest.er1
6452: cat conftest.err >&5
6453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454: (exit $ac_status); } &&
6455: { ac_try='test -z "$ac_c_werror_flag"
6456: || test ! -s conftest.err'
6457: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458: (eval $ac_try) 2>&5
6459: ac_status=$?
6460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461: (exit $ac_status); }; } &&
6462: { ac_try='test -s conftest$ac_exeext'
6463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464: (eval $ac_try) 2>&5
6465: ac_status=$?
6466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467: (exit $ac_status); }; }; then
6468: lt_cv_ld_exported_symbols_list=yes
6469: else
6470: echo "$as_me: failed program was:" >&5
6471: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6472:
1.35 moko 6473: lt_cv_ld_exported_symbols_list=no
6474: fi
6475: rm -f conftest.err conftest.$ac_objext \
6476: conftest$ac_exeext conftest.$ac_ext
6477: LDFLAGS="$save_LDFLAGS"
1.15 paf 6478:
1.35 moko 6479: fi
6480: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6481: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
1.15 paf 6482:
1.35 moko 6483: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6484: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
6485: if test "${lt_cv_ld_force_load+set}" = set; then
6486: echo $ECHO_N "(cached) $ECHO_C" >&6
6487: else
6488: lt_cv_ld_force_load=no
6489: cat > conftest.c << _LT_EOF
6490: int forced_loaded() { return 2;}
6491: _LT_EOF
6492: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6493: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6494: echo "$AR cru libconftest.a conftest.o" >&5
6495: $AR cru libconftest.a conftest.o 2>&5
6496: echo "$RANLIB libconftest.a" >&5
6497: $RANLIB libconftest.a 2>&5
6498: cat > conftest.c << _LT_EOF
6499: int main() { return 0;}
6500: _LT_EOF
6501: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6502: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6503: _lt_result=$?
6504: if test -s conftest.err && $GREP force_load conftest.err; then
6505: cat conftest.err >&5
6506: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6507: lt_cv_ld_force_load=yes
6508: else
6509: cat conftest.err >&5
6510: fi
6511: rm -f conftest.err libconftest.a conftest conftest.c
6512: rm -rf conftest.dSYM
1.15 paf 6513:
1.35 moko 6514: fi
6515: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6516: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
6517: case $host_os in
6518: rhapsody* | darwin1.[012])
6519: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6520: darwin1.*)
6521: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6522: darwin*) # darwin 5.x on
6523: # if running on 10.5 or later, the deployment target defaults
6524: # to the OS version, if on x86, and 10.4, the deployment
6525: # target defaults to 10.4. Don't you love it?
6526: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6527: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6528: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6529: 10.[012]*)
6530: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6531: 10.*)
6532: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6533: esac
1.15 paf 6534: ;;
1.35 moko 6535: esac
6536: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6537: _lt_dar_single_mod='$single_module'
6538: fi
6539: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6540: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6541: else
6542: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.15 paf 6543: fi
1.35 moko 6544: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6545: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.15 paf 6546: else
1.35 moko 6547: _lt_dsymutil=
1.15 paf 6548: fi
6549: ;;
1.35 moko 6550: esac
1.15 paf 6551:
1.35 moko 6552: ac_ext=c
6553: ac_cpp='$CPP $CPPFLAGS'
6554: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6558: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6559: # On Suns, sometimes $CPP names a directory.
6560: if test -n "$CPP" && test -d "$CPP"; then
6561: CPP=
6562: fi
6563: if test -z "$CPP"; then
6564: if test "${ac_cv_prog_CPP+set}" = set; then
6565: echo $ECHO_N "(cached) $ECHO_C" >&6
6566: else
6567: # Double quotes because CPP needs to be expanded
6568: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6569: do
6570: ac_preproc_ok=false
6571: for ac_c_preproc_warn_flag in '' yes
6572: do
6573: # Use a header file that comes with gcc, so configuring glibc
6574: # with a fresh cross-compiler works.
6575: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6576: # <limits.h> exists even on freestanding compilers.
6577: # On the NeXT, cc -E runs the code through the compiler's parser,
6578: # not just through cpp. "Syntax error" is here to catch this case.
6579: cat >conftest.$ac_ext <<_ACEOF
6580: /* confdefs.h. */
6581: _ACEOF
6582: cat confdefs.h >>conftest.$ac_ext
6583: cat >>conftest.$ac_ext <<_ACEOF
6584: /* end confdefs.h. */
6585: #ifdef __STDC__
6586: # include <limits.h>
6587: #else
6588: # include <assert.h>
6589: #endif
6590: Syntax error
6591: _ACEOF
6592: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594: ac_status=$?
6595: grep -v '^ *+' conftest.er1 >conftest.err
6596: rm -f conftest.er1
6597: cat conftest.err >&5
6598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599: (exit $ac_status); } >/dev/null; then
6600: if test -s conftest.err; then
6601: ac_cpp_err=$ac_c_preproc_warn_flag
6602: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603: else
6604: ac_cpp_err=
6605: fi
6606: else
6607: ac_cpp_err=yes
1.15 paf 6608: fi
1.35 moko 6609: if test -z "$ac_cpp_err"; then
6610: :
6611: else
6612: echo "$as_me: failed program was:" >&5
6613: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6614:
1.35 moko 6615: # Broken: fails on valid input.
6616: continue
6617: fi
6618: rm -f conftest.err conftest.$ac_ext
1.15 paf 6619:
1.35 moko 6620: # OK, works on sane cases. Now check whether non-existent headers
6621: # can be detected and how.
6622: cat >conftest.$ac_ext <<_ACEOF
6623: /* confdefs.h. */
6624: _ACEOF
6625: cat confdefs.h >>conftest.$ac_ext
6626: cat >>conftest.$ac_ext <<_ACEOF
6627: /* end confdefs.h. */
6628: #include <ac_nonexistent.h>
6629: _ACEOF
6630: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6631: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6632: ac_status=$?
6633: grep -v '^ *+' conftest.er1 >conftest.err
6634: rm -f conftest.er1
6635: cat conftest.err >&5
6636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637: (exit $ac_status); } >/dev/null; then
6638: if test -s conftest.err; then
6639: ac_cpp_err=$ac_c_preproc_warn_flag
6640: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6641: else
1.35 moko 6642: ac_cpp_err=
1.15 paf 6643: fi
6644: else
1.35 moko 6645: ac_cpp_err=yes
6646: fi
6647: if test -z "$ac_cpp_err"; then
6648: # Broken: success on invalid input.
6649: continue
6650: else
6651: echo "$as_me: failed program was:" >&5
6652: sed 's/^/| /' conftest.$ac_ext >&5
6653:
6654: # Passes both tests.
6655: ac_preproc_ok=:
6656: break
1.15 paf 6657: fi
1.35 moko 6658: rm -f conftest.err conftest.$ac_ext
1.15 paf 6659:
1.35 moko 6660: done
6661: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6662: rm -f conftest.err conftest.$ac_ext
6663: if $ac_preproc_ok; then
6664: break
1.15 paf 6665: fi
6666:
1.35 moko 6667: done
6668: ac_cv_prog_CPP=$CPP
1.15 paf 6669:
1.35 moko 6670: fi
6671: CPP=$ac_cv_prog_CPP
6672: else
6673: ac_cv_prog_CPP=$CPP
6674: fi
6675: echo "$as_me:$LINENO: result: $CPP" >&5
6676: echo "${ECHO_T}$CPP" >&6
6677: ac_preproc_ok=false
6678: for ac_c_preproc_warn_flag in '' yes
6679: do
6680: # Use a header file that comes with gcc, so configuring glibc
6681: # with a fresh cross-compiler works.
6682: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683: # <limits.h> exists even on freestanding compilers.
6684: # On the NeXT, cc -E runs the code through the compiler's parser,
6685: # not just through cpp. "Syntax error" is here to catch this case.
6686: cat >conftest.$ac_ext <<_ACEOF
6687: /* confdefs.h. */
6688: _ACEOF
6689: cat confdefs.h >>conftest.$ac_ext
6690: cat >>conftest.$ac_ext <<_ACEOF
6691: /* end confdefs.h. */
6692: #ifdef __STDC__
6693: # include <limits.h>
6694: #else
6695: # include <assert.h>
6696: #endif
6697: Syntax error
6698: _ACEOF
6699: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6700: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6701: ac_status=$?
6702: grep -v '^ *+' conftest.er1 >conftest.err
6703: rm -f conftest.er1
6704: cat conftest.err >&5
6705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706: (exit $ac_status); } >/dev/null; then
6707: if test -s conftest.err; then
6708: ac_cpp_err=$ac_c_preproc_warn_flag
6709: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6710: else
6711: ac_cpp_err=
6712: fi
6713: else
6714: ac_cpp_err=yes
6715: fi
6716: if test -z "$ac_cpp_err"; then
6717: :
6718: else
6719: echo "$as_me: failed program was:" >&5
6720: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6721:
1.35 moko 6722: # Broken: fails on valid input.
6723: continue
6724: fi
6725: rm -f conftest.err conftest.$ac_ext
1.15 paf 6726:
1.35 moko 6727: # OK, works on sane cases. Now check whether non-existent headers
6728: # can be detected and how.
6729: cat >conftest.$ac_ext <<_ACEOF
6730: /* confdefs.h. */
6731: _ACEOF
6732: cat confdefs.h >>conftest.$ac_ext
6733: cat >>conftest.$ac_ext <<_ACEOF
6734: /* end confdefs.h. */
6735: #include <ac_nonexistent.h>
6736: _ACEOF
6737: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6738: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6739: ac_status=$?
6740: grep -v '^ *+' conftest.er1 >conftest.err
6741: rm -f conftest.er1
6742: cat conftest.err >&5
6743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744: (exit $ac_status); } >/dev/null; then
6745: if test -s conftest.err; then
6746: ac_cpp_err=$ac_c_preproc_warn_flag
6747: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.15 paf 6748: else
1.35 moko 6749: ac_cpp_err=
1.15 paf 6750: fi
1.35 moko 6751: else
6752: ac_cpp_err=yes
6753: fi
6754: if test -z "$ac_cpp_err"; then
6755: # Broken: success on invalid input.
6756: continue
6757: else
6758: echo "$as_me: failed program was:" >&5
6759: sed 's/^/| /' conftest.$ac_ext >&5
6760:
6761: # Passes both tests.
6762: ac_preproc_ok=:
6763: break
6764: fi
6765: rm -f conftest.err conftest.$ac_ext
6766:
6767: done
6768: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6769: rm -f conftest.err conftest.$ac_ext
6770: if $ac_preproc_ok; then
6771: :
6772: else
6773: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6774: See \`config.log' for more details." >&5
6775: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6776: See \`config.log' for more details." >&2;}
6777: { (exit 1); exit 1; }; }
6778: fi
1.15 paf 6779:
1.35 moko 6780: ac_ext=c
6781: ac_cpp='$CPP $CPPFLAGS'
6782: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15 paf 6785:
6786:
1.35 moko 6787: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6788: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6789: if test "${ac_cv_header_stdc+set}" = set; then
6790: echo $ECHO_N "(cached) $ECHO_C" >&6
6791: else
6792: cat >conftest.$ac_ext <<_ACEOF
6793: /* confdefs.h. */
6794: _ACEOF
6795: cat confdefs.h >>conftest.$ac_ext
6796: cat >>conftest.$ac_ext <<_ACEOF
6797: /* end confdefs.h. */
6798: #include <stdlib.h>
6799: #include <stdarg.h>
6800: #include <string.h>
6801: #include <float.h>
1.15 paf 6802:
1.35 moko 6803: int
6804: main ()
6805: {
1.15 paf 6806:
1.35 moko 6807: ;
6808: return 0;
6809: }
6810: _ACEOF
6811: rm -f conftest.$ac_objext
6812: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813: (eval $ac_compile) 2>conftest.er1
6814: ac_status=$?
6815: grep -v '^ *+' conftest.er1 >conftest.err
6816: rm -f conftest.er1
6817: cat conftest.err >&5
6818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819: (exit $ac_status); } &&
6820: { ac_try='test -z "$ac_c_werror_flag"
6821: || test ! -s conftest.err'
6822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823: (eval $ac_try) 2>&5
6824: ac_status=$?
6825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826: (exit $ac_status); }; } &&
6827: { ac_try='test -s conftest.$ac_objext'
6828: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829: (eval $ac_try) 2>&5
6830: ac_status=$?
6831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832: (exit $ac_status); }; }; then
6833: ac_cv_header_stdc=yes
6834: else
6835: echo "$as_me: failed program was:" >&5
6836: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6837:
1.35 moko 6838: ac_cv_header_stdc=no
6839: fi
6840: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 6841:
1.35 moko 6842: if test $ac_cv_header_stdc = yes; then
6843: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6844: cat >conftest.$ac_ext <<_ACEOF
6845: /* confdefs.h. */
6846: _ACEOF
6847: cat confdefs.h >>conftest.$ac_ext
6848: cat >>conftest.$ac_ext <<_ACEOF
6849: /* end confdefs.h. */
6850: #include <string.h>
6851:
6852: _ACEOF
6853: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854: $EGREP "memchr" >/dev/null 2>&1; then
6855: :
6856: else
6857: ac_cv_header_stdc=no
6858: fi
6859: rm -f conftest*
6860:
6861: fi
6862:
6863: if test $ac_cv_header_stdc = yes; then
6864: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6865: cat >conftest.$ac_ext <<_ACEOF
6866: /* confdefs.h. */
6867: _ACEOF
6868: cat confdefs.h >>conftest.$ac_ext
6869: cat >>conftest.$ac_ext <<_ACEOF
6870: /* end confdefs.h. */
6871: #include <stdlib.h>
6872:
6873: _ACEOF
6874: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875: $EGREP "free" >/dev/null 2>&1; then
6876: :
6877: else
6878: ac_cv_header_stdc=no
6879: fi
6880: rm -f conftest*
6881:
6882: fi
1.15 paf 6883:
1.35 moko 6884: if test $ac_cv_header_stdc = yes; then
6885: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6886: if test "$cross_compiling" = yes; then
6887: :
6888: else
6889: cat >conftest.$ac_ext <<_ACEOF
6890: /* confdefs.h. */
6891: _ACEOF
6892: cat confdefs.h >>conftest.$ac_ext
6893: cat >>conftest.$ac_ext <<_ACEOF
6894: /* end confdefs.h. */
6895: #include <ctype.h>
6896: #if ((' ' & 0x0FF) == 0x020)
6897: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6898: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6899: #else
6900: # define ISLOWER(c) \
6901: (('a' <= (c) && (c) <= 'i') \
6902: || ('j' <= (c) && (c) <= 'r') \
6903: || ('s' <= (c) && (c) <= 'z'))
6904: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6905: #endif
1.15 paf 6906:
1.35 moko 6907: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6908: int
6909: main ()
6910: {
6911: int i;
6912: for (i = 0; i < 256; i++)
6913: if (XOR (islower (i), ISLOWER (i))
6914: || toupper (i) != TOUPPER (i))
6915: exit(2);
6916: exit (0);
6917: }
6918: _ACEOF
6919: rm -f conftest$ac_exeext
6920: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921: (eval $ac_link) 2>&5
6922: ac_status=$?
6923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6925: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926: (eval $ac_try) 2>&5
6927: ac_status=$?
6928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929: (exit $ac_status); }; }; then
6930: :
6931: else
6932: echo "$as_me: program exited with status $ac_status" >&5
6933: echo "$as_me: failed program was:" >&5
6934: sed 's/^/| /' conftest.$ac_ext >&5
1.15 paf 6935:
1.35 moko 6936: ( exit $ac_status )
6937: ac_cv_header_stdc=no
6938: fi
6939: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940: fi
6941: fi
6942: fi
6943: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6944: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6945: if test $ac_cv_header_stdc = yes; then
1.15 paf 6946:
1.35 moko 6947: cat >>confdefs.h <<\_ACEOF
6948: #define STDC_HEADERS 1
6949: _ACEOF
1.15 paf 6950:
1.35 moko 6951: fi
1.15 paf 6952:
1.35 moko 6953: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.15 paf 6954:
6955:
6956:
6957:
6958:
6959:
6960:
6961:
6962:
1.35 moko 6963: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6964: inttypes.h stdint.h unistd.h
6965: do
6966: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967: echo "$as_me:$LINENO: checking for $ac_header" >&5
6968: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6969: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6970: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 6971: else
6972: cat >conftest.$ac_ext <<_ACEOF
6973: /* confdefs.h. */
6974: _ACEOF
6975: cat confdefs.h >>conftest.$ac_ext
6976: cat >>conftest.$ac_ext <<_ACEOF
6977: /* end confdefs.h. */
1.35 moko 6978: $ac_includes_default
1.25 paf 6979:
1.35 moko 6980: #include <$ac_header>
1.15 paf 6981: _ACEOF
1.35 moko 6982: rm -f conftest.$ac_objext
6983: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984: (eval $ac_compile) 2>conftest.er1
1.15 paf 6985: ac_status=$?
1.25 paf 6986: grep -v '^ *+' conftest.er1 >conftest.err
6987: rm -f conftest.er1
6988: cat conftest.err >&5
1.15 paf 6989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990: (exit $ac_status); } &&
1.25 paf 6991: { ac_try='test -z "$ac_c_werror_flag"
6992: || test ! -s conftest.err'
6993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994: (eval $ac_try) 2>&5
6995: ac_status=$?
6996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997: (exit $ac_status); }; } &&
1.35 moko 6998: { ac_try='test -s conftest.$ac_objext'
1.15 paf 6999: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000: (eval $ac_try) 2>&5
7001: ac_status=$?
7002: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003: (exit $ac_status); }; }; then
1.35 moko 7004: eval "$as_ac_Header=yes"
1.15 paf 7005: else
7006: echo "$as_me: failed program was:" >&5
7007: sed 's/^/| /' conftest.$ac_ext >&5
7008:
1.35 moko 7009: eval "$as_ac_Header=no"
7010: fi
7011: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7012: fi
1.35 moko 7013: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7015: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7016: cat >>confdefs.h <<_ACEOF
7017: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7018: _ACEOF
7019:
1.15 paf 7020: fi
1.35 moko 7021:
7022: done
7023:
7024:
7025:
7026: for ac_header in dlfcn.h
7027: do
7028: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7029: echo "$as_me:$LINENO: checking for $ac_header" >&5
7030: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.15 paf 7032: echo $ECHO_N "(cached) $ECHO_C" >&6
7033: else
1.35 moko 7034: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 7035: /* confdefs.h. */
7036: _ACEOF
7037: cat confdefs.h >>conftest.$ac_ext
7038: cat >>conftest.$ac_ext <<_ACEOF
7039: /* end confdefs.h. */
1.35 moko 7040: $ac_includes_default
1.15 paf 7041:
1.35 moko 7042: #include <$ac_header>
1.15 paf 7043: _ACEOF
1.35 moko 7044: rm -f conftest.$ac_objext
7045: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046: (eval $ac_compile) 2>conftest.er1
1.15 paf 7047: ac_status=$?
1.25 paf 7048: grep -v '^ *+' conftest.er1 >conftest.err
7049: rm -f conftest.er1
7050: cat conftest.err >&5
1.15 paf 7051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052: (exit $ac_status); } &&
1.25 paf 7053: { ac_try='test -z "$ac_c_werror_flag"
7054: || test ! -s conftest.err'
7055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056: (eval $ac_try) 2>&5
7057: ac_status=$?
7058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059: (exit $ac_status); }; } &&
1.35 moko 7060: { ac_try='test -s conftest.$ac_objext'
1.15 paf 7061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062: (eval $ac_try) 2>&5
7063: ac_status=$?
7064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065: (exit $ac_status); }; }; then
1.35 moko 7066: eval "$as_ac_Header=yes"
1.15 paf 7067: else
7068: echo "$as_me: failed program was:" >&5
7069: sed 's/^/| /' conftest.$ac_ext >&5
7070:
1.35 moko 7071: eval "$as_ac_Header=no"
1.15 paf 7072: fi
1.35 moko 7073: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 paf 7074: fi
1.35 moko 7075: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7078: cat >>confdefs.h <<_ACEOF
7079: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.15 paf 7080: _ACEOF
1.25 paf 7081:
1.35 moko 7082: fi
7083:
7084: done
1.25 paf 7085:
7086:
7087:
1.35 moko 7088:
7089: func_stripname_cnf ()
1.15 paf 7090: {
1.35 moko 7091: case ${2} in
7092: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7093: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7094: esac
7095: } # func_stripname_cnf
7096:
7097:
7098:
7099:
7100:
7101: # Set options
7102: enable_dlopen=yes
1.36 moko 7103: enable_win32_dll=yes
1.35 moko 7104:
1.36 moko 7105: case $host in
7106: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7107: if test -n "$ac_tool_prefix"; then
7108: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7109: set dummy ${ac_tool_prefix}as; ac_word=$2
7110: echo "$as_me:$LINENO: checking for $ac_word" >&5
7111: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7112: if test "${ac_cv_prog_AS+set}" = set; then
7113: echo $ECHO_N "(cached) $ECHO_C" >&6
7114: else
7115: if test -n "$AS"; then
7116: ac_cv_prog_AS="$AS" # Let the user override the test.
7117: else
7118: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119: for as_dir in $PATH
7120: do
7121: IFS=$as_save_IFS
7122: test -z "$as_dir" && as_dir=.
7123: for ac_exec_ext in '' $ac_executable_extensions; do
7124: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125: ac_cv_prog_AS="${ac_tool_prefix}as"
7126: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7127: break 2
7128: fi
7129: done
7130: done
1.35 moko 7131:
1.36 moko 7132: fi
7133: fi
7134: AS=$ac_cv_prog_AS
7135: if test -n "$AS"; then
7136: echo "$as_me:$LINENO: result: $AS" >&5
7137: echo "${ECHO_T}$AS" >&6
7138: else
7139: echo "$as_me:$LINENO: result: no" >&5
7140: echo "${ECHO_T}no" >&6
7141: fi
1.35 moko 7142:
1.36 moko 7143: fi
7144: if test -z "$ac_cv_prog_AS"; then
7145: ac_ct_AS=$AS
7146: # Extract the first word of "as", so it can be a program name with args.
7147: set dummy as; ac_word=$2
7148: echo "$as_me:$LINENO: checking for $ac_word" >&5
7149: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7150: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7151: echo $ECHO_N "(cached) $ECHO_C" >&6
7152: else
7153: if test -n "$ac_ct_AS"; then
7154: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7155: else
7156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157: for as_dir in $PATH
7158: do
7159: IFS=$as_save_IFS
7160: test -z "$as_dir" && as_dir=.
7161: for ac_exec_ext in '' $ac_executable_extensions; do
7162: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163: ac_cv_prog_ac_ct_AS="as"
7164: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165: break 2
7166: fi
7167: done
7168: done
1.35 moko 7169:
1.36 moko 7170: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7171: fi
7172: fi
7173: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7174: if test -n "$ac_ct_AS"; then
7175: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7176: echo "${ECHO_T}$ac_ct_AS" >&6
7177: else
7178: echo "$as_me:$LINENO: result: no" >&5
7179: echo "${ECHO_T}no" >&6
7180: fi
1.35 moko 7181:
1.36 moko 7182: AS=$ac_ct_AS
7183: else
7184: AS="$ac_cv_prog_AS"
7185: fi
1.15 paf 7186:
1.36 moko 7187: if test -n "$ac_tool_prefix"; then
7188: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7189: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7190: echo "$as_me:$LINENO: checking for $ac_word" >&5
7191: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7193: echo $ECHO_N "(cached) $ECHO_C" >&6
7194: else
7195: if test -n "$DLLTOOL"; then
7196: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1.15 paf 7197: else
1.36 moko 7198: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199: for as_dir in $PATH
7200: do
7201: IFS=$as_save_IFS
7202: test -z "$as_dir" && as_dir=.
7203: for ac_exec_ext in '' $ac_executable_extensions; do
7204: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7206: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207: break 2
7208: fi
7209: done
7210: done
7211:
7212: fi
7213: fi
7214: DLLTOOL=$ac_cv_prog_DLLTOOL
7215: if test -n "$DLLTOOL"; then
7216: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7217: echo "${ECHO_T}$DLLTOOL" >&6
7218: else
7219: echo "$as_me:$LINENO: result: no" >&5
7220: echo "${ECHO_T}no" >&6
7221: fi
7222:
7223: fi
7224: if test -z "$ac_cv_prog_DLLTOOL"; then
7225: ac_ct_DLLTOOL=$DLLTOOL
7226: # Extract the first word of "dlltool", so it can be a program name with args.
7227: set dummy dlltool; ac_word=$2
7228: echo "$as_me:$LINENO: checking for $ac_word" >&5
7229: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7231: echo $ECHO_N "(cached) $ECHO_C" >&6
7232: else
7233: if test -n "$ac_ct_DLLTOOL"; then
7234: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7235: else
7236: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237: for as_dir in $PATH
7238: do
7239: IFS=$as_save_IFS
7240: test -z "$as_dir" && as_dir=.
7241: for ac_exec_ext in '' $ac_executable_extensions; do
7242: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7244: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245: break 2
7246: fi
7247: done
7248: done
7249:
7250: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7251: fi
7252: fi
7253: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7254: if test -n "$ac_ct_DLLTOOL"; then
7255: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7256: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7257: else
7258: echo "$as_me:$LINENO: result: no" >&5
7259: echo "${ECHO_T}no" >&6
7260: fi
7261:
7262: DLLTOOL=$ac_ct_DLLTOOL
7263: else
7264: DLLTOOL="$ac_cv_prog_DLLTOOL"
7265: fi
7266:
7267: if test -n "$ac_tool_prefix"; then
7268: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7269: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7270: echo "$as_me:$LINENO: checking for $ac_word" >&5
7271: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7273: echo $ECHO_N "(cached) $ECHO_C" >&6
7274: else
7275: if test -n "$OBJDUMP"; then
7276: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7277: else
7278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279: for as_dir in $PATH
7280: do
7281: IFS=$as_save_IFS
7282: test -z "$as_dir" && as_dir=.
7283: for ac_exec_ext in '' $ac_executable_extensions; do
7284: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7286: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287: break 2
7288: fi
7289: done
7290: done
7291:
7292: fi
7293: fi
7294: OBJDUMP=$ac_cv_prog_OBJDUMP
7295: if test -n "$OBJDUMP"; then
7296: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7297: echo "${ECHO_T}$OBJDUMP" >&6
7298: else
7299: echo "$as_me:$LINENO: result: no" >&5
7300: echo "${ECHO_T}no" >&6
7301: fi
7302:
7303: fi
7304: if test -z "$ac_cv_prog_OBJDUMP"; then
7305: ac_ct_OBJDUMP=$OBJDUMP
7306: # Extract the first word of "objdump", so it can be a program name with args.
7307: set dummy objdump; ac_word=$2
7308: echo "$as_me:$LINENO: checking for $ac_word" >&5
7309: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7310: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7311: echo $ECHO_N "(cached) $ECHO_C" >&6
7312: else
7313: if test -n "$ac_ct_OBJDUMP"; then
7314: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7315: else
7316: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317: for as_dir in $PATH
7318: do
7319: IFS=$as_save_IFS
7320: test -z "$as_dir" && as_dir=.
7321: for ac_exec_ext in '' $ac_executable_extensions; do
7322: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7324: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7325: break 2
7326: fi
7327: done
7328: done
7329:
7330: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7331: fi
7332: fi
7333: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7334: if test -n "$ac_ct_OBJDUMP"; then
7335: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7336: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7337: else
7338: echo "$as_me:$LINENO: result: no" >&5
7339: echo "${ECHO_T}no" >&6
7340: fi
7341:
7342: OBJDUMP=$ac_ct_OBJDUMP
7343: else
7344: OBJDUMP="$ac_cv_prog_OBJDUMP"
7345: fi
7346:
7347: ;;
7348: esac
7349:
7350: test -z "$AS" && AS=as
7351:
7352:
7353:
7354:
7355:
7356: test -z "$DLLTOOL" && DLLTOOL=dlltool
7357:
7358:
7359:
7360:
7361:
7362: test -z "$OBJDUMP" && OBJDUMP=objdump
7363:
7364:
7365:
7366:
7367:
7368:
7369:
7370:
7371:
7372: # Check whether --enable-shared or --disable-shared was given.
7373: if test "${enable_shared+set}" = set; then
7374: enableval="$enable_shared"
7375: p=${PACKAGE-default}
7376: case $enableval in
7377: yes) enable_shared=yes ;;
7378: no) enable_shared=no ;;
7379: *)
7380: enable_shared=no
7381: # Look at the argument we got. We use all the common list separators.
7382: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383: for pkg in $enableval; do
7384: IFS="$lt_save_ifs"
7385: if test "X$pkg" = "X$p"; then
7386: enable_shared=yes
7387: fi
7388: done
7389: IFS="$lt_save_ifs"
7390: ;;
7391: esac
7392: else
7393: enable_shared=yes
7394: fi;
1.35 moko 7395:
7396:
7397:
7398:
7399:
7400:
7401:
1.15 paf 7402:
1.35 moko 7403: # Check whether --enable-static or --disable-static was given.
7404: if test "${enable_static+set}" = set; then
7405: enableval="$enable_static"
7406: p=${PACKAGE-default}
7407: case $enableval in
7408: yes) enable_static=yes ;;
7409: no) enable_static=no ;;
7410: *)
7411: enable_static=no
7412: # Look at the argument we got. We use all the common list separators.
7413: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414: for pkg in $enableval; do
7415: IFS="$lt_save_ifs"
7416: if test "X$pkg" = "X$p"; then
7417: enable_static=yes
7418: fi
7419: done
7420: IFS="$lt_save_ifs"
7421: ;;
7422: esac
1.15 paf 7423: else
1.35 moko 7424: enable_static=yes
7425: fi;
7426:
7427:
7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435: # Check whether --with-pic or --without-pic was given.
7436: if test "${with_pic+set}" = set; then
7437: withval="$with_pic"
7438: lt_p=${PACKAGE-default}
7439: case $withval in
7440: yes|no) pic_mode=$withval ;;
7441: *)
7442: pic_mode=default
7443: # Look at the argument we got. We use all the common list separators.
7444: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445: for lt_pkg in $withval; do
7446: IFS="$lt_save_ifs"
7447: if test "X$lt_pkg" = "X$lt_p"; then
7448: pic_mode=yes
7449: fi
7450: done
7451: IFS="$lt_save_ifs"
7452: ;;
7453: esac
1.15 paf 7454: else
1.35 moko 7455: pic_mode=default
7456: fi;
7457:
7458: test -z "$pic_mode" && pic_mode=default
7459:
7460:
7461:
7462:
7463:
7464:
1.15 paf 7465:
1.35 moko 7466: # Check whether --enable-fast-install or --disable-fast-install was given.
7467: if test "${enable_fast_install+set}" = set; then
7468: enableval="$enable_fast_install"
7469: p=${PACKAGE-default}
7470: case $enableval in
7471: yes) enable_fast_install=yes ;;
7472: no) enable_fast_install=no ;;
7473: *)
7474: enable_fast_install=no
7475: # Look at the argument we got. We use all the common list separators.
7476: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7477: for pkg in $enableval; do
7478: IFS="$lt_save_ifs"
7479: if test "X$pkg" = "X$p"; then
7480: enable_fast_install=yes
7481: fi
7482: done
7483: IFS="$lt_save_ifs"
7484: ;;
7485: esac
1.15 paf 7486: else
1.35 moko 7487: enable_fast_install=yes
7488: fi;
7489:
7490:
7491:
7492:
7493:
7494:
7495:
7496:
7497:
7498:
7499: # This can be used to rebuild libtool when needed
7500: LIBTOOL_DEPS="$ltmain"
7501:
7502: # Always use our own libtool.
7503: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511:
7512:
7513:
7514:
7515:
7516:
7517:
7518:
7519:
7520:
7521:
7522:
7523:
7524:
7525:
7526:
7527:
7528:
7529:
7530:
7531:
7532:
7533:
7534: test -z "$LN_S" && LN_S="ln -s"
7535:
7536:
7537:
7538:
7539:
7540:
7541:
7542:
7543:
7544:
7545:
7546:
7547:
1.15 paf 7548:
1.35 moko 7549: if test -n "${ZSH_VERSION+set}" ; then
7550: setopt NO_GLOB_SUBST
1.15 paf 7551: fi
1.35 moko 7552:
7553: echo "$as_me:$LINENO: checking for objdir" >&5
7554: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7555: if test "${lt_cv_objdir+set}" = set; then
7556: echo $ECHO_N "(cached) $ECHO_C" >&6
7557: else
7558: rm -f .libs 2>/dev/null
7559: mkdir .libs 2>/dev/null
7560: if test -d .libs; then
7561: lt_cv_objdir=.libs
7562: else
7563: # MS-DOS does not allow filenames that begin with a dot.
7564: lt_cv_objdir=_libs
1.15 paf 7565: fi
1.35 moko 7566: rmdir .libs 2>/dev/null
7567: fi
7568: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7569: echo "${ECHO_T}$lt_cv_objdir" >&6
7570: objdir=$lt_cv_objdir
1.15 paf 7571:
7572:
7573:
7574:
7575:
1.35 moko 7576: cat >>confdefs.h <<_ACEOF
7577: #define LT_OBJDIR "$lt_cv_objdir/"
7578: _ACEOF
1.15 paf 7579:
7580:
7581:
7582:
1.35 moko 7583: case $host_os in
7584: aix3*)
7585: # AIX sometimes has problems with the GCC collect2 program. For some
7586: # reason, if we set the COLLECT_NAMES environment variable, the problems
7587: # vanish in a puff of smoke.
7588: if test "X${COLLECT_NAMES+set}" != Xset; then
7589: COLLECT_NAMES=
7590: export COLLECT_NAMES
7591: fi
7592: ;;
7593: esac
1.15 paf 7594:
1.35 moko 7595: # Global variables:
7596: ofile=libtool
7597: can_build_shared=yes
1.15 paf 7598:
1.35 moko 7599: # All known linkers require a `.a' archive for static linking (except MSVC,
7600: # which needs '.lib').
7601: libext=a
1.15 paf 7602:
1.35 moko 7603: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.15 paf 7604:
1.35 moko 7605: old_CC="$CC"
7606: old_CFLAGS="$CFLAGS"
1.15 paf 7607:
1.35 moko 7608: # Set sane defaults for various variables
7609: test -z "$CC" && CC=cc
7610: test -z "$LTCC" && LTCC=$CC
7611: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7612: test -z "$LD" && LD=ld
7613: test -z "$ac_objext" && ac_objext=o
1.15 paf 7614:
1.35 moko 7615: for cc_temp in $compiler""; do
7616: case $cc_temp in
7617: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7618: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7619: \-*) ;;
7620: *) break;;
1.15 paf 7621: esac
1.35 moko 7622: done
7623: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.15 paf 7624:
7625:
1.35 moko 7626: # Only perform the check for file, if the check method requires it
7627: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7628: case $deplibs_check_method in
7629: file_magic*)
7630: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7631: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7632: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7633: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7634: echo $ECHO_N "(cached) $ECHO_C" >&6
7635: else
7636: case $MAGIC_CMD in
7637: [\\/*] | ?:[\\/]*)
7638: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7639: ;;
7640: *)
7641: lt_save_MAGIC_CMD="$MAGIC_CMD"
7642: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7643: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7644: for ac_dir in $ac_dummy; do
7645: IFS="$lt_save_ifs"
7646: test -z "$ac_dir" && ac_dir=.
7647: if test -f $ac_dir/${ac_tool_prefix}file; then
7648: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7649: if test -n "$file_magic_test_file"; then
7650: case $deplibs_check_method in
7651: "file_magic "*)
7652: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7653: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7654: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7655: $EGREP "$file_magic_regex" > /dev/null; then
7656: :
7657: else
7658: cat <<_LT_EOF 1>&2
1.15 paf 7659:
1.35 moko 7660: *** Warning: the command libtool uses to detect shared libraries,
7661: *** $file_magic_cmd, produces output that libtool cannot recognize.
7662: *** The result is that libtool may fail to recognize shared libraries
7663: *** as such. This will affect the creation of libtool libraries that
7664: *** depend on shared libraries, but programs linked with such libtool
7665: *** libraries will work regardless of this problem. Nevertheless, you
7666: *** may want to report the problem to your system manager and/or to
7667: *** bug-libtool@gnu.org
1.15 paf 7668:
1.35 moko 7669: _LT_EOF
7670: fi ;;
7671: esac
7672: fi
7673: break
7674: fi
7675: done
7676: IFS="$lt_save_ifs"
7677: MAGIC_CMD="$lt_save_MAGIC_CMD"
7678: ;;
7679: esac
7680: fi
1.15 paf 7681:
1.35 moko 7682: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683: if test -n "$MAGIC_CMD"; then
7684: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7685: echo "${ECHO_T}$MAGIC_CMD" >&6
1.15 paf 7686: else
1.35 moko 7687: echo "$as_me:$LINENO: result: no" >&5
7688: echo "${ECHO_T}no" >&6
7689: fi
7690:
1.15 paf 7691:
7692:
7693:
7694:
1.35 moko 7695: if test -z "$lt_cv_path_MAGIC_CMD"; then
7696: if test -n "$ac_tool_prefix"; then
7697: echo "$as_me:$LINENO: checking for file" >&5
7698: echo $ECHO_N "checking for file... $ECHO_C" >&6
7699: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7700: echo $ECHO_N "(cached) $ECHO_C" >&6
7701: else
7702: case $MAGIC_CMD in
7703: [\\/*] | ?:[\\/]*)
7704: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705: ;;
7706: *)
7707: lt_save_MAGIC_CMD="$MAGIC_CMD"
7708: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710: for ac_dir in $ac_dummy; do
7711: IFS="$lt_save_ifs"
7712: test -z "$ac_dir" && ac_dir=.
7713: if test -f $ac_dir/file; then
7714: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7715: if test -n "$file_magic_test_file"; then
7716: case $deplibs_check_method in
7717: "file_magic "*)
7718: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721: $EGREP "$file_magic_regex" > /dev/null; then
7722: :
7723: else
7724: cat <<_LT_EOF 1>&2
7725:
7726: *** Warning: the command libtool uses to detect shared libraries,
7727: *** $file_magic_cmd, produces output that libtool cannot recognize.
7728: *** The result is that libtool may fail to recognize shared libraries
7729: *** as such. This will affect the creation of libtool libraries that
7730: *** depend on shared libraries, but programs linked with such libtool
7731: *** libraries will work regardless of this problem. Nevertheless, you
7732: *** may want to report the problem to your system manager and/or to
7733: *** bug-libtool@gnu.org
1.15 paf 7734:
1.35 moko 7735: _LT_EOF
7736: fi ;;
7737: esac
7738: fi
7739: break
7740: fi
7741: done
7742: IFS="$lt_save_ifs"
7743: MAGIC_CMD="$lt_save_MAGIC_CMD"
7744: ;;
7745: esac
7746: fi
1.15 paf 7747:
1.35 moko 7748: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749: if test -n "$MAGIC_CMD"; then
7750: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7751: echo "${ECHO_T}$MAGIC_CMD" >&6
7752: else
7753: echo "$as_me:$LINENO: result: no" >&5
7754: echo "${ECHO_T}no" >&6
7755: fi
1.15 paf 7756:
7757:
1.35 moko 7758: else
7759: MAGIC_CMD=:
1.15 paf 7760: fi
7761: fi
1.35 moko 7762:
7763: fi
7764: ;;
7765: esac
7766:
7767: # Use C for the default configuration in the libtool script
7768:
7769: lt_save_CC="$CC"
7770: ac_ext=c
7771: ac_cpp='$CPP $CPPFLAGS'
7772: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775:
7776:
7777: # Source file extension for C test sources.
7778: ac_ext=c
7779:
7780: # Object file extension for compiled C test sources.
7781: objext=o
7782: objext=$objext
7783:
7784: # Code to be used in simple compile tests
7785: lt_simple_compile_test_code="int some_variable = 0;"
7786:
7787: # Code to be used in simple link tests
7788: lt_simple_link_test_code='int main(){return(0);}'
1.15 paf 7789:
7790:
7791:
7792:
7793:
7794:
7795:
1.35 moko 7796: # If no C compiler was specified, use CC.
7797: LTCC=${LTCC-"$CC"}
1.15 paf 7798:
1.35 moko 7799: # If no C compiler flags were specified, use CFLAGS.
7800: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.15 paf 7801:
1.35 moko 7802: # Allow CC to be a program name with arguments.
7803: compiler=$CC
1.15 paf 7804:
1.35 moko 7805: # Save the default compiler, since it gets overwritten when the other
7806: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7807: compiler_DEFAULT=$CC
1.15 paf 7808:
1.35 moko 7809: # save warnings/boilerplate of simple test code
7810: ac_outfile=conftest.$ac_objext
7811: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7812: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7813: _lt_compiler_boilerplate=`cat conftest.err`
7814: $RM conftest*
1.15 paf 7815:
1.35 moko 7816: ac_outfile=conftest.$ac_objext
7817: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7818: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819: _lt_linker_boilerplate=`cat conftest.err`
7820: $RM -r conftest*
1.15 paf 7821:
7822:
1.36 moko 7823: ## CAVEAT EMPTOR:
7824: ## There is no encapsulation within the following macros, do not change
7825: ## the running order or otherwise move them around unless you know exactly
7826: ## what you are doing...
1.35 moko 7827: if test -n "$compiler"; then
1.15 paf 7828:
1.35 moko 7829: lt_prog_compiler_no_builtin_flag=
1.15 paf 7830:
1.35 moko 7831: if test "$GCC" = yes; then
7832: case $cc_basename in
7833: nvcc*)
7834: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7835: *)
7836: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.15 paf 7837: esac
7838:
1.35 moko 7839: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7840: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7841: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.15 paf 7842: echo $ECHO_N "(cached) $ECHO_C" >&6
7843: else
1.35 moko 7844: lt_cv_prog_compiler_rtti_exceptions=no
7845: ac_outfile=conftest.$ac_objext
7846: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7847: lt_compiler_flag="-fno-rtti -fno-exceptions"
7848: # Insert the option either (1) after the last *FLAGS variable, or
7849: # (2) before a word containing "conftest.", or (3) at the end.
7850: # Note that $ac_compile itself does not contain backslashes and begins
7851: # with a dollar sign (not a hyphen), so the echo should work correctly.
7852: # The option is referenced via a variable to avoid confusing sed.
7853: lt_compile=`echo "$ac_compile" | $SED \
7854: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856: -e 's:$: $lt_compiler_flag:'`
7857: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7858: (eval "$lt_compile" 2>conftest.err)
7859: ac_status=$?
7860: cat conftest.err >&5
7861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862: if (exit $ac_status) && test -s "$ac_outfile"; then
7863: # The compiler can only warn and ignore the option if not recognized
7864: # So say no if there are warnings other than the usual output.
7865: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7866: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7867: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7868: lt_cv_prog_compiler_rtti_exceptions=yes
7869: fi
7870: fi
7871: $RM conftest*
1.15 paf 7872:
7873: fi
1.35 moko 7874: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7875: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.15 paf 7876:
1.35 moko 7877: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7878: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7879: else
7880: :
1.15 paf 7881: fi
7882:
1.35 moko 7883: fi
1.15 paf 7884:
7885:
7886:
7887:
7888:
7889:
1.35 moko 7890: lt_prog_compiler_wl=
7891: lt_prog_compiler_pic=
7892: lt_prog_compiler_static=
1.15 paf 7893:
7894:
1.35 moko 7895: if test "$GCC" = yes; then
7896: lt_prog_compiler_wl='-Wl,'
7897: lt_prog_compiler_static='-static'
1.15 paf 7898:
1.35 moko 7899: case $host_os in
7900: aix*)
7901: # All AIX code is PIC.
7902: if test "$host_cpu" = ia64; then
7903: # AIX 5 now supports IA64 processor
7904: lt_prog_compiler_static='-Bstatic'
7905: fi
7906: ;;
1.15 paf 7907:
1.35 moko 7908: amigaos*)
7909: case $host_cpu in
7910: powerpc)
7911: # see comment about AmigaOS4 .so support
7912: lt_prog_compiler_pic='-fPIC'
7913: ;;
7914: m68k)
7915: # FIXME: we need at least 68020 code to build shared libraries, but
7916: # adding the `-m68020' flag to GCC prevents building anything better,
7917: # like `-m68040'.
7918: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7919: ;;
7920: esac
7921: ;;
1.15 paf 7922:
1.35 moko 7923: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7924: # PIC is the default for these OSes.
7925: ;;
1.15 paf 7926:
1.35 moko 7927: mingw* | cygwin* | pw32* | os2* | cegcc*)
7928: # This hack is so that the source file can tell whether it is being
7929: # built for inclusion in a dll (and should export symbols for example).
7930: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7931: # (--disable-auto-import) libraries
7932: lt_prog_compiler_pic='-DDLL_EXPORT'
7933: ;;
1.15 paf 7934:
1.35 moko 7935: darwin* | rhapsody*)
7936: # PIC is the default on this platform
7937: # Common symbols not allowed in MH_DYLIB files
7938: lt_prog_compiler_pic='-fno-common'
7939: ;;
1.15 paf 7940:
1.35 moko 7941: haiku*)
7942: # PIC is the default for Haiku.
7943: # The "-static" flag exists, but is broken.
7944: lt_prog_compiler_static=
7945: ;;
1.15 paf 7946:
1.35 moko 7947: hpux*)
7948: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7949: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7950: # sets the default TLS model and affects inlining.
7951: case $host_cpu in
7952: hppa*64*)
7953: # +Z the default
7954: ;;
7955: *)
7956: lt_prog_compiler_pic='-fPIC'
7957: ;;
7958: esac
7959: ;;
1.15 paf 7960:
1.35 moko 7961: interix[3-9]*)
7962: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7963: # Instead, we relocate shared libraries at runtime.
7964: ;;
1.15 paf 7965:
1.35 moko 7966: msdosdjgpp*)
7967: # Just because we use GCC doesn't mean we suddenly get shared libraries
7968: # on systems that don't support them.
7969: lt_prog_compiler_can_build_shared=no
7970: enable_shared=no
7971: ;;
1.15 paf 7972:
1.35 moko 7973: *nto* | *qnx*)
7974: # QNX uses GNU C++, but need to define -shared option too, otherwise
7975: # it will coredump.
7976: lt_prog_compiler_pic='-fPIC -shared'
7977: ;;
1.15 paf 7978:
1.35 moko 7979: sysv4*MP*)
7980: if test -d /usr/nec; then
7981: lt_prog_compiler_pic=-Kconform_pic
7982: fi
7983: ;;
1.15 paf 7984:
1.35 moko 7985: *)
7986: lt_prog_compiler_pic='-fPIC'
7987: ;;
7988: esac
1.15 paf 7989:
1.35 moko 7990: case $cc_basename in
7991: nvcc*) # Cuda Compiler Driver 2.2
7992: lt_prog_compiler_wl='-Xlinker '
7993: if test -n "$lt_prog_compiler_pic"; then
7994: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7995: fi
7996: ;;
7997: esac
7998: else
7999: # PORTME Check for flag to pass linker flags through the system compiler.
8000: case $host_os in
8001: aix*)
8002: lt_prog_compiler_wl='-Wl,'
8003: if test "$host_cpu" = ia64; then
8004: # AIX 5 now supports IA64 processor
8005: lt_prog_compiler_static='-Bstatic'
8006: else
8007: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8008: fi
8009: ;;
1.15 paf 8010:
1.35 moko 8011: mingw* | cygwin* | pw32* | os2* | cegcc*)
8012: # This hack is so that the source file can tell whether it is being
8013: # built for inclusion in a dll (and should export symbols for example).
8014: lt_prog_compiler_pic='-DDLL_EXPORT'
8015: ;;
1.15 paf 8016:
1.35 moko 8017: hpux9* | hpux10* | hpux11*)
8018: lt_prog_compiler_wl='-Wl,'
8019: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8020: # not for PA HP-UX.
8021: case $host_cpu in
8022: hppa*64*|ia64*)
8023: # +Z the default
8024: ;;
8025: *)
8026: lt_prog_compiler_pic='+Z'
8027: ;;
8028: esac
8029: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8030: lt_prog_compiler_static='${wl}-a ${wl}archive'
8031: ;;
1.15 paf 8032:
1.35 moko 8033: irix5* | irix6* | nonstopux*)
8034: lt_prog_compiler_wl='-Wl,'
8035: # PIC (with -KPIC) is the default.
8036: lt_prog_compiler_static='-non_shared'
8037: ;;
1.15 paf 8038:
1.35 moko 8039: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8040: case $cc_basename in
8041: # old Intel for x86_64 which still supported -KPIC.
8042: ecc*)
8043: lt_prog_compiler_wl='-Wl,'
8044: lt_prog_compiler_pic='-KPIC'
8045: lt_prog_compiler_static='-static'
8046: ;;
8047: # icc used to be incompatible with GCC.
8048: # ICC 10 doesn't accept -KPIC any more.
8049: icc* | ifort*)
8050: lt_prog_compiler_wl='-Wl,'
8051: lt_prog_compiler_pic='-fPIC'
8052: lt_prog_compiler_static='-static'
8053: ;;
8054: # Lahey Fortran 8.1.
8055: lf95*)
8056: lt_prog_compiler_wl='-Wl,'
8057: lt_prog_compiler_pic='--shared'
8058: lt_prog_compiler_static='--static'
8059: ;;
8060: nagfor*)
8061: # NAG Fortran compiler
8062: lt_prog_compiler_wl='-Wl,-Wl,,'
8063: lt_prog_compiler_pic='-PIC'
8064: lt_prog_compiler_static='-Bstatic'
8065: ;;
8066: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8067: # Portland Group compilers (*not* the Pentium gcc compiler,
8068: # which looks to be a dead project)
8069: lt_prog_compiler_wl='-Wl,'
8070: lt_prog_compiler_pic='-fpic'
8071: lt_prog_compiler_static='-Bstatic'
8072: ;;
8073: ccc*)
8074: lt_prog_compiler_wl='-Wl,'
8075: # All Alpha code is PIC.
8076: lt_prog_compiler_static='-non_shared'
8077: ;;
8078: xl* | bgxl* | bgf* | mpixl*)
8079: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8080: lt_prog_compiler_wl='-Wl,'
8081: lt_prog_compiler_pic='-qpic'
8082: lt_prog_compiler_static='-qstaticlink'
8083: ;;
8084: *)
8085: case `$CC -V 2>&1 | sed 5q` in
8086: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8087: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8088: lt_prog_compiler_pic='-KPIC'
8089: lt_prog_compiler_static='-Bstatic'
8090: lt_prog_compiler_wl=''
8091: ;;
8092: *Sun\ F* | *Sun*Fortran*)
8093: lt_prog_compiler_pic='-KPIC'
8094: lt_prog_compiler_static='-Bstatic'
8095: lt_prog_compiler_wl='-Qoption ld '
8096: ;;
8097: *Sun\ C*)
8098: # Sun C 5.9
8099: lt_prog_compiler_pic='-KPIC'
8100: lt_prog_compiler_static='-Bstatic'
8101: lt_prog_compiler_wl='-Wl,'
8102: ;;
8103: *Intel*\ [CF]*Compiler*)
8104: lt_prog_compiler_wl='-Wl,'
8105: lt_prog_compiler_pic='-fPIC'
8106: lt_prog_compiler_static='-static'
8107: ;;
8108: *Portland\ Group*)
8109: lt_prog_compiler_wl='-Wl,'
8110: lt_prog_compiler_pic='-fpic'
8111: lt_prog_compiler_static='-Bstatic'
8112: ;;
8113: esac
8114: ;;
8115: esac
8116: ;;
1.15 paf 8117:
1.35 moko 8118: newsos6)
8119: lt_prog_compiler_pic='-KPIC'
8120: lt_prog_compiler_static='-Bstatic'
8121: ;;
1.15 paf 8122:
1.35 moko 8123: *nto* | *qnx*)
8124: # QNX uses GNU C++, but need to define -shared option too, otherwise
8125: # it will coredump.
8126: lt_prog_compiler_pic='-fPIC -shared'
8127: ;;
1.15 paf 8128:
1.35 moko 8129: osf3* | osf4* | osf5*)
8130: lt_prog_compiler_wl='-Wl,'
8131: # All OSF/1 code is PIC.
8132: lt_prog_compiler_static='-non_shared'
8133: ;;
1.15 paf 8134:
1.35 moko 8135: rdos*)
8136: lt_prog_compiler_static='-non_shared'
8137: ;;
1.15 paf 8138:
1.35 moko 8139: solaris*)
8140: lt_prog_compiler_pic='-KPIC'
8141: lt_prog_compiler_static='-Bstatic'
8142: case $cc_basename in
8143: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8144: lt_prog_compiler_wl='-Qoption ld ';;
8145: *)
8146: lt_prog_compiler_wl='-Wl,';;
8147: esac
8148: ;;
1.15 paf 8149:
1.35 moko 8150: sunos4*)
8151: lt_prog_compiler_wl='-Qoption ld '
8152: lt_prog_compiler_pic='-PIC'
8153: lt_prog_compiler_static='-Bstatic'
8154: ;;
1.15 paf 8155:
1.35 moko 8156: sysv4 | sysv4.2uw2* | sysv4.3*)
8157: lt_prog_compiler_wl='-Wl,'
8158: lt_prog_compiler_pic='-KPIC'
8159: lt_prog_compiler_static='-Bstatic'
8160: ;;
1.15 paf 8161:
1.35 moko 8162: sysv4*MP*)
8163: if test -d /usr/nec ;then
8164: lt_prog_compiler_pic='-Kconform_pic'
8165: lt_prog_compiler_static='-Bstatic'
8166: fi
8167: ;;
1.15 paf 8168:
1.35 moko 8169: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8170: lt_prog_compiler_wl='-Wl,'
8171: lt_prog_compiler_pic='-KPIC'
8172: lt_prog_compiler_static='-Bstatic'
8173: ;;
1.15 paf 8174:
1.35 moko 8175: unicos*)
8176: lt_prog_compiler_wl='-Wl,'
8177: lt_prog_compiler_can_build_shared=no
8178: ;;
1.15 paf 8179:
1.35 moko 8180: uts4*)
8181: lt_prog_compiler_pic='-pic'
8182: lt_prog_compiler_static='-Bstatic'
8183: ;;
1.15 paf 8184:
1.35 moko 8185: *)
8186: lt_prog_compiler_can_build_shared=no
8187: ;;
8188: esac
8189: fi
1.15 paf 8190:
1.35 moko 8191: case $host_os in
8192: # For platforms which do not support PIC, -DPIC is meaningless:
8193: *djgpp*)
8194: lt_prog_compiler_pic=
8195: ;;
8196: *)
8197: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8198: ;;
8199: esac
1.15 paf 8200:
1.35 moko 8201: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8202: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8203: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8204: echo $ECHO_N "(cached) $ECHO_C" >&6
8205: else
8206: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8207: fi
8208: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8209: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8210: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.15 paf 8211:
1.35 moko 8212: #
8213: # Check to make sure the PIC flag actually works.
8214: #
8215: if test -n "$lt_prog_compiler_pic"; then
8216: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8217: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8218: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8219: echo $ECHO_N "(cached) $ECHO_C" >&6
8220: else
8221: lt_cv_prog_compiler_pic_works=no
8222: ac_outfile=conftest.$ac_objext
8223: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8224: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8225: # Insert the option either (1) after the last *FLAGS variable, or
8226: # (2) before a word containing "conftest.", or (3) at the end.
8227: # Note that $ac_compile itself does not contain backslashes and begins
8228: # with a dollar sign (not a hyphen), so the echo should work correctly.
8229: # The option is referenced via a variable to avoid confusing sed.
8230: lt_compile=`echo "$ac_compile" | $SED \
8231: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233: -e 's:$: $lt_compiler_flag:'`
8234: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8235: (eval "$lt_compile" 2>conftest.err)
8236: ac_status=$?
8237: cat conftest.err >&5
8238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239: if (exit $ac_status) && test -s "$ac_outfile"; then
8240: # The compiler can only warn and ignore the option if not recognized
8241: # So say no if there are warnings other than the usual output.
8242: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8243: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8244: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8245: lt_cv_prog_compiler_pic_works=yes
8246: fi
8247: fi
8248: $RM conftest*
1.15 paf 8249:
1.35 moko 8250: fi
8251: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8252: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1.15 paf 8253:
1.35 moko 8254: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8255: case $lt_prog_compiler_pic in
8256: "" | " "*) ;;
8257: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8258: esac
8259: else
8260: lt_prog_compiler_pic=
8261: lt_prog_compiler_can_build_shared=no
8262: fi
1.15 paf 8263:
1.35 moko 8264: fi
1.15 paf 8265:
8266:
8267:
8268:
8269:
8270:
8271:
8272:
8273:
8274:
8275:
1.35 moko 8276: #
8277: # Check to make sure the static flag actually works.
8278: #
8279: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8280: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8281: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8282: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8283: echo $ECHO_N "(cached) $ECHO_C" >&6
8284: else
8285: lt_cv_prog_compiler_static_works=no
8286: save_LDFLAGS="$LDFLAGS"
8287: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8288: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8289: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8290: # The linker can only warn and ignore the option if not recognized
8291: # So say no if there are warnings
8292: if test -s conftest.err; then
8293: # Append any errors to the config.log.
8294: cat conftest.err 1>&5
8295: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8296: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8297: if diff conftest.exp conftest.er2 >/dev/null; then
8298: lt_cv_prog_compiler_static_works=yes
8299: fi
8300: else
8301: lt_cv_prog_compiler_static_works=yes
8302: fi
8303: fi
8304: $RM -r conftest*
8305: LDFLAGS="$save_LDFLAGS"
1.15 paf 8306:
1.35 moko 8307: fi
8308: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8309: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1.15 paf 8310:
1.35 moko 8311: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8312: :
8313: else
8314: lt_prog_compiler_static=
8315: fi
1.15 paf 8316:
8317:
8318:
8319:
8320:
8321:
8322:
1.35 moko 8323: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8324: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8325: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8326: echo $ECHO_N "(cached) $ECHO_C" >&6
8327: else
8328: lt_cv_prog_compiler_c_o=no
8329: $RM -r conftest 2>/dev/null
8330: mkdir conftest
8331: cd conftest
8332: mkdir out
8333: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334:
8335: lt_compiler_flag="-o out/conftest2.$ac_objext"
8336: # Insert the option either (1) after the last *FLAGS variable, or
8337: # (2) before a word containing "conftest.", or (3) at the end.
8338: # Note that $ac_compile itself does not contain backslashes and begins
8339: # with a dollar sign (not a hyphen), so the echo should work correctly.
8340: lt_compile=`echo "$ac_compile" | $SED \
8341: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343: -e 's:$: $lt_compiler_flag:'`
8344: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8345: (eval "$lt_compile" 2>out/conftest.err)
8346: ac_status=$?
8347: cat out/conftest.err >&5
8348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8350: then
8351: # The compiler can only warn and ignore the option if not recognized
8352: # So say no if there are warnings
8353: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8354: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8355: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8356: lt_cv_prog_compiler_c_o=yes
8357: fi
8358: fi
8359: chmod u+w . 2>&5
8360: $RM conftest*
8361: # SGI C++ compiler will create directory out/ii_files/ for
8362: # template instantiation
8363: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8364: $RM out/* && rmdir out
8365: cd ..
8366: $RM -r conftest
8367: $RM conftest*
1.15 paf 8368:
1.35 moko 8369: fi
8370: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8371: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8372:
8373:
8374:
8375:
8376:
8377:
1.35 moko 8378: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8379: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8380: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8381: echo $ECHO_N "(cached) $ECHO_C" >&6
8382: else
8383: lt_cv_prog_compiler_c_o=no
8384: $RM -r conftest 2>/dev/null
8385: mkdir conftest
8386: cd conftest
8387: mkdir out
8388: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389:
8390: lt_compiler_flag="-o out/conftest2.$ac_objext"
8391: # Insert the option either (1) after the last *FLAGS variable, or
8392: # (2) before a word containing "conftest.", or (3) at the end.
8393: # Note that $ac_compile itself does not contain backslashes and begins
8394: # with a dollar sign (not a hyphen), so the echo should work correctly.
8395: lt_compile=`echo "$ac_compile" | $SED \
8396: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398: -e 's:$: $lt_compiler_flag:'`
8399: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400: (eval "$lt_compile" 2>out/conftest.err)
8401: ac_status=$?
8402: cat out/conftest.err >&5
8403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8405: then
8406: # The compiler can only warn and ignore the option if not recognized
8407: # So say no if there are warnings
8408: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8409: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8410: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8411: lt_cv_prog_compiler_c_o=yes
8412: fi
8413: fi
8414: chmod u+w . 2>&5
8415: $RM conftest*
8416: # SGI C++ compiler will create directory out/ii_files/ for
8417: # template instantiation
8418: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8419: $RM out/* && rmdir out
8420: cd ..
8421: $RM -r conftest
8422: $RM conftest*
1.15 paf 8423:
1.35 moko 8424: fi
8425: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8426: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.15 paf 8427:
8428:
8429:
8430:
1.35 moko 8431: hard_links="nottested"
8432: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8433: # do not overwrite the value of need_locks provided by the user
8434: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8435: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8436: hard_links=yes
8437: $RM conftest*
8438: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439: touch conftest.a
8440: ln conftest.a conftest.b 2>&5 || hard_links=no
8441: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8442: echo "$as_me:$LINENO: result: $hard_links" >&5
8443: echo "${ECHO_T}$hard_links" >&6
8444: if test "$hard_links" = no; then
8445: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8446: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8447: need_locks=warn
8448: fi
8449: else
8450: need_locks=no
8451: fi
1.15 paf 8452:
8453:
8454:
8455:
8456:
8457:
1.35 moko 8458: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8459: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.15 paf 8460:
1.35 moko 8461: runpath_var=
8462: allow_undefined_flag=
8463: always_export_symbols=no
8464: archive_cmds=
8465: archive_expsym_cmds=
8466: compiler_needs_object=no
8467: enable_shared_with_static_runtimes=no
8468: export_dynamic_flag_spec=
8469: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8470: hardcode_automatic=no
8471: hardcode_direct=no
8472: hardcode_direct_absolute=no
8473: hardcode_libdir_flag_spec=
8474: hardcode_libdir_separator=
8475: hardcode_minus_L=no
8476: hardcode_shlibpath_var=unsupported
8477: inherit_rpath=no
8478: link_all_deplibs=unknown
8479: module_cmds=
8480: module_expsym_cmds=
8481: old_archive_from_new_cmds=
8482: old_archive_from_expsyms_cmds=
8483: thread_safe_flag_spec=
8484: whole_archive_flag_spec=
8485: # include_expsyms should be a list of space-separated symbols to be *always*
8486: # included in the symbol list
8487: include_expsyms=
8488: # exclude_expsyms can be an extended regexp of symbols to exclude
8489: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8490: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8491: # as well as any symbol that contains `d'.
8492: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8493: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8494: # platforms (ab)use it in PIC code, but their linkers get confused if
8495: # the symbol is explicitly referenced. Since portable code cannot
8496: # rely on this symbol name, it's probably fine to never include it in
8497: # preloaded symbol tables.
8498: # Exclude shared library initialization/finalization symbols.
8499: extract_expsyms_cmds=
1.15 paf 8500:
8501: case $host_os in
1.35 moko 8502: cygwin* | mingw* | pw32* | cegcc*)
8503: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8504: # When not using gcc, we currently assume that we are using
8505: # Microsoft Visual C++.
8506: if test "$GCC" != yes; then
8507: with_gnu_ld=no
8508: fi
8509: ;;
8510: interix*)
8511: # we just hope/assume this is gcc and not c89 (= MSVC++)
8512: with_gnu_ld=yes
8513: ;;
8514: openbsd*)
8515: with_gnu_ld=no
1.15 paf 8516: ;;
8517: esac
8518:
1.35 moko 8519: ld_shlibs=yes
1.15 paf 8520:
1.35 moko 8521: # On some targets, GNU ld is compatible enough with the native linker
8522: # that we're better off using the native interface for both.
8523: lt_use_gnu_ld_interface=no
8524: if test "$with_gnu_ld" = yes; then
8525: case $host_os in
8526: aix*)
8527: # The AIX port of GNU ld has always aspired to compatibility
8528: # with the native linker. However, as the warning in the GNU ld
8529: # block says, versions before 2.19.5* couldn't really create working
8530: # shared libraries, regardless of the interface used.
8531: case `$LD -v 2>&1` in
8532: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8533: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8534: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8535: *)
8536: lt_use_gnu_ld_interface=yes
8537: ;;
8538: esac
8539: ;;
8540: *)
8541: lt_use_gnu_ld_interface=yes
8542: ;;
8543: esac
8544: fi
1.15 paf 8545:
1.35 moko 8546: if test "$lt_use_gnu_ld_interface" = yes; then
8547: # If archive_cmds runs LD, not CC, wlarc should be empty
8548: wlarc='${wl}'
8549:
8550: # Set some defaults for GNU ld with shared library support. These
8551: # are reset later if shared libraries are not supported. Putting them
8552: # here allows them to be overridden if necessary.
8553: runpath_var=LD_RUN_PATH
8554: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555: export_dynamic_flag_spec='${wl}--export-dynamic'
8556: # ancient GNU ld didn't support --whole-archive et. al.
8557: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559: else
8560: whole_archive_flag_spec=
8561: fi
8562: supports_anon_versioning=no
8563: case `$LD -v 2>&1` in
8564: *GNU\ gold*) supports_anon_versioning=yes ;;
8565: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8566: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8567: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8568: *\ 2.11.*) ;; # other 2.11 versions
8569: *) supports_anon_versioning=yes ;;
8570: esac
1.15 paf 8571:
1.35 moko 8572: # See if GNU ld supports shared libraries.
8573: case $host_os in
8574: aix[3-9]*)
8575: # On AIX/PPC, the GNU linker is very broken
8576: if test "$host_cpu" != ia64; then
8577: ld_shlibs=no
8578: cat <<_LT_EOF 1>&2
1.15 paf 8579:
1.35 moko 8580: *** Warning: the GNU linker, at least up to release 2.19, is reported
8581: *** to be unable to reliably create shared libraries on AIX.
8582: *** Therefore, libtool is disabling shared libraries support. If you
8583: *** really care for shared libraries, you may want to install binutils
8584: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8585: *** You will then need to restart the configuration process.
1.15 paf 8586:
1.35 moko 8587: _LT_EOF
8588: fi
8589: ;;
1.15 paf 8590:
1.35 moko 8591: amigaos*)
8592: case $host_cpu in
8593: powerpc)
8594: # see comment about AmigaOS4 .so support
8595: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596: archive_expsym_cmds=''
8597: ;;
8598: m68k)
8599: 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)'
8600: hardcode_libdir_flag_spec='-L$libdir'
8601: hardcode_minus_L=yes
8602: ;;
8603: esac
8604: ;;
1.15 paf 8605:
1.35 moko 8606: beos*)
8607: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608: allow_undefined_flag=unsupported
8609: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8610: # support --undefined. This deserves some investigation. FIXME
8611: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612: else
8613: ld_shlibs=no
8614: fi
8615: ;;
1.15 paf 8616:
1.35 moko 8617: cygwin* | mingw* | pw32* | cegcc*)
8618: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8619: # as there is no search path for DLLs.
8620: hardcode_libdir_flag_spec='-L$libdir'
8621: export_dynamic_flag_spec='${wl}--export-all-symbols'
8622: allow_undefined_flag=unsupported
8623: always_export_symbols=no
8624: enable_shared_with_static_runtimes=yes
8625: 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'
8626: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8627:
8628: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8629: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8630: # If the export-symbols file already is a .def file (1st line
8631: # is EXPORTS), use it as is; otherwise, prepend...
8632: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8633: cp $export_symbols $output_objdir/$soname.def;
8634: else
8635: echo EXPORTS > $output_objdir/$soname.def;
8636: cat $export_symbols >> $output_objdir/$soname.def;
8637: fi~
8638: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8639: else
8640: ld_shlibs=no
8641: fi
8642: ;;
1.15 paf 8643:
1.35 moko 8644: haiku*)
8645: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646: link_all_deplibs=yes
8647: ;;
1.15 paf 8648:
1.35 moko 8649: interix[3-9]*)
8650: hardcode_direct=no
8651: hardcode_shlibpath_var=no
8652: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8653: export_dynamic_flag_spec='${wl}-E'
8654: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8655: # Instead, shared libraries are loaded at an image base (0x10000000 by
8656: # default) and relocated if they conflict, which is a slow very memory
8657: # consuming and fragmenting process. To avoid this, we pick a random,
8658: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8659: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8660: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8661: 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'
8662: ;;
1.15 paf 8663:
1.35 moko 8664: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8665: tmp_diet=no
8666: if test "$host_os" = linux-dietlibc; then
8667: case $cc_basename in
8668: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8669: esac
8670: fi
8671: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8672: && test "$tmp_diet" = no
8673: then
8674: tmp_addflag=' $pic_flag'
8675: tmp_sharedflag='-shared'
8676: case $cc_basename,$host_cpu in
8677: pgcc*) # Portland Group C compiler
8678: 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'
8679: tmp_addflag=' $pic_flag'
8680: ;;
8681: pgf77* | pgf90* | pgf95* | pgfortran*)
8682: # Portland Group f77 and f90 compilers
8683: 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'
8684: tmp_addflag=' $pic_flag -Mnomain' ;;
8685: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8686: tmp_addflag=' -i_dynamic' ;;
8687: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8688: tmp_addflag=' -i_dynamic -nofor_main' ;;
8689: ifc* | ifort*) # Intel Fortran compiler
8690: tmp_addflag=' -nofor_main' ;;
8691: lf95*) # Lahey Fortran 8.1
8692: whole_archive_flag_spec=
8693: tmp_sharedflag='--shared' ;;
8694: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8695: tmp_sharedflag='-qmkshrobj'
8696: tmp_addflag= ;;
8697: nvcc*) # Cuda Compiler Driver 2.2
8698: 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'
8699: compiler_needs_object=yes
8700: ;;
8701: esac
8702: case `$CC -V 2>&1 | sed 5q` in
8703: *Sun\ C*) # Sun C 5.9
8704: 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'
8705: compiler_needs_object=yes
8706: tmp_sharedflag='-G' ;;
8707: *Sun\ F*) # Sun Fortran 8.3
8708: tmp_sharedflag='-G' ;;
8709: esac
8710: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.15 paf 8711:
1.35 moko 8712: if test "x$supports_anon_versioning" = xyes; then
8713: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715: echo "local: *; };" >> $output_objdir/$libname.ver~
8716: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8717: fi
8718:
8719: case $cc_basename in
8720: xlf* | bgf* | bgxlf* | mpixlf*)
8721: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8722: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8723: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8725: if test "x$supports_anon_versioning" = xyes; then
8726: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8727: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8728: echo "local: *; };" >> $output_objdir/$libname.ver~
8729: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8730: fi
8731: ;;
8732: esac
8733: else
8734: ld_shlibs=no
8735: fi
8736: ;;
1.15 paf 8737:
1.35 moko 8738: netbsd*)
8739: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8740: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8741: wlarc=
8742: else
8743: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8744: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8745: fi
8746: ;;
1.15 paf 8747:
1.35 moko 8748: solaris*)
8749: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8750: ld_shlibs=no
8751: cat <<_LT_EOF 1>&2
1.15 paf 8752:
1.35 moko 8753: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8754: *** create shared libraries on Solaris systems. Therefore, libtool
8755: *** is disabling shared libraries support. We urge you to upgrade GNU
8756: *** binutils to release 2.9.1 or newer. Another option is to modify
8757: *** your PATH or compiler configuration so that the native linker is
8758: *** used, and then restart.
1.15 paf 8759:
1.35 moko 8760: _LT_EOF
8761: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8762: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764: else
8765: ld_shlibs=no
8766: fi
8767: ;;
1.15 paf 8768:
1.35 moko 8769: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8770: case `$LD -v 2>&1` in
8771: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8772: ld_shlibs=no
8773: cat <<_LT_EOF 1>&2
1.31 misha 8774:
1.35 moko 8775: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8776: *** reliably create shared libraries on SCO systems. Therefore, libtool
8777: *** is disabling shared libraries support. We urge you to upgrade GNU
8778: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8779: *** your PATH or compiler configuration so that the native linker is
8780: *** used, and then restart.
1.31 misha 8781:
1.35 moko 8782: _LT_EOF
8783: ;;
8784: *)
8785: # For security reasons, it is highly recommended that you always
8786: # use absolute paths for naming shared libraries, and exclude the
8787: # DT_RUNPATH tag from executables and libraries. But doing so
8788: # requires that you compile everything twice, which is a pain.
8789: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793: else
8794: ld_shlibs=no
8795: fi
8796: ;;
8797: esac
8798: ;;
1.31 misha 8799:
1.35 moko 8800: sunos4*)
8801: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8802: wlarc=
8803: hardcode_direct=yes
8804: hardcode_shlibpath_var=no
8805: ;;
1.15 paf 8806:
1.35 moko 8807: *)
8808: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811: else
8812: ld_shlibs=no
8813: fi
8814: ;;
8815: esac
1.15 paf 8816:
1.35 moko 8817: if test "$ld_shlibs" = no; then
8818: runpath_var=
8819: hardcode_libdir_flag_spec=
8820: export_dynamic_flag_spec=
8821: whole_archive_flag_spec=
8822: fi
8823: else
8824: # PORTME fill in a description of your system's linker (not GNU ld)
8825: case $host_os in
8826: aix3*)
8827: allow_undefined_flag=unsupported
8828: always_export_symbols=yes
8829: 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'
8830: # Note: this linker hardcodes the directories in LIBPATH if there
8831: # are no directories specified by -L.
8832: hardcode_minus_L=yes
8833: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8834: # Neither direct hardcoding nor static linking is supported with a
8835: # broken collect2.
8836: hardcode_direct=unsupported
8837: fi
8838: ;;
1.15 paf 8839:
1.35 moko 8840: aix[4-9]*)
8841: if test "$host_cpu" = ia64; then
8842: # On IA64, the linker does run time linking by default, so we don't
8843: # have to do anything special.
8844: aix_use_runtimelinking=no
8845: exp_sym_flag='-Bexport'
8846: no_entry_flag=""
8847: else
8848: # If we're using GNU nm, then we don't want the "-C" option.
8849: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8850: # Also, AIX nm treats weak defined symbols like other global
8851: # defined symbols, whereas GNU nm marks them as "W".
8852: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8853: 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'
8854: else
8855: 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'
8856: fi
8857: aix_use_runtimelinking=no
1.15 paf 8858:
1.35 moko 8859: # Test if we are trying to use run time linking or normal
8860: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8861: # need to do runtime linking.
8862: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8863: for ld_flag in $LDFLAGS; do
8864: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8865: aix_use_runtimelinking=yes
8866: break
8867: fi
8868: done
8869: ;;
8870: esac
1.15 paf 8871:
1.35 moko 8872: exp_sym_flag='-bexport'
8873: no_entry_flag='-bnoentry'
8874: fi
1.23 paf 8875:
1.35 moko 8876: # When large executables or shared objects are built, AIX ld can
8877: # have problems creating the table of contents. If linking a library
8878: # or program results in "error TOC overflow" add -mminimal-toc to
8879: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8880: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8881:
8882: archive_cmds=''
8883: hardcode_direct=yes
8884: hardcode_direct_absolute=yes
8885: hardcode_libdir_separator=':'
8886: link_all_deplibs=yes
8887: file_list_spec='${wl}-f,'
8888:
8889: if test "$GCC" = yes; then
8890: case $host_os in aix4.[012]|aix4.[012].*)
8891: # We only want to do this on AIX 4.2 and lower, the check
8892: # below for broken collect2 doesn't work under 4.3+
8893: collect2name=`${CC} -print-prog-name=collect2`
8894: if test -f "$collect2name" &&
8895: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8896: then
8897: # We have reworked collect2
8898: :
8899: else
8900: # We have old collect2
8901: hardcode_direct=unsupported
8902: # It fails to find uninstalled libraries when the uninstalled
8903: # path is not listed in the libpath. Setting hardcode_minus_L
8904: # to unsupported forces relinking
8905: hardcode_minus_L=yes
8906: hardcode_libdir_flag_spec='-L$libdir'
8907: hardcode_libdir_separator=
8908: fi
8909: ;;
8910: esac
8911: shared_flag='-shared'
8912: if test "$aix_use_runtimelinking" = yes; then
8913: shared_flag="$shared_flag "'${wl}-G'
8914: fi
8915: else
8916: # not using gcc
8917: if test "$host_cpu" = ia64; then
8918: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8919: # chokes on -Wl,-G. The following line is correct:
8920: shared_flag='-G'
8921: else
8922: if test "$aix_use_runtimelinking" = yes; then
8923: shared_flag='${wl}-G'
8924: else
8925: shared_flag='${wl}-bM:SRE'
8926: fi
8927: fi
8928: fi
1.15 paf 8929:
1.35 moko 8930: export_dynamic_flag_spec='${wl}-bexpall'
8931: # It seems that -bexpall does not export symbols beginning with
8932: # underscore (_), so it is better to generate a list of symbols to export.
8933: always_export_symbols=yes
8934: if test "$aix_use_runtimelinking" = yes; then
8935: # Warning - without using the other runtime loading flags (-brtl),
8936: # -berok will link without error, but may produce a broken library.
8937: allow_undefined_flag='-berok'
8938: # Determine the default libpath from the value encoded in an
8939: # empty executable.
8940: if test "${lt_cv_aix_libpath+set}" = set; then
8941: aix_libpath=$lt_cv_aix_libpath
8942: else
8943: if test "${lt_cv_aix_libpath_+set}" = set; then
1.15 paf 8944: echo $ECHO_N "(cached) $ECHO_C" >&6
8945: else
1.35 moko 8946: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 8947: /* confdefs.h. */
8948: _ACEOF
8949: cat confdefs.h >>conftest.$ac_ext
8950: cat >>conftest.$ac_ext <<_ACEOF
8951: /* end confdefs.h. */
1.35 moko 8952:
8953: int
8954: main ()
8955: {
8956:
8957: ;
8958: return 0;
8959: }
1.15 paf 8960: _ACEOF
1.35 moko 8961: rm -f conftest.$ac_objext conftest$ac_exeext
8962: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963: (eval $ac_link) 2>conftest.er1
1.15 paf 8964: ac_status=$?
1.25 paf 8965: grep -v '^ *+' conftest.er1 >conftest.err
8966: rm -f conftest.er1
8967: cat conftest.err >&5
1.15 paf 8968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969: (exit $ac_status); } &&
1.25 paf 8970: { ac_try='test -z "$ac_c_werror_flag"
8971: || test ! -s conftest.err'
8972: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973: (eval $ac_try) 2>&5
8974: ac_status=$?
8975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976: (exit $ac_status); }; } &&
1.35 moko 8977: { ac_try='test -s conftest$ac_exeext'
1.15 paf 8978: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979: (eval $ac_try) 2>&5
8980: ac_status=$?
8981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982: (exit $ac_status); }; }; then
1.35 moko 8983:
8984: lt_aix_libpath_sed='
8985: /Import File Strings/,/^$/ {
8986: /^0/ {
8987: s/^0 *\([^ ]*\) *$/\1/
8988: p
8989: }
8990: }'
8991: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992: # Check for a 64-bit object if we didn't find anything.
8993: if test -z "$lt_cv_aix_libpath_"; then
8994: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995: fi
1.15 paf 8996: else
8997: echo "$as_me: failed program was:" >&5
8998: sed 's/^/| /' conftest.$ac_ext >&5
8999:
9000: fi
1.35 moko 9001: rm -f conftest.err conftest.$ac_objext \
9002: conftest$ac_exeext conftest.$ac_ext
9003: if test -z "$lt_cv_aix_libpath_"; then
9004: lt_cv_aix_libpath_="/usr/lib:/lib"
9005: fi
9006:
9007: fi
9008:
9009: aix_libpath=$lt_cv_aix_libpath_
9010: fi
1.15 paf 9011:
1.35 moko 9012: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9013: 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"
9014: else
9015: if test "$host_cpu" = ia64; then
9016: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9017: allow_undefined_flag="-z nodefs"
9018: 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"
9019: else
9020: # Determine the default libpath from the value encoded in an
9021: # empty executable.
9022: if test "${lt_cv_aix_libpath+set}" = set; then
9023: aix_libpath=$lt_cv_aix_libpath
9024: else
9025: if test "${lt_cv_aix_libpath_+set}" = set; then
9026: echo $ECHO_N "(cached) $ECHO_C" >&6
9027: else
9028: cat >conftest.$ac_ext <<_ACEOF
9029: /* confdefs.h. */
1.15 paf 9030: _ACEOF
9031: cat confdefs.h >>conftest.$ac_ext
9032: cat >>conftest.$ac_ext <<_ACEOF
9033: /* end confdefs.h. */
1.35 moko 9034:
9035: int
9036: main ()
9037: {
9038:
9039: ;
9040: return 0;
9041: }
1.15 paf 9042: _ACEOF
1.35 moko 9043: rm -f conftest.$ac_objext conftest$ac_exeext
9044: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045: (eval $ac_link) 2>conftest.er1
1.15 paf 9046: ac_status=$?
9047: grep -v '^ *+' conftest.er1 >conftest.err
9048: rm -f conftest.er1
9049: cat conftest.err >&5
9050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.35 moko 9051: (exit $ac_status); } &&
9052: { ac_try='test -z "$ac_c_werror_flag"
9053: || test ! -s conftest.err'
9054: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055: (eval $ac_try) 2>&5
9056: ac_status=$?
9057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058: (exit $ac_status); }; } &&
9059: { ac_try='test -s conftest$ac_exeext'
9060: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061: (eval $ac_try) 2>&5
9062: ac_status=$?
9063: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064: (exit $ac_status); }; }; then
9065:
9066: lt_aix_libpath_sed='
9067: /Import File Strings/,/^$/ {
9068: /^0/ {
9069: s/^0 *\([^ ]*\) *$/\1/
9070: p
9071: }
9072: }'
9073: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9074: # Check for a 64-bit object if we didn't find anything.
9075: if test -z "$lt_cv_aix_libpath_"; then
9076: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.15 paf 9077: fi
9078: else
9079: echo "$as_me: failed program was:" >&5
9080: sed 's/^/| /' conftest.$ac_ext >&5
9081:
9082: fi
1.35 moko 9083: rm -f conftest.err conftest.$ac_objext \
9084: conftest$ac_exeext conftest.$ac_ext
9085: if test -z "$lt_cv_aix_libpath_"; then
9086: lt_cv_aix_libpath_="/usr/lib:/lib"
9087: fi
9088:
9089: fi
9090:
9091: aix_libpath=$lt_cv_aix_libpath_
9092: fi
9093:
9094: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9095: # Warning - without using the other run time loading flags,
9096: # -berok will link without error, but may produce a broken library.
9097: no_undefined_flag=' ${wl}-bernotok'
9098: allow_undefined_flag=' ${wl}-berok'
9099: if test "$with_gnu_ld" = yes; then
9100: # We only use this code for GNU lds that support --whole-archive.
9101: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9102: else
9103: # Exported symbols can be pulled into shared objects from archives
9104: whole_archive_flag_spec='$convenience'
9105: fi
9106: archive_cmds_need_lc=yes
9107: # This is similar to how AIX traditionally builds its shared libraries.
9108: 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'
9109: fi
9110: fi
9111: ;;
9112:
9113: amigaos*)
9114: case $host_cpu in
9115: powerpc)
9116: # see comment about AmigaOS4 .so support
9117: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118: archive_expsym_cmds=''
9119: ;;
9120: m68k)
9121: 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)'
9122: hardcode_libdir_flag_spec='-L$libdir'
9123: hardcode_minus_L=yes
9124: ;;
9125: esac
9126: ;;
9127:
9128: bsdi[45]*)
9129: export_dynamic_flag_spec=-rdynamic
9130: ;;
9131:
9132: cygwin* | mingw* | pw32* | cegcc*)
9133: # When not using gcc, we currently assume that we are using
9134: # Microsoft Visual C++.
9135: # hardcode_libdir_flag_spec is actually meaningless, as there is
9136: # no search path for DLLs.
9137: case $cc_basename in
9138: cl*)
9139: # Native MSVC
9140: hardcode_libdir_flag_spec=' '
9141: allow_undefined_flag=unsupported
9142: always_export_symbols=yes
9143: file_list_spec='@'
9144: # Tell ltmain to make .lib files, not .a files.
9145: libext=lib
9146: # Tell ltmain to make .dll files, not .so files.
9147: shrext_cmds=".dll"
9148: # FIXME: Setting linknames here is a bad hack.
9149: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9150: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9151: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9152: else
9153: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9154: fi~
9155: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9156: linknames='
9157: # The linker will not automatically build a static lib if we build a DLL.
9158: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9159: enable_shared_with_static_runtimes=yes
9160: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9161: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9162: # Don't use ranlib
9163: old_postinstall_cmds='chmod 644 $oldlib'
9164: postlink_cmds='lt_outputfile="@OUTPUT@"~
9165: lt_tool_outputfile="@TOOL_OUTPUT@"~
9166: case $lt_outputfile in
9167: *.exe|*.EXE) ;;
9168: *)
9169: lt_outputfile="$lt_outputfile.exe"
9170: lt_tool_outputfile="$lt_tool_outputfile.exe"
9171: ;;
9172: esac~
9173: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9174: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9175: $RM "$lt_outputfile.manifest";
9176: fi'
9177: ;;
9178: *)
9179: # Assume MSVC wrapper
9180: hardcode_libdir_flag_spec=' '
9181: allow_undefined_flag=unsupported
9182: # Tell ltmain to make .lib files, not .a files.
9183: libext=lib
9184: # Tell ltmain to make .dll files, not .so files.
9185: shrext_cmds=".dll"
9186: # FIXME: Setting linknames here is a bad hack.
9187: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9188: # The linker will automatically build a .lib file if we build a DLL.
9189: old_archive_from_new_cmds='true'
9190: # FIXME: Should let the user specify the lib program.
9191: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9192: enable_shared_with_static_runtimes=yes
9193: ;;
9194: esac
9195: ;;
9196:
9197: darwin* | rhapsody*)
9198:
9199:
9200: archive_cmds_need_lc=no
9201: hardcode_direct=no
9202: hardcode_automatic=yes
9203: hardcode_shlibpath_var=unsupported
9204: if test "$lt_cv_ld_force_load" = "yes"; then
9205: 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\"`'
9206:
9207: else
9208: whole_archive_flag_spec=''
9209: fi
9210: link_all_deplibs=yes
9211: allow_undefined_flag="$_lt_dar_allow_undefined"
9212: case $cc_basename in
9213: ifort*) _lt_dar_can_shared=yes ;;
9214: *) _lt_dar_can_shared=$GCC ;;
9215: esac
9216: if test "$_lt_dar_can_shared" = "yes"; then
9217: output_verbose_link_cmd=func_echo_all
9218: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9219: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9220: 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}"
9221: 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}"
9222:
9223: else
9224: ld_shlibs=no
9225: fi
9226:
9227: ;;
9228:
9229: dgux*)
9230: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231: hardcode_libdir_flag_spec='-L$libdir'
9232: hardcode_shlibpath_var=no
9233: ;;
9234:
9235: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9236: # support. Future versions do this automatically, but an explicit c++rt0.o
9237: # does not break anything, and helps significantly (at the cost of a little
9238: # extra space).
9239: freebsd2.2*)
9240: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9241: hardcode_libdir_flag_spec='-R$libdir'
9242: hardcode_direct=yes
9243: hardcode_shlibpath_var=no
9244: ;;
9245:
9246: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9247: freebsd2.*)
9248: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249: hardcode_direct=yes
9250: hardcode_minus_L=yes
9251: hardcode_shlibpath_var=no
9252: ;;
9253:
9254: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9255: freebsd* | dragonfly*)
9256: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257: hardcode_libdir_flag_spec='-R$libdir'
9258: hardcode_direct=yes
9259: hardcode_shlibpath_var=no
9260: ;;
9261:
9262: hpux9*)
9263: if test "$GCC" = yes; then
9264: 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'
9265: else
9266: 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'
9267: fi
9268: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9269: hardcode_libdir_separator=:
9270: hardcode_direct=yes
9271:
9272: # hardcode_minus_L: Not really in the search PATH,
9273: # but as the default location of the library.
9274: hardcode_minus_L=yes
9275: export_dynamic_flag_spec='${wl}-E'
9276: ;;
9277:
9278: hpux10*)
9279: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9280: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9281: else
9282: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9283: fi
9284: if test "$with_gnu_ld" = no; then
9285: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9286: hardcode_libdir_separator=:
9287: hardcode_direct=yes
9288: hardcode_direct_absolute=yes
9289: export_dynamic_flag_spec='${wl}-E'
9290: # hardcode_minus_L: Not really in the search PATH,
9291: # but as the default location of the library.
9292: hardcode_minus_L=yes
9293: fi
9294: ;;
9295:
9296: hpux11*)
9297: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9298: case $host_cpu in
9299: hppa*64*)
9300: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301: ;;
9302: ia64*)
9303: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9304: ;;
9305: *)
9306: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9307: ;;
9308: esac
9309: else
9310: case $host_cpu in
9311: hppa*64*)
9312: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9313: ;;
9314: ia64*)
9315: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9316: ;;
9317: *)
1.15 paf 9318:
1.35 moko 9319: # Older versions of the 11.00 compiler do not understand -b yet
9320: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9321: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9322: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9323: if test "${lt_cv_prog_compiler__b+set}" = set; then
1.15 paf 9324: echo $ECHO_N "(cached) $ECHO_C" >&6
9325: else
1.35 moko 9326: lt_cv_prog_compiler__b=no
9327: save_LDFLAGS="$LDFLAGS"
9328: LDFLAGS="$LDFLAGS -b"
9329: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9330: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9331: # The linker can only warn and ignore the option if not recognized
9332: # So say no if there are warnings
9333: if test -s conftest.err; then
9334: # Append any errors to the config.log.
9335: cat conftest.err 1>&5
9336: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9337: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9338: if diff conftest.exp conftest.er2 >/dev/null; then
9339: lt_cv_prog_compiler__b=yes
9340: fi
9341: else
9342: lt_cv_prog_compiler__b=yes
9343: fi
9344: fi
9345: $RM -r conftest*
9346: LDFLAGS="$save_LDFLAGS"
1.15 paf 9347:
1.1 parser 9348: fi
1.35 moko 9349: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9350: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
1.1 parser 9351:
1.35 moko 9352: if test x"$lt_cv_prog_compiler__b" = xyes; then
9353: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9354: else
9355: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 parser 9356: fi
9357:
1.35 moko 9358: ;;
9359: esac
9360: fi
9361: if test "$with_gnu_ld" = no; then
9362: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9363: hardcode_libdir_separator=:
9364:
9365: case $host_cpu in
9366: hppa*64*|ia64*)
9367: hardcode_direct=no
9368: hardcode_shlibpath_var=no
9369: ;;
9370: *)
9371: hardcode_direct=yes
9372: hardcode_direct_absolute=yes
9373: export_dynamic_flag_spec='${wl}-E'
1.15 paf 9374:
1.35 moko 9375: # hardcode_minus_L: Not really in the search PATH,
9376: # but as the default location of the library.
9377: hardcode_minus_L=yes
9378: ;;
9379: esac
9380: fi
9381: ;;
1.1 parser 9382:
1.35 moko 9383: irix5* | irix6* | nonstopux*)
9384: if test "$GCC" = yes; then
9385: 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'
9386: # Try to use the -exported_symbol ld option, if it does not
9387: # work, assume that -exports_file does not work either and
9388: # implicitly export all symbols.
9389: # This should be the same for all languages, so no per-tag cache variable.
9390: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9391: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9392: if test "${lt_cv_irix_exported_symbol+set}" = set; then
1.15 paf 9393: echo $ECHO_N "(cached) $ECHO_C" >&6
9394: else
1.35 moko 9395: save_LDFLAGS="$LDFLAGS"
9396: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9397: cat >conftest.$ac_ext <<_ACEOF
1.15 paf 9398: /* confdefs.h. */
9399: _ACEOF
9400: cat confdefs.h >>conftest.$ac_ext
9401: cat >>conftest.$ac_ext <<_ACEOF
9402: /* end confdefs.h. */
1.35 moko 9403: int foo (void) { return 0; }
1.15 paf 9404: _ACEOF
1.35 moko 9405: rm -f conftest.$ac_objext conftest$ac_exeext
9406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407: (eval $ac_link) 2>conftest.er1
1.15 paf 9408: ac_status=$?
1.25 paf 9409: grep -v '^ *+' conftest.er1 >conftest.err
9410: rm -f conftest.er1
9411: cat conftest.err >&5
1.15 paf 9412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413: (exit $ac_status); } &&
1.25 paf 9414: { ac_try='test -z "$ac_c_werror_flag"
9415: || test ! -s conftest.err'
9416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417: (eval $ac_try) 2>&5
9418: ac_status=$?
9419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420: (exit $ac_status); }; } &&
1.35 moko 9421: { ac_try='test -s conftest$ac_exeext'
1.15 paf 9422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423: (eval $ac_try) 2>&5
9424: ac_status=$?
9425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426: (exit $ac_status); }; }; then
1.35 moko 9427: lt_cv_irix_exported_symbol=yes
1.1 parser 9428: else
1.15 paf 9429: echo "$as_me: failed program was:" >&5
9430: sed 's/^/| /' conftest.$ac_ext >&5
9431:
1.35 moko 9432: lt_cv_irix_exported_symbol=no
1.15 paf 9433: fi
1.35 moko 9434: rm -f conftest.err conftest.$ac_objext \
9435: conftest$ac_exeext conftest.$ac_ext
9436: LDFLAGS="$save_LDFLAGS"
1.1 parser 9437: fi
1.35 moko 9438: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9439: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9440: if test "$lt_cv_irix_exported_symbol" = yes; then
9441: 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'
9442: fi
9443: else
9444: 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'
9445: 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'
9446: fi
9447: archive_cmds_need_lc='no'
9448: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9449: hardcode_libdir_separator=:
9450: inherit_rpath=yes
9451: link_all_deplibs=yes
9452: ;;
9453:
9454: netbsd*)
9455: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9456: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9457: else
9458: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9459: fi
9460: hardcode_libdir_flag_spec='-R$libdir'
9461: hardcode_direct=yes
9462: hardcode_shlibpath_var=no
9463: ;;
9464:
9465: newsos6)
9466: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467: hardcode_direct=yes
9468: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469: hardcode_libdir_separator=:
9470: hardcode_shlibpath_var=no
9471: ;;
9472:
9473: *nto* | *qnx*)
9474: ;;
1.1 parser 9475:
1.35 moko 9476: openbsd*)
9477: if test -f /usr/libexec/ld.so; then
9478: hardcode_direct=yes
9479: hardcode_shlibpath_var=no
9480: hardcode_direct_absolute=yes
9481: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9482: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9483: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9484: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485: export_dynamic_flag_spec='${wl}-E'
9486: else
9487: case $host_os in
9488: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9489: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9490: hardcode_libdir_flag_spec='-R$libdir'
9491: ;;
9492: *)
9493: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9494: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495: ;;
9496: esac
9497: fi
9498: else
9499: ld_shlibs=no
9500: fi
9501: ;;
1.1 parser 9502:
1.35 moko 9503: os2*)
9504: hardcode_libdir_flag_spec='-L$libdir'
9505: hardcode_minus_L=yes
9506: allow_undefined_flag=unsupported
9507: 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'
9508: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9509: ;;
1.1 parser 9510:
1.35 moko 9511: osf3*)
9512: if test "$GCC" = yes; then
9513: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9514: 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'
9515: else
9516: allow_undefined_flag=' -expect_unresolved \*'
9517: 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'
9518: fi
9519: archive_cmds_need_lc='no'
9520: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521: hardcode_libdir_separator=:
9522: ;;
1.1 parser 9523:
1.35 moko 9524: osf4* | osf5*) # as osf3* with the addition of -msym flag
9525: if test "$GCC" = yes; then
9526: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9527: 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'
9528: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529: else
9530: allow_undefined_flag=' -expect_unresolved \*'
9531: 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'
9532: 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~
9533: $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'
1.1 parser 9534:
1.35 moko 9535: # Both c and cxx compiler support -rpath directly
9536: hardcode_libdir_flag_spec='-rpath $libdir'
9537: fi
9538: archive_cmds_need_lc='no'
9539: hardcode_libdir_separator=:
9540: ;;
1.1 parser 9541:
1.35 moko 9542: solaris*)
9543: no_undefined_flag=' -z defs'
9544: if test "$GCC" = yes; then
9545: wlarc='${wl}'
9546: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9547: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9548: $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'
9549: else
9550: case `$CC -V 2>&1` in
9551: *"Compilers 5.0"*)
9552: wlarc=''
9553: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9555: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9556: ;;
9557: *)
9558: wlarc='${wl}'
9559: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9560: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9561: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9562: ;;
9563: esac
9564: fi
9565: hardcode_libdir_flag_spec='-R$libdir'
9566: hardcode_shlibpath_var=no
9567: case $host_os in
9568: solaris2.[0-5] | solaris2.[0-5].*) ;;
9569: *)
9570: # The compiler driver will combine and reorder linker options,
9571: # but understands `-z linker_flag'. GCC discards it without `$wl',
9572: # but is careful enough not to reorder.
9573: # Supported since Solaris 2.6 (maybe 2.5.1?)
9574: if test "$GCC" = yes; then
9575: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9576: else
9577: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9578: fi
9579: ;;
9580: esac
9581: link_all_deplibs=yes
9582: ;;
9583:
9584: sunos4*)
9585: if test "x$host_vendor" = xsequent; then
9586: # Use $CC to link under sequent, because it throws in some extra .o
9587: # files that make .init and .fini sections work.
9588: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9589: else
9590: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9591: fi
9592: hardcode_libdir_flag_spec='-L$libdir'
9593: hardcode_direct=yes
9594: hardcode_minus_L=yes
9595: hardcode_shlibpath_var=no
9596: ;;
9597:
9598: sysv4)
9599: case $host_vendor in
9600: sni)
9601: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602: hardcode_direct=yes # is this really true???
9603: ;;
9604: siemens)
9605: ## LD is ld it makes a PLAMLIB
9606: ## CC just makes a GrossModule.
9607: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9608: reload_cmds='$CC -r -o $output$reload_objs'
9609: hardcode_direct=no
9610: ;;
9611: motorola)
9612: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9614: ;;
9615: esac
9616: runpath_var='LD_RUN_PATH'
9617: hardcode_shlibpath_var=no
9618: ;;
9619:
9620: sysv4.3*)
9621: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622: hardcode_shlibpath_var=no
9623: export_dynamic_flag_spec='-Bexport'
9624: ;;
9625:
9626: sysv4*MP*)
9627: if test -d /usr/nec; then
9628: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629: hardcode_shlibpath_var=no
9630: runpath_var=LD_RUN_PATH
9631: hardcode_runpath_var=yes
9632: ld_shlibs=yes
9633: fi
9634: ;;
9635:
9636: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9637: no_undefined_flag='${wl}-z,text'
9638: archive_cmds_need_lc=no
9639: hardcode_shlibpath_var=no
9640: runpath_var='LD_RUN_PATH'
9641:
9642: if test "$GCC" = yes; then
9643: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9645: else
9646: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9648: fi
9649: ;;
1.15 paf 9650:
1.35 moko 9651: sysv5* | sco3.2v5* | sco5v6*)
9652: # Note: We can NOT use -z defs as we might desire, because we do not
9653: # link with -lc, and that would cause any symbols used from libc to
9654: # always be unresolved, which means just about no library would
9655: # ever link correctly. If we're not using GNU ld we use -z text
9656: # though, which does catch some bad symbols but isn't as heavy-handed
9657: # as -z defs.
9658: no_undefined_flag='${wl}-z,text'
9659: allow_undefined_flag='${wl}-z,nodefs'
9660: archive_cmds_need_lc=no
9661: hardcode_shlibpath_var=no
9662: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9663: hardcode_libdir_separator=':'
9664: link_all_deplibs=yes
9665: export_dynamic_flag_spec='${wl}-Bexport'
9666: runpath_var='LD_RUN_PATH'
9667:
9668: if test "$GCC" = yes; then
9669: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671: else
9672: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9673: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674: fi
9675: ;;
1.15 paf 9676:
1.35 moko 9677: uts4*)
9678: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679: hardcode_libdir_flag_spec='-L$libdir'
9680: hardcode_shlibpath_var=no
1.15 paf 9681: ;;
1.35 moko 9682:
1.15 paf 9683: *)
1.35 moko 9684: ld_shlibs=no
1.15 paf 9685: ;;
1.35 moko 9686: esac
9687:
9688: if test x$host_vendor = xsni; then
9689: case $host in
9690: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9691: export_dynamic_flag_spec='${wl}-Blargedynsym'
9692: ;;
9693: esac
9694: fi
1.1 parser 9695: fi
9696:
1.35 moko 9697: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9698: echo "${ECHO_T}$ld_shlibs" >&6
9699: test "$ld_shlibs" = no && can_build_shared=no
9700:
9701: with_gnu_ld=$with_gnu_ld
1.1 parser 9702:
9703:
1.15 paf 9704:
9705:
9706:
1.1 parser 9707:
9708:
1.15 paf 9709:
9710:
9711:
9712:
9713:
9714:
9715:
9716:
1.35 moko 9717: #
9718: # Do we need to explicitly link libc?
9719: #
9720: case "x$archive_cmds_need_lc" in
9721: x|xyes)
9722: # Assume -lc should be added
9723: archive_cmds_need_lc=yes
9724:
9725: if test "$enable_shared" = yes && test "$GCC" = yes; then
9726: case $archive_cmds in
9727: *'~'*)
9728: # FIXME: we may have to deal with multi-command sequences.
9729: ;;
9730: '$CC '*)
9731: # Test whether the compiler implicitly links with -lc since on some
9732: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9733: # to ld, don't add -lc before -lgcc.
9734: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9735: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9736: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9737: echo $ECHO_N "(cached) $ECHO_C" >&6
1.15 paf 9738: else
1.35 moko 9739: $RM conftest*
9740: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9741:
9742: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743: (eval $ac_compile) 2>&5
9744: ac_status=$?
9745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746: (exit $ac_status); } 2>conftest.err; then
9747: soname=conftest
9748: lib=conftest
9749: libobjs=conftest.$ac_objext
9750: deplibs=
9751: wl=$lt_prog_compiler_wl
9752: pic_flag=$lt_prog_compiler_pic
9753: compiler_flags=-v
9754: linker_flags=-v
9755: verstring=
9756: output_objdir=.
9757: libname=conftest
9758: lt_save_allow_undefined_flag=$allow_undefined_flag
9759: allow_undefined_flag=
9760: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9761: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9762: ac_status=$?
9763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764: (exit $ac_status); }
9765: then
9766: lt_cv_archive_cmds_need_lc=no
9767: else
9768: lt_cv_archive_cmds_need_lc=yes
9769: fi
9770: allow_undefined_flag=$lt_save_allow_undefined_flag
9771: else
9772: cat conftest.err 1>&5
9773: fi
9774: $RM conftest*
9775:
1.15 paf 9776: fi
1.35 moko 9777: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9778: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9779: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9780: ;;
9781: esac
9782: fi
9783: ;;
9784: esac
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794:
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
1.15 paf 9840:
9841:
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856:
9857:
9858:
9859:
9860:
9861:
9862:
9863:
9864:
9865:
9866:
9867:
9868:
9869:
9870:
9871:
9872:
9873:
9874:
9875:
9876:
9877:
9878:
9879:
9880:
9881:
9882:
9883:
9884:
1.1 parser 9885:
1.15 paf 9886:
9887:
9888:
9889:
9890:
1.1 parser 9891:
1.15 paf 9892:
9893:
9894:
9895:
1.1 parser 9896:
1.15 paf 9897:
9898:
9899:
9900:
1.1 parser 9901:
9902:
9903:
9904:
9905:
9906:
9907:
1.15 paf 9908:
9909:
9910:
1.25 paf 9911:
1.15 paf 9912:
9913:
1.1 parser 9914:
1.15 paf 9915:
9916:
9917:
1.1 parser 9918:
9919:
9920:
9921:
1.15 paf 9922:
9923:
1.1 parser 9924:
1.15 paf 9925:
9926:
9927:
9928:
1.1 parser 9929:
1.25 paf 9930:
1.15 paf 9931:
9932:
1.25 paf 9933:
1.15 paf 9934:
9935:
1.35 moko 9936:
9937: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9938: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9939:
9940: if test "$GCC" = yes; then
9941: case $host_os in
9942: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9943: *) lt_awk_arg="/^libraries:/" ;;
9944: esac
9945: case $host_os in
9946: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9947: *) lt_sed_strip_eq="s,=/,/,g" ;;
9948: esac
9949: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9950: case $lt_search_path_spec in
9951: *\;*)
9952: # if the path contains ";" then we assume it to be the separator
9953: # otherwise default to the standard path separator (i.e. ":") - it is
9954: # assumed that no part of a normal pathname contains ";" but that should
9955: # okay in the real world where ";" in dirpaths is itself problematic.
9956: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9957: ;;
9958: *)
9959: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9960: ;;
9961: esac
9962: # Ok, now we have the path, separated by spaces, we can step through it
9963: # and add multilib dir if necessary.
9964: lt_tmp_lt_search_path_spec=
9965: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9966: for lt_sys_path in $lt_search_path_spec; do
9967: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9968: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9969: else
9970: test -d "$lt_sys_path" && \
9971: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9972: fi
9973: done
9974: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9975: BEGIN {RS=" "; FS="/|\n";} {
9976: lt_foo="";
9977: lt_count=0;
9978: for (lt_i = NF; lt_i > 0; lt_i--) {
9979: if ($lt_i != "" && $lt_i != ".") {
9980: if ($lt_i == "..") {
9981: lt_count++;
9982: } else {
9983: if (lt_count == 0) {
9984: lt_foo="/" $lt_i lt_foo;
9985: } else {
9986: lt_count--;
9987: }
9988: }
9989: }
9990: }
9991: if (lt_foo != "") { lt_freq[lt_foo]++; }
9992: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9993: }'`
9994: # AWK program above erroneously prepends '/' to C:/dos/paths
9995: # for these hosts.
9996: case $host_os in
9997: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9998: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9999: esac
10000: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10001: else
10002: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10003: fi
10004: library_names_spec=
10005: libname_spec='lib$name'
10006: soname_spec=
10007: shrext_cmds=".so"
10008: postinstall_cmds=
10009: postuninstall_cmds=
10010: finish_cmds=
10011: finish_eval=
10012: shlibpath_var=
10013: shlibpath_overrides_runpath=unknown
10014: version_type=none
10015: dynamic_linker="$host_os ld.so"
10016: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10017: need_lib_prefix=unknown
10018: hardcode_into_libs=no
10019:
10020: # when you set need_version to no, make sure it does not cause -set_version
10021: # flags to be left without arguments
10022: need_version=unknown
10023:
10024: case $host_os in
10025: aix3*)
10026: version_type=linux # correct to gnu/linux during the next big refactor
10027: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10028: shlibpath_var=LIBPATH
10029:
10030: # AIX 3 has no versioning support, so we append a major version to the name.
10031: soname_spec='${libname}${release}${shared_ext}$major'
10032: ;;
10033:
10034: aix[4-9]*)
10035: version_type=linux # correct to gnu/linux during the next big refactor
10036: need_lib_prefix=no
10037: need_version=no
10038: hardcode_into_libs=yes
10039: if test "$host_cpu" = ia64; then
10040: # AIX 5 supports IA64
10041: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10042: shlibpath_var=LD_LIBRARY_PATH
1.15 paf 10043: else
1.35 moko 10044: # With GCC up to 2.95.x, collect2 would create an import file
10045: # for dependence libraries. The import file would start with
10046: # the line `#! .'. This would cause the generated library to
10047: # depend on `.', always an invalid library. This was fixed in
10048: # development snapshots of GCC prior to 3.0.
10049: case $host_os in
10050: aix4 | aix4.[01] | aix4.[01].*)
10051: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10052: echo ' yes '
10053: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10054: :
10055: else
10056: can_build_shared=no
10057: fi
10058: ;;
10059: esac
10060: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10061: # soname into executable. Probably we can add versioning support to
10062: # collect2, so additional links can be useful in future.
10063: if test "$aix_use_runtimelinking" = yes; then
10064: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10065: # instead of lib<name>.a to let people know that these are not
10066: # typical AIX shared libraries.
10067: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068: else
10069: # We preserve .a as extension for shared libraries through AIX4.2
10070: # and later when we are not doing run time linking.
10071: library_names_spec='${libname}${release}.a $libname.a'
10072: soname_spec='${libname}${release}${shared_ext}$major'
10073: fi
10074: shlibpath_var=LIBPATH
1.15 paf 10075: fi
1.35 moko 10076: ;;
10077:
10078: amigaos*)
10079: case $host_cpu in
10080: powerpc)
10081: # Since July 2007 AmigaOS4 officially supports .so libraries.
10082: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084: ;;
10085: m68k)
10086: library_names_spec='$libname.ixlibrary $libname.a'
10087: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10088: 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'
10089: ;;
10090: esac
10091: ;;
10092:
10093: beos*)
10094: library_names_spec='${libname}${shared_ext}'
10095: dynamic_linker="$host_os ld.so"
10096: shlibpath_var=LIBRARY_PATH
10097: ;;
10098:
10099: bsdi[45]*)
10100: version_type=linux # correct to gnu/linux during the next big refactor
10101: need_version=no
10102: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103: soname_spec='${libname}${release}${shared_ext}$major'
10104: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10105: shlibpath_var=LD_LIBRARY_PATH
10106: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10107: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10108: # the default ld.so.conf also contains /usr/contrib/lib and
10109: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10110: # libtool to hard-code these into programs
10111: ;;
10112:
10113: cygwin* | mingw* | pw32* | cegcc*)
10114: version_type=windows
10115: shrext_cmds=".dll"
10116: need_version=no
10117: need_lib_prefix=no
10118:
10119: case $GCC,$cc_basename in
10120: yes,*)
10121: # gcc
10122: library_names_spec='$libname.dll.a'
10123: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10124: postinstall_cmds='base_file=`basename \${file}`~
10125: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10126: dldir=$destdir/`dirname \$dlpath`~
10127: test -d \$dldir || mkdir -p \$dldir~
10128: $install_prog $dir/$dlname \$dldir/$dlname~
10129: chmod a+x \$dldir/$dlname~
10130: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10131: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10132: fi'
10133: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10134: dlpath=$dir/\$dldll~
10135: $RM \$dlpath'
10136: shlibpath_overrides_runpath=yes
10137:
10138: case $host_os in
10139: cygwin*)
10140: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10141: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10142:
10143: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10144: ;;
10145: mingw* | cegcc*)
10146: # MinGW DLLs use traditional 'lib' prefix
10147: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10148: ;;
10149: pw32*)
10150: # pw32 DLLs use 'pw' prefix rather than 'lib'
10151: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10152: ;;
10153: esac
10154: dynamic_linker='Win32 ld.exe'
10155: ;;
10156:
10157: *,cl*)
10158: # Native MSVC
10159: libname_spec='$name'
10160: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161: library_names_spec='${libname}.dll.lib'
10162:
10163: case $build_os in
10164: mingw*)
10165: sys_lib_search_path_spec=
10166: lt_save_ifs=$IFS
10167: IFS=';'
10168: for lt_path in $LIB
10169: do
10170: IFS=$lt_save_ifs
10171: # Let DOS variable expansion print the short 8.3 style file name.
10172: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10173: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10174: done
10175: IFS=$lt_save_ifs
10176: # Convert to MSYS style.
10177: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10178: ;;
10179: cygwin*)
10180: # Convert to unix form, then to dos form, then back to unix form
10181: # but this time dos style (no spaces!) so that the unix form looks
10182: # like /cygdrive/c/PROGRA~1:/cygdr...
10183: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10184: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10185: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10186: ;;
10187: *)
10188: sys_lib_search_path_spec="$LIB"
10189: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10190: # It is most probably a Windows format PATH.
10191: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10192: else
10193: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10194: fi
10195: # FIXME: find the short name or the path components, as spaces are
10196: # common. (e.g. "Program Files" -> "PROGRA~1")
10197: ;;
10198: esac
10199:
10200: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10201: postinstall_cmds='base_file=`basename \${file}`~
10202: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10203: dldir=$destdir/`dirname \$dlpath`~
10204: test -d \$dldir || mkdir -p \$dldir~
10205: $install_prog $dir/$dlname \$dldir/$dlname'
10206: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207: dlpath=$dir/\$dldll~
10208: $RM \$dlpath'
10209: shlibpath_overrides_runpath=yes
10210: dynamic_linker='Win32 link.exe'
10211: ;;
10212:
10213: *)
10214: # Assume MSVC wrapper
10215: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10216: dynamic_linker='Win32 ld.exe'
10217: ;;
10218: esac
10219: # FIXME: first we should search . and the directory the executable is in
10220: shlibpath_var=PATH
10221: ;;
10222:
10223: darwin* | rhapsody*)
10224: dynamic_linker="$host_os dyld"
10225: version_type=darwin
10226: need_lib_prefix=no
10227: need_version=no
10228: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10229: soname_spec='${libname}${release}${major}$shared_ext'
10230: shlibpath_overrides_runpath=yes
10231: shlibpath_var=DYLD_LIBRARY_PATH
10232: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10233:
10234: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10235: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10236: ;;
10237:
10238: dgux*)
10239: version_type=linux # correct to gnu/linux during the next big refactor
10240: need_lib_prefix=no
10241: need_version=no
10242: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10243: soname_spec='${libname}${release}${shared_ext}$major'
10244: shlibpath_var=LD_LIBRARY_PATH
10245: ;;
10246:
10247: freebsd* | dragonfly*)
10248: # DragonFly does not have aout. When/if they implement a new
10249: # versioning mechanism, adjust this.
10250: if test -x /usr/bin/objformat; then
10251: objformat=`/usr/bin/objformat`
1.15 paf 10252: else
1.35 moko 10253: case $host_os in
10254: freebsd[23].*) objformat=aout ;;
10255: *) objformat=elf ;;
10256: esac
10257: fi
10258: version_type=freebsd-$objformat
10259: case $version_type in
10260: freebsd-elf*)
10261: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10262: need_version=no
10263: need_lib_prefix=no
10264: ;;
10265: freebsd-*)
10266: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10267: need_version=yes
10268: ;;
10269: esac
10270: shlibpath_var=LD_LIBRARY_PATH
10271: case $host_os in
10272: freebsd2.*)
10273: shlibpath_overrides_runpath=yes
10274: ;;
10275: freebsd3.[01]* | freebsdelf3.[01]*)
10276: shlibpath_overrides_runpath=yes
10277: hardcode_into_libs=yes
10278: ;;
10279: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10280: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10281: shlibpath_overrides_runpath=no
10282: hardcode_into_libs=yes
10283: ;;
10284: *) # from 4.6 on, and DragonFly
10285: shlibpath_overrides_runpath=yes
10286: hardcode_into_libs=yes
10287: ;;
10288: esac
10289: ;;
10290:
10291: gnu*)
10292: version_type=linux # correct to gnu/linux during the next big refactor
10293: need_lib_prefix=no
10294: need_version=no
10295: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10296: soname_spec='${libname}${release}${shared_ext}$major'
10297: shlibpath_var=LD_LIBRARY_PATH
10298: shlibpath_overrides_runpath=no
10299: hardcode_into_libs=yes
10300: ;;
10301:
10302: haiku*)
10303: version_type=linux # correct to gnu/linux during the next big refactor
10304: need_lib_prefix=no
10305: need_version=no
10306: dynamic_linker="$host_os runtime_loader"
10307: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308: soname_spec='${libname}${release}${shared_ext}$major'
10309: shlibpath_var=LIBRARY_PATH
10310: shlibpath_overrides_runpath=yes
10311: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10312: hardcode_into_libs=yes
10313: ;;
10314:
10315: hpux9* | hpux10* | hpux11*)
10316: # Give a soname corresponding to the major version so that dld.sl refuses to
10317: # link against other versions.
10318: version_type=sunos
10319: need_lib_prefix=no
10320: need_version=no
10321: case $host_cpu in
10322: ia64*)
10323: shrext_cmds='.so'
10324: hardcode_into_libs=yes
10325: dynamic_linker="$host_os dld.so"
10326: shlibpath_var=LD_LIBRARY_PATH
10327: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329: soname_spec='${libname}${release}${shared_ext}$major'
10330: if test "X$HPUX_IA64_MODE" = X32; then
10331: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332: else
10333: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10334: fi
10335: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336: ;;
10337: hppa*64*)
10338: shrext_cmds='.sl'
10339: hardcode_into_libs=yes
10340: dynamic_linker="$host_os dld.sl"
10341: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344: soname_spec='${libname}${release}${shared_ext}$major'
10345: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347: ;;
10348: *)
10349: shrext_cmds='.sl'
10350: dynamic_linker="$host_os dld.sl"
10351: shlibpath_var=SHLIB_PATH
10352: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354: soname_spec='${libname}${release}${shared_ext}$major'
10355: ;;
10356: esac
10357: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10358: postinstall_cmds='chmod 555 $lib'
10359: # or fails outright, so override atomically:
10360: install_override_mode=555
10361: ;;
10362:
10363: interix[3-9]*)
10364: version_type=linux # correct to gnu/linux during the next big refactor
10365: need_lib_prefix=no
10366: need_version=no
10367: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368: soname_spec='${libname}${release}${shared_ext}$major'
10369: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10370: shlibpath_var=LD_LIBRARY_PATH
10371: shlibpath_overrides_runpath=no
10372: hardcode_into_libs=yes
10373: ;;
10374:
10375: irix5* | irix6* | nonstopux*)
10376: case $host_os in
10377: nonstopux*) version_type=nonstopux ;;
10378: *)
10379: if test "$lt_cv_prog_gnu_ld" = yes; then
10380: version_type=linux # correct to gnu/linux during the next big refactor
10381: else
10382: version_type=irix
10383: fi ;;
10384: esac
10385: need_lib_prefix=no
10386: need_version=no
10387: soname_spec='${libname}${release}${shared_ext}$major'
10388: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10389: case $host_os in
10390: irix5* | nonstopux*)
10391: libsuff= shlibsuff=
10392: ;;
10393: *)
10394: case $LD in # libtool.m4 will add one of these switches to LD
10395: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10396: libsuff= shlibsuff= libmagic=32-bit;;
10397: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10398: libsuff=32 shlibsuff=N32 libmagic=N32;;
10399: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10400: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10401: *) libsuff= shlibsuff= libmagic=never-match;;
10402: esac
10403: ;;
10404: esac
10405: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10406: shlibpath_overrides_runpath=no
10407: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10408: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10409: hardcode_into_libs=yes
10410: ;;
10411:
10412: # No shared lib support for Linux oldld, aout, or coff.
10413: linux*oldld* | linux*aout* | linux*coff*)
10414: dynamic_linker=no
10415: ;;
10416:
10417: # This must be glibc/ELF.
10418: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10419: version_type=linux # correct to gnu/linux during the next big refactor
10420: need_lib_prefix=no
10421: need_version=no
10422: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423: soname_spec='${libname}${release}${shared_ext}$major'
10424: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10425: shlibpath_var=LD_LIBRARY_PATH
10426: shlibpath_overrides_runpath=no
10427:
10428: # Some binutils ld are patched to set DT_RUNPATH
10429: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10430: echo $ECHO_N "(cached) $ECHO_C" >&6
10431: else
10432: lt_cv_shlibpath_overrides_runpath=no
10433: save_LDFLAGS=$LDFLAGS
10434: save_libdir=$libdir
10435: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10436: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10437: cat >conftest.$ac_ext <<_ACEOF
10438: /* confdefs.h. */
10439: _ACEOF
10440: cat confdefs.h >>conftest.$ac_ext
10441: cat >>conftest.$ac_ext <<_ACEOF
10442: /* end confdefs.h. */
10443:
10444: int
10445: main ()
10446: {
10447:
10448: ;
10449: return 0;
10450: }
10451: _ACEOF
10452: rm -f conftest.$ac_objext conftest$ac_exeext
10453: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454: (eval $ac_link) 2>conftest.er1
10455: ac_status=$?
10456: grep -v '^ *+' conftest.er1 >conftest.err
10457: rm -f conftest.er1
10458: cat conftest.err >&5
10459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460: (exit $ac_status); } &&
10461: { ac_try='test -z "$ac_c_werror_flag"
10462: || test ! -s conftest.err'
10463: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464: (eval $ac_try) 2>&5
10465: ac_status=$?
10466: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467: (exit $ac_status); }; } &&
10468: { ac_try='test -s conftest$ac_exeext'
10469: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470: (eval $ac_try) 2>&5
10471: ac_status=$?
10472: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473: (exit $ac_status); }; }; then
10474: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10475: lt_cv_shlibpath_overrides_runpath=yes
10476: fi
10477:
10478: else
10479: echo "$as_me: failed program was:" >&5
10480: sed 's/^/| /' conftest.$ac_ext >&5
10481:
10482: fi
10483: rm -f conftest.err conftest.$ac_objext \
10484: conftest$ac_exeext conftest.$ac_ext
10485: LDFLAGS=$save_LDFLAGS
10486: libdir=$save_libdir
10487:
10488: fi
10489:
10490: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10491:
10492: # This implies no fast_install, which is unacceptable.
10493: # Some rework will be needed to allow for fast_install
10494: # before this can be enabled.
10495: hardcode_into_libs=yes
10496:
10497: # Append ld.so.conf contents to the search path
10498: if test -f /etc/ld.so.conf; then
10499: 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' ' '`
10500: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10501: fi
10502:
10503: # We used to test for /lib/ld.so.1 and disable shared libraries on
10504: # powerpc, because MkLinux only supported shared libraries with the
10505: # GNU dynamic linker. Since this was broken with cross compilers,
10506: # most powerpc-linux boxes support dynamic linking these days and
10507: # people can always --disable-shared, the test was removed, and we
10508: # assume the GNU/Linux dynamic linker is in use.
10509: dynamic_linker='GNU/Linux ld.so'
10510: ;;
10511:
10512: netbsd*)
10513: version_type=sunos
10514: need_lib_prefix=no
10515: need_version=no
10516: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10517: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10518: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10519: dynamic_linker='NetBSD (a.out) ld.so'
10520: else
10521: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10522: soname_spec='${libname}${release}${shared_ext}$major'
10523: dynamic_linker='NetBSD ld.elf_so'
10524: fi
10525: shlibpath_var=LD_LIBRARY_PATH
10526: shlibpath_overrides_runpath=yes
10527: hardcode_into_libs=yes
10528: ;;
10529:
10530: newsos6)
10531: version_type=linux # correct to gnu/linux during the next big refactor
10532: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533: shlibpath_var=LD_LIBRARY_PATH
10534: shlibpath_overrides_runpath=yes
10535: ;;
10536:
10537: *nto* | *qnx*)
10538: version_type=qnx
10539: need_lib_prefix=no
10540: need_version=no
10541: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542: soname_spec='${libname}${release}${shared_ext}$major'
10543: shlibpath_var=LD_LIBRARY_PATH
10544: shlibpath_overrides_runpath=no
10545: hardcode_into_libs=yes
10546: dynamic_linker='ldqnx.so'
10547: ;;
10548:
10549: openbsd*)
10550: version_type=sunos
10551: sys_lib_dlsearch_path_spec="/usr/lib"
10552: need_lib_prefix=no
10553: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10554: case $host_os in
10555: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10556: *) need_version=no ;;
10557: esac
10558: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10559: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10560: shlibpath_var=LD_LIBRARY_PATH
10561: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10562: case $host_os in
10563: openbsd2.[89] | openbsd2.[89].*)
10564: shlibpath_overrides_runpath=no
10565: ;;
10566: *)
10567: shlibpath_overrides_runpath=yes
10568: ;;
10569: esac
10570: else
10571: shlibpath_overrides_runpath=yes
10572: fi
10573: ;;
10574:
10575: os2*)
10576: libname_spec='$name'
10577: shrext_cmds=".dll"
10578: need_lib_prefix=no
10579: library_names_spec='$libname${shared_ext} $libname.a'
10580: dynamic_linker='OS/2 ld.exe'
10581: shlibpath_var=LIBPATH
10582: ;;
10583:
10584: osf3* | osf4* | osf5*)
10585: version_type=osf
10586: need_lib_prefix=no
10587: need_version=no
10588: soname_spec='${libname}${release}${shared_ext}$major'
10589: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590: shlibpath_var=LD_LIBRARY_PATH
10591: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10592: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10593: ;;
10594:
10595: rdos*)
10596: dynamic_linker=no
10597: ;;
10598:
10599: solaris*)
10600: version_type=linux # correct to gnu/linux during the next big refactor
10601: need_lib_prefix=no
10602: need_version=no
10603: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604: soname_spec='${libname}${release}${shared_ext}$major'
10605: shlibpath_var=LD_LIBRARY_PATH
10606: shlibpath_overrides_runpath=yes
10607: hardcode_into_libs=yes
10608: # ldd complains unless libraries are executable
10609: postinstall_cmds='chmod +x $lib'
10610: ;;
10611:
10612: sunos4*)
10613: version_type=sunos
10614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10616: shlibpath_var=LD_LIBRARY_PATH
10617: shlibpath_overrides_runpath=yes
10618: if test "$with_gnu_ld" = yes; then
10619: need_lib_prefix=no
10620: fi
10621: need_version=yes
10622: ;;
10623:
10624: sysv4 | sysv4.3*)
10625: version_type=linux # correct to gnu/linux during the next big refactor
10626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627: soname_spec='${libname}${release}${shared_ext}$major'
10628: shlibpath_var=LD_LIBRARY_PATH
10629: case $host_vendor in
10630: sni)
10631: shlibpath_overrides_runpath=no
10632: need_lib_prefix=no
10633: runpath_var=LD_RUN_PATH
10634: ;;
10635: siemens)
10636: need_lib_prefix=no
10637: ;;
10638: motorola)
10639: need_lib_prefix=no
10640: need_version=no
10641: shlibpath_overrides_runpath=no
10642: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10643: ;;
10644: esac
10645: ;;
10646:
10647: sysv4*MP*)
10648: if test -d /usr/nec ;then
10649: version_type=linux # correct to gnu/linux during the next big refactor
10650: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10651: soname_spec='$libname${shared_ext}.$major'
10652: shlibpath_var=LD_LIBRARY_PATH
10653: fi
10654: ;;
10655:
10656: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10657: version_type=freebsd-elf
10658: need_lib_prefix=no
10659: need_version=no
10660: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10661: soname_spec='${libname}${release}${shared_ext}$major'
10662: shlibpath_var=LD_LIBRARY_PATH
10663: shlibpath_overrides_runpath=yes
10664: hardcode_into_libs=yes
10665: if test "$with_gnu_ld" = yes; then
10666: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10667: else
10668: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10669: case $host_os in
10670: sco3.2v5*)
10671: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10672: ;;
10673: esac
10674: fi
10675: sys_lib_dlsearch_path_spec='/usr/lib'
10676: ;;
10677:
10678: tpf*)
10679: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10680: version_type=linux # correct to gnu/linux during the next big refactor
10681: need_lib_prefix=no
10682: need_version=no
10683: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684: shlibpath_var=LD_LIBRARY_PATH
10685: shlibpath_overrides_runpath=no
10686: hardcode_into_libs=yes
10687: ;;
10688:
10689: uts4*)
10690: version_type=linux # correct to gnu/linux during the next big refactor
10691: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692: soname_spec='${libname}${release}${shared_ext}$major'
10693: shlibpath_var=LD_LIBRARY_PATH
10694: ;;
10695:
10696: *)
10697: dynamic_linker=no
10698: ;;
10699: esac
10700: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10701: echo "${ECHO_T}$dynamic_linker" >&6
10702: test "$dynamic_linker" = no && can_build_shared=no
10703:
10704: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10705: if test "$GCC" = yes; then
10706: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10707: fi
10708:
10709: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10710: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10711: fi
10712: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10713: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10714: fi
10715:
10716:
10717:
10718:
10719:
10720:
10721:
10722:
10723:
10724:
10725:
10726:
10727:
10728:
10729:
10730:
10731:
10732:
10733:
10734:
10735:
10736:
10737:
10738:
10739:
10740:
10741:
10742:
10743:
10744:
10745:
10746:
10747:
10748:
10749:
10750:
10751:
10752:
10753:
10754:
10755:
10756:
10757:
10758:
10759:
10760:
10761:
10762:
10763:
10764:
10765:
10766:
10767:
10768:
10769:
10770:
10771:
10772:
10773:
10774:
10775:
10776:
10777:
10778:
10779:
10780:
10781:
10782:
10783:
10784:
10785:
10786:
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10808: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10809: hardcode_action=
10810: if test -n "$hardcode_libdir_flag_spec" ||
10811: test -n "$runpath_var" ||
10812: test "X$hardcode_automatic" = "Xyes" ; then
10813:
10814: # We can hardcode non-existent directories.
10815: if test "$hardcode_direct" != no &&
10816: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10817: # have to relink, otherwise we might link with an installed library
10818: # when we should be linking with a yet-to-be-installed one
10819: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10820: test "$hardcode_minus_L" != no; then
10821: # Linking always hardcodes the temporary library directory.
10822: hardcode_action=relink
10823: else
10824: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10825: hardcode_action=immediate
10826: fi
10827: else
10828: # We cannot hardcode anything, or else we can only hardcode existing
10829: # directories.
10830: hardcode_action=unsupported
10831: fi
10832: echo "$as_me:$LINENO: result: $hardcode_action" >&5
10833: echo "${ECHO_T}$hardcode_action" >&6
10834:
10835: if test "$hardcode_action" = relink ||
10836: test "$inherit_rpath" = yes; then
10837: # Fast installation is not supported
10838: enable_fast_install=no
10839: elif test "$shlibpath_overrides_runpath" = yes ||
10840: test "$enable_shared" = no; then
10841: # Fast installation is not necessary
10842: enable_fast_install=needless
10843: fi
10844:
10845:
10846:
10847:
10848:
10849:
10850: if test "x$enable_dlopen" != xyes; then
10851: enable_dlopen=unknown
10852: enable_dlopen_self=unknown
10853: enable_dlopen_self_static=unknown
10854: else
10855: lt_cv_dlopen=no
10856: lt_cv_dlopen_libs=
10857:
10858: case $host_os in
10859: beos*)
10860: lt_cv_dlopen="load_add_on"
10861: lt_cv_dlopen_libs=
10862: lt_cv_dlopen_self=yes
10863: ;;
10864:
10865: mingw* | pw32* | cegcc*)
10866: lt_cv_dlopen="LoadLibrary"
10867: lt_cv_dlopen_libs=
10868: ;;
10869:
10870: cygwin*)
10871: lt_cv_dlopen="dlopen"
10872: lt_cv_dlopen_libs=
10873: ;;
10874:
10875: darwin*)
10876: # if libdl is installed we need to link against it
10877: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10878: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10879: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10880: echo $ECHO_N "(cached) $ECHO_C" >&6
10881: else
10882: ac_check_lib_save_LIBS=$LIBS
10883: LIBS="-ldl $LIBS"
10884: cat >conftest.$ac_ext <<_ACEOF
10885: /* confdefs.h. */
10886: _ACEOF
10887: cat confdefs.h >>conftest.$ac_ext
10888: cat >>conftest.$ac_ext <<_ACEOF
10889: /* end confdefs.h. */
10890:
10891: /* Override any gcc2 internal prototype to avoid an error. */
10892: #ifdef __cplusplus
10893: extern "C"
10894: #endif
10895: /* We use char because int might match the return type of a gcc2
10896: builtin and then its argument prototype would still apply. */
10897: char dlopen ();
10898: int
10899: main ()
10900: {
10901: dlopen ();
10902: ;
10903: return 0;
10904: }
10905: _ACEOF
10906: rm -f conftest.$ac_objext conftest$ac_exeext
10907: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10908: (eval $ac_link) 2>conftest.er1
10909: ac_status=$?
10910: grep -v '^ *+' conftest.er1 >conftest.err
10911: rm -f conftest.er1
10912: cat conftest.err >&5
10913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914: (exit $ac_status); } &&
10915: { ac_try='test -z "$ac_c_werror_flag"
10916: || test ! -s conftest.err'
10917: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918: (eval $ac_try) 2>&5
10919: ac_status=$?
10920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921: (exit $ac_status); }; } &&
10922: { ac_try='test -s conftest$ac_exeext'
10923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924: (eval $ac_try) 2>&5
10925: ac_status=$?
10926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927: (exit $ac_status); }; }; then
10928: ac_cv_lib_dl_dlopen=yes
10929: else
10930: echo "$as_me: failed program was:" >&5
10931: sed 's/^/| /' conftest.$ac_ext >&5
10932:
10933: ac_cv_lib_dl_dlopen=no
10934: fi
10935: rm -f conftest.err conftest.$ac_objext \
10936: conftest$ac_exeext conftest.$ac_ext
10937: LIBS=$ac_check_lib_save_LIBS
10938: fi
10939: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10940: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10941: if test $ac_cv_lib_dl_dlopen = yes; then
10942: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10943: else
10944:
10945: lt_cv_dlopen="dyld"
10946: lt_cv_dlopen_libs=
10947: lt_cv_dlopen_self=yes
10948:
10949: fi
10950:
10951: ;;
10952:
10953: *)
10954: echo "$as_me:$LINENO: checking for shl_load" >&5
10955: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10956: if test "${ac_cv_func_shl_load+set}" = set; then
10957: echo $ECHO_N "(cached) $ECHO_C" >&6
10958: else
10959: cat >conftest.$ac_ext <<_ACEOF
10960: /* confdefs.h. */
10961: _ACEOF
10962: cat confdefs.h >>conftest.$ac_ext
10963: cat >>conftest.$ac_ext <<_ACEOF
10964: /* end confdefs.h. */
10965: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10966: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10967: #define shl_load innocuous_shl_load
10968:
10969: /* System header to define __stub macros and hopefully few prototypes,
10970: which can conflict with char shl_load (); below.
10971: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972: <limits.h> exists even on freestanding compilers. */
10973:
10974: #ifdef __STDC__
10975: # include <limits.h>
10976: #else
10977: # include <assert.h>
10978: #endif
10979:
10980: #undef shl_load
10981:
10982: /* Override any gcc2 internal prototype to avoid an error. */
10983: #ifdef __cplusplus
10984: extern "C"
10985: {
10986: #endif
10987: /* We use char because int might match the return type of a gcc2
10988: builtin and then its argument prototype would still apply. */
10989: char shl_load ();
10990: /* The GNU C library defines this for functions which it implements
10991: to always fail with ENOSYS. Some functions are actually named
10992: something starting with __ and the normal name is an alias. */
10993: #if defined (__stub_shl_load) || defined (__stub___shl_load)
10994: choke me
10995: #else
10996: char (*f) () = shl_load;
10997: #endif
10998: #ifdef __cplusplus
10999: }
11000: #endif
11001:
11002: int
11003: main ()
11004: {
11005: return f != shl_load;
11006: ;
11007: return 0;
11008: }
11009: _ACEOF
11010: rm -f conftest.$ac_objext conftest$ac_exeext
11011: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012: (eval $ac_link) 2>conftest.er1
11013: ac_status=$?
11014: grep -v '^ *+' conftest.er1 >conftest.err
11015: rm -f conftest.er1
11016: cat conftest.err >&5
11017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018: (exit $ac_status); } &&
11019: { ac_try='test -z "$ac_c_werror_flag"
11020: || test ! -s conftest.err'
11021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022: (eval $ac_try) 2>&5
11023: ac_status=$?
11024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025: (exit $ac_status); }; } &&
11026: { ac_try='test -s conftest$ac_exeext'
11027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028: (eval $ac_try) 2>&5
11029: ac_status=$?
11030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031: (exit $ac_status); }; }; then
11032: ac_cv_func_shl_load=yes
11033: else
11034: echo "$as_me: failed program was:" >&5
11035: sed 's/^/| /' conftest.$ac_ext >&5
11036:
11037: ac_cv_func_shl_load=no
11038: fi
11039: rm -f conftest.err conftest.$ac_objext \
11040: conftest$ac_exeext conftest.$ac_ext
11041: fi
11042: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11043: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11044: if test $ac_cv_func_shl_load = yes; then
11045: lt_cv_dlopen="shl_load"
11046: else
11047: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11048: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11049: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11050: echo $ECHO_N "(cached) $ECHO_C" >&6
11051: else
11052: ac_check_lib_save_LIBS=$LIBS
11053: LIBS="-ldld $LIBS"
11054: cat >conftest.$ac_ext <<_ACEOF
11055: /* confdefs.h. */
11056: _ACEOF
11057: cat confdefs.h >>conftest.$ac_ext
11058: cat >>conftest.$ac_ext <<_ACEOF
11059: /* end confdefs.h. */
11060:
11061: /* Override any gcc2 internal prototype to avoid an error. */
11062: #ifdef __cplusplus
11063: extern "C"
11064: #endif
11065: /* We use char because int might match the return type of a gcc2
11066: builtin and then its argument prototype would still apply. */
11067: char shl_load ();
11068: int
11069: main ()
11070: {
11071: shl_load ();
11072: ;
11073: return 0;
11074: }
11075: _ACEOF
11076: rm -f conftest.$ac_objext conftest$ac_exeext
11077: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11078: (eval $ac_link) 2>conftest.er1
11079: ac_status=$?
11080: grep -v '^ *+' conftest.er1 >conftest.err
11081: rm -f conftest.er1
11082: cat conftest.err >&5
11083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084: (exit $ac_status); } &&
11085: { ac_try='test -z "$ac_c_werror_flag"
11086: || test ! -s conftest.err'
11087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088: (eval $ac_try) 2>&5
11089: ac_status=$?
11090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091: (exit $ac_status); }; } &&
11092: { ac_try='test -s conftest$ac_exeext'
11093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094: (eval $ac_try) 2>&5
11095: ac_status=$?
11096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097: (exit $ac_status); }; }; then
11098: ac_cv_lib_dld_shl_load=yes
11099: else
11100: echo "$as_me: failed program was:" >&5
11101: sed 's/^/| /' conftest.$ac_ext >&5
11102:
11103: ac_cv_lib_dld_shl_load=no
11104: fi
11105: rm -f conftest.err conftest.$ac_objext \
11106: conftest$ac_exeext conftest.$ac_ext
11107: LIBS=$ac_check_lib_save_LIBS
11108: fi
11109: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11110: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11111: if test $ac_cv_lib_dld_shl_load = yes; then
11112: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11113: else
11114: echo "$as_me:$LINENO: checking for dlopen" >&5
11115: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11116: if test "${ac_cv_func_dlopen+set}" = set; then
11117: echo $ECHO_N "(cached) $ECHO_C" >&6
11118: else
11119: cat >conftest.$ac_ext <<_ACEOF
11120: /* confdefs.h. */
11121: _ACEOF
11122: cat confdefs.h >>conftest.$ac_ext
11123: cat >>conftest.$ac_ext <<_ACEOF
11124: /* end confdefs.h. */
11125: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11126: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127: #define dlopen innocuous_dlopen
11128:
11129: /* System header to define __stub macros and hopefully few prototypes,
11130: which can conflict with char dlopen (); below.
11131: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132: <limits.h> exists even on freestanding compilers. */
11133:
11134: #ifdef __STDC__
11135: # include <limits.h>
11136: #else
11137: # include <assert.h>
11138: #endif
11139:
11140: #undef dlopen
11141:
11142: /* Override any gcc2 internal prototype to avoid an error. */
11143: #ifdef __cplusplus
11144: extern "C"
11145: {
11146: #endif
11147: /* We use char because int might match the return type of a gcc2
11148: builtin and then its argument prototype would still apply. */
11149: char dlopen ();
11150: /* The GNU C library defines this for functions which it implements
11151: to always fail with ENOSYS. Some functions are actually named
11152: something starting with __ and the normal name is an alias. */
11153: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11154: choke me
11155: #else
11156: char (*f) () = dlopen;
11157: #endif
11158: #ifdef __cplusplus
11159: }
11160: #endif
11161:
11162: int
11163: main ()
11164: {
11165: return f != dlopen;
11166: ;
11167: return 0;
11168: }
11169: _ACEOF
11170: rm -f conftest.$ac_objext conftest$ac_exeext
11171: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172: (eval $ac_link) 2>conftest.er1
11173: ac_status=$?
11174: grep -v '^ *+' conftest.er1 >conftest.err
11175: rm -f conftest.er1
11176: cat conftest.err >&5
11177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178: (exit $ac_status); } &&
11179: { ac_try='test -z "$ac_c_werror_flag"
11180: || test ! -s conftest.err'
11181: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182: (eval $ac_try) 2>&5
11183: ac_status=$?
11184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185: (exit $ac_status); }; } &&
11186: { ac_try='test -s conftest$ac_exeext'
11187: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188: (eval $ac_try) 2>&5
11189: ac_status=$?
11190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191: (exit $ac_status); }; }; then
11192: ac_cv_func_dlopen=yes
11193: else
11194: echo "$as_me: failed program was:" >&5
11195: sed 's/^/| /' conftest.$ac_ext >&5
11196:
11197: ac_cv_func_dlopen=no
11198: fi
11199: rm -f conftest.err conftest.$ac_objext \
11200: conftest$ac_exeext conftest.$ac_ext
11201: fi
11202: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11203: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11204: if test $ac_cv_func_dlopen = yes; then
11205: lt_cv_dlopen="dlopen"
11206: else
11207: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11208: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11209: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11210: echo $ECHO_N "(cached) $ECHO_C" >&6
11211: else
11212: ac_check_lib_save_LIBS=$LIBS
11213: LIBS="-ldl $LIBS"
11214: cat >conftest.$ac_ext <<_ACEOF
11215: /* confdefs.h. */
11216: _ACEOF
11217: cat confdefs.h >>conftest.$ac_ext
11218: cat >>conftest.$ac_ext <<_ACEOF
11219: /* end confdefs.h. */
11220:
11221: /* Override any gcc2 internal prototype to avoid an error. */
11222: #ifdef __cplusplus
11223: extern "C"
11224: #endif
11225: /* We use char because int might match the return type of a gcc2
11226: builtin and then its argument prototype would still apply. */
11227: char dlopen ();
11228: int
11229: main ()
11230: {
11231: dlopen ();
11232: ;
11233: return 0;
11234: }
11235: _ACEOF
11236: rm -f conftest.$ac_objext conftest$ac_exeext
11237: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238: (eval $ac_link) 2>conftest.er1
11239: ac_status=$?
11240: grep -v '^ *+' conftest.er1 >conftest.err
11241: rm -f conftest.er1
11242: cat conftest.err >&5
11243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244: (exit $ac_status); } &&
11245: { ac_try='test -z "$ac_c_werror_flag"
11246: || test ! -s conftest.err'
11247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248: (eval $ac_try) 2>&5
11249: ac_status=$?
11250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251: (exit $ac_status); }; } &&
11252: { ac_try='test -s conftest$ac_exeext'
11253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254: (eval $ac_try) 2>&5
11255: ac_status=$?
11256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257: (exit $ac_status); }; }; then
11258: ac_cv_lib_dl_dlopen=yes
11259: else
11260: echo "$as_me: failed program was:" >&5
11261: sed 's/^/| /' conftest.$ac_ext >&5
11262:
11263: ac_cv_lib_dl_dlopen=no
11264: fi
11265: rm -f conftest.err conftest.$ac_objext \
11266: conftest$ac_exeext conftest.$ac_ext
11267: LIBS=$ac_check_lib_save_LIBS
11268: fi
11269: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11270: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11271: if test $ac_cv_lib_dl_dlopen = yes; then
11272: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11273: else
11274: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11275: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11276: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11277: echo $ECHO_N "(cached) $ECHO_C" >&6
11278: else
11279: ac_check_lib_save_LIBS=$LIBS
11280: LIBS="-lsvld $LIBS"
11281: cat >conftest.$ac_ext <<_ACEOF
11282: /* confdefs.h. */
11283: _ACEOF
11284: cat confdefs.h >>conftest.$ac_ext
11285: cat >>conftest.$ac_ext <<_ACEOF
11286: /* end confdefs.h. */
11287:
11288: /* Override any gcc2 internal prototype to avoid an error. */
11289: #ifdef __cplusplus
11290: extern "C"
11291: #endif
11292: /* We use char because int might match the return type of a gcc2
11293: builtin and then its argument prototype would still apply. */
11294: char dlopen ();
11295: int
11296: main ()
11297: {
11298: dlopen ();
11299: ;
11300: return 0;
11301: }
11302: _ACEOF
11303: rm -f conftest.$ac_objext conftest$ac_exeext
11304: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305: (eval $ac_link) 2>conftest.er1
11306: ac_status=$?
11307: grep -v '^ *+' conftest.er1 >conftest.err
11308: rm -f conftest.er1
11309: cat conftest.err >&5
11310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311: (exit $ac_status); } &&
11312: { ac_try='test -z "$ac_c_werror_flag"
11313: || test ! -s conftest.err'
11314: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315: (eval $ac_try) 2>&5
11316: ac_status=$?
11317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318: (exit $ac_status); }; } &&
11319: { ac_try='test -s conftest$ac_exeext'
11320: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321: (eval $ac_try) 2>&5
11322: ac_status=$?
11323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324: (exit $ac_status); }; }; then
11325: ac_cv_lib_svld_dlopen=yes
11326: else
11327: echo "$as_me: failed program was:" >&5
11328: sed 's/^/| /' conftest.$ac_ext >&5
11329:
11330: ac_cv_lib_svld_dlopen=no
11331: fi
11332: rm -f conftest.err conftest.$ac_objext \
11333: conftest$ac_exeext conftest.$ac_ext
11334: LIBS=$ac_check_lib_save_LIBS
11335: fi
11336: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11337: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11338: if test $ac_cv_lib_svld_dlopen = yes; then
11339: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11340: else
11341: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11342: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11343: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11344: echo $ECHO_N "(cached) $ECHO_C" >&6
11345: else
11346: ac_check_lib_save_LIBS=$LIBS
11347: LIBS="-ldld $LIBS"
11348: cat >conftest.$ac_ext <<_ACEOF
11349: /* confdefs.h. */
11350: _ACEOF
11351: cat confdefs.h >>conftest.$ac_ext
11352: cat >>conftest.$ac_ext <<_ACEOF
11353: /* end confdefs.h. */
11354:
11355: /* Override any gcc2 internal prototype to avoid an error. */
11356: #ifdef __cplusplus
11357: extern "C"
11358: #endif
11359: /* We use char because int might match the return type of a gcc2
11360: builtin and then its argument prototype would still apply. */
11361: char dld_link ();
11362: int
11363: main ()
11364: {
11365: dld_link ();
11366: ;
11367: return 0;
11368: }
11369: _ACEOF
11370: rm -f conftest.$ac_objext conftest$ac_exeext
11371: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11372: (eval $ac_link) 2>conftest.er1
11373: ac_status=$?
11374: grep -v '^ *+' conftest.er1 >conftest.err
11375: rm -f conftest.er1
11376: cat conftest.err >&5
11377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378: (exit $ac_status); } &&
11379: { ac_try='test -z "$ac_c_werror_flag"
11380: || test ! -s conftest.err'
11381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382: (eval $ac_try) 2>&5
11383: ac_status=$?
11384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385: (exit $ac_status); }; } &&
11386: { ac_try='test -s conftest$ac_exeext'
11387: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388: (eval $ac_try) 2>&5
11389: ac_status=$?
11390: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391: (exit $ac_status); }; }; then
11392: ac_cv_lib_dld_dld_link=yes
11393: else
11394: echo "$as_me: failed program was:" >&5
11395: sed 's/^/| /' conftest.$ac_ext >&5
11396:
11397: ac_cv_lib_dld_dld_link=no
11398: fi
11399: rm -f conftest.err conftest.$ac_objext \
11400: conftest$ac_exeext conftest.$ac_ext
11401: LIBS=$ac_check_lib_save_LIBS
11402: fi
11403: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11404: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11405: if test $ac_cv_lib_dld_dld_link = yes; then
11406: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11407: fi
11408:
11409:
11410: fi
11411:
11412:
11413: fi
11414:
11415:
11416: fi
11417:
11418:
11419: fi
11420:
11421:
11422: fi
11423:
11424: ;;
11425: esac
11426:
11427: if test "x$lt_cv_dlopen" != xno; then
11428: enable_dlopen=yes
11429: else
11430: enable_dlopen=no
11431: fi
11432:
11433: case $lt_cv_dlopen in
11434: dlopen)
11435: save_CPPFLAGS="$CPPFLAGS"
11436: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11437:
11438: save_LDFLAGS="$LDFLAGS"
11439: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11440:
11441: save_LIBS="$LIBS"
11442: LIBS="$lt_cv_dlopen_libs $LIBS"
11443:
11444: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11445: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11446: if test "${lt_cv_dlopen_self+set}" = set; then
11447: echo $ECHO_N "(cached) $ECHO_C" >&6
11448: else
11449: if test "$cross_compiling" = yes; then :
11450: lt_cv_dlopen_self=cross
11451: else
11452: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11453: lt_status=$lt_dlunknown
11454: cat > conftest.$ac_ext <<_LT_EOF
11455: #line $LINENO "configure"
11456: #include "confdefs.h"
11457:
11458: #if HAVE_DLFCN_H
11459: #include <dlfcn.h>
11460: #endif
11461:
11462: #include <stdio.h>
11463:
11464: #ifdef RTLD_GLOBAL
11465: # define LT_DLGLOBAL RTLD_GLOBAL
11466: #else
11467: # ifdef DL_GLOBAL
11468: # define LT_DLGLOBAL DL_GLOBAL
11469: # else
11470: # define LT_DLGLOBAL 0
11471: # endif
11472: #endif
11473:
11474: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11475: find out it does not work in some platform. */
11476: #ifndef LT_DLLAZY_OR_NOW
11477: # ifdef RTLD_LAZY
11478: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11479: # else
11480: # ifdef DL_LAZY
11481: # define LT_DLLAZY_OR_NOW DL_LAZY
11482: # else
11483: # ifdef RTLD_NOW
11484: # define LT_DLLAZY_OR_NOW RTLD_NOW
11485: # else
11486: # ifdef DL_NOW
11487: # define LT_DLLAZY_OR_NOW DL_NOW
11488: # else
11489: # define LT_DLLAZY_OR_NOW 0
11490: # endif
11491: # endif
11492: # endif
11493: # endif
11494: #endif
11495:
11496: /* When -fvisbility=hidden is used, assume the code has been annotated
11497: correspondingly for the symbols needed. */
11498: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11499: int fnord () __attribute__((visibility("default")));
11500: #endif
11501:
11502: int fnord () { return 42; }
11503: int main ()
11504: {
11505: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11506: int status = $lt_dlunknown;
11507:
11508: if (self)
11509: {
11510: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11511: else
11512: {
11513: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11514: else puts (dlerror ());
11515: }
11516: /* dlclose (self); */
11517: }
11518: else
11519: puts (dlerror ());
11520:
11521: return status;
11522: }
11523: _LT_EOF
11524: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525: (eval $ac_link) 2>&5
11526: ac_status=$?
11527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11529: (./conftest; exit; ) >&5 2>/dev/null
11530: lt_status=$?
11531: case x$lt_status in
11532: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11533: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11534: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11535: esac
11536: else :
11537: # compilation failed
11538: lt_cv_dlopen_self=no
11539: fi
11540: fi
11541: rm -fr conftest*
11542:
11543:
11544: fi
11545: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11546: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11547:
11548: if test "x$lt_cv_dlopen_self" = xyes; then
11549: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11550: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11551: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11552: if test "${lt_cv_dlopen_self_static+set}" = set; then
11553: echo $ECHO_N "(cached) $ECHO_C" >&6
11554: else
11555: if test "$cross_compiling" = yes; then :
11556: lt_cv_dlopen_self_static=cross
11557: else
11558: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11559: lt_status=$lt_dlunknown
11560: cat > conftest.$ac_ext <<_LT_EOF
11561: #line $LINENO "configure"
11562: #include "confdefs.h"
11563:
11564: #if HAVE_DLFCN_H
11565: #include <dlfcn.h>
11566: #endif
11567:
11568: #include <stdio.h>
11569:
11570: #ifdef RTLD_GLOBAL
11571: # define LT_DLGLOBAL RTLD_GLOBAL
11572: #else
11573: # ifdef DL_GLOBAL
11574: # define LT_DLGLOBAL DL_GLOBAL
11575: # else
11576: # define LT_DLGLOBAL 0
11577: # endif
11578: #endif
11579:
11580: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11581: find out it does not work in some platform. */
11582: #ifndef LT_DLLAZY_OR_NOW
11583: # ifdef RTLD_LAZY
11584: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11585: # else
11586: # ifdef DL_LAZY
11587: # define LT_DLLAZY_OR_NOW DL_LAZY
11588: # else
11589: # ifdef RTLD_NOW
11590: # define LT_DLLAZY_OR_NOW RTLD_NOW
11591: # else
11592: # ifdef DL_NOW
11593: # define LT_DLLAZY_OR_NOW DL_NOW
11594: # else
11595: # define LT_DLLAZY_OR_NOW 0
11596: # endif
11597: # endif
11598: # endif
11599: # endif
11600: #endif
11601:
11602: /* When -fvisbility=hidden is used, assume the code has been annotated
11603: correspondingly for the symbols needed. */
11604: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11605: int fnord () __attribute__((visibility("default")));
11606: #endif
11607:
11608: int fnord () { return 42; }
11609: int main ()
11610: {
11611: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11612: int status = $lt_dlunknown;
11613:
11614: if (self)
11615: {
11616: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11617: else
11618: {
11619: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11620: else puts (dlerror ());
11621: }
11622: /* dlclose (self); */
11623: }
11624: else
11625: puts (dlerror ());
11626:
11627: return status;
11628: }
11629: _LT_EOF
11630: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631: (eval $ac_link) 2>&5
11632: ac_status=$?
11633: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11635: (./conftest; exit; ) >&5 2>/dev/null
11636: lt_status=$?
11637: case x$lt_status in
11638: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11639: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11640: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11641: esac
11642: else :
11643: # compilation failed
11644: lt_cv_dlopen_self_static=no
11645: fi
11646: fi
11647: rm -fr conftest*
11648:
11649:
11650: fi
11651: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11652: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11653: fi
11654:
11655: CPPFLAGS="$save_CPPFLAGS"
11656: LDFLAGS="$save_LDFLAGS"
11657: LIBS="$save_LIBS"
11658: ;;
11659: esac
11660:
11661: case $lt_cv_dlopen_self in
11662: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11663: *) enable_dlopen_self=unknown ;;
11664: esac
11665:
11666: case $lt_cv_dlopen_self_static in
11667: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11668: *) enable_dlopen_self_static=unknown ;;
11669: esac
11670: fi
11671:
11672:
11673:
11674:
11675:
11676:
11677:
11678:
11679:
11680:
11681:
11682:
11683:
11684:
11685:
11686:
11687:
11688: striplib=
11689: old_striplib=
11690: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11691: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11692: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11693: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695: echo "$as_me:$LINENO: result: yes" >&5
11696: echo "${ECHO_T}yes" >&6
11697: else
11698: # FIXME - insert some real tests, host_os isn't really good enough
11699: case $host_os in
11700: darwin*)
11701: if test -n "$STRIP" ; then
11702: striplib="$STRIP -x"
11703: old_striplib="$STRIP -S"
11704: echo "$as_me:$LINENO: result: yes" >&5
11705: echo "${ECHO_T}yes" >&6
11706: else
11707: echo "$as_me:$LINENO: result: no" >&5
11708: echo "${ECHO_T}no" >&6
11709: fi
11710: ;;
11711: *)
11712: echo "$as_me:$LINENO: result: no" >&5
11713: echo "${ECHO_T}no" >&6
11714: ;;
11715: esac
11716: fi
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729: # Report which library types will actually be built
11730: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11731: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11732: echo "$as_me:$LINENO: result: $can_build_shared" >&5
11733: echo "${ECHO_T}$can_build_shared" >&6
11734:
11735: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11736: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11737: test "$can_build_shared" = "no" && enable_shared=no
11738:
11739: # On AIX, shared libraries and static libraries use the same namespace, and
11740: # are all built from PIC.
11741: case $host_os in
11742: aix3*)
11743: test "$enable_shared" = yes && enable_static=no
11744: if test -n "$RANLIB"; then
11745: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11746: postinstall_cmds='$RANLIB $lib'
11747: fi
11748: ;;
11749:
11750: aix[4-9]*)
11751: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11752: test "$enable_shared" = yes && enable_static=no
11753: fi
11754: ;;
11755: esac
11756: echo "$as_me:$LINENO: result: $enable_shared" >&5
11757: echo "${ECHO_T}$enable_shared" >&6
11758:
11759: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11760: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11761: # Make sure either enable_shared or enable_static is yes.
11762: test "$enable_shared" = yes || enable_static=yes
11763: echo "$as_me:$LINENO: result: $enable_static" >&5
11764: echo "${ECHO_T}$enable_static" >&6
11765:
11766:
11767:
11768:
11769: fi
11770: ac_ext=c
11771: ac_cpp='$CPP $CPPFLAGS'
11772: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775:
11776: CC="$lt_save_CC"
11777:
11778: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11779: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11780: (test "X$CXX" != "Xg++"))) ; then
11781: ac_ext=cc
11782: ac_cpp='$CXXCPP $CPPFLAGS'
11783: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11786: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11787: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11788: if test -z "$CXXCPP"; then
11789: if test "${ac_cv_prog_CXXCPP+set}" = set; then
11790: echo $ECHO_N "(cached) $ECHO_C" >&6
11791: else
11792: # Double quotes because CXXCPP needs to be expanded
11793: for CXXCPP in "$CXX -E" "/lib/cpp"
11794: do
11795: ac_preproc_ok=false
11796: for ac_cxx_preproc_warn_flag in '' yes
11797: do
11798: # Use a header file that comes with gcc, so configuring glibc
11799: # with a fresh cross-compiler works.
11800: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801: # <limits.h> exists even on freestanding compilers.
11802: # On the NeXT, cc -E runs the code through the compiler's parser,
11803: # not just through cpp. "Syntax error" is here to catch this case.
11804: cat >conftest.$ac_ext <<_ACEOF
11805: /* confdefs.h. */
11806: _ACEOF
11807: cat confdefs.h >>conftest.$ac_ext
11808: cat >>conftest.$ac_ext <<_ACEOF
11809: /* end confdefs.h. */
11810: #ifdef __STDC__
11811: # include <limits.h>
11812: #else
11813: # include <assert.h>
11814: #endif
11815: Syntax error
11816: _ACEOF
11817: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11818: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11819: ac_status=$?
11820: grep -v '^ *+' conftest.er1 >conftest.err
11821: rm -f conftest.er1
11822: cat conftest.err >&5
11823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824: (exit $ac_status); } >/dev/null; then
11825: if test -s conftest.err; then
11826: ac_cpp_err=$ac_cxx_preproc_warn_flag
11827: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11828: else
11829: ac_cpp_err=
11830: fi
11831: else
11832: ac_cpp_err=yes
11833: fi
11834: if test -z "$ac_cpp_err"; then
11835: :
11836: else
11837: echo "$as_me: failed program was:" >&5
11838: sed 's/^/| /' conftest.$ac_ext >&5
11839:
11840: # Broken: fails on valid input.
11841: continue
11842: fi
11843: rm -f conftest.err conftest.$ac_ext
11844:
11845: # OK, works on sane cases. Now check whether non-existent headers
11846: # can be detected and how.
11847: cat >conftest.$ac_ext <<_ACEOF
11848: /* confdefs.h. */
11849: _ACEOF
11850: cat confdefs.h >>conftest.$ac_ext
11851: cat >>conftest.$ac_ext <<_ACEOF
11852: /* end confdefs.h. */
11853: #include <ac_nonexistent.h>
11854: _ACEOF
11855: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11856: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11857: ac_status=$?
11858: grep -v '^ *+' conftest.er1 >conftest.err
11859: rm -f conftest.er1
11860: cat conftest.err >&5
11861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862: (exit $ac_status); } >/dev/null; then
11863: if test -s conftest.err; then
11864: ac_cpp_err=$ac_cxx_preproc_warn_flag
11865: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11866: else
11867: ac_cpp_err=
11868: fi
11869: else
11870: ac_cpp_err=yes
11871: fi
11872: if test -z "$ac_cpp_err"; then
11873: # Broken: success on invalid input.
11874: continue
11875: else
11876: echo "$as_me: failed program was:" >&5
11877: sed 's/^/| /' conftest.$ac_ext >&5
11878:
11879: # Passes both tests.
11880: ac_preproc_ok=:
11881: break
11882: fi
11883: rm -f conftest.err conftest.$ac_ext
11884:
11885: done
11886: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11887: rm -f conftest.err conftest.$ac_ext
11888: if $ac_preproc_ok; then
11889: break
11890: fi
11891:
11892: done
11893: ac_cv_prog_CXXCPP=$CXXCPP
11894:
11895: fi
11896: CXXCPP=$ac_cv_prog_CXXCPP
11897: else
11898: ac_cv_prog_CXXCPP=$CXXCPP
11899: fi
11900: echo "$as_me:$LINENO: result: $CXXCPP" >&5
11901: echo "${ECHO_T}$CXXCPP" >&6
11902: ac_preproc_ok=false
11903: for ac_cxx_preproc_warn_flag in '' yes
11904: do
11905: # Use a header file that comes with gcc, so configuring glibc
11906: # with a fresh cross-compiler works.
11907: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908: # <limits.h> exists even on freestanding compilers.
11909: # On the NeXT, cc -E runs the code through the compiler's parser,
11910: # not just through cpp. "Syntax error" is here to catch this case.
11911: cat >conftest.$ac_ext <<_ACEOF
11912: /* confdefs.h. */
11913: _ACEOF
11914: cat confdefs.h >>conftest.$ac_ext
11915: cat >>conftest.$ac_ext <<_ACEOF
11916: /* end confdefs.h. */
11917: #ifdef __STDC__
11918: # include <limits.h>
11919: #else
11920: # include <assert.h>
11921: #endif
11922: Syntax error
11923: _ACEOF
11924: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11925: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11926: ac_status=$?
11927: grep -v '^ *+' conftest.er1 >conftest.err
11928: rm -f conftest.er1
11929: cat conftest.err >&5
11930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931: (exit $ac_status); } >/dev/null; then
11932: if test -s conftest.err; then
11933: ac_cpp_err=$ac_cxx_preproc_warn_flag
11934: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11935: else
11936: ac_cpp_err=
11937: fi
11938: else
11939: ac_cpp_err=yes
11940: fi
11941: if test -z "$ac_cpp_err"; then
11942: :
11943: else
11944: echo "$as_me: failed program was:" >&5
11945: sed 's/^/| /' conftest.$ac_ext >&5
11946:
11947: # Broken: fails on valid input.
11948: continue
11949: fi
11950: rm -f conftest.err conftest.$ac_ext
11951:
11952: # OK, works on sane cases. Now check whether non-existent headers
11953: # can be detected and how.
11954: cat >conftest.$ac_ext <<_ACEOF
11955: /* confdefs.h. */
11956: _ACEOF
11957: cat confdefs.h >>conftest.$ac_ext
11958: cat >>conftest.$ac_ext <<_ACEOF
11959: /* end confdefs.h. */
11960: #include <ac_nonexistent.h>
11961: _ACEOF
11962: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11963: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11964: ac_status=$?
11965: grep -v '^ *+' conftest.er1 >conftest.err
11966: rm -f conftest.er1
11967: cat conftest.err >&5
11968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969: (exit $ac_status); } >/dev/null; then
11970: if test -s conftest.err; then
11971: ac_cpp_err=$ac_cxx_preproc_warn_flag
11972: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11973: else
11974: ac_cpp_err=
11975: fi
11976: else
11977: ac_cpp_err=yes
11978: fi
11979: if test -z "$ac_cpp_err"; then
11980: # Broken: success on invalid input.
11981: continue
11982: else
11983: echo "$as_me: failed program was:" >&5
11984: sed 's/^/| /' conftest.$ac_ext >&5
11985:
11986: # Passes both tests.
11987: ac_preproc_ok=:
11988: break
11989: fi
11990: rm -f conftest.err conftest.$ac_ext
11991:
11992: done
11993: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11994: rm -f conftest.err conftest.$ac_ext
11995: if $ac_preproc_ok; then
11996: :
11997: else
11998: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11999: See \`config.log' for more details." >&5
12000: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12001: See \`config.log' for more details." >&2;}
12002: { (exit 1); exit 1; }; }
12003: fi
12004:
12005: ac_ext=c
12006: ac_cpp='$CPP $CPPFLAGS'
12007: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010:
12011: else
12012: _lt_caught_CXX_error=yes
12013: fi
12014:
12015: ac_ext=cc
12016: ac_cpp='$CXXCPP $CPPFLAGS'
12017: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12018: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12019: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12020:
12021: archive_cmds_need_lc_CXX=no
12022: allow_undefined_flag_CXX=
12023: always_export_symbols_CXX=no
12024: archive_expsym_cmds_CXX=
12025: compiler_needs_object_CXX=no
12026: export_dynamic_flag_spec_CXX=
12027: hardcode_direct_CXX=no
12028: hardcode_direct_absolute_CXX=no
12029: hardcode_libdir_flag_spec_CXX=
12030: hardcode_libdir_separator_CXX=
12031: hardcode_minus_L_CXX=no
12032: hardcode_shlibpath_var_CXX=unsupported
12033: hardcode_automatic_CXX=no
12034: inherit_rpath_CXX=no
12035: module_cmds_CXX=
12036: module_expsym_cmds_CXX=
12037: link_all_deplibs_CXX=unknown
12038: old_archive_cmds_CXX=$old_archive_cmds
12039: reload_flag_CXX=$reload_flag
12040: reload_cmds_CXX=$reload_cmds
12041: no_undefined_flag_CXX=
12042: whole_archive_flag_spec_CXX=
12043: enable_shared_with_static_runtimes_CXX=no
12044:
12045: # Source file extension for C++ test sources.
12046: ac_ext=cpp
12047:
12048: # Object file extension for compiled C++ test sources.
12049: objext=o
12050: objext_CXX=$objext
12051:
12052: # No sense in running all these tests if we already determined that
12053: # the CXX compiler isn't working. Some variables (like enable_shared)
12054: # are currently assumed to apply to all compilers on this platform,
12055: # and will be corrupted by setting them based on a non-working compiler.
12056: if test "$_lt_caught_CXX_error" != yes; then
12057: # Code to be used in simple compile tests
12058: lt_simple_compile_test_code="int some_variable = 0;"
12059:
12060: # Code to be used in simple link tests
12061: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12062:
12063: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12064:
12065:
12066:
12067:
12068:
12069:
12070: # If no C compiler was specified, use CC.
12071: LTCC=${LTCC-"$CC"}
12072:
12073: # If no C compiler flags were specified, use CFLAGS.
12074: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12075:
12076: # Allow CC to be a program name with arguments.
12077: compiler=$CC
12078:
12079:
12080: # save warnings/boilerplate of simple test code
12081: ac_outfile=conftest.$ac_objext
12082: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12083: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12084: _lt_compiler_boilerplate=`cat conftest.err`
12085: $RM conftest*
12086:
12087: ac_outfile=conftest.$ac_objext
12088: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12089: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12090: _lt_linker_boilerplate=`cat conftest.err`
12091: $RM -r conftest*
12092:
12093:
12094: # Allow CC to be a program name with arguments.
12095: lt_save_CC=$CC
12096: lt_save_CFLAGS=$CFLAGS
12097: lt_save_LD=$LD
12098: lt_save_GCC=$GCC
12099: GCC=$GXX
12100: lt_save_with_gnu_ld=$with_gnu_ld
12101: lt_save_path_LD=$lt_cv_path_LD
12102: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12103: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12104: else
12105: $as_unset lt_cv_prog_gnu_ld
12106: fi
12107: if test -n "${lt_cv_path_LDCXX+set}"; then
12108: lt_cv_path_LD=$lt_cv_path_LDCXX
12109: else
12110: $as_unset lt_cv_path_LD
12111: fi
12112: test -z "${LDCXX+set}" || LD=$LDCXX
12113: CC=${CXX-"c++"}
12114: CFLAGS=$CXXFLAGS
12115: compiler=$CC
12116: compiler_CXX=$CC
12117: for cc_temp in $compiler""; do
12118: case $cc_temp in
12119: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12120: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12121: \-*) ;;
12122: *) break;;
12123: esac
12124: done
12125: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12126:
12127:
12128: if test -n "$compiler"; then
12129: # We don't want -fno-exception when compiling C++ code, so set the
12130: # no_builtin_flag separately
12131: if test "$GXX" = yes; then
12132: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12133: else
12134: lt_prog_compiler_no_builtin_flag_CXX=
12135: fi
12136:
12137: if test "$GXX" = yes; then
12138: # Set up default GNU C++ configuration
12139:
12140:
12141:
12142: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12143: if test "${with_gnu_ld+set}" = set; then
12144: withval="$with_gnu_ld"
12145: test "$withval" = no || with_gnu_ld=yes
12146: else
12147: with_gnu_ld=no
12148: fi;
12149: ac_prog=ld
12150: if test "$GCC" = yes; then
12151: # Check if gcc -print-prog-name=ld gives a path.
12152: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12153: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12154: case $host in
12155: *-*-mingw*)
12156: # gcc leaves a trailing carriage return which upsets mingw
12157: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12158: *)
12159: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12160: esac
12161: case $ac_prog in
12162: # Accept absolute paths.
12163: [\\/]* | ?:[\\/]*)
12164: re_direlt='/[^/][^/]*/\.\./'
12165: # Canonicalize the pathname of ld
12166: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12167: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12168: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12169: done
12170: test -z "$LD" && LD="$ac_prog"
12171: ;;
12172: "")
12173: # If it fails, then pretend we aren't using GCC.
12174: ac_prog=ld
12175: ;;
12176: *)
12177: # If it is relative, then search for the first ld in PATH.
12178: with_gnu_ld=unknown
12179: ;;
12180: esac
12181: elif test "$with_gnu_ld" = yes; then
12182: echo "$as_me:$LINENO: checking for GNU ld" >&5
12183: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12184: else
12185: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12186: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12187: fi
12188: if test "${lt_cv_path_LD+set}" = set; then
12189: echo $ECHO_N "(cached) $ECHO_C" >&6
12190: else
12191: if test -z "$LD"; then
12192: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12193: for ac_dir in $PATH; do
12194: IFS="$lt_save_ifs"
12195: test -z "$ac_dir" && ac_dir=.
12196: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12197: lt_cv_path_LD="$ac_dir/$ac_prog"
12198: # Check to see if the program is GNU ld. I'd rather use --version,
12199: # but apparently some variants of GNU ld only accept -v.
12200: # Break only if it was the GNU/non-GNU ld that we prefer.
12201: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12202: *GNU* | *'with BFD'*)
12203: test "$with_gnu_ld" != no && break
12204: ;;
12205: *)
12206: test "$with_gnu_ld" != yes && break
12207: ;;
12208: esac
12209: fi
12210: done
12211: IFS="$lt_save_ifs"
12212: else
12213: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12214: fi
12215: fi
12216:
12217: LD="$lt_cv_path_LD"
12218: if test -n "$LD"; then
12219: echo "$as_me:$LINENO: result: $LD" >&5
12220: echo "${ECHO_T}$LD" >&6
12221: else
12222: echo "$as_me:$LINENO: result: no" >&5
12223: echo "${ECHO_T}no" >&6
12224: fi
12225: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12226: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12227: { (exit 1); exit 1; }; }
12228: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12229: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12230: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12231: echo $ECHO_N "(cached) $ECHO_C" >&6
12232: else
12233: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12234: case `$LD -v 2>&1 </dev/null` in
12235: *GNU* | *'with BFD'*)
12236: lt_cv_prog_gnu_ld=yes
12237: ;;
12238: *)
12239: lt_cv_prog_gnu_ld=no
12240: ;;
12241: esac
12242: fi
12243: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12244: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12245: with_gnu_ld=$lt_cv_prog_gnu_ld
12246:
12247:
12248:
12249:
12250:
12251:
12252:
12253: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12254: # archiving commands below assume that GNU ld is being used.
12255: if test "$with_gnu_ld" = yes; then
12256: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257: 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'
12258:
12259: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12260: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12261:
12262: # If archive_cmds runs LD, not CC, wlarc should be empty
12263: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12264: # investigate it a little bit more. (MM)
12265: wlarc='${wl}'
12266:
12267: # ancient GNU ld didn't support --whole-archive et. al.
12268: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12269: $GREP 'no-whole-archive' > /dev/null; then
12270: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12271: else
12272: whole_archive_flag_spec_CXX=
12273: fi
12274: else
12275: with_gnu_ld=no
12276: wlarc=
12277:
12278: # A generic and very simple default shared library creation
12279: # command for GNU C++ for the case where it uses the native
12280: # linker, instead of GNU ld. If possible, this setting should
12281: # overridden to take advantage of the native linker features on
12282: # the platform it is being used on.
12283: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12284: fi
12285:
12286: # Commands to make compiler produce verbose output that lists
12287: # what "hidden" libraries, object files and flags are used when
12288: # linking a shared library.
12289: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12290:
12291: else
12292: GXX=no
12293: with_gnu_ld=no
12294: wlarc=
12295: fi
12296:
12297: # PORTME: fill in a description of your system's C++ link characteristics
12298: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12299: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12300: ld_shlibs_CXX=yes
12301: case $host_os in
12302: aix3*)
12303: # FIXME: insert proper C++ library support
12304: ld_shlibs_CXX=no
12305: ;;
12306: aix[4-9]*)
12307: if test "$host_cpu" = ia64; then
12308: # On IA64, the linker does run time linking by default, so we don't
12309: # have to do anything special.
12310: aix_use_runtimelinking=no
12311: exp_sym_flag='-Bexport'
12312: no_entry_flag=""
12313: else
12314: aix_use_runtimelinking=no
12315:
12316: # Test if we are trying to use run time linking or normal
12317: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12318: # need to do runtime linking.
12319: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12320: for ld_flag in $LDFLAGS; do
12321: case $ld_flag in
12322: *-brtl*)
12323: aix_use_runtimelinking=yes
12324: break
12325: ;;
12326: esac
12327: done
12328: ;;
12329: esac
12330:
12331: exp_sym_flag='-bexport'
12332: no_entry_flag='-bnoentry'
12333: fi
12334:
12335: # When large executables or shared objects are built, AIX ld can
12336: # have problems creating the table of contents. If linking a library
12337: # or program results in "error TOC overflow" add -mminimal-toc to
12338: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12339: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12340:
12341: archive_cmds_CXX=''
12342: hardcode_direct_CXX=yes
12343: hardcode_direct_absolute_CXX=yes
12344: hardcode_libdir_separator_CXX=':'
12345: link_all_deplibs_CXX=yes
12346: file_list_spec_CXX='${wl}-f,'
12347:
12348: if test "$GXX" = yes; then
12349: case $host_os in aix4.[012]|aix4.[012].*)
12350: # We only want to do this on AIX 4.2 and lower, the check
12351: # below for broken collect2 doesn't work under 4.3+
12352: collect2name=`${CC} -print-prog-name=collect2`
12353: if test -f "$collect2name" &&
12354: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12355: then
12356: # We have reworked collect2
12357: :
12358: else
12359: # We have old collect2
12360: hardcode_direct_CXX=unsupported
12361: # It fails to find uninstalled libraries when the uninstalled
12362: # path is not listed in the libpath. Setting hardcode_minus_L
12363: # to unsupported forces relinking
12364: hardcode_minus_L_CXX=yes
12365: hardcode_libdir_flag_spec_CXX='-L$libdir'
12366: hardcode_libdir_separator_CXX=
12367: fi
12368: esac
12369: shared_flag='-shared'
12370: if test "$aix_use_runtimelinking" = yes; then
12371: shared_flag="$shared_flag "'${wl}-G'
12372: fi
12373: else
12374: # not using gcc
12375: if test "$host_cpu" = ia64; then
12376: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12377: # chokes on -Wl,-G. The following line is correct:
12378: shared_flag='-G'
12379: else
12380: if test "$aix_use_runtimelinking" = yes; then
12381: shared_flag='${wl}-G'
12382: else
12383: shared_flag='${wl}-bM:SRE'
12384: fi
12385: fi
12386: fi
12387:
12388: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12389: # It seems that -bexpall does not export symbols beginning with
12390: # underscore (_), so it is better to generate a list of symbols to
12391: # export.
12392: always_export_symbols_CXX=yes
12393: if test "$aix_use_runtimelinking" = yes; then
12394: # Warning - without using the other runtime loading flags (-brtl),
12395: # -berok will link without error, but may produce a broken library.
12396: allow_undefined_flag_CXX='-berok'
12397: # Determine the default libpath from the value encoded in an empty
12398: # executable.
12399: if test "${lt_cv_aix_libpath+set}" = set; then
12400: aix_libpath=$lt_cv_aix_libpath
12401: else
12402: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12403: echo $ECHO_N "(cached) $ECHO_C" >&6
12404: else
12405: cat >conftest.$ac_ext <<_ACEOF
12406: /* confdefs.h. */
12407: _ACEOF
12408: cat confdefs.h >>conftest.$ac_ext
12409: cat >>conftest.$ac_ext <<_ACEOF
12410: /* end confdefs.h. */
12411:
12412: int
12413: main ()
12414: {
12415:
12416: ;
12417: return 0;
12418: }
12419: _ACEOF
12420: rm -f conftest.$ac_objext conftest$ac_exeext
12421: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422: (eval $ac_link) 2>conftest.er1
12423: ac_status=$?
12424: grep -v '^ *+' conftest.er1 >conftest.err
12425: rm -f conftest.er1
12426: cat conftest.err >&5
12427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428: (exit $ac_status); } &&
12429: { ac_try='test -z "$ac_cxx_werror_flag"
12430: || test ! -s conftest.err'
12431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432: (eval $ac_try) 2>&5
12433: ac_status=$?
12434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435: (exit $ac_status); }; } &&
12436: { ac_try='test -s conftest$ac_exeext'
12437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438: (eval $ac_try) 2>&5
12439: ac_status=$?
12440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441: (exit $ac_status); }; }; then
12442:
12443: lt_aix_libpath_sed='
12444: /Import File Strings/,/^$/ {
12445: /^0/ {
12446: s/^0 *\([^ ]*\) *$/\1/
12447: p
12448: }
12449: }'
12450: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451: # Check for a 64-bit object if we didn't find anything.
12452: if test -z "$lt_cv_aix_libpath__CXX"; then
12453: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12454: fi
12455: else
12456: echo "$as_me: failed program was:" >&5
12457: sed 's/^/| /' conftest.$ac_ext >&5
12458:
12459: fi
12460: rm -f conftest.err conftest.$ac_objext \
12461: conftest$ac_exeext conftest.$ac_ext
12462: if test -z "$lt_cv_aix_libpath__CXX"; then
12463: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12464: fi
12465:
12466: fi
12467:
12468: aix_libpath=$lt_cv_aix_libpath__CXX
12469: fi
12470:
12471: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12472:
12473: 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"
12474: else
12475: if test "$host_cpu" = ia64; then
12476: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12477: allow_undefined_flag_CXX="-z nodefs"
12478: 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"
12479: else
12480: # Determine the default libpath from the value encoded in an
12481: # empty executable.
12482: if test "${lt_cv_aix_libpath+set}" = set; then
12483: aix_libpath=$lt_cv_aix_libpath
12484: else
12485: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12486: echo $ECHO_N "(cached) $ECHO_C" >&6
12487: else
12488: cat >conftest.$ac_ext <<_ACEOF
12489: /* confdefs.h. */
12490: _ACEOF
12491: cat confdefs.h >>conftest.$ac_ext
12492: cat >>conftest.$ac_ext <<_ACEOF
12493: /* end confdefs.h. */
12494:
12495: int
12496: main ()
12497: {
12498:
12499: ;
12500: return 0;
12501: }
12502: _ACEOF
12503: rm -f conftest.$ac_objext conftest$ac_exeext
12504: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505: (eval $ac_link) 2>conftest.er1
12506: ac_status=$?
12507: grep -v '^ *+' conftest.er1 >conftest.err
12508: rm -f conftest.er1
12509: cat conftest.err >&5
12510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511: (exit $ac_status); } &&
12512: { ac_try='test -z "$ac_cxx_werror_flag"
12513: || test ! -s conftest.err'
12514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515: (eval $ac_try) 2>&5
12516: ac_status=$?
12517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518: (exit $ac_status); }; } &&
12519: { ac_try='test -s conftest$ac_exeext'
12520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521: (eval $ac_try) 2>&5
12522: ac_status=$?
12523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524: (exit $ac_status); }; }; then
12525:
12526: lt_aix_libpath_sed='
12527: /Import File Strings/,/^$/ {
12528: /^0/ {
12529: s/^0 *\([^ ]*\) *$/\1/
12530: p
12531: }
12532: }'
12533: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12534: # Check for a 64-bit object if we didn't find anything.
12535: if test -z "$lt_cv_aix_libpath__CXX"; then
12536: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12537: fi
12538: else
12539: echo "$as_me: failed program was:" >&5
12540: sed 's/^/| /' conftest.$ac_ext >&5
12541:
12542: fi
12543: rm -f conftest.err conftest.$ac_objext \
12544: conftest$ac_exeext conftest.$ac_ext
12545: if test -z "$lt_cv_aix_libpath__CXX"; then
12546: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12547: fi
12548:
12549: fi
12550:
12551: aix_libpath=$lt_cv_aix_libpath__CXX
12552: fi
12553:
12554: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12555: # Warning - without using the other run time loading flags,
12556: # -berok will link without error, but may produce a broken library.
12557: no_undefined_flag_CXX=' ${wl}-bernotok'
12558: allow_undefined_flag_CXX=' ${wl}-berok'
12559: if test "$with_gnu_ld" = yes; then
12560: # We only use this code for GNU lds that support --whole-archive.
12561: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12562: else
12563: # Exported symbols can be pulled into shared objects from archives
12564: whole_archive_flag_spec_CXX='$convenience'
12565: fi
12566: archive_cmds_need_lc_CXX=yes
12567: # This is similar to how AIX traditionally builds its shared
12568: # libraries.
12569: 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'
12570: fi
12571: fi
12572: ;;
12573:
12574: beos*)
12575: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12576: allow_undefined_flag_CXX=unsupported
12577: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12578: # support --undefined. This deserves some investigation. FIXME
12579: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12580: else
12581: ld_shlibs_CXX=no
12582: fi
12583: ;;
12584:
12585: chorus*)
12586: case $cc_basename in
12587: *)
12588: # FIXME: insert proper C++ library support
12589: ld_shlibs_CXX=no
12590: ;;
12591: esac
12592: ;;
12593:
12594: cygwin* | mingw* | pw32* | cegcc*)
12595: case $GXX,$cc_basename in
12596: ,cl* | no,cl*)
12597: # Native MSVC
12598: # hardcode_libdir_flag_spec is actually meaningless, as there is
12599: # no search path for DLLs.
12600: hardcode_libdir_flag_spec_CXX=' '
12601: allow_undefined_flag_CXX=unsupported
12602: always_export_symbols_CXX=yes
12603: file_list_spec_CXX='@'
12604: # Tell ltmain to make .lib files, not .a files.
12605: libext=lib
12606: # Tell ltmain to make .dll files, not .so files.
12607: shrext_cmds=".dll"
12608: # FIXME: Setting linknames here is a bad hack.
12609: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12610: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12611: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12612: else
12613: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12614: fi~
12615: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12616: linknames='
12617: # The linker will not automatically build a static lib if we build a DLL.
12618: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12619: enable_shared_with_static_runtimes_CXX=yes
12620: # Don't use ranlib
12621: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12622: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12623: lt_tool_outputfile="@TOOL_OUTPUT@"~
12624: case $lt_outputfile in
12625: *.exe|*.EXE) ;;
12626: *)
12627: lt_outputfile="$lt_outputfile.exe"
12628: lt_tool_outputfile="$lt_tool_outputfile.exe"
12629: ;;
12630: esac~
12631: func_to_tool_file "$lt_outputfile"~
12632: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12633: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12634: $RM "$lt_outputfile.manifest";
12635: fi'
12636: ;;
12637: *)
12638: # g++
12639: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12640: # as there is no search path for DLLs.
12641: hardcode_libdir_flag_spec_CXX='-L$libdir'
12642: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12643: allow_undefined_flag_CXX=unsupported
12644: always_export_symbols_CXX=no
12645: enable_shared_with_static_runtimes_CXX=yes
12646:
12647: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12648: 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'
12649: # If the export-symbols file already is a .def file (1st line
12650: # is EXPORTS), use it as is; otherwise, prepend...
12651: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12652: cp $export_symbols $output_objdir/$soname.def;
12653: else
12654: echo EXPORTS > $output_objdir/$soname.def;
12655: cat $export_symbols >> $output_objdir/$soname.def;
12656: fi~
12657: $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'
12658: else
12659: ld_shlibs_CXX=no
12660: fi
12661: ;;
12662: esac
12663: ;;
12664: darwin* | rhapsody*)
12665:
12666:
12667: archive_cmds_need_lc_CXX=no
12668: hardcode_direct_CXX=no
12669: hardcode_automatic_CXX=yes
12670: hardcode_shlibpath_var_CXX=unsupported
12671: if test "$lt_cv_ld_force_load" = "yes"; then
12672: 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\"`'
12673:
12674: else
12675: whole_archive_flag_spec_CXX=''
12676: fi
12677: link_all_deplibs_CXX=yes
12678: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12679: case $cc_basename in
12680: ifort*) _lt_dar_can_shared=yes ;;
12681: *) _lt_dar_can_shared=$GCC ;;
12682: esac
12683: if test "$_lt_dar_can_shared" = "yes"; then
12684: output_verbose_link_cmd=func_echo_all
12685: 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}"
12686: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12687: 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}"
12688: 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}"
12689: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12690: 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}"
12691: 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}"
12692: fi
12693:
12694: else
12695: ld_shlibs_CXX=no
12696: fi
12697:
12698: ;;
12699:
12700: dgux*)
12701: case $cc_basename in
12702: ec++*)
12703: # FIXME: insert proper C++ library support
12704: ld_shlibs_CXX=no
12705: ;;
12706: ghcx*)
12707: # Green Hills C++ Compiler
12708: # FIXME: insert proper C++ library support
12709: ld_shlibs_CXX=no
12710: ;;
12711: *)
12712: # FIXME: insert proper C++ library support
12713: ld_shlibs_CXX=no
12714: ;;
12715: esac
12716: ;;
12717:
12718: freebsd2.*)
12719: # C++ shared libraries reported to be fairly broken before
12720: # switch to ELF
12721: ld_shlibs_CXX=no
12722: ;;
12723:
12724: freebsd-elf*)
12725: archive_cmds_need_lc_CXX=no
12726: ;;
12727:
12728: freebsd* | dragonfly*)
12729: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12730: # conventions
12731: ld_shlibs_CXX=yes
12732: ;;
12733:
12734: gnu*)
12735: ;;
12736:
12737: haiku*)
12738: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12739: link_all_deplibs_CXX=yes
12740: ;;
12741:
12742: hpux9*)
12743: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12744: hardcode_libdir_separator_CXX=:
12745: export_dynamic_flag_spec_CXX='${wl}-E'
12746: hardcode_direct_CXX=yes
12747: hardcode_minus_L_CXX=yes # Not in the search PATH,
12748: # but as the default
12749: # location of the library.
12750:
12751: case $cc_basename in
12752: CC*)
12753: # FIXME: insert proper C++ library support
12754: ld_shlibs_CXX=no
12755: ;;
12756: aCC*)
12757: 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'
12758: # Commands to make compiler produce verbose output that lists
12759: # what "hidden" libraries, object files and flags are used when
12760: # linking a shared library.
12761: #
12762: # There doesn't appear to be a way to prevent this compiler from
12763: # explicitly linking system object files so we need to strip them
12764: # from the output so that they don't get included in the library
12765: # dependencies.
12766: 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"'
12767: ;;
12768: *)
12769: if test "$GXX" = yes; then
12770: 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'
12771: else
12772: # FIXME: insert proper C++ library support
12773: ld_shlibs_CXX=no
12774: fi
12775: ;;
12776: esac
12777: ;;
12778:
12779: hpux10*|hpux11*)
12780: if test $with_gnu_ld = no; then
12781: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12782: hardcode_libdir_separator_CXX=:
12783:
12784: case $host_cpu in
12785: hppa*64*|ia64*)
12786: ;;
12787: *)
12788: export_dynamic_flag_spec_CXX='${wl}-E'
12789: ;;
12790: esac
12791: fi
12792: case $host_cpu in
12793: hppa*64*|ia64*)
12794: hardcode_direct_CXX=no
12795: hardcode_shlibpath_var_CXX=no
12796: ;;
12797: *)
12798: hardcode_direct_CXX=yes
12799: hardcode_direct_absolute_CXX=yes
12800: hardcode_minus_L_CXX=yes # Not in the search PATH,
12801: # but as the default
12802: # location of the library.
12803: ;;
12804: esac
12805:
12806: case $cc_basename in
12807: CC*)
12808: # FIXME: insert proper C++ library support
12809: ld_shlibs_CXX=no
12810: ;;
12811: aCC*)
12812: case $host_cpu in
12813: hppa*64*)
12814: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12815: ;;
12816: ia64*)
12817: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818: ;;
12819: *)
12820: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12821: ;;
12822: esac
12823: # Commands to make compiler produce verbose output that lists
12824: # what "hidden" libraries, object files and flags are used when
12825: # linking a shared library.
12826: #
12827: # There doesn't appear to be a way to prevent this compiler from
12828: # explicitly linking system object files so we need to strip them
12829: # from the output so that they don't get included in the library
12830: # dependencies.
12831: 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"'
12832: ;;
12833: *)
12834: if test "$GXX" = yes; then
12835: if test $with_gnu_ld = no; then
12836: case $host_cpu in
12837: hppa*64*)
12838: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12839: ;;
12840: ia64*)
12841: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12842: ;;
12843: *)
12844: 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'
12845: ;;
12846: esac
12847: fi
12848: else
12849: # FIXME: insert proper C++ library support
12850: ld_shlibs_CXX=no
12851: fi
12852: ;;
12853: esac
12854: ;;
12855:
12856: interix[3-9]*)
12857: hardcode_direct_CXX=no
12858: hardcode_shlibpath_var_CXX=no
12859: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12860: export_dynamic_flag_spec_CXX='${wl}-E'
12861: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12862: # Instead, shared libraries are loaded at an image base (0x10000000 by
12863: # default) and relocated if they conflict, which is a slow very memory
12864: # consuming and fragmenting process. To avoid this, we pick a random,
12865: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12866: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12867: 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'
12868: 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'
12869: ;;
12870: irix5* | irix6*)
12871: case $cc_basename in
12872: CC*)
12873: # SGI C++
12874: 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'
12875:
12876: # Archives containing C++ object files must be created using
12877: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12878: # necessary to make sure instantiated templates are included
12879: # in the archive.
12880: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12881: ;;
12882: *)
12883: if test "$GXX" = yes; then
12884: if test "$with_gnu_ld" = no; then
12885: 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'
12886: else
12887: 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'
12888: fi
12889: fi
12890: link_all_deplibs_CXX=yes
12891: ;;
12892: esac
12893: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12894: hardcode_libdir_separator_CXX=:
12895: inherit_rpath_CXX=yes
12896: ;;
12897:
12898: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12899: case $cc_basename in
12900: KCC*)
12901: # Kuck and Associates, Inc. (KAI) C++ Compiler
12902:
12903: # KCC will only create a shared library if the output file
12904: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12905: # to its proper name (with version) after linking.
12906: 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'
12907: 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'
12908: # Commands to make compiler produce verbose output that lists
12909: # what "hidden" libraries, object files and flags are used when
12910: # linking a shared library.
12911: #
12912: # There doesn't appear to be a way to prevent this compiler from
12913: # explicitly linking system object files so we need to strip them
12914: # from the output so that they don't get included in the library
12915: # dependencies.
12916: 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"'
12917:
12918: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12919: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12920:
12921: # Archives containing C++ object files must be created using
12922: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12923: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12924: ;;
12925: icpc* | ecpc* )
12926: # Intel C++
12927: with_gnu_ld=yes
12928: # version 8.0 and above of icpc choke on multiply defined symbols
12929: # if we add $predep_objects and $postdep_objects, however 7.1 and
12930: # earlier do not add the objects themselves.
12931: case `$CC -V 2>&1` in
12932: *"Version 7."*)
12933: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934: 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'
12935: ;;
12936: *) # Version 8.0 or newer
12937: tmp_idyn=
12938: case $host_cpu in
12939: ia64*) tmp_idyn=' -i_dynamic';;
12940: esac
12941: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942: 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'
12943: ;;
12944: esac
12945: archive_cmds_need_lc_CXX=no
12946: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12947: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12948: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12949: ;;
12950: pgCC* | pgcpp*)
12951: # Portland Group C++ compiler
12952: case `$CC -V` in
12953: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12954: prelink_cmds_CXX='tpldir=Template.dir~
12955: rm -rf $tpldir~
12956: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12957: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12958: old_archive_cmds_CXX='tpldir=Template.dir~
12959: rm -rf $tpldir~
12960: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12961: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12962: $RANLIB $oldlib'
12963: archive_cmds_CXX='tpldir=Template.dir~
12964: rm -rf $tpldir~
12965: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12966: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12967: archive_expsym_cmds_CXX='tpldir=Template.dir~
12968: rm -rf $tpldir~
12969: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12970: $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'
12971: ;;
12972: *) # Version 6 and above use weak symbols
12973: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12974: 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'
12975: ;;
12976: esac
12977:
12978: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12979: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980: 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'
12981: ;;
12982: cxx*)
12983: # Compaq C++
12984: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12985: 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'
12986:
12987: runpath_var=LD_RUN_PATH
12988: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12989: hardcode_libdir_separator_CXX=:
12990:
12991: # Commands to make compiler produce verbose output that lists
12992: # what "hidden" libraries, object files and flags are used when
12993: # linking a shared library.
12994: #
12995: # There doesn't appear to be a way to prevent this compiler from
12996: # explicitly linking system object files so we need to strip them
12997: # from the output so that they don't get included in the library
12998: # dependencies.
12999: 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'
13000: ;;
13001: xl* | mpixl* | bgxl*)
13002: # IBM XL 8.0 on PPC, with GNU ld
13003: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13005: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13006: if test "x$supports_anon_versioning" = xyes; then
13007: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13008: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13009: echo "local: *; };" >> $output_objdir/$libname.ver~
13010: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13011: fi
13012: ;;
13013: *)
13014: case `$CC -V 2>&1 | sed 5q` in
13015: *Sun\ C*)
13016: # Sun C++ 5.9
13017: no_undefined_flag_CXX=' -zdefs'
13018: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019: 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'
13020: hardcode_libdir_flag_spec_CXX='-R$libdir'
13021: 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'
13022: compiler_needs_object_CXX=yes
13023:
13024: # Not sure whether something based on
13025: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13026: # would be better.
13027: output_verbose_link_cmd='func_echo_all'
13028:
13029: # Archives containing C++ object files must be created using
13030: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13031: # necessary to make sure instantiated templates are included
13032: # in the archive.
13033: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13034: ;;
13035: esac
13036: ;;
13037: esac
13038: ;;
13039:
13040: lynxos*)
13041: # FIXME: insert proper C++ library support
13042: ld_shlibs_CXX=no
13043: ;;
13044:
13045: m88k*)
13046: # FIXME: insert proper C++ library support
13047: ld_shlibs_CXX=no
13048: ;;
13049:
13050: mvs*)
13051: case $cc_basename in
13052: cxx*)
13053: # FIXME: insert proper C++ library support
13054: ld_shlibs_CXX=no
13055: ;;
13056: *)
13057: # FIXME: insert proper C++ library support
13058: ld_shlibs_CXX=no
13059: ;;
13060: esac
13061: ;;
13062:
13063: netbsd*)
13064: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13065: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13066: wlarc=
13067: hardcode_libdir_flag_spec_CXX='-R$libdir'
13068: hardcode_direct_CXX=yes
13069: hardcode_shlibpath_var_CXX=no
13070: fi
13071: # Workaround some broken pre-1.5 toolchains
13072: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13073: ;;
13074:
13075: *nto* | *qnx*)
13076: ld_shlibs_CXX=yes
13077: ;;
13078:
13079: openbsd2*)
13080: # C++ shared libraries are fairly broken
13081: ld_shlibs_CXX=no
13082: ;;
13083:
13084: openbsd*)
13085: if test -f /usr/libexec/ld.so; then
13086: hardcode_direct_CXX=yes
13087: hardcode_shlibpath_var_CXX=no
13088: hardcode_direct_absolute_CXX=yes
13089: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13090: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13091: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13092: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13093: export_dynamic_flag_spec_CXX='${wl}-E'
13094: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13095: fi
13096: output_verbose_link_cmd=func_echo_all
13097: else
13098: ld_shlibs_CXX=no
13099: fi
13100: ;;
13101:
13102: osf3* | osf4* | osf5*)
13103: case $cc_basename in
13104: KCC*)
13105: # Kuck and Associates, Inc. (KAI) C++ Compiler
13106:
13107: # KCC will only create a shared library if the output file
13108: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13109: # to its proper name (with version) after linking.
13110: 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'
13111:
13112: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13113: hardcode_libdir_separator_CXX=:
13114:
13115: # Archives containing C++ object files must be created using
13116: # the KAI C++ compiler.
13117: case $host in
13118: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13119: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13120: esac
13121: ;;
13122: RCC*)
13123: # Rational C++ 2.4.1
13124: # FIXME: insert proper C++ library support
13125: ld_shlibs_CXX=no
13126: ;;
13127: cxx*)
13128: case $host in
13129: osf3*)
13130: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13131: 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'
13132: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13133: ;;
13134: *)
13135: allow_undefined_flag_CXX=' -expect_unresolved \*'
13136: 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'
13137: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13138: echo "-hidden">> $lib.exp~
13139: $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~
13140: $RM $lib.exp'
13141: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13142: ;;
13143: esac
13144:
13145: hardcode_libdir_separator_CXX=:
13146:
13147: # Commands to make compiler produce verbose output that lists
13148: # what "hidden" libraries, object files and flags are used when
13149: # linking a shared library.
13150: #
13151: # There doesn't appear to be a way to prevent this compiler from
13152: # explicitly linking system object files so we need to strip them
13153: # from the output so that they don't get included in the library
13154: # dependencies.
13155: 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"'
13156: ;;
13157: *)
13158: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13159: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160: case $host in
13161: osf3*)
13162: 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'
13163: ;;
13164: *)
13165: 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'
13166: ;;
13167: esac
13168:
13169: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13170: hardcode_libdir_separator_CXX=:
13171:
13172: # Commands to make compiler produce verbose output that lists
13173: # what "hidden" libraries, object files and flags are used when
13174: # linking a shared library.
13175: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13176:
13177: else
13178: # FIXME: insert proper C++ library support
13179: ld_shlibs_CXX=no
13180: fi
13181: ;;
13182: esac
13183: ;;
13184:
13185: psos*)
13186: # FIXME: insert proper C++ library support
13187: ld_shlibs_CXX=no
13188: ;;
13189:
13190: sunos4*)
13191: case $cc_basename in
13192: CC*)
13193: # Sun C++ 4.x
13194: # FIXME: insert proper C++ library support
13195: ld_shlibs_CXX=no
13196: ;;
13197: lcc*)
13198: # Lucid
13199: # FIXME: insert proper C++ library support
13200: ld_shlibs_CXX=no
13201: ;;
13202: *)
13203: # FIXME: insert proper C++ library support
13204: ld_shlibs_CXX=no
13205: ;;
13206: esac
13207: ;;
13208:
13209: solaris*)
13210: case $cc_basename in
13211: CC* | sunCC*)
13212: # Sun C++ 4.2, 5.x and Centerline C++
13213: archive_cmds_need_lc_CXX=yes
13214: no_undefined_flag_CXX=' -zdefs'
13215: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13216: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13217: $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'
13218:
13219: hardcode_libdir_flag_spec_CXX='-R$libdir'
13220: hardcode_shlibpath_var_CXX=no
13221: case $host_os in
13222: solaris2.[0-5] | solaris2.[0-5].*) ;;
13223: *)
13224: # The compiler driver will combine and reorder linker options,
13225: # but understands `-z linker_flag'.
13226: # Supported since Solaris 2.6 (maybe 2.5.1?)
13227: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13228: ;;
13229: esac
13230: link_all_deplibs_CXX=yes
13231:
13232: output_verbose_link_cmd='func_echo_all'
13233:
13234: # Archives containing C++ object files must be created using
13235: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13236: # necessary to make sure instantiated templates are included
13237: # in the archive.
13238: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13239: ;;
13240: gcx*)
13241: # Green Hills C++ Compiler
13242: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13243:
13244: # The C++ compiler must be used to create the archive.
13245: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13246: ;;
13247: *)
13248: # GNU C++ compiler with Solaris linker
13249: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13250: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13251: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13252: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13253: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13255:
13256: # Commands to make compiler produce verbose output that lists
13257: # what "hidden" libraries, object files and flags are used when
13258: # linking a shared library.
13259: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13260: else
13261: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13262: # platform.
13263: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13264: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13265: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13266:
13267: # Commands to make compiler produce verbose output that lists
13268: # what "hidden" libraries, object files and flags are used when
13269: # linking a shared library.
13270: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13271: fi
13272:
13273: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13274: case $host_os in
13275: solaris2.[0-5] | solaris2.[0-5].*) ;;
13276: *)
13277: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13278: ;;
13279: esac
13280: fi
13281: ;;
13282: esac
13283: ;;
13284:
13285: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13286: no_undefined_flag_CXX='${wl}-z,text'
13287: archive_cmds_need_lc_CXX=no
13288: hardcode_shlibpath_var_CXX=no
13289: runpath_var='LD_RUN_PATH'
13290:
13291: case $cc_basename in
13292: CC*)
13293: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13294: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13295: ;;
13296: *)
13297: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299: ;;
13300: esac
13301: ;;
13302:
13303: sysv5* | sco3.2v5* | sco5v6*)
13304: # Note: We can NOT use -z defs as we might desire, because we do not
13305: # link with -lc, and that would cause any symbols used from libc to
13306: # always be unresolved, which means just about no library would
13307: # ever link correctly. If we're not using GNU ld we use -z text
13308: # though, which does catch some bad symbols but isn't as heavy-handed
13309: # as -z defs.
13310: no_undefined_flag_CXX='${wl}-z,text'
13311: allow_undefined_flag_CXX='${wl}-z,nodefs'
13312: archive_cmds_need_lc_CXX=no
13313: hardcode_shlibpath_var_CXX=no
13314: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13315: hardcode_libdir_separator_CXX=':'
13316: link_all_deplibs_CXX=yes
13317: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13318: runpath_var='LD_RUN_PATH'
13319:
13320: case $cc_basename in
13321: CC*)
13322: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13325: '"$old_archive_cmds_CXX"
13326: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13327: '"$reload_cmds_CXX"
13328: ;;
13329: *)
13330: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332: ;;
13333: esac
13334: ;;
13335:
13336: tandem*)
13337: case $cc_basename in
13338: NCC*)
13339: # NonStop-UX NCC 3.20
13340: # FIXME: insert proper C++ library support
13341: ld_shlibs_CXX=no
13342: ;;
13343: *)
13344: # FIXME: insert proper C++ library support
13345: ld_shlibs_CXX=no
13346: ;;
13347: esac
13348: ;;
13349:
13350: vxworks*)
13351: # FIXME: insert proper C++ library support
13352: ld_shlibs_CXX=no
13353: ;;
13354:
13355: *)
13356: # FIXME: insert proper C++ library support
13357: ld_shlibs_CXX=no
13358: ;;
13359: esac
13360:
13361: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13362: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13363: test "$ld_shlibs_CXX" = no && can_build_shared=no
13364:
13365: GCC_CXX="$GXX"
13366: LD_CXX="$LD"
13367:
13368: ## CAVEAT EMPTOR:
13369: ## There is no encapsulation within the following macros, do not change
13370: ## the running order or otherwise move them around unless you know exactly
13371: ## what you are doing...
13372: # Dependencies to place before and after the object being linked:
13373: predep_objects_CXX=
13374: postdep_objects_CXX=
13375: predeps_CXX=
13376: postdeps_CXX=
13377: compiler_lib_search_path_CXX=
13378:
13379: cat > conftest.$ac_ext <<_LT_EOF
13380: class Foo
13381: {
13382: public:
13383: Foo (void) { a = 0; }
13384: private:
13385: int a;
13386: };
13387: _LT_EOF
13388:
13389:
13390: _lt_libdeps_save_CFLAGS=$CFLAGS
13391: case "$CC $CFLAGS " in #(
13392: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13393: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13394: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13395: esac
13396:
13397: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398: (eval $ac_compile) 2>&5
13399: ac_status=$?
13400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401: (exit $ac_status); }; then
13402: # Parse the compiler output and extract the necessary
13403: # objects, libraries and library flags.
13404:
13405: # Sentinel used to keep track of whether or not we are before
13406: # the conftest object file.
13407: pre_test_object_deps_done=no
13408:
13409: for p in `eval "$output_verbose_link_cmd"`; do
13410: case ${prev}${p} in
13411:
13412: -L* | -R* | -l*)
13413: # Some compilers place space between "-{L,R}" and the path.
13414: # Remove the space.
13415: if test $p = "-L" ||
13416: test $p = "-R"; then
13417: prev=$p
13418: continue
13419: fi
13420:
13421: # Expand the sysroot to ease extracting the directories later.
13422: if test -z "$prev"; then
13423: case $p in
13424: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13425: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13426: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13427: esac
13428: fi
13429: case $p in
13430: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13431: esac
13432: if test "$pre_test_object_deps_done" = no; then
13433: case ${prev} in
13434: -L | -R)
13435: # Internal compiler library paths should come after those
13436: # provided the user. The postdeps already come after the
13437: # user supplied libs so there is no need to process them.
13438: if test -z "$compiler_lib_search_path_CXX"; then
13439: compiler_lib_search_path_CXX="${prev}${p}"
13440: else
13441: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13442: fi
13443: ;;
13444: # The "-l" case would never come before the object being
13445: # linked, so don't bother handling this case.
13446: esac
13447: else
13448: if test -z "$postdeps_CXX"; then
13449: postdeps_CXX="${prev}${p}"
13450: else
13451: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13452: fi
13453: fi
13454: prev=
13455: ;;
13456:
13457: *.lto.$objext) ;; # Ignore GCC LTO objects
13458: *.$objext)
13459: # This assumes that the test object file only shows up
13460: # once in the compiler output.
13461: if test "$p" = "conftest.$objext"; then
13462: pre_test_object_deps_done=yes
13463: continue
13464: fi
13465:
13466: if test "$pre_test_object_deps_done" = no; then
13467: if test -z "$predep_objects_CXX"; then
13468: predep_objects_CXX="$p"
13469: else
13470: predep_objects_CXX="$predep_objects_CXX $p"
13471: fi
13472: else
13473: if test -z "$postdep_objects_CXX"; then
13474: postdep_objects_CXX="$p"
13475: else
13476: postdep_objects_CXX="$postdep_objects_CXX $p"
13477: fi
13478: fi
13479: ;;
13480:
13481: *) ;; # Ignore the rest.
13482:
13483: esac
13484: done
13485:
13486: # Clean up.
13487: rm -f a.out a.exe
13488: else
13489: echo "libtool.m4: error: problem compiling CXX test program"
13490: fi
13491:
13492: $RM -f confest.$objext
13493: CFLAGS=$_lt_libdeps_save_CFLAGS
13494:
13495: # PORTME: override above test on systems where it is broken
13496: case $host_os in
13497: interix[3-9]*)
13498: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13499: # hack all around it, let's just trust "g++" to DTRT.
13500: predep_objects_CXX=
13501: postdep_objects_CXX=
13502: postdeps_CXX=
13503: ;;
13504:
13505: linux*)
13506: case `$CC -V 2>&1 | sed 5q` in
13507: *Sun\ C*)
13508: # Sun C++ 5.9
13509:
13510: # The more standards-conforming stlport4 library is
13511: # incompatible with the Cstd library. Avoid specifying
13512: # it if it's in CXXFLAGS. Ignore libCrun as
13513: # -library=stlport4 depends on it.
13514: case " $CXX $CXXFLAGS " in
13515: *" -library=stlport4 "*)
13516: solaris_use_stlport4=yes
13517: ;;
13518: esac
13519:
13520: if test "$solaris_use_stlport4" != yes; then
13521: postdeps_CXX='-library=Cstd -library=Crun'
13522: fi
13523: ;;
13524: esac
13525: ;;
13526:
13527: solaris*)
13528: case $cc_basename in
13529: CC* | sunCC*)
13530: # The more standards-conforming stlport4 library is
13531: # incompatible with the Cstd library. Avoid specifying
13532: # it if it's in CXXFLAGS. Ignore libCrun as
13533: # -library=stlport4 depends on it.
13534: case " $CXX $CXXFLAGS " in
13535: *" -library=stlport4 "*)
13536: solaris_use_stlport4=yes
13537: ;;
13538: esac
13539:
13540: # Adding this requires a known-good setup of shared libraries for
13541: # Sun compiler versions before 5.6, else PIC objects from an old
13542: # archive will be linked into the output, leading to subtle bugs.
13543: if test "$solaris_use_stlport4" != yes; then
13544: postdeps_CXX='-library=Cstd -library=Crun'
13545: fi
13546: ;;
13547: esac
13548: ;;
13549: esac
13550:
13551:
13552: case " $postdeps_CXX " in
13553: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13554: esac
13555: compiler_lib_search_dirs_CXX=
13556: if test -n "${compiler_lib_search_path_CXX}"; then
13557: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13558: fi
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590: lt_prog_compiler_wl_CXX=
13591: lt_prog_compiler_pic_CXX=
13592: lt_prog_compiler_static_CXX=
13593:
13594:
13595: # C++ specific cases for pic, static, wl, etc.
13596: if test "$GXX" = yes; then
13597: lt_prog_compiler_wl_CXX='-Wl,'
13598: lt_prog_compiler_static_CXX='-static'
13599:
13600: case $host_os in
13601: aix*)
13602: # All AIX code is PIC.
13603: if test "$host_cpu" = ia64; then
13604: # AIX 5 now supports IA64 processor
13605: lt_prog_compiler_static_CXX='-Bstatic'
13606: fi
13607: ;;
13608:
13609: amigaos*)
13610: case $host_cpu in
13611: powerpc)
13612: # see comment about AmigaOS4 .so support
13613: lt_prog_compiler_pic_CXX='-fPIC'
13614: ;;
13615: m68k)
13616: # FIXME: we need at least 68020 code to build shared libraries, but
13617: # adding the `-m68020' flag to GCC prevents building anything better,
13618: # like `-m68040'.
13619: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13620: ;;
13621: esac
13622: ;;
13623:
13624: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13625: # PIC is the default for these OSes.
13626: ;;
13627: mingw* | cygwin* | os2* | pw32* | cegcc*)
13628: # This hack is so that the source file can tell whether it is being
13629: # built for inclusion in a dll (and should export symbols for example).
13630: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13631: # (--disable-auto-import) libraries
13632: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13633: ;;
13634: darwin* | rhapsody*)
13635: # PIC is the default on this platform
13636: # Common symbols not allowed in MH_DYLIB files
13637: lt_prog_compiler_pic_CXX='-fno-common'
13638: ;;
13639: *djgpp*)
13640: # DJGPP does not support shared libraries at all
13641: lt_prog_compiler_pic_CXX=
13642: ;;
13643: haiku*)
13644: # PIC is the default for Haiku.
13645: # The "-static" flag exists, but is broken.
13646: lt_prog_compiler_static_CXX=
13647: ;;
13648: interix[3-9]*)
13649: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13650: # Instead, we relocate shared libraries at runtime.
13651: ;;
13652: sysv4*MP*)
13653: if test -d /usr/nec; then
13654: lt_prog_compiler_pic_CXX=-Kconform_pic
13655: fi
13656: ;;
13657: hpux*)
13658: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13659: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13660: # sets the default TLS model and affects inlining.
13661: case $host_cpu in
13662: hppa*64*)
13663: ;;
13664: *)
13665: lt_prog_compiler_pic_CXX='-fPIC'
13666: ;;
13667: esac
13668: ;;
13669: *qnx* | *nto*)
13670: # QNX uses GNU C++, but need to define -shared option too, otherwise
13671: # it will coredump.
13672: lt_prog_compiler_pic_CXX='-fPIC -shared'
13673: ;;
13674: *)
13675: lt_prog_compiler_pic_CXX='-fPIC'
13676: ;;
13677: esac
13678: else
13679: case $host_os in
13680: aix[4-9]*)
13681: # All AIX code is PIC.
13682: if test "$host_cpu" = ia64; then
13683: # AIX 5 now supports IA64 processor
13684: lt_prog_compiler_static_CXX='-Bstatic'
13685: else
13686: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13687: fi
13688: ;;
13689: chorus*)
13690: case $cc_basename in
13691: cxch68*)
13692: # Green Hills C++ Compiler
13693: # _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"
13694: ;;
13695: esac
13696: ;;
13697: mingw* | cygwin* | os2* | pw32* | cegcc*)
13698: # This hack is so that the source file can tell whether it is being
13699: # built for inclusion in a dll (and should export symbols for example).
13700: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13701: ;;
13702: dgux*)
13703: case $cc_basename in
13704: ec++*)
13705: lt_prog_compiler_pic_CXX='-KPIC'
13706: ;;
13707: ghcx*)
13708: # Green Hills C++ Compiler
13709: lt_prog_compiler_pic_CXX='-pic'
13710: ;;
13711: *)
13712: ;;
13713: esac
13714: ;;
13715: freebsd* | dragonfly*)
13716: # FreeBSD uses GNU C++
13717: ;;
13718: hpux9* | hpux10* | hpux11*)
13719: case $cc_basename in
13720: CC*)
13721: lt_prog_compiler_wl_CXX='-Wl,'
13722: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13723: if test "$host_cpu" != ia64; then
13724: lt_prog_compiler_pic_CXX='+Z'
13725: fi
13726: ;;
13727: aCC*)
13728: lt_prog_compiler_wl_CXX='-Wl,'
13729: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730: case $host_cpu in
13731: hppa*64*|ia64*)
13732: # +Z the default
13733: ;;
13734: *)
13735: lt_prog_compiler_pic_CXX='+Z'
13736: ;;
13737: esac
13738: ;;
13739: *)
13740: ;;
13741: esac
13742: ;;
13743: interix*)
13744: # This is c89, which is MS Visual C++ (no shared libs)
13745: # Anyone wants to do a port?
13746: ;;
13747: irix5* | irix6* | nonstopux*)
13748: case $cc_basename in
13749: CC*)
13750: lt_prog_compiler_wl_CXX='-Wl,'
13751: lt_prog_compiler_static_CXX='-non_shared'
13752: # CC pic flag -KPIC is the default.
13753: ;;
13754: *)
13755: ;;
13756: esac
13757: ;;
13758: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13759: case $cc_basename in
13760: KCC*)
13761: # KAI C++ Compiler
13762: lt_prog_compiler_wl_CXX='--backend -Wl,'
13763: lt_prog_compiler_pic_CXX='-fPIC'
13764: ;;
13765: ecpc* )
13766: # old Intel C++ for x86_64 which still supported -KPIC.
13767: lt_prog_compiler_wl_CXX='-Wl,'
13768: lt_prog_compiler_pic_CXX='-KPIC'
13769: lt_prog_compiler_static_CXX='-static'
13770: ;;
13771: icpc* )
13772: # Intel C++, used to be incompatible with GCC.
13773: # ICC 10 doesn't accept -KPIC any more.
13774: lt_prog_compiler_wl_CXX='-Wl,'
13775: lt_prog_compiler_pic_CXX='-fPIC'
13776: lt_prog_compiler_static_CXX='-static'
13777: ;;
13778: pgCC* | pgcpp*)
13779: # Portland Group C++ compiler
13780: lt_prog_compiler_wl_CXX='-Wl,'
13781: lt_prog_compiler_pic_CXX='-fpic'
13782: lt_prog_compiler_static_CXX='-Bstatic'
13783: ;;
13784: cxx*)
13785: # Compaq C++
13786: # Make sure the PIC flag is empty. It appears that all Alpha
13787: # Linux and Compaq Tru64 Unix objects are PIC.
13788: lt_prog_compiler_pic_CXX=
13789: lt_prog_compiler_static_CXX='-non_shared'
13790: ;;
13791: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13792: # IBM XL 8.0, 9.0 on PPC and BlueGene
13793: lt_prog_compiler_wl_CXX='-Wl,'
13794: lt_prog_compiler_pic_CXX='-qpic'
13795: lt_prog_compiler_static_CXX='-qstaticlink'
13796: ;;
13797: *)
13798: case `$CC -V 2>&1 | sed 5q` in
13799: *Sun\ C*)
13800: # Sun C++ 5.9
13801: lt_prog_compiler_pic_CXX='-KPIC'
13802: lt_prog_compiler_static_CXX='-Bstatic'
13803: lt_prog_compiler_wl_CXX='-Qoption ld '
13804: ;;
13805: esac
13806: ;;
13807: esac
13808: ;;
13809: lynxos*)
13810: ;;
13811: m88k*)
13812: ;;
13813: mvs*)
13814: case $cc_basename in
13815: cxx*)
13816: lt_prog_compiler_pic_CXX='-W c,exportall'
13817: ;;
13818: *)
13819: ;;
13820: esac
13821: ;;
13822: netbsd*)
13823: ;;
13824: *qnx* | *nto*)
13825: # QNX uses GNU C++, but need to define -shared option too, otherwise
13826: # it will coredump.
13827: lt_prog_compiler_pic_CXX='-fPIC -shared'
13828: ;;
13829: osf3* | osf4* | osf5*)
13830: case $cc_basename in
13831: KCC*)
13832: lt_prog_compiler_wl_CXX='--backend -Wl,'
13833: ;;
13834: RCC*)
13835: # Rational C++ 2.4.1
13836: lt_prog_compiler_pic_CXX='-pic'
13837: ;;
13838: cxx*)
13839: # Digital/Compaq C++
13840: lt_prog_compiler_wl_CXX='-Wl,'
13841: # Make sure the PIC flag is empty. It appears that all Alpha
13842: # Linux and Compaq Tru64 Unix objects are PIC.
13843: lt_prog_compiler_pic_CXX=
13844: lt_prog_compiler_static_CXX='-non_shared'
13845: ;;
13846: *)
13847: ;;
13848: esac
13849: ;;
13850: psos*)
13851: ;;
13852: solaris*)
13853: case $cc_basename in
13854: CC* | sunCC*)
13855: # Sun C++ 4.2, 5.x and Centerline C++
13856: lt_prog_compiler_pic_CXX='-KPIC'
13857: lt_prog_compiler_static_CXX='-Bstatic'
13858: lt_prog_compiler_wl_CXX='-Qoption ld '
13859: ;;
13860: gcx*)
13861: # Green Hills C++ Compiler
13862: lt_prog_compiler_pic_CXX='-PIC'
13863: ;;
13864: *)
13865: ;;
13866: esac
13867: ;;
13868: sunos4*)
13869: case $cc_basename in
13870: CC*)
13871: # Sun C++ 4.x
13872: lt_prog_compiler_pic_CXX='-pic'
13873: lt_prog_compiler_static_CXX='-Bstatic'
13874: ;;
13875: lcc*)
13876: # Lucid
13877: lt_prog_compiler_pic_CXX='-pic'
13878: ;;
13879: *)
13880: ;;
13881: esac
13882: ;;
13883: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13884: case $cc_basename in
13885: CC*)
13886: lt_prog_compiler_wl_CXX='-Wl,'
13887: lt_prog_compiler_pic_CXX='-KPIC'
13888: lt_prog_compiler_static_CXX='-Bstatic'
13889: ;;
13890: esac
13891: ;;
13892: tandem*)
13893: case $cc_basename in
13894: NCC*)
13895: # NonStop-UX NCC 3.20
13896: lt_prog_compiler_pic_CXX='-KPIC'
13897: ;;
13898: *)
13899: ;;
13900: esac
13901: ;;
13902: vxworks*)
13903: ;;
13904: *)
13905: lt_prog_compiler_can_build_shared_CXX=no
13906: ;;
13907: esac
13908: fi
13909:
13910: case $host_os in
13911: # For platforms which do not support PIC, -DPIC is meaningless:
13912: *djgpp*)
13913: lt_prog_compiler_pic_CXX=
13914: ;;
13915: *)
13916: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13917: ;;
13918: esac
13919:
13920: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13921: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13922: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
13923: echo $ECHO_N "(cached) $ECHO_C" >&6
13924: else
13925: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13926: fi
13927: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
13928: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
13929: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13930:
13931: #
13932: # Check to make sure the PIC flag actually works.
13933: #
13934: if test -n "$lt_prog_compiler_pic_CXX"; then
13935: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13936: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13937: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13938: echo $ECHO_N "(cached) $ECHO_C" >&6
13939: else
13940: lt_cv_prog_compiler_pic_works_CXX=no
13941: ac_outfile=conftest.$ac_objext
13942: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13943: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13944: # Insert the option either (1) after the last *FLAGS variable, or
13945: # (2) before a word containing "conftest.", or (3) at the end.
13946: # Note that $ac_compile itself does not contain backslashes and begins
13947: # with a dollar sign (not a hyphen), so the echo should work correctly.
13948: # The option is referenced via a variable to avoid confusing sed.
13949: lt_compile=`echo "$ac_compile" | $SED \
13950: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952: -e 's:$: $lt_compiler_flag:'`
13953: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954: (eval "$lt_compile" 2>conftest.err)
13955: ac_status=$?
13956: cat conftest.err >&5
13957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958: if (exit $ac_status) && test -s "$ac_outfile"; then
13959: # The compiler can only warn and ignore the option if not recognized
13960: # So say no if there are warnings other than the usual output.
13961: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13962: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13963: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13964: lt_cv_prog_compiler_pic_works_CXX=yes
13965: fi
13966: fi
13967: $RM conftest*
13968:
13969: fi
13970: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13971: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13972:
13973: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13974: case $lt_prog_compiler_pic_CXX in
13975: "" | " "*) ;;
13976: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13977: esac
13978: else
13979: lt_prog_compiler_pic_CXX=
13980: lt_prog_compiler_can_build_shared_CXX=no
13981: fi
13982:
13983: fi
13984:
13985:
13986:
13987:
13988:
13989: #
13990: # Check to make sure the static flag actually works.
13991: #
13992: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13993: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13994: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13995: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13996: echo $ECHO_N "(cached) $ECHO_C" >&6
13997: else
13998: lt_cv_prog_compiler_static_works_CXX=no
13999: save_LDFLAGS="$LDFLAGS"
14000: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14001: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14002: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14003: # The linker can only warn and ignore the option if not recognized
14004: # So say no if there are warnings
14005: if test -s conftest.err; then
14006: # Append any errors to the config.log.
14007: cat conftest.err 1>&5
14008: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14009: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14010: if diff conftest.exp conftest.er2 >/dev/null; then
14011: lt_cv_prog_compiler_static_works_CXX=yes
14012: fi
14013: else
14014: lt_cv_prog_compiler_static_works_CXX=yes
14015: fi
14016: fi
14017: $RM -r conftest*
14018: LDFLAGS="$save_LDFLAGS"
14019:
14020: fi
14021: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14022: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14023:
14024: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14025: :
14026: else
14027: lt_prog_compiler_static_CXX=
14028: fi
14029:
14030:
14031:
14032:
14033: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14034: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14035: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14036: echo $ECHO_N "(cached) $ECHO_C" >&6
14037: else
14038: lt_cv_prog_compiler_c_o_CXX=no
14039: $RM -r conftest 2>/dev/null
14040: mkdir conftest
14041: cd conftest
14042: mkdir out
14043: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14044:
14045: lt_compiler_flag="-o out/conftest2.$ac_objext"
14046: # Insert the option either (1) after the last *FLAGS variable, or
14047: # (2) before a word containing "conftest.", or (3) at the end.
14048: # Note that $ac_compile itself does not contain backslashes and begins
14049: # with a dollar sign (not a hyphen), so the echo should work correctly.
14050: lt_compile=`echo "$ac_compile" | $SED \
14051: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14052: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14053: -e 's:$: $lt_compiler_flag:'`
14054: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14055: (eval "$lt_compile" 2>out/conftest.err)
14056: ac_status=$?
14057: cat out/conftest.err >&5
14058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14060: then
14061: # The compiler can only warn and ignore the option if not recognized
14062: # So say no if there are warnings
14063: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14064: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14065: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14066: lt_cv_prog_compiler_c_o_CXX=yes
14067: fi
14068: fi
14069: chmod u+w . 2>&5
14070: $RM conftest*
14071: # SGI C++ compiler will create directory out/ii_files/ for
14072: # template instantiation
14073: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14074: $RM out/* && rmdir out
14075: cd ..
14076: $RM -r conftest
14077: $RM conftest*
14078:
14079: fi
14080: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14081: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14082:
14083:
14084:
14085: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14086: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14087: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14088: echo $ECHO_N "(cached) $ECHO_C" >&6
14089: else
14090: lt_cv_prog_compiler_c_o_CXX=no
14091: $RM -r conftest 2>/dev/null
14092: mkdir conftest
14093: cd conftest
14094: mkdir out
14095: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14096:
14097: lt_compiler_flag="-o out/conftest2.$ac_objext"
14098: # Insert the option either (1) after the last *FLAGS variable, or
14099: # (2) before a word containing "conftest.", or (3) at the end.
14100: # Note that $ac_compile itself does not contain backslashes and begins
14101: # with a dollar sign (not a hyphen), so the echo should work correctly.
14102: lt_compile=`echo "$ac_compile" | $SED \
14103: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14104: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14105: -e 's:$: $lt_compiler_flag:'`
14106: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14107: (eval "$lt_compile" 2>out/conftest.err)
14108: ac_status=$?
14109: cat out/conftest.err >&5
14110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14112: then
14113: # The compiler can only warn and ignore the option if not recognized
14114: # So say no if there are warnings
14115: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14116: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14117: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14118: lt_cv_prog_compiler_c_o_CXX=yes
14119: fi
14120: fi
14121: chmod u+w . 2>&5
14122: $RM conftest*
14123: # SGI C++ compiler will create directory out/ii_files/ for
14124: # template instantiation
14125: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14126: $RM out/* && rmdir out
14127: cd ..
14128: $RM -r conftest
14129: $RM conftest*
14130:
14131: fi
14132: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14133: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14134:
14135:
14136:
14137:
14138: hard_links="nottested"
14139: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14140: # do not overwrite the value of need_locks provided by the user
14141: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14142: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14143: hard_links=yes
14144: $RM conftest*
14145: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14146: touch conftest.a
14147: ln conftest.a conftest.b 2>&5 || hard_links=no
14148: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149: echo "$as_me:$LINENO: result: $hard_links" >&5
14150: echo "${ECHO_T}$hard_links" >&6
14151: if test "$hard_links" = no; then
14152: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14153: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14154: need_locks=warn
14155: fi
14156: else
14157: need_locks=no
14158: fi
14159:
14160:
14161:
14162: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14163: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14164:
14165: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14166: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14167: case $host_os in
14168: aix[4-9]*)
14169: # If we're using GNU nm, then we don't want the "-C" option.
14170: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14171: # Also, AIX nm treats weak defined symbols like other global defined
14172: # symbols, whereas GNU nm marks them as "W".
14173: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14174: 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'
14175: else
14176: 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'
14177: fi
14178: ;;
14179: pw32*)
14180: export_symbols_cmds_CXX="$ltdll_cmds"
14181: ;;
14182: cygwin* | mingw* | cegcc*)
14183: case $cc_basename in
14184: cl*)
14185: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14186: ;;
14187: *)
14188: 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'
14189: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14190: ;;
14191: esac
14192: ;;
14193: *)
14194: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195: ;;
14196: esac
14197:
14198: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14199: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14200: test "$ld_shlibs_CXX" = no && can_build_shared=no
14201:
14202: with_gnu_ld_CXX=$with_gnu_ld
14203:
14204:
14205:
14206:
14207:
14208:
14209: #
14210: # Do we need to explicitly link libc?
14211: #
14212: case "x$archive_cmds_need_lc_CXX" in
14213: x|xyes)
14214: # Assume -lc should be added
14215: archive_cmds_need_lc_CXX=yes
14216:
14217: if test "$enable_shared" = yes && test "$GCC" = yes; then
14218: case $archive_cmds_CXX in
14219: *'~'*)
14220: # FIXME: we may have to deal with multi-command sequences.
14221: ;;
14222: '$CC '*)
14223: # Test whether the compiler implicitly links with -lc since on some
14224: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14225: # to ld, don't add -lc before -lgcc.
14226: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14227: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14228: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14229: echo $ECHO_N "(cached) $ECHO_C" >&6
14230: else
14231: $RM conftest*
14232: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14233:
14234: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235: (eval $ac_compile) 2>&5
14236: ac_status=$?
14237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238: (exit $ac_status); } 2>conftest.err; then
14239: soname=conftest
14240: lib=conftest
14241: libobjs=conftest.$ac_objext
14242: deplibs=
14243: wl=$lt_prog_compiler_wl_CXX
14244: pic_flag=$lt_prog_compiler_pic_CXX
14245: compiler_flags=-v
14246: linker_flags=-v
14247: verstring=
14248: output_objdir=.
14249: libname=conftest
14250: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14251: allow_undefined_flag_CXX=
14252: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14253: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14254: ac_status=$?
14255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256: (exit $ac_status); }
14257: then
14258: lt_cv_archive_cmds_need_lc_CXX=no
14259: else
14260: lt_cv_archive_cmds_need_lc_CXX=yes
14261: fi
14262: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14263: else
14264: cat conftest.err 1>&5
14265: fi
14266: $RM conftest*
14267:
14268: fi
14269: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14270: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14271: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14272: ;;
14273: esac
14274: fi
14275: ;;
14276: esac
14277:
14278:
14279:
14280:
14281:
14282:
14283:
14284:
14285:
14286:
14287:
14288:
14289:
14290:
14291:
14292:
14293:
14294:
14295:
14296:
14297:
14298:
14299:
14300:
14301:
14302:
14303:
14304:
14305:
14306:
14307:
14308:
14309:
14310:
14311:
14312:
14313:
14314:
14315:
14316:
14317:
14318:
14319:
14320:
14321:
14322:
14323:
14324:
14325:
14326:
14327:
14328:
14329:
14330:
14331:
14332:
14333:
14334:
14335:
14336:
14337:
14338:
14339: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14340: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14341:
14342: library_names_spec=
14343: libname_spec='lib$name'
14344: soname_spec=
14345: shrext_cmds=".so"
14346: postinstall_cmds=
14347: postuninstall_cmds=
14348: finish_cmds=
14349: finish_eval=
14350: shlibpath_var=
14351: shlibpath_overrides_runpath=unknown
14352: version_type=none
14353: dynamic_linker="$host_os ld.so"
14354: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14355: need_lib_prefix=unknown
14356: hardcode_into_libs=no
14357:
14358: # when you set need_version to no, make sure it does not cause -set_version
14359: # flags to be left without arguments
14360: need_version=unknown
14361:
14362: case $host_os in
14363: aix3*)
14364: version_type=linux # correct to gnu/linux during the next big refactor
14365: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14366: shlibpath_var=LIBPATH
14367:
14368: # AIX 3 has no versioning support, so we append a major version to the name.
14369: soname_spec='${libname}${release}${shared_ext}$major'
14370: ;;
14371:
14372: aix[4-9]*)
14373: version_type=linux # correct to gnu/linux during the next big refactor
14374: need_lib_prefix=no
14375: need_version=no
14376: hardcode_into_libs=yes
14377: if test "$host_cpu" = ia64; then
14378: # AIX 5 supports IA64
14379: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14380: shlibpath_var=LD_LIBRARY_PATH
14381: else
14382: # With GCC up to 2.95.x, collect2 would create an import file
14383: # for dependence libraries. The import file would start with
14384: # the line `#! .'. This would cause the generated library to
14385: # depend on `.', always an invalid library. This was fixed in
14386: # development snapshots of GCC prior to 3.0.
14387: case $host_os in
14388: aix4 | aix4.[01] | aix4.[01].*)
14389: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14390: echo ' yes '
14391: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14392: :
14393: else
14394: can_build_shared=no
14395: fi
14396: ;;
14397: esac
14398: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14399: # soname into executable. Probably we can add versioning support to
14400: # collect2, so additional links can be useful in future.
14401: if test "$aix_use_runtimelinking" = yes; then
14402: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14403: # instead of lib<name>.a to let people know that these are not
14404: # typical AIX shared libraries.
14405: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406: else
14407: # We preserve .a as extension for shared libraries through AIX4.2
14408: # and later when we are not doing run time linking.
14409: library_names_spec='${libname}${release}.a $libname.a'
14410: soname_spec='${libname}${release}${shared_ext}$major'
14411: fi
14412: shlibpath_var=LIBPATH
14413: fi
14414: ;;
14415:
14416: amigaos*)
14417: case $host_cpu in
14418: powerpc)
14419: # Since July 2007 AmigaOS4 officially supports .so libraries.
14420: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14421: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422: ;;
14423: m68k)
14424: library_names_spec='$libname.ixlibrary $libname.a'
14425: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14426: 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'
14427: ;;
14428: esac
14429: ;;
14430:
14431: beos*)
14432: library_names_spec='${libname}${shared_ext}'
14433: dynamic_linker="$host_os ld.so"
14434: shlibpath_var=LIBRARY_PATH
14435: ;;
14436:
14437: bsdi[45]*)
14438: version_type=linux # correct to gnu/linux during the next big refactor
14439: need_version=no
14440: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441: soname_spec='${libname}${release}${shared_ext}$major'
14442: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14443: shlibpath_var=LD_LIBRARY_PATH
14444: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14445: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14446: # the default ld.so.conf also contains /usr/contrib/lib and
14447: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14448: # libtool to hard-code these into programs
14449: ;;
14450:
14451: cygwin* | mingw* | pw32* | cegcc*)
14452: version_type=windows
14453: shrext_cmds=".dll"
14454: need_version=no
14455: need_lib_prefix=no
14456:
14457: case $GCC,$cc_basename in
14458: yes,*)
14459: # gcc
14460: library_names_spec='$libname.dll.a'
14461: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14462: postinstall_cmds='base_file=`basename \${file}`~
14463: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14464: dldir=$destdir/`dirname \$dlpath`~
14465: test -d \$dldir || mkdir -p \$dldir~
14466: $install_prog $dir/$dlname \$dldir/$dlname~
14467: chmod a+x \$dldir/$dlname~
14468: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14469: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14470: fi'
14471: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14472: dlpath=$dir/\$dldll~
14473: $RM \$dlpath'
14474: shlibpath_overrides_runpath=yes
14475:
14476: case $host_os in
14477: cygwin*)
14478: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14479: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480:
14481: ;;
14482: mingw* | cegcc*)
14483: # MinGW DLLs use traditional 'lib' prefix
14484: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485: ;;
14486: pw32*)
14487: # pw32 DLLs use 'pw' prefix rather than 'lib'
14488: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489: ;;
14490: esac
14491: dynamic_linker='Win32 ld.exe'
14492: ;;
14493:
14494: *,cl*)
14495: # Native MSVC
14496: libname_spec='$name'
14497: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14498: library_names_spec='${libname}.dll.lib'
14499:
14500: case $build_os in
14501: mingw*)
14502: sys_lib_search_path_spec=
14503: lt_save_ifs=$IFS
14504: IFS=';'
14505: for lt_path in $LIB
14506: do
14507: IFS=$lt_save_ifs
14508: # Let DOS variable expansion print the short 8.3 style file name.
14509: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14510: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14511: done
14512: IFS=$lt_save_ifs
14513: # Convert to MSYS style.
14514: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14515: ;;
14516: cygwin*)
14517: # Convert to unix form, then to dos form, then back to unix form
14518: # but this time dos style (no spaces!) so that the unix form looks
14519: # like /cygdrive/c/PROGRA~1:/cygdr...
14520: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14521: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14522: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14523: ;;
14524: *)
14525: sys_lib_search_path_spec="$LIB"
14526: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14527: # It is most probably a Windows format PATH.
14528: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14529: else
14530: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14531: fi
14532: # FIXME: find the short name or the path components, as spaces are
14533: # common. (e.g. "Program Files" -> "PROGRA~1")
14534: ;;
14535: esac
14536:
14537: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538: postinstall_cmds='base_file=`basename \${file}`~
14539: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14540: dldir=$destdir/`dirname \$dlpath`~
14541: test -d \$dldir || mkdir -p \$dldir~
14542: $install_prog $dir/$dlname \$dldir/$dlname'
14543: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14544: dlpath=$dir/\$dldll~
14545: $RM \$dlpath'
14546: shlibpath_overrides_runpath=yes
14547: dynamic_linker='Win32 link.exe'
14548: ;;
14549:
14550: *)
14551: # Assume MSVC wrapper
14552: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14553: dynamic_linker='Win32 ld.exe'
14554: ;;
14555: esac
14556: # FIXME: first we should search . and the directory the executable is in
14557: shlibpath_var=PATH
14558: ;;
14559:
14560: darwin* | rhapsody*)
14561: dynamic_linker="$host_os dyld"
14562: version_type=darwin
14563: need_lib_prefix=no
14564: need_version=no
14565: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14566: soname_spec='${libname}${release}${major}$shared_ext'
14567: shlibpath_overrides_runpath=yes
14568: shlibpath_var=DYLD_LIBRARY_PATH
14569: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14570:
14571: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14572: ;;
14573:
14574: dgux*)
14575: version_type=linux # correct to gnu/linux during the next big refactor
14576: need_lib_prefix=no
14577: need_version=no
14578: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14579: soname_spec='${libname}${release}${shared_ext}$major'
14580: shlibpath_var=LD_LIBRARY_PATH
14581: ;;
14582:
14583: freebsd* | dragonfly*)
14584: # DragonFly does not have aout. When/if they implement a new
14585: # versioning mechanism, adjust this.
14586: if test -x /usr/bin/objformat; then
14587: objformat=`/usr/bin/objformat`
14588: else
14589: case $host_os in
14590: freebsd[23].*) objformat=aout ;;
14591: *) objformat=elf ;;
14592: esac
14593: fi
14594: version_type=freebsd-$objformat
14595: case $version_type in
14596: freebsd-elf*)
14597: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14598: need_version=no
14599: need_lib_prefix=no
14600: ;;
14601: freebsd-*)
14602: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14603: need_version=yes
14604: ;;
14605: esac
14606: shlibpath_var=LD_LIBRARY_PATH
14607: case $host_os in
14608: freebsd2.*)
14609: shlibpath_overrides_runpath=yes
14610: ;;
14611: freebsd3.[01]* | freebsdelf3.[01]*)
14612: shlibpath_overrides_runpath=yes
14613: hardcode_into_libs=yes
14614: ;;
14615: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14616: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14617: shlibpath_overrides_runpath=no
14618: hardcode_into_libs=yes
14619: ;;
14620: *) # from 4.6 on, and DragonFly
14621: shlibpath_overrides_runpath=yes
14622: hardcode_into_libs=yes
14623: ;;
14624: esac
14625: ;;
14626:
14627: gnu*)
14628: version_type=linux # correct to gnu/linux during the next big refactor
14629: need_lib_prefix=no
14630: need_version=no
14631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14632: soname_spec='${libname}${release}${shared_ext}$major'
14633: shlibpath_var=LD_LIBRARY_PATH
14634: shlibpath_overrides_runpath=no
14635: hardcode_into_libs=yes
14636: ;;
14637:
14638: haiku*)
14639: version_type=linux # correct to gnu/linux during the next big refactor
14640: need_lib_prefix=no
14641: need_version=no
14642: dynamic_linker="$host_os runtime_loader"
14643: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14644: soname_spec='${libname}${release}${shared_ext}$major'
14645: shlibpath_var=LIBRARY_PATH
14646: shlibpath_overrides_runpath=yes
14647: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14648: hardcode_into_libs=yes
14649: ;;
14650:
14651: hpux9* | hpux10* | hpux11*)
14652: # Give a soname corresponding to the major version so that dld.sl refuses to
14653: # link against other versions.
14654: version_type=sunos
14655: need_lib_prefix=no
14656: need_version=no
14657: case $host_cpu in
14658: ia64*)
14659: shrext_cmds='.so'
14660: hardcode_into_libs=yes
14661: dynamic_linker="$host_os dld.so"
14662: shlibpath_var=LD_LIBRARY_PATH
14663: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14664: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665: soname_spec='${libname}${release}${shared_ext}$major'
14666: if test "X$HPUX_IA64_MODE" = X32; then
14667: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14668: else
14669: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14670: fi
14671: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672: ;;
14673: hppa*64*)
14674: shrext_cmds='.sl'
14675: hardcode_into_libs=yes
14676: dynamic_linker="$host_os dld.sl"
14677: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14678: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14679: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680: soname_spec='${libname}${release}${shared_ext}$major'
14681: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14682: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683: ;;
14684: *)
14685: shrext_cmds='.sl'
14686: dynamic_linker="$host_os dld.sl"
14687: shlibpath_var=SHLIB_PATH
14688: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14689: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690: soname_spec='${libname}${release}${shared_ext}$major'
14691: ;;
14692: esac
14693: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14694: postinstall_cmds='chmod 555 $lib'
14695: # or fails outright, so override atomically:
14696: install_override_mode=555
14697: ;;
14698:
14699: interix[3-9]*)
14700: version_type=linux # correct to gnu/linux during the next big refactor
14701: need_lib_prefix=no
14702: need_version=no
14703: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14704: soname_spec='${libname}${release}${shared_ext}$major'
14705: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14706: shlibpath_var=LD_LIBRARY_PATH
14707: shlibpath_overrides_runpath=no
14708: hardcode_into_libs=yes
14709: ;;
14710:
14711: irix5* | irix6* | nonstopux*)
14712: case $host_os in
14713: nonstopux*) version_type=nonstopux ;;
14714: *)
14715: if test "$lt_cv_prog_gnu_ld" = yes; then
14716: version_type=linux # correct to gnu/linux during the next big refactor
14717: else
14718: version_type=irix
14719: fi ;;
14720: esac
14721: need_lib_prefix=no
14722: need_version=no
14723: soname_spec='${libname}${release}${shared_ext}$major'
14724: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14725: case $host_os in
14726: irix5* | nonstopux*)
14727: libsuff= shlibsuff=
14728: ;;
14729: *)
14730: case $LD in # libtool.m4 will add one of these switches to LD
14731: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14732: libsuff= shlibsuff= libmagic=32-bit;;
14733: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14734: libsuff=32 shlibsuff=N32 libmagic=N32;;
14735: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14736: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14737: *) libsuff= shlibsuff= libmagic=never-match;;
14738: esac
14739: ;;
14740: esac
14741: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14742: shlibpath_overrides_runpath=no
14743: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14744: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14745: hardcode_into_libs=yes
14746: ;;
14747:
14748: # No shared lib support for Linux oldld, aout, or coff.
14749: linux*oldld* | linux*aout* | linux*coff*)
14750: dynamic_linker=no
14751: ;;
14752:
14753: # This must be glibc/ELF.
14754: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14755: version_type=linux # correct to gnu/linux during the next big refactor
14756: need_lib_prefix=no
14757: need_version=no
14758: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759: soname_spec='${libname}${release}${shared_ext}$major'
14760: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14761: shlibpath_var=LD_LIBRARY_PATH
14762: shlibpath_overrides_runpath=no
14763:
14764: # Some binutils ld are patched to set DT_RUNPATH
14765: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14766: echo $ECHO_N "(cached) $ECHO_C" >&6
14767: else
14768: lt_cv_shlibpath_overrides_runpath=no
14769: save_LDFLAGS=$LDFLAGS
14770: save_libdir=$libdir
14771: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14772: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14773: cat >conftest.$ac_ext <<_ACEOF
14774: /* confdefs.h. */
14775: _ACEOF
14776: cat confdefs.h >>conftest.$ac_ext
14777: cat >>conftest.$ac_ext <<_ACEOF
14778: /* end confdefs.h. */
14779:
14780: int
14781: main ()
14782: {
14783:
14784: ;
14785: return 0;
14786: }
14787: _ACEOF
14788: rm -f conftest.$ac_objext conftest$ac_exeext
14789: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790: (eval $ac_link) 2>conftest.er1
14791: ac_status=$?
14792: grep -v '^ *+' conftest.er1 >conftest.err
14793: rm -f conftest.er1
14794: cat conftest.err >&5
14795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796: (exit $ac_status); } &&
14797: { ac_try='test -z "$ac_cxx_werror_flag"
14798: || test ! -s conftest.err'
14799: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800: (eval $ac_try) 2>&5
14801: ac_status=$?
14802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803: (exit $ac_status); }; } &&
14804: { ac_try='test -s conftest$ac_exeext'
14805: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806: (eval $ac_try) 2>&5
14807: ac_status=$?
14808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809: (exit $ac_status); }; }; then
14810: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14811: lt_cv_shlibpath_overrides_runpath=yes
14812: fi
14813:
14814: else
14815: echo "$as_me: failed program was:" >&5
14816: sed 's/^/| /' conftest.$ac_ext >&5
14817:
14818: fi
14819: rm -f conftest.err conftest.$ac_objext \
14820: conftest$ac_exeext conftest.$ac_ext
14821: LDFLAGS=$save_LDFLAGS
14822: libdir=$save_libdir
14823:
14824: fi
14825:
14826: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14827:
14828: # This implies no fast_install, which is unacceptable.
14829: # Some rework will be needed to allow for fast_install
14830: # before this can be enabled.
14831: hardcode_into_libs=yes
14832:
14833: # Append ld.so.conf contents to the search path
14834: if test -f /etc/ld.so.conf; then
14835: 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' ' '`
14836: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14837: fi
14838:
14839: # We used to test for /lib/ld.so.1 and disable shared libraries on
14840: # powerpc, because MkLinux only supported shared libraries with the
14841: # GNU dynamic linker. Since this was broken with cross compilers,
14842: # most powerpc-linux boxes support dynamic linking these days and
14843: # people can always --disable-shared, the test was removed, and we
14844: # assume the GNU/Linux dynamic linker is in use.
14845: dynamic_linker='GNU/Linux ld.so'
14846: ;;
14847:
14848: netbsd*)
14849: version_type=sunos
14850: need_lib_prefix=no
14851: need_version=no
14852: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14853: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855: dynamic_linker='NetBSD (a.out) ld.so'
14856: else
14857: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858: soname_spec='${libname}${release}${shared_ext}$major'
14859: dynamic_linker='NetBSD ld.elf_so'
14860: fi
14861: shlibpath_var=LD_LIBRARY_PATH
14862: shlibpath_overrides_runpath=yes
14863: hardcode_into_libs=yes
14864: ;;
14865:
14866: newsos6)
14867: version_type=linux # correct to gnu/linux during the next big refactor
14868: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869: shlibpath_var=LD_LIBRARY_PATH
14870: shlibpath_overrides_runpath=yes
14871: ;;
14872:
14873: *nto* | *qnx*)
14874: version_type=qnx
14875: need_lib_prefix=no
14876: need_version=no
14877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878: soname_spec='${libname}${release}${shared_ext}$major'
14879: shlibpath_var=LD_LIBRARY_PATH
14880: shlibpath_overrides_runpath=no
14881: hardcode_into_libs=yes
14882: dynamic_linker='ldqnx.so'
14883: ;;
14884:
14885: openbsd*)
14886: version_type=sunos
14887: sys_lib_dlsearch_path_spec="/usr/lib"
14888: need_lib_prefix=no
14889: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14890: case $host_os in
14891: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14892: *) need_version=no ;;
14893: esac
14894: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896: shlibpath_var=LD_LIBRARY_PATH
14897: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898: case $host_os in
14899: openbsd2.[89] | openbsd2.[89].*)
14900: shlibpath_overrides_runpath=no
14901: ;;
14902: *)
14903: shlibpath_overrides_runpath=yes
14904: ;;
14905: esac
14906: else
14907: shlibpath_overrides_runpath=yes
14908: fi
14909: ;;
14910:
14911: os2*)
14912: libname_spec='$name'
14913: shrext_cmds=".dll"
14914: need_lib_prefix=no
14915: library_names_spec='$libname${shared_ext} $libname.a'
14916: dynamic_linker='OS/2 ld.exe'
14917: shlibpath_var=LIBPATH
14918: ;;
14919:
14920: osf3* | osf4* | osf5*)
14921: version_type=osf
14922: need_lib_prefix=no
14923: need_version=no
14924: soname_spec='${libname}${release}${shared_ext}$major'
14925: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926: shlibpath_var=LD_LIBRARY_PATH
14927: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929: ;;
14930:
14931: rdos*)
14932: dynamic_linker=no
14933: ;;
14934:
14935: solaris*)
14936: version_type=linux # correct to gnu/linux during the next big refactor
14937: need_lib_prefix=no
14938: need_version=no
14939: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940: soname_spec='${libname}${release}${shared_ext}$major'
14941: shlibpath_var=LD_LIBRARY_PATH
14942: shlibpath_overrides_runpath=yes
14943: hardcode_into_libs=yes
14944: # ldd complains unless libraries are executable
14945: postinstall_cmds='chmod +x $lib'
14946: ;;
14947:
14948: sunos4*)
14949: version_type=sunos
14950: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14952: shlibpath_var=LD_LIBRARY_PATH
14953: shlibpath_overrides_runpath=yes
14954: if test "$with_gnu_ld" = yes; then
14955: need_lib_prefix=no
14956: fi
14957: need_version=yes
14958: ;;
14959:
14960: sysv4 | sysv4.3*)
14961: version_type=linux # correct to gnu/linux during the next big refactor
14962: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963: soname_spec='${libname}${release}${shared_ext}$major'
14964: shlibpath_var=LD_LIBRARY_PATH
14965: case $host_vendor in
14966: sni)
14967: shlibpath_overrides_runpath=no
14968: need_lib_prefix=no
14969: runpath_var=LD_RUN_PATH
14970: ;;
14971: siemens)
14972: need_lib_prefix=no
14973: ;;
14974: motorola)
14975: need_lib_prefix=no
14976: need_version=no
14977: shlibpath_overrides_runpath=no
14978: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979: ;;
14980: esac
14981: ;;
14982:
14983: sysv4*MP*)
14984: if test -d /usr/nec ;then
14985: version_type=linux # correct to gnu/linux during the next big refactor
14986: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987: soname_spec='$libname${shared_ext}.$major'
14988: shlibpath_var=LD_LIBRARY_PATH
14989: fi
14990: ;;
14991:
14992: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993: version_type=freebsd-elf
14994: need_lib_prefix=no
14995: need_version=no
14996: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997: soname_spec='${libname}${release}${shared_ext}$major'
14998: shlibpath_var=LD_LIBRARY_PATH
14999: shlibpath_overrides_runpath=yes
15000: hardcode_into_libs=yes
15001: if test "$with_gnu_ld" = yes; then
15002: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15003: else
15004: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005: case $host_os in
15006: sco3.2v5*)
15007: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15008: ;;
15009: esac
15010: fi
15011: sys_lib_dlsearch_path_spec='/usr/lib'
15012: ;;
15013:
15014: tpf*)
15015: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15016: version_type=linux # correct to gnu/linux during the next big refactor
15017: need_lib_prefix=no
15018: need_version=no
15019: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020: shlibpath_var=LD_LIBRARY_PATH
15021: shlibpath_overrides_runpath=no
15022: hardcode_into_libs=yes
15023: ;;
15024:
15025: uts4*)
15026: version_type=linux # correct to gnu/linux during the next big refactor
15027: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028: soname_spec='${libname}${release}${shared_ext}$major'
15029: shlibpath_var=LD_LIBRARY_PATH
15030: ;;
15031:
15032: *)
15033: dynamic_linker=no
15034: ;;
15035: esac
15036: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15037: echo "${ECHO_T}$dynamic_linker" >&6
15038: test "$dynamic_linker" = no && can_build_shared=no
15039:
15040: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041: if test "$GCC" = yes; then
15042: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15043: fi
15044:
15045: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15046: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15047: fi
15048: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15049: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15050: fi
15051:
15052:
15053:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070:
15071:
15072:
15073:
15074:
15075:
15076:
15077:
15078:
15079:
15080:
15081:
15082:
15083:
15084:
15085:
15086:
15087:
15088:
15089: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15090: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15091: hardcode_action_CXX=
15092: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15093: test -n "$runpath_var_CXX" ||
15094: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15095:
15096: # We can hardcode non-existent directories.
15097: if test "$hardcode_direct_CXX" != no &&
15098: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15099: # have to relink, otherwise we might link with an installed library
15100: # when we should be linking with a yet-to-be-installed one
15101: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15102: test "$hardcode_minus_L_CXX" != no; then
15103: # Linking always hardcodes the temporary library directory.
15104: hardcode_action_CXX=relink
15105: else
15106: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15107: hardcode_action_CXX=immediate
15108: fi
15109: else
15110: # We cannot hardcode anything, or else we can only hardcode existing
15111: # directories.
15112: hardcode_action_CXX=unsupported
15113: fi
15114: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15115: echo "${ECHO_T}$hardcode_action_CXX" >&6
15116:
15117: if test "$hardcode_action_CXX" = relink ||
15118: test "$inherit_rpath_CXX" = yes; then
15119: # Fast installation is not supported
15120: enable_fast_install=no
15121: elif test "$shlibpath_overrides_runpath" = yes ||
15122: test "$enable_shared" = no; then
15123: # Fast installation is not necessary
15124: enable_fast_install=needless
15125: fi
15126:
15127:
15128:
15129:
15130:
15131:
15132:
15133: fi # test -n "$compiler"
15134:
15135: CC=$lt_save_CC
15136: CFLAGS=$lt_save_CFLAGS
15137: LDCXX=$LD
15138: LD=$lt_save_LD
15139: GCC=$lt_save_GCC
15140: with_gnu_ld=$lt_save_with_gnu_ld
15141: lt_cv_path_LDCXX=$lt_cv_path_LD
15142: lt_cv_path_LD=$lt_save_path_LD
15143: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15144: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15145: fi # test "$_lt_caught_CXX_error" != yes
15146:
15147: ac_ext=c
15148: ac_cpp='$CPP $CPPFLAGS'
15149: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15150: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15151: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152:
15153:
15154:
15155:
15156:
15157:
15158:
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167: ac_config_commands="$ac_config_commands libtool"
15168:
15169:
15170:
15171:
15172: # Only expand once:
15173:
15174:
15175: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15176: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15177: if test "${libltdl_cv_shlibext+set}" = set; then
15178: echo $ECHO_N "(cached) $ECHO_C" >&6
15179: else
15180:
15181: module=yes
15182: eval libltdl_cv_shlibext=$shrext_cmds
15183: module=no
15184: eval libltdl_cv_shrext=$shrext_cmds
15185:
15186: fi
15187: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15188: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15189: if test -n "$libltdl_cv_shlibext"; then
15190:
15191: cat >>confdefs.h <<_ACEOF
15192: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15193: _ACEOF
15194:
15195: fi
15196: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15197:
15198: cat >>confdefs.h <<_ACEOF
15199: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15200: _ACEOF
15201:
15202: fi
15203:
15204: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15205: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15206: if test "${lt_cv_module_path_var+set}" = set; then
15207: echo $ECHO_N "(cached) $ECHO_C" >&6
15208: else
15209: lt_cv_module_path_var="$shlibpath_var"
15210: fi
15211: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15212: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15213: if test -n "$lt_cv_module_path_var"; then
15214:
15215: cat >>confdefs.h <<_ACEOF
15216: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15217: _ACEOF
15218:
15219: fi
15220:
15221: echo "$as_me:$LINENO: checking for the default library search path" >&5
15222: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15223: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15224: echo $ECHO_N "(cached) $ECHO_C" >&6
15225: else
15226: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15227: fi
15228: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15229: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15230: if test -n "$lt_cv_sys_dlsearch_path"; then
15231: sys_dlsearch_path=
15232: for dir in $lt_cv_sys_dlsearch_path; do
15233: if test -z "$sys_dlsearch_path"; then
15234: sys_dlsearch_path="$dir"
15235: else
15236: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15237: fi
15238: done
15239:
15240: cat >>confdefs.h <<_ACEOF
15241: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15242: _ACEOF
15243:
15244: fi
15245:
15246:
15247: LT_DLLOADERS=
15248:
15249:
15250: ac_ext=c
15251: ac_cpp='$CPP $CPPFLAGS'
15252: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255:
15256:
15257: LIBADD_DLOPEN=
15258: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15259: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15260: if test "${ac_cv_search_dlopen+set}" = set; then
15261: echo $ECHO_N "(cached) $ECHO_C" >&6
15262: else
15263: ac_func_search_save_LIBS=$LIBS
15264: ac_cv_search_dlopen=no
15265: cat >conftest.$ac_ext <<_ACEOF
15266: /* confdefs.h. */
15267: _ACEOF
15268: cat confdefs.h >>conftest.$ac_ext
15269: cat >>conftest.$ac_ext <<_ACEOF
15270: /* end confdefs.h. */
15271:
15272: /* Override any gcc2 internal prototype to avoid an error. */
15273: #ifdef __cplusplus
15274: extern "C"
15275: #endif
15276: /* We use char because int might match the return type of a gcc2
15277: builtin and then its argument prototype would still apply. */
15278: char dlopen ();
15279: int
15280: main ()
15281: {
15282: dlopen ();
15283: ;
15284: return 0;
15285: }
15286: _ACEOF
15287: rm -f conftest.$ac_objext conftest$ac_exeext
15288: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15289: (eval $ac_link) 2>conftest.er1
15290: ac_status=$?
15291: grep -v '^ *+' conftest.er1 >conftest.err
15292: rm -f conftest.er1
15293: cat conftest.err >&5
15294: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295: (exit $ac_status); } &&
15296: { ac_try='test -z "$ac_c_werror_flag"
15297: || test ! -s conftest.err'
15298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299: (eval $ac_try) 2>&5
15300: ac_status=$?
15301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302: (exit $ac_status); }; } &&
15303: { ac_try='test -s conftest$ac_exeext'
15304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305: (eval $ac_try) 2>&5
15306: ac_status=$?
15307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308: (exit $ac_status); }; }; then
15309: ac_cv_search_dlopen="none required"
15310: else
15311: echo "$as_me: failed program was:" >&5
15312: sed 's/^/| /' conftest.$ac_ext >&5
15313:
15314: fi
15315: rm -f conftest.err conftest.$ac_objext \
15316: conftest$ac_exeext conftest.$ac_ext
15317: if test "$ac_cv_search_dlopen" = no; then
15318: for ac_lib in dl; do
15319: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15320: cat >conftest.$ac_ext <<_ACEOF
15321: /* confdefs.h. */
15322: _ACEOF
15323: cat confdefs.h >>conftest.$ac_ext
15324: cat >>conftest.$ac_ext <<_ACEOF
15325: /* end confdefs.h. */
15326:
15327: /* Override any gcc2 internal prototype to avoid an error. */
15328: #ifdef __cplusplus
15329: extern "C"
15330: #endif
15331: /* We use char because int might match the return type of a gcc2
15332: builtin and then its argument prototype would still apply. */
15333: char dlopen ();
15334: int
15335: main ()
15336: {
15337: dlopen ();
15338: ;
15339: return 0;
15340: }
15341: _ACEOF
15342: rm -f conftest.$ac_objext conftest$ac_exeext
15343: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15344: (eval $ac_link) 2>conftest.er1
15345: ac_status=$?
15346: grep -v '^ *+' conftest.er1 >conftest.err
15347: rm -f conftest.er1
15348: cat conftest.err >&5
15349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350: (exit $ac_status); } &&
15351: { ac_try='test -z "$ac_c_werror_flag"
15352: || test ! -s conftest.err'
15353: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354: (eval $ac_try) 2>&5
15355: ac_status=$?
15356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357: (exit $ac_status); }; } &&
15358: { ac_try='test -s conftest$ac_exeext'
15359: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360: (eval $ac_try) 2>&5
15361: ac_status=$?
15362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363: (exit $ac_status); }; }; then
15364: ac_cv_search_dlopen="-l$ac_lib"
15365: break
15366: else
15367: echo "$as_me: failed program was:" >&5
15368: sed 's/^/| /' conftest.$ac_ext >&5
15369:
15370: fi
15371: rm -f conftest.err conftest.$ac_objext \
15372: conftest$ac_exeext conftest.$ac_ext
15373: done
15374: fi
15375: LIBS=$ac_func_search_save_LIBS
15376: fi
15377: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15378: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15379: if test "$ac_cv_search_dlopen" != no; then
15380: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15381:
15382: cat >>confdefs.h <<\_ACEOF
15383: #define HAVE_LIBDL 1
15384: _ACEOF
15385:
15386: if test "$ac_cv_search_dlopen" != "none required" ; then
15387: LIBADD_DLOPEN="-ldl"
15388: fi
15389: libltdl_cv_lib_dl_dlopen="yes"
15390: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15391: else
15392: cat >conftest.$ac_ext <<_ACEOF
15393: /* confdefs.h. */
15394: _ACEOF
15395: cat confdefs.h >>conftest.$ac_ext
15396: cat >>conftest.$ac_ext <<_ACEOF
15397: /* end confdefs.h. */
15398: #if HAVE_DLFCN_H
15399: # include <dlfcn.h>
15400: #endif
15401:
15402: int
15403: main ()
15404: {
15405: dlopen(0, 0);
15406: ;
15407: return 0;
15408: }
15409: _ACEOF
15410: rm -f conftest.$ac_objext conftest$ac_exeext
15411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15412: (eval $ac_link) 2>conftest.er1
15413: ac_status=$?
15414: grep -v '^ *+' conftest.er1 >conftest.err
15415: rm -f conftest.er1
15416: cat conftest.err >&5
15417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418: (exit $ac_status); } &&
15419: { ac_try='test -z "$ac_c_werror_flag"
15420: || test ! -s conftest.err'
15421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422: (eval $ac_try) 2>&5
15423: ac_status=$?
15424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425: (exit $ac_status); }; } &&
15426: { ac_try='test -s conftest$ac_exeext'
15427: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428: (eval $ac_try) 2>&5
15429: ac_status=$?
15430: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431: (exit $ac_status); }; }; then
15432:
15433: cat >>confdefs.h <<\_ACEOF
15434: #define HAVE_LIBDL 1
15435: _ACEOF
15436:
15437: libltdl_cv_func_dlopen="yes"
15438: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15439: else
15440: echo "$as_me: failed program was:" >&5
15441: sed 's/^/| /' conftest.$ac_ext >&5
15442:
15443: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15444: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15445: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15446: echo $ECHO_N "(cached) $ECHO_C" >&6
15447: else
15448: ac_check_lib_save_LIBS=$LIBS
15449: LIBS="-lsvld $LIBS"
15450: cat >conftest.$ac_ext <<_ACEOF
15451: /* confdefs.h. */
15452: _ACEOF
15453: cat confdefs.h >>conftest.$ac_ext
15454: cat >>conftest.$ac_ext <<_ACEOF
15455: /* end confdefs.h. */
15456:
15457: /* Override any gcc2 internal prototype to avoid an error. */
15458: #ifdef __cplusplus
15459: extern "C"
15460: #endif
15461: /* We use char because int might match the return type of a gcc2
15462: builtin and then its argument prototype would still apply. */
15463: char dlopen ();
15464: int
15465: main ()
15466: {
15467: dlopen ();
15468: ;
15469: return 0;
15470: }
15471: _ACEOF
15472: rm -f conftest.$ac_objext conftest$ac_exeext
15473: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15474: (eval $ac_link) 2>conftest.er1
15475: ac_status=$?
15476: grep -v '^ *+' conftest.er1 >conftest.err
15477: rm -f conftest.er1
15478: cat conftest.err >&5
15479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480: (exit $ac_status); } &&
15481: { ac_try='test -z "$ac_c_werror_flag"
15482: || test ! -s conftest.err'
15483: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484: (eval $ac_try) 2>&5
15485: ac_status=$?
15486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487: (exit $ac_status); }; } &&
15488: { ac_try='test -s conftest$ac_exeext'
15489: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490: (eval $ac_try) 2>&5
15491: ac_status=$?
15492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493: (exit $ac_status); }; }; then
15494: ac_cv_lib_svld_dlopen=yes
15495: else
15496: echo "$as_me: failed program was:" >&5
15497: sed 's/^/| /' conftest.$ac_ext >&5
15498:
15499: ac_cv_lib_svld_dlopen=no
15500: fi
15501: rm -f conftest.err conftest.$ac_objext \
15502: conftest$ac_exeext conftest.$ac_ext
15503: LIBS=$ac_check_lib_save_LIBS
15504: fi
15505: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15506: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15507: if test $ac_cv_lib_svld_dlopen = yes; then
15508:
15509: cat >>confdefs.h <<\_ACEOF
15510: #define HAVE_LIBDL 1
15511: _ACEOF
15512:
15513: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15514: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15515: fi
15516:
15517: fi
15518: rm -f conftest.err conftest.$ac_objext \
15519: conftest$ac_exeext conftest.$ac_ext
15520: fi
15521:
15522: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15523: then
15524: lt_save_LIBS="$LIBS"
15525: LIBS="$LIBS $LIBADD_DLOPEN"
15526:
15527: for ac_func in dlerror
15528: do
15529: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15530: echo "$as_me:$LINENO: checking for $ac_func" >&5
15531: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532: if eval "test \"\${$as_ac_var+set}\" = set"; then
15533: echo $ECHO_N "(cached) $ECHO_C" >&6
15534: else
15535: cat >conftest.$ac_ext <<_ACEOF
15536: /* confdefs.h. */
15537: _ACEOF
15538: cat confdefs.h >>conftest.$ac_ext
15539: cat >>conftest.$ac_ext <<_ACEOF
15540: /* end confdefs.h. */
15541: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15542: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543: #define $ac_func innocuous_$ac_func
15544:
15545: /* System header to define __stub macros and hopefully few prototypes,
15546: which can conflict with char $ac_func (); below.
15547: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548: <limits.h> exists even on freestanding compilers. */
15549:
15550: #ifdef __STDC__
15551: # include <limits.h>
15552: #else
15553: # include <assert.h>
15554: #endif
15555:
15556: #undef $ac_func
15557:
15558: /* Override any gcc2 internal prototype to avoid an error. */
15559: #ifdef __cplusplus
15560: extern "C"
15561: {
15562: #endif
15563: /* We use char because int might match the return type of a gcc2
15564: builtin and then its argument prototype would still apply. */
15565: char $ac_func ();
15566: /* The GNU C library defines this for functions which it implements
15567: to always fail with ENOSYS. Some functions are actually named
15568: something starting with __ and the normal name is an alias. */
15569: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15570: choke me
15571: #else
15572: char (*f) () = $ac_func;
15573: #endif
15574: #ifdef __cplusplus
15575: }
15576: #endif
15577:
15578: int
15579: main ()
15580: {
15581: return f != $ac_func;
15582: ;
15583: return 0;
15584: }
15585: _ACEOF
15586: rm -f conftest.$ac_objext conftest$ac_exeext
15587: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588: (eval $ac_link) 2>conftest.er1
15589: ac_status=$?
15590: grep -v '^ *+' conftest.er1 >conftest.err
15591: rm -f conftest.er1
15592: cat conftest.err >&5
15593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594: (exit $ac_status); } &&
15595: { ac_try='test -z "$ac_c_werror_flag"
15596: || test ! -s conftest.err'
15597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598: (eval $ac_try) 2>&5
15599: ac_status=$?
15600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601: (exit $ac_status); }; } &&
15602: { ac_try='test -s conftest$ac_exeext'
15603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604: (eval $ac_try) 2>&5
15605: ac_status=$?
15606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607: (exit $ac_status); }; }; then
15608: eval "$as_ac_var=yes"
15609: else
15610: echo "$as_me: failed program was:" >&5
15611: sed 's/^/| /' conftest.$ac_ext >&5
15612:
15613: eval "$as_ac_var=no"
15614: fi
15615: rm -f conftest.err conftest.$ac_objext \
15616: conftest$ac_exeext conftest.$ac_ext
15617: fi
15618: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15619: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15620: if test `eval echo '${'$as_ac_var'}'` = yes; then
15621: cat >>confdefs.h <<_ACEOF
15622: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15623: _ACEOF
15624:
15625: fi
15626: done
15627:
15628: LIBS="$lt_save_LIBS"
15629: fi
15630:
15631:
15632: LIBADD_SHL_LOAD=
15633: echo "$as_me:$LINENO: checking for shl_load" >&5
15634: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15635: if test "${ac_cv_func_shl_load+set}" = set; then
15636: echo $ECHO_N "(cached) $ECHO_C" >&6
15637: else
15638: cat >conftest.$ac_ext <<_ACEOF
15639: /* confdefs.h. */
15640: _ACEOF
15641: cat confdefs.h >>conftest.$ac_ext
15642: cat >>conftest.$ac_ext <<_ACEOF
15643: /* end confdefs.h. */
15644: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15645: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646: #define shl_load innocuous_shl_load
15647:
15648: /* System header to define __stub macros and hopefully few prototypes,
15649: which can conflict with char shl_load (); below.
15650: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651: <limits.h> exists even on freestanding compilers. */
15652:
15653: #ifdef __STDC__
15654: # include <limits.h>
15655: #else
15656: # include <assert.h>
15657: #endif
15658:
15659: #undef shl_load
15660:
15661: /* Override any gcc2 internal prototype to avoid an error. */
15662: #ifdef __cplusplus
15663: extern "C"
15664: {
15665: #endif
15666: /* We use char because int might match the return type of a gcc2
15667: builtin and then its argument prototype would still apply. */
15668: char shl_load ();
15669: /* The GNU C library defines this for functions which it implements
15670: to always fail with ENOSYS. Some functions are actually named
15671: something starting with __ and the normal name is an alias. */
15672: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15673: choke me
15674: #else
15675: char (*f) () = shl_load;
15676: #endif
15677: #ifdef __cplusplus
15678: }
15679: #endif
15680:
15681: int
15682: main ()
15683: {
15684: return f != shl_load;
15685: ;
15686: return 0;
15687: }
15688: _ACEOF
15689: rm -f conftest.$ac_objext conftest$ac_exeext
15690: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691: (eval $ac_link) 2>conftest.er1
15692: ac_status=$?
15693: grep -v '^ *+' conftest.er1 >conftest.err
15694: rm -f conftest.er1
15695: cat conftest.err >&5
15696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697: (exit $ac_status); } &&
15698: { ac_try='test -z "$ac_c_werror_flag"
15699: || test ! -s conftest.err'
15700: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701: (eval $ac_try) 2>&5
15702: ac_status=$?
15703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704: (exit $ac_status); }; } &&
15705: { ac_try='test -s conftest$ac_exeext'
15706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707: (eval $ac_try) 2>&5
15708: ac_status=$?
15709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710: (exit $ac_status); }; }; then
15711: ac_cv_func_shl_load=yes
15712: else
15713: echo "$as_me: failed program was:" >&5
15714: sed 's/^/| /' conftest.$ac_ext >&5
15715:
15716: ac_cv_func_shl_load=no
15717: fi
15718: rm -f conftest.err conftest.$ac_objext \
15719: conftest$ac_exeext conftest.$ac_ext
15720: fi
15721: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15722: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15723: if test $ac_cv_func_shl_load = yes; then
15724:
15725: cat >>confdefs.h <<\_ACEOF
15726: #define HAVE_SHL_LOAD 1
15727: _ACEOF
15728:
15729: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15730: else
15731: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15732: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15733: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15734: echo $ECHO_N "(cached) $ECHO_C" >&6
15735: else
15736: ac_check_lib_save_LIBS=$LIBS
15737: LIBS="-ldld $LIBS"
15738: cat >conftest.$ac_ext <<_ACEOF
15739: /* confdefs.h. */
15740: _ACEOF
15741: cat confdefs.h >>conftest.$ac_ext
15742: cat >>conftest.$ac_ext <<_ACEOF
15743: /* end confdefs.h. */
15744:
15745: /* Override any gcc2 internal prototype to avoid an error. */
15746: #ifdef __cplusplus
15747: extern "C"
15748: #endif
15749: /* We use char because int might match the return type of a gcc2
15750: builtin and then its argument prototype would still apply. */
15751: char shl_load ();
15752: int
15753: main ()
15754: {
15755: shl_load ();
15756: ;
15757: return 0;
15758: }
15759: _ACEOF
15760: rm -f conftest.$ac_objext conftest$ac_exeext
15761: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15762: (eval $ac_link) 2>conftest.er1
15763: ac_status=$?
15764: grep -v '^ *+' conftest.er1 >conftest.err
15765: rm -f conftest.er1
15766: cat conftest.err >&5
15767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768: (exit $ac_status); } &&
15769: { ac_try='test -z "$ac_c_werror_flag"
15770: || test ! -s conftest.err'
15771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772: (eval $ac_try) 2>&5
15773: ac_status=$?
15774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775: (exit $ac_status); }; } &&
15776: { ac_try='test -s conftest$ac_exeext'
15777: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778: (eval $ac_try) 2>&5
15779: ac_status=$?
15780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781: (exit $ac_status); }; }; then
15782: ac_cv_lib_dld_shl_load=yes
15783: else
15784: echo "$as_me: failed program was:" >&5
15785: sed 's/^/| /' conftest.$ac_ext >&5
15786:
15787: ac_cv_lib_dld_shl_load=no
15788: fi
15789: rm -f conftest.err conftest.$ac_objext \
15790: conftest$ac_exeext conftest.$ac_ext
15791: LIBS=$ac_check_lib_save_LIBS
15792: fi
15793: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15794: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15795: if test $ac_cv_lib_dld_shl_load = yes; then
15796:
15797: cat >>confdefs.h <<\_ACEOF
15798: #define HAVE_SHL_LOAD 1
15799: _ACEOF
15800:
15801: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15802: LIBADD_SHL_LOAD="-ldld"
15803: fi
15804:
15805: fi
15806:
15807:
15808:
15809: case $host_os in
15810: darwin[1567].*)
15811: # We only want this for pre-Mac OS X 10.4.
15812: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
15813: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
15814: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
15815: echo $ECHO_N "(cached) $ECHO_C" >&6
15816: else
15817: cat >conftest.$ac_ext <<_ACEOF
15818: /* confdefs.h. */
15819: _ACEOF
15820: cat confdefs.h >>conftest.$ac_ext
15821: cat >>conftest.$ac_ext <<_ACEOF
15822: /* end confdefs.h. */
15823: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
15824: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15825: #define _dyld_func_lookup innocuous__dyld_func_lookup
15826:
15827: /* System header to define __stub macros and hopefully few prototypes,
15828: which can conflict with char _dyld_func_lookup (); below.
15829: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15830: <limits.h> exists even on freestanding compilers. */
15831:
15832: #ifdef __STDC__
15833: # include <limits.h>
15834: #else
15835: # include <assert.h>
15836: #endif
15837:
15838: #undef _dyld_func_lookup
15839:
15840: /* Override any gcc2 internal prototype to avoid an error. */
15841: #ifdef __cplusplus
15842: extern "C"
15843: {
15844: #endif
15845: /* We use char because int might match the return type of a gcc2
15846: builtin and then its argument prototype would still apply. */
15847: char _dyld_func_lookup ();
15848: /* The GNU C library defines this for functions which it implements
15849: to always fail with ENOSYS. Some functions are actually named
15850: something starting with __ and the normal name is an alias. */
15851: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
15852: choke me
15853: #else
15854: char (*f) () = _dyld_func_lookup;
15855: #endif
15856: #ifdef __cplusplus
15857: }
15858: #endif
15859:
15860: int
15861: main ()
15862: {
15863: return f != _dyld_func_lookup;
15864: ;
15865: return 0;
15866: }
15867: _ACEOF
15868: rm -f conftest.$ac_objext conftest$ac_exeext
15869: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870: (eval $ac_link) 2>conftest.er1
15871: ac_status=$?
15872: grep -v '^ *+' conftest.er1 >conftest.err
15873: rm -f conftest.er1
15874: cat conftest.err >&5
15875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876: (exit $ac_status); } &&
15877: { ac_try='test -z "$ac_c_werror_flag"
15878: || test ! -s conftest.err'
15879: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880: (eval $ac_try) 2>&5
15881: ac_status=$?
15882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883: (exit $ac_status); }; } &&
15884: { ac_try='test -s conftest$ac_exeext'
15885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886: (eval $ac_try) 2>&5
15887: ac_status=$?
15888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889: (exit $ac_status); }; }; then
15890: ac_cv_func__dyld_func_lookup=yes
15891: else
15892: echo "$as_me: failed program was:" >&5
15893: sed 's/^/| /' conftest.$ac_ext >&5
15894:
15895: ac_cv_func__dyld_func_lookup=no
15896: fi
15897: rm -f conftest.err conftest.$ac_objext \
15898: conftest$ac_exeext conftest.$ac_ext
15899: fi
15900: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
15901: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
15902: if test $ac_cv_func__dyld_func_lookup = yes; then
15903:
15904: cat >>confdefs.h <<\_ACEOF
15905: #define HAVE_DYLD 1
15906: _ACEOF
15907:
15908: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15909: fi
15910:
15911: ;;
15912: beos*)
15913: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15914: ;;
15915: cygwin* | mingw* | os2* | pw32*)
15916: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
15917: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
15918: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
15919: echo $ECHO_N "(cached) $ECHO_C" >&6
15920: else
15921: cat >conftest.$ac_ext <<_ACEOF
15922: /* confdefs.h. */
15923: _ACEOF
15924: cat confdefs.h >>conftest.$ac_ext
15925: cat >>conftest.$ac_ext <<_ACEOF
15926: /* end confdefs.h. */
15927: #include <sys/cygwin.h>
15928:
15929: int
15930: main ()
15931: {
15932: #ifndef cygwin_conv_path
15933: char *p = (char *) cygwin_conv_path;
15934: #endif
15935:
15936: ;
15937: return 0;
15938: }
15939: _ACEOF
15940: rm -f conftest.$ac_objext
15941: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942: (eval $ac_compile) 2>conftest.er1
15943: ac_status=$?
15944: grep -v '^ *+' conftest.er1 >conftest.err
15945: rm -f conftest.er1
15946: cat conftest.err >&5
15947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948: (exit $ac_status); } &&
15949: { ac_try='test -z "$ac_c_werror_flag"
15950: || test ! -s conftest.err'
15951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952: (eval $ac_try) 2>&5
15953: ac_status=$?
15954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955: (exit $ac_status); }; } &&
15956: { ac_try='test -s conftest.$ac_objext'
15957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958: (eval $ac_try) 2>&5
15959: ac_status=$?
15960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961: (exit $ac_status); }; }; then
15962: ac_cv_have_decl_cygwin_conv_path=yes
15963: else
15964: echo "$as_me: failed program was:" >&5
15965: sed 's/^/| /' conftest.$ac_ext >&5
15966:
15967: ac_cv_have_decl_cygwin_conv_path=no
15968: fi
15969: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15970: fi
15971: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
15972: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
15973: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
15974:
15975: cat >>confdefs.h <<_ACEOF
15976: #define HAVE_DECL_CYGWIN_CONV_PATH 1
15977: _ACEOF
15978:
15979:
15980: else
15981: cat >>confdefs.h <<_ACEOF
15982: #define HAVE_DECL_CYGWIN_CONV_PATH 0
15983: _ACEOF
15984:
15985:
15986: fi
15987:
15988:
15989: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15990: ;;
15991: esac
15992:
15993: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15994: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15995: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15996: echo $ECHO_N "(cached) $ECHO_C" >&6
15997: else
15998: ac_check_lib_save_LIBS=$LIBS
15999: LIBS="-ldld $LIBS"
16000: cat >conftest.$ac_ext <<_ACEOF
16001: /* confdefs.h. */
16002: _ACEOF
16003: cat confdefs.h >>conftest.$ac_ext
16004: cat >>conftest.$ac_ext <<_ACEOF
16005: /* end confdefs.h. */
16006:
16007: /* Override any gcc2 internal prototype to avoid an error. */
16008: #ifdef __cplusplus
16009: extern "C"
16010: #endif
16011: /* We use char because int might match the return type of a gcc2
16012: builtin and then its argument prototype would still apply. */
16013: char dld_link ();
16014: int
16015: main ()
16016: {
16017: dld_link ();
16018: ;
16019: return 0;
16020: }
16021: _ACEOF
16022: rm -f conftest.$ac_objext conftest$ac_exeext
16023: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024: (eval $ac_link) 2>conftest.er1
16025: ac_status=$?
16026: grep -v '^ *+' conftest.er1 >conftest.err
16027: rm -f conftest.er1
16028: cat conftest.err >&5
16029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030: (exit $ac_status); } &&
16031: { ac_try='test -z "$ac_c_werror_flag"
16032: || test ! -s conftest.err'
16033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034: (eval $ac_try) 2>&5
16035: ac_status=$?
16036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037: (exit $ac_status); }; } &&
16038: { ac_try='test -s conftest$ac_exeext'
16039: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040: (eval $ac_try) 2>&5
16041: ac_status=$?
16042: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043: (exit $ac_status); }; }; then
16044: ac_cv_lib_dld_dld_link=yes
16045: else
16046: echo "$as_me: failed program was:" >&5
16047: sed 's/^/| /' conftest.$ac_ext >&5
16048:
16049: ac_cv_lib_dld_dld_link=no
16050: fi
16051: rm -f conftest.err conftest.$ac_objext \
16052: conftest$ac_exeext conftest.$ac_ext
16053: LIBS=$ac_check_lib_save_LIBS
16054: fi
16055: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16056: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16057: if test $ac_cv_lib_dld_dld_link = yes; then
16058:
16059: cat >>confdefs.h <<\_ACEOF
16060: #define HAVE_DLD 1
16061: _ACEOF
16062:
16063: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16064: fi
16065:
16066:
16067:
16068:
16069: LT_DLPREOPEN=
16070: if test -n "$LT_DLLOADERS"
16071: then
16072: for lt_loader in $LT_DLLOADERS; do
16073: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16074: done
16075:
16076: cat >>confdefs.h <<\_ACEOF
16077: #define HAVE_LIBDLLOADER 1
16078: _ACEOF
16079:
16080: fi
16081:
16082:
16083: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16084:
16085:
16086: ac_ext=c
16087: ac_cpp='$CPP $CPPFLAGS'
16088: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16089: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16090: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16091:
16092:
16093: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16094: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16095: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16096: echo $ECHO_N "(cached) $ECHO_C" >&6
16097: else
16098: lt_cv_sys_symbol_underscore=no
16099: cat > conftest.$ac_ext <<_LT_EOF
16100: void nm_test_func(){}
16101: int main(){nm_test_func;return 0;}
16102: _LT_EOF
16103: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104: (eval $ac_compile) 2>&5
16105: ac_status=$?
16106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107: (exit $ac_status); }; then
16108: # Now try to grab the symbols.
16109: ac_nlist=conftest.nm
16110: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16111: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16112: ac_status=$?
16113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114: (exit $ac_status); } && test -s "$ac_nlist"; then
16115: # See whether the symbols have a leading underscore.
16116: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16117: lt_cv_sys_symbol_underscore=yes
16118: else
16119: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16120: :
16121: else
16122: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16123: fi
16124: fi
16125: else
16126: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16127: fi
16128: else
16129: echo "configure: failed program was:" >&5
16130: cat conftest.c >&5
16131: fi
16132: rm -rf conftest*
16133:
16134: fi
16135: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16136: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16137: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16138:
16139:
16140: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16141: if test x"$libltdl_cv_func_dlopen" = xyes ||
16142: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16143: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16144: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16145: if test "${libltdl_cv_need_uscore+set}" = set; then
16146: echo $ECHO_N "(cached) $ECHO_C" >&6
16147: else
16148: libltdl_cv_need_uscore=unknown
16149: save_LIBS="$LIBS"
16150: LIBS="$LIBS $LIBADD_DLOPEN"
16151: if test "$cross_compiling" = yes; then :
16152: libltdl_cv_need_uscore=cross
16153: else
16154: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16155: lt_status=$lt_dlunknown
16156: cat > conftest.$ac_ext <<_LT_EOF
16157: #line $LINENO "configure"
16158: #include "confdefs.h"
16159:
16160: #if HAVE_DLFCN_H
16161: #include <dlfcn.h>
16162: #endif
16163:
16164: #include <stdio.h>
16165:
16166: #ifdef RTLD_GLOBAL
16167: # define LT_DLGLOBAL RTLD_GLOBAL
16168: #else
16169: # ifdef DL_GLOBAL
16170: # define LT_DLGLOBAL DL_GLOBAL
16171: # else
16172: # define LT_DLGLOBAL 0
16173: # endif
16174: #endif
16175:
16176: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16177: find out it does not work in some platform. */
16178: #ifndef LT_DLLAZY_OR_NOW
16179: # ifdef RTLD_LAZY
16180: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16181: # else
16182: # ifdef DL_LAZY
16183: # define LT_DLLAZY_OR_NOW DL_LAZY
16184: # else
16185: # ifdef RTLD_NOW
16186: # define LT_DLLAZY_OR_NOW RTLD_NOW
16187: # else
16188: # ifdef DL_NOW
16189: # define LT_DLLAZY_OR_NOW DL_NOW
16190: # else
16191: # define LT_DLLAZY_OR_NOW 0
16192: # endif
16193: # endif
16194: # endif
16195: # endif
16196: #endif
16197:
16198: /* When -fvisbility=hidden is used, assume the code has been annotated
16199: correspondingly for the symbols needed. */
16200: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16201: int fnord () __attribute__((visibility("default")));
16202: #endif
16203:
16204: int fnord () { return 42; }
16205: int main ()
16206: {
16207: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16208: int status = $lt_dlunknown;
16209:
16210: if (self)
16211: {
16212: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16213: else
16214: {
16215: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16216: else puts (dlerror ());
16217: }
16218: /* dlclose (self); */
16219: }
16220: else
16221: puts (dlerror ());
16222:
16223: return status;
16224: }
16225: _LT_EOF
16226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16227: (eval $ac_link) 2>&5
16228: ac_status=$?
16229: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16231: (./conftest; exit; ) >&5 2>/dev/null
16232: lt_status=$?
16233: case x$lt_status in
16234: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16235: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16236: x$lt_dlunknown|x*) ;;
16237: esac
16238: else :
16239: # compilation failed
16240:
16241: fi
16242: fi
16243: rm -fr conftest*
16244:
16245: LIBS="$save_LIBS"
16246:
16247: fi
16248: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16249: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16250: fi
16251: fi
16252:
16253: if test x"$libltdl_cv_need_uscore" = xyes; then
16254:
16255: cat >>confdefs.h <<\_ACEOF
16256: #define NEED_USCORE 1
16257: _ACEOF
16258:
16259: fi
16260:
16261: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16262: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16263: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16264: echo $ECHO_N "(cached) $ECHO_C" >&6
16265: else
16266: # PORTME does your system automatically load deplibs for dlopen?
16267: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16268: # For now, we just catch OSes we know something about -- in the
16269: # future, we'll try test this programmatically.
16270: lt_cv_sys_dlopen_deplibs=unknown
16271: case $host_os in
16272: aix3*|aix4.1.*|aix4.2.*)
16273: # Unknown whether this is true for these versions of AIX, but
16274: # we want this `case' here to explicitly catch those versions.
16275: lt_cv_sys_dlopen_deplibs=unknown
16276: ;;
16277: aix[4-9]*)
16278: lt_cv_sys_dlopen_deplibs=yes
16279: ;;
16280: amigaos*)
16281: case $host_cpu in
16282: powerpc)
16283: lt_cv_sys_dlopen_deplibs=no
16284: ;;
16285: esac
16286: ;;
16287: darwin*)
16288: # Assuming the user has installed a libdl from somewhere, this is true
16289: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16290: lt_cv_sys_dlopen_deplibs=yes
16291: ;;
16292: freebsd* | dragonfly*)
16293: lt_cv_sys_dlopen_deplibs=yes
16294: ;;
16295: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16296: # GNU and its variants, using gnu ld.so (Glibc)
16297: lt_cv_sys_dlopen_deplibs=yes
16298: ;;
16299: hpux10*|hpux11*)
16300: lt_cv_sys_dlopen_deplibs=yes
16301: ;;
16302: interix*)
16303: lt_cv_sys_dlopen_deplibs=yes
16304: ;;
16305: irix[12345]*|irix6.[01]*)
16306: # Catch all versions of IRIX before 6.2, and indicate that we don't
16307: # know how it worked for any of those versions.
16308: lt_cv_sys_dlopen_deplibs=unknown
16309: ;;
16310: irix*)
16311: # The case above catches anything before 6.2, and it's known that
16312: # at 6.2 and later dlopen does load deplibs.
16313: lt_cv_sys_dlopen_deplibs=yes
16314: ;;
16315: netbsd*)
16316: lt_cv_sys_dlopen_deplibs=yes
16317: ;;
16318: openbsd*)
16319: lt_cv_sys_dlopen_deplibs=yes
16320: ;;
16321: osf[1234]*)
16322: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16323: # it did *not* use an RPATH in a shared library to find objects the
16324: # library depends on, so we explicitly say `no'.
16325: lt_cv_sys_dlopen_deplibs=no
16326: ;;
16327: osf5.0|osf5.0a|osf5.1)
16328: # dlopen *does* load deplibs and with the right loader patch applied
16329: # it even uses RPATH in a shared library to search for shared objects
16330: # that the library depends on, but there's no easy way to know if that
16331: # patch is installed. Since this is the case, all we can really
16332: # say is unknown -- it depends on the patch being installed. If
16333: # it is, this changes to `yes'. Without it, it would be `no'.
16334: lt_cv_sys_dlopen_deplibs=unknown
16335: ;;
16336: osf*)
16337: # the two cases above should catch all versions of osf <= 5.1. Read
16338: # the comments above for what we know about them.
16339: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16340: # is used to find them so we can finally say `yes'.
16341: lt_cv_sys_dlopen_deplibs=yes
16342: ;;
16343: qnx*)
16344: lt_cv_sys_dlopen_deplibs=yes
16345: ;;
16346: solaris*)
16347: lt_cv_sys_dlopen_deplibs=yes
16348: ;;
16349: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16350: libltdl_cv_sys_dlopen_deplibs=yes
16351: ;;
16352: esac
16353:
16354: fi
16355: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16356: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16357: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16358:
16359: cat >>confdefs.h <<\_ACEOF
16360: #define LTDL_DLOPEN_DEPLIBS 1
16361: _ACEOF
16362:
16363: fi
16364:
16365: :
16366:
16367:
16368: for ac_header in argz.h
16369: do
16370: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16371: echo "$as_me:$LINENO: checking for $ac_header" >&5
16372: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16373: if eval "test \"\${$as_ac_Header+set}\" = set"; then
16374: echo $ECHO_N "(cached) $ECHO_C" >&6
16375: else
16376: cat >conftest.$ac_ext <<_ACEOF
16377: /* confdefs.h. */
16378: _ACEOF
16379: cat confdefs.h >>conftest.$ac_ext
16380: cat >>conftest.$ac_ext <<_ACEOF
16381: /* end confdefs.h. */
16382: $ac_includes_default
16383:
16384: #include <$ac_header>
16385: _ACEOF
16386: rm -f conftest.$ac_objext
16387: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388: (eval $ac_compile) 2>conftest.er1
16389: ac_status=$?
16390: grep -v '^ *+' conftest.er1 >conftest.err
16391: rm -f conftest.er1
16392: cat conftest.err >&5
16393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394: (exit $ac_status); } &&
16395: { ac_try='test -z "$ac_c_werror_flag"
16396: || test ! -s conftest.err'
16397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398: (eval $ac_try) 2>&5
16399: ac_status=$?
16400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401: (exit $ac_status); }; } &&
16402: { ac_try='test -s conftest.$ac_objext'
16403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404: (eval $ac_try) 2>&5
16405: ac_status=$?
16406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407: (exit $ac_status); }; }; then
16408: eval "$as_ac_Header=yes"
16409: else
16410: echo "$as_me: failed program was:" >&5
16411: sed 's/^/| /' conftest.$ac_ext >&5
16412:
16413: eval "$as_ac_Header=no"
16414: fi
16415: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16416: fi
16417: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16418: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16419: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16420: cat >>confdefs.h <<_ACEOF
16421: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16422: _ACEOF
16423:
16424: fi
16425:
16426: done
16427:
16428:
16429: echo "$as_me:$LINENO: checking for error_t" >&5
16430: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16431: if test "${ac_cv_type_error_t+set}" = set; then
16432: echo $ECHO_N "(cached) $ECHO_C" >&6
16433: else
16434: cat >conftest.$ac_ext <<_ACEOF
16435: /* confdefs.h. */
16436: _ACEOF
16437: cat confdefs.h >>conftest.$ac_ext
16438: cat >>conftest.$ac_ext <<_ACEOF
16439: /* end confdefs.h. */
16440: #if defined(HAVE_ARGZ_H)
16441: # include <argz.h>
16442: #endif
16443:
16444: int
16445: main ()
16446: {
16447: if ((error_t *) 0)
16448: return 0;
16449: if (sizeof (error_t))
16450: return 0;
16451: ;
16452: return 0;
16453: }
16454: _ACEOF
16455: rm -f conftest.$ac_objext
16456: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457: (eval $ac_compile) 2>conftest.er1
16458: ac_status=$?
16459: grep -v '^ *+' conftest.er1 >conftest.err
16460: rm -f conftest.er1
16461: cat conftest.err >&5
16462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463: (exit $ac_status); } &&
16464: { ac_try='test -z "$ac_c_werror_flag"
16465: || test ! -s conftest.err'
16466: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467: (eval $ac_try) 2>&5
16468: ac_status=$?
16469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470: (exit $ac_status); }; } &&
16471: { ac_try='test -s conftest.$ac_objext'
16472: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473: (eval $ac_try) 2>&5
16474: ac_status=$?
16475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476: (exit $ac_status); }; }; then
16477: ac_cv_type_error_t=yes
16478: else
16479: echo "$as_me: failed program was:" >&5
16480: sed 's/^/| /' conftest.$ac_ext >&5
16481:
16482: ac_cv_type_error_t=no
16483: fi
16484: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485: fi
16486: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
16487: echo "${ECHO_T}$ac_cv_type_error_t" >&6
16488: if test $ac_cv_type_error_t = yes; then
16489:
16490: cat >>confdefs.h <<_ACEOF
16491: #define HAVE_ERROR_T 1
16492: _ACEOF
16493:
16494:
16495: else
16496:
16497: cat >>confdefs.h <<\_ACEOF
16498: #define error_t int
16499: _ACEOF
16500:
16501:
16502: cat >>confdefs.h <<\_ACEOF
16503: #define __error_t_defined 1
16504: _ACEOF
16505:
16506: fi
16507:
16508:
16509: ARGZ_H=
16510:
16511:
16512:
16513:
16514:
16515:
16516:
16517: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16518: argz_next argz_stringify
16519: do
16520: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16521: echo "$as_me:$LINENO: checking for $ac_func" >&5
16522: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16523: if eval "test \"\${$as_ac_var+set}\" = set"; then
16524: echo $ECHO_N "(cached) $ECHO_C" >&6
16525: else
16526: cat >conftest.$ac_ext <<_ACEOF
16527: /* confdefs.h. */
16528: _ACEOF
16529: cat confdefs.h >>conftest.$ac_ext
16530: cat >>conftest.$ac_ext <<_ACEOF
16531: /* end confdefs.h. */
16532: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16533: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16534: #define $ac_func innocuous_$ac_func
16535:
16536: /* System header to define __stub macros and hopefully few prototypes,
16537: which can conflict with char $ac_func (); below.
16538: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16539: <limits.h> exists even on freestanding compilers. */
16540:
16541: #ifdef __STDC__
16542: # include <limits.h>
16543: #else
16544: # include <assert.h>
16545: #endif
16546:
16547: #undef $ac_func
16548:
16549: /* Override any gcc2 internal prototype to avoid an error. */
16550: #ifdef __cplusplus
16551: extern "C"
16552: {
16553: #endif
16554: /* We use char because int might match the return type of a gcc2
16555: builtin and then its argument prototype would still apply. */
16556: char $ac_func ();
16557: /* The GNU C library defines this for functions which it implements
16558: to always fail with ENOSYS. Some functions are actually named
16559: something starting with __ and the normal name is an alias. */
16560: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16561: choke me
16562: #else
16563: char (*f) () = $ac_func;
16564: #endif
16565: #ifdef __cplusplus
16566: }
16567: #endif
16568:
16569: int
16570: main ()
16571: {
16572: return f != $ac_func;
16573: ;
16574: return 0;
16575: }
16576: _ACEOF
16577: rm -f conftest.$ac_objext conftest$ac_exeext
16578: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579: (eval $ac_link) 2>conftest.er1
16580: ac_status=$?
16581: grep -v '^ *+' conftest.er1 >conftest.err
16582: rm -f conftest.er1
16583: cat conftest.err >&5
16584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585: (exit $ac_status); } &&
16586: { ac_try='test -z "$ac_c_werror_flag"
16587: || test ! -s conftest.err'
16588: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589: (eval $ac_try) 2>&5
16590: ac_status=$?
16591: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592: (exit $ac_status); }; } &&
16593: { ac_try='test -s conftest$ac_exeext'
16594: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595: (eval $ac_try) 2>&5
16596: ac_status=$?
16597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598: (exit $ac_status); }; }; then
16599: eval "$as_ac_var=yes"
16600: else
16601: echo "$as_me: failed program was:" >&5
16602: sed 's/^/| /' conftest.$ac_ext >&5
16603:
16604: eval "$as_ac_var=no"
16605: fi
16606: rm -f conftest.err conftest.$ac_objext \
16607: conftest$ac_exeext conftest.$ac_ext
16608: fi
16609: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16610: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16611: if test `eval echo '${'$as_ac_var'}'` = yes; then
16612: cat >>confdefs.h <<_ACEOF
16613: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16614: _ACEOF
16615:
16616: else
16617: ARGZ_H=argz.h;
16618:
16619: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16620:
16621: fi
16622: done
16623:
16624:
16625: if test -z "$ARGZ_H"; then
16626: echo "$as_me:$LINENO: checking if argz actually works" >&5
16627: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
16628: if test "${lt_cv_sys_argz_works+set}" = set; then
16629: echo $ECHO_N "(cached) $ECHO_C" >&6
16630: else
16631: case $host_os in #(
16632: *cygwin*)
16633: lt_cv_sys_argz_works=no
16634: if test "$cross_compiling" != no; then
16635: lt_cv_sys_argz_works="guessing no"
16636: else
16637: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16638: save_IFS=$IFS
16639: IFS=-.
16640: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16641: IFS=$save_IFS
16642: lt_os_major=${2-0}
16643: lt_os_minor=${3-0}
16644: lt_os_micro=${4-0}
16645: if test "$lt_os_major" -gt 1 \
16646: || { test "$lt_os_major" -eq 1 \
16647: && { test "$lt_os_minor" -gt 5 \
16648: || { test "$lt_os_minor" -eq 5 \
16649: && test "$lt_os_micro" -gt 24; }; }; }; then
16650: lt_cv_sys_argz_works=yes
16651: fi
16652: fi
16653: ;; #(
16654: *) lt_cv_sys_argz_works=yes ;;
16655: esac
16656: fi
16657: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
16658: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
16659: if test "$lt_cv_sys_argz_works" = yes; then
16660:
16661: cat >>confdefs.h <<\_ACEOF
16662: #define HAVE_WORKING_ARGZ 1
16663: _ACEOF
16664:
16665: else
16666: ARGZ_H=argz.h
16667:
16668:
16669: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16670:
16671: fi
16672:
16673: fi
16674:
16675:
16676:
16677:
16678: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
16679: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
16680: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
16681: echo $ECHO_N "(cached) $ECHO_C" >&6
16682: else
16683: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16684: libltdl_cv_preloaded_symbols=yes
16685: else
16686: libltdl_cv_preloaded_symbols=no
16687: fi
16688:
16689: fi
16690: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
16691: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
16692: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16693:
16694: cat >>confdefs.h <<\_ACEOF
16695: #define HAVE_PRELOADED_SYMBOLS 1
16696: _ACEOF
16697:
16698: fi
16699:
16700: # Set options
16701:
16702:
16703:
16704:
16705:
16706:
16707:
16708:
16709:
16710:
16711:
16712:
16713: # Check whether --with-included_ltdl or --without-included_ltdl was given.
16714: if test "${with_included_ltdl+set}" = set; then
16715: withval="$with_included_ltdl"
16716:
16717: fi;
16718:
16719: if test "x$with_included_ltdl" != xyes; then
16720: # We are not being forced to use the included libltdl sources, so
16721: # decide whether there is a useful installed version we can use.
16722: echo "$as_me:$LINENO: checking for ltdl.h" >&5
16723: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
16724: if test "${ac_cv_header_ltdl_h+set}" = set; then
16725: echo $ECHO_N "(cached) $ECHO_C" >&6
16726: else
16727: cat >conftest.$ac_ext <<_ACEOF
16728: /* confdefs.h. */
16729: _ACEOF
16730: cat confdefs.h >>conftest.$ac_ext
16731: cat >>conftest.$ac_ext <<_ACEOF
16732: /* end confdefs.h. */
16733: $ac_includes_default
16734:
16735:
16736: #include <ltdl.h>
16737: _ACEOF
16738: rm -f conftest.$ac_objext
16739: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16740: (eval $ac_compile) 2>conftest.er1
16741: ac_status=$?
16742: grep -v '^ *+' conftest.er1 >conftest.err
16743: rm -f conftest.er1
16744: cat conftest.err >&5
16745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746: (exit $ac_status); } &&
16747: { ac_try='test -z "$ac_c_werror_flag"
16748: || test ! -s conftest.err'
16749: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750: (eval $ac_try) 2>&5
16751: ac_status=$?
16752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753: (exit $ac_status); }; } &&
16754: { ac_try='test -s conftest.$ac_objext'
16755: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756: (eval $ac_try) 2>&5
16757: ac_status=$?
16758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759: (exit $ac_status); }; }; then
16760: ac_cv_header_ltdl_h=yes
16761: else
16762: echo "$as_me: failed program was:" >&5
16763: sed 's/^/| /' conftest.$ac_ext >&5
16764:
16765: ac_cv_header_ltdl_h=no
16766: fi
16767: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16768: fi
16769: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
16770: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
16771: if test $ac_cv_header_ltdl_h = yes; then
16772: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
16773: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
16774: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
16775: echo $ECHO_N "(cached) $ECHO_C" >&6
16776: else
16777: cat >conftest.$ac_ext <<_ACEOF
16778: /* confdefs.h. */
16779: _ACEOF
16780: cat confdefs.h >>conftest.$ac_ext
16781: cat >>conftest.$ac_ext <<_ACEOF
16782: /* end confdefs.h. */
16783: $ac_includes_default
16784: #include <ltdl.h>
16785:
16786: int
16787: main ()
16788: {
16789: #ifndef lt_dlinterface_register
16790: char *p = (char *) lt_dlinterface_register;
16791: #endif
16792:
16793: ;
16794: return 0;
16795: }
16796: _ACEOF
16797: rm -f conftest.$ac_objext
16798: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16799: (eval $ac_compile) 2>conftest.er1
16800: ac_status=$?
16801: grep -v '^ *+' conftest.er1 >conftest.err
16802: rm -f conftest.er1
16803: cat conftest.err >&5
16804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805: (exit $ac_status); } &&
16806: { ac_try='test -z "$ac_c_werror_flag"
16807: || test ! -s conftest.err'
16808: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809: (eval $ac_try) 2>&5
16810: ac_status=$?
16811: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812: (exit $ac_status); }; } &&
16813: { ac_try='test -s conftest.$ac_objext'
16814: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815: (eval $ac_try) 2>&5
16816: ac_status=$?
16817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818: (exit $ac_status); }; }; then
16819: ac_cv_have_decl_lt_dlinterface_register=yes
16820: else
16821: echo "$as_me: failed program was:" >&5
16822: sed 's/^/| /' conftest.$ac_ext >&5
16823:
16824: ac_cv_have_decl_lt_dlinterface_register=no
16825: fi
16826: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16827: fi
16828: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
16829: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
16830: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
16831: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
16832: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
16833: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
16834: echo $ECHO_N "(cached) $ECHO_C" >&6
16835: else
16836: ac_check_lib_save_LIBS=$LIBS
16837: LIBS="-lltdl $LIBS"
16838: cat >conftest.$ac_ext <<_ACEOF
16839: /* confdefs.h. */
16840: _ACEOF
16841: cat confdefs.h >>conftest.$ac_ext
16842: cat >>conftest.$ac_ext <<_ACEOF
16843: /* end confdefs.h. */
16844:
16845: /* Override any gcc2 internal prototype to avoid an error. */
16846: #ifdef __cplusplus
16847: extern "C"
16848: #endif
16849: /* We use char because int might match the return type of a gcc2
16850: builtin and then its argument prototype would still apply. */
16851: char lt_dladvise_preload ();
16852: int
16853: main ()
16854: {
16855: lt_dladvise_preload ();
16856: ;
16857: return 0;
16858: }
16859: _ACEOF
16860: rm -f conftest.$ac_objext conftest$ac_exeext
16861: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862: (eval $ac_link) 2>conftest.er1
16863: ac_status=$?
16864: grep -v '^ *+' conftest.er1 >conftest.err
16865: rm -f conftest.er1
16866: cat conftest.err >&5
16867: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868: (exit $ac_status); } &&
16869: { ac_try='test -z "$ac_c_werror_flag"
16870: || test ! -s conftest.err'
16871: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872: (eval $ac_try) 2>&5
16873: ac_status=$?
16874: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875: (exit $ac_status); }; } &&
16876: { ac_try='test -s conftest$ac_exeext'
16877: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878: (eval $ac_try) 2>&5
16879: ac_status=$?
16880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881: (exit $ac_status); }; }; then
16882: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16883: else
16884: echo "$as_me: failed program was:" >&5
16885: sed 's/^/| /' conftest.$ac_ext >&5
16886:
16887: ac_cv_lib_ltdl_lt_dladvise_preload=no
16888: fi
16889: rm -f conftest.err conftest.$ac_objext \
16890: conftest$ac_exeext conftest.$ac_ext
16891: LIBS=$ac_check_lib_save_LIBS
16892: fi
16893: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16894: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
16895: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
16896: with_included_ltdl=no
16897: else
16898: with_included_ltdl=yes
16899: fi
16900:
16901: else
16902: with_included_ltdl=yes
16903: fi
16904:
16905: else
16906: with_included_ltdl=yes
16907: fi
16908:
16909:
16910: fi
16911:
16912:
16913:
16914:
16915: # Check whether --with-ltdl_include or --without-ltdl_include was given.
16916: if test "${with_ltdl_include+set}" = set; then
16917: withval="$with_ltdl_include"
16918:
16919: fi;
16920:
16921: if test -n "$with_ltdl_include"; then
16922: if test -f "$with_ltdl_include/ltdl.h"; then :
16923: else
16924: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
16925: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
16926: { (exit 1); exit 1; }; }
16927: fi
16928: else
16929: with_ltdl_include=no
16930: fi
16931:
16932:
16933: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
16934: if test "${with_ltdl_lib+set}" = set; then
16935: withval="$with_ltdl_lib"
16936:
16937: fi;
16938:
16939: if test -n "$with_ltdl_lib"; then
16940: if test -f "$with_ltdl_lib/libltdl.la"; then :
16941: else
16942: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
16943: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
16944: { (exit 1); exit 1; }; }
16945: fi
16946: else
16947: with_ltdl_lib=no
16948: fi
16949:
16950: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16951: ,yes,no,no,)
16952: case $enable_ltdl_convenience in
16953: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
16954: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
16955: { (exit 1); exit 1; }; } ;;
16956: "") enable_ltdl_convenience=yes
16957: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16958: esac
16959: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16960: LTDLDEPS=$LIBLTDL
16961: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16962:
16963:
16964:
16965:
16966:
16967: # For backwards non-gettext consistent compatibility...
16968: INCLTDL="$LTDLINCL"
16969:
16970:
16971: ;;
16972: ,no,no,no,)
16973: # If the included ltdl is not to be used, then use the
16974: # preinstalled libltdl we found.
16975:
16976: cat >>confdefs.h <<\_ACEOF
16977: #define HAVE_LTDL 1
16978: _ACEOF
16979:
16980: LIBLTDL=-lltdl
16981: LTDLDEPS=
16982: LTDLINCL=
16983: ;;
16984: ,no*,no,*)
16985: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
16986: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
16987: { (exit 1); exit 1; }; }
16988: ;;
16989: *) with_included_ltdl=no
16990: LIBLTDL="-L$with_ltdl_lib -lltdl"
16991: LTDLDEPS=
16992: LTDLINCL="-I$with_ltdl_include"
16993: ;;
16994: esac
16995: INCLTDL="$LTDLINCL"
16996:
16997: # Report our decision...
16998: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
16999: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17000: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17001: echo "${ECHO_T}$LTDLINCL" >&6
17002: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17003: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17004: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17005: echo "${ECHO_T}$LIBLTDL" >&6
17006:
17007:
17008:
17009: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17010: if test "${enable_ltdl_install+set}" = set; then
17011: enableval="$enable_ltdl_install"
17012:
17013: fi;
17014:
17015: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17016: *yes*) ;;
17017: *) enable_ltdl_convenience=yes ;;
17018: esac
17019:
17020:
17021:
17022: if test x"${enable_ltdl_install-no}" != xno; then
17023: INSTALL_LTDL_TRUE=
17024: INSTALL_LTDL_FALSE='#'
17025: else
17026: INSTALL_LTDL_TRUE='#'
17027: INSTALL_LTDL_FALSE=
17028: fi
17029:
17030:
17031:
17032: if test x"${enable_ltdl_convenience-no}" != xno; then
17033: CONVENIENCE_LTDL_TRUE=
17034: CONVENIENCE_LTDL_FALSE='#'
17035: else
17036: CONVENIENCE_LTDL_TRUE='#'
17037: CONVENIENCE_LTDL_FALSE=
17038: fi
17039:
17040:
17041:
17042:
17043:
17044: subdirs="$subdirs libltdl"
17045:
17046:
17047:
17048:
17049: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17050: # the user used. This is so that ltdl.h can pick up the parent projects
17051: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17052: # definitions required by ltdl.c.
17053: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17054:
17055:
17056:
17057:
17058:
17059:
17060:
17061:
17062:
17063: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17064: do
17065: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17066: echo "$as_me:$LINENO: checking for $ac_header" >&5
17067: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17068: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17069: echo $ECHO_N "(cached) $ECHO_C" >&6
17070: else
17071: cat >conftest.$ac_ext <<_ACEOF
17072: /* confdefs.h. */
17073: _ACEOF
17074: cat confdefs.h >>conftest.$ac_ext
17075: cat >>conftest.$ac_ext <<_ACEOF
17076: /* end confdefs.h. */
17077: $ac_includes_default
17078:
17079: #include <$ac_header>
17080: _ACEOF
17081: rm -f conftest.$ac_objext
17082: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17083: (eval $ac_compile) 2>conftest.er1
17084: ac_status=$?
17085: grep -v '^ *+' conftest.er1 >conftest.err
17086: rm -f conftest.er1
17087: cat conftest.err >&5
17088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089: (exit $ac_status); } &&
17090: { ac_try='test -z "$ac_c_werror_flag"
17091: || test ! -s conftest.err'
17092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093: (eval $ac_try) 2>&5
17094: ac_status=$?
17095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096: (exit $ac_status); }; } &&
17097: { ac_try='test -s conftest.$ac_objext'
17098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099: (eval $ac_try) 2>&5
17100: ac_status=$?
17101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102: (exit $ac_status); }; }; then
17103: eval "$as_ac_Header=yes"
17104: else
17105: echo "$as_me: failed program was:" >&5
17106: sed 's/^/| /' conftest.$ac_ext >&5
17107:
17108: eval "$as_ac_Header=no"
17109: fi
17110: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17111: fi
17112: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17113: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17114: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17115: cat >>confdefs.h <<_ACEOF
17116: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17117: _ACEOF
17118:
17119: fi
17120:
17121: done
17122:
17123:
17124:
17125:
17126:
17127: for ac_func in closedir opendir readdir
17128: do
17129: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17130: echo "$as_me:$LINENO: checking for $ac_func" >&5
17131: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17132: if eval "test \"\${$as_ac_var+set}\" = set"; then
17133: echo $ECHO_N "(cached) $ECHO_C" >&6
17134: else
17135: cat >conftest.$ac_ext <<_ACEOF
17136: /* confdefs.h. */
17137: _ACEOF
17138: cat confdefs.h >>conftest.$ac_ext
17139: cat >>conftest.$ac_ext <<_ACEOF
17140: /* end confdefs.h. */
17141: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17142: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17143: #define $ac_func innocuous_$ac_func
17144:
17145: /* System header to define __stub macros and hopefully few prototypes,
17146: which can conflict with char $ac_func (); below.
17147: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17148: <limits.h> exists even on freestanding compilers. */
17149:
17150: #ifdef __STDC__
17151: # include <limits.h>
17152: #else
17153: # include <assert.h>
17154: #endif
17155:
17156: #undef $ac_func
17157:
17158: /* Override any gcc2 internal prototype to avoid an error. */
17159: #ifdef __cplusplus
17160: extern "C"
17161: {
17162: #endif
17163: /* We use char because int might match the return type of a gcc2
17164: builtin and then its argument prototype would still apply. */
17165: char $ac_func ();
17166: /* The GNU C library defines this for functions which it implements
17167: to always fail with ENOSYS. Some functions are actually named
17168: something starting with __ and the normal name is an alias. */
17169: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17170: choke me
17171: #else
17172: char (*f) () = $ac_func;
17173: #endif
17174: #ifdef __cplusplus
17175: }
17176: #endif
17177:
17178: int
17179: main ()
17180: {
17181: return f != $ac_func;
17182: ;
17183: return 0;
17184: }
17185: _ACEOF
17186: rm -f conftest.$ac_objext conftest$ac_exeext
17187: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17188: (eval $ac_link) 2>conftest.er1
17189: ac_status=$?
17190: grep -v '^ *+' conftest.er1 >conftest.err
17191: rm -f conftest.er1
17192: cat conftest.err >&5
17193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194: (exit $ac_status); } &&
17195: { ac_try='test -z "$ac_c_werror_flag"
17196: || test ! -s conftest.err'
17197: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198: (eval $ac_try) 2>&5
17199: ac_status=$?
17200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201: (exit $ac_status); }; } &&
17202: { ac_try='test -s conftest$ac_exeext'
17203: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204: (eval $ac_try) 2>&5
17205: ac_status=$?
17206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207: (exit $ac_status); }; }; then
17208: eval "$as_ac_var=yes"
17209: else
17210: echo "$as_me: failed program was:" >&5
17211: sed 's/^/| /' conftest.$ac_ext >&5
17212:
17213: eval "$as_ac_var=no"
17214: fi
17215: rm -f conftest.err conftest.$ac_objext \
17216: conftest$ac_exeext conftest.$ac_ext
17217: fi
17218: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17219: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17220: if test `eval echo '${'$as_ac_var'}'` = yes; then
17221: cat >>confdefs.h <<_ACEOF
17222: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17223: _ACEOF
17224:
17225: else
17226:
17227:
17228: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17229:
17230: fi
17231: done
17232:
17233:
17234:
17235: for ac_func in strlcat strlcpy
17236: do
17237: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17238: echo "$as_me:$LINENO: checking for $ac_func" >&5
17239: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17240: if eval "test \"\${$as_ac_var+set}\" = set"; then
17241: echo $ECHO_N "(cached) $ECHO_C" >&6
17242: else
17243: cat >conftest.$ac_ext <<_ACEOF
17244: /* confdefs.h. */
17245: _ACEOF
17246: cat confdefs.h >>conftest.$ac_ext
17247: cat >>conftest.$ac_ext <<_ACEOF
17248: /* end confdefs.h. */
17249: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17250: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17251: #define $ac_func innocuous_$ac_func
17252:
17253: /* System header to define __stub macros and hopefully few prototypes,
17254: which can conflict with char $ac_func (); below.
17255: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256: <limits.h> exists even on freestanding compilers. */
17257:
17258: #ifdef __STDC__
17259: # include <limits.h>
17260: #else
17261: # include <assert.h>
17262: #endif
17263:
17264: #undef $ac_func
17265:
17266: /* Override any gcc2 internal prototype to avoid an error. */
17267: #ifdef __cplusplus
17268: extern "C"
17269: {
17270: #endif
17271: /* We use char because int might match the return type of a gcc2
17272: builtin and then its argument prototype would still apply. */
17273: char $ac_func ();
17274: /* The GNU C library defines this for functions which it implements
17275: to always fail with ENOSYS. Some functions are actually named
17276: something starting with __ and the normal name is an alias. */
17277: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17278: choke me
17279: #else
17280: char (*f) () = $ac_func;
17281: #endif
17282: #ifdef __cplusplus
17283: }
17284: #endif
17285:
17286: int
17287: main ()
17288: {
17289: return f != $ac_func;
17290: ;
17291: return 0;
17292: }
17293: _ACEOF
17294: rm -f conftest.$ac_objext conftest$ac_exeext
17295: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296: (eval $ac_link) 2>conftest.er1
17297: ac_status=$?
17298: grep -v '^ *+' conftest.er1 >conftest.err
17299: rm -f conftest.er1
17300: cat conftest.err >&5
17301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302: (exit $ac_status); } &&
17303: { ac_try='test -z "$ac_c_werror_flag"
17304: || test ! -s conftest.err'
17305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306: (eval $ac_try) 2>&5
17307: ac_status=$?
17308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309: (exit $ac_status); }; } &&
17310: { ac_try='test -s conftest$ac_exeext'
17311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312: (eval $ac_try) 2>&5
17313: ac_status=$?
17314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315: (exit $ac_status); }; }; then
17316: eval "$as_ac_var=yes"
17317: else
17318: echo "$as_me: failed program was:" >&5
17319: sed 's/^/| /' conftest.$ac_ext >&5
17320:
17321: eval "$as_ac_var=no"
17322: fi
17323: rm -f conftest.err conftest.$ac_objext \
17324: conftest$ac_exeext conftest.$ac_ext
17325: fi
17326: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17327: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17328: if test `eval echo '${'$as_ac_var'}'` = yes; then
17329: cat >>confdefs.h <<_ACEOF
17330: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331: _ACEOF
17332:
17333: else
17334:
17335:
17336: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17337:
17338: fi
17339: done
17340:
17341:
17342:
17343: cat >>confdefs.h <<_ACEOF
17344: #define LT_LIBEXT "$libext"
17345: _ACEOF
17346:
17347:
17348: name=
17349: eval "lt_libprefix=\"$libname_spec\""
17350:
17351: cat >>confdefs.h <<_ACEOF
17352: #define LT_LIBPREFIX "$lt_libprefix"
17353: _ACEOF
17354:
17355:
17356: name=ltdl
17357: eval "LTDLOPEN=\"$libname_spec\""
17358:
17359:
17360:
17361:
17362:
17363:
17364:
17365:
17366: # Only expand once:
17367:
17368:
17369:
1.36 moko 17370: # Check whether --enable-static or --disable-static was given.
17371: if test "${enable_static+set}" = set; then
17372: enableval="$enable_static"
17373: p=${PACKAGE-default}
17374: case $enableval in
17375: yes) enable_static=yes ;;
17376: no) enable_static=no ;;
17377: *)
17378: enable_static=no
17379: # Look at the argument we got. We use all the common list separators.
17380: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17381: for pkg in $enableval; do
17382: IFS="$lt_save_ifs"
17383: if test "X$pkg" = "X$p"; then
17384: enable_static=yes
17385: fi
17386: done
17387: IFS="$lt_save_ifs"
17388: ;;
17389: esac
17390: else
17391: enable_static=no
17392: fi;
17393:
17394:
17395:
17396:
17397:
17398:
17399:
1.35 moko 17400: case "$host" in
17401: *-freebsd4*)
17402:
17403: cat >>confdefs.h <<\_ACEOF
17404: #define FREEBSD4
17405: _ACEOF
17406:
17407: esac
17408:
17409:
17410:
17411:
17412:
17413:
17414: for ac_header in stdio.h \
17415: stdlib.h \
17416: string.h \
17417: setjmp.h \
17418: ctype.h
17419:
17420: do
17421: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17422: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17423: echo "$as_me:$LINENO: checking for $ac_header" >&5
17424: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17425: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17426: echo $ECHO_N "(cached) $ECHO_C" >&6
17427: fi
17428: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17429: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17430: else
17431: # Is the header compilable?
17432: echo "$as_me:$LINENO: checking $ac_header usability" >&5
17433: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17434: cat >conftest.$ac_ext <<_ACEOF
17435: /* confdefs.h. */
17436: _ACEOF
17437: cat confdefs.h >>conftest.$ac_ext
17438: cat >>conftest.$ac_ext <<_ACEOF
17439: /* end confdefs.h. */
17440: $ac_includes_default
17441: #include <$ac_header>
17442: _ACEOF
17443: rm -f conftest.$ac_objext
17444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445: (eval $ac_compile) 2>conftest.er1
17446: ac_status=$?
17447: grep -v '^ *+' conftest.er1 >conftest.err
17448: rm -f conftest.er1
17449: cat conftest.err >&5
17450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451: (exit $ac_status); } &&
17452: { ac_try='test -z "$ac_c_werror_flag"
17453: || test ! -s conftest.err'
17454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455: (eval $ac_try) 2>&5
17456: ac_status=$?
17457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458: (exit $ac_status); }; } &&
17459: { ac_try='test -s conftest.$ac_objext'
17460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461: (eval $ac_try) 2>&5
17462: ac_status=$?
17463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464: (exit $ac_status); }; }; then
17465: ac_header_compiler=yes
17466: else
17467: echo "$as_me: failed program was:" >&5
17468: sed 's/^/| /' conftest.$ac_ext >&5
17469:
17470: ac_header_compiler=no
17471: fi
17472: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17473: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17474: echo "${ECHO_T}$ac_header_compiler" >&6
17475:
17476: # Is the header present?
17477: echo "$as_me:$LINENO: checking $ac_header presence" >&5
17478: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17479: cat >conftest.$ac_ext <<_ACEOF
17480: /* confdefs.h. */
17481: _ACEOF
17482: cat confdefs.h >>conftest.$ac_ext
17483: cat >>conftest.$ac_ext <<_ACEOF
17484: /* end confdefs.h. */
17485: #include <$ac_header>
17486: _ACEOF
17487: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17488: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17489: ac_status=$?
17490: grep -v '^ *+' conftest.er1 >conftest.err
17491: rm -f conftest.er1
17492: cat conftest.err >&5
17493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494: (exit $ac_status); } >/dev/null; then
17495: if test -s conftest.err; then
17496: ac_cpp_err=$ac_c_preproc_warn_flag
17497: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17498: else
17499: ac_cpp_err=
17500: fi
17501: else
17502: ac_cpp_err=yes
17503: fi
17504: if test -z "$ac_cpp_err"; then
17505: ac_header_preproc=yes
17506: else
17507: echo "$as_me: failed program was:" >&5
17508: sed 's/^/| /' conftest.$ac_ext >&5
17509:
17510: ac_header_preproc=no
17511: fi
17512: rm -f conftest.err conftest.$ac_ext
17513: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17514: echo "${ECHO_T}$ac_header_preproc" >&6
17515:
17516: # So? What about this header?
17517: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17518: yes:no: )
17519: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17520: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17521: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17522: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17523: ac_header_preproc=yes
17524: ;;
17525: no:yes:* )
17526: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17527: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17528: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17529: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17530: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17531: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17532: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17533: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17534: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17535: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17536: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17537: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17538: (
17539: cat <<\_ASBOX
1.36 moko 17540: ## ----------------------------------------- ##
17541: ## Report this to the parser3mysql.C lists. ##
17542: ## ----------------------------------------- ##
1.35 moko 17543: _ASBOX
17544: ) |
17545: sed "s/^/$as_me: WARNING: /" >&2
17546: ;;
17547: esac
17548: echo "$as_me:$LINENO: checking for $ac_header" >&5
17549: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17550: if eval "test \"\${$as_ac_Header+set}\" = set"; then
17551: echo $ECHO_N "(cached) $ECHO_C" >&6
17552: else
17553: eval "$as_ac_Header=\$ac_header_preproc"
17554: fi
17555: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17556: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17557:
17558: fi
17559: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17560: cat >>confdefs.h <<_ACEOF
17561: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17562: _ACEOF
17563:
17564: fi
17565:
17566: done
17567:
17568:
17569: echo "$as_me:$LINENO: checking for size_t" >&5
17570: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17571: if test "${ac_cv_type_size_t+set}" = set; then
17572: echo $ECHO_N "(cached) $ECHO_C" >&6
17573: else
17574: cat >conftest.$ac_ext <<_ACEOF
17575: /* confdefs.h. */
17576: _ACEOF
17577: cat confdefs.h >>conftest.$ac_ext
17578: cat >>conftest.$ac_ext <<_ACEOF
17579: /* end confdefs.h. */
17580: $ac_includes_default
17581: int
17582: main ()
17583: {
17584: if ((size_t *) 0)
17585: return 0;
17586: if (sizeof (size_t))
17587: return 0;
17588: ;
17589: return 0;
17590: }
17591: _ACEOF
17592: rm -f conftest.$ac_objext
17593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17594: (eval $ac_compile) 2>conftest.er1
17595: ac_status=$?
17596: grep -v '^ *+' conftest.er1 >conftest.err
17597: rm -f conftest.er1
17598: cat conftest.err >&5
17599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600: (exit $ac_status); } &&
17601: { ac_try='test -z "$ac_c_werror_flag"
17602: || test ! -s conftest.err'
17603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604: (eval $ac_try) 2>&5
17605: ac_status=$?
17606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607: (exit $ac_status); }; } &&
17608: { ac_try='test -s conftest.$ac_objext'
17609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610: (eval $ac_try) 2>&5
17611: ac_status=$?
17612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613: (exit $ac_status); }; }; then
17614: ac_cv_type_size_t=yes
17615: else
17616: echo "$as_me: failed program was:" >&5
17617: sed 's/^/| /' conftest.$ac_ext >&5
17618:
17619: ac_cv_type_size_t=no
17620: fi
17621: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622: fi
17623: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17624: echo "${ECHO_T}$ac_cv_type_size_t" >&6
17625: if test $ac_cv_type_size_t = yes; then
17626: :
17627: else
17628:
17629: cat >>confdefs.h <<_ACEOF
17630: #define size_t unsigned
17631: _ACEOF
17632:
17633: fi
17634:
17635:
17636:
17637: ac_config_files="$ac_config_files Makefile"
17638: cat >confcache <<\_ACEOF
17639: # This file is a shell script that caches the results of configure
17640: # tests run on this system so they can be shared between configure
17641: # scripts and configure runs, see configure's option --config-cache.
17642: # It is not useful on other systems. If it contains results you don't
17643: # want to keep, you may remove or edit it.
17644: #
17645: # config.status only pays attention to the cache file if you give it
17646: # the --recheck option to rerun configure.
17647: #
17648: # `ac_cv_env_foo' variables (set or unset) will be overridden when
17649: # loading this file, other *unset* `ac_cv_foo' will be assigned the
17650: # following values.
17651:
17652: _ACEOF
17653:
17654: # The following way of writing the cache mishandles newlines in values,
17655: # but we know of no workaround that is simple, portable, and efficient.
17656: # So, don't put newlines in cache variables' values.
17657: # Ultrix sh set writes to stderr and can't be redirected directly,
17658: # and sets the high bit in the cache file unless we assign to the vars.
17659: {
17660: (set) 2>&1 |
17661: case `(ac_space=' '; set | grep ac_space) 2>&1` in
17662: *ac_space=\ *)
17663: # `set' does not quote correctly, so add quotes (double-quote
17664: # substitution turns \\\\ into \\, and sed turns \\ into \).
17665: sed -n \
17666: "s/'/'\\\\''/g;
17667: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17668: ;;
17669: *)
17670: # `set' quotes correctly as required by POSIX, so do not add quotes.
17671: sed -n \
17672: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17673: ;;
17674: esac;
17675: } |
17676: sed '
17677: t clear
17678: : clear
17679: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17680: t end
17681: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17682: : end' >>confcache
17683: if diff $cache_file confcache >/dev/null 2>&1; then :; else
17684: if test -w $cache_file; then
17685: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17686: cat confcache >$cache_file
17687: else
17688: echo "not updating unwritable cache $cache_file"
17689: fi
17690: fi
17691: rm -f confcache
17692:
17693: test "x$prefix" = xNONE && prefix=$ac_default_prefix
17694: # Let make expand exec_prefix.
17695: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17696:
17697: # VPATH may cause trouble with some makes, so we remove $(srcdir),
17698: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17699: # trailing colons and then remove the whole line if VPATH becomes empty
17700: # (actually we leave an empty line to preserve line numbers).
17701: if test "x$srcdir" = x.; then
17702: ac_vpsub='/^[ ]*VPATH[ ]*=/{
17703: s/:*\$(srcdir):*/:/;
17704: s/:*\${srcdir}:*/:/;
17705: s/:*@srcdir@:*/:/;
17706: s/^\([^=]*=[ ]*\):*/\1/;
17707: s/:*$//;
17708: s/^[^=]*=[ ]*$//;
17709: }'
17710: fi
17711:
17712: DEFS=-DHAVE_CONFIG_H
17713:
17714: ac_libobjs=
17715: ac_ltlibobjs=
17716: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17717: # 1. Remove the extension, and $U if already installed.
17718: ac_i=`echo "$ac_i" |
17719: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17720: # 2. Add them.
17721: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17722: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17723: done
17724: LIBOBJS=$ac_libobjs
17725:
17726: LTLIBOBJS=$ac_ltlibobjs
17727:
17728:
17729: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17730: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17731: Usually this means the macro was only invoked conditionally." >&5
17732: echo "$as_me: error: conditional \"AMDEP\" was never defined.
17733: Usually this means the macro was only invoked conditionally." >&2;}
17734: { (exit 1); exit 1; }; }
17735: fi
17736: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17737: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17738: Usually this means the macro was only invoked conditionally." >&5
17739: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17740: Usually this means the macro was only invoked conditionally." >&2;}
17741: { (exit 1); exit 1; }; }
17742: fi
17743: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17744: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17745: Usually this means the macro was only invoked conditionally." >&5
17746: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17747: Usually this means the macro was only invoked conditionally." >&2;}
17748: { (exit 1); exit 1; }; }
17749: fi
17750: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
17751: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
17752: Usually this means the macro was only invoked conditionally." >&5
17753: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
17754: Usually this means the macro was only invoked conditionally." >&2;}
17755: { (exit 1); exit 1; }; }
17756: fi
17757: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
17758: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17759: Usually this means the macro was only invoked conditionally." >&5
17760: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
17761: Usually this means the macro was only invoked conditionally." >&2;}
17762: { (exit 1); exit 1; }; }
17763: fi
17764: LT_CONFIG_H=`echo " config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
17765:
17766: _ltdl_libobjs=
17767: _ltdl_ltlibobjs=
17768: if test -n "$_LT_LIBOBJS"; then
17769: # Remove the extension.
17770: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
17771: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
17772: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
17773: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
17774: done
17775: fi
17776: ltdl_LIBOBJS=$_ltdl_libobjs
17777:
17778: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
17779:
17780:
17781:
17782: : ${CONFIG_STATUS=./config.status}
17783: ac_clean_files_save=$ac_clean_files
17784: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17785: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17786: echo "$as_me: creating $CONFIG_STATUS" >&6;}
17787: cat >$CONFIG_STATUS <<_ACEOF
17788: #! $SHELL
17789: # Generated by $as_me.
17790: # Run this file to recreate the current configuration.
17791: # Compiler output produced by configure, useful for debugging
17792: # configure, is in config.log if it exists.
17793:
17794: debug=false
17795: ac_cs_recheck=false
17796: ac_cs_silent=false
17797: SHELL=\${CONFIG_SHELL-$SHELL}
17798: _ACEOF
17799:
17800: cat >>$CONFIG_STATUS <<\_ACEOF
17801: ## --------------------- ##
17802: ## M4sh Initialization. ##
17803: ## --------------------- ##
17804:
17805: # Be Bourne compatible
17806: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17807: emulate sh
17808: NULLCMD=:
17809: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17810: # is contrary to our usage. Disable this feature.
17811: alias -g '${1+"$@"}'='"$@"'
17812: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17813: set -o posix
17814: fi
17815: DUALCASE=1; export DUALCASE # for MKS sh
17816:
17817: # Support unset when possible.
17818: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17819: as_unset=unset
17820: else
17821: as_unset=false
17822: fi
17823:
17824:
17825: # Work around bugs in pre-3.0 UWIN ksh.
17826: $as_unset ENV MAIL MAILPATH
17827: PS1='$ '
17828: PS2='> '
17829: PS4='+ '
17830:
17831: # NLS nuisances.
17832: for as_var in \
17833: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17834: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17835: LC_TELEPHONE LC_TIME
17836: do
17837: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17838: eval $as_var=C; export $as_var
17839: else
17840: $as_unset $as_var
17841: fi
17842: done
17843:
17844: # Required to use basename.
17845: if expr a : '\(a\)' >/dev/null 2>&1; then
17846: as_expr=expr
17847: else
17848: as_expr=false
17849: fi
17850:
17851: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17852: as_basename=basename
17853: else
17854: as_basename=false
17855: fi
17856:
17857:
17858: # Name of the executable.
17859: as_me=`$as_basename "$0" ||
17860: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17861: X"$0" : 'X\(//\)$' \| \
17862: X"$0" : 'X\(/\)$' \| \
17863: . : '\(.\)' 2>/dev/null ||
17864: echo X/"$0" |
17865: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17866: /^X\/\(\/\/\)$/{ s//\1/; q; }
17867: /^X\/\(\/\).*/{ s//\1/; q; }
17868: s/.*/./; q'`
17869:
17870:
17871: # PATH needs CR, and LINENO needs CR and PATH.
17872: # Avoid depending upon Character Ranges.
17873: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17874: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17875: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17876: as_cr_digits='0123456789'
17877: as_cr_alnum=$as_cr_Letters$as_cr_digits
17878:
17879: # The user is always right.
17880: if test "${PATH_SEPARATOR+set}" != set; then
17881: echo "#! /bin/sh" >conf$$.sh
17882: echo "exit 0" >>conf$$.sh
17883: chmod +x conf$$.sh
17884: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17885: PATH_SEPARATOR=';'
17886: else
17887: PATH_SEPARATOR=:
17888: fi
17889: rm -f conf$$.sh
17890: fi
17891:
17892:
17893: as_lineno_1=$LINENO
17894: as_lineno_2=$LINENO
17895: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17896: test "x$as_lineno_1" != "x$as_lineno_2" &&
17897: test "x$as_lineno_3" = "x$as_lineno_2" || {
17898: # Find who we are. Look in the path if we contain no path at all
17899: # relative or not.
17900: case $0 in
17901: *[\\/]* ) as_myself=$0 ;;
17902: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17903: for as_dir in $PATH
17904: do
17905: IFS=$as_save_IFS
17906: test -z "$as_dir" && as_dir=.
17907: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17908: done
17909:
17910: ;;
17911: esac
17912: # We did not find ourselves, most probably we were run as `sh COMMAND'
17913: # in which case we are not to be found in the path.
17914: if test "x$as_myself" = x; then
17915: as_myself=$0
17916: fi
17917: if test ! -f "$as_myself"; then
17918: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17919: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17920: { (exit 1); exit 1; }; }
17921: fi
17922: case $CONFIG_SHELL in
17923: '')
17924: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17926: do
17927: IFS=$as_save_IFS
17928: test -z "$as_dir" && as_dir=.
17929: for as_base in sh bash ksh sh5; do
17930: case $as_dir in
17931: /*)
17932: if ("$as_dir/$as_base" -c '
17933: as_lineno_1=$LINENO
17934: as_lineno_2=$LINENO
17935: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17936: test "x$as_lineno_1" != "x$as_lineno_2" &&
17937: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17938: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17939: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17940: CONFIG_SHELL=$as_dir/$as_base
17941: export CONFIG_SHELL
17942: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17943: fi;;
17944: esac
17945: done
17946: done
17947: ;;
17948: esac
17949:
17950: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17951: # uniformly replaced by the line number. The first 'sed' inserts a
17952: # line-number line before each line; the second 'sed' does the real
17953: # work. The second script uses 'N' to pair each line-number line
17954: # with the numbered line, and appends trailing '-' during
17955: # substitution so that $LINENO is not a special case at line end.
17956: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17957: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17958: sed '=' <$as_myself |
17959: sed '
17960: N
17961: s,$,-,
17962: : loop
17963: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17964: t loop
17965: s,-$,,
17966: s,^['$as_cr_digits']*\n,,
17967: ' >$as_me.lineno &&
17968: chmod +x $as_me.lineno ||
17969: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17970: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17971: { (exit 1); exit 1; }; }
17972:
17973: # Don't try to exec as it changes $[0], causing all sort of problems
17974: # (the dirname of $[0] is not the place where we might find the
17975: # original and so on. Autoconf is especially sensible to this).
17976: . ./$as_me.lineno
17977: # Exit status is that of the last command.
17978: exit
17979: }
17980:
17981:
17982: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17983: *c*,-n*) ECHO_N= ECHO_C='
17984: ' ECHO_T=' ' ;;
17985: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17986: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17987: esac
17988:
17989: if expr a : '\(a\)' >/dev/null 2>&1; then
17990: as_expr=expr
17991: else
17992: as_expr=false
17993: fi
17994:
17995: rm -f conf$$ conf$$.exe conf$$.file
17996: echo >conf$$.file
17997: if ln -s conf$$.file conf$$ 2>/dev/null; then
17998: # We could just check for DJGPP; but this test a) works b) is more generic
17999: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18000: if test -f conf$$.exe; then
18001: # Don't use ln at all; we don't have any links
18002: as_ln_s='cp -p'
18003: else
18004: as_ln_s='ln -s'
18005: fi
18006: elif ln conf$$.file conf$$ 2>/dev/null; then
18007: as_ln_s=ln
18008: else
18009: as_ln_s='cp -p'
18010: fi
18011: rm -f conf$$ conf$$.exe conf$$.file
18012:
18013: if mkdir -p . 2>/dev/null; then
18014: as_mkdir_p=:
18015: else
18016: test -d ./-p && rmdir ./-p
18017: as_mkdir_p=false
18018: fi
18019:
18020: as_executable_p="test -f"
18021:
18022: # Sed expression to map a string onto a valid CPP name.
18023: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18024:
18025: # Sed expression to map a string onto a valid variable name.
18026: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18027:
18028:
18029: # IFS
18030: # We need space, tab and new line, in precisely that order.
18031: as_nl='
18032: '
18033: IFS=" $as_nl"
18034:
18035: # CDPATH.
18036: $as_unset CDPATH
18037:
18038: exec 6>&1
18039:
18040: # Open the log real soon, to keep \$[0] and so on meaningful, and to
18041: # report actual input values of CONFIG_FILES etc. instead of their
18042: # values after options handling. Logging --version etc. is OK.
18043: exec 5>>config.log
18044: {
18045: echo
18046: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18047: ## Running $as_me. ##
18048: _ASBOX
18049: } >&5
18050: cat >&5 <<_CSEOF
18051:
1.36 moko 18052: This file was extended by parser3mysql.C $as_me 10.3, which was
1.35 moko 18053: generated by GNU Autoconf 2.59. Invocation command line was
18054:
18055: CONFIG_FILES = $CONFIG_FILES
18056: CONFIG_HEADERS = $CONFIG_HEADERS
18057: CONFIG_LINKS = $CONFIG_LINKS
18058: CONFIG_COMMANDS = $CONFIG_COMMANDS
18059: $ $0 $@
18060:
18061: _CSEOF
18062: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18063: echo >&5
18064: _ACEOF
18065:
18066: # Files that config.status was made for.
18067: if test -n "$ac_config_files"; then
18068: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18069: fi
18070:
18071: if test -n "$ac_config_headers"; then
18072: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18073: fi
18074:
18075: if test -n "$ac_config_links"; then
18076: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18077: fi
18078:
18079: if test -n "$ac_config_commands"; then
18080: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18081: fi
18082:
18083: cat >>$CONFIG_STATUS <<\_ACEOF
18084:
18085: ac_cs_usage="\
18086: \`$as_me' instantiates files from templates according to the
18087: current configuration.
18088:
18089: Usage: $0 [OPTIONS] [FILE]...
18090:
18091: -h, --help print this help, then exit
18092: -V, --version print version number, then exit
18093: -q, --quiet do not print progress messages
18094: -d, --debug don't remove temporary files
18095: --recheck update $as_me by reconfiguring in the same conditions
18096: --file=FILE[:TEMPLATE]
18097: instantiate the configuration file FILE
18098: --header=FILE[:TEMPLATE]
18099: instantiate the configuration header FILE
18100:
18101: Configuration files:
18102: $config_files
18103:
18104: Configuration headers:
18105: $config_headers
18106:
18107: Configuration commands:
18108: $config_commands
18109:
18110: Report bugs to <bug-autoconf@gnu.org>."
18111: _ACEOF
18112:
18113: cat >>$CONFIG_STATUS <<_ACEOF
18114: ac_cs_version="\\
1.36 moko 18115: parser3mysql.C config.status 10.3
1.35 moko 18116: configured by $0, generated by GNU Autoconf 2.59,
18117: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18118:
18119: Copyright (C) 2003 Free Software Foundation, Inc.
18120: This config.status script is free software; the Free Software Foundation
18121: gives unlimited permission to copy, distribute and modify it."
18122: srcdir=$srcdir
18123: INSTALL="$INSTALL"
18124: _ACEOF
18125:
18126: cat >>$CONFIG_STATUS <<\_ACEOF
18127: # If no file are specified by the user, then we need to provide default
18128: # value. By we need to know if files were specified by the user.
18129: ac_need_defaults=:
18130: while test $# != 0
18131: do
18132: case $1 in
18133: --*=*)
18134: ac_option=`expr "x$1" : 'x\([^=]*\)='`
18135: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18136: ac_shift=:
18137: ;;
18138: -*)
18139: ac_option=$1
18140: ac_optarg=$2
18141: ac_shift=shift
18142: ;;
18143: *) # This is not an option, so the user has probably given explicit
18144: # arguments.
18145: ac_option=$1
18146: ac_need_defaults=false;;
18147: esac
18148:
18149: case $ac_option in
18150: # Handling of the options.
18151: _ACEOF
18152: cat >>$CONFIG_STATUS <<\_ACEOF
18153: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18154: ac_cs_recheck=: ;;
18155: --version | --vers* | -V )
18156: echo "$ac_cs_version"; exit 0 ;;
18157: --he | --h)
18158: # Conflict between --help and --header
18159: { { echo "$as_me:$LINENO: error: ambiguous option: $1
18160: Try \`$0 --help' for more information." >&5
18161: echo "$as_me: error: ambiguous option: $1
18162: Try \`$0 --help' for more information." >&2;}
18163: { (exit 1); exit 1; }; };;
18164: --help | --hel | -h )
18165: echo "$ac_cs_usage"; exit 0 ;;
18166: --debug | --d* | -d )
18167: debug=: ;;
18168: --file | --fil | --fi | --f )
18169: $ac_shift
18170: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18171: ac_need_defaults=false;;
18172: --header | --heade | --head | --hea )
18173: $ac_shift
18174: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18175: ac_need_defaults=false;;
18176: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18177: | -silent | --silent | --silen | --sile | --sil | --si | --s)
18178: ac_cs_silent=: ;;
18179:
18180: # This is an error.
18181: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18182: Try \`$0 --help' for more information." >&5
18183: echo "$as_me: error: unrecognized option: $1
18184: Try \`$0 --help' for more information." >&2;}
18185: { (exit 1); exit 1; }; } ;;
18186:
18187: *) ac_config_targets="$ac_config_targets $1" ;;
18188:
18189: esac
18190: shift
18191: done
18192:
18193: ac_configure_extra_args=
18194:
18195: if $ac_cs_silent; then
18196: exec 6>/dev/null
18197: ac_configure_extra_args="$ac_configure_extra_args --silent"
18198: fi
18199:
18200: _ACEOF
18201: cat >>$CONFIG_STATUS <<_ACEOF
18202: if \$ac_cs_recheck; then
18203: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18204: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18205: fi
18206:
18207: _ACEOF
18208:
18209: cat >>$CONFIG_STATUS <<_ACEOF
18210: #
18211: # INIT-COMMANDS section.
18212: #
18213:
18214: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18215:
18216:
18217: # The HP-UX ksh and POSIX shell print the target directory to stdout
18218: # if CDPATH is set.
18219: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18220:
18221: sed_quote_subst='$sed_quote_subst'
18222: double_quote_subst='$double_quote_subst'
18223: delay_variable_subst='$delay_variable_subst'
18224: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18225: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.36 moko 18226: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18227: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18228: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.35 moko 18229: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18230: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18231: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18232: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18233: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18234: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18235: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18236: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18237: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18238: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18239: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18240: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18241: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18242: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18243: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18244: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18245: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18246: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18247: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18248: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18249: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18250: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18251: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18252: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18253: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18254: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18255: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18256: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18257: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18258: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18259: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18260: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18261: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18262: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18263: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18264: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18265: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18266: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18267: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18268: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18269: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18270: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18271: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18272: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18273: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18274: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18275: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18276: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18277: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18278: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18279: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18280: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18281: 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"`'
18282: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18283: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18284: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18285: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18286: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18287: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18288: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18289: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18290: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18291: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18292: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18293: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18294: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18295: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18296: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18297: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18298: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18299: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18300: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18301: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18302: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18303: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18304: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18305: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18306: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18307: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18308: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18309: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18310: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18311: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18312: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18313: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18314: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18315: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18316: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18317: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18318: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18319: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18320: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18321: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18322: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18323: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18324: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18325: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18326: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18327: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18328: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18329: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18330: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18331: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18332: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18333: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18334: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18335: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18336: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18337: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18338: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18339: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18340: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18341: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18342: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18343: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18344: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18345: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18346: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18347: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18348: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18349: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18350: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18351: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18352: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18353: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18354: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18355: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18356: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18357: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18358: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18359: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18360: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18361: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18362: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18363: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18364: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18365: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18366: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18367: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18368: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18369: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18370: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18371: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18372: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18373: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18374: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18375: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18376: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18377: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18378: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18379: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18380: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18381: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18382: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18383: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18384: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18385: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18386: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18387: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18388: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18389: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18390: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18391: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18392: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18393: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18394: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18395: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18396: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18397: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18398: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18399: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18400: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18401: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18402: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18403: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18404: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18405: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18406: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18407: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18408: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18409:
18410: LTCC='$LTCC'
18411: LTCFLAGS='$LTCFLAGS'
18412: compiler='$compiler_DEFAULT'
18413:
18414: # A function that is used when there is no print builtin or printf.
18415: func_fallback_echo ()
18416: {
18417: eval 'cat <<_LTECHO_EOF
18418: \$1
18419: _LTECHO_EOF'
18420: }
18421:
18422: # Quote evaled strings.
1.36 moko 18423: for var in AS \
18424: DLLTOOL \
18425: OBJDUMP \
18426: SHELL \
1.35 moko 18427: ECHO \
18428: PATH_SEPARATOR \
18429: SED \
18430: GREP \
18431: EGREP \
18432: FGREP \
18433: LD \
18434: NM \
18435: LN_S \
18436: lt_SP2NL \
18437: lt_NL2SP \
18438: reload_flag \
18439: deplibs_check_method \
18440: file_magic_cmd \
18441: file_magic_glob \
18442: want_nocaseglob \
18443: sharedlib_from_linklib_cmd \
18444: AR \
18445: AR_FLAGS \
18446: archiver_list_spec \
18447: STRIP \
18448: RANLIB \
18449: CC \
18450: CFLAGS \
18451: compiler \
18452: lt_cv_sys_global_symbol_pipe \
18453: lt_cv_sys_global_symbol_to_cdecl \
18454: lt_cv_sys_global_symbol_to_c_name_address \
18455: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18456: nm_file_list_spec \
18457: lt_prog_compiler_no_builtin_flag \
18458: lt_prog_compiler_pic \
18459: lt_prog_compiler_wl \
18460: lt_prog_compiler_static \
18461: lt_cv_prog_compiler_c_o \
18462: need_locks \
18463: MANIFEST_TOOL \
18464: DSYMUTIL \
18465: NMEDIT \
18466: LIPO \
18467: OTOOL \
18468: OTOOL64 \
18469: shrext_cmds \
18470: export_dynamic_flag_spec \
18471: whole_archive_flag_spec \
18472: compiler_needs_object \
18473: with_gnu_ld \
18474: allow_undefined_flag \
18475: no_undefined_flag \
18476: hardcode_libdir_flag_spec \
18477: hardcode_libdir_separator \
18478: exclude_expsyms \
18479: include_expsyms \
18480: file_list_spec \
18481: variables_saved_for_relink \
18482: libname_spec \
18483: library_names_spec \
18484: soname_spec \
18485: install_override_mode \
18486: finish_eval \
18487: old_striplib \
18488: striplib \
18489: compiler_lib_search_dirs \
18490: predep_objects \
18491: postdep_objects \
18492: predeps \
18493: postdeps \
18494: compiler_lib_search_path \
18495: LD_CXX \
18496: reload_flag_CXX \
18497: compiler_CXX \
18498: lt_prog_compiler_no_builtin_flag_CXX \
18499: lt_prog_compiler_pic_CXX \
18500: lt_prog_compiler_wl_CXX \
18501: lt_prog_compiler_static_CXX \
18502: lt_cv_prog_compiler_c_o_CXX \
18503: export_dynamic_flag_spec_CXX \
18504: whole_archive_flag_spec_CXX \
18505: compiler_needs_object_CXX \
18506: with_gnu_ld_CXX \
18507: allow_undefined_flag_CXX \
18508: no_undefined_flag_CXX \
18509: hardcode_libdir_flag_spec_CXX \
18510: hardcode_libdir_separator_CXX \
18511: exclude_expsyms_CXX \
18512: include_expsyms_CXX \
18513: file_list_spec_CXX \
18514: compiler_lib_search_dirs_CXX \
18515: predep_objects_CXX \
18516: postdep_objects_CXX \
18517: predeps_CXX \
18518: postdeps_CXX \
18519: compiler_lib_search_path_CXX; do
18520: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18521: *[\\\\\\\`\\"\\\$]*)
18522: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18523: ;;
18524: *)
18525: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18526: ;;
18527: esac
18528: done
18529:
18530: # Double-quote double-evaled strings.
18531: for var in reload_cmds \
18532: old_postinstall_cmds \
18533: old_postuninstall_cmds \
18534: old_archive_cmds \
18535: extract_expsyms_cmds \
18536: old_archive_from_new_cmds \
18537: old_archive_from_expsyms_cmds \
18538: archive_cmds \
18539: archive_expsym_cmds \
18540: module_cmds \
18541: module_expsym_cmds \
18542: export_symbols_cmds \
18543: prelink_cmds \
18544: postlink_cmds \
18545: postinstall_cmds \
18546: postuninstall_cmds \
18547: finish_cmds \
18548: sys_lib_search_path_spec \
18549: sys_lib_dlsearch_path_spec \
18550: reload_cmds_CXX \
18551: old_archive_cmds_CXX \
18552: old_archive_from_new_cmds_CXX \
18553: old_archive_from_expsyms_cmds_CXX \
18554: archive_cmds_CXX \
18555: archive_expsym_cmds_CXX \
18556: module_cmds_CXX \
18557: module_expsym_cmds_CXX \
18558: export_symbols_cmds_CXX \
18559: prelink_cmds_CXX \
18560: postlink_cmds_CXX; do
18561: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18562: *[\\\\\\\`\\"\\\$]*)
18563: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18564: ;;
18565: *)
18566: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18567: ;;
18568: esac
18569: done
18570:
18571: ac_aux_dir='$ac_aux_dir'
18572: xsi_shell='$xsi_shell'
18573: lt_shell_append='$lt_shell_append'
18574:
18575: # See if we are running on zsh, and set the options which allow our
18576: # commands through without removal of \ escapes INIT.
18577: if test -n "\${ZSH_VERSION+set}" ; then
18578: setopt NO_GLOB_SUBST
18579: fi
18580:
18581:
18582: PACKAGE='$PACKAGE'
18583: VERSION='$VERSION'
18584: TIMESTAMP='$TIMESTAMP'
18585: RM='$RM'
18586: ofile='$ofile'
18587:
18588:
18589:
18590:
18591:
18592:
18593: _ACEOF
18594:
18595:
18596:
18597: cat >>$CONFIG_STATUS <<\_ACEOF
18598: for ac_config_target in $ac_config_targets
18599: do
18600: case "$ac_config_target" in
18601: # Handling of arguments.
18602: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18603: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18604: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18605: "config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
18606: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18607: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18608: { (exit 1); exit 1; }; };;
18609: esac
18610: done
18611:
18612: # If the user did not use the arguments to specify the items to instantiate,
18613: # then the envvar interface is used. Set only those that are not.
18614: # We use the long form for the default assignment because of an extremely
18615: # bizarre bug on SunOS 4.1.3.
18616: if $ac_need_defaults; then
18617: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18618: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18619: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18620: fi
18621:
18622: # Have a temporary directory for convenience. Make it in the build tree
18623: # simply because there is no reason to put it here, and in addition,
18624: # creating and moving files from /tmp can sometimes cause problems.
18625: # Create a temporary directory, and hook for its removal unless debugging.
18626: $debug ||
18627: {
18628: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18629: trap '{ (exit 1); exit 1; }' 1 2 13 15
18630: }
18631:
18632: # Create a (secure) tmp directory for tmp files.
18633:
18634: {
18635: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18636: test -n "$tmp" && test -d "$tmp"
18637: } ||
18638: {
18639: tmp=./confstat$$-$RANDOM
18640: (umask 077 && mkdir $tmp)
18641: } ||
18642: {
18643: echo "$me: cannot create a temporary directory in ." >&2
18644: { (exit 1); exit 1; }
18645: }
18646:
18647: _ACEOF
18648:
18649: cat >>$CONFIG_STATUS <<_ACEOF
18650:
18651: #
18652: # CONFIG_FILES section.
18653: #
18654:
18655: # No need to generate the scripts if there are no CONFIG_FILES.
18656: # This happens for instance when ./config.status config.h
18657: if test -n "\$CONFIG_FILES"; then
18658: # Protect against being on the right side of a sed subst in config.status.
18659: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18660: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18661: s,@SHELL@,$SHELL,;t t
18662: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18663: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18664: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18665: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18666: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18667: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18668: s,@exec_prefix@,$exec_prefix,;t t
18669: s,@prefix@,$prefix,;t t
18670: s,@program_transform_name@,$program_transform_name,;t t
18671: s,@bindir@,$bindir,;t t
18672: s,@sbindir@,$sbindir,;t t
18673: s,@libexecdir@,$libexecdir,;t t
18674: s,@datadir@,$datadir,;t t
18675: s,@sysconfdir@,$sysconfdir,;t t
18676: s,@sharedstatedir@,$sharedstatedir,;t t
18677: s,@localstatedir@,$localstatedir,;t t
18678: s,@libdir@,$libdir,;t t
18679: s,@includedir@,$includedir,;t t
18680: s,@oldincludedir@,$oldincludedir,;t t
18681: s,@infodir@,$infodir,;t t
18682: s,@mandir@,$mandir,;t t
18683: s,@build_alias@,$build_alias,;t t
18684: s,@host_alias@,$host_alias,;t t
18685: s,@target_alias@,$target_alias,;t t
18686: s,@DEFS@,$DEFS,;t t
18687: s,@ECHO_C@,$ECHO_C,;t t
18688: s,@ECHO_N@,$ECHO_N,;t t
18689: s,@ECHO_T@,$ECHO_T,;t t
18690: s,@LIBS@,$LIBS,;t t
18691: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18692: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18693: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18694: s,@CYGPATH_W@,$CYGPATH_W,;t t
18695: s,@PACKAGE@,$PACKAGE,;t t
18696: s,@VERSION@,$VERSION,;t t
18697: s,@ACLOCAL@,$ACLOCAL,;t t
18698: s,@AUTOCONF@,$AUTOCONF,;t t
18699: s,@AUTOMAKE@,$AUTOMAKE,;t t
18700: s,@AUTOHEADER@,$AUTOHEADER,;t t
18701: s,@MAKEINFO@,$MAKEINFO,;t t
18702: s,@install_sh@,$install_sh,;t t
18703: s,@STRIP@,$STRIP,;t t
18704: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18705: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18706: s,@mkdir_p@,$mkdir_p,;t t
18707: s,@AWK@,$AWK,;t t
18708: s,@SET_MAKE@,$SET_MAKE,;t t
18709: s,@am__leading_dot@,$am__leading_dot,;t t
18710: s,@AMTAR@,$AMTAR,;t t
18711: s,@am__tar@,$am__tar,;t t
18712: s,@am__untar@,$am__untar,;t t
18713: s,@MYSQL_INC@,$MYSQL_INC,;t t
18714: s,@LDFLAGS@,$LDFLAGS,;t t
18715: s,@CXX@,$CXX,;t t
18716: s,@CXXFLAGS@,$CXXFLAGS,;t t
18717: s,@CPPFLAGS@,$CPPFLAGS,;t t
18718: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18719: s,@EXEEXT@,$EXEEXT,;t t
18720: s,@OBJEXT@,$OBJEXT,;t t
18721: s,@DEPDIR@,$DEPDIR,;t t
18722: s,@am__include@,$am__include,;t t
18723: s,@am__quote@,$am__quote,;t t
18724: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18725: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18726: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18727: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18728: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18729: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18730: s,@CC@,$CC,;t t
18731: s,@CFLAGS@,$CFLAGS,;t t
18732: s,@ac_ct_CC@,$ac_ct_CC,;t t
18733: s,@CCDEPMODE@,$CCDEPMODE,;t t
18734: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18735: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.36 moko 18736: s,@AS@,$AS,;t t
18737: s,@ac_ct_AS@,$ac_ct_AS,;t t
18738: s,@DLLTOOL@,$DLLTOOL,;t t
18739: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
18740: s,@OBJDUMP@,$OBJDUMP,;t t
18741: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1.35 moko 18742: s,@LIBTOOL@,$LIBTOOL,;t t
18743: s,@build@,$build,;t t
18744: s,@build_cpu@,$build_cpu,;t t
18745: s,@build_vendor@,$build_vendor,;t t
18746: s,@build_os@,$build_os,;t t
18747: s,@host@,$host,;t t
18748: s,@host_cpu@,$host_cpu,;t t
18749: s,@host_vendor@,$host_vendor,;t t
18750: s,@host_os@,$host_os,;t t
18751: s,@SED@,$SED,;t t
18752: s,@EGREP@,$EGREP,;t t
18753: s,@FGREP@,$FGREP,;t t
18754: s,@GREP@,$GREP,;t t
18755: s,@LD@,$LD,;t t
18756: s,@DUMPBIN@,$DUMPBIN,;t t
18757: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
18758: s,@NM@,$NM,;t t
18759: s,@LN_S@,$LN_S,;t t
18760: s,@AR@,$AR,;t t
18761: s,@ac_ct_AR@,$ac_ct_AR,;t t
18762: s,@RANLIB@,$RANLIB,;t t
18763: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18764: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
18765: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
18766: s,@DSYMUTIL@,$DSYMUTIL,;t t
18767: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
18768: s,@NMEDIT@,$NMEDIT,;t t
18769: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
18770: s,@LIPO@,$LIPO,;t t
18771: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
18772: s,@OTOOL@,$OTOOL,;t t
18773: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
18774: s,@OTOOL64@,$OTOOL64,;t t
18775: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
18776: s,@CPP@,$CPP,;t t
18777: s,@CXXCPP@,$CXXCPP,;t t
18778: s,@LIBLTDL@,$LIBLTDL,;t t
18779: s,@LTDLDEPS@,$LTDLDEPS,;t t
18780: s,@LTDLINCL@,$LTDLINCL,;t t
18781: s,@INCLTDL@,$INCLTDL,;t t
18782: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
18783: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
18784: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
18785: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
18786: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
1.36 moko 18787: s,@LIBADD_DL@,$LIBADD_DL,;t t
1.35 moko 18788: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
18789: s,@ARGZ_H@,$ARGZ_H,;t t
18790: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
18791: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
18792: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
18793: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
18794: s,@subdirs@,$subdirs,;t t
18795: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
18796: s,@LTDLOPEN@,$LTDLOPEN,;t t
18797: s,@LIBOBJS@,$LIBOBJS,;t t
18798: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18799: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
18800: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
18801: CEOF
18802:
18803: _ACEOF
18804:
18805: cat >>$CONFIG_STATUS <<\_ACEOF
18806: # Split the substitutions into bite-sized pieces for seds with
18807: # small command number limits, like on Digital OSF/1 and HP-UX.
18808: ac_max_sed_lines=48
18809: ac_sed_frag=1 # Number of current file.
18810: ac_beg=1 # First line for current file.
18811: ac_end=$ac_max_sed_lines # Line after last line for current file.
18812: ac_more_lines=:
18813: ac_sed_cmds=
18814: while $ac_more_lines; do
18815: if test $ac_beg -gt 1; then
18816: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18817: else
18818: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18819: fi
18820: if test ! -s $tmp/subs.frag; then
18821: ac_more_lines=false
18822: else
18823: # The purpose of the label and of the branching condition is to
18824: # speed up the sed processing (if there are no `@' at all, there
18825: # is no need to browse any of the substitutions).
18826: # These are the two extra sed commands mentioned above.
18827: (echo ':t
18828: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18829: if test -z "$ac_sed_cmds"; then
18830: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18831: else
18832: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18833: fi
18834: ac_sed_frag=`expr $ac_sed_frag + 1`
18835: ac_beg=$ac_end
18836: ac_end=`expr $ac_end + $ac_max_sed_lines`
18837: fi
18838: done
18839: if test -z "$ac_sed_cmds"; then
18840: ac_sed_cmds=cat
18841: fi
18842: fi # test -n "$CONFIG_FILES"
18843:
18844: _ACEOF
18845: cat >>$CONFIG_STATUS <<\_ACEOF
18846: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18847: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18848: case $ac_file in
18849: - | *:- | *:-:* ) # input from stdin
18850: cat >$tmp/stdin
18851: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18852: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18853: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18854: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18855: * ) ac_file_in=$ac_file.in ;;
18856: esac
18857:
18858: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18859: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18860: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18861: X"$ac_file" : 'X\(//\)[^/]' \| \
18862: X"$ac_file" : 'X\(//\)$' \| \
18863: X"$ac_file" : 'X\(/\)' \| \
18864: . : '\(.\)' 2>/dev/null ||
18865: echo X"$ac_file" |
18866: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18867: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18868: /^X\(\/\/\)$/{ s//\1/; q; }
18869: /^X\(\/\).*/{ s//\1/; q; }
18870: s/.*/./; q'`
18871: { if $as_mkdir_p; then
18872: mkdir -p "$ac_dir"
18873: else
18874: as_dir="$ac_dir"
18875: as_dirs=
18876: while test ! -d "$as_dir"; do
18877: as_dirs="$as_dir $as_dirs"
18878: as_dir=`(dirname "$as_dir") 2>/dev/null ||
18879: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18880: X"$as_dir" : 'X\(//\)[^/]' \| \
18881: X"$as_dir" : 'X\(//\)$' \| \
18882: X"$as_dir" : 'X\(/\)' \| \
18883: . : '\(.\)' 2>/dev/null ||
18884: echo X"$as_dir" |
18885: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18886: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18887: /^X\(\/\/\)$/{ s//\1/; q; }
18888: /^X\(\/\).*/{ s//\1/; q; }
18889: s/.*/./; q'`
18890: done
18891: test ! -n "$as_dirs" || mkdir $as_dirs
18892: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18893: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18894: { (exit 1); exit 1; }; }; }
18895:
18896: ac_builddir=.
18897:
18898: if test "$ac_dir" != .; then
18899: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18900: # A "../" for each directory in $ac_dir_suffix.
18901: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18902: else
18903: ac_dir_suffix= ac_top_builddir=
18904: fi
18905:
18906: case $srcdir in
18907: .) # No --srcdir option. We are building in place.
18908: ac_srcdir=.
18909: if test -z "$ac_top_builddir"; then
18910: ac_top_srcdir=.
18911: else
18912: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18913: fi ;;
18914: [\\/]* | ?:[\\/]* ) # Absolute path.
18915: ac_srcdir=$srcdir$ac_dir_suffix;
18916: ac_top_srcdir=$srcdir ;;
18917: *) # Relative path.
18918: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18919: ac_top_srcdir=$ac_top_builddir$srcdir ;;
18920: esac
18921:
18922: # Do not use `cd foo && pwd` to compute absolute paths, because
18923: # the directories may not exist.
18924: case `pwd` in
18925: .) ac_abs_builddir="$ac_dir";;
18926: *)
18927: case "$ac_dir" in
18928: .) ac_abs_builddir=`pwd`;;
18929: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18930: *) ac_abs_builddir=`pwd`/"$ac_dir";;
18931: esac;;
18932: esac
18933: case $ac_abs_builddir in
18934: .) ac_abs_top_builddir=${ac_top_builddir}.;;
18935: *)
18936: case ${ac_top_builddir}. in
18937: .) ac_abs_top_builddir=$ac_abs_builddir;;
18938: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18939: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18940: esac;;
18941: esac
18942: case $ac_abs_builddir in
18943: .) ac_abs_srcdir=$ac_srcdir;;
18944: *)
18945: case $ac_srcdir in
18946: .) ac_abs_srcdir=$ac_abs_builddir;;
18947: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18948: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18949: esac;;
18950: esac
18951: case $ac_abs_builddir in
18952: .) ac_abs_top_srcdir=$ac_top_srcdir;;
18953: *)
18954: case $ac_top_srcdir in
18955: .) ac_abs_top_srcdir=$ac_abs_builddir;;
18956: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18957: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18958: esac;;
18959: esac
18960:
18961:
18962: case $INSTALL in
18963: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18964: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18965: esac
18966:
18967: if test x"$ac_file" != x-; then
18968: { echo "$as_me:$LINENO: creating $ac_file" >&5
18969: echo "$as_me: creating $ac_file" >&6;}
18970: rm -f "$ac_file"
18971: fi
18972: # Let's still pretend it is `configure' which instantiates (i.e., don't
18973: # use $as_me), people would be surprised to read:
18974: # /* config.h. Generated by config.status. */
18975: if test x"$ac_file" = x-; then
18976: configure_input=
18977: else
18978: configure_input="$ac_file. "
18979: fi
18980: configure_input=$configure_input"Generated from `echo $ac_file_in |
18981: sed 's,.*/,,'` by configure."
18982:
18983: # First look for the input files in the build tree, otherwise in the
18984: # src tree.
18985: ac_file_inputs=`IFS=:
18986: for f in $ac_file_in; do
18987: case $f in
18988: -) echo $tmp/stdin ;;
18989: [\\/$]*)
18990: # Absolute (can't be DOS-style, as IFS=:)
18991: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18992: echo "$as_me: error: cannot find input file: $f" >&2;}
18993: { (exit 1); exit 1; }; }
18994: echo "$f";;
18995: *) # Relative
18996: if test -f "$f"; then
18997: # Build tree
18998: echo "$f"
18999: elif test -f "$srcdir/$f"; then
19000: # Source tree
19001: echo "$srcdir/$f"
19002: else
19003: # /dev/null tree
19004: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19005: echo "$as_me: error: cannot find input file: $f" >&2;}
19006: { (exit 1); exit 1; }; }
19007: fi;;
19008: esac
19009: done` || { (exit 1); exit 1; }
19010: _ACEOF
19011: cat >>$CONFIG_STATUS <<_ACEOF
19012: sed "$ac_vpsub
19013: $extrasub
19014: _ACEOF
19015: cat >>$CONFIG_STATUS <<\_ACEOF
19016: :t
19017: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19018: s,@configure_input@,$configure_input,;t t
19019: s,@srcdir@,$ac_srcdir,;t t
19020: s,@abs_srcdir@,$ac_abs_srcdir,;t t
19021: s,@top_srcdir@,$ac_top_srcdir,;t t
19022: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19023: s,@builddir@,$ac_builddir,;t t
19024: s,@abs_builddir@,$ac_abs_builddir,;t t
19025: s,@top_builddir@,$ac_top_builddir,;t t
19026: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19027: s,@INSTALL@,$ac_INSTALL,;t t
19028: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19029: rm -f $tmp/stdin
19030: if test x"$ac_file" != x-; then
19031: mv $tmp/out $ac_file
19032: else
19033: cat $tmp/out
19034: rm -f $tmp/out
19035: fi
19036:
19037: done
19038: _ACEOF
19039: cat >>$CONFIG_STATUS <<\_ACEOF
19040:
19041: #
19042: # CONFIG_HEADER section.
19043: #
19044:
19045: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19046: # NAME is the cpp macro being defined and VALUE is the value it is being given.
19047: #
19048: # ac_d sets the value in "#define NAME VALUE" lines.
19049: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19050: ac_dB='[ ].*$,\1#\2'
19051: ac_dC=' '
19052: ac_dD=',;t'
19053: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19054: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19055: ac_uB='$,\1#\2define\3'
19056: ac_uC=' '
19057: ac_uD=',;t'
19058:
19059: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19060: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19061: case $ac_file in
19062: - | *:- | *:-:* ) # input from stdin
19063: cat >$tmp/stdin
19064: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19065: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19066: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19067: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19068: * ) ac_file_in=$ac_file.in ;;
19069: esac
19070:
19071: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19072: echo "$as_me: creating $ac_file" >&6;}
19073:
19074: # First look for the input files in the build tree, otherwise in the
19075: # src tree.
19076: ac_file_inputs=`IFS=:
19077: for f in $ac_file_in; do
19078: case $f in
19079: -) echo $tmp/stdin ;;
19080: [\\/$]*)
19081: # Absolute (can't be DOS-style, as IFS=:)
19082: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19083: echo "$as_me: error: cannot find input file: $f" >&2;}
19084: { (exit 1); exit 1; }; }
19085: # Do quote $f, to prevent DOS paths from being IFS'd.
19086: echo "$f";;
19087: *) # Relative
19088: if test -f "$f"; then
19089: # Build tree
19090: echo "$f"
19091: elif test -f "$srcdir/$f"; then
19092: # Source tree
19093: echo "$srcdir/$f"
19094: else
19095: # /dev/null tree
19096: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19097: echo "$as_me: error: cannot find input file: $f" >&2;}
19098: { (exit 1); exit 1; }; }
19099: fi;;
19100: esac
19101: done` || { (exit 1); exit 1; }
19102: # Remove the trailing spaces.
19103: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19104:
19105: _ACEOF
19106:
19107: # Transform confdefs.h into two sed scripts, `conftest.defines' and
19108: # `conftest.undefs', that substitutes the proper values into
19109: # config.h.in to produce config.h. The first handles `#define'
19110: # templates, and the second `#undef' templates.
19111: # And first: Protect against being on the right side of a sed subst in
19112: # config.status. Protect against being in an unquoted here document
19113: # in config.status.
19114: rm -f conftest.defines conftest.undefs
19115: # Using a here document instead of a string reduces the quoting nightmare.
19116: # Putting comments in sed scripts is not portable.
19117: #
19118: # `end' is used to avoid that the second main sed command (meant for
19119: # 0-ary CPP macros) applies to n-ary macro definitions.
19120: # See the Autoconf documentation for `clear'.
19121: cat >confdef2sed.sed <<\_ACEOF
19122: s/[\\&,]/\\&/g
19123: s,[\\$`],\\&,g
19124: t clear
19125: : clear
19126: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19127: t end
19128: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19129: : end
19130: _ACEOF
19131: # If some macros were called several times there might be several times
19132: # the same #defines, which is useless. Nevertheless, we may not want to
19133: # sort them, since we want the *last* AC-DEFINE to be honored.
19134: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19135: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19136: rm -f confdef2sed.sed
19137:
19138: # This sed command replaces #undef with comments. This is necessary, for
19139: # example, in the case of _POSIX_SOURCE, which is predefined and required
19140: # on some systems where configure will not decide to define it.
19141: cat >>conftest.undefs <<\_ACEOF
19142: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19143: _ACEOF
19144:
19145: # Break up conftest.defines because some shells have a limit on the size
19146: # of here documents, and old seds have small limits too (100 cmds).
19147: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19148: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19149: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19150: echo ' :' >>$CONFIG_STATUS
19151: rm -f conftest.tail
19152: while grep . conftest.defines >/dev/null
19153: do
19154: # Write a limited-size here document to $tmp/defines.sed.
19155: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19156: # Speed up: don't consider the non `#define' lines.
19157: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19158: # Work around the forget-to-reset-the-flag bug.
19159: echo 't clr' >>$CONFIG_STATUS
19160: echo ': clr' >>$CONFIG_STATUS
19161: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19162: echo 'CEOF
19163: sed -f $tmp/defines.sed $tmp/in >$tmp/out
19164: rm -f $tmp/in
19165: mv $tmp/out $tmp/in
19166: ' >>$CONFIG_STATUS
19167: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19168: rm -f conftest.defines
19169: mv conftest.tail conftest.defines
19170: done
19171: rm -f conftest.defines
19172: echo ' fi # grep' >>$CONFIG_STATUS
19173: echo >>$CONFIG_STATUS
19174:
19175: # Break up conftest.undefs because some shells have a limit on the size
19176: # of here documents, and old seds have small limits too (100 cmds).
19177: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19178: rm -f conftest.tail
19179: while grep . conftest.undefs >/dev/null
19180: do
19181: # Write a limited-size here document to $tmp/undefs.sed.
19182: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19183: # Speed up: don't consider the non `#undef'
19184: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19185: # Work around the forget-to-reset-the-flag bug.
19186: echo 't clr' >>$CONFIG_STATUS
19187: echo ': clr' >>$CONFIG_STATUS
19188: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19189: echo 'CEOF
19190: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19191: rm -f $tmp/in
19192: mv $tmp/out $tmp/in
19193: ' >>$CONFIG_STATUS
19194: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19195: rm -f conftest.undefs
19196: mv conftest.tail conftest.undefs
19197: done
19198: rm -f conftest.undefs
19199:
19200: cat >>$CONFIG_STATUS <<\_ACEOF
19201: # Let's still pretend it is `configure' which instantiates (i.e., don't
19202: # use $as_me), people would be surprised to read:
19203: # /* config.h. Generated by config.status. */
19204: if test x"$ac_file" = x-; then
19205: echo "/* Generated by configure. */" >$tmp/config.h
19206: else
19207: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19208: fi
19209: cat $tmp/in >>$tmp/config.h
19210: rm -f $tmp/in
19211: if test x"$ac_file" != x-; then
19212: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19213: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19214: echo "$as_me: $ac_file is unchanged" >&6;}
19215: else
19216: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19217: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19218: X"$ac_file" : 'X\(//\)[^/]' \| \
19219: X"$ac_file" : 'X\(//\)$' \| \
19220: X"$ac_file" : 'X\(/\)' \| \
19221: . : '\(.\)' 2>/dev/null ||
19222: echo X"$ac_file" |
19223: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19224: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19225: /^X\(\/\/\)$/{ s//\1/; q; }
19226: /^X\(\/\).*/{ s//\1/; q; }
19227: s/.*/./; q'`
19228: { if $as_mkdir_p; then
19229: mkdir -p "$ac_dir"
19230: else
19231: as_dir="$ac_dir"
19232: as_dirs=
19233: while test ! -d "$as_dir"; do
19234: as_dirs="$as_dir $as_dirs"
19235: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19236: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19237: X"$as_dir" : 'X\(//\)[^/]' \| \
19238: X"$as_dir" : 'X\(//\)$' \| \
19239: X"$as_dir" : 'X\(/\)' \| \
19240: . : '\(.\)' 2>/dev/null ||
19241: echo X"$as_dir" |
19242: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19243: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19244: /^X\(\/\/\)$/{ s//\1/; q; }
19245: /^X\(\/\).*/{ s//\1/; q; }
19246: s/.*/./; q'`
19247: done
19248: test ! -n "$as_dirs" || mkdir $as_dirs
19249: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19250: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19251: { (exit 1); exit 1; }; }; }
19252:
19253: rm -f $ac_file
19254: mv $tmp/config.h $ac_file
19255: fi
19256: else
19257: cat $tmp/config.h
19258: rm -f $tmp/config.h
19259: fi
19260: # Compute $ac_file's index in $config_headers.
19261: _am_stamp_count=1
19262: for _am_header in $config_headers :; do
19263: case $_am_header in
19264: $ac_file | $ac_file:* )
19265: break ;;
19266: * )
19267: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19268: esac
19269: done
19270: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19271: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19272: X$ac_file : 'X\(//\)[^/]' \| \
19273: X$ac_file : 'X\(//\)$' \| \
19274: X$ac_file : 'X\(/\)' \| \
19275: . : '\(.\)' 2>/dev/null ||
19276: echo X$ac_file |
19277: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19278: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19279: /^X\(\/\/\)$/{ s//\1/; q; }
19280: /^X\(\/\).*/{ s//\1/; q; }
19281: s/.*/./; q'`/stamp-h$_am_stamp_count
19282: done
19283: _ACEOF
19284: cat >>$CONFIG_STATUS <<\_ACEOF
19285:
19286: #
19287: # CONFIG_COMMANDS section.
19288: #
19289: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19290: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19291: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19292: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19293: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19294: X"$ac_dest" : 'X\(//\)[^/]' \| \
19295: X"$ac_dest" : 'X\(//\)$' \| \
19296: X"$ac_dest" : 'X\(/\)' \| \
19297: . : '\(.\)' 2>/dev/null ||
19298: echo X"$ac_dest" |
19299: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19300: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19301: /^X\(\/\/\)$/{ s//\1/; q; }
19302: /^X\(\/\).*/{ s//\1/; q; }
19303: s/.*/./; q'`
19304: { if $as_mkdir_p; then
19305: mkdir -p "$ac_dir"
19306: else
19307: as_dir="$ac_dir"
19308: as_dirs=
19309: while test ! -d "$as_dir"; do
19310: as_dirs="$as_dir $as_dirs"
19311: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19312: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19313: X"$as_dir" : 'X\(//\)[^/]' \| \
19314: X"$as_dir" : 'X\(//\)$' \| \
19315: X"$as_dir" : 'X\(/\)' \| \
19316: . : '\(.\)' 2>/dev/null ||
19317: echo X"$as_dir" |
19318: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19319: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19320: /^X\(\/\/\)$/{ s//\1/; q; }
19321: /^X\(\/\).*/{ s//\1/; q; }
19322: s/.*/./; q'`
19323: done
19324: test ! -n "$as_dirs" || mkdir $as_dirs
19325: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19326: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19327: { (exit 1); exit 1; }; }; }
19328:
19329: ac_builddir=.
19330:
19331: if test "$ac_dir" != .; then
19332: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19333: # A "../" for each directory in $ac_dir_suffix.
19334: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19335: else
19336: ac_dir_suffix= ac_top_builddir=
19337: fi
19338:
19339: case $srcdir in
19340: .) # No --srcdir option. We are building in place.
19341: ac_srcdir=.
19342: if test -z "$ac_top_builddir"; then
19343: ac_top_srcdir=.
19344: else
19345: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19346: fi ;;
19347: [\\/]* | ?:[\\/]* ) # Absolute path.
19348: ac_srcdir=$srcdir$ac_dir_suffix;
19349: ac_top_srcdir=$srcdir ;;
19350: *) # Relative path.
19351: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19352: ac_top_srcdir=$ac_top_builddir$srcdir ;;
19353: esac
19354:
19355: # Do not use `cd foo && pwd` to compute absolute paths, because
19356: # the directories may not exist.
19357: case `pwd` in
19358: .) ac_abs_builddir="$ac_dir";;
19359: *)
19360: case "$ac_dir" in
19361: .) ac_abs_builddir=`pwd`;;
19362: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19363: *) ac_abs_builddir=`pwd`/"$ac_dir";;
19364: esac;;
19365: esac
19366: case $ac_abs_builddir in
19367: .) ac_abs_top_builddir=${ac_top_builddir}.;;
19368: *)
19369: case ${ac_top_builddir}. in
19370: .) ac_abs_top_builddir=$ac_abs_builddir;;
19371: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19372: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19373: esac;;
19374: esac
19375: case $ac_abs_builddir in
19376: .) ac_abs_srcdir=$ac_srcdir;;
19377: *)
19378: case $ac_srcdir in
19379: .) ac_abs_srcdir=$ac_abs_builddir;;
19380: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19381: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19382: esac;;
19383: esac
19384: case $ac_abs_builddir in
19385: .) ac_abs_top_srcdir=$ac_top_srcdir;;
19386: *)
19387: case $ac_top_srcdir in
19388: .) ac_abs_top_srcdir=$ac_abs_builddir;;
19389: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19390: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19391: esac;;
19392: esac
19393:
19394:
19395: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19396: echo "$as_me: executing $ac_dest commands" >&6;}
19397: case $ac_dest in
19398: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19399: # Strip MF so we end up with the name of the file.
19400: mf=`echo "$mf" | sed -e 's/:.*$//'`
19401: # Check whether this is an Automake generated Makefile or not.
19402: # We used to match only the files named `Makefile.in', but
19403: # some people rename them; so instead we look at the file content.
19404: # Grep'ing the first line is not enough: some people post-process
19405: # each Makefile.in and add a new line on top of each file to say so.
19406: # So let's grep whole file.
19407: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19408: dirpart=`(dirname "$mf") 2>/dev/null ||
19409: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19410: X"$mf" : 'X\(//\)[^/]' \| \
19411: X"$mf" : 'X\(//\)$' \| \
19412: X"$mf" : 'X\(/\)' \| \
19413: . : '\(.\)' 2>/dev/null ||
19414: echo X"$mf" |
19415: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19416: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19417: /^X\(\/\/\)$/{ s//\1/; q; }
19418: /^X\(\/\).*/{ s//\1/; q; }
19419: s/.*/./; q'`
19420: else
19421: continue
19422: fi
19423: # Extract the definition of DEPDIR, am__include, and am__quote
19424: # from the Makefile without running `make'.
19425: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19426: test -z "$DEPDIR" && continue
19427: am__include=`sed -n 's/^am__include = //p' < "$mf"`
19428: test -z "am__include" && continue
19429: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19430: # When using ansi2knr, U may be empty or an underscore; expand it
19431: U=`sed -n 's/^U = //p' < "$mf"`
19432: # Find all dependency output files, they are included files with
19433: # $(DEPDIR) in their names. We invoke sed twice because it is the
19434: # simplest approach to changing $(DEPDIR) to its actual value in the
19435: # expansion.
19436: for file in `sed -n "
19437: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19438: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19439: # Make sure the directory exists.
19440: test -f "$dirpart/$file" && continue
19441: fdir=`(dirname "$file") 2>/dev/null ||
19442: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19443: X"$file" : 'X\(//\)[^/]' \| \
19444: X"$file" : 'X\(//\)$' \| \
19445: X"$file" : 'X\(/\)' \| \
19446: . : '\(.\)' 2>/dev/null ||
19447: echo X"$file" |
19448: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19449: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19450: /^X\(\/\/\)$/{ s//\1/; q; }
19451: /^X\(\/\).*/{ s//\1/; q; }
19452: s/.*/./; q'`
19453: { if $as_mkdir_p; then
19454: mkdir -p $dirpart/$fdir
19455: else
19456: as_dir=$dirpart/$fdir
19457: as_dirs=
19458: while test ! -d "$as_dir"; do
19459: as_dirs="$as_dir $as_dirs"
19460: as_dir=`(dirname "$as_dir") 2>/dev/null ||
19461: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19462: X"$as_dir" : 'X\(//\)[^/]' \| \
19463: X"$as_dir" : 'X\(//\)$' \| \
19464: X"$as_dir" : 'X\(/\)' \| \
19465: . : '\(.\)' 2>/dev/null ||
19466: echo X"$as_dir" |
19467: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19468: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19469: /^X\(\/\/\)$/{ s//\1/; q; }
19470: /^X\(\/\).*/{ s//\1/; q; }
19471: s/.*/./; q'`
19472: done
19473: test ! -n "$as_dirs" || mkdir $as_dirs
19474: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19475: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19476: { (exit 1); exit 1; }; }; }
19477:
19478: # echo "creating $dirpart/$file"
19479: echo '# dummy' > "$dirpart/$file"
19480: done
19481: done
19482: ;;
19483: libtool )
19484:
19485: # See if we are running on zsh, and set the options which allow our
19486: # commands through without removal of \ escapes.
19487: if test -n "${ZSH_VERSION+set}" ; then
19488: setopt NO_GLOB_SUBST
19489: fi
19490:
19491: cfgfile="${ofile}T"
19492: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19493: $RM "$cfgfile"
19494:
19495: cat <<_LT_EOF >> "$cfgfile"
19496: #! $SHELL
19497:
19498: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19499: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19500: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19501: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19502: #
19503: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19504: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19505: # Foundation, Inc.
19506: # Written by Gordon Matzigkeit, 1996
19507: #
19508: # This file is part of GNU Libtool.
19509: #
19510: # GNU Libtool is free software; you can redistribute it and/or
19511: # modify it under the terms of the GNU General Public License as
19512: # published by the Free Software Foundation; either version 2 of
19513: # the License, or (at your option) any later version.
19514: #
19515: # As a special exception to the GNU General Public License,
19516: # if you distribute this file as part of a program or library that
19517: # is built using GNU Libtool, you may include this file under the
19518: # same distribution terms that you use for the rest of that program.
19519: #
19520: # GNU Libtool is distributed in the hope that it will be useful,
19521: # but WITHOUT ANY WARRANTY; without even the implied warranty of
19522: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19523: # GNU General Public License for more details.
19524: #
19525: # You should have received a copy of the GNU General Public License
19526: # along with GNU Libtool; see the file COPYING. If not, a copy
19527: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19528: # obtained by writing to the Free Software Foundation, Inc.,
19529: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19530:
19531:
19532: # The names of the tagged configurations supported by this script.
19533: available_tags="CXX "
19534:
19535: # ### BEGIN LIBTOOL CONFIG
19536:
19537: # Which release of libtool.m4 was used?
19538: macro_version=$macro_version
19539: macro_revision=$macro_revision
19540:
1.36 moko 19541: # Assembler program.
19542: AS=$lt_AS
19543:
19544: # DLL creation program.
19545: DLLTOOL=$lt_DLLTOOL
19546:
19547: # Object dumper program.
19548: OBJDUMP=$lt_OBJDUMP
19549:
1.35 moko 19550: # Whether or not to build shared libraries.
19551: build_libtool_libs=$enable_shared
19552:
19553: # Whether or not to build static libraries.
19554: build_old_libs=$enable_static
19555:
19556: # What type of objects to build.
19557: pic_mode=$pic_mode
19558:
19559: # Whether or not to optimize for fast installation.
19560: fast_install=$enable_fast_install
19561:
19562: # Shell to use when invoking shell scripts.
19563: SHELL=$lt_SHELL
19564:
19565: # An echo program that protects backslashes.
19566: ECHO=$lt_ECHO
19567:
19568: # The PATH separator for the build system.
19569: PATH_SEPARATOR=$lt_PATH_SEPARATOR
19570:
19571: # The host system.
19572: host_alias=$host_alias
19573: host=$host
19574: host_os=$host_os
19575:
19576: # The build system.
19577: build_alias=$build_alias
19578: build=$build
19579: build_os=$build_os
19580:
19581: # A sed program that does not truncate output.
19582: SED=$lt_SED
19583:
19584: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19585: Xsed="\$SED -e 1s/^X//"
19586:
19587: # A grep program that handles long lines.
19588: GREP=$lt_GREP
19589:
19590: # An ERE matcher.
19591: EGREP=$lt_EGREP
19592:
19593: # A literal string matcher.
19594: FGREP=$lt_FGREP
19595:
19596: # A BSD- or MS-compatible name lister.
19597: NM=$lt_NM
19598:
19599: # Whether we need soft or hard links.
19600: LN_S=$lt_LN_S
19601:
19602: # What is the maximum length of a command?
19603: max_cmd_len=$max_cmd_len
19604:
19605: # Object file suffix (normally "o").
19606: objext=$ac_objext
19607:
19608: # Executable file suffix (normally "").
19609: exeext=$exeext
19610:
19611: # whether the shell understands "unset".
19612: lt_unset=$lt_unset
19613:
19614: # turn spaces into newlines.
19615: SP2NL=$lt_lt_SP2NL
19616:
19617: # turn newlines into spaces.
19618: NL2SP=$lt_lt_NL2SP
19619:
19620: # convert \$build file names to \$host format.
19621: to_host_file_cmd=$lt_cv_to_host_file_cmd
19622:
19623: # convert \$build files to toolchain format.
19624: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19625:
19626: # Method to check whether dependent libraries are shared objects.
19627: deplibs_check_method=$lt_deplibs_check_method
19628:
19629: # Command to use when deplibs_check_method = "file_magic".
19630: file_magic_cmd=$lt_file_magic_cmd
19631:
19632: # How to find potential files when deplibs_check_method = "file_magic".
19633: file_magic_glob=$lt_file_magic_glob
19634:
19635: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19636: want_nocaseglob=$lt_want_nocaseglob
19637:
19638: # Command to associate shared and link libraries.
19639: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19640:
19641: # The archiver.
19642: AR=$lt_AR
19643:
19644: # Flags to create an archive.
19645: AR_FLAGS=$lt_AR_FLAGS
19646:
19647: # How to feed a file listing to the archiver.
19648: archiver_list_spec=$lt_archiver_list_spec
19649:
19650: # A symbol stripping program.
19651: STRIP=$lt_STRIP
19652:
19653: # Commands used to install an old-style archive.
19654: RANLIB=$lt_RANLIB
19655: old_postinstall_cmds=$lt_old_postinstall_cmds
19656: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19657:
19658: # Whether to use a lock for old archive extraction.
19659: lock_old_archive_extraction=$lock_old_archive_extraction
19660:
19661: # A C compiler.
19662: LTCC=$lt_CC
19663:
19664: # LTCC compiler flags.
19665: LTCFLAGS=$lt_CFLAGS
19666:
19667: # Take the output of nm and produce a listing of raw symbols and C names.
19668: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19669:
19670: # Transform the output of nm in a proper C declaration.
19671: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19672:
19673: # Transform the output of nm in a C name address pair.
19674: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19675:
19676: # Transform the output of nm in a C name address pair when lib prefix is needed.
19677: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19678:
19679: # Specify filename containing input files for \$NM.
19680: nm_file_list_spec=$lt_nm_file_list_spec
19681:
19682: # The root where to search for dependent libraries,and in which our libraries should be installed.
19683: lt_sysroot=$lt_sysroot
19684:
19685: # The name of the directory that contains temporary libtool files.
19686: objdir=$objdir
19687:
19688: # Used to examine libraries when file_magic_cmd begins with "file".
19689: MAGIC_CMD=$MAGIC_CMD
19690:
19691: # Must we lock files when doing compilation?
19692: need_locks=$lt_need_locks
19693:
19694: # Manifest tool.
19695: MANIFEST_TOOL=$lt_MANIFEST_TOOL
19696:
19697: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19698: DSYMUTIL=$lt_DSYMUTIL
19699:
19700: # Tool to change global to local symbols on Mac OS X.
19701: NMEDIT=$lt_NMEDIT
19702:
19703: # Tool to manipulate fat objects and archives on Mac OS X.
19704: LIPO=$lt_LIPO
19705:
19706: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19707: OTOOL=$lt_OTOOL
19708:
19709: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19710: OTOOL64=$lt_OTOOL64
19711:
19712: # Old archive suffix (normally "a").
19713: libext=$libext
19714:
19715: # Shared library suffix (normally ".so").
19716: shrext_cmds=$lt_shrext_cmds
19717:
19718: # The commands to extract the exported symbol list from a shared archive.
19719: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19720:
19721: # Variables whose values should be saved in libtool wrapper scripts and
19722: # restored at link time.
19723: variables_saved_for_relink=$lt_variables_saved_for_relink
19724:
19725: # Do we need the "lib" prefix for modules?
19726: need_lib_prefix=$need_lib_prefix
19727:
19728: # Do we need a version for libraries?
19729: need_version=$need_version
19730:
19731: # Library versioning type.
19732: version_type=$version_type
19733:
19734: # Shared library runtime path variable.
19735: runpath_var=$runpath_var
19736:
19737: # Shared library path variable.
19738: shlibpath_var=$shlibpath_var
19739:
19740: # Is shlibpath searched before the hard-coded library search path?
19741: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19742:
19743: # Format of library name prefix.
19744: libname_spec=$lt_libname_spec
19745:
19746: # List of archive names. First name is the real one, the rest are links.
19747: # The last name is the one that the linker finds with -lNAME
19748: library_names_spec=$lt_library_names_spec
19749:
19750: # The coded name of the library, if different from the real name.
19751: soname_spec=$lt_soname_spec
19752:
19753: # Permission mode override for installation of shared libraries.
19754: install_override_mode=$lt_install_override_mode
19755:
19756: # Command to use after installation of a shared archive.
19757: postinstall_cmds=$lt_postinstall_cmds
19758:
19759: # Command to use after uninstallation of a shared archive.
19760: postuninstall_cmds=$lt_postuninstall_cmds
19761:
19762: # Commands used to finish a libtool library installation in a directory.
19763: finish_cmds=$lt_finish_cmds
19764:
19765: # As "finish_cmds", except a single script fragment to be evaled but
19766: # not shown.
19767: finish_eval=$lt_finish_eval
19768:
19769: # Whether we should hardcode library paths into libraries.
19770: hardcode_into_libs=$hardcode_into_libs
19771:
19772: # Compile-time system search path for libraries.
19773: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19774:
19775: # Run-time system search path for libraries.
19776: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19777:
19778: # Whether dlopen is supported.
19779: dlopen_support=$enable_dlopen
19780:
19781: # Whether dlopen of programs is supported.
19782: dlopen_self=$enable_dlopen_self
19783:
19784: # Whether dlopen of statically linked programs is supported.
19785: dlopen_self_static=$enable_dlopen_self_static
19786:
19787: # Commands to strip libraries.
19788: old_striplib=$lt_old_striplib
19789: striplib=$lt_striplib
19790:
19791:
19792: # The linker used to build libraries.
19793: LD=$lt_LD
19794:
19795: # How to create reloadable object files.
19796: reload_flag=$lt_reload_flag
19797: reload_cmds=$lt_reload_cmds
19798:
19799: # Commands used to build an old-style archive.
19800: old_archive_cmds=$lt_old_archive_cmds
19801:
19802: # A language specific compiler.
19803: CC=$lt_compiler
19804:
19805: # Is the compiler the GNU compiler?
19806: with_gcc=$GCC
19807:
19808: # Compiler flag to turn off builtin functions.
19809: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19810:
19811: # Additional compiler flags for building library objects.
19812: pic_flag=$lt_lt_prog_compiler_pic
19813:
19814: # How to pass a linker flag through the compiler.
19815: wl=$lt_lt_prog_compiler_wl
19816:
19817: # Compiler flag to prevent dynamic linking.
19818: link_static_flag=$lt_lt_prog_compiler_static
19819:
19820: # Does compiler simultaneously support -c and -o options?
19821: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19822:
19823: # Whether or not to add -lc for building shared libraries.
19824: build_libtool_need_lc=$archive_cmds_need_lc
19825:
19826: # Whether or not to disallow shared libs when runtime libs are static.
19827: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19828:
19829: # Compiler flag to allow reflexive dlopens.
19830: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19831:
19832: # Compiler flag to generate shared objects directly from archives.
19833: whole_archive_flag_spec=$lt_whole_archive_flag_spec
19834:
19835: # Whether the compiler copes with passing no objects directly.
19836: compiler_needs_object=$lt_compiler_needs_object
19837:
19838: # Create an old-style archive from a shared archive.
19839: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19840:
19841: # Create a temporary old-style archive to link instead of a shared archive.
19842: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19843:
19844: # Commands used to build a shared archive.
19845: archive_cmds=$lt_archive_cmds
19846: archive_expsym_cmds=$lt_archive_expsym_cmds
19847:
19848: # Commands used to build a loadable module if different from building
19849: # a shared archive.
19850: module_cmds=$lt_module_cmds
19851: module_expsym_cmds=$lt_module_expsym_cmds
19852:
19853: # Whether we are building with GNU ld or not.
19854: with_gnu_ld=$lt_with_gnu_ld
19855:
19856: # Flag that allows shared libraries with undefined symbols to be built.
19857: allow_undefined_flag=$lt_allow_undefined_flag
19858:
19859: # Flag that enforces no undefined symbols.
19860: no_undefined_flag=$lt_no_undefined_flag
19861:
19862: # Flag to hardcode \$libdir into a binary during linking.
19863: # This must work even if \$libdir does not exist
19864: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19865:
19866: # Whether we need a single "-rpath" flag with a separated argument.
19867: hardcode_libdir_separator=$lt_hardcode_libdir_separator
19868:
19869: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19870: # DIR into the resulting binary.
19871: hardcode_direct=$hardcode_direct
19872:
19873: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19874: # DIR into the resulting binary and the resulting library dependency is
19875: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19876: # library is relocated.
19877: hardcode_direct_absolute=$hardcode_direct_absolute
19878:
19879: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19880: # into the resulting binary.
19881: hardcode_minus_L=$hardcode_minus_L
19882:
19883: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19884: # into the resulting binary.
19885: hardcode_shlibpath_var=$hardcode_shlibpath_var
19886:
19887: # Set to "yes" if building a shared library automatically hardcodes DIR
19888: # into the library and all subsequent libraries and executables linked
19889: # against it.
19890: hardcode_automatic=$hardcode_automatic
19891:
19892: # Set to yes if linker adds runtime paths of dependent libraries
19893: # to runtime path list.
19894: inherit_rpath=$inherit_rpath
19895:
19896: # Whether libtool must link a program against all its dependency libraries.
19897: link_all_deplibs=$link_all_deplibs
19898:
19899: # Set to "yes" if exported symbols are required.
19900: always_export_symbols=$always_export_symbols
19901:
19902: # The commands to list exported symbols.
19903: export_symbols_cmds=$lt_export_symbols_cmds
19904:
19905: # Symbols that should not be listed in the preloaded symbols.
19906: exclude_expsyms=$lt_exclude_expsyms
19907:
19908: # Symbols that must always be exported.
19909: include_expsyms=$lt_include_expsyms
19910:
19911: # Commands necessary for linking programs (against libraries) with templates.
19912: prelink_cmds=$lt_prelink_cmds
19913:
19914: # Commands necessary for finishing linking programs.
19915: postlink_cmds=$lt_postlink_cmds
19916:
19917: # Specify filename containing input files.
19918: file_list_spec=$lt_file_list_spec
19919:
19920: # How to hardcode a shared library path into an executable.
19921: hardcode_action=$hardcode_action
19922:
19923: # The directories searched by this compiler when creating a shared library.
19924: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19925:
19926: # Dependencies to place before and after the objects being linked to
19927: # create a shared library.
19928: predep_objects=$lt_predep_objects
19929: postdep_objects=$lt_postdep_objects
19930: predeps=$lt_predeps
19931: postdeps=$lt_postdeps
19932:
19933: # The library search path used internally by the compiler when linking
19934: # a shared library.
19935: compiler_lib_search_path=$lt_compiler_lib_search_path
19936:
19937: # ### END LIBTOOL CONFIG
19938:
19939: _LT_EOF
19940:
19941: case $host_os in
19942: aix3*)
19943: cat <<\_LT_EOF >> "$cfgfile"
19944: # AIX sometimes has problems with the GCC collect2 program. For some
19945: # reason, if we set the COLLECT_NAMES environment variable, the problems
19946: # vanish in a puff of smoke.
19947: if test "X${COLLECT_NAMES+set}" != Xset; then
19948: COLLECT_NAMES=
19949: export COLLECT_NAMES
19950: fi
19951: _LT_EOF
19952: ;;
19953: esac
19954:
19955:
19956: ltmain="$ac_aux_dir/ltmain.sh"
19957:
19958:
19959: # We use sed instead of cat because bash on DJGPP gets confused if
19960: # if finds mixed CR/LF and LF-only lines. Since sed operates in
19961: # text mode, it properly converts lines to CR/LF. This bash problem
19962: # is reportedly fixed, but why not run on old versions too?
19963: sed '$q' "$ltmain" >> "$cfgfile" \
19964: || (rm -f "$cfgfile"; exit 1)
19965:
19966: if test x"$xsi_shell" = xyes; then
19967: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19968: func_dirname ()\
19969: {\
19970: \ case ${1} in\
19971: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19972: \ * ) func_dirname_result="${3}" ;;\
19973: \ esac\
19974: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19975: && mv -f "$cfgfile.tmp" "$cfgfile" \
19976: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19977: test 0 -eq $? || _lt_function_replace_fail=:
19978:
19979:
19980: sed -e '/^func_basename ()$/,/^} # func_basename /c\
19981: func_basename ()\
19982: {\
19983: \ func_basename_result="${1##*/}"\
19984: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19985: && mv -f "$cfgfile.tmp" "$cfgfile" \
19986: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19987: test 0 -eq $? || _lt_function_replace_fail=:
19988:
19989:
19990: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19991: func_dirname_and_basename ()\
19992: {\
19993: \ case ${1} in\
19994: \ */*) func_dirname_result="${1%/*}${2}" ;;\
19995: \ * ) func_dirname_result="${3}" ;;\
19996: \ esac\
19997: \ func_basename_result="${1##*/}"\
19998: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19999: && mv -f "$cfgfile.tmp" "$cfgfile" \
20000: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20001: test 0 -eq $? || _lt_function_replace_fail=:
20002:
20003:
20004: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20005: func_stripname ()\
20006: {\
20007: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20008: \ # positional parameters, so assign one to ordinary parameter first.\
20009: \ func_stripname_result=${3}\
20010: \ func_stripname_result=${func_stripname_result#"${1}"}\
20011: \ func_stripname_result=${func_stripname_result%"${2}"}\
20012: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20013: && mv -f "$cfgfile.tmp" "$cfgfile" \
20014: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20015: test 0 -eq $? || _lt_function_replace_fail=:
20016:
20017:
20018: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20019: func_split_long_opt ()\
20020: {\
20021: \ func_split_long_opt_name=${1%%=*}\
20022: \ func_split_long_opt_arg=${1#*=}\
20023: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20024: && mv -f "$cfgfile.tmp" "$cfgfile" \
20025: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20026: test 0 -eq $? || _lt_function_replace_fail=:
20027:
20028:
20029: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20030: func_split_short_opt ()\
20031: {\
20032: \ func_split_short_opt_arg=${1#??}\
20033: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20034: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20035: && mv -f "$cfgfile.tmp" "$cfgfile" \
20036: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20037: test 0 -eq $? || _lt_function_replace_fail=:
20038:
20039:
20040: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20041: func_lo2o ()\
20042: {\
20043: \ case ${1} in\
20044: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20045: \ *) func_lo2o_result=${1} ;;\
20046: \ esac\
20047: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20048: && mv -f "$cfgfile.tmp" "$cfgfile" \
20049: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20050: test 0 -eq $? || _lt_function_replace_fail=:
20051:
20052:
20053: sed -e '/^func_xform ()$/,/^} # func_xform /c\
20054: func_xform ()\
20055: {\
20056: func_xform_result=${1%.*}.lo\
20057: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20058: && mv -f "$cfgfile.tmp" "$cfgfile" \
20059: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20060: test 0 -eq $? || _lt_function_replace_fail=:
20061:
20062:
20063: sed -e '/^func_arith ()$/,/^} # func_arith /c\
20064: func_arith ()\
20065: {\
20066: func_arith_result=$(( $* ))\
20067: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20068: && mv -f "$cfgfile.tmp" "$cfgfile" \
20069: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20070: test 0 -eq $? || _lt_function_replace_fail=:
20071:
20072:
20073: sed -e '/^func_len ()$/,/^} # func_len /c\
20074: func_len ()\
20075: {\
20076: func_len_result=${#1}\
20077: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20078: && mv -f "$cfgfile.tmp" "$cfgfile" \
20079: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20080: test 0 -eq $? || _lt_function_replace_fail=:
20081:
20082: fi
20083:
20084: if test x"$lt_shell_append" = xyes; then
20085: sed -e '/^func_append ()$/,/^} # func_append /c\
20086: func_append ()\
20087: {\
20088: eval "${1}+=\\${2}"\
20089: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20090: && mv -f "$cfgfile.tmp" "$cfgfile" \
20091: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20092: test 0 -eq $? || _lt_function_replace_fail=:
20093:
20094:
20095: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20096: func_append_quoted ()\
20097: {\
20098: \ func_quote_for_eval "${2}"\
20099: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20100: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20101: && mv -f "$cfgfile.tmp" "$cfgfile" \
20102: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20103: test 0 -eq $? || _lt_function_replace_fail=:
20104:
20105:
20106: # Save a `func_append' function call where possible by direct use of '+='
20107: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20108: && mv -f "$cfgfile.tmp" "$cfgfile" \
20109: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20110: test 0 -eq $? || _lt_function_replace_fail=:
20111: else
20112: # Save a `func_append' function call even when '+=' is not available
20113: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20114: && mv -f "$cfgfile.tmp" "$cfgfile" \
20115: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20116: test 0 -eq $? || _lt_function_replace_fail=:
20117: fi
20118:
20119: if test x"$_lt_function_replace_fail" = x":"; then
20120: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20121: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20122: fi
20123:
20124:
20125: mv -f "$cfgfile" "$ofile" ||
20126: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20127: chmod +x "$ofile"
20128:
20129:
20130: cat <<_LT_EOF >> "$ofile"
20131:
20132: # ### BEGIN LIBTOOL TAG CONFIG: CXX
20133:
20134: # The linker used to build libraries.
20135: LD=$lt_LD_CXX
20136:
20137: # How to create reloadable object files.
20138: reload_flag=$lt_reload_flag_CXX
20139: reload_cmds=$lt_reload_cmds_CXX
20140:
20141: # Commands used to build an old-style archive.
20142: old_archive_cmds=$lt_old_archive_cmds_CXX
20143:
20144: # A language specific compiler.
20145: CC=$lt_compiler_CXX
20146:
20147: # Is the compiler the GNU compiler?
20148: with_gcc=$GCC_CXX
20149:
20150: # Compiler flag to turn off builtin functions.
20151: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20152:
20153: # Additional compiler flags for building library objects.
20154: pic_flag=$lt_lt_prog_compiler_pic_CXX
20155:
20156: # How to pass a linker flag through the compiler.
20157: wl=$lt_lt_prog_compiler_wl_CXX
20158:
20159: # Compiler flag to prevent dynamic linking.
20160: link_static_flag=$lt_lt_prog_compiler_static_CXX
20161:
20162: # Does compiler simultaneously support -c and -o options?
20163: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20164:
20165: # Whether or not to add -lc for building shared libraries.
20166: build_libtool_need_lc=$archive_cmds_need_lc_CXX
20167:
20168: # Whether or not to disallow shared libs when runtime libs are static.
20169: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20170:
20171: # Compiler flag to allow reflexive dlopens.
20172: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20173:
20174: # Compiler flag to generate shared objects directly from archives.
20175: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20176:
20177: # Whether the compiler copes with passing no objects directly.
20178: compiler_needs_object=$lt_compiler_needs_object_CXX
20179:
20180: # Create an old-style archive from a shared archive.
20181: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20182:
20183: # Create a temporary old-style archive to link instead of a shared archive.
20184: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20185:
20186: # Commands used to build a shared archive.
20187: archive_cmds=$lt_archive_cmds_CXX
20188: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20189:
20190: # Commands used to build a loadable module if different from building
20191: # a shared archive.
20192: module_cmds=$lt_module_cmds_CXX
20193: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20194:
20195: # Whether we are building with GNU ld or not.
20196: with_gnu_ld=$lt_with_gnu_ld_CXX
20197:
20198: # Flag that allows shared libraries with undefined symbols to be built.
20199: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20200:
20201: # Flag that enforces no undefined symbols.
20202: no_undefined_flag=$lt_no_undefined_flag_CXX
20203:
20204: # Flag to hardcode \$libdir into a binary during linking.
20205: # This must work even if \$libdir does not exist
20206: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20207:
20208: # Whether we need a single "-rpath" flag with a separated argument.
20209: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20210:
20211: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20212: # DIR into the resulting binary.
20213: hardcode_direct=$hardcode_direct_CXX
20214:
20215: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20216: # DIR into the resulting binary and the resulting library dependency is
20217: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20218: # library is relocated.
20219: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20220:
20221: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20222: # into the resulting binary.
20223: hardcode_minus_L=$hardcode_minus_L_CXX
20224:
20225: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20226: # into the resulting binary.
20227: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20228:
20229: # Set to "yes" if building a shared library automatically hardcodes DIR
20230: # into the library and all subsequent libraries and executables linked
20231: # against it.
20232: hardcode_automatic=$hardcode_automatic_CXX
20233:
20234: # Set to yes if linker adds runtime paths of dependent libraries
20235: # to runtime path list.
20236: inherit_rpath=$inherit_rpath_CXX
20237:
20238: # Whether libtool must link a program against all its dependency libraries.
20239: link_all_deplibs=$link_all_deplibs_CXX
20240:
20241: # Set to "yes" if exported symbols are required.
20242: always_export_symbols=$always_export_symbols_CXX
20243:
20244: # The commands to list exported symbols.
20245: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20246:
20247: # Symbols that should not be listed in the preloaded symbols.
20248: exclude_expsyms=$lt_exclude_expsyms_CXX
20249:
20250: # Symbols that must always be exported.
20251: include_expsyms=$lt_include_expsyms_CXX
20252:
20253: # Commands necessary for linking programs (against libraries) with templates.
20254: prelink_cmds=$lt_prelink_cmds_CXX
20255:
20256: # Commands necessary for finishing linking programs.
20257: postlink_cmds=$lt_postlink_cmds_CXX
20258:
20259: # Specify filename containing input files.
20260: file_list_spec=$lt_file_list_spec_CXX
20261:
20262: # How to hardcode a shared library path into an executable.
20263: hardcode_action=$hardcode_action_CXX
20264:
20265: # The directories searched by this compiler when creating a shared library.
20266: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20267:
20268: # Dependencies to place before and after the objects being linked to
20269: # create a shared library.
20270: predep_objects=$lt_predep_objects_CXX
20271: postdep_objects=$lt_postdep_objects_CXX
20272: predeps=$lt_predeps_CXX
20273: postdeps=$lt_postdeps_CXX
20274:
20275: # The library search path used internally by the compiler when linking
20276: # a shared library.
20277: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20278:
20279: # ### END LIBTOOL TAG CONFIG: CXX
20280: _LT_EOF
1.1 parser 20281:
1.15 paf 20282: ;;
20283: esac
20284: done
20285: _ACEOF
1.1 parser 20286:
1.15 paf 20287: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 parser 20288:
1.15 paf 20289: { (exit 0); exit 0; }
20290: _ACEOF
1.1 parser 20291: chmod +x $CONFIG_STATUS
1.15 paf 20292: ac_clean_files=$ac_clean_files_save
20293:
20294:
20295: # configure is writing to config.log, and then calls config.status.
20296: # config.status does its own redirection, appending to config.log.
20297: # Unfortunately, on DOS this fails, as config.log is still kept open
20298: # by configure, so config.status won't be able to write to it; its
20299: # output is simply discarded. So we exec the FD to /dev/null,
20300: # effectively closing config.log, so it can be properly (re)opened and
20301: # appended to by config.status. When coming back to configure, we
20302: # need to make the FD available again.
20303: if test "$no_create" != yes; then
20304: ac_cs_success=:
20305: ac_config_status_args=
20306: test "$silent" = yes &&
20307: ac_config_status_args="$ac_config_status_args --quiet"
20308: exec 5>/dev/null
20309: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20310: exec 5>>config.log
20311: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20312: # would make configure fail if this is the last instruction.
20313: $ac_cs_success || { (exit 1); exit 1; }
20314: fi
1.1 parser 20315:
1.15 paf 20316: #
20317: # CONFIG_SUBDIRS section.
20318: #
1.1 parser 20319: if test "$no_recursion" != yes; then
20320:
20321: # Remove --cache-file and --srcdir arguments so they do not pile up.
20322: ac_sub_configure_args=
20323: ac_prev=
20324: for ac_arg in $ac_configure_args; do
20325: if test -n "$ac_prev"; then
20326: ac_prev=
20327: continue
20328: fi
1.15 paf 20329: case $ac_arg in
1.1 parser 20330: -cache-file | --cache-file | --cache-fil | --cache-fi \
20331: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20332: ac_prev=cache_file ;;
20333: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.15 paf 20334: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20335: | --c=*)
20336: ;;
20337: --config-cache | -C)
1.1 parser 20338: ;;
20339: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20340: ac_prev=srcdir ;;
20341: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20342: ;;
1.15 paf 20343: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20344: ac_prev=prefix ;;
20345: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20346: ;;
1.1 parser 20347: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20348: esac
20349: done
20350:
1.15 paf 20351: # Always prepend --prefix to ensure using the same prefix
20352: # in subdir configurations.
20353: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
20354:
20355: ac_popdir=`pwd`
20356: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 parser 20357:
20358: # Do not complain, so a configure script can configure whichever
20359: # parts of a large source tree are present.
1.15 paf 20360: test -d $srcdir/$ac_dir || continue
1.1 parser 20361:
1.15 paf 20362: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
20363: echo "$as_me: configuring in $ac_dir" >&6;}
20364: { if $as_mkdir_p; then
20365: mkdir -p "$ac_dir"
20366: else
20367: as_dir="$ac_dir"
20368: as_dirs=
20369: while test ! -d "$as_dir"; do
20370: as_dirs="$as_dir $as_dirs"
20371: as_dir=`(dirname "$as_dir") 2>/dev/null ||
20372: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 paf 20373: X"$as_dir" : 'X\(//\)[^/]' \| \
20374: X"$as_dir" : 'X\(//\)$' \| \
20375: X"$as_dir" : 'X\(/\)' \| \
20376: . : '\(.\)' 2>/dev/null ||
1.15 paf 20377: echo X"$as_dir" |
20378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20379: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20380: /^X\(\/\/\)$/{ s//\1/; q; }
20381: /^X\(\/\).*/{ s//\1/; q; }
20382: s/.*/./; q'`
20383: done
20384: test ! -n "$as_dirs" || mkdir $as_dirs
20385: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20386: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20387: { (exit 1); exit 1; }; }; }
20388:
20389: ac_builddir=.
20390:
20391: if test "$ac_dir" != .; then
20392: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20393: # A "../" for each directory in $ac_dir_suffix.
20394: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20395: else
20396: ac_dir_suffix= ac_top_builddir=
20397: fi
20398:
20399: case $srcdir in
20400: .) # No --srcdir option. We are building in place.
20401: ac_srcdir=.
20402: if test -z "$ac_top_builddir"; then
20403: ac_top_srcdir=.
20404: else
20405: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20406: fi ;;
20407: [\\/]* | ?:[\\/]* ) # Absolute path.
20408: ac_srcdir=$srcdir$ac_dir_suffix;
20409: ac_top_srcdir=$srcdir ;;
20410: *) # Relative path.
20411: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20412: ac_top_srcdir=$ac_top_builddir$srcdir ;;
20413: esac
1.25 paf 20414:
20415: # Do not use `cd foo && pwd` to compute absolute paths, because
20416: # the directories may not exist.
20417: case `pwd` in
20418: .) ac_abs_builddir="$ac_dir";;
20419: *)
20420: case "$ac_dir" in
20421: .) ac_abs_builddir=`pwd`;;
20422: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20423: *) ac_abs_builddir=`pwd`/"$ac_dir";;
20424: esac;;
20425: esac
20426: case $ac_abs_builddir in
20427: .) ac_abs_top_builddir=${ac_top_builddir}.;;
20428: *)
20429: case ${ac_top_builddir}. in
20430: .) ac_abs_top_builddir=$ac_abs_builddir;;
20431: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20432: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20433: esac;;
20434: esac
20435: case $ac_abs_builddir in
20436: .) ac_abs_srcdir=$ac_srcdir;;
20437: *)
20438: case $ac_srcdir in
20439: .) ac_abs_srcdir=$ac_abs_builddir;;
20440: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20441: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20442: esac;;
20443: esac
20444: case $ac_abs_builddir in
20445: .) ac_abs_top_srcdir=$ac_top_srcdir;;
20446: *)
20447: case $ac_top_srcdir in
20448: .) ac_abs_top_srcdir=$ac_abs_builddir;;
20449: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20450: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20451: esac;;
20452: esac
1.1 parser 20453:
20454:
1.15 paf 20455: cd $ac_dir
1.1 parser 20456:
20457: # Check for guested configure; otherwise get Cygnus style configure.
1.15 paf 20458: if test -f $ac_srcdir/configure.gnu; then
20459: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
20460: elif test -f $ac_srcdir/configure; then
20461: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
20462: elif test -f $ac_srcdir/configure.in; then
1.1 parser 20463: ac_sub_configure=$ac_configure
20464: else
1.15 paf 20465: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20466: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 parser 20467: ac_sub_configure=
20468: fi
20469:
20470: # The recursion is here.
20471: if test -n "$ac_sub_configure"; then
20472: # Make the cache file name correct relative to the subdirectory.
1.15 paf 20473: case $cache_file in
20474: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 parser 20475: *) # Relative path.
1.25 paf 20476: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 parser 20477: esac
20478:
1.15 paf 20479: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20480: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 parser 20481: # The eval makes quoting arguments work.
1.15 paf 20482: eval $ac_sub_configure $ac_sub_configure_args \
1.25 paf 20483: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
20484: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.15 paf 20485: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20486: { (exit 1); exit 1; }; }
1.1 parser 20487: fi
20488:
20489: cd $ac_popdir
20490: done
20491: fi
20492:
E-mail: