|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.57.
4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
242:
243:
244: # Check that we are running under the correct shell.
245: SHELL=${CONFIG_SHELL-/bin/sh}
246:
247: case X$ECHO in
248: X*--fallback-echo)
249: # Remove one level of quotation (which was required for Make).
250: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251: ;;
252: esac
253:
254: echo=${ECHO-echo}
255: if test "X$1" = X--no-reexec; then
256: # Discard the --no-reexec flag, and continue.
257: shift
258: elif test "X$1" = X--fallback-echo; then
259: # Avoid inline document here, it may be left over
260: :
261: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262: # Yippee, $echo works!
263: :
264: else
265: # Restart under the correct shell.
266: exec $SHELL "$0" --no-reexec ${1+"$@"}
267: fi
268:
269: if test "X$1" = X--fallback-echo; then
270: # used as fallback echo
271: shift
272: cat <<EOF
273: $*
274: EOF
275: exit 0
276: fi
277:
278: # The HP-UX ksh and POSIX shell print the target directory to stdout
279: # if CDPATH is set.
280: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281:
282: if test -z "$ECHO"; then
283: if test "X${echo_test_string+set}" != Xset; then
284: # find a string as large as possible, as long as the shell can cope with it
285: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288: echo_test_string="`eval $cmd`" &&
289: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290: then
291: break
292: fi
293: done
294: fi
295:
296: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298: test "X$echo_testing_string" = "X$echo_test_string"; then
299: :
300: else
301: # The Solaris, AIX, and Digital Unix default echo programs unquote
302: # backslashes. This makes it impossible to quote backslashes using
303: # echo "$something" | sed 's/\\/\\\\/g'
304: #
305: # So, first we look for a working echo in the user's PATH.
306:
307: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308: for dir in $PATH /usr/ucb; do
309: IFS="$lt_save_ifs"
310: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313: test "X$echo_testing_string" = "X$echo_test_string"; then
314: echo="$dir/echo"
315: break
316: fi
317: done
318: IFS="$lt_save_ifs"
319:
320: if test "X$echo" = Xecho; then
321: # We didn't find a better echo, so look for alternatives.
322: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324: test "X$echo_testing_string" = "X$echo_test_string"; then
325: # This shell has a builtin print -r that does the trick.
326: echo='print -r'
327: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328: test "X$CONFIG_SHELL" != X/bin/ksh; then
329: # If we have ksh, try running configure again with it.
330: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331: export ORIGINAL_CONFIG_SHELL
332: CONFIG_SHELL=/bin/ksh
333: export CONFIG_SHELL
334: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335: else
336: # Try using printf.
337: echo='printf %s\n'
338: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340: test "X$echo_testing_string" = "X$echo_test_string"; then
341: # Cool, printf works
342: :
343: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344: test "X$echo_testing_string" = 'X\t' &&
345: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346: test "X$echo_testing_string" = "X$echo_test_string"; then
347: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348: export CONFIG_SHELL
349: SHELL="$CONFIG_SHELL"
350: export SHELL
351: echo="$CONFIG_SHELL $0 --fallback-echo"
352: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353: test "X$echo_testing_string" = 'X\t' &&
354: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355: test "X$echo_testing_string" = "X$echo_test_string"; then
356: echo="$CONFIG_SHELL $0 --fallback-echo"
357: else
358: # maybe with a smaller string...
359: prev=:
360:
361: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363: then
364: break
365: fi
366: prev="$cmd"
367: done
368:
369: if test "$prev" != 'sed 50q "$0"'; then
370: echo_test_string=`eval $prev`
371: export echo_test_string
372: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373: else
374: # Oops. We lost completely, so just stick with echo.
375: echo=echo
376: fi
377: fi
378: fi
379: fi
380: fi
381: fi
382:
383: # Copy echo and quote the copy suitably for passing to libtool from
384: # the Makefile, instead of quoting the original, which is used later.
385: ECHO=$echo
386: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388: fi
389:
390:
391:
392:
393: tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394:
395: tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396:
397: # Name of the host.
398: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399: # so uname gets run too.
400: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401:
402: exec 6>&1
403:
404: #
405: # Initializations.
406: #
407: ac_default_prefix=/usr/local
408: ac_config_libobj_dir=.
409: cross_compiling=no
410: subdirs=
411: MFLAGS=
412: MAKEFLAGS=
413: SHELL=${CONFIG_SHELL-/bin/sh}
414:
415: # Maximum number of lines to put in a shell here document.
416: # This variable seems obsolete. It should probably be removed, and
417: # only ac_max_sed_lines should be used.
418: : ${ac_max_here_lines=38}
419:
420: # Identity of this package.
421: PACKAGE_NAME=
422: PACKAGE_TARNAME=
423: PACKAGE_VERSION=
424: PACKAGE_STRING=
425: PACKAGE_BUGREPORT=
426:
427: ac_unique_file="ic/m68k/m68k-impl.h"
428: # Factoring default headers for most tests.
429: ac_includes_default="\
430: #include <stdio.h>
431: #if HAVE_SYS_TYPES_H
432: # include <sys/types.h>
433: #endif
434: #if HAVE_SYS_STAT_H
435: # include <sys/stat.h>
436: #endif
437: #if STDC_HEADERS
438: # include <stdlib.h>
439: # include <stddef.h>
440: #else
441: # if HAVE_STDLIB_H
442: # include <stdlib.h>
443: # endif
444: #endif
445: #if HAVE_STRING_H
446: # if !STDC_HEADERS && HAVE_MEMORY_H
447: # include <memory.h>
448: # endif
449: # include <string.h>
450: #endif
451: #if HAVE_STRINGS_H
452: # include <strings.h>
453: #endif
454: #if HAVE_INTTYPES_H
455: # include <inttypes.h>
456: #else
457: # if HAVE_STDINT_H
458: # include <stdint.h>
459: # endif
460: #endif
461: #if HAVE_UNISTD_H
462: # include <unistd.h>
463: #endif"
464:
465: ac_subdirs_all="$ac_subdirs_all libltdl"
1.1.1.3 root 466: 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP YACC EGREP LIBOBJS PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS TME_FB_XLAT_DST TME_MACHINE_SUBDIRS TME_IC_SUBDIRS TME_ICS TME_SERIAL_SUBDIRS TME_SERIALS TME_BUS_SUBDIRS TME_FB_XLAT_SRC TME_HOSTS INCLTDL LIBLTDL LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS subdirs TME_PREOPEN CFLAGS_NO_STRICT_ALIASING'
1.1 root 467: ac_subst_files=''
468:
469: # Initialize some variables set by options.
470: ac_init_help=
471: ac_init_version=false
472: # The variables have the same names as the options, with
473: # dashes changed to underlines.
474: cache_file=/dev/null
475: exec_prefix=NONE
476: no_create=
477: no_recursion=
478: prefix=NONE
479: program_prefix=NONE
480: program_suffix=NONE
481: program_transform_name=s,x,x,
482: silent=
483: site=
484: srcdir=
485: verbose=
486: x_includes=NONE
487: x_libraries=NONE
488:
489: # Installation directory options.
490: # These are left unexpanded so users can "make install exec_prefix=/foo"
491: # and all the variables that are supposed to be based on exec_prefix
492: # by default will actually change.
493: # Use braces instead of parens because sh, perl, etc. also accept them.
494: bindir='${exec_prefix}/bin'
495: sbindir='${exec_prefix}/sbin'
496: libexecdir='${exec_prefix}/libexec'
497: datadir='${prefix}/share'
498: sysconfdir='${prefix}/etc'
499: sharedstatedir='${prefix}/com'
500: localstatedir='${prefix}/var'
501: libdir='${exec_prefix}/lib'
502: includedir='${prefix}/include'
503: oldincludedir='/usr/include'
504: infodir='${prefix}/info'
505: mandir='${prefix}/man'
506:
507: ac_prev=
508: for ac_option
509: do
510: # If the previous option needs an argument, assign it.
511: if test -n "$ac_prev"; then
512: eval "$ac_prev=\$ac_option"
513: ac_prev=
514: continue
515: fi
516:
517: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518:
519: # Accept the important Cygnus configure options, so we can diagnose typos.
520:
521: case $ac_option in
522:
523: -bindir | --bindir | --bindi | --bind | --bin | --bi)
524: ac_prev=bindir ;;
525: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526: bindir=$ac_optarg ;;
527:
528: -build | --build | --buil | --bui | --bu)
529: ac_prev=build_alias ;;
530: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531: build_alias=$ac_optarg ;;
532:
533: -cache-file | --cache-file | --cache-fil | --cache-fi \
534: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535: ac_prev=cache_file ;;
536: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538: cache_file=$ac_optarg ;;
539:
540: --config-cache | -C)
541: cache_file=config.cache ;;
542:
543: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544: ac_prev=datadir ;;
545: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546: | --da=*)
547: datadir=$ac_optarg ;;
548:
549: -disable-* | --disable-*)
550: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551: # Reject names that are not valid shell variable names.
552: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554: { (exit 1); exit 1; }; }
555: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556: eval "enable_$ac_feature=no" ;;
557:
558: -enable-* | --enable-*)
559: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560: # Reject names that are not valid shell variable names.
561: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563: { (exit 1); exit 1; }; }
564: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565: case $ac_option in
566: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567: *) ac_optarg=yes ;;
568: esac
569: eval "enable_$ac_feature='$ac_optarg'" ;;
570:
571: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573: | --exec | --exe | --ex)
574: ac_prev=exec_prefix ;;
575: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577: | --exec=* | --exe=* | --ex=*)
578: exec_prefix=$ac_optarg ;;
579:
580: -gas | --gas | --ga | --g)
581: # Obsolete; use --with-gas.
582: with_gas=yes ;;
583:
584: -help | --help | --hel | --he | -h)
585: ac_init_help=long ;;
586: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587: ac_init_help=recursive ;;
588: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589: ac_init_help=short ;;
590:
591: -host | --host | --hos | --ho)
592: ac_prev=host_alias ;;
593: -host=* | --host=* | --hos=* | --ho=*)
594: host_alias=$ac_optarg ;;
595:
596: -includedir | --includedir | --includedi | --included | --include \
597: | --includ | --inclu | --incl | --inc)
598: ac_prev=includedir ;;
599: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600: | --includ=* | --inclu=* | --incl=* | --inc=*)
601: includedir=$ac_optarg ;;
602:
603: -infodir | --infodir | --infodi | --infod | --info | --inf)
604: ac_prev=infodir ;;
605: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606: infodir=$ac_optarg ;;
607:
608: -libdir | --libdir | --libdi | --libd)
609: ac_prev=libdir ;;
610: -libdir=* | --libdir=* | --libdi=* | --libd=*)
611: libdir=$ac_optarg ;;
612:
613: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614: | --libexe | --libex | --libe)
615: ac_prev=libexecdir ;;
616: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617: | --libexe=* | --libex=* | --libe=*)
618: libexecdir=$ac_optarg ;;
619:
620: -localstatedir | --localstatedir | --localstatedi | --localstated \
621: | --localstate | --localstat | --localsta | --localst \
622: | --locals | --local | --loca | --loc | --lo)
623: ac_prev=localstatedir ;;
624: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627: localstatedir=$ac_optarg ;;
628:
629: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630: ac_prev=mandir ;;
631: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632: mandir=$ac_optarg ;;
633:
634: -nfp | --nfp | --nf)
635: # Obsolete; use --without-fp.
636: with_fp=no ;;
637:
638: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639: | --no-cr | --no-c | -n)
640: no_create=yes ;;
641:
642: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644: no_recursion=yes ;;
645:
646: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648: | --oldin | --oldi | --old | --ol | --o)
649: ac_prev=oldincludedir ;;
650: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653: oldincludedir=$ac_optarg ;;
654:
655: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656: ac_prev=prefix ;;
657: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658: prefix=$ac_optarg ;;
659:
660: -program-prefix | --program-prefix | --program-prefi | --program-pref \
661: | --program-pre | --program-pr | --program-p)
662: ac_prev=program_prefix ;;
663: -program-prefix=* | --program-prefix=* | --program-prefi=* \
664: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665: program_prefix=$ac_optarg ;;
666:
667: -program-suffix | --program-suffix | --program-suffi | --program-suff \
668: | --program-suf | --program-su | --program-s)
669: ac_prev=program_suffix ;;
670: -program-suffix=* | --program-suffix=* | --program-suffi=* \
671: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672: program_suffix=$ac_optarg ;;
673:
674: -program-transform-name | --program-transform-name \
675: | --program-transform-nam | --program-transform-na \
676: | --program-transform-n | --program-transform- \
677: | --program-transform | --program-transfor \
678: | --program-transfo | --program-transf \
679: | --program-trans | --program-tran \
680: | --progr-tra | --program-tr | --program-t)
681: ac_prev=program_transform_name ;;
682: -program-transform-name=* | --program-transform-name=* \
683: | --program-transform-nam=* | --program-transform-na=* \
684: | --program-transform-n=* | --program-transform-=* \
685: | --program-transform=* | --program-transfor=* \
686: | --program-transfo=* | --program-transf=* \
687: | --program-trans=* | --program-tran=* \
688: | --progr-tra=* | --program-tr=* | --program-t=*)
689: program_transform_name=$ac_optarg ;;
690:
691: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692: | -silent | --silent | --silen | --sile | --sil)
693: silent=yes ;;
694:
695: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696: ac_prev=sbindir ;;
697: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698: | --sbi=* | --sb=*)
699: sbindir=$ac_optarg ;;
700:
701: -sharedstatedir | --sharedstatedir | --sharedstatedi \
702: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703: | --sharedst | --shareds | --shared | --share | --shar \
704: | --sha | --sh)
705: ac_prev=sharedstatedir ;;
706: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709: | --sha=* | --sh=*)
710: sharedstatedir=$ac_optarg ;;
711:
712: -site | --site | --sit)
713: ac_prev=site ;;
714: -site=* | --site=* | --sit=*)
715: site=$ac_optarg ;;
716:
717: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718: ac_prev=srcdir ;;
719: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720: srcdir=$ac_optarg ;;
721:
722: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723: | --syscon | --sysco | --sysc | --sys | --sy)
724: ac_prev=sysconfdir ;;
725: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727: sysconfdir=$ac_optarg ;;
728:
729: -target | --target | --targe | --targ | --tar | --ta | --t)
730: ac_prev=target_alias ;;
731: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732: target_alias=$ac_optarg ;;
733:
734: -v | -verbose | --verbose | --verbos | --verbo | --verb)
735: verbose=yes ;;
736:
737: -version | --version | --versio | --versi | --vers | -V)
738: ac_init_version=: ;;
739:
740: -with-* | --with-*)
741: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742: # Reject names that are not valid shell variable names.
743: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744: { echo "$as_me: error: invalid package name: $ac_package" >&2
745: { (exit 1); exit 1; }; }
746: ac_package=`echo $ac_package| sed 's/-/_/g'`
747: case $ac_option in
748: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749: *) ac_optarg=yes ;;
750: esac
751: eval "with_$ac_package='$ac_optarg'" ;;
752:
753: -without-* | --without-*)
754: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755: # Reject names that are not valid shell variable names.
756: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757: { echo "$as_me: error: invalid package name: $ac_package" >&2
758: { (exit 1); exit 1; }; }
759: ac_package=`echo $ac_package | sed 's/-/_/g'`
760: eval "with_$ac_package=no" ;;
761:
762: --x)
763: # Obsolete; use --with-x.
764: with_x=yes ;;
765:
766: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767: | --x-incl | --x-inc | --x-in | --x-i)
768: ac_prev=x_includes ;;
769: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771: x_includes=$ac_optarg ;;
772:
773: -x-libraries | --x-libraries | --x-librarie | --x-librari \
774: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775: ac_prev=x_libraries ;;
776: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778: x_libraries=$ac_optarg ;;
779:
780: -*) { echo "$as_me: error: unrecognized option: $ac_option
781: Try \`$0 --help' for more information." >&2
782: { (exit 1); exit 1; }; }
783: ;;
784:
785: *=*)
786: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787: # Reject names that are not valid shell variable names.
788: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790: { (exit 1); exit 1; }; }
791: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792: eval "$ac_envvar='$ac_optarg'"
793: export $ac_envvar ;;
794:
795: *)
796: # FIXME: should be removed in autoconf 3.0.
797: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801: ;;
802:
803: esac
804: done
805:
806: if test -n "$ac_prev"; then
807: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808: { echo "$as_me: error: missing argument to $ac_option" >&2
809: { (exit 1); exit 1; }; }
810: fi
811:
812: # Be sure to have absolute paths.
813: for ac_var in exec_prefix prefix
814: do
815: eval ac_val=$`echo $ac_var`
816: case $ac_val in
817: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819: { (exit 1); exit 1; }; };;
820: esac
821: done
822:
823: # Be sure to have absolute paths.
824: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825: localstatedir libdir includedir oldincludedir infodir mandir
826: do
827: eval ac_val=$`echo $ac_var`
828: case $ac_val in
829: [\\/$]* | ?:[\\/]* ) ;;
830: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831: { (exit 1); exit 1; }; };;
832: esac
833: done
834:
835: # There might be people who depend on the old broken behavior: `$host'
836: # used to hold the argument of --host etc.
837: # FIXME: To remove some day.
838: build=$build_alias
839: host=$host_alias
840: target=$target_alias
841:
842: # FIXME: To remove some day.
843: if test "x$host_alias" != x; then
844: if test "x$build_alias" = x; then
845: cross_compiling=maybe
846: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847: If a cross compiler is detected then cross compile mode will be used." >&2
848: elif test "x$build_alias" != "x$host_alias"; then
849: cross_compiling=yes
850: fi
851: fi
852:
853: ac_tool_prefix=
854: test -n "$host_alias" && ac_tool_prefix=$host_alias-
855:
856: test "$silent" = yes && exec 6>/dev/null
857:
858:
859: # Find the source files, if location was not specified.
860: if test -z "$srcdir"; then
861: ac_srcdir_defaulted=yes
862: # Try the directory containing this script, then its parent.
863: ac_confdir=`(dirname "$0") 2>/dev/null ||
864: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865: X"$0" : 'X\(//\)[^/]' \| \
866: X"$0" : 'X\(//\)$' \| \
867: X"$0" : 'X\(/\)' \| \
868: . : '\(.\)' 2>/dev/null ||
869: echo X"$0" |
870: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872: /^X\(\/\/\)$/{ s//\1/; q; }
873: /^X\(\/\).*/{ s//\1/; q; }
874: s/.*/./; q'`
875: srcdir=$ac_confdir
876: if test ! -r $srcdir/$ac_unique_file; then
877: srcdir=..
878: fi
879: else
880: ac_srcdir_defaulted=no
881: fi
882: if test ! -r $srcdir/$ac_unique_file; then
883: if test "$ac_srcdir_defaulted" = yes; then
884: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885: { (exit 1); exit 1; }; }
886: else
887: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888: { (exit 1); exit 1; }; }
889: fi
890: fi
891: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893: { (exit 1); exit 1; }; }
894: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895: ac_env_build_alias_set=${build_alias+set}
896: ac_env_build_alias_value=$build_alias
897: ac_cv_env_build_alias_set=${build_alias+set}
898: ac_cv_env_build_alias_value=$build_alias
899: ac_env_host_alias_set=${host_alias+set}
900: ac_env_host_alias_value=$host_alias
901: ac_cv_env_host_alias_set=${host_alias+set}
902: ac_cv_env_host_alias_value=$host_alias
903: ac_env_target_alias_set=${target_alias+set}
904: ac_env_target_alias_value=$target_alias
905: ac_cv_env_target_alias_set=${target_alias+set}
906: ac_cv_env_target_alias_value=$target_alias
907: ac_env_CC_set=${CC+set}
908: ac_env_CC_value=$CC
909: ac_cv_env_CC_set=${CC+set}
910: ac_cv_env_CC_value=$CC
911: ac_env_CFLAGS_set=${CFLAGS+set}
912: ac_env_CFLAGS_value=$CFLAGS
913: ac_cv_env_CFLAGS_set=${CFLAGS+set}
914: ac_cv_env_CFLAGS_value=$CFLAGS
915: ac_env_LDFLAGS_set=${LDFLAGS+set}
916: ac_env_LDFLAGS_value=$LDFLAGS
917: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918: ac_cv_env_LDFLAGS_value=$LDFLAGS
919: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920: ac_env_CPPFLAGS_value=$CPPFLAGS
921: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923: ac_env_CPP_set=${CPP+set}
924: ac_env_CPP_value=$CPP
925: ac_cv_env_CPP_set=${CPP+set}
926: ac_cv_env_CPP_value=$CPP
927: ac_env_CXX_set=${CXX+set}
928: ac_env_CXX_value=$CXX
929: ac_cv_env_CXX_set=${CXX+set}
930: ac_cv_env_CXX_value=$CXX
931: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932: ac_env_CXXFLAGS_value=$CXXFLAGS
933: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935: ac_env_CXXCPP_set=${CXXCPP+set}
936: ac_env_CXXCPP_value=$CXXCPP
937: ac_cv_env_CXXCPP_set=${CXXCPP+set}
938: ac_cv_env_CXXCPP_value=$CXXCPP
939: ac_env_F77_set=${F77+set}
940: ac_env_F77_value=$F77
941: ac_cv_env_F77_set=${F77+set}
942: ac_cv_env_F77_value=$F77
943: ac_env_FFLAGS_set=${FFLAGS+set}
944: ac_env_FFLAGS_value=$FFLAGS
945: ac_cv_env_FFLAGS_set=${FFLAGS+set}
946: ac_cv_env_FFLAGS_value=$FFLAGS
947:
948: #
949: # Report the --help message.
950: #
951: if test "$ac_init_help" = "long"; then
952: # Omit some internal or obsolete options to make the list less imposing.
953: # This message is too long to be a string in the A/UX 3.1 sh.
954: cat <<_ACEOF
955: \`configure' configures this package to adapt to many kinds of systems.
956:
957: Usage: $0 [OPTION]... [VAR=VALUE]...
958:
959: To assign environment variables (e.g., CC, CFLAGS...), specify them as
960: VAR=VALUE. See below for descriptions of some of the useful variables.
961:
962: Defaults for the options are specified in brackets.
963:
964: Configuration:
965: -h, --help display this help and exit
966: --help=short display options specific to this package
967: --help=recursive display the short help of all the included packages
968: -V, --version display version information and exit
969: -q, --quiet, --silent do not print \`checking...' messages
970: --cache-file=FILE cache test results in FILE [disabled]
971: -C, --config-cache alias for \`--cache-file=config.cache'
972: -n, --no-create do not create output files
973: --srcdir=DIR find the sources in DIR [configure dir or \`..']
974:
975: _ACEOF
976:
977: cat <<_ACEOF
978: Installation directories:
979: --prefix=PREFIX install architecture-independent files in PREFIX
980: [$ac_default_prefix]
981: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982: [PREFIX]
983:
984: By default, \`make install' will install all the files in
985: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987: for instance \`--prefix=\$HOME'.
988:
989: For better control, use the options below.
990:
991: Fine tuning of the installation directories:
992: --bindir=DIR user executables [EPREFIX/bin]
993: --sbindir=DIR system admin executables [EPREFIX/sbin]
994: --libexecdir=DIR program executables [EPREFIX/libexec]
995: --datadir=DIR read-only architecture-independent data [PREFIX/share]
996: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999: --libdir=DIR object code libraries [EPREFIX/lib]
1000: --includedir=DIR C header files [PREFIX/include]
1001: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002: --infodir=DIR info documentation [PREFIX/info]
1003: --mandir=DIR man documentation [PREFIX/man]
1004: _ACEOF
1005:
1006: cat <<\_ACEOF
1007:
1008: Program names:
1009: --program-prefix=PREFIX prepend PREFIX to installed program names
1010: --program-suffix=SUFFIX append SUFFIX to installed program names
1011: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012:
1.1.1.2 root 1013: X features:
1014: --x-includes=DIR X include files are in DIR
1015: --x-libraries=DIR X library files are in DIR
1016:
1.1 root 1017: System types:
1018: --build=BUILD configure for building on BUILD [guessed]
1019: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020: --target=TARGET configure for building compilers for TARGET [HOST]
1021: _ACEOF
1022: fi
1023:
1024: if test -n "$ac_init_help"; then
1025:
1026: cat <<\_ACEOF
1027:
1028: Optional Features:
1029: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031: --disable-dependency-tracking Speeds up one-time builds
1032: --enable-dependency-tracking Do not reject slow dependency extractors
1.1.1.2 root 1033: --disable-gtktest Do not try to compile and run a test GTK program
1.1 root 1034: --enable-shared[=PKGS]
1035: build shared libraries [default=yes]
1036: --enable-static[=PKGS]
1037: build static libraries [default=yes]
1038: --enable-fast-install[=PKGS]
1039: optimize for fast installation [default=yes]
1040: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.4 ! root 1041: --enable-debug compile debuggable libraries and programs (default=don't)
1.1 root 1042: --disable-warnings don't compile with warnings turned on (default=do)
1043:
1044: Optional Packages:
1045: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.2 root 1047: --with-x use the X Window System
1048: --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1049: --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1.1.1.3 root 1050: --with-tme-host-displays=DISPLAYS support host displays with these display formats
1.1 root 1051: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052: --with-pic try to use only PIC/non-PIC objects [default=use
1053: both]
1054: --with-tags[=TAGS]
1055: include additional configurations [automatic]
1056:
1057: Some influential environment variables:
1058: CC C compiler command
1059: CFLAGS C compiler flags
1060: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061: nonstandard directory <lib dir>
1062: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063: headers in a nonstandard directory <include dir>
1064: CPP C preprocessor
1065: CXX C++ compiler command
1066: CXXFLAGS C++ compiler flags
1067: CXXCPP C++ preprocessor
1068: F77 Fortran 77 compiler command
1069: FFLAGS Fortran 77 compiler flags
1070:
1071: Use these variables to override the choices made by `configure' or to help
1072: it to find libraries and programs with nonstandard names/locations.
1073:
1074: _ACEOF
1075: fi
1076:
1077: if test "$ac_init_help" = "recursive"; then
1078: # If there are subdirs, report their specific --help.
1079: ac_popdir=`pwd`
1080: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081: test -d $ac_dir || continue
1082: ac_builddir=.
1083:
1084: if test "$ac_dir" != .; then
1085: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086: # A "../" for each directory in $ac_dir_suffix.
1087: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088: else
1089: ac_dir_suffix= ac_top_builddir=
1090: fi
1091:
1092: case $srcdir in
1093: .) # No --srcdir option. We are building in place.
1094: ac_srcdir=.
1095: if test -z "$ac_top_builddir"; then
1096: ac_top_srcdir=.
1097: else
1098: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099: fi ;;
1100: [\\/]* | ?:[\\/]* ) # Absolute path.
1101: ac_srcdir=$srcdir$ac_dir_suffix;
1102: ac_top_srcdir=$srcdir ;;
1103: *) # Relative path.
1104: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106: esac
1107: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108: # absolute.
1109: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113:
1114: cd $ac_dir
1115: # Check for guested configure; otherwise get Cygnus style configure.
1116: if test -f $ac_srcdir/configure.gnu; then
1117: echo
1118: $SHELL $ac_srcdir/configure.gnu --help=recursive
1119: elif test -f $ac_srcdir/configure; then
1120: echo
1121: $SHELL $ac_srcdir/configure --help=recursive
1122: elif test -f $ac_srcdir/configure.ac ||
1123: test -f $ac_srcdir/configure.in; then
1124: echo
1125: $ac_configure --help
1126: else
1127: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128: fi
1129: cd $ac_popdir
1130: done
1131: fi
1132:
1133: test -n "$ac_init_help" && exit 0
1134: if $ac_init_version; then
1135: cat <<\_ACEOF
1136:
1137: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138: Free Software Foundation, Inc.
1139: This configure script is free software; the Free Software Foundation
1140: gives unlimited permission to copy, distribute and modify it.
1141: _ACEOF
1142: exit 0
1143: fi
1144: exec 5>config.log
1145: cat >&5 <<_ACEOF
1146: This file contains any messages produced by compilers while
1147: running configure, to aid debugging if configure makes a mistake.
1148:
1149: It was created by $as_me, which was
1150: generated by GNU Autoconf 2.57. Invocation command line was
1151:
1152: $ $0 $@
1153:
1154: _ACEOF
1155: {
1156: cat <<_ASUNAME
1157: ## --------- ##
1158: ## Platform. ##
1159: ## --------- ##
1160:
1161: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166:
1167: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169:
1170: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177:
1178: _ASUNAME
1179:
1180: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181: for as_dir in $PATH
1182: do
1183: IFS=$as_save_IFS
1184: test -z "$as_dir" && as_dir=.
1185: echo "PATH: $as_dir"
1186: done
1187:
1188: } >&5
1189:
1190: cat >&5 <<_ACEOF
1191:
1192:
1193: ## ----------- ##
1194: ## Core tests. ##
1195: ## ----------- ##
1196:
1197: _ACEOF
1198:
1199:
1200: # Keep a trace of the command line.
1201: # Strip out --no-create and --no-recursion so they do not pile up.
1202: # Strip out --silent because we don't want to record it for future runs.
1203: # Also quote any args containing shell meta-characters.
1204: # Make two passes to allow for proper duplicate-argument suppression.
1205: ac_configure_args=
1206: ac_configure_args0=
1207: ac_configure_args1=
1208: ac_sep=
1209: ac_must_keep_next=false
1210: for ac_pass in 1 2
1211: do
1212: for ac_arg
1213: do
1214: case $ac_arg in
1215: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217: | -silent | --silent | --silen | --sile | --sil)
1218: continue ;;
1219: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221: esac
1222: case $ac_pass in
1223: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224: 2)
1225: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226: if test $ac_must_keep_next = true; then
1227: ac_must_keep_next=false # Got value, back to normal.
1228: else
1229: case $ac_arg in
1230: *=* | --config-cache | -C | -disable-* | --disable-* \
1231: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233: | -with-* | --with-* | -without-* | --without-* | --x)
1234: case "$ac_configure_args0 " in
1235: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236: esac
1237: ;;
1238: -* ) ac_must_keep_next=true ;;
1239: esac
1240: fi
1241: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242: # Get rid of the leading space.
1243: ac_sep=" "
1244: ;;
1245: esac
1246: done
1247: done
1248: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250:
1251: # When interrupted or exit'd, cleanup temporary files, and complete
1252: # config.log. We remove comments because anyway the quotes in there
1253: # would cause problems or look ugly.
1254: # WARNING: Be sure not to use single quotes in there, as some shells,
1255: # such as our DU 5.0 friend, will then `close' the trap.
1256: trap 'exit_status=$?
1257: # Save into config.log some information that might help in debugging.
1258: {
1259: echo
1260:
1261: cat <<\_ASBOX
1262: ## ---------------- ##
1263: ## Cache variables. ##
1264: ## ---------------- ##
1265: _ASBOX
1266: echo
1267: # The following way of writing the cache mishandles newlines in values,
1268: {
1269: (set) 2>&1 |
1270: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271: *ac_space=\ *)
1272: sed -n \
1273: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275: ;;
1276: *)
1277: sed -n \
1278: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279: ;;
1280: esac;
1281: }
1282: echo
1283:
1284: cat <<\_ASBOX
1285: ## ----------------- ##
1286: ## Output variables. ##
1287: ## ----------------- ##
1288: _ASBOX
1289: echo
1290: for ac_var in $ac_subst_vars
1291: do
1292: eval ac_val=$`echo $ac_var`
1293: echo "$ac_var='"'"'$ac_val'"'"'"
1294: done | sort
1295: echo
1296:
1297: if test -n "$ac_subst_files"; then
1298: cat <<\_ASBOX
1299: ## ------------- ##
1300: ## Output files. ##
1301: ## ------------- ##
1302: _ASBOX
1303: echo
1304: for ac_var in $ac_subst_files
1305: do
1306: eval ac_val=$`echo $ac_var`
1307: echo "$ac_var='"'"'$ac_val'"'"'"
1308: done | sort
1309: echo
1310: fi
1311:
1312: if test -s confdefs.h; then
1313: cat <<\_ASBOX
1314: ## ----------- ##
1315: ## confdefs.h. ##
1316: ## ----------- ##
1317: _ASBOX
1318: echo
1319: sed "/^$/d" confdefs.h | sort
1320: echo
1321: fi
1322: test "$ac_signal" != 0 &&
1323: echo "$as_me: caught signal $ac_signal"
1324: echo "$as_me: exit $exit_status"
1325: } >&5
1326: rm -f core core.* *.core &&
1327: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328: exit $exit_status
1329: ' 0
1330: for ac_signal in 1 2 13 15; do
1331: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332: done
1333: ac_signal=0
1334:
1335: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336: rm -rf conftest* confdefs.h
1337: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338: echo >confdefs.h
1339:
1340: # Predefined preprocessor variables.
1341:
1342: cat >>confdefs.h <<_ACEOF
1343: #define PACKAGE_NAME "$PACKAGE_NAME"
1344: _ACEOF
1345:
1346:
1347: cat >>confdefs.h <<_ACEOF
1348: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349: _ACEOF
1350:
1351:
1352: cat >>confdefs.h <<_ACEOF
1353: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354: _ACEOF
1355:
1356:
1357: cat >>confdefs.h <<_ACEOF
1358: #define PACKAGE_STRING "$PACKAGE_STRING"
1359: _ACEOF
1360:
1361:
1362: cat >>confdefs.h <<_ACEOF
1363: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364: _ACEOF
1365:
1366:
1367: # Let the site file select an alternate cache file if it wants to.
1368: # Prefer explicitly selected file to automatically selected ones.
1369: if test -z "$CONFIG_SITE"; then
1370: if test "x$prefix" != xNONE; then
1371: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372: else
1373: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374: fi
1375: fi
1376: for ac_site_file in $CONFIG_SITE; do
1377: if test -r "$ac_site_file"; then
1378: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379: echo "$as_me: loading site script $ac_site_file" >&6;}
1380: sed 's/^/| /' "$ac_site_file" >&5
1381: . "$ac_site_file"
1382: fi
1383: done
1384:
1385: if test -r "$cache_file"; then
1386: # Some versions of bash will fail to source /dev/null (special
1387: # files actually), so we avoid doing that.
1388: if test -f "$cache_file"; then
1389: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390: echo "$as_me: loading cache $cache_file" >&6;}
1391: case $cache_file in
1392: [\\/]* | ?:[\\/]* ) . $cache_file;;
1393: *) . ./$cache_file;;
1394: esac
1395: fi
1396: else
1397: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398: echo "$as_me: creating cache $cache_file" >&6;}
1399: >$cache_file
1400: fi
1401:
1402: # Check that the precious variables saved in the cache have kept the same
1403: # value.
1404: ac_cache_corrupted=false
1405: for ac_var in `(set) 2>&1 |
1406: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408: eval ac_new_set=\$ac_env_${ac_var}_set
1409: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410: eval ac_new_val="\$ac_env_${ac_var}_value"
1411: case $ac_old_set,$ac_new_set in
1412: set,)
1413: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415: ac_cache_corrupted=: ;;
1416: ,set)
1417: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419: ac_cache_corrupted=: ;;
1420: ,);;
1421: *)
1422: if test "x$ac_old_val" != "x$ac_new_val"; then
1423: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426: echo "$as_me: former value: $ac_old_val" >&2;}
1427: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428: echo "$as_me: current value: $ac_new_val" >&2;}
1429: ac_cache_corrupted=:
1430: fi;;
1431: esac
1432: # Pass precious variables to config.status.
1433: if test "$ac_new_set" = set; then
1434: case $ac_new_val in
1435: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437: *) ac_arg=$ac_var=$ac_new_val ;;
1438: esac
1439: case " $ac_configure_args " in
1440: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442: esac
1443: fi
1444: done
1445: if $ac_cache_corrupted; then
1446: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450: { (exit 1); exit 1; }; }
1451: fi
1452:
1453: ac_ext=c
1454: ac_cpp='$CPP $CPPFLAGS'
1455: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458:
1459:
1460:
1461:
1462:
1463:
1464:
1465:
1466:
1467:
1468:
1469:
1470:
1471:
1472:
1473:
1474:
1475:
1476:
1477: ac_aux_dir=
1478: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479: if test -f $ac_dir/install-sh; then
1480: ac_aux_dir=$ac_dir
1481: ac_install_sh="$ac_aux_dir/install-sh -c"
1482: break
1483: elif test -f $ac_dir/install.sh; then
1484: ac_aux_dir=$ac_dir
1485: ac_install_sh="$ac_aux_dir/install.sh -c"
1486: break
1487: elif test -f $ac_dir/shtool; then
1488: ac_aux_dir=$ac_dir
1489: ac_install_sh="$ac_aux_dir/shtool install -c"
1490: break
1491: fi
1492: done
1493: if test -z "$ac_aux_dir"; then
1494: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496: { (exit 1); exit 1; }; }
1497: fi
1498: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501:
1502: # Make sure we can run config.sub.
1503: $ac_config_sub sun4 >/dev/null 2>&1 ||
1504: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506: { (exit 1); exit 1; }; }
1507:
1508: echo "$as_me:$LINENO: checking build system type" >&5
1509: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510: if test "${ac_cv_build+set}" = set; then
1511: echo $ECHO_N "(cached) $ECHO_C" >&6
1512: else
1513: ac_cv_build_alias=$build_alias
1514: test -z "$ac_cv_build_alias" &&
1515: ac_cv_build_alias=`$ac_config_guess`
1516: test -z "$ac_cv_build_alias" &&
1517: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519: { (exit 1); exit 1; }; }
1520: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523: { (exit 1); exit 1; }; }
1524:
1525: fi
1526: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527: echo "${ECHO_T}$ac_cv_build" >&6
1528: build=$ac_cv_build
1529: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532:
1533:
1534: echo "$as_me:$LINENO: checking host system type" >&5
1535: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536: if test "${ac_cv_host+set}" = set; then
1537: echo $ECHO_N "(cached) $ECHO_C" >&6
1538: else
1539: ac_cv_host_alias=$host_alias
1540: test -z "$ac_cv_host_alias" &&
1541: ac_cv_host_alias=$ac_cv_build_alias
1542: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545: { (exit 1); exit 1; }; }
1546:
1547: fi
1548: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549: echo "${ECHO_T}$ac_cv_host" >&6
1550: host=$ac_cv_host
1551: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554:
1555:
1556: echo "$as_me:$LINENO: checking target system type" >&5
1557: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558: if test "${ac_cv_target+set}" = set; then
1559: echo $ECHO_N "(cached) $ECHO_C" >&6
1560: else
1561: ac_cv_target_alias=$target_alias
1562: test "x$ac_cv_target_alias" = "x" &&
1563: ac_cv_target_alias=$ac_cv_host_alias
1564: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567: { (exit 1); exit 1; }; }
1568:
1569: fi
1570: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571: echo "${ECHO_T}$ac_cv_target" >&6
1572: target=$ac_cv_target
1573: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576:
1577:
1578: # The aliases save the names the user supplied, while $host etc.
1579: # will get canonicalized.
1580: test -n "$target_alias" &&
1581: test "$program_prefix$program_suffix$program_transform_name" = \
1582: NONENONEs,x,x, &&
1583: program_prefix=${target_alias}-
1584: am__api_version="1.7"
1585: # Find a good install program. We prefer a C program (faster),
1586: # so one script is as good as another. But avoid the broken or
1587: # incompatible versions:
1588: # SysV /etc/install, /usr/sbin/install
1589: # SunOS /usr/etc/install
1590: # IRIX /sbin/install
1591: # AIX /bin/install
1592: # AmigaOS /C/install, which installs bootblocks on floppy discs
1593: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1594: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596: # ./install, which can be erroneously created by make from ./install.sh.
1597: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1598: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1599: if test -z "$INSTALL"; then
1600: if test "${ac_cv_path_install+set}" = set; then
1601: echo $ECHO_N "(cached) $ECHO_C" >&6
1602: else
1603: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604: for as_dir in $PATH
1605: do
1606: IFS=$as_save_IFS
1607: test -z "$as_dir" && as_dir=.
1608: # Account for people who put trailing slashes in PATH elements.
1609: case $as_dir/ in
1610: ./ | .// | /cC/* | \
1611: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1612: /usr/ucb/* ) ;;
1613: *)
1614: # OSF1 and SCO ODT 3.0 have their own names for install.
1615: # Don't use installbsd from OSF since it installs stuff as root
1616: # by default.
1617: for ac_prog in ginstall scoinst install; do
1618: for ac_exec_ext in '' $ac_executable_extensions; do
1619: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1620: if test $ac_prog = install &&
1621: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622: # AIX install. It has an incompatible calling convention.
1623: :
1624: elif test $ac_prog = install &&
1625: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1626: # program-specific install script used by HP pwplus--don't use.
1627: :
1628: else
1629: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1630: break 3
1631: fi
1632: fi
1633: done
1634: done
1635: ;;
1636: esac
1637: done
1638:
1639:
1640: fi
1641: if test "${ac_cv_path_install+set}" = set; then
1642: INSTALL=$ac_cv_path_install
1643: else
1644: # As a last resort, use the slow shell script. We don't cache a
1645: # path for INSTALL within a source directory, because that will
1646: # break other packages using the cache if that directory is
1647: # removed, or if the path is relative.
1648: INSTALL=$ac_install_sh
1649: fi
1650: fi
1651: echo "$as_me:$LINENO: result: $INSTALL" >&5
1652: echo "${ECHO_T}$INSTALL" >&6
1653:
1654: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1655: # It thinks the first close brace ends the variable substitution.
1656: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657:
1658: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1659:
1660: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661:
1662: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1663: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1664: # Just in case
1665: sleep 1
1666: echo timestamp > conftest.file
1667: # Do `set' in a subshell so we don't clobber the current shell's
1668: # arguments. Must try -L first in case configure is actually a
1669: # symlink; some systems play weird games with the mod time of symlinks
1670: # (eg FreeBSD returns the mod time of the symlink's containing
1671: # directory).
1672: if (
1673: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1674: if test "$*" = "X"; then
1675: # -L didn't work.
1676: set X `ls -t $srcdir/configure conftest.file`
1677: fi
1678: rm -f conftest.file
1679: if test "$*" != "X $srcdir/configure conftest.file" \
1680: && test "$*" != "X conftest.file $srcdir/configure"; then
1681:
1682: # If neither matched, then we have a broken ls. This can happen
1683: # if, for instance, CONFIG_SHELL is bash and it inherits a
1684: # broken ls alias from the environment. This has actually
1685: # happened. Such a system could not be considered "sane".
1686: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1687: alias in your environment" >&5
1688: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1689: alias in your environment" >&2;}
1690: { (exit 1); exit 1; }; }
1691: fi
1692:
1693: test "$2" = conftest.file
1694: )
1695: then
1696: # Ok.
1697: :
1698: else
1699: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1700: Check your system clock" >&5
1701: echo "$as_me: error: newly created file is older than distributed files!
1702: Check your system clock" >&2;}
1703: { (exit 1); exit 1; }; }
1704: fi
1705: echo "$as_me:$LINENO: result: yes" >&5
1706: echo "${ECHO_T}yes" >&6
1707: test "$program_prefix" != NONE &&
1708: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1709: # Use a double $ so make ignores it.
1710: test "$program_suffix" != NONE &&
1711: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1712: # Double any \ or $. echo might interpret backslashes.
1713: # By default was `s,x,x', remove it if useless.
1714: cat <<\_ACEOF >conftest.sed
1715: s/[\\$]/&&/g;s/;s,x,x,$//
1716: _ACEOF
1717: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1718: rm conftest.sed
1719:
1720:
1721: # expand $ac_aux_dir to an absolute path
1722: am_aux_dir=`cd $ac_aux_dir && pwd`
1723:
1724: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1725: # Use eval to expand $SHELL
1726: if eval "$MISSING --run true"; then
1727: am_missing_run="$MISSING --run "
1728: else
1729: am_missing_run=
1730: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1731: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1732: fi
1733:
1734: for ac_prog in gawk mawk nawk awk
1735: do
1736: # Extract the first word of "$ac_prog", so it can be a program name with args.
1737: set dummy $ac_prog; ac_word=$2
1738: echo "$as_me:$LINENO: checking for $ac_word" >&5
1739: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740: if test "${ac_cv_prog_AWK+set}" = set; then
1741: echo $ECHO_N "(cached) $ECHO_C" >&6
1742: else
1743: if test -n "$AWK"; then
1744: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1745: else
1746: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747: for as_dir in $PATH
1748: do
1749: IFS=$as_save_IFS
1750: test -z "$as_dir" && as_dir=.
1751: for ac_exec_ext in '' $ac_executable_extensions; do
1752: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753: ac_cv_prog_AWK="$ac_prog"
1754: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755: break 2
1756: fi
1757: done
1758: done
1759:
1760: fi
1761: fi
1762: AWK=$ac_cv_prog_AWK
1763: if test -n "$AWK"; then
1764: echo "$as_me:$LINENO: result: $AWK" >&5
1765: echo "${ECHO_T}$AWK" >&6
1766: else
1767: echo "$as_me:$LINENO: result: no" >&5
1768: echo "${ECHO_T}no" >&6
1769: fi
1770:
1771: test -n "$AWK" && break
1772: done
1773:
1774: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1775: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1776: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1777: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778: echo $ECHO_N "(cached) $ECHO_C" >&6
1779: else
1780: cat >conftest.make <<\_ACEOF
1781: all:
1782: @echo 'ac_maketemp="$(MAKE)"'
1783: _ACEOF
1784: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786: if test -n "$ac_maketemp"; then
1787: eval ac_cv_prog_make_${ac_make}_set=yes
1788: else
1789: eval ac_cv_prog_make_${ac_make}_set=no
1790: fi
1791: rm -f conftest.make
1792: fi
1793: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794: echo "$as_me:$LINENO: result: yes" >&5
1795: echo "${ECHO_T}yes" >&6
1796: SET_MAKE=
1797: else
1798: echo "$as_me:$LINENO: result: no" >&5
1799: echo "${ECHO_T}no" >&6
1800: SET_MAKE="MAKE=${MAKE-make}"
1801: fi
1802:
1803: # test to see if srcdir already configured
1804: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1805: test -f $srcdir/config.status; then
1806: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1807: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1808: { (exit 1); exit 1; }; }
1809: fi
1810:
1811: # test whether we have cygpath
1812: if test -z "$CYGPATH_W"; then
1813: if (cygpath --version) >/dev/null 2>/dev/null; then
1814: CYGPATH_W='cygpath -w'
1815: else
1816: CYGPATH_W=echo
1817: fi
1818: fi
1819:
1820:
1821: # Define the identity of the package.
1822: PACKAGE=tme
1.1.1.4 ! root 1823: VERSION=0.6
1.1 root 1824:
1825:
1826: cat >>confdefs.h <<_ACEOF
1827: #define PACKAGE "$PACKAGE"
1828: _ACEOF
1829:
1830:
1831: cat >>confdefs.h <<_ACEOF
1832: #define VERSION "$VERSION"
1833: _ACEOF
1834:
1835: # Some tools Automake needs.
1836:
1837: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1838:
1839:
1840: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1841:
1842:
1843: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1844:
1845:
1846: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1847:
1848:
1849: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1850:
1851:
1852: AMTAR=${AMTAR-"${am_missing_run}tar"}
1853:
1854: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855:
1856: # Installed binaries are usually stripped using `strip' when the user
1857: # run `make install-strip'. However `strip' might not be the right
1858: # tool to use in cross-compilation environments, therefore Automake
1859: # will honor the `STRIP' environment variable to overrule this program.
1860: if test "$cross_compiling" != no; then
1861: if test -n "$ac_tool_prefix"; then
1862: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863: set dummy ${ac_tool_prefix}strip; ac_word=$2
1864: echo "$as_me:$LINENO: checking for $ac_word" >&5
1865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866: if test "${ac_cv_prog_STRIP+set}" = set; then
1867: echo $ECHO_N "(cached) $ECHO_C" >&6
1868: else
1869: if test -n "$STRIP"; then
1870: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871: else
1872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873: for as_dir in $PATH
1874: do
1875: IFS=$as_save_IFS
1876: test -z "$as_dir" && as_dir=.
1877: for ac_exec_ext in '' $ac_executable_extensions; do
1878: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881: break 2
1882: fi
1883: done
1884: done
1885:
1886: fi
1887: fi
1888: STRIP=$ac_cv_prog_STRIP
1889: if test -n "$STRIP"; then
1890: echo "$as_me:$LINENO: result: $STRIP" >&5
1891: echo "${ECHO_T}$STRIP" >&6
1892: else
1893: echo "$as_me:$LINENO: result: no" >&5
1894: echo "${ECHO_T}no" >&6
1895: fi
1896:
1897: fi
1898: if test -z "$ac_cv_prog_STRIP"; then
1899: ac_ct_STRIP=$STRIP
1900: # Extract the first word of "strip", so it can be a program name with args.
1901: set dummy strip; ac_word=$2
1902: echo "$as_me:$LINENO: checking for $ac_word" >&5
1903: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905: echo $ECHO_N "(cached) $ECHO_C" >&6
1906: else
1907: if test -n "$ac_ct_STRIP"; then
1908: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909: else
1910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911: for as_dir in $PATH
1912: do
1913: IFS=$as_save_IFS
1914: test -z "$as_dir" && as_dir=.
1915: for ac_exec_ext in '' $ac_executable_extensions; do
1916: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917: ac_cv_prog_ac_ct_STRIP="strip"
1918: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919: break 2
1920: fi
1921: done
1922: done
1923:
1924: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925: fi
1926: fi
1927: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928: if test -n "$ac_ct_STRIP"; then
1929: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930: echo "${ECHO_T}$ac_ct_STRIP" >&6
1931: else
1932: echo "$as_me:$LINENO: result: no" >&5
1933: echo "${ECHO_T}no" >&6
1934: fi
1935:
1936: STRIP=$ac_ct_STRIP
1937: else
1938: STRIP="$ac_cv_prog_STRIP"
1939: fi
1940:
1941: fi
1942: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943:
1944: # We need awk for the "check" target. The system "awk" is bad on
1945: # some platforms.
1946:
1947:
1948:
1949:
1950: ac_config_headers="$ac_config_headers config.h"
1951:
1952:
1953: ac_ext=c
1954: ac_cpp='$CPP $CPPFLAGS'
1955: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958: if test -n "$ac_tool_prefix"; then
1959: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1960: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1961: echo "$as_me:$LINENO: checking for $ac_word" >&5
1962: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963: if test "${ac_cv_prog_CC+set}" = set; then
1964: echo $ECHO_N "(cached) $ECHO_C" >&6
1965: else
1966: if test -n "$CC"; then
1967: ac_cv_prog_CC="$CC" # Let the user override the test.
1968: else
1969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970: for as_dir in $PATH
1971: do
1972: IFS=$as_save_IFS
1973: test -z "$as_dir" && as_dir=.
1974: for ac_exec_ext in '' $ac_executable_extensions; do
1975: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1977: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978: break 2
1979: fi
1980: done
1981: done
1982:
1983: fi
1984: fi
1985: CC=$ac_cv_prog_CC
1986: if test -n "$CC"; then
1987: echo "$as_me:$LINENO: result: $CC" >&5
1988: echo "${ECHO_T}$CC" >&6
1989: else
1990: echo "$as_me:$LINENO: result: no" >&5
1991: echo "${ECHO_T}no" >&6
1992: fi
1993:
1994: fi
1995: if test -z "$ac_cv_prog_CC"; then
1996: ac_ct_CC=$CC
1997: # Extract the first word of "gcc", so it can be a program name with args.
1998: set dummy gcc; ac_word=$2
1999: echo "$as_me:$LINENO: checking for $ac_word" >&5
2000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002: echo $ECHO_N "(cached) $ECHO_C" >&6
2003: else
2004: if test -n "$ac_ct_CC"; then
2005: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006: else
2007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008: for as_dir in $PATH
2009: do
2010: IFS=$as_save_IFS
2011: test -z "$as_dir" && as_dir=.
2012: for ac_exec_ext in '' $ac_executable_extensions; do
2013: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014: ac_cv_prog_ac_ct_CC="gcc"
2015: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016: break 2
2017: fi
2018: done
2019: done
2020:
2021: fi
2022: fi
2023: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024: if test -n "$ac_ct_CC"; then
2025: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026: echo "${ECHO_T}$ac_ct_CC" >&6
2027: else
2028: echo "$as_me:$LINENO: result: no" >&5
2029: echo "${ECHO_T}no" >&6
2030: fi
2031:
2032: CC=$ac_ct_CC
2033: else
2034: CC="$ac_cv_prog_CC"
2035: fi
2036:
2037: if test -z "$CC"; then
2038: if test -n "$ac_tool_prefix"; then
2039: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2040: set dummy ${ac_tool_prefix}cc; ac_word=$2
2041: echo "$as_me:$LINENO: checking for $ac_word" >&5
2042: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043: if test "${ac_cv_prog_CC+set}" = set; then
2044: echo $ECHO_N "(cached) $ECHO_C" >&6
2045: else
2046: if test -n "$CC"; then
2047: ac_cv_prog_CC="$CC" # Let the user override the test.
2048: else
2049: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050: for as_dir in $PATH
2051: do
2052: IFS=$as_save_IFS
2053: test -z "$as_dir" && as_dir=.
2054: for ac_exec_ext in '' $ac_executable_extensions; do
2055: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056: ac_cv_prog_CC="${ac_tool_prefix}cc"
2057: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058: break 2
2059: fi
2060: done
2061: done
2062:
2063: fi
2064: fi
2065: CC=$ac_cv_prog_CC
2066: if test -n "$CC"; then
2067: echo "$as_me:$LINENO: result: $CC" >&5
2068: echo "${ECHO_T}$CC" >&6
2069: else
2070: echo "$as_me:$LINENO: result: no" >&5
2071: echo "${ECHO_T}no" >&6
2072: fi
2073:
2074: fi
2075: if test -z "$ac_cv_prog_CC"; then
2076: ac_ct_CC=$CC
2077: # Extract the first word of "cc", so it can be a program name with args.
2078: set dummy cc; ac_word=$2
2079: echo "$as_me:$LINENO: checking for $ac_word" >&5
2080: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082: echo $ECHO_N "(cached) $ECHO_C" >&6
2083: else
2084: if test -n "$ac_ct_CC"; then
2085: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086: else
2087: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088: for as_dir in $PATH
2089: do
2090: IFS=$as_save_IFS
2091: test -z "$as_dir" && as_dir=.
2092: for ac_exec_ext in '' $ac_executable_extensions; do
2093: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094: ac_cv_prog_ac_ct_CC="cc"
2095: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096: break 2
2097: fi
2098: done
2099: done
2100:
2101: fi
2102: fi
2103: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104: if test -n "$ac_ct_CC"; then
2105: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106: echo "${ECHO_T}$ac_ct_CC" >&6
2107: else
2108: echo "$as_me:$LINENO: result: no" >&5
2109: echo "${ECHO_T}no" >&6
2110: fi
2111:
2112: CC=$ac_ct_CC
2113: else
2114: CC="$ac_cv_prog_CC"
2115: fi
2116:
2117: fi
2118: if test -z "$CC"; then
2119: # Extract the first word of "cc", so it can be a program name with args.
2120: set dummy cc; ac_word=$2
2121: echo "$as_me:$LINENO: checking for $ac_word" >&5
2122: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123: if test "${ac_cv_prog_CC+set}" = set; then
2124: echo $ECHO_N "(cached) $ECHO_C" >&6
2125: else
2126: if test -n "$CC"; then
2127: ac_cv_prog_CC="$CC" # Let the user override the test.
2128: else
2129: ac_prog_rejected=no
2130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131: for as_dir in $PATH
2132: do
2133: IFS=$as_save_IFS
2134: test -z "$as_dir" && as_dir=.
2135: for ac_exec_ext in '' $ac_executable_extensions; do
2136: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2138: ac_prog_rejected=yes
2139: continue
2140: fi
2141: ac_cv_prog_CC="cc"
2142: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143: break 2
2144: fi
2145: done
2146: done
2147:
2148: if test $ac_prog_rejected = yes; then
2149: # We found a bogon in the path, so make sure we never use it.
2150: set dummy $ac_cv_prog_CC
2151: shift
2152: if test $# != 0; then
2153: # We chose a different compiler from the bogus one.
2154: # However, it has the same basename, so the bogon will be chosen
2155: # first if we set CC to just the basename; use the full file name.
2156: shift
2157: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2158: fi
2159: fi
2160: fi
2161: fi
2162: CC=$ac_cv_prog_CC
2163: if test -n "$CC"; then
2164: echo "$as_me:$LINENO: result: $CC" >&5
2165: echo "${ECHO_T}$CC" >&6
2166: else
2167: echo "$as_me:$LINENO: result: no" >&5
2168: echo "${ECHO_T}no" >&6
2169: fi
2170:
2171: fi
2172: if test -z "$CC"; then
2173: if test -n "$ac_tool_prefix"; then
2174: for ac_prog in cl
2175: do
2176: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2177: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2178: echo "$as_me:$LINENO: checking for $ac_word" >&5
2179: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180: if test "${ac_cv_prog_CC+set}" = set; then
2181: echo $ECHO_N "(cached) $ECHO_C" >&6
2182: else
2183: if test -n "$CC"; then
2184: ac_cv_prog_CC="$CC" # Let the user override the test.
2185: else
2186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187: for as_dir in $PATH
2188: do
2189: IFS=$as_save_IFS
2190: test -z "$as_dir" && as_dir=.
2191: for ac_exec_ext in '' $ac_executable_extensions; do
2192: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2194: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195: break 2
2196: fi
2197: done
2198: done
2199:
2200: fi
2201: fi
2202: CC=$ac_cv_prog_CC
2203: if test -n "$CC"; then
2204: echo "$as_me:$LINENO: result: $CC" >&5
2205: echo "${ECHO_T}$CC" >&6
2206: else
2207: echo "$as_me:$LINENO: result: no" >&5
2208: echo "${ECHO_T}no" >&6
2209: fi
2210:
2211: test -n "$CC" && break
2212: done
2213: fi
2214: if test -z "$CC"; then
2215: ac_ct_CC=$CC
2216: for ac_prog in cl
2217: do
2218: # Extract the first word of "$ac_prog", so it can be a program name with args.
2219: set dummy $ac_prog; ac_word=$2
2220: echo "$as_me:$LINENO: checking for $ac_word" >&5
2221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2223: echo $ECHO_N "(cached) $ECHO_C" >&6
2224: else
2225: if test -n "$ac_ct_CC"; then
2226: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2227: else
2228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229: for as_dir in $PATH
2230: do
2231: IFS=$as_save_IFS
2232: test -z "$as_dir" && as_dir=.
2233: for ac_exec_ext in '' $ac_executable_extensions; do
2234: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235: ac_cv_prog_ac_ct_CC="$ac_prog"
2236: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237: break 2
2238: fi
2239: done
2240: done
2241:
2242: fi
2243: fi
2244: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2245: if test -n "$ac_ct_CC"; then
2246: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2247: echo "${ECHO_T}$ac_ct_CC" >&6
2248: else
2249: echo "$as_me:$LINENO: result: no" >&5
2250: echo "${ECHO_T}no" >&6
2251: fi
2252:
2253: test -n "$ac_ct_CC" && break
2254: done
2255:
2256: CC=$ac_ct_CC
2257: fi
2258:
2259: fi
2260:
2261:
2262: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2263: See \`config.log' for more details." >&5
2264: echo "$as_me: error: no acceptable C compiler found in \$PATH
2265: See \`config.log' for more details." >&2;}
2266: { (exit 1); exit 1; }; }
2267:
2268: # Provide some information about the compiler.
2269: echo "$as_me:$LINENO:" \
2270: "checking for C compiler version" >&5
2271: ac_compiler=`set X $ac_compile; echo $2`
2272: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2273: (eval $ac_compiler --version </dev/null >&5) 2>&5
2274: ac_status=$?
2275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276: (exit $ac_status); }
2277: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2278: (eval $ac_compiler -v </dev/null >&5) 2>&5
2279: ac_status=$?
2280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281: (exit $ac_status); }
2282: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2283: (eval $ac_compiler -V </dev/null >&5) 2>&5
2284: ac_status=$?
2285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286: (exit $ac_status); }
2287:
2288: cat >conftest.$ac_ext <<_ACEOF
2289: #line $LINENO "configure"
2290: /* confdefs.h. */
2291: _ACEOF
2292: cat confdefs.h >>conftest.$ac_ext
2293: cat >>conftest.$ac_ext <<_ACEOF
2294: /* end confdefs.h. */
2295:
2296: int
2297: main ()
2298: {
2299:
2300: ;
2301: return 0;
2302: }
2303: _ACEOF
2304: ac_clean_files_save=$ac_clean_files
2305: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306: # Try to create an executable without -o first, disregard a.out.
2307: # It will help us diagnose broken compilers, and finding out an intuition
2308: # of exeext.
2309: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2310: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2311: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2313: (eval $ac_link_default) 2>&5
2314: ac_status=$?
2315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316: (exit $ac_status); }; then
2317: # Find the output, starting from the most likely. This scheme is
2318: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2319: # resort.
2320:
2321: # Be careful to initialize this variable, since it used to be cached.
2322: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2323: ac_cv_exeext=
2324: # b.out is created by i960 compilers.
2325: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2326: do
2327: test -f "$ac_file" || continue
2328: case $ac_file in
2329: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2330: ;;
2331: conftest.$ac_ext )
2332: # This is the source file.
2333: ;;
2334: [ab].out )
2335: # We found the default executable, but exeext='' is most
2336: # certainly right.
2337: break;;
2338: *.* )
2339: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340: # FIXME: I believe we export ac_cv_exeext for Libtool,
2341: # but it would be cool to find out if it's true. Does anybody
2342: # maintain Libtool? --akim.
2343: export ac_cv_exeext
2344: break;;
2345: * )
2346: break;;
2347: esac
2348: done
2349: else
2350: echo "$as_me: failed program was:" >&5
2351: sed 's/^/| /' conftest.$ac_ext >&5
2352:
2353: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2354: See \`config.log' for more details." >&5
2355: echo "$as_me: error: C compiler cannot create executables
2356: See \`config.log' for more details." >&2;}
2357: { (exit 77); exit 77; }; }
2358: fi
2359:
2360: ac_exeext=$ac_cv_exeext
2361: echo "$as_me:$LINENO: result: $ac_file" >&5
2362: echo "${ECHO_T}$ac_file" >&6
2363:
2364: # Check the compiler produces executables we can run. If not, either
2365: # the compiler is broken, or we cross compile.
2366: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2367: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2368: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2369: # If not cross compiling, check that we can run a simple program.
2370: if test "$cross_compiling" != yes; then
2371: if { ac_try='./$ac_file'
2372: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373: (eval $ac_try) 2>&5
2374: ac_status=$?
2375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376: (exit $ac_status); }; }; then
2377: cross_compiling=no
2378: else
2379: if test "$cross_compiling" = maybe; then
2380: cross_compiling=yes
2381: else
2382: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2383: If you meant to cross compile, use \`--host'.
2384: See \`config.log' for more details." >&5
2385: echo "$as_me: error: cannot run C compiled programs.
2386: If you meant to cross compile, use \`--host'.
2387: See \`config.log' for more details." >&2;}
2388: { (exit 1); exit 1; }; }
2389: fi
2390: fi
2391: fi
2392: echo "$as_me:$LINENO: result: yes" >&5
2393: echo "${ECHO_T}yes" >&6
2394:
2395: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2396: ac_clean_files=$ac_clean_files_save
2397: # Check the compiler produces executables we can run. If not, either
2398: # the compiler is broken, or we cross compile.
2399: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402: echo "${ECHO_T}$cross_compiling" >&6
2403:
2404: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407: (eval $ac_link) 2>&5
2408: ac_status=$?
2409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410: (exit $ac_status); }; then
2411: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2413: # work properly (i.e., refer to `conftest.exe'), while it won't with
2414: # `rm'.
2415: for ac_file in conftest.exe conftest conftest.*; do
2416: test -f "$ac_file" || continue
2417: case $ac_file in
2418: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2419: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2420: export ac_cv_exeext
2421: break;;
2422: * ) break;;
2423: esac
2424: done
2425: else
2426: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2427: See \`config.log' for more details." >&5
2428: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2429: See \`config.log' for more details." >&2;}
2430: { (exit 1); exit 1; }; }
2431: fi
2432:
2433: rm -f conftest$ac_cv_exeext
2434: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435: echo "${ECHO_T}$ac_cv_exeext" >&6
2436:
2437: rm -f conftest.$ac_ext
2438: EXEEXT=$ac_cv_exeext
2439: ac_exeext=$EXEEXT
2440: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442: if test "${ac_cv_objext+set}" = set; then
2443: echo $ECHO_N "(cached) $ECHO_C" >&6
2444: else
2445: cat >conftest.$ac_ext <<_ACEOF
2446: #line $LINENO "configure"
2447: /* confdefs.h. */
2448: _ACEOF
2449: cat confdefs.h >>conftest.$ac_ext
2450: cat >>conftest.$ac_ext <<_ACEOF
2451: /* end confdefs.h. */
2452:
2453: int
2454: main ()
2455: {
2456:
2457: ;
2458: return 0;
2459: }
2460: _ACEOF
2461: rm -f conftest.o conftest.obj
2462: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463: (eval $ac_compile) 2>&5
2464: ac_status=$?
2465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466: (exit $ac_status); }; then
2467: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2468: case $ac_file in
2469: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2470: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2471: break;;
2472: esac
2473: done
2474: else
2475: echo "$as_me: failed program was:" >&5
2476: sed 's/^/| /' conftest.$ac_ext >&5
2477:
2478: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2479: See \`config.log' for more details." >&5
2480: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2481: See \`config.log' for more details." >&2;}
2482: { (exit 1); exit 1; }; }
2483: fi
2484:
2485: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2486: fi
2487: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2488: echo "${ECHO_T}$ac_cv_objext" >&6
2489: OBJEXT=$ac_cv_objext
2490: ac_objext=$OBJEXT
2491: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2492: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2493: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2494: echo $ECHO_N "(cached) $ECHO_C" >&6
2495: else
2496: cat >conftest.$ac_ext <<_ACEOF
2497: #line $LINENO "configure"
2498: /* confdefs.h. */
2499: _ACEOF
2500: cat confdefs.h >>conftest.$ac_ext
2501: cat >>conftest.$ac_ext <<_ACEOF
2502: /* end confdefs.h. */
2503:
2504: int
2505: main ()
2506: {
2507: #ifndef __GNUC__
2508: choke me
2509: #endif
2510:
2511: ;
2512: return 0;
2513: }
2514: _ACEOF
2515: rm -f conftest.$ac_objext
2516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517: (eval $ac_compile) 2>&5
2518: ac_status=$?
2519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520: (exit $ac_status); } &&
2521: { ac_try='test -s conftest.$ac_objext'
2522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523: (eval $ac_try) 2>&5
2524: ac_status=$?
2525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526: (exit $ac_status); }; }; then
2527: ac_compiler_gnu=yes
2528: else
2529: echo "$as_me: failed program was:" >&5
2530: sed 's/^/| /' conftest.$ac_ext >&5
2531:
2532: ac_compiler_gnu=no
2533: fi
2534: rm -f conftest.$ac_objext conftest.$ac_ext
2535: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536:
2537: fi
2538: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540: GCC=`test $ac_compiler_gnu = yes && echo yes`
2541: ac_test_CFLAGS=${CFLAGS+set}
2542: ac_save_CFLAGS=$CFLAGS
2543: CFLAGS="-g"
2544: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546: if test "${ac_cv_prog_cc_g+set}" = set; then
2547: echo $ECHO_N "(cached) $ECHO_C" >&6
2548: else
2549: cat >conftest.$ac_ext <<_ACEOF
2550: #line $LINENO "configure"
2551: /* confdefs.h. */
2552: _ACEOF
2553: cat confdefs.h >>conftest.$ac_ext
2554: cat >>conftest.$ac_ext <<_ACEOF
2555: /* end confdefs.h. */
2556:
2557: int
2558: main ()
2559: {
2560:
2561: ;
2562: return 0;
2563: }
2564: _ACEOF
2565: rm -f conftest.$ac_objext
2566: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567: (eval $ac_compile) 2>&5
2568: ac_status=$?
2569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570: (exit $ac_status); } &&
2571: { ac_try='test -s conftest.$ac_objext'
2572: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573: (eval $ac_try) 2>&5
2574: ac_status=$?
2575: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576: (exit $ac_status); }; }; then
2577: ac_cv_prog_cc_g=yes
2578: else
2579: echo "$as_me: failed program was:" >&5
2580: sed 's/^/| /' conftest.$ac_ext >&5
2581:
2582: ac_cv_prog_cc_g=no
2583: fi
2584: rm -f conftest.$ac_objext conftest.$ac_ext
2585: fi
2586: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588: if test "$ac_test_CFLAGS" = set; then
2589: CFLAGS=$ac_save_CFLAGS
2590: elif test $ac_cv_prog_cc_g = yes; then
2591: if test "$GCC" = yes; then
2592: CFLAGS="-g -O2"
2593: else
2594: CFLAGS="-g"
2595: fi
2596: else
2597: if test "$GCC" = yes; then
2598: CFLAGS="-O2"
2599: else
2600: CFLAGS=
2601: fi
2602: fi
2603: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606: echo $ECHO_N "(cached) $ECHO_C" >&6
2607: else
2608: ac_cv_prog_cc_stdc=no
2609: ac_save_CC=$CC
2610: cat >conftest.$ac_ext <<_ACEOF
2611: #line $LINENO "configure"
2612: /* confdefs.h. */
2613: _ACEOF
2614: cat confdefs.h >>conftest.$ac_ext
2615: cat >>conftest.$ac_ext <<_ACEOF
2616: /* end confdefs.h. */
2617: #include <stdarg.h>
2618: #include <stdio.h>
2619: #include <sys/types.h>
2620: #include <sys/stat.h>
2621: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2622: struct buf { int x; };
2623: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2624: static char *e (p, i)
2625: char **p;
2626: int i;
2627: {
2628: return p[i];
2629: }
2630: static char *f (char * (*g) (char **, int), char **p, ...)
2631: {
2632: char *s;
2633: va_list v;
2634: va_start (v,p);
2635: s = g (p, va_arg (v,int));
2636: va_end (v);
2637: return s;
2638: }
2639: int test (int i, double x);
2640: struct s1 {int (*f) (int a);};
2641: struct s2 {int (*f) (double a);};
2642: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2643: int argc;
2644: char **argv;
2645: int
2646: main ()
2647: {
2648: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2649: ;
2650: return 0;
2651: }
2652: _ACEOF
2653: # Don't try gcc -ansi; that turns off useful extensions and
2654: # breaks some systems' header files.
2655: # AIX -qlanglvl=ansi
2656: # Ultrix and OSF/1 -std1
2657: # HP-UX 10.20 and later -Ae
2658: # HP-UX older versions -Aa -D_HPUX_SOURCE
2659: # SVR4 -Xc -D__EXTENSIONS__
2660: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2661: do
2662: CC="$ac_save_CC $ac_arg"
2663: rm -f conftest.$ac_objext
2664: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665: (eval $ac_compile) 2>&5
2666: ac_status=$?
2667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668: (exit $ac_status); } &&
2669: { ac_try='test -s conftest.$ac_objext'
2670: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671: (eval $ac_try) 2>&5
2672: ac_status=$?
2673: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674: (exit $ac_status); }; }; then
2675: ac_cv_prog_cc_stdc=$ac_arg
2676: break
2677: else
2678: echo "$as_me: failed program was:" >&5
2679: sed 's/^/| /' conftest.$ac_ext >&5
2680:
2681: fi
2682: rm -f conftest.$ac_objext
2683: done
2684: rm -f conftest.$ac_ext conftest.$ac_objext
2685: CC=$ac_save_CC
2686:
2687: fi
2688:
2689: case "x$ac_cv_prog_cc_stdc" in
2690: x|xno)
2691: echo "$as_me:$LINENO: result: none needed" >&5
2692: echo "${ECHO_T}none needed" >&6 ;;
2693: *)
2694: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2695: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2696: CC="$CC $ac_cv_prog_cc_stdc" ;;
2697: esac
2698:
2699: # Some people use a C++ compiler to compile C. Since we use `exit',
2700: # in C++ we need to declare it. In case someone uses the same compiler
2701: # for both compiling C and C++ we need to have the C++ compiler decide
2702: # the declaration of exit, since it's the most demanding environment.
2703: cat >conftest.$ac_ext <<_ACEOF
2704: #ifndef __cplusplus
2705: choke me
2706: #endif
2707: _ACEOF
2708: rm -f conftest.$ac_objext
2709: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710: (eval $ac_compile) 2>&5
2711: ac_status=$?
2712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713: (exit $ac_status); } &&
2714: { ac_try='test -s conftest.$ac_objext'
2715: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716: (eval $ac_try) 2>&5
2717: ac_status=$?
2718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719: (exit $ac_status); }; }; then
2720: for ac_declaration in \
2721: ''\
2722: '#include <stdlib.h>' \
2723: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2724: 'extern "C" void std::exit (int); using std::exit;' \
2725: 'extern "C" void exit (int) throw ();' \
2726: 'extern "C" void exit (int);' \
2727: 'void exit (int);'
2728: do
2729: cat >conftest.$ac_ext <<_ACEOF
2730: #line $LINENO "configure"
2731: /* confdefs.h. */
2732: _ACEOF
2733: cat confdefs.h >>conftest.$ac_ext
2734: cat >>conftest.$ac_ext <<_ACEOF
2735: /* end confdefs.h. */
2736: #include <stdlib.h>
2737: $ac_declaration
2738: int
2739: main ()
2740: {
2741: exit (42);
2742: ;
2743: return 0;
2744: }
2745: _ACEOF
2746: rm -f conftest.$ac_objext
2747: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748: (eval $ac_compile) 2>&5
2749: ac_status=$?
2750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751: (exit $ac_status); } &&
2752: { ac_try='test -s conftest.$ac_objext'
2753: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754: (eval $ac_try) 2>&5
2755: ac_status=$?
2756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757: (exit $ac_status); }; }; then
2758: :
2759: else
2760: echo "$as_me: failed program was:" >&5
2761: sed 's/^/| /' conftest.$ac_ext >&5
2762:
2763: continue
2764: fi
2765: rm -f conftest.$ac_objext conftest.$ac_ext
2766: cat >conftest.$ac_ext <<_ACEOF
2767: #line $LINENO "configure"
2768: /* confdefs.h. */
2769: _ACEOF
2770: cat confdefs.h >>conftest.$ac_ext
2771: cat >>conftest.$ac_ext <<_ACEOF
2772: /* end confdefs.h. */
2773: $ac_declaration
2774: int
2775: main ()
2776: {
2777: exit (42);
2778: ;
2779: return 0;
2780: }
2781: _ACEOF
2782: rm -f conftest.$ac_objext
2783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784: (eval $ac_compile) 2>&5
2785: ac_status=$?
2786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787: (exit $ac_status); } &&
2788: { ac_try='test -s conftest.$ac_objext'
2789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790: (eval $ac_try) 2>&5
2791: ac_status=$?
2792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793: (exit $ac_status); }; }; then
2794: break
2795: else
2796: echo "$as_me: failed program was:" >&5
2797: sed 's/^/| /' conftest.$ac_ext >&5
2798:
2799: fi
2800: rm -f conftest.$ac_objext conftest.$ac_ext
2801: done
2802: rm -f conftest*
2803: if test -n "$ac_declaration"; then
2804: echo '#ifdef __cplusplus' >>confdefs.h
2805: echo $ac_declaration >>confdefs.h
2806: echo '#endif' >>confdefs.h
2807: fi
2808:
2809: else
2810: echo "$as_me: failed program was:" >&5
2811: sed 's/^/| /' conftest.$ac_ext >&5
2812:
2813: fi
2814: rm -f conftest.$ac_objext conftest.$ac_ext
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: rm -f .deps 2>/dev/null
2821: mkdir .deps 2>/dev/null
2822: if test -d .deps; then
2823: DEPDIR=.deps
2824: else
2825: # MS-DOS does not allow filenames that begin with a dot.
2826: DEPDIR=_deps
2827: fi
2828: rmdir .deps 2>/dev/null
2829:
2830:
2831: ac_config_commands="$ac_config_commands depfiles"
2832:
2833:
2834: am_make=${MAKE-make}
2835: cat > confinc << 'END'
2836: doit:
2837: @echo done
2838: END
2839: # If we don't find an include directive, just comment out the code.
2840: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2841: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842: am__include="#"
2843: am__quote=
2844: _am_result=none
2845: # First try GNU make style include.
2846: echo "include confinc" > confmf
2847: # We grep out `Entering directory' and `Leaving directory'
2848: # messages which can occur if `w' ends up in MAKEFLAGS.
2849: # In particular we don't look at `^make:' because GNU make might
2850: # be invoked under some other name (usually "gmake"), in which
2851: # case it prints its new name instead of `make'.
2852: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2853: am__include=include
2854: am__quote=
2855: _am_result=GNU
2856: fi
2857: # Now try BSD make style include.
2858: if test "$am__include" = "#"; then
2859: echo '.include "confinc"' > confmf
2860: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2861: am__include=.include
2862: am__quote="\""
2863: _am_result=BSD
2864: fi
2865: fi
2866:
2867:
2868: echo "$as_me:$LINENO: result: $_am_result" >&5
2869: echo "${ECHO_T}$_am_result" >&6
2870: rm -f confinc confmf
2871:
2872: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2873: if test "${enable_dependency_tracking+set}" = set; then
2874: enableval="$enable_dependency_tracking"
2875:
2876: fi;
2877: if test "x$enable_dependency_tracking" != xno; then
2878: am_depcomp="$ac_aux_dir/depcomp"
2879: AMDEPBACKSLASH='\'
2880: fi
2881:
2882:
2883: if test "x$enable_dependency_tracking" != xno; then
2884: AMDEP_TRUE=
2885: AMDEP_FALSE='#'
2886: else
2887: AMDEP_TRUE='#'
2888: AMDEP_FALSE=
2889: fi
2890:
2891:
2892:
2893:
2894: depcc="$CC" am_compiler_list=
2895:
2896: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2897: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2898: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2899: echo $ECHO_N "(cached) $ECHO_C" >&6
2900: else
2901: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2902: # We make a subdir and do the tests there. Otherwise we can end up
2903: # making bogus files that we don't know about and never remove. For
2904: # instance it was reported that on HP-UX the gcc test will end up
2905: # making a dummy file named `D' -- because `-MD' means `put the output
2906: # in D'.
2907: mkdir conftest.dir
2908: # Copy depcomp to subdir because otherwise we won't find it if we're
2909: # using a relative directory.
2910: cp "$am_depcomp" conftest.dir
2911: cd conftest.dir
2912:
2913: am_cv_CC_dependencies_compiler_type=none
2914: if test "$am_compiler_list" = ""; then
2915: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2916: fi
2917: for depmode in $am_compiler_list; do
2918: # We need to recreate these files for each test, as the compiler may
2919: # overwrite some of them when testing with obscure command lines.
2920: # This happens at least with the AIX C compiler.
2921: echo '#include "conftest.h"' > conftest.c
2922: echo 'int i;' > conftest.h
2923: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2924:
2925: case $depmode in
2926: nosideeffect)
2927: # after this tag, mechanisms are not by side-effect, so they'll
2928: # only be used when explicitly requested
2929: if test "x$enable_dependency_tracking" = xyes; then
2930: continue
2931: else
2932: break
2933: fi
2934: ;;
2935: none) break ;;
2936: esac
2937: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2938: # mode. It turns out that the SunPro C++ compiler does not properly
2939: # handle `-M -o', and we need to detect this.
2940: if depmode=$depmode \
2941: source=conftest.c object=conftest.o \
2942: depfile=conftest.Po tmpdepfile=conftest.TPo \
2943: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2944: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2945: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2946: am_cv_CC_dependencies_compiler_type=$depmode
2947: break
2948: fi
2949: done
2950:
2951: cd ..
2952: rm -rf conftest.dir
2953: else
2954: am_cv_CC_dependencies_compiler_type=none
2955: fi
2956:
2957: fi
2958: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2959: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2960: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2961:
2962:
2963:
2964: if
2965: test "x$enable_dependency_tracking" != xno \
2966: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2967: am__fastdepCC_TRUE=
2968: am__fastdepCC_FALSE='#'
2969: else
2970: am__fastdepCC_TRUE='#'
2971: am__fastdepCC_FALSE=
2972: fi
2973:
2974:
2975: ac_ext=c
2976: ac_cpp='$CPP $CPPFLAGS'
2977: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2981: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2982: # On Suns, sometimes $CPP names a directory.
2983: if test -n "$CPP" && test -d "$CPP"; then
2984: CPP=
2985: fi
2986: if test -z "$CPP"; then
2987: if test "${ac_cv_prog_CPP+set}" = set; then
2988: echo $ECHO_N "(cached) $ECHO_C" >&6
2989: else
2990: # Double quotes because CPP needs to be expanded
2991: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2992: do
2993: ac_preproc_ok=false
2994: for ac_c_preproc_warn_flag in '' yes
2995: do
2996: # Use a header file that comes with gcc, so configuring glibc
2997: # with a fresh cross-compiler works.
2998: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999: # <limits.h> exists even on freestanding compilers.
3000: # On the NeXT, cc -E runs the code through the compiler's parser,
3001: # not just through cpp. "Syntax error" is here to catch this case.
3002: cat >conftest.$ac_ext <<_ACEOF
3003: #line $LINENO "configure"
3004: /* confdefs.h. */
3005: _ACEOF
3006: cat confdefs.h >>conftest.$ac_ext
3007: cat >>conftest.$ac_ext <<_ACEOF
3008: /* end confdefs.h. */
3009: #ifdef __STDC__
3010: # include <limits.h>
3011: #else
3012: # include <assert.h>
3013: #endif
3014: Syntax error
3015: _ACEOF
3016: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018: ac_status=$?
3019: grep -v '^ *+' conftest.er1 >conftest.err
3020: rm -f conftest.er1
3021: cat conftest.err >&5
3022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023: (exit $ac_status); } >/dev/null; then
3024: if test -s conftest.err; then
3025: ac_cpp_err=$ac_c_preproc_warn_flag
3026: else
3027: ac_cpp_err=
3028: fi
3029: else
3030: ac_cpp_err=yes
3031: fi
3032: if test -z "$ac_cpp_err"; then
3033: :
3034: else
3035: echo "$as_me: failed program was:" >&5
3036: sed 's/^/| /' conftest.$ac_ext >&5
3037:
3038: # Broken: fails on valid input.
3039: continue
3040: fi
3041: rm -f conftest.err conftest.$ac_ext
3042:
3043: # OK, works on sane cases. Now check whether non-existent headers
3044: # can be detected and how.
3045: cat >conftest.$ac_ext <<_ACEOF
3046: #line $LINENO "configure"
3047: /* confdefs.h. */
3048: _ACEOF
3049: cat confdefs.h >>conftest.$ac_ext
3050: cat >>conftest.$ac_ext <<_ACEOF
3051: /* end confdefs.h. */
3052: #include <ac_nonexistent.h>
3053: _ACEOF
3054: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056: ac_status=$?
3057: grep -v '^ *+' conftest.er1 >conftest.err
3058: rm -f conftest.er1
3059: cat conftest.err >&5
3060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061: (exit $ac_status); } >/dev/null; then
3062: if test -s conftest.err; then
3063: ac_cpp_err=$ac_c_preproc_warn_flag
3064: else
3065: ac_cpp_err=
3066: fi
3067: else
3068: ac_cpp_err=yes
3069: fi
3070: if test -z "$ac_cpp_err"; then
3071: # Broken: success on invalid input.
3072: continue
3073: else
3074: echo "$as_me: failed program was:" >&5
3075: sed 's/^/| /' conftest.$ac_ext >&5
3076:
3077: # Passes both tests.
3078: ac_preproc_ok=:
3079: break
3080: fi
3081: rm -f conftest.err conftest.$ac_ext
3082:
3083: done
3084: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085: rm -f conftest.err conftest.$ac_ext
3086: if $ac_preproc_ok; then
3087: break
3088: fi
3089:
3090: done
3091: ac_cv_prog_CPP=$CPP
3092:
3093: fi
3094: CPP=$ac_cv_prog_CPP
3095: else
3096: ac_cv_prog_CPP=$CPP
3097: fi
3098: echo "$as_me:$LINENO: result: $CPP" >&5
3099: echo "${ECHO_T}$CPP" >&6
3100: ac_preproc_ok=false
3101: for ac_c_preproc_warn_flag in '' yes
3102: do
3103: # Use a header file that comes with gcc, so configuring glibc
3104: # with a fresh cross-compiler works.
3105: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106: # <limits.h> exists even on freestanding compilers.
3107: # On the NeXT, cc -E runs the code through the compiler's parser,
3108: # not just through cpp. "Syntax error" is here to catch this case.
3109: cat >conftest.$ac_ext <<_ACEOF
3110: #line $LINENO "configure"
3111: /* confdefs.h. */
3112: _ACEOF
3113: cat confdefs.h >>conftest.$ac_ext
3114: cat >>conftest.$ac_ext <<_ACEOF
3115: /* end confdefs.h. */
3116: #ifdef __STDC__
3117: # include <limits.h>
3118: #else
3119: # include <assert.h>
3120: #endif
3121: Syntax error
3122: _ACEOF
3123: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3124: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125: ac_status=$?
3126: grep -v '^ *+' conftest.er1 >conftest.err
3127: rm -f conftest.er1
3128: cat conftest.err >&5
3129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130: (exit $ac_status); } >/dev/null; then
3131: if test -s conftest.err; then
3132: ac_cpp_err=$ac_c_preproc_warn_flag
3133: else
3134: ac_cpp_err=
3135: fi
3136: else
3137: ac_cpp_err=yes
3138: fi
3139: if test -z "$ac_cpp_err"; then
3140: :
3141: else
3142: echo "$as_me: failed program was:" >&5
3143: sed 's/^/| /' conftest.$ac_ext >&5
3144:
3145: # Broken: fails on valid input.
3146: continue
3147: fi
3148: rm -f conftest.err conftest.$ac_ext
3149:
3150: # OK, works on sane cases. Now check whether non-existent headers
3151: # can be detected and how.
3152: cat >conftest.$ac_ext <<_ACEOF
3153: #line $LINENO "configure"
3154: /* confdefs.h. */
3155: _ACEOF
3156: cat confdefs.h >>conftest.$ac_ext
3157: cat >>conftest.$ac_ext <<_ACEOF
3158: /* end confdefs.h. */
3159: #include <ac_nonexistent.h>
3160: _ACEOF
3161: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3162: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3163: ac_status=$?
3164: grep -v '^ *+' conftest.er1 >conftest.err
3165: rm -f conftest.er1
3166: cat conftest.err >&5
3167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168: (exit $ac_status); } >/dev/null; then
3169: if test -s conftest.err; then
3170: ac_cpp_err=$ac_c_preproc_warn_flag
3171: else
3172: ac_cpp_err=
3173: fi
3174: else
3175: ac_cpp_err=yes
3176: fi
3177: if test -z "$ac_cpp_err"; then
3178: # Broken: success on invalid input.
3179: continue
3180: else
3181: echo "$as_me: failed program was:" >&5
3182: sed 's/^/| /' conftest.$ac_ext >&5
3183:
3184: # Passes both tests.
3185: ac_preproc_ok=:
3186: break
3187: fi
3188: rm -f conftest.err conftest.$ac_ext
3189:
3190: done
3191: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3192: rm -f conftest.err conftest.$ac_ext
3193: if $ac_preproc_ok; then
3194: :
3195: else
3196: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3197: See \`config.log' for more details." >&5
3198: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3199: See \`config.log' for more details." >&2;}
3200: { (exit 1); exit 1; }; }
3201: fi
3202:
3203: ac_ext=c
3204: ac_cpp='$CPP $CPPFLAGS'
3205: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208:
3209: for ac_prog in 'bison -y' byacc
3210: do
3211: # Extract the first word of "$ac_prog", so it can be a program name with args.
3212: set dummy $ac_prog; ac_word=$2
3213: echo "$as_me:$LINENO: checking for $ac_word" >&5
3214: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215: if test "${ac_cv_prog_YACC+set}" = set; then
3216: echo $ECHO_N "(cached) $ECHO_C" >&6
3217: else
3218: if test -n "$YACC"; then
3219: ac_cv_prog_YACC="$YACC" # Let the user override the test.
3220: else
3221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222: for as_dir in $PATH
3223: do
3224: IFS=$as_save_IFS
3225: test -z "$as_dir" && as_dir=.
3226: for ac_exec_ext in '' $ac_executable_extensions; do
3227: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228: ac_cv_prog_YACC="$ac_prog"
3229: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230: break 2
3231: fi
3232: done
3233: done
3234:
3235: fi
3236: fi
3237: YACC=$ac_cv_prog_YACC
3238: if test -n "$YACC"; then
3239: echo "$as_me:$LINENO: result: $YACC" >&5
3240: echo "${ECHO_T}$YACC" >&6
3241: else
3242: echo "$as_me:$LINENO: result: no" >&5
3243: echo "${ECHO_T}no" >&6
3244: fi
3245:
3246: test -n "$YACC" && break
3247: done
3248: test -n "$YACC" || YACC="yacc"
3249:
3250: # Find a good install program. We prefer a C program (faster),
3251: # so one script is as good as another. But avoid the broken or
3252: # incompatible versions:
3253: # SysV /etc/install, /usr/sbin/install
3254: # SunOS /usr/etc/install
3255: # IRIX /sbin/install
3256: # AIX /bin/install
3257: # AmigaOS /C/install, which installs bootblocks on floppy discs
3258: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261: # ./install, which can be erroneously created by make from ./install.sh.
3262: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3263: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3264: if test -z "$INSTALL"; then
3265: if test "${ac_cv_path_install+set}" = set; then
3266: echo $ECHO_N "(cached) $ECHO_C" >&6
3267: else
3268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269: for as_dir in $PATH
3270: do
3271: IFS=$as_save_IFS
3272: test -z "$as_dir" && as_dir=.
3273: # Account for people who put trailing slashes in PATH elements.
3274: case $as_dir/ in
3275: ./ | .// | /cC/* | \
3276: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3277: /usr/ucb/* ) ;;
3278: *)
3279: # OSF1 and SCO ODT 3.0 have their own names for install.
3280: # Don't use installbsd from OSF since it installs stuff as root
3281: # by default.
3282: for ac_prog in ginstall scoinst install; do
3283: for ac_exec_ext in '' $ac_executable_extensions; do
3284: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3285: if test $ac_prog = install &&
3286: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3287: # AIX install. It has an incompatible calling convention.
3288: :
3289: elif test $ac_prog = install &&
3290: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3291: # program-specific install script used by HP pwplus--don't use.
3292: :
3293: else
3294: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3295: break 3
3296: fi
3297: fi
3298: done
3299: done
3300: ;;
3301: esac
3302: done
3303:
3304:
3305: fi
3306: if test "${ac_cv_path_install+set}" = set; then
3307: INSTALL=$ac_cv_path_install
3308: else
3309: # As a last resort, use the slow shell script. We don't cache a
3310: # path for INSTALL within a source directory, because that will
3311: # break other packages using the cache if that directory is
3312: # removed, or if the path is relative.
3313: INSTALL=$ac_install_sh
3314: fi
3315: fi
3316: echo "$as_me:$LINENO: result: $INSTALL" >&5
3317: echo "${ECHO_T}$INSTALL" >&6
3318:
3319: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3320: # It thinks the first close brace ends the variable substitution.
3321: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3322:
3323: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3324:
3325: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3326:
3327: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3328: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3329: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3330: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3331: echo $ECHO_N "(cached) $ECHO_C" >&6
3332: else
3333: cat >conftest.make <<\_ACEOF
3334: all:
3335: @echo 'ac_maketemp="$(MAKE)"'
3336: _ACEOF
3337: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3338: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3339: if test -n "$ac_maketemp"; then
3340: eval ac_cv_prog_make_${ac_make}_set=yes
3341: else
3342: eval ac_cv_prog_make_${ac_make}_set=no
3343: fi
3344: rm -f conftest.make
3345: fi
3346: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3347: echo "$as_me:$LINENO: result: yes" >&5
3348: echo "${ECHO_T}yes" >&6
3349: SET_MAKE=
3350: else
3351: echo "$as_me:$LINENO: result: no" >&5
3352: echo "${ECHO_T}no" >&6
3353: SET_MAKE="MAKE=${MAKE-make}"
3354: fi
3355:
3356:
3357:
3358:
3359: echo "$as_me:$LINENO: checking for egrep" >&5
3360: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3361: if test "${ac_cv_prog_egrep+set}" = set; then
3362: echo $ECHO_N "(cached) $ECHO_C" >&6
3363: else
3364: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3365: then ac_cv_prog_egrep='grep -E'
3366: else ac_cv_prog_egrep='egrep'
3367: fi
3368: fi
3369: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3370: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3371: EGREP=$ac_cv_prog_egrep
3372:
3373:
3374: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3375: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3376: if test "${ac_cv_header_stdc+set}" = set; then
3377: echo $ECHO_N "(cached) $ECHO_C" >&6
3378: else
3379: cat >conftest.$ac_ext <<_ACEOF
3380: #line $LINENO "configure"
3381: /* confdefs.h. */
3382: _ACEOF
3383: cat confdefs.h >>conftest.$ac_ext
3384: cat >>conftest.$ac_ext <<_ACEOF
3385: /* end confdefs.h. */
3386: #include <stdlib.h>
3387: #include <stdarg.h>
3388: #include <string.h>
3389: #include <float.h>
3390:
3391: int
3392: main ()
3393: {
3394:
3395: ;
3396: return 0;
3397: }
3398: _ACEOF
3399: rm -f conftest.$ac_objext
3400: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401: (eval $ac_compile) 2>&5
3402: ac_status=$?
3403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404: (exit $ac_status); } &&
3405: { ac_try='test -s conftest.$ac_objext'
3406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407: (eval $ac_try) 2>&5
3408: ac_status=$?
3409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410: (exit $ac_status); }; }; then
3411: ac_cv_header_stdc=yes
3412: else
3413: echo "$as_me: failed program was:" >&5
3414: sed 's/^/| /' conftest.$ac_ext >&5
3415:
3416: ac_cv_header_stdc=no
3417: fi
3418: rm -f conftest.$ac_objext conftest.$ac_ext
3419:
3420: if test $ac_cv_header_stdc = yes; then
3421: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3422: cat >conftest.$ac_ext <<_ACEOF
3423: #line $LINENO "configure"
3424: /* confdefs.h. */
3425: _ACEOF
3426: cat confdefs.h >>conftest.$ac_ext
3427: cat >>conftest.$ac_ext <<_ACEOF
3428: /* end confdefs.h. */
3429: #include <string.h>
3430:
3431: _ACEOF
3432: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433: $EGREP "memchr" >/dev/null 2>&1; then
3434: :
3435: else
3436: ac_cv_header_stdc=no
3437: fi
3438: rm -f conftest*
3439:
3440: fi
3441:
3442: if test $ac_cv_header_stdc = yes; then
3443: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3444: cat >conftest.$ac_ext <<_ACEOF
3445: #line $LINENO "configure"
3446: /* confdefs.h. */
3447: _ACEOF
3448: cat confdefs.h >>conftest.$ac_ext
3449: cat >>conftest.$ac_ext <<_ACEOF
3450: /* end confdefs.h. */
3451: #include <stdlib.h>
3452:
3453: _ACEOF
3454: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455: $EGREP "free" >/dev/null 2>&1; then
3456: :
3457: else
3458: ac_cv_header_stdc=no
3459: fi
3460: rm -f conftest*
3461:
3462: fi
3463:
3464: if test $ac_cv_header_stdc = yes; then
3465: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3466: if test "$cross_compiling" = yes; then
3467: :
3468: else
3469: cat >conftest.$ac_ext <<_ACEOF
3470: #line $LINENO "configure"
3471: /* confdefs.h. */
3472: _ACEOF
3473: cat confdefs.h >>conftest.$ac_ext
3474: cat >>conftest.$ac_ext <<_ACEOF
3475: /* end confdefs.h. */
3476: #include <ctype.h>
3477: #if ((' ' & 0x0FF) == 0x020)
3478: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3479: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3480: #else
3481: # define ISLOWER(c) \
3482: (('a' <= (c) && (c) <= 'i') \
3483: || ('j' <= (c) && (c) <= 'r') \
3484: || ('s' <= (c) && (c) <= 'z'))
3485: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3486: #endif
3487:
3488: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3489: int
3490: main ()
3491: {
3492: int i;
3493: for (i = 0; i < 256; i++)
3494: if (XOR (islower (i), ISLOWER (i))
3495: || toupper (i) != TOUPPER (i))
3496: exit(2);
3497: exit (0);
3498: }
3499: _ACEOF
3500: rm -f conftest$ac_exeext
3501: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3502: (eval $ac_link) 2>&5
3503: ac_status=$?
3504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
3511: :
3512: else
3513: echo "$as_me: program exited with status $ac_status" >&5
3514: echo "$as_me: failed program was:" >&5
3515: sed 's/^/| /' conftest.$ac_ext >&5
3516:
3517: ( exit $ac_status )
3518: ac_cv_header_stdc=no
3519: fi
3520: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521: fi
3522: fi
3523: fi
3524: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525: echo "${ECHO_T}$ac_cv_header_stdc" >&6
3526: if test $ac_cv_header_stdc = yes; then
3527:
3528: cat >>confdefs.h <<\_ACEOF
3529: #define STDC_HEADERS 1
3530: _ACEOF
3531:
3532: fi
3533:
3534: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3535:
3536:
3537:
3538:
3539:
3540:
3541:
3542:
3543:
3544: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545: inttypes.h stdint.h unistd.h
3546: do
3547: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548: echo "$as_me:$LINENO: checking for $ac_header" >&5
3549: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3550: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3551: echo $ECHO_N "(cached) $ECHO_C" >&6
3552: else
3553: cat >conftest.$ac_ext <<_ACEOF
3554: #line $LINENO "configure"
3555: /* confdefs.h. */
3556: _ACEOF
3557: cat confdefs.h >>conftest.$ac_ext
3558: cat >>conftest.$ac_ext <<_ACEOF
3559: /* end confdefs.h. */
3560: $ac_includes_default
3561:
3562: #include <$ac_header>
3563: _ACEOF
3564: rm -f conftest.$ac_objext
3565: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566: (eval $ac_compile) 2>&5
3567: ac_status=$?
3568: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569: (exit $ac_status); } &&
3570: { ac_try='test -s conftest.$ac_objext'
3571: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572: (eval $ac_try) 2>&5
3573: ac_status=$?
3574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575: (exit $ac_status); }; }; then
3576: eval "$as_ac_Header=yes"
3577: else
3578: echo "$as_me: failed program was:" >&5
3579: sed 's/^/| /' conftest.$ac_ext >&5
3580:
3581: eval "$as_ac_Header=no"
3582: fi
3583: rm -f conftest.$ac_objext conftest.$ac_ext
3584: fi
3585: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3586: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3587: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3588: cat >>confdefs.h <<_ACEOF
3589: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590: _ACEOF
3591:
3592: fi
3593:
3594: done
3595:
3596:
3597:
3598:
3599:
3600:
1.1.1.3 root 3601:
3602:
3603: for ac_header in unistd.h stdio.h memory.h stdarg.h limits.h float.h
1.1 root 3604: do
3605: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3606: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3607: echo "$as_me:$LINENO: checking for $ac_header" >&5
3608: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3609: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3610: echo $ECHO_N "(cached) $ECHO_C" >&6
3611: fi
3612: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614: else
3615: # Is the header compilable?
3616: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3617: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3618: cat >conftest.$ac_ext <<_ACEOF
3619: #line $LINENO "configure"
3620: /* confdefs.h. */
3621: _ACEOF
3622: cat confdefs.h >>conftest.$ac_ext
3623: cat >>conftest.$ac_ext <<_ACEOF
3624: /* end confdefs.h. */
3625: $ac_includes_default
3626: #include <$ac_header>
3627: _ACEOF
3628: rm -f conftest.$ac_objext
3629: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630: (eval $ac_compile) 2>&5
3631: ac_status=$?
3632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633: (exit $ac_status); } &&
3634: { ac_try='test -s conftest.$ac_objext'
3635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636: (eval $ac_try) 2>&5
3637: ac_status=$?
3638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639: (exit $ac_status); }; }; then
3640: ac_header_compiler=yes
3641: else
3642: echo "$as_me: failed program was:" >&5
3643: sed 's/^/| /' conftest.$ac_ext >&5
3644:
3645: ac_header_compiler=no
3646: fi
3647: rm -f conftest.$ac_objext conftest.$ac_ext
3648: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3649: echo "${ECHO_T}$ac_header_compiler" >&6
3650:
3651: # Is the header present?
3652: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3653: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3654: cat >conftest.$ac_ext <<_ACEOF
3655: #line $LINENO "configure"
3656: /* confdefs.h. */
3657: _ACEOF
3658: cat confdefs.h >>conftest.$ac_ext
3659: cat >>conftest.$ac_ext <<_ACEOF
3660: /* end confdefs.h. */
3661: #include <$ac_header>
3662: _ACEOF
3663: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3664: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3665: ac_status=$?
3666: grep -v '^ *+' conftest.er1 >conftest.err
3667: rm -f conftest.er1
3668: cat conftest.err >&5
3669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670: (exit $ac_status); } >/dev/null; then
3671: if test -s conftest.err; then
3672: ac_cpp_err=$ac_c_preproc_warn_flag
3673: else
3674: ac_cpp_err=
3675: fi
3676: else
3677: ac_cpp_err=yes
3678: fi
3679: if test -z "$ac_cpp_err"; then
3680: ac_header_preproc=yes
3681: else
3682: echo "$as_me: failed program was:" >&5
3683: sed 's/^/| /' conftest.$ac_ext >&5
3684:
3685: ac_header_preproc=no
3686: fi
3687: rm -f conftest.err conftest.$ac_ext
3688: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689: echo "${ECHO_T}$ac_header_preproc" >&6
3690:
3691: # So? What about this header?
3692: case $ac_header_compiler:$ac_header_preproc in
3693: yes:no )
3694: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3695: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3697: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3698: (
3699: cat <<\_ASBOX
3700: ## ------------------------------------ ##
3701: ## Report this to [email protected]. ##
3702: ## ------------------------------------ ##
3703: _ASBOX
3704: ) |
3705: sed "s/^/$as_me: WARNING: /" >&2
3706: ;;
3707: no:yes )
3708: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3709: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3710: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3711: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3712: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3713: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3714: (
3715: cat <<\_ASBOX
3716: ## ------------------------------------ ##
3717: ## Report this to [email protected]. ##
3718: ## ------------------------------------ ##
3719: _ASBOX
3720: ) |
3721: sed "s/^/$as_me: WARNING: /" >&2
3722: ;;
3723: esac
3724: echo "$as_me:$LINENO: checking for $ac_header" >&5
3725: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3726: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3727: echo $ECHO_N "(cached) $ECHO_C" >&6
3728: else
3729: eval "$as_ac_Header=$ac_header_preproc"
3730: fi
3731: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733:
3734: fi
3735: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3736: cat >>confdefs.h <<_ACEOF
3737: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3738: _ACEOF
3739:
3740: fi
3741:
3742: done
3743:
3744:
3745:
3746:
3747:
3748:
3749: for ac_header in sys/ioctl.h sys/sockio.h sys/socketio.h net/if_dl.h ioctls.h
3750: do
3751: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753: echo "$as_me:$LINENO: checking for $ac_header" >&5
3754: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756: echo $ECHO_N "(cached) $ECHO_C" >&6
3757: fi
3758: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3759: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3760: else
3761: # Is the header compilable?
3762: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3763: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3764: cat >conftest.$ac_ext <<_ACEOF
3765: #line $LINENO "configure"
3766: /* confdefs.h. */
3767: _ACEOF
3768: cat confdefs.h >>conftest.$ac_ext
3769: cat >>conftest.$ac_ext <<_ACEOF
3770: /* end confdefs.h. */
3771: $ac_includes_default
3772: #include <$ac_header>
3773: _ACEOF
3774: rm -f conftest.$ac_objext
3775: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776: (eval $ac_compile) 2>&5
3777: ac_status=$?
3778: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779: (exit $ac_status); } &&
3780: { ac_try='test -s conftest.$ac_objext'
3781: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782: (eval $ac_try) 2>&5
3783: ac_status=$?
3784: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785: (exit $ac_status); }; }; then
3786: ac_header_compiler=yes
3787: else
3788: echo "$as_me: failed program was:" >&5
3789: sed 's/^/| /' conftest.$ac_ext >&5
3790:
3791: ac_header_compiler=no
3792: fi
3793: rm -f conftest.$ac_objext conftest.$ac_ext
3794: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795: echo "${ECHO_T}$ac_header_compiler" >&6
3796:
3797: # Is the header present?
3798: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3799: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3800: cat >conftest.$ac_ext <<_ACEOF
3801: #line $LINENO "configure"
3802: /* confdefs.h. */
3803: _ACEOF
3804: cat confdefs.h >>conftest.$ac_ext
3805: cat >>conftest.$ac_ext <<_ACEOF
3806: /* end confdefs.h. */
3807: #include <$ac_header>
3808: _ACEOF
3809: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811: ac_status=$?
3812: grep -v '^ *+' conftest.er1 >conftest.err
3813: rm -f conftest.er1
3814: cat conftest.err >&5
3815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816: (exit $ac_status); } >/dev/null; then
3817: if test -s conftest.err; then
3818: ac_cpp_err=$ac_c_preproc_warn_flag
3819: else
3820: ac_cpp_err=
3821: fi
3822: else
3823: ac_cpp_err=yes
3824: fi
3825: if test -z "$ac_cpp_err"; then
3826: ac_header_preproc=yes
3827: else
3828: echo "$as_me: failed program was:" >&5
3829: sed 's/^/| /' conftest.$ac_ext >&5
3830:
3831: ac_header_preproc=no
3832: fi
3833: rm -f conftest.err conftest.$ac_ext
3834: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835: echo "${ECHO_T}$ac_header_preproc" >&6
3836:
3837: # So? What about this header?
3838: case $ac_header_compiler:$ac_header_preproc in
3839: yes:no )
3840: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3841: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3843: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3844: (
3845: cat <<\_ASBOX
3846: ## ------------------------------------ ##
3847: ## Report this to [email protected]. ##
3848: ## ------------------------------------ ##
3849: _ASBOX
3850: ) |
3851: sed "s/^/$as_me: WARNING: /" >&2
3852: ;;
3853: no:yes )
3854: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3855: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3856: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3857: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3858: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3859: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3860: (
3861: cat <<\_ASBOX
3862: ## ------------------------------------ ##
3863: ## Report this to [email protected]. ##
3864: ## ------------------------------------ ##
3865: _ASBOX
3866: ) |
3867: sed "s/^/$as_me: WARNING: /" >&2
3868: ;;
3869: esac
3870: echo "$as_me:$LINENO: checking for $ac_header" >&5
3871: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3872: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3873: echo $ECHO_N "(cached) $ECHO_C" >&6
3874: else
3875: eval "$as_ac_Header=$ac_header_preproc"
3876: fi
3877: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879:
3880: fi
3881: if test `eval echo '${'$as_ac_Header'}'` = yes; then
3882: cat >>confdefs.h <<_ACEOF
3883: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3884: _ACEOF
3885:
3886: fi
3887:
3888: done
3889:
3890:
1.1.1.3 root 3891: for ac_header in sys/bswap.h
3892: do
3893: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3894: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895: echo "$as_me:$LINENO: checking for $ac_header" >&5
3896: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3897: if eval "test \"\${$as_ac_Header+set}\" = set"; then
3898: echo $ECHO_N "(cached) $ECHO_C" >&6
3899: fi
3900: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3901: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3902: else
3903: # Is the header compilable?
3904: echo "$as_me:$LINENO: checking $ac_header usability" >&5
3905: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3906: cat >conftest.$ac_ext <<_ACEOF
3907: #line $LINENO "configure"
3908: /* confdefs.h. */
3909: _ACEOF
3910: cat confdefs.h >>conftest.$ac_ext
3911: cat >>conftest.$ac_ext <<_ACEOF
3912: /* end confdefs.h. */
3913: $ac_includes_default
3914: #include <$ac_header>
3915: _ACEOF
3916: rm -f conftest.$ac_objext
3917: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918: (eval $ac_compile) 2>&5
3919: ac_status=$?
3920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921: (exit $ac_status); } &&
3922: { ac_try='test -s conftest.$ac_objext'
3923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924: (eval $ac_try) 2>&5
3925: ac_status=$?
3926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927: (exit $ac_status); }; }; then
3928: ac_header_compiler=yes
3929: else
3930: echo "$as_me: failed program was:" >&5
3931: sed 's/^/| /' conftest.$ac_ext >&5
3932:
3933: ac_header_compiler=no
3934: fi
3935: rm -f conftest.$ac_objext conftest.$ac_ext
3936: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3937: echo "${ECHO_T}$ac_header_compiler" >&6
3938:
3939: # Is the header present?
3940: echo "$as_me:$LINENO: checking $ac_header presence" >&5
3941: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3942: cat >conftest.$ac_ext <<_ACEOF
3943: #line $LINENO "configure"
3944: /* confdefs.h. */
3945: _ACEOF
3946: cat confdefs.h >>conftest.$ac_ext
3947: cat >>conftest.$ac_ext <<_ACEOF
3948: /* end confdefs.h. */
3949: #include <$ac_header>
3950: _ACEOF
3951: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953: ac_status=$?
3954: grep -v '^ *+' conftest.er1 >conftest.err
3955: rm -f conftest.er1
3956: cat conftest.err >&5
3957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958: (exit $ac_status); } >/dev/null; then
3959: if test -s conftest.err; then
3960: ac_cpp_err=$ac_c_preproc_warn_flag
3961: else
3962: ac_cpp_err=
3963: fi
3964: else
3965: ac_cpp_err=yes
3966: fi
3967: if test -z "$ac_cpp_err"; then
3968: ac_header_preproc=yes
3969: else
3970: echo "$as_me: failed program was:" >&5
3971: sed 's/^/| /' conftest.$ac_ext >&5
3972:
3973: ac_header_preproc=no
3974: fi
3975: rm -f conftest.err conftest.$ac_ext
3976: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3977: echo "${ECHO_T}$ac_header_preproc" >&6
3978:
3979: # So? What about this header?
3980: case $ac_header_compiler:$ac_header_preproc in
3981: yes:no )
3982: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3983: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3984: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3985: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3986: (
3987: cat <<\_ASBOX
3988: ## ------------------------------------ ##
3989: ## Report this to [email protected]. ##
3990: ## ------------------------------------ ##
3991: _ASBOX
3992: ) |
3993: sed "s/^/$as_me: WARNING: /" >&2
3994: ;;
3995: no:yes )
3996: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3997: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3998: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3999: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4000: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4001: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4002: (
4003: cat <<\_ASBOX
4004: ## ------------------------------------ ##
4005: ## Report this to [email protected]. ##
4006: ## ------------------------------------ ##
4007: _ASBOX
4008: ) |
4009: sed "s/^/$as_me: WARNING: /" >&2
4010: ;;
4011: esac
4012: echo "$as_me:$LINENO: checking for $ac_header" >&5
4013: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4014: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4015: echo $ECHO_N "(cached) $ECHO_C" >&6
4016: else
4017: eval "$as_ac_Header=$ac_header_preproc"
4018: fi
4019: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4020: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4021:
4022: fi
4023: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4024: cat >>confdefs.h <<_ACEOF
4025: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4026: _ACEOF
4027:
4028: fi
4029:
4030: done
4031:
4032:
1.1 root 4033: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4034: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4035: if test "${ac_cv_c_bigendian+set}" = set; then
4036: echo $ECHO_N "(cached) $ECHO_C" >&6
4037: else
4038: # See if sys/param.h defines the BYTE_ORDER macro.
4039: cat >conftest.$ac_ext <<_ACEOF
4040: #line $LINENO "configure"
4041: /* confdefs.h. */
4042: _ACEOF
4043: cat confdefs.h >>conftest.$ac_ext
4044: cat >>conftest.$ac_ext <<_ACEOF
4045: /* end confdefs.h. */
4046: #include <sys/types.h>
4047: #include <sys/param.h>
4048:
4049: int
4050: main ()
4051: {
4052: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4053: bogus endian macros
4054: #endif
4055:
4056: ;
4057: return 0;
4058: }
4059: _ACEOF
4060: rm -f conftest.$ac_objext
4061: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062: (eval $ac_compile) 2>&5
4063: ac_status=$?
4064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065: (exit $ac_status); } &&
4066: { ac_try='test -s conftest.$ac_objext'
4067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068: (eval $ac_try) 2>&5
4069: ac_status=$?
4070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071: (exit $ac_status); }; }; then
4072: # It does; now see whether it defined to BIG_ENDIAN or not.
4073: cat >conftest.$ac_ext <<_ACEOF
4074: #line $LINENO "configure"
4075: /* confdefs.h. */
4076: _ACEOF
4077: cat confdefs.h >>conftest.$ac_ext
4078: cat >>conftest.$ac_ext <<_ACEOF
4079: /* end confdefs.h. */
4080: #include <sys/types.h>
4081: #include <sys/param.h>
4082:
4083: int
4084: main ()
4085: {
4086: #if BYTE_ORDER != BIG_ENDIAN
4087: not big endian
4088: #endif
4089:
4090: ;
4091: return 0;
4092: }
4093: _ACEOF
4094: rm -f conftest.$ac_objext
4095: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096: (eval $ac_compile) 2>&5
4097: ac_status=$?
4098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099: (exit $ac_status); } &&
4100: { ac_try='test -s conftest.$ac_objext'
4101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102: (eval $ac_try) 2>&5
4103: ac_status=$?
4104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105: (exit $ac_status); }; }; then
4106: ac_cv_c_bigendian=yes
4107: else
4108: echo "$as_me: failed program was:" >&5
4109: sed 's/^/| /' conftest.$ac_ext >&5
4110:
4111: ac_cv_c_bigendian=no
4112: fi
4113: rm -f conftest.$ac_objext conftest.$ac_ext
4114: else
4115: echo "$as_me: failed program was:" >&5
4116: sed 's/^/| /' conftest.$ac_ext >&5
4117:
4118: # It does not; compile a test program.
4119: if test "$cross_compiling" = yes; then
4120: # try to guess the endianness by grepping values into an object file
4121: ac_cv_c_bigendian=unknown
4122: cat >conftest.$ac_ext <<_ACEOF
4123: #line $LINENO "configure"
4124: /* confdefs.h. */
4125: _ACEOF
4126: cat confdefs.h >>conftest.$ac_ext
4127: cat >>conftest.$ac_ext <<_ACEOF
4128: /* end confdefs.h. */
4129: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4130: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4131: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4132: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4133: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4134: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4135: int
4136: main ()
4137: {
4138: _ascii (); _ebcdic ();
4139: ;
4140: return 0;
4141: }
4142: _ACEOF
4143: rm -f conftest.$ac_objext
4144: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145: (eval $ac_compile) 2>&5
4146: ac_status=$?
4147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148: (exit $ac_status); } &&
4149: { ac_try='test -s conftest.$ac_objext'
4150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151: (eval $ac_try) 2>&5
4152: ac_status=$?
4153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154: (exit $ac_status); }; }; then
4155: if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4156: ac_cv_c_bigendian=yes
4157: fi
4158: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4159: if test "$ac_cv_c_bigendian" = unknown; then
4160: ac_cv_c_bigendian=no
4161: else
4162: # finding both strings is unlikely to happen, but who knows?
4163: ac_cv_c_bigendian=unknown
4164: fi
4165: fi
4166: else
4167: echo "$as_me: failed program was:" >&5
4168: sed 's/^/| /' conftest.$ac_ext >&5
4169:
4170: fi
4171: rm -f conftest.$ac_objext conftest.$ac_ext
4172: else
4173: cat >conftest.$ac_ext <<_ACEOF
4174: #line $LINENO "configure"
4175: /* confdefs.h. */
4176: _ACEOF
4177: cat confdefs.h >>conftest.$ac_ext
4178: cat >>conftest.$ac_ext <<_ACEOF
4179: /* end confdefs.h. */
4180: int
4181: main ()
4182: {
4183: /* Are we little or big endian? From Harbison&Steele. */
4184: union
4185: {
4186: long l;
4187: char c[sizeof (long)];
4188: } u;
4189: u.l = 1;
4190: exit (u.c[sizeof (long) - 1] == 1);
4191: }
4192: _ACEOF
4193: rm -f conftest$ac_exeext
4194: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4195: (eval $ac_link) 2>&5
4196: ac_status=$?
4197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200: (eval $ac_try) 2>&5
4201: ac_status=$?
4202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203: (exit $ac_status); }; }; then
4204: ac_cv_c_bigendian=no
4205: else
4206: echo "$as_me: program exited with status $ac_status" >&5
4207: echo "$as_me: failed program was:" >&5
4208: sed 's/^/| /' conftest.$ac_ext >&5
4209:
4210: ( exit $ac_status )
4211: ac_cv_c_bigendian=yes
4212: fi
4213: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4214: fi
4215: fi
4216: rm -f conftest.$ac_objext conftest.$ac_ext
4217: fi
4218: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4219: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4220: case $ac_cv_c_bigendian in
4221: yes)
4222:
4223: cat >>confdefs.h <<\_ACEOF
4224: #define WORDS_BIGENDIAN 1
4225: _ACEOF
4226: ;;
4227: no)
4228: ;;
4229: *)
4230: { { echo "$as_me:$LINENO: error: unknown endianness
4231: presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4232: echo "$as_me: error: unknown endianness
4233: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4234: { (exit 1); exit 1; }; } ;;
4235: esac
4236:
4237: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4238: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4239: if test "${ac_cv_c_const+set}" = set; then
4240: echo $ECHO_N "(cached) $ECHO_C" >&6
4241: else
4242: cat >conftest.$ac_ext <<_ACEOF
4243: #line $LINENO "configure"
4244: /* confdefs.h. */
4245: _ACEOF
4246: cat confdefs.h >>conftest.$ac_ext
4247: cat >>conftest.$ac_ext <<_ACEOF
4248: /* end confdefs.h. */
4249:
4250: int
4251: main ()
4252: {
4253: /* FIXME: Include the comments suggested by Paul. */
4254: #ifndef __cplusplus
4255: /* Ultrix mips cc rejects this. */
4256: typedef int charset[2];
4257: const charset x;
4258: /* SunOS 4.1.1 cc rejects this. */
4259: char const *const *ccp;
4260: char **p;
4261: /* NEC SVR4.0.2 mips cc rejects this. */
4262: struct point {int x, y;};
4263: static struct point const zero = {0,0};
4264: /* AIX XL C 1.02.0.0 rejects this.
4265: It does not let you subtract one const X* pointer from another in
4266: an arm of an if-expression whose if-part is not a constant
4267: expression */
4268: const char *g = "string";
4269: ccp = &g + (g ? g-g : 0);
4270: /* HPUX 7.0 cc rejects these. */
4271: ++ccp;
4272: p = (char**) ccp;
4273: ccp = (char const *const *) p;
4274: { /* SCO 3.2v4 cc rejects this. */
4275: char *t;
4276: char const *s = 0 ? (char *) 0 : (char const *) 0;
4277:
4278: *t++ = 0;
4279: }
4280: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4281: int x[] = {25, 17};
4282: const int *foo = &x[0];
4283: ++foo;
4284: }
4285: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4286: typedef const int *iptr;
4287: iptr p = 0;
4288: ++p;
4289: }
4290: { /* AIX XL C 1.02.0.0 rejects this saying
4291: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4292: struct s { int j; const int *ap[3]; };
4293: struct s *b; b->j = 5;
4294: }
4295: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4296: const int foo = 10;
4297: }
4298: #endif
4299:
4300: ;
4301: return 0;
4302: }
4303: _ACEOF
4304: rm -f conftest.$ac_objext
4305: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306: (eval $ac_compile) 2>&5
4307: ac_status=$?
4308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309: (exit $ac_status); } &&
4310: { ac_try='test -s conftest.$ac_objext'
4311: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312: (eval $ac_try) 2>&5
4313: ac_status=$?
4314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315: (exit $ac_status); }; }; then
4316: ac_cv_c_const=yes
4317: else
4318: echo "$as_me: failed program was:" >&5
4319: sed 's/^/| /' conftest.$ac_ext >&5
4320:
4321: ac_cv_c_const=no
4322: fi
4323: rm -f conftest.$ac_objext conftest.$ac_ext
4324: fi
4325: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4326: echo "${ECHO_T}$ac_cv_c_const" >&6
4327: if test $ac_cv_c_const = no; then
4328:
4329: cat >>confdefs.h <<\_ACEOF
4330: #define const
4331: _ACEOF
4332:
4333: fi
4334:
4335: echo "$as_me:$LINENO: checking for inline" >&5
4336: echo $ECHO_N "checking for inline... $ECHO_C" >&6
4337: if test "${ac_cv_c_inline+set}" = set; then
4338: echo $ECHO_N "(cached) $ECHO_C" >&6
4339: else
4340: ac_cv_c_inline=no
4341: for ac_kw in inline __inline__ __inline; do
4342: cat >conftest.$ac_ext <<_ACEOF
4343: #line $LINENO "configure"
4344: /* confdefs.h. */
4345: _ACEOF
4346: cat confdefs.h >>conftest.$ac_ext
4347: cat >>conftest.$ac_ext <<_ACEOF
4348: /* end confdefs.h. */
4349: #ifndef __cplusplus
4350: typedef int foo_t;
4351: static $ac_kw foo_t static_foo () {return 0; }
4352: $ac_kw foo_t foo () {return 0; }
4353: #endif
4354:
4355: _ACEOF
4356: rm -f conftest.$ac_objext
4357: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358: (eval $ac_compile) 2>&5
4359: ac_status=$?
4360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361: (exit $ac_status); } &&
4362: { ac_try='test -s conftest.$ac_objext'
4363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364: (eval $ac_try) 2>&5
4365: ac_status=$?
4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367: (exit $ac_status); }; }; then
4368: ac_cv_c_inline=$ac_kw; break
4369: else
4370: echo "$as_me: failed program was:" >&5
4371: sed 's/^/| /' conftest.$ac_ext >&5
4372:
4373: fi
4374: rm -f conftest.$ac_objext conftest.$ac_ext
4375: done
4376:
4377: fi
4378: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4379: echo "${ECHO_T}$ac_cv_c_inline" >&6
4380: case $ac_cv_c_inline in
4381: inline | yes) ;;
4382: no)
4383: cat >>confdefs.h <<\_ACEOF
4384: #define inline
4385: _ACEOF
4386: ;;
4387: *) cat >>confdefs.h <<_ACEOF
4388: #define inline $ac_cv_c_inline
4389: _ACEOF
4390: ;;
4391: esac
4392:
1.1.1.3 root 4393: echo "$as_me:$LINENO: checking for working volatile" >&5
4394: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4395: if test "${ac_cv_c_volatile+set}" = set; then
1.1.1.2 root 4396: echo $ECHO_N "(cached) $ECHO_C" >&6
4397: else
4398: cat >conftest.$ac_ext <<_ACEOF
4399: #line $LINENO "configure"
4400: /* confdefs.h. */
4401: _ACEOF
4402: cat confdefs.h >>conftest.$ac_ext
4403: cat >>conftest.$ac_ext <<_ACEOF
4404: /* end confdefs.h. */
1.1.1.3 root 4405:
1.1.1.2 root 4406: int
4407: main ()
4408: {
1.1.1.3 root 4409:
4410: volatile int x;
4411: int * volatile y;
1.1.1.2 root 4412: ;
4413: return 0;
4414: }
4415: _ACEOF
4416: rm -f conftest.$ac_objext
4417: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418: (eval $ac_compile) 2>&5
4419: ac_status=$?
4420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421: (exit $ac_status); } &&
4422: { ac_try='test -s conftest.$ac_objext'
4423: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424: (eval $ac_try) 2>&5
4425: ac_status=$?
4426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427: (exit $ac_status); }; }; then
1.1.1.3 root 4428: ac_cv_c_volatile=yes
1.1.1.2 root 4429: else
4430: echo "$as_me: failed program was:" >&5
4431: sed 's/^/| /' conftest.$ac_ext >&5
4432:
1.1.1.3 root 4433: ac_cv_c_volatile=no
1.1.1.2 root 4434: fi
4435: rm -f conftest.$ac_objext conftest.$ac_ext
4436: fi
1.1.1.3 root 4437: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4438: echo "${ECHO_T}$ac_cv_c_volatile" >&6
4439: if test $ac_cv_c_volatile = no; then
1.1.1.2 root 4440:
1.1.1.3 root 4441: cat >>confdefs.h <<\_ACEOF
4442: #define volatile
1.1.1.2 root 4443: _ACEOF
4444:
4445: fi
4446:
1.1.1.3 root 4447: echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
4448: echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
4449: if test "${ac_cv_c_long_double+set}" = set; then
1.1 root 4450: echo $ECHO_N "(cached) $ECHO_C" >&6
4451: else
4452: cat >conftest.$ac_ext <<_ACEOF
4453: #line $LINENO "configure"
4454: /* confdefs.h. */
4455: _ACEOF
4456: cat confdefs.h >>conftest.$ac_ext
4457: cat >>conftest.$ac_ext <<_ACEOF
4458: /* end confdefs.h. */
1.1.1.3 root 4459: #include <float.h>
4460: long double foo = 0.0;
1.1 root 4461: int
4462: main ()
4463: {
1.1.1.3 root 4464: static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
4465: (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
4466: | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
4467: test_array [0] = 0
4468:
1.1 root 4469: ;
4470: return 0;
4471: }
4472: _ACEOF
4473: rm -f conftest.$ac_objext
4474: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475: (eval $ac_compile) 2>&5
4476: ac_status=$?
4477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478: (exit $ac_status); } &&
4479: { ac_try='test -s conftest.$ac_objext'
4480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481: (eval $ac_try) 2>&5
4482: ac_status=$?
4483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484: (exit $ac_status); }; }; then
1.1.1.3 root 4485: ac_cv_c_long_double=yes
1.1 root 4486: else
4487: echo "$as_me: failed program was:" >&5
4488: sed 's/^/| /' conftest.$ac_ext >&5
4489:
1.1.1.3 root 4490: ac_cv_c_long_double=no
1.1 root 4491: fi
4492: rm -f conftest.$ac_objext conftest.$ac_ext
4493: fi
1.1.1.3 root 4494: echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
4495: echo "${ECHO_T}$ac_cv_c_long_double" >&6
4496: if test $ac_cv_c_long_double = yes; then
1.1 root 4497:
1.1.1.3 root 4498: cat >>confdefs.h <<\_ACEOF
4499: #define HAVE_LONG_DOUBLE 1
4500: _ACEOF
4501:
4502: fi
4503:
4504: echo "$as_me:$LINENO: checking for size_t" >&5
4505: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4506: if test "${ac_cv_type_size_t+set}" = set; then
1.1 root 4507: echo $ECHO_N "(cached) $ECHO_C" >&6
4508: else
1.1.1.3 root 4509: cat >conftest.$ac_ext <<_ACEOF
1.1 root 4510: #line $LINENO "configure"
4511: /* confdefs.h. */
4512: _ACEOF
4513: cat confdefs.h >>conftest.$ac_ext
4514: cat >>conftest.$ac_ext <<_ACEOF
4515: /* end confdefs.h. */
4516: $ac_includes_default
4517: int
4518: main ()
4519: {
1.1.1.3 root 4520: if ((size_t *) 0)
4521: return 0;
4522: if (sizeof (size_t))
4523: return 0;
1.1 root 4524: ;
4525: return 0;
4526: }
4527: _ACEOF
4528: rm -f conftest.$ac_objext
4529: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530: (eval $ac_compile) 2>&5
4531: ac_status=$?
4532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533: (exit $ac_status); } &&
4534: { ac_try='test -s conftest.$ac_objext'
4535: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536: (eval $ac_try) 2>&5
4537: ac_status=$?
4538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539: (exit $ac_status); }; }; then
1.1.1.3 root 4540: ac_cv_type_size_t=yes
4541: else
4542: echo "$as_me: failed program was:" >&5
4543: sed 's/^/| /' conftest.$ac_ext >&5
4544:
4545: ac_cv_type_size_t=no
4546: fi
4547: rm -f conftest.$ac_objext conftest.$ac_ext
4548: fi
4549: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4550: echo "${ECHO_T}$ac_cv_type_size_t" >&6
4551: if test $ac_cv_type_size_t = yes; then
4552: :
4553: else
4554:
4555: cat >>confdefs.h <<_ACEOF
4556: #define size_t unsigned
4557: _ACEOF
4558:
4559: fi
4560:
4561: echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4562: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4563: if test "${ac_cv_type_signal+set}" = set; then
4564: echo $ECHO_N "(cached) $ECHO_C" >&6
4565: else
4566: cat >conftest.$ac_ext <<_ACEOF
1.1 root 4567: #line $LINENO "configure"
4568: /* confdefs.h. */
4569: _ACEOF
4570: cat confdefs.h >>conftest.$ac_ext
4571: cat >>conftest.$ac_ext <<_ACEOF
4572: /* end confdefs.h. */
1.1.1.3 root 4573: #include <sys/types.h>
4574: #include <signal.h>
4575: #ifdef signal
4576: # undef signal
4577: #endif
4578: #ifdef __cplusplus
4579: extern "C" void (*signal (int, void (*)(int)))(int);
4580: #else
4581: void (*signal ()) ();
4582: #endif
4583:
1.1 root 4584: int
4585: main ()
4586: {
1.1.1.3 root 4587: int i;
1.1 root 4588: ;
4589: return 0;
4590: }
4591: _ACEOF
4592: rm -f conftest.$ac_objext
4593: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594: (eval $ac_compile) 2>&5
4595: ac_status=$?
4596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597: (exit $ac_status); } &&
4598: { ac_try='test -s conftest.$ac_objext'
4599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600: (eval $ac_try) 2>&5
4601: ac_status=$?
4602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603: (exit $ac_status); }; }; then
1.1.1.3 root 4604: ac_cv_type_signal=void
1.1 root 4605: else
4606: echo "$as_me: failed program was:" >&5
4607: sed 's/^/| /' conftest.$ac_ext >&5
4608:
1.1.1.3 root 4609: ac_cv_type_signal=int
1.1 root 4610: fi
4611: rm -f conftest.$ac_objext conftest.$ac_ext
1.1.1.3 root 4612: fi
4613: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4614: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1 root 4615:
1.1.1.3 root 4616: cat >>confdefs.h <<_ACEOF
4617: #define RETSIGTYPE $ac_cv_type_signal
4618: _ACEOF
4619:
4620:
4621: echo "$as_me:$LINENO: checking for long" >&5
4622: echo $ECHO_N "checking for long... $ECHO_C" >&6
4623: if test "${ac_cv_type_long+set}" = set; then
4624: echo $ECHO_N "(cached) $ECHO_C" >&6
4625: else
4626: cat >conftest.$ac_ext <<_ACEOF
4627: #line $LINENO "configure"
4628: /* confdefs.h. */
4629: _ACEOF
4630: cat confdefs.h >>conftest.$ac_ext
4631: cat >>conftest.$ac_ext <<_ACEOF
4632: /* end confdefs.h. */
4633: $ac_includes_default
4634: int
4635: main ()
4636: {
4637: if ((long *) 0)
4638: return 0;
4639: if (sizeof (long))
4640: return 0;
4641: ;
4642: return 0;
4643: }
4644: _ACEOF
4645: rm -f conftest.$ac_objext
4646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647: (eval $ac_compile) 2>&5
4648: ac_status=$?
4649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650: (exit $ac_status); } &&
4651: { ac_try='test -s conftest.$ac_objext'
4652: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653: (eval $ac_try) 2>&5
4654: ac_status=$?
4655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656: (exit $ac_status); }; }; then
4657: ac_cv_type_long=yes
4658: else
4659: echo "$as_me: failed program was:" >&5
4660: sed 's/^/| /' conftest.$ac_ext >&5
4661:
4662: ac_cv_type_long=no
4663: fi
4664: rm -f conftest.$ac_objext conftest.$ac_ext
4665: fi
4666: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4667: echo "${ECHO_T}$ac_cv_type_long" >&6
4668:
4669: echo "$as_me:$LINENO: checking size of long" >&5
4670: echo $ECHO_N "checking size of long... $ECHO_C" >&6
4671: if test "${ac_cv_sizeof_long+set}" = set; then
4672: echo $ECHO_N "(cached) $ECHO_C" >&6
4673: else
4674: if test "$ac_cv_type_long" = yes; then
4675: # The cast to unsigned long works around a bug in the HP C Compiler
4676: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4677: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4678: # This bug is HP SR number 8606223364.
4679: if test "$cross_compiling" = yes; then
4680: # Depending upon the size, compute the lo and hi bounds.
4681: cat >conftest.$ac_ext <<_ACEOF
4682: #line $LINENO "configure"
4683: /* confdefs.h. */
4684: _ACEOF
4685: cat confdefs.h >>conftest.$ac_ext
4686: cat >>conftest.$ac_ext <<_ACEOF
4687: /* end confdefs.h. */
4688: $ac_includes_default
4689: int
4690: main ()
4691: {
4692: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4693: test_array [0] = 0
4694:
4695: ;
4696: return 0;
4697: }
4698: _ACEOF
4699: rm -f conftest.$ac_objext
4700: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701: (eval $ac_compile) 2>&5
4702: ac_status=$?
4703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704: (exit $ac_status); } &&
4705: { ac_try='test -s conftest.$ac_objext'
4706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707: (eval $ac_try) 2>&5
4708: ac_status=$?
4709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710: (exit $ac_status); }; }; then
4711: ac_lo=0 ac_mid=0
4712: while :; do
4713: cat >conftest.$ac_ext <<_ACEOF
4714: #line $LINENO "configure"
4715: /* confdefs.h. */
4716: _ACEOF
4717: cat confdefs.h >>conftest.$ac_ext
4718: cat >>conftest.$ac_ext <<_ACEOF
4719: /* end confdefs.h. */
4720: $ac_includes_default
4721: int
4722: main ()
4723: {
4724: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4725: test_array [0] = 0
4726:
4727: ;
4728: return 0;
4729: }
4730: _ACEOF
4731: rm -f conftest.$ac_objext
4732: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733: (eval $ac_compile) 2>&5
4734: ac_status=$?
4735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736: (exit $ac_status); } &&
4737: { ac_try='test -s conftest.$ac_objext'
4738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739: (eval $ac_try) 2>&5
4740: ac_status=$?
4741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742: (exit $ac_status); }; }; then
4743: ac_hi=$ac_mid; break
4744: else
4745: echo "$as_me: failed program was:" >&5
4746: sed 's/^/| /' conftest.$ac_ext >&5
4747:
4748: ac_lo=`expr $ac_mid + 1`
4749: if test $ac_lo -le $ac_mid; then
4750: ac_lo= ac_hi=
4751: break
4752: fi
4753: ac_mid=`expr 2 '*' $ac_mid + 1`
4754: fi
4755: rm -f conftest.$ac_objext conftest.$ac_ext
4756: done
4757: else
4758: echo "$as_me: failed program was:" >&5
4759: sed 's/^/| /' conftest.$ac_ext >&5
4760:
4761: cat >conftest.$ac_ext <<_ACEOF
4762: #line $LINENO "configure"
1.1 root 4763: /* confdefs.h. */
4764: _ACEOF
4765: cat confdefs.h >>conftest.$ac_ext
4766: cat >>conftest.$ac_ext <<_ACEOF
4767: /* end confdefs.h. */
4768: $ac_includes_default
4769: int
4770: main ()
4771: {
4772: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4773: test_array [0] = 0
4774:
4775: ;
4776: return 0;
4777: }
4778: _ACEOF
4779: rm -f conftest.$ac_objext
4780: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781: (eval $ac_compile) 2>&5
4782: ac_status=$?
4783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784: (exit $ac_status); } &&
4785: { ac_try='test -s conftest.$ac_objext'
4786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787: (eval $ac_try) 2>&5
4788: ac_status=$?
4789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790: (exit $ac_status); }; }; then
4791: ac_hi=-1 ac_mid=-1
4792: while :; do
4793: cat >conftest.$ac_ext <<_ACEOF
4794: #line $LINENO "configure"
4795: /* confdefs.h. */
4796: _ACEOF
4797: cat confdefs.h >>conftest.$ac_ext
4798: cat >>conftest.$ac_ext <<_ACEOF
4799: /* end confdefs.h. */
4800: $ac_includes_default
4801: int
4802: main ()
4803: {
4804: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4805: test_array [0] = 0
4806:
4807: ;
4808: return 0;
4809: }
4810: _ACEOF
4811: rm -f conftest.$ac_objext
4812: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813: (eval $ac_compile) 2>&5
4814: ac_status=$?
4815: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816: (exit $ac_status); } &&
4817: { ac_try='test -s conftest.$ac_objext'
4818: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819: (eval $ac_try) 2>&5
4820: ac_status=$?
4821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822: (exit $ac_status); }; }; then
4823: ac_lo=$ac_mid; break
4824: else
4825: echo "$as_me: failed program was:" >&5
4826: sed 's/^/| /' conftest.$ac_ext >&5
4827:
4828: ac_hi=`expr '(' $ac_mid ')' - 1`
4829: if test $ac_mid -le $ac_hi; then
4830: ac_lo= ac_hi=
4831: break
4832: fi
4833: ac_mid=`expr 2 '*' $ac_mid`
4834: fi
4835: rm -f conftest.$ac_objext conftest.$ac_ext
4836: done
4837: else
4838: echo "$as_me: failed program was:" >&5
4839: sed 's/^/| /' conftest.$ac_ext >&5
4840:
4841: ac_lo= ac_hi=
4842: fi
4843: rm -f conftest.$ac_objext conftest.$ac_ext
4844: fi
4845: rm -f conftest.$ac_objext conftest.$ac_ext
4846: # Binary search between lo and hi bounds.
4847: while test "x$ac_lo" != "x$ac_hi"; do
4848: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4849: cat >conftest.$ac_ext <<_ACEOF
4850: #line $LINENO "configure"
4851: /* confdefs.h. */
4852: _ACEOF
4853: cat confdefs.h >>conftest.$ac_ext
4854: cat >>conftest.$ac_ext <<_ACEOF
4855: /* end confdefs.h. */
4856: $ac_includes_default
4857: int
4858: main ()
4859: {
4860: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4861: test_array [0] = 0
4862:
4863: ;
4864: return 0;
4865: }
4866: _ACEOF
4867: rm -f conftest.$ac_objext
4868: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869: (eval $ac_compile) 2>&5
4870: ac_status=$?
4871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872: (exit $ac_status); } &&
4873: { ac_try='test -s conftest.$ac_objext'
4874: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875: (eval $ac_try) 2>&5
4876: ac_status=$?
4877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878: (exit $ac_status); }; }; then
4879: ac_hi=$ac_mid
4880: else
4881: echo "$as_me: failed program was:" >&5
4882: sed 's/^/| /' conftest.$ac_ext >&5
4883:
4884: ac_lo=`expr '(' $ac_mid ')' + 1`
4885: fi
4886: rm -f conftest.$ac_objext conftest.$ac_ext
4887: done
4888: case $ac_lo in
4889: ?*) ac_cv_sizeof_long=$ac_lo;;
4890: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4891: See \`config.log' for more details." >&5
4892: echo "$as_me: error: cannot compute sizeof (long), 77
4893: See \`config.log' for more details." >&2;}
4894: { (exit 1); exit 1; }; } ;;
4895: esac
4896: else
4897: if test "$cross_compiling" = yes; then
4898: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4899: See \`config.log' for more details." >&5
4900: echo "$as_me: error: cannot run test program while cross compiling
4901: See \`config.log' for more details." >&2;}
4902: { (exit 1); exit 1; }; }
4903: else
4904: cat >conftest.$ac_ext <<_ACEOF
4905: #line $LINENO "configure"
4906: /* confdefs.h. */
4907: _ACEOF
4908: cat confdefs.h >>conftest.$ac_ext
4909: cat >>conftest.$ac_ext <<_ACEOF
4910: /* end confdefs.h. */
4911: $ac_includes_default
4912: long longval () { return (long) (sizeof (long)); }
4913: unsigned long ulongval () { return (long) (sizeof (long)); }
4914: #include <stdio.h>
4915: #include <stdlib.h>
4916: int
4917: main ()
4918: {
4919:
4920: FILE *f = fopen ("conftest.val", "w");
4921: if (! f)
4922: exit (1);
4923: if (((long) (sizeof (long))) < 0)
4924: {
4925: long i = longval ();
4926: if (i != ((long) (sizeof (long))))
4927: exit (1);
4928: fprintf (f, "%ld\n", i);
4929: }
4930: else
4931: {
4932: unsigned long i = ulongval ();
4933: if (i != ((long) (sizeof (long))))
4934: exit (1);
4935: fprintf (f, "%lu\n", i);
4936: }
4937: exit (ferror (f) || fclose (f) != 0);
4938:
4939: ;
4940: return 0;
4941: }
4942: _ACEOF
4943: rm -f conftest$ac_exeext
4944: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945: (eval $ac_link) 2>&5
4946: ac_status=$?
4947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950: (eval $ac_try) 2>&5
4951: ac_status=$?
4952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953: (exit $ac_status); }; }; then
4954: ac_cv_sizeof_long=`cat conftest.val`
4955: else
4956: echo "$as_me: program exited with status $ac_status" >&5
4957: echo "$as_me: failed program was:" >&5
4958: sed 's/^/| /' conftest.$ac_ext >&5
4959:
4960: ( exit $ac_status )
4961: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4962: See \`config.log' for more details." >&5
4963: echo "$as_me: error: cannot compute sizeof (long), 77
4964: See \`config.log' for more details." >&2;}
4965: { (exit 1); exit 1; }; }
4966: fi
4967: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968: fi
4969: fi
4970: rm -f conftest.val
4971: else
4972: ac_cv_sizeof_long=0
4973: fi
4974: fi
4975: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4976: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4977: cat >>confdefs.h <<_ACEOF
4978: #define SIZEOF_LONG $ac_cv_sizeof_long
4979: _ACEOF
4980:
4981:
4982: echo "$as_me:$LINENO: checking for int" >&5
4983: echo $ECHO_N "checking for int... $ECHO_C" >&6
4984: if test "${ac_cv_type_int+set}" = set; then
4985: echo $ECHO_N "(cached) $ECHO_C" >&6
4986: else
4987: cat >conftest.$ac_ext <<_ACEOF
4988: #line $LINENO "configure"
4989: /* confdefs.h. */
4990: _ACEOF
4991: cat confdefs.h >>conftest.$ac_ext
4992: cat >>conftest.$ac_ext <<_ACEOF
4993: /* end confdefs.h. */
4994: $ac_includes_default
4995: int
4996: main ()
4997: {
4998: if ((int *) 0)
4999: return 0;
5000: if (sizeof (int))
5001: return 0;
5002: ;
5003: return 0;
5004: }
5005: _ACEOF
5006: rm -f conftest.$ac_objext
5007: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008: (eval $ac_compile) 2>&5
5009: ac_status=$?
5010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011: (exit $ac_status); } &&
5012: { ac_try='test -s conftest.$ac_objext'
5013: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014: (eval $ac_try) 2>&5
5015: ac_status=$?
5016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017: (exit $ac_status); }; }; then
5018: ac_cv_type_int=yes
5019: else
5020: echo "$as_me: failed program was:" >&5
5021: sed 's/^/| /' conftest.$ac_ext >&5
5022:
5023: ac_cv_type_int=no
5024: fi
5025: rm -f conftest.$ac_objext conftest.$ac_ext
5026: fi
5027: echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5028: echo "${ECHO_T}$ac_cv_type_int" >&6
5029:
5030: echo "$as_me:$LINENO: checking size of int" >&5
5031: echo $ECHO_N "checking size of int... $ECHO_C" >&6
5032: if test "${ac_cv_sizeof_int+set}" = set; then
5033: echo $ECHO_N "(cached) $ECHO_C" >&6
5034: else
5035: if test "$ac_cv_type_int" = yes; then
5036: # The cast to unsigned long works around a bug in the HP C Compiler
5037: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5038: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5039: # This bug is HP SR number 8606223364.
5040: if test "$cross_compiling" = yes; then
5041: # Depending upon the size, compute the lo and hi bounds.
5042: cat >conftest.$ac_ext <<_ACEOF
5043: #line $LINENO "configure"
5044: /* confdefs.h. */
5045: _ACEOF
5046: cat confdefs.h >>conftest.$ac_ext
5047: cat >>conftest.$ac_ext <<_ACEOF
5048: /* end confdefs.h. */
5049: $ac_includes_default
5050: int
5051: main ()
5052: {
5053: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5054: test_array [0] = 0
5055:
5056: ;
5057: return 0;
5058: }
5059: _ACEOF
5060: rm -f conftest.$ac_objext
5061: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062: (eval $ac_compile) 2>&5
5063: ac_status=$?
5064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065: (exit $ac_status); } &&
5066: { ac_try='test -s conftest.$ac_objext'
5067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068: (eval $ac_try) 2>&5
5069: ac_status=$?
5070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071: (exit $ac_status); }; }; then
5072: ac_lo=0 ac_mid=0
5073: while :; do
5074: cat >conftest.$ac_ext <<_ACEOF
5075: #line $LINENO "configure"
5076: /* confdefs.h. */
5077: _ACEOF
5078: cat confdefs.h >>conftest.$ac_ext
5079: cat >>conftest.$ac_ext <<_ACEOF
5080: /* end confdefs.h. */
5081: $ac_includes_default
5082: int
5083: main ()
5084: {
5085: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5086: test_array [0] = 0
5087:
5088: ;
5089: return 0;
5090: }
5091: _ACEOF
5092: rm -f conftest.$ac_objext
5093: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094: (eval $ac_compile) 2>&5
5095: ac_status=$?
5096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097: (exit $ac_status); } &&
5098: { ac_try='test -s conftest.$ac_objext'
5099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100: (eval $ac_try) 2>&5
5101: ac_status=$?
5102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103: (exit $ac_status); }; }; then
5104: ac_hi=$ac_mid; break
5105: else
5106: echo "$as_me: failed program was:" >&5
5107: sed 's/^/| /' conftest.$ac_ext >&5
5108:
5109: ac_lo=`expr $ac_mid + 1`
5110: if test $ac_lo -le $ac_mid; then
5111: ac_lo= ac_hi=
5112: break
5113: fi
5114: ac_mid=`expr 2 '*' $ac_mid + 1`
5115: fi
5116: rm -f conftest.$ac_objext conftest.$ac_ext
5117: done
5118: else
5119: echo "$as_me: failed program was:" >&5
5120: sed 's/^/| /' conftest.$ac_ext >&5
5121:
5122: cat >conftest.$ac_ext <<_ACEOF
5123: #line $LINENO "configure"
5124: /* confdefs.h. */
5125: _ACEOF
5126: cat confdefs.h >>conftest.$ac_ext
5127: cat >>conftest.$ac_ext <<_ACEOF
5128: /* end confdefs.h. */
5129: $ac_includes_default
5130: int
5131: main ()
5132: {
5133: static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5134: test_array [0] = 0
5135:
5136: ;
5137: return 0;
5138: }
5139: _ACEOF
5140: rm -f conftest.$ac_objext
5141: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142: (eval $ac_compile) 2>&5
5143: ac_status=$?
5144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145: (exit $ac_status); } &&
5146: { ac_try='test -s conftest.$ac_objext'
5147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148: (eval $ac_try) 2>&5
5149: ac_status=$?
5150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151: (exit $ac_status); }; }; then
5152: ac_hi=-1 ac_mid=-1
5153: while :; do
5154: cat >conftest.$ac_ext <<_ACEOF
5155: #line $LINENO "configure"
5156: /* confdefs.h. */
5157: _ACEOF
5158: cat confdefs.h >>conftest.$ac_ext
5159: cat >>conftest.$ac_ext <<_ACEOF
5160: /* end confdefs.h. */
5161: $ac_includes_default
5162: int
5163: main ()
5164: {
5165: static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5166: test_array [0] = 0
5167:
5168: ;
5169: return 0;
5170: }
5171: _ACEOF
5172: rm -f conftest.$ac_objext
5173: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174: (eval $ac_compile) 2>&5
5175: ac_status=$?
5176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177: (exit $ac_status); } &&
5178: { ac_try='test -s conftest.$ac_objext'
5179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180: (eval $ac_try) 2>&5
5181: ac_status=$?
5182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183: (exit $ac_status); }; }; then
5184: ac_lo=$ac_mid; break
5185: else
5186: echo "$as_me: failed program was:" >&5
5187: sed 's/^/| /' conftest.$ac_ext >&5
5188:
5189: ac_hi=`expr '(' $ac_mid ')' - 1`
5190: if test $ac_mid -le $ac_hi; then
5191: ac_lo= ac_hi=
5192: break
5193: fi
5194: ac_mid=`expr 2 '*' $ac_mid`
5195: fi
5196: rm -f conftest.$ac_objext conftest.$ac_ext
5197: done
5198: else
5199: echo "$as_me: failed program was:" >&5
5200: sed 's/^/| /' conftest.$ac_ext >&5
5201:
5202: ac_lo= ac_hi=
5203: fi
5204: rm -f conftest.$ac_objext conftest.$ac_ext
5205: fi
5206: rm -f conftest.$ac_objext conftest.$ac_ext
5207: # Binary search between lo and hi bounds.
5208: while test "x$ac_lo" != "x$ac_hi"; do
5209: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5210: cat >conftest.$ac_ext <<_ACEOF
5211: #line $LINENO "configure"
5212: /* confdefs.h. */
5213: _ACEOF
5214: cat confdefs.h >>conftest.$ac_ext
5215: cat >>conftest.$ac_ext <<_ACEOF
5216: /* end confdefs.h. */
5217: $ac_includes_default
5218: int
5219: main ()
5220: {
5221: static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5222: test_array [0] = 0
5223:
5224: ;
5225: return 0;
5226: }
5227: _ACEOF
5228: rm -f conftest.$ac_objext
5229: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230: (eval $ac_compile) 2>&5
5231: ac_status=$?
5232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233: (exit $ac_status); } &&
5234: { ac_try='test -s conftest.$ac_objext'
5235: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236: (eval $ac_try) 2>&5
5237: ac_status=$?
5238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239: (exit $ac_status); }; }; then
5240: ac_hi=$ac_mid
5241: else
5242: echo "$as_me: failed program was:" >&5
5243: sed 's/^/| /' conftest.$ac_ext >&5
5244:
5245: ac_lo=`expr '(' $ac_mid ')' + 1`
5246: fi
5247: rm -f conftest.$ac_objext conftest.$ac_ext
5248: done
5249: case $ac_lo in
5250: ?*) ac_cv_sizeof_int=$ac_lo;;
5251: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5252: See \`config.log' for more details." >&5
5253: echo "$as_me: error: cannot compute sizeof (int), 77
5254: See \`config.log' for more details." >&2;}
5255: { (exit 1); exit 1; }; } ;;
5256: esac
5257: else
5258: if test "$cross_compiling" = yes; then
5259: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5260: See \`config.log' for more details." >&5
5261: echo "$as_me: error: cannot run test program while cross compiling
5262: See \`config.log' for more details." >&2;}
5263: { (exit 1); exit 1; }; }
5264: else
5265: cat >conftest.$ac_ext <<_ACEOF
5266: #line $LINENO "configure"
5267: /* confdefs.h. */
5268: _ACEOF
5269: cat confdefs.h >>conftest.$ac_ext
5270: cat >>conftest.$ac_ext <<_ACEOF
5271: /* end confdefs.h. */
5272: $ac_includes_default
5273: long longval () { return (long) (sizeof (int)); }
5274: unsigned long ulongval () { return (long) (sizeof (int)); }
5275: #include <stdio.h>
5276: #include <stdlib.h>
5277: int
5278: main ()
5279: {
5280:
5281: FILE *f = fopen ("conftest.val", "w");
5282: if (! f)
5283: exit (1);
5284: if (((long) (sizeof (int))) < 0)
5285: {
5286: long i = longval ();
5287: if (i != ((long) (sizeof (int))))
5288: exit (1);
5289: fprintf (f, "%ld\n", i);
5290: }
5291: else
5292: {
5293: unsigned long i = ulongval ();
5294: if (i != ((long) (sizeof (int))))
5295: exit (1);
5296: fprintf (f, "%lu\n", i);
5297: }
5298: exit (ferror (f) || fclose (f) != 0);
5299:
5300: ;
5301: return 0;
5302: }
5303: _ACEOF
5304: rm -f conftest$ac_exeext
5305: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306: (eval $ac_link) 2>&5
5307: ac_status=$?
5308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311: (eval $ac_try) 2>&5
5312: ac_status=$?
5313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314: (exit $ac_status); }; }; then
5315: ac_cv_sizeof_int=`cat conftest.val`
5316: else
5317: echo "$as_me: program exited with status $ac_status" >&5
5318: echo "$as_me: failed program was:" >&5
5319: sed 's/^/| /' conftest.$ac_ext >&5
5320:
5321: ( exit $ac_status )
5322: { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5323: See \`config.log' for more details." >&5
5324: echo "$as_me: error: cannot compute sizeof (int), 77
5325: See \`config.log' for more details." >&2;}
5326: { (exit 1); exit 1; }; }
5327: fi
5328: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5329: fi
5330: fi
5331: rm -f conftest.val
5332: else
5333: ac_cv_sizeof_int=0
5334: fi
5335: fi
5336: echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5337: echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5338: cat >>confdefs.h <<_ACEOF
5339: #define SIZEOF_INT $ac_cv_sizeof_int
5340: _ACEOF
5341:
5342:
5343: echo "$as_me:$LINENO: checking for short" >&5
5344: echo $ECHO_N "checking for short... $ECHO_C" >&6
5345: if test "${ac_cv_type_short+set}" = set; then
5346: echo $ECHO_N "(cached) $ECHO_C" >&6
5347: else
5348: cat >conftest.$ac_ext <<_ACEOF
5349: #line $LINENO "configure"
5350: /* confdefs.h. */
5351: _ACEOF
5352: cat confdefs.h >>conftest.$ac_ext
5353: cat >>conftest.$ac_ext <<_ACEOF
5354: /* end confdefs.h. */
5355: $ac_includes_default
5356: int
5357: main ()
5358: {
5359: if ((short *) 0)
5360: return 0;
5361: if (sizeof (short))
5362: return 0;
5363: ;
5364: return 0;
5365: }
5366: _ACEOF
5367: rm -f conftest.$ac_objext
5368: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369: (eval $ac_compile) 2>&5
5370: ac_status=$?
5371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372: (exit $ac_status); } &&
5373: { ac_try='test -s conftest.$ac_objext'
5374: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375: (eval $ac_try) 2>&5
5376: ac_status=$?
5377: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378: (exit $ac_status); }; }; then
5379: ac_cv_type_short=yes
5380: else
5381: echo "$as_me: failed program was:" >&5
5382: sed 's/^/| /' conftest.$ac_ext >&5
5383:
5384: ac_cv_type_short=no
5385: fi
5386: rm -f conftest.$ac_objext conftest.$ac_ext
5387: fi
5388: echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5389: echo "${ECHO_T}$ac_cv_type_short" >&6
5390:
5391: echo "$as_me:$LINENO: checking size of short" >&5
5392: echo $ECHO_N "checking size of short... $ECHO_C" >&6
5393: if test "${ac_cv_sizeof_short+set}" = set; then
5394: echo $ECHO_N "(cached) $ECHO_C" >&6
5395: else
5396: if test "$ac_cv_type_short" = yes; then
5397: # The cast to unsigned long works around a bug in the HP C Compiler
5398: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400: # This bug is HP SR number 8606223364.
5401: if test "$cross_compiling" = yes; then
5402: # Depending upon the size, compute the lo and hi bounds.
5403: cat >conftest.$ac_ext <<_ACEOF
5404: #line $LINENO "configure"
5405: /* confdefs.h. */
5406: _ACEOF
5407: cat confdefs.h >>conftest.$ac_ext
5408: cat >>conftest.$ac_ext <<_ACEOF
5409: /* end confdefs.h. */
5410: $ac_includes_default
5411: int
5412: main ()
5413: {
5414: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5415: test_array [0] = 0
5416:
5417: ;
5418: return 0;
5419: }
5420: _ACEOF
5421: rm -f conftest.$ac_objext
5422: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423: (eval $ac_compile) 2>&5
5424: ac_status=$?
5425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426: (exit $ac_status); } &&
5427: { ac_try='test -s conftest.$ac_objext'
5428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429: (eval $ac_try) 2>&5
5430: ac_status=$?
5431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432: (exit $ac_status); }; }; then
5433: ac_lo=0 ac_mid=0
5434: while :; do
5435: cat >conftest.$ac_ext <<_ACEOF
5436: #line $LINENO "configure"
5437: /* confdefs.h. */
5438: _ACEOF
5439: cat confdefs.h >>conftest.$ac_ext
5440: cat >>conftest.$ac_ext <<_ACEOF
5441: /* end confdefs.h. */
5442: $ac_includes_default
5443: int
5444: main ()
5445: {
5446: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5447: test_array [0] = 0
5448:
5449: ;
5450: return 0;
5451: }
5452: _ACEOF
5453: rm -f conftest.$ac_objext
5454: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455: (eval $ac_compile) 2>&5
5456: ac_status=$?
5457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458: (exit $ac_status); } &&
5459: { ac_try='test -s conftest.$ac_objext'
5460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461: (eval $ac_try) 2>&5
5462: ac_status=$?
5463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464: (exit $ac_status); }; }; then
5465: ac_hi=$ac_mid; break
5466: else
5467: echo "$as_me: failed program was:" >&5
5468: sed 's/^/| /' conftest.$ac_ext >&5
5469:
5470: ac_lo=`expr $ac_mid + 1`
5471: if test $ac_lo -le $ac_mid; then
5472: ac_lo= ac_hi=
5473: break
5474: fi
5475: ac_mid=`expr 2 '*' $ac_mid + 1`
5476: fi
5477: rm -f conftest.$ac_objext conftest.$ac_ext
5478: done
5479: else
5480: echo "$as_me: failed program was:" >&5
5481: sed 's/^/| /' conftest.$ac_ext >&5
5482:
5483: cat >conftest.$ac_ext <<_ACEOF
5484: #line $LINENO "configure"
5485: /* confdefs.h. */
5486: _ACEOF
5487: cat confdefs.h >>conftest.$ac_ext
5488: cat >>conftest.$ac_ext <<_ACEOF
5489: /* end confdefs.h. */
5490: $ac_includes_default
5491: int
5492: main ()
5493: {
5494: static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5495: test_array [0] = 0
5496:
5497: ;
5498: return 0;
5499: }
5500: _ACEOF
5501: rm -f conftest.$ac_objext
5502: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5503: (eval $ac_compile) 2>&5
5504: ac_status=$?
5505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506: (exit $ac_status); } &&
5507: { ac_try='test -s conftest.$ac_objext'
5508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509: (eval $ac_try) 2>&5
5510: ac_status=$?
5511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512: (exit $ac_status); }; }; then
5513: ac_hi=-1 ac_mid=-1
5514: while :; do
5515: cat >conftest.$ac_ext <<_ACEOF
5516: #line $LINENO "configure"
5517: /* confdefs.h. */
5518: _ACEOF
5519: cat confdefs.h >>conftest.$ac_ext
5520: cat >>conftest.$ac_ext <<_ACEOF
5521: /* end confdefs.h. */
5522: $ac_includes_default
5523: int
5524: main ()
5525: {
5526: static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5527: test_array [0] = 0
5528:
5529: ;
5530: return 0;
5531: }
5532: _ACEOF
5533: rm -f conftest.$ac_objext
5534: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535: (eval $ac_compile) 2>&5
5536: ac_status=$?
5537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538: (exit $ac_status); } &&
5539: { ac_try='test -s conftest.$ac_objext'
5540: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541: (eval $ac_try) 2>&5
5542: ac_status=$?
5543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544: (exit $ac_status); }; }; then
5545: ac_lo=$ac_mid; break
5546: else
5547: echo "$as_me: failed program was:" >&5
5548: sed 's/^/| /' conftest.$ac_ext >&5
5549:
5550: ac_hi=`expr '(' $ac_mid ')' - 1`
5551: if test $ac_mid -le $ac_hi; then
5552: ac_lo= ac_hi=
5553: break
5554: fi
5555: ac_mid=`expr 2 '*' $ac_mid`
5556: fi
5557: rm -f conftest.$ac_objext conftest.$ac_ext
5558: done
5559: else
5560: echo "$as_me: failed program was:" >&5
5561: sed 's/^/| /' conftest.$ac_ext >&5
5562:
5563: ac_lo= ac_hi=
5564: fi
5565: rm -f conftest.$ac_objext conftest.$ac_ext
5566: fi
5567: rm -f conftest.$ac_objext conftest.$ac_ext
5568: # Binary search between lo and hi bounds.
5569: while test "x$ac_lo" != "x$ac_hi"; do
5570: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5571: cat >conftest.$ac_ext <<_ACEOF
5572: #line $LINENO "configure"
5573: /* confdefs.h. */
5574: _ACEOF
5575: cat confdefs.h >>conftest.$ac_ext
5576: cat >>conftest.$ac_ext <<_ACEOF
5577: /* end confdefs.h. */
5578: $ac_includes_default
5579: int
5580: main ()
5581: {
5582: static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5583: test_array [0] = 0
5584:
5585: ;
5586: return 0;
5587: }
5588: _ACEOF
5589: rm -f conftest.$ac_objext
5590: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591: (eval $ac_compile) 2>&5
5592: ac_status=$?
5593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594: (exit $ac_status); } &&
5595: { ac_try='test -s conftest.$ac_objext'
5596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597: (eval $ac_try) 2>&5
5598: ac_status=$?
5599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600: (exit $ac_status); }; }; then
5601: ac_hi=$ac_mid
5602: else
5603: echo "$as_me: failed program was:" >&5
5604: sed 's/^/| /' conftest.$ac_ext >&5
5605:
5606: ac_lo=`expr '(' $ac_mid ')' + 1`
5607: fi
5608: rm -f conftest.$ac_objext conftest.$ac_ext
5609: done
5610: case $ac_lo in
5611: ?*) ac_cv_sizeof_short=$ac_lo;;
5612: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5613: See \`config.log' for more details." >&5
5614: echo "$as_me: error: cannot compute sizeof (short), 77
5615: See \`config.log' for more details." >&2;}
5616: { (exit 1); exit 1; }; } ;;
5617: esac
5618: else
5619: if test "$cross_compiling" = yes; then
5620: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5621: See \`config.log' for more details." >&5
5622: echo "$as_me: error: cannot run test program while cross compiling
5623: See \`config.log' for more details." >&2;}
5624: { (exit 1); exit 1; }; }
5625: else
5626: cat >conftest.$ac_ext <<_ACEOF
5627: #line $LINENO "configure"
5628: /* confdefs.h. */
5629: _ACEOF
5630: cat confdefs.h >>conftest.$ac_ext
5631: cat >>conftest.$ac_ext <<_ACEOF
5632: /* end confdefs.h. */
5633: $ac_includes_default
5634: long longval () { return (long) (sizeof (short)); }
5635: unsigned long ulongval () { return (long) (sizeof (short)); }
5636: #include <stdio.h>
5637: #include <stdlib.h>
5638: int
5639: main ()
5640: {
5641:
5642: FILE *f = fopen ("conftest.val", "w");
5643: if (! f)
5644: exit (1);
5645: if (((long) (sizeof (short))) < 0)
5646: {
5647: long i = longval ();
5648: if (i != ((long) (sizeof (short))))
5649: exit (1);
5650: fprintf (f, "%ld\n", i);
5651: }
5652: else
5653: {
5654: unsigned long i = ulongval ();
5655: if (i != ((long) (sizeof (short))))
5656: exit (1);
5657: fprintf (f, "%lu\n", i);
5658: }
5659: exit (ferror (f) || fclose (f) != 0);
5660:
5661: ;
5662: return 0;
5663: }
5664: _ACEOF
5665: rm -f conftest$ac_exeext
5666: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667: (eval $ac_link) 2>&5
5668: ac_status=$?
5669: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5671: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672: (eval $ac_try) 2>&5
5673: ac_status=$?
5674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675: (exit $ac_status); }; }; then
5676: ac_cv_sizeof_short=`cat conftest.val`
5677: else
5678: echo "$as_me: program exited with status $ac_status" >&5
5679: echo "$as_me: failed program was:" >&5
5680: sed 's/^/| /' conftest.$ac_ext >&5
5681:
5682: ( exit $ac_status )
5683: { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5684: See \`config.log' for more details." >&5
5685: echo "$as_me: error: cannot compute sizeof (short), 77
5686: See \`config.log' for more details." >&2;}
5687: { (exit 1); exit 1; }; }
5688: fi
5689: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5690: fi
5691: fi
5692: rm -f conftest.val
5693: else
5694: ac_cv_sizeof_short=0
5695: fi
5696: fi
5697: echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5698: echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5699: cat >>confdefs.h <<_ACEOF
5700: #define SIZEOF_SHORT $ac_cv_sizeof_short
5701: _ACEOF
5702:
5703:
1.1.1.3 root 5704: echo "$as_me:$LINENO: checking for float" >&5
5705: echo $ECHO_N "checking for float... $ECHO_C" >&6
5706: if test "${ac_cv_type_float+set}" = set; then
1.1 root 5707: echo $ECHO_N "(cached) $ECHO_C" >&6
5708: else
5709: cat >conftest.$ac_ext <<_ACEOF
5710: #line $LINENO "configure"
5711: /* confdefs.h. */
5712: _ACEOF
5713: cat confdefs.h >>conftest.$ac_ext
5714: cat >>conftest.$ac_ext <<_ACEOF
5715: /* end confdefs.h. */
1.1.1.3 root 5716: $ac_includes_default
5717: int
5718: main ()
1.1 root 5719: {
1.1.1.3 root 5720: if ((float *) 0)
5721: return 0;
5722: if (sizeof (float))
5723: return 0;
5724: ;
5725: return 0;
1.1 root 5726: }
5727: _ACEOF
1.1.1.3 root 5728: rm -f conftest.$ac_objext
5729: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730: (eval $ac_compile) 2>&5
1.1 root 5731: ac_status=$?
5732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.3 root 5733: (exit $ac_status); } &&
5734: { ac_try='test -s conftest.$ac_objext'
1.1 root 5735: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736: (eval $ac_try) 2>&5
5737: ac_status=$?
5738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739: (exit $ac_status); }; }; then
1.1.1.3 root 5740: ac_cv_type_float=yes
1.1 root 5741: else
1.1.1.3 root 5742: echo "$as_me: failed program was:" >&5
1.1 root 5743: sed 's/^/| /' conftest.$ac_ext >&5
5744:
1.1.1.3 root 5745: ac_cv_type_float=no
1.1 root 5746: fi
1.1.1.3 root 5747: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 root 5748: fi
1.1.1.3 root 5749: echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5750: echo "${ECHO_T}$ac_cv_type_float" >&6
1.1 root 5751:
1.1.1.3 root 5752: echo "$as_me:$LINENO: checking size of float" >&5
5753: echo $ECHO_N "checking size of float... $ECHO_C" >&6
5754: if test "${ac_cv_sizeof_float+set}" = set; then
1.1 root 5755: echo $ECHO_N "(cached) $ECHO_C" >&6
5756: else
1.1.1.3 root 5757: if test "$ac_cv_type_float" = yes; then
5758: # The cast to unsigned long works around a bug in the HP C Compiler
5759: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5760: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5761: # This bug is HP SR number 8606223364.
1.1 root 5762: if test "$cross_compiling" = yes; then
1.1.1.3 root 5763: # Depending upon the size, compute the lo and hi bounds.
5764: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5765: #line $LINENO "configure"
5766: /* confdefs.h. */
5767: _ACEOF
5768: cat confdefs.h >>conftest.$ac_ext
5769: cat >>conftest.$ac_ext <<_ACEOF
5770: /* end confdefs.h. */
1.1.1.3 root 5771: $ac_includes_default
5772: int
5773: main ()
1.1 root 5774: {
1.1.1.3 root 5775: static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5776: test_array [0] = 0
5777:
5778: ;
5779: return 0;
5780: }
5781: _ACEOF
5782: rm -f conftest.$ac_objext
5783: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784: (eval $ac_compile) 2>&5
5785: ac_status=$?
5786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787: (exit $ac_status); } &&
5788: { ac_try='test -s conftest.$ac_objext'
5789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790: (eval $ac_try) 2>&5
5791: ac_status=$?
5792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793: (exit $ac_status); }; }; then
5794: ac_lo=0 ac_mid=0
5795: while :; do
5796: cat >conftest.$ac_ext <<_ACEOF
5797: #line $LINENO "configure"
5798: /* confdefs.h. */
5799: _ACEOF
5800: cat confdefs.h >>conftest.$ac_ext
5801: cat >>conftest.$ac_ext <<_ACEOF
5802: /* end confdefs.h. */
5803: $ac_includes_default
5804: int
5805: main ()
5806: {
5807: static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5808: test_array [0] = 0
5809:
5810: ;
5811: return 0;
5812: }
5813: _ACEOF
5814: rm -f conftest.$ac_objext
5815: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816: (eval $ac_compile) 2>&5
5817: ac_status=$?
5818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819: (exit $ac_status); } &&
5820: { ac_try='test -s conftest.$ac_objext'
5821: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822: (eval $ac_try) 2>&5
5823: ac_status=$?
5824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825: (exit $ac_status); }; }; then
5826: ac_hi=$ac_mid; break
5827: else
5828: echo "$as_me: failed program was:" >&5
5829: sed 's/^/| /' conftest.$ac_ext >&5
5830:
5831: ac_lo=`expr $ac_mid + 1`
5832: if test $ac_lo -le $ac_mid; then
5833: ac_lo= ac_hi=
5834: break
5835: fi
5836: ac_mid=`expr 2 '*' $ac_mid + 1`
5837: fi
5838: rm -f conftest.$ac_objext conftest.$ac_ext
5839: done
5840: else
5841: echo "$as_me: failed program was:" >&5
5842: sed 's/^/| /' conftest.$ac_ext >&5
5843:
5844: cat >conftest.$ac_ext <<_ACEOF
5845: #line $LINENO "configure"
5846: /* confdefs.h. */
5847: _ACEOF
5848: cat confdefs.h >>conftest.$ac_ext
5849: cat >>conftest.$ac_ext <<_ACEOF
5850: /* end confdefs.h. */
5851: $ac_includes_default
5852: int
5853: main ()
5854: {
5855: static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5856: test_array [0] = 0
5857:
5858: ;
5859: return 0;
5860: }
5861: _ACEOF
5862: rm -f conftest.$ac_objext
5863: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864: (eval $ac_compile) 2>&5
5865: ac_status=$?
5866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867: (exit $ac_status); } &&
5868: { ac_try='test -s conftest.$ac_objext'
5869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870: (eval $ac_try) 2>&5
5871: ac_status=$?
5872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873: (exit $ac_status); }; }; then
5874: ac_hi=-1 ac_mid=-1
5875: while :; do
5876: cat >conftest.$ac_ext <<_ACEOF
5877: #line $LINENO "configure"
5878: /* confdefs.h. */
5879: _ACEOF
5880: cat confdefs.h >>conftest.$ac_ext
5881: cat >>conftest.$ac_ext <<_ACEOF
5882: /* end confdefs.h. */
5883: $ac_includes_default
5884: int
5885: main ()
5886: {
5887: static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5888: test_array [0] = 0
5889:
5890: ;
5891: return 0;
5892: }
5893: _ACEOF
5894: rm -f conftest.$ac_objext
5895: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896: (eval $ac_compile) 2>&5
5897: ac_status=$?
5898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899: (exit $ac_status); } &&
5900: { ac_try='test -s conftest.$ac_objext'
5901: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902: (eval $ac_try) 2>&5
5903: ac_status=$?
5904: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905: (exit $ac_status); }; }; then
5906: ac_lo=$ac_mid; break
5907: else
5908: echo "$as_me: failed program was:" >&5
5909: sed 's/^/| /' conftest.$ac_ext >&5
5910:
5911: ac_hi=`expr '(' $ac_mid ')' - 1`
5912: if test $ac_mid -le $ac_hi; then
5913: ac_lo= ac_hi=
5914: break
5915: fi
5916: ac_mid=`expr 2 '*' $ac_mid`
5917: fi
5918: rm -f conftest.$ac_objext conftest.$ac_ext
5919: done
5920: else
5921: echo "$as_me: failed program was:" >&5
5922: sed 's/^/| /' conftest.$ac_ext >&5
5923:
5924: ac_lo= ac_hi=
5925: fi
5926: rm -f conftest.$ac_objext conftest.$ac_ext
5927: fi
5928: rm -f conftest.$ac_objext conftest.$ac_ext
5929: # Binary search between lo and hi bounds.
5930: while test "x$ac_lo" != "x$ac_hi"; do
5931: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5932: cat >conftest.$ac_ext <<_ACEOF
5933: #line $LINENO "configure"
5934: /* confdefs.h. */
5935: _ACEOF
5936: cat confdefs.h >>conftest.$ac_ext
5937: cat >>conftest.$ac_ext <<_ACEOF
5938: /* end confdefs.h. */
5939: $ac_includes_default
5940: int
5941: main ()
5942: {
5943: static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5944: test_array [0] = 0
5945:
5946: ;
5947: return 0;
5948: }
5949: _ACEOF
5950: rm -f conftest.$ac_objext
5951: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952: (eval $ac_compile) 2>&5
5953: ac_status=$?
5954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955: (exit $ac_status); } &&
5956: { ac_try='test -s conftest.$ac_objext'
5957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958: (eval $ac_try) 2>&5
5959: ac_status=$?
5960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961: (exit $ac_status); }; }; then
5962: ac_hi=$ac_mid
5963: else
5964: echo "$as_me: failed program was:" >&5
5965: sed 's/^/| /' conftest.$ac_ext >&5
5966:
5967: ac_lo=`expr '(' $ac_mid ')' + 1`
5968: fi
5969: rm -f conftest.$ac_objext conftest.$ac_ext
5970: done
5971: case $ac_lo in
5972: ?*) ac_cv_sizeof_float=$ac_lo;;
5973: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5974: See \`config.log' for more details." >&5
5975: echo "$as_me: error: cannot compute sizeof (float), 77
5976: See \`config.log' for more details." >&2;}
5977: { (exit 1); exit 1; }; } ;;
5978: esac
5979: else
5980: if test "$cross_compiling" = yes; then
5981: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5982: See \`config.log' for more details." >&5
5983: echo "$as_me: error: cannot run test program while cross compiling
5984: See \`config.log' for more details." >&2;}
5985: { (exit 1); exit 1; }; }
5986: else
5987: cat >conftest.$ac_ext <<_ACEOF
5988: #line $LINENO "configure"
5989: /* confdefs.h. */
5990: _ACEOF
5991: cat confdefs.h >>conftest.$ac_ext
5992: cat >>conftest.$ac_ext <<_ACEOF
5993: /* end confdefs.h. */
5994: $ac_includes_default
5995: long longval () { return (long) (sizeof (float)); }
5996: unsigned long ulongval () { return (long) (sizeof (float)); }
5997: #include <stdio.h>
5998: #include <stdlib.h>
5999: int
6000: main ()
6001: {
6002:
6003: FILE *f = fopen ("conftest.val", "w");
6004: if (! f)
6005: exit (1);
6006: if (((long) (sizeof (float))) < 0)
6007: {
6008: long i = longval ();
6009: if (i != ((long) (sizeof (float))))
6010: exit (1);
6011: fprintf (f, "%ld\n", i);
6012: }
6013: else
6014: {
6015: unsigned long i = ulongval ();
6016: if (i != ((long) (sizeof (float))))
6017: exit (1);
6018: fprintf (f, "%lu\n", i);
6019: }
6020: exit (ferror (f) || fclose (f) != 0);
6021:
6022: ;
6023: return 0;
6024: }
6025: _ACEOF
6026: rm -f conftest$ac_exeext
6027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028: (eval $ac_link) 2>&5
6029: ac_status=$?
6030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6032: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033: (eval $ac_try) 2>&5
6034: ac_status=$?
6035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036: (exit $ac_status); }; }; then
6037: ac_cv_sizeof_float=`cat conftest.val`
6038: else
6039: echo "$as_me: program exited with status $ac_status" >&5
6040: echo "$as_me: failed program was:" >&5
6041: sed 's/^/| /' conftest.$ac_ext >&5
6042:
6043: ( exit $ac_status )
6044: { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
6045: See \`config.log' for more details." >&5
6046: echo "$as_me: error: cannot compute sizeof (float), 77
6047: See \`config.log' for more details." >&2;}
6048: { (exit 1); exit 1; }; }
6049: fi
6050: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6051: fi
6052: fi
6053: rm -f conftest.val
6054: else
6055: ac_cv_sizeof_float=0
6056: fi
6057: fi
6058: echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
6059: echo "${ECHO_T}$ac_cv_sizeof_float" >&6
6060: cat >>confdefs.h <<_ACEOF
6061: #define SIZEOF_FLOAT $ac_cv_sizeof_float
6062: _ACEOF
6063:
6064:
6065: echo "$as_me:$LINENO: checking for double" >&5
6066: echo $ECHO_N "checking for double... $ECHO_C" >&6
6067: if test "${ac_cv_type_double+set}" = set; then
6068: echo $ECHO_N "(cached) $ECHO_C" >&6
6069: else
6070: cat >conftest.$ac_ext <<_ACEOF
6071: #line $LINENO "configure"
6072: /* confdefs.h. */
6073: _ACEOF
6074: cat confdefs.h >>conftest.$ac_ext
6075: cat >>conftest.$ac_ext <<_ACEOF
6076: /* end confdefs.h. */
6077: $ac_includes_default
6078: int
6079: main ()
6080: {
6081: if ((double *) 0)
6082: return 0;
6083: if (sizeof (double))
6084: return 0;
6085: ;
6086: return 0;
6087: }
6088: _ACEOF
6089: rm -f conftest.$ac_objext
6090: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6091: (eval $ac_compile) 2>&5
6092: ac_status=$?
6093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094: (exit $ac_status); } &&
6095: { ac_try='test -s conftest.$ac_objext'
6096: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097: (eval $ac_try) 2>&5
6098: ac_status=$?
6099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100: (exit $ac_status); }; }; then
6101: ac_cv_type_double=yes
6102: else
6103: echo "$as_me: failed program was:" >&5
6104: sed 's/^/| /' conftest.$ac_ext >&5
6105:
6106: ac_cv_type_double=no
6107: fi
6108: rm -f conftest.$ac_objext conftest.$ac_ext
6109: fi
6110: echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6111: echo "${ECHO_T}$ac_cv_type_double" >&6
6112:
6113: echo "$as_me:$LINENO: checking size of double" >&5
6114: echo $ECHO_N "checking size of double... $ECHO_C" >&6
6115: if test "${ac_cv_sizeof_double+set}" = set; then
6116: echo $ECHO_N "(cached) $ECHO_C" >&6
6117: else
6118: if test "$ac_cv_type_double" = yes; then
6119: # The cast to unsigned long works around a bug in the HP C Compiler
6120: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6121: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6122: # This bug is HP SR number 8606223364.
6123: if test "$cross_compiling" = yes; then
6124: # Depending upon the size, compute the lo and hi bounds.
6125: cat >conftest.$ac_ext <<_ACEOF
6126: #line $LINENO "configure"
6127: /* confdefs.h. */
6128: _ACEOF
6129: cat confdefs.h >>conftest.$ac_ext
6130: cat >>conftest.$ac_ext <<_ACEOF
6131: /* end confdefs.h. */
6132: $ac_includes_default
6133: int
6134: main ()
6135: {
6136: static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6137: test_array [0] = 0
6138:
6139: ;
6140: return 0;
6141: }
6142: _ACEOF
6143: rm -f conftest.$ac_objext
6144: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145: (eval $ac_compile) 2>&5
6146: ac_status=$?
6147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148: (exit $ac_status); } &&
6149: { ac_try='test -s conftest.$ac_objext'
6150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151: (eval $ac_try) 2>&5
6152: ac_status=$?
6153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154: (exit $ac_status); }; }; then
6155: ac_lo=0 ac_mid=0
6156: while :; do
6157: cat >conftest.$ac_ext <<_ACEOF
6158: #line $LINENO "configure"
6159: /* confdefs.h. */
6160: _ACEOF
6161: cat confdefs.h >>conftest.$ac_ext
6162: cat >>conftest.$ac_ext <<_ACEOF
6163: /* end confdefs.h. */
6164: $ac_includes_default
6165: int
6166: main ()
6167: {
6168: static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6169: test_array [0] = 0
6170:
6171: ;
6172: return 0;
6173: }
6174: _ACEOF
6175: rm -f conftest.$ac_objext
6176: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177: (eval $ac_compile) 2>&5
6178: ac_status=$?
6179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180: (exit $ac_status); } &&
6181: { ac_try='test -s conftest.$ac_objext'
6182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183: (eval $ac_try) 2>&5
6184: ac_status=$?
6185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186: (exit $ac_status); }; }; then
6187: ac_hi=$ac_mid; break
6188: else
6189: echo "$as_me: failed program was:" >&5
6190: sed 's/^/| /' conftest.$ac_ext >&5
6191:
6192: ac_lo=`expr $ac_mid + 1`
6193: if test $ac_lo -le $ac_mid; then
6194: ac_lo= ac_hi=
6195: break
6196: fi
6197: ac_mid=`expr 2 '*' $ac_mid + 1`
6198: fi
6199: rm -f conftest.$ac_objext conftest.$ac_ext
6200: done
6201: else
6202: echo "$as_me: failed program was:" >&5
6203: sed 's/^/| /' conftest.$ac_ext >&5
6204:
6205: cat >conftest.$ac_ext <<_ACEOF
6206: #line $LINENO "configure"
6207: /* confdefs.h. */
6208: _ACEOF
6209: cat confdefs.h >>conftest.$ac_ext
6210: cat >>conftest.$ac_ext <<_ACEOF
6211: /* end confdefs.h. */
6212: $ac_includes_default
6213: int
6214: main ()
6215: {
6216: static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6217: test_array [0] = 0
6218:
6219: ;
6220: return 0;
6221: }
6222: _ACEOF
6223: rm -f conftest.$ac_objext
6224: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225: (eval $ac_compile) 2>&5
6226: ac_status=$?
6227: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228: (exit $ac_status); } &&
6229: { ac_try='test -s conftest.$ac_objext'
6230: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231: (eval $ac_try) 2>&5
6232: ac_status=$?
6233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234: (exit $ac_status); }; }; then
6235: ac_hi=-1 ac_mid=-1
6236: while :; do
6237: cat >conftest.$ac_ext <<_ACEOF
6238: #line $LINENO "configure"
6239: /* confdefs.h. */
6240: _ACEOF
6241: cat confdefs.h >>conftest.$ac_ext
6242: cat >>conftest.$ac_ext <<_ACEOF
6243: /* end confdefs.h. */
6244: $ac_includes_default
6245: int
6246: main ()
6247: {
6248: static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6249: test_array [0] = 0
6250:
6251: ;
6252: return 0;
6253: }
6254: _ACEOF
6255: rm -f conftest.$ac_objext
6256: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6257: (eval $ac_compile) 2>&5
6258: ac_status=$?
6259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260: (exit $ac_status); } &&
6261: { ac_try='test -s conftest.$ac_objext'
6262: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263: (eval $ac_try) 2>&5
6264: ac_status=$?
6265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266: (exit $ac_status); }; }; then
6267: ac_lo=$ac_mid; break
6268: else
6269: echo "$as_me: failed program was:" >&5
6270: sed 's/^/| /' conftest.$ac_ext >&5
6271:
6272: ac_hi=`expr '(' $ac_mid ')' - 1`
6273: if test $ac_mid -le $ac_hi; then
6274: ac_lo= ac_hi=
6275: break
6276: fi
6277: ac_mid=`expr 2 '*' $ac_mid`
6278: fi
6279: rm -f conftest.$ac_objext conftest.$ac_ext
6280: done
6281: else
6282: echo "$as_me: failed program was:" >&5
6283: sed 's/^/| /' conftest.$ac_ext >&5
6284:
6285: ac_lo= ac_hi=
6286: fi
6287: rm -f conftest.$ac_objext conftest.$ac_ext
6288: fi
6289: rm -f conftest.$ac_objext conftest.$ac_ext
6290: # Binary search between lo and hi bounds.
6291: while test "x$ac_lo" != "x$ac_hi"; do
6292: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6293: cat >conftest.$ac_ext <<_ACEOF
6294: #line $LINENO "configure"
6295: /* confdefs.h. */
6296: _ACEOF
6297: cat confdefs.h >>conftest.$ac_ext
6298: cat >>conftest.$ac_ext <<_ACEOF
6299: /* end confdefs.h. */
6300: $ac_includes_default
6301: int
6302: main ()
6303: {
6304: static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6305: test_array [0] = 0
6306:
6307: ;
6308: return 0;
6309: }
6310: _ACEOF
6311: rm -f conftest.$ac_objext
6312: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313: (eval $ac_compile) 2>&5
6314: ac_status=$?
6315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316: (exit $ac_status); } &&
6317: { ac_try='test -s conftest.$ac_objext'
6318: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319: (eval $ac_try) 2>&5
6320: ac_status=$?
6321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322: (exit $ac_status); }; }; then
6323: ac_hi=$ac_mid
6324: else
6325: echo "$as_me: failed program was:" >&5
6326: sed 's/^/| /' conftest.$ac_ext >&5
6327:
6328: ac_lo=`expr '(' $ac_mid ')' + 1`
6329: fi
6330: rm -f conftest.$ac_objext conftest.$ac_ext
6331: done
6332: case $ac_lo in
6333: ?*) ac_cv_sizeof_double=$ac_lo;;
6334: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6335: See \`config.log' for more details." >&5
6336: echo "$as_me: error: cannot compute sizeof (double), 77
6337: See \`config.log' for more details." >&2;}
6338: { (exit 1); exit 1; }; } ;;
6339: esac
6340: else
6341: if test "$cross_compiling" = yes; then
6342: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6343: See \`config.log' for more details." >&5
6344: echo "$as_me: error: cannot run test program while cross compiling
6345: See \`config.log' for more details." >&2;}
6346: { (exit 1); exit 1; }; }
6347: else
6348: cat >conftest.$ac_ext <<_ACEOF
6349: #line $LINENO "configure"
6350: /* confdefs.h. */
6351: _ACEOF
6352: cat confdefs.h >>conftest.$ac_ext
6353: cat >>conftest.$ac_ext <<_ACEOF
6354: /* end confdefs.h. */
6355: $ac_includes_default
6356: long longval () { return (long) (sizeof (double)); }
6357: unsigned long ulongval () { return (long) (sizeof (double)); }
6358: #include <stdio.h>
6359: #include <stdlib.h>
6360: int
6361: main ()
6362: {
6363:
6364: FILE *f = fopen ("conftest.val", "w");
6365: if (! f)
6366: exit (1);
6367: if (((long) (sizeof (double))) < 0)
6368: {
6369: long i = longval ();
6370: if (i != ((long) (sizeof (double))))
6371: exit (1);
6372: fprintf (f, "%ld\n", i);
6373: }
6374: else
6375: {
6376: unsigned long i = ulongval ();
6377: if (i != ((long) (sizeof (double))))
6378: exit (1);
6379: fprintf (f, "%lu\n", i);
6380: }
6381: exit (ferror (f) || fclose (f) != 0);
6382:
6383: ;
6384: return 0;
6385: }
6386: _ACEOF
6387: rm -f conftest$ac_exeext
6388: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389: (eval $ac_link) 2>&5
6390: ac_status=$?
6391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394: (eval $ac_try) 2>&5
6395: ac_status=$?
6396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397: (exit $ac_status); }; }; then
6398: ac_cv_sizeof_double=`cat conftest.val`
6399: else
6400: echo "$as_me: program exited with status $ac_status" >&5
6401: echo "$as_me: failed program was:" >&5
6402: sed 's/^/| /' conftest.$ac_ext >&5
6403:
6404: ( exit $ac_status )
6405: { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6406: See \`config.log' for more details." >&5
6407: echo "$as_me: error: cannot compute sizeof (double), 77
6408: See \`config.log' for more details." >&2;}
6409: { (exit 1); exit 1; }; }
6410: fi
6411: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6412: fi
6413: fi
6414: rm -f conftest.val
6415: else
6416: ac_cv_sizeof_double=0
6417: fi
6418: fi
6419: echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6420: echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6421: cat >>confdefs.h <<_ACEOF
6422: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6423: _ACEOF
6424:
6425:
6426: if test $ac_cv_c_long_double = yes; then
6427: echo "$as_me:$LINENO: checking for long double" >&5
6428: echo $ECHO_N "checking for long double... $ECHO_C" >&6
6429: if test "${ac_cv_type_long_double+set}" = set; then
6430: echo $ECHO_N "(cached) $ECHO_C" >&6
6431: else
6432: cat >conftest.$ac_ext <<_ACEOF
6433: #line $LINENO "configure"
6434: /* confdefs.h. */
6435: _ACEOF
6436: cat confdefs.h >>conftest.$ac_ext
6437: cat >>conftest.$ac_ext <<_ACEOF
6438: /* end confdefs.h. */
6439: $ac_includes_default
6440: int
6441: main ()
6442: {
6443: if ((long double *) 0)
6444: return 0;
6445: if (sizeof (long double))
6446: return 0;
6447: ;
6448: return 0;
6449: }
6450: _ACEOF
6451: rm -f conftest.$ac_objext
6452: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6453: (eval $ac_compile) 2>&5
6454: ac_status=$?
6455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456: (exit $ac_status); } &&
6457: { ac_try='test -s conftest.$ac_objext'
6458: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459: (eval $ac_try) 2>&5
6460: ac_status=$?
6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462: (exit $ac_status); }; }; then
6463: ac_cv_type_long_double=yes
6464: else
6465: echo "$as_me: failed program was:" >&5
6466: sed 's/^/| /' conftest.$ac_ext >&5
6467:
6468: ac_cv_type_long_double=no
6469: fi
6470: rm -f conftest.$ac_objext conftest.$ac_ext
6471: fi
6472: echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6473: echo "${ECHO_T}$ac_cv_type_long_double" >&6
6474:
6475: echo "$as_me:$LINENO: checking size of long double" >&5
6476: echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6477: if test "${ac_cv_sizeof_long_double+set}" = set; then
6478: echo $ECHO_N "(cached) $ECHO_C" >&6
6479: else
6480: if test "$ac_cv_type_long_double" = yes; then
6481: # The cast to unsigned long works around a bug in the HP C Compiler
6482: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6483: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6484: # This bug is HP SR number 8606223364.
6485: if test "$cross_compiling" = yes; then
6486: # Depending upon the size, compute the lo and hi bounds.
6487: cat >conftest.$ac_ext <<_ACEOF
6488: #line $LINENO "configure"
6489: /* confdefs.h. */
6490: _ACEOF
6491: cat confdefs.h >>conftest.$ac_ext
6492: cat >>conftest.$ac_ext <<_ACEOF
6493: /* end confdefs.h. */
6494: $ac_includes_default
6495: int
6496: main ()
6497: {
6498: static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6499: test_array [0] = 0
6500:
6501: ;
6502: return 0;
6503: }
6504: _ACEOF
6505: rm -f conftest.$ac_objext
6506: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507: (eval $ac_compile) 2>&5
6508: ac_status=$?
6509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510: (exit $ac_status); } &&
6511: { ac_try='test -s conftest.$ac_objext'
6512: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513: (eval $ac_try) 2>&5
6514: ac_status=$?
6515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516: (exit $ac_status); }; }; then
6517: ac_lo=0 ac_mid=0
6518: while :; do
6519: cat >conftest.$ac_ext <<_ACEOF
6520: #line $LINENO "configure"
6521: /* confdefs.h. */
6522: _ACEOF
6523: cat confdefs.h >>conftest.$ac_ext
6524: cat >>conftest.$ac_ext <<_ACEOF
6525: /* end confdefs.h. */
6526: $ac_includes_default
6527: int
6528: main ()
6529: {
6530: static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6531: test_array [0] = 0
6532:
6533: ;
6534: return 0;
6535: }
6536: _ACEOF
6537: rm -f conftest.$ac_objext
6538: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539: (eval $ac_compile) 2>&5
6540: ac_status=$?
6541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542: (exit $ac_status); } &&
6543: { ac_try='test -s conftest.$ac_objext'
6544: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545: (eval $ac_try) 2>&5
6546: ac_status=$?
6547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548: (exit $ac_status); }; }; then
6549: ac_hi=$ac_mid; break
6550: else
6551: echo "$as_me: failed program was:" >&5
6552: sed 's/^/| /' conftest.$ac_ext >&5
6553:
6554: ac_lo=`expr $ac_mid + 1`
6555: if test $ac_lo -le $ac_mid; then
6556: ac_lo= ac_hi=
6557: break
6558: fi
6559: ac_mid=`expr 2 '*' $ac_mid + 1`
6560: fi
6561: rm -f conftest.$ac_objext conftest.$ac_ext
6562: done
6563: else
6564: echo "$as_me: failed program was:" >&5
6565: sed 's/^/| /' conftest.$ac_ext >&5
6566:
6567: cat >conftest.$ac_ext <<_ACEOF
6568: #line $LINENO "configure"
6569: /* confdefs.h. */
6570: _ACEOF
6571: cat confdefs.h >>conftest.$ac_ext
6572: cat >>conftest.$ac_ext <<_ACEOF
6573: /* end confdefs.h. */
6574: $ac_includes_default
6575: int
6576: main ()
6577: {
6578: static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6579: test_array [0] = 0
6580:
6581: ;
6582: return 0;
6583: }
6584: _ACEOF
6585: rm -f conftest.$ac_objext
6586: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587: (eval $ac_compile) 2>&5
6588: ac_status=$?
6589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590: (exit $ac_status); } &&
6591: { ac_try='test -s conftest.$ac_objext'
6592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593: (eval $ac_try) 2>&5
6594: ac_status=$?
6595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596: (exit $ac_status); }; }; then
6597: ac_hi=-1 ac_mid=-1
6598: while :; do
6599: cat >conftest.$ac_ext <<_ACEOF
6600: #line $LINENO "configure"
6601: /* confdefs.h. */
6602: _ACEOF
6603: cat confdefs.h >>conftest.$ac_ext
6604: cat >>conftest.$ac_ext <<_ACEOF
6605: /* end confdefs.h. */
6606: $ac_includes_default
6607: int
6608: main ()
6609: {
6610: static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6611: test_array [0] = 0
6612:
6613: ;
6614: return 0;
6615: }
6616: _ACEOF
6617: rm -f conftest.$ac_objext
6618: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619: (eval $ac_compile) 2>&5
6620: ac_status=$?
6621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622: (exit $ac_status); } &&
6623: { ac_try='test -s conftest.$ac_objext'
6624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625: (eval $ac_try) 2>&5
6626: ac_status=$?
6627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628: (exit $ac_status); }; }; then
6629: ac_lo=$ac_mid; break
6630: else
6631: echo "$as_me: failed program was:" >&5
6632: sed 's/^/| /' conftest.$ac_ext >&5
6633:
6634: ac_hi=`expr '(' $ac_mid ')' - 1`
6635: if test $ac_mid -le $ac_hi; then
6636: ac_lo= ac_hi=
6637: break
6638: fi
6639: ac_mid=`expr 2 '*' $ac_mid`
6640: fi
6641: rm -f conftest.$ac_objext conftest.$ac_ext
6642: done
6643: else
6644: echo "$as_me: failed program was:" >&5
6645: sed 's/^/| /' conftest.$ac_ext >&5
6646:
6647: ac_lo= ac_hi=
6648: fi
6649: rm -f conftest.$ac_objext conftest.$ac_ext
6650: fi
6651: rm -f conftest.$ac_objext conftest.$ac_ext
6652: # Binary search between lo and hi bounds.
6653: while test "x$ac_lo" != "x$ac_hi"; do
6654: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6655: cat >conftest.$ac_ext <<_ACEOF
6656: #line $LINENO "configure"
6657: /* confdefs.h. */
6658: _ACEOF
6659: cat confdefs.h >>conftest.$ac_ext
6660: cat >>conftest.$ac_ext <<_ACEOF
6661: /* end confdefs.h. */
6662: $ac_includes_default
6663: int
6664: main ()
6665: {
6666: static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6667: test_array [0] = 0
6668:
6669: ;
6670: return 0;
6671: }
6672: _ACEOF
6673: rm -f conftest.$ac_objext
6674: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675: (eval $ac_compile) 2>&5
6676: ac_status=$?
6677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678: (exit $ac_status); } &&
6679: { ac_try='test -s conftest.$ac_objext'
6680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681: (eval $ac_try) 2>&5
6682: ac_status=$?
6683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684: (exit $ac_status); }; }; then
6685: ac_hi=$ac_mid
6686: else
6687: echo "$as_me: failed program was:" >&5
6688: sed 's/^/| /' conftest.$ac_ext >&5
6689:
6690: ac_lo=`expr '(' $ac_mid ')' + 1`
6691: fi
6692: rm -f conftest.$ac_objext conftest.$ac_ext
6693: done
6694: case $ac_lo in
6695: ?*) ac_cv_sizeof_long_double=$ac_lo;;
6696: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6697: See \`config.log' for more details." >&5
6698: echo "$as_me: error: cannot compute sizeof (long double), 77
6699: See \`config.log' for more details." >&2;}
6700: { (exit 1); exit 1; }; } ;;
6701: esac
6702: else
6703: if test "$cross_compiling" = yes; then
6704: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6705: See \`config.log' for more details." >&5
6706: echo "$as_me: error: cannot run test program while cross compiling
6707: See \`config.log' for more details." >&2;}
6708: { (exit 1); exit 1; }; }
6709: else
6710: cat >conftest.$ac_ext <<_ACEOF
6711: #line $LINENO "configure"
6712: /* confdefs.h. */
6713: _ACEOF
6714: cat confdefs.h >>conftest.$ac_ext
6715: cat >>conftest.$ac_ext <<_ACEOF
6716: /* end confdefs.h. */
6717: $ac_includes_default
6718: long longval () { return (long) (sizeof (long double)); }
6719: unsigned long ulongval () { return (long) (sizeof (long double)); }
6720: #include <stdio.h>
6721: #include <stdlib.h>
6722: int
6723: main ()
6724: {
6725:
6726: FILE *f = fopen ("conftest.val", "w");
6727: if (! f)
6728: exit (1);
6729: if (((long) (sizeof (long double))) < 0)
6730: {
6731: long i = longval ();
6732: if (i != ((long) (sizeof (long double))))
6733: exit (1);
6734: fprintf (f, "%ld\n", i);
6735: }
6736: else
6737: {
6738: unsigned long i = ulongval ();
6739: if (i != ((long) (sizeof (long double))))
6740: exit (1);
6741: fprintf (f, "%lu\n", i);
6742: }
6743: exit (ferror (f) || fclose (f) != 0);
6744:
6745: ;
6746: return 0;
6747: }
6748: _ACEOF
6749: rm -f conftest$ac_exeext
6750: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751: (eval $ac_link) 2>&5
6752: ac_status=$?
6753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6755: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756: (eval $ac_try) 2>&5
6757: ac_status=$?
6758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759: (exit $ac_status); }; }; then
6760: ac_cv_sizeof_long_double=`cat conftest.val`
6761: else
6762: echo "$as_me: program exited with status $ac_status" >&5
6763: echo "$as_me: failed program was:" >&5
6764: sed 's/^/| /' conftest.$ac_ext >&5
6765:
6766: ( exit $ac_status )
6767: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6768: See \`config.log' for more details." >&5
6769: echo "$as_me: error: cannot compute sizeof (long double), 77
6770: See \`config.log' for more details." >&2;}
6771: { (exit 1); exit 1; }; }
6772: fi
6773: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6774: fi
6775: fi
6776: rm -f conftest.val
6777: else
6778: ac_cv_sizeof_long_double=0
6779: fi
6780: fi
6781: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6782: echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6783: cat >>confdefs.h <<_ACEOF
6784: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6785: _ACEOF
6786:
6787:
6788: fi
6789: if test $ac_cv_sizeof_int != 4 && test $ac_cv_sizeof_long != 4; then
6790: { { echo "$as_me:$LINENO: error: can't find a 32-bit type" >&5
6791: echo "$as_me: error: can't find a 32-bit type" >&2;}
6792: { (exit 1); exit 1; }; }
6793: fi
6794: if test $ac_cv_sizeof_int != 2 && test $ac_cv_sizeof_short != 2; then
6795: { { echo "$as_me:$LINENO: error: can't find a 16-bit type" >&5
6796: echo "$as_me: error: can't find a 16-bit type" >&2;}
6797: { (exit 1); exit 1; }; }
6798: fi
1.1.1.4 ! root 6799: if test $ac_cv_sizeof_long = 8; then
! 6800: echo "$as_me:$LINENO: checking minimum alignment of int64_t" >&5
! 6801: echo $ECHO_N "checking minimum alignment of int64_t... $ECHO_C" >&6
! 6802: if test "${ac_cv_alignof_int64_t+set}" = set; then
! 6803: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6804: else
! 6805: if test "$cross_compiling" = yes; then
! 6806: ac_cv_alignof_int64_t=64
! 6807: else
! 6808: cat >conftest.$ac_ext <<_ACEOF
! 6809: #line $LINENO "configure"
! 6810: /* confdefs.h. */
! 6811: _ACEOF
! 6812: cat confdefs.h >>conftest.$ac_ext
! 6813: cat >>conftest.$ac_ext <<_ACEOF
! 6814: /* end confdefs.h. */
! 6815: #include <stdio.h>
! 6816: #include <sys/types.h>
! 6817: main()
! 6818: {
! 6819: #if (SIZEOF_SHORT * 8) == 64
! 6820: #define _type short
! 6821: #elif (SIZEOF_INT * 8) == 64
! 6822: #define _type int
! 6823: #else
! 6824: #define _type long
! 6825: #endif
! 6826: char try_align_buffer[sizeof(_type) * 2];
! 6827: int min_align, try_align, status;
! 6828: _type value;
! 6829: FILE *f=fopen("conftestval", "w");
! 6830: if (!f) exit(1);
! 6831: min_align = sizeof(_type);
! 6832: for(try_align = sizeof(_type); try_align-- > 1;) {
! 6833: switch(fork()) {
! 6834: case -1: exit(1);
! 6835: case 0: value = *((_type *) &try_align_buffer[try_align]);
! 6836: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
! 6837: default: break;
! 6838: }
! 6839: wait(&status);
! 6840: if (!status && try_align < min_align) {
! 6841: min_align = try_align;
! 6842: }
! 6843: }
! 6844: fprintf(f, "%d\n", min_align * 8);
! 6845: exit(0);
! 6846: }
! 6847: _ACEOF
! 6848: rm -f conftest$ac_exeext
! 6849: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6850: (eval $ac_link) 2>&5
! 6851: ac_status=$?
! 6852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6853: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 6854: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6855: (eval $ac_try) 2>&5
! 6856: ac_status=$?
! 6857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6858: (exit $ac_status); }; }; then
! 6859: ac_cv_alignof_int64_t=`cat conftestval`
! 6860: else
! 6861: echo "$as_me: program exited with status $ac_status" >&5
! 6862: echo "$as_me: failed program was:" >&5
! 6863: sed 's/^/| /' conftest.$ac_ext >&5
! 6864:
! 6865: ( exit $ac_status )
! 6866: ac_cv_alignof_int64_t=64
! 6867: fi
! 6868: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6869: fi
! 6870: fi
! 6871: ac_cv_alignof_int64_t=`expr $ac_cv_alignof_int64_t / 8`
! 6872: echo "$as_me:$LINENO: result: $ac_cv_alignof_int64_t" >&5
! 6873: echo "${ECHO_T}$ac_cv_alignof_int64_t" >&6
! 6874:
! 6875: cat >>confdefs.h <<_ACEOF
! 6876: #define ALIGNOF_INT64_T $ac_cv_alignof_int64_t
! 6877: _ACEOF
! 6878:
! 6879:
! 6880: fi
1.1.1.3 root 6881: echo "$as_me:$LINENO: checking minimum alignment of int32_t" >&5
6882: echo $ECHO_N "checking minimum alignment of int32_t... $ECHO_C" >&6
6883: if test "${ac_cv_alignof_int32_t+set}" = set; then
6884: echo $ECHO_N "(cached) $ECHO_C" >&6
6885: else
6886: if test "$cross_compiling" = yes; then
6887: ac_cv_alignof_int32_t=32
6888: else
6889: cat >conftest.$ac_ext <<_ACEOF
6890: #line $LINENO "configure"
6891: /* confdefs.h. */
6892: _ACEOF
6893: cat confdefs.h >>conftest.$ac_ext
6894: cat >>conftest.$ac_ext <<_ACEOF
6895: /* end confdefs.h. */
6896: #include <stdio.h>
6897: #include <sys/types.h>
6898: main()
6899: {
6900: #if (SIZEOF_SHORT * 8) == 32
6901: #define _type short
6902: #elif (SIZEOF_INT * 8) == 32
6903: #define _type int
6904: #else
6905: #define _type long
6906: #endif
6907: char try_align_buffer[sizeof(_type) * 2];
6908: int min_align, try_align, status;
6909: _type value;
6910: FILE *f=fopen("conftestval", "w");
6911: if (!f) exit(1);
6912: min_align = sizeof(_type);
6913: for(try_align = sizeof(_type); try_align-- > 1;) {
6914: switch(fork()) {
6915: case -1: exit(1);
6916: case 0: value = *((_type *) &try_align_buffer[try_align]);
1.1.1.4 ! root 6917: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
1.1.1.3 root 6918: default: break;
6919: }
6920: wait(&status);
6921: if (!status && try_align < min_align) {
6922: min_align = try_align;
6923: }
6924: }
6925: fprintf(f, "%d\n", min_align * 8);
6926: exit(0);
6927: }
6928: _ACEOF
6929: rm -f conftest$ac_exeext
6930: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931: (eval $ac_link) 2>&5
6932: ac_status=$?
6933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6935: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936: (eval $ac_try) 2>&5
6937: ac_status=$?
6938: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939: (exit $ac_status); }; }; then
6940: ac_cv_alignof_int32_t=`cat conftestval`
6941: else
6942: echo "$as_me: program exited with status $ac_status" >&5
6943: echo "$as_me: failed program was:" >&5
6944: sed 's/^/| /' conftest.$ac_ext >&5
6945:
6946: ( exit $ac_status )
6947: ac_cv_alignof_int32_t=32
6948: fi
6949: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950: fi
6951: fi
6952: ac_cv_alignof_int32_t=`expr $ac_cv_alignof_int32_t / 8`
6953: echo "$as_me:$LINENO: result: $ac_cv_alignof_int32_t" >&5
6954: echo "${ECHO_T}$ac_cv_alignof_int32_t" >&6
6955:
6956: cat >>confdefs.h <<_ACEOF
6957: #define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
6958: _ACEOF
6959:
6960:
6961: echo "$as_me:$LINENO: checking minimum alignment of int16_t" >&5
6962: echo $ECHO_N "checking minimum alignment of int16_t... $ECHO_C" >&6
6963: if test "${ac_cv_alignof_int16_t+set}" = set; then
6964: echo $ECHO_N "(cached) $ECHO_C" >&6
6965: else
6966: if test "$cross_compiling" = yes; then
6967: ac_cv_alignof_int16_t=16
6968: else
6969: cat >conftest.$ac_ext <<_ACEOF
6970: #line $LINENO "configure"
6971: /* confdefs.h. */
6972: _ACEOF
6973: cat confdefs.h >>conftest.$ac_ext
6974: cat >>conftest.$ac_ext <<_ACEOF
6975: /* end confdefs.h. */
6976: #include <stdio.h>
6977: #include <sys/types.h>
6978: main()
6979: {
6980: #if (SIZEOF_SHORT * 8) == 16
6981: #define _type short
6982: #elif (SIZEOF_INT * 8) == 16
6983: #define _type int
6984: #else
6985: #define _type long
6986: #endif
6987: char try_align_buffer[sizeof(_type) * 2];
6988: int min_align, try_align, status;
6989: _type value;
6990: FILE *f=fopen("conftestval", "w");
6991: if (!f) exit(1);
6992: min_align = sizeof(_type);
1.1 root 6993: for(try_align = sizeof(_type); try_align-- > 1;) {
6994: switch(fork()) {
6995: case -1: exit(1);
6996: case 0: value = *((_type *) &try_align_buffer[try_align]);
1.1.1.4 ! root 6997: fprintf(stderr, "%d\n", (int) (value / 2)); exit(0);
1.1 root 6998: default: break;
6999: }
1.1.1.3 root 7000: wait(&status);
7001: if (!status && try_align < min_align) {
7002: min_align = try_align;
7003: }
7004: }
7005: fprintf(f, "%d\n", min_align * 8);
7006: exit(0);
7007: }
7008: _ACEOF
7009: rm -f conftest$ac_exeext
7010: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011: (eval $ac_link) 2>&5
7012: ac_status=$?
7013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7015: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016: (eval $ac_try) 2>&5
7017: ac_status=$?
7018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019: (exit $ac_status); }; }; then
7020: ac_cv_alignof_int16_t=`cat conftestval`
7021: else
7022: echo "$as_me: program exited with status $ac_status" >&5
7023: echo "$as_me: failed program was:" >&5
7024: sed 's/^/| /' conftest.$ac_ext >&5
7025:
7026: ( exit $ac_status )
7027: ac_cv_alignof_int16_t=16
7028: fi
7029: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030: fi
7031: fi
7032: ac_cv_alignof_int16_t=`expr $ac_cv_alignof_int16_t / 8`
7033: echo "$as_me:$LINENO: result: $ac_cv_alignof_int16_t" >&5
7034: echo "${ECHO_T}$ac_cv_alignof_int16_t" >&6
7035:
7036: cat >>confdefs.h <<_ACEOF
7037: #define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
7038: _ACEOF
7039:
7040:
7041: echo "$as_me:$LINENO: checking maximum shift count for int8_t" >&5
7042: echo $ECHO_N "checking maximum shift count for int8_t... $ECHO_C" >&6
7043: if test "${ac_cv_shiftmax_int8_t+set}" = set; then
7044: echo $ECHO_N "(cached) $ECHO_C" >&6
7045: else
7046: if test "$cross_compiling" = yes; then
7047: ac_cv_shiftmax_int8_t=8
7048: else
7049: cat >conftest.$ac_ext <<_ACEOF
7050: #line $LINENO "configure"
7051: /* confdefs.h. */
7052: _ACEOF
7053: cat confdefs.h >>conftest.$ac_ext
7054: cat >>conftest.$ac_ext <<_ACEOF
7055: /* end confdefs.h. */
7056: #include <stdio.h>
7057: #include <sys/types.h>
7058: main()
7059: {
7060: #if 8 == 8
7061: #define _type char
7062: #elif (SIZEOF_SHORT * 8) == 8
7063: #define _type short
7064: #elif (SIZEOF_INT * 8) == 8
7065: #define _type int
7066: #elif (SIZEOF_LONG * 8) == 8
7067: #define _type long
7068: #endif
7069: _type center, right, left;
7070: unsigned int shift, max_shift;
7071: FILE *f=fopen("conftestval", "w");
7072: if (!f) exit(1);
1.1.1.4 ! root 7073: center = 3;
! 7074: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 7075: max_shift = 2047;
1.1.1.4 ! root 7076: sscanf("0", "%d", &shift);
! 7077: for (shift += (sizeof(center) * 8);
1.1.1.3 root 7078: shift < 2048;
7079: shift <<= 1) {
7080: right = (center >> shift);
7081: left = (center << shift);
7082: if (right != 0
7083: || left != 0) {
7084: right = (center >> (shift | 1));
7085: left = (center << (shift | 1));
7086: max_shift = ((right == (center >> 1)
7087: && left == (center << 1))
7088: ? shift - 1
7089: : (sizeof(center) * 8) - 1);
7090: break;
7091: }
7092: }
7093: fprintf(f, "%d\n", max_shift + 1);
7094: exit(0);
7095: }
7096: _ACEOF
7097: rm -f conftest$ac_exeext
7098: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099: (eval $ac_link) 2>&5
7100: ac_status=$?
7101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7103: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104: (eval $ac_try) 2>&5
7105: ac_status=$?
7106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107: (exit $ac_status); }; }; then
7108: ac_cv_shiftmax_int8_t=`cat conftestval`
7109: else
7110: echo "$as_me: program exited with status $ac_status" >&5
7111: echo "$as_me: failed program was:" >&5
7112: sed 's/^/| /' conftest.$ac_ext >&5
7113:
7114: ( exit $ac_status )
7115: ac_cv_shiftmax_int8_t=8
7116: fi
7117: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7118: fi
7119: fi
7120: ac_cv_shiftmax_int8_t=`expr $ac_cv_shiftmax_int8_t - 1`
7121: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int8_t" >&5
7122: echo "${ECHO_T}$ac_cv_shiftmax_int8_t" >&6
7123:
7124: cat >>confdefs.h <<_ACEOF
7125: #define SHIFTMAX_INT8_T $ac_cv_shiftmax_int8_t
7126: _ACEOF
7127:
7128:
7129: echo "$as_me:$LINENO: checking maximum shift count for int16_t" >&5
7130: echo $ECHO_N "checking maximum shift count for int16_t... $ECHO_C" >&6
7131: if test "${ac_cv_shiftmax_int16_t+set}" = set; then
7132: echo $ECHO_N "(cached) $ECHO_C" >&6
7133: else
7134: if test "$cross_compiling" = yes; then
7135: ac_cv_shiftmax_int16_t=16
7136: else
7137: cat >conftest.$ac_ext <<_ACEOF
7138: #line $LINENO "configure"
7139: /* confdefs.h. */
7140: _ACEOF
7141: cat confdefs.h >>conftest.$ac_ext
7142: cat >>conftest.$ac_ext <<_ACEOF
7143: /* end confdefs.h. */
7144: #include <stdio.h>
7145: #include <sys/types.h>
7146: main()
7147: {
7148: #if 8 == 16
7149: #define _type char
7150: #elif (SIZEOF_SHORT * 8) == 16
7151: #define _type short
7152: #elif (SIZEOF_INT * 8) == 16
7153: #define _type int
7154: #elif (SIZEOF_LONG * 8) == 16
7155: #define _type long
7156: #endif
7157: _type center, right, left;
7158: unsigned int shift, max_shift;
7159: FILE *f=fopen("conftestval", "w");
7160: if (!f) exit(1);
1.1.1.4 ! root 7161: center = 3;
! 7162: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 7163: max_shift = 2047;
1.1.1.4 ! root 7164: sscanf("0", "%d", &shift);
! 7165: for (shift += (sizeof(center) * 8);
1.1.1.3 root 7166: shift < 2048;
7167: shift <<= 1) {
7168: right = (center >> shift);
7169: left = (center << shift);
7170: if (right != 0
7171: || left != 0) {
7172: right = (center >> (shift | 1));
7173: left = (center << (shift | 1));
7174: max_shift = ((right == (center >> 1)
7175: && left == (center << 1))
7176: ? shift - 1
7177: : (sizeof(center) * 8) - 1);
7178: break;
7179: }
7180: }
7181: fprintf(f, "%d\n", max_shift + 1);
7182: exit(0);
7183: }
7184: _ACEOF
7185: rm -f conftest$ac_exeext
7186: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187: (eval $ac_link) 2>&5
7188: ac_status=$?
7189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7191: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192: (eval $ac_try) 2>&5
7193: ac_status=$?
7194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195: (exit $ac_status); }; }; then
7196: ac_cv_shiftmax_int16_t=`cat conftestval`
7197: else
7198: echo "$as_me: program exited with status $ac_status" >&5
7199: echo "$as_me: failed program was:" >&5
7200: sed 's/^/| /' conftest.$ac_ext >&5
7201:
7202: ( exit $ac_status )
7203: ac_cv_shiftmax_int16_t=16
7204: fi
7205: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7206: fi
7207: fi
7208: ac_cv_shiftmax_int16_t=`expr $ac_cv_shiftmax_int16_t - 1`
7209: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int16_t" >&5
7210: echo "${ECHO_T}$ac_cv_shiftmax_int16_t" >&6
7211:
7212: cat >>confdefs.h <<_ACEOF
7213: #define SHIFTMAX_INT16_T $ac_cv_shiftmax_int16_t
7214: _ACEOF
7215:
7216:
7217: echo "$as_me:$LINENO: checking maximum shift count for int32_t" >&5
7218: echo $ECHO_N "checking maximum shift count for int32_t... $ECHO_C" >&6
7219: if test "${ac_cv_shiftmax_int32_t+set}" = set; then
7220: echo $ECHO_N "(cached) $ECHO_C" >&6
7221: else
7222: if test "$cross_compiling" = yes; then
7223: ac_cv_shiftmax_int32_t=32
7224: else
7225: cat >conftest.$ac_ext <<_ACEOF
7226: #line $LINENO "configure"
7227: /* confdefs.h. */
7228: _ACEOF
7229: cat confdefs.h >>conftest.$ac_ext
7230: cat >>conftest.$ac_ext <<_ACEOF
7231: /* end confdefs.h. */
7232: #include <stdio.h>
7233: #include <sys/types.h>
7234: main()
7235: {
7236: #if 8 == 32
7237: #define _type char
7238: #elif (SIZEOF_SHORT * 8) == 32
7239: #define _type short
7240: #elif (SIZEOF_INT * 8) == 32
7241: #define _type int
7242: #elif (SIZEOF_LONG * 8) == 32
7243: #define _type long
7244: #endif
7245: _type center, right, left;
7246: unsigned int shift, max_shift;
7247: FILE *f=fopen("conftestval", "w");
7248: if (!f) exit(1);
1.1.1.4 ! root 7249: center = 3;
! 7250: center <<= ((sizeof(center) * 4) - 1);
1.1.1.3 root 7251: max_shift = 2047;
1.1.1.4 ! root 7252: sscanf("0", "%d", &shift);
! 7253: for (shift += (sizeof(center) * 8);
1.1.1.3 root 7254: shift < 2048;
7255: shift <<= 1) {
7256: right = (center >> shift);
7257: left = (center << shift);
7258: if (right != 0
7259: || left != 0) {
7260: right = (center >> (shift | 1));
7261: left = (center << (shift | 1));
7262: max_shift = ((right == (center >> 1)
7263: && left == (center << 1))
7264: ? shift - 1
7265: : (sizeof(center) * 8) - 1);
7266: break;
7267: }
7268: }
7269: fprintf(f, "%d\n", max_shift + 1);
7270: exit(0);
7271: }
7272: _ACEOF
7273: rm -f conftest$ac_exeext
7274: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7275: (eval $ac_link) 2>&5
7276: ac_status=$?
7277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7279: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280: (eval $ac_try) 2>&5
7281: ac_status=$?
7282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283: (exit $ac_status); }; }; then
7284: ac_cv_shiftmax_int32_t=`cat conftestval`
7285: else
7286: echo "$as_me: program exited with status $ac_status" >&5
7287: echo "$as_me: failed program was:" >&5
7288: sed 's/^/| /' conftest.$ac_ext >&5
7289:
7290: ( exit $ac_status )
7291: ac_cv_shiftmax_int32_t=32
7292: fi
7293: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7294: fi
7295: fi
7296: ac_cv_shiftmax_int32_t=`expr $ac_cv_shiftmax_int32_t - 1`
7297: echo "$as_me:$LINENO: result: $ac_cv_shiftmax_int32_t" >&5
7298: echo "${ECHO_T}$ac_cv_shiftmax_int32_t" >&6
7299:
7300: cat >>confdefs.h <<_ACEOF
7301: #define SHIFTMAX_INT32_T $ac_cv_shiftmax_int32_t
7302: _ACEOF
7303:
7304:
7305: echo "$as_me:$LINENO: checking for arithmetic right shifts of int8_t" >&5
7306: echo $ECHO_N "checking for arithmetic right shifts of int8_t... $ECHO_C" >&6
7307: if test "${ac_cv_shiftsigned_int8_t+set}" = set; then
7308: echo $ECHO_N "(cached) $ECHO_C" >&6
7309: else
7310: if test "$cross_compiling" = yes; then
7311: ac_cv_shiftsigned_int8_t=0
7312: else
7313: cat >conftest.$ac_ext <<_ACEOF
7314: #line $LINENO "configure"
7315: /* confdefs.h. */
7316: _ACEOF
7317: cat confdefs.h >>conftest.$ac_ext
7318: cat >>conftest.$ac_ext <<_ACEOF
7319: /* end confdefs.h. */
7320: #include <stdio.h>
7321: #include <sys/types.h>
7322: main()
7323: {
7324: #if 8 == 8
7325: #define _type signed char
7326: #elif (SIZEOF_SHORT * 8) == 8
7327: #define _type signed short
7328: #elif (SIZEOF_INT * 8) == 8
7329: #define _type signed int
7330: #elif (SIZEOF_LONG * 8) == 8
7331: #define _type signed long
7332: #endif
7333: _type prime, shifted, dividend;
7334: unsigned int shift, divides;
7335: FILE *f;
7336:
7337: f=fopen("conftestval", "w");
7338: if (!f) exit(1);
7339:
7340: /* set value to the largest magnitude negative prime that it
7341: will hold: */
7342: #if 8 == 8
7343: prime = -127;
7344: #elif 8 == 16
7345: prime = -32749;
7346: #elif 8 == 32
7347: prime = -2147483647;
7348: #elif 8 == 64
7349: /* this is a crafty way of constructing -9223372036854775783,
7350: which is 0x8000000000000000 - 0x19, without having to know
7351: any compiler suffix for 64-bit literals: */
7352: prime = 1;
7353: prime <<= (8 - 2);
7354: prime = -prime;
7355: prime *= 2;
7356: prime -= 0x19;
7357: #else
7358: #error "need another prime"
7359: #endif
7360:
7361: /* all right shifts from a single bit up to SHIFTMAX_INT8_T
7362: must be arithmetic, otherwise shifts aren't arithmetic: */
7363: for (shift = 1;
7364: shift <= SHIFTMAX_INT8_T;
7365: shift++) {
7366: shifted = prime >> shift;
7367: dividend = prime;
7368: divides = 0;
7369: do {
7370: dividend &= ~((_type) 1); /* guarantee no remainder */
7371: dividend /= 2;
7372: } while (++divides < shift);
7373: if (shifted != dividend) {
7374: break;
7375: }
7376: }
7377:
7378: fprintf(f, "%d\n", (shift > SHIFTMAX_INT8_T ? 1 : 0));
7379: exit(0);
7380: }
7381: _ACEOF
7382: rm -f conftest$ac_exeext
7383: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384: (eval $ac_link) 2>&5
7385: ac_status=$?
7386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389: (eval $ac_try) 2>&5
7390: ac_status=$?
7391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392: (exit $ac_status); }; }; then
7393: ac_cv_shiftsigned_int8_t=`cat conftestval`
7394: else
7395: echo "$as_me: program exited with status $ac_status" >&5
7396: echo "$as_me: failed program was:" >&5
7397: sed 's/^/| /' conftest.$ac_ext >&5
7398:
7399: ( exit $ac_status )
7400: ac_cv_shiftsigned_int8_t=0
7401: fi
7402: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7403: fi
7404: fi
7405: if test $ac_cv_shiftsigned_int8_t = 1; then
7406: echo "$as_me:$LINENO: result: yes" >&5
7407: echo "${ECHO_T}yes" >&6
7408:
7409: cat >>confdefs.h <<_ACEOF
7410: #define SHIFTSIGNED_INT8_T
7411: _ACEOF
7412:
7413: else
7414: echo "$as_me:$LINENO: result: no" >&5
7415: echo "${ECHO_T}no" >&6
7416: fi
7417:
7418: echo "$as_me:$LINENO: checking for arithmetic right shifts of int16_t" >&5
7419: echo $ECHO_N "checking for arithmetic right shifts of int16_t... $ECHO_C" >&6
7420: if test "${ac_cv_shiftsigned_int16_t+set}" = set; then
7421: echo $ECHO_N "(cached) $ECHO_C" >&6
7422: else
7423: if test "$cross_compiling" = yes; then
7424: ac_cv_shiftsigned_int16_t=0
7425: else
7426: cat >conftest.$ac_ext <<_ACEOF
7427: #line $LINENO "configure"
7428: /* confdefs.h. */
7429: _ACEOF
7430: cat confdefs.h >>conftest.$ac_ext
7431: cat >>conftest.$ac_ext <<_ACEOF
7432: /* end confdefs.h. */
7433: #include <stdio.h>
7434: #include <sys/types.h>
7435: main()
7436: {
7437: #if 8 == 16
7438: #define _type signed char
7439: #elif (SIZEOF_SHORT * 8) == 16
7440: #define _type signed short
7441: #elif (SIZEOF_INT * 8) == 16
7442: #define _type signed int
7443: #elif (SIZEOF_LONG * 8) == 16
7444: #define _type signed long
7445: #endif
7446: _type prime, shifted, dividend;
7447: unsigned int shift, divides;
7448: FILE *f;
7449:
7450: f=fopen("conftestval", "w");
7451: if (!f) exit(1);
7452:
7453: /* set value to the largest magnitude negative prime that it
7454: will hold: */
7455: #if 16 == 8
7456: prime = -127;
7457: #elif 16 == 16
7458: prime = -32749;
7459: #elif 16 == 32
7460: prime = -2147483647;
7461: #elif 16 == 64
7462: /* this is a crafty way of constructing -9223372036854775783,
7463: which is 0x8000000000000000 - 0x19, without having to know
7464: any compiler suffix for 64-bit literals: */
7465: prime = 1;
7466: prime <<= (16 - 2);
7467: prime = -prime;
7468: prime *= 2;
7469: prime -= 0x19;
7470: #else
7471: #error "need another prime"
7472: #endif
7473:
7474: /* all right shifts from a single bit up to SHIFTMAX_INT16_T
7475: must be arithmetic, otherwise shifts aren't arithmetic: */
7476: for (shift = 1;
7477: shift <= SHIFTMAX_INT16_T;
7478: shift++) {
7479: shifted = prime >> shift;
7480: dividend = prime;
7481: divides = 0;
7482: do {
7483: dividend &= ~((_type) 1); /* guarantee no remainder */
7484: dividend /= 2;
7485: } while (++divides < shift);
7486: if (shifted != dividend) {
7487: break;
7488: }
7489: }
7490:
7491: fprintf(f, "%d\n", (shift > SHIFTMAX_INT16_T ? 1 : 0));
7492: exit(0);
7493: }
7494: _ACEOF
7495: rm -f conftest$ac_exeext
7496: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497: (eval $ac_link) 2>&5
7498: ac_status=$?
7499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502: (eval $ac_try) 2>&5
7503: ac_status=$?
7504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505: (exit $ac_status); }; }; then
7506: ac_cv_shiftsigned_int16_t=`cat conftestval`
7507: else
7508: echo "$as_me: program exited with status $ac_status" >&5
7509: echo "$as_me: failed program was:" >&5
7510: sed 's/^/| /' conftest.$ac_ext >&5
7511:
7512: ( exit $ac_status )
7513: ac_cv_shiftsigned_int16_t=0
7514: fi
7515: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7516: fi
7517: fi
7518: if test $ac_cv_shiftsigned_int16_t = 1; then
7519: echo "$as_me:$LINENO: result: yes" >&5
7520: echo "${ECHO_T}yes" >&6
7521:
7522: cat >>confdefs.h <<_ACEOF
7523: #define SHIFTSIGNED_INT16_T
7524: _ACEOF
7525:
7526: else
7527: echo "$as_me:$LINENO: result: no" >&5
7528: echo "${ECHO_T}no" >&6
7529: fi
7530:
7531: echo "$as_me:$LINENO: checking for arithmetic right shifts of int32_t" >&5
7532: echo $ECHO_N "checking for arithmetic right shifts of int32_t... $ECHO_C" >&6
7533: if test "${ac_cv_shiftsigned_int32_t+set}" = set; then
7534: echo $ECHO_N "(cached) $ECHO_C" >&6
7535: else
7536: if test "$cross_compiling" = yes; then
7537: ac_cv_shiftsigned_int32_t=0
7538: else
7539: cat >conftest.$ac_ext <<_ACEOF
7540: #line $LINENO "configure"
7541: /* confdefs.h. */
7542: _ACEOF
7543: cat confdefs.h >>conftest.$ac_ext
7544: cat >>conftest.$ac_ext <<_ACEOF
7545: /* end confdefs.h. */
7546: #include <stdio.h>
7547: #include <sys/types.h>
7548: main()
7549: {
7550: #if 8 == 32
7551: #define _type signed char
7552: #elif (SIZEOF_SHORT * 8) == 32
7553: #define _type signed short
7554: #elif (SIZEOF_INT * 8) == 32
7555: #define _type signed int
7556: #elif (SIZEOF_LONG * 8) == 32
7557: #define _type signed long
7558: #endif
7559: _type prime, shifted, dividend;
7560: unsigned int shift, divides;
7561: FILE *f;
7562:
7563: f=fopen("conftestval", "w");
7564: if (!f) exit(1);
7565:
7566: /* set value to the largest magnitude negative prime that it
7567: will hold: */
7568: #if 32 == 8
7569: prime = -127;
7570: #elif 32 == 16
7571: prime = -32749;
7572: #elif 32 == 32
7573: prime = -2147483647;
7574: #elif 32 == 64
7575: /* this is a crafty way of constructing -9223372036854775783,
7576: which is 0x8000000000000000 - 0x19, without having to know
7577: any compiler suffix for 64-bit literals: */
7578: prime = 1;
7579: prime <<= (32 - 2);
7580: prime = -prime;
7581: prime *= 2;
7582: prime -= 0x19;
7583: #else
7584: #error "need another prime"
7585: #endif
7586:
7587: /* all right shifts from a single bit up to SHIFTMAX_INT32_T
7588: must be arithmetic, otherwise shifts aren't arithmetic: */
7589: for (shift = 1;
7590: shift <= SHIFTMAX_INT32_T;
7591: shift++) {
7592: shifted = prime >> shift;
7593: dividend = prime;
7594: divides = 0;
7595: do {
7596: dividend &= ~((_type) 1); /* guarantee no remainder */
7597: dividend /= 2;
7598: } while (++divides < shift);
7599: if (shifted != dividend) {
7600: break;
7601: }
7602: }
7603:
7604: fprintf(f, "%d\n", (shift > SHIFTMAX_INT32_T ? 1 : 0));
7605: exit(0);
7606: }
7607: _ACEOF
7608: rm -f conftest$ac_exeext
7609: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610: (eval $ac_link) 2>&5
7611: ac_status=$?
7612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7614: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615: (eval $ac_try) 2>&5
7616: ac_status=$?
7617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618: (exit $ac_status); }; }; then
7619: ac_cv_shiftsigned_int32_t=`cat conftestval`
7620: else
7621: echo "$as_me: program exited with status $ac_status" >&5
7622: echo "$as_me: failed program was:" >&5
7623: sed 's/^/| /' conftest.$ac_ext >&5
7624:
7625: ( exit $ac_status )
7626: ac_cv_shiftsigned_int32_t=0
7627: fi
7628: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7629: fi
7630: fi
7631: if test $ac_cv_shiftsigned_int32_t = 1; then
7632: echo "$as_me:$LINENO: result: yes" >&5
7633: echo "${ECHO_T}yes" >&6
7634:
7635: cat >>confdefs.h <<_ACEOF
7636: #define SHIFTSIGNED_INT32_T
7637: _ACEOF
7638:
7639: else
7640: echo "$as_me:$LINENO: result: no" >&5
7641: echo "${ECHO_T}no" >&6
7642: fi
7643:
7644: echo "$as_me:$LINENO: checking the floating point format of float" >&5
7645: echo $ECHO_N "checking the floating point format of float... $ECHO_C" >&6
7646: if test "${ac_cv_float_format_float+set}" = set; then
7647: echo $ECHO_N "(cached) $ECHO_C" >&6
7648: else
7649: if test "$cross_compiling" = yes; then
7650: ac_cv_float_format_float=NATIVE
7651: else
7652: cat >conftest.$ac_ext <<_ACEOF
7653: #line $LINENO "configure"
7654: /* confdefs.h. */
7655: _ACEOF
7656: cat confdefs.h >>conftest.$ac_ext
7657: cat >>conftest.$ac_ext <<_ACEOF
7658: /* end confdefs.h. */
7659: #include <stdio.h>
7660: #include <sys/types.h>
7661: main()
7662: {
7663: float value;
7664: unsigned short value_buffer[16];
7665: #ifdef WORDS_BIGENDIAN
7666: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
7667: #else
7668: #define UINT16_PART(v, i) (value_buffer[(i)])
7669: #endif
7670:
7671: FILE *f=fopen("conftestval", "w");
7672: if (!f) exit(1);
7673:
7674: /* see if this type is IEEE754 single precision: */
7675: value = 3.4793309169e-05;
7676: memcpy(value_buffer, &value, sizeof(value));
7677: if (sizeof(value) == 4
7678: && UINT16_PART(value, 1) == 0x3811
7679: && UINT16_PART(value, 0) == 0xef08) {
7680: fprintf(f, "IEEE754_SINGLE\n");
7681: exit (0);
7682: }
7683:
7684: /* see if this type is IEEE754 double precision: */
7685: value = 7.91534994289814532176e-04;
7686: memcpy(value_buffer, &value, sizeof(value));
7687: if (sizeof(value) == 8
7688: && UINT16_PART(value, 3) == 0x3f49
7689: && UINT16_PART(value, 2) == 0xefe0
7690: && UINT16_PART(value, 1) == 0x7501
7691: && UINT16_PART(value, 0) == 0xb288) {
7692: fprintf(f, "IEEE754_DOUBLE\n");
7693: exit (0);
7694: }
7695:
7696: /* see if this type might be IEEE754 extended 80-bit precision: */
7697: value = 1.1356523406294143949491931077970765006170e+04;
7698: memcpy(value_buffer, &value, sizeof(value));
7699: if (sizeof(value) >= 12
7700: && UINT16_PART(value, 0) == 0x7800
7701: && UINT16_PART(value, 1) == 0xd1cf
7702: && UINT16_PART(value, 2) == 0x17f7
7703: && UINT16_PART(value, 3) == 0xb172) {
7704:
7705: /* check for i387-style IEEE754 extended precision: */
7706: if (sizeof(value) == 12
7707: && UINT16_PART(value, 4) == 0x400c) {
7708: fprintf(f, "IEEE754_EXTENDED80_I387\n");
7709: exit (0);
7710: }
7711:
7712: /* check for m68881-style IEEE754 extended precision: */
7713: if (sizeof(value) == 12
7714: && UINT16_PART(value, 5) == 0x400c) {
7715: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
7716: exit (0);
1.1 root 7717: }
7718: }
1.1.1.3 root 7719:
7720: /* otherwise, this is some native type: */
7721: fprintf(f, "NATIVE\n");
7722: exit (0);
1.1 root 7723: }
7724: _ACEOF
7725: rm -f conftest$ac_exeext
7726: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727: (eval $ac_link) 2>&5
7728: ac_status=$?
7729: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7731: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732: (eval $ac_try) 2>&5
7733: ac_status=$?
7734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735: (exit $ac_status); }; }; then
1.1.1.3 root 7736: ac_cv_float_format_float=`cat conftestval`
1.1 root 7737: else
7738: echo "$as_me: program exited with status $ac_status" >&5
7739: echo "$as_me: failed program was:" >&5
7740: sed 's/^/| /' conftest.$ac_ext >&5
7741:
7742: ( exit $ac_status )
1.1.1.3 root 7743: ac_cv_float_format_float=NATIVE
1.1 root 7744: fi
7745: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7746: fi
7747: fi
1.1.1.3 root 7748: echo "$as_me:$LINENO: result: $ac_cv_float_format_float" >&5
7749: echo "${ECHO_T}$ac_cv_float_format_float" >&6
7750: if test $ac_cv_float_format_float != NATIVE; then
1.1 root 7751:
7752: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 7753: #define FLOAT_FORMAT_FLOAT $ac_cv_float_format_float
1.1 root 7754: _ACEOF
7755:
1.1.1.3 root 7756: fi
1.1 root 7757:
1.1.1.3 root 7758: echo "$as_me:$LINENO: checking the limits of float" >&5
7759: echo $ECHO_N "checking the limits of float... $ECHO_C" >&6
7760: if test "${ac_cv_float_limits_float+set}" = set; then
7761: echo $ECHO_N "(cached) $ECHO_C" >&6
7762: else
7763: for limits in FLT_MAX/FLT_MIN; do
7764: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
7765: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
7766: cat >conftest.$ac_ext <<_ACEOF
7767: #line $LINENO "configure"
7768: /* confdefs.h. */
7769: _ACEOF
7770: cat confdefs.h >>conftest.$ac_ext
7771: cat >>conftest.$ac_ext <<_ACEOF
7772: /* end confdefs.h. */
7773: #include <sys/types.h>
7774: #ifdef HAVE_FLOAT_H
7775: #include <float.h>
7776: #endif
7777: #ifdef HAVE_LIMITS_H
7778: #include <limits.h>
7779: #endif
7780: int
7781: main ()
7782: {
7783: float x; x = $max - $min;
7784: ;
7785: return 0;
7786: }
7787: _ACEOF
7788: rm -f conftest.$ac_objext
7789: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790: (eval $ac_compile) 2>&5
7791: ac_status=$?
7792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793: (exit $ac_status); } &&
7794: { ac_try='test -s conftest.$ac_objext'
7795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796: (eval $ac_try) 2>&5
7797: ac_status=$?
7798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799: (exit $ac_status); }; }; then
7800: ac_cv_float_limits_float=$limits ; break
7801: else
7802: echo "$as_me: failed program was:" >&5
7803: sed 's/^/| /' conftest.$ac_ext >&5
7804:
7805: ac_cv_float_limits_float=
7806: fi
7807: rm -f conftest.$ac_objext conftest.$ac_ext
7808: done
7809: fi
7810:
7811: if test "x$ac_cv_float_limits_float" = x; then
7812: { { echo "$as_me:$LINENO: error: can't determine the limits of float" >&5
7813: echo "$as_me: error: can't determine the limits of float" >&2;}
7814: { (exit 1); exit 1; }; }
7815: fi
7816: echo "$as_me:$LINENO: result: $ac_cv_float_limits_float" >&5
7817: echo "${ECHO_T}$ac_cv_float_limits_float" >&6
7818: max=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
7819: min=`echo $ac_cv_float_limits_float | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
7820:
7821: cat >>confdefs.h <<_ACEOF
7822: #define FLOAT_MAX_FLOAT ($max)
7823: _ACEOF
7824:
7825:
7826: cat >>confdefs.h <<_ACEOF
7827: #define FLOAT_MIN_FLOAT ($min)
7828: _ACEOF
7829:
7830:
7831: echo "$as_me:$LINENO: checking the floating point format of double" >&5
7832: echo $ECHO_N "checking the floating point format of double... $ECHO_C" >&6
7833: if test "${ac_cv_float_format_double+set}" = set; then
1.1 root 7834: echo $ECHO_N "(cached) $ECHO_C" >&6
7835: else
7836: if test "$cross_compiling" = yes; then
1.1.1.3 root 7837: ac_cv_float_format_double=NATIVE
1.1 root 7838: else
7839: cat >conftest.$ac_ext <<_ACEOF
7840: #line $LINENO "configure"
7841: /* confdefs.h. */
7842: _ACEOF
7843: cat confdefs.h >>conftest.$ac_ext
7844: cat >>conftest.$ac_ext <<_ACEOF
7845: /* end confdefs.h. */
7846: #include <stdio.h>
7847: #include <sys/types.h>
7848: main()
7849: {
1.1.1.3 root 7850: double value;
7851: unsigned short value_buffer[16];
7852: #ifdef WORDS_BIGENDIAN
7853: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
7854: #else
7855: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 7856: #endif
1.1.1.3 root 7857:
1.1 root 7858: FILE *f=fopen("conftestval", "w");
7859: if (!f) exit(1);
1.1.1.3 root 7860:
7861: /* see if this type is IEEE754 single precision: */
7862: value = 3.4793309169e-05;
7863: memcpy(value_buffer, &value, sizeof(value));
7864: if (sizeof(value) == 4
7865: && UINT16_PART(value, 1) == 0x3811
7866: && UINT16_PART(value, 0) == 0xef08) {
7867: fprintf(f, "IEEE754_SINGLE\n");
7868: exit (0);
7869: }
7870:
7871: /* see if this type is IEEE754 double precision: */
7872: value = 7.91534994289814532176e-04;
7873: memcpy(value_buffer, &value, sizeof(value));
7874: if (sizeof(value) == 8
7875: && UINT16_PART(value, 3) == 0x3f49
7876: && UINT16_PART(value, 2) == 0xefe0
7877: && UINT16_PART(value, 1) == 0x7501
7878: && UINT16_PART(value, 0) == 0xb288) {
7879: fprintf(f, "IEEE754_DOUBLE\n");
7880: exit (0);
7881: }
7882:
7883: /* see if this type might be IEEE754 extended 80-bit precision: */
7884: value = 1.1356523406294143949491931077970765006170e+04;
7885: memcpy(value_buffer, &value, sizeof(value));
7886: if (sizeof(value) >= 12
7887: && UINT16_PART(value, 0) == 0x7800
7888: && UINT16_PART(value, 1) == 0xd1cf
7889: && UINT16_PART(value, 2) == 0x17f7
7890: && UINT16_PART(value, 3) == 0xb172) {
7891:
7892: /* check for i387-style IEEE754 extended precision: */
7893: if (sizeof(value) == 12
7894: && UINT16_PART(value, 4) == 0x400c) {
7895: fprintf(f, "IEEE754_EXTENDED80_I387\n");
7896: exit (0);
7897: }
7898:
7899: /* check for m68881-style IEEE754 extended precision: */
7900: if (sizeof(value) == 12
7901: && UINT16_PART(value, 5) == 0x400c) {
7902: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
7903: exit (0);
1.1 root 7904: }
7905: }
1.1.1.3 root 7906:
7907: /* otherwise, this is some native type: */
7908: fprintf(f, "NATIVE\n");
7909: exit (0);
1.1 root 7910: }
7911: _ACEOF
7912: rm -f conftest$ac_exeext
7913: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914: (eval $ac_link) 2>&5
7915: ac_status=$?
7916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7918: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919: (eval $ac_try) 2>&5
7920: ac_status=$?
7921: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922: (exit $ac_status); }; }; then
1.1.1.3 root 7923: ac_cv_float_format_double=`cat conftestval`
1.1 root 7924: else
7925: echo "$as_me: program exited with status $ac_status" >&5
7926: echo "$as_me: failed program was:" >&5
7927: sed 's/^/| /' conftest.$ac_ext >&5
7928:
7929: ( exit $ac_status )
1.1.1.3 root 7930: ac_cv_float_format_double=NATIVE
1.1 root 7931: fi
7932: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7933: fi
7934: fi
1.1.1.3 root 7935: echo "$as_me:$LINENO: result: $ac_cv_float_format_double" >&5
7936: echo "${ECHO_T}$ac_cv_float_format_double" >&6
7937: if test $ac_cv_float_format_double != NATIVE; then
1.1 root 7938:
7939: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 7940: #define FLOAT_FORMAT_DOUBLE $ac_cv_float_format_double
1.1 root 7941: _ACEOF
7942:
1.1.1.3 root 7943: fi
1.1 root 7944:
1.1.1.3 root 7945: echo "$as_me:$LINENO: checking the limits of double" >&5
7946: echo $ECHO_N "checking the limits of double... $ECHO_C" >&6
7947: if test "${ac_cv_float_limits_double+set}" = set; then
7948: echo $ECHO_N "(cached) $ECHO_C" >&6
7949: else
7950: for limits in DBL_MAX/DBL_MIN; do
7951: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
7952: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
7953: cat >conftest.$ac_ext <<_ACEOF
7954: #line $LINENO "configure"
7955: /* confdefs.h. */
7956: _ACEOF
7957: cat confdefs.h >>conftest.$ac_ext
7958: cat >>conftest.$ac_ext <<_ACEOF
7959: /* end confdefs.h. */
7960: #include <sys/types.h>
7961: #ifdef HAVE_FLOAT_H
7962: #include <float.h>
7963: #endif
7964: #ifdef HAVE_LIMITS_H
7965: #include <limits.h>
7966: #endif
7967: int
7968: main ()
7969: {
7970: double x; x = $max - $min;
7971: ;
7972: return 0;
7973: }
7974: _ACEOF
7975: rm -f conftest.$ac_objext
7976: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977: (eval $ac_compile) 2>&5
7978: ac_status=$?
7979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980: (exit $ac_status); } &&
7981: { ac_try='test -s conftest.$ac_objext'
7982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983: (eval $ac_try) 2>&5
7984: ac_status=$?
7985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986: (exit $ac_status); }; }; then
7987: ac_cv_float_limits_double=$limits ; break
7988: else
7989: echo "$as_me: failed program was:" >&5
7990: sed 's/^/| /' conftest.$ac_ext >&5
7991:
7992: ac_cv_float_limits_double=
7993: fi
7994: rm -f conftest.$ac_objext conftest.$ac_ext
7995: done
7996: fi
7997:
7998: if test "x$ac_cv_float_limits_double" = x; then
7999: { { echo "$as_me:$LINENO: error: can't determine the limits of double" >&5
8000: echo "$as_me: error: can't determine the limits of double" >&2;}
8001: { (exit 1); exit 1; }; }
8002: fi
8003: echo "$as_me:$LINENO: result: $ac_cv_float_limits_double" >&5
8004: echo "${ECHO_T}$ac_cv_float_limits_double" >&6
8005: max=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
8006: min=`echo $ac_cv_float_limits_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
8007:
8008: cat >>confdefs.h <<_ACEOF
8009: #define FLOAT_MAX_DOUBLE ($max)
8010: _ACEOF
8011:
8012:
8013: cat >>confdefs.h <<_ACEOF
8014: #define FLOAT_MIN_DOUBLE ($min)
8015: _ACEOF
8016:
8017:
8018: if test $ac_cv_c_long_double = yes; then
8019: echo "$as_me:$LINENO: checking the floating point format of long double" >&5
8020: echo $ECHO_N "checking the floating point format of long double... $ECHO_C" >&6
8021: if test "${ac_cv_float_format_long_double+set}" = set; then
1.1 root 8022: echo $ECHO_N "(cached) $ECHO_C" >&6
8023: else
8024: if test "$cross_compiling" = yes; then
1.1.1.3 root 8025: ac_cv_float_format_long_double=NATIVE
1.1 root 8026: else
8027: cat >conftest.$ac_ext <<_ACEOF
8028: #line $LINENO "configure"
8029: /* confdefs.h. */
8030: _ACEOF
8031: cat confdefs.h >>conftest.$ac_ext
8032: cat >>conftest.$ac_ext <<_ACEOF
8033: /* end confdefs.h. */
8034: #include <stdio.h>
8035: #include <sys/types.h>
8036: main()
8037: {
1.1.1.3 root 8038: long double value;
8039: unsigned short value_buffer[16];
8040: #ifdef WORDS_BIGENDIAN
8041: #define UINT16_PART(v, i) (value_buffer[(sizeof(v) / sizeof(value_buffer[0])) - ((i) + 1)])
8042: #else
8043: #define UINT16_PART(v, i) (value_buffer[(i)])
1.1 root 8044: #endif
1.1.1.3 root 8045:
1.1 root 8046: FILE *f=fopen("conftestval", "w");
8047: if (!f) exit(1);
1.1.1.3 root 8048:
8049: /* see if this type is IEEE754 single precision: */
8050: value = 3.4793309169e-05;
8051: memcpy(value_buffer, &value, sizeof(value));
8052: if (sizeof(value) == 4
8053: && UINT16_PART(value, 1) == 0x3811
8054: && UINT16_PART(value, 0) == 0xef08) {
8055: fprintf(f, "IEEE754_SINGLE\n");
8056: exit (0);
8057: }
8058:
8059: /* see if this type is IEEE754 double precision: */
8060: value = 7.91534994289814532176e-04;
8061: memcpy(value_buffer, &value, sizeof(value));
8062: if (sizeof(value) == 8
8063: && UINT16_PART(value, 3) == 0x3f49
8064: && UINT16_PART(value, 2) == 0xefe0
8065: && UINT16_PART(value, 1) == 0x7501
8066: && UINT16_PART(value, 0) == 0xb288) {
8067: fprintf(f, "IEEE754_DOUBLE\n");
8068: exit (0);
8069: }
8070:
8071: /* see if this type might be IEEE754 extended 80-bit precision: */
8072: value = 1.1356523406294143949491931077970765006170e+04;
8073: memcpy(value_buffer, &value, sizeof(value));
8074: if (sizeof(value) >= 12
8075: && UINT16_PART(value, 0) == 0x7800
8076: && UINT16_PART(value, 1) == 0xd1cf
8077: && UINT16_PART(value, 2) == 0x17f7
8078: && UINT16_PART(value, 3) == 0xb172) {
8079:
8080: /* check for i387-style IEEE754 extended precision: */
8081: if (sizeof(value) == 12
8082: && UINT16_PART(value, 4) == 0x400c) {
8083: fprintf(f, "IEEE754_EXTENDED80_I387\n");
8084: exit (0);
8085: }
8086:
8087: /* check for m68881-style IEEE754 extended precision: */
8088: if (sizeof(value) == 12
8089: && UINT16_PART(value, 5) == 0x400c) {
8090: fprintf(f, "IEEE754_EXTENDED80_M68881\n");
8091: exit (0);
1.1 root 8092: }
8093: }
1.1.1.3 root 8094:
8095: /* otherwise, this is some native type: */
8096: fprintf(f, "NATIVE\n");
8097: exit (0);
1.1 root 8098: }
8099: _ACEOF
8100: rm -f conftest$ac_exeext
8101: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102: (eval $ac_link) 2>&5
8103: ac_status=$?
8104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8106: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107: (eval $ac_try) 2>&5
8108: ac_status=$?
8109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110: (exit $ac_status); }; }; then
1.1.1.3 root 8111: ac_cv_float_format_long_double=`cat conftestval`
1.1 root 8112: else
8113: echo "$as_me: program exited with status $ac_status" >&5
8114: echo "$as_me: failed program was:" >&5
8115: sed 's/^/| /' conftest.$ac_ext >&5
8116:
8117: ( exit $ac_status )
1.1.1.3 root 8118: ac_cv_float_format_long_double=NATIVE
1.1 root 8119: fi
8120: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8121: fi
8122: fi
1.1.1.3 root 8123: echo "$as_me:$LINENO: result: $ac_cv_float_format_long_double" >&5
8124: echo "${ECHO_T}$ac_cv_float_format_long_double" >&6
8125: if test $ac_cv_float_format_long_double != NATIVE; then
1.1 root 8126:
8127: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 8128: #define FLOAT_FORMAT_LONG_DOUBLE $ac_cv_float_format_long_double
1.1 root 8129: _ACEOF
8130:
1.1.1.3 root 8131: fi
1.1 root 8132:
1.1.1.3 root 8133: echo "$as_me:$LINENO: checking the limits of long double" >&5
8134: echo $ECHO_N "checking the limits of long double... $ECHO_C" >&6
8135: if test "${ac_cv_float_limits_long_double+set}" = set; then
1.1 root 8136: echo $ECHO_N "(cached) $ECHO_C" >&6
8137: else
1.1.1.3 root 8138: for limits in LDBL_MAX/LDBL_MIN; do
8139: max=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
8140: min=`echo $limits | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 8141: cat >conftest.$ac_ext <<_ACEOF
8142: #line $LINENO "configure"
8143: /* confdefs.h. */
8144: _ACEOF
8145: cat confdefs.h >>conftest.$ac_ext
8146: cat >>conftest.$ac_ext <<_ACEOF
8147: /* end confdefs.h. */
8148: #include <sys/types.h>
1.1.1.3 root 8149: #ifdef HAVE_FLOAT_H
8150: #include <float.h>
1.1 root 8151: #endif
1.1.1.3 root 8152: #ifdef HAVE_LIMITS_H
8153: #include <limits.h>
8154: #endif
8155: int
8156: main ()
8157: {
8158: long double x; x = $max - $min;
8159: ;
8160: return 0;
1.1 root 8161: }
8162: _ACEOF
1.1.1.3 root 8163: rm -f conftest.$ac_objext
8164: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165: (eval $ac_compile) 2>&5
1.1 root 8166: ac_status=$?
8167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.3 root 8168: (exit $ac_status); } &&
8169: { ac_try='test -s conftest.$ac_objext'
1.1 root 8170: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171: (eval $ac_try) 2>&5
8172: ac_status=$?
8173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174: (exit $ac_status); }; }; then
1.1.1.3 root 8175: ac_cv_float_limits_long_double=$limits ; break
1.1 root 8176: else
1.1.1.3 root 8177: echo "$as_me: failed program was:" >&5
1.1 root 8178: sed 's/^/| /' conftest.$ac_ext >&5
8179:
1.1.1.3 root 8180: ac_cv_float_limits_long_double=
1.1 root 8181: fi
1.1.1.3 root 8182: rm -f conftest.$ac_objext conftest.$ac_ext
8183: done
1.1 root 8184: fi
1.1.1.3 root 8185:
8186: if test "x$ac_cv_float_limits_long_double" = x; then
8187: { { echo "$as_me:$LINENO: error: can't determine the limits of long double" >&5
8188: echo "$as_me: error: can't determine the limits of long double" >&2;}
8189: { (exit 1); exit 1; }; }
1.1 root 8190: fi
1.1.1.3 root 8191: echo "$as_me:$LINENO: result: $ac_cv_float_limits_long_double" >&5
8192: echo "${ECHO_T}$ac_cv_float_limits_long_double" >&6
8193: max=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\1%'`
8194: min=`echo $ac_cv_float_limits_long_double | sed -e 's%^\(.*\)/\(.*\)$%\2%'`
1.1 root 8195:
8196: cat >>confdefs.h <<_ACEOF
1.1.1.3 root 8197: #define FLOAT_MAX_LONG_DOUBLE ($max)
8198: _ACEOF
8199:
8200:
8201: cat >>confdefs.h <<_ACEOF
8202: #define FLOAT_MIN_LONG_DOUBLE ($min)
1.1 root 8203: _ACEOF
8204:
8205:
1.1.1.3 root 8206: fi
1.1 root 8207: echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
8208: echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
8209: if test "${ac_cv_sys_sockaddr_sa_len+set}" = set; then
8210: echo $ECHO_N "(cached) $ECHO_C" >&6
8211: else
8212: cat >conftest.$ac_ext <<_ACEOF
8213: #line $LINENO "configure"
8214: /* confdefs.h. */
8215: _ACEOF
8216: cat confdefs.h >>conftest.$ac_ext
8217: cat >>conftest.$ac_ext <<_ACEOF
8218: /* end confdefs.h. */
8219:
8220: #include <sys/types.h>
8221: #include <sys/socket.h>
8222:
8223: int
8224: main ()
8225: {
8226:
8227: int length;
8228: struct sockaddr sock;
8229: length = sock.sa_len;
8230:
8231: ;
8232: return 0;
8233: }
8234: _ACEOF
8235: rm -f conftest.$ac_objext
8236: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237: (eval $ac_compile) 2>&5
8238: ac_status=$?
8239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240: (exit $ac_status); } &&
8241: { ac_try='test -s conftest.$ac_objext'
8242: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243: (eval $ac_try) 2>&5
8244: ac_status=$?
8245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246: (exit $ac_status); }; }; then
8247: ac_cv_sys_sockaddr_sa_len=yes
8248: else
8249: echo "$as_me: failed program was:" >&5
8250: sed 's/^/| /' conftest.$ac_ext >&5
8251:
8252: ac_cv_sys_sockaddr_sa_len=no
8253: fi
8254: rm -f conftest.$ac_objext conftest.$ac_ext
8255: fi
8256: if test $ac_cv_sys_sockaddr_sa_len = yes; then
8257: echo "$as_me:$LINENO: result: yes" >&5
8258: echo "${ECHO_T}yes" >&6
8259:
8260: cat >>confdefs.h <<_ACEOF
8261: #define HAVE_SOCKADDR_SA_LEN
8262: _ACEOF
8263:
8264: else
8265: echo "$as_me:$LINENO: result: no" >&5
8266: echo "${ECHO_T}no" >&6
8267: fi
8268:
8269:
8270: if test $ac_cv_c_compiler_gnu = yes; then
8271: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8272: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8273: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8274: echo $ECHO_N "(cached) $ECHO_C" >&6
8275: else
8276: ac_pattern="Autoconf.*'x'"
8277: cat >conftest.$ac_ext <<_ACEOF
8278: #line $LINENO "configure"
8279: /* confdefs.h. */
8280: _ACEOF
8281: cat confdefs.h >>conftest.$ac_ext
8282: cat >>conftest.$ac_ext <<_ACEOF
8283: /* end confdefs.h. */
8284: #include <sgtty.h>
8285: Autoconf TIOCGETP
8286: _ACEOF
8287: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8288: $EGREP "$ac_pattern" >/dev/null 2>&1; then
8289: ac_cv_prog_gcc_traditional=yes
8290: else
8291: ac_cv_prog_gcc_traditional=no
8292: fi
8293: rm -f conftest*
8294:
8295:
8296: if test $ac_cv_prog_gcc_traditional = no; then
8297: cat >conftest.$ac_ext <<_ACEOF
8298: #line $LINENO "configure"
8299: /* confdefs.h. */
8300: _ACEOF
8301: cat confdefs.h >>conftest.$ac_ext
8302: cat >>conftest.$ac_ext <<_ACEOF
8303: /* end confdefs.h. */
8304: #include <termio.h>
8305: Autoconf TCGETA
8306: _ACEOF
8307: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308: $EGREP "$ac_pattern" >/dev/null 2>&1; then
8309: ac_cv_prog_gcc_traditional=yes
8310: fi
8311: rm -f conftest*
8312:
8313: fi
8314: fi
8315: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8316: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
8317: if test $ac_cv_prog_gcc_traditional = yes; then
8318: CC="$CC -traditional"
8319: fi
8320: fi
8321:
8322: echo "$as_me:$LINENO: checking for working memcmp" >&5
8323: echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8324: if test "${ac_cv_func_memcmp_working+set}" = set; then
8325: echo $ECHO_N "(cached) $ECHO_C" >&6
8326: else
8327: if test "$cross_compiling" = yes; then
8328: ac_cv_func_memcmp_working=no
8329: else
8330: cat >conftest.$ac_ext <<_ACEOF
8331: #line $LINENO "configure"
8332: /* confdefs.h. */
8333: _ACEOF
8334: cat confdefs.h >>conftest.$ac_ext
8335: cat >>conftest.$ac_ext <<_ACEOF
8336: /* end confdefs.h. */
8337:
8338: int
8339: main ()
8340: {
8341:
8342: /* Some versions of memcmp are not 8-bit clean. */
8343: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8344: if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8345: exit (1);
8346:
8347: /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8348: or more and with at least one buffer not starting on a 4-byte boundary.
8349: William Lewis provided this test program. */
8350: {
8351: char foo[21];
8352: char bar[21];
8353: int i;
8354: for (i = 0; i < 4; i++)
8355: {
8356: char *a = foo + i;
8357: char *b = bar + i;
8358: strcpy (a, "--------01111111");
8359: strcpy (b, "--------10000000");
8360: if (memcmp (a, b, 16) >= 0)
8361: exit (1);
8362: }
8363: exit (0);
8364: }
8365:
8366: ;
8367: return 0;
8368: }
8369: _ACEOF
8370: rm -f conftest$ac_exeext
8371: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372: (eval $ac_link) 2>&5
8373: ac_status=$?
8374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8376: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377: (eval $ac_try) 2>&5
8378: ac_status=$?
8379: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380: (exit $ac_status); }; }; then
8381: ac_cv_func_memcmp_working=yes
8382: else
8383: echo "$as_me: program exited with status $ac_status" >&5
8384: echo "$as_me: failed program was:" >&5
8385: sed 's/^/| /' conftest.$ac_ext >&5
8386:
8387: ( exit $ac_status )
8388: ac_cv_func_memcmp_working=no
8389: fi
8390: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391: fi
8392: fi
8393: echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8394: echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8395: test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8396:
8397:
8398:
8399: for ac_header in stdlib.h unistd.h
8400: do
8401: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8403: echo "$as_me:$LINENO: checking for $ac_header" >&5
8404: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8405: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8406: echo $ECHO_N "(cached) $ECHO_C" >&6
8407: fi
8408: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8409: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8410: else
8411: # Is the header compilable?
8412: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8413: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8414: cat >conftest.$ac_ext <<_ACEOF
8415: #line $LINENO "configure"
8416: /* confdefs.h. */
8417: _ACEOF
8418: cat confdefs.h >>conftest.$ac_ext
8419: cat >>conftest.$ac_ext <<_ACEOF
8420: /* end confdefs.h. */
8421: $ac_includes_default
8422: #include <$ac_header>
8423: _ACEOF
8424: rm -f conftest.$ac_objext
8425: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8426: (eval $ac_compile) 2>&5
8427: ac_status=$?
8428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429: (exit $ac_status); } &&
8430: { ac_try='test -s conftest.$ac_objext'
8431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432: (eval $ac_try) 2>&5
8433: ac_status=$?
8434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435: (exit $ac_status); }; }; then
8436: ac_header_compiler=yes
8437: else
8438: echo "$as_me: failed program was:" >&5
8439: sed 's/^/| /' conftest.$ac_ext >&5
8440:
8441: ac_header_compiler=no
8442: fi
8443: rm -f conftest.$ac_objext conftest.$ac_ext
8444: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445: echo "${ECHO_T}$ac_header_compiler" >&6
8446:
8447: # Is the header present?
8448: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450: cat >conftest.$ac_ext <<_ACEOF
8451: #line $LINENO "configure"
8452: /* confdefs.h. */
8453: _ACEOF
8454: cat confdefs.h >>conftest.$ac_ext
8455: cat >>conftest.$ac_ext <<_ACEOF
8456: /* end confdefs.h. */
8457: #include <$ac_header>
8458: _ACEOF
8459: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8460: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8461: ac_status=$?
8462: grep -v '^ *+' conftest.er1 >conftest.err
8463: rm -f conftest.er1
8464: cat conftest.err >&5
8465: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466: (exit $ac_status); } >/dev/null; then
8467: if test -s conftest.err; then
8468: ac_cpp_err=$ac_c_preproc_warn_flag
8469: else
8470: ac_cpp_err=
8471: fi
8472: else
8473: ac_cpp_err=yes
8474: fi
8475: if test -z "$ac_cpp_err"; then
8476: ac_header_preproc=yes
8477: else
8478: echo "$as_me: failed program was:" >&5
8479: sed 's/^/| /' conftest.$ac_ext >&5
8480:
8481: ac_header_preproc=no
8482: fi
8483: rm -f conftest.err conftest.$ac_ext
8484: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485: echo "${ECHO_T}$ac_header_preproc" >&6
8486:
8487: # So? What about this header?
8488: case $ac_header_compiler:$ac_header_preproc in
8489: yes:no )
8490: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8494: (
8495: cat <<\_ASBOX
8496: ## ------------------------------------ ##
8497: ## Report this to [email protected]. ##
8498: ## ------------------------------------ ##
8499: _ASBOX
8500: ) |
8501: sed "s/^/$as_me: WARNING: /" >&2
8502: ;;
8503: no:yes )
8504: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8505: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8506: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8507: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8508: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8509: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8510: (
8511: cat <<\_ASBOX
8512: ## ------------------------------------ ##
8513: ## Report this to [email protected]. ##
8514: ## ------------------------------------ ##
8515: _ASBOX
8516: ) |
8517: sed "s/^/$as_me: WARNING: /" >&2
8518: ;;
8519: esac
8520: echo "$as_me:$LINENO: checking for $ac_header" >&5
8521: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8522: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8523: echo $ECHO_N "(cached) $ECHO_C" >&6
8524: else
8525: eval "$as_ac_Header=$ac_header_preproc"
8526: fi
8527: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8528: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8529:
8530: fi
8531: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8532: cat >>confdefs.h <<_ACEOF
8533: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8534: _ACEOF
8535:
8536: fi
8537:
8538: done
8539:
8540:
8541: for ac_func in getpagesize
8542: do
8543: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8544: echo "$as_me:$LINENO: checking for $ac_func" >&5
8545: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8546: if eval "test \"\${$as_ac_var+set}\" = set"; then
8547: echo $ECHO_N "(cached) $ECHO_C" >&6
8548: else
8549: cat >conftest.$ac_ext <<_ACEOF
8550: #line $LINENO "configure"
8551: /* confdefs.h. */
8552: _ACEOF
8553: cat confdefs.h >>conftest.$ac_ext
8554: cat >>conftest.$ac_ext <<_ACEOF
8555: /* end confdefs.h. */
8556: /* System header to define __stub macros and hopefully few prototypes,
8557: which can conflict with char $ac_func (); below.
8558: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8559: <limits.h> exists even on freestanding compilers. */
8560: #ifdef __STDC__
8561: # include <limits.h>
8562: #else
8563: # include <assert.h>
8564: #endif
8565: /* Override any gcc2 internal prototype to avoid an error. */
8566: #ifdef __cplusplus
8567: extern "C"
8568: {
8569: #endif
8570: /* We use char because int might match the return type of a gcc2
8571: builtin and then its argument prototype would still apply. */
8572: char $ac_func ();
8573: /* The GNU C library defines this for functions which it implements
8574: to always fail with ENOSYS. Some functions are actually named
8575: something starting with __ and the normal name is an alias. */
8576: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8577: choke me
8578: #else
8579: char (*f) () = $ac_func;
8580: #endif
8581: #ifdef __cplusplus
8582: }
8583: #endif
8584:
8585: int
8586: main ()
8587: {
8588: return f != $ac_func;
8589: ;
8590: return 0;
8591: }
8592: _ACEOF
8593: rm -f conftest.$ac_objext conftest$ac_exeext
8594: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595: (eval $ac_link) 2>&5
8596: ac_status=$?
8597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598: (exit $ac_status); } &&
8599: { ac_try='test -s conftest$ac_exeext'
8600: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601: (eval $ac_try) 2>&5
8602: ac_status=$?
8603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604: (exit $ac_status); }; }; then
8605: eval "$as_ac_var=yes"
8606: else
8607: echo "$as_me: failed program was:" >&5
8608: sed 's/^/| /' conftest.$ac_ext >&5
8609:
8610: eval "$as_ac_var=no"
8611: fi
8612: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8613: fi
8614: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8615: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8616: if test `eval echo '${'$as_ac_var'}'` = yes; then
8617: cat >>confdefs.h <<_ACEOF
8618: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8619: _ACEOF
8620:
8621: fi
8622: done
8623:
8624: echo "$as_me:$LINENO: checking for working mmap" >&5
8625: echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8626: if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8627: echo $ECHO_N "(cached) $ECHO_C" >&6
8628: else
8629: if test "$cross_compiling" = yes; then
8630: ac_cv_func_mmap_fixed_mapped=no
8631: else
8632: cat >conftest.$ac_ext <<_ACEOF
8633: #line $LINENO "configure"
8634: /* confdefs.h. */
8635: _ACEOF
8636: cat confdefs.h >>conftest.$ac_ext
8637: cat >>conftest.$ac_ext <<_ACEOF
8638: /* end confdefs.h. */
8639: $ac_includes_default
8640: /* malloc might have been renamed as rpl_malloc. */
8641: #undef malloc
8642:
8643: /* Thanks to Mike Haertel and Jim Avera for this test.
8644: Here is a matrix of mmap possibilities:
8645: mmap private not fixed
8646: mmap private fixed at somewhere currently unmapped
8647: mmap private fixed at somewhere already mapped
8648: mmap shared not fixed
8649: mmap shared fixed at somewhere currently unmapped
8650: mmap shared fixed at somewhere already mapped
8651: For private mappings, we should verify that changes cannot be read()
8652: back from the file, nor mmap's back from the file at a different
8653: address. (There have been systems where private was not correctly
8654: implemented like the infamous i386 svr4.0, and systems where the
8655: VM page cache was not coherent with the file system buffer cache
8656: like early versions of FreeBSD and possibly contemporary NetBSD.)
8657: For shared mappings, we should conversely verify that changes get
8658: propagated back to all the places they're supposed to be.
8659:
8660: Grep wants private fixed already mapped.
8661: The main things grep needs to know about mmap are:
8662: * does it exist and is it safe to write into the mmap'd area
8663: * how to use it (BSD variants) */
8664:
8665: #include <fcntl.h>
8666: #include <sys/mman.h>
8667:
8668: #if !STDC_HEADERS && !HAVE_STDLIB_H
8669: char *malloc ();
8670: #endif
8671:
8672: /* This mess was copied from the GNU getpagesize.h. */
8673: #if !HAVE_GETPAGESIZE
8674: /* Assume that all systems that can run configure have sys/param.h. */
8675: # if !HAVE_SYS_PARAM_H
8676: # define HAVE_SYS_PARAM_H 1
8677: # endif
8678:
8679: # ifdef _SC_PAGESIZE
8680: # define getpagesize() sysconf(_SC_PAGESIZE)
8681: # else /* no _SC_PAGESIZE */
8682: # if HAVE_SYS_PARAM_H
8683: # include <sys/param.h>
8684: # ifdef EXEC_PAGESIZE
8685: # define getpagesize() EXEC_PAGESIZE
8686: # else /* no EXEC_PAGESIZE */
8687: # ifdef NBPG
8688: # define getpagesize() NBPG * CLSIZE
8689: # ifndef CLSIZE
8690: # define CLSIZE 1
8691: # endif /* no CLSIZE */
8692: # else /* no NBPG */
8693: # ifdef NBPC
8694: # define getpagesize() NBPC
8695: # else /* no NBPC */
8696: # ifdef PAGESIZE
8697: # define getpagesize() PAGESIZE
8698: # endif /* PAGESIZE */
8699: # endif /* no NBPC */
8700: # endif /* no NBPG */
8701: # endif /* no EXEC_PAGESIZE */
8702: # else /* no HAVE_SYS_PARAM_H */
8703: # define getpagesize() 8192 /* punt totally */
8704: # endif /* no HAVE_SYS_PARAM_H */
8705: # endif /* no _SC_PAGESIZE */
8706:
8707: #endif /* no HAVE_GETPAGESIZE */
8708:
8709: int
8710: main ()
8711: {
8712: char *data, *data2, *data3;
8713: int i, pagesize;
8714: int fd;
8715:
8716: pagesize = getpagesize ();
8717:
8718: /* First, make a file with some known garbage in it. */
8719: data = (char *) malloc (pagesize);
8720: if (!data)
8721: exit (1);
8722: for (i = 0; i < pagesize; ++i)
8723: *(data + i) = rand ();
8724: umask (0);
8725: fd = creat ("conftest.mmap", 0600);
8726: if (fd < 0)
8727: exit (1);
8728: if (write (fd, data, pagesize) != pagesize)
8729: exit (1);
8730: close (fd);
8731:
8732: /* Next, try to mmap the file at a fixed address which already has
8733: something else allocated at it. If we can, also make sure that
8734: we see the same garbage. */
8735: fd = open ("conftest.mmap", O_RDWR);
8736: if (fd < 0)
8737: exit (1);
8738: data2 = (char *) malloc (2 * pagesize);
8739: if (!data2)
8740: exit (1);
8741: data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8742: if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8743: MAP_PRIVATE | MAP_FIXED, fd, 0L))
8744: exit (1);
8745: for (i = 0; i < pagesize; ++i)
8746: if (*(data + i) != *(data2 + i))
8747: exit (1);
8748:
8749: /* Finally, make sure that changes to the mapped area do not
8750: percolate back to the file as seen by read(). (This is a bug on
8751: some variants of i386 svr4.0.) */
8752: for (i = 0; i < pagesize; ++i)
8753: *(data2 + i) = *(data2 + i) + 1;
8754: data3 = (char *) malloc (pagesize);
8755: if (!data3)
8756: exit (1);
8757: if (read (fd, data3, pagesize) != pagesize)
8758: exit (1);
8759: for (i = 0; i < pagesize; ++i)
8760: if (*(data + i) != *(data3 + i))
8761: exit (1);
8762: close (fd);
8763: exit (0);
8764: }
8765: _ACEOF
8766: rm -f conftest$ac_exeext
8767: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768: (eval $ac_link) 2>&5
8769: ac_status=$?
8770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773: (eval $ac_try) 2>&5
8774: ac_status=$?
8775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776: (exit $ac_status); }; }; then
8777: ac_cv_func_mmap_fixed_mapped=yes
8778: else
8779: echo "$as_me: program exited with status $ac_status" >&5
8780: echo "$as_me: failed program was:" >&5
8781: sed 's/^/| /' conftest.$ac_ext >&5
8782:
8783: ( exit $ac_status )
8784: ac_cv_func_mmap_fixed_mapped=no
8785: fi
8786: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8787: fi
8788: fi
8789: echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8790: echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8791: if test $ac_cv_func_mmap_fixed_mapped = yes; then
8792:
8793: cat >>confdefs.h <<\_ACEOF
8794: #define HAVE_MMAP 1
8795: _ACEOF
8796:
8797: fi
8798: rm -f conftest.mmap
8799:
1.1.1.3 root 8800: echo "$as_me:$LINENO: checking for bswap16" >&5
8801: echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
8802: if test "${ac_cv_have_bswap16+set}" = set; then
8803: echo $ECHO_N "(cached) $ECHO_C" >&6
8804: else
8805: ac_func_long_LIBS=$LIBS
8806: LIBS="${LIBS-} "
8807: cat >conftest.$ac_ext <<_ACEOF
8808: #line $LINENO "configure"
8809: /* confdefs.h. */
8810: _ACEOF
8811: cat confdefs.h >>conftest.$ac_ext
8812: cat >>conftest.$ac_ext <<_ACEOF
8813: /* end confdefs.h. */
8814:
8815:
8816: #ifdef HAVE_SYS_BSWAP_H
8817: #include <sys/bswap.h>
8818: #endif
8819:
8820:
8821: int
8822: main ()
8823: {
8824:
8825:
8826: unsigned int x;
8827:
8828: x = bswap16(0x1122);
8829:
8830:
8831: ;
8832: return 0;
8833: }
8834: _ACEOF
8835: rm -f conftest.$ac_objext conftest$ac_exeext
8836: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837: (eval $ac_link) 2>&5
8838: ac_status=$?
8839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840: (exit $ac_status); } &&
8841: { ac_try='test -s conftest$ac_exeext'
8842: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843: (eval $ac_try) 2>&5
8844: ac_status=$?
8845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846: (exit $ac_status); }; }; then
8847: ac_cv_have_bswap16=yes
8848: else
8849: echo "$as_me: failed program was:" >&5
8850: sed 's/^/| /' conftest.$ac_ext >&5
8851:
8852: ac_cv_have_bswap16=no
8853: fi
8854: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8855: LIBS=$ac_func_long_LIBS
8856: fi
8857: echo "$as_me:$LINENO: result: $ac_cv_have_bswap16" >&5
8858: echo "${ECHO_T}$ac_cv_have_bswap16" >&6
8859: if test $ac_cv_have_bswap16 = yes; then
8860:
8861: cat >>confdefs.h <<_ACEOF
8862: #define HAVE_BSWAP16
8863: _ACEOF
8864:
8865: fi
8866:
8867: echo "$as_me:$LINENO: checking for bswap32" >&5
8868: echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
8869: if test "${ac_cv_have_bswap32+set}" = set; then
8870: echo $ECHO_N "(cached) $ECHO_C" >&6
8871: else
8872: ac_func_long_LIBS=$LIBS
8873: LIBS="${LIBS-} "
8874: cat >conftest.$ac_ext <<_ACEOF
8875: #line $LINENO "configure"
8876: /* confdefs.h. */
8877: _ACEOF
8878: cat confdefs.h >>conftest.$ac_ext
8879: cat >>conftest.$ac_ext <<_ACEOF
8880: /* end confdefs.h. */
8881:
8882:
8883: #ifdef HAVE_SYS_BSWAP_H
8884: #include <sys/bswap.h>
8885: #endif
8886:
8887:
8888: int
8889: main ()
8890: {
8891:
8892:
8893: unsigned int x;
8894:
8895: x = bswap32(0x11223344);
8896:
8897:
8898: ;
8899: return 0;
8900: }
8901: _ACEOF
8902: rm -f conftest.$ac_objext conftest$ac_exeext
8903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904: (eval $ac_link) 2>&5
8905: ac_status=$?
8906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907: (exit $ac_status); } &&
8908: { ac_try='test -s conftest$ac_exeext'
8909: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910: (eval $ac_try) 2>&5
8911: ac_status=$?
8912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913: (exit $ac_status); }; }; then
8914: ac_cv_have_bswap32=yes
8915: else
8916: echo "$as_me: failed program was:" >&5
8917: sed 's/^/| /' conftest.$ac_ext >&5
8918:
8919: ac_cv_have_bswap32=no
8920: fi
8921: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922: LIBS=$ac_func_long_LIBS
8923: fi
8924: echo "$as_me:$LINENO: result: $ac_cv_have_bswap32" >&5
8925: echo "${ECHO_T}$ac_cv_have_bswap32" >&6
8926: if test $ac_cv_have_bswap32 = yes; then
8927:
8928: cat >>confdefs.h <<_ACEOF
8929: #define HAVE_BSWAP32
8930: _ACEOF
8931:
8932: fi
8933:
8934: echo "$as_me:$LINENO: checking for isinff" >&5
8935: echo $ECHO_N "checking for isinff... $ECHO_C" >&6
8936: if test "${ac_cv_have_isinff+set}" = set; then
8937: echo $ECHO_N "(cached) $ECHO_C" >&6
8938: else
8939: ac_func_long_LIBS=$LIBS
8940: LIBS="${LIBS-} -lm"
8941: cat >conftest.$ac_ext <<_ACEOF
8942: #line $LINENO "configure"
8943: /* confdefs.h. */
8944: _ACEOF
8945: cat confdefs.h >>conftest.$ac_ext
8946: cat >>conftest.$ac_ext <<_ACEOF
8947: /* end confdefs.h. */
8948:
8949:
8950: #include <math.h>
8951:
8952:
8953: int
8954: main ()
8955: {
8956:
8957:
8958: float x;
8959: int y;
8960:
8961: x = 1;
8962: y = isinff(x);
8963:
8964:
8965: ;
8966: return 0;
8967: }
8968: _ACEOF
8969: rm -f conftest.$ac_objext conftest$ac_exeext
8970: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971: (eval $ac_link) 2>&5
8972: ac_status=$?
8973: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974: (exit $ac_status); } &&
8975: { ac_try='test -s conftest$ac_exeext'
8976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977: (eval $ac_try) 2>&5
8978: ac_status=$?
8979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980: (exit $ac_status); }; }; then
8981: ac_cv_have_isinff=yes
8982: else
8983: echo "$as_me: failed program was:" >&5
8984: sed 's/^/| /' conftest.$ac_ext >&5
8985:
8986: ac_cv_have_isinff=no
8987: fi
8988: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8989: LIBS=$ac_func_long_LIBS
8990: fi
8991: echo "$as_me:$LINENO: result: $ac_cv_have_isinff" >&5
8992: echo "${ECHO_T}$ac_cv_have_isinff" >&6
8993: if test $ac_cv_have_isinff = yes; then
8994:
8995: cat >>confdefs.h <<_ACEOF
8996: #define HAVE_ISINFF
8997: _ACEOF
8998:
8999: fi
9000:
1.1 root 9001:
9002: for ac_prog in perl4.036 perl4 perl perl5
9003: do
9004: # Extract the first word of "$ac_prog", so it can be a program name with args.
9005: set dummy $ac_prog; ac_word=$2
9006: echo "$as_me:$LINENO: checking for $ac_word" >&5
9007: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9008: if test "${ac_cv_path_PERL+set}" = set; then
9009: echo $ECHO_N "(cached) $ECHO_C" >&6
9010: else
9011: case $PERL in
9012: [\\/]* | ?:[\\/]*)
9013: ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9014: ;;
9015: *)
9016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017: for as_dir in $PATH
9018: do
9019: IFS=$as_save_IFS
9020: test -z "$as_dir" && as_dir=.
9021: for ac_exec_ext in '' $ac_executable_extensions; do
9022: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023: ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9025: break 2
9026: fi
9027: done
9028: done
9029:
9030: ;;
9031: esac
9032: fi
9033: PERL=$ac_cv_path_PERL
9034:
9035: if test -n "$PERL"; then
9036: echo "$as_me:$LINENO: result: $PERL" >&5
9037: echo "${ECHO_T}$PERL" >&6
9038: else
9039: echo "$as_me:$LINENO: result: no" >&5
9040: echo "${ECHO_T}no" >&6
9041: fi
9042:
1.1.1.2 root 9043: test -n "$PERL" && break
9044: done
9045: test -n "$PERL" || PERL="no"
9046:
9047:
9048:
9049: TME_HOSTS="posix"
9050:
9051: echo "$as_me:$LINENO: checking for AF_LINK support" >&5
9052: echo $ECHO_N "checking for AF_LINK support... $ECHO_C" >&6
9053: cat >conftest.$ac_ext <<_ACEOF
9054: #line $LINENO "configure"
9055: /* confdefs.h. */
9056: _ACEOF
9057: cat confdefs.h >>conftest.$ac_ext
9058: cat >>conftest.$ac_ext <<_ACEOF
9059: /* end confdefs.h. */
9060:
9061: #include <sys/socket.h>
9062: #ifdef AF_LINK
9063: _tme_has_af_link
9064: #endif
9065:
9066: _ACEOF
9067: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9068: $EGREP "_tme_has_af_link" >/dev/null 2>&1; then
9069:
9070: echo "$as_me:$LINENO: result: yes" >&5
9071: echo "${ECHO_T}yes" >&6
9072:
9073: cat >>confdefs.h <<\_ACEOF
9074: #define HAVE_AF_LINK
9075: _ACEOF
9076:
9077:
9078: else
9079:
9080: echo "$as_me:$LINENO: result: no" >&5
9081: echo "${ECHO_T}no" >&6
9082:
9083: fi
9084: rm -f conftest*
9085:
9086:
9087: tme_raw_type=
9088: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9089: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
9090: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
9091: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9092: echo $ECHO_N "(cached) $ECHO_C" >&6
9093: fi
9094: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
9095: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
9096: else
9097: # Is the header compilable?
9098: echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
9099: echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6
9100: cat >conftest.$ac_ext <<_ACEOF
9101: #line $LINENO "configure"
9102: /* confdefs.h. */
9103: _ACEOF
9104: cat confdefs.h >>conftest.$ac_ext
9105: cat >>conftest.$ac_ext <<_ACEOF
9106: /* end confdefs.h. */
9107: $ac_includes_default
9108: #include <net/bpf.h>
9109: _ACEOF
9110: rm -f conftest.$ac_objext
9111: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112: (eval $ac_compile) 2>&5
9113: ac_status=$?
9114: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115: (exit $ac_status); } &&
9116: { ac_try='test -s conftest.$ac_objext'
9117: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118: (eval $ac_try) 2>&5
9119: ac_status=$?
9120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121: (exit $ac_status); }; }; then
9122: ac_header_compiler=yes
9123: else
9124: echo "$as_me: failed program was:" >&5
9125: sed 's/^/| /' conftest.$ac_ext >&5
9126:
9127: ac_header_compiler=no
9128: fi
9129: rm -f conftest.$ac_objext conftest.$ac_ext
9130: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9131: echo "${ECHO_T}$ac_header_compiler" >&6
9132:
9133: # Is the header present?
9134: echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
9135: echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6
9136: cat >conftest.$ac_ext <<_ACEOF
9137: #line $LINENO "configure"
9138: /* confdefs.h. */
9139: _ACEOF
9140: cat confdefs.h >>conftest.$ac_ext
9141: cat >>conftest.$ac_ext <<_ACEOF
9142: /* end confdefs.h. */
9143: #include <net/bpf.h>
9144: _ACEOF
9145: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9146: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9147: ac_status=$?
9148: grep -v '^ *+' conftest.er1 >conftest.err
9149: rm -f conftest.er1
9150: cat conftest.err >&5
9151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152: (exit $ac_status); } >/dev/null; then
9153: if test -s conftest.err; then
9154: ac_cpp_err=$ac_c_preproc_warn_flag
9155: else
9156: ac_cpp_err=
9157: fi
9158: else
9159: ac_cpp_err=yes
9160: fi
9161: if test -z "$ac_cpp_err"; then
9162: ac_header_preproc=yes
9163: else
9164: echo "$as_me: failed program was:" >&5
9165: sed 's/^/| /' conftest.$ac_ext >&5
9166:
9167: ac_header_preproc=no
9168: fi
9169: rm -f conftest.err conftest.$ac_ext
9170: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171: echo "${ECHO_T}$ac_header_preproc" >&6
9172:
9173: # So? What about this header?
9174: case $ac_header_compiler:$ac_header_preproc in
9175: yes:no )
9176: { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9177: echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
9179: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
9180: (
9181: cat <<\_ASBOX
9182: ## ------------------------------------ ##
9183: ## Report this to [email protected]. ##
9184: ## ------------------------------------ ##
9185: _ASBOX
9186: ) |
9187: sed "s/^/$as_me: WARNING: /" >&2
9188: ;;
9189: no:yes )
9190: { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
9191: echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
9192: { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
9193: echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
9194: { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
9195: echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
9196: (
9197: cat <<\_ASBOX
9198: ## ------------------------------------ ##
9199: ## Report this to [email protected]. ##
9200: ## ------------------------------------ ##
9201: _ASBOX
9202: ) |
9203: sed "s/^/$as_me: WARNING: /" >&2
9204: ;;
9205: esac
9206: echo "$as_me:$LINENO: checking for net/bpf.h" >&5
9207: echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6
9208: if test "${ac_cv_header_net_bpf_h+set}" = set; then
9209: echo $ECHO_N "(cached) $ECHO_C" >&6
9210: else
9211: ac_cv_header_net_bpf_h=$ac_header_preproc
9212: fi
9213: echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
9214: echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6
9215:
9216: fi
9217: if test $ac_cv_header_net_bpf_h = yes; then
9218: cat >conftest.$ac_ext <<_ACEOF
9219: #line $LINENO "configure"
9220: /* confdefs.h. */
9221: _ACEOF
9222: cat confdefs.h >>conftest.$ac_ext
9223: cat >>conftest.$ac_ext <<_ACEOF
9224: /* end confdefs.h. */
9225: #include <net/bpf.h>
9226: #ifdef BIOCSHDRCMPLT
9227: found_BIOCSHDRCMPLT
9228: #endif
9229:
9230: _ACEOF
9231: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9232: $EGREP "found_BIOCSHDRCMPLT" >/dev/null 2>&1; then
9233: tme_raw_type=bpf
9234: fi
9235: rm -f conftest*
9236:
9237: fi
9238:
9239:
9240: echo "$as_me:$LINENO: checking for raw Ethernet access method" >&5
9241: echo $ECHO_N "checking for raw Ethernet access method... $ECHO_C" >&6
9242: case "x$tme_raw_type" in
9243: xbpf) TME_HOSTS="${TME_HOSTS} bsd" ;;
9244: x) tme_raw_type=none ;;
9245: esac
9246: echo "$as_me:$LINENO: result: $tme_raw_type" >&5
9247: echo "${ECHO_T}$tme_raw_type" >&6
9248:
9249: echo "$as_me:$LINENO: checking for X" >&5
9250: echo $ECHO_N "checking for X... $ECHO_C" >&6
9251:
9252:
9253: # Check whether --with-x or --without-x was given.
9254: if test "${with_x+set}" = set; then
9255: withval="$with_x"
9256:
9257: fi;
9258: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9259: if test "x$with_x" = xno; then
9260: # The user explicitly disabled X.
9261: have_x=disabled
9262: else
9263: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9264: # Both variables are already set.
9265: have_x=yes
9266: else
9267: if test "${ac_cv_have_x+set}" = set; then
9268: echo $ECHO_N "(cached) $ECHO_C" >&6
9269: else
9270: # One or both of the vars are not set, and there is no cached value.
9271: ac_x_includes=no ac_x_libraries=no
9272: rm -fr conftest.dir
9273: if mkdir conftest.dir; then
9274: cd conftest.dir
9275: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9276: cat >Imakefile <<'_ACEOF'
9277: acfindx:
9278: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9279: _ACEOF
9280: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9281: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9282: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9283: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9284: for ac_extension in a so sl; do
9285: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9286: test -f $ac_im_libdir/libX11.$ac_extension; then
9287: ac_im_usrlibdir=$ac_im_libdir; break
9288: fi
9289: done
9290: # Screen out bogus values from the imake configuration. They are
9291: # bogus both because they are the default anyway, and because
9292: # using them would break gcc on systems where it needs fixed includes.
9293: case $ac_im_incroot in
9294: /usr/include) ;;
9295: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9296: esac
9297: case $ac_im_usrlibdir in
9298: /usr/lib | /lib) ;;
9299: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9300: esac
9301: fi
9302: cd ..
9303: rm -fr conftest.dir
9304: fi
9305:
9306: # Standard set of common directories for X headers.
9307: # Check X11 before X11Rn because it is often a symlink to the current release.
9308: ac_x_header_dirs='
9309: /usr/X11/include
9310: /usr/X11R6/include
9311: /usr/X11R5/include
9312: /usr/X11R4/include
9313:
9314: /usr/include/X11
9315: /usr/include/X11R6
9316: /usr/include/X11R5
9317: /usr/include/X11R4
9318:
9319: /usr/local/X11/include
9320: /usr/local/X11R6/include
9321: /usr/local/X11R5/include
9322: /usr/local/X11R4/include
9323:
9324: /usr/local/include/X11
9325: /usr/local/include/X11R6
9326: /usr/local/include/X11R5
9327: /usr/local/include/X11R4
9328:
9329: /usr/X386/include
9330: /usr/x386/include
9331: /usr/XFree86/include/X11
9332:
9333: /usr/include
9334: /usr/local/include
9335: /usr/unsupported/include
9336: /usr/athena/include
9337: /usr/local/x11r5/include
9338: /usr/lpp/Xamples/include
9339:
9340: /usr/openwin/include
9341: /usr/openwin/share/include'
9342:
9343: if test "$ac_x_includes" = no; then
9344: # Guess where to find include files, by looking for Intrinsic.h.
9345: # First, try using that file with no special directory specified.
9346: cat >conftest.$ac_ext <<_ACEOF
9347: #line $LINENO "configure"
9348: /* confdefs.h. */
9349: _ACEOF
9350: cat confdefs.h >>conftest.$ac_ext
9351: cat >>conftest.$ac_ext <<_ACEOF
9352: /* end confdefs.h. */
9353: #include <X11/Intrinsic.h>
9354: _ACEOF
9355: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9356: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9357: ac_status=$?
9358: grep -v '^ *+' conftest.er1 >conftest.err
9359: rm -f conftest.er1
9360: cat conftest.err >&5
9361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362: (exit $ac_status); } >/dev/null; then
9363: if test -s conftest.err; then
9364: ac_cpp_err=$ac_c_preproc_warn_flag
9365: else
9366: ac_cpp_err=
9367: fi
9368: else
9369: ac_cpp_err=yes
9370: fi
9371: if test -z "$ac_cpp_err"; then
9372: # We can compile using X headers with no special include directory.
9373: ac_x_includes=
9374: else
9375: echo "$as_me: failed program was:" >&5
9376: sed 's/^/| /' conftest.$ac_ext >&5
9377:
9378: for ac_dir in $ac_x_header_dirs; do
9379: if test -r "$ac_dir/X11/Intrinsic.h"; then
9380: ac_x_includes=$ac_dir
9381: break
9382: fi
9383: done
9384: fi
9385: rm -f conftest.err conftest.$ac_ext
9386: fi # $ac_x_includes = no
9387:
9388: if test "$ac_x_libraries" = no; then
9389: # Check for the libraries.
9390: # See if we find them without any special options.
9391: # Don't add to $LIBS permanently.
9392: ac_save_LIBS=$LIBS
9393: LIBS="-lXt $LIBS"
9394: cat >conftest.$ac_ext <<_ACEOF
9395: #line $LINENO "configure"
9396: /* confdefs.h. */
9397: _ACEOF
9398: cat confdefs.h >>conftest.$ac_ext
9399: cat >>conftest.$ac_ext <<_ACEOF
9400: /* end confdefs.h. */
9401: #include <X11/Intrinsic.h>
9402: int
9403: main ()
9404: {
9405: XtMalloc (0)
9406: ;
9407: return 0;
9408: }
9409: _ACEOF
9410: rm -f conftest.$ac_objext conftest$ac_exeext
9411: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412: (eval $ac_link) 2>&5
9413: ac_status=$?
9414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415: (exit $ac_status); } &&
9416: { ac_try='test -s conftest$ac_exeext'
9417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418: (eval $ac_try) 2>&5
9419: ac_status=$?
9420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421: (exit $ac_status); }; }; then
9422: LIBS=$ac_save_LIBS
9423: # We can link X programs with no special library path.
9424: ac_x_libraries=
9425: else
9426: echo "$as_me: failed program was:" >&5
9427: sed 's/^/| /' conftest.$ac_ext >&5
9428:
9429: LIBS=$ac_save_LIBS
9430: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9431: do
9432: # Don't even attempt the hair of trying to link an X program!
9433: for ac_extension in a so sl; do
9434: if test -r $ac_dir/libXt.$ac_extension; then
9435: ac_x_libraries=$ac_dir
9436: break 2
9437: fi
9438: done
9439: done
9440: fi
9441: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9442: fi # $ac_x_libraries = no
9443:
9444: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9445: # Didn't find X anywhere. Cache the known absence of X.
9446: ac_cv_have_x="have_x=no"
9447: else
9448: # Record where we found X for the cache.
9449: ac_cv_have_x="have_x=yes \
9450: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9451: fi
9452: fi
9453:
9454: fi
9455: eval "$ac_cv_have_x"
9456: fi # $with_x != no
9457:
9458: if test "$have_x" != yes; then
9459: echo "$as_me:$LINENO: result: $have_x" >&5
9460: echo "${ECHO_T}$have_x" >&6
9461: no_x=yes
9462: else
9463: # If each of the values was on the command line, it overrides each guess.
9464: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9465: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9466: # Update the cache value to reflect the command line values.
9467: ac_cv_have_x="have_x=yes \
9468: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9469: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9470: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9471: fi
9472:
9473: if test "$no_x" = yes; then
9474: # Not all programs may use this symbol, but it does not hurt to define it.
9475:
9476: cat >>confdefs.h <<\_ACEOF
9477: #define X_DISPLAY_MISSING 1
9478: _ACEOF
9479:
9480: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9481: else
9482: if test -n "$x_includes"; then
9483: X_CFLAGS="$X_CFLAGS -I$x_includes"
9484: fi
9485:
9486: # It would also be nice to do this for all -L options, not just this one.
9487: if test -n "$x_libraries"; then
9488: X_LIBS="$X_LIBS -L$x_libraries"
9489: # For Solaris; some versions of Sun CC require a space after -R and
9490: # others require no space. Words are not sufficient . . . .
9491: case `(uname -sr) 2>/dev/null` in
9492: "SunOS 5"*)
9493: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9494: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9495: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9496: cat >conftest.$ac_ext <<_ACEOF
9497: #line $LINENO "configure"
9498: /* confdefs.h. */
9499: _ACEOF
9500: cat confdefs.h >>conftest.$ac_ext
9501: cat >>conftest.$ac_ext <<_ACEOF
9502: /* end confdefs.h. */
9503:
9504: int
9505: main ()
9506: {
9507:
9508: ;
9509: return 0;
9510: }
9511: _ACEOF
9512: rm -f conftest.$ac_objext conftest$ac_exeext
9513: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514: (eval $ac_link) 2>&5
9515: ac_status=$?
9516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517: (exit $ac_status); } &&
9518: { ac_try='test -s conftest$ac_exeext'
9519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520: (eval $ac_try) 2>&5
9521: ac_status=$?
9522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523: (exit $ac_status); }; }; then
9524: ac_R_nospace=yes
9525: else
9526: echo "$as_me: failed program was:" >&5
9527: sed 's/^/| /' conftest.$ac_ext >&5
9528:
9529: ac_R_nospace=no
9530: fi
9531: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9532: if test $ac_R_nospace = yes; then
9533: echo "$as_me:$LINENO: result: no" >&5
9534: echo "${ECHO_T}no" >&6
9535: X_LIBS="$X_LIBS -R$x_libraries"
9536: else
9537: LIBS="$ac_xsave_LIBS -R $x_libraries"
9538: cat >conftest.$ac_ext <<_ACEOF
9539: #line $LINENO "configure"
9540: /* confdefs.h. */
9541: _ACEOF
9542: cat confdefs.h >>conftest.$ac_ext
9543: cat >>conftest.$ac_ext <<_ACEOF
9544: /* end confdefs.h. */
9545:
9546: int
9547: main ()
9548: {
9549:
9550: ;
9551: return 0;
9552: }
9553: _ACEOF
9554: rm -f conftest.$ac_objext conftest$ac_exeext
9555: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556: (eval $ac_link) 2>&5
9557: ac_status=$?
9558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559: (exit $ac_status); } &&
9560: { ac_try='test -s conftest$ac_exeext'
9561: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562: (eval $ac_try) 2>&5
9563: ac_status=$?
9564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565: (exit $ac_status); }; }; then
9566: ac_R_space=yes
9567: else
9568: echo "$as_me: failed program was:" >&5
9569: sed 's/^/| /' conftest.$ac_ext >&5
9570:
9571: ac_R_space=no
9572: fi
9573: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9574: if test $ac_R_space = yes; then
9575: echo "$as_me:$LINENO: result: yes" >&5
9576: echo "${ECHO_T}yes" >&6
9577: X_LIBS="$X_LIBS -R $x_libraries"
9578: else
9579: echo "$as_me:$LINENO: result: neither works" >&5
9580: echo "${ECHO_T}neither works" >&6
9581: fi
9582: fi
9583: LIBS=$ac_xsave_LIBS
9584: esac
9585: fi
9586:
9587: # Check for system-dependent libraries X programs must link with.
9588: # Do this before checking for the system-independent R6 libraries
9589: # (-lICE), since we may need -lsocket or whatever for X linking.
9590:
9591: if test "$ISC" = yes; then
9592: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9593: else
9594: # Martyn Johnson says this is needed for Ultrix, if the X
9595: # libraries were built with DECnet support. And Karl Berry says
9596: # the Alpha needs dnet_stub (dnet does not exist).
9597: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9598: cat >conftest.$ac_ext <<_ACEOF
9599: #line $LINENO "configure"
9600: /* confdefs.h. */
9601: _ACEOF
9602: cat confdefs.h >>conftest.$ac_ext
9603: cat >>conftest.$ac_ext <<_ACEOF
9604: /* end confdefs.h. */
9605:
9606: /* Override any gcc2 internal prototype to avoid an error. */
9607: #ifdef __cplusplus
9608: extern "C"
9609: #endif
9610: /* We use char because int might match the return type of a gcc2
9611: builtin and then its argument prototype would still apply. */
9612: char XOpenDisplay ();
9613: int
9614: main ()
9615: {
9616: XOpenDisplay ();
9617: ;
9618: return 0;
9619: }
9620: _ACEOF
9621: rm -f conftest.$ac_objext conftest$ac_exeext
9622: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623: (eval $ac_link) 2>&5
9624: ac_status=$?
9625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626: (exit $ac_status); } &&
9627: { ac_try='test -s conftest$ac_exeext'
9628: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629: (eval $ac_try) 2>&5
9630: ac_status=$?
9631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632: (exit $ac_status); }; }; then
9633: :
9634: else
9635: echo "$as_me: failed program was:" >&5
9636: sed 's/^/| /' conftest.$ac_ext >&5
9637:
9638: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9639: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9640: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9641: echo $ECHO_N "(cached) $ECHO_C" >&6
9642: else
9643: ac_check_lib_save_LIBS=$LIBS
9644: LIBS="-ldnet $LIBS"
9645: cat >conftest.$ac_ext <<_ACEOF
9646: #line $LINENO "configure"
9647: /* confdefs.h. */
9648: _ACEOF
9649: cat confdefs.h >>conftest.$ac_ext
9650: cat >>conftest.$ac_ext <<_ACEOF
9651: /* end confdefs.h. */
9652:
9653: /* Override any gcc2 internal prototype to avoid an error. */
9654: #ifdef __cplusplus
9655: extern "C"
9656: #endif
9657: /* We use char because int might match the return type of a gcc2
9658: builtin and then its argument prototype would still apply. */
9659: char dnet_ntoa ();
9660: int
9661: main ()
9662: {
9663: dnet_ntoa ();
9664: ;
9665: return 0;
9666: }
9667: _ACEOF
9668: rm -f conftest.$ac_objext conftest$ac_exeext
9669: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670: (eval $ac_link) 2>&5
9671: ac_status=$?
9672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673: (exit $ac_status); } &&
9674: { ac_try='test -s conftest$ac_exeext'
9675: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676: (eval $ac_try) 2>&5
9677: ac_status=$?
9678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679: (exit $ac_status); }; }; then
9680: ac_cv_lib_dnet_dnet_ntoa=yes
9681: else
9682: echo "$as_me: failed program was:" >&5
9683: sed 's/^/| /' conftest.$ac_ext >&5
9684:
9685: ac_cv_lib_dnet_dnet_ntoa=no
9686: fi
9687: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9688: LIBS=$ac_check_lib_save_LIBS
9689: fi
9690: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9691: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9692: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9693: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9694: fi
9695:
9696: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9697: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9698: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9699: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9700: echo $ECHO_N "(cached) $ECHO_C" >&6
9701: else
9702: ac_check_lib_save_LIBS=$LIBS
9703: LIBS="-ldnet_stub $LIBS"
9704: cat >conftest.$ac_ext <<_ACEOF
9705: #line $LINENO "configure"
9706: /* confdefs.h. */
9707: _ACEOF
9708: cat confdefs.h >>conftest.$ac_ext
9709: cat >>conftest.$ac_ext <<_ACEOF
9710: /* end confdefs.h. */
9711:
9712: /* Override any gcc2 internal prototype to avoid an error. */
9713: #ifdef __cplusplus
9714: extern "C"
9715: #endif
9716: /* We use char because int might match the return type of a gcc2
9717: builtin and then its argument prototype would still apply. */
9718: char dnet_ntoa ();
9719: int
9720: main ()
9721: {
9722: dnet_ntoa ();
9723: ;
9724: return 0;
9725: }
9726: _ACEOF
9727: rm -f conftest.$ac_objext conftest$ac_exeext
9728: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729: (eval $ac_link) 2>&5
9730: ac_status=$?
9731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732: (exit $ac_status); } &&
9733: { ac_try='test -s conftest$ac_exeext'
9734: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735: (eval $ac_try) 2>&5
9736: ac_status=$?
9737: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738: (exit $ac_status); }; }; then
9739: ac_cv_lib_dnet_stub_dnet_ntoa=yes
9740: else
9741: echo "$as_me: failed program was:" >&5
9742: sed 's/^/| /' conftest.$ac_ext >&5
9743:
9744: ac_cv_lib_dnet_stub_dnet_ntoa=no
9745: fi
9746: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747: LIBS=$ac_check_lib_save_LIBS
9748: fi
9749: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9750: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9751: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9752: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9753: fi
9754:
9755: fi
9756: fi
9757: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9758: LIBS="$ac_xsave_LIBS"
9759:
9760: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
9761: # to get the SysV transport functions.
9762: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9763: # needs -lnsl.
9764: # The nsl library prevents programs from opening the X display
9765: # on Irix 5.2, according to T.E. Dickey.
9766: # The functions gethostbyname, getservbyname, and inet_addr are
9767: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9768: echo "$as_me:$LINENO: checking for gethostbyname" >&5
9769: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9770: if test "${ac_cv_func_gethostbyname+set}" = set; then
9771: echo $ECHO_N "(cached) $ECHO_C" >&6
9772: else
9773: cat >conftest.$ac_ext <<_ACEOF
9774: #line $LINENO "configure"
9775: /* confdefs.h. */
9776: _ACEOF
9777: cat confdefs.h >>conftest.$ac_ext
9778: cat >>conftest.$ac_ext <<_ACEOF
9779: /* end confdefs.h. */
9780: /* System header to define __stub macros and hopefully few prototypes,
9781: which can conflict with char gethostbyname (); below.
9782: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783: <limits.h> exists even on freestanding compilers. */
9784: #ifdef __STDC__
9785: # include <limits.h>
9786: #else
9787: # include <assert.h>
9788: #endif
9789: /* Override any gcc2 internal prototype to avoid an error. */
9790: #ifdef __cplusplus
9791: extern "C"
9792: {
9793: #endif
9794: /* We use char because int might match the return type of a gcc2
9795: builtin and then its argument prototype would still apply. */
9796: char gethostbyname ();
9797: /* The GNU C library defines this for functions which it implements
9798: to always fail with ENOSYS. Some functions are actually named
9799: something starting with __ and the normal name is an alias. */
9800: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9801: choke me
9802: #else
9803: char (*f) () = gethostbyname;
9804: #endif
9805: #ifdef __cplusplus
9806: }
9807: #endif
9808:
9809: int
9810: main ()
9811: {
9812: return f != gethostbyname;
9813: ;
9814: return 0;
9815: }
9816: _ACEOF
9817: rm -f conftest.$ac_objext conftest$ac_exeext
9818: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819: (eval $ac_link) 2>&5
9820: ac_status=$?
9821: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822: (exit $ac_status); } &&
9823: { ac_try='test -s conftest$ac_exeext'
9824: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825: (eval $ac_try) 2>&5
9826: ac_status=$?
9827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828: (exit $ac_status); }; }; then
9829: ac_cv_func_gethostbyname=yes
9830: else
9831: echo "$as_me: failed program was:" >&5
9832: sed 's/^/| /' conftest.$ac_ext >&5
9833:
9834: ac_cv_func_gethostbyname=no
9835: fi
9836: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9837: fi
9838: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9839: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9840:
9841: if test $ac_cv_func_gethostbyname = no; then
9842: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9843: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9844: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9845: echo $ECHO_N "(cached) $ECHO_C" >&6
9846: else
9847: ac_check_lib_save_LIBS=$LIBS
9848: LIBS="-lnsl $LIBS"
9849: cat >conftest.$ac_ext <<_ACEOF
9850: #line $LINENO "configure"
9851: /* confdefs.h. */
9852: _ACEOF
9853: cat confdefs.h >>conftest.$ac_ext
9854: cat >>conftest.$ac_ext <<_ACEOF
9855: /* end confdefs.h. */
9856:
9857: /* Override any gcc2 internal prototype to avoid an error. */
9858: #ifdef __cplusplus
9859: extern "C"
9860: #endif
9861: /* We use char because int might match the return type of a gcc2
9862: builtin and then its argument prototype would still apply. */
9863: char gethostbyname ();
9864: int
9865: main ()
9866: {
9867: gethostbyname ();
9868: ;
9869: return 0;
9870: }
9871: _ACEOF
9872: rm -f conftest.$ac_objext conftest$ac_exeext
9873: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9874: (eval $ac_link) 2>&5
9875: ac_status=$?
9876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877: (exit $ac_status); } &&
9878: { ac_try='test -s conftest$ac_exeext'
9879: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880: (eval $ac_try) 2>&5
9881: ac_status=$?
9882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883: (exit $ac_status); }; }; then
9884: ac_cv_lib_nsl_gethostbyname=yes
9885: else
9886: echo "$as_me: failed program was:" >&5
9887: sed 's/^/| /' conftest.$ac_ext >&5
9888:
9889: ac_cv_lib_nsl_gethostbyname=no
9890: fi
9891: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9892: LIBS=$ac_check_lib_save_LIBS
9893: fi
9894: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9895: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9896: if test $ac_cv_lib_nsl_gethostbyname = yes; then
9897: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9898: fi
9899:
9900: if test $ac_cv_lib_nsl_gethostbyname = no; then
9901: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9902: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9903: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9904: echo $ECHO_N "(cached) $ECHO_C" >&6
9905: else
9906: ac_check_lib_save_LIBS=$LIBS
9907: LIBS="-lbsd $LIBS"
9908: cat >conftest.$ac_ext <<_ACEOF
9909: #line $LINENO "configure"
9910: /* confdefs.h. */
9911: _ACEOF
9912: cat confdefs.h >>conftest.$ac_ext
9913: cat >>conftest.$ac_ext <<_ACEOF
9914: /* end confdefs.h. */
9915:
9916: /* Override any gcc2 internal prototype to avoid an error. */
9917: #ifdef __cplusplus
9918: extern "C"
9919: #endif
9920: /* We use char because int might match the return type of a gcc2
9921: builtin and then its argument prototype would still apply. */
9922: char gethostbyname ();
9923: int
9924: main ()
9925: {
9926: gethostbyname ();
9927: ;
9928: return 0;
9929: }
9930: _ACEOF
9931: rm -f conftest.$ac_objext conftest$ac_exeext
9932: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933: (eval $ac_link) 2>&5
9934: ac_status=$?
9935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936: (exit $ac_status); } &&
9937: { ac_try='test -s conftest$ac_exeext'
9938: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939: (eval $ac_try) 2>&5
9940: ac_status=$?
9941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942: (exit $ac_status); }; }; then
9943: ac_cv_lib_bsd_gethostbyname=yes
9944: else
9945: echo "$as_me: failed program was:" >&5
9946: sed 's/^/| /' conftest.$ac_ext >&5
9947:
9948: ac_cv_lib_bsd_gethostbyname=no
9949: fi
9950: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9951: LIBS=$ac_check_lib_save_LIBS
9952: fi
9953: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9954: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9955: if test $ac_cv_lib_bsd_gethostbyname = yes; then
9956: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9957: fi
9958:
9959: fi
9960: fi
9961:
9962: # [email protected] says without -lsocket,
9963: # socket/setsockopt and other routines are undefined under SCO ODT
9964: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9965: # on later versions), says Simon Leinen: it contains gethostby*
9966: # variants that don't use the name server (or something). -lsocket
9967: # must be given before -lnsl if both are needed. We assume that
9968: # if connect needs -lnsl, so does gethostbyname.
9969: echo "$as_me:$LINENO: checking for connect" >&5
9970: echo $ECHO_N "checking for connect... $ECHO_C" >&6
9971: if test "${ac_cv_func_connect+set}" = set; then
9972: echo $ECHO_N "(cached) $ECHO_C" >&6
9973: else
9974: cat >conftest.$ac_ext <<_ACEOF
9975: #line $LINENO "configure"
9976: /* confdefs.h. */
9977: _ACEOF
9978: cat confdefs.h >>conftest.$ac_ext
9979: cat >>conftest.$ac_ext <<_ACEOF
9980: /* end confdefs.h. */
9981: /* System header to define __stub macros and hopefully few prototypes,
9982: which can conflict with char connect (); below.
9983: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984: <limits.h> exists even on freestanding compilers. */
9985: #ifdef __STDC__
9986: # include <limits.h>
9987: #else
9988: # include <assert.h>
9989: #endif
9990: /* Override any gcc2 internal prototype to avoid an error. */
9991: #ifdef __cplusplus
9992: extern "C"
9993: {
9994: #endif
9995: /* We use char because int might match the return type of a gcc2
9996: builtin and then its argument prototype would still apply. */
9997: char connect ();
9998: /* The GNU C library defines this for functions which it implements
9999: to always fail with ENOSYS. Some functions are actually named
10000: something starting with __ and the normal name is an alias. */
10001: #if defined (__stub_connect) || defined (__stub___connect)
10002: choke me
10003: #else
10004: char (*f) () = connect;
10005: #endif
10006: #ifdef __cplusplus
10007: }
10008: #endif
10009:
10010: int
10011: main ()
10012: {
10013: return f != connect;
10014: ;
10015: return 0;
10016: }
10017: _ACEOF
10018: rm -f conftest.$ac_objext conftest$ac_exeext
10019: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020: (eval $ac_link) 2>&5
10021: ac_status=$?
10022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023: (exit $ac_status); } &&
10024: { ac_try='test -s conftest$ac_exeext'
10025: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026: (eval $ac_try) 2>&5
10027: ac_status=$?
10028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029: (exit $ac_status); }; }; then
10030: ac_cv_func_connect=yes
10031: else
10032: echo "$as_me: failed program was:" >&5
10033: sed 's/^/| /' conftest.$ac_ext >&5
10034:
10035: ac_cv_func_connect=no
10036: fi
10037: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10038: fi
10039: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10040: echo "${ECHO_T}$ac_cv_func_connect" >&6
10041:
10042: if test $ac_cv_func_connect = no; then
10043: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10044: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10045: if test "${ac_cv_lib_socket_connect+set}" = set; then
10046: echo $ECHO_N "(cached) $ECHO_C" >&6
10047: else
10048: ac_check_lib_save_LIBS=$LIBS
10049: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10050: cat >conftest.$ac_ext <<_ACEOF
10051: #line $LINENO "configure"
10052: /* confdefs.h. */
10053: _ACEOF
10054: cat confdefs.h >>conftest.$ac_ext
10055: cat >>conftest.$ac_ext <<_ACEOF
10056: /* end confdefs.h. */
10057:
10058: /* Override any gcc2 internal prototype to avoid an error. */
10059: #ifdef __cplusplus
10060: extern "C"
10061: #endif
10062: /* We use char because int might match the return type of a gcc2
10063: builtin and then its argument prototype would still apply. */
10064: char connect ();
10065: int
10066: main ()
10067: {
10068: connect ();
10069: ;
10070: return 0;
10071: }
10072: _ACEOF
10073: rm -f conftest.$ac_objext conftest$ac_exeext
10074: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075: (eval $ac_link) 2>&5
10076: ac_status=$?
10077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078: (exit $ac_status); } &&
10079: { ac_try='test -s conftest$ac_exeext'
10080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081: (eval $ac_try) 2>&5
10082: ac_status=$?
10083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084: (exit $ac_status); }; }; then
10085: ac_cv_lib_socket_connect=yes
10086: else
10087: echo "$as_me: failed program was:" >&5
10088: sed 's/^/| /' conftest.$ac_ext >&5
10089:
10090: ac_cv_lib_socket_connect=no
10091: fi
10092: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093: LIBS=$ac_check_lib_save_LIBS
10094: fi
10095: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10096: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10097: if test $ac_cv_lib_socket_connect = yes; then
10098: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10099: fi
10100:
10101: fi
10102:
10103: # Guillermo Gomez says -lposix is necessary on A/UX.
10104: echo "$as_me:$LINENO: checking for remove" >&5
10105: echo $ECHO_N "checking for remove... $ECHO_C" >&6
10106: if test "${ac_cv_func_remove+set}" = set; then
10107: echo $ECHO_N "(cached) $ECHO_C" >&6
10108: else
10109: cat >conftest.$ac_ext <<_ACEOF
10110: #line $LINENO "configure"
10111: /* confdefs.h. */
10112: _ACEOF
10113: cat confdefs.h >>conftest.$ac_ext
10114: cat >>conftest.$ac_ext <<_ACEOF
10115: /* end confdefs.h. */
10116: /* System header to define __stub macros and hopefully few prototypes,
10117: which can conflict with char remove (); below.
10118: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119: <limits.h> exists even on freestanding compilers. */
10120: #ifdef __STDC__
10121: # include <limits.h>
10122: #else
10123: # include <assert.h>
10124: #endif
10125: /* Override any gcc2 internal prototype to avoid an error. */
10126: #ifdef __cplusplus
10127: extern "C"
10128: {
10129: #endif
10130: /* We use char because int might match the return type of a gcc2
10131: builtin and then its argument prototype would still apply. */
10132: char remove ();
10133: /* The GNU C library defines this for functions which it implements
10134: to always fail with ENOSYS. Some functions are actually named
10135: something starting with __ and the normal name is an alias. */
10136: #if defined (__stub_remove) || defined (__stub___remove)
10137: choke me
10138: #else
10139: char (*f) () = remove;
10140: #endif
10141: #ifdef __cplusplus
10142: }
10143: #endif
10144:
10145: int
10146: main ()
10147: {
10148: return f != remove;
10149: ;
10150: return 0;
10151: }
10152: _ACEOF
10153: rm -f conftest.$ac_objext conftest$ac_exeext
10154: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155: (eval $ac_link) 2>&5
10156: ac_status=$?
10157: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158: (exit $ac_status); } &&
10159: { ac_try='test -s conftest$ac_exeext'
10160: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161: (eval $ac_try) 2>&5
10162: ac_status=$?
10163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164: (exit $ac_status); }; }; then
10165: ac_cv_func_remove=yes
10166: else
10167: echo "$as_me: failed program was:" >&5
10168: sed 's/^/| /' conftest.$ac_ext >&5
10169:
10170: ac_cv_func_remove=no
10171: fi
10172: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10173: fi
10174: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10175: echo "${ECHO_T}$ac_cv_func_remove" >&6
10176:
10177: if test $ac_cv_func_remove = no; then
10178: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10179: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10180: if test "${ac_cv_lib_posix_remove+set}" = set; then
10181: echo $ECHO_N "(cached) $ECHO_C" >&6
10182: else
10183: ac_check_lib_save_LIBS=$LIBS
10184: LIBS="-lposix $LIBS"
10185: cat >conftest.$ac_ext <<_ACEOF
10186: #line $LINENO "configure"
10187: /* confdefs.h. */
10188: _ACEOF
10189: cat confdefs.h >>conftest.$ac_ext
10190: cat >>conftest.$ac_ext <<_ACEOF
10191: /* end confdefs.h. */
10192:
10193: /* Override any gcc2 internal prototype to avoid an error. */
10194: #ifdef __cplusplus
10195: extern "C"
10196: #endif
10197: /* We use char because int might match the return type of a gcc2
10198: builtin and then its argument prototype would still apply. */
10199: char remove ();
10200: int
10201: main ()
10202: {
10203: remove ();
10204: ;
10205: return 0;
10206: }
10207: _ACEOF
10208: rm -f conftest.$ac_objext conftest$ac_exeext
10209: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210: (eval $ac_link) 2>&5
10211: ac_status=$?
10212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213: (exit $ac_status); } &&
10214: { ac_try='test -s conftest$ac_exeext'
10215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216: (eval $ac_try) 2>&5
10217: ac_status=$?
10218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219: (exit $ac_status); }; }; then
10220: ac_cv_lib_posix_remove=yes
10221: else
10222: echo "$as_me: failed program was:" >&5
10223: sed 's/^/| /' conftest.$ac_ext >&5
10224:
10225: ac_cv_lib_posix_remove=no
10226: fi
10227: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228: LIBS=$ac_check_lib_save_LIBS
10229: fi
10230: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10231: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10232: if test $ac_cv_lib_posix_remove = yes; then
10233: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10234: fi
10235:
10236: fi
10237:
10238: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10239: echo "$as_me:$LINENO: checking for shmat" >&5
10240: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10241: if test "${ac_cv_func_shmat+set}" = set; then
10242: echo $ECHO_N "(cached) $ECHO_C" >&6
10243: else
10244: cat >conftest.$ac_ext <<_ACEOF
10245: #line $LINENO "configure"
10246: /* confdefs.h. */
10247: _ACEOF
10248: cat confdefs.h >>conftest.$ac_ext
10249: cat >>conftest.$ac_ext <<_ACEOF
10250: /* end confdefs.h. */
10251: /* System header to define __stub macros and hopefully few prototypes,
10252: which can conflict with char shmat (); below.
10253: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10254: <limits.h> exists even on freestanding compilers. */
10255: #ifdef __STDC__
10256: # include <limits.h>
10257: #else
10258: # include <assert.h>
10259: #endif
10260: /* Override any gcc2 internal prototype to avoid an error. */
10261: #ifdef __cplusplus
10262: extern "C"
10263: {
10264: #endif
10265: /* We use char because int might match the return type of a gcc2
10266: builtin and then its argument prototype would still apply. */
10267: char shmat ();
10268: /* The GNU C library defines this for functions which it implements
10269: to always fail with ENOSYS. Some functions are actually named
10270: something starting with __ and the normal name is an alias. */
10271: #if defined (__stub_shmat) || defined (__stub___shmat)
10272: choke me
10273: #else
10274: char (*f) () = shmat;
10275: #endif
10276: #ifdef __cplusplus
10277: }
10278: #endif
10279:
10280: int
10281: main ()
10282: {
10283: return f != shmat;
10284: ;
10285: return 0;
10286: }
10287: _ACEOF
10288: rm -f conftest.$ac_objext conftest$ac_exeext
10289: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290: (eval $ac_link) 2>&5
10291: ac_status=$?
10292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293: (exit $ac_status); } &&
10294: { ac_try='test -s conftest$ac_exeext'
10295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296: (eval $ac_try) 2>&5
10297: ac_status=$?
10298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299: (exit $ac_status); }; }; then
10300: ac_cv_func_shmat=yes
10301: else
10302: echo "$as_me: failed program was:" >&5
10303: sed 's/^/| /' conftest.$ac_ext >&5
10304:
10305: ac_cv_func_shmat=no
10306: fi
10307: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10308: fi
10309: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10310: echo "${ECHO_T}$ac_cv_func_shmat" >&6
10311:
10312: if test $ac_cv_func_shmat = no; then
10313: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10314: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10315: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10316: echo $ECHO_N "(cached) $ECHO_C" >&6
10317: else
10318: ac_check_lib_save_LIBS=$LIBS
10319: LIBS="-lipc $LIBS"
10320: cat >conftest.$ac_ext <<_ACEOF
10321: #line $LINENO "configure"
10322: /* confdefs.h. */
10323: _ACEOF
10324: cat confdefs.h >>conftest.$ac_ext
10325: cat >>conftest.$ac_ext <<_ACEOF
10326: /* end confdefs.h. */
10327:
10328: /* Override any gcc2 internal prototype to avoid an error. */
10329: #ifdef __cplusplus
10330: extern "C"
10331: #endif
10332: /* We use char because int might match the return type of a gcc2
10333: builtin and then its argument prototype would still apply. */
10334: char shmat ();
10335: int
10336: main ()
10337: {
10338: shmat ();
10339: ;
10340: return 0;
10341: }
10342: _ACEOF
10343: rm -f conftest.$ac_objext conftest$ac_exeext
10344: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345: (eval $ac_link) 2>&5
10346: ac_status=$?
10347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348: (exit $ac_status); } &&
10349: { ac_try='test -s conftest$ac_exeext'
10350: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351: (eval $ac_try) 2>&5
10352: ac_status=$?
10353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354: (exit $ac_status); }; }; then
10355: ac_cv_lib_ipc_shmat=yes
10356: else
10357: echo "$as_me: failed program was:" >&5
10358: sed 's/^/| /' conftest.$ac_ext >&5
10359:
10360: ac_cv_lib_ipc_shmat=no
10361: fi
10362: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10363: LIBS=$ac_check_lib_save_LIBS
10364: fi
10365: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10366: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10367: if test $ac_cv_lib_ipc_shmat = yes; then
10368: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10369: fi
10370:
10371: fi
10372: fi
10373:
10374: # Check for libraries that X11R6 Xt/Xaw programs need.
10375: ac_save_LDFLAGS=$LDFLAGS
10376: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10377: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10378: # check for ICE first), but we must link in the order -lSM -lICE or
10379: # we get undefined symbols. So assume we have SM if we have ICE.
10380: # These have to be linked with before -lX11, unlike the other
10381: # libraries we check for below, so use a different variable.
10382: # John Interrante, Karl Berry
10383: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10384: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10385: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10386: echo $ECHO_N "(cached) $ECHO_C" >&6
10387: else
10388: ac_check_lib_save_LIBS=$LIBS
10389: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10390: cat >conftest.$ac_ext <<_ACEOF
10391: #line $LINENO "configure"
10392: /* confdefs.h. */
10393: _ACEOF
10394: cat confdefs.h >>conftest.$ac_ext
10395: cat >>conftest.$ac_ext <<_ACEOF
10396: /* end confdefs.h. */
10397:
10398: /* Override any gcc2 internal prototype to avoid an error. */
10399: #ifdef __cplusplus
10400: extern "C"
10401: #endif
10402: /* We use char because int might match the return type of a gcc2
10403: builtin and then its argument prototype would still apply. */
10404: char IceConnectionNumber ();
10405: int
10406: main ()
10407: {
10408: IceConnectionNumber ();
10409: ;
10410: return 0;
10411: }
10412: _ACEOF
10413: rm -f conftest.$ac_objext conftest$ac_exeext
10414: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415: (eval $ac_link) 2>&5
10416: ac_status=$?
10417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418: (exit $ac_status); } &&
10419: { ac_try='test -s conftest$ac_exeext'
10420: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421: (eval $ac_try) 2>&5
10422: ac_status=$?
10423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424: (exit $ac_status); }; }; then
10425: ac_cv_lib_ICE_IceConnectionNumber=yes
10426: else
10427: echo "$as_me: failed program was:" >&5
10428: sed 's/^/| /' conftest.$ac_ext >&5
10429:
10430: ac_cv_lib_ICE_IceConnectionNumber=no
10431: fi
10432: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10433: LIBS=$ac_check_lib_save_LIBS
10434: fi
10435: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10436: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10437: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10438: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10439: fi
10440:
10441: LDFLAGS=$ac_save_LDFLAGS
10442:
10443: fi
10444:
10445:
10446:
10447: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10448: if test "${with_gtk_prefix+set}" = set; then
10449: withval="$with_gtk_prefix"
10450: gtk_config_prefix="$withval"
10451: else
10452: gtk_config_prefix=""
10453: fi;
10454:
10455: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10456: if test "${with_gtk_exec_prefix+set}" = set; then
10457: withval="$with_gtk_exec_prefix"
10458: gtk_config_exec_prefix="$withval"
10459: else
10460: gtk_config_exec_prefix=""
10461: fi;
10462: # Check whether --enable-gtktest or --disable-gtktest was given.
10463: if test "${enable_gtktest+set}" = set; then
10464: enableval="$enable_gtktest"
10465:
10466: else
10467: enable_gtktest=yes
10468: fi;
10469:
10470: for module in .
10471: do
10472: case "$module" in
10473: gthread)
10474: gtk_config_args="$gtk_config_args gthread"
10475: ;;
10476: esac
10477: done
10478:
10479: if test x$gtk_config_exec_prefix != x ; then
10480: gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10481: if test x${GTK_CONFIG+set} != xset ; then
10482: GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10483: fi
10484: fi
10485: if test x$gtk_config_prefix != x ; then
10486: gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10487: if test x${GTK_CONFIG+set} != xset ; then
10488: GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10489: fi
10490: fi
10491:
10492: # Extract the first word of "gtk-config", so it can be a program name with args.
10493: set dummy gtk-config; ac_word=$2
10494: echo "$as_me:$LINENO: checking for $ac_word" >&5
10495: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496: if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10497: echo $ECHO_N "(cached) $ECHO_C" >&6
10498: else
10499: case $GTK_CONFIG in
10500: [\\/]* | ?:[\\/]*)
10501: ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10502: ;;
10503: *)
10504: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505: for as_dir in $PATH
10506: do
10507: IFS=$as_save_IFS
10508: test -z "$as_dir" && as_dir=.
10509: for ac_exec_ext in '' $ac_executable_extensions; do
10510: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511: ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10512: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513: break 2
10514: fi
10515: done
10516: done
10517:
10518: test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10519: ;;
10520: esac
10521: fi
10522: GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10523:
10524: if test -n "$GTK_CONFIG"; then
10525: echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
10526: echo "${ECHO_T}$GTK_CONFIG" >&6
10527: else
10528: echo "$as_me:$LINENO: result: no" >&5
10529: echo "${ECHO_T}no" >&6
10530: fi
10531:
10532: min_gtk_version=0.99.7
10533: echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
10534: echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
10535: no_gtk=""
10536: if test "$GTK_CONFIG" = "no" ; then
10537: no_gtk=yes
10538: else
10539: GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10540: GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10541: gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10542: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10543: gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10544: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10545: gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10546: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10547: if test "x$enable_gtktest" = "xyes" ; then
10548: ac_save_CFLAGS="$CFLAGS"
10549: ac_save_LIBS="$LIBS"
10550: CFLAGS="$CFLAGS $GTK_CFLAGS"
10551: LIBS="$GTK_LIBS $LIBS"
10552: rm -f conf.gtktest
10553: if test "$cross_compiling" = yes; then
10554: echo $ac_n "cross compiling; assumed OK... $ac_c"
10555: else
10556: cat >conftest.$ac_ext <<_ACEOF
1.1 root 10557: #line $LINENO "configure"
10558: /* confdefs.h. */
10559: _ACEOF
10560: cat confdefs.h >>conftest.$ac_ext
10561: cat >>conftest.$ac_ext <<_ACEOF
10562: /* end confdefs.h. */
10563:
1.1.1.2 root 10564: #include <gtk/gtk.h>
10565: #include <stdio.h>
10566: #include <stdlib.h>
1.1 root 10567:
1.1.1.2 root 10568: int
10569: main ()
10570: {
10571: int major, minor, micro;
10572: char *tmp_version;
1.1 root 10573:
1.1.1.2 root 10574: system ("touch conf.gtktest");
1.1 root 10575:
1.1.1.2 root 10576: /* HP/UX 9 (%@#!) writes to sscanf strings */
10577: tmp_version = g_strdup("$min_gtk_version");
10578: if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10579: printf("%s, bad version string\n", "$min_gtk_version");
10580: exit(1);
10581: }
10582:
10583: if ((gtk_major_version != $gtk_config_major_version) ||
10584: (gtk_minor_version != $gtk_config_minor_version) ||
10585: (gtk_micro_version != $gtk_config_micro_version))
10586: {
10587: printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10588: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10589: gtk_major_version, gtk_minor_version, gtk_micro_version);
10590: printf ("*** was found! If gtk-config was correct, then it is best\n");
10591: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10592: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10593: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10594: printf("*** required on your system.\n");
10595: printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10596: printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10597: printf("*** before re-running configure\n");
10598: }
10599: #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10600: else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10601: (gtk_minor_version != GTK_MINOR_VERSION) ||
10602: (gtk_micro_version != GTK_MICRO_VERSION))
10603: {
10604: printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10605: GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10606: printf("*** library (version %d.%d.%d)\n",
10607: gtk_major_version, gtk_minor_version, gtk_micro_version);
10608: }
10609: #endif /* defined (GTK_MAJOR_VERSION) ... */
10610: else
10611: {
10612: if ((gtk_major_version > major) ||
10613: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10614: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10615: {
10616: return 0;
10617: }
10618: else
10619: {
10620: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10621: gtk_major_version, gtk_minor_version, gtk_micro_version);
10622: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10623: major, minor, micro);
10624: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10625: printf("***\n");
10626: printf("*** If you have already installed a sufficiently new version, this error\n");
10627: printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10628: printf("*** being found. The easiest way to fix this is to remove the old version\n");
10629: printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10630: printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10631: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10632: printf("*** so that the correct libraries are found at run-time))\n");
10633: }
10634: }
10635: return 1;
10636: }
1.1 root 10637:
1.1.1.2 root 10638: _ACEOF
10639: rm -f conftest$ac_exeext
10640: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641: (eval $ac_link) 2>&5
10642: ac_status=$?
10643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646: (eval $ac_try) 2>&5
10647: ac_status=$?
10648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649: (exit $ac_status); }; }; then
10650: :
1.1 root 10651: else
1.1.1.2 root 10652: echo "$as_me: program exited with status $ac_status" >&5
10653: echo "$as_me: failed program was:" >&5
10654: sed 's/^/| /' conftest.$ac_ext >&5
1.1 root 10655:
1.1.1.2 root 10656: ( exit $ac_status )
10657: no_gtk=yes
1.1 root 10658: fi
1.1.1.2 root 10659: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 10660: fi
1.1.1.2 root 10661: CFLAGS="$ac_save_CFLAGS"
10662: LIBS="$ac_save_LIBS"
10663: fi
10664: fi
10665: if test "x$no_gtk" = x ; then
10666: echo "$as_me:$LINENO: result: yes" >&5
10667: echo "${ECHO_T}yes" >&6
10668: have_gtk=true
10669: else
10670: echo "$as_me:$LINENO: result: no" >&5
10671: echo "${ECHO_T}no" >&6
10672: if test "$GTK_CONFIG" = "no" ; then
10673: echo "*** The gtk-config script installed by GTK could not be found"
10674: echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10675: echo "*** your path, or set the GTK_CONFIG environment variable to the"
10676: echo "*** full path to gtk-config."
10677: else
10678: if test -f conf.gtktest ; then
10679: :
10680: else
10681: echo "*** Could not run GTK test program, checking why..."
10682: CFLAGS="$CFLAGS $GTK_CFLAGS"
10683: LIBS="$LIBS $GTK_LIBS"
10684: cat >conftest.$ac_ext <<_ACEOF
1.1 root 10685: #line $LINENO "configure"
10686: /* confdefs.h. */
10687: _ACEOF
10688: cat confdefs.h >>conftest.$ac_ext
10689: cat >>conftest.$ac_ext <<_ACEOF
10690: /* end confdefs.h. */
1.1.1.2 root 10691:
10692: #include <gtk/gtk.h>
10693: #include <stdio.h>
10694:
10695: int
10696: main ()
10697: {
10698: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10699: ;
10700: return 0;
10701: }
1.1 root 10702: _ACEOF
1.1.1.2 root 10703: rm -f conftest.$ac_objext conftest$ac_exeext
10704: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705: (eval $ac_link) 2>&5
1.1 root 10706: ac_status=$?
10707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708: (exit $ac_status); } &&
1.1.1.2 root 10709: { ac_try='test -s conftest$ac_exeext'
1.1 root 10710: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711: (eval $ac_try) 2>&5
10712: ac_status=$?
10713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714: (exit $ac_status); }; }; then
1.1.1.2 root 10715: echo "*** The test program compiled, but did not run. This usually means"
10716: echo "*** that the run-time linker is not finding GTK or finding the wrong"
10717: echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10718: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10719: echo "*** to the installed location Also, make sure you have run ldconfig if that"
10720: echo "*** is required on your system"
10721: echo "***"
10722: echo "*** If you have an old version installed, it is best to remove it, although"
10723: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10724: echo "***"
10725: echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10726: echo "*** came with the system with the command"
10727: echo "***"
10728: echo "*** rpm --erase --nodeps gtk gtk-devel"
1.1 root 10729: else
10730: echo "$as_me: failed program was:" >&5
10731: sed 's/^/| /' conftest.$ac_ext >&5
10732:
1.1.1.2 root 10733: echo "*** The test program failed to compile or link. See the file config.log for the"
10734: echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10735: echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10736: echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
1.1 root 10737: fi
1.1.1.2 root 10738: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10739: CFLAGS="$ac_save_CFLAGS"
10740: LIBS="$ac_save_LIBS"
10741: fi
10742: fi
10743: GTK_CFLAGS=""
10744: GTK_LIBS=""
10745: have_gtk=false
10746: fi
1.1 root 10747:
1.1.1.2 root 10748:
10749: rm -f conf.gtktest
10750:
10751: if $have_gtk; then
10752:
10753: cat >>confdefs.h <<\_ACEOF
10754: #define HAVE_GTK
1.1 root 10755: _ACEOF
10756:
1.1.1.2 root 10757: TME_HOSTS="${TME_HOSTS} gtk"
1.1 root 10758: fi
10759:
1.1.1.2 root 10760: TME_FB_XLAT_DST=
10761: area_smallest=0
10762: area_largest=0
1.1 root 10763:
1.1.1.3 root 10764: # if --with-tme-host-displays is given, characterize those given displays:
10765:
10766: # Check whether --with-tme-host-displays or --without-tme-host-displays was given.
10767: if test "${with_tme_host_displays+set}" = set; then
10768: withval="$with_tme_host_displays"
10769:
10770: fi;
10771: for dst_key in ${with_tme_host_displays}; do
1.1 root 10772:
10773:
1.1.1.2 root 10774: this_width=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
10775: this_height=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
10776: dst_key=`echo ${dst_key} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\3/'`
10777: this_area=`expr ${this_width} \* ${this_height}`
10778:
10779: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
10780: area_smallest=${this_area}
10781: fi
10782: if test `expr ${this_area} \> ${area_largest}` = 1; then
10783: area_largest=${this_area}
10784: fi
10785:
10786: # add in this destination display key:
10787: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
10788: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
10789: fi
10790:
10791: done
10792:
10793: # if DISPLAY is set and xdpyinfo appears to work, characterize this X display:
10794: if test "x${DISPLAY}" != x && xdpyinfo >/dev/null 2>&1; then
10795: echo "$as_me:$LINENO: checking characteristics of X display ${DISPLAY}" >&5
10796: echo $ECHO_N "checking characteristics of X display ${DISPLAY}... $ECHO_C" >&6
10797:
10798:
10799: # get the format this display uses for bitmaps:
10800: bitmap_info=`xdpyinfo | grep 'bitmap unit' | sed -e 's/bitmap unit, *bit order, *padding: *\(.*\)$/\1/'`
10801: bitmap_order=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\2/'`
10802: bitmap_pad=`echo ${bitmap_info} | sed -e 's/\([0-9][0-9]*\), *\([LM]\)SBFirst, *\([0-9][0-9]*\).*/\3/'`
10803: bitmap_order=`echo ${bitmap_order} | tr A-Z a-z`
10804:
1.1.1.3 root 10805: # get the format this display uses for images at its default depth. we
10806: # assume that the root window is at the default depth:
1.1.1.2 root 10807: pixmap_order=`xdpyinfo | grep 'image byte order'`
10808: pixmap_order=`echo ${pixmap_order} | sed -e 's/.*image byte order: *\([LM]\)SBFirst.*/\1/' | tr A-Z a-z`
1.1.1.3 root 10809: pixmap_depth=`xwininfo -root | grep 'Depth:'`
10810: pixmap_depth=`echo ${pixmap_depth} | sed -e 's/.*Depth: *\([0-9][0-9]*\).*/\1/'`
1.1.1.2 root 10811: pixmap_infos=`xdpyinfo | grep bits_per_pixel | tr '\n' %`
10812: save_IFS=$IFS
10813: IFS=%
10814: for pixmap_info in $pixmap_infos; do
10815: IFS=$save_IFS
10816: if test "x$pixmap_info" = x; then continue; fi
10817: this_pixmap_depth=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\1/'`
10818: this_pixmap_bipp=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\2/'`
10819: this_pixmap_pad=`echo ${pixmap_info} | sed -e 's/.*depth \([0-9][0-9]*\), *bits_per_pixel \([0-9][0-9]*\), *scanline_pad \([0-9][0-9]*\).*/\3/'`
1.1.1.3 root 10820: if test "x${this_pixmap_depth}" = "x${pixmap_depth}"; then
1.1.1.2 root 10821: pixmap_bipp=${this_pixmap_bipp}
10822: pixmap_pad=${this_pixmap_pad}
1.1.1.3 root 10823: break
1.1.1.2 root 10824: fi
10825: done
10826: IFS=$save_IFS
10827:
10828: # if this display's greatest depth is one, we use its
10829: # bitmap format:
1.1.1.3 root 10830: if test "x${pixmap_bipp}" = x; then
1.1.1.2 root 10831: pixmap_bipp=1
10832: pixmap_pad=${bitmap_pad}
10833:
10834: # our translation functions can't handle the case when the bitmap
10835: # bit order is different from the image byte order - doing so
10836: # requires dealing with the bitmap unit size. since this
10837: # situation is rare, just bail:
10838: if test ${bitmap_order} != ${pixmap_order}; then
10839: { echo "$as_me:$LINENO: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&5
10840: echo "$as_me: WARNING: the X display ${DISPLAY} is monochrome and needs bitmaps with a bit order that the generic code doesn't support" >&2;}
1.1.1.3 root 10841: pixmap_bipp=
1.1.1.2 root 10842: fi
10843: fi
10844:
10845: # if this display seems usable:
1.1.1.3 root 10846: if test "x${pixmap_bipp}" != x; then
1.1.1.2 root 10847:
10848: # check the dimensions of all screens on this display:
10849: dimensions=`xdpyinfo | grep dimensions | tr '\n' %`
10850: save_IFS=$IFS
10851: IFS=%
10852: for dimension in $dimensions; do
10853: IFS=$save_IFS
10854: if test "x$dimension" = x; then continue; fi
10855: this_width=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\1/'`
10856: this_height=`echo ${dimension} | sed -e 's/.*dimensions: *\([0-9][0-9]*\)x\([0-9][0-9]*\).*/\2/'`
10857: this_area=`expr ${this_width} \* ${this_height}`
10858: if test ${area_smallest} = 0 || test `expr ${this_area} \< ${area_smallest}` = 1; then
10859: area_smallest=${this_area}
10860: fi
10861: if test `expr ${this_area} \> ${area_largest}` = 1; then
10862: area_largest=${this_area}
10863: fi
10864: done
10865: IFS=$save_IFS
10866:
1.1.1.3 root 10867: # assume an unknown set of masks and an unknown mapping type:
10868: dst_masks=_r0x0_g0x0_b0x0
10869: dst_map=
10870: value_visual=", unknown visual"
10871:
10872: # if the depth is greater than one:
10873: if test "x${pixmap_depth}" != 1; then
10874:
10875: # we assume that the root window uses the default visual:
10876: visual=`xwininfo -root | grep 'Visual Class:' | sed -e 's/^ *Visual Class: *\([A-Za-z][A-Za-z]*\).*$/\1/'`
10877:
10878: # get any primary masks for this visual:
10879: case "x${visual}" in
10880: xDirectColor | xTrueColor)
10881: dst_masks=`xdpyinfo | $EGREP '(visual id|class|blue masks):' | $EGREP -C1 $visual | grep 'blue masks' | head -1`
10882: dst_masks=`echo ${dst_masks} | sed -e 's/^.*blue masks: *\(.*\)/\1/'`
10883: value_visual=", rgb masks ${dst_masks}"
10884: dst_masks=`echo ${dst_masks} | sed -e 's/^/_r/' -e 's/, /_g/' -e 's/, /_b/'`
10885: ;;
10886: xStaticGray | xGrayScale | xStaticColor | xPseudoColor)
10887: dst_masks=
10888: value_visual=", no subfields"
10889: ;;
10890: *) ;;
10891: esac
10892:
10893: # get the mapping type for this visual:
10894: case "x${visual}" in
10895: xStaticGray | xStaticColor | xPseudoColor)
10896: dst_map="ml"
10897: ;;
10898: xDirectColor)
10899: dst_map="mi"
10900: value_visual="${value_visual}, indexed"
10901: ;;
10902: xGrayScale | xTrueColor)
10903: dst_map="ml"
10904: value_visual="${value_visual}, linear"
10905: ;;
10906: *) ;;
10907: esac
10908: fi
10909:
1.1.1.2 root 10910:
10911: # finish the characterization:
1.1.1.3 root 10912: if test "x${pixmap_bipp}" = "x${pixmap_depth}"; then
1.1.1.2 root 10913: value=
10914: else
10915: value=" (${pixmap_bipp} bits per pixel)"
10916: fi
1.1.1.3 root 10917: echo "$as_me:$LINENO: result: ${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&5
10918: echo "${ECHO_T}${pixmap_depth}-bit${value} ${pixmap_order}sb-first images with ${pixmap_pad}-bit padding${value_visual}" >&6
10919: dst_key="d${pixmap_depth}b${pixmap_bipp}s0p${pixmap_pad}o${pixmap_order}${dst_map}${dst_masks}"
1.1.1.2 root 10920:
10921: # add in this destination display key:
10922: if echo " ${TME_FB_XLAT_DST} " | grep " ${dst_key} " > /dev/null 2>&1; then :; else
10923: TME_FB_XLAT_DST="${TME_FB_XLAT_DST} ${dst_key}"
10924: fi
10925: fi
1.1 root 10926: fi
1.1.1.2 root 10927:
1.1 root 10928:
10929: systems=all
10930: if echo " ${systems} " | grep ' all ' > /dev/null 2>&1; then
1.1.1.4 ! root 10931: systems="sun2 sun3 sun4"
1.1 root 10932: fi
10933: TME_MACHINE_SUBDIRS=
10934: TME_IC_SUBDIRS=
10935: TME_ICS=
1.1.1.2 root 10936: TME_SERIAL_SUBDIRS=
10937: TME_SERIALS=
1.1 root 10938: TME_BUS_SUBDIRS=
1.1.1.2 root 10939: TME_FB_XLAT_SRC=
1.1 root 10940: for system in $systems; do
10941:
10942: # dispatch on the machine type to get more machines, ICs, and
10943: # buses to compile:
10944: case ${system} in
10945:
10946: # the sun2:
10947: sun2)
10948: machines="sun sun2"
1.1.1.3 root 10949: ics="m68k am9513 mm58167 z8530 i825x6"
1.1 root 10950: buses="multibus"
1.1.1.2 root 10951: fb_xlats="1152x900d1b1s0p32om"
1.1 root 10952: ;;
10953:
1.1.1.3 root 10954: # the sun3:
10955: sun3)
10956: machines="sun sun3"
10957: ics="m68k isil7170 z8530 i825x6 ieee754 ncr5380"
10958: buses="multibus"
10959: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
10960: ;;
10961:
1.1.1.4 ! root 10962: # the sun4:
! 10963: sun4)
! 10964: machines="sun sun4"
! 10965: ics="sparc isil7170 z8530 am7930 am7990 ieee754 ncr53c9x mk48txx lsi64854 nec765"
! 10966: buses="sbus"
! 10967: fb_xlats="1152x900d1b1s0p32om 1152x900d8b8s0p32ommi8 1152x900d1b1s0p32omccmi8"
! 10968: ;;
! 10969:
1.1 root 10970: *)
10971: { { echo "$as_me:$LINENO: error: don't know how to emulate ${machine}" >&5
10972: echo "$as_me: error: don't know how to emulate ${machine}" >&2;}
10973: { (exit 1); exit 1; }; }
10974: ;;
10975: esac
10976:
1.1.1.2 root 10977: # add in the new machines, ICs, serials, and buses to compile:
1.1 root 10978: for machine in $machines; do
10979: if echo " ${TME_MACHINE_SUBDIRS} " | grep " ${machine} " > /dev/null 2>&1; then :; else
10980: TME_MACHINE_SUBDIRS="${TME_MACHINE_SUBDIRS} ${machine}"
10981: fi
10982: done
10983: for ic in $ics; do
10984: if test -d ic/$ic; then
10985: if echo " ${TME_IC_SUBDIRS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
10986: TME_IC_SUBDIRS="${TME_IC_SUBDIRS} ${ic}"
10987: fi
10988: else
10989: ic="tme_ic_${ic}.la"
10990: if echo " ${TME_ICS} " | grep " ${ic} " > /dev/null 2>&1; then :; else
10991: TME_ICS="${TME_ICS} ${ic}"
10992: fi
10993: fi
10994: done
1.1.1.2 root 10995: for serial in $serials; do
10996: if test -d serial/$serial; then
10997: if echo " ${TME_SERIAL_SUBDIRS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
10998: TME_SERIAL_SUBDIRS="${TME_SERIAL_SUBDIRS} ${serial}"
10999: fi
11000: else
11001: serial="tme_serial_${serial}.la"
11002: if echo " ${TME_SERIALS} " | grep " ${serial} " > /dev/null 2>&1; then :; else
11003: TME_SERIALS="${TME_SERIALS} ${serial}"
11004: fi
11005: fi
11006: done
1.1 root 11007: for bus in $buses; do
11008: if echo " ${TME_BUS_SUBDIRS} " | grep " ${bus} " > /dev/null 2>&1; then :; else
11009: TME_BUS_SUBDIRS="${TME_BUS_SUBDIRS} ${bus}"
11010: fi
11011: done
1.1.1.2 root 11012:
11013: # add in the new frame buffer translations to compile:
11014: for fb_xlat in $fb_xlats; do
11015: if echo " ${TME_FB_XLAT_SRC} " | grep " ${fb_xlat} " > /dev/null 2>&1; then :; else
11016: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${fb_xlat}"
11017: fi
11018:
11019:
11020: # calculate the area of this frame buffer multiplied by 100:
11021: this_width=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\1/'`
11022: this_height=`echo ${fb_xlat} | sed -e 's/^\([0-9][0-9]*\)x\([0-9][0-9]*\)\(.*\)$/\2/'`
11023: this_area=`expr ${this_width} \* ${this_height} \* 100`
11024:
11025:
11026: # if this frame buffer would consume at least 70 percent of
11027: # the smallest destination screen, make an xlat function that
11028: # scales this frame buffer down by two:
11029: if test ${area_smallest} = 0; then
11030: percentage=100
11031: else
11032: percentage=`expr ${this_area} / ${area_smallest}`
11033: fi
11034: if test `expr ${percentage} \> 70` = 1; then
11035: src_key="${fb_xlat}_h"
11036: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
11037: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
11038: fi
11039: fi
11040:
11041: # if this frame buffer would consume less than 30 percent of
11042: # the largest destination screen, make an xlat function that
11043: # scales this frame buffer up by two:
11044: if test ${area_largest} = 0; then
11045: percentage=0
11046: else
11047: percentage=`expr ${this_area} / ${area_largest}`
11048: fi
11049: if test `expr ${percentage} \< 30` = 1; then
11050: src_key="${fb_xlat}_d"
11051: if echo " ${TME_FB_XLAT_SRC} " | grep " ${src_key} " > /dev/null 2>&1; then :; else
11052: TME_FB_XLAT_SRC="${TME_FB_XLAT_SRC} ${src_key}"
11053: fi
11054: fi
11055: done
1.1 root 11056: done
1.1.1.2 root 11057:
11058:
11059:
11060:
1.1 root 11061:
11062:
11063:
11064:
11065:
11066:
11067: echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
11068: echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
11069: if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
11070: echo $ECHO_N "(cached) $ECHO_C" >&6
11071: else
11072: ac_check_lib_save_LIBS=$LIBS
11073: LIBS="-lltdl $LIBS"
11074: cat >conftest.$ac_ext <<_ACEOF
11075: #line $LINENO "configure"
11076: /* confdefs.h. */
11077: _ACEOF
11078: cat confdefs.h >>conftest.$ac_ext
11079: cat >>conftest.$ac_ext <<_ACEOF
11080: /* end confdefs.h. */
11081:
11082: /* Override any gcc2 internal prototype to avoid an error. */
11083: #ifdef __cplusplus
11084: extern "C"
11085: #endif
11086: /* We use char because int might match the return type of a gcc2
11087: builtin and then its argument prototype would still apply. */
11088: char lt_dlinit ();
11089: int
11090: main ()
11091: {
11092: lt_dlinit ();
11093: ;
11094: return 0;
11095: }
11096: _ACEOF
11097: rm -f conftest.$ac_objext conftest$ac_exeext
11098: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11099: (eval $ac_link) 2>&5
11100: ac_status=$?
11101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102: (exit $ac_status); } &&
11103: { ac_try='test -s conftest$ac_exeext'
11104: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105: (eval $ac_try) 2>&5
11106: ac_status=$?
11107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108: (exit $ac_status); }; }; then
11109: ac_cv_lib_ltdl_lt_dlinit=yes
11110: else
11111: echo "$as_me: failed program was:" >&5
11112: sed 's/^/| /' conftest.$ac_ext >&5
11113:
11114: ac_cv_lib_ltdl_lt_dlinit=no
11115: fi
11116: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11117: LIBS=$ac_check_lib_save_LIBS
11118: fi
11119: echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
11120: echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
11121: if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
11122: test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
11123: else
11124: if test x"$enable_ltdl_install" = xno; then
11125: { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
11126: echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
11127: else
11128: enable_ltdl_install=yes
11129: fi
11130:
11131: fi
11132:
11133: if test x"$enable_ltdl_install" = x"yes"; then
11134: ac_configure_args="$ac_configure_args --enable-ltdl-install"
11135: LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
11136: LTDLINCL='-I${top_srcdir}/''libltdl'
11137: else
11138: ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
11139: LIBLTDL="-lltdl"
11140: LTDLINCL=
11141: fi
11142: # For backwards non-gettext consistent compatibility...
11143: INCLTDL="$LTDLINCL"
11144:
11145:
11146:
11147:
11148:
11149: # Check whether --enable-shared or --disable-shared was given.
11150: if test "${enable_shared+set}" = set; then
11151: enableval="$enable_shared"
11152: p=${PACKAGE-default}
11153: case $enableval in
11154: yes) enable_shared=yes ;;
11155: no) enable_shared=no ;;
11156: *)
11157: enable_shared=no
11158: # Look at the argument we got. We use all the common list separators.
11159: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11160: for pkg in $enableval; do
11161: IFS="$lt_save_ifs"
11162: if test "X$pkg" = "X$p"; then
11163: enable_shared=yes
11164: fi
11165: done
11166: IFS="$lt_save_ifs"
11167: ;;
11168: esac
11169: else
11170: enable_shared=yes
11171: fi;
11172:
11173: # Check whether --enable-static or --disable-static was given.
11174: if test "${enable_static+set}" = set; then
11175: enableval="$enable_static"
11176: p=${PACKAGE-default}
11177: case $enableval in
11178: yes) enable_static=yes ;;
11179: no) enable_static=no ;;
11180: *)
11181: enable_static=no
11182: # Look at the argument we got. We use all the common list separators.
11183: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11184: for pkg in $enableval; do
11185: IFS="$lt_save_ifs"
11186: if test "X$pkg" = "X$p"; then
11187: enable_static=yes
11188: fi
11189: done
11190: IFS="$lt_save_ifs"
11191: ;;
11192: esac
11193: else
11194: enable_static=yes
11195: fi;
11196:
11197: # Check whether --enable-fast-install or --disable-fast-install was given.
11198: if test "${enable_fast_install+set}" = set; then
11199: enableval="$enable_fast_install"
11200: p=${PACKAGE-default}
11201: case $enableval in
11202: yes) enable_fast_install=yes ;;
11203: no) enable_fast_install=no ;;
11204: *)
11205: enable_fast_install=no
11206: # Look at the argument we got. We use all the common list separators.
11207: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11208: for pkg in $enableval; do
11209: IFS="$lt_save_ifs"
11210: if test "X$pkg" = "X$p"; then
11211: enable_fast_install=yes
11212: fi
11213: done
11214: IFS="$lt_save_ifs"
11215: ;;
11216: esac
11217: else
11218: enable_fast_install=yes
11219: fi;
11220:
11221: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11222: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
11223: if test "${lt_cv_path_SED+set}" = set; then
11224: echo $ECHO_N "(cached) $ECHO_C" >&6
11225: else
11226: # Loop through the user's path and test for sed and gsed.
11227: # Then use that list of sed's as ones to test for truncation.
11228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229: for as_dir in $PATH
11230: do
11231: IFS=$as_save_IFS
11232: test -z "$as_dir" && as_dir=.
11233: for lt_ac_prog in sed gsed; do
11234: for ac_exec_ext in '' $ac_executable_extensions; do
11235: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11236: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11237: fi
11238: done
11239: done
11240: done
11241: lt_ac_max=0
11242: lt_ac_count=0
11243: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11244: # along with /bin/sed that truncates output.
11245: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11246: test ! -f $lt_ac_sed && break
11247: cat /dev/null > conftest.in
11248: lt_ac_count=0
11249: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11250: # Check for GNU sed and select it if it is found.
11251: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11252: lt_cv_path_SED=$lt_ac_sed
11253: break
11254: fi
11255: while true; do
11256: cat conftest.in conftest.in >conftest.tmp
11257: mv conftest.tmp conftest.in
11258: cp conftest.in conftest.nl
11259: echo >>conftest.nl
11260: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11261: cmp -s conftest.out conftest.nl || break
11262: # 10000 chars as input seems more than enough
11263: test $lt_ac_count -gt 10 && break
11264: lt_ac_count=`expr $lt_ac_count + 1`
11265: if test $lt_ac_count -gt $lt_ac_max; then
11266: lt_ac_max=$lt_ac_count
11267: lt_cv_path_SED=$lt_ac_sed
11268: fi
11269: done
11270: done
11271: SED=$lt_cv_path_SED
11272:
11273: fi
11274:
11275: echo "$as_me:$LINENO: result: $SED" >&5
11276: echo "${ECHO_T}$SED" >&6
11277:
11278:
11279: # Check whether --with-gnu-ld or --without-gnu-ld was given.
11280: if test "${with_gnu_ld+set}" = set; then
11281: withval="$with_gnu_ld"
11282: test "$withval" = no || with_gnu_ld=yes
11283: else
11284: with_gnu_ld=no
11285: fi;
11286: ac_prog=ld
11287: if test "$GCC" = yes; then
11288: # Check if gcc -print-prog-name=ld gives a path.
11289: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11290: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11291: case $host in
11292: *-*-mingw*)
11293: # gcc leaves a trailing carriage return which upsets mingw
11294: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11295: *)
11296: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11297: esac
11298: case $ac_prog in
11299: # Accept absolute paths.
11300: [\\/]* | ?:[\\/]*)
11301: re_direlt='/[^/][^/]*/\.\./'
11302: # Canonicalize the path of ld
11303: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11304: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11305: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11306: done
11307: test -z "$LD" && LD="$ac_prog"
11308: ;;
11309: "")
11310: # If it fails, then pretend we aren't using GCC.
11311: ac_prog=ld
11312: ;;
11313: *)
11314: # If it is relative, then search for the first ld in PATH.
11315: with_gnu_ld=unknown
11316: ;;
11317: esac
11318: elif test "$with_gnu_ld" = yes; then
11319: echo "$as_me:$LINENO: checking for GNU ld" >&5
11320: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11321: else
11322: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11323: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11324: fi
11325: if test "${lt_cv_path_LD+set}" = set; then
11326: echo $ECHO_N "(cached) $ECHO_C" >&6
11327: else
11328: if test -z "$LD"; then
11329: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11330: for ac_dir in $PATH; do
11331: IFS="$lt_save_ifs"
11332: test -z "$ac_dir" && ac_dir=.
11333: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11334: lt_cv_path_LD="$ac_dir/$ac_prog"
11335: # Check to see if the program is GNU ld. I'd rather use --version,
11336: # but apparently some GNU ld's only accept -v.
11337: # Break only if it was the GNU/non-GNU ld that we prefer.
11338: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11339: *GNU* | *'with BFD'*)
11340: test "$with_gnu_ld" != no && break
11341: ;;
11342: *)
11343: test "$with_gnu_ld" != yes && break
11344: ;;
11345: esac
11346: fi
11347: done
11348: IFS="$lt_save_ifs"
11349: else
11350: lt_cv_path_LD="$LD" # Let the user override the test with a path.
11351: fi
11352: fi
11353:
11354: LD="$lt_cv_path_LD"
11355: if test -n "$LD"; then
11356: echo "$as_me:$LINENO: result: $LD" >&5
11357: echo "${ECHO_T}$LD" >&6
11358: else
11359: echo "$as_me:$LINENO: result: no" >&5
11360: echo "${ECHO_T}no" >&6
11361: fi
11362: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11363: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11364: { (exit 1); exit 1; }; }
11365: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11366: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11367: if test "${lt_cv_prog_gnu_ld+set}" = set; then
11368: echo $ECHO_N "(cached) $ECHO_C" >&6
11369: else
11370: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11371: case `"$LD" -v 2>&1 </dev/null` in
11372: *GNU* | *'with BFD'*)
11373: lt_cv_prog_gnu_ld=yes
11374: ;;
11375: *)
11376: lt_cv_prog_gnu_ld=no
11377: ;;
11378: esac
11379: fi
11380: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11381: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11382: with_gnu_ld=$lt_cv_prog_gnu_ld
11383:
11384:
11385: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11386: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
11387: if test "${lt_cv_ld_reload_flag+set}" = set; then
11388: echo $ECHO_N "(cached) $ECHO_C" >&6
11389: else
11390: lt_cv_ld_reload_flag='-r'
11391: fi
11392: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11393: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
11394: reload_flag=$lt_cv_ld_reload_flag
11395: case $reload_flag in
11396: "" | " "*) ;;
11397: *) reload_flag=" $reload_flag" ;;
11398: esac
11399: reload_cmds='$LD$reload_flag -o $output$reload_objs'
11400:
11401: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11402: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
11403: if test "${lt_cv_path_NM+set}" = set; then
11404: echo $ECHO_N "(cached) $ECHO_C" >&6
11405: else
11406: if test -n "$NM"; then
11407: # Let the user override the test.
11408: lt_cv_path_NM="$NM"
11409: else
11410: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11411: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
11412: IFS="$lt_save_ifs"
11413: test -z "$ac_dir" && ac_dir=.
11414: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
11415: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11416: # Check to see if the nm accepts a BSD-compat flag.
11417: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11418: # nm: unknown option "B" ignored
11419: # Tru64's nm complains that /dev/null is an invalid object file
11420: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11421: */dev/null* | *'Invalid file or object type'*)
11422: lt_cv_path_NM="$tmp_nm -B"
11423: break
11424: ;;
11425: *)
11426: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11427: */dev/null*)
11428: lt_cv_path_NM="$tmp_nm -p"
11429: break
11430: ;;
11431: *)
11432: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11433: continue # so that we can try to find one that supports BSD flags
11434: ;;
11435: esac
11436: esac
11437: fi
11438: done
11439: IFS="$lt_save_ifs"
11440: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11441: fi
11442: fi
11443: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11444: echo "${ECHO_T}$lt_cv_path_NM" >&6
11445: NM="$lt_cv_path_NM"
11446:
11447: echo "$as_me:$LINENO: checking whether ln -s works" >&5
11448: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11449: LN_S=$as_ln_s
11450: if test "$LN_S" = "ln -s"; then
11451: echo "$as_me:$LINENO: result: yes" >&5
11452: echo "${ECHO_T}yes" >&6
11453: else
11454: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11455: echo "${ECHO_T}no, using $LN_S" >&6
11456: fi
11457:
11458: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11459: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
11460: if test "${lt_cv_deplibs_check_method+set}" = set; then
11461: echo $ECHO_N "(cached) $ECHO_C" >&6
11462: else
11463: lt_cv_file_magic_cmd='$MAGIC_CMD'
11464: lt_cv_file_magic_test_file=
11465: lt_cv_deplibs_check_method='unknown'
11466: # Need to set the preceding variable on all platforms that support
11467: # interlibrary dependencies.
11468: # 'none' -- dependencies not supported.
11469: # `unknown' -- same as none, but documents that we really don't know.
11470: # 'pass_all' -- all dependencies passed with no checks.
11471: # 'test_compile' -- check by making test program.
11472: # 'file_magic [[regex]]' -- check by looking for files in library path
11473: # which responds to the $file_magic_cmd with a given extended regex.
11474: # If you have `file' or equivalent on your system and you're not sure
11475: # whether `pass_all' will *always* work, you probably want this one.
11476:
11477: case $host_os in
11478: aix4* | aix5*)
11479: lt_cv_deplibs_check_method=pass_all
11480: ;;
11481:
11482: beos*)
11483: lt_cv_deplibs_check_method=pass_all
11484: ;;
11485:
11486: bsdi4*)
11487: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11488: lt_cv_file_magic_cmd='/usr/bin/file -L'
11489: lt_cv_file_magic_test_file=/shlib/libc.so
11490: ;;
11491:
11492: cygwin* | mingw* | pw32*)
11493: # win32_libid is a shell function defined in ltmain.sh
11494: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11495: lt_cv_file_magic_cmd='win32_libid'
11496: ;;
11497:
11498: darwin* | rhapsody*)
11499: # this will be overwritten by pass_all, but leave it in just in case
11500: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
11501: lt_cv_file_magic_cmd='/usr/bin/file -L'
11502: case "$host_os" in
11503: rhapsody* | darwin1.[012])
11504: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
11505: ;;
11506: *) # Darwin 1.3 on
11507: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
11508: ;;
11509: esac
11510: lt_cv_deplibs_check_method=pass_all
11511: ;;
11512:
11513: freebsd*)
11514: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11515: case $host_cpu in
11516: i*86 )
11517: # Not sure whether the presence of OpenBSD here was a mistake.
11518: # Let's accept both of them until this is cleared up.
11519: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
11520: lt_cv_file_magic_cmd=/usr/bin/file
11521: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11522: ;;
11523: esac
11524: else
11525: lt_cv_deplibs_check_method=pass_all
11526: fi
11527: ;;
11528:
11529: gnu*)
11530: lt_cv_deplibs_check_method=pass_all
11531: ;;
11532:
11533: hpux10.20* | hpux11*)
11534: lt_cv_file_magic_cmd=/usr/bin/file
11535: case "$host_cpu" in
11536: ia64*)
11537: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11538: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11539: ;;
11540: hppa*64*)
11541: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
11542: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11543: ;;
11544: *)
11545: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11546: lt_cv_file_magic_test_file=/usr/lib/libc.sl
11547: ;;
11548: esac
11549: ;;
11550:
11551: irix5* | irix6* | nonstopux*)
11552: case $host_os in
11553: irix5* | nonstopux*)
11554: # this will be overridden with pass_all, but let us keep it just in case
11555: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
11556: ;;
11557: *)
11558: case $LD in
11559: *-32|*"-32 ") libmagic=32-bit;;
11560: *-n32|*"-n32 ") libmagic=N32;;
11561: *-64|*"-64 ") libmagic=64-bit;;
11562: *) libmagic=never-match;;
11563: esac
11564: # this will be overridden with pass_all, but let us keep it just in case
11565: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
11566: ;;
11567: esac
11568: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
11569: lt_cv_deplibs_check_method=pass_all
11570: ;;
11571:
11572: # This must be Linux ELF.
11573: linux*)
11574: case $host_cpu in
11575: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
11576: lt_cv_deplibs_check_method=pass_all ;;
11577: *)
11578: # glibc up to 2.1.1 does not perform some relocations on ARM
11579: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
11580: esac
11581: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
11582: ;;
11583:
11584: netbsd*)
11585: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11586: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11587: else
11588: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11589: fi
11590: ;;
11591:
11592: newos6*)
11593: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11594: lt_cv_file_magic_cmd=/usr/bin/file
11595: lt_cv_file_magic_test_file=/usr/lib/libnls.so
11596: ;;
11597:
11598: nto-qnx)
11599: lt_cv_deplibs_check_method=unknown
11600: ;;
11601:
11602: openbsd*)
11603: lt_cv_file_magic_cmd=/usr/bin/file
11604: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11605: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11606: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
11607: else
11608: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
11609: fi
11610: ;;
11611:
11612: osf3* | osf4* | osf5*)
11613: # this will be overridden with pass_all, but let us keep it just in case
11614: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
11615: lt_cv_file_magic_test_file=/shlib/libc.so
11616: lt_cv_deplibs_check_method=pass_all
11617: ;;
11618:
11619: sco3.2v5*)
11620: lt_cv_deplibs_check_method=pass_all
11621: ;;
11622:
11623: solaris*)
11624: lt_cv_deplibs_check_method=pass_all
11625: lt_cv_file_magic_test_file=/lib/libc.so
11626: ;;
11627:
11628: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11629: case $host_vendor in
11630: motorola)
11631: 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]'
11632: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11633: ;;
11634: ncr)
11635: lt_cv_deplibs_check_method=pass_all
11636: ;;
11637: sequent)
11638: lt_cv_file_magic_cmd='/bin/file'
11639: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11640: ;;
11641: sni)
11642: lt_cv_file_magic_cmd='/bin/file'
11643: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11644: lt_cv_file_magic_test_file=/lib/libc.so
11645: ;;
11646: siemens)
11647: lt_cv_deplibs_check_method=pass_all
11648: ;;
11649: esac
11650: ;;
11651:
11652: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
11653: lt_cv_deplibs_check_method=pass_all
11654: ;;
11655: esac
11656:
11657: fi
11658: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11659: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11660: file_magic_cmd=$lt_cv_file_magic_cmd
11661: deplibs_check_method=$lt_cv_deplibs_check_method
11662: test -z "$deplibs_check_method" && deplibs_check_method=unknown
11663:
11664:
11665:
11666:
11667: # If no C compiler was specified, use CC.
11668: LTCC=${LTCC-"$CC"}
11669:
11670: # Allow CC to be a program name with arguments.
11671: compiler=$CC
11672:
11673: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11674: if test "${enable_libtool_lock+set}" = set; then
11675: enableval="$enable_libtool_lock"
11676:
11677: fi;
11678: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11679:
11680: # Some flags need to be propagated to the compiler or linker for good
11681: # libtool support.
11682: case $host in
11683: ia64-*-hpux*)
11684: # Find out which ABI we are using.
11685: echo 'int i;' > conftest.$ac_ext
11686: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11687: (eval $ac_compile) 2>&5
11688: ac_status=$?
11689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690: (exit $ac_status); }; then
11691: case `/usr/bin/file conftest.$ac_objext` in
11692: *ELF-32*)
11693: HPUX_IA64_MODE="32"
11694: ;;
11695: *ELF-64*)
11696: HPUX_IA64_MODE="64"
11697: ;;
11698: esac
11699: fi
11700: rm -rf conftest*
11701: ;;
11702: *-*-irix6*)
11703: # Find out which ABI we are using.
1.1.1.4 ! root 11704: echo '#line 11704 "configure"' > conftest.$ac_ext
1.1 root 11705: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706: (eval $ac_compile) 2>&5
11707: ac_status=$?
11708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709: (exit $ac_status); }; then
11710: if test "$lt_cv_prog_gnu_ld" = yes; then
11711: case `/usr/bin/file conftest.$ac_objext` in
11712: *32-bit*)
11713: LD="${LD-ld} -melf32bsmip"
11714: ;;
11715: *N32*)
11716: LD="${LD-ld} -melf32bmipn32"
11717: ;;
11718: *64-bit*)
11719: LD="${LD-ld} -melf64bmip"
11720: ;;
11721: esac
11722: else
11723: case `/usr/bin/file conftest.$ac_objext` in
11724: *32-bit*)
11725: LD="${LD-ld} -32"
11726: ;;
11727: *N32*)
11728: LD="${LD-ld} -n32"
11729: ;;
11730: *64-bit*)
11731: LD="${LD-ld} -64"
11732: ;;
11733: esac
11734: fi
11735: fi
11736: rm -rf conftest*
11737: ;;
11738:
11739: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11740: # Find out which ABI we are using.
11741: echo 'int i;' > conftest.$ac_ext
11742: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743: (eval $ac_compile) 2>&5
11744: ac_status=$?
11745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746: (exit $ac_status); }; then
11747: case "`/usr/bin/file conftest.o`" in
11748: *32-bit*)
11749: case $host in
11750: x86_64-*linux*)
11751: LD="${LD-ld} -m elf_i386"
11752: ;;
11753: ppc64-*linux*)
11754: LD="${LD-ld} -m elf32ppclinux"
11755: ;;
11756: s390x-*linux*)
11757: LD="${LD-ld} -m elf_s390"
11758: ;;
11759: sparc64-*linux*)
11760: LD="${LD-ld} -m elf32_sparc"
11761: ;;
11762: esac
11763: ;;
11764: *64-bit*)
11765: case $host in
11766: x86_64-*linux*)
11767: LD="${LD-ld} -m elf_x86_64"
11768: ;;
11769: ppc*-*linux*|powerpc*-*linux*)
11770: LD="${LD-ld} -m elf64ppc"
11771: ;;
11772: s390*-*linux*)
11773: LD="${LD-ld} -m elf64_s390"
11774: ;;
11775: sparc*-*linux*)
11776: LD="${LD-ld} -m elf64_sparc"
11777: ;;
11778: esac
11779: ;;
11780: esac
11781: fi
11782: rm -rf conftest*
11783: ;;
11784:
11785: *-*-sco3.2v5*)
11786: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11787: SAVE_CFLAGS="$CFLAGS"
11788: CFLAGS="$CFLAGS -belf"
11789: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11790: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11791: if test "${lt_cv_cc_needs_belf+set}" = set; then
11792: echo $ECHO_N "(cached) $ECHO_C" >&6
11793: else
11794: ac_ext=c
11795: ac_cpp='$CPP $CPPFLAGS'
11796: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11797: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11798: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799:
11800: cat >conftest.$ac_ext <<_ACEOF
11801: #line $LINENO "configure"
11802: /* confdefs.h. */
11803: _ACEOF
11804: cat confdefs.h >>conftest.$ac_ext
11805: cat >>conftest.$ac_ext <<_ACEOF
11806: /* end confdefs.h. */
11807:
11808: int
11809: main ()
11810: {
11811:
11812: ;
11813: return 0;
11814: }
11815: _ACEOF
11816: rm -f conftest.$ac_objext conftest$ac_exeext
11817: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818: (eval $ac_link) 2>&5
11819: ac_status=$?
11820: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821: (exit $ac_status); } &&
11822: { ac_try='test -s conftest$ac_exeext'
11823: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824: (eval $ac_try) 2>&5
11825: ac_status=$?
11826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827: (exit $ac_status); }; }; then
11828: lt_cv_cc_needs_belf=yes
11829: else
11830: echo "$as_me: failed program was:" >&5
11831: sed 's/^/| /' conftest.$ac_ext >&5
11832:
11833: lt_cv_cc_needs_belf=no
11834: fi
11835: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11836: ac_ext=c
11837: ac_cpp='$CPP $CPPFLAGS'
11838: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11839: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11840: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841:
11842: fi
11843: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11844: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11845: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11846: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11847: CFLAGS="$SAVE_CFLAGS"
11848: fi
11849: ;;
11850:
11851: esac
11852:
11853: need_locks="$enable_libtool_lock"
11854:
11855:
11856:
11857: for ac_header in dlfcn.h
11858: do
11859: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11860: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11861: echo "$as_me:$LINENO: checking for $ac_header" >&5
11862: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11863: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11864: echo $ECHO_N "(cached) $ECHO_C" >&6
11865: fi
11866: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11868: else
11869: # Is the header compilable?
11870: echo "$as_me:$LINENO: checking $ac_header usability" >&5
11871: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11872: cat >conftest.$ac_ext <<_ACEOF
11873: #line $LINENO "configure"
11874: /* confdefs.h. */
11875: _ACEOF
11876: cat confdefs.h >>conftest.$ac_ext
11877: cat >>conftest.$ac_ext <<_ACEOF
11878: /* end confdefs.h. */
11879: $ac_includes_default
11880: #include <$ac_header>
11881: _ACEOF
11882: rm -f conftest.$ac_objext
11883: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884: (eval $ac_compile) 2>&5
11885: ac_status=$?
11886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887: (exit $ac_status); } &&
11888: { ac_try='test -s conftest.$ac_objext'
11889: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890: (eval $ac_try) 2>&5
11891: ac_status=$?
11892: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893: (exit $ac_status); }; }; then
11894: ac_header_compiler=yes
11895: else
11896: echo "$as_me: failed program was:" >&5
11897: sed 's/^/| /' conftest.$ac_ext >&5
11898:
11899: ac_header_compiler=no
11900: fi
11901: rm -f conftest.$ac_objext conftest.$ac_ext
11902: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11903: echo "${ECHO_T}$ac_header_compiler" >&6
11904:
11905: # Is the header present?
11906: echo "$as_me:$LINENO: checking $ac_header presence" >&5
11907: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11908: cat >conftest.$ac_ext <<_ACEOF
11909: #line $LINENO "configure"
11910: /* confdefs.h. */
11911: _ACEOF
11912: cat confdefs.h >>conftest.$ac_ext
11913: cat >>conftest.$ac_ext <<_ACEOF
11914: /* end confdefs.h. */
11915: #include <$ac_header>
11916: _ACEOF
11917: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11918: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11919: ac_status=$?
11920: grep -v '^ *+' conftest.er1 >conftest.err
11921: rm -f conftest.er1
11922: cat conftest.err >&5
11923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924: (exit $ac_status); } >/dev/null; then
11925: if test -s conftest.err; then
11926: ac_cpp_err=$ac_c_preproc_warn_flag
11927: else
11928: ac_cpp_err=
11929: fi
11930: else
11931: ac_cpp_err=yes
11932: fi
11933: if test -z "$ac_cpp_err"; then
11934: ac_header_preproc=yes
11935: else
11936: echo "$as_me: failed program was:" >&5
11937: sed 's/^/| /' conftest.$ac_ext >&5
11938:
11939: ac_header_preproc=no
11940: fi
11941: rm -f conftest.err conftest.$ac_ext
11942: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943: echo "${ECHO_T}$ac_header_preproc" >&6
11944:
11945: # So? What about this header?
11946: case $ac_header_compiler:$ac_header_preproc in
11947: yes:no )
11948: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11951: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11952: (
11953: cat <<\_ASBOX
11954: ## ------------------------------------ ##
11955: ## Report this to [email protected]. ##
11956: ## ------------------------------------ ##
11957: _ASBOX
11958: ) |
11959: sed "s/^/$as_me: WARNING: /" >&2
11960: ;;
11961: no:yes )
11962: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11963: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11964: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11965: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11966: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11967: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11968: (
11969: cat <<\_ASBOX
11970: ## ------------------------------------ ##
11971: ## Report this to [email protected]. ##
11972: ## ------------------------------------ ##
11973: _ASBOX
11974: ) |
11975: sed "s/^/$as_me: WARNING: /" >&2
11976: ;;
11977: esac
11978: echo "$as_me:$LINENO: checking for $ac_header" >&5
11979: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11980: if eval "test \"\${$as_ac_Header+set}\" = set"; then
11981: echo $ECHO_N "(cached) $ECHO_C" >&6
11982: else
11983: eval "$as_ac_Header=$ac_header_preproc"
11984: fi
11985: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11986: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11987:
11988: fi
11989: if test `eval echo '${'$as_ac_Header'}'` = yes; then
11990: cat >>confdefs.h <<_ACEOF
11991: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11992: _ACEOF
11993:
11994: fi
11995:
11996: done
11997:
11998: ac_ext=cc
11999: ac_cpp='$CXXCPP $CPPFLAGS'
12000: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12003: if test -n "$ac_tool_prefix"; then
12004: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12005: do
12006: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12007: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12008: echo "$as_me:$LINENO: checking for $ac_word" >&5
12009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010: if test "${ac_cv_prog_CXX+set}" = set; then
12011: echo $ECHO_N "(cached) $ECHO_C" >&6
12012: else
12013: if test -n "$CXX"; then
12014: ac_cv_prog_CXX="$CXX" # Let the user override the test.
12015: else
12016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017: for as_dir in $PATH
12018: do
12019: IFS=$as_save_IFS
12020: test -z "$as_dir" && as_dir=.
12021: for ac_exec_ext in '' $ac_executable_extensions; do
12022: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12024: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12025: break 2
12026: fi
12027: done
12028: done
12029:
12030: fi
12031: fi
12032: CXX=$ac_cv_prog_CXX
12033: if test -n "$CXX"; then
12034: echo "$as_me:$LINENO: result: $CXX" >&5
12035: echo "${ECHO_T}$CXX" >&6
12036: else
12037: echo "$as_me:$LINENO: result: no" >&5
12038: echo "${ECHO_T}no" >&6
12039: fi
12040:
12041: test -n "$CXX" && break
12042: done
12043: fi
12044: if test -z "$CXX"; then
12045: ac_ct_CXX=$CXX
12046: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12047: do
12048: # Extract the first word of "$ac_prog", so it can be a program name with args.
12049: set dummy $ac_prog; ac_word=$2
12050: echo "$as_me:$LINENO: checking for $ac_word" >&5
12051: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12052: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12053: echo $ECHO_N "(cached) $ECHO_C" >&6
12054: else
12055: if test -n "$ac_ct_CXX"; then
12056: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12057: else
12058: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059: for as_dir in $PATH
12060: do
12061: IFS=$as_save_IFS
12062: test -z "$as_dir" && as_dir=.
12063: for ac_exec_ext in '' $ac_executable_extensions; do
12064: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065: ac_cv_prog_ac_ct_CXX="$ac_prog"
12066: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067: break 2
12068: fi
12069: done
12070: done
12071:
12072: fi
12073: fi
12074: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12075: if test -n "$ac_ct_CXX"; then
12076: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12077: echo "${ECHO_T}$ac_ct_CXX" >&6
12078: else
12079: echo "$as_me:$LINENO: result: no" >&5
12080: echo "${ECHO_T}no" >&6
12081: fi
12082:
12083: test -n "$ac_ct_CXX" && break
12084: done
12085: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12086:
12087: CXX=$ac_ct_CXX
12088: fi
12089:
12090:
12091: # Provide some information about the compiler.
12092: echo "$as_me:$LINENO:" \
12093: "checking for C++ compiler version" >&5
12094: ac_compiler=`set X $ac_compile; echo $2`
12095: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12096: (eval $ac_compiler --version </dev/null >&5) 2>&5
12097: ac_status=$?
12098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099: (exit $ac_status); }
12100: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12101: (eval $ac_compiler -v </dev/null >&5) 2>&5
12102: ac_status=$?
12103: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104: (exit $ac_status); }
12105: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12106: (eval $ac_compiler -V </dev/null >&5) 2>&5
12107: ac_status=$?
12108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109: (exit $ac_status); }
12110:
12111: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12112: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12113: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12114: echo $ECHO_N "(cached) $ECHO_C" >&6
12115: else
12116: cat >conftest.$ac_ext <<_ACEOF
12117: #line $LINENO "configure"
12118: /* confdefs.h. */
12119: _ACEOF
12120: cat confdefs.h >>conftest.$ac_ext
12121: cat >>conftest.$ac_ext <<_ACEOF
12122: /* end confdefs.h. */
12123:
12124: int
12125: main ()
12126: {
12127: #ifndef __GNUC__
12128: choke me
12129: #endif
12130:
12131: ;
12132: return 0;
12133: }
12134: _ACEOF
12135: rm -f conftest.$ac_objext
12136: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137: (eval $ac_compile) 2>&5
12138: ac_status=$?
12139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140: (exit $ac_status); } &&
12141: { ac_try='test -s conftest.$ac_objext'
12142: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143: (eval $ac_try) 2>&5
12144: ac_status=$?
12145: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146: (exit $ac_status); }; }; then
12147: ac_compiler_gnu=yes
12148: else
12149: echo "$as_me: failed program was:" >&5
12150: sed 's/^/| /' conftest.$ac_ext >&5
12151:
12152: ac_compiler_gnu=no
12153: fi
12154: rm -f conftest.$ac_objext conftest.$ac_ext
12155: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12156:
12157: fi
12158: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12159: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12160: GXX=`test $ac_compiler_gnu = yes && echo yes`
12161: ac_test_CXXFLAGS=${CXXFLAGS+set}
12162: ac_save_CXXFLAGS=$CXXFLAGS
12163: CXXFLAGS="-g"
12164: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12165: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12166: if test "${ac_cv_prog_cxx_g+set}" = set; then
12167: echo $ECHO_N "(cached) $ECHO_C" >&6
12168: else
12169: cat >conftest.$ac_ext <<_ACEOF
12170: #line $LINENO "configure"
12171: /* confdefs.h. */
12172: _ACEOF
12173: cat confdefs.h >>conftest.$ac_ext
12174: cat >>conftest.$ac_ext <<_ACEOF
12175: /* end confdefs.h. */
12176:
12177: int
12178: main ()
12179: {
12180:
12181: ;
12182: return 0;
12183: }
12184: _ACEOF
12185: rm -f conftest.$ac_objext
12186: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187: (eval $ac_compile) 2>&5
12188: ac_status=$?
12189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190: (exit $ac_status); } &&
12191: { ac_try='test -s conftest.$ac_objext'
12192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193: (eval $ac_try) 2>&5
12194: ac_status=$?
12195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196: (exit $ac_status); }; }; then
12197: ac_cv_prog_cxx_g=yes
12198: else
12199: echo "$as_me: failed program was:" >&5
12200: sed 's/^/| /' conftest.$ac_ext >&5
12201:
12202: ac_cv_prog_cxx_g=no
12203: fi
12204: rm -f conftest.$ac_objext conftest.$ac_ext
12205: fi
12206: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12207: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12208: if test "$ac_test_CXXFLAGS" = set; then
12209: CXXFLAGS=$ac_save_CXXFLAGS
12210: elif test $ac_cv_prog_cxx_g = yes; then
12211: if test "$GXX" = yes; then
12212: CXXFLAGS="-g -O2"
12213: else
12214: CXXFLAGS="-g"
12215: fi
12216: else
12217: if test "$GXX" = yes; then
12218: CXXFLAGS="-O2"
12219: else
12220: CXXFLAGS=
12221: fi
12222: fi
12223: for ac_declaration in \
12224: ''\
12225: '#include <stdlib.h>' \
12226: 'extern "C" void std::exit (int) throw (); using std::exit;' \
12227: 'extern "C" void std::exit (int); using std::exit;' \
12228: 'extern "C" void exit (int) throw ();' \
12229: 'extern "C" void exit (int);' \
12230: 'void exit (int);'
12231: do
12232: cat >conftest.$ac_ext <<_ACEOF
12233: #line $LINENO "configure"
12234: /* confdefs.h. */
12235: _ACEOF
12236: cat confdefs.h >>conftest.$ac_ext
12237: cat >>conftest.$ac_ext <<_ACEOF
12238: /* end confdefs.h. */
12239: #include <stdlib.h>
12240: $ac_declaration
12241: int
12242: main ()
12243: {
12244: exit (42);
12245: ;
12246: return 0;
12247: }
12248: _ACEOF
12249: rm -f conftest.$ac_objext
12250: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12251: (eval $ac_compile) 2>&5
12252: ac_status=$?
12253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254: (exit $ac_status); } &&
12255: { ac_try='test -s conftest.$ac_objext'
12256: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257: (eval $ac_try) 2>&5
12258: ac_status=$?
12259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260: (exit $ac_status); }; }; then
12261: :
12262: else
12263: echo "$as_me: failed program was:" >&5
12264: sed 's/^/| /' conftest.$ac_ext >&5
12265:
12266: continue
12267: fi
12268: rm -f conftest.$ac_objext conftest.$ac_ext
12269: cat >conftest.$ac_ext <<_ACEOF
12270: #line $LINENO "configure"
12271: /* confdefs.h. */
12272: _ACEOF
12273: cat confdefs.h >>conftest.$ac_ext
12274: cat >>conftest.$ac_ext <<_ACEOF
12275: /* end confdefs.h. */
12276: $ac_declaration
12277: int
12278: main ()
12279: {
12280: exit (42);
12281: ;
12282: return 0;
12283: }
12284: _ACEOF
12285: rm -f conftest.$ac_objext
12286: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287: (eval $ac_compile) 2>&5
12288: ac_status=$?
12289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290: (exit $ac_status); } &&
12291: { ac_try='test -s conftest.$ac_objext'
12292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293: (eval $ac_try) 2>&5
12294: ac_status=$?
12295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296: (exit $ac_status); }; }; then
12297: break
12298: else
12299: echo "$as_me: failed program was:" >&5
12300: sed 's/^/| /' conftest.$ac_ext >&5
12301:
12302: fi
12303: rm -f conftest.$ac_objext conftest.$ac_ext
12304: done
12305: rm -f conftest*
12306: if test -n "$ac_declaration"; then
12307: echo '#ifdef __cplusplus' >>confdefs.h
12308: echo $ac_declaration >>confdefs.h
12309: echo '#endif' >>confdefs.h
12310: fi
12311:
12312: ac_ext=cc
12313: ac_cpp='$CXXCPP $CPPFLAGS'
12314: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12317:
12318: depcc="$CXX" am_compiler_list=
12319:
12320: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12321: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12322: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12323: echo $ECHO_N "(cached) $ECHO_C" >&6
12324: else
12325: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12326: # We make a subdir and do the tests there. Otherwise we can end up
12327: # making bogus files that we don't know about and never remove. For
12328: # instance it was reported that on HP-UX the gcc test will end up
12329: # making a dummy file named `D' -- because `-MD' means `put the output
12330: # in D'.
12331: mkdir conftest.dir
12332: # Copy depcomp to subdir because otherwise we won't find it if we're
12333: # using a relative directory.
12334: cp "$am_depcomp" conftest.dir
12335: cd conftest.dir
12336:
12337: am_cv_CXX_dependencies_compiler_type=none
12338: if test "$am_compiler_list" = ""; then
12339: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12340: fi
12341: for depmode in $am_compiler_list; do
12342: # We need to recreate these files for each test, as the compiler may
12343: # overwrite some of them when testing with obscure command lines.
12344: # This happens at least with the AIX C compiler.
12345: echo '#include "conftest.h"' > conftest.c
12346: echo 'int i;' > conftest.h
12347: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12348:
12349: case $depmode in
12350: nosideeffect)
12351: # after this tag, mechanisms are not by side-effect, so they'll
12352: # only be used when explicitly requested
12353: if test "x$enable_dependency_tracking" = xyes; then
12354: continue
12355: else
12356: break
12357: fi
12358: ;;
12359: none) break ;;
12360: esac
12361: # We check with `-c' and `-o' for the sake of the "dashmstdout"
12362: # mode. It turns out that the SunPro C++ compiler does not properly
12363: # handle `-M -o', and we need to detect this.
12364: if depmode=$depmode \
12365: source=conftest.c object=conftest.o \
12366: depfile=conftest.Po tmpdepfile=conftest.TPo \
12367: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12368: grep conftest.h conftest.Po > /dev/null 2>&1 &&
12369: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12370: am_cv_CXX_dependencies_compiler_type=$depmode
12371: break
12372: fi
12373: done
12374:
12375: cd ..
12376: rm -rf conftest.dir
12377: else
12378: am_cv_CXX_dependencies_compiler_type=none
12379: fi
12380:
12381: fi
12382: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12383: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12384: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12385:
12386:
12387:
12388: if
12389: test "x$enable_dependency_tracking" != xno \
12390: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12391: am__fastdepCXX_TRUE=
12392: am__fastdepCXX_FALSE='#'
12393: else
12394: am__fastdepCXX_TRUE='#'
12395: am__fastdepCXX_FALSE=
12396: fi
12397:
12398:
12399: ac_ext=cc
12400: ac_cpp='$CXXCPP $CPPFLAGS'
12401: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12402: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12403: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12404: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12405: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12406: if test -z "$CXXCPP"; then
12407: if test "${ac_cv_prog_CXXCPP+set}" = set; then
12408: echo $ECHO_N "(cached) $ECHO_C" >&6
12409: else
12410: # Double quotes because CXXCPP needs to be expanded
12411: for CXXCPP in "$CXX -E" "/lib/cpp"
12412: do
12413: ac_preproc_ok=false
12414: for ac_cxx_preproc_warn_flag in '' yes
12415: do
12416: # Use a header file that comes with gcc, so configuring glibc
12417: # with a fresh cross-compiler works.
12418: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12419: # <limits.h> exists even on freestanding compilers.
12420: # On the NeXT, cc -E runs the code through the compiler's parser,
12421: # not just through cpp. "Syntax error" is here to catch this case.
12422: cat >conftest.$ac_ext <<_ACEOF
12423: #line $LINENO "configure"
12424: /* confdefs.h. */
12425: _ACEOF
12426: cat confdefs.h >>conftest.$ac_ext
12427: cat >>conftest.$ac_ext <<_ACEOF
12428: /* end confdefs.h. */
12429: #ifdef __STDC__
12430: # include <limits.h>
12431: #else
12432: # include <assert.h>
12433: #endif
12434: Syntax error
12435: _ACEOF
12436: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12437: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12438: ac_status=$?
12439: grep -v '^ *+' conftest.er1 >conftest.err
12440: rm -f conftest.er1
12441: cat conftest.err >&5
12442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443: (exit $ac_status); } >/dev/null; then
12444: if test -s conftest.err; then
12445: ac_cpp_err=$ac_cxx_preproc_warn_flag
12446: else
12447: ac_cpp_err=
12448: fi
12449: else
12450: ac_cpp_err=yes
12451: fi
12452: if test -z "$ac_cpp_err"; then
12453: :
12454: else
12455: echo "$as_me: failed program was:" >&5
12456: sed 's/^/| /' conftest.$ac_ext >&5
12457:
12458: # Broken: fails on valid input.
12459: continue
12460: fi
12461: rm -f conftest.err conftest.$ac_ext
12462:
12463: # OK, works on sane cases. Now check whether non-existent headers
12464: # can be detected and how.
12465: cat >conftest.$ac_ext <<_ACEOF
12466: #line $LINENO "configure"
12467: /* confdefs.h. */
12468: _ACEOF
12469: cat confdefs.h >>conftest.$ac_ext
12470: cat >>conftest.$ac_ext <<_ACEOF
12471: /* end confdefs.h. */
12472: #include <ac_nonexistent.h>
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: else
12485: ac_cpp_err=
12486: fi
12487: else
12488: ac_cpp_err=yes
12489: fi
12490: if test -z "$ac_cpp_err"; then
12491: # Broken: success on invalid input.
12492: continue
12493: else
12494: echo "$as_me: failed program was:" >&5
12495: sed 's/^/| /' conftest.$ac_ext >&5
12496:
12497: # Passes both tests.
12498: ac_preproc_ok=:
12499: break
12500: fi
12501: rm -f conftest.err conftest.$ac_ext
12502:
12503: done
12504: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12505: rm -f conftest.err conftest.$ac_ext
12506: if $ac_preproc_ok; then
12507: break
12508: fi
12509:
12510: done
12511: ac_cv_prog_CXXCPP=$CXXCPP
12512:
12513: fi
12514: CXXCPP=$ac_cv_prog_CXXCPP
12515: else
12516: ac_cv_prog_CXXCPP=$CXXCPP
12517: fi
12518: echo "$as_me:$LINENO: result: $CXXCPP" >&5
12519: echo "${ECHO_T}$CXXCPP" >&6
12520: ac_preproc_ok=false
12521: for ac_cxx_preproc_warn_flag in '' yes
12522: do
12523: # Use a header file that comes with gcc, so configuring glibc
12524: # with a fresh cross-compiler works.
12525: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12526: # <limits.h> exists even on freestanding compilers.
12527: # On the NeXT, cc -E runs the code through the compiler's parser,
12528: # not just through cpp. "Syntax error" is here to catch this case.
12529: cat >conftest.$ac_ext <<_ACEOF
12530: #line $LINENO "configure"
12531: /* confdefs.h. */
12532: _ACEOF
12533: cat confdefs.h >>conftest.$ac_ext
12534: cat >>conftest.$ac_ext <<_ACEOF
12535: /* end confdefs.h. */
12536: #ifdef __STDC__
12537: # include <limits.h>
12538: #else
12539: # include <assert.h>
12540: #endif
12541: Syntax error
12542: _ACEOF
12543: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12544: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12545: ac_status=$?
12546: grep -v '^ *+' conftest.er1 >conftest.err
12547: rm -f conftest.er1
12548: cat conftest.err >&5
12549: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550: (exit $ac_status); } >/dev/null; then
12551: if test -s conftest.err; then
12552: ac_cpp_err=$ac_cxx_preproc_warn_flag
12553: else
12554: ac_cpp_err=
12555: fi
12556: else
12557: ac_cpp_err=yes
12558: fi
12559: if test -z "$ac_cpp_err"; then
12560: :
12561: else
12562: echo "$as_me: failed program was:" >&5
12563: sed 's/^/| /' conftest.$ac_ext >&5
12564:
12565: # Broken: fails on valid input.
12566: continue
12567: fi
12568: rm -f conftest.err conftest.$ac_ext
12569:
12570: # OK, works on sane cases. Now check whether non-existent headers
12571: # can be detected and how.
12572: cat >conftest.$ac_ext <<_ACEOF
12573: #line $LINENO "configure"
12574: /* confdefs.h. */
12575: _ACEOF
12576: cat confdefs.h >>conftest.$ac_ext
12577: cat >>conftest.$ac_ext <<_ACEOF
12578: /* end confdefs.h. */
12579: #include <ac_nonexistent.h>
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: else
12592: ac_cpp_err=
12593: fi
12594: else
12595: ac_cpp_err=yes
12596: fi
12597: if test -z "$ac_cpp_err"; then
12598: # Broken: success on invalid input.
12599: continue
12600: else
12601: echo "$as_me: failed program was:" >&5
12602: sed 's/^/| /' conftest.$ac_ext >&5
12603:
12604: # Passes both tests.
12605: ac_preproc_ok=:
12606: break
12607: fi
12608: rm -f conftest.err conftest.$ac_ext
12609:
12610: done
12611: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12612: rm -f conftest.err conftest.$ac_ext
12613: if $ac_preproc_ok; then
12614: :
12615: else
12616: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12617: See \`config.log' for more details." >&5
12618: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12619: See \`config.log' for more details." >&2;}
12620: { (exit 1); exit 1; }; }
12621: fi
12622:
12623: ac_ext=cc
12624: ac_cpp='$CXXCPP $CPPFLAGS'
12625: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12628:
12629:
12630: ac_ext=f
12631: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12632: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12634: if test -n "$ac_tool_prefix"; then
12635: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
12636: do
12637: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12638: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12639: echo "$as_me:$LINENO: checking for $ac_word" >&5
12640: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12641: if test "${ac_cv_prog_F77+set}" = set; then
12642: echo $ECHO_N "(cached) $ECHO_C" >&6
12643: else
12644: if test -n "$F77"; then
12645: ac_cv_prog_F77="$F77" # Let the user override the test.
12646: else
12647: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648: for as_dir in $PATH
12649: do
12650: IFS=$as_save_IFS
12651: test -z "$as_dir" && as_dir=.
12652: for ac_exec_ext in '' $ac_executable_extensions; do
12653: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12655: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12656: break 2
12657: fi
12658: done
12659: done
12660:
12661: fi
12662: fi
12663: F77=$ac_cv_prog_F77
12664: if test -n "$F77"; then
12665: echo "$as_me:$LINENO: result: $F77" >&5
12666: echo "${ECHO_T}$F77" >&6
12667: else
12668: echo "$as_me:$LINENO: result: no" >&5
12669: echo "${ECHO_T}no" >&6
12670: fi
12671:
12672: test -n "$F77" && break
12673: done
12674: fi
12675: if test -z "$F77"; then
12676: ac_ct_F77=$F77
12677: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
12678: do
12679: # Extract the first word of "$ac_prog", so it can be a program name with args.
12680: set dummy $ac_prog; ac_word=$2
12681: echo "$as_me:$LINENO: checking for $ac_word" >&5
12682: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12683: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12684: echo $ECHO_N "(cached) $ECHO_C" >&6
12685: else
12686: if test -n "$ac_ct_F77"; then
12687: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12688: else
12689: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690: for as_dir in $PATH
12691: do
12692: IFS=$as_save_IFS
12693: test -z "$as_dir" && as_dir=.
12694: for ac_exec_ext in '' $ac_executable_extensions; do
12695: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12696: ac_cv_prog_ac_ct_F77="$ac_prog"
12697: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12698: break 2
12699: fi
12700: done
12701: done
12702:
12703: fi
12704: fi
12705: ac_ct_F77=$ac_cv_prog_ac_ct_F77
12706: if test -n "$ac_ct_F77"; then
12707: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12708: echo "${ECHO_T}$ac_ct_F77" >&6
12709: else
12710: echo "$as_me:$LINENO: result: no" >&5
12711: echo "${ECHO_T}no" >&6
12712: fi
12713:
12714: test -n "$ac_ct_F77" && break
12715: done
12716:
12717: F77=$ac_ct_F77
12718: fi
12719:
12720:
12721: # Provide some information about the compiler.
1.1.1.4 ! root 12722: echo "$as_me:12722:" \
1.1 root 12723: "checking for Fortran 77 compiler version" >&5
12724: ac_compiler=`set X $ac_compile; echo $2`
12725: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12726: (eval $ac_compiler --version </dev/null >&5) 2>&5
12727: ac_status=$?
12728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729: (exit $ac_status); }
12730: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12731: (eval $ac_compiler -v </dev/null >&5) 2>&5
12732: ac_status=$?
12733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734: (exit $ac_status); }
12735: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12736: (eval $ac_compiler -V </dev/null >&5) 2>&5
12737: ac_status=$?
12738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739: (exit $ac_status); }
12740:
12741: # If we don't use `.F' as extension, the preprocessor is not run on the
12742: # input file.
12743: ac_save_ext=$ac_ext
12744: ac_ext=F
12745: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12746: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12747: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12748: echo $ECHO_N "(cached) $ECHO_C" >&6
12749: else
12750: cat >conftest.$ac_ext <<_ACEOF
12751: program main
12752: #ifndef __GNUC__
12753: choke me
12754: #endif
12755:
12756: end
12757: _ACEOF
12758: rm -f conftest.$ac_objext
12759: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760: (eval $ac_compile) 2>&5
12761: ac_status=$?
12762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763: (exit $ac_status); } &&
12764: { ac_try='test -s conftest.$ac_objext'
12765: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766: (eval $ac_try) 2>&5
12767: ac_status=$?
12768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769: (exit $ac_status); }; }; then
12770: ac_compiler_gnu=yes
12771: else
12772: echo "$as_me: failed program was:" >&5
12773: sed 's/^/| /' conftest.$ac_ext >&5
12774:
12775: ac_compiler_gnu=no
12776: fi
12777: rm -f conftest.$ac_objext conftest.$ac_ext
12778: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12779:
12780: fi
12781: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12782: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12783: ac_ext=$ac_save_ext
12784: G77=`test $ac_compiler_gnu = yes && echo yes`
12785: ac_test_FFLAGS=${FFLAGS+set}
12786: ac_save_FFLAGS=$FFLAGS
12787: FFLAGS=
12788: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12789: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12790: if test "${ac_cv_prog_f77_g+set}" = set; then
12791: echo $ECHO_N "(cached) $ECHO_C" >&6
12792: else
12793: FFLAGS=-g
12794: cat >conftest.$ac_ext <<_ACEOF
12795: program main
12796:
12797: end
12798: _ACEOF
12799: rm -f conftest.$ac_objext
12800: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801: (eval $ac_compile) 2>&5
12802: ac_status=$?
12803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804: (exit $ac_status); } &&
12805: { ac_try='test -s conftest.$ac_objext'
12806: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807: (eval $ac_try) 2>&5
12808: ac_status=$?
12809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810: (exit $ac_status); }; }; then
12811: ac_cv_prog_f77_g=yes
12812: else
12813: echo "$as_me: failed program was:" >&5
12814: sed 's/^/| /' conftest.$ac_ext >&5
12815:
12816: ac_cv_prog_f77_g=no
12817: fi
12818: rm -f conftest.$ac_objext conftest.$ac_ext
12819:
12820: fi
12821: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12822: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12823: if test "$ac_test_FFLAGS" = set; then
12824: FFLAGS=$ac_save_FFLAGS
12825: elif test $ac_cv_prog_f77_g = yes; then
12826: if test "$G77" = yes; then
12827: FFLAGS="-g -O2"
12828: else
12829: FFLAGS="-g"
12830: fi
12831: else
12832: if test "$G77" = yes; then
12833: FFLAGS="-O2"
12834: else
12835: FFLAGS=
12836: fi
12837: fi
12838: ac_ext=c
12839: ac_cpp='$CPP $CPPFLAGS'
12840: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843:
12844:
12845:
12846: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12847:
12848: # find the maximum length of command line arguments
12849: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12850: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12851: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12852: echo $ECHO_N "(cached) $ECHO_C" >&6
12853: else
12854: i=0
12855: testring="ABCD"
12856:
12857: case $build_os in
12858: msdosdjgpp*)
12859: # On DJGPP, this test can blow up pretty badly due to problems in libc
12860: # (any single argument exceeding 2000 bytes causes a buffer overrun
12861: # during glob expansion). Even if it were fixed, the result of this
12862: # check would be larger than it should be.
12863: lt_cv_sys_max_cmd_len=12288; # 12K is about right
12864: ;;
12865:
12866: gnu*)
12867: # Under GNU Hurd, this test is not required because there is
12868: # no limit to the length of command line arguments.
12869: # Libtool will interpret -1 as no limit whatsoever
12870: lt_cv_sys_max_cmd_len=-1;
12871: ;;
12872:
12873: cygwin* | mingw*)
12874: # On Win9x/ME, this test blows up -- it succeeds, but takes
12875: # about 5 minutes as the teststring grows exponentially.
12876: # Worse, since 9x/ME are not pre-emptively multitasking,
12877: # you end up with a "frozen" computer, even though with patience
12878: # the test eventually succeeds (with a max line length of 256k).
12879: # Instead, let's just punt: use the minimum linelength reported by
12880: # all of the supported platforms: 8192 (on NT/2K/XP).
12881: lt_cv_sys_max_cmd_len=8192;
12882: ;;
12883:
12884: *)
12885: # If test is not a shell built-in, we'll probably end up computing a
12886: # maximum length that is only half of the actual maximum length, but
12887: # we can't tell.
12888: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
12889: = "XX$testring") >/dev/null 2>&1 &&
12890: new_result=`expr "X$testring" : ".*" 2>&1` &&
12891: lt_cv_sys_max_cmd_len=$new_result &&
12892: test $i != 17 # 1/2 MB should be enough
12893: do
12894: i=`expr $i + 1`
12895: testring=$testring$testring
12896: done
12897: testring=
12898: # Add a significant safety factor because C++ compilers can tack on massive
12899: # amounts of additional arguments before passing them to the linker.
12900: # It appears as though 1/2 is a usable value.
12901: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12902: ;;
12903: esac
12904:
12905: fi
12906:
12907: if test -n $lt_cv_sys_max_cmd_len ; then
12908: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12909: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12910: else
12911: echo "$as_me:$LINENO: result: none" >&5
12912: echo "${ECHO_T}none" >&6
12913: fi
12914:
12915:
12916:
12917:
12918: # Check for command to grab the raw symbol name followed by C symbol from nm.
12919: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12920: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12921: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12922: echo $ECHO_N "(cached) $ECHO_C" >&6
12923: else
12924:
12925: # These are sane defaults that work on at least a few old systems.
12926: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12927:
12928: # Character class describing NM global symbol codes.
12929: symcode='[BCDEGRST]'
12930:
12931: # Regexp to match symbols that can be accessed directly from C.
12932: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12933:
12934: # Transform the above into a raw symbol and a C symbol.
12935: symxfrm='\1 \2\3 \3'
12936:
12937: # Transform an extracted symbol line into a proper C declaration
12938: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12939:
12940: # Transform an extracted symbol line into symbol name and symbol address
12941: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12942:
12943: # Define system-specific variables.
12944: case $host_os in
12945: aix*)
12946: symcode='[BCDT]'
12947: ;;
12948: cygwin* | mingw* | pw32*)
12949: symcode='[ABCDGISTW]'
12950: ;;
12951: hpux*) # Its linker distinguishes data from code symbols
12952: if test "$host_cpu" = ia64; then
12953: symcode='[ABCDEGRST]'
12954: fi
12955: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12956: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12957: ;;
12958: irix* | nonstopux*)
12959: symcode='[BCDEGRST]'
12960: ;;
12961: osf*)
12962: symcode='[BCDEGQRST]'
12963: ;;
12964: solaris* | sysv5*)
12965: symcode='[BDT]'
12966: ;;
12967: sysv4)
12968: symcode='[DFNSTU]'
12969: ;;
12970: esac
12971:
12972: # Handle CRLF in mingw tool chain
12973: opt_cr=
12974: case $build_os in
12975: mingw*)
12976: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12977: ;;
12978: esac
12979:
12980: # If we're using GNU nm, then use its standard symbol codes.
12981: case `$NM -V 2>&1` in
12982: *GNU* | *'with BFD'*)
12983: symcode='[ABCDGISTW]' ;;
12984: esac
12985:
12986: # Try without a prefix undercore, then with it.
12987: for ac_symprfx in "" "_"; do
12988:
12989: # Write the raw and C identifiers.
12990: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12991:
12992: # Check to see that the pipe works correctly.
12993: pipe_works=no
12994:
12995: rm -f conftest*
12996: cat > conftest.$ac_ext <<EOF
12997: #ifdef __cplusplus
12998: extern "C" {
12999: #endif
13000: char nm_test_var;
13001: void nm_test_func(){}
13002: #ifdef __cplusplus
13003: }
13004: #endif
13005: int main(){nm_test_var='a';nm_test_func();return(0);}
13006: EOF
13007:
13008: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009: (eval $ac_compile) 2>&5
13010: ac_status=$?
13011: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012: (exit $ac_status); }; then
13013: # Now try to grab the symbols.
13014: nlist=conftest.nm
13015: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13016: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13017: ac_status=$?
13018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019: (exit $ac_status); } && test -s "$nlist"; then
13020: # Try sorting and uniquifying the output.
13021: if sort "$nlist" | uniq > "$nlist"T; then
13022: mv -f "$nlist"T "$nlist"
13023: else
13024: rm -f "$nlist"T
13025: fi
13026:
13027: # Make sure that we snagged all the symbols we need.
13028: if grep ' nm_test_var$' "$nlist" >/dev/null; then
13029: if grep ' nm_test_func$' "$nlist" >/dev/null; then
13030: cat <<EOF > conftest.$ac_ext
13031: #ifdef __cplusplus
13032: extern "C" {
13033: #endif
13034:
13035: EOF
13036: # Now generate the symbol file.
13037: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13038:
13039: cat <<EOF >> conftest.$ac_ext
13040: #if defined (__STDC__) && __STDC__
13041: # define lt_ptr_t void *
13042: #else
13043: # define lt_ptr_t char *
13044: # define const
13045: #endif
13046:
13047: /* The mapping between symbol names and symbols. */
13048: const struct {
13049: const char *name;
13050: lt_ptr_t address;
13051: }
13052: lt_preloaded_symbols[] =
13053: {
13054: EOF
13055: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13056: cat <<\EOF >> conftest.$ac_ext
13057: {0, (lt_ptr_t) 0}
13058: };
13059:
13060: #ifdef __cplusplus
13061: }
13062: #endif
13063: EOF
13064: # Now try linking the two files.
13065: mv conftest.$ac_objext conftstm.$ac_objext
13066: lt_save_LIBS="$LIBS"
13067: lt_save_CFLAGS="$CFLAGS"
13068: LIBS="conftstm.$ac_objext"
13069: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13070: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13071: (eval $ac_link) 2>&5
13072: ac_status=$?
13073: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074: (exit $ac_status); } && test -s conftest${ac_exeext}; then
13075: pipe_works=yes
13076: fi
13077: LIBS="$lt_save_LIBS"
13078: CFLAGS="$lt_save_CFLAGS"
13079: else
13080: echo "cannot find nm_test_func in $nlist" >&5
13081: fi
13082: else
13083: echo "cannot find nm_test_var in $nlist" >&5
13084: fi
13085: else
13086: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13087: fi
13088: else
13089: echo "$progname: failed program was:" >&5
13090: cat conftest.$ac_ext >&5
13091: fi
13092: rm -f conftest* conftst*
13093:
13094: # Do not use the global_symbol_pipe unless it works.
13095: if test "$pipe_works" = yes; then
13096: break
13097: else
13098: lt_cv_sys_global_symbol_pipe=
13099: fi
13100: done
13101:
13102: fi
13103:
13104: if test -z "$lt_cv_sys_global_symbol_pipe"; then
13105: lt_cv_sys_global_symbol_to_cdecl=
13106: fi
13107: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13108: echo "$as_me:$LINENO: result: failed" >&5
13109: echo "${ECHO_T}failed" >&6
13110: else
13111: echo "$as_me:$LINENO: result: ok" >&5
13112: echo "${ECHO_T}ok" >&6
13113: fi
13114:
13115: echo "$as_me:$LINENO: checking for objdir" >&5
13116: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
13117: if test "${lt_cv_objdir+set}" = set; then
13118: echo $ECHO_N "(cached) $ECHO_C" >&6
13119: else
13120: rm -f .libs 2>/dev/null
13121: mkdir .libs 2>/dev/null
13122: if test -d .libs; then
13123: lt_cv_objdir=.libs
13124: else
13125: # MS-DOS does not allow filenames that begin with a dot.
13126: lt_cv_objdir=_libs
13127: fi
13128: rmdir .libs 2>/dev/null
13129: fi
13130: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13131: echo "${ECHO_T}$lt_cv_objdir" >&6
13132: objdir=$lt_cv_objdir
13133:
13134:
13135:
13136:
13137:
13138: case $host_os in
13139: aix3*)
13140: # AIX sometimes has problems with the GCC collect2 program. For some
13141: # reason, if we set the COLLECT_NAMES environment variable, the problems
13142: # vanish in a puff of smoke.
13143: if test "X${COLLECT_NAMES+set}" != Xset; then
13144: COLLECT_NAMES=
13145: export COLLECT_NAMES
13146: fi
13147: ;;
13148: esac
13149:
13150: # Sed substitution that helps us do robust quoting. It backslashifies
13151: # metacharacters that are still active within double-quoted strings.
13152: Xsed='sed -e s/^X//'
13153: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13154:
13155: # Same as above, but do not quote variable references.
13156: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13157:
13158: # Sed substitution to delay expansion of an escaped shell variable in a
13159: # double_quote_subst'ed string.
13160: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13161:
13162: # Sed substitution to avoid accidental globbing in evaled expressions
13163: no_glob_subst='s/\*/\\\*/g'
13164:
13165: # Constants:
13166: rm="rm -f"
13167:
13168: # Global variables:
13169: default_ofile=libtool
13170: can_build_shared=yes
13171:
13172: # All known linkers require a `.a' archive for static linking (except M$VC,
13173: # which needs '.lib').
13174: libext=a
13175: ltmain="$ac_aux_dir/ltmain.sh"
13176: ofile="$default_ofile"
13177: with_gnu_ld="$lt_cv_prog_gnu_ld"
13178:
13179: if test -n "$ac_tool_prefix"; then
13180: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13181: set dummy ${ac_tool_prefix}ar; ac_word=$2
13182: echo "$as_me:$LINENO: checking for $ac_word" >&5
13183: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13184: if test "${ac_cv_prog_AR+set}" = set; then
13185: echo $ECHO_N "(cached) $ECHO_C" >&6
13186: else
13187: if test -n "$AR"; then
13188: ac_cv_prog_AR="$AR" # Let the user override the test.
13189: else
13190: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191: for as_dir in $PATH
13192: do
13193: IFS=$as_save_IFS
13194: test -z "$as_dir" && as_dir=.
13195: for ac_exec_ext in '' $ac_executable_extensions; do
13196: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197: ac_cv_prog_AR="${ac_tool_prefix}ar"
13198: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13199: break 2
13200: fi
13201: done
13202: done
13203:
13204: fi
13205: fi
13206: AR=$ac_cv_prog_AR
13207: if test -n "$AR"; then
13208: echo "$as_me:$LINENO: result: $AR" >&5
13209: echo "${ECHO_T}$AR" >&6
13210: else
13211: echo "$as_me:$LINENO: result: no" >&5
13212: echo "${ECHO_T}no" >&6
13213: fi
13214:
13215: fi
13216: if test -z "$ac_cv_prog_AR"; then
13217: ac_ct_AR=$AR
13218: # Extract the first word of "ar", so it can be a program name with args.
13219: set dummy ar; ac_word=$2
13220: echo "$as_me:$LINENO: checking for $ac_word" >&5
13221: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13222: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13223: echo $ECHO_N "(cached) $ECHO_C" >&6
13224: else
13225: if test -n "$ac_ct_AR"; then
13226: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13227: else
13228: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229: for as_dir in $PATH
13230: do
13231: IFS=$as_save_IFS
13232: test -z "$as_dir" && as_dir=.
13233: for ac_exec_ext in '' $ac_executable_extensions; do
13234: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13235: ac_cv_prog_ac_ct_AR="ar"
13236: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13237: break 2
13238: fi
13239: done
13240: done
13241:
13242: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
13243: fi
13244: fi
13245: ac_ct_AR=$ac_cv_prog_ac_ct_AR
13246: if test -n "$ac_ct_AR"; then
13247: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13248: echo "${ECHO_T}$ac_ct_AR" >&6
13249: else
13250: echo "$as_me:$LINENO: result: no" >&5
13251: echo "${ECHO_T}no" >&6
13252: fi
13253:
13254: AR=$ac_ct_AR
13255: else
13256: AR="$ac_cv_prog_AR"
13257: fi
13258:
13259: if test -n "$ac_tool_prefix"; then
13260: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13261: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13262: echo "$as_me:$LINENO: checking for $ac_word" >&5
13263: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13264: if test "${ac_cv_prog_RANLIB+set}" = set; then
13265: echo $ECHO_N "(cached) $ECHO_C" >&6
13266: else
13267: if test -n "$RANLIB"; then
13268: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13269: else
13270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271: for as_dir in $PATH
13272: do
13273: IFS=$as_save_IFS
13274: test -z "$as_dir" && as_dir=.
13275: for ac_exec_ext in '' $ac_executable_extensions; do
13276: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13277: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13278: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13279: break 2
13280: fi
13281: done
13282: done
13283:
13284: fi
13285: fi
13286: RANLIB=$ac_cv_prog_RANLIB
13287: if test -n "$RANLIB"; then
13288: echo "$as_me:$LINENO: result: $RANLIB" >&5
13289: echo "${ECHO_T}$RANLIB" >&6
13290: else
13291: echo "$as_me:$LINENO: result: no" >&5
13292: echo "${ECHO_T}no" >&6
13293: fi
13294:
13295: fi
13296: if test -z "$ac_cv_prog_RANLIB"; then
13297: ac_ct_RANLIB=$RANLIB
13298: # Extract the first word of "ranlib", so it can be a program name with args.
13299: set dummy ranlib; ac_word=$2
13300: echo "$as_me:$LINENO: checking for $ac_word" >&5
13301: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13302: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13303: echo $ECHO_N "(cached) $ECHO_C" >&6
13304: else
13305: if test -n "$ac_ct_RANLIB"; then
13306: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13307: else
13308: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13309: for as_dir in $PATH
13310: do
13311: IFS=$as_save_IFS
13312: test -z "$as_dir" && as_dir=.
13313: for ac_exec_ext in '' $ac_executable_extensions; do
13314: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13315: ac_cv_prog_ac_ct_RANLIB="ranlib"
13316: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13317: break 2
13318: fi
13319: done
13320: done
13321:
13322: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13323: fi
13324: fi
13325: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13326: if test -n "$ac_ct_RANLIB"; then
13327: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13328: echo "${ECHO_T}$ac_ct_RANLIB" >&6
13329: else
13330: echo "$as_me:$LINENO: result: no" >&5
13331: echo "${ECHO_T}no" >&6
13332: fi
13333:
13334: RANLIB=$ac_ct_RANLIB
13335: else
13336: RANLIB="$ac_cv_prog_RANLIB"
13337: fi
13338:
13339: if test -n "$ac_tool_prefix"; then
13340: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13341: set dummy ${ac_tool_prefix}strip; ac_word=$2
13342: echo "$as_me:$LINENO: checking for $ac_word" >&5
13343: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13344: if test "${ac_cv_prog_STRIP+set}" = set; then
13345: echo $ECHO_N "(cached) $ECHO_C" >&6
13346: else
13347: if test -n "$STRIP"; then
13348: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13349: else
13350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351: for as_dir in $PATH
13352: do
13353: IFS=$as_save_IFS
13354: test -z "$as_dir" && as_dir=.
13355: for ac_exec_ext in '' $ac_executable_extensions; do
13356: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13358: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13359: break 2
13360: fi
13361: done
13362: done
13363:
13364: fi
13365: fi
13366: STRIP=$ac_cv_prog_STRIP
13367: if test -n "$STRIP"; then
13368: echo "$as_me:$LINENO: result: $STRIP" >&5
13369: echo "${ECHO_T}$STRIP" >&6
13370: else
13371: echo "$as_me:$LINENO: result: no" >&5
13372: echo "${ECHO_T}no" >&6
13373: fi
13374:
13375: fi
13376: if test -z "$ac_cv_prog_STRIP"; then
13377: ac_ct_STRIP=$STRIP
13378: # Extract the first word of "strip", so it can be a program name with args.
13379: set dummy strip; ac_word=$2
13380: echo "$as_me:$LINENO: checking for $ac_word" >&5
13381: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13382: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13383: echo $ECHO_N "(cached) $ECHO_C" >&6
13384: else
13385: if test -n "$ac_ct_STRIP"; then
13386: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13387: else
13388: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389: for as_dir in $PATH
13390: do
13391: IFS=$as_save_IFS
13392: test -z "$as_dir" && as_dir=.
13393: for ac_exec_ext in '' $ac_executable_extensions; do
13394: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395: ac_cv_prog_ac_ct_STRIP="strip"
13396: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13397: break 2
13398: fi
13399: done
13400: done
13401:
13402: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13403: fi
13404: fi
13405: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13406: if test -n "$ac_ct_STRIP"; then
13407: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13408: echo "${ECHO_T}$ac_ct_STRIP" >&6
13409: else
13410: echo "$as_me:$LINENO: result: no" >&5
13411: echo "${ECHO_T}no" >&6
13412: fi
13413:
13414: STRIP=$ac_ct_STRIP
13415: else
13416: STRIP="$ac_cv_prog_STRIP"
13417: fi
13418:
13419:
13420: old_CC="$CC"
13421: old_CFLAGS="$CFLAGS"
13422:
13423: # Set sane defaults for various variables
13424: test -z "$AR" && AR=ar
13425: test -z "$AR_FLAGS" && AR_FLAGS=cru
13426: test -z "$AS" && AS=as
13427: test -z "$CC" && CC=cc
13428: test -z "$LTCC" && LTCC=$CC
13429: test -z "$DLLTOOL" && DLLTOOL=dlltool
13430: test -z "$LD" && LD=ld
13431: test -z "$LN_S" && LN_S="ln -s"
13432: test -z "$MAGIC_CMD" && MAGIC_CMD=file
13433: test -z "$NM" && NM=nm
13434: test -z "$SED" && SED=sed
13435: test -z "$OBJDUMP" && OBJDUMP=objdump
13436: test -z "$RANLIB" && RANLIB=:
13437: test -z "$STRIP" && STRIP=:
13438: test -z "$ac_objext" && ac_objext=o
13439:
13440: # Determine commands to create old-style static archives.
13441: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13442: old_postinstall_cmds='chmod 644 $oldlib'
13443: old_postuninstall_cmds=
13444:
13445: if test -n "$RANLIB"; then
13446: case $host_os in
13447: openbsd*)
13448: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
13449: ;;
13450: *)
13451: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
13452: ;;
13453: esac
13454: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13455: fi
13456:
13457: # Only perform the check for file, if the check method requires it
13458: case $deplibs_check_method in
13459: file_magic*)
13460: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13461: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13462: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13463: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13464: echo $ECHO_N "(cached) $ECHO_C" >&6
13465: else
13466: case $MAGIC_CMD in
13467: [\\/*] | ?:[\\/]*)
13468: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13469: ;;
13470: *)
13471: lt_save_MAGIC_CMD="$MAGIC_CMD"
13472: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13473: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13474: for ac_dir in $ac_dummy; do
13475: IFS="$lt_save_ifs"
13476: test -z "$ac_dir" && ac_dir=.
13477: if test -f $ac_dir/${ac_tool_prefix}file; then
13478: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13479: if test -n "$file_magic_test_file"; then
13480: case $deplibs_check_method in
13481: "file_magic "*)
13482: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13483: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13484: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13485: $EGREP "$file_magic_regex" > /dev/null; then
13486: :
13487: else
13488: cat <<EOF 1>&2
13489:
13490: *** Warning: the command libtool uses to detect shared libraries,
13491: *** $file_magic_cmd, produces output that libtool cannot recognize.
13492: *** The result is that libtool may fail to recognize shared libraries
13493: *** as such. This will affect the creation of libtool libraries that
13494: *** depend on shared libraries, but programs linked with such libtool
13495: *** libraries will work regardless of this problem. Nevertheless, you
13496: *** may want to report the problem to your system manager and/or to
13497: *** [email protected]
13498:
13499: EOF
13500: fi ;;
13501: esac
13502: fi
13503: break
13504: fi
13505: done
13506: IFS="$lt_save_ifs"
13507: MAGIC_CMD="$lt_save_MAGIC_CMD"
13508: ;;
13509: esac
13510: fi
13511:
13512: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13513: if test -n "$MAGIC_CMD"; then
13514: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13515: echo "${ECHO_T}$MAGIC_CMD" >&6
13516: else
13517: echo "$as_me:$LINENO: result: no" >&5
13518: echo "${ECHO_T}no" >&6
13519: fi
13520:
13521: if test -z "$lt_cv_path_MAGIC_CMD"; then
13522: if test -n "$ac_tool_prefix"; then
13523: echo "$as_me:$LINENO: checking for file" >&5
13524: echo $ECHO_N "checking for file... $ECHO_C" >&6
13525: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13526: echo $ECHO_N "(cached) $ECHO_C" >&6
13527: else
13528: case $MAGIC_CMD in
13529: [\\/*] | ?:[\\/]*)
13530: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13531: ;;
13532: *)
13533: lt_save_MAGIC_CMD="$MAGIC_CMD"
13534: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13535: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13536: for ac_dir in $ac_dummy; do
13537: IFS="$lt_save_ifs"
13538: test -z "$ac_dir" && ac_dir=.
13539: if test -f $ac_dir/file; then
13540: lt_cv_path_MAGIC_CMD="$ac_dir/file"
13541: if test -n "$file_magic_test_file"; then
13542: case $deplibs_check_method in
13543: "file_magic "*)
13544: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13545: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13546: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13547: $EGREP "$file_magic_regex" > /dev/null; then
13548: :
13549: else
13550: cat <<EOF 1>&2
13551:
13552: *** Warning: the command libtool uses to detect shared libraries,
13553: *** $file_magic_cmd, produces output that libtool cannot recognize.
13554: *** The result is that libtool may fail to recognize shared libraries
13555: *** as such. This will affect the creation of libtool libraries that
13556: *** depend on shared libraries, but programs linked with such libtool
13557: *** libraries will work regardless of this problem. Nevertheless, you
13558: *** may want to report the problem to your system manager and/or to
13559: *** [email protected]
13560:
13561: EOF
13562: fi ;;
13563: esac
13564: fi
13565: break
13566: fi
13567: done
13568: IFS="$lt_save_ifs"
13569: MAGIC_CMD="$lt_save_MAGIC_CMD"
13570: ;;
13571: esac
13572: fi
13573:
13574: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13575: if test -n "$MAGIC_CMD"; then
13576: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13577: echo "${ECHO_T}$MAGIC_CMD" >&6
13578: else
13579: echo "$as_me:$LINENO: result: no" >&5
13580: echo "${ECHO_T}no" >&6
13581: fi
13582:
13583: else
13584: MAGIC_CMD=:
13585: fi
13586: fi
13587:
13588: fi
13589: ;;
13590: esac
13591:
13592: enable_dlopen=yes
13593: enable_win32_dll=no
13594:
13595: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13596: if test "${enable_libtool_lock+set}" = set; then
13597: enableval="$enable_libtool_lock"
13598:
13599: fi;
13600: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13601:
13602:
13603: # Check whether --with-pic or --without-pic was given.
13604: if test "${with_pic+set}" = set; then
13605: withval="$with_pic"
13606: pic_mode="$withval"
13607: else
13608: pic_mode=default
13609: fi;
13610: test -z "$pic_mode" && pic_mode=default
13611:
13612: # Use C for the default configuration in the libtool script
13613: tagname=
13614: lt_save_CC="$CC"
13615: ac_ext=c
13616: ac_cpp='$CPP $CPPFLAGS'
13617: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13620:
13621:
13622: # Source file extension for C test sources.
13623: ac_ext=c
13624:
13625: # Object file extension for compiled C test sources.
13626: objext=o
13627: objext=$objext
13628:
13629: # Code to be used in simple compile tests
13630: lt_simple_compile_test_code="int some_variable = 0;\n"
13631:
13632: # Code to be used in simple link tests
13633: lt_simple_link_test_code='int main(){return(0);}\n'
13634:
13635:
13636: # If no C compiler was specified, use CC.
13637: LTCC=${LTCC-"$CC"}
13638:
13639: # Allow CC to be a program name with arguments.
13640: compiler=$CC
13641:
13642:
13643: #
13644: # Check for any special shared library compilation flags.
13645: #
13646: lt_prog_cc_shlib=
13647: if test "$GCC" = no; then
13648: case $host_os in
13649: sco3.2v5*)
13650: lt_prog_cc_shlib='-belf'
13651: ;;
13652: esac
13653: fi
13654: if test -n "$lt_prog_cc_shlib"; then
13655: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
13656: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
13657: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
13658: else
13659: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
13660: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
13661: lt_cv_prog_cc_can_build_shared=no
13662: fi
13663: fi
13664:
13665:
13666: #
13667: # Check to make sure the static flag actually works.
13668: #
13669: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
13670: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
13671: if test "${lt_prog_compiler_static_works+set}" = set; then
13672: echo $ECHO_N "(cached) $ECHO_C" >&6
13673: else
13674: lt_prog_compiler_static_works=no
13675: save_LDFLAGS="$LDFLAGS"
13676: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
13677: printf "$lt_simple_link_test_code" > conftest.$ac_ext
13678: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13679: # The compiler can only warn and ignore the option if not recognized
13680: # So say no if there are warnings
13681: if test -s conftest.err; then
13682: # Append any errors to the config.log.
13683: cat conftest.err 1>&5
13684: else
13685: lt_prog_compiler_static_works=yes
13686: fi
13687: fi
13688: $rm conftest*
13689: LDFLAGS="$save_LDFLAGS"
13690:
13691: fi
13692: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13693: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13694:
13695: if test x"$lt_prog_compiler_static_works" = xyes; then
13696: :
13697: else
13698: lt_prog_compiler_static=
13699: fi
13700:
13701:
13702:
13703:
13704: lt_prog_compiler_no_builtin_flag=
13705:
13706: if test "$GCC" = yes; then
13707: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13708:
13709: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13710: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13711: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13712: echo $ECHO_N "(cached) $ECHO_C" >&6
13713: else
13714: lt_cv_prog_compiler_rtti_exceptions=no
13715: ac_outfile=conftest.$ac_objext
13716: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13717: lt_compiler_flag="-fno-rtti -fno-exceptions"
13718: # Insert the option either (1) after the last *FLAGS variable, or
13719: # (2) before a word containing "conftest.", or (3) at the end.
13720: # Note that $ac_compile itself does not contain backslashes and begins
13721: # with a dollar sign (not a hyphen), so the echo should work correctly.
13722: # The option is referenced via a variable to avoid confusing sed.
13723: lt_compile=`echo "$ac_compile" | $SED \
13724: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13725: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13726: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 13727: (eval echo "\"\$as_me:13727: $lt_compile\"" >&5)
1.1 root 13728: (eval "$lt_compile" 2>conftest.err)
13729: ac_status=$?
13730: cat conftest.err >&5
1.1.1.4 ! root 13731: echo "$as_me:13731: \$? = $ac_status" >&5
1.1 root 13732: if (exit $ac_status) && test -s "$ac_outfile"; then
13733: # The compiler can only warn and ignore the option if not recognized
13734: # So say no if there are warnings
13735: if test ! -s conftest.err; then
13736: lt_cv_prog_compiler_rtti_exceptions=yes
13737: fi
13738: fi
13739: $rm conftest*
13740:
13741: fi
13742: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13743: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13744:
13745: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13746: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13747: else
13748: :
13749: fi
13750:
13751: fi
13752:
13753: lt_prog_compiler_wl=
13754: lt_prog_compiler_pic=
13755: lt_prog_compiler_static=
13756:
13757: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13758: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13759:
13760: if test "$GCC" = yes; then
13761: lt_prog_compiler_wl='-Wl,'
13762: lt_prog_compiler_static='-static'
13763:
13764: case $host_os in
13765: aix*)
13766: # All AIX code is PIC.
13767: if test "$host_cpu" = ia64; then
13768: # AIX 5 now supports IA64 processor
13769: lt_prog_compiler_static='-Bstatic'
13770: fi
13771: ;;
13772:
13773: amigaos*)
13774: # FIXME: we need at least 68020 code to build shared libraries, but
13775: # adding the `-m68020' flag to GCC prevents building anything better,
13776: # like `-m68040'.
13777: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13778: ;;
13779:
13780: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13781: # PIC is the default for these OSes.
13782: ;;
13783:
13784: mingw* | pw32* | os2*)
13785: # This hack is so that the source file can tell whether it is being
13786: # built for inclusion in a dll (and should export symbols for example).
13787: lt_prog_compiler_pic='-DDLL_EXPORT'
13788: ;;
13789:
13790: darwin* | rhapsody*)
13791: # PIC is the default on this platform
13792: # Common symbols not allowed in MH_DYLIB files
13793: lt_prog_compiler_pic='-fno-common'
13794: ;;
13795:
13796: msdosdjgpp*)
13797: # Just because we use GCC doesn't mean we suddenly get shared libraries
13798: # on systems that don't support them.
13799: lt_prog_compiler_can_build_shared=no
13800: enable_shared=no
13801: ;;
13802:
13803: sysv4*MP*)
13804: if test -d /usr/nec; then
13805: lt_prog_compiler_pic=-Kconform_pic
13806: fi
13807: ;;
13808:
13809: hpux*)
13810: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13811: # not for PA HP-UX.
13812: case "$host_cpu" in
13813: hppa*64*|ia64*)
13814: # +Z the default
13815: ;;
13816: *)
13817: lt_prog_compiler_pic='-fPIC'
13818: ;;
13819: esac
13820: ;;
13821:
13822: *)
13823: lt_prog_compiler_pic='-fPIC'
13824: ;;
13825: esac
13826: else
13827: # PORTME Check for flag to pass linker flags through the system compiler.
13828: case $host_os in
13829: aix*)
13830: lt_prog_compiler_wl='-Wl,'
13831: if test "$host_cpu" = ia64; then
13832: # AIX 5 now supports IA64 processor
13833: lt_prog_compiler_static='-Bstatic'
13834: else
13835: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13836: fi
13837: ;;
13838:
13839: mingw* | pw32* | os2*)
13840: # This hack is so that the source file can tell whether it is being
13841: # built for inclusion in a dll (and should export symbols for example).
13842: lt_prog_compiler_pic='-DDLL_EXPORT'
13843: ;;
13844:
13845: hpux9* | hpux10* | hpux11*)
13846: lt_prog_compiler_wl='-Wl,'
13847: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13848: # not for PA HP-UX.
13849: case "$host_cpu" in
13850: hppa*64*|ia64*)
13851: # +Z the default
13852: ;;
13853: *)
13854: lt_prog_compiler_pic='+Z'
13855: ;;
13856: esac
13857: # Is there a better lt_prog_compiler_static that works with the bundled CC?
13858: lt_prog_compiler_static='${wl}-a ${wl}archive'
13859: ;;
13860:
13861: irix5* | irix6* | nonstopux*)
13862: lt_prog_compiler_wl='-Wl,'
13863: # PIC (with -KPIC) is the default.
13864: lt_prog_compiler_static='-non_shared'
13865: ;;
13866:
13867: newsos6)
13868: lt_prog_compiler_pic='-KPIC'
13869: lt_prog_compiler_static='-Bstatic'
13870: ;;
13871:
13872: linux*)
13873: case $CC in
13874: icc|ecc)
13875: lt_prog_compiler_wl='-Wl,'
13876: lt_prog_compiler_pic='-KPIC'
13877: lt_prog_compiler_static='-static'
13878: ;;
13879: ccc)
13880: lt_prog_compiler_wl='-Wl,'
13881: # All Alpha code is PIC.
13882: lt_prog_compiler_static='-non_shared'
13883: ;;
13884: esac
13885: ;;
13886:
13887: osf3* | osf4* | osf5*)
13888: lt_prog_compiler_wl='-Wl,'
13889: # All OSF/1 code is PIC.
13890: lt_prog_compiler_static='-non_shared'
13891: ;;
13892:
13893: sco3.2v5*)
13894: lt_prog_compiler_pic='-Kpic'
13895: lt_prog_compiler_static='-dn'
13896: ;;
13897:
13898: solaris*)
13899: lt_prog_compiler_wl='-Wl,'
13900: lt_prog_compiler_pic='-KPIC'
13901: lt_prog_compiler_static='-Bstatic'
13902: ;;
13903:
13904: sunos4*)
13905: lt_prog_compiler_wl='-Qoption ld '
13906: lt_prog_compiler_pic='-PIC'
13907: lt_prog_compiler_static='-Bstatic'
13908: ;;
13909:
13910: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13911: lt_prog_compiler_wl='-Wl,'
13912: lt_prog_compiler_pic='-KPIC'
13913: lt_prog_compiler_static='-Bstatic'
13914: ;;
13915:
13916: sysv4*MP*)
13917: if test -d /usr/nec ;then
13918: lt_prog_compiler_pic='-Kconform_pic'
13919: lt_prog_compiler_static='-Bstatic'
13920: fi
13921: ;;
13922:
13923: uts4*)
13924: lt_prog_compiler_pic='-pic'
13925: lt_prog_compiler_static='-Bstatic'
13926: ;;
13927:
13928: *)
13929: lt_prog_compiler_can_build_shared=no
13930: ;;
13931: esac
13932: fi
13933:
13934: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13935: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13936:
13937: #
13938: # Check to make sure the PIC flag actually works.
13939: #
13940: if test -n "$lt_prog_compiler_pic"; then
13941: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13942: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13943: if test "${lt_prog_compiler_pic_works+set}" = set; then
13944: echo $ECHO_N "(cached) $ECHO_C" >&6
13945: else
13946: lt_prog_compiler_pic_works=no
13947: ac_outfile=conftest.$ac_objext
13948: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13949: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13950: # Insert the option either (1) after the last *FLAGS variable, or
13951: # (2) before a word containing "conftest.", or (3) at the end.
13952: # Note that $ac_compile itself does not contain backslashes and begins
13953: # with a dollar sign (not a hyphen), so the echo should work correctly.
13954: # The option is referenced via a variable to avoid confusing sed.
13955: lt_compile=`echo "$ac_compile" | $SED \
13956: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13957: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13958: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 13959: (eval echo "\"\$as_me:13959: $lt_compile\"" >&5)
1.1 root 13960: (eval "$lt_compile" 2>conftest.err)
13961: ac_status=$?
13962: cat conftest.err >&5
1.1.1.4 ! root 13963: echo "$as_me:13963: \$? = $ac_status" >&5
1.1 root 13964: if (exit $ac_status) && test -s "$ac_outfile"; then
13965: # The compiler can only warn and ignore the option if not recognized
13966: # So say no if there are warnings
13967: if test ! -s conftest.err; then
13968: lt_prog_compiler_pic_works=yes
13969: fi
13970: fi
13971: $rm conftest*
13972:
13973: fi
13974: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13975: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13976:
13977: if test x"$lt_prog_compiler_pic_works" = xyes; then
13978: case $lt_prog_compiler_pic in
13979: "" | " "*) ;;
13980: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13981: esac
13982: else
13983: lt_prog_compiler_pic=
13984: lt_prog_compiler_can_build_shared=no
13985: fi
13986:
13987: fi
13988: case "$host_os" in
13989: # For platforms which do not support PIC, -DPIC is meaningless:
13990: *djgpp*)
13991: lt_prog_compiler_pic=
13992: ;;
13993: *)
13994: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13995: ;;
13996: esac
13997:
13998: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13999: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14000: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14001: echo $ECHO_N "(cached) $ECHO_C" >&6
14002: else
14003: lt_cv_prog_compiler_c_o=no
14004: $rm -r conftest 2>/dev/null
14005: mkdir conftest
14006: cd conftest
14007: mkdir out
14008: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14009:
14010: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14011: # that will create temporary files in the current directory regardless of
14012: # the output directory. Thus, making CWD read-only will cause this test
14013: # to fail, enabling locking or at least warning the user not to do parallel
14014: # builds.
14015: chmod -w .
14016:
14017: lt_compiler_flag="-o out/conftest2.$ac_objext"
14018: # Insert the option either (1) after the last *FLAGS variable, or
14019: # (2) before a word containing "conftest.", or (3) at the end.
14020: # Note that $ac_compile itself does not contain backslashes and begins
14021: # with a dollar sign (not a hyphen), so the echo should work correctly.
14022: lt_compile=`echo "$ac_compile" | $SED \
14023: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14024: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14025: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 14026: (eval echo "\"\$as_me:14026: $lt_compile\"" >&5)
1.1 root 14027: (eval "$lt_compile" 2>out/conftest.err)
14028: ac_status=$?
14029: cat out/conftest.err >&5
1.1.1.4 ! root 14030: echo "$as_me:14030: \$? = $ac_status" >&5
1.1 root 14031: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14032: then
14033: # The compiler can only warn and ignore the option if not recognized
14034: # So say no if there are warnings
14035: if test ! -s out/conftest.err; then
14036: lt_cv_prog_compiler_c_o=yes
14037: fi
14038: fi
14039: chmod u+w .
14040: $rm conftest* out/*
14041: rmdir out
14042: cd ..
14043: rmdir conftest
14044: $rm conftest*
14045:
14046: fi
14047: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14048: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
14049:
14050:
14051: hard_links="nottested"
14052: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14053: # do not overwrite the value of need_locks provided by the user
14054: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14055: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14056: hard_links=yes
14057: $rm conftest*
14058: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14059: touch conftest.a
14060: ln conftest.a conftest.b 2>&5 || hard_links=no
14061: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14062: echo "$as_me:$LINENO: result: $hard_links" >&5
14063: echo "${ECHO_T}$hard_links" >&6
14064: if test "$hard_links" = no; then
14065: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14066: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14067: need_locks=warn
14068: fi
14069: else
14070: need_locks=no
14071: fi
14072:
14073: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14074: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14075:
14076: runpath_var=
14077: allow_undefined_flag=
14078: enable_shared_with_static_runtimes=no
14079: archive_cmds=
14080: archive_expsym_cmds=
14081: old_archive_From_new_cmds=
14082: old_archive_from_expsyms_cmds=
14083: export_dynamic_flag_spec=
14084: whole_archive_flag_spec=
14085: thread_safe_flag_spec=
14086: hardcode_libdir_flag_spec=
14087: hardcode_libdir_flag_spec_ld=
14088: hardcode_libdir_separator=
14089: hardcode_direct=no
14090: hardcode_minus_L=no
14091: hardcode_shlibpath_var=unsupported
14092: link_all_deplibs=unknown
14093: hardcode_automatic=no
14094: module_cmds=
14095: module_expsym_cmds=
14096: always_export_symbols=no
14097: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14098: # include_expsyms should be a list of space-separated symbols to be *always*
14099: # included in the symbol list
14100: include_expsyms=
14101: # exclude_expsyms can be an extended regexp of symbols to exclude
14102: # it will be wrapped by ` (' and `)$', so one must not match beginning or
14103: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14104: # as well as any symbol that contains `d'.
14105: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14106: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14107: # platforms (ab)use it in PIC code, but their linkers get confused if
14108: # the symbol is explicitly referenced. Since portable code cannot
14109: # rely on this symbol name, it's probably fine to never include it in
14110: # preloaded symbol tables.
14111: extract_expsyms_cmds=
14112:
14113: case $host_os in
14114: cygwin* | mingw* | pw32*)
14115: # FIXME: the MSVC++ port hasn't been tested in a loooong time
14116: # When not using gcc, we currently assume that we are using
14117: # Microsoft Visual C++.
14118: if test "$GCC" != yes; then
14119: with_gnu_ld=no
14120: fi
14121: ;;
14122: openbsd*)
14123: with_gnu_ld=no
14124: ;;
14125: esac
14126:
14127: ld_shlibs=yes
14128: if test "$with_gnu_ld" = yes; then
14129: # If archive_cmds runs LD, not CC, wlarc should be empty
14130: wlarc='${wl}'
14131:
14132: # See if GNU ld supports shared libraries.
14133: case $host_os in
14134: aix3* | aix4* | aix5*)
14135: # On AIX/PPC, the GNU linker is very broken
14136: if test "$host_cpu" != ia64; then
14137: ld_shlibs=no
14138: cat <<EOF 1>&2
14139:
14140: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14141: *** to be unable to reliably create shared libraries on AIX.
14142: *** Therefore, libtool is disabling shared libraries support. If you
14143: *** really care for shared libraries, you may want to modify your PATH
14144: *** so that a non-GNU linker is found, and then restart.
14145:
14146: EOF
14147: fi
14148: ;;
14149:
14150: amigaos*)
14151: 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)'
14152: hardcode_libdir_flag_spec='-L$libdir'
14153: hardcode_minus_L=yes
14154:
14155: # Samuel A. Falvo II <[email protected]> reports
14156: # that the semantics of dynamic libraries on AmigaOS, at least up
14157: # to version 4, is to share data among multiple programs linked
14158: # with the same dynamic library. Since this doesn't match the
14159: # behavior of shared libraries on other platforms, we can't use
14160: # them.
14161: ld_shlibs=no
14162: ;;
14163:
14164: beos*)
14165: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14166: allow_undefined_flag=unsupported
14167: # Joseph Beckenbach <[email protected]> says some releases of gcc
14168: # support --undefined. This deserves some investigation. FIXME
14169: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14170: else
14171: ld_shlibs=no
14172: fi
14173: ;;
14174:
14175: cygwin* | mingw* | pw32*)
14176: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14177: # as there is no search path for DLLs.
14178: hardcode_libdir_flag_spec='-L$libdir'
14179: allow_undefined_flag=unsupported
14180: always_export_symbols=no
14181: enable_shared_with_static_runtimes=yes
14182: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14183:
14184: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14185: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14186: # If the export-symbols file already is a .def file (1st line
14187: # is EXPORTS), use it as is; otherwise, prepend...
14188: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14189: cp $export_symbols $output_objdir/$soname.def;
14190: else
14191: echo EXPORTS > $output_objdir/$soname.def;
14192: cat $export_symbols >> $output_objdir/$soname.def;
14193: fi~
14194: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14195: else
14196: ld_shlibs=no
14197: fi
14198: ;;
14199:
14200: netbsd*)
14201: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14202: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14203: wlarc=
14204: else
14205: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14206: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14207: fi
14208: ;;
14209:
14210: solaris* | sysv5*)
14211: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14212: ld_shlibs=no
14213: cat <<EOF 1>&2
14214:
14215: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14216: *** create shared libraries on Solaris systems. Therefore, libtool
14217: *** is disabling shared libraries support. We urge you to upgrade GNU
14218: *** binutils to release 2.9.1 or newer. Another option is to modify
14219: *** your PATH or compiler configuration so that the native linker is
14220: *** used, and then restart.
14221:
14222: EOF
14223: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14224: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14225: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14226: else
14227: ld_shlibs=no
14228: fi
14229: ;;
14230:
14231: sunos4*)
14232: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14233: wlarc=
14234: hardcode_direct=yes
14235: hardcode_shlibpath_var=no
14236: ;;
14237:
14238: *)
14239: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14240: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14242: else
14243: ld_shlibs=no
14244: fi
14245: ;;
14246: esac
14247:
14248: if test "$ld_shlibs" = yes; then
14249: runpath_var=LD_RUN_PATH
14250: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14251: export_dynamic_flag_spec='${wl}--export-dynamic'
14252: # ancient GNU ld didn't support --whole-archive et. al.
14253: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14254: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14255: else
14256: whole_archive_flag_spec=
14257: fi
14258: fi
14259: else
14260: # PORTME fill in a description of your system's linker (not GNU ld)
14261: case $host_os in
14262: aix3*)
14263: allow_undefined_flag=unsupported
14264: always_export_symbols=yes
14265: 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'
14266: # Note: this linker hardcodes the directories in LIBPATH if there
14267: # are no directories specified by -L.
14268: hardcode_minus_L=yes
14269: if test "$GCC" = yes && test -z "$link_static_flag"; then
14270: # Neither direct hardcoding nor static linking is supported with a
14271: # broken collect2.
14272: hardcode_direct=unsupported
14273: fi
14274: ;;
14275:
14276: aix4* | aix5*)
14277: if test "$host_cpu" = ia64; then
14278: # On IA64, the linker does run time linking by default, so we don't
14279: # have to do anything special.
14280: aix_use_runtimelinking=no
14281: exp_sym_flag='-Bexport'
14282: no_entry_flag=""
14283: else
14284: # If we're using GNU nm, then we don't want the "-C" option.
14285: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14286: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14287: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14288: else
14289: 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'
14290: fi
14291: aix_use_runtimelinking=no
14292:
14293: # Test if we are trying to use run time linking or normal
14294: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14295: # need to do runtime linking.
14296: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14297: for ld_flag in $LDFLAGS; do
14298: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14299: aix_use_runtimelinking=yes
14300: break
14301: fi
14302: done
14303: esac
14304:
14305: exp_sym_flag='-bexport'
14306: no_entry_flag='-bnoentry'
14307: fi
14308:
14309: # When large executables or shared objects are built, AIX ld can
14310: # have problems creating the table of contents. If linking a library
14311: # or program results in "error TOC overflow" add -mminimal-toc to
14312: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14313: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14314:
14315: archive_cmds=''
14316: hardcode_direct=yes
14317: hardcode_libdir_separator=':'
14318: link_all_deplibs=yes
14319:
14320: if test "$GCC" = yes; then
14321: case $host_os in aix4.012|aix4.012.*)
14322: # We only want to do this on AIX 4.2 and lower, the check
14323: # below for broken collect2 doesn't work under 4.3+
14324: collect2name=`${CC} -print-prog-name=collect2`
14325: if test -f "$collect2name" && \
14326: strings "$collect2name" | grep resolve_lib_name >/dev/null
14327: then
14328: # We have reworked collect2
14329: hardcode_direct=yes
14330: else
14331: # We have old collect2
14332: hardcode_direct=unsupported
14333: # It fails to find uninstalled libraries when the uninstalled
14334: # path is not listed in the libpath. Setting hardcode_minus_L
14335: # to unsupported forces relinking
14336: hardcode_minus_L=yes
14337: hardcode_libdir_flag_spec='-L$libdir'
14338: hardcode_libdir_separator=
14339: fi
14340: esac
14341: shared_flag='-shared'
14342: else
14343: # not using gcc
14344: if test "$host_cpu" = ia64; then
14345: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14346: # chokes on -Wl,-G. The following line is correct:
14347: shared_flag='-G'
14348: else
14349: if test "$aix_use_runtimelinking" = yes; then
14350: shared_flag='${wl}-G'
14351: else
14352: shared_flag='${wl}-bM:SRE'
14353: fi
14354: fi
14355: fi
14356:
14357: # It seems that -bexpall does not export symbols beginning with
14358: # underscore (_), so it is better to generate a list of symbols to export.
14359: always_export_symbols=yes
14360: if test "$aix_use_runtimelinking" = yes; then
14361: # Warning - without using the other runtime loading flags (-brtl),
14362: # -berok will link without error, but may produce a broken library.
14363: allow_undefined_flag='-berok'
14364: # Determine the default libpath from the value encoded in an empty executable.
14365: cat >conftest.$ac_ext <<_ACEOF
14366: #line $LINENO "configure"
14367: /* confdefs.h. */
14368: _ACEOF
14369: cat confdefs.h >>conftest.$ac_ext
14370: cat >>conftest.$ac_ext <<_ACEOF
14371: /* end confdefs.h. */
14372:
14373: int
14374: main ()
14375: {
14376:
14377: ;
14378: return 0;
14379: }
14380: _ACEOF
14381: rm -f conftest.$ac_objext conftest$ac_exeext
14382: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383: (eval $ac_link) 2>&5
14384: ac_status=$?
14385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386: (exit $ac_status); } &&
14387: { ac_try='test -s conftest$ac_exeext'
14388: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389: (eval $ac_try) 2>&5
14390: ac_status=$?
14391: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392: (exit $ac_status); }; }; then
14393:
14394: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14395: }'`
14396: # Check for a 64-bit object if we didn't find anything.
14397: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14398: }'`; fi
14399: else
14400: echo "$as_me: failed program was:" >&5
14401: sed 's/^/| /' conftest.$ac_ext >&5
14402:
14403: fi
14404: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14405: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14406:
14407: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14408: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14409: else
14410: if test "$host_cpu" = ia64; then
14411: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14412: allow_undefined_flag="-z nodefs"
14413: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14414: else
14415: # Determine the default libpath from the value encoded in an empty executable.
14416: cat >conftest.$ac_ext <<_ACEOF
14417: #line $LINENO "configure"
14418: /* confdefs.h. */
14419: _ACEOF
14420: cat confdefs.h >>conftest.$ac_ext
14421: cat >>conftest.$ac_ext <<_ACEOF
14422: /* end confdefs.h. */
14423:
14424: int
14425: main ()
14426: {
14427:
14428: ;
14429: return 0;
14430: }
14431: _ACEOF
14432: rm -f conftest.$ac_objext conftest$ac_exeext
14433: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14434: (eval $ac_link) 2>&5
14435: ac_status=$?
14436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437: (exit $ac_status); } &&
14438: { ac_try='test -s conftest$ac_exeext'
14439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440: (eval $ac_try) 2>&5
14441: ac_status=$?
14442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443: (exit $ac_status); }; }; then
14444:
14445: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14446: }'`
14447: # Check for a 64-bit object if we didn't find anything.
14448: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14449: }'`; fi
14450: else
14451: echo "$as_me: failed program was:" >&5
14452: sed 's/^/| /' conftest.$ac_ext >&5
14453:
14454: fi
14455: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14456: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14457:
14458: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14459: # Warning - without using the other run time loading flags,
14460: # -berok will link without error, but may produce a broken library.
14461: no_undefined_flag=' ${wl}-bernotok'
14462: allow_undefined_flag=' ${wl}-berok'
14463: # -bexpall does not export symbols beginning with underscore (_)
14464: always_export_symbols=yes
14465: # Exported symbols can be pulled into shared objects from archives
14466: whole_archive_flag_spec=' '
14467: archive_cmds_need_lc=yes
14468: # This is similar to how AIX traditionally builds it's shared libraries.
14469: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14470: fi
14471: fi
14472: ;;
14473:
14474: amigaos*)
14475: 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)'
14476: hardcode_libdir_flag_spec='-L$libdir'
14477: hardcode_minus_L=yes
14478: # see comment about different semantics on the GNU ld section
14479: ld_shlibs=no
14480: ;;
14481:
14482: bsdi4*)
14483: export_dynamic_flag_spec=-rdynamic
14484: ;;
14485:
14486: cygwin* | mingw* | pw32*)
14487: # When not using gcc, we currently assume that we are using
14488: # Microsoft Visual C++.
14489: # hardcode_libdir_flag_spec is actually meaningless, as there is
14490: # no search path for DLLs.
14491: hardcode_libdir_flag_spec=' '
14492: allow_undefined_flag=unsupported
14493: # Tell ltmain to make .lib files, not .a files.
14494: libext=lib
14495: # Tell ltmain to make .dll files, not .so files.
14496: shrext=".dll"
14497: # FIXME: Setting linknames here is a bad hack.
14498: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14499: # The linker will automatically build a .lib file if we build a DLL.
14500: old_archive_From_new_cmds='true'
14501: # FIXME: Should let the user specify the lib program.
14502: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14503: fix_srcfile_path='`cygpath -w "$srcfile"`'
14504: enable_shared_with_static_runtimes=yes
14505: ;;
14506:
14507: darwin* | rhapsody*)
14508: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14509: archive_cmds_need_lc=no
14510: case "$host_os" in
14511: rhapsody* | darwin1.[012])
14512: allow_undefined_flag='-undefined suppress'
14513: ;;
14514: *) # Darwin 1.3 on
14515: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
14516: ;;
14517: esac
14518: # FIXME: Relying on posixy $() will cause problems for
14519: # cross-compilation, but unfortunately the echo tests do not
14520: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14521: # `"' quotes if we put them in here... so don't!
14522: lt_int_apple_cc_single_mod=no
14523: output_verbose_link_cmd='echo'
14524: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14525: lt_int_apple_cc_single_mod=yes
14526: fi
14527: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14528: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14529: else
14530: archive_cmds='$CC -r ${wl}-bind_at_load -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'
14531: fi
14532: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14533: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14534: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14535: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14536: else
14537: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14538: fi
14539: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14540: hardcode_direct=no
14541: hardcode_automatic=yes
14542: hardcode_shlibpath_var=unsupported
14543: whole_archive_flag_spec='-all_load $convenience'
14544: link_all_deplibs=yes
14545: fi
14546: ;;
14547:
14548: dgux*)
14549: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550: hardcode_libdir_flag_spec='-L$libdir'
14551: hardcode_shlibpath_var=no
14552: ;;
14553:
14554: freebsd1*)
14555: ld_shlibs=no
14556: ;;
14557:
14558: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14559: # support. Future versions do this automatically, but an explicit c++rt0.o
14560: # does not break anything, and helps significantly (at the cost of a little
14561: # extra space).
14562: freebsd2.2*)
14563: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14564: hardcode_libdir_flag_spec='-R$libdir'
14565: hardcode_direct=yes
14566: hardcode_shlibpath_var=no
14567: ;;
14568:
14569: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14570: freebsd2*)
14571: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14572: hardcode_direct=yes
14573: hardcode_minus_L=yes
14574: hardcode_shlibpath_var=no
14575: ;;
14576:
14577: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14578: freebsd*)
14579: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14580: hardcode_libdir_flag_spec='-R$libdir'
14581: hardcode_direct=yes
14582: hardcode_shlibpath_var=no
14583: ;;
14584:
14585: hpux9*)
14586: if test "$GCC" = yes; then
14587: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14588: else
14589: 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'
14590: fi
14591: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14592: hardcode_libdir_separator=:
14593: hardcode_direct=yes
14594:
14595: # hardcode_minus_L: Not really in the search PATH,
14596: # but as the default location of the library.
14597: hardcode_minus_L=yes
14598: export_dynamic_flag_spec='${wl}-E'
14599: ;;
14600:
14601: hpux10* | hpux11*)
14602: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14603: case "$host_cpu" in
14604: hppa*64*|ia64*)
14605: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606: ;;
14607: *)
14608: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14609: ;;
14610: esac
14611: else
14612: case "$host_cpu" in
14613: hppa*64*|ia64*)
14614: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14615: ;;
14616: *)
14617: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14618: ;;
14619: esac
14620: fi
14621: if test "$with_gnu_ld" = no; then
14622: case "$host_cpu" in
14623: hppa*64*)
14624: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14625: hardcode_libdir_flag_spec_ld='+b $libdir'
14626: hardcode_libdir_separator=:
14627: hardcode_direct=no
14628: hardcode_shlibpath_var=no
14629: ;;
14630: ia64*)
14631: hardcode_libdir_flag_spec='-L$libdir'
14632: hardcode_direct=no
14633: hardcode_shlibpath_var=no
14634:
14635: # hardcode_minus_L: Not really in the search PATH,
14636: # but as the default location of the library.
14637: hardcode_minus_L=yes
14638: ;;
14639: *)
14640: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14641: hardcode_libdir_separator=:
14642: hardcode_direct=yes
14643: export_dynamic_flag_spec='${wl}-E'
14644:
14645: # hardcode_minus_L: Not really in the search PATH,
14646: # but as the default location of the library.
14647: hardcode_minus_L=yes
14648: ;;
14649: esac
14650: fi
14651: ;;
14652:
14653: irix5* | irix6* | nonstopux*)
14654: if test "$GCC" = yes; then
14655: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14656: else
14657: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14658: hardcode_libdir_flag_spec_ld='-rpath $libdir'
14659: fi
14660: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14661: hardcode_libdir_separator=:
14662: link_all_deplibs=yes
14663: ;;
14664:
14665: netbsd*)
14666: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14667: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14668: else
14669: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14670: fi
14671: hardcode_libdir_flag_spec='-R$libdir'
14672: hardcode_direct=yes
14673: hardcode_shlibpath_var=no
14674: ;;
14675:
14676: newsos6)
14677: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678: hardcode_direct=yes
14679: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14680: hardcode_libdir_separator=:
14681: hardcode_shlibpath_var=no
14682: ;;
14683:
14684: openbsd*)
14685: hardcode_direct=yes
14686: hardcode_shlibpath_var=no
14687: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14690: export_dynamic_flag_spec='${wl}-E'
14691: else
14692: case $host_os in
14693: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14694: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14695: hardcode_libdir_flag_spec='-R$libdir'
14696: ;;
14697: *)
14698: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14699: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14700: ;;
14701: esac
14702: fi
14703: ;;
14704:
14705: os2*)
14706: hardcode_libdir_flag_spec='-L$libdir'
14707: hardcode_minus_L=yes
14708: allow_undefined_flag=unsupported
14709: 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'
14710: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14711: ;;
14712:
14713: osf3*)
14714: if test "$GCC" = yes; then
14715: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14716: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14717: else
14718: allow_undefined_flag=' -expect_unresolved \*'
14719: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14720: fi
14721: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14722: hardcode_libdir_separator=:
14723: ;;
14724:
14725: osf4* | osf5*) # as osf3* with the addition of -msym flag
14726: if test "$GCC" = yes; then
14727: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14728: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14729: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14730: else
14731: allow_undefined_flag=' -expect_unresolved \*'
14732: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14733: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14734: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14735:
14736: # Both c and cxx compiler support -rpath directly
14737: hardcode_libdir_flag_spec='-rpath $libdir'
14738: fi
14739: hardcode_libdir_separator=:
14740: ;;
14741:
14742: sco3.2v5*)
14743: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14744: hardcode_shlibpath_var=no
14745: export_dynamic_flag_spec='${wl}-Bexport'
14746: runpath_var=LD_RUN_PATH
14747: hardcode_runpath_var=yes
14748: ;;
14749:
14750: solaris*)
14751: no_undefined_flag=' -z text'
14752: if test "$GCC" = yes; then
14753: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14754: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14755: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14756: else
14757: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14759: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14760: fi
14761: hardcode_libdir_flag_spec='-R$libdir'
14762: hardcode_shlibpath_var=no
14763: case $host_os in
14764: solaris2.[0-5] | solaris2.[0-5].*) ;;
14765: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14766: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14767: esac
14768: link_all_deplibs=yes
14769: ;;
14770:
14771: sunos4*)
14772: if test "x$host_vendor" = xsequent; then
14773: # Use $CC to link under sequent, because it throws in some extra .o
14774: # files that make .init and .fini sections work.
14775: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14776: else
14777: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14778: fi
14779: hardcode_libdir_flag_spec='-L$libdir'
14780: hardcode_direct=yes
14781: hardcode_minus_L=yes
14782: hardcode_shlibpath_var=no
14783: ;;
14784:
14785: sysv4)
14786: case $host_vendor in
14787: sni)
14788: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14789: hardcode_direct=yes # is this really true???
14790: ;;
14791: siemens)
14792: ## LD is ld it makes a PLAMLIB
14793: ## CC just makes a GrossModule.
14794: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14795: reload_cmds='$CC -r -o $output$reload_objs'
14796: hardcode_direct=no
14797: ;;
14798: motorola)
14799: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14801: ;;
14802: esac
14803: runpath_var='LD_RUN_PATH'
14804: hardcode_shlibpath_var=no
14805: ;;
14806:
14807: sysv4.3*)
14808: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14809: hardcode_shlibpath_var=no
14810: export_dynamic_flag_spec='-Bexport'
14811: ;;
14812:
14813: sysv4*MP*)
14814: if test -d /usr/nec; then
14815: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14816: hardcode_shlibpath_var=no
14817: runpath_var=LD_RUN_PATH
14818: hardcode_runpath_var=yes
14819: ld_shlibs=yes
14820: fi
14821: ;;
14822:
14823: sysv4.2uw2*)
14824: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14825: hardcode_direct=yes
14826: hardcode_minus_L=no
14827: hardcode_shlibpath_var=no
14828: hardcode_runpath_var=yes
14829: runpath_var=LD_RUN_PATH
14830: ;;
14831:
14832: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14833: no_undefined_flag='${wl}-z ${wl}text'
14834: if test "$GCC" = yes; then
14835: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836: else
14837: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14838: fi
14839: runpath_var='LD_RUN_PATH'
14840: hardcode_shlibpath_var=no
14841: ;;
14842:
14843: sysv5*)
14844: no_undefined_flag=' -z text'
14845: # $CC -shared without GNU ld will not create a library from C++
14846: # object files and a static libstdc++, better avoid it by now
14847: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14849: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14850: hardcode_libdir_flag_spec=
14851: hardcode_shlibpath_var=no
14852: runpath_var='LD_RUN_PATH'
14853: ;;
14854:
14855: uts4*)
14856: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857: hardcode_libdir_flag_spec='-L$libdir'
14858: hardcode_shlibpath_var=no
14859: ;;
14860:
14861: *)
14862: ld_shlibs=no
14863: ;;
14864: esac
14865: fi
14866:
14867: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14868: echo "${ECHO_T}$ld_shlibs" >&6
14869: test "$ld_shlibs" = no && can_build_shared=no
14870:
14871: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14872: if test "$GCC" = yes; then
14873: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14874: fi
14875:
14876: #
14877: # Do we need to explicitly link libc?
14878: #
14879: case "x$archive_cmds_need_lc" in
14880: x|xyes)
14881: # Assume -lc should be added
14882: archive_cmds_need_lc=yes
14883:
14884: if test "$enable_shared" = yes && test "$GCC" = yes; then
14885: case $archive_cmds in
14886: *'~'*)
14887: # FIXME: we may have to deal with multi-command sequences.
14888: ;;
14889: '$CC '*)
14890: # Test whether the compiler implicitly links with -lc since on some
14891: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14892: # to ld, don't add -lc before -lgcc.
14893: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14894: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14895: $rm conftest*
14896: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14897:
14898: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14899: (eval $ac_compile) 2>&5
14900: ac_status=$?
14901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902: (exit $ac_status); } 2>conftest.err; then
14903: soname=conftest
14904: lib=conftest
14905: libobjs=conftest.$ac_objext
14906: deplibs=
14907: wl=$lt_prog_compiler_wl
14908: compiler_flags=-v
14909: linker_flags=-v
14910: verstring=
14911: output_objdir=.
14912: libname=conftest
14913: lt_save_allow_undefined_flag=$allow_undefined_flag
14914: allow_undefined_flag=
14915: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14916: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14917: ac_status=$?
14918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919: (exit $ac_status); }
14920: then
14921: archive_cmds_need_lc=no
14922: else
14923: archive_cmds_need_lc=yes
14924: fi
14925: allow_undefined_flag=$lt_save_allow_undefined_flag
14926: else
14927: cat conftest.err 1>&5
14928: fi
14929: $rm conftest*
14930: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14931: echo "${ECHO_T}$archive_cmds_need_lc" >&6
14932: ;;
14933: esac
14934: fi
14935: ;;
14936: esac
14937:
14938: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14939: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14940: hardcode_action=
14941: if test -n "$hardcode_libdir_flag_spec" || \
14942: test -n "$runpath_var " || \
14943: test "X$hardcode_automatic"="Xyes" ; then
14944:
14945: # We can hardcode non-existant directories.
14946: if test "$hardcode_direct" != no &&
14947: # If the only mechanism to avoid hardcoding is shlibpath_var, we
14948: # have to relink, otherwise we might link with an installed library
14949: # when we should be linking with a yet-to-be-installed one
14950: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14951: test "$hardcode_minus_L" != no; then
14952: # Linking always hardcodes the temporary library directory.
14953: hardcode_action=relink
14954: else
14955: # We can link without hardcoding, and we can hardcode nonexisting dirs.
14956: hardcode_action=immediate
14957: fi
14958: else
14959: # We cannot hardcode anything, or else we can only hardcode existing
14960: # directories.
14961: hardcode_action=unsupported
14962: fi
14963: echo "$as_me:$LINENO: result: $hardcode_action" >&5
14964: echo "${ECHO_T}$hardcode_action" >&6
14965:
14966: if test "$hardcode_action" = relink; then
14967: # Fast installation is not supported
14968: enable_fast_install=no
14969: elif test "$shlibpath_overrides_runpath" = yes ||
14970: test "$enable_shared" = no; then
14971: # Fast installation is not necessary
14972: enable_fast_install=needless
14973: fi
14974:
14975: striplib=
14976: old_striplib=
14977: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14978: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14979: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14980: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14981: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14982: echo "$as_me:$LINENO: result: yes" >&5
14983: echo "${ECHO_T}yes" >&6
14984: else
14985: # FIXME - insert some real tests, host_os isn't really good enough
14986: case $host_os in
14987: darwin*)
14988: if test -n "$STRIP" ; then
14989: striplib="$STRIP -x"
14990: echo "$as_me:$LINENO: result: yes" >&5
14991: echo "${ECHO_T}yes" >&6
14992: else
14993: echo "$as_me:$LINENO: result: no" >&5
14994: echo "${ECHO_T}no" >&6
14995: fi
14996: ;;
14997: *)
14998: echo "$as_me:$LINENO: result: no" >&5
14999: echo "${ECHO_T}no" >&6
15000: ;;
15001: esac
15002: fi
15003:
15004: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15005: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15006: library_names_spec=
15007: libname_spec='lib$name'
15008: soname_spec=
15009: shrext=".so"
15010: postinstall_cmds=
15011: postuninstall_cmds=
15012: finish_cmds=
15013: finish_eval=
15014: shlibpath_var=
15015: shlibpath_overrides_runpath=unknown
15016: version_type=none
15017: dynamic_linker="$host_os ld.so"
15018: sys_lib_dlsearch_path_spec="/lib /usr/lib"
15019: if test "$GCC" = yes; then
15020: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15021: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15022: # if the path contains ";" then we assume it to be the separator
15023: # otherwise default to the standard path separator (i.e. ":") - it is
15024: # assumed that no part of a normal pathname contains ";" but that should
15025: # okay in the real world where ";" in dirpaths is itself problematic.
15026: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15027: else
15028: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15029: fi
15030: else
15031: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15032: fi
15033: need_lib_prefix=unknown
15034: hardcode_into_libs=no
15035:
15036: # when you set need_version to no, make sure it does not cause -set_version
15037: # flags to be left without arguments
15038: need_version=unknown
15039:
15040: case $host_os in
15041: aix3*)
15042: version_type=linux
15043: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15044: shlibpath_var=LIBPATH
15045:
15046: # AIX 3 has no versioning support, so we append a major version to the name.
15047: soname_spec='${libname}${release}${shared_ext}$major'
15048: ;;
15049:
15050: aix4* | aix5*)
15051: version_type=linux
15052: need_lib_prefix=no
15053: need_version=no
15054: hardcode_into_libs=yes
15055: if test "$host_cpu" = ia64; then
15056: # AIX 5 supports IA64
15057: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15058: shlibpath_var=LD_LIBRARY_PATH
15059: else
15060: # With GCC up to 2.95.x, collect2 would create an import file
15061: # for dependence libraries. The import file would start with
15062: # the line `#! .'. This would cause the generated library to
15063: # depend on `.', always an invalid library. This was fixed in
15064: # development snapshots of GCC prior to 3.0.
15065: case $host_os in
15066: aix4 | aix4.[01] | aix4.[01].*)
15067: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15068: echo ' yes '
15069: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15070: :
15071: else
15072: can_build_shared=no
15073: fi
15074: ;;
15075: esac
15076: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15077: # soname into executable. Probably we can add versioning support to
15078: # collect2, so additional links can be useful in future.
15079: if test "$aix_use_runtimelinking" = yes; then
15080: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15081: # instead of lib<name>.a to let people know that these are not
15082: # typical AIX shared libraries.
15083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084: else
15085: # We preserve .a as extension for shared libraries through AIX4.2
15086: # and later when we are not doing run time linking.
15087: library_names_spec='${libname}${release}.a $libname.a'
15088: soname_spec='${libname}${release}${shared_ext}$major'
15089: fi
15090: shlibpath_var=LIBPATH
15091: fi
15092: ;;
15093:
15094: amigaos*)
15095: library_names_spec='$libname.ixlibrary $libname.a'
15096: # Create ${libname}_ixlibrary.a entries in /sys/libs.
15097: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15098: ;;
15099:
15100: beos*)
15101: library_names_spec='${libname}${shared_ext}'
15102: dynamic_linker="$host_os ld.so"
15103: shlibpath_var=LIBRARY_PATH
15104: ;;
15105:
15106: bsdi4*)
15107: version_type=linux
15108: need_version=no
15109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110: soname_spec='${libname}${release}${shared_ext}$major'
15111: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15112: shlibpath_var=LD_LIBRARY_PATH
15113: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15114: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15115: # the default ld.so.conf also contains /usr/contrib/lib and
15116: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15117: # libtool to hard-code these into programs
15118: ;;
15119:
15120: cygwin* | mingw* | pw32*)
15121: version_type=windows
15122: shrext=".dll"
15123: need_version=no
15124: need_lib_prefix=no
15125:
15126: case $GCC,$host_os in
15127: yes,cygwin* | yes,mingw* | yes,pw32*)
15128: library_names_spec='$libname.dll.a'
15129: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15130: postinstall_cmds='base_file=`basename \${file}`~
15131: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15132: dldir=$destdir/`dirname \$dlpath`~
15133: test -d \$dldir || mkdir -p \$dldir~
15134: $install_prog $dir/$dlname \$dldir/$dlname'
15135: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15136: dlpath=$dir/\$dldll~
15137: $rm \$dlpath'
15138: shlibpath_overrides_runpath=yes
15139:
15140: case $host_os in
15141: cygwin*)
15142: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15143: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15144: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15145: ;;
15146: mingw*)
15147: # MinGW DLLs use traditional 'lib' prefix
15148: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15149: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15150: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15151: # It is most probably a Windows format PATH printed by
15152: # mingw gcc, but we are running on Cygwin. Gcc prints its search
15153: # path with ; separators, and with drive letters. We can handle the
15154: # drive letters (cygwin fileutils understands them), so leave them,
15155: # especially as we might pass files found there to a mingw objdump,
15156: # which wouldn't understand a cygwinified path. Ahh.
15157: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15158: else
15159: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15160: fi
15161: ;;
15162: pw32*)
15163: # pw32 DLLs use 'pw' prefix rather than 'lib'
15164: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15165: ;;
15166: esac
15167: ;;
15168:
15169: *)
15170: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15171: ;;
15172: esac
15173: dynamic_linker='Win32 ld.exe'
15174: # FIXME: first we should search . and the directory the executable is in
15175: shlibpath_var=PATH
15176: ;;
15177:
15178: darwin* | rhapsody*)
15179: dynamic_linker="$host_os dyld"
15180: version_type=darwin
15181: need_lib_prefix=no
15182: need_version=no
15183: # FIXME: Relying on posixy $() will cause problems for
15184: # cross-compilation, but unfortunately the echo tests do not
15185: # yet detect zsh echo's removal of \ escapes.
15186: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15187: soname_spec='${libname}${release}${major}$shared_ext'
15188: shlibpath_overrides_runpath=yes
15189: shlibpath_var=DYLD_LIBRARY_PATH
15190: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15191: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15192: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15193: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15194: fi
15195: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15196: ;;
15197:
15198: dgux*)
15199: version_type=linux
15200: need_lib_prefix=no
15201: need_version=no
15202: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15203: soname_spec='${libname}${release}${shared_ext}$major'
15204: shlibpath_var=LD_LIBRARY_PATH
15205: ;;
15206:
15207: freebsd1*)
15208: dynamic_linker=no
15209: ;;
15210:
15211: freebsd*)
15212: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15213: version_type=freebsd-$objformat
15214: case $version_type in
15215: freebsd-elf*)
15216: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15217: need_version=no
15218: need_lib_prefix=no
15219: ;;
15220: freebsd-*)
15221: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15222: need_version=yes
15223: ;;
15224: esac
15225: shlibpath_var=LD_LIBRARY_PATH
15226: case $host_os in
15227: freebsd2*)
15228: shlibpath_overrides_runpath=yes
15229: ;;
15230: freebsd3.01* | freebsdelf3.01*)
15231: shlibpath_overrides_runpath=yes
15232: hardcode_into_libs=yes
15233: ;;
15234: *) # from 3.2 on
15235: shlibpath_overrides_runpath=no
15236: hardcode_into_libs=yes
15237: ;;
15238: esac
15239: ;;
15240:
15241: gnu*)
15242: version_type=linux
15243: need_lib_prefix=no
15244: need_version=no
15245: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15246: soname_spec='${libname}${release}${shared_ext}$major'
15247: shlibpath_var=LD_LIBRARY_PATH
15248: hardcode_into_libs=yes
15249: ;;
15250:
15251: hpux9* | hpux10* | hpux11*)
15252: # Give a soname corresponding to the major version so that dld.sl refuses to
15253: # link against other versions.
15254: version_type=sunos
15255: need_lib_prefix=no
15256: need_version=no
15257: case "$host_cpu" in
15258: ia64*)
15259: shrext='.so'
15260: hardcode_into_libs=yes
15261: dynamic_linker="$host_os dld.so"
15262: shlibpath_var=LD_LIBRARY_PATH
15263: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15264: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265: soname_spec='${libname}${release}${shared_ext}$major'
15266: if test "X$HPUX_IA64_MODE" = X32; then
15267: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15268: else
15269: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15270: fi
15271: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15272: ;;
15273: hppa*64*)
15274: shrext='.sl'
15275: hardcode_into_libs=yes
15276: dynamic_linker="$host_os dld.sl"
15277: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15278: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15279: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280: soname_spec='${libname}${release}${shared_ext}$major'
15281: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15282: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15283: ;;
15284: *)
15285: shrext='.sl'
15286: dynamic_linker="$host_os dld.sl"
15287: shlibpath_var=SHLIB_PATH
15288: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15289: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290: soname_spec='${libname}${release}${shared_ext}$major'
15291: ;;
15292: esac
15293: # HP-UX runs *really* slowly unless shared libraries are mode 555.
15294: postinstall_cmds='chmod 555 $lib'
15295: ;;
15296:
15297: irix5* | irix6* | nonstopux*)
15298: case $host_os in
15299: nonstopux*) version_type=nonstopux ;;
15300: *)
15301: if test "$lt_cv_prog_gnu_ld" = yes; then
15302: version_type=linux
15303: else
15304: version_type=irix
15305: fi ;;
15306: esac
15307: need_lib_prefix=no
15308: need_version=no
15309: soname_spec='${libname}${release}${shared_ext}$major'
15310: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15311: case $host_os in
15312: irix5* | nonstopux*)
15313: libsuff= shlibsuff=
15314: ;;
15315: *)
15316: case $LD in # libtool.m4 will add one of these switches to LD
15317: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15318: libsuff= shlibsuff= libmagic=32-bit;;
15319: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15320: libsuff=32 shlibsuff=N32 libmagic=N32;;
15321: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15322: libsuff=64 shlibsuff=64 libmagic=64-bit;;
15323: *) libsuff= shlibsuff= libmagic=never-match;;
15324: esac
15325: ;;
15326: esac
15327: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15328: shlibpath_overrides_runpath=no
15329: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15330: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15331: hardcode_into_libs=yes
15332: ;;
15333:
15334: # No shared lib support for Linux oldld, aout, or coff.
15335: linux*oldld* | linux*aout* | linux*coff*)
15336: dynamic_linker=no
15337: ;;
15338:
15339: # This must be Linux ELF.
15340: linux*)
15341: version_type=linux
15342: need_lib_prefix=no
15343: need_version=no
15344: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345: soname_spec='${libname}${release}${shared_ext}$major'
15346: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15347: shlibpath_var=LD_LIBRARY_PATH
15348: shlibpath_overrides_runpath=no
15349: # This implies no fast_install, which is unacceptable.
15350: # Some rework will be needed to allow for fast_install
15351: # before this can be enabled.
15352: hardcode_into_libs=yes
15353:
15354: # We used to test for /lib/ld.so.1 and disable shared libraries on
15355: # powerpc, because MkLinux only supported shared libraries with the
15356: # GNU dynamic linker. Since this was broken with cross compilers,
15357: # most powerpc-linux boxes support dynamic linking these days and
15358: # people can always --disable-shared, the test was removed, and we
15359: # assume the GNU/Linux dynamic linker is in use.
15360: dynamic_linker='GNU/Linux ld.so'
15361: ;;
15362:
15363: netbsd*)
15364: version_type=sunos
15365: need_lib_prefix=no
15366: need_version=no
15367: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15368: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15369: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15370: dynamic_linker='NetBSD (a.out) ld.so'
15371: else
15372: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15373: soname_spec='${libname}${release}${shared_ext}$major'
15374: dynamic_linker='NetBSD ld.elf_so'
15375: fi
15376: shlibpath_var=LD_LIBRARY_PATH
15377: shlibpath_overrides_runpath=yes
15378: hardcode_into_libs=yes
15379: ;;
15380:
15381: newsos6)
15382: version_type=linux
15383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384: shlibpath_var=LD_LIBRARY_PATH
15385: shlibpath_overrides_runpath=yes
15386: ;;
15387:
15388: nto-qnx)
15389: version_type=linux
15390: need_lib_prefix=no
15391: need_version=no
15392: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393: soname_spec='${libname}${release}${shared_ext}$major'
15394: shlibpath_var=LD_LIBRARY_PATH
15395: shlibpath_overrides_runpath=yes
15396: ;;
15397:
15398: openbsd*)
15399: version_type=sunos
15400: need_lib_prefix=no
15401: need_version=no
15402: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15403: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15404: shlibpath_var=LD_LIBRARY_PATH
15405: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15406: case $host_os in
15407: openbsd2.[89] | openbsd2.[89].*)
15408: shlibpath_overrides_runpath=no
15409: ;;
15410: *)
15411: shlibpath_overrides_runpath=yes
15412: ;;
15413: esac
15414: else
15415: shlibpath_overrides_runpath=yes
15416: fi
15417: ;;
15418:
15419: os2*)
15420: libname_spec='$name'
15421: shrext=".dll"
15422: need_lib_prefix=no
15423: library_names_spec='$libname${shared_ext} $libname.a'
15424: dynamic_linker='OS/2 ld.exe'
15425: shlibpath_var=LIBPATH
15426: ;;
15427:
15428: osf3* | osf4* | osf5*)
15429: version_type=osf
15430: need_lib_prefix=no
15431: need_version=no
15432: soname_spec='${libname}${release}${shared_ext}$major'
15433: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434: shlibpath_var=LD_LIBRARY_PATH
15435: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15436: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15437: ;;
15438:
15439: sco3.2v5*)
15440: version_type=osf
15441: soname_spec='${libname}${release}${shared_ext}$major'
15442: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443: shlibpath_var=LD_LIBRARY_PATH
15444: ;;
15445:
15446: solaris*)
15447: version_type=linux
15448: need_lib_prefix=no
15449: need_version=no
15450: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451: soname_spec='${libname}${release}${shared_ext}$major'
15452: shlibpath_var=LD_LIBRARY_PATH
15453: shlibpath_overrides_runpath=yes
15454: hardcode_into_libs=yes
15455: # ldd complains unless libraries are executable
15456: postinstall_cmds='chmod +x $lib'
15457: ;;
15458:
15459: sunos4*)
15460: version_type=sunos
15461: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15462: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15463: shlibpath_var=LD_LIBRARY_PATH
15464: shlibpath_overrides_runpath=yes
15465: if test "$with_gnu_ld" = yes; then
15466: need_lib_prefix=no
15467: fi
15468: need_version=yes
15469: ;;
15470:
15471: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15472: version_type=linux
15473: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474: soname_spec='${libname}${release}${shared_ext}$major'
15475: shlibpath_var=LD_LIBRARY_PATH
15476: case $host_vendor in
15477: sni)
15478: shlibpath_overrides_runpath=no
15479: need_lib_prefix=no
15480: export_dynamic_flag_spec='${wl}-Blargedynsym'
15481: runpath_var=LD_RUN_PATH
15482: ;;
15483: siemens)
15484: need_lib_prefix=no
15485: ;;
15486: motorola)
15487: need_lib_prefix=no
15488: need_version=no
15489: shlibpath_overrides_runpath=no
15490: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15491: ;;
15492: esac
15493: ;;
15494:
15495: sysv4*MP*)
15496: if test -d /usr/nec ;then
15497: version_type=linux
15498: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15499: soname_spec='$libname${shared_ext}.$major'
15500: shlibpath_var=LD_LIBRARY_PATH
15501: fi
15502: ;;
15503:
15504: uts4*)
15505: version_type=linux
15506: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507: soname_spec='${libname}${release}${shared_ext}$major'
15508: shlibpath_var=LD_LIBRARY_PATH
15509: ;;
15510:
15511: *)
15512: dynamic_linker=no
15513: ;;
15514: esac
15515: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15516: echo "${ECHO_T}$dynamic_linker" >&6
15517: test "$dynamic_linker" = no && can_build_shared=no
15518:
15519: if test "x$enable_dlopen" != xyes; then
15520: enable_dlopen=unknown
15521: enable_dlopen_self=unknown
15522: enable_dlopen_self_static=unknown
15523: else
15524: lt_cv_dlopen=no
15525: lt_cv_dlopen_libs=
15526:
15527: case $host_os in
15528: beos*)
15529: lt_cv_dlopen="load_add_on"
15530: lt_cv_dlopen_libs=
15531: lt_cv_dlopen_self=yes
15532: ;;
15533:
15534: mingw* | pw32*)
15535: lt_cv_dlopen="LoadLibrary"
15536: lt_cv_dlopen_libs=
15537: ;;
15538:
15539: cygwin*)
15540: lt_cv_dlopen="dlopen"
15541: lt_cv_dlopen_libs=
15542: ;;
15543:
15544: darwin*)
15545: # if libdl is installed we need to link against it
15546: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15547: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15548: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15549: echo $ECHO_N "(cached) $ECHO_C" >&6
15550: else
15551: ac_check_lib_save_LIBS=$LIBS
15552: LIBS="-ldl $LIBS"
15553: cat >conftest.$ac_ext <<_ACEOF
15554: #line $LINENO "configure"
15555: /* confdefs.h. */
15556: _ACEOF
15557: cat confdefs.h >>conftest.$ac_ext
15558: cat >>conftest.$ac_ext <<_ACEOF
15559: /* end confdefs.h. */
15560:
15561: /* Override any gcc2 internal prototype to avoid an error. */
15562: #ifdef __cplusplus
15563: extern "C"
15564: #endif
15565: /* We use char because int might match the return type of a gcc2
15566: builtin and then its argument prototype would still apply. */
15567: char dlopen ();
15568: int
15569: main ()
15570: {
15571: dlopen ();
15572: ;
15573: return 0;
15574: }
15575: _ACEOF
15576: rm -f conftest.$ac_objext conftest$ac_exeext
15577: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578: (eval $ac_link) 2>&5
15579: ac_status=$?
15580: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581: (exit $ac_status); } &&
15582: { ac_try='test -s conftest$ac_exeext'
15583: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584: (eval $ac_try) 2>&5
15585: ac_status=$?
15586: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587: (exit $ac_status); }; }; then
15588: ac_cv_lib_dl_dlopen=yes
15589: else
15590: echo "$as_me: failed program was:" >&5
15591: sed 's/^/| /' conftest.$ac_ext >&5
15592:
15593: ac_cv_lib_dl_dlopen=no
15594: fi
15595: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15596: LIBS=$ac_check_lib_save_LIBS
15597: fi
15598: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15599: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15600: if test $ac_cv_lib_dl_dlopen = yes; then
15601: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15602: else
15603:
15604: lt_cv_dlopen="dyld"
15605: lt_cv_dlopen_libs=
15606: lt_cv_dlopen_self=yes
15607:
15608: fi
15609:
15610: ;;
15611:
15612: *)
15613: echo "$as_me:$LINENO: checking for shl_load" >&5
15614: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15615: if test "${ac_cv_func_shl_load+set}" = set; then
15616: echo $ECHO_N "(cached) $ECHO_C" >&6
15617: else
15618: cat >conftest.$ac_ext <<_ACEOF
15619: #line $LINENO "configure"
15620: /* confdefs.h. */
15621: _ACEOF
15622: cat confdefs.h >>conftest.$ac_ext
15623: cat >>conftest.$ac_ext <<_ACEOF
15624: /* end confdefs.h. */
15625: /* System header to define __stub macros and hopefully few prototypes,
15626: which can conflict with char shl_load (); below.
15627: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15628: <limits.h> exists even on freestanding compilers. */
15629: #ifdef __STDC__
15630: # include <limits.h>
15631: #else
15632: # include <assert.h>
15633: #endif
15634: /* Override any gcc2 internal prototype to avoid an error. */
15635: #ifdef __cplusplus
15636: extern "C"
15637: {
15638: #endif
15639: /* We use char because int might match the return type of a gcc2
15640: builtin and then its argument prototype would still apply. */
15641: char shl_load ();
15642: /* The GNU C library defines this for functions which it implements
15643: to always fail with ENOSYS. Some functions are actually named
15644: something starting with __ and the normal name is an alias. */
15645: #if defined (__stub_shl_load) || defined (__stub___shl_load)
15646: choke me
15647: #else
15648: char (*f) () = shl_load;
15649: #endif
15650: #ifdef __cplusplus
15651: }
15652: #endif
15653:
15654: int
15655: main ()
15656: {
15657: return f != shl_load;
15658: ;
15659: return 0;
15660: }
15661: _ACEOF
15662: rm -f conftest.$ac_objext conftest$ac_exeext
15663: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664: (eval $ac_link) 2>&5
15665: ac_status=$?
15666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667: (exit $ac_status); } &&
15668: { ac_try='test -s conftest$ac_exeext'
15669: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670: (eval $ac_try) 2>&5
15671: ac_status=$?
15672: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673: (exit $ac_status); }; }; then
15674: ac_cv_func_shl_load=yes
15675: else
15676: echo "$as_me: failed program was:" >&5
15677: sed 's/^/| /' conftest.$ac_ext >&5
15678:
15679: ac_cv_func_shl_load=no
15680: fi
15681: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15682: fi
15683: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15684: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15685: if test $ac_cv_func_shl_load = yes; then
15686: lt_cv_dlopen="shl_load"
15687: else
15688: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15689: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15690: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15691: echo $ECHO_N "(cached) $ECHO_C" >&6
15692: else
15693: ac_check_lib_save_LIBS=$LIBS
15694: LIBS="-ldld $LIBS"
15695: cat >conftest.$ac_ext <<_ACEOF
15696: #line $LINENO "configure"
15697: /* confdefs.h. */
15698: _ACEOF
15699: cat confdefs.h >>conftest.$ac_ext
15700: cat >>conftest.$ac_ext <<_ACEOF
15701: /* end confdefs.h. */
15702:
15703: /* Override any gcc2 internal prototype to avoid an error. */
15704: #ifdef __cplusplus
15705: extern "C"
15706: #endif
15707: /* We use char because int might match the return type of a gcc2
15708: builtin and then its argument prototype would still apply. */
15709: char shl_load ();
15710: int
15711: main ()
15712: {
15713: shl_load ();
15714: ;
15715: return 0;
15716: }
15717: _ACEOF
15718: rm -f conftest.$ac_objext conftest$ac_exeext
15719: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15720: (eval $ac_link) 2>&5
15721: ac_status=$?
15722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723: (exit $ac_status); } &&
15724: { ac_try='test -s conftest$ac_exeext'
15725: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726: (eval $ac_try) 2>&5
15727: ac_status=$?
15728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729: (exit $ac_status); }; }; then
15730: ac_cv_lib_dld_shl_load=yes
15731: else
15732: echo "$as_me: failed program was:" >&5
15733: sed 's/^/| /' conftest.$ac_ext >&5
15734:
15735: ac_cv_lib_dld_shl_load=no
15736: fi
15737: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15738: LIBS=$ac_check_lib_save_LIBS
15739: fi
15740: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15741: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15742: if test $ac_cv_lib_dld_shl_load = yes; then
15743: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15744: else
15745: echo "$as_me:$LINENO: checking for dlopen" >&5
15746: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15747: if test "${ac_cv_func_dlopen+set}" = set; then
15748: echo $ECHO_N "(cached) $ECHO_C" >&6
15749: else
15750: cat >conftest.$ac_ext <<_ACEOF
15751: #line $LINENO "configure"
15752: /* confdefs.h. */
15753: _ACEOF
15754: cat confdefs.h >>conftest.$ac_ext
15755: cat >>conftest.$ac_ext <<_ACEOF
15756: /* end confdefs.h. */
15757: /* System header to define __stub macros and hopefully few prototypes,
15758: which can conflict with char dlopen (); below.
15759: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15760: <limits.h> exists even on freestanding compilers. */
15761: #ifdef __STDC__
15762: # include <limits.h>
15763: #else
15764: # include <assert.h>
15765: #endif
15766: /* Override any gcc2 internal prototype to avoid an error. */
15767: #ifdef __cplusplus
15768: extern "C"
15769: {
15770: #endif
15771: /* We use char because int might match the return type of a gcc2
15772: builtin and then its argument prototype would still apply. */
15773: char dlopen ();
15774: /* The GNU C library defines this for functions which it implements
15775: to always fail with ENOSYS. Some functions are actually named
15776: something starting with __ and the normal name is an alias. */
15777: #if defined (__stub_dlopen) || defined (__stub___dlopen)
15778: choke me
15779: #else
15780: char (*f) () = dlopen;
15781: #endif
15782: #ifdef __cplusplus
15783: }
15784: #endif
15785:
15786: int
15787: main ()
15788: {
15789: return f != dlopen;
15790: ;
15791: return 0;
15792: }
15793: _ACEOF
15794: rm -f conftest.$ac_objext conftest$ac_exeext
15795: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796: (eval $ac_link) 2>&5
15797: ac_status=$?
15798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799: (exit $ac_status); } &&
15800: { ac_try='test -s conftest$ac_exeext'
15801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802: (eval $ac_try) 2>&5
15803: ac_status=$?
15804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805: (exit $ac_status); }; }; then
15806: ac_cv_func_dlopen=yes
15807: else
15808: echo "$as_me: failed program was:" >&5
15809: sed 's/^/| /' conftest.$ac_ext >&5
15810:
15811: ac_cv_func_dlopen=no
15812: fi
15813: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15814: fi
15815: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15816: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15817: if test $ac_cv_func_dlopen = yes; then
15818: lt_cv_dlopen="dlopen"
15819: else
15820: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15821: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15822: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15823: echo $ECHO_N "(cached) $ECHO_C" >&6
15824: else
15825: ac_check_lib_save_LIBS=$LIBS
15826: LIBS="-ldl $LIBS"
15827: cat >conftest.$ac_ext <<_ACEOF
15828: #line $LINENO "configure"
15829: /* confdefs.h. */
15830: _ACEOF
15831: cat confdefs.h >>conftest.$ac_ext
15832: cat >>conftest.$ac_ext <<_ACEOF
15833: /* end confdefs.h. */
15834:
15835: /* Override any gcc2 internal prototype to avoid an error. */
15836: #ifdef __cplusplus
15837: extern "C"
15838: #endif
15839: /* We use char because int might match the return type of a gcc2
15840: builtin and then its argument prototype would still apply. */
15841: char dlopen ();
15842: int
15843: main ()
15844: {
15845: dlopen ();
15846: ;
15847: return 0;
15848: }
15849: _ACEOF
15850: rm -f conftest.$ac_objext conftest$ac_exeext
15851: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852: (eval $ac_link) 2>&5
15853: ac_status=$?
15854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855: (exit $ac_status); } &&
15856: { ac_try='test -s conftest$ac_exeext'
15857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858: (eval $ac_try) 2>&5
15859: ac_status=$?
15860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861: (exit $ac_status); }; }; then
15862: ac_cv_lib_dl_dlopen=yes
15863: else
15864: echo "$as_me: failed program was:" >&5
15865: sed 's/^/| /' conftest.$ac_ext >&5
15866:
15867: ac_cv_lib_dl_dlopen=no
15868: fi
15869: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15870: LIBS=$ac_check_lib_save_LIBS
15871: fi
15872: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15873: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15874: if test $ac_cv_lib_dl_dlopen = yes; then
15875: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15876: else
15877: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15878: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15879: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15880: echo $ECHO_N "(cached) $ECHO_C" >&6
15881: else
15882: ac_check_lib_save_LIBS=$LIBS
15883: LIBS="-lsvld $LIBS"
15884: cat >conftest.$ac_ext <<_ACEOF
15885: #line $LINENO "configure"
15886: /* confdefs.h. */
15887: _ACEOF
15888: cat confdefs.h >>conftest.$ac_ext
15889: cat >>conftest.$ac_ext <<_ACEOF
15890: /* end confdefs.h. */
15891:
15892: /* Override any gcc2 internal prototype to avoid an error. */
15893: #ifdef __cplusplus
15894: extern "C"
15895: #endif
15896: /* We use char because int might match the return type of a gcc2
15897: builtin and then its argument prototype would still apply. */
15898: char dlopen ();
15899: int
15900: main ()
15901: {
15902: dlopen ();
15903: ;
15904: return 0;
15905: }
15906: _ACEOF
15907: rm -f conftest.$ac_objext conftest$ac_exeext
15908: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909: (eval $ac_link) 2>&5
15910: ac_status=$?
15911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912: (exit $ac_status); } &&
15913: { ac_try='test -s conftest$ac_exeext'
15914: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915: (eval $ac_try) 2>&5
15916: ac_status=$?
15917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918: (exit $ac_status); }; }; then
15919: ac_cv_lib_svld_dlopen=yes
15920: else
15921: echo "$as_me: failed program was:" >&5
15922: sed 's/^/| /' conftest.$ac_ext >&5
15923:
15924: ac_cv_lib_svld_dlopen=no
15925: fi
15926: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15927: LIBS=$ac_check_lib_save_LIBS
15928: fi
15929: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15930: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15931: if test $ac_cv_lib_svld_dlopen = yes; then
15932: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15933: else
15934: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15935: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15936: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15937: echo $ECHO_N "(cached) $ECHO_C" >&6
15938: else
15939: ac_check_lib_save_LIBS=$LIBS
15940: LIBS="-ldld $LIBS"
15941: cat >conftest.$ac_ext <<_ACEOF
15942: #line $LINENO "configure"
15943: /* confdefs.h. */
15944: _ACEOF
15945: cat confdefs.h >>conftest.$ac_ext
15946: cat >>conftest.$ac_ext <<_ACEOF
15947: /* end confdefs.h. */
15948:
15949: /* Override any gcc2 internal prototype to avoid an error. */
15950: #ifdef __cplusplus
15951: extern "C"
15952: #endif
15953: /* We use char because int might match the return type of a gcc2
15954: builtin and then its argument prototype would still apply. */
15955: char dld_link ();
15956: int
15957: main ()
15958: {
15959: dld_link ();
15960: ;
15961: return 0;
15962: }
15963: _ACEOF
15964: rm -f conftest.$ac_objext conftest$ac_exeext
15965: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966: (eval $ac_link) 2>&5
15967: ac_status=$?
15968: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969: (exit $ac_status); } &&
15970: { ac_try='test -s conftest$ac_exeext'
15971: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972: (eval $ac_try) 2>&5
15973: ac_status=$?
15974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975: (exit $ac_status); }; }; then
15976: ac_cv_lib_dld_dld_link=yes
15977: else
15978: echo "$as_me: failed program was:" >&5
15979: sed 's/^/| /' conftest.$ac_ext >&5
15980:
15981: ac_cv_lib_dld_dld_link=no
15982: fi
15983: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15984: LIBS=$ac_check_lib_save_LIBS
15985: fi
15986: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15987: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15988: if test $ac_cv_lib_dld_dld_link = yes; then
15989: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15990: fi
15991:
15992:
15993: fi
15994:
15995:
15996: fi
15997:
15998:
15999: fi
16000:
16001:
16002: fi
16003:
16004:
16005: fi
16006:
16007: ;;
16008: esac
16009:
16010: if test "x$lt_cv_dlopen" != xno; then
16011: enable_dlopen=yes
16012: else
16013: enable_dlopen=no
16014: fi
16015:
16016: case $lt_cv_dlopen in
16017: dlopen)
16018: save_CPPFLAGS="$CPPFLAGS"
16019: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16020:
16021: save_LDFLAGS="$LDFLAGS"
16022: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16023:
16024: save_LIBS="$LIBS"
16025: LIBS="$lt_cv_dlopen_libs $LIBS"
16026:
16027: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16028: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16029: if test "${lt_cv_dlopen_self+set}" = set; then
16030: echo $ECHO_N "(cached) $ECHO_C" >&6
16031: else
16032: if test "$cross_compiling" = yes; then :
16033: lt_cv_dlopen_self=cross
16034: else
16035: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16036: lt_status=$lt_dlunknown
16037: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 16038: #line 16038 "configure"
1.1 root 16039: #include "confdefs.h"
16040:
16041: #if HAVE_DLFCN_H
16042: #include <dlfcn.h>
16043: #endif
16044:
16045: #include <stdio.h>
16046:
16047: #ifdef RTLD_GLOBAL
16048: # define LT_DLGLOBAL RTLD_GLOBAL
16049: #else
16050: # ifdef DL_GLOBAL
16051: # define LT_DLGLOBAL DL_GLOBAL
16052: # else
16053: # define LT_DLGLOBAL 0
16054: # endif
16055: #endif
16056:
16057: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16058: find out it does not work in some platform. */
16059: #ifndef LT_DLLAZY_OR_NOW
16060: # ifdef RTLD_LAZY
16061: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16062: # else
16063: # ifdef DL_LAZY
16064: # define LT_DLLAZY_OR_NOW DL_LAZY
16065: # else
16066: # ifdef RTLD_NOW
16067: # define LT_DLLAZY_OR_NOW RTLD_NOW
16068: # else
16069: # ifdef DL_NOW
16070: # define LT_DLLAZY_OR_NOW DL_NOW
16071: # else
16072: # define LT_DLLAZY_OR_NOW 0
16073: # endif
16074: # endif
16075: # endif
16076: # endif
16077: #endif
16078:
16079: #ifdef __cplusplus
16080: extern "C" void exit (int);
16081: #endif
16082:
16083: void fnord() { int i=42;}
16084: int main ()
16085: {
16086: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16087: int status = $lt_dlunknown;
16088:
16089: if (self)
16090: {
16091: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16092: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16093: /* dlclose (self); */
16094: }
16095:
16096: exit (status);
16097: }
16098: EOF
16099: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100: (eval $ac_link) 2>&5
16101: ac_status=$?
16102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16104: (./conftest; exit; ) 2>/dev/null
16105: lt_status=$?
16106: case x$lt_status in
16107: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16108: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16109: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16110: esac
16111: else :
16112: # compilation failed
16113: lt_cv_dlopen_self=no
16114: fi
16115: fi
16116: rm -fr conftest*
16117:
16118:
16119: fi
16120: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16121: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16122:
16123: if test "x$lt_cv_dlopen_self" = xyes; then
16124: LDFLAGS="$LDFLAGS $link_static_flag"
16125: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16126: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16127: if test "${lt_cv_dlopen_self_static+set}" = set; then
16128: echo $ECHO_N "(cached) $ECHO_C" >&6
16129: else
16130: if test "$cross_compiling" = yes; then :
16131: lt_cv_dlopen_self_static=cross
16132: else
16133: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16134: lt_status=$lt_dlunknown
16135: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 16136: #line 16136 "configure"
1.1 root 16137: #include "confdefs.h"
16138:
16139: #if HAVE_DLFCN_H
16140: #include <dlfcn.h>
16141: #endif
16142:
16143: #include <stdio.h>
16144:
16145: #ifdef RTLD_GLOBAL
16146: # define LT_DLGLOBAL RTLD_GLOBAL
16147: #else
16148: # ifdef DL_GLOBAL
16149: # define LT_DLGLOBAL DL_GLOBAL
16150: # else
16151: # define LT_DLGLOBAL 0
16152: # endif
16153: #endif
16154:
16155: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16156: find out it does not work in some platform. */
16157: #ifndef LT_DLLAZY_OR_NOW
16158: # ifdef RTLD_LAZY
16159: # define LT_DLLAZY_OR_NOW RTLD_LAZY
16160: # else
16161: # ifdef DL_LAZY
16162: # define LT_DLLAZY_OR_NOW DL_LAZY
16163: # else
16164: # ifdef RTLD_NOW
16165: # define LT_DLLAZY_OR_NOW RTLD_NOW
16166: # else
16167: # ifdef DL_NOW
16168: # define LT_DLLAZY_OR_NOW DL_NOW
16169: # else
16170: # define LT_DLLAZY_OR_NOW 0
16171: # endif
16172: # endif
16173: # endif
16174: # endif
16175: #endif
16176:
16177: #ifdef __cplusplus
16178: extern "C" void exit (int);
16179: #endif
16180:
16181: void fnord() { int i=42;}
16182: int main ()
16183: {
16184: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16185: int status = $lt_dlunknown;
16186:
16187: if (self)
16188: {
16189: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16190: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16191: /* dlclose (self); */
16192: }
16193:
16194: exit (status);
16195: }
16196: EOF
16197: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16198: (eval $ac_link) 2>&5
16199: ac_status=$?
16200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16202: (./conftest; exit; ) 2>/dev/null
16203: lt_status=$?
16204: case x$lt_status in
16205: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16206: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16207: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16208: esac
16209: else :
16210: # compilation failed
16211: lt_cv_dlopen_self_static=no
16212: fi
16213: fi
16214: rm -fr conftest*
16215:
16216:
16217: fi
16218: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16219: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16220: fi
16221:
16222: CPPFLAGS="$save_CPPFLAGS"
16223: LDFLAGS="$save_LDFLAGS"
16224: LIBS="$save_LIBS"
16225: ;;
16226: esac
16227:
16228: case $lt_cv_dlopen_self in
16229: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16230: *) enable_dlopen_self=unknown ;;
16231: esac
16232:
16233: case $lt_cv_dlopen_self_static in
16234: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16235: *) enable_dlopen_self_static=unknown ;;
16236: esac
16237: fi
16238:
16239:
16240: # Report which librarie types wil actually be built
16241: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16242: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16243: echo "$as_me:$LINENO: result: $can_build_shared" >&5
16244: echo "${ECHO_T}$can_build_shared" >&6
16245:
16246: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16247: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16248: test "$can_build_shared" = "no" && enable_shared=no
16249:
16250: # On AIX, shared libraries and static libraries use the same namespace, and
16251: # are all built from PIC.
16252: case "$host_os" in
16253: aix3*)
16254: test "$enable_shared" = yes && enable_static=no
16255: if test -n "$RANLIB"; then
16256: archive_cmds="$archive_cmds~\$RANLIB \$lib"
16257: postinstall_cmds='$RANLIB $lib'
16258: fi
16259: ;;
16260:
16261: aix4*)
16262: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16263: test "$enable_shared" = yes && enable_static=no
16264: fi
16265: ;;
16266: darwin* | rhapsody*)
16267: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16268: archive_cmds_need_lc=no
16269: case "$host_os" in
16270: rhapsody* | darwin1.[012])
16271: allow_undefined_flag='-undefined suppress'
16272: ;;
16273: *) # Darwin 1.3 on
16274: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
16275: ;;
16276: esac
16277: # FIXME: Relying on posixy $() will cause problems for
16278: # cross-compilation, but unfortunately the echo tests do not
16279: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
16280: # `"' quotes if we put them in here... so don't!
16281: output_verbose_link_cmd='echo'
16282: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
16283: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16284: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16285: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16286: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16287: hardcode_direct=no
16288: hardcode_automatic=yes
16289: hardcode_shlibpath_var=unsupported
16290: whole_archive_flag_spec='-all_load $convenience'
16291: link_all_deplibs=yes
16292: fi
16293: ;;
16294: esac
16295: echo "$as_me:$LINENO: result: $enable_shared" >&5
16296: echo "${ECHO_T}$enable_shared" >&6
16297:
16298: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16299: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16300: # Make sure either enable_shared or enable_static is yes.
16301: test "$enable_shared" = yes || enable_static=yes
16302: echo "$as_me:$LINENO: result: $enable_static" >&5
16303: echo "${ECHO_T}$enable_static" >&6
16304:
16305: # The else clause should only fire when bootstrapping the
16306: # libtool distribution, otherwise you forgot to ship ltmain.sh
16307: # with your package, and you will get complaints that there are
16308: # no rules to generate ltmain.sh.
16309: if test -f "$ltmain"; then
16310: # See if we are running on zsh, and set the options which allow our commands through
16311: # without removal of \ escapes.
16312: if test -n "${ZSH_VERSION+set}" ; then
16313: setopt NO_GLOB_SUBST
16314: fi
16315: # Now quote all the things that may contain metacharacters while being
16316: # careful not to overquote the AC_SUBSTed values. We take copies of the
16317: # variables and quote the copies for generation of the libtool script.
16318: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16319: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321: deplibs_check_method reload_flag reload_cmds need_locks \
16322: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323: lt_cv_sys_global_symbol_to_c_name_address \
16324: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325: old_postinstall_cmds old_postuninstall_cmds \
16326: compiler \
16327: CC \
16328: LD \
16329: lt_prog_compiler_wl \
16330: lt_prog_compiler_pic \
16331: lt_prog_compiler_static \
16332: lt_prog_compiler_no_builtin_flag \
16333: export_dynamic_flag_spec \
16334: thread_safe_flag_spec \
16335: whole_archive_flag_spec \
16336: enable_shared_with_static_runtimes \
16337: old_archive_cmds \
16338: old_archive_from_new_cmds \
16339: predep_objects \
16340: postdep_objects \
16341: predeps \
16342: postdeps \
16343: compiler_lib_search_path \
16344: archive_cmds \
16345: archive_expsym_cmds \
16346: postinstall_cmds \
16347: postuninstall_cmds \
16348: old_archive_from_expsyms_cmds \
16349: allow_undefined_flag \
16350: no_undefined_flag \
16351: export_symbols_cmds \
16352: hardcode_libdir_flag_spec \
16353: hardcode_libdir_flag_spec_ld \
16354: hardcode_libdir_separator \
16355: hardcode_automatic \
16356: module_cmds \
16357: module_expsym_cmds \
16358: lt_cv_prog_compiler_c_o \
16359: exclude_expsyms \
16360: include_expsyms; do
16361:
16362: case $var in
16363: old_archive_cmds | \
16364: old_archive_from_new_cmds | \
16365: archive_cmds | \
16366: archive_expsym_cmds | \
16367: module_cmds | \
16368: module_expsym_cmds | \
16369: old_archive_from_expsyms_cmds | \
16370: export_symbols_cmds | \
16371: extract_expsyms_cmds | reload_cmds | finish_cmds | \
16372: postinstall_cmds | postuninstall_cmds | \
16373: old_postinstall_cmds | old_postuninstall_cmds | \
16374: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16375: # Double-quote double-evaled strings.
16376: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16377: ;;
16378: *)
16379: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16380: ;;
16381: esac
16382: done
16383:
16384: case $lt_echo in
16385: *'\$0 --fallback-echo"')
16386: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16387: ;;
16388: esac
16389:
16390: cfgfile="${ofile}T"
16391: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16392: $rm -f "$cfgfile"
16393: { echo "$as_me:$LINENO: creating $ofile" >&5
16394: echo "$as_me: creating $ofile" >&6;}
16395:
16396: cat <<__EOF__ >> "$cfgfile"
16397: #! $SHELL
16398:
16399: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16400: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16401: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16402: #
16403: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16404: # Free Software Foundation, Inc.
16405: #
16406: # This file is part of GNU Libtool:
16407: # Originally by Gordon Matzigkeit <[email protected]>, 1996
16408: #
16409: # This program is free software; you can redistribute it and/or modify
16410: # it under the terms of the GNU General Public License as published by
16411: # the Free Software Foundation; either version 2 of the License, or
16412: # (at your option) any later version.
16413: #
16414: # This program is distributed in the hope that it will be useful, but
16415: # WITHOUT ANY WARRANTY; without even the implied warranty of
16416: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16417: # General Public License for more details.
16418: #
16419: # You should have received a copy of the GNU General Public License
16420: # along with this program; if not, write to the Free Software
16421: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16422: #
16423: # As a special exception to the GNU General Public License, if you
16424: # distribute this file as part of a program that contains a
16425: # configuration script generated by Autoconf, you may include it under
16426: # the same distribution terms that you use for the rest of that program.
16427:
16428: # A sed program that does not truncate output.
16429: SED=$lt_SED
16430:
16431: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16432: Xsed="$SED -e s/^X//"
16433:
16434: # The HP-UX ksh and POSIX shell print the target directory to stdout
16435: # if CDPATH is set.
16436: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
16437:
16438: # The names of the tagged configurations supported by this script.
16439: available_tags=
16440:
16441: # ### BEGIN LIBTOOL CONFIG
16442:
16443: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16444:
16445: # Shell to use when invoking shell scripts.
16446: SHELL=$lt_SHELL
16447:
16448: # Whether or not to build shared libraries.
16449: build_libtool_libs=$enable_shared
16450:
16451: # Whether or not to build static libraries.
16452: build_old_libs=$enable_static
16453:
16454: # Whether or not to add -lc for building shared libraries.
16455: build_libtool_need_lc=$archive_cmds_need_lc
16456:
16457: # Whether or not to disallow shared libs when runtime libs are static
16458: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16459:
16460: # Whether or not to optimize for fast installation.
16461: fast_install=$enable_fast_install
16462:
16463: # The host system.
16464: host_alias=$host_alias
16465: host=$host
16466:
16467: # An echo program that does not interpret backslashes.
16468: echo=$lt_echo
16469:
16470: # The archiver.
16471: AR=$lt_AR
16472: AR_FLAGS=$lt_AR_FLAGS
16473:
16474: # A C compiler.
16475: LTCC=$lt_LTCC
16476:
16477: # A language-specific compiler.
16478: CC=$lt_compiler
16479:
16480: # Is the compiler the GNU C compiler?
16481: with_gcc=$GCC
16482:
16483: # An ERE matcher.
16484: EGREP=$lt_EGREP
16485:
16486: # The linker used to build libraries.
16487: LD=$lt_LD
16488:
16489: # Whether we need hard or soft links.
16490: LN_S=$lt_LN_S
16491:
16492: # A BSD-compatible nm program.
16493: NM=$lt_NM
16494:
16495: # A symbol stripping program
16496: STRIP=$STRIP
16497:
16498: # Used to examine libraries when file_magic_cmd begins "file"
16499: MAGIC_CMD=$MAGIC_CMD
16500:
16501: # Used on cygwin: DLL creation program.
16502: DLLTOOL="$DLLTOOL"
16503:
16504: # Used on cygwin: object dumper.
16505: OBJDUMP="$OBJDUMP"
16506:
16507: # Used on cygwin: assembler.
16508: AS="$AS"
16509:
16510: # The name of the directory that contains temporary libtool files.
16511: objdir=$objdir
16512:
16513: # How to create reloadable object files.
16514: reload_flag=$lt_reload_flag
16515: reload_cmds=$lt_reload_cmds
16516:
16517: # How to pass a linker flag through the compiler.
16518: wl=$lt_lt_prog_compiler_wl
16519:
16520: # Object file suffix (normally "o").
16521: objext="$ac_objext"
16522:
16523: # Old archive suffix (normally "a").
16524: libext="$libext"
16525:
16526: # Shared library suffix (normally ".so").
16527: shrext='$shrext'
16528:
16529: # Executable file suffix (normally "").
16530: exeext="$exeext"
16531:
16532: # Additional compiler flags for building library objects.
16533: pic_flag=$lt_lt_prog_compiler_pic
16534: pic_mode=$pic_mode
16535:
16536: # What is the maximum length of a command?
16537: max_cmd_len=$lt_cv_sys_max_cmd_len
16538:
16539: # Does compiler simultaneously support -c and -o options?
16540: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16541:
16542: # Must we lock files when doing compilation ?
16543: need_locks=$lt_need_locks
16544:
16545: # Do we need the lib prefix for modules?
16546: need_lib_prefix=$need_lib_prefix
16547:
16548: # Do we need a version for libraries?
16549: need_version=$need_version
16550:
16551: # Whether dlopen is supported.
16552: dlopen_support=$enable_dlopen
16553:
16554: # Whether dlopen of programs is supported.
16555: dlopen_self=$enable_dlopen_self
16556:
16557: # Whether dlopen of statically linked programs is supported.
16558: dlopen_self_static=$enable_dlopen_self_static
16559:
16560: # Compiler flag to prevent dynamic linking.
16561: link_static_flag=$lt_lt_prog_compiler_static
16562:
16563: # Compiler flag to turn off builtin functions.
16564: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16565:
16566: # Compiler flag to allow reflexive dlopens.
16567: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16568:
16569: # Compiler flag to generate shared objects directly from archives.
16570: whole_archive_flag_spec=$lt_whole_archive_flag_spec
16571:
16572: # Compiler flag to generate thread-safe objects.
16573: thread_safe_flag_spec=$lt_thread_safe_flag_spec
16574:
16575: # Library versioning type.
16576: version_type=$version_type
16577:
16578: # Format of library name prefix.
16579: libname_spec=$lt_libname_spec
16580:
16581: # List of archive names. First name is the real one, the rest are links.
16582: # The last name is the one that the linker finds with -lNAME.
16583: library_names_spec=$lt_library_names_spec
16584:
16585: # The coded name of the library, if different from the real name.
16586: soname_spec=$lt_soname_spec
16587:
16588: # Commands used to build and install an old-style archive.
16589: RANLIB=$lt_RANLIB
16590: old_archive_cmds=$lt_old_archive_cmds
16591: old_postinstall_cmds=$lt_old_postinstall_cmds
16592: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16593:
16594: # Create an old-style archive from a shared archive.
16595: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16596:
16597: # Create a temporary old-style archive to link instead of a shared archive.
16598: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16599:
16600: # Commands used to build and install a shared archive.
16601: archive_cmds=$lt_archive_cmds
16602: archive_expsym_cmds=$lt_archive_expsym_cmds
16603: postinstall_cmds=$lt_postinstall_cmds
16604: postuninstall_cmds=$lt_postuninstall_cmds
16605:
16606: # Commands used to build a loadable module (assumed same as above if empty)
16607: module_cmds=$lt_module_cmds
16608: module_expsym_cmds=$lt_module_expsym_cmds
16609:
16610: # Commands to strip libraries.
16611: old_striplib=$lt_old_striplib
16612: striplib=$lt_striplib
16613:
16614: # Dependencies to place before the objects being linked to create a
16615: # shared library.
16616: predep_objects=$lt_predep_objects
16617:
16618: # Dependencies to place after the objects being linked to create a
16619: # shared library.
16620: postdep_objects=$lt_postdep_objects
16621:
16622: # Dependencies to place before the objects being linked to create a
16623: # shared library.
16624: predeps=$lt_predeps
16625:
16626: # Dependencies to place after the objects being linked to create a
16627: # shared library.
16628: postdeps=$lt_postdeps
16629:
16630: # The library search path used internally by the compiler when linking
16631: # a shared library.
16632: compiler_lib_search_path=$lt_compiler_lib_search_path
16633:
16634: # Method to check whether dependent libraries are shared objects.
16635: deplibs_check_method=$lt_deplibs_check_method
16636:
16637: # Command to use when deplibs_check_method == file_magic.
16638: file_magic_cmd=$lt_file_magic_cmd
16639:
16640: # Flag that allows shared libraries with undefined symbols to be built.
16641: allow_undefined_flag=$lt_allow_undefined_flag
16642:
16643: # Flag that forces no undefined symbols.
16644: no_undefined_flag=$lt_no_undefined_flag
16645:
16646: # Commands used to finish a libtool library installation in a directory.
16647: finish_cmds=$lt_finish_cmds
16648:
16649: # Same as above, but a single script fragment to be evaled but not shown.
16650: finish_eval=$lt_finish_eval
16651:
16652: # Take the output of nm and produce a listing of raw symbols and C names.
16653: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16654:
16655: # Transform the output of nm in a proper C declaration
16656: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16657:
16658: # Transform the output of nm in a C name address pair
16659: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16660:
16661: # This is the shared library runtime path variable.
16662: runpath_var=$runpath_var
16663:
16664: # This is the shared library path variable.
16665: shlibpath_var=$shlibpath_var
16666:
16667: # Is shlibpath searched before the hard-coded library search path?
16668: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16669:
16670: # How to hardcode a shared library path into an executable.
16671: hardcode_action=$hardcode_action
16672:
16673: # Whether we should hardcode library paths into libraries.
16674: hardcode_into_libs=$hardcode_into_libs
16675:
16676: # Flag to hardcode \$libdir into a binary during linking.
16677: # This must work even if \$libdir does not exist.
16678: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16679:
16680: # If ld is used when linking, flag to hardcode \$libdir into
16681: # a binary during linking. This must work even if \$libdir does
16682: # not exist.
16683: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16684:
16685: # Whether we need a single -rpath flag with a separated argument.
16686: hardcode_libdir_separator=$lt_hardcode_libdir_separator
16687:
16688: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16689: # resulting binary.
16690: hardcode_direct=$hardcode_direct
16691:
16692: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16693: # resulting binary.
16694: hardcode_minus_L=$hardcode_minus_L
16695:
16696: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16697: # the resulting binary.
16698: hardcode_shlibpath_var=$hardcode_shlibpath_var
16699:
16700: # Set to yes if building a shared library automatically hardcodes DIR into the library
16701: # and all subsequent libraries and executables linked against it.
16702: hardcode_automatic=$hardcode_automatic
16703:
16704: # Variables whose values should be saved in libtool wrapper scripts and
16705: # restored at relink time.
16706: variables_saved_for_relink="$variables_saved_for_relink"
16707:
16708: # Whether libtool must link a program against all its dependency libraries.
16709: link_all_deplibs=$link_all_deplibs
16710:
16711: # Compile-time system search path for libraries
16712: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16713:
16714: # Run-time system search path for libraries
16715: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16716:
16717: # Fix the shell variable \$srcfile for the compiler.
16718: fix_srcfile_path="$fix_srcfile_path"
16719:
16720: # Set to yes if exported symbols are required.
16721: always_export_symbols=$always_export_symbols
16722:
16723: # The commands to list exported symbols.
16724: export_symbols_cmds=$lt_export_symbols_cmds
16725:
16726: # The commands to extract the exported symbol list from a shared archive.
16727: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16728:
16729: # Symbols that should not be listed in the preloaded symbols.
16730: exclude_expsyms=$lt_exclude_expsyms
16731:
16732: # Symbols that must always be exported.
16733: include_expsyms=$lt_include_expsyms
16734:
16735: # ### END LIBTOOL CONFIG
16736:
16737: __EOF__
16738:
16739:
16740: case $host_os in
16741: aix3*)
16742: cat <<\EOF >> "$cfgfile"
16743:
16744: # AIX sometimes has problems with the GCC collect2 program. For some
16745: # reason, if we set the COLLECT_NAMES environment variable, the problems
16746: # vanish in a puff of smoke.
16747: if test "X${COLLECT_NAMES+set}" != Xset; then
16748: COLLECT_NAMES=
16749: export COLLECT_NAMES
16750: fi
16751: EOF
16752: ;;
16753: esac
16754:
16755: # We use sed instead of cat because bash on DJGPP gets confused if
16756: # if finds mixed CR/LF and LF-only lines. Since sed operates in
16757: # text mode, it properly converts lines to CR/LF. This bash problem
16758: # is reportedly fixed, but why not run on old versions too?
16759: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16760:
16761: mv -f "$cfgfile" "$ofile" || \
16762: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16763: chmod +x "$ofile"
16764:
16765: else
16766: # If there is no Makefile yet, we rely on a make rule to execute
16767: # `config.status --recheck' to rerun these tests and create the
16768: # libtool script then.
16769: test -f Makefile && make "$ltmain"
16770: fi
16771:
16772:
16773: ac_ext=c
16774: ac_cpp='$CPP $CPPFLAGS'
16775: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16776: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16777: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16778:
16779: CC="$lt_save_CC"
16780:
16781:
16782: # Check whether --with-tags or --without-tags was given.
16783: if test "${with_tags+set}" = set; then
16784: withval="$with_tags"
16785: tagnames="$withval"
16786: fi;
16787:
16788: if test -f "$ltmain" && test -n "$tagnames"; then
16789: if test ! -f "${ofile}"; then
16790: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16791: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16792: fi
16793:
16794: if test -z "$LTCC"; then
16795: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16796: if test -z "$LTCC"; then
16797: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16798: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16799: else
16800: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16801: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16802: fi
16803: fi
16804:
16805: # Extract list of available tagged configurations in $ofile.
16806: # Note that this assumes the entire list is on one line.
16807: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16808:
16809: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16810: for tagname in $tagnames; do
16811: IFS="$lt_save_ifs"
16812: # Check whether tagname contains only valid characters
16813: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16814: "") ;;
16815: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16816: echo "$as_me: error: invalid tag name: $tagname" >&2;}
16817: { (exit 1); exit 1; }; }
16818: ;;
16819: esac
16820:
16821: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16822: then
16823: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16824: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16825: { (exit 1); exit 1; }; }
16826: fi
16827:
16828: # Update the list of available tags.
16829: if test -n "$tagname"; then
16830: echo appending configuration tag \"$tagname\" to $ofile
16831:
16832: case $tagname in
16833: CXX)
16834: if test -n "$CXX" && test "X$CXX" != "Xno"; then
16835: ac_ext=cc
16836: ac_cpp='$CXXCPP $CPPFLAGS'
16837: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16838: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16839: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16840:
16841:
16842:
16843:
16844: archive_cmds_need_lc_CXX=no
16845: allow_undefined_flag_CXX=
16846: always_export_symbols_CXX=no
16847: archive_expsym_cmds_CXX=
16848: export_dynamic_flag_spec_CXX=
16849: hardcode_direct_CXX=no
16850: hardcode_libdir_flag_spec_CXX=
16851: hardcode_libdir_flag_spec_ld_CXX=
16852: hardcode_libdir_separator_CXX=
16853: hardcode_minus_L_CXX=no
16854: hardcode_automatic_CXX=no
16855: module_cmds_CXX=
16856: module_expsym_cmds_CXX=
16857: link_all_deplibs_CXX=unknown
16858: old_archive_cmds_CXX=$old_archive_cmds
16859: no_undefined_flag_CXX=
16860: whole_archive_flag_spec_CXX=
16861: enable_shared_with_static_runtimes_CXX=no
16862:
16863: # Dependencies to place before and after the object being linked:
16864: predep_objects_CXX=
16865: postdep_objects_CXX=
16866: predeps_CXX=
16867: postdeps_CXX=
16868: compiler_lib_search_path_CXX=
16869:
16870: # Source file extension for C++ test sources.
16871: ac_ext=cc
16872:
16873: # Object file extension for compiled C++ test sources.
16874: objext=o
16875: objext_CXX=$objext
16876:
16877: # Code to be used in simple compile tests
16878: lt_simple_compile_test_code="int some_variable = 0;\n"
16879:
16880: # Code to be used in simple link tests
16881: lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16882:
16883: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16884:
16885: # If no C compiler was specified, use CC.
16886: LTCC=${LTCC-"$CC"}
16887:
16888: # Allow CC to be a program name with arguments.
16889: compiler=$CC
16890:
16891:
16892: # Allow CC to be a program name with arguments.
16893: lt_save_CC=$CC
16894: lt_save_LD=$LD
16895: lt_save_GCC=$GCC
16896: GCC=$GXX
16897: lt_save_with_gnu_ld=$with_gnu_ld
16898: lt_save_path_LD=$lt_cv_path_LD
16899: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16900: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16901: else
16902: unset lt_cv_prog_gnu_ld
16903: fi
16904: if test -n "${lt_cv_path_LDCXX+set}"; then
16905: lt_cv_path_LD=$lt_cv_path_LDCXX
16906: else
16907: unset lt_cv_path_LD
16908: fi
16909: test -z "${LDCXX+set}" || LD=$LDCXX
16910: CC=${CXX-"c++"}
16911: compiler=$CC
16912: compiler_CXX=$CC
16913: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16914:
16915: # We don't want -fno-exception wen compiling C++ code, so set the
16916: # no_builtin_flag separately
16917: if test "$GXX" = yes; then
16918: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16919: else
16920: lt_prog_compiler_no_builtin_flag_CXX=
16921: fi
16922:
16923: if test "$GXX" = yes; then
16924: # Set up default GNU C++ configuration
16925:
16926:
16927: # Check whether --with-gnu-ld or --without-gnu-ld was given.
16928: if test "${with_gnu_ld+set}" = set; then
16929: withval="$with_gnu_ld"
16930: test "$withval" = no || with_gnu_ld=yes
16931: else
16932: with_gnu_ld=no
16933: fi;
16934: ac_prog=ld
16935: if test "$GCC" = yes; then
16936: # Check if gcc -print-prog-name=ld gives a path.
16937: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16938: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16939: case $host in
16940: *-*-mingw*)
16941: # gcc leaves a trailing carriage return which upsets mingw
16942: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16943: *)
16944: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16945: esac
16946: case $ac_prog in
16947: # Accept absolute paths.
16948: [\\/]* | ?:[\\/]*)
16949: re_direlt='/[^/][^/]*/\.\./'
16950: # Canonicalize the path of ld
16951: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16952: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16953: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16954: done
16955: test -z "$LD" && LD="$ac_prog"
16956: ;;
16957: "")
16958: # If it fails, then pretend we aren't using GCC.
16959: ac_prog=ld
16960: ;;
16961: *)
16962: # If it is relative, then search for the first ld in PATH.
16963: with_gnu_ld=unknown
16964: ;;
16965: esac
16966: elif test "$with_gnu_ld" = yes; then
16967: echo "$as_me:$LINENO: checking for GNU ld" >&5
16968: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16969: else
16970: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16971: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16972: fi
16973: if test "${lt_cv_path_LD+set}" = set; then
16974: echo $ECHO_N "(cached) $ECHO_C" >&6
16975: else
16976: if test -z "$LD"; then
16977: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16978: for ac_dir in $PATH; do
16979: IFS="$lt_save_ifs"
16980: test -z "$ac_dir" && ac_dir=.
16981: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16982: lt_cv_path_LD="$ac_dir/$ac_prog"
16983: # Check to see if the program is GNU ld. I'd rather use --version,
16984: # but apparently some GNU ld's only accept -v.
16985: # Break only if it was the GNU/non-GNU ld that we prefer.
16986: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16987: *GNU* | *'with BFD'*)
16988: test "$with_gnu_ld" != no && break
16989: ;;
16990: *)
16991: test "$with_gnu_ld" != yes && break
16992: ;;
16993: esac
16994: fi
16995: done
16996: IFS="$lt_save_ifs"
16997: else
16998: lt_cv_path_LD="$LD" # Let the user override the test with a path.
16999: fi
17000: fi
17001:
17002: LD="$lt_cv_path_LD"
17003: if test -n "$LD"; then
17004: echo "$as_me:$LINENO: result: $LD" >&5
17005: echo "${ECHO_T}$LD" >&6
17006: else
17007: echo "$as_me:$LINENO: result: no" >&5
17008: echo "${ECHO_T}no" >&6
17009: fi
17010: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17011: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17012: { (exit 1); exit 1; }; }
17013: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17014: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17015: if test "${lt_cv_prog_gnu_ld+set}" = set; then
17016: echo $ECHO_N "(cached) $ECHO_C" >&6
17017: else
17018: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17019: case `"$LD" -v 2>&1 </dev/null` in
17020: *GNU* | *'with BFD'*)
17021: lt_cv_prog_gnu_ld=yes
17022: ;;
17023: *)
17024: lt_cv_prog_gnu_ld=no
17025: ;;
17026: esac
17027: fi
17028: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17029: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17030: with_gnu_ld=$lt_cv_prog_gnu_ld
17031:
17032:
17033:
17034: # Check if GNU C++ uses GNU ld as the underlying linker, since the
17035: # archiving commands below assume that GNU ld is being used.
17036: if test "$with_gnu_ld" = yes; then
17037: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17038: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17039:
17040: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17041: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17042:
17043: # If archive_cmds runs LD, not CC, wlarc should be empty
17044: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17045: # investigate it a little bit more. (MM)
17046: wlarc='${wl}'
17047:
17048: # ancient GNU ld didn't support --whole-archive et. al.
17049: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17050: grep 'no-whole-archive' > /dev/null; then
17051: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17052: else
17053: whole_archive_flag_spec_CXX=
17054: fi
17055: else
17056: with_gnu_ld=no
17057: wlarc=
17058:
17059: # A generic and very simple default shared library creation
17060: # command for GNU C++ for the case where it uses the native
17061: # linker, instead of GNU ld. If possible, this setting should
17062: # overridden to take advantage of the native linker features on
17063: # the platform it is being used on.
17064: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17065: fi
17066:
17067: # Commands to make compiler produce verbose output that lists
17068: # what "hidden" libraries, object files and flags are used when
17069: # linking a shared library.
17070: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17071:
17072: else
17073: GXX=no
17074: with_gnu_ld=no
17075: wlarc=
17076: fi
17077:
17078: # PORTME: fill in a description of your system's C++ link characteristics
17079: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17080: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17081: ld_shlibs_CXX=yes
17082: case $host_os in
17083: aix3*)
17084: # FIXME: insert proper C++ library support
17085: ld_shlibs_CXX=no
17086: ;;
17087: aix4* | aix5*)
17088: if test "$host_cpu" = ia64; then
17089: # On IA64, the linker does run time linking by default, so we don't
17090: # have to do anything special.
17091: aix_use_runtimelinking=no
17092: exp_sym_flag='-Bexport'
17093: no_entry_flag=""
17094: else
17095: aix_use_runtimelinking=no
17096:
17097: # Test if we are trying to use run time linking or normal
17098: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17099: # need to do runtime linking.
17100: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17101: for ld_flag in $LDFLAGS; do
17102: case $ld_flag in
17103: *-brtl*)
17104: aix_use_runtimelinking=yes
17105: break
17106: ;;
17107: esac
17108: done
17109: esac
17110:
17111: exp_sym_flag='-bexport'
17112: no_entry_flag='-bnoentry'
17113: fi
17114:
17115: # When large executables or shared objects are built, AIX ld can
17116: # have problems creating the table of contents. If linking a library
17117: # or program results in "error TOC overflow" add -mminimal-toc to
17118: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17119: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17120:
17121: archive_cmds_CXX=''
17122: hardcode_direct_CXX=yes
17123: hardcode_libdir_separator_CXX=':'
17124: link_all_deplibs_CXX=yes
17125:
17126: if test "$GXX" = yes; then
17127: case $host_os in aix4.012|aix4.012.*)
17128: # We only want to do this on AIX 4.2 and lower, the check
17129: # below for broken collect2 doesn't work under 4.3+
17130: collect2name=`${CC} -print-prog-name=collect2`
17131: if test -f "$collect2name" && \
17132: strings "$collect2name" | grep resolve_lib_name >/dev/null
17133: then
17134: # We have reworked collect2
17135: hardcode_direct_CXX=yes
17136: else
17137: # We have old collect2
17138: hardcode_direct_CXX=unsupported
17139: # It fails to find uninstalled libraries when the uninstalled
17140: # path is not listed in the libpath. Setting hardcode_minus_L
17141: # to unsupported forces relinking
17142: hardcode_minus_L_CXX=yes
17143: hardcode_libdir_flag_spec_CXX='-L$libdir'
17144: hardcode_libdir_separator_CXX=
17145: fi
17146: esac
17147: shared_flag='-shared'
17148: else
17149: # not using gcc
17150: if test "$host_cpu" = ia64; then
17151: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17152: # chokes on -Wl,-G. The following line is correct:
17153: shared_flag='-G'
17154: else
17155: if test "$aix_use_runtimelinking" = yes; then
17156: shared_flag='${wl}-G'
17157: else
17158: shared_flag='${wl}-bM:SRE'
17159: fi
17160: fi
17161: fi
17162:
17163: # It seems that -bexpall does not export symbols beginning with
17164: # underscore (_), so it is better to generate a list of symbols to export.
17165: always_export_symbols_CXX=yes
17166: if test "$aix_use_runtimelinking" = yes; then
17167: # Warning - without using the other runtime loading flags (-brtl),
17168: # -berok will link without error, but may produce a broken library.
17169: allow_undefined_flag_CXX='-berok'
17170: # Determine the default libpath from the value encoded in an empty executable.
17171: cat >conftest.$ac_ext <<_ACEOF
17172: #line $LINENO "configure"
17173: /* confdefs.h. */
17174: _ACEOF
17175: cat confdefs.h >>conftest.$ac_ext
17176: cat >>conftest.$ac_ext <<_ACEOF
17177: /* end confdefs.h. */
17178:
17179: int
17180: main ()
17181: {
17182:
17183: ;
17184: return 0;
17185: }
17186: _ACEOF
17187: rm -f conftest.$ac_objext conftest$ac_exeext
17188: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189: (eval $ac_link) 2>&5
17190: ac_status=$?
17191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192: (exit $ac_status); } &&
17193: { ac_try='test -s conftest$ac_exeext'
17194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195: (eval $ac_try) 2>&5
17196: ac_status=$?
17197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198: (exit $ac_status); }; }; then
17199:
17200: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17201: }'`
17202: # Check for a 64-bit object if we didn't find anything.
17203: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17204: }'`; fi
17205: else
17206: echo "$as_me: failed program was:" >&5
17207: sed 's/^/| /' conftest.$ac_ext >&5
17208:
17209: fi
17210: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17212:
17213: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17214:
17215: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17216: else
17217: if test "$host_cpu" = ia64; then
17218: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17219: allow_undefined_flag_CXX="-z nodefs"
17220: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17221: else
17222: # Determine the default libpath from the value encoded in an empty executable.
17223: cat >conftest.$ac_ext <<_ACEOF
17224: #line $LINENO "configure"
17225: /* confdefs.h. */
17226: _ACEOF
17227: cat confdefs.h >>conftest.$ac_ext
17228: cat >>conftest.$ac_ext <<_ACEOF
17229: /* end confdefs.h. */
17230:
17231: int
17232: main ()
17233: {
17234:
17235: ;
17236: return 0;
17237: }
17238: _ACEOF
17239: rm -f conftest.$ac_objext conftest$ac_exeext
17240: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241: (eval $ac_link) 2>&5
17242: ac_status=$?
17243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244: (exit $ac_status); } &&
17245: { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17251:
17252: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17253: }'`
17254: # Check for a 64-bit object if we didn't find anything.
17255: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17256: }'`; fi
17257: else
17258: echo "$as_me: failed program was:" >&5
17259: sed 's/^/| /' conftest.$ac_ext >&5
17260:
17261: fi
17262: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17263: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17264:
17265: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17266: # Warning - without using the other run time loading flags,
17267: # -berok will link without error, but may produce a broken library.
17268: no_undefined_flag_CXX=' ${wl}-bernotok'
17269: allow_undefined_flag_CXX=' ${wl}-berok'
17270: # -bexpall does not export symbols beginning with underscore (_)
17271: always_export_symbols_CXX=yes
17272: # Exported symbols can be pulled into shared objects from archives
17273: whole_archive_flag_spec_CXX=' '
17274: archive_cmds_need_lc_CXX=yes
17275: # This is similar to how AIX traditionally builds it's shared libraries.
17276: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17277: fi
17278: fi
17279: ;;
17280: chorus*)
17281: case $cc_basename in
17282: *)
17283: # FIXME: insert proper C++ library support
17284: ld_shlibs_CXX=no
17285: ;;
17286: esac
17287: ;;
17288:
17289: cygwin* | mingw* | pw32*)
17290: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17291: # as there is no search path for DLLs.
17292: hardcode_libdir_flag_spec_CXX='-L$libdir'
17293: allow_undefined_flag_CXX=unsupported
17294: always_export_symbols_CXX=no
17295: enable_shared_with_static_runtimes_CXX=yes
17296:
17297: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17298: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17299: # If the export-symbols file already is a .def file (1st line
17300: # is EXPORTS), use it as is; otherwise, prepend...
17301: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17302: cp $export_symbols $output_objdir/$soname.def;
17303: else
17304: echo EXPORTS > $output_objdir/$soname.def;
17305: cat $export_symbols >> $output_objdir/$soname.def;
17306: fi~
17307: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17308: else
17309: ld_shlibs_CXX=no
17310: fi
17311: ;;
17312:
17313: darwin* | rhapsody*)
17314: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
17315: archive_cmds_need_lc_CXX=no
17316: case "$host_os" in
17317: rhapsody* | darwin1.[012])
17318: allow_undefined_flag_CXX='-undefined suppress'
17319: ;;
17320: *) # Darwin 1.3 on
17321: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
17322: ;;
17323: esac
17324: lt_int_apple_cc_single_mod=no
17325: output_verbose_link_cmd='echo'
17326: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17327: lt_int_apple_cc_single_mod=yes
17328: fi
17329: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17330: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17331: else
17332: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
17333: fi
17334: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
17335:
17336: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17337: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17338: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17339: else
17340: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17341: fi
17342: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17343: hardcode_direct_CXX=no
17344: hardcode_automatic_CXX=yes
17345: hardcode_shlibpath_var_CXX=unsupported
17346: whole_archive_flag_spec_CXX='-all_load $convenience'
17347: link_all_deplibs_CXX=yes
17348: fi
17349: ;;
17350:
17351: dgux*)
17352: case $cc_basename in
17353: ec++)
17354: # FIXME: insert proper C++ library support
17355: ld_shlibs_CXX=no
17356: ;;
17357: ghcx)
17358: # Green Hills C++ Compiler
17359: # FIXME: insert proper C++ library support
17360: ld_shlibs_CXX=no
17361: ;;
17362: *)
17363: # FIXME: insert proper C++ library support
17364: ld_shlibs_CXX=no
17365: ;;
17366: esac
17367: ;;
17368: freebsd12*)
17369: # C++ shared libraries reported to be fairly broken before switch to ELF
17370: ld_shlibs_CXX=no
17371: ;;
17372: freebsd-elf*)
17373: archive_cmds_need_lc_CXX=no
17374: ;;
17375: freebsd*)
17376: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17377: # conventions
17378: ld_shlibs_CXX=yes
17379: ;;
17380: gnu*)
17381: ;;
17382: hpux9*)
17383: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17384: hardcode_libdir_separator_CXX=:
17385: export_dynamic_flag_spec_CXX='${wl}-E'
17386: hardcode_direct_CXX=yes
17387: hardcode_minus_L_CXX=yes # Not in the search PATH,
17388: # but as the default
17389: # location of the library.
17390:
17391: case $cc_basename in
17392: CC)
17393: # FIXME: insert proper C++ library support
17394: ld_shlibs_CXX=no
17395: ;;
17396: aCC)
17397: 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'
17398: # Commands to make compiler produce verbose output that lists
17399: # what "hidden" libraries, object files and flags are used when
17400: # linking a shared library.
17401: #
17402: # There doesn't appear to be a way to prevent this compiler from
17403: # explicitly linking system object files so we need to strip them
17404: # from the output so that they don't get included in the library
17405: # dependencies.
17406: 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; echo $list'
17407: ;;
17408: *)
17409: if test "$GXX" = yes; then
17410: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
17411: else
17412: # FIXME: insert proper C++ library support
17413: ld_shlibs_CXX=no
17414: fi
17415: ;;
17416: esac
17417: ;;
17418: hpux10*|hpux11*)
17419: if test $with_gnu_ld = no; then
17420: case "$host_cpu" in
17421: hppa*64*)
17422: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17423: hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17424: hardcode_libdir_separator_CXX=:
17425: ;;
17426: ia64*)
17427: hardcode_libdir_flag_spec_CXX='-L$libdir'
17428: ;;
17429: *)
17430: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17431: hardcode_libdir_separator_CXX=:
17432: export_dynamic_flag_spec_CXX='${wl}-E'
17433: ;;
17434: esac
17435: fi
17436: case "$host_cpu" in
17437: hppa*64*)
17438: hardcode_direct_CXX=no
17439: hardcode_shlibpath_var_CXX=no
17440: ;;
17441: ia64*)
17442: hardcode_direct_CXX=no
17443: hardcode_shlibpath_var_CXX=no
17444: hardcode_minus_L_CXX=yes # Not in the search PATH,
17445: # but as the default
17446: # location of the library.
17447: ;;
17448: *)
17449: hardcode_direct_CXX=yes
17450: hardcode_minus_L_CXX=yes # Not in the search PATH,
17451: # but as the default
17452: # location of the library.
17453: ;;
17454: esac
17455:
17456: case $cc_basename in
17457: CC)
17458: # FIXME: insert proper C++ library support
17459: ld_shlibs_CXX=no
17460: ;;
17461: aCC)
17462: case "$host_cpu" in
17463: hppa*64*|ia64*)
17464: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17465: ;;
17466: *)
17467: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17468: ;;
17469: esac
17470: # Commands to make compiler produce verbose output that lists
17471: # what "hidden" libraries, object files and flags are used when
17472: # linking a shared library.
17473: #
17474: # There doesn't appear to be a way to prevent this compiler from
17475: # explicitly linking system object files so we need to strip them
17476: # from the output so that they don't get included in the library
17477: # dependencies.
17478: 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; echo $list'
17479: ;;
17480: *)
17481: if test "$GXX" = yes; then
17482: if test $with_gnu_ld = no; then
17483: case "$host_cpu" in
17484: ia64*|hppa*64*)
17485: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17486: ;;
17487: *)
17488: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17489: ;;
17490: esac
17491: fi
17492: else
17493: # FIXME: insert proper C++ library support
17494: ld_shlibs_CXX=no
17495: fi
17496: ;;
17497: esac
17498: ;;
17499: irix5* | irix6*)
17500: case $cc_basename in
17501: CC)
17502: # SGI C++
17503: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17504:
17505: # Archives containing C++ object files must be created using
17506: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17507: # necessary to make sure instantiated templates are included
17508: # in the archive.
17509: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17510: ;;
17511: *)
17512: if test "$GXX" = yes; then
17513: if test "$with_gnu_ld" = no; then
17514: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17515: else
17516: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
17517: fi
17518: fi
17519: link_all_deplibs_CXX=yes
17520: ;;
17521: esac
17522: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17523: hardcode_libdir_separator_CXX=:
17524: ;;
17525: linux*)
17526: case $cc_basename in
17527: KCC)
17528: # Kuck and Associates, Inc. (KAI) C++ Compiler
17529:
17530: # KCC will only create a shared library if the output file
17531: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17532: # to its proper name (with version) after linking.
17533: 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'
17534: 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'
17535: # Commands to make compiler produce verbose output that lists
17536: # what "hidden" libraries, object files and flags are used when
17537: # linking a shared library.
17538: #
17539: # There doesn't appear to be a way to prevent this compiler from
17540: # explicitly linking system object files so we need to strip them
17541: # from the output so that they don't get included in the library
17542: # dependencies.
17543: 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; echo $list'
17544:
17545: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17546: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17547:
17548: # Archives containing C++ object files must be created using
17549: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17550: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17551: ;;
17552: icpc)
17553: # Intel C++
17554: with_gnu_ld=yes
17555: archive_cmds_need_lc_CXX=no
17556: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557: 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'
17558: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17559: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17560: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17561: ;;
17562: cxx)
17563: # Compaq C++
17564: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565: 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'
17566:
17567: runpath_var=LD_RUN_PATH
17568: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17569: hardcode_libdir_separator_CXX=:
17570:
17571: # Commands to make compiler produce verbose output that lists
17572: # what "hidden" libraries, object files and flags are used when
17573: # linking a shared library.
17574: #
17575: # There doesn't appear to be a way to prevent this compiler from
17576: # explicitly linking system object files so we need to strip them
17577: # from the output so that they don't get included in the library
17578: # dependencies.
17579: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
17580: ;;
17581: esac
17582: ;;
17583: lynxos*)
17584: # FIXME: insert proper C++ library support
17585: ld_shlibs_CXX=no
17586: ;;
17587: m88k*)
17588: # FIXME: insert proper C++ library support
17589: ld_shlibs_CXX=no
17590: ;;
17591: mvs*)
17592: case $cc_basename in
17593: cxx)
17594: # FIXME: insert proper C++ library support
17595: ld_shlibs_CXX=no
17596: ;;
17597: *)
17598: # FIXME: insert proper C++ library support
17599: ld_shlibs_CXX=no
17600: ;;
17601: esac
17602: ;;
17603: netbsd*)
17604: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17605: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17606: wlarc=
17607: hardcode_libdir_flag_spec_CXX='-R$libdir'
17608: hardcode_direct_CXX=yes
17609: hardcode_shlibpath_var_CXX=no
17610: fi
17611: # Workaround some broken pre-1.5 toolchains
17612: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17613: ;;
17614: osf3*)
17615: case $cc_basename in
17616: KCC)
17617: # Kuck and Associates, Inc. (KAI) C++ Compiler
17618:
17619: # KCC will only create a shared library if the output file
17620: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17621: # to its proper name (with version) after linking.
17622: 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'
17623:
17624: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17625: hardcode_libdir_separator_CXX=:
17626:
17627: # Archives containing C++ object files must be created using
17628: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17629: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17630:
17631: ;;
17632: RCC)
17633: # Rational C++ 2.4.1
17634: # FIXME: insert proper C++ library support
17635: ld_shlibs_CXX=no
17636: ;;
17637: cxx)
17638: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17639: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17640:
17641: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17642: hardcode_libdir_separator_CXX=:
17643:
17644: # Commands to make compiler produce verbose output that lists
17645: # what "hidden" libraries, object files and flags are used when
17646: # linking a shared library.
17647: #
17648: # There doesn't appear to be a way to prevent this compiler from
17649: # explicitly linking system object files so we need to strip them
17650: # from the output so that they don't get included in the library
17651: # dependencies.
17652: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
17653: ;;
17654: *)
17655: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17656: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17657: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17658:
17659: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17660: hardcode_libdir_separator_CXX=:
17661:
17662: # Commands to make compiler produce verbose output that lists
17663: # what "hidden" libraries, object files and flags are used when
17664: # linking a shared library.
17665: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17666:
17667: else
17668: # FIXME: insert proper C++ library support
17669: ld_shlibs_CXX=no
17670: fi
17671: ;;
17672: esac
17673: ;;
17674: osf4* | osf5*)
17675: case $cc_basename in
17676: KCC)
17677: # Kuck and Associates, Inc. (KAI) C++ Compiler
17678:
17679: # KCC will only create a shared library if the output file
17680: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17681: # to its proper name (with version) after linking.
17682: 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'
17683:
17684: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17685: hardcode_libdir_separator_CXX=:
17686:
17687: # Archives containing C++ object files must be created using
17688: # the KAI C++ compiler.
17689: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17690: ;;
17691: RCC)
17692: # Rational C++ 2.4.1
17693: # FIXME: insert proper C++ library support
17694: ld_shlibs_CXX=no
17695: ;;
17696: cxx)
17697: allow_undefined_flag_CXX=' -expect_unresolved \*'
17698: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
17699: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17700: echo "-hidden">> $lib.exp~
17701: $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 $objdir/so_locations -o $lib~
17702: $rm $lib.exp'
17703:
17704: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17705: hardcode_libdir_separator_CXX=:
17706:
17707: # Commands to make compiler produce verbose output that lists
17708: # what "hidden" libraries, object files and flags are used when
17709: # linking a shared library.
17710: #
17711: # There doesn't appear to be a way to prevent this compiler from
17712: # explicitly linking system object files so we need to strip them
17713: # from the output so that they don't get included in the library
17714: # dependencies.
17715: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
17716: ;;
17717: *)
17718: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17719: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17720: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
17721:
17722: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17723: hardcode_libdir_separator_CXX=:
17724:
17725: # Commands to make compiler produce verbose output that lists
17726: # what "hidden" libraries, object files and flags are used when
17727: # linking a shared library.
17728: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17729:
17730: else
17731: # FIXME: insert proper C++ library support
17732: ld_shlibs_CXX=no
17733: fi
17734: ;;
17735: esac
17736: ;;
17737: psos*)
17738: # FIXME: insert proper C++ library support
17739: ld_shlibs_CXX=no
17740: ;;
17741: sco*)
17742: archive_cmds_need_lc_CXX=no
17743: case $cc_basename in
17744: CC)
17745: # FIXME: insert proper C++ library support
17746: ld_shlibs_CXX=no
17747: ;;
17748: *)
17749: # FIXME: insert proper C++ library support
17750: ld_shlibs_CXX=no
17751: ;;
17752: esac
17753: ;;
17754: sunos4*)
17755: case $cc_basename in
17756: CC)
17757: # Sun C++ 4.x
17758: # FIXME: insert proper C++ library support
17759: ld_shlibs_CXX=no
17760: ;;
17761: lcc)
17762: # Lucid
17763: # FIXME: insert proper C++ library support
17764: ld_shlibs_CXX=no
17765: ;;
17766: *)
17767: # FIXME: insert proper C++ library support
17768: ld_shlibs_CXX=no
17769: ;;
17770: esac
17771: ;;
17772: solaris*)
17773: case $cc_basename in
17774: CC)
17775: # Sun C++ 4.2, 5.x and Centerline C++
17776: no_undefined_flag_CXX=' -zdefs'
17777: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17778: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17779: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17780:
17781: hardcode_libdir_flag_spec_CXX='-R$libdir'
17782: hardcode_shlibpath_var_CXX=no
17783: case $host_os in
17784: solaris2.0-5 | solaris2.0-5.*) ;;
17785: *)
17786: # The C++ compiler is used as linker so we must use $wl
17787: # flag to pass the commands to the underlying system
17788: # linker.
17789: # Supported since Solaris 2.6 (maybe 2.5.1?)
17790: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17791: ;;
17792: esac
17793: link_all_deplibs_CXX=yes
17794:
17795: # Commands to make compiler produce verbose output that lists
17796: # what "hidden" libraries, object files and flags are used when
17797: # linking a shared library.
17798: #
17799: # There doesn't appear to be a way to prevent this compiler from
17800: # explicitly linking system object files so we need to strip them
17801: # from the output so that they don't get included in the library
17802: # dependencies.
17803: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17804:
17805: # Archives containing C++ object files must be created using
17806: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17807: # necessary to make sure instantiated templates are included
17808: # in the archive.
17809: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17810: ;;
17811: gcx)
17812: # Green Hills C++ Compiler
17813: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17814:
17815: # The C++ compiler must be used to create the archive.
17816: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17817: ;;
17818: *)
17819: # GNU C++ compiler with Solaris linker
17820: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17821: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17822: if $CC --version | grep -v '^2\.7' > /dev/null; then
17823: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17824: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17825: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17826:
17827: # Commands to make compiler produce verbose output that lists
17828: # what "hidden" libraries, object files and flags are used when
17829: # linking a shared library.
17830: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17831: else
17832: # g++ 2.7 appears to require `-G' NOT `-shared' on this
17833: # platform.
17834: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17835: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17836: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17837:
17838: # Commands to make compiler produce verbose output that lists
17839: # what "hidden" libraries, object files and flags are used when
17840: # linking a shared library.
17841: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17842: fi
17843:
17844: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17845: fi
17846: ;;
17847: esac
17848: ;;
17849: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17850: archive_cmds_need_lc_CXX=no
17851: ;;
17852: tandem*)
17853: case $cc_basename in
17854: NCC)
17855: # NonStop-UX NCC 3.20
17856: # FIXME: insert proper C++ library support
17857: ld_shlibs_CXX=no
17858: ;;
17859: *)
17860: # FIXME: insert proper C++ library support
17861: ld_shlibs_CXX=no
17862: ;;
17863: esac
17864: ;;
17865: vxworks*)
17866: # FIXME: insert proper C++ library support
17867: ld_shlibs_CXX=no
17868: ;;
17869: *)
17870: # FIXME: insert proper C++ library support
17871: ld_shlibs_CXX=no
17872: ;;
17873: esac
17874: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17875: echo "${ECHO_T}$ld_shlibs_CXX" >&6
17876: test "$ld_shlibs_CXX" = no && can_build_shared=no
17877:
17878: GCC_CXX="$GXX"
17879: LD_CXX="$LD"
17880:
17881:
17882: cat > conftest.$ac_ext <<EOF
17883: class Foo
17884: {
17885: public:
17886: Foo (void) { a = 0; }
17887: private:
17888: int a;
17889: };
17890: EOF
17891:
17892: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17893: (eval $ac_compile) 2>&5
17894: ac_status=$?
17895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896: (exit $ac_status); }; then
17897: # Parse the compiler output and extract the necessary
17898: # objects, libraries and library flags.
17899:
17900: # Sentinel used to keep track of whether or not we are before
17901: # the conftest object file.
17902: pre_test_object_deps_done=no
17903:
17904: # The `*' in the case matches for architectures that use `case' in
17905: # $output_verbose_cmd can trigger glob expansion during the loop
17906: # eval without this substitution.
17907: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17908:
17909: for p in `eval $output_verbose_link_cmd`; do
17910: case $p in
17911:
17912: -L* | -R* | -l*)
17913: # Some compilers place space between "-{L,R}" and the path.
17914: # Remove the space.
17915: if test $p = "-L" \
17916: || test $p = "-R"; then
17917: prev=$p
17918: continue
17919: else
17920: prev=
17921: fi
17922:
17923: if test "$pre_test_object_deps_done" = no; then
17924: case $p in
17925: -L* | -R*)
17926: # Internal compiler library paths should come after those
17927: # provided the user. The postdeps already come after the
17928: # user supplied libs so there is no need to process them.
17929: if test -z "$compiler_lib_search_path_CXX"; then
17930: compiler_lib_search_path_CXX="${prev}${p}"
17931: else
17932: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17933: fi
17934: ;;
17935: # The "-l" case would never come before the object being
17936: # linked, so don't bother handling this case.
17937: esac
17938: else
17939: if test -z "$postdeps_CXX"; then
17940: postdeps_CXX="${prev}${p}"
17941: else
17942: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17943: fi
17944: fi
17945: ;;
17946:
17947: *.$objext)
17948: # This assumes that the test object file only shows up
17949: # once in the compiler output.
17950: if test "$p" = "conftest.$objext"; then
17951: pre_test_object_deps_done=yes
17952: continue
17953: fi
17954:
17955: if test "$pre_test_object_deps_done" = no; then
17956: if test -z "$predep_objects_CXX"; then
17957: predep_objects_CXX="$p"
17958: else
17959: predep_objects_CXX="$predep_objects_CXX $p"
17960: fi
17961: else
17962: if test -z "$postdep_objects_CXX"; then
17963: postdep_objects_CXX="$p"
17964: else
17965: postdep_objects_CXX="$postdep_objects_CXX $p"
17966: fi
17967: fi
17968: ;;
17969:
17970: *) ;; # Ignore the rest.
17971:
17972: esac
17973: done
17974:
17975: # Clean up.
17976: rm -f a.out a.exe
17977: else
17978: echo "libtool.m4: error: problem compiling CXX test program"
17979: fi
17980:
17981: $rm -f confest.$objext
17982:
17983: case " $postdeps_CXX " in
17984: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17985: esac
17986:
17987: lt_prog_compiler_wl_CXX=
17988: lt_prog_compiler_pic_CXX=
17989: lt_prog_compiler_static_CXX=
17990:
17991: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17992: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17993:
17994: # C++ specific cases for pic, static, wl, etc.
17995: if test "$GXX" = yes; then
17996: lt_prog_compiler_wl_CXX='-Wl,'
17997: lt_prog_compiler_static_CXX='-static'
17998:
17999: case $host_os in
18000: aix*)
18001: # All AIX code is PIC.
18002: if test "$host_cpu" = ia64; then
18003: # AIX 5 now supports IA64 processor
18004: lt_prog_compiler_static_CXX='-Bstatic'
18005: fi
18006: ;;
18007: amigaos*)
18008: # FIXME: we need at least 68020 code to build shared libraries, but
18009: # adding the `-m68020' flag to GCC prevents building anything better,
18010: # like `-m68040'.
18011: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18012: ;;
18013: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18014: # PIC is the default for these OSes.
18015: ;;
18016: mingw* | os2* | pw32*)
18017: # This hack is so that the source file can tell whether it is being
18018: # built for inclusion in a dll (and should export symbols for example).
18019: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18020: ;;
18021: darwin* | rhapsody*)
18022: # PIC is the default on this platform
18023: # Common symbols not allowed in MH_DYLIB files
18024: lt_prog_compiler_pic_CXX='-fno-common'
18025: ;;
18026: *djgpp*)
18027: # DJGPP does not support shared libraries at all
18028: lt_prog_compiler_pic_CXX=
18029: ;;
18030: sysv4*MP*)
18031: if test -d /usr/nec; then
18032: lt_prog_compiler_pic_CXX=-Kconform_pic
18033: fi
18034: ;;
18035: hpux*)
18036: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18037: # not for PA HP-UX.
18038: case "$host_cpu" in
18039: hppa*64*|ia64*)
18040: ;;
18041: *)
18042: lt_prog_compiler_pic_CXX='-fPIC'
18043: ;;
18044: esac
18045: ;;
18046: *)
18047: lt_prog_compiler_pic_CXX='-fPIC'
18048: ;;
18049: esac
18050: else
18051: case $host_os in
18052: aix4* | aix5*)
18053: # All AIX code is PIC.
18054: if test "$host_cpu" = ia64; then
18055: # AIX 5 now supports IA64 processor
18056: lt_prog_compiler_static_CXX='-Bstatic'
18057: else
18058: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18059: fi
18060: ;;
18061: chorus*)
18062: case $cc_basename in
18063: cxch68)
18064: # Green Hills C++ Compiler
18065: # _LT_AC_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"
18066: ;;
18067: esac
18068: ;;
18069: dgux*)
18070: case $cc_basename in
18071: ec++)
18072: lt_prog_compiler_pic_CXX='-KPIC'
18073: ;;
18074: ghcx)
18075: # Green Hills C++ Compiler
18076: lt_prog_compiler_pic_CXX='-pic'
18077: ;;
18078: *)
18079: ;;
18080: esac
18081: ;;
18082: freebsd*)
18083: # FreeBSD uses GNU C++
18084: ;;
18085: hpux9* | hpux10* | hpux11*)
18086: case $cc_basename in
18087: CC)
18088: lt_prog_compiler_wl_CXX='-Wl,'
18089: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
18090: if test "$host_cpu" != ia64; then
18091: lt_prog_compiler_pic_CXX='+Z'
18092: fi
18093: ;;
18094: aCC)
18095: lt_prog_compiler_wl_CXX='-Wl,'
18096: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
18097: case "$host_cpu" in
18098: hppa*64*|ia64*)
18099: # +Z the default
18100: ;;
18101: *)
18102: lt_prog_compiler_pic_CXX='+Z'
18103: ;;
18104: esac
18105: ;;
18106: *)
18107: ;;
18108: esac
18109: ;;
18110: irix5* | irix6* | nonstopux*)
18111: case $cc_basename in
18112: CC)
18113: lt_prog_compiler_wl_CXX='-Wl,'
18114: lt_prog_compiler_static_CXX='-non_shared'
18115: # CC pic flag -KPIC is the default.
18116: ;;
18117: *)
18118: ;;
18119: esac
18120: ;;
18121: linux*)
18122: case $cc_basename in
18123: KCC)
18124: # KAI C++ Compiler
18125: lt_prog_compiler_wl_CXX='--backend -Wl,'
18126: lt_prog_compiler_pic_CXX='-fPIC'
18127: ;;
18128: icpc)
18129: # Intel C++
18130: lt_prog_compiler_wl_CXX='-Wl,'
18131: lt_prog_compiler_pic_CXX='-KPIC'
18132: lt_prog_compiler_static_CXX='-static'
18133: ;;
18134: cxx)
18135: # Compaq C++
18136: # Make sure the PIC flag is empty. It appears that all Alpha
18137: # Linux and Compaq Tru64 Unix objects are PIC.
18138: lt_prog_compiler_pic_CXX=
18139: lt_prog_compiler_static_CXX='-non_shared'
18140: ;;
18141: *)
18142: ;;
18143: esac
18144: ;;
18145: lynxos*)
18146: ;;
18147: m88k*)
18148: ;;
18149: mvs*)
18150: case $cc_basename in
18151: cxx)
18152: lt_prog_compiler_pic_CXX='-W c,exportall'
18153: ;;
18154: *)
18155: ;;
18156: esac
18157: ;;
18158: netbsd*)
18159: ;;
18160: osf3* | osf4* | osf5*)
18161: case $cc_basename in
18162: KCC)
18163: lt_prog_compiler_wl_CXX='--backend -Wl,'
18164: ;;
18165: RCC)
18166: # Rational C++ 2.4.1
18167: lt_prog_compiler_pic_CXX='-pic'
18168: ;;
18169: cxx)
18170: # Digital/Compaq C++
18171: lt_prog_compiler_wl_CXX='-Wl,'
18172: # Make sure the PIC flag is empty. It appears that all Alpha
18173: # Linux and Compaq Tru64 Unix objects are PIC.
18174: lt_prog_compiler_pic_CXX=
18175: lt_prog_compiler_static_CXX='-non_shared'
18176: ;;
18177: *)
18178: ;;
18179: esac
18180: ;;
18181: psos*)
18182: ;;
18183: sco*)
18184: case $cc_basename in
18185: CC)
18186: lt_prog_compiler_pic_CXX='-fPIC'
18187: ;;
18188: *)
18189: ;;
18190: esac
18191: ;;
18192: solaris*)
18193: case $cc_basename in
18194: CC)
18195: # Sun C++ 4.2, 5.x and Centerline C++
18196: lt_prog_compiler_pic_CXX='-KPIC'
18197: lt_prog_compiler_static_CXX='-Bstatic'
18198: lt_prog_compiler_wl_CXX='-Qoption ld '
18199: ;;
18200: gcx)
18201: # Green Hills C++ Compiler
18202: lt_prog_compiler_pic_CXX='-PIC'
18203: ;;
18204: *)
18205: ;;
18206: esac
18207: ;;
18208: sunos4*)
18209: case $cc_basename in
18210: CC)
18211: # Sun C++ 4.x
18212: lt_prog_compiler_pic_CXX='-pic'
18213: lt_prog_compiler_static_CXX='-Bstatic'
18214: ;;
18215: lcc)
18216: # Lucid
18217: lt_prog_compiler_pic_CXX='-pic'
18218: ;;
18219: *)
18220: ;;
18221: esac
18222: ;;
18223: tandem*)
18224: case $cc_basename in
18225: NCC)
18226: # NonStop-UX NCC 3.20
18227: lt_prog_compiler_pic_CXX='-KPIC'
18228: ;;
18229: *)
18230: ;;
18231: esac
18232: ;;
18233: unixware*)
18234: ;;
18235: vxworks*)
18236: ;;
18237: *)
18238: lt_prog_compiler_can_build_shared_CXX=no
18239: ;;
18240: esac
18241: fi
18242:
18243: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18244: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18245:
18246: #
18247: # Check to make sure the PIC flag actually works.
18248: #
18249: if test -n "$lt_prog_compiler_pic_CXX"; then
18250: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18251: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18252: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18253: echo $ECHO_N "(cached) $ECHO_C" >&6
18254: else
18255: lt_prog_compiler_pic_works_CXX=no
18256: ac_outfile=conftest.$ac_objext
18257: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18258: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18259: # Insert the option either (1) after the last *FLAGS variable, or
18260: # (2) before a word containing "conftest.", or (3) at the end.
18261: # Note that $ac_compile itself does not contain backslashes and begins
18262: # with a dollar sign (not a hyphen), so the echo should work correctly.
18263: # The option is referenced via a variable to avoid confusing sed.
18264: lt_compile=`echo "$ac_compile" | $SED \
18265: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18266: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18267: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 18268: (eval echo "\"\$as_me:18268: $lt_compile\"" >&5)
1.1 root 18269: (eval "$lt_compile" 2>conftest.err)
18270: ac_status=$?
18271: cat conftest.err >&5
1.1.1.4 ! root 18272: echo "$as_me:18272: \$? = $ac_status" >&5
1.1 root 18273: if (exit $ac_status) && test -s "$ac_outfile"; then
18274: # The compiler can only warn and ignore the option if not recognized
18275: # So say no if there are warnings
18276: if test ! -s conftest.err; then
18277: lt_prog_compiler_pic_works_CXX=yes
18278: fi
18279: fi
18280: $rm conftest*
18281:
18282: fi
18283: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18284: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18285:
18286: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18287: case $lt_prog_compiler_pic_CXX in
18288: "" | " "*) ;;
18289: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18290: esac
18291: else
18292: lt_prog_compiler_pic_CXX=
18293: lt_prog_compiler_can_build_shared_CXX=no
18294: fi
18295:
18296: fi
18297: case "$host_os" in
18298: # For platforms which do not support PIC, -DPIC is meaningless:
18299: *djgpp*)
18300: lt_prog_compiler_pic_CXX=
18301: ;;
18302: *)
18303: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18304: ;;
18305: esac
18306:
18307: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18308: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18309: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18310: echo $ECHO_N "(cached) $ECHO_C" >&6
18311: else
18312: lt_cv_prog_compiler_c_o_CXX=no
18313: $rm -r conftest 2>/dev/null
18314: mkdir conftest
18315: cd conftest
18316: mkdir out
18317: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18318:
18319: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
18320: # that will create temporary files in the current directory regardless of
18321: # the output directory. Thus, making CWD read-only will cause this test
18322: # to fail, enabling locking or at least warning the user not to do parallel
18323: # builds.
18324: chmod -w .
18325:
18326: lt_compiler_flag="-o out/conftest2.$ac_objext"
18327: # Insert the option either (1) after the last *FLAGS variable, or
18328: # (2) before a word containing "conftest.", or (3) at the end.
18329: # Note that $ac_compile itself does not contain backslashes and begins
18330: # with a dollar sign (not a hyphen), so the echo should work correctly.
18331: lt_compile=`echo "$ac_compile" | $SED \
18332: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18333: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18334: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 18335: (eval echo "\"\$as_me:18335: $lt_compile\"" >&5)
1.1 root 18336: (eval "$lt_compile" 2>out/conftest.err)
18337: ac_status=$?
18338: cat out/conftest.err >&5
1.1.1.4 ! root 18339: echo "$as_me:18339: \$? = $ac_status" >&5
1.1 root 18340: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18341: then
18342: # The compiler can only warn and ignore the option if not recognized
18343: # So say no if there are warnings
18344: if test ! -s out/conftest.err; then
18345: lt_cv_prog_compiler_c_o_CXX=yes
18346: fi
18347: fi
18348: chmod u+w .
18349: $rm conftest* out/*
18350: rmdir out
18351: cd ..
18352: rmdir conftest
18353: $rm conftest*
18354:
18355: fi
18356: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18357: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18358:
18359:
18360: hard_links="nottested"
18361: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18362: # do not overwrite the value of need_locks provided by the user
18363: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18364: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18365: hard_links=yes
18366: $rm conftest*
18367: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18368: touch conftest.a
18369: ln conftest.a conftest.b 2>&5 || hard_links=no
18370: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18371: echo "$as_me:$LINENO: result: $hard_links" >&5
18372: echo "${ECHO_T}$hard_links" >&6
18373: if test "$hard_links" = no; then
18374: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18375: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18376: need_locks=warn
18377: fi
18378: else
18379: need_locks=no
18380: fi
18381:
18382: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18383: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18384:
18385: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18386: case $host_os in
18387: aix4* | aix5*)
18388: # If we're using GNU nm, then we don't want the "-C" option.
18389: # -C means demangle to AIX nm, but means don't demangle with GNU nm
18390: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18391: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18392: else
18393: 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'
18394: fi
18395: ;;
18396: pw32*)
18397: export_symbols_cmds_CXX="$ltdll_cmds"
18398: ;;
18399: cygwin* | mingw*)
18400: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18401: ;;
18402: *)
18403: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18404: ;;
18405: esac
18406:
18407: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18408: echo "${ECHO_T}$ld_shlibs_CXX" >&6
18409: test "$ld_shlibs_CXX" = no && can_build_shared=no
18410:
18411: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18412: if test "$GCC" = yes; then
18413: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18414: fi
18415:
18416: #
18417: # Do we need to explicitly link libc?
18418: #
18419: case "x$archive_cmds_need_lc_CXX" in
18420: x|xyes)
18421: # Assume -lc should be added
18422: archive_cmds_need_lc_CXX=yes
18423:
18424: if test "$enable_shared" = yes && test "$GCC" = yes; then
18425: case $archive_cmds_CXX in
18426: *'~'*)
18427: # FIXME: we may have to deal with multi-command sequences.
18428: ;;
18429: '$CC '*)
18430: # Test whether the compiler implicitly links with -lc since on some
18431: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18432: # to ld, don't add -lc before -lgcc.
18433: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18434: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18435: $rm conftest*
18436: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18437:
18438: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18439: (eval $ac_compile) 2>&5
18440: ac_status=$?
18441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442: (exit $ac_status); } 2>conftest.err; then
18443: soname=conftest
18444: lib=conftest
18445: libobjs=conftest.$ac_objext
18446: deplibs=
18447: wl=$lt_prog_compiler_wl_CXX
18448: compiler_flags=-v
18449: linker_flags=-v
18450: verstring=
18451: output_objdir=.
18452: libname=conftest
18453: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18454: allow_undefined_flag_CXX=
18455: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18456: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18457: ac_status=$?
18458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459: (exit $ac_status); }
18460: then
18461: archive_cmds_need_lc_CXX=no
18462: else
18463: archive_cmds_need_lc_CXX=yes
18464: fi
18465: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18466: else
18467: cat conftest.err 1>&5
18468: fi
18469: $rm conftest*
18470: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18471: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18472: ;;
18473: esac
18474: fi
18475: ;;
18476: esac
18477:
18478: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18479: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18480: hardcode_action_CXX=
18481: if test -n "$hardcode_libdir_flag_spec_CXX" || \
18482: test -n "$runpath_var CXX" || \
18483: test "X$hardcode_automatic_CXX"="Xyes" ; then
18484:
18485: # We can hardcode non-existant directories.
18486: if test "$hardcode_direct_CXX" != no &&
18487: # If the only mechanism to avoid hardcoding is shlibpath_var, we
18488: # have to relink, otherwise we might link with an installed library
18489: # when we should be linking with a yet-to-be-installed one
18490: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18491: test "$hardcode_minus_L_CXX" != no; then
18492: # Linking always hardcodes the temporary library directory.
18493: hardcode_action_CXX=relink
18494: else
18495: # We can link without hardcoding, and we can hardcode nonexisting dirs.
18496: hardcode_action_CXX=immediate
18497: fi
18498: else
18499: # We cannot hardcode anything, or else we can only hardcode existing
18500: # directories.
18501: hardcode_action_CXX=unsupported
18502: fi
18503: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18504: echo "${ECHO_T}$hardcode_action_CXX" >&6
18505:
18506: if test "$hardcode_action_CXX" = relink; then
18507: # Fast installation is not supported
18508: enable_fast_install=no
18509: elif test "$shlibpath_overrides_runpath" = yes ||
18510: test "$enable_shared" = no; then
18511: # Fast installation is not necessary
18512: enable_fast_install=needless
18513: fi
18514:
18515: striplib=
18516: old_striplib=
18517: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18518: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18519: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18520: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18521: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18522: echo "$as_me:$LINENO: result: yes" >&5
18523: echo "${ECHO_T}yes" >&6
18524: else
18525: # FIXME - insert some real tests, host_os isn't really good enough
18526: case $host_os in
18527: darwin*)
18528: if test -n "$STRIP" ; then
18529: striplib="$STRIP -x"
18530: echo "$as_me:$LINENO: result: yes" >&5
18531: echo "${ECHO_T}yes" >&6
18532: else
18533: echo "$as_me:$LINENO: result: no" >&5
18534: echo "${ECHO_T}no" >&6
18535: fi
18536: ;;
18537: *)
18538: echo "$as_me:$LINENO: result: no" >&5
18539: echo "${ECHO_T}no" >&6
18540: ;;
18541: esac
18542: fi
18543:
18544: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18545: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18546: library_names_spec=
18547: libname_spec='lib$name'
18548: soname_spec=
18549: shrext=".so"
18550: postinstall_cmds=
18551: postuninstall_cmds=
18552: finish_cmds=
18553: finish_eval=
18554: shlibpath_var=
18555: shlibpath_overrides_runpath=unknown
18556: version_type=none
18557: dynamic_linker="$host_os ld.so"
18558: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18559: if test "$GCC" = yes; then
18560: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18561: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18562: # if the path contains ";" then we assume it to be the separator
18563: # otherwise default to the standard path separator (i.e. ":") - it is
18564: # assumed that no part of a normal pathname contains ";" but that should
18565: # okay in the real world where ";" in dirpaths is itself problematic.
18566: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18567: else
18568: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18569: fi
18570: else
18571: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18572: fi
18573: need_lib_prefix=unknown
18574: hardcode_into_libs=no
18575:
18576: # when you set need_version to no, make sure it does not cause -set_version
18577: # flags to be left without arguments
18578: need_version=unknown
18579:
18580: case $host_os in
18581: aix3*)
18582: version_type=linux
18583: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18584: shlibpath_var=LIBPATH
18585:
18586: # AIX 3 has no versioning support, so we append a major version to the name.
18587: soname_spec='${libname}${release}${shared_ext}$major'
18588: ;;
18589:
18590: aix4* | aix5*)
18591: version_type=linux
18592: need_lib_prefix=no
18593: need_version=no
18594: hardcode_into_libs=yes
18595: if test "$host_cpu" = ia64; then
18596: # AIX 5 supports IA64
18597: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18598: shlibpath_var=LD_LIBRARY_PATH
18599: else
18600: # With GCC up to 2.95.x, collect2 would create an import file
18601: # for dependence libraries. The import file would start with
18602: # the line `#! .'. This would cause the generated library to
18603: # depend on `.', always an invalid library. This was fixed in
18604: # development snapshots of GCC prior to 3.0.
18605: case $host_os in
18606: aix4 | aix4.[01] | aix4.[01].*)
18607: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18608: echo ' yes '
18609: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18610: :
18611: else
18612: can_build_shared=no
18613: fi
18614: ;;
18615: esac
18616: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18617: # soname into executable. Probably we can add versioning support to
18618: # collect2, so additional links can be useful in future.
18619: if test "$aix_use_runtimelinking" = yes; then
18620: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18621: # instead of lib<name>.a to let people know that these are not
18622: # typical AIX shared libraries.
18623: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624: else
18625: # We preserve .a as extension for shared libraries through AIX4.2
18626: # and later when we are not doing run time linking.
18627: library_names_spec='${libname}${release}.a $libname.a'
18628: soname_spec='${libname}${release}${shared_ext}$major'
18629: fi
18630: shlibpath_var=LIBPATH
18631: fi
18632: ;;
18633:
18634: amigaos*)
18635: library_names_spec='$libname.ixlibrary $libname.a'
18636: # Create ${libname}_ixlibrary.a entries in /sys/libs.
18637: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18638: ;;
18639:
18640: beos*)
18641: library_names_spec='${libname}${shared_ext}'
18642: dynamic_linker="$host_os ld.so"
18643: shlibpath_var=LIBRARY_PATH
18644: ;;
18645:
18646: bsdi4*)
18647: version_type=linux
18648: need_version=no
18649: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650: soname_spec='${libname}${release}${shared_ext}$major'
18651: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18652: shlibpath_var=LD_LIBRARY_PATH
18653: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18654: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18655: # the default ld.so.conf also contains /usr/contrib/lib and
18656: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18657: # libtool to hard-code these into programs
18658: ;;
18659:
18660: cygwin* | mingw* | pw32*)
18661: version_type=windows
18662: shrext=".dll"
18663: need_version=no
18664: need_lib_prefix=no
18665:
18666: case $GCC,$host_os in
18667: yes,cygwin* | yes,mingw* | yes,pw32*)
18668: library_names_spec='$libname.dll.a'
18669: # DLL is installed to $(libdir)/../bin by postinstall_cmds
18670: postinstall_cmds='base_file=`basename \${file}`~
18671: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18672: dldir=$destdir/`dirname \$dlpath`~
18673: test -d \$dldir || mkdir -p \$dldir~
18674: $install_prog $dir/$dlname \$dldir/$dlname'
18675: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18676: dlpath=$dir/\$dldll~
18677: $rm \$dlpath'
18678: shlibpath_overrides_runpath=yes
18679:
18680: case $host_os in
18681: cygwin*)
18682: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18683: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18684: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
18685: ;;
18686: mingw*)
18687: # MinGW DLLs use traditional 'lib' prefix
18688: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18689: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18690: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18691: # It is most probably a Windows format PATH printed by
18692: # mingw gcc, but we are running on Cygwin. Gcc prints its search
18693: # path with ; separators, and with drive letters. We can handle the
18694: # drive letters (cygwin fileutils understands them), so leave them,
18695: # especially as we might pass files found there to a mingw objdump,
18696: # which wouldn't understand a cygwinified path. Ahh.
18697: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18698: else
18699: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18700: fi
18701: ;;
18702: pw32*)
18703: # pw32 DLLs use 'pw' prefix rather than 'lib'
18704: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18705: ;;
18706: esac
18707: ;;
18708:
18709: *)
18710: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18711: ;;
18712: esac
18713: dynamic_linker='Win32 ld.exe'
18714: # FIXME: first we should search . and the directory the executable is in
18715: shlibpath_var=PATH
18716: ;;
18717:
18718: darwin* | rhapsody*)
18719: dynamic_linker="$host_os dyld"
18720: version_type=darwin
18721: need_lib_prefix=no
18722: need_version=no
18723: # FIXME: Relying on posixy $() will cause problems for
18724: # cross-compilation, but unfortunately the echo tests do not
18725: # yet detect zsh echo's removal of \ escapes.
18726: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18727: soname_spec='${libname}${release}${major}$shared_ext'
18728: shlibpath_overrides_runpath=yes
18729: shlibpath_var=DYLD_LIBRARY_PATH
18730: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18731: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18732: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
18733: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18734: fi
18735: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18736: ;;
18737:
18738: dgux*)
18739: version_type=linux
18740: need_lib_prefix=no
18741: need_version=no
18742: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18743: soname_spec='${libname}${release}${shared_ext}$major'
18744: shlibpath_var=LD_LIBRARY_PATH
18745: ;;
18746:
18747: freebsd1*)
18748: dynamic_linker=no
18749: ;;
18750:
18751: freebsd*)
18752: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18753: version_type=freebsd-$objformat
18754: case $version_type in
18755: freebsd-elf*)
18756: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18757: need_version=no
18758: need_lib_prefix=no
18759: ;;
18760: freebsd-*)
18761: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18762: need_version=yes
18763: ;;
18764: esac
18765: shlibpath_var=LD_LIBRARY_PATH
18766: case $host_os in
18767: freebsd2*)
18768: shlibpath_overrides_runpath=yes
18769: ;;
18770: freebsd3.01* | freebsdelf3.01*)
18771: shlibpath_overrides_runpath=yes
18772: hardcode_into_libs=yes
18773: ;;
18774: *) # from 3.2 on
18775: shlibpath_overrides_runpath=no
18776: hardcode_into_libs=yes
18777: ;;
18778: esac
18779: ;;
18780:
18781: gnu*)
18782: version_type=linux
18783: need_lib_prefix=no
18784: need_version=no
18785: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18786: soname_spec='${libname}${release}${shared_ext}$major'
18787: shlibpath_var=LD_LIBRARY_PATH
18788: hardcode_into_libs=yes
18789: ;;
18790:
18791: hpux9* | hpux10* | hpux11*)
18792: # Give a soname corresponding to the major version so that dld.sl refuses to
18793: # link against other versions.
18794: version_type=sunos
18795: need_lib_prefix=no
18796: need_version=no
18797: case "$host_cpu" in
18798: ia64*)
18799: shrext='.so'
18800: hardcode_into_libs=yes
18801: dynamic_linker="$host_os dld.so"
18802: shlibpath_var=LD_LIBRARY_PATH
18803: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18804: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18805: soname_spec='${libname}${release}${shared_ext}$major'
18806: if test "X$HPUX_IA64_MODE" = X32; then
18807: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18808: else
18809: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18810: fi
18811: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18812: ;;
18813: hppa*64*)
18814: shrext='.sl'
18815: hardcode_into_libs=yes
18816: dynamic_linker="$host_os dld.sl"
18817: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18818: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18819: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820: soname_spec='${libname}${release}${shared_ext}$major'
18821: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18822: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18823: ;;
18824: *)
18825: shrext='.sl'
18826: dynamic_linker="$host_os dld.sl"
18827: shlibpath_var=SHLIB_PATH
18828: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18829: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830: soname_spec='${libname}${release}${shared_ext}$major'
18831: ;;
18832: esac
18833: # HP-UX runs *really* slowly unless shared libraries are mode 555.
18834: postinstall_cmds='chmod 555 $lib'
18835: ;;
18836:
18837: irix5* | irix6* | nonstopux*)
18838: case $host_os in
18839: nonstopux*) version_type=nonstopux ;;
18840: *)
18841: if test "$lt_cv_prog_gnu_ld" = yes; then
18842: version_type=linux
18843: else
18844: version_type=irix
18845: fi ;;
18846: esac
18847: need_lib_prefix=no
18848: need_version=no
18849: soname_spec='${libname}${release}${shared_ext}$major'
18850: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18851: case $host_os in
18852: irix5* | nonstopux*)
18853: libsuff= shlibsuff=
18854: ;;
18855: *)
18856: case $LD in # libtool.m4 will add one of these switches to LD
18857: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18858: libsuff= shlibsuff= libmagic=32-bit;;
18859: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18860: libsuff=32 shlibsuff=N32 libmagic=N32;;
18861: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18862: libsuff=64 shlibsuff=64 libmagic=64-bit;;
18863: *) libsuff= shlibsuff= libmagic=never-match;;
18864: esac
18865: ;;
18866: esac
18867: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18868: shlibpath_overrides_runpath=no
18869: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18870: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18871: hardcode_into_libs=yes
18872: ;;
18873:
18874: # No shared lib support for Linux oldld, aout, or coff.
18875: linux*oldld* | linux*aout* | linux*coff*)
18876: dynamic_linker=no
18877: ;;
18878:
18879: # This must be Linux ELF.
18880: linux*)
18881: version_type=linux
18882: need_lib_prefix=no
18883: need_version=no
18884: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885: soname_spec='${libname}${release}${shared_ext}$major'
18886: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18887: shlibpath_var=LD_LIBRARY_PATH
18888: shlibpath_overrides_runpath=no
18889: # This implies no fast_install, which is unacceptable.
18890: # Some rework will be needed to allow for fast_install
18891: # before this can be enabled.
18892: hardcode_into_libs=yes
18893:
18894: # We used to test for /lib/ld.so.1 and disable shared libraries on
18895: # powerpc, because MkLinux only supported shared libraries with the
18896: # GNU dynamic linker. Since this was broken with cross compilers,
18897: # most powerpc-linux boxes support dynamic linking these days and
18898: # people can always --disable-shared, the test was removed, and we
18899: # assume the GNU/Linux dynamic linker is in use.
18900: dynamic_linker='GNU/Linux ld.so'
18901: ;;
18902:
18903: netbsd*)
18904: version_type=sunos
18905: need_lib_prefix=no
18906: need_version=no
18907: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18908: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18909: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18910: dynamic_linker='NetBSD (a.out) ld.so'
18911: else
18912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18913: soname_spec='${libname}${release}${shared_ext}$major'
18914: dynamic_linker='NetBSD ld.elf_so'
18915: fi
18916: shlibpath_var=LD_LIBRARY_PATH
18917: shlibpath_overrides_runpath=yes
18918: hardcode_into_libs=yes
18919: ;;
18920:
18921: newsos6)
18922: version_type=linux
18923: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924: shlibpath_var=LD_LIBRARY_PATH
18925: shlibpath_overrides_runpath=yes
18926: ;;
18927:
18928: nto-qnx)
18929: version_type=linux
18930: need_lib_prefix=no
18931: need_version=no
18932: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933: soname_spec='${libname}${release}${shared_ext}$major'
18934: shlibpath_var=LD_LIBRARY_PATH
18935: shlibpath_overrides_runpath=yes
18936: ;;
18937:
18938: openbsd*)
18939: version_type=sunos
18940: need_lib_prefix=no
18941: need_version=no
18942: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18943: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18944: shlibpath_var=LD_LIBRARY_PATH
18945: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18946: case $host_os in
18947: openbsd2.[89] | openbsd2.[89].*)
18948: shlibpath_overrides_runpath=no
18949: ;;
18950: *)
18951: shlibpath_overrides_runpath=yes
18952: ;;
18953: esac
18954: else
18955: shlibpath_overrides_runpath=yes
18956: fi
18957: ;;
18958:
18959: os2*)
18960: libname_spec='$name'
18961: shrext=".dll"
18962: need_lib_prefix=no
18963: library_names_spec='$libname${shared_ext} $libname.a'
18964: dynamic_linker='OS/2 ld.exe'
18965: shlibpath_var=LIBPATH
18966: ;;
18967:
18968: osf3* | osf4* | osf5*)
18969: version_type=osf
18970: need_lib_prefix=no
18971: need_version=no
18972: soname_spec='${libname}${release}${shared_ext}$major'
18973: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18974: shlibpath_var=LD_LIBRARY_PATH
18975: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18976: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18977: ;;
18978:
18979: sco3.2v5*)
18980: version_type=osf
18981: soname_spec='${libname}${release}${shared_ext}$major'
18982: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18983: shlibpath_var=LD_LIBRARY_PATH
18984: ;;
18985:
18986: solaris*)
18987: version_type=linux
18988: need_lib_prefix=no
18989: need_version=no
18990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991: soname_spec='${libname}${release}${shared_ext}$major'
18992: shlibpath_var=LD_LIBRARY_PATH
18993: shlibpath_overrides_runpath=yes
18994: hardcode_into_libs=yes
18995: # ldd complains unless libraries are executable
18996: postinstall_cmds='chmod +x $lib'
18997: ;;
18998:
18999: sunos4*)
19000: version_type=sunos
19001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19002: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19003: shlibpath_var=LD_LIBRARY_PATH
19004: shlibpath_overrides_runpath=yes
19005: if test "$with_gnu_ld" = yes; then
19006: need_lib_prefix=no
19007: fi
19008: need_version=yes
19009: ;;
19010:
19011: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19012: version_type=linux
19013: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014: soname_spec='${libname}${release}${shared_ext}$major'
19015: shlibpath_var=LD_LIBRARY_PATH
19016: case $host_vendor in
19017: sni)
19018: shlibpath_overrides_runpath=no
19019: need_lib_prefix=no
19020: export_dynamic_flag_spec='${wl}-Blargedynsym'
19021: runpath_var=LD_RUN_PATH
19022: ;;
19023: siemens)
19024: need_lib_prefix=no
19025: ;;
19026: motorola)
19027: need_lib_prefix=no
19028: need_version=no
19029: shlibpath_overrides_runpath=no
19030: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19031: ;;
19032: esac
19033: ;;
19034:
19035: sysv4*MP*)
19036: if test -d /usr/nec ;then
19037: version_type=linux
19038: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19039: soname_spec='$libname${shared_ext}.$major'
19040: shlibpath_var=LD_LIBRARY_PATH
19041: fi
19042: ;;
19043:
19044: uts4*)
19045: version_type=linux
19046: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047: soname_spec='${libname}${release}${shared_ext}$major'
19048: shlibpath_var=LD_LIBRARY_PATH
19049: ;;
19050:
19051: *)
19052: dynamic_linker=no
19053: ;;
19054: esac
19055: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19056: echo "${ECHO_T}$dynamic_linker" >&6
19057: test "$dynamic_linker" = no && can_build_shared=no
19058:
19059: if test "x$enable_dlopen" != xyes; then
19060: enable_dlopen=unknown
19061: enable_dlopen_self=unknown
19062: enable_dlopen_self_static=unknown
19063: else
19064: lt_cv_dlopen=no
19065: lt_cv_dlopen_libs=
19066:
19067: case $host_os in
19068: beos*)
19069: lt_cv_dlopen="load_add_on"
19070: lt_cv_dlopen_libs=
19071: lt_cv_dlopen_self=yes
19072: ;;
19073:
19074: mingw* | pw32*)
19075: lt_cv_dlopen="LoadLibrary"
19076: lt_cv_dlopen_libs=
19077: ;;
19078:
19079: cygwin*)
19080: lt_cv_dlopen="dlopen"
19081: lt_cv_dlopen_libs=
19082: ;;
19083:
19084: darwin*)
19085: # if libdl is installed we need to link against it
19086: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19087: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19088: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19089: echo $ECHO_N "(cached) $ECHO_C" >&6
19090: else
19091: ac_check_lib_save_LIBS=$LIBS
19092: LIBS="-ldl $LIBS"
19093: cat >conftest.$ac_ext <<_ACEOF
19094: #line $LINENO "configure"
19095: /* confdefs.h. */
19096: _ACEOF
19097: cat confdefs.h >>conftest.$ac_ext
19098: cat >>conftest.$ac_ext <<_ACEOF
19099: /* end confdefs.h. */
19100:
19101: /* Override any gcc2 internal prototype to avoid an error. */
19102: #ifdef __cplusplus
19103: extern "C"
19104: #endif
19105: /* We use char because int might match the return type of a gcc2
19106: builtin and then its argument prototype would still apply. */
19107: char dlopen ();
19108: int
19109: main ()
19110: {
19111: dlopen ();
19112: ;
19113: return 0;
19114: }
19115: _ACEOF
19116: rm -f conftest.$ac_objext conftest$ac_exeext
19117: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19118: (eval $ac_link) 2>&5
19119: ac_status=$?
19120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121: (exit $ac_status); } &&
19122: { ac_try='test -s conftest$ac_exeext'
19123: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124: (eval $ac_try) 2>&5
19125: ac_status=$?
19126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127: (exit $ac_status); }; }; then
19128: ac_cv_lib_dl_dlopen=yes
19129: else
19130: echo "$as_me: failed program was:" >&5
19131: sed 's/^/| /' conftest.$ac_ext >&5
19132:
19133: ac_cv_lib_dl_dlopen=no
19134: fi
19135: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19136: LIBS=$ac_check_lib_save_LIBS
19137: fi
19138: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19139: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19140: if test $ac_cv_lib_dl_dlopen = yes; then
19141: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19142: else
19143:
19144: lt_cv_dlopen="dyld"
19145: lt_cv_dlopen_libs=
19146: lt_cv_dlopen_self=yes
19147:
19148: fi
19149:
19150: ;;
19151:
19152: *)
19153: echo "$as_me:$LINENO: checking for shl_load" >&5
19154: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19155: if test "${ac_cv_func_shl_load+set}" = set; then
19156: echo $ECHO_N "(cached) $ECHO_C" >&6
19157: else
19158: cat >conftest.$ac_ext <<_ACEOF
19159: #line $LINENO "configure"
19160: /* confdefs.h. */
19161: _ACEOF
19162: cat confdefs.h >>conftest.$ac_ext
19163: cat >>conftest.$ac_ext <<_ACEOF
19164: /* end confdefs.h. */
19165: /* System header to define __stub macros and hopefully few prototypes,
19166: which can conflict with char shl_load (); below.
19167: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19168: <limits.h> exists even on freestanding compilers. */
19169: #ifdef __STDC__
19170: # include <limits.h>
19171: #else
19172: # include <assert.h>
19173: #endif
19174: /* Override any gcc2 internal prototype to avoid an error. */
19175: #ifdef __cplusplus
19176: extern "C"
19177: {
19178: #endif
19179: /* We use char because int might match the return type of a gcc2
19180: builtin and then its argument prototype would still apply. */
19181: char shl_load ();
19182: /* The GNU C library defines this for functions which it implements
19183: to always fail with ENOSYS. Some functions are actually named
19184: something starting with __ and the normal name is an alias. */
19185: #if defined (__stub_shl_load) || defined (__stub___shl_load)
19186: choke me
19187: #else
19188: char (*f) () = shl_load;
19189: #endif
19190: #ifdef __cplusplus
19191: }
19192: #endif
19193:
19194: int
19195: main ()
19196: {
19197: return f != shl_load;
19198: ;
19199: return 0;
19200: }
19201: _ACEOF
19202: rm -f conftest.$ac_objext conftest$ac_exeext
19203: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204: (eval $ac_link) 2>&5
19205: ac_status=$?
19206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207: (exit $ac_status); } &&
19208: { ac_try='test -s conftest$ac_exeext'
19209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210: (eval $ac_try) 2>&5
19211: ac_status=$?
19212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213: (exit $ac_status); }; }; then
19214: ac_cv_func_shl_load=yes
19215: else
19216: echo "$as_me: failed program was:" >&5
19217: sed 's/^/| /' conftest.$ac_ext >&5
19218:
19219: ac_cv_func_shl_load=no
19220: fi
19221: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19222: fi
19223: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19224: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19225: if test $ac_cv_func_shl_load = yes; then
19226: lt_cv_dlopen="shl_load"
19227: else
19228: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19229: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19230: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19231: echo $ECHO_N "(cached) $ECHO_C" >&6
19232: else
19233: ac_check_lib_save_LIBS=$LIBS
19234: LIBS="-ldld $LIBS"
19235: cat >conftest.$ac_ext <<_ACEOF
19236: #line $LINENO "configure"
19237: /* confdefs.h. */
19238: _ACEOF
19239: cat confdefs.h >>conftest.$ac_ext
19240: cat >>conftest.$ac_ext <<_ACEOF
19241: /* end confdefs.h. */
19242:
19243: /* Override any gcc2 internal prototype to avoid an error. */
19244: #ifdef __cplusplus
19245: extern "C"
19246: #endif
19247: /* We use char because int might match the return type of a gcc2
19248: builtin and then its argument prototype would still apply. */
19249: char shl_load ();
19250: int
19251: main ()
19252: {
19253: shl_load ();
19254: ;
19255: return 0;
19256: }
19257: _ACEOF
19258: rm -f conftest.$ac_objext conftest$ac_exeext
19259: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19260: (eval $ac_link) 2>&5
19261: ac_status=$?
19262: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263: (exit $ac_status); } &&
19264: { ac_try='test -s conftest$ac_exeext'
19265: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266: (eval $ac_try) 2>&5
19267: ac_status=$?
19268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269: (exit $ac_status); }; }; then
19270: ac_cv_lib_dld_shl_load=yes
19271: else
19272: echo "$as_me: failed program was:" >&5
19273: sed 's/^/| /' conftest.$ac_ext >&5
19274:
19275: ac_cv_lib_dld_shl_load=no
19276: fi
19277: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19278: LIBS=$ac_check_lib_save_LIBS
19279: fi
19280: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19281: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19282: if test $ac_cv_lib_dld_shl_load = yes; then
19283: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19284: else
19285: echo "$as_me:$LINENO: checking for dlopen" >&5
19286: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19287: if test "${ac_cv_func_dlopen+set}" = set; then
19288: echo $ECHO_N "(cached) $ECHO_C" >&6
19289: else
19290: cat >conftest.$ac_ext <<_ACEOF
19291: #line $LINENO "configure"
19292: /* confdefs.h. */
19293: _ACEOF
19294: cat confdefs.h >>conftest.$ac_ext
19295: cat >>conftest.$ac_ext <<_ACEOF
19296: /* end confdefs.h. */
19297: /* System header to define __stub macros and hopefully few prototypes,
19298: which can conflict with char dlopen (); below.
19299: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19300: <limits.h> exists even on freestanding compilers. */
19301: #ifdef __STDC__
19302: # include <limits.h>
19303: #else
19304: # include <assert.h>
19305: #endif
19306: /* Override any gcc2 internal prototype to avoid an error. */
19307: #ifdef __cplusplus
19308: extern "C"
19309: {
19310: #endif
19311: /* We use char because int might match the return type of a gcc2
19312: builtin and then its argument prototype would still apply. */
19313: char dlopen ();
19314: /* The GNU C library defines this for functions which it implements
19315: to always fail with ENOSYS. Some functions are actually named
19316: something starting with __ and the normal name is an alias. */
19317: #if defined (__stub_dlopen) || defined (__stub___dlopen)
19318: choke me
19319: #else
19320: char (*f) () = dlopen;
19321: #endif
19322: #ifdef __cplusplus
19323: }
19324: #endif
19325:
19326: int
19327: main ()
19328: {
19329: return f != dlopen;
19330: ;
19331: return 0;
19332: }
19333: _ACEOF
19334: rm -f conftest.$ac_objext conftest$ac_exeext
19335: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19336: (eval $ac_link) 2>&5
19337: ac_status=$?
19338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339: (exit $ac_status); } &&
19340: { ac_try='test -s conftest$ac_exeext'
19341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342: (eval $ac_try) 2>&5
19343: ac_status=$?
19344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345: (exit $ac_status); }; }; then
19346: ac_cv_func_dlopen=yes
19347: else
19348: echo "$as_me: failed program was:" >&5
19349: sed 's/^/| /' conftest.$ac_ext >&5
19350:
19351: ac_cv_func_dlopen=no
19352: fi
19353: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19354: fi
19355: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19356: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19357: if test $ac_cv_func_dlopen = yes; then
19358: lt_cv_dlopen="dlopen"
19359: else
19360: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19361: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19362: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19363: echo $ECHO_N "(cached) $ECHO_C" >&6
19364: else
19365: ac_check_lib_save_LIBS=$LIBS
19366: LIBS="-ldl $LIBS"
19367: cat >conftest.$ac_ext <<_ACEOF
19368: #line $LINENO "configure"
19369: /* confdefs.h. */
19370: _ACEOF
19371: cat confdefs.h >>conftest.$ac_ext
19372: cat >>conftest.$ac_ext <<_ACEOF
19373: /* end confdefs.h. */
19374:
19375: /* Override any gcc2 internal prototype to avoid an error. */
19376: #ifdef __cplusplus
19377: extern "C"
19378: #endif
19379: /* We use char because int might match the return type of a gcc2
19380: builtin and then its argument prototype would still apply. */
19381: char dlopen ();
19382: int
19383: main ()
19384: {
19385: dlopen ();
19386: ;
19387: return 0;
19388: }
19389: _ACEOF
19390: rm -f conftest.$ac_objext conftest$ac_exeext
19391: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19392: (eval $ac_link) 2>&5
19393: ac_status=$?
19394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395: (exit $ac_status); } &&
19396: { ac_try='test -s conftest$ac_exeext'
19397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398: (eval $ac_try) 2>&5
19399: ac_status=$?
19400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401: (exit $ac_status); }; }; then
19402: ac_cv_lib_dl_dlopen=yes
19403: else
19404: echo "$as_me: failed program was:" >&5
19405: sed 's/^/| /' conftest.$ac_ext >&5
19406:
19407: ac_cv_lib_dl_dlopen=no
19408: fi
19409: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19410: LIBS=$ac_check_lib_save_LIBS
19411: fi
19412: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19413: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19414: if test $ac_cv_lib_dl_dlopen = yes; then
19415: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19416: else
19417: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19418: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19419: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19420: echo $ECHO_N "(cached) $ECHO_C" >&6
19421: else
19422: ac_check_lib_save_LIBS=$LIBS
19423: LIBS="-lsvld $LIBS"
19424: cat >conftest.$ac_ext <<_ACEOF
19425: #line $LINENO "configure"
19426: /* confdefs.h. */
19427: _ACEOF
19428: cat confdefs.h >>conftest.$ac_ext
19429: cat >>conftest.$ac_ext <<_ACEOF
19430: /* end confdefs.h. */
19431:
19432: /* Override any gcc2 internal prototype to avoid an error. */
19433: #ifdef __cplusplus
19434: extern "C"
19435: #endif
19436: /* We use char because int might match the return type of a gcc2
19437: builtin and then its argument prototype would still apply. */
19438: char dlopen ();
19439: int
19440: main ()
19441: {
19442: dlopen ();
19443: ;
19444: return 0;
19445: }
19446: _ACEOF
19447: rm -f conftest.$ac_objext conftest$ac_exeext
19448: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449: (eval $ac_link) 2>&5
19450: ac_status=$?
19451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452: (exit $ac_status); } &&
19453: { ac_try='test -s conftest$ac_exeext'
19454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455: (eval $ac_try) 2>&5
19456: ac_status=$?
19457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458: (exit $ac_status); }; }; then
19459: ac_cv_lib_svld_dlopen=yes
19460: else
19461: echo "$as_me: failed program was:" >&5
19462: sed 's/^/| /' conftest.$ac_ext >&5
19463:
19464: ac_cv_lib_svld_dlopen=no
19465: fi
19466: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19467: LIBS=$ac_check_lib_save_LIBS
19468: fi
19469: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19470: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19471: if test $ac_cv_lib_svld_dlopen = yes; then
19472: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19473: else
19474: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19475: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19476: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19477: echo $ECHO_N "(cached) $ECHO_C" >&6
19478: else
19479: ac_check_lib_save_LIBS=$LIBS
19480: LIBS="-ldld $LIBS"
19481: cat >conftest.$ac_ext <<_ACEOF
19482: #line $LINENO "configure"
19483: /* confdefs.h. */
19484: _ACEOF
19485: cat confdefs.h >>conftest.$ac_ext
19486: cat >>conftest.$ac_ext <<_ACEOF
19487: /* end confdefs.h. */
19488:
19489: /* Override any gcc2 internal prototype to avoid an error. */
19490: #ifdef __cplusplus
19491: extern "C"
19492: #endif
19493: /* We use char because int might match the return type of a gcc2
19494: builtin and then its argument prototype would still apply. */
19495: char dld_link ();
19496: int
19497: main ()
19498: {
19499: dld_link ();
19500: ;
19501: return 0;
19502: }
19503: _ACEOF
19504: rm -f conftest.$ac_objext conftest$ac_exeext
19505: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19506: (eval $ac_link) 2>&5
19507: ac_status=$?
19508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509: (exit $ac_status); } &&
19510: { ac_try='test -s conftest$ac_exeext'
19511: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512: (eval $ac_try) 2>&5
19513: ac_status=$?
19514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515: (exit $ac_status); }; }; then
19516: ac_cv_lib_dld_dld_link=yes
19517: else
19518: echo "$as_me: failed program was:" >&5
19519: sed 's/^/| /' conftest.$ac_ext >&5
19520:
19521: ac_cv_lib_dld_dld_link=no
19522: fi
19523: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19524: LIBS=$ac_check_lib_save_LIBS
19525: fi
19526: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19527: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19528: if test $ac_cv_lib_dld_dld_link = yes; then
19529: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19530: fi
19531:
19532:
19533: fi
19534:
19535:
19536: fi
19537:
19538:
19539: fi
19540:
19541:
19542: fi
19543:
19544:
19545: fi
19546:
19547: ;;
19548: esac
19549:
19550: if test "x$lt_cv_dlopen" != xno; then
19551: enable_dlopen=yes
19552: else
19553: enable_dlopen=no
19554: fi
19555:
19556: case $lt_cv_dlopen in
19557: dlopen)
19558: save_CPPFLAGS="$CPPFLAGS"
19559: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19560:
19561: save_LDFLAGS="$LDFLAGS"
19562: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19563:
19564: save_LIBS="$LIBS"
19565: LIBS="$lt_cv_dlopen_libs $LIBS"
19566:
19567: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19568: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19569: if test "${lt_cv_dlopen_self+set}" = set; then
19570: echo $ECHO_N "(cached) $ECHO_C" >&6
19571: else
19572: if test "$cross_compiling" = yes; then :
19573: lt_cv_dlopen_self=cross
19574: else
19575: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19576: lt_status=$lt_dlunknown
19577: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 19578: #line 19578 "configure"
1.1 root 19579: #include "confdefs.h"
19580:
19581: #if HAVE_DLFCN_H
19582: #include <dlfcn.h>
19583: #endif
19584:
19585: #include <stdio.h>
19586:
19587: #ifdef RTLD_GLOBAL
19588: # define LT_DLGLOBAL RTLD_GLOBAL
19589: #else
19590: # ifdef DL_GLOBAL
19591: # define LT_DLGLOBAL DL_GLOBAL
19592: # else
19593: # define LT_DLGLOBAL 0
19594: # endif
19595: #endif
19596:
19597: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19598: find out it does not work in some platform. */
19599: #ifndef LT_DLLAZY_OR_NOW
19600: # ifdef RTLD_LAZY
19601: # define LT_DLLAZY_OR_NOW RTLD_LAZY
19602: # else
19603: # ifdef DL_LAZY
19604: # define LT_DLLAZY_OR_NOW DL_LAZY
19605: # else
19606: # ifdef RTLD_NOW
19607: # define LT_DLLAZY_OR_NOW RTLD_NOW
19608: # else
19609: # ifdef DL_NOW
19610: # define LT_DLLAZY_OR_NOW DL_NOW
19611: # else
19612: # define LT_DLLAZY_OR_NOW 0
19613: # endif
19614: # endif
19615: # endif
19616: # endif
19617: #endif
19618:
19619: #ifdef __cplusplus
19620: extern "C" void exit (int);
19621: #endif
19622:
19623: void fnord() { int i=42;}
19624: int main ()
19625: {
19626: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19627: int status = $lt_dlunknown;
19628:
19629: if (self)
19630: {
19631: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19632: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19633: /* dlclose (self); */
19634: }
19635:
19636: exit (status);
19637: }
19638: EOF
19639: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640: (eval $ac_link) 2>&5
19641: ac_status=$?
19642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19644: (./conftest; exit; ) 2>/dev/null
19645: lt_status=$?
19646: case x$lt_status in
19647: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19648: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19649: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19650: esac
19651: else :
19652: # compilation failed
19653: lt_cv_dlopen_self=no
19654: fi
19655: fi
19656: rm -fr conftest*
19657:
19658:
19659: fi
19660: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19661: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19662:
19663: if test "x$lt_cv_dlopen_self" = xyes; then
19664: LDFLAGS="$LDFLAGS $link_static_flag"
19665: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19666: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19667: if test "${lt_cv_dlopen_self_static+set}" = set; then
19668: echo $ECHO_N "(cached) $ECHO_C" >&6
19669: else
19670: if test "$cross_compiling" = yes; then :
19671: lt_cv_dlopen_self_static=cross
19672: else
19673: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19674: lt_status=$lt_dlunknown
19675: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 19676: #line 19676 "configure"
1.1 root 19677: #include "confdefs.h"
19678:
19679: #if HAVE_DLFCN_H
19680: #include <dlfcn.h>
19681: #endif
19682:
19683: #include <stdio.h>
19684:
19685: #ifdef RTLD_GLOBAL
19686: # define LT_DLGLOBAL RTLD_GLOBAL
19687: #else
19688: # ifdef DL_GLOBAL
19689: # define LT_DLGLOBAL DL_GLOBAL
19690: # else
19691: # define LT_DLGLOBAL 0
19692: # endif
19693: #endif
19694:
19695: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19696: find out it does not work in some platform. */
19697: #ifndef LT_DLLAZY_OR_NOW
19698: # ifdef RTLD_LAZY
19699: # define LT_DLLAZY_OR_NOW RTLD_LAZY
19700: # else
19701: # ifdef DL_LAZY
19702: # define LT_DLLAZY_OR_NOW DL_LAZY
19703: # else
19704: # ifdef RTLD_NOW
19705: # define LT_DLLAZY_OR_NOW RTLD_NOW
19706: # else
19707: # ifdef DL_NOW
19708: # define LT_DLLAZY_OR_NOW DL_NOW
19709: # else
19710: # define LT_DLLAZY_OR_NOW 0
19711: # endif
19712: # endif
19713: # endif
19714: # endif
19715: #endif
19716:
19717: #ifdef __cplusplus
19718: extern "C" void exit (int);
19719: #endif
19720:
19721: void fnord() { int i=42;}
19722: int main ()
19723: {
19724: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19725: int status = $lt_dlunknown;
19726:
19727: if (self)
19728: {
19729: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19730: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19731: /* dlclose (self); */
19732: }
19733:
19734: exit (status);
19735: }
19736: EOF
19737: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19738: (eval $ac_link) 2>&5
19739: ac_status=$?
19740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19742: (./conftest; exit; ) 2>/dev/null
19743: lt_status=$?
19744: case x$lt_status in
19745: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19746: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19747: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19748: esac
19749: else :
19750: # compilation failed
19751: lt_cv_dlopen_self_static=no
19752: fi
19753: fi
19754: rm -fr conftest*
19755:
19756:
19757: fi
19758: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19759: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19760: fi
19761:
19762: CPPFLAGS="$save_CPPFLAGS"
19763: LDFLAGS="$save_LDFLAGS"
19764: LIBS="$save_LIBS"
19765: ;;
19766: esac
19767:
19768: case $lt_cv_dlopen_self in
19769: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19770: *) enable_dlopen_self=unknown ;;
19771: esac
19772:
19773: case $lt_cv_dlopen_self_static in
19774: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19775: *) enable_dlopen_self_static=unknown ;;
19776: esac
19777: fi
19778:
19779:
19780: # The else clause should only fire when bootstrapping the
19781: # libtool distribution, otherwise you forgot to ship ltmain.sh
19782: # with your package, and you will get complaints that there are
19783: # no rules to generate ltmain.sh.
19784: if test -f "$ltmain"; then
19785: # See if we are running on zsh, and set the options which allow our commands through
19786: # without removal of \ escapes.
19787: if test -n "${ZSH_VERSION+set}" ; then
19788: setopt NO_GLOB_SUBST
19789: fi
19790: # Now quote all the things that may contain metacharacters while being
19791: # careful not to overquote the AC_SUBSTed values. We take copies of the
19792: # variables and quote the copies for generation of the libtool script.
19793: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19794: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19795: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19796: deplibs_check_method reload_flag reload_cmds need_locks \
19797: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19798: lt_cv_sys_global_symbol_to_c_name_address \
19799: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19800: old_postinstall_cmds old_postuninstall_cmds \
19801: compiler_CXX \
19802: CC_CXX \
19803: LD_CXX \
19804: lt_prog_compiler_wl_CXX \
19805: lt_prog_compiler_pic_CXX \
19806: lt_prog_compiler_static_CXX \
19807: lt_prog_compiler_no_builtin_flag_CXX \
19808: export_dynamic_flag_spec_CXX \
19809: thread_safe_flag_spec_CXX \
19810: whole_archive_flag_spec_CXX \
19811: enable_shared_with_static_runtimes_CXX \
19812: old_archive_cmds_CXX \
19813: old_archive_from_new_cmds_CXX \
19814: predep_objects_CXX \
19815: postdep_objects_CXX \
19816: predeps_CXX \
19817: postdeps_CXX \
19818: compiler_lib_search_path_CXX \
19819: archive_cmds_CXX \
19820: archive_expsym_cmds_CXX \
19821: postinstall_cmds_CXX \
19822: postuninstall_cmds_CXX \
19823: old_archive_from_expsyms_cmds_CXX \
19824: allow_undefined_flag_CXX \
19825: no_undefined_flag_CXX \
19826: export_symbols_cmds_CXX \
19827: hardcode_libdir_flag_spec_CXX \
19828: hardcode_libdir_flag_spec_ld_CXX \
19829: hardcode_libdir_separator_CXX \
19830: hardcode_automatic_CXX \
19831: module_cmds_CXX \
19832: module_expsym_cmds_CXX \
19833: lt_cv_prog_compiler_c_o_CXX \
19834: exclude_expsyms_CXX \
19835: include_expsyms_CXX; do
19836:
19837: case $var in
19838: old_archive_cmds_CXX | \
19839: old_archive_from_new_cmds_CXX | \
19840: archive_cmds_CXX | \
19841: archive_expsym_cmds_CXX | \
19842: module_cmds_CXX | \
19843: module_expsym_cmds_CXX | \
19844: old_archive_from_expsyms_cmds_CXX | \
19845: export_symbols_cmds_CXX | \
19846: extract_expsyms_cmds | reload_cmds | finish_cmds | \
19847: postinstall_cmds | postuninstall_cmds | \
19848: old_postinstall_cmds | old_postuninstall_cmds | \
19849: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19850: # Double-quote double-evaled strings.
19851: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19852: ;;
19853: *)
19854: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19855: ;;
19856: esac
19857: done
19858:
19859: case $lt_echo in
19860: *'\$0 --fallback-echo"')
19861: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19862: ;;
19863: esac
19864:
19865: cfgfile="$ofile"
19866:
19867: cat <<__EOF__ >> "$cfgfile"
19868: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19869:
19870: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19871:
19872: # Shell to use when invoking shell scripts.
19873: SHELL=$lt_SHELL
19874:
19875: # Whether or not to build shared libraries.
19876: build_libtool_libs=$enable_shared
19877:
19878: # Whether or not to build static libraries.
19879: build_old_libs=$enable_static
19880:
19881: # Whether or not to add -lc for building shared libraries.
19882: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19883:
19884: # Whether or not to disallow shared libs when runtime libs are static
19885: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19886:
19887: # Whether or not to optimize for fast installation.
19888: fast_install=$enable_fast_install
19889:
19890: # The host system.
19891: host_alias=$host_alias
19892: host=$host
19893:
19894: # An echo program that does not interpret backslashes.
19895: echo=$lt_echo
19896:
19897: # The archiver.
19898: AR=$lt_AR
19899: AR_FLAGS=$lt_AR_FLAGS
19900:
19901: # A C compiler.
19902: LTCC=$lt_LTCC
19903:
19904: # A language-specific compiler.
19905: CC=$lt_compiler_CXX
19906:
19907: # Is the compiler the GNU C compiler?
19908: with_gcc=$GCC_CXX
19909:
19910: # An ERE matcher.
19911: EGREP=$lt_EGREP
19912:
19913: # The linker used to build libraries.
19914: LD=$lt_LD_CXX
19915:
19916: # Whether we need hard or soft links.
19917: LN_S=$lt_LN_S
19918:
19919: # A BSD-compatible nm program.
19920: NM=$lt_NM
19921:
19922: # A symbol stripping program
19923: STRIP=$STRIP
19924:
19925: # Used to examine libraries when file_magic_cmd begins "file"
19926: MAGIC_CMD=$MAGIC_CMD
19927:
19928: # Used on cygwin: DLL creation program.
19929: DLLTOOL="$DLLTOOL"
19930:
19931: # Used on cygwin: object dumper.
19932: OBJDUMP="$OBJDUMP"
19933:
19934: # Used on cygwin: assembler.
19935: AS="$AS"
19936:
19937: # The name of the directory that contains temporary libtool files.
19938: objdir=$objdir
19939:
19940: # How to create reloadable object files.
19941: reload_flag=$lt_reload_flag
19942: reload_cmds=$lt_reload_cmds
19943:
19944: # How to pass a linker flag through the compiler.
19945: wl=$lt_lt_prog_compiler_wl_CXX
19946:
19947: # Object file suffix (normally "o").
19948: objext="$ac_objext"
19949:
19950: # Old archive suffix (normally "a").
19951: libext="$libext"
19952:
19953: # Shared library suffix (normally ".so").
19954: shrext='$shrext'
19955:
19956: # Executable file suffix (normally "").
19957: exeext="$exeext"
19958:
19959: # Additional compiler flags for building library objects.
19960: pic_flag=$lt_lt_prog_compiler_pic_CXX
19961: pic_mode=$pic_mode
19962:
19963: # What is the maximum length of a command?
19964: max_cmd_len=$lt_cv_sys_max_cmd_len
19965:
19966: # Does compiler simultaneously support -c and -o options?
19967: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19968:
19969: # Must we lock files when doing compilation ?
19970: need_locks=$lt_need_locks
19971:
19972: # Do we need the lib prefix for modules?
19973: need_lib_prefix=$need_lib_prefix
19974:
19975: # Do we need a version for libraries?
19976: need_version=$need_version
19977:
19978: # Whether dlopen is supported.
19979: dlopen_support=$enable_dlopen
19980:
19981: # Whether dlopen of programs is supported.
19982: dlopen_self=$enable_dlopen_self
19983:
19984: # Whether dlopen of statically linked programs is supported.
19985: dlopen_self_static=$enable_dlopen_self_static
19986:
19987: # Compiler flag to prevent dynamic linking.
19988: link_static_flag=$lt_lt_prog_compiler_static_CXX
19989:
19990: # Compiler flag to turn off builtin functions.
19991: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19992:
19993: # Compiler flag to allow reflexive dlopens.
19994: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19995:
19996: # Compiler flag to generate shared objects directly from archives.
19997: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19998:
19999: # Compiler flag to generate thread-safe objects.
20000: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20001:
20002: # Library versioning type.
20003: version_type=$version_type
20004:
20005: # Format of library name prefix.
20006: libname_spec=$lt_libname_spec
20007:
20008: # List of archive names. First name is the real one, the rest are links.
20009: # The last name is the one that the linker finds with -lNAME.
20010: library_names_spec=$lt_library_names_spec
20011:
20012: # The coded name of the library, if different from the real name.
20013: soname_spec=$lt_soname_spec
20014:
20015: # Commands used to build and install an old-style archive.
20016: RANLIB=$lt_RANLIB
20017: old_archive_cmds=$lt_old_archive_cmds_CXX
20018: old_postinstall_cmds=$lt_old_postinstall_cmds
20019: old_postuninstall_cmds=$lt_old_postuninstall_cmds
20020:
20021: # Create an old-style archive from a shared archive.
20022: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20023:
20024: # Create a temporary old-style archive to link instead of a shared archive.
20025: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20026:
20027: # Commands used to build and install a shared archive.
20028: archive_cmds=$lt_archive_cmds_CXX
20029: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20030: postinstall_cmds=$lt_postinstall_cmds
20031: postuninstall_cmds=$lt_postuninstall_cmds
20032:
20033: # Commands used to build a loadable module (assumed same as above if empty)
20034: module_cmds=$lt_module_cmds_CXX
20035: module_expsym_cmds=$lt_module_expsym_cmds_CXX
20036:
20037: # Commands to strip libraries.
20038: old_striplib=$lt_old_striplib
20039: striplib=$lt_striplib
20040:
20041: # Dependencies to place before the objects being linked to create a
20042: # shared library.
20043: predep_objects=$lt_predep_objects_CXX
20044:
20045: # Dependencies to place after the objects being linked to create a
20046: # shared library.
20047: postdep_objects=$lt_postdep_objects_CXX
20048:
20049: # Dependencies to place before the objects being linked to create a
20050: # shared library.
20051: predeps=$lt_predeps_CXX
20052:
20053: # Dependencies to place after the objects being linked to create a
20054: # shared library.
20055: postdeps=$lt_postdeps_CXX
20056:
20057: # The library search path used internally by the compiler when linking
20058: # a shared library.
20059: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20060:
20061: # Method to check whether dependent libraries are shared objects.
20062: deplibs_check_method=$lt_deplibs_check_method
20063:
20064: # Command to use when deplibs_check_method == file_magic.
20065: file_magic_cmd=$lt_file_magic_cmd
20066:
20067: # Flag that allows shared libraries with undefined symbols to be built.
20068: allow_undefined_flag=$lt_allow_undefined_flag_CXX
20069:
20070: # Flag that forces no undefined symbols.
20071: no_undefined_flag=$lt_no_undefined_flag_CXX
20072:
20073: # Commands used to finish a libtool library installation in a directory.
20074: finish_cmds=$lt_finish_cmds
20075:
20076: # Same as above, but a single script fragment to be evaled but not shown.
20077: finish_eval=$lt_finish_eval
20078:
20079: # Take the output of nm and produce a listing of raw symbols and C names.
20080: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20081:
20082: # Transform the output of nm in a proper C declaration
20083: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20084:
20085: # Transform the output of nm in a C name address pair
20086: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20087:
20088: # This is the shared library runtime path variable.
20089: runpath_var=$runpath_var
20090:
20091: # This is the shared library path variable.
20092: shlibpath_var=$shlibpath_var
20093:
20094: # Is shlibpath searched before the hard-coded library search path?
20095: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20096:
20097: # How to hardcode a shared library path into an executable.
20098: hardcode_action=$hardcode_action_CXX
20099:
20100: # Whether we should hardcode library paths into libraries.
20101: hardcode_into_libs=$hardcode_into_libs
20102:
20103: # Flag to hardcode \$libdir into a binary during linking.
20104: # This must work even if \$libdir does not exist.
20105: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20106:
20107: # If ld is used when linking, flag to hardcode \$libdir into
20108: # a binary during linking. This must work even if \$libdir does
20109: # not exist.
20110: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20111:
20112: # Whether we need a single -rpath flag with a separated argument.
20113: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20114:
20115: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20116: # resulting binary.
20117: hardcode_direct=$hardcode_direct_CXX
20118:
20119: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20120: # resulting binary.
20121: hardcode_minus_L=$hardcode_minus_L_CXX
20122:
20123: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20124: # the resulting binary.
20125: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20126:
20127: # Set to yes if building a shared library automatically hardcodes DIR into the library
20128: # and all subsequent libraries and executables linked against it.
20129: hardcode_automatic=$hardcode_automatic_CXX
20130:
20131: # Variables whose values should be saved in libtool wrapper scripts and
20132: # restored at relink time.
20133: variables_saved_for_relink="$variables_saved_for_relink"
20134:
20135: # Whether libtool must link a program against all its dependency libraries.
20136: link_all_deplibs=$link_all_deplibs_CXX
20137:
20138: # Compile-time system search path for libraries
20139: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20140:
20141: # Run-time system search path for libraries
20142: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20143:
20144: # Fix the shell variable \$srcfile for the compiler.
20145: fix_srcfile_path="$fix_srcfile_path_CXX"
20146:
20147: # Set to yes if exported symbols are required.
20148: always_export_symbols=$always_export_symbols_CXX
20149:
20150: # The commands to list exported symbols.
20151: export_symbols_cmds=$lt_export_symbols_cmds_CXX
20152:
20153: # The commands to extract the exported symbol list from a shared archive.
20154: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20155:
20156: # Symbols that should not be listed in the preloaded symbols.
20157: exclude_expsyms=$lt_exclude_expsyms_CXX
20158:
20159: # Symbols that must always be exported.
20160: include_expsyms=$lt_include_expsyms_CXX
20161:
20162: # ### END LIBTOOL TAG CONFIG: $tagname
20163:
20164: __EOF__
20165:
20166:
20167: else
20168: # If there is no Makefile yet, we rely on a make rule to execute
20169: # `config.status --recheck' to rerun these tests and create the
20170: # libtool script then.
20171: test -f Makefile && make "$ltmain"
20172: fi
20173:
20174:
20175: ac_ext=c
20176: ac_cpp='$CPP $CPPFLAGS'
20177: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180:
20181: CC=$lt_save_CC
20182: LDCXX=$LD
20183: LD=$lt_save_LD
20184: GCC=$lt_save_GCC
20185: with_gnu_ldcxx=$with_gnu_ld
20186: with_gnu_ld=$lt_save_with_gnu_ld
20187: lt_cv_path_LDCXX=$lt_cv_path_LD
20188: lt_cv_path_LD=$lt_save_path_LD
20189: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20190: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20191:
20192: else
20193: tagname=""
20194: fi
20195: ;;
20196:
20197: F77)
20198: if test -n "$F77" && test "X$F77" != "Xno"; then
20199:
20200: ac_ext=f
20201: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20202: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20203: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20204:
20205:
20206: archive_cmds_need_lc_F77=no
20207: allow_undefined_flag_F77=
20208: always_export_symbols_F77=no
20209: archive_expsym_cmds_F77=
20210: export_dynamic_flag_spec_F77=
20211: hardcode_direct_F77=no
20212: hardcode_libdir_flag_spec_F77=
20213: hardcode_libdir_flag_spec_ld_F77=
20214: hardcode_libdir_separator_F77=
20215: hardcode_minus_L_F77=no
20216: hardcode_automatic_F77=no
20217: module_cmds_F77=
20218: module_expsym_cmds_F77=
20219: link_all_deplibs_F77=unknown
20220: old_archive_cmds_F77=$old_archive_cmds
20221: no_undefined_flag_F77=
20222: whole_archive_flag_spec_F77=
20223: enable_shared_with_static_runtimes_F77=no
20224:
20225: # Source file extension for f77 test sources.
20226: ac_ext=f
20227:
20228: # Object file extension for compiled f77 test sources.
20229: objext=o
20230: objext_F77=$objext
20231:
20232: # Code to be used in simple compile tests
20233: lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20234:
20235: # Code to be used in simple link tests
20236: lt_simple_link_test_code=" program t\n end\n"
20237:
20238: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20239:
20240: # If no C compiler was specified, use CC.
20241: LTCC=${LTCC-"$CC"}
20242:
20243: # Allow CC to be a program name with arguments.
20244: compiler=$CC
20245:
20246:
20247: # Allow CC to be a program name with arguments.
20248: lt_save_CC="$CC"
20249: CC=${F77-"f77"}
20250: compiler=$CC
20251: compiler_F77=$CC
20252: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20253:
20254: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20255: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20256: echo "$as_me:$LINENO: result: $can_build_shared" >&5
20257: echo "${ECHO_T}$can_build_shared" >&6
20258:
20259: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20260: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20261: test "$can_build_shared" = "no" && enable_shared=no
20262:
20263: # On AIX, shared libraries and static libraries use the same namespace, and
20264: # are all built from PIC.
20265: case "$host_os" in
20266: aix3*)
20267: test "$enable_shared" = yes && enable_static=no
20268: if test -n "$RANLIB"; then
20269: archive_cmds="$archive_cmds~\$RANLIB \$lib"
20270: postinstall_cmds='$RANLIB $lib'
20271: fi
20272: ;;
20273: aix4*)
20274: test "$enable_shared" = yes && enable_static=no
20275: ;;
20276: esac
20277: echo "$as_me:$LINENO: result: $enable_shared" >&5
20278: echo "${ECHO_T}$enable_shared" >&6
20279:
20280: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20281: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20282: # Make sure either enable_shared or enable_static is yes.
20283: test "$enable_shared" = yes || enable_static=yes
20284: echo "$as_me:$LINENO: result: $enable_static" >&5
20285: echo "${ECHO_T}$enable_static" >&6
20286:
20287: test "$ld_shlibs_F77" = no && can_build_shared=no
20288:
20289: GCC_F77="$G77"
20290: LD_F77="$LD"
20291:
20292: lt_prog_compiler_wl_F77=
20293: lt_prog_compiler_pic_F77=
20294: lt_prog_compiler_static_F77=
20295:
20296: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20297: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20298:
20299: if test "$GCC" = yes; then
20300: lt_prog_compiler_wl_F77='-Wl,'
20301: lt_prog_compiler_static_F77='-static'
20302:
20303: case $host_os in
20304: aix*)
20305: # All AIX code is PIC.
20306: if test "$host_cpu" = ia64; then
20307: # AIX 5 now supports IA64 processor
20308: lt_prog_compiler_static_F77='-Bstatic'
20309: fi
20310: ;;
20311:
20312: amigaos*)
20313: # FIXME: we need at least 68020 code to build shared libraries, but
20314: # adding the `-m68020' flag to GCC prevents building anything better,
20315: # like `-m68040'.
20316: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20317: ;;
20318:
20319: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20320: # PIC is the default for these OSes.
20321: ;;
20322:
20323: mingw* | pw32* | os2*)
20324: # This hack is so that the source file can tell whether it is being
20325: # built for inclusion in a dll (and should export symbols for example).
20326: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20327: ;;
20328:
20329: darwin* | rhapsody*)
20330: # PIC is the default on this platform
20331: # Common symbols not allowed in MH_DYLIB files
20332: lt_prog_compiler_pic_F77='-fno-common'
20333: ;;
20334:
20335: msdosdjgpp*)
20336: # Just because we use GCC doesn't mean we suddenly get shared libraries
20337: # on systems that don't support them.
20338: lt_prog_compiler_can_build_shared_F77=no
20339: enable_shared=no
20340: ;;
20341:
20342: sysv4*MP*)
20343: if test -d /usr/nec; then
20344: lt_prog_compiler_pic_F77=-Kconform_pic
20345: fi
20346: ;;
20347:
20348: hpux*)
20349: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20350: # not for PA HP-UX.
20351: case "$host_cpu" in
20352: hppa*64*|ia64*)
20353: # +Z the default
20354: ;;
20355: *)
20356: lt_prog_compiler_pic_F77='-fPIC'
20357: ;;
20358: esac
20359: ;;
20360:
20361: *)
20362: lt_prog_compiler_pic_F77='-fPIC'
20363: ;;
20364: esac
20365: else
20366: # PORTME Check for flag to pass linker flags through the system compiler.
20367: case $host_os in
20368: aix*)
20369: lt_prog_compiler_wl_F77='-Wl,'
20370: if test "$host_cpu" = ia64; then
20371: # AIX 5 now supports IA64 processor
20372: lt_prog_compiler_static_F77='-Bstatic'
20373: else
20374: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20375: fi
20376: ;;
20377:
20378: mingw* | pw32* | os2*)
20379: # This hack is so that the source file can tell whether it is being
20380: # built for inclusion in a dll (and should export symbols for example).
20381: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20382: ;;
20383:
20384: hpux9* | hpux10* | hpux11*)
20385: lt_prog_compiler_wl_F77='-Wl,'
20386: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20387: # not for PA HP-UX.
20388: case "$host_cpu" in
20389: hppa*64*|ia64*)
20390: # +Z the default
20391: ;;
20392: *)
20393: lt_prog_compiler_pic_F77='+Z'
20394: ;;
20395: esac
20396: # Is there a better lt_prog_compiler_static that works with the bundled CC?
20397: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20398: ;;
20399:
20400: irix5* | irix6* | nonstopux*)
20401: lt_prog_compiler_wl_F77='-Wl,'
20402: # PIC (with -KPIC) is the default.
20403: lt_prog_compiler_static_F77='-non_shared'
20404: ;;
20405:
20406: newsos6)
20407: lt_prog_compiler_pic_F77='-KPIC'
20408: lt_prog_compiler_static_F77='-Bstatic'
20409: ;;
20410:
20411: linux*)
20412: case $CC in
20413: icc|ecc)
20414: lt_prog_compiler_wl_F77='-Wl,'
20415: lt_prog_compiler_pic_F77='-KPIC'
20416: lt_prog_compiler_static_F77='-static'
20417: ;;
20418: ccc)
20419: lt_prog_compiler_wl_F77='-Wl,'
20420: # All Alpha code is PIC.
20421: lt_prog_compiler_static_F77='-non_shared'
20422: ;;
20423: esac
20424: ;;
20425:
20426: osf3* | osf4* | osf5*)
20427: lt_prog_compiler_wl_F77='-Wl,'
20428: # All OSF/1 code is PIC.
20429: lt_prog_compiler_static_F77='-non_shared'
20430: ;;
20431:
20432: sco3.2v5*)
20433: lt_prog_compiler_pic_F77='-Kpic'
20434: lt_prog_compiler_static_F77='-dn'
20435: ;;
20436:
20437: solaris*)
20438: lt_prog_compiler_wl_F77='-Wl,'
20439: lt_prog_compiler_pic_F77='-KPIC'
20440: lt_prog_compiler_static_F77='-Bstatic'
20441: ;;
20442:
20443: sunos4*)
20444: lt_prog_compiler_wl_F77='-Qoption ld '
20445: lt_prog_compiler_pic_F77='-PIC'
20446: lt_prog_compiler_static_F77='-Bstatic'
20447: ;;
20448:
20449: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20450: lt_prog_compiler_wl_F77='-Wl,'
20451: lt_prog_compiler_pic_F77='-KPIC'
20452: lt_prog_compiler_static_F77='-Bstatic'
20453: ;;
20454:
20455: sysv4*MP*)
20456: if test -d /usr/nec ;then
20457: lt_prog_compiler_pic_F77='-Kconform_pic'
20458: lt_prog_compiler_static_F77='-Bstatic'
20459: fi
20460: ;;
20461:
20462: uts4*)
20463: lt_prog_compiler_pic_F77='-pic'
20464: lt_prog_compiler_static_F77='-Bstatic'
20465: ;;
20466:
20467: *)
20468: lt_prog_compiler_can_build_shared_F77=no
20469: ;;
20470: esac
20471: fi
20472:
20473: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20474: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20475:
20476: #
20477: # Check to make sure the PIC flag actually works.
20478: #
20479: if test -n "$lt_prog_compiler_pic_F77"; then
20480: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20481: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20482: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20483: echo $ECHO_N "(cached) $ECHO_C" >&6
20484: else
20485: lt_prog_compiler_pic_works_F77=no
20486: ac_outfile=conftest.$ac_objext
20487: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20488: lt_compiler_flag="$lt_prog_compiler_pic_F77"
20489: # Insert the option either (1) after the last *FLAGS variable, or
20490: # (2) before a word containing "conftest.", or (3) at the end.
20491: # Note that $ac_compile itself does not contain backslashes and begins
20492: # with a dollar sign (not a hyphen), so the echo should work correctly.
20493: # The option is referenced via a variable to avoid confusing sed.
20494: lt_compile=`echo "$ac_compile" | $SED \
20495: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20496: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20497: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 20498: (eval echo "\"\$as_me:20498: $lt_compile\"" >&5)
1.1 root 20499: (eval "$lt_compile" 2>conftest.err)
20500: ac_status=$?
20501: cat conftest.err >&5
1.1.1.4 ! root 20502: echo "$as_me:20502: \$? = $ac_status" >&5
1.1 root 20503: if (exit $ac_status) && test -s "$ac_outfile"; then
20504: # The compiler can only warn and ignore the option if not recognized
20505: # So say no if there are warnings
20506: if test ! -s conftest.err; then
20507: lt_prog_compiler_pic_works_F77=yes
20508: fi
20509: fi
20510: $rm conftest*
20511:
20512: fi
20513: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20514: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20515:
20516: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20517: case $lt_prog_compiler_pic_F77 in
20518: "" | " "*) ;;
20519: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20520: esac
20521: else
20522: lt_prog_compiler_pic_F77=
20523: lt_prog_compiler_can_build_shared_F77=no
20524: fi
20525:
20526: fi
20527: case "$host_os" in
20528: # For platforms which do not support PIC, -DPIC is meaningless:
20529: *djgpp*)
20530: lt_prog_compiler_pic_F77=
20531: ;;
20532: *)
20533: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20534: ;;
20535: esac
20536:
20537: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20538: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20539: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20540: echo $ECHO_N "(cached) $ECHO_C" >&6
20541: else
20542: lt_cv_prog_compiler_c_o_F77=no
20543: $rm -r conftest 2>/dev/null
20544: mkdir conftest
20545: cd conftest
20546: mkdir out
20547: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20548:
20549: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
20550: # that will create temporary files in the current directory regardless of
20551: # the output directory. Thus, making CWD read-only will cause this test
20552: # to fail, enabling locking or at least warning the user not to do parallel
20553: # builds.
20554: chmod -w .
20555:
20556: lt_compiler_flag="-o out/conftest2.$ac_objext"
20557: # Insert the option either (1) after the last *FLAGS variable, or
20558: # (2) before a word containing "conftest.", or (3) at the end.
20559: # Note that $ac_compile itself does not contain backslashes and begins
20560: # with a dollar sign (not a hyphen), so the echo should work correctly.
20561: lt_compile=`echo "$ac_compile" | $SED \
20562: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20563: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20564: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 20565: (eval echo "\"\$as_me:20565: $lt_compile\"" >&5)
1.1 root 20566: (eval "$lt_compile" 2>out/conftest.err)
20567: ac_status=$?
20568: cat out/conftest.err >&5
1.1.1.4 ! root 20569: echo "$as_me:20569: \$? = $ac_status" >&5
1.1 root 20570: if (exit $ac_status) && test -s out/conftest2.$ac_objext
20571: then
20572: # The compiler can only warn and ignore the option if not recognized
20573: # So say no if there are warnings
20574: if test ! -s out/conftest.err; then
20575: lt_cv_prog_compiler_c_o_F77=yes
20576: fi
20577: fi
20578: chmod u+w .
20579: $rm conftest* out/*
20580: rmdir out
20581: cd ..
20582: rmdir conftest
20583: $rm conftest*
20584:
20585: fi
20586: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20587: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20588:
20589:
20590: hard_links="nottested"
20591: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20592: # do not overwrite the value of need_locks provided by the user
20593: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20594: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20595: hard_links=yes
20596: $rm conftest*
20597: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20598: touch conftest.a
20599: ln conftest.a conftest.b 2>&5 || hard_links=no
20600: ln conftest.a conftest.b 2>/dev/null && hard_links=no
20601: echo "$as_me:$LINENO: result: $hard_links" >&5
20602: echo "${ECHO_T}$hard_links" >&6
20603: if test "$hard_links" = no; then
20604: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20605: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20606: need_locks=warn
20607: fi
20608: else
20609: need_locks=no
20610: fi
20611:
20612: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20613: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20614:
20615: runpath_var=
20616: allow_undefined_flag_F77=
20617: enable_shared_with_static_runtimes_F77=no
20618: archive_cmds_F77=
20619: archive_expsym_cmds_F77=
20620: old_archive_From_new_cmds_F77=
20621: old_archive_from_expsyms_cmds_F77=
20622: export_dynamic_flag_spec_F77=
20623: whole_archive_flag_spec_F77=
20624: thread_safe_flag_spec_F77=
20625: hardcode_libdir_flag_spec_F77=
20626: hardcode_libdir_flag_spec_ld_F77=
20627: hardcode_libdir_separator_F77=
20628: hardcode_direct_F77=no
20629: hardcode_minus_L_F77=no
20630: hardcode_shlibpath_var_F77=unsupported
20631: link_all_deplibs_F77=unknown
20632: hardcode_automatic_F77=no
20633: module_cmds_F77=
20634: module_expsym_cmds_F77=
20635: always_export_symbols_F77=no
20636: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20637: # include_expsyms should be a list of space-separated symbols to be *always*
20638: # included in the symbol list
20639: include_expsyms_F77=
20640: # exclude_expsyms can be an extended regexp of symbols to exclude
20641: # it will be wrapped by ` (' and `)$', so one must not match beginning or
20642: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20643: # as well as any symbol that contains `d'.
20644: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20645: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20646: # platforms (ab)use it in PIC code, but their linkers get confused if
20647: # the symbol is explicitly referenced. Since portable code cannot
20648: # rely on this symbol name, it's probably fine to never include it in
20649: # preloaded symbol tables.
20650: extract_expsyms_cmds=
20651:
20652: case $host_os in
20653: cygwin* | mingw* | pw32*)
20654: # FIXME: the MSVC++ port hasn't been tested in a loooong time
20655: # When not using gcc, we currently assume that we are using
20656: # Microsoft Visual C++.
20657: if test "$GCC" != yes; then
20658: with_gnu_ld=no
20659: fi
20660: ;;
20661: openbsd*)
20662: with_gnu_ld=no
20663: ;;
20664: esac
20665:
20666: ld_shlibs_F77=yes
20667: if test "$with_gnu_ld" = yes; then
20668: # If archive_cmds runs LD, not CC, wlarc should be empty
20669: wlarc='${wl}'
20670:
20671: # See if GNU ld supports shared libraries.
20672: case $host_os in
20673: aix3* | aix4* | aix5*)
20674: # On AIX/PPC, the GNU linker is very broken
20675: if test "$host_cpu" != ia64; then
20676: ld_shlibs_F77=no
20677: cat <<EOF 1>&2
20678:
20679: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20680: *** to be unable to reliably create shared libraries on AIX.
20681: *** Therefore, libtool is disabling shared libraries support. If you
20682: *** really care for shared libraries, you may want to modify your PATH
20683: *** so that a non-GNU linker is found, and then restart.
20684:
20685: EOF
20686: fi
20687: ;;
20688:
20689: amigaos*)
20690: archive_cmds_F77='$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)'
20691: hardcode_libdir_flag_spec_F77='-L$libdir'
20692: hardcode_minus_L_F77=yes
20693:
20694: # Samuel A. Falvo II <[email protected]> reports
20695: # that the semantics of dynamic libraries on AmigaOS, at least up
20696: # to version 4, is to share data among multiple programs linked
20697: # with the same dynamic library. Since this doesn't match the
20698: # behavior of shared libraries on other platforms, we can't use
20699: # them.
20700: ld_shlibs_F77=no
20701: ;;
20702:
20703: beos*)
20704: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20705: allow_undefined_flag_F77=unsupported
20706: # Joseph Beckenbach <[email protected]> says some releases of gcc
20707: # support --undefined. This deserves some investigation. FIXME
20708: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20709: else
20710: ld_shlibs_F77=no
20711: fi
20712: ;;
20713:
20714: cygwin* | mingw* | pw32*)
20715: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20716: # as there is no search path for DLLs.
20717: hardcode_libdir_flag_spec_F77='-L$libdir'
20718: allow_undefined_flag_F77=unsupported
20719: always_export_symbols_F77=no
20720: enable_shared_with_static_runtimes_F77=yes
20721: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20722:
20723: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20724: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20725: # If the export-symbols file already is a .def file (1st line
20726: # is EXPORTS), use it as is; otherwise, prepend...
20727: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20728: cp $export_symbols $output_objdir/$soname.def;
20729: else
20730: echo EXPORTS > $output_objdir/$soname.def;
20731: cat $export_symbols >> $output_objdir/$soname.def;
20732: fi~
20733: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20734: else
20735: ld_shlibs=no
20736: fi
20737: ;;
20738:
20739: netbsd*)
20740: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20741: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20742: wlarc=
20743: else
20744: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20745: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20746: fi
20747: ;;
20748:
20749: solaris* | sysv5*)
20750: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20751: ld_shlibs_F77=no
20752: cat <<EOF 1>&2
20753:
20754: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20755: *** create shared libraries on Solaris systems. Therefore, libtool
20756: *** is disabling shared libraries support. We urge you to upgrade GNU
20757: *** binutils to release 2.9.1 or newer. Another option is to modify
20758: *** your PATH or compiler configuration so that the native linker is
20759: *** used, and then restart.
20760:
20761: EOF
20762: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20763: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20764: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20765: else
20766: ld_shlibs_F77=no
20767: fi
20768: ;;
20769:
20770: sunos4*)
20771: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20772: wlarc=
20773: hardcode_direct_F77=yes
20774: hardcode_shlibpath_var_F77=no
20775: ;;
20776:
20777: *)
20778: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20779: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20780: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20781: else
20782: ld_shlibs_F77=no
20783: fi
20784: ;;
20785: esac
20786:
20787: if test "$ld_shlibs_F77" = yes; then
20788: runpath_var=LD_RUN_PATH
20789: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20790: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20791: # ancient GNU ld didn't support --whole-archive et. al.
20792: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20793: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20794: else
20795: whole_archive_flag_spec_F77=
20796: fi
20797: fi
20798: else
20799: # PORTME fill in a description of your system's linker (not GNU ld)
20800: case $host_os in
20801: aix3*)
20802: allow_undefined_flag_F77=unsupported
20803: always_export_symbols_F77=yes
20804: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20805: # Note: this linker hardcodes the directories in LIBPATH if there
20806: # are no directories specified by -L.
20807: hardcode_minus_L_F77=yes
20808: if test "$GCC" = yes && test -z "$link_static_flag"; then
20809: # Neither direct hardcoding nor static linking is supported with a
20810: # broken collect2.
20811: hardcode_direct_F77=unsupported
20812: fi
20813: ;;
20814:
20815: aix4* | aix5*)
20816: if test "$host_cpu" = ia64; then
20817: # On IA64, the linker does run time linking by default, so we don't
20818: # have to do anything special.
20819: aix_use_runtimelinking=no
20820: exp_sym_flag='-Bexport'
20821: no_entry_flag=""
20822: else
20823: # If we're using GNU nm, then we don't want the "-C" option.
20824: # -C means demangle to AIX nm, but means don't demangle with GNU nm
20825: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20826: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20827: else
20828: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20829: fi
20830: aix_use_runtimelinking=no
20831:
20832: # Test if we are trying to use run time linking or normal
20833: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20834: # need to do runtime linking.
20835: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20836: for ld_flag in $LDFLAGS; do
20837: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20838: aix_use_runtimelinking=yes
20839: break
20840: fi
20841: done
20842: esac
20843:
20844: exp_sym_flag='-bexport'
20845: no_entry_flag='-bnoentry'
20846: fi
20847:
20848: # When large executables or shared objects are built, AIX ld can
20849: # have problems creating the table of contents. If linking a library
20850: # or program results in "error TOC overflow" add -mminimal-toc to
20851: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20852: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20853:
20854: archive_cmds_F77=''
20855: hardcode_direct_F77=yes
20856: hardcode_libdir_separator_F77=':'
20857: link_all_deplibs_F77=yes
20858:
20859: if test "$GCC" = yes; then
20860: case $host_os in aix4.012|aix4.012.*)
20861: # We only want to do this on AIX 4.2 and lower, the check
20862: # below for broken collect2 doesn't work under 4.3+
20863: collect2name=`${CC} -print-prog-name=collect2`
20864: if test -f "$collect2name" && \
20865: strings "$collect2name" | grep resolve_lib_name >/dev/null
20866: then
20867: # We have reworked collect2
20868: hardcode_direct_F77=yes
20869: else
20870: # We have old collect2
20871: hardcode_direct_F77=unsupported
20872: # It fails to find uninstalled libraries when the uninstalled
20873: # path is not listed in the libpath. Setting hardcode_minus_L
20874: # to unsupported forces relinking
20875: hardcode_minus_L_F77=yes
20876: hardcode_libdir_flag_spec_F77='-L$libdir'
20877: hardcode_libdir_separator_F77=
20878: fi
20879: esac
20880: shared_flag='-shared'
20881: else
20882: # not using gcc
20883: if test "$host_cpu" = ia64; then
20884: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20885: # chokes on -Wl,-G. The following line is correct:
20886: shared_flag='-G'
20887: else
20888: if test "$aix_use_runtimelinking" = yes; then
20889: shared_flag='${wl}-G'
20890: else
20891: shared_flag='${wl}-bM:SRE'
20892: fi
20893: fi
20894: fi
20895:
20896: # It seems that -bexpall does not export symbols beginning with
20897: # underscore (_), so it is better to generate a list of symbols to export.
20898: always_export_symbols_F77=yes
20899: if test "$aix_use_runtimelinking" = yes; then
20900: # Warning - without using the other runtime loading flags (-brtl),
20901: # -berok will link without error, but may produce a broken library.
20902: allow_undefined_flag_F77='-berok'
20903: # Determine the default libpath from the value encoded in an empty executable.
20904: cat >conftest.$ac_ext <<_ACEOF
20905: program main
20906:
20907: end
20908: _ACEOF
20909: rm -f conftest.$ac_objext conftest$ac_exeext
20910: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911: (eval $ac_link) 2>&5
20912: ac_status=$?
20913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914: (exit $ac_status); } &&
20915: { ac_try='test -s conftest$ac_exeext'
20916: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917: (eval $ac_try) 2>&5
20918: ac_status=$?
20919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920: (exit $ac_status); }; }; then
20921:
20922: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20923: }'`
20924: # Check for a 64-bit object if we didn't find anything.
20925: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20926: }'`; fi
20927: else
20928: echo "$as_me: failed program was:" >&5
20929: sed 's/^/| /' conftest.$ac_ext >&5
20930:
20931: fi
20932: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20933: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20934:
20935: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20936: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20937: else
20938: if test "$host_cpu" = ia64; then
20939: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20940: allow_undefined_flag_F77="-z nodefs"
20941: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20942: else
20943: # Determine the default libpath from the value encoded in an empty executable.
20944: cat >conftest.$ac_ext <<_ACEOF
20945: program main
20946:
20947: end
20948: _ACEOF
20949: rm -f conftest.$ac_objext conftest$ac_exeext
20950: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951: (eval $ac_link) 2>&5
20952: ac_status=$?
20953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954: (exit $ac_status); } &&
20955: { ac_try='test -s conftest$ac_exeext'
20956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20957: (eval $ac_try) 2>&5
20958: ac_status=$?
20959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960: (exit $ac_status); }; }; then
20961:
20962: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20963: }'`
20964: # Check for a 64-bit object if we didn't find anything.
20965: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20966: }'`; fi
20967: else
20968: echo "$as_me: failed program was:" >&5
20969: sed 's/^/| /' conftest.$ac_ext >&5
20970:
20971: fi
20972: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20973: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20974:
20975: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20976: # Warning - without using the other run time loading flags,
20977: # -berok will link without error, but may produce a broken library.
20978: no_undefined_flag_F77=' ${wl}-bernotok'
20979: allow_undefined_flag_F77=' ${wl}-berok'
20980: # -bexpall does not export symbols beginning with underscore (_)
20981: always_export_symbols_F77=yes
20982: # Exported symbols can be pulled into shared objects from archives
20983: whole_archive_flag_spec_F77=' '
20984: archive_cmds_need_lc_F77=yes
20985: # This is similar to how AIX traditionally builds it's shared libraries.
20986: archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20987: fi
20988: fi
20989: ;;
20990:
20991: amigaos*)
20992: archive_cmds_F77='$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)'
20993: hardcode_libdir_flag_spec_F77='-L$libdir'
20994: hardcode_minus_L_F77=yes
20995: # see comment about different semantics on the GNU ld section
20996: ld_shlibs_F77=no
20997: ;;
20998:
20999: bsdi4*)
21000: export_dynamic_flag_spec_F77=-rdynamic
21001: ;;
21002:
21003: cygwin* | mingw* | pw32*)
21004: # When not using gcc, we currently assume that we are using
21005: # Microsoft Visual C++.
21006: # hardcode_libdir_flag_spec is actually meaningless, as there is
21007: # no search path for DLLs.
21008: hardcode_libdir_flag_spec_F77=' '
21009: allow_undefined_flag_F77=unsupported
21010: # Tell ltmain to make .lib files, not .a files.
21011: libext=lib
21012: # Tell ltmain to make .dll files, not .so files.
21013: shrext=".dll"
21014: # FIXME: Setting linknames here is a bad hack.
21015: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21016: # The linker will automatically build a .lib file if we build a DLL.
21017: old_archive_From_new_cmds_F77='true'
21018: # FIXME: Should let the user specify the lib program.
21019: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21020: fix_srcfile_path='`cygpath -w "$srcfile"`'
21021: enable_shared_with_static_runtimes_F77=yes
21022: ;;
21023:
21024: darwin* | rhapsody*)
21025: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
21026: archive_cmds_need_lc_F77=no
21027: case "$host_os" in
21028: rhapsody* | darwin1.[012])
21029: allow_undefined_flag_F77='-undefined suppress'
21030: ;;
21031: *) # Darwin 1.3 on
21032: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
21033: ;;
21034: esac
21035: # FIXME: Relying on posixy $() will cause problems for
21036: # cross-compilation, but unfortunately the echo tests do not
21037: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
21038: # `"' quotes if we put them in here... so don't!
21039: lt_int_apple_cc_single_mod=no
21040: output_verbose_link_cmd='echo'
21041: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
21042: lt_int_apple_cc_single_mod=yes
21043: fi
21044: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21045: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21046: else
21047: archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
21048: fi
21049: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
21050: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21051: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21052: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21053: else
21054: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21055: fi
21056: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21057: hardcode_direct_F77=no
21058: hardcode_automatic_F77=yes
21059: hardcode_shlibpath_var_F77=unsupported
21060: whole_archive_flag_spec_F77='-all_load $convenience'
21061: link_all_deplibs_F77=yes
21062: fi
21063: ;;
21064:
21065: dgux*)
21066: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21067: hardcode_libdir_flag_spec_F77='-L$libdir'
21068: hardcode_shlibpath_var_F77=no
21069: ;;
21070:
21071: freebsd1*)
21072: ld_shlibs_F77=no
21073: ;;
21074:
21075: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21076: # support. Future versions do this automatically, but an explicit c++rt0.o
21077: # does not break anything, and helps significantly (at the cost of a little
21078: # extra space).
21079: freebsd2.2*)
21080: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21081: hardcode_libdir_flag_spec_F77='-R$libdir'
21082: hardcode_direct_F77=yes
21083: hardcode_shlibpath_var_F77=no
21084: ;;
21085:
21086: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21087: freebsd2*)
21088: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21089: hardcode_direct_F77=yes
21090: hardcode_minus_L_F77=yes
21091: hardcode_shlibpath_var_F77=no
21092: ;;
21093:
21094: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21095: freebsd*)
21096: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21097: hardcode_libdir_flag_spec_F77='-R$libdir'
21098: hardcode_direct_F77=yes
21099: hardcode_shlibpath_var_F77=no
21100: ;;
21101:
21102: hpux9*)
21103: if test "$GCC" = yes; then
21104: archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21105: else
21106: archive_cmds_F77='$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'
21107: fi
21108: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21109: hardcode_libdir_separator_F77=:
21110: hardcode_direct_F77=yes
21111:
21112: # hardcode_minus_L: Not really in the search PATH,
21113: # but as the default location of the library.
21114: hardcode_minus_L_F77=yes
21115: export_dynamic_flag_spec_F77='${wl}-E'
21116: ;;
21117:
21118: hpux10* | hpux11*)
21119: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21120: case "$host_cpu" in
21121: hppa*64*|ia64*)
21122: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21123: ;;
21124: *)
21125: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21126: ;;
21127: esac
21128: else
21129: case "$host_cpu" in
21130: hppa*64*|ia64*)
21131: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21132: ;;
21133: *)
21134: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21135: ;;
21136: esac
21137: fi
21138: if test "$with_gnu_ld" = no; then
21139: case "$host_cpu" in
21140: hppa*64*)
21141: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21142: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21143: hardcode_libdir_separator_F77=:
21144: hardcode_direct_F77=no
21145: hardcode_shlibpath_var_F77=no
21146: ;;
21147: ia64*)
21148: hardcode_libdir_flag_spec_F77='-L$libdir'
21149: hardcode_direct_F77=no
21150: hardcode_shlibpath_var_F77=no
21151:
21152: # hardcode_minus_L: Not really in the search PATH,
21153: # but as the default location of the library.
21154: hardcode_minus_L_F77=yes
21155: ;;
21156: *)
21157: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21158: hardcode_libdir_separator_F77=:
21159: hardcode_direct_F77=yes
21160: export_dynamic_flag_spec_F77='${wl}-E'
21161:
21162: # hardcode_minus_L: Not really in the search PATH,
21163: # but as the default location of the library.
21164: hardcode_minus_L_F77=yes
21165: ;;
21166: esac
21167: fi
21168: ;;
21169:
21170: irix5* | irix6* | nonstopux*)
21171: if test "$GCC" = yes; then
21172: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21173: else
21174: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21175: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21176: fi
21177: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21178: hardcode_libdir_separator_F77=:
21179: link_all_deplibs_F77=yes
21180: ;;
21181:
21182: netbsd*)
21183: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21184: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21185: else
21186: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21187: fi
21188: hardcode_libdir_flag_spec_F77='-R$libdir'
21189: hardcode_direct_F77=yes
21190: hardcode_shlibpath_var_F77=no
21191: ;;
21192:
21193: newsos6)
21194: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21195: hardcode_direct_F77=yes
21196: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21197: hardcode_libdir_separator_F77=:
21198: hardcode_shlibpath_var_F77=no
21199: ;;
21200:
21201: openbsd*)
21202: hardcode_direct_F77=yes
21203: hardcode_shlibpath_var_F77=no
21204: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21205: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21206: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21207: export_dynamic_flag_spec_F77='${wl}-E'
21208: else
21209: case $host_os in
21210: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21211: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21212: hardcode_libdir_flag_spec_F77='-R$libdir'
21213: ;;
21214: *)
21215: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21216: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21217: ;;
21218: esac
21219: fi
21220: ;;
21221:
21222: os2*)
21223: hardcode_libdir_flag_spec_F77='-L$libdir'
21224: hardcode_minus_L_F77=yes
21225: allow_undefined_flag_F77=unsupported
21226: archive_cmds_F77='$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'
21227: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21228: ;;
21229:
21230: osf3*)
21231: if test "$GCC" = yes; then
21232: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21233: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21234: else
21235: allow_undefined_flag_F77=' -expect_unresolved \*'
21236: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21237: fi
21238: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21239: hardcode_libdir_separator_F77=:
21240: ;;
21241:
21242: osf4* | osf5*) # as osf3* with the addition of -msym flag
21243: if test "$GCC" = yes; then
21244: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21245: archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21246: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21247: else
21248: allow_undefined_flag_F77=' -expect_unresolved \*'
21249: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21250: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
21251: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
21252:
21253: # Both c and cxx compiler support -rpath directly
21254: hardcode_libdir_flag_spec_F77='-rpath $libdir'
21255: fi
21256: hardcode_libdir_separator_F77=:
21257: ;;
21258:
21259: sco3.2v5*)
21260: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21261: hardcode_shlibpath_var_F77=no
21262: export_dynamic_flag_spec_F77='${wl}-Bexport'
21263: runpath_var=LD_RUN_PATH
21264: hardcode_runpath_var=yes
21265: ;;
21266:
21267: solaris*)
21268: no_undefined_flag_F77=' -z text'
21269: if test "$GCC" = yes; then
21270: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21271: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21272: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21273: else
21274: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21275: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21276: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21277: fi
21278: hardcode_libdir_flag_spec_F77='-R$libdir'
21279: hardcode_shlibpath_var_F77=no
21280: case $host_os in
21281: solaris2.[0-5] | solaris2.[0-5].*) ;;
21282: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21283: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21284: esac
21285: link_all_deplibs_F77=yes
21286: ;;
21287:
21288: sunos4*)
21289: if test "x$host_vendor" = xsequent; then
21290: # Use $CC to link under sequent, because it throws in some extra .o
21291: # files that make .init and .fini sections work.
21292: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21293: else
21294: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21295: fi
21296: hardcode_libdir_flag_spec_F77='-L$libdir'
21297: hardcode_direct_F77=yes
21298: hardcode_minus_L_F77=yes
21299: hardcode_shlibpath_var_F77=no
21300: ;;
21301:
21302: sysv4)
21303: case $host_vendor in
21304: sni)
21305: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21306: hardcode_direct_F77=yes # is this really true???
21307: ;;
21308: siemens)
21309: ## LD is ld it makes a PLAMLIB
21310: ## CC just makes a GrossModule.
21311: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21312: reload_cmds_F77='$CC -r -o $output$reload_objs'
21313: hardcode_direct_F77=no
21314: ;;
21315: motorola)
21316: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21317: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21318: ;;
21319: esac
21320: runpath_var='LD_RUN_PATH'
21321: hardcode_shlibpath_var_F77=no
21322: ;;
21323:
21324: sysv4.3*)
21325: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21326: hardcode_shlibpath_var_F77=no
21327: export_dynamic_flag_spec_F77='-Bexport'
21328: ;;
21329:
21330: sysv4*MP*)
21331: if test -d /usr/nec; then
21332: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21333: hardcode_shlibpath_var_F77=no
21334: runpath_var=LD_RUN_PATH
21335: hardcode_runpath_var=yes
21336: ld_shlibs_F77=yes
21337: fi
21338: ;;
21339:
21340: sysv4.2uw2*)
21341: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21342: hardcode_direct_F77=yes
21343: hardcode_minus_L_F77=no
21344: hardcode_shlibpath_var_F77=no
21345: hardcode_runpath_var=yes
21346: runpath_var=LD_RUN_PATH
21347: ;;
21348:
21349: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21350: no_undefined_flag_F77='${wl}-z ${wl}text'
21351: if test "$GCC" = yes; then
21352: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21353: else
21354: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21355: fi
21356: runpath_var='LD_RUN_PATH'
21357: hardcode_shlibpath_var_F77=no
21358: ;;
21359:
21360: sysv5*)
21361: no_undefined_flag_F77=' -z text'
21362: # $CC -shared without GNU ld will not create a library from C++
21363: # object files and a static libstdc++, better avoid it by now
21364: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21365: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21366: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21367: hardcode_libdir_flag_spec_F77=
21368: hardcode_shlibpath_var_F77=no
21369: runpath_var='LD_RUN_PATH'
21370: ;;
21371:
21372: uts4*)
21373: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21374: hardcode_libdir_flag_spec_F77='-L$libdir'
21375: hardcode_shlibpath_var_F77=no
21376: ;;
21377:
21378: *)
21379: ld_shlibs_F77=no
21380: ;;
21381: esac
21382: fi
21383:
21384: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21385: echo "${ECHO_T}$ld_shlibs_F77" >&6
21386: test "$ld_shlibs_F77" = no && can_build_shared=no
21387:
21388: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21389: if test "$GCC" = yes; then
21390: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21391: fi
21392:
21393: #
21394: # Do we need to explicitly link libc?
21395: #
21396: case "x$archive_cmds_need_lc_F77" in
21397: x|xyes)
21398: # Assume -lc should be added
21399: archive_cmds_need_lc_F77=yes
21400:
21401: if test "$enable_shared" = yes && test "$GCC" = yes; then
21402: case $archive_cmds_F77 in
21403: *'~'*)
21404: # FIXME: we may have to deal with multi-command sequences.
21405: ;;
21406: '$CC '*)
21407: # Test whether the compiler implicitly links with -lc since on some
21408: # systems, -lgcc has to come before -lc. If gcc already passes -lc
21409: # to ld, don't add -lc before -lgcc.
21410: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21411: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21412: $rm conftest*
21413: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21414:
21415: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416: (eval $ac_compile) 2>&5
21417: ac_status=$?
21418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419: (exit $ac_status); } 2>conftest.err; then
21420: soname=conftest
21421: lib=conftest
21422: libobjs=conftest.$ac_objext
21423: deplibs=
21424: wl=$lt_prog_compiler_wl_F77
21425: compiler_flags=-v
21426: linker_flags=-v
21427: verstring=
21428: output_objdir=.
21429: libname=conftest
21430: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21431: allow_undefined_flag_F77=
21432: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21433: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21434: ac_status=$?
21435: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436: (exit $ac_status); }
21437: then
21438: archive_cmds_need_lc_F77=no
21439: else
21440: archive_cmds_need_lc_F77=yes
21441: fi
21442: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21443: else
21444: cat conftest.err 1>&5
21445: fi
21446: $rm conftest*
21447: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21448: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21449: ;;
21450: esac
21451: fi
21452: ;;
21453: esac
21454:
21455: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21456: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21457: hardcode_action_F77=
21458: if test -n "$hardcode_libdir_flag_spec_F77" || \
21459: test -n "$runpath_var F77" || \
21460: test "X$hardcode_automatic_F77"="Xyes" ; then
21461:
21462: # We can hardcode non-existant directories.
21463: if test "$hardcode_direct_F77" != no &&
21464: # If the only mechanism to avoid hardcoding is shlibpath_var, we
21465: # have to relink, otherwise we might link with an installed library
21466: # when we should be linking with a yet-to-be-installed one
21467: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21468: test "$hardcode_minus_L_F77" != no; then
21469: # Linking always hardcodes the temporary library directory.
21470: hardcode_action_F77=relink
21471: else
21472: # We can link without hardcoding, and we can hardcode nonexisting dirs.
21473: hardcode_action_F77=immediate
21474: fi
21475: else
21476: # We cannot hardcode anything, or else we can only hardcode existing
21477: # directories.
21478: hardcode_action_F77=unsupported
21479: fi
21480: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21481: echo "${ECHO_T}$hardcode_action_F77" >&6
21482:
21483: if test "$hardcode_action_F77" = relink; then
21484: # Fast installation is not supported
21485: enable_fast_install=no
21486: elif test "$shlibpath_overrides_runpath" = yes ||
21487: test "$enable_shared" = no; then
21488: # Fast installation is not necessary
21489: enable_fast_install=needless
21490: fi
21491:
21492: striplib=
21493: old_striplib=
21494: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21495: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21496: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21497: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21498: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21499: echo "$as_me:$LINENO: result: yes" >&5
21500: echo "${ECHO_T}yes" >&6
21501: else
21502: # FIXME - insert some real tests, host_os isn't really good enough
21503: case $host_os in
21504: darwin*)
21505: if test -n "$STRIP" ; then
21506: striplib="$STRIP -x"
21507: echo "$as_me:$LINENO: result: yes" >&5
21508: echo "${ECHO_T}yes" >&6
21509: else
21510: echo "$as_me:$LINENO: result: no" >&5
21511: echo "${ECHO_T}no" >&6
21512: fi
21513: ;;
21514: *)
21515: echo "$as_me:$LINENO: result: no" >&5
21516: echo "${ECHO_T}no" >&6
21517: ;;
21518: esac
21519: fi
21520:
21521: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21522: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21523: library_names_spec=
21524: libname_spec='lib$name'
21525: soname_spec=
21526: shrext=".so"
21527: postinstall_cmds=
21528: postuninstall_cmds=
21529: finish_cmds=
21530: finish_eval=
21531: shlibpath_var=
21532: shlibpath_overrides_runpath=unknown
21533: version_type=none
21534: dynamic_linker="$host_os ld.so"
21535: sys_lib_dlsearch_path_spec="/lib /usr/lib"
21536: if test "$GCC" = yes; then
21537: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21538: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21539: # if the path contains ";" then we assume it to be the separator
21540: # otherwise default to the standard path separator (i.e. ":") - it is
21541: # assumed that no part of a normal pathname contains ";" but that should
21542: # okay in the real world where ";" in dirpaths is itself problematic.
21543: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21544: else
21545: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21546: fi
21547: else
21548: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21549: fi
21550: need_lib_prefix=unknown
21551: hardcode_into_libs=no
21552:
21553: # when you set need_version to no, make sure it does not cause -set_version
21554: # flags to be left without arguments
21555: need_version=unknown
21556:
21557: case $host_os in
21558: aix3*)
21559: version_type=linux
21560: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21561: shlibpath_var=LIBPATH
21562:
21563: # AIX 3 has no versioning support, so we append a major version to the name.
21564: soname_spec='${libname}${release}${shared_ext}$major'
21565: ;;
21566:
21567: aix4* | aix5*)
21568: version_type=linux
21569: need_lib_prefix=no
21570: need_version=no
21571: hardcode_into_libs=yes
21572: if test "$host_cpu" = ia64; then
21573: # AIX 5 supports IA64
21574: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21575: shlibpath_var=LD_LIBRARY_PATH
21576: else
21577: # With GCC up to 2.95.x, collect2 would create an import file
21578: # for dependence libraries. The import file would start with
21579: # the line `#! .'. This would cause the generated library to
21580: # depend on `.', always an invalid library. This was fixed in
21581: # development snapshots of GCC prior to 3.0.
21582: case $host_os in
21583: aix4 | aix4.[01] | aix4.[01].*)
21584: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21585: echo ' yes '
21586: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21587: :
21588: else
21589: can_build_shared=no
21590: fi
21591: ;;
21592: esac
21593: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21594: # soname into executable. Probably we can add versioning support to
21595: # collect2, so additional links can be useful in future.
21596: if test "$aix_use_runtimelinking" = yes; then
21597: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21598: # instead of lib<name>.a to let people know that these are not
21599: # typical AIX shared libraries.
21600: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21601: else
21602: # We preserve .a as extension for shared libraries through AIX4.2
21603: # and later when we are not doing run time linking.
21604: library_names_spec='${libname}${release}.a $libname.a'
21605: soname_spec='${libname}${release}${shared_ext}$major'
21606: fi
21607: shlibpath_var=LIBPATH
21608: fi
21609: ;;
21610:
21611: amigaos*)
21612: library_names_spec='$libname.ixlibrary $libname.a'
21613: # Create ${libname}_ixlibrary.a entries in /sys/libs.
21614: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
21615: ;;
21616:
21617: beos*)
21618: library_names_spec='${libname}${shared_ext}'
21619: dynamic_linker="$host_os ld.so"
21620: shlibpath_var=LIBRARY_PATH
21621: ;;
21622:
21623: bsdi4*)
21624: version_type=linux
21625: need_version=no
21626: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21627: soname_spec='${libname}${release}${shared_ext}$major'
21628: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21629: shlibpath_var=LD_LIBRARY_PATH
21630: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21631: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21632: # the default ld.so.conf also contains /usr/contrib/lib and
21633: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21634: # libtool to hard-code these into programs
21635: ;;
21636:
21637: cygwin* | mingw* | pw32*)
21638: version_type=windows
21639: shrext=".dll"
21640: need_version=no
21641: need_lib_prefix=no
21642:
21643: case $GCC,$host_os in
21644: yes,cygwin* | yes,mingw* | yes,pw32*)
21645: library_names_spec='$libname.dll.a'
21646: # DLL is installed to $(libdir)/../bin by postinstall_cmds
21647: postinstall_cmds='base_file=`basename \${file}`~
21648: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21649: dldir=$destdir/`dirname \$dlpath`~
21650: test -d \$dldir || mkdir -p \$dldir~
21651: $install_prog $dir/$dlname \$dldir/$dlname'
21652: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21653: dlpath=$dir/\$dldll~
21654: $rm \$dlpath'
21655: shlibpath_overrides_runpath=yes
21656:
21657: case $host_os in
21658: cygwin*)
21659: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21660: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21661: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
21662: ;;
21663: mingw*)
21664: # MinGW DLLs use traditional 'lib' prefix
21665: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21666: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21667: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21668: # It is most probably a Windows format PATH printed by
21669: # mingw gcc, but we are running on Cygwin. Gcc prints its search
21670: # path with ; separators, and with drive letters. We can handle the
21671: # drive letters (cygwin fileutils understands them), so leave them,
21672: # especially as we might pass files found there to a mingw objdump,
21673: # which wouldn't understand a cygwinified path. Ahh.
21674: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21675: else
21676: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21677: fi
21678: ;;
21679: pw32*)
21680: # pw32 DLLs use 'pw' prefix rather than 'lib'
21681: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21682: ;;
21683: esac
21684: ;;
21685:
21686: *)
21687: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21688: ;;
21689: esac
21690: dynamic_linker='Win32 ld.exe'
21691: # FIXME: first we should search . and the directory the executable is in
21692: shlibpath_var=PATH
21693: ;;
21694:
21695: darwin* | rhapsody*)
21696: dynamic_linker="$host_os dyld"
21697: version_type=darwin
21698: need_lib_prefix=no
21699: need_version=no
21700: # FIXME: Relying on posixy $() will cause problems for
21701: # cross-compilation, but unfortunately the echo tests do not
21702: # yet detect zsh echo's removal of \ escapes.
21703: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21704: soname_spec='${libname}${release}${major}$shared_ext'
21705: shlibpath_overrides_runpath=yes
21706: shlibpath_var=DYLD_LIBRARY_PATH
21707: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
21708: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21709: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
21710: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21711: fi
21712: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21713: ;;
21714:
21715: dgux*)
21716: version_type=linux
21717: need_lib_prefix=no
21718: need_version=no
21719: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21720: soname_spec='${libname}${release}${shared_ext}$major'
21721: shlibpath_var=LD_LIBRARY_PATH
21722: ;;
21723:
21724: freebsd1*)
21725: dynamic_linker=no
21726: ;;
21727:
21728: freebsd*)
21729: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21730: version_type=freebsd-$objformat
21731: case $version_type in
21732: freebsd-elf*)
21733: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21734: need_version=no
21735: need_lib_prefix=no
21736: ;;
21737: freebsd-*)
21738: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21739: need_version=yes
21740: ;;
21741: esac
21742: shlibpath_var=LD_LIBRARY_PATH
21743: case $host_os in
21744: freebsd2*)
21745: shlibpath_overrides_runpath=yes
21746: ;;
21747: freebsd3.01* | freebsdelf3.01*)
21748: shlibpath_overrides_runpath=yes
21749: hardcode_into_libs=yes
21750: ;;
21751: *) # from 3.2 on
21752: shlibpath_overrides_runpath=no
21753: hardcode_into_libs=yes
21754: ;;
21755: esac
21756: ;;
21757:
21758: gnu*)
21759: version_type=linux
21760: need_lib_prefix=no
21761: need_version=no
21762: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21763: soname_spec='${libname}${release}${shared_ext}$major'
21764: shlibpath_var=LD_LIBRARY_PATH
21765: hardcode_into_libs=yes
21766: ;;
21767:
21768: hpux9* | hpux10* | hpux11*)
21769: # Give a soname corresponding to the major version so that dld.sl refuses to
21770: # link against other versions.
21771: version_type=sunos
21772: need_lib_prefix=no
21773: need_version=no
21774: case "$host_cpu" in
21775: ia64*)
21776: shrext='.so'
21777: hardcode_into_libs=yes
21778: dynamic_linker="$host_os dld.so"
21779: shlibpath_var=LD_LIBRARY_PATH
21780: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21781: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21782: soname_spec='${libname}${release}${shared_ext}$major'
21783: if test "X$HPUX_IA64_MODE" = X32; then
21784: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21785: else
21786: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21787: fi
21788: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21789: ;;
21790: hppa*64*)
21791: shrext='.sl'
21792: hardcode_into_libs=yes
21793: dynamic_linker="$host_os dld.sl"
21794: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21795: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21796: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21797: soname_spec='${libname}${release}${shared_ext}$major'
21798: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21799: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21800: ;;
21801: *)
21802: shrext='.sl'
21803: dynamic_linker="$host_os dld.sl"
21804: shlibpath_var=SHLIB_PATH
21805: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21806: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21807: soname_spec='${libname}${release}${shared_ext}$major'
21808: ;;
21809: esac
21810: # HP-UX runs *really* slowly unless shared libraries are mode 555.
21811: postinstall_cmds='chmod 555 $lib'
21812: ;;
21813:
21814: irix5* | irix6* | nonstopux*)
21815: case $host_os in
21816: nonstopux*) version_type=nonstopux ;;
21817: *)
21818: if test "$lt_cv_prog_gnu_ld" = yes; then
21819: version_type=linux
21820: else
21821: version_type=irix
21822: fi ;;
21823: esac
21824: need_lib_prefix=no
21825: need_version=no
21826: soname_spec='${libname}${release}${shared_ext}$major'
21827: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21828: case $host_os in
21829: irix5* | nonstopux*)
21830: libsuff= shlibsuff=
21831: ;;
21832: *)
21833: case $LD in # libtool.m4 will add one of these switches to LD
21834: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21835: libsuff= shlibsuff= libmagic=32-bit;;
21836: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21837: libsuff=32 shlibsuff=N32 libmagic=N32;;
21838: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21839: libsuff=64 shlibsuff=64 libmagic=64-bit;;
21840: *) libsuff= shlibsuff= libmagic=never-match;;
21841: esac
21842: ;;
21843: esac
21844: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21845: shlibpath_overrides_runpath=no
21846: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21847: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21848: hardcode_into_libs=yes
21849: ;;
21850:
21851: # No shared lib support for Linux oldld, aout, or coff.
21852: linux*oldld* | linux*aout* | linux*coff*)
21853: dynamic_linker=no
21854: ;;
21855:
21856: # This must be Linux ELF.
21857: linux*)
21858: version_type=linux
21859: need_lib_prefix=no
21860: need_version=no
21861: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21862: soname_spec='${libname}${release}${shared_ext}$major'
21863: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21864: shlibpath_var=LD_LIBRARY_PATH
21865: shlibpath_overrides_runpath=no
21866: # This implies no fast_install, which is unacceptable.
21867: # Some rework will be needed to allow for fast_install
21868: # before this can be enabled.
21869: hardcode_into_libs=yes
21870:
21871: # We used to test for /lib/ld.so.1 and disable shared libraries on
21872: # powerpc, because MkLinux only supported shared libraries with the
21873: # GNU dynamic linker. Since this was broken with cross compilers,
21874: # most powerpc-linux boxes support dynamic linking these days and
21875: # people can always --disable-shared, the test was removed, and we
21876: # assume the GNU/Linux dynamic linker is in use.
21877: dynamic_linker='GNU/Linux ld.so'
21878: ;;
21879:
21880: netbsd*)
21881: version_type=sunos
21882: need_lib_prefix=no
21883: need_version=no
21884: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21885: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21886: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21887: dynamic_linker='NetBSD (a.out) ld.so'
21888: else
21889: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
21890: soname_spec='${libname}${release}${shared_ext}$major'
21891: dynamic_linker='NetBSD ld.elf_so'
21892: fi
21893: shlibpath_var=LD_LIBRARY_PATH
21894: shlibpath_overrides_runpath=yes
21895: hardcode_into_libs=yes
21896: ;;
21897:
21898: newsos6)
21899: version_type=linux
21900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21901: shlibpath_var=LD_LIBRARY_PATH
21902: shlibpath_overrides_runpath=yes
21903: ;;
21904:
21905: nto-qnx)
21906: version_type=linux
21907: need_lib_prefix=no
21908: need_version=no
21909: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21910: soname_spec='${libname}${release}${shared_ext}$major'
21911: shlibpath_var=LD_LIBRARY_PATH
21912: shlibpath_overrides_runpath=yes
21913: ;;
21914:
21915: openbsd*)
21916: version_type=sunos
21917: need_lib_prefix=no
21918: need_version=no
21919: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21920: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21921: shlibpath_var=LD_LIBRARY_PATH
21922: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21923: case $host_os in
21924: openbsd2.[89] | openbsd2.[89].*)
21925: shlibpath_overrides_runpath=no
21926: ;;
21927: *)
21928: shlibpath_overrides_runpath=yes
21929: ;;
21930: esac
21931: else
21932: shlibpath_overrides_runpath=yes
21933: fi
21934: ;;
21935:
21936: os2*)
21937: libname_spec='$name'
21938: shrext=".dll"
21939: need_lib_prefix=no
21940: library_names_spec='$libname${shared_ext} $libname.a'
21941: dynamic_linker='OS/2 ld.exe'
21942: shlibpath_var=LIBPATH
21943: ;;
21944:
21945: osf3* | osf4* | osf5*)
21946: version_type=osf
21947: need_lib_prefix=no
21948: need_version=no
21949: soname_spec='${libname}${release}${shared_ext}$major'
21950: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21951: shlibpath_var=LD_LIBRARY_PATH
21952: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21953: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21954: ;;
21955:
21956: sco3.2v5*)
21957: version_type=osf
21958: soname_spec='${libname}${release}${shared_ext}$major'
21959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960: shlibpath_var=LD_LIBRARY_PATH
21961: ;;
21962:
21963: solaris*)
21964: version_type=linux
21965: need_lib_prefix=no
21966: need_version=no
21967: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21968: soname_spec='${libname}${release}${shared_ext}$major'
21969: shlibpath_var=LD_LIBRARY_PATH
21970: shlibpath_overrides_runpath=yes
21971: hardcode_into_libs=yes
21972: # ldd complains unless libraries are executable
21973: postinstall_cmds='chmod +x $lib'
21974: ;;
21975:
21976: sunos4*)
21977: version_type=sunos
21978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21979: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21980: shlibpath_var=LD_LIBRARY_PATH
21981: shlibpath_overrides_runpath=yes
21982: if test "$with_gnu_ld" = yes; then
21983: need_lib_prefix=no
21984: fi
21985: need_version=yes
21986: ;;
21987:
21988: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21989: version_type=linux
21990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21991: soname_spec='${libname}${release}${shared_ext}$major'
21992: shlibpath_var=LD_LIBRARY_PATH
21993: case $host_vendor in
21994: sni)
21995: shlibpath_overrides_runpath=no
21996: need_lib_prefix=no
21997: export_dynamic_flag_spec='${wl}-Blargedynsym'
21998: runpath_var=LD_RUN_PATH
21999: ;;
22000: siemens)
22001: need_lib_prefix=no
22002: ;;
22003: motorola)
22004: need_lib_prefix=no
22005: need_version=no
22006: shlibpath_overrides_runpath=no
22007: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22008: ;;
22009: esac
22010: ;;
22011:
22012: sysv4*MP*)
22013: if test -d /usr/nec ;then
22014: version_type=linux
22015: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22016: soname_spec='$libname${shared_ext}.$major'
22017: shlibpath_var=LD_LIBRARY_PATH
22018: fi
22019: ;;
22020:
22021: uts4*)
22022: version_type=linux
22023: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22024: soname_spec='${libname}${release}${shared_ext}$major'
22025: shlibpath_var=LD_LIBRARY_PATH
22026: ;;
22027:
22028: *)
22029: dynamic_linker=no
22030: ;;
22031: esac
22032: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22033: echo "${ECHO_T}$dynamic_linker" >&6
22034: test "$dynamic_linker" = no && can_build_shared=no
22035:
22036:
22037: # The else clause should only fire when bootstrapping the
22038: # libtool distribution, otherwise you forgot to ship ltmain.sh
22039: # with your package, and you will get complaints that there are
22040: # no rules to generate ltmain.sh.
22041: if test -f "$ltmain"; then
22042: # See if we are running on zsh, and set the options which allow our commands through
22043: # without removal of \ escapes.
22044: if test -n "${ZSH_VERSION+set}" ; then
22045: setopt NO_GLOB_SUBST
22046: fi
22047: # Now quote all the things that may contain metacharacters while being
22048: # careful not to overquote the AC_SUBSTed values. We take copies of the
22049: # variables and quote the copies for generation of the libtool script.
22050: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22051: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22052: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22053: deplibs_check_method reload_flag reload_cmds need_locks \
22054: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22055: lt_cv_sys_global_symbol_to_c_name_address \
22056: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22057: old_postinstall_cmds old_postuninstall_cmds \
22058: compiler_F77 \
22059: CC_F77 \
22060: LD_F77 \
22061: lt_prog_compiler_wl_F77 \
22062: lt_prog_compiler_pic_F77 \
22063: lt_prog_compiler_static_F77 \
22064: lt_prog_compiler_no_builtin_flag_F77 \
22065: export_dynamic_flag_spec_F77 \
22066: thread_safe_flag_spec_F77 \
22067: whole_archive_flag_spec_F77 \
22068: enable_shared_with_static_runtimes_F77 \
22069: old_archive_cmds_F77 \
22070: old_archive_from_new_cmds_F77 \
22071: predep_objects_F77 \
22072: postdep_objects_F77 \
22073: predeps_F77 \
22074: postdeps_F77 \
22075: compiler_lib_search_path_F77 \
22076: archive_cmds_F77 \
22077: archive_expsym_cmds_F77 \
22078: postinstall_cmds_F77 \
22079: postuninstall_cmds_F77 \
22080: old_archive_from_expsyms_cmds_F77 \
22081: allow_undefined_flag_F77 \
22082: no_undefined_flag_F77 \
22083: export_symbols_cmds_F77 \
22084: hardcode_libdir_flag_spec_F77 \
22085: hardcode_libdir_flag_spec_ld_F77 \
22086: hardcode_libdir_separator_F77 \
22087: hardcode_automatic_F77 \
22088: module_cmds_F77 \
22089: module_expsym_cmds_F77 \
22090: lt_cv_prog_compiler_c_o_F77 \
22091: exclude_expsyms_F77 \
22092: include_expsyms_F77; do
22093:
22094: case $var in
22095: old_archive_cmds_F77 | \
22096: old_archive_from_new_cmds_F77 | \
22097: archive_cmds_F77 | \
22098: archive_expsym_cmds_F77 | \
22099: module_cmds_F77 | \
22100: module_expsym_cmds_F77 | \
22101: old_archive_from_expsyms_cmds_F77 | \
22102: export_symbols_cmds_F77 | \
22103: extract_expsyms_cmds | reload_cmds | finish_cmds | \
22104: postinstall_cmds | postuninstall_cmds | \
22105: old_postinstall_cmds | old_postuninstall_cmds | \
22106: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22107: # Double-quote double-evaled strings.
22108: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22109: ;;
22110: *)
22111: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22112: ;;
22113: esac
22114: done
22115:
22116: case $lt_echo in
22117: *'\$0 --fallback-echo"')
22118: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22119: ;;
22120: esac
22121:
22122: cfgfile="$ofile"
22123:
22124: cat <<__EOF__ >> "$cfgfile"
22125: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22126:
22127: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22128:
22129: # Shell to use when invoking shell scripts.
22130: SHELL=$lt_SHELL
22131:
22132: # Whether or not to build shared libraries.
22133: build_libtool_libs=$enable_shared
22134:
22135: # Whether or not to build static libraries.
22136: build_old_libs=$enable_static
22137:
22138: # Whether or not to add -lc for building shared libraries.
22139: build_libtool_need_lc=$archive_cmds_need_lc_F77
22140:
22141: # Whether or not to disallow shared libs when runtime libs are static
22142: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22143:
22144: # Whether or not to optimize for fast installation.
22145: fast_install=$enable_fast_install
22146:
22147: # The host system.
22148: host_alias=$host_alias
22149: host=$host
22150:
22151: # An echo program that does not interpret backslashes.
22152: echo=$lt_echo
22153:
22154: # The archiver.
22155: AR=$lt_AR
22156: AR_FLAGS=$lt_AR_FLAGS
22157:
22158: # A C compiler.
22159: LTCC=$lt_LTCC
22160:
22161: # A language-specific compiler.
22162: CC=$lt_compiler_F77
22163:
22164: # Is the compiler the GNU C compiler?
22165: with_gcc=$GCC_F77
22166:
22167: # An ERE matcher.
22168: EGREP=$lt_EGREP
22169:
22170: # The linker used to build libraries.
22171: LD=$lt_LD_F77
22172:
22173: # Whether we need hard or soft links.
22174: LN_S=$lt_LN_S
22175:
22176: # A BSD-compatible nm program.
22177: NM=$lt_NM
22178:
22179: # A symbol stripping program
22180: STRIP=$STRIP
22181:
22182: # Used to examine libraries when file_magic_cmd begins "file"
22183: MAGIC_CMD=$MAGIC_CMD
22184:
22185: # Used on cygwin: DLL creation program.
22186: DLLTOOL="$DLLTOOL"
22187:
22188: # Used on cygwin: object dumper.
22189: OBJDUMP="$OBJDUMP"
22190:
22191: # Used on cygwin: assembler.
22192: AS="$AS"
22193:
22194: # The name of the directory that contains temporary libtool files.
22195: objdir=$objdir
22196:
22197: # How to create reloadable object files.
22198: reload_flag=$lt_reload_flag
22199: reload_cmds=$lt_reload_cmds
22200:
22201: # How to pass a linker flag through the compiler.
22202: wl=$lt_lt_prog_compiler_wl_F77
22203:
22204: # Object file suffix (normally "o").
22205: objext="$ac_objext"
22206:
22207: # Old archive suffix (normally "a").
22208: libext="$libext"
22209:
22210: # Shared library suffix (normally ".so").
22211: shrext='$shrext'
22212:
22213: # Executable file suffix (normally "").
22214: exeext="$exeext"
22215:
22216: # Additional compiler flags for building library objects.
22217: pic_flag=$lt_lt_prog_compiler_pic_F77
22218: pic_mode=$pic_mode
22219:
22220: # What is the maximum length of a command?
22221: max_cmd_len=$lt_cv_sys_max_cmd_len
22222:
22223: # Does compiler simultaneously support -c and -o options?
22224: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22225:
22226: # Must we lock files when doing compilation ?
22227: need_locks=$lt_need_locks
22228:
22229: # Do we need the lib prefix for modules?
22230: need_lib_prefix=$need_lib_prefix
22231:
22232: # Do we need a version for libraries?
22233: need_version=$need_version
22234:
22235: # Whether dlopen is supported.
22236: dlopen_support=$enable_dlopen
22237:
22238: # Whether dlopen of programs is supported.
22239: dlopen_self=$enable_dlopen_self
22240:
22241: # Whether dlopen of statically linked programs is supported.
22242: dlopen_self_static=$enable_dlopen_self_static
22243:
22244: # Compiler flag to prevent dynamic linking.
22245: link_static_flag=$lt_lt_prog_compiler_static_F77
22246:
22247: # Compiler flag to turn off builtin functions.
22248: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22249:
22250: # Compiler flag to allow reflexive dlopens.
22251: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22252:
22253: # Compiler flag to generate shared objects directly from archives.
22254: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22255:
22256: # Compiler flag to generate thread-safe objects.
22257: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22258:
22259: # Library versioning type.
22260: version_type=$version_type
22261:
22262: # Format of library name prefix.
22263: libname_spec=$lt_libname_spec
22264:
22265: # List of archive names. First name is the real one, the rest are links.
22266: # The last name is the one that the linker finds with -lNAME.
22267: library_names_spec=$lt_library_names_spec
22268:
22269: # The coded name of the library, if different from the real name.
22270: soname_spec=$lt_soname_spec
22271:
22272: # Commands used to build and install an old-style archive.
22273: RANLIB=$lt_RANLIB
22274: old_archive_cmds=$lt_old_archive_cmds_F77
22275: old_postinstall_cmds=$lt_old_postinstall_cmds
22276: old_postuninstall_cmds=$lt_old_postuninstall_cmds
22277:
22278: # Create an old-style archive from a shared archive.
22279: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22280:
22281: # Create a temporary old-style archive to link instead of a shared archive.
22282: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22283:
22284: # Commands used to build and install a shared archive.
22285: archive_cmds=$lt_archive_cmds_F77
22286: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22287: postinstall_cmds=$lt_postinstall_cmds
22288: postuninstall_cmds=$lt_postuninstall_cmds
22289:
22290: # Commands used to build a loadable module (assumed same as above if empty)
22291: module_cmds=$lt_module_cmds_F77
22292: module_expsym_cmds=$lt_module_expsym_cmds_F77
22293:
22294: # Commands to strip libraries.
22295: old_striplib=$lt_old_striplib
22296: striplib=$lt_striplib
22297:
22298: # Dependencies to place before the objects being linked to create a
22299: # shared library.
22300: predep_objects=$lt_predep_objects_F77
22301:
22302: # Dependencies to place after the objects being linked to create a
22303: # shared library.
22304: postdep_objects=$lt_postdep_objects_F77
22305:
22306: # Dependencies to place before the objects being linked to create a
22307: # shared library.
22308: predeps=$lt_predeps_F77
22309:
22310: # Dependencies to place after the objects being linked to create a
22311: # shared library.
22312: postdeps=$lt_postdeps_F77
22313:
22314: # The library search path used internally by the compiler when linking
22315: # a shared library.
22316: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22317:
22318: # Method to check whether dependent libraries are shared objects.
22319: deplibs_check_method=$lt_deplibs_check_method
22320:
22321: # Command to use when deplibs_check_method == file_magic.
22322: file_magic_cmd=$lt_file_magic_cmd
22323:
22324: # Flag that allows shared libraries with undefined symbols to be built.
22325: allow_undefined_flag=$lt_allow_undefined_flag_F77
22326:
22327: # Flag that forces no undefined symbols.
22328: no_undefined_flag=$lt_no_undefined_flag_F77
22329:
22330: # Commands used to finish a libtool library installation in a directory.
22331: finish_cmds=$lt_finish_cmds
22332:
22333: # Same as above, but a single script fragment to be evaled but not shown.
22334: finish_eval=$lt_finish_eval
22335:
22336: # Take the output of nm and produce a listing of raw symbols and C names.
22337: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22338:
22339: # Transform the output of nm in a proper C declaration
22340: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22341:
22342: # Transform the output of nm in a C name address pair
22343: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22344:
22345: # This is the shared library runtime path variable.
22346: runpath_var=$runpath_var
22347:
22348: # This is the shared library path variable.
22349: shlibpath_var=$shlibpath_var
22350:
22351: # Is shlibpath searched before the hard-coded library search path?
22352: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22353:
22354: # How to hardcode a shared library path into an executable.
22355: hardcode_action=$hardcode_action_F77
22356:
22357: # Whether we should hardcode library paths into libraries.
22358: hardcode_into_libs=$hardcode_into_libs
22359:
22360: # Flag to hardcode \$libdir into a binary during linking.
22361: # This must work even if \$libdir does not exist.
22362: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22363:
22364: # If ld is used when linking, flag to hardcode \$libdir into
22365: # a binary during linking. This must work even if \$libdir does
22366: # not exist.
22367: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22368:
22369: # Whether we need a single -rpath flag with a separated argument.
22370: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22371:
22372: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373: # resulting binary.
22374: hardcode_direct=$hardcode_direct_F77
22375:
22376: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377: # resulting binary.
22378: hardcode_minus_L=$hardcode_minus_L_F77
22379:
22380: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381: # the resulting binary.
22382: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22383:
22384: # Set to yes if building a shared library automatically hardcodes DIR into the library
22385: # and all subsequent libraries and executables linked against it.
22386: hardcode_automatic=$hardcode_automatic_F77
22387:
22388: # Variables whose values should be saved in libtool wrapper scripts and
22389: # restored at relink time.
22390: variables_saved_for_relink="$variables_saved_for_relink"
22391:
22392: # Whether libtool must link a program against all its dependency libraries.
22393: link_all_deplibs=$link_all_deplibs_F77
22394:
22395: # Compile-time system search path for libraries
22396: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22397:
22398: # Run-time system search path for libraries
22399: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22400:
22401: # Fix the shell variable \$srcfile for the compiler.
22402: fix_srcfile_path="$fix_srcfile_path_F77"
22403:
22404: # Set to yes if exported symbols are required.
22405: always_export_symbols=$always_export_symbols_F77
22406:
22407: # The commands to list exported symbols.
22408: export_symbols_cmds=$lt_export_symbols_cmds_F77
22409:
22410: # The commands to extract the exported symbol list from a shared archive.
22411: extract_expsyms_cmds=$lt_extract_expsyms_cmds
22412:
22413: # Symbols that should not be listed in the preloaded symbols.
22414: exclude_expsyms=$lt_exclude_expsyms_F77
22415:
22416: # Symbols that must always be exported.
22417: include_expsyms=$lt_include_expsyms_F77
22418:
22419: # ### END LIBTOOL TAG CONFIG: $tagname
22420:
22421: __EOF__
22422:
22423:
22424: else
22425: # If there is no Makefile yet, we rely on a make rule to execute
22426: # `config.status --recheck' to rerun these tests and create the
22427: # libtool script then.
22428: test -f Makefile && make "$ltmain"
22429: fi
22430:
22431:
22432: ac_ext=c
22433: ac_cpp='$CPP $CPPFLAGS'
22434: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22435: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22436: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22437:
22438: CC="$lt_save_CC"
22439:
22440: else
22441: tagname=""
22442: fi
22443: ;;
22444:
22445: GCJ)
22446: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22447:
22448:
22449:
22450: # Source file extension for Java test sources.
22451: ac_ext=java
22452:
22453: # Object file extension for compiled Java test sources.
22454: objext=o
22455: objext_GCJ=$objext
22456:
22457: # Code to be used in simple compile tests
22458: lt_simple_compile_test_code="class foo {}\n"
22459:
22460: # Code to be used in simple link tests
22461: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
22462:
22463: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22464:
22465: # If no C compiler was specified, use CC.
22466: LTCC=${LTCC-"$CC"}
22467:
22468: # Allow CC to be a program name with arguments.
22469: compiler=$CC
22470:
22471:
22472: # Allow CC to be a program name with arguments.
22473: lt_save_CC="$CC"
22474: CC=${GCJ-"gcj"}
22475: compiler=$CC
22476: compiler_GCJ=$CC
22477:
22478: # GCJ did not exist at the time GCC didn't implicitly link libc in.
22479: archive_cmds_need_lc_GCJ=no
22480:
22481:
22482: lt_prog_compiler_no_builtin_flag_GCJ=
22483:
22484: if test "$GCC" = yes; then
22485: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22486:
22487: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22488: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22489: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22490: echo $ECHO_N "(cached) $ECHO_C" >&6
22491: else
22492: lt_cv_prog_compiler_rtti_exceptions=no
22493: ac_outfile=conftest.$ac_objext
22494: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22495: lt_compiler_flag="-fno-rtti -fno-exceptions"
22496: # Insert the option either (1) after the last *FLAGS variable, or
22497: # (2) before a word containing "conftest.", or (3) at the end.
22498: # Note that $ac_compile itself does not contain backslashes and begins
22499: # with a dollar sign (not a hyphen), so the echo should work correctly.
22500: # The option is referenced via a variable to avoid confusing sed.
22501: lt_compile=`echo "$ac_compile" | $SED \
22502: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22503: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22504: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 22505: (eval echo "\"\$as_me:22505: $lt_compile\"" >&5)
1.1 root 22506: (eval "$lt_compile" 2>conftest.err)
22507: ac_status=$?
22508: cat conftest.err >&5
1.1.1.4 ! root 22509: echo "$as_me:22509: \$? = $ac_status" >&5
1.1 root 22510: if (exit $ac_status) && test -s "$ac_outfile"; then
22511: # The compiler can only warn and ignore the option if not recognized
22512: # So say no if there are warnings
22513: if test ! -s conftest.err; then
22514: lt_cv_prog_compiler_rtti_exceptions=yes
22515: fi
22516: fi
22517: $rm conftest*
22518:
22519: fi
22520: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22521: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22522:
22523: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22524: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22525: else
22526: :
22527: fi
22528:
22529: fi
22530:
22531: lt_prog_compiler_wl_GCJ=
22532: lt_prog_compiler_pic_GCJ=
22533: lt_prog_compiler_static_GCJ=
22534:
22535: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22536: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22537:
22538: if test "$GCC" = yes; then
22539: lt_prog_compiler_wl_GCJ='-Wl,'
22540: lt_prog_compiler_static_GCJ='-static'
22541:
22542: case $host_os in
22543: aix*)
22544: # All AIX code is PIC.
22545: if test "$host_cpu" = ia64; then
22546: # AIX 5 now supports IA64 processor
22547: lt_prog_compiler_static_GCJ='-Bstatic'
22548: fi
22549: ;;
22550:
22551: amigaos*)
22552: # FIXME: we need at least 68020 code to build shared libraries, but
22553: # adding the `-m68020' flag to GCC prevents building anything better,
22554: # like `-m68040'.
22555: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22556: ;;
22557:
22558: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22559: # PIC is the default for these OSes.
22560: ;;
22561:
22562: mingw* | pw32* | os2*)
22563: # This hack is so that the source file can tell whether it is being
22564: # built for inclusion in a dll (and should export symbols for example).
22565: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22566: ;;
22567:
22568: darwin* | rhapsody*)
22569: # PIC is the default on this platform
22570: # Common symbols not allowed in MH_DYLIB files
22571: lt_prog_compiler_pic_GCJ='-fno-common'
22572: ;;
22573:
22574: msdosdjgpp*)
22575: # Just because we use GCC doesn't mean we suddenly get shared libraries
22576: # on systems that don't support them.
22577: lt_prog_compiler_can_build_shared_GCJ=no
22578: enable_shared=no
22579: ;;
22580:
22581: sysv4*MP*)
22582: if test -d /usr/nec; then
22583: lt_prog_compiler_pic_GCJ=-Kconform_pic
22584: fi
22585: ;;
22586:
22587: hpux*)
22588: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22589: # not for PA HP-UX.
22590: case "$host_cpu" in
22591: hppa*64*|ia64*)
22592: # +Z the default
22593: ;;
22594: *)
22595: lt_prog_compiler_pic_GCJ='-fPIC'
22596: ;;
22597: esac
22598: ;;
22599:
22600: *)
22601: lt_prog_compiler_pic_GCJ='-fPIC'
22602: ;;
22603: esac
22604: else
22605: # PORTME Check for flag to pass linker flags through the system compiler.
22606: case $host_os in
22607: aix*)
22608: lt_prog_compiler_wl_GCJ='-Wl,'
22609: if test "$host_cpu" = ia64; then
22610: # AIX 5 now supports IA64 processor
22611: lt_prog_compiler_static_GCJ='-Bstatic'
22612: else
22613: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22614: fi
22615: ;;
22616:
22617: mingw* | pw32* | os2*)
22618: # This hack is so that the source file can tell whether it is being
22619: # built for inclusion in a dll (and should export symbols for example).
22620: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22621: ;;
22622:
22623: hpux9* | hpux10* | hpux11*)
22624: lt_prog_compiler_wl_GCJ='-Wl,'
22625: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22626: # not for PA HP-UX.
22627: case "$host_cpu" in
22628: hppa*64*|ia64*)
22629: # +Z the default
22630: ;;
22631: *)
22632: lt_prog_compiler_pic_GCJ='+Z'
22633: ;;
22634: esac
22635: # Is there a better lt_prog_compiler_static that works with the bundled CC?
22636: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22637: ;;
22638:
22639: irix5* | irix6* | nonstopux*)
22640: lt_prog_compiler_wl_GCJ='-Wl,'
22641: # PIC (with -KPIC) is the default.
22642: lt_prog_compiler_static_GCJ='-non_shared'
22643: ;;
22644:
22645: newsos6)
22646: lt_prog_compiler_pic_GCJ='-KPIC'
22647: lt_prog_compiler_static_GCJ='-Bstatic'
22648: ;;
22649:
22650: linux*)
22651: case $CC in
22652: icc|ecc)
22653: lt_prog_compiler_wl_GCJ='-Wl,'
22654: lt_prog_compiler_pic_GCJ='-KPIC'
22655: lt_prog_compiler_static_GCJ='-static'
22656: ;;
22657: ccc)
22658: lt_prog_compiler_wl_GCJ='-Wl,'
22659: # All Alpha code is PIC.
22660: lt_prog_compiler_static_GCJ='-non_shared'
22661: ;;
22662: esac
22663: ;;
22664:
22665: osf3* | osf4* | osf5*)
22666: lt_prog_compiler_wl_GCJ='-Wl,'
22667: # All OSF/1 code is PIC.
22668: lt_prog_compiler_static_GCJ='-non_shared'
22669: ;;
22670:
22671: sco3.2v5*)
22672: lt_prog_compiler_pic_GCJ='-Kpic'
22673: lt_prog_compiler_static_GCJ='-dn'
22674: ;;
22675:
22676: solaris*)
22677: lt_prog_compiler_wl_GCJ='-Wl,'
22678: lt_prog_compiler_pic_GCJ='-KPIC'
22679: lt_prog_compiler_static_GCJ='-Bstatic'
22680: ;;
22681:
22682: sunos4*)
22683: lt_prog_compiler_wl_GCJ='-Qoption ld '
22684: lt_prog_compiler_pic_GCJ='-PIC'
22685: lt_prog_compiler_static_GCJ='-Bstatic'
22686: ;;
22687:
22688: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22689: lt_prog_compiler_wl_GCJ='-Wl,'
22690: lt_prog_compiler_pic_GCJ='-KPIC'
22691: lt_prog_compiler_static_GCJ='-Bstatic'
22692: ;;
22693:
22694: sysv4*MP*)
22695: if test -d /usr/nec ;then
22696: lt_prog_compiler_pic_GCJ='-Kconform_pic'
22697: lt_prog_compiler_static_GCJ='-Bstatic'
22698: fi
22699: ;;
22700:
22701: uts4*)
22702: lt_prog_compiler_pic_GCJ='-pic'
22703: lt_prog_compiler_static_GCJ='-Bstatic'
22704: ;;
22705:
22706: *)
22707: lt_prog_compiler_can_build_shared_GCJ=no
22708: ;;
22709: esac
22710: fi
22711:
22712: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22713: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22714:
22715: #
22716: # Check to make sure the PIC flag actually works.
22717: #
22718: if test -n "$lt_prog_compiler_pic_GCJ"; then
22719: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22720: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22721: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22722: echo $ECHO_N "(cached) $ECHO_C" >&6
22723: else
22724: lt_prog_compiler_pic_works_GCJ=no
22725: ac_outfile=conftest.$ac_objext
22726: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22727: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22728: # Insert the option either (1) after the last *FLAGS variable, or
22729: # (2) before a word containing "conftest.", or (3) at the end.
22730: # Note that $ac_compile itself does not contain backslashes and begins
22731: # with a dollar sign (not a hyphen), so the echo should work correctly.
22732: # The option is referenced via a variable to avoid confusing sed.
22733: lt_compile=`echo "$ac_compile" | $SED \
22734: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22735: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22736: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 22737: (eval echo "\"\$as_me:22737: $lt_compile\"" >&5)
1.1 root 22738: (eval "$lt_compile" 2>conftest.err)
22739: ac_status=$?
22740: cat conftest.err >&5
1.1.1.4 ! root 22741: echo "$as_me:22741: \$? = $ac_status" >&5
1.1 root 22742: if (exit $ac_status) && test -s "$ac_outfile"; then
22743: # The compiler can only warn and ignore the option if not recognized
22744: # So say no if there are warnings
22745: if test ! -s conftest.err; then
22746: lt_prog_compiler_pic_works_GCJ=yes
22747: fi
22748: fi
22749: $rm conftest*
22750:
22751: fi
22752: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22753: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22754:
22755: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22756: case $lt_prog_compiler_pic_GCJ in
22757: "" | " "*) ;;
22758: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22759: esac
22760: else
22761: lt_prog_compiler_pic_GCJ=
22762: lt_prog_compiler_can_build_shared_GCJ=no
22763: fi
22764:
22765: fi
22766: case "$host_os" in
22767: # For platforms which do not support PIC, -DPIC is meaningless:
22768: *djgpp*)
22769: lt_prog_compiler_pic_GCJ=
22770: ;;
22771: *)
22772: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22773: ;;
22774: esac
22775:
22776: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22777: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22778: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22779: echo $ECHO_N "(cached) $ECHO_C" >&6
22780: else
22781: lt_cv_prog_compiler_c_o_GCJ=no
22782: $rm -r conftest 2>/dev/null
22783: mkdir conftest
22784: cd conftest
22785: mkdir out
22786: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22787:
22788: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
22789: # that will create temporary files in the current directory regardless of
22790: # the output directory. Thus, making CWD read-only will cause this test
22791: # to fail, enabling locking or at least warning the user not to do parallel
22792: # builds.
22793: chmod -w .
22794:
22795: lt_compiler_flag="-o out/conftest2.$ac_objext"
22796: # Insert the option either (1) after the last *FLAGS variable, or
22797: # (2) before a word containing "conftest.", or (3) at the end.
22798: # Note that $ac_compile itself does not contain backslashes and begins
22799: # with a dollar sign (not a hyphen), so the echo should work correctly.
22800: lt_compile=`echo "$ac_compile" | $SED \
22801: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22802: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22803: -e 's:$: $lt_compiler_flag:'`
1.1.1.4 ! root 22804: (eval echo "\"\$as_me:22804: $lt_compile\"" >&5)
1.1 root 22805: (eval "$lt_compile" 2>out/conftest.err)
22806: ac_status=$?
22807: cat out/conftest.err >&5
1.1.1.4 ! root 22808: echo "$as_me:22808: \$? = $ac_status" >&5
1.1 root 22809: if (exit $ac_status) && test -s out/conftest2.$ac_objext
22810: then
22811: # The compiler can only warn and ignore the option if not recognized
22812: # So say no if there are warnings
22813: if test ! -s out/conftest.err; then
22814: lt_cv_prog_compiler_c_o_GCJ=yes
22815: fi
22816: fi
22817: chmod u+w .
22818: $rm conftest* out/*
22819: rmdir out
22820: cd ..
22821: rmdir conftest
22822: $rm conftest*
22823:
22824: fi
22825: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22826: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22827:
22828:
22829: hard_links="nottested"
22830: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22831: # do not overwrite the value of need_locks provided by the user
22832: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22833: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22834: hard_links=yes
22835: $rm conftest*
22836: ln conftest.a conftest.b 2>/dev/null && hard_links=no
22837: touch conftest.a
22838: ln conftest.a conftest.b 2>&5 || hard_links=no
22839: ln conftest.a conftest.b 2>/dev/null && hard_links=no
22840: echo "$as_me:$LINENO: result: $hard_links" >&5
22841: echo "${ECHO_T}$hard_links" >&6
22842: if test "$hard_links" = no; then
22843: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22844: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22845: need_locks=warn
22846: fi
22847: else
22848: need_locks=no
22849: fi
22850:
22851: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22852: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22853:
22854: runpath_var=
22855: allow_undefined_flag_GCJ=
22856: enable_shared_with_static_runtimes_GCJ=no
22857: archive_cmds_GCJ=
22858: archive_expsym_cmds_GCJ=
22859: old_archive_From_new_cmds_GCJ=
22860: old_archive_from_expsyms_cmds_GCJ=
22861: export_dynamic_flag_spec_GCJ=
22862: whole_archive_flag_spec_GCJ=
22863: thread_safe_flag_spec_GCJ=
22864: hardcode_libdir_flag_spec_GCJ=
22865: hardcode_libdir_flag_spec_ld_GCJ=
22866: hardcode_libdir_separator_GCJ=
22867: hardcode_direct_GCJ=no
22868: hardcode_minus_L_GCJ=no
22869: hardcode_shlibpath_var_GCJ=unsupported
22870: link_all_deplibs_GCJ=unknown
22871: hardcode_automatic_GCJ=no
22872: module_cmds_GCJ=
22873: module_expsym_cmds_GCJ=
22874: always_export_symbols_GCJ=no
22875: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22876: # include_expsyms should be a list of space-separated symbols to be *always*
22877: # included in the symbol list
22878: include_expsyms_GCJ=
22879: # exclude_expsyms can be an extended regexp of symbols to exclude
22880: # it will be wrapped by ` (' and `)$', so one must not match beginning or
22881: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22882: # as well as any symbol that contains `d'.
22883: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22884: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22885: # platforms (ab)use it in PIC code, but their linkers get confused if
22886: # the symbol is explicitly referenced. Since portable code cannot
22887: # rely on this symbol name, it's probably fine to never include it in
22888: # preloaded symbol tables.
22889: extract_expsyms_cmds=
22890:
22891: case $host_os in
22892: cygwin* | mingw* | pw32*)
22893: # FIXME: the MSVC++ port hasn't been tested in a loooong time
22894: # When not using gcc, we currently assume that we are using
22895: # Microsoft Visual C++.
22896: if test "$GCC" != yes; then
22897: with_gnu_ld=no
22898: fi
22899: ;;
22900: openbsd*)
22901: with_gnu_ld=no
22902: ;;
22903: esac
22904:
22905: ld_shlibs_GCJ=yes
22906: if test "$with_gnu_ld" = yes; then
22907: # If archive_cmds runs LD, not CC, wlarc should be empty
22908: wlarc='${wl}'
22909:
22910: # See if GNU ld supports shared libraries.
22911: case $host_os in
22912: aix3* | aix4* | aix5*)
22913: # On AIX/PPC, the GNU linker is very broken
22914: if test "$host_cpu" != ia64; then
22915: ld_shlibs_GCJ=no
22916: cat <<EOF 1>&2
22917:
22918: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22919: *** to be unable to reliably create shared libraries on AIX.
22920: *** Therefore, libtool is disabling shared libraries support. If you
22921: *** really care for shared libraries, you may want to modify your PATH
22922: *** so that a non-GNU linker is found, and then restart.
22923:
22924: EOF
22925: fi
22926: ;;
22927:
22928: amigaos*)
22929: archive_cmds_GCJ='$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)'
22930: hardcode_libdir_flag_spec_GCJ='-L$libdir'
22931: hardcode_minus_L_GCJ=yes
22932:
22933: # Samuel A. Falvo II <[email protected]> reports
22934: # that the semantics of dynamic libraries on AmigaOS, at least up
22935: # to version 4, is to share data among multiple programs linked
22936: # with the same dynamic library. Since this doesn't match the
22937: # behavior of shared libraries on other platforms, we can't use
22938: # them.
22939: ld_shlibs_GCJ=no
22940: ;;
22941:
22942: beos*)
22943: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22944: allow_undefined_flag_GCJ=unsupported
22945: # Joseph Beckenbach <[email protected]> says some releases of gcc
22946: # support --undefined. This deserves some investigation. FIXME
22947: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22948: else
22949: ld_shlibs_GCJ=no
22950: fi
22951: ;;
22952:
22953: cygwin* | mingw* | pw32*)
22954: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22955: # as there is no search path for DLLs.
22956: hardcode_libdir_flag_spec_GCJ='-L$libdir'
22957: allow_undefined_flag_GCJ=unsupported
22958: always_export_symbols_GCJ=no
22959: enable_shared_with_static_runtimes_GCJ=yes
22960: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22961:
22962: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22963: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22964: # If the export-symbols file already is a .def file (1st line
22965: # is EXPORTS), use it as is; otherwise, prepend...
22966: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22967: cp $export_symbols $output_objdir/$soname.def;
22968: else
22969: echo EXPORTS > $output_objdir/$soname.def;
22970: cat $export_symbols >> $output_objdir/$soname.def;
22971: fi~
22972: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22973: else
22974: ld_shlibs=no
22975: fi
22976: ;;
22977:
22978: netbsd*)
22979: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22980: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22981: wlarc=
22982: else
22983: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22984: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22985: fi
22986: ;;
22987:
22988: solaris* | sysv5*)
22989: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22990: ld_shlibs_GCJ=no
22991: cat <<EOF 1>&2
22992:
22993: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22994: *** create shared libraries on Solaris systems. Therefore, libtool
22995: *** is disabling shared libraries support. We urge you to upgrade GNU
22996: *** binutils to release 2.9.1 or newer. Another option is to modify
22997: *** your PATH or compiler configuration so that the native linker is
22998: *** used, and then restart.
22999:
23000: EOF
23001: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23002: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23003: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23004: else
23005: ld_shlibs_GCJ=no
23006: fi
23007: ;;
23008:
23009: sunos4*)
23010: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23011: wlarc=
23012: hardcode_direct_GCJ=yes
23013: hardcode_shlibpath_var_GCJ=no
23014: ;;
23015:
23016: *)
23017: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23018: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23019: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23020: else
23021: ld_shlibs_GCJ=no
23022: fi
23023: ;;
23024: esac
23025:
23026: if test "$ld_shlibs_GCJ" = yes; then
23027: runpath_var=LD_RUN_PATH
23028: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23029: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23030: # ancient GNU ld didn't support --whole-archive et. al.
23031: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23032: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23033: else
23034: whole_archive_flag_spec_GCJ=
23035: fi
23036: fi
23037: else
23038: # PORTME fill in a description of your system's linker (not GNU ld)
23039: case $host_os in
23040: aix3*)
23041: allow_undefined_flag_GCJ=unsupported
23042: always_export_symbols_GCJ=yes
23043: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23044: # Note: this linker hardcodes the directories in LIBPATH if there
23045: # are no directories specified by -L.
23046: hardcode_minus_L_GCJ=yes
23047: if test "$GCC" = yes && test -z "$link_static_flag"; then
23048: # Neither direct hardcoding nor static linking is supported with a
23049: # broken collect2.
23050: hardcode_direct_GCJ=unsupported
23051: fi
23052: ;;
23053:
23054: aix4* | aix5*)
23055: if test "$host_cpu" = ia64; then
23056: # On IA64, the linker does run time linking by default, so we don't
23057: # have to do anything special.
23058: aix_use_runtimelinking=no
23059: exp_sym_flag='-Bexport'
23060: no_entry_flag=""
23061: else
23062: # If we're using GNU nm, then we don't want the "-C" option.
23063: # -C means demangle to AIX nm, but means don't demangle with GNU nm
23064: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23065: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23066: else
23067: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23068: fi
23069: aix_use_runtimelinking=no
23070:
23071: # Test if we are trying to use run time linking or normal
23072: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23073: # need to do runtime linking.
23074: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23075: for ld_flag in $LDFLAGS; do
23076: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23077: aix_use_runtimelinking=yes
23078: break
23079: fi
23080: done
23081: esac
23082:
23083: exp_sym_flag='-bexport'
23084: no_entry_flag='-bnoentry'
23085: fi
23086:
23087: # When large executables or shared objects are built, AIX ld can
23088: # have problems creating the table of contents. If linking a library
23089: # or program results in "error TOC overflow" add -mminimal-toc to
23090: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23091: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23092:
23093: archive_cmds_GCJ=''
23094: hardcode_direct_GCJ=yes
23095: hardcode_libdir_separator_GCJ=':'
23096: link_all_deplibs_GCJ=yes
23097:
23098: if test "$GCC" = yes; then
23099: case $host_os in aix4.012|aix4.012.*)
23100: # We only want to do this on AIX 4.2 and lower, the check
23101: # below for broken collect2 doesn't work under 4.3+
23102: collect2name=`${CC} -print-prog-name=collect2`
23103: if test -f "$collect2name" && \
23104: strings "$collect2name" | grep resolve_lib_name >/dev/null
23105: then
23106: # We have reworked collect2
23107: hardcode_direct_GCJ=yes
23108: else
23109: # We have old collect2
23110: hardcode_direct_GCJ=unsupported
23111: # It fails to find uninstalled libraries when the uninstalled
23112: # path is not listed in the libpath. Setting hardcode_minus_L
23113: # to unsupported forces relinking
23114: hardcode_minus_L_GCJ=yes
23115: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23116: hardcode_libdir_separator_GCJ=
23117: fi
23118: esac
23119: shared_flag='-shared'
23120: else
23121: # not using gcc
23122: if test "$host_cpu" = ia64; then
23123: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23124: # chokes on -Wl,-G. The following line is correct:
23125: shared_flag='-G'
23126: else
23127: if test "$aix_use_runtimelinking" = yes; then
23128: shared_flag='${wl}-G'
23129: else
23130: shared_flag='${wl}-bM:SRE'
23131: fi
23132: fi
23133: fi
23134:
23135: # It seems that -bexpall does not export symbols beginning with
23136: # underscore (_), so it is better to generate a list of symbols to export.
23137: always_export_symbols_GCJ=yes
23138: if test "$aix_use_runtimelinking" = yes; then
23139: # Warning - without using the other runtime loading flags (-brtl),
23140: # -berok will link without error, but may produce a broken library.
23141: allow_undefined_flag_GCJ='-berok'
23142: # Determine the default libpath from the value encoded in an empty executable.
23143: cat >conftest.$ac_ext <<_ACEOF
23144: #line $LINENO "configure"
23145: /* confdefs.h. */
23146: _ACEOF
23147: cat confdefs.h >>conftest.$ac_ext
23148: cat >>conftest.$ac_ext <<_ACEOF
23149: /* end confdefs.h. */
23150:
23151: int
23152: main ()
23153: {
23154:
23155: ;
23156: return 0;
23157: }
23158: _ACEOF
23159: rm -f conftest.$ac_objext conftest$ac_exeext
23160: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23161: (eval $ac_link) 2>&5
23162: ac_status=$?
23163: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164: (exit $ac_status); } &&
23165: { ac_try='test -s conftest$ac_exeext'
23166: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167: (eval $ac_try) 2>&5
23168: ac_status=$?
23169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170: (exit $ac_status); }; }; then
23171:
23172: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23173: }'`
23174: # Check for a 64-bit object if we didn't find anything.
23175: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23176: }'`; fi
23177: else
23178: echo "$as_me: failed program was:" >&5
23179: sed 's/^/| /' conftest.$ac_ext >&5
23180:
23181: fi
23182: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23183: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23184:
23185: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23186: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23187: else
23188: if test "$host_cpu" = ia64; then
23189: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23190: allow_undefined_flag_GCJ="-z nodefs"
23191: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
23192: else
23193: # Determine the default libpath from the value encoded in an empty executable.
23194: cat >conftest.$ac_ext <<_ACEOF
23195: #line $LINENO "configure"
23196: /* confdefs.h. */
23197: _ACEOF
23198: cat confdefs.h >>conftest.$ac_ext
23199: cat >>conftest.$ac_ext <<_ACEOF
23200: /* end confdefs.h. */
23201:
23202: int
23203: main ()
23204: {
23205:
23206: ;
23207: return 0;
23208: }
23209: _ACEOF
23210: rm -f conftest.$ac_objext conftest$ac_exeext
23211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23212: (eval $ac_link) 2>&5
23213: ac_status=$?
23214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215: (exit $ac_status); } &&
23216: { ac_try='test -s conftest$ac_exeext'
23217: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218: (eval $ac_try) 2>&5
23219: ac_status=$?
23220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221: (exit $ac_status); }; }; then
23222:
23223: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23224: }'`
23225: # Check for a 64-bit object if we didn't find anything.
23226: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23227: }'`; fi
23228: else
23229: echo "$as_me: failed program was:" >&5
23230: sed 's/^/| /' conftest.$ac_ext >&5
23231:
23232: fi
23233: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23234: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23235:
23236: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23237: # Warning - without using the other run time loading flags,
23238: # -berok will link without error, but may produce a broken library.
23239: no_undefined_flag_GCJ=' ${wl}-bernotok'
23240: allow_undefined_flag_GCJ=' ${wl}-berok'
23241: # -bexpall does not export symbols beginning with underscore (_)
23242: always_export_symbols_GCJ=yes
23243: # Exported symbols can be pulled into shared objects from archives
23244: whole_archive_flag_spec_GCJ=' '
23245: archive_cmds_need_lc_GCJ=yes
23246: # This is similar to how AIX traditionally builds it's shared libraries.
23247: archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23248: fi
23249: fi
23250: ;;
23251:
23252: amigaos*)
23253: archive_cmds_GCJ='$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)'
23254: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23255: hardcode_minus_L_GCJ=yes
23256: # see comment about different semantics on the GNU ld section
23257: ld_shlibs_GCJ=no
23258: ;;
23259:
23260: bsdi4*)
23261: export_dynamic_flag_spec_GCJ=-rdynamic
23262: ;;
23263:
23264: cygwin* | mingw* | pw32*)
23265: # When not using gcc, we currently assume that we are using
23266: # Microsoft Visual C++.
23267: # hardcode_libdir_flag_spec is actually meaningless, as there is
23268: # no search path for DLLs.
23269: hardcode_libdir_flag_spec_GCJ=' '
23270: allow_undefined_flag_GCJ=unsupported
23271: # Tell ltmain to make .lib files, not .a files.
23272: libext=lib
23273: # Tell ltmain to make .dll files, not .so files.
23274: shrext=".dll"
23275: # FIXME: Setting linknames here is a bad hack.
23276: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23277: # The linker will automatically build a .lib file if we build a DLL.
23278: old_archive_From_new_cmds_GCJ='true'
23279: # FIXME: Should let the user specify the lib program.
23280: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23281: fix_srcfile_path='`cygpath -w "$srcfile"`'
23282: enable_shared_with_static_runtimes_GCJ=yes
23283: ;;
23284:
23285: darwin* | rhapsody*)
23286: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
23287: archive_cmds_need_lc_GCJ=no
23288: case "$host_os" in
23289: rhapsody* | darwin1.[012])
23290: allow_undefined_flag_GCJ='-undefined suppress'
23291: ;;
23292: *) # Darwin 1.3 on
23293: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
23294: ;;
23295: esac
23296: # FIXME: Relying on posixy $() will cause problems for
23297: # cross-compilation, but unfortunately the echo tests do not
23298: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
23299: # `"' quotes if we put them in here... so don't!
23300: lt_int_apple_cc_single_mod=no
23301: output_verbose_link_cmd='echo'
23302: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
23303: lt_int_apple_cc_single_mod=yes
23304: fi
23305: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23306: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23307: else
23308: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
23309: fi
23310: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
23311: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23312: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23313: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23314: else
23315: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23316: fi
23317: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23318: hardcode_direct_GCJ=no
23319: hardcode_automatic_GCJ=yes
23320: hardcode_shlibpath_var_GCJ=unsupported
23321: whole_archive_flag_spec_GCJ='-all_load $convenience'
23322: link_all_deplibs_GCJ=yes
23323: fi
23324: ;;
23325:
23326: dgux*)
23327: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23328: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23329: hardcode_shlibpath_var_GCJ=no
23330: ;;
23331:
23332: freebsd1*)
23333: ld_shlibs_GCJ=no
23334: ;;
23335:
23336: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23337: # support. Future versions do this automatically, but an explicit c++rt0.o
23338: # does not break anything, and helps significantly (at the cost of a little
23339: # extra space).
23340: freebsd2.2*)
23341: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23342: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23343: hardcode_direct_GCJ=yes
23344: hardcode_shlibpath_var_GCJ=no
23345: ;;
23346:
23347: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23348: freebsd2*)
23349: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23350: hardcode_direct_GCJ=yes
23351: hardcode_minus_L_GCJ=yes
23352: hardcode_shlibpath_var_GCJ=no
23353: ;;
23354:
23355: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23356: freebsd*)
23357: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23358: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23359: hardcode_direct_GCJ=yes
23360: hardcode_shlibpath_var_GCJ=no
23361: ;;
23362:
23363: hpux9*)
23364: if test "$GCC" = yes; then
23365: archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23366: else
23367: archive_cmds_GCJ='$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'
23368: fi
23369: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23370: hardcode_libdir_separator_GCJ=:
23371: hardcode_direct_GCJ=yes
23372:
23373: # hardcode_minus_L: Not really in the search PATH,
23374: # but as the default location of the library.
23375: hardcode_minus_L_GCJ=yes
23376: export_dynamic_flag_spec_GCJ='${wl}-E'
23377: ;;
23378:
23379: hpux10* | hpux11*)
23380: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23381: case "$host_cpu" in
23382: hppa*64*|ia64*)
23383: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23384: ;;
23385: *)
23386: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23387: ;;
23388: esac
23389: else
23390: case "$host_cpu" in
23391: hppa*64*|ia64*)
23392: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23393: ;;
23394: *)
23395: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23396: ;;
23397: esac
23398: fi
23399: if test "$with_gnu_ld" = no; then
23400: case "$host_cpu" in
23401: hppa*64*)
23402: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23403: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23404: hardcode_libdir_separator_GCJ=:
23405: hardcode_direct_GCJ=no
23406: hardcode_shlibpath_var_GCJ=no
23407: ;;
23408: ia64*)
23409: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23410: hardcode_direct_GCJ=no
23411: hardcode_shlibpath_var_GCJ=no
23412:
23413: # hardcode_minus_L: Not really in the search PATH,
23414: # but as the default location of the library.
23415: hardcode_minus_L_GCJ=yes
23416: ;;
23417: *)
23418: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23419: hardcode_libdir_separator_GCJ=:
23420: hardcode_direct_GCJ=yes
23421: export_dynamic_flag_spec_GCJ='${wl}-E'
23422:
23423: # hardcode_minus_L: Not really in the search PATH,
23424: # but as the default location of the library.
23425: hardcode_minus_L_GCJ=yes
23426: ;;
23427: esac
23428: fi
23429: ;;
23430:
23431: irix5* | irix6* | nonstopux*)
23432: if test "$GCC" = yes; then
23433: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23434: else
23435: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23436: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23437: fi
23438: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23439: hardcode_libdir_separator_GCJ=:
23440: link_all_deplibs_GCJ=yes
23441: ;;
23442:
23443: netbsd*)
23444: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23445: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23446: else
23447: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23448: fi
23449: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23450: hardcode_direct_GCJ=yes
23451: hardcode_shlibpath_var_GCJ=no
23452: ;;
23453:
23454: newsos6)
23455: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23456: hardcode_direct_GCJ=yes
23457: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23458: hardcode_libdir_separator_GCJ=:
23459: hardcode_shlibpath_var_GCJ=no
23460: ;;
23461:
23462: openbsd*)
23463: hardcode_direct_GCJ=yes
23464: hardcode_shlibpath_var_GCJ=no
23465: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23466: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23467: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23468: export_dynamic_flag_spec_GCJ='${wl}-E'
23469: else
23470: case $host_os in
23471: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23472: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23473: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23474: ;;
23475: *)
23476: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23477: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23478: ;;
23479: esac
23480: fi
23481: ;;
23482:
23483: os2*)
23484: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23485: hardcode_minus_L_GCJ=yes
23486: allow_undefined_flag_GCJ=unsupported
23487: archive_cmds_GCJ='$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'
23488: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23489: ;;
23490:
23491: osf3*)
23492: if test "$GCC" = yes; then
23493: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23494: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23495: else
23496: allow_undefined_flag_GCJ=' -expect_unresolved \*'
23497: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23498: fi
23499: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23500: hardcode_libdir_separator_GCJ=:
23501: ;;
23502:
23503: osf4* | osf5*) # as osf3* with the addition of -msym flag
23504: if test "$GCC" = yes; then
23505: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23506: archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23507: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23508: else
23509: allow_undefined_flag_GCJ=' -expect_unresolved \*'
23510: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23511: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23512: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23513:
23514: # Both c and cxx compiler support -rpath directly
23515: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23516: fi
23517: hardcode_libdir_separator_GCJ=:
23518: ;;
23519:
23520: sco3.2v5*)
23521: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23522: hardcode_shlibpath_var_GCJ=no
23523: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23524: runpath_var=LD_RUN_PATH
23525: hardcode_runpath_var=yes
23526: ;;
23527:
23528: solaris*)
23529: no_undefined_flag_GCJ=' -z text'
23530: if test "$GCC" = yes; then
23531: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23532: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23533: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23534: else
23535: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23536: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23537: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23538: fi
23539: hardcode_libdir_flag_spec_GCJ='-R$libdir'
23540: hardcode_shlibpath_var_GCJ=no
23541: case $host_os in
23542: solaris2.[0-5] | solaris2.[0-5].*) ;;
23543: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23544: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23545: esac
23546: link_all_deplibs_GCJ=yes
23547: ;;
23548:
23549: sunos4*)
23550: if test "x$host_vendor" = xsequent; then
23551: # Use $CC to link under sequent, because it throws in some extra .o
23552: # files that make .init and .fini sections work.
23553: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23554: else
23555: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23556: fi
23557: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23558: hardcode_direct_GCJ=yes
23559: hardcode_minus_L_GCJ=yes
23560: hardcode_shlibpath_var_GCJ=no
23561: ;;
23562:
23563: sysv4)
23564: case $host_vendor in
23565: sni)
23566: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23567: hardcode_direct_GCJ=yes # is this really true???
23568: ;;
23569: siemens)
23570: ## LD is ld it makes a PLAMLIB
23571: ## CC just makes a GrossModule.
23572: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23573: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23574: hardcode_direct_GCJ=no
23575: ;;
23576: motorola)
23577: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23578: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23579: ;;
23580: esac
23581: runpath_var='LD_RUN_PATH'
23582: hardcode_shlibpath_var_GCJ=no
23583: ;;
23584:
23585: sysv4.3*)
23586: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23587: hardcode_shlibpath_var_GCJ=no
23588: export_dynamic_flag_spec_GCJ='-Bexport'
23589: ;;
23590:
23591: sysv4*MP*)
23592: if test -d /usr/nec; then
23593: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23594: hardcode_shlibpath_var_GCJ=no
23595: runpath_var=LD_RUN_PATH
23596: hardcode_runpath_var=yes
23597: ld_shlibs_GCJ=yes
23598: fi
23599: ;;
23600:
23601: sysv4.2uw2*)
23602: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23603: hardcode_direct_GCJ=yes
23604: hardcode_minus_L_GCJ=no
23605: hardcode_shlibpath_var_GCJ=no
23606: hardcode_runpath_var=yes
23607: runpath_var=LD_RUN_PATH
23608: ;;
23609:
23610: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23611: no_undefined_flag_GCJ='${wl}-z ${wl}text'
23612: if test "$GCC" = yes; then
23613: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23614: else
23615: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23616: fi
23617: runpath_var='LD_RUN_PATH'
23618: hardcode_shlibpath_var_GCJ=no
23619: ;;
23620:
23621: sysv5*)
23622: no_undefined_flag_GCJ=' -z text'
23623: # $CC -shared without GNU ld will not create a library from C++
23624: # object files and a static libstdc++, better avoid it by now
23625: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23626: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23627: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23628: hardcode_libdir_flag_spec_GCJ=
23629: hardcode_shlibpath_var_GCJ=no
23630: runpath_var='LD_RUN_PATH'
23631: ;;
23632:
23633: uts4*)
23634: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23635: hardcode_libdir_flag_spec_GCJ='-L$libdir'
23636: hardcode_shlibpath_var_GCJ=no
23637: ;;
23638:
23639: *)
23640: ld_shlibs_GCJ=no
23641: ;;
23642: esac
23643: fi
23644:
23645: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23646: echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23647: test "$ld_shlibs_GCJ" = no && can_build_shared=no
23648:
23649: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23650: if test "$GCC" = yes; then
23651: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23652: fi
23653:
23654: #
23655: # Do we need to explicitly link libc?
23656: #
23657: case "x$archive_cmds_need_lc_GCJ" in
23658: x|xyes)
23659: # Assume -lc should be added
23660: archive_cmds_need_lc_GCJ=yes
23661:
23662: if test "$enable_shared" = yes && test "$GCC" = yes; then
23663: case $archive_cmds_GCJ in
23664: *'~'*)
23665: # FIXME: we may have to deal with multi-command sequences.
23666: ;;
23667: '$CC '*)
23668: # Test whether the compiler implicitly links with -lc since on some
23669: # systems, -lgcc has to come before -lc. If gcc already passes -lc
23670: # to ld, don't add -lc before -lgcc.
23671: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23672: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23673: $rm conftest*
23674: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23675:
23676: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23677: (eval $ac_compile) 2>&5
23678: ac_status=$?
23679: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680: (exit $ac_status); } 2>conftest.err; then
23681: soname=conftest
23682: lib=conftest
23683: libobjs=conftest.$ac_objext
23684: deplibs=
23685: wl=$lt_prog_compiler_wl_GCJ
23686: compiler_flags=-v
23687: linker_flags=-v
23688: verstring=
23689: output_objdir=.
23690: libname=conftest
23691: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23692: allow_undefined_flag_GCJ=
23693: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23694: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23695: ac_status=$?
23696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697: (exit $ac_status); }
23698: then
23699: archive_cmds_need_lc_GCJ=no
23700: else
23701: archive_cmds_need_lc_GCJ=yes
23702: fi
23703: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23704: else
23705: cat conftest.err 1>&5
23706: fi
23707: $rm conftest*
23708: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23709: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23710: ;;
23711: esac
23712: fi
23713: ;;
23714: esac
23715:
23716: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23717: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23718: hardcode_action_GCJ=
23719: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23720: test -n "$runpath_var GCJ" || \
23721: test "X$hardcode_automatic_GCJ"="Xyes" ; then
23722:
23723: # We can hardcode non-existant directories.
23724: if test "$hardcode_direct_GCJ" != no &&
23725: # If the only mechanism to avoid hardcoding is shlibpath_var, we
23726: # have to relink, otherwise we might link with an installed library
23727: # when we should be linking with a yet-to-be-installed one
23728: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23729: test "$hardcode_minus_L_GCJ" != no; then
23730: # Linking always hardcodes the temporary library directory.
23731: hardcode_action_GCJ=relink
23732: else
23733: # We can link without hardcoding, and we can hardcode nonexisting dirs.
23734: hardcode_action_GCJ=immediate
23735: fi
23736: else
23737: # We cannot hardcode anything, or else we can only hardcode existing
23738: # directories.
23739: hardcode_action_GCJ=unsupported
23740: fi
23741: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23742: echo "${ECHO_T}$hardcode_action_GCJ" >&6
23743:
23744: if test "$hardcode_action_GCJ" = relink; then
23745: # Fast installation is not supported
23746: enable_fast_install=no
23747: elif test "$shlibpath_overrides_runpath" = yes ||
23748: test "$enable_shared" = no; then
23749: # Fast installation is not necessary
23750: enable_fast_install=needless
23751: fi
23752:
23753: striplib=
23754: old_striplib=
23755: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23756: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23757: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23758: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23759: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23760: echo "$as_me:$LINENO: result: yes" >&5
23761: echo "${ECHO_T}yes" >&6
23762: else
23763: # FIXME - insert some real tests, host_os isn't really good enough
23764: case $host_os in
23765: darwin*)
23766: if test -n "$STRIP" ; then
23767: striplib="$STRIP -x"
23768: echo "$as_me:$LINENO: result: yes" >&5
23769: echo "${ECHO_T}yes" >&6
23770: else
23771: echo "$as_me:$LINENO: result: no" >&5
23772: echo "${ECHO_T}no" >&6
23773: fi
23774: ;;
23775: *)
23776: echo "$as_me:$LINENO: result: no" >&5
23777: echo "${ECHO_T}no" >&6
23778: ;;
23779: esac
23780: fi
23781:
23782: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23783: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23784: library_names_spec=
23785: libname_spec='lib$name'
23786: soname_spec=
23787: shrext=".so"
23788: postinstall_cmds=
23789: postuninstall_cmds=
23790: finish_cmds=
23791: finish_eval=
23792: shlibpath_var=
23793: shlibpath_overrides_runpath=unknown
23794: version_type=none
23795: dynamic_linker="$host_os ld.so"
23796: sys_lib_dlsearch_path_spec="/lib /usr/lib"
23797: if test "$GCC" = yes; then
23798: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23799: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23800: # if the path contains ";" then we assume it to be the separator
23801: # otherwise default to the standard path separator (i.e. ":") - it is
23802: # assumed that no part of a normal pathname contains ";" but that should
23803: # okay in the real world where ";" in dirpaths is itself problematic.
23804: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23805: else
23806: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23807: fi
23808: else
23809: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23810: fi
23811: need_lib_prefix=unknown
23812: hardcode_into_libs=no
23813:
23814: # when you set need_version to no, make sure it does not cause -set_version
23815: # flags to be left without arguments
23816: need_version=unknown
23817:
23818: case $host_os in
23819: aix3*)
23820: version_type=linux
23821: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23822: shlibpath_var=LIBPATH
23823:
23824: # AIX 3 has no versioning support, so we append a major version to the name.
23825: soname_spec='${libname}${release}${shared_ext}$major'
23826: ;;
23827:
23828: aix4* | aix5*)
23829: version_type=linux
23830: need_lib_prefix=no
23831: need_version=no
23832: hardcode_into_libs=yes
23833: if test "$host_cpu" = ia64; then
23834: # AIX 5 supports IA64
23835: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23836: shlibpath_var=LD_LIBRARY_PATH
23837: else
23838: # With GCC up to 2.95.x, collect2 would create an import file
23839: # for dependence libraries. The import file would start with
23840: # the line `#! .'. This would cause the generated library to
23841: # depend on `.', always an invalid library. This was fixed in
23842: # development snapshots of GCC prior to 3.0.
23843: case $host_os in
23844: aix4 | aix4.[01] | aix4.[01].*)
23845: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23846: echo ' yes '
23847: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23848: :
23849: else
23850: can_build_shared=no
23851: fi
23852: ;;
23853: esac
23854: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23855: # soname into executable. Probably we can add versioning support to
23856: # collect2, so additional links can be useful in future.
23857: if test "$aix_use_runtimelinking" = yes; then
23858: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23859: # instead of lib<name>.a to let people know that these are not
23860: # typical AIX shared libraries.
23861: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23862: else
23863: # We preserve .a as extension for shared libraries through AIX4.2
23864: # and later when we are not doing run time linking.
23865: library_names_spec='${libname}${release}.a $libname.a'
23866: soname_spec='${libname}${release}${shared_ext}$major'
23867: fi
23868: shlibpath_var=LIBPATH
23869: fi
23870: ;;
23871:
23872: amigaos*)
23873: library_names_spec='$libname.ixlibrary $libname.a'
23874: # Create ${libname}_ixlibrary.a entries in /sys/libs.
23875: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
23876: ;;
23877:
23878: beos*)
23879: library_names_spec='${libname}${shared_ext}'
23880: dynamic_linker="$host_os ld.so"
23881: shlibpath_var=LIBRARY_PATH
23882: ;;
23883:
23884: bsdi4*)
23885: version_type=linux
23886: need_version=no
23887: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23888: soname_spec='${libname}${release}${shared_ext}$major'
23889: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23890: shlibpath_var=LD_LIBRARY_PATH
23891: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23892: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23893: # the default ld.so.conf also contains /usr/contrib/lib and
23894: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23895: # libtool to hard-code these into programs
23896: ;;
23897:
23898: cygwin* | mingw* | pw32*)
23899: version_type=windows
23900: shrext=".dll"
23901: need_version=no
23902: need_lib_prefix=no
23903:
23904: case $GCC,$host_os in
23905: yes,cygwin* | yes,mingw* | yes,pw32*)
23906: library_names_spec='$libname.dll.a'
23907: # DLL is installed to $(libdir)/../bin by postinstall_cmds
23908: postinstall_cmds='base_file=`basename \${file}`~
23909: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23910: dldir=$destdir/`dirname \$dlpath`~
23911: test -d \$dldir || mkdir -p \$dldir~
23912: $install_prog $dir/$dlname \$dldir/$dlname'
23913: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23914: dlpath=$dir/\$dldll~
23915: $rm \$dlpath'
23916: shlibpath_overrides_runpath=yes
23917:
23918: case $host_os in
23919: cygwin*)
23920: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23921: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23922: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
23923: ;;
23924: mingw*)
23925: # MinGW DLLs use traditional 'lib' prefix
23926: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23927: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23928: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23929: # It is most probably a Windows format PATH printed by
23930: # mingw gcc, but we are running on Cygwin. Gcc prints its search
23931: # path with ; separators, and with drive letters. We can handle the
23932: # drive letters (cygwin fileutils understands them), so leave them,
23933: # especially as we might pass files found there to a mingw objdump,
23934: # which wouldn't understand a cygwinified path. Ahh.
23935: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23936: else
23937: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23938: fi
23939: ;;
23940: pw32*)
23941: # pw32 DLLs use 'pw' prefix rather than 'lib'
23942: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23943: ;;
23944: esac
23945: ;;
23946:
23947: *)
23948: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23949: ;;
23950: esac
23951: dynamic_linker='Win32 ld.exe'
23952: # FIXME: first we should search . and the directory the executable is in
23953: shlibpath_var=PATH
23954: ;;
23955:
23956: darwin* | rhapsody*)
23957: dynamic_linker="$host_os dyld"
23958: version_type=darwin
23959: need_lib_prefix=no
23960: need_version=no
23961: # FIXME: Relying on posixy $() will cause problems for
23962: # cross-compilation, but unfortunately the echo tests do not
23963: # yet detect zsh echo's removal of \ escapes.
23964: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23965: soname_spec='${libname}${release}${major}$shared_ext'
23966: shlibpath_overrides_runpath=yes
23967: shlibpath_var=DYLD_LIBRARY_PATH
23968: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
23969: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23970: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
23971: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23972: fi
23973: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23974: ;;
23975:
23976: dgux*)
23977: version_type=linux
23978: need_lib_prefix=no
23979: need_version=no
23980: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23981: soname_spec='${libname}${release}${shared_ext}$major'
23982: shlibpath_var=LD_LIBRARY_PATH
23983: ;;
23984:
23985: freebsd1*)
23986: dynamic_linker=no
23987: ;;
23988:
23989: freebsd*)
23990: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23991: version_type=freebsd-$objformat
23992: case $version_type in
23993: freebsd-elf*)
23994: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23995: need_version=no
23996: need_lib_prefix=no
23997: ;;
23998: freebsd-*)
23999: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24000: need_version=yes
24001: ;;
24002: esac
24003: shlibpath_var=LD_LIBRARY_PATH
24004: case $host_os in
24005: freebsd2*)
24006: shlibpath_overrides_runpath=yes
24007: ;;
24008: freebsd3.01* | freebsdelf3.01*)
24009: shlibpath_overrides_runpath=yes
24010: hardcode_into_libs=yes
24011: ;;
24012: *) # from 3.2 on
24013: shlibpath_overrides_runpath=no
24014: hardcode_into_libs=yes
24015: ;;
24016: esac
24017: ;;
24018:
24019: gnu*)
24020: version_type=linux
24021: need_lib_prefix=no
24022: need_version=no
24023: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24024: soname_spec='${libname}${release}${shared_ext}$major'
24025: shlibpath_var=LD_LIBRARY_PATH
24026: hardcode_into_libs=yes
24027: ;;
24028:
24029: hpux9* | hpux10* | hpux11*)
24030: # Give a soname corresponding to the major version so that dld.sl refuses to
24031: # link against other versions.
24032: version_type=sunos
24033: need_lib_prefix=no
24034: need_version=no
24035: case "$host_cpu" in
24036: ia64*)
24037: shrext='.so'
24038: hardcode_into_libs=yes
24039: dynamic_linker="$host_os dld.so"
24040: shlibpath_var=LD_LIBRARY_PATH
24041: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24042: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24043: soname_spec='${libname}${release}${shared_ext}$major'
24044: if test "X$HPUX_IA64_MODE" = X32; then
24045: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24046: else
24047: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24048: fi
24049: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24050: ;;
24051: hppa*64*)
24052: shrext='.sl'
24053: hardcode_into_libs=yes
24054: dynamic_linker="$host_os dld.sl"
24055: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24056: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24057: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24058: soname_spec='${libname}${release}${shared_ext}$major'
24059: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24060: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24061: ;;
24062: *)
24063: shrext='.sl'
24064: dynamic_linker="$host_os dld.sl"
24065: shlibpath_var=SHLIB_PATH
24066: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24067: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24068: soname_spec='${libname}${release}${shared_ext}$major'
24069: ;;
24070: esac
24071: # HP-UX runs *really* slowly unless shared libraries are mode 555.
24072: postinstall_cmds='chmod 555 $lib'
24073: ;;
24074:
24075: irix5* | irix6* | nonstopux*)
24076: case $host_os in
24077: nonstopux*) version_type=nonstopux ;;
24078: *)
24079: if test "$lt_cv_prog_gnu_ld" = yes; then
24080: version_type=linux
24081: else
24082: version_type=irix
24083: fi ;;
24084: esac
24085: need_lib_prefix=no
24086: need_version=no
24087: soname_spec='${libname}${release}${shared_ext}$major'
24088: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24089: case $host_os in
24090: irix5* | nonstopux*)
24091: libsuff= shlibsuff=
24092: ;;
24093: *)
24094: case $LD in # libtool.m4 will add one of these switches to LD
24095: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24096: libsuff= shlibsuff= libmagic=32-bit;;
24097: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24098: libsuff=32 shlibsuff=N32 libmagic=N32;;
24099: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24100: libsuff=64 shlibsuff=64 libmagic=64-bit;;
24101: *) libsuff= shlibsuff= libmagic=never-match;;
24102: esac
24103: ;;
24104: esac
24105: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24106: shlibpath_overrides_runpath=no
24107: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24108: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24109: hardcode_into_libs=yes
24110: ;;
24111:
24112: # No shared lib support for Linux oldld, aout, or coff.
24113: linux*oldld* | linux*aout* | linux*coff*)
24114: dynamic_linker=no
24115: ;;
24116:
24117: # This must be Linux ELF.
24118: linux*)
24119: version_type=linux
24120: need_lib_prefix=no
24121: need_version=no
24122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24123: soname_spec='${libname}${release}${shared_ext}$major'
24124: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24125: shlibpath_var=LD_LIBRARY_PATH
24126: shlibpath_overrides_runpath=no
24127: # This implies no fast_install, which is unacceptable.
24128: # Some rework will be needed to allow for fast_install
24129: # before this can be enabled.
24130: hardcode_into_libs=yes
24131:
24132: # We used to test for /lib/ld.so.1 and disable shared libraries on
24133: # powerpc, because MkLinux only supported shared libraries with the
24134: # GNU dynamic linker. Since this was broken with cross compilers,
24135: # most powerpc-linux boxes support dynamic linking these days and
24136: # people can always --disable-shared, the test was removed, and we
24137: # assume the GNU/Linux dynamic linker is in use.
24138: dynamic_linker='GNU/Linux ld.so'
24139: ;;
24140:
24141: netbsd*)
24142: version_type=sunos
24143: need_lib_prefix=no
24144: need_version=no
24145: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24146: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24147: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24148: dynamic_linker='NetBSD (a.out) ld.so'
24149: else
24150: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
24151: soname_spec='${libname}${release}${shared_ext}$major'
24152: dynamic_linker='NetBSD ld.elf_so'
24153: fi
24154: shlibpath_var=LD_LIBRARY_PATH
24155: shlibpath_overrides_runpath=yes
24156: hardcode_into_libs=yes
24157: ;;
24158:
24159: newsos6)
24160: version_type=linux
24161: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24162: shlibpath_var=LD_LIBRARY_PATH
24163: shlibpath_overrides_runpath=yes
24164: ;;
24165:
24166: nto-qnx)
24167: version_type=linux
24168: need_lib_prefix=no
24169: need_version=no
24170: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24171: soname_spec='${libname}${release}${shared_ext}$major'
24172: shlibpath_var=LD_LIBRARY_PATH
24173: shlibpath_overrides_runpath=yes
24174: ;;
24175:
24176: openbsd*)
24177: version_type=sunos
24178: need_lib_prefix=no
24179: need_version=no
24180: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24181: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24182: shlibpath_var=LD_LIBRARY_PATH
24183: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24184: case $host_os in
24185: openbsd2.[89] | openbsd2.[89].*)
24186: shlibpath_overrides_runpath=no
24187: ;;
24188: *)
24189: shlibpath_overrides_runpath=yes
24190: ;;
24191: esac
24192: else
24193: shlibpath_overrides_runpath=yes
24194: fi
24195: ;;
24196:
24197: os2*)
24198: libname_spec='$name'
24199: shrext=".dll"
24200: need_lib_prefix=no
24201: library_names_spec='$libname${shared_ext} $libname.a'
24202: dynamic_linker='OS/2 ld.exe'
24203: shlibpath_var=LIBPATH
24204: ;;
24205:
24206: osf3* | osf4* | osf5*)
24207: version_type=osf
24208: need_lib_prefix=no
24209: need_version=no
24210: soname_spec='${libname}${release}${shared_ext}$major'
24211: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24212: shlibpath_var=LD_LIBRARY_PATH
24213: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24214: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24215: ;;
24216:
24217: sco3.2v5*)
24218: version_type=osf
24219: soname_spec='${libname}${release}${shared_ext}$major'
24220: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24221: shlibpath_var=LD_LIBRARY_PATH
24222: ;;
24223:
24224: solaris*)
24225: version_type=linux
24226: need_lib_prefix=no
24227: need_version=no
24228: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24229: soname_spec='${libname}${release}${shared_ext}$major'
24230: shlibpath_var=LD_LIBRARY_PATH
24231: shlibpath_overrides_runpath=yes
24232: hardcode_into_libs=yes
24233: # ldd complains unless libraries are executable
24234: postinstall_cmds='chmod +x $lib'
24235: ;;
24236:
24237: sunos4*)
24238: version_type=sunos
24239: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24240: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24241: shlibpath_var=LD_LIBRARY_PATH
24242: shlibpath_overrides_runpath=yes
24243: if test "$with_gnu_ld" = yes; then
24244: need_lib_prefix=no
24245: fi
24246: need_version=yes
24247: ;;
24248:
24249: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24250: version_type=linux
24251: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24252: soname_spec='${libname}${release}${shared_ext}$major'
24253: shlibpath_var=LD_LIBRARY_PATH
24254: case $host_vendor in
24255: sni)
24256: shlibpath_overrides_runpath=no
24257: need_lib_prefix=no
24258: export_dynamic_flag_spec='${wl}-Blargedynsym'
24259: runpath_var=LD_RUN_PATH
24260: ;;
24261: siemens)
24262: need_lib_prefix=no
24263: ;;
24264: motorola)
24265: need_lib_prefix=no
24266: need_version=no
24267: shlibpath_overrides_runpath=no
24268: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24269: ;;
24270: esac
24271: ;;
24272:
24273: sysv4*MP*)
24274: if test -d /usr/nec ;then
24275: version_type=linux
24276: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24277: soname_spec='$libname${shared_ext}.$major'
24278: shlibpath_var=LD_LIBRARY_PATH
24279: fi
24280: ;;
24281:
24282: uts4*)
24283: version_type=linux
24284: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24285: soname_spec='${libname}${release}${shared_ext}$major'
24286: shlibpath_var=LD_LIBRARY_PATH
24287: ;;
24288:
24289: *)
24290: dynamic_linker=no
24291: ;;
24292: esac
24293: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24294: echo "${ECHO_T}$dynamic_linker" >&6
24295: test "$dynamic_linker" = no && can_build_shared=no
24296:
24297: if test "x$enable_dlopen" != xyes; then
24298: enable_dlopen=unknown
24299: enable_dlopen_self=unknown
24300: enable_dlopen_self_static=unknown
24301: else
24302: lt_cv_dlopen=no
24303: lt_cv_dlopen_libs=
24304:
24305: case $host_os in
24306: beos*)
24307: lt_cv_dlopen="load_add_on"
24308: lt_cv_dlopen_libs=
24309: lt_cv_dlopen_self=yes
24310: ;;
24311:
24312: mingw* | pw32*)
24313: lt_cv_dlopen="LoadLibrary"
24314: lt_cv_dlopen_libs=
24315: ;;
24316:
24317: cygwin*)
24318: lt_cv_dlopen="dlopen"
24319: lt_cv_dlopen_libs=
24320: ;;
24321:
24322: darwin*)
24323: # if libdl is installed we need to link against it
24324: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24325: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24326: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24327: echo $ECHO_N "(cached) $ECHO_C" >&6
24328: else
24329: ac_check_lib_save_LIBS=$LIBS
24330: LIBS="-ldl $LIBS"
24331: cat >conftest.$ac_ext <<_ACEOF
24332: #line $LINENO "configure"
24333: /* confdefs.h. */
24334: _ACEOF
24335: cat confdefs.h >>conftest.$ac_ext
24336: cat >>conftest.$ac_ext <<_ACEOF
24337: /* end confdefs.h. */
24338:
24339: /* Override any gcc2 internal prototype to avoid an error. */
24340: #ifdef __cplusplus
24341: extern "C"
24342: #endif
24343: /* We use char because int might match the return type of a gcc2
24344: builtin and then its argument prototype would still apply. */
24345: char dlopen ();
24346: int
24347: main ()
24348: {
24349: dlopen ();
24350: ;
24351: return 0;
24352: }
24353: _ACEOF
24354: rm -f conftest.$ac_objext conftest$ac_exeext
24355: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24356: (eval $ac_link) 2>&5
24357: ac_status=$?
24358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359: (exit $ac_status); } &&
24360: { ac_try='test -s conftest$ac_exeext'
24361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362: (eval $ac_try) 2>&5
24363: ac_status=$?
24364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365: (exit $ac_status); }; }; then
24366: ac_cv_lib_dl_dlopen=yes
24367: else
24368: echo "$as_me: failed program was:" >&5
24369: sed 's/^/| /' conftest.$ac_ext >&5
24370:
24371: ac_cv_lib_dl_dlopen=no
24372: fi
24373: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24374: LIBS=$ac_check_lib_save_LIBS
24375: fi
24376: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24377: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24378: if test $ac_cv_lib_dl_dlopen = yes; then
24379: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24380: else
24381:
24382: lt_cv_dlopen="dyld"
24383: lt_cv_dlopen_libs=
24384: lt_cv_dlopen_self=yes
24385:
24386: fi
24387:
24388: ;;
24389:
24390: *)
24391: echo "$as_me:$LINENO: checking for shl_load" >&5
24392: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24393: if test "${ac_cv_func_shl_load+set}" = set; then
24394: echo $ECHO_N "(cached) $ECHO_C" >&6
24395: else
24396: cat >conftest.$ac_ext <<_ACEOF
24397: #line $LINENO "configure"
24398: /* confdefs.h. */
24399: _ACEOF
24400: cat confdefs.h >>conftest.$ac_ext
24401: cat >>conftest.$ac_ext <<_ACEOF
24402: /* end confdefs.h. */
24403: /* System header to define __stub macros and hopefully few prototypes,
24404: which can conflict with char shl_load (); below.
24405: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24406: <limits.h> exists even on freestanding compilers. */
24407: #ifdef __STDC__
24408: # include <limits.h>
24409: #else
24410: # include <assert.h>
24411: #endif
24412: /* Override any gcc2 internal prototype to avoid an error. */
24413: #ifdef __cplusplus
24414: extern "C"
24415: {
24416: #endif
24417: /* We use char because int might match the return type of a gcc2
24418: builtin and then its argument prototype would still apply. */
24419: char shl_load ();
24420: /* The GNU C library defines this for functions which it implements
24421: to always fail with ENOSYS. Some functions are actually named
24422: something starting with __ and the normal name is an alias. */
24423: #if defined (__stub_shl_load) || defined (__stub___shl_load)
24424: choke me
24425: #else
24426: char (*f) () = shl_load;
24427: #endif
24428: #ifdef __cplusplus
24429: }
24430: #endif
24431:
24432: int
24433: main ()
24434: {
24435: return f != shl_load;
24436: ;
24437: return 0;
24438: }
24439: _ACEOF
24440: rm -f conftest.$ac_objext conftest$ac_exeext
24441: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24442: (eval $ac_link) 2>&5
24443: ac_status=$?
24444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445: (exit $ac_status); } &&
24446: { ac_try='test -s conftest$ac_exeext'
24447: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448: (eval $ac_try) 2>&5
24449: ac_status=$?
24450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451: (exit $ac_status); }; }; then
24452: ac_cv_func_shl_load=yes
24453: else
24454: echo "$as_me: failed program was:" >&5
24455: sed 's/^/| /' conftest.$ac_ext >&5
24456:
24457: ac_cv_func_shl_load=no
24458: fi
24459: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24460: fi
24461: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24462: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24463: if test $ac_cv_func_shl_load = yes; then
24464: lt_cv_dlopen="shl_load"
24465: else
24466: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24467: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24468: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24469: echo $ECHO_N "(cached) $ECHO_C" >&6
24470: else
24471: ac_check_lib_save_LIBS=$LIBS
24472: LIBS="-ldld $LIBS"
24473: cat >conftest.$ac_ext <<_ACEOF
24474: #line $LINENO "configure"
24475: /* confdefs.h. */
24476: _ACEOF
24477: cat confdefs.h >>conftest.$ac_ext
24478: cat >>conftest.$ac_ext <<_ACEOF
24479: /* end confdefs.h. */
24480:
24481: /* Override any gcc2 internal prototype to avoid an error. */
24482: #ifdef __cplusplus
24483: extern "C"
24484: #endif
24485: /* We use char because int might match the return type of a gcc2
24486: builtin and then its argument prototype would still apply. */
24487: char shl_load ();
24488: int
24489: main ()
24490: {
24491: shl_load ();
24492: ;
24493: return 0;
24494: }
24495: _ACEOF
24496: rm -f conftest.$ac_objext conftest$ac_exeext
24497: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24498: (eval $ac_link) 2>&5
24499: ac_status=$?
24500: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501: (exit $ac_status); } &&
24502: { ac_try='test -s conftest$ac_exeext'
24503: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504: (eval $ac_try) 2>&5
24505: ac_status=$?
24506: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507: (exit $ac_status); }; }; then
24508: ac_cv_lib_dld_shl_load=yes
24509: else
24510: echo "$as_me: failed program was:" >&5
24511: sed 's/^/| /' conftest.$ac_ext >&5
24512:
24513: ac_cv_lib_dld_shl_load=no
24514: fi
24515: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24516: LIBS=$ac_check_lib_save_LIBS
24517: fi
24518: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24519: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24520: if test $ac_cv_lib_dld_shl_load = yes; then
24521: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24522: else
24523: echo "$as_me:$LINENO: checking for dlopen" >&5
24524: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24525: if test "${ac_cv_func_dlopen+set}" = set; then
24526: echo $ECHO_N "(cached) $ECHO_C" >&6
24527: else
24528: cat >conftest.$ac_ext <<_ACEOF
24529: #line $LINENO "configure"
24530: /* confdefs.h. */
24531: _ACEOF
24532: cat confdefs.h >>conftest.$ac_ext
24533: cat >>conftest.$ac_ext <<_ACEOF
24534: /* end confdefs.h. */
24535: /* System header to define __stub macros and hopefully few prototypes,
24536: which can conflict with char dlopen (); below.
24537: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24538: <limits.h> exists even on freestanding compilers. */
24539: #ifdef __STDC__
24540: # include <limits.h>
24541: #else
24542: # include <assert.h>
24543: #endif
24544: /* Override any gcc2 internal prototype to avoid an error. */
24545: #ifdef __cplusplus
24546: extern "C"
24547: {
24548: #endif
24549: /* We use char because int might match the return type of a gcc2
24550: builtin and then its argument prototype would still apply. */
24551: char dlopen ();
24552: /* The GNU C library defines this for functions which it implements
24553: to always fail with ENOSYS. Some functions are actually named
24554: something starting with __ and the normal name is an alias. */
24555: #if defined (__stub_dlopen) || defined (__stub___dlopen)
24556: choke me
24557: #else
24558: char (*f) () = dlopen;
24559: #endif
24560: #ifdef __cplusplus
24561: }
24562: #endif
24563:
24564: int
24565: main ()
24566: {
24567: return f != dlopen;
24568: ;
24569: return 0;
24570: }
24571: _ACEOF
24572: rm -f conftest.$ac_objext conftest$ac_exeext
24573: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24574: (eval $ac_link) 2>&5
24575: ac_status=$?
24576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577: (exit $ac_status); } &&
24578: { ac_try='test -s conftest$ac_exeext'
24579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580: (eval $ac_try) 2>&5
24581: ac_status=$?
24582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583: (exit $ac_status); }; }; then
24584: ac_cv_func_dlopen=yes
24585: else
24586: echo "$as_me: failed program was:" >&5
24587: sed 's/^/| /' conftest.$ac_ext >&5
24588:
24589: ac_cv_func_dlopen=no
24590: fi
24591: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24592: fi
24593: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24594: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24595: if test $ac_cv_func_dlopen = yes; then
24596: lt_cv_dlopen="dlopen"
24597: else
24598: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24599: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24600: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24601: echo $ECHO_N "(cached) $ECHO_C" >&6
24602: else
24603: ac_check_lib_save_LIBS=$LIBS
24604: LIBS="-ldl $LIBS"
24605: cat >conftest.$ac_ext <<_ACEOF
24606: #line $LINENO "configure"
24607: /* confdefs.h. */
24608: _ACEOF
24609: cat confdefs.h >>conftest.$ac_ext
24610: cat >>conftest.$ac_ext <<_ACEOF
24611: /* end confdefs.h. */
24612:
24613: /* Override any gcc2 internal prototype to avoid an error. */
24614: #ifdef __cplusplus
24615: extern "C"
24616: #endif
24617: /* We use char because int might match the return type of a gcc2
24618: builtin and then its argument prototype would still apply. */
24619: char dlopen ();
24620: int
24621: main ()
24622: {
24623: dlopen ();
24624: ;
24625: return 0;
24626: }
24627: _ACEOF
24628: rm -f conftest.$ac_objext conftest$ac_exeext
24629: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24630: (eval $ac_link) 2>&5
24631: ac_status=$?
24632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633: (exit $ac_status); } &&
24634: { ac_try='test -s conftest$ac_exeext'
24635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636: (eval $ac_try) 2>&5
24637: ac_status=$?
24638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639: (exit $ac_status); }; }; then
24640: ac_cv_lib_dl_dlopen=yes
24641: else
24642: echo "$as_me: failed program was:" >&5
24643: sed 's/^/| /' conftest.$ac_ext >&5
24644:
24645: ac_cv_lib_dl_dlopen=no
24646: fi
24647: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24648: LIBS=$ac_check_lib_save_LIBS
24649: fi
24650: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24651: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24652: if test $ac_cv_lib_dl_dlopen = yes; then
24653: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24654: else
24655: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24656: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24657: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24658: echo $ECHO_N "(cached) $ECHO_C" >&6
24659: else
24660: ac_check_lib_save_LIBS=$LIBS
24661: LIBS="-lsvld $LIBS"
24662: cat >conftest.$ac_ext <<_ACEOF
24663: #line $LINENO "configure"
24664: /* confdefs.h. */
24665: _ACEOF
24666: cat confdefs.h >>conftest.$ac_ext
24667: cat >>conftest.$ac_ext <<_ACEOF
24668: /* end confdefs.h. */
24669:
24670: /* Override any gcc2 internal prototype to avoid an error. */
24671: #ifdef __cplusplus
24672: extern "C"
24673: #endif
24674: /* We use char because int might match the return type of a gcc2
24675: builtin and then its argument prototype would still apply. */
24676: char dlopen ();
24677: int
24678: main ()
24679: {
24680: dlopen ();
24681: ;
24682: return 0;
24683: }
24684: _ACEOF
24685: rm -f conftest.$ac_objext conftest$ac_exeext
24686: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687: (eval $ac_link) 2>&5
24688: ac_status=$?
24689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690: (exit $ac_status); } &&
24691: { ac_try='test -s conftest$ac_exeext'
24692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693: (eval $ac_try) 2>&5
24694: ac_status=$?
24695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696: (exit $ac_status); }; }; then
24697: ac_cv_lib_svld_dlopen=yes
24698: else
24699: echo "$as_me: failed program was:" >&5
24700: sed 's/^/| /' conftest.$ac_ext >&5
24701:
24702: ac_cv_lib_svld_dlopen=no
24703: fi
24704: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24705: LIBS=$ac_check_lib_save_LIBS
24706: fi
24707: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24708: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24709: if test $ac_cv_lib_svld_dlopen = yes; then
24710: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24711: else
24712: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24713: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24714: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24715: echo $ECHO_N "(cached) $ECHO_C" >&6
24716: else
24717: ac_check_lib_save_LIBS=$LIBS
24718: LIBS="-ldld $LIBS"
24719: cat >conftest.$ac_ext <<_ACEOF
24720: #line $LINENO "configure"
24721: /* confdefs.h. */
24722: _ACEOF
24723: cat confdefs.h >>conftest.$ac_ext
24724: cat >>conftest.$ac_ext <<_ACEOF
24725: /* end confdefs.h. */
24726:
24727: /* Override any gcc2 internal prototype to avoid an error. */
24728: #ifdef __cplusplus
24729: extern "C"
24730: #endif
24731: /* We use char because int might match the return type of a gcc2
24732: builtin and then its argument prototype would still apply. */
24733: char dld_link ();
24734: int
24735: main ()
24736: {
24737: dld_link ();
24738: ;
24739: return 0;
24740: }
24741: _ACEOF
24742: rm -f conftest.$ac_objext conftest$ac_exeext
24743: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24744: (eval $ac_link) 2>&5
24745: ac_status=$?
24746: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747: (exit $ac_status); } &&
24748: { ac_try='test -s conftest$ac_exeext'
24749: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750: (eval $ac_try) 2>&5
24751: ac_status=$?
24752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753: (exit $ac_status); }; }; then
24754: ac_cv_lib_dld_dld_link=yes
24755: else
24756: echo "$as_me: failed program was:" >&5
24757: sed 's/^/| /' conftest.$ac_ext >&5
24758:
24759: ac_cv_lib_dld_dld_link=no
24760: fi
24761: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24762: LIBS=$ac_check_lib_save_LIBS
24763: fi
24764: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24765: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24766: if test $ac_cv_lib_dld_dld_link = yes; then
24767: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24768: fi
24769:
24770:
24771: fi
24772:
24773:
24774: fi
24775:
24776:
24777: fi
24778:
24779:
24780: fi
24781:
24782:
24783: fi
24784:
24785: ;;
24786: esac
24787:
24788: if test "x$lt_cv_dlopen" != xno; then
24789: enable_dlopen=yes
24790: else
24791: enable_dlopen=no
24792: fi
24793:
24794: case $lt_cv_dlopen in
24795: dlopen)
24796: save_CPPFLAGS="$CPPFLAGS"
24797: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24798:
24799: save_LDFLAGS="$LDFLAGS"
24800: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
24801:
24802: save_LIBS="$LIBS"
24803: LIBS="$lt_cv_dlopen_libs $LIBS"
24804:
24805: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
24806: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
24807: if test "${lt_cv_dlopen_self+set}" = set; then
24808: echo $ECHO_N "(cached) $ECHO_C" >&6
24809: else
24810: if test "$cross_compiling" = yes; then :
24811: lt_cv_dlopen_self=cross
24812: else
24813: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24814: lt_status=$lt_dlunknown
24815: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 24816: #line 24816 "configure"
1.1 root 24817: #include "confdefs.h"
24818:
24819: #if HAVE_DLFCN_H
24820: #include <dlfcn.h>
24821: #endif
24822:
24823: #include <stdio.h>
24824:
24825: #ifdef RTLD_GLOBAL
24826: # define LT_DLGLOBAL RTLD_GLOBAL
24827: #else
24828: # ifdef DL_GLOBAL
24829: # define LT_DLGLOBAL DL_GLOBAL
24830: # else
24831: # define LT_DLGLOBAL 0
24832: # endif
24833: #endif
24834:
24835: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24836: find out it does not work in some platform. */
24837: #ifndef LT_DLLAZY_OR_NOW
24838: # ifdef RTLD_LAZY
24839: # define LT_DLLAZY_OR_NOW RTLD_LAZY
24840: # else
24841: # ifdef DL_LAZY
24842: # define LT_DLLAZY_OR_NOW DL_LAZY
24843: # else
24844: # ifdef RTLD_NOW
24845: # define LT_DLLAZY_OR_NOW RTLD_NOW
24846: # else
24847: # ifdef DL_NOW
24848: # define LT_DLLAZY_OR_NOW DL_NOW
24849: # else
24850: # define LT_DLLAZY_OR_NOW 0
24851: # endif
24852: # endif
24853: # endif
24854: # endif
24855: #endif
24856:
24857: #ifdef __cplusplus
24858: extern "C" void exit (int);
24859: #endif
24860:
24861: void fnord() { int i=42;}
24862: int main ()
24863: {
24864: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24865: int status = $lt_dlunknown;
24866:
24867: if (self)
24868: {
24869: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24870: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24871: /* dlclose (self); */
24872: }
24873:
24874: exit (status);
24875: }
24876: EOF
24877: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24878: (eval $ac_link) 2>&5
24879: ac_status=$?
24880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24882: (./conftest; exit; ) 2>/dev/null
24883: lt_status=$?
24884: case x$lt_status in
24885: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24886: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24887: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24888: esac
24889: else :
24890: # compilation failed
24891: lt_cv_dlopen_self=no
24892: fi
24893: fi
24894: rm -fr conftest*
24895:
24896:
24897: fi
24898: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24899: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24900:
24901: if test "x$lt_cv_dlopen_self" = xyes; then
24902: LDFLAGS="$LDFLAGS $link_static_flag"
24903: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24904: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24905: if test "${lt_cv_dlopen_self_static+set}" = set; then
24906: echo $ECHO_N "(cached) $ECHO_C" >&6
24907: else
24908: if test "$cross_compiling" = yes; then :
24909: lt_cv_dlopen_self_static=cross
24910: else
24911: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24912: lt_status=$lt_dlunknown
24913: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root 24914: #line 24914 "configure"
1.1 root 24915: #include "confdefs.h"
24916:
24917: #if HAVE_DLFCN_H
24918: #include <dlfcn.h>
24919: #endif
24920:
24921: #include <stdio.h>
24922:
24923: #ifdef RTLD_GLOBAL
24924: # define LT_DLGLOBAL RTLD_GLOBAL
24925: #else
24926: # ifdef DL_GLOBAL
24927: # define LT_DLGLOBAL DL_GLOBAL
24928: # else
24929: # define LT_DLGLOBAL 0
24930: # endif
24931: #endif
24932:
24933: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24934: find out it does not work in some platform. */
24935: #ifndef LT_DLLAZY_OR_NOW
24936: # ifdef RTLD_LAZY
24937: # define LT_DLLAZY_OR_NOW RTLD_LAZY
24938: # else
24939: # ifdef DL_LAZY
24940: # define LT_DLLAZY_OR_NOW DL_LAZY
24941: # else
24942: # ifdef RTLD_NOW
24943: # define LT_DLLAZY_OR_NOW RTLD_NOW
24944: # else
24945: # ifdef DL_NOW
24946: # define LT_DLLAZY_OR_NOW DL_NOW
24947: # else
24948: # define LT_DLLAZY_OR_NOW 0
24949: # endif
24950: # endif
24951: # endif
24952: # endif
24953: #endif
24954:
24955: #ifdef __cplusplus
24956: extern "C" void exit (int);
24957: #endif
24958:
24959: void fnord() { int i=42;}
24960: int main ()
24961: {
24962: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24963: int status = $lt_dlunknown;
24964:
24965: if (self)
24966: {
24967: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
24968: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24969: /* dlclose (self); */
24970: }
24971:
24972: exit (status);
24973: }
24974: EOF
24975: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24976: (eval $ac_link) 2>&5
24977: ac_status=$?
24978: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24980: (./conftest; exit; ) 2>/dev/null
24981: lt_status=$?
24982: case x$lt_status in
24983: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24984: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24985: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24986: esac
24987: else :
24988: # compilation failed
24989: lt_cv_dlopen_self_static=no
24990: fi
24991: fi
24992: rm -fr conftest*
24993:
24994:
24995: fi
24996: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24997: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24998: fi
24999:
25000: CPPFLAGS="$save_CPPFLAGS"
25001: LDFLAGS="$save_LDFLAGS"
25002: LIBS="$save_LIBS"
25003: ;;
25004: esac
25005:
25006: case $lt_cv_dlopen_self in
25007: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25008: *) enable_dlopen_self=unknown ;;
25009: esac
25010:
25011: case $lt_cv_dlopen_self_static in
25012: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25013: *) enable_dlopen_self_static=unknown ;;
25014: esac
25015: fi
25016:
25017:
25018: # The else clause should only fire when bootstrapping the
25019: # libtool distribution, otherwise you forgot to ship ltmain.sh
25020: # with your package, and you will get complaints that there are
25021: # no rules to generate ltmain.sh.
25022: if test -f "$ltmain"; then
25023: # See if we are running on zsh, and set the options which allow our commands through
25024: # without removal of \ escapes.
25025: if test -n "${ZSH_VERSION+set}" ; then
25026: setopt NO_GLOB_SUBST
25027: fi
25028: # Now quote all the things that may contain metacharacters while being
25029: # careful not to overquote the AC_SUBSTed values. We take copies of the
25030: # variables and quote the copies for generation of the libtool script.
25031: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
25032: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25033: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25034: deplibs_check_method reload_flag reload_cmds need_locks \
25035: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25036: lt_cv_sys_global_symbol_to_c_name_address \
25037: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25038: old_postinstall_cmds old_postuninstall_cmds \
25039: compiler_GCJ \
25040: CC_GCJ \
25041: LD_GCJ \
25042: lt_prog_compiler_wl_GCJ \
25043: lt_prog_compiler_pic_GCJ \
25044: lt_prog_compiler_static_GCJ \
25045: lt_prog_compiler_no_builtin_flag_GCJ \
25046: export_dynamic_flag_spec_GCJ \
25047: thread_safe_flag_spec_GCJ \
25048: whole_archive_flag_spec_GCJ \
25049: enable_shared_with_static_runtimes_GCJ \
25050: old_archive_cmds_GCJ \
25051: old_archive_from_new_cmds_GCJ \
25052: predep_objects_GCJ \
25053: postdep_objects_GCJ \
25054: predeps_GCJ \
25055: postdeps_GCJ \
25056: compiler_lib_search_path_GCJ \
25057: archive_cmds_GCJ \
25058: archive_expsym_cmds_GCJ \
25059: postinstall_cmds_GCJ \
25060: postuninstall_cmds_GCJ \
25061: old_archive_from_expsyms_cmds_GCJ \
25062: allow_undefined_flag_GCJ \
25063: no_undefined_flag_GCJ \
25064: export_symbols_cmds_GCJ \
25065: hardcode_libdir_flag_spec_GCJ \
25066: hardcode_libdir_flag_spec_ld_GCJ \
25067: hardcode_libdir_separator_GCJ \
25068: hardcode_automatic_GCJ \
25069: module_cmds_GCJ \
25070: module_expsym_cmds_GCJ \
25071: lt_cv_prog_compiler_c_o_GCJ \
25072: exclude_expsyms_GCJ \
25073: include_expsyms_GCJ; do
25074:
25075: case $var in
25076: old_archive_cmds_GCJ | \
25077: old_archive_from_new_cmds_GCJ | \
25078: archive_cmds_GCJ | \
25079: archive_expsym_cmds_GCJ | \
25080: module_cmds_GCJ | \
25081: module_expsym_cmds_GCJ | \
25082: old_archive_from_expsyms_cmds_GCJ | \
25083: export_symbols_cmds_GCJ | \
25084: extract_expsyms_cmds | reload_cmds | finish_cmds | \
25085: postinstall_cmds | postuninstall_cmds | \
25086: old_postinstall_cmds | old_postuninstall_cmds | \
25087: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25088: # Double-quote double-evaled strings.
25089: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25090: ;;
25091: *)
25092: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25093: ;;
25094: esac
25095: done
25096:
25097: case $lt_echo in
25098: *'\$0 --fallback-echo"')
25099: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25100: ;;
25101: esac
25102:
25103: cfgfile="$ofile"
25104:
25105: cat <<__EOF__ >> "$cfgfile"
25106: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25107:
25108: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25109:
25110: # Shell to use when invoking shell scripts.
25111: SHELL=$lt_SHELL
25112:
25113: # Whether or not to build shared libraries.
25114: build_libtool_libs=$enable_shared
25115:
25116: # Whether or not to build static libraries.
25117: build_old_libs=$enable_static
25118:
25119: # Whether or not to add -lc for building shared libraries.
25120: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25121:
25122: # Whether or not to disallow shared libs when runtime libs are static
25123: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25124:
25125: # Whether or not to optimize for fast installation.
25126: fast_install=$enable_fast_install
25127:
25128: # The host system.
25129: host_alias=$host_alias
25130: host=$host
25131:
25132: # An echo program that does not interpret backslashes.
25133: echo=$lt_echo
25134:
25135: # The archiver.
25136: AR=$lt_AR
25137: AR_FLAGS=$lt_AR_FLAGS
25138:
25139: # A C compiler.
25140: LTCC=$lt_LTCC
25141:
25142: # A language-specific compiler.
25143: CC=$lt_compiler_GCJ
25144:
25145: # Is the compiler the GNU C compiler?
25146: with_gcc=$GCC_GCJ
25147:
25148: # An ERE matcher.
25149: EGREP=$lt_EGREP
25150:
25151: # The linker used to build libraries.
25152: LD=$lt_LD_GCJ
25153:
25154: # Whether we need hard or soft links.
25155: LN_S=$lt_LN_S
25156:
25157: # A BSD-compatible nm program.
25158: NM=$lt_NM
25159:
25160: # A symbol stripping program
25161: STRIP=$STRIP
25162:
25163: # Used to examine libraries when file_magic_cmd begins "file"
25164: MAGIC_CMD=$MAGIC_CMD
25165:
25166: # Used on cygwin: DLL creation program.
25167: DLLTOOL="$DLLTOOL"
25168:
25169: # Used on cygwin: object dumper.
25170: OBJDUMP="$OBJDUMP"
25171:
25172: # Used on cygwin: assembler.
25173: AS="$AS"
25174:
25175: # The name of the directory that contains temporary libtool files.
25176: objdir=$objdir
25177:
25178: # How to create reloadable object files.
25179: reload_flag=$lt_reload_flag
25180: reload_cmds=$lt_reload_cmds
25181:
25182: # How to pass a linker flag through the compiler.
25183: wl=$lt_lt_prog_compiler_wl_GCJ
25184:
25185: # Object file suffix (normally "o").
25186: objext="$ac_objext"
25187:
25188: # Old archive suffix (normally "a").
25189: libext="$libext"
25190:
25191: # Shared library suffix (normally ".so").
25192: shrext='$shrext'
25193:
25194: # Executable file suffix (normally "").
25195: exeext="$exeext"
25196:
25197: # Additional compiler flags for building library objects.
25198: pic_flag=$lt_lt_prog_compiler_pic_GCJ
25199: pic_mode=$pic_mode
25200:
25201: # What is the maximum length of a command?
25202: max_cmd_len=$lt_cv_sys_max_cmd_len
25203:
25204: # Does compiler simultaneously support -c and -o options?
25205: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25206:
25207: # Must we lock files when doing compilation ?
25208: need_locks=$lt_need_locks
25209:
25210: # Do we need the lib prefix for modules?
25211: need_lib_prefix=$need_lib_prefix
25212:
25213: # Do we need a version for libraries?
25214: need_version=$need_version
25215:
25216: # Whether dlopen is supported.
25217: dlopen_support=$enable_dlopen
25218:
25219: # Whether dlopen of programs is supported.
25220: dlopen_self=$enable_dlopen_self
25221:
25222: # Whether dlopen of statically linked programs is supported.
25223: dlopen_self_static=$enable_dlopen_self_static
25224:
25225: # Compiler flag to prevent dynamic linking.
25226: link_static_flag=$lt_lt_prog_compiler_static_GCJ
25227:
25228: # Compiler flag to turn off builtin functions.
25229: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25230:
25231: # Compiler flag to allow reflexive dlopens.
25232: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25233:
25234: # Compiler flag to generate shared objects directly from archives.
25235: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25236:
25237: # Compiler flag to generate thread-safe objects.
25238: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25239:
25240: # Library versioning type.
25241: version_type=$version_type
25242:
25243: # Format of library name prefix.
25244: libname_spec=$lt_libname_spec
25245:
25246: # List of archive names. First name is the real one, the rest are links.
25247: # The last name is the one that the linker finds with -lNAME.
25248: library_names_spec=$lt_library_names_spec
25249:
25250: # The coded name of the library, if different from the real name.
25251: soname_spec=$lt_soname_spec
25252:
25253: # Commands used to build and install an old-style archive.
25254: RANLIB=$lt_RANLIB
25255: old_archive_cmds=$lt_old_archive_cmds_GCJ
25256: old_postinstall_cmds=$lt_old_postinstall_cmds
25257: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25258:
25259: # Create an old-style archive from a shared archive.
25260: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25261:
25262: # Create a temporary old-style archive to link instead of a shared archive.
25263: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25264:
25265: # Commands used to build and install a shared archive.
25266: archive_cmds=$lt_archive_cmds_GCJ
25267: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25268: postinstall_cmds=$lt_postinstall_cmds
25269: postuninstall_cmds=$lt_postuninstall_cmds
25270:
25271: # Commands used to build a loadable module (assumed same as above if empty)
25272: module_cmds=$lt_module_cmds_GCJ
25273: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25274:
25275: # Commands to strip libraries.
25276: old_striplib=$lt_old_striplib
25277: striplib=$lt_striplib
25278:
25279: # Dependencies to place before the objects being linked to create a
25280: # shared library.
25281: predep_objects=$lt_predep_objects_GCJ
25282:
25283: # Dependencies to place after the objects being linked to create a
25284: # shared library.
25285: postdep_objects=$lt_postdep_objects_GCJ
25286:
25287: # Dependencies to place before the objects being linked to create a
25288: # shared library.
25289: predeps=$lt_predeps_GCJ
25290:
25291: # Dependencies to place after the objects being linked to create a
25292: # shared library.
25293: postdeps=$lt_postdeps_GCJ
25294:
25295: # The library search path used internally by the compiler when linking
25296: # a shared library.
25297: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25298:
25299: # Method to check whether dependent libraries are shared objects.
25300: deplibs_check_method=$lt_deplibs_check_method
25301:
25302: # Command to use when deplibs_check_method == file_magic.
25303: file_magic_cmd=$lt_file_magic_cmd
25304:
25305: # Flag that allows shared libraries with undefined symbols to be built.
25306: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25307:
25308: # Flag that forces no undefined symbols.
25309: no_undefined_flag=$lt_no_undefined_flag_GCJ
25310:
25311: # Commands used to finish a libtool library installation in a directory.
25312: finish_cmds=$lt_finish_cmds
25313:
25314: # Same as above, but a single script fragment to be evaled but not shown.
25315: finish_eval=$lt_finish_eval
25316:
25317: # Take the output of nm and produce a listing of raw symbols and C names.
25318: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25319:
25320: # Transform the output of nm in a proper C declaration
25321: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25322:
25323: # Transform the output of nm in a C name address pair
25324: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25325:
25326: # This is the shared library runtime path variable.
25327: runpath_var=$runpath_var
25328:
25329: # This is the shared library path variable.
25330: shlibpath_var=$shlibpath_var
25331:
25332: # Is shlibpath searched before the hard-coded library search path?
25333: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25334:
25335: # How to hardcode a shared library path into an executable.
25336: hardcode_action=$hardcode_action_GCJ
25337:
25338: # Whether we should hardcode library paths into libraries.
25339: hardcode_into_libs=$hardcode_into_libs
25340:
25341: # Flag to hardcode \$libdir into a binary during linking.
25342: # This must work even if \$libdir does not exist.
25343: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25344:
25345: # If ld is used when linking, flag to hardcode \$libdir into
25346: # a binary during linking. This must work even if \$libdir does
25347: # not exist.
25348: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25349:
25350: # Whether we need a single -rpath flag with a separated argument.
25351: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25352:
25353: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25354: # resulting binary.
25355: hardcode_direct=$hardcode_direct_GCJ
25356:
25357: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25358: # resulting binary.
25359: hardcode_minus_L=$hardcode_minus_L_GCJ
25360:
25361: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25362: # the resulting binary.
25363: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25364:
25365: # Set to yes if building a shared library automatically hardcodes DIR into the library
25366: # and all subsequent libraries and executables linked against it.
25367: hardcode_automatic=$hardcode_automatic_GCJ
25368:
25369: # Variables whose values should be saved in libtool wrapper scripts and
25370: # restored at relink time.
25371: variables_saved_for_relink="$variables_saved_for_relink"
25372:
25373: # Whether libtool must link a program against all its dependency libraries.
25374: link_all_deplibs=$link_all_deplibs_GCJ
25375:
25376: # Compile-time system search path for libraries
25377: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25378:
25379: # Run-time system search path for libraries
25380: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25381:
25382: # Fix the shell variable \$srcfile for the compiler.
25383: fix_srcfile_path="$fix_srcfile_path_GCJ"
25384:
25385: # Set to yes if exported symbols are required.
25386: always_export_symbols=$always_export_symbols_GCJ
25387:
25388: # The commands to list exported symbols.
25389: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25390:
25391: # The commands to extract the exported symbol list from a shared archive.
25392: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25393:
25394: # Symbols that should not be listed in the preloaded symbols.
25395: exclude_expsyms=$lt_exclude_expsyms_GCJ
25396:
25397: # Symbols that must always be exported.
25398: include_expsyms=$lt_include_expsyms_GCJ
25399:
25400: # ### END LIBTOOL TAG CONFIG: $tagname
25401:
25402: __EOF__
25403:
25404:
25405: else
25406: # If there is no Makefile yet, we rely on a make rule to execute
25407: # `config.status --recheck' to rerun these tests and create the
25408: # libtool script then.
25409: test -f Makefile && make "$ltmain"
25410: fi
25411:
25412:
25413: ac_ext=c
25414: ac_cpp='$CPP $CPPFLAGS'
25415: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25416: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25417: ac_compiler_gnu=$ac_cv_c_compiler_gnu
25418:
25419: CC="$lt_save_CC"
25420:
25421: else
25422: tagname=""
25423: fi
25424: ;;
25425:
25426: RC)
25427:
25428:
25429:
25430: # Source file extension for RC test sources.
25431: ac_ext=rc
25432:
25433: # Object file extension for compiled RC test sources.
25434: objext=o
25435: objext_RC=$objext
25436:
25437: # Code to be used in simple compile tests
25438: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25439:
25440: # Code to be used in simple link tests
25441: lt_simple_link_test_code="$lt_simple_compile_test_code"
25442:
25443: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25444:
25445: # If no C compiler was specified, use CC.
25446: LTCC=${LTCC-"$CC"}
25447:
25448: # Allow CC to be a program name with arguments.
25449: compiler=$CC
25450:
25451:
25452: # Allow CC to be a program name with arguments.
25453: lt_save_CC="$CC"
25454: CC=${RC-"windres"}
25455: compiler=$CC
25456: compiler_RC=$CC
25457: lt_cv_prog_compiler_c_o_RC=yes
25458:
25459: # The else clause should only fire when bootstrapping the
25460: # libtool distribution, otherwise you forgot to ship ltmain.sh
25461: # with your package, and you will get complaints that there are
25462: # no rules to generate ltmain.sh.
25463: if test -f "$ltmain"; then
25464: # See if we are running on zsh, and set the options which allow our commands through
25465: # without removal of \ escapes.
25466: if test -n "${ZSH_VERSION+set}" ; then
25467: setopt NO_GLOB_SUBST
25468: fi
25469: # Now quote all the things that may contain metacharacters while being
25470: # careful not to overquote the AC_SUBSTed values. We take copies of the
25471: # variables and quote the copies for generation of the libtool script.
25472: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
25473: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25474: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25475: deplibs_check_method reload_flag reload_cmds need_locks \
25476: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25477: lt_cv_sys_global_symbol_to_c_name_address \
25478: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25479: old_postinstall_cmds old_postuninstall_cmds \
25480: compiler_RC \
25481: CC_RC \
25482: LD_RC \
25483: lt_prog_compiler_wl_RC \
25484: lt_prog_compiler_pic_RC \
25485: lt_prog_compiler_static_RC \
25486: lt_prog_compiler_no_builtin_flag_RC \
25487: export_dynamic_flag_spec_RC \
25488: thread_safe_flag_spec_RC \
25489: whole_archive_flag_spec_RC \
25490: enable_shared_with_static_runtimes_RC \
25491: old_archive_cmds_RC \
25492: old_archive_from_new_cmds_RC \
25493: predep_objects_RC \
25494: postdep_objects_RC \
25495: predeps_RC \
25496: postdeps_RC \
25497: compiler_lib_search_path_RC \
25498: archive_cmds_RC \
25499: archive_expsym_cmds_RC \
25500: postinstall_cmds_RC \
25501: postuninstall_cmds_RC \
25502: old_archive_from_expsyms_cmds_RC \
25503: allow_undefined_flag_RC \
25504: no_undefined_flag_RC \
25505: export_symbols_cmds_RC \
25506: hardcode_libdir_flag_spec_RC \
25507: hardcode_libdir_flag_spec_ld_RC \
25508: hardcode_libdir_separator_RC \
25509: hardcode_automatic_RC \
25510: module_cmds_RC \
25511: module_expsym_cmds_RC \
25512: lt_cv_prog_compiler_c_o_RC \
25513: exclude_expsyms_RC \
25514: include_expsyms_RC; do
25515:
25516: case $var in
25517: old_archive_cmds_RC | \
25518: old_archive_from_new_cmds_RC | \
25519: archive_cmds_RC | \
25520: archive_expsym_cmds_RC | \
25521: module_cmds_RC | \
25522: module_expsym_cmds_RC | \
25523: old_archive_from_expsyms_cmds_RC | \
25524: export_symbols_cmds_RC | \
25525: extract_expsyms_cmds | reload_cmds | finish_cmds | \
25526: postinstall_cmds | postuninstall_cmds | \
25527: old_postinstall_cmds | old_postuninstall_cmds | \
25528: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25529: # Double-quote double-evaled strings.
25530: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25531: ;;
25532: *)
25533: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25534: ;;
25535: esac
25536: done
25537:
25538: case $lt_echo in
25539: *'\$0 --fallback-echo"')
25540: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25541: ;;
25542: esac
25543:
25544: cfgfile="$ofile"
25545:
25546: cat <<__EOF__ >> "$cfgfile"
25547: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25548:
25549: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25550:
25551: # Shell to use when invoking shell scripts.
25552: SHELL=$lt_SHELL
25553:
25554: # Whether or not to build shared libraries.
25555: build_libtool_libs=$enable_shared
25556:
25557: # Whether or not to build static libraries.
25558: build_old_libs=$enable_static
25559:
25560: # Whether or not to add -lc for building shared libraries.
25561: build_libtool_need_lc=$archive_cmds_need_lc_RC
25562:
25563: # Whether or not to disallow shared libs when runtime libs are static
25564: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25565:
25566: # Whether or not to optimize for fast installation.
25567: fast_install=$enable_fast_install
25568:
25569: # The host system.
25570: host_alias=$host_alias
25571: host=$host
25572:
25573: # An echo program that does not interpret backslashes.
25574: echo=$lt_echo
25575:
25576: # The archiver.
25577: AR=$lt_AR
25578: AR_FLAGS=$lt_AR_FLAGS
25579:
25580: # A C compiler.
25581: LTCC=$lt_LTCC
25582:
25583: # A language-specific compiler.
25584: CC=$lt_compiler_RC
25585:
25586: # Is the compiler the GNU C compiler?
25587: with_gcc=$GCC_RC
25588:
25589: # An ERE matcher.
25590: EGREP=$lt_EGREP
25591:
25592: # The linker used to build libraries.
25593: LD=$lt_LD_RC
25594:
25595: # Whether we need hard or soft links.
25596: LN_S=$lt_LN_S
25597:
25598: # A BSD-compatible nm program.
25599: NM=$lt_NM
25600:
25601: # A symbol stripping program
25602: STRIP=$STRIP
25603:
25604: # Used to examine libraries when file_magic_cmd begins "file"
25605: MAGIC_CMD=$MAGIC_CMD
25606:
25607: # Used on cygwin: DLL creation program.
25608: DLLTOOL="$DLLTOOL"
25609:
25610: # Used on cygwin: object dumper.
25611: OBJDUMP="$OBJDUMP"
25612:
25613: # Used on cygwin: assembler.
25614: AS="$AS"
25615:
25616: # The name of the directory that contains temporary libtool files.
25617: objdir=$objdir
25618:
25619: # How to create reloadable object files.
25620: reload_flag=$lt_reload_flag
25621: reload_cmds=$lt_reload_cmds
25622:
25623: # How to pass a linker flag through the compiler.
25624: wl=$lt_lt_prog_compiler_wl_RC
25625:
25626: # Object file suffix (normally "o").
25627: objext="$ac_objext"
25628:
25629: # Old archive suffix (normally "a").
25630: libext="$libext"
25631:
25632: # Shared library suffix (normally ".so").
25633: shrext='$shrext'
25634:
25635: # Executable file suffix (normally "").
25636: exeext="$exeext"
25637:
25638: # Additional compiler flags for building library objects.
25639: pic_flag=$lt_lt_prog_compiler_pic_RC
25640: pic_mode=$pic_mode
25641:
25642: # What is the maximum length of a command?
25643: max_cmd_len=$lt_cv_sys_max_cmd_len
25644:
25645: # Does compiler simultaneously support -c and -o options?
25646: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25647:
25648: # Must we lock files when doing compilation ?
25649: need_locks=$lt_need_locks
25650:
25651: # Do we need the lib prefix for modules?
25652: need_lib_prefix=$need_lib_prefix
25653:
25654: # Do we need a version for libraries?
25655: need_version=$need_version
25656:
25657: # Whether dlopen is supported.
25658: dlopen_support=$enable_dlopen
25659:
25660: # Whether dlopen of programs is supported.
25661: dlopen_self=$enable_dlopen_self
25662:
25663: # Whether dlopen of statically linked programs is supported.
25664: dlopen_self_static=$enable_dlopen_self_static
25665:
25666: # Compiler flag to prevent dynamic linking.
25667: link_static_flag=$lt_lt_prog_compiler_static_RC
25668:
25669: # Compiler flag to turn off builtin functions.
25670: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25671:
25672: # Compiler flag to allow reflexive dlopens.
25673: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25674:
25675: # Compiler flag to generate shared objects directly from archives.
25676: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25677:
25678: # Compiler flag to generate thread-safe objects.
25679: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25680:
25681: # Library versioning type.
25682: version_type=$version_type
25683:
25684: # Format of library name prefix.
25685: libname_spec=$lt_libname_spec
25686:
25687: # List of archive names. First name is the real one, the rest are links.
25688: # The last name is the one that the linker finds with -lNAME.
25689: library_names_spec=$lt_library_names_spec
25690:
25691: # The coded name of the library, if different from the real name.
25692: soname_spec=$lt_soname_spec
25693:
25694: # Commands used to build and install an old-style archive.
25695: RANLIB=$lt_RANLIB
25696: old_archive_cmds=$lt_old_archive_cmds_RC
25697: old_postinstall_cmds=$lt_old_postinstall_cmds
25698: old_postuninstall_cmds=$lt_old_postuninstall_cmds
25699:
25700: # Create an old-style archive from a shared archive.
25701: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25702:
25703: # Create a temporary old-style archive to link instead of a shared archive.
25704: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25705:
25706: # Commands used to build and install a shared archive.
25707: archive_cmds=$lt_archive_cmds_RC
25708: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25709: postinstall_cmds=$lt_postinstall_cmds
25710: postuninstall_cmds=$lt_postuninstall_cmds
25711:
25712: # Commands used to build a loadable module (assumed same as above if empty)
25713: module_cmds=$lt_module_cmds_RC
25714: module_expsym_cmds=$lt_module_expsym_cmds_RC
25715:
25716: # Commands to strip libraries.
25717: old_striplib=$lt_old_striplib
25718: striplib=$lt_striplib
25719:
25720: # Dependencies to place before the objects being linked to create a
25721: # shared library.
25722: predep_objects=$lt_predep_objects_RC
25723:
25724: # Dependencies to place after the objects being linked to create a
25725: # shared library.
25726: postdep_objects=$lt_postdep_objects_RC
25727:
25728: # Dependencies to place before the objects being linked to create a
25729: # shared library.
25730: predeps=$lt_predeps_RC
25731:
25732: # Dependencies to place after the objects being linked to create a
25733: # shared library.
25734: postdeps=$lt_postdeps_RC
25735:
25736: # The library search path used internally by the compiler when linking
25737: # a shared library.
25738: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25739:
25740: # Method to check whether dependent libraries are shared objects.
25741: deplibs_check_method=$lt_deplibs_check_method
25742:
25743: # Command to use when deplibs_check_method == file_magic.
25744: file_magic_cmd=$lt_file_magic_cmd
25745:
25746: # Flag that allows shared libraries with undefined symbols to be built.
25747: allow_undefined_flag=$lt_allow_undefined_flag_RC
25748:
25749: # Flag that forces no undefined symbols.
25750: no_undefined_flag=$lt_no_undefined_flag_RC
25751:
25752: # Commands used to finish a libtool library installation in a directory.
25753: finish_cmds=$lt_finish_cmds
25754:
25755: # Same as above, but a single script fragment to be evaled but not shown.
25756: finish_eval=$lt_finish_eval
25757:
25758: # Take the output of nm and produce a listing of raw symbols and C names.
25759: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25760:
25761: # Transform the output of nm in a proper C declaration
25762: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25763:
25764: # Transform the output of nm in a C name address pair
25765: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25766:
25767: # This is the shared library runtime path variable.
25768: runpath_var=$runpath_var
25769:
25770: # This is the shared library path variable.
25771: shlibpath_var=$shlibpath_var
25772:
25773: # Is shlibpath searched before the hard-coded library search path?
25774: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25775:
25776: # How to hardcode a shared library path into an executable.
25777: hardcode_action=$hardcode_action_RC
25778:
25779: # Whether we should hardcode library paths into libraries.
25780: hardcode_into_libs=$hardcode_into_libs
25781:
25782: # Flag to hardcode \$libdir into a binary during linking.
25783: # This must work even if \$libdir does not exist.
25784: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25785:
25786: # If ld is used when linking, flag to hardcode \$libdir into
25787: # a binary during linking. This must work even if \$libdir does
25788: # not exist.
25789: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25790:
25791: # Whether we need a single -rpath flag with a separated argument.
25792: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25793:
25794: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25795: # resulting binary.
25796: hardcode_direct=$hardcode_direct_RC
25797:
25798: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25799: # resulting binary.
25800: hardcode_minus_L=$hardcode_minus_L_RC
25801:
25802: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25803: # the resulting binary.
25804: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25805:
25806: # Set to yes if building a shared library automatically hardcodes DIR into the library
25807: # and all subsequent libraries and executables linked against it.
25808: hardcode_automatic=$hardcode_automatic_RC
25809:
25810: # Variables whose values should be saved in libtool wrapper scripts and
25811: # restored at relink time.
25812: variables_saved_for_relink="$variables_saved_for_relink"
25813:
25814: # Whether libtool must link a program against all its dependency libraries.
25815: link_all_deplibs=$link_all_deplibs_RC
25816:
25817: # Compile-time system search path for libraries
25818: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25819:
25820: # Run-time system search path for libraries
25821: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25822:
25823: # Fix the shell variable \$srcfile for the compiler.
25824: fix_srcfile_path="$fix_srcfile_path_RC"
25825:
25826: # Set to yes if exported symbols are required.
25827: always_export_symbols=$always_export_symbols_RC
25828:
25829: # The commands to list exported symbols.
25830: export_symbols_cmds=$lt_export_symbols_cmds_RC
25831:
25832: # The commands to extract the exported symbol list from a shared archive.
25833: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25834:
25835: # Symbols that should not be listed in the preloaded symbols.
25836: exclude_expsyms=$lt_exclude_expsyms_RC
25837:
25838: # Symbols that must always be exported.
25839: include_expsyms=$lt_include_expsyms_RC
25840:
25841: # ### END LIBTOOL TAG CONFIG: $tagname
25842:
25843: __EOF__
25844:
25845:
25846: else
25847: # If there is no Makefile yet, we rely on a make rule to execute
25848: # `config.status --recheck' to rerun these tests and create the
25849: # libtool script then.
25850: test -f Makefile && make "$ltmain"
25851: fi
25852:
25853:
25854: ac_ext=c
25855: ac_cpp='$CPP $CPPFLAGS'
25856: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25857: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25858: ac_compiler_gnu=$ac_cv_c_compiler_gnu
25859:
25860: CC="$lt_save_CC"
25861:
25862: ;;
25863:
25864: *)
25865: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25866: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25867: { (exit 1); exit 1; }; }
25868: ;;
25869: esac
25870:
25871: # Append the new tag name to the list of available tags.
25872: if test -n "$tagname" ; then
25873: available_tags="$available_tags $tagname"
25874: fi
25875: fi
25876: done
25877: IFS="$lt_save_ifs"
25878:
25879: # Now substitute the updated list of available tags.
25880: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25881: mv "${ofile}T" "$ofile"
25882: chmod +x "$ofile"
25883: else
25884: rm -f "${ofile}T"
25885: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25886: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25887: { (exit 1); exit 1; }; }
25888: fi
25889: fi
25890:
25891:
25892:
25893: # This can be used to rebuild libtool when needed
25894: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25895:
25896: # Always use our own libtool.
25897: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25898:
25899: # Prevent multiple expansion
25900:
25901:
25902:
25903:
25904:
25905:
25906:
25907:
25908:
25909:
25910:
25911:
25912:
25913:
25914:
25915:
25916:
25917:
25918:
25919:
25920:
25921:
25922:
25923: subdirs="$subdirs libltdl"
25924:
25925: TME_PREOPEN=
25926: if test $enable_shared = no; then
25927: TME_PREOPEN='`sort -u $(top_builddir)/tme-preopen.txt`'
25928: fi
25929:
25930:
25931: # Check whether --enable-debug or --disable-debug was given.
25932: if test "${enable_debug+set}" = set; then
25933: enableval="$enable_debug"
25934:
25935: else
1.1.1.3 root 25936: enable_debug=no
1.1 root 25937: fi;
25938: if test "x$enable_debug" = "xyes"; then
25939: CFLAGS="${CFLAGS-} -g -O0"
25940: CXXFLAGS="${CXXFLAGS-} -g3 -O0"
1.1.1.3 root 25941: else
25942: CPPFLAGS="${CPPFLAGS-} -DTME_NO_LOG -DTME_NO_DEBUG_LOCKS -DTME_NO_AUDIT_ATOMICS -DNDEBUG"
1.1 root 25943: fi
25944: # Check whether --enable-warnings or --disable-warnings was given.
25945: if test "${enable_warnings+set}" = set; then
25946: enableval="$enable_warnings"
25947:
25948: else
25949: enable_warnings=yes
25950: fi;
25951: if test "x$enable_warnings" = "xyes" -a "x$GCC" = "xyes"; then
1.1.1.3 root 25952: CFLAGS="${CFLAGS-} -Wundef -Wall -Werror"
1.1 root 25953: CXXFLAGS="${CXXFLAGS-} -W"
25954: fi
25955:
1.1.1.3 root 25956: CFLAGS_NO_STRICT_ALIASING=
25957: if test "x$GCC" = "xyes"; then
25958: CFLAGS_NO_STRICT_ALIASING=" -fno-strict-aliasing"
25959: fi
25960:
25961:
1.1 root 25962: ac_config_commands="$ac_config_commands default-1"
25963:
25964:
1.1.1.4 ! root 25965: ac_config_files="$ac_config_files Makefile tme/Makefile tme/ic/Makefile tme/machine/Makefile tme/generic/Makefile tme/scsi/Makefile libtme/Makefile ic/Makefile ic/m68k/Makefile ic/ieee754/Makefile ic/sparc/Makefile machine/Makefile machine/sun/Makefile machine/sun2/Makefile machine/sun3/Makefile machine/sun4/Makefile host/Makefile host/posix/Makefile host/bsd/Makefile host/gtk/Makefile bus/Makefile bus/multibus/Makefile bus/sbus/Makefile serial/Makefile scsi/Makefile generic/Makefile tmesh/Makefile tools/Makefile"
1.1 root 25966: cat >confcache <<\_ACEOF
25967: # This file is a shell script that caches the results of configure
25968: # tests run on this system so they can be shared between configure
25969: # scripts and configure runs, see configure's option --config-cache.
25970: # It is not useful on other systems. If it contains results you don't
25971: # want to keep, you may remove or edit it.
25972: #
25973: # config.status only pays attention to the cache file if you give it
25974: # the --recheck option to rerun configure.
25975: #
25976: # `ac_cv_env_foo' variables (set or unset) will be overridden when
25977: # loading this file, other *unset* `ac_cv_foo' will be assigned the
25978: # following values.
25979:
25980: _ACEOF
25981:
25982: # The following way of writing the cache mishandles newlines in values,
25983: # but we know of no workaround that is simple, portable, and efficient.
25984: # So, don't put newlines in cache variables' values.
25985: # Ultrix sh set writes to stderr and can't be redirected directly,
25986: # and sets the high bit in the cache file unless we assign to the vars.
25987: {
25988: (set) 2>&1 |
25989: case `(ac_space=' '; set | grep ac_space) 2>&1` in
25990: *ac_space=\ *)
25991: # `set' does not quote correctly, so add quotes (double-quote
25992: # substitution turns \\\\ into \\, and sed turns \\ into \).
25993: sed -n \
25994: "s/'/'\\\\''/g;
25995: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25996: ;;
25997: *)
25998: # `set' quotes correctly as required by POSIX, so do not add quotes.
25999: sed -n \
26000: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26001: ;;
26002: esac;
26003: } |
26004: sed '
26005: t clear
26006: : clear
26007: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26008: t end
26009: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26010: : end' >>confcache
26011: if diff $cache_file confcache >/dev/null 2>&1; then :; else
26012: if test -w $cache_file; then
26013: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26014: cat confcache >$cache_file
26015: else
26016: echo "not updating unwritable cache $cache_file"
26017: fi
26018: fi
26019: rm -f confcache
26020:
26021: test "x$prefix" = xNONE && prefix=$ac_default_prefix
26022: # Let make expand exec_prefix.
26023: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26024:
26025: # VPATH may cause trouble with some makes, so we remove $(srcdir),
26026: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26027: # trailing colons and then remove the whole line if VPATH becomes empty
26028: # (actually we leave an empty line to preserve line numbers).
26029: if test "x$srcdir" = x.; then
26030: ac_vpsub='/^[ ]*VPATH[ ]*=/{
26031: s/:*\$(srcdir):*/:/;
26032: s/:*\${srcdir}:*/:/;
26033: s/:*@srcdir@:*/:/;
26034: s/^\([^=]*=[ ]*\):*/\1/;
26035: s/:*$//;
26036: s/^[^=]*=[ ]*$//;
26037: }'
26038: fi
26039:
26040: DEFS=-DHAVE_CONFIG_H
26041:
26042: ac_libobjs=
26043: ac_ltlibobjs=
26044: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26045: # 1. Remove the extension, and $U if already installed.
26046: ac_i=`echo "$ac_i" |
26047: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26048: # 2. Add them.
26049: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26050: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26051: done
26052: LIBOBJS=$ac_libobjs
26053:
26054: LTLIBOBJS=$ac_ltlibobjs
26055:
26056:
26057: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26058: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26059: Usually this means the macro was only invoked conditionally." >&5
26060: echo "$as_me: error: conditional \"AMDEP\" was never defined.
26061: Usually this means the macro was only invoked conditionally." >&2;}
26062: { (exit 1); exit 1; }; }
26063: fi
26064: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26065: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26066: Usually this means the macro was only invoked conditionally." >&5
26067: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26068: Usually this means the macro was only invoked conditionally." >&2;}
26069: { (exit 1); exit 1; }; }
26070: fi
26071: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26072: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26073: Usually this means the macro was only invoked conditionally." >&5
26074: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26075: Usually this means the macro was only invoked conditionally." >&2;}
26076: { (exit 1); exit 1; }; }
26077: fi
26078:
26079: : ${CONFIG_STATUS=./config.status}
26080: ac_clean_files_save=$ac_clean_files
26081: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26082: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26083: echo "$as_me: creating $CONFIG_STATUS" >&6;}
26084: cat >$CONFIG_STATUS <<_ACEOF
26085: #! $SHELL
26086: # Generated by $as_me.
26087: # Run this file to recreate the current configuration.
26088: # Compiler output produced by configure, useful for debugging
26089: # configure, is in config.log if it exists.
26090:
26091: debug=false
26092: ac_cs_recheck=false
26093: ac_cs_silent=false
26094: SHELL=\${CONFIG_SHELL-$SHELL}
26095: _ACEOF
26096:
26097: cat >>$CONFIG_STATUS <<\_ACEOF
26098: ## --------------------- ##
26099: ## M4sh Initialization. ##
26100: ## --------------------- ##
26101:
26102: # Be Bourne compatible
26103: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26104: emulate sh
26105: NULLCMD=:
26106: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26107: # is contrary to our usage. Disable this feature.
26108: alias -g '${1+"$@"}'='"$@"'
26109: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26110: set -o posix
26111: fi
26112:
26113: # Support unset when possible.
26114: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26115: as_unset=unset
26116: else
26117: as_unset=false
26118: fi
26119:
26120:
26121: # Work around bugs in pre-3.0 UWIN ksh.
26122: $as_unset ENV MAIL MAILPATH
26123: PS1='$ '
26124: PS2='> '
26125: PS4='+ '
26126:
26127: # NLS nuisances.
26128: for as_var in \
26129: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26130: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26131: LC_TELEPHONE LC_TIME
26132: do
26133: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
26134: eval $as_var=C; export $as_var
26135: else
26136: $as_unset $as_var
26137: fi
26138: done
26139:
26140: # Required to use basename.
26141: if expr a : '\(a\)' >/dev/null 2>&1; then
26142: as_expr=expr
26143: else
26144: as_expr=false
26145: fi
26146:
26147: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26148: as_basename=basename
26149: else
26150: as_basename=false
26151: fi
26152:
26153:
26154: # Name of the executable.
26155: as_me=`$as_basename "$0" ||
26156: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26157: X"$0" : 'X\(//\)$' \| \
26158: X"$0" : 'X\(/\)$' \| \
26159: . : '\(.\)' 2>/dev/null ||
26160: echo X/"$0" |
26161: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26162: /^X\/\(\/\/\)$/{ s//\1/; q; }
26163: /^X\/\(\/\).*/{ s//\1/; q; }
26164: s/.*/./; q'`
26165:
26166:
26167: # PATH needs CR, and LINENO needs CR and PATH.
26168: # Avoid depending upon Character Ranges.
26169: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26170: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26171: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26172: as_cr_digits='0123456789'
26173: as_cr_alnum=$as_cr_Letters$as_cr_digits
26174:
26175: # The user is always right.
26176: if test "${PATH_SEPARATOR+set}" != set; then
26177: echo "#! /bin/sh" >conf$$.sh
26178: echo "exit 0" >>conf$$.sh
26179: chmod +x conf$$.sh
26180: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26181: PATH_SEPARATOR=';'
26182: else
26183: PATH_SEPARATOR=:
26184: fi
26185: rm -f conf$$.sh
26186: fi
26187:
26188:
26189: as_lineno_1=$LINENO
26190: as_lineno_2=$LINENO
26191: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26192: test "x$as_lineno_1" != "x$as_lineno_2" &&
26193: test "x$as_lineno_3" = "x$as_lineno_2" || {
26194: # Find who we are. Look in the path if we contain no path at all
26195: # relative or not.
26196: case $0 in
26197: *[\\/]* ) as_myself=$0 ;;
26198: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26199: for as_dir in $PATH
26200: do
26201: IFS=$as_save_IFS
26202: test -z "$as_dir" && as_dir=.
26203: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26204: done
26205:
26206: ;;
26207: esac
26208: # We did not find ourselves, most probably we were run as `sh COMMAND'
26209: # in which case we are not to be found in the path.
26210: if test "x$as_myself" = x; then
26211: as_myself=$0
26212: fi
26213: if test ! -f "$as_myself"; then
26214: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26215: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26216: { (exit 1); exit 1; }; }
26217: fi
26218: case $CONFIG_SHELL in
26219: '')
26220: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26221: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26222: do
26223: IFS=$as_save_IFS
26224: test -z "$as_dir" && as_dir=.
26225: for as_base in sh bash ksh sh5; do
26226: case $as_dir in
26227: /*)
26228: if ("$as_dir/$as_base" -c '
26229: as_lineno_1=$LINENO
26230: as_lineno_2=$LINENO
26231: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26232: test "x$as_lineno_1" != "x$as_lineno_2" &&
26233: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26234: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26235: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26236: CONFIG_SHELL=$as_dir/$as_base
26237: export CONFIG_SHELL
26238: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26239: fi;;
26240: esac
26241: done
26242: done
26243: ;;
26244: esac
26245:
26246: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26247: # uniformly replaced by the line number. The first 'sed' inserts a
26248: # line-number line before each line; the second 'sed' does the real
26249: # work. The second script uses 'N' to pair each line-number line
26250: # with the numbered line, and appends trailing '-' during
26251: # substitution so that $LINENO is not a special case at line end.
26252: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26253: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26254: sed '=' <$as_myself |
26255: sed '
26256: N
26257: s,$,-,
26258: : loop
26259: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26260: t loop
26261: s,-$,,
26262: s,^['$as_cr_digits']*\n,,
26263: ' >$as_me.lineno &&
26264: chmod +x $as_me.lineno ||
26265: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26266: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26267: { (exit 1); exit 1; }; }
26268:
26269: # Don't try to exec as it changes $[0], causing all sort of problems
26270: # (the dirname of $[0] is not the place where we might find the
26271: # original and so on. Autoconf is especially sensible to this).
26272: . ./$as_me.lineno
26273: # Exit status is that of the last command.
26274: exit
26275: }
26276:
26277:
26278: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26279: *c*,-n*) ECHO_N= ECHO_C='
26280: ' ECHO_T=' ' ;;
26281: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26282: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26283: esac
26284:
26285: if expr a : '\(a\)' >/dev/null 2>&1; then
26286: as_expr=expr
26287: else
26288: as_expr=false
26289: fi
26290:
26291: rm -f conf$$ conf$$.exe conf$$.file
26292: echo >conf$$.file
26293: if ln -s conf$$.file conf$$ 2>/dev/null; then
26294: # We could just check for DJGPP; but this test a) works b) is more generic
26295: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26296: if test -f conf$$.exe; then
26297: # Don't use ln at all; we don't have any links
26298: as_ln_s='cp -p'
26299: else
26300: as_ln_s='ln -s'
26301: fi
26302: elif ln conf$$.file conf$$ 2>/dev/null; then
26303: as_ln_s=ln
26304: else
26305: as_ln_s='cp -p'
26306: fi
26307: rm -f conf$$ conf$$.exe conf$$.file
26308:
26309: if mkdir -p . 2>/dev/null; then
26310: as_mkdir_p=:
26311: else
26312: as_mkdir_p=false
26313: fi
26314:
26315: as_executable_p="test -f"
26316:
26317: # Sed expression to map a string onto a valid CPP name.
26318: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
26319:
26320: # Sed expression to map a string onto a valid variable name.
26321: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
26322:
26323:
26324: # IFS
26325: # We need space, tab and new line, in precisely that order.
26326: as_nl='
26327: '
26328: IFS=" $as_nl"
26329:
26330: # CDPATH.
26331: $as_unset CDPATH
26332:
26333: exec 6>&1
26334:
26335: # Open the log real soon, to keep \$[0] and so on meaningful, and to
26336: # report actual input values of CONFIG_FILES etc. instead of their
26337: # values after options handling. Logging --version etc. is OK.
26338: exec 5>>config.log
26339: {
26340: echo
26341: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26342: ## Running $as_me. ##
26343: _ASBOX
26344: } >&5
26345: cat >&5 <<_CSEOF
26346:
26347: This file was extended by $as_me, which was
26348: generated by GNU Autoconf 2.57. Invocation command line was
26349:
26350: CONFIG_FILES = $CONFIG_FILES
26351: CONFIG_HEADERS = $CONFIG_HEADERS
26352: CONFIG_LINKS = $CONFIG_LINKS
26353: CONFIG_COMMANDS = $CONFIG_COMMANDS
26354: $ $0 $@
26355:
26356: _CSEOF
26357: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26358: echo >&5
26359: _ACEOF
26360:
26361: # Files that config.status was made for.
26362: if test -n "$ac_config_files"; then
26363: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26364: fi
26365:
26366: if test -n "$ac_config_headers"; then
26367: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26368: fi
26369:
26370: if test -n "$ac_config_links"; then
26371: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26372: fi
26373:
26374: if test -n "$ac_config_commands"; then
26375: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26376: fi
26377:
26378: cat >>$CONFIG_STATUS <<\_ACEOF
26379:
26380: ac_cs_usage="\
26381: \`$as_me' instantiates files from templates according to the
26382: current configuration.
26383:
26384: Usage: $0 [OPTIONS] [FILE]...
26385:
26386: -h, --help print this help, then exit
26387: -V, --version print version number, then exit
26388: -q, --quiet do not print progress messages
26389: -d, --debug don't remove temporary files
26390: --recheck update $as_me by reconfiguring in the same conditions
26391: --file=FILE[:TEMPLATE]
26392: instantiate the configuration file FILE
26393: --header=FILE[:TEMPLATE]
26394: instantiate the configuration header FILE
26395:
26396: Configuration files:
26397: $config_files
26398:
26399: Configuration headers:
26400: $config_headers
26401:
26402: Configuration commands:
26403: $config_commands
26404:
26405: Report bugs to <[email protected]>."
26406: _ACEOF
26407:
26408: cat >>$CONFIG_STATUS <<_ACEOF
26409: ac_cs_version="\\
26410: config.status
26411: configured by $0, generated by GNU Autoconf 2.57,
26412: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26413:
26414: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
26415: Free Software Foundation, Inc.
26416: This config.status script is free software; the Free Software Foundation
26417: gives unlimited permission to copy, distribute and modify it."
26418: srcdir=$srcdir
26419: INSTALL="$INSTALL"
26420: _ACEOF
26421:
26422: cat >>$CONFIG_STATUS <<\_ACEOF
26423: # If no file are specified by the user, then we need to provide default
26424: # value. By we need to know if files were specified by the user.
26425: ac_need_defaults=:
26426: while test $# != 0
26427: do
26428: case $1 in
26429: --*=*)
26430: ac_option=`expr "x$1" : 'x\([^=]*\)='`
26431: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26432: ac_shift=:
26433: ;;
26434: -*)
26435: ac_option=$1
26436: ac_optarg=$2
26437: ac_shift=shift
26438: ;;
26439: *) # This is not an option, so the user has probably given explicit
26440: # arguments.
26441: ac_option=$1
26442: ac_need_defaults=false;;
26443: esac
26444:
26445: case $ac_option in
26446: # Handling of the options.
26447: _ACEOF
26448: cat >>$CONFIG_STATUS <<\_ACEOF
26449: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26450: ac_cs_recheck=: ;;
26451: --version | --vers* | -V )
26452: echo "$ac_cs_version"; exit 0 ;;
26453: --he | --h)
26454: # Conflict between --help and --header
26455: { { echo "$as_me:$LINENO: error: ambiguous option: $1
26456: Try \`$0 --help' for more information." >&5
26457: echo "$as_me: error: ambiguous option: $1
26458: Try \`$0 --help' for more information." >&2;}
26459: { (exit 1); exit 1; }; };;
26460: --help | --hel | -h )
26461: echo "$ac_cs_usage"; exit 0 ;;
26462: --debug | --d* | -d )
26463: debug=: ;;
26464: --file | --fil | --fi | --f )
26465: $ac_shift
26466: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26467: ac_need_defaults=false;;
26468: --header | --heade | --head | --hea )
26469: $ac_shift
26470: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26471: ac_need_defaults=false;;
26472: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26473: | -silent | --silent | --silen | --sile | --sil | --si | --s)
26474: ac_cs_silent=: ;;
26475:
26476: # This is an error.
26477: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26478: Try \`$0 --help' for more information." >&5
26479: echo "$as_me: error: unrecognized option: $1
26480: Try \`$0 --help' for more information." >&2;}
26481: { (exit 1); exit 1; }; } ;;
26482:
26483: *) ac_config_targets="$ac_config_targets $1" ;;
26484:
26485: esac
26486: shift
26487: done
26488:
26489: ac_configure_extra_args=
26490:
26491: if $ac_cs_silent; then
26492: exec 6>/dev/null
26493: ac_configure_extra_args="$ac_configure_extra_args --silent"
26494: fi
26495:
26496: _ACEOF
26497: cat >>$CONFIG_STATUS <<_ACEOF
26498: if \$ac_cs_recheck; then
26499: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26500: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26501: fi
26502:
26503: _ACEOF
26504:
26505: cat >>$CONFIG_STATUS <<_ACEOF
26506: #
26507: # INIT-COMMANDS section.
26508: #
26509:
26510: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26511:
26512: PACKAGE="$PACKAGE"
26513: VERSION="$VERSION"
26514: target="$target"
26515: ac_cv_sizeof_int="$ac_cv_sizeof_int"
26516: ac_cv_sizeof_long="$ac_cv_sizeof_long"
26517: ac_cv_sizeof_short="$ac_cv_sizeof_short"
26518:
26519:
26520: _ACEOF
26521:
26522:
26523:
26524: cat >>$CONFIG_STATUS <<\_ACEOF
26525: for ac_config_target in $ac_config_targets
26526: do
26527: case "$ac_config_target" in
26528: # Handling of arguments.
26529: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26530: "tme/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/Makefile" ;;
26531: "tme/ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/ic/Makefile" ;;
26532: "tme/machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/machine/Makefile" ;;
26533: "tme/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/generic/Makefile" ;;
1.1.1.2 root 26534: "tme/scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tme/scsi/Makefile" ;;
1.1 root 26535: "libtme/Makefile" ) CONFIG_FILES="$CONFIG_FILES libtme/Makefile" ;;
26536: "ic/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/Makefile" ;;
26537: "ic/m68k/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/m68k/Makefile" ;;
1.1.1.3 root 26538: "ic/ieee754/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/ieee754/Makefile" ;;
1.1.1.4 ! root 26539: "ic/sparc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ic/sparc/Makefile" ;;
1.1 root 26540: "machine/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/Makefile" ;;
26541: "machine/sun/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun/Makefile" ;;
26542: "machine/sun2/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun2/Makefile" ;;
1.1.1.3 root 26543: "machine/sun3/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun3/Makefile" ;;
1.1.1.4 ! root 26544: "machine/sun4/Makefile" ) CONFIG_FILES="$CONFIG_FILES machine/sun4/Makefile" ;;
1.1 root 26545: "host/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
26546: "host/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/posix/Makefile" ;;
26547: "host/bsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/bsd/Makefile" ;;
1.1.1.2 root 26548: "host/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES host/gtk/Makefile" ;;
1.1 root 26549: "bus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/Makefile" ;;
26550: "bus/multibus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/multibus/Makefile" ;;
1.1.1.4 ! root 26551: "bus/sbus/Makefile" ) CONFIG_FILES="$CONFIG_FILES bus/sbus/Makefile" ;;
1.1.1.2 root 26552: "serial/Makefile" ) CONFIG_FILES="$CONFIG_FILES serial/Makefile" ;;
26553: "scsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES scsi/Makefile" ;;
1.1 root 26554: "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
26555: "tmesh/Makefile" ) CONFIG_FILES="$CONFIG_FILES tmesh/Makefile" ;;
1.1.1.3 root 26556: "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
1.1 root 26557: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26558: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26559: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26560: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26561: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26562: { (exit 1); exit 1; }; };;
26563: esac
26564: done
26565:
26566: # If the user did not use the arguments to specify the items to instantiate,
26567: # then the envvar interface is used. Set only those that are not.
26568: # We use the long form for the default assignment because of an extremely
26569: # bizarre bug on SunOS 4.1.3.
26570: if $ac_need_defaults; then
26571: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26572: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26573: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26574: fi
26575:
26576: # Have a temporary directory for convenience. Make it in the build tree
26577: # simply because there is no reason to put it here, and in addition,
26578: # creating and moving files from /tmp can sometimes cause problems.
26579: # Create a temporary directory, and hook for its removal unless debugging.
26580: $debug ||
26581: {
26582: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26583: trap '{ (exit 1); exit 1; }' 1 2 13 15
26584: }
26585:
26586: # Create a (secure) tmp directory for tmp files.
26587:
26588: {
26589: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26590: test -n "$tmp" && test -d "$tmp"
26591: } ||
26592: {
26593: tmp=./confstat$$-$RANDOM
26594: (umask 077 && mkdir $tmp)
26595: } ||
26596: {
26597: echo "$me: cannot create a temporary directory in ." >&2
26598: { (exit 1); exit 1; }
26599: }
26600:
26601: _ACEOF
26602:
26603: cat >>$CONFIG_STATUS <<_ACEOF
26604:
26605: #
26606: # CONFIG_FILES section.
26607: #
26608:
26609: # No need to generate the scripts if there are no CONFIG_FILES.
26610: # This happens for instance when ./config.status config.h
26611: if test -n "\$CONFIG_FILES"; then
26612: # Protect against being on the right side of a sed subst in config.status.
26613: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26614: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26615: s,@SHELL@,$SHELL,;t t
26616: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26617: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26618: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26619: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26620: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26621: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26622: s,@exec_prefix@,$exec_prefix,;t t
26623: s,@prefix@,$prefix,;t t
26624: s,@program_transform_name@,$program_transform_name,;t t
26625: s,@bindir@,$bindir,;t t
26626: s,@sbindir@,$sbindir,;t t
26627: s,@libexecdir@,$libexecdir,;t t
26628: s,@datadir@,$datadir,;t t
26629: s,@sysconfdir@,$sysconfdir,;t t
26630: s,@sharedstatedir@,$sharedstatedir,;t t
26631: s,@localstatedir@,$localstatedir,;t t
26632: s,@libdir@,$libdir,;t t
26633: s,@includedir@,$includedir,;t t
26634: s,@oldincludedir@,$oldincludedir,;t t
26635: s,@infodir@,$infodir,;t t
26636: s,@mandir@,$mandir,;t t
26637: s,@build_alias@,$build_alias,;t t
26638: s,@host_alias@,$host_alias,;t t
26639: s,@target_alias@,$target_alias,;t t
26640: s,@DEFS@,$DEFS,;t t
26641: s,@ECHO_C@,$ECHO_C,;t t
26642: s,@ECHO_N@,$ECHO_N,;t t
26643: s,@ECHO_T@,$ECHO_T,;t t
26644: s,@LIBS@,$LIBS,;t t
26645: s,@build@,$build,;t t
26646: s,@build_cpu@,$build_cpu,;t t
26647: s,@build_vendor@,$build_vendor,;t t
26648: s,@build_os@,$build_os,;t t
26649: s,@host@,$host,;t t
26650: s,@host_cpu@,$host_cpu,;t t
26651: s,@host_vendor@,$host_vendor,;t t
26652: s,@host_os@,$host_os,;t t
26653: s,@target@,$target,;t t
26654: s,@target_cpu@,$target_cpu,;t t
26655: s,@target_vendor@,$target_vendor,;t t
26656: s,@target_os@,$target_os,;t t
26657: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26658: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26659: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26660: s,@CYGPATH_W@,$CYGPATH_W,;t t
26661: s,@PACKAGE@,$PACKAGE,;t t
26662: s,@VERSION@,$VERSION,;t t
26663: s,@ACLOCAL@,$ACLOCAL,;t t
26664: s,@AUTOCONF@,$AUTOCONF,;t t
26665: s,@AUTOMAKE@,$AUTOMAKE,;t t
26666: s,@AUTOHEADER@,$AUTOHEADER,;t t
26667: s,@MAKEINFO@,$MAKEINFO,;t t
26668: s,@AMTAR@,$AMTAR,;t t
26669: s,@install_sh@,$install_sh,;t t
26670: s,@STRIP@,$STRIP,;t t
26671: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26672: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26673: s,@AWK@,$AWK,;t t
26674: s,@SET_MAKE@,$SET_MAKE,;t t
26675: s,@CC@,$CC,;t t
26676: s,@CFLAGS@,$CFLAGS,;t t
26677: s,@LDFLAGS@,$LDFLAGS,;t t
26678: s,@CPPFLAGS@,$CPPFLAGS,;t t
26679: s,@ac_ct_CC@,$ac_ct_CC,;t t
26680: s,@EXEEXT@,$EXEEXT,;t t
26681: s,@OBJEXT@,$OBJEXT,;t t
26682: s,@DEPDIR@,$DEPDIR,;t t
26683: s,@am__include@,$am__include,;t t
26684: s,@am__quote@,$am__quote,;t t
26685: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26686: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26687: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26688: s,@CCDEPMODE@,$CCDEPMODE,;t t
26689: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26690: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26691: s,@CPP@,$CPP,;t t
26692: s,@YACC@,$YACC,;t t
26693: s,@EGREP@,$EGREP,;t t
26694: s,@LIBOBJS@,$LIBOBJS,;t t
26695: s,@PERL@,$PERL,;t t
1.1.1.2 root 26696: s,@X_CFLAGS@,$X_CFLAGS,;t t
26697: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26698: s,@X_LIBS@,$X_LIBS,;t t
26699: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26700: s,@GTK_CONFIG@,$GTK_CONFIG,;t t
26701: s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
26702: s,@GTK_LIBS@,$GTK_LIBS,;t t
26703: s,@TME_FB_XLAT_DST@,$TME_FB_XLAT_DST,;t t
1.1 root 26704: s,@TME_MACHINE_SUBDIRS@,$TME_MACHINE_SUBDIRS,;t t
26705: s,@TME_IC_SUBDIRS@,$TME_IC_SUBDIRS,;t t
26706: s,@TME_ICS@,$TME_ICS,;t t
1.1.1.2 root 26707: s,@TME_SERIAL_SUBDIRS@,$TME_SERIAL_SUBDIRS,;t t
26708: s,@TME_SERIALS@,$TME_SERIALS,;t t
1.1 root 26709: s,@TME_BUS_SUBDIRS@,$TME_BUS_SUBDIRS,;t t
1.1.1.2 root 26710: s,@TME_FB_XLAT_SRC@,$TME_FB_XLAT_SRC,;t t
1.1 root 26711: s,@TME_HOSTS@,$TME_HOSTS,;t t
26712: s,@INCLTDL@,$INCLTDL,;t t
26713: s,@LIBLTDL@,$LIBLTDL,;t t
26714: s,@LN_S@,$LN_S,;t t
26715: s,@ECHO@,$ECHO,;t t
26716: s,@AR@,$AR,;t t
26717: s,@ac_ct_AR@,$ac_ct_AR,;t t
26718: s,@RANLIB@,$RANLIB,;t t
26719: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26720: s,@CXX@,$CXX,;t t
26721: s,@CXXFLAGS@,$CXXFLAGS,;t t
26722: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26723: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26724: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26725: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26726: s,@CXXCPP@,$CXXCPP,;t t
26727: s,@F77@,$F77,;t t
26728: s,@FFLAGS@,$FFLAGS,;t t
26729: s,@ac_ct_F77@,$ac_ct_F77,;t t
26730: s,@LIBTOOL@,$LIBTOOL,;t t
26731: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26732: s,@subdirs@,$subdirs,;t t
26733: s,@TME_PREOPEN@,$TME_PREOPEN,;t t
1.1.1.3 root 26734: s,@CFLAGS_NO_STRICT_ALIASING@,$CFLAGS_NO_STRICT_ALIASING,;t t
1.1 root 26735: CEOF
26736:
26737: _ACEOF
26738:
26739: cat >>$CONFIG_STATUS <<\_ACEOF
26740: # Split the substitutions into bite-sized pieces for seds with
26741: # small command number limits, like on Digital OSF/1 and HP-UX.
26742: ac_max_sed_lines=48
26743: ac_sed_frag=1 # Number of current file.
26744: ac_beg=1 # First line for current file.
26745: ac_end=$ac_max_sed_lines # Line after last line for current file.
26746: ac_more_lines=:
26747: ac_sed_cmds=
26748: while $ac_more_lines; do
26749: if test $ac_beg -gt 1; then
26750: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26751: else
26752: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26753: fi
26754: if test ! -s $tmp/subs.frag; then
26755: ac_more_lines=false
26756: else
26757: # The purpose of the label and of the branching condition is to
26758: # speed up the sed processing (if there are no `@' at all, there
26759: # is no need to browse any of the substitutions).
26760: # These are the two extra sed commands mentioned above.
26761: (echo ':t
26762: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26763: if test -z "$ac_sed_cmds"; then
26764: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26765: else
26766: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26767: fi
26768: ac_sed_frag=`expr $ac_sed_frag + 1`
26769: ac_beg=$ac_end
26770: ac_end=`expr $ac_end + $ac_max_sed_lines`
26771: fi
26772: done
26773: if test -z "$ac_sed_cmds"; then
26774: ac_sed_cmds=cat
26775: fi
26776: fi # test -n "$CONFIG_FILES"
26777:
26778: _ACEOF
26779: cat >>$CONFIG_STATUS <<\_ACEOF
26780: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26781: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26782: case $ac_file in
26783: - | *:- | *:-:* ) # input from stdin
26784: cat >$tmp/stdin
26785: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26786: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26787: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26788: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26789: * ) ac_file_in=$ac_file.in ;;
26790: esac
26791:
26792: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26793: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26794: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26795: X"$ac_file" : 'X\(//\)[^/]' \| \
26796: X"$ac_file" : 'X\(//\)$' \| \
26797: X"$ac_file" : 'X\(/\)' \| \
26798: . : '\(.\)' 2>/dev/null ||
26799: echo X"$ac_file" |
26800: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26801: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26802: /^X\(\/\/\)$/{ s//\1/; q; }
26803: /^X\(\/\).*/{ s//\1/; q; }
26804: s/.*/./; q'`
26805: { if $as_mkdir_p; then
26806: mkdir -p "$ac_dir"
26807: else
26808: as_dir="$ac_dir"
26809: as_dirs=
26810: while test ! -d "$as_dir"; do
26811: as_dirs="$as_dir $as_dirs"
26812: as_dir=`(dirname "$as_dir") 2>/dev/null ||
26813: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814: X"$as_dir" : 'X\(//\)[^/]' \| \
26815: X"$as_dir" : 'X\(//\)$' \| \
26816: X"$as_dir" : 'X\(/\)' \| \
26817: . : '\(.\)' 2>/dev/null ||
26818: echo X"$as_dir" |
26819: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26820: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26821: /^X\(\/\/\)$/{ s//\1/; q; }
26822: /^X\(\/\).*/{ s//\1/; q; }
26823: s/.*/./; q'`
26824: done
26825: test ! -n "$as_dirs" || mkdir $as_dirs
26826: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26827: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26828: { (exit 1); exit 1; }; }; }
26829:
26830: ac_builddir=.
26831:
26832: if test "$ac_dir" != .; then
26833: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26834: # A "../" for each directory in $ac_dir_suffix.
26835: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26836: else
26837: ac_dir_suffix= ac_top_builddir=
26838: fi
26839:
26840: case $srcdir in
26841: .) # No --srcdir option. We are building in place.
26842: ac_srcdir=.
26843: if test -z "$ac_top_builddir"; then
26844: ac_top_srcdir=.
26845: else
26846: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26847: fi ;;
26848: [\\/]* | ?:[\\/]* ) # Absolute path.
26849: ac_srcdir=$srcdir$ac_dir_suffix;
26850: ac_top_srcdir=$srcdir ;;
26851: *) # Relative path.
26852: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26853: ac_top_srcdir=$ac_top_builddir$srcdir ;;
26854: esac
26855: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
26856: # absolute.
26857: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
26858: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
26859: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
26860: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
26861:
26862:
26863: case $INSTALL in
26864: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26865: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26866: esac
26867:
26868: if test x"$ac_file" != x-; then
26869: { echo "$as_me:$LINENO: creating $ac_file" >&5
26870: echo "$as_me: creating $ac_file" >&6;}
26871: rm -f "$ac_file"
26872: fi
26873: # Let's still pretend it is `configure' which instantiates (i.e., don't
26874: # use $as_me), people would be surprised to read:
26875: # /* config.h. Generated by config.status. */
26876: if test x"$ac_file" = x-; then
26877: configure_input=
26878: else
26879: configure_input="$ac_file. "
26880: fi
26881: configure_input=$configure_input"Generated from `echo $ac_file_in |
26882: sed 's,.*/,,'` by configure."
26883:
26884: # First look for the input files in the build tree, otherwise in the
26885: # src tree.
26886: ac_file_inputs=`IFS=:
26887: for f in $ac_file_in; do
26888: case $f in
26889: -) echo $tmp/stdin ;;
26890: [\\/$]*)
26891: # Absolute (can't be DOS-style, as IFS=:)
26892: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26893: echo "$as_me: error: cannot find input file: $f" >&2;}
26894: { (exit 1); exit 1; }; }
26895: echo $f;;
26896: *) # Relative
26897: if test -f "$f"; then
26898: # Build tree
26899: echo $f
26900: elif test -f "$srcdir/$f"; then
26901: # Source tree
26902: echo $srcdir/$f
26903: else
26904: # /dev/null tree
26905: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26906: echo "$as_me: error: cannot find input file: $f" >&2;}
26907: { (exit 1); exit 1; }; }
26908: fi;;
26909: esac
26910: done` || { (exit 1); exit 1; }
26911: _ACEOF
26912: cat >>$CONFIG_STATUS <<_ACEOF
26913: sed "$ac_vpsub
26914: $extrasub
26915: _ACEOF
26916: cat >>$CONFIG_STATUS <<\_ACEOF
26917: :t
26918: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26919: s,@configure_input@,$configure_input,;t t
26920: s,@srcdir@,$ac_srcdir,;t t
26921: s,@abs_srcdir@,$ac_abs_srcdir,;t t
26922: s,@top_srcdir@,$ac_top_srcdir,;t t
26923: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26924: s,@builddir@,$ac_builddir,;t t
26925: s,@abs_builddir@,$ac_abs_builddir,;t t
26926: s,@top_builddir@,$ac_top_builddir,;t t
26927: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26928: s,@INSTALL@,$ac_INSTALL,;t t
26929: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26930: rm -f $tmp/stdin
26931: if test x"$ac_file" != x-; then
26932: mv $tmp/out $ac_file
26933: else
26934: cat $tmp/out
26935: rm -f $tmp/out
26936: fi
26937:
26938: done
26939: _ACEOF
26940: cat >>$CONFIG_STATUS <<\_ACEOF
26941:
26942: #
26943: # CONFIG_HEADER section.
26944: #
26945:
26946: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26947: # NAME is the cpp macro being defined and VALUE is the value it is being given.
26948: #
26949: # ac_d sets the value in "#define NAME VALUE" lines.
26950: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26951: ac_dB='[ ].*$,\1#\2'
26952: ac_dC=' '
26953: ac_dD=',;t'
26954: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26955: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26956: ac_uB='$,\1#\2define\3'
26957: ac_uC=' '
26958: ac_uD=',;t'
26959:
26960: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26961: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26962: case $ac_file in
26963: - | *:- | *:-:* ) # input from stdin
26964: cat >$tmp/stdin
26965: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26966: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26967: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26968: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26969: * ) ac_file_in=$ac_file.in ;;
26970: esac
26971:
26972: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26973: echo "$as_me: creating $ac_file" >&6;}
26974:
26975: # First look for the input files in the build tree, otherwise in the
26976: # src tree.
26977: ac_file_inputs=`IFS=:
26978: for f in $ac_file_in; do
26979: case $f in
26980: -) echo $tmp/stdin ;;
26981: [\\/$]*)
26982: # Absolute (can't be DOS-style, as IFS=:)
26983: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26984: echo "$as_me: error: cannot find input file: $f" >&2;}
26985: { (exit 1); exit 1; }; }
26986: echo $f;;
26987: *) # Relative
26988: if test -f "$f"; then
26989: # Build tree
26990: echo $f
26991: elif test -f "$srcdir/$f"; then
26992: # Source tree
26993: echo $srcdir/$f
26994: else
26995: # /dev/null tree
26996: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26997: echo "$as_me: error: cannot find input file: $f" >&2;}
26998: { (exit 1); exit 1; }; }
26999: fi;;
27000: esac
27001: done` || { (exit 1); exit 1; }
27002: # Remove the trailing spaces.
27003: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27004:
27005: _ACEOF
27006:
27007: # Transform confdefs.h into two sed scripts, `conftest.defines' and
27008: # `conftest.undefs', that substitutes the proper values into
27009: # config.h.in to produce config.h. The first handles `#define'
27010: # templates, and the second `#undef' templates.
27011: # And first: Protect against being on the right side of a sed subst in
27012: # config.status. Protect against being in an unquoted here document
27013: # in config.status.
27014: rm -f conftest.defines conftest.undefs
27015: # Using a here document instead of a string reduces the quoting nightmare.
27016: # Putting comments in sed scripts is not portable.
27017: #
27018: # `end' is used to avoid that the second main sed command (meant for
27019: # 0-ary CPP macros) applies to n-ary macro definitions.
27020: # See the Autoconf documentation for `clear'.
27021: cat >confdef2sed.sed <<\_ACEOF
27022: s/[\\&,]/\\&/g
27023: s,[\\$`],\\&,g
27024: t clear
27025: : clear
27026: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27027: t end
27028: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27029: : end
27030: _ACEOF
27031: # If some macros were called several times there might be several times
27032: # the same #defines, which is useless. Nevertheless, we may not want to
27033: # sort them, since we want the *last* AC-DEFINE to be honored.
27034: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27035: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27036: rm -f confdef2sed.sed
27037:
27038: # This sed command replaces #undef with comments. This is necessary, for
27039: # example, in the case of _POSIX_SOURCE, which is predefined and required
27040: # on some systems where configure will not decide to define it.
27041: cat >>conftest.undefs <<\_ACEOF
27042: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27043: _ACEOF
27044:
27045: # Break up conftest.defines because some shells have a limit on the size
27046: # of here documents, and old seds have small limits too (100 cmds).
27047: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27048: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27049: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27050: echo ' :' >>$CONFIG_STATUS
27051: rm -f conftest.tail
27052: while grep . conftest.defines >/dev/null
27053: do
27054: # Write a limited-size here document to $tmp/defines.sed.
27055: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27056: # Speed up: don't consider the non `#define' lines.
27057: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27058: # Work around the forget-to-reset-the-flag bug.
27059: echo 't clr' >>$CONFIG_STATUS
27060: echo ': clr' >>$CONFIG_STATUS
27061: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27062: echo 'CEOF
27063: sed -f $tmp/defines.sed $tmp/in >$tmp/out
27064: rm -f $tmp/in
27065: mv $tmp/out $tmp/in
27066: ' >>$CONFIG_STATUS
27067: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27068: rm -f conftest.defines
27069: mv conftest.tail conftest.defines
27070: done
27071: rm -f conftest.defines
27072: echo ' fi # grep' >>$CONFIG_STATUS
27073: echo >>$CONFIG_STATUS
27074:
27075: # Break up conftest.undefs because some shells have a limit on the size
27076: # of here documents, and old seds have small limits too (100 cmds).
27077: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27078: rm -f conftest.tail
27079: while grep . conftest.undefs >/dev/null
27080: do
27081: # Write a limited-size here document to $tmp/undefs.sed.
27082: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27083: # Speed up: don't consider the non `#undef'
27084: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27085: # Work around the forget-to-reset-the-flag bug.
27086: echo 't clr' >>$CONFIG_STATUS
27087: echo ': clr' >>$CONFIG_STATUS
27088: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27089: echo 'CEOF
27090: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27091: rm -f $tmp/in
27092: mv $tmp/out $tmp/in
27093: ' >>$CONFIG_STATUS
27094: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27095: rm -f conftest.undefs
27096: mv conftest.tail conftest.undefs
27097: done
27098: rm -f conftest.undefs
27099:
27100: cat >>$CONFIG_STATUS <<\_ACEOF
27101: # Let's still pretend it is `configure' which instantiates (i.e., don't
27102: # use $as_me), people would be surprised to read:
27103: # /* config.h. Generated by config.status. */
27104: if test x"$ac_file" = x-; then
27105: echo "/* Generated by configure. */" >$tmp/config.h
27106: else
27107: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27108: fi
27109: cat $tmp/in >>$tmp/config.h
27110: rm -f $tmp/in
27111: if test x"$ac_file" != x-; then
27112: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27113: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27114: echo "$as_me: $ac_file is unchanged" >&6;}
27115: else
27116: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27117: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27118: X"$ac_file" : 'X\(//\)[^/]' \| \
27119: X"$ac_file" : 'X\(//\)$' \| \
27120: X"$ac_file" : 'X\(/\)' \| \
27121: . : '\(.\)' 2>/dev/null ||
27122: echo X"$ac_file" |
27123: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27124: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27125: /^X\(\/\/\)$/{ s//\1/; q; }
27126: /^X\(\/\).*/{ s//\1/; q; }
27127: s/.*/./; q'`
27128: { if $as_mkdir_p; then
27129: mkdir -p "$ac_dir"
27130: else
27131: as_dir="$ac_dir"
27132: as_dirs=
27133: while test ! -d "$as_dir"; do
27134: as_dirs="$as_dir $as_dirs"
27135: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27136: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27137: X"$as_dir" : 'X\(//\)[^/]' \| \
27138: X"$as_dir" : 'X\(//\)$' \| \
27139: X"$as_dir" : 'X\(/\)' \| \
27140: . : '\(.\)' 2>/dev/null ||
27141: echo X"$as_dir" |
27142: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27143: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27144: /^X\(\/\/\)$/{ s//\1/; q; }
27145: /^X\(\/\).*/{ s//\1/; q; }
27146: s/.*/./; q'`
27147: done
27148: test ! -n "$as_dirs" || mkdir $as_dirs
27149: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27150: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27151: { (exit 1); exit 1; }; }; }
27152:
27153: rm -f $ac_file
27154: mv $tmp/config.h $ac_file
27155: fi
27156: else
27157: cat $tmp/config.h
27158: rm -f $tmp/config.h
27159: fi
27160: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
27161: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27162: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27163: X$ac_file : 'X\(//\)[^/]' \| \
27164: X$ac_file : 'X\(//\)$' \| \
27165: X$ac_file : 'X\(/\)' \| \
27166: . : '\(.\)' 2>/dev/null ||
27167: echo X$ac_file |
27168: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27169: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27170: /^X\(\/\/\)$/{ s//\1/; q; }
27171: /^X\(\/\).*/{ s//\1/; q; }
27172: s/.*/./; q'`/stamp-h$_am_stamp_count
27173: done
27174: _ACEOF
27175: cat >>$CONFIG_STATUS <<\_ACEOF
27176:
27177: #
27178: # CONFIG_COMMANDS section.
27179: #
27180: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27181: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27182: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27183: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27184: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27185: X"$ac_dest" : 'X\(//\)[^/]' \| \
27186: X"$ac_dest" : 'X\(//\)$' \| \
27187: X"$ac_dest" : 'X\(/\)' \| \
27188: . : '\(.\)' 2>/dev/null ||
27189: echo X"$ac_dest" |
27190: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27191: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27192: /^X\(\/\/\)$/{ s//\1/; q; }
27193: /^X\(\/\).*/{ s//\1/; q; }
27194: s/.*/./; q'`
27195: ac_builddir=.
27196:
27197: if test "$ac_dir" != .; then
27198: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27199: # A "../" for each directory in $ac_dir_suffix.
27200: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27201: else
27202: ac_dir_suffix= ac_top_builddir=
27203: fi
27204:
27205: case $srcdir in
27206: .) # No --srcdir option. We are building in place.
27207: ac_srcdir=.
27208: if test -z "$ac_top_builddir"; then
27209: ac_top_srcdir=.
27210: else
27211: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27212: fi ;;
27213: [\\/]* | ?:[\\/]* ) # Absolute path.
27214: ac_srcdir=$srcdir$ac_dir_suffix;
27215: ac_top_srcdir=$srcdir ;;
27216: *) # Relative path.
27217: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27218: ac_top_srcdir=$ac_top_builddir$srcdir ;;
27219: esac
27220: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
27221: # absolute.
27222: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
27223: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
27224: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
27225: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
27226:
27227:
27228: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27229: echo "$as_me: executing $ac_dest commands" >&6;}
27230: case $ac_dest in
27231: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27232: # Strip MF so we end up with the name of the file.
27233: mf=`echo "$mf" | sed -e 's/:.*$//'`
27234: # Check whether this is an Automake generated Makefile or not.
27235: # We used to match only the files named `Makefile.in', but
27236: # some people rename them; so instead we look at the file content.
27237: # Grep'ing the first line is not enough: some people post-process
27238: # each Makefile.in and add a new line on top of each file to say so.
27239: # So let's grep whole file.
27240: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27241: dirpart=`(dirname "$mf") 2>/dev/null ||
27242: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27243: X"$mf" : 'X\(//\)[^/]' \| \
27244: X"$mf" : 'X\(//\)$' \| \
27245: X"$mf" : 'X\(/\)' \| \
27246: . : '\(.\)' 2>/dev/null ||
27247: echo X"$mf" |
27248: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27249: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27250: /^X\(\/\/\)$/{ s//\1/; q; }
27251: /^X\(\/\).*/{ s//\1/; q; }
27252: s/.*/./; q'`
27253: else
27254: continue
27255: fi
27256: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
27257: # Extract the definition of DEP_FILES from the Makefile without
27258: # running `make'.
27259: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
27260: test -z "$DEPDIR" && continue
27261: # When using ansi2knr, U may be empty or an underscore; expand it
27262: U=`sed -n -e '/^U = / s///p' < "$mf"`
27263: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
27264: # We invoke sed twice because it is the simplest approach to
27265: # changing $(DEPDIR) to its actual value in the expansion.
27266: for file in `sed -n -e '
27267: /^DEP_FILES = .*\\\\$/ {
27268: s/^DEP_FILES = //
27269: :loop
27270: s/\\\\$//
27271: p
27272: n
27273: /\\\\$/ b loop
27274: p
27275: }
27276: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
27277: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27278: # Make sure the directory exists.
27279: test -f "$dirpart/$file" && continue
27280: fdir=`(dirname "$file") 2>/dev/null ||
27281: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27282: X"$file" : 'X\(//\)[^/]' \| \
27283: X"$file" : 'X\(//\)$' \| \
27284: X"$file" : 'X\(/\)' \| \
27285: . : '\(.\)' 2>/dev/null ||
27286: echo X"$file" |
27287: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27288: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27289: /^X\(\/\/\)$/{ s//\1/; q; }
27290: /^X\(\/\).*/{ s//\1/; q; }
27291: s/.*/./; q'`
27292: { if $as_mkdir_p; then
27293: mkdir -p $dirpart/$fdir
27294: else
27295: as_dir=$dirpart/$fdir
27296: as_dirs=
27297: while test ! -d "$as_dir"; do
27298: as_dirs="$as_dir $as_dirs"
27299: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27300: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27301: X"$as_dir" : 'X\(//\)[^/]' \| \
27302: X"$as_dir" : 'X\(//\)$' \| \
27303: X"$as_dir" : 'X\(/\)' \| \
27304: . : '\(.\)' 2>/dev/null ||
27305: echo X"$as_dir" |
27306: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27307: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27308: /^X\(\/\/\)$/{ s//\1/; q; }
27309: /^X\(\/\).*/{ s//\1/; q; }
27310: s/.*/./; q'`
27311: done
27312: test ! -n "$as_dirs" || mkdir $as_dirs
27313: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27314: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27315: { (exit 1); exit 1; }; }; }
27316:
27317: # echo "creating $dirpart/$file"
27318: echo '# dummy' > "$dirpart/$file"
27319: done
27320: done
27321: ;;
27322: default-1 )
27323:
27324: ## Generate our configure-time sources in two
27325: ## cases:
27326: ## 1. `config.status' is run either explicitly, or via configure.
27327: ## Esp. not when it is run in `Makefile' to generate makefiles and
27328: ## config.h
27329: ## 2. CONFIG_OTHER is set explicitly
27330: ##
27331: ## Case 1 is difficult. We know that `automake' sets one of
27332: ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
27333: ## only when AM_CONFIG_HEADER is set, however.
27334:
27335: case "x$CONFIG_OTHER" in
27336: *tmeconfig.h) gen_tmeconfig_h=yes
27337: ;;
27338: esac
27339: if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
27340: # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
27341: if test "x${CONFIG_OTHER}" = x; then
27342: gen_tmeconfig_h=yes
27343: fi
27344: fi
27345:
27346: ## If we're generating tmeconfig.h:
27347: if test "x$gen_tmeconfig_h" = xyes; then
27348: outfile=tmeconfig.h
27349: echo "$as_me: creating $outfile"
27350: cat <<TMEEOF > ${outfile}-tmp
27351: /* tmeconfig.h
27352: *
27353: * This is an automatically generated file - please modify 'configure.in'.
27354: */
27355:
27356: #ifndef _TMECONFIG_H
27357: #define _TMECONFIG_H
27358:
27359: TMEEOF
1.1.1.2 root 27360: (for word in HAVE_ TIME_ PROTO_ ALIGNOF_ SIZEOF_ WORDS_BIGENDIAN; do \
1.1 root 27361: grep $word config.h | sed 's/#define[ ]\{1,\}/&_TME_/' ; \
27362: done) | sort | uniq >> ${outfile}-tmp
1.1.1.3 root 27363: grep FLOAT_FORMAT config.h | \
27364: sed 's/#define[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)[ ]\{1,\}\([A-Za-z0-9_]\{1,\}\)/#define TME_\1 TME_FLOAT_FORMAT_\2/' >> ${outfile}-tmp
1.1 root 27365: echo '#define TME_RELEASE_MAJOR (' \
27366: `echo $VERSION | sed -e 's,^\([0-9][0-9]*\)\.[0-9][0-9]*$,\1,'` ')' >> ${outfile}-tmp
27367: echo '#define TME_RELEASE_MINOR (' \
27368: `echo $VERSION | sed -e 's,^[0-9][0-9]*\.\([0-9][0-9]*\)$,\1,'` ')' >> ${outfile}-tmp
27369: echo '#define TME_BUILD_TARGET "'$target'"' >> ${outfile}-tmp
1.1.1.2 root 27370: if test $ac_cv_sizeof_long = 8; then
27371: echo '#define TME_HAVE_INT64_T' >> ${outfile}-tmp
27372: echo 'typedef signed long tme_int64_t;' >> ${outfile}-tmp
27373: echo 'typedef unsigned long tme_uint64_t;' >> ${outfile}-tmp
27374: fi
1.1 root 27375: if test $ac_cv_sizeof_int = 4; then
27376: echo 'typedef signed int tme_int32_t;' >> ${outfile}-tmp
27377: echo 'typedef unsigned int tme_uint32_t;' >> ${outfile}-tmp
27378: elif test $ac_cv_sizeof_long = 4; then
27379: echo 'typedef signed long tme_int32_t;' >> ${outfile}-tmp
27380: echo 'typedef unsigned long tme_uint32_t;' >> ${outfile}-tmp
27381: fi
27382: if test $ac_cv_sizeof_int = 2; then
27383: echo 'typedef signed int tme_int16_t;' >> ${outfile}-tmp
27384: echo 'typedef unsigned int tme_uint16_t;' >> ${outfile}-tmp
27385: elif test $ac_cv_sizeof_short = 2; then
27386: echo 'typedef signed short tme_int16_t;' >> ${outfile}-tmp
27387: echo 'typedef unsigned short tme_uint16_t;' >> ${outfile}-tmp
27388: fi
27389: echo 'typedef signed char tme_int8_t;' >> ${outfile}-tmp
27390: echo 'typedef unsigned char tme_uint8_t;' >> ${outfile}-tmp
27391: cat <<TMEEOF >> ${outfile}-tmp
27392:
27393: /* features that aren't currently controlled by a configure option: */
27394: #define TME_THREADS_SJLJ
27395:
27396: #endif /* !_TMECONFIG_H */
27397: TMEEOF
27398: if cmp -s ${outfile}-tmp $outfile; then
27399: echo "$as_me: $outfile is unchanged"
27400: rm -f ${outfile}-tmp
27401: else
27402: mv ${outfile}-tmp ${outfile}
27403: fi
27404: fi
27405: ;;
27406: esac
27407: done
27408: _ACEOF
27409:
27410: cat >>$CONFIG_STATUS <<\_ACEOF
27411:
27412: { (exit 0); exit 0; }
27413: _ACEOF
27414: chmod +x $CONFIG_STATUS
27415: ac_clean_files=$ac_clean_files_save
27416:
27417:
27418: # configure is writing to config.log, and then calls config.status.
27419: # config.status does its own redirection, appending to config.log.
27420: # Unfortunately, on DOS this fails, as config.log is still kept open
27421: # by configure, so config.status won't be able to write to it; its
27422: # output is simply discarded. So we exec the FD to /dev/null,
27423: # effectively closing config.log, so it can be properly (re)opened and
27424: # appended to by config.status. When coming back to configure, we
27425: # need to make the FD available again.
27426: if test "$no_create" != yes; then
27427: ac_cs_success=:
27428: ac_config_status_args=
27429: test "$silent" = yes &&
27430: ac_config_status_args="$ac_config_status_args --quiet"
27431: exec 5>/dev/null
27432: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27433: exec 5>>config.log
27434: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27435: # would make configure fail if this is the last instruction.
27436: $ac_cs_success || { (exit 1); exit 1; }
27437: fi
27438:
27439: #
27440: # CONFIG_SUBDIRS section.
27441: #
27442: if test "$no_recursion" != yes; then
27443:
27444: # Remove --cache-file and --srcdir arguments so they do not pile up.
27445: ac_sub_configure_args=
27446: ac_prev=
27447: for ac_arg in $ac_configure_args; do
27448: if test -n "$ac_prev"; then
27449: ac_prev=
27450: continue
27451: fi
27452: case $ac_arg in
27453: -cache-file | --cache-file | --cache-fil | --cache-fi \
27454: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27455: ac_prev=cache_file ;;
27456: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27457: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27458: | --c=*)
27459: ;;
27460: --config-cache | -C)
27461: ;;
27462: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27463: ac_prev=srcdir ;;
27464: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27465: ;;
27466: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27467: ac_prev=prefix ;;
27468: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27469: ;;
27470: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27471: esac
27472: done
27473:
27474: # Always prepend --prefix to ensure using the same prefix
27475: # in subdir configurations.
27476: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27477:
27478: ac_popdir=`pwd`
27479: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27480:
27481: # Do not complain, so a configure script can configure whichever
27482: # parts of a large source tree are present.
27483: test -d $srcdir/$ac_dir || continue
27484:
27485: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27486: echo "$as_me: configuring in $ac_dir" >&6;}
27487: { if $as_mkdir_p; then
27488: mkdir -p "$ac_dir"
27489: else
27490: as_dir="$ac_dir"
27491: as_dirs=
27492: while test ! -d "$as_dir"; do
27493: as_dirs="$as_dir $as_dirs"
27494: as_dir=`(dirname "$as_dir") 2>/dev/null ||
27495: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27496: X"$as_dir" : 'X\(//\)[^/]' \| \
27497: X"$as_dir" : 'X\(//\)$' \| \
27498: X"$as_dir" : 'X\(/\)' \| \
27499: . : '\(.\)' 2>/dev/null ||
27500: echo X"$as_dir" |
27501: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27502: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27503: /^X\(\/\/\)$/{ s//\1/; q; }
27504: /^X\(\/\).*/{ s//\1/; q; }
27505: s/.*/./; q'`
27506: done
27507: test ! -n "$as_dirs" || mkdir $as_dirs
27508: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27509: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27510: { (exit 1); exit 1; }; }; }
27511:
27512: ac_builddir=.
27513:
27514: if test "$ac_dir" != .; then
27515: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27516: # A "../" for each directory in $ac_dir_suffix.
27517: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27518: else
27519: ac_dir_suffix= ac_top_builddir=
27520: fi
27521:
27522: case $srcdir in
27523: .) # No --srcdir option. We are building in place.
27524: ac_srcdir=.
27525: if test -z "$ac_top_builddir"; then
27526: ac_top_srcdir=.
27527: else
27528: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27529: fi ;;
27530: [\\/]* | ?:[\\/]* ) # Absolute path.
27531: ac_srcdir=$srcdir$ac_dir_suffix;
27532: ac_top_srcdir=$srcdir ;;
27533: *) # Relative path.
27534: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27535: ac_top_srcdir=$ac_top_builddir$srcdir ;;
27536: esac
27537: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
27538: # absolute.
27539: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
27540: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
27541: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
27542: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
27543:
27544:
27545: cd $ac_dir
27546:
27547: # Check for guested configure; otherwise get Cygnus style configure.
27548: if test -f $ac_srcdir/configure.gnu; then
27549: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27550: elif test -f $ac_srcdir/configure; then
27551: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27552: elif test -f $ac_srcdir/configure.in; then
27553: ac_sub_configure=$ac_configure
27554: else
27555: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27556: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27557: ac_sub_configure=
27558: fi
27559:
27560: # The recursion is here.
27561: if test -n "$ac_sub_configure"; then
27562: # Make the cache file name correct relative to the subdirectory.
27563: case $cache_file in
27564: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27565: *) # Relative path.
27566: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
27567: esac
27568:
27569: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27570: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27571: # The eval makes quoting arguments work.
27572: eval $ac_sub_configure $ac_sub_configure_args \
27573: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27574: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27575: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27576: { (exit 1); exit 1; }; }
27577: fi
27578:
27579: cd $ac_popdir
27580: done
27581: fi
27582:
27583:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.