Annotation of parser3/configure, revision 1.136
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.128 moko 3: # Generated by GNU Autoconf 2.59 for parser 3.4.2b.
1.1 paf 4: #
1.86 paf 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 paf 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.62 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.86 paf 22: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 23:
24: # Support unset when possible.
1.86 paf 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 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.86 paf 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 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.86 paf 221: test -d ./-p && rmdir ./-p
1.62 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.86 paf 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 229:
230: # Sed expression to map a string onto a valid variable name.
1.86 paf 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 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.128 moko 243: lt_ltdl_dir='src/lib/ltdl'
244:
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: lt_dlopen_dir="$lt_ltdl_dir"
248:
1.1 paf 249:
1.62 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 paf 260: ac_default_prefix=/usr/local
1.62 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.128 moko 274: PACKAGE_NAME='parser'
275: PACKAGE_TARNAME='parser'
276: PACKAGE_VERSION='3.4.2b'
277: PACKAGE_STRING='parser 3.4.2b'
278: PACKAGE_BUGREPORT=''
1.62 paf 279:
280: ac_unique_file="README"
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:
1.128 moko 318: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
1.132 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 P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os YACC CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE dll_extension GC_LIBS PCRE_INCLUDES PCRE_LIBS XML_INCLUDES XML_LIBS MIME_INCLUDES MIME_LIBS APACHE APACHE_INC APACHE_CFLAGS COMPILE_APACHE_MODULE_TRUE COMPILE_APACHE_MODULE_FALSE AS ac_ct_AS DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL 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.62 paf 320: ac_subst_files=''
1.1 paf 321:
322: # Initialize some variables set by options.
1.62 paf 323: ac_init_help=
324: ac_init_version=false
1.1 paf 325: # The variables have the same names as the options, with
326: # dashes changed to underlines.
1.62 paf 327: cache_file=/dev/null
1.1 paf 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.62 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 paf 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.62 paf 370: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 371:
372: # Accept the important Cygnus configure options, so we can diagnose typos.
373:
1.62 paf 374: case $ac_option in
1.1 paf 375:
376: -bindir | --bindir | --bindi | --bind | --bin | --bi)
377: ac_prev=bindir ;;
378: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 379: bindir=$ac_optarg ;;
1.1 paf 380:
381: -build | --build | --buil | --bui | --bu)
1.62 paf 382: ac_prev=build_alias ;;
1.1 paf 383: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 384: build_alias=$ac_optarg ;;
1.1 paf 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.62 paf 391: cache_file=$ac_optarg ;;
392:
393: --config-cache | -C)
394: cache_file=config.cache ;;
1.1 paf 395:
396: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397: ac_prev=datadir ;;
398: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399: | --da=*)
1.62 paf 400: datadir=$ac_optarg ;;
1.1 paf 401:
402: -disable-* | --disable-*)
1.62 paf 403: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 404: # Reject names that are not valid shell variable names.
1.62 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 paf 410:
411: -enable-* | --enable-*)
1.62 paf 412: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 413: # Reject names that are not valid shell variable names.
1.62 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 paf 420: *) ac_optarg=yes ;;
421: esac
1.62 paf 422: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 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.62 paf 431: exec_prefix=$ac_optarg ;;
1.1 paf 432:
433: -gas | --gas | --ga | --g)
434: # Obsolete; use --with-gas.
435: with_gas=yes ;;
436:
1.62 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 paf 443:
444: -host | --host | --hos | --ho)
1.62 paf 445: ac_prev=host_alias ;;
1.1 paf 446: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 447: host_alias=$ac_optarg ;;
1.1 paf 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.62 paf 454: includedir=$ac_optarg ;;
1.1 paf 455:
456: -infodir | --infodir | --infodi | --infod | --info | --inf)
457: ac_prev=infodir ;;
458: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 459: infodir=$ac_optarg ;;
1.1 paf 460:
461: -libdir | --libdir | --libdi | --libd)
462: ac_prev=libdir ;;
463: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 464: libdir=$ac_optarg ;;
1.1 paf 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.62 paf 471: libexecdir=$ac_optarg ;;
1.1 paf 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.62 paf 480: localstatedir=$ac_optarg ;;
1.1 paf 481:
482: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
483: ac_prev=mandir ;;
484: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 485: mandir=$ac_optarg ;;
1.1 paf 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.62 paf 492: | --no-cr | --no-c | -n)
1.1 paf 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.62 paf 506: oldincludedir=$ac_optarg ;;
1.1 paf 507:
508: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
509: ac_prev=prefix ;;
510: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 511: prefix=$ac_optarg ;;
1.1 paf 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.62 paf 518: program_prefix=$ac_optarg ;;
1.1 paf 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.62 paf 525: program_suffix=$ac_optarg ;;
1.1 paf 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.62 paf 542: program_transform_name=$ac_optarg ;;
1.1 paf 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.62 paf 552: sbindir=$ac_optarg ;;
1.1 paf 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.62 paf 563: sharedstatedir=$ac_optarg ;;
1.1 paf 564:
565: -site | --site | --sit)
566: ac_prev=site ;;
567: -site=* | --site=* | --sit=*)
1.62 paf 568: site=$ac_optarg ;;
1.1 paf 569:
570: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
571: ac_prev=srcdir ;;
572: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 573: srcdir=$ac_optarg ;;
1.1 paf 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.62 paf 580: sysconfdir=$ac_optarg ;;
1.1 paf 581:
582: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 583: ac_prev=target_alias ;;
1.1 paf 584: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 585: target_alias=$ac_optarg ;;
1.1 paf 586:
587: -v | -verbose | --verbose | --verbos | --verbo | --verb)
588: verbose=yes ;;
589:
1.62 paf 590: -version | --version | --versio | --versi | --vers | -V)
591: ac_init_version=: ;;
1.1 paf 592:
593: -with-* | --with-*)
1.62 paf 594: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 595: # Reject names that are not valid shell variable names.
1.62 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 paf 599: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 600: case $ac_option in
601: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 602: *) ac_optarg=yes ;;
603: esac
1.62 paf 604: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 605:
606: -without-* | --without-*)
1.62 paf 607: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 608: # Reject names that are not valid shell variable names.
1.62 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 paf 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.62 paf 624: x_includes=$ac_optarg ;;
1.1 paf 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.62 paf 631: x_libraries=$ac_optarg ;;
1.1 paf 632:
1.62 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 paf 636: ;;
637:
1.62 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 paf 648: *)
1.62 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 paf 654: ;;
655:
656: esac
657: done
658:
659: if test -n "$ac_prev"; then
1.62 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 paf 663: fi
664:
1.62 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 paf 675:
1.62 paf 676: # Be sure to have absolute paths.
677: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.86 paf 678: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 679: do
1.62 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 paf 685: esac
686: done
687:
1.62 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 paf 708:
1.62 paf 709: test "$silent" = yes && exec 6>/dev/null
1.1 paf 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.62 paf 716: ac_confdir=`(dirname "$0") 2>/dev/null ||
717: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 718: X"$0" : 'X\(//\)[^/]' \| \
719: X"$0" : 'X\(//\)$' \| \
720: X"$0" : 'X\(/\)' \| \
721: . : '\(.\)' 2>/dev/null ||
1.62 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 paf 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.62 paf 737: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
738: { (exit 1); exit 1; }; }
1.1 paf 739: else
1.62 paf 740: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
741: { (exit 1); exit 1; }; }
1.1 paf 742: fi
743: fi
1.62 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
1.66 paf 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
1.62 paf 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.66 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.128 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.62 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.128 moko 800: \`configure' configures parser 3.4.2b to adapt to many kinds of systems.
1.62 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.86 paf 825: [$ac_default_prefix]
1.62 paf 826: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.86 paf 827: [PREFIX]
1.62 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.128 moko 865: case $ac_init_help in
866: short | recursive ) echo "Configuration of parser 3.4.2b:";;
867: esac
1.62 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.86 paf 873: --disable-dependency-tracking speeds up one-time build
874: --enable-dependency-tracking do not reject slow dependency extractors
1.67 paf 875: --disable-safe-mode to enable reading and executing
1.62 paf 876: files belonging to group+user other then effective
1.94 misha 877: --disable-execs to disable any execs
1.62 paf 878: (file::exec, file::cgi, unix mail:send)
1.94 misha 879: --disable-stringstream to disable stringstream usage.
880: when disabled table.save use more memory but it's safer on freebsd 4.x
1.136 ! moko 881: --enable-static[=PKGS]
! 882: build static libraries [default=no]
1.128 moko 883: --enable-shared[=PKGS]
884: build shared libraries [default=yes]
885: --enable-fast-install[=PKGS]
886: optimize for fast installation [default=yes]
887: --disable-libtool-lock avoid locking (might break parallel builds)
888: --enable-ltdl-install install libltdl
1.62 paf 889:
890: Optional Packages:
891: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
892: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 893: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.67 paf 894: --with-assertions to enable assertions
1.62 paf 895: --with-pathlink=LKEY put dynamic libraries paths to binary
896: using linker key (-R, -rpath-link)
1.128 moko 897: --with-sjlj-exceptions enable simple 'throw' from dynamic library
1.67 paf 898: --with-shared-gc=D D is the directory where
899: Boehm garbage collecting library is installed (shared lib)
900: --with-static-gc=D D is the directory where
901: Boehm garbage collecting library is installed (static lib)
1.119 misha 902: --with-static-pcre=D D is the directory where
1.100 misha 903: PCRE library is installed (static lib)
1.62 paf 904: --with-shared-xml=D D is the directory where
905: Gnome XML libraries are installed (shared libs)
906: --with-static-xml=D D is the directory where
907: Gnome XML libraries are installed (static libs)
1.90 paf 908: --with-glib-config=FILE FILE is glib library
909: configuration file (search for glib*-config)
1.62 paf 910: --with-shared-mailreceive=D is the directory where
1.67 paf 911: Gnome MIME library is installed (shared lib)
1.62 paf 912: --with-static-mailreceive=D is the directory where
913: Gnome MIME library is installed (static lib)
914: \"--with-sendmail=COMMAND\" forces this command to send mail.
915: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
916: (makes parser ignore user-defined sendmail commands)
1.122 moko 917: --with-apache=FILE is the full path for APXS
918: builds apache DSO module using apxs
1.128 moko 919: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
920: both]
921: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
922: --with-sysroot=DIR Search for dependent libraries within DIR
923: (or the compiler's sysroot if not specified).
924: --with-included-ltdl use the GNU ltdl sources included here
925: --with-ltdl-include=DIR use the ltdl headers installed in DIR
926: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 927:
928: Some influential environment variables:
1.66 paf 929: CXX C++ compiler command
930: CXXFLAGS C++ compiler flags
1.62 paf 931: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
932: nonstandard directory <lib dir>
933: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
934: headers in a nonstandard directory <include dir>
1.66 paf 935: CC C compiler command
936: CFLAGS C compiler flags
937: CPP C preprocessor
1.128 moko 938: CXXCPP C++ preprocessor
1.62 paf 939:
940: Use these variables to override the choices made by `configure' or to help
941: it to find libraries and programs with nonstandard names/locations.
942:
943: _ACEOF
944: fi
945:
946: if test "$ac_init_help" = "recursive"; then
947: # If there are subdirs, report their specific --help.
948: ac_popdir=`pwd`
949: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950: test -d $ac_dir || continue
951: ac_builddir=.
952:
953: if test "$ac_dir" != .; then
954: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955: # A "../" for each directory in $ac_dir_suffix.
956: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957: else
958: ac_dir_suffix= ac_top_builddir=
959: fi
960:
961: case $srcdir in
962: .) # No --srcdir option. We are building in place.
963: ac_srcdir=.
964: if test -z "$ac_top_builddir"; then
965: ac_top_srcdir=.
966: else
967: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968: fi ;;
969: [\\/]* | ?:[\\/]* ) # Absolute path.
970: ac_srcdir=$srcdir$ac_dir_suffix;
971: ac_top_srcdir=$srcdir ;;
972: *) # Relative path.
973: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974: ac_top_srcdir=$ac_top_builddir$srcdir ;;
975: esac
1.86 paf 976:
977: # Do not use `cd foo && pwd` to compute absolute paths, because
978: # the directories may not exist.
979: case `pwd` in
980: .) ac_abs_builddir="$ac_dir";;
981: *)
982: case "$ac_dir" in
983: .) ac_abs_builddir=`pwd`;;
984: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
985: *) ac_abs_builddir=`pwd`/"$ac_dir";;
986: esac;;
987: esac
988: case $ac_abs_builddir in
989: .) ac_abs_top_builddir=${ac_top_builddir}.;;
990: *)
991: case ${ac_top_builddir}. in
992: .) ac_abs_top_builddir=$ac_abs_builddir;;
993: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
994: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
995: esac;;
996: esac
997: case $ac_abs_builddir in
998: .) ac_abs_srcdir=$ac_srcdir;;
999: *)
1000: case $ac_srcdir in
1001: .) ac_abs_srcdir=$ac_abs_builddir;;
1002: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1003: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004: esac;;
1005: esac
1006: case $ac_abs_builddir in
1007: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1008: *)
1009: case $ac_top_srcdir in
1010: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1011: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1012: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1013: esac;;
1014: esac
1.62 paf 1015:
1016: cd $ac_dir
1017: # Check for guested configure; otherwise get Cygnus style configure.
1018: if test -f $ac_srcdir/configure.gnu; then
1019: echo
1020: $SHELL $ac_srcdir/configure.gnu --help=recursive
1021: elif test -f $ac_srcdir/configure; then
1022: echo
1023: $SHELL $ac_srcdir/configure --help=recursive
1024: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1025: test -f $ac_srcdir/configure.in; then
1.62 paf 1026: echo
1027: $ac_configure --help
1028: else
1029: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030: fi
1031: cd $ac_popdir
1032: done
1033: fi
1034:
1035: test -n "$ac_init_help" && exit 0
1036: if $ac_init_version; then
1037: cat <<\_ACEOF
1.128 moko 1038: parser configure 3.4.2b
1039: generated by GNU Autoconf 2.59
1.62 paf 1040:
1.86 paf 1041: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1042: This configure script is free software; the Free Software Foundation
1043: gives unlimited permission to copy, distribute and modify it.
1044: _ACEOF
1045: exit 0
1046: fi
1047: exec 5>config.log
1048: cat >&5 <<_ACEOF
1049: This file contains any messages produced by compilers while
1050: running configure, to aid debugging if configure makes a mistake.
1051:
1.128 moko 1052: It was created by parser $as_me 3.4.2b, which was
1.86 paf 1053: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1054:
1055: $ $0 $@
1056:
1057: _ACEOF
1058: {
1059: cat <<_ASUNAME
1060: ## --------- ##
1061: ## Platform. ##
1062: ## --------- ##
1063:
1064: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1069:
1070: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1072:
1073: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1080:
1081: _ASUNAME
1082:
1083: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1084: for as_dir in $PATH
1085: do
1086: IFS=$as_save_IFS
1087: test -z "$as_dir" && as_dir=.
1088: echo "PATH: $as_dir"
1089: done
1.1 paf 1090:
1.62 paf 1091: } >&5
1092:
1093: cat >&5 <<_ACEOF
1094:
1095:
1096: ## ----------- ##
1097: ## Core tests. ##
1098: ## ----------- ##
1099:
1100: _ACEOF
1101:
1102:
1103: # Keep a trace of the command line.
1104: # Strip out --no-create and --no-recursion so they do not pile up.
1105: # Strip out --silent because we don't want to record it for future runs.
1106: # Also quote any args containing shell meta-characters.
1107: # Make two passes to allow for proper duplicate-argument suppression.
1108: ac_configure_args=
1109: ac_configure_args0=
1110: ac_configure_args1=
1111: ac_sep=
1112: ac_must_keep_next=false
1113: for ac_pass in 1 2
1114: do
1115: for ac_arg
1116: do
1117: case $ac_arg in
1118: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120: | -silent | --silent | --silen | --sile | --sil)
1121: continue ;;
1122: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1124: esac
1125: case $ac_pass in
1126: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127: 2)
1128: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129: if test $ac_must_keep_next = true; then
1.86 paf 1130: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1131: else
1.86 paf 1132: case $ac_arg in
1133: *=* | --config-cache | -C | -disable-* | --disable-* \
1134: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136: | -with-* | --with-* | -without-* | --without-* | --x)
1137: case "$ac_configure_args0 " in
1138: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1139: esac
1140: ;;
1141: -* ) ac_must_keep_next=true ;;
1142: esac
1.62 paf 1143: fi
1144: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145: # Get rid of the leading space.
1146: ac_sep=" "
1147: ;;
1148: esac
1149: done
1150: done
1151: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153:
1154: # When interrupted or exit'd, cleanup temporary files, and complete
1155: # config.log. We remove comments because anyway the quotes in there
1156: # would cause problems or look ugly.
1157: # WARNING: Be sure not to use single quotes in there, as some shells,
1158: # such as our DU 5.0 friend, will then `close' the trap.
1159: trap 'exit_status=$?
1160: # Save into config.log some information that might help in debugging.
1161: {
1162: echo
1163:
1164: cat <<\_ASBOX
1165: ## ---------------- ##
1166: ## Cache variables. ##
1167: ## ---------------- ##
1168: _ASBOX
1169: echo
1170: # The following way of writing the cache mishandles newlines in values,
1171: {
1172: (set) 2>&1 |
1173: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1174: *ac_space=\ *)
1175: sed -n \
1.86 paf 1176: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1178: ;;
1179: *)
1180: sed -n \
1.86 paf 1181: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1182: ;;
1183: esac;
1184: }
1185: echo
1186:
1187: cat <<\_ASBOX
1188: ## ----------------- ##
1189: ## Output variables. ##
1190: ## ----------------- ##
1191: _ASBOX
1192: echo
1193: for ac_var in $ac_subst_vars
1194: do
1195: eval ac_val=$`echo $ac_var`
1196: echo "$ac_var='"'"'$ac_val'"'"'"
1197: done | sort
1198: echo
1199:
1200: if test -n "$ac_subst_files"; then
1201: cat <<\_ASBOX
1202: ## ------------- ##
1203: ## Output files. ##
1204: ## ------------- ##
1205: _ASBOX
1206: echo
1207: for ac_var in $ac_subst_files
1208: do
1209: eval ac_val=$`echo $ac_var`
1.86 paf 1210: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1211: done | sort
1212: echo
1213: fi
1214:
1215: if test -s confdefs.h; then
1216: cat <<\_ASBOX
1217: ## ----------- ##
1218: ## confdefs.h. ##
1219: ## ----------- ##
1220: _ASBOX
1221: echo
1222: sed "/^$/d" confdefs.h | sort
1223: echo
1224: fi
1225: test "$ac_signal" != 0 &&
1226: echo "$as_me: caught signal $ac_signal"
1227: echo "$as_me: exit $exit_status"
1228: } >&5
1.86 paf 1229: rm -f core *.core &&
1.62 paf 1230: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1231: exit $exit_status
1232: ' 0
1233: for ac_signal in 1 2 13 15; do
1234: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1235: done
1236: ac_signal=0
1237:
1238: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239: rm -rf conftest* confdefs.h
1240: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1241: echo >confdefs.h
1242:
1243: # Predefined preprocessor variables.
1244:
1245: cat >>confdefs.h <<_ACEOF
1246: #define PACKAGE_NAME "$PACKAGE_NAME"
1247: _ACEOF
1248:
1249:
1250: cat >>confdefs.h <<_ACEOF
1251: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1252: _ACEOF
1253:
1254:
1255: cat >>confdefs.h <<_ACEOF
1256: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1257: _ACEOF
1258:
1259:
1260: cat >>confdefs.h <<_ACEOF
1261: #define PACKAGE_STRING "$PACKAGE_STRING"
1262: _ACEOF
1263:
1264:
1265: cat >>confdefs.h <<_ACEOF
1266: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1267: _ACEOF
1268:
1269:
1270: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1271: # Prefer explicitly selected file to automatically selected ones.
1272: if test -z "$CONFIG_SITE"; then
1273: if test "x$prefix" != xNONE; then
1274: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275: else
1276: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1277: fi
1278: fi
1279: for ac_site_file in $CONFIG_SITE; do
1280: if test -r "$ac_site_file"; then
1.62 paf 1281: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282: echo "$as_me: loading site script $ac_site_file" >&6;}
1283: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1284: . "$ac_site_file"
1285: fi
1286: done
1287:
1288: if test -r "$cache_file"; then
1.62 paf 1289: # Some versions of bash will fail to source /dev/null (special
1290: # files actually), so we avoid doing that.
1291: if test -f "$cache_file"; then
1292: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293: echo "$as_me: loading cache $cache_file" >&6;}
1294: case $cache_file in
1295: [\\/]* | ?:[\\/]* ) . $cache_file;;
1296: *) . ./$cache_file;;
1297: esac
1298: fi
1.1 paf 1299: else
1.62 paf 1300: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301: echo "$as_me: creating cache $cache_file" >&6;}
1302: >$cache_file
1303: fi
1304:
1305: # Check that the precious variables saved in the cache have kept the same
1306: # value.
1307: ac_cache_corrupted=false
1308: for ac_var in `(set) 2>&1 |
1.86 paf 1309: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1310: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311: eval ac_new_set=\$ac_env_${ac_var}_set
1312: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313: eval ac_new_val="\$ac_env_${ac_var}_value"
1314: case $ac_old_set,$ac_new_set in
1315: set,)
1316: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318: ac_cache_corrupted=: ;;
1319: ,set)
1320: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322: ac_cache_corrupted=: ;;
1323: ,);;
1324: *)
1325: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1326: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1327: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1328: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1329: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1330: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1331: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1332: ac_cache_corrupted=:
1.62 paf 1333: fi;;
1334: esac
1335: # Pass precious variables to config.status.
1336: if test "$ac_new_set" = set; then
1337: case $ac_new_val in
1338: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340: *) ac_arg=$ac_var=$ac_new_val ;;
1341: esac
1342: case " $ac_configure_args " in
1343: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1345: esac
1346: fi
1347: done
1348: if $ac_cache_corrupted; then
1349: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353: { (exit 1); exit 1; }; }
1.1 paf 1354: fi
1355:
1356: ac_ext=c
1357: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361:
1362:
1363:
1364:
1365:
1366:
1367:
1368:
1369:
1370:
1371:
1.1 paf 1372:
1373:
1.62 paf 1374:
1375:
1376:
1377:
1378:
1379:
1.63 paf 1380:
1381:
1.128 moko 1382:
1383:
1384:
1385:
1386:
1387:
1388:
1389:
1390:
1.86 paf 1391: am__api_version="1.9"
1.1 paf 1392: ac_aux_dir=
1393: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1394: if test -f $ac_dir/install-sh; then
1395: ac_aux_dir=$ac_dir
1396: ac_install_sh="$ac_aux_dir/install-sh -c"
1397: break
1398: elif test -f $ac_dir/install.sh; then
1399: ac_aux_dir=$ac_dir
1400: ac_install_sh="$ac_aux_dir/install.sh -c"
1401: break
1.62 paf 1402: elif test -f $ac_dir/shtool; then
1403: ac_aux_dir=$ac_dir
1404: ac_install_sh="$ac_aux_dir/shtool install -c"
1405: break
1.1 paf 1406: fi
1407: done
1408: if test -z "$ac_aux_dir"; then
1.62 paf 1409: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1410: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1411: { (exit 1); exit 1; }; }
1412: fi
1413: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1416:
1417: # Find a good install program. We prefer a C program (faster),
1418: # so one script is as good as another. But avoid the broken or
1419: # incompatible versions:
1420: # SysV /etc/install, /usr/sbin/install
1421: # SunOS /usr/etc/install
1422: # IRIX /sbin/install
1423: # AIX /bin/install
1.62 paf 1424: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1425: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1428: # OS/2's system install, which has a completely different semantic
1.1 paf 1429: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1430: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1431: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1432: if test -z "$INSTALL"; then
1.62 paf 1433: if test "${ac_cv_path_install+set}" = set; then
1434: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1435: else
1.62 paf 1436: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437: for as_dir in $PATH
1438: do
1439: IFS=$as_save_IFS
1440: test -z "$as_dir" && as_dir=.
1441: # Account for people who put trailing slashes in PATH elements.
1442: case $as_dir/ in
1443: ./ | .// | /cC/* | \
1444: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1445: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1446: /usr/ucb/* ) ;;
1447: *)
1448: # OSF1 and SCO ODT 3.0 have their own names for install.
1449: # Don't use installbsd from OSF since it installs stuff as root
1450: # by default.
1451: for ac_prog in ginstall scoinst install; do
1452: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1453: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1454: if test $ac_prog = install &&
1455: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1456: # AIX install. It has an incompatible calling convention.
1457: :
1458: elif test $ac_prog = install &&
1459: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1460: # program-specific install script used by HP pwplus--don't use.
1461: :
1462: else
1463: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1464: break 3
1465: fi
1466: fi
1.1 paf 1467: done
1.62 paf 1468: done
1469: ;;
1470: esac
1471: done
1472:
1.1 paf 1473:
1474: fi
1475: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1476: INSTALL=$ac_cv_path_install
1.1 paf 1477: else
1478: # As a last resort, use the slow shell script. We don't cache a
1479: # path for INSTALL within a source directory, because that will
1480: # break other packages using the cache if that directory is
1481: # removed, or if the path is relative.
1.62 paf 1482: INSTALL=$ac_install_sh
1.1 paf 1483: fi
1484: fi
1.62 paf 1485: echo "$as_me:$LINENO: result: $INSTALL" >&5
1486: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1487:
1488: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1489: # It thinks the first close brace ends the variable substitution.
1490: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1491:
1.62 paf 1492: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1493:
1494: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1495:
1.62 paf 1496: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1497: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1498: # Just in case
1499: sleep 1
1.62 paf 1500: echo timestamp > conftest.file
1.1 paf 1501: # Do `set' in a subshell so we don't clobber the current shell's
1502: # arguments. Must try -L first in case configure is actually a
1503: # symlink; some systems play weird games with the mod time of symlinks
1504: # (eg FreeBSD returns the mod time of the symlink's containing
1505: # directory).
1506: if (
1.62 paf 1507: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1508: if test "$*" = "X"; then
1509: # -L didn't work.
1.62 paf 1510: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1511: fi
1.62 paf 1512: rm -f conftest.file
1513: if test "$*" != "X $srcdir/configure conftest.file" \
1514: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1515:
1516: # If neither matched, then we have a broken ls. This can happen
1517: # if, for instance, CONFIG_SHELL is bash and it inherits a
1518: # broken ls alias from the environment. This has actually
1519: # happened. Such a system could not be considered "sane".
1.62 paf 1520: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1521: alias in your environment" >&5
1522: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1523: alias in your environment" >&2;}
1524: { (exit 1); exit 1; }; }
1.1 paf 1525: fi
1526:
1.62 paf 1527: test "$2" = conftest.file
1.1 paf 1528: )
1529: then
1530: # Ok.
1531: :
1532: else
1.62 paf 1533: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1534: Check your system clock" >&5
1535: echo "$as_me: error: newly created file is older than distributed files!
1536: Check your system clock" >&2;}
1537: { (exit 1); exit 1; }; }
1.1 paf 1538: fi
1.62 paf 1539: echo "$as_me:$LINENO: result: yes" >&5
1540: echo "${ECHO_T}yes" >&6
1.1 paf 1541: test "$program_prefix" != NONE &&
1.62 paf 1542: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1543: # Use a double $ so make ignores it.
1544: test "$program_suffix" != NONE &&
1.62 paf 1545: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1546: # Double any \ or $. echo might interpret backslashes.
1547: # By default was `s,x,x', remove it if useless.
1548: cat <<\_ACEOF >conftest.sed
1549: s/[\\$]/&&/g;s/;s,x,x,$//
1550: _ACEOF
1551: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1552: rm conftest.sed
1553:
1554: # expand $ac_aux_dir to an absolute path
1555: am_aux_dir=`cd $ac_aux_dir && pwd`
1556:
1557: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1558: # Use eval to expand $SHELL
1559: if eval "$MISSING --run true"; then
1560: am_missing_run="$MISSING --run "
1561: else
1562: am_missing_run=
1563: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1564: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1565: fi
1566:
1.86 paf 1567: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1568: # We used to keeping the `.' as first argument, in order to
1569: # allow $(mkdir_p) to be used without argument. As in
1570: # $(mkdir_p) $(somedir)
1571: # where $(somedir) is conditionally defined. However this is wrong
1572: # for two reasons:
1573: # 1. if the package is installed by a user who cannot write `.'
1574: # make install will fail,
1575: # 2. the above comment should most certainly read
1576: # $(mkdir_p) $(DESTDIR)$(somedir)
1577: # so it does not work when $(somedir) is undefined and
1578: # $(DESTDIR) is not.
1579: # To support the latter case, we have to write
1580: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1581: # so the `.' trick is pointless.
1582: mkdir_p='mkdir -p --'
1583: else
1584: # On NextStep and OpenStep, the `mkdir' command does not
1585: # recognize any option. It will interpret all options as
1586: # directories to create, and then abort because `.' already
1587: # exists.
1588: for d in ./-p ./--version;
1589: do
1590: test -d $d && rmdir $d
1591: done
1592: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1593: if test -f "$ac_aux_dir/mkinstalldirs"; then
1594: mkdir_p='$(mkinstalldirs)'
1595: else
1596: mkdir_p='$(install_sh) -d'
1597: fi
1598: fi
1599:
1.62 paf 1600: for ac_prog in gawk mawk nawk awk
1601: do
1602: # Extract the first word of "$ac_prog", so it can be a program name with args.
1603: set dummy $ac_prog; ac_word=$2
1604: echo "$as_me:$LINENO: checking for $ac_word" >&5
1605: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606: if test "${ac_cv_prog_AWK+set}" = set; then
1607: echo $ECHO_N "(cached) $ECHO_C" >&6
1608: else
1609: if test -n "$AWK"; then
1610: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1611: else
1612: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613: for as_dir in $PATH
1614: do
1615: IFS=$as_save_IFS
1616: test -z "$as_dir" && as_dir=.
1617: for ac_exec_ext in '' $ac_executable_extensions; do
1618: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619: ac_cv_prog_AWK="$ac_prog"
1620: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621: break 2
1622: fi
1623: done
1624: done
1625:
1626: fi
1627: fi
1628: AWK=$ac_cv_prog_AWK
1629: if test -n "$AWK"; then
1630: echo "$as_me:$LINENO: result: $AWK" >&5
1631: echo "${ECHO_T}$AWK" >&6
1632: else
1633: echo "$as_me:$LINENO: result: no" >&5
1634: echo "${ECHO_T}no" >&6
1635: fi
1.1 paf 1636:
1.62 paf 1637: test -n "$AWK" && break
1638: done
1.1 paf 1639:
1.62 paf 1640: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1641: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1642: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1643: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1644: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1645: else
1.62 paf 1646: cat >conftest.make <<\_ACEOF
1.1 paf 1647: all:
1.62 paf 1648: @echo 'ac_maketemp="$(MAKE)"'
1649: _ACEOF
1.1 paf 1650: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1651: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1652: if test -n "$ac_maketemp"; then
1653: eval ac_cv_prog_make_${ac_make}_set=yes
1654: else
1655: eval ac_cv_prog_make_${ac_make}_set=no
1656: fi
1.62 paf 1657: rm -f conftest.make
1.1 paf 1658: fi
1659: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1660: echo "$as_me:$LINENO: result: yes" >&5
1661: echo "${ECHO_T}yes" >&6
1.1 paf 1662: SET_MAKE=
1663: else
1.62 paf 1664: echo "$as_me:$LINENO: result: no" >&5
1665: echo "${ECHO_T}no" >&6
1.1 paf 1666: SET_MAKE="MAKE=${MAKE-make}"
1667: fi
1668:
1.86 paf 1669: rm -rf .tst 2>/dev/null
1670: mkdir .tst 2>/dev/null
1671: if test -d .tst; then
1672: am__leading_dot=.
1673: else
1674: am__leading_dot=_
1675: fi
1676: rmdir .tst 2>/dev/null
1677:
1678: # test to see if srcdir already configured
1.62 paf 1679: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1680: test -f $srcdir/config.status; then
1681: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1682: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1683: { (exit 1); exit 1; }; }
1684: fi
1685:
1686: # test whether we have cygpath
1687: if test -z "$CYGPATH_W"; then
1688: if (cygpath --version) >/dev/null 2>/dev/null; then
1689: CYGPATH_W='cygpath -w'
1690: else
1691: CYGPATH_W=echo
1692: fi
1693: fi
1694:
1695:
1696: # Define the identity of the package.
1.128 moko 1697: PACKAGE='parser'
1698: VERSION='3.4.2b'
1699:
1700:
1701: cat >>confdefs.h <<_ACEOF
1702: #define PACKAGE "$PACKAGE"
1703: _ACEOF
1.1 paf 1704:
1705:
1.128 moko 1706: cat >>confdefs.h <<_ACEOF
1707: #define VERSION "$VERSION"
1708: _ACEOF
1709:
1.62 paf 1710: # Some tools Automake needs.
1711:
1712: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1713:
1714:
1715: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1716:
1717:
1718: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1719:
1720:
1721: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1722:
1723:
1724: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1725:
1.62 paf 1726: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1727:
1.62 paf 1728: # Installed binaries are usually stripped using `strip' when the user
1729: # run `make install-strip'. However `strip' might not be the right
1730: # tool to use in cross-compilation environments, therefore Automake
1731: # will honor the `STRIP' environment variable to overrule this program.
1732: if test "$cross_compiling" != no; then
1733: if test -n "$ac_tool_prefix"; then
1734: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1735: set dummy ${ac_tool_prefix}strip; ac_word=$2
1736: echo "$as_me:$LINENO: checking for $ac_word" >&5
1737: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738: if test "${ac_cv_prog_STRIP+set}" = set; then
1739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1740: else
1.62 paf 1741: if test -n "$STRIP"; then
1742: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1743: else
1744: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745: for as_dir in $PATH
1746: do
1747: IFS=$as_save_IFS
1748: test -z "$as_dir" && as_dir=.
1749: for ac_exec_ext in '' $ac_executable_extensions; do
1750: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1752: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753: break 2
1754: fi
1755: done
1756: done
1757:
1758: fi
1759: fi
1760: STRIP=$ac_cv_prog_STRIP
1761: if test -n "$STRIP"; then
1762: echo "$as_me:$LINENO: result: $STRIP" >&5
1763: echo "${ECHO_T}$STRIP" >&6
1764: else
1765: echo "$as_me:$LINENO: result: no" >&5
1766: echo "${ECHO_T}no" >&6
1.1 paf 1767: fi
1768:
1.62 paf 1769: fi
1770: if test -z "$ac_cv_prog_STRIP"; then
1771: ac_ct_STRIP=$STRIP
1772: # Extract the first word of "strip", so it can be a program name with args.
1773: set dummy strip; ac_word=$2
1774: echo "$as_me:$LINENO: checking for $ac_word" >&5
1775: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1777: echo $ECHO_N "(cached) $ECHO_C" >&6
1778: else
1779: if test -n "$ac_ct_STRIP"; then
1780: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1781: else
1.62 paf 1782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783: for as_dir in $PATH
1784: do
1785: IFS=$as_save_IFS
1786: test -z "$as_dir" && as_dir=.
1787: for ac_exec_ext in '' $ac_executable_extensions; do
1788: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789: ac_cv_prog_ac_ct_STRIP="strip"
1790: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791: break 2
1792: fi
1793: done
1794: done
1795:
1796: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1797: fi
1.1 paf 1798: fi
1.62 paf 1799: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1800: if test -n "$ac_ct_STRIP"; then
1801: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1802: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1803: else
1.62 paf 1804: echo "$as_me:$LINENO: result: no" >&5
1805: echo "${ECHO_T}no" >&6
1.1 paf 1806: fi
1807:
1.62 paf 1808: STRIP=$ac_ct_STRIP
1.1 paf 1809: else
1.62 paf 1810: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1811: fi
1812:
1813: fi
1.62 paf 1814: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1815:
1816: # We need awk for the "check" target. The system "awk" is bad on
1817: # some platforms.
1.86 paf 1818: # Always define AMTAR for backward compatibility.
1819:
1820: AMTAR=${AMTAR-"${am_missing_run}tar"}
1821:
1822: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1823:
1824:
1.62 paf 1825:
1.1 paf 1826:
1827:
1828:
1.128 moko 1829:
1.12 paf 1830: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1831:
1832:
1.128 moko 1833:
1.41 paf 1834: # Make sure we can run config.sub.
1.62 paf 1835: $ac_config_sub sun4 >/dev/null 2>&1 ||
1836: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1837: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1838: { (exit 1); exit 1; }; }
1839:
1840: echo "$as_me:$LINENO: checking build system type" >&5
1841: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1842: if test "${ac_cv_build+set}" = set; then
1843: echo $ECHO_N "(cached) $ECHO_C" >&6
1844: else
1845: ac_cv_build_alias=$build_alias
1846: test -z "$ac_cv_build_alias" &&
1847: ac_cv_build_alias=`$ac_config_guess`
1848: test -z "$ac_cv_build_alias" &&
1849: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1850: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1851: { (exit 1); exit 1; }; }
1852: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1853: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1854: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1855: { (exit 1); exit 1; }; }
1856:
1857: fi
1858: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1859: echo "${ECHO_T}$ac_cv_build" >&6
1860: build=$ac_cv_build
1861: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1862: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1863: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1864:
1865:
1866: echo "$as_me:$LINENO: checking host system type" >&5
1867: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1868: if test "${ac_cv_host+set}" = set; then
1869: echo $ECHO_N "(cached) $ECHO_C" >&6
1870: else
1871: ac_cv_host_alias=$host_alias
1872: test -z "$ac_cv_host_alias" &&
1873: ac_cv_host_alias=$ac_cv_build_alias
1874: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1875: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1876: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1877: { (exit 1); exit 1; }; }
1878:
1879: fi
1880: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1881: echo "${ECHO_T}$ac_cv_host" >&6
1882: host=$ac_cv_host
1883: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1884: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1885: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1886:
1887:
1888:
1889: PARSER_VERSION="$VERSION (compiled on $host)"
1890: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1891: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1892: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1893: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1894: if test $? -ne 0 ; then
1895: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1896: echo Updated $srcdir/src/include/pa_version.h
1897: else
1898: rm -f $srcdir/src/include/pa_version.h.new
1899: fi
1900:
1.41 paf 1901:
1.67 paf 1902: case $host_os in
1903: *cygwin* )
1904: cat >>confdefs.h <<\_ACEOF
1905: #define CYGWIN
1906: _ACEOF
1907: ;;
1908: esac
1.41 paf 1909:
1.128 moko 1910:
1.1 paf 1911: # Find a good install program. We prefer a C program (faster),
1912: # so one script is as good as another. But avoid the broken or
1913: # incompatible versions:
1914: # SysV /etc/install, /usr/sbin/install
1915: # SunOS /usr/etc/install
1916: # IRIX /sbin/install
1917: # AIX /bin/install
1.62 paf 1918: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1919: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1920: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1921: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1922: # OS/2's system install, which has a completely different semantic
1.1 paf 1923: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1924: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1925: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1926: if test -z "$INSTALL"; then
1.62 paf 1927: if test "${ac_cv_path_install+set}" = set; then
1928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1929: else
1.62 paf 1930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931: for as_dir in $PATH
1932: do
1933: IFS=$as_save_IFS
1934: test -z "$as_dir" && as_dir=.
1935: # Account for people who put trailing slashes in PATH elements.
1936: case $as_dir/ in
1937: ./ | .// | /cC/* | \
1938: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1939: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1940: /usr/ucb/* ) ;;
1941: *)
1942: # OSF1 and SCO ODT 3.0 have their own names for install.
1943: # Don't use installbsd from OSF since it installs stuff as root
1944: # by default.
1945: for ac_prog in ginstall scoinst install; do
1946: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1947: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1948: if test $ac_prog = install &&
1949: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1950: # AIX install. It has an incompatible calling convention.
1951: :
1952: elif test $ac_prog = install &&
1953: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1954: # program-specific install script used by HP pwplus--don't use.
1955: :
1956: else
1957: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1958: break 3
1959: fi
1960: fi
1.1 paf 1961: done
1.62 paf 1962: done
1963: ;;
1964: esac
1965: done
1966:
1.1 paf 1967:
1968: fi
1969: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1970: INSTALL=$ac_cv_path_install
1.1 paf 1971: else
1972: # As a last resort, use the slow shell script. We don't cache a
1973: # path for INSTALL within a source directory, because that will
1974: # break other packages using the cache if that directory is
1975: # removed, or if the path is relative.
1.62 paf 1976: INSTALL=$ac_install_sh
1.1 paf 1977: fi
1978: fi
1.62 paf 1979: echo "$as_me:$LINENO: result: $INSTALL" >&5
1980: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1981:
1982: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1983: # It thinks the first close brace ends the variable substitution.
1984: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1985:
1.62 paf 1986: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1987:
1988: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1989:
1.62 paf 1990: for ac_prog in gawk mawk nawk awk
1.41 paf 1991: do
1.62 paf 1992: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 1993: set dummy $ac_prog; ac_word=$2
1.62 paf 1994: echo "$as_me:$LINENO: checking for $ac_word" >&5
1995: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996: if test "${ac_cv_prog_AWK+set}" = set; then
1997: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1998: else
1999: if test -n "$AWK"; then
2000: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2001: else
1.62 paf 2002: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003: for as_dir in $PATH
2004: do
2005: IFS=$as_save_IFS
2006: test -z "$as_dir" && as_dir=.
2007: for ac_exec_ext in '' $ac_executable_extensions; do
2008: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009: ac_cv_prog_AWK="$ac_prog"
2010: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011: break 2
2012: fi
2013: done
2014: done
2015:
1.41 paf 2016: fi
2017: fi
1.62 paf 2018: AWK=$ac_cv_prog_AWK
1.41 paf 2019: if test -n "$AWK"; then
1.62 paf 2020: echo "$as_me:$LINENO: result: $AWK" >&5
2021: echo "${ECHO_T}$AWK" >&6
1.41 paf 2022: else
1.62 paf 2023: echo "$as_me:$LINENO: result: no" >&5
2024: echo "${ECHO_T}no" >&6
1.41 paf 2025: fi
2026:
1.62 paf 2027: test -n "$AWK" && break
1.41 paf 2028: done
2029:
2030:
2031: for ac_prog in 'bison -y' byacc
2032: do
1.62 paf 2033: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2034: set dummy $ac_prog; ac_word=$2
1.62 paf 2035: echo "$as_me:$LINENO: checking for $ac_word" >&5
2036: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037: if test "${ac_cv_prog_YACC+set}" = set; then
2038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2039: else
2040: if test -n "$YACC"; then
2041: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2042: else
1.62 paf 2043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044: for as_dir in $PATH
2045: do
2046: IFS=$as_save_IFS
2047: test -z "$as_dir" && as_dir=.
2048: for ac_exec_ext in '' $ac_executable_extensions; do
2049: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050: ac_cv_prog_YACC="$ac_prog"
2051: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052: break 2
2053: fi
2054: done
2055: done
2056:
1.41 paf 2057: fi
2058: fi
1.62 paf 2059: YACC=$ac_cv_prog_YACC
1.41 paf 2060: if test -n "$YACC"; then
1.62 paf 2061: echo "$as_me:$LINENO: result: $YACC" >&5
2062: echo "${ECHO_T}$YACC" >&6
1.41 paf 2063: else
1.62 paf 2064: echo "$as_me:$LINENO: result: no" >&5
2065: echo "${ECHO_T}no" >&6
1.41 paf 2066: fi
2067:
1.62 paf 2068: test -n "$YACC" && break
1.41 paf 2069: done
2070: test -n "$YACC" || YACC="yacc"
2071:
2072: if test "$YACC" != "bison -y"; then
1.67 paf 2073: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2074: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2075: else
1.67 paf 2076: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2077: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2078: oldIFS=$IFS; IFS=.
2079: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2080: IFS=$oldIFS
2081: if test "$1" = "1" -a "$2" -lt "25"; then
2082: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2083: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2084: fi
2085: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2086: echo "${ECHO_T}$1.$2 (ok)" >&6
2087: fi
2088:
1.66 paf 2089: ac_ext=cc
2090: ac_cpp='$CXXCPP $CPPFLAGS'
2091: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2094: if test -n "$ac_tool_prefix"; then
1.66 paf 2095: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2096: do
2097: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2098: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2099: echo "$as_me:$LINENO: checking for $ac_word" >&5
2100: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2101: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2102: echo $ECHO_N "(cached) $ECHO_C" >&6
2103: else
1.66 paf 2104: if test -n "$CXX"; then
2105: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2106: else
2107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108: for as_dir in $PATH
2109: do
2110: IFS=$as_save_IFS
2111: test -z "$as_dir" && as_dir=.
2112: for ac_exec_ext in '' $ac_executable_extensions; do
2113: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2114: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2115: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116: break 2
2117: fi
2118: done
2119: done
2120:
2121: fi
2122: fi
1.66 paf 2123: CXX=$ac_cv_prog_CXX
2124: if test -n "$CXX"; then
2125: echo "$as_me:$LINENO: result: $CXX" >&5
2126: echo "${ECHO_T}$CXX" >&6
1.62 paf 2127: else
2128: echo "$as_me:$LINENO: result: no" >&5
2129: echo "${ECHO_T}no" >&6
1.41 paf 2130: fi
2131:
1.66 paf 2132: test -n "$CXX" && break
2133: done
1.62 paf 2134: fi
1.66 paf 2135: if test -z "$CXX"; then
2136: ac_ct_CXX=$CXX
2137: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2138: do
2139: # Extract the first word of "$ac_prog", so it can be a program name with args.
2140: set dummy $ac_prog; ac_word=$2
1.62 paf 2141: echo "$as_me:$LINENO: checking for $ac_word" >&5
2142: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2143: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2144: echo $ECHO_N "(cached) $ECHO_C" >&6
2145: else
1.66 paf 2146: if test -n "$ac_ct_CXX"; then
2147: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2148: else
2149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150: for as_dir in $PATH
2151: do
2152: IFS=$as_save_IFS
2153: test -z "$as_dir" && as_dir=.
2154: for ac_exec_ext in '' $ac_executable_extensions; do
2155: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2156: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2157: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158: break 2
2159: fi
2160: done
2161: done
2162:
2163: fi
2164: fi
1.66 paf 2165: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2166: if test -n "$ac_ct_CXX"; then
2167: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2168: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2169: else
2170: echo "$as_me:$LINENO: result: no" >&5
2171: echo "${ECHO_T}no" >&6
2172: fi
2173:
1.66 paf 2174: test -n "$ac_ct_CXX" && break
2175: done
2176: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2177:
2178: CXX=$ac_ct_CXX
1.62 paf 2179: fi
2180:
1.66 paf 2181:
2182: # Provide some information about the compiler.
2183: echo "$as_me:$LINENO:" \
2184: "checking for C++ compiler version" >&5
2185: ac_compiler=`set X $ac_compile; echo $2`
2186: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187: (eval $ac_compiler --version </dev/null >&5) 2>&5
2188: ac_status=$?
2189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190: (exit $ac_status); }
2191: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192: (eval $ac_compiler -v </dev/null >&5) 2>&5
2193: ac_status=$?
2194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195: (exit $ac_status); }
2196: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197: (eval $ac_compiler -V </dev/null >&5) 2>&5
2198: ac_status=$?
2199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200: (exit $ac_status); }
2201:
2202: cat >conftest.$ac_ext <<_ACEOF
2203: /* confdefs.h. */
2204: _ACEOF
2205: cat confdefs.h >>conftest.$ac_ext
2206: cat >>conftest.$ac_ext <<_ACEOF
2207: /* end confdefs.h. */
2208:
2209: int
2210: main ()
2211: {
2212:
2213: ;
2214: return 0;
2215: }
2216: _ACEOF
2217: ac_clean_files_save=$ac_clean_files
2218: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219: # Try to create an executable without -o first, disregard a.out.
2220: # It will help us diagnose broken compilers, and finding out an intuition
2221: # of exeext.
1.86 paf 2222: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2223: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2224: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226: (eval $ac_link_default) 2>&5
2227: ac_status=$?
2228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229: (exit $ac_status); }; then
2230: # Find the output, starting from the most likely. This scheme is
2231: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232: # resort.
2233:
2234: # Be careful to initialize this variable, since it used to be cached.
2235: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236: ac_cv_exeext=
2237: # b.out is created by i960 compilers.
2238: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2239: do
1.66 paf 2240: test -f "$ac_file" || continue
2241: case $ac_file in
2242: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2243: ;;
1.66 paf 2244: conftest.$ac_ext )
1.86 paf 2245: # This is the source file.
2246: ;;
1.66 paf 2247: [ab].out )
1.86 paf 2248: # We found the default executable, but exeext='' is most
2249: # certainly right.
2250: break;;
1.66 paf 2251: *.* )
1.86 paf 2252: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253: # FIXME: I believe we export ac_cv_exeext for Libtool,
2254: # but it would be cool to find out if it's true. Does anybody
2255: # maintain Libtool? --akim.
2256: export ac_cv_exeext
2257: break;;
1.66 paf 2258: * )
1.86 paf 2259: break;;
1.66 paf 2260: esac
1.62 paf 2261: done
1.66 paf 2262: else
2263: echo "$as_me: failed program was:" >&5
2264: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2265:
1.66 paf 2266: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2267: See \`config.log' for more details." >&5
2268: echo "$as_me: error: C++ compiler cannot create executables
2269: See \`config.log' for more details." >&2;}
2270: { (exit 77); exit 77; }; }
1.1 paf 2271: fi
1.66 paf 2272:
2273: ac_exeext=$ac_cv_exeext
2274: echo "$as_me:$LINENO: result: $ac_file" >&5
2275: echo "${ECHO_T}$ac_file" >&6
2276:
2277: # Check the compiler produces executables we can run. If not, either
2278: # the compiler is broken, or we cross compile.
2279: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2280: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2281: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282: # If not cross compiling, check that we can run a simple program.
2283: if test "$cross_compiling" != yes; then
2284: if { ac_try='./$ac_file'
2285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286: (eval $ac_try) 2>&5
2287: ac_status=$?
2288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289: (exit $ac_status); }; }; then
2290: cross_compiling=no
2291: else
2292: if test "$cross_compiling" = maybe; then
2293: cross_compiling=yes
2294: else
2295: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2296: If you meant to cross compile, use \`--host'.
2297: See \`config.log' for more details." >&5
2298: echo "$as_me: error: cannot run C++ compiled programs.
2299: If you meant to cross compile, use \`--host'.
2300: See \`config.log' for more details." >&2;}
2301: { (exit 1); exit 1; }; }
2302: fi
2303: fi
1.1 paf 2304: fi
1.66 paf 2305: echo "$as_me:$LINENO: result: yes" >&5
2306: echo "${ECHO_T}yes" >&6
1.62 paf 2307:
1.66 paf 2308: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309: ac_clean_files=$ac_clean_files_save
2310: # Check the compiler produces executables we can run. If not, either
1.62 paf 2311: # the compiler is broken, or we cross compile.
2312: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315: echo "${ECHO_T}$cross_compiling" >&6
2316:
2317: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320: (eval $ac_link) 2>&5
2321: ac_status=$?
2322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323: (exit $ac_status); }; then
2324: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2326: # work properly (i.e., refer to `conftest.exe'), while it won't with
2327: # `rm'.
2328: for ac_file in conftest.exe conftest conftest.*; do
2329: test -f "$ac_file" || continue
2330: case $ac_file in
2331: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2333: export ac_cv_exeext
2334: break;;
1.62 paf 2335: * ) break;;
2336: esac
2337: done
2338: else
2339: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340: See \`config.log' for more details." >&5
2341: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342: See \`config.log' for more details." >&2;}
2343: { (exit 1); exit 1; }; }
2344: fi
2345:
2346: rm -f conftest$ac_cv_exeext
2347: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348: echo "${ECHO_T}$ac_cv_exeext" >&6
2349:
2350: rm -f conftest.$ac_ext
2351: EXEEXT=$ac_cv_exeext
2352: ac_exeext=$EXEEXT
2353: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355: if test "${ac_cv_objext+set}" = set; then
2356: echo $ECHO_N "(cached) $ECHO_C" >&6
2357: else
2358: cat >conftest.$ac_ext <<_ACEOF
2359: /* confdefs.h. */
2360: _ACEOF
2361: cat confdefs.h >>conftest.$ac_ext
2362: cat >>conftest.$ac_ext <<_ACEOF
2363: /* end confdefs.h. */
2364:
2365: int
2366: main ()
2367: {
2368:
2369: ;
2370: return 0;
2371: }
2372: _ACEOF
2373: rm -f conftest.o conftest.obj
2374: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375: (eval $ac_compile) 2>&5
2376: ac_status=$?
2377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378: (exit $ac_status); }; then
2379: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380: case $ac_file in
2381: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383: break;;
2384: esac
2385: done
2386: else
2387: echo "$as_me: failed program was:" >&5
2388: sed 's/^/| /' conftest.$ac_ext >&5
2389:
2390: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391: See \`config.log' for more details." >&5
2392: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393: See \`config.log' for more details." >&2;}
2394: { (exit 1); exit 1; }; }
2395: fi
2396:
2397: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398: fi
1.66 paf 2399: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400: echo "${ECHO_T}$ac_cv_objext" >&6
2401: OBJEXT=$ac_cv_objext
2402: ac_objext=$OBJEXT
2403: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2404: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2405: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2406: echo $ECHO_N "(cached) $ECHO_C" >&6
2407: else
1.66 paf 2408: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2409: /* confdefs.h. */
2410: _ACEOF
2411: cat confdefs.h >>conftest.$ac_ext
2412: cat >>conftest.$ac_ext <<_ACEOF
2413: /* end confdefs.h. */
1.66 paf 2414:
1.62 paf 2415: int
2416: main ()
2417: {
1.66 paf 2418: #ifndef __GNUC__
2419: choke me
2420: #endif
2421:
1.62 paf 2422: ;
2423: return 0;
2424: }
2425: _ACEOF
1.66 paf 2426: rm -f conftest.$ac_objext
1.62 paf 2427: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2428: (eval $ac_compile) 2>conftest.er1
1.62 paf 2429: ac_status=$?
1.86 paf 2430: grep -v '^ *+' conftest.er1 >conftest.err
2431: rm -f conftest.er1
2432: cat conftest.err >&5
1.62 paf 2433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434: (exit $ac_status); } &&
1.86 paf 2435: { ac_try='test -z "$ac_cxx_werror_flag"
2436: || test ! -s conftest.err'
2437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438: (eval $ac_try) 2>&5
2439: ac_status=$?
2440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441: (exit $ac_status); }; } &&
2442: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444: (eval $ac_try) 2>&5
2445: ac_status=$?
2446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447: (exit $ac_status); }; }; then
1.66 paf 2448: ac_compiler_gnu=yes
1.62 paf 2449: else
2450: echo "$as_me: failed program was:" >&5
2451: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2452:
1.66 paf 2453: ac_compiler_gnu=no
1.1 paf 2454: fi
1.86 paf 2455: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2456: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2457:
2458: fi
1.66 paf 2459: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2460: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2461: GXX=`test $ac_compiler_gnu = yes && echo yes`
2462: ac_test_CXXFLAGS=${CXXFLAGS+set}
2463: ac_save_CXXFLAGS=$CXXFLAGS
2464: CXXFLAGS="-g"
2465: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2466: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2467: if test "${ac_cv_prog_cxx_g+set}" = set; then
2468: echo $ECHO_N "(cached) $ECHO_C" >&6
2469: else
2470: cat >conftest.$ac_ext <<_ACEOF
2471: /* confdefs.h. */
2472: _ACEOF
2473: cat confdefs.h >>conftest.$ac_ext
2474: cat >>conftest.$ac_ext <<_ACEOF
2475: /* end confdefs.h. */
1.1 paf 2476:
1.66 paf 2477: int
2478: main ()
2479: {
1.1 paf 2480:
1.66 paf 2481: ;
2482: return 0;
2483: }
1.62 paf 2484: _ACEOF
2485: rm -f conftest.$ac_objext
2486: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2487: (eval $ac_compile) 2>conftest.er1
1.62 paf 2488: ac_status=$?
1.86 paf 2489: grep -v '^ *+' conftest.er1 >conftest.err
2490: rm -f conftest.er1
2491: cat conftest.err >&5
1.62 paf 2492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493: (exit $ac_status); } &&
1.86 paf 2494: { ac_try='test -z "$ac_cxx_werror_flag"
2495: || test ! -s conftest.err'
2496: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497: (eval $ac_try) 2>&5
2498: ac_status=$?
2499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500: (exit $ac_status); }; } &&
2501: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503: (eval $ac_try) 2>&5
2504: ac_status=$?
2505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506: (exit $ac_status); }; }; then
1.66 paf 2507: ac_cv_prog_cxx_g=yes
2508: else
2509: echo "$as_me: failed program was:" >&5
2510: sed 's/^/| /' conftest.$ac_ext >&5
2511:
2512: ac_cv_prog_cxx_g=no
2513: fi
1.86 paf 2514: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2515: fi
2516: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2517: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2518: if test "$ac_test_CXXFLAGS" = set; then
2519: CXXFLAGS=$ac_save_CXXFLAGS
2520: elif test $ac_cv_prog_cxx_g = yes; then
2521: if test "$GXX" = yes; then
2522: CXXFLAGS="-g -O2"
2523: else
2524: CXXFLAGS="-g"
2525: fi
2526: else
2527: if test "$GXX" = yes; then
2528: CXXFLAGS="-O2"
2529: else
2530: CXXFLAGS=
2531: fi
2532: fi
2533: for ac_declaration in \
1.86 paf 2534: '' \
1.62 paf 2535: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2536: 'extern "C" void std::exit (int); using std::exit;' \
2537: 'extern "C" void exit (int) throw ();' \
2538: 'extern "C" void exit (int);' \
2539: 'void exit (int);'
1.1 paf 2540: do
1.62 paf 2541: cat >conftest.$ac_ext <<_ACEOF
2542: /* confdefs.h. */
2543: _ACEOF
2544: cat confdefs.h >>conftest.$ac_ext
2545: cat >>conftest.$ac_ext <<_ACEOF
2546: /* end confdefs.h. */
1.86 paf 2547: $ac_declaration
1.62 paf 2548: #include <stdlib.h>
2549: int
2550: main ()
2551: {
2552: exit (42);
2553: ;
2554: return 0;
2555: }
2556: _ACEOF
2557: rm -f conftest.$ac_objext
2558: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2559: (eval $ac_compile) 2>conftest.er1
1.62 paf 2560: ac_status=$?
1.86 paf 2561: grep -v '^ *+' conftest.er1 >conftest.err
2562: rm -f conftest.er1
2563: cat conftest.err >&5
1.62 paf 2564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565: (exit $ac_status); } &&
1.86 paf 2566: { ac_try='test -z "$ac_cxx_werror_flag"
2567: || test ! -s conftest.err'
2568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569: (eval $ac_try) 2>&5
2570: ac_status=$?
2571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572: (exit $ac_status); }; } &&
2573: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575: (eval $ac_try) 2>&5
2576: ac_status=$?
2577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578: (exit $ac_status); }; }; then
2579: :
1.1 paf 2580: else
1.62 paf 2581: echo "$as_me: failed program was:" >&5
2582: sed 's/^/| /' conftest.$ac_ext >&5
2583:
2584: continue
2585: fi
1.86 paf 2586: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2587: cat >conftest.$ac_ext <<_ACEOF
2588: /* confdefs.h. */
2589: _ACEOF
2590: cat confdefs.h >>conftest.$ac_ext
2591: cat >>conftest.$ac_ext <<_ACEOF
2592: /* end confdefs.h. */
2593: $ac_declaration
2594: int
2595: main ()
2596: {
2597: exit (42);
2598: ;
2599: return 0;
2600: }
2601: _ACEOF
2602: rm -f conftest.$ac_objext
2603: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2604: (eval $ac_compile) 2>conftest.er1
1.62 paf 2605: ac_status=$?
1.86 paf 2606: grep -v '^ *+' conftest.er1 >conftest.err
2607: rm -f conftest.er1
2608: cat conftest.err >&5
1.62 paf 2609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610: (exit $ac_status); } &&
1.86 paf 2611: { ac_try='test -z "$ac_cxx_werror_flag"
2612: || test ! -s conftest.err'
2613: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614: (eval $ac_try) 2>&5
2615: ac_status=$?
2616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617: (exit $ac_status); }; } &&
2618: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2619: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620: (eval $ac_try) 2>&5
2621: ac_status=$?
2622: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623: (exit $ac_status); }; }; then
2624: break
1.1 paf 2625: else
1.62 paf 2626: echo "$as_me: failed program was:" >&5
2627: sed 's/^/| /' conftest.$ac_ext >&5
2628:
1.1 paf 2629: fi
1.86 paf 2630: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2631: done
2632: rm -f conftest*
2633: if test -n "$ac_declaration"; then
2634: echo '#ifdef __cplusplus' >>confdefs.h
2635: echo $ac_declaration >>confdefs.h
2636: echo '#endif' >>confdefs.h
1.1 paf 2637: fi
1.62 paf 2638:
2639: ac_ext=c
2640: ac_cpp='$CPP $CPPFLAGS'
2641: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2644: DEPDIR="${am__leading_dot}deps"
1.62 paf 2645:
2646: ac_config_commands="$ac_config_commands depfiles"
2647:
2648:
2649: am_make=${MAKE-make}
2650: cat > confinc << 'END'
1.86 paf 2651: am__doit:
1.62 paf 2652: @echo done
1.86 paf 2653: .PHONY: am__doit
1.62 paf 2654: END
2655: # If we don't find an include directive, just comment out the code.
2656: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2657: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2658: am__include="#"
2659: am__quote=
2660: _am_result=none
2661: # First try GNU make style include.
2662: echo "include confinc" > confmf
2663: # We grep out `Entering directory' and `Leaving directory'
2664: # messages which can occur if `w' ends up in MAKEFLAGS.
2665: # In particular we don't look at `^make:' because GNU make might
2666: # be invoked under some other name (usually "gmake"), in which
2667: # case it prints its new name instead of `make'.
2668: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2669: am__include=include
2670: am__quote=
2671: _am_result=GNU
2672: fi
2673: # Now try BSD make style include.
2674: if test "$am__include" = "#"; then
2675: echo '.include "confinc"' > confmf
2676: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2677: am__include=.include
2678: am__quote="\""
2679: _am_result=BSD
2680: fi
2681: fi
2682:
2683:
2684: echo "$as_me:$LINENO: result: $_am_result" >&5
2685: echo "${ECHO_T}$_am_result" >&6
2686: rm -f confinc confmf
2687:
2688: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2689: if test "${enable_dependency_tracking+set}" = set; then
2690: enableval="$enable_dependency_tracking"
2691:
2692: fi;
2693: if test "x$enable_dependency_tracking" != xno; then
2694: am_depcomp="$ac_aux_dir/depcomp"
2695: AMDEPBACKSLASH='\'
1.1 paf 2696: fi
2697:
1.62 paf 2698:
2699: if test "x$enable_dependency_tracking" != xno; then
2700: AMDEP_TRUE=
2701: AMDEP_FALSE='#'
2702: else
2703: AMDEP_TRUE='#'
2704: AMDEP_FALSE=
2705: fi
1.1 paf 2706:
2707:
2708:
2709:
1.66 paf 2710: depcc="$CXX" am_compiler_list=
1.1 paf 2711:
1.62 paf 2712: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2713: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2714: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2715: echo $ECHO_N "(cached) $ECHO_C" >&6
2716: else
2717: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2718: # We make a subdir and do the tests there. Otherwise we can end up
2719: # making bogus files that we don't know about and never remove. For
2720: # instance it was reported that on HP-UX the gcc test will end up
2721: # making a dummy file named `D' -- because `-MD' means `put the output
2722: # in D'.
2723: mkdir conftest.dir
2724: # Copy depcomp to subdir because otherwise we won't find it if we're
2725: # using a relative directory.
2726: cp "$am_depcomp" conftest.dir
2727: cd conftest.dir
1.86 paf 2728: # We will build objects and dependencies in a subdirectory because
2729: # it helps to detect inapplicable dependency modes. For instance
2730: # both Tru64's cc and ICC support -MD to output dependencies as a
2731: # side effect of compilation, but ICC will put the dependencies in
2732: # the current directory while Tru64 will put them in the object
2733: # directory.
2734: mkdir sub
1.1 paf 2735:
1.66 paf 2736: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2737: if test "$am_compiler_list" = ""; then
2738: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2739: fi
1.62 paf 2740: for depmode in $am_compiler_list; do
1.86 paf 2741: # Setup a source with many dependencies, because some compilers
2742: # like to wrap large dependency lists on column 80 (with \), and
2743: # we should not choose a depcomp mode which is confused by this.
2744: #
1.62 paf 2745: # We need to recreate these files for each test, as the compiler may
2746: # overwrite some of them when testing with obscure command lines.
2747: # This happens at least with the AIX C compiler.
1.86 paf 2748: : > sub/conftest.c
2749: for i in 1 2 3 4 5 6; do
2750: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2751: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2752: # Solaris 8's {/usr,}/bin/sh.
2753: touch sub/conftst$i.h
2754: done
2755: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2756:
2757: case $depmode in
2758: nosideeffect)
2759: # after this tag, mechanisms are not by side-effect, so they'll
2760: # only be used when explicitly requested
2761: if test "x$enable_dependency_tracking" = xyes; then
2762: continue
2763: else
2764: break
2765: fi
2766: ;;
2767: none) break ;;
2768: esac
2769: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2770: # mode. It turns out that the SunPro C++ compiler does not properly
2771: # handle `-M -o', and we need to detect this.
2772: if depmode=$depmode \
1.86 paf 2773: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2774: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2775: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2776: >/dev/null 2>conftest.err &&
2777: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2778: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2779: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2780: # icc doesn't choke on unknown options, it will just issue warnings
2781: # or remarks (even with -Werror). So we grep stderr for any message
2782: # that says an option was ignored or not supported.
2783: # When given -MP, icc 7.0 and 7.1 complain thusly:
2784: # icc: Command line warning: ignoring option '-M'; no argument required
2785: # The diagnosis changed in icc 8.0:
2786: # icc: Command line remark: option '-MP' not supported
2787: if (grep 'ignoring option' conftest.err ||
2788: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2789: am_cv_CXX_dependencies_compiler_type=$depmode
2790: break
2791: fi
1.66 paf 2792: fi
2793: done
2794:
2795: cd ..
2796: rm -rf conftest.dir
2797: else
2798: am_cv_CXX_dependencies_compiler_type=none
2799: fi
2800:
2801: fi
2802: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2803: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2804: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2805:
2806:
2807:
2808: if
2809: test "x$enable_dependency_tracking" != xno \
2810: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2811: am__fastdepCXX_TRUE=
2812: am__fastdepCXX_FALSE='#'
2813: else
2814: am__fastdepCXX_TRUE='#'
2815: am__fastdepCXX_FALSE=
2816: fi
2817:
2818:
2819: ac_ext=c
2820: ac_cpp='$CPP $CPPFLAGS'
2821: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824: if test -n "$ac_tool_prefix"; then
2825: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2826: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2827: echo "$as_me:$LINENO: checking for $ac_word" >&5
2828: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829: if test "${ac_cv_prog_CC+set}" = set; then
2830: echo $ECHO_N "(cached) $ECHO_C" >&6
2831: else
2832: if test -n "$CC"; then
2833: ac_cv_prog_CC="$CC" # Let the user override the test.
2834: else
2835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836: for as_dir in $PATH
2837: do
2838: IFS=$as_save_IFS
2839: test -z "$as_dir" && as_dir=.
2840: for ac_exec_ext in '' $ac_executable_extensions; do
2841: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2843: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844: break 2
2845: fi
2846: done
2847: done
2848:
2849: fi
2850: fi
2851: CC=$ac_cv_prog_CC
2852: if test -n "$CC"; then
2853: echo "$as_me:$LINENO: result: $CC" >&5
2854: echo "${ECHO_T}$CC" >&6
2855: else
2856: echo "$as_me:$LINENO: result: no" >&5
2857: echo "${ECHO_T}no" >&6
2858: fi
2859:
2860: fi
2861: if test -z "$ac_cv_prog_CC"; then
2862: ac_ct_CC=$CC
2863: # Extract the first word of "gcc", so it can be a program name with args.
2864: set dummy gcc; ac_word=$2
2865: echo "$as_me:$LINENO: checking for $ac_word" >&5
2866: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2868: echo $ECHO_N "(cached) $ECHO_C" >&6
2869: else
2870: if test -n "$ac_ct_CC"; then
2871: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2872: else
2873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874: for as_dir in $PATH
2875: do
2876: IFS=$as_save_IFS
2877: test -z "$as_dir" && as_dir=.
2878: for ac_exec_ext in '' $ac_executable_extensions; do
2879: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880: ac_cv_prog_ac_ct_CC="gcc"
2881: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882: break 2
2883: fi
2884: done
2885: done
2886:
2887: fi
2888: fi
2889: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2890: if test -n "$ac_ct_CC"; then
2891: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2892: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2893: else
1.66 paf 2894: echo "$as_me:$LINENO: result: no" >&5
2895: echo "${ECHO_T}no" >&6
1.62 paf 2896: fi
2897:
1.66 paf 2898: CC=$ac_ct_CC
2899: else
2900: CC="$ac_cv_prog_CC"
1.1 paf 2901: fi
1.62 paf 2902:
1.66 paf 2903: if test -z "$CC"; then
2904: if test -n "$ac_tool_prefix"; then
2905: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2906: set dummy ${ac_tool_prefix}cc; ac_word=$2
2907: echo "$as_me:$LINENO: checking for $ac_word" >&5
2908: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909: if test "${ac_cv_prog_CC+set}" = set; then
2910: echo $ECHO_N "(cached) $ECHO_C" >&6
2911: else
2912: if test -n "$CC"; then
2913: ac_cv_prog_CC="$CC" # Let the user override the test.
2914: else
2915: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916: for as_dir in $PATH
2917: do
2918: IFS=$as_save_IFS
2919: test -z "$as_dir" && as_dir=.
2920: for ac_exec_ext in '' $ac_executable_extensions; do
2921: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922: ac_cv_prog_CC="${ac_tool_prefix}cc"
2923: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924: break 2
2925: fi
2926: done
2927: done
1.62 paf 2928:
1.66 paf 2929: fi
2930: fi
2931: CC=$ac_cv_prog_CC
2932: if test -n "$CC"; then
2933: echo "$as_me:$LINENO: result: $CC" >&5
2934: echo "${ECHO_T}$CC" >&6
1.62 paf 2935: else
1.66 paf 2936: echo "$as_me:$LINENO: result: no" >&5
2937: echo "${ECHO_T}no" >&6
1.1 paf 2938: fi
2939:
1.66 paf 2940: fi
2941: if test -z "$ac_cv_prog_CC"; then
2942: ac_ct_CC=$CC
2943: # Extract the first word of "cc", so it can be a program name with args.
2944: set dummy cc; ac_word=$2
2945: echo "$as_me:$LINENO: checking for $ac_word" >&5
2946: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2948: echo $ECHO_N "(cached) $ECHO_C" >&6
2949: else
2950: if test -n "$ac_ct_CC"; then
2951: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952: else
2953: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954: for as_dir in $PATH
2955: do
2956: IFS=$as_save_IFS
2957: test -z "$as_dir" && as_dir=.
2958: for ac_exec_ext in '' $ac_executable_extensions; do
2959: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960: ac_cv_prog_ac_ct_CC="cc"
2961: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962: break 2
2963: fi
2964: done
2965: done
1.62 paf 2966:
1.66 paf 2967: fi
2968: fi
2969: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970: if test -n "$ac_ct_CC"; then
2971: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2972: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2973: else
1.66 paf 2974: echo "$as_me:$LINENO: result: no" >&5
2975: echo "${ECHO_T}no" >&6
2976: fi
1.62 paf 2977:
1.66 paf 2978: CC=$ac_ct_CC
1.1 paf 2979: else
1.66 paf 2980: CC="$ac_cv_prog_CC"
2981: fi
1.62 paf 2982:
1.1 paf 2983: fi
1.66 paf 2984: if test -z "$CC"; then
2985: # Extract the first word of "cc", so it can be a program name with args.
2986: set dummy cc; ac_word=$2
2987: echo "$as_me:$LINENO: checking for $ac_word" >&5
2988: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2989: if test "${ac_cv_prog_CC+set}" = set; then
2990: echo $ECHO_N "(cached) $ECHO_C" >&6
2991: else
2992: if test -n "$CC"; then
2993: ac_cv_prog_CC="$CC" # Let the user override the test.
2994: else
2995: ac_prog_rejected=no
2996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997: for as_dir in $PATH
2998: do
2999: IFS=$as_save_IFS
3000: test -z "$as_dir" && as_dir=.
3001: for ac_exec_ext in '' $ac_executable_extensions; do
3002: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004: ac_prog_rejected=yes
3005: continue
3006: fi
3007: ac_cv_prog_CC="cc"
3008: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009: break 2
3010: fi
3011: done
1.62 paf 3012: done
3013:
1.66 paf 3014: if test $ac_prog_rejected = yes; then
3015: # We found a bogon in the path, so make sure we never use it.
3016: set dummy $ac_cv_prog_CC
3017: shift
3018: if test $# != 0; then
3019: # We chose a different compiler from the bogus one.
3020: # However, it has the same basename, so the bogon will be chosen
3021: # first if we set CC to just the basename; use the full file name.
3022: shift
3023: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024: fi
3025: fi
3026: fi
3027: fi
3028: CC=$ac_cv_prog_CC
3029: if test -n "$CC"; then
3030: echo "$as_me:$LINENO: result: $CC" >&5
3031: echo "${ECHO_T}$CC" >&6
3032: else
3033: echo "$as_me:$LINENO: result: no" >&5
3034: echo "${ECHO_T}no" >&6
1.1 paf 3035: fi
3036:
1.66 paf 3037: fi
3038: if test -z "$CC"; then
3039: if test -n "$ac_tool_prefix"; then
3040: for ac_prog in cl
1.62 paf 3041: do
3042: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044: echo "$as_me:$LINENO: checking for $ac_word" >&5
3045: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3046: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3047: echo $ECHO_N "(cached) $ECHO_C" >&6
3048: else
1.66 paf 3049: if test -n "$CC"; then
3050: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3051: else
3052: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053: for as_dir in $PATH
3054: do
3055: IFS=$as_save_IFS
3056: test -z "$as_dir" && as_dir=.
3057: for ac_exec_ext in '' $ac_executable_extensions; do
3058: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3059: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3060: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061: break 2
3062: fi
3063: done
3064: done
1.1 paf 3065:
1.62 paf 3066: fi
3067: fi
1.66 paf 3068: CC=$ac_cv_prog_CC
3069: if test -n "$CC"; then
3070: echo "$as_me:$LINENO: result: $CC" >&5
3071: echo "${ECHO_T}$CC" >&6
1.1 paf 3072: else
1.62 paf 3073: echo "$as_me:$LINENO: result: no" >&5
3074: echo "${ECHO_T}no" >&6
1.1 paf 3075: fi
3076:
1.66 paf 3077: test -n "$CC" && break
1.62 paf 3078: done
3079: fi
1.66 paf 3080: if test -z "$CC"; then
3081: ac_ct_CC=$CC
3082: for ac_prog in cl
1.62 paf 3083: do
3084: # Extract the first word of "$ac_prog", so it can be a program name with args.
3085: set dummy $ac_prog; ac_word=$2
3086: echo "$as_me:$LINENO: checking for $ac_word" >&5
3087: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3088: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3089: echo $ECHO_N "(cached) $ECHO_C" >&6
3090: else
1.66 paf 3091: if test -n "$ac_ct_CC"; then
3092: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3093: else
1.62 paf 3094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095: for as_dir in $PATH
3096: do
3097: IFS=$as_save_IFS
3098: test -z "$as_dir" && as_dir=.
3099: for ac_exec_ext in '' $ac_executable_extensions; do
3100: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3101: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3102: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103: break 2
3104: fi
3105: done
3106: done
3107:
3108: fi
3109: fi
1.66 paf 3110: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111: if test -n "$ac_ct_CC"; then
3112: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3113: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3114: else
1.62 paf 3115: echo "$as_me:$LINENO: result: no" >&5
3116: echo "${ECHO_T}no" >&6
1.1 paf 3117: fi
3118:
1.66 paf 3119: test -n "$ac_ct_CC" && break
3120: done
3121:
3122: CC=$ac_ct_CC
3123: fi
3124:
3125: fi
1.62 paf 3126:
1.1 paf 3127:
1.66 paf 3128: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3129: See \`config.log' for more details." >&5
3130: echo "$as_me: error: no acceptable C compiler found in \$PATH
3131: See \`config.log' for more details." >&2;}
3132: { (exit 1); exit 1; }; }
1.62 paf 3133:
3134: # Provide some information about the compiler.
3135: echo "$as_me:$LINENO:" \
1.66 paf 3136: "checking for C compiler version" >&5
1.62 paf 3137: ac_compiler=`set X $ac_compile; echo $2`
3138: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3139: (eval $ac_compiler --version </dev/null >&5) 2>&5
3140: ac_status=$?
3141: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142: (exit $ac_status); }
3143: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3144: (eval $ac_compiler -v </dev/null >&5) 2>&5
3145: ac_status=$?
3146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147: (exit $ac_status); }
3148: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3149: (eval $ac_compiler -V </dev/null >&5) 2>&5
3150: ac_status=$?
3151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152: (exit $ac_status); }
3153:
1.66 paf 3154: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3156: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3157: echo $ECHO_N "(cached) $ECHO_C" >&6
3158: else
3159: cat >conftest.$ac_ext <<_ACEOF
3160: /* confdefs.h. */
3161: _ACEOF
3162: cat confdefs.h >>conftest.$ac_ext
3163: cat >>conftest.$ac_ext <<_ACEOF
3164: /* end confdefs.h. */
3165:
3166: int
3167: main ()
3168: {
3169: #ifndef __GNUC__
3170: choke me
3171: #endif
3172:
3173: ;
3174: return 0;
3175: }
3176: _ACEOF
3177: rm -f conftest.$ac_objext
3178: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3179: (eval $ac_compile) 2>conftest.er1
1.62 paf 3180: ac_status=$?
1.86 paf 3181: grep -v '^ *+' conftest.er1 >conftest.err
3182: rm -f conftest.er1
3183: cat conftest.err >&5
1.62 paf 3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); } &&
1.86 paf 3186: { ac_try='test -z "$ac_c_werror_flag"
3187: || test ! -s conftest.err'
3188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189: (eval $ac_try) 2>&5
3190: ac_status=$?
3191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192: (exit $ac_status); }; } &&
3193: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195: (eval $ac_try) 2>&5
3196: ac_status=$?
3197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198: (exit $ac_status); }; }; then
3199: ac_compiler_gnu=yes
3200: else
3201: echo "$as_me: failed program was:" >&5
3202: sed 's/^/| /' conftest.$ac_ext >&5
3203:
3204: ac_compiler_gnu=no
3205: fi
1.86 paf 3206: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3207: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3208:
3209: fi
1.66 paf 3210: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3211: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3212: GCC=`test $ac_compiler_gnu = yes && echo yes`
3213: ac_test_CFLAGS=${CFLAGS+set}
3214: ac_save_CFLAGS=$CFLAGS
3215: CFLAGS="-g"
3216: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3217: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3218: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3219: echo $ECHO_N "(cached) $ECHO_C" >&6
3220: else
3221: cat >conftest.$ac_ext <<_ACEOF
3222: /* confdefs.h. */
3223: _ACEOF
3224: cat confdefs.h >>conftest.$ac_ext
3225: cat >>conftest.$ac_ext <<_ACEOF
3226: /* end confdefs.h. */
3227:
3228: int
3229: main ()
3230: {
3231:
3232: ;
3233: return 0;
3234: }
3235: _ACEOF
3236: rm -f conftest.$ac_objext
3237: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3238: (eval $ac_compile) 2>conftest.er1
1.62 paf 3239: ac_status=$?
1.86 paf 3240: grep -v '^ *+' conftest.er1 >conftest.err
3241: rm -f conftest.er1
3242: cat conftest.err >&5
1.62 paf 3243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244: (exit $ac_status); } &&
1.86 paf 3245: { ac_try='test -z "$ac_c_werror_flag"
3246: || test ! -s conftest.err'
3247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248: (eval $ac_try) 2>&5
3249: ac_status=$?
3250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251: (exit $ac_status); }; } &&
3252: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254: (eval $ac_try) 2>&5
3255: ac_status=$?
3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); }; }; then
1.66 paf 3258: ac_cv_prog_cc_g=yes
1.62 paf 3259: else
3260: echo "$as_me: failed program was:" >&5
3261: sed 's/^/| /' conftest.$ac_ext >&5
3262:
1.66 paf 3263: ac_cv_prog_cc_g=no
1.62 paf 3264: fi
1.86 paf 3265: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3266: fi
1.66 paf 3267: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3268: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3269: if test "$ac_test_CFLAGS" = set; then
3270: CFLAGS=$ac_save_CFLAGS
3271: elif test $ac_cv_prog_cc_g = yes; then
3272: if test "$GCC" = yes; then
3273: CFLAGS="-g -O2"
1.1 paf 3274: else
1.66 paf 3275: CFLAGS="-g"
1.1 paf 3276: fi
3277: else
1.66 paf 3278: if test "$GCC" = yes; then
3279: CFLAGS="-O2"
1.1 paf 3280: else
1.66 paf 3281: CFLAGS=
1.1 paf 3282: fi
3283: fi
1.66 paf 3284: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3285: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3286: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3287: echo $ECHO_N "(cached) $ECHO_C" >&6
3288: else
3289: ac_cv_prog_cc_stdc=no
3290: ac_save_CC=$CC
3291: cat >conftest.$ac_ext <<_ACEOF
3292: /* confdefs.h. */
3293: _ACEOF
3294: cat confdefs.h >>conftest.$ac_ext
3295: cat >>conftest.$ac_ext <<_ACEOF
3296: /* end confdefs.h. */
3297: #include <stdarg.h>
3298: #include <stdio.h>
3299: #include <sys/types.h>
3300: #include <sys/stat.h>
3301: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3302: struct buf { int x; };
3303: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3304: static char *e (p, i)
3305: char **p;
3306: int i;
3307: {
3308: return p[i];
3309: }
3310: static char *f (char * (*g) (char **, int), char **p, ...)
3311: {
3312: char *s;
3313: va_list v;
3314: va_start (v,p);
3315: s = g (p, va_arg (v,int));
3316: va_end (v);
3317: return s;
3318: }
1.86 paf 3319:
3320: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3321: function prototypes and stuff, but not '\xHH' hex character constants.
3322: These don't provoke an error unfortunately, instead are silently treated
3323: as 'x'. The following induces an error, until -std1 is added to get
3324: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3325: array size at least. It's necessary to write '\x00'==0 to get something
3326: that's true only with -std1. */
3327: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3328:
1.66 paf 3329: int test (int i, double x);
3330: struct s1 {int (*f) (int a);};
3331: struct s2 {int (*f) (double a);};
3332: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3333: int argc;
3334: char **argv;
3335: int
3336: main ()
3337: {
3338: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3339: ;
3340: return 0;
3341: }
3342: _ACEOF
3343: # Don't try gcc -ansi; that turns off useful extensions and
3344: # breaks some systems' header files.
3345: # AIX -qlanglvl=ansi
3346: # Ultrix and OSF/1 -std1
3347: # HP-UX 10.20 and later -Ae
3348: # HP-UX older versions -Aa -D_HPUX_SOURCE
3349: # SVR4 -Xc -D__EXTENSIONS__
3350: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3351: do
3352: CC="$ac_save_CC $ac_arg"
3353: rm -f conftest.$ac_objext
3354: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3355: (eval $ac_compile) 2>conftest.er1
1.66 paf 3356: ac_status=$?
1.86 paf 3357: grep -v '^ *+' conftest.er1 >conftest.err
3358: rm -f conftest.er1
3359: cat conftest.err >&5
1.66 paf 3360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361: (exit $ac_status); } &&
1.86 paf 3362: { ac_try='test -z "$ac_c_werror_flag"
3363: || test ! -s conftest.err'
3364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365: (eval $ac_try) 2>&5
3366: ac_status=$?
3367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368: (exit $ac_status); }; } &&
3369: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371: (eval $ac_try) 2>&5
3372: ac_status=$?
3373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374: (exit $ac_status); }; }; then
3375: ac_cv_prog_cc_stdc=$ac_arg
3376: break
3377: else
3378: echo "$as_me: failed program was:" >&5
3379: sed 's/^/| /' conftest.$ac_ext >&5
3380:
3381: fi
1.86 paf 3382: rm -f conftest.err conftest.$ac_objext
1.66 paf 3383: done
3384: rm -f conftest.$ac_ext conftest.$ac_objext
3385: CC=$ac_save_CC
3386:
3387: fi
3388:
3389: case "x$ac_cv_prog_cc_stdc" in
3390: x|xno)
3391: echo "$as_me:$LINENO: result: none needed" >&5
3392: echo "${ECHO_T}none needed" >&6 ;;
3393: *)
3394: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3395: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3396: CC="$CC $ac_cv_prog_cc_stdc" ;;
3397: esac
3398:
3399: # Some people use a C++ compiler to compile C. Since we use `exit',
3400: # in C++ we need to declare it. In case someone uses the same compiler
3401: # for both compiling C and C++ we need to have the C++ compiler decide
3402: # the declaration of exit, since it's the most demanding environment.
3403: cat >conftest.$ac_ext <<_ACEOF
3404: #ifndef __cplusplus
3405: choke me
3406: #endif
3407: _ACEOF
3408: rm -f conftest.$ac_objext
3409: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3410: (eval $ac_compile) 2>conftest.er1
1.66 paf 3411: ac_status=$?
1.86 paf 3412: grep -v '^ *+' conftest.er1 >conftest.err
3413: rm -f conftest.er1
3414: cat conftest.err >&5
1.66 paf 3415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416: (exit $ac_status); } &&
1.86 paf 3417: { ac_try='test -z "$ac_c_werror_flag"
3418: || test ! -s conftest.err'
3419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420: (eval $ac_try) 2>&5
3421: ac_status=$?
3422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423: (exit $ac_status); }; } &&
3424: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426: (eval $ac_try) 2>&5
3427: ac_status=$?
3428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429: (exit $ac_status); }; }; then
3430: for ac_declaration in \
1.86 paf 3431: '' \
1.62 paf 3432: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3433: 'extern "C" void std::exit (int); using std::exit;' \
3434: 'extern "C" void exit (int) throw ();' \
3435: 'extern "C" void exit (int);' \
3436: 'void exit (int);'
3437: do
3438: cat >conftest.$ac_ext <<_ACEOF
3439: /* confdefs.h. */
3440: _ACEOF
3441: cat confdefs.h >>conftest.$ac_ext
3442: cat >>conftest.$ac_ext <<_ACEOF
3443: /* end confdefs.h. */
1.86 paf 3444: $ac_declaration
1.62 paf 3445: #include <stdlib.h>
3446: int
3447: main ()
3448: {
3449: exit (42);
3450: ;
3451: return 0;
3452: }
3453: _ACEOF
3454: rm -f conftest.$ac_objext
3455: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3456: (eval $ac_compile) 2>conftest.er1
1.62 paf 3457: ac_status=$?
1.86 paf 3458: grep -v '^ *+' conftest.er1 >conftest.err
3459: rm -f conftest.er1
3460: cat conftest.err >&5
1.62 paf 3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462: (exit $ac_status); } &&
1.86 paf 3463: { ac_try='test -z "$ac_c_werror_flag"
3464: || test ! -s conftest.err'
3465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466: (eval $ac_try) 2>&5
3467: ac_status=$?
3468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469: (exit $ac_status); }; } &&
3470: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472: (eval $ac_try) 2>&5
3473: ac_status=$?
3474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475: (exit $ac_status); }; }; then
3476: :
3477: else
3478: echo "$as_me: failed program was:" >&5
3479: sed 's/^/| /' conftest.$ac_ext >&5
3480:
3481: continue
3482: fi
1.86 paf 3483: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3484: cat >conftest.$ac_ext <<_ACEOF
3485: /* confdefs.h. */
3486: _ACEOF
3487: cat confdefs.h >>conftest.$ac_ext
3488: cat >>conftest.$ac_ext <<_ACEOF
3489: /* end confdefs.h. */
3490: $ac_declaration
3491: int
3492: main ()
3493: {
3494: exit (42);
3495: ;
3496: return 0;
3497: }
3498: _ACEOF
3499: rm -f conftest.$ac_objext
3500: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3501: (eval $ac_compile) 2>conftest.er1
1.62 paf 3502: ac_status=$?
1.86 paf 3503: grep -v '^ *+' conftest.er1 >conftest.err
3504: rm -f conftest.er1
3505: cat conftest.err >&5
1.62 paf 3506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507: (exit $ac_status); } &&
1.86 paf 3508: { ac_try='test -z "$ac_c_werror_flag"
3509: || test ! -s conftest.err'
3510: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511: (eval $ac_try) 2>&5
3512: ac_status=$?
3513: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514: (exit $ac_status); }; } &&
3515: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517: (eval $ac_try) 2>&5
3518: ac_status=$?
3519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520: (exit $ac_status); }; }; then
3521: break
3522: else
3523: echo "$as_me: failed program was:" >&5
3524: sed 's/^/| /' conftest.$ac_ext >&5
3525:
3526: fi
1.86 paf 3527: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3528: done
3529: rm -f conftest*
3530: if test -n "$ac_declaration"; then
3531: echo '#ifdef __cplusplus' >>confdefs.h
3532: echo $ac_declaration >>confdefs.h
3533: echo '#endif' >>confdefs.h
3534: fi
3535:
1.66 paf 3536: else
3537: echo "$as_me: failed program was:" >&5
3538: sed 's/^/| /' conftest.$ac_ext >&5
3539:
3540: fi
1.86 paf 3541: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3542: ac_ext=c
3543: ac_cpp='$CPP $CPPFLAGS'
3544: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547:
1.66 paf 3548: depcc="$CC" am_compiler_list=
1.62 paf 3549:
3550: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3551: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3552: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3553: echo $ECHO_N "(cached) $ECHO_C" >&6
3554: else
3555: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3556: # We make a subdir and do the tests there. Otherwise we can end up
3557: # making bogus files that we don't know about and never remove. For
3558: # instance it was reported that on HP-UX the gcc test will end up
3559: # making a dummy file named `D' -- because `-MD' means `put the output
3560: # in D'.
3561: mkdir conftest.dir
3562: # Copy depcomp to subdir because otherwise we won't find it if we're
3563: # using a relative directory.
3564: cp "$am_depcomp" conftest.dir
3565: cd conftest.dir
1.86 paf 3566: # We will build objects and dependencies in a subdirectory because
3567: # it helps to detect inapplicable dependency modes. For instance
3568: # both Tru64's cc and ICC support -MD to output dependencies as a
3569: # side effect of compilation, but ICC will put the dependencies in
3570: # the current directory while Tru64 will put them in the object
3571: # directory.
3572: mkdir sub
1.62 paf 3573:
1.66 paf 3574: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3575: if test "$am_compiler_list" = ""; then
3576: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577: fi
3578: for depmode in $am_compiler_list; do
1.86 paf 3579: # Setup a source with many dependencies, because some compilers
3580: # like to wrap large dependency lists on column 80 (with \), and
3581: # we should not choose a depcomp mode which is confused by this.
3582: #
1.62 paf 3583: # We need to recreate these files for each test, as the compiler may
3584: # overwrite some of them when testing with obscure command lines.
3585: # This happens at least with the AIX C compiler.
1.86 paf 3586: : > sub/conftest.c
3587: for i in 1 2 3 4 5 6; do
3588: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590: # Solaris 8's {/usr,}/bin/sh.
3591: touch sub/conftst$i.h
3592: done
3593: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3594:
3595: case $depmode in
3596: nosideeffect)
3597: # after this tag, mechanisms are not by side-effect, so they'll
3598: # only be used when explicitly requested
3599: if test "x$enable_dependency_tracking" = xyes; then
3600: continue
3601: else
3602: break
3603: fi
3604: ;;
3605: none) break ;;
3606: esac
3607: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3608: # mode. It turns out that the SunPro C++ compiler does not properly
3609: # handle `-M -o', and we need to detect this.
1.66 paf 3610: if depmode=$depmode \
1.86 paf 3611: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3612: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3613: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3614: >/dev/null 2>conftest.err &&
3615: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3617: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3618: # icc doesn't choke on unknown options, it will just issue warnings
3619: # or remarks (even with -Werror). So we grep stderr for any message
3620: # that says an option was ignored or not supported.
3621: # When given -MP, icc 7.0 and 7.1 complain thusly:
3622: # icc: Command line warning: ignoring option '-M'; no argument required
3623: # The diagnosis changed in icc 8.0:
3624: # icc: Command line remark: option '-MP' not supported
3625: if (grep 'ignoring option' conftest.err ||
3626: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627: am_cv_CC_dependencies_compiler_type=$depmode
3628: break
3629: fi
1.66 paf 3630: fi
3631: done
3632:
3633: cd ..
3634: rm -rf conftest.dir
3635: else
3636: am_cv_CC_dependencies_compiler_type=none
3637: fi
3638:
3639: fi
3640: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3642: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643:
3644:
3645:
3646: if
3647: test "x$enable_dependency_tracking" != xno \
3648: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649: am__fastdepCC_TRUE=
3650: am__fastdepCC_FALSE='#'
3651: else
3652: am__fastdepCC_TRUE='#'
3653: am__fastdepCC_FALSE=
3654: fi
3655:
3656:
1.128 moko 3657:
1.66 paf 3658: ac_ext=c
3659: ac_cpp='$CPP $CPPFLAGS'
3660: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663:
1.67 paf 3664:
1.62 paf 3665:
1.128 moko 3666: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3667: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
3668: case "$host_os" in
3669: cygwin)
3670: dll_extension=dll
3671: ;;
3672: *)
3673: dll_extension=so
1.66 paf 3674: esac
1.128 moko 3675: echo "$as_me:$LINENO: result: $dll_extension" >&5
3676: echo "${ECHO_T}$dll_extension" >&6
1.1 paf 3677:
1.71 paf 3678:
3679:
3680:
3681: # Check whether --with-build-warnings or --without-build-warnings was given.
3682: if test "${with_build_warnings+set}" = set; then
3683: withval="$with_build_warnings"
3684: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3685: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3686: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3687:
3688: fi;
1.1 paf 3689:
3690:
1.67 paf 3691: # Check whether --with-assertions or --without-assertions was given.
3692: if test "${with_assertions+set}" = set; then
3693: withval="$with_assertions"
3694: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3695: echo "$as_me: WARNING: enabling assertions" >&2;}
3696:
3697: else
3698:
3699: cat >>confdefs.h <<\_ACEOF
3700: #define NDEBUG
3701: _ACEOF
3702:
3703:
3704: fi;
3705:
1.94 misha 3706:
1.128 moko 3707: # Check whether --with-pathlink or --without-pathlink was given.
3708: if test "${with_pathlink+set}" = set; then
3709: withval="$with_pathlink"
3710: LD_PATHLINK=$withval
3711:
3712: fi;
3713:
3714:
3715: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
3716: if test "${with_sjlj_exceptions+set}" = set; then
3717: withval="$with_sjlj_exceptions"
3718:
3719: cat >>confdefs.h <<\_ACEOF
3720: #define PA_WITH_SJLJ_EXCEPTIONS
3721: _ACEOF
3722:
3723:
3724: fi;
3725:
3726:
1.60 paf 3727: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3728: if test "${enable_safe_mode+set}" = set; then
3729: enableval="$enable_safe_mode"
1.62 paf 3730:
1.67 paf 3731: SAFE_MODE=$enableval
1.60 paf 3732:
1.1 paf 3733:
1.62 paf 3734: fi;
1.128 moko 3735:
1.60 paf 3736: if test "$SAFE_MODE" = "no"; then
1.62 paf 3737: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3738: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3739: else
1.62 paf 3740:
3741: cat >>confdefs.h <<\_ACEOF
3742: #define PA_SAFE_MODE
3743: _ACEOF
1.1 paf 3744:
3745: fi
3746:
1.94 misha 3747:
1.13 paf 3748: # Check whether --enable-execs or --disable-execs was given.
3749: if test "${enable_execs+set}" = set; then
3750: enableval="$enable_execs"
1.62 paf 3751:
1.13 paf 3752: if test "$enableval" = "no"; then
1.62 paf 3753: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3754: echo "$as_me: WARNING: disabling file execs" >&2;}
3755:
3756: cat >>confdefs.h <<\_ACEOF
3757: #define NO_PA_EXECS
3758: _ACEOF
1.13 paf 3759:
3760: fi
3761:
3762:
1.62 paf 3763: fi;
1.13 paf 3764:
1.60 paf 3765:
1.94 misha 3766: # Check whether --enable-stringstream or --disable-stringstream was given.
3767: if test "${enable_stringstream+set}" = set; then
3768: enableval="$enable_stringstream"
3769:
3770: if test "$enableval" = "no"; then
3771: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3772: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3773:
3774: cat >>confdefs.h <<\_ACEOF
3775: #define NO_STRINGSTREAM
3776: _ACEOF
3777:
3778: fi
3779:
3780:
3781: fi;
3782:
3783:
1.128 moko 3784: GC_LIB_NAME=gc
1.62 paf 3785:
1.128 moko 3786: # Check whether --with-shared-gc or --without-shared-gc was given.
3787: if test "${with_shared_gc+set}" = set; then
3788: withval="$with_shared_gc"
1.17 paf 3789:
1.128 moko 3790: GC_LIBS="-L$withval -l$GC_LIB_NAME"
1.17 paf 3791:
1.128 moko 3792: fi;
1.62 paf 3793:
1.128 moko 3794: # Check whether --with-static-gc or --without-static-gc was given.
3795: if test "${with_static_gc+set}" = set; then
3796: withval="$with_static_gc"
1.17 paf 3797:
1.128 moko 3798: GC_LIBS="$withval/lib$GC_LIB_NAME.a"
1.17 paf 3799:
1.128 moko 3800: fi;
3801: if test -z "$GC_LIBS"; then
3802: #undefined? use any found in system
3803: GC_LIBS="-l$GC_LIB_NAME"
3804: { echo "$as_me:$LINENO: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&5
3805: echo "$as_me: WARNING: neither --with-shared/static-gc were specified, hoping linker would find it" >&2;}
3806: fi
1.17 paf 3807:
1.128 moko 3808: echo "$as_me:$LINENO: checking for libgc" >&5
3809: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
1.67 paf 3810: SAVE_LIBS=$LIBS
3811: LIBS="$LIBS $GC_LIBS"
1.128 moko 3812:
1.67 paf 3813: cat >conftest.$ac_ext <<_ACEOF
3814: /* confdefs.h. */
3815: _ACEOF
3816: cat confdefs.h >>conftest.$ac_ext
3817: cat >>conftest.$ac_ext <<_ACEOF
3818: /* end confdefs.h. */
3819:
3820: extern int GC_dont_gc;
3821:
3822: int
3823: main ()
3824: {
3825:
3826: GC_dont_gc=0;
3827:
3828: ;
3829: return 0;
3830: }
3831: _ACEOF
3832: rm -f conftest.$ac_objext conftest$ac_exeext
3833: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 3834: (eval $ac_link) 2>conftest.er1
1.67 paf 3835: ac_status=$?
1.86 paf 3836: grep -v '^ *+' conftest.er1 >conftest.err
3837: rm -f conftest.er1
3838: cat conftest.err >&5
1.67 paf 3839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840: (exit $ac_status); } &&
1.86 paf 3841: { ac_try='test -z "$ac_c_werror_flag"
3842: || test ! -s conftest.err'
3843: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844: (eval $ac_try) 2>&5
3845: ac_status=$?
3846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847: (exit $ac_status); }; } &&
3848: { ac_try='test -s conftest$ac_exeext'
1.67 paf 3849: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850: (eval $ac_try) 2>&5
3851: ac_status=$?
3852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853: (exit $ac_status); }; }; then
3854: echo "$as_me:$LINENO: result: yes" >&5
3855: echo "${ECHO_T}yes" >&6
3856:
3857: else
3858: echo "$as_me: failed program was:" >&5
3859: sed 's/^/| /' conftest.$ac_ext >&5
3860:
3861: echo "$as_me:$LINENO: result: no" >&5
3862: echo "${ECHO_T}no" >&6
3863: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&5
3864: echo "$as_me: error: please specify path to libgc: --with-shared-gc OR --with-static-gc" >&2;}
3865: { (exit 1); exit 1; }; }
3866:
3867: fi
1.86 paf 3868: rm -f conftest.err conftest.$ac_objext \
3869: conftest$ac_exeext conftest.$ac_ext
1.67 paf 3870:
3871: LIBS=$SAVE_LIBS
3872:
1.1 paf 3873:
1.15 paf 3874:
1.100 misha 3875: # Check whether --with-static-pcre or --without-static-pcre was given.
3876: if test "${with_static_pcre+set}" = set; then
3877: withval="$with_static_pcre"
3878:
3879: PCRE=$withval
3880: PCREINC="$PCRE/include"
3881: PCRELIB="$PCRE/lib"
3882:
3883: if test \! -d $PCREINC -o \! -d $PCRELIB; then
3884: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
3885: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
3886: { (exit 1); exit 1; }; }
3887: fi
3888:
3889: PCRE_INCLUDES="-I$PCREINC"
3890: PCRE_LIBS="$PCRELIB/libpcre.a"
3891:
3892: fi;
3893:
3894:
3895:
3896:
3897:
1.66 paf 3898: # Check whether --with-shared-xml or --without-shared-xml was given.
3899: if test "${with_shared_xml+set}" = set; then
3900: withval="$with_shared_xml"
3901:
1.67 paf 3902: GNOME_XML=$withval
3903: XMLBIN="$GNOME_XML/bin"
3904: XMLINC="$GNOME_XML/include"
3905: XMLLIB="$GNOME_XML/lib"
1.66 paf 3906:
1.67 paf 3907: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3908: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3909: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3910: { (exit 1); exit 1; }; }
1.67 paf 3911: fi
1.66 paf 3912:
3913:
3914: cat >>confdefs.h <<\_ACEOF
3915: #define XML
3916: _ACEOF
3917:
3918:
1.67 paf 3919: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3920: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3921: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3922:
1.90 paf 3923: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
3924: XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.67 paf 3925: if test \! -z "$LD_PATHLINK"; then
1.66 paf 3926: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.67 paf 3927: fi
1.66 paf 3928:
3929: fi;
3930:
3931: # Check whether --with-static-xml or --without-static-xml was given.
3932: if test "${with_static_xml+set}" = set; then
3933: withval="$with_static_xml"
3934:
1.67 paf 3935: GNOME_XML=$withval
3936: XMLBIN="$GNOME_XML/bin"
3937: XMLINC="$GNOME_XML/include"
3938: XMLLIB="$GNOME_XML/lib"
1.66 paf 3939:
1.67 paf 3940: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
3941: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
1.66 paf 3942: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3943: { (exit 1); exit 1; }; }
1.67 paf 3944: fi
1.66 paf 3945:
3946:
3947: cat >>confdefs.h <<\_ACEOF
3948: #define XML
3949: _ACEOF
3950:
3951:
1.90 paf 3952: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
3953: XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
3954:
3955: fi;
1.66 paf 3956:
3957:
3958:
3959:
1.90 paf 3960: # Check whether --with-glib-config or --without-glib-config was given.
3961: if test "${with_glib_config+set}" = set; then
3962: withval="$with_glib_config"
3963: GLIB_CONFIG=$withval
3964:
3965: fi;
1.66 paf 3966:
3967:
3968: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
3969: if test "${with_shared_mailreceive+set}" = set; then
3970: withval="$with_shared_mailreceive"
3971:
1.67 paf 3972: GNOME_MIME=$withval
3973: MIMEBIN="$GNOME_MIME/bin"
3974: MIMEINC="$GNOME_MIME/include"
3975: MIMELIB="$GNOME_MIME/lib"
1.66 paf 3976:
1.67 paf 3977: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
3978: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 3979: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
3980: { (exit 1); exit 1; }; }
1.67 paf 3981: fi
1.66 paf 3982:
3983:
3984: cat >>confdefs.h <<\_ACEOF
3985: #define WITH_MAILRECEIVE
3986: _ACEOF
3987:
3988:
1.67 paf 3989: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 3990:
1.67 paf 3991: if test -z "$GLIB_CONFIG"; then
1.90 paf 3992: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 3993: if test \! -x $GLIB_CONFIG; then
1.90 paf 3994: GLIB_CONFIG=$XMLBIN/glib2-config
3995: if test \! -x $GLIB_CONFIG; then
3996: GLIB_CONFIG=glib-config
3997: fi
1.67 paf 3998: fi
3999: fi
4000: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4001: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4002:
1.67 paf 4003: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4004: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4005: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4006: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4007: fi
1.66 paf 4008:
4009: fi;
4010:
4011: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4012: if test "${with_static_mailreceive+set}" = set; then
4013: withval="$with_static_mailreceive"
4014:
1.67 paf 4015: GNOME_MIME=$withval
4016: MIMEBIN="$GNOME_MIME/bin"
4017: MIMEINC="$GNOME_MIME/include"
4018: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4019:
1.67 paf 4020: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4021: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4022: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4023: { (exit 1); exit 1; }; }
1.67 paf 4024: fi
1.66 paf 4025:
4026:
4027: cat >>confdefs.h <<\_ACEOF
4028: #define WITH_MAILRECEIVE
4029: _ACEOF
4030:
4031:
1.67 paf 4032: if test -z "$GLIB_CONFIG"; then
1.90 paf 4033: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4034: if test \! -x $GLIB_CONFIG; then
1.90 paf 4035: GLIB_CONFIG=$XMLBIN/glib2-config
4036: if test \! -x $GLIB_CONFIG; then
4037: GLIB_CONFIG=glib-config
4038: fi
1.67 paf 4039: fi
4040: fi
4041: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4042:
1.67 paf 4043: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4044: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4045: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4046: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.66 paf 4047:
4048: fi;
4049:
4050:
4051:
4052:
4053:
4054: # Check whether --with-sendmail or --without-sendmail was given.
4055: if test "${with_sendmail+set}" = set; then
4056: withval="$with_sendmail"
4057:
4058: cat >>confdefs.h <<_ACEOF
4059: #define PA_FORCED_SENDMAIL "$withval"
4060: _ACEOF
4061:
4062:
4063: fi;
4064:
4065:
4066:
1.122 moko 4067: # Check whether --with-apache or --without-apache was given.
4068: if test "${with_apache+set}" = set; then
4069: withval="$with_apache"
4070:
4071: APXS=$withval
4072:
4073: if test -z "$APXS" -o "$APXS" = "yes"; then
4074: APXS=`which apxs 2>/dev/null`
4075: fi;
4076:
4077: APACHE=`$APXS -q TARGET 2>/dev/null`
4078:
4079: if test -z "$APACHE"; then
1.132 moko 4080: APXS=`which apxs2 2>/dev/null`
4081: APACHE=`$APXS -q TARGET 2>/dev/null`
4082:
4083: if test -z "$APACHE"; then
4084: { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5
1.122 moko 4085: echo "$as_me: error: $APXS does not seem to be valid apache apxs utility path" >&2;}
1.66 paf 4086: { (exit 1); exit 1; }; }
1.132 moko 4087: fi
1.67 paf 4088: fi
1.7 paf 4089:
1.122 moko 4090: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
4091: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
4092: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
4093: APACHE_CFLAGS=`$APXS -q CFLAGS`
4094:
1.62 paf 4095: fi;
1.7 paf 4096:
4097:
1.62 paf 4098:
1.122 moko 4099:
4100:
4101: if test -n "$APACHE"; then
4102: COMPILE_APACHE_MODULE_TRUE=
4103: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 4104: else
1.122 moko 4105: COMPILE_APACHE_MODULE_TRUE='#'
4106: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 4107: fi
1.1 paf 4108:
4109:
4110:
1.62 paf 4111:
4112:
1.7 paf 4113:
1.1 paf 4114:
4115:
4116:
1.62 paf 4117:
1.128 moko 4118: case `pwd` in
4119: *\ * | *\ *)
4120: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4121: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4122: esac
4123:
4124:
4125:
4126: macro_version='2.4.2'
4127: macro_revision='1.3337'
4128:
4129:
4130:
4131:
4132:
4133:
4134:
4135:
4136:
4137:
4138:
4139:
4140:
4141: ltmain="$ac_aux_dir/ltmain.sh"
4142:
4143: # Backslashify metacharacters that are still active within
4144: # double-quoted strings.
4145: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 4146:
1.128 moko 4147: # Same as above, but do not quote variable references.
4148: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 4149:
1.128 moko 4150: # Sed substitution to delay expansion of an escaped shell variable in a
4151: # double_quote_subst'ed string.
4152: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 4153:
1.128 moko 4154: # Sed substitution to delay expansion of an escaped single quote.
4155: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 4156:
1.128 moko 4157: # Sed substitution to avoid accidental globbing in evaled expressions
4158: no_glob_subst='s/\*/\\\*/g'
1.86 paf 4159:
1.128 moko 4160: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4161: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4162: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 4163:
1.128 moko 4164: echo "$as_me:$LINENO: checking how to print strings" >&5
4165: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
4166: # Test print first, because it will be a builtin if present.
4167: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4168: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4169: ECHO='print -r --'
4170: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4171: ECHO='printf %s\n'
4172: else
4173: # Use this function as a fallback that always works.
4174: func_fallback_echo ()
4175: {
4176: eval 'cat <<_LTECHO_EOF
4177: $1
4178: _LTECHO_EOF'
4179: }
4180: ECHO='func_fallback_echo'
4181: fi
1.86 paf 4182:
1.128 moko 4183: # func_echo_all arg...
4184: # Invoke $ECHO with all args, space-separated.
4185: func_echo_all ()
1.66 paf 4186: {
1.128 moko 4187: $ECHO ""
1.66 paf 4188: }
1.10 paf 4189:
1.128 moko 4190: case "$ECHO" in
4191: printf*) echo "$as_me:$LINENO: result: printf" >&5
4192: echo "${ECHO_T}printf" >&6 ;;
4193: print*) echo "$as_me:$LINENO: result: print -r" >&5
4194: echo "${ECHO_T}print -r" >&6 ;;
4195: *) echo "$as_me:$LINENO: result: cat" >&5
4196: echo "${ECHO_T}cat" >&6 ;;
4197: esac
4198:
4199:
4200:
4201:
4202:
4203:
4204:
4205:
4206:
4207:
4208:
4209:
4210:
4211:
4212: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4213: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4214: if test "${lt_cv_path_SED+set}" = set; then
4215: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 4216: else
1.128 moko 4217: # Loop through the user's path and test for sed and gsed.
4218: # Then use that list of sed's as ones to test for truncation.
4219: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220: for as_dir in $PATH
4221: do
4222: IFS=$as_save_IFS
4223: test -z "$as_dir" && as_dir=.
4224: for lt_ac_prog in sed gsed; do
4225: for ac_exec_ext in '' $ac_executable_extensions; do
4226: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4227: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4228: fi
4229: done
4230: done
4231: done
4232: IFS=$as_save_IFS
4233: lt_ac_max=0
4234: lt_ac_count=0
4235: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4236: # along with /bin/sed that truncates output.
4237: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4238: test ! -f $lt_ac_sed && continue
4239: cat /dev/null > conftest.in
4240: lt_ac_count=0
4241: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4242: # Check for GNU sed and select it if it is found.
4243: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4244: lt_cv_path_SED=$lt_ac_sed
4245: break
4246: fi
4247: while true; do
4248: cat conftest.in conftest.in >conftest.tmp
4249: mv conftest.tmp conftest.in
4250: cp conftest.in conftest.nl
4251: echo >>conftest.nl
4252: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4253: cmp -s conftest.out conftest.nl || break
4254: # 10000 chars as input seems more than enough
4255: test $lt_ac_count -gt 10 && break
4256: lt_ac_count=`expr $lt_ac_count + 1`
4257: if test $lt_ac_count -gt $lt_ac_max; then
4258: lt_ac_max=$lt_ac_count
4259: lt_cv_path_SED=$lt_ac_sed
4260: fi
4261: done
4262: done
1.10 paf 4263:
1.66 paf 4264: fi
1.10 paf 4265:
1.128 moko 4266: SED=$lt_cv_path_SED
4267:
4268: echo "$as_me:$LINENO: result: $SED" >&5
4269: echo "${ECHO_T}$SED" >&6
4270:
4271: test -z "$SED" && SED=sed
4272: Xsed="$SED -e 1s/^X//"
1.10 paf 4273:
1.128 moko 4274:
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284: echo "$as_me:$LINENO: checking for egrep" >&5
4285: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4286: if test "${ac_cv_prog_egrep+set}" = set; then
4287: echo $ECHO_N "(cached) $ECHO_C" >&6
4288: else
4289: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4290: then ac_cv_prog_egrep='grep -E'
4291: else ac_cv_prog_egrep='egrep'
4292: fi
4293: fi
4294: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4295: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4296: EGREP=$ac_cv_prog_egrep
4297:
4298:
4299: echo "$as_me:$LINENO: checking for fgrep" >&5
4300: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4301: if test "${ac_cv_prog_fgrep+set}" = set; then
4302: echo $ECHO_N "(cached) $ECHO_C" >&6
4303: else
4304: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4305: then ac_cv_prog_fgrep='grep -F'
4306: else ac_cv_prog_fgrep='fgrep'
4307: fi
4308: fi
4309: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4310: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4311: FGREP=$ac_cv_prog_fgrep
4312:
4313:
4314: test -z "$GREP" && GREP=grep
4315:
4316:
4317:
4318:
4319:
4320:
4321:
4322:
4323:
4324:
4325:
4326:
4327:
4328:
4329:
4330:
4331:
4332:
4333:
4334: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4335: if test "${with_gnu_ld+set}" = set; then
4336: withval="$with_gnu_ld"
4337: test "$withval" = no || with_gnu_ld=yes
4338: else
4339: with_gnu_ld=no
4340: fi;
4341: ac_prog=ld
4342: if test "$GCC" = yes; then
4343: # Check if gcc -print-prog-name=ld gives a path.
4344: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4345: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4346: case $host in
4347: *-*-mingw*)
4348: # gcc leaves a trailing carriage return which upsets mingw
4349: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4350: *)
4351: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4352: esac
4353: case $ac_prog in
4354: # Accept absolute paths.
4355: [\\/]* | ?:[\\/]*)
4356: re_direlt='/[^/][^/]*/\.\./'
4357: # Canonicalize the pathname of ld
4358: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4359: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4360: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4361: done
4362: test -z "$LD" && LD="$ac_prog"
4363: ;;
4364: "")
4365: # If it fails, then pretend we aren't using GCC.
4366: ac_prog=ld
4367: ;;
4368: *)
4369: # If it is relative, then search for the first ld in PATH.
4370: with_gnu_ld=unknown
4371: ;;
4372: esac
4373: elif test "$with_gnu_ld" = yes; then
4374: echo "$as_me:$LINENO: checking for GNU ld" >&5
4375: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4376: else
4377: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4378: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4379: fi
4380: if test "${lt_cv_path_LD+set}" = set; then
4381: echo $ECHO_N "(cached) $ECHO_C" >&6
4382: else
4383: if test -z "$LD"; then
4384: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4385: for ac_dir in $PATH; do
4386: IFS="$lt_save_ifs"
4387: test -z "$ac_dir" && ac_dir=.
4388: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4389: lt_cv_path_LD="$ac_dir/$ac_prog"
4390: # Check to see if the program is GNU ld. I'd rather use --version,
4391: # but apparently some variants of GNU ld only accept -v.
4392: # Break only if it was the GNU/non-GNU ld that we prefer.
4393: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4394: *GNU* | *'with BFD'*)
4395: test "$with_gnu_ld" != no && break
4396: ;;
4397: *)
4398: test "$with_gnu_ld" != yes && break
4399: ;;
4400: esac
4401: fi
4402: done
4403: IFS="$lt_save_ifs"
4404: else
4405: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4406: fi
4407: fi
4408:
4409: LD="$lt_cv_path_LD"
4410: if test -n "$LD"; then
4411: echo "$as_me:$LINENO: result: $LD" >&5
4412: echo "${ECHO_T}$LD" >&6
4413: else
4414: echo "$as_me:$LINENO: result: no" >&5
4415: echo "${ECHO_T}no" >&6
4416: fi
4417: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4418: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4419: { (exit 1); exit 1; }; }
4420: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4421: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4422: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4423: echo $ECHO_N "(cached) $ECHO_C" >&6
4424: else
4425: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4426: case `$LD -v 2>&1 </dev/null` in
4427: *GNU* | *'with BFD'*)
4428: lt_cv_prog_gnu_ld=yes
4429: ;;
4430: *)
4431: lt_cv_prog_gnu_ld=no
4432: ;;
4433: esac
4434: fi
4435: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4436: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4437: with_gnu_ld=$lt_cv_prog_gnu_ld
4438:
4439:
4440:
4441:
4442:
4443:
4444:
4445:
4446:
4447: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4448: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4449: if test "${lt_cv_path_NM+set}" = set; then
4450: echo $ECHO_N "(cached) $ECHO_C" >&6
4451: else
4452: if test -n "$NM"; then
4453: # Let the user override the test.
4454: lt_cv_path_NM="$NM"
4455: else
4456: lt_nm_to_check="${ac_tool_prefix}nm"
4457: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4458: lt_nm_to_check="$lt_nm_to_check nm"
4459: fi
4460: for lt_tmp_nm in $lt_nm_to_check; do
4461: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4463: IFS="$lt_save_ifs"
4464: test -z "$ac_dir" && ac_dir=.
4465: tmp_nm="$ac_dir/$lt_tmp_nm"
4466: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4467: # Check to see if the nm accepts a BSD-compat flag.
4468: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4469: # nm: unknown option "B" ignored
4470: # Tru64's nm complains that /dev/null is an invalid object file
4471: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4472: */dev/null* | *'Invalid file or object type'*)
4473: lt_cv_path_NM="$tmp_nm -B"
4474: break
4475: ;;
4476: *)
4477: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4478: */dev/null*)
4479: lt_cv_path_NM="$tmp_nm -p"
4480: break
4481: ;;
4482: *)
4483: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484: continue # so that we can try to find one that supports BSD flags
4485: ;;
4486: esac
4487: ;;
4488: esac
4489: fi
4490: done
4491: IFS="$lt_save_ifs"
4492: done
4493: : ${lt_cv_path_NM=no}
4494: fi
4495: fi
4496: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4497: echo "${ECHO_T}$lt_cv_path_NM" >&6
4498: if test "$lt_cv_path_NM" != "no"; then
4499: NM="$lt_cv_path_NM"
4500: else
4501: # Didn't find any BSD compatible name lister, look for dumpbin.
4502: if test -n "$DUMPBIN"; then :
4503: # Let the user override the test.
4504: else
4505: if test -n "$ac_tool_prefix"; then
4506: for ac_prog in dumpbin "link -dump"
4507: do
4508: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510: echo "$as_me:$LINENO: checking for $ac_word" >&5
4511: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4513: echo $ECHO_N "(cached) $ECHO_C" >&6
4514: else
4515: if test -n "$DUMPBIN"; then
4516: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4517: else
4518: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519: for as_dir in $PATH
4520: do
4521: IFS=$as_save_IFS
4522: test -z "$as_dir" && as_dir=.
4523: for ac_exec_ext in '' $ac_executable_extensions; do
4524: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527: break 2
4528: fi
4529: done
4530: done
4531:
4532: fi
4533: fi
4534: DUMPBIN=$ac_cv_prog_DUMPBIN
4535: if test -n "$DUMPBIN"; then
4536: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4537: echo "${ECHO_T}$DUMPBIN" >&6
4538: else
4539: echo "$as_me:$LINENO: result: no" >&5
4540: echo "${ECHO_T}no" >&6
4541: fi
4542:
4543: test -n "$DUMPBIN" && break
4544: done
4545: fi
4546: if test -z "$DUMPBIN"; then
4547: ac_ct_DUMPBIN=$DUMPBIN
4548: for ac_prog in dumpbin "link -dump"
4549: do
4550: # Extract the first word of "$ac_prog", so it can be a program name with args.
4551: set dummy $ac_prog; ac_word=$2
4552: echo "$as_me:$LINENO: checking for $ac_word" >&5
4553: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4555: echo $ECHO_N "(cached) $ECHO_C" >&6
4556: else
4557: if test -n "$ac_ct_DUMPBIN"; then
4558: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4559: else
4560: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561: for as_dir in $PATH
4562: do
4563: IFS=$as_save_IFS
4564: test -z "$as_dir" && as_dir=.
4565: for ac_exec_ext in '' $ac_executable_extensions; do
4566: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4568: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569: break 2
4570: fi
4571: done
4572: done
4573:
4574: fi
4575: fi
4576: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4577: if test -n "$ac_ct_DUMPBIN"; then
4578: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4579: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4580: else
4581: echo "$as_me:$LINENO: result: no" >&5
4582: echo "${ECHO_T}no" >&6
4583: fi
4584:
4585: test -n "$ac_ct_DUMPBIN" && break
4586: done
4587: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4588:
4589: DUMPBIN=$ac_ct_DUMPBIN
4590: fi
4591:
4592: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4593: *COFF*)
4594: DUMPBIN="$DUMPBIN -symbols"
4595: ;;
4596: *)
4597: DUMPBIN=:
4598: ;;
4599: esac
4600: fi
4601:
4602: if test "$DUMPBIN" != ":"; then
4603: NM="$DUMPBIN"
4604: fi
4605: fi
4606: test -z "$NM" && NM=nm
4607:
4608:
4609:
4610:
4611:
4612:
4613: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4614: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4615: if test "${lt_cv_nm_interface+set}" = set; then
4616: echo $ECHO_N "(cached) $ECHO_C" >&6
4617: else
4618: lt_cv_nm_interface="BSD nm"
4619: echo "int some_variable = 0;" > conftest.$ac_ext
4620: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4621: (eval "$ac_compile" 2>conftest.err)
4622: cat conftest.err >&5
4623: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4624: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4625: cat conftest.err >&5
4626: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4627: cat conftest.out >&5
4628: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4629: lt_cv_nm_interface="MS dumpbin"
4630: fi
4631: rm -f conftest*
4632: fi
4633: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4634: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4635:
4636: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4637: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4638: LN_S=$as_ln_s
4639: if test "$LN_S" = "ln -s"; then
4640: echo "$as_me:$LINENO: result: yes" >&5
4641: echo "${ECHO_T}yes" >&6
4642: else
4643: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4644: echo "${ECHO_T}no, using $LN_S" >&6
4645: fi
4646:
4647: # find the maximum length of command line arguments
4648: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4649: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4650: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4651: echo $ECHO_N "(cached) $ECHO_C" >&6
4652: else
4653: i=0
4654: teststring="ABCD"
4655:
4656: case $build_os in
4657: msdosdjgpp*)
4658: # On DJGPP, this test can blow up pretty badly due to problems in libc
4659: # (any single argument exceeding 2000 bytes causes a buffer overrun
4660: # during glob expansion). Even if it were fixed, the result of this
4661: # check would be larger than it should be.
4662: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4663: ;;
4664:
4665: gnu*)
4666: # Under GNU Hurd, this test is not required because there is
4667: # no limit to the length of command line arguments.
4668: # Libtool will interpret -1 as no limit whatsoever
4669: lt_cv_sys_max_cmd_len=-1;
4670: ;;
4671:
4672: cygwin* | mingw* | cegcc*)
4673: # On Win9x/ME, this test blows up -- it succeeds, but takes
4674: # about 5 minutes as the teststring grows exponentially.
4675: # Worse, since 9x/ME are not pre-emptively multitasking,
4676: # you end up with a "frozen" computer, even though with patience
4677: # the test eventually succeeds (with a max line length of 256k).
4678: # Instead, let's just punt: use the minimum linelength reported by
4679: # all of the supported platforms: 8192 (on NT/2K/XP).
4680: lt_cv_sys_max_cmd_len=8192;
4681: ;;
4682:
4683: mint*)
4684: # On MiNT this can take a long time and run out of memory.
4685: lt_cv_sys_max_cmd_len=8192;
4686: ;;
4687:
4688: amigaos*)
4689: # On AmigaOS with pdksh, this test takes hours, literally.
4690: # So we just punt and use a minimum line length of 8192.
4691: lt_cv_sys_max_cmd_len=8192;
4692: ;;
4693:
4694: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4695: # This has been around since 386BSD, at least. Likely further.
4696: if test -x /sbin/sysctl; then
4697: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4698: elif test -x /usr/sbin/sysctl; then
4699: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4700: else
4701: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4702: fi
4703: # And add a safety zone
4704: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4705: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4706: ;;
4707:
4708: interix*)
4709: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4710: lt_cv_sys_max_cmd_len=196608
4711: ;;
4712:
4713: os2*)
4714: # The test takes a long time on OS/2.
4715: lt_cv_sys_max_cmd_len=8192
4716: ;;
4717:
4718: osf*)
4719: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4720: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4721: # nice to cause kernel panics so lets avoid the loop below.
4722: # First set a reasonable default.
4723: lt_cv_sys_max_cmd_len=16384
4724: #
4725: if test -x /sbin/sysconfig; then
4726: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4727: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4728: esac
4729: fi
4730: ;;
4731: sco3.2v5*)
4732: lt_cv_sys_max_cmd_len=102400
4733: ;;
4734: sysv5* | sco5v6* | sysv4.2uw2*)
4735: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4736: if test -n "$kargmax"; then
4737: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4738: else
4739: lt_cv_sys_max_cmd_len=32768
4740: fi
4741: ;;
4742: *)
4743: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4744: if test -n "$lt_cv_sys_max_cmd_len"; then
4745: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747: else
4748: # Make teststring a little bigger before we do anything with it.
4749: # a 1K string should be a reasonable start.
4750: for i in 1 2 3 4 5 6 7 8 ; do
4751: teststring=$teststring$teststring
4752: done
4753: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754: # If test is not a shell built-in, we'll probably end up computing a
4755: # maximum length that is only half of the actual maximum length, but
4756: # we can't tell.
4757: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4758: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4759: test $i != 17 # 1/2 MB should be enough
4760: do
4761: i=`expr $i + 1`
4762: teststring=$teststring$teststring
4763: done
4764: # Only check the string length outside the loop.
4765: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4766: teststring=
4767: # Add a significant safety factor because C++ compilers can tack on
4768: # massive amounts of additional arguments before passing them to the
4769: # linker. It appears as though 1/2 is a usable value.
4770: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771: fi
4772: ;;
4773: esac
4774:
4775: fi
4776:
4777: if test -n $lt_cv_sys_max_cmd_len ; then
4778: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4779: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4780: else
4781: echo "$as_me:$LINENO: result: none" >&5
4782: echo "${ECHO_T}none" >&6
4783: fi
4784: max_cmd_len=$lt_cv_sys_max_cmd_len
4785:
4786:
4787:
4788:
4789:
4790:
4791: : ${CP="cp -f"}
4792: : ${MV="mv -f"}
4793: : ${RM="rm -f"}
4794:
4795: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4796: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4797: # Try some XSI features
4798: xsi_shell=no
4799: ( _lt_dummy="a/b/c"
4800: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4801: = c,a/b,b/c, \
4802: && eval 'test $(( 1 + 1 )) -eq 2 \
4803: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4804: && xsi_shell=yes
4805: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4806: echo "${ECHO_T}$xsi_shell" >&6
4807:
4808:
4809: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4810: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4811: lt_shell_append=no
4812: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4813: >/dev/null 2>&1 \
4814: && lt_shell_append=yes
4815: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4816: echo "${ECHO_T}$lt_shell_append" >&6
4817:
4818:
4819: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4820: lt_unset=unset
4821: else
4822: lt_unset=false
4823: fi
4824:
4825:
4826:
4827:
4828:
4829: # test EBCDIC or ASCII
4830: case `echo X|tr X '\101'` in
4831: A) # ASCII based system
4832: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4833: lt_SP2NL='tr \040 \012'
4834: lt_NL2SP='tr \015\012 \040\040'
4835: ;;
4836: *) # EBCDIC based system
4837: lt_SP2NL='tr \100 \n'
4838: lt_NL2SP='tr \r\n \100\100'
4839: ;;
4840: esac
4841:
4842:
4843:
4844:
4845:
4846:
4847:
4848:
4849:
4850: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4851: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4852: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4853: echo $ECHO_N "(cached) $ECHO_C" >&6
4854: else
4855: case $host in
4856: *-*-mingw* )
4857: case $build in
4858: *-*-mingw* ) # actually msys
4859: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4860: ;;
4861: *-*-cygwin* )
4862: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4863: ;;
4864: * ) # otherwise, assume *nix
4865: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4866: ;;
4867: esac
4868: ;;
4869: *-*-cygwin* )
4870: case $build in
4871: *-*-mingw* ) # actually msys
4872: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4873: ;;
4874: *-*-cygwin* )
4875: lt_cv_to_host_file_cmd=func_convert_file_noop
4876: ;;
4877: * ) # otherwise, assume *nix
4878: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4879: ;;
4880: esac
4881: ;;
4882: * ) # unhandled hosts (and "normal" native builds)
4883: lt_cv_to_host_file_cmd=func_convert_file_noop
4884: ;;
4885: esac
4886:
4887: fi
4888:
4889: to_host_file_cmd=$lt_cv_to_host_file_cmd
4890: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
4891: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
4892:
4893:
4894:
4895:
4896:
4897: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
4898: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
4899: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
4900: echo $ECHO_N "(cached) $ECHO_C" >&6
4901: else
4902: #assume ordinary cross tools, or native build.
4903: lt_cv_to_tool_file_cmd=func_convert_file_noop
4904: case $host in
4905: *-*-mingw* )
4906: case $build in
4907: *-*-mingw* ) # actually msys
4908: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4909: ;;
4910: esac
4911: ;;
4912: esac
4913:
4914: fi
4915:
4916: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4917: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
4918: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
4919:
4920:
4921:
4922:
4923:
4924: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4925: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4926: if test "${lt_cv_ld_reload_flag+set}" = set; then
4927: echo $ECHO_N "(cached) $ECHO_C" >&6
4928: else
4929: lt_cv_ld_reload_flag='-r'
4930: fi
4931: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4932: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4933: reload_flag=$lt_cv_ld_reload_flag
4934: case $reload_flag in
4935: "" | " "*) ;;
4936: *) reload_flag=" $reload_flag" ;;
4937: esac
4938: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4939: case $host_os in
4940: cygwin* | mingw* | pw32* | cegcc*)
4941: if test "$GCC" != yes; then
4942: reload_cmds=false
4943: fi
4944: ;;
4945: darwin*)
4946: if test "$GCC" = yes; then
4947: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4948: else
4949: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950: fi
4951: ;;
4952: esac
4953:
4954:
4955:
4956:
4957:
4958:
4959:
4960:
4961:
4962: if test -n "$ac_tool_prefix"; then
4963: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4964: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4965: echo "$as_me:$LINENO: checking for $ac_word" >&5
4966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4967: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4968: echo $ECHO_N "(cached) $ECHO_C" >&6
4969: else
4970: if test -n "$OBJDUMP"; then
4971: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4972: else
4973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974: for as_dir in $PATH
4975: do
4976: IFS=$as_save_IFS
4977: test -z "$as_dir" && as_dir=.
4978: for ac_exec_ext in '' $ac_executable_extensions; do
4979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982: break 2
4983: fi
4984: done
4985: done
4986:
4987: fi
4988: fi
4989: OBJDUMP=$ac_cv_prog_OBJDUMP
4990: if test -n "$OBJDUMP"; then
4991: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4992: echo "${ECHO_T}$OBJDUMP" >&6
4993: else
4994: echo "$as_me:$LINENO: result: no" >&5
4995: echo "${ECHO_T}no" >&6
4996: fi
4997:
4998: fi
4999: if test -z "$ac_cv_prog_OBJDUMP"; then
5000: ac_ct_OBJDUMP=$OBJDUMP
5001: # Extract the first word of "objdump", so it can be a program name with args.
5002: set dummy objdump; ac_word=$2
5003: echo "$as_me:$LINENO: checking for $ac_word" >&5
5004: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5006: echo $ECHO_N "(cached) $ECHO_C" >&6
5007: else
5008: if test -n "$ac_ct_OBJDUMP"; then
5009: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010: else
5011: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012: for as_dir in $PATH
5013: do
5014: IFS=$as_save_IFS
5015: test -z "$as_dir" && as_dir=.
5016: for ac_exec_ext in '' $ac_executable_extensions; do
5017: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020: break 2
5021: fi
5022: done
5023: done
5024:
5025: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5026: fi
5027: fi
5028: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029: if test -n "$ac_ct_OBJDUMP"; then
5030: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5031: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5032: else
5033: echo "$as_me:$LINENO: result: no" >&5
5034: echo "${ECHO_T}no" >&6
5035: fi
5036:
5037: OBJDUMP=$ac_ct_OBJDUMP
5038: else
5039: OBJDUMP="$ac_cv_prog_OBJDUMP"
5040: fi
5041:
5042: test -z "$OBJDUMP" && OBJDUMP=objdump
5043:
5044:
5045:
5046:
5047:
5048:
5049: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5050: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5051: if test "${lt_cv_deplibs_check_method+set}" = set; then
5052: echo $ECHO_N "(cached) $ECHO_C" >&6
5053: else
5054: lt_cv_file_magic_cmd='$MAGIC_CMD'
5055: lt_cv_file_magic_test_file=
5056: lt_cv_deplibs_check_method='unknown'
5057: # Need to set the preceding variable on all platforms that support
5058: # interlibrary dependencies.
5059: # 'none' -- dependencies not supported.
5060: # `unknown' -- same as none, but documents that we really don't know.
5061: # 'pass_all' -- all dependencies passed with no checks.
5062: # 'test_compile' -- check by making test program.
5063: # 'file_magic [[regex]]' -- check by looking for files in library path
5064: # which responds to the $file_magic_cmd with a given extended regex.
5065: # If you have `file' or equivalent on your system and you're not sure
5066: # whether `pass_all' will *always* work, you probably want this one.
5067:
5068: case $host_os in
5069: aix[4-9]*)
5070: lt_cv_deplibs_check_method=pass_all
5071: ;;
5072:
5073: beos*)
5074: lt_cv_deplibs_check_method=pass_all
5075: ;;
5076:
5077: bsdi[45]*)
5078: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079: lt_cv_file_magic_cmd='/usr/bin/file -L'
5080: lt_cv_file_magic_test_file=/shlib/libc.so
5081: ;;
5082:
5083: cygwin*)
5084: # func_win32_libid is a shell function defined in ltmain.sh
5085: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086: lt_cv_file_magic_cmd='func_win32_libid'
5087: ;;
5088:
5089: mingw* | pw32*)
5090: # Base MSYS/MinGW do not provide the 'file' command needed by
5091: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092: # unless we find 'file', for example because we are cross-compiling.
5093: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096: lt_cv_file_magic_cmd='func_win32_libid'
5097: else
5098: # Keep this pattern in sync with the one in func_win32_libid.
5099: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100: lt_cv_file_magic_cmd='$OBJDUMP -f'
5101: fi
5102: ;;
5103:
5104: cegcc*)
5105: # use the weaker test based on 'objdump'. See mingw*.
5106: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107: lt_cv_file_magic_cmd='$OBJDUMP -f'
5108: ;;
5109:
5110: darwin* | rhapsody*)
5111: lt_cv_deplibs_check_method=pass_all
5112: ;;
5113:
5114: freebsd* | dragonfly*)
5115: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5116: case $host_cpu in
5117: i*86 )
5118: # Not sure whether the presence of OpenBSD here was a mistake.
5119: # Let's accept both of them until this is cleared up.
5120: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121: lt_cv_file_magic_cmd=/usr/bin/file
5122: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5123: ;;
5124: esac
5125: else
5126: lt_cv_deplibs_check_method=pass_all
5127: fi
5128: ;;
5129:
5130: gnu*)
5131: lt_cv_deplibs_check_method=pass_all
5132: ;;
5133:
5134: haiku*)
5135: lt_cv_deplibs_check_method=pass_all
5136: ;;
5137:
5138: hpux10.20* | hpux11*)
5139: lt_cv_file_magic_cmd=/usr/bin/file
5140: case $host_cpu in
5141: ia64*)
5142: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5143: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5144: ;;
5145: hppa*64*)
5146: 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]'
5147: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5148: ;;
5149: *)
5150: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5151: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5152: ;;
5153: esac
5154: ;;
5155:
5156: interix[3-9]*)
5157: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5158: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5159: ;;
5160:
5161: irix5* | irix6* | nonstopux*)
5162: case $LD in
5163: *-32|*"-32 ") libmagic=32-bit;;
5164: *-n32|*"-n32 ") libmagic=N32;;
5165: *-64|*"-64 ") libmagic=64-bit;;
5166: *) libmagic=never-match;;
5167: esac
5168: lt_cv_deplibs_check_method=pass_all
5169: ;;
5170:
5171: # This must be glibc/ELF.
5172: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5173: lt_cv_deplibs_check_method=pass_all
5174: ;;
5175:
5176: netbsd*)
5177: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5179: else
5180: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5181: fi
5182: ;;
5183:
5184: newos6*)
5185: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5186: lt_cv_file_magic_cmd=/usr/bin/file
5187: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5188: ;;
5189:
5190: *nto* | *qnx*)
5191: lt_cv_deplibs_check_method=pass_all
5192: ;;
5193:
5194: openbsd*)
5195: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5196: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5197: else
5198: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5199: fi
5200: ;;
5201:
5202: osf3* | osf4* | osf5*)
5203: lt_cv_deplibs_check_method=pass_all
5204: ;;
5205:
5206: rdos*)
5207: lt_cv_deplibs_check_method=pass_all
5208: ;;
5209:
5210: solaris*)
5211: lt_cv_deplibs_check_method=pass_all
5212: ;;
5213:
5214: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5215: lt_cv_deplibs_check_method=pass_all
5216: ;;
5217:
5218: sysv4 | sysv4.3*)
5219: case $host_vendor in
5220: motorola)
5221: 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]'
5222: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5223: ;;
5224: ncr)
5225: lt_cv_deplibs_check_method=pass_all
5226: ;;
5227: sequent)
5228: lt_cv_file_magic_cmd='/bin/file'
5229: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5230: ;;
5231: sni)
5232: lt_cv_file_magic_cmd='/bin/file'
5233: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5234: lt_cv_file_magic_test_file=/lib/libc.so
5235: ;;
5236: siemens)
5237: lt_cv_deplibs_check_method=pass_all
5238: ;;
5239: pc)
5240: lt_cv_deplibs_check_method=pass_all
5241: ;;
5242: esac
5243: ;;
5244:
5245: tpf*)
5246: lt_cv_deplibs_check_method=pass_all
5247: ;;
5248: esac
5249:
5250: fi
5251: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5252: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5253:
5254: file_magic_glob=
5255: want_nocaseglob=no
5256: if test "$build" = "$host"; then
5257: case $host_os in
5258: mingw* | pw32*)
5259: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260: want_nocaseglob=yes
5261: else
5262: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263: fi
5264: ;;
5265: esac
5266: fi
5267:
5268: file_magic_cmd=$lt_cv_file_magic_cmd
5269: deplibs_check_method=$lt_cv_deplibs_check_method
5270: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5271:
5272:
5273:
5274:
5275:
5276:
5277:
5278:
5279:
5280:
5281:
5282:
5283:
5284:
5285:
5286:
5287:
5288:
5289:
5290:
5291:
5292:
5293: if test -n "$ac_tool_prefix"; then
5294: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296: echo "$as_me:$LINENO: checking for $ac_word" >&5
5297: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5299: echo $ECHO_N "(cached) $ECHO_C" >&6
5300: else
5301: if test -n "$DLLTOOL"; then
5302: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5303: else
5304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305: for as_dir in $PATH
5306: do
5307: IFS=$as_save_IFS
5308: test -z "$as_dir" && as_dir=.
5309: for ac_exec_ext in '' $ac_executable_extensions; do
5310: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313: break 2
5314: fi
5315: done
5316: done
5317:
5318: fi
5319: fi
5320: DLLTOOL=$ac_cv_prog_DLLTOOL
5321: if test -n "$DLLTOOL"; then
5322: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5323: echo "${ECHO_T}$DLLTOOL" >&6
5324: else
5325: echo "$as_me:$LINENO: result: no" >&5
5326: echo "${ECHO_T}no" >&6
5327: fi
5328:
5329: fi
5330: if test -z "$ac_cv_prog_DLLTOOL"; then
5331: ac_ct_DLLTOOL=$DLLTOOL
5332: # Extract the first word of "dlltool", so it can be a program name with args.
5333: set dummy dlltool; ac_word=$2
5334: echo "$as_me:$LINENO: checking for $ac_word" >&5
5335: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5337: echo $ECHO_N "(cached) $ECHO_C" >&6
5338: else
5339: if test -n "$ac_ct_DLLTOOL"; then
5340: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5341: else
5342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343: for as_dir in $PATH
5344: do
5345: IFS=$as_save_IFS
5346: test -z "$as_dir" && as_dir=.
5347: for ac_exec_ext in '' $ac_executable_extensions; do
5348: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5350: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351: break 2
5352: fi
5353: done
5354: done
5355:
5356: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5357: fi
5358: fi
5359: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5360: if test -n "$ac_ct_DLLTOOL"; then
5361: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5362: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5363: else
5364: echo "$as_me:$LINENO: result: no" >&5
5365: echo "${ECHO_T}no" >&6
5366: fi
5367:
5368: DLLTOOL=$ac_ct_DLLTOOL
5369: else
5370: DLLTOOL="$ac_cv_prog_DLLTOOL"
5371: fi
5372:
5373: test -z "$DLLTOOL" && DLLTOOL=dlltool
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
5382: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
5383: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
5384: echo $ECHO_N "(cached) $ECHO_C" >&6
5385: else
5386: lt_cv_sharedlib_from_linklib_cmd='unknown'
5387:
5388: case $host_os in
5389: cygwin* | mingw* | pw32* | cegcc*)
5390: # two different shell functions defined in ltmain.sh
5391: # decide which to use based on capabilities of $DLLTOOL
5392: case `$DLLTOOL --help 2>&1` in
5393: *--identify-strict*)
5394: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5395: ;;
5396: *)
5397: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5398: ;;
5399: esac
5400: ;;
5401: *)
5402: # fallback: assume linklib IS sharedlib
5403: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5404: ;;
5405: esac
5406:
5407: fi
5408: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5409: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
5410: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5411: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5412:
5413:
5414:
5415:
5416:
5417:
5418:
5419: if test -n "$ac_tool_prefix"; then
5420: for ac_prog in ar
5421: do
5422: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5423: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5424: echo "$as_me:$LINENO: checking for $ac_word" >&5
5425: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426: if test "${ac_cv_prog_AR+set}" = set; then
5427: echo $ECHO_N "(cached) $ECHO_C" >&6
5428: else
5429: if test -n "$AR"; then
5430: ac_cv_prog_AR="$AR" # Let the user override the test.
5431: else
5432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433: for as_dir in $PATH
5434: do
5435: IFS=$as_save_IFS
5436: test -z "$as_dir" && as_dir=.
5437: for ac_exec_ext in '' $ac_executable_extensions; do
5438: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5440: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441: break 2
5442: fi
5443: done
5444: done
5445:
5446: fi
5447: fi
5448: AR=$ac_cv_prog_AR
5449: if test -n "$AR"; then
5450: echo "$as_me:$LINENO: result: $AR" >&5
5451: echo "${ECHO_T}$AR" >&6
5452: else
5453: echo "$as_me:$LINENO: result: no" >&5
5454: echo "${ECHO_T}no" >&6
5455: fi
5456:
5457: test -n "$AR" && break
5458: done
5459: fi
5460: if test -z "$AR"; then
5461: ac_ct_AR=$AR
5462: for ac_prog in ar
5463: do
5464: # Extract the first word of "$ac_prog", so it can be a program name with args.
5465: set dummy $ac_prog; ac_word=$2
5466: echo "$as_me:$LINENO: checking for $ac_word" >&5
5467: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5469: echo $ECHO_N "(cached) $ECHO_C" >&6
5470: else
5471: if test -n "$ac_ct_AR"; then
5472: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473: else
5474: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475: for as_dir in $PATH
5476: do
5477: IFS=$as_save_IFS
5478: test -z "$as_dir" && as_dir=.
5479: for ac_exec_ext in '' $ac_executable_extensions; do
5480: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481: ac_cv_prog_ac_ct_AR="$ac_prog"
5482: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483: break 2
5484: fi
5485: done
5486: done
5487:
5488: fi
5489: fi
5490: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491: if test -n "$ac_ct_AR"; then
5492: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5493: echo "${ECHO_T}$ac_ct_AR" >&6
5494: else
5495: echo "$as_me:$LINENO: result: no" >&5
5496: echo "${ECHO_T}no" >&6
5497: fi
5498:
5499: test -n "$ac_ct_AR" && break
5500: done
5501: test -n "$ac_ct_AR" || ac_ct_AR="false"
5502:
5503: AR=$ac_ct_AR
5504: fi
5505:
5506: : ${AR=ar}
5507: : ${AR_FLAGS=cru}
5508:
5509:
5510:
5511:
5512:
5513:
5514:
5515:
5516:
5517:
5518:
5519: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
5520: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
5521: if test "${lt_cv_ar_at_file+set}" = set; then
5522: echo $ECHO_N "(cached) $ECHO_C" >&6
5523: else
5524: lt_cv_ar_at_file=no
5525: cat >conftest.$ac_ext <<_ACEOF
5526: /* confdefs.h. */
5527: _ACEOF
5528: cat confdefs.h >>conftest.$ac_ext
5529: cat >>conftest.$ac_ext <<_ACEOF
5530: /* end confdefs.h. */
5531:
5532: int
5533: main ()
5534: {
5535:
5536: ;
5537: return 0;
5538: }
5539: _ACEOF
5540: rm -f conftest.$ac_objext
5541: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542: (eval $ac_compile) 2>conftest.er1
5543: ac_status=$?
5544: grep -v '^ *+' conftest.er1 >conftest.err
5545: rm -f conftest.er1
5546: cat conftest.err >&5
5547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548: (exit $ac_status); } &&
5549: { ac_try='test -z "$ac_c_werror_flag"
5550: || test ! -s conftest.err'
5551: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552: (eval $ac_try) 2>&5
5553: ac_status=$?
5554: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555: (exit $ac_status); }; } &&
5556: { ac_try='test -s conftest.$ac_objext'
5557: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558: (eval $ac_try) 2>&5
5559: ac_status=$?
5560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561: (exit $ac_status); }; }; then
5562: echo conftest.$ac_objext > conftest.lst
5563: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5564: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5565: (eval $lt_ar_try) 2>&5
5566: ac_status=$?
5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568: (exit $ac_status); }
5569: if test "$ac_status" -eq 0; then
5570: # Ensure the archiver fails upon bogus file names.
5571: rm -f conftest.$ac_objext libconftest.a
5572: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5573: (eval $lt_ar_try) 2>&5
5574: ac_status=$?
5575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576: (exit $ac_status); }
5577: if test "$ac_status" -ne 0; then
5578: lt_cv_ar_at_file=@
5579: fi
5580: fi
5581: rm -f conftest.* libconftest.a
5582:
5583: else
5584: echo "$as_me: failed program was:" >&5
5585: sed 's/^/| /' conftest.$ac_ext >&5
5586:
5587: fi
5588: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589:
5590: fi
5591: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5592: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5593:
5594: if test "x$lt_cv_ar_at_file" = xno; then
5595: archiver_list_spec=
5596: else
5597: archiver_list_spec=$lt_cv_ar_at_file
5598: fi
5599:
5600:
5601:
5602:
5603:
5604:
5605:
5606: if test -n "$ac_tool_prefix"; then
5607: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5608: set dummy ${ac_tool_prefix}strip; ac_word=$2
5609: echo "$as_me:$LINENO: checking for $ac_word" >&5
5610: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611: if test "${ac_cv_prog_STRIP+set}" = set; then
5612: echo $ECHO_N "(cached) $ECHO_C" >&6
5613: else
5614: if test -n "$STRIP"; then
5615: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5616: else
5617: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618: for as_dir in $PATH
5619: do
5620: IFS=$as_save_IFS
5621: test -z "$as_dir" && as_dir=.
5622: for ac_exec_ext in '' $ac_executable_extensions; do
5623: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5625: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626: break 2
5627: fi
5628: done
5629: done
5630:
5631: fi
5632: fi
5633: STRIP=$ac_cv_prog_STRIP
5634: if test -n "$STRIP"; then
5635: echo "$as_me:$LINENO: result: $STRIP" >&5
5636: echo "${ECHO_T}$STRIP" >&6
5637: else
5638: echo "$as_me:$LINENO: result: no" >&5
5639: echo "${ECHO_T}no" >&6
5640: fi
5641:
5642: fi
5643: if test -z "$ac_cv_prog_STRIP"; then
5644: ac_ct_STRIP=$STRIP
5645: # Extract the first word of "strip", so it can be a program name with args.
5646: set dummy strip; ac_word=$2
5647: echo "$as_me:$LINENO: checking for $ac_word" >&5
5648: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5650: echo $ECHO_N "(cached) $ECHO_C" >&6
5651: else
5652: if test -n "$ac_ct_STRIP"; then
5653: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5654: else
5655: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656: for as_dir in $PATH
5657: do
5658: IFS=$as_save_IFS
5659: test -z "$as_dir" && as_dir=.
5660: for ac_exec_ext in '' $ac_executable_extensions; do
5661: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662: ac_cv_prog_ac_ct_STRIP="strip"
5663: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664: break 2
5665: fi
5666: done
5667: done
5668:
5669: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5670: fi
5671: fi
5672: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5673: if test -n "$ac_ct_STRIP"; then
5674: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5675: echo "${ECHO_T}$ac_ct_STRIP" >&6
5676: else
5677: echo "$as_me:$LINENO: result: no" >&5
5678: echo "${ECHO_T}no" >&6
5679: fi
5680:
5681: STRIP=$ac_ct_STRIP
5682: else
5683: STRIP="$ac_cv_prog_STRIP"
5684: fi
5685:
5686: test -z "$STRIP" && STRIP=:
5687:
5688:
5689:
5690:
5691:
5692:
5693: if test -n "$ac_tool_prefix"; then
5694: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5695: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5696: echo "$as_me:$LINENO: checking for $ac_word" >&5
5697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698: if test "${ac_cv_prog_RANLIB+set}" = set; then
5699: echo $ECHO_N "(cached) $ECHO_C" >&6
5700: else
5701: if test -n "$RANLIB"; then
5702: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5703: else
5704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705: for as_dir in $PATH
5706: do
5707: IFS=$as_save_IFS
5708: test -z "$as_dir" && as_dir=.
5709: for ac_exec_ext in '' $ac_executable_extensions; do
5710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713: break 2
5714: fi
5715: done
5716: done
5717:
5718: fi
5719: fi
5720: RANLIB=$ac_cv_prog_RANLIB
5721: if test -n "$RANLIB"; then
5722: echo "$as_me:$LINENO: result: $RANLIB" >&5
5723: echo "${ECHO_T}$RANLIB" >&6
5724: else
5725: echo "$as_me:$LINENO: result: no" >&5
5726: echo "${ECHO_T}no" >&6
5727: fi
5728:
5729: fi
5730: if test -z "$ac_cv_prog_RANLIB"; then
5731: ac_ct_RANLIB=$RANLIB
5732: # Extract the first word of "ranlib", so it can be a program name with args.
5733: set dummy ranlib; ac_word=$2
5734: echo "$as_me:$LINENO: checking for $ac_word" >&5
5735: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5737: echo $ECHO_N "(cached) $ECHO_C" >&6
5738: else
5739: if test -n "$ac_ct_RANLIB"; then
5740: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5741: else
5742: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743: for as_dir in $PATH
5744: do
5745: IFS=$as_save_IFS
5746: test -z "$as_dir" && as_dir=.
5747: for ac_exec_ext in '' $ac_executable_extensions; do
5748: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749: ac_cv_prog_ac_ct_RANLIB="ranlib"
5750: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751: break 2
5752: fi
5753: done
5754: done
5755:
5756: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5757: fi
5758: fi
5759: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5760: if test -n "$ac_ct_RANLIB"; then
5761: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5762: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5763: else
5764: echo "$as_me:$LINENO: result: no" >&5
5765: echo "${ECHO_T}no" >&6
5766: fi
5767:
5768: RANLIB=$ac_ct_RANLIB
5769: else
5770: RANLIB="$ac_cv_prog_RANLIB"
5771: fi
5772:
5773: test -z "$RANLIB" && RANLIB=:
5774:
5775:
5776:
5777:
5778:
5779:
5780: # Determine commands to create old-style static archives.
5781: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5782: old_postinstall_cmds='chmod 644 $oldlib'
5783: old_postuninstall_cmds=
5784:
5785: if test -n "$RANLIB"; then
5786: case $host_os in
5787: openbsd*)
5788: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5789: ;;
5790: *)
5791: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5792: ;;
5793: esac
5794: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5795: fi
5796:
5797: case $host_os in
5798: darwin*)
5799: lock_old_archive_extraction=yes ;;
5800: *)
5801: lock_old_archive_extraction=no ;;
5802: esac
5803:
5804:
5805:
5806:
5807:
5808:
5809:
5810:
5811:
5812:
5813:
5814:
5815:
5816:
5817:
5818:
5819:
5820:
5821:
5822:
5823:
5824:
5825:
5826:
5827:
5828:
5829:
5830:
5831:
5832:
5833:
5834:
5835:
5836:
5837:
5838:
5839:
5840:
5841:
5842: # If no C compiler was specified, use CC.
5843: LTCC=${LTCC-"$CC"}
5844:
5845: # If no C compiler flags were specified, use CFLAGS.
5846: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5847:
5848: # Allow CC to be a program name with arguments.
5849: compiler=$CC
5850:
5851:
5852: # Check for command to grab the raw symbol name followed by C symbol from nm.
5853: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5854: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5855: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5856: echo $ECHO_N "(cached) $ECHO_C" >&6
5857: else
5858:
5859: # These are sane defaults that work on at least a few old systems.
5860: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5861:
5862: # Character class describing NM global symbol codes.
5863: symcode='[BCDEGRST]'
5864:
5865: # Regexp to match symbols that can be accessed directly from C.
5866: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5867:
5868: # Define system-specific variables.
5869: case $host_os in
5870: aix*)
5871: symcode='[BCDT]'
5872: ;;
5873: cygwin* | mingw* | pw32* | cegcc*)
5874: symcode='[ABCDGISTW]'
5875: ;;
5876: hpux*)
5877: if test "$host_cpu" = ia64; then
5878: symcode='[ABCDEGRST]'
5879: fi
5880: ;;
5881: irix* | nonstopux*)
5882: symcode='[BCDEGRST]'
5883: ;;
5884: osf*)
5885: symcode='[BCDEGQRST]'
5886: ;;
5887: solaris*)
5888: symcode='[BDRT]'
5889: ;;
5890: sco3.2v5*)
5891: symcode='[DT]'
5892: ;;
5893: sysv4.2uw2*)
5894: symcode='[DT]'
5895: ;;
5896: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5897: symcode='[ABDT]'
5898: ;;
5899: sysv4)
5900: symcode='[DFNSTU]'
5901: ;;
5902: esac
5903:
5904: # If we're using GNU nm, then use its standard symbol codes.
5905: case `$NM -V 2>&1` in
5906: *GNU* | *'with BFD'*)
5907: symcode='[ABCDGIRSTW]' ;;
5908: esac
5909:
5910: # Transform an extracted symbol line into a proper C declaration.
5911: # Some systems (esp. on ia64) link data and code symbols differently,
5912: # so use this general approach.
5913: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5914:
5915: # Transform an extracted symbol line into symbol name and symbol address
5916: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5917: 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'"
5918:
5919: # Handle CRLF in mingw tool chain
5920: opt_cr=
5921: case $build_os in
5922: mingw*)
5923: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5924: ;;
5925: esac
5926:
5927: # Try without a prefix underscore, then with it.
5928: for ac_symprfx in "" "_"; do
5929:
5930: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5931: symxfrm="\\1 $ac_symprfx\\2 \\2"
5932:
5933: # Write the raw and C identifiers.
5934: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5935: # Fake it for dumpbin and say T for any non-static function
5936: # and D for any global variable.
5937: # Also find C++ and __fastcall symbols from MSVC++,
5938: # which start with @ or ?.
5939: lt_cv_sys_global_symbol_pipe="$AWK '"\
5940: " {last_section=section; section=\$ 3};"\
5941: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5942: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5943: " \$ 0!~/External *\|/{next};"\
5944: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5945: " {if(hide[section]) next};"\
5946: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5947: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5948: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5949: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5950: " ' prfx=^$ac_symprfx"
5951: else
5952: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5953: fi
5954: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5955:
5956: # Check to see that the pipe works correctly.
5957: pipe_works=no
5958:
5959: rm -f conftest*
5960: cat > conftest.$ac_ext <<_LT_EOF
5961: #ifdef __cplusplus
5962: extern "C" {
5963: #endif
5964: char nm_test_var;
5965: void nm_test_func(void);
5966: void nm_test_func(void){}
5967: #ifdef __cplusplus
5968: }
5969: #endif
5970: int main(){nm_test_var='a';nm_test_func();return(0);}
5971: _LT_EOF
5972:
5973: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974: (eval $ac_compile) 2>&5
5975: ac_status=$?
5976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977: (exit $ac_status); }; then
5978: # Now try to grab the symbols.
5979: nlist=conftest.nm
5980: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5981: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5982: ac_status=$?
5983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984: (exit $ac_status); } && test -s "$nlist"; then
5985: # Try sorting and uniquifying the output.
5986: if sort "$nlist" | uniq > "$nlist"T; then
5987: mv -f "$nlist"T "$nlist"
5988: else
5989: rm -f "$nlist"T
5990: fi
5991:
5992: # Make sure that we snagged all the symbols we need.
5993: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5994: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5995: cat <<_LT_EOF > conftest.$ac_ext
5996: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5997: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5998: /* DATA imports from DLLs on WIN32 con't be const, because runtime
5999: relocations are performed -- see ld's documentation on pseudo-relocs. */
6000: # define LT_DLSYM_CONST
6001: #elif defined(__osf__)
6002: /* This system does not cope well with relocations in const data. */
6003: # define LT_DLSYM_CONST
6004: #else
6005: # define LT_DLSYM_CONST const
6006: #endif
6007:
6008: #ifdef __cplusplus
6009: extern "C" {
6010: #endif
6011:
6012: _LT_EOF
6013: # Now generate the symbol file.
6014: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6015:
6016: cat <<_LT_EOF >> conftest.$ac_ext
6017:
6018: /* The mapping between symbol names and symbols. */
6019: LT_DLSYM_CONST struct {
6020: const char *name;
6021: void *address;
6022: }
6023: lt__PROGRAM__LTX_preloaded_symbols[] =
6024: {
6025: { "@PROGRAM@", (void *) 0 },
6026: _LT_EOF
6027: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6028: cat <<\_LT_EOF >> conftest.$ac_ext
6029: {0, (void *) 0}
6030: };
6031:
6032: /* This works around a problem in FreeBSD linker */
6033: #ifdef FREEBSD_WORKAROUND
6034: static const void *lt_preloaded_setup() {
6035: return lt__PROGRAM__LTX_preloaded_symbols;
6036: }
6037: #endif
6038:
6039: #ifdef __cplusplus
6040: }
6041: #endif
6042: _LT_EOF
6043: # Now try linking the two files.
6044: mv conftest.$ac_objext conftstm.$ac_objext
6045: lt_globsym_save_LIBS=$LIBS
6046: lt_globsym_save_CFLAGS=$CFLAGS
6047: LIBS="conftstm.$ac_objext"
6048: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6049: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050: (eval $ac_link) 2>&5
6051: ac_status=$?
6052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6054: pipe_works=yes
6055: fi
6056: LIBS=$lt_globsym_save_LIBS
6057: CFLAGS=$lt_globsym_save_CFLAGS
6058: else
6059: echo "cannot find nm_test_func in $nlist" >&5
6060: fi
6061: else
6062: echo "cannot find nm_test_var in $nlist" >&5
6063: fi
6064: else
6065: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6066: fi
6067: else
6068: echo "$progname: failed program was:" >&5
6069: cat conftest.$ac_ext >&5
6070: fi
6071: rm -rf conftest* conftst*
6072:
6073: # Do not use the global_symbol_pipe unless it works.
6074: if test "$pipe_works" = yes; then
6075: break
6076: else
6077: lt_cv_sys_global_symbol_pipe=
6078: fi
6079: done
6080:
6081: fi
6082:
6083: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6084: lt_cv_sys_global_symbol_to_cdecl=
6085: fi
6086: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6087: echo "$as_me:$LINENO: result: failed" >&5
6088: echo "${ECHO_T}failed" >&6
6089: else
6090: echo "$as_me:$LINENO: result: ok" >&5
6091: echo "${ECHO_T}ok" >&6
6092: fi
6093:
6094: # Response file support.
6095: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6096: nm_file_list_spec='@'
6097: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6098: nm_file_list_spec='@'
6099: fi
6100:
6101:
6102:
6103:
6104:
6105:
6106:
6107:
6108:
6109:
6110:
6111:
6112:
6113:
6114:
6115:
6116:
6117:
6118:
6119:
6120:
6121:
6122:
6123:
6124:
6125:
6126:
6127: echo "$as_me:$LINENO: checking for sysroot" >&5
6128: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
6129:
6130: # Check whether --with-sysroot or --without-sysroot was given.
6131: if test "${with_sysroot+set}" = set; then
6132: withval="$with_sysroot"
6133:
6134: else
6135: with_sysroot=no
6136: fi;
6137:
6138: lt_sysroot=
6139: case ${with_sysroot} in #(
6140: yes)
6141: if test "$GCC" = yes; then
6142: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6143: fi
6144: ;; #(
6145: /*)
6146: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6147: ;; #(
6148: no|'')
6149: ;; #(
6150: *)
6151: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
6152: echo "${ECHO_T}${with_sysroot}" >&6
6153: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
6154: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
6155: { (exit 1); exit 1; }; }
6156: ;;
6157: esac
6158:
6159: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
6160: echo "${ECHO_T}${lt_sysroot:-no}" >&6
6161:
6162:
6163:
6164:
6165:
6166: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6167: if test "${enable_libtool_lock+set}" = set; then
6168: enableval="$enable_libtool_lock"
6169:
6170: fi;
6171: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172:
6173: # Some flags need to be propagated to the compiler or linker for good
6174: # libtool support.
6175: case $host in
6176: ia64-*-hpux*)
6177: # Find out which ABI we are using.
6178: echo 'int i;' > conftest.$ac_ext
6179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180: (eval $ac_compile) 2>&5
6181: ac_status=$?
6182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183: (exit $ac_status); }; then
6184: case `/usr/bin/file conftest.$ac_objext` in
6185: *ELF-32*)
6186: HPUX_IA64_MODE="32"
6187: ;;
6188: *ELF-64*)
6189: HPUX_IA64_MODE="64"
6190: ;;
6191: esac
6192: fi
6193: rm -rf conftest*
6194: ;;
6195: *-*-irix6*)
6196: # Find out which ABI we are using.
6197: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6198: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199: (eval $ac_compile) 2>&5
6200: ac_status=$?
6201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202: (exit $ac_status); }; then
6203: if test "$lt_cv_prog_gnu_ld" = yes; then
6204: case `/usr/bin/file conftest.$ac_objext` in
6205: *32-bit*)
6206: LD="${LD-ld} -melf32bsmip"
6207: ;;
6208: *N32*)
6209: LD="${LD-ld} -melf32bmipn32"
6210: ;;
6211: *64-bit*)
6212: LD="${LD-ld} -melf64bmip"
6213: ;;
6214: esac
6215: else
6216: case `/usr/bin/file conftest.$ac_objext` in
6217: *32-bit*)
6218: LD="${LD-ld} -32"
6219: ;;
6220: *N32*)
6221: LD="${LD-ld} -n32"
6222: ;;
6223: *64-bit*)
6224: LD="${LD-ld} -64"
6225: ;;
6226: esac
6227: fi
6228: fi
6229: rm -rf conftest*
6230: ;;
6231:
6232: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6233: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6234: # Find out which ABI we are using.
6235: echo 'int i;' > conftest.$ac_ext
6236: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237: (eval $ac_compile) 2>&5
6238: ac_status=$?
6239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240: (exit $ac_status); }; then
6241: case `/usr/bin/file conftest.o` in
6242: *32-bit*)
6243: case $host in
6244: x86_64-*kfreebsd*-gnu)
6245: LD="${LD-ld} -m elf_i386_fbsd"
6246: ;;
6247: x86_64-*linux*)
6248: LD="${LD-ld} -m elf_i386"
6249: ;;
6250: ppc64-*linux*|powerpc64-*linux*)
6251: LD="${LD-ld} -m elf32ppclinux"
6252: ;;
6253: s390x-*linux*)
6254: LD="${LD-ld} -m elf_s390"
6255: ;;
6256: sparc64-*linux*)
6257: LD="${LD-ld} -m elf32_sparc"
6258: ;;
6259: esac
6260: ;;
6261: *64-bit*)
6262: case $host in
6263: x86_64-*kfreebsd*-gnu)
6264: LD="${LD-ld} -m elf_x86_64_fbsd"
6265: ;;
6266: x86_64-*linux*)
6267: LD="${LD-ld} -m elf_x86_64"
6268: ;;
6269: ppc*-*linux*|powerpc*-*linux*)
6270: LD="${LD-ld} -m elf64ppc"
6271: ;;
6272: s390*-*linux*|s390*-*tpf*)
6273: LD="${LD-ld} -m elf64_s390"
6274: ;;
6275: sparc*-*linux*)
6276: LD="${LD-ld} -m elf64_sparc"
6277: ;;
6278: esac
6279: ;;
6280: esac
6281: fi
6282: rm -rf conftest*
6283: ;;
6284:
6285: *-*-sco3.2v5*)
6286: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6287: SAVE_CFLAGS="$CFLAGS"
6288: CFLAGS="$CFLAGS -belf"
6289: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6290: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6291: if test "${lt_cv_cc_needs_belf+set}" = set; then
6292: echo $ECHO_N "(cached) $ECHO_C" >&6
6293: else
6294: ac_ext=c
6295: ac_cpp='$CPP $CPPFLAGS'
6296: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299:
6300: cat >conftest.$ac_ext <<_ACEOF
6301: /* confdefs.h. */
6302: _ACEOF
6303: cat confdefs.h >>conftest.$ac_ext
6304: cat >>conftest.$ac_ext <<_ACEOF
6305: /* end confdefs.h. */
6306:
6307: int
6308: main ()
6309: {
6310:
6311: ;
6312: return 0;
6313: }
6314: _ACEOF
6315: rm -f conftest.$ac_objext conftest$ac_exeext
6316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317: (eval $ac_link) 2>conftest.er1
6318: ac_status=$?
6319: grep -v '^ *+' conftest.er1 >conftest.err
6320: rm -f conftest.er1
6321: cat conftest.err >&5
6322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323: (exit $ac_status); } &&
6324: { ac_try='test -z "$ac_c_werror_flag"
6325: || test ! -s conftest.err'
6326: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327: (eval $ac_try) 2>&5
6328: ac_status=$?
6329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330: (exit $ac_status); }; } &&
6331: { ac_try='test -s conftest$ac_exeext'
6332: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333: (eval $ac_try) 2>&5
6334: ac_status=$?
6335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336: (exit $ac_status); }; }; then
6337: lt_cv_cc_needs_belf=yes
6338: else
6339: echo "$as_me: failed program was:" >&5
6340: sed 's/^/| /' conftest.$ac_ext >&5
6341:
6342: lt_cv_cc_needs_belf=no
6343: fi
6344: rm -f conftest.err conftest.$ac_objext \
6345: conftest$ac_exeext conftest.$ac_ext
6346: ac_ext=c
6347: ac_cpp='$CPP $CPPFLAGS'
6348: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351:
6352: fi
6353: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6354: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6355: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6356: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6357: CFLAGS="$SAVE_CFLAGS"
6358: fi
6359: ;;
6360: *-*solaris*)
6361: # Find out which ABI we are using.
6362: echo 'int i;' > conftest.$ac_ext
6363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364: (eval $ac_compile) 2>&5
6365: ac_status=$?
6366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367: (exit $ac_status); }; then
6368: case `/usr/bin/file conftest.o` in
6369: *64-bit*)
6370: case $lt_cv_prog_gnu_ld in
6371: yes*)
6372: case $host in
6373: i?86-*-solaris*)
6374: LD="${LD-ld} -m elf_x86_64"
6375: ;;
6376: sparc*-*-solaris*)
6377: LD="${LD-ld} -m elf64_sparc"
6378: ;;
6379: esac
6380: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6381: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6382: LD="${LD-ld}_sol2"
6383: fi
6384: ;;
6385: *)
6386: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387: LD="${LD-ld} -64"
6388: fi
6389: ;;
6390: esac
6391: ;;
6392: esac
6393: fi
6394: rm -rf conftest*
6395: ;;
6396: esac
6397:
6398: need_locks="$enable_libtool_lock"
6399:
6400: if test -n "$ac_tool_prefix"; then
6401: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6402: set dummy ${ac_tool_prefix}mt; ac_word=$2
6403: echo "$as_me:$LINENO: checking for $ac_word" >&5
6404: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
6406: echo $ECHO_N "(cached) $ECHO_C" >&6
6407: else
6408: if test -n "$MANIFEST_TOOL"; then
6409: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6410: else
6411: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412: for as_dir in $PATH
6413: do
6414: IFS=$as_save_IFS
6415: test -z "$as_dir" && as_dir=.
6416: for ac_exec_ext in '' $ac_executable_extensions; do
6417: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6419: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420: break 2
6421: fi
6422: done
6423: done
6424:
6425: fi
6426: fi
6427: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6428: if test -n "$MANIFEST_TOOL"; then
6429: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
6430: echo "${ECHO_T}$MANIFEST_TOOL" >&6
6431: else
6432: echo "$as_me:$LINENO: result: no" >&5
6433: echo "${ECHO_T}no" >&6
6434: fi
6435:
6436: fi
6437: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6438: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6439: # Extract the first word of "mt", so it can be a program name with args.
6440: set dummy mt; ac_word=$2
6441: echo "$as_me:$LINENO: checking for $ac_word" >&5
6442: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6443: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
6444: echo $ECHO_N "(cached) $ECHO_C" >&6
6445: else
6446: if test -n "$ac_ct_MANIFEST_TOOL"; then
6447: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6448: else
6449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450: for as_dir in $PATH
6451: do
6452: IFS=$as_save_IFS
6453: test -z "$as_dir" && as_dir=.
6454: for ac_exec_ext in '' $ac_executable_extensions; do
6455: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6457: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458: break 2
6459: fi
6460: done
6461: done
6462:
6463: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
6464: fi
6465: fi
6466: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6467: if test -n "$ac_ct_MANIFEST_TOOL"; then
6468: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
6469: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
6470: else
6471: echo "$as_me:$LINENO: result: no" >&5
6472: echo "${ECHO_T}no" >&6
6473: fi
6474:
6475: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6476: else
6477: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6478: fi
6479:
6480: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6481: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
6482: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
6483: if test "${lt_cv_path_mainfest_tool+set}" = set; then
6484: echo $ECHO_N "(cached) $ECHO_C" >&6
6485: else
6486: lt_cv_path_mainfest_tool=no
6487: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6488: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6489: cat conftest.err >&5
6490: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6491: lt_cv_path_mainfest_tool=yes
6492: fi
6493: rm -f conftest*
6494: fi
6495: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
6496: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
6497: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6498: MANIFEST_TOOL=:
6499: fi
6500:
6501:
6502:
6503:
6504:
6505:
6506: case $host_os in
6507: rhapsody* | darwin*)
6508: if test -n "$ac_tool_prefix"; then
6509: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6510: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6511: echo "$as_me:$LINENO: checking for $ac_word" >&5
6512: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6514: echo $ECHO_N "(cached) $ECHO_C" >&6
6515: else
6516: if test -n "$DSYMUTIL"; then
6517: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6518: else
6519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520: for as_dir in $PATH
6521: do
6522: IFS=$as_save_IFS
6523: test -z "$as_dir" && as_dir=.
6524: for ac_exec_ext in '' $ac_executable_extensions; do
6525: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6527: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528: break 2
6529: fi
6530: done
6531: done
6532:
6533: fi
6534: fi
6535: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6536: if test -n "$DSYMUTIL"; then
6537: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6538: echo "${ECHO_T}$DSYMUTIL" >&6
6539: else
6540: echo "$as_me:$LINENO: result: no" >&5
6541: echo "${ECHO_T}no" >&6
6542: fi
6543:
6544: fi
6545: if test -z "$ac_cv_prog_DSYMUTIL"; then
6546: ac_ct_DSYMUTIL=$DSYMUTIL
6547: # Extract the first word of "dsymutil", so it can be a program name with args.
6548: set dummy dsymutil; ac_word=$2
6549: echo "$as_me:$LINENO: checking for $ac_word" >&5
6550: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6552: echo $ECHO_N "(cached) $ECHO_C" >&6
6553: else
6554: if test -n "$ac_ct_DSYMUTIL"; then
6555: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6556: else
6557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558: for as_dir in $PATH
6559: do
6560: IFS=$as_save_IFS
6561: test -z "$as_dir" && as_dir=.
6562: for ac_exec_ext in '' $ac_executable_extensions; do
6563: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6565: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566: break 2
6567: fi
6568: done
6569: done
6570:
6571: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6572: fi
6573: fi
6574: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6575: if test -n "$ac_ct_DSYMUTIL"; then
6576: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6577: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6578: else
6579: echo "$as_me:$LINENO: result: no" >&5
6580: echo "${ECHO_T}no" >&6
6581: fi
6582:
6583: DSYMUTIL=$ac_ct_DSYMUTIL
6584: else
6585: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6586: fi
6587:
6588: if test -n "$ac_tool_prefix"; then
6589: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6590: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6591: echo "$as_me:$LINENO: checking for $ac_word" >&5
6592: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6594: echo $ECHO_N "(cached) $ECHO_C" >&6
6595: else
6596: if test -n "$NMEDIT"; then
6597: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6598: else
6599: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600: for as_dir in $PATH
6601: do
6602: IFS=$as_save_IFS
6603: test -z "$as_dir" && as_dir=.
6604: for ac_exec_ext in '' $ac_executable_extensions; do
6605: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6607: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608: break 2
6609: fi
6610: done
6611: done
6612:
6613: fi
6614: fi
6615: NMEDIT=$ac_cv_prog_NMEDIT
6616: if test -n "$NMEDIT"; then
6617: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6618: echo "${ECHO_T}$NMEDIT" >&6
6619: else
6620: echo "$as_me:$LINENO: result: no" >&5
6621: echo "${ECHO_T}no" >&6
6622: fi
6623:
6624: fi
6625: if test -z "$ac_cv_prog_NMEDIT"; then
6626: ac_ct_NMEDIT=$NMEDIT
6627: # Extract the first word of "nmedit", so it can be a program name with args.
6628: set dummy nmedit; ac_word=$2
6629: echo "$as_me:$LINENO: checking for $ac_word" >&5
6630: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6631: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6632: echo $ECHO_N "(cached) $ECHO_C" >&6
6633: else
6634: if test -n "$ac_ct_NMEDIT"; then
6635: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6636: else
6637: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638: for as_dir in $PATH
6639: do
6640: IFS=$as_save_IFS
6641: test -z "$as_dir" && as_dir=.
6642: for ac_exec_ext in '' $ac_executable_extensions; do
6643: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6645: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646: break 2
6647: fi
6648: done
6649: done
6650:
6651: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6652: fi
6653: fi
6654: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6655: if test -n "$ac_ct_NMEDIT"; then
6656: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6657: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6658: else
6659: echo "$as_me:$LINENO: result: no" >&5
6660: echo "${ECHO_T}no" >&6
6661: fi
6662:
6663: NMEDIT=$ac_ct_NMEDIT
6664: else
6665: NMEDIT="$ac_cv_prog_NMEDIT"
6666: fi
6667:
6668: if test -n "$ac_tool_prefix"; then
6669: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6670: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6671: echo "$as_me:$LINENO: checking for $ac_word" >&5
6672: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6673: if test "${ac_cv_prog_LIPO+set}" = set; then
6674: echo $ECHO_N "(cached) $ECHO_C" >&6
6675: else
6676: if test -n "$LIPO"; then
6677: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6678: else
6679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680: for as_dir in $PATH
6681: do
6682: IFS=$as_save_IFS
6683: test -z "$as_dir" && as_dir=.
6684: for ac_exec_ext in '' $ac_executable_extensions; do
6685: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6687: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688: break 2
6689: fi
6690: done
6691: done
6692:
6693: fi
6694: fi
6695: LIPO=$ac_cv_prog_LIPO
6696: if test -n "$LIPO"; then
6697: echo "$as_me:$LINENO: result: $LIPO" >&5
6698: echo "${ECHO_T}$LIPO" >&6
6699: else
6700: echo "$as_me:$LINENO: result: no" >&5
6701: echo "${ECHO_T}no" >&6
6702: fi
6703:
6704: fi
6705: if test -z "$ac_cv_prog_LIPO"; then
6706: ac_ct_LIPO=$LIPO
6707: # Extract the first word of "lipo", so it can be a program name with args.
6708: set dummy lipo; ac_word=$2
6709: echo "$as_me:$LINENO: checking for $ac_word" >&5
6710: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6712: echo $ECHO_N "(cached) $ECHO_C" >&6
6713: else
6714: if test -n "$ac_ct_LIPO"; then
6715: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6716: else
6717: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718: for as_dir in $PATH
6719: do
6720: IFS=$as_save_IFS
6721: test -z "$as_dir" && as_dir=.
6722: for ac_exec_ext in '' $ac_executable_extensions; do
6723: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724: ac_cv_prog_ac_ct_LIPO="lipo"
6725: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726: break 2
6727: fi
6728: done
6729: done
6730:
6731: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6732: fi
6733: fi
6734: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6735: if test -n "$ac_ct_LIPO"; then
6736: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6737: echo "${ECHO_T}$ac_ct_LIPO" >&6
6738: else
6739: echo "$as_me:$LINENO: result: no" >&5
6740: echo "${ECHO_T}no" >&6
6741: fi
6742:
6743: LIPO=$ac_ct_LIPO
6744: else
6745: LIPO="$ac_cv_prog_LIPO"
6746: fi
6747:
6748: if test -n "$ac_tool_prefix"; then
6749: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6750: set dummy ${ac_tool_prefix}otool; ac_word=$2
6751: echo "$as_me:$LINENO: checking for $ac_word" >&5
6752: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6753: if test "${ac_cv_prog_OTOOL+set}" = set; then
6754: echo $ECHO_N "(cached) $ECHO_C" >&6
6755: else
6756: if test -n "$OTOOL"; then
6757: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6758: else
6759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760: for as_dir in $PATH
6761: do
6762: IFS=$as_save_IFS
6763: test -z "$as_dir" && as_dir=.
6764: for ac_exec_ext in '' $ac_executable_extensions; do
6765: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6767: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768: break 2
6769: fi
6770: done
6771: done
6772:
6773: fi
6774: fi
6775: OTOOL=$ac_cv_prog_OTOOL
6776: if test -n "$OTOOL"; then
6777: echo "$as_me:$LINENO: result: $OTOOL" >&5
6778: echo "${ECHO_T}$OTOOL" >&6
6779: else
6780: echo "$as_me:$LINENO: result: no" >&5
6781: echo "${ECHO_T}no" >&6
6782: fi
6783:
6784: fi
6785: if test -z "$ac_cv_prog_OTOOL"; then
6786: ac_ct_OTOOL=$OTOOL
6787: # Extract the first word of "otool", so it can be a program name with args.
6788: set dummy otool; ac_word=$2
6789: echo "$as_me:$LINENO: checking for $ac_word" >&5
6790: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6791: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6792: echo $ECHO_N "(cached) $ECHO_C" >&6
6793: else
6794: if test -n "$ac_ct_OTOOL"; then
6795: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6796: else
6797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798: for as_dir in $PATH
6799: do
6800: IFS=$as_save_IFS
6801: test -z "$as_dir" && as_dir=.
6802: for ac_exec_ext in '' $ac_executable_extensions; do
6803: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804: ac_cv_prog_ac_ct_OTOOL="otool"
6805: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806: break 2
6807: fi
6808: done
6809: done
6810:
6811: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6812: fi
6813: fi
6814: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6815: if test -n "$ac_ct_OTOOL"; then
6816: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6817: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6818: else
6819: echo "$as_me:$LINENO: result: no" >&5
6820: echo "${ECHO_T}no" >&6
6821: fi
6822:
6823: OTOOL=$ac_ct_OTOOL
6824: else
6825: OTOOL="$ac_cv_prog_OTOOL"
6826: fi
6827:
6828: if test -n "$ac_tool_prefix"; then
6829: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6830: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6831: echo "$as_me:$LINENO: checking for $ac_word" >&5
6832: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6833: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6834: echo $ECHO_N "(cached) $ECHO_C" >&6
6835: else
6836: if test -n "$OTOOL64"; then
6837: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6838: else
6839: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840: for as_dir in $PATH
6841: do
6842: IFS=$as_save_IFS
6843: test -z "$as_dir" && as_dir=.
6844: for ac_exec_ext in '' $ac_executable_extensions; do
6845: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6847: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848: break 2
6849: fi
6850: done
6851: done
6852:
6853: fi
6854: fi
6855: OTOOL64=$ac_cv_prog_OTOOL64
6856: if test -n "$OTOOL64"; then
6857: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6858: echo "${ECHO_T}$OTOOL64" >&6
6859: else
6860: echo "$as_me:$LINENO: result: no" >&5
6861: echo "${ECHO_T}no" >&6
6862: fi
6863:
6864: fi
6865: if test -z "$ac_cv_prog_OTOOL64"; then
6866: ac_ct_OTOOL64=$OTOOL64
6867: # Extract the first word of "otool64", so it can be a program name with args.
6868: set dummy otool64; ac_word=$2
6869: echo "$as_me:$LINENO: checking for $ac_word" >&5
6870: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6871: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6872: echo $ECHO_N "(cached) $ECHO_C" >&6
6873: else
6874: if test -n "$ac_ct_OTOOL64"; then
6875: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6876: else
6877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878: for as_dir in $PATH
6879: do
6880: IFS=$as_save_IFS
6881: test -z "$as_dir" && as_dir=.
6882: for ac_exec_ext in '' $ac_executable_extensions; do
6883: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884: ac_cv_prog_ac_ct_OTOOL64="otool64"
6885: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886: break 2
6887: fi
6888: done
6889: done
6890:
6891: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6892: fi
6893: fi
6894: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895: if test -n "$ac_ct_OTOOL64"; then
6896: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6897: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6898: else
6899: echo "$as_me:$LINENO: result: no" >&5
6900: echo "${ECHO_T}no" >&6
6901: fi
6902:
6903: OTOOL64=$ac_ct_OTOOL64
6904: else
6905: OTOOL64="$ac_cv_prog_OTOOL64"
6906: fi
6907:
6908:
6909:
6910:
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
6920:
6921:
6922:
6923:
6924:
6925:
6926:
6927:
6928:
6929:
6930:
6931:
6932:
6933:
6934: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6935: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6936: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6937: echo $ECHO_N "(cached) $ECHO_C" >&6
6938: else
6939: lt_cv_apple_cc_single_mod=no
6940: if test -z "${LT_MULTI_MODULE}"; then
6941: # By default we will add the -single_module flag. You can override
6942: # by either setting the environment variable LT_MULTI_MODULE
6943: # non-empty at configure time, or by adding -multi_module to the
6944: # link flags.
6945: rm -rf libconftest.dylib*
6946: echo "int foo(void){return 1;}" > conftest.c
6947: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948: -dynamiclib -Wl,-single_module conftest.c" >&5
6949: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951: _lt_result=$?
6952: # If there is a non-empty error log, and "single_module"
6953: # appears in it, assume the flag caused a linker warning
6954: if test -s conftest.err && $GREP single_module conftest.err; then
6955: cat conftest.err >&5
6956: # Otherwise, if the output was created with a 0 exit code from
6957: # the compiler, it worked.
6958: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6959: lt_cv_apple_cc_single_mod=yes
6960: else
6961: cat conftest.err >&5
6962: fi
6963: rm -rf libconftest.dylib*
6964: rm -f conftest.*
6965: fi
6966: fi
6967: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6968: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6969:
6970: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6971: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6972: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6973: echo $ECHO_N "(cached) $ECHO_C" >&6
6974: else
6975: lt_cv_ld_exported_symbols_list=no
6976: save_LDFLAGS=$LDFLAGS
6977: echo "_main" > conftest.sym
6978: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6979: cat >conftest.$ac_ext <<_ACEOF
6980: /* confdefs.h. */
6981: _ACEOF
6982: cat confdefs.h >>conftest.$ac_ext
6983: cat >>conftest.$ac_ext <<_ACEOF
6984: /* end confdefs.h. */
6985:
6986: int
6987: main ()
6988: {
6989:
6990: ;
6991: return 0;
6992: }
6993: _ACEOF
6994: rm -f conftest.$ac_objext conftest$ac_exeext
6995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996: (eval $ac_link) 2>conftest.er1
6997: ac_status=$?
6998: grep -v '^ *+' conftest.er1 >conftest.err
6999: rm -f conftest.er1
7000: cat conftest.err >&5
7001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002: (exit $ac_status); } &&
7003: { ac_try='test -z "$ac_c_werror_flag"
7004: || test ! -s conftest.err'
7005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006: (eval $ac_try) 2>&5
7007: ac_status=$?
7008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009: (exit $ac_status); }; } &&
7010: { ac_try='test -s conftest$ac_exeext'
7011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012: (eval $ac_try) 2>&5
7013: ac_status=$?
7014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015: (exit $ac_status); }; }; then
7016: lt_cv_ld_exported_symbols_list=yes
7017: else
7018: echo "$as_me: failed program was:" >&5
7019: sed 's/^/| /' conftest.$ac_ext >&5
7020:
7021: lt_cv_ld_exported_symbols_list=no
7022: fi
7023: rm -f conftest.err conftest.$ac_objext \
7024: conftest$ac_exeext conftest.$ac_ext
7025: LDFLAGS="$save_LDFLAGS"
7026:
7027: fi
7028: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7029: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7030:
7031: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7032: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
7033: if test "${lt_cv_ld_force_load+set}" = set; then
7034: echo $ECHO_N "(cached) $ECHO_C" >&6
7035: else
7036: lt_cv_ld_force_load=no
7037: cat > conftest.c << _LT_EOF
7038: int forced_loaded() { return 2;}
7039: _LT_EOF
7040: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7041: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7042: echo "$AR cru libconftest.a conftest.o" >&5
7043: $AR cru libconftest.a conftest.o 2>&5
7044: echo "$RANLIB libconftest.a" >&5
7045: $RANLIB libconftest.a 2>&5
7046: cat > conftest.c << _LT_EOF
7047: int main() { return 0;}
7048: _LT_EOF
7049: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7050: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7051: _lt_result=$?
7052: if test -s conftest.err && $GREP force_load conftest.err; then
7053: cat conftest.err >&5
7054: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7055: lt_cv_ld_force_load=yes
7056: else
7057: cat conftest.err >&5
7058: fi
7059: rm -f conftest.err libconftest.a conftest conftest.c
7060: rm -rf conftest.dSYM
7061:
7062: fi
7063: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7064: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
7065: case $host_os in
7066: rhapsody* | darwin1.[012])
7067: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7068: darwin1.*)
7069: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7070: darwin*) # darwin 5.x on
7071: # if running on 10.5 or later, the deployment target defaults
7072: # to the OS version, if on x86, and 10.4, the deployment
7073: # target defaults to 10.4. Don't you love it?
7074: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7075: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7076: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7077: 10.[012]*)
7078: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079: 10.*)
7080: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7081: esac
7082: ;;
7083: esac
7084: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7085: _lt_dar_single_mod='$single_module'
7086: fi
7087: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7088: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7089: else
7090: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7091: fi
7092: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7093: _lt_dsymutil='~$DSYMUTIL $lib || :'
7094: else
7095: _lt_dsymutil=
7096: fi
7097: ;;
7098: esac
7099:
7100: ac_ext=c
7101: ac_cpp='$CPP $CPPFLAGS'
7102: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7106: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7107: # On Suns, sometimes $CPP names a directory.
7108: if test -n "$CPP" && test -d "$CPP"; then
7109: CPP=
7110: fi
7111: if test -z "$CPP"; then
7112: if test "${ac_cv_prog_CPP+set}" = set; then
7113: echo $ECHO_N "(cached) $ECHO_C" >&6
7114: else
7115: # Double quotes because CPP needs to be expanded
7116: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7117: do
7118: ac_preproc_ok=false
7119: for ac_c_preproc_warn_flag in '' yes
7120: do
7121: # Use a header file that comes with gcc, so configuring glibc
7122: # with a fresh cross-compiler works.
7123: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7124: # <limits.h> exists even on freestanding compilers.
7125: # On the NeXT, cc -E runs the code through the compiler's parser,
7126: # not just through cpp. "Syntax error" is here to catch this case.
7127: cat >conftest.$ac_ext <<_ACEOF
7128: /* confdefs.h. */
7129: _ACEOF
7130: cat confdefs.h >>conftest.$ac_ext
7131: cat >>conftest.$ac_ext <<_ACEOF
7132: /* end confdefs.h. */
7133: #ifdef __STDC__
7134: # include <limits.h>
7135: #else
7136: # include <assert.h>
7137: #endif
7138: Syntax error
7139: _ACEOF
7140: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7141: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142: ac_status=$?
7143: grep -v '^ *+' conftest.er1 >conftest.err
7144: rm -f conftest.er1
7145: cat conftest.err >&5
7146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147: (exit $ac_status); } >/dev/null; then
7148: if test -s conftest.err; then
7149: ac_cpp_err=$ac_c_preproc_warn_flag
7150: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7151: else
7152: ac_cpp_err=
7153: fi
7154: else
7155: ac_cpp_err=yes
7156: fi
7157: if test -z "$ac_cpp_err"; then
7158: :
7159: else
7160: echo "$as_me: failed program was:" >&5
7161: sed 's/^/| /' conftest.$ac_ext >&5
7162:
7163: # Broken: fails on valid input.
7164: continue
7165: fi
7166: rm -f conftest.err conftest.$ac_ext
7167:
7168: # OK, works on sane cases. Now check whether non-existent headers
7169: # can be detected and how.
7170: cat >conftest.$ac_ext <<_ACEOF
7171: /* confdefs.h. */
7172: _ACEOF
7173: cat confdefs.h >>conftest.$ac_ext
7174: cat >>conftest.$ac_ext <<_ACEOF
7175: /* end confdefs.h. */
7176: #include <ac_nonexistent.h>
7177: _ACEOF
7178: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7179: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7180: ac_status=$?
7181: grep -v '^ *+' conftest.er1 >conftest.err
7182: rm -f conftest.er1
7183: cat conftest.err >&5
7184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185: (exit $ac_status); } >/dev/null; then
7186: if test -s conftest.err; then
7187: ac_cpp_err=$ac_c_preproc_warn_flag
7188: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7189: else
7190: ac_cpp_err=
7191: fi
7192: else
7193: ac_cpp_err=yes
7194: fi
7195: if test -z "$ac_cpp_err"; then
7196: # Broken: success on invalid input.
7197: continue
7198: else
7199: echo "$as_me: failed program was:" >&5
7200: sed 's/^/| /' conftest.$ac_ext >&5
7201:
7202: # Passes both tests.
7203: ac_preproc_ok=:
7204: break
7205: fi
7206: rm -f conftest.err conftest.$ac_ext
7207:
7208: done
7209: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7210: rm -f conftest.err conftest.$ac_ext
7211: if $ac_preproc_ok; then
7212: break
7213: fi
7214:
7215: done
7216: ac_cv_prog_CPP=$CPP
7217:
7218: fi
7219: CPP=$ac_cv_prog_CPP
7220: else
7221: ac_cv_prog_CPP=$CPP
7222: fi
7223: echo "$as_me:$LINENO: result: $CPP" >&5
7224: echo "${ECHO_T}$CPP" >&6
7225: ac_preproc_ok=false
7226: for ac_c_preproc_warn_flag in '' yes
7227: do
7228: # Use a header file that comes with gcc, so configuring glibc
7229: # with a fresh cross-compiler works.
7230: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231: # <limits.h> exists even on freestanding compilers.
7232: # On the NeXT, cc -E runs the code through the compiler's parser,
7233: # not just through cpp. "Syntax error" is here to catch this case.
7234: cat >conftest.$ac_ext <<_ACEOF
7235: /* confdefs.h. */
7236: _ACEOF
7237: cat confdefs.h >>conftest.$ac_ext
7238: cat >>conftest.$ac_ext <<_ACEOF
7239: /* end confdefs.h. */
7240: #ifdef __STDC__
7241: # include <limits.h>
7242: #else
7243: # include <assert.h>
7244: #endif
7245: Syntax error
7246: _ACEOF
7247: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7248: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249: ac_status=$?
7250: grep -v '^ *+' conftest.er1 >conftest.err
7251: rm -f conftest.er1
7252: cat conftest.err >&5
7253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254: (exit $ac_status); } >/dev/null; then
7255: if test -s conftest.err; then
7256: ac_cpp_err=$ac_c_preproc_warn_flag
7257: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7258: else
7259: ac_cpp_err=
7260: fi
7261: else
7262: ac_cpp_err=yes
7263: fi
7264: if test -z "$ac_cpp_err"; then
7265: :
7266: else
7267: echo "$as_me: failed program was:" >&5
7268: sed 's/^/| /' conftest.$ac_ext >&5
7269:
7270: # Broken: fails on valid input.
7271: continue
7272: fi
7273: rm -f conftest.err conftest.$ac_ext
7274:
7275: # OK, works on sane cases. Now check whether non-existent headers
7276: # can be detected and how.
7277: cat >conftest.$ac_ext <<_ACEOF
7278: /* confdefs.h. */
7279: _ACEOF
7280: cat confdefs.h >>conftest.$ac_ext
7281: cat >>conftest.$ac_ext <<_ACEOF
7282: /* end confdefs.h. */
7283: #include <ac_nonexistent.h>
7284: _ACEOF
7285: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7286: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7287: ac_status=$?
7288: grep -v '^ *+' conftest.er1 >conftest.err
7289: rm -f conftest.er1
7290: cat conftest.err >&5
7291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292: (exit $ac_status); } >/dev/null; then
7293: if test -s conftest.err; then
7294: ac_cpp_err=$ac_c_preproc_warn_flag
7295: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7296: else
7297: ac_cpp_err=
7298: fi
7299: else
7300: ac_cpp_err=yes
7301: fi
7302: if test -z "$ac_cpp_err"; then
7303: # Broken: success on invalid input.
7304: continue
7305: else
7306: echo "$as_me: failed program was:" >&5
7307: sed 's/^/| /' conftest.$ac_ext >&5
7308:
7309: # Passes both tests.
7310: ac_preproc_ok=:
7311: break
7312: fi
7313: rm -f conftest.err conftest.$ac_ext
7314:
7315: done
7316: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317: rm -f conftest.err conftest.$ac_ext
7318: if $ac_preproc_ok; then
7319: :
7320: else
7321: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7322: See \`config.log' for more details." >&5
7323: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7324: See \`config.log' for more details." >&2;}
7325: { (exit 1); exit 1; }; }
7326: fi
7327:
7328: ac_ext=c
7329: ac_cpp='$CPP $CPPFLAGS'
7330: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333:
7334:
7335: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7336: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7337: if test "${ac_cv_header_stdc+set}" = set; then
7338: echo $ECHO_N "(cached) $ECHO_C" >&6
7339: else
7340: cat >conftest.$ac_ext <<_ACEOF
7341: /* confdefs.h. */
7342: _ACEOF
7343: cat confdefs.h >>conftest.$ac_ext
7344: cat >>conftest.$ac_ext <<_ACEOF
7345: /* end confdefs.h. */
7346: #include <stdlib.h>
7347: #include <stdarg.h>
7348: #include <string.h>
7349: #include <float.h>
7350:
7351: int
7352: main ()
7353: {
7354:
7355: ;
7356: return 0;
7357: }
7358: _ACEOF
7359: rm -f conftest.$ac_objext
7360: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361: (eval $ac_compile) 2>conftest.er1
7362: ac_status=$?
7363: grep -v '^ *+' conftest.er1 >conftest.err
7364: rm -f conftest.er1
7365: cat conftest.err >&5
7366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367: (exit $ac_status); } &&
7368: { ac_try='test -z "$ac_c_werror_flag"
7369: || test ! -s conftest.err'
7370: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371: (eval $ac_try) 2>&5
7372: ac_status=$?
7373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374: (exit $ac_status); }; } &&
7375: { ac_try='test -s conftest.$ac_objext'
7376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377: (eval $ac_try) 2>&5
7378: ac_status=$?
7379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380: (exit $ac_status); }; }; then
7381: ac_cv_header_stdc=yes
7382: else
7383: echo "$as_me: failed program was:" >&5
7384: sed 's/^/| /' conftest.$ac_ext >&5
7385:
7386: ac_cv_header_stdc=no
7387: fi
7388: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389:
7390: if test $ac_cv_header_stdc = yes; then
7391: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7392: cat >conftest.$ac_ext <<_ACEOF
7393: /* confdefs.h. */
7394: _ACEOF
7395: cat confdefs.h >>conftest.$ac_ext
7396: cat >>conftest.$ac_ext <<_ACEOF
7397: /* end confdefs.h. */
7398: #include <string.h>
7399:
7400: _ACEOF
7401: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402: $EGREP "memchr" >/dev/null 2>&1; then
7403: :
7404: else
7405: ac_cv_header_stdc=no
7406: fi
7407: rm -f conftest*
7408:
7409: fi
7410:
7411: if test $ac_cv_header_stdc = yes; then
7412: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7413: cat >conftest.$ac_ext <<_ACEOF
7414: /* confdefs.h. */
7415: _ACEOF
7416: cat confdefs.h >>conftest.$ac_ext
7417: cat >>conftest.$ac_ext <<_ACEOF
7418: /* end confdefs.h. */
7419: #include <stdlib.h>
7420:
7421: _ACEOF
7422: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423: $EGREP "free" >/dev/null 2>&1; then
7424: :
7425: else
7426: ac_cv_header_stdc=no
7427: fi
7428: rm -f conftest*
7429:
7430: fi
7431:
7432: if test $ac_cv_header_stdc = yes; then
7433: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434: if test "$cross_compiling" = yes; then
7435: :
7436: else
7437: cat >conftest.$ac_ext <<_ACEOF
7438: /* confdefs.h. */
7439: _ACEOF
7440: cat confdefs.h >>conftest.$ac_ext
7441: cat >>conftest.$ac_ext <<_ACEOF
7442: /* end confdefs.h. */
7443: #include <ctype.h>
7444: #if ((' ' & 0x0FF) == 0x020)
7445: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7446: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7447: #else
7448: # define ISLOWER(c) \
7449: (('a' <= (c) && (c) <= 'i') \
7450: || ('j' <= (c) && (c) <= 'r') \
7451: || ('s' <= (c) && (c) <= 'z'))
7452: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7453: #endif
7454:
7455: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7456: int
7457: main ()
7458: {
7459: int i;
7460: for (i = 0; i < 256; i++)
7461: if (XOR (islower (i), ISLOWER (i))
7462: || toupper (i) != TOUPPER (i))
7463: exit(2);
7464: exit (0);
7465: }
7466: _ACEOF
7467: rm -f conftest$ac_exeext
7468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469: (eval $ac_link) 2>&5
7470: ac_status=$?
7471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7473: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474: (eval $ac_try) 2>&5
7475: ac_status=$?
7476: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477: (exit $ac_status); }; }; then
7478: :
7479: else
7480: echo "$as_me: program exited with status $ac_status" >&5
7481: echo "$as_me: failed program was:" >&5
7482: sed 's/^/| /' conftest.$ac_ext >&5
7483:
7484: ( exit $ac_status )
7485: ac_cv_header_stdc=no
7486: fi
7487: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7488: fi
7489: fi
7490: fi
7491: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7492: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7493: if test $ac_cv_header_stdc = yes; then
7494:
7495: cat >>confdefs.h <<\_ACEOF
7496: #define STDC_HEADERS 1
7497: _ACEOF
7498:
7499: fi
7500:
7501: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502:
7503:
7504:
7505:
7506:
7507:
7508:
7509:
7510:
7511: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7512: inttypes.h stdint.h unistd.h
7513: do
7514: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515: echo "$as_me:$LINENO: checking for $ac_header" >&5
7516: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7517: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7518: echo $ECHO_N "(cached) $ECHO_C" >&6
7519: else
7520: cat >conftest.$ac_ext <<_ACEOF
7521: /* confdefs.h. */
7522: _ACEOF
7523: cat confdefs.h >>conftest.$ac_ext
7524: cat >>conftest.$ac_ext <<_ACEOF
7525: /* end confdefs.h. */
7526: $ac_includes_default
7527:
7528: #include <$ac_header>
7529: _ACEOF
7530: rm -f conftest.$ac_objext
7531: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532: (eval $ac_compile) 2>conftest.er1
7533: ac_status=$?
7534: grep -v '^ *+' conftest.er1 >conftest.err
7535: rm -f conftest.er1
7536: cat conftest.err >&5
7537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538: (exit $ac_status); } &&
7539: { ac_try='test -z "$ac_c_werror_flag"
7540: || test ! -s conftest.err'
7541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542: (eval $ac_try) 2>&5
7543: ac_status=$?
7544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545: (exit $ac_status); }; } &&
7546: { ac_try='test -s conftest.$ac_objext'
7547: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548: (eval $ac_try) 2>&5
7549: ac_status=$?
7550: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551: (exit $ac_status); }; }; then
7552: eval "$as_ac_Header=yes"
7553: else
7554: echo "$as_me: failed program was:" >&5
7555: sed 's/^/| /' conftest.$ac_ext >&5
7556:
7557: eval "$as_ac_Header=no"
7558: fi
7559: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560: fi
7561: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7562: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564: cat >>confdefs.h <<_ACEOF
7565: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566: _ACEOF
7567:
7568: fi
7569:
7570: done
7571:
7572:
7573:
7574: for ac_header in dlfcn.h
7575: do
7576: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7577: echo "$as_me:$LINENO: checking for $ac_header" >&5
7578: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580: echo $ECHO_N "(cached) $ECHO_C" >&6
7581: else
7582: cat >conftest.$ac_ext <<_ACEOF
7583: /* confdefs.h. */
7584: _ACEOF
7585: cat confdefs.h >>conftest.$ac_ext
7586: cat >>conftest.$ac_ext <<_ACEOF
7587: /* end confdefs.h. */
7588: $ac_includes_default
7589:
7590: #include <$ac_header>
7591: _ACEOF
7592: rm -f conftest.$ac_objext
7593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594: (eval $ac_compile) 2>conftest.er1
7595: ac_status=$?
7596: grep -v '^ *+' conftest.er1 >conftest.err
7597: rm -f conftest.er1
7598: cat conftest.err >&5
7599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600: (exit $ac_status); } &&
7601: { ac_try='test -z "$ac_c_werror_flag"
7602: || test ! -s conftest.err'
7603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604: (eval $ac_try) 2>&5
7605: ac_status=$?
7606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607: (exit $ac_status); }; } &&
7608: { ac_try='test -s conftest.$ac_objext'
7609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610: (eval $ac_try) 2>&5
7611: ac_status=$?
7612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613: (exit $ac_status); }; }; then
7614: eval "$as_ac_Header=yes"
7615: else
7616: echo "$as_me: failed program was:" >&5
7617: sed 's/^/| /' conftest.$ac_ext >&5
7618:
7619: eval "$as_ac_Header=no"
7620: fi
7621: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622: fi
7623: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7624: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7625: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7626: cat >>confdefs.h <<_ACEOF
7627: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7628: _ACEOF
7629:
7630: fi
7631:
7632: done
7633:
7634:
7635:
7636:
7637: func_stripname_cnf ()
7638: {
7639: case ${2} in
7640: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7641: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7642: esac
7643: } # func_stripname_cnf
7644:
7645:
7646:
7647:
7648:
7649: # Set options
1.136 ! moko 7650: # Check whether --enable-static or --disable-static was given.
! 7651: if test "${enable_static+set}" = set; then
! 7652: enableval="$enable_static"
! 7653: p=${PACKAGE-default}
! 7654: case $enableval in
! 7655: yes) enable_static=yes ;;
! 7656: no) enable_static=no ;;
! 7657: *)
! 7658: enable_static=no
! 7659: # Look at the argument we got. We use all the common list separators.
! 7660: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7661: for pkg in $enableval; do
! 7662: IFS="$lt_save_ifs"
! 7663: if test "X$pkg" = "X$p"; then
! 7664: enable_static=yes
! 7665: fi
! 7666: done
! 7667: IFS="$lt_save_ifs"
! 7668: ;;
! 7669: esac
! 7670: else
! 7671: enable_static=no
! 7672: fi;
! 7673:
! 7674:
! 7675:
! 7676:
! 7677:
! 7678:
1.128 moko 7679: enable_dlopen=yes
7680: enable_win32_dll=yes
7681:
7682: case $host in
7683: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7684: if test -n "$ac_tool_prefix"; then
7685: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7686: set dummy ${ac_tool_prefix}as; ac_word=$2
7687: echo "$as_me:$LINENO: checking for $ac_word" >&5
7688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689: if test "${ac_cv_prog_AS+set}" = set; then
7690: echo $ECHO_N "(cached) $ECHO_C" >&6
7691: else
7692: if test -n "$AS"; then
7693: ac_cv_prog_AS="$AS" # Let the user override the test.
7694: else
7695: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696: for as_dir in $PATH
7697: do
7698: IFS=$as_save_IFS
7699: test -z "$as_dir" && as_dir=.
7700: for ac_exec_ext in '' $ac_executable_extensions; do
7701: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702: ac_cv_prog_AS="${ac_tool_prefix}as"
7703: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704: break 2
7705: fi
7706: done
7707: done
7708:
7709: fi
7710: fi
7711: AS=$ac_cv_prog_AS
7712: if test -n "$AS"; then
7713: echo "$as_me:$LINENO: result: $AS" >&5
7714: echo "${ECHO_T}$AS" >&6
7715: else
7716: echo "$as_me:$LINENO: result: no" >&5
7717: echo "${ECHO_T}no" >&6
7718: fi
7719:
7720: fi
7721: if test -z "$ac_cv_prog_AS"; then
7722: ac_ct_AS=$AS
7723: # Extract the first word of "as", so it can be a program name with args.
7724: set dummy as; ac_word=$2
7725: echo "$as_me:$LINENO: checking for $ac_word" >&5
7726: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7728: echo $ECHO_N "(cached) $ECHO_C" >&6
7729: else
7730: if test -n "$ac_ct_AS"; then
7731: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7732: else
7733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734: for as_dir in $PATH
7735: do
7736: IFS=$as_save_IFS
7737: test -z "$as_dir" && as_dir=.
7738: for ac_exec_ext in '' $ac_executable_extensions; do
7739: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740: ac_cv_prog_ac_ct_AS="as"
7741: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742: break 2
7743: fi
7744: done
7745: done
7746:
7747: test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
7748: fi
7749: fi
7750: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7751: if test -n "$ac_ct_AS"; then
7752: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7753: echo "${ECHO_T}$ac_ct_AS" >&6
7754: else
7755: echo "$as_me:$LINENO: result: no" >&5
7756: echo "${ECHO_T}no" >&6
7757: fi
7758:
7759: AS=$ac_ct_AS
7760: else
7761: AS="$ac_cv_prog_AS"
7762: fi
7763:
7764: if test -n "$ac_tool_prefix"; then
7765: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7766: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7767: echo "$as_me:$LINENO: checking for $ac_word" >&5
7768: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7770: echo $ECHO_N "(cached) $ECHO_C" >&6
7771: else
7772: if test -n "$DLLTOOL"; then
7773: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7774: else
7775: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776: for as_dir in $PATH
7777: do
7778: IFS=$as_save_IFS
7779: test -z "$as_dir" && as_dir=.
7780: for ac_exec_ext in '' $ac_executable_extensions; do
7781: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7783: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784: break 2
7785: fi
7786: done
7787: done
7788:
7789: fi
7790: fi
7791: DLLTOOL=$ac_cv_prog_DLLTOOL
7792: if test -n "$DLLTOOL"; then
7793: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7794: echo "${ECHO_T}$DLLTOOL" >&6
7795: else
7796: echo "$as_me:$LINENO: result: no" >&5
7797: echo "${ECHO_T}no" >&6
7798: fi
7799:
7800: fi
7801: if test -z "$ac_cv_prog_DLLTOOL"; then
7802: ac_ct_DLLTOOL=$DLLTOOL
7803: # Extract the first word of "dlltool", so it can be a program name with args.
7804: set dummy dlltool; ac_word=$2
7805: echo "$as_me:$LINENO: checking for $ac_word" >&5
7806: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7807: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7808: echo $ECHO_N "(cached) $ECHO_C" >&6
7809: else
7810: if test -n "$ac_ct_DLLTOOL"; then
7811: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7812: else
7813: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814: for as_dir in $PATH
7815: do
7816: IFS=$as_save_IFS
7817: test -z "$as_dir" && as_dir=.
7818: for ac_exec_ext in '' $ac_executable_extensions; do
7819: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7821: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822: break 2
7823: fi
7824: done
7825: done
7826:
7827: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7828: fi
7829: fi
7830: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7831: if test -n "$ac_ct_DLLTOOL"; then
7832: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7833: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7834: else
7835: echo "$as_me:$LINENO: result: no" >&5
7836: echo "${ECHO_T}no" >&6
7837: fi
7838:
7839: DLLTOOL=$ac_ct_DLLTOOL
7840: else
7841: DLLTOOL="$ac_cv_prog_DLLTOOL"
7842: fi
7843:
7844: if test -n "$ac_tool_prefix"; then
7845: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7846: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7847: echo "$as_me:$LINENO: checking for $ac_word" >&5
7848: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7849: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7850: echo $ECHO_N "(cached) $ECHO_C" >&6
7851: else
7852: if test -n "$OBJDUMP"; then
7853: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7854: else
7855: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856: for as_dir in $PATH
7857: do
7858: IFS=$as_save_IFS
7859: test -z "$as_dir" && as_dir=.
7860: for ac_exec_ext in '' $ac_executable_extensions; do
7861: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7863: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864: break 2
7865: fi
7866: done
7867: done
7868:
7869: fi
7870: fi
7871: OBJDUMP=$ac_cv_prog_OBJDUMP
7872: if test -n "$OBJDUMP"; then
7873: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7874: echo "${ECHO_T}$OBJDUMP" >&6
7875: else
7876: echo "$as_me:$LINENO: result: no" >&5
7877: echo "${ECHO_T}no" >&6
7878: fi
7879:
7880: fi
7881: if test -z "$ac_cv_prog_OBJDUMP"; then
7882: ac_ct_OBJDUMP=$OBJDUMP
7883: # Extract the first word of "objdump", so it can be a program name with args.
7884: set dummy objdump; ac_word=$2
7885: echo "$as_me:$LINENO: checking for $ac_word" >&5
7886: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7887: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7888: echo $ECHO_N "(cached) $ECHO_C" >&6
7889: else
7890: if test -n "$ac_ct_OBJDUMP"; then
7891: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7892: else
7893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894: for as_dir in $PATH
7895: do
7896: IFS=$as_save_IFS
7897: test -z "$as_dir" && as_dir=.
7898: for ac_exec_ext in '' $ac_executable_extensions; do
7899: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7901: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902: break 2
7903: fi
7904: done
7905: done
7906:
7907: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7908: fi
7909: fi
7910: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7911: if test -n "$ac_ct_OBJDUMP"; then
7912: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7913: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7914: else
7915: echo "$as_me:$LINENO: result: no" >&5
7916: echo "${ECHO_T}no" >&6
7917: fi
7918:
7919: OBJDUMP=$ac_ct_OBJDUMP
7920: else
7921: OBJDUMP="$ac_cv_prog_OBJDUMP"
7922: fi
7923:
7924: ;;
7925: esac
7926:
7927: test -z "$AS" && AS=as
7928:
7929:
7930:
7931:
7932:
7933: test -z "$DLLTOOL" && DLLTOOL=dlltool
7934:
7935:
7936:
7937:
7938:
7939: test -z "$OBJDUMP" && OBJDUMP=objdump
7940:
7941:
7942:
7943:
7944:
7945:
7946:
7947:
7948:
7949: # Check whether --enable-shared or --disable-shared was given.
7950: if test "${enable_shared+set}" = set; then
7951: enableval="$enable_shared"
7952: p=${PACKAGE-default}
7953: case $enableval in
7954: yes) enable_shared=yes ;;
7955: no) enable_shared=no ;;
7956: *)
7957: enable_shared=no
7958: # Look at the argument we got. We use all the common list separators.
7959: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7960: for pkg in $enableval; do
7961: IFS="$lt_save_ifs"
7962: if test "X$pkg" = "X$p"; then
7963: enable_shared=yes
7964: fi
7965: done
7966: IFS="$lt_save_ifs"
7967: ;;
7968: esac
7969: else
7970: enable_shared=yes
7971: fi;
7972:
7973:
7974:
7975:
7976:
7977:
7978:
7979:
7980:
7981:
7982: # Check whether --with-pic or --without-pic was given.
7983: if test "${with_pic+set}" = set; then
7984: withval="$with_pic"
7985: lt_p=${PACKAGE-default}
7986: case $withval in
7987: yes|no) pic_mode=$withval ;;
7988: *)
7989: pic_mode=default
7990: # Look at the argument we got. We use all the common list separators.
7991: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992: for lt_pkg in $withval; do
7993: IFS="$lt_save_ifs"
7994: if test "X$lt_pkg" = "X$lt_p"; then
7995: pic_mode=yes
7996: fi
7997: done
7998: IFS="$lt_save_ifs"
7999: ;;
8000: esac
8001: else
8002: pic_mode=default
8003: fi;
8004:
8005: test -z "$pic_mode" && pic_mode=default
8006:
8007:
8008:
8009:
8010:
8011:
8012:
8013: # Check whether --enable-fast-install or --disable-fast-install was given.
8014: if test "${enable_fast_install+set}" = set; then
8015: enableval="$enable_fast_install"
8016: p=${PACKAGE-default}
8017: case $enableval in
8018: yes) enable_fast_install=yes ;;
8019: no) enable_fast_install=no ;;
8020: *)
8021: enable_fast_install=no
8022: # Look at the argument we got. We use all the common list separators.
8023: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8024: for pkg in $enableval; do
8025: IFS="$lt_save_ifs"
8026: if test "X$pkg" = "X$p"; then
8027: enable_fast_install=yes
8028: fi
8029: done
8030: IFS="$lt_save_ifs"
8031: ;;
8032: esac
8033: else
8034: enable_fast_install=yes
8035: fi;
8036:
8037:
8038:
8039:
8040:
8041:
8042:
8043:
8044:
8045:
8046: # This can be used to rebuild libtool when needed
8047: LIBTOOL_DEPS="$ltmain"
8048:
8049: # Always use our own libtool.
8050: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8051:
8052:
8053:
8054:
8055:
8056:
8057:
8058:
8059:
8060:
8061:
8062:
8063:
8064:
8065:
8066:
8067:
8068:
8069:
8070:
8071:
8072:
8073:
8074:
8075:
8076:
8077:
8078:
8079:
8080:
8081: test -z "$LN_S" && LN_S="ln -s"
8082:
8083:
8084:
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093:
8094:
8095:
8096: if test -n "${ZSH_VERSION+set}" ; then
8097: setopt NO_GLOB_SUBST
8098: fi
8099:
8100: echo "$as_me:$LINENO: checking for objdir" >&5
8101: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8102: if test "${lt_cv_objdir+set}" = set; then
8103: echo $ECHO_N "(cached) $ECHO_C" >&6
8104: else
8105: rm -f .libs 2>/dev/null
8106: mkdir .libs 2>/dev/null
8107: if test -d .libs; then
8108: lt_cv_objdir=.libs
8109: else
8110: # MS-DOS does not allow filenames that begin with a dot.
8111: lt_cv_objdir=_libs
8112: fi
8113: rmdir .libs 2>/dev/null
8114: fi
8115: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8116: echo "${ECHO_T}$lt_cv_objdir" >&6
8117: objdir=$lt_cv_objdir
8118:
8119:
8120:
8121:
8122:
8123: cat >>confdefs.h <<_ACEOF
8124: #define LT_OBJDIR "$lt_cv_objdir/"
8125: _ACEOF
8126:
8127:
8128:
8129:
8130: case $host_os in
8131: aix3*)
8132: # AIX sometimes has problems with the GCC collect2 program. For some
8133: # reason, if we set the COLLECT_NAMES environment variable, the problems
8134: # vanish in a puff of smoke.
8135: if test "X${COLLECT_NAMES+set}" != Xset; then
8136: COLLECT_NAMES=
8137: export COLLECT_NAMES
8138: fi
8139: ;;
8140: esac
8141:
8142: # Global variables:
8143: ofile=libtool
8144: can_build_shared=yes
8145:
8146: # All known linkers require a `.a' archive for static linking (except MSVC,
8147: # which needs '.lib').
8148: libext=a
8149:
8150: with_gnu_ld="$lt_cv_prog_gnu_ld"
8151:
8152: old_CC="$CC"
8153: old_CFLAGS="$CFLAGS"
8154:
8155: # Set sane defaults for various variables
8156: test -z "$CC" && CC=cc
8157: test -z "$LTCC" && LTCC=$CC
8158: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8159: test -z "$LD" && LD=ld
8160: test -z "$ac_objext" && ac_objext=o
8161:
8162: for cc_temp in $compiler""; do
8163: case $cc_temp in
8164: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8165: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8166: \-*) ;;
8167: *) break;;
8168: esac
8169: done
8170: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8171:
8172:
8173: # Only perform the check for file, if the check method requires it
8174: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8175: case $deplibs_check_method in
8176: file_magic*)
8177: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8178: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8179: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8180: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8181: echo $ECHO_N "(cached) $ECHO_C" >&6
8182: else
8183: case $MAGIC_CMD in
8184: [\\/*] | ?:[\\/]*)
8185: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8186: ;;
8187: *)
8188: lt_save_MAGIC_CMD="$MAGIC_CMD"
8189: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8190: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8191: for ac_dir in $ac_dummy; do
8192: IFS="$lt_save_ifs"
8193: test -z "$ac_dir" && ac_dir=.
8194: if test -f $ac_dir/${ac_tool_prefix}file; then
8195: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8196: if test -n "$file_magic_test_file"; then
8197: case $deplibs_check_method in
8198: "file_magic "*)
8199: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8200: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8201: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8202: $EGREP "$file_magic_regex" > /dev/null; then
8203: :
8204: else
8205: cat <<_LT_EOF 1>&2
8206:
8207: *** Warning: the command libtool uses to detect shared libraries,
8208: *** $file_magic_cmd, produces output that libtool cannot recognize.
8209: *** The result is that libtool may fail to recognize shared libraries
8210: *** as such. This will affect the creation of libtool libraries that
8211: *** depend on shared libraries, but programs linked with such libtool
8212: *** libraries will work regardless of this problem. Nevertheless, you
8213: *** may want to report the problem to your system manager and/or to
8214: *** bug-libtool@gnu.org
8215:
8216: _LT_EOF
8217: fi ;;
8218: esac
8219: fi
8220: break
8221: fi
8222: done
8223: IFS="$lt_save_ifs"
8224: MAGIC_CMD="$lt_save_MAGIC_CMD"
8225: ;;
8226: esac
8227: fi
8228:
8229: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8230: if test -n "$MAGIC_CMD"; then
8231: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8232: echo "${ECHO_T}$MAGIC_CMD" >&6
8233: else
8234: echo "$as_me:$LINENO: result: no" >&5
8235: echo "${ECHO_T}no" >&6
8236: fi
8237:
8238:
8239:
8240:
8241:
8242: if test -z "$lt_cv_path_MAGIC_CMD"; then
8243: if test -n "$ac_tool_prefix"; then
8244: echo "$as_me:$LINENO: checking for file" >&5
8245: echo $ECHO_N "checking for file... $ECHO_C" >&6
8246: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8247: echo $ECHO_N "(cached) $ECHO_C" >&6
8248: else
8249: case $MAGIC_CMD in
8250: [\\/*] | ?:[\\/]*)
8251: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8252: ;;
8253: *)
8254: lt_save_MAGIC_CMD="$MAGIC_CMD"
8255: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8256: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8257: for ac_dir in $ac_dummy; do
8258: IFS="$lt_save_ifs"
8259: test -z "$ac_dir" && ac_dir=.
8260: if test -f $ac_dir/file; then
8261: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8262: if test -n "$file_magic_test_file"; then
8263: case $deplibs_check_method in
8264: "file_magic "*)
8265: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8266: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8268: $EGREP "$file_magic_regex" > /dev/null; then
8269: :
8270: else
8271: cat <<_LT_EOF 1>&2
8272:
8273: *** Warning: the command libtool uses to detect shared libraries,
8274: *** $file_magic_cmd, produces output that libtool cannot recognize.
8275: *** The result is that libtool may fail to recognize shared libraries
8276: *** as such. This will affect the creation of libtool libraries that
8277: *** depend on shared libraries, but programs linked with such libtool
8278: *** libraries will work regardless of this problem. Nevertheless, you
8279: *** may want to report the problem to your system manager and/or to
8280: *** bug-libtool@gnu.org
8281:
8282: _LT_EOF
8283: fi ;;
8284: esac
8285: fi
8286: break
8287: fi
8288: done
8289: IFS="$lt_save_ifs"
8290: MAGIC_CMD="$lt_save_MAGIC_CMD"
8291: ;;
8292: esac
8293: fi
8294:
8295: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8296: if test -n "$MAGIC_CMD"; then
8297: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8298: echo "${ECHO_T}$MAGIC_CMD" >&6
8299: else
8300: echo "$as_me:$LINENO: result: no" >&5
8301: echo "${ECHO_T}no" >&6
8302: fi
8303:
8304:
8305: else
8306: MAGIC_CMD=:
8307: fi
8308: fi
8309:
8310: fi
8311: ;;
8312: esac
8313:
8314: # Use C for the default configuration in the libtool script
8315:
8316: lt_save_CC="$CC"
8317: ac_ext=c
8318: ac_cpp='$CPP $CPPFLAGS'
8319: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8322:
8323:
8324: # Source file extension for C test sources.
8325: ac_ext=c
8326:
8327: # Object file extension for compiled C test sources.
8328: objext=o
8329: objext=$objext
8330:
8331: # Code to be used in simple compile tests
8332: lt_simple_compile_test_code="int some_variable = 0;"
8333:
8334: # Code to be used in simple link tests
8335: lt_simple_link_test_code='int main(){return(0);}'
8336:
8337:
8338:
8339:
8340:
8341:
8342:
8343: # If no C compiler was specified, use CC.
8344: LTCC=${LTCC-"$CC"}
8345:
8346: # If no C compiler flags were specified, use CFLAGS.
8347: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8348:
8349: # Allow CC to be a program name with arguments.
8350: compiler=$CC
8351:
8352: # Save the default compiler, since it gets overwritten when the other
8353: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8354: compiler_DEFAULT=$CC
8355:
8356: # save warnings/boilerplate of simple test code
8357: ac_outfile=conftest.$ac_objext
8358: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8359: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8360: _lt_compiler_boilerplate=`cat conftest.err`
8361: $RM conftest*
8362:
8363: ac_outfile=conftest.$ac_objext
8364: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8365: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8366: _lt_linker_boilerplate=`cat conftest.err`
8367: $RM -r conftest*
8368:
8369:
8370: ## CAVEAT EMPTOR:
8371: ## There is no encapsulation within the following macros, do not change
8372: ## the running order or otherwise move them around unless you know exactly
8373: ## what you are doing...
8374: if test -n "$compiler"; then
8375:
8376: lt_prog_compiler_no_builtin_flag=
8377:
8378: if test "$GCC" = yes; then
8379: case $cc_basename in
8380: nvcc*)
8381: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8382: *)
8383: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8384: esac
8385:
8386: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8387: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8388: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8389: echo $ECHO_N "(cached) $ECHO_C" >&6
8390: else
8391: lt_cv_prog_compiler_rtti_exceptions=no
8392: ac_outfile=conftest.$ac_objext
8393: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8394: lt_compiler_flag="-fno-rtti -fno-exceptions"
8395: # Insert the option either (1) after the last *FLAGS variable, or
8396: # (2) before a word containing "conftest.", or (3) at the end.
8397: # Note that $ac_compile itself does not contain backslashes and begins
8398: # with a dollar sign (not a hyphen), so the echo should work correctly.
8399: # The option is referenced via a variable to avoid confusing sed.
8400: lt_compile=`echo "$ac_compile" | $SED \
8401: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8402: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8403: -e 's:$: $lt_compiler_flag:'`
8404: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8405: (eval "$lt_compile" 2>conftest.err)
8406: ac_status=$?
8407: cat conftest.err >&5
8408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409: if (exit $ac_status) && test -s "$ac_outfile"; then
8410: # The compiler can only warn and ignore the option if not recognized
8411: # So say no if there are warnings other than the usual output.
8412: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8413: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8414: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8415: lt_cv_prog_compiler_rtti_exceptions=yes
8416: fi
8417: fi
8418: $RM conftest*
8419:
8420: fi
8421: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8422: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8423:
8424: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8425: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8426: else
8427: :
8428: fi
8429:
8430: fi
8431:
8432:
8433:
8434:
8435:
8436:
8437: lt_prog_compiler_wl=
8438: lt_prog_compiler_pic=
8439: lt_prog_compiler_static=
8440:
8441:
8442: if test "$GCC" = yes; then
8443: lt_prog_compiler_wl='-Wl,'
8444: lt_prog_compiler_static='-static'
8445:
8446: case $host_os in
8447: aix*)
8448: # All AIX code is PIC.
8449: if test "$host_cpu" = ia64; then
8450: # AIX 5 now supports IA64 processor
8451: lt_prog_compiler_static='-Bstatic'
8452: fi
8453: ;;
8454:
8455: amigaos*)
8456: case $host_cpu in
8457: powerpc)
8458: # see comment about AmigaOS4 .so support
8459: lt_prog_compiler_pic='-fPIC'
8460: ;;
8461: m68k)
8462: # FIXME: we need at least 68020 code to build shared libraries, but
8463: # adding the `-m68020' flag to GCC prevents building anything better,
8464: # like `-m68040'.
8465: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8466: ;;
8467: esac
8468: ;;
8469:
8470: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8471: # PIC is the default for these OSes.
8472: ;;
8473:
8474: mingw* | cygwin* | pw32* | os2* | cegcc*)
8475: # This hack is so that the source file can tell whether it is being
8476: # built for inclusion in a dll (and should export symbols for example).
8477: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8478: # (--disable-auto-import) libraries
8479: lt_prog_compiler_pic='-DDLL_EXPORT'
8480: ;;
8481:
8482: darwin* | rhapsody*)
8483: # PIC is the default on this platform
8484: # Common symbols not allowed in MH_DYLIB files
8485: lt_prog_compiler_pic='-fno-common'
8486: ;;
8487:
8488: haiku*)
8489: # PIC is the default for Haiku.
8490: # The "-static" flag exists, but is broken.
8491: lt_prog_compiler_static=
8492: ;;
8493:
8494: hpux*)
8495: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8496: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8497: # sets the default TLS model and affects inlining.
8498: case $host_cpu in
8499: hppa*64*)
8500: # +Z the default
8501: ;;
8502: *)
8503: lt_prog_compiler_pic='-fPIC'
8504: ;;
8505: esac
8506: ;;
8507:
8508: interix[3-9]*)
8509: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8510: # Instead, we relocate shared libraries at runtime.
8511: ;;
8512:
8513: msdosdjgpp*)
8514: # Just because we use GCC doesn't mean we suddenly get shared libraries
8515: # on systems that don't support them.
8516: lt_prog_compiler_can_build_shared=no
8517: enable_shared=no
8518: ;;
8519:
8520: *nto* | *qnx*)
8521: # QNX uses GNU C++, but need to define -shared option too, otherwise
8522: # it will coredump.
8523: lt_prog_compiler_pic='-fPIC -shared'
8524: ;;
8525:
8526: sysv4*MP*)
8527: if test -d /usr/nec; then
8528: lt_prog_compiler_pic=-Kconform_pic
8529: fi
8530: ;;
8531:
8532: *)
8533: lt_prog_compiler_pic='-fPIC'
8534: ;;
8535: esac
8536:
8537: case $cc_basename in
8538: nvcc*) # Cuda Compiler Driver 2.2
8539: lt_prog_compiler_wl='-Xlinker '
8540: if test -n "$lt_prog_compiler_pic"; then
8541: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8542: fi
8543: ;;
8544: esac
8545: else
8546: # PORTME Check for flag to pass linker flags through the system compiler.
8547: case $host_os in
8548: aix*)
8549: lt_prog_compiler_wl='-Wl,'
8550: if test "$host_cpu" = ia64; then
8551: # AIX 5 now supports IA64 processor
8552: lt_prog_compiler_static='-Bstatic'
8553: else
8554: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8555: fi
8556: ;;
8557:
8558: mingw* | cygwin* | pw32* | os2* | cegcc*)
8559: # This hack is so that the source file can tell whether it is being
8560: # built for inclusion in a dll (and should export symbols for example).
8561: lt_prog_compiler_pic='-DDLL_EXPORT'
8562: ;;
8563:
8564: hpux9* | hpux10* | hpux11*)
8565: lt_prog_compiler_wl='-Wl,'
8566: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567: # not for PA HP-UX.
8568: case $host_cpu in
8569: hppa*64*|ia64*)
8570: # +Z the default
8571: ;;
8572: *)
8573: lt_prog_compiler_pic='+Z'
8574: ;;
8575: esac
8576: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8577: lt_prog_compiler_static='${wl}-a ${wl}archive'
8578: ;;
8579:
8580: irix5* | irix6* | nonstopux*)
8581: lt_prog_compiler_wl='-Wl,'
8582: # PIC (with -KPIC) is the default.
8583: lt_prog_compiler_static='-non_shared'
8584: ;;
8585:
8586: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8587: case $cc_basename in
8588: # old Intel for x86_64 which still supported -KPIC.
8589: ecc*)
8590: lt_prog_compiler_wl='-Wl,'
8591: lt_prog_compiler_pic='-KPIC'
8592: lt_prog_compiler_static='-static'
8593: ;;
8594: # icc used to be incompatible with GCC.
8595: # ICC 10 doesn't accept -KPIC any more.
8596: icc* | ifort*)
8597: lt_prog_compiler_wl='-Wl,'
8598: lt_prog_compiler_pic='-fPIC'
8599: lt_prog_compiler_static='-static'
8600: ;;
8601: # Lahey Fortran 8.1.
8602: lf95*)
8603: lt_prog_compiler_wl='-Wl,'
8604: lt_prog_compiler_pic='--shared'
8605: lt_prog_compiler_static='--static'
8606: ;;
8607: nagfor*)
8608: # NAG Fortran compiler
8609: lt_prog_compiler_wl='-Wl,-Wl,,'
8610: lt_prog_compiler_pic='-PIC'
8611: lt_prog_compiler_static='-Bstatic'
8612: ;;
8613: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8614: # Portland Group compilers (*not* the Pentium gcc compiler,
8615: # which looks to be a dead project)
8616: lt_prog_compiler_wl='-Wl,'
8617: lt_prog_compiler_pic='-fpic'
8618: lt_prog_compiler_static='-Bstatic'
8619: ;;
8620: ccc*)
8621: lt_prog_compiler_wl='-Wl,'
8622: # All Alpha code is PIC.
8623: lt_prog_compiler_static='-non_shared'
8624: ;;
8625: xl* | bgxl* | bgf* | mpixl*)
8626: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8627: lt_prog_compiler_wl='-Wl,'
8628: lt_prog_compiler_pic='-qpic'
8629: lt_prog_compiler_static='-qstaticlink'
8630: ;;
8631: *)
8632: case `$CC -V 2>&1 | sed 5q` in
8633: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8634: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8635: lt_prog_compiler_pic='-KPIC'
8636: lt_prog_compiler_static='-Bstatic'
8637: lt_prog_compiler_wl=''
8638: ;;
8639: *Sun\ F* | *Sun*Fortran*)
8640: lt_prog_compiler_pic='-KPIC'
8641: lt_prog_compiler_static='-Bstatic'
8642: lt_prog_compiler_wl='-Qoption ld '
8643: ;;
8644: *Sun\ C*)
8645: # Sun C 5.9
8646: lt_prog_compiler_pic='-KPIC'
8647: lt_prog_compiler_static='-Bstatic'
8648: lt_prog_compiler_wl='-Wl,'
8649: ;;
8650: *Intel*\ [CF]*Compiler*)
8651: lt_prog_compiler_wl='-Wl,'
8652: lt_prog_compiler_pic='-fPIC'
8653: lt_prog_compiler_static='-static'
8654: ;;
8655: *Portland\ Group*)
8656: lt_prog_compiler_wl='-Wl,'
8657: lt_prog_compiler_pic='-fpic'
8658: lt_prog_compiler_static='-Bstatic'
8659: ;;
8660: esac
8661: ;;
8662: esac
8663: ;;
8664:
8665: newsos6)
8666: lt_prog_compiler_pic='-KPIC'
8667: lt_prog_compiler_static='-Bstatic'
8668: ;;
8669:
8670: *nto* | *qnx*)
8671: # QNX uses GNU C++, but need to define -shared option too, otherwise
8672: # it will coredump.
8673: lt_prog_compiler_pic='-fPIC -shared'
8674: ;;
8675:
8676: osf3* | osf4* | osf5*)
8677: lt_prog_compiler_wl='-Wl,'
8678: # All OSF/1 code is PIC.
8679: lt_prog_compiler_static='-non_shared'
8680: ;;
8681:
8682: rdos*)
8683: lt_prog_compiler_static='-non_shared'
8684: ;;
8685:
8686: solaris*)
8687: lt_prog_compiler_pic='-KPIC'
8688: lt_prog_compiler_static='-Bstatic'
8689: case $cc_basename in
8690: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8691: lt_prog_compiler_wl='-Qoption ld ';;
8692: *)
8693: lt_prog_compiler_wl='-Wl,';;
8694: esac
8695: ;;
8696:
8697: sunos4*)
8698: lt_prog_compiler_wl='-Qoption ld '
8699: lt_prog_compiler_pic='-PIC'
8700: lt_prog_compiler_static='-Bstatic'
8701: ;;
8702:
8703: sysv4 | sysv4.2uw2* | sysv4.3*)
8704: lt_prog_compiler_wl='-Wl,'
8705: lt_prog_compiler_pic='-KPIC'
8706: lt_prog_compiler_static='-Bstatic'
8707: ;;
8708:
8709: sysv4*MP*)
8710: if test -d /usr/nec ;then
8711: lt_prog_compiler_pic='-Kconform_pic'
8712: lt_prog_compiler_static='-Bstatic'
8713: fi
8714: ;;
8715:
8716: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8717: lt_prog_compiler_wl='-Wl,'
8718: lt_prog_compiler_pic='-KPIC'
8719: lt_prog_compiler_static='-Bstatic'
8720: ;;
8721:
8722: unicos*)
8723: lt_prog_compiler_wl='-Wl,'
8724: lt_prog_compiler_can_build_shared=no
8725: ;;
8726:
8727: uts4*)
8728: lt_prog_compiler_pic='-pic'
8729: lt_prog_compiler_static='-Bstatic'
8730: ;;
8731:
8732: *)
8733: lt_prog_compiler_can_build_shared=no
8734: ;;
8735: esac
8736: fi
8737:
8738: case $host_os in
8739: # For platforms which do not support PIC, -DPIC is meaningless:
8740: *djgpp*)
8741: lt_prog_compiler_pic=
8742: ;;
8743: *)
8744: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8745: ;;
8746: esac
8747:
8748: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8749: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8750: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8751: echo $ECHO_N "(cached) $ECHO_C" >&6
8752: else
8753: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8754: fi
8755: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8756: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8757: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8758:
8759: #
8760: # Check to make sure the PIC flag actually works.
8761: #
8762: if test -n "$lt_prog_compiler_pic"; then
8763: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8764: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8765: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8766: echo $ECHO_N "(cached) $ECHO_C" >&6
8767: else
8768: lt_cv_prog_compiler_pic_works=no
8769: ac_outfile=conftest.$ac_objext
8770: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8771: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8772: # Insert the option either (1) after the last *FLAGS variable, or
8773: # (2) before a word containing "conftest.", or (3) at the end.
8774: # Note that $ac_compile itself does not contain backslashes and begins
8775: # with a dollar sign (not a hyphen), so the echo should work correctly.
8776: # The option is referenced via a variable to avoid confusing sed.
8777: lt_compile=`echo "$ac_compile" | $SED \
8778: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8779: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8780: -e 's:$: $lt_compiler_flag:'`
8781: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8782: (eval "$lt_compile" 2>conftest.err)
8783: ac_status=$?
8784: cat conftest.err >&5
8785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786: if (exit $ac_status) && test -s "$ac_outfile"; then
8787: # The compiler can only warn and ignore the option if not recognized
8788: # So say no if there are warnings other than the usual output.
8789: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8790: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8792: lt_cv_prog_compiler_pic_works=yes
8793: fi
8794: fi
8795: $RM conftest*
8796:
8797: fi
8798: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8799: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8800:
8801: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8802: case $lt_prog_compiler_pic in
8803: "" | " "*) ;;
8804: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8805: esac
8806: else
8807: lt_prog_compiler_pic=
8808: lt_prog_compiler_can_build_shared=no
8809: fi
8810:
8811: fi
8812:
8813:
8814:
8815:
8816:
8817:
8818:
8819:
8820:
8821:
8822:
8823: #
8824: # Check to make sure the static flag actually works.
8825: #
8826: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8827: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8828: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8829: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8830: echo $ECHO_N "(cached) $ECHO_C" >&6
8831: else
8832: lt_cv_prog_compiler_static_works=no
8833: save_LDFLAGS="$LDFLAGS"
8834: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8835: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8836: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8837: # The linker can only warn and ignore the option if not recognized
8838: # So say no if there are warnings
8839: if test -s conftest.err; then
8840: # Append any errors to the config.log.
8841: cat conftest.err 1>&5
8842: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8843: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8844: if diff conftest.exp conftest.er2 >/dev/null; then
8845: lt_cv_prog_compiler_static_works=yes
8846: fi
8847: else
8848: lt_cv_prog_compiler_static_works=yes
8849: fi
8850: fi
8851: $RM -r conftest*
8852: LDFLAGS="$save_LDFLAGS"
8853:
8854: fi
8855: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8856: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8857:
8858: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8859: :
8860: else
8861: lt_prog_compiler_static=
8862: fi
8863:
8864:
8865:
8866:
8867:
8868:
8869:
8870: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8871: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8872: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8873: echo $ECHO_N "(cached) $ECHO_C" >&6
8874: else
8875: lt_cv_prog_compiler_c_o=no
8876: $RM -r conftest 2>/dev/null
8877: mkdir conftest
8878: cd conftest
8879: mkdir out
8880: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8881:
8882: lt_compiler_flag="-o out/conftest2.$ac_objext"
8883: # Insert the option either (1) after the last *FLAGS variable, or
8884: # (2) before a word containing "conftest.", or (3) at the end.
8885: # Note that $ac_compile itself does not contain backslashes and begins
8886: # with a dollar sign (not a hyphen), so the echo should work correctly.
8887: lt_compile=`echo "$ac_compile" | $SED \
8888: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8889: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8890: -e 's:$: $lt_compiler_flag:'`
8891: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8892: (eval "$lt_compile" 2>out/conftest.err)
8893: ac_status=$?
8894: cat out/conftest.err >&5
8895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8897: then
8898: # The compiler can only warn and ignore the option if not recognized
8899: # So say no if there are warnings
8900: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8901: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8902: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8903: lt_cv_prog_compiler_c_o=yes
8904: fi
8905: fi
8906: chmod u+w . 2>&5
8907: $RM conftest*
8908: # SGI C++ compiler will create directory out/ii_files/ for
8909: # template instantiation
8910: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8911: $RM out/* && rmdir out
8912: cd ..
8913: $RM -r conftest
8914: $RM conftest*
8915:
8916: fi
8917: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8918: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8919:
8920:
8921:
8922:
8923:
8924:
8925: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8926: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8927: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8928: echo $ECHO_N "(cached) $ECHO_C" >&6
8929: else
8930: lt_cv_prog_compiler_c_o=no
8931: $RM -r conftest 2>/dev/null
8932: mkdir conftest
8933: cd conftest
8934: mkdir out
8935: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8936:
8937: lt_compiler_flag="-o out/conftest2.$ac_objext"
8938: # Insert the option either (1) after the last *FLAGS variable, or
8939: # (2) before a word containing "conftest.", or (3) at the end.
8940: # Note that $ac_compile itself does not contain backslashes and begins
8941: # with a dollar sign (not a hyphen), so the echo should work correctly.
8942: lt_compile=`echo "$ac_compile" | $SED \
8943: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945: -e 's:$: $lt_compiler_flag:'`
8946: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8947: (eval "$lt_compile" 2>out/conftest.err)
8948: ac_status=$?
8949: cat out/conftest.err >&5
8950: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8952: then
8953: # The compiler can only warn and ignore the option if not recognized
8954: # So say no if there are warnings
8955: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8956: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8957: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8958: lt_cv_prog_compiler_c_o=yes
8959: fi
8960: fi
8961: chmod u+w . 2>&5
8962: $RM conftest*
8963: # SGI C++ compiler will create directory out/ii_files/ for
8964: # template instantiation
8965: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8966: $RM out/* && rmdir out
8967: cd ..
8968: $RM -r conftest
8969: $RM conftest*
8970:
8971: fi
8972: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8973: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8974:
8975:
8976:
8977:
8978: hard_links="nottested"
8979: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8980: # do not overwrite the value of need_locks provided by the user
8981: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8982: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8983: hard_links=yes
8984: $RM conftest*
8985: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8986: touch conftest.a
8987: ln conftest.a conftest.b 2>&5 || hard_links=no
8988: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989: echo "$as_me:$LINENO: result: $hard_links" >&5
8990: echo "${ECHO_T}$hard_links" >&6
8991: if test "$hard_links" = no; then
8992: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8993: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8994: need_locks=warn
8995: fi
8996: else
8997: need_locks=no
8998: fi
8999:
9000:
9001:
9002:
9003:
9004:
9005: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9006: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9007:
9008: runpath_var=
9009: allow_undefined_flag=
9010: always_export_symbols=no
9011: archive_cmds=
9012: archive_expsym_cmds=
9013: compiler_needs_object=no
9014: enable_shared_with_static_runtimes=no
9015: export_dynamic_flag_spec=
9016: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9017: hardcode_automatic=no
9018: hardcode_direct=no
9019: hardcode_direct_absolute=no
9020: hardcode_libdir_flag_spec=
9021: hardcode_libdir_separator=
9022: hardcode_minus_L=no
9023: hardcode_shlibpath_var=unsupported
9024: inherit_rpath=no
9025: link_all_deplibs=unknown
9026: module_cmds=
9027: module_expsym_cmds=
9028: old_archive_from_new_cmds=
9029: old_archive_from_expsyms_cmds=
9030: thread_safe_flag_spec=
9031: whole_archive_flag_spec=
9032: # include_expsyms should be a list of space-separated symbols to be *always*
9033: # included in the symbol list
9034: include_expsyms=
9035: # exclude_expsyms can be an extended regexp of symbols to exclude
9036: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9037: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9038: # as well as any symbol that contains `d'.
9039: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041: # platforms (ab)use it in PIC code, but their linkers get confused if
9042: # the symbol is explicitly referenced. Since portable code cannot
9043: # rely on this symbol name, it's probably fine to never include it in
9044: # preloaded symbol tables.
9045: # Exclude shared library initialization/finalization symbols.
9046: extract_expsyms_cmds=
9047:
9048: case $host_os in
9049: cygwin* | mingw* | pw32* | cegcc*)
9050: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051: # When not using gcc, we currently assume that we are using
9052: # Microsoft Visual C++.
9053: if test "$GCC" != yes; then
9054: with_gnu_ld=no
9055: fi
9056: ;;
9057: interix*)
9058: # we just hope/assume this is gcc and not c89 (= MSVC++)
9059: with_gnu_ld=yes
9060: ;;
9061: openbsd*)
9062: with_gnu_ld=no
9063: ;;
9064: esac
9065:
9066: ld_shlibs=yes
9067:
9068: # On some targets, GNU ld is compatible enough with the native linker
9069: # that we're better off using the native interface for both.
9070: lt_use_gnu_ld_interface=no
9071: if test "$with_gnu_ld" = yes; then
9072: case $host_os in
9073: aix*)
9074: # The AIX port of GNU ld has always aspired to compatibility
9075: # with the native linker. However, as the warning in the GNU ld
9076: # block says, versions before 2.19.5* couldn't really create working
9077: # shared libraries, regardless of the interface used.
9078: case `$LD -v 2>&1` in
9079: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9080: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9081: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9082: *)
9083: lt_use_gnu_ld_interface=yes
9084: ;;
9085: esac
9086: ;;
9087: *)
9088: lt_use_gnu_ld_interface=yes
9089: ;;
9090: esac
9091: fi
9092:
9093: if test "$lt_use_gnu_ld_interface" = yes; then
9094: # If archive_cmds runs LD, not CC, wlarc should be empty
9095: wlarc='${wl}'
9096:
9097: # Set some defaults for GNU ld with shared library support. These
9098: # are reset later if shared libraries are not supported. Putting them
9099: # here allows them to be overridden if necessary.
9100: runpath_var=LD_RUN_PATH
9101: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102: export_dynamic_flag_spec='${wl}--export-dynamic'
9103: # ancient GNU ld didn't support --whole-archive et. al.
9104: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9105: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9106: else
9107: whole_archive_flag_spec=
9108: fi
9109: supports_anon_versioning=no
9110: case `$LD -v 2>&1` in
9111: *GNU\ gold*) supports_anon_versioning=yes ;;
9112: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9113: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9114: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9115: *\ 2.11.*) ;; # other 2.11 versions
9116: *) supports_anon_versioning=yes ;;
9117: esac
9118:
9119: # See if GNU ld supports shared libraries.
9120: case $host_os in
9121: aix[3-9]*)
9122: # On AIX/PPC, the GNU linker is very broken
9123: if test "$host_cpu" != ia64; then
9124: ld_shlibs=no
9125: cat <<_LT_EOF 1>&2
9126:
9127: *** Warning: the GNU linker, at least up to release 2.19, is reported
9128: *** to be unable to reliably create shared libraries on AIX.
9129: *** Therefore, libtool is disabling shared libraries support. If you
9130: *** really care for shared libraries, you may want to install binutils
9131: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132: *** You will then need to restart the configuration process.
9133:
9134: _LT_EOF
9135: fi
9136: ;;
9137:
9138: amigaos*)
9139: case $host_cpu in
9140: powerpc)
9141: # see comment about AmigaOS4 .so support
9142: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9143: archive_expsym_cmds=''
9144: ;;
9145: m68k)
9146: 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)'
9147: hardcode_libdir_flag_spec='-L$libdir'
9148: hardcode_minus_L=yes
9149: ;;
9150: esac
9151: ;;
9152:
9153: beos*)
9154: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155: allow_undefined_flag=unsupported
9156: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157: # support --undefined. This deserves some investigation. FIXME
9158: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159: else
9160: ld_shlibs=no
9161: fi
9162: ;;
9163:
9164: cygwin* | mingw* | pw32* | cegcc*)
9165: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166: # as there is no search path for DLLs.
9167: hardcode_libdir_flag_spec='-L$libdir'
9168: export_dynamic_flag_spec='${wl}--export-all-symbols'
9169: allow_undefined_flag=unsupported
9170: always_export_symbols=no
9171: enable_shared_with_static_runtimes=yes
9172: 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'
9173: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9174:
9175: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9176: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9177: # If the export-symbols file already is a .def file (1st line
9178: # is EXPORTS), use it as is; otherwise, prepend...
9179: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9180: cp $export_symbols $output_objdir/$soname.def;
9181: else
9182: echo EXPORTS > $output_objdir/$soname.def;
9183: cat $export_symbols >> $output_objdir/$soname.def;
9184: fi~
9185: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9186: else
9187: ld_shlibs=no
9188: fi
9189: ;;
9190:
9191: haiku*)
9192: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193: link_all_deplibs=yes
9194: ;;
9195:
9196: interix[3-9]*)
9197: hardcode_direct=no
9198: hardcode_shlibpath_var=no
9199: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200: export_dynamic_flag_spec='${wl}-E'
9201: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9202: # Instead, shared libraries are loaded at an image base (0x10000000 by
9203: # default) and relocated if they conflict, which is a slow very memory
9204: # consuming and fragmenting process. To avoid this, we pick a random,
9205: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9206: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9207: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9208: 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'
9209: ;;
9210:
9211: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9212: tmp_diet=no
9213: if test "$host_os" = linux-dietlibc; then
9214: case $cc_basename in
9215: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9216: esac
9217: fi
9218: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9219: && test "$tmp_diet" = no
9220: then
9221: tmp_addflag=' $pic_flag'
9222: tmp_sharedflag='-shared'
9223: case $cc_basename,$host_cpu in
9224: pgcc*) # Portland Group C compiler
9225: 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'
9226: tmp_addflag=' $pic_flag'
9227: ;;
9228: pgf77* | pgf90* | pgf95* | pgfortran*)
9229: # Portland Group f77 and f90 compilers
9230: 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'
9231: tmp_addflag=' $pic_flag -Mnomain' ;;
9232: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9233: tmp_addflag=' -i_dynamic' ;;
9234: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9235: tmp_addflag=' -i_dynamic -nofor_main' ;;
9236: ifc* | ifort*) # Intel Fortran compiler
9237: tmp_addflag=' -nofor_main' ;;
9238: lf95*) # Lahey Fortran 8.1
9239: whole_archive_flag_spec=
9240: tmp_sharedflag='--shared' ;;
9241: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9242: tmp_sharedflag='-qmkshrobj'
9243: tmp_addflag= ;;
9244: nvcc*) # Cuda Compiler Driver 2.2
9245: 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'
9246: compiler_needs_object=yes
9247: ;;
9248: esac
9249: case `$CC -V 2>&1 | sed 5q` in
9250: *Sun\ C*) # Sun C 5.9
9251: 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'
9252: compiler_needs_object=yes
9253: tmp_sharedflag='-G' ;;
9254: *Sun\ F*) # Sun Fortran 8.3
9255: tmp_sharedflag='-G' ;;
9256: esac
9257: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258:
9259: if test "x$supports_anon_versioning" = xyes; then
9260: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9261: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9262: echo "local: *; };" >> $output_objdir/$libname.ver~
9263: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9264: fi
9265:
9266: case $cc_basename in
9267: xlf* | bgf* | bgxlf* | mpixlf*)
9268: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9269: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9270: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9271: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9272: if test "x$supports_anon_versioning" = xyes; then
9273: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9274: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9275: echo "local: *; };" >> $output_objdir/$libname.ver~
9276: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9277: fi
9278: ;;
9279: esac
9280: else
9281: ld_shlibs=no
9282: fi
9283: ;;
9284:
9285: netbsd*)
9286: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9287: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9288: wlarc=
9289: else
9290: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292: fi
9293: ;;
9294:
9295: solaris*)
9296: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9297: ld_shlibs=no
9298: cat <<_LT_EOF 1>&2
9299:
9300: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9301: *** create shared libraries on Solaris systems. Therefore, libtool
9302: *** is disabling shared libraries support. We urge you to upgrade GNU
9303: *** binutils to release 2.9.1 or newer. Another option is to modify
9304: *** your PATH or compiler configuration so that the native linker is
9305: *** used, and then restart.
9306:
9307: _LT_EOF
9308: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311: else
9312: ld_shlibs=no
9313: fi
9314: ;;
9315:
9316: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9317: case `$LD -v 2>&1` in
9318: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9319: ld_shlibs=no
9320: cat <<_LT_EOF 1>&2
9321:
9322: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9323: *** reliably create shared libraries on SCO systems. Therefore, libtool
9324: *** is disabling shared libraries support. We urge you to upgrade GNU
9325: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9326: *** your PATH or compiler configuration so that the native linker is
9327: *** used, and then restart.
9328:
9329: _LT_EOF
9330: ;;
9331: *)
9332: # For security reasons, it is highly recommended that you always
9333: # use absolute paths for naming shared libraries, and exclude the
9334: # DT_RUNPATH tag from executables and libraries. But doing so
9335: # requires that you compile everything twice, which is a pain.
9336: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340: else
9341: ld_shlibs=no
9342: fi
9343: ;;
9344: esac
9345: ;;
9346:
9347: sunos4*)
9348: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9349: wlarc=
9350: hardcode_direct=yes
9351: hardcode_shlibpath_var=no
9352: ;;
9353:
9354: *)
9355: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9356: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358: else
9359: ld_shlibs=no
9360: fi
9361: ;;
9362: esac
9363:
9364: if test "$ld_shlibs" = no; then
9365: runpath_var=
9366: hardcode_libdir_flag_spec=
9367: export_dynamic_flag_spec=
9368: whole_archive_flag_spec=
9369: fi
9370: else
9371: # PORTME fill in a description of your system's linker (not GNU ld)
9372: case $host_os in
9373: aix3*)
9374: allow_undefined_flag=unsupported
9375: always_export_symbols=yes
9376: 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'
9377: # Note: this linker hardcodes the directories in LIBPATH if there
9378: # are no directories specified by -L.
9379: hardcode_minus_L=yes
9380: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9381: # Neither direct hardcoding nor static linking is supported with a
9382: # broken collect2.
9383: hardcode_direct=unsupported
9384: fi
9385: ;;
9386:
9387: aix[4-9]*)
9388: if test "$host_cpu" = ia64; then
9389: # On IA64, the linker does run time linking by default, so we don't
9390: # have to do anything special.
9391: aix_use_runtimelinking=no
9392: exp_sym_flag='-Bexport'
9393: no_entry_flag=""
9394: else
9395: # If we're using GNU nm, then we don't want the "-C" option.
9396: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9397: # Also, AIX nm treats weak defined symbols like other global
9398: # defined symbols, whereas GNU nm marks them as "W".
9399: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9400: 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'
9401: else
9402: 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'
9403: fi
9404: aix_use_runtimelinking=no
9405:
9406: # Test if we are trying to use run time linking or normal
9407: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9408: # need to do runtime linking.
9409: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9410: for ld_flag in $LDFLAGS; do
9411: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9412: aix_use_runtimelinking=yes
9413: break
9414: fi
9415: done
9416: ;;
9417: esac
9418:
9419: exp_sym_flag='-bexport'
9420: no_entry_flag='-bnoentry'
9421: fi
9422:
9423: # When large executables or shared objects are built, AIX ld can
9424: # have problems creating the table of contents. If linking a library
9425: # or program results in "error TOC overflow" add -mminimal-toc to
9426: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9427: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9428:
9429: archive_cmds=''
9430: hardcode_direct=yes
9431: hardcode_direct_absolute=yes
9432: hardcode_libdir_separator=':'
9433: link_all_deplibs=yes
9434: file_list_spec='${wl}-f,'
9435:
9436: if test "$GCC" = yes; then
9437: case $host_os in aix4.[012]|aix4.[012].*)
9438: # We only want to do this on AIX 4.2 and lower, the check
9439: # below for broken collect2 doesn't work under 4.3+
9440: collect2name=`${CC} -print-prog-name=collect2`
9441: if test -f "$collect2name" &&
9442: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9443: then
9444: # We have reworked collect2
9445: :
9446: else
9447: # We have old collect2
9448: hardcode_direct=unsupported
9449: # It fails to find uninstalled libraries when the uninstalled
9450: # path is not listed in the libpath. Setting hardcode_minus_L
9451: # to unsupported forces relinking
9452: hardcode_minus_L=yes
9453: hardcode_libdir_flag_spec='-L$libdir'
9454: hardcode_libdir_separator=
9455: fi
9456: ;;
9457: esac
9458: shared_flag='-shared'
9459: if test "$aix_use_runtimelinking" = yes; then
9460: shared_flag="$shared_flag "'${wl}-G'
9461: fi
9462: else
9463: # not using gcc
9464: if test "$host_cpu" = ia64; then
9465: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9466: # chokes on -Wl,-G. The following line is correct:
9467: shared_flag='-G'
9468: else
9469: if test "$aix_use_runtimelinking" = yes; then
9470: shared_flag='${wl}-G'
9471: else
9472: shared_flag='${wl}-bM:SRE'
9473: fi
9474: fi
9475: fi
9476:
9477: export_dynamic_flag_spec='${wl}-bexpall'
9478: # It seems that -bexpall does not export symbols beginning with
9479: # underscore (_), so it is better to generate a list of symbols to export.
9480: always_export_symbols=yes
9481: if test "$aix_use_runtimelinking" = yes; then
9482: # Warning - without using the other runtime loading flags (-brtl),
9483: # -berok will link without error, but may produce a broken library.
9484: allow_undefined_flag='-berok'
9485: # Determine the default libpath from the value encoded in an
9486: # empty executable.
9487: if test "${lt_cv_aix_libpath+set}" = set; then
9488: aix_libpath=$lt_cv_aix_libpath
9489: else
9490: if test "${lt_cv_aix_libpath_+set}" = set; then
9491: echo $ECHO_N "(cached) $ECHO_C" >&6
9492: else
9493: cat >conftest.$ac_ext <<_ACEOF
9494: /* confdefs.h. */
9495: _ACEOF
9496: cat confdefs.h >>conftest.$ac_ext
9497: cat >>conftest.$ac_ext <<_ACEOF
9498: /* end confdefs.h. */
9499:
9500: int
9501: main ()
9502: {
9503:
9504: ;
9505: return 0;
9506: }
9507: _ACEOF
9508: rm -f conftest.$ac_objext conftest$ac_exeext
9509: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9510: (eval $ac_link) 2>conftest.er1
9511: ac_status=$?
9512: grep -v '^ *+' conftest.er1 >conftest.err
9513: rm -f conftest.er1
9514: cat conftest.err >&5
9515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516: (exit $ac_status); } &&
9517: { ac_try='test -z "$ac_c_werror_flag"
9518: || test ! -s conftest.err'
9519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520: (eval $ac_try) 2>&5
9521: ac_status=$?
9522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523: (exit $ac_status); }; } &&
9524: { ac_try='test -s conftest$ac_exeext'
9525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526: (eval $ac_try) 2>&5
9527: ac_status=$?
9528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529: (exit $ac_status); }; }; then
9530:
9531: lt_aix_libpath_sed='
9532: /Import File Strings/,/^$/ {
9533: /^0/ {
9534: s/^0 *\([^ ]*\) *$/\1/
9535: p
9536: }
9537: }'
9538: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9539: # Check for a 64-bit object if we didn't find anything.
9540: if test -z "$lt_cv_aix_libpath_"; then
9541: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542: fi
9543: else
9544: echo "$as_me: failed program was:" >&5
9545: sed 's/^/| /' conftest.$ac_ext >&5
9546:
9547: fi
9548: rm -f conftest.err conftest.$ac_objext \
9549: conftest$ac_exeext conftest.$ac_ext
9550: if test -z "$lt_cv_aix_libpath_"; then
9551: lt_cv_aix_libpath_="/usr/lib:/lib"
9552: fi
9553:
9554: fi
9555:
9556: aix_libpath=$lt_cv_aix_libpath_
9557: fi
9558:
9559: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560: 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"
9561: else
9562: if test "$host_cpu" = ia64; then
9563: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9564: allow_undefined_flag="-z nodefs"
9565: 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"
9566: else
9567: # Determine the default libpath from the value encoded in an
9568: # empty executable.
9569: if test "${lt_cv_aix_libpath+set}" = set; then
9570: aix_libpath=$lt_cv_aix_libpath
9571: else
9572: if test "${lt_cv_aix_libpath_+set}" = set; then
9573: echo $ECHO_N "(cached) $ECHO_C" >&6
9574: else
9575: cat >conftest.$ac_ext <<_ACEOF
9576: /* confdefs.h. */
9577: _ACEOF
9578: cat confdefs.h >>conftest.$ac_ext
9579: cat >>conftest.$ac_ext <<_ACEOF
9580: /* end confdefs.h. */
9581:
9582: int
9583: main ()
9584: {
9585:
9586: ;
9587: return 0;
9588: }
9589: _ACEOF
9590: rm -f conftest.$ac_objext conftest$ac_exeext
9591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592: (eval $ac_link) 2>conftest.er1
9593: ac_status=$?
9594: grep -v '^ *+' conftest.er1 >conftest.err
9595: rm -f conftest.er1
9596: cat conftest.err >&5
9597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598: (exit $ac_status); } &&
9599: { ac_try='test -z "$ac_c_werror_flag"
9600: || test ! -s conftest.err'
9601: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602: (eval $ac_try) 2>&5
9603: ac_status=$?
9604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605: (exit $ac_status); }; } &&
9606: { ac_try='test -s conftest$ac_exeext'
9607: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608: (eval $ac_try) 2>&5
9609: ac_status=$?
9610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611: (exit $ac_status); }; }; then
9612:
9613: lt_aix_libpath_sed='
9614: /Import File Strings/,/^$/ {
9615: /^0/ {
9616: s/^0 *\([^ ]*\) *$/\1/
9617: p
9618: }
9619: }'
9620: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621: # Check for a 64-bit object if we didn't find anything.
9622: if test -z "$lt_cv_aix_libpath_"; then
9623: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624: fi
9625: else
9626: echo "$as_me: failed program was:" >&5
9627: sed 's/^/| /' conftest.$ac_ext >&5
9628:
9629: fi
9630: rm -f conftest.err conftest.$ac_objext \
9631: conftest$ac_exeext conftest.$ac_ext
9632: if test -z "$lt_cv_aix_libpath_"; then
9633: lt_cv_aix_libpath_="/usr/lib:/lib"
9634: fi
9635:
9636: fi
9637:
9638: aix_libpath=$lt_cv_aix_libpath_
9639: fi
9640:
9641: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9642: # Warning - without using the other run time loading flags,
9643: # -berok will link without error, but may produce a broken library.
9644: no_undefined_flag=' ${wl}-bernotok'
9645: allow_undefined_flag=' ${wl}-berok'
9646: if test "$with_gnu_ld" = yes; then
9647: # We only use this code for GNU lds that support --whole-archive.
9648: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9649: else
9650: # Exported symbols can be pulled into shared objects from archives
9651: whole_archive_flag_spec='$convenience'
9652: fi
9653: archive_cmds_need_lc=yes
9654: # This is similar to how AIX traditionally builds its shared libraries.
9655: 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'
9656: fi
9657: fi
9658: ;;
9659:
9660: amigaos*)
9661: case $host_cpu in
9662: powerpc)
9663: # see comment about AmigaOS4 .so support
9664: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665: archive_expsym_cmds=''
9666: ;;
9667: m68k)
9668: 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)'
9669: hardcode_libdir_flag_spec='-L$libdir'
9670: hardcode_minus_L=yes
9671: ;;
9672: esac
9673: ;;
9674:
9675: bsdi[45]*)
9676: export_dynamic_flag_spec=-rdynamic
9677: ;;
9678:
9679: cygwin* | mingw* | pw32* | cegcc*)
9680: # When not using gcc, we currently assume that we are using
9681: # Microsoft Visual C++.
9682: # hardcode_libdir_flag_spec is actually meaningless, as there is
9683: # no search path for DLLs.
9684: case $cc_basename in
9685: cl*)
9686: # Native MSVC
9687: hardcode_libdir_flag_spec=' '
9688: allow_undefined_flag=unsupported
9689: always_export_symbols=yes
9690: file_list_spec='@'
9691: # Tell ltmain to make .lib files, not .a files.
9692: libext=lib
9693: # Tell ltmain to make .dll files, not .so files.
9694: shrext_cmds=".dll"
9695: # FIXME: Setting linknames here is a bad hack.
9696: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9697: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9698: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9699: else
9700: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9701: fi~
9702: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9703: linknames='
9704: # The linker will not automatically build a static lib if we build a DLL.
9705: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9706: enable_shared_with_static_runtimes=yes
9707: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9708: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9709: # Don't use ranlib
9710: old_postinstall_cmds='chmod 644 $oldlib'
9711: postlink_cmds='lt_outputfile="@OUTPUT@"~
9712: lt_tool_outputfile="@TOOL_OUTPUT@"~
9713: case $lt_outputfile in
9714: *.exe|*.EXE) ;;
9715: *)
9716: lt_outputfile="$lt_outputfile.exe"
9717: lt_tool_outputfile="$lt_tool_outputfile.exe"
9718: ;;
9719: esac~
9720: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9721: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9722: $RM "$lt_outputfile.manifest";
9723: fi'
9724: ;;
9725: *)
9726: # Assume MSVC wrapper
9727: hardcode_libdir_flag_spec=' '
9728: allow_undefined_flag=unsupported
9729: # Tell ltmain to make .lib files, not .a files.
9730: libext=lib
9731: # Tell ltmain to make .dll files, not .so files.
9732: shrext_cmds=".dll"
9733: # FIXME: Setting linknames here is a bad hack.
9734: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9735: # The linker will automatically build a .lib file if we build a DLL.
9736: old_archive_from_new_cmds='true'
9737: # FIXME: Should let the user specify the lib program.
9738: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9739: enable_shared_with_static_runtimes=yes
9740: ;;
9741: esac
9742: ;;
9743:
9744: darwin* | rhapsody*)
9745:
9746:
9747: archive_cmds_need_lc=no
9748: hardcode_direct=no
9749: hardcode_automatic=yes
9750: hardcode_shlibpath_var=unsupported
9751: if test "$lt_cv_ld_force_load" = "yes"; then
9752: 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\"`'
9753:
9754: else
9755: whole_archive_flag_spec=''
9756: fi
9757: link_all_deplibs=yes
9758: allow_undefined_flag="$_lt_dar_allow_undefined"
9759: case $cc_basename in
9760: ifort*) _lt_dar_can_shared=yes ;;
9761: *) _lt_dar_can_shared=$GCC ;;
9762: esac
9763: if test "$_lt_dar_can_shared" = "yes"; then
9764: output_verbose_link_cmd=func_echo_all
9765: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9766: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9767: 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}"
9768: 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}"
9769:
9770: else
9771: ld_shlibs=no
9772: fi
9773:
9774: ;;
9775:
9776: dgux*)
9777: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778: hardcode_libdir_flag_spec='-L$libdir'
9779: hardcode_shlibpath_var=no
9780: ;;
9781:
9782: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9783: # support. Future versions do this automatically, but an explicit c++rt0.o
9784: # does not break anything, and helps significantly (at the cost of a little
9785: # extra space).
9786: freebsd2.2*)
9787: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9788: hardcode_libdir_flag_spec='-R$libdir'
9789: hardcode_direct=yes
9790: hardcode_shlibpath_var=no
9791: ;;
9792:
9793: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9794: freebsd2.*)
9795: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796: hardcode_direct=yes
9797: hardcode_minus_L=yes
9798: hardcode_shlibpath_var=no
9799: ;;
9800:
9801: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9802: freebsd* | dragonfly*)
9803: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9804: hardcode_libdir_flag_spec='-R$libdir'
9805: hardcode_direct=yes
9806: hardcode_shlibpath_var=no
9807: ;;
9808:
9809: hpux9*)
9810: if test "$GCC" = yes; then
9811: 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'
9812: else
9813: 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'
9814: fi
9815: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816: hardcode_libdir_separator=:
9817: hardcode_direct=yes
9818:
9819: # hardcode_minus_L: Not really in the search PATH,
9820: # but as the default location of the library.
9821: hardcode_minus_L=yes
9822: export_dynamic_flag_spec='${wl}-E'
9823: ;;
9824:
9825: hpux10*)
9826: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9827: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828: else
9829: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9830: fi
9831: if test "$with_gnu_ld" = no; then
9832: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833: hardcode_libdir_separator=:
9834: hardcode_direct=yes
9835: hardcode_direct_absolute=yes
9836: export_dynamic_flag_spec='${wl}-E'
9837: # hardcode_minus_L: Not really in the search PATH,
9838: # but as the default location of the library.
9839: hardcode_minus_L=yes
9840: fi
9841: ;;
9842:
9843: hpux11*)
9844: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9845: case $host_cpu in
9846: hppa*64*)
9847: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9848: ;;
9849: ia64*)
9850: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9851: ;;
9852: *)
9853: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854: ;;
9855: esac
9856: else
9857: case $host_cpu in
9858: hppa*64*)
9859: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9860: ;;
9861: ia64*)
9862: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9863: ;;
9864: *)
9865:
9866: # Older versions of the 11.00 compiler do not understand -b yet
9867: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9868: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9869: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9870: if test "${lt_cv_prog_compiler__b+set}" = set; then
9871: echo $ECHO_N "(cached) $ECHO_C" >&6
9872: else
9873: lt_cv_prog_compiler__b=no
9874: save_LDFLAGS="$LDFLAGS"
9875: LDFLAGS="$LDFLAGS -b"
9876: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9877: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9878: # The linker can only warn and ignore the option if not recognized
9879: # So say no if there are warnings
9880: if test -s conftest.err; then
9881: # Append any errors to the config.log.
9882: cat conftest.err 1>&5
9883: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9884: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9885: if diff conftest.exp conftest.er2 >/dev/null; then
9886: lt_cv_prog_compiler__b=yes
9887: fi
9888: else
9889: lt_cv_prog_compiler__b=yes
9890: fi
9891: fi
9892: $RM -r conftest*
9893: LDFLAGS="$save_LDFLAGS"
9894:
9895: fi
9896: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9897: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
9898:
9899: if test x"$lt_cv_prog_compiler__b" = xyes; then
9900: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9901: else
9902: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9903: fi
9904:
9905: ;;
9906: esac
9907: fi
9908: if test "$with_gnu_ld" = no; then
9909: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9910: hardcode_libdir_separator=:
9911:
9912: case $host_cpu in
9913: hppa*64*|ia64*)
9914: hardcode_direct=no
9915: hardcode_shlibpath_var=no
9916: ;;
9917: *)
9918: hardcode_direct=yes
9919: hardcode_direct_absolute=yes
9920: export_dynamic_flag_spec='${wl}-E'
9921:
9922: # hardcode_minus_L: Not really in the search PATH,
9923: # but as the default location of the library.
9924: hardcode_minus_L=yes
9925: ;;
9926: esac
9927: fi
9928: ;;
9929:
9930: irix5* | irix6* | nonstopux*)
9931: if test "$GCC" = yes; then
9932: 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'
9933: # Try to use the -exported_symbol ld option, if it does not
9934: # work, assume that -exports_file does not work either and
9935: # implicitly export all symbols.
9936: # This should be the same for all languages, so no per-tag cache variable.
9937: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
9938: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
9939: if test "${lt_cv_irix_exported_symbol+set}" = set; then
9940: echo $ECHO_N "(cached) $ECHO_C" >&6
9941: else
9942: save_LDFLAGS="$LDFLAGS"
9943: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9944: cat >conftest.$ac_ext <<_ACEOF
9945: /* confdefs.h. */
9946: _ACEOF
9947: cat confdefs.h >>conftest.$ac_ext
9948: cat >>conftest.$ac_ext <<_ACEOF
9949: /* end confdefs.h. */
9950: int foo (void) { return 0; }
9951: _ACEOF
9952: rm -f conftest.$ac_objext conftest$ac_exeext
9953: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954: (eval $ac_link) 2>conftest.er1
9955: ac_status=$?
9956: grep -v '^ *+' conftest.er1 >conftest.err
9957: rm -f conftest.er1
9958: cat conftest.err >&5
9959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960: (exit $ac_status); } &&
9961: { ac_try='test -z "$ac_c_werror_flag"
9962: || test ! -s conftest.err'
9963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964: (eval $ac_try) 2>&5
9965: ac_status=$?
9966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967: (exit $ac_status); }; } &&
9968: { ac_try='test -s conftest$ac_exeext'
9969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970: (eval $ac_try) 2>&5
9971: ac_status=$?
9972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973: (exit $ac_status); }; }; then
9974: lt_cv_irix_exported_symbol=yes
9975: else
9976: echo "$as_me: failed program was:" >&5
9977: sed 's/^/| /' conftest.$ac_ext >&5
9978:
9979: lt_cv_irix_exported_symbol=no
9980: fi
9981: rm -f conftest.err conftest.$ac_objext \
9982: conftest$ac_exeext conftest.$ac_ext
9983: LDFLAGS="$save_LDFLAGS"
9984: fi
9985: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
9986: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
9987: if test "$lt_cv_irix_exported_symbol" = yes; then
9988: 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'
9989: fi
9990: else
9991: 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'
9992: 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'
9993: fi
9994: archive_cmds_need_lc='no'
9995: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9996: hardcode_libdir_separator=:
9997: inherit_rpath=yes
9998: link_all_deplibs=yes
9999: ;;
10000:
10001: netbsd*)
10002: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10003: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10004: else
10005: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10006: fi
10007: hardcode_libdir_flag_spec='-R$libdir'
10008: hardcode_direct=yes
10009: hardcode_shlibpath_var=no
10010: ;;
10011:
10012: newsos6)
10013: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014: hardcode_direct=yes
10015: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10016: hardcode_libdir_separator=:
10017: hardcode_shlibpath_var=no
10018: ;;
10019:
10020: *nto* | *qnx*)
10021: ;;
10022:
10023: openbsd*)
10024: if test -f /usr/libexec/ld.so; then
10025: hardcode_direct=yes
10026: hardcode_shlibpath_var=no
10027: hardcode_direct_absolute=yes
10028: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10029: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10030: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10031: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10032: export_dynamic_flag_spec='${wl}-E'
10033: else
10034: case $host_os in
10035: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10036: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037: hardcode_libdir_flag_spec='-R$libdir'
10038: ;;
10039: *)
10040: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10041: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10042: ;;
10043: esac
10044: fi
10045: else
10046: ld_shlibs=no
10047: fi
10048: ;;
10049:
10050: os2*)
10051: hardcode_libdir_flag_spec='-L$libdir'
10052: hardcode_minus_L=yes
10053: allow_undefined_flag=unsupported
10054: 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'
10055: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10056: ;;
10057:
10058: osf3*)
10059: if test "$GCC" = yes; then
10060: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10061: 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'
10062: else
10063: allow_undefined_flag=' -expect_unresolved \*'
10064: 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'
10065: fi
10066: archive_cmds_need_lc='no'
10067: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068: hardcode_libdir_separator=:
10069: ;;
10070:
10071: osf4* | osf5*) # as osf3* with the addition of -msym flag
10072: if test "$GCC" = yes; then
10073: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10074: 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'
10075: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076: else
10077: allow_undefined_flag=' -expect_unresolved \*'
10078: 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'
10079: 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~
10080: $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'
10081:
10082: # Both c and cxx compiler support -rpath directly
10083: hardcode_libdir_flag_spec='-rpath $libdir'
10084: fi
10085: archive_cmds_need_lc='no'
10086: hardcode_libdir_separator=:
10087: ;;
10088:
10089: solaris*)
10090: no_undefined_flag=' -z defs'
10091: if test "$GCC" = yes; then
10092: wlarc='${wl}'
10093: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10094: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095: $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'
10096: else
10097: case `$CC -V 2>&1` in
10098: *"Compilers 5.0"*)
10099: wlarc=''
10100: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10102: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10103: ;;
10104: *)
10105: wlarc='${wl}'
10106: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10107: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10108: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10109: ;;
10110: esac
10111: fi
10112: hardcode_libdir_flag_spec='-R$libdir'
10113: hardcode_shlibpath_var=no
10114: case $host_os in
10115: solaris2.[0-5] | solaris2.[0-5].*) ;;
10116: *)
10117: # The compiler driver will combine and reorder linker options,
10118: # but understands `-z linker_flag'. GCC discards it without `$wl',
10119: # but is careful enough not to reorder.
10120: # Supported since Solaris 2.6 (maybe 2.5.1?)
10121: if test "$GCC" = yes; then
10122: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10123: else
10124: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10125: fi
10126: ;;
10127: esac
10128: link_all_deplibs=yes
10129: ;;
10130:
10131: sunos4*)
10132: if test "x$host_vendor" = xsequent; then
10133: # Use $CC to link under sequent, because it throws in some extra .o
10134: # files that make .init and .fini sections work.
10135: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10136: else
10137: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10138: fi
10139: hardcode_libdir_flag_spec='-L$libdir'
10140: hardcode_direct=yes
10141: hardcode_minus_L=yes
10142: hardcode_shlibpath_var=no
10143: ;;
10144:
10145: sysv4)
10146: case $host_vendor in
10147: sni)
10148: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149: hardcode_direct=yes # is this really true???
10150: ;;
10151: siemens)
10152: ## LD is ld it makes a PLAMLIB
10153: ## CC just makes a GrossModule.
10154: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10155: reload_cmds='$CC -r -o $output$reload_objs'
10156: hardcode_direct=no
10157: ;;
10158: motorola)
10159: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10161: ;;
10162: esac
10163: runpath_var='LD_RUN_PATH'
10164: hardcode_shlibpath_var=no
10165: ;;
10166:
10167: sysv4.3*)
10168: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169: hardcode_shlibpath_var=no
10170: export_dynamic_flag_spec='-Bexport'
10171: ;;
10172:
10173: sysv4*MP*)
10174: if test -d /usr/nec; then
10175: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176: hardcode_shlibpath_var=no
10177: runpath_var=LD_RUN_PATH
10178: hardcode_runpath_var=yes
10179: ld_shlibs=yes
10180: fi
10181: ;;
10182:
10183: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10184: no_undefined_flag='${wl}-z,text'
10185: archive_cmds_need_lc=no
10186: hardcode_shlibpath_var=no
10187: runpath_var='LD_RUN_PATH'
10188:
10189: if test "$GCC" = yes; then
10190: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192: else
10193: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195: fi
10196: ;;
10197:
10198: sysv5* | sco3.2v5* | sco5v6*)
10199: # Note: We can NOT use -z defs as we might desire, because we do not
10200: # link with -lc, and that would cause any symbols used from libc to
10201: # always be unresolved, which means just about no library would
10202: # ever link correctly. If we're not using GNU ld we use -z text
10203: # though, which does catch some bad symbols but isn't as heavy-handed
10204: # as -z defs.
10205: no_undefined_flag='${wl}-z,text'
10206: allow_undefined_flag='${wl}-z,nodefs'
10207: archive_cmds_need_lc=no
10208: hardcode_shlibpath_var=no
10209: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10210: hardcode_libdir_separator=':'
10211: link_all_deplibs=yes
10212: export_dynamic_flag_spec='${wl}-Bexport'
10213: runpath_var='LD_RUN_PATH'
10214:
10215: if test "$GCC" = yes; then
10216: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218: else
10219: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221: fi
10222: ;;
10223:
10224: uts4*)
10225: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226: hardcode_libdir_flag_spec='-L$libdir'
10227: hardcode_shlibpath_var=no
10228: ;;
10229:
10230: *)
10231: ld_shlibs=no
10232: ;;
10233: esac
10234:
10235: if test x$host_vendor = xsni; then
10236: case $host in
10237: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10238: export_dynamic_flag_spec='${wl}-Blargedynsym'
10239: ;;
10240: esac
10241: fi
10242: fi
10243:
10244: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10245: echo "${ECHO_T}$ld_shlibs" >&6
10246: test "$ld_shlibs" = no && can_build_shared=no
10247:
10248: with_gnu_ld=$with_gnu_ld
10249:
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
10262:
10263:
10264: #
10265: # Do we need to explicitly link libc?
10266: #
10267: case "x$archive_cmds_need_lc" in
10268: x|xyes)
10269: # Assume -lc should be added
10270: archive_cmds_need_lc=yes
10271:
10272: if test "$enable_shared" = yes && test "$GCC" = yes; then
10273: case $archive_cmds in
10274: *'~'*)
10275: # FIXME: we may have to deal with multi-command sequences.
10276: ;;
10277: '$CC '*)
10278: # Test whether the compiler implicitly links with -lc since on some
10279: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10280: # to ld, don't add -lc before -lgcc.
10281: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10282: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10283: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10284: echo $ECHO_N "(cached) $ECHO_C" >&6
10285: else
10286: $RM conftest*
10287: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10288:
10289: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290: (eval $ac_compile) 2>&5
10291: ac_status=$?
10292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293: (exit $ac_status); } 2>conftest.err; then
10294: soname=conftest
10295: lib=conftest
10296: libobjs=conftest.$ac_objext
10297: deplibs=
10298: wl=$lt_prog_compiler_wl
10299: pic_flag=$lt_prog_compiler_pic
10300: compiler_flags=-v
10301: linker_flags=-v
10302: verstring=
10303: output_objdir=.
10304: libname=conftest
10305: lt_save_allow_undefined_flag=$allow_undefined_flag
10306: allow_undefined_flag=
10307: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10308: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10309: ac_status=$?
10310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311: (exit $ac_status); }
10312: then
10313: lt_cv_archive_cmds_need_lc=no
10314: else
10315: lt_cv_archive_cmds_need_lc=yes
10316: fi
10317: allow_undefined_flag=$lt_save_allow_undefined_flag
10318: else
10319: cat conftest.err 1>&5
10320: fi
10321: $RM conftest*
10322:
10323: fi
10324: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10325: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10326: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10327: ;;
10328: esac
10329: fi
10330: ;;
10331: esac
10332:
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347:
10348:
10349:
10350:
10351:
10352:
10353:
10354:
10355:
10356:
10357:
10358:
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
10377:
10378:
10379:
10380:
10381:
10382:
10383:
10384:
10385:
10386:
10387:
10388:
10389:
10390:
10391:
10392:
10393:
10394:
10395:
10396:
10397:
10398:
10399:
10400:
10401:
10402:
10403:
10404:
10405:
10406:
10407:
10408:
10409:
10410:
10411:
10412:
10413:
10414:
10415:
10416:
10417:
10418:
10419:
10420:
10421:
10422:
10423:
10424:
10425:
10426:
10427:
10428:
10429:
10430:
10431:
10432:
10433:
10434:
10435:
10436:
10437:
10438:
10439:
10440:
10441:
10442:
10443:
10444:
10445:
10446:
10447:
10448:
10449:
10450:
10451:
10452:
10453:
10454:
10455:
10456:
10457:
10458:
10459:
10460:
10461:
10462:
10463:
10464:
10465:
10466:
10467:
10468:
10469:
10470:
10471:
10472:
10473:
10474:
10475:
10476:
10477:
10478:
10479:
10480:
10481:
10482:
10483:
10484: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10485: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10486:
10487: if test "$GCC" = yes; then
10488: case $host_os in
10489: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10490: *) lt_awk_arg="/^libraries:/" ;;
10491: esac
10492: case $host_os in
10493: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10494: *) lt_sed_strip_eq="s,=/,/,g" ;;
10495: esac
10496: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10497: case $lt_search_path_spec in
10498: *\;*)
10499: # if the path contains ";" then we assume it to be the separator
10500: # otherwise default to the standard path separator (i.e. ":") - it is
10501: # assumed that no part of a normal pathname contains ";" but that should
10502: # okay in the real world where ";" in dirpaths is itself problematic.
10503: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10504: ;;
10505: *)
10506: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10507: ;;
10508: esac
10509: # Ok, now we have the path, separated by spaces, we can step through it
10510: # and add multilib dir if necessary.
10511: lt_tmp_lt_search_path_spec=
10512: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10513: for lt_sys_path in $lt_search_path_spec; do
10514: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10515: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10516: else
10517: test -d "$lt_sys_path" && \
10518: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10519: fi
10520: done
10521: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10522: BEGIN {RS=" "; FS="/|\n";} {
10523: lt_foo="";
10524: lt_count=0;
10525: for (lt_i = NF; lt_i > 0; lt_i--) {
10526: if ($lt_i != "" && $lt_i != ".") {
10527: if ($lt_i == "..") {
10528: lt_count++;
10529: } else {
10530: if (lt_count == 0) {
10531: lt_foo="/" $lt_i lt_foo;
10532: } else {
10533: lt_count--;
10534: }
10535: }
10536: }
10537: }
10538: if (lt_foo != "") { lt_freq[lt_foo]++; }
10539: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10540: }'`
10541: # AWK program above erroneously prepends '/' to C:/dos/paths
10542: # for these hosts.
10543: case $host_os in
10544: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10545: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10546: esac
10547: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10548: else
10549: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10550: fi
10551: library_names_spec=
10552: libname_spec='lib$name'
10553: soname_spec=
10554: shrext_cmds=".so"
10555: postinstall_cmds=
10556: postuninstall_cmds=
10557: finish_cmds=
10558: finish_eval=
10559: shlibpath_var=
10560: shlibpath_overrides_runpath=unknown
10561: version_type=none
10562: dynamic_linker="$host_os ld.so"
10563: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10564: need_lib_prefix=unknown
10565: hardcode_into_libs=no
10566:
10567: # when you set need_version to no, make sure it does not cause -set_version
10568: # flags to be left without arguments
10569: need_version=unknown
10570:
10571: case $host_os in
10572: aix3*)
10573: version_type=linux # correct to gnu/linux during the next big refactor
10574: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10575: shlibpath_var=LIBPATH
10576:
10577: # AIX 3 has no versioning support, so we append a major version to the name.
10578: soname_spec='${libname}${release}${shared_ext}$major'
10579: ;;
10580:
10581: aix[4-9]*)
10582: version_type=linux # correct to gnu/linux during the next big refactor
10583: need_lib_prefix=no
10584: need_version=no
10585: hardcode_into_libs=yes
10586: if test "$host_cpu" = ia64; then
10587: # AIX 5 supports IA64
10588: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10589: shlibpath_var=LD_LIBRARY_PATH
10590: else
10591: # With GCC up to 2.95.x, collect2 would create an import file
10592: # for dependence libraries. The import file would start with
10593: # the line `#! .'. This would cause the generated library to
10594: # depend on `.', always an invalid library. This was fixed in
10595: # development snapshots of GCC prior to 3.0.
10596: case $host_os in
10597: aix4 | aix4.[01] | aix4.[01].*)
10598: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10599: echo ' yes '
10600: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10601: :
10602: else
10603: can_build_shared=no
10604: fi
10605: ;;
10606: esac
10607: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10608: # soname into executable. Probably we can add versioning support to
10609: # collect2, so additional links can be useful in future.
10610: if test "$aix_use_runtimelinking" = yes; then
10611: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10612: # instead of lib<name>.a to let people know that these are not
10613: # typical AIX shared libraries.
10614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615: else
10616: # We preserve .a as extension for shared libraries through AIX4.2
10617: # and later when we are not doing run time linking.
10618: library_names_spec='${libname}${release}.a $libname.a'
10619: soname_spec='${libname}${release}${shared_ext}$major'
10620: fi
10621: shlibpath_var=LIBPATH
10622: fi
10623: ;;
10624:
10625: amigaos*)
10626: case $host_cpu in
10627: powerpc)
10628: # Since July 2007 AmigaOS4 officially supports .so libraries.
10629: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10630: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631: ;;
10632: m68k)
10633: library_names_spec='$libname.ixlibrary $libname.a'
10634: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10635: 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'
10636: ;;
10637: esac
10638: ;;
10639:
10640: beos*)
10641: library_names_spec='${libname}${shared_ext}'
10642: dynamic_linker="$host_os ld.so"
10643: shlibpath_var=LIBRARY_PATH
10644: ;;
10645:
10646: bsdi[45]*)
10647: version_type=linux # correct to gnu/linux during the next big refactor
10648: need_version=no
10649: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650: soname_spec='${libname}${release}${shared_ext}$major'
10651: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10652: shlibpath_var=LD_LIBRARY_PATH
10653: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10654: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10655: # the default ld.so.conf also contains /usr/contrib/lib and
10656: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10657: # libtool to hard-code these into programs
10658: ;;
10659:
10660: cygwin* | mingw* | pw32* | cegcc*)
10661: version_type=windows
10662: shrext_cmds=".dll"
10663: need_version=no
10664: need_lib_prefix=no
10665:
10666: case $GCC,$cc_basename in
10667: yes,*)
10668: # gcc
10669: library_names_spec='$libname.dll.a'
10670: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10671: postinstall_cmds='base_file=`basename \${file}`~
10672: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10673: dldir=$destdir/`dirname \$dlpath`~
10674: test -d \$dldir || mkdir -p \$dldir~
10675: $install_prog $dir/$dlname \$dldir/$dlname~
10676: chmod a+x \$dldir/$dlname~
10677: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10678: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10679: fi'
10680: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10681: dlpath=$dir/\$dldll~
10682: $RM \$dlpath'
10683: shlibpath_overrides_runpath=yes
10684:
10685: case $host_os in
10686: cygwin*)
10687: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10688: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10689:
10690: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10691: ;;
10692: mingw* | cegcc*)
10693: # MinGW DLLs use traditional 'lib' prefix
10694: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10695: ;;
10696: pw32*)
10697: # pw32 DLLs use 'pw' prefix rather than 'lib'
10698: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699: ;;
10700: esac
10701: dynamic_linker='Win32 ld.exe'
10702: ;;
10703:
10704: *,cl*)
10705: # Native MSVC
10706: libname_spec='$name'
10707: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10708: library_names_spec='${libname}.dll.lib'
10709:
10710: case $build_os in
10711: mingw*)
10712: sys_lib_search_path_spec=
10713: lt_save_ifs=$IFS
10714: IFS=';'
10715: for lt_path in $LIB
10716: do
10717: IFS=$lt_save_ifs
10718: # Let DOS variable expansion print the short 8.3 style file name.
10719: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10720: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10721: done
10722: IFS=$lt_save_ifs
10723: # Convert to MSYS style.
10724: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10725: ;;
10726: cygwin*)
10727: # Convert to unix form, then to dos form, then back to unix form
10728: # but this time dos style (no spaces!) so that the unix form looks
10729: # like /cygdrive/c/PROGRA~1:/cygdr...
10730: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10731: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10732: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10733: ;;
10734: *)
10735: sys_lib_search_path_spec="$LIB"
10736: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10737: # It is most probably a Windows format PATH.
10738: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10739: else
10740: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10741: fi
10742: # FIXME: find the short name or the path components, as spaces are
10743: # common. (e.g. "Program Files" -> "PROGRA~1")
10744: ;;
10745: esac
10746:
10747: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10748: postinstall_cmds='base_file=`basename \${file}`~
10749: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10750: dldir=$destdir/`dirname \$dlpath`~
10751: test -d \$dldir || mkdir -p \$dldir~
10752: $install_prog $dir/$dlname \$dldir/$dlname'
10753: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10754: dlpath=$dir/\$dldll~
10755: $RM \$dlpath'
10756: shlibpath_overrides_runpath=yes
10757: dynamic_linker='Win32 link.exe'
10758: ;;
10759:
10760: *)
10761: # Assume MSVC wrapper
10762: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10763: dynamic_linker='Win32 ld.exe'
10764: ;;
10765: esac
10766: # FIXME: first we should search . and the directory the executable is in
10767: shlibpath_var=PATH
10768: ;;
10769:
10770: darwin* | rhapsody*)
10771: dynamic_linker="$host_os dyld"
10772: version_type=darwin
10773: need_lib_prefix=no
10774: need_version=no
10775: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10776: soname_spec='${libname}${release}${major}$shared_ext'
10777: shlibpath_overrides_runpath=yes
10778: shlibpath_var=DYLD_LIBRARY_PATH
10779: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10780:
10781: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10782: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10783: ;;
10784:
10785: dgux*)
10786: version_type=linux # correct to gnu/linux during the next big refactor
10787: need_lib_prefix=no
10788: need_version=no
10789: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10790: soname_spec='${libname}${release}${shared_ext}$major'
10791: shlibpath_var=LD_LIBRARY_PATH
10792: ;;
10793:
10794: freebsd* | dragonfly*)
10795: # DragonFly does not have aout. When/if they implement a new
10796: # versioning mechanism, adjust this.
10797: if test -x /usr/bin/objformat; then
10798: objformat=`/usr/bin/objformat`
10799: else
10800: case $host_os in
10801: freebsd[23].*) objformat=aout ;;
10802: *) objformat=elf ;;
10803: esac
10804: fi
10805: version_type=freebsd-$objformat
10806: case $version_type in
10807: freebsd-elf*)
10808: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10809: need_version=no
10810: need_lib_prefix=no
10811: ;;
10812: freebsd-*)
10813: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10814: need_version=yes
10815: ;;
10816: esac
10817: shlibpath_var=LD_LIBRARY_PATH
10818: case $host_os in
10819: freebsd2.*)
10820: shlibpath_overrides_runpath=yes
10821: ;;
10822: freebsd3.[01]* | freebsdelf3.[01]*)
10823: shlibpath_overrides_runpath=yes
10824: hardcode_into_libs=yes
10825: ;;
10826: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10827: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10828: shlibpath_overrides_runpath=no
10829: hardcode_into_libs=yes
10830: ;;
10831: *) # from 4.6 on, and DragonFly
10832: shlibpath_overrides_runpath=yes
10833: hardcode_into_libs=yes
10834: ;;
10835: esac
10836: ;;
10837:
10838: gnu*)
10839: version_type=linux # correct to gnu/linux during the next big refactor
10840: need_lib_prefix=no
10841: need_version=no
10842: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10843: soname_spec='${libname}${release}${shared_ext}$major'
10844: shlibpath_var=LD_LIBRARY_PATH
10845: shlibpath_overrides_runpath=no
10846: hardcode_into_libs=yes
10847: ;;
10848:
10849: haiku*)
10850: version_type=linux # correct to gnu/linux during the next big refactor
10851: need_lib_prefix=no
10852: need_version=no
10853: dynamic_linker="$host_os runtime_loader"
10854: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10855: soname_spec='${libname}${release}${shared_ext}$major'
10856: shlibpath_var=LIBRARY_PATH
10857: shlibpath_overrides_runpath=yes
10858: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10859: hardcode_into_libs=yes
10860: ;;
10861:
10862: hpux9* | hpux10* | hpux11*)
10863: # Give a soname corresponding to the major version so that dld.sl refuses to
10864: # link against other versions.
10865: version_type=sunos
10866: need_lib_prefix=no
10867: need_version=no
10868: case $host_cpu in
10869: ia64*)
10870: shrext_cmds='.so'
10871: hardcode_into_libs=yes
10872: dynamic_linker="$host_os dld.so"
10873: shlibpath_var=LD_LIBRARY_PATH
10874: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876: soname_spec='${libname}${release}${shared_ext}$major'
10877: if test "X$HPUX_IA64_MODE" = X32; then
10878: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10879: else
10880: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10881: fi
10882: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10883: ;;
10884: hppa*64*)
10885: shrext_cmds='.sl'
10886: hardcode_into_libs=yes
10887: dynamic_linker="$host_os dld.sl"
10888: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10889: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10890: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891: soname_spec='${libname}${release}${shared_ext}$major'
10892: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10893: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10894: ;;
10895: *)
10896: shrext_cmds='.sl'
10897: dynamic_linker="$host_os dld.sl"
10898: shlibpath_var=SHLIB_PATH
10899: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901: soname_spec='${libname}${release}${shared_ext}$major'
10902: ;;
10903: esac
10904: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10905: postinstall_cmds='chmod 555 $lib'
10906: # or fails outright, so override atomically:
10907: install_override_mode=555
10908: ;;
10909:
10910: interix[3-9]*)
10911: version_type=linux # correct to gnu/linux during the next big refactor
10912: need_lib_prefix=no
10913: need_version=no
10914: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10915: soname_spec='${libname}${release}${shared_ext}$major'
10916: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10917: shlibpath_var=LD_LIBRARY_PATH
10918: shlibpath_overrides_runpath=no
10919: hardcode_into_libs=yes
10920: ;;
10921:
10922: irix5* | irix6* | nonstopux*)
10923: case $host_os in
10924: nonstopux*) version_type=nonstopux ;;
10925: *)
10926: if test "$lt_cv_prog_gnu_ld" = yes; then
10927: version_type=linux # correct to gnu/linux during the next big refactor
10928: else
10929: version_type=irix
10930: fi ;;
10931: esac
10932: need_lib_prefix=no
10933: need_version=no
10934: soname_spec='${libname}${release}${shared_ext}$major'
10935: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10936: case $host_os in
10937: irix5* | nonstopux*)
10938: libsuff= shlibsuff=
10939: ;;
10940: *)
10941: case $LD in # libtool.m4 will add one of these switches to LD
10942: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10943: libsuff= shlibsuff= libmagic=32-bit;;
10944: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10945: libsuff=32 shlibsuff=N32 libmagic=N32;;
10946: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10947: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10948: *) libsuff= shlibsuff= libmagic=never-match;;
10949: esac
10950: ;;
10951: esac
10952: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10953: shlibpath_overrides_runpath=no
10954: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10955: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10956: hardcode_into_libs=yes
10957: ;;
10958:
10959: # No shared lib support for Linux oldld, aout, or coff.
10960: linux*oldld* | linux*aout* | linux*coff*)
10961: dynamic_linker=no
10962: ;;
10963:
10964: # This must be glibc/ELF.
10965: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10966: version_type=linux # correct to gnu/linux during the next big refactor
10967: need_lib_prefix=no
10968: need_version=no
10969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970: soname_spec='${libname}${release}${shared_ext}$major'
10971: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10972: shlibpath_var=LD_LIBRARY_PATH
10973: shlibpath_overrides_runpath=no
10974:
10975: # Some binutils ld are patched to set DT_RUNPATH
10976: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10977: echo $ECHO_N "(cached) $ECHO_C" >&6
10978: else
10979: lt_cv_shlibpath_overrides_runpath=no
10980: save_LDFLAGS=$LDFLAGS
10981: save_libdir=$libdir
10982: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10983: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10984: cat >conftest.$ac_ext <<_ACEOF
10985: /* confdefs.h. */
10986: _ACEOF
10987: cat confdefs.h >>conftest.$ac_ext
10988: cat >>conftest.$ac_ext <<_ACEOF
10989: /* end confdefs.h. */
10990:
10991: int
10992: main ()
10993: {
10994:
10995: ;
10996: return 0;
10997: }
10998: _ACEOF
10999: rm -f conftest.$ac_objext conftest$ac_exeext
11000: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001: (eval $ac_link) 2>conftest.er1
11002: ac_status=$?
11003: grep -v '^ *+' conftest.er1 >conftest.err
11004: rm -f conftest.er1
11005: cat conftest.err >&5
11006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007: (exit $ac_status); } &&
11008: { ac_try='test -z "$ac_c_werror_flag"
11009: || test ! -s conftest.err'
11010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011: (eval $ac_try) 2>&5
11012: ac_status=$?
11013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014: (exit $ac_status); }; } &&
11015: { ac_try='test -s conftest$ac_exeext'
11016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017: (eval $ac_try) 2>&5
11018: ac_status=$?
11019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020: (exit $ac_status); }; }; then
11021: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11022: lt_cv_shlibpath_overrides_runpath=yes
11023: fi
11024:
11025: else
11026: echo "$as_me: failed program was:" >&5
11027: sed 's/^/| /' conftest.$ac_ext >&5
11028:
11029: fi
11030: rm -f conftest.err conftest.$ac_objext \
11031: conftest$ac_exeext conftest.$ac_ext
11032: LDFLAGS=$save_LDFLAGS
11033: libdir=$save_libdir
11034:
11035: fi
11036:
11037: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11038:
11039: # This implies no fast_install, which is unacceptable.
11040: # Some rework will be needed to allow for fast_install
11041: # before this can be enabled.
11042: hardcode_into_libs=yes
11043:
11044: # Append ld.so.conf contents to the search path
11045: if test -f /etc/ld.so.conf; then
11046: 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' ' '`
11047: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11048: fi
11049:
11050: # We used to test for /lib/ld.so.1 and disable shared libraries on
11051: # powerpc, because MkLinux only supported shared libraries with the
11052: # GNU dynamic linker. Since this was broken with cross compilers,
11053: # most powerpc-linux boxes support dynamic linking these days and
11054: # people can always --disable-shared, the test was removed, and we
11055: # assume the GNU/Linux dynamic linker is in use.
11056: dynamic_linker='GNU/Linux ld.so'
11057: ;;
11058:
11059: netbsd*)
11060: version_type=sunos
11061: need_lib_prefix=no
11062: need_version=no
11063: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11064: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11065: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11066: dynamic_linker='NetBSD (a.out) ld.so'
11067: else
11068: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11069: soname_spec='${libname}${release}${shared_ext}$major'
11070: dynamic_linker='NetBSD ld.elf_so'
11071: fi
11072: shlibpath_var=LD_LIBRARY_PATH
11073: shlibpath_overrides_runpath=yes
11074: hardcode_into_libs=yes
11075: ;;
11076:
11077: newsos6)
11078: version_type=linux # correct to gnu/linux during the next big refactor
11079: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080: shlibpath_var=LD_LIBRARY_PATH
11081: shlibpath_overrides_runpath=yes
11082: ;;
11083:
11084: *nto* | *qnx*)
11085: version_type=qnx
11086: need_lib_prefix=no
11087: need_version=no
11088: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089: soname_spec='${libname}${release}${shared_ext}$major'
11090: shlibpath_var=LD_LIBRARY_PATH
11091: shlibpath_overrides_runpath=no
11092: hardcode_into_libs=yes
11093: dynamic_linker='ldqnx.so'
11094: ;;
11095:
11096: openbsd*)
11097: version_type=sunos
11098: sys_lib_dlsearch_path_spec="/usr/lib"
11099: need_lib_prefix=no
11100: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11101: case $host_os in
11102: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11103: *) need_version=no ;;
11104: esac
11105: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107: shlibpath_var=LD_LIBRARY_PATH
11108: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11109: case $host_os in
11110: openbsd2.[89] | openbsd2.[89].*)
11111: shlibpath_overrides_runpath=no
11112: ;;
11113: *)
11114: shlibpath_overrides_runpath=yes
11115: ;;
11116: esac
11117: else
11118: shlibpath_overrides_runpath=yes
11119: fi
11120: ;;
11121:
11122: os2*)
11123: libname_spec='$name'
11124: shrext_cmds=".dll"
11125: need_lib_prefix=no
11126: library_names_spec='$libname${shared_ext} $libname.a'
11127: dynamic_linker='OS/2 ld.exe'
11128: shlibpath_var=LIBPATH
11129: ;;
11130:
11131: osf3* | osf4* | osf5*)
11132: version_type=osf
11133: need_lib_prefix=no
11134: need_version=no
11135: soname_spec='${libname}${release}${shared_ext}$major'
11136: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137: shlibpath_var=LD_LIBRARY_PATH
11138: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11139: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11140: ;;
11141:
11142: rdos*)
11143: dynamic_linker=no
11144: ;;
11145:
11146: solaris*)
11147: version_type=linux # correct to gnu/linux during the next big refactor
11148: need_lib_prefix=no
11149: need_version=no
11150: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151: soname_spec='${libname}${release}${shared_ext}$major'
11152: shlibpath_var=LD_LIBRARY_PATH
11153: shlibpath_overrides_runpath=yes
11154: hardcode_into_libs=yes
11155: # ldd complains unless libraries are executable
11156: postinstall_cmds='chmod +x $lib'
11157: ;;
11158:
11159: sunos4*)
11160: version_type=sunos
11161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11162: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11163: shlibpath_var=LD_LIBRARY_PATH
11164: shlibpath_overrides_runpath=yes
11165: if test "$with_gnu_ld" = yes; then
11166: need_lib_prefix=no
11167: fi
11168: need_version=yes
11169: ;;
11170:
11171: sysv4 | sysv4.3*)
11172: version_type=linux # correct to gnu/linux during the next big refactor
11173: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174: soname_spec='${libname}${release}${shared_ext}$major'
11175: shlibpath_var=LD_LIBRARY_PATH
11176: case $host_vendor in
11177: sni)
11178: shlibpath_overrides_runpath=no
11179: need_lib_prefix=no
11180: runpath_var=LD_RUN_PATH
11181: ;;
11182: siemens)
11183: need_lib_prefix=no
11184: ;;
11185: motorola)
11186: need_lib_prefix=no
11187: need_version=no
11188: shlibpath_overrides_runpath=no
11189: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11190: ;;
11191: esac
11192: ;;
11193:
11194: sysv4*MP*)
11195: if test -d /usr/nec ;then
11196: version_type=linux # correct to gnu/linux during the next big refactor
11197: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11198: soname_spec='$libname${shared_ext}.$major'
11199: shlibpath_var=LD_LIBRARY_PATH
11200: fi
11201: ;;
11202:
11203: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11204: version_type=freebsd-elf
11205: need_lib_prefix=no
11206: need_version=no
11207: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11208: soname_spec='${libname}${release}${shared_ext}$major'
11209: shlibpath_var=LD_LIBRARY_PATH
11210: shlibpath_overrides_runpath=yes
11211: hardcode_into_libs=yes
11212: if test "$with_gnu_ld" = yes; then
11213: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11214: else
11215: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11216: case $host_os in
11217: sco3.2v5*)
11218: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11219: ;;
11220: esac
11221: fi
11222: sys_lib_dlsearch_path_spec='/usr/lib'
11223: ;;
11224:
11225: tpf*)
11226: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11227: version_type=linux # correct to gnu/linux during the next big refactor
11228: need_lib_prefix=no
11229: need_version=no
11230: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231: shlibpath_var=LD_LIBRARY_PATH
11232: shlibpath_overrides_runpath=no
11233: hardcode_into_libs=yes
11234: ;;
11235:
11236: uts4*)
11237: version_type=linux # correct to gnu/linux during the next big refactor
11238: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239: soname_spec='${libname}${release}${shared_ext}$major'
11240: shlibpath_var=LD_LIBRARY_PATH
11241: ;;
11242:
11243: *)
11244: dynamic_linker=no
11245: ;;
11246: esac
11247: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11248: echo "${ECHO_T}$dynamic_linker" >&6
11249: test "$dynamic_linker" = no && can_build_shared=no
11250:
11251: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11252: if test "$GCC" = yes; then
11253: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11254: fi
11255:
11256: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11257: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11258: fi
11259: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11260: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11261: fi
11262:
11263:
11264:
11265:
11266:
11267:
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
11282:
11283:
11284:
11285:
11286:
11287:
11288:
11289:
11290:
11291:
11292:
11293:
11294:
11295:
11296:
11297:
11298:
11299:
11300:
11301:
11302:
11303:
11304:
11305:
11306:
11307:
11308:
11309:
11310:
11311:
11312:
11313:
11314:
11315:
11316:
11317:
11318:
11319:
11320:
11321:
11322:
11323:
11324:
11325:
11326:
11327:
11328:
11329:
11330:
11331:
11332:
11333:
11334:
11335:
11336:
11337:
11338:
11339:
11340:
11341:
11342:
11343:
11344:
11345:
11346:
11347:
11348:
11349:
11350:
11351:
11352:
11353:
11354: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11355: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11356: hardcode_action=
11357: if test -n "$hardcode_libdir_flag_spec" ||
11358: test -n "$runpath_var" ||
11359: test "X$hardcode_automatic" = "Xyes" ; then
11360:
11361: # We can hardcode non-existent directories.
11362: if test "$hardcode_direct" != no &&
11363: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11364: # have to relink, otherwise we might link with an installed library
11365: # when we should be linking with a yet-to-be-installed one
11366: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11367: test "$hardcode_minus_L" != no; then
11368: # Linking always hardcodes the temporary library directory.
11369: hardcode_action=relink
11370: else
11371: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11372: hardcode_action=immediate
11373: fi
11374: else
11375: # We cannot hardcode anything, or else we can only hardcode existing
11376: # directories.
11377: hardcode_action=unsupported
11378: fi
11379: echo "$as_me:$LINENO: result: $hardcode_action" >&5
11380: echo "${ECHO_T}$hardcode_action" >&6
11381:
11382: if test "$hardcode_action" = relink ||
11383: test "$inherit_rpath" = yes; then
11384: # Fast installation is not supported
11385: enable_fast_install=no
11386: elif test "$shlibpath_overrides_runpath" = yes ||
11387: test "$enable_shared" = no; then
11388: # Fast installation is not necessary
11389: enable_fast_install=needless
11390: fi
11391:
11392:
11393:
11394:
11395:
11396:
11397: if test "x$enable_dlopen" != xyes; then
11398: enable_dlopen=unknown
11399: enable_dlopen_self=unknown
11400: enable_dlopen_self_static=unknown
11401: else
11402: lt_cv_dlopen=no
11403: lt_cv_dlopen_libs=
11404:
11405: case $host_os in
11406: beos*)
11407: lt_cv_dlopen="load_add_on"
11408: lt_cv_dlopen_libs=
11409: lt_cv_dlopen_self=yes
11410: ;;
11411:
11412: mingw* | pw32* | cegcc*)
11413: lt_cv_dlopen="LoadLibrary"
11414: lt_cv_dlopen_libs=
11415: ;;
11416:
11417: cygwin*)
11418: lt_cv_dlopen="dlopen"
11419: lt_cv_dlopen_libs=
11420: ;;
11421:
11422: darwin*)
11423: # if libdl is installed we need to link against it
11424: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11425: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11426: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11427: echo $ECHO_N "(cached) $ECHO_C" >&6
11428: else
11429: ac_check_lib_save_LIBS=$LIBS
11430: LIBS="-ldl $LIBS"
11431: cat >conftest.$ac_ext <<_ACEOF
11432: /* confdefs.h. */
11433: _ACEOF
11434: cat confdefs.h >>conftest.$ac_ext
11435: cat >>conftest.$ac_ext <<_ACEOF
11436: /* end confdefs.h. */
11437:
11438: /* Override any gcc2 internal prototype to avoid an error. */
11439: #ifdef __cplusplus
11440: extern "C"
11441: #endif
11442: /* We use char because int might match the return type of a gcc2
11443: builtin and then its argument prototype would still apply. */
11444: char dlopen ();
11445: int
11446: main ()
11447: {
11448: dlopen ();
11449: ;
11450: return 0;
11451: }
11452: _ACEOF
11453: rm -f conftest.$ac_objext conftest$ac_exeext
11454: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11455: (eval $ac_link) 2>conftest.er1
11456: ac_status=$?
11457: grep -v '^ *+' conftest.er1 >conftest.err
11458: rm -f conftest.er1
11459: cat conftest.err >&5
11460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461: (exit $ac_status); } &&
11462: { ac_try='test -z "$ac_c_werror_flag"
11463: || test ! -s conftest.err'
11464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465: (eval $ac_try) 2>&5
11466: ac_status=$?
11467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468: (exit $ac_status); }; } &&
11469: { ac_try='test -s conftest$ac_exeext'
11470: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471: (eval $ac_try) 2>&5
11472: ac_status=$?
11473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474: (exit $ac_status); }; }; then
11475: ac_cv_lib_dl_dlopen=yes
11476: else
11477: echo "$as_me: failed program was:" >&5
11478: sed 's/^/| /' conftest.$ac_ext >&5
11479:
11480: ac_cv_lib_dl_dlopen=no
11481: fi
11482: rm -f conftest.err conftest.$ac_objext \
11483: conftest$ac_exeext conftest.$ac_ext
11484: LIBS=$ac_check_lib_save_LIBS
11485: fi
11486: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11487: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11488: if test $ac_cv_lib_dl_dlopen = yes; then
11489: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11490: else
11491:
11492: lt_cv_dlopen="dyld"
11493: lt_cv_dlopen_libs=
11494: lt_cv_dlopen_self=yes
11495:
11496: fi
11497:
11498: ;;
11499:
11500: *)
11501: echo "$as_me:$LINENO: checking for shl_load" >&5
11502: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11503: if test "${ac_cv_func_shl_load+set}" = set; then
11504: echo $ECHO_N "(cached) $ECHO_C" >&6
11505: else
11506: cat >conftest.$ac_ext <<_ACEOF
11507: /* confdefs.h. */
11508: _ACEOF
11509: cat confdefs.h >>conftest.$ac_ext
11510: cat >>conftest.$ac_ext <<_ACEOF
11511: /* end confdefs.h. */
11512: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11513: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11514: #define shl_load innocuous_shl_load
11515:
11516: /* System header to define __stub macros and hopefully few prototypes,
11517: which can conflict with char shl_load (); below.
11518: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11519: <limits.h> exists even on freestanding compilers. */
11520:
11521: #ifdef __STDC__
11522: # include <limits.h>
11523: #else
11524: # include <assert.h>
11525: #endif
11526:
11527: #undef shl_load
11528:
11529: /* Override any gcc2 internal prototype to avoid an error. */
11530: #ifdef __cplusplus
11531: extern "C"
11532: {
11533: #endif
11534: /* We use char because int might match the return type of a gcc2
11535: builtin and then its argument prototype would still apply. */
11536: char shl_load ();
11537: /* The GNU C library defines this for functions which it implements
11538: to always fail with ENOSYS. Some functions are actually named
11539: something starting with __ and the normal name is an alias. */
11540: #if defined (__stub_shl_load) || defined (__stub___shl_load)
11541: choke me
11542: #else
11543: char (*f) () = shl_load;
11544: #endif
11545: #ifdef __cplusplus
11546: }
11547: #endif
11548:
11549: int
11550: main ()
11551: {
11552: return f != shl_load;
11553: ;
11554: return 0;
11555: }
11556: _ACEOF
11557: rm -f conftest.$ac_objext conftest$ac_exeext
11558: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559: (eval $ac_link) 2>conftest.er1
11560: ac_status=$?
11561: grep -v '^ *+' conftest.er1 >conftest.err
11562: rm -f conftest.er1
11563: cat conftest.err >&5
11564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565: (exit $ac_status); } &&
11566: { ac_try='test -z "$ac_c_werror_flag"
11567: || test ! -s conftest.err'
11568: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569: (eval $ac_try) 2>&5
11570: ac_status=$?
11571: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572: (exit $ac_status); }; } &&
11573: { ac_try='test -s conftest$ac_exeext'
11574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575: (eval $ac_try) 2>&5
11576: ac_status=$?
11577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578: (exit $ac_status); }; }; then
11579: ac_cv_func_shl_load=yes
11580: else
11581: echo "$as_me: failed program was:" >&5
11582: sed 's/^/| /' conftest.$ac_ext >&5
11583:
11584: ac_cv_func_shl_load=no
11585: fi
11586: rm -f conftest.err conftest.$ac_objext \
11587: conftest$ac_exeext conftest.$ac_ext
11588: fi
11589: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11590: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11591: if test $ac_cv_func_shl_load = yes; then
11592: lt_cv_dlopen="shl_load"
11593: else
11594: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11595: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11596: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11597: echo $ECHO_N "(cached) $ECHO_C" >&6
11598: else
11599: ac_check_lib_save_LIBS=$LIBS
11600: LIBS="-ldld $LIBS"
11601: cat >conftest.$ac_ext <<_ACEOF
11602: /* confdefs.h. */
11603: _ACEOF
11604: cat confdefs.h >>conftest.$ac_ext
11605: cat >>conftest.$ac_ext <<_ACEOF
11606: /* end confdefs.h. */
11607:
11608: /* Override any gcc2 internal prototype to avoid an error. */
11609: #ifdef __cplusplus
11610: extern "C"
11611: #endif
11612: /* We use char because int might match the return type of a gcc2
11613: builtin and then its argument prototype would still apply. */
11614: char shl_load ();
11615: int
11616: main ()
11617: {
11618: shl_load ();
11619: ;
11620: return 0;
11621: }
11622: _ACEOF
11623: rm -f conftest.$ac_objext conftest$ac_exeext
11624: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625: (eval $ac_link) 2>conftest.er1
11626: ac_status=$?
11627: grep -v '^ *+' conftest.er1 >conftest.err
11628: rm -f conftest.er1
11629: cat conftest.err >&5
11630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631: (exit $ac_status); } &&
11632: { ac_try='test -z "$ac_c_werror_flag"
11633: || test ! -s conftest.err'
11634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635: (eval $ac_try) 2>&5
11636: ac_status=$?
11637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638: (exit $ac_status); }; } &&
11639: { ac_try='test -s conftest$ac_exeext'
11640: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641: (eval $ac_try) 2>&5
11642: ac_status=$?
11643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644: (exit $ac_status); }; }; then
11645: ac_cv_lib_dld_shl_load=yes
11646: else
11647: echo "$as_me: failed program was:" >&5
11648: sed 's/^/| /' conftest.$ac_ext >&5
11649:
11650: ac_cv_lib_dld_shl_load=no
11651: fi
11652: rm -f conftest.err conftest.$ac_objext \
11653: conftest$ac_exeext conftest.$ac_ext
11654: LIBS=$ac_check_lib_save_LIBS
11655: fi
11656: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11657: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11658: if test $ac_cv_lib_dld_shl_load = yes; then
11659: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11660: else
11661: echo "$as_me:$LINENO: checking for dlopen" >&5
11662: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11663: if test "${ac_cv_func_dlopen+set}" = set; then
11664: echo $ECHO_N "(cached) $ECHO_C" >&6
11665: else
11666: cat >conftest.$ac_ext <<_ACEOF
11667: /* confdefs.h. */
11668: _ACEOF
11669: cat confdefs.h >>conftest.$ac_ext
11670: cat >>conftest.$ac_ext <<_ACEOF
11671: /* end confdefs.h. */
11672: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11673: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674: #define dlopen innocuous_dlopen
11675:
11676: /* System header to define __stub macros and hopefully few prototypes,
11677: which can conflict with char dlopen (); below.
11678: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679: <limits.h> exists even on freestanding compilers. */
11680:
11681: #ifdef __STDC__
11682: # include <limits.h>
11683: #else
11684: # include <assert.h>
11685: #endif
11686:
11687: #undef dlopen
11688:
11689: /* Override any gcc2 internal prototype to avoid an error. */
11690: #ifdef __cplusplus
11691: extern "C"
11692: {
11693: #endif
11694: /* We use char because int might match the return type of a gcc2
11695: builtin and then its argument prototype would still apply. */
11696: char dlopen ();
11697: /* The GNU C library defines this for functions which it implements
11698: to always fail with ENOSYS. Some functions are actually named
11699: something starting with __ and the normal name is an alias. */
11700: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11701: choke me
11702: #else
11703: char (*f) () = dlopen;
11704: #endif
11705: #ifdef __cplusplus
11706: }
11707: #endif
11708:
11709: int
11710: main ()
11711: {
11712: return f != dlopen;
11713: ;
11714: return 0;
11715: }
11716: _ACEOF
11717: rm -f conftest.$ac_objext conftest$ac_exeext
11718: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719: (eval $ac_link) 2>conftest.er1
11720: ac_status=$?
11721: grep -v '^ *+' conftest.er1 >conftest.err
11722: rm -f conftest.er1
11723: cat conftest.err >&5
11724: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725: (exit $ac_status); } &&
11726: { ac_try='test -z "$ac_c_werror_flag"
11727: || test ! -s conftest.err'
11728: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729: (eval $ac_try) 2>&5
11730: ac_status=$?
11731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732: (exit $ac_status); }; } &&
11733: { ac_try='test -s conftest$ac_exeext'
11734: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735: (eval $ac_try) 2>&5
11736: ac_status=$?
11737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738: (exit $ac_status); }; }; then
11739: ac_cv_func_dlopen=yes
11740: else
11741: echo "$as_me: failed program was:" >&5
11742: sed 's/^/| /' conftest.$ac_ext >&5
11743:
11744: ac_cv_func_dlopen=no
11745: fi
11746: rm -f conftest.err conftest.$ac_objext \
11747: conftest$ac_exeext conftest.$ac_ext
11748: fi
11749: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11750: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11751: if test $ac_cv_func_dlopen = yes; then
11752: lt_cv_dlopen="dlopen"
11753: else
11754: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11755: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11756: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11757: echo $ECHO_N "(cached) $ECHO_C" >&6
11758: else
11759: ac_check_lib_save_LIBS=$LIBS
11760: LIBS="-ldl $LIBS"
11761: cat >conftest.$ac_ext <<_ACEOF
11762: /* confdefs.h. */
11763: _ACEOF
11764: cat confdefs.h >>conftest.$ac_ext
11765: cat >>conftest.$ac_ext <<_ACEOF
11766: /* end confdefs.h. */
11767:
11768: /* Override any gcc2 internal prototype to avoid an error. */
11769: #ifdef __cplusplus
11770: extern "C"
11771: #endif
11772: /* We use char because int might match the return type of a gcc2
11773: builtin and then its argument prototype would still apply. */
11774: char dlopen ();
11775: int
11776: main ()
11777: {
11778: dlopen ();
11779: ;
11780: return 0;
11781: }
11782: _ACEOF
11783: rm -f conftest.$ac_objext conftest$ac_exeext
11784: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785: (eval $ac_link) 2>conftest.er1
11786: ac_status=$?
11787: grep -v '^ *+' conftest.er1 >conftest.err
11788: rm -f conftest.er1
11789: cat conftest.err >&5
11790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791: (exit $ac_status); } &&
11792: { ac_try='test -z "$ac_c_werror_flag"
11793: || test ! -s conftest.err'
11794: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795: (eval $ac_try) 2>&5
11796: ac_status=$?
11797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798: (exit $ac_status); }; } &&
11799: { ac_try='test -s conftest$ac_exeext'
11800: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801: (eval $ac_try) 2>&5
11802: ac_status=$?
11803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804: (exit $ac_status); }; }; then
11805: ac_cv_lib_dl_dlopen=yes
11806: else
11807: echo "$as_me: failed program was:" >&5
11808: sed 's/^/| /' conftest.$ac_ext >&5
11809:
11810: ac_cv_lib_dl_dlopen=no
11811: fi
11812: rm -f conftest.err conftest.$ac_objext \
11813: conftest$ac_exeext conftest.$ac_ext
11814: LIBS=$ac_check_lib_save_LIBS
11815: fi
11816: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11817: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11818: if test $ac_cv_lib_dl_dlopen = yes; then
11819: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11820: else
11821: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11822: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11823: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11824: echo $ECHO_N "(cached) $ECHO_C" >&6
11825: else
11826: ac_check_lib_save_LIBS=$LIBS
11827: LIBS="-lsvld $LIBS"
11828: cat >conftest.$ac_ext <<_ACEOF
11829: /* confdefs.h. */
11830: _ACEOF
11831: cat confdefs.h >>conftest.$ac_ext
11832: cat >>conftest.$ac_ext <<_ACEOF
11833: /* end confdefs.h. */
11834:
11835: /* Override any gcc2 internal prototype to avoid an error. */
11836: #ifdef __cplusplus
11837: extern "C"
11838: #endif
11839: /* We use char because int might match the return type of a gcc2
11840: builtin and then its argument prototype would still apply. */
11841: char dlopen ();
11842: int
11843: main ()
11844: {
11845: dlopen ();
11846: ;
11847: return 0;
11848: }
11849: _ACEOF
11850: rm -f conftest.$ac_objext conftest$ac_exeext
11851: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852: (eval $ac_link) 2>conftest.er1
11853: ac_status=$?
11854: grep -v '^ *+' conftest.er1 >conftest.err
11855: rm -f conftest.er1
11856: cat conftest.err >&5
11857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858: (exit $ac_status); } &&
11859: { ac_try='test -z "$ac_c_werror_flag"
11860: || test ! -s conftest.err'
11861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862: (eval $ac_try) 2>&5
11863: ac_status=$?
11864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865: (exit $ac_status); }; } &&
11866: { ac_try='test -s conftest$ac_exeext'
11867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868: (eval $ac_try) 2>&5
11869: ac_status=$?
11870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871: (exit $ac_status); }; }; then
11872: ac_cv_lib_svld_dlopen=yes
11873: else
11874: echo "$as_me: failed program was:" >&5
11875: sed 's/^/| /' conftest.$ac_ext >&5
11876:
11877: ac_cv_lib_svld_dlopen=no
11878: fi
11879: rm -f conftest.err conftest.$ac_objext \
11880: conftest$ac_exeext conftest.$ac_ext
11881: LIBS=$ac_check_lib_save_LIBS
11882: fi
11883: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11884: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11885: if test $ac_cv_lib_svld_dlopen = yes; then
11886: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11887: else
11888: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11889: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11890: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11891: echo $ECHO_N "(cached) $ECHO_C" >&6
11892: else
11893: ac_check_lib_save_LIBS=$LIBS
11894: LIBS="-ldld $LIBS"
11895: cat >conftest.$ac_ext <<_ACEOF
11896: /* confdefs.h. */
11897: _ACEOF
11898: cat confdefs.h >>conftest.$ac_ext
11899: cat >>conftest.$ac_ext <<_ACEOF
11900: /* end confdefs.h. */
11901:
11902: /* Override any gcc2 internal prototype to avoid an error. */
11903: #ifdef __cplusplus
11904: extern "C"
11905: #endif
11906: /* We use char because int might match the return type of a gcc2
11907: builtin and then its argument prototype would still apply. */
11908: char dld_link ();
11909: int
11910: main ()
11911: {
11912: dld_link ();
11913: ;
11914: return 0;
11915: }
11916: _ACEOF
11917: rm -f conftest.$ac_objext conftest$ac_exeext
11918: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919: (eval $ac_link) 2>conftest.er1
11920: ac_status=$?
11921: grep -v '^ *+' conftest.er1 >conftest.err
11922: rm -f conftest.er1
11923: cat conftest.err >&5
11924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925: (exit $ac_status); } &&
11926: { ac_try='test -z "$ac_c_werror_flag"
11927: || test ! -s conftest.err'
11928: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929: (eval $ac_try) 2>&5
11930: ac_status=$?
11931: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932: (exit $ac_status); }; } &&
11933: { ac_try='test -s conftest$ac_exeext'
11934: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935: (eval $ac_try) 2>&5
11936: ac_status=$?
11937: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938: (exit $ac_status); }; }; then
11939: ac_cv_lib_dld_dld_link=yes
11940: else
11941: echo "$as_me: failed program was:" >&5
11942: sed 's/^/| /' conftest.$ac_ext >&5
11943:
11944: ac_cv_lib_dld_dld_link=no
11945: fi
11946: rm -f conftest.err conftest.$ac_objext \
11947: conftest$ac_exeext conftest.$ac_ext
11948: LIBS=$ac_check_lib_save_LIBS
11949: fi
11950: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11951: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11952: if test $ac_cv_lib_dld_dld_link = yes; then
11953: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11954: fi
11955:
11956:
11957: fi
11958:
11959:
11960: fi
11961:
11962:
11963: fi
11964:
11965:
11966: fi
11967:
11968:
11969: fi
11970:
11971: ;;
11972: esac
11973:
11974: if test "x$lt_cv_dlopen" != xno; then
11975: enable_dlopen=yes
11976: else
11977: enable_dlopen=no
11978: fi
11979:
11980: case $lt_cv_dlopen in
11981: dlopen)
11982: save_CPPFLAGS="$CPPFLAGS"
11983: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11984:
11985: save_LDFLAGS="$LDFLAGS"
11986: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11987:
11988: save_LIBS="$LIBS"
11989: LIBS="$lt_cv_dlopen_libs $LIBS"
11990:
11991: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11992: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11993: if test "${lt_cv_dlopen_self+set}" = set; then
11994: echo $ECHO_N "(cached) $ECHO_C" >&6
11995: else
11996: if test "$cross_compiling" = yes; then :
11997: lt_cv_dlopen_self=cross
11998: else
11999: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12000: lt_status=$lt_dlunknown
12001: cat > conftest.$ac_ext <<_LT_EOF
12002: #line $LINENO "configure"
12003: #include "confdefs.h"
12004:
12005: #if HAVE_DLFCN_H
12006: #include <dlfcn.h>
12007: #endif
12008:
12009: #include <stdio.h>
12010:
12011: #ifdef RTLD_GLOBAL
12012: # define LT_DLGLOBAL RTLD_GLOBAL
12013: #else
12014: # ifdef DL_GLOBAL
12015: # define LT_DLGLOBAL DL_GLOBAL
12016: # else
12017: # define LT_DLGLOBAL 0
12018: # endif
12019: #endif
12020:
12021: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12022: find out it does not work in some platform. */
12023: #ifndef LT_DLLAZY_OR_NOW
12024: # ifdef RTLD_LAZY
12025: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12026: # else
12027: # ifdef DL_LAZY
12028: # define LT_DLLAZY_OR_NOW DL_LAZY
12029: # else
12030: # ifdef RTLD_NOW
12031: # define LT_DLLAZY_OR_NOW RTLD_NOW
12032: # else
12033: # ifdef DL_NOW
12034: # define LT_DLLAZY_OR_NOW DL_NOW
12035: # else
12036: # define LT_DLLAZY_OR_NOW 0
12037: # endif
12038: # endif
12039: # endif
12040: # endif
12041: #endif
12042:
12043: /* When -fvisbility=hidden is used, assume the code has been annotated
12044: correspondingly for the symbols needed. */
12045: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12046: int fnord () __attribute__((visibility("default")));
12047: #endif
12048:
12049: int fnord () { return 42; }
12050: int main ()
12051: {
12052: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12053: int status = $lt_dlunknown;
12054:
12055: if (self)
12056: {
12057: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12058: else
12059: {
12060: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12061: else puts (dlerror ());
12062: }
12063: /* dlclose (self); */
12064: }
12065: else
12066: puts (dlerror ());
12067:
12068: return status;
12069: }
12070: _LT_EOF
12071: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072: (eval $ac_link) 2>&5
12073: ac_status=$?
12074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12076: (./conftest; exit; ) >&5 2>/dev/null
12077: lt_status=$?
12078: case x$lt_status in
12079: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12080: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12081: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12082: esac
12083: else :
12084: # compilation failed
12085: lt_cv_dlopen_self=no
12086: fi
12087: fi
12088: rm -fr conftest*
12089:
12090:
12091: fi
12092: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12093: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12094:
12095: if test "x$lt_cv_dlopen_self" = xyes; then
12096: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12097: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12098: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12099: if test "${lt_cv_dlopen_self_static+set}" = set; then
12100: echo $ECHO_N "(cached) $ECHO_C" >&6
12101: else
12102: if test "$cross_compiling" = yes; then :
12103: lt_cv_dlopen_self_static=cross
12104: else
12105: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12106: lt_status=$lt_dlunknown
12107: cat > conftest.$ac_ext <<_LT_EOF
12108: #line $LINENO "configure"
12109: #include "confdefs.h"
12110:
12111: #if HAVE_DLFCN_H
12112: #include <dlfcn.h>
12113: #endif
12114:
12115: #include <stdio.h>
12116:
12117: #ifdef RTLD_GLOBAL
12118: # define LT_DLGLOBAL RTLD_GLOBAL
12119: #else
12120: # ifdef DL_GLOBAL
12121: # define LT_DLGLOBAL DL_GLOBAL
12122: # else
12123: # define LT_DLGLOBAL 0
12124: # endif
12125: #endif
12126:
12127: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12128: find out it does not work in some platform. */
12129: #ifndef LT_DLLAZY_OR_NOW
12130: # ifdef RTLD_LAZY
12131: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12132: # else
12133: # ifdef DL_LAZY
12134: # define LT_DLLAZY_OR_NOW DL_LAZY
12135: # else
12136: # ifdef RTLD_NOW
12137: # define LT_DLLAZY_OR_NOW RTLD_NOW
12138: # else
12139: # ifdef DL_NOW
12140: # define LT_DLLAZY_OR_NOW DL_NOW
12141: # else
12142: # define LT_DLLAZY_OR_NOW 0
12143: # endif
12144: # endif
12145: # endif
12146: # endif
12147: #endif
12148:
12149: /* When -fvisbility=hidden is used, assume the code has been annotated
12150: correspondingly for the symbols needed. */
12151: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12152: int fnord () __attribute__((visibility("default")));
12153: #endif
12154:
12155: int fnord () { return 42; }
12156: int main ()
12157: {
12158: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12159: int status = $lt_dlunknown;
12160:
12161: if (self)
12162: {
12163: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12164: else
12165: {
12166: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12167: else puts (dlerror ());
12168: }
12169: /* dlclose (self); */
12170: }
12171: else
12172: puts (dlerror ());
12173:
12174: return status;
12175: }
12176: _LT_EOF
12177: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178: (eval $ac_link) 2>&5
12179: ac_status=$?
12180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12182: (./conftest; exit; ) >&5 2>/dev/null
12183: lt_status=$?
12184: case x$lt_status in
12185: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12186: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12187: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12188: esac
12189: else :
12190: # compilation failed
12191: lt_cv_dlopen_self_static=no
12192: fi
12193: fi
12194: rm -fr conftest*
12195:
12196:
12197: fi
12198: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12199: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12200: fi
12201:
12202: CPPFLAGS="$save_CPPFLAGS"
12203: LDFLAGS="$save_LDFLAGS"
12204: LIBS="$save_LIBS"
12205: ;;
12206: esac
12207:
12208: case $lt_cv_dlopen_self in
12209: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12210: *) enable_dlopen_self=unknown ;;
12211: esac
12212:
12213: case $lt_cv_dlopen_self_static in
12214: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12215: *) enable_dlopen_self_static=unknown ;;
12216: esac
12217: fi
12218:
12219:
12220:
12221:
12222:
12223:
12224:
12225:
12226:
12227:
12228:
12229:
12230:
12231:
12232:
12233:
12234:
12235: striplib=
12236: old_striplib=
12237: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12238: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12239: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12240: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12241: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12242: echo "$as_me:$LINENO: result: yes" >&5
12243: echo "${ECHO_T}yes" >&6
12244: else
12245: # FIXME - insert some real tests, host_os isn't really good enough
12246: case $host_os in
12247: darwin*)
12248: if test -n "$STRIP" ; then
12249: striplib="$STRIP -x"
12250: old_striplib="$STRIP -S"
12251: echo "$as_me:$LINENO: result: yes" >&5
12252: echo "${ECHO_T}yes" >&6
12253: else
12254: echo "$as_me:$LINENO: result: no" >&5
12255: echo "${ECHO_T}no" >&6
12256: fi
12257: ;;
12258: *)
12259: echo "$as_me:$LINENO: result: no" >&5
12260: echo "${ECHO_T}no" >&6
12261: ;;
12262: esac
12263: fi
12264:
12265:
12266:
12267:
12268:
12269:
12270:
12271:
12272:
12273:
12274:
12275:
12276: # Report which library types will actually be built
12277: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12278: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12279: echo "$as_me:$LINENO: result: $can_build_shared" >&5
12280: echo "${ECHO_T}$can_build_shared" >&6
12281:
12282: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12283: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12284: test "$can_build_shared" = "no" && enable_shared=no
12285:
12286: # On AIX, shared libraries and static libraries use the same namespace, and
12287: # are all built from PIC.
12288: case $host_os in
12289: aix3*)
12290: test "$enable_shared" = yes && enable_static=no
12291: if test -n "$RANLIB"; then
12292: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12293: postinstall_cmds='$RANLIB $lib'
12294: fi
12295: ;;
12296:
12297: aix[4-9]*)
12298: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12299: test "$enable_shared" = yes && enable_static=no
12300: fi
12301: ;;
12302: esac
12303: echo "$as_me:$LINENO: result: $enable_shared" >&5
12304: echo "${ECHO_T}$enable_shared" >&6
12305:
12306: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12307: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12308: # Make sure either enable_shared or enable_static is yes.
12309: test "$enable_shared" = yes || enable_static=yes
12310: echo "$as_me:$LINENO: result: $enable_static" >&5
12311: echo "${ECHO_T}$enable_static" >&6
12312:
12313:
12314:
12315:
12316: fi
12317: ac_ext=c
12318: ac_cpp='$CPP $CPPFLAGS'
12319: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322:
12323: CC="$lt_save_CC"
12324:
12325: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12326: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12327: (test "X$CXX" != "Xg++"))) ; then
12328: ac_ext=cc
12329: ac_cpp='$CXXCPP $CPPFLAGS'
12330: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12333: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12334: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12335: if test -z "$CXXCPP"; then
12336: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12337: echo $ECHO_N "(cached) $ECHO_C" >&6
12338: else
12339: # Double quotes because CXXCPP needs to be expanded
12340: for CXXCPP in "$CXX -E" "/lib/cpp"
12341: do
12342: ac_preproc_ok=false
12343: for ac_cxx_preproc_warn_flag in '' yes
12344: do
12345: # Use a header file that comes with gcc, so configuring glibc
12346: # with a fresh cross-compiler works.
12347: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12348: # <limits.h> exists even on freestanding compilers.
12349: # On the NeXT, cc -E runs the code through the compiler's parser,
12350: # not just through cpp. "Syntax error" is here to catch this case.
12351: cat >conftest.$ac_ext <<_ACEOF
12352: /* confdefs.h. */
12353: _ACEOF
12354: cat confdefs.h >>conftest.$ac_ext
12355: cat >>conftest.$ac_ext <<_ACEOF
12356: /* end confdefs.h. */
12357: #ifdef __STDC__
12358: # include <limits.h>
12359: #else
12360: # include <assert.h>
12361: #endif
12362: Syntax error
12363: _ACEOF
12364: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12365: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12366: ac_status=$?
12367: grep -v '^ *+' conftest.er1 >conftest.err
12368: rm -f conftest.er1
12369: cat conftest.err >&5
12370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371: (exit $ac_status); } >/dev/null; then
12372: if test -s conftest.err; then
12373: ac_cpp_err=$ac_cxx_preproc_warn_flag
12374: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12375: else
12376: ac_cpp_err=
12377: fi
12378: else
12379: ac_cpp_err=yes
12380: fi
12381: if test -z "$ac_cpp_err"; then
12382: :
12383: else
12384: echo "$as_me: failed program was:" >&5
12385: sed 's/^/| /' conftest.$ac_ext >&5
12386:
12387: # Broken: fails on valid input.
12388: continue
12389: fi
12390: rm -f conftest.err conftest.$ac_ext
12391:
12392: # OK, works on sane cases. Now check whether non-existent headers
12393: # can be detected and how.
12394: cat >conftest.$ac_ext <<_ACEOF
12395: /* confdefs.h. */
12396: _ACEOF
12397: cat confdefs.h >>conftest.$ac_ext
12398: cat >>conftest.$ac_ext <<_ACEOF
12399: /* end confdefs.h. */
12400: #include <ac_nonexistent.h>
12401: _ACEOF
12402: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12403: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12404: ac_status=$?
12405: grep -v '^ *+' conftest.er1 >conftest.err
12406: rm -f conftest.er1
12407: cat conftest.err >&5
12408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409: (exit $ac_status); } >/dev/null; then
12410: if test -s conftest.err; then
12411: ac_cpp_err=$ac_cxx_preproc_warn_flag
12412: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12413: else
12414: ac_cpp_err=
12415: fi
12416: else
12417: ac_cpp_err=yes
12418: fi
12419: if test -z "$ac_cpp_err"; then
12420: # Broken: success on invalid input.
12421: continue
12422: else
12423: echo "$as_me: failed program was:" >&5
12424: sed 's/^/| /' conftest.$ac_ext >&5
12425:
12426: # Passes both tests.
12427: ac_preproc_ok=:
12428: break
12429: fi
12430: rm -f conftest.err conftest.$ac_ext
12431:
12432: done
12433: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12434: rm -f conftest.err conftest.$ac_ext
12435: if $ac_preproc_ok; then
12436: break
12437: fi
12438:
12439: done
12440: ac_cv_prog_CXXCPP=$CXXCPP
12441:
12442: fi
12443: CXXCPP=$ac_cv_prog_CXXCPP
12444: else
12445: ac_cv_prog_CXXCPP=$CXXCPP
12446: fi
12447: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12448: echo "${ECHO_T}$CXXCPP" >&6
12449: ac_preproc_ok=false
12450: for ac_cxx_preproc_warn_flag in '' yes
12451: do
12452: # Use a header file that comes with gcc, so configuring glibc
12453: # with a fresh cross-compiler works.
12454: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455: # <limits.h> exists even on freestanding compilers.
12456: # On the NeXT, cc -E runs the code through the compiler's parser,
12457: # not just through cpp. "Syntax error" is here to catch this case.
12458: cat >conftest.$ac_ext <<_ACEOF
12459: /* confdefs.h. */
12460: _ACEOF
12461: cat confdefs.h >>conftest.$ac_ext
12462: cat >>conftest.$ac_ext <<_ACEOF
12463: /* end confdefs.h. */
12464: #ifdef __STDC__
12465: # include <limits.h>
12466: #else
12467: # include <assert.h>
12468: #endif
12469: Syntax error
12470: _ACEOF
12471: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12472: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12473: ac_status=$?
12474: grep -v '^ *+' conftest.er1 >conftest.err
12475: rm -f conftest.er1
12476: cat conftest.err >&5
12477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478: (exit $ac_status); } >/dev/null; then
12479: if test -s conftest.err; then
12480: ac_cpp_err=$ac_cxx_preproc_warn_flag
12481: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12482: else
12483: ac_cpp_err=
12484: fi
12485: else
12486: ac_cpp_err=yes
12487: fi
12488: if test -z "$ac_cpp_err"; then
12489: :
12490: else
12491: echo "$as_me: failed program was:" >&5
12492: sed 's/^/| /' conftest.$ac_ext >&5
12493:
12494: # Broken: fails on valid input.
12495: continue
12496: fi
12497: rm -f conftest.err conftest.$ac_ext
12498:
12499: # OK, works on sane cases. Now check whether non-existent headers
12500: # can be detected and how.
12501: cat >conftest.$ac_ext <<_ACEOF
12502: /* confdefs.h. */
12503: _ACEOF
12504: cat confdefs.h >>conftest.$ac_ext
12505: cat >>conftest.$ac_ext <<_ACEOF
12506: /* end confdefs.h. */
12507: #include <ac_nonexistent.h>
12508: _ACEOF
12509: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12510: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12511: ac_status=$?
12512: grep -v '^ *+' conftest.er1 >conftest.err
12513: rm -f conftest.er1
12514: cat conftest.err >&5
12515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516: (exit $ac_status); } >/dev/null; then
12517: if test -s conftest.err; then
12518: ac_cpp_err=$ac_cxx_preproc_warn_flag
12519: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12520: else
12521: ac_cpp_err=
12522: fi
12523: else
12524: ac_cpp_err=yes
12525: fi
12526: if test -z "$ac_cpp_err"; then
12527: # Broken: success on invalid input.
12528: continue
12529: else
12530: echo "$as_me: failed program was:" >&5
12531: sed 's/^/| /' conftest.$ac_ext >&5
12532:
12533: # Passes both tests.
12534: ac_preproc_ok=:
12535: break
12536: fi
12537: rm -f conftest.err conftest.$ac_ext
12538:
12539: done
12540: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12541: rm -f conftest.err conftest.$ac_ext
12542: if $ac_preproc_ok; then
12543: :
12544: else
12545: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12546: See \`config.log' for more details." >&5
12547: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12548: See \`config.log' for more details." >&2;}
12549: { (exit 1); exit 1; }; }
12550: fi
12551:
12552: ac_ext=c
12553: ac_cpp='$CPP $CPPFLAGS'
12554: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12555: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12556: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12557:
12558: else
12559: _lt_caught_CXX_error=yes
12560: fi
12561:
12562: ac_ext=cc
12563: ac_cpp='$CXXCPP $CPPFLAGS'
12564: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12567:
12568: archive_cmds_need_lc_CXX=no
12569: allow_undefined_flag_CXX=
12570: always_export_symbols_CXX=no
12571: archive_expsym_cmds_CXX=
12572: compiler_needs_object_CXX=no
12573: export_dynamic_flag_spec_CXX=
12574: hardcode_direct_CXX=no
12575: hardcode_direct_absolute_CXX=no
12576: hardcode_libdir_flag_spec_CXX=
12577: hardcode_libdir_separator_CXX=
12578: hardcode_minus_L_CXX=no
12579: hardcode_shlibpath_var_CXX=unsupported
12580: hardcode_automatic_CXX=no
12581: inherit_rpath_CXX=no
12582: module_cmds_CXX=
12583: module_expsym_cmds_CXX=
12584: link_all_deplibs_CXX=unknown
12585: old_archive_cmds_CXX=$old_archive_cmds
12586: reload_flag_CXX=$reload_flag
12587: reload_cmds_CXX=$reload_cmds
12588: no_undefined_flag_CXX=
12589: whole_archive_flag_spec_CXX=
12590: enable_shared_with_static_runtimes_CXX=no
12591:
12592: # Source file extension for C++ test sources.
12593: ac_ext=cpp
12594:
12595: # Object file extension for compiled C++ test sources.
12596: objext=o
12597: objext_CXX=$objext
12598:
12599: # No sense in running all these tests if we already determined that
12600: # the CXX compiler isn't working. Some variables (like enable_shared)
12601: # are currently assumed to apply to all compilers on this platform,
12602: # and will be corrupted by setting them based on a non-working compiler.
12603: if test "$_lt_caught_CXX_error" != yes; then
12604: # Code to be used in simple compile tests
12605: lt_simple_compile_test_code="int some_variable = 0;"
12606:
12607: # Code to be used in simple link tests
12608: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12609:
12610: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12611:
12612:
12613:
12614:
12615:
12616:
12617: # If no C compiler was specified, use CC.
12618: LTCC=${LTCC-"$CC"}
12619:
12620: # If no C compiler flags were specified, use CFLAGS.
12621: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12622:
12623: # Allow CC to be a program name with arguments.
12624: compiler=$CC
12625:
12626:
12627: # save warnings/boilerplate of simple test code
12628: ac_outfile=conftest.$ac_objext
12629: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12630: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12631: _lt_compiler_boilerplate=`cat conftest.err`
12632: $RM conftest*
12633:
12634: ac_outfile=conftest.$ac_objext
12635: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12636: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12637: _lt_linker_boilerplate=`cat conftest.err`
12638: $RM -r conftest*
12639:
12640:
12641: # Allow CC to be a program name with arguments.
12642: lt_save_CC=$CC
12643: lt_save_CFLAGS=$CFLAGS
12644: lt_save_LD=$LD
12645: lt_save_GCC=$GCC
12646: GCC=$GXX
12647: lt_save_with_gnu_ld=$with_gnu_ld
12648: lt_save_path_LD=$lt_cv_path_LD
12649: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12650: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12651: else
12652: $as_unset lt_cv_prog_gnu_ld
12653: fi
12654: if test -n "${lt_cv_path_LDCXX+set}"; then
12655: lt_cv_path_LD=$lt_cv_path_LDCXX
12656: else
12657: $as_unset lt_cv_path_LD
12658: fi
12659: test -z "${LDCXX+set}" || LD=$LDCXX
12660: CC=${CXX-"c++"}
12661: CFLAGS=$CXXFLAGS
12662: compiler=$CC
12663: compiler_CXX=$CC
12664: for cc_temp in $compiler""; do
12665: case $cc_temp in
12666: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12667: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12668: \-*) ;;
12669: *) break;;
12670: esac
12671: done
12672: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12673:
12674:
12675: if test -n "$compiler"; then
12676: # We don't want -fno-exception when compiling C++ code, so set the
12677: # no_builtin_flag separately
12678: if test "$GXX" = yes; then
12679: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12680: else
12681: lt_prog_compiler_no_builtin_flag_CXX=
12682: fi
12683:
12684: if test "$GXX" = yes; then
12685: # Set up default GNU C++ configuration
12686:
12687:
12688:
12689: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12690: if test "${with_gnu_ld+set}" = set; then
12691: withval="$with_gnu_ld"
12692: test "$withval" = no || with_gnu_ld=yes
12693: else
12694: with_gnu_ld=no
12695: fi;
12696: ac_prog=ld
12697: if test "$GCC" = yes; then
12698: # Check if gcc -print-prog-name=ld gives a path.
12699: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12700: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12701: case $host in
12702: *-*-mingw*)
12703: # gcc leaves a trailing carriage return which upsets mingw
12704: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12705: *)
12706: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12707: esac
12708: case $ac_prog in
12709: # Accept absolute paths.
12710: [\\/]* | ?:[\\/]*)
12711: re_direlt='/[^/][^/]*/\.\./'
12712: # Canonicalize the pathname of ld
12713: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12714: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12715: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12716: done
12717: test -z "$LD" && LD="$ac_prog"
12718: ;;
12719: "")
12720: # If it fails, then pretend we aren't using GCC.
12721: ac_prog=ld
12722: ;;
12723: *)
12724: # If it is relative, then search for the first ld in PATH.
12725: with_gnu_ld=unknown
12726: ;;
12727: esac
12728: elif test "$with_gnu_ld" = yes; then
12729: echo "$as_me:$LINENO: checking for GNU ld" >&5
12730: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12731: else
12732: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12733: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12734: fi
12735: if test "${lt_cv_path_LD+set}" = set; then
12736: echo $ECHO_N "(cached) $ECHO_C" >&6
12737: else
12738: if test -z "$LD"; then
12739: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12740: for ac_dir in $PATH; do
12741: IFS="$lt_save_ifs"
12742: test -z "$ac_dir" && ac_dir=.
12743: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12744: lt_cv_path_LD="$ac_dir/$ac_prog"
12745: # Check to see if the program is GNU ld. I'd rather use --version,
12746: # but apparently some variants of GNU ld only accept -v.
12747: # Break only if it was the GNU/non-GNU ld that we prefer.
12748: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12749: *GNU* | *'with BFD'*)
12750: test "$with_gnu_ld" != no && break
12751: ;;
12752: *)
12753: test "$with_gnu_ld" != yes && break
12754: ;;
12755: esac
12756: fi
12757: done
12758: IFS="$lt_save_ifs"
12759: else
12760: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12761: fi
12762: fi
12763:
12764: LD="$lt_cv_path_LD"
12765: if test -n "$LD"; then
12766: echo "$as_me:$LINENO: result: $LD" >&5
12767: echo "${ECHO_T}$LD" >&6
12768: else
12769: echo "$as_me:$LINENO: result: no" >&5
12770: echo "${ECHO_T}no" >&6
12771: fi
12772: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12773: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12774: { (exit 1); exit 1; }; }
12775: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12776: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12777: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12778: echo $ECHO_N "(cached) $ECHO_C" >&6
12779: else
12780: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12781: case `$LD -v 2>&1 </dev/null` in
12782: *GNU* | *'with BFD'*)
12783: lt_cv_prog_gnu_ld=yes
12784: ;;
12785: *)
12786: lt_cv_prog_gnu_ld=no
12787: ;;
12788: esac
12789: fi
12790: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12791: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12792: with_gnu_ld=$lt_cv_prog_gnu_ld
12793:
12794:
12795:
12796:
12797:
12798:
12799:
12800: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12801: # archiving commands below assume that GNU ld is being used.
12802: if test "$with_gnu_ld" = yes; then
12803: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804: 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'
12805:
12806: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12807: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12808:
12809: # If archive_cmds runs LD, not CC, wlarc should be empty
12810: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12811: # investigate it a little bit more. (MM)
12812: wlarc='${wl}'
12813:
12814: # ancient GNU ld didn't support --whole-archive et. al.
12815: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12816: $GREP 'no-whole-archive' > /dev/null; then
12817: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12818: else
12819: whole_archive_flag_spec_CXX=
12820: fi
12821: else
12822: with_gnu_ld=no
12823: wlarc=
12824:
12825: # A generic and very simple default shared library creation
12826: # command for GNU C++ for the case where it uses the native
12827: # linker, instead of GNU ld. If possible, this setting should
12828: # overridden to take advantage of the native linker features on
12829: # the platform it is being used on.
12830: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12831: fi
12832:
12833: # Commands to make compiler produce verbose output that lists
12834: # what "hidden" libraries, object files and flags are used when
12835: # linking a shared library.
12836: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12837:
12838: else
12839: GXX=no
12840: with_gnu_ld=no
12841: wlarc=
12842: fi
12843:
12844: # PORTME: fill in a description of your system's C++ link characteristics
12845: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12846: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12847: ld_shlibs_CXX=yes
12848: case $host_os in
12849: aix3*)
12850: # FIXME: insert proper C++ library support
12851: ld_shlibs_CXX=no
12852: ;;
12853: aix[4-9]*)
12854: if test "$host_cpu" = ia64; then
12855: # On IA64, the linker does run time linking by default, so we don't
12856: # have to do anything special.
12857: aix_use_runtimelinking=no
12858: exp_sym_flag='-Bexport'
12859: no_entry_flag=""
12860: else
12861: aix_use_runtimelinking=no
12862:
12863: # Test if we are trying to use run time linking or normal
12864: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12865: # need to do runtime linking.
12866: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12867: for ld_flag in $LDFLAGS; do
12868: case $ld_flag in
12869: *-brtl*)
12870: aix_use_runtimelinking=yes
12871: break
12872: ;;
12873: esac
12874: done
12875: ;;
12876: esac
12877:
12878: exp_sym_flag='-bexport'
12879: no_entry_flag='-bnoentry'
12880: fi
12881:
12882: # When large executables or shared objects are built, AIX ld can
12883: # have problems creating the table of contents. If linking a library
12884: # or program results in "error TOC overflow" add -mminimal-toc to
12885: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12886: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12887:
12888: archive_cmds_CXX=''
12889: hardcode_direct_CXX=yes
12890: hardcode_direct_absolute_CXX=yes
12891: hardcode_libdir_separator_CXX=':'
12892: link_all_deplibs_CXX=yes
12893: file_list_spec_CXX='${wl}-f,'
12894:
12895: if test "$GXX" = yes; then
12896: case $host_os in aix4.[012]|aix4.[012].*)
12897: # We only want to do this on AIX 4.2 and lower, the check
12898: # below for broken collect2 doesn't work under 4.3+
12899: collect2name=`${CC} -print-prog-name=collect2`
12900: if test -f "$collect2name" &&
12901: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12902: then
12903: # We have reworked collect2
12904: :
12905: else
12906: # We have old collect2
12907: hardcode_direct_CXX=unsupported
12908: # It fails to find uninstalled libraries when the uninstalled
12909: # path is not listed in the libpath. Setting hardcode_minus_L
12910: # to unsupported forces relinking
12911: hardcode_minus_L_CXX=yes
12912: hardcode_libdir_flag_spec_CXX='-L$libdir'
12913: hardcode_libdir_separator_CXX=
12914: fi
12915: esac
12916: shared_flag='-shared'
12917: if test "$aix_use_runtimelinking" = yes; then
12918: shared_flag="$shared_flag "'${wl}-G'
12919: fi
12920: else
12921: # not using gcc
12922: if test "$host_cpu" = ia64; then
12923: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12924: # chokes on -Wl,-G. The following line is correct:
12925: shared_flag='-G'
12926: else
12927: if test "$aix_use_runtimelinking" = yes; then
12928: shared_flag='${wl}-G'
12929: else
12930: shared_flag='${wl}-bM:SRE'
12931: fi
12932: fi
12933: fi
12934:
12935: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12936: # It seems that -bexpall does not export symbols beginning with
12937: # underscore (_), so it is better to generate a list of symbols to
12938: # export.
12939: always_export_symbols_CXX=yes
12940: if test "$aix_use_runtimelinking" = yes; then
12941: # Warning - without using the other runtime loading flags (-brtl),
12942: # -berok will link without error, but may produce a broken library.
12943: allow_undefined_flag_CXX='-berok'
12944: # Determine the default libpath from the value encoded in an empty
12945: # executable.
12946: if test "${lt_cv_aix_libpath+set}" = set; then
12947: aix_libpath=$lt_cv_aix_libpath
12948: else
12949: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
12950: echo $ECHO_N "(cached) $ECHO_C" >&6
12951: else
12952: cat >conftest.$ac_ext <<_ACEOF
12953: /* confdefs.h. */
12954: _ACEOF
12955: cat confdefs.h >>conftest.$ac_ext
12956: cat >>conftest.$ac_ext <<_ACEOF
12957: /* end confdefs.h. */
12958:
12959: int
12960: main ()
12961: {
12962:
12963: ;
12964: return 0;
12965: }
12966: _ACEOF
12967: rm -f conftest.$ac_objext conftest$ac_exeext
12968: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12969: (eval $ac_link) 2>conftest.er1
12970: ac_status=$?
12971: grep -v '^ *+' conftest.er1 >conftest.err
12972: rm -f conftest.er1
12973: cat conftest.err >&5
12974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975: (exit $ac_status); } &&
12976: { ac_try='test -z "$ac_cxx_werror_flag"
12977: || test ! -s conftest.err'
12978: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979: (eval $ac_try) 2>&5
12980: ac_status=$?
12981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982: (exit $ac_status); }; } &&
12983: { ac_try='test -s conftest$ac_exeext'
12984: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985: (eval $ac_try) 2>&5
12986: ac_status=$?
12987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988: (exit $ac_status); }; }; then
12989:
12990: lt_aix_libpath_sed='
12991: /Import File Strings/,/^$/ {
12992: /^0/ {
12993: s/^0 *\([^ ]*\) *$/\1/
12994: p
12995: }
12996: }'
12997: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998: # Check for a 64-bit object if we didn't find anything.
12999: if test -z "$lt_cv_aix_libpath__CXX"; then
13000: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001: fi
13002: else
13003: echo "$as_me: failed program was:" >&5
13004: sed 's/^/| /' conftest.$ac_ext >&5
13005:
13006: fi
13007: rm -f conftest.err conftest.$ac_objext \
13008: conftest$ac_exeext conftest.$ac_ext
13009: if test -z "$lt_cv_aix_libpath__CXX"; then
13010: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13011: fi
13012:
13013: fi
13014:
13015: aix_libpath=$lt_cv_aix_libpath__CXX
13016: fi
13017:
13018: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13019:
13020: 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"
13021: else
13022: if test "$host_cpu" = ia64; then
13023: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13024: allow_undefined_flag_CXX="-z nodefs"
13025: 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"
13026: else
13027: # Determine the default libpath from the value encoded in an
13028: # empty executable.
13029: if test "${lt_cv_aix_libpath+set}" = set; then
13030: aix_libpath=$lt_cv_aix_libpath
13031: else
13032: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13033: echo $ECHO_N "(cached) $ECHO_C" >&6
13034: else
13035: cat >conftest.$ac_ext <<_ACEOF
13036: /* confdefs.h. */
13037: _ACEOF
13038: cat confdefs.h >>conftest.$ac_ext
13039: cat >>conftest.$ac_ext <<_ACEOF
13040: /* end confdefs.h. */
13041:
13042: int
13043: main ()
13044: {
13045:
13046: ;
13047: return 0;
13048: }
13049: _ACEOF
13050: rm -f conftest.$ac_objext conftest$ac_exeext
13051: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052: (eval $ac_link) 2>conftest.er1
13053: ac_status=$?
13054: grep -v '^ *+' conftest.er1 >conftest.err
13055: rm -f conftest.er1
13056: cat conftest.err >&5
13057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058: (exit $ac_status); } &&
13059: { ac_try='test -z "$ac_cxx_werror_flag"
13060: || test ! -s conftest.err'
13061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062: (eval $ac_try) 2>&5
13063: ac_status=$?
13064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065: (exit $ac_status); }; } &&
13066: { ac_try='test -s conftest$ac_exeext'
13067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068: (eval $ac_try) 2>&5
13069: ac_status=$?
13070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071: (exit $ac_status); }; }; then
13072:
13073: lt_aix_libpath_sed='
13074: /Import File Strings/,/^$/ {
13075: /^0/ {
13076: s/^0 *\([^ ]*\) *$/\1/
13077: p
13078: }
13079: }'
13080: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13081: # Check for a 64-bit object if we didn't find anything.
13082: if test -z "$lt_cv_aix_libpath__CXX"; then
13083: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084: fi
13085: else
13086: echo "$as_me: failed program was:" >&5
13087: sed 's/^/| /' conftest.$ac_ext >&5
13088:
13089: fi
13090: rm -f conftest.err conftest.$ac_objext \
13091: conftest$ac_exeext conftest.$ac_ext
13092: if test -z "$lt_cv_aix_libpath__CXX"; then
13093: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13094: fi
13095:
13096: fi
13097:
13098: aix_libpath=$lt_cv_aix_libpath__CXX
13099: fi
13100:
13101: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13102: # Warning - without using the other run time loading flags,
13103: # -berok will link without error, but may produce a broken library.
13104: no_undefined_flag_CXX=' ${wl}-bernotok'
13105: allow_undefined_flag_CXX=' ${wl}-berok'
13106: if test "$with_gnu_ld" = yes; then
13107: # We only use this code for GNU lds that support --whole-archive.
13108: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13109: else
13110: # Exported symbols can be pulled into shared objects from archives
13111: whole_archive_flag_spec_CXX='$convenience'
13112: fi
13113: archive_cmds_need_lc_CXX=yes
13114: # This is similar to how AIX traditionally builds its shared
13115: # libraries.
13116: 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'
13117: fi
13118: fi
13119: ;;
13120:
13121: beos*)
13122: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13123: allow_undefined_flag_CXX=unsupported
13124: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13125: # support --undefined. This deserves some investigation. FIXME
13126: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127: else
13128: ld_shlibs_CXX=no
13129: fi
13130: ;;
13131:
13132: chorus*)
13133: case $cc_basename in
13134: *)
13135: # FIXME: insert proper C++ library support
13136: ld_shlibs_CXX=no
13137: ;;
13138: esac
13139: ;;
13140:
13141: cygwin* | mingw* | pw32* | cegcc*)
13142: case $GXX,$cc_basename in
13143: ,cl* | no,cl*)
13144: # Native MSVC
13145: # hardcode_libdir_flag_spec is actually meaningless, as there is
13146: # no search path for DLLs.
13147: hardcode_libdir_flag_spec_CXX=' '
13148: allow_undefined_flag_CXX=unsupported
13149: always_export_symbols_CXX=yes
13150: file_list_spec_CXX='@'
13151: # Tell ltmain to make .lib files, not .a files.
13152: libext=lib
13153: # Tell ltmain to make .dll files, not .so files.
13154: shrext_cmds=".dll"
13155: # FIXME: Setting linknames here is a bad hack.
13156: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13157: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13158: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13159: else
13160: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13161: fi~
13162: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13163: linknames='
13164: # The linker will not automatically build a static lib if we build a DLL.
13165: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13166: enable_shared_with_static_runtimes_CXX=yes
13167: # Don't use ranlib
13168: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13169: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13170: lt_tool_outputfile="@TOOL_OUTPUT@"~
13171: case $lt_outputfile in
13172: *.exe|*.EXE) ;;
13173: *)
13174: lt_outputfile="$lt_outputfile.exe"
13175: lt_tool_outputfile="$lt_tool_outputfile.exe"
13176: ;;
13177: esac~
13178: func_to_tool_file "$lt_outputfile"~
13179: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13180: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13181: $RM "$lt_outputfile.manifest";
13182: fi'
13183: ;;
13184: *)
13185: # g++
13186: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13187: # as there is no search path for DLLs.
13188: hardcode_libdir_flag_spec_CXX='-L$libdir'
13189: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13190: allow_undefined_flag_CXX=unsupported
13191: always_export_symbols_CXX=no
13192: enable_shared_with_static_runtimes_CXX=yes
13193:
13194: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13195: 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'
13196: # If the export-symbols file already is a .def file (1st line
13197: # is EXPORTS), use it as is; otherwise, prepend...
13198: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13199: cp $export_symbols $output_objdir/$soname.def;
13200: else
13201: echo EXPORTS > $output_objdir/$soname.def;
13202: cat $export_symbols >> $output_objdir/$soname.def;
13203: fi~
13204: $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'
13205: else
13206: ld_shlibs_CXX=no
13207: fi
13208: ;;
13209: esac
13210: ;;
13211: darwin* | rhapsody*)
13212:
13213:
13214: archive_cmds_need_lc_CXX=no
13215: hardcode_direct_CXX=no
13216: hardcode_automatic_CXX=yes
13217: hardcode_shlibpath_var_CXX=unsupported
13218: if test "$lt_cv_ld_force_load" = "yes"; then
13219: 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\"`'
13220:
13221: else
13222: whole_archive_flag_spec_CXX=''
13223: fi
13224: link_all_deplibs_CXX=yes
13225: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13226: case $cc_basename in
13227: ifort*) _lt_dar_can_shared=yes ;;
13228: *) _lt_dar_can_shared=$GCC ;;
13229: esac
13230: if test "$_lt_dar_can_shared" = "yes"; then
13231: output_verbose_link_cmd=func_echo_all
13232: 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}"
13233: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13234: 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}"
13235: 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}"
13236: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13237: 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}"
13238: 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}"
13239: fi
13240:
13241: else
13242: ld_shlibs_CXX=no
13243: fi
13244:
13245: ;;
13246:
13247: dgux*)
13248: case $cc_basename in
13249: ec++*)
13250: # FIXME: insert proper C++ library support
13251: ld_shlibs_CXX=no
13252: ;;
13253: ghcx*)
13254: # Green Hills C++ Compiler
13255: # FIXME: insert proper C++ library support
13256: ld_shlibs_CXX=no
13257: ;;
13258: *)
13259: # FIXME: insert proper C++ library support
13260: ld_shlibs_CXX=no
13261: ;;
13262: esac
13263: ;;
13264:
13265: freebsd2.*)
13266: # C++ shared libraries reported to be fairly broken before
13267: # switch to ELF
13268: ld_shlibs_CXX=no
13269: ;;
13270:
13271: freebsd-elf*)
13272: archive_cmds_need_lc_CXX=no
13273: ;;
13274:
13275: freebsd* | dragonfly*)
13276: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13277: # conventions
13278: ld_shlibs_CXX=yes
13279: ;;
13280:
13281: gnu*)
13282: ;;
13283:
13284: haiku*)
13285: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286: link_all_deplibs_CXX=yes
13287: ;;
13288:
13289: hpux9*)
13290: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13291: hardcode_libdir_separator_CXX=:
13292: export_dynamic_flag_spec_CXX='${wl}-E'
13293: hardcode_direct_CXX=yes
13294: hardcode_minus_L_CXX=yes # Not in the search PATH,
13295: # but as the default
13296: # location of the library.
13297:
13298: case $cc_basename in
13299: CC*)
13300: # FIXME: insert proper C++ library support
13301: ld_shlibs_CXX=no
13302: ;;
13303: aCC*)
13304: 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'
13305: # Commands to make compiler produce verbose output that lists
13306: # what "hidden" libraries, object files and flags are used when
13307: # linking a shared library.
13308: #
13309: # There doesn't appear to be a way to prevent this compiler from
13310: # explicitly linking system object files so we need to strip them
13311: # from the output so that they don't get included in the library
13312: # dependencies.
13313: 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"'
13314: ;;
13315: *)
13316: if test "$GXX" = yes; then
13317: 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'
13318: else
13319: # FIXME: insert proper C++ library support
13320: ld_shlibs_CXX=no
13321: fi
13322: ;;
13323: esac
13324: ;;
13325:
13326: hpux10*|hpux11*)
13327: if test $with_gnu_ld = no; then
13328: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13329: hardcode_libdir_separator_CXX=:
13330:
13331: case $host_cpu in
13332: hppa*64*|ia64*)
13333: ;;
13334: *)
13335: export_dynamic_flag_spec_CXX='${wl}-E'
13336: ;;
13337: esac
13338: fi
13339: case $host_cpu in
13340: hppa*64*|ia64*)
13341: hardcode_direct_CXX=no
13342: hardcode_shlibpath_var_CXX=no
13343: ;;
13344: *)
13345: hardcode_direct_CXX=yes
13346: hardcode_direct_absolute_CXX=yes
13347: hardcode_minus_L_CXX=yes # Not in the search PATH,
13348: # but as the default
13349: # location of the library.
13350: ;;
13351: esac
13352:
13353: case $cc_basename in
13354: CC*)
13355: # FIXME: insert proper C++ library support
13356: ld_shlibs_CXX=no
13357: ;;
13358: aCC*)
13359: case $host_cpu in
13360: hppa*64*)
13361: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13362: ;;
13363: ia64*)
13364: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13365: ;;
13366: *)
13367: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13368: ;;
13369: esac
13370: # Commands to make compiler produce verbose output that lists
13371: # what "hidden" libraries, object files and flags are used when
13372: # linking a shared library.
13373: #
13374: # There doesn't appear to be a way to prevent this compiler from
13375: # explicitly linking system object files so we need to strip them
13376: # from the output so that they don't get included in the library
13377: # dependencies.
13378: 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"'
13379: ;;
13380: *)
13381: if test "$GXX" = yes; then
13382: if test $with_gnu_ld = no; then
13383: case $host_cpu in
13384: hppa*64*)
13385: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13386: ;;
13387: ia64*)
13388: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13389: ;;
13390: *)
13391: 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'
13392: ;;
13393: esac
13394: fi
13395: else
13396: # FIXME: insert proper C++ library support
13397: ld_shlibs_CXX=no
13398: fi
13399: ;;
13400: esac
13401: ;;
13402:
13403: interix[3-9]*)
13404: hardcode_direct_CXX=no
13405: hardcode_shlibpath_var_CXX=no
13406: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13407: export_dynamic_flag_spec_CXX='${wl}-E'
13408: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13409: # Instead, shared libraries are loaded at an image base (0x10000000 by
13410: # default) and relocated if they conflict, which is a slow very memory
13411: # consuming and fragmenting process. To avoid this, we pick a random,
13412: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13413: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13414: 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'
13415: 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'
13416: ;;
13417: irix5* | irix6*)
13418: case $cc_basename in
13419: CC*)
13420: # SGI C++
13421: 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'
13422:
13423: # Archives containing C++ object files must be created using
13424: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13425: # necessary to make sure instantiated templates are included
13426: # in the archive.
13427: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13428: ;;
13429: *)
13430: if test "$GXX" = yes; then
13431: if test "$with_gnu_ld" = no; then
13432: 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'
13433: else
13434: 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'
13435: fi
13436: fi
13437: link_all_deplibs_CXX=yes
13438: ;;
13439: esac
13440: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13441: hardcode_libdir_separator_CXX=:
13442: inherit_rpath_CXX=yes
13443: ;;
13444:
13445: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13446: case $cc_basename in
13447: KCC*)
13448: # Kuck and Associates, Inc. (KAI) C++ Compiler
13449:
13450: # KCC will only create a shared library if the output file
13451: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13452: # to its proper name (with version) after linking.
13453: 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'
13454: 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'
13455: # Commands to make compiler produce verbose output that lists
13456: # what "hidden" libraries, object files and flags are used when
13457: # linking a shared library.
13458: #
13459: # There doesn't appear to be a way to prevent this compiler from
13460: # explicitly linking system object files so we need to strip them
13461: # from the output so that they don't get included in the library
13462: # dependencies.
13463: 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"'
13464:
13465: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13466: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13467:
13468: # Archives containing C++ object files must be created using
13469: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13470: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13471: ;;
13472: icpc* | ecpc* )
13473: # Intel C++
13474: with_gnu_ld=yes
13475: # version 8.0 and above of icpc choke on multiply defined symbols
13476: # if we add $predep_objects and $postdep_objects, however 7.1 and
13477: # earlier do not add the objects themselves.
13478: case `$CC -V 2>&1` in
13479: *"Version 7."*)
13480: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13481: 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'
13482: ;;
13483: *) # Version 8.0 or newer
13484: tmp_idyn=
13485: case $host_cpu in
13486: ia64*) tmp_idyn=' -i_dynamic';;
13487: esac
13488: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489: 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'
13490: ;;
13491: esac
13492: archive_cmds_need_lc_CXX=no
13493: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13494: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13495: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13496: ;;
13497: pgCC* | pgcpp*)
13498: # Portland Group C++ compiler
13499: case `$CC -V` in
13500: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13501: prelink_cmds_CXX='tpldir=Template.dir~
13502: rm -rf $tpldir~
13503: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13504: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13505: old_archive_cmds_CXX='tpldir=Template.dir~
13506: rm -rf $tpldir~
13507: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13508: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13509: $RANLIB $oldlib'
13510: archive_cmds_CXX='tpldir=Template.dir~
13511: rm -rf $tpldir~
13512: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13513: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13514: archive_expsym_cmds_CXX='tpldir=Template.dir~
13515: rm -rf $tpldir~
13516: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13517: $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'
13518: ;;
13519: *) # Version 6 and above use weak symbols
13520: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13521: 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'
13522: ;;
13523: esac
13524:
13525: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13526: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13527: 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'
13528: ;;
13529: cxx*)
13530: # Compaq C++
13531: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532: 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'
13533:
13534: runpath_var=LD_RUN_PATH
13535: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13536: hardcode_libdir_separator_CXX=:
13537:
13538: # Commands to make compiler produce verbose output that lists
13539: # what "hidden" libraries, object files and flags are used when
13540: # linking a shared library.
13541: #
13542: # There doesn't appear to be a way to prevent this compiler from
13543: # explicitly linking system object files so we need to strip them
13544: # from the output so that they don't get included in the library
13545: # dependencies.
13546: 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'
13547: ;;
13548: xl* | mpixl* | bgxl*)
13549: # IBM XL 8.0 on PPC, with GNU ld
13550: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13552: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553: if test "x$supports_anon_versioning" = xyes; then
13554: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13555: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13556: echo "local: *; };" >> $output_objdir/$libname.ver~
13557: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13558: fi
13559: ;;
13560: *)
13561: case `$CC -V 2>&1 | sed 5q` in
13562: *Sun\ C*)
13563: # Sun C++ 5.9
13564: no_undefined_flag_CXX=' -zdefs'
13565: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566: 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'
13567: hardcode_libdir_flag_spec_CXX='-R$libdir'
13568: 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'
13569: compiler_needs_object_CXX=yes
13570:
13571: # Not sure whether something based on
13572: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13573: # would be better.
13574: output_verbose_link_cmd='func_echo_all'
13575:
13576: # Archives containing C++ object files must be created using
13577: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13578: # necessary to make sure instantiated templates are included
13579: # in the archive.
13580: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13581: ;;
13582: esac
13583: ;;
13584: esac
13585: ;;
13586:
13587: lynxos*)
13588: # FIXME: insert proper C++ library support
13589: ld_shlibs_CXX=no
13590: ;;
13591:
13592: m88k*)
13593: # FIXME: insert proper C++ library support
13594: ld_shlibs_CXX=no
13595: ;;
13596:
13597: mvs*)
13598: case $cc_basename in
13599: cxx*)
13600: # FIXME: insert proper C++ library support
13601: ld_shlibs_CXX=no
13602: ;;
13603: *)
13604: # FIXME: insert proper C++ library support
13605: ld_shlibs_CXX=no
13606: ;;
13607: esac
13608: ;;
13609:
13610: netbsd*)
13611: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13612: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13613: wlarc=
13614: hardcode_libdir_flag_spec_CXX='-R$libdir'
13615: hardcode_direct_CXX=yes
13616: hardcode_shlibpath_var_CXX=no
13617: fi
13618: # Workaround some broken pre-1.5 toolchains
13619: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13620: ;;
13621:
13622: *nto* | *qnx*)
13623: ld_shlibs_CXX=yes
13624: ;;
13625:
13626: openbsd2*)
13627: # C++ shared libraries are fairly broken
13628: ld_shlibs_CXX=no
13629: ;;
13630:
13631: openbsd*)
13632: if test -f /usr/libexec/ld.so; then
13633: hardcode_direct_CXX=yes
13634: hardcode_shlibpath_var_CXX=no
13635: hardcode_direct_absolute_CXX=yes
13636: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13637: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13640: export_dynamic_flag_spec_CXX='${wl}-E'
13641: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13642: fi
13643: output_verbose_link_cmd=func_echo_all
13644: else
13645: ld_shlibs_CXX=no
13646: fi
13647: ;;
13648:
13649: osf3* | osf4* | osf5*)
13650: case $cc_basename in
13651: KCC*)
13652: # Kuck and Associates, Inc. (KAI) C++ Compiler
13653:
13654: # KCC will only create a shared library if the output file
13655: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13656: # to its proper name (with version) after linking.
13657: 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'
13658:
13659: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13660: hardcode_libdir_separator_CXX=:
13661:
13662: # Archives containing C++ object files must be created using
13663: # the KAI C++ compiler.
13664: case $host in
13665: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13666: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13667: esac
13668: ;;
13669: RCC*)
13670: # Rational C++ 2.4.1
13671: # FIXME: insert proper C++ library support
13672: ld_shlibs_CXX=no
13673: ;;
13674: cxx*)
13675: case $host in
13676: osf3*)
13677: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13678: 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'
13679: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13680: ;;
13681: *)
13682: allow_undefined_flag_CXX=' -expect_unresolved \*'
13683: 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'
13684: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13685: echo "-hidden">> $lib.exp~
13686: $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~
13687: $RM $lib.exp'
13688: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13689: ;;
13690: esac
13691:
13692: hardcode_libdir_separator_CXX=:
13693:
13694: # Commands to make compiler produce verbose output that lists
13695: # what "hidden" libraries, object files and flags are used when
13696: # linking a shared library.
13697: #
13698: # There doesn't appear to be a way to prevent this compiler from
13699: # explicitly linking system object files so we need to strip them
13700: # from the output so that they don't get included in the library
13701: # dependencies.
13702: 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"'
13703: ;;
13704: *)
13705: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13706: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13707: case $host in
13708: osf3*)
13709: 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'
13710: ;;
13711: *)
13712: 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'
13713: ;;
13714: esac
13715:
13716: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13717: hardcode_libdir_separator_CXX=:
13718:
13719: # Commands to make compiler produce verbose output that lists
13720: # what "hidden" libraries, object files and flags are used when
13721: # linking a shared library.
13722: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13723:
13724: else
13725: # FIXME: insert proper C++ library support
13726: ld_shlibs_CXX=no
13727: fi
13728: ;;
13729: esac
13730: ;;
13731:
13732: psos*)
13733: # FIXME: insert proper C++ library support
13734: ld_shlibs_CXX=no
13735: ;;
13736:
13737: sunos4*)
13738: case $cc_basename in
13739: CC*)
13740: # Sun C++ 4.x
13741: # FIXME: insert proper C++ library support
13742: ld_shlibs_CXX=no
13743: ;;
13744: lcc*)
13745: # Lucid
13746: # FIXME: insert proper C++ library support
13747: ld_shlibs_CXX=no
13748: ;;
13749: *)
13750: # FIXME: insert proper C++ library support
13751: ld_shlibs_CXX=no
13752: ;;
13753: esac
13754: ;;
13755:
13756: solaris*)
13757: case $cc_basename in
13758: CC* | sunCC*)
13759: # Sun C++ 4.2, 5.x and Centerline C++
13760: archive_cmds_need_lc_CXX=yes
13761: no_undefined_flag_CXX=' -zdefs'
13762: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13763: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764: $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'
13765:
13766: hardcode_libdir_flag_spec_CXX='-R$libdir'
13767: hardcode_shlibpath_var_CXX=no
13768: case $host_os in
13769: solaris2.[0-5] | solaris2.[0-5].*) ;;
13770: *)
13771: # The compiler driver will combine and reorder linker options,
13772: # but understands `-z linker_flag'.
13773: # Supported since Solaris 2.6 (maybe 2.5.1?)
13774: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13775: ;;
13776: esac
13777: link_all_deplibs_CXX=yes
13778:
13779: output_verbose_link_cmd='func_echo_all'
13780:
13781: # Archives containing C++ object files must be created using
13782: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13783: # necessary to make sure instantiated templates are included
13784: # in the archive.
13785: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13786: ;;
13787: gcx*)
13788: # Green Hills C++ Compiler
13789: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13790:
13791: # The C++ compiler must be used to create the archive.
13792: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13793: ;;
13794: *)
13795: # GNU C++ compiler with Solaris linker
13796: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13797: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13798: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13799: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13800: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13801: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13802:
13803: # Commands to make compiler produce verbose output that lists
13804: # what "hidden" libraries, object files and flags are used when
13805: # linking a shared library.
13806: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13807: else
13808: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13809: # platform.
13810: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13811: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13812: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13813:
13814: # Commands to make compiler produce verbose output that lists
13815: # what "hidden" libraries, object files and flags are used when
13816: # linking a shared library.
13817: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13818: fi
13819:
13820: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13821: case $host_os in
13822: solaris2.[0-5] | solaris2.[0-5].*) ;;
13823: *)
13824: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13825: ;;
13826: esac
13827: fi
13828: ;;
13829: esac
13830: ;;
13831:
13832: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13833: no_undefined_flag_CXX='${wl}-z,text'
13834: archive_cmds_need_lc_CXX=no
13835: hardcode_shlibpath_var_CXX=no
13836: runpath_var='LD_RUN_PATH'
13837:
13838: case $cc_basename in
13839: CC*)
13840: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842: ;;
13843: *)
13844: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13845: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846: ;;
13847: esac
13848: ;;
13849:
13850: sysv5* | sco3.2v5* | sco5v6*)
13851: # Note: We can NOT use -z defs as we might desire, because we do not
13852: # link with -lc, and that would cause any symbols used from libc to
13853: # always be unresolved, which means just about no library would
13854: # ever link correctly. If we're not using GNU ld we use -z text
13855: # though, which does catch some bad symbols but isn't as heavy-handed
13856: # as -z defs.
13857: no_undefined_flag_CXX='${wl}-z,text'
13858: allow_undefined_flag_CXX='${wl}-z,nodefs'
13859: archive_cmds_need_lc_CXX=no
13860: hardcode_shlibpath_var_CXX=no
13861: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13862: hardcode_libdir_separator_CXX=':'
13863: link_all_deplibs_CXX=yes
13864: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13865: runpath_var='LD_RUN_PATH'
13866:
13867: case $cc_basename in
13868: CC*)
13869: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13872: '"$old_archive_cmds_CXX"
13873: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13874: '"$reload_cmds_CXX"
13875: ;;
13876: *)
13877: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13879: ;;
13880: esac
13881: ;;
13882:
13883: tandem*)
13884: case $cc_basename in
13885: NCC*)
13886: # NonStop-UX NCC 3.20
13887: # FIXME: insert proper C++ library support
13888: ld_shlibs_CXX=no
13889: ;;
13890: *)
13891: # FIXME: insert proper C++ library support
13892: ld_shlibs_CXX=no
13893: ;;
13894: esac
13895: ;;
13896:
13897: vxworks*)
13898: # FIXME: insert proper C++ library support
13899: ld_shlibs_CXX=no
13900: ;;
13901:
13902: *)
13903: # FIXME: insert proper C++ library support
13904: ld_shlibs_CXX=no
13905: ;;
13906: esac
13907:
13908: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13909: echo "${ECHO_T}$ld_shlibs_CXX" >&6
13910: test "$ld_shlibs_CXX" = no && can_build_shared=no
13911:
13912: GCC_CXX="$GXX"
13913: LD_CXX="$LD"
13914:
13915: ## CAVEAT EMPTOR:
13916: ## There is no encapsulation within the following macros, do not change
13917: ## the running order or otherwise move them around unless you know exactly
13918: ## what you are doing...
13919: # Dependencies to place before and after the object being linked:
13920: predep_objects_CXX=
13921: postdep_objects_CXX=
13922: predeps_CXX=
13923: postdeps_CXX=
13924: compiler_lib_search_path_CXX=
13925:
13926: cat > conftest.$ac_ext <<_LT_EOF
13927: class Foo
13928: {
13929: public:
13930: Foo (void) { a = 0; }
13931: private:
13932: int a;
13933: };
13934: _LT_EOF
13935:
13936:
13937: _lt_libdeps_save_CFLAGS=$CFLAGS
13938: case "$CC $CFLAGS " in #(
13939: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13940: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13941: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13942: esac
13943:
13944: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945: (eval $ac_compile) 2>&5
13946: ac_status=$?
13947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948: (exit $ac_status); }; then
13949: # Parse the compiler output and extract the necessary
13950: # objects, libraries and library flags.
13951:
13952: # Sentinel used to keep track of whether or not we are before
13953: # the conftest object file.
13954: pre_test_object_deps_done=no
13955:
13956: for p in `eval "$output_verbose_link_cmd"`; do
13957: case ${prev}${p} in
13958:
13959: -L* | -R* | -l*)
13960: # Some compilers place space between "-{L,R}" and the path.
13961: # Remove the space.
13962: if test $p = "-L" ||
13963: test $p = "-R"; then
13964: prev=$p
13965: continue
13966: fi
13967:
13968: # Expand the sysroot to ease extracting the directories later.
13969: if test -z "$prev"; then
13970: case $p in
13971: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13972: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13973: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13974: esac
13975: fi
13976: case $p in
13977: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13978: esac
13979: if test "$pre_test_object_deps_done" = no; then
13980: case ${prev} in
13981: -L | -R)
13982: # Internal compiler library paths should come after those
13983: # provided the user. The postdeps already come after the
13984: # user supplied libs so there is no need to process them.
13985: if test -z "$compiler_lib_search_path_CXX"; then
13986: compiler_lib_search_path_CXX="${prev}${p}"
13987: else
13988: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13989: fi
13990: ;;
13991: # The "-l" case would never come before the object being
13992: # linked, so don't bother handling this case.
13993: esac
13994: else
13995: if test -z "$postdeps_CXX"; then
13996: postdeps_CXX="${prev}${p}"
13997: else
13998: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13999: fi
14000: fi
14001: prev=
14002: ;;
14003:
14004: *.lto.$objext) ;; # Ignore GCC LTO objects
14005: *.$objext)
14006: # This assumes that the test object file only shows up
14007: # once in the compiler output.
14008: if test "$p" = "conftest.$objext"; then
14009: pre_test_object_deps_done=yes
14010: continue
14011: fi
14012:
14013: if test "$pre_test_object_deps_done" = no; then
14014: if test -z "$predep_objects_CXX"; then
14015: predep_objects_CXX="$p"
14016: else
14017: predep_objects_CXX="$predep_objects_CXX $p"
14018: fi
14019: else
14020: if test -z "$postdep_objects_CXX"; then
14021: postdep_objects_CXX="$p"
14022: else
14023: postdep_objects_CXX="$postdep_objects_CXX $p"
14024: fi
14025: fi
14026: ;;
14027:
14028: *) ;; # Ignore the rest.
14029:
14030: esac
14031: done
14032:
14033: # Clean up.
14034: rm -f a.out a.exe
14035: else
14036: echo "libtool.m4: error: problem compiling CXX test program"
14037: fi
14038:
14039: $RM -f confest.$objext
14040: CFLAGS=$_lt_libdeps_save_CFLAGS
14041:
14042: # PORTME: override above test on systems where it is broken
14043: case $host_os in
14044: interix[3-9]*)
14045: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14046: # hack all around it, let's just trust "g++" to DTRT.
14047: predep_objects_CXX=
14048: postdep_objects_CXX=
14049: postdeps_CXX=
14050: ;;
14051:
14052: linux*)
14053: case `$CC -V 2>&1 | sed 5q` in
14054: *Sun\ C*)
14055: # Sun C++ 5.9
14056:
14057: # The more standards-conforming stlport4 library is
14058: # incompatible with the Cstd library. Avoid specifying
14059: # it if it's in CXXFLAGS. Ignore libCrun as
14060: # -library=stlport4 depends on it.
14061: case " $CXX $CXXFLAGS " in
14062: *" -library=stlport4 "*)
14063: solaris_use_stlport4=yes
14064: ;;
14065: esac
14066:
14067: if test "$solaris_use_stlport4" != yes; then
14068: postdeps_CXX='-library=Cstd -library=Crun'
14069: fi
14070: ;;
14071: esac
14072: ;;
14073:
14074: solaris*)
14075: case $cc_basename in
14076: CC* | sunCC*)
14077: # The more standards-conforming stlport4 library is
14078: # incompatible with the Cstd library. Avoid specifying
14079: # it if it's in CXXFLAGS. Ignore libCrun as
14080: # -library=stlport4 depends on it.
14081: case " $CXX $CXXFLAGS " in
14082: *" -library=stlport4 "*)
14083: solaris_use_stlport4=yes
14084: ;;
14085: esac
14086:
14087: # Adding this requires a known-good setup of shared libraries for
14088: # Sun compiler versions before 5.6, else PIC objects from an old
14089: # archive will be linked into the output, leading to subtle bugs.
14090: if test "$solaris_use_stlport4" != yes; then
14091: postdeps_CXX='-library=Cstd -library=Crun'
14092: fi
14093: ;;
14094: esac
14095: ;;
14096: esac
14097:
14098:
14099: case " $postdeps_CXX " in
14100: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14101: esac
14102: compiler_lib_search_dirs_CXX=
14103: if test -n "${compiler_lib_search_path_CXX}"; then
14104: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14105: fi
14106:
14107:
14108:
14109:
14110:
14111:
14112:
14113:
14114:
14115:
14116:
14117:
14118:
14119:
14120:
14121:
14122:
14123:
14124:
14125:
14126:
14127:
14128:
14129:
14130:
14131:
14132:
14133:
14134:
14135:
14136:
14137: lt_prog_compiler_wl_CXX=
14138: lt_prog_compiler_pic_CXX=
14139: lt_prog_compiler_static_CXX=
14140:
14141:
14142: # C++ specific cases for pic, static, wl, etc.
14143: if test "$GXX" = yes; then
14144: lt_prog_compiler_wl_CXX='-Wl,'
14145: lt_prog_compiler_static_CXX='-static'
14146:
14147: case $host_os in
14148: aix*)
14149: # All AIX code is PIC.
14150: if test "$host_cpu" = ia64; then
14151: # AIX 5 now supports IA64 processor
14152: lt_prog_compiler_static_CXX='-Bstatic'
14153: fi
14154: ;;
14155:
14156: amigaos*)
14157: case $host_cpu in
14158: powerpc)
14159: # see comment about AmigaOS4 .so support
14160: lt_prog_compiler_pic_CXX='-fPIC'
14161: ;;
14162: m68k)
14163: # FIXME: we need at least 68020 code to build shared libraries, but
14164: # adding the `-m68020' flag to GCC prevents building anything better,
14165: # like `-m68040'.
14166: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14167: ;;
14168: esac
14169: ;;
14170:
14171: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14172: # PIC is the default for these OSes.
14173: ;;
14174: mingw* | cygwin* | os2* | pw32* | cegcc*)
14175: # This hack is so that the source file can tell whether it is being
14176: # built for inclusion in a dll (and should export symbols for example).
14177: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14178: # (--disable-auto-import) libraries
14179: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14180: ;;
14181: darwin* | rhapsody*)
14182: # PIC is the default on this platform
14183: # Common symbols not allowed in MH_DYLIB files
14184: lt_prog_compiler_pic_CXX='-fno-common'
14185: ;;
14186: *djgpp*)
14187: # DJGPP does not support shared libraries at all
14188: lt_prog_compiler_pic_CXX=
14189: ;;
14190: haiku*)
14191: # PIC is the default for Haiku.
14192: # The "-static" flag exists, but is broken.
14193: lt_prog_compiler_static_CXX=
14194: ;;
14195: interix[3-9]*)
14196: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14197: # Instead, we relocate shared libraries at runtime.
14198: ;;
14199: sysv4*MP*)
14200: if test -d /usr/nec; then
14201: lt_prog_compiler_pic_CXX=-Kconform_pic
14202: fi
14203: ;;
14204: hpux*)
14205: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14206: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14207: # sets the default TLS model and affects inlining.
14208: case $host_cpu in
14209: hppa*64*)
14210: ;;
14211: *)
14212: lt_prog_compiler_pic_CXX='-fPIC'
14213: ;;
14214: esac
14215: ;;
14216: *qnx* | *nto*)
14217: # QNX uses GNU C++, but need to define -shared option too, otherwise
14218: # it will coredump.
14219: lt_prog_compiler_pic_CXX='-fPIC -shared'
14220: ;;
14221: *)
14222: lt_prog_compiler_pic_CXX='-fPIC'
14223: ;;
14224: esac
14225: else
14226: case $host_os in
14227: aix[4-9]*)
14228: # All AIX code is PIC.
14229: if test "$host_cpu" = ia64; then
14230: # AIX 5 now supports IA64 processor
14231: lt_prog_compiler_static_CXX='-Bstatic'
14232: else
14233: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14234: fi
14235: ;;
14236: chorus*)
14237: case $cc_basename in
14238: cxch68*)
14239: # Green Hills C++ Compiler
14240: # _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"
14241: ;;
14242: esac
14243: ;;
14244: mingw* | cygwin* | os2* | pw32* | cegcc*)
14245: # This hack is so that the source file can tell whether it is being
14246: # built for inclusion in a dll (and should export symbols for example).
14247: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14248: ;;
14249: dgux*)
14250: case $cc_basename in
14251: ec++*)
14252: lt_prog_compiler_pic_CXX='-KPIC'
14253: ;;
14254: ghcx*)
14255: # Green Hills C++ Compiler
14256: lt_prog_compiler_pic_CXX='-pic'
14257: ;;
14258: *)
14259: ;;
14260: esac
14261: ;;
14262: freebsd* | dragonfly*)
14263: # FreeBSD uses GNU C++
14264: ;;
14265: hpux9* | hpux10* | hpux11*)
14266: case $cc_basename in
14267: CC*)
14268: lt_prog_compiler_wl_CXX='-Wl,'
14269: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14270: if test "$host_cpu" != ia64; then
14271: lt_prog_compiler_pic_CXX='+Z'
14272: fi
14273: ;;
14274: aCC*)
14275: lt_prog_compiler_wl_CXX='-Wl,'
14276: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14277: case $host_cpu in
14278: hppa*64*|ia64*)
14279: # +Z the default
14280: ;;
14281: *)
14282: lt_prog_compiler_pic_CXX='+Z'
14283: ;;
14284: esac
14285: ;;
14286: *)
14287: ;;
14288: esac
14289: ;;
14290: interix*)
14291: # This is c89, which is MS Visual C++ (no shared libs)
14292: # Anyone wants to do a port?
14293: ;;
14294: irix5* | irix6* | nonstopux*)
14295: case $cc_basename in
14296: CC*)
14297: lt_prog_compiler_wl_CXX='-Wl,'
14298: lt_prog_compiler_static_CXX='-non_shared'
14299: # CC pic flag -KPIC is the default.
14300: ;;
14301: *)
14302: ;;
14303: esac
14304: ;;
14305: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14306: case $cc_basename in
14307: KCC*)
14308: # KAI C++ Compiler
14309: lt_prog_compiler_wl_CXX='--backend -Wl,'
14310: lt_prog_compiler_pic_CXX='-fPIC'
14311: ;;
14312: ecpc* )
14313: # old Intel C++ for x86_64 which still supported -KPIC.
14314: lt_prog_compiler_wl_CXX='-Wl,'
14315: lt_prog_compiler_pic_CXX='-KPIC'
14316: lt_prog_compiler_static_CXX='-static'
14317: ;;
14318: icpc* )
14319: # Intel C++, used to be incompatible with GCC.
14320: # ICC 10 doesn't accept -KPIC any more.
14321: lt_prog_compiler_wl_CXX='-Wl,'
14322: lt_prog_compiler_pic_CXX='-fPIC'
14323: lt_prog_compiler_static_CXX='-static'
14324: ;;
14325: pgCC* | pgcpp*)
14326: # Portland Group C++ compiler
14327: lt_prog_compiler_wl_CXX='-Wl,'
14328: lt_prog_compiler_pic_CXX='-fpic'
14329: lt_prog_compiler_static_CXX='-Bstatic'
14330: ;;
14331: cxx*)
14332: # Compaq C++
14333: # Make sure the PIC flag is empty. It appears that all Alpha
14334: # Linux and Compaq Tru64 Unix objects are PIC.
14335: lt_prog_compiler_pic_CXX=
14336: lt_prog_compiler_static_CXX='-non_shared'
14337: ;;
14338: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14339: # IBM XL 8.0, 9.0 on PPC and BlueGene
14340: lt_prog_compiler_wl_CXX='-Wl,'
14341: lt_prog_compiler_pic_CXX='-qpic'
14342: lt_prog_compiler_static_CXX='-qstaticlink'
14343: ;;
14344: *)
14345: case `$CC -V 2>&1 | sed 5q` in
14346: *Sun\ C*)
14347: # Sun C++ 5.9
14348: lt_prog_compiler_pic_CXX='-KPIC'
14349: lt_prog_compiler_static_CXX='-Bstatic'
14350: lt_prog_compiler_wl_CXX='-Qoption ld '
14351: ;;
14352: esac
14353: ;;
14354: esac
14355: ;;
14356: lynxos*)
14357: ;;
14358: m88k*)
14359: ;;
14360: mvs*)
14361: case $cc_basename in
14362: cxx*)
14363: lt_prog_compiler_pic_CXX='-W c,exportall'
14364: ;;
14365: *)
14366: ;;
14367: esac
14368: ;;
14369: netbsd*)
14370: ;;
14371: *qnx* | *nto*)
14372: # QNX uses GNU C++, but need to define -shared option too, otherwise
14373: # it will coredump.
14374: lt_prog_compiler_pic_CXX='-fPIC -shared'
14375: ;;
14376: osf3* | osf4* | osf5*)
14377: case $cc_basename in
14378: KCC*)
14379: lt_prog_compiler_wl_CXX='--backend -Wl,'
14380: ;;
14381: RCC*)
14382: # Rational C++ 2.4.1
14383: lt_prog_compiler_pic_CXX='-pic'
14384: ;;
14385: cxx*)
14386: # Digital/Compaq C++
14387: lt_prog_compiler_wl_CXX='-Wl,'
14388: # Make sure the PIC flag is empty. It appears that all Alpha
14389: # Linux and Compaq Tru64 Unix objects are PIC.
14390: lt_prog_compiler_pic_CXX=
14391: lt_prog_compiler_static_CXX='-non_shared'
14392: ;;
14393: *)
14394: ;;
14395: esac
14396: ;;
14397: psos*)
14398: ;;
14399: solaris*)
14400: case $cc_basename in
14401: CC* | sunCC*)
14402: # Sun C++ 4.2, 5.x and Centerline C++
14403: lt_prog_compiler_pic_CXX='-KPIC'
14404: lt_prog_compiler_static_CXX='-Bstatic'
14405: lt_prog_compiler_wl_CXX='-Qoption ld '
14406: ;;
14407: gcx*)
14408: # Green Hills C++ Compiler
14409: lt_prog_compiler_pic_CXX='-PIC'
14410: ;;
14411: *)
14412: ;;
14413: esac
14414: ;;
14415: sunos4*)
14416: case $cc_basename in
14417: CC*)
14418: # Sun C++ 4.x
14419: lt_prog_compiler_pic_CXX='-pic'
14420: lt_prog_compiler_static_CXX='-Bstatic'
14421: ;;
14422: lcc*)
14423: # Lucid
14424: lt_prog_compiler_pic_CXX='-pic'
14425: ;;
14426: *)
14427: ;;
14428: esac
14429: ;;
14430: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14431: case $cc_basename in
14432: CC*)
14433: lt_prog_compiler_wl_CXX='-Wl,'
14434: lt_prog_compiler_pic_CXX='-KPIC'
14435: lt_prog_compiler_static_CXX='-Bstatic'
14436: ;;
14437: esac
14438: ;;
14439: tandem*)
14440: case $cc_basename in
14441: NCC*)
14442: # NonStop-UX NCC 3.20
14443: lt_prog_compiler_pic_CXX='-KPIC'
14444: ;;
14445: *)
14446: ;;
14447: esac
14448: ;;
14449: vxworks*)
14450: ;;
14451: *)
14452: lt_prog_compiler_can_build_shared_CXX=no
14453: ;;
14454: esac
14455: fi
14456:
14457: case $host_os in
14458: # For platforms which do not support PIC, -DPIC is meaningless:
14459: *djgpp*)
14460: lt_prog_compiler_pic_CXX=
14461: ;;
14462: *)
14463: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14464: ;;
14465: esac
14466:
14467: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14468: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14469: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14470: echo $ECHO_N "(cached) $ECHO_C" >&6
14471: else
14472: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14473: fi
14474: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14475: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
14476: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14477:
14478: #
14479: # Check to make sure the PIC flag actually works.
14480: #
14481: if test -n "$lt_prog_compiler_pic_CXX"; then
14482: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14483: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14484: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14485: echo $ECHO_N "(cached) $ECHO_C" >&6
14486: else
14487: lt_cv_prog_compiler_pic_works_CXX=no
14488: ac_outfile=conftest.$ac_objext
14489: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14491: # Insert the option either (1) after the last *FLAGS variable, or
14492: # (2) before a word containing "conftest.", or (3) at the end.
14493: # Note that $ac_compile itself does not contain backslashes and begins
14494: # with a dollar sign (not a hyphen), so the echo should work correctly.
14495: # The option is referenced via a variable to avoid confusing sed.
14496: lt_compile=`echo "$ac_compile" | $SED \
14497: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14498: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14499: -e 's:$: $lt_compiler_flag:'`
14500: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14501: (eval "$lt_compile" 2>conftest.err)
14502: ac_status=$?
14503: cat conftest.err >&5
14504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505: if (exit $ac_status) && test -s "$ac_outfile"; then
14506: # The compiler can only warn and ignore the option if not recognized
14507: # So say no if there are warnings other than the usual output.
14508: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14509: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14510: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14511: lt_cv_prog_compiler_pic_works_CXX=yes
14512: fi
14513: fi
14514: $RM conftest*
14515:
14516: fi
14517: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14518: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
14519:
14520: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14521: case $lt_prog_compiler_pic_CXX in
14522: "" | " "*) ;;
14523: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14524: esac
14525: else
14526: lt_prog_compiler_pic_CXX=
14527: lt_prog_compiler_can_build_shared_CXX=no
14528: fi
14529:
14530: fi
14531:
14532:
14533:
14534:
14535:
14536: #
14537: # Check to make sure the static flag actually works.
14538: #
14539: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14540: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14541: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14542: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14543: echo $ECHO_N "(cached) $ECHO_C" >&6
14544: else
14545: lt_cv_prog_compiler_static_works_CXX=no
14546: save_LDFLAGS="$LDFLAGS"
14547: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14548: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14549: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14550: # The linker can only warn and ignore the option if not recognized
14551: # So say no if there are warnings
14552: if test -s conftest.err; then
14553: # Append any errors to the config.log.
14554: cat conftest.err 1>&5
14555: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14556: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14557: if diff conftest.exp conftest.er2 >/dev/null; then
14558: lt_cv_prog_compiler_static_works_CXX=yes
14559: fi
14560: else
14561: lt_cv_prog_compiler_static_works_CXX=yes
14562: fi
14563: fi
14564: $RM -r conftest*
14565: LDFLAGS="$save_LDFLAGS"
14566:
14567: fi
14568: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14569: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14570:
14571: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14572: :
14573: else
14574: lt_prog_compiler_static_CXX=
14575: fi
14576:
14577:
14578:
14579:
14580: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14581: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14582: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14583: echo $ECHO_N "(cached) $ECHO_C" >&6
14584: else
14585: lt_cv_prog_compiler_c_o_CXX=no
14586: $RM -r conftest 2>/dev/null
14587: mkdir conftest
14588: cd conftest
14589: mkdir out
14590: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14591:
14592: lt_compiler_flag="-o out/conftest2.$ac_objext"
14593: # Insert the option either (1) after the last *FLAGS variable, or
14594: # (2) before a word containing "conftest.", or (3) at the end.
14595: # Note that $ac_compile itself does not contain backslashes and begins
14596: # with a dollar sign (not a hyphen), so the echo should work correctly.
14597: lt_compile=`echo "$ac_compile" | $SED \
14598: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14599: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14600: -e 's:$: $lt_compiler_flag:'`
14601: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14602: (eval "$lt_compile" 2>out/conftest.err)
14603: ac_status=$?
14604: cat out/conftest.err >&5
14605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14607: then
14608: # The compiler can only warn and ignore the option if not recognized
14609: # So say no if there are warnings
14610: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14611: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14612: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14613: lt_cv_prog_compiler_c_o_CXX=yes
14614: fi
14615: fi
14616: chmod u+w . 2>&5
14617: $RM conftest*
14618: # SGI C++ compiler will create directory out/ii_files/ for
14619: # template instantiation
14620: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14621: $RM out/* && rmdir out
14622: cd ..
14623: $RM -r conftest
14624: $RM conftest*
14625:
14626: fi
14627: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14628: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14629:
14630:
14631:
14632: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14633: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14634: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14635: echo $ECHO_N "(cached) $ECHO_C" >&6
14636: else
14637: lt_cv_prog_compiler_c_o_CXX=no
14638: $RM -r conftest 2>/dev/null
14639: mkdir conftest
14640: cd conftest
14641: mkdir out
14642: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14643:
14644: lt_compiler_flag="-o out/conftest2.$ac_objext"
14645: # Insert the option either (1) after the last *FLAGS variable, or
14646: # (2) before a word containing "conftest.", or (3) at the end.
14647: # Note that $ac_compile itself does not contain backslashes and begins
14648: # with a dollar sign (not a hyphen), so the echo should work correctly.
14649: lt_compile=`echo "$ac_compile" | $SED \
14650: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14651: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14652: -e 's:$: $lt_compiler_flag:'`
14653: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14654: (eval "$lt_compile" 2>out/conftest.err)
14655: ac_status=$?
14656: cat out/conftest.err >&5
14657: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14659: then
14660: # The compiler can only warn and ignore the option if not recognized
14661: # So say no if there are warnings
14662: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14663: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14664: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14665: lt_cv_prog_compiler_c_o_CXX=yes
14666: fi
14667: fi
14668: chmod u+w . 2>&5
14669: $RM conftest*
14670: # SGI C++ compiler will create directory out/ii_files/ for
14671: # template instantiation
14672: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14673: $RM out/* && rmdir out
14674: cd ..
14675: $RM -r conftest
14676: $RM conftest*
14677:
14678: fi
14679: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14680: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14681:
14682:
14683:
14684:
14685: hard_links="nottested"
14686: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14687: # do not overwrite the value of need_locks provided by the user
14688: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14689: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14690: hard_links=yes
14691: $RM conftest*
14692: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14693: touch conftest.a
14694: ln conftest.a conftest.b 2>&5 || hard_links=no
14695: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14696: echo "$as_me:$LINENO: result: $hard_links" >&5
14697: echo "${ECHO_T}$hard_links" >&6
14698: if test "$hard_links" = no; then
14699: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14700: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14701: need_locks=warn
14702: fi
14703: else
14704: need_locks=no
14705: fi
14706:
14707:
14708:
14709: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14710: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14711:
14712: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14713: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14714: case $host_os in
14715: aix[4-9]*)
14716: # If we're using GNU nm, then we don't want the "-C" option.
14717: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14718: # Also, AIX nm treats weak defined symbols like other global defined
14719: # symbols, whereas GNU nm marks them as "W".
14720: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14721: 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'
14722: else
14723: 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'
14724: fi
14725: ;;
14726: pw32*)
14727: export_symbols_cmds_CXX="$ltdll_cmds"
14728: ;;
14729: cygwin* | mingw* | cegcc*)
14730: case $cc_basename in
14731: cl*)
14732: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14733: ;;
14734: *)
14735: 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'
14736: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14737: ;;
14738: esac
14739: ;;
14740: *)
14741: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14742: ;;
14743: esac
14744:
14745: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14746: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14747: test "$ld_shlibs_CXX" = no && can_build_shared=no
14748:
14749: with_gnu_ld_CXX=$with_gnu_ld
14750:
14751:
14752:
14753:
14754:
14755:
14756: #
14757: # Do we need to explicitly link libc?
14758: #
14759: case "x$archive_cmds_need_lc_CXX" in
14760: x|xyes)
14761: # Assume -lc should be added
14762: archive_cmds_need_lc_CXX=yes
14763:
14764: if test "$enable_shared" = yes && test "$GCC" = yes; then
14765: case $archive_cmds_CXX in
14766: *'~'*)
14767: # FIXME: we may have to deal with multi-command sequences.
14768: ;;
14769: '$CC '*)
14770: # Test whether the compiler implicitly links with -lc since on some
14771: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14772: # to ld, don't add -lc before -lgcc.
14773: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14774: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14775: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14776: echo $ECHO_N "(cached) $ECHO_C" >&6
14777: else
14778: $RM conftest*
14779: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780:
14781: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782: (eval $ac_compile) 2>&5
14783: ac_status=$?
14784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785: (exit $ac_status); } 2>conftest.err; then
14786: soname=conftest
14787: lib=conftest
14788: libobjs=conftest.$ac_objext
14789: deplibs=
14790: wl=$lt_prog_compiler_wl_CXX
14791: pic_flag=$lt_prog_compiler_pic_CXX
14792: compiler_flags=-v
14793: linker_flags=-v
14794: verstring=
14795: output_objdir=.
14796: libname=conftest
14797: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14798: allow_undefined_flag_CXX=
14799: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14800: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14801: ac_status=$?
14802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803: (exit $ac_status); }
14804: then
14805: lt_cv_archive_cmds_need_lc_CXX=no
14806: else
14807: lt_cv_archive_cmds_need_lc_CXX=yes
14808: fi
14809: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14810: else
14811: cat conftest.err 1>&5
14812: fi
14813: $RM conftest*
14814:
14815: fi
14816: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14817: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14818: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14819: ;;
14820: esac
14821: fi
14822: ;;
14823: esac
14824:
14825:
14826:
14827:
14828:
14829:
14830:
14831:
14832:
14833:
14834:
14835:
14836:
14837:
14838:
14839:
14840:
14841:
14842:
14843:
14844:
14845:
14846:
14847:
14848:
14849:
14850:
14851:
14852:
14853:
14854:
14855:
14856:
14857:
14858:
14859:
14860:
14861:
14862:
14863:
14864:
14865:
14866:
14867:
14868:
14869:
14870:
14871:
14872:
14873:
14874:
14875:
14876:
14877:
14878:
14879:
14880:
14881:
14882:
14883:
14884:
14885:
14886: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14887: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14888:
14889: library_names_spec=
14890: libname_spec='lib$name'
14891: soname_spec=
14892: shrext_cmds=".so"
14893: postinstall_cmds=
14894: postuninstall_cmds=
14895: finish_cmds=
14896: finish_eval=
14897: shlibpath_var=
14898: shlibpath_overrides_runpath=unknown
14899: version_type=none
14900: dynamic_linker="$host_os ld.so"
14901: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14902: need_lib_prefix=unknown
14903: hardcode_into_libs=no
14904:
14905: # when you set need_version to no, make sure it does not cause -set_version
14906: # flags to be left without arguments
14907: need_version=unknown
14908:
14909: case $host_os in
14910: aix3*)
14911: version_type=linux # correct to gnu/linux during the next big refactor
14912: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14913: shlibpath_var=LIBPATH
14914:
14915: # AIX 3 has no versioning support, so we append a major version to the name.
14916: soname_spec='${libname}${release}${shared_ext}$major'
14917: ;;
14918:
14919: aix[4-9]*)
14920: version_type=linux # correct to gnu/linux during the next big refactor
14921: need_lib_prefix=no
14922: need_version=no
14923: hardcode_into_libs=yes
14924: if test "$host_cpu" = ia64; then
14925: # AIX 5 supports IA64
14926: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14927: shlibpath_var=LD_LIBRARY_PATH
14928: else
14929: # With GCC up to 2.95.x, collect2 would create an import file
14930: # for dependence libraries. The import file would start with
14931: # the line `#! .'. This would cause the generated library to
14932: # depend on `.', always an invalid library. This was fixed in
14933: # development snapshots of GCC prior to 3.0.
14934: case $host_os in
14935: aix4 | aix4.[01] | aix4.[01].*)
14936: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14937: echo ' yes '
14938: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14939: :
14940: else
14941: can_build_shared=no
14942: fi
14943: ;;
14944: esac
14945: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14946: # soname into executable. Probably we can add versioning support to
14947: # collect2, so additional links can be useful in future.
14948: if test "$aix_use_runtimelinking" = yes; then
14949: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14950: # instead of lib<name>.a to let people know that these are not
14951: # typical AIX shared libraries.
14952: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953: else
14954: # We preserve .a as extension for shared libraries through AIX4.2
14955: # and later when we are not doing run time linking.
14956: library_names_spec='${libname}${release}.a $libname.a'
14957: soname_spec='${libname}${release}${shared_ext}$major'
14958: fi
14959: shlibpath_var=LIBPATH
14960: fi
14961: ;;
14962:
14963: amigaos*)
14964: case $host_cpu in
14965: powerpc)
14966: # Since July 2007 AmigaOS4 officially supports .so libraries.
14967: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14968: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969: ;;
14970: m68k)
14971: library_names_spec='$libname.ixlibrary $libname.a'
14972: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14973: 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'
14974: ;;
14975: esac
14976: ;;
14977:
14978: beos*)
14979: library_names_spec='${libname}${shared_ext}'
14980: dynamic_linker="$host_os ld.so"
14981: shlibpath_var=LIBRARY_PATH
14982: ;;
14983:
14984: bsdi[45]*)
14985: version_type=linux # correct to gnu/linux during the next big refactor
14986: need_version=no
14987: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988: soname_spec='${libname}${release}${shared_ext}$major'
14989: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14990: shlibpath_var=LD_LIBRARY_PATH
14991: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14992: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14993: # the default ld.so.conf also contains /usr/contrib/lib and
14994: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14995: # libtool to hard-code these into programs
14996: ;;
14997:
14998: cygwin* | mingw* | pw32* | cegcc*)
14999: version_type=windows
15000: shrext_cmds=".dll"
15001: need_version=no
15002: need_lib_prefix=no
15003:
15004: case $GCC,$cc_basename in
15005: yes,*)
15006: # gcc
15007: library_names_spec='$libname.dll.a'
15008: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15009: postinstall_cmds='base_file=`basename \${file}`~
15010: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15011: dldir=$destdir/`dirname \$dlpath`~
15012: test -d \$dldir || mkdir -p \$dldir~
15013: $install_prog $dir/$dlname \$dldir/$dlname~
15014: chmod a+x \$dldir/$dlname~
15015: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15016: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15017: fi'
15018: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15019: dlpath=$dir/\$dldll~
15020: $RM \$dlpath'
15021: shlibpath_overrides_runpath=yes
15022:
15023: case $host_os in
15024: cygwin*)
15025: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15026: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15027:
15028: ;;
15029: mingw* | cegcc*)
15030: # MinGW DLLs use traditional 'lib' prefix
15031: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15032: ;;
15033: pw32*)
15034: # pw32 DLLs use 'pw' prefix rather than 'lib'
15035: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036: ;;
15037: esac
15038: dynamic_linker='Win32 ld.exe'
15039: ;;
15040:
15041: *,cl*)
15042: # Native MSVC
15043: libname_spec='$name'
15044: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15045: library_names_spec='${libname}.dll.lib'
15046:
15047: case $build_os in
15048: mingw*)
15049: sys_lib_search_path_spec=
15050: lt_save_ifs=$IFS
15051: IFS=';'
15052: for lt_path in $LIB
15053: do
15054: IFS=$lt_save_ifs
15055: # Let DOS variable expansion print the short 8.3 style file name.
15056: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15057: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15058: done
15059: IFS=$lt_save_ifs
15060: # Convert to MSYS style.
15061: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15062: ;;
15063: cygwin*)
15064: # Convert to unix form, then to dos form, then back to unix form
15065: # but this time dos style (no spaces!) so that the unix form looks
15066: # like /cygdrive/c/PROGRA~1:/cygdr...
15067: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15068: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15069: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15070: ;;
15071: *)
15072: sys_lib_search_path_spec="$LIB"
15073: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15074: # It is most probably a Windows format PATH.
15075: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15076: else
15077: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15078: fi
15079: # FIXME: find the short name or the path components, as spaces are
15080: # common. (e.g. "Program Files" -> "PROGRA~1")
15081: ;;
15082: esac
15083:
15084: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15085: postinstall_cmds='base_file=`basename \${file}`~
15086: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15087: dldir=$destdir/`dirname \$dlpath`~
15088: test -d \$dldir || mkdir -p \$dldir~
15089: $install_prog $dir/$dlname \$dldir/$dlname'
15090: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15091: dlpath=$dir/\$dldll~
15092: $RM \$dlpath'
15093: shlibpath_overrides_runpath=yes
15094: dynamic_linker='Win32 link.exe'
15095: ;;
15096:
15097: *)
15098: # Assume MSVC wrapper
15099: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15100: dynamic_linker='Win32 ld.exe'
15101: ;;
15102: esac
15103: # FIXME: first we should search . and the directory the executable is in
15104: shlibpath_var=PATH
15105: ;;
15106:
15107: darwin* | rhapsody*)
15108: dynamic_linker="$host_os dyld"
15109: version_type=darwin
15110: need_lib_prefix=no
15111: need_version=no
15112: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15113: soname_spec='${libname}${release}${major}$shared_ext'
15114: shlibpath_overrides_runpath=yes
15115: shlibpath_var=DYLD_LIBRARY_PATH
15116: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15117:
15118: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15119: ;;
15120:
15121: dgux*)
15122: version_type=linux # correct to gnu/linux during the next big refactor
15123: need_lib_prefix=no
15124: need_version=no
15125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15126: soname_spec='${libname}${release}${shared_ext}$major'
15127: shlibpath_var=LD_LIBRARY_PATH
15128: ;;
15129:
15130: freebsd* | dragonfly*)
15131: # DragonFly does not have aout. When/if they implement a new
15132: # versioning mechanism, adjust this.
15133: if test -x /usr/bin/objformat; then
15134: objformat=`/usr/bin/objformat`
15135: else
15136: case $host_os in
15137: freebsd[23].*) objformat=aout ;;
15138: *) objformat=elf ;;
15139: esac
15140: fi
15141: version_type=freebsd-$objformat
15142: case $version_type in
15143: freebsd-elf*)
15144: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15145: need_version=no
15146: need_lib_prefix=no
15147: ;;
15148: freebsd-*)
15149: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15150: need_version=yes
15151: ;;
15152: esac
15153: shlibpath_var=LD_LIBRARY_PATH
15154: case $host_os in
15155: freebsd2.*)
15156: shlibpath_overrides_runpath=yes
15157: ;;
15158: freebsd3.[01]* | freebsdelf3.[01]*)
15159: shlibpath_overrides_runpath=yes
15160: hardcode_into_libs=yes
15161: ;;
15162: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15163: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15164: shlibpath_overrides_runpath=no
15165: hardcode_into_libs=yes
15166: ;;
15167: *) # from 4.6 on, and DragonFly
15168: shlibpath_overrides_runpath=yes
15169: hardcode_into_libs=yes
15170: ;;
15171: esac
15172: ;;
15173:
15174: gnu*)
15175: version_type=linux # correct to gnu/linux during the next big refactor
15176: need_lib_prefix=no
15177: need_version=no
15178: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15179: soname_spec='${libname}${release}${shared_ext}$major'
15180: shlibpath_var=LD_LIBRARY_PATH
15181: shlibpath_overrides_runpath=no
15182: hardcode_into_libs=yes
15183: ;;
15184:
15185: haiku*)
15186: version_type=linux # correct to gnu/linux during the next big refactor
15187: need_lib_prefix=no
15188: need_version=no
15189: dynamic_linker="$host_os runtime_loader"
15190: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15191: soname_spec='${libname}${release}${shared_ext}$major'
15192: shlibpath_var=LIBRARY_PATH
15193: shlibpath_overrides_runpath=yes
15194: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15195: hardcode_into_libs=yes
15196: ;;
15197:
15198: hpux9* | hpux10* | hpux11*)
15199: # Give a soname corresponding to the major version so that dld.sl refuses to
15200: # link against other versions.
15201: version_type=sunos
15202: need_lib_prefix=no
15203: need_version=no
15204: case $host_cpu in
15205: ia64*)
15206: shrext_cmds='.so'
15207: hardcode_into_libs=yes
15208: dynamic_linker="$host_os dld.so"
15209: shlibpath_var=LD_LIBRARY_PATH
15210: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15211: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212: soname_spec='${libname}${release}${shared_ext}$major'
15213: if test "X$HPUX_IA64_MODE" = X32; then
15214: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15215: else
15216: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15217: fi
15218: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15219: ;;
15220: hppa*64*)
15221: shrext_cmds='.sl'
15222: hardcode_into_libs=yes
15223: dynamic_linker="$host_os dld.sl"
15224: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15225: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15226: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227: soname_spec='${libname}${release}${shared_ext}$major'
15228: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15229: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15230: ;;
15231: *)
15232: shrext_cmds='.sl'
15233: dynamic_linker="$host_os dld.sl"
15234: shlibpath_var=SHLIB_PATH
15235: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15236: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237: soname_spec='${libname}${release}${shared_ext}$major'
15238: ;;
15239: esac
15240: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15241: postinstall_cmds='chmod 555 $lib'
15242: # or fails outright, so override atomically:
15243: install_override_mode=555
15244: ;;
15245:
15246: interix[3-9]*)
15247: version_type=linux # correct to gnu/linux during the next big refactor
15248: need_lib_prefix=no
15249: need_version=no
15250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15251: soname_spec='${libname}${release}${shared_ext}$major'
15252: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15253: shlibpath_var=LD_LIBRARY_PATH
15254: shlibpath_overrides_runpath=no
15255: hardcode_into_libs=yes
15256: ;;
15257:
15258: irix5* | irix6* | nonstopux*)
15259: case $host_os in
15260: nonstopux*) version_type=nonstopux ;;
15261: *)
15262: if test "$lt_cv_prog_gnu_ld" = yes; then
15263: version_type=linux # correct to gnu/linux during the next big refactor
15264: else
15265: version_type=irix
15266: fi ;;
15267: esac
15268: need_lib_prefix=no
15269: need_version=no
15270: soname_spec='${libname}${release}${shared_ext}$major'
15271: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15272: case $host_os in
15273: irix5* | nonstopux*)
15274: libsuff= shlibsuff=
15275: ;;
15276: *)
15277: case $LD in # libtool.m4 will add one of these switches to LD
15278: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15279: libsuff= shlibsuff= libmagic=32-bit;;
15280: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15281: libsuff=32 shlibsuff=N32 libmagic=N32;;
15282: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15283: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15284: *) libsuff= shlibsuff= libmagic=never-match;;
15285: esac
15286: ;;
15287: esac
15288: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15289: shlibpath_overrides_runpath=no
15290: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15291: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15292: hardcode_into_libs=yes
15293: ;;
15294:
15295: # No shared lib support for Linux oldld, aout, or coff.
15296: linux*oldld* | linux*aout* | linux*coff*)
15297: dynamic_linker=no
15298: ;;
15299:
15300: # This must be glibc/ELF.
15301: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15302: version_type=linux # correct to gnu/linux during the next big refactor
15303: need_lib_prefix=no
15304: need_version=no
15305: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306: soname_spec='${libname}${release}${shared_ext}$major'
15307: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15308: shlibpath_var=LD_LIBRARY_PATH
15309: shlibpath_overrides_runpath=no
15310:
15311: # Some binutils ld are patched to set DT_RUNPATH
15312: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15313: echo $ECHO_N "(cached) $ECHO_C" >&6
15314: else
15315: lt_cv_shlibpath_overrides_runpath=no
15316: save_LDFLAGS=$LDFLAGS
15317: save_libdir=$libdir
15318: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15319: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
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: int
15328: main ()
15329: {
15330:
15331: ;
15332: return 0;
15333: }
15334: _ACEOF
15335: rm -f conftest.$ac_objext conftest$ac_exeext
15336: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337: (eval $ac_link) 2>conftest.er1
15338: ac_status=$?
15339: grep -v '^ *+' conftest.er1 >conftest.err
15340: rm -f conftest.er1
15341: cat conftest.err >&5
15342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343: (exit $ac_status); } &&
15344: { ac_try='test -z "$ac_cxx_werror_flag"
15345: || test ! -s conftest.err'
15346: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347: (eval $ac_try) 2>&5
15348: ac_status=$?
15349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350: (exit $ac_status); }; } &&
15351: { ac_try='test -s conftest$ac_exeext'
15352: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353: (eval $ac_try) 2>&5
15354: ac_status=$?
15355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356: (exit $ac_status); }; }; then
15357: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15358: lt_cv_shlibpath_overrides_runpath=yes
15359: fi
15360:
15361: else
15362: echo "$as_me: failed program was:" >&5
15363: sed 's/^/| /' conftest.$ac_ext >&5
15364:
15365: fi
15366: rm -f conftest.err conftest.$ac_objext \
15367: conftest$ac_exeext conftest.$ac_ext
15368: LDFLAGS=$save_LDFLAGS
15369: libdir=$save_libdir
15370:
15371: fi
15372:
15373: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15374:
15375: # This implies no fast_install, which is unacceptable.
15376: # Some rework will be needed to allow for fast_install
15377: # before this can be enabled.
15378: hardcode_into_libs=yes
15379:
15380: # Append ld.so.conf contents to the search path
15381: if test -f /etc/ld.so.conf; then
15382: 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' ' '`
15383: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15384: fi
15385:
15386: # We used to test for /lib/ld.so.1 and disable shared libraries on
15387: # powerpc, because MkLinux only supported shared libraries with the
15388: # GNU dynamic linker. Since this was broken with cross compilers,
15389: # most powerpc-linux boxes support dynamic linking these days and
15390: # people can always --disable-shared, the test was removed, and we
15391: # assume the GNU/Linux dynamic linker is in use.
15392: dynamic_linker='GNU/Linux ld.so'
15393: ;;
15394:
15395: netbsd*)
15396: version_type=sunos
15397: need_lib_prefix=no
15398: need_version=no
15399: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15400: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15401: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15402: dynamic_linker='NetBSD (a.out) ld.so'
15403: else
15404: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15405: soname_spec='${libname}${release}${shared_ext}$major'
15406: dynamic_linker='NetBSD ld.elf_so'
15407: fi
15408: shlibpath_var=LD_LIBRARY_PATH
15409: shlibpath_overrides_runpath=yes
15410: hardcode_into_libs=yes
15411: ;;
15412:
15413: newsos6)
15414: version_type=linux # correct to gnu/linux during the next big refactor
15415: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416: shlibpath_var=LD_LIBRARY_PATH
15417: shlibpath_overrides_runpath=yes
15418: ;;
15419:
15420: *nto* | *qnx*)
15421: version_type=qnx
15422: need_lib_prefix=no
15423: need_version=no
15424: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425: soname_spec='${libname}${release}${shared_ext}$major'
15426: shlibpath_var=LD_LIBRARY_PATH
15427: shlibpath_overrides_runpath=no
15428: hardcode_into_libs=yes
15429: dynamic_linker='ldqnx.so'
15430: ;;
15431:
15432: openbsd*)
15433: version_type=sunos
15434: sys_lib_dlsearch_path_spec="/usr/lib"
15435: need_lib_prefix=no
15436: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15437: case $host_os in
15438: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15439: *) need_version=no ;;
15440: esac
15441: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15442: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15443: shlibpath_var=LD_LIBRARY_PATH
15444: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15445: case $host_os in
15446: openbsd2.[89] | openbsd2.[89].*)
15447: shlibpath_overrides_runpath=no
15448: ;;
15449: *)
15450: shlibpath_overrides_runpath=yes
15451: ;;
15452: esac
15453: else
15454: shlibpath_overrides_runpath=yes
15455: fi
15456: ;;
15457:
15458: os2*)
15459: libname_spec='$name'
15460: shrext_cmds=".dll"
15461: need_lib_prefix=no
15462: library_names_spec='$libname${shared_ext} $libname.a'
15463: dynamic_linker='OS/2 ld.exe'
15464: shlibpath_var=LIBPATH
15465: ;;
15466:
15467: osf3* | osf4* | osf5*)
15468: version_type=osf
15469: need_lib_prefix=no
15470: need_version=no
15471: soname_spec='${libname}${release}${shared_ext}$major'
15472: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473: shlibpath_var=LD_LIBRARY_PATH
15474: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15475: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15476: ;;
15477:
15478: rdos*)
15479: dynamic_linker=no
15480: ;;
15481:
15482: solaris*)
15483: version_type=linux # correct to gnu/linux during the next big refactor
15484: need_lib_prefix=no
15485: need_version=no
15486: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487: soname_spec='${libname}${release}${shared_ext}$major'
15488: shlibpath_var=LD_LIBRARY_PATH
15489: shlibpath_overrides_runpath=yes
15490: hardcode_into_libs=yes
15491: # ldd complains unless libraries are executable
15492: postinstall_cmds='chmod +x $lib'
15493: ;;
15494:
15495: sunos4*)
15496: version_type=sunos
15497: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15499: shlibpath_var=LD_LIBRARY_PATH
15500: shlibpath_overrides_runpath=yes
15501: if test "$with_gnu_ld" = yes; then
15502: need_lib_prefix=no
15503: fi
15504: need_version=yes
15505: ;;
15506:
15507: sysv4 | sysv4.3*)
15508: version_type=linux # correct to gnu/linux during the next big refactor
15509: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510: soname_spec='${libname}${release}${shared_ext}$major'
15511: shlibpath_var=LD_LIBRARY_PATH
15512: case $host_vendor in
15513: sni)
15514: shlibpath_overrides_runpath=no
15515: need_lib_prefix=no
15516: runpath_var=LD_RUN_PATH
15517: ;;
15518: siemens)
15519: need_lib_prefix=no
15520: ;;
15521: motorola)
15522: need_lib_prefix=no
15523: need_version=no
15524: shlibpath_overrides_runpath=no
15525: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15526: ;;
15527: esac
15528: ;;
15529:
15530: sysv4*MP*)
15531: if test -d /usr/nec ;then
15532: version_type=linux # correct to gnu/linux during the next big refactor
15533: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15534: soname_spec='$libname${shared_ext}.$major'
15535: shlibpath_var=LD_LIBRARY_PATH
15536: fi
15537: ;;
15538:
15539: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15540: version_type=freebsd-elf
15541: need_lib_prefix=no
15542: need_version=no
15543: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15544: soname_spec='${libname}${release}${shared_ext}$major'
15545: shlibpath_var=LD_LIBRARY_PATH
15546: shlibpath_overrides_runpath=yes
15547: hardcode_into_libs=yes
15548: if test "$with_gnu_ld" = yes; then
15549: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15550: else
15551: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15552: case $host_os in
15553: sco3.2v5*)
15554: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15555: ;;
15556: esac
15557: fi
15558: sys_lib_dlsearch_path_spec='/usr/lib'
15559: ;;
15560:
15561: tpf*)
15562: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15563: version_type=linux # correct to gnu/linux during the next big refactor
15564: need_lib_prefix=no
15565: need_version=no
15566: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567: shlibpath_var=LD_LIBRARY_PATH
15568: shlibpath_overrides_runpath=no
15569: hardcode_into_libs=yes
15570: ;;
15571:
15572: uts4*)
15573: version_type=linux # correct to gnu/linux during the next big refactor
15574: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575: soname_spec='${libname}${release}${shared_ext}$major'
15576: shlibpath_var=LD_LIBRARY_PATH
15577: ;;
15578:
15579: *)
15580: dynamic_linker=no
15581: ;;
15582: esac
15583: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15584: echo "${ECHO_T}$dynamic_linker" >&6
15585: test "$dynamic_linker" = no && can_build_shared=no
15586:
15587: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15588: if test "$GCC" = yes; then
15589: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590: fi
15591:
15592: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15593: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15594: fi
15595: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15596: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15597: fi
15598:
15599:
15600:
15601:
15602:
15603:
15604:
15605:
15606:
15607:
15608:
15609:
15610:
15611:
15612:
15613:
15614:
15615:
15616:
15617:
15618:
15619:
15620:
15621:
15622:
15623:
15624:
15625:
15626:
15627:
15628:
15629:
15630:
15631:
15632:
15633:
15634:
15635:
15636: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15637: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15638: hardcode_action_CXX=
15639: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15640: test -n "$runpath_var_CXX" ||
15641: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15642:
15643: # We can hardcode non-existent directories.
15644: if test "$hardcode_direct_CXX" != no &&
15645: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15646: # have to relink, otherwise we might link with an installed library
15647: # when we should be linking with a yet-to-be-installed one
15648: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15649: test "$hardcode_minus_L_CXX" != no; then
15650: # Linking always hardcodes the temporary library directory.
15651: hardcode_action_CXX=relink
15652: else
15653: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15654: hardcode_action_CXX=immediate
15655: fi
15656: else
15657: # We cannot hardcode anything, or else we can only hardcode existing
15658: # directories.
15659: hardcode_action_CXX=unsupported
15660: fi
15661: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15662: echo "${ECHO_T}$hardcode_action_CXX" >&6
15663:
15664: if test "$hardcode_action_CXX" = relink ||
15665: test "$inherit_rpath_CXX" = yes; then
15666: # Fast installation is not supported
15667: enable_fast_install=no
15668: elif test "$shlibpath_overrides_runpath" = yes ||
15669: test "$enable_shared" = no; then
15670: # Fast installation is not necessary
15671: enable_fast_install=needless
15672: fi
15673:
15674:
15675:
15676:
15677:
15678:
15679:
15680: fi # test -n "$compiler"
15681:
15682: CC=$lt_save_CC
15683: CFLAGS=$lt_save_CFLAGS
15684: LDCXX=$LD
15685: LD=$lt_save_LD
15686: GCC=$lt_save_GCC
15687: with_gnu_ld=$lt_save_with_gnu_ld
15688: lt_cv_path_LDCXX=$lt_cv_path_LD
15689: lt_cv_path_LD=$lt_save_path_LD
15690: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15691: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15692: fi # test "$_lt_caught_CXX_error" != yes
15693:
15694: ac_ext=c
15695: ac_cpp='$CPP $CPPFLAGS'
15696: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15697: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15698: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15699:
15700:
15701:
15702:
15703:
15704:
15705:
15706:
15707:
15708:
15709:
15710:
15711:
15712:
15713:
15714: ac_config_commands="$ac_config_commands libtool"
15715:
15716:
15717:
15718:
15719: # Only expand once:
15720:
15721:
15722: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15723: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15724: if test "${libltdl_cv_shlibext+set}" = set; then
15725: echo $ECHO_N "(cached) $ECHO_C" >&6
15726: else
15727:
15728: module=yes
15729: eval libltdl_cv_shlibext=$shrext_cmds
15730: module=no
15731: eval libltdl_cv_shrext=$shrext_cmds
15732:
15733: fi
15734: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15735: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15736: if test -n "$libltdl_cv_shlibext"; then
15737:
15738: cat >>confdefs.h <<_ACEOF
15739: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15740: _ACEOF
15741:
15742: fi
15743: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15744:
15745: cat >>confdefs.h <<_ACEOF
15746: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15747: _ACEOF
15748:
15749: fi
15750:
15751: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15752: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15753: if test "${lt_cv_module_path_var+set}" = set; then
15754: echo $ECHO_N "(cached) $ECHO_C" >&6
15755: else
15756: lt_cv_module_path_var="$shlibpath_var"
15757: fi
15758: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15759: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15760: if test -n "$lt_cv_module_path_var"; then
15761:
15762: cat >>confdefs.h <<_ACEOF
15763: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15764: _ACEOF
15765:
15766: fi
15767:
15768: echo "$as_me:$LINENO: checking for the default library search path" >&5
15769: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15770: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15771: echo $ECHO_N "(cached) $ECHO_C" >&6
15772: else
15773: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15774: fi
15775: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15776: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15777: if test -n "$lt_cv_sys_dlsearch_path"; then
15778: sys_dlsearch_path=
15779: for dir in $lt_cv_sys_dlsearch_path; do
15780: if test -z "$sys_dlsearch_path"; then
15781: sys_dlsearch_path="$dir"
15782: else
15783: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15784: fi
15785: done
15786:
15787: cat >>confdefs.h <<_ACEOF
15788: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15789: _ACEOF
15790:
15791: fi
15792:
15793:
15794: LT_DLLOADERS=
15795:
15796:
15797: ac_ext=c
15798: ac_cpp='$CPP $CPPFLAGS'
15799: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802:
15803:
15804: LIBADD_DLOPEN=
15805: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15806: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15807: if test "${ac_cv_search_dlopen+set}" = set; then
15808: echo $ECHO_N "(cached) $ECHO_C" >&6
15809: else
15810: ac_func_search_save_LIBS=$LIBS
15811: ac_cv_search_dlopen=no
15812: cat >conftest.$ac_ext <<_ACEOF
15813: /* confdefs.h. */
15814: _ACEOF
15815: cat confdefs.h >>conftest.$ac_ext
15816: cat >>conftest.$ac_ext <<_ACEOF
15817: /* end confdefs.h. */
15818:
15819: /* Override any gcc2 internal prototype to avoid an error. */
15820: #ifdef __cplusplus
15821: extern "C"
15822: #endif
15823: /* We use char because int might match the return type of a gcc2
15824: builtin and then its argument prototype would still apply. */
15825: char dlopen ();
15826: int
15827: main ()
15828: {
15829: dlopen ();
15830: ;
15831: return 0;
15832: }
15833: _ACEOF
15834: rm -f conftest.$ac_objext conftest$ac_exeext
15835: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15836: (eval $ac_link) 2>conftest.er1
15837: ac_status=$?
15838: grep -v '^ *+' conftest.er1 >conftest.err
15839: rm -f conftest.er1
15840: cat conftest.err >&5
15841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842: (exit $ac_status); } &&
15843: { ac_try='test -z "$ac_c_werror_flag"
15844: || test ! -s conftest.err'
15845: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846: (eval $ac_try) 2>&5
15847: ac_status=$?
15848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849: (exit $ac_status); }; } &&
15850: { ac_try='test -s conftest$ac_exeext'
15851: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852: (eval $ac_try) 2>&5
15853: ac_status=$?
15854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855: (exit $ac_status); }; }; then
15856: ac_cv_search_dlopen="none required"
15857: else
15858: echo "$as_me: failed program was:" >&5
15859: sed 's/^/| /' conftest.$ac_ext >&5
15860:
15861: fi
15862: rm -f conftest.err conftest.$ac_objext \
15863: conftest$ac_exeext conftest.$ac_ext
15864: if test "$ac_cv_search_dlopen" = no; then
15865: for ac_lib in dl; do
15866: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15867: cat >conftest.$ac_ext <<_ACEOF
15868: /* confdefs.h. */
15869: _ACEOF
15870: cat confdefs.h >>conftest.$ac_ext
15871: cat >>conftest.$ac_ext <<_ACEOF
15872: /* end confdefs.h. */
15873:
15874: /* Override any gcc2 internal prototype to avoid an error. */
15875: #ifdef __cplusplus
15876: extern "C"
15877: #endif
15878: /* We use char because int might match the return type of a gcc2
15879: builtin and then its argument prototype would still apply. */
15880: char dlopen ();
15881: int
15882: main ()
15883: {
15884: dlopen ();
15885: ;
15886: return 0;
15887: }
15888: _ACEOF
15889: rm -f conftest.$ac_objext conftest$ac_exeext
15890: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15891: (eval $ac_link) 2>conftest.er1
15892: ac_status=$?
15893: grep -v '^ *+' conftest.er1 >conftest.err
15894: rm -f conftest.er1
15895: cat conftest.err >&5
15896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897: (exit $ac_status); } &&
15898: { ac_try='test -z "$ac_c_werror_flag"
15899: || test ! -s conftest.err'
15900: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901: (eval $ac_try) 2>&5
15902: ac_status=$?
15903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904: (exit $ac_status); }; } &&
15905: { ac_try='test -s conftest$ac_exeext'
15906: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907: (eval $ac_try) 2>&5
15908: ac_status=$?
15909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910: (exit $ac_status); }; }; then
15911: ac_cv_search_dlopen="-l$ac_lib"
15912: break
15913: else
15914: echo "$as_me: failed program was:" >&5
15915: sed 's/^/| /' conftest.$ac_ext >&5
15916:
15917: fi
15918: rm -f conftest.err conftest.$ac_objext \
15919: conftest$ac_exeext conftest.$ac_ext
15920: done
15921: fi
15922: LIBS=$ac_func_search_save_LIBS
15923: fi
15924: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15925: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
15926: if test "$ac_cv_search_dlopen" != no; then
15927: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
15928:
15929: cat >>confdefs.h <<\_ACEOF
15930: #define HAVE_LIBDL 1
15931: _ACEOF
15932:
15933: if test "$ac_cv_search_dlopen" != "none required" ; then
15934: LIBADD_DLOPEN="-ldl"
15935: fi
15936: libltdl_cv_lib_dl_dlopen="yes"
15937: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15938: else
15939: cat >conftest.$ac_ext <<_ACEOF
15940: /* confdefs.h. */
15941: _ACEOF
15942: cat confdefs.h >>conftest.$ac_ext
15943: cat >>conftest.$ac_ext <<_ACEOF
15944: /* end confdefs.h. */
15945: #if HAVE_DLFCN_H
15946: # include <dlfcn.h>
15947: #endif
15948:
15949: int
15950: main ()
15951: {
15952: dlopen(0, 0);
15953: ;
15954: return 0;
15955: }
15956: _ACEOF
15957: rm -f conftest.$ac_objext conftest$ac_exeext
15958: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959: (eval $ac_link) 2>conftest.er1
15960: ac_status=$?
15961: grep -v '^ *+' conftest.er1 >conftest.err
15962: rm -f conftest.er1
15963: cat conftest.err >&5
15964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965: (exit $ac_status); } &&
15966: { ac_try='test -z "$ac_c_werror_flag"
15967: || test ! -s conftest.err'
15968: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969: (eval $ac_try) 2>&5
15970: ac_status=$?
15971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972: (exit $ac_status); }; } &&
15973: { ac_try='test -s conftest$ac_exeext'
15974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975: (eval $ac_try) 2>&5
15976: ac_status=$?
15977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978: (exit $ac_status); }; }; then
15979:
15980: cat >>confdefs.h <<\_ACEOF
15981: #define HAVE_LIBDL 1
15982: _ACEOF
15983:
15984: libltdl_cv_func_dlopen="yes"
15985: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15986: else
15987: echo "$as_me: failed program was:" >&5
15988: sed 's/^/| /' conftest.$ac_ext >&5
15989:
15990: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15991: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15992: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15993: echo $ECHO_N "(cached) $ECHO_C" >&6
15994: else
15995: ac_check_lib_save_LIBS=$LIBS
15996: LIBS="-lsvld $LIBS"
15997: cat >conftest.$ac_ext <<_ACEOF
15998: /* confdefs.h. */
15999: _ACEOF
16000: cat confdefs.h >>conftest.$ac_ext
16001: cat >>conftest.$ac_ext <<_ACEOF
16002: /* end confdefs.h. */
16003:
16004: /* Override any gcc2 internal prototype to avoid an error. */
16005: #ifdef __cplusplus
16006: extern "C"
16007: #endif
16008: /* We use char because int might match the return type of a gcc2
16009: builtin and then its argument prototype would still apply. */
16010: char dlopen ();
16011: int
16012: main ()
16013: {
16014: dlopen ();
16015: ;
16016: return 0;
16017: }
16018: _ACEOF
16019: rm -f conftest.$ac_objext conftest$ac_exeext
16020: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021: (eval $ac_link) 2>conftest.er1
16022: ac_status=$?
16023: grep -v '^ *+' conftest.er1 >conftest.err
16024: rm -f conftest.er1
16025: cat conftest.err >&5
16026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027: (exit $ac_status); } &&
16028: { ac_try='test -z "$ac_c_werror_flag"
16029: || test ! -s conftest.err'
16030: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031: (eval $ac_try) 2>&5
16032: ac_status=$?
16033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034: (exit $ac_status); }; } &&
16035: { ac_try='test -s conftest$ac_exeext'
16036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037: (eval $ac_try) 2>&5
16038: ac_status=$?
16039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040: (exit $ac_status); }; }; then
16041: ac_cv_lib_svld_dlopen=yes
16042: else
16043: echo "$as_me: failed program was:" >&5
16044: sed 's/^/| /' conftest.$ac_ext >&5
16045:
16046: ac_cv_lib_svld_dlopen=no
16047: fi
16048: rm -f conftest.err conftest.$ac_objext \
16049: conftest$ac_exeext conftest.$ac_ext
16050: LIBS=$ac_check_lib_save_LIBS
16051: fi
16052: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16053: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16054: if test $ac_cv_lib_svld_dlopen = yes; then
16055:
16056: cat >>confdefs.h <<\_ACEOF
16057: #define HAVE_LIBDL 1
16058: _ACEOF
16059:
16060: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16061: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16062: fi
16063:
16064: fi
16065: rm -f conftest.err conftest.$ac_objext \
16066: conftest$ac_exeext conftest.$ac_ext
16067: fi
16068:
16069: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16070: then
16071: lt_save_LIBS="$LIBS"
16072: LIBS="$LIBS $LIBADD_DLOPEN"
16073:
16074: for ac_func in dlerror
16075: do
16076: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16077: echo "$as_me:$LINENO: checking for $ac_func" >&5
16078: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16079: if eval "test \"\${$as_ac_var+set}\" = set"; then
16080: echo $ECHO_N "(cached) $ECHO_C" >&6
16081: else
16082: cat >conftest.$ac_ext <<_ACEOF
16083: /* confdefs.h. */
16084: _ACEOF
16085: cat confdefs.h >>conftest.$ac_ext
16086: cat >>conftest.$ac_ext <<_ACEOF
16087: /* end confdefs.h. */
16088: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16089: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16090: #define $ac_func innocuous_$ac_func
16091:
16092: /* System header to define __stub macros and hopefully few prototypes,
16093: which can conflict with char $ac_func (); below.
16094: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16095: <limits.h> exists even on freestanding compilers. */
16096:
16097: #ifdef __STDC__
16098: # include <limits.h>
16099: #else
16100: # include <assert.h>
16101: #endif
16102:
16103: #undef $ac_func
16104:
16105: /* Override any gcc2 internal prototype to avoid an error. */
16106: #ifdef __cplusplus
16107: extern "C"
16108: {
16109: #endif
16110: /* We use char because int might match the return type of a gcc2
16111: builtin and then its argument prototype would still apply. */
16112: char $ac_func ();
16113: /* The GNU C library defines this for functions which it implements
16114: to always fail with ENOSYS. Some functions are actually named
16115: something starting with __ and the normal name is an alias. */
16116: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16117: choke me
16118: #else
16119: char (*f) () = $ac_func;
16120: #endif
16121: #ifdef __cplusplus
16122: }
16123: #endif
16124:
16125: int
16126: main ()
16127: {
16128: return f != $ac_func;
16129: ;
16130: return 0;
16131: }
16132: _ACEOF
16133: rm -f conftest.$ac_objext conftest$ac_exeext
16134: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16135: (eval $ac_link) 2>conftest.er1
16136: ac_status=$?
16137: grep -v '^ *+' conftest.er1 >conftest.err
16138: rm -f conftest.er1
16139: cat conftest.err >&5
16140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141: (exit $ac_status); } &&
16142: { ac_try='test -z "$ac_c_werror_flag"
16143: || test ! -s conftest.err'
16144: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145: (eval $ac_try) 2>&5
16146: ac_status=$?
16147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148: (exit $ac_status); }; } &&
16149: { ac_try='test -s conftest$ac_exeext'
16150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151: (eval $ac_try) 2>&5
16152: ac_status=$?
16153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154: (exit $ac_status); }; }; then
16155: eval "$as_ac_var=yes"
16156: else
16157: echo "$as_me: failed program was:" >&5
16158: sed 's/^/| /' conftest.$ac_ext >&5
16159:
16160: eval "$as_ac_var=no"
16161: fi
16162: rm -f conftest.err conftest.$ac_objext \
16163: conftest$ac_exeext conftest.$ac_ext
16164: fi
16165: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16166: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16167: if test `eval echo '${'$as_ac_var'}'` = yes; then
16168: cat >>confdefs.h <<_ACEOF
16169: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16170: _ACEOF
16171:
16172: fi
16173: done
16174:
16175: LIBS="$lt_save_LIBS"
16176: fi
16177:
16178:
16179: LIBADD_SHL_LOAD=
16180: echo "$as_me:$LINENO: checking for shl_load" >&5
16181: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16182: if test "${ac_cv_func_shl_load+set}" = set; then
16183: echo $ECHO_N "(cached) $ECHO_C" >&6
16184: else
16185: cat >conftest.$ac_ext <<_ACEOF
16186: /* confdefs.h. */
16187: _ACEOF
16188: cat confdefs.h >>conftest.$ac_ext
16189: cat >>conftest.$ac_ext <<_ACEOF
16190: /* end confdefs.h. */
16191: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16192: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16193: #define shl_load innocuous_shl_load
16194:
16195: /* System header to define __stub macros and hopefully few prototypes,
16196: which can conflict with char shl_load (); below.
16197: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16198: <limits.h> exists even on freestanding compilers. */
16199:
16200: #ifdef __STDC__
16201: # include <limits.h>
16202: #else
16203: # include <assert.h>
16204: #endif
16205:
16206: #undef shl_load
16207:
16208: /* Override any gcc2 internal prototype to avoid an error. */
16209: #ifdef __cplusplus
16210: extern "C"
16211: {
16212: #endif
16213: /* We use char because int might match the return type of a gcc2
16214: builtin and then its argument prototype would still apply. */
16215: char shl_load ();
16216: /* The GNU C library defines this for functions which it implements
16217: to always fail with ENOSYS. Some functions are actually named
16218: something starting with __ and the normal name is an alias. */
16219: #if defined (__stub_shl_load) || defined (__stub___shl_load)
16220: choke me
16221: #else
16222: char (*f) () = shl_load;
16223: #endif
16224: #ifdef __cplusplus
16225: }
16226: #endif
16227:
16228: int
16229: main ()
16230: {
16231: return f != shl_load;
16232: ;
16233: return 0;
16234: }
16235: _ACEOF
16236: rm -f conftest.$ac_objext conftest$ac_exeext
16237: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16238: (eval $ac_link) 2>conftest.er1
16239: ac_status=$?
16240: grep -v '^ *+' conftest.er1 >conftest.err
16241: rm -f conftest.er1
16242: cat conftest.err >&5
16243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244: (exit $ac_status); } &&
16245: { ac_try='test -z "$ac_c_werror_flag"
16246: || test ! -s conftest.err'
16247: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248: (eval $ac_try) 2>&5
16249: ac_status=$?
16250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251: (exit $ac_status); }; } &&
16252: { ac_try='test -s conftest$ac_exeext'
16253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254: (eval $ac_try) 2>&5
16255: ac_status=$?
16256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257: (exit $ac_status); }; }; then
16258: ac_cv_func_shl_load=yes
16259: else
16260: echo "$as_me: failed program was:" >&5
16261: sed 's/^/| /' conftest.$ac_ext >&5
16262:
16263: ac_cv_func_shl_load=no
16264: fi
16265: rm -f conftest.err conftest.$ac_objext \
16266: conftest$ac_exeext conftest.$ac_ext
16267: fi
16268: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16269: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16270: if test $ac_cv_func_shl_load = yes; then
16271:
16272: cat >>confdefs.h <<\_ACEOF
16273: #define HAVE_SHL_LOAD 1
16274: _ACEOF
16275:
16276: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16277: else
16278: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16279: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16280: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16281: echo $ECHO_N "(cached) $ECHO_C" >&6
16282: else
16283: ac_check_lib_save_LIBS=$LIBS
16284: LIBS="-ldld $LIBS"
16285: cat >conftest.$ac_ext <<_ACEOF
16286: /* confdefs.h. */
16287: _ACEOF
16288: cat confdefs.h >>conftest.$ac_ext
16289: cat >>conftest.$ac_ext <<_ACEOF
16290: /* end confdefs.h. */
1.10 paf 16291:
1.66 paf 16292: /* Override any gcc2 internal prototype to avoid an error. */
16293: #ifdef __cplusplus
16294: extern "C"
16295: #endif
16296: /* We use char because int might match the return type of a gcc2
16297: builtin and then its argument prototype would still apply. */
16298: char shl_load ();
16299: int
16300: main ()
16301: {
16302: shl_load ();
16303: ;
16304: return 0;
16305: }
16306: _ACEOF
16307: rm -f conftest.$ac_objext conftest$ac_exeext
16308: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16309: (eval $ac_link) 2>conftest.er1
1.66 paf 16310: ac_status=$?
1.86 paf 16311: grep -v '^ *+' conftest.er1 >conftest.err
16312: rm -f conftest.er1
16313: cat conftest.err >&5
1.66 paf 16314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315: (exit $ac_status); } &&
1.86 paf 16316: { ac_try='test -z "$ac_c_werror_flag"
16317: || test ! -s conftest.err'
16318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319: (eval $ac_try) 2>&5
16320: ac_status=$?
16321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322: (exit $ac_status); }; } &&
16323: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325: (eval $ac_try) 2>&5
16326: ac_status=$?
16327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328: (exit $ac_status); }; }; then
16329: ac_cv_lib_dld_shl_load=yes
16330: else
16331: echo "$as_me: failed program was:" >&5
16332: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 16333:
1.66 paf 16334: ac_cv_lib_dld_shl_load=no
16335: fi
1.86 paf 16336: rm -f conftest.err conftest.$ac_objext \
16337: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16338: LIBS=$ac_check_lib_save_LIBS
16339: fi
16340: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16341: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16342: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 16343:
1.66 paf 16344: cat >>confdefs.h <<\_ACEOF
16345: #define HAVE_SHL_LOAD 1
16346: _ACEOF
1.1 paf 16347:
1.128 moko 16348: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16349: LIBADD_SHL_LOAD="-ldld"
16350: fi
16351:
16352: fi
16353:
16354:
16355:
16356: case $host_os in
16357: darwin[1567].*)
16358: # We only want this for pre-Mac OS X 10.4.
16359: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
16360: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
16361: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
16362: echo $ECHO_N "(cached) $ECHO_C" >&6
16363: else
16364: cat >conftest.$ac_ext <<_ACEOF
16365: /* confdefs.h. */
16366: _ACEOF
16367: cat confdefs.h >>conftest.$ac_ext
16368: cat >>conftest.$ac_ext <<_ACEOF
16369: /* end confdefs.h. */
16370: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
16371: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16372: #define _dyld_func_lookup innocuous__dyld_func_lookup
16373:
16374: /* System header to define __stub macros and hopefully few prototypes,
16375: which can conflict with char _dyld_func_lookup (); below.
16376: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16377: <limits.h> exists even on freestanding compilers. */
16378:
16379: #ifdef __STDC__
16380: # include <limits.h>
16381: #else
16382: # include <assert.h>
16383: #endif
16384:
16385: #undef _dyld_func_lookup
16386:
16387: /* Override any gcc2 internal prototype to avoid an error. */
16388: #ifdef __cplusplus
16389: extern "C"
16390: {
16391: #endif
16392: /* We use char because int might match the return type of a gcc2
16393: builtin and then its argument prototype would still apply. */
16394: char _dyld_func_lookup ();
16395: /* The GNU C library defines this for functions which it implements
16396: to always fail with ENOSYS. Some functions are actually named
16397: something starting with __ and the normal name is an alias. */
16398: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
16399: choke me
16400: #else
16401: char (*f) () = _dyld_func_lookup;
16402: #endif
16403: #ifdef __cplusplus
16404: }
16405: #endif
16406:
16407: int
16408: main ()
16409: {
16410: return f != _dyld_func_lookup;
16411: ;
16412: return 0;
16413: }
16414: _ACEOF
16415: rm -f conftest.$ac_objext conftest$ac_exeext
16416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417: (eval $ac_link) 2>conftest.er1
16418: ac_status=$?
16419: grep -v '^ *+' conftest.er1 >conftest.err
16420: rm -f conftest.er1
16421: cat conftest.err >&5
16422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423: (exit $ac_status); } &&
16424: { ac_try='test -z "$ac_c_werror_flag"
16425: || test ! -s conftest.err'
16426: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427: (eval $ac_try) 2>&5
16428: ac_status=$?
16429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430: (exit $ac_status); }; } &&
16431: { ac_try='test -s conftest$ac_exeext'
16432: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433: (eval $ac_try) 2>&5
16434: ac_status=$?
16435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436: (exit $ac_status); }; }; then
16437: ac_cv_func__dyld_func_lookup=yes
16438: else
16439: echo "$as_me: failed program was:" >&5
16440: sed 's/^/| /' conftest.$ac_ext >&5
16441:
16442: ac_cv_func__dyld_func_lookup=no
16443: fi
16444: rm -f conftest.err conftest.$ac_objext \
16445: conftest$ac_exeext conftest.$ac_ext
16446: fi
16447: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
16448: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
16449: if test $ac_cv_func__dyld_func_lookup = yes; then
16450:
16451: cat >>confdefs.h <<\_ACEOF
16452: #define HAVE_DYLD 1
16453: _ACEOF
16454:
16455: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16456: fi
16457:
16458: ;;
16459: beos*)
16460: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16461: ;;
16462: cygwin* | mingw* | os2* | pw32*)
16463: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
16464: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
16465: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
16466: echo $ECHO_N "(cached) $ECHO_C" >&6
16467: else
16468: cat >conftest.$ac_ext <<_ACEOF
16469: /* confdefs.h. */
16470: _ACEOF
16471: cat confdefs.h >>conftest.$ac_ext
16472: cat >>conftest.$ac_ext <<_ACEOF
16473: /* end confdefs.h. */
16474: #include <sys/cygwin.h>
16475:
16476: int
16477: main ()
16478: {
16479: #ifndef cygwin_conv_path
16480: char *p = (char *) cygwin_conv_path;
16481: #endif
16482:
16483: ;
16484: return 0;
16485: }
16486: _ACEOF
16487: rm -f conftest.$ac_objext
16488: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16489: (eval $ac_compile) 2>conftest.er1
16490: ac_status=$?
16491: grep -v '^ *+' conftest.er1 >conftest.err
16492: rm -f conftest.er1
16493: cat conftest.err >&5
16494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495: (exit $ac_status); } &&
16496: { ac_try='test -z "$ac_c_werror_flag"
16497: || test ! -s conftest.err'
16498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499: (eval $ac_try) 2>&5
16500: ac_status=$?
16501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502: (exit $ac_status); }; } &&
16503: { ac_try='test -s conftest.$ac_objext'
16504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505: (eval $ac_try) 2>&5
16506: ac_status=$?
16507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508: (exit $ac_status); }; }; then
16509: ac_cv_have_decl_cygwin_conv_path=yes
16510: else
16511: echo "$as_me: failed program was:" >&5
16512: sed 's/^/| /' conftest.$ac_ext >&5
16513:
16514: ac_cv_have_decl_cygwin_conv_path=no
16515: fi
16516: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16517: fi
16518: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
16519: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
16520: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
16521:
16522: cat >>confdefs.h <<_ACEOF
16523: #define HAVE_DECL_CYGWIN_CONV_PATH 1
16524: _ACEOF
16525:
16526:
1.66 paf 16527: else
1.128 moko 16528: cat >>confdefs.h <<_ACEOF
16529: #define HAVE_DECL_CYGWIN_CONV_PATH 0
16530: _ACEOF
16531:
16532:
16533: fi
16534:
16535:
16536: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16537: ;;
16538: esac
16539:
16540: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16541: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16542: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.66 paf 16543: echo $ECHO_N "(cached) $ECHO_C" >&6
16544: else
16545: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16546: LIBS="-ldld $LIBS"
1.66 paf 16547: cat >conftest.$ac_ext <<_ACEOF
16548: /* confdefs.h. */
16549: _ACEOF
16550: cat confdefs.h >>conftest.$ac_ext
16551: cat >>conftest.$ac_ext <<_ACEOF
16552: /* end confdefs.h. */
1.62 paf 16553:
1.66 paf 16554: /* Override any gcc2 internal prototype to avoid an error. */
16555: #ifdef __cplusplus
16556: extern "C"
16557: #endif
16558: /* We use char because int might match the return type of a gcc2
16559: builtin and then its argument prototype would still apply. */
1.128 moko 16560: char dld_link ();
1.66 paf 16561: int
16562: main ()
16563: {
1.128 moko 16564: dld_link ();
1.66 paf 16565: ;
16566: return 0;
16567: }
16568: _ACEOF
16569: rm -f conftest.$ac_objext conftest$ac_exeext
16570: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16571: (eval $ac_link) 2>conftest.er1
1.66 paf 16572: ac_status=$?
1.86 paf 16573: grep -v '^ *+' conftest.er1 >conftest.err
16574: rm -f conftest.er1
16575: cat conftest.err >&5
1.66 paf 16576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577: (exit $ac_status); } &&
1.86 paf 16578: { ac_try='test -z "$ac_c_werror_flag"
16579: || test ! -s conftest.err'
16580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581: (eval $ac_try) 2>&5
16582: ac_status=$?
16583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584: (exit $ac_status); }; } &&
16585: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587: (eval $ac_try) 2>&5
16588: ac_status=$?
16589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590: (exit $ac_status); }; }; then
1.128 moko 16591: ac_cv_lib_dld_dld_link=yes
1.66 paf 16592: else
16593: echo "$as_me: failed program was:" >&5
1.128 moko 16594: sed 's/^/| /' conftest.$ac_ext >&5
16595:
16596: ac_cv_lib_dld_dld_link=no
16597: fi
16598: rm -f conftest.err conftest.$ac_objext \
16599: conftest$ac_exeext conftest.$ac_ext
16600: LIBS=$ac_check_lib_save_LIBS
16601: fi
16602: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16603: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16604: if test $ac_cv_lib_dld_dld_link = yes; then
16605:
16606: cat >>confdefs.h <<\_ACEOF
16607: #define HAVE_DLD 1
16608: _ACEOF
16609:
16610: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16611: fi
16612:
16613:
16614:
16615:
16616: LT_DLPREOPEN=
16617: if test -n "$LT_DLLOADERS"
16618: then
16619: for lt_loader in $LT_DLLOADERS; do
16620: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16621: done
16622:
16623: cat >>confdefs.h <<\_ACEOF
16624: #define HAVE_LIBDLLOADER 1
16625: _ACEOF
16626:
16627: fi
16628:
16629:
16630: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16631:
16632:
16633: ac_ext=c
16634: ac_cpp='$CPP $CPPFLAGS'
16635: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16636: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16637: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16638:
16639:
16640: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16641: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16642: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16643: echo $ECHO_N "(cached) $ECHO_C" >&6
16644: else
16645: lt_cv_sys_symbol_underscore=no
16646: cat > conftest.$ac_ext <<_LT_EOF
16647: void nm_test_func(){}
16648: int main(){nm_test_func;return 0;}
16649: _LT_EOF
16650: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651: (eval $ac_compile) 2>&5
16652: ac_status=$?
16653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654: (exit $ac_status); }; then
16655: # Now try to grab the symbols.
16656: ac_nlist=conftest.nm
16657: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16658: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16659: ac_status=$?
16660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661: (exit $ac_status); } && test -s "$ac_nlist"; then
16662: # See whether the symbols have a leading underscore.
16663: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16664: lt_cv_sys_symbol_underscore=yes
16665: else
16666: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16667: :
16668: else
16669: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16670: fi
16671: fi
16672: else
16673: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16674: fi
16675: else
16676: echo "configure: failed program was:" >&5
16677: cat conftest.c >&5
16678: fi
16679: rm -rf conftest*
1.29 paf 16680:
1.66 paf 16681: fi
1.128 moko 16682: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16683: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16684: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16685:
1.62 paf 16686:
1.128 moko 16687: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16688: if test x"$libltdl_cv_func_dlopen" = xyes ||
16689: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16690: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16691: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16692: if test "${libltdl_cv_need_uscore+set}" = set; then
16693: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16694: else
1.128 moko 16695: libltdl_cv_need_uscore=unknown
16696: save_LIBS="$LIBS"
16697: LIBS="$LIBS $LIBADD_DLOPEN"
16698: if test "$cross_compiling" = yes; then :
16699: libltdl_cv_need_uscore=cross
16700: else
16701: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16702: lt_status=$lt_dlunknown
16703: cat > conftest.$ac_ext <<_LT_EOF
16704: #line $LINENO "configure"
16705: #include "confdefs.h"
16706:
1.66 paf 16707: #if HAVE_DLFCN_H
1.128 moko 16708: #include <dlfcn.h>
16709: #endif
16710:
16711: #include <stdio.h>
16712:
16713: #ifdef RTLD_GLOBAL
16714: # define LT_DLGLOBAL RTLD_GLOBAL
16715: #else
16716: # ifdef DL_GLOBAL
16717: # define LT_DLGLOBAL DL_GLOBAL
16718: # else
16719: # define LT_DLGLOBAL 0
16720: # endif
16721: #endif
16722:
16723: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16724: find out it does not work in some platform. */
16725: #ifndef LT_DLLAZY_OR_NOW
16726: # ifdef RTLD_LAZY
16727: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16728: # else
16729: # ifdef DL_LAZY
16730: # define LT_DLLAZY_OR_NOW DL_LAZY
16731: # else
16732: # ifdef RTLD_NOW
16733: # define LT_DLLAZY_OR_NOW RTLD_NOW
16734: # else
16735: # ifdef DL_NOW
16736: # define LT_DLLAZY_OR_NOW DL_NOW
16737: # else
16738: # define LT_DLLAZY_OR_NOW 0
16739: # endif
16740: # endif
16741: # endif
16742: # endif
16743: #endif
16744:
16745: /* When -fvisbility=hidden is used, assume the code has been annotated
16746: correspondingly for the symbols needed. */
16747: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16748: int fnord () __attribute__((visibility("default")));
1.66 paf 16749: #endif
1.62 paf 16750:
1.128 moko 16751: int fnord () { return 42; }
16752: int main ()
1.66 paf 16753: {
1.128 moko 16754: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16755: int status = $lt_dlunknown;
16756:
16757: if (self)
16758: {
16759: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16760: else
16761: {
16762: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16763: else puts (dlerror ());
16764: }
16765: /* dlclose (self); */
16766: }
16767: else
16768: puts (dlerror ());
16769:
16770: return status;
1.66 paf 16771: }
1.128 moko 16772: _LT_EOF
16773: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16774: (eval $ac_link) 2>&5
1.66 paf 16775: ac_status=$?
16776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 16777: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16778: (./conftest; exit; ) >&5 2>/dev/null
16779: lt_status=$?
16780: case x$lt_status in
16781: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16782: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16783: x$lt_dlunknown|x*) ;;
16784: esac
16785: else :
16786: # compilation failed
16787:
16788: fi
16789: fi
16790: rm -fr conftest*
16791:
16792: LIBS="$save_LIBS"
16793:
16794: fi
16795: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16796: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16797: fi
16798: fi
16799:
16800: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16801:
1.66 paf 16802: cat >>confdefs.h <<\_ACEOF
1.128 moko 16803: #define NEED_USCORE 1
1.66 paf 16804: _ACEOF
1.29 paf 16805:
1.128 moko 16806: fi
16807:
16808: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16809: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16810: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16811: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16812: else
1.128 moko 16813: # PORTME does your system automatically load deplibs for dlopen?
16814: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16815: # For now, we just catch OSes we know something about -- in the
16816: # future, we'll try test this programmatically.
16817: lt_cv_sys_dlopen_deplibs=unknown
16818: case $host_os in
16819: aix3*|aix4.1.*|aix4.2.*)
16820: # Unknown whether this is true for these versions of AIX, but
16821: # we want this `case' here to explicitly catch those versions.
16822: lt_cv_sys_dlopen_deplibs=unknown
16823: ;;
16824: aix[4-9]*)
16825: lt_cv_sys_dlopen_deplibs=yes
16826: ;;
16827: amigaos*)
16828: case $host_cpu in
16829: powerpc)
16830: lt_cv_sys_dlopen_deplibs=no
16831: ;;
16832: esac
16833: ;;
16834: darwin*)
16835: # Assuming the user has installed a libdl from somewhere, this is true
16836: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16837: lt_cv_sys_dlopen_deplibs=yes
16838: ;;
16839: freebsd* | dragonfly*)
16840: lt_cv_sys_dlopen_deplibs=yes
16841: ;;
16842: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16843: # GNU and its variants, using gnu ld.so (Glibc)
16844: lt_cv_sys_dlopen_deplibs=yes
16845: ;;
16846: hpux10*|hpux11*)
16847: lt_cv_sys_dlopen_deplibs=yes
16848: ;;
16849: interix*)
16850: lt_cv_sys_dlopen_deplibs=yes
16851: ;;
16852: irix[12345]*|irix6.[01]*)
16853: # Catch all versions of IRIX before 6.2, and indicate that we don't
16854: # know how it worked for any of those versions.
16855: lt_cv_sys_dlopen_deplibs=unknown
16856: ;;
16857: irix*)
16858: # The case above catches anything before 6.2, and it's known that
16859: # at 6.2 and later dlopen does load deplibs.
16860: lt_cv_sys_dlopen_deplibs=yes
16861: ;;
16862: netbsd*)
16863: lt_cv_sys_dlopen_deplibs=yes
16864: ;;
16865: openbsd*)
16866: lt_cv_sys_dlopen_deplibs=yes
16867: ;;
16868: osf[1234]*)
16869: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16870: # it did *not* use an RPATH in a shared library to find objects the
16871: # library depends on, so we explicitly say `no'.
16872: lt_cv_sys_dlopen_deplibs=no
16873: ;;
16874: osf5.0|osf5.0a|osf5.1)
16875: # dlopen *does* load deplibs and with the right loader patch applied
16876: # it even uses RPATH in a shared library to search for shared objects
16877: # that the library depends on, but there's no easy way to know if that
16878: # patch is installed. Since this is the case, all we can really
16879: # say is unknown -- it depends on the patch being installed. If
16880: # it is, this changes to `yes'. Without it, it would be `no'.
16881: lt_cv_sys_dlopen_deplibs=unknown
16882: ;;
16883: osf*)
16884: # the two cases above should catch all versions of osf <= 5.1. Read
16885: # the comments above for what we know about them.
16886: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16887: # is used to find them so we can finally say `yes'.
16888: lt_cv_sys_dlopen_deplibs=yes
16889: ;;
16890: qnx*)
16891: lt_cv_sys_dlopen_deplibs=yes
16892: ;;
16893: solaris*)
16894: lt_cv_sys_dlopen_deplibs=yes
16895: ;;
16896: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16897: libltdl_cv_sys_dlopen_deplibs=yes
16898: ;;
16899: esac
16900:
16901: fi
16902: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
16903: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
16904: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16905:
16906: cat >>confdefs.h <<\_ACEOF
16907: #define LTDL_DLOPEN_DEPLIBS 1
16908: _ACEOF
16909:
16910: fi
16911:
16912: :
16913:
1.29 paf 16914:
1.128 moko 16915: for ac_header in argz.h
16916: do
16917: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16918: echo "$as_me:$LINENO: checking for $ac_header" >&5
16919: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16920: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.66 paf 16921: echo $ECHO_N "(cached) $ECHO_C" >&6
16922: else
1.128 moko 16923: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16924: /* confdefs.h. */
16925: _ACEOF
16926: cat confdefs.h >>conftest.$ac_ext
16927: cat >>conftest.$ac_ext <<_ACEOF
16928: /* end confdefs.h. */
1.128 moko 16929: $ac_includes_default
1.29 paf 16930:
1.128 moko 16931: #include <$ac_header>
1.66 paf 16932: _ACEOF
1.128 moko 16933: rm -f conftest.$ac_objext
16934: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935: (eval $ac_compile) 2>conftest.er1
1.66 paf 16936: ac_status=$?
1.86 paf 16937: grep -v '^ *+' conftest.er1 >conftest.err
16938: rm -f conftest.er1
16939: cat conftest.err >&5
1.66 paf 16940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941: (exit $ac_status); } &&
1.86 paf 16942: { ac_try='test -z "$ac_c_werror_flag"
16943: || test ! -s conftest.err'
16944: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945: (eval $ac_try) 2>&5
16946: ac_status=$?
16947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948: (exit $ac_status); }; } &&
1.128 moko 16949: { ac_try='test -s conftest.$ac_objext'
1.66 paf 16950: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951: (eval $ac_try) 2>&5
16952: ac_status=$?
16953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954: (exit $ac_status); }; }; then
1.128 moko 16955: eval "$as_ac_Header=yes"
1.66 paf 16956: else
16957: echo "$as_me: failed program was:" >&5
16958: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 16959:
1.128 moko 16960: eval "$as_ac_Header=no"
16961: fi
16962: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 16963: fi
1.128 moko 16964: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16965: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16966: if test `eval echo '${'$as_ac_Header'}'` = yes; then
16967: cat >>confdefs.h <<_ACEOF
16968: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16969: _ACEOF
16970:
1.66 paf 16971: fi
1.62 paf 16972:
1.128 moko 16973: done
16974:
1.29 paf 16975:
1.128 moko 16976: echo "$as_me:$LINENO: checking for error_t" >&5
16977: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
16978: if test "${ac_cv_type_error_t+set}" = set; then
1.66 paf 16979: echo $ECHO_N "(cached) $ECHO_C" >&6
16980: else
1.128 moko 16981: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 16982: /* confdefs.h. */
16983: _ACEOF
16984: cat confdefs.h >>conftest.$ac_ext
16985: cat >>conftest.$ac_ext <<_ACEOF
16986: /* end confdefs.h. */
1.128 moko 16987: #if defined(HAVE_ARGZ_H)
16988: # include <argz.h>
16989: #endif
1.29 paf 16990:
1.66 paf 16991: int
16992: main ()
16993: {
1.128 moko 16994: if ((error_t *) 0)
16995: return 0;
16996: if (sizeof (error_t))
16997: return 0;
1.66 paf 16998: ;
16999: return 0;
17000: }
17001: _ACEOF
1.128 moko 17002: rm -f conftest.$ac_objext
17003: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17004: (eval $ac_compile) 2>conftest.er1
1.66 paf 17005: ac_status=$?
1.86 paf 17006: grep -v '^ *+' conftest.er1 >conftest.err
17007: rm -f conftest.er1
17008: cat conftest.err >&5
1.66 paf 17009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010: (exit $ac_status); } &&
1.86 paf 17011: { ac_try='test -z "$ac_c_werror_flag"
17012: || test ! -s conftest.err'
17013: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014: (eval $ac_try) 2>&5
17015: ac_status=$?
17016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017: (exit $ac_status); }; } &&
1.128 moko 17018: { ac_try='test -s conftest.$ac_objext'
1.66 paf 17019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020: (eval $ac_try) 2>&5
17021: ac_status=$?
17022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023: (exit $ac_status); }; }; then
1.128 moko 17024: ac_cv_type_error_t=yes
1.66 paf 17025: else
17026: echo "$as_me: failed program was:" >&5
17027: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 17028:
1.128 moko 17029: ac_cv_type_error_t=no
1.66 paf 17030: fi
1.128 moko 17031: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17032: fi
1.128 moko 17033: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
17034: echo "${ECHO_T}$ac_cv_type_error_t" >&6
17035: if test $ac_cv_type_error_t = yes; then
1.29 paf 17036:
1.128 moko 17037: cat >>confdefs.h <<_ACEOF
17038: #define HAVE_ERROR_T 1
1.62 paf 17039: _ACEOF
1.16 paf 17040:
17041:
1.128 moko 17042: else
1.16 paf 17043:
1.128 moko 17044: cat >>confdefs.h <<\_ACEOF
17045: #define error_t int
17046: _ACEOF
1.16 paf 17047:
1.12 paf 17048:
1.128 moko 17049: cat >>confdefs.h <<\_ACEOF
17050: #define __error_t_defined 1
17051: _ACEOF
1.12 paf 17052:
1.66 paf 17053: fi
1.12 paf 17054:
1.128 moko 17055:
17056: ARGZ_H=
1.12 paf 17057:
17058:
1.62 paf 17059:
1.1 paf 17060:
17061:
17062:
17063:
1.128 moko 17064: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17065: argz_next argz_stringify
1.66 paf 17066: do
17067: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17068: echo "$as_me:$LINENO: checking for $ac_func" >&5
17069: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17070: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17071: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 17072: else
1.64 paf 17073: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17074: /* confdefs.h. */
17075: _ACEOF
17076: cat confdefs.h >>conftest.$ac_ext
17077: cat >>conftest.$ac_ext <<_ACEOF
17078: /* end confdefs.h. */
1.86 paf 17079: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081: #define $ac_func innocuous_$ac_func
17082:
1.64 paf 17083: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 17084: which can conflict with char $ac_func (); below.
1.64 paf 17085: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086: <limits.h> exists even on freestanding compilers. */
1.86 paf 17087:
1.64 paf 17088: #ifdef __STDC__
17089: # include <limits.h>
17090: #else
17091: # include <assert.h>
17092: #endif
1.86 paf 17093:
17094: #undef $ac_func
17095:
1.8 paf 17096: /* Override any gcc2 internal prototype to avoid an error. */
17097: #ifdef __cplusplus
17098: extern "C"
1.64 paf 17099: {
1.8 paf 17100: #endif
17101: /* We use char because int might match the return type of a gcc2
1.62 paf 17102: builtin and then its argument prototype would still apply. */
1.66 paf 17103: char $ac_func ();
1.64 paf 17104: /* The GNU C library defines this for functions which it implements
17105: to always fail with ENOSYS. Some functions are actually named
17106: something starting with __ and the normal name is an alias. */
1.66 paf 17107: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 17108: choke me
17109: #else
1.66 paf 17110: char (*f) () = $ac_func;
1.64 paf 17111: #endif
17112: #ifdef __cplusplus
17113: }
17114: #endif
17115:
1.62 paf 17116: int
17117: main ()
17118: {
1.66 paf 17119: return f != $ac_func;
1.62 paf 17120: ;
17121: return 0;
17122: }
17123: _ACEOF
17124: rm -f conftest.$ac_objext conftest$ac_exeext
17125: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 17126: (eval $ac_link) 2>conftest.er1
1.62 paf 17127: ac_status=$?
1.86 paf 17128: grep -v '^ *+' conftest.er1 >conftest.err
17129: rm -f conftest.er1
17130: cat conftest.err >&5
1.62 paf 17131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132: (exit $ac_status); } &&
1.86 paf 17133: { ac_try='test -z "$ac_c_werror_flag"
17134: || test ! -s conftest.err'
17135: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136: (eval $ac_try) 2>&5
17137: ac_status=$?
17138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139: (exit $ac_status); }; } &&
17140: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.128 moko 17142: (eval $ac_try) 2>&5
17143: ac_status=$?
17144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145: (exit $ac_status); }; }; then
17146: eval "$as_ac_var=yes"
17147: else
17148: echo "$as_me: failed program was:" >&5
17149: sed 's/^/| /' conftest.$ac_ext >&5
17150:
17151: eval "$as_ac_var=no"
17152: fi
17153: rm -f conftest.err conftest.$ac_objext \
17154: conftest$ac_exeext conftest.$ac_ext
17155: fi
17156: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17157: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17158: if test `eval echo '${'$as_ac_var'}'` = yes; then
17159: cat >>confdefs.h <<_ACEOF
17160: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17161: _ACEOF
17162:
17163: else
17164: ARGZ_H=argz.h;
17165:
17166: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17167:
17168: fi
17169: done
17170:
17171:
17172: if test -z "$ARGZ_H"; then
17173: echo "$as_me:$LINENO: checking if argz actually works" >&5
17174: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
17175: if test "${lt_cv_sys_argz_works+set}" = set; then
17176: echo $ECHO_N "(cached) $ECHO_C" >&6
17177: else
17178: case $host_os in #(
17179: *cygwin*)
17180: lt_cv_sys_argz_works=no
17181: if test "$cross_compiling" != no; then
17182: lt_cv_sys_argz_works="guessing no"
17183: else
17184: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17185: save_IFS=$IFS
17186: IFS=-.
17187: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17188: IFS=$save_IFS
17189: lt_os_major=${2-0}
17190: lt_os_minor=${3-0}
17191: lt_os_micro=${4-0}
17192: if test "$lt_os_major" -gt 1 \
17193: || { test "$lt_os_major" -eq 1 \
17194: && { test "$lt_os_minor" -gt 5 \
17195: || { test "$lt_os_minor" -eq 5 \
17196: && test "$lt_os_micro" -gt 24; }; }; }; then
17197: lt_cv_sys_argz_works=yes
17198: fi
17199: fi
17200: ;; #(
17201: *) lt_cv_sys_argz_works=yes ;;
17202: esac
17203: fi
17204: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
17205: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
17206: if test "$lt_cv_sys_argz_works" = yes; then
17207:
17208: cat >>confdefs.h <<\_ACEOF
17209: #define HAVE_WORKING_ARGZ 1
17210: _ACEOF
17211:
1.62 paf 17212: else
1.128 moko 17213: ARGZ_H=argz.h
17214:
17215:
17216: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17217:
17218: fi
1.62 paf 17219:
17220: fi
1.128 moko 17221:
17222:
17223:
17224:
17225: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17226: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
17227: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17228: echo $ECHO_N "(cached) $ECHO_C" >&6
17229: else
17230: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17231: libltdl_cv_preloaded_symbols=yes
17232: else
17233: libltdl_cv_preloaded_symbols=no
17234: fi
17235:
1.62 paf 17236: fi
1.128 moko 17237: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17238: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
17239: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17240:
17241: cat >>confdefs.h <<\_ACEOF
17242: #define HAVE_PRELOADED_SYMBOLS 1
1.66 paf 17243: _ACEOF
17244:
17245: fi
17246:
1.128 moko 17247: # Set options
17248:
17249:
17250:
17251:
17252:
17253:
17254:
17255:
17256:
17257:
1.66 paf 17258:
17259:
1.128 moko 17260: # Check whether --with-included_ltdl or --without-included_ltdl was given.
17261: if test "${with_included_ltdl+set}" = set; then
17262: withval="$with_included_ltdl"
1.64 paf 17263:
1.128 moko 17264: fi;
1.64 paf 17265:
1.128 moko 17266: if test "x$with_included_ltdl" != xyes; then
17267: # We are not being forced to use the included libltdl sources, so
17268: # decide whether there is a useful installed version we can use.
17269: echo "$as_me:$LINENO: checking for ltdl.h" >&5
17270: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
17271: if test "${ac_cv_header_ltdl_h+set}" = set; then
1.79 paf 17272: echo $ECHO_N "(cached) $ECHO_C" >&6
17273: else
1.128 moko 17274: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17275: /* confdefs.h. */
17276: _ACEOF
17277: cat confdefs.h >>conftest.$ac_ext
17278: cat >>conftest.$ac_ext <<_ACEOF
17279: /* end confdefs.h. */
1.128 moko 17280: $ac_includes_default
1.79 paf 17281:
17282:
1.128 moko 17283: #include <ltdl.h>
1.79 paf 17284: _ACEOF
17285: rm -f conftest.$ac_objext
17286: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17287: (eval $ac_compile) 2>conftest.er1
1.79 paf 17288: ac_status=$?
1.86 paf 17289: grep -v '^ *+' conftest.er1 >conftest.err
17290: rm -f conftest.er1
17291: cat conftest.err >&5
1.79 paf 17292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293: (exit $ac_status); } &&
1.86 paf 17294: { ac_try='test -z "$ac_c_werror_flag"
17295: || test ! -s conftest.err'
17296: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297: (eval $ac_try) 2>&5
17298: ac_status=$?
17299: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300: (exit $ac_status); }; } &&
17301: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17302: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303: (eval $ac_try) 2>&5
17304: ac_status=$?
17305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306: (exit $ac_status); }; }; then
1.128 moko 17307: ac_cv_header_ltdl_h=yes
17308: else
17309: echo "$as_me: failed program was:" >&5
17310: sed 's/^/| /' conftest.$ac_ext >&5
17311:
17312: ac_cv_header_ltdl_h=no
17313: fi
17314: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17315: fi
17316: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
17317: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
17318: if test $ac_cv_header_ltdl_h = yes; then
17319: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
17320: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
17321: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
17322: echo $ECHO_N "(cached) $ECHO_C" >&6
17323: else
17324: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17325: /* confdefs.h. */
17326: _ACEOF
17327: cat confdefs.h >>conftest.$ac_ext
17328: cat >>conftest.$ac_ext <<_ACEOF
17329: /* end confdefs.h. */
1.128 moko 17330: $ac_includes_default
17331: #include <ltdl.h>
1.79 paf 17332:
17333: int
17334: main ()
17335: {
1.128 moko 17336: #ifndef lt_dlinterface_register
17337: char *p = (char *) lt_dlinterface_register;
1.79 paf 17338: #endif
17339:
17340: ;
17341: return 0;
17342: }
17343: _ACEOF
17344: rm -f conftest.$ac_objext
17345: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17346: (eval $ac_compile) 2>conftest.er1
1.79 paf 17347: ac_status=$?
1.86 paf 17348: grep -v '^ *+' conftest.er1 >conftest.err
17349: rm -f conftest.er1
17350: cat conftest.err >&5
1.79 paf 17351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352: (exit $ac_status); } &&
1.86 paf 17353: { ac_try='test -z "$ac_c_werror_flag"
17354: || test ! -s conftest.err'
17355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356: (eval $ac_try) 2>&5
17357: ac_status=$?
17358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359: (exit $ac_status); }; } &&
17360: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362: (eval $ac_try) 2>&5
17363: ac_status=$?
17364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365: (exit $ac_status); }; }; then
1.128 moko 17366: ac_cv_have_decl_lt_dlinterface_register=yes
1.79 paf 17367: else
17368: echo "$as_me: failed program was:" >&5
17369: sed 's/^/| /' conftest.$ac_ext >&5
17370:
1.128 moko 17371: ac_cv_have_decl_lt_dlinterface_register=no
1.79 paf 17372: fi
1.86 paf 17373: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17374: fi
17375: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
17376: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
17377: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
17378: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
17379: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
17380: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
17381: echo $ECHO_N "(cached) $ECHO_C" >&6
1.79 paf 17382: else
1.128 moko 17383: ac_check_lib_save_LIBS=$LIBS
17384: LIBS="-lltdl $LIBS"
17385: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17386: /* confdefs.h. */
17387: _ACEOF
17388: cat confdefs.h >>conftest.$ac_ext
17389: cat >>conftest.$ac_ext <<_ACEOF
17390: /* end confdefs.h. */
1.128 moko 17391:
17392: /* Override any gcc2 internal prototype to avoid an error. */
17393: #ifdef __cplusplus
17394: extern "C"
17395: #endif
17396: /* We use char because int might match the return type of a gcc2
17397: builtin and then its argument prototype would still apply. */
17398: char lt_dladvise_preload ();
1.79 paf 17399: int
17400: main ()
17401: {
1.128 moko 17402: lt_dladvise_preload ();
1.79 paf 17403: ;
17404: return 0;
17405: }
17406: _ACEOF
1.128 moko 17407: rm -f conftest.$ac_objext conftest$ac_exeext
17408: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409: (eval $ac_link) 2>conftest.er1
1.79 paf 17410: ac_status=$?
1.86 paf 17411: grep -v '^ *+' conftest.er1 >conftest.err
17412: rm -f conftest.er1
17413: cat conftest.err >&5
1.79 paf 17414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415: (exit $ac_status); } &&
1.86 paf 17416: { ac_try='test -z "$ac_c_werror_flag"
17417: || test ! -s conftest.err'
17418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419: (eval $ac_try) 2>&5
17420: ac_status=$?
17421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422: (exit $ac_status); }; } &&
1.128 moko 17423: { ac_try='test -s conftest$ac_exeext'
1.79 paf 17424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425: (eval $ac_try) 2>&5
17426: ac_status=$?
17427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428: (exit $ac_status); }; }; then
1.128 moko 17429: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17430: else
17431: echo "$as_me: failed program was:" >&5
17432: sed 's/^/| /' conftest.$ac_ext >&5
17433:
1.128 moko 17434: ac_cv_lib_ltdl_lt_dladvise_preload=no
17435: fi
17436: rm -f conftest.err conftest.$ac_objext \
17437: conftest$ac_exeext conftest.$ac_ext
17438: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17439: fi
1.128 moko 17440: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17441: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
17442: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
17443: with_included_ltdl=no
1.79 paf 17444: else
1.128 moko 17445: with_included_ltdl=yes
17446: fi
17447:
1.79 paf 17448: else
1.128 moko 17449: with_included_ltdl=yes
17450: fi
1.79 paf 17451:
1.128 moko 17452: else
17453: with_included_ltdl=yes
1.79 paf 17454: fi
1.128 moko 17455:
17456:
1.79 paf 17457: fi
1.128 moko 17458:
17459:
17460:
17461:
17462: # Check whether --with-ltdl_include or --without-ltdl_include was given.
17463: if test "${with_ltdl_include+set}" = set; then
17464: withval="$with_ltdl_include"
17465:
17466: fi;
17467:
17468: if test -n "$with_ltdl_include"; then
17469: if test -f "$with_ltdl_include/ltdl.h"; then :
17470: else
17471: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
17472: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
17473: { (exit 1); exit 1; }; }
17474: fi
17475: else
17476: with_ltdl_include=no
1.79 paf 17477: fi
1.128 moko 17478:
17479:
17480: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
17481: if test "${with_ltdl_lib+set}" = set; then
17482: withval="$with_ltdl_lib"
17483:
17484: fi;
17485:
17486: if test -n "$with_ltdl_lib"; then
17487: if test -f "$with_ltdl_lib/libltdl.la"; then :
17488: else
17489: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
17490: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
17491: { (exit 1); exit 1; }; }
17492: fi
17493: else
17494: with_ltdl_lib=no
1.79 paf 17495: fi
17496:
1.128 moko 17497: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17498: ,yes,no,no,)
17499: case $enable_ltdl_convenience in
17500: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
17501: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
17502: { (exit 1); exit 1; }; } ;;
17503: "") enable_ltdl_convenience=yes
17504: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17505: esac
17506: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17507: LTDLDEPS=$LIBLTDL
17508: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17509:
17510:
17511:
17512:
17513:
17514: # For backwards non-gettext consistent compatibility...
17515: INCLTDL="$LTDLINCL"
17516:
1.79 paf 17517:
1.128 moko 17518: ;;
17519: ,no,no,no,)
17520: # If the included ltdl is not to be used, then use the
17521: # preinstalled libltdl we found.
1.79 paf 17522:
17523: cat >>confdefs.h <<\_ACEOF
1.128 moko 17524: #define HAVE_LTDL 1
1.79 paf 17525: _ACEOF
17526:
1.128 moko 17527: LIBLTDL=-lltdl
17528: LTDLDEPS=
17529: LTDLINCL=
17530: ;;
17531: ,no*,no,*)
17532: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
17533: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
1.79 paf 17534: { (exit 1); exit 1; }; }
1.128 moko 17535: ;;
17536: *) with_included_ltdl=no
17537: LIBLTDL="-L$with_ltdl_lib -lltdl"
17538: LTDLDEPS=
17539: LTDLINCL="-I$with_ltdl_include"
17540: ;;
17541: esac
17542: INCLTDL="$LTDLINCL"
17543:
17544: # Report our decision...
17545: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17546: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17547: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17548: echo "${ECHO_T}$LTDLINCL" >&6
17549: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17550: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17551: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17552: echo "${ECHO_T}$LIBLTDL" >&6
17553:
17554:
17555:
17556: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17557: if test "${enable_ltdl_install+set}" = set; then
17558: enableval="$enable_ltdl_install"
17559:
17560: fi;
17561:
17562: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17563: *yes*) ;;
17564: *) enable_ltdl_convenience=yes ;;
17565: esac
17566:
17567:
17568:
17569: if test x"${enable_ltdl_install-no}" != xno; then
17570: INSTALL_LTDL_TRUE=
17571: INSTALL_LTDL_FALSE='#'
17572: else
17573: INSTALL_LTDL_TRUE='#'
17574: INSTALL_LTDL_FALSE=
17575: fi
17576:
17577:
17578:
17579: if test x"${enable_ltdl_convenience-no}" != xno; then
17580: CONVENIENCE_LTDL_TRUE=
17581: CONVENIENCE_LTDL_FALSE='#'
17582: else
17583: CONVENIENCE_LTDL_TRUE='#'
17584: CONVENIENCE_LTDL_FALSE=
17585: fi
17586:
17587:
17588:
17589:
17590:
17591: subdirs="$subdirs src/lib/ltdl"
17592:
17593:
17594:
17595:
17596: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17597: # the user used. This is so that ltdl.h can pick up the parent projects
17598: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17599: # definitions required by ltdl.c.
17600: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17601:
17602:
17603:
17604:
17605:
17606:
17607:
1.79 paf 17608:
17609:
1.128 moko 17610: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17611: do
17612: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17613: echo "$as_me:$LINENO: checking for $ac_header" >&5
17614: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17615: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 17616: echo $ECHO_N "(cached) $ECHO_C" >&6
17617: else
1.66 paf 17618: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17619: /* confdefs.h. */
17620: _ACEOF
17621: cat confdefs.h >>conftest.$ac_ext
17622: cat >>conftest.$ac_ext <<_ACEOF
17623: /* end confdefs.h. */
1.128 moko 17624: $ac_includes_default
17625:
17626: #include <$ac_header>
1.62 paf 17627: _ACEOF
1.128 moko 17628: rm -f conftest.$ac_objext
17629: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17630: (eval $ac_compile) 2>conftest.er1
1.62 paf 17631: ac_status=$?
1.66 paf 17632: grep -v '^ *+' conftest.er1 >conftest.err
17633: rm -f conftest.er1
17634: cat conftest.err >&5
1.62 paf 17635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17636: (exit $ac_status); } &&
17637: { ac_try='test -z "$ac_c_werror_flag"
17638: || test ! -s conftest.err'
17639: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640: (eval $ac_try) 2>&5
17641: ac_status=$?
17642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643: (exit $ac_status); }; } &&
17644: { ac_try='test -s conftest.$ac_objext'
17645: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646: (eval $ac_try) 2>&5
17647: ac_status=$?
17648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649: (exit $ac_status); }; }; then
17650: eval "$as_ac_Header=yes"
1.62 paf 17651: else
17652: echo "$as_me: failed program was:" >&5
17653: sed 's/^/| /' conftest.$ac_ext >&5
17654:
1.128 moko 17655: eval "$as_ac_Header=no"
17656: fi
17657: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 17658: fi
1.128 moko 17659: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17660: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17661: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17662: cat >>confdefs.h <<_ACEOF
17663: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17664: _ACEOF
17665:
17666: fi
1.66 paf 17667:
17668: done
1.64 paf 17669:
17670:
1.128 moko 17671:
17672:
17673:
17674: for ac_func in closedir opendir readdir
17675: do
17676: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17677: echo "$as_me:$LINENO: checking for $ac_func" >&5
17678: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17679: if eval "test \"\${$as_ac_var+set}\" = set"; then
17680: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 17681: else
17682: cat >conftest.$ac_ext <<_ACEOF
17683: /* confdefs.h. */
17684: _ACEOF
17685: cat confdefs.h >>conftest.$ac_ext
17686: cat >>conftest.$ac_ext <<_ACEOF
17687: /* end confdefs.h. */
1.128 moko 17688: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17689: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690: #define $ac_func innocuous_$ac_func
17691:
17692: /* System header to define __stub macros and hopefully few prototypes,
17693: which can conflict with char $ac_func (); below.
17694: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695: <limits.h> exists even on freestanding compilers. */
17696:
1.66 paf 17697: #ifdef __STDC__
17698: # include <limits.h>
17699: #else
17700: # include <assert.h>
1.64 paf 17701: #endif
1.128 moko 17702:
17703: #undef $ac_func
17704:
17705: /* Override any gcc2 internal prototype to avoid an error. */
17706: #ifdef __cplusplus
17707: extern "C"
17708: {
17709: #endif
17710: /* We use char because int might match the return type of a gcc2
17711: builtin and then its argument prototype would still apply. */
17712: char $ac_func ();
17713: /* The GNU C library defines this for functions which it implements
17714: to always fail with ENOSYS. Some functions are actually named
17715: something starting with __ and the normal name is an alias. */
17716: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17717: choke me
17718: #else
17719: char (*f) () = $ac_func;
17720: #endif
17721: #ifdef __cplusplus
17722: }
17723: #endif
17724:
17725: int
17726: main ()
17727: {
17728: return f != $ac_func;
17729: ;
17730: return 0;
17731: }
1.64 paf 17732: _ACEOF
1.128 moko 17733: rm -f conftest.$ac_objext conftest$ac_exeext
17734: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735: (eval $ac_link) 2>conftest.er1
1.64 paf 17736: ac_status=$?
1.66 paf 17737: grep -v '^ *+' conftest.er1 >conftest.err
17738: rm -f conftest.er1
17739: cat conftest.err >&5
1.64 paf 17740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17741: (exit $ac_status); } &&
17742: { ac_try='test -z "$ac_c_werror_flag"
17743: || test ! -s conftest.err'
17744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745: (eval $ac_try) 2>&5
17746: ac_status=$?
17747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748: (exit $ac_status); }; } &&
17749: { ac_try='test -s conftest$ac_exeext'
17750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751: (eval $ac_try) 2>&5
1.62 paf 17752: ac_status=$?
17753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17754: (exit $ac_status); }; }; then
17755: eval "$as_ac_var=yes"
1.62 paf 17756: else
17757: echo "$as_me: failed program was:" >&5
17758: sed 's/^/| /' conftest.$ac_ext >&5
17759:
1.128 moko 17760: eval "$as_ac_var=no"
17761: fi
17762: rm -f conftest.err conftest.$ac_objext \
17763: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17764: fi
1.128 moko 17765: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17766: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17767: if test `eval echo '${'$as_ac_var'}'` = yes; then
17768: cat >>confdefs.h <<_ACEOF
17769: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17770: _ACEOF
1.66 paf 17771:
17772: else
1.64 paf 17773:
1.66 paf 17774:
1.128 moko 17775: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17776:
1.66 paf 17777: fi
1.128 moko 17778: done
17779:
1.66 paf 17780:
17781:
1.128 moko 17782: for ac_func in strlcat strlcpy
17783: do
17784: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17785: echo "$as_me:$LINENO: checking for $ac_func" >&5
17786: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17787: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17788: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 17789: else
1.66 paf 17790: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17791: /* confdefs.h. */
17792: _ACEOF
17793: cat confdefs.h >>conftest.$ac_ext
17794: cat >>conftest.$ac_ext <<_ACEOF
17795: /* end confdefs.h. */
1.128 moko 17796: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17797: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17798: #define $ac_func innocuous_$ac_func
17799:
17800: /* System header to define __stub macros and hopefully few prototypes,
17801: which can conflict with char $ac_func (); below.
17802: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17803: <limits.h> exists even on freestanding compilers. */
17804:
17805: #ifdef __STDC__
17806: # include <limits.h>
17807: #else
17808: # include <assert.h>
17809: #endif
17810:
17811: #undef $ac_func
17812:
17813: /* Override any gcc2 internal prototype to avoid an error. */
17814: #ifdef __cplusplus
17815: extern "C"
17816: {
17817: #endif
17818: /* We use char because int might match the return type of a gcc2
17819: builtin and then its argument prototype would still apply. */
17820: char $ac_func ();
17821: /* The GNU C library defines this for functions which it implements
17822: to always fail with ENOSYS. Some functions are actually named
17823: something starting with __ and the normal name is an alias. */
17824: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17825: choke me
17826: #else
17827: char (*f) () = $ac_func;
17828: #endif
17829: #ifdef __cplusplus
17830: }
17831: #endif
1.62 paf 17832:
17833: int
17834: main ()
17835: {
1.128 moko 17836: return f != $ac_func;
1.62 paf 17837: ;
17838: return 0;
17839: }
17840: _ACEOF
1.128 moko 17841: rm -f conftest.$ac_objext conftest$ac_exeext
17842: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843: (eval $ac_link) 2>conftest.er1
1.62 paf 17844: ac_status=$?
1.86 paf 17845: grep -v '^ *+' conftest.er1 >conftest.err
17846: rm -f conftest.er1
17847: cat conftest.err >&5
1.62 paf 17848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849: (exit $ac_status); } &&
1.86 paf 17850: { ac_try='test -z "$ac_c_werror_flag"
17851: || test ! -s conftest.err'
17852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853: (eval $ac_try) 2>&5
17854: ac_status=$?
17855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856: (exit $ac_status); }; } &&
1.128 moko 17857: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17858: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17859: (eval $ac_try) 2>&5
17860: ac_status=$?
17861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862: (exit $ac_status); }; }; then
1.128 moko 17863: eval "$as_ac_var=yes"
1.62 paf 17864: else
17865: echo "$as_me: failed program was:" >&5
17866: sed 's/^/| /' conftest.$ac_ext >&5
17867:
1.128 moko 17868: eval "$as_ac_var=no"
17869: fi
17870: rm -f conftest.err conftest.$ac_objext \
17871: conftest$ac_exeext conftest.$ac_ext
17872: fi
17873: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17874: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17875: if test `eval echo '${'$as_ac_var'}'` = yes; then
17876: cat >>confdefs.h <<_ACEOF
17877: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878: _ACEOF
17879:
17880: else
17881:
17882:
17883: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17884:
1.62 paf 17885: fi
1.128 moko 17886: done
17887:
17888:
1.64 paf 17889:
1.128 moko 17890: cat >>confdefs.h <<_ACEOF
17891: #define LT_LIBEXT "$libext"
1.62 paf 17892: _ACEOF
1.64 paf 17893:
1.128 moko 17894:
17895: name=
17896: eval "lt_libprefix=\"$libname_spec\""
17897:
17898: cat >>confdefs.h <<_ACEOF
17899: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 17900: _ACEOF
1.128 moko 17901:
17902:
17903: name=ltdl
17904: eval "LTDLOPEN=\"$libname_spec\""
17905:
17906:
17907:
17908:
17909:
17910:
17911:
17912:
17913: # Only expand once:
17914:
17915:
17916:
17917:
17918: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17919: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17920: if test "${ac_cv_c_bigendian+set}" = set; then
17921: echo $ECHO_N "(cached) $ECHO_C" >&6
17922: else
17923: # See if sys/param.h defines the BYTE_ORDER macro.
17924: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 17925: /* confdefs.h. */
17926: _ACEOF
17927: cat confdefs.h >>conftest.$ac_ext
17928: cat >>conftest.$ac_ext <<_ACEOF
17929: /* end confdefs.h. */
1.128 moko 17930: #include <sys/types.h>
17931: #include <sys/param.h>
17932:
17933: int
17934: main ()
17935: {
17936: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17937: bogus endian macros
17938: #endif
1.64 paf 17939:
1.128 moko 17940: ;
17941: return 0;
17942: }
1.66 paf 17943: _ACEOF
1.128 moko 17944: rm -f conftest.$ac_objext
17945: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946: (eval $ac_compile) 2>conftest.er1
17947: ac_status=$?
17948: grep -v '^ *+' conftest.er1 >conftest.err
17949: rm -f conftest.er1
17950: cat conftest.err >&5
17951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952: (exit $ac_status); } &&
17953: { ac_try='test -z "$ac_c_werror_flag"
17954: || test ! -s conftest.err'
17955: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956: (eval $ac_try) 2>&5
17957: ac_status=$?
17958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959: (exit $ac_status); }; } &&
17960: { ac_try='test -s conftest.$ac_objext'
17961: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962: (eval $ac_try) 2>&5
17963: ac_status=$?
17964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965: (exit $ac_status); }; }; then
17966: # It does; now see whether it defined to BIG_ENDIAN or not.
17967: cat >conftest.$ac_ext <<_ACEOF
1.64 paf 17968: /* confdefs.h. */
17969: _ACEOF
17970: cat confdefs.h >>conftest.$ac_ext
17971: cat >>conftest.$ac_ext <<_ACEOF
17972: /* end confdefs.h. */
1.128 moko 17973: #include <sys/types.h>
17974: #include <sys/param.h>
1.64 paf 17975:
17976: int
17977: main ()
1.128 moko 17978: {
17979: #if BYTE_ORDER != BIG_ENDIAN
17980: not big endian
17981: #endif
17982:
17983: ;
17984: return 0;
1.64 paf 17985: }
17986: _ACEOF
1.128 moko 17987: rm -f conftest.$ac_objext
17988: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17989: (eval $ac_compile) 2>conftest.er1
17990: ac_status=$?
17991: grep -v '^ *+' conftest.er1 >conftest.err
17992: rm -f conftest.er1
17993: cat conftest.err >&5
17994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995: (exit $ac_status); } &&
17996: { ac_try='test -z "$ac_c_werror_flag"
17997: || test ! -s conftest.err'
17998: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999: (eval $ac_try) 2>&5
1.64 paf 18000: ac_status=$?
18001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 18002: (exit $ac_status); }; } &&
18003: { ac_try='test -s conftest.$ac_objext'
1.64 paf 18004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005: (eval $ac_try) 2>&5
18006: ac_status=$?
18007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008: (exit $ac_status); }; }; then
1.128 moko 18009: ac_cv_c_bigendian=yes
1.64 paf 18010: else
1.128 moko 18011: echo "$as_me: failed program was:" >&5
1.64 paf 18012: sed 's/^/| /' conftest.$ac_ext >&5
18013:
1.128 moko 18014: ac_cv_c_bigendian=no
1.66 paf 18015: fi
1.128 moko 18016: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18017: else
18018: echo "$as_me: failed program was:" >&5
18019: sed 's/^/| /' conftest.$ac_ext >&5
1.66 paf 18020:
1.128 moko 18021: # It does not; compile a test program.
18022: if test "$cross_compiling" = yes; then
18023: # try to guess the endianness by grepping values into an object file
18024: ac_cv_c_bigendian=unknown
1.62 paf 18025: cat >conftest.$ac_ext <<_ACEOF
18026: /* confdefs.h. */
18027: _ACEOF
18028: cat confdefs.h >>conftest.$ac_ext
18029: cat >>conftest.$ac_ext <<_ACEOF
18030: /* end confdefs.h. */
1.128 moko 18031: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18032: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18033: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
18034: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18035: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18036: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
18037: int
18038: main ()
18039: {
18040: _ascii (); _ebcdic ();
18041: ;
18042: return 0;
18043: }
1.62 paf 18044: _ACEOF
1.66 paf 18045: rm -f conftest.$ac_objext
18046: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18047: (eval $ac_compile) 2>conftest.er1
1.66 paf 18048: ac_status=$?
1.86 paf 18049: grep -v '^ *+' conftest.er1 >conftest.err
18050: rm -f conftest.er1
18051: cat conftest.err >&5
1.66 paf 18052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053: (exit $ac_status); } &&
1.86 paf 18054: { ac_try='test -z "$ac_c_werror_flag"
18055: || test ! -s conftest.err'
18056: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057: (eval $ac_try) 2>&5
18058: ac_status=$?
18059: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060: (exit $ac_status); }; } &&
18061: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18062: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063: (eval $ac_try) 2>&5
1.62 paf 18064: ac_status=$?
18065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18066: (exit $ac_status); }; }; then
1.128 moko 18067: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
18068: ac_cv_c_bigendian=yes
18069: fi
18070: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18071: if test "$ac_cv_c_bigendian" = unknown; then
18072: ac_cv_c_bigendian=no
18073: else
18074: # finding both strings is unlikely to happen, but who knows?
18075: ac_cv_c_bigendian=unknown
18076: fi
18077: fi
1.62 paf 18078: else
18079: echo "$as_me: failed program was:" >&5
18080: sed 's/^/| /' conftest.$ac_ext >&5
18081:
1.128 moko 18082: fi
18083: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18084: else
18085: cat >conftest.$ac_ext <<_ACEOF
18086: /* confdefs.h. */
18087: _ACEOF
18088: cat confdefs.h >>conftest.$ac_ext
18089: cat >>conftest.$ac_ext <<_ACEOF
18090: /* end confdefs.h. */
18091: int
18092: main ()
18093: {
18094: /* Are we little or big endian? From Harbison&Steele. */
18095: union
18096: {
18097: long l;
18098: char c[sizeof (long)];
18099: } u;
18100: u.l = 1;
18101: exit (u.c[sizeof (long) - 1] == 1);
18102: }
18103: _ACEOF
18104: rm -f conftest$ac_exeext
18105: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106: (eval $ac_link) 2>&5
18107: ac_status=$?
18108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18110: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111: (eval $ac_try) 2>&5
18112: ac_status=$?
18113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114: (exit $ac_status); }; }; then
18115: ac_cv_c_bigendian=no
18116: else
18117: echo "$as_me: program exited with status $ac_status" >&5
18118: echo "$as_me: failed program was:" >&5
18119: sed 's/^/| /' conftest.$ac_ext >&5
18120:
18121: ( exit $ac_status )
18122: ac_cv_c_bigendian=yes
18123: fi
18124: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18125: fi
1.66 paf 18126: fi
1.86 paf 18127: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18128: fi
1.128 moko 18129: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18130: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18131: case $ac_cv_c_bigendian in
18132: yes)
18133:
18134: cat >>confdefs.h <<\_ACEOF
18135: #define PA_BIG_ENDIAN
1.66 paf 18136: _ACEOF
18137:
1.128 moko 18138: ;;
18139: no)
18140:
18141: cat >>confdefs.h <<\_ACEOF
18142: #define PA_LITTLE_ENDIAN
18143: _ACEOF
1.1 paf 18144:
1.128 moko 18145: ;;
18146: *)
18147: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
18148: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
18149: { (exit 1); exit 1; }; }
18150: ;;
18151: esac
1.66 paf 18152:
18153:
18154: echo "$as_me:$LINENO: checking for size_t" >&5
18155: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18156: if test "${ac_cv_type_size_t+set}" = set; then
18157: echo $ECHO_N "(cached) $ECHO_C" >&6
18158: else
1.62 paf 18159: cat >conftest.$ac_ext <<_ACEOF
18160: /* confdefs.h. */
18161: _ACEOF
18162: cat confdefs.h >>conftest.$ac_ext
18163: cat >>conftest.$ac_ext <<_ACEOF
18164: /* end confdefs.h. */
1.66 paf 18165: $ac_includes_default
18166: int
18167: main ()
18168: {
18169: if ((size_t *) 0)
18170: return 0;
18171: if (sizeof (size_t))
18172: return 0;
18173: ;
18174: return 0;
18175: }
1.62 paf 18176: _ACEOF
1.66 paf 18177: rm -f conftest.$ac_objext
18178: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18179: (eval $ac_compile) 2>conftest.er1
1.66 paf 18180: ac_status=$?
1.86 paf 18181: grep -v '^ *+' conftest.er1 >conftest.err
18182: rm -f conftest.er1
18183: cat conftest.err >&5
1.66 paf 18184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185: (exit $ac_status); } &&
1.86 paf 18186: { ac_try='test -z "$ac_c_werror_flag"
18187: || test ! -s conftest.err'
18188: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18189: (eval $ac_try) 2>&5
18190: ac_status=$?
18191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192: (exit $ac_status); }; } &&
18193: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195: (eval $ac_try) 2>&5
1.62 paf 18196: ac_status=$?
18197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18198: (exit $ac_status); }; }; then
18199: ac_cv_type_size_t=yes
1.1 paf 18200: else
1.62 paf 18201: echo "$as_me: failed program was:" >&5
18202: sed 's/^/| /' conftest.$ac_ext >&5
18203:
1.66 paf 18204: ac_cv_type_size_t=no
1.1 paf 18205: fi
1.86 paf 18206: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18207: fi
1.66 paf 18208: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18209: echo "${ECHO_T}$ac_cv_type_size_t" >&6
18210: if test $ac_cv_type_size_t = yes; then
18211: :
18212: else
1.1 paf 18213:
1.66 paf 18214: cat >>confdefs.h <<_ACEOF
18215: #define size_t unsigned
18216: _ACEOF
1.62 paf 18217:
18218: fi
1.66 paf 18219:
1.128 moko 18220:
18221:
1.66 paf 18222: echo "$as_me:$LINENO: checking for off_t" >&5
18223: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
18224: if test "${ac_cv_type_off_t+set}" = set; then
18225: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 18226: else
18227: cat >conftest.$ac_ext <<_ACEOF
18228: /* confdefs.h. */
18229: _ACEOF
18230: cat confdefs.h >>conftest.$ac_ext
18231: cat >>conftest.$ac_ext <<_ACEOF
18232: /* end confdefs.h. */
1.66 paf 18233: $ac_includes_default
18234: int
18235: main ()
18236: {
18237: if ((off_t *) 0)
18238: return 0;
18239: if (sizeof (off_t))
18240: return 0;
18241: ;
18242: return 0;
18243: }
1.62 paf 18244: _ACEOF
1.66 paf 18245: rm -f conftest.$ac_objext
18246: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18247: (eval $ac_compile) 2>conftest.er1
1.66 paf 18248: ac_status=$?
1.86 paf 18249: grep -v '^ *+' conftest.er1 >conftest.err
18250: rm -f conftest.er1
18251: cat conftest.err >&5
1.66 paf 18252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253: (exit $ac_status); } &&
1.86 paf 18254: { ac_try='test -z "$ac_c_werror_flag"
18255: || test ! -s conftest.err'
18256: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257: (eval $ac_try) 2>&5
18258: ac_status=$?
18259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260: (exit $ac_status); }; } &&
18261: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18262: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263: (eval $ac_try) 2>&5
1.62 paf 18264: ac_status=$?
18265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18266: (exit $ac_status); }; }; then
18267: ac_cv_type_off_t=yes
1.62 paf 18268: else
1.66 paf 18269: echo "$as_me: failed program was:" >&5
18270: sed 's/^/| /' conftest.$ac_ext >&5
18271:
18272: ac_cv_type_off_t=no
18273: fi
1.86 paf 18274: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18275: fi
1.66 paf 18276: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18277: echo "${ECHO_T}$ac_cv_type_off_t" >&6
18278: if test $ac_cv_type_off_t = yes; then
1.62 paf 18279: :
18280: else
1.1 paf 18281:
1.66 paf 18282: cat >>confdefs.h <<_ACEOF
18283: #define off_t long
18284: _ACEOF
18285:
1.62 paf 18286: fi
1.1 paf 18287:
1.66 paf 18288: echo "$as_me:$LINENO: checking for ssize_t" >&5
18289: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18290: if test "${ac_cv_type_ssize_t+set}" = set; then
18291: echo $ECHO_N "(cached) $ECHO_C" >&6
18292: else
1.62 paf 18293: cat >conftest.$ac_ext <<_ACEOF
18294: /* confdefs.h. */
18295: _ACEOF
18296: cat confdefs.h >>conftest.$ac_ext
18297: cat >>conftest.$ac_ext <<_ACEOF
18298: /* end confdefs.h. */
1.66 paf 18299: $ac_includes_default
18300: int
18301: main ()
18302: {
18303: if ((ssize_t *) 0)
18304: return 0;
18305: if (sizeof (ssize_t))
18306: return 0;
18307: ;
18308: return 0;
18309: }
1.62 paf 18310: _ACEOF
1.66 paf 18311: rm -f conftest.$ac_objext
18312: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18313: (eval $ac_compile) 2>conftest.er1
1.66 paf 18314: ac_status=$?
1.86 paf 18315: grep -v '^ *+' conftest.er1 >conftest.err
18316: rm -f conftest.er1
18317: cat conftest.err >&5
1.66 paf 18318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319: (exit $ac_status); } &&
1.86 paf 18320: { ac_try='test -z "$ac_c_werror_flag"
18321: || test ! -s conftest.err'
18322: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323: (eval $ac_try) 2>&5
18324: ac_status=$?
18325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326: (exit $ac_status); }; } &&
18327: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18328: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329: (eval $ac_try) 2>&5
1.62 paf 18330: ac_status=$?
18331: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18332: (exit $ac_status); }; }; then
18333: ac_cv_type_ssize_t=yes
1.1 paf 18334: else
1.62 paf 18335: echo "$as_me: failed program was:" >&5
18336: sed 's/^/| /' conftest.$ac_ext >&5
18337:
1.66 paf 18338: ac_cv_type_ssize_t=no
18339: fi
1.86 paf 18340: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18341: fi
1.66 paf 18342: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
18343: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18344: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 18345: :
18346: else
1.66 paf 18347:
18348: cat >>confdefs.h <<_ACEOF
18349: #define ssize_t int
18350: _ACEOF
18351:
1.1 paf 18352: fi
1.62 paf 18353:
18354:
18355:
1.66 paf 18356: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18357: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18358: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 18359: echo $ECHO_N "(cached) $ECHO_C" >&6
18360: else
18361: cat >conftest.$ac_ext <<_ACEOF
18362: /* confdefs.h. */
18363: _ACEOF
18364: cat confdefs.h >>conftest.$ac_ext
18365: cat >>conftest.$ac_ext <<_ACEOF
18366: /* end confdefs.h. */
1.66 paf 18367: #include <sys/types.h>
18368: #include <sys/time.h>
18369: #include <time.h>
1.62 paf 18370:
18371: int
18372: main ()
18373: {
1.66 paf 18374: if ((struct tm *) 0)
18375: return 0;
1.62 paf 18376: ;
18377: return 0;
18378: }
18379: _ACEOF
18380: rm -f conftest.$ac_objext
18381: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18382: (eval $ac_compile) 2>conftest.er1
1.62 paf 18383: ac_status=$?
1.86 paf 18384: grep -v '^ *+' conftest.er1 >conftest.err
18385: rm -f conftest.er1
18386: cat conftest.err >&5
1.62 paf 18387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388: (exit $ac_status); } &&
1.86 paf 18389: { ac_try='test -z "$ac_c_werror_flag"
18390: || test ! -s conftest.err'
18391: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392: (eval $ac_try) 2>&5
18393: ac_status=$?
18394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395: (exit $ac_status); }; } &&
18396: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398: (eval $ac_try) 2>&5
18399: ac_status=$?
18400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401: (exit $ac_status); }; }; then
1.66 paf 18402: ac_cv_header_time=yes
1.1 paf 18403: else
1.62 paf 18404: echo "$as_me: failed program was:" >&5
18405: sed 's/^/| /' conftest.$ac_ext >&5
18406:
1.66 paf 18407: ac_cv_header_time=no
1.1 paf 18408: fi
1.86 paf 18409: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18410: fi
18411: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18412: echo "${ECHO_T}$ac_cv_header_time" >&6
18413: if test $ac_cv_header_time = yes; then
1.1 paf 18414:
1.66 paf 18415: cat >>confdefs.h <<\_ACEOF
18416: #define TIME_WITH_SYS_TIME 1
1.62 paf 18417: _ACEOF
18418:
1.1 paf 18419: fi
18420:
18421:
1.62 paf 18422:
1.1 paf 18423:
1.66 paf 18424:
18425:
18426:
18427:
18428:
18429:
18430:
18431:
18432:
18433:
18434:
18435:
18436:
18437:
18438:
18439:
18440:
18441:
18442:
18443:
18444:
18445:
18446:
18447:
18448:
18449:
18450:
18451:
1.128 moko 18452:
1.67 paf 18453: for ac_header in assert.h \
18454: signal.h \
1.66 paf 18455: unistd.h \
18456: process.h \
18457: stddef.h \
18458: stdarg.h \
18459: fcntl.h \
18460: sys/stat.h \
18461: io.h \
18462: stdio.h \
18463: errno.h \
18464: ctype.h \
18465: math.h \
18466: crypt.h \
18467: time.h sys/time.h \
18468: string.h \
18469: direct.h \
18470: setjmp.h \
18471: memory.h \
1.128 moko 18472: limits.h \
1.66 paf 18473: sys/file.h \
18474: sys/locking.h \
18475: sys/types.h \
18476: sys/select.h \
18477: sys/resource.h \
18478: winsock.h \
18479: sys/socket.h \
18480: netinet/in.h \
18481: arpa/inet.h \
18482: netdb.h
18483:
18484: do
18485: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18486: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18487: echo "$as_me:$LINENO: checking for $ac_header" >&5
18488: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18489: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18490: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 18491: fi
1.66 paf 18492: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18493: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18494: else
1.66 paf 18495: # Is the header compilable?
18496: echo "$as_me:$LINENO: checking $ac_header usability" >&5
18497: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18498: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18499: /* confdefs.h. */
18500: _ACEOF
18501: cat confdefs.h >>conftest.$ac_ext
18502: cat >>conftest.$ac_ext <<_ACEOF
18503: /* end confdefs.h. */
1.66 paf 18504: $ac_includes_default
18505: #include <$ac_header>
1.62 paf 18506: _ACEOF
1.66 paf 18507: rm -f conftest.$ac_objext
18508: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18509: (eval $ac_compile) 2>conftest.er1
1.62 paf 18510: ac_status=$?
1.86 paf 18511: grep -v '^ *+' conftest.er1 >conftest.err
18512: rm -f conftest.er1
18513: cat conftest.err >&5
1.62 paf 18514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18515: (exit $ac_status); } &&
1.86 paf 18516: { ac_try='test -z "$ac_c_werror_flag"
18517: || test ! -s conftest.err'
18518: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519: (eval $ac_try) 2>&5
18520: ac_status=$?
18521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522: (exit $ac_status); }; } &&
18523: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525: (eval $ac_try) 2>&5
18526: ac_status=$?
18527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528: (exit $ac_status); }; }; then
1.66 paf 18529: ac_header_compiler=yes
1.1 paf 18530: else
1.66 paf 18531: echo "$as_me: failed program was:" >&5
1.62 paf 18532: sed 's/^/| /' conftest.$ac_ext >&5
18533:
1.66 paf 18534: ac_header_compiler=no
1.1 paf 18535: fi
1.86 paf 18536: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18537: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18538: echo "${ECHO_T}$ac_header_compiler" >&6
18539:
18540: # Is the header present?
18541: echo "$as_me:$LINENO: checking $ac_header presence" >&5
18542: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18543: cat >conftest.$ac_ext <<_ACEOF
18544: /* confdefs.h. */
18545: _ACEOF
18546: cat confdefs.h >>conftest.$ac_ext
18547: cat >>conftest.$ac_ext <<_ACEOF
18548: /* end confdefs.h. */
18549: #include <$ac_header>
18550: _ACEOF
18551: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18552: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18553: ac_status=$?
18554: grep -v '^ *+' conftest.er1 >conftest.err
18555: rm -f conftest.er1
18556: cat conftest.err >&5
18557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558: (exit $ac_status); } >/dev/null; then
18559: if test -s conftest.err; then
18560: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 18561: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 18562: else
18563: ac_cpp_err=
18564: fi
18565: else
18566: ac_cpp_err=yes
1.1 paf 18567: fi
1.66 paf 18568: if test -z "$ac_cpp_err"; then
18569: ac_header_preproc=yes
18570: else
18571: echo "$as_me: failed program was:" >&5
18572: sed 's/^/| /' conftest.$ac_ext >&5
18573:
18574: ac_header_preproc=no
1.1 paf 18575: fi
1.66 paf 18576: rm -f conftest.err conftest.$ac_ext
18577: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18578: echo "${ECHO_T}$ac_header_preproc" >&6
18579:
18580: # So? What about this header?
1.86 paf 18581: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18582: yes:no: )
1.66 paf 18583: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18584: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 18585: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18586: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18587: ac_header_preproc=yes
1.66 paf 18588: ;;
1.86 paf 18589: no:yes:* )
1.66 paf 18590: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18591: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 18592: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18593: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18594: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18595: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18596: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18597: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 18598: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18599: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 18600: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18601: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 18602: (
18603: cat <<\_ASBOX
1.128 moko 18604: ## --------------------------------- ##
18605: ## Report this to the parser lists. ##
18606: ## --------------------------------- ##
1.66 paf 18607: _ASBOX
18608: ) |
18609: sed "s/^/$as_me: WARNING: /" >&2
18610: ;;
18611: esac
18612: echo "$as_me:$LINENO: checking for $ac_header" >&5
18613: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18614: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18615: echo $ECHO_N "(cached) $ECHO_C" >&6
18616: else
1.86 paf 18617: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 18618: fi
1.66 paf 18619: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18620: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18621:
1.66 paf 18622: fi
18623: if test `eval echo '${'$as_ac_Header'}'` = yes; then
18624: cat >>confdefs.h <<_ACEOF
18625: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18626: _ACEOF
18627:
18628: fi
18629:
1.66 paf 18630: done
1.62 paf 18631:
18632:
18633:
1.128 moko 18634:
18635:
1.66 paf 18636: case "$host" in
1.107 misha 18637: *-freebsd4*)
18638:
18639: cat >>confdefs.h <<\_ACEOF
18640: #define FREEBSD4
18641: _ACEOF
18642:
18643: ;;
1.66 paf 18644: *-sunos5.6* | *-solaris2.6*)
1.62 paf 18645:
1.66 paf 18646: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
18647: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
18648: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 18649: echo $ECHO_N "(cached) $ECHO_C" >&6
18650: else
1.66 paf 18651: ac_check_lib_save_LIBS=$LIBS
18652: LIBS="-lxnet $LIBS"
18653: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18654: /* confdefs.h. */
18655: _ACEOF
18656: cat confdefs.h >>conftest.$ac_ext
18657: cat >>conftest.$ac_ext <<_ACEOF
18658: /* end confdefs.h. */
18659:
1.66 paf 18660:
18661: int
18662: main ()
18663: {
18664: main ();
18665: ;
18666: return 0;
18667: }
1.62 paf 18668: _ACEOF
1.66 paf 18669: rm -f conftest.$ac_objext conftest$ac_exeext
18670: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18671: (eval $ac_link) 2>conftest.er1
1.62 paf 18672: ac_status=$?
1.86 paf 18673: grep -v '^ *+' conftest.er1 >conftest.err
18674: rm -f conftest.er1
18675: cat conftest.err >&5
1.62 paf 18676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677: (exit $ac_status); } &&
1.86 paf 18678: { ac_try='test -z "$ac_c_werror_flag"
18679: || test ! -s conftest.err'
18680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681: (eval $ac_try) 2>&5
18682: ac_status=$?
18683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684: (exit $ac_status); }; } &&
18685: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18686: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687: (eval $ac_try) 2>&5
18688: ac_status=$?
18689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690: (exit $ac_status); }; }; then
1.66 paf 18691: ac_cv_lib_xnet_main=yes
1.62 paf 18692: else
18693: echo "$as_me: failed program was:" >&5
18694: sed 's/^/| /' conftest.$ac_ext >&5
18695:
1.66 paf 18696: ac_cv_lib_xnet_main=no
1.62 paf 18697: fi
1.86 paf 18698: rm -f conftest.err conftest.$ac_objext \
18699: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18700: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18701: fi
1.66 paf 18702: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
18703: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
18704: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 18705: cat >>confdefs.h <<_ACEOF
1.66 paf 18706: #define HAVE_LIBXNET 1
1.62 paf 18707: _ACEOF
1.1 paf 18708:
1.66 paf 18709: LIBS="-lxnet $LIBS"
18710:
1.1 paf 18711: fi
18712:
1.66 paf 18713: ;;
18714: *-sunos5* | *-solaris2*)
1.62 paf 18715:
1.66 paf 18716: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
18717: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
18718: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 18719: echo $ECHO_N "(cached) $ECHO_C" >&6
18720: else
1.66 paf 18721: ac_check_lib_save_LIBS=$LIBS
18722: LIBS="-lsocket $LIBS"
18723: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18724: /* confdefs.h. */
18725: _ACEOF
18726: cat confdefs.h >>conftest.$ac_ext
18727: cat >>conftest.$ac_ext <<_ACEOF
18728: /* end confdefs.h. */
1.66 paf 18729:
18730:
1.62 paf 18731: int
18732: main ()
18733: {
1.66 paf 18734: main ();
1.62 paf 18735: ;
18736: return 0;
18737: }
18738: _ACEOF
1.66 paf 18739: rm -f conftest.$ac_objext conftest$ac_exeext
18740: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18741: (eval $ac_link) 2>conftest.er1
1.62 paf 18742: ac_status=$?
1.86 paf 18743: grep -v '^ *+' conftest.er1 >conftest.err
18744: rm -f conftest.er1
18745: cat conftest.err >&5
1.62 paf 18746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747: (exit $ac_status); } &&
1.86 paf 18748: { ac_try='test -z "$ac_c_werror_flag"
18749: || test ! -s conftest.err'
18750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751: (eval $ac_try) 2>&5
18752: ac_status=$?
18753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754: (exit $ac_status); }; } &&
18755: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757: (eval $ac_try) 2>&5
18758: ac_status=$?
18759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760: (exit $ac_status); }; }; then
1.66 paf 18761: ac_cv_lib_socket_main=yes
1.1 paf 18762: else
1.62 paf 18763: echo "$as_me: failed program was:" >&5
18764: sed 's/^/| /' conftest.$ac_ext >&5
18765:
1.66 paf 18766: ac_cv_lib_socket_main=no
1.1 paf 18767: fi
1.86 paf 18768: rm -f conftest.err conftest.$ac_objext \
18769: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18770: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18771: fi
1.66 paf 18772: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
18773: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
18774: if test $ac_cv_lib_socket_main = yes; then
18775: cat >>confdefs.h <<_ACEOF
18776: #define HAVE_LIBSOCKET 1
18777: _ACEOF
1.1 paf 18778:
1.66 paf 18779: LIBS="-lsocket $LIBS"
1.1 paf 18780:
18781: fi
18782:
1.66 paf 18783:
18784: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
18785: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
18786: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 18787: echo $ECHO_N "(cached) $ECHO_C" >&6
18788: else
1.66 paf 18789: ac_check_lib_save_LIBS=$LIBS
18790: LIBS="-lnsl $LIBS"
18791: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18792: /* confdefs.h. */
18793: _ACEOF
18794: cat confdefs.h >>conftest.$ac_ext
18795: cat >>conftest.$ac_ext <<_ACEOF
18796: /* end confdefs.h. */
1.66 paf 18797:
18798:
1.62 paf 18799: int
18800: main ()
18801: {
1.66 paf 18802: main ();
1.62 paf 18803: ;
18804: return 0;
18805: }
18806: _ACEOF
1.66 paf 18807: rm -f conftest.$ac_objext conftest$ac_exeext
18808: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18809: (eval $ac_link) 2>conftest.er1
1.62 paf 18810: ac_status=$?
1.86 paf 18811: grep -v '^ *+' conftest.er1 >conftest.err
18812: rm -f conftest.er1
18813: cat conftest.err >&5
1.62 paf 18814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815: (exit $ac_status); } &&
1.86 paf 18816: { ac_try='test -z "$ac_c_werror_flag"
18817: || test ! -s conftest.err'
18818: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18819: (eval $ac_try) 2>&5
18820: ac_status=$?
18821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822: (exit $ac_status); }; } &&
18823: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18824: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18825: (eval $ac_try) 2>&5
18826: ac_status=$?
18827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828: (exit $ac_status); }; }; then
1.66 paf 18829: ac_cv_lib_nsl_main=yes
1.30 paf 18830: else
1.62 paf 18831: echo "$as_me: failed program was:" >&5
18832: sed 's/^/| /' conftest.$ac_ext >&5
18833:
1.66 paf 18834: ac_cv_lib_nsl_main=no
1.30 paf 18835: fi
1.86 paf 18836: rm -f conftest.err conftest.$ac_objext \
18837: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18838: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18839: fi
1.66 paf 18840: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
18841: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
18842: if test $ac_cv_lib_nsl_main = yes; then
18843: cat >>confdefs.h <<_ACEOF
18844: #define HAVE_LIBNSL 1
18845: _ACEOF
1.30 paf 18846:
1.66 paf 18847: LIBS="-lnsl $LIBS"
1.30 paf 18848:
18849: fi
18850:
1.66 paf 18851: ;;
18852: *-nec-sysv4*)
18853:
18854: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18855: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18856: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 18857: echo $ECHO_N "(cached) $ECHO_C" >&6
18858: else
1.66 paf 18859: ac_check_lib_save_LIBS=$LIBS
18860: LIBS="-lnsl $LIBS"
18861: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18862: /* confdefs.h. */
18863: _ACEOF
18864: cat confdefs.h >>conftest.$ac_ext
18865: cat >>conftest.$ac_ext <<_ACEOF
18866: /* end confdefs.h. */
1.66 paf 18867:
18868: /* Override any gcc2 internal prototype to avoid an error. */
18869: #ifdef __cplusplus
18870: extern "C"
18871: #endif
18872: /* We use char because int might match the return type of a gcc2
18873: builtin and then its argument prototype would still apply. */
18874: char gethostbyname ();
1.62 paf 18875: int
18876: main ()
18877: {
1.66 paf 18878: gethostbyname ();
1.62 paf 18879: ;
18880: return 0;
18881: }
18882: _ACEOF
1.66 paf 18883: rm -f conftest.$ac_objext conftest$ac_exeext
18884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18885: (eval $ac_link) 2>conftest.er1
1.62 paf 18886: ac_status=$?
1.86 paf 18887: grep -v '^ *+' conftest.er1 >conftest.err
18888: rm -f conftest.er1
18889: cat conftest.err >&5
1.62 paf 18890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891: (exit $ac_status); } &&
1.86 paf 18892: { ac_try='test -z "$ac_c_werror_flag"
18893: || test ! -s conftest.err'
18894: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895: (eval $ac_try) 2>&5
18896: ac_status=$?
18897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898: (exit $ac_status); }; } &&
18899: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18900: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901: (eval $ac_try) 2>&5
18902: ac_status=$?
18903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904: (exit $ac_status); }; }; then
1.66 paf 18905: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 18906: else
1.62 paf 18907: echo "$as_me: failed program was:" >&5
18908: sed 's/^/| /' conftest.$ac_ext >&5
18909:
1.66 paf 18910: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 18911: fi
1.86 paf 18912: rm -f conftest.err conftest.$ac_objext \
18913: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18914: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18915: fi
1.66 paf 18916: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18917: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18918: if test $ac_cv_lib_nsl_gethostbyname = yes; then
18919: cat >>confdefs.h <<_ACEOF
18920: #define HAVE_LIBNSL 1
18921: _ACEOF
1.30 paf 18922:
1.66 paf 18923: LIBS="-lnsl $LIBS"
1.30 paf 18924:
18925: fi
18926:
18927:
1.66 paf 18928: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18929: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
18930: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 18931: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 18932: else
1.66 paf 18933: ac_check_lib_save_LIBS=$LIBS
18934: LIBS="-lsocket $LIBS"
18935: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18936: /* confdefs.h. */
18937: _ACEOF
18938: cat confdefs.h >>conftest.$ac_ext
18939: cat >>conftest.$ac_ext <<_ACEOF
18940: /* end confdefs.h. */
18941:
1.66 paf 18942: /* Override any gcc2 internal prototype to avoid an error. */
18943: #ifdef __cplusplus
18944: extern "C"
18945: #endif
18946: /* We use char because int might match the return type of a gcc2
18947: builtin and then its argument prototype would still apply. */
18948: char socket ();
1.62 paf 18949: int
18950: main ()
18951: {
1.66 paf 18952: socket ();
1.62 paf 18953: ;
18954: return 0;
18955: }
18956: _ACEOF
1.66 paf 18957: rm -f conftest.$ac_objext conftest$ac_exeext
18958: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18959: (eval $ac_link) 2>conftest.er1
1.62 paf 18960: ac_status=$?
1.86 paf 18961: grep -v '^ *+' conftest.er1 >conftest.err
18962: rm -f conftest.er1
18963: cat conftest.err >&5
1.62 paf 18964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965: (exit $ac_status); } &&
1.86 paf 18966: { ac_try='test -z "$ac_c_werror_flag"
18967: || test ! -s conftest.err'
18968: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969: (eval $ac_try) 2>&5
18970: ac_status=$?
18971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972: (exit $ac_status); }; } &&
18973: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975: (eval $ac_try) 2>&5
18976: ac_status=$?
18977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978: (exit $ac_status); }; }; then
1.66 paf 18979: ac_cv_lib_socket_socket=yes
1.8 paf 18980: else
1.62 paf 18981: echo "$as_me: failed program was:" >&5
18982: sed 's/^/| /' conftest.$ac_ext >&5
18983:
1.66 paf 18984: ac_cv_lib_socket_socket=no
1.8 paf 18985: fi
1.86 paf 18986: rm -f conftest.err conftest.$ac_objext \
18987: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18988: LIBS=$ac_check_lib_save_LIBS
1.8 paf 18989: fi
1.66 paf 18990: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18991: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
18992: if test $ac_cv_lib_socket_socket = yes; then
18993: cat >>confdefs.h <<_ACEOF
1.128 moko 18994: #define HAVE_LIBSOCKET 1
1.66 paf 18995: _ACEOF
18996:
1.128 moko 18997: LIBS="-lsocket $LIBS"
1.66 paf 18998:
1.62 paf 18999: fi
19000:
1.66 paf 19001: ;;
1.128 moko 19002: *-cygwin*)
19003:
19004: cat >>confdefs.h <<\_ACEOF
19005: #define WIN32
19006: _ACEOF
1.66 paf 19007:
1.128 moko 19008:
19009: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
19010: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
19011: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.66 paf 19012: echo $ECHO_N "(cached) $ECHO_C" >&6
19013: else
19014: ac_check_lib_save_LIBS=$LIBS
1.128 moko 19015: LIBS="-lwsock32 $LIBS"
1.62 paf 19016: cat >conftest.$ac_ext <<_ACEOF
19017: /* confdefs.h. */
19018: _ACEOF
19019: cat confdefs.h >>conftest.$ac_ext
19020: cat >>conftest.$ac_ext <<_ACEOF
19021: /* end confdefs.h. */
1.66 paf 19022:
1.128 moko 19023: /* Override any gcc2 internal prototype to avoid an error. */
19024: #ifdef __cplusplus
19025: extern "C"
19026: #endif
19027: /* We use char because int might match the return type of a gcc2
19028: builtin and then its argument prototype would still apply. */
19029: char socket ();
1.66 paf 19030: int
19031: main ()
19032: {
1.128 moko 19033: socket ();
1.66 paf 19034: ;
19035: return 0;
19036: }
1.62 paf 19037: _ACEOF
1.66 paf 19038: rm -f conftest.$ac_objext conftest$ac_exeext
19039: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19040: (eval $ac_link) 2>conftest.er1
1.66 paf 19041: ac_status=$?
1.86 paf 19042: grep -v '^ *+' conftest.er1 >conftest.err
19043: rm -f conftest.er1
19044: cat conftest.err >&5
1.66 paf 19045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046: (exit $ac_status); } &&
1.86 paf 19047: { ac_try='test -z "$ac_c_werror_flag"
19048: || test ! -s conftest.err'
19049: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050: (eval $ac_try) 2>&5
19051: ac_status=$?
19052: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053: (exit $ac_status); }; } &&
19054: { ac_try='test -s conftest$ac_exeext'
1.66 paf 19055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056: (eval $ac_try) 2>&5
1.62 paf 19057: ac_status=$?
19058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 19059: (exit $ac_status); }; }; then
1.128 moko 19060: ac_cv_lib_wsock32_socket=yes
1.62 paf 19061: else
19062: echo "$as_me: failed program was:" >&5
19063: sed 's/^/| /' conftest.$ac_ext >&5
19064:
1.128 moko 19065: ac_cv_lib_wsock32_socket=no
1.62 paf 19066: fi
1.86 paf 19067: rm -f conftest.err conftest.$ac_objext \
19068: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19069: LIBS=$ac_check_lib_save_LIBS
1.1 paf 19070: fi
1.128 moko 19071: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
19072: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
19073: if test $ac_cv_lib_wsock32_socket = yes; then
1.62 paf 19074: cat >>confdefs.h <<_ACEOF
1.128 moko 19075: #define HAVE_LIBWSOCK32 1
1.62 paf 19076: _ACEOF
19077:
1.128 moko 19078: LIBS="-lwsock32 $LIBS"
1.66 paf 19079:
1.1 paf 19080: fi
1.62 paf 19081:
1.66 paf 19082: ;;
19083: esac
1.1 paf 19084:
19085:
1.66 paf 19086: echo "$as_me:$LINENO: checking for sin in -lm" >&5
19087: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19088: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 19089: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19090: else
1.62 paf 19091: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19092: LIBS="-lm $LIBS"
1.62 paf 19093: cat >conftest.$ac_ext <<_ACEOF
19094: /* confdefs.h. */
19095: _ACEOF
19096: cat confdefs.h >>conftest.$ac_ext
19097: cat >>conftest.$ac_ext <<_ACEOF
19098: /* end confdefs.h. */
19099:
1.66 paf 19100: /* Override any gcc2 internal prototype to avoid an error. */
19101: #ifdef __cplusplus
19102: extern "C"
19103: #endif
19104: /* We use char because int might match the return type of a gcc2
19105: builtin and then its argument prototype would still apply. */
19106: char sin ();
1.62 paf 19107: int
19108: main ()
19109: {
1.66 paf 19110: sin ();
1.62 paf 19111: ;
19112: return 0;
19113: }
19114: _ACEOF
19115: rm -f conftest.$ac_objext conftest$ac_exeext
19116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19117: (eval $ac_link) 2>conftest.er1
1.62 paf 19118: ac_status=$?
1.86 paf 19119: grep -v '^ *+' conftest.er1 >conftest.err
19120: rm -f conftest.er1
19121: cat conftest.err >&5
1.62 paf 19122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123: (exit $ac_status); } &&
1.86 paf 19124: { ac_try='test -z "$ac_c_werror_flag"
19125: || test ! -s conftest.err'
19126: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19127: (eval $ac_try) 2>&5
19128: ac_status=$?
19129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130: (exit $ac_status); }; } &&
19131: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19132: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133: (eval $ac_try) 2>&5
19134: ac_status=$?
19135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136: (exit $ac_status); }; }; then
1.66 paf 19137: ac_cv_lib_m_sin=yes
1.62 paf 19138: else
19139: echo "$as_me: failed program was:" >&5
19140: sed 's/^/| /' conftest.$ac_ext >&5
19141:
1.66 paf 19142: ac_cv_lib_m_sin=no
1.62 paf 19143: fi
1.86 paf 19144: rm -f conftest.err conftest.$ac_objext \
19145: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19146: LIBS=$ac_check_lib_save_LIBS
19147: fi
1.66 paf 19148: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19149: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19150: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 19151: cat >>confdefs.h <<_ACEOF
1.66 paf 19152: #define HAVE_LIBM 1
1.62 paf 19153: _ACEOF
1.1 paf 19154:
1.66 paf 19155: LIBS="-lm $LIBS"
1.1 paf 19156:
19157: fi
19158:
1.62 paf 19159:
1.66 paf 19160: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19161: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19162: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 19163: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19164: else
1.62 paf 19165: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19166: LIBS="-lcrypt $LIBS"
1.62 paf 19167: cat >conftest.$ac_ext <<_ACEOF
19168: /* confdefs.h. */
19169: _ACEOF
19170: cat confdefs.h >>conftest.$ac_ext
19171: cat >>conftest.$ac_ext <<_ACEOF
19172: /* end confdefs.h. */
19173:
1.66 paf 19174: /* Override any gcc2 internal prototype to avoid an error. */
19175: #ifdef __cplusplus
19176: extern "C"
19177: #endif
19178: /* We use char because int might match the return type of a gcc2
19179: builtin and then its argument prototype would still apply. */
19180: char crypt ();
1.62 paf 19181: int
19182: main ()
19183: {
1.66 paf 19184: crypt ();
1.62 paf 19185: ;
19186: return 0;
19187: }
19188: _ACEOF
19189: rm -f conftest.$ac_objext conftest$ac_exeext
19190: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19191: (eval $ac_link) 2>conftest.er1
1.62 paf 19192: ac_status=$?
1.86 paf 19193: grep -v '^ *+' conftest.er1 >conftest.err
19194: rm -f conftest.er1
19195: cat conftest.err >&5
1.62 paf 19196: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197: (exit $ac_status); } &&
1.86 paf 19198: { ac_try='test -z "$ac_c_werror_flag"
19199: || test ! -s conftest.err'
19200: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201: (eval $ac_try) 2>&5
19202: ac_status=$?
19203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204: (exit $ac_status); }; } &&
19205: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19206: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207: (eval $ac_try) 2>&5
19208: ac_status=$?
19209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210: (exit $ac_status); }; }; then
1.66 paf 19211: ac_cv_lib_crypt_crypt=yes
1.62 paf 19212: else
19213: echo "$as_me: failed program was:" >&5
19214: sed 's/^/| /' conftest.$ac_ext >&5
19215:
1.66 paf 19216: ac_cv_lib_crypt_crypt=no
1.62 paf 19217: fi
1.86 paf 19218: rm -f conftest.err conftest.$ac_objext \
19219: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19220: LIBS=$ac_check_lib_save_LIBS
19221: fi
1.66 paf 19222: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19223: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19224: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 19225: cat >>confdefs.h <<_ACEOF
1.66 paf 19226: #define HAVE_LIBCRYPT 1
1.62 paf 19227: _ACEOF
1.1 paf 19228:
1.66 paf 19229: LIBS="-lcrypt $LIBS"
19230:
19231: fi
19232:
19233:
19234:
19235:
19236:
19237:
19238:
19239:
19240:
19241:
19242:
19243:
1.80 paf 19244:
1.92 misha 19245:
1.112 misha 19246:
1.67 paf 19247: for ac_func in flock \
1.66 paf 19248: _locking \
19249: fcntl \
19250: lockf \
19251: ftruncate \
1.112 misha 19252: fchmod \
1.66 paf 19253: getrusage \
19254: gettimeofday \
19255: crypt \
1.80 paf 19256: sigsetjmp \
1.92 misha 19257: siglongjmp \
19258: unsetenv
1.66 paf 19259:
19260: do
19261: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19262: echo "$as_me:$LINENO: checking for $ac_func" >&5
19263: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19264: if eval "test \"\${$as_ac_var+set}\" = set"; then
19265: echo $ECHO_N "(cached) $ECHO_C" >&6
19266: else
19267: cat >conftest.$ac_ext <<_ACEOF
19268: /* confdefs.h. */
19269: _ACEOF
19270: cat confdefs.h >>conftest.$ac_ext
19271: cat >>conftest.$ac_ext <<_ACEOF
19272: /* end confdefs.h. */
1.86 paf 19273: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19274: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19275: #define $ac_func innocuous_$ac_func
19276:
1.66 paf 19277: /* System header to define __stub macros and hopefully few prototypes,
19278: which can conflict with char $ac_func (); below.
19279: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19280: <limits.h> exists even on freestanding compilers. */
1.86 paf 19281:
1.66 paf 19282: #ifdef __STDC__
19283: # include <limits.h>
19284: #else
19285: # include <assert.h>
19286: #endif
1.86 paf 19287:
19288: #undef $ac_func
19289:
1.66 paf 19290: /* Override any gcc2 internal prototype to avoid an error. */
19291: #ifdef __cplusplus
19292: extern "C"
19293: {
19294: #endif
19295: /* We use char because int might match the return type of a gcc2
19296: builtin and then its argument prototype would still apply. */
19297: char $ac_func ();
19298: /* The GNU C library defines this for functions which it implements
19299: to always fail with ENOSYS. Some functions are actually named
19300: something starting with __ and the normal name is an alias. */
19301: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19302: choke me
19303: #else
19304: char (*f) () = $ac_func;
19305: #endif
19306: #ifdef __cplusplus
19307: }
19308: #endif
1.62 paf 19309:
19310: int
19311: main ()
19312: {
1.66 paf 19313: return f != $ac_func;
1.62 paf 19314: ;
19315: return 0;
19316: }
19317: _ACEOF
19318: rm -f conftest.$ac_objext conftest$ac_exeext
19319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19320: (eval $ac_link) 2>conftest.er1
1.62 paf 19321: ac_status=$?
1.86 paf 19322: grep -v '^ *+' conftest.er1 >conftest.err
19323: rm -f conftest.er1
19324: cat conftest.err >&5
1.62 paf 19325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326: (exit $ac_status); } &&
1.86 paf 19327: { ac_try='test -z "$ac_c_werror_flag"
19328: || test ! -s conftest.err'
19329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330: (eval $ac_try) 2>&5
19331: ac_status=$?
19332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333: (exit $ac_status); }; } &&
19334: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19335: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336: (eval $ac_try) 2>&5
19337: ac_status=$?
19338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339: (exit $ac_status); }; }; then
1.66 paf 19340: eval "$as_ac_var=yes"
1.62 paf 19341: else
19342: echo "$as_me: failed program was:" >&5
19343: sed 's/^/| /' conftest.$ac_ext >&5
19344:
1.66 paf 19345: eval "$as_ac_var=no"
1.62 paf 19346: fi
1.86 paf 19347: rm -f conftest.err conftest.$ac_objext \
19348: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19349: fi
1.66 paf 19350: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19351: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19352: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19353: cat >>confdefs.h <<_ACEOF
1.66 paf 19354: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19355: _ACEOF
1.1 paf 19356:
1.66 paf 19357: fi
19358: done
19359:
1.1 paf 19360:
19361:
1.67 paf 19362: pa_func=sigsetjmp
19363: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
19364: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
19365: cat >conftest.$ac_ext <<_ACEOF
19366: /* confdefs.h. */
19367: _ACEOF
19368: cat confdefs.h >>conftest.$ac_ext
19369: cat >>conftest.$ac_ext <<_ACEOF
19370: /* end confdefs.h. */
19371:
19372: #ifdef HAVE_SETJMP_H
19373: # include <setjmp.h>
19374: #endif
19375:
19376: int
19377: main ()
19378: {
19379:
19380: $pa_func(0,0);
19381:
19382: ;
19383: return 0;
19384: }
19385: _ACEOF
19386: rm -f conftest.$ac_objext
19387: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19388: (eval $ac_compile) 2>conftest.er1
1.67 paf 19389: ac_status=$?
1.86 paf 19390: grep -v '^ *+' conftest.er1 >conftest.err
19391: rm -f conftest.er1
19392: cat conftest.err >&5
1.67 paf 19393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394: (exit $ac_status); } &&
1.86 paf 19395: { ac_try='test -z "$ac_c_werror_flag"
19396: || test ! -s conftest.err'
19397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398: (eval $ac_try) 2>&5
19399: ac_status=$?
19400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401: (exit $ac_status); }; } &&
19402: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404: (eval $ac_try) 2>&5
19405: ac_status=$?
19406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407: (exit $ac_status); }; }; then
19408: echo "$as_me:$LINENO: result: yes" >&5
19409: echo "${ECHO_T}yes" >&6
19410: cat >>confdefs.h <<_ACEOF
19411: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19412: _ACEOF
19413:
19414:
19415: else
19416: echo "$as_me: failed program was:" >&5
19417: sed 's/^/| /' conftest.$ac_ext >&5
19418:
19419: echo "$as_me:$LINENO: result: no" >&5
19420: echo "${ECHO_T}no" >&6
19421:
19422: fi
1.86 paf 19423: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19424:
19425:
19426:
19427: ac_ext=cc
19428: ac_cpp='$CXXCPP $CPPFLAGS'
19429: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19430: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19431: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19432:
19433:
19434:
19435:
19436:
19437:
19438: for pa_func in trunc \
19439: round \
19440: sign
19441:
19442: do
19443:
19444: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
19445: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
19446: cat >conftest.$ac_ext <<_ACEOF
19447: /* confdefs.h. */
19448: _ACEOF
19449: cat confdefs.h >>conftest.$ac_ext
19450: cat >>conftest.$ac_ext <<_ACEOF
19451: /* end confdefs.h. */
19452:
19453: #ifdef HAVE_MATH_H
19454: # include <math.h>
19455: #endif
19456:
19457: int
19458: main ()
19459: {
19460:
19461: double result=$pa_func(1.6);
19462:
19463: ;
19464: return 0;
19465: }
19466: _ACEOF
19467: rm -f conftest.$ac_objext
19468: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19469: (eval $ac_compile) 2>conftest.er1
1.67 paf 19470: ac_status=$?
1.86 paf 19471: grep -v '^ *+' conftest.er1 >conftest.err
19472: rm -f conftest.er1
19473: cat conftest.err >&5
1.67 paf 19474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475: (exit $ac_status); } &&
1.86 paf 19476: { ac_try='test -z "$ac_cxx_werror_flag"
19477: || test ! -s conftest.err'
19478: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479: (eval $ac_try) 2>&5
19480: ac_status=$?
19481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482: (exit $ac_status); }; } &&
19483: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485: (eval $ac_try) 2>&5
19486: ac_status=$?
19487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488: (exit $ac_status); }; }; then
19489: echo "$as_me:$LINENO: result: yes" >&5
19490: echo "${ECHO_T}yes" >&6
19491: cat >>confdefs.h <<_ACEOF
19492: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19493: _ACEOF
19494:
19495: else
19496: echo "$as_me: failed program was:" >&5
19497: sed 's/^/| /' conftest.$ac_ext >&5
19498:
19499: echo "$as_me:$LINENO: result: no" >&5
19500: echo "${ECHO_T}no" >&6
19501:
19502: fi
1.86 paf 19503: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19504:
19505: done
19506:
19507: ac_ext=c
19508: ac_cpp='$CPP $CPPFLAGS'
19509: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19512:
19513:
19514:
1.62 paf 19515:
1.66 paf 19516: for ac_func in qsort
19517: do
19518: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19519: echo "$as_me:$LINENO: checking for $ac_func" >&5
19520: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19521: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 19522: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19523: else
1.66 paf 19524: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 19525: /* confdefs.h. */
19526: _ACEOF
19527: cat confdefs.h >>conftest.$ac_ext
19528: cat >>conftest.$ac_ext <<_ACEOF
19529: /* end confdefs.h. */
1.86 paf 19530: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19531: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19532: #define $ac_func innocuous_$ac_func
19533:
1.66 paf 19534: /* System header to define __stub macros and hopefully few prototypes,
19535: which can conflict with char $ac_func (); below.
19536: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19537: <limits.h> exists even on freestanding compilers. */
1.86 paf 19538:
1.66 paf 19539: #ifdef __STDC__
19540: # include <limits.h>
19541: #else
19542: # include <assert.h>
19543: #endif
1.86 paf 19544:
19545: #undef $ac_func
19546:
1.1 paf 19547: /* Override any gcc2 internal prototype to avoid an error. */
19548: #ifdef __cplusplus
19549: extern "C"
1.66 paf 19550: {
1.1 paf 19551: #endif
19552: /* We use char because int might match the return type of a gcc2
1.62 paf 19553: builtin and then its argument prototype would still apply. */
1.66 paf 19554: char $ac_func ();
19555: /* The GNU C library defines this for functions which it implements
19556: to always fail with ENOSYS. Some functions are actually named
19557: something starting with __ and the normal name is an alias. */
19558: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19559: choke me
19560: #else
19561: char (*f) () = $ac_func;
19562: #endif
19563: #ifdef __cplusplus
19564: }
19565: #endif
19566:
1.62 paf 19567: int
19568: main ()
19569: {
1.66 paf 19570: return f != $ac_func;
1.62 paf 19571: ;
19572: return 0;
19573: }
19574: _ACEOF
19575: rm -f conftest.$ac_objext conftest$ac_exeext
19576: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19577: (eval $ac_link) 2>conftest.er1
1.62 paf 19578: ac_status=$?
1.86 paf 19579: grep -v '^ *+' conftest.er1 >conftest.err
19580: rm -f conftest.er1
19581: cat conftest.err >&5
1.62 paf 19582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583: (exit $ac_status); } &&
1.86 paf 19584: { ac_try='test -z "$ac_c_werror_flag"
19585: || test ! -s conftest.err'
19586: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587: (eval $ac_try) 2>&5
19588: ac_status=$?
19589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590: (exit $ac_status); }; } &&
19591: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593: (eval $ac_try) 2>&5
19594: ac_status=$?
19595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596: (exit $ac_status); }; }; then
1.66 paf 19597: eval "$as_ac_var=yes"
1.62 paf 19598: else
19599: echo "$as_me: failed program was:" >&5
19600: sed 's/^/| /' conftest.$ac_ext >&5
19601:
1.66 paf 19602: eval "$as_ac_var=no"
1.62 paf 19603: fi
1.86 paf 19604: rm -f conftest.err conftest.$ac_objext \
19605: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19606: fi
1.66 paf 19607: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19608: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19609: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19610: cat >>confdefs.h <<_ACEOF
1.66 paf 19611: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19612: _ACEOF
1.1 paf 19613:
1.66 paf 19614: else
19615: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
19616: echo "$as_me: error: No qsort library function." >&2;}
19617: { (exit 1); exit 1; }; }
1.1 paf 19618: fi
1.66 paf 19619: done
1.1 paf 19620:
19621:
1.62 paf 19622:
1.66 paf 19623: echo "$as_me:$LINENO: checking for timezone variable" >&5
19624: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 19625: cat >conftest.$ac_ext <<_ACEOF
19626: /* confdefs.h. */
19627: _ACEOF
19628: cat confdefs.h >>conftest.$ac_ext
19629: cat >>conftest.$ac_ext <<_ACEOF
19630: /* end confdefs.h. */
1.66 paf 19631: #include <time.h>
1.62 paf 19632: int
19633: main ()
19634: {
1.66 paf 19635:
19636: time_t test=timezone;
19637:
1.62 paf 19638: ;
19639: return 0;
19640: }
19641: _ACEOF
1.66 paf 19642: rm -f conftest.$ac_objext
19643: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19644: (eval $ac_compile) 2>conftest.er1
1.62 paf 19645: ac_status=$?
1.86 paf 19646: grep -v '^ *+' conftest.er1 >conftest.err
19647: rm -f conftest.er1
19648: cat conftest.err >&5
1.62 paf 19649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650: (exit $ac_status); } &&
1.86 paf 19651: { ac_try='test -z "$ac_c_werror_flag"
19652: || test ! -s conftest.err'
19653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654: (eval $ac_try) 2>&5
19655: ac_status=$?
19656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657: (exit $ac_status); }; } &&
19658: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660: (eval $ac_try) 2>&5
19661: ac_status=$?
19662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663: (exit $ac_status); }; }; then
1.66 paf 19664: cat >>confdefs.h <<\_ACEOF
19665: #define HAVE_TIMEZONE 1
19666: _ACEOF
19667:
19668: echo "$as_me:$LINENO: result: yes" >&5
19669: echo "${ECHO_T}yes" >&6
1.62 paf 19670: else
19671: echo "$as_me: failed program was:" >&5
19672: sed 's/^/| /' conftest.$ac_ext >&5
19673:
1.66 paf 19674: echo "$as_me:$LINENO: result: no" >&5
19675: echo "${ECHO_T}no" >&6
1.62 paf 19676: fi
1.86 paf 19677: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19678:
1.66 paf 19679: echo "$as_me:$LINENO: checking for daylight variable" >&5
19680: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 19681: cat >conftest.$ac_ext <<_ACEOF
19682: /* confdefs.h. */
19683: _ACEOF
19684: cat confdefs.h >>conftest.$ac_ext
19685: cat >>conftest.$ac_ext <<_ACEOF
19686: /* end confdefs.h. */
1.66 paf 19687: #include <time.h>
1.62 paf 19688: int
19689: main ()
19690: {
1.66 paf 19691:
19692: int test=daylight;
19693:
1.62 paf 19694: ;
19695: return 0;
19696: }
19697: _ACEOF
1.66 paf 19698: rm -f conftest.$ac_objext
19699: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19700: (eval $ac_compile) 2>conftest.er1
1.62 paf 19701: ac_status=$?
1.86 paf 19702: grep -v '^ *+' conftest.er1 >conftest.err
19703: rm -f conftest.er1
19704: cat conftest.err >&5
1.62 paf 19705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706: (exit $ac_status); } &&
1.86 paf 19707: { ac_try='test -z "$ac_c_werror_flag"
19708: || test ! -s conftest.err'
19709: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710: (eval $ac_try) 2>&5
19711: ac_status=$?
19712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713: (exit $ac_status); }; } &&
19714: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19715: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716: (eval $ac_try) 2>&5
19717: ac_status=$?
19718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719: (exit $ac_status); }; }; then
1.66 paf 19720: cat >>confdefs.h <<\_ACEOF
19721: #define HAVE_DAYLIGHT 1
19722: _ACEOF
19723:
19724: echo "$as_me:$LINENO: result: yes" >&5
19725: echo "${ECHO_T}yes" >&6
1.62 paf 19726: else
19727: echo "$as_me: failed program was:" >&5
19728: sed 's/^/| /' conftest.$ac_ext >&5
19729:
1.66 paf 19730: echo "$as_me:$LINENO: result: no" >&5
19731: echo "${ECHO_T}no" >&6
1.62 paf 19732: fi
1.86 paf 19733: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 19734:
1.66 paf 19735: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19736: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 19737: cat >conftest.$ac_ext <<_ACEOF
19738: /* confdefs.h. */
19739: _ACEOF
19740: cat confdefs.h >>conftest.$ac_ext
19741: cat >>conftest.$ac_ext <<_ACEOF
19742: /* end confdefs.h. */
1.66 paf 19743: #include <time.h>
1.62 paf 19744: int
19745: main ()
19746: {
1.66 paf 19747: struct tm tm;
19748: tm.tm_gmtoff=0;
19749:
1.62 paf 19750: ;
19751: return 0;
19752: }
19753: _ACEOF
1.66 paf 19754: rm -f conftest.$ac_objext
19755: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19756: (eval $ac_compile) 2>conftest.er1
1.62 paf 19757: ac_status=$?
1.86 paf 19758: grep -v '^ *+' conftest.er1 >conftest.err
19759: rm -f conftest.er1
19760: cat conftest.err >&5
1.62 paf 19761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762: (exit $ac_status); } &&
1.86 paf 19763: { ac_try='test -z "$ac_c_werror_flag"
19764: || test ! -s conftest.err'
19765: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766: (eval $ac_try) 2>&5
19767: ac_status=$?
19768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769: (exit $ac_status); }; } &&
19770: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19771: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772: (eval $ac_try) 2>&5
19773: ac_status=$?
19774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775: (exit $ac_status); }; }; then
1.66 paf 19776: cat >>confdefs.h <<\_ACEOF
19777: #define HAVE_TM_GMTOFF 1
19778: _ACEOF
19779:
19780: echo "$as_me:$LINENO: result: yes" >&5
19781: echo "${ECHO_T}yes" >&6
1.62 paf 19782: else
19783: echo "$as_me: failed program was:" >&5
19784: sed 's/^/| /' conftest.$ac_ext >&5
19785:
1.66 paf 19786: echo "$as_me:$LINENO: result: no" >&5
19787: echo "${ECHO_T}no" >&6
1.62 paf 19788: fi
1.86 paf 19789: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19790:
1.66 paf 19791: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
19792: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 19793: cat >conftest.$ac_ext <<_ACEOF
19794: /* confdefs.h. */
19795: _ACEOF
19796: cat confdefs.h >>conftest.$ac_ext
19797: cat >>conftest.$ac_ext <<_ACEOF
19798: /* end confdefs.h. */
1.66 paf 19799: #include <time.h>
1.62 paf 19800: int
19801: main ()
19802: {
1.66 paf 19803: struct tm tm;
19804: tm.tm_tzadj=0;
19805:
1.62 paf 19806: ;
19807: return 0;
19808: }
19809: _ACEOF
1.66 paf 19810: rm -f conftest.$ac_objext
19811: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19812: (eval $ac_compile) 2>conftest.er1
1.62 paf 19813: ac_status=$?
1.86 paf 19814: grep -v '^ *+' conftest.er1 >conftest.err
19815: rm -f conftest.er1
19816: cat conftest.err >&5
1.62 paf 19817: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818: (exit $ac_status); } &&
1.86 paf 19819: { ac_try='test -z "$ac_c_werror_flag"
19820: || test ! -s conftest.err'
19821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822: (eval $ac_try) 2>&5
19823: ac_status=$?
19824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825: (exit $ac_status); }; } &&
19826: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19827: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828: (eval $ac_try) 2>&5
19829: ac_status=$?
19830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831: (exit $ac_status); }; }; then
1.66 paf 19832: cat >>confdefs.h <<\_ACEOF
19833: #define HAVE_TM_TZADJ 1
19834: _ACEOF
19835:
19836: echo "$as_me:$LINENO: result: yes" >&5
19837: echo "${ECHO_T}yes" >&6
1.62 paf 19838: else
19839: echo "$as_me: failed program was:" >&5
19840: sed 's/^/| /' conftest.$ac_ext >&5
19841:
1.66 paf 19842: echo "$as_me:$LINENO: result: no" >&5
19843: echo "${ECHO_T}no" >&6
1.62 paf 19844: fi
1.86 paf 19845: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 19846:
19847:
19848:
19849:
1.1 paf 19850:
19851:
19852:
1.62 paf 19853:
19854:
19855:
19856:
19857:
19858:
19859:
19860:
19861:
19862:
19863:
19864:
19865:
19866:
19867:
19868:
19869:
19870:
19871:
19872:
19873:
19874:
19875:
19876:
1.128 moko 19877: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 19878:
19879:
1.130 moko 19880: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/memcached/Makefile src/lib/curl/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
1.62 paf 19881: cat >confcache <<\_ACEOF
1.1 paf 19882: # This file is a shell script that caches the results of configure
19883: # tests run on this system so they can be shared between configure
1.62 paf 19884: # scripts and configure runs, see configure's option --config-cache.
19885: # It is not useful on other systems. If it contains results you don't
19886: # want to keep, you may remove or edit it.
1.1 paf 19887: #
1.62 paf 19888: # config.status only pays attention to the cache file if you give it
19889: # the --recheck option to rerun configure.
1.1 paf 19890: #
1.62 paf 19891: # `ac_cv_env_foo' variables (set or unset) will be overridden when
19892: # loading this file, other *unset* `ac_cv_foo' will be assigned the
19893: # following values.
19894:
19895: _ACEOF
19896:
1.1 paf 19897: # The following way of writing the cache mishandles newlines in values,
19898: # but we know of no workaround that is simple, portable, and efficient.
19899: # So, don't put newlines in cache variables' values.
19900: # Ultrix sh set writes to stderr and can't be redirected directly,
19901: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 19902: {
19903: (set) 2>&1 |
19904: case `(ac_space=' '; set | grep ac_space) 2>&1` in
19905: *ac_space=\ *)
19906: # `set' does not quote correctly, so add quotes (double-quote
19907: # substitution turns \\\\ into \\, and sed turns \\ into \).
19908: sed -n \
1.86 paf 19909: "s/'/'\\\\''/g;
19910: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 19911: ;;
19912: *)
19913: # `set' quotes correctly as required by POSIX, so do not add quotes.
19914: sed -n \
1.86 paf 19915: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 19916: ;;
19917: esac;
19918: } |
19919: sed '
19920: t clear
19921: : clear
19922: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19923: t end
19924: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19925: : end' >>confcache
19926: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 19927: if test -w $cache_file; then
1.62 paf 19928: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19929: cat confcache >$cache_file
1.1 paf 19930: else
19931: echo "not updating unwritable cache $cache_file"
19932: fi
19933: fi
19934: rm -f confcache
19935:
19936: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19937: # Let make expand exec_prefix.
19938: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19939:
1.62 paf 19940: # VPATH may cause trouble with some makes, so we remove $(srcdir),
19941: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19942: # trailing colons and then remove the whole line if VPATH becomes empty
19943: # (actually we leave an empty line to preserve line numbers).
1.1 paf 19944: if test "x$srcdir" = x.; then
1.86 paf 19945: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 19946: s/:*\$(srcdir):*/:/;
19947: s/:*\${srcdir}:*/:/;
19948: s/:*@srcdir@:*/:/;
1.86 paf 19949: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 19950: s/:*$//;
1.86 paf 19951: s/^[^=]*=[ ]*$//;
1.62 paf 19952: }'
1.1 paf 19953: fi
19954:
1.62 paf 19955: DEFS=-DHAVE_CONFIG_H
19956:
19957: ac_libobjs=
19958: ac_ltlibobjs=
19959: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19960: # 1. Remove the extension, and $U if already installed.
19961: ac_i=`echo "$ac_i" |
1.86 paf 19962: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 19963: # 2. Add them.
19964: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19965: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19966: done
19967: LIBOBJS=$ac_libobjs
19968:
19969: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 19970:
19971:
1.62 paf 19972: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19973: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19974: Usually this means the macro was only invoked conditionally." >&5
19975: echo "$as_me: error: conditional \"AMDEP\" was never defined.
19976: Usually this means the macro was only invoked conditionally." >&2;}
19977: { (exit 1); exit 1; }; }
19978: fi
1.66 paf 19979: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19980: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19981: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19982: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 19983: Usually this means the macro was only invoked conditionally." >&2;}
19984: { (exit 1); exit 1; }; }
19985: fi
1.66 paf 19986: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19987: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19988: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 19989: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 19990: Usually this means the macro was only invoked conditionally." >&2;}
19991: { (exit 1); exit 1; }; }
19992: fi
1.122 moko 19993: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
19994: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19995: Usually this means the macro was only invoked conditionally." >&5
1.122 moko 19996: echo "$as_me: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 19997: Usually this means the macro was only invoked conditionally." >&2;}
19998: { (exit 1); exit 1; }; }
19999: fi
1.128 moko 20000: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20001: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20002: Usually this means the macro was only invoked conditionally." >&5
20003: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20004: Usually this means the macro was only invoked conditionally." >&2;}
20005: { (exit 1); exit 1; }; }
20006: fi
20007: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20008: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20009: Usually this means the macro was only invoked conditionally." >&5
20010: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20011: Usually this means the macro was only invoked conditionally." >&2;}
20012: { (exit 1); exit 1; }; }
20013: fi
20014: LT_CONFIG_H=`echo " src/include/pa_config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
20015:
20016: _ltdl_libobjs=
20017: _ltdl_ltlibobjs=
20018: if test -n "$_LT_LIBOBJS"; then
20019: # Remove the extension.
20020: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20021: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20022: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20023: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20024: done
20025: fi
20026: ltdl_LIBOBJS=$_ltdl_libobjs
20027:
20028: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20029:
20030:
1.62 paf 20031:
1.1 paf 20032: : ${CONFIG_STATUS=./config.status}
1.62 paf 20033: ac_clean_files_save=$ac_clean_files
20034: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20035: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20036: echo "$as_me: creating $CONFIG_STATUS" >&6;}
20037: cat >$CONFIG_STATUS <<_ACEOF
20038: #! $SHELL
20039: # Generated by $as_me.
20040: # Run this file to recreate the current configuration.
20041: # Compiler output produced by configure, useful for debugging
20042: # configure, is in config.log if it exists.
20043:
20044: debug=false
20045: ac_cs_recheck=false
20046: ac_cs_silent=false
20047: SHELL=\${CONFIG_SHELL-$SHELL}
20048: _ACEOF
20049:
20050: cat >>$CONFIG_STATUS <<\_ACEOF
20051: ## --------------------- ##
20052: ## M4sh Initialization. ##
20053: ## --------------------- ##
20054:
20055: # Be Bourne compatible
20056: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20057: emulate sh
20058: NULLCMD=:
20059: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20060: # is contrary to our usage. Disable this feature.
20061: alias -g '${1+"$@"}'='"$@"'
20062: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20063: set -o posix
20064: fi
1.86 paf 20065: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 20066:
20067: # Support unset when possible.
1.86 paf 20068: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 20069: as_unset=unset
20070: else
20071: as_unset=false
20072: fi
20073:
20074:
20075: # Work around bugs in pre-3.0 UWIN ksh.
20076: $as_unset ENV MAIL MAILPATH
20077: PS1='$ '
20078: PS2='> '
20079: PS4='+ '
20080:
20081: # NLS nuisances.
20082: for as_var in \
20083: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20084: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20085: LC_TELEPHONE LC_TIME
20086: do
1.86 paf 20087: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 20088: eval $as_var=C; export $as_var
20089: else
20090: $as_unset $as_var
20091: fi
20092: done
1.1 paf 20093:
1.62 paf 20094: # Required to use basename.
20095: if expr a : '\(a\)' >/dev/null 2>&1; then
20096: as_expr=expr
20097: else
20098: as_expr=false
20099: fi
20100:
20101: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20102: as_basename=basename
20103: else
20104: as_basename=false
20105: fi
20106:
20107:
20108: # Name of the executable.
20109: as_me=`$as_basename "$0" ||
20110: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20111: X"$0" : 'X\(//\)$' \| \
20112: X"$0" : 'X\(/\)$' \| \
20113: . : '\(.\)' 2>/dev/null ||
20114: echo X/"$0" |
20115: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20116: /^X\/\(\/\/\)$/{ s//\1/; q; }
20117: /^X\/\(\/\).*/{ s//\1/; q; }
20118: s/.*/./; q'`
20119:
20120:
20121: # PATH needs CR, and LINENO needs CR and PATH.
20122: # Avoid depending upon Character Ranges.
20123: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20124: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20125: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20126: as_cr_digits='0123456789'
20127: as_cr_alnum=$as_cr_Letters$as_cr_digits
20128:
20129: # The user is always right.
20130: if test "${PATH_SEPARATOR+set}" != set; then
20131: echo "#! /bin/sh" >conf$$.sh
20132: echo "exit 0" >>conf$$.sh
20133: chmod +x conf$$.sh
20134: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20135: PATH_SEPARATOR=';'
20136: else
20137: PATH_SEPARATOR=:
20138: fi
20139: rm -f conf$$.sh
20140: fi
20141:
20142:
20143: as_lineno_1=$LINENO
20144: as_lineno_2=$LINENO
20145: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20146: test "x$as_lineno_1" != "x$as_lineno_2" &&
20147: test "x$as_lineno_3" = "x$as_lineno_2" || {
20148: # Find who we are. Look in the path if we contain no path at all
20149: # relative or not.
20150: case $0 in
20151: *[\\/]* ) as_myself=$0 ;;
20152: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20153: for as_dir in $PATH
20154: do
20155: IFS=$as_save_IFS
20156: test -z "$as_dir" && as_dir=.
20157: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20158: done
20159:
20160: ;;
20161: esac
20162: # We did not find ourselves, most probably we were run as `sh COMMAND'
20163: # in which case we are not to be found in the path.
20164: if test "x$as_myself" = x; then
20165: as_myself=$0
20166: fi
20167: if test ! -f "$as_myself"; then
20168: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20169: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20170: { (exit 1); exit 1; }; }
20171: fi
20172: case $CONFIG_SHELL in
20173: '')
20174: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20175: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20176: do
20177: IFS=$as_save_IFS
20178: test -z "$as_dir" && as_dir=.
20179: for as_base in sh bash ksh sh5; do
20180: case $as_dir in
20181: /*)
20182: if ("$as_dir/$as_base" -c '
20183: as_lineno_1=$LINENO
20184: as_lineno_2=$LINENO
20185: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20186: test "x$as_lineno_1" != "x$as_lineno_2" &&
20187: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20188: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20189: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20190: CONFIG_SHELL=$as_dir/$as_base
20191: export CONFIG_SHELL
20192: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20193: fi;;
20194: esac
20195: done
20196: done
20197: ;;
20198: esac
20199:
20200: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20201: # uniformly replaced by the line number. The first 'sed' inserts a
20202: # line-number line before each line; the second 'sed' does the real
20203: # work. The second script uses 'N' to pair each line-number line
20204: # with the numbered line, and appends trailing '-' during
20205: # substitution so that $LINENO is not a special case at line end.
20206: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20207: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20208: sed '=' <$as_myself |
20209: sed '
20210: N
20211: s,$,-,
20212: : loop
20213: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20214: t loop
20215: s,-$,,
20216: s,^['$as_cr_digits']*\n,,
20217: ' >$as_me.lineno &&
20218: chmod +x $as_me.lineno ||
20219: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20220: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20221: { (exit 1); exit 1; }; }
20222:
20223: # Don't try to exec as it changes $[0], causing all sort of problems
20224: # (the dirname of $[0] is not the place where we might find the
20225: # original and so on. Autoconf is especially sensible to this).
20226: . ./$as_me.lineno
20227: # Exit status is that of the last command.
20228: exit
20229: }
20230:
20231:
20232: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20233: *c*,-n*) ECHO_N= ECHO_C='
20234: ' ECHO_T=' ' ;;
20235: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20236: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20237: esac
20238:
20239: if expr a : '\(a\)' >/dev/null 2>&1; then
20240: as_expr=expr
20241: else
20242: as_expr=false
20243: fi
20244:
20245: rm -f conf$$ conf$$.exe conf$$.file
20246: echo >conf$$.file
20247: if ln -s conf$$.file conf$$ 2>/dev/null; then
20248: # We could just check for DJGPP; but this test a) works b) is more generic
20249: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20250: if test -f conf$$.exe; then
20251: # Don't use ln at all; we don't have any links
20252: as_ln_s='cp -p'
20253: else
20254: as_ln_s='ln -s'
20255: fi
20256: elif ln conf$$.file conf$$ 2>/dev/null; then
20257: as_ln_s=ln
20258: else
20259: as_ln_s='cp -p'
20260: fi
20261: rm -f conf$$ conf$$.exe conf$$.file
20262:
20263: if mkdir -p . 2>/dev/null; then
20264: as_mkdir_p=:
20265: else
1.86 paf 20266: test -d ./-p && rmdir ./-p
1.62 paf 20267: as_mkdir_p=false
20268: fi
20269:
20270: as_executable_p="test -f"
20271:
20272: # Sed expression to map a string onto a valid CPP name.
1.86 paf 20273: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20274:
20275: # Sed expression to map a string onto a valid variable name.
1.86 paf 20276: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20277:
20278:
20279: # IFS
20280: # We need space, tab and new line, in precisely that order.
20281: as_nl='
20282: '
20283: IFS=" $as_nl"
20284:
20285: # CDPATH.
20286: $as_unset CDPATH
20287:
20288: exec 6>&1
20289:
20290: # Open the log real soon, to keep \$[0] and so on meaningful, and to
20291: # report actual input values of CONFIG_FILES etc. instead of their
20292: # values after options handling. Logging --version etc. is OK.
20293: exec 5>>config.log
20294: {
20295: echo
20296: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20297: ## Running $as_me. ##
20298: _ASBOX
20299: } >&5
20300: cat >&5 <<_CSEOF
20301:
1.128 moko 20302: This file was extended by parser $as_me 3.4.2b, which was
1.86 paf 20303: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 20304:
20305: CONFIG_FILES = $CONFIG_FILES
20306: CONFIG_HEADERS = $CONFIG_HEADERS
20307: CONFIG_LINKS = $CONFIG_LINKS
20308: CONFIG_COMMANDS = $CONFIG_COMMANDS
20309: $ $0 $@
20310:
20311: _CSEOF
20312: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20313: echo >&5
20314: _ACEOF
20315:
20316: # Files that config.status was made for.
20317: if test -n "$ac_config_files"; then
20318: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20319: fi
20320:
20321: if test -n "$ac_config_headers"; then
20322: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20323: fi
20324:
20325: if test -n "$ac_config_links"; then
20326: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20327: fi
20328:
20329: if test -n "$ac_config_commands"; then
20330: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20331: fi
20332:
20333: cat >>$CONFIG_STATUS <<\_ACEOF
20334:
20335: ac_cs_usage="\
20336: \`$as_me' instantiates files from templates according to the
20337: current configuration.
20338:
20339: Usage: $0 [OPTIONS] [FILE]...
20340:
20341: -h, --help print this help, then exit
20342: -V, --version print version number, then exit
20343: -q, --quiet do not print progress messages
20344: -d, --debug don't remove temporary files
20345: --recheck update $as_me by reconfiguring in the same conditions
20346: --file=FILE[:TEMPLATE]
1.86 paf 20347: instantiate the configuration file FILE
1.62 paf 20348: --header=FILE[:TEMPLATE]
1.86 paf 20349: instantiate the configuration header FILE
1.62 paf 20350:
20351: Configuration files:
20352: $config_files
20353:
20354: Configuration headers:
20355: $config_headers
20356:
20357: Configuration commands:
20358: $config_commands
20359:
20360: Report bugs to <bug-autoconf@gnu.org>."
20361: _ACEOF
20362:
20363: cat >>$CONFIG_STATUS <<_ACEOF
20364: ac_cs_version="\\
1.128 moko 20365: parser config.status 3.4.2b
1.86 paf 20366: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 20367: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20368:
1.86 paf 20369: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 20370: This config.status script is free software; the Free Software Foundation
20371: gives unlimited permission to copy, distribute and modify it."
20372: srcdir=$srcdir
20373: INSTALL="$INSTALL"
20374: _ACEOF
20375:
20376: cat >>$CONFIG_STATUS <<\_ACEOF
20377: # If no file are specified by the user, then we need to provide default
20378: # value. By we need to know if files were specified by the user.
20379: ac_need_defaults=:
20380: while test $# != 0
20381: do
20382: case $1 in
20383: --*=*)
20384: ac_option=`expr "x$1" : 'x\([^=]*\)='`
20385: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20386: ac_shift=:
20387: ;;
20388: -*)
20389: ac_option=$1
20390: ac_optarg=$2
20391: ac_shift=shift
20392: ;;
20393: *) # This is not an option, so the user has probably given explicit
20394: # arguments.
20395: ac_option=$1
20396: ac_need_defaults=false;;
20397: esac
20398:
20399: case $ac_option in
20400: # Handling of the options.
20401: _ACEOF
20402: cat >>$CONFIG_STATUS <<\_ACEOF
20403: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20404: ac_cs_recheck=: ;;
20405: --version | --vers* | -V )
20406: echo "$ac_cs_version"; exit 0 ;;
20407: --he | --h)
20408: # Conflict between --help and --header
20409: { { echo "$as_me:$LINENO: error: ambiguous option: $1
20410: Try \`$0 --help' for more information." >&5
20411: echo "$as_me: error: ambiguous option: $1
20412: Try \`$0 --help' for more information." >&2;}
20413: { (exit 1); exit 1; }; };;
20414: --help | --hel | -h )
20415: echo "$ac_cs_usage"; exit 0 ;;
20416: --debug | --d* | -d )
20417: debug=: ;;
20418: --file | --fil | --fi | --f )
20419: $ac_shift
20420: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20421: ac_need_defaults=false;;
20422: --header | --heade | --head | --hea )
20423: $ac_shift
20424: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20425: ac_need_defaults=false;;
20426: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20427: | -silent | --silent | --silen | --sile | --sil | --si | --s)
20428: ac_cs_silent=: ;;
20429:
20430: # This is an error.
20431: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20432: Try \`$0 --help' for more information." >&5
20433: echo "$as_me: error: unrecognized option: $1
20434: Try \`$0 --help' for more information." >&2;}
20435: { (exit 1); exit 1; }; } ;;
20436:
20437: *) ac_config_targets="$ac_config_targets $1" ;;
20438:
20439: esac
20440: shift
20441: done
20442:
20443: ac_configure_extra_args=
20444:
20445: if $ac_cs_silent; then
20446: exec 6>/dev/null
20447: ac_configure_extra_args="$ac_configure_extra_args --silent"
20448: fi
20449:
20450: _ACEOF
20451: cat >>$CONFIG_STATUS <<_ACEOF
20452: if \$ac_cs_recheck; then
20453: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20454: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20455: fi
20456:
20457: _ACEOF
20458:
20459: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 20460: #
1.62 paf 20461: # INIT-COMMANDS section.
1.1 paf 20462: #
20463:
1.62 paf 20464: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20465:
1.128 moko 20466:
20467: # The HP-UX ksh and POSIX shell print the target directory to stdout
20468: # if CDPATH is set.
20469: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20470:
20471: sed_quote_subst='$sed_quote_subst'
20472: double_quote_subst='$double_quote_subst'
20473: delay_variable_subst='$delay_variable_subst'
20474: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20475: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
1.136 ! moko 20476: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 20477: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20478: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20479: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20480: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20481: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20482: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20483: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20484: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20485: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20486: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20487: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20488: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20489: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20490: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20491: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20492: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20493: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20494: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20495: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20496: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20497: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20498: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20499: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20500: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20501: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20502: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20503: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20504: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20505: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20506: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20507: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20508: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20509: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20510: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20511: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20512: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20513: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20514: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20515: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20516: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20517: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20518: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20519: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20520: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20521: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20522: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20523: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20524: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20525: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20526: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20527: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20528: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20529: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20530: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20531: 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"`'
20532: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20533: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20534: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20535: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20536: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20537: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20538: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20539: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20540: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20541: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20542: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20543: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20544: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20545: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20546: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20547: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20548: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20549: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20550: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20551: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20552: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20553: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20554: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20555: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20556: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20557: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20558: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20559: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20560: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20561: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20562: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20563: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20564: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20565: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20566: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20567: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20568: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20569: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20570: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20571: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20572: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20573: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20574: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20575: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20576: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20577: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20578: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20579: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20580: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20581: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20582: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20583: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20584: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20585: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20586: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20587: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20588: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20589: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20590: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20591: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20592: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20593: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20594: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20595: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20596: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20597: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20598: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20599: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20600: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20601: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20602: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20603: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20604: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20605: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20606: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20607: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20608: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20609: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20610: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20611: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20612: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20613: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20614: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20615: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20616: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20617: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20618: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20619: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20620: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20621: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20622: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20623: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20624: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20625: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20626: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20627: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20628: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20629: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20630: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20631: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20632: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20633: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20634: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20635: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20636: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20637: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20638: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20639: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20640: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20641: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20642: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20643: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20644: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20645: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20646: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20647: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20648: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20649: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20650: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20651: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20652: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20653: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20654: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20655: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20656: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20657: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20658: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20659:
20660: LTCC='$LTCC'
20661: LTCFLAGS='$LTCFLAGS'
20662: compiler='$compiler_DEFAULT'
20663:
20664: # A function that is used when there is no print builtin or printf.
20665: func_fallback_echo ()
20666: {
20667: eval 'cat <<_LTECHO_EOF
20668: \$1
20669: _LTECHO_EOF'
20670: }
20671:
20672: # Quote evaled strings.
20673: for var in AS \
20674: DLLTOOL \
20675: OBJDUMP \
20676: SHELL \
20677: ECHO \
20678: PATH_SEPARATOR \
20679: SED \
20680: GREP \
20681: EGREP \
20682: FGREP \
20683: LD \
20684: NM \
20685: LN_S \
20686: lt_SP2NL \
20687: lt_NL2SP \
20688: reload_flag \
20689: deplibs_check_method \
20690: file_magic_cmd \
20691: file_magic_glob \
20692: want_nocaseglob \
20693: sharedlib_from_linklib_cmd \
20694: AR \
20695: AR_FLAGS \
20696: archiver_list_spec \
20697: STRIP \
20698: RANLIB \
20699: CC \
20700: CFLAGS \
20701: compiler \
20702: lt_cv_sys_global_symbol_pipe \
20703: lt_cv_sys_global_symbol_to_cdecl \
20704: lt_cv_sys_global_symbol_to_c_name_address \
20705: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20706: nm_file_list_spec \
20707: lt_prog_compiler_no_builtin_flag \
20708: lt_prog_compiler_pic \
20709: lt_prog_compiler_wl \
20710: lt_prog_compiler_static \
20711: lt_cv_prog_compiler_c_o \
20712: need_locks \
20713: MANIFEST_TOOL \
20714: DSYMUTIL \
20715: NMEDIT \
20716: LIPO \
20717: OTOOL \
20718: OTOOL64 \
20719: shrext_cmds \
20720: export_dynamic_flag_spec \
20721: whole_archive_flag_spec \
20722: compiler_needs_object \
20723: with_gnu_ld \
20724: allow_undefined_flag \
20725: no_undefined_flag \
20726: hardcode_libdir_flag_spec \
20727: hardcode_libdir_separator \
20728: exclude_expsyms \
20729: include_expsyms \
20730: file_list_spec \
20731: variables_saved_for_relink \
20732: libname_spec \
20733: library_names_spec \
20734: soname_spec \
20735: install_override_mode \
20736: finish_eval \
20737: old_striplib \
20738: striplib \
20739: compiler_lib_search_dirs \
20740: predep_objects \
20741: postdep_objects \
20742: predeps \
20743: postdeps \
20744: compiler_lib_search_path \
20745: LD_CXX \
20746: reload_flag_CXX \
20747: compiler_CXX \
20748: lt_prog_compiler_no_builtin_flag_CXX \
20749: lt_prog_compiler_pic_CXX \
20750: lt_prog_compiler_wl_CXX \
20751: lt_prog_compiler_static_CXX \
20752: lt_cv_prog_compiler_c_o_CXX \
20753: export_dynamic_flag_spec_CXX \
20754: whole_archive_flag_spec_CXX \
20755: compiler_needs_object_CXX \
20756: with_gnu_ld_CXX \
20757: allow_undefined_flag_CXX \
20758: no_undefined_flag_CXX \
20759: hardcode_libdir_flag_spec_CXX \
20760: hardcode_libdir_separator_CXX \
20761: exclude_expsyms_CXX \
20762: include_expsyms_CXX \
20763: file_list_spec_CXX \
20764: compiler_lib_search_dirs_CXX \
20765: predep_objects_CXX \
20766: postdep_objects_CXX \
20767: predeps_CXX \
20768: postdeps_CXX \
20769: compiler_lib_search_path_CXX; do
20770: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20771: *[\\\\\\\`\\"\\\$]*)
20772: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20773: ;;
20774: *)
20775: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20776: ;;
20777: esac
20778: done
20779:
20780: # Double-quote double-evaled strings.
20781: for var in reload_cmds \
20782: old_postinstall_cmds \
20783: old_postuninstall_cmds \
20784: old_archive_cmds \
20785: extract_expsyms_cmds \
20786: old_archive_from_new_cmds \
20787: old_archive_from_expsyms_cmds \
20788: archive_cmds \
20789: archive_expsym_cmds \
20790: module_cmds \
20791: module_expsym_cmds \
20792: export_symbols_cmds \
20793: prelink_cmds \
20794: postlink_cmds \
20795: postinstall_cmds \
20796: postuninstall_cmds \
20797: finish_cmds \
20798: sys_lib_search_path_spec \
20799: sys_lib_dlsearch_path_spec \
20800: reload_cmds_CXX \
20801: old_archive_cmds_CXX \
20802: old_archive_from_new_cmds_CXX \
20803: old_archive_from_expsyms_cmds_CXX \
20804: archive_cmds_CXX \
20805: archive_expsym_cmds_CXX \
20806: module_cmds_CXX \
20807: module_expsym_cmds_CXX \
20808: export_symbols_cmds_CXX \
20809: prelink_cmds_CXX \
20810: postlink_cmds_CXX; do
20811: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20812: *[\\\\\\\`\\"\\\$]*)
20813: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20814: ;;
20815: *)
20816: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20817: ;;
20818: esac
20819: done
20820:
20821: ac_aux_dir='$ac_aux_dir'
20822: xsi_shell='$xsi_shell'
20823: lt_shell_append='$lt_shell_append'
20824:
20825: # See if we are running on zsh, and set the options which allow our
20826: # commands through without removal of \ escapes INIT.
20827: if test -n "\${ZSH_VERSION+set}" ; then
20828: setopt NO_GLOB_SUBST
20829: fi
20830:
20831:
20832: PACKAGE='$PACKAGE'
20833: VERSION='$VERSION'
20834: TIMESTAMP='$TIMESTAMP'
20835: RM='$RM'
20836: ofile='$ofile'
20837:
20838:
20839:
20840:
20841:
20842:
1.62 paf 20843: _ACEOF
20844:
20845:
20846:
20847: cat >>$CONFIG_STATUS <<\_ACEOF
20848: for ac_config_target in $ac_config_targets
1.1 paf 20849: do
1.62 paf 20850: case "$ac_config_target" in
20851: # Handling of arguments.
20852: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20853: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20854: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20855: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20856: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20857: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20858: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20859: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 20860: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20861: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 20862: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20863: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 20864: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 20865: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20866: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20867: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 20868: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 20869: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
1.124 moko 20870: "src/lib/sdbm/pa-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
1.120 misha 20871: "src/lib/json/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.126 moko 20872: "src/lib/memcached/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
1.127 moko 20873: "src/lib/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
1.62 paf 20874: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20875: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.122 moko 20876: "src/targets/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
1.62 paf 20877: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20878: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20879: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20880: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20881: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20882: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.128 moko 20883: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.62 paf 20884: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20885: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20886: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20887: { (exit 1); exit 1; }; };;
1.1 paf 20888: esac
20889: done
20890:
1.62 paf 20891: # If the user did not use the arguments to specify the items to instantiate,
20892: # then the envvar interface is used. Set only those that are not.
20893: # We use the long form for the default assignment because of an extremely
20894: # bizarre bug on SunOS 4.1.3.
20895: if $ac_need_defaults; then
20896: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20897: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20898: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20899: fi
20900:
20901: # Have a temporary directory for convenience. Make it in the build tree
20902: # simply because there is no reason to put it here, and in addition,
20903: # creating and moving files from /tmp can sometimes cause problems.
20904: # Create a temporary directory, and hook for its removal unless debugging.
20905: $debug ||
20906: {
20907: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20908: trap '{ (exit 1); exit 1; }' 1 2 13 15
20909: }
20910:
20911: # Create a (secure) tmp directory for tmp files.
20912:
20913: {
20914: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20915: test -n "$tmp" && test -d "$tmp"
20916: } ||
20917: {
20918: tmp=./confstat$$-$RANDOM
20919: (umask 077 && mkdir $tmp)
20920: } ||
20921: {
20922: echo "$me: cannot create a temporary directory in ." >&2
20923: { (exit 1); exit 1; }
20924: }
20925:
20926: _ACEOF
1.1 paf 20927:
1.62 paf 20928: cat >>$CONFIG_STATUS <<_ACEOF
20929:
20930: #
20931: # CONFIG_FILES section.
20932: #
1.1 paf 20933:
1.62 paf 20934: # No need to generate the scripts if there are no CONFIG_FILES.
20935: # This happens for instance when ./config.status config.h
20936: if test -n "\$CONFIG_FILES"; then
20937: # Protect against being on the right side of a sed subst in config.status.
20938: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20939: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20940: s,@SHELL@,$SHELL,;t t
20941: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20942: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20943: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20944: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20945: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20946: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20947: s,@exec_prefix@,$exec_prefix,;t t
20948: s,@prefix@,$prefix,;t t
20949: s,@program_transform_name@,$program_transform_name,;t t
20950: s,@bindir@,$bindir,;t t
20951: s,@sbindir@,$sbindir,;t t
20952: s,@libexecdir@,$libexecdir,;t t
20953: s,@datadir@,$datadir,;t t
20954: s,@sysconfdir@,$sysconfdir,;t t
20955: s,@sharedstatedir@,$sharedstatedir,;t t
20956: s,@localstatedir@,$localstatedir,;t t
20957: s,@libdir@,$libdir,;t t
20958: s,@includedir@,$includedir,;t t
20959: s,@oldincludedir@,$oldincludedir,;t t
20960: s,@infodir@,$infodir,;t t
20961: s,@mandir@,$mandir,;t t
20962: s,@build_alias@,$build_alias,;t t
20963: s,@host_alias@,$host_alias,;t t
20964: s,@target_alias@,$target_alias,;t t
20965: s,@DEFS@,$DEFS,;t t
20966: s,@ECHO_C@,$ECHO_C,;t t
20967: s,@ECHO_N@,$ECHO_N,;t t
20968: s,@ECHO_T@,$ECHO_T,;t t
20969: s,@LIBS@,$LIBS,;t t
20970: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20971: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20972: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20973: s,@CYGPATH_W@,$CYGPATH_W,;t t
20974: s,@PACKAGE@,$PACKAGE,;t t
20975: s,@VERSION@,$VERSION,;t t
20976: s,@ACLOCAL@,$ACLOCAL,;t t
20977: s,@AUTOCONF@,$AUTOCONF,;t t
20978: s,@AUTOMAKE@,$AUTOMAKE,;t t
20979: s,@AUTOHEADER@,$AUTOHEADER,;t t
20980: s,@MAKEINFO@,$MAKEINFO,;t t
20981: s,@install_sh@,$install_sh,;t t
20982: s,@STRIP@,$STRIP,;t t
20983: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20984: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 20985: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 20986: s,@AWK@,$AWK,;t t
20987: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 20988: s,@am__leading_dot@,$am__leading_dot,;t t
20989: s,@AMTAR@,$AMTAR,;t t
20990: s,@am__tar@,$am__tar,;t t
20991: s,@am__untar@,$am__untar,;t t
1.62 paf 20992: s,@P3S@,$P3S,;t t
20993: s,@build@,$build,;t t
20994: s,@build_cpu@,$build_cpu,;t t
20995: s,@build_vendor@,$build_vendor,;t t
20996: s,@build_os@,$build_os,;t t
20997: s,@host@,$host,;t t
20998: s,@host_cpu@,$host_cpu,;t t
20999: s,@host_vendor@,$host_vendor,;t t
21000: s,@host_os@,$host_os,;t t
21001: s,@YACC@,$YACC,;t t
1.66 paf 21002: s,@CXX@,$CXX,;t t
21003: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 21004: s,@LDFLAGS@,$LDFLAGS,;t t
21005: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 21006: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 21007: s,@EXEEXT@,$EXEEXT,;t t
21008: s,@OBJEXT@,$OBJEXT,;t t
21009: s,@DEPDIR@,$DEPDIR,;t t
21010: s,@am__include@,$am__include,;t t
21011: s,@am__quote@,$am__quote,;t t
21012: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21013: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21014: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 21015: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21016: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21017: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21018: s,@CC@,$CC,;t t
21019: s,@CFLAGS@,$CFLAGS,;t t
21020: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 21021: s,@CCDEPMODE@,$CCDEPMODE,;t t
21022: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21023: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21024: s,@dll_extension@,$dll_extension,;t t
1.67 paf 21025: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 21026: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
21027: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 21028: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
21029: s,@XML_LIBS@,$XML_LIBS,;t t
21030: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
21031: s,@MIME_LIBS@,$MIME_LIBS,;t t
1.122 moko 21032: s,@APACHE@,$APACHE,;t t
21033: s,@APACHE_INC@,$APACHE_INC,;t t
21034: s,@APACHE_CFLAGS@,$APACHE_CFLAGS,;t t
21035: s,@COMPILE_APACHE_MODULE_TRUE@,$COMPILE_APACHE_MODULE_TRUE,;t t
21036: s,@COMPILE_APACHE_MODULE_FALSE@,$COMPILE_APACHE_MODULE_FALSE,;t t
1.128 moko 21037: s,@AS@,$AS,;t t
21038: s,@ac_ct_AS@,$ac_ct_AS,;t t
21039: s,@DLLTOOL@,$DLLTOOL,;t t
21040: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21041: s,@OBJDUMP@,$OBJDUMP,;t t
21042: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21043: s,@LIBTOOL@,$LIBTOOL,;t t
21044: s,@SED@,$SED,;t t
21045: s,@EGREP@,$EGREP,;t t
21046: s,@FGREP@,$FGREP,;t t
21047: s,@GREP@,$GREP,;t t
21048: s,@LD@,$LD,;t t
21049: s,@DUMPBIN@,$DUMPBIN,;t t
21050: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21051: s,@NM@,$NM,;t t
21052: s,@LN_S@,$LN_S,;t t
21053: s,@AR@,$AR,;t t
21054: s,@ac_ct_AR@,$ac_ct_AR,;t t
21055: s,@RANLIB@,$RANLIB,;t t
21056: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21057: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
21058: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
21059: s,@DSYMUTIL@,$DSYMUTIL,;t t
21060: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21061: s,@NMEDIT@,$NMEDIT,;t t
21062: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21063: s,@LIPO@,$LIPO,;t t
21064: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
21065: s,@OTOOL@,$OTOOL,;t t
21066: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
21067: s,@OTOOL64@,$OTOOL64,;t t
21068: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
21069: s,@CPP@,$CPP,;t t
21070: s,@CXXCPP@,$CXXCPP,;t t
21071: s,@LIBLTDL@,$LIBLTDL,;t t
21072: s,@LTDLDEPS@,$LTDLDEPS,;t t
21073: s,@LTDLINCL@,$LTDLINCL,;t t
1.62 paf 21074: s,@INCLTDL@,$INCLTDL,;t t
1.128 moko 21075: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
21076: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
21077: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
21078: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
21079: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
21080: s,@LIBADD_DL@,$LIBADD_DL,;t t
21081: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
21082: s,@ARGZ_H@,$ARGZ_H,;t t
21083: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21084: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21085: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21086: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
1.62 paf 21087: s,@subdirs@,$subdirs,;t t
1.128 moko 21088: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
21089: s,@LTDLOPEN@,$LTDLOPEN,;t t
1.62 paf 21090: s,@LIBOBJS@,$LIBOBJS,;t t
21091: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.128 moko 21092: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
21093: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
1.1 paf 21094: CEOF
21095:
1.62 paf 21096: _ACEOF
1.1 paf 21097:
1.62 paf 21098: cat >>$CONFIG_STATUS <<\_ACEOF
21099: # Split the substitutions into bite-sized pieces for seds with
21100: # small command number limits, like on Digital OSF/1 and HP-UX.
21101: ac_max_sed_lines=48
21102: ac_sed_frag=1 # Number of current file.
21103: ac_beg=1 # First line for current file.
21104: ac_end=$ac_max_sed_lines # Line after last line for current file.
21105: ac_more_lines=:
21106: ac_sed_cmds=
21107: while $ac_more_lines; do
21108: if test $ac_beg -gt 1; then
21109: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21110: else
21111: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21112: fi
21113: if test ! -s $tmp/subs.frag; then
21114: ac_more_lines=false
1.1 paf 21115: else
1.62 paf 21116: # The purpose of the label and of the branching condition is to
21117: # speed up the sed processing (if there are no `@' at all, there
21118: # is no need to browse any of the substitutions).
21119: # These are the two extra sed commands mentioned above.
21120: (echo ':t
21121: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21122: if test -z "$ac_sed_cmds"; then
1.86 paf 21123: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21124: else
1.86 paf 21125: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21126: fi
21127: ac_sed_frag=`expr $ac_sed_frag + 1`
21128: ac_beg=$ac_end
21129: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 21130: fi
1.62 paf 21131: done
21132: if test -z "$ac_sed_cmds"; then
21133: ac_sed_cmds=cat
1.1 paf 21134: fi
1.62 paf 21135: fi # test -n "$CONFIG_FILES"
1.1 paf 21136:
1.62 paf 21137: _ACEOF
21138: cat >>$CONFIG_STATUS <<\_ACEOF
21139: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 21140: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21141: case $ac_file in
21142: - | *:- | *:-:* ) # input from stdin
1.86 paf 21143: cat >$tmp/stdin
21144: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21145: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21146: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21147: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21148: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21149: esac
21150:
1.62 paf 21151: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21152: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21153: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21154: X"$ac_file" : 'X\(//\)[^/]' \| \
21155: X"$ac_file" : 'X\(//\)$' \| \
21156: X"$ac_file" : 'X\(/\)' \| \
21157: . : '\(.\)' 2>/dev/null ||
1.62 paf 21158: echo X"$ac_file" |
21159: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21160: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21161: /^X\(\/\/\)$/{ s//\1/; q; }
21162: /^X\(\/\).*/{ s//\1/; q; }
21163: s/.*/./; q'`
21164: { if $as_mkdir_p; then
21165: mkdir -p "$ac_dir"
21166: else
21167: as_dir="$ac_dir"
21168: as_dirs=
21169: while test ! -d "$as_dir"; do
21170: as_dirs="$as_dir $as_dirs"
21171: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21172: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21173: X"$as_dir" : 'X\(//\)[^/]' \| \
21174: X"$as_dir" : 'X\(//\)$' \| \
21175: X"$as_dir" : 'X\(/\)' \| \
21176: . : '\(.\)' 2>/dev/null ||
1.62 paf 21177: echo X"$as_dir" |
21178: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21179: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21180: /^X\(\/\/\)$/{ s//\1/; q; }
21181: /^X\(\/\).*/{ s//\1/; q; }
21182: s/.*/./; q'`
21183: done
21184: test ! -n "$as_dirs" || mkdir $as_dirs
21185: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21186: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21187: { (exit 1); exit 1; }; }; }
21188:
21189: ac_builddir=.
21190:
21191: if test "$ac_dir" != .; then
21192: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21193: # A "../" for each directory in $ac_dir_suffix.
21194: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21195: else
21196: ac_dir_suffix= ac_top_builddir=
21197: fi
21198:
21199: case $srcdir in
21200: .) # No --srcdir option. We are building in place.
21201: ac_srcdir=.
21202: if test -z "$ac_top_builddir"; then
21203: ac_top_srcdir=.
21204: else
21205: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21206: fi ;;
21207: [\\/]* | ?:[\\/]* ) # Absolute path.
21208: ac_srcdir=$srcdir$ac_dir_suffix;
21209: ac_top_srcdir=$srcdir ;;
21210: *) # Relative path.
21211: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21212: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21213: esac
1.86 paf 21214:
21215: # Do not use `cd foo && pwd` to compute absolute paths, because
21216: # the directories may not exist.
21217: case `pwd` in
21218: .) ac_abs_builddir="$ac_dir";;
21219: *)
21220: case "$ac_dir" in
21221: .) ac_abs_builddir=`pwd`;;
21222: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21223: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21224: esac;;
21225: esac
21226: case $ac_abs_builddir in
21227: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21228: *)
21229: case ${ac_top_builddir}. in
21230: .) ac_abs_top_builddir=$ac_abs_builddir;;
21231: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21232: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21233: esac;;
21234: esac
21235: case $ac_abs_builddir in
21236: .) ac_abs_srcdir=$ac_srcdir;;
21237: *)
21238: case $ac_srcdir in
21239: .) ac_abs_srcdir=$ac_abs_builddir;;
21240: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21241: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21242: esac;;
21243: esac
21244: case $ac_abs_builddir in
21245: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21246: *)
21247: case $ac_top_srcdir in
21248: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21249: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21250: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21251: esac;;
21252: esac
1.62 paf 21253:
1.1 paf 21254:
1.62 paf 21255: case $INSTALL in
21256: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21257: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 21258: esac
21259:
1.62 paf 21260: if test x"$ac_file" != x-; then
21261: { echo "$as_me:$LINENO: creating $ac_file" >&5
21262: echo "$as_me: creating $ac_file" >&6;}
21263: rm -f "$ac_file"
21264: fi
21265: # Let's still pretend it is `configure' which instantiates (i.e., don't
21266: # use $as_me), people would be surprised to read:
21267: # /* config.h. Generated by config.status. */
21268: if test x"$ac_file" = x-; then
21269: configure_input=
21270: else
21271: configure_input="$ac_file. "
21272: fi
21273: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 21274: sed 's,.*/,,'` by configure."
1.62 paf 21275:
21276: # First look for the input files in the build tree, otherwise in the
21277: # src tree.
21278: ac_file_inputs=`IFS=:
21279: for f in $ac_file_in; do
21280: case $f in
21281: -) echo $tmp/stdin ;;
21282: [\\/$]*)
1.86 paf 21283: # Absolute (can't be DOS-style, as IFS=:)
21284: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21285: echo "$as_me: error: cannot find input file: $f" >&2;}
21286: { (exit 1); exit 1; }; }
1.86 paf 21287: echo "$f";;
1.62 paf 21288: *) # Relative
1.86 paf 21289: if test -f "$f"; then
21290: # Build tree
21291: echo "$f"
21292: elif test -f "$srcdir/$f"; then
21293: # Source tree
21294: echo "$srcdir/$f"
21295: else
21296: # /dev/null tree
21297: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21298: echo "$as_me: error: cannot find input file: $f" >&2;}
21299: { (exit 1); exit 1; }; }
1.86 paf 21300: fi;;
1.62 paf 21301: esac
21302: done` || { (exit 1); exit 1; }
21303: _ACEOF
21304: cat >>$CONFIG_STATUS <<_ACEOF
21305: sed "$ac_vpsub
21306: $extrasub
21307: _ACEOF
21308: cat >>$CONFIG_STATUS <<\_ACEOF
21309: :t
21310: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21311: s,@configure_input@,$configure_input,;t t
21312: s,@srcdir@,$ac_srcdir,;t t
21313: s,@abs_srcdir@,$ac_abs_srcdir,;t t
21314: s,@top_srcdir@,$ac_top_srcdir,;t t
21315: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21316: s,@builddir@,$ac_builddir,;t t
21317: s,@abs_builddir@,$ac_abs_builddir,;t t
21318: s,@top_builddir@,$ac_top_builddir,;t t
21319: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21320: s,@INSTALL@,$ac_INSTALL,;t t
21321: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21322: rm -f $tmp/stdin
21323: if test x"$ac_file" != x-; then
21324: mv $tmp/out $ac_file
21325: else
21326: cat $tmp/out
21327: rm -f $tmp/out
21328: fi
1.1 paf 21329:
1.62 paf 21330: done
21331: _ACEOF
21332: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 21333:
1.62 paf 21334: #
21335: # CONFIG_HEADER section.
21336: #
1.1 paf 21337:
21338: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21339: # NAME is the cpp macro being defined and VALUE is the value it is being given.
21340: #
21341: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 21342: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21343: ac_dB='[ ].*$,\1#\2'
1.62 paf 21344: ac_dC=' '
21345: ac_dD=',;t'
21346: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 21347: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 21348: ac_uB='$,\1#\2define\3'
1.1 paf 21349: ac_uC=' '
1.62 paf 21350: ac_uD=',;t'
21351:
21352: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 21353: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21354: case $ac_file in
21355: - | *:- | *:-:* ) # input from stdin
1.86 paf 21356: cat >$tmp/stdin
21357: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21358: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21359: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21360: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21361: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21362: esac
21363:
1.62 paf 21364: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21365: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 21366:
1.62 paf 21367: # First look for the input files in the build tree, otherwise in the
21368: # src tree.
21369: ac_file_inputs=`IFS=:
21370: for f in $ac_file_in; do
21371: case $f in
21372: -) echo $tmp/stdin ;;
21373: [\\/$]*)
1.86 paf 21374: # Absolute (can't be DOS-style, as IFS=:)
21375: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21376: echo "$as_me: error: cannot find input file: $f" >&2;}
21377: { (exit 1); exit 1; }; }
1.86 paf 21378: # Do quote $f, to prevent DOS paths from being IFS'd.
21379: echo "$f";;
1.62 paf 21380: *) # Relative
1.86 paf 21381: if test -f "$f"; then
21382: # Build tree
21383: echo "$f"
21384: elif test -f "$srcdir/$f"; then
21385: # Source tree
21386: echo "$srcdir/$f"
21387: else
21388: # /dev/null tree
21389: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21390: echo "$as_me: error: cannot find input file: $f" >&2;}
21391: { (exit 1); exit 1; }; }
1.86 paf 21392: fi;;
1.62 paf 21393: esac
21394: done` || { (exit 1); exit 1; }
21395: # Remove the trailing spaces.
1.86 paf 21396: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 21397:
21398: _ACEOF
21399:
21400: # Transform confdefs.h into two sed scripts, `conftest.defines' and
21401: # `conftest.undefs', that substitutes the proper values into
21402: # config.h.in to produce config.h. The first handles `#define'
21403: # templates, and the second `#undef' templates.
21404: # And first: Protect against being on the right side of a sed subst in
21405: # config.status. Protect against being in an unquoted here document
21406: # in config.status.
21407: rm -f conftest.defines conftest.undefs
21408: # Using a here document instead of a string reduces the quoting nightmare.
21409: # Putting comments in sed scripts is not portable.
21410: #
21411: # `end' is used to avoid that the second main sed command (meant for
21412: # 0-ary CPP macros) applies to n-ary macro definitions.
21413: # See the Autoconf documentation for `clear'.
21414: cat >confdef2sed.sed <<\_ACEOF
21415: s/[\\&,]/\\&/g
21416: s,[\\$`],\\&,g
21417: t clear
21418: : clear
1.86 paf 21419: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 21420: t end
1.86 paf 21421: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 21422: : end
21423: _ACEOF
21424: # If some macros were called several times there might be several times
21425: # the same #defines, which is useless. Nevertheless, we may not want to
21426: # sort them, since we want the *last* AC-DEFINE to be honored.
21427: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21428: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21429: rm -f confdef2sed.sed
1.1 paf 21430:
21431: # This sed command replaces #undef with comments. This is necessary, for
21432: # example, in the case of _POSIX_SOURCE, which is predefined and required
21433: # on some systems where configure will not decide to define it.
1.62 paf 21434: cat >>conftest.undefs <<\_ACEOF
1.86 paf 21435: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 21436: _ACEOF
21437:
21438: # Break up conftest.defines because some shells have a limit on the size
21439: # of here documents, and old seds have small limits too (100 cmds).
21440: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 21441: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 21442: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21443: echo ' :' >>$CONFIG_STATUS
21444: rm -f conftest.tail
21445: while grep . conftest.defines >/dev/null
21446: do
21447: # Write a limited-size here document to $tmp/defines.sed.
21448: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21449: # Speed up: don't consider the non `#define' lines.
1.86 paf 21450: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 21451: # Work around the forget-to-reset-the-flag bug.
21452: echo 't clr' >>$CONFIG_STATUS
21453: echo ': clr' >>$CONFIG_STATUS
21454: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21455: echo 'CEOF
21456: sed -f $tmp/defines.sed $tmp/in >$tmp/out
21457: rm -f $tmp/in
21458: mv $tmp/out $tmp/in
21459: ' >>$CONFIG_STATUS
21460: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21461: rm -f conftest.defines
21462: mv conftest.tail conftest.defines
21463: done
21464: rm -f conftest.defines
21465: echo ' fi # grep' >>$CONFIG_STATUS
21466: echo >>$CONFIG_STATUS
21467:
21468: # Break up conftest.undefs because some shells have a limit on the size
21469: # of here documents, and old seds have small limits too (100 cmds).
21470: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 21471: rm -f conftest.tail
1.62 paf 21472: while grep . conftest.undefs >/dev/null
1.1 paf 21473: do
1.62 paf 21474: # Write a limited-size here document to $tmp/undefs.sed.
21475: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21476: # Speed up: don't consider the non `#undef'
1.86 paf 21477: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 21478: # Work around the forget-to-reset-the-flag bug.
21479: echo 't clr' >>$CONFIG_STATUS
21480: echo ': clr' >>$CONFIG_STATUS
21481: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 21482: echo 'CEOF
1.62 paf 21483: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21484: rm -f $tmp/in
21485: mv $tmp/out $tmp/in
21486: ' >>$CONFIG_STATUS
21487: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21488: rm -f conftest.undefs
21489: mv conftest.tail conftest.undefs
21490: done
21491: rm -f conftest.undefs
21492:
21493: cat >>$CONFIG_STATUS <<\_ACEOF
21494: # Let's still pretend it is `configure' which instantiates (i.e., don't
21495: # use $as_me), people would be surprised to read:
21496: # /* config.h. Generated by config.status. */
21497: if test x"$ac_file" = x-; then
21498: echo "/* Generated by configure. */" >$tmp/config.h
21499: else
21500: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21501: fi
21502: cat $tmp/in >>$tmp/config.h
21503: rm -f $tmp/in
21504: if test x"$ac_file" != x-; then
21505: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21506: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21507: echo "$as_me: $ac_file is unchanged" >&6;}
21508: else
21509: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21510: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21511: X"$ac_file" : 'X\(//\)[^/]' \| \
21512: X"$ac_file" : 'X\(//\)$' \| \
21513: X"$ac_file" : 'X\(/\)' \| \
21514: . : '\(.\)' 2>/dev/null ||
1.62 paf 21515: echo X"$ac_file" |
21516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21517: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21518: /^X\(\/\/\)$/{ s//\1/; q; }
21519: /^X\(\/\).*/{ s//\1/; q; }
21520: s/.*/./; q'`
21521: { if $as_mkdir_p; then
21522: mkdir -p "$ac_dir"
21523: else
21524: as_dir="$ac_dir"
21525: as_dirs=
21526: while test ! -d "$as_dir"; do
21527: as_dirs="$as_dir $as_dirs"
21528: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21529: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21530: X"$as_dir" : 'X\(//\)[^/]' \| \
21531: X"$as_dir" : 'X\(//\)$' \| \
21532: X"$as_dir" : 'X\(/\)' \| \
21533: . : '\(.\)' 2>/dev/null ||
1.62 paf 21534: echo X"$as_dir" |
21535: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21536: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21537: /^X\(\/\/\)$/{ s//\1/; q; }
21538: /^X\(\/\).*/{ s//\1/; q; }
21539: s/.*/./; q'`
21540: done
21541: test ! -n "$as_dirs" || mkdir $as_dirs
21542: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21543: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21544: { (exit 1); exit 1; }; }; }
21545:
21546: rm -f $ac_file
21547: mv $tmp/config.h $ac_file
21548: fi
21549: else
21550: cat $tmp/config.h
21551: rm -f $tmp/config.h
21552: fi
1.86 paf 21553: # Compute $ac_file's index in $config_headers.
21554: _am_stamp_count=1
21555: for _am_header in $config_headers :; do
21556: case $_am_header in
21557: $ac_file | $ac_file:* )
21558: break ;;
21559: * )
21560: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21561: esac
21562: done
1.62 paf 21563: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21564: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21565: X$ac_file : 'X\(//\)[^/]' \| \
21566: X$ac_file : 'X\(//\)$' \| \
21567: X$ac_file : 'X\(/\)' \| \
21568: . : '\(.\)' 2>/dev/null ||
1.62 paf 21569: echo X$ac_file |
21570: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21571: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21572: /^X\(\/\/\)$/{ s//\1/; q; }
21573: /^X\(\/\).*/{ s//\1/; q; }
21574: s/.*/./; q'`/stamp-h$_am_stamp_count
21575: done
21576: _ACEOF
21577: cat >>$CONFIG_STATUS <<\_ACEOF
21578:
21579: #
21580: # CONFIG_COMMANDS section.
21581: #
21582: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21583: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21584: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21585: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21586: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21587: X"$ac_dest" : 'X\(//\)[^/]' \| \
21588: X"$ac_dest" : 'X\(//\)$' \| \
21589: X"$ac_dest" : 'X\(/\)' \| \
21590: . : '\(.\)' 2>/dev/null ||
1.62 paf 21591: echo X"$ac_dest" |
21592: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21593: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21594: /^X\(\/\/\)$/{ s//\1/; q; }
21595: /^X\(\/\).*/{ s//\1/; q; }
21596: s/.*/./; q'`
1.86 paf 21597: { if $as_mkdir_p; then
21598: mkdir -p "$ac_dir"
21599: else
21600: as_dir="$ac_dir"
21601: as_dirs=
21602: while test ! -d "$as_dir"; do
21603: as_dirs="$as_dir $as_dirs"
21604: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21605: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21606: X"$as_dir" : 'X\(//\)[^/]' \| \
21607: X"$as_dir" : 'X\(//\)$' \| \
21608: X"$as_dir" : 'X\(/\)' \| \
21609: . : '\(.\)' 2>/dev/null ||
21610: echo X"$as_dir" |
21611: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21612: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21613: /^X\(\/\/\)$/{ s//\1/; q; }
21614: /^X\(\/\).*/{ s//\1/; q; }
21615: s/.*/./; q'`
21616: done
21617: test ! -n "$as_dirs" || mkdir $as_dirs
21618: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21619: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21620: { (exit 1); exit 1; }; }; }
21621:
1.62 paf 21622: ac_builddir=.
21623:
21624: if test "$ac_dir" != .; then
21625: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21626: # A "../" for each directory in $ac_dir_suffix.
21627: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21628: else
21629: ac_dir_suffix= ac_top_builddir=
21630: fi
21631:
21632: case $srcdir in
21633: .) # No --srcdir option. We are building in place.
21634: ac_srcdir=.
21635: if test -z "$ac_top_builddir"; then
21636: ac_top_srcdir=.
21637: else
21638: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21639: fi ;;
21640: [\\/]* | ?:[\\/]* ) # Absolute path.
21641: ac_srcdir=$srcdir$ac_dir_suffix;
21642: ac_top_srcdir=$srcdir ;;
21643: *) # Relative path.
21644: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21645: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21646: esac
1.86 paf 21647:
21648: # Do not use `cd foo && pwd` to compute absolute paths, because
21649: # the directories may not exist.
21650: case `pwd` in
21651: .) ac_abs_builddir="$ac_dir";;
21652: *)
21653: case "$ac_dir" in
21654: .) ac_abs_builddir=`pwd`;;
21655: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21656: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21657: esac;;
21658: esac
21659: case $ac_abs_builddir in
21660: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21661: *)
21662: case ${ac_top_builddir}. in
21663: .) ac_abs_top_builddir=$ac_abs_builddir;;
21664: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21665: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21666: esac;;
21667: esac
21668: case $ac_abs_builddir in
21669: .) ac_abs_srcdir=$ac_srcdir;;
21670: *)
21671: case $ac_srcdir in
21672: .) ac_abs_srcdir=$ac_abs_builddir;;
21673: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21674: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21675: esac;;
21676: esac
21677: case $ac_abs_builddir in
21678: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21679: *)
21680: case $ac_top_srcdir in
21681: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21682: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21683: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21684: esac;;
21685: esac
1.62 paf 21686:
21687:
21688: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21689: echo "$as_me: executing $ac_dest commands" >&6;}
21690: case $ac_dest in
21691: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21692: # Strip MF so we end up with the name of the file.
21693: mf=`echo "$mf" | sed -e 's/:.*$//'`
21694: # Check whether this is an Automake generated Makefile or not.
21695: # We used to match only the files named `Makefile.in', but
21696: # some people rename them; so instead we look at the file content.
21697: # Grep'ing the first line is not enough: some people post-process
21698: # each Makefile.in and add a new line on top of each file to say so.
21699: # So let's grep whole file.
21700: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21701: dirpart=`(dirname "$mf") 2>/dev/null ||
21702: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21703: X"$mf" : 'X\(//\)[^/]' \| \
21704: X"$mf" : 'X\(//\)$' \| \
21705: X"$mf" : 'X\(/\)' \| \
21706: . : '\(.\)' 2>/dev/null ||
1.62 paf 21707: echo X"$mf" |
21708: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21709: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21710: /^X\(\/\/\)$/{ s//\1/; q; }
21711: /^X\(\/\).*/{ s//\1/; q; }
21712: s/.*/./; q'`
21713: else
21714: continue
21715: fi
1.86 paf 21716: # Extract the definition of DEPDIR, am__include, and am__quote
21717: # from the Makefile without running `make'.
21718: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 21719: test -z "$DEPDIR" && continue
1.86 paf 21720: am__include=`sed -n 's/^am__include = //p' < "$mf"`
21721: test -z "am__include" && continue
21722: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 21723: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 21724: U=`sed -n 's/^U = //p' < "$mf"`
21725: # Find all dependency output files, they are included files with
21726: # $(DEPDIR) in their names. We invoke sed twice because it is the
21727: # simplest approach to changing $(DEPDIR) to its actual value in the
21728: # expansion.
21729: for file in `sed -n "
21730: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 21731: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21732: # Make sure the directory exists.
21733: test -f "$dirpart/$file" && continue
21734: fdir=`(dirname "$file") 2>/dev/null ||
21735: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21736: X"$file" : 'X\(//\)[^/]' \| \
21737: X"$file" : 'X\(//\)$' \| \
21738: X"$file" : 'X\(/\)' \| \
21739: . : '\(.\)' 2>/dev/null ||
1.62 paf 21740: echo X"$file" |
21741: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21742: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21743: /^X\(\/\/\)$/{ s//\1/; q; }
21744: /^X\(\/\).*/{ s//\1/; q; }
21745: s/.*/./; q'`
21746: { if $as_mkdir_p; then
21747: mkdir -p $dirpart/$fdir
21748: else
21749: as_dir=$dirpart/$fdir
21750: as_dirs=
21751: while test ! -d "$as_dir"; do
21752: as_dirs="$as_dir $as_dirs"
21753: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21754: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21755: X"$as_dir" : 'X\(//\)[^/]' \| \
21756: X"$as_dir" : 'X\(//\)$' \| \
21757: X"$as_dir" : 'X\(/\)' \| \
21758: . : '\(.\)' 2>/dev/null ||
1.62 paf 21759: echo X"$as_dir" |
21760: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21761: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21762: /^X\(\/\/\)$/{ s//\1/; q; }
21763: /^X\(\/\).*/{ s//\1/; q; }
21764: s/.*/./; q'`
21765: done
21766: test ! -n "$as_dirs" || mkdir $as_dirs
21767: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21768: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21769: { (exit 1); exit 1; }; }; }
1.1 paf 21770:
1.62 paf 21771: # echo "creating $dirpart/$file"
21772: echo '# dummy' > "$dirpart/$file"
21773: done
21774: done
21775: ;;
1.128 moko 21776: libtool )
21777:
21778: # See if we are running on zsh, and set the options which allow our
21779: # commands through without removal of \ escapes.
21780: if test -n "${ZSH_VERSION+set}" ; then
21781: setopt NO_GLOB_SUBST
21782: fi
21783:
21784: cfgfile="${ofile}T"
21785: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21786: $RM "$cfgfile"
21787:
21788: cat <<_LT_EOF >> "$cfgfile"
21789: #! $SHELL
21790:
21791: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21792: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21793: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21794: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21795: #
21796: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21797: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21798: # Foundation, Inc.
21799: # Written by Gordon Matzigkeit, 1996
21800: #
21801: # This file is part of GNU Libtool.
21802: #
21803: # GNU Libtool is free software; you can redistribute it and/or
21804: # modify it under the terms of the GNU General Public License as
21805: # published by the Free Software Foundation; either version 2 of
21806: # the License, or (at your option) any later version.
21807: #
21808: # As a special exception to the GNU General Public License,
21809: # if you distribute this file as part of a program or library that
21810: # is built using GNU Libtool, you may include this file under the
21811: # same distribution terms that you use for the rest of that program.
21812: #
21813: # GNU Libtool is distributed in the hope that it will be useful,
21814: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21815: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21816: # GNU General Public License for more details.
21817: #
21818: # You should have received a copy of the GNU General Public License
21819: # along with GNU Libtool; see the file COPYING. If not, a copy
21820: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21821: # obtained by writing to the Free Software Foundation, Inc.,
21822: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21823:
21824:
21825: # The names of the tagged configurations supported by this script.
21826: available_tags="CXX "
21827:
21828: # ### BEGIN LIBTOOL CONFIG
21829:
21830: # Which release of libtool.m4 was used?
21831: macro_version=$macro_version
21832: macro_revision=$macro_revision
21833:
1.136 ! moko 21834: # Whether or not to build static libraries.
! 21835: build_old_libs=$enable_static
! 21836:
1.128 moko 21837: # Assembler program.
21838: AS=$lt_AS
21839:
21840: # DLL creation program.
21841: DLLTOOL=$lt_DLLTOOL
21842:
21843: # Object dumper program.
21844: OBJDUMP=$lt_OBJDUMP
21845:
21846: # Whether or not to build shared libraries.
21847: build_libtool_libs=$enable_shared
21848:
21849: # What type of objects to build.
21850: pic_mode=$pic_mode
21851:
21852: # Whether or not to optimize for fast installation.
21853: fast_install=$enable_fast_install
21854:
21855: # Shell to use when invoking shell scripts.
21856: SHELL=$lt_SHELL
21857:
21858: # An echo program that protects backslashes.
21859: ECHO=$lt_ECHO
21860:
21861: # The PATH separator for the build system.
21862: PATH_SEPARATOR=$lt_PATH_SEPARATOR
21863:
21864: # The host system.
21865: host_alias=$host_alias
21866: host=$host
21867: host_os=$host_os
21868:
21869: # The build system.
21870: build_alias=$build_alias
21871: build=$build
21872: build_os=$build_os
21873:
21874: # A sed program that does not truncate output.
21875: SED=$lt_SED
21876:
21877: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21878: Xsed="\$SED -e 1s/^X//"
21879:
21880: # A grep program that handles long lines.
21881: GREP=$lt_GREP
21882:
21883: # An ERE matcher.
21884: EGREP=$lt_EGREP
21885:
21886: # A literal string matcher.
21887: FGREP=$lt_FGREP
21888:
21889: # A BSD- or MS-compatible name lister.
21890: NM=$lt_NM
21891:
21892: # Whether we need soft or hard links.
21893: LN_S=$lt_LN_S
21894:
21895: # What is the maximum length of a command?
21896: max_cmd_len=$max_cmd_len
21897:
21898: # Object file suffix (normally "o").
21899: objext=$ac_objext
21900:
21901: # Executable file suffix (normally "").
21902: exeext=$exeext
21903:
21904: # whether the shell understands "unset".
21905: lt_unset=$lt_unset
21906:
21907: # turn spaces into newlines.
21908: SP2NL=$lt_lt_SP2NL
21909:
21910: # turn newlines into spaces.
21911: NL2SP=$lt_lt_NL2SP
21912:
21913: # convert \$build file names to \$host format.
21914: to_host_file_cmd=$lt_cv_to_host_file_cmd
21915:
21916: # convert \$build files to toolchain format.
21917: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21918:
21919: # Method to check whether dependent libraries are shared objects.
21920: deplibs_check_method=$lt_deplibs_check_method
21921:
21922: # Command to use when deplibs_check_method = "file_magic".
21923: file_magic_cmd=$lt_file_magic_cmd
21924:
21925: # How to find potential files when deplibs_check_method = "file_magic".
21926: file_magic_glob=$lt_file_magic_glob
21927:
21928: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21929: want_nocaseglob=$lt_want_nocaseglob
21930:
21931: # Command to associate shared and link libraries.
21932: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21933:
21934: # The archiver.
21935: AR=$lt_AR
21936:
21937: # Flags to create an archive.
21938: AR_FLAGS=$lt_AR_FLAGS
21939:
21940: # How to feed a file listing to the archiver.
21941: archiver_list_spec=$lt_archiver_list_spec
21942:
21943: # A symbol stripping program.
21944: STRIP=$lt_STRIP
21945:
21946: # Commands used to install an old-style archive.
21947: RANLIB=$lt_RANLIB
21948: old_postinstall_cmds=$lt_old_postinstall_cmds
21949: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21950:
21951: # Whether to use a lock for old archive extraction.
21952: lock_old_archive_extraction=$lock_old_archive_extraction
21953:
21954: # A C compiler.
21955: LTCC=$lt_CC
21956:
21957: # LTCC compiler flags.
21958: LTCFLAGS=$lt_CFLAGS
21959:
21960: # Take the output of nm and produce a listing of raw symbols and C names.
21961: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21962:
21963: # Transform the output of nm in a proper C declaration.
21964: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21965:
21966: # Transform the output of nm in a C name address pair.
21967: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21968:
21969: # Transform the output of nm in a C name address pair when lib prefix is needed.
21970: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21971:
21972: # Specify filename containing input files for \$NM.
21973: nm_file_list_spec=$lt_nm_file_list_spec
21974:
21975: # The root where to search for dependent libraries,and in which our libraries should be installed.
21976: lt_sysroot=$lt_sysroot
21977:
21978: # The name of the directory that contains temporary libtool files.
21979: objdir=$objdir
21980:
21981: # Used to examine libraries when file_magic_cmd begins with "file".
21982: MAGIC_CMD=$MAGIC_CMD
21983:
21984: # Must we lock files when doing compilation?
21985: need_locks=$lt_need_locks
21986:
21987: # Manifest tool.
21988: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21989:
21990: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21991: DSYMUTIL=$lt_DSYMUTIL
21992:
21993: # Tool to change global to local symbols on Mac OS X.
21994: NMEDIT=$lt_NMEDIT
21995:
21996: # Tool to manipulate fat objects and archives on Mac OS X.
21997: LIPO=$lt_LIPO
21998:
21999: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22000: OTOOL=$lt_OTOOL
22001:
22002: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22003: OTOOL64=$lt_OTOOL64
22004:
22005: # Old archive suffix (normally "a").
22006: libext=$libext
22007:
22008: # Shared library suffix (normally ".so").
22009: shrext_cmds=$lt_shrext_cmds
22010:
22011: # The commands to extract the exported symbol list from a shared archive.
22012: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22013:
22014: # Variables whose values should be saved in libtool wrapper scripts and
22015: # restored at link time.
22016: variables_saved_for_relink=$lt_variables_saved_for_relink
22017:
22018: # Do we need the "lib" prefix for modules?
22019: need_lib_prefix=$need_lib_prefix
22020:
22021: # Do we need a version for libraries?
22022: need_version=$need_version
22023:
22024: # Library versioning type.
22025: version_type=$version_type
22026:
22027: # Shared library runtime path variable.
22028: runpath_var=$runpath_var
22029:
22030: # Shared library path variable.
22031: shlibpath_var=$shlibpath_var
22032:
22033: # Is shlibpath searched before the hard-coded library search path?
22034: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22035:
22036: # Format of library name prefix.
22037: libname_spec=$lt_libname_spec
22038:
22039: # List of archive names. First name is the real one, the rest are links.
22040: # The last name is the one that the linker finds with -lNAME
22041: library_names_spec=$lt_library_names_spec
22042:
22043: # The coded name of the library, if different from the real name.
22044: soname_spec=$lt_soname_spec
22045:
22046: # Permission mode override for installation of shared libraries.
22047: install_override_mode=$lt_install_override_mode
22048:
22049: # Command to use after installation of a shared archive.
22050: postinstall_cmds=$lt_postinstall_cmds
22051:
22052: # Command to use after uninstallation of a shared archive.
22053: postuninstall_cmds=$lt_postuninstall_cmds
22054:
22055: # Commands used to finish a libtool library installation in a directory.
22056: finish_cmds=$lt_finish_cmds
22057:
22058: # As "finish_cmds", except a single script fragment to be evaled but
22059: # not shown.
22060: finish_eval=$lt_finish_eval
22061:
22062: # Whether we should hardcode library paths into libraries.
22063: hardcode_into_libs=$hardcode_into_libs
22064:
22065: # Compile-time system search path for libraries.
22066: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22067:
22068: # Run-time system search path for libraries.
22069: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22070:
22071: # Whether dlopen is supported.
22072: dlopen_support=$enable_dlopen
22073:
22074: # Whether dlopen of programs is supported.
22075: dlopen_self=$enable_dlopen_self
22076:
22077: # Whether dlopen of statically linked programs is supported.
22078: dlopen_self_static=$enable_dlopen_self_static
22079:
22080: # Commands to strip libraries.
22081: old_striplib=$lt_old_striplib
22082: striplib=$lt_striplib
22083:
22084:
22085: # The linker used to build libraries.
22086: LD=$lt_LD
22087:
22088: # How to create reloadable object files.
22089: reload_flag=$lt_reload_flag
22090: reload_cmds=$lt_reload_cmds
22091:
22092: # Commands used to build an old-style archive.
22093: old_archive_cmds=$lt_old_archive_cmds
22094:
22095: # A language specific compiler.
22096: CC=$lt_compiler
22097:
22098: # Is the compiler the GNU compiler?
22099: with_gcc=$GCC
22100:
22101: # Compiler flag to turn off builtin functions.
22102: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22103:
22104: # Additional compiler flags for building library objects.
22105: pic_flag=$lt_lt_prog_compiler_pic
22106:
22107: # How to pass a linker flag through the compiler.
22108: wl=$lt_lt_prog_compiler_wl
22109:
22110: # Compiler flag to prevent dynamic linking.
22111: link_static_flag=$lt_lt_prog_compiler_static
22112:
22113: # Does compiler simultaneously support -c and -o options?
22114: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22115:
22116: # Whether or not to add -lc for building shared libraries.
22117: build_libtool_need_lc=$archive_cmds_need_lc
22118:
22119: # Whether or not to disallow shared libs when runtime libs are static.
22120: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22121:
22122: # Compiler flag to allow reflexive dlopens.
22123: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22124:
22125: # Compiler flag to generate shared objects directly from archives.
22126: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22127:
22128: # Whether the compiler copes with passing no objects directly.
22129: compiler_needs_object=$lt_compiler_needs_object
22130:
22131: # Create an old-style archive from a shared archive.
22132: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22133:
22134: # Create a temporary old-style archive to link instead of a shared archive.
22135: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22136:
22137: # Commands used to build a shared archive.
22138: archive_cmds=$lt_archive_cmds
22139: archive_expsym_cmds=$lt_archive_expsym_cmds
22140:
22141: # Commands used to build a loadable module if different from building
22142: # a shared archive.
22143: module_cmds=$lt_module_cmds
22144: module_expsym_cmds=$lt_module_expsym_cmds
22145:
22146: # Whether we are building with GNU ld or not.
22147: with_gnu_ld=$lt_with_gnu_ld
22148:
22149: # Flag that allows shared libraries with undefined symbols to be built.
22150: allow_undefined_flag=$lt_allow_undefined_flag
22151:
22152: # Flag that enforces no undefined symbols.
22153: no_undefined_flag=$lt_no_undefined_flag
22154:
22155: # Flag to hardcode \$libdir into a binary during linking.
22156: # This must work even if \$libdir does not exist
22157: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22158:
22159: # Whether we need a single "-rpath" flag with a separated argument.
22160: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22161:
22162: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22163: # DIR into the resulting binary.
22164: hardcode_direct=$hardcode_direct
22165:
22166: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22167: # DIR into the resulting binary and the resulting library dependency is
22168: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22169: # library is relocated.
22170: hardcode_direct_absolute=$hardcode_direct_absolute
22171:
22172: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22173: # into the resulting binary.
22174: hardcode_minus_L=$hardcode_minus_L
22175:
22176: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22177: # into the resulting binary.
22178: hardcode_shlibpath_var=$hardcode_shlibpath_var
22179:
22180: # Set to "yes" if building a shared library automatically hardcodes DIR
22181: # into the library and all subsequent libraries and executables linked
22182: # against it.
22183: hardcode_automatic=$hardcode_automatic
22184:
22185: # Set to yes if linker adds runtime paths of dependent libraries
22186: # to runtime path list.
22187: inherit_rpath=$inherit_rpath
22188:
22189: # Whether libtool must link a program against all its dependency libraries.
22190: link_all_deplibs=$link_all_deplibs
22191:
22192: # Set to "yes" if exported symbols are required.
22193: always_export_symbols=$always_export_symbols
22194:
22195: # The commands to list exported symbols.
22196: export_symbols_cmds=$lt_export_symbols_cmds
22197:
22198: # Symbols that should not be listed in the preloaded symbols.
22199: exclude_expsyms=$lt_exclude_expsyms
22200:
22201: # Symbols that must always be exported.
22202: include_expsyms=$lt_include_expsyms
22203:
22204: # Commands necessary for linking programs (against libraries) with templates.
22205: prelink_cmds=$lt_prelink_cmds
22206:
22207: # Commands necessary for finishing linking programs.
22208: postlink_cmds=$lt_postlink_cmds
22209:
22210: # Specify filename containing input files.
22211: file_list_spec=$lt_file_list_spec
22212:
22213: # How to hardcode a shared library path into an executable.
22214: hardcode_action=$hardcode_action
22215:
22216: # The directories searched by this compiler when creating a shared library.
22217: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22218:
22219: # Dependencies to place before and after the objects being linked to
22220: # create a shared library.
22221: predep_objects=$lt_predep_objects
22222: postdep_objects=$lt_postdep_objects
22223: predeps=$lt_predeps
22224: postdeps=$lt_postdeps
22225:
22226: # The library search path used internally by the compiler when linking
22227: # a shared library.
22228: compiler_lib_search_path=$lt_compiler_lib_search_path
22229:
22230: # ### END LIBTOOL CONFIG
22231:
22232: _LT_EOF
22233:
22234: case $host_os in
22235: aix3*)
22236: cat <<\_LT_EOF >> "$cfgfile"
22237: # AIX sometimes has problems with the GCC collect2 program. For some
22238: # reason, if we set the COLLECT_NAMES environment variable, the problems
22239: # vanish in a puff of smoke.
22240: if test "X${COLLECT_NAMES+set}" != Xset; then
22241: COLLECT_NAMES=
22242: export COLLECT_NAMES
22243: fi
22244: _LT_EOF
22245: ;;
22246: esac
22247:
22248:
22249: ltmain="$ac_aux_dir/ltmain.sh"
22250:
22251:
22252: # We use sed instead of cat because bash on DJGPP gets confused if
22253: # if finds mixed CR/LF and LF-only lines. Since sed operates in
22254: # text mode, it properly converts lines to CR/LF. This bash problem
22255: # is reportedly fixed, but why not run on old versions too?
22256: sed '$q' "$ltmain" >> "$cfgfile" \
22257: || (rm -f "$cfgfile"; exit 1)
22258:
22259: if test x"$xsi_shell" = xyes; then
22260: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22261: func_dirname ()\
22262: {\
22263: \ case ${1} in\
22264: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22265: \ * ) func_dirname_result="${3}" ;;\
22266: \ esac\
22267: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22268: && mv -f "$cfgfile.tmp" "$cfgfile" \
22269: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22270: test 0 -eq $? || _lt_function_replace_fail=:
22271:
22272:
22273: sed -e '/^func_basename ()$/,/^} # func_basename /c\
22274: func_basename ()\
22275: {\
22276: \ func_basename_result="${1##*/}"\
22277: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22278: && mv -f "$cfgfile.tmp" "$cfgfile" \
22279: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280: test 0 -eq $? || _lt_function_replace_fail=:
22281:
22282:
22283: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22284: func_dirname_and_basename ()\
22285: {\
22286: \ case ${1} in\
22287: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22288: \ * ) func_dirname_result="${3}" ;;\
22289: \ esac\
22290: \ func_basename_result="${1##*/}"\
22291: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22292: && mv -f "$cfgfile.tmp" "$cfgfile" \
22293: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22294: test 0 -eq $? || _lt_function_replace_fail=:
22295:
22296:
22297: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22298: func_stripname ()\
22299: {\
22300: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22301: \ # positional parameters, so assign one to ordinary parameter first.\
22302: \ func_stripname_result=${3}\
22303: \ func_stripname_result=${func_stripname_result#"${1}"}\
22304: \ func_stripname_result=${func_stripname_result%"${2}"}\
22305: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22306: && mv -f "$cfgfile.tmp" "$cfgfile" \
22307: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22308: test 0 -eq $? || _lt_function_replace_fail=:
22309:
22310:
22311: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22312: func_split_long_opt ()\
22313: {\
22314: \ func_split_long_opt_name=${1%%=*}\
22315: \ func_split_long_opt_arg=${1#*=}\
22316: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22317: && mv -f "$cfgfile.tmp" "$cfgfile" \
22318: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22319: test 0 -eq $? || _lt_function_replace_fail=:
22320:
22321:
22322: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22323: func_split_short_opt ()\
22324: {\
22325: \ func_split_short_opt_arg=${1#??}\
22326: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22327: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22328: && mv -f "$cfgfile.tmp" "$cfgfile" \
22329: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22330: test 0 -eq $? || _lt_function_replace_fail=:
22331:
22332:
22333: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22334: func_lo2o ()\
22335: {\
22336: \ case ${1} in\
22337: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22338: \ *) func_lo2o_result=${1} ;;\
22339: \ esac\
22340: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22341: && mv -f "$cfgfile.tmp" "$cfgfile" \
22342: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22343: test 0 -eq $? || _lt_function_replace_fail=:
22344:
22345:
22346: sed -e '/^func_xform ()$/,/^} # func_xform /c\
22347: func_xform ()\
22348: {\
22349: func_xform_result=${1%.*}.lo\
22350: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22351: && mv -f "$cfgfile.tmp" "$cfgfile" \
22352: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22353: test 0 -eq $? || _lt_function_replace_fail=:
22354:
22355:
22356: sed -e '/^func_arith ()$/,/^} # func_arith /c\
22357: func_arith ()\
22358: {\
22359: func_arith_result=$(( $* ))\
22360: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22361: && mv -f "$cfgfile.tmp" "$cfgfile" \
22362: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22363: test 0 -eq $? || _lt_function_replace_fail=:
22364:
22365:
22366: sed -e '/^func_len ()$/,/^} # func_len /c\
22367: func_len ()\
22368: {\
22369: func_len_result=${#1}\
22370: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22371: && mv -f "$cfgfile.tmp" "$cfgfile" \
22372: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22373: test 0 -eq $? || _lt_function_replace_fail=:
22374:
22375: fi
22376:
22377: if test x"$lt_shell_append" = xyes; then
22378: sed -e '/^func_append ()$/,/^} # func_append /c\
22379: func_append ()\
22380: {\
22381: eval "${1}+=\\${2}"\
22382: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22383: && mv -f "$cfgfile.tmp" "$cfgfile" \
22384: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22385: test 0 -eq $? || _lt_function_replace_fail=:
22386:
22387:
22388: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22389: func_append_quoted ()\
22390: {\
22391: \ func_quote_for_eval "${2}"\
22392: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22393: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22394: && mv -f "$cfgfile.tmp" "$cfgfile" \
22395: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22396: test 0 -eq $? || _lt_function_replace_fail=:
22397:
22398:
22399: # Save a `func_append' function call where possible by direct use of '+='
22400: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22401: && mv -f "$cfgfile.tmp" "$cfgfile" \
22402: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22403: test 0 -eq $? || _lt_function_replace_fail=:
22404: else
22405: # Save a `func_append' function call even when '+=' is not available
22406: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22407: && mv -f "$cfgfile.tmp" "$cfgfile" \
22408: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22409: test 0 -eq $? || _lt_function_replace_fail=:
22410: fi
22411:
22412: if test x"$_lt_function_replace_fail" = x":"; then
22413: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22414: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22415: fi
22416:
22417:
22418: mv -f "$cfgfile" "$ofile" ||
22419: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22420: chmod +x "$ofile"
22421:
22422:
22423: cat <<_LT_EOF >> "$ofile"
22424:
22425: # ### BEGIN LIBTOOL TAG CONFIG: CXX
22426:
22427: # The linker used to build libraries.
22428: LD=$lt_LD_CXX
22429:
22430: # How to create reloadable object files.
22431: reload_flag=$lt_reload_flag_CXX
22432: reload_cmds=$lt_reload_cmds_CXX
22433:
22434: # Commands used to build an old-style archive.
22435: old_archive_cmds=$lt_old_archive_cmds_CXX
22436:
22437: # A language specific compiler.
22438: CC=$lt_compiler_CXX
22439:
22440: # Is the compiler the GNU compiler?
22441: with_gcc=$GCC_CXX
22442:
22443: # Compiler flag to turn off builtin functions.
22444: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22445:
22446: # Additional compiler flags for building library objects.
22447: pic_flag=$lt_lt_prog_compiler_pic_CXX
22448:
22449: # How to pass a linker flag through the compiler.
22450: wl=$lt_lt_prog_compiler_wl_CXX
22451:
22452: # Compiler flag to prevent dynamic linking.
22453: link_static_flag=$lt_lt_prog_compiler_static_CXX
22454:
22455: # Does compiler simultaneously support -c and -o options?
22456: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22457:
22458: # Whether or not to add -lc for building shared libraries.
22459: build_libtool_need_lc=$archive_cmds_need_lc_CXX
22460:
22461: # Whether or not to disallow shared libs when runtime libs are static.
22462: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22463:
22464: # Compiler flag to allow reflexive dlopens.
22465: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22466:
22467: # Compiler flag to generate shared objects directly from archives.
22468: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22469:
22470: # Whether the compiler copes with passing no objects directly.
22471: compiler_needs_object=$lt_compiler_needs_object_CXX
22472:
22473: # Create an old-style archive from a shared archive.
22474: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22475:
22476: # Create a temporary old-style archive to link instead of a shared archive.
22477: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22478:
22479: # Commands used to build a shared archive.
22480: archive_cmds=$lt_archive_cmds_CXX
22481: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22482:
22483: # Commands used to build a loadable module if different from building
22484: # a shared archive.
22485: module_cmds=$lt_module_cmds_CXX
22486: module_expsym_cmds=$lt_module_expsym_cmds_CXX
22487:
22488: # Whether we are building with GNU ld or not.
22489: with_gnu_ld=$lt_with_gnu_ld_CXX
22490:
22491: # Flag that allows shared libraries with undefined symbols to be built.
22492: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22493:
22494: # Flag that enforces no undefined symbols.
22495: no_undefined_flag=$lt_no_undefined_flag_CXX
22496:
22497: # Flag to hardcode \$libdir into a binary during linking.
22498: # This must work even if \$libdir does not exist
22499: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22500:
22501: # Whether we need a single "-rpath" flag with a separated argument.
22502: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22503:
22504: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22505: # DIR into the resulting binary.
22506: hardcode_direct=$hardcode_direct_CXX
22507:
22508: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22509: # DIR into the resulting binary and the resulting library dependency is
22510: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22511: # library is relocated.
22512: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22513:
22514: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22515: # into the resulting binary.
22516: hardcode_minus_L=$hardcode_minus_L_CXX
22517:
22518: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22519: # into the resulting binary.
22520: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22521:
22522: # Set to "yes" if building a shared library automatically hardcodes DIR
22523: # into the library and all subsequent libraries and executables linked
22524: # against it.
22525: hardcode_automatic=$hardcode_automatic_CXX
22526:
22527: # Set to yes if linker adds runtime paths of dependent libraries
22528: # to runtime path list.
22529: inherit_rpath=$inherit_rpath_CXX
22530:
22531: # Whether libtool must link a program against all its dependency libraries.
22532: link_all_deplibs=$link_all_deplibs_CXX
22533:
22534: # Set to "yes" if exported symbols are required.
22535: always_export_symbols=$always_export_symbols_CXX
22536:
22537: # The commands to list exported symbols.
22538: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22539:
22540: # Symbols that should not be listed in the preloaded symbols.
22541: exclude_expsyms=$lt_exclude_expsyms_CXX
22542:
22543: # Symbols that must always be exported.
22544: include_expsyms=$lt_include_expsyms_CXX
22545:
22546: # Commands necessary for linking programs (against libraries) with templates.
22547: prelink_cmds=$lt_prelink_cmds_CXX
22548:
22549: # Commands necessary for finishing linking programs.
22550: postlink_cmds=$lt_postlink_cmds_CXX
22551:
22552: # Specify filename containing input files.
22553: file_list_spec=$lt_file_list_spec_CXX
22554:
22555: # How to hardcode a shared library path into an executable.
22556: hardcode_action=$hardcode_action_CXX
22557:
22558: # The directories searched by this compiler when creating a shared library.
22559: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22560:
22561: # Dependencies to place before and after the objects being linked to
22562: # create a shared library.
22563: predep_objects=$lt_predep_objects_CXX
22564: postdep_objects=$lt_postdep_objects_CXX
22565: predeps=$lt_predeps_CXX
22566: postdeps=$lt_postdeps_CXX
22567:
22568: # The library search path used internally by the compiler when linking
22569: # a shared library.
22570: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22571:
22572: # ### END LIBTOOL TAG CONFIG: CXX
22573: _LT_EOF
22574:
22575: ;;
1.62 paf 22576: esac
22577: done
22578: _ACEOF
22579:
22580: cat >>$CONFIG_STATUS <<\_ACEOF
22581:
22582: { (exit 0); exit 0; }
22583: _ACEOF
1.1 paf 22584: chmod +x $CONFIG_STATUS
1.62 paf 22585: ac_clean_files=$ac_clean_files_save
22586:
1.1 paf 22587:
1.62 paf 22588: # configure is writing to config.log, and then calls config.status.
22589: # config.status does its own redirection, appending to config.log.
22590: # Unfortunately, on DOS this fails, as config.log is still kept open
22591: # by configure, so config.status won't be able to write to it; its
22592: # output is simply discarded. So we exec the FD to /dev/null,
22593: # effectively closing config.log, so it can be properly (re)opened and
22594: # appended to by config.status. When coming back to configure, we
22595: # need to make the FD available again.
22596: if test "$no_create" != yes; then
22597: ac_cs_success=:
22598: ac_config_status_args=
22599: test "$silent" = yes &&
22600: ac_config_status_args="$ac_config_status_args --quiet"
22601: exec 5>/dev/null
22602: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22603: exec 5>>config.log
22604: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22605: # would make configure fail if this is the last instruction.
22606: $ac_cs_success || { (exit 1); exit 1; }
22607: fi
22608:
22609: #
22610: # CONFIG_SUBDIRS section.
22611: #
1.1 paf 22612: if test "$no_recursion" != yes; then
22613:
22614: # Remove --cache-file and --srcdir arguments so they do not pile up.
22615: ac_sub_configure_args=
22616: ac_prev=
22617: for ac_arg in $ac_configure_args; do
22618: if test -n "$ac_prev"; then
22619: ac_prev=
22620: continue
22621: fi
1.62 paf 22622: case $ac_arg in
1.1 paf 22623: -cache-file | --cache-file | --cache-fil | --cache-fi \
22624: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22625: ac_prev=cache_file ;;
22626: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 22627: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22628: | --c=*)
22629: ;;
22630: --config-cache | -C)
1.1 paf 22631: ;;
22632: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22633: ac_prev=srcdir ;;
22634: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22635: ;;
1.62 paf 22636: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22637: ac_prev=prefix ;;
22638: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22639: ;;
1.1 paf 22640: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22641: esac
22642: done
22643:
1.62 paf 22644: # Always prepend --prefix to ensure using the same prefix
22645: # in subdir configurations.
22646: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22647:
22648: ac_popdir=`pwd`
22649: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 22650:
22651: # Do not complain, so a configure script can configure whichever
22652: # parts of a large source tree are present.
1.62 paf 22653: test -d $srcdir/$ac_dir || continue
1.1 paf 22654:
1.62 paf 22655: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22656: echo "$as_me: configuring in $ac_dir" >&6;}
22657: { if $as_mkdir_p; then
22658: mkdir -p "$ac_dir"
22659: else
22660: as_dir="$ac_dir"
22661: as_dirs=
22662: while test ! -d "$as_dir"; do
22663: as_dirs="$as_dir $as_dirs"
22664: as_dir=`(dirname "$as_dir") 2>/dev/null ||
22665: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 22666: X"$as_dir" : 'X\(//\)[^/]' \| \
22667: X"$as_dir" : 'X\(//\)$' \| \
22668: X"$as_dir" : 'X\(/\)' \| \
22669: . : '\(.\)' 2>/dev/null ||
1.62 paf 22670: echo X"$as_dir" |
22671: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22672: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22673: /^X\(\/\/\)$/{ s//\1/; q; }
22674: /^X\(\/\).*/{ s//\1/; q; }
22675: s/.*/./; q'`
22676: done
22677: test ! -n "$as_dirs" || mkdir $as_dirs
22678: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22679: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22680: { (exit 1); exit 1; }; }; }
22681:
22682: ac_builddir=.
22683:
22684: if test "$ac_dir" != .; then
22685: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22686: # A "../" for each directory in $ac_dir_suffix.
22687: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22688: else
22689: ac_dir_suffix= ac_top_builddir=
22690: fi
22691:
22692: case $srcdir in
22693: .) # No --srcdir option. We are building in place.
22694: ac_srcdir=.
22695: if test -z "$ac_top_builddir"; then
22696: ac_top_srcdir=.
22697: else
22698: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22699: fi ;;
22700: [\\/]* | ?:[\\/]* ) # Absolute path.
22701: ac_srcdir=$srcdir$ac_dir_suffix;
22702: ac_top_srcdir=$srcdir ;;
22703: *) # Relative path.
22704: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22705: ac_top_srcdir=$ac_top_builddir$srcdir ;;
22706: esac
1.86 paf 22707:
22708: # Do not use `cd foo && pwd` to compute absolute paths, because
22709: # the directories may not exist.
22710: case `pwd` in
22711: .) ac_abs_builddir="$ac_dir";;
22712: *)
22713: case "$ac_dir" in
22714: .) ac_abs_builddir=`pwd`;;
22715: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22716: *) ac_abs_builddir=`pwd`/"$ac_dir";;
22717: esac;;
22718: esac
22719: case $ac_abs_builddir in
22720: .) ac_abs_top_builddir=${ac_top_builddir}.;;
22721: *)
22722: case ${ac_top_builddir}. in
22723: .) ac_abs_top_builddir=$ac_abs_builddir;;
22724: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22725: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22726: esac;;
22727: esac
22728: case $ac_abs_builddir in
22729: .) ac_abs_srcdir=$ac_srcdir;;
22730: *)
22731: case $ac_srcdir in
22732: .) ac_abs_srcdir=$ac_abs_builddir;;
22733: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22734: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22735: esac;;
22736: esac
22737: case $ac_abs_builddir in
22738: .) ac_abs_top_srcdir=$ac_top_srcdir;;
22739: *)
22740: case $ac_top_srcdir in
22741: .) ac_abs_top_srcdir=$ac_abs_builddir;;
22742: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22743: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22744: esac;;
22745: esac
1.1 paf 22746:
22747:
1.62 paf 22748: cd $ac_dir
1.1 paf 22749:
22750: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 22751: if test -f $ac_srcdir/configure.gnu; then
22752: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22753: elif test -f $ac_srcdir/configure; then
22754: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22755: elif test -f $ac_srcdir/configure.in; then
1.1 paf 22756: ac_sub_configure=$ac_configure
22757: else
1.62 paf 22758: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22759: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 22760: ac_sub_configure=
22761: fi
22762:
22763: # The recursion is here.
22764: if test -n "$ac_sub_configure"; then
22765: # Make the cache file name correct relative to the subdirectory.
1.62 paf 22766: case $cache_file in
22767: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 22768: *) # Relative path.
1.86 paf 22769: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 22770: esac
22771:
1.62 paf 22772: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22773: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 22774: # The eval makes quoting arguments work.
1.62 paf 22775: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 22776: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22777: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 22778: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22779: { (exit 1); exit 1; }; }
1.1 paf 22780: fi
22781:
22782: cd $ac_popdir
22783: done
22784: fi
22785:
E-mail: