Annotation of parser3/configure, revision 1.144
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.128 moko 881: --enable-shared[=PKGS]
882: build shared libraries [default=yes]
1.138 moko 883: --enable-static[=PKGS]
884: build static libraries [default=yes]
1.128 moko 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.142 moko 898: --with-gc=D D is the directory where
899: Boehm garbage collecting library is installed
900: --with-pcre=D D is the directory where
901: PCRE library is installed
902: --with-xml=D D is the directory where
903: Gnome XML libraries are installed
1.90 paf 904: --with-glib-config=FILE FILE is glib library
905: configuration file (search for glib*-config)
1.62 paf 906: --with-shared-mailreceive=D is the directory where
1.67 paf 907: Gnome MIME library is installed (shared lib)
1.62 paf 908: --with-static-mailreceive=D is the directory where
909: Gnome MIME library is installed (static lib)
910: \"--with-sendmail=COMMAND\" forces this command to send mail.
911: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
912: (makes parser ignore user-defined sendmail commands)
1.122 moko 913: --with-apache=FILE is the full path for APXS
914: builds apache DSO module using apxs
1.128 moko 915: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
916: both]
917: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
918: --with-sysroot=DIR Search for dependent libraries within DIR
919: (or the compiler's sysroot if not specified).
920: --with-included-ltdl use the GNU ltdl sources included here
921: --with-ltdl-include=DIR use the ltdl headers installed in DIR
922: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 923:
924: Some influential environment variables:
1.66 paf 925: CXX C++ compiler command
926: CXXFLAGS C++ compiler flags
1.62 paf 927: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
928: nonstandard directory <lib dir>
929: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
930: headers in a nonstandard directory <include dir>
1.66 paf 931: CC C compiler command
932: CFLAGS C compiler flags
933: CPP C preprocessor
1.128 moko 934: CXXCPP C++ preprocessor
1.62 paf 935:
936: Use these variables to override the choices made by `configure' or to help
937: it to find libraries and programs with nonstandard names/locations.
938:
939: _ACEOF
940: fi
941:
942: if test "$ac_init_help" = "recursive"; then
943: # If there are subdirs, report their specific --help.
944: ac_popdir=`pwd`
945: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
946: test -d $ac_dir || continue
947: ac_builddir=.
948:
949: if test "$ac_dir" != .; then
950: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
951: # A "../" for each directory in $ac_dir_suffix.
952: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953: else
954: ac_dir_suffix= ac_top_builddir=
955: fi
956:
957: case $srcdir in
958: .) # No --srcdir option. We are building in place.
959: ac_srcdir=.
960: if test -z "$ac_top_builddir"; then
961: ac_top_srcdir=.
962: else
963: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964: fi ;;
965: [\\/]* | ?:[\\/]* ) # Absolute path.
966: ac_srcdir=$srcdir$ac_dir_suffix;
967: ac_top_srcdir=$srcdir ;;
968: *) # Relative path.
969: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
970: ac_top_srcdir=$ac_top_builddir$srcdir ;;
971: esac
1.86 paf 972:
973: # Do not use `cd foo && pwd` to compute absolute paths, because
974: # the directories may not exist.
975: case `pwd` in
976: .) ac_abs_builddir="$ac_dir";;
977: *)
978: case "$ac_dir" in
979: .) ac_abs_builddir=`pwd`;;
980: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
981: *) ac_abs_builddir=`pwd`/"$ac_dir";;
982: esac;;
983: esac
984: case $ac_abs_builddir in
985: .) ac_abs_top_builddir=${ac_top_builddir}.;;
986: *)
987: case ${ac_top_builddir}. in
988: .) ac_abs_top_builddir=$ac_abs_builddir;;
989: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
990: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
991: esac;;
992: esac
993: case $ac_abs_builddir in
994: .) ac_abs_srcdir=$ac_srcdir;;
995: *)
996: case $ac_srcdir in
997: .) ac_abs_srcdir=$ac_abs_builddir;;
998: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
999: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1000: esac;;
1001: esac
1002: case $ac_abs_builddir in
1003: .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004: *)
1005: case $ac_top_srcdir in
1006: .) ac_abs_top_srcdir=$ac_abs_builddir;;
1007: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1008: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1009: esac;;
1010: esac
1.62 paf 1011:
1012: cd $ac_dir
1013: # Check for guested configure; otherwise get Cygnus style configure.
1014: if test -f $ac_srcdir/configure.gnu; then
1015: echo
1016: $SHELL $ac_srcdir/configure.gnu --help=recursive
1017: elif test -f $ac_srcdir/configure; then
1018: echo
1019: $SHELL $ac_srcdir/configure --help=recursive
1020: elif test -f $ac_srcdir/configure.ac ||
1.86 paf 1021: test -f $ac_srcdir/configure.in; then
1.62 paf 1022: echo
1023: $ac_configure --help
1024: else
1025: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026: fi
1027: cd $ac_popdir
1028: done
1029: fi
1030:
1031: test -n "$ac_init_help" && exit 0
1032: if $ac_init_version; then
1033: cat <<\_ACEOF
1.128 moko 1034: parser configure 3.4.2b
1035: generated by GNU Autoconf 2.59
1.62 paf 1036:
1.86 paf 1037: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 1038: This configure script is free software; the Free Software Foundation
1039: gives unlimited permission to copy, distribute and modify it.
1040: _ACEOF
1041: exit 0
1042: fi
1043: exec 5>config.log
1044: cat >&5 <<_ACEOF
1045: This file contains any messages produced by compilers while
1046: running configure, to aid debugging if configure makes a mistake.
1047:
1.128 moko 1048: It was created by parser $as_me 3.4.2b, which was
1.86 paf 1049: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 1050:
1051: $ $0 $@
1052:
1053: _ACEOF
1054: {
1055: cat <<_ASUNAME
1056: ## --------- ##
1057: ## Platform. ##
1058: ## --------- ##
1059:
1060: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1061: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1062: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1063: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1064: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1065:
1066: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1067: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1068:
1069: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1070: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1071: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1073: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1074: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1075: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076:
1077: _ASUNAME
1078:
1079: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080: for as_dir in $PATH
1081: do
1082: IFS=$as_save_IFS
1083: test -z "$as_dir" && as_dir=.
1084: echo "PATH: $as_dir"
1085: done
1.1 paf 1086:
1.62 paf 1087: } >&5
1088:
1089: cat >&5 <<_ACEOF
1090:
1091:
1092: ## ----------- ##
1093: ## Core tests. ##
1094: ## ----------- ##
1095:
1096: _ACEOF
1097:
1098:
1099: # Keep a trace of the command line.
1100: # Strip out --no-create and --no-recursion so they do not pile up.
1101: # Strip out --silent because we don't want to record it for future runs.
1102: # Also quote any args containing shell meta-characters.
1103: # Make two passes to allow for proper duplicate-argument suppression.
1104: ac_configure_args=
1105: ac_configure_args0=
1106: ac_configure_args1=
1107: ac_sep=
1108: ac_must_keep_next=false
1109: for ac_pass in 1 2
1110: do
1111: for ac_arg
1112: do
1113: case $ac_arg in
1114: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116: | -silent | --silent | --silen | --sile | --sil)
1117: continue ;;
1118: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120: esac
1121: case $ac_pass in
1122: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1123: 2)
1124: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1125: if test $ac_must_keep_next = true; then
1.86 paf 1126: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 1127: else
1.86 paf 1128: case $ac_arg in
1129: *=* | --config-cache | -C | -disable-* | --disable-* \
1130: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1131: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1132: | -with-* | --with-* | -without-* | --without-* | --x)
1133: case "$ac_configure_args0 " in
1134: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1135: esac
1136: ;;
1137: -* ) ac_must_keep_next=true ;;
1138: esac
1.62 paf 1139: fi
1140: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141: # Get rid of the leading space.
1142: ac_sep=" "
1143: ;;
1144: esac
1145: done
1146: done
1147: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1148: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1149:
1150: # When interrupted or exit'd, cleanup temporary files, and complete
1151: # config.log. We remove comments because anyway the quotes in there
1152: # would cause problems or look ugly.
1153: # WARNING: Be sure not to use single quotes in there, as some shells,
1154: # such as our DU 5.0 friend, will then `close' the trap.
1155: trap 'exit_status=$?
1156: # Save into config.log some information that might help in debugging.
1157: {
1158: echo
1159:
1160: cat <<\_ASBOX
1161: ## ---------------- ##
1162: ## Cache variables. ##
1163: ## ---------------- ##
1164: _ASBOX
1165: echo
1166: # The following way of writing the cache mishandles newlines in values,
1167: {
1168: (set) 2>&1 |
1169: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1170: *ac_space=\ *)
1171: sed -n \
1.86 paf 1172: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.62 paf 1174: ;;
1175: *)
1176: sed -n \
1.86 paf 1177: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 1178: ;;
1179: esac;
1180: }
1181: echo
1182:
1183: cat <<\_ASBOX
1184: ## ----------------- ##
1185: ## Output variables. ##
1186: ## ----------------- ##
1187: _ASBOX
1188: echo
1189: for ac_var in $ac_subst_vars
1190: do
1191: eval ac_val=$`echo $ac_var`
1192: echo "$ac_var='"'"'$ac_val'"'"'"
1193: done | sort
1194: echo
1195:
1196: if test -n "$ac_subst_files"; then
1197: cat <<\_ASBOX
1198: ## ------------- ##
1199: ## Output files. ##
1200: ## ------------- ##
1201: _ASBOX
1202: echo
1203: for ac_var in $ac_subst_files
1204: do
1205: eval ac_val=$`echo $ac_var`
1.86 paf 1206: echo "$ac_var='"'"'$ac_val'"'"'"
1.62 paf 1207: done | sort
1208: echo
1209: fi
1210:
1211: if test -s confdefs.h; then
1212: cat <<\_ASBOX
1213: ## ----------- ##
1214: ## confdefs.h. ##
1215: ## ----------- ##
1216: _ASBOX
1217: echo
1218: sed "/^$/d" confdefs.h | sort
1219: echo
1220: fi
1221: test "$ac_signal" != 0 &&
1222: echo "$as_me: caught signal $ac_signal"
1223: echo "$as_me: exit $exit_status"
1224: } >&5
1.86 paf 1225: rm -f core *.core &&
1.62 paf 1226: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227: exit $exit_status
1228: ' 0
1229: for ac_signal in 1 2 13 15; do
1230: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231: done
1232: ac_signal=0
1233:
1234: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235: rm -rf conftest* confdefs.h
1236: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237: echo >confdefs.h
1238:
1239: # Predefined preprocessor variables.
1240:
1241: cat >>confdefs.h <<_ACEOF
1242: #define PACKAGE_NAME "$PACKAGE_NAME"
1243: _ACEOF
1244:
1245:
1246: cat >>confdefs.h <<_ACEOF
1247: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248: _ACEOF
1249:
1250:
1251: cat >>confdefs.h <<_ACEOF
1252: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253: _ACEOF
1254:
1255:
1256: cat >>confdefs.h <<_ACEOF
1257: #define PACKAGE_STRING "$PACKAGE_STRING"
1258: _ACEOF
1259:
1260:
1261: cat >>confdefs.h <<_ACEOF
1262: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263: _ACEOF
1264:
1265:
1266: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1267: # Prefer explicitly selected file to automatically selected ones.
1268: if test -z "$CONFIG_SITE"; then
1269: if test "x$prefix" != xNONE; then
1270: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271: else
1272: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273: fi
1274: fi
1275: for ac_site_file in $CONFIG_SITE; do
1276: if test -r "$ac_site_file"; then
1.62 paf 1277: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278: echo "$as_me: loading site script $ac_site_file" >&6;}
1279: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1280: . "$ac_site_file"
1281: fi
1282: done
1283:
1284: if test -r "$cache_file"; then
1.62 paf 1285: # Some versions of bash will fail to source /dev/null (special
1286: # files actually), so we avoid doing that.
1287: if test -f "$cache_file"; then
1288: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289: echo "$as_me: loading cache $cache_file" >&6;}
1290: case $cache_file in
1291: [\\/]* | ?:[\\/]* ) . $cache_file;;
1292: *) . ./$cache_file;;
1293: esac
1294: fi
1.1 paf 1295: else
1.62 paf 1296: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297: echo "$as_me: creating cache $cache_file" >&6;}
1298: >$cache_file
1299: fi
1300:
1301: # Check that the precious variables saved in the cache have kept the same
1302: # value.
1303: ac_cache_corrupted=false
1304: for ac_var in `(set) 2>&1 |
1.86 paf 1305: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.62 paf 1306: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307: eval ac_new_set=\$ac_env_${ac_var}_set
1308: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309: eval ac_new_val="\$ac_env_${ac_var}_value"
1310: case $ac_old_set,$ac_new_set in
1311: set,)
1312: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314: ac_cache_corrupted=: ;;
1315: ,set)
1316: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318: ac_cache_corrupted=: ;;
1319: ,);;
1320: *)
1321: if test "x$ac_old_val" != "x$ac_new_val"; then
1.86 paf 1322: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.62 paf 1323: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.86 paf 1324: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.62 paf 1325: echo "$as_me: former value: $ac_old_val" >&2;}
1.86 paf 1326: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.62 paf 1327: echo "$as_me: current value: $ac_new_val" >&2;}
1.86 paf 1328: ac_cache_corrupted=:
1.62 paf 1329: fi;;
1330: esac
1331: # Pass precious variables to config.status.
1332: if test "$ac_new_set" = set; then
1333: case $ac_new_val in
1334: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336: *) ac_arg=$ac_var=$ac_new_val ;;
1337: esac
1338: case " $ac_configure_args " in
1339: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1340: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341: esac
1342: fi
1343: done
1344: if $ac_cache_corrupted; then
1345: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349: { (exit 1); exit 1; }; }
1.1 paf 1350: fi
1351:
1352: ac_ext=c
1353: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1354: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357:
1358:
1359:
1360:
1361:
1362:
1363:
1364:
1365:
1366:
1367:
1.1 paf 1368:
1369:
1.62 paf 1370:
1371:
1372:
1373:
1374:
1375:
1.63 paf 1376:
1377:
1.128 moko 1378:
1379:
1380:
1381:
1382:
1383:
1384:
1385:
1386:
1.86 paf 1387: am__api_version="1.9"
1.1 paf 1388: ac_aux_dir=
1389: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390: if test -f $ac_dir/install-sh; then
1391: ac_aux_dir=$ac_dir
1392: ac_install_sh="$ac_aux_dir/install-sh -c"
1393: break
1394: elif 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
1.62 paf 1398: elif test -f $ac_dir/shtool; then
1399: ac_aux_dir=$ac_dir
1400: ac_install_sh="$ac_aux_dir/shtool install -c"
1401: break
1.1 paf 1402: fi
1403: done
1404: if test -z "$ac_aux_dir"; then
1.62 paf 1405: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407: { (exit 1); exit 1; }; }
1408: fi
1409: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1412:
1413: # Find a good install program. We prefer a C program (faster),
1414: # so one script is as good as another. But avoid the broken or
1415: # incompatible versions:
1416: # SysV /etc/install, /usr/sbin/install
1417: # SunOS /usr/etc/install
1418: # IRIX /sbin/install
1419: # AIX /bin/install
1.62 paf 1420: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1421: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1422: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1423: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1424: # OS/2's system install, which has a completely different semantic
1.1 paf 1425: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1426: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1427: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1428: if test -z "$INSTALL"; then
1.62 paf 1429: if test "${ac_cv_path_install+set}" = set; then
1430: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1431: else
1.62 paf 1432: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1433: for as_dir in $PATH
1434: do
1435: IFS=$as_save_IFS
1436: test -z "$as_dir" && as_dir=.
1437: # Account for people who put trailing slashes in PATH elements.
1438: case $as_dir/ in
1439: ./ | .// | /cC/* | \
1440: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1441: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1442: /usr/ucb/* ) ;;
1443: *)
1444: # OSF1 and SCO ODT 3.0 have their own names for install.
1445: # Don't use installbsd from OSF since it installs stuff as root
1446: # by default.
1447: for ac_prog in ginstall scoinst install; do
1448: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1449: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1450: if test $ac_prog = install &&
1451: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1452: # AIX install. It has an incompatible calling convention.
1453: :
1454: elif test $ac_prog = install &&
1455: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1456: # program-specific install script used by HP pwplus--don't use.
1457: :
1458: else
1459: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1460: break 3
1461: fi
1462: fi
1.1 paf 1463: done
1.62 paf 1464: done
1465: ;;
1466: esac
1467: done
1468:
1.1 paf 1469:
1470: fi
1471: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1472: INSTALL=$ac_cv_path_install
1.1 paf 1473: else
1474: # As a last resort, use the slow shell script. We don't cache a
1475: # path for INSTALL within a source directory, because that will
1476: # break other packages using the cache if that directory is
1477: # removed, or if the path is relative.
1.62 paf 1478: INSTALL=$ac_install_sh
1.1 paf 1479: fi
1480: fi
1.62 paf 1481: echo "$as_me:$LINENO: result: $INSTALL" >&5
1482: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1483:
1484: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1485: # It thinks the first close brace ends the variable substitution.
1486: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1487:
1.62 paf 1488: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1489:
1490: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1491:
1.62 paf 1492: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1493: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1494: # Just in case
1495: sleep 1
1.62 paf 1496: echo timestamp > conftest.file
1.1 paf 1497: # Do `set' in a subshell so we don't clobber the current shell's
1498: # arguments. Must try -L first in case configure is actually a
1499: # symlink; some systems play weird games with the mod time of symlinks
1500: # (eg FreeBSD returns the mod time of the symlink's containing
1501: # directory).
1502: if (
1.62 paf 1503: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1504: if test "$*" = "X"; then
1505: # -L didn't work.
1.62 paf 1506: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1507: fi
1.62 paf 1508: rm -f conftest.file
1509: if test "$*" != "X $srcdir/configure conftest.file" \
1510: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1511:
1512: # If neither matched, then we have a broken ls. This can happen
1513: # if, for instance, CONFIG_SHELL is bash and it inherits a
1514: # broken ls alias from the environment. This has actually
1515: # happened. Such a system could not be considered "sane".
1.62 paf 1516: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1517: alias in your environment" >&5
1518: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1519: alias in your environment" >&2;}
1520: { (exit 1); exit 1; }; }
1.1 paf 1521: fi
1522:
1.62 paf 1523: test "$2" = conftest.file
1.1 paf 1524: )
1525: then
1526: # Ok.
1527: :
1528: else
1.62 paf 1529: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1530: Check your system clock" >&5
1531: echo "$as_me: error: newly created file is older than distributed files!
1532: Check your system clock" >&2;}
1533: { (exit 1); exit 1; }; }
1.1 paf 1534: fi
1.62 paf 1535: echo "$as_me:$LINENO: result: yes" >&5
1536: echo "${ECHO_T}yes" >&6
1.1 paf 1537: test "$program_prefix" != NONE &&
1.62 paf 1538: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1539: # Use a double $ so make ignores it.
1540: test "$program_suffix" != NONE &&
1.62 paf 1541: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1542: # Double any \ or $. echo might interpret backslashes.
1543: # By default was `s,x,x', remove it if useless.
1544: cat <<\_ACEOF >conftest.sed
1545: s/[\\$]/&&/g;s/;s,x,x,$//
1546: _ACEOF
1547: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1548: rm conftest.sed
1549:
1550: # expand $ac_aux_dir to an absolute path
1551: am_aux_dir=`cd $ac_aux_dir && pwd`
1552:
1553: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1554: # Use eval to expand $SHELL
1555: if eval "$MISSING --run true"; then
1556: am_missing_run="$MISSING --run "
1557: else
1558: am_missing_run=
1559: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1560: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1561: fi
1562:
1.86 paf 1563: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1564: # We used to keeping the `.' as first argument, in order to
1565: # allow $(mkdir_p) to be used without argument. As in
1566: # $(mkdir_p) $(somedir)
1567: # where $(somedir) is conditionally defined. However this is wrong
1568: # for two reasons:
1569: # 1. if the package is installed by a user who cannot write `.'
1570: # make install will fail,
1571: # 2. the above comment should most certainly read
1572: # $(mkdir_p) $(DESTDIR)$(somedir)
1573: # so it does not work when $(somedir) is undefined and
1574: # $(DESTDIR) is not.
1575: # To support the latter case, we have to write
1576: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1577: # so the `.' trick is pointless.
1578: mkdir_p='mkdir -p --'
1579: else
1580: # On NextStep and OpenStep, the `mkdir' command does not
1581: # recognize any option. It will interpret all options as
1582: # directories to create, and then abort because `.' already
1583: # exists.
1584: for d in ./-p ./--version;
1585: do
1586: test -d $d && rmdir $d
1587: done
1588: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1589: if test -f "$ac_aux_dir/mkinstalldirs"; then
1590: mkdir_p='$(mkinstalldirs)'
1591: else
1592: mkdir_p='$(install_sh) -d'
1593: fi
1594: fi
1595:
1.62 paf 1596: for ac_prog in gawk mawk nawk awk
1597: do
1598: # Extract the first word of "$ac_prog", so it can be a program name with args.
1599: set dummy $ac_prog; ac_word=$2
1600: echo "$as_me:$LINENO: checking for $ac_word" >&5
1601: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602: if test "${ac_cv_prog_AWK+set}" = set; then
1603: echo $ECHO_N "(cached) $ECHO_C" >&6
1604: else
1605: if test -n "$AWK"; then
1606: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1607: else
1608: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609: for as_dir in $PATH
1610: do
1611: IFS=$as_save_IFS
1612: test -z "$as_dir" && as_dir=.
1613: for ac_exec_ext in '' $ac_executable_extensions; do
1614: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615: ac_cv_prog_AWK="$ac_prog"
1616: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617: break 2
1618: fi
1619: done
1620: done
1621:
1622: fi
1623: fi
1624: AWK=$ac_cv_prog_AWK
1625: if test -n "$AWK"; then
1626: echo "$as_me:$LINENO: result: $AWK" >&5
1627: echo "${ECHO_T}$AWK" >&6
1628: else
1629: echo "$as_me:$LINENO: result: no" >&5
1630: echo "${ECHO_T}no" >&6
1631: fi
1.1 paf 1632:
1.62 paf 1633: test -n "$AWK" && break
1634: done
1.1 paf 1635:
1.62 paf 1636: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1637: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.86 paf 1638: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.62 paf 1639: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1640: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1641: else
1.62 paf 1642: cat >conftest.make <<\_ACEOF
1.1 paf 1643: all:
1.62 paf 1644: @echo 'ac_maketemp="$(MAKE)"'
1645: _ACEOF
1.1 paf 1646: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1647: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1648: if test -n "$ac_maketemp"; then
1649: eval ac_cv_prog_make_${ac_make}_set=yes
1650: else
1651: eval ac_cv_prog_make_${ac_make}_set=no
1652: fi
1.62 paf 1653: rm -f conftest.make
1.1 paf 1654: fi
1655: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1656: echo "$as_me:$LINENO: result: yes" >&5
1657: echo "${ECHO_T}yes" >&6
1.1 paf 1658: SET_MAKE=
1659: else
1.62 paf 1660: echo "$as_me:$LINENO: result: no" >&5
1661: echo "${ECHO_T}no" >&6
1.1 paf 1662: SET_MAKE="MAKE=${MAKE-make}"
1663: fi
1664:
1.86 paf 1665: rm -rf .tst 2>/dev/null
1666: mkdir .tst 2>/dev/null
1667: if test -d .tst; then
1668: am__leading_dot=.
1669: else
1670: am__leading_dot=_
1671: fi
1672: rmdir .tst 2>/dev/null
1673:
1674: # test to see if srcdir already configured
1.62 paf 1675: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1676: test -f $srcdir/config.status; then
1677: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1678: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1679: { (exit 1); exit 1; }; }
1680: fi
1681:
1682: # test whether we have cygpath
1683: if test -z "$CYGPATH_W"; then
1684: if (cygpath --version) >/dev/null 2>/dev/null; then
1685: CYGPATH_W='cygpath -w'
1686: else
1687: CYGPATH_W=echo
1688: fi
1689: fi
1690:
1691:
1692: # Define the identity of the package.
1.128 moko 1693: PACKAGE='parser'
1694: VERSION='3.4.2b'
1695:
1696:
1697: cat >>confdefs.h <<_ACEOF
1698: #define PACKAGE "$PACKAGE"
1699: _ACEOF
1.1 paf 1700:
1701:
1.128 moko 1702: cat >>confdefs.h <<_ACEOF
1703: #define VERSION "$VERSION"
1704: _ACEOF
1705:
1.62 paf 1706: # Some tools Automake needs.
1707:
1708: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1709:
1710:
1711: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1712:
1713:
1714: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1715:
1716:
1717: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1718:
1719:
1720: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1721:
1.62 paf 1722: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1723:
1.62 paf 1724: # Installed binaries are usually stripped using `strip' when the user
1725: # run `make install-strip'. However `strip' might not be the right
1726: # tool to use in cross-compilation environments, therefore Automake
1727: # will honor the `STRIP' environment variable to overrule this program.
1728: if test "$cross_compiling" != no; then
1729: if test -n "$ac_tool_prefix"; then
1730: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1731: set dummy ${ac_tool_prefix}strip; ac_word=$2
1732: echo "$as_me:$LINENO: checking for $ac_word" >&5
1733: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734: if test "${ac_cv_prog_STRIP+set}" = set; then
1735: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1736: else
1.62 paf 1737: if test -n "$STRIP"; then
1738: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1739: else
1740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741: for as_dir in $PATH
1742: do
1743: IFS=$as_save_IFS
1744: test -z "$as_dir" && as_dir=.
1745: for ac_exec_ext in '' $ac_executable_extensions; do
1746: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1748: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749: break 2
1750: fi
1751: done
1752: done
1753:
1754: fi
1755: fi
1756: STRIP=$ac_cv_prog_STRIP
1757: if test -n "$STRIP"; then
1758: echo "$as_me:$LINENO: result: $STRIP" >&5
1759: echo "${ECHO_T}$STRIP" >&6
1760: else
1761: echo "$as_me:$LINENO: result: no" >&5
1762: echo "${ECHO_T}no" >&6
1.1 paf 1763: fi
1764:
1.62 paf 1765: fi
1766: if test -z "$ac_cv_prog_STRIP"; then
1767: ac_ct_STRIP=$STRIP
1768: # Extract the first word of "strip", so it can be a program name with args.
1769: set dummy strip; ac_word=$2
1770: echo "$as_me:$LINENO: checking for $ac_word" >&5
1771: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1773: echo $ECHO_N "(cached) $ECHO_C" >&6
1774: else
1775: if test -n "$ac_ct_STRIP"; then
1776: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1777: else
1.62 paf 1778: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779: for as_dir in $PATH
1780: do
1781: IFS=$as_save_IFS
1782: test -z "$as_dir" && as_dir=.
1783: for ac_exec_ext in '' $ac_executable_extensions; do
1784: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785: ac_cv_prog_ac_ct_STRIP="strip"
1786: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787: break 2
1788: fi
1789: done
1790: done
1791:
1792: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1793: fi
1.1 paf 1794: fi
1.62 paf 1795: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1796: if test -n "$ac_ct_STRIP"; then
1797: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1798: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1799: else
1.62 paf 1800: echo "$as_me:$LINENO: result: no" >&5
1801: echo "${ECHO_T}no" >&6
1.1 paf 1802: fi
1803:
1.62 paf 1804: STRIP=$ac_ct_STRIP
1.1 paf 1805: else
1.62 paf 1806: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1807: fi
1808:
1809: fi
1.62 paf 1810: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1811:
1812: # We need awk for the "check" target. The system "awk" is bad on
1813: # some platforms.
1.86 paf 1814: # Always define AMTAR for backward compatibility.
1815:
1816: AMTAR=${AMTAR-"${am_missing_run}tar"}
1817:
1818: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1819:
1820:
1.62 paf 1821:
1.1 paf 1822:
1823:
1824:
1.128 moko 1825:
1.12 paf 1826: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1827:
1828:
1.128 moko 1829:
1.41 paf 1830: # Make sure we can run config.sub.
1.62 paf 1831: $ac_config_sub sun4 >/dev/null 2>&1 ||
1832: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1833: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1834: { (exit 1); exit 1; }; }
1835:
1836: echo "$as_me:$LINENO: checking build system type" >&5
1837: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1838: if test "${ac_cv_build+set}" = set; then
1839: echo $ECHO_N "(cached) $ECHO_C" >&6
1840: else
1841: ac_cv_build_alias=$build_alias
1842: test -z "$ac_cv_build_alias" &&
1843: ac_cv_build_alias=`$ac_config_guess`
1844: test -z "$ac_cv_build_alias" &&
1845: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1846: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1847: { (exit 1); exit 1; }; }
1848: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1849: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1850: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1851: { (exit 1); exit 1; }; }
1852:
1853: fi
1854: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1855: echo "${ECHO_T}$ac_cv_build" >&6
1856: build=$ac_cv_build
1857: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1858: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1859: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1860:
1861:
1862: echo "$as_me:$LINENO: checking host system type" >&5
1863: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1864: if test "${ac_cv_host+set}" = set; then
1865: echo $ECHO_N "(cached) $ECHO_C" >&6
1866: else
1867: ac_cv_host_alias=$host_alias
1868: test -z "$ac_cv_host_alias" &&
1869: ac_cv_host_alias=$ac_cv_build_alias
1870: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1871: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1872: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1873: { (exit 1); exit 1; }; }
1874:
1875: fi
1876: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1877: echo "${ECHO_T}$ac_cv_host" >&6
1878: host=$ac_cv_host
1879: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1880: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1881: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.81 paf 1882:
1883:
1884:
1885: PARSER_VERSION="$VERSION (compiled on $host)"
1886: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1887: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1888: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1889: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1890: if test $? -ne 0 ; then
1891: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1892: echo Updated $srcdir/src/include/pa_version.h
1893: else
1894: rm -f $srcdir/src/include/pa_version.h.new
1895: fi
1896:
1.41 paf 1897:
1.67 paf 1898: case $host_os in
1899: *cygwin* )
1900: cat >>confdefs.h <<\_ACEOF
1901: #define CYGWIN
1902: _ACEOF
1903: ;;
1904: esac
1.41 paf 1905:
1.128 moko 1906:
1.1 paf 1907: # Find a good install program. We prefer a C program (faster),
1908: # so one script is as good as another. But avoid the broken or
1909: # incompatible versions:
1910: # SysV /etc/install, /usr/sbin/install
1911: # SunOS /usr/etc/install
1912: # IRIX /sbin/install
1913: # AIX /bin/install
1.62 paf 1914: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1915: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1916: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1917: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 1918: # OS/2's system install, which has a completely different semantic
1.1 paf 1919: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1920: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1921: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1922: if test -z "$INSTALL"; then
1.62 paf 1923: if test "${ac_cv_path_install+set}" = set; then
1924: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1925: else
1.62 paf 1926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927: for as_dir in $PATH
1928: do
1929: IFS=$as_save_IFS
1930: test -z "$as_dir" && as_dir=.
1931: # Account for people who put trailing slashes in PATH elements.
1932: case $as_dir/ in
1933: ./ | .// | /cC/* | \
1934: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.86 paf 1935: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.62 paf 1936: /usr/ucb/* ) ;;
1937: *)
1938: # OSF1 and SCO ODT 3.0 have their own names for install.
1939: # Don't use installbsd from OSF since it installs stuff as root
1940: # by default.
1941: for ac_prog in ginstall scoinst install; do
1942: for ac_exec_ext in '' $ac_executable_extensions; do
1.86 paf 1943: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1944: if test $ac_prog = install &&
1945: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1946: # AIX install. It has an incompatible calling convention.
1947: :
1948: elif test $ac_prog = install &&
1949: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1950: # program-specific install script used by HP pwplus--don't use.
1951: :
1952: else
1953: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1954: break 3
1955: fi
1956: fi
1.1 paf 1957: done
1.62 paf 1958: done
1959: ;;
1960: esac
1961: done
1962:
1.1 paf 1963:
1964: fi
1965: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1966: INSTALL=$ac_cv_path_install
1.1 paf 1967: else
1968: # As a last resort, use the slow shell script. We don't cache a
1969: # path for INSTALL within a source directory, because that will
1970: # break other packages using the cache if that directory is
1971: # removed, or if the path is relative.
1.62 paf 1972: INSTALL=$ac_install_sh
1.1 paf 1973: fi
1974: fi
1.62 paf 1975: echo "$as_me:$LINENO: result: $INSTALL" >&5
1976: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1977:
1978: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1979: # It thinks the first close brace ends the variable substitution.
1980: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1981:
1.62 paf 1982: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1983:
1984: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1985:
1.62 paf 1986: for ac_prog in gawk mawk nawk awk
1.41 paf 1987: do
1.62 paf 1988: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 1989: set dummy $ac_prog; ac_word=$2
1.62 paf 1990: echo "$as_me:$LINENO: checking for $ac_word" >&5
1991: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992: if test "${ac_cv_prog_AWK+set}" = set; then
1993: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1994: else
1995: if test -n "$AWK"; then
1996: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1997: else
1.62 paf 1998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999: for as_dir in $PATH
2000: do
2001: IFS=$as_save_IFS
2002: test -z "$as_dir" && as_dir=.
2003: for ac_exec_ext in '' $ac_executable_extensions; do
2004: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005: ac_cv_prog_AWK="$ac_prog"
2006: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007: break 2
2008: fi
2009: done
2010: done
2011:
1.41 paf 2012: fi
2013: fi
1.62 paf 2014: AWK=$ac_cv_prog_AWK
1.41 paf 2015: if test -n "$AWK"; then
1.62 paf 2016: echo "$as_me:$LINENO: result: $AWK" >&5
2017: echo "${ECHO_T}$AWK" >&6
1.41 paf 2018: else
1.62 paf 2019: echo "$as_me:$LINENO: result: no" >&5
2020: echo "${ECHO_T}no" >&6
1.41 paf 2021: fi
2022:
1.62 paf 2023: test -n "$AWK" && break
1.41 paf 2024: done
2025:
2026:
2027: for ac_prog in 'bison -y' byacc
2028: do
1.62 paf 2029: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2030: set dummy $ac_prog; ac_word=$2
1.62 paf 2031: echo "$as_me:$LINENO: checking for $ac_word" >&5
2032: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033: if test "${ac_cv_prog_YACC+set}" = set; then
2034: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2035: else
2036: if test -n "$YACC"; then
2037: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2038: else
1.62 paf 2039: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040: for as_dir in $PATH
2041: do
2042: IFS=$as_save_IFS
2043: test -z "$as_dir" && as_dir=.
2044: for ac_exec_ext in '' $ac_executable_extensions; do
2045: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046: ac_cv_prog_YACC="$ac_prog"
2047: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048: break 2
2049: fi
2050: done
2051: done
2052:
1.41 paf 2053: fi
2054: fi
1.62 paf 2055: YACC=$ac_cv_prog_YACC
1.41 paf 2056: if test -n "$YACC"; then
1.62 paf 2057: echo "$as_me:$LINENO: result: $YACC" >&5
2058: echo "${ECHO_T}$YACC" >&6
1.41 paf 2059: else
1.62 paf 2060: echo "$as_me:$LINENO: result: no" >&5
2061: echo "${ECHO_T}no" >&6
1.41 paf 2062: fi
2063:
1.62 paf 2064: test -n "$YACC" && break
1.41 paf 2065: done
2066: test -n "$YACC" || YACC="yacc"
2067:
2068: if test "$YACC" != "bison -y"; then
1.67 paf 2069: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
1.62 paf 2070: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2071: else
1.67 paf 2072: echo "$as_me:$LINENO: checking bison version" >&5
1.62 paf 2073: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.67 paf 2074: oldIFS=$IFS; IFS=.
2075: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
2076: IFS=$oldIFS
2077: if test "$1" = "1" -a "$2" -lt "25"; then
2078: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
1.62 paf 2079: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 2080: fi
2081: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
1.62 paf 2082: echo "${ECHO_T}$1.$2 (ok)" >&6
2083: fi
2084:
1.66 paf 2085: ac_ext=cc
2086: ac_cpp='$CXXCPP $CPPFLAGS'
2087: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.62 paf 2090: if test -n "$ac_tool_prefix"; then
1.66 paf 2091: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2092: do
2093: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.62 paf 2095: echo "$as_me:$LINENO: checking for $ac_word" >&5
2096: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2097: if test "${ac_cv_prog_CXX+set}" = set; then
1.62 paf 2098: echo $ECHO_N "(cached) $ECHO_C" >&6
2099: else
1.66 paf 2100: if test -n "$CXX"; then
2101: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 2102: else
2103: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104: for as_dir in $PATH
2105: do
2106: IFS=$as_save_IFS
2107: test -z "$as_dir" && as_dir=.
2108: for ac_exec_ext in '' $ac_executable_extensions; do
2109: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2110: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.62 paf 2111: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112: break 2
2113: fi
2114: done
2115: done
2116:
2117: fi
2118: fi
1.66 paf 2119: CXX=$ac_cv_prog_CXX
2120: if test -n "$CXX"; then
2121: echo "$as_me:$LINENO: result: $CXX" >&5
2122: echo "${ECHO_T}$CXX" >&6
1.62 paf 2123: else
2124: echo "$as_me:$LINENO: result: no" >&5
2125: echo "${ECHO_T}no" >&6
1.41 paf 2126: fi
2127:
1.66 paf 2128: test -n "$CXX" && break
2129: done
1.62 paf 2130: fi
1.66 paf 2131: if test -z "$CXX"; then
2132: ac_ct_CXX=$CXX
2133: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2134: do
2135: # Extract the first word of "$ac_prog", so it can be a program name with args.
2136: set dummy $ac_prog; ac_word=$2
1.62 paf 2137: echo "$as_me:$LINENO: checking for $ac_word" >&5
2138: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 2139: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.62 paf 2140: echo $ECHO_N "(cached) $ECHO_C" >&6
2141: else
1.66 paf 2142: if test -n "$ac_ct_CXX"; then
2143: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 2144: else
2145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146: for as_dir in $PATH
2147: do
2148: IFS=$as_save_IFS
2149: test -z "$as_dir" && as_dir=.
2150: for ac_exec_ext in '' $ac_executable_extensions; do
2151: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 2152: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.62 paf 2153: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154: break 2
2155: fi
2156: done
2157: done
2158:
2159: fi
2160: fi
1.66 paf 2161: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2162: if test -n "$ac_ct_CXX"; then
2163: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2164: echo "${ECHO_T}$ac_ct_CXX" >&6
1.62 paf 2165: else
2166: echo "$as_me:$LINENO: result: no" >&5
2167: echo "${ECHO_T}no" >&6
2168: fi
2169:
1.66 paf 2170: test -n "$ac_ct_CXX" && break
2171: done
2172: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2173:
2174: CXX=$ac_ct_CXX
1.62 paf 2175: fi
2176:
1.66 paf 2177:
2178: # Provide some information about the compiler.
2179: echo "$as_me:$LINENO:" \
2180: "checking for C++ compiler version" >&5
2181: ac_compiler=`set X $ac_compile; echo $2`
2182: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2183: (eval $ac_compiler --version </dev/null >&5) 2>&5
2184: ac_status=$?
2185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186: (exit $ac_status); }
2187: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2188: (eval $ac_compiler -v </dev/null >&5) 2>&5
2189: ac_status=$?
2190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191: (exit $ac_status); }
2192: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2193: (eval $ac_compiler -V </dev/null >&5) 2>&5
2194: ac_status=$?
2195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196: (exit $ac_status); }
2197:
2198: cat >conftest.$ac_ext <<_ACEOF
2199: /* confdefs.h. */
2200: _ACEOF
2201: cat confdefs.h >>conftest.$ac_ext
2202: cat >>conftest.$ac_ext <<_ACEOF
2203: /* end confdefs.h. */
2204:
2205: int
2206: main ()
2207: {
2208:
2209: ;
2210: return 0;
2211: }
2212: _ACEOF
2213: ac_clean_files_save=$ac_clean_files
2214: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2215: # Try to create an executable without -o first, disregard a.out.
2216: # It will help us diagnose broken compilers, and finding out an intuition
2217: # of exeext.
1.86 paf 2218: echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2219: echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1.66 paf 2220: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2221: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2222: (eval $ac_link_default) 2>&5
2223: ac_status=$?
2224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225: (exit $ac_status); }; then
2226: # Find the output, starting from the most likely. This scheme is
2227: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2228: # resort.
2229:
2230: # Be careful to initialize this variable, since it used to be cached.
2231: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2232: ac_cv_exeext=
2233: # b.out is created by i960 compilers.
2234: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.62 paf 2235: do
1.66 paf 2236: test -f "$ac_file" || continue
2237: case $ac_file in
2238: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.86 paf 2239: ;;
1.66 paf 2240: conftest.$ac_ext )
1.86 paf 2241: # This is the source file.
2242: ;;
1.66 paf 2243: [ab].out )
1.86 paf 2244: # We found the default executable, but exeext='' is most
2245: # certainly right.
2246: break;;
1.66 paf 2247: *.* )
1.86 paf 2248: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249: # FIXME: I believe we export ac_cv_exeext for Libtool,
2250: # but it would be cool to find out if it's true. Does anybody
2251: # maintain Libtool? --akim.
2252: export ac_cv_exeext
2253: break;;
1.66 paf 2254: * )
1.86 paf 2255: break;;
1.66 paf 2256: esac
1.62 paf 2257: done
1.66 paf 2258: else
2259: echo "$as_me: failed program was:" >&5
2260: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 2261:
1.66 paf 2262: { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2263: See \`config.log' for more details." >&5
2264: echo "$as_me: error: C++ compiler cannot create executables
2265: See \`config.log' for more details." >&2;}
2266: { (exit 77); exit 77; }; }
1.1 paf 2267: fi
1.66 paf 2268:
2269: ac_exeext=$ac_cv_exeext
2270: echo "$as_me:$LINENO: result: $ac_file" >&5
2271: echo "${ECHO_T}$ac_file" >&6
2272:
2273: # Check the compiler produces executables we can run. If not, either
2274: # the compiler is broken, or we cross compile.
2275: echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2276: echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2277: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2278: # If not cross compiling, check that we can run a simple program.
2279: if test "$cross_compiling" != yes; then
2280: if { ac_try='./$ac_file'
2281: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282: (eval $ac_try) 2>&5
2283: ac_status=$?
2284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285: (exit $ac_status); }; }; then
2286: cross_compiling=no
2287: else
2288: if test "$cross_compiling" = maybe; then
2289: cross_compiling=yes
2290: else
2291: { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2292: If you meant to cross compile, use \`--host'.
2293: See \`config.log' for more details." >&5
2294: echo "$as_me: error: cannot run C++ compiled programs.
2295: If you meant to cross compile, use \`--host'.
2296: See \`config.log' for more details." >&2;}
2297: { (exit 1); exit 1; }; }
2298: fi
2299: fi
1.1 paf 2300: fi
1.66 paf 2301: echo "$as_me:$LINENO: result: yes" >&5
2302: echo "${ECHO_T}yes" >&6
1.62 paf 2303:
1.66 paf 2304: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2305: ac_clean_files=$ac_clean_files_save
2306: # Check the compiler produces executables we can run. If not, either
1.62 paf 2307: # the compiler is broken, or we cross compile.
2308: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2309: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2310: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2311: echo "${ECHO_T}$cross_compiling" >&6
2312:
2313: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2314: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2315: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316: (eval $ac_link) 2>&5
2317: ac_status=$?
2318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319: (exit $ac_status); }; then
2320: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2322: # work properly (i.e., refer to `conftest.exe'), while it won't with
2323: # `rm'.
2324: for ac_file in conftest.exe conftest conftest.*; do
2325: test -f "$ac_file" || continue
2326: case $ac_file in
2327: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2328: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 2329: export ac_cv_exeext
2330: break;;
1.62 paf 2331: * ) break;;
2332: esac
2333: done
2334: else
2335: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2336: See \`config.log' for more details." >&5
2337: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2338: See \`config.log' for more details." >&2;}
2339: { (exit 1); exit 1; }; }
2340: fi
2341:
2342: rm -f conftest$ac_cv_exeext
2343: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344: echo "${ECHO_T}$ac_cv_exeext" >&6
2345:
2346: rm -f conftest.$ac_ext
2347: EXEEXT=$ac_cv_exeext
2348: ac_exeext=$EXEEXT
2349: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351: if test "${ac_cv_objext+set}" = set; then
2352: echo $ECHO_N "(cached) $ECHO_C" >&6
2353: else
2354: cat >conftest.$ac_ext <<_ACEOF
2355: /* confdefs.h. */
2356: _ACEOF
2357: cat confdefs.h >>conftest.$ac_ext
2358: cat >>conftest.$ac_ext <<_ACEOF
2359: /* end confdefs.h. */
2360:
2361: int
2362: main ()
2363: {
2364:
2365: ;
2366: return 0;
2367: }
2368: _ACEOF
2369: rm -f conftest.o conftest.obj
2370: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371: (eval $ac_compile) 2>&5
2372: ac_status=$?
2373: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374: (exit $ac_status); }; then
2375: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2376: case $ac_file in
2377: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2378: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2379: break;;
2380: esac
2381: done
2382: else
2383: echo "$as_me: failed program was:" >&5
2384: sed 's/^/| /' conftest.$ac_ext >&5
2385:
2386: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387: See \`config.log' for more details." >&5
2388: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389: See \`config.log' for more details." >&2;}
2390: { (exit 1); exit 1; }; }
2391: fi
2392:
2393: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394: fi
1.66 paf 2395: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396: echo "${ECHO_T}$ac_cv_objext" >&6
2397: OBJEXT=$ac_cv_objext
2398: ac_objext=$OBJEXT
2399: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2400: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2401: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.62 paf 2402: echo $ECHO_N "(cached) $ECHO_C" >&6
2403: else
1.66 paf 2404: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 2405: /* confdefs.h. */
2406: _ACEOF
2407: cat confdefs.h >>conftest.$ac_ext
2408: cat >>conftest.$ac_ext <<_ACEOF
2409: /* end confdefs.h. */
1.66 paf 2410:
1.62 paf 2411: int
2412: main ()
2413: {
1.66 paf 2414: #ifndef __GNUC__
2415: choke me
2416: #endif
2417:
1.62 paf 2418: ;
2419: return 0;
2420: }
2421: _ACEOF
1.66 paf 2422: rm -f conftest.$ac_objext
1.62 paf 2423: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2424: (eval $ac_compile) 2>conftest.er1
1.62 paf 2425: ac_status=$?
1.86 paf 2426: grep -v '^ *+' conftest.er1 >conftest.err
2427: rm -f conftest.er1
2428: cat conftest.err >&5
1.62 paf 2429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430: (exit $ac_status); } &&
1.86 paf 2431: { ac_try='test -z "$ac_cxx_werror_flag"
2432: || test ! -s conftest.err'
2433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434: (eval $ac_try) 2>&5
2435: ac_status=$?
2436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437: (exit $ac_status); }; } &&
2438: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440: (eval $ac_try) 2>&5
2441: ac_status=$?
2442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443: (exit $ac_status); }; }; then
1.66 paf 2444: ac_compiler_gnu=yes
1.62 paf 2445: else
2446: echo "$as_me: failed program was:" >&5
2447: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2448:
1.66 paf 2449: ac_compiler_gnu=no
1.1 paf 2450: fi
1.86 paf 2451: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2452: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 paf 2453:
2454: fi
1.66 paf 2455: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2456: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2457: GXX=`test $ac_compiler_gnu = yes && echo yes`
2458: ac_test_CXXFLAGS=${CXXFLAGS+set}
2459: ac_save_CXXFLAGS=$CXXFLAGS
2460: CXXFLAGS="-g"
2461: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2462: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2463: if test "${ac_cv_prog_cxx_g+set}" = set; then
2464: echo $ECHO_N "(cached) $ECHO_C" >&6
2465: else
2466: cat >conftest.$ac_ext <<_ACEOF
2467: /* confdefs.h. */
2468: _ACEOF
2469: cat confdefs.h >>conftest.$ac_ext
2470: cat >>conftest.$ac_ext <<_ACEOF
2471: /* end confdefs.h. */
1.1 paf 2472:
1.66 paf 2473: int
2474: main ()
2475: {
1.1 paf 2476:
1.66 paf 2477: ;
2478: return 0;
2479: }
1.62 paf 2480: _ACEOF
2481: rm -f conftest.$ac_objext
2482: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2483: (eval $ac_compile) 2>conftest.er1
1.62 paf 2484: ac_status=$?
1.86 paf 2485: grep -v '^ *+' conftest.er1 >conftest.err
2486: rm -f conftest.er1
2487: cat conftest.err >&5
1.62 paf 2488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489: (exit $ac_status); } &&
1.86 paf 2490: { ac_try='test -z "$ac_cxx_werror_flag"
2491: || test ! -s conftest.err'
2492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493: (eval $ac_try) 2>&5
2494: ac_status=$?
2495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496: (exit $ac_status); }; } &&
2497: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499: (eval $ac_try) 2>&5
2500: ac_status=$?
2501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502: (exit $ac_status); }; }; then
1.66 paf 2503: ac_cv_prog_cxx_g=yes
2504: else
2505: echo "$as_me: failed program was:" >&5
2506: sed 's/^/| /' conftest.$ac_ext >&5
2507:
2508: ac_cv_prog_cxx_g=no
2509: fi
1.86 paf 2510: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 2511: fi
2512: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2513: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2514: if test "$ac_test_CXXFLAGS" = set; then
2515: CXXFLAGS=$ac_save_CXXFLAGS
2516: elif test $ac_cv_prog_cxx_g = yes; then
2517: if test "$GXX" = yes; then
2518: CXXFLAGS="-g -O2"
2519: else
2520: CXXFLAGS="-g"
2521: fi
2522: else
2523: if test "$GXX" = yes; then
2524: CXXFLAGS="-O2"
2525: else
2526: CXXFLAGS=
2527: fi
2528: fi
2529: for ac_declaration in \
1.86 paf 2530: '' \
1.62 paf 2531: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2532: 'extern "C" void std::exit (int); using std::exit;' \
2533: 'extern "C" void exit (int) throw ();' \
2534: 'extern "C" void exit (int);' \
2535: 'void exit (int);'
1.1 paf 2536: do
1.62 paf 2537: cat >conftest.$ac_ext <<_ACEOF
2538: /* confdefs.h. */
2539: _ACEOF
2540: cat confdefs.h >>conftest.$ac_ext
2541: cat >>conftest.$ac_ext <<_ACEOF
2542: /* end confdefs.h. */
1.86 paf 2543: $ac_declaration
1.62 paf 2544: #include <stdlib.h>
2545: int
2546: main ()
2547: {
2548: exit (42);
2549: ;
2550: return 0;
2551: }
2552: _ACEOF
2553: rm -f conftest.$ac_objext
2554: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2555: (eval $ac_compile) 2>conftest.er1
1.62 paf 2556: ac_status=$?
1.86 paf 2557: grep -v '^ *+' conftest.er1 >conftest.err
2558: rm -f conftest.er1
2559: cat conftest.err >&5
1.62 paf 2560: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561: (exit $ac_status); } &&
1.86 paf 2562: { ac_try='test -z "$ac_cxx_werror_flag"
2563: || test ! -s conftest.err'
2564: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565: (eval $ac_try) 2>&5
2566: ac_status=$?
2567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568: (exit $ac_status); }; } &&
2569: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571: (eval $ac_try) 2>&5
2572: ac_status=$?
2573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574: (exit $ac_status); }; }; then
2575: :
1.1 paf 2576: else
1.62 paf 2577: echo "$as_me: failed program was:" >&5
2578: sed 's/^/| /' conftest.$ac_ext >&5
2579:
2580: continue
2581: fi
1.86 paf 2582: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2583: cat >conftest.$ac_ext <<_ACEOF
2584: /* confdefs.h. */
2585: _ACEOF
2586: cat confdefs.h >>conftest.$ac_ext
2587: cat >>conftest.$ac_ext <<_ACEOF
2588: /* end confdefs.h. */
2589: $ac_declaration
2590: int
2591: main ()
2592: {
2593: exit (42);
2594: ;
2595: return 0;
2596: }
2597: _ACEOF
2598: rm -f conftest.$ac_objext
2599: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 2600: (eval $ac_compile) 2>conftest.er1
1.62 paf 2601: ac_status=$?
1.86 paf 2602: grep -v '^ *+' conftest.er1 >conftest.err
2603: rm -f conftest.er1
2604: cat conftest.err >&5
1.62 paf 2605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606: (exit $ac_status); } &&
1.86 paf 2607: { ac_try='test -z "$ac_cxx_werror_flag"
2608: || test ! -s conftest.err'
2609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610: (eval $ac_try) 2>&5
2611: ac_status=$?
2612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613: (exit $ac_status); }; } &&
2614: { ac_try='test -s conftest.$ac_objext'
1.62 paf 2615: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616: (eval $ac_try) 2>&5
2617: ac_status=$?
2618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619: (exit $ac_status); }; }; then
2620: break
1.1 paf 2621: else
1.62 paf 2622: echo "$as_me: failed program was:" >&5
2623: sed 's/^/| /' conftest.$ac_ext >&5
2624:
1.1 paf 2625: fi
1.86 paf 2626: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 2627: done
2628: rm -f conftest*
2629: if test -n "$ac_declaration"; then
2630: echo '#ifdef __cplusplus' >>confdefs.h
2631: echo $ac_declaration >>confdefs.h
2632: echo '#endif' >>confdefs.h
1.1 paf 2633: fi
1.62 paf 2634:
2635: ac_ext=c
2636: ac_cpp='$CPP $CPPFLAGS'
2637: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 2640: DEPDIR="${am__leading_dot}deps"
1.62 paf 2641:
2642: ac_config_commands="$ac_config_commands depfiles"
2643:
2644:
2645: am_make=${MAKE-make}
2646: cat > confinc << 'END'
1.86 paf 2647: am__doit:
1.62 paf 2648: @echo done
1.86 paf 2649: .PHONY: am__doit
1.62 paf 2650: END
2651: # If we don't find an include directive, just comment out the code.
2652: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2653: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2654: am__include="#"
2655: am__quote=
2656: _am_result=none
2657: # First try GNU make style include.
2658: echo "include confinc" > confmf
2659: # We grep out `Entering directory' and `Leaving directory'
2660: # messages which can occur if `w' ends up in MAKEFLAGS.
2661: # In particular we don't look at `^make:' because GNU make might
2662: # be invoked under some other name (usually "gmake"), in which
2663: # case it prints its new name instead of `make'.
2664: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2665: am__include=include
2666: am__quote=
2667: _am_result=GNU
2668: fi
2669: # Now try BSD make style include.
2670: if test "$am__include" = "#"; then
2671: echo '.include "confinc"' > confmf
2672: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2673: am__include=.include
2674: am__quote="\""
2675: _am_result=BSD
2676: fi
2677: fi
2678:
2679:
2680: echo "$as_me:$LINENO: result: $_am_result" >&5
2681: echo "${ECHO_T}$_am_result" >&6
2682: rm -f confinc confmf
2683:
2684: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2685: if test "${enable_dependency_tracking+set}" = set; then
2686: enableval="$enable_dependency_tracking"
2687:
2688: fi;
2689: if test "x$enable_dependency_tracking" != xno; then
2690: am_depcomp="$ac_aux_dir/depcomp"
2691: AMDEPBACKSLASH='\'
1.1 paf 2692: fi
2693:
1.62 paf 2694:
2695: if test "x$enable_dependency_tracking" != xno; then
2696: AMDEP_TRUE=
2697: AMDEP_FALSE='#'
2698: else
2699: AMDEP_TRUE='#'
2700: AMDEP_FALSE=
2701: fi
1.1 paf 2702:
2703:
2704:
2705:
1.66 paf 2706: depcc="$CXX" am_compiler_list=
1.1 paf 2707:
1.62 paf 2708: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2709: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 2710: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.62 paf 2711: echo $ECHO_N "(cached) $ECHO_C" >&6
2712: else
2713: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2714: # We make a subdir and do the tests there. Otherwise we can end up
2715: # making bogus files that we don't know about and never remove. For
2716: # instance it was reported that on HP-UX the gcc test will end up
2717: # making a dummy file named `D' -- because `-MD' means `put the output
2718: # in D'.
2719: mkdir conftest.dir
2720: # Copy depcomp to subdir because otherwise we won't find it if we're
2721: # using a relative directory.
2722: cp "$am_depcomp" conftest.dir
2723: cd conftest.dir
1.86 paf 2724: # We will build objects and dependencies in a subdirectory because
2725: # it helps to detect inapplicable dependency modes. For instance
2726: # both Tru64's cc and ICC support -MD to output dependencies as a
2727: # side effect of compilation, but ICC will put the dependencies in
2728: # the current directory while Tru64 will put them in the object
2729: # directory.
2730: mkdir sub
1.1 paf 2731:
1.66 paf 2732: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 2733: if test "$am_compiler_list" = ""; then
2734: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 2735: fi
1.62 paf 2736: for depmode in $am_compiler_list; do
1.86 paf 2737: # Setup a source with many dependencies, because some compilers
2738: # like to wrap large dependency lists on column 80 (with \), and
2739: # we should not choose a depcomp mode which is confused by this.
2740: #
1.62 paf 2741: # We need to recreate these files for each test, as the compiler may
2742: # overwrite some of them when testing with obscure command lines.
2743: # This happens at least with the AIX C compiler.
1.86 paf 2744: : > sub/conftest.c
2745: for i in 1 2 3 4 5 6; do
2746: echo '#include "conftst'$i'.h"' >> sub/conftest.c
2747: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2748: # Solaris 8's {/usr,}/bin/sh.
2749: touch sub/conftst$i.h
2750: done
2751: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 2752:
2753: case $depmode in
2754: nosideeffect)
2755: # after this tag, mechanisms are not by side-effect, so they'll
2756: # only be used when explicitly requested
2757: if test "x$enable_dependency_tracking" = xyes; then
2758: continue
2759: else
2760: break
2761: fi
2762: ;;
2763: none) break ;;
2764: esac
2765: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2766: # mode. It turns out that the SunPro C++ compiler does not properly
2767: # handle `-M -o', and we need to detect this.
2768: if depmode=$depmode \
1.86 paf 2769: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2770: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2771: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2772: >/dev/null 2>conftest.err &&
2773: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2774: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 2775: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 2776: # icc doesn't choke on unknown options, it will just issue warnings
2777: # or remarks (even with -Werror). So we grep stderr for any message
2778: # that says an option was ignored or not supported.
2779: # When given -MP, icc 7.0 and 7.1 complain thusly:
2780: # icc: Command line warning: ignoring option '-M'; no argument required
2781: # The diagnosis changed in icc 8.0:
2782: # icc: Command line remark: option '-MP' not supported
2783: if (grep 'ignoring option' conftest.err ||
2784: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2785: am_cv_CXX_dependencies_compiler_type=$depmode
2786: break
2787: fi
1.66 paf 2788: fi
2789: done
2790:
2791: cd ..
2792: rm -rf conftest.dir
2793: else
2794: am_cv_CXX_dependencies_compiler_type=none
2795: fi
2796:
2797: fi
2798: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2799: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2800: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2801:
2802:
2803:
2804: if
2805: test "x$enable_dependency_tracking" != xno \
2806: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2807: am__fastdepCXX_TRUE=
2808: am__fastdepCXX_FALSE='#'
2809: else
2810: am__fastdepCXX_TRUE='#'
2811: am__fastdepCXX_FALSE=
2812: fi
2813:
2814:
2815: ac_ext=c
2816: ac_cpp='$CPP $CPPFLAGS'
2817: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820: if test -n "$ac_tool_prefix"; then
2821: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2822: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2823: echo "$as_me:$LINENO: checking for $ac_word" >&5
2824: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2825: if test "${ac_cv_prog_CC+set}" = set; then
2826: echo $ECHO_N "(cached) $ECHO_C" >&6
2827: else
2828: if test -n "$CC"; then
2829: ac_cv_prog_CC="$CC" # Let the user override the test.
2830: else
2831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832: for as_dir in $PATH
2833: do
2834: IFS=$as_save_IFS
2835: test -z "$as_dir" && as_dir=.
2836: for ac_exec_ext in '' $ac_executable_extensions; do
2837: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2838: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2839: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840: break 2
2841: fi
2842: done
2843: done
2844:
2845: fi
2846: fi
2847: CC=$ac_cv_prog_CC
2848: if test -n "$CC"; then
2849: echo "$as_me:$LINENO: result: $CC" >&5
2850: echo "${ECHO_T}$CC" >&6
2851: else
2852: echo "$as_me:$LINENO: result: no" >&5
2853: echo "${ECHO_T}no" >&6
2854: fi
2855:
2856: fi
2857: if test -z "$ac_cv_prog_CC"; then
2858: ac_ct_CC=$CC
2859: # Extract the first word of "gcc", so it can be a program name with args.
2860: set dummy gcc; ac_word=$2
2861: echo "$as_me:$LINENO: checking for $ac_word" >&5
2862: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864: echo $ECHO_N "(cached) $ECHO_C" >&6
2865: else
2866: if test -n "$ac_ct_CC"; then
2867: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868: else
2869: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870: for as_dir in $PATH
2871: do
2872: IFS=$as_save_IFS
2873: test -z "$as_dir" && as_dir=.
2874: for ac_exec_ext in '' $ac_executable_extensions; do
2875: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876: ac_cv_prog_ac_ct_CC="gcc"
2877: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878: break 2
2879: fi
2880: done
2881: done
2882:
2883: fi
2884: fi
2885: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2886: if test -n "$ac_ct_CC"; then
2887: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2888: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2889: else
1.66 paf 2890: echo "$as_me:$LINENO: result: no" >&5
2891: echo "${ECHO_T}no" >&6
1.62 paf 2892: fi
2893:
1.66 paf 2894: CC=$ac_ct_CC
2895: else
2896: CC="$ac_cv_prog_CC"
1.1 paf 2897: fi
1.62 paf 2898:
1.66 paf 2899: if test -z "$CC"; then
2900: if test -n "$ac_tool_prefix"; then
2901: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2902: set dummy ${ac_tool_prefix}cc; ac_word=$2
2903: echo "$as_me:$LINENO: checking for $ac_word" >&5
2904: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905: if test "${ac_cv_prog_CC+set}" = set; then
2906: echo $ECHO_N "(cached) $ECHO_C" >&6
2907: else
2908: if test -n "$CC"; then
2909: ac_cv_prog_CC="$CC" # Let the user override the test.
2910: else
2911: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912: for as_dir in $PATH
2913: do
2914: IFS=$as_save_IFS
2915: test -z "$as_dir" && as_dir=.
2916: for ac_exec_ext in '' $ac_executable_extensions; do
2917: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918: ac_cv_prog_CC="${ac_tool_prefix}cc"
2919: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920: break 2
2921: fi
2922: done
2923: done
1.62 paf 2924:
1.66 paf 2925: fi
2926: fi
2927: CC=$ac_cv_prog_CC
2928: if test -n "$CC"; then
2929: echo "$as_me:$LINENO: result: $CC" >&5
2930: echo "${ECHO_T}$CC" >&6
1.62 paf 2931: else
1.66 paf 2932: echo "$as_me:$LINENO: result: no" >&5
2933: echo "${ECHO_T}no" >&6
1.1 paf 2934: fi
2935:
1.66 paf 2936: fi
2937: if test -z "$ac_cv_prog_CC"; then
2938: ac_ct_CC=$CC
2939: # Extract the first word of "cc", so it can be a program name with args.
2940: set dummy cc; ac_word=$2
2941: echo "$as_me:$LINENO: checking for $ac_word" >&5
2942: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2944: echo $ECHO_N "(cached) $ECHO_C" >&6
2945: else
2946: if test -n "$ac_ct_CC"; then
2947: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2948: else
2949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950: for as_dir in $PATH
2951: do
2952: IFS=$as_save_IFS
2953: test -z "$as_dir" && as_dir=.
2954: for ac_exec_ext in '' $ac_executable_extensions; do
2955: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956: ac_cv_prog_ac_ct_CC="cc"
2957: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958: break 2
2959: fi
2960: done
2961: done
1.62 paf 2962:
1.66 paf 2963: fi
2964: fi
2965: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2966: if test -n "$ac_ct_CC"; then
2967: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2968: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2969: else
1.66 paf 2970: echo "$as_me:$LINENO: result: no" >&5
2971: echo "${ECHO_T}no" >&6
2972: fi
1.62 paf 2973:
1.66 paf 2974: CC=$ac_ct_CC
1.1 paf 2975: else
1.66 paf 2976: CC="$ac_cv_prog_CC"
2977: fi
1.62 paf 2978:
1.1 paf 2979: fi
1.66 paf 2980: if test -z "$CC"; then
2981: # Extract the first word of "cc", so it can be a program name with args.
2982: set dummy cc; ac_word=$2
2983: echo "$as_me:$LINENO: checking for $ac_word" >&5
2984: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985: if test "${ac_cv_prog_CC+set}" = set; then
2986: echo $ECHO_N "(cached) $ECHO_C" >&6
2987: else
2988: if test -n "$CC"; then
2989: ac_cv_prog_CC="$CC" # Let the user override the test.
2990: else
2991: ac_prog_rejected=no
2992: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993: for as_dir in $PATH
2994: do
2995: IFS=$as_save_IFS
2996: test -z "$as_dir" && as_dir=.
2997: for ac_exec_ext in '' $ac_executable_extensions; do
2998: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000: ac_prog_rejected=yes
3001: continue
3002: fi
3003: ac_cv_prog_CC="cc"
3004: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005: break 2
3006: fi
3007: done
1.62 paf 3008: done
3009:
1.66 paf 3010: if test $ac_prog_rejected = yes; then
3011: # We found a bogon in the path, so make sure we never use it.
3012: set dummy $ac_cv_prog_CC
3013: shift
3014: if test $# != 0; then
3015: # We chose a different compiler from the bogus one.
3016: # However, it has the same basename, so the bogon will be chosen
3017: # first if we set CC to just the basename; use the full file name.
3018: shift
3019: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3020: fi
3021: fi
3022: fi
3023: fi
3024: CC=$ac_cv_prog_CC
3025: if test -n "$CC"; then
3026: echo "$as_me:$LINENO: result: $CC" >&5
3027: echo "${ECHO_T}$CC" >&6
3028: else
3029: echo "$as_me:$LINENO: result: no" >&5
3030: echo "${ECHO_T}no" >&6
1.1 paf 3031: fi
3032:
1.66 paf 3033: fi
3034: if test -z "$CC"; then
3035: if test -n "$ac_tool_prefix"; then
3036: for ac_prog in cl
1.62 paf 3037: do
3038: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040: echo "$as_me:$LINENO: checking for $ac_word" >&5
3041: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3042: if test "${ac_cv_prog_CC+set}" = set; then
1.62 paf 3043: echo $ECHO_N "(cached) $ECHO_C" >&6
3044: else
1.66 paf 3045: if test -n "$CC"; then
3046: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 3047: else
3048: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049: for as_dir in $PATH
3050: do
3051: IFS=$as_save_IFS
3052: test -z "$as_dir" && as_dir=.
3053: for ac_exec_ext in '' $ac_executable_extensions; do
3054: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3055: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.62 paf 3056: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057: break 2
3058: fi
3059: done
3060: done
1.1 paf 3061:
1.62 paf 3062: fi
3063: fi
1.66 paf 3064: CC=$ac_cv_prog_CC
3065: if test -n "$CC"; then
3066: echo "$as_me:$LINENO: result: $CC" >&5
3067: echo "${ECHO_T}$CC" >&6
1.1 paf 3068: else
1.62 paf 3069: echo "$as_me:$LINENO: result: no" >&5
3070: echo "${ECHO_T}no" >&6
1.1 paf 3071: fi
3072:
1.66 paf 3073: test -n "$CC" && break
1.62 paf 3074: done
3075: fi
1.66 paf 3076: if test -z "$CC"; then
3077: ac_ct_CC=$CC
3078: for ac_prog in cl
1.62 paf 3079: do
3080: # Extract the first word of "$ac_prog", so it can be a program name with args.
3081: set dummy $ac_prog; ac_word=$2
3082: echo "$as_me:$LINENO: checking for $ac_word" >&5
3083: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.66 paf 3084: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.62 paf 3085: echo $ECHO_N "(cached) $ECHO_C" >&6
3086: else
1.66 paf 3087: if test -n "$ac_ct_CC"; then
3088: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 3089: else
1.62 paf 3090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091: for as_dir in $PATH
3092: do
3093: IFS=$as_save_IFS
3094: test -z "$as_dir" && as_dir=.
3095: for ac_exec_ext in '' $ac_executable_extensions; do
3096: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.66 paf 3097: ac_cv_prog_ac_ct_CC="$ac_prog"
1.62 paf 3098: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099: break 2
3100: fi
3101: done
3102: done
3103:
3104: fi
3105: fi
1.66 paf 3106: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107: if test -n "$ac_ct_CC"; then
3108: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 3110: else
1.62 paf 3111: echo "$as_me:$LINENO: result: no" >&5
3112: echo "${ECHO_T}no" >&6
1.1 paf 3113: fi
3114:
1.66 paf 3115: test -n "$ac_ct_CC" && break
3116: done
3117:
3118: CC=$ac_ct_CC
3119: fi
3120:
3121: fi
1.62 paf 3122:
1.1 paf 3123:
1.66 paf 3124: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3125: See \`config.log' for more details." >&5
3126: echo "$as_me: error: no acceptable C compiler found in \$PATH
3127: See \`config.log' for more details." >&2;}
3128: { (exit 1); exit 1; }; }
1.62 paf 3129:
3130: # Provide some information about the compiler.
3131: echo "$as_me:$LINENO:" \
1.66 paf 3132: "checking for C compiler version" >&5
1.62 paf 3133: ac_compiler=`set X $ac_compile; echo $2`
3134: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3135: (eval $ac_compiler --version </dev/null >&5) 2>&5
3136: ac_status=$?
3137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138: (exit $ac_status); }
3139: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3140: (eval $ac_compiler -v </dev/null >&5) 2>&5
3141: ac_status=$?
3142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143: (exit $ac_status); }
3144: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3145: (eval $ac_compiler -V </dev/null >&5) 2>&5
3146: ac_status=$?
3147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148: (exit $ac_status); }
3149:
1.66 paf 3150: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3151: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3152: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.62 paf 3153: echo $ECHO_N "(cached) $ECHO_C" >&6
3154: else
3155: cat >conftest.$ac_ext <<_ACEOF
3156: /* confdefs.h. */
3157: _ACEOF
3158: cat confdefs.h >>conftest.$ac_ext
3159: cat >>conftest.$ac_ext <<_ACEOF
3160: /* end confdefs.h. */
3161:
3162: int
3163: main ()
3164: {
3165: #ifndef __GNUC__
3166: choke me
3167: #endif
3168:
3169: ;
3170: return 0;
3171: }
3172: _ACEOF
3173: rm -f conftest.$ac_objext
3174: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3175: (eval $ac_compile) 2>conftest.er1
1.62 paf 3176: ac_status=$?
1.86 paf 3177: grep -v '^ *+' conftest.er1 >conftest.err
3178: rm -f conftest.er1
3179: cat conftest.err >&5
1.62 paf 3180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181: (exit $ac_status); } &&
1.86 paf 3182: { ac_try='test -z "$ac_c_werror_flag"
3183: || test ! -s conftest.err'
3184: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185: (eval $ac_try) 2>&5
3186: ac_status=$?
3187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188: (exit $ac_status); }; } &&
3189: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3190: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191: (eval $ac_try) 2>&5
3192: ac_status=$?
3193: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194: (exit $ac_status); }; }; then
3195: ac_compiler_gnu=yes
3196: else
3197: echo "$as_me: failed program was:" >&5
3198: sed 's/^/| /' conftest.$ac_ext >&5
3199:
3200: ac_compiler_gnu=no
3201: fi
1.86 paf 3202: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 3203: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.62 paf 3204:
3205: fi
1.66 paf 3206: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3207: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3208: GCC=`test $ac_compiler_gnu = yes && echo yes`
3209: ac_test_CFLAGS=${CFLAGS+set}
3210: ac_save_CFLAGS=$CFLAGS
3211: CFLAGS="-g"
3212: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3213: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3214: if test "${ac_cv_prog_cc_g+set}" = set; then
1.62 paf 3215: echo $ECHO_N "(cached) $ECHO_C" >&6
3216: else
3217: cat >conftest.$ac_ext <<_ACEOF
3218: /* confdefs.h. */
3219: _ACEOF
3220: cat confdefs.h >>conftest.$ac_ext
3221: cat >>conftest.$ac_ext <<_ACEOF
3222: /* end confdefs.h. */
3223:
3224: int
3225: main ()
3226: {
3227:
3228: ;
3229: return 0;
3230: }
3231: _ACEOF
3232: rm -f conftest.$ac_objext
3233: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3234: (eval $ac_compile) 2>conftest.er1
1.62 paf 3235: ac_status=$?
1.86 paf 3236: grep -v '^ *+' conftest.er1 >conftest.err
3237: rm -f conftest.er1
3238: cat conftest.err >&5
1.62 paf 3239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240: (exit $ac_status); } &&
1.86 paf 3241: { ac_try='test -z "$ac_c_werror_flag"
3242: || test ! -s conftest.err'
3243: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244: (eval $ac_try) 2>&5
3245: ac_status=$?
3246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247: (exit $ac_status); }; } &&
3248: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250: (eval $ac_try) 2>&5
3251: ac_status=$?
3252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253: (exit $ac_status); }; }; then
1.66 paf 3254: ac_cv_prog_cc_g=yes
1.62 paf 3255: else
3256: echo "$as_me: failed program was:" >&5
3257: sed 's/^/| /' conftest.$ac_ext >&5
3258:
1.66 paf 3259: ac_cv_prog_cc_g=no
1.62 paf 3260: fi
1.86 paf 3261: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3262: fi
1.66 paf 3263: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3264: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3265: if test "$ac_test_CFLAGS" = set; then
3266: CFLAGS=$ac_save_CFLAGS
3267: elif test $ac_cv_prog_cc_g = yes; then
3268: if test "$GCC" = yes; then
3269: CFLAGS="-g -O2"
1.1 paf 3270: else
1.66 paf 3271: CFLAGS="-g"
1.1 paf 3272: fi
3273: else
1.66 paf 3274: if test "$GCC" = yes; then
3275: CFLAGS="-O2"
1.1 paf 3276: else
1.66 paf 3277: CFLAGS=
1.1 paf 3278: fi
3279: fi
1.66 paf 3280: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3281: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3282: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3283: echo $ECHO_N "(cached) $ECHO_C" >&6
3284: else
3285: ac_cv_prog_cc_stdc=no
3286: ac_save_CC=$CC
3287: cat >conftest.$ac_ext <<_ACEOF
3288: /* confdefs.h. */
3289: _ACEOF
3290: cat confdefs.h >>conftest.$ac_ext
3291: cat >>conftest.$ac_ext <<_ACEOF
3292: /* end confdefs.h. */
3293: #include <stdarg.h>
3294: #include <stdio.h>
3295: #include <sys/types.h>
3296: #include <sys/stat.h>
3297: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3298: struct buf { int x; };
3299: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3300: static char *e (p, i)
3301: char **p;
3302: int i;
3303: {
3304: return p[i];
3305: }
3306: static char *f (char * (*g) (char **, int), char **p, ...)
3307: {
3308: char *s;
3309: va_list v;
3310: va_start (v,p);
3311: s = g (p, va_arg (v,int));
3312: va_end (v);
3313: return s;
3314: }
1.86 paf 3315:
3316: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3317: function prototypes and stuff, but not '\xHH' hex character constants.
3318: These don't provoke an error unfortunately, instead are silently treated
3319: as 'x'. The following induces an error, until -std1 is added to get
3320: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3321: array size at least. It's necessary to write '\x00'==0 to get something
3322: that's true only with -std1. */
3323: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324:
1.66 paf 3325: int test (int i, double x);
3326: struct s1 {int (*f) (int a);};
3327: struct s2 {int (*f) (double a);};
3328: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3329: int argc;
3330: char **argv;
3331: int
3332: main ()
3333: {
3334: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335: ;
3336: return 0;
3337: }
3338: _ACEOF
3339: # Don't try gcc -ansi; that turns off useful extensions and
3340: # breaks some systems' header files.
3341: # AIX -qlanglvl=ansi
3342: # Ultrix and OSF/1 -std1
3343: # HP-UX 10.20 and later -Ae
3344: # HP-UX older versions -Aa -D_HPUX_SOURCE
3345: # SVR4 -Xc -D__EXTENSIONS__
3346: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347: do
3348: CC="$ac_save_CC $ac_arg"
3349: rm -f conftest.$ac_objext
3350: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3351: (eval $ac_compile) 2>conftest.er1
1.66 paf 3352: ac_status=$?
1.86 paf 3353: grep -v '^ *+' conftest.er1 >conftest.err
3354: rm -f conftest.er1
3355: cat conftest.err >&5
1.66 paf 3356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357: (exit $ac_status); } &&
1.86 paf 3358: { ac_try='test -z "$ac_c_werror_flag"
3359: || test ! -s conftest.err'
3360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361: (eval $ac_try) 2>&5
3362: ac_status=$?
3363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364: (exit $ac_status); }; } &&
3365: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3366: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367: (eval $ac_try) 2>&5
3368: ac_status=$?
3369: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370: (exit $ac_status); }; }; then
3371: ac_cv_prog_cc_stdc=$ac_arg
3372: break
3373: else
3374: echo "$as_me: failed program was:" >&5
3375: sed 's/^/| /' conftest.$ac_ext >&5
3376:
3377: fi
1.86 paf 3378: rm -f conftest.err conftest.$ac_objext
1.66 paf 3379: done
3380: rm -f conftest.$ac_ext conftest.$ac_objext
3381: CC=$ac_save_CC
3382:
3383: fi
3384:
3385: case "x$ac_cv_prog_cc_stdc" in
3386: x|xno)
3387: echo "$as_me:$LINENO: result: none needed" >&5
3388: echo "${ECHO_T}none needed" >&6 ;;
3389: *)
3390: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3391: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3392: CC="$CC $ac_cv_prog_cc_stdc" ;;
3393: esac
3394:
3395: # Some people use a C++ compiler to compile C. Since we use `exit',
3396: # in C++ we need to declare it. In case someone uses the same compiler
3397: # for both compiling C and C++ we need to have the C++ compiler decide
3398: # the declaration of exit, since it's the most demanding environment.
3399: cat >conftest.$ac_ext <<_ACEOF
3400: #ifndef __cplusplus
3401: choke me
3402: #endif
3403: _ACEOF
3404: rm -f conftest.$ac_objext
3405: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3406: (eval $ac_compile) 2>conftest.er1
1.66 paf 3407: ac_status=$?
1.86 paf 3408: grep -v '^ *+' conftest.er1 >conftest.err
3409: rm -f conftest.er1
3410: cat conftest.err >&5
1.66 paf 3411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412: (exit $ac_status); } &&
1.86 paf 3413: { ac_try='test -z "$ac_c_werror_flag"
3414: || test ! -s conftest.err'
3415: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416: (eval $ac_try) 2>&5
3417: ac_status=$?
3418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419: (exit $ac_status); }; } &&
3420: { ac_try='test -s conftest.$ac_objext'
1.66 paf 3421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422: (eval $ac_try) 2>&5
3423: ac_status=$?
3424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425: (exit $ac_status); }; }; then
3426: for ac_declaration in \
1.86 paf 3427: '' \
1.62 paf 3428: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3429: 'extern "C" void std::exit (int); using std::exit;' \
3430: 'extern "C" void exit (int) throw ();' \
3431: 'extern "C" void exit (int);' \
3432: 'void exit (int);'
3433: do
3434: cat >conftest.$ac_ext <<_ACEOF
3435: /* confdefs.h. */
3436: _ACEOF
3437: cat confdefs.h >>conftest.$ac_ext
3438: cat >>conftest.$ac_ext <<_ACEOF
3439: /* end confdefs.h. */
1.86 paf 3440: $ac_declaration
1.62 paf 3441: #include <stdlib.h>
3442: int
3443: main ()
3444: {
3445: exit (42);
3446: ;
3447: return 0;
3448: }
3449: _ACEOF
3450: rm -f conftest.$ac_objext
3451: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3452: (eval $ac_compile) 2>conftest.er1
1.62 paf 3453: ac_status=$?
1.86 paf 3454: grep -v '^ *+' conftest.er1 >conftest.err
3455: rm -f conftest.er1
3456: cat conftest.err >&5
1.62 paf 3457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458: (exit $ac_status); } &&
1.86 paf 3459: { ac_try='test -z "$ac_c_werror_flag"
3460: || test ! -s conftest.err'
3461: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462: (eval $ac_try) 2>&5
3463: ac_status=$?
3464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465: (exit $ac_status); }; } &&
3466: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468: (eval $ac_try) 2>&5
3469: ac_status=$?
3470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471: (exit $ac_status); }; }; then
3472: :
3473: else
3474: echo "$as_me: failed program was:" >&5
3475: sed 's/^/| /' conftest.$ac_ext >&5
3476:
3477: continue
3478: fi
1.86 paf 3479: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3480: cat >conftest.$ac_ext <<_ACEOF
3481: /* confdefs.h. */
3482: _ACEOF
3483: cat confdefs.h >>conftest.$ac_ext
3484: cat >>conftest.$ac_ext <<_ACEOF
3485: /* end confdefs.h. */
3486: $ac_declaration
3487: int
3488: main ()
3489: {
3490: exit (42);
3491: ;
3492: return 0;
3493: }
3494: _ACEOF
3495: rm -f conftest.$ac_objext
3496: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 3497: (eval $ac_compile) 2>conftest.er1
1.62 paf 3498: ac_status=$?
1.86 paf 3499: grep -v '^ *+' conftest.er1 >conftest.err
3500: rm -f conftest.er1
3501: cat conftest.err >&5
1.62 paf 3502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503: (exit $ac_status); } &&
1.86 paf 3504: { ac_try='test -z "$ac_c_werror_flag"
3505: || test ! -s conftest.err'
3506: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507: (eval $ac_try) 2>&5
3508: ac_status=$?
3509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510: (exit $ac_status); }; } &&
3511: { ac_try='test -s conftest.$ac_objext'
1.62 paf 3512: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513: (eval $ac_try) 2>&5
3514: ac_status=$?
3515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516: (exit $ac_status); }; }; then
3517: break
3518: else
3519: echo "$as_me: failed program was:" >&5
3520: sed 's/^/| /' conftest.$ac_ext >&5
3521:
3522: fi
1.86 paf 3523: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3524: done
3525: rm -f conftest*
3526: if test -n "$ac_declaration"; then
3527: echo '#ifdef __cplusplus' >>confdefs.h
3528: echo $ac_declaration >>confdefs.h
3529: echo '#endif' >>confdefs.h
3530: fi
3531:
1.66 paf 3532: else
3533: echo "$as_me: failed program was:" >&5
3534: sed 's/^/| /' conftest.$ac_ext >&5
3535:
3536: fi
1.86 paf 3537: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 3538: ac_ext=c
3539: ac_cpp='$CPP $CPPFLAGS'
3540: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543:
1.66 paf 3544: depcc="$CC" am_compiler_list=
1.62 paf 3545:
3546: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3547: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.66 paf 3548: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.62 paf 3549: echo $ECHO_N "(cached) $ECHO_C" >&6
3550: else
3551: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3552: # We make a subdir and do the tests there. Otherwise we can end up
3553: # making bogus files that we don't know about and never remove. For
3554: # instance it was reported that on HP-UX the gcc test will end up
3555: # making a dummy file named `D' -- because `-MD' means `put the output
3556: # in D'.
3557: mkdir conftest.dir
3558: # Copy depcomp to subdir because otherwise we won't find it if we're
3559: # using a relative directory.
3560: cp "$am_depcomp" conftest.dir
3561: cd conftest.dir
1.86 paf 3562: # We will build objects and dependencies in a subdirectory because
3563: # it helps to detect inapplicable dependency modes. For instance
3564: # both Tru64's cc and ICC support -MD to output dependencies as a
3565: # side effect of compilation, but ICC will put the dependencies in
3566: # the current directory while Tru64 will put them in the object
3567: # directory.
3568: mkdir sub
1.62 paf 3569:
1.66 paf 3570: am_cv_CC_dependencies_compiler_type=none
1.62 paf 3571: if test "$am_compiler_list" = ""; then
3572: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573: fi
3574: for depmode in $am_compiler_list; do
1.86 paf 3575: # Setup a source with many dependencies, because some compilers
3576: # like to wrap large dependency lists on column 80 (with \), and
3577: # we should not choose a depcomp mode which is confused by this.
3578: #
1.62 paf 3579: # We need to recreate these files for each test, as the compiler may
3580: # overwrite some of them when testing with obscure command lines.
3581: # This happens at least with the AIX C compiler.
1.86 paf 3582: : > sub/conftest.c
3583: for i in 1 2 3 4 5 6; do
3584: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3585: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3586: # Solaris 8's {/usr,}/bin/sh.
3587: touch sub/conftst$i.h
3588: done
3589: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 3590:
3591: case $depmode in
3592: nosideeffect)
3593: # after this tag, mechanisms are not by side-effect, so they'll
3594: # only be used when explicitly requested
3595: if test "x$enable_dependency_tracking" = xyes; then
3596: continue
3597: else
3598: break
3599: fi
3600: ;;
3601: none) break ;;
3602: esac
3603: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3604: # mode. It turns out that the SunPro C++ compiler does not properly
3605: # handle `-M -o', and we need to detect this.
1.66 paf 3606: if depmode=$depmode \
1.86 paf 3607: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3608: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3609: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3610: >/dev/null 2>conftest.err &&
3611: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3612: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 3613: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 3614: # icc doesn't choke on unknown options, it will just issue warnings
3615: # or remarks (even with -Werror). So we grep stderr for any message
3616: # that says an option was ignored or not supported.
3617: # When given -MP, icc 7.0 and 7.1 complain thusly:
3618: # icc: Command line warning: ignoring option '-M'; no argument required
3619: # The diagnosis changed in icc 8.0:
3620: # icc: Command line remark: option '-MP' not supported
3621: if (grep 'ignoring option' conftest.err ||
3622: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3623: am_cv_CC_dependencies_compiler_type=$depmode
3624: break
3625: fi
1.66 paf 3626: fi
3627: done
3628:
3629: cd ..
3630: rm -rf conftest.dir
3631: else
3632: am_cv_CC_dependencies_compiler_type=none
3633: fi
3634:
3635: fi
3636: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3639:
3640:
3641:
3642: if
3643: test "x$enable_dependency_tracking" != xno \
3644: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3645: am__fastdepCC_TRUE=
3646: am__fastdepCC_FALSE='#'
3647: else
3648: am__fastdepCC_TRUE='#'
3649: am__fastdepCC_FALSE=
3650: fi
3651:
3652:
1.128 moko 3653:
1.66 paf 3654: ac_ext=c
3655: ac_cpp='$CPP $CPPFLAGS'
3656: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659:
1.67 paf 3660:
1.62 paf 3661:
1.128 moko 3662: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3663: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
3664: case "$host_os" in
3665: cygwin)
3666: dll_extension=dll
3667: ;;
3668: *)
3669: dll_extension=so
1.66 paf 3670: esac
1.128 moko 3671: echo "$as_me:$LINENO: result: $dll_extension" >&5
3672: echo "${ECHO_T}$dll_extension" >&6
1.1 paf 3673:
1.71 paf 3674:
3675:
3676:
3677: # Check whether --with-build-warnings or --without-build-warnings was given.
3678: if test "${with_build_warnings+set}" = set; then
3679: withval="$with_build_warnings"
3680: { echo "$as_me:$LINENO: WARNING: enabling compiler warnings" >&5
3681: echo "$as_me: WARNING: enabling compiler warnings" >&2;}
3682: CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3683:
3684: fi;
1.1 paf 3685:
3686:
1.67 paf 3687: # Check whether --with-assertions or --without-assertions was given.
3688: if test "${with_assertions+set}" = set; then
3689: withval="$with_assertions"
3690: { echo "$as_me:$LINENO: WARNING: enabling assertions" >&5
3691: echo "$as_me: WARNING: enabling assertions" >&2;}
3692:
3693: else
3694:
3695: cat >>confdefs.h <<\_ACEOF
3696: #define NDEBUG
3697: _ACEOF
3698:
3699:
3700: fi;
3701:
1.94 misha 3702:
1.128 moko 3703: # Check whether --with-pathlink or --without-pathlink was given.
3704: if test "${with_pathlink+set}" = set; then
3705: withval="$with_pathlink"
3706: LD_PATHLINK=$withval
3707:
3708: fi;
3709:
3710:
3711: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
3712: if test "${with_sjlj_exceptions+set}" = set; then
3713: withval="$with_sjlj_exceptions"
3714:
3715: cat >>confdefs.h <<\_ACEOF
3716: #define PA_WITH_SJLJ_EXCEPTIONS
3717: _ACEOF
3718:
3719:
3720: fi;
3721:
3722:
1.60 paf 3723: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3724: if test "${enable_safe_mode+set}" = set; then
3725: enableval="$enable_safe_mode"
1.62 paf 3726:
1.67 paf 3727: SAFE_MODE=$enableval
1.60 paf 3728:
1.1 paf 3729:
1.62 paf 3730: fi;
1.128 moko 3731:
1.60 paf 3732: if test "$SAFE_MODE" = "no"; then
1.62 paf 3733: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3734: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3735: else
1.62 paf 3736:
3737: cat >>confdefs.h <<\_ACEOF
3738: #define PA_SAFE_MODE
3739: _ACEOF
1.1 paf 3740:
3741: fi
3742:
1.94 misha 3743:
1.13 paf 3744: # Check whether --enable-execs or --disable-execs was given.
3745: if test "${enable_execs+set}" = set; then
3746: enableval="$enable_execs"
1.62 paf 3747:
1.13 paf 3748: if test "$enableval" = "no"; then
1.62 paf 3749: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3750: echo "$as_me: WARNING: disabling file execs" >&2;}
3751:
3752: cat >>confdefs.h <<\_ACEOF
3753: #define NO_PA_EXECS
3754: _ACEOF
1.13 paf 3755:
3756: fi
3757:
3758:
1.62 paf 3759: fi;
1.13 paf 3760:
1.60 paf 3761:
1.94 misha 3762: # Check whether --enable-stringstream or --disable-stringstream was given.
3763: if test "${enable_stringstream+set}" = set; then
3764: enableval="$enable_stringstream"
3765:
3766: if test "$enableval" = "no"; then
3767: { echo "$as_me:$LINENO: WARNING: disabling stringstream usage" >&5
3768: echo "$as_me: WARNING: disabling stringstream usage" >&2;}
3769:
3770: cat >>confdefs.h <<\_ACEOF
3771: #define NO_STRINGSTREAM
3772: _ACEOF
3773:
3774: fi
3775:
3776:
3777: fi;
3778:
3779:
1.62 paf 3780:
1.142 moko 3781: # Check whether --with-gc or --without-gc was given.
3782: if test "${with_gc+set}" = set; then
3783: withval="$with_gc"
1.17 paf 3784:
3785:
1.142 moko 3786: GC=$withval
3787: GC_LIBS="$GC/libgc.la"
3788:
3789: if test -f $GC_LIBS; then
3790: GC_OK="yes"
3791: else
3792: GC_LIBS="-L$GC -lgc"
3793: fi
1.62 paf 3794:
1.142 moko 3795: else
1.17 paf 3796:
1.142 moko 3797: GC_LIBS="-lgc"
3798: { echo "$as_me:$LINENO: WARNING: --with-gc was not specified, hoping linker would find it" >&5
3799: echo "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
1.17 paf 3800:
1.128 moko 3801: fi;
1.17 paf 3802:
1.142 moko 3803: if test -z "$GC_OK"; then
1.138 moko 3804: echo "$as_me:$LINENO: checking for libgc" >&5
1.128 moko 3805: echo $ECHO_N "checking for libgc... $ECHO_C" >&6
1.138 moko 3806: SAVE_LIBS=$LIBS
3807: LIBS="$LIBS $GC_LIBS"
1.128 moko 3808:
1.67 paf 3809: cat >conftest.$ac_ext <<_ACEOF
3810: /* confdefs.h. */
3811: _ACEOF
3812: cat confdefs.h >>conftest.$ac_ext
3813: cat >>conftest.$ac_ext <<_ACEOF
3814: /* end confdefs.h. */
1.142 moko 3815: extern int GC_dont_gc;
1.67 paf 3816: int
3817: main ()
3818: {
1.142 moko 3819: GC_dont_gc=0;
1.67 paf 3820: ;
3821: return 0;
3822: }
3823: _ACEOF
3824: rm -f conftest.$ac_objext conftest$ac_exeext
3825: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 3826: (eval $ac_link) 2>conftest.er1
1.67 paf 3827: ac_status=$?
1.86 paf 3828: grep -v '^ *+' conftest.er1 >conftest.err
3829: rm -f conftest.er1
3830: cat conftest.err >&5
1.67 paf 3831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832: (exit $ac_status); } &&
1.86 paf 3833: { ac_try='test -z "$ac_c_werror_flag"
3834: || test ! -s conftest.err'
3835: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836: (eval $ac_try) 2>&5
3837: ac_status=$?
3838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839: (exit $ac_status); }; } &&
3840: { ac_try='test -s conftest$ac_exeext'
1.67 paf 3841: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842: (eval $ac_try) 2>&5
3843: ac_status=$?
3844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845: (exit $ac_status); }; }; then
3846: echo "$as_me:$LINENO: result: yes" >&5
3847: echo "${ECHO_T}yes" >&6
3848:
3849: else
3850: echo "$as_me: failed program was:" >&5
3851: sed 's/^/| /' conftest.$ac_ext >&5
3852:
3853: echo "$as_me:$LINENO: result: no" >&5
3854: echo "${ECHO_T}no" >&6
1.142 moko 3855: if test -z "$GC"; then
3856: { { echo "$as_me:$LINENO: error: please specify path to libgc: --with-gc" >&5
3857: echo "$as_me: error: please specify path to libgc: --with-gc" >&2;}
1.67 paf 3858: { (exit 1); exit 1; }; }
1.142 moko 3859: else
3860: { { echo "$as_me:$LINENO: error: $GC does not seem to be valid libgc installation directory" >&5
3861: echo "$as_me: error: $GC does not seem to be valid libgc installation directory" >&2;}
3862: { (exit 1); exit 1; }; }
3863: fi
1.67 paf 3864:
3865: fi
1.86 paf 3866: rm -f conftest.err conftest.$ac_objext \
3867: conftest$ac_exeext conftest.$ac_ext
1.138 moko 3868: LIBS=$SAVE_LIBS
3869: fi
1.67 paf 3870:
3871:
1.1 paf 3872:
1.15 paf 3873:
1.142 moko 3874:
3875: # Check whether --with-pcre or --without-pcre was given.
3876: if test "${with_pcre+set}" = set; then
3877: withval="$with_pcre"
1.100 misha 3878:
3879: PCRE=$withval
1.142 moko 3880: PCRE_INCLUDES="-I$PCRE/include"
3881: PCRE_LIBS="$PCRE/lib/libpcre.la"
1.100 misha 3882:
1.142 moko 3883: if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then
3884: PCRE_OK="yes"
3885: else
3886: PCRE_LIBS="-L$PCRE -lpcre"
1.100 misha 3887: fi
3888:
1.142 moko 3889:
3890: else
3891:
3892: PCRE_LIBS="-lpcre"
3893: { echo "$as_me:$LINENO: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
3894: echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
1.100 misha 3895:
3896: fi;
3897:
1.142 moko 3898: if test -z "$PCRE_OK"; then
3899: echo "$as_me:$LINENO: checking for prce" >&5
3900: echo $ECHO_N "checking for prce... $ECHO_C" >&6
3901: SAVE_LIBS=$LIBS
3902: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
3903: cat >conftest.$ac_ext <<_ACEOF
3904: /* confdefs.h. */
3905: _ACEOF
3906: cat confdefs.h >>conftest.$ac_ext
3907: cat >>conftest.$ac_ext <<_ACEOF
3908: /* end confdefs.h. */
3909: #include <pcre.h>
3910: int
3911: main ()
3912: {
3913: const char *v=pcre_version();
3914: ;
3915: return 0;
3916: }
3917: _ACEOF
3918: rm -f conftest.$ac_objext conftest$ac_exeext
3919: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920: (eval $ac_link) 2>conftest.er1
3921: ac_status=$?
3922: grep -v '^ *+' conftest.er1 >conftest.err
3923: rm -f conftest.er1
3924: cat conftest.err >&5
3925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926: (exit $ac_status); } &&
3927: { ac_try='test -z "$ac_c_werror_flag"
3928: || test ! -s conftest.err'
3929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930: (eval $ac_try) 2>&5
3931: ac_status=$?
3932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933: (exit $ac_status); }; } &&
3934: { ac_try='test -s conftest$ac_exeext'
3935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936: (eval $ac_try) 2>&5
3937: ac_status=$?
3938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939: (exit $ac_status); }; }; then
3940: echo "$as_me:$LINENO: result: yes" >&5
3941: echo "${ECHO_T}yes" >&6
3942:
3943: else
3944: echo "$as_me: failed program was:" >&5
3945: sed 's/^/| /' conftest.$ac_ext >&5
3946:
3947: echo "$as_me:$LINENO: result: no" >&5
3948: echo "${ECHO_T}no" >&6
3949: if test -z "$PCRE"; then
3950: { { echo "$as_me:$LINENO: error: please specify path to PCRE: --with-pcre" >&5
3951: echo "$as_me: error: please specify path to PCRE: --with-pcre" >&2;}
3952: { (exit 1); exit 1; }; }
3953: else
3954: { { echo "$as_me:$LINENO: error: $PCRE does not seem to be valid PCRE installation directory" >&5
3955: echo "$as_me: error: $PCRE does not seem to be valid PCRE installation directory" >&2;}
3956: { (exit 1); exit 1; }; }
3957: fi
3958:
3959: fi
3960: rm -f conftest.err conftest.$ac_objext \
3961: conftest$ac_exeext conftest.$ac_ext
3962: LIBS=$SAVE_LIBS
3963: fi
1.100 misha 3964:
3965:
3966:
3967:
1.66 paf 3968:
3969:
1.142 moko 3970: # Check whether --with-xml or --without-xml was given.
3971: if test "${with_xml+set}" = set; then
3972: withval="$with_xml"
1.66 paf 3973:
3974:
1.142 moko 3975: XML=$withval
3976: XML_LIBS="-lxml2 -lxslt -lexslt"
3977:
3978: if test -z "$XML" -o "$XML" = "yes"; then
3979: XML=""
3980: XML_INCLUDES="-I/usr/include/libxml2"
3981: { echo "$as_me:$LINENO: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
3982: echo "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
3983: else
3984: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.67 paf 3985:
1.142 moko 3986: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
3987: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
3988: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
3989: XML_OK="yes"
3990: fi
1.67 paf 3991: fi
1.66 paf 3992:
1.142 moko 3993: if test -z "$XML_OK"; then
3994: echo "$as_me:$LINENO: checking for xml" >&5
3995: echo $ECHO_N "checking for xml... $ECHO_C" >&6
3996: SAVE_LIBS=$LIBS
3997: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
3998: cat >conftest.$ac_ext <<_ACEOF
3999: /* confdefs.h. */
4000: _ACEOF
4001: cat confdefs.h >>conftest.$ac_ext
4002: cat >>conftest.$ac_ext <<_ACEOF
4003: /* end confdefs.h. */
4004: #include <libxslt/xslt.h>
4005: int
4006: main ()
4007: {
4008: const char *v=xsltEngineVersion;
4009: ;
4010: return 0;
4011: }
4012: _ACEOF
4013: rm -f conftest.$ac_objext conftest$ac_exeext
4014: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4015: (eval $ac_link) 2>conftest.er1
4016: ac_status=$?
4017: grep -v '^ *+' conftest.er1 >conftest.err
4018: rm -f conftest.er1
4019: cat conftest.err >&5
4020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021: (exit $ac_status); } &&
4022: { ac_try='test -z "$ac_c_werror_flag"
4023: || test ! -s conftest.err'
4024: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025: (eval $ac_try) 2>&5
4026: ac_status=$?
4027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028: (exit $ac_status); }; } &&
4029: { ac_try='test -s conftest$ac_exeext'
4030: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031: (eval $ac_try) 2>&5
4032: ac_status=$?
4033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034: (exit $ac_status); }; }; then
4035: echo "$as_me:$LINENO: result: yes" >&5
4036: echo "${ECHO_T}yes" >&6
4037:
4038: else
4039: echo "$as_me: failed program was:" >&5
4040: sed 's/^/| /' conftest.$ac_ext >&5
1.66 paf 4041:
1.142 moko 4042: echo "$as_me:$LINENO: result: no" >&5
4043: echo "${ECHO_T}no" >&6
4044: if test -z "$XML"; then
4045: { { echo "$as_me:$LINENO: error: please specify path to Gnome XML libraries: --with-xml" >&5
4046: echo "$as_me: error: please specify path to Gnome XML libraries: --with-xml" >&2;}
4047: { (exit 1); exit 1; }; }
4048: else
4049: { { echo "$as_me:$LINENO: error: $XML does not seem to be valid Gnome XML installation directory" >&5
4050: echo "$as_me: error: $XML does not seem to be valid Gnome XML installation directory" >&2;}
1.66 paf 4051: { (exit 1); exit 1; }; }
1.142 moko 4052: fi
4053:
4054: fi
4055: rm -f conftest.err conftest.$ac_objext \
4056: conftest$ac_exeext conftest.$ac_ext
4057: LIBS=$SAVE_LIBS
1.67 paf 4058: fi
1.66 paf 4059:
4060: cat >>confdefs.h <<\_ACEOF
4061: #define XML
4062: _ACEOF
4063:
4064:
1.142 moko 4065: fi;
1.90 paf 4066:
1.66 paf 4067:
4068:
4069:
4070:
1.90 paf 4071: # Check whether --with-glib-config or --without-glib-config was given.
4072: if test "${with_glib_config+set}" = set; then
4073: withval="$with_glib_config"
4074: GLIB_CONFIG=$withval
4075:
4076: fi;
1.66 paf 4077:
4078:
4079: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
4080: if test "${with_shared_mailreceive+set}" = set; then
4081: withval="$with_shared_mailreceive"
4082:
1.67 paf 4083: GNOME_MIME=$withval
4084: MIMEBIN="$GNOME_MIME/bin"
4085: MIMEINC="$GNOME_MIME/include"
4086: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4087:
1.67 paf 4088: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4089: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4090: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4091: { (exit 1); exit 1; }; }
1.67 paf 4092: fi
1.66 paf 4093:
4094:
4095: cat >>confdefs.h <<\_ACEOF
4096: #define WITH_MAILRECEIVE
4097: _ACEOF
4098:
4099:
1.67 paf 4100: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.66 paf 4101:
1.67 paf 4102: if test -z "$GLIB_CONFIG"; then
1.90 paf 4103: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4104: if test \! -x $GLIB_CONFIG; then
1.90 paf 4105: GLIB_CONFIG=$XMLBIN/glib2-config
4106: if test \! -x $GLIB_CONFIG; then
4107: GLIB_CONFIG=glib-config
4108: fi
1.67 paf 4109: fi
4110: fi
4111: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
4112: GLIB_LIBS=`$GLIB_CONFIG --libs`
1.66 paf 4113:
1.67 paf 4114: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
4115: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
4116: if test \! -z "$LD_PATHLINK"; then
1.66 paf 4117: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.67 paf 4118: fi
1.66 paf 4119:
4120: fi;
4121:
4122: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
4123: if test "${with_static_mailreceive+set}" = set; then
4124: withval="$with_static_mailreceive"
4125:
1.67 paf 4126: GNOME_MIME=$withval
4127: MIMEBIN="$GNOME_MIME/bin"
4128: MIMEINC="$GNOME_MIME/include"
4129: MIMELIB="$GNOME_MIME/lib"
1.66 paf 4130:
1.67 paf 4131: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
4132: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
1.66 paf 4133: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
4134: { (exit 1); exit 1; }; }
1.67 paf 4135: fi
1.66 paf 4136:
4137:
4138: cat >>confdefs.h <<\_ACEOF
4139: #define WITH_MAILRECEIVE
4140: _ACEOF
4141:
4142:
1.67 paf 4143: if test -z "$GLIB_CONFIG"; then
1.90 paf 4144: GLIB_CONFIG=$XMLBIN/glib-config
1.67 paf 4145: if test \! -x $GLIB_CONFIG; then
1.90 paf 4146: GLIB_CONFIG=$XMLBIN/glib2-config
4147: if test \! -x $GLIB_CONFIG; then
4148: GLIB_CONFIG=glib-config
4149: fi
1.67 paf 4150: fi
4151: fi
4152: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.66 paf 4153:
1.67 paf 4154: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
4155: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
4156: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
1.138 moko 4157: MIME_LIBS="$MIMELIB/libgmime.la $GLIB_DIR/lib$GLIB_NAME.la"
1.66 paf 4158:
4159: fi;
4160:
4161:
4162:
4163:
4164:
4165: # Check whether --with-sendmail or --without-sendmail was given.
4166: if test "${with_sendmail+set}" = set; then
4167: withval="$with_sendmail"
4168:
4169: cat >>confdefs.h <<_ACEOF
4170: #define PA_FORCED_SENDMAIL "$withval"
4171: _ACEOF
4172:
4173:
4174: fi;
4175:
4176:
4177:
1.122 moko 4178: # Check whether --with-apache or --without-apache was given.
4179: if test "${with_apache+set}" = set; then
4180: withval="$with_apache"
4181:
4182: APXS=$withval
4183:
4184: if test -z "$APXS" -o "$APXS" = "yes"; then
4185: APXS=`which apxs 2>/dev/null`
1.142 moko 4186: if test -z "$APXS"; then
4187: APXS=`which apxs2 2>/dev/null`
4188: fi
4189: fi
1.122 moko 4190:
4191: APACHE=`$APXS -q TARGET 2>/dev/null`
4192:
4193: if test -z "$APACHE"; then
1.142 moko 4194: { { echo "$as_me:$LINENO: error: $APXS does not seem to be valid apache apxs utility path" >&5
1.122 moko 4195: echo "$as_me: error: $APXS does not seem to be valid apache apxs utility path" >&2;}
1.66 paf 4196: { (exit 1); exit 1; }; }
1.67 paf 4197: fi
1.7 paf 4198:
1.122 moko 4199: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
4200: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
4201: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
4202: APACHE_CFLAGS=`$APXS -q CFLAGS`
4203:
1.62 paf 4204: fi;
1.7 paf 4205:
4206:
1.62 paf 4207:
1.122 moko 4208:
4209:
4210: if test -n "$APACHE"; then
4211: COMPILE_APACHE_MODULE_TRUE=
4212: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 4213: else
1.122 moko 4214: COMPILE_APACHE_MODULE_TRUE='#'
4215: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 4216: fi
1.1 paf 4217:
4218:
4219:
1.62 paf 4220:
4221:
1.7 paf 4222:
1.1 paf 4223:
4224:
4225:
1.62 paf 4226:
1.128 moko 4227: case `pwd` in
4228: *\ * | *\ *)
4229: { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4230: echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4231: esac
4232:
4233:
4234:
4235: macro_version='2.4.2'
4236: macro_revision='1.3337'
4237:
4238:
4239:
4240:
4241:
4242:
4243:
4244:
4245:
4246:
4247:
4248:
4249:
4250: ltmain="$ac_aux_dir/ltmain.sh"
4251:
4252: # Backslashify metacharacters that are still active within
4253: # double-quoted strings.
4254: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 4255:
1.128 moko 4256: # Same as above, but do not quote variable references.
4257: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 4258:
1.128 moko 4259: # Sed substitution to delay expansion of an escaped shell variable in a
4260: # double_quote_subst'ed string.
4261: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 4262:
1.128 moko 4263: # Sed substitution to delay expansion of an escaped single quote.
4264: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 4265:
1.128 moko 4266: # Sed substitution to avoid accidental globbing in evaled expressions
4267: no_glob_subst='s/\*/\\\*/g'
1.86 paf 4268:
1.128 moko 4269: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4270: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4271: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 4272:
1.128 moko 4273: echo "$as_me:$LINENO: checking how to print strings" >&5
4274: echo $ECHO_N "checking how to print strings... $ECHO_C" >&6
4275: # Test print first, because it will be a builtin if present.
4276: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4277: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4278: ECHO='print -r --'
4279: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4280: ECHO='printf %s\n'
4281: else
4282: # Use this function as a fallback that always works.
4283: func_fallback_echo ()
4284: {
4285: eval 'cat <<_LTECHO_EOF
4286: $1
4287: _LTECHO_EOF'
4288: }
4289: ECHO='func_fallback_echo'
4290: fi
1.86 paf 4291:
1.128 moko 4292: # func_echo_all arg...
4293: # Invoke $ECHO with all args, space-separated.
4294: func_echo_all ()
1.66 paf 4295: {
1.128 moko 4296: $ECHO ""
1.66 paf 4297: }
1.10 paf 4298:
1.128 moko 4299: case "$ECHO" in
4300: printf*) echo "$as_me:$LINENO: result: printf" >&5
4301: echo "${ECHO_T}printf" >&6 ;;
4302: print*) echo "$as_me:$LINENO: result: print -r" >&5
4303: echo "${ECHO_T}print -r" >&6 ;;
4304: *) echo "$as_me:$LINENO: result: cat" >&5
4305: echo "${ECHO_T}cat" >&6 ;;
4306: esac
4307:
4308:
4309:
4310:
4311:
4312:
4313:
4314:
4315:
4316:
4317:
4318:
4319:
4320:
4321: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4322: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4323: if test "${lt_cv_path_SED+set}" = set; then
4324: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 4325: else
1.128 moko 4326: # Loop through the user's path and test for sed and gsed.
4327: # Then use that list of sed's as ones to test for truncation.
4328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329: for as_dir in $PATH
4330: do
4331: IFS=$as_save_IFS
4332: test -z "$as_dir" && as_dir=.
4333: for lt_ac_prog in sed gsed; do
4334: for ac_exec_ext in '' $ac_executable_extensions; do
4335: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4336: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4337: fi
4338: done
4339: done
4340: done
4341: IFS=$as_save_IFS
4342: lt_ac_max=0
4343: lt_ac_count=0
4344: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4345: # along with /bin/sed that truncates output.
4346: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4347: test ! -f $lt_ac_sed && continue
4348: cat /dev/null > conftest.in
4349: lt_ac_count=0
4350: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4351: # Check for GNU sed and select it if it is found.
4352: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4353: lt_cv_path_SED=$lt_ac_sed
4354: break
4355: fi
4356: while true; do
4357: cat conftest.in conftest.in >conftest.tmp
4358: mv conftest.tmp conftest.in
4359: cp conftest.in conftest.nl
4360: echo >>conftest.nl
4361: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4362: cmp -s conftest.out conftest.nl || break
4363: # 10000 chars as input seems more than enough
4364: test $lt_ac_count -gt 10 && break
4365: lt_ac_count=`expr $lt_ac_count + 1`
4366: if test $lt_ac_count -gt $lt_ac_max; then
4367: lt_ac_max=$lt_ac_count
4368: lt_cv_path_SED=$lt_ac_sed
4369: fi
4370: done
4371: done
1.10 paf 4372:
1.66 paf 4373: fi
1.10 paf 4374:
1.128 moko 4375: SED=$lt_cv_path_SED
4376:
4377: echo "$as_me:$LINENO: result: $SED" >&5
4378: echo "${ECHO_T}$SED" >&6
4379:
4380: test -z "$SED" && SED=sed
4381: Xsed="$SED -e 1s/^X//"
1.10 paf 4382:
1.128 moko 4383:
4384:
4385:
4386:
4387:
4388:
4389:
4390:
4391:
4392:
4393: echo "$as_me:$LINENO: checking for egrep" >&5
4394: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4395: if test "${ac_cv_prog_egrep+set}" = set; then
4396: echo $ECHO_N "(cached) $ECHO_C" >&6
4397: else
4398: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4399: then ac_cv_prog_egrep='grep -E'
4400: else ac_cv_prog_egrep='egrep'
4401: fi
4402: fi
4403: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4404: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4405: EGREP=$ac_cv_prog_egrep
4406:
4407:
4408: echo "$as_me:$LINENO: checking for fgrep" >&5
4409: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4410: if test "${ac_cv_prog_fgrep+set}" = set; then
4411: echo $ECHO_N "(cached) $ECHO_C" >&6
4412: else
4413: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4414: then ac_cv_prog_fgrep='grep -F'
4415: else ac_cv_prog_fgrep='fgrep'
4416: fi
4417: fi
4418: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4419: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4420: FGREP=$ac_cv_prog_fgrep
4421:
4422:
4423: test -z "$GREP" && GREP=grep
4424:
4425:
4426:
4427:
4428:
4429:
4430:
4431:
4432:
4433:
4434:
4435:
4436:
4437:
4438:
4439:
4440:
4441:
4442:
4443: # Check whether --with-gnu-ld or --without-gnu-ld was given.
4444: if test "${with_gnu_ld+set}" = set; then
4445: withval="$with_gnu_ld"
4446: test "$withval" = no || with_gnu_ld=yes
4447: else
4448: with_gnu_ld=no
4449: fi;
4450: ac_prog=ld
4451: if test "$GCC" = yes; then
4452: # Check if gcc -print-prog-name=ld gives a path.
4453: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4454: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4455: case $host in
4456: *-*-mingw*)
4457: # gcc leaves a trailing carriage return which upsets mingw
4458: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4459: *)
4460: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4461: esac
4462: case $ac_prog in
4463: # Accept absolute paths.
4464: [\\/]* | ?:[\\/]*)
4465: re_direlt='/[^/][^/]*/\.\./'
4466: # Canonicalize the pathname of ld
4467: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4468: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4469: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4470: done
4471: test -z "$LD" && LD="$ac_prog"
4472: ;;
4473: "")
4474: # If it fails, then pretend we aren't using GCC.
4475: ac_prog=ld
4476: ;;
4477: *)
4478: # If it is relative, then search for the first ld in PATH.
4479: with_gnu_ld=unknown
4480: ;;
4481: esac
4482: elif test "$with_gnu_ld" = yes; then
4483: echo "$as_me:$LINENO: checking for GNU ld" >&5
4484: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4485: else
4486: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4487: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4488: fi
4489: if test "${lt_cv_path_LD+set}" = set; then
4490: echo $ECHO_N "(cached) $ECHO_C" >&6
4491: else
4492: if test -z "$LD"; then
4493: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494: for ac_dir in $PATH; do
4495: IFS="$lt_save_ifs"
4496: test -z "$ac_dir" && ac_dir=.
4497: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4498: lt_cv_path_LD="$ac_dir/$ac_prog"
4499: # Check to see if the program is GNU ld. I'd rather use --version,
4500: # but apparently some variants of GNU ld only accept -v.
4501: # Break only if it was the GNU/non-GNU ld that we prefer.
4502: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4503: *GNU* | *'with BFD'*)
4504: test "$with_gnu_ld" != no && break
4505: ;;
4506: *)
4507: test "$with_gnu_ld" != yes && break
4508: ;;
4509: esac
4510: fi
4511: done
4512: IFS="$lt_save_ifs"
4513: else
4514: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4515: fi
4516: fi
4517:
4518: LD="$lt_cv_path_LD"
4519: if test -n "$LD"; then
4520: echo "$as_me:$LINENO: result: $LD" >&5
4521: echo "${ECHO_T}$LD" >&6
4522: else
4523: echo "$as_me:$LINENO: result: no" >&5
4524: echo "${ECHO_T}no" >&6
4525: fi
4526: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4527: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4528: { (exit 1); exit 1; }; }
4529: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4530: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4531: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4532: echo $ECHO_N "(cached) $ECHO_C" >&6
4533: else
4534: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535: case `$LD -v 2>&1 </dev/null` in
4536: *GNU* | *'with BFD'*)
4537: lt_cv_prog_gnu_ld=yes
4538: ;;
4539: *)
4540: lt_cv_prog_gnu_ld=no
4541: ;;
4542: esac
4543: fi
4544: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4545: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4546: with_gnu_ld=$lt_cv_prog_gnu_ld
4547:
4548:
4549:
4550:
4551:
4552:
4553:
4554:
4555:
4556: echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4557: echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4558: if test "${lt_cv_path_NM+set}" = set; then
4559: echo $ECHO_N "(cached) $ECHO_C" >&6
4560: else
4561: if test -n "$NM"; then
4562: # Let the user override the test.
4563: lt_cv_path_NM="$NM"
4564: else
4565: lt_nm_to_check="${ac_tool_prefix}nm"
4566: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4567: lt_nm_to_check="$lt_nm_to_check nm"
4568: fi
4569: for lt_tmp_nm in $lt_nm_to_check; do
4570: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4572: IFS="$lt_save_ifs"
4573: test -z "$ac_dir" && ac_dir=.
4574: tmp_nm="$ac_dir/$lt_tmp_nm"
4575: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4576: # Check to see if the nm accepts a BSD-compat flag.
4577: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4578: # nm: unknown option "B" ignored
4579: # Tru64's nm complains that /dev/null is an invalid object file
4580: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4581: */dev/null* | *'Invalid file or object type'*)
4582: lt_cv_path_NM="$tmp_nm -B"
4583: break
4584: ;;
4585: *)
4586: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4587: */dev/null*)
4588: lt_cv_path_NM="$tmp_nm -p"
4589: break
4590: ;;
4591: *)
4592: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4593: continue # so that we can try to find one that supports BSD flags
4594: ;;
4595: esac
4596: ;;
4597: esac
4598: fi
4599: done
4600: IFS="$lt_save_ifs"
4601: done
4602: : ${lt_cv_path_NM=no}
4603: fi
4604: fi
4605: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4606: echo "${ECHO_T}$lt_cv_path_NM" >&6
4607: if test "$lt_cv_path_NM" != "no"; then
4608: NM="$lt_cv_path_NM"
4609: else
4610: # Didn't find any BSD compatible name lister, look for dumpbin.
4611: if test -n "$DUMPBIN"; then :
4612: # Let the user override the test.
4613: else
4614: if test -n "$ac_tool_prefix"; then
4615: for ac_prog in dumpbin "link -dump"
4616: do
4617: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4618: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4619: echo "$as_me:$LINENO: checking for $ac_word" >&5
4620: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4622: echo $ECHO_N "(cached) $ECHO_C" >&6
4623: else
4624: if test -n "$DUMPBIN"; then
4625: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4626: else
4627: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628: for as_dir in $PATH
4629: do
4630: IFS=$as_save_IFS
4631: test -z "$as_dir" && as_dir=.
4632: for ac_exec_ext in '' $ac_executable_extensions; do
4633: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4635: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636: break 2
4637: fi
4638: done
4639: done
4640:
4641: fi
4642: fi
4643: DUMPBIN=$ac_cv_prog_DUMPBIN
4644: if test -n "$DUMPBIN"; then
4645: echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4646: echo "${ECHO_T}$DUMPBIN" >&6
4647: else
4648: echo "$as_me:$LINENO: result: no" >&5
4649: echo "${ECHO_T}no" >&6
4650: fi
4651:
4652: test -n "$DUMPBIN" && break
4653: done
4654: fi
4655: if test -z "$DUMPBIN"; then
4656: ac_ct_DUMPBIN=$DUMPBIN
4657: for ac_prog in dumpbin "link -dump"
4658: do
4659: # Extract the first word of "$ac_prog", so it can be a program name with args.
4660: set dummy $ac_prog; ac_word=$2
4661: echo "$as_me:$LINENO: checking for $ac_word" >&5
4662: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4663: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4664: echo $ECHO_N "(cached) $ECHO_C" >&6
4665: else
4666: if test -n "$ac_ct_DUMPBIN"; then
4667: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4668: else
4669: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670: for as_dir in $PATH
4671: do
4672: IFS=$as_save_IFS
4673: test -z "$as_dir" && as_dir=.
4674: for ac_exec_ext in '' $ac_executable_extensions; do
4675: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4677: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678: break 2
4679: fi
4680: done
4681: done
4682:
4683: fi
4684: fi
4685: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4686: if test -n "$ac_ct_DUMPBIN"; then
4687: echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4688: echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4689: else
4690: echo "$as_me:$LINENO: result: no" >&5
4691: echo "${ECHO_T}no" >&6
4692: fi
4693:
4694: test -n "$ac_ct_DUMPBIN" && break
4695: done
4696: test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4697:
4698: DUMPBIN=$ac_ct_DUMPBIN
4699: fi
4700:
4701: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4702: *COFF*)
4703: DUMPBIN="$DUMPBIN -symbols"
4704: ;;
4705: *)
4706: DUMPBIN=:
4707: ;;
4708: esac
4709: fi
4710:
4711: if test "$DUMPBIN" != ":"; then
4712: NM="$DUMPBIN"
4713: fi
4714: fi
4715: test -z "$NM" && NM=nm
4716:
4717:
4718:
4719:
4720:
4721:
4722: echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4723: echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4724: if test "${lt_cv_nm_interface+set}" = set; then
4725: echo $ECHO_N "(cached) $ECHO_C" >&6
4726: else
4727: lt_cv_nm_interface="BSD nm"
4728: echo "int some_variable = 0;" > conftest.$ac_ext
4729: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4730: (eval "$ac_compile" 2>conftest.err)
4731: cat conftest.err >&5
4732: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4733: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4734: cat conftest.err >&5
4735: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4736: cat conftest.out >&5
4737: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4738: lt_cv_nm_interface="MS dumpbin"
4739: fi
4740: rm -f conftest*
4741: fi
4742: echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4743: echo "${ECHO_T}$lt_cv_nm_interface" >&6
4744:
4745: echo "$as_me:$LINENO: checking whether ln -s works" >&5
4746: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4747: LN_S=$as_ln_s
4748: if test "$LN_S" = "ln -s"; then
4749: echo "$as_me:$LINENO: result: yes" >&5
4750: echo "${ECHO_T}yes" >&6
4751: else
4752: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4753: echo "${ECHO_T}no, using $LN_S" >&6
4754: fi
4755:
4756: # find the maximum length of command line arguments
4757: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4758: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4759: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4760: echo $ECHO_N "(cached) $ECHO_C" >&6
4761: else
4762: i=0
4763: teststring="ABCD"
4764:
4765: case $build_os in
4766: msdosdjgpp*)
4767: # On DJGPP, this test can blow up pretty badly due to problems in libc
4768: # (any single argument exceeding 2000 bytes causes a buffer overrun
4769: # during glob expansion). Even if it were fixed, the result of this
4770: # check would be larger than it should be.
4771: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4772: ;;
4773:
4774: gnu*)
4775: # Under GNU Hurd, this test is not required because there is
4776: # no limit to the length of command line arguments.
4777: # Libtool will interpret -1 as no limit whatsoever
4778: lt_cv_sys_max_cmd_len=-1;
4779: ;;
4780:
4781: cygwin* | mingw* | cegcc*)
4782: # On Win9x/ME, this test blows up -- it succeeds, but takes
4783: # about 5 minutes as the teststring grows exponentially.
4784: # Worse, since 9x/ME are not pre-emptively multitasking,
4785: # you end up with a "frozen" computer, even though with patience
4786: # the test eventually succeeds (with a max line length of 256k).
4787: # Instead, let's just punt: use the minimum linelength reported by
4788: # all of the supported platforms: 8192 (on NT/2K/XP).
4789: lt_cv_sys_max_cmd_len=8192;
4790: ;;
4791:
4792: mint*)
4793: # On MiNT this can take a long time and run out of memory.
4794: lt_cv_sys_max_cmd_len=8192;
4795: ;;
4796:
4797: amigaos*)
4798: # On AmigaOS with pdksh, this test takes hours, literally.
4799: # So we just punt and use a minimum line length of 8192.
4800: lt_cv_sys_max_cmd_len=8192;
4801: ;;
4802:
4803: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4804: # This has been around since 386BSD, at least. Likely further.
4805: if test -x /sbin/sysctl; then
4806: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4807: elif test -x /usr/sbin/sysctl; then
4808: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4809: else
4810: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4811: fi
4812: # And add a safety zone
4813: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4814: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4815: ;;
4816:
4817: interix*)
4818: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4819: lt_cv_sys_max_cmd_len=196608
4820: ;;
4821:
4822: os2*)
4823: # The test takes a long time on OS/2.
4824: lt_cv_sys_max_cmd_len=8192
4825: ;;
4826:
4827: osf*)
4828: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4829: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4830: # nice to cause kernel panics so lets avoid the loop below.
4831: # First set a reasonable default.
4832: lt_cv_sys_max_cmd_len=16384
4833: #
4834: if test -x /sbin/sysconfig; then
4835: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4836: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4837: esac
4838: fi
4839: ;;
4840: sco3.2v5*)
4841: lt_cv_sys_max_cmd_len=102400
4842: ;;
4843: sysv5* | sco5v6* | sysv4.2uw2*)
4844: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4845: if test -n "$kargmax"; then
4846: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4847: else
4848: lt_cv_sys_max_cmd_len=32768
4849: fi
4850: ;;
4851: *)
4852: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4853: if test -n "$lt_cv_sys_max_cmd_len"; then
4854: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4855: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4856: else
4857: # Make teststring a little bigger before we do anything with it.
4858: # a 1K string should be a reasonable start.
4859: for i in 1 2 3 4 5 6 7 8 ; do
4860: teststring=$teststring$teststring
4861: done
4862: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4863: # If test is not a shell built-in, we'll probably end up computing a
4864: # maximum length that is only half of the actual maximum length, but
4865: # we can't tell.
4866: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4867: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4868: test $i != 17 # 1/2 MB should be enough
4869: do
4870: i=`expr $i + 1`
4871: teststring=$teststring$teststring
4872: done
4873: # Only check the string length outside the loop.
4874: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4875: teststring=
4876: # Add a significant safety factor because C++ compilers can tack on
4877: # massive amounts of additional arguments before passing them to the
4878: # linker. It appears as though 1/2 is a usable value.
4879: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4880: fi
4881: ;;
4882: esac
4883:
4884: fi
4885:
4886: if test -n $lt_cv_sys_max_cmd_len ; then
4887: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4888: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4889: else
4890: echo "$as_me:$LINENO: result: none" >&5
4891: echo "${ECHO_T}none" >&6
4892: fi
4893: max_cmd_len=$lt_cv_sys_max_cmd_len
4894:
4895:
4896:
4897:
4898:
4899:
4900: : ${CP="cp -f"}
4901: : ${MV="mv -f"}
4902: : ${RM="rm -f"}
4903:
4904: echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4905: echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4906: # Try some XSI features
4907: xsi_shell=no
4908: ( _lt_dummy="a/b/c"
4909: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4910: = c,a/b,b/c, \
4911: && eval 'test $(( 1 + 1 )) -eq 2 \
4912: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4913: && xsi_shell=yes
4914: echo "$as_me:$LINENO: result: $xsi_shell" >&5
4915: echo "${ECHO_T}$xsi_shell" >&6
4916:
4917:
4918: echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4919: echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4920: lt_shell_append=no
4921: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4922: >/dev/null 2>&1 \
4923: && lt_shell_append=yes
4924: echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4925: echo "${ECHO_T}$lt_shell_append" >&6
4926:
4927:
4928: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4929: lt_unset=unset
4930: else
4931: lt_unset=false
4932: fi
4933:
4934:
4935:
4936:
4937:
4938: # test EBCDIC or ASCII
4939: case `echo X|tr X '\101'` in
4940: A) # ASCII based system
4941: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4942: lt_SP2NL='tr \040 \012'
4943: lt_NL2SP='tr \015\012 \040\040'
4944: ;;
4945: *) # EBCDIC based system
4946: lt_SP2NL='tr \100 \n'
4947: lt_NL2SP='tr \r\n \100\100'
4948: ;;
4949: esac
4950:
4951:
4952:
4953:
4954:
4955:
4956:
4957:
4958:
4959: echo "$as_me:$LINENO: checking how to convert $build file names to $host format" >&5
4960: echo $ECHO_N "checking how to convert $build file names to $host format... $ECHO_C" >&6
4961: if test "${lt_cv_to_host_file_cmd+set}" = set; then
4962: echo $ECHO_N "(cached) $ECHO_C" >&6
4963: else
4964: case $host in
4965: *-*-mingw* )
4966: case $build in
4967: *-*-mingw* ) # actually msys
4968: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4969: ;;
4970: *-*-cygwin* )
4971: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4972: ;;
4973: * ) # otherwise, assume *nix
4974: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4975: ;;
4976: esac
4977: ;;
4978: *-*-cygwin* )
4979: case $build in
4980: *-*-mingw* ) # actually msys
4981: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4982: ;;
4983: *-*-cygwin* )
4984: lt_cv_to_host_file_cmd=func_convert_file_noop
4985: ;;
4986: * ) # otherwise, assume *nix
4987: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4988: ;;
4989: esac
4990: ;;
4991: * ) # unhandled hosts (and "normal" native builds)
4992: lt_cv_to_host_file_cmd=func_convert_file_noop
4993: ;;
4994: esac
4995:
4996: fi
4997:
4998: to_host_file_cmd=$lt_cv_to_host_file_cmd
4999: echo "$as_me:$LINENO: result: $lt_cv_to_host_file_cmd" >&5
5000: echo "${ECHO_T}$lt_cv_to_host_file_cmd" >&6
5001:
5002:
5003:
5004:
5005:
5006: echo "$as_me:$LINENO: checking how to convert $build file names to toolchain format" >&5
5007: echo $ECHO_N "checking how to convert $build file names to toolchain format... $ECHO_C" >&6
5008: if test "${lt_cv_to_tool_file_cmd+set}" = set; then
5009: echo $ECHO_N "(cached) $ECHO_C" >&6
5010: else
5011: #assume ordinary cross tools, or native build.
5012: lt_cv_to_tool_file_cmd=func_convert_file_noop
5013: case $host in
5014: *-*-mingw* )
5015: case $build in
5016: *-*-mingw* ) # actually msys
5017: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5018: ;;
5019: esac
5020: ;;
5021: esac
5022:
5023: fi
5024:
5025: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5026: echo "$as_me:$LINENO: result: $lt_cv_to_tool_file_cmd" >&5
5027: echo "${ECHO_T}$lt_cv_to_tool_file_cmd" >&6
5028:
5029:
5030:
5031:
5032:
5033: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5034: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5035: if test "${lt_cv_ld_reload_flag+set}" = set; then
5036: echo $ECHO_N "(cached) $ECHO_C" >&6
5037: else
5038: lt_cv_ld_reload_flag='-r'
5039: fi
5040: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5041: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5042: reload_flag=$lt_cv_ld_reload_flag
5043: case $reload_flag in
5044: "" | " "*) ;;
5045: *) reload_flag=" $reload_flag" ;;
5046: esac
5047: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048: case $host_os in
5049: cygwin* | mingw* | pw32* | cegcc*)
5050: if test "$GCC" != yes; then
5051: reload_cmds=false
5052: fi
5053: ;;
5054: darwin*)
5055: if test "$GCC" = yes; then
5056: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5057: else
5058: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5059: fi
5060: ;;
5061: esac
5062:
5063:
5064:
5065:
5066:
5067:
5068:
5069:
5070:
5071: if test -n "$ac_tool_prefix"; then
5072: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5073: set dummy ${ac_tool_prefix}objdump; ac_word=$2
5074: echo "$as_me:$LINENO: checking for $ac_word" >&5
5075: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5076: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5077: echo $ECHO_N "(cached) $ECHO_C" >&6
5078: else
5079: if test -n "$OBJDUMP"; then
5080: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5081: else
5082: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083: for as_dir in $PATH
5084: do
5085: IFS=$as_save_IFS
5086: test -z "$as_dir" && as_dir=.
5087: for ac_exec_ext in '' $ac_executable_extensions; do
5088: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5090: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091: break 2
5092: fi
5093: done
5094: done
5095:
5096: fi
5097: fi
5098: OBJDUMP=$ac_cv_prog_OBJDUMP
5099: if test -n "$OBJDUMP"; then
5100: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5101: echo "${ECHO_T}$OBJDUMP" >&6
5102: else
5103: echo "$as_me:$LINENO: result: no" >&5
5104: echo "${ECHO_T}no" >&6
5105: fi
5106:
5107: fi
5108: if test -z "$ac_cv_prog_OBJDUMP"; then
5109: ac_ct_OBJDUMP=$OBJDUMP
5110: # Extract the first word of "objdump", so it can be a program name with args.
5111: set dummy objdump; ac_word=$2
5112: echo "$as_me:$LINENO: checking for $ac_word" >&5
5113: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5115: echo $ECHO_N "(cached) $ECHO_C" >&6
5116: else
5117: if test -n "$ac_ct_OBJDUMP"; then
5118: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5119: else
5120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121: for as_dir in $PATH
5122: do
5123: IFS=$as_save_IFS
5124: test -z "$as_dir" && as_dir=.
5125: for ac_exec_ext in '' $ac_executable_extensions; do
5126: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5128: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129: break 2
5130: fi
5131: done
5132: done
5133:
5134: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5135: fi
5136: fi
5137: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5138: if test -n "$ac_ct_OBJDUMP"; then
5139: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5140: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5141: else
5142: echo "$as_me:$LINENO: result: no" >&5
5143: echo "${ECHO_T}no" >&6
5144: fi
5145:
5146: OBJDUMP=$ac_ct_OBJDUMP
5147: else
5148: OBJDUMP="$ac_cv_prog_OBJDUMP"
5149: fi
5150:
5151: test -z "$OBJDUMP" && OBJDUMP=objdump
5152:
5153:
5154:
5155:
5156:
5157:
5158: echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5159: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5160: if test "${lt_cv_deplibs_check_method+set}" = set; then
5161: echo $ECHO_N "(cached) $ECHO_C" >&6
5162: else
5163: lt_cv_file_magic_cmd='$MAGIC_CMD'
5164: lt_cv_file_magic_test_file=
5165: lt_cv_deplibs_check_method='unknown'
5166: # Need to set the preceding variable on all platforms that support
5167: # interlibrary dependencies.
5168: # 'none' -- dependencies not supported.
5169: # `unknown' -- same as none, but documents that we really don't know.
5170: # 'pass_all' -- all dependencies passed with no checks.
5171: # 'test_compile' -- check by making test program.
5172: # 'file_magic [[regex]]' -- check by looking for files in library path
5173: # which responds to the $file_magic_cmd with a given extended regex.
5174: # If you have `file' or equivalent on your system and you're not sure
5175: # whether `pass_all' will *always* work, you probably want this one.
5176:
5177: case $host_os in
5178: aix[4-9]*)
5179: lt_cv_deplibs_check_method=pass_all
5180: ;;
5181:
5182: beos*)
5183: lt_cv_deplibs_check_method=pass_all
5184: ;;
5185:
5186: bsdi[45]*)
5187: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5188: lt_cv_file_magic_cmd='/usr/bin/file -L'
5189: lt_cv_file_magic_test_file=/shlib/libc.so
5190: ;;
5191:
5192: cygwin*)
5193: # func_win32_libid is a shell function defined in ltmain.sh
5194: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5195: lt_cv_file_magic_cmd='func_win32_libid'
5196: ;;
5197:
5198: mingw* | pw32*)
5199: # Base MSYS/MinGW do not provide the 'file' command needed by
5200: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5201: # unless we find 'file', for example because we are cross-compiling.
5202: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5203: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5204: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5205: lt_cv_file_magic_cmd='func_win32_libid'
5206: else
5207: # Keep this pattern in sync with the one in func_win32_libid.
5208: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5209: lt_cv_file_magic_cmd='$OBJDUMP -f'
5210: fi
5211: ;;
5212:
5213: cegcc*)
5214: # use the weaker test based on 'objdump'. See mingw*.
5215: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5216: lt_cv_file_magic_cmd='$OBJDUMP -f'
5217: ;;
5218:
5219: darwin* | rhapsody*)
5220: lt_cv_deplibs_check_method=pass_all
5221: ;;
5222:
5223: freebsd* | dragonfly*)
5224: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5225: case $host_cpu in
5226: i*86 )
5227: # Not sure whether the presence of OpenBSD here was a mistake.
5228: # Let's accept both of them until this is cleared up.
5229: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5230: lt_cv_file_magic_cmd=/usr/bin/file
5231: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5232: ;;
5233: esac
5234: else
5235: lt_cv_deplibs_check_method=pass_all
5236: fi
5237: ;;
5238:
5239: gnu*)
5240: lt_cv_deplibs_check_method=pass_all
5241: ;;
5242:
5243: haiku*)
5244: lt_cv_deplibs_check_method=pass_all
5245: ;;
5246:
5247: hpux10.20* | hpux11*)
5248: lt_cv_file_magic_cmd=/usr/bin/file
5249: case $host_cpu in
5250: ia64*)
5251: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5252: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5253: ;;
5254: hppa*64*)
5255: 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]'
5256: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5257: ;;
5258: *)
5259: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5260: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5261: ;;
5262: esac
5263: ;;
5264:
5265: interix[3-9]*)
5266: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5267: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5268: ;;
5269:
5270: irix5* | irix6* | nonstopux*)
5271: case $LD in
5272: *-32|*"-32 ") libmagic=32-bit;;
5273: *-n32|*"-n32 ") libmagic=N32;;
5274: *-64|*"-64 ") libmagic=64-bit;;
5275: *) libmagic=never-match;;
5276: esac
5277: lt_cv_deplibs_check_method=pass_all
5278: ;;
5279:
5280: # This must be glibc/ELF.
5281: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5282: lt_cv_deplibs_check_method=pass_all
5283: ;;
5284:
5285: netbsd*)
5286: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5287: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288: else
5289: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5290: fi
5291: ;;
5292:
5293: newos6*)
5294: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5295: lt_cv_file_magic_cmd=/usr/bin/file
5296: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5297: ;;
5298:
5299: *nto* | *qnx*)
5300: lt_cv_deplibs_check_method=pass_all
5301: ;;
5302:
5303: openbsd*)
5304: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5305: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5306: else
5307: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5308: fi
5309: ;;
5310:
5311: osf3* | osf4* | osf5*)
5312: lt_cv_deplibs_check_method=pass_all
5313: ;;
5314:
5315: rdos*)
5316: lt_cv_deplibs_check_method=pass_all
5317: ;;
5318:
5319: solaris*)
5320: lt_cv_deplibs_check_method=pass_all
5321: ;;
5322:
5323: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5324: lt_cv_deplibs_check_method=pass_all
5325: ;;
5326:
5327: sysv4 | sysv4.3*)
5328: case $host_vendor in
5329: motorola)
5330: 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]'
5331: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5332: ;;
5333: ncr)
5334: lt_cv_deplibs_check_method=pass_all
5335: ;;
5336: sequent)
5337: lt_cv_file_magic_cmd='/bin/file'
5338: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5339: ;;
5340: sni)
5341: lt_cv_file_magic_cmd='/bin/file'
5342: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5343: lt_cv_file_magic_test_file=/lib/libc.so
5344: ;;
5345: siemens)
5346: lt_cv_deplibs_check_method=pass_all
5347: ;;
5348: pc)
5349: lt_cv_deplibs_check_method=pass_all
5350: ;;
5351: esac
5352: ;;
5353:
5354: tpf*)
5355: lt_cv_deplibs_check_method=pass_all
5356: ;;
5357: esac
5358:
5359: fi
5360: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5361: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5362:
5363: file_magic_glob=
5364: want_nocaseglob=no
5365: if test "$build" = "$host"; then
5366: case $host_os in
5367: mingw* | pw32*)
5368: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5369: want_nocaseglob=yes
5370: else
5371: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5372: fi
5373: ;;
5374: esac
5375: fi
5376:
5377: file_magic_cmd=$lt_cv_file_magic_cmd
5378: deplibs_check_method=$lt_cv_deplibs_check_method
5379: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5380:
5381:
5382:
5383:
5384:
5385:
5386:
5387:
5388:
5389:
5390:
5391:
5392:
5393:
5394:
5395:
5396:
5397:
5398:
5399:
5400:
5401:
5402: if test -n "$ac_tool_prefix"; then
5403: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5404: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5405: echo "$as_me:$LINENO: checking for $ac_word" >&5
5406: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5408: echo $ECHO_N "(cached) $ECHO_C" >&6
5409: else
5410: if test -n "$DLLTOOL"; then
5411: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5412: else
5413: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414: for as_dir in $PATH
5415: do
5416: IFS=$as_save_IFS
5417: test -z "$as_dir" && as_dir=.
5418: for ac_exec_ext in '' $ac_executable_extensions; do
5419: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5421: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422: break 2
5423: fi
5424: done
5425: done
5426:
5427: fi
5428: fi
5429: DLLTOOL=$ac_cv_prog_DLLTOOL
5430: if test -n "$DLLTOOL"; then
5431: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5432: echo "${ECHO_T}$DLLTOOL" >&6
5433: else
5434: echo "$as_me:$LINENO: result: no" >&5
5435: echo "${ECHO_T}no" >&6
5436: fi
5437:
5438: fi
5439: if test -z "$ac_cv_prog_DLLTOOL"; then
5440: ac_ct_DLLTOOL=$DLLTOOL
5441: # Extract the first word of "dlltool", so it can be a program name with args.
5442: set dummy dlltool; ac_word=$2
5443: echo "$as_me:$LINENO: checking for $ac_word" >&5
5444: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5446: echo $ECHO_N "(cached) $ECHO_C" >&6
5447: else
5448: if test -n "$ac_ct_DLLTOOL"; then
5449: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5450: else
5451: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452: for as_dir in $PATH
5453: do
5454: IFS=$as_save_IFS
5455: test -z "$as_dir" && as_dir=.
5456: for ac_exec_ext in '' $ac_executable_extensions; do
5457: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5459: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460: break 2
5461: fi
5462: done
5463: done
5464:
5465: test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5466: fi
5467: fi
5468: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5469: if test -n "$ac_ct_DLLTOOL"; then
5470: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5471: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5472: else
5473: echo "$as_me:$LINENO: result: no" >&5
5474: echo "${ECHO_T}no" >&6
5475: fi
5476:
5477: DLLTOOL=$ac_ct_DLLTOOL
5478: else
5479: DLLTOOL="$ac_cv_prog_DLLTOOL"
5480: fi
5481:
5482: test -z "$DLLTOOL" && DLLTOOL=dlltool
5483:
5484:
5485:
5486:
5487:
5488:
5489:
5490: echo "$as_me:$LINENO: checking how to associate runtime and link libraries" >&5
5491: echo $ECHO_N "checking how to associate runtime and link libraries... $ECHO_C" >&6
5492: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then
5493: echo $ECHO_N "(cached) $ECHO_C" >&6
5494: else
5495: lt_cv_sharedlib_from_linklib_cmd='unknown'
5496:
5497: case $host_os in
5498: cygwin* | mingw* | pw32* | cegcc*)
5499: # two different shell functions defined in ltmain.sh
5500: # decide which to use based on capabilities of $DLLTOOL
5501: case `$DLLTOOL --help 2>&1` in
5502: *--identify-strict*)
5503: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5504: ;;
5505: *)
5506: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5507: ;;
5508: esac
5509: ;;
5510: *)
5511: # fallback: assume linklib IS sharedlib
5512: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5513: ;;
5514: esac
5515:
5516: fi
5517: echo "$as_me:$LINENO: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5518: echo "${ECHO_T}$lt_cv_sharedlib_from_linklib_cmd" >&6
5519: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5520: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5521:
5522:
5523:
5524:
5525:
5526:
5527:
5528: if test -n "$ac_tool_prefix"; then
5529: for ac_prog in ar
5530: do
5531: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533: echo "$as_me:$LINENO: checking for $ac_word" >&5
5534: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535: if test "${ac_cv_prog_AR+set}" = set; then
5536: echo $ECHO_N "(cached) $ECHO_C" >&6
5537: else
5538: if test -n "$AR"; then
5539: ac_cv_prog_AR="$AR" # Let the user override the test.
5540: else
5541: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542: for as_dir in $PATH
5543: do
5544: IFS=$as_save_IFS
5545: test -z "$as_dir" && as_dir=.
5546: for ac_exec_ext in '' $ac_executable_extensions; do
5547: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5549: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550: break 2
5551: fi
5552: done
5553: done
5554:
5555: fi
5556: fi
5557: AR=$ac_cv_prog_AR
5558: if test -n "$AR"; then
5559: echo "$as_me:$LINENO: result: $AR" >&5
5560: echo "${ECHO_T}$AR" >&6
5561: else
5562: echo "$as_me:$LINENO: result: no" >&5
5563: echo "${ECHO_T}no" >&6
5564: fi
5565:
5566: test -n "$AR" && break
5567: done
5568: fi
5569: if test -z "$AR"; then
5570: ac_ct_AR=$AR
5571: for ac_prog in ar
5572: do
5573: # Extract the first word of "$ac_prog", so it can be a program name with args.
5574: set dummy $ac_prog; ac_word=$2
5575: echo "$as_me:$LINENO: checking for $ac_word" >&5
5576: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5577: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5578: echo $ECHO_N "(cached) $ECHO_C" >&6
5579: else
5580: if test -n "$ac_ct_AR"; then
5581: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5582: else
5583: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584: for as_dir in $PATH
5585: do
5586: IFS=$as_save_IFS
5587: test -z "$as_dir" && as_dir=.
5588: for ac_exec_ext in '' $ac_executable_extensions; do
5589: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590: ac_cv_prog_ac_ct_AR="$ac_prog"
5591: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592: break 2
5593: fi
5594: done
5595: done
5596:
5597: fi
5598: fi
5599: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5600: if test -n "$ac_ct_AR"; then
5601: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5602: echo "${ECHO_T}$ac_ct_AR" >&6
5603: else
5604: echo "$as_me:$LINENO: result: no" >&5
5605: echo "${ECHO_T}no" >&6
5606: fi
5607:
5608: test -n "$ac_ct_AR" && break
5609: done
5610: test -n "$ac_ct_AR" || ac_ct_AR="false"
5611:
5612: AR=$ac_ct_AR
5613: fi
5614:
5615: : ${AR=ar}
5616: : ${AR_FLAGS=cru}
5617:
5618:
5619:
5620:
5621:
5622:
5623:
5624:
5625:
5626:
5627:
5628: echo "$as_me:$LINENO: checking for archiver @FILE support" >&5
5629: echo $ECHO_N "checking for archiver @FILE support... $ECHO_C" >&6
5630: if test "${lt_cv_ar_at_file+set}" = set; then
5631: echo $ECHO_N "(cached) $ECHO_C" >&6
5632: else
5633: lt_cv_ar_at_file=no
5634: cat >conftest.$ac_ext <<_ACEOF
5635: /* confdefs.h. */
5636: _ACEOF
5637: cat confdefs.h >>conftest.$ac_ext
5638: cat >>conftest.$ac_ext <<_ACEOF
5639: /* end confdefs.h. */
5640:
5641: int
5642: main ()
5643: {
5644:
5645: ;
5646: return 0;
5647: }
5648: _ACEOF
5649: rm -f conftest.$ac_objext
5650: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651: (eval $ac_compile) 2>conftest.er1
5652: ac_status=$?
5653: grep -v '^ *+' conftest.er1 >conftest.err
5654: rm -f conftest.er1
5655: cat conftest.err >&5
5656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657: (exit $ac_status); } &&
5658: { ac_try='test -z "$ac_c_werror_flag"
5659: || test ! -s conftest.err'
5660: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661: (eval $ac_try) 2>&5
5662: ac_status=$?
5663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664: (exit $ac_status); }; } &&
5665: { ac_try='test -s conftest.$ac_objext'
5666: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667: (eval $ac_try) 2>&5
5668: ac_status=$?
5669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670: (exit $ac_status); }; }; then
5671: echo conftest.$ac_objext > conftest.lst
5672: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5673: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5674: (eval $lt_ar_try) 2>&5
5675: ac_status=$?
5676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677: (exit $ac_status); }
5678: if test "$ac_status" -eq 0; then
5679: # Ensure the archiver fails upon bogus file names.
5680: rm -f conftest.$ac_objext libconftest.a
5681: { (eval echo "$as_me:$LINENO: \"$lt_ar_try\"") >&5
5682: (eval $lt_ar_try) 2>&5
5683: ac_status=$?
5684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685: (exit $ac_status); }
5686: if test "$ac_status" -ne 0; then
5687: lt_cv_ar_at_file=@
5688: fi
5689: fi
5690: rm -f conftest.* libconftest.a
5691:
5692: else
5693: echo "$as_me: failed program was:" >&5
5694: sed 's/^/| /' conftest.$ac_ext >&5
5695:
5696: fi
5697: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5698:
5699: fi
5700: echo "$as_me:$LINENO: result: $lt_cv_ar_at_file" >&5
5701: echo "${ECHO_T}$lt_cv_ar_at_file" >&6
5702:
5703: if test "x$lt_cv_ar_at_file" = xno; then
5704: archiver_list_spec=
5705: else
5706: archiver_list_spec=$lt_cv_ar_at_file
5707: fi
5708:
5709:
5710:
5711:
5712:
5713:
5714:
5715: if test -n "$ac_tool_prefix"; then
5716: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717: set dummy ${ac_tool_prefix}strip; ac_word=$2
5718: echo "$as_me:$LINENO: checking for $ac_word" >&5
5719: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5720: if test "${ac_cv_prog_STRIP+set}" = set; then
5721: echo $ECHO_N "(cached) $ECHO_C" >&6
5722: else
5723: if test -n "$STRIP"; then
5724: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725: else
5726: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727: for as_dir in $PATH
5728: do
5729: IFS=$as_save_IFS
5730: test -z "$as_dir" && as_dir=.
5731: for ac_exec_ext in '' $ac_executable_extensions; do
5732: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735: break 2
5736: fi
5737: done
5738: done
5739:
5740: fi
5741: fi
5742: STRIP=$ac_cv_prog_STRIP
5743: if test -n "$STRIP"; then
5744: echo "$as_me:$LINENO: result: $STRIP" >&5
5745: echo "${ECHO_T}$STRIP" >&6
5746: else
5747: echo "$as_me:$LINENO: result: no" >&5
5748: echo "${ECHO_T}no" >&6
5749: fi
5750:
5751: fi
5752: if test -z "$ac_cv_prog_STRIP"; then
5753: ac_ct_STRIP=$STRIP
5754: # Extract the first word of "strip", so it can be a program name with args.
5755: set dummy strip; ac_word=$2
5756: echo "$as_me:$LINENO: checking for $ac_word" >&5
5757: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5759: echo $ECHO_N "(cached) $ECHO_C" >&6
5760: else
5761: if test -n "$ac_ct_STRIP"; then
5762: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5763: else
5764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765: for as_dir in $PATH
5766: do
5767: IFS=$as_save_IFS
5768: test -z "$as_dir" && as_dir=.
5769: for ac_exec_ext in '' $ac_executable_extensions; do
5770: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771: ac_cv_prog_ac_ct_STRIP="strip"
5772: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773: break 2
5774: fi
5775: done
5776: done
5777:
5778: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5779: fi
5780: fi
5781: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5782: if test -n "$ac_ct_STRIP"; then
5783: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5784: echo "${ECHO_T}$ac_ct_STRIP" >&6
5785: else
5786: echo "$as_me:$LINENO: result: no" >&5
5787: echo "${ECHO_T}no" >&6
5788: fi
5789:
5790: STRIP=$ac_ct_STRIP
5791: else
5792: STRIP="$ac_cv_prog_STRIP"
5793: fi
5794:
5795: test -z "$STRIP" && STRIP=:
5796:
5797:
5798:
5799:
5800:
5801:
5802: if test -n "$ac_tool_prefix"; then
5803: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5804: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5805: echo "$as_me:$LINENO: checking for $ac_word" >&5
5806: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807: if test "${ac_cv_prog_RANLIB+set}" = set; then
5808: echo $ECHO_N "(cached) $ECHO_C" >&6
5809: else
5810: if test -n "$RANLIB"; then
5811: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5812: else
5813: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814: for as_dir in $PATH
5815: do
5816: IFS=$as_save_IFS
5817: test -z "$as_dir" && as_dir=.
5818: for ac_exec_ext in '' $ac_executable_extensions; do
5819: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5821: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822: break 2
5823: fi
5824: done
5825: done
5826:
5827: fi
5828: fi
5829: RANLIB=$ac_cv_prog_RANLIB
5830: if test -n "$RANLIB"; then
5831: echo "$as_me:$LINENO: result: $RANLIB" >&5
5832: echo "${ECHO_T}$RANLIB" >&6
5833: else
5834: echo "$as_me:$LINENO: result: no" >&5
5835: echo "${ECHO_T}no" >&6
5836: fi
5837:
5838: fi
5839: if test -z "$ac_cv_prog_RANLIB"; then
5840: ac_ct_RANLIB=$RANLIB
5841: # Extract the first word of "ranlib", so it can be a program name with args.
5842: set dummy ranlib; ac_word=$2
5843: echo "$as_me:$LINENO: checking for $ac_word" >&5
5844: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5846: echo $ECHO_N "(cached) $ECHO_C" >&6
5847: else
5848: if test -n "$ac_ct_RANLIB"; then
5849: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5850: else
5851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852: for as_dir in $PATH
5853: do
5854: IFS=$as_save_IFS
5855: test -z "$as_dir" && as_dir=.
5856: for ac_exec_ext in '' $ac_executable_extensions; do
5857: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858: ac_cv_prog_ac_ct_RANLIB="ranlib"
5859: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860: break 2
5861: fi
5862: done
5863: done
5864:
5865: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5866: fi
5867: fi
5868: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5869: if test -n "$ac_ct_RANLIB"; then
5870: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5871: echo "${ECHO_T}$ac_ct_RANLIB" >&6
5872: else
5873: echo "$as_me:$LINENO: result: no" >&5
5874: echo "${ECHO_T}no" >&6
5875: fi
5876:
5877: RANLIB=$ac_ct_RANLIB
5878: else
5879: RANLIB="$ac_cv_prog_RANLIB"
5880: fi
5881:
5882: test -z "$RANLIB" && RANLIB=:
5883:
5884:
5885:
5886:
5887:
5888:
5889: # Determine commands to create old-style static archives.
5890: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5891: old_postinstall_cmds='chmod 644 $oldlib'
5892: old_postuninstall_cmds=
5893:
5894: if test -n "$RANLIB"; then
5895: case $host_os in
5896: openbsd*)
5897: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5898: ;;
5899: *)
5900: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5901: ;;
5902: esac
5903: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5904: fi
5905:
5906: case $host_os in
5907: darwin*)
5908: lock_old_archive_extraction=yes ;;
5909: *)
5910: lock_old_archive_extraction=no ;;
5911: esac
5912:
5913:
5914:
5915:
5916:
5917:
5918:
5919:
5920:
5921:
5922:
5923:
5924:
5925:
5926:
5927:
5928:
5929:
5930:
5931:
5932:
5933:
5934:
5935:
5936:
5937:
5938:
5939:
5940:
5941:
5942:
5943:
5944:
5945:
5946:
5947:
5948:
5949:
5950:
5951: # If no C compiler was specified, use CC.
5952: LTCC=${LTCC-"$CC"}
5953:
5954: # If no C compiler flags were specified, use CFLAGS.
5955: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5956:
5957: # Allow CC to be a program name with arguments.
5958: compiler=$CC
5959:
5960:
5961: # Check for command to grab the raw symbol name followed by C symbol from nm.
5962: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5963: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5964: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5965: echo $ECHO_N "(cached) $ECHO_C" >&6
5966: else
5967:
5968: # These are sane defaults that work on at least a few old systems.
5969: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5970:
5971: # Character class describing NM global symbol codes.
5972: symcode='[BCDEGRST]'
5973:
5974: # Regexp to match symbols that can be accessed directly from C.
5975: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5976:
5977: # Define system-specific variables.
5978: case $host_os in
5979: aix*)
5980: symcode='[BCDT]'
5981: ;;
5982: cygwin* | mingw* | pw32* | cegcc*)
5983: symcode='[ABCDGISTW]'
5984: ;;
5985: hpux*)
5986: if test "$host_cpu" = ia64; then
5987: symcode='[ABCDEGRST]'
5988: fi
5989: ;;
5990: irix* | nonstopux*)
5991: symcode='[BCDEGRST]'
5992: ;;
5993: osf*)
5994: symcode='[BCDEGQRST]'
5995: ;;
5996: solaris*)
5997: symcode='[BDRT]'
5998: ;;
5999: sco3.2v5*)
6000: symcode='[DT]'
6001: ;;
6002: sysv4.2uw2*)
6003: symcode='[DT]'
6004: ;;
6005: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6006: symcode='[ABDT]'
6007: ;;
6008: sysv4)
6009: symcode='[DFNSTU]'
6010: ;;
6011: esac
6012:
6013: # If we're using GNU nm, then use its standard symbol codes.
6014: case `$NM -V 2>&1` in
6015: *GNU* | *'with BFD'*)
6016: symcode='[ABCDGIRSTW]' ;;
6017: esac
6018:
6019: # Transform an extracted symbol line into a proper C declaration.
6020: # Some systems (esp. on ia64) link data and code symbols differently,
6021: # so use this general approach.
6022: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6023:
6024: # Transform an extracted symbol line into symbol name and symbol address
6025: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6026: 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'"
6027:
6028: # Handle CRLF in mingw tool chain
6029: opt_cr=
6030: case $build_os in
6031: mingw*)
6032: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6033: ;;
6034: esac
6035:
6036: # Try without a prefix underscore, then with it.
6037: for ac_symprfx in "" "_"; do
6038:
6039: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6040: symxfrm="\\1 $ac_symprfx\\2 \\2"
6041:
6042: # Write the raw and C identifiers.
6043: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6044: # Fake it for dumpbin and say T for any non-static function
6045: # and D for any global variable.
6046: # Also find C++ and __fastcall symbols from MSVC++,
6047: # which start with @ or ?.
6048: lt_cv_sys_global_symbol_pipe="$AWK '"\
6049: " {last_section=section; section=\$ 3};"\
6050: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6051: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6052: " \$ 0!~/External *\|/{next};"\
6053: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6054: " {if(hide[section]) next};"\
6055: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6056: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6057: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6058: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6059: " ' prfx=^$ac_symprfx"
6060: else
6061: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6062: fi
6063: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6064:
6065: # Check to see that the pipe works correctly.
6066: pipe_works=no
6067:
6068: rm -f conftest*
6069: cat > conftest.$ac_ext <<_LT_EOF
6070: #ifdef __cplusplus
6071: extern "C" {
6072: #endif
6073: char nm_test_var;
6074: void nm_test_func(void);
6075: void nm_test_func(void){}
6076: #ifdef __cplusplus
6077: }
6078: #endif
6079: int main(){nm_test_var='a';nm_test_func();return(0);}
6080: _LT_EOF
6081:
6082: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083: (eval $ac_compile) 2>&5
6084: ac_status=$?
6085: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086: (exit $ac_status); }; then
6087: # Now try to grab the symbols.
6088: nlist=conftest.nm
6089: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
6090: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6091: ac_status=$?
6092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093: (exit $ac_status); } && test -s "$nlist"; then
6094: # Try sorting and uniquifying the output.
6095: if sort "$nlist" | uniq > "$nlist"T; then
6096: mv -f "$nlist"T "$nlist"
6097: else
6098: rm -f "$nlist"T
6099: fi
6100:
6101: # Make sure that we snagged all the symbols we need.
6102: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6103: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6104: cat <<_LT_EOF > conftest.$ac_ext
6105: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6106: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6107: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6108: relocations are performed -- see ld's documentation on pseudo-relocs. */
6109: # define LT_DLSYM_CONST
6110: #elif defined(__osf__)
6111: /* This system does not cope well with relocations in const data. */
6112: # define LT_DLSYM_CONST
6113: #else
6114: # define LT_DLSYM_CONST const
6115: #endif
6116:
6117: #ifdef __cplusplus
6118: extern "C" {
6119: #endif
6120:
6121: _LT_EOF
6122: # Now generate the symbol file.
6123: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6124:
6125: cat <<_LT_EOF >> conftest.$ac_ext
6126:
6127: /* The mapping between symbol names and symbols. */
6128: LT_DLSYM_CONST struct {
6129: const char *name;
6130: void *address;
6131: }
6132: lt__PROGRAM__LTX_preloaded_symbols[] =
6133: {
6134: { "@PROGRAM@", (void *) 0 },
6135: _LT_EOF
6136: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6137: cat <<\_LT_EOF >> conftest.$ac_ext
6138: {0, (void *) 0}
6139: };
6140:
6141: /* This works around a problem in FreeBSD linker */
6142: #ifdef FREEBSD_WORKAROUND
6143: static const void *lt_preloaded_setup() {
6144: return lt__PROGRAM__LTX_preloaded_symbols;
6145: }
6146: #endif
6147:
6148: #ifdef __cplusplus
6149: }
6150: #endif
6151: _LT_EOF
6152: # Now try linking the two files.
6153: mv conftest.$ac_objext conftstm.$ac_objext
6154: lt_globsym_save_LIBS=$LIBS
6155: lt_globsym_save_CFLAGS=$CFLAGS
6156: LIBS="conftstm.$ac_objext"
6157: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6158: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159: (eval $ac_link) 2>&5
6160: ac_status=$?
6161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6163: pipe_works=yes
6164: fi
6165: LIBS=$lt_globsym_save_LIBS
6166: CFLAGS=$lt_globsym_save_CFLAGS
6167: else
6168: echo "cannot find nm_test_func in $nlist" >&5
6169: fi
6170: else
6171: echo "cannot find nm_test_var in $nlist" >&5
6172: fi
6173: else
6174: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6175: fi
6176: else
6177: echo "$progname: failed program was:" >&5
6178: cat conftest.$ac_ext >&5
6179: fi
6180: rm -rf conftest* conftst*
6181:
6182: # Do not use the global_symbol_pipe unless it works.
6183: if test "$pipe_works" = yes; then
6184: break
6185: else
6186: lt_cv_sys_global_symbol_pipe=
6187: fi
6188: done
6189:
6190: fi
6191:
6192: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6193: lt_cv_sys_global_symbol_to_cdecl=
6194: fi
6195: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6196: echo "$as_me:$LINENO: result: failed" >&5
6197: echo "${ECHO_T}failed" >&6
6198: else
6199: echo "$as_me:$LINENO: result: ok" >&5
6200: echo "${ECHO_T}ok" >&6
6201: fi
6202:
6203: # Response file support.
6204: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6205: nm_file_list_spec='@'
6206: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6207: nm_file_list_spec='@'
6208: fi
6209:
6210:
6211:
6212:
6213:
6214:
6215:
6216:
6217:
6218:
6219:
6220:
6221:
6222:
6223:
6224:
6225:
6226:
6227:
6228:
6229:
6230:
6231:
6232:
6233:
6234:
6235:
6236: echo "$as_me:$LINENO: checking for sysroot" >&5
6237: echo $ECHO_N "checking for sysroot... $ECHO_C" >&6
6238:
6239: # Check whether --with-sysroot or --without-sysroot was given.
6240: if test "${with_sysroot+set}" = set; then
6241: withval="$with_sysroot"
6242:
6243: else
6244: with_sysroot=no
6245: fi;
6246:
6247: lt_sysroot=
6248: case ${with_sysroot} in #(
6249: yes)
6250: if test "$GCC" = yes; then
6251: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6252: fi
6253: ;; #(
6254: /*)
6255: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6256: ;; #(
6257: no|'')
6258: ;; #(
6259: *)
6260: echo "$as_me:$LINENO: result: ${with_sysroot}" >&5
6261: echo "${ECHO_T}${with_sysroot}" >&6
6262: { { echo "$as_me:$LINENO: error: The sysroot must be an absolute path." >&5
6263: echo "$as_me: error: The sysroot must be an absolute path." >&2;}
6264: { (exit 1); exit 1; }; }
6265: ;;
6266: esac
6267:
6268: echo "$as_me:$LINENO: result: ${lt_sysroot:-no}" >&5
6269: echo "${ECHO_T}${lt_sysroot:-no}" >&6
6270:
6271:
6272:
6273:
6274:
6275: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6276: if test "${enable_libtool_lock+set}" = set; then
6277: enableval="$enable_libtool_lock"
6278:
6279: fi;
6280: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6281:
6282: # Some flags need to be propagated to the compiler or linker for good
6283: # libtool support.
6284: case $host in
6285: ia64-*-hpux*)
6286: # Find out which ABI we are using.
6287: echo 'int i;' > conftest.$ac_ext
6288: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289: (eval $ac_compile) 2>&5
6290: ac_status=$?
6291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292: (exit $ac_status); }; then
6293: case `/usr/bin/file conftest.$ac_objext` in
6294: *ELF-32*)
6295: HPUX_IA64_MODE="32"
6296: ;;
6297: *ELF-64*)
6298: HPUX_IA64_MODE="64"
6299: ;;
6300: esac
6301: fi
6302: rm -rf conftest*
6303: ;;
6304: *-*-irix6*)
6305: # Find out which ABI we are using.
6306: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6307: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308: (eval $ac_compile) 2>&5
6309: ac_status=$?
6310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311: (exit $ac_status); }; then
6312: if test "$lt_cv_prog_gnu_ld" = yes; then
6313: case `/usr/bin/file conftest.$ac_objext` in
6314: *32-bit*)
6315: LD="${LD-ld} -melf32bsmip"
6316: ;;
6317: *N32*)
6318: LD="${LD-ld} -melf32bmipn32"
6319: ;;
6320: *64-bit*)
6321: LD="${LD-ld} -melf64bmip"
6322: ;;
6323: esac
6324: else
6325: case `/usr/bin/file conftest.$ac_objext` in
6326: *32-bit*)
6327: LD="${LD-ld} -32"
6328: ;;
6329: *N32*)
6330: LD="${LD-ld} -n32"
6331: ;;
6332: *64-bit*)
6333: LD="${LD-ld} -64"
6334: ;;
6335: esac
6336: fi
6337: fi
6338: rm -rf conftest*
6339: ;;
6340:
6341: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6342: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6343: # Find out which ABI we are using.
6344: echo 'int i;' > conftest.$ac_ext
6345: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346: (eval $ac_compile) 2>&5
6347: ac_status=$?
6348: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349: (exit $ac_status); }; then
6350: case `/usr/bin/file conftest.o` in
6351: *32-bit*)
6352: case $host in
6353: x86_64-*kfreebsd*-gnu)
6354: LD="${LD-ld} -m elf_i386_fbsd"
6355: ;;
6356: x86_64-*linux*)
6357: LD="${LD-ld} -m elf_i386"
6358: ;;
6359: ppc64-*linux*|powerpc64-*linux*)
6360: LD="${LD-ld} -m elf32ppclinux"
6361: ;;
6362: s390x-*linux*)
6363: LD="${LD-ld} -m elf_s390"
6364: ;;
6365: sparc64-*linux*)
6366: LD="${LD-ld} -m elf32_sparc"
6367: ;;
6368: esac
6369: ;;
6370: *64-bit*)
6371: case $host in
6372: x86_64-*kfreebsd*-gnu)
6373: LD="${LD-ld} -m elf_x86_64_fbsd"
6374: ;;
6375: x86_64-*linux*)
6376: LD="${LD-ld} -m elf_x86_64"
6377: ;;
6378: ppc*-*linux*|powerpc*-*linux*)
6379: LD="${LD-ld} -m elf64ppc"
6380: ;;
6381: s390*-*linux*|s390*-*tpf*)
6382: LD="${LD-ld} -m elf64_s390"
6383: ;;
6384: sparc*-*linux*)
6385: LD="${LD-ld} -m elf64_sparc"
6386: ;;
6387: esac
6388: ;;
6389: esac
6390: fi
6391: rm -rf conftest*
6392: ;;
6393:
6394: *-*-sco3.2v5*)
6395: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6396: SAVE_CFLAGS="$CFLAGS"
6397: CFLAGS="$CFLAGS -belf"
6398: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6399: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6400: if test "${lt_cv_cc_needs_belf+set}" = set; then
6401: echo $ECHO_N "(cached) $ECHO_C" >&6
6402: else
6403: ac_ext=c
6404: ac_cpp='$CPP $CPPFLAGS'
6405: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408:
6409: cat >conftest.$ac_ext <<_ACEOF
6410: /* confdefs.h. */
6411: _ACEOF
6412: cat confdefs.h >>conftest.$ac_ext
6413: cat >>conftest.$ac_ext <<_ACEOF
6414: /* end confdefs.h. */
6415:
6416: int
6417: main ()
6418: {
6419:
6420: ;
6421: return 0;
6422: }
6423: _ACEOF
6424: rm -f conftest.$ac_objext conftest$ac_exeext
6425: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426: (eval $ac_link) 2>conftest.er1
6427: ac_status=$?
6428: grep -v '^ *+' conftest.er1 >conftest.err
6429: rm -f conftest.er1
6430: cat conftest.err >&5
6431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432: (exit $ac_status); } &&
6433: { ac_try='test -z "$ac_c_werror_flag"
6434: || test ! -s conftest.err'
6435: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436: (eval $ac_try) 2>&5
6437: ac_status=$?
6438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439: (exit $ac_status); }; } &&
6440: { ac_try='test -s conftest$ac_exeext'
6441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442: (eval $ac_try) 2>&5
6443: ac_status=$?
6444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445: (exit $ac_status); }; }; then
6446: lt_cv_cc_needs_belf=yes
6447: else
6448: echo "$as_me: failed program was:" >&5
6449: sed 's/^/| /' conftest.$ac_ext >&5
6450:
6451: lt_cv_cc_needs_belf=no
6452: fi
6453: rm -f conftest.err conftest.$ac_objext \
6454: conftest$ac_exeext conftest.$ac_ext
6455: ac_ext=c
6456: ac_cpp='$CPP $CPPFLAGS'
6457: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6460:
6461: fi
6462: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6463: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6464: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6465: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6466: CFLAGS="$SAVE_CFLAGS"
6467: fi
6468: ;;
6469: *-*solaris*)
6470: # Find out which ABI we are using.
6471: echo 'int i;' > conftest.$ac_ext
6472: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473: (eval $ac_compile) 2>&5
6474: ac_status=$?
6475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476: (exit $ac_status); }; then
6477: case `/usr/bin/file conftest.o` in
6478: *64-bit*)
6479: case $lt_cv_prog_gnu_ld in
6480: yes*)
6481: case $host in
6482: i?86-*-solaris*)
6483: LD="${LD-ld} -m elf_x86_64"
6484: ;;
6485: sparc*-*-solaris*)
6486: LD="${LD-ld} -m elf64_sparc"
6487: ;;
6488: esac
6489: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6490: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6491: LD="${LD-ld}_sol2"
6492: fi
6493: ;;
6494: *)
6495: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6496: LD="${LD-ld} -64"
6497: fi
6498: ;;
6499: esac
6500: ;;
6501: esac
6502: fi
6503: rm -rf conftest*
6504: ;;
6505: esac
6506:
6507: need_locks="$enable_libtool_lock"
6508:
6509: if test -n "$ac_tool_prefix"; then
6510: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6511: set dummy ${ac_tool_prefix}mt; ac_word=$2
6512: echo "$as_me:$LINENO: checking for $ac_word" >&5
6513: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then
6515: echo $ECHO_N "(cached) $ECHO_C" >&6
6516: else
6517: if test -n "$MANIFEST_TOOL"; then
6518: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6519: else
6520: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521: for as_dir in $PATH
6522: do
6523: IFS=$as_save_IFS
6524: test -z "$as_dir" && as_dir=.
6525: for ac_exec_ext in '' $ac_executable_extensions; do
6526: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6528: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529: break 2
6530: fi
6531: done
6532: done
6533:
6534: fi
6535: fi
6536: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6537: if test -n "$MANIFEST_TOOL"; then
6538: echo "$as_me:$LINENO: result: $MANIFEST_TOOL" >&5
6539: echo "${ECHO_T}$MANIFEST_TOOL" >&6
6540: else
6541: echo "$as_me:$LINENO: result: no" >&5
6542: echo "${ECHO_T}no" >&6
6543: fi
6544:
6545: fi
6546: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6547: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6548: # Extract the first word of "mt", so it can be a program name with args.
6549: set dummy mt; ac_word=$2
6550: echo "$as_me:$LINENO: checking for $ac_word" >&5
6551: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then
6553: echo $ECHO_N "(cached) $ECHO_C" >&6
6554: else
6555: if test -n "$ac_ct_MANIFEST_TOOL"; then
6556: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6557: else
6558: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559: for as_dir in $PATH
6560: do
6561: IFS=$as_save_IFS
6562: test -z "$as_dir" && as_dir=.
6563: for ac_exec_ext in '' $ac_executable_extensions; do
6564: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6566: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567: break 2
6568: fi
6569: done
6570: done
6571:
6572: test -z "$ac_cv_prog_ac_ct_MANIFEST_TOOL" && ac_cv_prog_ac_ct_MANIFEST_TOOL=":"
6573: fi
6574: fi
6575: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6576: if test -n "$ac_ct_MANIFEST_TOOL"; then
6577: echo "$as_me:$LINENO: result: $ac_ct_MANIFEST_TOOL" >&5
6578: echo "${ECHO_T}$ac_ct_MANIFEST_TOOL" >&6
6579: else
6580: echo "$as_me:$LINENO: result: no" >&5
6581: echo "${ECHO_T}no" >&6
6582: fi
6583:
6584: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6585: else
6586: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6587: fi
6588:
6589: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6590: echo "$as_me:$LINENO: checking if $MANIFEST_TOOL is a manifest tool" >&5
6591: echo $ECHO_N "checking if $MANIFEST_TOOL is a manifest tool... $ECHO_C" >&6
6592: if test "${lt_cv_path_mainfest_tool+set}" = set; then
6593: echo $ECHO_N "(cached) $ECHO_C" >&6
6594: else
6595: lt_cv_path_mainfest_tool=no
6596: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6597: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6598: cat conftest.err >&5
6599: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6600: lt_cv_path_mainfest_tool=yes
6601: fi
6602: rm -f conftest*
6603: fi
6604: echo "$as_me:$LINENO: result: $lt_cv_path_mainfest_tool" >&5
6605: echo "${ECHO_T}$lt_cv_path_mainfest_tool" >&6
6606: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6607: MANIFEST_TOOL=:
6608: fi
6609:
6610:
6611:
6612:
6613:
6614:
6615: case $host_os in
6616: rhapsody* | darwin*)
6617: if test -n "$ac_tool_prefix"; then
6618: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6619: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6620: echo "$as_me:$LINENO: checking for $ac_word" >&5
6621: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6622: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6623: echo $ECHO_N "(cached) $ECHO_C" >&6
6624: else
6625: if test -n "$DSYMUTIL"; then
6626: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6627: else
6628: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629: for as_dir in $PATH
6630: do
6631: IFS=$as_save_IFS
6632: test -z "$as_dir" && as_dir=.
6633: for ac_exec_ext in '' $ac_executable_extensions; do
6634: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6636: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637: break 2
6638: fi
6639: done
6640: done
6641:
6642: fi
6643: fi
6644: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6645: if test -n "$DSYMUTIL"; then
6646: echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6647: echo "${ECHO_T}$DSYMUTIL" >&6
6648: else
6649: echo "$as_me:$LINENO: result: no" >&5
6650: echo "${ECHO_T}no" >&6
6651: fi
6652:
6653: fi
6654: if test -z "$ac_cv_prog_DSYMUTIL"; then
6655: ac_ct_DSYMUTIL=$DSYMUTIL
6656: # Extract the first word of "dsymutil", so it can be a program name with args.
6657: set dummy dsymutil; ac_word=$2
6658: echo "$as_me:$LINENO: checking for $ac_word" >&5
6659: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6660: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6661: echo $ECHO_N "(cached) $ECHO_C" >&6
6662: else
6663: if test -n "$ac_ct_DSYMUTIL"; then
6664: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6665: else
6666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667: for as_dir in $PATH
6668: do
6669: IFS=$as_save_IFS
6670: test -z "$as_dir" && as_dir=.
6671: for ac_exec_ext in '' $ac_executable_extensions; do
6672: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6674: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675: break 2
6676: fi
6677: done
6678: done
6679:
6680: test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6681: fi
6682: fi
6683: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6684: if test -n "$ac_ct_DSYMUTIL"; then
6685: echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6686: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6687: else
6688: echo "$as_me:$LINENO: result: no" >&5
6689: echo "${ECHO_T}no" >&6
6690: fi
6691:
6692: DSYMUTIL=$ac_ct_DSYMUTIL
6693: else
6694: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6695: fi
6696:
6697: if test -n "$ac_tool_prefix"; then
6698: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6699: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6700: echo "$as_me:$LINENO: checking for $ac_word" >&5
6701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6702: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6703: echo $ECHO_N "(cached) $ECHO_C" >&6
6704: else
6705: if test -n "$NMEDIT"; then
6706: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6707: else
6708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709: for as_dir in $PATH
6710: do
6711: IFS=$as_save_IFS
6712: test -z "$as_dir" && as_dir=.
6713: for ac_exec_ext in '' $ac_executable_extensions; do
6714: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717: break 2
6718: fi
6719: done
6720: done
6721:
6722: fi
6723: fi
6724: NMEDIT=$ac_cv_prog_NMEDIT
6725: if test -n "$NMEDIT"; then
6726: echo "$as_me:$LINENO: result: $NMEDIT" >&5
6727: echo "${ECHO_T}$NMEDIT" >&6
6728: else
6729: echo "$as_me:$LINENO: result: no" >&5
6730: echo "${ECHO_T}no" >&6
6731: fi
6732:
6733: fi
6734: if test -z "$ac_cv_prog_NMEDIT"; then
6735: ac_ct_NMEDIT=$NMEDIT
6736: # Extract the first word of "nmedit", so it can be a program name with args.
6737: set dummy nmedit; ac_word=$2
6738: echo "$as_me:$LINENO: checking for $ac_word" >&5
6739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6740: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6741: echo $ECHO_N "(cached) $ECHO_C" >&6
6742: else
6743: if test -n "$ac_ct_NMEDIT"; then
6744: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6745: else
6746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747: for as_dir in $PATH
6748: do
6749: IFS=$as_save_IFS
6750: test -z "$as_dir" && as_dir=.
6751: for ac_exec_ext in '' $ac_executable_extensions; do
6752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755: break 2
6756: fi
6757: done
6758: done
6759:
6760: test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6761: fi
6762: fi
6763: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6764: if test -n "$ac_ct_NMEDIT"; then
6765: echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6766: echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6767: else
6768: echo "$as_me:$LINENO: result: no" >&5
6769: echo "${ECHO_T}no" >&6
6770: fi
6771:
6772: NMEDIT=$ac_ct_NMEDIT
6773: else
6774: NMEDIT="$ac_cv_prog_NMEDIT"
6775: fi
6776:
6777: if test -n "$ac_tool_prefix"; then
6778: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6779: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6780: echo "$as_me:$LINENO: checking for $ac_word" >&5
6781: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6782: if test "${ac_cv_prog_LIPO+set}" = set; then
6783: echo $ECHO_N "(cached) $ECHO_C" >&6
6784: else
6785: if test -n "$LIPO"; then
6786: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6787: else
6788: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789: for as_dir in $PATH
6790: do
6791: IFS=$as_save_IFS
6792: test -z "$as_dir" && as_dir=.
6793: for ac_exec_ext in '' $ac_executable_extensions; do
6794: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6796: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797: break 2
6798: fi
6799: done
6800: done
6801:
6802: fi
6803: fi
6804: LIPO=$ac_cv_prog_LIPO
6805: if test -n "$LIPO"; then
6806: echo "$as_me:$LINENO: result: $LIPO" >&5
6807: echo "${ECHO_T}$LIPO" >&6
6808: else
6809: echo "$as_me:$LINENO: result: no" >&5
6810: echo "${ECHO_T}no" >&6
6811: fi
6812:
6813: fi
6814: if test -z "$ac_cv_prog_LIPO"; then
6815: ac_ct_LIPO=$LIPO
6816: # Extract the first word of "lipo", so it can be a program name with args.
6817: set dummy lipo; ac_word=$2
6818: echo "$as_me:$LINENO: checking for $ac_word" >&5
6819: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6820: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6821: echo $ECHO_N "(cached) $ECHO_C" >&6
6822: else
6823: if test -n "$ac_ct_LIPO"; then
6824: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6825: else
6826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827: for as_dir in $PATH
6828: do
6829: IFS=$as_save_IFS
6830: test -z "$as_dir" && as_dir=.
6831: for ac_exec_ext in '' $ac_executable_extensions; do
6832: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833: ac_cv_prog_ac_ct_LIPO="lipo"
6834: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835: break 2
6836: fi
6837: done
6838: done
6839:
6840: test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6841: fi
6842: fi
6843: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6844: if test -n "$ac_ct_LIPO"; then
6845: echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6846: echo "${ECHO_T}$ac_ct_LIPO" >&6
6847: else
6848: echo "$as_me:$LINENO: result: no" >&5
6849: echo "${ECHO_T}no" >&6
6850: fi
6851:
6852: LIPO=$ac_ct_LIPO
6853: else
6854: LIPO="$ac_cv_prog_LIPO"
6855: fi
6856:
6857: if test -n "$ac_tool_prefix"; then
6858: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6859: set dummy ${ac_tool_prefix}otool; ac_word=$2
6860: echo "$as_me:$LINENO: checking for $ac_word" >&5
6861: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6862: if test "${ac_cv_prog_OTOOL+set}" = set; then
6863: echo $ECHO_N "(cached) $ECHO_C" >&6
6864: else
6865: if test -n "$OTOOL"; then
6866: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6867: else
6868: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869: for as_dir in $PATH
6870: do
6871: IFS=$as_save_IFS
6872: test -z "$as_dir" && as_dir=.
6873: for ac_exec_ext in '' $ac_executable_extensions; do
6874: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6876: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877: break 2
6878: fi
6879: done
6880: done
6881:
6882: fi
6883: fi
6884: OTOOL=$ac_cv_prog_OTOOL
6885: if test -n "$OTOOL"; then
6886: echo "$as_me:$LINENO: result: $OTOOL" >&5
6887: echo "${ECHO_T}$OTOOL" >&6
6888: else
6889: echo "$as_me:$LINENO: result: no" >&5
6890: echo "${ECHO_T}no" >&6
6891: fi
6892:
6893: fi
6894: if test -z "$ac_cv_prog_OTOOL"; then
6895: ac_ct_OTOOL=$OTOOL
6896: # Extract the first word of "otool", so it can be a program name with args.
6897: set dummy otool; ac_word=$2
6898: echo "$as_me:$LINENO: checking for $ac_word" >&5
6899: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6900: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6901: echo $ECHO_N "(cached) $ECHO_C" >&6
6902: else
6903: if test -n "$ac_ct_OTOOL"; then
6904: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6905: else
6906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907: for as_dir in $PATH
6908: do
6909: IFS=$as_save_IFS
6910: test -z "$as_dir" && as_dir=.
6911: for ac_exec_ext in '' $ac_executable_extensions; do
6912: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913: ac_cv_prog_ac_ct_OTOOL="otool"
6914: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915: break 2
6916: fi
6917: done
6918: done
6919:
6920: test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6921: fi
6922: fi
6923: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6924: if test -n "$ac_ct_OTOOL"; then
6925: echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6926: echo "${ECHO_T}$ac_ct_OTOOL" >&6
6927: else
6928: echo "$as_me:$LINENO: result: no" >&5
6929: echo "${ECHO_T}no" >&6
6930: fi
6931:
6932: OTOOL=$ac_ct_OTOOL
6933: else
6934: OTOOL="$ac_cv_prog_OTOOL"
6935: fi
6936:
6937: if test -n "$ac_tool_prefix"; then
6938: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6939: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6940: echo "$as_me:$LINENO: checking for $ac_word" >&5
6941: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6942: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6943: echo $ECHO_N "(cached) $ECHO_C" >&6
6944: else
6945: if test -n "$OTOOL64"; then
6946: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6947: else
6948: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949: for as_dir in $PATH
6950: do
6951: IFS=$as_save_IFS
6952: test -z "$as_dir" && as_dir=.
6953: for ac_exec_ext in '' $ac_executable_extensions; do
6954: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6956: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957: break 2
6958: fi
6959: done
6960: done
6961:
6962: fi
6963: fi
6964: OTOOL64=$ac_cv_prog_OTOOL64
6965: if test -n "$OTOOL64"; then
6966: echo "$as_me:$LINENO: result: $OTOOL64" >&5
6967: echo "${ECHO_T}$OTOOL64" >&6
6968: else
6969: echo "$as_me:$LINENO: result: no" >&5
6970: echo "${ECHO_T}no" >&6
6971: fi
6972:
6973: fi
6974: if test -z "$ac_cv_prog_OTOOL64"; then
6975: ac_ct_OTOOL64=$OTOOL64
6976: # Extract the first word of "otool64", so it can be a program name with args.
6977: set dummy otool64; ac_word=$2
6978: echo "$as_me:$LINENO: checking for $ac_word" >&5
6979: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6980: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6981: echo $ECHO_N "(cached) $ECHO_C" >&6
6982: else
6983: if test -n "$ac_ct_OTOOL64"; then
6984: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6985: else
6986: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987: for as_dir in $PATH
6988: do
6989: IFS=$as_save_IFS
6990: test -z "$as_dir" && as_dir=.
6991: for ac_exec_ext in '' $ac_executable_extensions; do
6992: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993: ac_cv_prog_ac_ct_OTOOL64="otool64"
6994: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995: break 2
6996: fi
6997: done
6998: done
6999:
7000: test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7001: fi
7002: fi
7003: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7004: if test -n "$ac_ct_OTOOL64"; then
7005: echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7006: echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7007: else
7008: echo "$as_me:$LINENO: result: no" >&5
7009: echo "${ECHO_T}no" >&6
7010: fi
7011:
7012: OTOOL64=$ac_ct_OTOOL64
7013: else
7014: OTOOL64="$ac_cv_prog_OTOOL64"
7015: fi
7016:
7017:
7018:
7019:
7020:
7021:
7022:
7023:
7024:
7025:
7026:
7027:
7028:
7029:
7030:
7031:
7032:
7033:
7034:
7035:
7036:
7037:
7038:
7039:
7040:
7041:
7042:
7043: echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7044: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7045: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7046: echo $ECHO_N "(cached) $ECHO_C" >&6
7047: else
7048: lt_cv_apple_cc_single_mod=no
7049: if test -z "${LT_MULTI_MODULE}"; then
7050: # By default we will add the -single_module flag. You can override
7051: # by either setting the environment variable LT_MULTI_MODULE
7052: # non-empty at configure time, or by adding -multi_module to the
7053: # link flags.
7054: rm -rf libconftest.dylib*
7055: echo "int foo(void){return 1;}" > conftest.c
7056: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7057: -dynamiclib -Wl,-single_module conftest.c" >&5
7058: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7059: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7060: _lt_result=$?
7061: # If there is a non-empty error log, and "single_module"
7062: # appears in it, assume the flag caused a linker warning
7063: if test -s conftest.err && $GREP single_module conftest.err; then
7064: cat conftest.err >&5
7065: # Otherwise, if the output was created with a 0 exit code from
7066: # the compiler, it worked.
7067: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7068: lt_cv_apple_cc_single_mod=yes
7069: else
7070: cat conftest.err >&5
7071: fi
7072: rm -rf libconftest.dylib*
7073: rm -f conftest.*
7074: fi
7075: fi
7076: echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7077: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7078:
7079: echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7080: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7081: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7082: echo $ECHO_N "(cached) $ECHO_C" >&6
7083: else
7084: lt_cv_ld_exported_symbols_list=no
7085: save_LDFLAGS=$LDFLAGS
7086: echo "_main" > conftest.sym
7087: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7088: cat >conftest.$ac_ext <<_ACEOF
7089: /* confdefs.h. */
7090: _ACEOF
7091: cat confdefs.h >>conftest.$ac_ext
7092: cat >>conftest.$ac_ext <<_ACEOF
7093: /* end confdefs.h. */
7094:
7095: int
7096: main ()
7097: {
7098:
7099: ;
7100: return 0;
7101: }
7102: _ACEOF
7103: rm -f conftest.$ac_objext conftest$ac_exeext
7104: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7105: (eval $ac_link) 2>conftest.er1
7106: ac_status=$?
7107: grep -v '^ *+' conftest.er1 >conftest.err
7108: rm -f conftest.er1
7109: cat conftest.err >&5
7110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111: (exit $ac_status); } &&
7112: { ac_try='test -z "$ac_c_werror_flag"
7113: || test ! -s conftest.err'
7114: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115: (eval $ac_try) 2>&5
7116: ac_status=$?
7117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118: (exit $ac_status); }; } &&
7119: { ac_try='test -s conftest$ac_exeext'
7120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121: (eval $ac_try) 2>&5
7122: ac_status=$?
7123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124: (exit $ac_status); }; }; then
7125: lt_cv_ld_exported_symbols_list=yes
7126: else
7127: echo "$as_me: failed program was:" >&5
7128: sed 's/^/| /' conftest.$ac_ext >&5
7129:
7130: lt_cv_ld_exported_symbols_list=no
7131: fi
7132: rm -f conftest.err conftest.$ac_objext \
7133: conftest$ac_exeext conftest.$ac_ext
7134: LDFLAGS="$save_LDFLAGS"
7135:
7136: fi
7137: echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7138: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7139:
7140: echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
7141: echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6
7142: if test "${lt_cv_ld_force_load+set}" = set; then
7143: echo $ECHO_N "(cached) $ECHO_C" >&6
7144: else
7145: lt_cv_ld_force_load=no
7146: cat > conftest.c << _LT_EOF
7147: int forced_loaded() { return 2;}
7148: _LT_EOF
7149: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7150: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7151: echo "$AR cru libconftest.a conftest.o" >&5
7152: $AR cru libconftest.a conftest.o 2>&5
7153: echo "$RANLIB libconftest.a" >&5
7154: $RANLIB libconftest.a 2>&5
7155: cat > conftest.c << _LT_EOF
7156: int main() { return 0;}
7157: _LT_EOF
7158: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7159: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7160: _lt_result=$?
7161: if test -s conftest.err && $GREP force_load conftest.err; then
7162: cat conftest.err >&5
7163: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7164: lt_cv_ld_force_load=yes
7165: else
7166: cat conftest.err >&5
7167: fi
7168: rm -f conftest.err libconftest.a conftest conftest.c
7169: rm -rf conftest.dSYM
7170:
7171: fi
7172: echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
7173: echo "${ECHO_T}$lt_cv_ld_force_load" >&6
7174: case $host_os in
7175: rhapsody* | darwin1.[012])
7176: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7177: darwin1.*)
7178: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7179: darwin*) # darwin 5.x on
7180: # if running on 10.5 or later, the deployment target defaults
7181: # to the OS version, if on x86, and 10.4, the deployment
7182: # target defaults to 10.4. Don't you love it?
7183: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7184: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7185: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7186: 10.[012]*)
7187: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7188: 10.*)
7189: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7190: esac
7191: ;;
7192: esac
7193: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7194: _lt_dar_single_mod='$single_module'
7195: fi
7196: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7197: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7198: else
7199: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7200: fi
7201: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7202: _lt_dsymutil='~$DSYMUTIL $lib || :'
7203: else
7204: _lt_dsymutil=
7205: fi
7206: ;;
7207: esac
7208:
7209: ac_ext=c
7210: ac_cpp='$CPP $CPPFLAGS'
7211: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7212: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7213: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7215: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7216: # On Suns, sometimes $CPP names a directory.
7217: if test -n "$CPP" && test -d "$CPP"; then
7218: CPP=
7219: fi
7220: if test -z "$CPP"; then
7221: if test "${ac_cv_prog_CPP+set}" = set; then
7222: echo $ECHO_N "(cached) $ECHO_C" >&6
7223: else
7224: # Double quotes because CPP needs to be expanded
7225: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7226: do
7227: ac_preproc_ok=false
7228: for ac_c_preproc_warn_flag in '' yes
7229: do
7230: # Use a header file that comes with gcc, so configuring glibc
7231: # with a fresh cross-compiler works.
7232: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233: # <limits.h> exists even on freestanding compilers.
7234: # On the NeXT, cc -E runs the code through the compiler's parser,
7235: # not just through cpp. "Syntax error" is here to catch this case.
7236: cat >conftest.$ac_ext <<_ACEOF
7237: /* confdefs.h. */
7238: _ACEOF
7239: cat confdefs.h >>conftest.$ac_ext
7240: cat >>conftest.$ac_ext <<_ACEOF
7241: /* end confdefs.h. */
7242: #ifdef __STDC__
7243: # include <limits.h>
7244: #else
7245: # include <assert.h>
7246: #endif
7247: Syntax error
7248: _ACEOF
7249: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251: ac_status=$?
7252: grep -v '^ *+' conftest.er1 >conftest.err
7253: rm -f conftest.er1
7254: cat conftest.err >&5
7255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256: (exit $ac_status); } >/dev/null; then
7257: if test -s conftest.err; then
7258: ac_cpp_err=$ac_c_preproc_warn_flag
7259: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7260: else
7261: ac_cpp_err=
7262: fi
7263: else
7264: ac_cpp_err=yes
7265: fi
7266: if test -z "$ac_cpp_err"; then
7267: :
7268: else
7269: echo "$as_me: failed program was:" >&5
7270: sed 's/^/| /' conftest.$ac_ext >&5
7271:
7272: # Broken: fails on valid input.
7273: continue
7274: fi
7275: rm -f conftest.err conftest.$ac_ext
7276:
7277: # OK, works on sane cases. Now check whether non-existent headers
7278: # can be detected and how.
7279: cat >conftest.$ac_ext <<_ACEOF
7280: /* confdefs.h. */
7281: _ACEOF
7282: cat confdefs.h >>conftest.$ac_ext
7283: cat >>conftest.$ac_ext <<_ACEOF
7284: /* end confdefs.h. */
7285: #include <ac_nonexistent.h>
7286: _ACEOF
7287: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289: ac_status=$?
7290: grep -v '^ *+' conftest.er1 >conftest.err
7291: rm -f conftest.er1
7292: cat conftest.err >&5
7293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294: (exit $ac_status); } >/dev/null; then
7295: if test -s conftest.err; then
7296: ac_cpp_err=$ac_c_preproc_warn_flag
7297: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7298: else
7299: ac_cpp_err=
7300: fi
7301: else
7302: ac_cpp_err=yes
7303: fi
7304: if test -z "$ac_cpp_err"; then
7305: # Broken: success on invalid input.
7306: continue
7307: else
7308: echo "$as_me: failed program was:" >&5
7309: sed 's/^/| /' conftest.$ac_ext >&5
7310:
7311: # Passes both tests.
7312: ac_preproc_ok=:
7313: break
7314: fi
7315: rm -f conftest.err conftest.$ac_ext
7316:
7317: done
7318: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319: rm -f conftest.err conftest.$ac_ext
7320: if $ac_preproc_ok; then
7321: break
7322: fi
7323:
7324: done
7325: ac_cv_prog_CPP=$CPP
7326:
7327: fi
7328: CPP=$ac_cv_prog_CPP
7329: else
7330: ac_cv_prog_CPP=$CPP
7331: fi
7332: echo "$as_me:$LINENO: result: $CPP" >&5
7333: echo "${ECHO_T}$CPP" >&6
7334: ac_preproc_ok=false
7335: for ac_c_preproc_warn_flag in '' yes
7336: do
7337: # Use a header file that comes with gcc, so configuring glibc
7338: # with a fresh cross-compiler works.
7339: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340: # <limits.h> exists even on freestanding compilers.
7341: # On the NeXT, cc -E runs the code through the compiler's parser,
7342: # not just through cpp. "Syntax error" is here to catch this case.
7343: cat >conftest.$ac_ext <<_ACEOF
7344: /* confdefs.h. */
7345: _ACEOF
7346: cat confdefs.h >>conftest.$ac_ext
7347: cat >>conftest.$ac_ext <<_ACEOF
7348: /* end confdefs.h. */
7349: #ifdef __STDC__
7350: # include <limits.h>
7351: #else
7352: # include <assert.h>
7353: #endif
7354: Syntax error
7355: _ACEOF
7356: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358: ac_status=$?
7359: grep -v '^ *+' conftest.er1 >conftest.err
7360: rm -f conftest.er1
7361: cat conftest.err >&5
7362: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363: (exit $ac_status); } >/dev/null; then
7364: if test -s conftest.err; then
7365: ac_cpp_err=$ac_c_preproc_warn_flag
7366: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7367: else
7368: ac_cpp_err=
7369: fi
7370: else
7371: ac_cpp_err=yes
7372: fi
7373: if test -z "$ac_cpp_err"; then
7374: :
7375: else
7376: echo "$as_me: failed program was:" >&5
7377: sed 's/^/| /' conftest.$ac_ext >&5
7378:
7379: # Broken: fails on valid input.
7380: continue
7381: fi
7382: rm -f conftest.err conftest.$ac_ext
7383:
7384: # OK, works on sane cases. Now check whether non-existent headers
7385: # can be detected and how.
7386: cat >conftest.$ac_ext <<_ACEOF
7387: /* confdefs.h. */
7388: _ACEOF
7389: cat confdefs.h >>conftest.$ac_ext
7390: cat >>conftest.$ac_ext <<_ACEOF
7391: /* end confdefs.h. */
7392: #include <ac_nonexistent.h>
7393: _ACEOF
7394: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7396: ac_status=$?
7397: grep -v '^ *+' conftest.er1 >conftest.err
7398: rm -f conftest.er1
7399: cat conftest.err >&5
7400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401: (exit $ac_status); } >/dev/null; then
7402: if test -s conftest.err; then
7403: ac_cpp_err=$ac_c_preproc_warn_flag
7404: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7405: else
7406: ac_cpp_err=
7407: fi
7408: else
7409: ac_cpp_err=yes
7410: fi
7411: if test -z "$ac_cpp_err"; then
7412: # Broken: success on invalid input.
7413: continue
7414: else
7415: echo "$as_me: failed program was:" >&5
7416: sed 's/^/| /' conftest.$ac_ext >&5
7417:
7418: # Passes both tests.
7419: ac_preproc_ok=:
7420: break
7421: fi
7422: rm -f conftest.err conftest.$ac_ext
7423:
7424: done
7425: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7426: rm -f conftest.err conftest.$ac_ext
7427: if $ac_preproc_ok; then
7428: :
7429: else
7430: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7431: See \`config.log' for more details." >&5
7432: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7433: See \`config.log' for more details." >&2;}
7434: { (exit 1); exit 1; }; }
7435: fi
7436:
7437: ac_ext=c
7438: ac_cpp='$CPP $CPPFLAGS'
7439: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7442:
7443:
7444: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7445: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7446: if test "${ac_cv_header_stdc+set}" = set; then
7447: echo $ECHO_N "(cached) $ECHO_C" >&6
7448: else
7449: cat >conftest.$ac_ext <<_ACEOF
7450: /* confdefs.h. */
7451: _ACEOF
7452: cat confdefs.h >>conftest.$ac_ext
7453: cat >>conftest.$ac_ext <<_ACEOF
7454: /* end confdefs.h. */
7455: #include <stdlib.h>
7456: #include <stdarg.h>
7457: #include <string.h>
7458: #include <float.h>
7459:
7460: int
7461: main ()
7462: {
7463:
7464: ;
7465: return 0;
7466: }
7467: _ACEOF
7468: rm -f conftest.$ac_objext
7469: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470: (eval $ac_compile) 2>conftest.er1
7471: ac_status=$?
7472: grep -v '^ *+' conftest.er1 >conftest.err
7473: rm -f conftest.er1
7474: cat conftest.err >&5
7475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476: (exit $ac_status); } &&
7477: { ac_try='test -z "$ac_c_werror_flag"
7478: || test ! -s conftest.err'
7479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480: (eval $ac_try) 2>&5
7481: ac_status=$?
7482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483: (exit $ac_status); }; } &&
7484: { ac_try='test -s conftest.$ac_objext'
7485: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486: (eval $ac_try) 2>&5
7487: ac_status=$?
7488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489: (exit $ac_status); }; }; then
7490: ac_cv_header_stdc=yes
7491: else
7492: echo "$as_me: failed program was:" >&5
7493: sed 's/^/| /' conftest.$ac_ext >&5
7494:
7495: ac_cv_header_stdc=no
7496: fi
7497: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498:
7499: if test $ac_cv_header_stdc = yes; then
7500: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7501: cat >conftest.$ac_ext <<_ACEOF
7502: /* confdefs.h. */
7503: _ACEOF
7504: cat confdefs.h >>conftest.$ac_ext
7505: cat >>conftest.$ac_ext <<_ACEOF
7506: /* end confdefs.h. */
7507: #include <string.h>
7508:
7509: _ACEOF
7510: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7511: $EGREP "memchr" >/dev/null 2>&1; then
7512: :
7513: else
7514: ac_cv_header_stdc=no
7515: fi
7516: rm -f conftest*
7517:
7518: fi
7519:
7520: if test $ac_cv_header_stdc = yes; then
7521: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7522: cat >conftest.$ac_ext <<_ACEOF
7523: /* confdefs.h. */
7524: _ACEOF
7525: cat confdefs.h >>conftest.$ac_ext
7526: cat >>conftest.$ac_ext <<_ACEOF
7527: /* end confdefs.h. */
7528: #include <stdlib.h>
7529:
7530: _ACEOF
7531: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7532: $EGREP "free" >/dev/null 2>&1; then
7533: :
7534: else
7535: ac_cv_header_stdc=no
7536: fi
7537: rm -f conftest*
7538:
7539: fi
7540:
7541: if test $ac_cv_header_stdc = yes; then
7542: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7543: if test "$cross_compiling" = yes; then
7544: :
7545: else
7546: cat >conftest.$ac_ext <<_ACEOF
7547: /* confdefs.h. */
7548: _ACEOF
7549: cat confdefs.h >>conftest.$ac_ext
7550: cat >>conftest.$ac_ext <<_ACEOF
7551: /* end confdefs.h. */
7552: #include <ctype.h>
7553: #if ((' ' & 0x0FF) == 0x020)
7554: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7555: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7556: #else
7557: # define ISLOWER(c) \
7558: (('a' <= (c) && (c) <= 'i') \
7559: || ('j' <= (c) && (c) <= 'r') \
7560: || ('s' <= (c) && (c) <= 'z'))
7561: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7562: #endif
7563:
7564: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7565: int
7566: main ()
7567: {
7568: int i;
7569: for (i = 0; i < 256; i++)
7570: if (XOR (islower (i), ISLOWER (i))
7571: || toupper (i) != TOUPPER (i))
7572: exit(2);
7573: exit (0);
7574: }
7575: _ACEOF
7576: rm -f conftest$ac_exeext
7577: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578: (eval $ac_link) 2>&5
7579: ac_status=$?
7580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7582: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583: (eval $ac_try) 2>&5
7584: ac_status=$?
7585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586: (exit $ac_status); }; }; then
7587: :
7588: else
7589: echo "$as_me: program exited with status $ac_status" >&5
7590: echo "$as_me: failed program was:" >&5
7591: sed 's/^/| /' conftest.$ac_ext >&5
7592:
7593: ( exit $ac_status )
7594: ac_cv_header_stdc=no
7595: fi
7596: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7597: fi
7598: fi
7599: fi
7600: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7601: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7602: if test $ac_cv_header_stdc = yes; then
7603:
7604: cat >>confdefs.h <<\_ACEOF
7605: #define STDC_HEADERS 1
7606: _ACEOF
7607:
7608: fi
7609:
7610: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7611:
7612:
7613:
7614:
7615:
7616:
7617:
7618:
7619:
7620: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7621: inttypes.h stdint.h unistd.h
7622: do
7623: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7624: echo "$as_me:$LINENO: checking for $ac_header" >&5
7625: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7626: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627: echo $ECHO_N "(cached) $ECHO_C" >&6
7628: else
7629: cat >conftest.$ac_ext <<_ACEOF
7630: /* confdefs.h. */
7631: _ACEOF
7632: cat confdefs.h >>conftest.$ac_ext
7633: cat >>conftest.$ac_ext <<_ACEOF
7634: /* end confdefs.h. */
7635: $ac_includes_default
7636:
7637: #include <$ac_header>
7638: _ACEOF
7639: rm -f conftest.$ac_objext
7640: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7641: (eval $ac_compile) 2>conftest.er1
7642: ac_status=$?
7643: grep -v '^ *+' conftest.er1 >conftest.err
7644: rm -f conftest.er1
7645: cat conftest.err >&5
7646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647: (exit $ac_status); } &&
7648: { ac_try='test -z "$ac_c_werror_flag"
7649: || test ! -s conftest.err'
7650: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651: (eval $ac_try) 2>&5
7652: ac_status=$?
7653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654: (exit $ac_status); }; } &&
7655: { ac_try='test -s conftest.$ac_objext'
7656: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657: (eval $ac_try) 2>&5
7658: ac_status=$?
7659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660: (exit $ac_status); }; }; then
7661: eval "$as_ac_Header=yes"
7662: else
7663: echo "$as_me: failed program was:" >&5
7664: sed 's/^/| /' conftest.$ac_ext >&5
7665:
7666: eval "$as_ac_Header=no"
7667: fi
7668: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669: fi
7670: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7672: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673: cat >>confdefs.h <<_ACEOF
7674: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675: _ACEOF
7676:
7677: fi
7678:
7679: done
7680:
7681:
7682:
7683: for ac_header in dlfcn.h
7684: do
7685: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7686: echo "$as_me:$LINENO: checking for $ac_header" >&5
7687: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7688: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689: echo $ECHO_N "(cached) $ECHO_C" >&6
7690: else
7691: cat >conftest.$ac_ext <<_ACEOF
7692: /* confdefs.h. */
7693: _ACEOF
7694: cat confdefs.h >>conftest.$ac_ext
7695: cat >>conftest.$ac_ext <<_ACEOF
7696: /* end confdefs.h. */
7697: $ac_includes_default
7698:
7699: #include <$ac_header>
7700: _ACEOF
7701: rm -f conftest.$ac_objext
7702: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703: (eval $ac_compile) 2>conftest.er1
7704: ac_status=$?
7705: grep -v '^ *+' conftest.er1 >conftest.err
7706: rm -f conftest.er1
7707: cat conftest.err >&5
7708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709: (exit $ac_status); } &&
7710: { ac_try='test -z "$ac_c_werror_flag"
7711: || test ! -s conftest.err'
7712: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713: (eval $ac_try) 2>&5
7714: ac_status=$?
7715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716: (exit $ac_status); }; } &&
7717: { ac_try='test -s conftest.$ac_objext'
7718: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719: (eval $ac_try) 2>&5
7720: ac_status=$?
7721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722: (exit $ac_status); }; }; then
7723: eval "$as_ac_Header=yes"
7724: else
7725: echo "$as_me: failed program was:" >&5
7726: sed 's/^/| /' conftest.$ac_ext >&5
7727:
7728: eval "$as_ac_Header=no"
7729: fi
7730: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731: fi
7732: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7733: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7734: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7735: cat >>confdefs.h <<_ACEOF
7736: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7737: _ACEOF
7738:
7739: fi
7740:
7741: done
7742:
7743:
7744:
7745:
7746: func_stripname_cnf ()
7747: {
7748: case ${2} in
7749: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7750: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7751: esac
7752: } # func_stripname_cnf
7753:
7754:
7755:
7756:
7757:
7758: # Set options
7759: enable_dlopen=yes
7760: enable_win32_dll=yes
7761:
7762: case $host in
7763: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7764: if test -n "$ac_tool_prefix"; then
7765: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7766: set dummy ${ac_tool_prefix}as; 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_AS+set}" = set; then
7770: echo $ECHO_N "(cached) $ECHO_C" >&6
7771: else
7772: if test -n "$AS"; then
7773: ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
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: AS=$ac_cv_prog_AS
7792: if test -n "$AS"; then
7793: echo "$as_me:$LINENO: result: $AS" >&5
7794: echo "${ECHO_T}$AS" >&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_AS"; then
7802: ac_ct_AS=$AS
7803: # Extract the first word of "as", so it can be a program name with args.
7804: set dummy as; 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_AS+set}" = set; then
7808: echo $ECHO_N "(cached) $ECHO_C" >&6
7809: else
7810: if test -n "$ac_ct_AS"; then
7811: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as"
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_AS" && ac_cv_prog_ac_ct_AS="false"
7828: fi
7829: fi
7830: ac_ct_AS=$ac_cv_prog_ac_ct_AS
7831: if test -n "$ac_ct_AS"; then
7832: echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7833: echo "${ECHO_T}$ac_ct_AS" >&6
7834: else
7835: echo "$as_me:$LINENO: result: no" >&5
7836: echo "${ECHO_T}no" >&6
7837: fi
7838:
7839: AS=$ac_ct_AS
7840: else
7841: AS="$ac_cv_prog_AS"
7842: fi
7843:
7844: if test -n "$ac_tool_prefix"; then
7845: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7846: set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+set}" = set; then
7850: echo $ECHO_N "(cached) $ECHO_C" >&6
7851: else
7852: if test -n "$DLLTOOL"; then
7853: ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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: DLLTOOL=$ac_cv_prog_DLLTOOL
7872: if test -n "$DLLTOOL"; then
7873: echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7874: echo "${ECHO_T}$DLLTOOL" >&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_DLLTOOL"; then
7882: ac_ct_DLLTOOL=$DLLTOOL
7883: # Extract the first word of "dlltool", so it can be a program name with args.
7884: set dummy dlltool; 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_DLLTOOL+set}" = set; then
7888: echo $ECHO_N "(cached) $ECHO_C" >&6
7889: else
7890: if test -n "$ac_ct_DLLTOOL"; then
7891: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool"
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_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
7908: fi
7909: fi
7910: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7911: if test -n "$ac_ct_DLLTOOL"; then
7912: echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7913: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7914: else
7915: echo "$as_me:$LINENO: result: no" >&5
7916: echo "${ECHO_T}no" >&6
7917: fi
7918:
7919: DLLTOOL=$ac_ct_DLLTOOL
7920: else
7921: DLLTOOL="$ac_cv_prog_DLLTOOL"
7922: fi
7923:
7924: if test -n "$ac_tool_prefix"; then
7925: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7926: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7927: echo "$as_me:$LINENO: checking for $ac_word" >&5
7928: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7930: echo $ECHO_N "(cached) $ECHO_C" >&6
7931: else
7932: if test -n "$OBJDUMP"; then
7933: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7934: else
7935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936: for as_dir in $PATH
7937: do
7938: IFS=$as_save_IFS
7939: test -z "$as_dir" && as_dir=.
7940: for ac_exec_ext in '' $ac_executable_extensions; do
7941: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7943: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7944: break 2
7945: fi
7946: done
7947: done
7948:
7949: fi
7950: fi
7951: OBJDUMP=$ac_cv_prog_OBJDUMP
7952: if test -n "$OBJDUMP"; then
7953: echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7954: echo "${ECHO_T}$OBJDUMP" >&6
7955: else
7956: echo "$as_me:$LINENO: result: no" >&5
7957: echo "${ECHO_T}no" >&6
7958: fi
7959:
7960: fi
7961: if test -z "$ac_cv_prog_OBJDUMP"; then
7962: ac_ct_OBJDUMP=$OBJDUMP
7963: # Extract the first word of "objdump", so it can be a program name with args.
7964: set dummy objdump; ac_word=$2
7965: echo "$as_me:$LINENO: checking for $ac_word" >&5
7966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7967: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7968: echo $ECHO_N "(cached) $ECHO_C" >&6
7969: else
7970: if test -n "$ac_ct_OBJDUMP"; then
7971: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7972: else
7973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974: for as_dir in $PATH
7975: do
7976: IFS=$as_save_IFS
7977: test -z "$as_dir" && as_dir=.
7978: for ac_exec_ext in '' $ac_executable_extensions; do
7979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982: break 2
7983: fi
7984: done
7985: done
7986:
7987: test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
7988: fi
7989: fi
7990: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7991: if test -n "$ac_ct_OBJDUMP"; then
7992: echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7993: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
7994: else
7995: echo "$as_me:$LINENO: result: no" >&5
7996: echo "${ECHO_T}no" >&6
7997: fi
7998:
7999: OBJDUMP=$ac_ct_OBJDUMP
8000: else
8001: OBJDUMP="$ac_cv_prog_OBJDUMP"
8002: fi
8003:
8004: ;;
8005: esac
8006:
8007: test -z "$AS" && AS=as
8008:
8009:
8010:
8011:
8012:
8013: test -z "$DLLTOOL" && DLLTOOL=dlltool
8014:
8015:
8016:
8017:
8018:
8019: test -z "$OBJDUMP" && OBJDUMP=objdump
8020:
8021:
8022:
8023:
8024:
8025:
8026:
8027:
8028:
8029: # Check whether --enable-shared or --disable-shared was given.
8030: if test "${enable_shared+set}" = set; then
8031: enableval="$enable_shared"
8032: p=${PACKAGE-default}
8033: case $enableval in
8034: yes) enable_shared=yes ;;
8035: no) enable_shared=no ;;
8036: *)
8037: enable_shared=no
8038: # Look at the argument we got. We use all the common list separators.
8039: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040: for pkg in $enableval; do
8041: IFS="$lt_save_ifs"
8042: if test "X$pkg" = "X$p"; then
8043: enable_shared=yes
8044: fi
8045: done
8046: IFS="$lt_save_ifs"
8047: ;;
8048: esac
8049: else
8050: enable_shared=yes
8051: fi;
8052:
8053:
8054:
8055:
8056:
8057:
8058:
8059:
1.138 moko 8060: # Check whether --enable-static or --disable-static was given.
8061: if test "${enable_static+set}" = set; then
8062: enableval="$enable_static"
8063: p=${PACKAGE-default}
8064: case $enableval in
8065: yes) enable_static=yes ;;
8066: no) enable_static=no ;;
8067: *)
8068: enable_static=no
8069: # Look at the argument we got. We use all the common list separators.
8070: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071: for pkg in $enableval; do
8072: IFS="$lt_save_ifs"
8073: if test "X$pkg" = "X$p"; then
8074: enable_static=yes
8075: fi
8076: done
8077: IFS="$lt_save_ifs"
8078: ;;
8079: esac
8080: else
8081: enable_static=yes
8082: fi;
8083:
8084:
8085:
8086:
8087:
8088:
8089:
1.128 moko 8090:
8091:
8092: # Check whether --with-pic or --without-pic was given.
8093: if test "${with_pic+set}" = set; then
8094: withval="$with_pic"
8095: lt_p=${PACKAGE-default}
8096: case $withval in
8097: yes|no) pic_mode=$withval ;;
8098: *)
8099: pic_mode=default
8100: # Look at the argument we got. We use all the common list separators.
8101: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102: for lt_pkg in $withval; do
8103: IFS="$lt_save_ifs"
8104: if test "X$lt_pkg" = "X$lt_p"; then
8105: pic_mode=yes
8106: fi
8107: done
8108: IFS="$lt_save_ifs"
8109: ;;
8110: esac
8111: else
8112: pic_mode=default
8113: fi;
8114:
8115: test -z "$pic_mode" && pic_mode=default
8116:
8117:
8118:
8119:
8120:
8121:
8122:
8123: # Check whether --enable-fast-install or --disable-fast-install was given.
8124: if test "${enable_fast_install+set}" = set; then
8125: enableval="$enable_fast_install"
8126: p=${PACKAGE-default}
8127: case $enableval in
8128: yes) enable_fast_install=yes ;;
8129: no) enable_fast_install=no ;;
8130: *)
8131: enable_fast_install=no
8132: # Look at the argument we got. We use all the common list separators.
8133: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134: for pkg in $enableval; do
8135: IFS="$lt_save_ifs"
8136: if test "X$pkg" = "X$p"; then
8137: enable_fast_install=yes
8138: fi
8139: done
8140: IFS="$lt_save_ifs"
8141: ;;
8142: esac
8143: else
8144: enable_fast_install=yes
8145: fi;
8146:
8147:
8148:
8149:
8150:
8151:
8152:
8153:
8154:
8155:
8156: # This can be used to rebuild libtool when needed
8157: LIBTOOL_DEPS="$ltmain"
8158:
8159: # Always use our own libtool.
8160: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8161:
8162:
8163:
8164:
8165:
8166:
8167:
8168:
8169:
8170:
8171:
8172:
8173:
8174:
8175:
8176:
8177:
8178:
8179:
8180:
8181:
8182:
8183:
8184:
8185:
8186:
8187:
8188:
8189:
8190:
8191: test -z "$LN_S" && LN_S="ln -s"
8192:
8193:
8194:
8195:
8196:
8197:
8198:
8199:
8200:
8201:
8202:
8203:
8204:
8205:
8206: if test -n "${ZSH_VERSION+set}" ; then
8207: setopt NO_GLOB_SUBST
8208: fi
8209:
8210: echo "$as_me:$LINENO: checking for objdir" >&5
8211: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8212: if test "${lt_cv_objdir+set}" = set; then
8213: echo $ECHO_N "(cached) $ECHO_C" >&6
8214: else
8215: rm -f .libs 2>/dev/null
8216: mkdir .libs 2>/dev/null
8217: if test -d .libs; then
8218: lt_cv_objdir=.libs
8219: else
8220: # MS-DOS does not allow filenames that begin with a dot.
8221: lt_cv_objdir=_libs
8222: fi
8223: rmdir .libs 2>/dev/null
8224: fi
8225: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8226: echo "${ECHO_T}$lt_cv_objdir" >&6
8227: objdir=$lt_cv_objdir
8228:
8229:
8230:
8231:
8232:
8233: cat >>confdefs.h <<_ACEOF
8234: #define LT_OBJDIR "$lt_cv_objdir/"
8235: _ACEOF
8236:
8237:
8238:
8239:
8240: case $host_os in
8241: aix3*)
8242: # AIX sometimes has problems with the GCC collect2 program. For some
8243: # reason, if we set the COLLECT_NAMES environment variable, the problems
8244: # vanish in a puff of smoke.
8245: if test "X${COLLECT_NAMES+set}" != Xset; then
8246: COLLECT_NAMES=
8247: export COLLECT_NAMES
8248: fi
8249: ;;
8250: esac
8251:
8252: # Global variables:
8253: ofile=libtool
8254: can_build_shared=yes
8255:
8256: # All known linkers require a `.a' archive for static linking (except MSVC,
8257: # which needs '.lib').
8258: libext=a
8259:
8260: with_gnu_ld="$lt_cv_prog_gnu_ld"
8261:
8262: old_CC="$CC"
8263: old_CFLAGS="$CFLAGS"
8264:
8265: # Set sane defaults for various variables
8266: test -z "$CC" && CC=cc
8267: test -z "$LTCC" && LTCC=$CC
8268: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8269: test -z "$LD" && LD=ld
8270: test -z "$ac_objext" && ac_objext=o
8271:
8272: for cc_temp in $compiler""; do
8273: case $cc_temp in
8274: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8275: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8276: \-*) ;;
8277: *) break;;
8278: esac
8279: done
8280: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8281:
8282:
8283: # Only perform the check for file, if the check method requires it
8284: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8285: case $deplibs_check_method in
8286: file_magic*)
8287: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8288: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8289: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8290: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8291: echo $ECHO_N "(cached) $ECHO_C" >&6
8292: else
8293: case $MAGIC_CMD in
8294: [\\/*] | ?:[\\/]*)
8295: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8296: ;;
8297: *)
8298: lt_save_MAGIC_CMD="$MAGIC_CMD"
8299: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8300: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8301: for ac_dir in $ac_dummy; do
8302: IFS="$lt_save_ifs"
8303: test -z "$ac_dir" && ac_dir=.
8304: if test -f $ac_dir/${ac_tool_prefix}file; then
8305: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8306: if test -n "$file_magic_test_file"; then
8307: case $deplibs_check_method in
8308: "file_magic "*)
8309: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8310: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8312: $EGREP "$file_magic_regex" > /dev/null; then
8313: :
8314: else
8315: cat <<_LT_EOF 1>&2
8316:
8317: *** Warning: the command libtool uses to detect shared libraries,
8318: *** $file_magic_cmd, produces output that libtool cannot recognize.
8319: *** The result is that libtool may fail to recognize shared libraries
8320: *** as such. This will affect the creation of libtool libraries that
8321: *** depend on shared libraries, but programs linked with such libtool
8322: *** libraries will work regardless of this problem. Nevertheless, you
8323: *** may want to report the problem to your system manager and/or to
8324: *** bug-libtool@gnu.org
8325:
8326: _LT_EOF
8327: fi ;;
8328: esac
8329: fi
8330: break
8331: fi
8332: done
8333: IFS="$lt_save_ifs"
8334: MAGIC_CMD="$lt_save_MAGIC_CMD"
8335: ;;
8336: esac
8337: fi
8338:
8339: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8340: if test -n "$MAGIC_CMD"; then
8341: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8342: echo "${ECHO_T}$MAGIC_CMD" >&6
8343: else
8344: echo "$as_me:$LINENO: result: no" >&5
8345: echo "${ECHO_T}no" >&6
8346: fi
8347:
8348:
8349:
8350:
8351:
8352: if test -z "$lt_cv_path_MAGIC_CMD"; then
8353: if test -n "$ac_tool_prefix"; then
8354: echo "$as_me:$LINENO: checking for file" >&5
8355: echo $ECHO_N "checking for file... $ECHO_C" >&6
8356: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8357: echo $ECHO_N "(cached) $ECHO_C" >&6
8358: else
8359: case $MAGIC_CMD in
8360: [\\/*] | ?:[\\/]*)
8361: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8362: ;;
8363: *)
8364: lt_save_MAGIC_CMD="$MAGIC_CMD"
8365: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8366: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8367: for ac_dir in $ac_dummy; do
8368: IFS="$lt_save_ifs"
8369: test -z "$ac_dir" && ac_dir=.
8370: if test -f $ac_dir/file; then
8371: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8372: if test -n "$file_magic_test_file"; then
8373: case $deplibs_check_method in
8374: "file_magic "*)
8375: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8376: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8377: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8378: $EGREP "$file_magic_regex" > /dev/null; then
8379: :
8380: else
8381: cat <<_LT_EOF 1>&2
8382:
8383: *** Warning: the command libtool uses to detect shared libraries,
8384: *** $file_magic_cmd, produces output that libtool cannot recognize.
8385: *** The result is that libtool may fail to recognize shared libraries
8386: *** as such. This will affect the creation of libtool libraries that
8387: *** depend on shared libraries, but programs linked with such libtool
8388: *** libraries will work regardless of this problem. Nevertheless, you
8389: *** may want to report the problem to your system manager and/or to
8390: *** bug-libtool@gnu.org
8391:
8392: _LT_EOF
8393: fi ;;
8394: esac
8395: fi
8396: break
8397: fi
8398: done
8399: IFS="$lt_save_ifs"
8400: MAGIC_CMD="$lt_save_MAGIC_CMD"
8401: ;;
8402: esac
8403: fi
8404:
8405: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8406: if test -n "$MAGIC_CMD"; then
8407: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8408: echo "${ECHO_T}$MAGIC_CMD" >&6
8409: else
8410: echo "$as_me:$LINENO: result: no" >&5
8411: echo "${ECHO_T}no" >&6
8412: fi
8413:
8414:
8415: else
8416: MAGIC_CMD=:
8417: fi
8418: fi
8419:
8420: fi
8421: ;;
8422: esac
8423:
8424: # Use C for the default configuration in the libtool script
8425:
8426: lt_save_CC="$CC"
8427: ac_ext=c
8428: ac_cpp='$CPP $CPPFLAGS'
8429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8432:
8433:
8434: # Source file extension for C test sources.
8435: ac_ext=c
8436:
8437: # Object file extension for compiled C test sources.
8438: objext=o
8439: objext=$objext
8440:
8441: # Code to be used in simple compile tests
8442: lt_simple_compile_test_code="int some_variable = 0;"
8443:
8444: # Code to be used in simple link tests
8445: lt_simple_link_test_code='int main(){return(0);}'
8446:
8447:
8448:
8449:
8450:
8451:
8452:
8453: # If no C compiler was specified, use CC.
8454: LTCC=${LTCC-"$CC"}
8455:
8456: # If no C compiler flags were specified, use CFLAGS.
8457: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8458:
8459: # Allow CC to be a program name with arguments.
8460: compiler=$CC
8461:
8462: # Save the default compiler, since it gets overwritten when the other
8463: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8464: compiler_DEFAULT=$CC
8465:
8466: # save warnings/boilerplate of simple test code
8467: ac_outfile=conftest.$ac_objext
8468: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8469: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8470: _lt_compiler_boilerplate=`cat conftest.err`
8471: $RM conftest*
8472:
8473: ac_outfile=conftest.$ac_objext
8474: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8475: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8476: _lt_linker_boilerplate=`cat conftest.err`
8477: $RM -r conftest*
8478:
8479:
8480: ## CAVEAT EMPTOR:
8481: ## There is no encapsulation within the following macros, do not change
8482: ## the running order or otherwise move them around unless you know exactly
8483: ## what you are doing...
8484: if test -n "$compiler"; then
8485:
8486: lt_prog_compiler_no_builtin_flag=
8487:
8488: if test "$GCC" = yes; then
8489: case $cc_basename in
8490: nvcc*)
8491: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8492: *)
8493: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8494: esac
8495:
8496: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8497: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8498: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8499: echo $ECHO_N "(cached) $ECHO_C" >&6
8500: else
8501: lt_cv_prog_compiler_rtti_exceptions=no
8502: ac_outfile=conftest.$ac_objext
8503: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504: lt_compiler_flag="-fno-rtti -fno-exceptions"
8505: # Insert the option either (1) after the last *FLAGS variable, or
8506: # (2) before a word containing "conftest.", or (3) at the end.
8507: # Note that $ac_compile itself does not contain backslashes and begins
8508: # with a dollar sign (not a hyphen), so the echo should work correctly.
8509: # The option is referenced via a variable to avoid confusing sed.
8510: lt_compile=`echo "$ac_compile" | $SED \
8511: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8512: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8513: -e 's:$: $lt_compiler_flag:'`
8514: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8515: (eval "$lt_compile" 2>conftest.err)
8516: ac_status=$?
8517: cat conftest.err >&5
8518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519: if (exit $ac_status) && test -s "$ac_outfile"; then
8520: # The compiler can only warn and ignore the option if not recognized
8521: # So say no if there are warnings other than the usual output.
8522: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8523: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8525: lt_cv_prog_compiler_rtti_exceptions=yes
8526: fi
8527: fi
8528: $RM conftest*
8529:
8530: fi
8531: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8532: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8533:
8534: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8535: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8536: else
8537: :
8538: fi
8539:
8540: fi
8541:
8542:
8543:
8544:
8545:
8546:
8547: lt_prog_compiler_wl=
8548: lt_prog_compiler_pic=
8549: lt_prog_compiler_static=
8550:
8551:
8552: if test "$GCC" = yes; then
8553: lt_prog_compiler_wl='-Wl,'
8554: lt_prog_compiler_static='-static'
8555:
8556: case $host_os in
8557: aix*)
8558: # All AIX code is PIC.
8559: if test "$host_cpu" = ia64; then
8560: # AIX 5 now supports IA64 processor
8561: lt_prog_compiler_static='-Bstatic'
8562: fi
8563: ;;
8564:
8565: amigaos*)
8566: case $host_cpu in
8567: powerpc)
8568: # see comment about AmigaOS4 .so support
8569: lt_prog_compiler_pic='-fPIC'
8570: ;;
8571: m68k)
8572: # FIXME: we need at least 68020 code to build shared libraries, but
8573: # adding the `-m68020' flag to GCC prevents building anything better,
8574: # like `-m68040'.
8575: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8576: ;;
8577: esac
8578: ;;
8579:
8580: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8581: # PIC is the default for these OSes.
8582: ;;
8583:
8584: mingw* | cygwin* | pw32* | os2* | cegcc*)
8585: # This hack is so that the source file can tell whether it is being
8586: # built for inclusion in a dll (and should export symbols for example).
8587: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8588: # (--disable-auto-import) libraries
8589: lt_prog_compiler_pic='-DDLL_EXPORT'
8590: ;;
8591:
8592: darwin* | rhapsody*)
8593: # PIC is the default on this platform
8594: # Common symbols not allowed in MH_DYLIB files
8595: lt_prog_compiler_pic='-fno-common'
8596: ;;
8597:
8598: haiku*)
8599: # PIC is the default for Haiku.
8600: # The "-static" flag exists, but is broken.
8601: lt_prog_compiler_static=
8602: ;;
8603:
8604: hpux*)
8605: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8606: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8607: # sets the default TLS model and affects inlining.
8608: case $host_cpu in
8609: hppa*64*)
8610: # +Z the default
8611: ;;
8612: *)
8613: lt_prog_compiler_pic='-fPIC'
8614: ;;
8615: esac
8616: ;;
8617:
8618: interix[3-9]*)
8619: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8620: # Instead, we relocate shared libraries at runtime.
8621: ;;
8622:
8623: msdosdjgpp*)
8624: # Just because we use GCC doesn't mean we suddenly get shared libraries
8625: # on systems that don't support them.
8626: lt_prog_compiler_can_build_shared=no
8627: enable_shared=no
8628: ;;
8629:
8630: *nto* | *qnx*)
8631: # QNX uses GNU C++, but need to define -shared option too, otherwise
8632: # it will coredump.
8633: lt_prog_compiler_pic='-fPIC -shared'
8634: ;;
8635:
8636: sysv4*MP*)
8637: if test -d /usr/nec; then
8638: lt_prog_compiler_pic=-Kconform_pic
8639: fi
8640: ;;
8641:
8642: *)
8643: lt_prog_compiler_pic='-fPIC'
8644: ;;
8645: esac
8646:
8647: case $cc_basename in
8648: nvcc*) # Cuda Compiler Driver 2.2
8649: lt_prog_compiler_wl='-Xlinker '
8650: if test -n "$lt_prog_compiler_pic"; then
8651: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8652: fi
8653: ;;
8654: esac
8655: else
8656: # PORTME Check for flag to pass linker flags through the system compiler.
8657: case $host_os in
8658: aix*)
8659: lt_prog_compiler_wl='-Wl,'
8660: if test "$host_cpu" = ia64; then
8661: # AIX 5 now supports IA64 processor
8662: lt_prog_compiler_static='-Bstatic'
8663: else
8664: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8665: fi
8666: ;;
8667:
8668: mingw* | cygwin* | pw32* | os2* | cegcc*)
8669: # This hack is so that the source file can tell whether it is being
8670: # built for inclusion in a dll (and should export symbols for example).
8671: lt_prog_compiler_pic='-DDLL_EXPORT'
8672: ;;
8673:
8674: hpux9* | hpux10* | hpux11*)
8675: lt_prog_compiler_wl='-Wl,'
8676: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677: # not for PA HP-UX.
8678: case $host_cpu in
8679: hppa*64*|ia64*)
8680: # +Z the default
8681: ;;
8682: *)
8683: lt_prog_compiler_pic='+Z'
8684: ;;
8685: esac
8686: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8687: lt_prog_compiler_static='${wl}-a ${wl}archive'
8688: ;;
8689:
8690: irix5* | irix6* | nonstopux*)
8691: lt_prog_compiler_wl='-Wl,'
8692: # PIC (with -KPIC) is the default.
8693: lt_prog_compiler_static='-non_shared'
8694: ;;
8695:
8696: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8697: case $cc_basename in
8698: # old Intel for x86_64 which still supported -KPIC.
8699: ecc*)
8700: lt_prog_compiler_wl='-Wl,'
8701: lt_prog_compiler_pic='-KPIC'
8702: lt_prog_compiler_static='-static'
8703: ;;
8704: # icc used to be incompatible with GCC.
8705: # ICC 10 doesn't accept -KPIC any more.
8706: icc* | ifort*)
8707: lt_prog_compiler_wl='-Wl,'
8708: lt_prog_compiler_pic='-fPIC'
8709: lt_prog_compiler_static='-static'
8710: ;;
8711: # Lahey Fortran 8.1.
8712: lf95*)
8713: lt_prog_compiler_wl='-Wl,'
8714: lt_prog_compiler_pic='--shared'
8715: lt_prog_compiler_static='--static'
8716: ;;
8717: nagfor*)
8718: # NAG Fortran compiler
8719: lt_prog_compiler_wl='-Wl,-Wl,,'
8720: lt_prog_compiler_pic='-PIC'
8721: lt_prog_compiler_static='-Bstatic'
8722: ;;
8723: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8724: # Portland Group compilers (*not* the Pentium gcc compiler,
8725: # which looks to be a dead project)
8726: lt_prog_compiler_wl='-Wl,'
8727: lt_prog_compiler_pic='-fpic'
8728: lt_prog_compiler_static='-Bstatic'
8729: ;;
8730: ccc*)
8731: lt_prog_compiler_wl='-Wl,'
8732: # All Alpha code is PIC.
8733: lt_prog_compiler_static='-non_shared'
8734: ;;
8735: xl* | bgxl* | bgf* | mpixl*)
8736: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8737: lt_prog_compiler_wl='-Wl,'
8738: lt_prog_compiler_pic='-qpic'
8739: lt_prog_compiler_static='-qstaticlink'
8740: ;;
8741: *)
8742: case `$CC -V 2>&1 | sed 5q` in
8743: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8744: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8745: lt_prog_compiler_pic='-KPIC'
8746: lt_prog_compiler_static='-Bstatic'
8747: lt_prog_compiler_wl=''
8748: ;;
8749: *Sun\ F* | *Sun*Fortran*)
8750: lt_prog_compiler_pic='-KPIC'
8751: lt_prog_compiler_static='-Bstatic'
8752: lt_prog_compiler_wl='-Qoption ld '
8753: ;;
8754: *Sun\ C*)
8755: # Sun C 5.9
8756: lt_prog_compiler_pic='-KPIC'
8757: lt_prog_compiler_static='-Bstatic'
8758: lt_prog_compiler_wl='-Wl,'
8759: ;;
8760: *Intel*\ [CF]*Compiler*)
8761: lt_prog_compiler_wl='-Wl,'
8762: lt_prog_compiler_pic='-fPIC'
8763: lt_prog_compiler_static='-static'
8764: ;;
8765: *Portland\ Group*)
8766: lt_prog_compiler_wl='-Wl,'
8767: lt_prog_compiler_pic='-fpic'
8768: lt_prog_compiler_static='-Bstatic'
8769: ;;
8770: esac
8771: ;;
8772: esac
8773: ;;
8774:
8775: newsos6)
8776: lt_prog_compiler_pic='-KPIC'
8777: lt_prog_compiler_static='-Bstatic'
8778: ;;
8779:
8780: *nto* | *qnx*)
8781: # QNX uses GNU C++, but need to define -shared option too, otherwise
8782: # it will coredump.
8783: lt_prog_compiler_pic='-fPIC -shared'
8784: ;;
8785:
8786: osf3* | osf4* | osf5*)
8787: lt_prog_compiler_wl='-Wl,'
8788: # All OSF/1 code is PIC.
8789: lt_prog_compiler_static='-non_shared'
8790: ;;
8791:
8792: rdos*)
8793: lt_prog_compiler_static='-non_shared'
8794: ;;
8795:
8796: solaris*)
8797: lt_prog_compiler_pic='-KPIC'
8798: lt_prog_compiler_static='-Bstatic'
8799: case $cc_basename in
8800: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8801: lt_prog_compiler_wl='-Qoption ld ';;
8802: *)
8803: lt_prog_compiler_wl='-Wl,';;
8804: esac
8805: ;;
8806:
8807: sunos4*)
8808: lt_prog_compiler_wl='-Qoption ld '
8809: lt_prog_compiler_pic='-PIC'
8810: lt_prog_compiler_static='-Bstatic'
8811: ;;
8812:
8813: sysv4 | sysv4.2uw2* | sysv4.3*)
8814: lt_prog_compiler_wl='-Wl,'
8815: lt_prog_compiler_pic='-KPIC'
8816: lt_prog_compiler_static='-Bstatic'
8817: ;;
8818:
8819: sysv4*MP*)
8820: if test -d /usr/nec ;then
8821: lt_prog_compiler_pic='-Kconform_pic'
8822: lt_prog_compiler_static='-Bstatic'
8823: fi
8824: ;;
8825:
8826: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8827: lt_prog_compiler_wl='-Wl,'
8828: lt_prog_compiler_pic='-KPIC'
8829: lt_prog_compiler_static='-Bstatic'
8830: ;;
8831:
8832: unicos*)
8833: lt_prog_compiler_wl='-Wl,'
8834: lt_prog_compiler_can_build_shared=no
8835: ;;
8836:
8837: uts4*)
8838: lt_prog_compiler_pic='-pic'
8839: lt_prog_compiler_static='-Bstatic'
8840: ;;
8841:
8842: *)
8843: lt_prog_compiler_can_build_shared=no
8844: ;;
8845: esac
8846: fi
8847:
8848: case $host_os in
8849: # For platforms which do not support PIC, -DPIC is meaningless:
8850: *djgpp*)
8851: lt_prog_compiler_pic=
8852: ;;
8853: *)
8854: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8855: ;;
8856: esac
8857:
8858: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8859: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8860: if test "${lt_cv_prog_compiler_pic+set}" = set; then
8861: echo $ECHO_N "(cached) $ECHO_C" >&6
8862: else
8863: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8864: fi
8865: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic" >&5
8866: echo "${ECHO_T}$lt_cv_prog_compiler_pic" >&6
8867: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8868:
8869: #
8870: # Check to make sure the PIC flag actually works.
8871: #
8872: if test -n "$lt_prog_compiler_pic"; then
8873: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8874: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8875: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8876: echo $ECHO_N "(cached) $ECHO_C" >&6
8877: else
8878: lt_cv_prog_compiler_pic_works=no
8879: ac_outfile=conftest.$ac_objext
8880: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8881: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8882: # Insert the option either (1) after the last *FLAGS variable, or
8883: # (2) before a word containing "conftest.", or (3) at the end.
8884: # Note that $ac_compile itself does not contain backslashes and begins
8885: # with a dollar sign (not a hyphen), so the echo should work correctly.
8886: # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
8893: ac_status=$?
8894: cat conftest.err >&5
8895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896: if (exit $ac_status) && test -s "$ac_outfile"; then
8897: # The compiler can only warn and ignore the option if not recognized
8898: # So say no if there are warnings other than the usual output.
8899: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8900: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8901: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8902: lt_cv_prog_compiler_pic_works=yes
8903: fi
8904: fi
8905: $RM conftest*
8906:
8907: fi
8908: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8909: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8910:
8911: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8912: case $lt_prog_compiler_pic in
8913: "" | " "*) ;;
8914: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8915: esac
8916: else
8917: lt_prog_compiler_pic=
8918: lt_prog_compiler_can_build_shared=no
8919: fi
8920:
8921: fi
8922:
8923:
8924:
8925:
8926:
8927:
8928:
8929:
8930:
8931:
8932:
8933: #
8934: # Check to make sure the static flag actually works.
8935: #
8936: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8937: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8938: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8939: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8940: echo $ECHO_N "(cached) $ECHO_C" >&6
8941: else
8942: lt_cv_prog_compiler_static_works=no
8943: save_LDFLAGS="$LDFLAGS"
8944: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8945: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8946: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8947: # The linker can only warn and ignore the option if not recognized
8948: # So say no if there are warnings
8949: if test -s conftest.err; then
8950: # Append any errors to the config.log.
8951: cat conftest.err 1>&5
8952: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8953: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8954: if diff conftest.exp conftest.er2 >/dev/null; then
8955: lt_cv_prog_compiler_static_works=yes
8956: fi
8957: else
8958: lt_cv_prog_compiler_static_works=yes
8959: fi
8960: fi
8961: $RM -r conftest*
8962: LDFLAGS="$save_LDFLAGS"
8963:
8964: fi
8965: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8966: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8967:
8968: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8969: :
8970: else
8971: lt_prog_compiler_static=
8972: fi
8973:
8974:
8975:
8976:
8977:
8978:
8979:
8980: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8981: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8982: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8983: echo $ECHO_N "(cached) $ECHO_C" >&6
8984: else
8985: lt_cv_prog_compiler_c_o=no
8986: $RM -r conftest 2>/dev/null
8987: mkdir conftest
8988: cd conftest
8989: mkdir out
8990: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991:
8992: lt_compiler_flag="-o out/conftest2.$ac_objext"
8993: # Insert the option either (1) after the last *FLAGS variable, or
8994: # (2) before a word containing "conftest.", or (3) at the end.
8995: # Note that $ac_compile itself does not contain backslashes and begins
8996: # with a dollar sign (not a hyphen), so the echo should work correctly.
8997: lt_compile=`echo "$ac_compile" | $SED \
8998: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000: -e 's:$: $lt_compiler_flag:'`
9001: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9002: (eval "$lt_compile" 2>out/conftest.err)
9003: ac_status=$?
9004: cat out/conftest.err >&5
9005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9007: then
9008: # The compiler can only warn and ignore the option if not recognized
9009: # So say no if there are warnings
9010: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9011: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9012: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9013: lt_cv_prog_compiler_c_o=yes
9014: fi
9015: fi
9016: chmod u+w . 2>&5
9017: $RM conftest*
9018: # SGI C++ compiler will create directory out/ii_files/ for
9019: # template instantiation
9020: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9021: $RM out/* && rmdir out
9022: cd ..
9023: $RM -r conftest
9024: $RM conftest*
9025:
9026: fi
9027: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9028: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9029:
9030:
9031:
9032:
9033:
9034:
9035: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9036: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9037: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9038: echo $ECHO_N "(cached) $ECHO_C" >&6
9039: else
9040: lt_cv_prog_compiler_c_o=no
9041: $RM -r conftest 2>/dev/null
9042: mkdir conftest
9043: cd conftest
9044: mkdir out
9045: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9046:
9047: lt_compiler_flag="-o out/conftest2.$ac_objext"
9048: # Insert the option either (1) after the last *FLAGS variable, or
9049: # (2) before a word containing "conftest.", or (3) at the end.
9050: # Note that $ac_compile itself does not contain backslashes and begins
9051: # with a dollar sign (not a hyphen), so the echo should work correctly.
9052: lt_compile=`echo "$ac_compile" | $SED \
9053: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055: -e 's:$: $lt_compiler_flag:'`
9056: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9057: (eval "$lt_compile" 2>out/conftest.err)
9058: ac_status=$?
9059: cat out/conftest.err >&5
9060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9062: then
9063: # The compiler can only warn and ignore the option if not recognized
9064: # So say no if there are warnings
9065: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9066: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9067: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9068: lt_cv_prog_compiler_c_o=yes
9069: fi
9070: fi
9071: chmod u+w . 2>&5
9072: $RM conftest*
9073: # SGI C++ compiler will create directory out/ii_files/ for
9074: # template instantiation
9075: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9076: $RM out/* && rmdir out
9077: cd ..
9078: $RM -r conftest
9079: $RM conftest*
9080:
9081: fi
9082: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9083: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9084:
9085:
9086:
9087:
9088: hard_links="nottested"
9089: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9090: # do not overwrite the value of need_locks provided by the user
9091: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9092: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9093: hard_links=yes
9094: $RM conftest*
9095: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096: touch conftest.a
9097: ln conftest.a conftest.b 2>&5 || hard_links=no
9098: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9099: echo "$as_me:$LINENO: result: $hard_links" >&5
9100: echo "${ECHO_T}$hard_links" >&6
9101: if test "$hard_links" = no; then
9102: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9103: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9104: need_locks=warn
9105: fi
9106: else
9107: need_locks=no
9108: fi
9109:
9110:
9111:
9112:
9113:
9114:
9115: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9116: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9117:
9118: runpath_var=
9119: allow_undefined_flag=
9120: always_export_symbols=no
9121: archive_cmds=
9122: archive_expsym_cmds=
9123: compiler_needs_object=no
9124: enable_shared_with_static_runtimes=no
9125: export_dynamic_flag_spec=
9126: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9127: hardcode_automatic=no
9128: hardcode_direct=no
9129: hardcode_direct_absolute=no
9130: hardcode_libdir_flag_spec=
9131: hardcode_libdir_separator=
9132: hardcode_minus_L=no
9133: hardcode_shlibpath_var=unsupported
9134: inherit_rpath=no
9135: link_all_deplibs=unknown
9136: module_cmds=
9137: module_expsym_cmds=
9138: old_archive_from_new_cmds=
9139: old_archive_from_expsyms_cmds=
9140: thread_safe_flag_spec=
9141: whole_archive_flag_spec=
9142: # include_expsyms should be a list of space-separated symbols to be *always*
9143: # included in the symbol list
9144: include_expsyms=
9145: # exclude_expsyms can be an extended regexp of symbols to exclude
9146: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9147: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9148: # as well as any symbol that contains `d'.
9149: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9150: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9151: # platforms (ab)use it in PIC code, but their linkers get confused if
9152: # the symbol is explicitly referenced. Since portable code cannot
9153: # rely on this symbol name, it's probably fine to never include it in
9154: # preloaded symbol tables.
9155: # Exclude shared library initialization/finalization symbols.
9156: extract_expsyms_cmds=
9157:
9158: case $host_os in
9159: cygwin* | mingw* | pw32* | cegcc*)
9160: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9161: # When not using gcc, we currently assume that we are using
9162: # Microsoft Visual C++.
9163: if test "$GCC" != yes; then
9164: with_gnu_ld=no
9165: fi
9166: ;;
9167: interix*)
9168: # we just hope/assume this is gcc and not c89 (= MSVC++)
9169: with_gnu_ld=yes
9170: ;;
9171: openbsd*)
9172: with_gnu_ld=no
9173: ;;
9174: esac
9175:
9176: ld_shlibs=yes
9177:
9178: # On some targets, GNU ld is compatible enough with the native linker
9179: # that we're better off using the native interface for both.
9180: lt_use_gnu_ld_interface=no
9181: if test "$with_gnu_ld" = yes; then
9182: case $host_os in
9183: aix*)
9184: # The AIX port of GNU ld has always aspired to compatibility
9185: # with the native linker. However, as the warning in the GNU ld
9186: # block says, versions before 2.19.5* couldn't really create working
9187: # shared libraries, regardless of the interface used.
9188: case `$LD -v 2>&1` in
9189: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9190: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9191: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9192: *)
9193: lt_use_gnu_ld_interface=yes
9194: ;;
9195: esac
9196: ;;
9197: *)
9198: lt_use_gnu_ld_interface=yes
9199: ;;
9200: esac
9201: fi
9202:
9203: if test "$lt_use_gnu_ld_interface" = yes; then
9204: # If archive_cmds runs LD, not CC, wlarc should be empty
9205: wlarc='${wl}'
9206:
9207: # Set some defaults for GNU ld with shared library support. These
9208: # are reset later if shared libraries are not supported. Putting them
9209: # here allows them to be overridden if necessary.
9210: runpath_var=LD_RUN_PATH
9211: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212: export_dynamic_flag_spec='${wl}--export-dynamic'
9213: # ancient GNU ld didn't support --whole-archive et. al.
9214: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9215: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9216: else
9217: whole_archive_flag_spec=
9218: fi
9219: supports_anon_versioning=no
9220: case `$LD -v 2>&1` in
9221: *GNU\ gold*) supports_anon_versioning=yes ;;
9222: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9223: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9224: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9225: *\ 2.11.*) ;; # other 2.11 versions
9226: *) supports_anon_versioning=yes ;;
9227: esac
9228:
9229: # See if GNU ld supports shared libraries.
9230: case $host_os in
9231: aix[3-9]*)
9232: # On AIX/PPC, the GNU linker is very broken
9233: if test "$host_cpu" != ia64; then
9234: ld_shlibs=no
9235: cat <<_LT_EOF 1>&2
9236:
9237: *** Warning: the GNU linker, at least up to release 2.19, is reported
9238: *** to be unable to reliably create shared libraries on AIX.
9239: *** Therefore, libtool is disabling shared libraries support. If you
9240: *** really care for shared libraries, you may want to install binutils
9241: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9242: *** You will then need to restart the configuration process.
9243:
9244: _LT_EOF
9245: fi
9246: ;;
9247:
9248: amigaos*)
9249: case $host_cpu in
9250: powerpc)
9251: # see comment about AmigaOS4 .so support
9252: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253: archive_expsym_cmds=''
9254: ;;
9255: m68k)
9256: 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)'
9257: hardcode_libdir_flag_spec='-L$libdir'
9258: hardcode_minus_L=yes
9259: ;;
9260: esac
9261: ;;
9262:
9263: beos*)
9264: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9265: allow_undefined_flag=unsupported
9266: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9267: # support --undefined. This deserves some investigation. FIXME
9268: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269: else
9270: ld_shlibs=no
9271: fi
9272: ;;
9273:
9274: cygwin* | mingw* | pw32* | cegcc*)
9275: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9276: # as there is no search path for DLLs.
9277: hardcode_libdir_flag_spec='-L$libdir'
9278: export_dynamic_flag_spec='${wl}--export-all-symbols'
9279: allow_undefined_flag=unsupported
9280: always_export_symbols=no
9281: enable_shared_with_static_runtimes=yes
9282: 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'
9283: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9284:
9285: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9286: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9287: # If the export-symbols file already is a .def file (1st line
9288: # is EXPORTS), use it as is; otherwise, prepend...
9289: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9290: cp $export_symbols $output_objdir/$soname.def;
9291: else
9292: echo EXPORTS > $output_objdir/$soname.def;
9293: cat $export_symbols >> $output_objdir/$soname.def;
9294: fi~
9295: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9296: else
9297: ld_shlibs=no
9298: fi
9299: ;;
9300:
9301: haiku*)
9302: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303: link_all_deplibs=yes
9304: ;;
9305:
9306: interix[3-9]*)
9307: hardcode_direct=no
9308: hardcode_shlibpath_var=no
9309: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310: export_dynamic_flag_spec='${wl}-E'
9311: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9312: # Instead, shared libraries are loaded at an image base (0x10000000 by
9313: # default) and relocated if they conflict, which is a slow very memory
9314: # consuming and fragmenting process. To avoid this, we pick a random,
9315: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9316: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9317: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9318: 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'
9319: ;;
9320:
9321: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9322: tmp_diet=no
9323: if test "$host_os" = linux-dietlibc; then
9324: case $cc_basename in
9325: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9326: esac
9327: fi
9328: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9329: && test "$tmp_diet" = no
9330: then
9331: tmp_addflag=' $pic_flag'
9332: tmp_sharedflag='-shared'
9333: case $cc_basename,$host_cpu in
9334: pgcc*) # Portland Group C compiler
9335: 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'
9336: tmp_addflag=' $pic_flag'
9337: ;;
9338: pgf77* | pgf90* | pgf95* | pgfortran*)
9339: # Portland Group f77 and f90 compilers
9340: 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'
9341: tmp_addflag=' $pic_flag -Mnomain' ;;
9342: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9343: tmp_addflag=' -i_dynamic' ;;
9344: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9345: tmp_addflag=' -i_dynamic -nofor_main' ;;
9346: ifc* | ifort*) # Intel Fortran compiler
9347: tmp_addflag=' -nofor_main' ;;
9348: lf95*) # Lahey Fortran 8.1
9349: whole_archive_flag_spec=
9350: tmp_sharedflag='--shared' ;;
9351: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9352: tmp_sharedflag='-qmkshrobj'
9353: tmp_addflag= ;;
9354: nvcc*) # Cuda Compiler Driver 2.2
9355: 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'
9356: compiler_needs_object=yes
9357: ;;
9358: esac
9359: case `$CC -V 2>&1 | sed 5q` in
9360: *Sun\ C*) # Sun C 5.9
9361: 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'
9362: compiler_needs_object=yes
9363: tmp_sharedflag='-G' ;;
9364: *Sun\ F*) # Sun Fortran 8.3
9365: tmp_sharedflag='-G' ;;
9366: esac
9367: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368:
9369: if test "x$supports_anon_versioning" = xyes; then
9370: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9371: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9372: echo "local: *; };" >> $output_objdir/$libname.ver~
9373: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9374: fi
9375:
9376: case $cc_basename in
9377: xlf* | bgf* | bgxlf* | mpixlf*)
9378: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9379: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9380: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9382: if test "x$supports_anon_versioning" = xyes; then
9383: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9384: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9385: echo "local: *; };" >> $output_objdir/$libname.ver~
9386: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9387: fi
9388: ;;
9389: esac
9390: else
9391: ld_shlibs=no
9392: fi
9393: ;;
9394:
9395: netbsd*)
9396: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9397: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9398: wlarc=
9399: else
9400: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402: fi
9403: ;;
9404:
9405: solaris*)
9406: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9407: ld_shlibs=no
9408: cat <<_LT_EOF 1>&2
9409:
9410: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9411: *** create shared libraries on Solaris systems. Therefore, libtool
9412: *** is disabling shared libraries support. We urge you to upgrade GNU
9413: *** binutils to release 2.9.1 or newer. Another option is to modify
9414: *** your PATH or compiler configuration so that the native linker is
9415: *** used, and then restart.
9416:
9417: _LT_EOF
9418: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9419: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421: else
9422: ld_shlibs=no
9423: fi
9424: ;;
9425:
9426: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9427: case `$LD -v 2>&1` in
9428: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9429: ld_shlibs=no
9430: cat <<_LT_EOF 1>&2
9431:
9432: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9433: *** reliably create shared libraries on SCO systems. Therefore, libtool
9434: *** is disabling shared libraries support. We urge you to upgrade GNU
9435: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9436: *** your PATH or compiler configuration so that the native linker is
9437: *** used, and then restart.
9438:
9439: _LT_EOF
9440: ;;
9441: *)
9442: # For security reasons, it is highly recommended that you always
9443: # use absolute paths for naming shared libraries, and exclude the
9444: # DT_RUNPATH tag from executables and libraries. But doing so
9445: # requires that you compile everything twice, which is a pain.
9446: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9447: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450: else
9451: ld_shlibs=no
9452: fi
9453: ;;
9454: esac
9455: ;;
9456:
9457: sunos4*)
9458: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459: wlarc=
9460: hardcode_direct=yes
9461: hardcode_shlibpath_var=no
9462: ;;
9463:
9464: *)
9465: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468: else
9469: ld_shlibs=no
9470: fi
9471: ;;
9472: esac
9473:
9474: if test "$ld_shlibs" = no; then
9475: runpath_var=
9476: hardcode_libdir_flag_spec=
9477: export_dynamic_flag_spec=
9478: whole_archive_flag_spec=
9479: fi
9480: else
9481: # PORTME fill in a description of your system's linker (not GNU ld)
9482: case $host_os in
9483: aix3*)
9484: allow_undefined_flag=unsupported
9485: always_export_symbols=yes
9486: 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'
9487: # Note: this linker hardcodes the directories in LIBPATH if there
9488: # are no directories specified by -L.
9489: hardcode_minus_L=yes
9490: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9491: # Neither direct hardcoding nor static linking is supported with a
9492: # broken collect2.
9493: hardcode_direct=unsupported
9494: fi
9495: ;;
9496:
9497: aix[4-9]*)
9498: if test "$host_cpu" = ia64; then
9499: # On IA64, the linker does run time linking by default, so we don't
9500: # have to do anything special.
9501: aix_use_runtimelinking=no
9502: exp_sym_flag='-Bexport'
9503: no_entry_flag=""
9504: else
9505: # If we're using GNU nm, then we don't want the "-C" option.
9506: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9507: # Also, AIX nm treats weak defined symbols like other global
9508: # defined symbols, whereas GNU nm marks them as "W".
9509: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9510: 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'
9511: else
9512: 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'
9513: fi
9514: aix_use_runtimelinking=no
9515:
9516: # Test if we are trying to use run time linking or normal
9517: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9518: # need to do runtime linking.
9519: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9520: for ld_flag in $LDFLAGS; do
9521: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9522: aix_use_runtimelinking=yes
9523: break
9524: fi
9525: done
9526: ;;
9527: esac
9528:
9529: exp_sym_flag='-bexport'
9530: no_entry_flag='-bnoentry'
9531: fi
9532:
9533: # When large executables or shared objects are built, AIX ld can
9534: # have problems creating the table of contents. If linking a library
9535: # or program results in "error TOC overflow" add -mminimal-toc to
9536: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9537: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9538:
9539: archive_cmds=''
9540: hardcode_direct=yes
9541: hardcode_direct_absolute=yes
9542: hardcode_libdir_separator=':'
9543: link_all_deplibs=yes
9544: file_list_spec='${wl}-f,'
9545:
9546: if test "$GCC" = yes; then
9547: case $host_os in aix4.[012]|aix4.[012].*)
9548: # We only want to do this on AIX 4.2 and lower, the check
9549: # below for broken collect2 doesn't work under 4.3+
9550: collect2name=`${CC} -print-prog-name=collect2`
9551: if test -f "$collect2name" &&
9552: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9553: then
9554: # We have reworked collect2
9555: :
9556: else
9557: # We have old collect2
9558: hardcode_direct=unsupported
9559: # It fails to find uninstalled libraries when the uninstalled
9560: # path is not listed in the libpath. Setting hardcode_minus_L
9561: # to unsupported forces relinking
9562: hardcode_minus_L=yes
9563: hardcode_libdir_flag_spec='-L$libdir'
9564: hardcode_libdir_separator=
9565: fi
9566: ;;
9567: esac
9568: shared_flag='-shared'
9569: if test "$aix_use_runtimelinking" = yes; then
9570: shared_flag="$shared_flag "'${wl}-G'
9571: fi
9572: else
9573: # not using gcc
9574: if test "$host_cpu" = ia64; then
9575: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9576: # chokes on -Wl,-G. The following line is correct:
9577: shared_flag='-G'
9578: else
9579: if test "$aix_use_runtimelinking" = yes; then
9580: shared_flag='${wl}-G'
9581: else
9582: shared_flag='${wl}-bM:SRE'
9583: fi
9584: fi
9585: fi
9586:
9587: export_dynamic_flag_spec='${wl}-bexpall'
9588: # It seems that -bexpall does not export symbols beginning with
9589: # underscore (_), so it is better to generate a list of symbols to export.
9590: always_export_symbols=yes
9591: if test "$aix_use_runtimelinking" = yes; then
9592: # Warning - without using the other runtime loading flags (-brtl),
9593: # -berok will link without error, but may produce a broken library.
9594: allow_undefined_flag='-berok'
9595: # Determine the default libpath from the value encoded in an
9596: # empty executable.
9597: if test "${lt_cv_aix_libpath+set}" = set; then
9598: aix_libpath=$lt_cv_aix_libpath
9599: else
9600: if test "${lt_cv_aix_libpath_+set}" = set; then
9601: echo $ECHO_N "(cached) $ECHO_C" >&6
9602: else
9603: cat >conftest.$ac_ext <<_ACEOF
9604: /* confdefs.h. */
9605: _ACEOF
9606: cat confdefs.h >>conftest.$ac_ext
9607: cat >>conftest.$ac_ext <<_ACEOF
9608: /* end confdefs.h. */
9609:
9610: int
9611: main ()
9612: {
9613:
9614: ;
9615: return 0;
9616: }
9617: _ACEOF
9618: rm -f conftest.$ac_objext conftest$ac_exeext
9619: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9620: (eval $ac_link) 2>conftest.er1
9621: ac_status=$?
9622: grep -v '^ *+' conftest.er1 >conftest.err
9623: rm -f conftest.er1
9624: cat conftest.err >&5
9625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626: (exit $ac_status); } &&
9627: { ac_try='test -z "$ac_c_werror_flag"
9628: || test ! -s conftest.err'
9629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630: (eval $ac_try) 2>&5
9631: ac_status=$?
9632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633: (exit $ac_status); }; } &&
9634: { ac_try='test -s conftest$ac_exeext'
9635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636: (eval $ac_try) 2>&5
9637: ac_status=$?
9638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639: (exit $ac_status); }; }; then
9640:
9641: lt_aix_libpath_sed='
9642: /Import File Strings/,/^$/ {
9643: /^0/ {
9644: s/^0 *\([^ ]*\) *$/\1/
9645: p
9646: }
9647: }'
9648: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9649: # Check for a 64-bit object if we didn't find anything.
9650: if test -z "$lt_cv_aix_libpath_"; then
9651: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9652: fi
9653: else
9654: echo "$as_me: failed program was:" >&5
9655: sed 's/^/| /' conftest.$ac_ext >&5
9656:
9657: fi
9658: rm -f conftest.err conftest.$ac_objext \
9659: conftest$ac_exeext conftest.$ac_ext
9660: if test -z "$lt_cv_aix_libpath_"; then
9661: lt_cv_aix_libpath_="/usr/lib:/lib"
9662: fi
9663:
9664: fi
9665:
9666: aix_libpath=$lt_cv_aix_libpath_
9667: fi
9668:
9669: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9670: 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"
9671: else
9672: if test "$host_cpu" = ia64; then
9673: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9674: allow_undefined_flag="-z nodefs"
9675: 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"
9676: else
9677: # Determine the default libpath from the value encoded in an
9678: # empty executable.
9679: if test "${lt_cv_aix_libpath+set}" = set; then
9680: aix_libpath=$lt_cv_aix_libpath
9681: else
9682: if test "${lt_cv_aix_libpath_+set}" = set; then
9683: echo $ECHO_N "(cached) $ECHO_C" >&6
9684: else
9685: cat >conftest.$ac_ext <<_ACEOF
9686: /* confdefs.h. */
9687: _ACEOF
9688: cat confdefs.h >>conftest.$ac_ext
9689: cat >>conftest.$ac_ext <<_ACEOF
9690: /* end confdefs.h. */
9691:
9692: int
9693: main ()
9694: {
9695:
9696: ;
9697: return 0;
9698: }
9699: _ACEOF
9700: rm -f conftest.$ac_objext conftest$ac_exeext
9701: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702: (eval $ac_link) 2>conftest.er1
9703: ac_status=$?
9704: grep -v '^ *+' conftest.er1 >conftest.err
9705: rm -f conftest.er1
9706: cat conftest.err >&5
9707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708: (exit $ac_status); } &&
9709: { ac_try='test -z "$ac_c_werror_flag"
9710: || test ! -s conftest.err'
9711: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712: (eval $ac_try) 2>&5
9713: ac_status=$?
9714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715: (exit $ac_status); }; } &&
9716: { ac_try='test -s conftest$ac_exeext'
9717: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718: (eval $ac_try) 2>&5
9719: ac_status=$?
9720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721: (exit $ac_status); }; }; then
9722:
9723: lt_aix_libpath_sed='
9724: /Import File Strings/,/^$/ {
9725: /^0/ {
9726: s/^0 *\([^ ]*\) *$/\1/
9727: p
9728: }
9729: }'
9730: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731: # Check for a 64-bit object if we didn't find anything.
9732: if test -z "$lt_cv_aix_libpath_"; then
9733: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734: fi
9735: else
9736: echo "$as_me: failed program was:" >&5
9737: sed 's/^/| /' conftest.$ac_ext >&5
9738:
9739: fi
9740: rm -f conftest.err conftest.$ac_objext \
9741: conftest$ac_exeext conftest.$ac_ext
9742: if test -z "$lt_cv_aix_libpath_"; then
9743: lt_cv_aix_libpath_="/usr/lib:/lib"
9744: fi
9745:
9746: fi
9747:
9748: aix_libpath=$lt_cv_aix_libpath_
9749: fi
9750:
9751: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9752: # Warning - without using the other run time loading flags,
9753: # -berok will link without error, but may produce a broken library.
9754: no_undefined_flag=' ${wl}-bernotok'
9755: allow_undefined_flag=' ${wl}-berok'
9756: if test "$with_gnu_ld" = yes; then
9757: # We only use this code for GNU lds that support --whole-archive.
9758: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9759: else
9760: # Exported symbols can be pulled into shared objects from archives
9761: whole_archive_flag_spec='$convenience'
9762: fi
9763: archive_cmds_need_lc=yes
9764: # This is similar to how AIX traditionally builds its shared libraries.
9765: 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'
9766: fi
9767: fi
9768: ;;
9769:
9770: amigaos*)
9771: case $host_cpu in
9772: powerpc)
9773: # see comment about AmigaOS4 .so support
9774: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9775: archive_expsym_cmds=''
9776: ;;
9777: m68k)
9778: 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)'
9779: hardcode_libdir_flag_spec='-L$libdir'
9780: hardcode_minus_L=yes
9781: ;;
9782: esac
9783: ;;
9784:
9785: bsdi[45]*)
9786: export_dynamic_flag_spec=-rdynamic
9787: ;;
9788:
9789: cygwin* | mingw* | pw32* | cegcc*)
9790: # When not using gcc, we currently assume that we are using
9791: # Microsoft Visual C++.
9792: # hardcode_libdir_flag_spec is actually meaningless, as there is
9793: # no search path for DLLs.
9794: case $cc_basename in
9795: cl*)
9796: # Native MSVC
9797: hardcode_libdir_flag_spec=' '
9798: allow_undefined_flag=unsupported
9799: always_export_symbols=yes
9800: file_list_spec='@'
9801: # Tell ltmain to make .lib files, not .a files.
9802: libext=lib
9803: # Tell ltmain to make .dll files, not .so files.
9804: shrext_cmds=".dll"
9805: # FIXME: Setting linknames here is a bad hack.
9806: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9807: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9808: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9809: else
9810: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9811: fi~
9812: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9813: linknames='
9814: # The linker will not automatically build a static lib if we build a DLL.
9815: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9816: enable_shared_with_static_runtimes=yes
9817: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9818: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9819: # Don't use ranlib
9820: old_postinstall_cmds='chmod 644 $oldlib'
9821: postlink_cmds='lt_outputfile="@OUTPUT@"~
9822: lt_tool_outputfile="@TOOL_OUTPUT@"~
9823: case $lt_outputfile in
9824: *.exe|*.EXE) ;;
9825: *)
9826: lt_outputfile="$lt_outputfile.exe"
9827: lt_tool_outputfile="$lt_tool_outputfile.exe"
9828: ;;
9829: esac~
9830: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9831: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9832: $RM "$lt_outputfile.manifest";
9833: fi'
9834: ;;
9835: *)
9836: # Assume MSVC wrapper
9837: hardcode_libdir_flag_spec=' '
9838: allow_undefined_flag=unsupported
9839: # Tell ltmain to make .lib files, not .a files.
9840: libext=lib
9841: # Tell ltmain to make .dll files, not .so files.
9842: shrext_cmds=".dll"
9843: # FIXME: Setting linknames here is a bad hack.
9844: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9845: # The linker will automatically build a .lib file if we build a DLL.
9846: old_archive_from_new_cmds='true'
9847: # FIXME: Should let the user specify the lib program.
9848: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9849: enable_shared_with_static_runtimes=yes
9850: ;;
9851: esac
9852: ;;
9853:
9854: darwin* | rhapsody*)
9855:
9856:
9857: archive_cmds_need_lc=no
9858: hardcode_direct=no
9859: hardcode_automatic=yes
9860: hardcode_shlibpath_var=unsupported
9861: if test "$lt_cv_ld_force_load" = "yes"; then
9862: 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\"`'
9863:
9864: else
9865: whole_archive_flag_spec=''
9866: fi
9867: link_all_deplibs=yes
9868: allow_undefined_flag="$_lt_dar_allow_undefined"
9869: case $cc_basename in
9870: ifort*) _lt_dar_can_shared=yes ;;
9871: *) _lt_dar_can_shared=$GCC ;;
9872: esac
9873: if test "$_lt_dar_can_shared" = "yes"; then
9874: output_verbose_link_cmd=func_echo_all
9875: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9876: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9877: 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}"
9878: 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}"
9879:
9880: else
9881: ld_shlibs=no
9882: fi
9883:
9884: ;;
9885:
9886: dgux*)
9887: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888: hardcode_libdir_flag_spec='-L$libdir'
9889: hardcode_shlibpath_var=no
9890: ;;
9891:
9892: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9893: # support. Future versions do this automatically, but an explicit c++rt0.o
9894: # does not break anything, and helps significantly (at the cost of a little
9895: # extra space).
9896: freebsd2.2*)
9897: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9898: hardcode_libdir_flag_spec='-R$libdir'
9899: hardcode_direct=yes
9900: hardcode_shlibpath_var=no
9901: ;;
9902:
9903: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9904: freebsd2.*)
9905: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9906: hardcode_direct=yes
9907: hardcode_minus_L=yes
9908: hardcode_shlibpath_var=no
9909: ;;
9910:
9911: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9912: freebsd* | dragonfly*)
9913: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9914: hardcode_libdir_flag_spec='-R$libdir'
9915: hardcode_direct=yes
9916: hardcode_shlibpath_var=no
9917: ;;
9918:
9919: hpux9*)
9920: if test "$GCC" = yes; then
9921: 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'
9922: else
9923: 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'
9924: fi
9925: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926: hardcode_libdir_separator=:
9927: hardcode_direct=yes
9928:
9929: # hardcode_minus_L: Not really in the search PATH,
9930: # but as the default location of the library.
9931: hardcode_minus_L=yes
9932: export_dynamic_flag_spec='${wl}-E'
9933: ;;
9934:
9935: hpux10*)
9936: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9937: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9938: else
9939: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9940: fi
9941: if test "$with_gnu_ld" = no; then
9942: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9943: hardcode_libdir_separator=:
9944: hardcode_direct=yes
9945: hardcode_direct_absolute=yes
9946: export_dynamic_flag_spec='${wl}-E'
9947: # hardcode_minus_L: Not really in the search PATH,
9948: # but as the default location of the library.
9949: hardcode_minus_L=yes
9950: fi
9951: ;;
9952:
9953: hpux11*)
9954: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9955: case $host_cpu in
9956: hppa*64*)
9957: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958: ;;
9959: ia64*)
9960: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961: ;;
9962: *)
9963: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9964: ;;
9965: esac
9966: else
9967: case $host_cpu in
9968: hppa*64*)
9969: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9970: ;;
9971: ia64*)
9972: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9973: ;;
9974: *)
9975:
9976: # Older versions of the 11.00 compiler do not understand -b yet
9977: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9978: echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9979: echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6
9980: if test "${lt_cv_prog_compiler__b+set}" = set; then
9981: echo $ECHO_N "(cached) $ECHO_C" >&6
9982: else
9983: lt_cv_prog_compiler__b=no
9984: save_LDFLAGS="$LDFLAGS"
9985: LDFLAGS="$LDFLAGS -b"
9986: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9987: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9988: # The linker can only warn and ignore the option if not recognized
9989: # So say no if there are warnings
9990: if test -s conftest.err; then
9991: # Append any errors to the config.log.
9992: cat conftest.err 1>&5
9993: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9994: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9995: if diff conftest.exp conftest.er2 >/dev/null; then
9996: lt_cv_prog_compiler__b=yes
9997: fi
9998: else
9999: lt_cv_prog_compiler__b=yes
10000: fi
10001: fi
10002: $RM -r conftest*
10003: LDFLAGS="$save_LDFLAGS"
10004:
10005: fi
10006: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
10007: echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6
10008:
10009: if test x"$lt_cv_prog_compiler__b" = xyes; then
10010: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011: else
10012: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013: fi
10014:
10015: ;;
10016: esac
10017: fi
10018: if test "$with_gnu_ld" = no; then
10019: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10020: hardcode_libdir_separator=:
10021:
10022: case $host_cpu in
10023: hppa*64*|ia64*)
10024: hardcode_direct=no
10025: hardcode_shlibpath_var=no
10026: ;;
10027: *)
10028: hardcode_direct=yes
10029: hardcode_direct_absolute=yes
10030: export_dynamic_flag_spec='${wl}-E'
10031:
10032: # hardcode_minus_L: Not really in the search PATH,
10033: # but as the default location of the library.
10034: hardcode_minus_L=yes
10035: ;;
10036: esac
10037: fi
10038: ;;
10039:
10040: irix5* | irix6* | nonstopux*)
10041: if test "$GCC" = yes; then
10042: 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'
10043: # Try to use the -exported_symbol ld option, if it does not
10044: # work, assume that -exports_file does not work either and
10045: # implicitly export all symbols.
10046: # This should be the same for all languages, so no per-tag cache variable.
10047: echo "$as_me:$LINENO: checking whether the $host_os linker accepts -exported_symbol" >&5
10048: echo $ECHO_N "checking whether the $host_os linker accepts -exported_symbol... $ECHO_C" >&6
10049: if test "${lt_cv_irix_exported_symbol+set}" = set; then
10050: echo $ECHO_N "(cached) $ECHO_C" >&6
10051: else
10052: save_LDFLAGS="$LDFLAGS"
10053: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10054: cat >conftest.$ac_ext <<_ACEOF
10055: /* confdefs.h. */
10056: _ACEOF
10057: cat confdefs.h >>conftest.$ac_ext
10058: cat >>conftest.$ac_ext <<_ACEOF
10059: /* end confdefs.h. */
10060: int foo (void) { return 0; }
10061: _ACEOF
10062: rm -f conftest.$ac_objext conftest$ac_exeext
10063: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064: (eval $ac_link) 2>conftest.er1
10065: ac_status=$?
10066: grep -v '^ *+' conftest.er1 >conftest.err
10067: rm -f conftest.er1
10068: cat conftest.err >&5
10069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070: (exit $ac_status); } &&
10071: { ac_try='test -z "$ac_c_werror_flag"
10072: || test ! -s conftest.err'
10073: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074: (eval $ac_try) 2>&5
10075: ac_status=$?
10076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077: (exit $ac_status); }; } &&
10078: { ac_try='test -s conftest$ac_exeext'
10079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080: (eval $ac_try) 2>&5
10081: ac_status=$?
10082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083: (exit $ac_status); }; }; then
10084: lt_cv_irix_exported_symbol=yes
10085: else
10086: echo "$as_me: failed program was:" >&5
10087: sed 's/^/| /' conftest.$ac_ext >&5
10088:
10089: lt_cv_irix_exported_symbol=no
10090: fi
10091: rm -f conftest.err conftest.$ac_objext \
10092: conftest$ac_exeext conftest.$ac_ext
10093: LDFLAGS="$save_LDFLAGS"
10094: fi
10095: echo "$as_me:$LINENO: result: $lt_cv_irix_exported_symbol" >&5
10096: echo "${ECHO_T}$lt_cv_irix_exported_symbol" >&6
10097: if test "$lt_cv_irix_exported_symbol" = yes; then
10098: 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'
10099: fi
10100: else
10101: 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'
10102: 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'
10103: fi
10104: archive_cmds_need_lc='no'
10105: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10106: hardcode_libdir_separator=:
10107: inherit_rpath=yes
10108: link_all_deplibs=yes
10109: ;;
10110:
10111: netbsd*)
10112: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10114: else
10115: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10116: fi
10117: hardcode_libdir_flag_spec='-R$libdir'
10118: hardcode_direct=yes
10119: hardcode_shlibpath_var=no
10120: ;;
10121:
10122: newsos6)
10123: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124: hardcode_direct=yes
10125: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126: hardcode_libdir_separator=:
10127: hardcode_shlibpath_var=no
10128: ;;
10129:
10130: *nto* | *qnx*)
10131: ;;
10132:
10133: openbsd*)
10134: if test -f /usr/libexec/ld.so; then
10135: hardcode_direct=yes
10136: hardcode_shlibpath_var=no
10137: hardcode_direct_absolute=yes
10138: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10139: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10141: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10142: export_dynamic_flag_spec='${wl}-E'
10143: else
10144: case $host_os in
10145: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10146: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10147: hardcode_libdir_flag_spec='-R$libdir'
10148: ;;
10149: *)
10150: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10151: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10152: ;;
10153: esac
10154: fi
10155: else
10156: ld_shlibs=no
10157: fi
10158: ;;
10159:
10160: os2*)
10161: hardcode_libdir_flag_spec='-L$libdir'
10162: hardcode_minus_L=yes
10163: allow_undefined_flag=unsupported
10164: 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'
10165: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10166: ;;
10167:
10168: osf3*)
10169: if test "$GCC" = yes; then
10170: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171: 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'
10172: else
10173: allow_undefined_flag=' -expect_unresolved \*'
10174: 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'
10175: fi
10176: archive_cmds_need_lc='no'
10177: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178: hardcode_libdir_separator=:
10179: ;;
10180:
10181: osf4* | osf5*) # as osf3* with the addition of -msym flag
10182: if test "$GCC" = yes; then
10183: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10184: 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'
10185: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186: else
10187: allow_undefined_flag=' -expect_unresolved \*'
10188: 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'
10189: 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~
10190: $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'
10191:
10192: # Both c and cxx compiler support -rpath directly
10193: hardcode_libdir_flag_spec='-rpath $libdir'
10194: fi
10195: archive_cmds_need_lc='no'
10196: hardcode_libdir_separator=:
10197: ;;
10198:
10199: solaris*)
10200: no_undefined_flag=' -z defs'
10201: if test "$GCC" = yes; then
10202: wlarc='${wl}'
10203: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10204: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205: $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'
10206: else
10207: case `$CC -V 2>&1` in
10208: *"Compilers 5.0"*)
10209: wlarc=''
10210: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10212: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10213: ;;
10214: *)
10215: wlarc='${wl}'
10216: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10217: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10219: ;;
10220: esac
10221: fi
10222: hardcode_libdir_flag_spec='-R$libdir'
10223: hardcode_shlibpath_var=no
10224: case $host_os in
10225: solaris2.[0-5] | solaris2.[0-5].*) ;;
10226: *)
10227: # The compiler driver will combine and reorder linker options,
10228: # but understands `-z linker_flag'. GCC discards it without `$wl',
10229: # but is careful enough not to reorder.
10230: # Supported since Solaris 2.6 (maybe 2.5.1?)
10231: if test "$GCC" = yes; then
10232: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10233: else
10234: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10235: fi
10236: ;;
10237: esac
10238: link_all_deplibs=yes
10239: ;;
10240:
10241: sunos4*)
10242: if test "x$host_vendor" = xsequent; then
10243: # Use $CC to link under sequent, because it throws in some extra .o
10244: # files that make .init and .fini sections work.
10245: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10246: else
10247: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10248: fi
10249: hardcode_libdir_flag_spec='-L$libdir'
10250: hardcode_direct=yes
10251: hardcode_minus_L=yes
10252: hardcode_shlibpath_var=no
10253: ;;
10254:
10255: sysv4)
10256: case $host_vendor in
10257: sni)
10258: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259: hardcode_direct=yes # is this really true???
10260: ;;
10261: siemens)
10262: ## LD is ld it makes a PLAMLIB
10263: ## CC just makes a GrossModule.
10264: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10265: reload_cmds='$CC -r -o $output$reload_objs'
10266: hardcode_direct=no
10267: ;;
10268: motorola)
10269: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10271: ;;
10272: esac
10273: runpath_var='LD_RUN_PATH'
10274: hardcode_shlibpath_var=no
10275: ;;
10276:
10277: sysv4.3*)
10278: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279: hardcode_shlibpath_var=no
10280: export_dynamic_flag_spec='-Bexport'
10281: ;;
10282:
10283: sysv4*MP*)
10284: if test -d /usr/nec; then
10285: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286: hardcode_shlibpath_var=no
10287: runpath_var=LD_RUN_PATH
10288: hardcode_runpath_var=yes
10289: ld_shlibs=yes
10290: fi
10291: ;;
10292:
10293: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10294: no_undefined_flag='${wl}-z,text'
10295: archive_cmds_need_lc=no
10296: hardcode_shlibpath_var=no
10297: runpath_var='LD_RUN_PATH'
10298:
10299: if test "$GCC" = yes; then
10300: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302: else
10303: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305: fi
10306: ;;
10307:
10308: sysv5* | sco3.2v5* | sco5v6*)
10309: # Note: We can NOT use -z defs as we might desire, because we do not
10310: # link with -lc, and that would cause any symbols used from libc to
10311: # always be unresolved, which means just about no library would
10312: # ever link correctly. If we're not using GNU ld we use -z text
10313: # though, which does catch some bad symbols but isn't as heavy-handed
10314: # as -z defs.
10315: no_undefined_flag='${wl}-z,text'
10316: allow_undefined_flag='${wl}-z,nodefs'
10317: archive_cmds_need_lc=no
10318: hardcode_shlibpath_var=no
10319: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10320: hardcode_libdir_separator=':'
10321: link_all_deplibs=yes
10322: export_dynamic_flag_spec='${wl}-Bexport'
10323: runpath_var='LD_RUN_PATH'
10324:
10325: if test "$GCC" = yes; then
10326: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328: else
10329: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331: fi
10332: ;;
10333:
10334: uts4*)
10335: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10336: hardcode_libdir_flag_spec='-L$libdir'
10337: hardcode_shlibpath_var=no
10338: ;;
10339:
10340: *)
10341: ld_shlibs=no
10342: ;;
10343: esac
10344:
10345: if test x$host_vendor = xsni; then
10346: case $host in
10347: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10348: export_dynamic_flag_spec='${wl}-Blargedynsym'
10349: ;;
10350: esac
10351: fi
10352: fi
10353:
10354: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10355: echo "${ECHO_T}$ld_shlibs" >&6
10356: test "$ld_shlibs" = no && can_build_shared=no
10357:
10358: with_gnu_ld=$with_gnu_ld
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374: #
10375: # Do we need to explicitly link libc?
10376: #
10377: case "x$archive_cmds_need_lc" in
10378: x|xyes)
10379: # Assume -lc should be added
10380: archive_cmds_need_lc=yes
10381:
10382: if test "$enable_shared" = yes && test "$GCC" = yes; then
10383: case $archive_cmds in
10384: *'~'*)
10385: # FIXME: we may have to deal with multi-command sequences.
10386: ;;
10387: '$CC '*)
10388: # Test whether the compiler implicitly links with -lc since on some
10389: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10390: # to ld, don't add -lc before -lgcc.
10391: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10392: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10393: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10394: echo $ECHO_N "(cached) $ECHO_C" >&6
10395: else
10396: $RM conftest*
10397: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10398:
10399: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400: (eval $ac_compile) 2>&5
10401: ac_status=$?
10402: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403: (exit $ac_status); } 2>conftest.err; then
10404: soname=conftest
10405: lib=conftest
10406: libobjs=conftest.$ac_objext
10407: deplibs=
10408: wl=$lt_prog_compiler_wl
10409: pic_flag=$lt_prog_compiler_pic
10410: compiler_flags=-v
10411: linker_flags=-v
10412: verstring=
10413: output_objdir=.
10414: libname=conftest
10415: lt_save_allow_undefined_flag=$allow_undefined_flag
10416: allow_undefined_flag=
10417: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10418: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10419: ac_status=$?
10420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421: (exit $ac_status); }
10422: then
10423: lt_cv_archive_cmds_need_lc=no
10424: else
10425: lt_cv_archive_cmds_need_lc=yes
10426: fi
10427: allow_undefined_flag=$lt_save_allow_undefined_flag
10428: else
10429: cat conftest.err 1>&5
10430: fi
10431: $RM conftest*
10432:
10433: fi
10434: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10435: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10436: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10437: ;;
10438: esac
10439: fi
10440: ;;
10441: esac
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:
10485:
10486:
10487:
10488:
10489:
10490:
10491:
10492:
10493:
10494:
10495:
10496:
10497:
10498:
10499:
10500:
10501:
10502:
10503:
10504:
10505:
10506:
10507:
10508:
10509:
10510:
10511:
10512:
10513:
10514:
10515:
10516:
10517:
10518:
10519:
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
10533:
10534:
10535:
10536:
10537:
10538:
10539:
10540:
10541:
10542:
10543:
10544:
10545:
10546:
10547:
10548:
10549:
10550:
10551:
10552:
10553:
10554:
10555:
10556:
10557:
10558:
10559:
10560:
10561:
10562:
10563:
10564:
10565:
10566:
10567:
10568:
10569:
10570:
10571:
10572:
10573:
10574:
10575:
10576:
10577:
10578:
10579:
10580:
10581:
10582:
10583:
10584:
10585:
10586:
10587:
10588:
10589:
10590:
10591:
10592:
10593:
10594: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10595: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10596:
10597: if test "$GCC" = yes; then
10598: case $host_os in
10599: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10600: *) lt_awk_arg="/^libraries:/" ;;
10601: esac
10602: case $host_os in
10603: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10604: *) lt_sed_strip_eq="s,=/,/,g" ;;
10605: esac
10606: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10607: case $lt_search_path_spec in
10608: *\;*)
10609: # if the path contains ";" then we assume it to be the separator
10610: # otherwise default to the standard path separator (i.e. ":") - it is
10611: # assumed that no part of a normal pathname contains ";" but that should
10612: # okay in the real world where ";" in dirpaths is itself problematic.
10613: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10614: ;;
10615: *)
10616: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10617: ;;
10618: esac
10619: # Ok, now we have the path, separated by spaces, we can step through it
10620: # and add multilib dir if necessary.
10621: lt_tmp_lt_search_path_spec=
10622: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10623: for lt_sys_path in $lt_search_path_spec; do
10624: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10625: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10626: else
10627: test -d "$lt_sys_path" && \
10628: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10629: fi
10630: done
10631: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10632: BEGIN {RS=" "; FS="/|\n";} {
10633: lt_foo="";
10634: lt_count=0;
10635: for (lt_i = NF; lt_i > 0; lt_i--) {
10636: if ($lt_i != "" && $lt_i != ".") {
10637: if ($lt_i == "..") {
10638: lt_count++;
10639: } else {
10640: if (lt_count == 0) {
10641: lt_foo="/" $lt_i lt_foo;
10642: } else {
10643: lt_count--;
10644: }
10645: }
10646: }
10647: }
10648: if (lt_foo != "") { lt_freq[lt_foo]++; }
10649: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10650: }'`
10651: # AWK program above erroneously prepends '/' to C:/dos/paths
10652: # for these hosts.
10653: case $host_os in
10654: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10655: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10656: esac
10657: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10658: else
10659: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10660: fi
10661: library_names_spec=
10662: libname_spec='lib$name'
10663: soname_spec=
10664: shrext_cmds=".so"
10665: postinstall_cmds=
10666: postuninstall_cmds=
10667: finish_cmds=
10668: finish_eval=
10669: shlibpath_var=
10670: shlibpath_overrides_runpath=unknown
10671: version_type=none
10672: dynamic_linker="$host_os ld.so"
10673: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10674: need_lib_prefix=unknown
10675: hardcode_into_libs=no
10676:
10677: # when you set need_version to no, make sure it does not cause -set_version
10678: # flags to be left without arguments
10679: need_version=unknown
10680:
10681: case $host_os in
10682: aix3*)
10683: version_type=linux # correct to gnu/linux during the next big refactor
10684: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10685: shlibpath_var=LIBPATH
10686:
10687: # AIX 3 has no versioning support, so we append a major version to the name.
10688: soname_spec='${libname}${release}${shared_ext}$major'
10689: ;;
10690:
10691: aix[4-9]*)
10692: version_type=linux # correct to gnu/linux during the next big refactor
10693: need_lib_prefix=no
10694: need_version=no
10695: hardcode_into_libs=yes
10696: if test "$host_cpu" = ia64; then
10697: # AIX 5 supports IA64
10698: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10699: shlibpath_var=LD_LIBRARY_PATH
10700: else
10701: # With GCC up to 2.95.x, collect2 would create an import file
10702: # for dependence libraries. The import file would start with
10703: # the line `#! .'. This would cause the generated library to
10704: # depend on `.', always an invalid library. This was fixed in
10705: # development snapshots of GCC prior to 3.0.
10706: case $host_os in
10707: aix4 | aix4.[01] | aix4.[01].*)
10708: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10709: echo ' yes '
10710: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10711: :
10712: else
10713: can_build_shared=no
10714: fi
10715: ;;
10716: esac
10717: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10718: # soname into executable. Probably we can add versioning support to
10719: # collect2, so additional links can be useful in future.
10720: if test "$aix_use_runtimelinking" = yes; then
10721: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10722: # instead of lib<name>.a to let people know that these are not
10723: # typical AIX shared libraries.
10724: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725: else
10726: # We preserve .a as extension for shared libraries through AIX4.2
10727: # and later when we are not doing run time linking.
10728: library_names_spec='${libname}${release}.a $libname.a'
10729: soname_spec='${libname}${release}${shared_ext}$major'
10730: fi
10731: shlibpath_var=LIBPATH
10732: fi
10733: ;;
10734:
10735: amigaos*)
10736: case $host_cpu in
10737: powerpc)
10738: # Since July 2007 AmigaOS4 officially supports .so libraries.
10739: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10740: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741: ;;
10742: m68k)
10743: library_names_spec='$libname.ixlibrary $libname.a'
10744: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10745: 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'
10746: ;;
10747: esac
10748: ;;
10749:
10750: beos*)
10751: library_names_spec='${libname}${shared_ext}'
10752: dynamic_linker="$host_os ld.so"
10753: shlibpath_var=LIBRARY_PATH
10754: ;;
10755:
10756: bsdi[45]*)
10757: version_type=linux # correct to gnu/linux during the next big refactor
10758: need_version=no
10759: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760: soname_spec='${libname}${release}${shared_ext}$major'
10761: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10762: shlibpath_var=LD_LIBRARY_PATH
10763: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10764: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10765: # the default ld.so.conf also contains /usr/contrib/lib and
10766: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10767: # libtool to hard-code these into programs
10768: ;;
10769:
10770: cygwin* | mingw* | pw32* | cegcc*)
10771: version_type=windows
10772: shrext_cmds=".dll"
10773: need_version=no
10774: need_lib_prefix=no
10775:
10776: case $GCC,$cc_basename in
10777: yes,*)
10778: # gcc
10779: library_names_spec='$libname.dll.a'
10780: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10781: postinstall_cmds='base_file=`basename \${file}`~
10782: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10783: dldir=$destdir/`dirname \$dlpath`~
10784: test -d \$dldir || mkdir -p \$dldir~
10785: $install_prog $dir/$dlname \$dldir/$dlname~
10786: chmod a+x \$dldir/$dlname~
10787: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10788: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10789: fi'
10790: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10791: dlpath=$dir/\$dldll~
10792: $RM \$dlpath'
10793: shlibpath_overrides_runpath=yes
10794:
10795: case $host_os in
10796: cygwin*)
10797: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10798: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10799:
10800: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10801: ;;
10802: mingw* | cegcc*)
10803: # MinGW DLLs use traditional 'lib' prefix
10804: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805: ;;
10806: pw32*)
10807: # pw32 DLLs use 'pw' prefix rather than 'lib'
10808: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10809: ;;
10810: esac
10811: dynamic_linker='Win32 ld.exe'
10812: ;;
10813:
10814: *,cl*)
10815: # Native MSVC
10816: libname_spec='$name'
10817: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818: library_names_spec='${libname}.dll.lib'
10819:
10820: case $build_os in
10821: mingw*)
10822: sys_lib_search_path_spec=
10823: lt_save_ifs=$IFS
10824: IFS=';'
10825: for lt_path in $LIB
10826: do
10827: IFS=$lt_save_ifs
10828: # Let DOS variable expansion print the short 8.3 style file name.
10829: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10830: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10831: done
10832: IFS=$lt_save_ifs
10833: # Convert to MSYS style.
10834: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10835: ;;
10836: cygwin*)
10837: # Convert to unix form, then to dos form, then back to unix form
10838: # but this time dos style (no spaces!) so that the unix form looks
10839: # like /cygdrive/c/PROGRA~1:/cygdr...
10840: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10841: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10842: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10843: ;;
10844: *)
10845: sys_lib_search_path_spec="$LIB"
10846: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10847: # It is most probably a Windows format PATH.
10848: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10849: else
10850: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10851: fi
10852: # FIXME: find the short name or the path components, as spaces are
10853: # common. (e.g. "Program Files" -> "PROGRA~1")
10854: ;;
10855: esac
10856:
10857: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10858: postinstall_cmds='base_file=`basename \${file}`~
10859: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10860: dldir=$destdir/`dirname \$dlpath`~
10861: test -d \$dldir || mkdir -p \$dldir~
10862: $install_prog $dir/$dlname \$dldir/$dlname'
10863: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10864: dlpath=$dir/\$dldll~
10865: $RM \$dlpath'
10866: shlibpath_overrides_runpath=yes
10867: dynamic_linker='Win32 link.exe'
10868: ;;
10869:
10870: *)
10871: # Assume MSVC wrapper
10872: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10873: dynamic_linker='Win32 ld.exe'
10874: ;;
10875: esac
10876: # FIXME: first we should search . and the directory the executable is in
10877: shlibpath_var=PATH
10878: ;;
10879:
10880: darwin* | rhapsody*)
10881: dynamic_linker="$host_os dyld"
10882: version_type=darwin
10883: need_lib_prefix=no
10884: need_version=no
10885: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10886: soname_spec='${libname}${release}${major}$shared_ext'
10887: shlibpath_overrides_runpath=yes
10888: shlibpath_var=DYLD_LIBRARY_PATH
10889: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10890:
10891: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10892: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10893: ;;
10894:
10895: dgux*)
10896: version_type=linux # correct to gnu/linux during the next big refactor
10897: need_lib_prefix=no
10898: need_version=no
10899: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10900: soname_spec='${libname}${release}${shared_ext}$major'
10901: shlibpath_var=LD_LIBRARY_PATH
10902: ;;
10903:
10904: freebsd* | dragonfly*)
10905: # DragonFly does not have aout. When/if they implement a new
10906: # versioning mechanism, adjust this.
10907: if test -x /usr/bin/objformat; then
10908: objformat=`/usr/bin/objformat`
10909: else
10910: case $host_os in
10911: freebsd[23].*) objformat=aout ;;
10912: *) objformat=elf ;;
10913: esac
10914: fi
10915: version_type=freebsd-$objformat
10916: case $version_type in
10917: freebsd-elf*)
10918: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919: need_version=no
10920: need_lib_prefix=no
10921: ;;
10922: freebsd-*)
10923: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924: need_version=yes
10925: ;;
10926: esac
10927: shlibpath_var=LD_LIBRARY_PATH
10928: case $host_os in
10929: freebsd2.*)
10930: shlibpath_overrides_runpath=yes
10931: ;;
10932: freebsd3.[01]* | freebsdelf3.[01]*)
10933: shlibpath_overrides_runpath=yes
10934: hardcode_into_libs=yes
10935: ;;
10936: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10937: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10938: shlibpath_overrides_runpath=no
10939: hardcode_into_libs=yes
10940: ;;
10941: *) # from 4.6 on, and DragonFly
10942: shlibpath_overrides_runpath=yes
10943: hardcode_into_libs=yes
10944: ;;
10945: esac
10946: ;;
10947:
10948: gnu*)
10949: version_type=linux # correct to gnu/linux during the next big refactor
10950: need_lib_prefix=no
10951: need_version=no
10952: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10953: soname_spec='${libname}${release}${shared_ext}$major'
10954: shlibpath_var=LD_LIBRARY_PATH
10955: shlibpath_overrides_runpath=no
10956: hardcode_into_libs=yes
10957: ;;
10958:
10959: haiku*)
10960: version_type=linux # correct to gnu/linux during the next big refactor
10961: need_lib_prefix=no
10962: need_version=no
10963: dynamic_linker="$host_os runtime_loader"
10964: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10965: soname_spec='${libname}${release}${shared_ext}$major'
10966: shlibpath_var=LIBRARY_PATH
10967: shlibpath_overrides_runpath=yes
10968: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10969: hardcode_into_libs=yes
10970: ;;
10971:
10972: hpux9* | hpux10* | hpux11*)
10973: # Give a soname corresponding to the major version so that dld.sl refuses to
10974: # link against other versions.
10975: version_type=sunos
10976: need_lib_prefix=no
10977: need_version=no
10978: case $host_cpu in
10979: ia64*)
10980: shrext_cmds='.so'
10981: hardcode_into_libs=yes
10982: dynamic_linker="$host_os dld.so"
10983: shlibpath_var=LD_LIBRARY_PATH
10984: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10985: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986: soname_spec='${libname}${release}${shared_ext}$major'
10987: if test "X$HPUX_IA64_MODE" = X32; then
10988: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10989: else
10990: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10991: fi
10992: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10993: ;;
10994: hppa*64*)
10995: shrext_cmds='.sl'
10996: hardcode_into_libs=yes
10997: dynamic_linker="$host_os dld.sl"
10998: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10999: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11000: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001: soname_spec='${libname}${release}${shared_ext}$major'
11002: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11003: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11004: ;;
11005: *)
11006: shrext_cmds='.sl'
11007: dynamic_linker="$host_os dld.sl"
11008: shlibpath_var=SHLIB_PATH
11009: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11010: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011: soname_spec='${libname}${release}${shared_ext}$major'
11012: ;;
11013: esac
11014: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11015: postinstall_cmds='chmod 555 $lib'
11016: # or fails outright, so override atomically:
11017: install_override_mode=555
11018: ;;
11019:
11020: interix[3-9]*)
11021: version_type=linux # correct to gnu/linux during the next big refactor
11022: need_lib_prefix=no
11023: need_version=no
11024: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11025: soname_spec='${libname}${release}${shared_ext}$major'
11026: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11027: shlibpath_var=LD_LIBRARY_PATH
11028: shlibpath_overrides_runpath=no
11029: hardcode_into_libs=yes
11030: ;;
11031:
11032: irix5* | irix6* | nonstopux*)
11033: case $host_os in
11034: nonstopux*) version_type=nonstopux ;;
11035: *)
11036: if test "$lt_cv_prog_gnu_ld" = yes; then
11037: version_type=linux # correct to gnu/linux during the next big refactor
11038: else
11039: version_type=irix
11040: fi ;;
11041: esac
11042: need_lib_prefix=no
11043: need_version=no
11044: soname_spec='${libname}${release}${shared_ext}$major'
11045: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11046: case $host_os in
11047: irix5* | nonstopux*)
11048: libsuff= shlibsuff=
11049: ;;
11050: *)
11051: case $LD in # libtool.m4 will add one of these switches to LD
11052: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11053: libsuff= shlibsuff= libmagic=32-bit;;
11054: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11055: libsuff=32 shlibsuff=N32 libmagic=N32;;
11056: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11057: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11058: *) libsuff= shlibsuff= libmagic=never-match;;
11059: esac
11060: ;;
11061: esac
11062: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11063: shlibpath_overrides_runpath=no
11064: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11065: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11066: hardcode_into_libs=yes
11067: ;;
11068:
11069: # No shared lib support for Linux oldld, aout, or coff.
11070: linux*oldld* | linux*aout* | linux*coff*)
11071: dynamic_linker=no
11072: ;;
11073:
11074: # This must be glibc/ELF.
11075: linux* | k*bsd*-gnu | kopensolaris*-gnu)
11076: version_type=linux # correct to gnu/linux during the next big refactor
11077: need_lib_prefix=no
11078: need_version=no
11079: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080: soname_spec='${libname}${release}${shared_ext}$major'
11081: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11082: shlibpath_var=LD_LIBRARY_PATH
11083: shlibpath_overrides_runpath=no
11084:
11085: # Some binutils ld are patched to set DT_RUNPATH
11086: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11087: echo $ECHO_N "(cached) $ECHO_C" >&6
11088: else
11089: lt_cv_shlibpath_overrides_runpath=no
11090: save_LDFLAGS=$LDFLAGS
11091: save_libdir=$libdir
11092: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11093: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11094: cat >conftest.$ac_ext <<_ACEOF
11095: /* confdefs.h. */
11096: _ACEOF
11097: cat confdefs.h >>conftest.$ac_ext
11098: cat >>conftest.$ac_ext <<_ACEOF
11099: /* end confdefs.h. */
11100:
11101: int
11102: main ()
11103: {
11104:
11105: ;
11106: return 0;
11107: }
11108: _ACEOF
11109: rm -f conftest.$ac_objext conftest$ac_exeext
11110: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111: (eval $ac_link) 2>conftest.er1
11112: ac_status=$?
11113: grep -v '^ *+' conftest.er1 >conftest.err
11114: rm -f conftest.er1
11115: cat conftest.err >&5
11116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117: (exit $ac_status); } &&
11118: { ac_try='test -z "$ac_c_werror_flag"
11119: || test ! -s conftest.err'
11120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121: (eval $ac_try) 2>&5
11122: ac_status=$?
11123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124: (exit $ac_status); }; } &&
11125: { ac_try='test -s conftest$ac_exeext'
11126: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127: (eval $ac_try) 2>&5
11128: ac_status=$?
11129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130: (exit $ac_status); }; }; then
11131: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11132: lt_cv_shlibpath_overrides_runpath=yes
11133: fi
11134:
11135: else
11136: echo "$as_me: failed program was:" >&5
11137: sed 's/^/| /' conftest.$ac_ext >&5
11138:
11139: fi
11140: rm -f conftest.err conftest.$ac_objext \
11141: conftest$ac_exeext conftest.$ac_ext
11142: LDFLAGS=$save_LDFLAGS
11143: libdir=$save_libdir
11144:
11145: fi
11146:
11147: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11148:
11149: # This implies no fast_install, which is unacceptable.
11150: # Some rework will be needed to allow for fast_install
11151: # before this can be enabled.
11152: hardcode_into_libs=yes
11153:
11154: # Append ld.so.conf contents to the search path
11155: if test -f /etc/ld.so.conf; then
11156: 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' ' '`
11157: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11158: fi
11159:
11160: # We used to test for /lib/ld.so.1 and disable shared libraries on
11161: # powerpc, because MkLinux only supported shared libraries with the
11162: # GNU dynamic linker. Since this was broken with cross compilers,
11163: # most powerpc-linux boxes support dynamic linking these days and
11164: # people can always --disable-shared, the test was removed, and we
11165: # assume the GNU/Linux dynamic linker is in use.
11166: dynamic_linker='GNU/Linux ld.so'
11167: ;;
11168:
11169: netbsd*)
11170: version_type=sunos
11171: need_lib_prefix=no
11172: need_version=no
11173: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11174: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11175: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11176: dynamic_linker='NetBSD (a.out) ld.so'
11177: else
11178: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11179: soname_spec='${libname}${release}${shared_ext}$major'
11180: dynamic_linker='NetBSD ld.elf_so'
11181: fi
11182: shlibpath_var=LD_LIBRARY_PATH
11183: shlibpath_overrides_runpath=yes
11184: hardcode_into_libs=yes
11185: ;;
11186:
11187: newsos6)
11188: version_type=linux # correct to gnu/linux during the next big refactor
11189: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190: shlibpath_var=LD_LIBRARY_PATH
11191: shlibpath_overrides_runpath=yes
11192: ;;
11193:
11194: *nto* | *qnx*)
11195: version_type=qnx
11196: need_lib_prefix=no
11197: need_version=no
11198: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199: soname_spec='${libname}${release}${shared_ext}$major'
11200: shlibpath_var=LD_LIBRARY_PATH
11201: shlibpath_overrides_runpath=no
11202: hardcode_into_libs=yes
11203: dynamic_linker='ldqnx.so'
11204: ;;
11205:
11206: openbsd*)
11207: version_type=sunos
11208: sys_lib_dlsearch_path_spec="/usr/lib"
11209: need_lib_prefix=no
11210: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11211: case $host_os in
11212: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11213: *) need_version=no ;;
11214: esac
11215: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11216: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11217: shlibpath_var=LD_LIBRARY_PATH
11218: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11219: case $host_os in
11220: openbsd2.[89] | openbsd2.[89].*)
11221: shlibpath_overrides_runpath=no
11222: ;;
11223: *)
11224: shlibpath_overrides_runpath=yes
11225: ;;
11226: esac
11227: else
11228: shlibpath_overrides_runpath=yes
11229: fi
11230: ;;
11231:
11232: os2*)
11233: libname_spec='$name'
11234: shrext_cmds=".dll"
11235: need_lib_prefix=no
11236: library_names_spec='$libname${shared_ext} $libname.a'
11237: dynamic_linker='OS/2 ld.exe'
11238: shlibpath_var=LIBPATH
11239: ;;
11240:
11241: osf3* | osf4* | osf5*)
11242: version_type=osf
11243: need_lib_prefix=no
11244: need_version=no
11245: soname_spec='${libname}${release}${shared_ext}$major'
11246: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247: shlibpath_var=LD_LIBRARY_PATH
11248: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11249: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11250: ;;
11251:
11252: rdos*)
11253: dynamic_linker=no
11254: ;;
11255:
11256: solaris*)
11257: version_type=linux # correct to gnu/linux during the next big refactor
11258: need_lib_prefix=no
11259: need_version=no
11260: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261: soname_spec='${libname}${release}${shared_ext}$major'
11262: shlibpath_var=LD_LIBRARY_PATH
11263: shlibpath_overrides_runpath=yes
11264: hardcode_into_libs=yes
11265: # ldd complains unless libraries are executable
11266: postinstall_cmds='chmod +x $lib'
11267: ;;
11268:
11269: sunos4*)
11270: version_type=sunos
11271: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11272: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11273: shlibpath_var=LD_LIBRARY_PATH
11274: shlibpath_overrides_runpath=yes
11275: if test "$with_gnu_ld" = yes; then
11276: need_lib_prefix=no
11277: fi
11278: need_version=yes
11279: ;;
11280:
11281: sysv4 | sysv4.3*)
11282: version_type=linux # correct to gnu/linux during the next big refactor
11283: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284: soname_spec='${libname}${release}${shared_ext}$major'
11285: shlibpath_var=LD_LIBRARY_PATH
11286: case $host_vendor in
11287: sni)
11288: shlibpath_overrides_runpath=no
11289: need_lib_prefix=no
11290: runpath_var=LD_RUN_PATH
11291: ;;
11292: siemens)
11293: need_lib_prefix=no
11294: ;;
11295: motorola)
11296: need_lib_prefix=no
11297: need_version=no
11298: shlibpath_overrides_runpath=no
11299: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11300: ;;
11301: esac
11302: ;;
11303:
11304: sysv4*MP*)
11305: if test -d /usr/nec ;then
11306: version_type=linux # correct to gnu/linux during the next big refactor
11307: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11308: soname_spec='$libname${shared_ext}.$major'
11309: shlibpath_var=LD_LIBRARY_PATH
11310: fi
11311: ;;
11312:
11313: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11314: version_type=freebsd-elf
11315: need_lib_prefix=no
11316: need_version=no
11317: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11318: soname_spec='${libname}${release}${shared_ext}$major'
11319: shlibpath_var=LD_LIBRARY_PATH
11320: shlibpath_overrides_runpath=yes
11321: hardcode_into_libs=yes
11322: if test "$with_gnu_ld" = yes; then
11323: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11324: else
11325: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11326: case $host_os in
11327: sco3.2v5*)
11328: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11329: ;;
11330: esac
11331: fi
11332: sys_lib_dlsearch_path_spec='/usr/lib'
11333: ;;
11334:
11335: tpf*)
11336: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11337: version_type=linux # correct to gnu/linux during the next big refactor
11338: need_lib_prefix=no
11339: need_version=no
11340: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341: shlibpath_var=LD_LIBRARY_PATH
11342: shlibpath_overrides_runpath=no
11343: hardcode_into_libs=yes
11344: ;;
11345:
11346: uts4*)
11347: version_type=linux # correct to gnu/linux during the next big refactor
11348: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349: soname_spec='${libname}${release}${shared_ext}$major'
11350: shlibpath_var=LD_LIBRARY_PATH
11351: ;;
11352:
11353: *)
11354: dynamic_linker=no
11355: ;;
11356: esac
11357: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11358: echo "${ECHO_T}$dynamic_linker" >&6
11359: test "$dynamic_linker" = no && can_build_shared=no
11360:
11361: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11362: if test "$GCC" = yes; then
11363: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11364: fi
11365:
11366: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11367: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11368: fi
11369: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11370: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11371: fi
11372:
11373:
11374:
11375:
11376:
11377:
11378:
11379:
11380:
11381:
11382:
11383:
11384:
11385:
11386:
11387:
11388:
11389:
11390:
11391:
11392:
11393:
11394:
11395:
11396:
11397:
11398:
11399:
11400:
11401:
11402:
11403:
11404:
11405:
11406:
11407:
11408:
11409:
11410:
11411:
11412:
11413:
11414:
11415:
11416:
11417:
11418:
11419:
11420:
11421:
11422:
11423:
11424:
11425:
11426:
11427:
11428:
11429:
11430:
11431:
11432:
11433:
11434:
11435:
11436:
11437:
11438:
11439:
11440:
11441:
11442:
11443:
11444:
11445:
11446:
11447:
11448:
11449:
11450:
11451:
11452:
11453:
11454:
11455:
11456:
11457:
11458:
11459:
11460:
11461:
11462:
11463:
11464: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11465: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11466: hardcode_action=
11467: if test -n "$hardcode_libdir_flag_spec" ||
11468: test -n "$runpath_var" ||
11469: test "X$hardcode_automatic" = "Xyes" ; then
11470:
11471: # We can hardcode non-existent directories.
11472: if test "$hardcode_direct" != no &&
11473: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11474: # have to relink, otherwise we might link with an installed library
11475: # when we should be linking with a yet-to-be-installed one
11476: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11477: test "$hardcode_minus_L" != no; then
11478: # Linking always hardcodes the temporary library directory.
11479: hardcode_action=relink
11480: else
11481: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11482: hardcode_action=immediate
11483: fi
11484: else
11485: # We cannot hardcode anything, or else we can only hardcode existing
11486: # directories.
11487: hardcode_action=unsupported
11488: fi
11489: echo "$as_me:$LINENO: result: $hardcode_action" >&5
11490: echo "${ECHO_T}$hardcode_action" >&6
11491:
11492: if test "$hardcode_action" = relink ||
11493: test "$inherit_rpath" = yes; then
11494: # Fast installation is not supported
11495: enable_fast_install=no
11496: elif test "$shlibpath_overrides_runpath" = yes ||
11497: test "$enable_shared" = no; then
11498: # Fast installation is not necessary
11499: enable_fast_install=needless
11500: fi
11501:
11502:
11503:
11504:
11505:
11506:
11507: if test "x$enable_dlopen" != xyes; then
11508: enable_dlopen=unknown
11509: enable_dlopen_self=unknown
11510: enable_dlopen_self_static=unknown
11511: else
11512: lt_cv_dlopen=no
11513: lt_cv_dlopen_libs=
11514:
11515: case $host_os in
11516: beos*)
11517: lt_cv_dlopen="load_add_on"
11518: lt_cv_dlopen_libs=
11519: lt_cv_dlopen_self=yes
11520: ;;
11521:
11522: mingw* | pw32* | cegcc*)
11523: lt_cv_dlopen="LoadLibrary"
11524: lt_cv_dlopen_libs=
11525: ;;
11526:
11527: cygwin*)
11528: lt_cv_dlopen="dlopen"
11529: lt_cv_dlopen_libs=
11530: ;;
11531:
11532: darwin*)
11533: # if libdl is installed we need to link against it
11534: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11535: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11536: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11537: echo $ECHO_N "(cached) $ECHO_C" >&6
11538: else
11539: ac_check_lib_save_LIBS=$LIBS
11540: LIBS="-ldl $LIBS"
11541: cat >conftest.$ac_ext <<_ACEOF
11542: /* confdefs.h. */
11543: _ACEOF
11544: cat confdefs.h >>conftest.$ac_ext
11545: cat >>conftest.$ac_ext <<_ACEOF
11546: /* end confdefs.h. */
11547:
11548: /* Override any gcc2 internal prototype to avoid an error. */
11549: #ifdef __cplusplus
11550: extern "C"
11551: #endif
11552: /* We use char because int might match the return type of a gcc2
11553: builtin and then its argument prototype would still apply. */
11554: char dlopen ();
11555: int
11556: main ()
11557: {
11558: dlopen ();
11559: ;
11560: return 0;
11561: }
11562: _ACEOF
11563: rm -f conftest.$ac_objext conftest$ac_exeext
11564: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565: (eval $ac_link) 2>conftest.er1
11566: ac_status=$?
11567: grep -v '^ *+' conftest.er1 >conftest.err
11568: rm -f conftest.er1
11569: cat conftest.err >&5
11570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571: (exit $ac_status); } &&
11572: { ac_try='test -z "$ac_c_werror_flag"
11573: || test ! -s conftest.err'
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); }; } &&
11579: { ac_try='test -s conftest$ac_exeext'
11580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581: (eval $ac_try) 2>&5
11582: ac_status=$?
11583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584: (exit $ac_status); }; }; then
11585: ac_cv_lib_dl_dlopen=yes
11586: else
11587: echo "$as_me: failed program was:" >&5
11588: sed 's/^/| /' conftest.$ac_ext >&5
11589:
11590: ac_cv_lib_dl_dlopen=no
11591: fi
11592: rm -f conftest.err conftest.$ac_objext \
11593: conftest$ac_exeext conftest.$ac_ext
11594: LIBS=$ac_check_lib_save_LIBS
11595: fi
11596: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11597: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11598: if test $ac_cv_lib_dl_dlopen = yes; then
11599: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11600: else
11601:
11602: lt_cv_dlopen="dyld"
11603: lt_cv_dlopen_libs=
11604: lt_cv_dlopen_self=yes
11605:
11606: fi
11607:
11608: ;;
11609:
11610: *)
11611: echo "$as_me:$LINENO: checking for shl_load" >&5
11612: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11613: if test "${ac_cv_func_shl_load+set}" = set; then
11614: echo $ECHO_N "(cached) $ECHO_C" >&6
11615: else
11616: cat >conftest.$ac_ext <<_ACEOF
11617: /* confdefs.h. */
11618: _ACEOF
11619: cat confdefs.h >>conftest.$ac_ext
11620: cat >>conftest.$ac_ext <<_ACEOF
11621: /* end confdefs.h. */
11622: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11623: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624: #define shl_load innocuous_shl_load
11625:
11626: /* System header to define __stub macros and hopefully few prototypes,
11627: which can conflict with char shl_load (); below.
11628: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629: <limits.h> exists even on freestanding compilers. */
11630:
11631: #ifdef __STDC__
11632: # include <limits.h>
11633: #else
11634: # include <assert.h>
11635: #endif
11636:
11637: #undef shl_load
11638:
11639: /* Override any gcc2 internal prototype to avoid an error. */
11640: #ifdef __cplusplus
11641: extern "C"
11642: {
11643: #endif
11644: /* We use char because int might match the return type of a gcc2
11645: builtin and then its argument prototype would still apply. */
11646: char shl_load ();
11647: /* The GNU C library defines this for functions which it implements
11648: to always fail with ENOSYS. Some functions are actually named
11649: something starting with __ and the normal name is an alias. */
11650: #if defined (__stub_shl_load) || defined (__stub___shl_load)
11651: choke me
11652: #else
11653: char (*f) () = shl_load;
11654: #endif
11655: #ifdef __cplusplus
11656: }
11657: #endif
11658:
11659: int
11660: main ()
11661: {
11662: return f != shl_load;
11663: ;
11664: return 0;
11665: }
11666: _ACEOF
11667: rm -f conftest.$ac_objext conftest$ac_exeext
11668: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669: (eval $ac_link) 2>conftest.er1
11670: ac_status=$?
11671: grep -v '^ *+' conftest.er1 >conftest.err
11672: rm -f conftest.er1
11673: cat conftest.err >&5
11674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675: (exit $ac_status); } &&
11676: { ac_try='test -z "$ac_c_werror_flag"
11677: || test ! -s conftest.err'
11678: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679: (eval $ac_try) 2>&5
11680: ac_status=$?
11681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682: (exit $ac_status); }; } &&
11683: { ac_try='test -s conftest$ac_exeext'
11684: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685: (eval $ac_try) 2>&5
11686: ac_status=$?
11687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688: (exit $ac_status); }; }; then
11689: ac_cv_func_shl_load=yes
11690: else
11691: echo "$as_me: failed program was:" >&5
11692: sed 's/^/| /' conftest.$ac_ext >&5
11693:
11694: ac_cv_func_shl_load=no
11695: fi
11696: rm -f conftest.err conftest.$ac_objext \
11697: conftest$ac_exeext conftest.$ac_ext
11698: fi
11699: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11700: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11701: if test $ac_cv_func_shl_load = yes; then
11702: lt_cv_dlopen="shl_load"
11703: else
11704: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11705: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11706: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11707: echo $ECHO_N "(cached) $ECHO_C" >&6
11708: else
11709: ac_check_lib_save_LIBS=$LIBS
11710: LIBS="-ldld $LIBS"
11711: cat >conftest.$ac_ext <<_ACEOF
11712: /* confdefs.h. */
11713: _ACEOF
11714: cat confdefs.h >>conftest.$ac_ext
11715: cat >>conftest.$ac_ext <<_ACEOF
11716: /* end confdefs.h. */
11717:
11718: /* Override any gcc2 internal prototype to avoid an error. */
11719: #ifdef __cplusplus
11720: extern "C"
11721: #endif
11722: /* We use char because int might match the return type of a gcc2
11723: builtin and then its argument prototype would still apply. */
11724: char shl_load ();
11725: int
11726: main ()
11727: {
11728: shl_load ();
11729: ;
11730: return 0;
11731: }
11732: _ACEOF
11733: rm -f conftest.$ac_objext conftest$ac_exeext
11734: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735: (eval $ac_link) 2>conftest.er1
11736: ac_status=$?
11737: grep -v '^ *+' conftest.er1 >conftest.err
11738: rm -f conftest.er1
11739: cat conftest.err >&5
11740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741: (exit $ac_status); } &&
11742: { ac_try='test -z "$ac_c_werror_flag"
11743: || test ! -s conftest.err'
11744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745: (eval $ac_try) 2>&5
11746: ac_status=$?
11747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748: (exit $ac_status); }; } &&
11749: { ac_try='test -s conftest$ac_exeext'
11750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751: (eval $ac_try) 2>&5
11752: ac_status=$?
11753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754: (exit $ac_status); }; }; then
11755: ac_cv_lib_dld_shl_load=yes
11756: else
11757: echo "$as_me: failed program was:" >&5
11758: sed 's/^/| /' conftest.$ac_ext >&5
11759:
11760: ac_cv_lib_dld_shl_load=no
11761: fi
11762: rm -f conftest.err conftest.$ac_objext \
11763: conftest$ac_exeext conftest.$ac_ext
11764: LIBS=$ac_check_lib_save_LIBS
11765: fi
11766: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11767: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11768: if test $ac_cv_lib_dld_shl_load = yes; then
11769: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11770: else
11771: echo "$as_me:$LINENO: checking for dlopen" >&5
11772: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11773: if test "${ac_cv_func_dlopen+set}" = set; then
11774: echo $ECHO_N "(cached) $ECHO_C" >&6
11775: else
11776: cat >conftest.$ac_ext <<_ACEOF
11777: /* confdefs.h. */
11778: _ACEOF
11779: cat confdefs.h >>conftest.$ac_ext
11780: cat >>conftest.$ac_ext <<_ACEOF
11781: /* end confdefs.h. */
11782: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11783: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11784: #define dlopen innocuous_dlopen
11785:
11786: /* System header to define __stub macros and hopefully few prototypes,
11787: which can conflict with char dlopen (); below.
11788: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11789: <limits.h> exists even on freestanding compilers. */
11790:
11791: #ifdef __STDC__
11792: # include <limits.h>
11793: #else
11794: # include <assert.h>
11795: #endif
11796:
11797: #undef dlopen
11798:
11799: /* Override any gcc2 internal prototype to avoid an error. */
11800: #ifdef __cplusplus
11801: extern "C"
11802: {
11803: #endif
11804: /* We use char because int might match the return type of a gcc2
11805: builtin and then its argument prototype would still apply. */
11806: char dlopen ();
11807: /* The GNU C library defines this for functions which it implements
11808: to always fail with ENOSYS. Some functions are actually named
11809: something starting with __ and the normal name is an alias. */
11810: #if defined (__stub_dlopen) || defined (__stub___dlopen)
11811: choke me
11812: #else
11813: char (*f) () = dlopen;
11814: #endif
11815: #ifdef __cplusplus
11816: }
11817: #endif
11818:
11819: int
11820: main ()
11821: {
11822: return f != dlopen;
11823: ;
11824: return 0;
11825: }
11826: _ACEOF
11827: rm -f conftest.$ac_objext conftest$ac_exeext
11828: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829: (eval $ac_link) 2>conftest.er1
11830: ac_status=$?
11831: grep -v '^ *+' conftest.er1 >conftest.err
11832: rm -f conftest.er1
11833: cat conftest.err >&5
11834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835: (exit $ac_status); } &&
11836: { ac_try='test -z "$ac_c_werror_flag"
11837: || test ! -s conftest.err'
11838: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839: (eval $ac_try) 2>&5
11840: ac_status=$?
11841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842: (exit $ac_status); }; } &&
11843: { ac_try='test -s conftest$ac_exeext'
11844: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845: (eval $ac_try) 2>&5
11846: ac_status=$?
11847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848: (exit $ac_status); }; }; then
11849: ac_cv_func_dlopen=yes
11850: else
11851: echo "$as_me: failed program was:" >&5
11852: sed 's/^/| /' conftest.$ac_ext >&5
11853:
11854: ac_cv_func_dlopen=no
11855: fi
11856: rm -f conftest.err conftest.$ac_objext \
11857: conftest$ac_exeext conftest.$ac_ext
11858: fi
11859: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11860: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11861: if test $ac_cv_func_dlopen = yes; then
11862: lt_cv_dlopen="dlopen"
11863: else
11864: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11865: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11866: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11867: echo $ECHO_N "(cached) $ECHO_C" >&6
11868: else
11869: ac_check_lib_save_LIBS=$LIBS
11870: LIBS="-ldl $LIBS"
11871: cat >conftest.$ac_ext <<_ACEOF
11872: /* confdefs.h. */
11873: _ACEOF
11874: cat confdefs.h >>conftest.$ac_ext
11875: cat >>conftest.$ac_ext <<_ACEOF
11876: /* end confdefs.h. */
11877:
11878: /* Override any gcc2 internal prototype to avoid an error. */
11879: #ifdef __cplusplus
11880: extern "C"
11881: #endif
11882: /* We use char because int might match the return type of a gcc2
11883: builtin and then its argument prototype would still apply. */
11884: char dlopen ();
11885: int
11886: main ()
11887: {
11888: dlopen ();
11889: ;
11890: return 0;
11891: }
11892: _ACEOF
11893: rm -f conftest.$ac_objext conftest$ac_exeext
11894: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895: (eval $ac_link) 2>conftest.er1
11896: ac_status=$?
11897: grep -v '^ *+' conftest.er1 >conftest.err
11898: rm -f conftest.er1
11899: cat conftest.err >&5
11900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901: (exit $ac_status); } &&
11902: { ac_try='test -z "$ac_c_werror_flag"
11903: || test ! -s conftest.err'
11904: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905: (eval $ac_try) 2>&5
11906: ac_status=$?
11907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908: (exit $ac_status); }; } &&
11909: { ac_try='test -s conftest$ac_exeext'
11910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911: (eval $ac_try) 2>&5
11912: ac_status=$?
11913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914: (exit $ac_status); }; }; then
11915: ac_cv_lib_dl_dlopen=yes
11916: else
11917: echo "$as_me: failed program was:" >&5
11918: sed 's/^/| /' conftest.$ac_ext >&5
11919:
11920: ac_cv_lib_dl_dlopen=no
11921: fi
11922: rm -f conftest.err conftest.$ac_objext \
11923: conftest$ac_exeext conftest.$ac_ext
11924: LIBS=$ac_check_lib_save_LIBS
11925: fi
11926: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11927: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11928: if test $ac_cv_lib_dl_dlopen = yes; then
11929: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11930: else
11931: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11932: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11933: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11934: echo $ECHO_N "(cached) $ECHO_C" >&6
11935: else
11936: ac_check_lib_save_LIBS=$LIBS
11937: LIBS="-lsvld $LIBS"
11938: cat >conftest.$ac_ext <<_ACEOF
11939: /* confdefs.h. */
11940: _ACEOF
11941: cat confdefs.h >>conftest.$ac_ext
11942: cat >>conftest.$ac_ext <<_ACEOF
11943: /* end confdefs.h. */
11944:
11945: /* Override any gcc2 internal prototype to avoid an error. */
11946: #ifdef __cplusplus
11947: extern "C"
11948: #endif
11949: /* We use char because int might match the return type of a gcc2
11950: builtin and then its argument prototype would still apply. */
11951: char dlopen ();
11952: int
11953: main ()
11954: {
11955: dlopen ();
11956: ;
11957: return 0;
11958: }
11959: _ACEOF
11960: rm -f conftest.$ac_objext conftest$ac_exeext
11961: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962: (eval $ac_link) 2>conftest.er1
11963: ac_status=$?
11964: grep -v '^ *+' conftest.er1 >conftest.err
11965: rm -f conftest.er1
11966: cat conftest.err >&5
11967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968: (exit $ac_status); } &&
11969: { ac_try='test -z "$ac_c_werror_flag"
11970: || test ! -s conftest.err'
11971: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972: (eval $ac_try) 2>&5
11973: ac_status=$?
11974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975: (exit $ac_status); }; } &&
11976: { ac_try='test -s conftest$ac_exeext'
11977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978: (eval $ac_try) 2>&5
11979: ac_status=$?
11980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981: (exit $ac_status); }; }; then
11982: ac_cv_lib_svld_dlopen=yes
11983: else
11984: echo "$as_me: failed program was:" >&5
11985: sed 's/^/| /' conftest.$ac_ext >&5
11986:
11987: ac_cv_lib_svld_dlopen=no
11988: fi
11989: rm -f conftest.err conftest.$ac_objext \
11990: conftest$ac_exeext conftest.$ac_ext
11991: LIBS=$ac_check_lib_save_LIBS
11992: fi
11993: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11994: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11995: if test $ac_cv_lib_svld_dlopen = yes; then
11996: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11997: else
11998: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11999: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12000: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12001: echo $ECHO_N "(cached) $ECHO_C" >&6
12002: else
12003: ac_check_lib_save_LIBS=$LIBS
12004: LIBS="-ldld $LIBS"
12005: cat >conftest.$ac_ext <<_ACEOF
12006: /* confdefs.h. */
12007: _ACEOF
12008: cat confdefs.h >>conftest.$ac_ext
12009: cat >>conftest.$ac_ext <<_ACEOF
12010: /* end confdefs.h. */
12011:
12012: /* Override any gcc2 internal prototype to avoid an error. */
12013: #ifdef __cplusplus
12014: extern "C"
12015: #endif
12016: /* We use char because int might match the return type of a gcc2
12017: builtin and then its argument prototype would still apply. */
12018: char dld_link ();
12019: int
12020: main ()
12021: {
12022: dld_link ();
12023: ;
12024: return 0;
12025: }
12026: _ACEOF
12027: rm -f conftest.$ac_objext conftest$ac_exeext
12028: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029: (eval $ac_link) 2>conftest.er1
12030: ac_status=$?
12031: grep -v '^ *+' conftest.er1 >conftest.err
12032: rm -f conftest.er1
12033: cat conftest.err >&5
12034: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035: (exit $ac_status); } &&
12036: { ac_try='test -z "$ac_c_werror_flag"
12037: || test ! -s conftest.err'
12038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039: (eval $ac_try) 2>&5
12040: ac_status=$?
12041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042: (exit $ac_status); }; } &&
12043: { ac_try='test -s conftest$ac_exeext'
12044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045: (eval $ac_try) 2>&5
12046: ac_status=$?
12047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048: (exit $ac_status); }; }; then
12049: ac_cv_lib_dld_dld_link=yes
12050: else
12051: echo "$as_me: failed program was:" >&5
12052: sed 's/^/| /' conftest.$ac_ext >&5
12053:
12054: ac_cv_lib_dld_dld_link=no
12055: fi
12056: rm -f conftest.err conftest.$ac_objext \
12057: conftest$ac_exeext conftest.$ac_ext
12058: LIBS=$ac_check_lib_save_LIBS
12059: fi
12060: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12061: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12062: if test $ac_cv_lib_dld_dld_link = yes; then
12063: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12064: fi
12065:
12066:
12067: fi
12068:
12069:
12070: fi
12071:
12072:
12073: fi
12074:
12075:
12076: fi
12077:
12078:
12079: fi
12080:
12081: ;;
12082: esac
12083:
12084: if test "x$lt_cv_dlopen" != xno; then
12085: enable_dlopen=yes
12086: else
12087: enable_dlopen=no
12088: fi
12089:
12090: case $lt_cv_dlopen in
12091: dlopen)
12092: save_CPPFLAGS="$CPPFLAGS"
12093: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12094:
12095: save_LDFLAGS="$LDFLAGS"
12096: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12097:
12098: save_LIBS="$LIBS"
12099: LIBS="$lt_cv_dlopen_libs $LIBS"
12100:
12101: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12102: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12103: if test "${lt_cv_dlopen_self+set}" = set; then
12104: echo $ECHO_N "(cached) $ECHO_C" >&6
12105: else
12106: if test "$cross_compiling" = yes; then :
12107: lt_cv_dlopen_self=cross
12108: else
12109: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12110: lt_status=$lt_dlunknown
12111: cat > conftest.$ac_ext <<_LT_EOF
12112: #line $LINENO "configure"
12113: #include "confdefs.h"
12114:
12115: #if HAVE_DLFCN_H
12116: #include <dlfcn.h>
12117: #endif
12118:
12119: #include <stdio.h>
12120:
12121: #ifdef RTLD_GLOBAL
12122: # define LT_DLGLOBAL RTLD_GLOBAL
12123: #else
12124: # ifdef DL_GLOBAL
12125: # define LT_DLGLOBAL DL_GLOBAL
12126: # else
12127: # define LT_DLGLOBAL 0
12128: # endif
12129: #endif
12130:
12131: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12132: find out it does not work in some platform. */
12133: #ifndef LT_DLLAZY_OR_NOW
12134: # ifdef RTLD_LAZY
12135: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12136: # else
12137: # ifdef DL_LAZY
12138: # define LT_DLLAZY_OR_NOW DL_LAZY
12139: # else
12140: # ifdef RTLD_NOW
12141: # define LT_DLLAZY_OR_NOW RTLD_NOW
12142: # else
12143: # ifdef DL_NOW
12144: # define LT_DLLAZY_OR_NOW DL_NOW
12145: # else
12146: # define LT_DLLAZY_OR_NOW 0
12147: # endif
12148: # endif
12149: # endif
12150: # endif
12151: #endif
12152:
12153: /* When -fvisbility=hidden is used, assume the code has been annotated
12154: correspondingly for the symbols needed. */
12155: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12156: int fnord () __attribute__((visibility("default")));
12157: #endif
12158:
12159: int fnord () { return 42; }
12160: int main ()
12161: {
12162: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12163: int status = $lt_dlunknown;
12164:
12165: if (self)
12166: {
12167: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12168: else
12169: {
12170: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12171: else puts (dlerror ());
12172: }
12173: /* dlclose (self); */
12174: }
12175: else
12176: puts (dlerror ());
12177:
12178: return status;
12179: }
12180: _LT_EOF
12181: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12182: (eval $ac_link) 2>&5
12183: ac_status=$?
12184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12186: (./conftest; exit; ) >&5 2>/dev/null
12187: lt_status=$?
12188: case x$lt_status in
12189: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12190: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12191: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12192: esac
12193: else :
12194: # compilation failed
12195: lt_cv_dlopen_self=no
12196: fi
12197: fi
12198: rm -fr conftest*
12199:
12200:
12201: fi
12202: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12203: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12204:
12205: if test "x$lt_cv_dlopen_self" = xyes; then
12206: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12207: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12208: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12209: if test "${lt_cv_dlopen_self_static+set}" = set; then
12210: echo $ECHO_N "(cached) $ECHO_C" >&6
12211: else
12212: if test "$cross_compiling" = yes; then :
12213: lt_cv_dlopen_self_static=cross
12214: else
12215: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12216: lt_status=$lt_dlunknown
12217: cat > conftest.$ac_ext <<_LT_EOF
12218: #line $LINENO "configure"
12219: #include "confdefs.h"
12220:
12221: #if HAVE_DLFCN_H
12222: #include <dlfcn.h>
12223: #endif
12224:
12225: #include <stdio.h>
12226:
12227: #ifdef RTLD_GLOBAL
12228: # define LT_DLGLOBAL RTLD_GLOBAL
12229: #else
12230: # ifdef DL_GLOBAL
12231: # define LT_DLGLOBAL DL_GLOBAL
12232: # else
12233: # define LT_DLGLOBAL 0
12234: # endif
12235: #endif
12236:
12237: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12238: find out it does not work in some platform. */
12239: #ifndef LT_DLLAZY_OR_NOW
12240: # ifdef RTLD_LAZY
12241: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12242: # else
12243: # ifdef DL_LAZY
12244: # define LT_DLLAZY_OR_NOW DL_LAZY
12245: # else
12246: # ifdef RTLD_NOW
12247: # define LT_DLLAZY_OR_NOW RTLD_NOW
12248: # else
12249: # ifdef DL_NOW
12250: # define LT_DLLAZY_OR_NOW DL_NOW
12251: # else
12252: # define LT_DLLAZY_OR_NOW 0
12253: # endif
12254: # endif
12255: # endif
12256: # endif
12257: #endif
12258:
12259: /* When -fvisbility=hidden is used, assume the code has been annotated
12260: correspondingly for the symbols needed. */
12261: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12262: int fnord () __attribute__((visibility("default")));
12263: #endif
12264:
12265: int fnord () { return 42; }
12266: int main ()
12267: {
12268: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12269: int status = $lt_dlunknown;
12270:
12271: if (self)
12272: {
12273: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12274: else
12275: {
12276: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12277: else puts (dlerror ());
12278: }
12279: /* dlclose (self); */
12280: }
12281: else
12282: puts (dlerror ());
12283:
12284: return status;
12285: }
12286: _LT_EOF
12287: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288: (eval $ac_link) 2>&5
12289: ac_status=$?
12290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12292: (./conftest; exit; ) >&5 2>/dev/null
12293: lt_status=$?
12294: case x$lt_status in
12295: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12296: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12297: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12298: esac
12299: else :
12300: # compilation failed
12301: lt_cv_dlopen_self_static=no
12302: fi
12303: fi
12304: rm -fr conftest*
12305:
12306:
12307: fi
12308: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12309: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12310: fi
12311:
12312: CPPFLAGS="$save_CPPFLAGS"
12313: LDFLAGS="$save_LDFLAGS"
12314: LIBS="$save_LIBS"
12315: ;;
12316: esac
12317:
12318: case $lt_cv_dlopen_self in
12319: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12320: *) enable_dlopen_self=unknown ;;
12321: esac
12322:
12323: case $lt_cv_dlopen_self_static in
12324: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12325: *) enable_dlopen_self_static=unknown ;;
12326: esac
12327: fi
12328:
12329:
12330:
12331:
12332:
12333:
12334:
12335:
12336:
12337:
12338:
12339:
12340:
12341:
12342:
12343:
12344:
12345: striplib=
12346: old_striplib=
12347: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12348: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12349: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12350: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12351: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12352: echo "$as_me:$LINENO: result: yes" >&5
12353: echo "${ECHO_T}yes" >&6
12354: else
12355: # FIXME - insert some real tests, host_os isn't really good enough
12356: case $host_os in
12357: darwin*)
12358: if test -n "$STRIP" ; then
12359: striplib="$STRIP -x"
12360: old_striplib="$STRIP -S"
12361: echo "$as_me:$LINENO: result: yes" >&5
12362: echo "${ECHO_T}yes" >&6
12363: else
12364: echo "$as_me:$LINENO: result: no" >&5
12365: echo "${ECHO_T}no" >&6
12366: fi
12367: ;;
12368: *)
12369: echo "$as_me:$LINENO: result: no" >&5
12370: echo "${ECHO_T}no" >&6
12371: ;;
12372: esac
12373: fi
12374:
12375:
12376:
12377:
12378:
12379:
12380:
12381:
12382:
12383:
12384:
12385:
12386: # Report which library types will actually be built
12387: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12388: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12389: echo "$as_me:$LINENO: result: $can_build_shared" >&5
12390: echo "${ECHO_T}$can_build_shared" >&6
12391:
12392: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12393: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12394: test "$can_build_shared" = "no" && enable_shared=no
12395:
12396: # On AIX, shared libraries and static libraries use the same namespace, and
12397: # are all built from PIC.
12398: case $host_os in
12399: aix3*)
12400: test "$enable_shared" = yes && enable_static=no
12401: if test -n "$RANLIB"; then
12402: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12403: postinstall_cmds='$RANLIB $lib'
12404: fi
12405: ;;
12406:
12407: aix[4-9]*)
12408: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12409: test "$enable_shared" = yes && enable_static=no
12410: fi
12411: ;;
12412: esac
12413: echo "$as_me:$LINENO: result: $enable_shared" >&5
12414: echo "${ECHO_T}$enable_shared" >&6
12415:
12416: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12417: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12418: # Make sure either enable_shared or enable_static is yes.
12419: test "$enable_shared" = yes || enable_static=yes
12420: echo "$as_me:$LINENO: result: $enable_static" >&5
12421: echo "${ECHO_T}$enable_static" >&6
12422:
12423:
12424:
12425:
12426: fi
12427: ac_ext=c
12428: ac_cpp='$CPP $CPPFLAGS'
12429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432:
12433: CC="$lt_save_CC"
12434:
12435: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12436: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12437: (test "X$CXX" != "Xg++"))) ; then
12438: ac_ext=cc
12439: ac_cpp='$CXXCPP $CPPFLAGS'
12440: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12443: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12444: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12445: if test -z "$CXXCPP"; then
12446: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12447: echo $ECHO_N "(cached) $ECHO_C" >&6
12448: else
12449: # Double quotes because CXXCPP needs to be expanded
12450: for CXXCPP in "$CXX -E" "/lib/cpp"
12451: do
12452: ac_preproc_ok=false
12453: for ac_cxx_preproc_warn_flag in '' yes
12454: do
12455: # Use a header file that comes with gcc, so configuring glibc
12456: # with a fresh cross-compiler works.
12457: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12458: # <limits.h> exists even on freestanding compilers.
12459: # On the NeXT, cc -E runs the code through the compiler's parser,
12460: # not just through cpp. "Syntax error" is here to catch this case.
12461: cat >conftest.$ac_ext <<_ACEOF
12462: /* confdefs.h. */
12463: _ACEOF
12464: cat confdefs.h >>conftest.$ac_ext
12465: cat >>conftest.$ac_ext <<_ACEOF
12466: /* end confdefs.h. */
12467: #ifdef __STDC__
12468: # include <limits.h>
12469: #else
12470: # include <assert.h>
12471: #endif
12472: Syntax error
12473: _ACEOF
12474: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12475: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12476: ac_status=$?
12477: grep -v '^ *+' conftest.er1 >conftest.err
12478: rm -f conftest.er1
12479: cat conftest.err >&5
12480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481: (exit $ac_status); } >/dev/null; then
12482: if test -s conftest.err; then
12483: ac_cpp_err=$ac_cxx_preproc_warn_flag
12484: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12485: else
12486: ac_cpp_err=
12487: fi
12488: else
12489: ac_cpp_err=yes
12490: fi
12491: if test -z "$ac_cpp_err"; then
12492: :
12493: else
12494: echo "$as_me: failed program was:" >&5
12495: sed 's/^/| /' conftest.$ac_ext >&5
12496:
12497: # Broken: fails on valid input.
12498: continue
12499: fi
12500: rm -f conftest.err conftest.$ac_ext
12501:
12502: # OK, works on sane cases. Now check whether non-existent headers
12503: # can be detected and how.
12504: cat >conftest.$ac_ext <<_ACEOF
12505: /* confdefs.h. */
12506: _ACEOF
12507: cat confdefs.h >>conftest.$ac_ext
12508: cat >>conftest.$ac_ext <<_ACEOF
12509: /* end confdefs.h. */
12510: #include <ac_nonexistent.h>
12511: _ACEOF
12512: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12513: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12514: ac_status=$?
12515: grep -v '^ *+' conftest.er1 >conftest.err
12516: rm -f conftest.er1
12517: cat conftest.err >&5
12518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519: (exit $ac_status); } >/dev/null; then
12520: if test -s conftest.err; then
12521: ac_cpp_err=$ac_cxx_preproc_warn_flag
12522: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12523: else
12524: ac_cpp_err=
12525: fi
12526: else
12527: ac_cpp_err=yes
12528: fi
12529: if test -z "$ac_cpp_err"; then
12530: # Broken: success on invalid input.
12531: continue
12532: else
12533: echo "$as_me: failed program was:" >&5
12534: sed 's/^/| /' conftest.$ac_ext >&5
12535:
12536: # Passes both tests.
12537: ac_preproc_ok=:
12538: break
12539: fi
12540: rm -f conftest.err conftest.$ac_ext
12541:
12542: done
12543: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12544: rm -f conftest.err conftest.$ac_ext
12545: if $ac_preproc_ok; then
12546: break
12547: fi
12548:
12549: done
12550: ac_cv_prog_CXXCPP=$CXXCPP
12551:
12552: fi
12553: CXXCPP=$ac_cv_prog_CXXCPP
12554: else
12555: ac_cv_prog_CXXCPP=$CXXCPP
12556: fi
12557: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12558: echo "${ECHO_T}$CXXCPP" >&6
12559: ac_preproc_ok=false
12560: for ac_cxx_preproc_warn_flag in '' yes
12561: do
12562: # Use a header file that comes with gcc, so configuring glibc
12563: # with a fresh cross-compiler works.
12564: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12565: # <limits.h> exists even on freestanding compilers.
12566: # On the NeXT, cc -E runs the code through the compiler's parser,
12567: # not just through cpp. "Syntax error" is here to catch this case.
12568: cat >conftest.$ac_ext <<_ACEOF
12569: /* confdefs.h. */
12570: _ACEOF
12571: cat confdefs.h >>conftest.$ac_ext
12572: cat >>conftest.$ac_ext <<_ACEOF
12573: /* end confdefs.h. */
12574: #ifdef __STDC__
12575: # include <limits.h>
12576: #else
12577: # include <assert.h>
12578: #endif
12579: Syntax error
12580: _ACEOF
12581: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12582: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12583: ac_status=$?
12584: grep -v '^ *+' conftest.er1 >conftest.err
12585: rm -f conftest.er1
12586: cat conftest.err >&5
12587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588: (exit $ac_status); } >/dev/null; then
12589: if test -s conftest.err; then
12590: ac_cpp_err=$ac_cxx_preproc_warn_flag
12591: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12592: else
12593: ac_cpp_err=
12594: fi
12595: else
12596: ac_cpp_err=yes
12597: fi
12598: if test -z "$ac_cpp_err"; then
12599: :
12600: else
12601: echo "$as_me: failed program was:" >&5
12602: sed 's/^/| /' conftest.$ac_ext >&5
12603:
12604: # Broken: fails on valid input.
12605: continue
12606: fi
12607: rm -f conftest.err conftest.$ac_ext
12608:
12609: # OK, works on sane cases. Now check whether non-existent headers
12610: # can be detected and how.
12611: cat >conftest.$ac_ext <<_ACEOF
12612: /* confdefs.h. */
12613: _ACEOF
12614: cat confdefs.h >>conftest.$ac_ext
12615: cat >>conftest.$ac_ext <<_ACEOF
12616: /* end confdefs.h. */
12617: #include <ac_nonexistent.h>
12618: _ACEOF
12619: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12620: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12621: ac_status=$?
12622: grep -v '^ *+' conftest.er1 >conftest.err
12623: rm -f conftest.er1
12624: cat conftest.err >&5
12625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626: (exit $ac_status); } >/dev/null; then
12627: if test -s conftest.err; then
12628: ac_cpp_err=$ac_cxx_preproc_warn_flag
12629: ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12630: else
12631: ac_cpp_err=
12632: fi
12633: else
12634: ac_cpp_err=yes
12635: fi
12636: if test -z "$ac_cpp_err"; then
12637: # Broken: success on invalid input.
12638: continue
12639: else
12640: echo "$as_me: failed program was:" >&5
12641: sed 's/^/| /' conftest.$ac_ext >&5
12642:
12643: # Passes both tests.
12644: ac_preproc_ok=:
12645: break
12646: fi
12647: rm -f conftest.err conftest.$ac_ext
12648:
12649: done
12650: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12651: rm -f conftest.err conftest.$ac_ext
12652: if $ac_preproc_ok; then
12653: :
12654: else
12655: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12656: See \`config.log' for more details." >&5
12657: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12658: See \`config.log' for more details." >&2;}
12659: { (exit 1); exit 1; }; }
12660: fi
12661:
12662: ac_ext=c
12663: ac_cpp='$CPP $CPPFLAGS'
12664: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667:
12668: else
12669: _lt_caught_CXX_error=yes
12670: fi
12671:
12672: ac_ext=cc
12673: ac_cpp='$CXXCPP $CPPFLAGS'
12674: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12677:
12678: archive_cmds_need_lc_CXX=no
12679: allow_undefined_flag_CXX=
12680: always_export_symbols_CXX=no
12681: archive_expsym_cmds_CXX=
12682: compiler_needs_object_CXX=no
12683: export_dynamic_flag_spec_CXX=
12684: hardcode_direct_CXX=no
12685: hardcode_direct_absolute_CXX=no
12686: hardcode_libdir_flag_spec_CXX=
12687: hardcode_libdir_separator_CXX=
12688: hardcode_minus_L_CXX=no
12689: hardcode_shlibpath_var_CXX=unsupported
12690: hardcode_automatic_CXX=no
12691: inherit_rpath_CXX=no
12692: module_cmds_CXX=
12693: module_expsym_cmds_CXX=
12694: link_all_deplibs_CXX=unknown
12695: old_archive_cmds_CXX=$old_archive_cmds
12696: reload_flag_CXX=$reload_flag
12697: reload_cmds_CXX=$reload_cmds
12698: no_undefined_flag_CXX=
12699: whole_archive_flag_spec_CXX=
12700: enable_shared_with_static_runtimes_CXX=no
12701:
12702: # Source file extension for C++ test sources.
12703: ac_ext=cpp
12704:
12705: # Object file extension for compiled C++ test sources.
12706: objext=o
12707: objext_CXX=$objext
12708:
12709: # No sense in running all these tests if we already determined that
12710: # the CXX compiler isn't working. Some variables (like enable_shared)
12711: # are currently assumed to apply to all compilers on this platform,
12712: # and will be corrupted by setting them based on a non-working compiler.
12713: if test "$_lt_caught_CXX_error" != yes; then
12714: # Code to be used in simple compile tests
12715: lt_simple_compile_test_code="int some_variable = 0;"
12716:
12717: # Code to be used in simple link tests
12718: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12719:
12720: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12721:
12722:
12723:
12724:
12725:
12726:
12727: # If no C compiler was specified, use CC.
12728: LTCC=${LTCC-"$CC"}
12729:
12730: # If no C compiler flags were specified, use CFLAGS.
12731: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12732:
12733: # Allow CC to be a program name with arguments.
12734: compiler=$CC
12735:
12736:
12737: # save warnings/boilerplate of simple test code
12738: ac_outfile=conftest.$ac_objext
12739: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12740: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12741: _lt_compiler_boilerplate=`cat conftest.err`
12742: $RM conftest*
12743:
12744: ac_outfile=conftest.$ac_objext
12745: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12746: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12747: _lt_linker_boilerplate=`cat conftest.err`
12748: $RM -r conftest*
12749:
12750:
12751: # Allow CC to be a program name with arguments.
12752: lt_save_CC=$CC
12753: lt_save_CFLAGS=$CFLAGS
12754: lt_save_LD=$LD
12755: lt_save_GCC=$GCC
12756: GCC=$GXX
12757: lt_save_with_gnu_ld=$with_gnu_ld
12758: lt_save_path_LD=$lt_cv_path_LD
12759: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12760: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12761: else
12762: $as_unset lt_cv_prog_gnu_ld
12763: fi
12764: if test -n "${lt_cv_path_LDCXX+set}"; then
12765: lt_cv_path_LD=$lt_cv_path_LDCXX
12766: else
12767: $as_unset lt_cv_path_LD
12768: fi
12769: test -z "${LDCXX+set}" || LD=$LDCXX
12770: CC=${CXX-"c++"}
12771: CFLAGS=$CXXFLAGS
12772: compiler=$CC
12773: compiler_CXX=$CC
12774: for cc_temp in $compiler""; do
12775: case $cc_temp in
12776: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12777: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12778: \-*) ;;
12779: *) break;;
12780: esac
12781: done
12782: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12783:
12784:
12785: if test -n "$compiler"; then
12786: # We don't want -fno-exception when compiling C++ code, so set the
12787: # no_builtin_flag separately
12788: if test "$GXX" = yes; then
12789: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12790: else
12791: lt_prog_compiler_no_builtin_flag_CXX=
12792: fi
12793:
12794: if test "$GXX" = yes; then
12795: # Set up default GNU C++ configuration
12796:
12797:
12798:
12799: # Check whether --with-gnu-ld or --without-gnu-ld was given.
12800: if test "${with_gnu_ld+set}" = set; then
12801: withval="$with_gnu_ld"
12802: test "$withval" = no || with_gnu_ld=yes
12803: else
12804: with_gnu_ld=no
12805: fi;
12806: ac_prog=ld
12807: if test "$GCC" = yes; then
12808: # Check if gcc -print-prog-name=ld gives a path.
12809: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12810: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12811: case $host in
12812: *-*-mingw*)
12813: # gcc leaves a trailing carriage return which upsets mingw
12814: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12815: *)
12816: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12817: esac
12818: case $ac_prog in
12819: # Accept absolute paths.
12820: [\\/]* | ?:[\\/]*)
12821: re_direlt='/[^/][^/]*/\.\./'
12822: # Canonicalize the pathname of ld
12823: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12824: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12825: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12826: done
12827: test -z "$LD" && LD="$ac_prog"
12828: ;;
12829: "")
12830: # If it fails, then pretend we aren't using GCC.
12831: ac_prog=ld
12832: ;;
12833: *)
12834: # If it is relative, then search for the first ld in PATH.
12835: with_gnu_ld=unknown
12836: ;;
12837: esac
12838: elif test "$with_gnu_ld" = yes; then
12839: echo "$as_me:$LINENO: checking for GNU ld" >&5
12840: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12841: else
12842: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12843: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12844: fi
12845: if test "${lt_cv_path_LD+set}" = set; then
12846: echo $ECHO_N "(cached) $ECHO_C" >&6
12847: else
12848: if test -z "$LD"; then
12849: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850: for ac_dir in $PATH; do
12851: IFS="$lt_save_ifs"
12852: test -z "$ac_dir" && ac_dir=.
12853: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12854: lt_cv_path_LD="$ac_dir/$ac_prog"
12855: # Check to see if the program is GNU ld. I'd rather use --version,
12856: # but apparently some variants of GNU ld only accept -v.
12857: # Break only if it was the GNU/non-GNU ld that we prefer.
12858: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12859: *GNU* | *'with BFD'*)
12860: test "$with_gnu_ld" != no && break
12861: ;;
12862: *)
12863: test "$with_gnu_ld" != yes && break
12864: ;;
12865: esac
12866: fi
12867: done
12868: IFS="$lt_save_ifs"
12869: else
12870: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12871: fi
12872: fi
12873:
12874: LD="$lt_cv_path_LD"
12875: if test -n "$LD"; then
12876: echo "$as_me:$LINENO: result: $LD" >&5
12877: echo "${ECHO_T}$LD" >&6
12878: else
12879: echo "$as_me:$LINENO: result: no" >&5
12880: echo "${ECHO_T}no" >&6
12881: fi
12882: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12883: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12884: { (exit 1); exit 1; }; }
12885: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12886: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12887: if test "${lt_cv_prog_gnu_ld+set}" = set; then
12888: echo $ECHO_N "(cached) $ECHO_C" >&6
12889: else
12890: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12891: case `$LD -v 2>&1 </dev/null` in
12892: *GNU* | *'with BFD'*)
12893: lt_cv_prog_gnu_ld=yes
12894: ;;
12895: *)
12896: lt_cv_prog_gnu_ld=no
12897: ;;
12898: esac
12899: fi
12900: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12901: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12902: with_gnu_ld=$lt_cv_prog_gnu_ld
12903:
12904:
12905:
12906:
12907:
12908:
12909:
12910: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12911: # archiving commands below assume that GNU ld is being used.
12912: if test "$with_gnu_ld" = yes; then
12913: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12914: 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'
12915:
12916: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12917: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12918:
12919: # If archive_cmds runs LD, not CC, wlarc should be empty
12920: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12921: # investigate it a little bit more. (MM)
12922: wlarc='${wl}'
12923:
12924: # ancient GNU ld didn't support --whole-archive et. al.
12925: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12926: $GREP 'no-whole-archive' > /dev/null; then
12927: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12928: else
12929: whole_archive_flag_spec_CXX=
12930: fi
12931: else
12932: with_gnu_ld=no
12933: wlarc=
12934:
12935: # A generic and very simple default shared library creation
12936: # command for GNU C++ for the case where it uses the native
12937: # linker, instead of GNU ld. If possible, this setting should
12938: # overridden to take advantage of the native linker features on
12939: # the platform it is being used on.
12940: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12941: fi
12942:
12943: # Commands to make compiler produce verbose output that lists
12944: # what "hidden" libraries, object files and flags are used when
12945: # linking a shared library.
12946: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12947:
12948: else
12949: GXX=no
12950: with_gnu_ld=no
12951: wlarc=
12952: fi
12953:
12954: # PORTME: fill in a description of your system's C++ link characteristics
12955: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12956: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12957: ld_shlibs_CXX=yes
12958: case $host_os in
12959: aix3*)
12960: # FIXME: insert proper C++ library support
12961: ld_shlibs_CXX=no
12962: ;;
12963: aix[4-9]*)
12964: if test "$host_cpu" = ia64; then
12965: # On IA64, the linker does run time linking by default, so we don't
12966: # have to do anything special.
12967: aix_use_runtimelinking=no
12968: exp_sym_flag='-Bexport'
12969: no_entry_flag=""
12970: else
12971: aix_use_runtimelinking=no
12972:
12973: # Test if we are trying to use run time linking or normal
12974: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12975: # need to do runtime linking.
12976: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12977: for ld_flag in $LDFLAGS; do
12978: case $ld_flag in
12979: *-brtl*)
12980: aix_use_runtimelinking=yes
12981: break
12982: ;;
12983: esac
12984: done
12985: ;;
12986: esac
12987:
12988: exp_sym_flag='-bexport'
12989: no_entry_flag='-bnoentry'
12990: fi
12991:
12992: # When large executables or shared objects are built, AIX ld can
12993: # have problems creating the table of contents. If linking a library
12994: # or program results in "error TOC overflow" add -mminimal-toc to
12995: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12996: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12997:
12998: archive_cmds_CXX=''
12999: hardcode_direct_CXX=yes
13000: hardcode_direct_absolute_CXX=yes
13001: hardcode_libdir_separator_CXX=':'
13002: link_all_deplibs_CXX=yes
13003: file_list_spec_CXX='${wl}-f,'
13004:
13005: if test "$GXX" = yes; then
13006: case $host_os in aix4.[012]|aix4.[012].*)
13007: # We only want to do this on AIX 4.2 and lower, the check
13008: # below for broken collect2 doesn't work under 4.3+
13009: collect2name=`${CC} -print-prog-name=collect2`
13010: if test -f "$collect2name" &&
13011: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13012: then
13013: # We have reworked collect2
13014: :
13015: else
13016: # We have old collect2
13017: hardcode_direct_CXX=unsupported
13018: # It fails to find uninstalled libraries when the uninstalled
13019: # path is not listed in the libpath. Setting hardcode_minus_L
13020: # to unsupported forces relinking
13021: hardcode_minus_L_CXX=yes
13022: hardcode_libdir_flag_spec_CXX='-L$libdir'
13023: hardcode_libdir_separator_CXX=
13024: fi
13025: esac
13026: shared_flag='-shared'
13027: if test "$aix_use_runtimelinking" = yes; then
13028: shared_flag="$shared_flag "'${wl}-G'
13029: fi
13030: else
13031: # not using gcc
13032: if test "$host_cpu" = ia64; then
13033: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13034: # chokes on -Wl,-G. The following line is correct:
13035: shared_flag='-G'
13036: else
13037: if test "$aix_use_runtimelinking" = yes; then
13038: shared_flag='${wl}-G'
13039: else
13040: shared_flag='${wl}-bM:SRE'
13041: fi
13042: fi
13043: fi
13044:
13045: export_dynamic_flag_spec_CXX='${wl}-bexpall'
13046: # It seems that -bexpall does not export symbols beginning with
13047: # underscore (_), so it is better to generate a list of symbols to
13048: # export.
13049: always_export_symbols_CXX=yes
13050: if test "$aix_use_runtimelinking" = yes; then
13051: # Warning - without using the other runtime loading flags (-brtl),
13052: # -berok will link without error, but may produce a broken library.
13053: allow_undefined_flag_CXX='-berok'
13054: # Determine the default libpath from the value encoded in an empty
13055: # executable.
13056: if test "${lt_cv_aix_libpath+set}" = set; then
13057: aix_libpath=$lt_cv_aix_libpath
13058: else
13059: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13060: echo $ECHO_N "(cached) $ECHO_C" >&6
13061: else
13062: cat >conftest.$ac_ext <<_ACEOF
13063: /* confdefs.h. */
13064: _ACEOF
13065: cat confdefs.h >>conftest.$ac_ext
13066: cat >>conftest.$ac_ext <<_ACEOF
13067: /* end confdefs.h. */
13068:
13069: int
13070: main ()
13071: {
13072:
13073: ;
13074: return 0;
13075: }
13076: _ACEOF
13077: rm -f conftest.$ac_objext conftest$ac_exeext
13078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13079: (eval $ac_link) 2>conftest.er1
13080: ac_status=$?
13081: grep -v '^ *+' conftest.er1 >conftest.err
13082: rm -f conftest.er1
13083: cat conftest.err >&5
13084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085: (exit $ac_status); } &&
13086: { ac_try='test -z "$ac_cxx_werror_flag"
13087: || test ! -s conftest.err'
13088: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089: (eval $ac_try) 2>&5
13090: ac_status=$?
13091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092: (exit $ac_status); }; } &&
13093: { ac_try='test -s conftest$ac_exeext'
13094: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095: (eval $ac_try) 2>&5
13096: ac_status=$?
13097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098: (exit $ac_status); }; }; then
13099:
13100: lt_aix_libpath_sed='
13101: /Import File Strings/,/^$/ {
13102: /^0/ {
13103: s/^0 *\([^ ]*\) *$/\1/
13104: p
13105: }
13106: }'
13107: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108: # Check for a 64-bit object if we didn't find anything.
13109: if test -z "$lt_cv_aix_libpath__CXX"; then
13110: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111: fi
13112: else
13113: echo "$as_me: failed program was:" >&5
13114: sed 's/^/| /' conftest.$ac_ext >&5
13115:
13116: fi
13117: rm -f conftest.err conftest.$ac_objext \
13118: conftest$ac_exeext conftest.$ac_ext
13119: if test -z "$lt_cv_aix_libpath__CXX"; then
13120: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13121: fi
13122:
13123: fi
13124:
13125: aix_libpath=$lt_cv_aix_libpath__CXX
13126: fi
13127:
13128: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13129:
13130: 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"
13131: else
13132: if test "$host_cpu" = ia64; then
13133: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13134: allow_undefined_flag_CXX="-z nodefs"
13135: 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"
13136: else
13137: # Determine the default libpath from the value encoded in an
13138: # empty executable.
13139: if test "${lt_cv_aix_libpath+set}" = set; then
13140: aix_libpath=$lt_cv_aix_libpath
13141: else
13142: if test "${lt_cv_aix_libpath__CXX+set}" = set; then
13143: echo $ECHO_N "(cached) $ECHO_C" >&6
13144: else
13145: cat >conftest.$ac_ext <<_ACEOF
13146: /* confdefs.h. */
13147: _ACEOF
13148: cat confdefs.h >>conftest.$ac_ext
13149: cat >>conftest.$ac_ext <<_ACEOF
13150: /* end confdefs.h. */
13151:
13152: int
13153: main ()
13154: {
13155:
13156: ;
13157: return 0;
13158: }
13159: _ACEOF
13160: rm -f conftest.$ac_objext conftest$ac_exeext
13161: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162: (eval $ac_link) 2>conftest.er1
13163: ac_status=$?
13164: grep -v '^ *+' conftest.er1 >conftest.err
13165: rm -f conftest.er1
13166: cat conftest.err >&5
13167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168: (exit $ac_status); } &&
13169: { ac_try='test -z "$ac_cxx_werror_flag"
13170: || test ! -s conftest.err'
13171: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172: (eval $ac_try) 2>&5
13173: ac_status=$?
13174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175: (exit $ac_status); }; } &&
13176: { ac_try='test -s conftest$ac_exeext'
13177: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178: (eval $ac_try) 2>&5
13179: ac_status=$?
13180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181: (exit $ac_status); }; }; then
13182:
13183: lt_aix_libpath_sed='
13184: /Import File Strings/,/^$/ {
13185: /^0/ {
13186: s/^0 *\([^ ]*\) *$/\1/
13187: p
13188: }
13189: }'
13190: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13191: # Check for a 64-bit object if we didn't find anything.
13192: if test -z "$lt_cv_aix_libpath__CXX"; then
13193: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13194: fi
13195: else
13196: echo "$as_me: failed program was:" >&5
13197: sed 's/^/| /' conftest.$ac_ext >&5
13198:
13199: fi
13200: rm -f conftest.err conftest.$ac_objext \
13201: conftest$ac_exeext conftest.$ac_ext
13202: if test -z "$lt_cv_aix_libpath__CXX"; then
13203: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13204: fi
13205:
13206: fi
13207:
13208: aix_libpath=$lt_cv_aix_libpath__CXX
13209: fi
13210:
13211: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13212: # Warning - without using the other run time loading flags,
13213: # -berok will link without error, but may produce a broken library.
13214: no_undefined_flag_CXX=' ${wl}-bernotok'
13215: allow_undefined_flag_CXX=' ${wl}-berok'
13216: if test "$with_gnu_ld" = yes; then
13217: # We only use this code for GNU lds that support --whole-archive.
13218: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13219: else
13220: # Exported symbols can be pulled into shared objects from archives
13221: whole_archive_flag_spec_CXX='$convenience'
13222: fi
13223: archive_cmds_need_lc_CXX=yes
13224: # This is similar to how AIX traditionally builds its shared
13225: # libraries.
13226: 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'
13227: fi
13228: fi
13229: ;;
13230:
13231: beos*)
13232: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13233: allow_undefined_flag_CXX=unsupported
13234: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13235: # support --undefined. This deserves some investigation. FIXME
13236: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237: else
13238: ld_shlibs_CXX=no
13239: fi
13240: ;;
13241:
13242: chorus*)
13243: case $cc_basename in
13244: *)
13245: # FIXME: insert proper C++ library support
13246: ld_shlibs_CXX=no
13247: ;;
13248: esac
13249: ;;
13250:
13251: cygwin* | mingw* | pw32* | cegcc*)
13252: case $GXX,$cc_basename in
13253: ,cl* | no,cl*)
13254: # Native MSVC
13255: # hardcode_libdir_flag_spec is actually meaningless, as there is
13256: # no search path for DLLs.
13257: hardcode_libdir_flag_spec_CXX=' '
13258: allow_undefined_flag_CXX=unsupported
13259: always_export_symbols_CXX=yes
13260: file_list_spec_CXX='@'
13261: # Tell ltmain to make .lib files, not .a files.
13262: libext=lib
13263: # Tell ltmain to make .dll files, not .so files.
13264: shrext_cmds=".dll"
13265: # FIXME: Setting linknames here is a bad hack.
13266: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13267: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13268: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13269: else
13270: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13271: fi~
13272: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13273: linknames='
13274: # The linker will not automatically build a static lib if we build a DLL.
13275: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13276: enable_shared_with_static_runtimes_CXX=yes
13277: # Don't use ranlib
13278: old_postinstall_cmds_CXX='chmod 644 $oldlib'
13279: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13280: lt_tool_outputfile="@TOOL_OUTPUT@"~
13281: case $lt_outputfile in
13282: *.exe|*.EXE) ;;
13283: *)
13284: lt_outputfile="$lt_outputfile.exe"
13285: lt_tool_outputfile="$lt_tool_outputfile.exe"
13286: ;;
13287: esac~
13288: func_to_tool_file "$lt_outputfile"~
13289: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13290: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13291: $RM "$lt_outputfile.manifest";
13292: fi'
13293: ;;
13294: *)
13295: # g++
13296: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13297: # as there is no search path for DLLs.
13298: hardcode_libdir_flag_spec_CXX='-L$libdir'
13299: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13300: allow_undefined_flag_CXX=unsupported
13301: always_export_symbols_CXX=no
13302: enable_shared_with_static_runtimes_CXX=yes
13303:
13304: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13305: 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'
13306: # If the export-symbols file already is a .def file (1st line
13307: # is EXPORTS), use it as is; otherwise, prepend...
13308: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13309: cp $export_symbols $output_objdir/$soname.def;
13310: else
13311: echo EXPORTS > $output_objdir/$soname.def;
13312: cat $export_symbols >> $output_objdir/$soname.def;
13313: fi~
13314: $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'
13315: else
13316: ld_shlibs_CXX=no
13317: fi
13318: ;;
13319: esac
13320: ;;
13321: darwin* | rhapsody*)
13322:
13323:
13324: archive_cmds_need_lc_CXX=no
13325: hardcode_direct_CXX=no
13326: hardcode_automatic_CXX=yes
13327: hardcode_shlibpath_var_CXX=unsupported
13328: if test "$lt_cv_ld_force_load" = "yes"; then
13329: 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\"`'
13330:
13331: else
13332: whole_archive_flag_spec_CXX=''
13333: fi
13334: link_all_deplibs_CXX=yes
13335: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13336: case $cc_basename in
13337: ifort*) _lt_dar_can_shared=yes ;;
13338: *) _lt_dar_can_shared=$GCC ;;
13339: esac
13340: if test "$_lt_dar_can_shared" = "yes"; then
13341: output_verbose_link_cmd=func_echo_all
13342: 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}"
13343: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13344: 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}"
13345: 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}"
13346: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13347: 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}"
13348: 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}"
13349: fi
13350:
13351: else
13352: ld_shlibs_CXX=no
13353: fi
13354:
13355: ;;
13356:
13357: dgux*)
13358: case $cc_basename in
13359: ec++*)
13360: # FIXME: insert proper C++ library support
13361: ld_shlibs_CXX=no
13362: ;;
13363: ghcx*)
13364: # Green Hills C++ Compiler
13365: # FIXME: insert proper C++ library support
13366: ld_shlibs_CXX=no
13367: ;;
13368: *)
13369: # FIXME: insert proper C++ library support
13370: ld_shlibs_CXX=no
13371: ;;
13372: esac
13373: ;;
13374:
13375: freebsd2.*)
13376: # C++ shared libraries reported to be fairly broken before
13377: # switch to ELF
13378: ld_shlibs_CXX=no
13379: ;;
13380:
13381: freebsd-elf*)
13382: archive_cmds_need_lc_CXX=no
13383: ;;
13384:
13385: freebsd* | dragonfly*)
13386: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13387: # conventions
13388: ld_shlibs_CXX=yes
13389: ;;
13390:
13391: gnu*)
13392: ;;
13393:
13394: haiku*)
13395: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396: link_all_deplibs_CXX=yes
13397: ;;
13398:
13399: hpux9*)
13400: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13401: hardcode_libdir_separator_CXX=:
13402: export_dynamic_flag_spec_CXX='${wl}-E'
13403: hardcode_direct_CXX=yes
13404: hardcode_minus_L_CXX=yes # Not in the search PATH,
13405: # but as the default
13406: # location of the library.
13407:
13408: case $cc_basename in
13409: CC*)
13410: # FIXME: insert proper C++ library support
13411: ld_shlibs_CXX=no
13412: ;;
13413: aCC*)
13414: 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'
13415: # Commands to make compiler produce verbose output that lists
13416: # what "hidden" libraries, object files and flags are used when
13417: # linking a shared library.
13418: #
13419: # There doesn't appear to be a way to prevent this compiler from
13420: # explicitly linking system object files so we need to strip them
13421: # from the output so that they don't get included in the library
13422: # dependencies.
13423: 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"'
13424: ;;
13425: *)
13426: if test "$GXX" = yes; then
13427: 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'
13428: else
13429: # FIXME: insert proper C++ library support
13430: ld_shlibs_CXX=no
13431: fi
13432: ;;
13433: esac
13434: ;;
13435:
13436: hpux10*|hpux11*)
13437: if test $with_gnu_ld = no; then
13438: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13439: hardcode_libdir_separator_CXX=:
13440:
13441: case $host_cpu in
13442: hppa*64*|ia64*)
13443: ;;
13444: *)
13445: export_dynamic_flag_spec_CXX='${wl}-E'
13446: ;;
13447: esac
13448: fi
13449: case $host_cpu in
13450: hppa*64*|ia64*)
13451: hardcode_direct_CXX=no
13452: hardcode_shlibpath_var_CXX=no
13453: ;;
13454: *)
13455: hardcode_direct_CXX=yes
13456: hardcode_direct_absolute_CXX=yes
13457: hardcode_minus_L_CXX=yes # Not in the search PATH,
13458: # but as the default
13459: # location of the library.
13460: ;;
13461: esac
13462:
13463: case $cc_basename in
13464: CC*)
13465: # FIXME: insert proper C++ library support
13466: ld_shlibs_CXX=no
13467: ;;
13468: aCC*)
13469: case $host_cpu in
13470: hppa*64*)
13471: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472: ;;
13473: ia64*)
13474: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13475: ;;
13476: *)
13477: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478: ;;
13479: esac
13480: # Commands to make compiler produce verbose output that lists
13481: # what "hidden" libraries, object files and flags are used when
13482: # linking a shared library.
13483: #
13484: # There doesn't appear to be a way to prevent this compiler from
13485: # explicitly linking system object files so we need to strip them
13486: # from the output so that they don't get included in the library
13487: # dependencies.
13488: 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"'
13489: ;;
13490: *)
13491: if test "$GXX" = yes; then
13492: if test $with_gnu_ld = no; then
13493: case $host_cpu in
13494: hppa*64*)
13495: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13496: ;;
13497: ia64*)
13498: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13499: ;;
13500: *)
13501: 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'
13502: ;;
13503: esac
13504: fi
13505: else
13506: # FIXME: insert proper C++ library support
13507: ld_shlibs_CXX=no
13508: fi
13509: ;;
13510: esac
13511: ;;
13512:
13513: interix[3-9]*)
13514: hardcode_direct_CXX=no
13515: hardcode_shlibpath_var_CXX=no
13516: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13517: export_dynamic_flag_spec_CXX='${wl}-E'
13518: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13519: # Instead, shared libraries are loaded at an image base (0x10000000 by
13520: # default) and relocated if they conflict, which is a slow very memory
13521: # consuming and fragmenting process. To avoid this, we pick a random,
13522: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13523: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13524: 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'
13525: 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'
13526: ;;
13527: irix5* | irix6*)
13528: case $cc_basename in
13529: CC*)
13530: # SGI C++
13531: 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'
13532:
13533: # Archives containing C++ object files must be created using
13534: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13535: # necessary to make sure instantiated templates are included
13536: # in the archive.
13537: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13538: ;;
13539: *)
13540: if test "$GXX" = yes; then
13541: if test "$with_gnu_ld" = no; then
13542: 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'
13543: else
13544: 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'
13545: fi
13546: fi
13547: link_all_deplibs_CXX=yes
13548: ;;
13549: esac
13550: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13551: hardcode_libdir_separator_CXX=:
13552: inherit_rpath_CXX=yes
13553: ;;
13554:
13555: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13556: case $cc_basename in
13557: KCC*)
13558: # Kuck and Associates, Inc. (KAI) C++ Compiler
13559:
13560: # KCC will only create a shared library if the output file
13561: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13562: # to its proper name (with version) after linking.
13563: 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'
13564: 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'
13565: # Commands to make compiler produce verbose output that lists
13566: # what "hidden" libraries, object files and flags are used when
13567: # linking a shared library.
13568: #
13569: # There doesn't appear to be a way to prevent this compiler from
13570: # explicitly linking system object files so we need to strip them
13571: # from the output so that they don't get included in the library
13572: # dependencies.
13573: 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"'
13574:
13575: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13576: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577:
13578: # Archives containing C++ object files must be created using
13579: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13580: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13581: ;;
13582: icpc* | ecpc* )
13583: # Intel C++
13584: with_gnu_ld=yes
13585: # version 8.0 and above of icpc choke on multiply defined symbols
13586: # if we add $predep_objects and $postdep_objects, however 7.1 and
13587: # earlier do not add the objects themselves.
13588: case `$CC -V 2>&1` in
13589: *"Version 7."*)
13590: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13591: 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'
13592: ;;
13593: *) # Version 8.0 or newer
13594: tmp_idyn=
13595: case $host_cpu in
13596: ia64*) tmp_idyn=' -i_dynamic';;
13597: esac
13598: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599: 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'
13600: ;;
13601: esac
13602: archive_cmds_need_lc_CXX=no
13603: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13604: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13605: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13606: ;;
13607: pgCC* | pgcpp*)
13608: # Portland Group C++ compiler
13609: case `$CC -V` in
13610: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13611: prelink_cmds_CXX='tpldir=Template.dir~
13612: rm -rf $tpldir~
13613: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13614: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13615: old_archive_cmds_CXX='tpldir=Template.dir~
13616: rm -rf $tpldir~
13617: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13618: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13619: $RANLIB $oldlib'
13620: archive_cmds_CXX='tpldir=Template.dir~
13621: rm -rf $tpldir~
13622: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13623: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13624: archive_expsym_cmds_CXX='tpldir=Template.dir~
13625: rm -rf $tpldir~
13626: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13627: $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'
13628: ;;
13629: *) # Version 6 and above use weak symbols
13630: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13631: 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'
13632: ;;
13633: esac
13634:
13635: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13636: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13637: 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'
13638: ;;
13639: cxx*)
13640: # Compaq C++
13641: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13642: 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'
13643:
13644: runpath_var=LD_RUN_PATH
13645: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13646: hardcode_libdir_separator_CXX=:
13647:
13648: # Commands to make compiler produce verbose output that lists
13649: # what "hidden" libraries, object files and flags are used when
13650: # linking a shared library.
13651: #
13652: # There doesn't appear to be a way to prevent this compiler from
13653: # explicitly linking system object files so we need to strip them
13654: # from the output so that they don't get included in the library
13655: # dependencies.
13656: 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'
13657: ;;
13658: xl* | mpixl* | bgxl*)
13659: # IBM XL 8.0 on PPC, with GNU ld
13660: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13661: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13662: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663: if test "x$supports_anon_versioning" = xyes; then
13664: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13665: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13666: echo "local: *; };" >> $output_objdir/$libname.ver~
13667: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13668: fi
13669: ;;
13670: *)
13671: case `$CC -V 2>&1 | sed 5q` in
13672: *Sun\ C*)
13673: # Sun C++ 5.9
13674: no_undefined_flag_CXX=' -zdefs'
13675: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13676: 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'
13677: hardcode_libdir_flag_spec_CXX='-R$libdir'
13678: 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'
13679: compiler_needs_object_CXX=yes
13680:
13681: # Not sure whether something based on
13682: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13683: # would be better.
13684: output_verbose_link_cmd='func_echo_all'
13685:
13686: # Archives containing C++ object files must be created using
13687: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13688: # necessary to make sure instantiated templates are included
13689: # in the archive.
13690: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13691: ;;
13692: esac
13693: ;;
13694: esac
13695: ;;
13696:
13697: lynxos*)
13698: # FIXME: insert proper C++ library support
13699: ld_shlibs_CXX=no
13700: ;;
13701:
13702: m88k*)
13703: # FIXME: insert proper C++ library support
13704: ld_shlibs_CXX=no
13705: ;;
13706:
13707: mvs*)
13708: case $cc_basename in
13709: cxx*)
13710: # FIXME: insert proper C++ library support
13711: ld_shlibs_CXX=no
13712: ;;
13713: *)
13714: # FIXME: insert proper C++ library support
13715: ld_shlibs_CXX=no
13716: ;;
13717: esac
13718: ;;
13719:
13720: netbsd*)
13721: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13722: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13723: wlarc=
13724: hardcode_libdir_flag_spec_CXX='-R$libdir'
13725: hardcode_direct_CXX=yes
13726: hardcode_shlibpath_var_CXX=no
13727: fi
13728: # Workaround some broken pre-1.5 toolchains
13729: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13730: ;;
13731:
13732: *nto* | *qnx*)
13733: ld_shlibs_CXX=yes
13734: ;;
13735:
13736: openbsd2*)
13737: # C++ shared libraries are fairly broken
13738: ld_shlibs_CXX=no
13739: ;;
13740:
13741: openbsd*)
13742: if test -f /usr/libexec/ld.so; then
13743: hardcode_direct_CXX=yes
13744: hardcode_shlibpath_var_CXX=no
13745: hardcode_direct_absolute_CXX=yes
13746: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13747: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13749: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13750: export_dynamic_flag_spec_CXX='${wl}-E'
13751: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13752: fi
13753: output_verbose_link_cmd=func_echo_all
13754: else
13755: ld_shlibs_CXX=no
13756: fi
13757: ;;
13758:
13759: osf3* | osf4* | osf5*)
13760: case $cc_basename in
13761: KCC*)
13762: # Kuck and Associates, Inc. (KAI) C++ Compiler
13763:
13764: # KCC will only create a shared library if the output file
13765: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13766: # to its proper name (with version) after linking.
13767: 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'
13768:
13769: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13770: hardcode_libdir_separator_CXX=:
13771:
13772: # Archives containing C++ object files must be created using
13773: # the KAI C++ compiler.
13774: case $host in
13775: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13776: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13777: esac
13778: ;;
13779: RCC*)
13780: # Rational C++ 2.4.1
13781: # FIXME: insert proper C++ library support
13782: ld_shlibs_CXX=no
13783: ;;
13784: cxx*)
13785: case $host in
13786: osf3*)
13787: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13788: 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'
13789: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13790: ;;
13791: *)
13792: allow_undefined_flag_CXX=' -expect_unresolved \*'
13793: 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'
13794: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13795: echo "-hidden">> $lib.exp~
13796: $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~
13797: $RM $lib.exp'
13798: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13799: ;;
13800: esac
13801:
13802: hardcode_libdir_separator_CXX=:
13803:
13804: # Commands to make compiler produce verbose output that lists
13805: # what "hidden" libraries, object files and flags are used when
13806: # linking a shared library.
13807: #
13808: # There doesn't appear to be a way to prevent this compiler from
13809: # explicitly linking system object files so we need to strip them
13810: # from the output so that they don't get included in the library
13811: # dependencies.
13812: 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"'
13813: ;;
13814: *)
13815: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13816: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13817: case $host in
13818: osf3*)
13819: 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'
13820: ;;
13821: *)
13822: 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'
13823: ;;
13824: esac
13825:
13826: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13827: hardcode_libdir_separator_CXX=:
13828:
13829: # Commands to make compiler produce verbose output that lists
13830: # what "hidden" libraries, object files and flags are used when
13831: # linking a shared library.
13832: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13833:
13834: else
13835: # FIXME: insert proper C++ library support
13836: ld_shlibs_CXX=no
13837: fi
13838: ;;
13839: esac
13840: ;;
13841:
13842: psos*)
13843: # FIXME: insert proper C++ library support
13844: ld_shlibs_CXX=no
13845: ;;
13846:
13847: sunos4*)
13848: case $cc_basename in
13849: CC*)
13850: # Sun C++ 4.x
13851: # FIXME: insert proper C++ library support
13852: ld_shlibs_CXX=no
13853: ;;
13854: lcc*)
13855: # Lucid
13856: # FIXME: insert proper C++ library support
13857: ld_shlibs_CXX=no
13858: ;;
13859: *)
13860: # FIXME: insert proper C++ library support
13861: ld_shlibs_CXX=no
13862: ;;
13863: esac
13864: ;;
13865:
13866: solaris*)
13867: case $cc_basename in
13868: CC* | sunCC*)
13869: # Sun C++ 4.2, 5.x and Centerline C++
13870: archive_cmds_need_lc_CXX=yes
13871: no_undefined_flag_CXX=' -zdefs'
13872: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13873: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13874: $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'
13875:
13876: hardcode_libdir_flag_spec_CXX='-R$libdir'
13877: hardcode_shlibpath_var_CXX=no
13878: case $host_os in
13879: solaris2.[0-5] | solaris2.[0-5].*) ;;
13880: *)
13881: # The compiler driver will combine and reorder linker options,
13882: # but understands `-z linker_flag'.
13883: # Supported since Solaris 2.6 (maybe 2.5.1?)
13884: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13885: ;;
13886: esac
13887: link_all_deplibs_CXX=yes
13888:
13889: output_verbose_link_cmd='func_echo_all'
13890:
13891: # Archives containing C++ object files must be created using
13892: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13893: # necessary to make sure instantiated templates are included
13894: # in the archive.
13895: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13896: ;;
13897: gcx*)
13898: # Green Hills C++ Compiler
13899: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13900:
13901: # The C++ compiler must be used to create the archive.
13902: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13903: ;;
13904: *)
13905: # GNU C++ compiler with Solaris linker
13906: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13907: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13908: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13909: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13910: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13911: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13912:
13913: # Commands to make compiler produce verbose output that lists
13914: # what "hidden" libraries, object files and flags are used when
13915: # linking a shared library.
13916: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13917: else
13918: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13919: # platform.
13920: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13921: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13922: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13923:
13924: # Commands to make compiler produce verbose output that lists
13925: # what "hidden" libraries, object files and flags are used when
13926: # linking a shared library.
13927: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13928: fi
13929:
13930: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13931: case $host_os in
13932: solaris2.[0-5] | solaris2.[0-5].*) ;;
13933: *)
13934: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13935: ;;
13936: esac
13937: fi
13938: ;;
13939: esac
13940: ;;
13941:
13942: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13943: no_undefined_flag_CXX='${wl}-z,text'
13944: archive_cmds_need_lc_CXX=no
13945: hardcode_shlibpath_var_CXX=no
13946: runpath_var='LD_RUN_PATH'
13947:
13948: case $cc_basename in
13949: CC*)
13950: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952: ;;
13953: *)
13954: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13955: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956: ;;
13957: esac
13958: ;;
13959:
13960: sysv5* | sco3.2v5* | sco5v6*)
13961: # Note: We can NOT use -z defs as we might desire, because we do not
13962: # link with -lc, and that would cause any symbols used from libc to
13963: # always be unresolved, which means just about no library would
13964: # ever link correctly. If we're not using GNU ld we use -z text
13965: # though, which does catch some bad symbols but isn't as heavy-handed
13966: # as -z defs.
13967: no_undefined_flag_CXX='${wl}-z,text'
13968: allow_undefined_flag_CXX='${wl}-z,nodefs'
13969: archive_cmds_need_lc_CXX=no
13970: hardcode_shlibpath_var_CXX=no
13971: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13972: hardcode_libdir_separator_CXX=':'
13973: link_all_deplibs_CXX=yes
13974: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13975: runpath_var='LD_RUN_PATH'
13976:
13977: case $cc_basename in
13978: CC*)
13979: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13980: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13981: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13982: '"$old_archive_cmds_CXX"
13983: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13984: '"$reload_cmds_CXX"
13985: ;;
13986: *)
13987: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13988: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13989: ;;
13990: esac
13991: ;;
13992:
13993: tandem*)
13994: case $cc_basename in
13995: NCC*)
13996: # NonStop-UX NCC 3.20
13997: # FIXME: insert proper C++ library support
13998: ld_shlibs_CXX=no
13999: ;;
14000: *)
14001: # FIXME: insert proper C++ library support
14002: ld_shlibs_CXX=no
14003: ;;
14004: esac
14005: ;;
14006:
14007: vxworks*)
14008: # FIXME: insert proper C++ library support
14009: ld_shlibs_CXX=no
14010: ;;
14011:
14012: *)
14013: # FIXME: insert proper C++ library support
14014: ld_shlibs_CXX=no
14015: ;;
14016: esac
14017:
14018: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14019: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14020: test "$ld_shlibs_CXX" = no && can_build_shared=no
14021:
14022: GCC_CXX="$GXX"
14023: LD_CXX="$LD"
14024:
14025: ## CAVEAT EMPTOR:
14026: ## There is no encapsulation within the following macros, do not change
14027: ## the running order or otherwise move them around unless you know exactly
14028: ## what you are doing...
14029: # Dependencies to place before and after the object being linked:
14030: predep_objects_CXX=
14031: postdep_objects_CXX=
14032: predeps_CXX=
14033: postdeps_CXX=
14034: compiler_lib_search_path_CXX=
14035:
14036: cat > conftest.$ac_ext <<_LT_EOF
14037: class Foo
14038: {
14039: public:
14040: Foo (void) { a = 0; }
14041: private:
14042: int a;
14043: };
14044: _LT_EOF
14045:
14046:
14047: _lt_libdeps_save_CFLAGS=$CFLAGS
14048: case "$CC $CFLAGS " in #(
14049: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14050: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14051: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14052: esac
14053:
14054: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055: (eval $ac_compile) 2>&5
14056: ac_status=$?
14057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058: (exit $ac_status); }; then
14059: # Parse the compiler output and extract the necessary
14060: # objects, libraries and library flags.
14061:
14062: # Sentinel used to keep track of whether or not we are before
14063: # the conftest object file.
14064: pre_test_object_deps_done=no
14065:
14066: for p in `eval "$output_verbose_link_cmd"`; do
14067: case ${prev}${p} in
14068:
14069: -L* | -R* | -l*)
14070: # Some compilers place space between "-{L,R}" and the path.
14071: # Remove the space.
14072: if test $p = "-L" ||
14073: test $p = "-R"; then
14074: prev=$p
14075: continue
14076: fi
14077:
14078: # Expand the sysroot to ease extracting the directories later.
14079: if test -z "$prev"; then
14080: case $p in
14081: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14082: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14083: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14084: esac
14085: fi
14086: case $p in
14087: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14088: esac
14089: if test "$pre_test_object_deps_done" = no; then
14090: case ${prev} in
14091: -L | -R)
14092: # Internal compiler library paths should come after those
14093: # provided the user. The postdeps already come after the
14094: # user supplied libs so there is no need to process them.
14095: if test -z "$compiler_lib_search_path_CXX"; then
14096: compiler_lib_search_path_CXX="${prev}${p}"
14097: else
14098: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14099: fi
14100: ;;
14101: # The "-l" case would never come before the object being
14102: # linked, so don't bother handling this case.
14103: esac
14104: else
14105: if test -z "$postdeps_CXX"; then
14106: postdeps_CXX="${prev}${p}"
14107: else
14108: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14109: fi
14110: fi
14111: prev=
14112: ;;
14113:
14114: *.lto.$objext) ;; # Ignore GCC LTO objects
14115: *.$objext)
14116: # This assumes that the test object file only shows up
14117: # once in the compiler output.
14118: if test "$p" = "conftest.$objext"; then
14119: pre_test_object_deps_done=yes
14120: continue
14121: fi
14122:
14123: if test "$pre_test_object_deps_done" = no; then
14124: if test -z "$predep_objects_CXX"; then
14125: predep_objects_CXX="$p"
14126: else
14127: predep_objects_CXX="$predep_objects_CXX $p"
14128: fi
14129: else
14130: if test -z "$postdep_objects_CXX"; then
14131: postdep_objects_CXX="$p"
14132: else
14133: postdep_objects_CXX="$postdep_objects_CXX $p"
14134: fi
14135: fi
14136: ;;
14137:
14138: *) ;; # Ignore the rest.
14139:
14140: esac
14141: done
14142:
14143: # Clean up.
14144: rm -f a.out a.exe
14145: else
14146: echo "libtool.m4: error: problem compiling CXX test program"
14147: fi
14148:
14149: $RM -f confest.$objext
14150: CFLAGS=$_lt_libdeps_save_CFLAGS
14151:
14152: # PORTME: override above test on systems where it is broken
14153: case $host_os in
14154: interix[3-9]*)
14155: # Interix 3.5 installs completely hosed .la files for C++, so rather than
14156: # hack all around it, let's just trust "g++" to DTRT.
14157: predep_objects_CXX=
14158: postdep_objects_CXX=
14159: postdeps_CXX=
14160: ;;
14161:
14162: linux*)
14163: case `$CC -V 2>&1 | sed 5q` in
14164: *Sun\ C*)
14165: # Sun C++ 5.9
14166:
14167: # The more standards-conforming stlport4 library is
14168: # incompatible with the Cstd library. Avoid specifying
14169: # it if it's in CXXFLAGS. Ignore libCrun as
14170: # -library=stlport4 depends on it.
14171: case " $CXX $CXXFLAGS " in
14172: *" -library=stlport4 "*)
14173: solaris_use_stlport4=yes
14174: ;;
14175: esac
14176:
14177: if test "$solaris_use_stlport4" != yes; then
14178: postdeps_CXX='-library=Cstd -library=Crun'
14179: fi
14180: ;;
14181: esac
14182: ;;
14183:
14184: solaris*)
14185: case $cc_basename in
14186: CC* | sunCC*)
14187: # The more standards-conforming stlport4 library is
14188: # incompatible with the Cstd library. Avoid specifying
14189: # it if it's in CXXFLAGS. Ignore libCrun as
14190: # -library=stlport4 depends on it.
14191: case " $CXX $CXXFLAGS " in
14192: *" -library=stlport4 "*)
14193: solaris_use_stlport4=yes
14194: ;;
14195: esac
14196:
14197: # Adding this requires a known-good setup of shared libraries for
14198: # Sun compiler versions before 5.6, else PIC objects from an old
14199: # archive will be linked into the output, leading to subtle bugs.
14200: if test "$solaris_use_stlport4" != yes; then
14201: postdeps_CXX='-library=Cstd -library=Crun'
14202: fi
14203: ;;
14204: esac
14205: ;;
14206: esac
14207:
14208:
14209: case " $postdeps_CXX " in
14210: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14211: esac
14212: compiler_lib_search_dirs_CXX=
14213: if test -n "${compiler_lib_search_path_CXX}"; then
14214: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14215: fi
14216:
14217:
14218:
14219:
14220:
14221:
14222:
14223:
14224:
14225:
14226:
14227:
14228:
14229:
14230:
14231:
14232:
14233:
14234:
14235:
14236:
14237:
14238:
14239:
14240:
14241:
14242:
14243:
14244:
14245:
14246:
14247: lt_prog_compiler_wl_CXX=
14248: lt_prog_compiler_pic_CXX=
14249: lt_prog_compiler_static_CXX=
14250:
14251:
14252: # C++ specific cases for pic, static, wl, etc.
14253: if test "$GXX" = yes; then
14254: lt_prog_compiler_wl_CXX='-Wl,'
14255: lt_prog_compiler_static_CXX='-static'
14256:
14257: case $host_os in
14258: aix*)
14259: # All AIX code is PIC.
14260: if test "$host_cpu" = ia64; then
14261: # AIX 5 now supports IA64 processor
14262: lt_prog_compiler_static_CXX='-Bstatic'
14263: fi
14264: ;;
14265:
14266: amigaos*)
14267: case $host_cpu in
14268: powerpc)
14269: # see comment about AmigaOS4 .so support
14270: lt_prog_compiler_pic_CXX='-fPIC'
14271: ;;
14272: m68k)
14273: # FIXME: we need at least 68020 code to build shared libraries, but
14274: # adding the `-m68020' flag to GCC prevents building anything better,
14275: # like `-m68040'.
14276: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14277: ;;
14278: esac
14279: ;;
14280:
14281: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14282: # PIC is the default for these OSes.
14283: ;;
14284: mingw* | cygwin* | os2* | pw32* | cegcc*)
14285: # This hack is so that the source file can tell whether it is being
14286: # built for inclusion in a dll (and should export symbols for example).
14287: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14288: # (--disable-auto-import) libraries
14289: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14290: ;;
14291: darwin* | rhapsody*)
14292: # PIC is the default on this platform
14293: # Common symbols not allowed in MH_DYLIB files
14294: lt_prog_compiler_pic_CXX='-fno-common'
14295: ;;
14296: *djgpp*)
14297: # DJGPP does not support shared libraries at all
14298: lt_prog_compiler_pic_CXX=
14299: ;;
14300: haiku*)
14301: # PIC is the default for Haiku.
14302: # The "-static" flag exists, but is broken.
14303: lt_prog_compiler_static_CXX=
14304: ;;
14305: interix[3-9]*)
14306: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14307: # Instead, we relocate shared libraries at runtime.
14308: ;;
14309: sysv4*MP*)
14310: if test -d /usr/nec; then
14311: lt_prog_compiler_pic_CXX=-Kconform_pic
14312: fi
14313: ;;
14314: hpux*)
14315: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14316: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14317: # sets the default TLS model and affects inlining.
14318: case $host_cpu in
14319: hppa*64*)
14320: ;;
14321: *)
14322: lt_prog_compiler_pic_CXX='-fPIC'
14323: ;;
14324: esac
14325: ;;
14326: *qnx* | *nto*)
14327: # QNX uses GNU C++, but need to define -shared option too, otherwise
14328: # it will coredump.
14329: lt_prog_compiler_pic_CXX='-fPIC -shared'
14330: ;;
14331: *)
14332: lt_prog_compiler_pic_CXX='-fPIC'
14333: ;;
14334: esac
14335: else
14336: case $host_os in
14337: aix[4-9]*)
14338: # All AIX code is PIC.
14339: if test "$host_cpu" = ia64; then
14340: # AIX 5 now supports IA64 processor
14341: lt_prog_compiler_static_CXX='-Bstatic'
14342: else
14343: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14344: fi
14345: ;;
14346: chorus*)
14347: case $cc_basename in
14348: cxch68*)
14349: # Green Hills C++ Compiler
14350: # _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"
14351: ;;
14352: esac
14353: ;;
14354: mingw* | cygwin* | os2* | pw32* | cegcc*)
14355: # This hack is so that the source file can tell whether it is being
14356: # built for inclusion in a dll (and should export symbols for example).
14357: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14358: ;;
14359: dgux*)
14360: case $cc_basename in
14361: ec++*)
14362: lt_prog_compiler_pic_CXX='-KPIC'
14363: ;;
14364: ghcx*)
14365: # Green Hills C++ Compiler
14366: lt_prog_compiler_pic_CXX='-pic'
14367: ;;
14368: *)
14369: ;;
14370: esac
14371: ;;
14372: freebsd* | dragonfly*)
14373: # FreeBSD uses GNU C++
14374: ;;
14375: hpux9* | hpux10* | hpux11*)
14376: case $cc_basename in
14377: CC*)
14378: lt_prog_compiler_wl_CXX='-Wl,'
14379: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14380: if test "$host_cpu" != ia64; then
14381: lt_prog_compiler_pic_CXX='+Z'
14382: fi
14383: ;;
14384: aCC*)
14385: lt_prog_compiler_wl_CXX='-Wl,'
14386: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14387: case $host_cpu in
14388: hppa*64*|ia64*)
14389: # +Z the default
14390: ;;
14391: *)
14392: lt_prog_compiler_pic_CXX='+Z'
14393: ;;
14394: esac
14395: ;;
14396: *)
14397: ;;
14398: esac
14399: ;;
14400: interix*)
14401: # This is c89, which is MS Visual C++ (no shared libs)
14402: # Anyone wants to do a port?
14403: ;;
14404: irix5* | irix6* | nonstopux*)
14405: case $cc_basename in
14406: CC*)
14407: lt_prog_compiler_wl_CXX='-Wl,'
14408: lt_prog_compiler_static_CXX='-non_shared'
14409: # CC pic flag -KPIC is the default.
14410: ;;
14411: *)
14412: ;;
14413: esac
14414: ;;
14415: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14416: case $cc_basename in
14417: KCC*)
14418: # KAI C++ Compiler
14419: lt_prog_compiler_wl_CXX='--backend -Wl,'
14420: lt_prog_compiler_pic_CXX='-fPIC'
14421: ;;
14422: ecpc* )
14423: # old Intel C++ for x86_64 which still supported -KPIC.
14424: lt_prog_compiler_wl_CXX='-Wl,'
14425: lt_prog_compiler_pic_CXX='-KPIC'
14426: lt_prog_compiler_static_CXX='-static'
14427: ;;
14428: icpc* )
14429: # Intel C++, used to be incompatible with GCC.
14430: # ICC 10 doesn't accept -KPIC any more.
14431: lt_prog_compiler_wl_CXX='-Wl,'
14432: lt_prog_compiler_pic_CXX='-fPIC'
14433: lt_prog_compiler_static_CXX='-static'
14434: ;;
14435: pgCC* | pgcpp*)
14436: # Portland Group C++ compiler
14437: lt_prog_compiler_wl_CXX='-Wl,'
14438: lt_prog_compiler_pic_CXX='-fpic'
14439: lt_prog_compiler_static_CXX='-Bstatic'
14440: ;;
14441: cxx*)
14442: # Compaq C++
14443: # Make sure the PIC flag is empty. It appears that all Alpha
14444: # Linux and Compaq Tru64 Unix objects are PIC.
14445: lt_prog_compiler_pic_CXX=
14446: lt_prog_compiler_static_CXX='-non_shared'
14447: ;;
14448: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14449: # IBM XL 8.0, 9.0 on PPC and BlueGene
14450: lt_prog_compiler_wl_CXX='-Wl,'
14451: lt_prog_compiler_pic_CXX='-qpic'
14452: lt_prog_compiler_static_CXX='-qstaticlink'
14453: ;;
14454: *)
14455: case `$CC -V 2>&1 | sed 5q` in
14456: *Sun\ C*)
14457: # Sun C++ 5.9
14458: lt_prog_compiler_pic_CXX='-KPIC'
14459: lt_prog_compiler_static_CXX='-Bstatic'
14460: lt_prog_compiler_wl_CXX='-Qoption ld '
14461: ;;
14462: esac
14463: ;;
14464: esac
14465: ;;
14466: lynxos*)
14467: ;;
14468: m88k*)
14469: ;;
14470: mvs*)
14471: case $cc_basename in
14472: cxx*)
14473: lt_prog_compiler_pic_CXX='-W c,exportall'
14474: ;;
14475: *)
14476: ;;
14477: esac
14478: ;;
14479: netbsd*)
14480: ;;
14481: *qnx* | *nto*)
14482: # QNX uses GNU C++, but need to define -shared option too, otherwise
14483: # it will coredump.
14484: lt_prog_compiler_pic_CXX='-fPIC -shared'
14485: ;;
14486: osf3* | osf4* | osf5*)
14487: case $cc_basename in
14488: KCC*)
14489: lt_prog_compiler_wl_CXX='--backend -Wl,'
14490: ;;
14491: RCC*)
14492: # Rational C++ 2.4.1
14493: lt_prog_compiler_pic_CXX='-pic'
14494: ;;
14495: cxx*)
14496: # Digital/Compaq C++
14497: lt_prog_compiler_wl_CXX='-Wl,'
14498: # Make sure the PIC flag is empty. It appears that all Alpha
14499: # Linux and Compaq Tru64 Unix objects are PIC.
14500: lt_prog_compiler_pic_CXX=
14501: lt_prog_compiler_static_CXX='-non_shared'
14502: ;;
14503: *)
14504: ;;
14505: esac
14506: ;;
14507: psos*)
14508: ;;
14509: solaris*)
14510: case $cc_basename in
14511: CC* | sunCC*)
14512: # Sun C++ 4.2, 5.x and Centerline C++
14513: lt_prog_compiler_pic_CXX='-KPIC'
14514: lt_prog_compiler_static_CXX='-Bstatic'
14515: lt_prog_compiler_wl_CXX='-Qoption ld '
14516: ;;
14517: gcx*)
14518: # Green Hills C++ Compiler
14519: lt_prog_compiler_pic_CXX='-PIC'
14520: ;;
14521: *)
14522: ;;
14523: esac
14524: ;;
14525: sunos4*)
14526: case $cc_basename in
14527: CC*)
14528: # Sun C++ 4.x
14529: lt_prog_compiler_pic_CXX='-pic'
14530: lt_prog_compiler_static_CXX='-Bstatic'
14531: ;;
14532: lcc*)
14533: # Lucid
14534: lt_prog_compiler_pic_CXX='-pic'
14535: ;;
14536: *)
14537: ;;
14538: esac
14539: ;;
14540: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14541: case $cc_basename in
14542: CC*)
14543: lt_prog_compiler_wl_CXX='-Wl,'
14544: lt_prog_compiler_pic_CXX='-KPIC'
14545: lt_prog_compiler_static_CXX='-Bstatic'
14546: ;;
14547: esac
14548: ;;
14549: tandem*)
14550: case $cc_basename in
14551: NCC*)
14552: # NonStop-UX NCC 3.20
14553: lt_prog_compiler_pic_CXX='-KPIC'
14554: ;;
14555: *)
14556: ;;
14557: esac
14558: ;;
14559: vxworks*)
14560: ;;
14561: *)
14562: lt_prog_compiler_can_build_shared_CXX=no
14563: ;;
14564: esac
14565: fi
14566:
14567: case $host_os in
14568: # For platforms which do not support PIC, -DPIC is meaningless:
14569: *djgpp*)
14570: lt_prog_compiler_pic_CXX=
14571: ;;
14572: *)
14573: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14574: ;;
14575: esac
14576:
14577: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14578: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14579: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then
14580: echo $ECHO_N "(cached) $ECHO_C" >&6
14581: else
14582: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14583: fi
14584: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_CXX" >&5
14585: echo "${ECHO_T}$lt_cv_prog_compiler_pic_CXX" >&6
14586: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14587:
14588: #
14589: # Check to make sure the PIC flag actually works.
14590: #
14591: if test -n "$lt_prog_compiler_pic_CXX"; then
14592: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14593: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14594: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14595: echo $ECHO_N "(cached) $ECHO_C" >&6
14596: else
14597: lt_cv_prog_compiler_pic_works_CXX=no
14598: ac_outfile=conftest.$ac_objext
14599: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14600: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14601: # Insert the option either (1) after the last *FLAGS variable, or
14602: # (2) before a word containing "conftest.", or (3) at the end.
14603: # Note that $ac_compile itself does not contain backslashes and begins
14604: # with a dollar sign (not a hyphen), so the echo should work correctly.
14605: # The option is referenced via a variable to avoid confusing sed.
14606: lt_compile=`echo "$ac_compile" | $SED \
14607: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14608: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14609: -e 's:$: $lt_compiler_flag:'`
14610: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14611: (eval "$lt_compile" 2>conftest.err)
14612: ac_status=$?
14613: cat conftest.err >&5
14614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615: if (exit $ac_status) && test -s "$ac_outfile"; then
14616: # The compiler can only warn and ignore the option if not recognized
14617: # So say no if there are warnings other than the usual output.
14618: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14619: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14620: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14621: lt_cv_prog_compiler_pic_works_CXX=yes
14622: fi
14623: fi
14624: $RM conftest*
14625:
14626: fi
14627: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14628: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
14629:
14630: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14631: case $lt_prog_compiler_pic_CXX in
14632: "" | " "*) ;;
14633: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14634: esac
14635: else
14636: lt_prog_compiler_pic_CXX=
14637: lt_prog_compiler_can_build_shared_CXX=no
14638: fi
14639:
14640: fi
14641:
14642:
14643:
14644:
14645:
14646: #
14647: # Check to make sure the static flag actually works.
14648: #
14649: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14650: echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14651: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14652: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14653: echo $ECHO_N "(cached) $ECHO_C" >&6
14654: else
14655: lt_cv_prog_compiler_static_works_CXX=no
14656: save_LDFLAGS="$LDFLAGS"
14657: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14658: echo "$lt_simple_link_test_code" > conftest.$ac_ext
14659: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14660: # The linker can only warn and ignore the option if not recognized
14661: # So say no if there are warnings
14662: if test -s conftest.err; then
14663: # Append any errors to the config.log.
14664: cat conftest.err 1>&5
14665: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14666: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14667: if diff conftest.exp conftest.er2 >/dev/null; then
14668: lt_cv_prog_compiler_static_works_CXX=yes
14669: fi
14670: else
14671: lt_cv_prog_compiler_static_works_CXX=yes
14672: fi
14673: fi
14674: $RM -r conftest*
14675: LDFLAGS="$save_LDFLAGS"
14676:
14677: fi
14678: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14679: echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14680:
14681: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14682: :
14683: else
14684: lt_prog_compiler_static_CXX=
14685: fi
14686:
14687:
14688:
14689:
14690: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14691: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14692: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14693: echo $ECHO_N "(cached) $ECHO_C" >&6
14694: else
14695: lt_cv_prog_compiler_c_o_CXX=no
14696: $RM -r conftest 2>/dev/null
14697: mkdir conftest
14698: cd conftest
14699: mkdir out
14700: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14701:
14702: lt_compiler_flag="-o out/conftest2.$ac_objext"
14703: # Insert the option either (1) after the last *FLAGS variable, or
14704: # (2) before a word containing "conftest.", or (3) at the end.
14705: # Note that $ac_compile itself does not contain backslashes and begins
14706: # with a dollar sign (not a hyphen), so the echo should work correctly.
14707: lt_compile=`echo "$ac_compile" | $SED \
14708: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14709: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14710: -e 's:$: $lt_compiler_flag:'`
14711: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14712: (eval "$lt_compile" 2>out/conftest.err)
14713: ac_status=$?
14714: cat out/conftest.err >&5
14715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14717: then
14718: # The compiler can only warn and ignore the option if not recognized
14719: # So say no if there are warnings
14720: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14721: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14722: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14723: lt_cv_prog_compiler_c_o_CXX=yes
14724: fi
14725: fi
14726: chmod u+w . 2>&5
14727: $RM conftest*
14728: # SGI C++ compiler will create directory out/ii_files/ for
14729: # template instantiation
14730: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14731: $RM out/* && rmdir out
14732: cd ..
14733: $RM -r conftest
14734: $RM conftest*
14735:
14736: fi
14737: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14738: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14739:
14740:
14741:
14742: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14743: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14744: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14745: echo $ECHO_N "(cached) $ECHO_C" >&6
14746: else
14747: lt_cv_prog_compiler_c_o_CXX=no
14748: $RM -r conftest 2>/dev/null
14749: mkdir conftest
14750: cd conftest
14751: mkdir out
14752: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14753:
14754: lt_compiler_flag="-o out/conftest2.$ac_objext"
14755: # Insert the option either (1) after the last *FLAGS variable, or
14756: # (2) before a word containing "conftest.", or (3) at the end.
14757: # Note that $ac_compile itself does not contain backslashes and begins
14758: # with a dollar sign (not a hyphen), so the echo should work correctly.
14759: lt_compile=`echo "$ac_compile" | $SED \
14760: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762: -e 's:$: $lt_compiler_flag:'`
14763: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14764: (eval "$lt_compile" 2>out/conftest.err)
14765: ac_status=$?
14766: cat out/conftest.err >&5
14767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14769: then
14770: # The compiler can only warn and ignore the option if not recognized
14771: # So say no if there are warnings
14772: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14773: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14774: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14775: lt_cv_prog_compiler_c_o_CXX=yes
14776: fi
14777: fi
14778: chmod u+w . 2>&5
14779: $RM conftest*
14780: # SGI C++ compiler will create directory out/ii_files/ for
14781: # template instantiation
14782: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14783: $RM out/* && rmdir out
14784: cd ..
14785: $RM -r conftest
14786: $RM conftest*
14787:
14788: fi
14789: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14790: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14791:
14792:
14793:
14794:
14795: hard_links="nottested"
14796: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14797: # do not overwrite the value of need_locks provided by the user
14798: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14799: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14800: hard_links=yes
14801: $RM conftest*
14802: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14803: touch conftest.a
14804: ln conftest.a conftest.b 2>&5 || hard_links=no
14805: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14806: echo "$as_me:$LINENO: result: $hard_links" >&5
14807: echo "${ECHO_T}$hard_links" >&6
14808: if test "$hard_links" = no; then
14809: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14810: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14811: need_locks=warn
14812: fi
14813: else
14814: need_locks=no
14815: fi
14816:
14817:
14818:
14819: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14820: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14821:
14822: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14823: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14824: case $host_os in
14825: aix[4-9]*)
14826: # If we're using GNU nm, then we don't want the "-C" option.
14827: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14828: # Also, AIX nm treats weak defined symbols like other global defined
14829: # symbols, whereas GNU nm marks them as "W".
14830: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14831: 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'
14832: else
14833: 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'
14834: fi
14835: ;;
14836: pw32*)
14837: export_symbols_cmds_CXX="$ltdll_cmds"
14838: ;;
14839: cygwin* | mingw* | cegcc*)
14840: case $cc_basename in
14841: cl*)
14842: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14843: ;;
14844: *)
14845: 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'
14846: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14847: ;;
14848: esac
14849: ;;
14850: *)
14851: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14852: ;;
14853: esac
14854:
14855: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14856: echo "${ECHO_T}$ld_shlibs_CXX" >&6
14857: test "$ld_shlibs_CXX" = no && can_build_shared=no
14858:
14859: with_gnu_ld_CXX=$with_gnu_ld
14860:
14861:
14862:
14863:
14864:
14865:
14866: #
14867: # Do we need to explicitly link libc?
14868: #
14869: case "x$archive_cmds_need_lc_CXX" in
14870: x|xyes)
14871: # Assume -lc should be added
14872: archive_cmds_need_lc_CXX=yes
14873:
14874: if test "$enable_shared" = yes && test "$GCC" = yes; then
14875: case $archive_cmds_CXX in
14876: *'~'*)
14877: # FIXME: we may have to deal with multi-command sequences.
14878: ;;
14879: '$CC '*)
14880: # Test whether the compiler implicitly links with -lc since on some
14881: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14882: # to ld, don't add -lc before -lgcc.
14883: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14884: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14885: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14886: echo $ECHO_N "(cached) $ECHO_C" >&6
14887: else
14888: $RM conftest*
14889: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890:
14891: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892: (eval $ac_compile) 2>&5
14893: ac_status=$?
14894: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895: (exit $ac_status); } 2>conftest.err; then
14896: soname=conftest
14897: lib=conftest
14898: libobjs=conftest.$ac_objext
14899: deplibs=
14900: wl=$lt_prog_compiler_wl_CXX
14901: pic_flag=$lt_prog_compiler_pic_CXX
14902: compiler_flags=-v
14903: linker_flags=-v
14904: verstring=
14905: output_objdir=.
14906: libname=conftest
14907: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14908: allow_undefined_flag_CXX=
14909: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14910: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14911: ac_status=$?
14912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913: (exit $ac_status); }
14914: then
14915: lt_cv_archive_cmds_need_lc_CXX=no
14916: else
14917: lt_cv_archive_cmds_need_lc_CXX=yes
14918: fi
14919: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14920: else
14921: cat conftest.err 1>&5
14922: fi
14923: $RM conftest*
14924:
14925: fi
14926: echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14927: echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14928: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14929: ;;
14930: esac
14931: fi
14932: ;;
14933: esac
14934:
14935:
14936:
14937:
14938:
14939:
14940:
14941:
14942:
14943:
14944:
14945:
14946:
14947:
14948:
14949:
14950:
14951:
14952:
14953:
14954:
14955:
14956:
14957:
14958:
14959:
14960:
14961:
14962:
14963:
14964:
14965:
14966:
14967:
14968:
14969:
14970:
14971:
14972:
14973:
14974:
14975:
14976:
14977:
14978:
14979:
14980:
14981:
14982:
14983:
14984:
14985:
14986:
14987:
14988:
14989:
14990:
14991:
14992:
14993:
14994:
14995:
14996: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14997: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14998:
14999: library_names_spec=
15000: libname_spec='lib$name'
15001: soname_spec=
15002: shrext_cmds=".so"
15003: postinstall_cmds=
15004: postuninstall_cmds=
15005: finish_cmds=
15006: finish_eval=
15007: shlibpath_var=
15008: shlibpath_overrides_runpath=unknown
15009: version_type=none
15010: dynamic_linker="$host_os ld.so"
15011: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15012: need_lib_prefix=unknown
15013: hardcode_into_libs=no
15014:
15015: # when you set need_version to no, make sure it does not cause -set_version
15016: # flags to be left without arguments
15017: need_version=unknown
15018:
15019: case $host_os in
15020: aix3*)
15021: version_type=linux # correct to gnu/linux during the next big refactor
15022: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15023: shlibpath_var=LIBPATH
15024:
15025: # AIX 3 has no versioning support, so we append a major version to the name.
15026: soname_spec='${libname}${release}${shared_ext}$major'
15027: ;;
15028:
15029: aix[4-9]*)
15030: version_type=linux # correct to gnu/linux during the next big refactor
15031: need_lib_prefix=no
15032: need_version=no
15033: hardcode_into_libs=yes
15034: if test "$host_cpu" = ia64; then
15035: # AIX 5 supports IA64
15036: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15037: shlibpath_var=LD_LIBRARY_PATH
15038: else
15039: # With GCC up to 2.95.x, collect2 would create an import file
15040: # for dependence libraries. The import file would start with
15041: # the line `#! .'. This would cause the generated library to
15042: # depend on `.', always an invalid library. This was fixed in
15043: # development snapshots of GCC prior to 3.0.
15044: case $host_os in
15045: aix4 | aix4.[01] | aix4.[01].*)
15046: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15047: echo ' yes '
15048: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15049: :
15050: else
15051: can_build_shared=no
15052: fi
15053: ;;
15054: esac
15055: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15056: # soname into executable. Probably we can add versioning support to
15057: # collect2, so additional links can be useful in future.
15058: if test "$aix_use_runtimelinking" = yes; then
15059: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15060: # instead of lib<name>.a to let people know that these are not
15061: # typical AIX shared libraries.
15062: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063: else
15064: # We preserve .a as extension for shared libraries through AIX4.2
15065: # and later when we are not doing run time linking.
15066: library_names_spec='${libname}${release}.a $libname.a'
15067: soname_spec='${libname}${release}${shared_ext}$major'
15068: fi
15069: shlibpath_var=LIBPATH
15070: fi
15071: ;;
15072:
15073: amigaos*)
15074: case $host_cpu in
15075: powerpc)
15076: # Since July 2007 AmigaOS4 officially supports .so libraries.
15077: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15078: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15079: ;;
15080: m68k)
15081: library_names_spec='$libname.ixlibrary $libname.a'
15082: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15083: 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'
15084: ;;
15085: esac
15086: ;;
15087:
15088: beos*)
15089: library_names_spec='${libname}${shared_ext}'
15090: dynamic_linker="$host_os ld.so"
15091: shlibpath_var=LIBRARY_PATH
15092: ;;
15093:
15094: bsdi[45]*)
15095: version_type=linux # correct to gnu/linux during the next big refactor
15096: need_version=no
15097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098: soname_spec='${libname}${release}${shared_ext}$major'
15099: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15100: shlibpath_var=LD_LIBRARY_PATH
15101: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15102: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15103: # the default ld.so.conf also contains /usr/contrib/lib and
15104: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15105: # libtool to hard-code these into programs
15106: ;;
15107:
15108: cygwin* | mingw* | pw32* | cegcc*)
15109: version_type=windows
15110: shrext_cmds=".dll"
15111: need_version=no
15112: need_lib_prefix=no
15113:
15114: case $GCC,$cc_basename in
15115: yes,*)
15116: # gcc
15117: library_names_spec='$libname.dll.a'
15118: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15119: postinstall_cmds='base_file=`basename \${file}`~
15120: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15121: dldir=$destdir/`dirname \$dlpath`~
15122: test -d \$dldir || mkdir -p \$dldir~
15123: $install_prog $dir/$dlname \$dldir/$dlname~
15124: chmod a+x \$dldir/$dlname~
15125: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15126: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15127: fi'
15128: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15129: dlpath=$dir/\$dldll~
15130: $RM \$dlpath'
15131: shlibpath_overrides_runpath=yes
15132:
15133: case $host_os in
15134: cygwin*)
15135: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15136: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15137:
15138: ;;
15139: mingw* | cegcc*)
15140: # MinGW DLLs use traditional 'lib' prefix
15141: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15142: ;;
15143: pw32*)
15144: # pw32 DLLs use 'pw' prefix rather than 'lib'
15145: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15146: ;;
15147: esac
15148: dynamic_linker='Win32 ld.exe'
15149: ;;
15150:
15151: *,cl*)
15152: # Native MSVC
15153: libname_spec='$name'
15154: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15155: library_names_spec='${libname}.dll.lib'
15156:
15157: case $build_os in
15158: mingw*)
15159: sys_lib_search_path_spec=
15160: lt_save_ifs=$IFS
15161: IFS=';'
15162: for lt_path in $LIB
15163: do
15164: IFS=$lt_save_ifs
15165: # Let DOS variable expansion print the short 8.3 style file name.
15166: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15167: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15168: done
15169: IFS=$lt_save_ifs
15170: # Convert to MSYS style.
15171: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15172: ;;
15173: cygwin*)
15174: # Convert to unix form, then to dos form, then back to unix form
15175: # but this time dos style (no spaces!) so that the unix form looks
15176: # like /cygdrive/c/PROGRA~1:/cygdr...
15177: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15178: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15179: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15180: ;;
15181: *)
15182: sys_lib_search_path_spec="$LIB"
15183: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15184: # It is most probably a Windows format PATH.
15185: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15186: else
15187: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15188: fi
15189: # FIXME: find the short name or the path components, as spaces are
15190: # common. (e.g. "Program Files" -> "PROGRA~1")
15191: ;;
15192: esac
15193:
15194: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15195: postinstall_cmds='base_file=`basename \${file}`~
15196: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15197: dldir=$destdir/`dirname \$dlpath`~
15198: test -d \$dldir || mkdir -p \$dldir~
15199: $install_prog $dir/$dlname \$dldir/$dlname'
15200: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15201: dlpath=$dir/\$dldll~
15202: $RM \$dlpath'
15203: shlibpath_overrides_runpath=yes
15204: dynamic_linker='Win32 link.exe'
15205: ;;
15206:
15207: *)
15208: # Assume MSVC wrapper
15209: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15210: dynamic_linker='Win32 ld.exe'
15211: ;;
15212: esac
15213: # FIXME: first we should search . and the directory the executable is in
15214: shlibpath_var=PATH
15215: ;;
15216:
15217: darwin* | rhapsody*)
15218: dynamic_linker="$host_os dyld"
15219: version_type=darwin
15220: need_lib_prefix=no
15221: need_version=no
15222: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15223: soname_spec='${libname}${release}${major}$shared_ext'
15224: shlibpath_overrides_runpath=yes
15225: shlibpath_var=DYLD_LIBRARY_PATH
15226: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15227:
15228: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15229: ;;
15230:
15231: dgux*)
15232: version_type=linux # correct to gnu/linux during the next big refactor
15233: need_lib_prefix=no
15234: need_version=no
15235: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15236: soname_spec='${libname}${release}${shared_ext}$major'
15237: shlibpath_var=LD_LIBRARY_PATH
15238: ;;
15239:
15240: freebsd* | dragonfly*)
15241: # DragonFly does not have aout. When/if they implement a new
15242: # versioning mechanism, adjust this.
15243: if test -x /usr/bin/objformat; then
15244: objformat=`/usr/bin/objformat`
15245: else
15246: case $host_os in
15247: freebsd[23].*) objformat=aout ;;
15248: *) objformat=elf ;;
15249: esac
15250: fi
15251: version_type=freebsd-$objformat
15252: case $version_type in
15253: freebsd-elf*)
15254: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15255: need_version=no
15256: need_lib_prefix=no
15257: ;;
15258: freebsd-*)
15259: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15260: need_version=yes
15261: ;;
15262: esac
15263: shlibpath_var=LD_LIBRARY_PATH
15264: case $host_os in
15265: freebsd2.*)
15266: shlibpath_overrides_runpath=yes
15267: ;;
15268: freebsd3.[01]* | freebsdelf3.[01]*)
15269: shlibpath_overrides_runpath=yes
15270: hardcode_into_libs=yes
15271: ;;
15272: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15273: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15274: shlibpath_overrides_runpath=no
15275: hardcode_into_libs=yes
15276: ;;
15277: *) # from 4.6 on, and DragonFly
15278: shlibpath_overrides_runpath=yes
15279: hardcode_into_libs=yes
15280: ;;
15281: esac
15282: ;;
15283:
15284: gnu*)
15285: version_type=linux # correct to gnu/linux during the next big refactor
15286: need_lib_prefix=no
15287: need_version=no
15288: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15289: soname_spec='${libname}${release}${shared_ext}$major'
15290: shlibpath_var=LD_LIBRARY_PATH
15291: shlibpath_overrides_runpath=no
15292: hardcode_into_libs=yes
15293: ;;
15294:
15295: haiku*)
15296: version_type=linux # correct to gnu/linux during the next big refactor
15297: need_lib_prefix=no
15298: need_version=no
15299: dynamic_linker="$host_os runtime_loader"
15300: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15301: soname_spec='${libname}${release}${shared_ext}$major'
15302: shlibpath_var=LIBRARY_PATH
15303: shlibpath_overrides_runpath=yes
15304: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15305: hardcode_into_libs=yes
15306: ;;
15307:
15308: hpux9* | hpux10* | hpux11*)
15309: # Give a soname corresponding to the major version so that dld.sl refuses to
15310: # link against other versions.
15311: version_type=sunos
15312: need_lib_prefix=no
15313: need_version=no
15314: case $host_cpu in
15315: ia64*)
15316: shrext_cmds='.so'
15317: hardcode_into_libs=yes
15318: dynamic_linker="$host_os dld.so"
15319: shlibpath_var=LD_LIBRARY_PATH
15320: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15321: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322: soname_spec='${libname}${release}${shared_ext}$major'
15323: if test "X$HPUX_IA64_MODE" = X32; then
15324: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15325: else
15326: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15327: fi
15328: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15329: ;;
15330: hppa*64*)
15331: shrext_cmds='.sl'
15332: hardcode_into_libs=yes
15333: dynamic_linker="$host_os dld.sl"
15334: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15335: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15336: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337: soname_spec='${libname}${release}${shared_ext}$major'
15338: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15339: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15340: ;;
15341: *)
15342: shrext_cmds='.sl'
15343: dynamic_linker="$host_os dld.sl"
15344: shlibpath_var=SHLIB_PATH
15345: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15346: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347: soname_spec='${libname}${release}${shared_ext}$major'
15348: ;;
15349: esac
15350: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15351: postinstall_cmds='chmod 555 $lib'
15352: # or fails outright, so override atomically:
15353: install_override_mode=555
15354: ;;
15355:
15356: interix[3-9]*)
15357: version_type=linux # correct to gnu/linux during the next big refactor
15358: need_lib_prefix=no
15359: need_version=no
15360: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361: soname_spec='${libname}${release}${shared_ext}$major'
15362: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15363: shlibpath_var=LD_LIBRARY_PATH
15364: shlibpath_overrides_runpath=no
15365: hardcode_into_libs=yes
15366: ;;
15367:
15368: irix5* | irix6* | nonstopux*)
15369: case $host_os in
15370: nonstopux*) version_type=nonstopux ;;
15371: *)
15372: if test "$lt_cv_prog_gnu_ld" = yes; then
15373: version_type=linux # correct to gnu/linux during the next big refactor
15374: else
15375: version_type=irix
15376: fi ;;
15377: esac
15378: need_lib_prefix=no
15379: need_version=no
15380: soname_spec='${libname}${release}${shared_ext}$major'
15381: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15382: case $host_os in
15383: irix5* | nonstopux*)
15384: libsuff= shlibsuff=
15385: ;;
15386: *)
15387: case $LD in # libtool.m4 will add one of these switches to LD
15388: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15389: libsuff= shlibsuff= libmagic=32-bit;;
15390: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15391: libsuff=32 shlibsuff=N32 libmagic=N32;;
15392: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15393: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15394: *) libsuff= shlibsuff= libmagic=never-match;;
15395: esac
15396: ;;
15397: esac
15398: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15399: shlibpath_overrides_runpath=no
15400: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15401: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15402: hardcode_into_libs=yes
15403: ;;
15404:
15405: # No shared lib support for Linux oldld, aout, or coff.
15406: linux*oldld* | linux*aout* | linux*coff*)
15407: dynamic_linker=no
15408: ;;
15409:
15410: # This must be glibc/ELF.
15411: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15412: version_type=linux # correct to gnu/linux during the next big refactor
15413: need_lib_prefix=no
15414: need_version=no
15415: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416: soname_spec='${libname}${release}${shared_ext}$major'
15417: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15418: shlibpath_var=LD_LIBRARY_PATH
15419: shlibpath_overrides_runpath=no
15420:
15421: # Some binutils ld are patched to set DT_RUNPATH
15422: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15423: echo $ECHO_N "(cached) $ECHO_C" >&6
15424: else
15425: lt_cv_shlibpath_overrides_runpath=no
15426: save_LDFLAGS=$LDFLAGS
15427: save_libdir=$libdir
15428: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15429: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15430: cat >conftest.$ac_ext <<_ACEOF
15431: /* confdefs.h. */
15432: _ACEOF
15433: cat confdefs.h >>conftest.$ac_ext
15434: cat >>conftest.$ac_ext <<_ACEOF
15435: /* end confdefs.h. */
15436:
15437: int
15438: main ()
15439: {
15440:
15441: ;
15442: return 0;
15443: }
15444: _ACEOF
15445: rm -f conftest.$ac_objext conftest$ac_exeext
15446: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447: (eval $ac_link) 2>conftest.er1
15448: ac_status=$?
15449: grep -v '^ *+' conftest.er1 >conftest.err
15450: rm -f conftest.er1
15451: cat conftest.err >&5
15452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453: (exit $ac_status); } &&
15454: { ac_try='test -z "$ac_cxx_werror_flag"
15455: || test ! -s conftest.err'
15456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457: (eval $ac_try) 2>&5
15458: ac_status=$?
15459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460: (exit $ac_status); }; } &&
15461: { ac_try='test -s conftest$ac_exeext'
15462: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463: (eval $ac_try) 2>&5
15464: ac_status=$?
15465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466: (exit $ac_status); }; }; then
15467: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15468: lt_cv_shlibpath_overrides_runpath=yes
15469: fi
15470:
15471: else
15472: echo "$as_me: failed program was:" >&5
15473: sed 's/^/| /' conftest.$ac_ext >&5
15474:
15475: fi
15476: rm -f conftest.err conftest.$ac_objext \
15477: conftest$ac_exeext conftest.$ac_ext
15478: LDFLAGS=$save_LDFLAGS
15479: libdir=$save_libdir
15480:
15481: fi
15482:
15483: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15484:
15485: # This implies no fast_install, which is unacceptable.
15486: # Some rework will be needed to allow for fast_install
15487: # before this can be enabled.
15488: hardcode_into_libs=yes
15489:
15490: # Append ld.so.conf contents to the search path
15491: if test -f /etc/ld.so.conf; then
15492: 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' ' '`
15493: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15494: fi
15495:
15496: # We used to test for /lib/ld.so.1 and disable shared libraries on
15497: # powerpc, because MkLinux only supported shared libraries with the
15498: # GNU dynamic linker. Since this was broken with cross compilers,
15499: # most powerpc-linux boxes support dynamic linking these days and
15500: # people can always --disable-shared, the test was removed, and we
15501: # assume the GNU/Linux dynamic linker is in use.
15502: dynamic_linker='GNU/Linux ld.so'
15503: ;;
15504:
15505: netbsd*)
15506: version_type=sunos
15507: need_lib_prefix=no
15508: need_version=no
15509: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15510: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15511: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15512: dynamic_linker='NetBSD (a.out) ld.so'
15513: else
15514: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15515: soname_spec='${libname}${release}${shared_ext}$major'
15516: dynamic_linker='NetBSD ld.elf_so'
15517: fi
15518: shlibpath_var=LD_LIBRARY_PATH
15519: shlibpath_overrides_runpath=yes
15520: hardcode_into_libs=yes
15521: ;;
15522:
15523: newsos6)
15524: version_type=linux # correct to gnu/linux during the next big refactor
15525: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526: shlibpath_var=LD_LIBRARY_PATH
15527: shlibpath_overrides_runpath=yes
15528: ;;
15529:
15530: *nto* | *qnx*)
15531: version_type=qnx
15532: need_lib_prefix=no
15533: need_version=no
15534: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535: soname_spec='${libname}${release}${shared_ext}$major'
15536: shlibpath_var=LD_LIBRARY_PATH
15537: shlibpath_overrides_runpath=no
15538: hardcode_into_libs=yes
15539: dynamic_linker='ldqnx.so'
15540: ;;
15541:
15542: openbsd*)
15543: version_type=sunos
15544: sys_lib_dlsearch_path_spec="/usr/lib"
15545: need_lib_prefix=no
15546: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15547: case $host_os in
15548: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15549: *) need_version=no ;;
15550: esac
15551: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15552: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15553: shlibpath_var=LD_LIBRARY_PATH
15554: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15555: case $host_os in
15556: openbsd2.[89] | openbsd2.[89].*)
15557: shlibpath_overrides_runpath=no
15558: ;;
15559: *)
15560: shlibpath_overrides_runpath=yes
15561: ;;
15562: esac
15563: else
15564: shlibpath_overrides_runpath=yes
15565: fi
15566: ;;
15567:
15568: os2*)
15569: libname_spec='$name'
15570: shrext_cmds=".dll"
15571: need_lib_prefix=no
15572: library_names_spec='$libname${shared_ext} $libname.a'
15573: dynamic_linker='OS/2 ld.exe'
15574: shlibpath_var=LIBPATH
15575: ;;
15576:
15577: osf3* | osf4* | osf5*)
15578: version_type=osf
15579: need_lib_prefix=no
15580: need_version=no
15581: soname_spec='${libname}${release}${shared_ext}$major'
15582: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583: shlibpath_var=LD_LIBRARY_PATH
15584: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15585: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15586: ;;
15587:
15588: rdos*)
15589: dynamic_linker=no
15590: ;;
15591:
15592: solaris*)
15593: version_type=linux # correct to gnu/linux during the next big refactor
15594: need_lib_prefix=no
15595: need_version=no
15596: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15597: soname_spec='${libname}${release}${shared_ext}$major'
15598: shlibpath_var=LD_LIBRARY_PATH
15599: shlibpath_overrides_runpath=yes
15600: hardcode_into_libs=yes
15601: # ldd complains unless libraries are executable
15602: postinstall_cmds='chmod +x $lib'
15603: ;;
15604:
15605: sunos4*)
15606: version_type=sunos
15607: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15608: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15609: shlibpath_var=LD_LIBRARY_PATH
15610: shlibpath_overrides_runpath=yes
15611: if test "$with_gnu_ld" = yes; then
15612: need_lib_prefix=no
15613: fi
15614: need_version=yes
15615: ;;
15616:
15617: sysv4 | sysv4.3*)
15618: version_type=linux # correct to gnu/linux during the next big refactor
15619: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620: soname_spec='${libname}${release}${shared_ext}$major'
15621: shlibpath_var=LD_LIBRARY_PATH
15622: case $host_vendor in
15623: sni)
15624: shlibpath_overrides_runpath=no
15625: need_lib_prefix=no
15626: runpath_var=LD_RUN_PATH
15627: ;;
15628: siemens)
15629: need_lib_prefix=no
15630: ;;
15631: motorola)
15632: need_lib_prefix=no
15633: need_version=no
15634: shlibpath_overrides_runpath=no
15635: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15636: ;;
15637: esac
15638: ;;
15639:
15640: sysv4*MP*)
15641: if test -d /usr/nec ;then
15642: version_type=linux # correct to gnu/linux during the next big refactor
15643: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15644: soname_spec='$libname${shared_ext}.$major'
15645: shlibpath_var=LD_LIBRARY_PATH
15646: fi
15647: ;;
15648:
15649: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15650: version_type=freebsd-elf
15651: need_lib_prefix=no
15652: need_version=no
15653: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15654: soname_spec='${libname}${release}${shared_ext}$major'
15655: shlibpath_var=LD_LIBRARY_PATH
15656: shlibpath_overrides_runpath=yes
15657: hardcode_into_libs=yes
15658: if test "$with_gnu_ld" = yes; then
15659: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15660: else
15661: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15662: case $host_os in
15663: sco3.2v5*)
15664: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15665: ;;
15666: esac
15667: fi
15668: sys_lib_dlsearch_path_spec='/usr/lib'
15669: ;;
15670:
15671: tpf*)
15672: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15673: version_type=linux # correct to gnu/linux during the next big refactor
15674: need_lib_prefix=no
15675: need_version=no
15676: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677: shlibpath_var=LD_LIBRARY_PATH
15678: shlibpath_overrides_runpath=no
15679: hardcode_into_libs=yes
15680: ;;
15681:
15682: uts4*)
15683: version_type=linux # correct to gnu/linux during the next big refactor
15684: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685: soname_spec='${libname}${release}${shared_ext}$major'
15686: shlibpath_var=LD_LIBRARY_PATH
15687: ;;
15688:
15689: *)
15690: dynamic_linker=no
15691: ;;
15692: esac
15693: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15694: echo "${ECHO_T}$dynamic_linker" >&6
15695: test "$dynamic_linker" = no && can_build_shared=no
15696:
15697: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15698: if test "$GCC" = yes; then
15699: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15700: fi
15701:
15702: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15703: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15704: fi
15705: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15706: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15707: fi
15708:
15709:
15710:
15711:
15712:
15713:
15714:
15715:
15716:
15717:
15718:
15719:
15720:
15721:
15722:
15723:
15724:
15725:
15726:
15727:
15728:
15729:
15730:
15731:
15732:
15733:
15734:
15735:
15736:
15737:
15738:
15739:
15740:
15741:
15742:
15743:
15744:
15745:
15746: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15747: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15748: hardcode_action_CXX=
15749: if test -n "$hardcode_libdir_flag_spec_CXX" ||
15750: test -n "$runpath_var_CXX" ||
15751: test "X$hardcode_automatic_CXX" = "Xyes" ; then
15752:
15753: # We can hardcode non-existent directories.
15754: if test "$hardcode_direct_CXX" != no &&
15755: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15756: # have to relink, otherwise we might link with an installed library
15757: # when we should be linking with a yet-to-be-installed one
15758: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15759: test "$hardcode_minus_L_CXX" != no; then
15760: # Linking always hardcodes the temporary library directory.
15761: hardcode_action_CXX=relink
15762: else
15763: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15764: hardcode_action_CXX=immediate
15765: fi
15766: else
15767: # We cannot hardcode anything, or else we can only hardcode existing
15768: # directories.
15769: hardcode_action_CXX=unsupported
15770: fi
15771: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15772: echo "${ECHO_T}$hardcode_action_CXX" >&6
15773:
15774: if test "$hardcode_action_CXX" = relink ||
15775: test "$inherit_rpath_CXX" = yes; then
15776: # Fast installation is not supported
15777: enable_fast_install=no
15778: elif test "$shlibpath_overrides_runpath" = yes ||
15779: test "$enable_shared" = no; then
15780: # Fast installation is not necessary
15781: enable_fast_install=needless
15782: fi
15783:
15784:
15785:
15786:
15787:
15788:
15789:
15790: fi # test -n "$compiler"
15791:
15792: CC=$lt_save_CC
15793: CFLAGS=$lt_save_CFLAGS
15794: LDCXX=$LD
15795: LD=$lt_save_LD
15796: GCC=$lt_save_GCC
15797: with_gnu_ld=$lt_save_with_gnu_ld
15798: lt_cv_path_LDCXX=$lt_cv_path_LD
15799: lt_cv_path_LD=$lt_save_path_LD
15800: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15801: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15802: fi # test "$_lt_caught_CXX_error" != yes
15803:
15804: ac_ext=c
15805: ac_cpp='$CPP $CPPFLAGS'
15806: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15807: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15808: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15809:
15810:
15811:
15812:
15813:
15814:
15815:
15816:
15817:
15818:
15819:
15820:
15821:
15822:
15823:
15824: ac_config_commands="$ac_config_commands libtool"
15825:
15826:
15827:
15828:
15829: # Only expand once:
15830:
15831:
1.138 moko 15832: #LT_INIT(disable-shared dlopen win32-dll)
1.128 moko 15833: echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
15834: echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6
15835: if test "${libltdl_cv_shlibext+set}" = set; then
15836: echo $ECHO_N "(cached) $ECHO_C" >&6
15837: else
15838:
15839: module=yes
15840: eval libltdl_cv_shlibext=$shrext_cmds
15841: module=no
15842: eval libltdl_cv_shrext=$shrext_cmds
15843:
15844: fi
15845: echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
15846: echo "${ECHO_T}$libltdl_cv_shlibext" >&6
15847: if test -n "$libltdl_cv_shlibext"; then
15848:
15849: cat >>confdefs.h <<_ACEOF
15850: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15851: _ACEOF
15852:
15853: fi
15854: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15855:
15856: cat >>confdefs.h <<_ACEOF
15857: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15858: _ACEOF
15859:
15860: fi
15861:
15862: echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
15863: echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6
15864: if test "${lt_cv_module_path_var+set}" = set; then
15865: echo $ECHO_N "(cached) $ECHO_C" >&6
15866: else
15867: lt_cv_module_path_var="$shlibpath_var"
15868: fi
15869: echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
15870: echo "${ECHO_T}$lt_cv_module_path_var" >&6
15871: if test -n "$lt_cv_module_path_var"; then
15872:
15873: cat >>confdefs.h <<_ACEOF
15874: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15875: _ACEOF
15876:
15877: fi
15878:
15879: echo "$as_me:$LINENO: checking for the default library search path" >&5
15880: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
15881: if test "${lt_cv_sys_dlsearch_path+set}" = set; then
15882: echo $ECHO_N "(cached) $ECHO_C" >&6
15883: else
15884: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15885: fi
15886: echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
15887: echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6
15888: if test -n "$lt_cv_sys_dlsearch_path"; then
15889: sys_dlsearch_path=
15890: for dir in $lt_cv_sys_dlsearch_path; do
15891: if test -z "$sys_dlsearch_path"; then
15892: sys_dlsearch_path="$dir"
15893: else
15894: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15895: fi
15896: done
15897:
15898: cat >>confdefs.h <<_ACEOF
15899: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15900: _ACEOF
15901:
15902: fi
15903:
15904:
15905: LT_DLLOADERS=
15906:
15907:
15908: ac_ext=c
15909: ac_cpp='$CPP $CPPFLAGS'
15910: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15913:
15914:
15915: LIBADD_DLOPEN=
15916: echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15917: echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15918: if test "${ac_cv_search_dlopen+set}" = set; then
15919: echo $ECHO_N "(cached) $ECHO_C" >&6
15920: else
15921: ac_func_search_save_LIBS=$LIBS
15922: ac_cv_search_dlopen=no
15923: cat >conftest.$ac_ext <<_ACEOF
15924: /* confdefs.h. */
15925: _ACEOF
15926: cat confdefs.h >>conftest.$ac_ext
15927: cat >>conftest.$ac_ext <<_ACEOF
15928: /* end confdefs.h. */
15929:
15930: /* Override any gcc2 internal prototype to avoid an error. */
15931: #ifdef __cplusplus
15932: extern "C"
15933: #endif
15934: /* We use char because int might match the return type of a gcc2
15935: builtin and then its argument prototype would still apply. */
15936: char dlopen ();
15937: int
15938: main ()
15939: {
15940: dlopen ();
15941: ;
15942: return 0;
15943: }
15944: _ACEOF
15945: rm -f conftest.$ac_objext conftest$ac_exeext
15946: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947: (eval $ac_link) 2>conftest.er1
15948: ac_status=$?
15949: grep -v '^ *+' conftest.er1 >conftest.err
15950: rm -f conftest.er1
15951: cat conftest.err >&5
15952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953: (exit $ac_status); } &&
15954: { ac_try='test -z "$ac_c_werror_flag"
15955: || test ! -s conftest.err'
15956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957: (eval $ac_try) 2>&5
15958: ac_status=$?
15959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960: (exit $ac_status); }; } &&
15961: { ac_try='test -s conftest$ac_exeext'
15962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963: (eval $ac_try) 2>&5
15964: ac_status=$?
15965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966: (exit $ac_status); }; }; then
15967: ac_cv_search_dlopen="none required"
15968: else
15969: echo "$as_me: failed program was:" >&5
15970: sed 's/^/| /' conftest.$ac_ext >&5
15971:
15972: fi
15973: rm -f conftest.err conftest.$ac_objext \
15974: conftest$ac_exeext conftest.$ac_ext
15975: if test "$ac_cv_search_dlopen" = no; then
15976: for ac_lib in dl; do
15977: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15978: cat >conftest.$ac_ext <<_ACEOF
15979: /* confdefs.h. */
15980: _ACEOF
15981: cat confdefs.h >>conftest.$ac_ext
15982: cat >>conftest.$ac_ext <<_ACEOF
15983: /* end confdefs.h. */
15984:
15985: /* Override any gcc2 internal prototype to avoid an error. */
15986: #ifdef __cplusplus
15987: extern "C"
15988: #endif
15989: /* We use char because int might match the return type of a gcc2
15990: builtin and then its argument prototype would still apply. */
15991: char dlopen ();
15992: int
15993: main ()
15994: {
15995: dlopen ();
15996: ;
15997: return 0;
15998: }
15999: _ACEOF
16000: rm -f conftest.$ac_objext conftest$ac_exeext
16001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002: (eval $ac_link) 2>conftest.er1
16003: ac_status=$?
16004: grep -v '^ *+' conftest.er1 >conftest.err
16005: rm -f conftest.er1
16006: cat conftest.err >&5
16007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008: (exit $ac_status); } &&
16009: { ac_try='test -z "$ac_c_werror_flag"
16010: || test ! -s conftest.err'
16011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012: (eval $ac_try) 2>&5
16013: ac_status=$?
16014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015: (exit $ac_status); }; } &&
16016: { ac_try='test -s conftest$ac_exeext'
16017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018: (eval $ac_try) 2>&5
16019: ac_status=$?
16020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021: (exit $ac_status); }; }; then
16022: ac_cv_search_dlopen="-l$ac_lib"
16023: break
16024: else
16025: echo "$as_me: failed program was:" >&5
16026: sed 's/^/| /' conftest.$ac_ext >&5
16027:
16028: fi
16029: rm -f conftest.err conftest.$ac_objext \
16030: conftest$ac_exeext conftest.$ac_ext
16031: done
16032: fi
16033: LIBS=$ac_func_search_save_LIBS
16034: fi
16035: echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16036: echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16037: if test "$ac_cv_search_dlopen" != no; then
16038: test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16039:
16040: cat >>confdefs.h <<\_ACEOF
16041: #define HAVE_LIBDL 1
16042: _ACEOF
16043:
16044: if test "$ac_cv_search_dlopen" != "none required" ; then
16045: LIBADD_DLOPEN="-ldl"
16046: fi
16047: libltdl_cv_lib_dl_dlopen="yes"
16048: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16049: else
16050: cat >conftest.$ac_ext <<_ACEOF
16051: /* confdefs.h. */
16052: _ACEOF
16053: cat confdefs.h >>conftest.$ac_ext
16054: cat >>conftest.$ac_ext <<_ACEOF
16055: /* end confdefs.h. */
16056: #if HAVE_DLFCN_H
16057: # include <dlfcn.h>
16058: #endif
16059:
16060: int
16061: main ()
16062: {
16063: dlopen(0, 0);
16064: ;
16065: return 0;
16066: }
16067: _ACEOF
16068: rm -f conftest.$ac_objext conftest$ac_exeext
16069: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16070: (eval $ac_link) 2>conftest.er1
16071: ac_status=$?
16072: grep -v '^ *+' conftest.er1 >conftest.err
16073: rm -f conftest.er1
16074: cat conftest.err >&5
16075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076: (exit $ac_status); } &&
16077: { ac_try='test -z "$ac_c_werror_flag"
16078: || test ! -s conftest.err'
16079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080: (eval $ac_try) 2>&5
16081: ac_status=$?
16082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083: (exit $ac_status); }; } &&
16084: { ac_try='test -s conftest$ac_exeext'
16085: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086: (eval $ac_try) 2>&5
16087: ac_status=$?
16088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089: (exit $ac_status); }; }; then
16090:
16091: cat >>confdefs.h <<\_ACEOF
16092: #define HAVE_LIBDL 1
16093: _ACEOF
16094:
16095: libltdl_cv_func_dlopen="yes"
16096: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16097: else
16098: echo "$as_me: failed program was:" >&5
16099: sed 's/^/| /' conftest.$ac_ext >&5
16100:
16101: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16102: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16103: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16104: echo $ECHO_N "(cached) $ECHO_C" >&6
16105: else
16106: ac_check_lib_save_LIBS=$LIBS
16107: LIBS="-lsvld $LIBS"
16108: cat >conftest.$ac_ext <<_ACEOF
16109: /* confdefs.h. */
16110: _ACEOF
16111: cat confdefs.h >>conftest.$ac_ext
16112: cat >>conftest.$ac_ext <<_ACEOF
16113: /* end confdefs.h. */
16114:
16115: /* Override any gcc2 internal prototype to avoid an error. */
16116: #ifdef __cplusplus
16117: extern "C"
16118: #endif
16119: /* We use char because int might match the return type of a gcc2
16120: builtin and then its argument prototype would still apply. */
16121: char dlopen ();
16122: int
16123: main ()
16124: {
16125: dlopen ();
16126: ;
16127: return 0;
16128: }
16129: _ACEOF
16130: rm -f conftest.$ac_objext conftest$ac_exeext
16131: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132: (eval $ac_link) 2>conftest.er1
16133: ac_status=$?
16134: grep -v '^ *+' conftest.er1 >conftest.err
16135: rm -f conftest.er1
16136: cat conftest.err >&5
16137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138: (exit $ac_status); } &&
16139: { ac_try='test -z "$ac_c_werror_flag"
16140: || test ! -s conftest.err'
16141: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142: (eval $ac_try) 2>&5
16143: ac_status=$?
16144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145: (exit $ac_status); }; } &&
16146: { ac_try='test -s conftest$ac_exeext'
16147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148: (eval $ac_try) 2>&5
16149: ac_status=$?
16150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151: (exit $ac_status); }; }; then
16152: ac_cv_lib_svld_dlopen=yes
16153: else
16154: echo "$as_me: failed program was:" >&5
16155: sed 's/^/| /' conftest.$ac_ext >&5
16156:
16157: ac_cv_lib_svld_dlopen=no
16158: fi
16159: rm -f conftest.err conftest.$ac_objext \
16160: conftest$ac_exeext conftest.$ac_ext
16161: LIBS=$ac_check_lib_save_LIBS
16162: fi
16163: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16164: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16165: if test $ac_cv_lib_svld_dlopen = yes; then
16166:
16167: cat >>confdefs.h <<\_ACEOF
16168: #define HAVE_LIBDL 1
16169: _ACEOF
16170:
16171: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16172: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16173: fi
16174:
16175: fi
16176: rm -f conftest.err conftest.$ac_objext \
16177: conftest$ac_exeext conftest.$ac_ext
16178: fi
16179:
16180: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16181: then
16182: lt_save_LIBS="$LIBS"
16183: LIBS="$LIBS $LIBADD_DLOPEN"
16184:
16185: for ac_func in dlerror
16186: do
16187: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16188: echo "$as_me:$LINENO: checking for $ac_func" >&5
16189: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16190: if eval "test \"\${$as_ac_var+set}\" = set"; then
16191: echo $ECHO_N "(cached) $ECHO_C" >&6
16192: else
16193: cat >conftest.$ac_ext <<_ACEOF
16194: /* confdefs.h. */
16195: _ACEOF
16196: cat confdefs.h >>conftest.$ac_ext
16197: cat >>conftest.$ac_ext <<_ACEOF
16198: /* end confdefs.h. */
16199: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16200: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16201: #define $ac_func innocuous_$ac_func
16202:
16203: /* System header to define __stub macros and hopefully few prototypes,
16204: which can conflict with char $ac_func (); below.
16205: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206: <limits.h> exists even on freestanding compilers. */
16207:
16208: #ifdef __STDC__
16209: # include <limits.h>
16210: #else
16211: # include <assert.h>
16212: #endif
16213:
16214: #undef $ac_func
16215:
16216: /* Override any gcc2 internal prototype to avoid an error. */
16217: #ifdef __cplusplus
16218: extern "C"
16219: {
16220: #endif
16221: /* We use char because int might match the return type of a gcc2
16222: builtin and then its argument prototype would still apply. */
16223: char $ac_func ();
16224: /* The GNU C library defines this for functions which it implements
16225: to always fail with ENOSYS. Some functions are actually named
16226: something starting with __ and the normal name is an alias. */
16227: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16228: choke me
16229: #else
16230: char (*f) () = $ac_func;
16231: #endif
16232: #ifdef __cplusplus
16233: }
16234: #endif
16235:
16236: int
16237: main ()
16238: {
16239: return f != $ac_func;
16240: ;
16241: return 0;
16242: }
16243: _ACEOF
16244: rm -f conftest.$ac_objext conftest$ac_exeext
16245: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246: (eval $ac_link) 2>conftest.er1
16247: ac_status=$?
16248: grep -v '^ *+' conftest.er1 >conftest.err
16249: rm -f conftest.er1
16250: cat conftest.err >&5
16251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252: (exit $ac_status); } &&
16253: { ac_try='test -z "$ac_c_werror_flag"
16254: || test ! -s conftest.err'
16255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256: (eval $ac_try) 2>&5
16257: ac_status=$?
16258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259: (exit $ac_status); }; } &&
16260: { ac_try='test -s conftest$ac_exeext'
16261: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262: (eval $ac_try) 2>&5
16263: ac_status=$?
16264: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265: (exit $ac_status); }; }; then
16266: eval "$as_ac_var=yes"
16267: else
16268: echo "$as_me: failed program was:" >&5
16269: sed 's/^/| /' conftest.$ac_ext >&5
16270:
16271: eval "$as_ac_var=no"
16272: fi
16273: rm -f conftest.err conftest.$ac_objext \
16274: conftest$ac_exeext conftest.$ac_ext
16275: fi
16276: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278: if test `eval echo '${'$as_ac_var'}'` = yes; then
16279: cat >>confdefs.h <<_ACEOF
16280: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16281: _ACEOF
16282:
16283: fi
16284: done
16285:
16286: LIBS="$lt_save_LIBS"
16287: fi
16288:
16289:
16290: LIBADD_SHL_LOAD=
16291: echo "$as_me:$LINENO: checking for shl_load" >&5
16292: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16293: if test "${ac_cv_func_shl_load+set}" = set; then
16294: echo $ECHO_N "(cached) $ECHO_C" >&6
16295: else
16296: cat >conftest.$ac_ext <<_ACEOF
16297: /* confdefs.h. */
16298: _ACEOF
16299: cat confdefs.h >>conftest.$ac_ext
16300: cat >>conftest.$ac_ext <<_ACEOF
16301: /* end confdefs.h. */
16302: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16303: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16304: #define shl_load innocuous_shl_load
16305:
16306: /* System header to define __stub macros and hopefully few prototypes,
16307: which can conflict with char shl_load (); below.
16308: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16309: <limits.h> exists even on freestanding compilers. */
16310:
16311: #ifdef __STDC__
16312: # include <limits.h>
16313: #else
16314: # include <assert.h>
16315: #endif
16316:
16317: #undef shl_load
16318:
16319: /* Override any gcc2 internal prototype to avoid an error. */
16320: #ifdef __cplusplus
16321: extern "C"
16322: {
16323: #endif
16324: /* We use char because int might match the return type of a gcc2
16325: builtin and then its argument prototype would still apply. */
16326: char shl_load ();
16327: /* The GNU C library defines this for functions which it implements
16328: to always fail with ENOSYS. Some functions are actually named
16329: something starting with __ and the normal name is an alias. */
16330: #if defined (__stub_shl_load) || defined (__stub___shl_load)
16331: choke me
16332: #else
16333: char (*f) () = shl_load;
16334: #endif
16335: #ifdef __cplusplus
16336: }
16337: #endif
16338:
16339: int
16340: main ()
16341: {
16342: return f != shl_load;
16343: ;
16344: return 0;
16345: }
16346: _ACEOF
16347: rm -f conftest.$ac_objext conftest$ac_exeext
16348: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16349: (eval $ac_link) 2>conftest.er1
16350: ac_status=$?
16351: grep -v '^ *+' conftest.er1 >conftest.err
16352: rm -f conftest.er1
16353: cat conftest.err >&5
16354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355: (exit $ac_status); } &&
16356: { ac_try='test -z "$ac_c_werror_flag"
16357: || test ! -s conftest.err'
16358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359: (eval $ac_try) 2>&5
16360: ac_status=$?
16361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362: (exit $ac_status); }; } &&
16363: { ac_try='test -s conftest$ac_exeext'
16364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365: (eval $ac_try) 2>&5
16366: ac_status=$?
16367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368: (exit $ac_status); }; }; then
16369: ac_cv_func_shl_load=yes
16370: else
16371: echo "$as_me: failed program was:" >&5
16372: sed 's/^/| /' conftest.$ac_ext >&5
16373:
16374: ac_cv_func_shl_load=no
16375: fi
16376: rm -f conftest.err conftest.$ac_objext \
16377: conftest$ac_exeext conftest.$ac_ext
16378: fi
16379: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16380: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16381: if test $ac_cv_func_shl_load = yes; then
16382:
16383: cat >>confdefs.h <<\_ACEOF
16384: #define HAVE_SHL_LOAD 1
16385: _ACEOF
16386:
16387: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.66 paf 16388: else
16389: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16390: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16391: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16392: echo $ECHO_N "(cached) $ECHO_C" >&6
16393: else
16394: ac_check_lib_save_LIBS=$LIBS
16395: LIBS="-ldld $LIBS"
16396: cat >conftest.$ac_ext <<_ACEOF
16397: /* confdefs.h. */
16398: _ACEOF
16399: cat confdefs.h >>conftest.$ac_ext
16400: cat >>conftest.$ac_ext <<_ACEOF
16401: /* end confdefs.h. */
1.10 paf 16402:
1.66 paf 16403: /* Override any gcc2 internal prototype to avoid an error. */
16404: #ifdef __cplusplus
16405: extern "C"
16406: #endif
16407: /* We use char because int might match the return type of a gcc2
16408: builtin and then its argument prototype would still apply. */
16409: char shl_load ();
16410: int
16411: main ()
16412: {
16413: shl_load ();
16414: ;
16415: return 0;
16416: }
16417: _ACEOF
16418: rm -f conftest.$ac_objext conftest$ac_exeext
16419: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16420: (eval $ac_link) 2>conftest.er1
1.66 paf 16421: ac_status=$?
1.86 paf 16422: grep -v '^ *+' conftest.er1 >conftest.err
16423: rm -f conftest.er1
16424: cat conftest.err >&5
1.66 paf 16425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426: (exit $ac_status); } &&
1.86 paf 16427: { ac_try='test -z "$ac_c_werror_flag"
16428: || test ! -s conftest.err'
16429: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430: (eval $ac_try) 2>&5
16431: ac_status=$?
16432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433: (exit $ac_status); }; } &&
16434: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16435: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436: (eval $ac_try) 2>&5
16437: ac_status=$?
16438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439: (exit $ac_status); }; }; then
16440: ac_cv_lib_dld_shl_load=yes
16441: else
16442: echo "$as_me: failed program was:" >&5
16443: sed 's/^/| /' conftest.$ac_ext >&5
1.10 paf 16444:
1.66 paf 16445: ac_cv_lib_dld_shl_load=no
16446: fi
1.86 paf 16447: rm -f conftest.err conftest.$ac_objext \
16448: conftest$ac_exeext conftest.$ac_ext
1.66 paf 16449: LIBS=$ac_check_lib_save_LIBS
16450: fi
16451: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16452: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16453: if test $ac_cv_lib_dld_shl_load = yes; then
1.1 paf 16454:
1.66 paf 16455: cat >>confdefs.h <<\_ACEOF
16456: #define HAVE_SHL_LOAD 1
16457: _ACEOF
1.1 paf 16458:
1.128 moko 16459: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16460: LIBADD_SHL_LOAD="-ldld"
16461: fi
16462:
16463: fi
16464:
16465:
16466:
16467: case $host_os in
16468: darwin[1567].*)
16469: # We only want this for pre-Mac OS X 10.4.
16470: echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
16471: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
16472: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
16473: echo $ECHO_N "(cached) $ECHO_C" >&6
16474: else
16475: cat >conftest.$ac_ext <<_ACEOF
16476: /* confdefs.h. */
16477: _ACEOF
16478: cat confdefs.h >>conftest.$ac_ext
16479: cat >>conftest.$ac_ext <<_ACEOF
16480: /* end confdefs.h. */
16481: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
16482: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16483: #define _dyld_func_lookup innocuous__dyld_func_lookup
16484:
16485: /* System header to define __stub macros and hopefully few prototypes,
16486: which can conflict with char _dyld_func_lookup (); below.
16487: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16488: <limits.h> exists even on freestanding compilers. */
16489:
16490: #ifdef __STDC__
16491: # include <limits.h>
16492: #else
16493: # include <assert.h>
16494: #endif
16495:
16496: #undef _dyld_func_lookup
16497:
16498: /* Override any gcc2 internal prototype to avoid an error. */
16499: #ifdef __cplusplus
16500: extern "C"
16501: {
16502: #endif
16503: /* We use char because int might match the return type of a gcc2
16504: builtin and then its argument prototype would still apply. */
16505: char _dyld_func_lookup ();
16506: /* The GNU C library defines this for functions which it implements
16507: to always fail with ENOSYS. Some functions are actually named
16508: something starting with __ and the normal name is an alias. */
16509: #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
16510: choke me
16511: #else
16512: char (*f) () = _dyld_func_lookup;
16513: #endif
16514: #ifdef __cplusplus
16515: }
16516: #endif
16517:
16518: int
16519: main ()
16520: {
16521: return f != _dyld_func_lookup;
16522: ;
16523: return 0;
16524: }
16525: _ACEOF
16526: rm -f conftest.$ac_objext conftest$ac_exeext
16527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16528: (eval $ac_link) 2>conftest.er1
16529: ac_status=$?
16530: grep -v '^ *+' conftest.er1 >conftest.err
16531: rm -f conftest.er1
16532: cat conftest.err >&5
16533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534: (exit $ac_status); } &&
16535: { ac_try='test -z "$ac_c_werror_flag"
16536: || test ! -s conftest.err'
16537: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538: (eval $ac_try) 2>&5
16539: ac_status=$?
16540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541: (exit $ac_status); }; } &&
16542: { ac_try='test -s conftest$ac_exeext'
16543: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544: (eval $ac_try) 2>&5
16545: ac_status=$?
16546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547: (exit $ac_status); }; }; then
16548: ac_cv_func__dyld_func_lookup=yes
16549: else
16550: echo "$as_me: failed program was:" >&5
16551: sed 's/^/| /' conftest.$ac_ext >&5
16552:
16553: ac_cv_func__dyld_func_lookup=no
16554: fi
16555: rm -f conftest.err conftest.$ac_objext \
16556: conftest$ac_exeext conftest.$ac_ext
16557: fi
16558: echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
16559: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
16560: if test $ac_cv_func__dyld_func_lookup = yes; then
16561:
16562: cat >>confdefs.h <<\_ACEOF
16563: #define HAVE_DYLD 1
16564: _ACEOF
16565:
16566: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16567: fi
16568:
16569: ;;
16570: beos*)
16571: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16572: ;;
16573: cygwin* | mingw* | os2* | pw32*)
16574: echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
16575: echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6
16576: if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
16577: echo $ECHO_N "(cached) $ECHO_C" >&6
16578: else
16579: cat >conftest.$ac_ext <<_ACEOF
16580: /* confdefs.h. */
16581: _ACEOF
16582: cat confdefs.h >>conftest.$ac_ext
16583: cat >>conftest.$ac_ext <<_ACEOF
16584: /* end confdefs.h. */
16585: #include <sys/cygwin.h>
16586:
16587: int
16588: main ()
16589: {
16590: #ifndef cygwin_conv_path
16591: char *p = (char *) cygwin_conv_path;
16592: #endif
16593:
16594: ;
16595: return 0;
16596: }
16597: _ACEOF
16598: rm -f conftest.$ac_objext
16599: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16600: (eval $ac_compile) 2>conftest.er1
16601: ac_status=$?
16602: grep -v '^ *+' conftest.er1 >conftest.err
16603: rm -f conftest.er1
16604: cat conftest.err >&5
16605: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606: (exit $ac_status); } &&
16607: { ac_try='test -z "$ac_c_werror_flag"
16608: || test ! -s conftest.err'
16609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610: (eval $ac_try) 2>&5
16611: ac_status=$?
16612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613: (exit $ac_status); }; } &&
16614: { ac_try='test -s conftest.$ac_objext'
16615: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616: (eval $ac_try) 2>&5
16617: ac_status=$?
16618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619: (exit $ac_status); }; }; then
16620: ac_cv_have_decl_cygwin_conv_path=yes
16621: else
16622: echo "$as_me: failed program was:" >&5
16623: sed 's/^/| /' conftest.$ac_ext >&5
16624:
16625: ac_cv_have_decl_cygwin_conv_path=no
16626: fi
16627: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16628: fi
16629: echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
16630: echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6
16631: if test $ac_cv_have_decl_cygwin_conv_path = yes; then
16632:
16633: cat >>confdefs.h <<_ACEOF
16634: #define HAVE_DECL_CYGWIN_CONV_PATH 1
16635: _ACEOF
16636:
16637:
1.66 paf 16638: else
1.128 moko 16639: cat >>confdefs.h <<_ACEOF
16640: #define HAVE_DECL_CYGWIN_CONV_PATH 0
16641: _ACEOF
16642:
16643:
16644: fi
16645:
16646:
16647: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16648: ;;
16649: esac
16650:
16651: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16652: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16653: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.66 paf 16654: echo $ECHO_N "(cached) $ECHO_C" >&6
16655: else
16656: ac_check_lib_save_LIBS=$LIBS
1.128 moko 16657: LIBS="-ldld $LIBS"
1.66 paf 16658: cat >conftest.$ac_ext <<_ACEOF
16659: /* confdefs.h. */
16660: _ACEOF
16661: cat confdefs.h >>conftest.$ac_ext
16662: cat >>conftest.$ac_ext <<_ACEOF
16663: /* end confdefs.h. */
1.62 paf 16664:
1.66 paf 16665: /* Override any gcc2 internal prototype to avoid an error. */
16666: #ifdef __cplusplus
16667: extern "C"
16668: #endif
16669: /* We use char because int might match the return type of a gcc2
16670: builtin and then its argument prototype would still apply. */
1.128 moko 16671: char dld_link ();
1.66 paf 16672: int
16673: main ()
16674: {
1.128 moko 16675: dld_link ();
1.66 paf 16676: ;
16677: return 0;
16678: }
16679: _ACEOF
16680: rm -f conftest.$ac_objext conftest$ac_exeext
16681: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 16682: (eval $ac_link) 2>conftest.er1
1.66 paf 16683: ac_status=$?
1.86 paf 16684: grep -v '^ *+' conftest.er1 >conftest.err
16685: rm -f conftest.er1
16686: cat conftest.err >&5
1.66 paf 16687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688: (exit $ac_status); } &&
1.86 paf 16689: { ac_try='test -z "$ac_c_werror_flag"
16690: || test ! -s conftest.err'
16691: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692: (eval $ac_try) 2>&5
16693: ac_status=$?
16694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695: (exit $ac_status); }; } &&
16696: { ac_try='test -s conftest$ac_exeext'
1.66 paf 16697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698: (eval $ac_try) 2>&5
16699: ac_status=$?
16700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701: (exit $ac_status); }; }; then
1.128 moko 16702: ac_cv_lib_dld_dld_link=yes
1.66 paf 16703: else
16704: echo "$as_me: failed program was:" >&5
1.128 moko 16705: sed 's/^/| /' conftest.$ac_ext >&5
16706:
16707: ac_cv_lib_dld_dld_link=no
16708: fi
16709: rm -f conftest.err conftest.$ac_objext \
16710: conftest$ac_exeext conftest.$ac_ext
16711: LIBS=$ac_check_lib_save_LIBS
16712: fi
16713: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16714: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16715: if test $ac_cv_lib_dld_dld_link = yes; then
16716:
16717: cat >>confdefs.h <<\_ACEOF
16718: #define HAVE_DLD 1
16719: _ACEOF
16720:
16721: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16722: fi
16723:
16724:
16725:
16726:
16727: LT_DLPREOPEN=
16728: if test -n "$LT_DLLOADERS"
16729: then
16730: for lt_loader in $LT_DLLOADERS; do
16731: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16732: done
16733:
16734: cat >>confdefs.h <<\_ACEOF
16735: #define HAVE_LIBDLLOADER 1
16736: _ACEOF
16737:
16738: fi
16739:
16740:
16741: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16742:
16743:
16744: ac_ext=c
16745: ac_cpp='$CPP $CPPFLAGS'
16746: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16747: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16748: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16749:
16750:
16751: echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
16752: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
16753: if test "${lt_cv_sys_symbol_underscore+set}" = set; then
16754: echo $ECHO_N "(cached) $ECHO_C" >&6
16755: else
16756: lt_cv_sys_symbol_underscore=no
16757: cat > conftest.$ac_ext <<_LT_EOF
16758: void nm_test_func(){}
16759: int main(){nm_test_func;return 0;}
16760: _LT_EOF
16761: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16762: (eval $ac_compile) 2>&5
16763: ac_status=$?
16764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765: (exit $ac_status); }; then
16766: # Now try to grab the symbols.
16767: ac_nlist=conftest.nm
16768: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
16769: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16770: ac_status=$?
16771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772: (exit $ac_status); } && test -s "$ac_nlist"; then
16773: # See whether the symbols have a leading underscore.
16774: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16775: lt_cv_sys_symbol_underscore=yes
16776: else
16777: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16778: :
16779: else
16780: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16781: fi
16782: fi
16783: else
16784: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16785: fi
16786: else
16787: echo "configure: failed program was:" >&5
16788: cat conftest.c >&5
16789: fi
16790: rm -rf conftest*
1.29 paf 16791:
1.66 paf 16792: fi
1.128 moko 16793: echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
16794: echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6
16795: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 16796:
1.62 paf 16797:
1.128 moko 16798: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16799: if test x"$libltdl_cv_func_dlopen" = xyes ||
16800: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16801: echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
16802: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
16803: if test "${libltdl_cv_need_uscore+set}" = set; then
16804: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16805: else
1.128 moko 16806: libltdl_cv_need_uscore=unknown
16807: save_LIBS="$LIBS"
16808: LIBS="$LIBS $LIBADD_DLOPEN"
16809: if test "$cross_compiling" = yes; then :
16810: libltdl_cv_need_uscore=cross
16811: else
16812: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16813: lt_status=$lt_dlunknown
16814: cat > conftest.$ac_ext <<_LT_EOF
16815: #line $LINENO "configure"
16816: #include "confdefs.h"
16817:
1.66 paf 16818: #if HAVE_DLFCN_H
1.128 moko 16819: #include <dlfcn.h>
16820: #endif
16821:
16822: #include <stdio.h>
16823:
16824: #ifdef RTLD_GLOBAL
16825: # define LT_DLGLOBAL RTLD_GLOBAL
16826: #else
16827: # ifdef DL_GLOBAL
16828: # define LT_DLGLOBAL DL_GLOBAL
16829: # else
16830: # define LT_DLGLOBAL 0
16831: # endif
16832: #endif
16833:
16834: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16835: find out it does not work in some platform. */
16836: #ifndef LT_DLLAZY_OR_NOW
16837: # ifdef RTLD_LAZY
16838: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16839: # else
16840: # ifdef DL_LAZY
16841: # define LT_DLLAZY_OR_NOW DL_LAZY
16842: # else
16843: # ifdef RTLD_NOW
16844: # define LT_DLLAZY_OR_NOW RTLD_NOW
16845: # else
16846: # ifdef DL_NOW
16847: # define LT_DLLAZY_OR_NOW DL_NOW
16848: # else
16849: # define LT_DLLAZY_OR_NOW 0
16850: # endif
16851: # endif
16852: # endif
16853: # endif
16854: #endif
16855:
16856: /* When -fvisbility=hidden is used, assume the code has been annotated
16857: correspondingly for the symbols needed. */
16858: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16859: int fnord () __attribute__((visibility("default")));
1.66 paf 16860: #endif
1.62 paf 16861:
1.128 moko 16862: int fnord () { return 42; }
16863: int main ()
1.66 paf 16864: {
1.128 moko 16865: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16866: int status = $lt_dlunknown;
16867:
16868: if (self)
16869: {
16870: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16871: else
16872: {
16873: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16874: else puts (dlerror ());
16875: }
16876: /* dlclose (self); */
16877: }
16878: else
16879: puts (dlerror ());
16880:
16881: return status;
1.66 paf 16882: }
1.128 moko 16883: _LT_EOF
16884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16885: (eval $ac_link) 2>&5
1.66 paf 16886: ac_status=$?
16887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 16888: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16889: (./conftest; exit; ) >&5 2>/dev/null
16890: lt_status=$?
16891: case x$lt_status in
16892: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16893: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16894: x$lt_dlunknown|x*) ;;
16895: esac
16896: else :
16897: # compilation failed
16898:
16899: fi
16900: fi
16901: rm -fr conftest*
16902:
16903: LIBS="$save_LIBS"
16904:
16905: fi
16906: echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
16907: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
16908: fi
16909: fi
16910:
16911: if test x"$libltdl_cv_need_uscore" = xyes; then
1.29 paf 16912:
1.66 paf 16913: cat >>confdefs.h <<\_ACEOF
1.128 moko 16914: #define NEED_USCORE 1
1.66 paf 16915: _ACEOF
1.29 paf 16916:
1.128 moko 16917: fi
16918:
16919: echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
16920: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
16921: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
16922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.66 paf 16923: else
1.128 moko 16924: # PORTME does your system automatically load deplibs for dlopen?
16925: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16926: # For now, we just catch OSes we know something about -- in the
16927: # future, we'll try test this programmatically.
16928: lt_cv_sys_dlopen_deplibs=unknown
16929: case $host_os in
16930: aix3*|aix4.1.*|aix4.2.*)
16931: # Unknown whether this is true for these versions of AIX, but
16932: # we want this `case' here to explicitly catch those versions.
16933: lt_cv_sys_dlopen_deplibs=unknown
16934: ;;
16935: aix[4-9]*)
16936: lt_cv_sys_dlopen_deplibs=yes
16937: ;;
16938: amigaos*)
16939: case $host_cpu in
16940: powerpc)
16941: lt_cv_sys_dlopen_deplibs=no
16942: ;;
16943: esac
16944: ;;
16945: darwin*)
16946: # Assuming the user has installed a libdl from somewhere, this is true
16947: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16948: lt_cv_sys_dlopen_deplibs=yes
16949: ;;
16950: freebsd* | dragonfly*)
16951: lt_cv_sys_dlopen_deplibs=yes
16952: ;;
16953: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16954: # GNU and its variants, using gnu ld.so (Glibc)
16955: lt_cv_sys_dlopen_deplibs=yes
16956: ;;
16957: hpux10*|hpux11*)
16958: lt_cv_sys_dlopen_deplibs=yes
16959: ;;
16960: interix*)
16961: lt_cv_sys_dlopen_deplibs=yes
16962: ;;
16963: irix[12345]*|irix6.[01]*)
16964: # Catch all versions of IRIX before 6.2, and indicate that we don't
16965: # know how it worked for any of those versions.
16966: lt_cv_sys_dlopen_deplibs=unknown
16967: ;;
16968: irix*)
16969: # The case above catches anything before 6.2, and it's known that
16970: # at 6.2 and later dlopen does load deplibs.
16971: lt_cv_sys_dlopen_deplibs=yes
16972: ;;
16973: netbsd*)
16974: lt_cv_sys_dlopen_deplibs=yes
16975: ;;
16976: openbsd*)
16977: lt_cv_sys_dlopen_deplibs=yes
16978: ;;
16979: osf[1234]*)
16980: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16981: # it did *not* use an RPATH in a shared library to find objects the
16982: # library depends on, so we explicitly say `no'.
16983: lt_cv_sys_dlopen_deplibs=no
16984: ;;
16985: osf5.0|osf5.0a|osf5.1)
16986: # dlopen *does* load deplibs and with the right loader patch applied
16987: # it even uses RPATH in a shared library to search for shared objects
16988: # that the library depends on, but there's no easy way to know if that
16989: # patch is installed. Since this is the case, all we can really
16990: # say is unknown -- it depends on the patch being installed. If
16991: # it is, this changes to `yes'. Without it, it would be `no'.
16992: lt_cv_sys_dlopen_deplibs=unknown
16993: ;;
16994: osf*)
16995: # the two cases above should catch all versions of osf <= 5.1. Read
16996: # the comments above for what we know about them.
16997: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16998: # is used to find them so we can finally say `yes'.
16999: lt_cv_sys_dlopen_deplibs=yes
17000: ;;
17001: qnx*)
17002: lt_cv_sys_dlopen_deplibs=yes
17003: ;;
17004: solaris*)
17005: lt_cv_sys_dlopen_deplibs=yes
17006: ;;
17007: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17008: libltdl_cv_sys_dlopen_deplibs=yes
17009: ;;
17010: esac
17011:
17012: fi
17013: echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
17014: echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6
17015: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
17016:
17017: cat >>confdefs.h <<\_ACEOF
17018: #define LTDL_DLOPEN_DEPLIBS 1
17019: _ACEOF
17020:
17021: fi
17022:
17023: :
17024:
1.29 paf 17025:
1.128 moko 17026: for ac_header in argz.h
17027: do
17028: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17029: echo "$as_me:$LINENO: checking for $ac_header" >&5
17030: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17031: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.66 paf 17032: echo $ECHO_N "(cached) $ECHO_C" >&6
17033: else
1.128 moko 17034: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 17035: /* confdefs.h. */
17036: _ACEOF
17037: cat confdefs.h >>conftest.$ac_ext
17038: cat >>conftest.$ac_ext <<_ACEOF
17039: /* end confdefs.h. */
1.128 moko 17040: $ac_includes_default
1.29 paf 17041:
1.128 moko 17042: #include <$ac_header>
1.66 paf 17043: _ACEOF
1.128 moko 17044: rm -f conftest.$ac_objext
17045: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17046: (eval $ac_compile) 2>conftest.er1
1.66 paf 17047: ac_status=$?
1.86 paf 17048: grep -v '^ *+' conftest.er1 >conftest.err
17049: rm -f conftest.er1
17050: cat conftest.err >&5
1.66 paf 17051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052: (exit $ac_status); } &&
1.86 paf 17053: { ac_try='test -z "$ac_c_werror_flag"
17054: || test ! -s conftest.err'
17055: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056: (eval $ac_try) 2>&5
17057: ac_status=$?
17058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059: (exit $ac_status); }; } &&
1.128 moko 17060: { ac_try='test -s conftest.$ac_objext'
1.66 paf 17061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062: (eval $ac_try) 2>&5
17063: ac_status=$?
17064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065: (exit $ac_status); }; }; then
1.128 moko 17066: eval "$as_ac_Header=yes"
1.66 paf 17067: else
17068: echo "$as_me: failed program was:" >&5
17069: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 17070:
1.128 moko 17071: eval "$as_ac_Header=no"
17072: fi
17073: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17074: fi
1.128 moko 17075: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17076: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17077: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17078: cat >>confdefs.h <<_ACEOF
17079: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17080: _ACEOF
17081:
1.66 paf 17082: fi
1.62 paf 17083:
1.128 moko 17084: done
17085:
1.29 paf 17086:
1.128 moko 17087: echo "$as_me:$LINENO: checking for error_t" >&5
17088: echo $ECHO_N "checking for error_t... $ECHO_C" >&6
17089: if test "${ac_cv_type_error_t+set}" = set; then
1.66 paf 17090: echo $ECHO_N "(cached) $ECHO_C" >&6
17091: else
1.128 moko 17092: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 17093: /* confdefs.h. */
17094: _ACEOF
17095: cat confdefs.h >>conftest.$ac_ext
17096: cat >>conftest.$ac_ext <<_ACEOF
17097: /* end confdefs.h. */
1.128 moko 17098: #if defined(HAVE_ARGZ_H)
17099: # include <argz.h>
17100: #endif
1.29 paf 17101:
1.66 paf 17102: int
17103: main ()
17104: {
1.128 moko 17105: if ((error_t *) 0)
17106: return 0;
17107: if (sizeof (error_t))
17108: return 0;
1.66 paf 17109: ;
17110: return 0;
17111: }
17112: _ACEOF
1.128 moko 17113: rm -f conftest.$ac_objext
17114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115: (eval $ac_compile) 2>conftest.er1
1.66 paf 17116: ac_status=$?
1.86 paf 17117: grep -v '^ *+' conftest.er1 >conftest.err
17118: rm -f conftest.er1
17119: cat conftest.err >&5
1.66 paf 17120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121: (exit $ac_status); } &&
1.86 paf 17122: { ac_try='test -z "$ac_c_werror_flag"
17123: || test ! -s conftest.err'
17124: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125: (eval $ac_try) 2>&5
17126: ac_status=$?
17127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128: (exit $ac_status); }; } &&
1.128 moko 17129: { ac_try='test -s conftest.$ac_objext'
1.66 paf 17130: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131: (eval $ac_try) 2>&5
17132: ac_status=$?
17133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134: (exit $ac_status); }; }; then
1.128 moko 17135: ac_cv_type_error_t=yes
1.66 paf 17136: else
17137: echo "$as_me: failed program was:" >&5
17138: sed 's/^/| /' conftest.$ac_ext >&5
1.29 paf 17139:
1.128 moko 17140: ac_cv_type_error_t=no
1.66 paf 17141: fi
1.128 moko 17142: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 17143: fi
1.128 moko 17144: echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
17145: echo "${ECHO_T}$ac_cv_type_error_t" >&6
17146: if test $ac_cv_type_error_t = yes; then
1.29 paf 17147:
1.128 moko 17148: cat >>confdefs.h <<_ACEOF
17149: #define HAVE_ERROR_T 1
1.62 paf 17150: _ACEOF
1.16 paf 17151:
17152:
1.128 moko 17153: else
1.16 paf 17154:
1.128 moko 17155: cat >>confdefs.h <<\_ACEOF
17156: #define error_t int
17157: _ACEOF
1.16 paf 17158:
1.12 paf 17159:
1.128 moko 17160: cat >>confdefs.h <<\_ACEOF
17161: #define __error_t_defined 1
17162: _ACEOF
1.12 paf 17163:
1.66 paf 17164: fi
1.12 paf 17165:
1.128 moko 17166:
17167: ARGZ_H=
1.12 paf 17168:
17169:
1.62 paf 17170:
1.1 paf 17171:
17172:
17173:
17174:
1.128 moko 17175: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
17176: argz_next argz_stringify
1.66 paf 17177: do
17178: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179: echo "$as_me:$LINENO: checking for $ac_func" >&5
17180: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17181: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17182: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 17183: else
1.64 paf 17184: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17185: /* confdefs.h. */
17186: _ACEOF
17187: cat confdefs.h >>conftest.$ac_ext
17188: cat >>conftest.$ac_ext <<_ACEOF
17189: /* end confdefs.h. */
1.86 paf 17190: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192: #define $ac_func innocuous_$ac_func
17193:
1.64 paf 17194: /* System header to define __stub macros and hopefully few prototypes,
1.66 paf 17195: which can conflict with char $ac_func (); below.
1.64 paf 17196: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197: <limits.h> exists even on freestanding compilers. */
1.86 paf 17198:
1.64 paf 17199: #ifdef __STDC__
17200: # include <limits.h>
17201: #else
17202: # include <assert.h>
17203: #endif
1.86 paf 17204:
17205: #undef $ac_func
17206:
1.8 paf 17207: /* Override any gcc2 internal prototype to avoid an error. */
17208: #ifdef __cplusplus
17209: extern "C"
1.64 paf 17210: {
1.8 paf 17211: #endif
17212: /* We use char because int might match the return type of a gcc2
1.62 paf 17213: builtin and then its argument prototype would still apply. */
1.66 paf 17214: char $ac_func ();
1.64 paf 17215: /* The GNU C library defines this for functions which it implements
17216: to always fail with ENOSYS. Some functions are actually named
17217: something starting with __ and the normal name is an alias. */
1.66 paf 17218: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.64 paf 17219: choke me
17220: #else
1.66 paf 17221: char (*f) () = $ac_func;
1.64 paf 17222: #endif
17223: #ifdef __cplusplus
17224: }
17225: #endif
17226:
1.62 paf 17227: int
17228: main ()
17229: {
1.66 paf 17230: return f != $ac_func;
1.62 paf 17231: ;
17232: return 0;
17233: }
17234: _ACEOF
17235: rm -f conftest.$ac_objext conftest$ac_exeext
17236: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 17237: (eval $ac_link) 2>conftest.er1
1.62 paf 17238: ac_status=$?
1.86 paf 17239: grep -v '^ *+' conftest.er1 >conftest.err
17240: rm -f conftest.er1
17241: cat conftest.err >&5
1.62 paf 17242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243: (exit $ac_status); } &&
1.86 paf 17244: { ac_try='test -z "$ac_c_werror_flag"
17245: || test ! -s conftest.err'
17246: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247: (eval $ac_try) 2>&5
17248: ac_status=$?
17249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250: (exit $ac_status); }; } &&
17251: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.128 moko 17253: (eval $ac_try) 2>&5
17254: ac_status=$?
17255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256: (exit $ac_status); }; }; then
17257: eval "$as_ac_var=yes"
17258: else
17259: echo "$as_me: failed program was:" >&5
17260: sed 's/^/| /' conftest.$ac_ext >&5
17261:
17262: eval "$as_ac_var=no"
17263: fi
17264: rm -f conftest.err conftest.$ac_objext \
17265: conftest$ac_exeext conftest.$ac_ext
17266: fi
17267: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17268: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17269: if test `eval echo '${'$as_ac_var'}'` = yes; then
17270: cat >>confdefs.h <<_ACEOF
17271: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17272: _ACEOF
17273:
17274: else
17275: ARGZ_H=argz.h;
17276:
17277: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17278:
17279: fi
17280: done
17281:
17282:
17283: if test -z "$ARGZ_H"; then
17284: echo "$as_me:$LINENO: checking if argz actually works" >&5
17285: echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6
17286: if test "${lt_cv_sys_argz_works+set}" = set; then
17287: echo $ECHO_N "(cached) $ECHO_C" >&6
17288: else
17289: case $host_os in #(
17290: *cygwin*)
17291: lt_cv_sys_argz_works=no
17292: if test "$cross_compiling" != no; then
17293: lt_cv_sys_argz_works="guessing no"
17294: else
17295: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
17296: save_IFS=$IFS
17297: IFS=-.
17298: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
17299: IFS=$save_IFS
17300: lt_os_major=${2-0}
17301: lt_os_minor=${3-0}
17302: lt_os_micro=${4-0}
17303: if test "$lt_os_major" -gt 1 \
17304: || { test "$lt_os_major" -eq 1 \
17305: && { test "$lt_os_minor" -gt 5 \
17306: || { test "$lt_os_minor" -eq 5 \
17307: && test "$lt_os_micro" -gt 24; }; }; }; then
17308: lt_cv_sys_argz_works=yes
17309: fi
17310: fi
17311: ;; #(
17312: *) lt_cv_sys_argz_works=yes ;;
17313: esac
17314: fi
17315: echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
17316: echo "${ECHO_T}$lt_cv_sys_argz_works" >&6
17317: if test "$lt_cv_sys_argz_works" = yes; then
17318:
17319: cat >>confdefs.h <<\_ACEOF
17320: #define HAVE_WORKING_ARGZ 1
17321: _ACEOF
17322:
1.62 paf 17323: else
1.128 moko 17324: ARGZ_H=argz.h
17325:
17326:
17327: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
17328:
17329: fi
1.62 paf 17330:
17331: fi
1.128 moko 17332:
17333:
17334:
17335:
17336: echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
17337: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
17338: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
17339: echo $ECHO_N "(cached) $ECHO_C" >&6
17340: else
17341: if test -n "$lt_cv_sys_global_symbol_pipe"; then
17342: libltdl_cv_preloaded_symbols=yes
17343: else
17344: libltdl_cv_preloaded_symbols=no
17345: fi
17346:
1.62 paf 17347: fi
1.128 moko 17348: echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
17349: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
17350: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
17351:
17352: cat >>confdefs.h <<\_ACEOF
17353: #define HAVE_PRELOADED_SYMBOLS 1
1.66 paf 17354: _ACEOF
17355:
17356: fi
17357:
1.128 moko 17358: # Set options
17359:
17360:
17361:
17362:
17363:
17364:
17365:
17366:
17367:
17368:
1.66 paf 17369:
17370:
1.128 moko 17371: # Check whether --with-included_ltdl or --without-included_ltdl was given.
17372: if test "${with_included_ltdl+set}" = set; then
17373: withval="$with_included_ltdl"
1.64 paf 17374:
1.128 moko 17375: fi;
1.64 paf 17376:
1.128 moko 17377: if test "x$with_included_ltdl" != xyes; then
17378: # We are not being forced to use the included libltdl sources, so
17379: # decide whether there is a useful installed version we can use.
17380: echo "$as_me:$LINENO: checking for ltdl.h" >&5
17381: echo $ECHO_N "checking for ltdl.h... $ECHO_C" >&6
17382: if test "${ac_cv_header_ltdl_h+set}" = set; then
1.79 paf 17383: echo $ECHO_N "(cached) $ECHO_C" >&6
17384: else
1.128 moko 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: $ac_includes_default
1.79 paf 17392:
17393:
1.128 moko 17394: #include <ltdl.h>
1.79 paf 17395: _ACEOF
17396: rm -f conftest.$ac_objext
17397: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17398: (eval $ac_compile) 2>conftest.er1
1.79 paf 17399: ac_status=$?
1.86 paf 17400: grep -v '^ *+' conftest.er1 >conftest.err
17401: rm -f conftest.er1
17402: cat conftest.err >&5
1.79 paf 17403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404: (exit $ac_status); } &&
1.86 paf 17405: { ac_try='test -z "$ac_c_werror_flag"
17406: || test ! -s conftest.err'
17407: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408: (eval $ac_try) 2>&5
17409: ac_status=$?
17410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411: (exit $ac_status); }; } &&
17412: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17413: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414: (eval $ac_try) 2>&5
17415: ac_status=$?
17416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417: (exit $ac_status); }; }; then
1.128 moko 17418: ac_cv_header_ltdl_h=yes
17419: else
17420: echo "$as_me: failed program was:" >&5
17421: sed 's/^/| /' conftest.$ac_ext >&5
17422:
17423: ac_cv_header_ltdl_h=no
17424: fi
17425: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17426: fi
17427: echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
17428: echo "${ECHO_T}$ac_cv_header_ltdl_h" >&6
17429: if test $ac_cv_header_ltdl_h = yes; then
17430: echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
17431: echo $ECHO_N "checking whether lt_dlinterface_register is declared... $ECHO_C" >&6
17432: if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
17433: echo $ECHO_N "(cached) $ECHO_C" >&6
17434: else
17435: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17436: /* confdefs.h. */
17437: _ACEOF
17438: cat confdefs.h >>conftest.$ac_ext
17439: cat >>conftest.$ac_ext <<_ACEOF
17440: /* end confdefs.h. */
1.128 moko 17441: $ac_includes_default
17442: #include <ltdl.h>
1.79 paf 17443:
17444: int
17445: main ()
17446: {
1.128 moko 17447: #ifndef lt_dlinterface_register
17448: char *p = (char *) lt_dlinterface_register;
1.79 paf 17449: #endif
17450:
17451: ;
17452: return 0;
17453: }
17454: _ACEOF
17455: rm -f conftest.$ac_objext
17456: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 17457: (eval $ac_compile) 2>conftest.er1
1.79 paf 17458: ac_status=$?
1.86 paf 17459: grep -v '^ *+' conftest.er1 >conftest.err
17460: rm -f conftest.er1
17461: cat conftest.err >&5
1.79 paf 17462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463: (exit $ac_status); } &&
1.86 paf 17464: { ac_try='test -z "$ac_c_werror_flag"
17465: || test ! -s conftest.err'
17466: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467: (eval $ac_try) 2>&5
17468: ac_status=$?
17469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470: (exit $ac_status); }; } &&
17471: { ac_try='test -s conftest.$ac_objext'
1.79 paf 17472: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473: (eval $ac_try) 2>&5
17474: ac_status=$?
17475: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476: (exit $ac_status); }; }; then
1.128 moko 17477: ac_cv_have_decl_lt_dlinterface_register=yes
1.79 paf 17478: else
17479: echo "$as_me: failed program was:" >&5
17480: sed 's/^/| /' conftest.$ac_ext >&5
17481:
1.128 moko 17482: ac_cv_have_decl_lt_dlinterface_register=no
1.79 paf 17483: fi
1.86 paf 17484: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.128 moko 17485: fi
17486: echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
17487: echo "${ECHO_T}$ac_cv_have_decl_lt_dlinterface_register" >&6
17488: if test $ac_cv_have_decl_lt_dlinterface_register = yes; then
17489: echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
17490: echo $ECHO_N "checking for lt_dladvise_preload in -lltdl... $ECHO_C" >&6
17491: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
17492: echo $ECHO_N "(cached) $ECHO_C" >&6
1.79 paf 17493: else
1.128 moko 17494: ac_check_lib_save_LIBS=$LIBS
17495: LIBS="-lltdl $LIBS"
17496: cat >conftest.$ac_ext <<_ACEOF
1.79 paf 17497: /* confdefs.h. */
17498: _ACEOF
17499: cat confdefs.h >>conftest.$ac_ext
17500: cat >>conftest.$ac_ext <<_ACEOF
17501: /* end confdefs.h. */
1.128 moko 17502:
17503: /* Override any gcc2 internal prototype to avoid an error. */
17504: #ifdef __cplusplus
17505: extern "C"
17506: #endif
17507: /* We use char because int might match the return type of a gcc2
17508: builtin and then its argument prototype would still apply. */
17509: char lt_dladvise_preload ();
1.79 paf 17510: int
17511: main ()
17512: {
1.128 moko 17513: lt_dladvise_preload ();
1.79 paf 17514: ;
17515: return 0;
17516: }
17517: _ACEOF
1.128 moko 17518: rm -f conftest.$ac_objext conftest$ac_exeext
17519: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520: (eval $ac_link) 2>conftest.er1
1.79 paf 17521: ac_status=$?
1.86 paf 17522: grep -v '^ *+' conftest.er1 >conftest.err
17523: rm -f conftest.er1
17524: cat conftest.err >&5
1.79 paf 17525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526: (exit $ac_status); } &&
1.86 paf 17527: { ac_try='test -z "$ac_c_werror_flag"
17528: || test ! -s conftest.err'
17529: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530: (eval $ac_try) 2>&5
17531: ac_status=$?
17532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533: (exit $ac_status); }; } &&
1.128 moko 17534: { ac_try='test -s conftest$ac_exeext'
1.79 paf 17535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536: (eval $ac_try) 2>&5
17537: ac_status=$?
17538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539: (exit $ac_status); }; }; then
1.128 moko 17540: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.79 paf 17541: else
17542: echo "$as_me: failed program was:" >&5
17543: sed 's/^/| /' conftest.$ac_ext >&5
17544:
1.128 moko 17545: ac_cv_lib_ltdl_lt_dladvise_preload=no
17546: fi
17547: rm -f conftest.err conftest.$ac_objext \
17548: conftest$ac_exeext conftest.$ac_ext
17549: LIBS=$ac_check_lib_save_LIBS
1.79 paf 17550: fi
1.128 moko 17551: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17552: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dladvise_preload" >&6
17553: if test $ac_cv_lib_ltdl_lt_dladvise_preload = yes; then
17554: with_included_ltdl=no
1.79 paf 17555: else
1.128 moko 17556: with_included_ltdl=yes
17557: fi
17558:
1.79 paf 17559: else
1.128 moko 17560: with_included_ltdl=yes
17561: fi
1.79 paf 17562:
1.128 moko 17563: else
17564: with_included_ltdl=yes
1.79 paf 17565: fi
1.128 moko 17566:
17567:
1.79 paf 17568: fi
1.128 moko 17569:
17570:
17571:
17572:
17573: # Check whether --with-ltdl_include or --without-ltdl_include was given.
17574: if test "${with_ltdl_include+set}" = set; then
17575: withval="$with_ltdl_include"
17576:
17577: fi;
17578:
17579: if test -n "$with_ltdl_include"; then
17580: if test -f "$with_ltdl_include/ltdl.h"; then :
17581: else
17582: { { echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
17583: echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
17584: { (exit 1); exit 1; }; }
17585: fi
17586: else
17587: with_ltdl_include=no
1.79 paf 17588: fi
1.128 moko 17589:
17590:
17591: # Check whether --with-ltdl_lib or --without-ltdl_lib was given.
17592: if test "${with_ltdl_lib+set}" = set; then
17593: withval="$with_ltdl_lib"
17594:
17595: fi;
17596:
17597: if test -n "$with_ltdl_lib"; then
17598: if test -f "$with_ltdl_lib/libltdl.la"; then :
17599: else
17600: { { echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
17601: echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
17602: { (exit 1); exit 1; }; }
17603: fi
17604: else
17605: with_ltdl_lib=no
1.79 paf 17606: fi
17607:
1.128 moko 17608: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17609: ,yes,no,no,)
17610: case $enable_ltdl_convenience in
17611: no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
17612: echo "$as_me: error: this package needs a convenience libltdl" >&2;}
17613: { (exit 1); exit 1; }; } ;;
17614: "") enable_ltdl_convenience=yes
17615: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17616: esac
17617: LIBLTDL='${top_builddir}/'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17618: LTDLDEPS=$LIBLTDL
17619: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17620:
17621:
17622:
17623:
17624:
17625: # For backwards non-gettext consistent compatibility...
17626: INCLTDL="$LTDLINCL"
17627:
1.79 paf 17628:
1.128 moko 17629: ;;
17630: ,no,no,no,)
17631: # If the included ltdl is not to be used, then use the
17632: # preinstalled libltdl we found.
1.79 paf 17633:
17634: cat >>confdefs.h <<\_ACEOF
1.128 moko 17635: #define HAVE_LTDL 1
1.79 paf 17636: _ACEOF
17637:
1.128 moko 17638: LIBLTDL=-lltdl
17639: LTDLDEPS=
17640: LTDLINCL=
17641: ;;
17642: ,no*,no,*)
17643: { { echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
17644: echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
1.79 paf 17645: { (exit 1); exit 1; }; }
1.128 moko 17646: ;;
17647: *) with_included_ltdl=no
17648: LIBLTDL="-L$with_ltdl_lib -lltdl"
17649: LTDLDEPS=
17650: LTDLINCL="-I$with_ltdl_include"
17651: ;;
17652: esac
17653: INCLTDL="$LTDLINCL"
17654:
17655: # Report our decision...
17656: echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
17657: echo $ECHO_N "checking where to find libltdl headers... $ECHO_C" >&6
17658: echo "$as_me:$LINENO: result: $LTDLINCL" >&5
17659: echo "${ECHO_T}$LTDLINCL" >&6
17660: echo "$as_me:$LINENO: checking where to find libltdl library" >&5
17661: echo $ECHO_N "checking where to find libltdl library... $ECHO_C" >&6
17662: echo "$as_me:$LINENO: result: $LIBLTDL" >&5
17663: echo "${ECHO_T}$LIBLTDL" >&6
17664:
17665:
17666:
17667: # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
17668: if test "${enable_ltdl_install+set}" = set; then
17669: enableval="$enable_ltdl_install"
17670:
17671: fi;
17672:
17673: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
17674: *yes*) ;;
17675: *) enable_ltdl_convenience=yes ;;
17676: esac
17677:
17678:
17679:
17680: if test x"${enable_ltdl_install-no}" != xno; then
17681: INSTALL_LTDL_TRUE=
17682: INSTALL_LTDL_FALSE='#'
17683: else
17684: INSTALL_LTDL_TRUE='#'
17685: INSTALL_LTDL_FALSE=
17686: fi
17687:
17688:
17689:
17690: if test x"${enable_ltdl_convenience-no}" != xno; then
17691: CONVENIENCE_LTDL_TRUE=
17692: CONVENIENCE_LTDL_FALSE='#'
17693: else
17694: CONVENIENCE_LTDL_TRUE='#'
17695: CONVENIENCE_LTDL_FALSE=
17696: fi
17697:
17698:
17699:
17700:
17701:
17702: subdirs="$subdirs src/lib/ltdl"
17703:
17704:
17705:
17706:
17707: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17708: # the user used. This is so that ltdl.h can pick up the parent projects
17709: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17710: # definitions required by ltdl.c.
17711: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17712:
17713:
17714:
17715:
17716:
17717:
17718:
1.79 paf 17719:
17720:
1.128 moko 17721: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17722: do
17723: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17724: echo "$as_me:$LINENO: checking for $ac_header" >&5
17725: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17726: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.62 paf 17727: echo $ECHO_N "(cached) $ECHO_C" >&6
17728: else
1.66 paf 17729: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17730: /* confdefs.h. */
17731: _ACEOF
17732: cat confdefs.h >>conftest.$ac_ext
17733: cat >>conftest.$ac_ext <<_ACEOF
17734: /* end confdefs.h. */
1.128 moko 17735: $ac_includes_default
17736:
17737: #include <$ac_header>
1.62 paf 17738: _ACEOF
1.128 moko 17739: rm -f conftest.$ac_objext
17740: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741: (eval $ac_compile) 2>conftest.er1
1.62 paf 17742: ac_status=$?
1.66 paf 17743: grep -v '^ *+' conftest.er1 >conftest.err
17744: rm -f conftest.er1
17745: cat conftest.err >&5
1.62 paf 17746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17747: (exit $ac_status); } &&
17748: { ac_try='test -z "$ac_c_werror_flag"
17749: || test ! -s conftest.err'
17750: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751: (eval $ac_try) 2>&5
17752: ac_status=$?
17753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754: (exit $ac_status); }; } &&
17755: { ac_try='test -s conftest.$ac_objext'
17756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757: (eval $ac_try) 2>&5
17758: ac_status=$?
17759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760: (exit $ac_status); }; }; then
17761: eval "$as_ac_Header=yes"
1.62 paf 17762: else
17763: echo "$as_me: failed program was:" >&5
17764: sed 's/^/| /' conftest.$ac_ext >&5
17765:
1.128 moko 17766: eval "$as_ac_Header=no"
17767: fi
17768: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 17769: fi
1.128 moko 17770: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17771: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17772: if test `eval echo '${'$as_ac_Header'}'` = yes; then
17773: cat >>confdefs.h <<_ACEOF
17774: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 17775: _ACEOF
17776:
17777: fi
1.66 paf 17778:
17779: done
1.64 paf 17780:
17781:
1.128 moko 17782:
17783:
17784:
17785: for ac_func in closedir opendir readdir
17786: do
17787: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17788: echo "$as_me:$LINENO: checking for $ac_func" >&5
17789: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17790: if eval "test \"\${$as_ac_var+set}\" = set"; then
17791: echo $ECHO_N "(cached) $ECHO_C" >&6
1.64 paf 17792: else
17793: cat >conftest.$ac_ext <<_ACEOF
17794: /* confdefs.h. */
17795: _ACEOF
17796: cat confdefs.h >>conftest.$ac_ext
17797: cat >>conftest.$ac_ext <<_ACEOF
17798: /* end confdefs.h. */
1.128 moko 17799: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17800: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17801: #define $ac_func innocuous_$ac_func
17802:
17803: /* System header to define __stub macros and hopefully few prototypes,
17804: which can conflict with char $ac_func (); below.
17805: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17806: <limits.h> exists even on freestanding compilers. */
17807:
1.66 paf 17808: #ifdef __STDC__
17809: # include <limits.h>
17810: #else
17811: # include <assert.h>
1.64 paf 17812: #endif
1.128 moko 17813:
17814: #undef $ac_func
17815:
17816: /* Override any gcc2 internal prototype to avoid an error. */
17817: #ifdef __cplusplus
17818: extern "C"
17819: {
17820: #endif
17821: /* We use char because int might match the return type of a gcc2
17822: builtin and then its argument prototype would still apply. */
17823: char $ac_func ();
17824: /* The GNU C library defines this for functions which it implements
17825: to always fail with ENOSYS. Some functions are actually named
17826: something starting with __ and the normal name is an alias. */
17827: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17828: choke me
17829: #else
17830: char (*f) () = $ac_func;
17831: #endif
17832: #ifdef __cplusplus
17833: }
17834: #endif
17835:
17836: int
17837: main ()
17838: {
17839: return f != $ac_func;
17840: ;
17841: return 0;
17842: }
1.64 paf 17843: _ACEOF
1.128 moko 17844: rm -f conftest.$ac_objext conftest$ac_exeext
17845: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846: (eval $ac_link) 2>conftest.er1
1.64 paf 17847: ac_status=$?
1.66 paf 17848: grep -v '^ *+' conftest.er1 >conftest.err
17849: rm -f conftest.er1
17850: cat conftest.err >&5
1.64 paf 17851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17852: (exit $ac_status); } &&
17853: { ac_try='test -z "$ac_c_werror_flag"
17854: || test ! -s conftest.err'
17855: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856: (eval $ac_try) 2>&5
17857: ac_status=$?
17858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859: (exit $ac_status); }; } &&
17860: { ac_try='test -s conftest$ac_exeext'
17861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862: (eval $ac_try) 2>&5
1.62 paf 17863: ac_status=$?
17864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 17865: (exit $ac_status); }; }; then
17866: eval "$as_ac_var=yes"
1.62 paf 17867: else
17868: echo "$as_me: failed program was:" >&5
17869: sed 's/^/| /' conftest.$ac_ext >&5
17870:
1.128 moko 17871: eval "$as_ac_var=no"
17872: fi
17873: rm -f conftest.err conftest.$ac_objext \
17874: conftest$ac_exeext conftest.$ac_ext
1.62 paf 17875: fi
1.128 moko 17876: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17877: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17878: if test `eval echo '${'$as_ac_var'}'` = yes; then
17879: cat >>confdefs.h <<_ACEOF
17880: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17881: _ACEOF
1.66 paf 17882:
17883: else
1.64 paf 17884:
1.66 paf 17885:
1.128 moko 17886: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.1 paf 17887:
1.66 paf 17888: fi
1.128 moko 17889: done
17890:
1.66 paf 17891:
17892:
1.128 moko 17893: for ac_func in strlcat strlcpy
17894: do
17895: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896: echo "$as_me:$LINENO: checking for $ac_func" >&5
17897: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 17899: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 17900: else
1.66 paf 17901: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 17902: /* confdefs.h. */
17903: _ACEOF
17904: cat confdefs.h >>conftest.$ac_ext
17905: cat >>conftest.$ac_ext <<_ACEOF
17906: /* end confdefs.h. */
1.128 moko 17907: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909: #define $ac_func innocuous_$ac_func
17910:
17911: /* System header to define __stub macros and hopefully few prototypes,
17912: which can conflict with char $ac_func (); below.
17913: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914: <limits.h> exists even on freestanding compilers. */
17915:
17916: #ifdef __STDC__
17917: # include <limits.h>
17918: #else
17919: # include <assert.h>
17920: #endif
17921:
17922: #undef $ac_func
17923:
17924: /* Override any gcc2 internal prototype to avoid an error. */
17925: #ifdef __cplusplus
17926: extern "C"
17927: {
17928: #endif
17929: /* We use char because int might match the return type of a gcc2
17930: builtin and then its argument prototype would still apply. */
17931: char $ac_func ();
17932: /* The GNU C library defines this for functions which it implements
17933: to always fail with ENOSYS. Some functions are actually named
17934: something starting with __ and the normal name is an alias. */
17935: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17936: choke me
17937: #else
17938: char (*f) () = $ac_func;
17939: #endif
17940: #ifdef __cplusplus
17941: }
17942: #endif
1.62 paf 17943:
17944: int
17945: main ()
17946: {
1.128 moko 17947: return f != $ac_func;
1.62 paf 17948: ;
17949: return 0;
17950: }
17951: _ACEOF
1.128 moko 17952: rm -f conftest.$ac_objext conftest$ac_exeext
17953: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954: (eval $ac_link) 2>conftest.er1
1.62 paf 17955: ac_status=$?
1.86 paf 17956: grep -v '^ *+' conftest.er1 >conftest.err
17957: rm -f conftest.er1
17958: cat conftest.err >&5
1.62 paf 17959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960: (exit $ac_status); } &&
1.86 paf 17961: { ac_try='test -z "$ac_c_werror_flag"
17962: || test ! -s conftest.err'
17963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964: (eval $ac_try) 2>&5
17965: ac_status=$?
17966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967: (exit $ac_status); }; } &&
1.128 moko 17968: { ac_try='test -s conftest$ac_exeext'
1.62 paf 17969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970: (eval $ac_try) 2>&5
17971: ac_status=$?
17972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973: (exit $ac_status); }; }; then
1.128 moko 17974: eval "$as_ac_var=yes"
1.62 paf 17975: else
17976: echo "$as_me: failed program was:" >&5
17977: sed 's/^/| /' conftest.$ac_ext >&5
17978:
1.128 moko 17979: eval "$as_ac_var=no"
17980: fi
17981: rm -f conftest.err conftest.$ac_objext \
17982: conftest$ac_exeext conftest.$ac_ext
17983: fi
17984: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17985: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17986: if test `eval echo '${'$as_ac_var'}'` = yes; then
17987: cat >>confdefs.h <<_ACEOF
17988: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17989: _ACEOF
17990:
17991: else
17992:
17993:
17994: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17995:
1.62 paf 17996: fi
1.128 moko 17997: done
17998:
17999:
1.64 paf 18000:
1.128 moko 18001: cat >>confdefs.h <<_ACEOF
18002: #define LT_LIBEXT "$libext"
1.62 paf 18003: _ACEOF
1.64 paf 18004:
1.128 moko 18005:
18006: name=
18007: eval "lt_libprefix=\"$libname_spec\""
18008:
18009: cat >>confdefs.h <<_ACEOF
18010: #define LT_LIBPREFIX "$lt_libprefix"
1.66 paf 18011: _ACEOF
1.128 moko 18012:
18013:
18014: name=ltdl
18015: eval "LTDLOPEN=\"$libname_spec\""
18016:
18017:
18018:
18019:
18020:
18021:
18022:
18023:
18024: # Only expand once:
18025:
18026:
18027:
18028:
18029: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18030: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18031: if test "${ac_cv_c_bigendian+set}" = set; then
18032: echo $ECHO_N "(cached) $ECHO_C" >&6
18033: else
18034: # See if sys/param.h defines the BYTE_ORDER macro.
18035: cat >conftest.$ac_ext <<_ACEOF
1.66 paf 18036: /* confdefs.h. */
18037: _ACEOF
18038: cat confdefs.h >>conftest.$ac_ext
18039: cat >>conftest.$ac_ext <<_ACEOF
18040: /* end confdefs.h. */
1.128 moko 18041: #include <sys/types.h>
18042: #include <sys/param.h>
18043:
18044: int
18045: main ()
18046: {
18047: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18048: bogus endian macros
18049: #endif
1.64 paf 18050:
1.128 moko 18051: ;
18052: return 0;
18053: }
1.66 paf 18054: _ACEOF
1.128 moko 18055: rm -f conftest.$ac_objext
18056: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18057: (eval $ac_compile) 2>conftest.er1
18058: ac_status=$?
18059: grep -v '^ *+' conftest.er1 >conftest.err
18060: rm -f conftest.er1
18061: cat conftest.err >&5
18062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063: (exit $ac_status); } &&
18064: { ac_try='test -z "$ac_c_werror_flag"
18065: || test ! -s conftest.err'
18066: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067: (eval $ac_try) 2>&5
18068: ac_status=$?
18069: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070: (exit $ac_status); }; } &&
18071: { ac_try='test -s conftest.$ac_objext'
18072: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073: (eval $ac_try) 2>&5
18074: ac_status=$?
18075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076: (exit $ac_status); }; }; then
18077: # It does; now see whether it defined to BIG_ENDIAN or not.
18078: cat >conftest.$ac_ext <<_ACEOF
1.64 paf 18079: /* confdefs.h. */
18080: _ACEOF
18081: cat confdefs.h >>conftest.$ac_ext
18082: cat >>conftest.$ac_ext <<_ACEOF
18083: /* end confdefs.h. */
1.128 moko 18084: #include <sys/types.h>
18085: #include <sys/param.h>
1.64 paf 18086:
18087: int
18088: main ()
1.128 moko 18089: {
18090: #if BYTE_ORDER != BIG_ENDIAN
18091: not big endian
18092: #endif
18093:
18094: ;
18095: return 0;
1.64 paf 18096: }
18097: _ACEOF
1.128 moko 18098: rm -f conftest.$ac_objext
18099: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100: (eval $ac_compile) 2>conftest.er1
18101: ac_status=$?
18102: grep -v '^ *+' conftest.er1 >conftest.err
18103: rm -f conftest.er1
18104: cat conftest.err >&5
18105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106: (exit $ac_status); } &&
18107: { ac_try='test -z "$ac_c_werror_flag"
18108: || test ! -s conftest.err'
18109: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110: (eval $ac_try) 2>&5
1.64 paf 18111: ac_status=$?
18112: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.128 moko 18113: (exit $ac_status); }; } &&
18114: { ac_try='test -s conftest.$ac_objext'
1.64 paf 18115: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116: (eval $ac_try) 2>&5
18117: ac_status=$?
18118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119: (exit $ac_status); }; }; then
1.128 moko 18120: ac_cv_c_bigendian=yes
1.64 paf 18121: else
1.128 moko 18122: echo "$as_me: failed program was:" >&5
1.64 paf 18123: sed 's/^/| /' conftest.$ac_ext >&5
18124:
1.128 moko 18125: ac_cv_c_bigendian=no
1.66 paf 18126: fi
1.128 moko 18127: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18128: else
18129: echo "$as_me: failed program was:" >&5
18130: sed 's/^/| /' conftest.$ac_ext >&5
1.66 paf 18131:
1.128 moko 18132: # It does not; compile a test program.
18133: if test "$cross_compiling" = yes; then
18134: # try to guess the endianness by grepping values into an object file
18135: ac_cv_c_bigendian=unknown
1.62 paf 18136: cat >conftest.$ac_ext <<_ACEOF
18137: /* confdefs.h. */
18138: _ACEOF
18139: cat confdefs.h >>conftest.$ac_ext
18140: cat >>conftest.$ac_ext <<_ACEOF
18141: /* end confdefs.h. */
1.128 moko 18142: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18143: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18144: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
18145: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18146: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18147: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
18148: int
18149: main ()
18150: {
18151: _ascii (); _ebcdic ();
18152: ;
18153: return 0;
18154: }
1.62 paf 18155: _ACEOF
1.66 paf 18156: rm -f conftest.$ac_objext
18157: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18158: (eval $ac_compile) 2>conftest.er1
1.66 paf 18159: ac_status=$?
1.86 paf 18160: grep -v '^ *+' conftest.er1 >conftest.err
18161: rm -f conftest.er1
18162: cat conftest.err >&5
1.66 paf 18163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164: (exit $ac_status); } &&
1.86 paf 18165: { ac_try='test -z "$ac_c_werror_flag"
18166: || test ! -s conftest.err'
18167: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168: (eval $ac_try) 2>&5
18169: ac_status=$?
18170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171: (exit $ac_status); }; } &&
18172: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18173: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174: (eval $ac_try) 2>&5
1.62 paf 18175: ac_status=$?
18176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18177: (exit $ac_status); }; }; then
1.128 moko 18178: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
18179: ac_cv_c_bigendian=yes
18180: fi
18181: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18182: if test "$ac_cv_c_bigendian" = unknown; then
18183: ac_cv_c_bigendian=no
18184: else
18185: # finding both strings is unlikely to happen, but who knows?
18186: ac_cv_c_bigendian=unknown
18187: fi
18188: fi
1.62 paf 18189: else
18190: echo "$as_me: failed program was:" >&5
18191: sed 's/^/| /' conftest.$ac_ext >&5
18192:
1.128 moko 18193: fi
18194: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18195: else
18196: cat >conftest.$ac_ext <<_ACEOF
18197: /* confdefs.h. */
18198: _ACEOF
18199: cat confdefs.h >>conftest.$ac_ext
18200: cat >>conftest.$ac_ext <<_ACEOF
18201: /* end confdefs.h. */
18202: int
18203: main ()
18204: {
18205: /* Are we little or big endian? From Harbison&Steele. */
18206: union
18207: {
18208: long l;
18209: char c[sizeof (long)];
18210: } u;
18211: u.l = 1;
18212: exit (u.c[sizeof (long) - 1] == 1);
18213: }
18214: _ACEOF
18215: rm -f conftest$ac_exeext
18216: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217: (eval $ac_link) 2>&5
18218: ac_status=$?
18219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222: (eval $ac_try) 2>&5
18223: ac_status=$?
18224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225: (exit $ac_status); }; }; then
18226: ac_cv_c_bigendian=no
18227: else
18228: echo "$as_me: program exited with status $ac_status" >&5
18229: echo "$as_me: failed program was:" >&5
18230: sed 's/^/| /' conftest.$ac_ext >&5
18231:
18232: ( exit $ac_status )
18233: ac_cv_c_bigendian=yes
18234: fi
18235: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18236: fi
1.66 paf 18237: fi
1.86 paf 18238: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18239: fi
1.128 moko 18240: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18241: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18242: case $ac_cv_c_bigendian in
18243: yes)
18244:
18245: cat >>confdefs.h <<\_ACEOF
18246: #define PA_BIG_ENDIAN
1.66 paf 18247: _ACEOF
18248:
1.128 moko 18249: ;;
18250: no)
18251:
18252: cat >>confdefs.h <<\_ACEOF
18253: #define PA_LITTLE_ENDIAN
18254: _ACEOF
1.1 paf 18255:
1.128 moko 18256: ;;
18257: *)
18258: { { echo "$as_me:$LINENO: error: word endianness not determined for some obscure reason" >&5
18259: echo "$as_me: error: word endianness not determined for some obscure reason" >&2;}
18260: { (exit 1); exit 1; }; }
18261: ;;
18262: esac
1.66 paf 18263:
18264:
18265: echo "$as_me:$LINENO: checking for size_t" >&5
18266: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18267: if test "${ac_cv_type_size_t+set}" = set; then
18268: echo $ECHO_N "(cached) $ECHO_C" >&6
18269: else
1.62 paf 18270: cat >conftest.$ac_ext <<_ACEOF
18271: /* confdefs.h. */
18272: _ACEOF
18273: cat confdefs.h >>conftest.$ac_ext
18274: cat >>conftest.$ac_ext <<_ACEOF
18275: /* end confdefs.h. */
1.66 paf 18276: $ac_includes_default
18277: int
18278: main ()
18279: {
18280: if ((size_t *) 0)
18281: return 0;
18282: if (sizeof (size_t))
18283: return 0;
18284: ;
18285: return 0;
18286: }
1.62 paf 18287: _ACEOF
1.66 paf 18288: rm -f conftest.$ac_objext
18289: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18290: (eval $ac_compile) 2>conftest.er1
1.66 paf 18291: ac_status=$?
1.86 paf 18292: grep -v '^ *+' conftest.er1 >conftest.err
18293: rm -f conftest.er1
18294: cat conftest.err >&5
1.66 paf 18295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296: (exit $ac_status); } &&
1.86 paf 18297: { ac_try='test -z "$ac_c_werror_flag"
18298: || test ! -s conftest.err'
18299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300: (eval $ac_try) 2>&5
18301: ac_status=$?
18302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303: (exit $ac_status); }; } &&
18304: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306: (eval $ac_try) 2>&5
1.62 paf 18307: ac_status=$?
18308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18309: (exit $ac_status); }; }; then
18310: ac_cv_type_size_t=yes
1.1 paf 18311: else
1.62 paf 18312: echo "$as_me: failed program was:" >&5
18313: sed 's/^/| /' conftest.$ac_ext >&5
18314:
1.66 paf 18315: ac_cv_type_size_t=no
1.1 paf 18316: fi
1.86 paf 18317: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18318: fi
1.66 paf 18319: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18320: echo "${ECHO_T}$ac_cv_type_size_t" >&6
18321: if test $ac_cv_type_size_t = yes; then
18322: :
18323: else
1.1 paf 18324:
1.66 paf 18325: cat >>confdefs.h <<_ACEOF
18326: #define size_t unsigned
18327: _ACEOF
1.62 paf 18328:
18329: fi
1.66 paf 18330:
1.128 moko 18331:
18332:
1.66 paf 18333: echo "$as_me:$LINENO: checking for off_t" >&5
18334: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
18335: if test "${ac_cv_type_off_t+set}" = set; then
18336: echo $ECHO_N "(cached) $ECHO_C" >&6
1.62 paf 18337: else
18338: cat >conftest.$ac_ext <<_ACEOF
18339: /* confdefs.h. */
18340: _ACEOF
18341: cat confdefs.h >>conftest.$ac_ext
18342: cat >>conftest.$ac_ext <<_ACEOF
18343: /* end confdefs.h. */
1.66 paf 18344: $ac_includes_default
18345: int
18346: main ()
18347: {
18348: if ((off_t *) 0)
18349: return 0;
18350: if (sizeof (off_t))
18351: return 0;
18352: ;
18353: return 0;
18354: }
1.62 paf 18355: _ACEOF
1.66 paf 18356: rm -f conftest.$ac_objext
18357: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18358: (eval $ac_compile) 2>conftest.er1
1.66 paf 18359: ac_status=$?
1.86 paf 18360: grep -v '^ *+' conftest.er1 >conftest.err
18361: rm -f conftest.er1
18362: cat conftest.err >&5
1.66 paf 18363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364: (exit $ac_status); } &&
1.86 paf 18365: { ac_try='test -z "$ac_c_werror_flag"
18366: || test ! -s conftest.err'
18367: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368: (eval $ac_try) 2>&5
18369: ac_status=$?
18370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371: (exit $ac_status); }; } &&
18372: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18373: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18374: (eval $ac_try) 2>&5
1.62 paf 18375: ac_status=$?
18376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18377: (exit $ac_status); }; }; then
18378: ac_cv_type_off_t=yes
1.62 paf 18379: else
1.66 paf 18380: echo "$as_me: failed program was:" >&5
18381: sed 's/^/| /' conftest.$ac_ext >&5
18382:
18383: ac_cv_type_off_t=no
18384: fi
1.86 paf 18385: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 18386: fi
1.66 paf 18387: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18388: echo "${ECHO_T}$ac_cv_type_off_t" >&6
18389: if test $ac_cv_type_off_t = yes; then
1.62 paf 18390: :
18391: else
1.1 paf 18392:
1.66 paf 18393: cat >>confdefs.h <<_ACEOF
18394: #define off_t long
18395: _ACEOF
18396:
1.62 paf 18397: fi
1.1 paf 18398:
1.66 paf 18399: echo "$as_me:$LINENO: checking for ssize_t" >&5
18400: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
18401: if test "${ac_cv_type_ssize_t+set}" = set; then
18402: echo $ECHO_N "(cached) $ECHO_C" >&6
18403: else
1.62 paf 18404: cat >conftest.$ac_ext <<_ACEOF
18405: /* confdefs.h. */
18406: _ACEOF
18407: cat confdefs.h >>conftest.$ac_ext
18408: cat >>conftest.$ac_ext <<_ACEOF
18409: /* end confdefs.h. */
1.66 paf 18410: $ac_includes_default
18411: int
18412: main ()
18413: {
18414: if ((ssize_t *) 0)
18415: return 0;
18416: if (sizeof (ssize_t))
18417: return 0;
18418: ;
18419: return 0;
18420: }
1.62 paf 18421: _ACEOF
1.66 paf 18422: rm -f conftest.$ac_objext
18423: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18424: (eval $ac_compile) 2>conftest.er1
1.66 paf 18425: ac_status=$?
1.86 paf 18426: grep -v '^ *+' conftest.er1 >conftest.err
18427: rm -f conftest.er1
18428: cat conftest.err >&5
1.66 paf 18429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430: (exit $ac_status); } &&
1.86 paf 18431: { ac_try='test -z "$ac_c_werror_flag"
18432: || test ! -s conftest.err'
18433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434: (eval $ac_try) 2>&5
18435: ac_status=$?
18436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437: (exit $ac_status); }; } &&
18438: { ac_try='test -s conftest.$ac_objext'
1.66 paf 18439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440: (eval $ac_try) 2>&5
1.62 paf 18441: ac_status=$?
18442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18443: (exit $ac_status); }; }; then
18444: ac_cv_type_ssize_t=yes
1.1 paf 18445: else
1.62 paf 18446: echo "$as_me: failed program was:" >&5
18447: sed 's/^/| /' conftest.$ac_ext >&5
18448:
1.66 paf 18449: ac_cv_type_ssize_t=no
18450: fi
1.86 paf 18451: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 18452: fi
1.66 paf 18453: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
18454: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
18455: if test $ac_cv_type_ssize_t = yes; then
1.1 paf 18456: :
18457: else
1.66 paf 18458:
18459: cat >>confdefs.h <<_ACEOF
18460: #define ssize_t int
18461: _ACEOF
18462:
1.1 paf 18463: fi
1.62 paf 18464:
18465:
18466:
1.66 paf 18467: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18468: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18469: if test "${ac_cv_header_time+set}" = set; then
1.62 paf 18470: echo $ECHO_N "(cached) $ECHO_C" >&6
18471: else
18472: cat >conftest.$ac_ext <<_ACEOF
18473: /* confdefs.h. */
18474: _ACEOF
18475: cat confdefs.h >>conftest.$ac_ext
18476: cat >>conftest.$ac_ext <<_ACEOF
18477: /* end confdefs.h. */
1.66 paf 18478: #include <sys/types.h>
18479: #include <sys/time.h>
18480: #include <time.h>
1.62 paf 18481:
18482: int
18483: main ()
18484: {
1.66 paf 18485: if ((struct tm *) 0)
18486: return 0;
1.62 paf 18487: ;
18488: return 0;
18489: }
18490: _ACEOF
18491: rm -f conftest.$ac_objext
18492: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18493: (eval $ac_compile) 2>conftest.er1
1.62 paf 18494: ac_status=$?
1.86 paf 18495: grep -v '^ *+' conftest.er1 >conftest.err
18496: rm -f conftest.er1
18497: cat conftest.err >&5
1.62 paf 18498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499: (exit $ac_status); } &&
1.86 paf 18500: { ac_try='test -z "$ac_c_werror_flag"
18501: || test ! -s conftest.err'
18502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503: (eval $ac_try) 2>&5
18504: ac_status=$?
18505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506: (exit $ac_status); }; } &&
18507: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509: (eval $ac_try) 2>&5
18510: ac_status=$?
18511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512: (exit $ac_status); }; }; then
1.66 paf 18513: ac_cv_header_time=yes
1.1 paf 18514: else
1.62 paf 18515: echo "$as_me: failed program was:" >&5
18516: sed 's/^/| /' conftest.$ac_ext >&5
18517:
1.66 paf 18518: ac_cv_header_time=no
1.1 paf 18519: fi
1.86 paf 18520: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18521: fi
18522: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18523: echo "${ECHO_T}$ac_cv_header_time" >&6
18524: if test $ac_cv_header_time = yes; then
1.1 paf 18525:
1.66 paf 18526: cat >>confdefs.h <<\_ACEOF
18527: #define TIME_WITH_SYS_TIME 1
1.62 paf 18528: _ACEOF
18529:
1.1 paf 18530: fi
18531:
18532:
1.62 paf 18533:
1.1 paf 18534:
1.66 paf 18535:
18536:
18537:
18538:
18539:
18540:
18541:
18542:
18543:
18544:
18545:
18546:
18547:
18548:
18549:
18550:
18551:
18552:
18553:
18554:
18555:
18556:
18557:
18558:
18559:
18560:
18561:
18562:
1.128 moko 18563:
1.67 paf 18564: for ac_header in assert.h \
18565: signal.h \
1.66 paf 18566: unistd.h \
18567: process.h \
18568: stddef.h \
18569: stdarg.h \
18570: fcntl.h \
18571: sys/stat.h \
18572: io.h \
18573: stdio.h \
18574: errno.h \
18575: ctype.h \
18576: math.h \
18577: crypt.h \
18578: time.h sys/time.h \
18579: string.h \
18580: direct.h \
18581: setjmp.h \
18582: memory.h \
1.128 moko 18583: limits.h \
1.66 paf 18584: sys/file.h \
18585: sys/locking.h \
18586: sys/types.h \
18587: sys/select.h \
18588: sys/resource.h \
18589: winsock.h \
18590: sys/socket.h \
18591: netinet/in.h \
18592: arpa/inet.h \
18593: netdb.h
18594:
18595: do
18596: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18597: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18598: echo "$as_me:$LINENO: checking for $ac_header" >&5
18599: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18600: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18601: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 18602: fi
1.66 paf 18603: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18604: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18605: else
1.66 paf 18606: # Is the header compilable?
18607: echo "$as_me:$LINENO: checking $ac_header usability" >&5
18608: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18609: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18610: /* confdefs.h. */
18611: _ACEOF
18612: cat confdefs.h >>conftest.$ac_ext
18613: cat >>conftest.$ac_ext <<_ACEOF
18614: /* end confdefs.h. */
1.66 paf 18615: $ac_includes_default
18616: #include <$ac_header>
1.62 paf 18617: _ACEOF
1.66 paf 18618: rm -f conftest.$ac_objext
18619: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 18620: (eval $ac_compile) 2>conftest.er1
1.62 paf 18621: ac_status=$?
1.86 paf 18622: grep -v '^ *+' conftest.er1 >conftest.err
18623: rm -f conftest.er1
18624: cat conftest.err >&5
1.62 paf 18625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 18626: (exit $ac_status); } &&
1.86 paf 18627: { ac_try='test -z "$ac_c_werror_flag"
18628: || test ! -s conftest.err'
18629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630: (eval $ac_try) 2>&5
18631: ac_status=$?
18632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633: (exit $ac_status); }; } &&
18634: { ac_try='test -s conftest.$ac_objext'
1.62 paf 18635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636: (eval $ac_try) 2>&5
18637: ac_status=$?
18638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639: (exit $ac_status); }; }; then
1.66 paf 18640: ac_header_compiler=yes
1.1 paf 18641: else
1.66 paf 18642: echo "$as_me: failed program was:" >&5
1.62 paf 18643: sed 's/^/| /' conftest.$ac_ext >&5
18644:
1.66 paf 18645: ac_header_compiler=no
1.1 paf 18646: fi
1.86 paf 18647: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.66 paf 18648: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18649: echo "${ECHO_T}$ac_header_compiler" >&6
18650:
18651: # Is the header present?
18652: echo "$as_me:$LINENO: checking $ac_header presence" >&5
18653: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18654: cat >conftest.$ac_ext <<_ACEOF
18655: /* confdefs.h. */
18656: _ACEOF
18657: cat confdefs.h >>conftest.$ac_ext
18658: cat >>conftest.$ac_ext <<_ACEOF
18659: /* end confdefs.h. */
18660: #include <$ac_header>
18661: _ACEOF
18662: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18663: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18664: ac_status=$?
18665: grep -v '^ *+' conftest.er1 >conftest.err
18666: rm -f conftest.er1
18667: cat conftest.err >&5
18668: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669: (exit $ac_status); } >/dev/null; then
18670: if test -s conftest.err; then
18671: ac_cpp_err=$ac_c_preproc_warn_flag
1.86 paf 18672: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.66 paf 18673: else
18674: ac_cpp_err=
18675: fi
18676: else
18677: ac_cpp_err=yes
1.1 paf 18678: fi
1.66 paf 18679: if test -z "$ac_cpp_err"; then
18680: ac_header_preproc=yes
18681: else
18682: echo "$as_me: failed program was:" >&5
18683: sed 's/^/| /' conftest.$ac_ext >&5
18684:
18685: ac_header_preproc=no
1.1 paf 18686: fi
1.66 paf 18687: rm -f conftest.err conftest.$ac_ext
18688: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18689: echo "${ECHO_T}$ac_header_preproc" >&6
18690:
18691: # So? What about this header?
1.86 paf 18692: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18693: yes:no: )
1.66 paf 18694: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18695: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.86 paf 18696: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18697: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18698: ac_header_preproc=yes
1.66 paf 18699: ;;
1.86 paf 18700: no:yes:* )
1.66 paf 18701: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18702: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.86 paf 18703: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18704: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18705: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18706: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18707: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18708: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.66 paf 18709: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18710: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.86 paf 18711: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18712: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.66 paf 18713: (
18714: cat <<\_ASBOX
1.128 moko 18715: ## --------------------------------- ##
18716: ## Report this to the parser lists. ##
18717: ## --------------------------------- ##
1.66 paf 18718: _ASBOX
18719: ) |
18720: sed "s/^/$as_me: WARNING: /" >&2
18721: ;;
18722: esac
18723: echo "$as_me:$LINENO: checking for $ac_header" >&5
18724: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18725: if eval "test \"\${$as_ac_Header+set}\" = set"; then
18726: echo $ECHO_N "(cached) $ECHO_C" >&6
18727: else
1.86 paf 18728: eval "$as_ac_Header=\$ac_header_preproc"
1.1 paf 18729: fi
1.66 paf 18730: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18731: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 paf 18732:
1.66 paf 18733: fi
18734: if test `eval echo '${'$as_ac_Header'}'` = yes; then
18735: cat >>confdefs.h <<_ACEOF
18736: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.62 paf 18737: _ACEOF
18738:
18739: fi
18740:
1.66 paf 18741: done
1.62 paf 18742:
18743:
18744:
1.128 moko 18745:
18746:
1.66 paf 18747: case "$host" in
1.107 misha 18748: *-freebsd4*)
18749:
18750: cat >>confdefs.h <<\_ACEOF
18751: #define FREEBSD4
18752: _ACEOF
18753:
18754: ;;
1.66 paf 18755: *-sunos5.6* | *-solaris2.6*)
1.62 paf 18756:
1.66 paf 18757: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
18758: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
18759: if test "${ac_cv_lib_xnet_main+set}" = set; then
1.62 paf 18760: echo $ECHO_N "(cached) $ECHO_C" >&6
18761: else
1.66 paf 18762: ac_check_lib_save_LIBS=$LIBS
18763: LIBS="-lxnet $LIBS"
18764: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18765: /* confdefs.h. */
18766: _ACEOF
18767: cat confdefs.h >>conftest.$ac_ext
18768: cat >>conftest.$ac_ext <<_ACEOF
18769: /* end confdefs.h. */
18770:
1.66 paf 18771:
18772: int
18773: main ()
18774: {
18775: main ();
18776: ;
18777: return 0;
18778: }
1.62 paf 18779: _ACEOF
1.66 paf 18780: rm -f conftest.$ac_objext conftest$ac_exeext
18781: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18782: (eval $ac_link) 2>conftest.er1
1.62 paf 18783: ac_status=$?
1.86 paf 18784: grep -v '^ *+' conftest.er1 >conftest.err
18785: rm -f conftest.er1
18786: cat conftest.err >&5
1.62 paf 18787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788: (exit $ac_status); } &&
1.86 paf 18789: { ac_try='test -z "$ac_c_werror_flag"
18790: || test ! -s conftest.err'
18791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792: (eval $ac_try) 2>&5
18793: ac_status=$?
18794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795: (exit $ac_status); }; } &&
18796: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18797: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798: (eval $ac_try) 2>&5
18799: ac_status=$?
18800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801: (exit $ac_status); }; }; then
1.66 paf 18802: ac_cv_lib_xnet_main=yes
1.62 paf 18803: else
18804: echo "$as_me: failed program was:" >&5
18805: sed 's/^/| /' conftest.$ac_ext >&5
18806:
1.66 paf 18807: ac_cv_lib_xnet_main=no
1.62 paf 18808: fi
1.86 paf 18809: rm -f conftest.err conftest.$ac_objext \
18810: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18811: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18812: fi
1.66 paf 18813: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
18814: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
18815: if test $ac_cv_lib_xnet_main = yes; then
1.62 paf 18816: cat >>confdefs.h <<_ACEOF
1.66 paf 18817: #define HAVE_LIBXNET 1
1.62 paf 18818: _ACEOF
1.1 paf 18819:
1.66 paf 18820: LIBS="-lxnet $LIBS"
18821:
1.1 paf 18822: fi
18823:
1.66 paf 18824: ;;
18825: *-sunos5* | *-solaris2*)
1.62 paf 18826:
1.66 paf 18827: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
18828: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
18829: if test "${ac_cv_lib_socket_main+set}" = set; then
1.62 paf 18830: echo $ECHO_N "(cached) $ECHO_C" >&6
18831: else
1.66 paf 18832: ac_check_lib_save_LIBS=$LIBS
18833: LIBS="-lsocket $LIBS"
18834: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18835: /* confdefs.h. */
18836: _ACEOF
18837: cat confdefs.h >>conftest.$ac_ext
18838: cat >>conftest.$ac_ext <<_ACEOF
18839: /* end confdefs.h. */
1.66 paf 18840:
18841:
1.62 paf 18842: int
18843: main ()
18844: {
1.66 paf 18845: main ();
1.62 paf 18846: ;
18847: return 0;
18848: }
18849: _ACEOF
1.66 paf 18850: rm -f conftest.$ac_objext conftest$ac_exeext
18851: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18852: (eval $ac_link) 2>conftest.er1
1.62 paf 18853: ac_status=$?
1.86 paf 18854: grep -v '^ *+' conftest.er1 >conftest.err
18855: rm -f conftest.er1
18856: cat conftest.err >&5
1.62 paf 18857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858: (exit $ac_status); } &&
1.86 paf 18859: { ac_try='test -z "$ac_c_werror_flag"
18860: || test ! -s conftest.err'
18861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862: (eval $ac_try) 2>&5
18863: ac_status=$?
18864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865: (exit $ac_status); }; } &&
18866: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868: (eval $ac_try) 2>&5
18869: ac_status=$?
18870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871: (exit $ac_status); }; }; then
1.66 paf 18872: ac_cv_lib_socket_main=yes
1.1 paf 18873: else
1.62 paf 18874: echo "$as_me: failed program was:" >&5
18875: sed 's/^/| /' conftest.$ac_ext >&5
18876:
1.66 paf 18877: ac_cv_lib_socket_main=no
1.1 paf 18878: fi
1.86 paf 18879: rm -f conftest.err conftest.$ac_objext \
18880: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18881: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18882: fi
1.66 paf 18883: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
18884: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
18885: if test $ac_cv_lib_socket_main = yes; then
18886: cat >>confdefs.h <<_ACEOF
18887: #define HAVE_LIBSOCKET 1
18888: _ACEOF
1.1 paf 18889:
1.66 paf 18890: LIBS="-lsocket $LIBS"
1.1 paf 18891:
18892: fi
18893:
1.66 paf 18894:
18895: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
18896: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
18897: if test "${ac_cv_lib_nsl_main+set}" = set; then
1.62 paf 18898: echo $ECHO_N "(cached) $ECHO_C" >&6
18899: else
1.66 paf 18900: ac_check_lib_save_LIBS=$LIBS
18901: LIBS="-lnsl $LIBS"
18902: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18903: /* confdefs.h. */
18904: _ACEOF
18905: cat confdefs.h >>conftest.$ac_ext
18906: cat >>conftest.$ac_ext <<_ACEOF
18907: /* end confdefs.h. */
1.66 paf 18908:
18909:
1.62 paf 18910: int
18911: main ()
18912: {
1.66 paf 18913: main ();
1.62 paf 18914: ;
18915: return 0;
18916: }
18917: _ACEOF
1.66 paf 18918: rm -f conftest.$ac_objext conftest$ac_exeext
18919: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18920: (eval $ac_link) 2>conftest.er1
1.62 paf 18921: ac_status=$?
1.86 paf 18922: grep -v '^ *+' conftest.er1 >conftest.err
18923: rm -f conftest.er1
18924: cat conftest.err >&5
1.62 paf 18925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926: (exit $ac_status); } &&
1.86 paf 18927: { ac_try='test -z "$ac_c_werror_flag"
18928: || test ! -s conftest.err'
18929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930: (eval $ac_try) 2>&5
18931: ac_status=$?
18932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933: (exit $ac_status); }; } &&
18934: { ac_try='test -s conftest$ac_exeext'
1.62 paf 18935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936: (eval $ac_try) 2>&5
18937: ac_status=$?
18938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939: (exit $ac_status); }; }; then
1.66 paf 18940: ac_cv_lib_nsl_main=yes
1.30 paf 18941: else
1.62 paf 18942: echo "$as_me: failed program was:" >&5
18943: sed 's/^/| /' conftest.$ac_ext >&5
18944:
1.66 paf 18945: ac_cv_lib_nsl_main=no
1.30 paf 18946: fi
1.86 paf 18947: rm -f conftest.err conftest.$ac_objext \
18948: conftest$ac_exeext conftest.$ac_ext
1.66 paf 18949: LIBS=$ac_check_lib_save_LIBS
1.62 paf 18950: fi
1.66 paf 18951: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
18952: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
18953: if test $ac_cv_lib_nsl_main = yes; then
18954: cat >>confdefs.h <<_ACEOF
18955: #define HAVE_LIBNSL 1
18956: _ACEOF
1.30 paf 18957:
1.66 paf 18958: LIBS="-lnsl $LIBS"
1.30 paf 18959:
18960: fi
18961:
1.66 paf 18962: ;;
18963: *-nec-sysv4*)
18964:
18965: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18966: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18967: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
1.62 paf 18968: echo $ECHO_N "(cached) $ECHO_C" >&6
18969: else
1.66 paf 18970: ac_check_lib_save_LIBS=$LIBS
18971: LIBS="-lnsl $LIBS"
18972: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 18973: /* confdefs.h. */
18974: _ACEOF
18975: cat confdefs.h >>conftest.$ac_ext
18976: cat >>conftest.$ac_ext <<_ACEOF
18977: /* end confdefs.h. */
1.66 paf 18978:
18979: /* Override any gcc2 internal prototype to avoid an error. */
18980: #ifdef __cplusplus
18981: extern "C"
18982: #endif
18983: /* We use char because int might match the return type of a gcc2
18984: builtin and then its argument prototype would still apply. */
18985: char gethostbyname ();
1.62 paf 18986: int
18987: main ()
18988: {
1.66 paf 18989: gethostbyname ();
1.62 paf 18990: ;
18991: return 0;
18992: }
18993: _ACEOF
1.66 paf 18994: rm -f conftest.$ac_objext conftest$ac_exeext
18995: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 18996: (eval $ac_link) 2>conftest.er1
1.62 paf 18997: ac_status=$?
1.86 paf 18998: grep -v '^ *+' conftest.er1 >conftest.err
18999: rm -f conftest.er1
19000: cat conftest.err >&5
1.62 paf 19001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002: (exit $ac_status); } &&
1.86 paf 19003: { ac_try='test -z "$ac_c_werror_flag"
19004: || test ! -s conftest.err'
19005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006: (eval $ac_try) 2>&5
19007: ac_status=$?
19008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009: (exit $ac_status); }; } &&
19010: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012: (eval $ac_try) 2>&5
19013: ac_status=$?
19014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015: (exit $ac_status); }; }; then
1.66 paf 19016: ac_cv_lib_nsl_gethostbyname=yes
1.30 paf 19017: else
1.62 paf 19018: echo "$as_me: failed program was:" >&5
19019: sed 's/^/| /' conftest.$ac_ext >&5
19020:
1.66 paf 19021: ac_cv_lib_nsl_gethostbyname=no
1.30 paf 19022: fi
1.86 paf 19023: rm -f conftest.err conftest.$ac_objext \
19024: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19025: LIBS=$ac_check_lib_save_LIBS
1.62 paf 19026: fi
1.66 paf 19027: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19028: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19029: if test $ac_cv_lib_nsl_gethostbyname = yes; then
19030: cat >>confdefs.h <<_ACEOF
19031: #define HAVE_LIBNSL 1
19032: _ACEOF
1.30 paf 19033:
1.66 paf 19034: LIBS="-lnsl $LIBS"
1.30 paf 19035:
19036: fi
19037:
19038:
1.66 paf 19039: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19040: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
19041: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.62 paf 19042: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 19043: else
1.66 paf 19044: ac_check_lib_save_LIBS=$LIBS
19045: LIBS="-lsocket $LIBS"
19046: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 19047: /* confdefs.h. */
19048: _ACEOF
19049: cat confdefs.h >>conftest.$ac_ext
19050: cat >>conftest.$ac_ext <<_ACEOF
19051: /* end confdefs.h. */
19052:
1.66 paf 19053: /* Override any gcc2 internal prototype to avoid an error. */
19054: #ifdef __cplusplus
19055: extern "C"
19056: #endif
19057: /* We use char because int might match the return type of a gcc2
19058: builtin and then its argument prototype would still apply. */
19059: char socket ();
1.62 paf 19060: int
19061: main ()
19062: {
1.66 paf 19063: socket ();
1.62 paf 19064: ;
19065: return 0;
19066: }
19067: _ACEOF
1.66 paf 19068: rm -f conftest.$ac_objext conftest$ac_exeext
19069: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19070: (eval $ac_link) 2>conftest.er1
1.62 paf 19071: ac_status=$?
1.86 paf 19072: grep -v '^ *+' conftest.er1 >conftest.err
19073: rm -f conftest.er1
19074: cat conftest.err >&5
1.62 paf 19075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076: (exit $ac_status); } &&
1.86 paf 19077: { ac_try='test -z "$ac_c_werror_flag"
19078: || test ! -s conftest.err'
19079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080: (eval $ac_try) 2>&5
19081: ac_status=$?
19082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083: (exit $ac_status); }; } &&
19084: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19085: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086: (eval $ac_try) 2>&5
19087: ac_status=$?
19088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089: (exit $ac_status); }; }; then
1.66 paf 19090: ac_cv_lib_socket_socket=yes
1.8 paf 19091: else
1.62 paf 19092: echo "$as_me: failed program was:" >&5
19093: sed 's/^/| /' conftest.$ac_ext >&5
19094:
1.66 paf 19095: ac_cv_lib_socket_socket=no
1.8 paf 19096: fi
1.86 paf 19097: rm -f conftest.err conftest.$ac_objext \
19098: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19099: LIBS=$ac_check_lib_save_LIBS
1.8 paf 19100: fi
1.66 paf 19101: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19102: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
19103: if test $ac_cv_lib_socket_socket = yes; then
19104: cat >>confdefs.h <<_ACEOF
1.128 moko 19105: #define HAVE_LIBSOCKET 1
1.66 paf 19106: _ACEOF
19107:
1.128 moko 19108: LIBS="-lsocket $LIBS"
1.66 paf 19109:
1.62 paf 19110: fi
19111:
1.66 paf 19112: ;;
1.128 moko 19113: *-cygwin*)
19114:
19115: cat >>confdefs.h <<\_ACEOF
19116: #define WIN32
19117: _ACEOF
1.66 paf 19118:
1.128 moko 19119:
19120: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
19121: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
19122: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
1.66 paf 19123: echo $ECHO_N "(cached) $ECHO_C" >&6
19124: else
19125: ac_check_lib_save_LIBS=$LIBS
1.128 moko 19126: LIBS="-lwsock32 $LIBS"
1.62 paf 19127: cat >conftest.$ac_ext <<_ACEOF
19128: /* confdefs.h. */
19129: _ACEOF
19130: cat confdefs.h >>conftest.$ac_ext
19131: cat >>conftest.$ac_ext <<_ACEOF
19132: /* end confdefs.h. */
1.66 paf 19133:
1.128 moko 19134: /* Override any gcc2 internal prototype to avoid an error. */
19135: #ifdef __cplusplus
19136: extern "C"
19137: #endif
19138: /* We use char because int might match the return type of a gcc2
19139: builtin and then its argument prototype would still apply. */
19140: char socket ();
1.66 paf 19141: int
19142: main ()
19143: {
1.128 moko 19144: socket ();
1.66 paf 19145: ;
19146: return 0;
19147: }
1.62 paf 19148: _ACEOF
1.66 paf 19149: rm -f conftest.$ac_objext conftest$ac_exeext
19150: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19151: (eval $ac_link) 2>conftest.er1
1.66 paf 19152: ac_status=$?
1.86 paf 19153: grep -v '^ *+' conftest.er1 >conftest.err
19154: rm -f conftest.er1
19155: cat conftest.err >&5
1.66 paf 19156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157: (exit $ac_status); } &&
1.86 paf 19158: { ac_try='test -z "$ac_c_werror_flag"
19159: || test ! -s conftest.err'
19160: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161: (eval $ac_try) 2>&5
19162: ac_status=$?
19163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164: (exit $ac_status); }; } &&
19165: { ac_try='test -s conftest$ac_exeext'
1.66 paf 19166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167: (eval $ac_try) 2>&5
1.62 paf 19168: ac_status=$?
19169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.66 paf 19170: (exit $ac_status); }; }; then
1.128 moko 19171: ac_cv_lib_wsock32_socket=yes
1.62 paf 19172: else
19173: echo "$as_me: failed program was:" >&5
19174: sed 's/^/| /' conftest.$ac_ext >&5
19175:
1.128 moko 19176: ac_cv_lib_wsock32_socket=no
1.62 paf 19177: fi
1.86 paf 19178: rm -f conftest.err conftest.$ac_objext \
19179: conftest$ac_exeext conftest.$ac_ext
1.66 paf 19180: LIBS=$ac_check_lib_save_LIBS
1.1 paf 19181: fi
1.128 moko 19182: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
19183: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
19184: if test $ac_cv_lib_wsock32_socket = yes; then
1.62 paf 19185: cat >>confdefs.h <<_ACEOF
1.128 moko 19186: #define HAVE_LIBWSOCK32 1
1.62 paf 19187: _ACEOF
19188:
1.128 moko 19189: LIBS="-lwsock32 $LIBS"
1.66 paf 19190:
1.1 paf 19191: fi
1.62 paf 19192:
1.66 paf 19193: ;;
19194: esac
1.1 paf 19195:
19196:
1.66 paf 19197: echo "$as_me:$LINENO: checking for sin in -lm" >&5
19198: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
19199: if test "${ac_cv_lib_m_sin+set}" = set; then
1.62 paf 19200: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19201: else
1.62 paf 19202: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19203: LIBS="-lm $LIBS"
1.62 paf 19204: cat >conftest.$ac_ext <<_ACEOF
19205: /* confdefs.h. */
19206: _ACEOF
19207: cat confdefs.h >>conftest.$ac_ext
19208: cat >>conftest.$ac_ext <<_ACEOF
19209: /* end confdefs.h. */
19210:
1.66 paf 19211: /* Override any gcc2 internal prototype to avoid an error. */
19212: #ifdef __cplusplus
19213: extern "C"
19214: #endif
19215: /* We use char because int might match the return type of a gcc2
19216: builtin and then its argument prototype would still apply. */
19217: char sin ();
1.62 paf 19218: int
19219: main ()
19220: {
1.66 paf 19221: sin ();
1.62 paf 19222: ;
19223: return 0;
19224: }
19225: _ACEOF
19226: rm -f conftest.$ac_objext conftest$ac_exeext
19227: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19228: (eval $ac_link) 2>conftest.er1
1.62 paf 19229: ac_status=$?
1.86 paf 19230: grep -v '^ *+' conftest.er1 >conftest.err
19231: rm -f conftest.er1
19232: cat conftest.err >&5
1.62 paf 19233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234: (exit $ac_status); } &&
1.86 paf 19235: { ac_try='test -z "$ac_c_werror_flag"
19236: || test ! -s conftest.err'
19237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238: (eval $ac_try) 2>&5
19239: ac_status=$?
19240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241: (exit $ac_status); }; } &&
19242: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19243: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244: (eval $ac_try) 2>&5
19245: ac_status=$?
19246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247: (exit $ac_status); }; }; then
1.66 paf 19248: ac_cv_lib_m_sin=yes
1.62 paf 19249: else
19250: echo "$as_me: failed program was:" >&5
19251: sed 's/^/| /' conftest.$ac_ext >&5
19252:
1.66 paf 19253: ac_cv_lib_m_sin=no
1.62 paf 19254: fi
1.86 paf 19255: rm -f conftest.err conftest.$ac_objext \
19256: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19257: LIBS=$ac_check_lib_save_LIBS
19258: fi
1.66 paf 19259: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19260: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
19261: if test $ac_cv_lib_m_sin = yes; then
1.62 paf 19262: cat >>confdefs.h <<_ACEOF
1.66 paf 19263: #define HAVE_LIBM 1
1.62 paf 19264: _ACEOF
1.1 paf 19265:
1.66 paf 19266: LIBS="-lm $LIBS"
1.1 paf 19267:
19268: fi
19269:
1.62 paf 19270:
1.66 paf 19271: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19272: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19273: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.62 paf 19274: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19275: else
1.62 paf 19276: ac_check_lib_save_LIBS=$LIBS
1.66 paf 19277: LIBS="-lcrypt $LIBS"
1.62 paf 19278: cat >conftest.$ac_ext <<_ACEOF
19279: /* confdefs.h. */
19280: _ACEOF
19281: cat confdefs.h >>conftest.$ac_ext
19282: cat >>conftest.$ac_ext <<_ACEOF
19283: /* end confdefs.h. */
19284:
1.66 paf 19285: /* Override any gcc2 internal prototype to avoid an error. */
19286: #ifdef __cplusplus
19287: extern "C"
19288: #endif
19289: /* We use char because int might match the return type of a gcc2
19290: builtin and then its argument prototype would still apply. */
19291: char crypt ();
1.62 paf 19292: int
19293: main ()
19294: {
1.66 paf 19295: crypt ();
1.62 paf 19296: ;
19297: return 0;
19298: }
19299: _ACEOF
19300: rm -f conftest.$ac_objext conftest$ac_exeext
19301: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19302: (eval $ac_link) 2>conftest.er1
1.62 paf 19303: ac_status=$?
1.86 paf 19304: grep -v '^ *+' conftest.er1 >conftest.err
19305: rm -f conftest.er1
19306: cat conftest.err >&5
1.62 paf 19307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308: (exit $ac_status); } &&
1.86 paf 19309: { ac_try='test -z "$ac_c_werror_flag"
19310: || test ! -s conftest.err'
19311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312: (eval $ac_try) 2>&5
19313: ac_status=$?
19314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315: (exit $ac_status); }; } &&
19316: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19317: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318: (eval $ac_try) 2>&5
19319: ac_status=$?
19320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321: (exit $ac_status); }; }; then
1.66 paf 19322: ac_cv_lib_crypt_crypt=yes
1.62 paf 19323: else
19324: echo "$as_me: failed program was:" >&5
19325: sed 's/^/| /' conftest.$ac_ext >&5
19326:
1.66 paf 19327: ac_cv_lib_crypt_crypt=no
1.62 paf 19328: fi
1.86 paf 19329: rm -f conftest.err conftest.$ac_objext \
19330: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19331: LIBS=$ac_check_lib_save_LIBS
19332: fi
1.66 paf 19333: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19334: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19335: if test $ac_cv_lib_crypt_crypt = yes; then
1.62 paf 19336: cat >>confdefs.h <<_ACEOF
1.66 paf 19337: #define HAVE_LIBCRYPT 1
1.62 paf 19338: _ACEOF
1.1 paf 19339:
1.66 paf 19340: LIBS="-lcrypt $LIBS"
19341:
19342: fi
19343:
19344:
19345:
19346:
19347:
19348:
19349:
19350:
19351:
19352:
19353:
19354:
1.80 paf 19355:
1.92 misha 19356:
1.112 misha 19357:
1.67 paf 19358: for ac_func in flock \
1.66 paf 19359: _locking \
19360: fcntl \
19361: lockf \
19362: ftruncate \
1.112 misha 19363: fchmod \
1.66 paf 19364: getrusage \
19365: gettimeofday \
19366: crypt \
1.80 paf 19367: sigsetjmp \
1.92 misha 19368: siglongjmp \
19369: unsetenv
1.66 paf 19370:
19371: do
19372: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19373: echo "$as_me:$LINENO: checking for $ac_func" >&5
19374: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19375: if eval "test \"\${$as_ac_var+set}\" = set"; then
19376: echo $ECHO_N "(cached) $ECHO_C" >&6
19377: else
19378: cat >conftest.$ac_ext <<_ACEOF
19379: /* confdefs.h. */
19380: _ACEOF
19381: cat confdefs.h >>conftest.$ac_ext
19382: cat >>conftest.$ac_ext <<_ACEOF
19383: /* end confdefs.h. */
1.86 paf 19384: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19385: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19386: #define $ac_func innocuous_$ac_func
19387:
1.66 paf 19388: /* System header to define __stub macros and hopefully few prototypes,
19389: which can conflict with char $ac_func (); below.
19390: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391: <limits.h> exists even on freestanding compilers. */
1.86 paf 19392:
1.66 paf 19393: #ifdef __STDC__
19394: # include <limits.h>
19395: #else
19396: # include <assert.h>
19397: #endif
1.86 paf 19398:
19399: #undef $ac_func
19400:
1.66 paf 19401: /* Override any gcc2 internal prototype to avoid an error. */
19402: #ifdef __cplusplus
19403: extern "C"
19404: {
19405: #endif
19406: /* We use char because int might match the return type of a gcc2
19407: builtin and then its argument prototype would still apply. */
19408: char $ac_func ();
19409: /* The GNU C library defines this for functions which it implements
19410: to always fail with ENOSYS. Some functions are actually named
19411: something starting with __ and the normal name is an alias. */
19412: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19413: choke me
19414: #else
19415: char (*f) () = $ac_func;
19416: #endif
19417: #ifdef __cplusplus
19418: }
19419: #endif
1.62 paf 19420:
19421: int
19422: main ()
19423: {
1.66 paf 19424: return f != $ac_func;
1.62 paf 19425: ;
19426: return 0;
19427: }
19428: _ACEOF
19429: rm -f conftest.$ac_objext conftest$ac_exeext
19430: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19431: (eval $ac_link) 2>conftest.er1
1.62 paf 19432: ac_status=$?
1.86 paf 19433: grep -v '^ *+' conftest.er1 >conftest.err
19434: rm -f conftest.er1
19435: cat conftest.err >&5
1.62 paf 19436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437: (exit $ac_status); } &&
1.86 paf 19438: { ac_try='test -z "$ac_c_werror_flag"
19439: || test ! -s conftest.err'
19440: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441: (eval $ac_try) 2>&5
19442: ac_status=$?
19443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444: (exit $ac_status); }; } &&
19445: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447: (eval $ac_try) 2>&5
19448: ac_status=$?
19449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450: (exit $ac_status); }; }; then
1.66 paf 19451: eval "$as_ac_var=yes"
1.62 paf 19452: else
19453: echo "$as_me: failed program was:" >&5
19454: sed 's/^/| /' conftest.$ac_ext >&5
19455:
1.66 paf 19456: eval "$as_ac_var=no"
1.62 paf 19457: fi
1.86 paf 19458: rm -f conftest.err conftest.$ac_objext \
19459: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19460: fi
1.66 paf 19461: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19462: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19463: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19464: cat >>confdefs.h <<_ACEOF
1.66 paf 19465: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19466: _ACEOF
1.1 paf 19467:
1.66 paf 19468: fi
19469: done
19470:
1.1 paf 19471:
19472:
1.67 paf 19473: pa_func=sigsetjmp
19474: echo "$as_me:$LINENO: checking for (maybe built-in) function $pa_func" >&5
19475: echo $ECHO_N "checking for (maybe built-in) function $pa_func... $ECHO_C" >&6
19476: cat >conftest.$ac_ext <<_ACEOF
19477: /* confdefs.h. */
19478: _ACEOF
19479: cat confdefs.h >>conftest.$ac_ext
19480: cat >>conftest.$ac_ext <<_ACEOF
19481: /* end confdefs.h. */
19482:
19483: #ifdef HAVE_SETJMP_H
19484: # include <setjmp.h>
19485: #endif
19486:
19487: int
19488: main ()
19489: {
19490:
19491: $pa_func(0,0);
19492:
19493: ;
19494: return 0;
19495: }
19496: _ACEOF
19497: rm -f conftest.$ac_objext
19498: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19499: (eval $ac_compile) 2>conftest.er1
1.67 paf 19500: ac_status=$?
1.86 paf 19501: grep -v '^ *+' conftest.er1 >conftest.err
19502: rm -f conftest.er1
19503: cat conftest.err >&5
1.67 paf 19504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505: (exit $ac_status); } &&
1.86 paf 19506: { ac_try='test -z "$ac_c_werror_flag"
19507: || test ! -s conftest.err'
19508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509: (eval $ac_try) 2>&5
19510: ac_status=$?
19511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512: (exit $ac_status); }; } &&
19513: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515: (eval $ac_try) 2>&5
19516: ac_status=$?
19517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518: (exit $ac_status); }; }; then
19519: echo "$as_me:$LINENO: result: yes" >&5
19520: echo "${ECHO_T}yes" >&6
19521: cat >>confdefs.h <<_ACEOF
19522: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19523: _ACEOF
19524:
19525:
19526: else
19527: echo "$as_me: failed program was:" >&5
19528: sed 's/^/| /' conftest.$ac_ext >&5
19529:
19530: echo "$as_me:$LINENO: result: no" >&5
19531: echo "${ECHO_T}no" >&6
19532:
19533: fi
1.86 paf 19534: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19535:
19536:
19537:
19538: ac_ext=cc
19539: ac_cpp='$CXXCPP $CPPFLAGS'
19540: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19541: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19542: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19543:
19544:
19545:
19546:
19547:
19548:
19549: for pa_func in trunc \
19550: round \
19551: sign
19552:
19553: do
19554:
19555: echo "$as_me:$LINENO: checking for (maybe built-in) math function $pa_func" >&5
19556: echo $ECHO_N "checking for (maybe built-in) math function $pa_func... $ECHO_C" >&6
19557: cat >conftest.$ac_ext <<_ACEOF
19558: /* confdefs.h. */
19559: _ACEOF
19560: cat confdefs.h >>conftest.$ac_ext
19561: cat >>conftest.$ac_ext <<_ACEOF
19562: /* end confdefs.h. */
19563:
19564: #ifdef HAVE_MATH_H
19565: # include <math.h>
19566: #endif
19567:
19568: int
19569: main ()
19570: {
19571:
19572: double result=$pa_func(1.6);
19573:
19574: ;
19575: return 0;
19576: }
19577: _ACEOF
19578: rm -f conftest.$ac_objext
19579: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19580: (eval $ac_compile) 2>conftest.er1
1.67 paf 19581: ac_status=$?
1.86 paf 19582: grep -v '^ *+' conftest.er1 >conftest.err
19583: rm -f conftest.er1
19584: cat conftest.err >&5
1.67 paf 19585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586: (exit $ac_status); } &&
1.86 paf 19587: { ac_try='test -z "$ac_cxx_werror_flag"
19588: || test ! -s conftest.err'
19589: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590: (eval $ac_try) 2>&5
19591: ac_status=$?
19592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593: (exit $ac_status); }; } &&
19594: { ac_try='test -s conftest.$ac_objext'
1.67 paf 19595: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596: (eval $ac_try) 2>&5
19597: ac_status=$?
19598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599: (exit $ac_status); }; }; then
19600: echo "$as_me:$LINENO: result: yes" >&5
19601: echo "${ECHO_T}yes" >&6
19602: cat >>confdefs.h <<_ACEOF
19603: #define `echo "HAVE_$pa_func" | $as_tr_cpp` 1
19604: _ACEOF
19605:
19606: else
19607: echo "$as_me: failed program was:" >&5
19608: sed 's/^/| /' conftest.$ac_ext >&5
19609:
19610: echo "$as_me:$LINENO: result: no" >&5
19611: echo "${ECHO_T}no" >&6
19612:
19613: fi
1.86 paf 19614: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.67 paf 19615:
19616: done
19617:
19618: ac_ext=c
19619: ac_cpp='$CPP $CPPFLAGS'
19620: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19621: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19622: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19623:
19624:
19625:
1.62 paf 19626:
1.66 paf 19627: for ac_func in qsort
19628: do
19629: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19630: echo "$as_me:$LINENO: checking for $ac_func" >&5
19631: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19632: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.62 paf 19633: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 19634: else
1.66 paf 19635: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 19636: /* confdefs.h. */
19637: _ACEOF
19638: cat confdefs.h >>conftest.$ac_ext
19639: cat >>conftest.$ac_ext <<_ACEOF
19640: /* end confdefs.h. */
1.86 paf 19641: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19642: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19643: #define $ac_func innocuous_$ac_func
19644:
1.66 paf 19645: /* System header to define __stub macros and hopefully few prototypes,
19646: which can conflict with char $ac_func (); below.
19647: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19648: <limits.h> exists even on freestanding compilers. */
1.86 paf 19649:
1.66 paf 19650: #ifdef __STDC__
19651: # include <limits.h>
19652: #else
19653: # include <assert.h>
19654: #endif
1.86 paf 19655:
19656: #undef $ac_func
19657:
1.1 paf 19658: /* Override any gcc2 internal prototype to avoid an error. */
19659: #ifdef __cplusplus
19660: extern "C"
1.66 paf 19661: {
1.1 paf 19662: #endif
19663: /* We use char because int might match the return type of a gcc2
1.62 paf 19664: builtin and then its argument prototype would still apply. */
1.66 paf 19665: char $ac_func ();
19666: /* The GNU C library defines this for functions which it implements
19667: to always fail with ENOSYS. Some functions are actually named
19668: something starting with __ and the normal name is an alias. */
19669: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19670: choke me
19671: #else
19672: char (*f) () = $ac_func;
19673: #endif
19674: #ifdef __cplusplus
19675: }
19676: #endif
19677:
1.62 paf 19678: int
19679: main ()
19680: {
1.66 paf 19681: return f != $ac_func;
1.62 paf 19682: ;
19683: return 0;
19684: }
19685: _ACEOF
19686: rm -f conftest.$ac_objext conftest$ac_exeext
19687: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.86 paf 19688: (eval $ac_link) 2>conftest.er1
1.62 paf 19689: ac_status=$?
1.86 paf 19690: grep -v '^ *+' conftest.er1 >conftest.err
19691: rm -f conftest.er1
19692: cat conftest.err >&5
1.62 paf 19693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694: (exit $ac_status); } &&
1.86 paf 19695: { ac_try='test -z "$ac_c_werror_flag"
19696: || test ! -s conftest.err'
19697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698: (eval $ac_try) 2>&5
19699: ac_status=$?
19700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701: (exit $ac_status); }; } &&
19702: { ac_try='test -s conftest$ac_exeext'
1.62 paf 19703: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704: (eval $ac_try) 2>&5
19705: ac_status=$?
19706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707: (exit $ac_status); }; }; then
1.66 paf 19708: eval "$as_ac_var=yes"
1.62 paf 19709: else
19710: echo "$as_me: failed program was:" >&5
19711: sed 's/^/| /' conftest.$ac_ext >&5
19712:
1.66 paf 19713: eval "$as_ac_var=no"
1.62 paf 19714: fi
1.86 paf 19715: rm -f conftest.err conftest.$ac_objext \
19716: conftest$ac_exeext conftest.$ac_ext
1.62 paf 19717: fi
1.66 paf 19718: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19719: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19720: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.62 paf 19721: cat >>confdefs.h <<_ACEOF
1.66 paf 19722: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.62 paf 19723: _ACEOF
1.1 paf 19724:
1.66 paf 19725: else
19726: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
19727: echo "$as_me: error: No qsort library function." >&2;}
19728: { (exit 1); exit 1; }; }
1.1 paf 19729: fi
1.66 paf 19730: done
1.1 paf 19731:
19732:
1.62 paf 19733:
1.66 paf 19734: echo "$as_me:$LINENO: checking for timezone variable" >&5
19735: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
1.62 paf 19736: cat >conftest.$ac_ext <<_ACEOF
19737: /* confdefs.h. */
19738: _ACEOF
19739: cat confdefs.h >>conftest.$ac_ext
19740: cat >>conftest.$ac_ext <<_ACEOF
19741: /* end confdefs.h. */
1.66 paf 19742: #include <time.h>
1.62 paf 19743: int
19744: main ()
19745: {
1.66 paf 19746:
19747: time_t test=timezone;
19748:
1.62 paf 19749: ;
19750: return 0;
19751: }
19752: _ACEOF
1.66 paf 19753: rm -f conftest.$ac_objext
19754: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19755: (eval $ac_compile) 2>conftest.er1
1.62 paf 19756: ac_status=$?
1.86 paf 19757: grep -v '^ *+' conftest.er1 >conftest.err
19758: rm -f conftest.er1
19759: cat conftest.err >&5
1.62 paf 19760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761: (exit $ac_status); } &&
1.86 paf 19762: { ac_try='test -z "$ac_c_werror_flag"
19763: || test ! -s conftest.err'
19764: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765: (eval $ac_try) 2>&5
19766: ac_status=$?
19767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768: (exit $ac_status); }; } &&
19769: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19770: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771: (eval $ac_try) 2>&5
19772: ac_status=$?
19773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774: (exit $ac_status); }; }; then
1.66 paf 19775: cat >>confdefs.h <<\_ACEOF
19776: #define HAVE_TIMEZONE 1
19777: _ACEOF
19778:
19779: echo "$as_me:$LINENO: result: yes" >&5
19780: echo "${ECHO_T}yes" >&6
1.62 paf 19781: else
19782: echo "$as_me: failed program was:" >&5
19783: sed 's/^/| /' conftest.$ac_ext >&5
19784:
1.66 paf 19785: echo "$as_me:$LINENO: result: no" >&5
19786: echo "${ECHO_T}no" >&6
1.62 paf 19787: fi
1.86 paf 19788: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19789:
1.66 paf 19790: echo "$as_me:$LINENO: checking for daylight variable" >&5
19791: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
1.62 paf 19792: cat >conftest.$ac_ext <<_ACEOF
19793: /* confdefs.h. */
19794: _ACEOF
19795: cat confdefs.h >>conftest.$ac_ext
19796: cat >>conftest.$ac_ext <<_ACEOF
19797: /* end confdefs.h. */
1.66 paf 19798: #include <time.h>
1.62 paf 19799: int
19800: main ()
19801: {
1.66 paf 19802:
19803: int test=daylight;
19804:
1.62 paf 19805: ;
19806: return 0;
19807: }
19808: _ACEOF
1.66 paf 19809: rm -f conftest.$ac_objext
19810: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19811: (eval $ac_compile) 2>conftest.er1
1.62 paf 19812: ac_status=$?
1.86 paf 19813: grep -v '^ *+' conftest.er1 >conftest.err
19814: rm -f conftest.er1
19815: cat conftest.err >&5
1.62 paf 19816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817: (exit $ac_status); } &&
1.86 paf 19818: { ac_try='test -z "$ac_c_werror_flag"
19819: || test ! -s conftest.err'
19820: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821: (eval $ac_try) 2>&5
19822: ac_status=$?
19823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824: (exit $ac_status); }; } &&
19825: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19826: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827: (eval $ac_try) 2>&5
19828: ac_status=$?
19829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830: (exit $ac_status); }; }; then
1.66 paf 19831: cat >>confdefs.h <<\_ACEOF
19832: #define HAVE_DAYLIGHT 1
19833: _ACEOF
19834:
19835: echo "$as_me:$LINENO: result: yes" >&5
19836: echo "${ECHO_T}yes" >&6
1.62 paf 19837: else
19838: echo "$as_me: failed program was:" >&5
19839: sed 's/^/| /' conftest.$ac_ext >&5
19840:
1.66 paf 19841: echo "$as_me:$LINENO: result: no" >&5
19842: echo "${ECHO_T}no" >&6
1.62 paf 19843: fi
1.86 paf 19844: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.62 paf 19845:
1.66 paf 19846: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19847: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
1.62 paf 19848: cat >conftest.$ac_ext <<_ACEOF
19849: /* confdefs.h. */
19850: _ACEOF
19851: cat confdefs.h >>conftest.$ac_ext
19852: cat >>conftest.$ac_ext <<_ACEOF
19853: /* end confdefs.h. */
1.66 paf 19854: #include <time.h>
1.62 paf 19855: int
19856: main ()
19857: {
1.66 paf 19858: struct tm tm;
19859: tm.tm_gmtoff=0;
19860:
1.62 paf 19861: ;
19862: return 0;
19863: }
19864: _ACEOF
1.66 paf 19865: rm -f conftest.$ac_objext
19866: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19867: (eval $ac_compile) 2>conftest.er1
1.62 paf 19868: ac_status=$?
1.86 paf 19869: grep -v '^ *+' conftest.er1 >conftest.err
19870: rm -f conftest.er1
19871: cat conftest.err >&5
1.62 paf 19872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873: (exit $ac_status); } &&
1.86 paf 19874: { ac_try='test -z "$ac_c_werror_flag"
19875: || test ! -s conftest.err'
19876: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877: (eval $ac_try) 2>&5
19878: ac_status=$?
19879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880: (exit $ac_status); }; } &&
19881: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883: (eval $ac_try) 2>&5
19884: ac_status=$?
19885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886: (exit $ac_status); }; }; then
1.66 paf 19887: cat >>confdefs.h <<\_ACEOF
19888: #define HAVE_TM_GMTOFF 1
19889: _ACEOF
19890:
19891: echo "$as_me:$LINENO: result: yes" >&5
19892: echo "${ECHO_T}yes" >&6
1.62 paf 19893: else
19894: echo "$as_me: failed program was:" >&5
19895: sed 's/^/| /' conftest.$ac_ext >&5
19896:
1.66 paf 19897: echo "$as_me:$LINENO: result: no" >&5
19898: echo "${ECHO_T}no" >&6
1.62 paf 19899: fi
1.86 paf 19900: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 paf 19901:
1.66 paf 19902: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
19903: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
1.62 paf 19904: cat >conftest.$ac_ext <<_ACEOF
19905: /* confdefs.h. */
19906: _ACEOF
19907: cat confdefs.h >>conftest.$ac_ext
19908: cat >>conftest.$ac_ext <<_ACEOF
19909: /* end confdefs.h. */
1.66 paf 19910: #include <time.h>
1.62 paf 19911: int
19912: main ()
19913: {
1.66 paf 19914: struct tm tm;
19915: tm.tm_tzadj=0;
19916:
1.62 paf 19917: ;
19918: return 0;
19919: }
19920: _ACEOF
1.66 paf 19921: rm -f conftest.$ac_objext
19922: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.86 paf 19923: (eval $ac_compile) 2>conftest.er1
1.62 paf 19924: ac_status=$?
1.86 paf 19925: grep -v '^ *+' conftest.er1 >conftest.err
19926: rm -f conftest.er1
19927: cat conftest.err >&5
1.62 paf 19928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929: (exit $ac_status); } &&
1.86 paf 19930: { ac_try='test -z "$ac_c_werror_flag"
19931: || test ! -s conftest.err'
19932: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933: (eval $ac_try) 2>&5
19934: ac_status=$?
19935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936: (exit $ac_status); }; } &&
19937: { ac_try='test -s conftest.$ac_objext'
1.62 paf 19938: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939: (eval $ac_try) 2>&5
19940: ac_status=$?
19941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942: (exit $ac_status); }; }; then
1.66 paf 19943: cat >>confdefs.h <<\_ACEOF
19944: #define HAVE_TM_TZADJ 1
19945: _ACEOF
19946:
19947: echo "$as_me:$LINENO: result: yes" >&5
19948: echo "${ECHO_T}yes" >&6
1.62 paf 19949: else
19950: echo "$as_me: failed program was:" >&5
19951: sed 's/^/| /' conftest.$ac_ext >&5
19952:
1.66 paf 19953: echo "$as_me:$LINENO: result: no" >&5
19954: echo "${ECHO_T}no" >&6
1.62 paf 19955: fi
1.86 paf 19956: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.31 paf 19957:
19958:
19959:
19960:
1.1 paf 19961:
19962:
19963:
1.62 paf 19964:
19965:
19966:
19967:
19968:
19969:
19970:
19971:
19972:
19973:
19974:
19975:
19976:
19977:
19978:
19979:
19980:
19981:
19982:
19983:
19984:
19985:
19986:
19987:
1.128 moko 19988: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 19989:
19990:
1.130 moko 19991: 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 19992: cat >confcache <<\_ACEOF
1.1 paf 19993: # This file is a shell script that caches the results of configure
19994: # tests run on this system so they can be shared between configure
1.62 paf 19995: # scripts and configure runs, see configure's option --config-cache.
19996: # It is not useful on other systems. If it contains results you don't
19997: # want to keep, you may remove or edit it.
1.1 paf 19998: #
1.62 paf 19999: # config.status only pays attention to the cache file if you give it
20000: # the --recheck option to rerun configure.
1.1 paf 20001: #
1.62 paf 20002: # `ac_cv_env_foo' variables (set or unset) will be overridden when
20003: # loading this file, other *unset* `ac_cv_foo' will be assigned the
20004: # following values.
20005:
20006: _ACEOF
20007:
1.1 paf 20008: # The following way of writing the cache mishandles newlines in values,
20009: # but we know of no workaround that is simple, portable, and efficient.
20010: # So, don't put newlines in cache variables' values.
20011: # Ultrix sh set writes to stderr and can't be redirected directly,
20012: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 20013: {
20014: (set) 2>&1 |
20015: case `(ac_space=' '; set | grep ac_space) 2>&1` in
20016: *ac_space=\ *)
20017: # `set' does not quote correctly, so add quotes (double-quote
20018: # substitution turns \\\\ into \\, and sed turns \\ into \).
20019: sed -n \
1.86 paf 20020: "s/'/'\\\\''/g;
20021: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.62 paf 20022: ;;
20023: *)
20024: # `set' quotes correctly as required by POSIX, so do not add quotes.
20025: sed -n \
1.86 paf 20026: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.62 paf 20027: ;;
20028: esac;
20029: } |
20030: sed '
20031: t clear
20032: : clear
20033: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20034: t end
20035: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20036: : end' >>confcache
20037: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 20038: if test -w $cache_file; then
1.62 paf 20039: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20040: cat confcache >$cache_file
1.1 paf 20041: else
20042: echo "not updating unwritable cache $cache_file"
20043: fi
20044: fi
20045: rm -f confcache
20046:
20047: test "x$prefix" = xNONE && prefix=$ac_default_prefix
20048: # Let make expand exec_prefix.
20049: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20050:
1.62 paf 20051: # VPATH may cause trouble with some makes, so we remove $(srcdir),
20052: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20053: # trailing colons and then remove the whole line if VPATH becomes empty
20054: # (actually we leave an empty line to preserve line numbers).
1.1 paf 20055: if test "x$srcdir" = x.; then
1.86 paf 20056: ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.62 paf 20057: s/:*\$(srcdir):*/:/;
20058: s/:*\${srcdir}:*/:/;
20059: s/:*@srcdir@:*/:/;
1.86 paf 20060: s/^\([^=]*=[ ]*\):*/\1/;
1.62 paf 20061: s/:*$//;
1.86 paf 20062: s/^[^=]*=[ ]*$//;
1.62 paf 20063: }'
1.1 paf 20064: fi
20065:
1.62 paf 20066: DEFS=-DHAVE_CONFIG_H
20067:
20068: ac_libobjs=
20069: ac_ltlibobjs=
20070: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20071: # 1. Remove the extension, and $U if already installed.
20072: ac_i=`echo "$ac_i" |
1.86 paf 20073: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.62 paf 20074: # 2. Add them.
20075: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20076: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20077: done
20078: LIBOBJS=$ac_libobjs
20079:
20080: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 20081:
20082:
1.62 paf 20083: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20084: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20085: Usually this means the macro was only invoked conditionally." >&5
20086: echo "$as_me: error: conditional \"AMDEP\" was never defined.
20087: Usually this means the macro was only invoked conditionally." >&2;}
20088: { (exit 1); exit 1; }; }
20089: fi
1.66 paf 20090: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20091: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 20092: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 20093: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.62 paf 20094: Usually this means the macro was only invoked conditionally." >&2;}
20095: { (exit 1); exit 1; }; }
20096: fi
1.66 paf 20097: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20098: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 20099: Usually this means the macro was only invoked conditionally." >&5
1.66 paf 20100: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.62 paf 20101: Usually this means the macro was only invoked conditionally." >&2;}
20102: { (exit 1); exit 1; }; }
20103: fi
1.122 moko 20104: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
20105: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 20106: Usually this means the macro was only invoked conditionally." >&5
1.122 moko 20107: echo "$as_me: error: conditional \"COMPILE_APACHE_MODULE\" was never defined.
1.62 paf 20108: Usually this means the macro was only invoked conditionally." >&2;}
20109: { (exit 1); exit 1; }; }
20110: fi
1.128 moko 20111: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20112: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20113: Usually this means the macro was only invoked conditionally." >&5
20114: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20115: Usually this means the macro was only invoked conditionally." >&2;}
20116: { (exit 1); exit 1; }; }
20117: fi
20118: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20119: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20120: Usually this means the macro was only invoked conditionally." >&5
20121: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20122: Usually this means the macro was only invoked conditionally." >&2;}
20123: { (exit 1); exit 1; }; }
20124: fi
20125: LT_CONFIG_H=`echo " src/include/pa_config_auto.h" | $SED 's,^[ ]*,,;s,[ :].*$,,'`
20126:
20127: _ltdl_libobjs=
20128: _ltdl_ltlibobjs=
20129: if test -n "$_LT_LIBOBJS"; then
20130: # Remove the extension.
20131: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20132: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20133: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20134: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20135: done
20136: fi
20137: ltdl_LIBOBJS=$_ltdl_libobjs
20138:
20139: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20140:
20141:
1.62 paf 20142:
1.1 paf 20143: : ${CONFIG_STATUS=./config.status}
1.62 paf 20144: ac_clean_files_save=$ac_clean_files
20145: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20146: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20147: echo "$as_me: creating $CONFIG_STATUS" >&6;}
20148: cat >$CONFIG_STATUS <<_ACEOF
20149: #! $SHELL
20150: # Generated by $as_me.
20151: # Run this file to recreate the current configuration.
20152: # Compiler output produced by configure, useful for debugging
20153: # configure, is in config.log if it exists.
20154:
20155: debug=false
20156: ac_cs_recheck=false
20157: ac_cs_silent=false
20158: SHELL=\${CONFIG_SHELL-$SHELL}
20159: _ACEOF
20160:
20161: cat >>$CONFIG_STATUS <<\_ACEOF
20162: ## --------------------- ##
20163: ## M4sh Initialization. ##
20164: ## --------------------- ##
20165:
20166: # Be Bourne compatible
20167: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20168: emulate sh
20169: NULLCMD=:
20170: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20171: # is contrary to our usage. Disable this feature.
20172: alias -g '${1+"$@"}'='"$@"'
20173: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20174: set -o posix
20175: fi
1.86 paf 20176: DUALCASE=1; export DUALCASE # for MKS sh
1.62 paf 20177:
20178: # Support unset when possible.
1.86 paf 20179: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.62 paf 20180: as_unset=unset
20181: else
20182: as_unset=false
20183: fi
20184:
20185:
20186: # Work around bugs in pre-3.0 UWIN ksh.
20187: $as_unset ENV MAIL MAILPATH
20188: PS1='$ '
20189: PS2='> '
20190: PS4='+ '
20191:
20192: # NLS nuisances.
20193: for as_var in \
20194: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20195: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20196: LC_TELEPHONE LC_TIME
20197: do
1.86 paf 20198: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.62 paf 20199: eval $as_var=C; export $as_var
20200: else
20201: $as_unset $as_var
20202: fi
20203: done
1.1 paf 20204:
1.62 paf 20205: # Required to use basename.
20206: if expr a : '\(a\)' >/dev/null 2>&1; then
20207: as_expr=expr
20208: else
20209: as_expr=false
20210: fi
20211:
20212: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20213: as_basename=basename
20214: else
20215: as_basename=false
20216: fi
20217:
20218:
20219: # Name of the executable.
20220: as_me=`$as_basename "$0" ||
20221: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20222: X"$0" : 'X\(//\)$' \| \
20223: X"$0" : 'X\(/\)$' \| \
20224: . : '\(.\)' 2>/dev/null ||
20225: echo X/"$0" |
20226: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20227: /^X\/\(\/\/\)$/{ s//\1/; q; }
20228: /^X\/\(\/\).*/{ s//\1/; q; }
20229: s/.*/./; q'`
20230:
20231:
20232: # PATH needs CR, and LINENO needs CR and PATH.
20233: # Avoid depending upon Character Ranges.
20234: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20235: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20236: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20237: as_cr_digits='0123456789'
20238: as_cr_alnum=$as_cr_Letters$as_cr_digits
20239:
20240: # The user is always right.
20241: if test "${PATH_SEPARATOR+set}" != set; then
20242: echo "#! /bin/sh" >conf$$.sh
20243: echo "exit 0" >>conf$$.sh
20244: chmod +x conf$$.sh
20245: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20246: PATH_SEPARATOR=';'
20247: else
20248: PATH_SEPARATOR=:
20249: fi
20250: rm -f conf$$.sh
20251: fi
20252:
20253:
20254: as_lineno_1=$LINENO
20255: as_lineno_2=$LINENO
20256: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20257: test "x$as_lineno_1" != "x$as_lineno_2" &&
20258: test "x$as_lineno_3" = "x$as_lineno_2" || {
20259: # Find who we are. Look in the path if we contain no path at all
20260: # relative or not.
20261: case $0 in
20262: *[\\/]* ) as_myself=$0 ;;
20263: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20264: for as_dir in $PATH
20265: do
20266: IFS=$as_save_IFS
20267: test -z "$as_dir" && as_dir=.
20268: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20269: done
20270:
20271: ;;
20272: esac
20273: # We did not find ourselves, most probably we were run as `sh COMMAND'
20274: # in which case we are not to be found in the path.
20275: if test "x$as_myself" = x; then
20276: as_myself=$0
20277: fi
20278: if test ! -f "$as_myself"; then
20279: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20280: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20281: { (exit 1); exit 1; }; }
20282: fi
20283: case $CONFIG_SHELL in
20284: '')
20285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20287: do
20288: IFS=$as_save_IFS
20289: test -z "$as_dir" && as_dir=.
20290: for as_base in sh bash ksh sh5; do
20291: case $as_dir in
20292: /*)
20293: if ("$as_dir/$as_base" -c '
20294: as_lineno_1=$LINENO
20295: as_lineno_2=$LINENO
20296: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20297: test "x$as_lineno_1" != "x$as_lineno_2" &&
20298: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20299: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20300: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20301: CONFIG_SHELL=$as_dir/$as_base
20302: export CONFIG_SHELL
20303: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20304: fi;;
20305: esac
20306: done
20307: done
20308: ;;
20309: esac
20310:
20311: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20312: # uniformly replaced by the line number. The first 'sed' inserts a
20313: # line-number line before each line; the second 'sed' does the real
20314: # work. The second script uses 'N' to pair each line-number line
20315: # with the numbered line, and appends trailing '-' during
20316: # substitution so that $LINENO is not a special case at line end.
20317: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20318: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20319: sed '=' <$as_myself |
20320: sed '
20321: N
20322: s,$,-,
20323: : loop
20324: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20325: t loop
20326: s,-$,,
20327: s,^['$as_cr_digits']*\n,,
20328: ' >$as_me.lineno &&
20329: chmod +x $as_me.lineno ||
20330: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20331: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20332: { (exit 1); exit 1; }; }
20333:
20334: # Don't try to exec as it changes $[0], causing all sort of problems
20335: # (the dirname of $[0] is not the place where we might find the
20336: # original and so on. Autoconf is especially sensible to this).
20337: . ./$as_me.lineno
20338: # Exit status is that of the last command.
20339: exit
20340: }
20341:
20342:
20343: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20344: *c*,-n*) ECHO_N= ECHO_C='
20345: ' ECHO_T=' ' ;;
20346: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20347: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20348: esac
20349:
20350: if expr a : '\(a\)' >/dev/null 2>&1; then
20351: as_expr=expr
20352: else
20353: as_expr=false
20354: fi
20355:
20356: rm -f conf$$ conf$$.exe conf$$.file
20357: echo >conf$$.file
20358: if ln -s conf$$.file conf$$ 2>/dev/null; then
20359: # We could just check for DJGPP; but this test a) works b) is more generic
20360: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20361: if test -f conf$$.exe; then
20362: # Don't use ln at all; we don't have any links
20363: as_ln_s='cp -p'
20364: else
20365: as_ln_s='ln -s'
20366: fi
20367: elif ln conf$$.file conf$$ 2>/dev/null; then
20368: as_ln_s=ln
20369: else
20370: as_ln_s='cp -p'
20371: fi
20372: rm -f conf$$ conf$$.exe conf$$.file
20373:
20374: if mkdir -p . 2>/dev/null; then
20375: as_mkdir_p=:
20376: else
1.86 paf 20377: test -d ./-p && rmdir ./-p
1.62 paf 20378: as_mkdir_p=false
20379: fi
20380:
20381: as_executable_p="test -f"
20382:
20383: # Sed expression to map a string onto a valid CPP name.
1.86 paf 20384: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20385:
20386: # Sed expression to map a string onto a valid variable name.
1.86 paf 20387: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.62 paf 20388:
20389:
20390: # IFS
20391: # We need space, tab and new line, in precisely that order.
20392: as_nl='
20393: '
20394: IFS=" $as_nl"
20395:
20396: # CDPATH.
20397: $as_unset CDPATH
20398:
20399: exec 6>&1
20400:
20401: # Open the log real soon, to keep \$[0] and so on meaningful, and to
20402: # report actual input values of CONFIG_FILES etc. instead of their
20403: # values after options handling. Logging --version etc. is OK.
20404: exec 5>>config.log
20405: {
20406: echo
20407: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20408: ## Running $as_me. ##
20409: _ASBOX
20410: } >&5
20411: cat >&5 <<_CSEOF
20412:
1.128 moko 20413: This file was extended by parser $as_me 3.4.2b, which was
1.86 paf 20414: generated by GNU Autoconf 2.59. Invocation command line was
1.62 paf 20415:
20416: CONFIG_FILES = $CONFIG_FILES
20417: CONFIG_HEADERS = $CONFIG_HEADERS
20418: CONFIG_LINKS = $CONFIG_LINKS
20419: CONFIG_COMMANDS = $CONFIG_COMMANDS
20420: $ $0 $@
20421:
20422: _CSEOF
20423: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20424: echo >&5
20425: _ACEOF
20426:
20427: # Files that config.status was made for.
20428: if test -n "$ac_config_files"; then
20429: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20430: fi
20431:
20432: if test -n "$ac_config_headers"; then
20433: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20434: fi
20435:
20436: if test -n "$ac_config_links"; then
20437: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20438: fi
20439:
20440: if test -n "$ac_config_commands"; then
20441: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20442: fi
20443:
20444: cat >>$CONFIG_STATUS <<\_ACEOF
20445:
20446: ac_cs_usage="\
20447: \`$as_me' instantiates files from templates according to the
20448: current configuration.
20449:
20450: Usage: $0 [OPTIONS] [FILE]...
20451:
20452: -h, --help print this help, then exit
20453: -V, --version print version number, then exit
20454: -q, --quiet do not print progress messages
20455: -d, --debug don't remove temporary files
20456: --recheck update $as_me by reconfiguring in the same conditions
20457: --file=FILE[:TEMPLATE]
1.86 paf 20458: instantiate the configuration file FILE
1.62 paf 20459: --header=FILE[:TEMPLATE]
1.86 paf 20460: instantiate the configuration header FILE
1.62 paf 20461:
20462: Configuration files:
20463: $config_files
20464:
20465: Configuration headers:
20466: $config_headers
20467:
20468: Configuration commands:
20469: $config_commands
20470:
20471: Report bugs to <bug-autoconf@gnu.org>."
20472: _ACEOF
20473:
20474: cat >>$CONFIG_STATUS <<_ACEOF
20475: ac_cs_version="\\
1.128 moko 20476: parser config.status 3.4.2b
1.86 paf 20477: configured by $0, generated by GNU Autoconf 2.59,
1.62 paf 20478: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20479:
1.86 paf 20480: Copyright (C) 2003 Free Software Foundation, Inc.
1.62 paf 20481: This config.status script is free software; the Free Software Foundation
20482: gives unlimited permission to copy, distribute and modify it."
20483: srcdir=$srcdir
20484: INSTALL="$INSTALL"
20485: _ACEOF
20486:
20487: cat >>$CONFIG_STATUS <<\_ACEOF
20488: # If no file are specified by the user, then we need to provide default
20489: # value. By we need to know if files were specified by the user.
20490: ac_need_defaults=:
20491: while test $# != 0
20492: do
20493: case $1 in
20494: --*=*)
20495: ac_option=`expr "x$1" : 'x\([^=]*\)='`
20496: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20497: ac_shift=:
20498: ;;
20499: -*)
20500: ac_option=$1
20501: ac_optarg=$2
20502: ac_shift=shift
20503: ;;
20504: *) # This is not an option, so the user has probably given explicit
20505: # arguments.
20506: ac_option=$1
20507: ac_need_defaults=false;;
20508: esac
20509:
20510: case $ac_option in
20511: # Handling of the options.
20512: _ACEOF
20513: cat >>$CONFIG_STATUS <<\_ACEOF
20514: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20515: ac_cs_recheck=: ;;
20516: --version | --vers* | -V )
20517: echo "$ac_cs_version"; exit 0 ;;
20518: --he | --h)
20519: # Conflict between --help and --header
20520: { { echo "$as_me:$LINENO: error: ambiguous option: $1
20521: Try \`$0 --help' for more information." >&5
20522: echo "$as_me: error: ambiguous option: $1
20523: Try \`$0 --help' for more information." >&2;}
20524: { (exit 1); exit 1; }; };;
20525: --help | --hel | -h )
20526: echo "$ac_cs_usage"; exit 0 ;;
20527: --debug | --d* | -d )
20528: debug=: ;;
20529: --file | --fil | --fi | --f )
20530: $ac_shift
20531: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20532: ac_need_defaults=false;;
20533: --header | --heade | --head | --hea )
20534: $ac_shift
20535: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20536: ac_need_defaults=false;;
20537: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20538: | -silent | --silent | --silen | --sile | --sil | --si | --s)
20539: ac_cs_silent=: ;;
20540:
20541: # This is an error.
20542: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20543: Try \`$0 --help' for more information." >&5
20544: echo "$as_me: error: unrecognized option: $1
20545: Try \`$0 --help' for more information." >&2;}
20546: { (exit 1); exit 1; }; } ;;
20547:
20548: *) ac_config_targets="$ac_config_targets $1" ;;
20549:
20550: esac
20551: shift
20552: done
20553:
20554: ac_configure_extra_args=
20555:
20556: if $ac_cs_silent; then
20557: exec 6>/dev/null
20558: ac_configure_extra_args="$ac_configure_extra_args --silent"
20559: fi
20560:
20561: _ACEOF
20562: cat >>$CONFIG_STATUS <<_ACEOF
20563: if \$ac_cs_recheck; then
20564: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20565: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20566: fi
20567:
20568: _ACEOF
20569:
20570: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 20571: #
1.62 paf 20572: # INIT-COMMANDS section.
1.1 paf 20573: #
20574:
1.62 paf 20575: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20576:
1.128 moko 20577:
20578: # The HP-UX ksh and POSIX shell print the target directory to stdout
20579: # if CDPATH is set.
20580: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20581:
20582: sed_quote_subst='$sed_quote_subst'
20583: double_quote_subst='$double_quote_subst'
20584: delay_variable_subst='$delay_variable_subst'
20585: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20586: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20587: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20588: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20589: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20590: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 20591: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 20592: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20593: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20594: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20595: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20596: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20597: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20598: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20599: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20600: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20601: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20602: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20603: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20604: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20605: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20606: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20607: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20608: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20609: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20610: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20611: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20612: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20613: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20614: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20615: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20616: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20617: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20618: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20619: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20620: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20621: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20622: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20623: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20624: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20625: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20626: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20627: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20628: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20629: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20630: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20631: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20632: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20633: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20634: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20635: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20636: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20637: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20638: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20639: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20640: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20641: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20642: 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"`'
20643: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20644: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20645: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20646: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20647: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20648: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20649: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20650: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20651: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20652: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20653: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20654: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20655: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20656: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20657: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20658: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20659: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20660: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20661: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20662: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20663: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20664: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20665: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20666: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20667: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20668: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20669: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20670: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20671: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20672: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20673: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20674: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20675: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20676: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20677: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20678: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20679: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20680: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20681: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20682: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20683: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20684: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20685: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20686: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20687: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20688: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20689: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20690: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20691: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20692: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20693: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20694: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20695: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20696: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20697: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20698: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20699: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20700: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20701: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20702: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20703: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20704: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20705: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20706: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20707: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20708: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20709: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20710: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20711: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20712: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20713: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20714: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20715: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20716: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20717: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20718: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20719: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20720: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20721: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20722: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20723: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20724: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20725: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20726: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20727: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20728: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20729: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20730: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20731: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20732: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20733: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20734: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20735: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20736: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20737: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20738: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20739: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20740: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20741: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20742: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20743: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20744: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20745: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20746: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20747: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20748: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20749: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20750: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20751: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20752: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20753: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20754: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20755: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20756: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20757: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20758: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20759: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20760: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20761: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20762: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20763: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20764: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20765: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20766: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20767: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20768: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20769: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20770:
20771: LTCC='$LTCC'
20772: LTCFLAGS='$LTCFLAGS'
20773: compiler='$compiler_DEFAULT'
20774:
20775: # A function that is used when there is no print builtin or printf.
20776: func_fallback_echo ()
20777: {
20778: eval 'cat <<_LTECHO_EOF
20779: \$1
20780: _LTECHO_EOF'
20781: }
20782:
20783: # Quote evaled strings.
20784: for var in AS \
20785: DLLTOOL \
20786: OBJDUMP \
20787: SHELL \
20788: ECHO \
20789: PATH_SEPARATOR \
20790: SED \
20791: GREP \
20792: EGREP \
20793: FGREP \
20794: LD \
20795: NM \
20796: LN_S \
20797: lt_SP2NL \
20798: lt_NL2SP \
20799: reload_flag \
20800: deplibs_check_method \
20801: file_magic_cmd \
20802: file_magic_glob \
20803: want_nocaseglob \
20804: sharedlib_from_linklib_cmd \
20805: AR \
20806: AR_FLAGS \
20807: archiver_list_spec \
20808: STRIP \
20809: RANLIB \
20810: CC \
20811: CFLAGS \
20812: compiler \
20813: lt_cv_sys_global_symbol_pipe \
20814: lt_cv_sys_global_symbol_to_cdecl \
20815: lt_cv_sys_global_symbol_to_c_name_address \
20816: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20817: nm_file_list_spec \
20818: lt_prog_compiler_no_builtin_flag \
20819: lt_prog_compiler_pic \
20820: lt_prog_compiler_wl \
20821: lt_prog_compiler_static \
20822: lt_cv_prog_compiler_c_o \
20823: need_locks \
20824: MANIFEST_TOOL \
20825: DSYMUTIL \
20826: NMEDIT \
20827: LIPO \
20828: OTOOL \
20829: OTOOL64 \
20830: shrext_cmds \
20831: export_dynamic_flag_spec \
20832: whole_archive_flag_spec \
20833: compiler_needs_object \
20834: with_gnu_ld \
20835: allow_undefined_flag \
20836: no_undefined_flag \
20837: hardcode_libdir_flag_spec \
20838: hardcode_libdir_separator \
20839: exclude_expsyms \
20840: include_expsyms \
20841: file_list_spec \
20842: variables_saved_for_relink \
20843: libname_spec \
20844: library_names_spec \
20845: soname_spec \
20846: install_override_mode \
20847: finish_eval \
20848: old_striplib \
20849: striplib \
20850: compiler_lib_search_dirs \
20851: predep_objects \
20852: postdep_objects \
20853: predeps \
20854: postdeps \
20855: compiler_lib_search_path \
20856: LD_CXX \
20857: reload_flag_CXX \
20858: compiler_CXX \
20859: lt_prog_compiler_no_builtin_flag_CXX \
20860: lt_prog_compiler_pic_CXX \
20861: lt_prog_compiler_wl_CXX \
20862: lt_prog_compiler_static_CXX \
20863: lt_cv_prog_compiler_c_o_CXX \
20864: export_dynamic_flag_spec_CXX \
20865: whole_archive_flag_spec_CXX \
20866: compiler_needs_object_CXX \
20867: with_gnu_ld_CXX \
20868: allow_undefined_flag_CXX \
20869: no_undefined_flag_CXX \
20870: hardcode_libdir_flag_spec_CXX \
20871: hardcode_libdir_separator_CXX \
20872: exclude_expsyms_CXX \
20873: include_expsyms_CXX \
20874: file_list_spec_CXX \
20875: compiler_lib_search_dirs_CXX \
20876: predep_objects_CXX \
20877: postdep_objects_CXX \
20878: predeps_CXX \
20879: postdeps_CXX \
20880: compiler_lib_search_path_CXX; do
20881: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20882: *[\\\\\\\`\\"\\\$]*)
20883: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20884: ;;
20885: *)
20886: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20887: ;;
20888: esac
20889: done
20890:
20891: # Double-quote double-evaled strings.
20892: for var in reload_cmds \
20893: old_postinstall_cmds \
20894: old_postuninstall_cmds \
20895: old_archive_cmds \
20896: extract_expsyms_cmds \
20897: old_archive_from_new_cmds \
20898: old_archive_from_expsyms_cmds \
20899: archive_cmds \
20900: archive_expsym_cmds \
20901: module_cmds \
20902: module_expsym_cmds \
20903: export_symbols_cmds \
20904: prelink_cmds \
20905: postlink_cmds \
20906: postinstall_cmds \
20907: postuninstall_cmds \
20908: finish_cmds \
20909: sys_lib_search_path_spec \
20910: sys_lib_dlsearch_path_spec \
20911: reload_cmds_CXX \
20912: old_archive_cmds_CXX \
20913: old_archive_from_new_cmds_CXX \
20914: old_archive_from_expsyms_cmds_CXX \
20915: archive_cmds_CXX \
20916: archive_expsym_cmds_CXX \
20917: module_cmds_CXX \
20918: module_expsym_cmds_CXX \
20919: export_symbols_cmds_CXX \
20920: prelink_cmds_CXX \
20921: postlink_cmds_CXX; do
20922: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20923: *[\\\\\\\`\\"\\\$]*)
20924: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20925: ;;
20926: *)
20927: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20928: ;;
20929: esac
20930: done
20931:
20932: ac_aux_dir='$ac_aux_dir'
20933: xsi_shell='$xsi_shell'
20934: lt_shell_append='$lt_shell_append'
20935:
20936: # See if we are running on zsh, and set the options which allow our
20937: # commands through without removal of \ escapes INIT.
20938: if test -n "\${ZSH_VERSION+set}" ; then
20939: setopt NO_GLOB_SUBST
20940: fi
20941:
20942:
20943: PACKAGE='$PACKAGE'
20944: VERSION='$VERSION'
20945: TIMESTAMP='$TIMESTAMP'
20946: RM='$RM'
20947: ofile='$ofile'
20948:
20949:
20950:
20951:
20952:
20953:
1.62 paf 20954: _ACEOF
20955:
20956:
20957:
20958: cat >>$CONFIG_STATUS <<\_ACEOF
20959: for ac_config_target in $ac_config_targets
1.1 paf 20960: do
1.62 paf 20961: case "$ac_config_target" in
20962: # Handling of arguments.
20963: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20964: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20965: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
20966: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
20967: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
20968: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
20969: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20970: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
1.73 paf 20971: "src/lib/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
20972: "src/lib/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
1.67 paf 20973: "src/lib/gc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
20974: "src/lib/gc/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
1.103 misha 20975: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
1.67 paf 20976: "src/lib/cord/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
20977: "src/lib/cord/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
20978: "src/lib/cord/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
1.62 paf 20979: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
1.70 paf 20980: "src/lib/sdbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
1.124 moko 20981: "src/lib/sdbm/pa-include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
1.120 misha 20982: "src/lib/json/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.126 moko 20983: "src/lib/memcached/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
1.127 moko 20984: "src/lib/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
1.62 paf 20985: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
20986: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
1.122 moko 20987: "src/targets/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
1.62 paf 20988: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
20989: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20990: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
20991: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20992: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
20993: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.128 moko 20994: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.62 paf 20995: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
20996: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20997: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20998: { (exit 1); exit 1; }; };;
1.1 paf 20999: esac
21000: done
21001:
1.62 paf 21002: # If the user did not use the arguments to specify the items to instantiate,
21003: # then the envvar interface is used. Set only those that are not.
21004: # We use the long form for the default assignment because of an extremely
21005: # bizarre bug on SunOS 4.1.3.
21006: if $ac_need_defaults; then
21007: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21008: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21009: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21010: fi
21011:
21012: # Have a temporary directory for convenience. Make it in the build tree
21013: # simply because there is no reason to put it here, and in addition,
21014: # creating and moving files from /tmp can sometimes cause problems.
21015: # Create a temporary directory, and hook for its removal unless debugging.
21016: $debug ||
21017: {
21018: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21019: trap '{ (exit 1); exit 1; }' 1 2 13 15
21020: }
21021:
21022: # Create a (secure) tmp directory for tmp files.
21023:
21024: {
21025: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21026: test -n "$tmp" && test -d "$tmp"
21027: } ||
21028: {
21029: tmp=./confstat$$-$RANDOM
21030: (umask 077 && mkdir $tmp)
21031: } ||
21032: {
21033: echo "$me: cannot create a temporary directory in ." >&2
21034: { (exit 1); exit 1; }
21035: }
21036:
21037: _ACEOF
1.1 paf 21038:
1.62 paf 21039: cat >>$CONFIG_STATUS <<_ACEOF
21040:
21041: #
21042: # CONFIG_FILES section.
21043: #
1.1 paf 21044:
1.62 paf 21045: # No need to generate the scripts if there are no CONFIG_FILES.
21046: # This happens for instance when ./config.status config.h
21047: if test -n "\$CONFIG_FILES"; then
21048: # Protect against being on the right side of a sed subst in config.status.
21049: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21050: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21051: s,@SHELL@,$SHELL,;t t
21052: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21053: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21054: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21055: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21056: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21057: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21058: s,@exec_prefix@,$exec_prefix,;t t
21059: s,@prefix@,$prefix,;t t
21060: s,@program_transform_name@,$program_transform_name,;t t
21061: s,@bindir@,$bindir,;t t
21062: s,@sbindir@,$sbindir,;t t
21063: s,@libexecdir@,$libexecdir,;t t
21064: s,@datadir@,$datadir,;t t
21065: s,@sysconfdir@,$sysconfdir,;t t
21066: s,@sharedstatedir@,$sharedstatedir,;t t
21067: s,@localstatedir@,$localstatedir,;t t
21068: s,@libdir@,$libdir,;t t
21069: s,@includedir@,$includedir,;t t
21070: s,@oldincludedir@,$oldincludedir,;t t
21071: s,@infodir@,$infodir,;t t
21072: s,@mandir@,$mandir,;t t
21073: s,@build_alias@,$build_alias,;t t
21074: s,@host_alias@,$host_alias,;t t
21075: s,@target_alias@,$target_alias,;t t
21076: s,@DEFS@,$DEFS,;t t
21077: s,@ECHO_C@,$ECHO_C,;t t
21078: s,@ECHO_N@,$ECHO_N,;t t
21079: s,@ECHO_T@,$ECHO_T,;t t
21080: s,@LIBS@,$LIBS,;t t
21081: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21082: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21083: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21084: s,@CYGPATH_W@,$CYGPATH_W,;t t
21085: s,@PACKAGE@,$PACKAGE,;t t
21086: s,@VERSION@,$VERSION,;t t
21087: s,@ACLOCAL@,$ACLOCAL,;t t
21088: s,@AUTOCONF@,$AUTOCONF,;t t
21089: s,@AUTOMAKE@,$AUTOMAKE,;t t
21090: s,@AUTOHEADER@,$AUTOHEADER,;t t
21091: s,@MAKEINFO@,$MAKEINFO,;t t
21092: s,@install_sh@,$install_sh,;t t
21093: s,@STRIP@,$STRIP,;t t
21094: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21095: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.86 paf 21096: s,@mkdir_p@,$mkdir_p,;t t
1.62 paf 21097: s,@AWK@,$AWK,;t t
21098: s,@SET_MAKE@,$SET_MAKE,;t t
1.86 paf 21099: s,@am__leading_dot@,$am__leading_dot,;t t
21100: s,@AMTAR@,$AMTAR,;t t
21101: s,@am__tar@,$am__tar,;t t
21102: s,@am__untar@,$am__untar,;t t
1.62 paf 21103: s,@P3S@,$P3S,;t t
21104: s,@build@,$build,;t t
21105: s,@build_cpu@,$build_cpu,;t t
21106: s,@build_vendor@,$build_vendor,;t t
21107: s,@build_os@,$build_os,;t t
21108: s,@host@,$host,;t t
21109: s,@host_cpu@,$host_cpu,;t t
21110: s,@host_vendor@,$host_vendor,;t t
21111: s,@host_os@,$host_os,;t t
21112: s,@YACC@,$YACC,;t t
1.66 paf 21113: s,@CXX@,$CXX,;t t
21114: s,@CXXFLAGS@,$CXXFLAGS,;t t
1.62 paf 21115: s,@LDFLAGS@,$LDFLAGS,;t t
21116: s,@CPPFLAGS@,$CPPFLAGS,;t t
1.66 paf 21117: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.62 paf 21118: s,@EXEEXT@,$EXEEXT,;t t
21119: s,@OBJEXT@,$OBJEXT,;t t
21120: s,@DEPDIR@,$DEPDIR,;t t
21121: s,@am__include@,$am__include,;t t
21122: s,@am__quote@,$am__quote,;t t
21123: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21124: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21125: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.66 paf 21126: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21127: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21128: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21129: s,@CC@,$CC,;t t
21130: s,@CFLAGS@,$CFLAGS,;t t
21131: s,@ac_ct_CC@,$ac_ct_CC,;t t
1.62 paf 21132: s,@CCDEPMODE@,$CCDEPMODE,;t t
21133: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21134: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21135: s,@dll_extension@,$dll_extension,;t t
1.67 paf 21136: s,@GC_LIBS@,$GC_LIBS,;t t
1.100 misha 21137: s,@PCRE_INCLUDES@,$PCRE_INCLUDES,;t t
21138: s,@PCRE_LIBS@,$PCRE_LIBS,;t t
1.62 paf 21139: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
21140: s,@XML_LIBS@,$XML_LIBS,;t t
21141: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
21142: s,@MIME_LIBS@,$MIME_LIBS,;t t
1.122 moko 21143: s,@APACHE@,$APACHE,;t t
21144: s,@APACHE_INC@,$APACHE_INC,;t t
21145: s,@APACHE_CFLAGS@,$APACHE_CFLAGS,;t t
21146: s,@COMPILE_APACHE_MODULE_TRUE@,$COMPILE_APACHE_MODULE_TRUE,;t t
21147: s,@COMPILE_APACHE_MODULE_FALSE@,$COMPILE_APACHE_MODULE_FALSE,;t t
1.128 moko 21148: s,@AS@,$AS,;t t
21149: s,@ac_ct_AS@,$ac_ct_AS,;t t
21150: s,@DLLTOOL@,$DLLTOOL,;t t
21151: s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21152: s,@OBJDUMP@,$OBJDUMP,;t t
21153: s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21154: s,@LIBTOOL@,$LIBTOOL,;t t
21155: s,@SED@,$SED,;t t
21156: s,@EGREP@,$EGREP,;t t
21157: s,@FGREP@,$FGREP,;t t
21158: s,@GREP@,$GREP,;t t
21159: s,@LD@,$LD,;t t
21160: s,@DUMPBIN@,$DUMPBIN,;t t
21161: s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21162: s,@NM@,$NM,;t t
21163: s,@LN_S@,$LN_S,;t t
21164: s,@AR@,$AR,;t t
21165: s,@ac_ct_AR@,$ac_ct_AR,;t t
21166: s,@RANLIB@,$RANLIB,;t t
21167: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21168: s,@MANIFEST_TOOL@,$MANIFEST_TOOL,;t t
21169: s,@ac_ct_MANIFEST_TOOL@,$ac_ct_MANIFEST_TOOL,;t t
21170: s,@DSYMUTIL@,$DSYMUTIL,;t t
21171: s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21172: s,@NMEDIT@,$NMEDIT,;t t
21173: s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21174: s,@LIPO@,$LIPO,;t t
21175: s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
21176: s,@OTOOL@,$OTOOL,;t t
21177: s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
21178: s,@OTOOL64@,$OTOOL64,;t t
21179: s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
21180: s,@CPP@,$CPP,;t t
21181: s,@CXXCPP@,$CXXCPP,;t t
21182: s,@LIBLTDL@,$LIBLTDL,;t t
21183: s,@LTDLDEPS@,$LTDLDEPS,;t t
21184: s,@LTDLINCL@,$LTDLINCL,;t t
1.62 paf 21185: s,@INCLTDL@,$INCLTDL,;t t
1.128 moko 21186: s,@LT_DLLOADERS@,$LT_DLLOADERS,;t t
21187: s,@LIBADD_DLOPEN@,$LIBADD_DLOPEN,;t t
21188: s,@LIBADD_SHL_LOAD@,$LIBADD_SHL_LOAD,;t t
21189: s,@LIBADD_DLD_LINK@,$LIBADD_DLD_LINK,;t t
21190: s,@LT_DLPREOPEN@,$LT_DLPREOPEN,;t t
21191: s,@LIBADD_DL@,$LIBADD_DL,;t t
21192: s,@sys_symbol_underscore@,$sys_symbol_underscore,;t t
21193: s,@ARGZ_H@,$ARGZ_H,;t t
21194: s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
21195: s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
21196: s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
21197: s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
1.62 paf 21198: s,@subdirs@,$subdirs,;t t
1.128 moko 21199: s,@LT_CONFIG_H@,$LT_CONFIG_H,;t t
21200: s,@LTDLOPEN@,$LTDLOPEN,;t t
1.62 paf 21201: s,@LIBOBJS@,$LIBOBJS,;t t
21202: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.128 moko 21203: s,@ltdl_LIBOBJS@,$ltdl_LIBOBJS,;t t
21204: s,@ltdl_LTLIBOBJS@,$ltdl_LTLIBOBJS,;t t
1.1 paf 21205: CEOF
21206:
1.62 paf 21207: _ACEOF
1.1 paf 21208:
1.62 paf 21209: cat >>$CONFIG_STATUS <<\_ACEOF
21210: # Split the substitutions into bite-sized pieces for seds with
21211: # small command number limits, like on Digital OSF/1 and HP-UX.
21212: ac_max_sed_lines=48
21213: ac_sed_frag=1 # Number of current file.
21214: ac_beg=1 # First line for current file.
21215: ac_end=$ac_max_sed_lines # Line after last line for current file.
21216: ac_more_lines=:
21217: ac_sed_cmds=
21218: while $ac_more_lines; do
21219: if test $ac_beg -gt 1; then
21220: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21221: else
21222: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21223: fi
21224: if test ! -s $tmp/subs.frag; then
21225: ac_more_lines=false
1.1 paf 21226: else
1.62 paf 21227: # The purpose of the label and of the branching condition is to
21228: # speed up the sed processing (if there are no `@' at all, there
21229: # is no need to browse any of the substitutions).
21230: # These are the two extra sed commands mentioned above.
21231: (echo ':t
21232: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21233: if test -z "$ac_sed_cmds"; then
1.86 paf 21234: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21235: else
1.86 paf 21236: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.62 paf 21237: fi
21238: ac_sed_frag=`expr $ac_sed_frag + 1`
21239: ac_beg=$ac_end
21240: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 21241: fi
1.62 paf 21242: done
21243: if test -z "$ac_sed_cmds"; then
21244: ac_sed_cmds=cat
1.1 paf 21245: fi
1.62 paf 21246: fi # test -n "$CONFIG_FILES"
1.1 paf 21247:
1.62 paf 21248: _ACEOF
21249: cat >>$CONFIG_STATUS <<\_ACEOF
21250: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 21251: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21252: case $ac_file in
21253: - | *:- | *:-:* ) # input from stdin
1.86 paf 21254: cat >$tmp/stdin
21255: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21256: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21257: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21258: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21259: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21260: esac
21261:
1.62 paf 21262: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21263: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21264: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21265: X"$ac_file" : 'X\(//\)[^/]' \| \
21266: X"$ac_file" : 'X\(//\)$' \| \
21267: X"$ac_file" : 'X\(/\)' \| \
21268: . : '\(.\)' 2>/dev/null ||
1.62 paf 21269: echo X"$ac_file" |
21270: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21271: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21272: /^X\(\/\/\)$/{ s//\1/; q; }
21273: /^X\(\/\).*/{ s//\1/; q; }
21274: s/.*/./; q'`
21275: { if $as_mkdir_p; then
21276: mkdir -p "$ac_dir"
21277: else
21278: as_dir="$ac_dir"
21279: as_dirs=
21280: while test ! -d "$as_dir"; do
21281: as_dirs="$as_dir $as_dirs"
21282: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21283: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21284: X"$as_dir" : 'X\(//\)[^/]' \| \
21285: X"$as_dir" : 'X\(//\)$' \| \
21286: X"$as_dir" : 'X\(/\)' \| \
21287: . : '\(.\)' 2>/dev/null ||
1.62 paf 21288: echo X"$as_dir" |
21289: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21290: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21291: /^X\(\/\/\)$/{ s//\1/; q; }
21292: /^X\(\/\).*/{ s//\1/; q; }
21293: s/.*/./; q'`
21294: done
21295: test ! -n "$as_dirs" || mkdir $as_dirs
21296: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21297: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21298: { (exit 1); exit 1; }; }; }
21299:
21300: ac_builddir=.
21301:
21302: if test "$ac_dir" != .; then
21303: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21304: # A "../" for each directory in $ac_dir_suffix.
21305: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21306: else
21307: ac_dir_suffix= ac_top_builddir=
21308: fi
21309:
21310: case $srcdir in
21311: .) # No --srcdir option. We are building in place.
21312: ac_srcdir=.
21313: if test -z "$ac_top_builddir"; then
21314: ac_top_srcdir=.
21315: else
21316: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21317: fi ;;
21318: [\\/]* | ?:[\\/]* ) # Absolute path.
21319: ac_srcdir=$srcdir$ac_dir_suffix;
21320: ac_top_srcdir=$srcdir ;;
21321: *) # Relative path.
21322: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21323: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21324: esac
1.86 paf 21325:
21326: # Do not use `cd foo && pwd` to compute absolute paths, because
21327: # the directories may not exist.
21328: case `pwd` in
21329: .) ac_abs_builddir="$ac_dir";;
21330: *)
21331: case "$ac_dir" in
21332: .) ac_abs_builddir=`pwd`;;
21333: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21334: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21335: esac;;
21336: esac
21337: case $ac_abs_builddir in
21338: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21339: *)
21340: case ${ac_top_builddir}. in
21341: .) ac_abs_top_builddir=$ac_abs_builddir;;
21342: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21343: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21344: esac;;
21345: esac
21346: case $ac_abs_builddir in
21347: .) ac_abs_srcdir=$ac_srcdir;;
21348: *)
21349: case $ac_srcdir in
21350: .) ac_abs_srcdir=$ac_abs_builddir;;
21351: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21352: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21353: esac;;
21354: esac
21355: case $ac_abs_builddir in
21356: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21357: *)
21358: case $ac_top_srcdir in
21359: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21360: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21361: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21362: esac;;
21363: esac
1.62 paf 21364:
1.1 paf 21365:
1.62 paf 21366: case $INSTALL in
21367: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21368: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 21369: esac
21370:
1.62 paf 21371: if test x"$ac_file" != x-; then
21372: { echo "$as_me:$LINENO: creating $ac_file" >&5
21373: echo "$as_me: creating $ac_file" >&6;}
21374: rm -f "$ac_file"
21375: fi
21376: # Let's still pretend it is `configure' which instantiates (i.e., don't
21377: # use $as_me), people would be surprised to read:
21378: # /* config.h. Generated by config.status. */
21379: if test x"$ac_file" = x-; then
21380: configure_input=
21381: else
21382: configure_input="$ac_file. "
21383: fi
21384: configure_input=$configure_input"Generated from `echo $ac_file_in |
1.86 paf 21385: sed 's,.*/,,'` by configure."
1.62 paf 21386:
21387: # First look for the input files in the build tree, otherwise in the
21388: # src tree.
21389: ac_file_inputs=`IFS=:
21390: for f in $ac_file_in; do
21391: case $f in
21392: -) echo $tmp/stdin ;;
21393: [\\/$]*)
1.86 paf 21394: # Absolute (can't be DOS-style, as IFS=:)
21395: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21396: echo "$as_me: error: cannot find input file: $f" >&2;}
21397: { (exit 1); exit 1; }; }
1.86 paf 21398: echo "$f";;
1.62 paf 21399: *) # Relative
1.86 paf 21400: if test -f "$f"; then
21401: # Build tree
21402: echo "$f"
21403: elif test -f "$srcdir/$f"; then
21404: # Source tree
21405: echo "$srcdir/$f"
21406: else
21407: # /dev/null tree
21408: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21409: echo "$as_me: error: cannot find input file: $f" >&2;}
21410: { (exit 1); exit 1; }; }
1.86 paf 21411: fi;;
1.62 paf 21412: esac
21413: done` || { (exit 1); exit 1; }
21414: _ACEOF
21415: cat >>$CONFIG_STATUS <<_ACEOF
21416: sed "$ac_vpsub
21417: $extrasub
21418: _ACEOF
21419: cat >>$CONFIG_STATUS <<\_ACEOF
21420: :t
21421: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21422: s,@configure_input@,$configure_input,;t t
21423: s,@srcdir@,$ac_srcdir,;t t
21424: s,@abs_srcdir@,$ac_abs_srcdir,;t t
21425: s,@top_srcdir@,$ac_top_srcdir,;t t
21426: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21427: s,@builddir@,$ac_builddir,;t t
21428: s,@abs_builddir@,$ac_abs_builddir,;t t
21429: s,@top_builddir@,$ac_top_builddir,;t t
21430: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21431: s,@INSTALL@,$ac_INSTALL,;t t
21432: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21433: rm -f $tmp/stdin
21434: if test x"$ac_file" != x-; then
21435: mv $tmp/out $ac_file
21436: else
21437: cat $tmp/out
21438: rm -f $tmp/out
21439: fi
1.1 paf 21440:
1.62 paf 21441: done
21442: _ACEOF
21443: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 21444:
1.62 paf 21445: #
21446: # CONFIG_HEADER section.
21447: #
1.1 paf 21448:
21449: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21450: # NAME is the cpp macro being defined and VALUE is the value it is being given.
21451: #
21452: # ac_d sets the value in "#define NAME VALUE" lines.
1.86 paf 21453: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21454: ac_dB='[ ].*$,\1#\2'
1.62 paf 21455: ac_dC=' '
21456: ac_dD=',;t'
21457: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.86 paf 21458: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.62 paf 21459: ac_uB='$,\1#\2define\3'
1.1 paf 21460: ac_uC=' '
1.62 paf 21461: ac_uD=',;t'
21462:
21463: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 21464: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 21465: case $ac_file in
21466: - | *:- | *:-:* ) # input from stdin
1.86 paf 21467: cat >$tmp/stdin
21468: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21469: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21470: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.86 paf 21471: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.62 paf 21472: * ) ac_file_in=$ac_file.in ;;
1.1 paf 21473: esac
21474:
1.62 paf 21475: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21476: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 21477:
1.62 paf 21478: # First look for the input files in the build tree, otherwise in the
21479: # src tree.
21480: ac_file_inputs=`IFS=:
21481: for f in $ac_file_in; do
21482: case $f in
21483: -) echo $tmp/stdin ;;
21484: [\\/$]*)
1.86 paf 21485: # Absolute (can't be DOS-style, as IFS=:)
21486: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21487: echo "$as_me: error: cannot find input file: $f" >&2;}
21488: { (exit 1); exit 1; }; }
1.86 paf 21489: # Do quote $f, to prevent DOS paths from being IFS'd.
21490: echo "$f";;
1.62 paf 21491: *) # Relative
1.86 paf 21492: if test -f "$f"; then
21493: # Build tree
21494: echo "$f"
21495: elif test -f "$srcdir/$f"; then
21496: # Source tree
21497: echo "$srcdir/$f"
21498: else
21499: # /dev/null tree
21500: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.62 paf 21501: echo "$as_me: error: cannot find input file: $f" >&2;}
21502: { (exit 1); exit 1; }; }
1.86 paf 21503: fi;;
1.62 paf 21504: esac
21505: done` || { (exit 1); exit 1; }
21506: # Remove the trailing spaces.
1.86 paf 21507: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.62 paf 21508:
21509: _ACEOF
21510:
21511: # Transform confdefs.h into two sed scripts, `conftest.defines' and
21512: # `conftest.undefs', that substitutes the proper values into
21513: # config.h.in to produce config.h. The first handles `#define'
21514: # templates, and the second `#undef' templates.
21515: # And first: Protect against being on the right side of a sed subst in
21516: # config.status. Protect against being in an unquoted here document
21517: # in config.status.
21518: rm -f conftest.defines conftest.undefs
21519: # Using a here document instead of a string reduces the quoting nightmare.
21520: # Putting comments in sed scripts is not portable.
21521: #
21522: # `end' is used to avoid that the second main sed command (meant for
21523: # 0-ary CPP macros) applies to n-ary macro definitions.
21524: # See the Autoconf documentation for `clear'.
21525: cat >confdef2sed.sed <<\_ACEOF
21526: s/[\\&,]/\\&/g
21527: s,[\\$`],\\&,g
21528: t clear
21529: : clear
1.86 paf 21530: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.62 paf 21531: t end
1.86 paf 21532: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.62 paf 21533: : end
21534: _ACEOF
21535: # If some macros were called several times there might be several times
21536: # the same #defines, which is useless. Nevertheless, we may not want to
21537: # sort them, since we want the *last* AC-DEFINE to be honored.
21538: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21539: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21540: rm -f confdef2sed.sed
1.1 paf 21541:
21542: # This sed command replaces #undef with comments. This is necessary, for
21543: # example, in the case of _POSIX_SOURCE, which is predefined and required
21544: # on some systems where configure will not decide to define it.
1.62 paf 21545: cat >>conftest.undefs <<\_ACEOF
1.86 paf 21546: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.62 paf 21547: _ACEOF
21548:
21549: # Break up conftest.defines because some shells have a limit on the size
21550: # of here documents, and old seds have small limits too (100 cmds).
21551: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.86 paf 21552: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.62 paf 21553: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21554: echo ' :' >>$CONFIG_STATUS
21555: rm -f conftest.tail
21556: while grep . conftest.defines >/dev/null
21557: do
21558: # Write a limited-size here document to $tmp/defines.sed.
21559: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21560: # Speed up: don't consider the non `#define' lines.
1.86 paf 21561: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.62 paf 21562: # Work around the forget-to-reset-the-flag bug.
21563: echo 't clr' >>$CONFIG_STATUS
21564: echo ': clr' >>$CONFIG_STATUS
21565: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21566: echo 'CEOF
21567: sed -f $tmp/defines.sed $tmp/in >$tmp/out
21568: rm -f $tmp/in
21569: mv $tmp/out $tmp/in
21570: ' >>$CONFIG_STATUS
21571: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21572: rm -f conftest.defines
21573: mv conftest.tail conftest.defines
21574: done
21575: rm -f conftest.defines
21576: echo ' fi # grep' >>$CONFIG_STATUS
21577: echo >>$CONFIG_STATUS
21578:
21579: # Break up conftest.undefs because some shells have a limit on the size
21580: # of here documents, and old seds have small limits too (100 cmds).
21581: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 21582: rm -f conftest.tail
1.62 paf 21583: while grep . conftest.undefs >/dev/null
1.1 paf 21584: do
1.62 paf 21585: # Write a limited-size here document to $tmp/undefs.sed.
21586: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21587: # Speed up: don't consider the non `#undef'
1.86 paf 21588: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.62 paf 21589: # Work around the forget-to-reset-the-flag bug.
21590: echo 't clr' >>$CONFIG_STATUS
21591: echo ': clr' >>$CONFIG_STATUS
21592: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 21593: echo 'CEOF
1.62 paf 21594: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21595: rm -f $tmp/in
21596: mv $tmp/out $tmp/in
21597: ' >>$CONFIG_STATUS
21598: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21599: rm -f conftest.undefs
21600: mv conftest.tail conftest.undefs
21601: done
21602: rm -f conftest.undefs
21603:
21604: cat >>$CONFIG_STATUS <<\_ACEOF
21605: # Let's still pretend it is `configure' which instantiates (i.e., don't
21606: # use $as_me), people would be surprised to read:
21607: # /* config.h. Generated by config.status. */
21608: if test x"$ac_file" = x-; then
21609: echo "/* Generated by configure. */" >$tmp/config.h
21610: else
21611: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21612: fi
21613: cat $tmp/in >>$tmp/config.h
21614: rm -f $tmp/in
21615: if test x"$ac_file" != x-; then
21616: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21617: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21618: echo "$as_me: $ac_file is unchanged" >&6;}
21619: else
21620: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21621: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21622: X"$ac_file" : 'X\(//\)[^/]' \| \
21623: X"$ac_file" : 'X\(//\)$' \| \
21624: X"$ac_file" : 'X\(/\)' \| \
21625: . : '\(.\)' 2>/dev/null ||
1.62 paf 21626: echo X"$ac_file" |
21627: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21628: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21629: /^X\(\/\/\)$/{ s//\1/; q; }
21630: /^X\(\/\).*/{ s//\1/; q; }
21631: s/.*/./; q'`
21632: { if $as_mkdir_p; then
21633: mkdir -p "$ac_dir"
21634: else
21635: as_dir="$ac_dir"
21636: as_dirs=
21637: while test ! -d "$as_dir"; do
21638: as_dirs="$as_dir $as_dirs"
21639: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21640: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21641: X"$as_dir" : 'X\(//\)[^/]' \| \
21642: X"$as_dir" : 'X\(//\)$' \| \
21643: X"$as_dir" : 'X\(/\)' \| \
21644: . : '\(.\)' 2>/dev/null ||
1.62 paf 21645: echo X"$as_dir" |
21646: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21647: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21648: /^X\(\/\/\)$/{ s//\1/; q; }
21649: /^X\(\/\).*/{ s//\1/; q; }
21650: s/.*/./; q'`
21651: done
21652: test ! -n "$as_dirs" || mkdir $as_dirs
21653: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21654: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21655: { (exit 1); exit 1; }; }; }
21656:
21657: rm -f $ac_file
21658: mv $tmp/config.h $ac_file
21659: fi
21660: else
21661: cat $tmp/config.h
21662: rm -f $tmp/config.h
21663: fi
1.86 paf 21664: # Compute $ac_file's index in $config_headers.
21665: _am_stamp_count=1
21666: for _am_header in $config_headers :; do
21667: case $_am_header in
21668: $ac_file | $ac_file:* )
21669: break ;;
21670: * )
21671: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21672: esac
21673: done
1.62 paf 21674: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21675: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21676: X$ac_file : 'X\(//\)[^/]' \| \
21677: X$ac_file : 'X\(//\)$' \| \
21678: X$ac_file : 'X\(/\)' \| \
21679: . : '\(.\)' 2>/dev/null ||
1.62 paf 21680: echo X$ac_file |
21681: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21682: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21683: /^X\(\/\/\)$/{ s//\1/; q; }
21684: /^X\(\/\).*/{ s//\1/; q; }
21685: s/.*/./; q'`/stamp-h$_am_stamp_count
21686: done
21687: _ACEOF
21688: cat >>$CONFIG_STATUS <<\_ACEOF
21689:
21690: #
21691: # CONFIG_COMMANDS section.
21692: #
21693: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21694: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21695: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21696: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21697: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21698: X"$ac_dest" : 'X\(//\)[^/]' \| \
21699: X"$ac_dest" : 'X\(//\)$' \| \
21700: X"$ac_dest" : 'X\(/\)' \| \
21701: . : '\(.\)' 2>/dev/null ||
1.62 paf 21702: echo X"$ac_dest" |
21703: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21704: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21705: /^X\(\/\/\)$/{ s//\1/; q; }
21706: /^X\(\/\).*/{ s//\1/; q; }
21707: s/.*/./; q'`
1.86 paf 21708: { if $as_mkdir_p; then
21709: mkdir -p "$ac_dir"
21710: else
21711: as_dir="$ac_dir"
21712: as_dirs=
21713: while test ! -d "$as_dir"; do
21714: as_dirs="$as_dir $as_dirs"
21715: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21716: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21717: X"$as_dir" : 'X\(//\)[^/]' \| \
21718: X"$as_dir" : 'X\(//\)$' \| \
21719: X"$as_dir" : 'X\(/\)' \| \
21720: . : '\(.\)' 2>/dev/null ||
21721: echo X"$as_dir" |
21722: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21723: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21724: /^X\(\/\/\)$/{ s//\1/; q; }
21725: /^X\(\/\).*/{ s//\1/; q; }
21726: s/.*/./; q'`
21727: done
21728: test ! -n "$as_dirs" || mkdir $as_dirs
21729: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21730: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21731: { (exit 1); exit 1; }; }; }
21732:
1.62 paf 21733: ac_builddir=.
21734:
21735: if test "$ac_dir" != .; then
21736: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21737: # A "../" for each directory in $ac_dir_suffix.
21738: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21739: else
21740: ac_dir_suffix= ac_top_builddir=
21741: fi
21742:
21743: case $srcdir in
21744: .) # No --srcdir option. We are building in place.
21745: ac_srcdir=.
21746: if test -z "$ac_top_builddir"; then
21747: ac_top_srcdir=.
21748: else
21749: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21750: fi ;;
21751: [\\/]* | ?:[\\/]* ) # Absolute path.
21752: ac_srcdir=$srcdir$ac_dir_suffix;
21753: ac_top_srcdir=$srcdir ;;
21754: *) # Relative path.
21755: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21756: ac_top_srcdir=$ac_top_builddir$srcdir ;;
21757: esac
1.86 paf 21758:
21759: # Do not use `cd foo && pwd` to compute absolute paths, because
21760: # the directories may not exist.
21761: case `pwd` in
21762: .) ac_abs_builddir="$ac_dir";;
21763: *)
21764: case "$ac_dir" in
21765: .) ac_abs_builddir=`pwd`;;
21766: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21767: *) ac_abs_builddir=`pwd`/"$ac_dir";;
21768: esac;;
21769: esac
21770: case $ac_abs_builddir in
21771: .) ac_abs_top_builddir=${ac_top_builddir}.;;
21772: *)
21773: case ${ac_top_builddir}. in
21774: .) ac_abs_top_builddir=$ac_abs_builddir;;
21775: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21776: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21777: esac;;
21778: esac
21779: case $ac_abs_builddir in
21780: .) ac_abs_srcdir=$ac_srcdir;;
21781: *)
21782: case $ac_srcdir in
21783: .) ac_abs_srcdir=$ac_abs_builddir;;
21784: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21785: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21786: esac;;
21787: esac
21788: case $ac_abs_builddir in
21789: .) ac_abs_top_srcdir=$ac_top_srcdir;;
21790: *)
21791: case $ac_top_srcdir in
21792: .) ac_abs_top_srcdir=$ac_abs_builddir;;
21793: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21794: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21795: esac;;
21796: esac
1.62 paf 21797:
21798:
21799: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21800: echo "$as_me: executing $ac_dest commands" >&6;}
21801: case $ac_dest in
21802: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21803: # Strip MF so we end up with the name of the file.
21804: mf=`echo "$mf" | sed -e 's/:.*$//'`
21805: # Check whether this is an Automake generated Makefile or not.
21806: # We used to match only the files named `Makefile.in', but
21807: # some people rename them; so instead we look at the file content.
21808: # Grep'ing the first line is not enough: some people post-process
21809: # each Makefile.in and add a new line on top of each file to say so.
21810: # So let's grep whole file.
21811: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21812: dirpart=`(dirname "$mf") 2>/dev/null ||
21813: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21814: X"$mf" : 'X\(//\)[^/]' \| \
21815: X"$mf" : 'X\(//\)$' \| \
21816: X"$mf" : 'X\(/\)' \| \
21817: . : '\(.\)' 2>/dev/null ||
1.62 paf 21818: echo X"$mf" |
21819: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21820: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21821: /^X\(\/\/\)$/{ s//\1/; q; }
21822: /^X\(\/\).*/{ s//\1/; q; }
21823: s/.*/./; q'`
21824: else
21825: continue
21826: fi
1.86 paf 21827: # Extract the definition of DEPDIR, am__include, and am__quote
21828: # from the Makefile without running `make'.
21829: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.62 paf 21830: test -z "$DEPDIR" && continue
1.86 paf 21831: am__include=`sed -n 's/^am__include = //p' < "$mf"`
21832: test -z "am__include" && continue
21833: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.62 paf 21834: # When using ansi2knr, U may be empty or an underscore; expand it
1.86 paf 21835: U=`sed -n 's/^U = //p' < "$mf"`
21836: # Find all dependency output files, they are included files with
21837: # $(DEPDIR) in their names. We invoke sed twice because it is the
21838: # simplest approach to changing $(DEPDIR) to its actual value in the
21839: # expansion.
21840: for file in `sed -n "
21841: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.62 paf 21842: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21843: # Make sure the directory exists.
21844: test -f "$dirpart/$file" && continue
21845: fdir=`(dirname "$file") 2>/dev/null ||
21846: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21847: X"$file" : 'X\(//\)[^/]' \| \
21848: X"$file" : 'X\(//\)$' \| \
21849: X"$file" : 'X\(/\)' \| \
21850: . : '\(.\)' 2>/dev/null ||
1.62 paf 21851: echo X"$file" |
21852: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21853: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21854: /^X\(\/\/\)$/{ s//\1/; q; }
21855: /^X\(\/\).*/{ s//\1/; q; }
21856: s/.*/./; q'`
21857: { if $as_mkdir_p; then
21858: mkdir -p $dirpart/$fdir
21859: else
21860: as_dir=$dirpart/$fdir
21861: as_dirs=
21862: while test ! -d "$as_dir"; do
21863: as_dirs="$as_dir $as_dirs"
21864: as_dir=`(dirname "$as_dir") 2>/dev/null ||
21865: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 21866: X"$as_dir" : 'X\(//\)[^/]' \| \
21867: X"$as_dir" : 'X\(//\)$' \| \
21868: X"$as_dir" : 'X\(/\)' \| \
21869: . : '\(.\)' 2>/dev/null ||
1.62 paf 21870: echo X"$as_dir" |
21871: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21872: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21873: /^X\(\/\/\)$/{ s//\1/; q; }
21874: /^X\(\/\).*/{ s//\1/; q; }
21875: s/.*/./; q'`
21876: done
21877: test ! -n "$as_dirs" || mkdir $as_dirs
21878: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21879: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21880: { (exit 1); exit 1; }; }; }
1.1 paf 21881:
1.62 paf 21882: # echo "creating $dirpart/$file"
21883: echo '# dummy' > "$dirpart/$file"
21884: done
21885: done
21886: ;;
1.128 moko 21887: libtool )
21888:
21889: # See if we are running on zsh, and set the options which allow our
21890: # commands through without removal of \ escapes.
21891: if test -n "${ZSH_VERSION+set}" ; then
21892: setopt NO_GLOB_SUBST
21893: fi
21894:
21895: cfgfile="${ofile}T"
21896: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21897: $RM "$cfgfile"
21898:
21899: cat <<_LT_EOF >> "$cfgfile"
21900: #! $SHELL
21901:
21902: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21903: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21904: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21905: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21906: #
21907: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21908: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21909: # Foundation, Inc.
21910: # Written by Gordon Matzigkeit, 1996
21911: #
21912: # This file is part of GNU Libtool.
21913: #
21914: # GNU Libtool is free software; you can redistribute it and/or
21915: # modify it under the terms of the GNU General Public License as
21916: # published by the Free Software Foundation; either version 2 of
21917: # the License, or (at your option) any later version.
21918: #
21919: # As a special exception to the GNU General Public License,
21920: # if you distribute this file as part of a program or library that
21921: # is built using GNU Libtool, you may include this file under the
21922: # same distribution terms that you use for the rest of that program.
21923: #
21924: # GNU Libtool is distributed in the hope that it will be useful,
21925: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21926: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21927: # GNU General Public License for more details.
21928: #
21929: # You should have received a copy of the GNU General Public License
21930: # along with GNU Libtool; see the file COPYING. If not, a copy
21931: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21932: # obtained by writing to the Free Software Foundation, Inc.,
21933: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21934:
21935:
21936: # The names of the tagged configurations supported by this script.
21937: available_tags="CXX "
21938:
21939: # ### BEGIN LIBTOOL CONFIG
21940:
21941: # Which release of libtool.m4 was used?
21942: macro_version=$macro_version
21943: macro_revision=$macro_revision
21944:
21945: # Assembler program.
21946: AS=$lt_AS
21947:
21948: # DLL creation program.
21949: DLLTOOL=$lt_DLLTOOL
21950:
21951: # Object dumper program.
21952: OBJDUMP=$lt_OBJDUMP
21953:
21954: # Whether or not to build shared libraries.
21955: build_libtool_libs=$enable_shared
21956:
1.138 moko 21957: # Whether or not to build static libraries.
21958: build_old_libs=$enable_static
21959:
1.128 moko 21960: # What type of objects to build.
21961: pic_mode=$pic_mode
21962:
21963: # Whether or not to optimize for fast installation.
21964: fast_install=$enable_fast_install
21965:
21966: # Shell to use when invoking shell scripts.
21967: SHELL=$lt_SHELL
21968:
21969: # An echo program that protects backslashes.
21970: ECHO=$lt_ECHO
21971:
21972: # The PATH separator for the build system.
21973: PATH_SEPARATOR=$lt_PATH_SEPARATOR
21974:
21975: # The host system.
21976: host_alias=$host_alias
21977: host=$host
21978: host_os=$host_os
21979:
21980: # The build system.
21981: build_alias=$build_alias
21982: build=$build
21983: build_os=$build_os
21984:
21985: # A sed program that does not truncate output.
21986: SED=$lt_SED
21987:
21988: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21989: Xsed="\$SED -e 1s/^X//"
21990:
21991: # A grep program that handles long lines.
21992: GREP=$lt_GREP
21993:
21994: # An ERE matcher.
21995: EGREP=$lt_EGREP
21996:
21997: # A literal string matcher.
21998: FGREP=$lt_FGREP
21999:
22000: # A BSD- or MS-compatible name lister.
22001: NM=$lt_NM
22002:
22003: # Whether we need soft or hard links.
22004: LN_S=$lt_LN_S
22005:
22006: # What is the maximum length of a command?
22007: max_cmd_len=$max_cmd_len
22008:
22009: # Object file suffix (normally "o").
22010: objext=$ac_objext
22011:
22012: # Executable file suffix (normally "").
22013: exeext=$exeext
22014:
22015: # whether the shell understands "unset".
22016: lt_unset=$lt_unset
22017:
22018: # turn spaces into newlines.
22019: SP2NL=$lt_lt_SP2NL
22020:
22021: # turn newlines into spaces.
22022: NL2SP=$lt_lt_NL2SP
22023:
22024: # convert \$build file names to \$host format.
22025: to_host_file_cmd=$lt_cv_to_host_file_cmd
22026:
22027: # convert \$build files to toolchain format.
22028: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22029:
22030: # Method to check whether dependent libraries are shared objects.
22031: deplibs_check_method=$lt_deplibs_check_method
22032:
22033: # Command to use when deplibs_check_method = "file_magic".
22034: file_magic_cmd=$lt_file_magic_cmd
22035:
22036: # How to find potential files when deplibs_check_method = "file_magic".
22037: file_magic_glob=$lt_file_magic_glob
22038:
22039: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22040: want_nocaseglob=$lt_want_nocaseglob
22041:
22042: # Command to associate shared and link libraries.
22043: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22044:
22045: # The archiver.
22046: AR=$lt_AR
22047:
22048: # Flags to create an archive.
22049: AR_FLAGS=$lt_AR_FLAGS
22050:
22051: # How to feed a file listing to the archiver.
22052: archiver_list_spec=$lt_archiver_list_spec
22053:
22054: # A symbol stripping program.
22055: STRIP=$lt_STRIP
22056:
22057: # Commands used to install an old-style archive.
22058: RANLIB=$lt_RANLIB
22059: old_postinstall_cmds=$lt_old_postinstall_cmds
22060: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22061:
22062: # Whether to use a lock for old archive extraction.
22063: lock_old_archive_extraction=$lock_old_archive_extraction
22064:
22065: # A C compiler.
22066: LTCC=$lt_CC
22067:
22068: # LTCC compiler flags.
22069: LTCFLAGS=$lt_CFLAGS
22070:
22071: # Take the output of nm and produce a listing of raw symbols and C names.
22072: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22073:
22074: # Transform the output of nm in a proper C declaration.
22075: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22076:
22077: # Transform the output of nm in a C name address pair.
22078: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22079:
22080: # Transform the output of nm in a C name address pair when lib prefix is needed.
22081: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22082:
22083: # Specify filename containing input files for \$NM.
22084: nm_file_list_spec=$lt_nm_file_list_spec
22085:
22086: # The root where to search for dependent libraries,and in which our libraries should be installed.
22087: lt_sysroot=$lt_sysroot
22088:
22089: # The name of the directory that contains temporary libtool files.
22090: objdir=$objdir
22091:
22092: # Used to examine libraries when file_magic_cmd begins with "file".
22093: MAGIC_CMD=$MAGIC_CMD
22094:
22095: # Must we lock files when doing compilation?
22096: need_locks=$lt_need_locks
22097:
22098: # Manifest tool.
22099: MANIFEST_TOOL=$lt_MANIFEST_TOOL
22100:
22101: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22102: DSYMUTIL=$lt_DSYMUTIL
22103:
22104: # Tool to change global to local symbols on Mac OS X.
22105: NMEDIT=$lt_NMEDIT
22106:
22107: # Tool to manipulate fat objects and archives on Mac OS X.
22108: LIPO=$lt_LIPO
22109:
22110: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22111: OTOOL=$lt_OTOOL
22112:
22113: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22114: OTOOL64=$lt_OTOOL64
22115:
22116: # Old archive suffix (normally "a").
22117: libext=$libext
22118:
22119: # Shared library suffix (normally ".so").
22120: shrext_cmds=$lt_shrext_cmds
22121:
22122: # The commands to extract the exported symbol list from a shared archive.
22123: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22124:
22125: # Variables whose values should be saved in libtool wrapper scripts and
22126: # restored at link time.
22127: variables_saved_for_relink=$lt_variables_saved_for_relink
22128:
22129: # Do we need the "lib" prefix for modules?
22130: need_lib_prefix=$need_lib_prefix
22131:
22132: # Do we need a version for libraries?
22133: need_version=$need_version
22134:
22135: # Library versioning type.
22136: version_type=$version_type
22137:
22138: # Shared library runtime path variable.
22139: runpath_var=$runpath_var
22140:
22141: # Shared library path variable.
22142: shlibpath_var=$shlibpath_var
22143:
22144: # Is shlibpath searched before the hard-coded library search path?
22145: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22146:
22147: # Format of library name prefix.
22148: libname_spec=$lt_libname_spec
22149:
22150: # List of archive names. First name is the real one, the rest are links.
22151: # The last name is the one that the linker finds with -lNAME
22152: library_names_spec=$lt_library_names_spec
22153:
22154: # The coded name of the library, if different from the real name.
22155: soname_spec=$lt_soname_spec
22156:
22157: # Permission mode override for installation of shared libraries.
22158: install_override_mode=$lt_install_override_mode
22159:
22160: # Command to use after installation of a shared archive.
22161: postinstall_cmds=$lt_postinstall_cmds
22162:
22163: # Command to use after uninstallation of a shared archive.
22164: postuninstall_cmds=$lt_postuninstall_cmds
22165:
22166: # Commands used to finish a libtool library installation in a directory.
22167: finish_cmds=$lt_finish_cmds
22168:
22169: # As "finish_cmds", except a single script fragment to be evaled but
22170: # not shown.
22171: finish_eval=$lt_finish_eval
22172:
22173: # Whether we should hardcode library paths into libraries.
22174: hardcode_into_libs=$hardcode_into_libs
22175:
22176: # Compile-time system search path for libraries.
22177: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22178:
22179: # Run-time system search path for libraries.
22180: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22181:
22182: # Whether dlopen is supported.
22183: dlopen_support=$enable_dlopen
22184:
22185: # Whether dlopen of programs is supported.
22186: dlopen_self=$enable_dlopen_self
22187:
22188: # Whether dlopen of statically linked programs is supported.
22189: dlopen_self_static=$enable_dlopen_self_static
22190:
22191: # Commands to strip libraries.
22192: old_striplib=$lt_old_striplib
22193: striplib=$lt_striplib
22194:
22195:
22196: # The linker used to build libraries.
22197: LD=$lt_LD
22198:
22199: # How to create reloadable object files.
22200: reload_flag=$lt_reload_flag
22201: reload_cmds=$lt_reload_cmds
22202:
22203: # Commands used to build an old-style archive.
22204: old_archive_cmds=$lt_old_archive_cmds
22205:
22206: # A language specific compiler.
22207: CC=$lt_compiler
22208:
22209: # Is the compiler the GNU compiler?
22210: with_gcc=$GCC
22211:
22212: # Compiler flag to turn off builtin functions.
22213: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22214:
22215: # Additional compiler flags for building library objects.
22216: pic_flag=$lt_lt_prog_compiler_pic
22217:
22218: # How to pass a linker flag through the compiler.
22219: wl=$lt_lt_prog_compiler_wl
22220:
22221: # Compiler flag to prevent dynamic linking.
22222: link_static_flag=$lt_lt_prog_compiler_static
22223:
22224: # Does compiler simultaneously support -c and -o options?
22225: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22226:
22227: # Whether or not to add -lc for building shared libraries.
22228: build_libtool_need_lc=$archive_cmds_need_lc
22229:
22230: # Whether or not to disallow shared libs when runtime libs are static.
22231: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22232:
22233: # Compiler flag to allow reflexive dlopens.
22234: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22235:
22236: # Compiler flag to generate shared objects directly from archives.
22237: whole_archive_flag_spec=$lt_whole_archive_flag_spec
22238:
22239: # Whether the compiler copes with passing no objects directly.
22240: compiler_needs_object=$lt_compiler_needs_object
22241:
22242: # Create an old-style archive from a shared archive.
22243: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22244:
22245: # Create a temporary old-style archive to link instead of a shared archive.
22246: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22247:
22248: # Commands used to build a shared archive.
22249: archive_cmds=$lt_archive_cmds
22250: archive_expsym_cmds=$lt_archive_expsym_cmds
22251:
22252: # Commands used to build a loadable module if different from building
22253: # a shared archive.
22254: module_cmds=$lt_module_cmds
22255: module_expsym_cmds=$lt_module_expsym_cmds
22256:
22257: # Whether we are building with GNU ld or not.
22258: with_gnu_ld=$lt_with_gnu_ld
22259:
22260: # Flag that allows shared libraries with undefined symbols to be built.
22261: allow_undefined_flag=$lt_allow_undefined_flag
22262:
22263: # Flag that enforces no undefined symbols.
22264: no_undefined_flag=$lt_no_undefined_flag
22265:
22266: # Flag to hardcode \$libdir into a binary during linking.
22267: # This must work even if \$libdir does not exist
22268: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22269:
22270: # Whether we need a single "-rpath" flag with a separated argument.
22271: hardcode_libdir_separator=$lt_hardcode_libdir_separator
22272:
22273: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22274: # DIR into the resulting binary.
22275: hardcode_direct=$hardcode_direct
22276:
22277: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22278: # DIR into the resulting binary and the resulting library dependency is
22279: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22280: # library is relocated.
22281: hardcode_direct_absolute=$hardcode_direct_absolute
22282:
22283: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22284: # into the resulting binary.
22285: hardcode_minus_L=$hardcode_minus_L
22286:
22287: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22288: # into the resulting binary.
22289: hardcode_shlibpath_var=$hardcode_shlibpath_var
22290:
22291: # Set to "yes" if building a shared library automatically hardcodes DIR
22292: # into the library and all subsequent libraries and executables linked
22293: # against it.
22294: hardcode_automatic=$hardcode_automatic
22295:
22296: # Set to yes if linker adds runtime paths of dependent libraries
22297: # to runtime path list.
22298: inherit_rpath=$inherit_rpath
22299:
22300: # Whether libtool must link a program against all its dependency libraries.
22301: link_all_deplibs=$link_all_deplibs
22302:
22303: # Set to "yes" if exported symbols are required.
22304: always_export_symbols=$always_export_symbols
22305:
22306: # The commands to list exported symbols.
22307: export_symbols_cmds=$lt_export_symbols_cmds
22308:
22309: # Symbols that should not be listed in the preloaded symbols.
22310: exclude_expsyms=$lt_exclude_expsyms
22311:
22312: # Symbols that must always be exported.
22313: include_expsyms=$lt_include_expsyms
22314:
22315: # Commands necessary for linking programs (against libraries) with templates.
22316: prelink_cmds=$lt_prelink_cmds
22317:
22318: # Commands necessary for finishing linking programs.
22319: postlink_cmds=$lt_postlink_cmds
22320:
22321: # Specify filename containing input files.
22322: file_list_spec=$lt_file_list_spec
22323:
22324: # How to hardcode a shared library path into an executable.
22325: hardcode_action=$hardcode_action
22326:
22327: # The directories searched by this compiler when creating a shared library.
22328: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22329:
22330: # Dependencies to place before and after the objects being linked to
22331: # create a shared library.
22332: predep_objects=$lt_predep_objects
22333: postdep_objects=$lt_postdep_objects
22334: predeps=$lt_predeps
22335: postdeps=$lt_postdeps
22336:
22337: # The library search path used internally by the compiler when linking
22338: # a shared library.
22339: compiler_lib_search_path=$lt_compiler_lib_search_path
22340:
22341: # ### END LIBTOOL CONFIG
22342:
22343: _LT_EOF
22344:
22345: case $host_os in
22346: aix3*)
22347: cat <<\_LT_EOF >> "$cfgfile"
22348: # AIX sometimes has problems with the GCC collect2 program. For some
22349: # reason, if we set the COLLECT_NAMES environment variable, the problems
22350: # vanish in a puff of smoke.
22351: if test "X${COLLECT_NAMES+set}" != Xset; then
22352: COLLECT_NAMES=
22353: export COLLECT_NAMES
22354: fi
22355: _LT_EOF
22356: ;;
22357: esac
22358:
22359:
22360: ltmain="$ac_aux_dir/ltmain.sh"
22361:
22362:
22363: # We use sed instead of cat because bash on DJGPP gets confused if
22364: # if finds mixed CR/LF and LF-only lines. Since sed operates in
22365: # text mode, it properly converts lines to CR/LF. This bash problem
22366: # is reportedly fixed, but why not run on old versions too?
22367: sed '$q' "$ltmain" >> "$cfgfile" \
22368: || (rm -f "$cfgfile"; exit 1)
22369:
22370: if test x"$xsi_shell" = xyes; then
22371: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22372: func_dirname ()\
22373: {\
22374: \ case ${1} in\
22375: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22376: \ * ) func_dirname_result="${3}" ;;\
22377: \ esac\
22378: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22379: && mv -f "$cfgfile.tmp" "$cfgfile" \
22380: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22381: test 0 -eq $? || _lt_function_replace_fail=:
22382:
22383:
22384: sed -e '/^func_basename ()$/,/^} # func_basename /c\
22385: func_basename ()\
22386: {\
22387: \ func_basename_result="${1##*/}"\
22388: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22389: && mv -f "$cfgfile.tmp" "$cfgfile" \
22390: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22391: test 0 -eq $? || _lt_function_replace_fail=:
22392:
22393:
22394: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22395: func_dirname_and_basename ()\
22396: {\
22397: \ case ${1} in\
22398: \ */*) func_dirname_result="${1%/*}${2}" ;;\
22399: \ * ) func_dirname_result="${3}" ;;\
22400: \ esac\
22401: \ func_basename_result="${1##*/}"\
22402: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22403: && mv -f "$cfgfile.tmp" "$cfgfile" \
22404: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22405: test 0 -eq $? || _lt_function_replace_fail=:
22406:
22407:
22408: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22409: func_stripname ()\
22410: {\
22411: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22412: \ # positional parameters, so assign one to ordinary parameter first.\
22413: \ func_stripname_result=${3}\
22414: \ func_stripname_result=${func_stripname_result#"${1}"}\
22415: \ func_stripname_result=${func_stripname_result%"${2}"}\
22416: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22417: && mv -f "$cfgfile.tmp" "$cfgfile" \
22418: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22419: test 0 -eq $? || _lt_function_replace_fail=:
22420:
22421:
22422: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22423: func_split_long_opt ()\
22424: {\
22425: \ func_split_long_opt_name=${1%%=*}\
22426: \ func_split_long_opt_arg=${1#*=}\
22427: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22428: && mv -f "$cfgfile.tmp" "$cfgfile" \
22429: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22430: test 0 -eq $? || _lt_function_replace_fail=:
22431:
22432:
22433: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22434: func_split_short_opt ()\
22435: {\
22436: \ func_split_short_opt_arg=${1#??}\
22437: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22438: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22439: && mv -f "$cfgfile.tmp" "$cfgfile" \
22440: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22441: test 0 -eq $? || _lt_function_replace_fail=:
22442:
22443:
22444: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22445: func_lo2o ()\
22446: {\
22447: \ case ${1} in\
22448: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22449: \ *) func_lo2o_result=${1} ;;\
22450: \ esac\
22451: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22452: && mv -f "$cfgfile.tmp" "$cfgfile" \
22453: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22454: test 0 -eq $? || _lt_function_replace_fail=:
22455:
22456:
22457: sed -e '/^func_xform ()$/,/^} # func_xform /c\
22458: func_xform ()\
22459: {\
22460: func_xform_result=${1%.*}.lo\
22461: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22462: && mv -f "$cfgfile.tmp" "$cfgfile" \
22463: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22464: test 0 -eq $? || _lt_function_replace_fail=:
22465:
22466:
22467: sed -e '/^func_arith ()$/,/^} # func_arith /c\
22468: func_arith ()\
22469: {\
22470: func_arith_result=$(( $* ))\
22471: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22472: && mv -f "$cfgfile.tmp" "$cfgfile" \
22473: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22474: test 0 -eq $? || _lt_function_replace_fail=:
22475:
22476:
22477: sed -e '/^func_len ()$/,/^} # func_len /c\
22478: func_len ()\
22479: {\
22480: func_len_result=${#1}\
22481: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22482: && mv -f "$cfgfile.tmp" "$cfgfile" \
22483: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22484: test 0 -eq $? || _lt_function_replace_fail=:
22485:
22486: fi
22487:
22488: if test x"$lt_shell_append" = xyes; then
22489: sed -e '/^func_append ()$/,/^} # func_append /c\
22490: func_append ()\
22491: {\
22492: eval "${1}+=\\${2}"\
22493: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22494: && mv -f "$cfgfile.tmp" "$cfgfile" \
22495: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22496: test 0 -eq $? || _lt_function_replace_fail=:
22497:
22498:
22499: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22500: func_append_quoted ()\
22501: {\
22502: \ func_quote_for_eval "${2}"\
22503: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22504: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22505: && mv -f "$cfgfile.tmp" "$cfgfile" \
22506: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22507: test 0 -eq $? || _lt_function_replace_fail=:
22508:
22509:
22510: # Save a `func_append' function call where possible by direct use of '+='
22511: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22512: && mv -f "$cfgfile.tmp" "$cfgfile" \
22513: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22514: test 0 -eq $? || _lt_function_replace_fail=:
22515: else
22516: # Save a `func_append' function call even when '+=' is not available
22517: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22518: && mv -f "$cfgfile.tmp" "$cfgfile" \
22519: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22520: test 0 -eq $? || _lt_function_replace_fail=:
22521: fi
22522:
22523: if test x"$_lt_function_replace_fail" = x":"; then
22524: { echo "$as_me:$LINENO: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22525: echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22526: fi
22527:
22528:
22529: mv -f "$cfgfile" "$ofile" ||
22530: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22531: chmod +x "$ofile"
22532:
22533:
22534: cat <<_LT_EOF >> "$ofile"
22535:
22536: # ### BEGIN LIBTOOL TAG CONFIG: CXX
22537:
22538: # The linker used to build libraries.
22539: LD=$lt_LD_CXX
22540:
22541: # How to create reloadable object files.
22542: reload_flag=$lt_reload_flag_CXX
22543: reload_cmds=$lt_reload_cmds_CXX
22544:
22545: # Commands used to build an old-style archive.
22546: old_archive_cmds=$lt_old_archive_cmds_CXX
22547:
22548: # A language specific compiler.
22549: CC=$lt_compiler_CXX
22550:
22551: # Is the compiler the GNU compiler?
22552: with_gcc=$GCC_CXX
22553:
22554: # Compiler flag to turn off builtin functions.
22555: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22556:
22557: # Additional compiler flags for building library objects.
22558: pic_flag=$lt_lt_prog_compiler_pic_CXX
22559:
22560: # How to pass a linker flag through the compiler.
22561: wl=$lt_lt_prog_compiler_wl_CXX
22562:
22563: # Compiler flag to prevent dynamic linking.
22564: link_static_flag=$lt_lt_prog_compiler_static_CXX
22565:
22566: # Does compiler simultaneously support -c and -o options?
22567: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22568:
22569: # Whether or not to add -lc for building shared libraries.
22570: build_libtool_need_lc=$archive_cmds_need_lc_CXX
22571:
22572: # Whether or not to disallow shared libs when runtime libs are static.
22573: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22574:
22575: # Compiler flag to allow reflexive dlopens.
22576: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22577:
22578: # Compiler flag to generate shared objects directly from archives.
22579: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22580:
22581: # Whether the compiler copes with passing no objects directly.
22582: compiler_needs_object=$lt_compiler_needs_object_CXX
22583:
22584: # Create an old-style archive from a shared archive.
22585: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22586:
22587: # Create a temporary old-style archive to link instead of a shared archive.
22588: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22589:
22590: # Commands used to build a shared archive.
22591: archive_cmds=$lt_archive_cmds_CXX
22592: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22593:
22594: # Commands used to build a loadable module if different from building
22595: # a shared archive.
22596: module_cmds=$lt_module_cmds_CXX
22597: module_expsym_cmds=$lt_module_expsym_cmds_CXX
22598:
22599: # Whether we are building with GNU ld or not.
22600: with_gnu_ld=$lt_with_gnu_ld_CXX
22601:
22602: # Flag that allows shared libraries with undefined symbols to be built.
22603: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22604:
22605: # Flag that enforces no undefined symbols.
22606: no_undefined_flag=$lt_no_undefined_flag_CXX
22607:
22608: # Flag to hardcode \$libdir into a binary during linking.
22609: # This must work even if \$libdir does not exist
22610: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22611:
22612: # Whether we need a single "-rpath" flag with a separated argument.
22613: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22614:
22615: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22616: # DIR into the resulting binary.
22617: hardcode_direct=$hardcode_direct_CXX
22618:
22619: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22620: # DIR into the resulting binary and the resulting library dependency is
22621: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22622: # library is relocated.
22623: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22624:
22625: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22626: # into the resulting binary.
22627: hardcode_minus_L=$hardcode_minus_L_CXX
22628:
22629: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22630: # into the resulting binary.
22631: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22632:
22633: # Set to "yes" if building a shared library automatically hardcodes DIR
22634: # into the library and all subsequent libraries and executables linked
22635: # against it.
22636: hardcode_automatic=$hardcode_automatic_CXX
22637:
22638: # Set to yes if linker adds runtime paths of dependent libraries
22639: # to runtime path list.
22640: inherit_rpath=$inherit_rpath_CXX
22641:
22642: # Whether libtool must link a program against all its dependency libraries.
22643: link_all_deplibs=$link_all_deplibs_CXX
22644:
22645: # Set to "yes" if exported symbols are required.
22646: always_export_symbols=$always_export_symbols_CXX
22647:
22648: # The commands to list exported symbols.
22649: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22650:
22651: # Symbols that should not be listed in the preloaded symbols.
22652: exclude_expsyms=$lt_exclude_expsyms_CXX
22653:
22654: # Symbols that must always be exported.
22655: include_expsyms=$lt_include_expsyms_CXX
22656:
22657: # Commands necessary for linking programs (against libraries) with templates.
22658: prelink_cmds=$lt_prelink_cmds_CXX
22659:
22660: # Commands necessary for finishing linking programs.
22661: postlink_cmds=$lt_postlink_cmds_CXX
22662:
22663: # Specify filename containing input files.
22664: file_list_spec=$lt_file_list_spec_CXX
22665:
22666: # How to hardcode a shared library path into an executable.
22667: hardcode_action=$hardcode_action_CXX
22668:
22669: # The directories searched by this compiler when creating a shared library.
22670: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22671:
22672: # Dependencies to place before and after the objects being linked to
22673: # create a shared library.
22674: predep_objects=$lt_predep_objects_CXX
22675: postdep_objects=$lt_postdep_objects_CXX
22676: predeps=$lt_predeps_CXX
22677: postdeps=$lt_postdeps_CXX
22678:
22679: # The library search path used internally by the compiler when linking
22680: # a shared library.
22681: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22682:
22683: # ### END LIBTOOL TAG CONFIG: CXX
22684: _LT_EOF
22685:
22686: ;;
1.62 paf 22687: esac
22688: done
22689: _ACEOF
22690:
22691: cat >>$CONFIG_STATUS <<\_ACEOF
22692:
22693: { (exit 0); exit 0; }
22694: _ACEOF
1.1 paf 22695: chmod +x $CONFIG_STATUS
1.62 paf 22696: ac_clean_files=$ac_clean_files_save
22697:
1.1 paf 22698:
1.62 paf 22699: # configure is writing to config.log, and then calls config.status.
22700: # config.status does its own redirection, appending to config.log.
22701: # Unfortunately, on DOS this fails, as config.log is still kept open
22702: # by configure, so config.status won't be able to write to it; its
22703: # output is simply discarded. So we exec the FD to /dev/null,
22704: # effectively closing config.log, so it can be properly (re)opened and
22705: # appended to by config.status. When coming back to configure, we
22706: # need to make the FD available again.
22707: if test "$no_create" != yes; then
22708: ac_cs_success=:
22709: ac_config_status_args=
22710: test "$silent" = yes &&
22711: ac_config_status_args="$ac_config_status_args --quiet"
22712: exec 5>/dev/null
22713: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22714: exec 5>>config.log
22715: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22716: # would make configure fail if this is the last instruction.
22717: $ac_cs_success || { (exit 1); exit 1; }
22718: fi
22719:
22720: #
22721: # CONFIG_SUBDIRS section.
22722: #
1.1 paf 22723: if test "$no_recursion" != yes; then
22724:
22725: # Remove --cache-file and --srcdir arguments so they do not pile up.
22726: ac_sub_configure_args=
22727: ac_prev=
22728: for ac_arg in $ac_configure_args; do
22729: if test -n "$ac_prev"; then
22730: ac_prev=
22731: continue
22732: fi
1.62 paf 22733: case $ac_arg in
1.1 paf 22734: -cache-file | --cache-file | --cache-fil | --cache-fi \
22735: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22736: ac_prev=cache_file ;;
22737: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 22738: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22739: | --c=*)
22740: ;;
22741: --config-cache | -C)
1.1 paf 22742: ;;
22743: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22744: ac_prev=srcdir ;;
22745: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22746: ;;
1.62 paf 22747: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22748: ac_prev=prefix ;;
22749: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22750: ;;
1.1 paf 22751: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22752: esac
22753: done
22754:
1.62 paf 22755: # Always prepend --prefix to ensure using the same prefix
22756: # in subdir configurations.
22757: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
22758:
22759: ac_popdir=`pwd`
22760: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 22761:
22762: # Do not complain, so a configure script can configure whichever
22763: # parts of a large source tree are present.
1.62 paf 22764: test -d $srcdir/$ac_dir || continue
1.1 paf 22765:
1.62 paf 22766: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22767: echo "$as_me: configuring in $ac_dir" >&6;}
22768: { if $as_mkdir_p; then
22769: mkdir -p "$ac_dir"
22770: else
22771: as_dir="$ac_dir"
22772: as_dirs=
22773: while test ! -d "$as_dir"; do
22774: as_dirs="$as_dir $as_dirs"
22775: as_dir=`(dirname "$as_dir") 2>/dev/null ||
22776: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 22777: X"$as_dir" : 'X\(//\)[^/]' \| \
22778: X"$as_dir" : 'X\(//\)$' \| \
22779: X"$as_dir" : 'X\(/\)' \| \
22780: . : '\(.\)' 2>/dev/null ||
1.62 paf 22781: echo X"$as_dir" |
22782: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22783: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22784: /^X\(\/\/\)$/{ s//\1/; q; }
22785: /^X\(\/\).*/{ s//\1/; q; }
22786: s/.*/./; q'`
22787: done
22788: test ! -n "$as_dirs" || mkdir $as_dirs
22789: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22790: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22791: { (exit 1); exit 1; }; }; }
22792:
22793: ac_builddir=.
22794:
22795: if test "$ac_dir" != .; then
22796: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22797: # A "../" for each directory in $ac_dir_suffix.
22798: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22799: else
22800: ac_dir_suffix= ac_top_builddir=
22801: fi
22802:
22803: case $srcdir in
22804: .) # No --srcdir option. We are building in place.
22805: ac_srcdir=.
22806: if test -z "$ac_top_builddir"; then
22807: ac_top_srcdir=.
22808: else
22809: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22810: fi ;;
22811: [\\/]* | ?:[\\/]* ) # Absolute path.
22812: ac_srcdir=$srcdir$ac_dir_suffix;
22813: ac_top_srcdir=$srcdir ;;
22814: *) # Relative path.
22815: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22816: ac_top_srcdir=$ac_top_builddir$srcdir ;;
22817: esac
1.86 paf 22818:
22819: # Do not use `cd foo && pwd` to compute absolute paths, because
22820: # the directories may not exist.
22821: case `pwd` in
22822: .) ac_abs_builddir="$ac_dir";;
22823: *)
22824: case "$ac_dir" in
22825: .) ac_abs_builddir=`pwd`;;
22826: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22827: *) ac_abs_builddir=`pwd`/"$ac_dir";;
22828: esac;;
22829: esac
22830: case $ac_abs_builddir in
22831: .) ac_abs_top_builddir=${ac_top_builddir}.;;
22832: *)
22833: case ${ac_top_builddir}. in
22834: .) ac_abs_top_builddir=$ac_abs_builddir;;
22835: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22836: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22837: esac;;
22838: esac
22839: case $ac_abs_builddir in
22840: .) ac_abs_srcdir=$ac_srcdir;;
22841: *)
22842: case $ac_srcdir in
22843: .) ac_abs_srcdir=$ac_abs_builddir;;
22844: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22845: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22846: esac;;
22847: esac
22848: case $ac_abs_builddir in
22849: .) ac_abs_top_srcdir=$ac_top_srcdir;;
22850: *)
22851: case $ac_top_srcdir in
22852: .) ac_abs_top_srcdir=$ac_abs_builddir;;
22853: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22854: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22855: esac;;
22856: esac
1.1 paf 22857:
22858:
1.62 paf 22859: cd $ac_dir
1.1 paf 22860:
22861: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 22862: if test -f $ac_srcdir/configure.gnu; then
22863: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
22864: elif test -f $ac_srcdir/configure; then
22865: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
22866: elif test -f $ac_srcdir/configure.in; then
1.1 paf 22867: ac_sub_configure=$ac_configure
22868: else
1.62 paf 22869: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22870: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 22871: ac_sub_configure=
22872: fi
22873:
22874: # The recursion is here.
22875: if test -n "$ac_sub_configure"; then
22876: # Make the cache file name correct relative to the subdirectory.
1.62 paf 22877: case $cache_file in
22878: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 22879: *) # Relative path.
1.86 paf 22880: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 22881: esac
22882:
1.62 paf 22883: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22884: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 22885: # The eval makes quoting arguments work.
1.62 paf 22886: eval $ac_sub_configure $ac_sub_configure_args \
1.86 paf 22887: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
22888: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
1.62 paf 22889: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22890: { (exit 1); exit 1; }; }
1.1 paf 22891: fi
22892:
22893: cd $ac_popdir
22894: done
22895: fi
22896:
E-mail: