Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/SerialImp.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WINDOWS_JAVA_INCLUDE JAVAINCLUDEDIR JAVAINCLUDE JAVANATINC CLASSPATH TOP TARGETLIB LDFLAG THREAD_FLAG OS_NAME OS_ARCH OS_VERSION JAVA_VERSION JAVA_VENDOR JAVA_HOME JAVA_LIBRARY_PATH JAVA_CLASS_PATH JAVA_CLASS_VERSION JAVAH_FIX JPATH JHOME RXTX_PATH JAVAH JAVAC JAR JAVADOC EXTENSION LIBTOOL_FIX LINK COMPILE OBJECT_EXTENSION LIB_EXTENSION GLIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT XCODE_SELECT LIBOBJS LTLIBOBJS'
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
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022 cat <<\_ACEOF
1023
1024 Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=no]
1029 --enable-shared[=PKGS]
1030 build shared libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --disable-dependency-tracking speeds up one-time build
1035 --enable-dependency-tracking do not reject slow dependency extractors
1036 --enable-maintainer-mode enable make rules and dependencies not useful
1037 (and sometimes confusing) to the casual installer
1038 --enable-PRINTER PRINTER support (experimental) default=yes
1039 --disable-lockfiles disable lock files (experimental) default=no
1040 --enable-liblock=x enable liblock default=no
1041 --enable-lockfile_server Enable interaction with a lock file server default=no
1042 --enable-DEBUG Print debugging info from SerialImp.c default=no
1043 --disable-universallib Disable building of universal libraries (MacOS X) default=no
1044
1045 Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
1053
1054 Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CPP C preprocessor
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086 ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142 esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd $ac_popdir
1160 done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165 cat <<\_ACEOF
1166
1167 Copyright (C) 2003 Free Software Foundation, Inc.
1168 This configure script is free software; the Free Software Foundation
1169 gives unlimited permission to copy, distribute and modify it.
1170 _ACEOF
1171 exit 0
1172 fi
1173 exec 5>config.log
1174 cat >&5 <<_ACEOF
1175 This file contains any messages produced by compilers while
1176 running configure, to aid debugging if configure makes a mistake.
1177
1178 It was created by $as_me, which was
1179 generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183 _ACEOF
1184 {
1185 cat <<_ASUNAME
1186 ## --------- ##
1187 ## Platform. ##
1188 ## --------- ##
1189
1190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207 _ASUNAME
1208
1209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210 for as_dir in $PATH
1211 do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215 done
1216
1217 } >&5
1218
1219 cat >&5 <<_ACEOF
1220
1221
1222 ## ----------- ##
1223 ## Core tests. ##
1224 ## ----------- ##
1225
1226 _ACEOF
1227
1228
1229 # Keep a trace of the command line.
1230 # Strip out --no-create and --no-recursion so they do not pile up.
1231 # Strip out --silent because we don't want to record it for future runs.
1232 # Also quote any args containing shell meta-characters.
1233 # Make two passes to allow for proper duplicate-argument suppression.
1234 ac_configure_args=
1235 ac_configure_args0=
1236 ac_configure_args1=
1237 ac_sep=
1238 ac_must_keep_next=false
1239 for ac_pass in 1 2
1240 do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276 done
1277 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280 # When interrupted or exit'd, cleanup temporary files, and complete
1281 # config.log. We remove comments because anyway the quotes in there
1282 # would cause problems or look ugly.
1283 # WARNING: Be sure not to use single quotes in there, as some shells,
1284 # such as our DU 5.0 friend, will then `close' the trap.
1285 trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291 ## ---------------- ##
1292 ## Cache variables. ##
1293 ## ---------------- ##
1294 _ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297 {
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310 }
1311 echo
1312
1313 cat <<\_ASBOX
1314 ## ----------------- ##
1315 ## Output variables. ##
1316 ## ----------------- ##
1317 _ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328 ## ------------- ##
1329 ## Output files. ##
1330 ## ------------- ##
1331 _ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343 ## ----------- ##
1344 ## confdefs.h. ##
1345 ## ----------- ##
1346 _ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359 for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361 done
1362 ac_signal=0
1363
1364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1365 rm -rf conftest* confdefs.h
1366 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367 echo >confdefs.h
1368
1369 # Predefined preprocessor variables.
1370
1371 cat >>confdefs.h <<_ACEOF
1372 #define PACKAGE_NAME "$PACKAGE_NAME"
1373 _ACEOF
1374
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_STRING "$PACKAGE_STRING"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393 _ACEOF
1394
1395
1396 # Let the site file select an alternate cache file if it wants to.
1397 # Prefer explicitly selected file to automatically selected ones.
1398 if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404 fi
1405 for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408 echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412 done
1413
1414 if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419 echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425 else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427 echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429 fi
1430
1431 # Check that the precious variables saved in the cache have kept the same
1432 # value.
1433 ac_cache_corrupted=false
1434 for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455 echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457 echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473 done
1474 if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480 fi
1481
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 ac_config_headers="$ac_config_headers config.h"
1507
1508 ac_aux_dir=
1509 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1510 if test -f $ac_dir/install-sh; then
1511 ac_aux_dir=$ac_dir
1512 ac_install_sh="$ac_aux_dir/install-sh -c"
1513 break
1514 elif test -f $ac_dir/install.sh; then
1515 ac_aux_dir=$ac_dir
1516 ac_install_sh="$ac_aux_dir/install.sh -c"
1517 break
1518 elif test -f $ac_dir/shtool; then
1519 ac_aux_dir=$ac_dir
1520 ac_install_sh="$ac_aux_dir/shtool install -c"
1521 break
1522 fi
1523 done
1524 if test -z "$ac_aux_dir"; then
1525 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1526 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1527 { (exit 1); exit 1; }; }
1528 fi
1529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1531 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
1533 # Make sure we can run config.sub.
1534 $ac_config_sub sun4 >/dev/null 2>&1 ||
1535 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1536 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1537 { (exit 1); exit 1; }; }
1538
1539 echo "$as_me:$LINENO: checking build system type" >&5
1540 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1541 if test "${ac_cv_build+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 ac_cv_build_alias=$build_alias
1545 test -z "$ac_cv_build_alias" &&
1546 ac_cv_build_alias=`$ac_config_guess`
1547 test -z "$ac_cv_build_alias" &&
1548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1549 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1550 { (exit 1); exit 1; }; }
1551 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1555
1556 fi
1557 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1558 echo "${ECHO_T}$ac_cv_build" >&6
1559 build=$ac_cv_build
1560 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
1564
1565 echo "$as_me:$LINENO: checking host system type" >&5
1566 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1567 if test "${ac_cv_host+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 ac_cv_host_alias=$host_alias
1571 test -z "$ac_cv_host_alias" &&
1572 ac_cv_host_alias=$ac_cv_build_alias
1573 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1580 echo "${ECHO_T}$ac_cv_host" >&6
1581 host=$ac_cv_host
1582 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587 echo "$as_me:$LINENO: checking target system type" >&5
1588 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1589 if test "${ac_cv_target+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 ac_cv_target_alias=$target_alias
1593 test "x$ac_cv_target_alias" = "x" &&
1594 ac_cv_target_alias=$ac_cv_host_alias
1595 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1596 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1598 { (exit 1); exit 1; }; }
1599
1600 fi
1601 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1602 echo "${ECHO_T}$ac_cv_target" >&6
1603 target=$ac_cv_target
1604 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609 # The aliases save the names the user supplied, while $host etc.
1610 # will get canonicalized.
1611 test -n "$target_alias" &&
1612 test "$program_prefix$program_suffix$program_transform_name" = \
1613 NONENONEs,x,x, &&
1614 program_prefix=${target_alias}-
1615 { echo "$as_me:$LINENO: WARNING: Trying libtool. If the following fails install libtool" >&5
1616 echo "$as_me: WARNING: Trying libtool. If the following fails install libtool" >&2;}
1617 ac_ext=c
1618 ac_cpp='$CPP $CPPFLAGS'
1619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 else
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 break 2
1643 fi
1644 done
1645 done
1646
1647 fi
1648 fi
1649 CC=$ac_cv_prog_CC
1650 if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652 echo "${ECHO_T}$CC" >&6
1653 else
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1656 fi
1657
1658 fi
1659 if test -z "$ac_cv_prog_CC"; then
1660 ac_ct_CC=$CC
1661 # Extract the first word of "gcc", so it can be a program name with args.
1662 set dummy gcc; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 else
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 for as_dir in $PATH
1673 do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_CC="gcc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682 done
1683 done
1684
1685 fi
1686 fi
1687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1688 if test -n "$ac_ct_CC"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1690 echo "${ECHO_T}$ac_ct_CC" >&6
1691 else
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 CC=$ac_ct_CC
1697 else
1698 CC="$ac_cv_prog_CC"
1699 fi
1700
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1704 set dummy ${ac_tool_prefix}cc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC="$CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720 ac_cv_prog_CC="${ac_tool_prefix}cc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 break 2
1723 fi
1724 done
1725 done
1726
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$ac_cv_prog_CC"; then
1740 ac_ct_CC=$CC
1741 # Extract the first word of "cc", so it can be a program name with args.
1742 set dummy cc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748 if test -n "$ac_ct_CC"; then
1749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_ac_ct_CC="cc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1761 fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768 if test -n "$ac_ct_CC"; then
1769 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1770 echo "${ECHO_T}$ac_ct_CC" >&6
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776 CC=$ac_ct_CC
1777 else
1778 CC="$ac_cv_prog_CC"
1779 fi
1780
1781 fi
1782 if test -z "$CC"; then
1783 # Extract the first word of "cc", so it can be a program name with args.
1784 set dummy cc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 if test -n "$CC"; then
1791 ac_cv_prog_CC="$CC" # Let the user override the test.
1792 else
1793 ac_prog_rejected=no
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797 IFS=$as_save_IFS
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1802 ac_prog_rejected=yes
1803 continue
1804 fi
1805 ac_cv_prog_CC="cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1808 fi
1809 done
1810 done
1811
1812 if test $ac_prog_rejected = yes; then
1813 # We found a bogon in the path, so make sure we never use it.
1814 set dummy $ac_cv_prog_CC
1815 shift
1816 if test $# != 0; then
1817 # We chose a different compiler from the bogus one.
1818 # However, it has the same basename, so the bogon will be chosen
1819 # first if we set CC to just the basename; use the full file name.
1820 shift
1821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1822 fi
1823 fi
1824 fi
1825 fi
1826 CC=$ac_cv_prog_CC
1827 if test -n "$CC"; then
1828 echo "$as_me:$LINENO: result: $CC" >&5
1829 echo "${ECHO_T}$CC" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1833 fi
1834
1835 fi
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 for ac_prog in cl
1839 do
1840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1870 else
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 test -n "$CC" && break
1876 done
1877 fi
1878 if test -z "$CC"; then
1879 ac_ct_CC=$CC
1880 for ac_prog in cl
1881 do
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$ac_ct_CC"; then
1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_ac_ct_CC="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1902 fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 test -n "$ac_ct_CC" && break
1918 done
1919
1920 CC=$ac_ct_CC
1921 fi
1922
1923 fi
1924
1925
1926 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1927 See \`config.log' for more details." >&5
1928 echo "$as_me: error: no acceptable C compiler found in \$PATH
1929 See \`config.log' for more details." >&2;}
1930 { (exit 1); exit 1; }; }
1931
1932 # Provide some information about the compiler.
1933 echo "$as_me:$LINENO:" \
1934 "checking for C compiler version" >&5
1935 ac_compiler=`set X $ac_compile; echo $2`
1936 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1937 (eval $ac_compiler --version </dev/null >&5) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }
1941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1942 (eval $ac_compiler -v </dev/null >&5) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1947 (eval $ac_compiler -V </dev/null >&5) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951
1952 cat >conftest.$ac_ext <<_ACEOF
1953 /* confdefs.h. */
1954 _ACEOF
1955 cat confdefs.h >>conftest.$ac_ext
1956 cat >>conftest.$ac_ext <<_ACEOF
1957 /* end confdefs.h. */
1958
1959 int
1960 main ()
1961 {
1962
1963 ;
1964 return 0;
1965 }
1966 _ACEOF
1967 ac_clean_files_save=$ac_clean_files
1968 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1969 # Try to create an executable without -o first, disregard a.out.
1970 # It will help us diagnose broken compilers, and finding out an intuition
1971 # of exeext.
1972 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1973 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1974 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1976 (eval $ac_link_default) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # Find the output, starting from the most likely. This scheme is
1981 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1982 # resort.
1983
1984 # Be careful to initialize this variable, since it used to be cached.
1985 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1986 ac_cv_exeext=
1987 # b.out is created by i960 compilers.
1988 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1989 do
1990 test -f "$ac_file" || continue
1991 case $ac_file in
1992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1993 ;;
1994 conftest.$ac_ext )
1995 # This is the source file.
1996 ;;
1997 [ab].out )
1998 # We found the default executable, but exeext='' is most
1999 # certainly right.
2000 break;;
2001 *.* )
2002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2003 # FIXME: I believe we export ac_cv_exeext for Libtool,
2004 # but it would be cool to find out if it's true. Does anybody
2005 # maintain Libtool? --akim.
2006 export ac_cv_exeext
2007 break;;
2008 * )
2009 break;;
2010 esac
2011 done
2012 else
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2017 See \`config.log' for more details." >&5
2018 echo "$as_me: error: C compiler cannot create executables
2019 See \`config.log' for more details." >&2;}
2020 { (exit 77); exit 77; }; }
2021 fi
2022
2023 ac_exeext=$ac_cv_exeext
2024 echo "$as_me:$LINENO: result: $ac_file" >&5
2025 echo "${ECHO_T}$ac_file" >&6
2026
2027 # Check the compiler produces executables we can run. If not, either
2028 # the compiler is broken, or we cross compile.
2029 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2030 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2031 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2032 # If not cross compiling, check that we can run a simple program.
2033 if test "$cross_compiling" != yes; then
2034 if { ac_try='./$ac_file'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036 (eval $ac_try) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; }; then
2040 cross_compiling=no
2041 else
2042 if test "$cross_compiling" = maybe; then
2043 cross_compiling=yes
2044 else
2045 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2046 If you meant to cross compile, use \`--host'.
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot run C compiled programs.
2049 If you meant to cross compile, use \`--host'.
2050 See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2053 fi
2054 fi
2055 echo "$as_me:$LINENO: result: yes" >&5
2056 echo "${ECHO_T}yes" >&6
2057
2058 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2059 ac_clean_files=$ac_clean_files_save
2060 # Check the compiler produces executables we can run. If not, either
2061 # the compiler is broken, or we cross compile.
2062 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2063 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2064 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2065 echo "${ECHO_T}$cross_compiling" >&6
2066
2067 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2068 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2070 (eval $ac_link) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; then
2074 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2075 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2076 # work properly (i.e., refer to `conftest.exe'), while it won't with
2077 # `rm'.
2078 for ac_file in conftest.exe conftest conftest.*; do
2079 test -f "$ac_file" || continue
2080 case $ac_file in
2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083 export ac_cv_exeext
2084 break;;
2085 * ) break;;
2086 esac
2087 done
2088 else
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2094 fi
2095
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2102 ac_exeext=$EXEEXT
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114
2115 int
2116 main ()
2117 {
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 rm -f conftest.o conftest.obj
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135 done
2136 else
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2145 fi
2146
2147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2148 fi
2149 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2150 echo "${ECHO_T}$ac_cv_objext" >&6
2151 OBJEXT=$ac_cv_objext
2152 ac_objext=$OBJEXT
2153 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 cat >conftest.$ac_ext <<_ACEOF
2159 /* confdefs.h. */
2160 _ACEOF
2161 cat confdefs.h >>conftest.$ac_ext
2162 cat >>conftest.$ac_ext <<_ACEOF
2163 /* end confdefs.h. */
2164
2165 int
2166 main ()
2167 {
2168 #ifndef __GNUC__
2169 choke me
2170 #endif
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 rm -f conftest.$ac_objext
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>conftest.er1
2179 ac_status=$?
2180 grep -v '^ *+' conftest.er1 >conftest.err
2181 rm -f conftest.er1
2182 cat conftest.err >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); } &&
2185 { ac_try='test -z "$ac_c_werror_flag"
2186 || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 ac_compiler_gnu=yes
2199 else
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 ac_compiler_gnu=no
2204 fi
2205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2207
2208 fi
2209 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2211 GCC=`test $ac_compiler_gnu = yes && echo yes`
2212 ac_test_CFLAGS=${CFLAGS+set}
2213 ac_save_CFLAGS=$CFLAGS
2214 CFLAGS="-g"
2215 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2216 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2217 if test "${ac_cv_prog_cc_g+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 cat >conftest.$ac_ext <<_ACEOF
2221 /* confdefs.h. */
2222 _ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2226
2227 int
2228 main ()
2229 {
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2238 ac_status=$?
2239 grep -v '^ *+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 ac_cv_prog_cc_g=yes
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 ac_cv_prog_cc_g=no
2263 fi
2264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2267 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2268 if test "$ac_test_CFLAGS" = set; then
2269 CFLAGS=$ac_save_CFLAGS
2270 elif test $ac_cv_prog_cc_g = yes; then
2271 if test "$GCC" = yes; then
2272 CFLAGS="-g -O2"
2273 else
2274 CFLAGS="-g"
2275 fi
2276 else
2277 if test "$GCC" = yes; then
2278 CFLAGS="-O2"
2279 else
2280 CFLAGS=
2281 fi
2282 fi
2283 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2284 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2285 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_cv_prog_cc_stdc=no
2289 ac_save_CC=$CC
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296 #include <stdarg.h>
2297 #include <stdio.h>
2298 #include <sys/types.h>
2299 #include <sys/stat.h>
2300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2301 struct buf { int x; };
2302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (p, i)
2304 char **p;
2305 int i;
2306 {
2307 return p[i];
2308 }
2309 static char *f (char * (*g) (char **, int), char **p, ...)
2310 {
2311 char *s;
2312 va_list v;
2313 va_start (v,p);
2314 s = g (p, va_arg (v,int));
2315 va_end (v);
2316 return s;
2317 }
2318
2319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2320 function prototypes and stuff, but not '\xHH' hex character constants.
2321 These don't provoke an error unfortunately, instead are silently treated
2322 as 'x'. The following induces an error, until -std1 is added to get
2323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2324 array size at least. It's necessary to write '\x00'==0 to get something
2325 that's true only with -std1. */
2326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2327
2328 int test (int i, double x);
2329 struct s1 {int (*f) (int a);};
2330 struct s2 {int (*f) (double a);};
2331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2332 int argc;
2333 char **argv;
2334 int
2335 main ()
2336 {
2337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2338 ;
2339 return 0;
2340 }
2341 _ACEOF
2342 # Don't try gcc -ansi; that turns off useful extensions and
2343 # breaks some systems' header files.
2344 # AIX -qlanglvl=ansi
2345 # Ultrix and OSF/1 -std1
2346 # HP-UX 10.20 and later -Ae
2347 # HP-UX older versions -Aa -D_HPUX_SOURCE
2348 # SVR4 -Xc -D__EXTENSIONS__
2349 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2350 do
2351 CC="$ac_save_CC $ac_arg"
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>conftest.er1
2355 ac_status=$?
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 ac_cv_prog_cc_stdc=$ac_arg
2375 break
2376 else
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.err conftest.$ac_objext
2382 done
2383 rm -f conftest.$ac_ext conftest.$ac_objext
2384 CC=$ac_save_CC
2385
2386 fi
2387
2388 case "x$ac_cv_prog_cc_stdc" in
2389 x|xno)
2390 echo "$as_me:$LINENO: result: none needed" >&5
2391 echo "${ECHO_T}none needed" >&6 ;;
2392 *)
2393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2394 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2395 CC="$CC $ac_cv_prog_cc_stdc" ;;
2396 esac
2397
2398 # Some people use a C++ compiler to compile C. Since we use `exit',
2399 # in C++ we need to declare it. In case someone uses the same compiler
2400 # for both compiling C and C++ we need to have the C++ compiler decide
2401 # the declaration of exit, since it's the most demanding environment.
2402 cat >conftest.$ac_ext <<_ACEOF
2403 #ifndef __cplusplus
2404 choke me
2405 #endif
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2410 ac_status=$?
2411 grep -v '^ *+' conftest.er1 >conftest.err
2412 rm -f conftest.er1
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 for ac_declaration in \
2430 '' \
2431 'extern "C" void std::exit (int) throw (); using std::exit;' \
2432 'extern "C" void std::exit (int); using std::exit;' \
2433 'extern "C" void exit (int) throw ();' \
2434 'extern "C" void exit (int);' \
2435 'void exit (int);'
2436 do
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443 $ac_declaration
2444 #include <stdlib.h>
2445 int
2446 main ()
2447 {
2448 exit (42);
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 :
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 continue
2481 fi
2482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 int
2491 main ()
2492 {
2493 exit (42);
2494 ;
2495 return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 break
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 done
2528 rm -f conftest*
2529 if test -n "$ac_declaration"; then
2530 echo '#ifdef __cplusplus' >>confdefs.h
2531 echo $ac_declaration >>confdefs.h
2532 echo '#endif' >>confdefs.h
2533 fi
2534
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 fi
2540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547 # Comment these two lines out when compiling on SCO
2548 # Check whether --enable-static or --disable-static was given.
2549 if test "${enable_static+set}" = set; then
2550 enableval="$enable_static"
2551 p=${PACKAGE-default}
2552 case $enableval in
2553 yes) enable_static=yes ;;
2554 no) enable_static=no ;;
2555 *)
2556 enable_static=no
2557 # Look at the argument we got. We use all the common list separators.
2558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2559 for pkg in $enableval; do
2560 IFS="$lt_save_ifs"
2561 if test "X$pkg" = "X$p"; then
2562 enable_static=yes
2563 fi
2564 done
2565 IFS="$lt_save_ifs"
2566 ;;
2567 esac
2568 else
2569 enable_static=no
2570 fi;
2571
2572
2573 # Check whether --enable-shared or --disable-shared was given.
2574 if test "${enable_shared+set}" = set; then
2575 enableval="$enable_shared"
2576 p=${PACKAGE-default}
2577 case $enableval in
2578 yes) enable_shared=yes ;;
2579 no) enable_shared=no ;;
2580 *)
2581 enable_shared=no
2582 # Look at the argument we got. We use all the common list separators.
2583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2584 for pkg in $enableval; do
2585 IFS="$lt_save_ifs"
2586 if test "X$pkg" = "X$p"; then
2587 enable_shared=yes
2588 fi
2589 done
2590 IFS="$lt_save_ifs"
2591 ;;
2592 esac
2593 else
2594 enable_shared=yes
2595 fi;
2596
2597 # Check whether --enable-fast-install or --disable-fast-install was given.
2598 if test "${enable_fast_install+set}" = set; then
2599 enableval="$enable_fast_install"
2600 p=${PACKAGE-default}
2601 case $enableval in
2602 yes) enable_fast_install=yes ;;
2603 no) enable_fast_install=no ;;
2604 *)
2605 enable_fast_install=no
2606 # Look at the argument we got. We use all the common list separators.
2607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2608 for pkg in $enableval; do
2609 IFS="$lt_save_ifs"
2610 if test "X$pkg" = "X$p"; then
2611 enable_fast_install=yes
2612 fi
2613 done
2614 IFS="$lt_save_ifs"
2615 ;;
2616 esac
2617 else
2618 enable_fast_install=yes
2619 fi;
2620
2621 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2622 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2623 if test "${lt_cv_path_SED+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 # Loop through the user's path and test for sed and gsed.
2627 # Then use that list of sed's as ones to test for truncation.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for lt_ac_prog in sed gsed; do
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2636 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2637 fi
2638 done
2639 done
2640 done
2641 lt_ac_max=0
2642 lt_ac_count=0
2643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2644 # along with /bin/sed that truncates output.
2645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2646 test ! -f $lt_ac_sed && continue
2647 cat /dev/null > conftest.in
2648 lt_ac_count=0
2649 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2650 # Check for GNU sed and select it if it is found.
2651 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2652 lt_cv_path_SED=$lt_ac_sed
2653 break
2654 fi
2655 while true; do
2656 cat conftest.in conftest.in >conftest.tmp
2657 mv conftest.tmp conftest.in
2658 cp conftest.in conftest.nl
2659 echo >>conftest.nl
2660 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2661 cmp -s conftest.out conftest.nl || break
2662 # 10000 chars as input seems more than enough
2663 test $lt_ac_count -gt 10 && break
2664 lt_ac_count=`expr $lt_ac_count + 1`
2665 if test $lt_ac_count -gt $lt_ac_max; then
2666 lt_ac_max=$lt_ac_count
2667 lt_cv_path_SED=$lt_ac_sed
2668 fi
2669 done
2670 done
2671
2672 fi
2673
2674 SED=$lt_cv_path_SED
2675 echo "$as_me:$LINENO: result: $SED" >&5
2676 echo "${ECHO_T}$SED" >&6
2677
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684 then ac_cv_prog_egrep='grep -E'
2685 else ac_cv_prog_egrep='egrep'
2686 fi
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP=$ac_cv_prog_egrep
2691
2692
2693
2694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2695 if test "${with_gnu_ld+set}" = set; then
2696 withval="$with_gnu_ld"
2697 test "$withval" = no || with_gnu_ld=yes
2698 else
2699 with_gnu_ld=no
2700 fi;
2701 ac_prog=ld
2702 if test "$GCC" = yes; then
2703 # Check if gcc -print-prog-name=ld gives a path.
2704 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2705 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2706 case $host in
2707 *-*-mingw*)
2708 # gcc leaves a trailing carriage return which upsets mingw
2709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2710 *)
2711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2712 esac
2713 case $ac_prog in
2714 # Accept absolute paths.
2715 [\\/]* | ?:[\\/]*)
2716 re_direlt='/[^/][^/]*/\.\./'
2717 # Canonicalize the pathname of ld
2718 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2720 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2721 done
2722 test -z "$LD" && LD="$ac_prog"
2723 ;;
2724 "")
2725 # If it fails, then pretend we aren't using GCC.
2726 ac_prog=ld
2727 ;;
2728 *)
2729 # If it is relative, then search for the first ld in PATH.
2730 with_gnu_ld=unknown
2731 ;;
2732 esac
2733 elif test "$with_gnu_ld" = yes; then
2734 echo "$as_me:$LINENO: checking for GNU ld" >&5
2735 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2736 else
2737 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2738 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2739 fi
2740 if test "${lt_cv_path_LD+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743 if test -z "$LD"; then
2744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2745 for ac_dir in $PATH; do
2746 IFS="$lt_save_ifs"
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2749 lt_cv_path_LD="$ac_dir/$ac_prog"
2750 # Check to see if the program is GNU ld. I'd rather use --version,
2751 # but apparently some GNU ld's only accept -v.
2752 # Break only if it was the GNU/non-GNU ld that we prefer.
2753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2754 *GNU* | *'with BFD'*)
2755 test "$with_gnu_ld" != no && break
2756 ;;
2757 *)
2758 test "$with_gnu_ld" != yes && break
2759 ;;
2760 esac
2761 fi
2762 done
2763 IFS="$lt_save_ifs"
2764 else
2765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2766 fi
2767 fi
2768
2769 LD="$lt_cv_path_LD"
2770 if test -n "$LD"; then
2771 echo "$as_me:$LINENO: result: $LD" >&5
2772 echo "${ECHO_T}$LD" >&6
2773 else
2774 echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2776 fi
2777 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2778 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2779 { (exit 1); exit 1; }; }
2780 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2781 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2782 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2786 case `$LD -v 2>&1 </dev/null` in
2787 *GNU* | *'with BFD'*)
2788 lt_cv_prog_gnu_ld=yes
2789 ;;
2790 *)
2791 lt_cv_prog_gnu_ld=no
2792 ;;
2793 esac
2794 fi
2795 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2796 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2797 with_gnu_ld=$lt_cv_prog_gnu_ld
2798
2799
2800 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2801 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2802 if test "${lt_cv_ld_reload_flag+set}" = set; then
2803 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 else
2805 lt_cv_ld_reload_flag='-r'
2806 fi
2807 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2808 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2809 reload_flag=$lt_cv_ld_reload_flag
2810 case $reload_flag in
2811 "" | " "*) ;;
2812 *) reload_flag=" $reload_flag" ;;
2813 esac
2814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2815 case $host_os in
2816 darwin*)
2817 if test "$GCC" = yes; then
2818 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2819 else
2820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2821 fi
2822 ;;
2823 esac
2824
2825 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2826 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2827 if test "${lt_cv_path_NM+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 if test -n "$NM"; then
2831 # Let the user override the test.
2832 lt_cv_path_NM="$NM"
2833 else
2834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2835 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2836 IFS="$lt_save_ifs"
2837 test -z "$ac_dir" && ac_dir=.
2838 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2840 # Check to see if the nm accepts a BSD-compat flag.
2841 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2842 # nm: unknown option "B" ignored
2843 # Tru64's nm complains that /dev/null is an invalid object file
2844 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2845 */dev/null* | *'Invalid file or object type'*)
2846 lt_cv_path_NM="$tmp_nm -B"
2847 break
2848 ;;
2849 *)
2850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2851 */dev/null*)
2852 lt_cv_path_NM="$tmp_nm -p"
2853 break
2854 ;;
2855 *)
2856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2857 continue # so that we can try to find one that supports BSD flags
2858 ;;
2859 esac
2860 esac
2861 fi
2862 done
2863 IFS="$lt_save_ifs"
2864 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2865 fi
2866 fi
2867 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2868 echo "${ECHO_T}$lt_cv_path_NM" >&6
2869 NM="$lt_cv_path_NM"
2870
2871 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2872 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2873 LN_S=$as_ln_s
2874 if test "$LN_S" = "ln -s"; then
2875 echo "$as_me:$LINENO: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6
2877 else
2878 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2879 echo "${ECHO_T}no, using $LN_S" >&6
2880 fi
2881
2882 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2883 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2884 if test "${lt_cv_deplibs_check_method+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 lt_cv_file_magic_cmd='$MAGIC_CMD'
2888 lt_cv_file_magic_test_file=
2889 lt_cv_deplibs_check_method='unknown'
2890 # Need to set the preceding variable on all platforms that support
2891 # interlibrary dependencies.
2892 # 'none' -- dependencies not supported.
2893 # `unknown' -- same as none, but documents that we really don't know.
2894 # 'pass_all' -- all dependencies passed with no checks.
2895 # 'test_compile' -- check by making test program.
2896 # 'file_magic [[regex]]' -- check by looking for files in library path
2897 # which responds to the $file_magic_cmd with a given extended regex.
2898 # If you have `file' or equivalent on your system and you're not sure
2899 # whether `pass_all' will *always* work, you probably want this one.
2900
2901 case $host_os in
2902 aix4* | aix5*)
2903 lt_cv_deplibs_check_method=pass_all
2904 ;;
2905
2906 beos*)
2907 lt_cv_deplibs_check_method=pass_all
2908 ;;
2909
2910 bsdi[45]*)
2911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2912 lt_cv_file_magic_cmd='/usr/bin/file -L'
2913 lt_cv_file_magic_test_file=/shlib/libc.so
2914 ;;
2915
2916 cygwin*)
2917 # func_win32_libid is a shell function defined in ltmain.sh
2918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2919 lt_cv_file_magic_cmd='func_win32_libid'
2920 ;;
2921
2922 mingw* | pw32*)
2923 # Base MSYS/MinGW do not provide the 'file' command needed by
2924 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2925 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2926 lt_cv_file_magic_cmd='$OBJDUMP -f'
2927 ;;
2928
2929 darwin* | rhapsody*)
2930 lt_cv_deplibs_check_method=pass_all
2931 ;;
2932
2933 freebsd* | kfreebsd*-gnu | dragonfly*)
2934 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2935 case $host_cpu in
2936 i*86 )
2937 # Not sure whether the presence of OpenBSD here was a mistake.
2938 # Let's accept both of them until this is cleared up.
2939 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
2940 lt_cv_file_magic_cmd=/usr/bin/file
2941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2942 ;;
2943 esac
2944 else
2945 lt_cv_deplibs_check_method=pass_all
2946 fi
2947 ;;
2948
2949 gnu*)
2950 lt_cv_deplibs_check_method=pass_all
2951 ;;
2952
2953 hpux10.20* | hpux11*)
2954 lt_cv_file_magic_cmd=/usr/bin/file
2955 case "$host_cpu" in
2956 ia64*)
2957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2958 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2959 ;;
2960 hppa*64*)
2961 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]'
2962 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2963 ;;
2964 *)
2965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2966 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2967 ;;
2968 esac
2969 ;;
2970
2971 irix5* | irix6* | nonstopux*)
2972 case $LD in
2973 *-32|*"-32 ") libmagic=32-bit;;
2974 *-n32|*"-n32 ") libmagic=N32;;
2975 *-64|*"-64 ") libmagic=64-bit;;
2976 *) libmagic=never-match;;
2977 esac
2978 lt_cv_deplibs_check_method=pass_all
2979 ;;
2980
2981 # This must be Linux ELF.
2982 linux*)
2983 lt_cv_deplibs_check_method=pass_all
2984 ;;
2985
2986 netbsd*)
2987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2989 else
2990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2991 fi
2992 ;;
2993
2994 newos6*)
2995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2996 lt_cv_file_magic_cmd=/usr/bin/file
2997 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2998 ;;
2999
3000 nto-qnx*)
3001 lt_cv_deplibs_check_method=unknown
3002 ;;
3003
3004 openbsd*)
3005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3007 else
3008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3009 fi
3010 ;;
3011
3012 osf3* | osf4* | osf5*)
3013 lt_cv_deplibs_check_method=pass_all
3014 ;;
3015
3016 sco3.2v5*)
3017 lt_cv_deplibs_check_method=pass_all
3018 ;;
3019
3020 solaris*)
3021 lt_cv_deplibs_check_method=pass_all
3022 ;;
3023
3024 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3025 case $host_vendor in
3026 motorola)
3027 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]'
3028 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3029 ;;
3030 ncr)
3031 lt_cv_deplibs_check_method=pass_all
3032 ;;
3033 sequent)
3034 lt_cv_file_magic_cmd='/bin/file'
3035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3036 ;;
3037 sni)
3038 lt_cv_file_magic_cmd='/bin/file'
3039 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3040 lt_cv_file_magic_test_file=/lib/libc.so
3041 ;;
3042 siemens)
3043 lt_cv_deplibs_check_method=pass_all
3044 ;;
3045 esac
3046 ;;
3047
3048 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3049 lt_cv_deplibs_check_method=pass_all
3050 ;;
3051 esac
3052
3053 fi
3054 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3055 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3056 file_magic_cmd=$lt_cv_file_magic_cmd
3057 deplibs_check_method=$lt_cv_deplibs_check_method
3058 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3059
3060
3061
3062
3063 # If no C compiler was specified, use CC.
3064 LTCC=${LTCC-"$CC"}
3065
3066 # Allow CC to be a program name with arguments.
3067 compiler=$CC
3068
3069
3070 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3071 if test "${enable_libtool_lock+set}" = set; then
3072 enableval="$enable_libtool_lock"
3073
3074 fi;
3075 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3076
3077 # Some flags need to be propagated to the compiler or linker for good
3078 # libtool support.
3079 case $host in
3080 ia64-*-hpux*)
3081 # Find out which ABI we are using.
3082 echo 'int i;' > conftest.$ac_ext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; then
3088 case `/usr/bin/file conftest.$ac_objext` in
3089 *ELF-32*)
3090 HPUX_IA64_MODE="32"
3091 ;;
3092 *ELF-64*)
3093 HPUX_IA64_MODE="64"
3094 ;;
3095 esac
3096 fi
3097 rm -rf conftest*
3098 ;;
3099 *-*-irix6*)
3100 # Find out which ABI we are using.
3101 echo '#line 3101 "configure"' > conftest.$ac_ext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; then
3107 if test "$lt_cv_prog_gnu_ld" = yes; then
3108 case `/usr/bin/file conftest.$ac_objext` in
3109 *32-bit*)
3110 LD="${LD-ld} -melf32bsmip"
3111 ;;
3112 *N32*)
3113 LD="${LD-ld} -melf32bmipn32"
3114 ;;
3115 *64-bit*)
3116 LD="${LD-ld} -melf64bmip"
3117 ;;
3118 esac
3119 else
3120 case `/usr/bin/file conftest.$ac_objext` in
3121 *32-bit*)
3122 LD="${LD-ld} -32"
3123 ;;
3124 *N32*)
3125 LD="${LD-ld} -n32"
3126 ;;
3127 *64-bit*)
3128 LD="${LD-ld} -64"
3129 ;;
3130 esac
3131 fi
3132 fi
3133 rm -rf conftest*
3134 ;;
3135
3136 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3137 # Find out which ABI we are using.
3138 echo 'int i;' > conftest.$ac_ext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
3144 case "`/usr/bin/file conftest.o`" in
3145 *32-bit*)
3146 case $host in
3147 x86_64-*linux*)
3148 LD="${LD-ld} -m elf_i386"
3149 ;;
3150 ppc64-*linux*|powerpc64-*linux*)
3151 LD="${LD-ld} -m elf32ppclinux"
3152 ;;
3153 s390x-*linux*)
3154 LD="${LD-ld} -m elf_s390"
3155 ;;
3156 sparc64-*linux*)
3157 LD="${LD-ld} -m elf32_sparc"
3158 ;;
3159 esac
3160 ;;
3161 *64-bit*)
3162 case $host in
3163 x86_64-*linux*)
3164 LD="${LD-ld} -m elf_x86_64"
3165 ;;
3166 ppc*-*linux*|powerpc*-*linux*)
3167 LD="${LD-ld} -m elf64ppc"
3168 ;;
3169 s390*-*linux*)
3170 LD="${LD-ld} -m elf64_s390"
3171 ;;
3172 sparc*-*linux*)
3173 LD="${LD-ld} -m elf64_sparc"
3174 ;;
3175 esac
3176 ;;
3177 esac
3178 fi
3179 rm -rf conftest*
3180 ;;
3181
3182 *-*-sco3.2v5*)
3183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3184 SAVE_CFLAGS="$CFLAGS"
3185 CFLAGS="$CFLAGS -belf"
3186 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3187 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3188 if test "${lt_cv_cc_needs_belf+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203
3204 int
3205 main ()
3206 {
3207
3208 ;
3209 return 0;
3210 }
3211 _ACEOF
3212 rm -f conftest.$ac_objext conftest$ac_exeext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest$ac_exeext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 lt_cv_cc_needs_belf=yes
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 lt_cv_cc_needs_belf=no
3240 fi
3241 rm -f conftest.err conftest.$ac_objext \
3242 conftest$ac_exeext conftest.$ac_ext
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 fi
3250 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3251 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3252 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3253 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3254 CFLAGS="$SAVE_CFLAGS"
3255 fi
3256 ;;
3257
3258 esac
3259
3260 need_locks="$enable_libtool_lock"
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3272 CPP=
3273 fi
3274 if test -z "$CPP"; then
3275 if test "${ac_cv_prog_CPP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 # Double quotes because CPP needs to be expanded
3279 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3280 do
3281 ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3283 do
3284 # Use a header file that comes with gcc, so configuring glibc
3285 # with a fresh cross-compiler works.
3286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287 # <limits.h> exists even on freestanding compilers.
3288 # On the NeXT, cc -E runs the code through the compiler's parser,
3289 # not just through cpp. "Syntax error" is here to catch this case.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301 Syntax error
3302 _ACEOF
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305 ac_status=$?
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null; then
3311 if test -s conftest.err; then
3312 ac_cpp_err=$ac_c_preproc_warn_flag
3313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 else
3315 ac_cpp_err=
3316 fi
3317 else
3318 ac_cpp_err=yes
3319 fi
3320 if test -z "$ac_cpp_err"; then
3321 :
3322 else
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 # Broken: fails on valid input.
3327 continue
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331 # OK, works on sane cases. Now check whether non-existent headers
3332 # can be detected and how.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } >/dev/null; then
3349 if test -s conftest.err; then
3350 ac_cpp_err=$ac_c_preproc_warn_flag
3351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352 else
3353 ac_cpp_err=
3354 fi
3355 else
3356 ac_cpp_err=yes
3357 fi
3358 if test -z "$ac_cpp_err"; then
3359 # Broken: success on invalid input.
3360 continue
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 # Passes both tests.
3366 ac_preproc_ok=:
3367 break
3368 fi
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375 break
3376 fi
3377
3378 done
3379 ac_cv_prog_CPP=$CPP
3380
3381 fi
3382 CPP=$ac_cv_prog_CPP
3383 else
3384 ac_cv_prog_CPP=$CPP
3385 fi
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408 Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424 else
3425 ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428 :
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null; then
3456 if test -s conftest.err; then
3457 ac_cpp_err=$ac_c_preproc_warn_flag
3458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 else
3460 ac_cpp_err=
3461 fi
3462 else
3463 ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3467 continue
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482 :
3483 else
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&2;}
3488 { (exit 1); exit 1; }; }
3489 fi
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3499 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3500 if test "${ac_cv_header_stdc+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #include <stdlib.h>
3510 #include <stdarg.h>
3511 #include <string.h>
3512 #include <float.h>
3513
3514 int
3515 main ()
3516 {
3517
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524 (eval $ac_compile) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_c_werror_flag"
3532 || test ! -s conftest.err'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3544 ac_cv_header_stdc=yes
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 ac_cv_header_stdc=no
3550 fi
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552
3553 if test $ac_cv_header_stdc = yes; then
3554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include <string.h>
3562
3563 _ACEOF
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 $EGREP "memchr" >/dev/null 2>&1; then
3566 :
3567 else
3568 ac_cv_header_stdc=no
3569 fi
3570 rm -f conftest*
3571
3572 fi
3573
3574 if test $ac_cv_header_stdc = yes; then
3575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <stdlib.h>
3583
3584 _ACEOF
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "free" >/dev/null 2>&1; then
3587 :
3588 else
3589 ac_cv_header_stdc=no
3590 fi
3591 rm -f conftest*
3592
3593 fi
3594
3595 if test $ac_cv_header_stdc = yes; then
3596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597 if test "$cross_compiling" = yes; then
3598 :
3599 else
3600 cat >conftest.$ac_ext <<_ACEOF
3601 /* confdefs.h. */
3602 _ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ctype.h>
3607 #if ((' ' & 0x0FF) == 0x020)
3608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3610 #else
3611 # define ISLOWER(c) \
3612 (('a' <= (c) && (c) <= 'i') \
3613 || ('j' <= (c) && (c) <= 'r') \
3614 || ('s' <= (c) && (c) <= 'z'))
3615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3616 #endif
3617
3618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3619 int
3620 main ()
3621 {
3622 int i;
3623 for (i = 0; i < 256; i++)
3624 if (XOR (islower (i), ISLOWER (i))
3625 || toupper (i) != TOUPPER (i))
3626 exit(2);
3627 exit (0);
3628 }
3629 _ACEOF
3630 rm -f conftest$ac_exeext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3632 (eval $ac_link) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 :
3642 else
3643 echo "$as_me: program exited with status $ac_status" >&5
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 ( exit $ac_status )
3648 ac_cv_header_stdc=no
3649 fi
3650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3651 fi
3652 fi
3653 fi
3654 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3655 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3656 if test $ac_cv_header_stdc = yes; then
3657
3658 cat >>confdefs.h <<\_ACEOF
3659 #define STDC_HEADERS 1
3660 _ACEOF
3661
3662 fi
3663
3664 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3675 inttypes.h stdint.h unistd.h
3676 do
3677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3678 echo "$as_me:$LINENO: checking for $ac_header" >&5
3679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3690
3691 #include <$ac_header>
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } &&
3702 { ac_try='test -z "$ac_c_werror_flag"
3703 || test ! -s conftest.err'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3715 eval "$as_ac_Header=yes"
3716 else
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 eval "$as_ac_Header=no"
3721 fi
3722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723 fi
3724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3727 cat >>confdefs.h <<_ACEOF
3728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3729 _ACEOF
3730
3731 fi
3732
3733 done
3734
3735
3736
3737 for ac_header in dlfcn.h
3738 do
3739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3741 echo "$as_me:$LINENO: checking for $ac_header" >&5
3742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 fi
3746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3748 else
3749 # Is the header compilable?
3750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 $ac_includes_default
3759 #include <$ac_header>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_header_compiler=yes
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 ac_header_compiler=no
3789 fi
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3792 echo "${ECHO_T}$ac_header_compiler" >&6
3793
3794 # Is the header present?
3795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <$ac_header>
3804 _ACEOF
3805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } >/dev/null; then
3813 if test -s conftest.err; then
3814 ac_cpp_err=$ac_c_preproc_warn_flag
3815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3816 else
3817 ac_cpp_err=
3818 fi
3819 else
3820 ac_cpp_err=yes
3821 fi
3822 if test -z "$ac_cpp_err"; then
3823 ac_header_preproc=yes
3824 else
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 ac_header_preproc=no
3829 fi
3830 rm -f conftest.err conftest.$ac_ext
3831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3832 echo "${ECHO_T}$ac_header_preproc" >&6
3833
3834 # So? What about this header?
3835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3836 yes:no: )
3837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3841 ac_header_preproc=yes
3842 ;;
3843 no:yes:* )
3844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3856 (
3857 cat <<\_ASBOX
3858 ## ------------------------------------------ ##
3859 ## Report this to the AC_PACKAGE_NAME lists. ##
3860 ## ------------------------------------------ ##
3861 _ASBOX
3862 ) |
3863 sed "s/^/$as_me: WARNING: /" >&2
3864 ;;
3865 esac
3866 echo "$as_me:$LINENO: checking for $ac_header" >&5
3867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 eval "$as_ac_Header=\$ac_header_preproc"
3872 fi
3873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3875
3876 fi
3877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878 cat >>confdefs.h <<_ACEOF
3879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880 _ACEOF
3881
3882 fi
3883
3884 done
3885
3886 ac_ext=cc
3887 ac_cpp='$CXXCPP $CPPFLAGS'
3888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3893 do
3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_CXX+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 if test -n "$CXX"; then
3902 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917
3918 fi
3919 fi
3920 CXX=$ac_cv_prog_CXX
3921 if test -n "$CXX"; then
3922 echo "$as_me:$LINENO: result: $CXX" >&5
3923 echo "${ECHO_T}$CXX" >&6
3924 else
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929 test -n "$CXX" && break
3930 done
3931 fi
3932 if test -z "$CXX"; then
3933 ac_ct_CXX=$CXX
3934 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3935 do
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 if test -n "$ac_ct_CXX"; then
3944 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_ac_ct_CXX="$ac_prog"
3954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957 done
3958 done
3959
3960 fi
3961 fi
3962 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3963 if test -n "$ac_ct_CXX"; then
3964 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3965 echo "${ECHO_T}$ac_ct_CXX" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969 fi
3970
3971 test -n "$ac_ct_CXX" && break
3972 done
3973 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3974
3975 CXX=$ac_ct_CXX
3976 fi
3977
3978
3979 # Provide some information about the compiler.
3980 echo "$as_me:$LINENO:" \
3981 "checking for C++ compiler version" >&5
3982 ac_compiler=`set X $ac_compile; echo $2`
3983 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3984 (eval $ac_compiler --version </dev/null >&5) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }
3988 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3989 (eval $ac_compiler -v </dev/null >&5) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }
3993 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3994 (eval $ac_compiler -V </dev/null >&5) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998
3999 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4000 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4001 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014 #ifndef __GNUC__
4015 choke me
4016 #endif
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 rm -f conftest.$ac_objext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag"
4032 || test ! -s conftest.err'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 (eval $ac_try) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 (eval $ac_try) 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_compiler_gnu=yes
4045 else
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4048
4049 ac_compiler_gnu=no
4050 fi
4051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4053
4054 fi
4055 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4056 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4057 GXX=`test $ac_compiler_gnu = yes && echo yes`
4058 ac_test_CXXFLAGS=${CXXFLAGS+set}
4059 ac_save_CXXFLAGS=$CXXFLAGS
4060 CXXFLAGS="-g"
4061 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4062 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4063 if test "${ac_cv_prog_cxx_g+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072
4073 int
4074 main ()
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_cxx_werror_flag"
4091 || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_prog_cxx_g=yes
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_cv_prog_cxx_g=no
4109 fi
4110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111 fi
4112 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4113 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4114 if test "$ac_test_CXXFLAGS" = set; then
4115 CXXFLAGS=$ac_save_CXXFLAGS
4116 elif test $ac_cv_prog_cxx_g = yes; then
4117 if test "$GXX" = yes; then
4118 CXXFLAGS="-g -O2"
4119 else
4120 CXXFLAGS="-g"
4121 fi
4122 else
4123 if test "$GXX" = yes; then
4124 CXXFLAGS="-O2"
4125 else
4126 CXXFLAGS=
4127 fi
4128 fi
4129 for ac_declaration in \
4130 '' \
4131 'extern "C" void std::exit (int) throw (); using std::exit;' \
4132 'extern "C" void std::exit (int); using std::exit;' \
4133 'extern "C" void exit (int) throw ();' \
4134 'extern "C" void exit (int);' \
4135 'void exit (int);'
4136 do
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 $ac_declaration
4144 #include <stdlib.h>
4145 int
4146 main ()
4147 {
4148 exit (42);
4149 ;
4150 return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_cxx_werror_flag"
4163 || test ! -s conftest.err'
4164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165 (eval $ac_try) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 :
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 continue
4181 fi
4182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 $ac_declaration
4190 int
4191 main ()
4192 {
4193 exit (42);
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200 (eval $ac_compile) 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_cxx_werror_flag"
4208 || test ! -s conftest.err'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210 (eval $ac_try) 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 break
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 fi
4226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227 done
4228 rm -f conftest*
4229 if test -n "$ac_declaration"; then
4230 echo '#ifdef __cplusplus' >>confdefs.h
4231 echo $ac_declaration >>confdefs.h
4232 echo '#endif' >>confdefs.h
4233 fi
4234
4235 ac_ext=cc
4236 ac_cpp='$CXXCPP $CPPFLAGS'
4237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4240
4241
4242
4243 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4245 (test "X$CXX" != "Xg++"))) ; then
4246 ac_ext=cc
4247 ac_cpp='$CXXCPP $CPPFLAGS'
4248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4251 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4252 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4253 if test -z "$CXXCPP"; then
4254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 # Double quotes because CXXCPP needs to be expanded
4258 for CXXCPP in "$CXX -E" "/lib/cpp"
4259 do
4260 ac_preproc_ok=false
4261 for ac_cxx_preproc_warn_flag in '' yes
4262 do
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #ifdef __STDC__
4276 # include <limits.h>
4277 #else
4278 # include <assert.h>
4279 #endif
4280 Syntax error
4281 _ACEOF
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_cxx_preproc_warn_flag
4292 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4293 else
4294 ac_cpp_err=
4295 fi
4296 else
4297 ac_cpp_err=yes
4298 fi
4299 if test -z "$ac_cpp_err"; then
4300 :
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 # Broken: fails on valid input.
4306 continue
4307 fi
4308 rm -f conftest.err conftest.$ac_ext
4309
4310 # OK, works on sane cases. Now check whether non-existent headers
4311 # can be detected and how.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <ac_nonexistent.h>
4319 _ACEOF
4320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } >/dev/null; then
4328 if test -s conftest.err; then
4329 ac_cpp_err=$ac_cxx_preproc_warn_flag
4330 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4331 else
4332 ac_cpp_err=
4333 fi
4334 else
4335 ac_cpp_err=yes
4336 fi
4337 if test -z "$ac_cpp_err"; then
4338 # Broken: success on invalid input.
4339 continue
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 # Passes both tests.
4345 ac_preproc_ok=:
4346 break
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349
4350 done
4351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4352 rm -f conftest.err conftest.$ac_ext
4353 if $ac_preproc_ok; then
4354 break
4355 fi
4356
4357 done
4358 ac_cv_prog_CXXCPP=$CXXCPP
4359
4360 fi
4361 CXXCPP=$ac_cv_prog_CXXCPP
4362 else
4363 ac_cv_prog_CXXCPP=$CXXCPP
4364 fi
4365 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4366 echo "${ECHO_T}$CXXCPP" >&6
4367 ac_preproc_ok=false
4368 for ac_cxx_preproc_warn_flag in '' yes
4369 do
4370 # Use a header file that comes with gcc, so configuring glibc
4371 # with a fresh cross-compiler works.
4372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4373 # <limits.h> exists even on freestanding compilers.
4374 # On the NeXT, cc -E runs the code through the compiler's parser,
4375 # not just through cpp. "Syntax error" is here to catch this case.
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #ifdef __STDC__
4383 # include <limits.h>
4384 #else
4385 # include <assert.h>
4386 #endif
4387 Syntax error
4388 _ACEOF
4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } >/dev/null; then
4397 if test -s conftest.err; then
4398 ac_cpp_err=$ac_cxx_preproc_warn_flag
4399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4400 else
4401 ac_cpp_err=
4402 fi
4403 else
4404 ac_cpp_err=yes
4405 fi
4406 if test -z "$ac_cpp_err"; then
4407 :
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412 # Broken: fails on valid input.
4413 continue
4414 fi
4415 rm -f conftest.err conftest.$ac_ext
4416
4417 # OK, works on sane cases. Now check whether non-existent headers
4418 # can be detected and how.
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <ac_nonexistent.h>
4426 _ACEOF
4427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } >/dev/null; then
4435 if test -s conftest.err; then
4436 ac_cpp_err=$ac_cxx_preproc_warn_flag
4437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4438 else
4439 ac_cpp_err=
4440 fi
4441 else
4442 ac_cpp_err=yes
4443 fi
4444 if test -z "$ac_cpp_err"; then
4445 # Broken: success on invalid input.
4446 continue
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4454 fi
4455 rm -f conftest.err conftest.$ac_ext
4456
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then
4461 :
4462 else
4463 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4464 See \`config.log' for more details." >&5
4465 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4466 See \`config.log' for more details." >&2;}
4467 { (exit 1); exit 1; }; }
4468 fi
4469
4470 ac_ext=cc
4471 ac_cpp='$CXXCPP $CPPFLAGS'
4472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4475
4476 fi
4477
4478
4479 ac_ext=f
4480 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4481 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4483 if test -n "$ac_tool_prefix"; then
4484 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4485 do
4486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4488 echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4490 if test "${ac_cv_prog_F77+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 if test -n "$F77"; then
4494 ac_cv_prog_F77="$F77" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4503 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509
4510 fi
4511 fi
4512 F77=$ac_cv_prog_F77
4513 if test -n "$F77"; then
4514 echo "$as_me:$LINENO: result: $F77" >&5
4515 echo "${ECHO_T}$F77" >&6
4516 else
4517 echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4519 fi
4520
4521 test -n "$F77" && break
4522 done
4523 fi
4524 if test -z "$F77"; then
4525 ac_ct_F77=$F77
4526 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4527 do
4528 # Extract the first word of "$ac_prog", so it can be a program name with args.
4529 set dummy $ac_prog; ac_word=$2
4530 echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 if test -n "$ac_ct_F77"; then
4536 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_F77="$ac_prog"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551
4552 fi
4553 fi
4554 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4555 if test -n "$ac_ct_F77"; then
4556 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4557 echo "${ECHO_T}$ac_ct_F77" >&6
4558 else
4559 echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4561 fi
4562
4563 test -n "$ac_ct_F77" && break
4564 done
4565
4566 F77=$ac_ct_F77
4567 fi
4568
4569
4570 # Provide some information about the compiler.
4571 echo "$as_me:4571:" \
4572 "checking for Fortran 77 compiler version" >&5
4573 ac_compiler=`set X $ac_compile; echo $2`
4574 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4575 (eval $ac_compiler --version </dev/null >&5) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }
4579 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4580 (eval $ac_compiler -v </dev/null >&5) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }
4584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4585 (eval $ac_compiler -V </dev/null >&5) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }
4589 rm -f a.out
4590
4591 # If we don't use `.F' as extension, the preprocessor is not run on the
4592 # input file. (Note that this only needs to work for GNU compilers.)
4593 ac_save_ext=$ac_ext
4594 ac_ext=F
4595 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4596 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4597 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 cat >conftest.$ac_ext <<_ACEOF
4601 program main
4602 #ifndef __GNUC__
4603 choke me
4604 #endif
4605
4606 end
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610 (eval $ac_compile) 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } &&
4617 { ac_try='test -z "$ac_f77_werror_flag"
4618 || test ! -s conftest.err'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 ac_compiler_gnu=yes
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 ac_compiler_gnu=no
4636 fi
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4639
4640 fi
4641 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4642 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4643 ac_ext=$ac_save_ext
4644 ac_test_FFLAGS=${FFLAGS+set}
4645 ac_save_FFLAGS=$FFLAGS
4646 FFLAGS=
4647 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4648 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4649 if test "${ac_cv_prog_f77_g+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 FFLAGS=-g
4653 cat >conftest.$ac_ext <<_ACEOF
4654 program main
4655
4656 end
4657 _ACEOF
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -z "$ac_f77_werror_flag"
4668 || test ! -s conftest.err'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; } &&
4674 { ac_try='test -s conftest.$ac_objext'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; }; then
4680 ac_cv_prog_f77_g=yes
4681 else
4682 echo "$as_me: failed program was:" >&5
4683 sed 's/^/| /' conftest.$ac_ext >&5
4684
4685 ac_cv_prog_f77_g=no
4686 fi
4687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4688
4689 fi
4690 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4691 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4692 if test "$ac_test_FFLAGS" = set; then
4693 FFLAGS=$ac_save_FFLAGS
4694 elif test $ac_cv_prog_f77_g = yes; then
4695 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4696 FFLAGS="-g -O2"
4697 else
4698 FFLAGS="-g"
4699 fi
4700 else
4701 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4702 FFLAGS="-O2"
4703 else
4704 FFLAGS=
4705 fi
4706 fi
4707
4708 G77=`test $ac_compiler_gnu = yes && echo yes`
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716
4717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4718
4719 # find the maximum length of command line arguments
4720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 i=0
4726 teststring="ABCD"
4727
4728 case $build_os in
4729 msdosdjgpp*)
4730 # On DJGPP, this test can blow up pretty badly due to problems in libc
4731 # (any single argument exceeding 2000 bytes causes a buffer overrun
4732 # during glob expansion). Even if it were fixed, the result of this
4733 # check would be larger than it should be.
4734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4735 ;;
4736
4737 gnu*)
4738 # Under GNU Hurd, this test is not required because there is
4739 # no limit to the length of command line arguments.
4740 # Libtool will interpret -1 as no limit whatsoever
4741 lt_cv_sys_max_cmd_len=-1;
4742 ;;
4743
4744 cygwin* | mingw*)
4745 # On Win9x/ME, this test blows up -- it succeeds, but takes
4746 # about 5 minutes as the teststring grows exponentially.
4747 # Worse, since 9x/ME are not pre-emptively multitasking,
4748 # you end up with a "frozen" computer, even though with patience
4749 # the test eventually succeeds (with a max line length of 256k).
4750 # Instead, let's just punt: use the minimum linelength reported by
4751 # all of the supported platforms: 8192 (on NT/2K/XP).
4752 lt_cv_sys_max_cmd_len=8192;
4753 ;;
4754
4755 amigaos*)
4756 # On AmigaOS with pdksh, this test takes hours, literally.
4757 # So we just punt and use a minimum line length of 8192.
4758 lt_cv_sys_max_cmd_len=8192;
4759 ;;
4760
4761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4762 # This has been around since 386BSD, at least. Likely further.
4763 if test -x /sbin/sysctl; then
4764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4765 elif test -x /usr/sbin/sysctl; then
4766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4767 else
4768 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4769 fi
4770 # And add a safety zone
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4773 ;;
4774 osf*)
4775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4777 # nice to cause kernel panics so lets avoid the loop below.
4778 # First set a reasonable default.
4779 lt_cv_sys_max_cmd_len=16384
4780 #
4781 if test -x /sbin/sysconfig; then
4782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4784 esac
4785 fi
4786 ;;
4787 *)
4788 # If test is not a shell built-in, we'll probably end up computing a
4789 # maximum length that is only half of the actual maximum length, but
4790 # we can't tell.
4791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4792 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4793 = "XX$teststring") >/dev/null 2>&1 &&
4794 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4795 lt_cv_sys_max_cmd_len=$new_result &&
4796 test $i != 17 # 1/2 MB should be enough
4797 do
4798 i=`expr $i + 1`
4799 teststring=$teststring$teststring
4800 done
4801 teststring=
4802 # Add a significant safety factor because C++ compilers can tack on massive
4803 # amounts of additional arguments before passing them to the linker.
4804 # It appears as though 1/2 is a usable value.
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4806 ;;
4807 esac
4808
4809 fi
4810
4811 if test -n $lt_cv_sys_max_cmd_len ; then
4812 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4814 else
4815 echo "$as_me:$LINENO: result: none" >&5
4816 echo "${ECHO_T}none" >&6
4817 fi
4818
4819
4820
4821
4822 # Check for command to grab the raw symbol name followed by C symbol from nm.
4823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828
4829 # These are sane defaults that work on at least a few old systems.
4830 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4831
4832 # Character class describing NM global symbol codes.
4833 symcode='[BCDEGRST]'
4834
4835 # Regexp to match symbols that can be accessed directly from C.
4836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4837
4838 # Transform an extracted symbol line into a proper C declaration
4839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4840
4841 # Transform an extracted symbol line into symbol name and symbol address
4842 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'"
4843
4844 # Define system-specific variables.
4845 case $host_os in
4846 aix*)
4847 symcode='[BCDT]'
4848 ;;
4849 cygwin* | mingw* | pw32*)
4850 symcode='[ABCDGISTW]'
4851 ;;
4852 hpux*) # Its linker distinguishes data from code symbols
4853 if test "$host_cpu" = ia64; then
4854 symcode='[ABCDEGRST]'
4855 fi
4856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4857 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'"
4858 ;;
4859 linux*)
4860 if test "$host_cpu" = ia64; then
4861 symcode='[ABCDGIRSTW]'
4862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4863 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'"
4864 fi
4865 ;;
4866 irix* | nonstopux*)
4867 symcode='[BCDEGRST]'
4868 ;;
4869 osf*)
4870 symcode='[BCDEGQRST]'
4871 ;;
4872 solaris* | sysv5*)
4873 symcode='[BDRT]'
4874 ;;
4875 sysv4)
4876 symcode='[DFNSTU]'
4877 ;;
4878 esac
4879
4880 # Handle CRLF in mingw tool chain
4881 opt_cr=
4882 case $build_os in
4883 mingw*)
4884 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4885 ;;
4886 esac
4887
4888 # If we're using GNU nm, then use its standard symbol codes.
4889 case `$NM -V 2>&1` in
4890 *GNU* | *'with BFD'*)
4891 symcode='[ABCDGIRSTW]' ;;
4892 esac
4893
4894 # Try without a prefix undercore, then with it.
4895 for ac_symprfx in "" "_"; do
4896
4897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4898 symxfrm="\\1 $ac_symprfx\\2 \\2"
4899
4900 # Write the raw and C identifiers.
4901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4902
4903 # Check to see that the pipe works correctly.
4904 pipe_works=no
4905
4906 rm -f conftest*
4907 cat > conftest.$ac_ext <<EOF
4908 #ifdef __cplusplus
4909 extern "C" {
4910 #endif
4911 char nm_test_var;
4912 void nm_test_func(){}
4913 #ifdef __cplusplus
4914 }
4915 #endif
4916 int main(){nm_test_var='a';nm_test_func();return(0);}
4917 EOF
4918
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; then
4924 # Now try to grab the symbols.
4925 nlist=conftest.nm
4926 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4927 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } && test -s "$nlist"; then
4931 # Try sorting and uniquifying the output.
4932 if sort "$nlist" | uniq > "$nlist"T; then
4933 mv -f "$nlist"T "$nlist"
4934 else
4935 rm -f "$nlist"T
4936 fi
4937
4938 # Make sure that we snagged all the symbols we need.
4939 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4940 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4941 cat <<EOF > conftest.$ac_ext
4942 #ifdef __cplusplus
4943 extern "C" {
4944 #endif
4945
4946 EOF
4947 # Now generate the symbol file.
4948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4949
4950 cat <<EOF >> conftest.$ac_ext
4951 #if defined (__STDC__) && __STDC__
4952 # define lt_ptr_t void *
4953 #else
4954 # define lt_ptr_t char *
4955 # define const
4956 #endif
4957
4958 /* The mapping between symbol names and symbols. */
4959 const struct {
4960 const char *name;
4961 lt_ptr_t address;
4962 }
4963 lt_preloaded_symbols[] =
4964 {
4965 EOF
4966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4967 cat <<\EOF >> conftest.$ac_ext
4968 {0, (lt_ptr_t) 0}
4969 };
4970
4971 #ifdef __cplusplus
4972 }
4973 #endif
4974 EOF
4975 # Now try linking the two files.
4976 mv conftest.$ac_objext conftstm.$ac_objext
4977 lt_save_LIBS="$LIBS"
4978 lt_save_CFLAGS="$CFLAGS"
4979 LIBS="conftstm.$ac_objext"
4980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4986 pipe_works=yes
4987 fi
4988 LIBS="$lt_save_LIBS"
4989 CFLAGS="$lt_save_CFLAGS"
4990 else
4991 echo "cannot find nm_test_func in $nlist" >&5
4992 fi
4993 else
4994 echo "cannot find nm_test_var in $nlist" >&5
4995 fi
4996 else
4997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4998 fi
4999 else
5000 echo "$progname: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 fi
5003 rm -f conftest* conftst*
5004
5005 # Do not use the global_symbol_pipe unless it works.
5006 if test "$pipe_works" = yes; then
5007 break
5008 else
5009 lt_cv_sys_global_symbol_pipe=
5010 fi
5011 done
5012
5013 fi
5014
5015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5016 lt_cv_sys_global_symbol_to_cdecl=
5017 fi
5018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5019 echo "$as_me:$LINENO: result: failed" >&5
5020 echo "${ECHO_T}failed" >&6
5021 else
5022 echo "$as_me:$LINENO: result: ok" >&5
5023 echo "${ECHO_T}ok" >&6
5024 fi
5025
5026 echo "$as_me:$LINENO: checking for objdir" >&5
5027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5028 if test "${lt_cv_objdir+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 rm -f .libs 2>/dev/null
5032 mkdir .libs 2>/dev/null
5033 if test -d .libs; then
5034 lt_cv_objdir=.libs
5035 else
5036 # MS-DOS does not allow filenames that begin with a dot.
5037 lt_cv_objdir=_libs
5038 fi
5039 rmdir .libs 2>/dev/null
5040 fi
5041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5042 echo "${ECHO_T}$lt_cv_objdir" >&6
5043 objdir=$lt_cv_objdir
5044
5045
5046
5047
5048
5049 case $host_os in
5050 aix3*)
5051 # AIX sometimes has problems with the GCC collect2 program. For some
5052 # reason, if we set the COLLECT_NAMES environment variable, the problems
5053 # vanish in a puff of smoke.
5054 if test "X${COLLECT_NAMES+set}" != Xset; then
5055 COLLECT_NAMES=
5056 export COLLECT_NAMES
5057 fi
5058 ;;
5059 esac
5060
5061 # Sed substitution that helps us do robust quoting. It backslashifies
5062 # metacharacters that are still active within double-quoted strings.
5063 Xsed='sed -e 1s/^X//'
5064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5065
5066 # Same as above, but do not quote variable references.
5067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5068
5069 # Sed substitution to delay expansion of an escaped shell variable in a
5070 # double_quote_subst'ed string.
5071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5072
5073 # Sed substitution to avoid accidental globbing in evaled expressions
5074 no_glob_subst='s/\*/\\\*/g'
5075
5076 # Constants:
5077 rm="rm -f"
5078
5079 # Global variables:
5080 default_ofile=libtool
5081 can_build_shared=yes
5082
5083 # All known linkers require a `.a' archive for static linking (except M$VC,
5084 # which needs '.lib').
5085 libext=a
5086 ltmain="$ac_aux_dir/ltmain.sh"
5087 ofile="$default_ofile"
5088 with_gnu_ld="$lt_cv_prog_gnu_ld"
5089
5090 if test -n "$ac_tool_prefix"; then
5091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}ar; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_prog_AR+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 if test -n "$AR"; then
5099 ac_cv_prog_AR="$AR" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_prog_AR="${ac_tool_prefix}ar"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112 done
5113 done
5114
5115 fi
5116 fi
5117 AR=$ac_cv_prog_AR
5118 if test -n "$AR"; then
5119 echo "$as_me:$LINENO: result: $AR" >&5
5120 echo "${ECHO_T}$AR" >&6
5121 else
5122 echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124 fi
5125
5126 fi
5127 if test -z "$ac_cv_prog_AR"; then
5128 ac_ct_AR=$AR
5129 # Extract the first word of "ar", so it can be a program name with args.
5130 set dummy ar; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 if test -n "$ac_ct_AR"; then
5137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_ac_ct_AR="ar"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152
5153 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5154 fi
5155 fi
5156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5157 if test -n "$ac_ct_AR"; then
5158 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5159 echo "${ECHO_T}$ac_ct_AR" >&6
5160 else
5161 echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5163 fi
5164
5165 AR=$ac_ct_AR
5166 else
5167 AR="$ac_cv_prog_AR"
5168 fi
5169
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5173 echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175 if test "${ac_cv_prog_RANLIB+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 if test -n "$RANLIB"; then
5179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194
5195 fi
5196 fi
5197 RANLIB=$ac_cv_prog_RANLIB
5198 if test -n "$RANLIB"; then
5199 echo "$as_me:$LINENO: result: $RANLIB" >&5
5200 echo "${ECHO_T}$RANLIB" >&6
5201 else
5202 echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5204 fi
5205
5206 fi
5207 if test -z "$ac_cv_prog_RANLIB"; then
5208 ac_ct_RANLIB=$RANLIB
5209 # Extract the first word of "ranlib", so it can be a program name with args.
5210 set dummy ranlib; ac_word=$2
5211 echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 if test -n "$ac_ct_RANLIB"; then
5217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_ac_ct_RANLIB="ranlib"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232
5233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5234 fi
5235 fi
5236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5237 if test -n "$ac_ct_RANLIB"; then
5238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5240 else
5241 echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5243 fi
5244
5245 RANLIB=$ac_ct_RANLIB
5246 else
5247 RANLIB="$ac_cv_prog_RANLIB"
5248 fi
5249
5250 if test -n "$ac_tool_prefix"; then
5251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5252 set dummy ${ac_tool_prefix}strip; ac_word=$2
5253 echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_prog_STRIP+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test -n "$STRIP"; then
5259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274
5275 fi
5276 fi
5277 STRIP=$ac_cv_prog_STRIP
5278 if test -n "$STRIP"; then
5279 echo "$as_me:$LINENO: result: $STRIP" >&5
5280 echo "${ECHO_T}$STRIP" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 fi
5285
5286 fi
5287 if test -z "$ac_cv_prog_STRIP"; then
5288 ac_ct_STRIP=$STRIP
5289 # Extract the first word of "strip", so it can be a program name with args.
5290 set dummy strip; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -n "$ac_ct_STRIP"; then
5297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_ac_ct_STRIP="strip"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310 done
5311 done
5312
5313 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5314 fi
5315 fi
5316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5317 if test -n "$ac_ct_STRIP"; then
5318 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5319 echo "${ECHO_T}$ac_ct_STRIP" >&6
5320 else
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323 fi
5324
5325 STRIP=$ac_ct_STRIP
5326 else
5327 STRIP="$ac_cv_prog_STRIP"
5328 fi
5329
5330
5331 old_CC="$CC"
5332 old_CFLAGS="$CFLAGS"
5333
5334 # Set sane defaults for various variables
5335 test -z "$AR" && AR=ar
5336 test -z "$AR_FLAGS" && AR_FLAGS=cru
5337 test -z "$AS" && AS=as
5338 test -z "$CC" && CC=cc
5339 test -z "$LTCC" && LTCC=$CC
5340 test -z "$DLLTOOL" && DLLTOOL=dlltool
5341 test -z "$LD" && LD=ld
5342 test -z "$LN_S" && LN_S="ln -s"
5343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5344 test -z "$NM" && NM=nm
5345 test -z "$SED" && SED=sed
5346 test -z "$OBJDUMP" && OBJDUMP=objdump
5347 test -z "$RANLIB" && RANLIB=:
5348 test -z "$STRIP" && STRIP=:
5349 test -z "$ac_objext" && ac_objext=o
5350
5351 # Determine commands to create old-style static archives.
5352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5353 old_postinstall_cmds='chmod 644 $oldlib'
5354 old_postuninstall_cmds=
5355
5356 if test -n "$RANLIB"; then
5357 case $host_os in
5358 openbsd*)
5359 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5360 ;;
5361 *)
5362 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5363 ;;
5364 esac
5365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5366 fi
5367
5368 for cc_temp in $compiler""; do
5369 case $cc_temp in
5370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5372 \-*) ;;
5373 *) break;;
5374 esac
5375 done
5376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5377
5378
5379 # Only perform the check for file, if the check method requires it
5380 case $deplibs_check_method in
5381 file_magic*)
5382 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5383 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 case $MAGIC_CMD in
5389 [\\/*] | ?:[\\/]*)
5390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5391 ;;
5392 *)
5393 lt_save_MAGIC_CMD="$MAGIC_CMD"
5394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5396 for ac_dir in $ac_dummy; do
5397 IFS="$lt_save_ifs"
5398 test -z "$ac_dir" && ac_dir=.
5399 if test -f $ac_dir/${ac_tool_prefix}file; then
5400 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5401 if test -n "$file_magic_test_file"; then
5402 case $deplibs_check_method in
5403 "file_magic "*)
5404 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5407 $EGREP "$file_magic_regex" > /dev/null; then
5408 :
5409 else
5410 cat <<EOF 1>&2
5411
5412 *** Warning: the command libtool uses to detect shared libraries,
5413 *** $file_magic_cmd, produces output that libtool cannot recognize.
5414 *** The result is that libtool may fail to recognize shared libraries
5415 *** as such. This will affect the creation of libtool libraries that
5416 *** depend on shared libraries, but programs linked with such libtool
5417 *** libraries will work regardless of this problem. Nevertheless, you
5418 *** may want to report the problem to your system manager and/or to
5419 *** [email protected]
5420
5421 EOF
5422 fi ;;
5423 esac
5424 fi
5425 break
5426 fi
5427 done
5428 IFS="$lt_save_ifs"
5429 MAGIC_CMD="$lt_save_MAGIC_CMD"
5430 ;;
5431 esac
5432 fi
5433
5434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5435 if test -n "$MAGIC_CMD"; then
5436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5437 echo "${ECHO_T}$MAGIC_CMD" >&6
5438 else
5439 echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5441 fi
5442
5443 if test -z "$lt_cv_path_MAGIC_CMD"; then
5444 if test -n "$ac_tool_prefix"; then
5445 echo "$as_me:$LINENO: checking for file" >&5
5446 echo $ECHO_N "checking for file... $ECHO_C" >&6
5447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450 case $MAGIC_CMD in
5451 [\\/*] | ?:[\\/]*)
5452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5453 ;;
5454 *)
5455 lt_save_MAGIC_CMD="$MAGIC_CMD"
5456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5458 for ac_dir in $ac_dummy; do
5459 IFS="$lt_save_ifs"
5460 test -z "$ac_dir" && ac_dir=.
5461 if test -f $ac_dir/file; then
5462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5463 if test -n "$file_magic_test_file"; then
5464 case $deplibs_check_method in
5465 "file_magic "*)
5466 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5469 $EGREP "$file_magic_regex" > /dev/null; then
5470 :
5471 else
5472 cat <<EOF 1>&2
5473
5474 *** Warning: the command libtool uses to detect shared libraries,
5475 *** $file_magic_cmd, produces output that libtool cannot recognize.
5476 *** The result is that libtool may fail to recognize shared libraries
5477 *** as such. This will affect the creation of libtool libraries that
5478 *** depend on shared libraries, but programs linked with such libtool
5479 *** libraries will work regardless of this problem. Nevertheless, you
5480 *** may want to report the problem to your system manager and/or to
5481 *** [email protected]
5482
5483 EOF
5484 fi ;;
5485 esac
5486 fi
5487 break
5488 fi
5489 done
5490 IFS="$lt_save_ifs"
5491 MAGIC_CMD="$lt_save_MAGIC_CMD"
5492 ;;
5493 esac
5494 fi
5495
5496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5497 if test -n "$MAGIC_CMD"; then
5498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5499 echo "${ECHO_T}$MAGIC_CMD" >&6
5500 else
5501 echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5503 fi
5504
5505 else
5506 MAGIC_CMD=:
5507 fi
5508 fi
5509
5510 fi
5511 ;;
5512 esac
5513
5514 enable_dlopen=no
5515 enable_win32_dll=no
5516
5517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5518 if test "${enable_libtool_lock+set}" = set; then
5519 enableval="$enable_libtool_lock"
5520
5521 fi;
5522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5523
5524
5525 # Check whether --with-pic or --without-pic was given.
5526 if test "${with_pic+set}" = set; then
5527 withval="$with_pic"
5528 pic_mode="$withval"
5529 else
5530 pic_mode=default
5531 fi;
5532 test -z "$pic_mode" && pic_mode=default
5533
5534 # Use C for the default configuration in the libtool script
5535 tagname=
5536 lt_save_CC="$CC"
5537 ac_ext=c
5538 ac_cpp='$CPP $CPPFLAGS'
5539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542
5543
5544 # Source file extension for C test sources.
5545 ac_ext=c
5546
5547 # Object file extension for compiled C test sources.
5548 objext=o
5549 objext=$objext
5550
5551 # Code to be used in simple compile tests
5552 lt_simple_compile_test_code="int some_variable = 0;\n"
5553
5554 # Code to be used in simple link tests
5555 lt_simple_link_test_code='int main(){return(0);}\n'
5556
5557
5558 # If no C compiler was specified, use CC.
5559 LTCC=${LTCC-"$CC"}
5560
5561 # Allow CC to be a program name with arguments.
5562 compiler=$CC
5563
5564
5565 # save warnings/boilerplate of simple test code
5566 ac_outfile=conftest.$ac_objext
5567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5569 _lt_compiler_boilerplate=`cat conftest.err`
5570 $rm conftest*
5571
5572 ac_outfile=conftest.$ac_objext
5573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5575 _lt_linker_boilerplate=`cat conftest.err`
5576 $rm conftest*
5577
5578
5579 #
5580 # Check for any special shared library compilation flags.
5581 #
5582 lt_prog_cc_shlib=
5583 if test "$GCC" = no; then
5584 case $host_os in
5585 sco3.2v5*)
5586 lt_prog_cc_shlib='-belf'
5587 ;;
5588 esac
5589 fi
5590 if test -n "$lt_prog_cc_shlib"; then
5591 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5593 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5594 else
5595 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5597 lt_cv_prog_cc_can_build_shared=no
5598 fi
5599 fi
5600
5601
5602 #
5603 # Check to make sure the static flag actually works.
5604 #
5605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5607 if test "${lt_prog_compiler_static_works+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610 lt_prog_compiler_static_works=no
5611 save_LDFLAGS="$LDFLAGS"
5612 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5613 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5615 # The compiler can only warn and ignore the option if not recognized
5616 # So say no if there are warnings
5617 if test -s conftest.err; then
5618 # Append any errors to the config.log.
5619 cat conftest.err 1>&5
5620 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
5621 $SED '/^$/d' conftest.err >conftest.er2
5622 if diff conftest.exp conftest.er2 >/dev/null; then
5623 lt_prog_compiler_static_works=yes
5624 fi
5625 else
5626 lt_prog_compiler_static_works=yes
5627 fi
5628 fi
5629 $rm conftest*
5630 LDFLAGS="$save_LDFLAGS"
5631
5632 fi
5633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5635
5636 if test x"$lt_prog_compiler_static_works" = xyes; then
5637 :
5638 else
5639 lt_prog_compiler_static=
5640 fi
5641
5642
5643
5644 ## CAVEAT EMPTOR:
5645 ## There is no encapsulation within the following macros, do not change
5646 ## the running order or otherwise move them around unless you know exactly
5647 ## what you are doing...
5648
5649 lt_prog_compiler_no_builtin_flag=
5650
5651 if test "$GCC" = yes; then
5652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5653
5654
5655 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5656 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5657 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 lt_cv_prog_compiler_rtti_exceptions=no
5661 ac_outfile=conftest.$ac_objext
5662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5663 lt_compiler_flag="-fno-rtti -fno-exceptions"
5664 # Insert the option either (1) after the last *FLAGS variable, or
5665 # (2) before a word containing "conftest.", or (3) at the end.
5666 # Note that $ac_compile itself does not contain backslashes and begins
5667 # with a dollar sign (not a hyphen), so the echo should work correctly.
5668 # The option is referenced via a variable to avoid confusing sed.
5669 lt_compile=`echo "$ac_compile" | $SED \
5670 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5672 -e 's:$: $lt_compiler_flag:'`
5673 (eval echo "\"\$as_me:5673: $lt_compile\"" >&5)
5674 (eval "$lt_compile" 2>conftest.err)
5675 ac_status=$?
5676 cat conftest.err >&5
5677 echo "$as_me:5677: \$? = $ac_status" >&5
5678 if (exit $ac_status) && test -s "$ac_outfile"; then
5679 # The compiler can only warn and ignore the option if not recognized
5680 # So say no if there are warnings other than the usual output.
5681 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5682 $SED '/^$/d' conftest.err >conftest.er2
5683 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5684 lt_cv_prog_compiler_rtti_exceptions=yes
5685 fi
5686 fi
5687 $rm conftest*
5688
5689 fi
5690 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5692
5693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5694 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5695 else
5696 :
5697 fi
5698
5699 fi
5700
5701 lt_prog_compiler_wl=
5702 lt_prog_compiler_pic=
5703 lt_prog_compiler_static=
5704
5705 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5707
5708 if test "$GCC" = yes; then
5709 lt_prog_compiler_wl='-Wl,'
5710 lt_prog_compiler_static='-static'
5711
5712 case $host_os in
5713 aix*)
5714 # All AIX code is PIC.
5715 if test "$host_cpu" = ia64; then
5716 # AIX 5 now supports IA64 processor
5717 lt_prog_compiler_static='-Bstatic'
5718 fi
5719 ;;
5720
5721 amigaos*)
5722 # FIXME: we need at least 68020 code to build shared libraries, but
5723 # adding the `-m68020' flag to GCC prevents building anything better,
5724 # like `-m68040'.
5725 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5726 ;;
5727
5728 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5729 # PIC is the default for these OSes.
5730 ;;
5731
5732 mingw* | pw32* | os2*)
5733 # This hack is so that the source file can tell whether it is being
5734 # built for inclusion in a dll (and should export symbols for example).
5735 lt_prog_compiler_pic='-DDLL_EXPORT'
5736 ;;
5737
5738 darwin* | rhapsody*)
5739 # PIC is the default on this platform
5740 # Common symbols not allowed in MH_DYLIB files
5741 lt_prog_compiler_pic='-fno-common'
5742 ;;
5743
5744 msdosdjgpp*)
5745 # Just because we use GCC doesn't mean we suddenly get shared libraries
5746 # on systems that don't support them.
5747 lt_prog_compiler_can_build_shared=no
5748 enable_shared=no
5749 ;;
5750
5751 sysv4*MP*)
5752 if test -d /usr/nec; then
5753 lt_prog_compiler_pic=-Kconform_pic
5754 fi
5755 ;;
5756
5757 hpux*)
5758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5759 # not for PA HP-UX.
5760 case "$host_cpu" in
5761 hppa*64*|ia64*)
5762 # +Z the default
5763 ;;
5764 *)
5765 lt_prog_compiler_pic='-fPIC'
5766 ;;
5767 esac
5768 ;;
5769
5770 *)
5771 lt_prog_compiler_pic='-fPIC'
5772 ;;
5773 esac
5774 else
5775 # PORTME Check for flag to pass linker flags through the system compiler.
5776 case $host_os in
5777 aix*)
5778 lt_prog_compiler_wl='-Wl,'
5779 if test "$host_cpu" = ia64; then
5780 # AIX 5 now supports IA64 processor
5781 lt_prog_compiler_static='-Bstatic'
5782 else
5783 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5784 fi
5785 ;;
5786 darwin*)
5787 # PIC is the default on this platform
5788 # Common symbols not allowed in MH_DYLIB files
5789 case $cc_basename in
5790 xlc*)
5791 lt_prog_compiler_pic='-qnocommon'
5792 lt_prog_compiler_wl='-Wl,'
5793 ;;
5794 esac
5795 ;;
5796
5797 mingw* | pw32* | os2*)
5798 # This hack is so that the source file can tell whether it is being
5799 # built for inclusion in a dll (and should export symbols for example).
5800 lt_prog_compiler_pic='-DDLL_EXPORT'
5801 ;;
5802
5803 hpux9* | hpux10* | hpux11*)
5804 lt_prog_compiler_wl='-Wl,'
5805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5806 # not for PA HP-UX.
5807 case "$host_cpu" in
5808 hppa*64*|ia64*)
5809 # +Z the default
5810 ;;
5811 *)
5812 lt_prog_compiler_pic='+Z'
5813 ;;
5814 esac
5815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5816 lt_prog_compiler_static='${wl}-a ${wl}archive'
5817 ;;
5818
5819 irix5* | irix6* | nonstopux*)
5820 lt_prog_compiler_wl='-Wl,'
5821 # PIC (with -KPIC) is the default.
5822 lt_prog_compiler_static='-non_shared'
5823 ;;
5824
5825 newsos6)
5826 lt_prog_compiler_pic='-KPIC'
5827 lt_prog_compiler_static='-Bstatic'
5828 ;;
5829
5830 linux*)
5831 case $cc_basename in
5832 icc* | ecc*)
5833 lt_prog_compiler_wl='-Wl,'
5834 lt_prog_compiler_pic='-KPIC'
5835 lt_prog_compiler_static='-static'
5836 ;;
5837 pgcc* | pgf77* | pgf90*)
5838 # Portland Group compilers (*not* the Pentium gcc compiler,
5839 # which looks to be a dead project)
5840 lt_prog_compiler_wl='-Wl,'
5841 lt_prog_compiler_pic='-fpic'
5842 lt_prog_compiler_static='-static'
5843 ;;
5844 ccc*)
5845 lt_prog_compiler_wl='-Wl,'
5846 # All Alpha code is PIC.
5847 lt_prog_compiler_static='-non_shared'
5848 ;;
5849 esac
5850 ;;
5851
5852 osf3* | osf4* | osf5*)
5853 lt_prog_compiler_wl='-Wl,'
5854 # All OSF/1 code is PIC.
5855 lt_prog_compiler_static='-non_shared'
5856 ;;
5857
5858 sco3.2v5*)
5859 lt_prog_compiler_pic='-Kpic'
5860 lt_prog_compiler_static='-dn'
5861 ;;
5862
5863 solaris*)
5864 lt_prog_compiler_pic='-KPIC'
5865 lt_prog_compiler_static='-Bstatic'
5866 case $cc_basename in
5867 f77* | f90* | f95*)
5868 lt_prog_compiler_wl='-Qoption ld ';;
5869 *)
5870 lt_prog_compiler_wl='-Wl,';;
5871 esac
5872 ;;
5873
5874 sunos4*)
5875 lt_prog_compiler_wl='-Qoption ld '
5876 lt_prog_compiler_pic='-PIC'
5877 lt_prog_compiler_static='-Bstatic'
5878 ;;
5879
5880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5881 lt_prog_compiler_wl='-Wl,'
5882 lt_prog_compiler_pic='-KPIC'
5883 lt_prog_compiler_static='-Bstatic'
5884 ;;
5885
5886 sysv4*MP*)
5887 if test -d /usr/nec ;then
5888 lt_prog_compiler_pic='-Kconform_pic'
5889 lt_prog_compiler_static='-Bstatic'
5890 fi
5891 ;;
5892
5893 unicos*)
5894 lt_prog_compiler_wl='-Wl,'
5895 lt_prog_compiler_can_build_shared=no
5896 ;;
5897
5898 uts4*)
5899 lt_prog_compiler_pic='-pic'
5900 lt_prog_compiler_static='-Bstatic'
5901 ;;
5902
5903 *)
5904 lt_prog_compiler_can_build_shared=no
5905 ;;
5906 esac
5907 fi
5908
5909 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5910 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5911
5912 #
5913 # Check to make sure the PIC flag actually works.
5914 #
5915 if test -n "$lt_prog_compiler_pic"; then
5916
5917 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5919 if test "${lt_prog_compiler_pic_works+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 lt_prog_compiler_pic_works=no
5923 ac_outfile=conftest.$ac_objext
5924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5926 # Insert the option either (1) after the last *FLAGS variable, or
5927 # (2) before a word containing "conftest.", or (3) at the end.
5928 # Note that $ac_compile itself does not contain backslashes and begins
5929 # with a dollar sign (not a hyphen), so the echo should work correctly.
5930 # The option is referenced via a variable to avoid confusing sed.
5931 lt_compile=`echo "$ac_compile" | $SED \
5932 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5934 -e 's:$: $lt_compiler_flag:'`
5935 (eval echo "\"\$as_me:5935: $lt_compile\"" >&5)
5936 (eval "$lt_compile" 2>conftest.err)
5937 ac_status=$?
5938 cat conftest.err >&5
5939 echo "$as_me:5939: \$? = $ac_status" >&5
5940 if (exit $ac_status) && test -s "$ac_outfile"; then
5941 # The compiler can only warn and ignore the option if not recognized
5942 # So say no if there are warnings other than the usual output.
5943 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5944 $SED '/^$/d' conftest.err >conftest.er2
5945 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5946 lt_prog_compiler_pic_works=yes
5947 fi
5948 fi
5949 $rm conftest*
5950
5951 fi
5952 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5953 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5954
5955 if test x"$lt_prog_compiler_pic_works" = xyes; then
5956 case $lt_prog_compiler_pic in
5957 "" | " "*) ;;
5958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5959 esac
5960 else
5961 lt_prog_compiler_pic=
5962 lt_prog_compiler_can_build_shared=no
5963 fi
5964
5965 fi
5966 case "$host_os" in
5967 # For platforms which do not support PIC, -DPIC is meaningless:
5968 *djgpp*)
5969 lt_prog_compiler_pic=
5970 ;;
5971 *)
5972 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5973 ;;
5974 esac
5975
5976 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5977 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 lt_cv_prog_compiler_c_o=no
5982 $rm -r conftest 2>/dev/null
5983 mkdir conftest
5984 cd conftest
5985 mkdir out
5986 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5987
5988 lt_compiler_flag="-o out/conftest2.$ac_objext"
5989 # Insert the option either (1) after the last *FLAGS variable, or
5990 # (2) before a word containing "conftest.", or (3) at the end.
5991 # Note that $ac_compile itself does not contain backslashes and begins
5992 # with a dollar sign (not a hyphen), so the echo should work correctly.
5993 lt_compile=`echo "$ac_compile" | $SED \
5994 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5996 -e 's:$: $lt_compiler_flag:'`
5997 (eval echo "\"\$as_me:5997: $lt_compile\"" >&5)
5998 (eval "$lt_compile" 2>out/conftest.err)
5999 ac_status=$?
6000 cat out/conftest.err >&5
6001 echo "$as_me:6001: \$? = $ac_status" >&5
6002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6003 then
6004 # The compiler can only warn and ignore the option if not recognized
6005 # So say no if there are warnings
6006 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6007 $SED '/^$/d' out/conftest.err >out/conftest.er2
6008 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6009 lt_cv_prog_compiler_c_o=yes
6010 fi
6011 fi
6012 chmod u+w .
6013 $rm conftest*
6014 # SGI C++ compiler will create directory out/ii_files/ for
6015 # template instantiation
6016 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6017 $rm out/* && rmdir out
6018 cd ..
6019 rmdir conftest
6020 $rm conftest*
6021
6022 fi
6023 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6024 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6025
6026
6027 hard_links="nottested"
6028 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6029 # do not overwrite the value of need_locks provided by the user
6030 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6031 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6032 hard_links=yes
6033 $rm conftest*
6034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6035 touch conftest.a
6036 ln conftest.a conftest.b 2>&5 || hard_links=no
6037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6038 echo "$as_me:$LINENO: result: $hard_links" >&5
6039 echo "${ECHO_T}$hard_links" >&6
6040 if test "$hard_links" = no; then
6041 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6042 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6043 need_locks=warn
6044 fi
6045 else
6046 need_locks=no
6047 fi
6048
6049 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6051
6052 runpath_var=
6053 allow_undefined_flag=
6054 enable_shared_with_static_runtimes=no
6055 archive_cmds=
6056 archive_expsym_cmds=
6057 old_archive_From_new_cmds=
6058 old_archive_from_expsyms_cmds=
6059 export_dynamic_flag_spec=
6060 whole_archive_flag_spec=
6061 thread_safe_flag_spec=
6062 hardcode_libdir_flag_spec=
6063 hardcode_libdir_flag_spec_ld=
6064 hardcode_libdir_separator=
6065 hardcode_direct=no
6066 hardcode_minus_L=no
6067 hardcode_shlibpath_var=unsupported
6068 link_all_deplibs=unknown
6069 hardcode_automatic=no
6070 module_cmds=
6071 module_expsym_cmds=
6072 always_export_symbols=no
6073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6074 # include_expsyms should be a list of space-separated symbols to be *always*
6075 # included in the symbol list
6076 include_expsyms=
6077 # exclude_expsyms can be an extended regexp of symbols to exclude
6078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6080 # as well as any symbol that contains `d'.
6081 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6083 # platforms (ab)use it in PIC code, but their linkers get confused if
6084 # the symbol is explicitly referenced. Since portable code cannot
6085 # rely on this symbol name, it's probably fine to never include it in
6086 # preloaded symbol tables.
6087 extract_expsyms_cmds=
6088 # Just being paranoid about ensuring that cc_basename is set.
6089 for cc_temp in $compiler""; do
6090 case $cc_temp in
6091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6093 \-*) ;;
6094 *) break;;
6095 esac
6096 done
6097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6098
6099 case $host_os in
6100 cygwin* | mingw* | pw32*)
6101 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6102 # When not using gcc, we currently assume that we are using
6103 # Microsoft Visual C++.
6104 if test "$GCC" != yes; then
6105 with_gnu_ld=no
6106 fi
6107 ;;
6108 openbsd*)
6109 with_gnu_ld=no
6110 ;;
6111 esac
6112
6113 ld_shlibs=yes
6114 if test "$with_gnu_ld" = yes; then
6115 # If archive_cmds runs LD, not CC, wlarc should be empty
6116 wlarc='${wl}'
6117
6118 # Set some defaults for GNU ld with shared library support. These
6119 # are reset later if shared libraries are not supported. Putting them
6120 # here allows them to be overridden if necessary.
6121 runpath_var=LD_RUN_PATH
6122 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6123 export_dynamic_flag_spec='${wl}--export-dynamic'
6124 # ancient GNU ld didn't support --whole-archive et. al.
6125 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6126 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6127 else
6128 whole_archive_flag_spec=
6129 fi
6130 supports_anon_versioning=no
6131 case `$LD -v 2>/dev/null` in
6132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6135 *\ 2.11.*) ;; # other 2.11 versions
6136 *) supports_anon_versioning=yes ;;
6137 esac
6138
6139 # See if GNU ld supports shared libraries.
6140 case $host_os in
6141 aix3* | aix4* | aix5*)
6142 # On AIX/PPC, the GNU linker is very broken
6143 if test "$host_cpu" != ia64; then
6144 ld_shlibs=no
6145 cat <<EOF 1>&2
6146
6147 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6148 *** to be unable to reliably create shared libraries on AIX.
6149 *** Therefore, libtool is disabling shared libraries support. If you
6150 *** really care for shared libraries, you may want to modify your PATH
6151 *** so that a non-GNU linker is found, and then restart.
6152
6153 EOF
6154 fi
6155 ;;
6156
6157 amigaos*)
6158 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)'
6159 hardcode_libdir_flag_spec='-L$libdir'
6160 hardcode_minus_L=yes
6161
6162 # Samuel A. Falvo II <[email protected]> reports
6163 # that the semantics of dynamic libraries on AmigaOS, at least up
6164 # to version 4, is to share data among multiple programs linked
6165 # with the same dynamic library. Since this doesn't match the
6166 # behavior of shared libraries on other platforms, we can't use
6167 # them.
6168 ld_shlibs=no
6169 ;;
6170
6171 beos*)
6172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6173 allow_undefined_flag=unsupported
6174 # Joseph Beckenbach <[email protected]> says some releases of gcc
6175 # support --undefined. This deserves some investigation. FIXME
6176 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6177 else
6178 ld_shlibs=no
6179 fi
6180 ;;
6181
6182 cygwin* | mingw* | pw32*)
6183 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6184 # as there is no search path for DLLs.
6185 hardcode_libdir_flag_spec='-L$libdir'
6186 allow_undefined_flag=unsupported
6187 always_export_symbols=no
6188 enable_shared_with_static_runtimes=yes
6189 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6190
6191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6193 # If the export-symbols file already is a .def file (1st line
6194 # is EXPORTS), use it as is; otherwise, prepend...
6195 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6196 cp $export_symbols $output_objdir/$soname.def;
6197 else
6198 echo EXPORTS > $output_objdir/$soname.def;
6199 cat $export_symbols >> $output_objdir/$soname.def;
6200 fi~
6201 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6202 else
6203 ld_shlibs=no
6204 fi
6205 ;;
6206
6207 linux*)
6208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6209 tmp_addflag=
6210 case $cc_basename,$host_cpu in
6211 pgcc*) # Portland Group C compiler
6212 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6213 tmp_addflag=' $pic_flag'
6214 ;;
6215 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
6216 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6217 tmp_addflag=' $pic_flag -Mnomain' ;;
6218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6219 tmp_addflag=' -i_dynamic' ;;
6220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6221 tmp_addflag=' -i_dynamic -nofor_main' ;;
6222 ifc* | ifort*) # Intel Fortran compiler
6223 tmp_addflag=' -nofor_main' ;;
6224 esac
6225 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6226
6227 if test $supports_anon_versioning = yes; then
6228 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6230 $echo "local: *; };" >> $output_objdir/$libname.ver~
6231 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6232 fi
6233 else
6234 ld_shlibs=no
6235 fi
6236 ;;
6237
6238 netbsd*)
6239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6240 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6241 wlarc=
6242 else
6243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6245 fi
6246 ;;
6247
6248 solaris* | sysv5*)
6249 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6250 ld_shlibs=no
6251 cat <<EOF 1>&2
6252
6253 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6254 *** create shared libraries on Solaris systems. Therefore, libtool
6255 *** is disabling shared libraries support. We urge you to upgrade GNU
6256 *** binutils to release 2.9.1 or newer. Another option is to modify
6257 *** your PATH or compiler configuration so that the native linker is
6258 *** used, and then restart.
6259
6260 EOF
6261 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6264 else
6265 ld_shlibs=no
6266 fi
6267 ;;
6268
6269 sunos4*)
6270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6271 wlarc=
6272 hardcode_direct=yes
6273 hardcode_shlibpath_var=no
6274 ;;
6275
6276 *)
6277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6280 else
6281 ld_shlibs=no
6282 fi
6283 ;;
6284 esac
6285
6286 if test "$ld_shlibs" = no; then
6287 runpath_var=
6288 hardcode_libdir_flag_spec=
6289 export_dynamic_flag_spec=
6290 whole_archive_flag_spec=
6291 fi
6292 else
6293 # PORTME fill in a description of your system's linker (not GNU ld)
6294 case $host_os in
6295 aix3*)
6296 allow_undefined_flag=unsupported
6297 always_export_symbols=yes
6298 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'
6299 # Note: this linker hardcodes the directories in LIBPATH if there
6300 # are no directories specified by -L.
6301 hardcode_minus_L=yes
6302 if test "$GCC" = yes && test -z "$link_static_flag"; then
6303 # Neither direct hardcoding nor static linking is supported with a
6304 # broken collect2.
6305 hardcode_direct=unsupported
6306 fi
6307 ;;
6308
6309 aix4* | aix5*)
6310 if test "$host_cpu" = ia64; then
6311 # On IA64, the linker does run time linking by default, so we don't
6312 # have to do anything special.
6313 aix_use_runtimelinking=no
6314 exp_sym_flag='-Bexport'
6315 no_entry_flag=""
6316 else
6317 # If we're using GNU nm, then we don't want the "-C" option.
6318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6319 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6320 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'
6321 else
6322 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'
6323 fi
6324 aix_use_runtimelinking=no
6325
6326 # Test if we are trying to use run time linking or normal
6327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6328 # need to do runtime linking.
6329 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6330 for ld_flag in $LDFLAGS; do
6331 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6332 aix_use_runtimelinking=yes
6333 break
6334 fi
6335 done
6336 esac
6337
6338 exp_sym_flag='-bexport'
6339 no_entry_flag='-bnoentry'
6340 fi
6341
6342 # When large executables or shared objects are built, AIX ld can
6343 # have problems creating the table of contents. If linking a library
6344 # or program results in "error TOC overflow" add -mminimal-toc to
6345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6347
6348 archive_cmds=''
6349 hardcode_direct=yes
6350 hardcode_libdir_separator=':'
6351 link_all_deplibs=yes
6352
6353 if test "$GCC" = yes; then
6354 case $host_os in aix4.[012]|aix4.[012].*)
6355 # We only want to do this on AIX 4.2 and lower, the check
6356 # below for broken collect2 doesn't work under 4.3+
6357 collect2name=`${CC} -print-prog-name=collect2`
6358 if test -f "$collect2name" && \
6359 strings "$collect2name" | grep resolve_lib_name >/dev/null
6360 then
6361 # We have reworked collect2
6362 hardcode_direct=yes
6363 else
6364 # We have old collect2
6365 hardcode_direct=unsupported
6366 # It fails to find uninstalled libraries when the uninstalled
6367 # path is not listed in the libpath. Setting hardcode_minus_L
6368 # to unsupported forces relinking
6369 hardcode_minus_L=yes
6370 hardcode_libdir_flag_spec='-L$libdir'
6371 hardcode_libdir_separator=
6372 fi
6373 esac
6374 shared_flag='-shared'
6375 if test "$aix_use_runtimelinking" = yes; then
6376 shared_flag="$shared_flag "'${wl}-G'
6377 fi
6378 else
6379 # not using gcc
6380 if test "$host_cpu" = ia64; then
6381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6382 # chokes on -Wl,-G. The following line is correct:
6383 shared_flag='-G'
6384 else
6385 if test "$aix_use_runtimelinking" = yes; then
6386 shared_flag='${wl}-G'
6387 else
6388 shared_flag='${wl}-bM:SRE'
6389 fi
6390 fi
6391 fi
6392
6393 # It seems that -bexpall does not export symbols beginning with
6394 # underscore (_), so it is better to generate a list of symbols to export.
6395 always_export_symbols=yes
6396 if test "$aix_use_runtimelinking" = yes; then
6397 # Warning - without using the other runtime loading flags (-brtl),
6398 # -berok will link without error, but may produce a broken library.
6399 allow_undefined_flag='-berok'
6400 # Determine the default libpath from the value encoded in an empty executable.
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407
6408 int
6409 main ()
6410 {
6411
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438
6439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6440 }'`
6441 # Check for a 64-bit object if we didn't find anything.
6442 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; }
6443 }'`; fi
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 fi
6449 rm -f conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6452
6453 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6454 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"
6455 else
6456 if test "$host_cpu" = ia64; then
6457 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6458 allow_undefined_flag="-z nodefs"
6459 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"
6460 else
6461 # Determine the default libpath from the value encoded in an empty executable.
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>conftest.er1
6480 ac_status=$?
6481 grep -v '^ *+' conftest.er1 >conftest.err
6482 rm -f conftest.er1
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495 (eval $ac_try) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499
6500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6501 }'`
6502 # Check for a 64-bit object if we didn't find anything.
6503 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; }
6504 }'`; fi
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6508
6509 fi
6510 rm -f conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6513
6514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6515 # Warning - without using the other run time loading flags,
6516 # -berok will link without error, but may produce a broken library.
6517 no_undefined_flag=' ${wl}-bernotok'
6518 allow_undefined_flag=' ${wl}-berok'
6519 # -bexpall does not export symbols beginning with underscore (_)
6520 always_export_symbols=yes
6521 # Exported symbols can be pulled into shared objects from archives
6522 whole_archive_flag_spec=' '
6523 archive_cmds_need_lc=yes
6524 # This is similar to how AIX traditionally builds it's shared libraries.
6525 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'
6526 fi
6527 fi
6528 ;;
6529
6530 amigaos*)
6531 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)'
6532 hardcode_libdir_flag_spec='-L$libdir'
6533 hardcode_minus_L=yes
6534 # see comment about different semantics on the GNU ld section
6535 ld_shlibs=no
6536 ;;
6537
6538 bsdi[45]*)
6539 export_dynamic_flag_spec=-rdynamic
6540 ;;
6541
6542 cygwin* | mingw* | pw32*)
6543 # When not using gcc, we currently assume that we are using
6544 # Microsoft Visual C++.
6545 # hardcode_libdir_flag_spec is actually meaningless, as there is
6546 # no search path for DLLs.
6547 hardcode_libdir_flag_spec=' '
6548 allow_undefined_flag=unsupported
6549 # Tell ltmain to make .lib files, not .a files.
6550 libext=lib
6551 # Tell ltmain to make .dll files, not .so files.
6552 shrext_cmds=".dll"
6553 # FIXME: Setting linknames here is a bad hack.
6554 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6555 # The linker will automatically build a .lib file if we build a DLL.
6556 old_archive_From_new_cmds='true'
6557 # FIXME: Should let the user specify the lib program.
6558 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6559 fix_srcfile_path='`cygpath -w "$srcfile"`'
6560 enable_shared_with_static_runtimes=yes
6561 ;;
6562
6563 darwin* | rhapsody*)
6564 case "$host_os" in
6565 rhapsody* | darwin1.[012])
6566 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6567 ;;
6568 *) # Darwin 1.3 on
6569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6570 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6571 else
6572 case ${MACOSX_DEPLOYMENT_TARGET} in
6573 10.[012])
6574 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6575 ;;
6576 10.*)
6577 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6578 ;;
6579 esac
6580 fi
6581 ;;
6582 esac
6583 archive_cmds_need_lc=no
6584 hardcode_direct=no
6585 hardcode_automatic=yes
6586 hardcode_shlibpath_var=unsupported
6587 whole_archive_flag_spec=''
6588 link_all_deplibs=yes
6589 if test "$GCC" = yes ; then
6590 output_verbose_link_cmd='echo'
6591 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6592 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6594 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}'
6595 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6596 else
6597 case $cc_basename in
6598 xlc*)
6599 output_verbose_link_cmd='echo'
6600 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6601 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6603 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6604 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6605 ;;
6606 *)
6607 ld_shlibs=no
6608 ;;
6609 esac
6610 fi
6611 ;;
6612
6613 dgux*)
6614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6615 hardcode_libdir_flag_spec='-L$libdir'
6616 hardcode_shlibpath_var=no
6617 ;;
6618
6619 freebsd1*)
6620 ld_shlibs=no
6621 ;;
6622
6623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6624 # support. Future versions do this automatically, but an explicit c++rt0.o
6625 # does not break anything, and helps significantly (at the cost of a little
6626 # extra space).
6627 freebsd2.2*)
6628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6629 hardcode_libdir_flag_spec='-R$libdir'
6630 hardcode_direct=yes
6631 hardcode_shlibpath_var=no
6632 ;;
6633
6634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6635 freebsd2*)
6636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6637 hardcode_direct=yes
6638 hardcode_minus_L=yes
6639 hardcode_shlibpath_var=no
6640 ;;
6641
6642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6643 freebsd* | kfreebsd*-gnu | dragonfly*)
6644 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6645 hardcode_libdir_flag_spec='-R$libdir'
6646 hardcode_direct=yes
6647 hardcode_shlibpath_var=no
6648 ;;
6649
6650 hpux9*)
6651 if test "$GCC" = yes; then
6652 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'
6653 else
6654 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'
6655 fi
6656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6657 hardcode_libdir_separator=:
6658 hardcode_direct=yes
6659
6660 # hardcode_minus_L: Not really in the search PATH,
6661 # but as the default location of the library.
6662 hardcode_minus_L=yes
6663 export_dynamic_flag_spec='${wl}-E'
6664 ;;
6665
6666 hpux10* | hpux11*)
6667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6668 case "$host_cpu" in
6669 hppa*64*|ia64*)
6670 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6671 ;;
6672 *)
6673 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6674 ;;
6675 esac
6676 else
6677 case "$host_cpu" in
6678 hppa*64*|ia64*)
6679 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6680 ;;
6681 *)
6682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6683 ;;
6684 esac
6685 fi
6686 if test "$with_gnu_ld" = no; then
6687 case "$host_cpu" in
6688 hppa*64*)
6689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6690 hardcode_libdir_flag_spec_ld='+b $libdir'
6691 hardcode_libdir_separator=:
6692 hardcode_direct=no
6693 hardcode_shlibpath_var=no
6694 ;;
6695 ia64*)
6696 hardcode_libdir_flag_spec='-L$libdir'
6697 hardcode_direct=no
6698 hardcode_shlibpath_var=no
6699
6700 # hardcode_minus_L: Not really in the search PATH,
6701 # but as the default location of the library.
6702 hardcode_minus_L=yes
6703 ;;
6704 *)
6705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6706 hardcode_libdir_separator=:
6707 hardcode_direct=yes
6708 export_dynamic_flag_spec='${wl}-E'
6709
6710 # hardcode_minus_L: Not really in the search PATH,
6711 # but as the default location of the library.
6712 hardcode_minus_L=yes
6713 ;;
6714 esac
6715 fi
6716 ;;
6717
6718 irix5* | irix6* | nonstopux*)
6719 if test "$GCC" = yes; then
6720 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'
6721 else
6722 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'
6723 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6724 fi
6725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6726 hardcode_libdir_separator=:
6727 link_all_deplibs=yes
6728 ;;
6729
6730 netbsd*)
6731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6733 else
6734 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6735 fi
6736 hardcode_libdir_flag_spec='-R$libdir'
6737 hardcode_direct=yes
6738 hardcode_shlibpath_var=no
6739 ;;
6740
6741 newsos6)
6742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6743 hardcode_direct=yes
6744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6745 hardcode_libdir_separator=:
6746 hardcode_shlibpath_var=no
6747 ;;
6748
6749 openbsd*)
6750 hardcode_direct=yes
6751 hardcode_shlibpath_var=no
6752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6754 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6755 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6756 export_dynamic_flag_spec='${wl}-E'
6757 else
6758 case $host_os in
6759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6761 hardcode_libdir_flag_spec='-R$libdir'
6762 ;;
6763 *)
6764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6766 ;;
6767 esac
6768 fi
6769 ;;
6770
6771 os2*)
6772 hardcode_libdir_flag_spec='-L$libdir'
6773 hardcode_minus_L=yes
6774 allow_undefined_flag=unsupported
6775 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'
6776 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6777 ;;
6778
6779 osf3*)
6780 if test "$GCC" = yes; then
6781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6782 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'
6783 else
6784 allow_undefined_flag=' -expect_unresolved \*'
6785 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'
6786 fi
6787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6788 hardcode_libdir_separator=:
6789 ;;
6790
6791 osf4* | osf5*) # as osf3* with the addition of -msym flag
6792 if test "$GCC" = yes; then
6793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6794 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'
6795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6796 else
6797 allow_undefined_flag=' -expect_unresolved \*'
6798 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'
6799 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6800 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6801
6802 # Both c and cxx compiler support -rpath directly
6803 hardcode_libdir_flag_spec='-rpath $libdir'
6804 fi
6805 hardcode_libdir_separator=:
6806 ;;
6807
6808 sco3.2v5*)
6809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6810 hardcode_shlibpath_var=no
6811 export_dynamic_flag_spec='${wl}-Bexport'
6812 runpath_var=LD_RUN_PATH
6813 hardcode_runpath_var=yes
6814 ;;
6815
6816 solaris*)
6817 no_undefined_flag=' -z text'
6818 if test "$GCC" = yes; then
6819 wlarc='${wl}'
6820 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6821 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6822 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6823 else
6824 wlarc=''
6825 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6828 fi
6829 hardcode_libdir_flag_spec='-R$libdir'
6830 hardcode_shlibpath_var=no
6831 case $host_os in
6832 solaris2.[0-5] | solaris2.[0-5].*) ;;
6833 *)
6834 # The compiler driver will combine linker options so we
6835 # cannot just pass the convience library names through
6836 # without $wl, iff we do not link with $LD.
6837 # Luckily, gcc supports the same syntax we need for Sun Studio.
6838 # Supported since Solaris 2.6 (maybe 2.5.1?)
6839 case $wlarc in
6840 '')
6841 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6842 *)
6843 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6844 esac ;;
6845 esac
6846 link_all_deplibs=yes
6847 ;;
6848
6849 sunos4*)
6850 if test "x$host_vendor" = xsequent; then
6851 # Use $CC to link under sequent, because it throws in some extra .o
6852 # files that make .init and .fini sections work.
6853 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6854 else
6855 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6856 fi
6857 hardcode_libdir_flag_spec='-L$libdir'
6858 hardcode_direct=yes
6859 hardcode_minus_L=yes
6860 hardcode_shlibpath_var=no
6861 ;;
6862
6863 sysv4)
6864 case $host_vendor in
6865 sni)
6866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6867 hardcode_direct=yes # is this really true???
6868 ;;
6869 siemens)
6870 ## LD is ld it makes a PLAMLIB
6871 ## CC just makes a GrossModule.
6872 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6873 reload_cmds='$CC -r -o $output$reload_objs'
6874 hardcode_direct=no
6875 ;;
6876 motorola)
6877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6878 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6879 ;;
6880 esac
6881 runpath_var='LD_RUN_PATH'
6882 hardcode_shlibpath_var=no
6883 ;;
6884
6885 sysv4.3*)
6886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6887 hardcode_shlibpath_var=no
6888 export_dynamic_flag_spec='-Bexport'
6889 ;;
6890
6891 sysv4*MP*)
6892 if test -d /usr/nec; then
6893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894 hardcode_shlibpath_var=no
6895 runpath_var=LD_RUN_PATH
6896 hardcode_runpath_var=yes
6897 ld_shlibs=yes
6898 fi
6899 ;;
6900
6901 sysv4.2uw2*)
6902 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6903 hardcode_direct=yes
6904 hardcode_minus_L=no
6905 hardcode_shlibpath_var=no
6906 hardcode_runpath_var=yes
6907 runpath_var=LD_RUN_PATH
6908 ;;
6909
6910 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6911 no_undefined_flag='${wl}-z ${wl}text'
6912 if test "$GCC" = yes; then
6913 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6914 else
6915 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6916 fi
6917 runpath_var='LD_RUN_PATH'
6918 hardcode_shlibpath_var=no
6919 ;;
6920
6921 sysv5*)
6922 no_undefined_flag=' -z text'
6923 # $CC -shared without GNU ld will not create a library from C++
6924 # object files and a static libstdc++, better avoid it by now
6925 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6927 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6928 hardcode_libdir_flag_spec=
6929 hardcode_shlibpath_var=no
6930 runpath_var='LD_RUN_PATH'
6931 ;;
6932
6933 uts4*)
6934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935 hardcode_libdir_flag_spec='-L$libdir'
6936 hardcode_shlibpath_var=no
6937 ;;
6938
6939 *)
6940 ld_shlibs=no
6941 ;;
6942 esac
6943 fi
6944
6945 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6946 echo "${ECHO_T}$ld_shlibs" >&6
6947 test "$ld_shlibs" = no && can_build_shared=no
6948
6949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6950 if test "$GCC" = yes; then
6951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6952 fi
6953
6954 #
6955 # Do we need to explicitly link libc?
6956 #
6957 case "x$archive_cmds_need_lc" in
6958 x|xyes)
6959 # Assume -lc should be added
6960 archive_cmds_need_lc=yes
6961
6962 if test "$enable_shared" = yes && test "$GCC" = yes; then
6963 case $archive_cmds in
6964 *'~'*)
6965 # FIXME: we may have to deal with multi-command sequences.
6966 ;;
6967 '$CC '*)
6968 # Test whether the compiler implicitly links with -lc since on some
6969 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6970 # to ld, don't add -lc before -lgcc.
6971 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6972 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6973 $rm conftest*
6974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6975
6976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977 (eval $ac_compile) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } 2>conftest.err; then
6981 soname=conftest
6982 lib=conftest
6983 libobjs=conftest.$ac_objext
6984 deplibs=
6985 wl=$lt_prog_compiler_wl
6986 compiler_flags=-v
6987 linker_flags=-v
6988 verstring=
6989 output_objdir=.
6990 libname=conftest
6991 lt_save_allow_undefined_flag=$allow_undefined_flag
6992 allow_undefined_flag=
6993 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6994 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }
6998 then
6999 archive_cmds_need_lc=no
7000 else
7001 archive_cmds_need_lc=yes
7002 fi
7003 allow_undefined_flag=$lt_save_allow_undefined_flag
7004 else
7005 cat conftest.err 1>&5
7006 fi
7007 $rm conftest*
7008 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7009 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7010 ;;
7011 esac
7012 fi
7013 ;;
7014 esac
7015
7016 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7017 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7018 library_names_spec=
7019 libname_spec='lib$name'
7020 soname_spec=
7021 shrext_cmds=".so"
7022 postinstall_cmds=
7023 postuninstall_cmds=
7024 finish_cmds=
7025 finish_eval=
7026 shlibpath_var=
7027 shlibpath_overrides_runpath=unknown
7028 version_type=none
7029 dynamic_linker="$host_os ld.so"
7030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7031 if test "$GCC" = yes; then
7032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7033 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7034 # if the path contains ";" then we assume it to be the separator
7035 # otherwise default to the standard path separator (i.e. ":") - it is
7036 # assumed that no part of a normal pathname contains ";" but that should
7037 # okay in the real world where ";" in dirpaths is itself problematic.
7038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7039 else
7040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7041 fi
7042 else
7043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7044 fi
7045 need_lib_prefix=unknown
7046 hardcode_into_libs=no
7047
7048 # when you set need_version to no, make sure it does not cause -set_version
7049 # flags to be left without arguments
7050 need_version=unknown
7051
7052 case $host_os in
7053 aix3*)
7054 version_type=linux
7055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7056 shlibpath_var=LIBPATH
7057
7058 # AIX 3 has no versioning support, so we append a major version to the name.
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 ;;
7061
7062 aix4* | aix5*)
7063 version_type=linux
7064 need_lib_prefix=no
7065 need_version=no
7066 hardcode_into_libs=yes
7067 if test "$host_cpu" = ia64; then
7068 # AIX 5 supports IA64
7069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7070 shlibpath_var=LD_LIBRARY_PATH
7071 else
7072 # With GCC up to 2.95.x, collect2 would create an import file
7073 # for dependence libraries. The import file would start with
7074 # the line `#! .'. This would cause the generated library to
7075 # depend on `.', always an invalid library. This was fixed in
7076 # development snapshots of GCC prior to 3.0.
7077 case $host_os in
7078 aix4 | aix4.[01] | aix4.[01].*)
7079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7080 echo ' yes '
7081 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7082 :
7083 else
7084 can_build_shared=no
7085 fi
7086 ;;
7087 esac
7088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7089 # soname into executable. Probably we can add versioning support to
7090 # collect2, so additional links can be useful in future.
7091 if test "$aix_use_runtimelinking" = yes; then
7092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7093 # instead of lib<name>.a to let people know that these are not
7094 # typical AIX shared libraries.
7095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7096 else
7097 # We preserve .a as extension for shared libraries through AIX4.2
7098 # and later when we are not doing run time linking.
7099 library_names_spec='${libname}${release}.a $libname.a'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 fi
7102 shlibpath_var=LIBPATH
7103 fi
7104 ;;
7105
7106 amigaos*)
7107 library_names_spec='$libname.ixlibrary $libname.a'
7108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7109 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'
7110 ;;
7111
7112 beos*)
7113 library_names_spec='${libname}${shared_ext}'
7114 dynamic_linker="$host_os ld.so"
7115 shlibpath_var=LIBRARY_PATH
7116 ;;
7117
7118 bsdi[45]*)
7119 version_type=linux
7120 need_version=no
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7124 shlibpath_var=LD_LIBRARY_PATH
7125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7127 # the default ld.so.conf also contains /usr/contrib/lib and
7128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7129 # libtool to hard-code these into programs
7130 ;;
7131
7132 cygwin* | mingw* | pw32*)
7133 version_type=windows
7134 shrext_cmds=".dll"
7135 need_version=no
7136 need_lib_prefix=no
7137
7138 case $GCC,$host_os in
7139 yes,cygwin* | yes,mingw* | yes,pw32*)
7140 library_names_spec='$libname.dll.a'
7141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7142 postinstall_cmds='base_file=`basename \${file}`~
7143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7144 dldir=$destdir/`dirname \$dlpath`~
7145 test -d \$dldir || mkdir -p \$dldir~
7146 $install_prog $dir/$dlname \$dldir/$dlname'
7147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7148 dlpath=$dir/\$dldll~
7149 $rm \$dlpath'
7150 shlibpath_overrides_runpath=yes
7151
7152 case $host_os in
7153 cygwin*)
7154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7156 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7157 ;;
7158 mingw*)
7159 # MinGW DLLs use traditional 'lib' prefix
7160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7162 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7163 # It is most probably a Windows format PATH printed by
7164 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7165 # path with ; separators, and with drive letters. We can handle the
7166 # drive letters (cygwin fileutils understands them), so leave them,
7167 # especially as we might pass files found there to a mingw objdump,
7168 # which wouldn't understand a cygwinified path. Ahh.
7169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7170 else
7171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7172 fi
7173 ;;
7174 pw32*)
7175 # pw32 DLLs use 'pw' prefix rather than 'lib'
7176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7177 ;;
7178 esac
7179 ;;
7180
7181 *)
7182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7183 ;;
7184 esac
7185 dynamic_linker='Win32 ld.exe'
7186 # FIXME: first we should search . and the directory the executable is in
7187 shlibpath_var=PATH
7188 ;;
7189
7190 darwin* | rhapsody*)
7191 dynamic_linker="$host_os dyld"
7192 version_type=darwin
7193 need_lib_prefix=no
7194 need_version=no
7195 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7196 soname_spec='${libname}${release}${major}$shared_ext'
7197 shlibpath_overrides_runpath=yes
7198 shlibpath_var=DYLD_LIBRARY_PATH
7199 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7200 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7201 if test "$GCC" = yes; then
7202 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"`
7203 else
7204 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7205 fi
7206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7207 ;;
7208
7209 dgux*)
7210 version_type=linux
7211 need_lib_prefix=no
7212 need_version=no
7213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7214 soname_spec='${libname}${release}${shared_ext}$major'
7215 shlibpath_var=LD_LIBRARY_PATH
7216 ;;
7217
7218 freebsd1*)
7219 dynamic_linker=no
7220 ;;
7221
7222 kfreebsd*-gnu)
7223 version_type=linux
7224 need_lib_prefix=no
7225 need_version=no
7226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7227 soname_spec='${libname}${release}${shared_ext}$major'
7228 shlibpath_var=LD_LIBRARY_PATH
7229 shlibpath_overrides_runpath=no
7230 hardcode_into_libs=yes
7231 dynamic_linker='GNU ld.so'
7232 ;;
7233
7234 freebsd* | dragonfly*)
7235 # DragonFly does not have aout. When/if they implement a new
7236 # versioning mechanism, adjust this.
7237 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7238 version_type=freebsd-$objformat
7239 case $version_type in
7240 freebsd-elf*)
7241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7242 need_version=no
7243 need_lib_prefix=no
7244 ;;
7245 freebsd-*)
7246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7247 need_version=yes
7248 ;;
7249 esac
7250 shlibpath_var=LD_LIBRARY_PATH
7251 case $host_os in
7252 freebsd2*)
7253 shlibpath_overrides_runpath=yes
7254 ;;
7255 freebsd3.[01]* | freebsdelf3.[01]*)
7256 shlibpath_overrides_runpath=yes
7257 hardcode_into_libs=yes
7258 ;;
7259 *) # from 3.2 on
7260 shlibpath_overrides_runpath=no
7261 hardcode_into_libs=yes
7262 ;;
7263 esac
7264 ;;
7265
7266 gnu*)
7267 version_type=linux
7268 need_lib_prefix=no
7269 need_version=no
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7271 soname_spec='${libname}${release}${shared_ext}$major'
7272 shlibpath_var=LD_LIBRARY_PATH
7273 hardcode_into_libs=yes
7274 ;;
7275
7276 hpux9* | hpux10* | hpux11*)
7277 # Give a soname corresponding to the major version so that dld.sl refuses to
7278 # link against other versions.
7279 version_type=sunos
7280 need_lib_prefix=no
7281 need_version=no
7282 case "$host_cpu" in
7283 ia64*)
7284 shrext_cmds='.so'
7285 hardcode_into_libs=yes
7286 dynamic_linker="$host_os dld.so"
7287 shlibpath_var=LD_LIBRARY_PATH
7288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7290 soname_spec='${libname}${release}${shared_ext}$major'
7291 if test "X$HPUX_IA64_MODE" = X32; then
7292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7293 else
7294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7295 fi
7296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7297 ;;
7298 hppa*64*)
7299 shrext_cmds='.sl'
7300 hardcode_into_libs=yes
7301 dynamic_linker="$host_os dld.sl"
7302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7305 soname_spec='${libname}${release}${shared_ext}$major'
7306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7308 ;;
7309 *)
7310 shrext_cmds='.sl'
7311 dynamic_linker="$host_os dld.sl"
7312 shlibpath_var=SHLIB_PATH
7313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7315 soname_spec='${libname}${release}${shared_ext}$major'
7316 ;;
7317 esac
7318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7319 postinstall_cmds='chmod 555 $lib'
7320 ;;
7321
7322 irix5* | irix6* | nonstopux*)
7323 case $host_os in
7324 nonstopux*) version_type=nonstopux ;;
7325 *)
7326 if test "$lt_cv_prog_gnu_ld" = yes; then
7327 version_type=linux
7328 else
7329 version_type=irix
7330 fi ;;
7331 esac
7332 need_lib_prefix=no
7333 need_version=no
7334 soname_spec='${libname}${release}${shared_ext}$major'
7335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7336 case $host_os in
7337 irix5* | nonstopux*)
7338 libsuff= shlibsuff=
7339 ;;
7340 *)
7341 case $LD in # libtool.m4 will add one of these switches to LD
7342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7343 libsuff= shlibsuff= libmagic=32-bit;;
7344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7345 libsuff=32 shlibsuff=N32 libmagic=N32;;
7346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7348 *) libsuff= shlibsuff= libmagic=never-match;;
7349 esac
7350 ;;
7351 esac
7352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7353 shlibpath_overrides_runpath=no
7354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7356 hardcode_into_libs=yes
7357 ;;
7358
7359 # No shared lib support for Linux oldld, aout, or coff.
7360 linux*oldld* | linux*aout* | linux*coff*)
7361 dynamic_linker=no
7362 ;;
7363
7364 # This must be Linux ELF.
7365 linux*)
7366 version_type=linux
7367 need_lib_prefix=no
7368 need_version=no
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7370 soname_spec='${libname}${release}${shared_ext}$major'
7371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7372 shlibpath_var=LD_LIBRARY_PATH
7373 shlibpath_overrides_runpath=no
7374 # This implies no fast_install, which is unacceptable.
7375 # Some rework will be needed to allow for fast_install
7376 # before this can be enabled.
7377 hardcode_into_libs=yes
7378
7379 # find out which ABI we are using
7380 libsuff=
7381 case "$host_cpu" in
7382 x86_64*|s390x*|powerpc64*)
7383 echo '#line 7383 "configure"' > conftest.$ac_ext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385 (eval $ac_compile) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; then
7389 case `/usr/bin/file conftest.$ac_objext` in
7390 *64-bit*)
7391 libsuff=64
7392 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7393 ;;
7394 esac
7395 fi
7396 rm -rf conftest*
7397 ;;
7398 esac
7399
7400 # Append ld.so.conf contents to the search path
7401 if test -f /etc/ld.so.conf; then
7402 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7403 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7404 fi
7405
7406 # We used to test for /lib/ld.so.1 and disable shared libraries on
7407 # powerpc, because MkLinux only supported shared libraries with the
7408 # GNU dynamic linker. Since this was broken with cross compilers,
7409 # most powerpc-linux boxes support dynamic linking these days and
7410 # people can always --disable-shared, the test was removed, and we
7411 # assume the GNU/Linux dynamic linker is in use.
7412 dynamic_linker='GNU/Linux ld.so'
7413 ;;
7414
7415 knetbsd*-gnu)
7416 version_type=linux
7417 need_lib_prefix=no
7418 need_version=no
7419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7420 soname_spec='${libname}${release}${shared_ext}$major'
7421 shlibpath_var=LD_LIBRARY_PATH
7422 shlibpath_overrides_runpath=no
7423 hardcode_into_libs=yes
7424 dynamic_linker='GNU ld.so'
7425 ;;
7426
7427 netbsd*)
7428 version_type=sunos
7429 need_lib_prefix=no
7430 need_version=no
7431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7434 dynamic_linker='NetBSD (a.out) ld.so'
7435 else
7436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7437 soname_spec='${libname}${release}${shared_ext}$major'
7438 dynamic_linker='NetBSD ld.elf_so'
7439 fi
7440 shlibpath_var=LD_LIBRARY_PATH
7441 shlibpath_overrides_runpath=yes
7442 hardcode_into_libs=yes
7443 ;;
7444
7445 newsos6)
7446 version_type=linux
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448 shlibpath_var=LD_LIBRARY_PATH
7449 shlibpath_overrides_runpath=yes
7450 ;;
7451
7452 nto-qnx*)
7453 version_type=linux
7454 need_lib_prefix=no
7455 need_version=no
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457 soname_spec='${libname}${release}${shared_ext}$major'
7458 shlibpath_var=LD_LIBRARY_PATH
7459 shlibpath_overrides_runpath=yes
7460 ;;
7461
7462 openbsd*)
7463 version_type=sunos
7464 need_lib_prefix=no
7465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7466 case $host_os in
7467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7468 *) need_version=no ;;
7469 esac
7470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7472 shlibpath_var=LD_LIBRARY_PATH
7473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7474 case $host_os in
7475 openbsd2.[89] | openbsd2.[89].*)
7476 shlibpath_overrides_runpath=no
7477 ;;
7478 *)
7479 shlibpath_overrides_runpath=yes
7480 ;;
7481 esac
7482 else
7483 shlibpath_overrides_runpath=yes
7484 fi
7485 ;;
7486
7487 os2*)
7488 libname_spec='$name'
7489 shrext_cmds=".dll"
7490 need_lib_prefix=no
7491 library_names_spec='$libname${shared_ext} $libname.a'
7492 dynamic_linker='OS/2 ld.exe'
7493 shlibpath_var=LIBPATH
7494 ;;
7495
7496 osf3* | osf4* | osf5*)
7497 version_type=osf
7498 need_lib_prefix=no
7499 need_version=no
7500 soname_spec='${libname}${release}${shared_ext}$major'
7501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7502 shlibpath_var=LD_LIBRARY_PATH
7503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7505 ;;
7506
7507 sco3.2v5*)
7508 version_type=osf
7509 soname_spec='${libname}${release}${shared_ext}$major'
7510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7511 shlibpath_var=LD_LIBRARY_PATH
7512 ;;
7513
7514 solaris*)
7515 version_type=linux
7516 need_lib_prefix=no
7517 need_version=no
7518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7519 soname_spec='${libname}${release}${shared_ext}$major'
7520 shlibpath_var=LD_LIBRARY_PATH
7521 shlibpath_overrides_runpath=yes
7522 hardcode_into_libs=yes
7523 # ldd complains unless libraries are executable
7524 postinstall_cmds='chmod +x $lib'
7525 ;;
7526
7527 sunos4*)
7528 version_type=sunos
7529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7531 shlibpath_var=LD_LIBRARY_PATH
7532 shlibpath_overrides_runpath=yes
7533 if test "$with_gnu_ld" = yes; then
7534 need_lib_prefix=no
7535 fi
7536 need_version=yes
7537 ;;
7538
7539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7540 version_type=linux
7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542 soname_spec='${libname}${release}${shared_ext}$major'
7543 shlibpath_var=LD_LIBRARY_PATH
7544 case $host_vendor in
7545 sni)
7546 shlibpath_overrides_runpath=no
7547 need_lib_prefix=no
7548 export_dynamic_flag_spec='${wl}-Blargedynsym'
7549 runpath_var=LD_RUN_PATH
7550 ;;
7551 siemens)
7552 need_lib_prefix=no
7553 ;;
7554 motorola)
7555 need_lib_prefix=no
7556 need_version=no
7557 shlibpath_overrides_runpath=no
7558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7559 ;;
7560 esac
7561 ;;
7562
7563 sysv4*MP*)
7564 if test -d /usr/nec ;then
7565 version_type=linux
7566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7567 soname_spec='$libname${shared_ext}.$major'
7568 shlibpath_var=LD_LIBRARY_PATH
7569 fi
7570 ;;
7571
7572 uts4*)
7573 version_type=linux
7574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7575 soname_spec='${libname}${release}${shared_ext}$major'
7576 shlibpath_var=LD_LIBRARY_PATH
7577 ;;
7578
7579 *)
7580 dynamic_linker=no
7581 ;;
7582 esac
7583 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7584 echo "${ECHO_T}$dynamic_linker" >&6
7585 test "$dynamic_linker" = no && can_build_shared=no
7586
7587 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7588 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7589 hardcode_action=
7590 if test -n "$hardcode_libdir_flag_spec" || \
7591 test -n "$runpath_var" || \
7592 test "X$hardcode_automatic" = "Xyes" ; then
7593
7594 # We can hardcode non-existant directories.
7595 if test "$hardcode_direct" != no &&
7596 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7597 # have to relink, otherwise we might link with an installed library
7598 # when we should be linking with a yet-to-be-installed one
7599 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7600 test "$hardcode_minus_L" != no; then
7601 # Linking always hardcodes the temporary library directory.
7602 hardcode_action=relink
7603 else
7604 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7605 hardcode_action=immediate
7606 fi
7607 else
7608 # We cannot hardcode anything, or else we can only hardcode existing
7609 # directories.
7610 hardcode_action=unsupported
7611 fi
7612 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7613 echo "${ECHO_T}$hardcode_action" >&6
7614
7615 if test "$hardcode_action" = relink; then
7616 # Fast installation is not supported
7617 enable_fast_install=no
7618 elif test "$shlibpath_overrides_runpath" = yes ||
7619 test "$enable_shared" = no; then
7620 # Fast installation is not necessary
7621 enable_fast_install=needless
7622 fi
7623
7624 striplib=
7625 old_striplib=
7626 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7627 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7628 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7631 echo "$as_me:$LINENO: result: yes" >&5
7632 echo "${ECHO_T}yes" >&6
7633 else
7634 # FIXME - insert some real tests, host_os isn't really good enough
7635 case $host_os in
7636 darwin*)
7637 if test -n "$STRIP" ; then
7638 striplib="$STRIP -x"
7639 echo "$as_me:$LINENO: result: yes" >&5
7640 echo "${ECHO_T}yes" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644 fi
7645 ;;
7646 *)
7647 echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7649 ;;
7650 esac
7651 fi
7652
7653 if test "x$enable_dlopen" != xyes; then
7654 enable_dlopen=unknown
7655 enable_dlopen_self=unknown
7656 enable_dlopen_self_static=unknown
7657 else
7658 lt_cv_dlopen=no
7659 lt_cv_dlopen_libs=
7660
7661 case $host_os in
7662 beos*)
7663 lt_cv_dlopen="load_add_on"
7664 lt_cv_dlopen_libs=
7665 lt_cv_dlopen_self=yes
7666 ;;
7667
7668 mingw* | pw32*)
7669 lt_cv_dlopen="LoadLibrary"
7670 lt_cv_dlopen_libs=
7671 ;;
7672
7673 cygwin*)
7674 lt_cv_dlopen="dlopen"
7675 lt_cv_dlopen_libs=
7676 ;;
7677
7678 darwin*)
7679 # if libdl is installed we need to link against it
7680 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7681 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7682 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685 ac_check_lib_save_LIBS=$LIBS
7686 LIBS="-ldl $LIBS"
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693
7694 /* Override any gcc2 internal prototype to avoid an error. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char dlopen ();
7701 int
7702 main ()
7703 {
7704 dlopen ();
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest$ac_exeext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_lib_dl_dlopen=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 ac_cv_lib_dl_dlopen=no
7737 fi
7738 rm -f conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7743 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7744 if test $ac_cv_lib_dl_dlopen = yes; then
7745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7746 else
7747
7748 lt_cv_dlopen="dyld"
7749 lt_cv_dlopen_libs=
7750 lt_cv_dlopen_self=yes
7751
7752 fi
7753
7754 ;;
7755
7756 *)
7757 echo "$as_me:$LINENO: checking for shl_load" >&5
7758 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7759 if test "${ac_cv_func_shl_load+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7770 #define shl_load innocuous_shl_load
7771
7772 /* System header to define __stub macros and hopefully few prototypes,
7773 which can conflict with char shl_load (); below.
7774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775 <limits.h> exists even on freestanding compilers. */
7776
7777 #ifdef __STDC__
7778 # include <limits.h>
7779 #else
7780 # include <assert.h>
7781 #endif
7782
7783 #undef shl_load
7784
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 #ifdef __cplusplus
7787 extern "C"
7788 {
7789 #endif
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7792 char shl_load ();
7793 /* The GNU C library defines this for functions which it implements
7794 to always fail with ENOSYS. Some functions are actually named
7795 something starting with __ and the normal name is an alias. */
7796 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7797 choke me
7798 #else
7799 char (*f) () = shl_load;
7800 #endif
7801 #ifdef __cplusplus
7802 }
7803 #endif
7804
7805 int
7806 main ()
7807 {
7808 return f != shl_load;
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext conftest$ac_exeext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_func_shl_load=yes
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 ac_cv_func_shl_load=no
7841 fi
7842 rm -f conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7844 fi
7845 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7846 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7847 if test $ac_cv_func_shl_load = yes; then
7848 lt_cv_dlopen="shl_load"
7849 else
7850 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-ldld $LIBS"
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863
7864 /* Override any gcc2 internal prototype to avoid an error. */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870 char shl_load ();
7871 int
7872 main ()
7873 {
7874 shl_load ();
7875 ;
7876 return 0;
7877 }
7878 _ACEOF
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7881 (eval $ac_link) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest$ac_exeext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 ac_cv_lib_dld_shl_load=yes
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7905
7906 ac_cv_lib_dld_shl_load=no
7907 fi
7908 rm -f conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7911 fi
7912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7914 if test $ac_cv_lib_dld_shl_load = yes; then
7915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7916 else
7917 echo "$as_me:$LINENO: checking for dlopen" >&5
7918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7919 if test "${ac_cv_func_dlopen+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7930 #define dlopen innocuous_dlopen
7931
7932 /* System header to define __stub macros and hopefully few prototypes,
7933 which can conflict with char dlopen (); below.
7934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935 <limits.h> exists even on freestanding compilers. */
7936
7937 #ifdef __STDC__
7938 # include <limits.h>
7939 #else
7940 # include <assert.h>
7941 #endif
7942
7943 #undef dlopen
7944
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 #ifdef __cplusplus
7947 extern "C"
7948 {
7949 #endif
7950 /* We use char because int might match the return type of a gcc2
7951 builtin and then its argument prototype would still apply. */
7952 char dlopen ();
7953 /* The GNU C library defines this for functions which it implements
7954 to always fail with ENOSYS. Some functions are actually named
7955 something starting with __ and the normal name is an alias. */
7956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7957 choke me
7958 #else
7959 char (*f) () = dlopen;
7960 #endif
7961 #ifdef __cplusplus
7962 }
7963 #endif
7964
7965 int
7966 main ()
7967 {
7968 return f != dlopen;
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975 (eval $ac_link) 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -z "$ac_c_werror_flag"
7983 || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try='test -s conftest$ac_exeext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 ac_cv_func_dlopen=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_cv_func_dlopen=no
8001 fi
8002 rm -f conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 fi
8005 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8007 if test $ac_cv_func_dlopen = yes; then
8008 lt_cv_dlopen="dlopen"
8009 else
8010 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015 ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-ldl $LIBS"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 #ifdef __cplusplus
8026 extern "C"
8027 #endif
8028 /* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8030 char dlopen ();
8031 int
8032 main ()
8033 {
8034 dlopen ();
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_lib_dl_dlopen=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_lib_dl_dlopen=no
8067 fi
8068 rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8073 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8074 if test $ac_cv_lib_dl_dlopen = yes; then
8075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8076 else
8077 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8078 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8079 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 ac_check_lib_save_LIBS=$LIBS
8083 LIBS="-lsvld $LIBS"
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h. */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090
8091 /* Override any gcc2 internal prototype to avoid an error. */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8097 char dlopen ();
8098 int
8099 main ()
8100 {
8101 dlopen ();
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_lib_svld_dlopen=yes
8129 else
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_cv_lib_svld_dlopen=no
8134 fi
8135 rm -f conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137 LIBS=$ac_check_lib_save_LIBS
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8140 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8141 if test $ac_cv_lib_svld_dlopen = yes; then
8142 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8143 else
8144 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8145 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8146 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-ldld $LIBS"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157
8158 /* Override any gcc2 internal prototype to avoid an error. */
8159 #ifdef __cplusplus
8160 extern "C"
8161 #endif
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8164 char dld_link ();
8165 int
8166 main ()
8167 {
8168 dld_link ();
8169 ;
8170 return 0;
8171 }
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_lib_dld_dld_link=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_cv_lib_dld_dld_link=no
8201 fi
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8205 fi
8206 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8208 if test $ac_cv_lib_dld_dld_link = yes; then
8209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8210 fi
8211
8212
8213 fi
8214
8215
8216 fi
8217
8218
8219 fi
8220
8221
8222 fi
8223
8224
8225 fi
8226
8227 ;;
8228 esac
8229
8230 if test "x$lt_cv_dlopen" != xno; then
8231 enable_dlopen=yes
8232 else
8233 enable_dlopen=no
8234 fi
8235
8236 case $lt_cv_dlopen in
8237 dlopen)
8238 save_CPPFLAGS="$CPPFLAGS"
8239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8240
8241 save_LDFLAGS="$LDFLAGS"
8242 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8243
8244 save_LIBS="$LIBS"
8245 LIBS="$lt_cv_dlopen_libs $LIBS"
8246
8247 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8248 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8249 if test "${lt_cv_dlopen_self+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 if test "$cross_compiling" = yes; then :
8253 lt_cv_dlopen_self=cross
8254 else
8255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8256 lt_status=$lt_dlunknown
8257 cat > conftest.$ac_ext <<EOF
8258 #line 8258 "configure"
8259 #include "confdefs.h"
8260
8261 #if HAVE_DLFCN_H
8262 #include <dlfcn.h>
8263 #endif
8264
8265 #include <stdio.h>
8266
8267 #ifdef RTLD_GLOBAL
8268 # define LT_DLGLOBAL RTLD_GLOBAL
8269 #else
8270 # ifdef DL_GLOBAL
8271 # define LT_DLGLOBAL DL_GLOBAL
8272 # else
8273 # define LT_DLGLOBAL 0
8274 # endif
8275 #endif
8276
8277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8278 find out it does not work in some platform. */
8279 #ifndef LT_DLLAZY_OR_NOW
8280 # ifdef RTLD_LAZY
8281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8282 # else
8283 # ifdef DL_LAZY
8284 # define LT_DLLAZY_OR_NOW DL_LAZY
8285 # else
8286 # ifdef RTLD_NOW
8287 # define LT_DLLAZY_OR_NOW RTLD_NOW
8288 # else
8289 # ifdef DL_NOW
8290 # define LT_DLLAZY_OR_NOW DL_NOW
8291 # else
8292 # define LT_DLLAZY_OR_NOW 0
8293 # endif
8294 # endif
8295 # endif
8296 # endif
8297 #endif
8298
8299 #ifdef __cplusplus
8300 extern "C" void exit (int);
8301 #endif
8302
8303 void fnord() { int i=42;}
8304 int main ()
8305 {
8306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8307 int status = $lt_dlunknown;
8308
8309 if (self)
8310 {
8311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8313 /* dlclose (self); */
8314 }
8315
8316 exit (status);
8317 }
8318 EOF
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8324 (./conftest; exit; ) 2>/dev/null
8325 lt_status=$?
8326 case x$lt_status in
8327 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8328 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8329 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8330 esac
8331 else :
8332 # compilation failed
8333 lt_cv_dlopen_self=no
8334 fi
8335 fi
8336 rm -fr conftest*
8337
8338
8339 fi
8340 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8341 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8342
8343 if test "x$lt_cv_dlopen_self" = xyes; then
8344 LDFLAGS="$LDFLAGS $link_static_flag"
8345 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8346 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8347 if test "${lt_cv_dlopen_self_static+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 if test "$cross_compiling" = yes; then :
8351 lt_cv_dlopen_self_static=cross
8352 else
8353 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8354 lt_status=$lt_dlunknown
8355 cat > conftest.$ac_ext <<EOF
8356 #line 8356 "configure"
8357 #include "confdefs.h"
8358
8359 #if HAVE_DLFCN_H
8360 #include <dlfcn.h>
8361 #endif
8362
8363 #include <stdio.h>
8364
8365 #ifdef RTLD_GLOBAL
8366 # define LT_DLGLOBAL RTLD_GLOBAL
8367 #else
8368 # ifdef DL_GLOBAL
8369 # define LT_DLGLOBAL DL_GLOBAL
8370 # else
8371 # define LT_DLGLOBAL 0
8372 # endif
8373 #endif
8374
8375 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8376 find out it does not work in some platform. */
8377 #ifndef LT_DLLAZY_OR_NOW
8378 # ifdef RTLD_LAZY
8379 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8380 # else
8381 # ifdef DL_LAZY
8382 # define LT_DLLAZY_OR_NOW DL_LAZY
8383 # else
8384 # ifdef RTLD_NOW
8385 # define LT_DLLAZY_OR_NOW RTLD_NOW
8386 # else
8387 # ifdef DL_NOW
8388 # define LT_DLLAZY_OR_NOW DL_NOW
8389 # else
8390 # define LT_DLLAZY_OR_NOW 0
8391 # endif
8392 # endif
8393 # endif
8394 # endif
8395 #endif
8396
8397 #ifdef __cplusplus
8398 extern "C" void exit (int);
8399 #endif
8400
8401 void fnord() { int i=42;}
8402 int main ()
8403 {
8404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8405 int status = $lt_dlunknown;
8406
8407 if (self)
8408 {
8409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8411 /* dlclose (self); */
8412 }
8413
8414 exit (status);
8415 }
8416 EOF
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8422 (./conftest; exit; ) 2>/dev/null
8423 lt_status=$?
8424 case x$lt_status in
8425 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8426 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8427 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8428 esac
8429 else :
8430 # compilation failed
8431 lt_cv_dlopen_self_static=no
8432 fi
8433 fi
8434 rm -fr conftest*
8435
8436
8437 fi
8438 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8439 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8440 fi
8441
8442 CPPFLAGS="$save_CPPFLAGS"
8443 LDFLAGS="$save_LDFLAGS"
8444 LIBS="$save_LIBS"
8445 ;;
8446 esac
8447
8448 case $lt_cv_dlopen_self in
8449 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8450 *) enable_dlopen_self=unknown ;;
8451 esac
8452
8453 case $lt_cv_dlopen_self_static in
8454 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8455 *) enable_dlopen_self_static=unknown ;;
8456 esac
8457 fi
8458
8459
8460 # Report which librarie types wil actually be built
8461 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8462 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8463 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8464 echo "${ECHO_T}$can_build_shared" >&6
8465
8466 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8467 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8468 test "$can_build_shared" = "no" && enable_shared=no
8469
8470 # On AIX, shared libraries and static libraries use the same namespace, and
8471 # are all built from PIC.
8472 case "$host_os" in
8473 aix3*)
8474 test "$enable_shared" = yes && enable_static=no
8475 if test -n "$RANLIB"; then
8476 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8477 postinstall_cmds='$RANLIB $lib'
8478 fi
8479 ;;
8480
8481 aix4* | aix5*)
8482 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8483 test "$enable_shared" = yes && enable_static=no
8484 fi
8485 ;;
8486 esac
8487 echo "$as_me:$LINENO: result: $enable_shared" >&5
8488 echo "${ECHO_T}$enable_shared" >&6
8489
8490 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8491 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8492 # Make sure either enable_shared or enable_static is yes.
8493 test "$enable_shared" = yes || enable_static=yes
8494 echo "$as_me:$LINENO: result: $enable_static" >&5
8495 echo "${ECHO_T}$enable_static" >&6
8496
8497 # The else clause should only fire when bootstrapping the
8498 # libtool distribution, otherwise you forgot to ship ltmain.sh
8499 # with your package, and you will get complaints that there are
8500 # no rules to generate ltmain.sh.
8501 if test -f "$ltmain"; then
8502 # See if we are running on zsh, and set the options which allow our commands through
8503 # without removal of \ escapes.
8504 if test -n "${ZSH_VERSION+set}" ; then
8505 setopt NO_GLOB_SUBST
8506 fi
8507 # Now quote all the things that may contain metacharacters while being
8508 # careful not to overquote the AC_SUBSTed values. We take copies of the
8509 # variables and quote the copies for generation of the libtool script.
8510 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8511 SED SHELL STRIP \
8512 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8513 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8514 deplibs_check_method reload_flag reload_cmds need_locks \
8515 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8516 lt_cv_sys_global_symbol_to_c_name_address \
8517 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8518 old_postinstall_cmds old_postuninstall_cmds \
8519 compiler \
8520 CC \
8521 LD \
8522 lt_prog_compiler_wl \
8523 lt_prog_compiler_pic \
8524 lt_prog_compiler_static \
8525 lt_prog_compiler_no_builtin_flag \
8526 export_dynamic_flag_spec \
8527 thread_safe_flag_spec \
8528 whole_archive_flag_spec \
8529 enable_shared_with_static_runtimes \
8530 old_archive_cmds \
8531 old_archive_from_new_cmds \
8532 predep_objects \
8533 postdep_objects \
8534 predeps \
8535 postdeps \
8536 compiler_lib_search_path \
8537 archive_cmds \
8538 archive_expsym_cmds \
8539 postinstall_cmds \
8540 postuninstall_cmds \
8541 old_archive_from_expsyms_cmds \
8542 allow_undefined_flag \
8543 no_undefined_flag \
8544 export_symbols_cmds \
8545 hardcode_libdir_flag_spec \
8546 hardcode_libdir_flag_spec_ld \
8547 hardcode_libdir_separator \
8548 hardcode_automatic \
8549 module_cmds \
8550 module_expsym_cmds \
8551 lt_cv_prog_compiler_c_o \
8552 exclude_expsyms \
8553 include_expsyms; do
8554
8555 case $var in
8556 old_archive_cmds | \
8557 old_archive_from_new_cmds | \
8558 archive_cmds | \
8559 archive_expsym_cmds | \
8560 module_cmds | \
8561 module_expsym_cmds | \
8562 old_archive_from_expsyms_cmds | \
8563 export_symbols_cmds | \
8564 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8565 postinstall_cmds | postuninstall_cmds | \
8566 old_postinstall_cmds | old_postuninstall_cmds | \
8567 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8568 # Double-quote double-evaled strings.
8569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8570 ;;
8571 *)
8572 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8573 ;;
8574 esac
8575 done
8576
8577 case $lt_echo in
8578 *'\$0 --fallback-echo"')
8579 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8580 ;;
8581 esac
8582
8583 cfgfile="${ofile}T"
8584 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8585 $rm -f "$cfgfile"
8586 { echo "$as_me:$LINENO: creating $ofile" >&5
8587 echo "$as_me: creating $ofile" >&6;}
8588
8589 cat <<__EOF__ >> "$cfgfile"
8590 #! $SHELL
8591
8592 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8593 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8594 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8595 #
8596 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8597 # Free Software Foundation, Inc.
8598 #
8599 # This file is part of GNU Libtool:
8600 # Originally by Gordon Matzigkeit <[email protected]>, 1996
8601 #
8602 # This program is free software; you can redistribute it and/or modify
8603 # it under the terms of the GNU General Public License as published by
8604 # the Free Software Foundation; either version 2 of the License, or
8605 # (at your option) any later version.
8606 #
8607 # This program is distributed in the hope that it will be useful, but
8608 # WITHOUT ANY WARRANTY; without even the implied warranty of
8609 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8610 # General Public License for more details.
8611 #
8612 # You should have received a copy of the GNU General Public License
8613 # along with this program; if not, write to the Free Software
8614 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8615 #
8616 # As a special exception to the GNU General Public License, if you
8617 # distribute this file as part of a program that contains a
8618 # configuration script generated by Autoconf, you may include it under
8619 # the same distribution terms that you use for the rest of that program.
8620
8621 # A sed program that does not truncate output.
8622 SED=$lt_SED
8623
8624 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8625 Xsed="$SED -e 1s/^X//"
8626
8627 # The HP-UX ksh and POSIX shell print the target directory to stdout
8628 # if CDPATH is set.
8629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8630
8631 # The names of the tagged configurations supported by this script.
8632 available_tags=
8633
8634 # ### BEGIN LIBTOOL CONFIG
8635
8636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8637
8638 # Shell to use when invoking shell scripts.
8639 SHELL=$lt_SHELL
8640
8641 # Whether or not to build shared libraries.
8642 build_libtool_libs=$enable_shared
8643
8644 # Whether or not to build static libraries.
8645 build_old_libs=$enable_static
8646
8647 # Whether or not to add -lc for building shared libraries.
8648 build_libtool_need_lc=$archive_cmds_need_lc
8649
8650 # Whether or not to disallow shared libs when runtime libs are static
8651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8652
8653 # Whether or not to optimize for fast installation.
8654 fast_install=$enable_fast_install
8655
8656 # The host system.
8657 host_alias=$host_alias
8658 host=$host
8659 host_os=$host_os
8660
8661 # The build system.
8662 build_alias=$build_alias
8663 build=$build
8664 build_os=$build_os
8665
8666 # An echo program that does not interpret backslashes.
8667 echo=$lt_echo
8668
8669 # The archiver.
8670 AR=$lt_AR
8671 AR_FLAGS=$lt_AR_FLAGS
8672
8673 # A C compiler.
8674 LTCC=$lt_LTCC
8675
8676 # A language-specific compiler.
8677 CC=$lt_compiler
8678
8679 # Is the compiler the GNU C compiler?
8680 with_gcc=$GCC
8681
8682 # An ERE matcher.
8683 EGREP=$lt_EGREP
8684
8685 # The linker used to build libraries.
8686 LD=$lt_LD
8687
8688 # Whether we need hard or soft links.
8689 LN_S=$lt_LN_S
8690
8691 # A BSD-compatible nm program.
8692 NM=$lt_NM
8693
8694 # A symbol stripping program
8695 STRIP=$lt_STRIP
8696
8697 # Used to examine libraries when file_magic_cmd begins "file"
8698 MAGIC_CMD=$MAGIC_CMD
8699
8700 # Used on cygwin: DLL creation program.
8701 DLLTOOL="$DLLTOOL"
8702
8703 # Used on cygwin: object dumper.
8704 OBJDUMP="$OBJDUMP"
8705
8706 # Used on cygwin: assembler.
8707 AS="$AS"
8708
8709 # The name of the directory that contains temporary libtool files.
8710 objdir=$objdir
8711
8712 # How to create reloadable object files.
8713 reload_flag=$lt_reload_flag
8714 reload_cmds=$lt_reload_cmds
8715
8716 # How to pass a linker flag through the compiler.
8717 wl=$lt_lt_prog_compiler_wl
8718
8719 # Object file suffix (normally "o").
8720 objext="$ac_objext"
8721
8722 # Old archive suffix (normally "a").
8723 libext="$libext"
8724
8725 # Shared library suffix (normally ".so").
8726 shrext_cmds='$shrext_cmds'
8727
8728 # Executable file suffix (normally "").
8729 exeext="$exeext"
8730
8731 # Additional compiler flags for building library objects.
8732 pic_flag=$lt_lt_prog_compiler_pic
8733 pic_mode=$pic_mode
8734
8735 # What is the maximum length of a command?
8736 max_cmd_len=$lt_cv_sys_max_cmd_len
8737
8738 # Does compiler simultaneously support -c and -o options?
8739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8740
8741 # Must we lock files when doing compilation?
8742 need_locks=$lt_need_locks
8743
8744 # Do we need the lib prefix for modules?
8745 need_lib_prefix=$need_lib_prefix
8746
8747 # Do we need a version for libraries?
8748 need_version=$need_version
8749
8750 # Whether dlopen is supported.
8751 dlopen_support=$enable_dlopen
8752
8753 # Whether dlopen of programs is supported.
8754 dlopen_self=$enable_dlopen_self
8755
8756 # Whether dlopen of statically linked programs is supported.
8757 dlopen_self_static=$enable_dlopen_self_static
8758
8759 # Compiler flag to prevent dynamic linking.
8760 link_static_flag=$lt_lt_prog_compiler_static
8761
8762 # Compiler flag to turn off builtin functions.
8763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8764
8765 # Compiler flag to allow reflexive dlopens.
8766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8767
8768 # Compiler flag to generate shared objects directly from archives.
8769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8770
8771 # Compiler flag to generate thread-safe objects.
8772 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8773
8774 # Library versioning type.
8775 version_type=$version_type
8776
8777 # Format of library name prefix.
8778 libname_spec=$lt_libname_spec
8779
8780 # List of archive names. First name is the real one, the rest are links.
8781 # The last name is the one that the linker finds with -lNAME.
8782 library_names_spec=$lt_library_names_spec
8783
8784 # The coded name of the library, if different from the real name.
8785 soname_spec=$lt_soname_spec
8786
8787 # Commands used to build and install an old-style archive.
8788 RANLIB=$lt_RANLIB
8789 old_archive_cmds=$lt_old_archive_cmds
8790 old_postinstall_cmds=$lt_old_postinstall_cmds
8791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8792
8793 # Create an old-style archive from a shared archive.
8794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8795
8796 # Create a temporary old-style archive to link instead of a shared archive.
8797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8798
8799 # Commands used to build and install a shared archive.
8800 archive_cmds=$lt_archive_cmds
8801 archive_expsym_cmds=$lt_archive_expsym_cmds
8802 postinstall_cmds=$lt_postinstall_cmds
8803 postuninstall_cmds=$lt_postuninstall_cmds
8804
8805 # Commands used to build a loadable module (assumed same as above if empty)
8806 module_cmds=$lt_module_cmds
8807 module_expsym_cmds=$lt_module_expsym_cmds
8808
8809 # Commands to strip libraries.
8810 old_striplib=$lt_old_striplib
8811 striplib=$lt_striplib
8812
8813 # Dependencies to place before the objects being linked to create a
8814 # shared library.
8815 predep_objects=$lt_predep_objects
8816
8817 # Dependencies to place after the objects being linked to create a
8818 # shared library.
8819 postdep_objects=$lt_postdep_objects
8820
8821 # Dependencies to place before the objects being linked to create a
8822 # shared library.
8823 predeps=$lt_predeps
8824
8825 # Dependencies to place after the objects being linked to create a
8826 # shared library.
8827 postdeps=$lt_postdeps
8828
8829 # The library search path used internally by the compiler when linking
8830 # a shared library.
8831 compiler_lib_search_path=$lt_compiler_lib_search_path
8832
8833 # Method to check whether dependent libraries are shared objects.
8834 deplibs_check_method=$lt_deplibs_check_method
8835
8836 # Command to use when deplibs_check_method == file_magic.
8837 file_magic_cmd=$lt_file_magic_cmd
8838
8839 # Flag that allows shared libraries with undefined symbols to be built.
8840 allow_undefined_flag=$lt_allow_undefined_flag
8841
8842 # Flag that forces no undefined symbols.
8843 no_undefined_flag=$lt_no_undefined_flag
8844
8845 # Commands used to finish a libtool library installation in a directory.
8846 finish_cmds=$lt_finish_cmds
8847
8848 # Same as above, but a single script fragment to be evaled but not shown.
8849 finish_eval=$lt_finish_eval
8850
8851 # Take the output of nm and produce a listing of raw symbols and C names.
8852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8853
8854 # Transform the output of nm in a proper C declaration
8855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8856
8857 # Transform the output of nm in a C name address pair
8858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8859
8860 # This is the shared library runtime path variable.
8861 runpath_var=$runpath_var
8862
8863 # This is the shared library path variable.
8864 shlibpath_var=$shlibpath_var
8865
8866 # Is shlibpath searched before the hard-coded library search path?
8867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8868
8869 # How to hardcode a shared library path into an executable.
8870 hardcode_action=$hardcode_action
8871
8872 # Whether we should hardcode library paths into libraries.
8873 hardcode_into_libs=$hardcode_into_libs
8874
8875 # Flag to hardcode \$libdir into a binary during linking.
8876 # This must work even if \$libdir does not exist.
8877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8878
8879 # If ld is used when linking, flag to hardcode \$libdir into
8880 # a binary during linking. This must work even if \$libdir does
8881 # not exist.
8882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8883
8884 # Whether we need a single -rpath flag with a separated argument.
8885 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8886
8887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8888 # resulting binary.
8889 hardcode_direct=$hardcode_direct
8890
8891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8892 # resulting binary.
8893 hardcode_minus_L=$hardcode_minus_L
8894
8895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8896 # the resulting binary.
8897 hardcode_shlibpath_var=$hardcode_shlibpath_var
8898
8899 # Set to yes if building a shared library automatically hardcodes DIR into the library
8900 # and all subsequent libraries and executables linked against it.
8901 hardcode_automatic=$hardcode_automatic
8902
8903 # Variables whose values should be saved in libtool wrapper scripts and
8904 # restored at relink time.
8905 variables_saved_for_relink="$variables_saved_for_relink"
8906
8907 # Whether libtool must link a program against all its dependency libraries.
8908 link_all_deplibs=$link_all_deplibs
8909
8910 # Compile-time system search path for libraries
8911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8912
8913 # Run-time system search path for libraries
8914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8915
8916 # Fix the shell variable \$srcfile for the compiler.
8917 fix_srcfile_path="$fix_srcfile_path"
8918
8919 # Set to yes if exported symbols are required.
8920 always_export_symbols=$always_export_symbols
8921
8922 # The commands to list exported symbols.
8923 export_symbols_cmds=$lt_export_symbols_cmds
8924
8925 # The commands to extract the exported symbol list from a shared archive.
8926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8927
8928 # Symbols that should not be listed in the preloaded symbols.
8929 exclude_expsyms=$lt_exclude_expsyms
8930
8931 # Symbols that must always be exported.
8932 include_expsyms=$lt_include_expsyms
8933
8934 # ### END LIBTOOL CONFIG
8935
8936 __EOF__
8937
8938
8939 case $host_os in
8940 aix3*)
8941 cat <<\EOF >> "$cfgfile"
8942
8943 # AIX sometimes has problems with the GCC collect2 program. For some
8944 # reason, if we set the COLLECT_NAMES environment variable, the problems
8945 # vanish in a puff of smoke.
8946 if test "X${COLLECT_NAMES+set}" != Xset; then
8947 COLLECT_NAMES=
8948 export COLLECT_NAMES
8949 fi
8950 EOF
8951 ;;
8952 esac
8953
8954 # We use sed instead of cat because bash on DJGPP gets confused if
8955 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8956 # text mode, it properly converts lines to CR/LF. This bash problem
8957 # is reportedly fixed, but why not run on old versions too?
8958 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8959
8960 mv -f "$cfgfile" "$ofile" || \
8961 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8962 chmod +x "$ofile"
8963
8964 else
8965 # If there is no Makefile yet, we rely on a make rule to execute
8966 # `config.status --recheck' to rerun these tests and create the
8967 # libtool script then.
8968 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8969 if test -f "$ltmain_in"; then
8970 test -f Makefile && make "$ltmain"
8971 fi
8972 fi
8973
8974
8975 ac_ext=c
8976 ac_cpp='$CPP $CPPFLAGS'
8977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980
8981 CC="$lt_save_CC"
8982
8983
8984 # Check whether --with-tags or --without-tags was given.
8985 if test "${with_tags+set}" = set; then
8986 withval="$with_tags"
8987 tagnames="$withval"
8988 fi;
8989
8990 if test -f "$ltmain" && test -n "$tagnames"; then
8991 if test ! -f "${ofile}"; then
8992 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8993 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8994 fi
8995
8996 if test -z "$LTCC"; then
8997 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8998 if test -z "$LTCC"; then
8999 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9000 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9001 else
9002 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9003 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9004 fi
9005 fi
9006
9007 # Extract list of available tagged configurations in $ofile.
9008 # Note that this assumes the entire list is on one line.
9009 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9010
9011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9012 for tagname in $tagnames; do
9013 IFS="$lt_save_ifs"
9014 # Check whether tagname contains only valid characters
9015 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9016 "") ;;
9017 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9018 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9019 { (exit 1); exit 1; }; }
9020 ;;
9021 esac
9022
9023 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9024 then
9025 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9026 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9027 { (exit 1); exit 1; }; }
9028 fi
9029
9030 # Update the list of available tags.
9031 if test -n "$tagname"; then
9032 echo appending configuration tag \"$tagname\" to $ofile
9033
9034 case $tagname in
9035 CXX)
9036 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9037 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9038 (test "X$CXX" != "Xg++"))) ; then
9039 ac_ext=cc
9040 ac_cpp='$CXXCPP $CPPFLAGS'
9041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9044
9045
9046
9047
9048 archive_cmds_need_lc_CXX=no
9049 allow_undefined_flag_CXX=
9050 always_export_symbols_CXX=no
9051 archive_expsym_cmds_CXX=
9052 export_dynamic_flag_spec_CXX=
9053 hardcode_direct_CXX=no
9054 hardcode_libdir_flag_spec_CXX=
9055 hardcode_libdir_flag_spec_ld_CXX=
9056 hardcode_libdir_separator_CXX=
9057 hardcode_minus_L_CXX=no
9058 hardcode_automatic_CXX=no
9059 module_cmds_CXX=
9060 module_expsym_cmds_CXX=
9061 link_all_deplibs_CXX=unknown
9062 old_archive_cmds_CXX=$old_archive_cmds
9063 no_undefined_flag_CXX=
9064 whole_archive_flag_spec_CXX=
9065 enable_shared_with_static_runtimes_CXX=no
9066
9067 # Dependencies to place before and after the object being linked:
9068 predep_objects_CXX=
9069 postdep_objects_CXX=
9070 predeps_CXX=
9071 postdeps_CXX=
9072 compiler_lib_search_path_CXX=
9073
9074 # Source file extension for C++ test sources.
9075 ac_ext=cc
9076
9077 # Object file extension for compiled C++ test sources.
9078 objext=o
9079 objext_CXX=$objext
9080
9081 # Code to be used in simple compile tests
9082 lt_simple_compile_test_code="int some_variable = 0;\n"
9083
9084 # Code to be used in simple link tests
9085 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9086
9087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9088
9089 # If no C compiler was specified, use CC.
9090 LTCC=${LTCC-"$CC"}
9091
9092 # Allow CC to be a program name with arguments.
9093 compiler=$CC
9094
9095
9096 # save warnings/boilerplate of simple test code
9097 ac_outfile=conftest.$ac_objext
9098 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9100 _lt_compiler_boilerplate=`cat conftest.err`
9101 $rm conftest*
9102
9103 ac_outfile=conftest.$ac_objext
9104 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9106 _lt_linker_boilerplate=`cat conftest.err`
9107 $rm conftest*
9108
9109
9110 # Allow CC to be a program name with arguments.
9111 lt_save_CC=$CC
9112 lt_save_LD=$LD
9113 lt_save_GCC=$GCC
9114 GCC=$GXX
9115 lt_save_with_gnu_ld=$with_gnu_ld
9116 lt_save_path_LD=$lt_cv_path_LD
9117 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9118 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9119 else
9120 unset lt_cv_prog_gnu_ld
9121 fi
9122 if test -n "${lt_cv_path_LDCXX+set}"; then
9123 lt_cv_path_LD=$lt_cv_path_LDCXX
9124 else
9125 unset lt_cv_path_LD
9126 fi
9127 test -z "${LDCXX+set}" || LD=$LDCXX
9128 CC=${CXX-"c++"}
9129 compiler=$CC
9130 compiler_CXX=$CC
9131 for cc_temp in $compiler""; do
9132 case $cc_temp in
9133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9135 \-*) ;;
9136 *) break;;
9137 esac
9138 done
9139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9140
9141
9142 # We don't want -fno-exception wen compiling C++ code, so set the
9143 # no_builtin_flag separately
9144 if test "$GXX" = yes; then
9145 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9146 else
9147 lt_prog_compiler_no_builtin_flag_CXX=
9148 fi
9149
9150 if test "$GXX" = yes; then
9151 # Set up default GNU C++ configuration
9152
9153
9154 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9155 if test "${with_gnu_ld+set}" = set; then
9156 withval="$with_gnu_ld"
9157 test "$withval" = no || with_gnu_ld=yes
9158 else
9159 with_gnu_ld=no
9160 fi;
9161 ac_prog=ld
9162 if test "$GCC" = yes; then
9163 # Check if gcc -print-prog-name=ld gives a path.
9164 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9165 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9166 case $host in
9167 *-*-mingw*)
9168 # gcc leaves a trailing carriage return which upsets mingw
9169 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9170 *)
9171 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9172 esac
9173 case $ac_prog in
9174 # Accept absolute paths.
9175 [\\/]* | ?:[\\/]*)
9176 re_direlt='/[^/][^/]*/\.\./'
9177 # Canonicalize the pathname of ld
9178 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9179 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9180 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9181 done
9182 test -z "$LD" && LD="$ac_prog"
9183 ;;
9184 "")
9185 # If it fails, then pretend we aren't using GCC.
9186 ac_prog=ld
9187 ;;
9188 *)
9189 # If it is relative, then search for the first ld in PATH.
9190 with_gnu_ld=unknown
9191 ;;
9192 esac
9193 elif test "$with_gnu_ld" = yes; then
9194 echo "$as_me:$LINENO: checking for GNU ld" >&5
9195 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9196 else
9197 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9198 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9199 fi
9200 if test "${lt_cv_path_LD+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 if test -z "$LD"; then
9204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9205 for ac_dir in $PATH; do
9206 IFS="$lt_save_ifs"
9207 test -z "$ac_dir" && ac_dir=.
9208 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9209 lt_cv_path_LD="$ac_dir/$ac_prog"
9210 # Check to see if the program is GNU ld. I'd rather use --version,
9211 # but apparently some GNU ld's only accept -v.
9212 # Break only if it was the GNU/non-GNU ld that we prefer.
9213 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9214 *GNU* | *'with BFD'*)
9215 test "$with_gnu_ld" != no && break
9216 ;;
9217 *)
9218 test "$with_gnu_ld" != yes && break
9219 ;;
9220 esac
9221 fi
9222 done
9223 IFS="$lt_save_ifs"
9224 else
9225 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9226 fi
9227 fi
9228
9229 LD="$lt_cv_path_LD"
9230 if test -n "$LD"; then
9231 echo "$as_me:$LINENO: result: $LD" >&5
9232 echo "${ECHO_T}$LD" >&6
9233 else
9234 echo "$as_me:$LINENO: result: no" >&5
9235 echo "${ECHO_T}no" >&6
9236 fi
9237 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9238 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9239 { (exit 1); exit 1; }; }
9240 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9241 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9242 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9246 case `$LD -v 2>&1 </dev/null` in
9247 *GNU* | *'with BFD'*)
9248 lt_cv_prog_gnu_ld=yes
9249 ;;
9250 *)
9251 lt_cv_prog_gnu_ld=no
9252 ;;
9253 esac
9254 fi
9255 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9256 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9257 with_gnu_ld=$lt_cv_prog_gnu_ld
9258
9259
9260
9261 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9262 # archiving commands below assume that GNU ld is being used.
9263 if test "$with_gnu_ld" = yes; then
9264 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 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'
9266
9267 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9269
9270 # If archive_cmds runs LD, not CC, wlarc should be empty
9271 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9272 # investigate it a little bit more. (MM)
9273 wlarc='${wl}'
9274
9275 # ancient GNU ld didn't support --whole-archive et. al.
9276 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9277 grep 'no-whole-archive' > /dev/null; then
9278 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9279 else
9280 whole_archive_flag_spec_CXX=
9281 fi
9282 else
9283 with_gnu_ld=no
9284 wlarc=
9285
9286 # A generic and very simple default shared library creation
9287 # command for GNU C++ for the case where it uses the native
9288 # linker, instead of GNU ld. If possible, this setting should
9289 # overridden to take advantage of the native linker features on
9290 # the platform it is being used on.
9291 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9292 fi
9293
9294 # Commands to make compiler produce verbose output that lists
9295 # what "hidden" libraries, object files and flags are used when
9296 # linking a shared library.
9297 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9298
9299 else
9300 GXX=no
9301 with_gnu_ld=no
9302 wlarc=
9303 fi
9304
9305 # PORTME: fill in a description of your system's C++ link characteristics
9306 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9307 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9308 ld_shlibs_CXX=yes
9309 case $host_os in
9310 aix3*)
9311 # FIXME: insert proper C++ library support
9312 ld_shlibs_CXX=no
9313 ;;
9314 aix4* | aix5*)
9315 if test "$host_cpu" = ia64; then
9316 # On IA64, the linker does run time linking by default, so we don't
9317 # have to do anything special.
9318 aix_use_runtimelinking=no
9319 exp_sym_flag='-Bexport'
9320 no_entry_flag=""
9321 else
9322 aix_use_runtimelinking=no
9323
9324 # Test if we are trying to use run time linking or normal
9325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9326 # need to do runtime linking.
9327 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9328 for ld_flag in $LDFLAGS; do
9329 case $ld_flag in
9330 *-brtl*)
9331 aix_use_runtimelinking=yes
9332 break
9333 ;;
9334 esac
9335 done
9336 esac
9337
9338 exp_sym_flag='-bexport'
9339 no_entry_flag='-bnoentry'
9340 fi
9341
9342 # When large executables or shared objects are built, AIX ld can
9343 # have problems creating the table of contents. If linking a library
9344 # or program results in "error TOC overflow" add -mminimal-toc to
9345 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9346 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9347
9348 archive_cmds_CXX=''
9349 hardcode_direct_CXX=yes
9350 hardcode_libdir_separator_CXX=':'
9351 link_all_deplibs_CXX=yes
9352
9353 if test "$GXX" = yes; then
9354 case $host_os in aix4.[012]|aix4.[012].*)
9355 # We only want to do this on AIX 4.2 and lower, the check
9356 # below for broken collect2 doesn't work under 4.3+
9357 collect2name=`${CC} -print-prog-name=collect2`
9358 if test -f "$collect2name" && \
9359 strings "$collect2name" | grep resolve_lib_name >/dev/null
9360 then
9361 # We have reworked collect2
9362 hardcode_direct_CXX=yes
9363 else
9364 # We have old collect2
9365 hardcode_direct_CXX=unsupported
9366 # It fails to find uninstalled libraries when the uninstalled
9367 # path is not listed in the libpath. Setting hardcode_minus_L
9368 # to unsupported forces relinking
9369 hardcode_minus_L_CXX=yes
9370 hardcode_libdir_flag_spec_CXX='-L$libdir'
9371 hardcode_libdir_separator_CXX=
9372 fi
9373 esac
9374 shared_flag='-shared'
9375 if test "$aix_use_runtimelinking" = yes; then
9376 shared_flag="$shared_flag "'${wl}-G'
9377 fi
9378 else
9379 # not using gcc
9380 if test "$host_cpu" = ia64; then
9381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9382 # chokes on -Wl,-G. The following line is correct:
9383 shared_flag='-G'
9384 else
9385 if test "$aix_use_runtimelinking" = yes; then
9386 shared_flag='${wl}-G'
9387 else
9388 shared_flag='${wl}-bM:SRE'
9389 fi
9390 fi
9391 fi
9392
9393 # It seems that -bexpall does not export symbols beginning with
9394 # underscore (_), so it is better to generate a list of symbols to export.
9395 always_export_symbols_CXX=yes
9396 if test "$aix_use_runtimelinking" = yes; then
9397 # Warning - without using the other runtime loading flags (-brtl),
9398 # -berok will link without error, but may produce a broken library.
9399 allow_undefined_flag_CXX='-berok'
9400 # Determine the default libpath from the value encoded in an empty executable.
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407
9408 int
9409 main ()
9410 {
9411
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418 (eval $ac_link) 2>conftest.er1
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -z "$ac_cxx_werror_flag"
9426 || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 (eval $ac_try) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438
9439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9440 }'`
9441 # Check for a 64-bit object if we didn't find anything.
9442 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; }
9443 }'`; fi
9444 else
9445 echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448 fi
9449 rm -f conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9452
9453 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9454
9455 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"
9456 else
9457 if test "$host_cpu" = ia64; then
9458 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9459 allow_undefined_flag_CXX="-z nodefs"
9460 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"
9461 else
9462 # Determine the default libpath from the value encoded in an empty executable.
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469
9470 int
9471 main ()
9472 {
9473
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480 (eval $ac_link) 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -z "$ac_cxx_werror_flag"
9488 || test ! -s conftest.err'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; } &&
9494 { ac_try='test -s conftest$ac_exeext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9500
9501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9502 }'`
9503 # Check for a 64-bit object if we didn't find anything.
9504 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; }
9505 }'`; fi
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 fi
9511 rm -f conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9514
9515 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9516 # Warning - without using the other run time loading flags,
9517 # -berok will link without error, but may produce a broken library.
9518 no_undefined_flag_CXX=' ${wl}-bernotok'
9519 allow_undefined_flag_CXX=' ${wl}-berok'
9520 # -bexpall does not export symbols beginning with underscore (_)
9521 always_export_symbols_CXX=yes
9522 # Exported symbols can be pulled into shared objects from archives
9523 whole_archive_flag_spec_CXX=' '
9524 archive_cmds_need_lc_CXX=yes
9525 # This is similar to how AIX traditionally builds it's shared libraries.
9526 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'
9527 fi
9528 fi
9529 ;;
9530 chorus*)
9531 case $cc_basename in
9532 *)
9533 # FIXME: insert proper C++ library support
9534 ld_shlibs_CXX=no
9535 ;;
9536 esac
9537 ;;
9538
9539
9540 cygwin* | mingw* | pw32*)
9541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9542 # as there is no search path for DLLs.
9543 hardcode_libdir_flag_spec_CXX='-L$libdir'
9544 allow_undefined_flag_CXX=unsupported
9545 always_export_symbols_CXX=no
9546 enable_shared_with_static_runtimes_CXX=yes
9547
9548 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9549 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'
9550 # If the export-symbols file already is a .def file (1st line
9551 # is EXPORTS), use it as is; otherwise, prepend...
9552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9553 cp $export_symbols $output_objdir/$soname.def;
9554 else
9555 echo EXPORTS > $output_objdir/$soname.def;
9556 cat $export_symbols >> $output_objdir/$soname.def;
9557 fi~
9558 $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'
9559 else
9560 ld_shlibs_CXX=no
9561 fi
9562 ;;
9563 darwin* | rhapsody*)
9564 case "$host_os" in
9565 rhapsody* | darwin1.[012])
9566 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9567 ;;
9568 *) # Darwin 1.3 on
9569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9570 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9571 else
9572 case ${MACOSX_DEPLOYMENT_TARGET} in
9573 10.[012])
9574 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9575 ;;
9576 10.*)
9577 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9578 ;;
9579 esac
9580 fi
9581 ;;
9582 esac
9583 archive_cmds_need_lc_CXX=no
9584 hardcode_direct_CXX=no
9585 hardcode_automatic_CXX=yes
9586 hardcode_shlibpath_var_CXX=unsupported
9587 whole_archive_flag_spec_CXX=''
9588 link_all_deplibs_CXX=yes
9589
9590 if test "$GXX" = yes ; then
9591 lt_int_apple_cc_single_mod=no
9592 output_verbose_link_cmd='echo'
9593 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9594 lt_int_apple_cc_single_mod=yes
9595 fi
9596 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9597 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9598 else
9599 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9600 fi
9601 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9603 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9604 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}'
9605 else
9606 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9607 fi
9608 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9609 else
9610 case $cc_basename in
9611 xlc*)
9612 output_verbose_link_cmd='echo'
9613 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9614 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9615 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9616 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9617 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9618 ;;
9619 *)
9620 ld_shlibs_CXX=no
9621 ;;
9622 esac
9623 fi
9624 ;;
9625
9626 dgux*)
9627 case $cc_basename in
9628 ec++*)
9629 # FIXME: insert proper C++ library support
9630 ld_shlibs_CXX=no
9631 ;;
9632 ghcx*)
9633 # Green Hills C++ Compiler
9634 # FIXME: insert proper C++ library support
9635 ld_shlibs_CXX=no
9636 ;;
9637 *)
9638 # FIXME: insert proper C++ library support
9639 ld_shlibs_CXX=no
9640 ;;
9641 esac
9642 ;;
9643 freebsd[12]*)
9644 # C++ shared libraries reported to be fairly broken before switch to ELF
9645 ld_shlibs_CXX=no
9646 ;;
9647 freebsd-elf*)
9648 archive_cmds_need_lc_CXX=no
9649 ;;
9650 freebsd* | kfreebsd*-gnu | dragonfly*)
9651 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9652 # conventions
9653 ld_shlibs_CXX=yes
9654 ;;
9655 gnu*)
9656 ;;
9657 hpux9*)
9658 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9659 hardcode_libdir_separator_CXX=:
9660 export_dynamic_flag_spec_CXX='${wl}-E'
9661 hardcode_direct_CXX=yes
9662 hardcode_minus_L_CXX=yes # Not in the search PATH,
9663 # but as the default
9664 # location of the library.
9665
9666 case $cc_basename in
9667 CC*)
9668 # FIXME: insert proper C++ library support
9669 ld_shlibs_CXX=no
9670 ;;
9671 aCC*)
9672 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'
9673 # Commands to make compiler produce verbose output that lists
9674 # what "hidden" libraries, object files and flags are used when
9675 # linking a shared library.
9676 #
9677 # There doesn't appear to be a way to prevent this compiler from
9678 # explicitly linking system object files so we need to strip them
9679 # from the output so that they don't get included in the library
9680 # dependencies.
9681 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'
9682 ;;
9683 *)
9684 if test "$GXX" = yes; then
9685 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'
9686 else
9687 # FIXME: insert proper C++ library support
9688 ld_shlibs_CXX=no
9689 fi
9690 ;;
9691 esac
9692 ;;
9693 hpux10*|hpux11*)
9694 if test $with_gnu_ld = no; then
9695 case "$host_cpu" in
9696 hppa*64*)
9697 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9698 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9699 hardcode_libdir_separator_CXX=:
9700 ;;
9701 ia64*)
9702 hardcode_libdir_flag_spec_CXX='-L$libdir'
9703 ;;
9704 *)
9705 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9706 hardcode_libdir_separator_CXX=:
9707 export_dynamic_flag_spec_CXX='${wl}-E'
9708 ;;
9709 esac
9710 fi
9711 case "$host_cpu" in
9712 hppa*64*)
9713 hardcode_direct_CXX=no
9714 hardcode_shlibpath_var_CXX=no
9715 ;;
9716 ia64*)
9717 hardcode_direct_CXX=no
9718 hardcode_shlibpath_var_CXX=no
9719 hardcode_minus_L_CXX=yes # Not in the search PATH,
9720 # but as the default
9721 # location of the library.
9722 ;;
9723 *)
9724 hardcode_direct_CXX=yes
9725 hardcode_minus_L_CXX=yes # Not in the search PATH,
9726 # but as the default
9727 # location of the library.
9728 ;;
9729 esac
9730
9731 case $cc_basename in
9732 CC*)
9733 # FIXME: insert proper C++ library support
9734 ld_shlibs_CXX=no
9735 ;;
9736 aCC*)
9737 case "$host_cpu" in
9738 hppa*64*|ia64*)
9739 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9740 ;;
9741 *)
9742 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9743 ;;
9744 esac
9745 # Commands to make compiler produce verbose output that lists
9746 # what "hidden" libraries, object files and flags are used when
9747 # linking a shared library.
9748 #
9749 # There doesn't appear to be a way to prevent this compiler from
9750 # explicitly linking system object files so we need to strip them
9751 # from the output so that they don't get included in the library
9752 # dependencies.
9753 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'
9754 ;;
9755 *)
9756 if test "$GXX" = yes; then
9757 if test $with_gnu_ld = no; then
9758 case "$host_cpu" in
9759 ia64*|hppa*64*)
9760 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9761 ;;
9762 *)
9763 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'
9764 ;;
9765 esac
9766 fi
9767 else
9768 # FIXME: insert proper C++ library support
9769 ld_shlibs_CXX=no
9770 fi
9771 ;;
9772 esac
9773 ;;
9774 irix5* | irix6*)
9775 case $cc_basename in
9776 CC*)
9777 # SGI C++
9778 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 ${output_objdir}/so_locations -o $lib'
9779
9780 # Archives containing C++ object files must be created using
9781 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9782 # necessary to make sure instantiated templates are included
9783 # in the archive.
9784 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9785 ;;
9786 *)
9787 if test "$GXX" = yes; then
9788 if test "$with_gnu_ld" = no; then
9789 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}${output_objdir}/so_locations -o $lib'
9790 else
9791 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'
9792 fi
9793 fi
9794 link_all_deplibs_CXX=yes
9795 ;;
9796 esac
9797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9798 hardcode_libdir_separator_CXX=:
9799 ;;
9800 linux*)
9801 case $cc_basename in
9802 KCC*)
9803 # Kuck and Associates, Inc. (KAI) C++ Compiler
9804
9805 # KCC will only create a shared library if the output file
9806 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9807 # to its proper name (with version) after linking.
9808 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'
9809 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'
9810 # Commands to make compiler produce verbose output that lists
9811 # what "hidden" libraries, object files and flags are used when
9812 # linking a shared library.
9813 #
9814 # There doesn't appear to be a way to prevent this compiler from
9815 # explicitly linking system object files so we need to strip them
9816 # from the output so that they don't get included in the library
9817 # dependencies.
9818 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'
9819
9820 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9822
9823 # Archives containing C++ object files must be created using
9824 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9825 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9826 ;;
9827 icpc*)
9828 # Intel C++
9829 with_gnu_ld=yes
9830 # version 8.0 and above of icpc choke on multiply defined symbols
9831 # if we add $predep_objects and $postdep_objects, however 7.1 and
9832 # earlier do not add the objects themselves.
9833 case `$CC -V 2>&1` in
9834 *"Version 7."*)
9835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 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'
9837 ;;
9838 *) # Version 8.0 or newer
9839 tmp_idyn=
9840 case $host_cpu in
9841 ia64*) tmp_idyn=' -i_dynamic';;
9842 esac
9843 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9845 ;;
9846 esac
9847 archive_cmds_need_lc_CXX=no
9848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9850 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9851 ;;
9852 pgCC*)
9853 # Portland Group C++ compiler
9854 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9855 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9856
9857 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9859 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9860 ;;
9861 cxx*)
9862 # Compaq C++
9863 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 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'
9865
9866 runpath_var=LD_RUN_PATH
9867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9868 hardcode_libdir_separator_CXX=:
9869
9870 # Commands to make compiler produce verbose output that lists
9871 # what "hidden" libraries, object files and flags are used when
9872 # linking a shared library.
9873 #
9874 # There doesn't appear to be a way to prevent this compiler from
9875 # explicitly linking system object files so we need to strip them
9876 # from the output so that they don't get included in the library
9877 # dependencies.
9878 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'
9879 ;;
9880 esac
9881 ;;
9882 lynxos*)
9883 # FIXME: insert proper C++ library support
9884 ld_shlibs_CXX=no
9885 ;;
9886 m88k*)
9887 # FIXME: insert proper C++ library support
9888 ld_shlibs_CXX=no
9889 ;;
9890 mvs*)
9891 case $cc_basename in
9892 cxx*)
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 ;;
9896 *)
9897 # FIXME: insert proper C++ library support
9898 ld_shlibs_CXX=no
9899 ;;
9900 esac
9901 ;;
9902 netbsd*)
9903 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9904 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9905 wlarc=
9906 hardcode_libdir_flag_spec_CXX='-R$libdir'
9907 hardcode_direct_CXX=yes
9908 hardcode_shlibpath_var_CXX=no
9909 fi
9910 # Workaround some broken pre-1.5 toolchains
9911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9912 ;;
9913 openbsd2*)
9914 # C++ shared libraries are fairly broken
9915 ld_shlibs_CXX=no
9916 ;;
9917 openbsd*)
9918 hardcode_direct_CXX=yes
9919 hardcode_shlibpath_var_CXX=no
9920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9923 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9924 export_dynamic_flag_spec_CXX='${wl}-E'
9925 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9926 fi
9927 output_verbose_link_cmd='echo'
9928 ;;
9929 osf3*)
9930 case $cc_basename in
9931 KCC*)
9932 # Kuck and Associates, Inc. (KAI) C++ Compiler
9933
9934 # KCC will only create a shared library if the output file
9935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9936 # to its proper name (with version) after linking.
9937 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'
9938
9939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9940 hardcode_libdir_separator_CXX=:
9941
9942 # Archives containing C++ object files must be created using
9943 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9944 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9945
9946 ;;
9947 RCC*)
9948 # Rational C++ 2.4.1
9949 # FIXME: insert proper C++ library support
9950 ld_shlibs_CXX=no
9951 ;;
9952 cxx*)
9953 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9954 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 ${output_objdir}/so_locations -o $lib'
9955
9956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator_CXX=:
9958
9959 # Commands to make compiler produce verbose output that lists
9960 # what "hidden" libraries, object files and flags are used when
9961 # linking a shared library.
9962 #
9963 # There doesn't appear to be a way to prevent this compiler from
9964 # explicitly linking system object files so we need to strip them
9965 # from the output so that they don't get included in the library
9966 # dependencies.
9967 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'
9968 ;;
9969 *)
9970 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9971 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9972 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}${output_objdir}/so_locations -o $lib'
9973
9974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9975 hardcode_libdir_separator_CXX=:
9976
9977 # Commands to make compiler produce verbose output that lists
9978 # what "hidden" libraries, object files and flags are used when
9979 # linking a shared library.
9980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9981
9982 else
9983 # FIXME: insert proper C++ library support
9984 ld_shlibs_CXX=no
9985 fi
9986 ;;
9987 esac
9988 ;;
9989 osf4* | osf5*)
9990 case $cc_basename in
9991 KCC*)
9992 # Kuck and Associates, Inc. (KAI) C++ Compiler
9993
9994 # KCC will only create a shared library if the output file
9995 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9996 # to its proper name (with version) after linking.
9997 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'
9998
9999 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10000 hardcode_libdir_separator_CXX=:
10001
10002 # Archives containing C++ object files must be created using
10003 # the KAI C++ compiler.
10004 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10005 ;;
10006 RCC*)
10007 # Rational C++ 2.4.1
10008 # FIXME: insert proper C++ library support
10009 ld_shlibs_CXX=no
10010 ;;
10011 cxx*)
10012 allow_undefined_flag_CXX=' -expect_unresolved \*'
10013 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 ${output_objdir}/so_locations -o $lib'
10014 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10015 echo "-hidden">> $lib.exp~
10016 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10017 $rm $lib.exp'
10018
10019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10020 hardcode_libdir_separator_CXX=:
10021
10022 # Commands to make compiler produce verbose output that lists
10023 # what "hidden" libraries, object files and flags are used when
10024 # linking a shared library.
10025 #
10026 # There doesn't appear to be a way to prevent this compiler from
10027 # explicitly linking system object files so we need to strip them
10028 # from the output so that they don't get included in the library
10029 # dependencies.
10030 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'
10031 ;;
10032 *)
10033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10035 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}${output_objdir}/so_locations -o $lib'
10036
10037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10038 hardcode_libdir_separator_CXX=:
10039
10040 # Commands to make compiler produce verbose output that lists
10041 # what "hidden" libraries, object files and flags are used when
10042 # linking a shared library.
10043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10044
10045 else
10046 # FIXME: insert proper C++ library support
10047 ld_shlibs_CXX=no
10048 fi
10049 ;;
10050 esac
10051 ;;
10052 psos*)
10053 # FIXME: insert proper C++ library support
10054 ld_shlibs_CXX=no
10055 ;;
10056 sco*)
10057 archive_cmds_need_lc_CXX=no
10058 case $cc_basename in
10059 CC*)
10060 # FIXME: insert proper C++ library support
10061 ld_shlibs_CXX=no
10062 ;;
10063 *)
10064 # FIXME: insert proper C++ library support
10065 ld_shlibs_CXX=no
10066 ;;
10067 esac
10068 ;;
10069 sunos4*)
10070 case $cc_basename in
10071 CC*)
10072 # Sun C++ 4.x
10073 # FIXME: insert proper C++ library support
10074 ld_shlibs_CXX=no
10075 ;;
10076 lcc*)
10077 # Lucid
10078 # FIXME: insert proper C++ library support
10079 ld_shlibs_CXX=no
10080 ;;
10081 *)
10082 # FIXME: insert proper C++ library support
10083 ld_shlibs_CXX=no
10084 ;;
10085 esac
10086 ;;
10087 solaris*)
10088 case $cc_basename in
10089 CC*)
10090 # Sun C++ 4.2, 5.x and Centerline C++
10091 no_undefined_flag_CXX=' -zdefs'
10092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10093 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10094 $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'
10095
10096 hardcode_libdir_flag_spec_CXX='-R$libdir'
10097 hardcode_shlibpath_var_CXX=no
10098 case $host_os in
10099 solaris2.[0-5] | solaris2.[0-5].*) ;;
10100 *)
10101 # The C++ compiler is used as linker so we must use $wl
10102 # flag to pass the commands to the underlying system
10103 # linker. We must also pass each convience library through
10104 # to the system linker between allextract/defaultextract.
10105 # The C++ compiler will combine linker options so we
10106 # cannot just pass the convience library names through
10107 # without $wl.
10108 # Supported since Solaris 2.6 (maybe 2.5.1?)
10109 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10110 ;;
10111 esac
10112 link_all_deplibs_CXX=yes
10113
10114 # Commands to make compiler produce verbose output that lists
10115 # what "hidden" libraries, object files and flags are used when
10116 # linking a shared library.
10117 #
10118 # There doesn't appear to be a way to prevent this compiler from
10119 # explicitly linking system object files so we need to strip them
10120 # from the output so that they don't get included in the library
10121 # dependencies.
10122 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'
10123
10124 # Archives containing C++ object files must be created using
10125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10126 # necessary to make sure instantiated templates are included
10127 # in the archive.
10128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10129 ;;
10130 gcx*)
10131 # Green Hills C++ Compiler
10132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10133
10134 # The C++ compiler must be used to create the archive.
10135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10136 ;;
10137 *)
10138 # GNU C++ compiler with Solaris linker
10139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10141 if $CC --version | grep -v '^2\.7' > /dev/null; then
10142 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10143 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10144 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10145
10146 # Commands to make compiler produce verbose output that lists
10147 # what "hidden" libraries, object files and flags are used when
10148 # linking a shared library.
10149 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10150 else
10151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10152 # platform.
10153 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10154 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10155 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10156
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10160 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10161 fi
10162
10163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10164 fi
10165 ;;
10166 esac
10167 ;;
10168 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10169 archive_cmds_need_lc_CXX=no
10170 ;;
10171 tandem*)
10172 case $cc_basename in
10173 NCC*)
10174 # NonStop-UX NCC 3.20
10175 # FIXME: insert proper C++ library support
10176 ld_shlibs_CXX=no
10177 ;;
10178 *)
10179 # FIXME: insert proper C++ library support
10180 ld_shlibs_CXX=no
10181 ;;
10182 esac
10183 ;;
10184 vxworks*)
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10187 ;;
10188 *)
10189 # FIXME: insert proper C++ library support
10190 ld_shlibs_CXX=no
10191 ;;
10192 esac
10193 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10194 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10195 test "$ld_shlibs_CXX" = no && can_build_shared=no
10196
10197 GCC_CXX="$GXX"
10198 LD_CXX="$LD"
10199
10200 ## CAVEAT EMPTOR:
10201 ## There is no encapsulation within the following macros, do not change
10202 ## the running order or otherwise move them around unless you know exactly
10203 ## what you are doing...
10204
10205 cat > conftest.$ac_ext <<EOF
10206 class Foo
10207 {
10208 public:
10209 Foo (void) { a = 0; }
10210 private:
10211 int a;
10212 };
10213 EOF
10214
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; then
10220 # Parse the compiler output and extract the necessary
10221 # objects, libraries and library flags.
10222
10223 # Sentinel used to keep track of whether or not we are before
10224 # the conftest object file.
10225 pre_test_object_deps_done=no
10226
10227 # The `*' in the case matches for architectures that use `case' in
10228 # $output_verbose_cmd can trigger glob expansion during the loop
10229 # eval without this substitution.
10230 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10231
10232 for p in `eval $output_verbose_link_cmd`; do
10233 case $p in
10234
10235 -L* | -R* | -l*)
10236 # Some compilers place space between "-{L,R}" and the path.
10237 # Remove the space.
10238 if test $p = "-L" \
10239 || test $p = "-R"; then
10240 prev=$p
10241 continue
10242 else
10243 prev=
10244 fi
10245
10246 if test "$pre_test_object_deps_done" = no; then
10247 case $p in
10248 -L* | -R*)
10249 # Internal compiler library paths should come after those
10250 # provided the user. The postdeps already come after the
10251 # user supplied libs so there is no need to process them.
10252 if test -z "$compiler_lib_search_path_CXX"; then
10253 compiler_lib_search_path_CXX="${prev}${p}"
10254 else
10255 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10256 fi
10257 ;;
10258 # The "-l" case would never come before the object being
10259 # linked, so don't bother handling this case.
10260 esac
10261 else
10262 if test -z "$postdeps_CXX"; then
10263 postdeps_CXX="${prev}${p}"
10264 else
10265 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10266 fi
10267 fi
10268 ;;
10269
10270 *.$objext)
10271 # This assumes that the test object file only shows up
10272 # once in the compiler output.
10273 if test "$p" = "conftest.$objext"; then
10274 pre_test_object_deps_done=yes
10275 continue
10276 fi
10277
10278 if test "$pre_test_object_deps_done" = no; then
10279 if test -z "$predep_objects_CXX"; then
10280 predep_objects_CXX="$p"
10281 else
10282 predep_objects_CXX="$predep_objects_CXX $p"
10283 fi
10284 else
10285 if test -z "$postdep_objects_CXX"; then
10286 postdep_objects_CXX="$p"
10287 else
10288 postdep_objects_CXX="$postdep_objects_CXX $p"
10289 fi
10290 fi
10291 ;;
10292
10293 *) ;; # Ignore the rest.
10294
10295 esac
10296 done
10297
10298 # Clean up.
10299 rm -f a.out a.exe
10300 else
10301 echo "libtool.m4: error: problem compiling CXX test program"
10302 fi
10303
10304 $rm -f confest.$objext
10305
10306 case " $postdeps_CXX " in
10307 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10308 esac
10309
10310 lt_prog_compiler_wl_CXX=
10311 lt_prog_compiler_pic_CXX=
10312 lt_prog_compiler_static_CXX=
10313
10314 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10316
10317 # C++ specific cases for pic, static, wl, etc.
10318 if test "$GXX" = yes; then
10319 lt_prog_compiler_wl_CXX='-Wl,'
10320 lt_prog_compiler_static_CXX='-static'
10321
10322 case $host_os in
10323 aix*)
10324 # All AIX code is PIC.
10325 if test "$host_cpu" = ia64; then
10326 # AIX 5 now supports IA64 processor
10327 lt_prog_compiler_static_CXX='-Bstatic'
10328 fi
10329 ;;
10330 amigaos*)
10331 # FIXME: we need at least 68020 code to build shared libraries, but
10332 # adding the `-m68020' flag to GCC prevents building anything better,
10333 # like `-m68040'.
10334 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10335 ;;
10336 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10337 # PIC is the default for these OSes.
10338 ;;
10339 mingw* | os2* | pw32*)
10340 # This hack is so that the source file can tell whether it is being
10341 # built for inclusion in a dll (and should export symbols for example).
10342 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10343 ;;
10344 darwin* | rhapsody*)
10345 # PIC is the default on this platform
10346 # Common symbols not allowed in MH_DYLIB files
10347 lt_prog_compiler_pic_CXX='-fno-common'
10348 ;;
10349 *djgpp*)
10350 # DJGPP does not support shared libraries at all
10351 lt_prog_compiler_pic_CXX=
10352 ;;
10353 sysv4*MP*)
10354 if test -d /usr/nec; then
10355 lt_prog_compiler_pic_CXX=-Kconform_pic
10356 fi
10357 ;;
10358 hpux*)
10359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10360 # not for PA HP-UX.
10361 case "$host_cpu" in
10362 hppa*64*|ia64*)
10363 ;;
10364 *)
10365 lt_prog_compiler_pic_CXX='-fPIC'
10366 ;;
10367 esac
10368 ;;
10369 *)
10370 lt_prog_compiler_pic_CXX='-fPIC'
10371 ;;
10372 esac
10373 else
10374 case $host_os in
10375 aix4* | aix5*)
10376 # All AIX code is PIC.
10377 if test "$host_cpu" = ia64; then
10378 # AIX 5 now supports IA64 processor
10379 lt_prog_compiler_static_CXX='-Bstatic'
10380 else
10381 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10382 fi
10383 ;;
10384 chorus*)
10385 case $cc_basename in
10386 cxch68*)
10387 # Green Hills C++ Compiler
10388 # _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"
10389 ;;
10390 esac
10391 ;;
10392 darwin*)
10393 # PIC is the default on this platform
10394 # Common symbols not allowed in MH_DYLIB files
10395 case $cc_basename in
10396 xlc*)
10397 lt_prog_compiler_pic_CXX='-qnocommon'
10398 lt_prog_compiler_wl_CXX='-Wl,'
10399 ;;
10400 esac
10401 ;;
10402 dgux*)
10403 case $cc_basename in
10404 ec++*)
10405 lt_prog_compiler_pic_CXX='-KPIC'
10406 ;;
10407 ghcx*)
10408 # Green Hills C++ Compiler
10409 lt_prog_compiler_pic_CXX='-pic'
10410 ;;
10411 *)
10412 ;;
10413 esac
10414 ;;
10415 freebsd* | kfreebsd*-gnu | dragonfly*)
10416 # FreeBSD uses GNU C++
10417 ;;
10418 hpux9* | hpux10* | hpux11*)
10419 case $cc_basename in
10420 CC*)
10421 lt_prog_compiler_wl_CXX='-Wl,'
10422 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10423 if test "$host_cpu" != ia64; then
10424 lt_prog_compiler_pic_CXX='+Z'
10425 fi
10426 ;;
10427 aCC*)
10428 lt_prog_compiler_wl_CXX='-Wl,'
10429 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10430 case "$host_cpu" in
10431 hppa*64*|ia64*)
10432 # +Z the default
10433 ;;
10434 *)
10435 lt_prog_compiler_pic_CXX='+Z'
10436 ;;
10437 esac
10438 ;;
10439 *)
10440 ;;
10441 esac
10442 ;;
10443 irix5* | irix6* | nonstopux*)
10444 case $cc_basename in
10445 CC*)
10446 lt_prog_compiler_wl_CXX='-Wl,'
10447 lt_prog_compiler_static_CXX='-non_shared'
10448 # CC pic flag -KPIC is the default.
10449 ;;
10450 *)
10451 ;;
10452 esac
10453 ;;
10454 linux*)
10455 case $cc_basename in
10456 KCC*)
10457 # KAI C++ Compiler
10458 lt_prog_compiler_wl_CXX='--backend -Wl,'
10459 lt_prog_compiler_pic_CXX='-fPIC'
10460 ;;
10461 icpc* | ecpc*)
10462 # Intel C++
10463 lt_prog_compiler_wl_CXX='-Wl,'
10464 lt_prog_compiler_pic_CXX='-KPIC'
10465 lt_prog_compiler_static_CXX='-static'
10466 ;;
10467 pgCC*)
10468 # Portland Group C++ compiler.
10469 lt_prog_compiler_wl_CXX='-Wl,'
10470 lt_prog_compiler_pic_CXX='-fpic'
10471 lt_prog_compiler_static_CXX='-static'
10472 ;;
10473 cxx*)
10474 # Compaq C++
10475 # Make sure the PIC flag is empty. It appears that all Alpha
10476 # Linux and Compaq Tru64 Unix objects are PIC.
10477 lt_prog_compiler_pic_CXX=
10478 lt_prog_compiler_static_CXX='-non_shared'
10479 ;;
10480 *)
10481 ;;
10482 esac
10483 ;;
10484 lynxos*)
10485 ;;
10486 m88k*)
10487 ;;
10488 mvs*)
10489 case $cc_basename in
10490 cxx*)
10491 lt_prog_compiler_pic_CXX='-W c,exportall'
10492 ;;
10493 *)
10494 ;;
10495 esac
10496 ;;
10497 netbsd*)
10498 ;;
10499 osf3* | osf4* | osf5*)
10500 case $cc_basename in
10501 KCC*)
10502 lt_prog_compiler_wl_CXX='--backend -Wl,'
10503 ;;
10504 RCC*)
10505 # Rational C++ 2.4.1
10506 lt_prog_compiler_pic_CXX='-pic'
10507 ;;
10508 cxx*)
10509 # Digital/Compaq C++
10510 lt_prog_compiler_wl_CXX='-Wl,'
10511 # Make sure the PIC flag is empty. It appears that all Alpha
10512 # Linux and Compaq Tru64 Unix objects are PIC.
10513 lt_prog_compiler_pic_CXX=
10514 lt_prog_compiler_static_CXX='-non_shared'
10515 ;;
10516 *)
10517 ;;
10518 esac
10519 ;;
10520 psos*)
10521 ;;
10522 sco*)
10523 case $cc_basename in
10524 CC*)
10525 lt_prog_compiler_pic_CXX='-fPIC'
10526 ;;
10527 *)
10528 ;;
10529 esac
10530 ;;
10531 solaris*)
10532 case $cc_basename in
10533 CC*)
10534 # Sun C++ 4.2, 5.x and Centerline C++
10535 lt_prog_compiler_pic_CXX='-KPIC'
10536 lt_prog_compiler_static_CXX='-Bstatic'
10537 lt_prog_compiler_wl_CXX='-Qoption ld '
10538 ;;
10539 gcx*)
10540 # Green Hills C++ Compiler
10541 lt_prog_compiler_pic_CXX='-PIC'
10542 ;;
10543 *)
10544 ;;
10545 esac
10546 ;;
10547 sunos4*)
10548 case $cc_basename in
10549 CC*)
10550 # Sun C++ 4.x
10551 lt_prog_compiler_pic_CXX='-pic'
10552 lt_prog_compiler_static_CXX='-Bstatic'
10553 ;;
10554 lcc*)
10555 # Lucid
10556 lt_prog_compiler_pic_CXX='-pic'
10557 ;;
10558 *)
10559 ;;
10560 esac
10561 ;;
10562 tandem*)
10563 case $cc_basename in
10564 NCC*)
10565 # NonStop-UX NCC 3.20
10566 lt_prog_compiler_pic_CXX='-KPIC'
10567 ;;
10568 *)
10569 ;;
10570 esac
10571 ;;
10572 unixware*)
10573 ;;
10574 vxworks*)
10575 ;;
10576 *)
10577 lt_prog_compiler_can_build_shared_CXX=no
10578 ;;
10579 esac
10580 fi
10581
10582 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10583 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10584
10585 #
10586 # Check to make sure the PIC flag actually works.
10587 #
10588 if test -n "$lt_prog_compiler_pic_CXX"; then
10589
10590 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10592 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 lt_prog_compiler_pic_works_CXX=no
10596 ac_outfile=conftest.$ac_objext
10597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10599 # Insert the option either (1) after the last *FLAGS variable, or
10600 # (2) before a word containing "conftest.", or (3) at the end.
10601 # Note that $ac_compile itself does not contain backslashes and begins
10602 # with a dollar sign (not a hyphen), so the echo should work correctly.
10603 # The option is referenced via a variable to avoid confusing sed.
10604 lt_compile=`echo "$ac_compile" | $SED \
10605 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10607 -e 's:$: $lt_compiler_flag:'`
10608 (eval echo "\"\$as_me:10608: $lt_compile\"" >&5)
10609 (eval "$lt_compile" 2>conftest.err)
10610 ac_status=$?
10611 cat conftest.err >&5
10612 echo "$as_me:10612: \$? = $ac_status" >&5
10613 if (exit $ac_status) && test -s "$ac_outfile"; then
10614 # The compiler can only warn and ignore the option if not recognized
10615 # So say no if there are warnings other than the usual output.
10616 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10617 $SED '/^$/d' conftest.err >conftest.er2
10618 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10619 lt_prog_compiler_pic_works_CXX=yes
10620 fi
10621 fi
10622 $rm conftest*
10623
10624 fi
10625 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10626 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10627
10628 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10629 case $lt_prog_compiler_pic_CXX in
10630 "" | " "*) ;;
10631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10632 esac
10633 else
10634 lt_prog_compiler_pic_CXX=
10635 lt_prog_compiler_can_build_shared_CXX=no
10636 fi
10637
10638 fi
10639 case "$host_os" in
10640 # For platforms which do not support PIC, -DPIC is meaningless:
10641 *djgpp*)
10642 lt_prog_compiler_pic_CXX=
10643 ;;
10644 *)
10645 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10646 ;;
10647 esac
10648
10649 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10650 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10651 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 lt_cv_prog_compiler_c_o_CXX=no
10655 $rm -r conftest 2>/dev/null
10656 mkdir conftest
10657 cd conftest
10658 mkdir out
10659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10660
10661 lt_compiler_flag="-o out/conftest2.$ac_objext"
10662 # Insert the option either (1) after the last *FLAGS variable, or
10663 # (2) before a word containing "conftest.", or (3) at the end.
10664 # Note that $ac_compile itself does not contain backslashes and begins
10665 # with a dollar sign (not a hyphen), so the echo should work correctly.
10666 lt_compile=`echo "$ac_compile" | $SED \
10667 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10669 -e 's:$: $lt_compiler_flag:'`
10670 (eval echo "\"\$as_me:10670: $lt_compile\"" >&5)
10671 (eval "$lt_compile" 2>out/conftest.err)
10672 ac_status=$?
10673 cat out/conftest.err >&5
10674 echo "$as_me:10674: \$? = $ac_status" >&5
10675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10676 then
10677 # The compiler can only warn and ignore the option if not recognized
10678 # So say no if there are warnings
10679 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10680 $SED '/^$/d' out/conftest.err >out/conftest.er2
10681 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10682 lt_cv_prog_compiler_c_o_CXX=yes
10683 fi
10684 fi
10685 chmod u+w .
10686 $rm conftest*
10687 # SGI C++ compiler will create directory out/ii_files/ for
10688 # template instantiation
10689 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10690 $rm out/* && rmdir out
10691 cd ..
10692 rmdir conftest
10693 $rm conftest*
10694
10695 fi
10696 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10697 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10698
10699
10700 hard_links="nottested"
10701 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10702 # do not overwrite the value of need_locks provided by the user
10703 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10704 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10705 hard_links=yes
10706 $rm conftest*
10707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10708 touch conftest.a
10709 ln conftest.a conftest.b 2>&5 || hard_links=no
10710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10711 echo "$as_me:$LINENO: result: $hard_links" >&5
10712 echo "${ECHO_T}$hard_links" >&6
10713 if test "$hard_links" = no; then
10714 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10715 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10716 need_locks=warn
10717 fi
10718 else
10719 need_locks=no
10720 fi
10721
10722 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10723 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10724
10725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10726 case $host_os in
10727 aix4* | aix5*)
10728 # If we're using GNU nm, then we don't want the "-C" option.
10729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10731 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'
10732 else
10733 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'
10734 fi
10735 ;;
10736 pw32*)
10737 export_symbols_cmds_CXX="$ltdll_cmds"
10738 ;;
10739 cygwin* | mingw*)
10740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10741 ;;
10742 *)
10743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10744 ;;
10745 esac
10746
10747 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10748 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10749 test "$ld_shlibs_CXX" = no && can_build_shared=no
10750
10751 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10752 if test "$GCC" = yes; then
10753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10754 fi
10755
10756 #
10757 # Do we need to explicitly link libc?
10758 #
10759 case "x$archive_cmds_need_lc_CXX" in
10760 x|xyes)
10761 # Assume -lc should be added
10762 archive_cmds_need_lc_CXX=yes
10763
10764 if test "$enable_shared" = yes && test "$GCC" = yes; then
10765 case $archive_cmds_CXX in
10766 *'~'*)
10767 # FIXME: we may have to deal with multi-command sequences.
10768 ;;
10769 '$CC '*)
10770 # Test whether the compiler implicitly links with -lc since on some
10771 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10772 # to ld, don't add -lc before -lgcc.
10773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10774 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10775 $rm conftest*
10776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10777
10778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10779 (eval $ac_compile) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } 2>conftest.err; then
10783 soname=conftest
10784 lib=conftest
10785 libobjs=conftest.$ac_objext
10786 deplibs=
10787 wl=$lt_prog_compiler_wl_CXX
10788 compiler_flags=-v
10789 linker_flags=-v
10790 verstring=
10791 output_objdir=.
10792 libname=conftest
10793 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10794 allow_undefined_flag_CXX=
10795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10796 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }
10800 then
10801 archive_cmds_need_lc_CXX=no
10802 else
10803 archive_cmds_need_lc_CXX=yes
10804 fi
10805 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10806 else
10807 cat conftest.err 1>&5
10808 fi
10809 $rm conftest*
10810 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10811 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10812 ;;
10813 esac
10814 fi
10815 ;;
10816 esac
10817
10818 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10820 library_names_spec=
10821 libname_spec='lib$name'
10822 soname_spec=
10823 shrext_cmds=".so"
10824 postinstall_cmds=
10825 postuninstall_cmds=
10826 finish_cmds=
10827 finish_eval=
10828 shlibpath_var=
10829 shlibpath_overrides_runpath=unknown
10830 version_type=none
10831 dynamic_linker="$host_os ld.so"
10832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10833 if test "$GCC" = yes; then
10834 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10835 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10836 # if the path contains ";" then we assume it to be the separator
10837 # otherwise default to the standard path separator (i.e. ":") - it is
10838 # assumed that no part of a normal pathname contains ";" but that should
10839 # okay in the real world where ";" in dirpaths is itself problematic.
10840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10841 else
10842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10843 fi
10844 else
10845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10846 fi
10847 need_lib_prefix=unknown
10848 hardcode_into_libs=no
10849
10850 # when you set need_version to no, make sure it does not cause -set_version
10851 # flags to be left without arguments
10852 need_version=unknown
10853
10854 case $host_os in
10855 aix3*)
10856 version_type=linux
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10858 shlibpath_var=LIBPATH
10859
10860 # AIX 3 has no versioning support, so we append a major version to the name.
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 ;;
10863
10864 aix4* | aix5*)
10865 version_type=linux
10866 need_lib_prefix=no
10867 need_version=no
10868 hardcode_into_libs=yes
10869 if test "$host_cpu" = ia64; then
10870 # AIX 5 supports IA64
10871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 else
10874 # With GCC up to 2.95.x, collect2 would create an import file
10875 # for dependence libraries. The import file would start with
10876 # the line `#! .'. This would cause the generated library to
10877 # depend on `.', always an invalid library. This was fixed in
10878 # development snapshots of GCC prior to 3.0.
10879 case $host_os in
10880 aix4 | aix4.[01] | aix4.[01].*)
10881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10882 echo ' yes '
10883 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10884 :
10885 else
10886 can_build_shared=no
10887 fi
10888 ;;
10889 esac
10890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10891 # soname into executable. Probably we can add versioning support to
10892 # collect2, so additional links can be useful in future.
10893 if test "$aix_use_runtimelinking" = yes; then
10894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10895 # instead of lib<name>.a to let people know that these are not
10896 # typical AIX shared libraries.
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 else
10899 # We preserve .a as extension for shared libraries through AIX4.2
10900 # and later when we are not doing run time linking.
10901 library_names_spec='${libname}${release}.a $libname.a'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 fi
10904 shlibpath_var=LIBPATH
10905 fi
10906 ;;
10907
10908 amigaos*)
10909 library_names_spec='$libname.ixlibrary $libname.a'
10910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10911 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'
10912 ;;
10913
10914 beos*)
10915 library_names_spec='${libname}${shared_ext}'
10916 dynamic_linker="$host_os ld.so"
10917 shlibpath_var=LIBRARY_PATH
10918 ;;
10919
10920 bsdi[45]*)
10921 version_type=linux
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10928 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10929 # the default ld.so.conf also contains /usr/contrib/lib and
10930 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10931 # libtool to hard-code these into programs
10932 ;;
10933
10934 cygwin* | mingw* | pw32*)
10935 version_type=windows
10936 shrext_cmds=".dll"
10937 need_version=no
10938 need_lib_prefix=no
10939
10940 case $GCC,$host_os in
10941 yes,cygwin* | yes,mingw* | yes,pw32*)
10942 library_names_spec='$libname.dll.a'
10943 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10944 postinstall_cmds='base_file=`basename \${file}`~
10945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10946 dldir=$destdir/`dirname \$dlpath`~
10947 test -d \$dldir || mkdir -p \$dldir~
10948 $install_prog $dir/$dlname \$dldir/$dlname'
10949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10950 dlpath=$dir/\$dldll~
10951 $rm \$dlpath'
10952 shlibpath_overrides_runpath=yes
10953
10954 case $host_os in
10955 cygwin*)
10956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10958 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10959 ;;
10960 mingw*)
10961 # MinGW DLLs use traditional 'lib' prefix
10962 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10964 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10965 # It is most probably a Windows format PATH printed by
10966 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10967 # path with ; separators, and with drive letters. We can handle the
10968 # drive letters (cygwin fileutils understands them), so leave them,
10969 # especially as we might pass files found there to a mingw objdump,
10970 # which wouldn't understand a cygwinified path. Ahh.
10971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10972 else
10973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10974 fi
10975 ;;
10976 pw32*)
10977 # pw32 DLLs use 'pw' prefix rather than 'lib'
10978 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10979 ;;
10980 esac
10981 ;;
10982
10983 *)
10984 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10985 ;;
10986 esac
10987 dynamic_linker='Win32 ld.exe'
10988 # FIXME: first we should search . and the directory the executable is in
10989 shlibpath_var=PATH
10990 ;;
10991
10992 darwin* | rhapsody*)
10993 dynamic_linker="$host_os dyld"
10994 version_type=darwin
10995 need_lib_prefix=no
10996 need_version=no
10997 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10998 soname_spec='${libname}${release}${major}$shared_ext'
10999 shlibpath_overrides_runpath=yes
11000 shlibpath_var=DYLD_LIBRARY_PATH
11001 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11002 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11003 if test "$GCC" = yes; then
11004 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"`
11005 else
11006 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11007 fi
11008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11009 ;;
11010
11011 dgux*)
11012 version_type=linux
11013 need_lib_prefix=no
11014 need_version=no
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 ;;
11019
11020 freebsd1*)
11021 dynamic_linker=no
11022 ;;
11023
11024 kfreebsd*-gnu)
11025 version_type=linux
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11033 dynamic_linker='GNU ld.so'
11034 ;;
11035
11036 freebsd* | dragonfly*)
11037 # DragonFly does not have aout. When/if they implement a new
11038 # versioning mechanism, adjust this.
11039 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11040 version_type=freebsd-$objformat
11041 case $version_type in
11042 freebsd-elf*)
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11044 need_version=no
11045 need_lib_prefix=no
11046 ;;
11047 freebsd-*)
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11049 need_version=yes
11050 ;;
11051 esac
11052 shlibpath_var=LD_LIBRARY_PATH
11053 case $host_os in
11054 freebsd2*)
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057 freebsd3.[01]* | freebsdelf3.[01]*)
11058 shlibpath_overrides_runpath=yes
11059 hardcode_into_libs=yes
11060 ;;
11061 *) # from 3.2 on
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11064 ;;
11065 esac
11066 ;;
11067
11068 gnu*)
11069 version_type=linux
11070 need_lib_prefix=no
11071 need_version=no
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 hardcode_into_libs=yes
11076 ;;
11077
11078 hpux9* | hpux10* | hpux11*)
11079 # Give a soname corresponding to the major version so that dld.sl refuses to
11080 # link against other versions.
11081 version_type=sunos
11082 need_lib_prefix=no
11083 need_version=no
11084 case "$host_cpu" in
11085 ia64*)
11086 shrext_cmds='.so'
11087 hardcode_into_libs=yes
11088 dynamic_linker="$host_os dld.so"
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 if test "X$HPUX_IA64_MODE" = X32; then
11094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11095 else
11096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11097 fi
11098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11099 ;;
11100 hppa*64*)
11101 shrext_cmds='.sl'
11102 hardcode_into_libs=yes
11103 dynamic_linker="$host_os dld.sl"
11104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11110 ;;
11111 *)
11112 shrext_cmds='.sl'
11113 dynamic_linker="$host_os dld.sl"
11114 shlibpath_var=SHLIB_PATH
11115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 ;;
11119 esac
11120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11121 postinstall_cmds='chmod 555 $lib'
11122 ;;
11123
11124 irix5* | irix6* | nonstopux*)
11125 case $host_os in
11126 nonstopux*) version_type=nonstopux ;;
11127 *)
11128 if test "$lt_cv_prog_gnu_ld" = yes; then
11129 version_type=linux
11130 else
11131 version_type=irix
11132 fi ;;
11133 esac
11134 need_lib_prefix=no
11135 need_version=no
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138 case $host_os in
11139 irix5* | nonstopux*)
11140 libsuff= shlibsuff=
11141 ;;
11142 *)
11143 case $LD in # libtool.m4 will add one of these switches to LD
11144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11145 libsuff= shlibsuff= libmagic=32-bit;;
11146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11147 libsuff=32 shlibsuff=N32 libmagic=N32;;
11148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11150 *) libsuff= shlibsuff= libmagic=never-match;;
11151 esac
11152 ;;
11153 esac
11154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11158 hardcode_into_libs=yes
11159 ;;
11160
11161 # No shared lib support for Linux oldld, aout, or coff.
11162 linux*oldld* | linux*aout* | linux*coff*)
11163 dynamic_linker=no
11164 ;;
11165
11166 # This must be Linux ELF.
11167 linux*)
11168 version_type=linux
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176 # This implies no fast_install, which is unacceptable.
11177 # Some rework will be needed to allow for fast_install
11178 # before this can be enabled.
11179 hardcode_into_libs=yes
11180
11181 # find out which ABI we are using
11182 libsuff=
11183 case "$host_cpu" in
11184 x86_64*|s390x*|powerpc64*)
11185 echo '#line 11185 "configure"' > conftest.$ac_ext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; then
11191 case `/usr/bin/file conftest.$ac_objext` in
11192 *64-bit*)
11193 libsuff=64
11194 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11195 ;;
11196 esac
11197 fi
11198 rm -rf conftest*
11199 ;;
11200 esac
11201
11202 # Append ld.so.conf contents to the search path
11203 if test -f /etc/ld.so.conf; then
11204 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11205 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11206 fi
11207
11208 # We used to test for /lib/ld.so.1 and disable shared libraries on
11209 # powerpc, because MkLinux only supported shared libraries with the
11210 # GNU dynamic linker. Since this was broken with cross compilers,
11211 # most powerpc-linux boxes support dynamic linking these days and
11212 # people can always --disable-shared, the test was removed, and we
11213 # assume the GNU/Linux dynamic linker is in use.
11214 dynamic_linker='GNU/Linux ld.so'
11215 ;;
11216
11217 knetbsd*-gnu)
11218 version_type=linux
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=no
11225 hardcode_into_libs=yes
11226 dynamic_linker='GNU ld.so'
11227 ;;
11228
11229 netbsd*)
11230 version_type=sunos
11231 need_lib_prefix=no
11232 need_version=no
11233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11236 dynamic_linker='NetBSD (a.out) ld.so'
11237 else
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 dynamic_linker='NetBSD ld.elf_so'
11241 fi
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes
11244 hardcode_into_libs=yes
11245 ;;
11246
11247 newsos6)
11248 version_type=linux
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes
11252 ;;
11253
11254 nto-qnx*)
11255 version_type=linux
11256 need_lib_prefix=no
11257 need_version=no
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes
11262 ;;
11263
11264 openbsd*)
11265 version_type=sunos
11266 need_lib_prefix=no
11267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11268 case $host_os in
11269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11270 *) need_version=no ;;
11271 esac
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11276 case $host_os in
11277 openbsd2.[89] | openbsd2.[89].*)
11278 shlibpath_overrides_runpath=no
11279 ;;
11280 *)
11281 shlibpath_overrides_runpath=yes
11282 ;;
11283 esac
11284 else
11285 shlibpath_overrides_runpath=yes
11286 fi
11287 ;;
11288
11289 os2*)
11290 libname_spec='$name'
11291 shrext_cmds=".dll"
11292 need_lib_prefix=no
11293 library_names_spec='$libname${shared_ext} $libname.a'
11294 dynamic_linker='OS/2 ld.exe'
11295 shlibpath_var=LIBPATH
11296 ;;
11297
11298 osf3* | osf4* | osf5*)
11299 version_type=osf
11300 need_lib_prefix=no
11301 need_version=no
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11307 ;;
11308
11309 sco3.2v5*)
11310 version_type=osf
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11313 shlibpath_var=LD_LIBRARY_PATH
11314 ;;
11315
11316 solaris*)
11317 version_type=linux
11318 need_lib_prefix=no
11319 need_version=no
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 shlibpath_var=LD_LIBRARY_PATH
11323 shlibpath_overrides_runpath=yes
11324 hardcode_into_libs=yes
11325 # ldd complains unless libraries are executable
11326 postinstall_cmds='chmod +x $lib'
11327 ;;
11328
11329 sunos4*)
11330 version_type=sunos
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11335 if test "$with_gnu_ld" = yes; then
11336 need_lib_prefix=no
11337 fi
11338 need_version=yes
11339 ;;
11340
11341 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11342 version_type=linux
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 case $host_vendor in
11347 sni)
11348 shlibpath_overrides_runpath=no
11349 need_lib_prefix=no
11350 export_dynamic_flag_spec='${wl}-Blargedynsym'
11351 runpath_var=LD_RUN_PATH
11352 ;;
11353 siemens)
11354 need_lib_prefix=no
11355 ;;
11356 motorola)
11357 need_lib_prefix=no
11358 need_version=no
11359 shlibpath_overrides_runpath=no
11360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11361 ;;
11362 esac
11363 ;;
11364
11365 sysv4*MP*)
11366 if test -d /usr/nec ;then
11367 version_type=linux
11368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369 soname_spec='$libname${shared_ext}.$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 fi
11372 ;;
11373
11374 uts4*)
11375 version_type=linux
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 ;;
11380
11381 *)
11382 dynamic_linker=no
11383 ;;
11384 esac
11385 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11386 echo "${ECHO_T}$dynamic_linker" >&6
11387 test "$dynamic_linker" = no && can_build_shared=no
11388
11389 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11391 hardcode_action_CXX=
11392 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11393 test -n "$runpath_var_CXX" || \
11394 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11395
11396 # We can hardcode non-existant directories.
11397 if test "$hardcode_direct_CXX" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11402 test "$hardcode_minus_L_CXX" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action_CXX=relink
11405 else
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action_CXX=immediate
11408 fi
11409 else
11410 # We cannot hardcode anything, or else we can only hardcode existing
11411 # directories.
11412 hardcode_action_CXX=unsupported
11413 fi
11414 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11415 echo "${ECHO_T}$hardcode_action_CXX" >&6
11416
11417 if test "$hardcode_action_CXX" = relink; then
11418 # Fast installation is not supported
11419 enable_fast_install=no
11420 elif test "$shlibpath_overrides_runpath" = yes ||
11421 test "$enable_shared" = no; then
11422 # Fast installation is not necessary
11423 enable_fast_install=needless
11424 fi
11425
11426 striplib=
11427 old_striplib=
11428 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11429 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11430 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11433 echo "$as_me:$LINENO: result: yes" >&5
11434 echo "${ECHO_T}yes" >&6
11435 else
11436 # FIXME - insert some real tests, host_os isn't really good enough
11437 case $host_os in
11438 darwin*)
11439 if test -n "$STRIP" ; then
11440 striplib="$STRIP -x"
11441 echo "$as_me:$LINENO: result: yes" >&5
11442 echo "${ECHO_T}yes" >&6
11443 else
11444 echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6
11446 fi
11447 ;;
11448 *)
11449 echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6
11451 ;;
11452 esac
11453 fi
11454
11455 if test "x$enable_dlopen" != xyes; then
11456 enable_dlopen=unknown
11457 enable_dlopen_self=unknown
11458 enable_dlopen_self_static=unknown
11459 else
11460 lt_cv_dlopen=no
11461 lt_cv_dlopen_libs=
11462
11463 case $host_os in
11464 beos*)
11465 lt_cv_dlopen="load_add_on"
11466 lt_cv_dlopen_libs=
11467 lt_cv_dlopen_self=yes
11468 ;;
11469
11470 mingw* | pw32*)
11471 lt_cv_dlopen="LoadLibrary"
11472 lt_cv_dlopen_libs=
11473 ;;
11474
11475 cygwin*)
11476 lt_cv_dlopen="dlopen"
11477 lt_cv_dlopen_libs=
11478 ;;
11479
11480 darwin*)
11481 # if libdl is installed we need to link against it
11482 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-ldl $LIBS"
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495
11496 /* Override any gcc2 internal prototype to avoid an error. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 /* We use char because int might match the return type of a gcc2
11501 builtin and then its argument prototype would still apply. */
11502 char dlopen ();
11503 int
11504 main ()
11505 {
11506 dlopen ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_cxx_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 ac_cv_lib_dl_dlopen=yes
11534 else
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 ac_cv_lib_dl_dlopen=no
11539 fi
11540 rm -f conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11545 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11546 if test $ac_cv_lib_dl_dlopen = yes; then
11547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11548 else
11549
11550 lt_cv_dlopen="dyld"
11551 lt_cv_dlopen_libs=
11552 lt_cv_dlopen_self=yes
11553
11554 fi
11555
11556 ;;
11557
11558 *)
11559 echo "$as_me:$LINENO: checking for shl_load" >&5
11560 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11561 if test "${ac_cv_func_shl_load+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11572 #define shl_load innocuous_shl_load
11573
11574 /* System header to define __stub macros and hopefully few prototypes,
11575 which can conflict with char shl_load (); below.
11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11577 <limits.h> exists even on freestanding compilers. */
11578
11579 #ifdef __STDC__
11580 # include <limits.h>
11581 #else
11582 # include <assert.h>
11583 #endif
11584
11585 #undef shl_load
11586
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 {
11591 #endif
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594 char shl_load ();
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11599 choke me
11600 #else
11601 char (*f) () = shl_load;
11602 #endif
11603 #ifdef __cplusplus
11604 }
11605 #endif
11606
11607 int
11608 main ()
11609 {
11610 return f != shl_load;
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_cxx_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_func_shl_load=yes
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_func_shl_load=no
11643 fi
11644 rm -f conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 fi
11647 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11648 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11649 if test $ac_cv_func_shl_load = yes; then
11650 lt_cv_dlopen="shl_load"
11651 else
11652 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11653 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11654 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-ldld $LIBS"
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665
11666 /* Override any gcc2 internal prototype to avoid an error. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 /* We use char because int might match the return type of a gcc2
11671 builtin and then its argument prototype would still apply. */
11672 char shl_load ();
11673 int
11674 main ()
11675 {
11676 shl_load ();
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11683 (eval $ac_link) 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_cxx_werror_flag"
11691 || test ! -s conftest.err'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_lib_dld_shl_load=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_cv_lib_dld_shl_load=no
11709 fi
11710 rm -f conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11715 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11716 if test $ac_cv_lib_dld_shl_load = yes; then
11717 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11718 else
11719 echo "$as_me:$LINENO: checking for dlopen" >&5
11720 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11721 if test "${ac_cv_func_dlopen+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732 #define dlopen innocuous_dlopen
11733
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char dlopen (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11738
11739 #ifdef __STDC__
11740 # include <limits.h>
11741 #else
11742 # include <assert.h>
11743 #endif
11744
11745 #undef dlopen
11746
11747 /* Override any gcc2 internal prototype to avoid an error. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 {
11751 #endif
11752 /* We use char because int might match the return type of a gcc2
11753 builtin and then its argument prototype would still apply. */
11754 char dlopen ();
11755 /* The GNU C library defines this for functions which it implements
11756 to always fail with ENOSYS. Some functions are actually named
11757 something starting with __ and the normal name is an alias. */
11758 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11759 choke me
11760 #else
11761 char (*f) () = dlopen;
11762 #endif
11763 #ifdef __cplusplus
11764 }
11765 #endif
11766
11767 int
11768 main ()
11769 {
11770 return f != dlopen;
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_cxx_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_func_dlopen=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_cv_func_dlopen=no
11803 fi
11804 rm -f conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 fi
11807 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11808 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11809 if test $ac_cv_func_dlopen = yes; then
11810 lt_cv_dlopen="dlopen"
11811 else
11812 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11813 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-ldl $LIBS"
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825
11826 /* Override any gcc2 internal prototype to avoid an error. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11832 char dlopen ();
11833 int
11834 main ()
11835 {
11836 dlopen ();
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843 (eval $ac_link) 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_cxx_werror_flag"
11851 || test ! -s conftest.err'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 ac_cv_lib_dl_dlopen=yes
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 ac_cv_lib_dl_dlopen=no
11869 fi
11870 rm -f conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872 LIBS=$ac_check_lib_save_LIBS
11873 fi
11874 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11875 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11876 if test $ac_cv_lib_dl_dlopen = yes; then
11877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11878 else
11879 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11880 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11881 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-lsvld $LIBS"
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11899 char dlopen ();
11900 int
11901 main ()
11902 {
11903 dlopen ();
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_cxx_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_cv_lib_svld_dlopen=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 ac_cv_lib_svld_dlopen=no
11936 fi
11937 rm -f conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11942 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11943 if test $ac_cv_lib_svld_dlopen = yes; then
11944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11945 else
11946 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11947 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11948 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldld $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959
11960 /* Override any gcc2 internal prototype to avoid an error. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966 char dld_link ();
11967 int
11968 main ()
11969 {
11970 dld_link ();
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_cxx_werror_flag"
11985 || test ! -s conftest.err'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest$ac_exeext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 ac_cv_lib_dld_dld_link=yes
11998 else
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12001
12002 ac_cv_lib_dld_dld_link=no
12003 fi
12004 rm -f conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12009 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12010 if test $ac_cv_lib_dld_dld_link = yes; then
12011 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020
12021 fi
12022
12023
12024 fi
12025
12026
12027 fi
12028
12029 ;;
12030 esac
12031
12032 if test "x$lt_cv_dlopen" != xno; then
12033 enable_dlopen=yes
12034 else
12035 enable_dlopen=no
12036 fi
12037
12038 case $lt_cv_dlopen in
12039 dlopen)
12040 save_CPPFLAGS="$CPPFLAGS"
12041 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12042
12043 save_LDFLAGS="$LDFLAGS"
12044 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12045
12046 save_LIBS="$LIBS"
12047 LIBS="$lt_cv_dlopen_libs $LIBS"
12048
12049 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12050 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12051 if test "${lt_cv_dlopen_self+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 if test "$cross_compiling" = yes; then :
12055 lt_cv_dlopen_self=cross
12056 else
12057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12058 lt_status=$lt_dlunknown
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12060 "configure"
12061 #include "confdefs.h"
12062
12063 #if HAVE_DLFCN_H
12064 #include <dlfcn.h>
12065 #endif
12066
12067 #include <stdio.h>
12068
12069 #ifdef RTLD_GLOBAL
12070 # define LT_DLGLOBAL RTLD_GLOBAL
12071 #else
12072 # ifdef DL_GLOBAL
12073 # define LT_DLGLOBAL DL_GLOBAL
12074 # else
12075 # define LT_DLGLOBAL 0
12076 # endif
12077 #endif
12078
12079 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12080 find out it does not work in some platform. */
12081 #ifndef LT_DLLAZY_OR_NOW
12082 # ifdef RTLD_LAZY
12083 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12084 # else
12085 # ifdef DL_LAZY
12086 # define LT_DLLAZY_OR_NOW DL_LAZY
12087 # else
12088 # ifdef RTLD_NOW
12089 # define LT_DLLAZY_OR_NOW RTLD_NOW
12090 # else
12091 # ifdef DL_NOW
12092 # define LT_DLLAZY_OR_NOW DL_NOW
12093 # else
12094 # define LT_DLLAZY_OR_NOW 0
12095 # endif
12096 # endif
12097 # endif
12098 # endif
12099 #endif
12100
12101 #ifdef __cplusplus
12102 extern "C" void exit (int);
12103 #endif
12104
12105 void fnord() { int i=42;}
12106 int main ()
12107 {
12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109 int status = $lt_dlunknown;
12110
12111 if (self)
12112 {
12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12115 /* dlclose (self); */
12116 }
12117
12118 exit (status);
12119 }
12120 EOF
12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12126 (./conftest; exit; ) 2>/dev/null
12127 lt_status=$?
12128 case x$lt_status in
12129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12131 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12132 esac
12133 else :
12134 # compilation failed
12135 lt_cv_dlopen_self=no
12136 fi
12137 fi
12138 rm -fr conftest*
12139
12140
12141 fi
12142 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12143 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12144
12145 if test "x$lt_cv_dlopen_self" = xyes; then
12146 LDFLAGS="$LDFLAGS $link_static_flag"
12147 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12148 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12149 if test "${lt_cv_dlopen_self_static+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 else
12152 if test "$cross_compiling" = yes; then :
12153 lt_cv_dlopen_self_static=cross
12154 else
12155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12156 lt_status=$lt_dlunknown
12157 cat > conftest.$ac_ext <<EOF
12158 #line 12158 "configure"
12159 #include "confdefs.h"
12160
12161 #if HAVE_DLFCN_H
12162 #include <dlfcn.h>
12163 #endif
12164
12165 #include <stdio.h>
12166
12167 #ifdef RTLD_GLOBAL
12168 # define LT_DLGLOBAL RTLD_GLOBAL
12169 #else
12170 # ifdef DL_GLOBAL
12171 # define LT_DLGLOBAL DL_GLOBAL
12172 # else
12173 # define LT_DLGLOBAL 0
12174 # endif
12175 #endif
12176
12177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12178 find out it does not work in some platform. */
12179 #ifndef LT_DLLAZY_OR_NOW
12180 # ifdef RTLD_LAZY
12181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12182 # else
12183 # ifdef DL_LAZY
12184 # define LT_DLLAZY_OR_NOW DL_LAZY
12185 # else
12186 # ifdef RTLD_NOW
12187 # define LT_DLLAZY_OR_NOW RTLD_NOW
12188 # else
12189 # ifdef DL_NOW
12190 # define LT_DLLAZY_OR_NOW DL_NOW
12191 # else
12192 # define LT_DLLAZY_OR_NOW 0
12193 # endif
12194 # endif
12195 # endif
12196 # endif
12197 #endif
12198
12199 #ifdef __cplusplus
12200 extern "C" void exit (int);
12201 #endif
12202
12203 void fnord() { int i=42;}
12204 int main ()
12205 {
12206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12207 int status = $lt_dlunknown;
12208
12209 if (self)
12210 {
12211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12213 /* dlclose (self); */
12214 }
12215
12216 exit (status);
12217 }
12218 EOF
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12224 (./conftest; exit; ) 2>/dev/null
12225 lt_status=$?
12226 case x$lt_status in
12227 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12228 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12229 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12230 esac
12231 else :
12232 # compilation failed
12233 lt_cv_dlopen_self_static=no
12234 fi
12235 fi
12236 rm -fr conftest*
12237
12238
12239 fi
12240 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12241 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12242 fi
12243
12244 CPPFLAGS="$save_CPPFLAGS"
12245 LDFLAGS="$save_LDFLAGS"
12246 LIBS="$save_LIBS"
12247 ;;
12248 esac
12249
12250 case $lt_cv_dlopen_self in
12251 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12252 *) enable_dlopen_self=unknown ;;
12253 esac
12254
12255 case $lt_cv_dlopen_self_static in
12256 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12257 *) enable_dlopen_self_static=unknown ;;
12258 esac
12259 fi
12260
12261
12262 # The else clause should only fire when bootstrapping the
12263 # libtool distribution, otherwise you forgot to ship ltmain.sh
12264 # with your package, and you will get complaints that there are
12265 # no rules to generate ltmain.sh.
12266 if test -f "$ltmain"; then
12267 # See if we are running on zsh, and set the options which allow our commands through
12268 # without removal of \ escapes.
12269 if test -n "${ZSH_VERSION+set}" ; then
12270 setopt NO_GLOB_SUBST
12271 fi
12272 # Now quote all the things that may contain metacharacters while being
12273 # careful not to overquote the AC_SUBSTed values. We take copies of the
12274 # variables and quote the copies for generation of the libtool script.
12275 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12276 SED SHELL STRIP \
12277 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12278 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12279 deplibs_check_method reload_flag reload_cmds need_locks \
12280 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12281 lt_cv_sys_global_symbol_to_c_name_address \
12282 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12283 old_postinstall_cmds old_postuninstall_cmds \
12284 compiler_CXX \
12285 CC_CXX \
12286 LD_CXX \
12287 lt_prog_compiler_wl_CXX \
12288 lt_prog_compiler_pic_CXX \
12289 lt_prog_compiler_static_CXX \
12290 lt_prog_compiler_no_builtin_flag_CXX \
12291 export_dynamic_flag_spec_CXX \
12292 thread_safe_flag_spec_CXX \
12293 whole_archive_flag_spec_CXX \
12294 enable_shared_with_static_runtimes_CXX \
12295 old_archive_cmds_CXX \
12296 old_archive_from_new_cmds_CXX \
12297 predep_objects_CXX \
12298 postdep_objects_CXX \
12299 predeps_CXX \
12300 postdeps_CXX \
12301 compiler_lib_search_path_CXX \
12302 archive_cmds_CXX \
12303 archive_expsym_cmds_CXX \
12304 postinstall_cmds_CXX \
12305 postuninstall_cmds_CXX \
12306 old_archive_from_expsyms_cmds_CXX \
12307 allow_undefined_flag_CXX \
12308 no_undefined_flag_CXX \
12309 export_symbols_cmds_CXX \
12310 hardcode_libdir_flag_spec_CXX \
12311 hardcode_libdir_flag_spec_ld_CXX \
12312 hardcode_libdir_separator_CXX \
12313 hardcode_automatic_CXX \
12314 module_cmds_CXX \
12315 module_expsym_cmds_CXX \
12316 lt_cv_prog_compiler_c_o_CXX \
12317 exclude_expsyms_CXX \
12318 include_expsyms_CXX; do
12319
12320 case $var in
12321 old_archive_cmds_CXX | \
12322 old_archive_from_new_cmds_CXX | \
12323 archive_cmds_CXX | \
12324 archive_expsym_cmds_CXX | \
12325 module_cmds_CXX | \
12326 module_expsym_cmds_CXX | \
12327 old_archive_from_expsyms_cmds_CXX | \
12328 export_symbols_cmds_CXX | \
12329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12330 postinstall_cmds | postuninstall_cmds | \
12331 old_postinstall_cmds | old_postuninstall_cmds | \
12332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12333 # Double-quote double-evaled strings.
12334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12335 ;;
12336 *)
12337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12338 ;;
12339 esac
12340 done
12341
12342 case $lt_echo in
12343 *'\$0 --fallback-echo"')
12344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12345 ;;
12346 esac
12347
12348 cfgfile="$ofile"
12349
12350 cat <<__EOF__ >> "$cfgfile"
12351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12352
12353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12354
12355 # Shell to use when invoking shell scripts.
12356 SHELL=$lt_SHELL
12357
12358 # Whether or not to build shared libraries.
12359 build_libtool_libs=$enable_shared
12360
12361 # Whether or not to build static libraries.
12362 build_old_libs=$enable_static
12363
12364 # Whether or not to add -lc for building shared libraries.
12365 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12366
12367 # Whether or not to disallow shared libs when runtime libs are static
12368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12369
12370 # Whether or not to optimize for fast installation.
12371 fast_install=$enable_fast_install
12372
12373 # The host system.
12374 host_alias=$host_alias
12375 host=$host
12376 host_os=$host_os
12377
12378 # The build system.
12379 build_alias=$build_alias
12380 build=$build
12381 build_os=$build_os
12382
12383 # An echo program that does not interpret backslashes.
12384 echo=$lt_echo
12385
12386 # The archiver.
12387 AR=$lt_AR
12388 AR_FLAGS=$lt_AR_FLAGS
12389
12390 # A C compiler.
12391 LTCC=$lt_LTCC
12392
12393 # A language-specific compiler.
12394 CC=$lt_compiler_CXX
12395
12396 # Is the compiler the GNU C compiler?
12397 with_gcc=$GCC_CXX
12398
12399 # An ERE matcher.
12400 EGREP=$lt_EGREP
12401
12402 # The linker used to build libraries.
12403 LD=$lt_LD_CXX
12404
12405 # Whether we need hard or soft links.
12406 LN_S=$lt_LN_S
12407
12408 # A BSD-compatible nm program.
12409 NM=$lt_NM
12410
12411 # A symbol stripping program
12412 STRIP=$lt_STRIP
12413
12414 # Used to examine libraries when file_magic_cmd begins "file"
12415 MAGIC_CMD=$MAGIC_CMD
12416
12417 # Used on cygwin: DLL creation program.
12418 DLLTOOL="$DLLTOOL"
12419
12420 # Used on cygwin: object dumper.
12421 OBJDUMP="$OBJDUMP"
12422
12423 # Used on cygwin: assembler.
12424 AS="$AS"
12425
12426 # The name of the directory that contains temporary libtool files.
12427 objdir=$objdir
12428
12429 # How to create reloadable object files.
12430 reload_flag=$lt_reload_flag
12431 reload_cmds=$lt_reload_cmds
12432
12433 # How to pass a linker flag through the compiler.
12434 wl=$lt_lt_prog_compiler_wl_CXX
12435
12436 # Object file suffix (normally "o").
12437 objext="$ac_objext"
12438
12439 # Old archive suffix (normally "a").
12440 libext="$libext"
12441
12442 # Shared library suffix (normally ".so").
12443 shrext_cmds='$shrext_cmds'
12444
12445 # Executable file suffix (normally "").
12446 exeext="$exeext"
12447
12448 # Additional compiler flags for building library objects.
12449 pic_flag=$lt_lt_prog_compiler_pic_CXX
12450 pic_mode=$pic_mode
12451
12452 # What is the maximum length of a command?
12453 max_cmd_len=$lt_cv_sys_max_cmd_len
12454
12455 # Does compiler simultaneously support -c and -o options?
12456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12457
12458 # Must we lock files when doing compilation?
12459 need_locks=$lt_need_locks
12460
12461 # Do we need the lib prefix for modules?
12462 need_lib_prefix=$need_lib_prefix
12463
12464 # Do we need a version for libraries?
12465 need_version=$need_version
12466
12467 # Whether dlopen is supported.
12468 dlopen_support=$enable_dlopen
12469
12470 # Whether dlopen of programs is supported.
12471 dlopen_self=$enable_dlopen_self
12472
12473 # Whether dlopen of statically linked programs is supported.
12474 dlopen_self_static=$enable_dlopen_self_static
12475
12476 # Compiler flag to prevent dynamic linking.
12477 link_static_flag=$lt_lt_prog_compiler_static_CXX
12478
12479 # Compiler flag to turn off builtin functions.
12480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12481
12482 # Compiler flag to allow reflexive dlopens.
12483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12484
12485 # Compiler flag to generate shared objects directly from archives.
12486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12487
12488 # Compiler flag to generate thread-safe objects.
12489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12490
12491 # Library versioning type.
12492 version_type=$version_type
12493
12494 # Format of library name prefix.
12495 libname_spec=$lt_libname_spec
12496
12497 # List of archive names. First name is the real one, the rest are links.
12498 # The last name is the one that the linker finds with -lNAME.
12499 library_names_spec=$lt_library_names_spec
12500
12501 # The coded name of the library, if different from the real name.
12502 soname_spec=$lt_soname_spec
12503
12504 # Commands used to build and install an old-style archive.
12505 RANLIB=$lt_RANLIB
12506 old_archive_cmds=$lt_old_archive_cmds_CXX
12507 old_postinstall_cmds=$lt_old_postinstall_cmds
12508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12509
12510 # Create an old-style archive from a shared archive.
12511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12512
12513 # Create a temporary old-style archive to link instead of a shared archive.
12514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12515
12516 # Commands used to build and install a shared archive.
12517 archive_cmds=$lt_archive_cmds_CXX
12518 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12519 postinstall_cmds=$lt_postinstall_cmds
12520 postuninstall_cmds=$lt_postuninstall_cmds
12521
12522 # Commands used to build a loadable module (assumed same as above if empty)
12523 module_cmds=$lt_module_cmds_CXX
12524 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12525
12526 # Commands to strip libraries.
12527 old_striplib=$lt_old_striplib
12528 striplib=$lt_striplib
12529
12530 # Dependencies to place before the objects being linked to create a
12531 # shared library.
12532 predep_objects=$lt_predep_objects_CXX
12533
12534 # Dependencies to place after the objects being linked to create a
12535 # shared library.
12536 postdep_objects=$lt_postdep_objects_CXX
12537
12538 # Dependencies to place before the objects being linked to create a
12539 # shared library.
12540 predeps=$lt_predeps_CXX
12541
12542 # Dependencies to place after the objects being linked to create a
12543 # shared library.
12544 postdeps=$lt_postdeps_CXX
12545
12546 # The library search path used internally by the compiler when linking
12547 # a shared library.
12548 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12549
12550 # Method to check whether dependent libraries are shared objects.
12551 deplibs_check_method=$lt_deplibs_check_method
12552
12553 # Command to use when deplibs_check_method == file_magic.
12554 file_magic_cmd=$lt_file_magic_cmd
12555
12556 # Flag that allows shared libraries with undefined symbols to be built.
12557 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12558
12559 # Flag that forces no undefined symbols.
12560 no_undefined_flag=$lt_no_undefined_flag_CXX
12561
12562 # Commands used to finish a libtool library installation in a directory.
12563 finish_cmds=$lt_finish_cmds
12564
12565 # Same as above, but a single script fragment to be evaled but not shown.
12566 finish_eval=$lt_finish_eval
12567
12568 # Take the output of nm and produce a listing of raw symbols and C names.
12569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12570
12571 # Transform the output of nm in a proper C declaration
12572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12573
12574 # Transform the output of nm in a C name address pair
12575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12576
12577 # This is the shared library runtime path variable.
12578 runpath_var=$runpath_var
12579
12580 # This is the shared library path variable.
12581 shlibpath_var=$shlibpath_var
12582
12583 # Is shlibpath searched before the hard-coded library search path?
12584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12585
12586 # How to hardcode a shared library path into an executable.
12587 hardcode_action=$hardcode_action_CXX
12588
12589 # Whether we should hardcode library paths into libraries.
12590 hardcode_into_libs=$hardcode_into_libs
12591
12592 # Flag to hardcode \$libdir into a binary during linking.
12593 # This must work even if \$libdir does not exist.
12594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12595
12596 # If ld is used when linking, flag to hardcode \$libdir into
12597 # a binary during linking. This must work even if \$libdir does
12598 # not exist.
12599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12600
12601 # Whether we need a single -rpath flag with a separated argument.
12602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12603
12604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12605 # resulting binary.
12606 hardcode_direct=$hardcode_direct_CXX
12607
12608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12609 # resulting binary.
12610 hardcode_minus_L=$hardcode_minus_L_CXX
12611
12612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12613 # the resulting binary.
12614 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12615
12616 # Set to yes if building a shared library automatically hardcodes DIR into the library
12617 # and all subsequent libraries and executables linked against it.
12618 hardcode_automatic=$hardcode_automatic_CXX
12619
12620 # Variables whose values should be saved in libtool wrapper scripts and
12621 # restored at relink time.
12622 variables_saved_for_relink="$variables_saved_for_relink"
12623
12624 # Whether libtool must link a program against all its dependency libraries.
12625 link_all_deplibs=$link_all_deplibs_CXX
12626
12627 # Compile-time system search path for libraries
12628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12629
12630 # Run-time system search path for libraries
12631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12632
12633 # Fix the shell variable \$srcfile for the compiler.
12634 fix_srcfile_path="$fix_srcfile_path_CXX"
12635
12636 # Set to yes if exported symbols are required.
12637 always_export_symbols=$always_export_symbols_CXX
12638
12639 # The commands to list exported symbols.
12640 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12641
12642 # The commands to extract the exported symbol list from a shared archive.
12643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12644
12645 # Symbols that should not be listed in the preloaded symbols.
12646 exclude_expsyms=$lt_exclude_expsyms_CXX
12647
12648 # Symbols that must always be exported.
12649 include_expsyms=$lt_include_expsyms_CXX
12650
12651 # ### END LIBTOOL TAG CONFIG: $tagname
12652
12653 __EOF__
12654
12655
12656 else
12657 # If there is no Makefile yet, we rely on a make rule to execute
12658 # `config.status --recheck' to rerun these tests and create the
12659 # libtool script then.
12660 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12661 if test -f "$ltmain_in"; then
12662 test -f Makefile && make "$ltmain"
12663 fi
12664 fi
12665
12666
12667 ac_ext=c
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672
12673 CC=$lt_save_CC
12674 LDCXX=$LD
12675 LD=$lt_save_LD
12676 GCC=$lt_save_GCC
12677 with_gnu_ldcxx=$with_gnu_ld
12678 with_gnu_ld=$lt_save_with_gnu_ld
12679 lt_cv_path_LDCXX=$lt_cv_path_LD
12680 lt_cv_path_LD=$lt_save_path_LD
12681 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12682 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12683
12684 else
12685 tagname=""
12686 fi
12687 ;;
12688
12689 F77)
12690 if test -n "$F77" && test "X$F77" != "Xno"; then
12691
12692 ac_ext=f
12693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12696
12697
12698 archive_cmds_need_lc_F77=no
12699 allow_undefined_flag_F77=
12700 always_export_symbols_F77=no
12701 archive_expsym_cmds_F77=
12702 export_dynamic_flag_spec_F77=
12703 hardcode_direct_F77=no
12704 hardcode_libdir_flag_spec_F77=
12705 hardcode_libdir_flag_spec_ld_F77=
12706 hardcode_libdir_separator_F77=
12707 hardcode_minus_L_F77=no
12708 hardcode_automatic_F77=no
12709 module_cmds_F77=
12710 module_expsym_cmds_F77=
12711 link_all_deplibs_F77=unknown
12712 old_archive_cmds_F77=$old_archive_cmds
12713 no_undefined_flag_F77=
12714 whole_archive_flag_spec_F77=
12715 enable_shared_with_static_runtimes_F77=no
12716
12717 # Source file extension for f77 test sources.
12718 ac_ext=f
12719
12720 # Object file extension for compiled f77 test sources.
12721 objext=o
12722 objext_F77=$objext
12723
12724 # Code to be used in simple compile tests
12725 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12726
12727 # Code to be used in simple link tests
12728 lt_simple_link_test_code=" program t\n end\n"
12729
12730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12731
12732 # If no C compiler was specified, use CC.
12733 LTCC=${LTCC-"$CC"}
12734
12735 # Allow CC to be a program name with arguments.
12736 compiler=$CC
12737
12738
12739 # save warnings/boilerplate of simple test code
12740 ac_outfile=conftest.$ac_objext
12741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12743 _lt_compiler_boilerplate=`cat conftest.err`
12744 $rm conftest*
12745
12746 ac_outfile=conftest.$ac_objext
12747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12749 _lt_linker_boilerplate=`cat conftest.err`
12750 $rm conftest*
12751
12752
12753 # Allow CC to be a program name with arguments.
12754 lt_save_CC="$CC"
12755 CC=${F77-"f77"}
12756 compiler=$CC
12757 compiler_F77=$CC
12758 for cc_temp in $compiler""; do
12759 case $cc_temp in
12760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12762 \-*) ;;
12763 *) break;;
12764 esac
12765 done
12766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12767
12768
12769 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12770 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12771 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12772 echo "${ECHO_T}$can_build_shared" >&6
12773
12774 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12775 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12776 test "$can_build_shared" = "no" && enable_shared=no
12777
12778 # On AIX, shared libraries and static libraries use the same namespace, and
12779 # are all built from PIC.
12780 case "$host_os" in
12781 aix3*)
12782 test "$enable_shared" = yes && enable_static=no
12783 if test -n "$RANLIB"; then
12784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12785 postinstall_cmds='$RANLIB $lib'
12786 fi
12787 ;;
12788 aix4* | aix5*)
12789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12790 test "$enable_shared" = yes && enable_static=no
12791 fi
12792 ;;
12793 esac
12794 echo "$as_me:$LINENO: result: $enable_shared" >&5
12795 echo "${ECHO_T}$enable_shared" >&6
12796
12797 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12798 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12799 # Make sure either enable_shared or enable_static is yes.
12800 test "$enable_shared" = yes || enable_static=yes
12801 echo "$as_me:$LINENO: result: $enable_static" >&5
12802 echo "${ECHO_T}$enable_static" >&6
12803
12804 test "$ld_shlibs_F77" = no && can_build_shared=no
12805
12806 GCC_F77="$G77"
12807 LD_F77="$LD"
12808
12809 lt_prog_compiler_wl_F77=
12810 lt_prog_compiler_pic_F77=
12811 lt_prog_compiler_static_F77=
12812
12813 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12814 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12815
12816 if test "$GCC" = yes; then
12817 lt_prog_compiler_wl_F77='-Wl,'
12818 lt_prog_compiler_static_F77='-static'
12819
12820 case $host_os in
12821 aix*)
12822 # All AIX code is PIC.
12823 if test "$host_cpu" = ia64; then
12824 # AIX 5 now supports IA64 processor
12825 lt_prog_compiler_static_F77='-Bstatic'
12826 fi
12827 ;;
12828
12829 amigaos*)
12830 # FIXME: we need at least 68020 code to build shared libraries, but
12831 # adding the `-m68020' flag to GCC prevents building anything better,
12832 # like `-m68040'.
12833 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12834 ;;
12835
12836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12837 # PIC is the default for these OSes.
12838 ;;
12839
12840 mingw* | pw32* | os2*)
12841 # This hack is so that the source file can tell whether it is being
12842 # built for inclusion in a dll (and should export symbols for example).
12843 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12844 ;;
12845
12846 darwin* | rhapsody*)
12847 # PIC is the default on this platform
12848 # Common symbols not allowed in MH_DYLIB files
12849 lt_prog_compiler_pic_F77='-fno-common'
12850 ;;
12851
12852 msdosdjgpp*)
12853 # Just because we use GCC doesn't mean we suddenly get shared libraries
12854 # on systems that don't support them.
12855 lt_prog_compiler_can_build_shared_F77=no
12856 enable_shared=no
12857 ;;
12858
12859 sysv4*MP*)
12860 if test -d /usr/nec; then
12861 lt_prog_compiler_pic_F77=-Kconform_pic
12862 fi
12863 ;;
12864
12865 hpux*)
12866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12867 # not for PA HP-UX.
12868 case "$host_cpu" in
12869 hppa*64*|ia64*)
12870 # +Z the default
12871 ;;
12872 *)
12873 lt_prog_compiler_pic_F77='-fPIC'
12874 ;;
12875 esac
12876 ;;
12877
12878 *)
12879 lt_prog_compiler_pic_F77='-fPIC'
12880 ;;
12881 esac
12882 else
12883 # PORTME Check for flag to pass linker flags through the system compiler.
12884 case $host_os in
12885 aix*)
12886 lt_prog_compiler_wl_F77='-Wl,'
12887 if test "$host_cpu" = ia64; then
12888 # AIX 5 now supports IA64 processor
12889 lt_prog_compiler_static_F77='-Bstatic'
12890 else
12891 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12892 fi
12893 ;;
12894 darwin*)
12895 # PIC is the default on this platform
12896 # Common symbols not allowed in MH_DYLIB files
12897 case $cc_basename in
12898 xlc*)
12899 lt_prog_compiler_pic_F77='-qnocommon'
12900 lt_prog_compiler_wl_F77='-Wl,'
12901 ;;
12902 esac
12903 ;;
12904
12905 mingw* | pw32* | os2*)
12906 # This hack is so that the source file can tell whether it is being
12907 # built for inclusion in a dll (and should export symbols for example).
12908 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12909 ;;
12910
12911 hpux9* | hpux10* | hpux11*)
12912 lt_prog_compiler_wl_F77='-Wl,'
12913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12914 # not for PA HP-UX.
12915 case "$host_cpu" in
12916 hppa*64*|ia64*)
12917 # +Z the default
12918 ;;
12919 *)
12920 lt_prog_compiler_pic_F77='+Z'
12921 ;;
12922 esac
12923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12924 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12925 ;;
12926
12927 irix5* | irix6* | nonstopux*)
12928 lt_prog_compiler_wl_F77='-Wl,'
12929 # PIC (with -KPIC) is the default.
12930 lt_prog_compiler_static_F77='-non_shared'
12931 ;;
12932
12933 newsos6)
12934 lt_prog_compiler_pic_F77='-KPIC'
12935 lt_prog_compiler_static_F77='-Bstatic'
12936 ;;
12937
12938 linux*)
12939 case $cc_basename in
12940 icc* | ecc*)
12941 lt_prog_compiler_wl_F77='-Wl,'
12942 lt_prog_compiler_pic_F77='-KPIC'
12943 lt_prog_compiler_static_F77='-static'
12944 ;;
12945 pgcc* | pgf77* | pgf90*)
12946 # Portland Group compilers (*not* the Pentium gcc compiler,
12947 # which looks to be a dead project)
12948 lt_prog_compiler_wl_F77='-Wl,'
12949 lt_prog_compiler_pic_F77='-fpic'
12950 lt_prog_compiler_static_F77='-static'
12951 ;;
12952 ccc*)
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 # All Alpha code is PIC.
12955 lt_prog_compiler_static_F77='-non_shared'
12956 ;;
12957 esac
12958 ;;
12959
12960 osf3* | osf4* | osf5*)
12961 lt_prog_compiler_wl_F77='-Wl,'
12962 # All OSF/1 code is PIC.
12963 lt_prog_compiler_static_F77='-non_shared'
12964 ;;
12965
12966 sco3.2v5*)
12967 lt_prog_compiler_pic_F77='-Kpic'
12968 lt_prog_compiler_static_F77='-dn'
12969 ;;
12970
12971 solaris*)
12972 lt_prog_compiler_pic_F77='-KPIC'
12973 lt_prog_compiler_static_F77='-Bstatic'
12974 case $cc_basename in
12975 f77* | f90* | f95*)
12976 lt_prog_compiler_wl_F77='-Qoption ld ';;
12977 *)
12978 lt_prog_compiler_wl_F77='-Wl,';;
12979 esac
12980 ;;
12981
12982 sunos4*)
12983 lt_prog_compiler_wl_F77='-Qoption ld '
12984 lt_prog_compiler_pic_F77='-PIC'
12985 lt_prog_compiler_static_F77='-Bstatic'
12986 ;;
12987
12988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12989 lt_prog_compiler_wl_F77='-Wl,'
12990 lt_prog_compiler_pic_F77='-KPIC'
12991 lt_prog_compiler_static_F77='-Bstatic'
12992 ;;
12993
12994 sysv4*MP*)
12995 if test -d /usr/nec ;then
12996 lt_prog_compiler_pic_F77='-Kconform_pic'
12997 lt_prog_compiler_static_F77='-Bstatic'
12998 fi
12999 ;;
13000
13001 unicos*)
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_can_build_shared_F77=no
13004 ;;
13005
13006 uts4*)
13007 lt_prog_compiler_pic_F77='-pic'
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 ;;
13010
13011 *)
13012 lt_prog_compiler_can_build_shared_F77=no
13013 ;;
13014 esac
13015 fi
13016
13017 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13018 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13019
13020 #
13021 # Check to make sure the PIC flag actually works.
13022 #
13023 if test -n "$lt_prog_compiler_pic_F77"; then
13024
13025 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13026 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13027 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 lt_prog_compiler_pic_works_F77=no
13031 ac_outfile=conftest.$ac_objext
13032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13033 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13034 # Insert the option either (1) after the last *FLAGS variable, or
13035 # (2) before a word containing "conftest.", or (3) at the end.
13036 # Note that $ac_compile itself does not contain backslashes and begins
13037 # with a dollar sign (not a hyphen), so the echo should work correctly.
13038 # The option is referenced via a variable to avoid confusing sed.
13039 lt_compile=`echo "$ac_compile" | $SED \
13040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13042 -e 's:$: $lt_compiler_flag:'`
13043 (eval echo "\"\$as_me:13043: $lt_compile\"" >&5)
13044 (eval "$lt_compile" 2>conftest.err)
13045 ac_status=$?
13046 cat conftest.err >&5
13047 echo "$as_me:13047: \$? = $ac_status" >&5
13048 if (exit $ac_status) && test -s "$ac_outfile"; then
13049 # The compiler can only warn and ignore the option if not recognized
13050 # So say no if there are warnings other than the usual output.
13051 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13052 $SED '/^$/d' conftest.err >conftest.er2
13053 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13054 lt_prog_compiler_pic_works_F77=yes
13055 fi
13056 fi
13057 $rm conftest*
13058
13059 fi
13060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13061 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13062
13063 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13064 case $lt_prog_compiler_pic_F77 in
13065 "" | " "*) ;;
13066 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13067 esac
13068 else
13069 lt_prog_compiler_pic_F77=
13070 lt_prog_compiler_can_build_shared_F77=no
13071 fi
13072
13073 fi
13074 case "$host_os" in
13075 # For platforms which do not support PIC, -DPIC is meaningless:
13076 *djgpp*)
13077 lt_prog_compiler_pic_F77=
13078 ;;
13079 *)
13080 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13081 ;;
13082 esac
13083
13084 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13086 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 lt_cv_prog_compiler_c_o_F77=no
13090 $rm -r conftest 2>/dev/null
13091 mkdir conftest
13092 cd conftest
13093 mkdir out
13094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13095
13096 lt_compiler_flag="-o out/conftest2.$ac_objext"
13097 # Insert the option either (1) after the last *FLAGS variable, or
13098 # (2) before a word containing "conftest.", or (3) at the end.
13099 # Note that $ac_compile itself does not contain backslashes and begins
13100 # with a dollar sign (not a hyphen), so the echo should work correctly.
13101 lt_compile=`echo "$ac_compile" | $SED \
13102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13104 -e 's:$: $lt_compiler_flag:'`
13105 (eval echo "\"\$as_me:13105: $lt_compile\"" >&5)
13106 (eval "$lt_compile" 2>out/conftest.err)
13107 ac_status=$?
13108 cat out/conftest.err >&5
13109 echo "$as_me:13109: \$? = $ac_status" >&5
13110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13111 then
13112 # The compiler can only warn and ignore the option if not recognized
13113 # So say no if there are warnings
13114 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13115 $SED '/^$/d' out/conftest.err >out/conftest.er2
13116 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13117 lt_cv_prog_compiler_c_o_F77=yes
13118 fi
13119 fi
13120 chmod u+w .
13121 $rm conftest*
13122 # SGI C++ compiler will create directory out/ii_files/ for
13123 # template instantiation
13124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13125 $rm out/* && rmdir out
13126 cd ..
13127 rmdir conftest
13128 $rm conftest*
13129
13130 fi
13131 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13133
13134
13135 hard_links="nottested"
13136 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13137 # do not overwrite the value of need_locks provided by the user
13138 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13140 hard_links=yes
13141 $rm conftest*
13142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13143 touch conftest.a
13144 ln conftest.a conftest.b 2>&5 || hard_links=no
13145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13146 echo "$as_me:$LINENO: result: $hard_links" >&5
13147 echo "${ECHO_T}$hard_links" >&6
13148 if test "$hard_links" = no; then
13149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13151 need_locks=warn
13152 fi
13153 else
13154 need_locks=no
13155 fi
13156
13157 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13159
13160 runpath_var=
13161 allow_undefined_flag_F77=
13162 enable_shared_with_static_runtimes_F77=no
13163 archive_cmds_F77=
13164 archive_expsym_cmds_F77=
13165 old_archive_From_new_cmds_F77=
13166 old_archive_from_expsyms_cmds_F77=
13167 export_dynamic_flag_spec_F77=
13168 whole_archive_flag_spec_F77=
13169 thread_safe_flag_spec_F77=
13170 hardcode_libdir_flag_spec_F77=
13171 hardcode_libdir_flag_spec_ld_F77=
13172 hardcode_libdir_separator_F77=
13173 hardcode_direct_F77=no
13174 hardcode_minus_L_F77=no
13175 hardcode_shlibpath_var_F77=unsupported
13176 link_all_deplibs_F77=unknown
13177 hardcode_automatic_F77=no
13178 module_cmds_F77=
13179 module_expsym_cmds_F77=
13180 always_export_symbols_F77=no
13181 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13182 # include_expsyms should be a list of space-separated symbols to be *always*
13183 # included in the symbol list
13184 include_expsyms_F77=
13185 # exclude_expsyms can be an extended regexp of symbols to exclude
13186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13188 # as well as any symbol that contains `d'.
13189 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13191 # platforms (ab)use it in PIC code, but their linkers get confused if
13192 # the symbol is explicitly referenced. Since portable code cannot
13193 # rely on this symbol name, it's probably fine to never include it in
13194 # preloaded symbol tables.
13195 extract_expsyms_cmds=
13196 # Just being paranoid about ensuring that cc_basename is set.
13197 for cc_temp in $compiler""; do
13198 case $cc_temp in
13199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13201 \-*) ;;
13202 *) break;;
13203 esac
13204 done
13205 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13206
13207 case $host_os in
13208 cygwin* | mingw* | pw32*)
13209 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13210 # When not using gcc, we currently assume that we are using
13211 # Microsoft Visual C++.
13212 if test "$GCC" != yes; then
13213 with_gnu_ld=no
13214 fi
13215 ;;
13216 openbsd*)
13217 with_gnu_ld=no
13218 ;;
13219 esac
13220
13221 ld_shlibs_F77=yes
13222 if test "$with_gnu_ld" = yes; then
13223 # If archive_cmds runs LD, not CC, wlarc should be empty
13224 wlarc='${wl}'
13225
13226 # Set some defaults for GNU ld with shared library support. These
13227 # are reset later if shared libraries are not supported. Putting them
13228 # here allows them to be overridden if necessary.
13229 runpath_var=LD_RUN_PATH
13230 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13231 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13232 # ancient GNU ld didn't support --whole-archive et. al.
13233 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13234 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13235 else
13236 whole_archive_flag_spec_F77=
13237 fi
13238 supports_anon_versioning=no
13239 case `$LD -v 2>/dev/null` in
13240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13243 *\ 2.11.*) ;; # other 2.11 versions
13244 *) supports_anon_versioning=yes ;;
13245 esac
13246
13247 # See if GNU ld supports shared libraries.
13248 case $host_os in
13249 aix3* | aix4* | aix5*)
13250 # On AIX/PPC, the GNU linker is very broken
13251 if test "$host_cpu" != ia64; then
13252 ld_shlibs_F77=no
13253 cat <<EOF 1>&2
13254
13255 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13256 *** to be unable to reliably create shared libraries on AIX.
13257 *** Therefore, libtool is disabling shared libraries support. If you
13258 *** really care for shared libraries, you may want to modify your PATH
13259 *** so that a non-GNU linker is found, and then restart.
13260
13261 EOF
13262 fi
13263 ;;
13264
13265 amigaos*)
13266 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)'
13267 hardcode_libdir_flag_spec_F77='-L$libdir'
13268 hardcode_minus_L_F77=yes
13269
13270 # Samuel A. Falvo II <[email protected]> reports
13271 # that the semantics of dynamic libraries on AmigaOS, at least up
13272 # to version 4, is to share data among multiple programs linked
13273 # with the same dynamic library. Since this doesn't match the
13274 # behavior of shared libraries on other platforms, we can't use
13275 # them.
13276 ld_shlibs_F77=no
13277 ;;
13278
13279 beos*)
13280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13281 allow_undefined_flag_F77=unsupported
13282 # Joseph Beckenbach <[email protected]> says some releases of gcc
13283 # support --undefined. This deserves some investigation. FIXME
13284 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285 else
13286 ld_shlibs_F77=no
13287 fi
13288 ;;
13289
13290 cygwin* | mingw* | pw32*)
13291 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13292 # as there is no search path for DLLs.
13293 hardcode_libdir_flag_spec_F77='-L$libdir'
13294 allow_undefined_flag_F77=unsupported
13295 always_export_symbols_F77=no
13296 enable_shared_with_static_runtimes_F77=yes
13297 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13298
13299 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13301 # If the export-symbols file already is a .def file (1st line
13302 # is EXPORTS), use it as is; otherwise, prepend...
13303 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13304 cp $export_symbols $output_objdir/$soname.def;
13305 else
13306 echo EXPORTS > $output_objdir/$soname.def;
13307 cat $export_symbols >> $output_objdir/$soname.def;
13308 fi~
13309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13310 else
13311 ld_shlibs_F77=no
13312 fi
13313 ;;
13314
13315 linux*)
13316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317 tmp_addflag=
13318 case $cc_basename,$host_cpu in
13319 pgcc*) # Portland Group C compiler
13320 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13321 tmp_addflag=' $pic_flag'
13322 ;;
13323 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
13324 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13325 tmp_addflag=' $pic_flag -Mnomain' ;;
13326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13327 tmp_addflag=' -i_dynamic' ;;
13328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13329 tmp_addflag=' -i_dynamic -nofor_main' ;;
13330 ifc* | ifort*) # Intel Fortran compiler
13331 tmp_addflag=' -nofor_main' ;;
13332 esac
13333 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334
13335 if test $supports_anon_versioning = yes; then
13336 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13338 $echo "local: *; };" >> $output_objdir/$libname.ver~
13339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13340 fi
13341 else
13342 ld_shlibs_F77=no
13343 fi
13344 ;;
13345
13346 netbsd*)
13347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13348 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13349 wlarc=
13350 else
13351 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13353 fi
13354 ;;
13355
13356 solaris* | sysv5*)
13357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13358 ld_shlibs_F77=no
13359 cat <<EOF 1>&2
13360
13361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13362 *** create shared libraries on Solaris systems. Therefore, libtool
13363 *** is disabling shared libraries support. We urge you to upgrade GNU
13364 *** binutils to release 2.9.1 or newer. Another option is to modify
13365 *** your PATH or compiler configuration so that the native linker is
13366 *** used, and then restart.
13367
13368 EOF
13369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13371 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13372 else
13373 ld_shlibs_F77=no
13374 fi
13375 ;;
13376
13377 sunos4*)
13378 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13379 wlarc=
13380 hardcode_direct_F77=yes
13381 hardcode_shlibpath_var_F77=no
13382 ;;
13383
13384 *)
13385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13386 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13388 else
13389 ld_shlibs_F77=no
13390 fi
13391 ;;
13392 esac
13393
13394 if test "$ld_shlibs_F77" = no; then
13395 runpath_var=
13396 hardcode_libdir_flag_spec_F77=
13397 export_dynamic_flag_spec_F77=
13398 whole_archive_flag_spec_F77=
13399 fi
13400 else
13401 # PORTME fill in a description of your system's linker (not GNU ld)
13402 case $host_os in
13403 aix3*)
13404 allow_undefined_flag_F77=unsupported
13405 always_export_symbols_F77=yes
13406 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'
13407 # Note: this linker hardcodes the directories in LIBPATH if there
13408 # are no directories specified by -L.
13409 hardcode_minus_L_F77=yes
13410 if test "$GCC" = yes && test -z "$link_static_flag"; then
13411 # Neither direct hardcoding nor static linking is supported with a
13412 # broken collect2.
13413 hardcode_direct_F77=unsupported
13414 fi
13415 ;;
13416
13417 aix4* | aix5*)
13418 if test "$host_cpu" = ia64; then
13419 # On IA64, the linker does run time linking by default, so we don't
13420 # have to do anything special.
13421 aix_use_runtimelinking=no
13422 exp_sym_flag='-Bexport'
13423 no_entry_flag=""
13424 else
13425 # If we're using GNU nm, then we don't want the "-C" option.
13426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13428 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'
13429 else
13430 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'
13431 fi
13432 aix_use_runtimelinking=no
13433
13434 # Test if we are trying to use run time linking or normal
13435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13436 # need to do runtime linking.
13437 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13438 for ld_flag in $LDFLAGS; do
13439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13440 aix_use_runtimelinking=yes
13441 break
13442 fi
13443 done
13444 esac
13445
13446 exp_sym_flag='-bexport'
13447 no_entry_flag='-bnoentry'
13448 fi
13449
13450 # When large executables or shared objects are built, AIX ld can
13451 # have problems creating the table of contents. If linking a library
13452 # or program results in "error TOC overflow" add -mminimal-toc to
13453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13455
13456 archive_cmds_F77=''
13457 hardcode_direct_F77=yes
13458 hardcode_libdir_separator_F77=':'
13459 link_all_deplibs_F77=yes
13460
13461 if test "$GCC" = yes; then
13462 case $host_os in aix4.[012]|aix4.[012].*)
13463 # We only want to do this on AIX 4.2 and lower, the check
13464 # below for broken collect2 doesn't work under 4.3+
13465 collect2name=`${CC} -print-prog-name=collect2`
13466 if test -f "$collect2name" && \
13467 strings "$collect2name" | grep resolve_lib_name >/dev/null
13468 then
13469 # We have reworked collect2
13470 hardcode_direct_F77=yes
13471 else
13472 # We have old collect2
13473 hardcode_direct_F77=unsupported
13474 # It fails to find uninstalled libraries when the uninstalled
13475 # path is not listed in the libpath. Setting hardcode_minus_L
13476 # to unsupported forces relinking
13477 hardcode_minus_L_F77=yes
13478 hardcode_libdir_flag_spec_F77='-L$libdir'
13479 hardcode_libdir_separator_F77=
13480 fi
13481 esac
13482 shared_flag='-shared'
13483 if test "$aix_use_runtimelinking" = yes; then
13484 shared_flag="$shared_flag "'${wl}-G'
13485 fi
13486 else
13487 # not using gcc
13488 if test "$host_cpu" = ia64; then
13489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13490 # chokes on -Wl,-G. The following line is correct:
13491 shared_flag='-G'
13492 else
13493 if test "$aix_use_runtimelinking" = yes; then
13494 shared_flag='${wl}-G'
13495 else
13496 shared_flag='${wl}-bM:SRE'
13497 fi
13498 fi
13499 fi
13500
13501 # It seems that -bexpall does not export symbols beginning with
13502 # underscore (_), so it is better to generate a list of symbols to export.
13503 always_export_symbols_F77=yes
13504 if test "$aix_use_runtimelinking" = yes; then
13505 # Warning - without using the other runtime loading flags (-brtl),
13506 # -berok will link without error, but may produce a broken library.
13507 allow_undefined_flag_F77='-berok'
13508 # Determine the default libpath from the value encoded in an empty executable.
13509 cat >conftest.$ac_ext <<_ACEOF
13510 program main
13511
13512 end
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>conftest.er1
13517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_f77_werror_flag"
13524 || test ! -s conftest.err'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536
13537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13538 }'`
13539 # Check for a 64-bit object if we didn't find anything.
13540 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; }
13541 }'`; fi
13542 else
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 fi
13547 rm -f conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13550
13551 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13552 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"
13553 else
13554 if test "$host_cpu" = ia64; then
13555 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13556 allow_undefined_flag_F77="-z nodefs"
13557 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"
13558 else
13559 # Determine the default libpath from the value encoded in an empty executable.
13560 cat >conftest.$ac_ext <<_ACEOF
13561 program main
13562
13563 end
13564 _ACEOF
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567 (eval $ac_link) 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_f77_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587
13588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13589 }'`
13590 # Check for a 64-bit object if we didn't find anything.
13591 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; }
13592 }'`; fi
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 fi
13598 rm -f conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13601
13602 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13603 # Warning - without using the other run time loading flags,
13604 # -berok will link without error, but may produce a broken library.
13605 no_undefined_flag_F77=' ${wl}-bernotok'
13606 allow_undefined_flag_F77=' ${wl}-berok'
13607 # -bexpall does not export symbols beginning with underscore (_)
13608 always_export_symbols_F77=yes
13609 # Exported symbols can be pulled into shared objects from archives
13610 whole_archive_flag_spec_F77=' '
13611 archive_cmds_need_lc_F77=yes
13612 # This is similar to how AIX traditionally builds it's shared libraries.
13613 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'
13614 fi
13615 fi
13616 ;;
13617
13618 amigaos*)
13619 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)'
13620 hardcode_libdir_flag_spec_F77='-L$libdir'
13621 hardcode_minus_L_F77=yes
13622 # see comment about different semantics on the GNU ld section
13623 ld_shlibs_F77=no
13624 ;;
13625
13626 bsdi[45]*)
13627 export_dynamic_flag_spec_F77=-rdynamic
13628 ;;
13629
13630 cygwin* | mingw* | pw32*)
13631 # When not using gcc, we currently assume that we are using
13632 # Microsoft Visual C++.
13633 # hardcode_libdir_flag_spec is actually meaningless, as there is
13634 # no search path for DLLs.
13635 hardcode_libdir_flag_spec_F77=' '
13636 allow_undefined_flag_F77=unsupported
13637 # Tell ltmain to make .lib files, not .a files.
13638 libext=lib
13639 # Tell ltmain to make .dll files, not .so files.
13640 shrext_cmds=".dll"
13641 # FIXME: Setting linknames here is a bad hack.
13642 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13643 # The linker will automatically build a .lib file if we build a DLL.
13644 old_archive_From_new_cmds_F77='true'
13645 # FIXME: Should let the user specify the lib program.
13646 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13647 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13648 enable_shared_with_static_runtimes_F77=yes
13649 ;;
13650
13651 darwin* | rhapsody*)
13652 case "$host_os" in
13653 rhapsody* | darwin1.[012])
13654 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13655 ;;
13656 *) # Darwin 1.3 on
13657 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13658 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13659 else
13660 case ${MACOSX_DEPLOYMENT_TARGET} in
13661 10.[012])
13662 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13663 ;;
13664 10.*)
13665 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13666 ;;
13667 esac
13668 fi
13669 ;;
13670 esac
13671 archive_cmds_need_lc_F77=no
13672 hardcode_direct_F77=no
13673 hardcode_automatic_F77=yes
13674 hardcode_shlibpath_var_F77=unsupported
13675 whole_archive_flag_spec_F77=''
13676 link_all_deplibs_F77=yes
13677 if test "$GCC" = yes ; then
13678 output_verbose_link_cmd='echo'
13679 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13680 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13681 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13682 archive_expsym_cmds_F77='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}'
13683 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13684 else
13685 case $cc_basename in
13686 xlc*)
13687 output_verbose_link_cmd='echo'
13688 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13689 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13690 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13691 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13692 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13693 ;;
13694 *)
13695 ld_shlibs_F77=no
13696 ;;
13697 esac
13698 fi
13699 ;;
13700
13701 dgux*)
13702 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13703 hardcode_libdir_flag_spec_F77='-L$libdir'
13704 hardcode_shlibpath_var_F77=no
13705 ;;
13706
13707 freebsd1*)
13708 ld_shlibs_F77=no
13709 ;;
13710
13711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13712 # support. Future versions do this automatically, but an explicit c++rt0.o
13713 # does not break anything, and helps significantly (at the cost of a little
13714 # extra space).
13715 freebsd2.2*)
13716 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13717 hardcode_libdir_flag_spec_F77='-R$libdir'
13718 hardcode_direct_F77=yes
13719 hardcode_shlibpath_var_F77=no
13720 ;;
13721
13722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13723 freebsd2*)
13724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_direct_F77=yes
13726 hardcode_minus_L_F77=yes
13727 hardcode_shlibpath_var_F77=no
13728 ;;
13729
13730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13731 freebsd* | kfreebsd*-gnu | dragonfly*)
13732 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13733 hardcode_libdir_flag_spec_F77='-R$libdir'
13734 hardcode_direct_F77=yes
13735 hardcode_shlibpath_var_F77=no
13736 ;;
13737
13738 hpux9*)
13739 if test "$GCC" = yes; then
13740 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'
13741 else
13742 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'
13743 fi
13744 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13745 hardcode_libdir_separator_F77=:
13746 hardcode_direct_F77=yes
13747
13748 # hardcode_minus_L: Not really in the search PATH,
13749 # but as the default location of the library.
13750 hardcode_minus_L_F77=yes
13751 export_dynamic_flag_spec_F77='${wl}-E'
13752 ;;
13753
13754 hpux10* | hpux11*)
13755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13756 case "$host_cpu" in
13757 hppa*64*|ia64*)
13758 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 ;;
13760 *)
13761 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 esac
13764 else
13765 case "$host_cpu" in
13766 hppa*64*|ia64*)
13767 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13768 ;;
13769 *)
13770 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13771 ;;
13772 esac
13773 fi
13774 if test "$with_gnu_ld" = no; then
13775 case "$host_cpu" in
13776 hppa*64*)
13777 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13778 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13779 hardcode_libdir_separator_F77=:
13780 hardcode_direct_F77=no
13781 hardcode_shlibpath_var_F77=no
13782 ;;
13783 ia64*)
13784 hardcode_libdir_flag_spec_F77='-L$libdir'
13785 hardcode_direct_F77=no
13786 hardcode_shlibpath_var_F77=no
13787
13788 # hardcode_minus_L: Not really in the search PATH,
13789 # but as the default location of the library.
13790 hardcode_minus_L_F77=yes
13791 ;;
13792 *)
13793 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13794 hardcode_libdir_separator_F77=:
13795 hardcode_direct_F77=yes
13796 export_dynamic_flag_spec_F77='${wl}-E'
13797
13798 # hardcode_minus_L: Not really in the search PATH,
13799 # but as the default location of the library.
13800 hardcode_minus_L_F77=yes
13801 ;;
13802 esac
13803 fi
13804 ;;
13805
13806 irix5* | irix6* | nonstopux*)
13807 if test "$GCC" = yes; then
13808 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'
13809 else
13810 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'
13811 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13812 fi
13813 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13814 hardcode_libdir_separator_F77=:
13815 link_all_deplibs_F77=yes
13816 ;;
13817
13818 netbsd*)
13819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13820 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13821 else
13822 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13823 fi
13824 hardcode_libdir_flag_spec_F77='-R$libdir'
13825 hardcode_direct_F77=yes
13826 hardcode_shlibpath_var_F77=no
13827 ;;
13828
13829 newsos6)
13830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13831 hardcode_direct_F77=yes
13832 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13833 hardcode_libdir_separator_F77=:
13834 hardcode_shlibpath_var_F77=no
13835 ;;
13836
13837 openbsd*)
13838 hardcode_direct_F77=yes
13839 hardcode_shlibpath_var_F77=no
13840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13841 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13843 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_F77='${wl}-E'
13845 else
13846 case $host_os in
13847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13848 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_libdir_flag_spec_F77='-R$libdir'
13850 ;;
13851 *)
13852 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13853 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13854 ;;
13855 esac
13856 fi
13857 ;;
13858
13859 os2*)
13860 hardcode_libdir_flag_spec_F77='-L$libdir'
13861 hardcode_minus_L_F77=yes
13862 allow_undefined_flag_F77=unsupported
13863 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'
13864 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13865 ;;
13866
13867 osf3*)
13868 if test "$GCC" = yes; then
13869 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13870 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'
13871 else
13872 allow_undefined_flag_F77=' -expect_unresolved \*'
13873 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'
13874 fi
13875 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13876 hardcode_libdir_separator_F77=:
13877 ;;
13878
13879 osf4* | osf5*) # as osf3* with the addition of -msym flag
13880 if test "$GCC" = yes; then
13881 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13882 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'
13883 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13884 else
13885 allow_undefined_flag_F77=' -expect_unresolved \*'
13886 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'
13887 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~
13888 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13889
13890 # Both c and cxx compiler support -rpath directly
13891 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13892 fi
13893 hardcode_libdir_separator_F77=:
13894 ;;
13895
13896 sco3.2v5*)
13897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_shlibpath_var_F77=no
13899 export_dynamic_flag_spec_F77='${wl}-Bexport'
13900 runpath_var=LD_RUN_PATH
13901 hardcode_runpath_var=yes
13902 ;;
13903
13904 solaris*)
13905 no_undefined_flag_F77=' -z text'
13906 if test "$GCC" = yes; then
13907 wlarc='${wl}'
13908 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13910 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13911 else
13912 wlarc=''
13913 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13916 fi
13917 hardcode_libdir_flag_spec_F77='-R$libdir'
13918 hardcode_shlibpath_var_F77=no
13919 case $host_os in
13920 solaris2.[0-5] | solaris2.[0-5].*) ;;
13921 *)
13922 # The compiler driver will combine linker options so we
13923 # cannot just pass the convience library names through
13924 # without $wl, iff we do not link with $LD.
13925 # Luckily, gcc supports the same syntax we need for Sun Studio.
13926 # Supported since Solaris 2.6 (maybe 2.5.1?)
13927 case $wlarc in
13928 '')
13929 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13930 *)
13931 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13932 esac ;;
13933 esac
13934 link_all_deplibs_F77=yes
13935 ;;
13936
13937 sunos4*)
13938 if test "x$host_vendor" = xsequent; then
13939 # Use $CC to link under sequent, because it throws in some extra .o
13940 # files that make .init and .fini sections work.
13941 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13942 else
13943 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13944 fi
13945 hardcode_libdir_flag_spec_F77='-L$libdir'
13946 hardcode_direct_F77=yes
13947 hardcode_minus_L_F77=yes
13948 hardcode_shlibpath_var_F77=no
13949 ;;
13950
13951 sysv4)
13952 case $host_vendor in
13953 sni)
13954 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955 hardcode_direct_F77=yes # is this really true???
13956 ;;
13957 siemens)
13958 ## LD is ld it makes a PLAMLIB
13959 ## CC just makes a GrossModule.
13960 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13961 reload_cmds_F77='$CC -r -o $output$reload_objs'
13962 hardcode_direct_F77=no
13963 ;;
13964 motorola)
13965 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13967 ;;
13968 esac
13969 runpath_var='LD_RUN_PATH'
13970 hardcode_shlibpath_var_F77=no
13971 ;;
13972
13973 sysv4.3*)
13974 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13975 hardcode_shlibpath_var_F77=no
13976 export_dynamic_flag_spec_F77='-Bexport'
13977 ;;
13978
13979 sysv4*MP*)
13980 if test -d /usr/nec; then
13981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982 hardcode_shlibpath_var_F77=no
13983 runpath_var=LD_RUN_PATH
13984 hardcode_runpath_var=yes
13985 ld_shlibs_F77=yes
13986 fi
13987 ;;
13988
13989 sysv4.2uw2*)
13990 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13991 hardcode_direct_F77=yes
13992 hardcode_minus_L_F77=no
13993 hardcode_shlibpath_var_F77=no
13994 hardcode_runpath_var=yes
13995 runpath_var=LD_RUN_PATH
13996 ;;
13997
13998 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13999 no_undefined_flag_F77='${wl}-z ${wl}text'
14000 if test "$GCC" = yes; then
14001 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 else
14003 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14004 fi
14005 runpath_var='LD_RUN_PATH'
14006 hardcode_shlibpath_var_F77=no
14007 ;;
14008
14009 sysv5*)
14010 no_undefined_flag_F77=' -z text'
14011 # $CC -shared without GNU ld will not create a library from C++
14012 # object files and a static libstdc++, better avoid it by now
14013 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14015 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_shlibpath_var_F77=no
14018 runpath_var='LD_RUN_PATH'
14019 ;;
14020
14021 uts4*)
14022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023 hardcode_libdir_flag_spec_F77='-L$libdir'
14024 hardcode_shlibpath_var_F77=no
14025 ;;
14026
14027 *)
14028 ld_shlibs_F77=no
14029 ;;
14030 esac
14031 fi
14032
14033 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14034 echo "${ECHO_T}$ld_shlibs_F77" >&6
14035 test "$ld_shlibs_F77" = no && can_build_shared=no
14036
14037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14038 if test "$GCC" = yes; then
14039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14040 fi
14041
14042 #
14043 # Do we need to explicitly link libc?
14044 #
14045 case "x$archive_cmds_need_lc_F77" in
14046 x|xyes)
14047 # Assume -lc should be added
14048 archive_cmds_need_lc_F77=yes
14049
14050 if test "$enable_shared" = yes && test "$GCC" = yes; then
14051 case $archive_cmds_F77 in
14052 *'~'*)
14053 # FIXME: we may have to deal with multi-command sequences.
14054 ;;
14055 '$CC '*)
14056 # Test whether the compiler implicitly links with -lc since on some
14057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14058 # to ld, don't add -lc before -lgcc.
14059 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14060 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14061 $rm conftest*
14062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14063
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065 (eval $ac_compile) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } 2>conftest.err; then
14069 soname=conftest
14070 lib=conftest
14071 libobjs=conftest.$ac_objext
14072 deplibs=
14073 wl=$lt_prog_compiler_wl_F77
14074 compiler_flags=-v
14075 linker_flags=-v
14076 verstring=
14077 output_objdir=.
14078 libname=conftest
14079 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14080 allow_undefined_flag_F77=
14081 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14082 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }
14086 then
14087 archive_cmds_need_lc_F77=no
14088 else
14089 archive_cmds_need_lc_F77=yes
14090 fi
14091 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14092 else
14093 cat conftest.err 1>&5
14094 fi
14095 $rm conftest*
14096 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14097 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14098 ;;
14099 esac
14100 fi
14101 ;;
14102 esac
14103
14104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14106 library_names_spec=
14107 libname_spec='lib$name'
14108 soname_spec=
14109 shrext_cmds=".so"
14110 postinstall_cmds=
14111 postuninstall_cmds=
14112 finish_cmds=
14113 finish_eval=
14114 shlibpath_var=
14115 shlibpath_overrides_runpath=unknown
14116 version_type=none
14117 dynamic_linker="$host_os ld.so"
14118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14119 if test "$GCC" = yes; then
14120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14121 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14122 # if the path contains ";" then we assume it to be the separator
14123 # otherwise default to the standard path separator (i.e. ":") - it is
14124 # assumed that no part of a normal pathname contains ";" but that should
14125 # okay in the real world where ";" in dirpaths is itself problematic.
14126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14127 else
14128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14129 fi
14130 else
14131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14132 fi
14133 need_lib_prefix=unknown
14134 hardcode_into_libs=no
14135
14136 # when you set need_version to no, make sure it does not cause -set_version
14137 # flags to be left without arguments
14138 need_version=unknown
14139
14140 case $host_os in
14141 aix3*)
14142 version_type=linux
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14144 shlibpath_var=LIBPATH
14145
14146 # AIX 3 has no versioning support, so we append a major version to the name.
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 ;;
14149
14150 aix4* | aix5*)
14151 version_type=linux
14152 need_lib_prefix=no
14153 need_version=no
14154 hardcode_into_libs=yes
14155 if test "$host_cpu" = ia64; then
14156 # AIX 5 supports IA64
14157 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 else
14160 # With GCC up to 2.95.x, collect2 would create an import file
14161 # for dependence libraries. The import file would start with
14162 # the line `#! .'. This would cause the generated library to
14163 # depend on `.', always an invalid library. This was fixed in
14164 # development snapshots of GCC prior to 3.0.
14165 case $host_os in
14166 aix4 | aix4.[01] | aix4.[01].*)
14167 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14168 echo ' yes '
14169 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14170 :
14171 else
14172 can_build_shared=no
14173 fi
14174 ;;
14175 esac
14176 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14177 # soname into executable. Probably we can add versioning support to
14178 # collect2, so additional links can be useful in future.
14179 if test "$aix_use_runtimelinking" = yes; then
14180 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14181 # instead of lib<name>.a to let people know that these are not
14182 # typical AIX shared libraries.
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 else
14185 # We preserve .a as extension for shared libraries through AIX4.2
14186 # and later when we are not doing run time linking.
14187 library_names_spec='${libname}${release}.a $libname.a'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 fi
14190 shlibpath_var=LIBPATH
14191 fi
14192 ;;
14193
14194 amigaos*)
14195 library_names_spec='$libname.ixlibrary $libname.a'
14196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14197 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'
14198 ;;
14199
14200 beos*)
14201 library_names_spec='${libname}${shared_ext}'
14202 dynamic_linker="$host_os ld.so"
14203 shlibpath_var=LIBRARY_PATH
14204 ;;
14205
14206 bsdi[45]*)
14207 version_type=linux
14208 need_version=no
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14210 soname_spec='${libname}${release}${shared_ext}$major'
14211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14215 # the default ld.so.conf also contains /usr/contrib/lib and
14216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14217 # libtool to hard-code these into programs
14218 ;;
14219
14220 cygwin* | mingw* | pw32*)
14221 version_type=windows
14222 shrext_cmds=".dll"
14223 need_version=no
14224 need_lib_prefix=no
14225
14226 case $GCC,$host_os in
14227 yes,cygwin* | yes,mingw* | yes,pw32*)
14228 library_names_spec='$libname.dll.a'
14229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14230 postinstall_cmds='base_file=`basename \${file}`~
14231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14232 dldir=$destdir/`dirname \$dlpath`~
14233 test -d \$dldir || mkdir -p \$dldir~
14234 $install_prog $dir/$dlname \$dldir/$dlname'
14235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14236 dlpath=$dir/\$dldll~
14237 $rm \$dlpath'
14238 shlibpath_overrides_runpath=yes
14239
14240 case $host_os in
14241 cygwin*)
14242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14244 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14245 ;;
14246 mingw*)
14247 # MinGW DLLs use traditional 'lib' prefix
14248 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14250 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14251 # It is most probably a Windows format PATH printed by
14252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14253 # path with ; separators, and with drive letters. We can handle the
14254 # drive letters (cygwin fileutils understands them), so leave them,
14255 # especially as we might pass files found there to a mingw objdump,
14256 # which wouldn't understand a cygwinified path. Ahh.
14257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258 else
14259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14260 fi
14261 ;;
14262 pw32*)
14263 # pw32 DLLs use 'pw' prefix rather than 'lib'
14264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14265 ;;
14266 esac
14267 ;;
14268
14269 *)
14270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14271 ;;
14272 esac
14273 dynamic_linker='Win32 ld.exe'
14274 # FIXME: first we should search . and the directory the executable is in
14275 shlibpath_var=PATH
14276 ;;
14277
14278 darwin* | rhapsody*)
14279 dynamic_linker="$host_os dyld"
14280 version_type=darwin
14281 need_lib_prefix=no
14282 need_version=no
14283 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14284 soname_spec='${libname}${release}${major}$shared_ext'
14285 shlibpath_overrides_runpath=yes
14286 shlibpath_var=DYLD_LIBRARY_PATH
14287 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14288 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14289 if test "$GCC" = yes; then
14290 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"`
14291 else
14292 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14293 fi
14294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14295 ;;
14296
14297 dgux*)
14298 version_type=linux
14299 need_lib_prefix=no
14300 need_version=no
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 ;;
14305
14306 freebsd1*)
14307 dynamic_linker=no
14308 ;;
14309
14310 kfreebsd*-gnu)
14311 version_type=linux
14312 need_lib_prefix=no
14313 need_version=no
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14315 soname_spec='${libname}${release}${shared_ext}$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=no
14318 hardcode_into_libs=yes
14319 dynamic_linker='GNU ld.so'
14320 ;;
14321
14322 freebsd* | dragonfly*)
14323 # DragonFly does not have aout. When/if they implement a new
14324 # versioning mechanism, adjust this.
14325 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14326 version_type=freebsd-$objformat
14327 case $version_type in
14328 freebsd-elf*)
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14330 need_version=no
14331 need_lib_prefix=no
14332 ;;
14333 freebsd-*)
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14335 need_version=yes
14336 ;;
14337 esac
14338 shlibpath_var=LD_LIBRARY_PATH
14339 case $host_os in
14340 freebsd2*)
14341 shlibpath_overrides_runpath=yes
14342 ;;
14343 freebsd3.[01]* | freebsdelf3.[01]*)
14344 shlibpath_overrides_runpath=yes
14345 hardcode_into_libs=yes
14346 ;;
14347 *) # from 3.2 on
14348 shlibpath_overrides_runpath=no
14349 hardcode_into_libs=yes
14350 ;;
14351 esac
14352 ;;
14353
14354 gnu*)
14355 version_type=linux
14356 need_lib_prefix=no
14357 need_version=no
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14359 soname_spec='${libname}${release}${shared_ext}$major'
14360 shlibpath_var=LD_LIBRARY_PATH
14361 hardcode_into_libs=yes
14362 ;;
14363
14364 hpux9* | hpux10* | hpux11*)
14365 # Give a soname corresponding to the major version so that dld.sl refuses to
14366 # link against other versions.
14367 version_type=sunos
14368 need_lib_prefix=no
14369 need_version=no
14370 case "$host_cpu" in
14371 ia64*)
14372 shrext_cmds='.so'
14373 hardcode_into_libs=yes
14374 dynamic_linker="$host_os dld.so"
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 if test "X$HPUX_IA64_MODE" = X32; then
14380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14381 else
14382 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14383 fi
14384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14385 ;;
14386 hppa*64*)
14387 shrext_cmds='.sl'
14388 hardcode_into_libs=yes
14389 dynamic_linker="$host_os dld.sl"
14390 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14396 ;;
14397 *)
14398 shrext_cmds='.sl'
14399 dynamic_linker="$host_os dld.sl"
14400 shlibpath_var=SHLIB_PATH
14401 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 ;;
14405 esac
14406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14407 postinstall_cmds='chmod 555 $lib'
14408 ;;
14409
14410 irix5* | irix6* | nonstopux*)
14411 case $host_os in
14412 nonstopux*) version_type=nonstopux ;;
14413 *)
14414 if test "$lt_cv_prog_gnu_ld" = yes; then
14415 version_type=linux
14416 else
14417 version_type=irix
14418 fi ;;
14419 esac
14420 need_lib_prefix=no
14421 need_version=no
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14424 case $host_os in
14425 irix5* | nonstopux*)
14426 libsuff= shlibsuff=
14427 ;;
14428 *)
14429 case $LD in # libtool.m4 will add one of these switches to LD
14430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14431 libsuff= shlibsuff= libmagic=32-bit;;
14432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14433 libsuff=32 shlibsuff=N32 libmagic=N32;;
14434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14436 *) libsuff= shlibsuff= libmagic=never-match;;
14437 esac
14438 ;;
14439 esac
14440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14441 shlibpath_overrides_runpath=no
14442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14444 hardcode_into_libs=yes
14445 ;;
14446
14447 # No shared lib support for Linux oldld, aout, or coff.
14448 linux*oldld* | linux*aout* | linux*coff*)
14449 dynamic_linker=no
14450 ;;
14451
14452 # This must be Linux ELF.
14453 linux*)
14454 version_type=linux
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=no
14462 # This implies no fast_install, which is unacceptable.
14463 # Some rework will be needed to allow for fast_install
14464 # before this can be enabled.
14465 hardcode_into_libs=yes
14466
14467 # find out which ABI we are using
14468 libsuff=
14469 case "$host_cpu" in
14470 x86_64*|s390x*|powerpc64*)
14471 echo '#line 14471 "configure"' > conftest.$ac_ext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; then
14477 case `/usr/bin/file conftest.$ac_objext` in
14478 *64-bit*)
14479 libsuff=64
14480 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14481 ;;
14482 esac
14483 fi
14484 rm -rf conftest*
14485 ;;
14486 esac
14487
14488 # Append ld.so.conf contents to the search path
14489 if test -f /etc/ld.so.conf; then
14490 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14491 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14492 fi
14493
14494 # We used to test for /lib/ld.so.1 and disable shared libraries on
14495 # powerpc, because MkLinux only supported shared libraries with the
14496 # GNU dynamic linker. Since this was broken with cross compilers,
14497 # most powerpc-linux boxes support dynamic linking these days and
14498 # people can always --disable-shared, the test was removed, and we
14499 # assume the GNU/Linux dynamic linker is in use.
14500 dynamic_linker='GNU/Linux ld.so'
14501 ;;
14502
14503 knetbsd*-gnu)
14504 version_type=linux
14505 need_lib_prefix=no
14506 need_version=no
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=no
14511 hardcode_into_libs=yes
14512 dynamic_linker='GNU ld.so'
14513 ;;
14514
14515 netbsd*)
14516 version_type=sunos
14517 need_lib_prefix=no
14518 need_version=no
14519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14522 dynamic_linker='NetBSD (a.out) ld.so'
14523 else
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 dynamic_linker='NetBSD ld.elf_so'
14527 fi
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes
14530 hardcode_into_libs=yes
14531 ;;
14532
14533 newsos6)
14534 version_type=linux
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 ;;
14539
14540 nto-qnx*)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 shlibpath_overrides_runpath=yes
14548 ;;
14549
14550 openbsd*)
14551 version_type=sunos
14552 need_lib_prefix=no
14553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14554 case $host_os in
14555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14556 *) need_version=no ;;
14557 esac
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14562 case $host_os in
14563 openbsd2.[89] | openbsd2.[89].*)
14564 shlibpath_overrides_runpath=no
14565 ;;
14566 *)
14567 shlibpath_overrides_runpath=yes
14568 ;;
14569 esac
14570 else
14571 shlibpath_overrides_runpath=yes
14572 fi
14573 ;;
14574
14575 os2*)
14576 libname_spec='$name'
14577 shrext_cmds=".dll"
14578 need_lib_prefix=no
14579 library_names_spec='$libname${shared_ext} $libname.a'
14580 dynamic_linker='OS/2 ld.exe'
14581 shlibpath_var=LIBPATH
14582 ;;
14583
14584 osf3* | osf4* | osf5*)
14585 version_type=osf
14586 need_lib_prefix=no
14587 need_version=no
14588 soname_spec='${libname}${release}${shared_ext}$major'
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14593 ;;
14594
14595 sco3.2v5*)
14596 version_type=osf
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 ;;
14601
14602 solaris*)
14603 version_type=linux
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=yes
14610 hardcode_into_libs=yes
14611 # ldd complains unless libraries are executable
14612 postinstall_cmds='chmod +x $lib'
14613 ;;
14614
14615 sunos4*)
14616 version_type=sunos
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=yes
14621 if test "$with_gnu_ld" = yes; then
14622 need_lib_prefix=no
14623 fi
14624 need_version=yes
14625 ;;
14626
14627 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14628 version_type=linux
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 case $host_vendor in
14633 sni)
14634 shlibpath_overrides_runpath=no
14635 need_lib_prefix=no
14636 export_dynamic_flag_spec='${wl}-Blargedynsym'
14637 runpath_var=LD_RUN_PATH
14638 ;;
14639 siemens)
14640 need_lib_prefix=no
14641 ;;
14642 motorola)
14643 need_lib_prefix=no
14644 need_version=no
14645 shlibpath_overrides_runpath=no
14646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14647 ;;
14648 esac
14649 ;;
14650
14651 sysv4*MP*)
14652 if test -d /usr/nec ;then
14653 version_type=linux
14654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14655 soname_spec='$libname${shared_ext}.$major'
14656 shlibpath_var=LD_LIBRARY_PATH
14657 fi
14658 ;;
14659
14660 uts4*)
14661 version_type=linux
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 ;;
14666
14667 *)
14668 dynamic_linker=no
14669 ;;
14670 esac
14671 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14672 echo "${ECHO_T}$dynamic_linker" >&6
14673 test "$dynamic_linker" = no && can_build_shared=no
14674
14675 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14676 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14677 hardcode_action_F77=
14678 if test -n "$hardcode_libdir_flag_spec_F77" || \
14679 test -n "$runpath_var_F77" || \
14680 test "X$hardcode_automatic_F77" = "Xyes" ; then
14681
14682 # We can hardcode non-existant directories.
14683 if test "$hardcode_direct_F77" != no &&
14684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14685 # have to relink, otherwise we might link with an installed library
14686 # when we should be linking with a yet-to-be-installed one
14687 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14688 test "$hardcode_minus_L_F77" != no; then
14689 # Linking always hardcodes the temporary library directory.
14690 hardcode_action_F77=relink
14691 else
14692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14693 hardcode_action_F77=immediate
14694 fi
14695 else
14696 # We cannot hardcode anything, or else we can only hardcode existing
14697 # directories.
14698 hardcode_action_F77=unsupported
14699 fi
14700 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14701 echo "${ECHO_T}$hardcode_action_F77" >&6
14702
14703 if test "$hardcode_action_F77" = relink; then
14704 # Fast installation is not supported
14705 enable_fast_install=no
14706 elif test "$shlibpath_overrides_runpath" = yes ||
14707 test "$enable_shared" = no; then
14708 # Fast installation is not necessary
14709 enable_fast_install=needless
14710 fi
14711
14712 striplib=
14713 old_striplib=
14714 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14715 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14716 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14719 echo "$as_me:$LINENO: result: yes" >&5
14720 echo "${ECHO_T}yes" >&6
14721 else
14722 # FIXME - insert some real tests, host_os isn't really good enough
14723 case $host_os in
14724 darwin*)
14725 if test -n "$STRIP" ; then
14726 striplib="$STRIP -x"
14727 echo "$as_me:$LINENO: result: yes" >&5
14728 echo "${ECHO_T}yes" >&6
14729 else
14730 echo "$as_me:$LINENO: result: no" >&5
14731 echo "${ECHO_T}no" >&6
14732 fi
14733 ;;
14734 *)
14735 echo "$as_me:$LINENO: result: no" >&5
14736 echo "${ECHO_T}no" >&6
14737 ;;
14738 esac
14739 fi
14740
14741
14742
14743 # The else clause should only fire when bootstrapping the
14744 # libtool distribution, otherwise you forgot to ship ltmain.sh
14745 # with your package, and you will get complaints that there are
14746 # no rules to generate ltmain.sh.
14747 if test -f "$ltmain"; then
14748 # See if we are running on zsh, and set the options which allow our commands through
14749 # without removal of \ escapes.
14750 if test -n "${ZSH_VERSION+set}" ; then
14751 setopt NO_GLOB_SUBST
14752 fi
14753 # Now quote all the things that may contain metacharacters while being
14754 # careful not to overquote the AC_SUBSTed values. We take copies of the
14755 # variables and quote the copies for generation of the libtool script.
14756 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14757 SED SHELL STRIP \
14758 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14759 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14760 deplibs_check_method reload_flag reload_cmds need_locks \
14761 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14762 lt_cv_sys_global_symbol_to_c_name_address \
14763 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14764 old_postinstall_cmds old_postuninstall_cmds \
14765 compiler_F77 \
14766 CC_F77 \
14767 LD_F77 \
14768 lt_prog_compiler_wl_F77 \
14769 lt_prog_compiler_pic_F77 \
14770 lt_prog_compiler_static_F77 \
14771 lt_prog_compiler_no_builtin_flag_F77 \
14772 export_dynamic_flag_spec_F77 \
14773 thread_safe_flag_spec_F77 \
14774 whole_archive_flag_spec_F77 \
14775 enable_shared_with_static_runtimes_F77 \
14776 old_archive_cmds_F77 \
14777 old_archive_from_new_cmds_F77 \
14778 predep_objects_F77 \
14779 postdep_objects_F77 \
14780 predeps_F77 \
14781 postdeps_F77 \
14782 compiler_lib_search_path_F77 \
14783 archive_cmds_F77 \
14784 archive_expsym_cmds_F77 \
14785 postinstall_cmds_F77 \
14786 postuninstall_cmds_F77 \
14787 old_archive_from_expsyms_cmds_F77 \
14788 allow_undefined_flag_F77 \
14789 no_undefined_flag_F77 \
14790 export_symbols_cmds_F77 \
14791 hardcode_libdir_flag_spec_F77 \
14792 hardcode_libdir_flag_spec_ld_F77 \
14793 hardcode_libdir_separator_F77 \
14794 hardcode_automatic_F77 \
14795 module_cmds_F77 \
14796 module_expsym_cmds_F77 \
14797 lt_cv_prog_compiler_c_o_F77 \
14798 exclude_expsyms_F77 \
14799 include_expsyms_F77; do
14800
14801 case $var in
14802 old_archive_cmds_F77 | \
14803 old_archive_from_new_cmds_F77 | \
14804 archive_cmds_F77 | \
14805 archive_expsym_cmds_F77 | \
14806 module_cmds_F77 | \
14807 module_expsym_cmds_F77 | \
14808 old_archive_from_expsyms_cmds_F77 | \
14809 export_symbols_cmds_F77 | \
14810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14811 postinstall_cmds | postuninstall_cmds | \
14812 old_postinstall_cmds | old_postuninstall_cmds | \
14813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14814 # Double-quote double-evaled strings.
14815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14816 ;;
14817 *)
14818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14819 ;;
14820 esac
14821 done
14822
14823 case $lt_echo in
14824 *'\$0 --fallback-echo"')
14825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14826 ;;
14827 esac
14828
14829 cfgfile="$ofile"
14830
14831 cat <<__EOF__ >> "$cfgfile"
14832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14833
14834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14835
14836 # Shell to use when invoking shell scripts.
14837 SHELL=$lt_SHELL
14838
14839 # Whether or not to build shared libraries.
14840 build_libtool_libs=$enable_shared
14841
14842 # Whether or not to build static libraries.
14843 build_old_libs=$enable_static
14844
14845 # Whether or not to add -lc for building shared libraries.
14846 build_libtool_need_lc=$archive_cmds_need_lc_F77
14847
14848 # Whether or not to disallow shared libs when runtime libs are static
14849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14850
14851 # Whether or not to optimize for fast installation.
14852 fast_install=$enable_fast_install
14853
14854 # The host system.
14855 host_alias=$host_alias
14856 host=$host
14857 host_os=$host_os
14858
14859 # The build system.
14860 build_alias=$build_alias
14861 build=$build
14862 build_os=$build_os
14863
14864 # An echo program that does not interpret backslashes.
14865 echo=$lt_echo
14866
14867 # The archiver.
14868 AR=$lt_AR
14869 AR_FLAGS=$lt_AR_FLAGS
14870
14871 # A C compiler.
14872 LTCC=$lt_LTCC
14873
14874 # A language-specific compiler.
14875 CC=$lt_compiler_F77
14876
14877 # Is the compiler the GNU C compiler?
14878 with_gcc=$GCC_F77
14879
14880 # An ERE matcher.
14881 EGREP=$lt_EGREP
14882
14883 # The linker used to build libraries.
14884 LD=$lt_LD_F77
14885
14886 # Whether we need hard or soft links.
14887 LN_S=$lt_LN_S
14888
14889 # A BSD-compatible nm program.
14890 NM=$lt_NM
14891
14892 # A symbol stripping program
14893 STRIP=$lt_STRIP
14894
14895 # Used to examine libraries when file_magic_cmd begins "file"
14896 MAGIC_CMD=$MAGIC_CMD
14897
14898 # Used on cygwin: DLL creation program.
14899 DLLTOOL="$DLLTOOL"
14900
14901 # Used on cygwin: object dumper.
14902 OBJDUMP="$OBJDUMP"
14903
14904 # Used on cygwin: assembler.
14905 AS="$AS"
14906
14907 # The name of the directory that contains temporary libtool files.
14908 objdir=$objdir
14909
14910 # How to create reloadable object files.
14911 reload_flag=$lt_reload_flag
14912 reload_cmds=$lt_reload_cmds
14913
14914 # How to pass a linker flag through the compiler.
14915 wl=$lt_lt_prog_compiler_wl_F77
14916
14917 # Object file suffix (normally "o").
14918 objext="$ac_objext"
14919
14920 # Old archive suffix (normally "a").
14921 libext="$libext"
14922
14923 # Shared library suffix (normally ".so").
14924 shrext_cmds='$shrext_cmds'
14925
14926 # Executable file suffix (normally "").
14927 exeext="$exeext"
14928
14929 # Additional compiler flags for building library objects.
14930 pic_flag=$lt_lt_prog_compiler_pic_F77
14931 pic_mode=$pic_mode
14932
14933 # What is the maximum length of a command?
14934 max_cmd_len=$lt_cv_sys_max_cmd_len
14935
14936 # Does compiler simultaneously support -c and -o options?
14937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14938
14939 # Must we lock files when doing compilation?
14940 need_locks=$lt_need_locks
14941
14942 # Do we need the lib prefix for modules?
14943 need_lib_prefix=$need_lib_prefix
14944
14945 # Do we need a version for libraries?
14946 need_version=$need_version
14947
14948 # Whether dlopen is supported.
14949 dlopen_support=$enable_dlopen
14950
14951 # Whether dlopen of programs is supported.
14952 dlopen_self=$enable_dlopen_self
14953
14954 # Whether dlopen of statically linked programs is supported.
14955 dlopen_self_static=$enable_dlopen_self_static
14956
14957 # Compiler flag to prevent dynamic linking.
14958 link_static_flag=$lt_lt_prog_compiler_static_F77
14959
14960 # Compiler flag to turn off builtin functions.
14961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14962
14963 # Compiler flag to allow reflexive dlopens.
14964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14965
14966 # Compiler flag to generate shared objects directly from archives.
14967 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14968
14969 # Compiler flag to generate thread-safe objects.
14970 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14971
14972 # Library versioning type.
14973 version_type=$version_type
14974
14975 # Format of library name prefix.
14976 libname_spec=$lt_libname_spec
14977
14978 # List of archive names. First name is the real one, the rest are links.
14979 # The last name is the one that the linker finds with -lNAME.
14980 library_names_spec=$lt_library_names_spec
14981
14982 # The coded name of the library, if different from the real name.
14983 soname_spec=$lt_soname_spec
14984
14985 # Commands used to build and install an old-style archive.
14986 RANLIB=$lt_RANLIB
14987 old_archive_cmds=$lt_old_archive_cmds_F77
14988 old_postinstall_cmds=$lt_old_postinstall_cmds
14989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14990
14991 # Create an old-style archive from a shared archive.
14992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14993
14994 # Create a temporary old-style archive to link instead of a shared archive.
14995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14996
14997 # Commands used to build and install a shared archive.
14998 archive_cmds=$lt_archive_cmds_F77
14999 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15000 postinstall_cmds=$lt_postinstall_cmds
15001 postuninstall_cmds=$lt_postuninstall_cmds
15002
15003 # Commands used to build a loadable module (assumed same as above if empty)
15004 module_cmds=$lt_module_cmds_F77
15005 module_expsym_cmds=$lt_module_expsym_cmds_F77
15006
15007 # Commands to strip libraries.
15008 old_striplib=$lt_old_striplib
15009 striplib=$lt_striplib
15010
15011 # Dependencies to place before the objects being linked to create a
15012 # shared library.
15013 predep_objects=$lt_predep_objects_F77
15014
15015 # Dependencies to place after the objects being linked to create a
15016 # shared library.
15017 postdep_objects=$lt_postdep_objects_F77
15018
15019 # Dependencies to place before the objects being linked to create a
15020 # shared library.
15021 predeps=$lt_predeps_F77
15022
15023 # Dependencies to place after the objects being linked to create a
15024 # shared library.
15025 postdeps=$lt_postdeps_F77
15026
15027 # The library search path used internally by the compiler when linking
15028 # a shared library.
15029 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15030
15031 # Method to check whether dependent libraries are shared objects.
15032 deplibs_check_method=$lt_deplibs_check_method
15033
15034 # Command to use when deplibs_check_method == file_magic.
15035 file_magic_cmd=$lt_file_magic_cmd
15036
15037 # Flag that allows shared libraries with undefined symbols to be built.
15038 allow_undefined_flag=$lt_allow_undefined_flag_F77
15039
15040 # Flag that forces no undefined symbols.
15041 no_undefined_flag=$lt_no_undefined_flag_F77
15042
15043 # Commands used to finish a libtool library installation in a directory.
15044 finish_cmds=$lt_finish_cmds
15045
15046 # Same as above, but a single script fragment to be evaled but not shown.
15047 finish_eval=$lt_finish_eval
15048
15049 # Take the output of nm and produce a listing of raw symbols and C names.
15050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15051
15052 # Transform the output of nm in a proper C declaration
15053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15054
15055 # Transform the output of nm in a C name address pair
15056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15057
15058 # This is the shared library runtime path variable.
15059 runpath_var=$runpath_var
15060
15061 # This is the shared library path variable.
15062 shlibpath_var=$shlibpath_var
15063
15064 # Is shlibpath searched before the hard-coded library search path?
15065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15066
15067 # How to hardcode a shared library path into an executable.
15068 hardcode_action=$hardcode_action_F77
15069
15070 # Whether we should hardcode library paths into libraries.
15071 hardcode_into_libs=$hardcode_into_libs
15072
15073 # Flag to hardcode \$libdir into a binary during linking.
15074 # This must work even if \$libdir does not exist.
15075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15076
15077 # If ld is used when linking, flag to hardcode \$libdir into
15078 # a binary during linking. This must work even if \$libdir does
15079 # not exist.
15080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15081
15082 # Whether we need a single -rpath flag with a separated argument.
15083 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15084
15085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15086 # resulting binary.
15087 hardcode_direct=$hardcode_direct_F77
15088
15089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15090 # resulting binary.
15091 hardcode_minus_L=$hardcode_minus_L_F77
15092
15093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15094 # the resulting binary.
15095 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15096
15097 # Set to yes if building a shared library automatically hardcodes DIR into the library
15098 # and all subsequent libraries and executables linked against it.
15099 hardcode_automatic=$hardcode_automatic_F77
15100
15101 # Variables whose values should be saved in libtool wrapper scripts and
15102 # restored at relink time.
15103 variables_saved_for_relink="$variables_saved_for_relink"
15104
15105 # Whether libtool must link a program against all its dependency libraries.
15106 link_all_deplibs=$link_all_deplibs_F77
15107
15108 # Compile-time system search path for libraries
15109 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15110
15111 # Run-time system search path for libraries
15112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15113
15114 # Fix the shell variable \$srcfile for the compiler.
15115 fix_srcfile_path="$fix_srcfile_path_F77"
15116
15117 # Set to yes if exported symbols are required.
15118 always_export_symbols=$always_export_symbols_F77
15119
15120 # The commands to list exported symbols.
15121 export_symbols_cmds=$lt_export_symbols_cmds_F77
15122
15123 # The commands to extract the exported symbol list from a shared archive.
15124 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15125
15126 # Symbols that should not be listed in the preloaded symbols.
15127 exclude_expsyms=$lt_exclude_expsyms_F77
15128
15129 # Symbols that must always be exported.
15130 include_expsyms=$lt_include_expsyms_F77
15131
15132 # ### END LIBTOOL TAG CONFIG: $tagname
15133
15134 __EOF__
15135
15136
15137 else
15138 # If there is no Makefile yet, we rely on a make rule to execute
15139 # `config.status --recheck' to rerun these tests and create the
15140 # libtool script then.
15141 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15142 if test -f "$ltmain_in"; then
15143 test -f Makefile && make "$ltmain"
15144 fi
15145 fi
15146
15147
15148 ac_ext=c
15149 ac_cpp='$CPP $CPPFLAGS'
15150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15153
15154 CC="$lt_save_CC"
15155
15156 else
15157 tagname=""
15158 fi
15159 ;;
15160
15161 GCJ)
15162 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15163
15164
15165
15166 # Source file extension for Java test sources.
15167 ac_ext=java
15168
15169 # Object file extension for compiled Java test sources.
15170 objext=o
15171 objext_GCJ=$objext
15172
15173 # Code to be used in simple compile tests
15174 lt_simple_compile_test_code="class foo {}\n"
15175
15176 # Code to be used in simple link tests
15177 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15178
15179 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15180
15181 # If no C compiler was specified, use CC.
15182 LTCC=${LTCC-"$CC"}
15183
15184 # Allow CC to be a program name with arguments.
15185 compiler=$CC
15186
15187
15188 # save warnings/boilerplate of simple test code
15189 ac_outfile=conftest.$ac_objext
15190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15192 _lt_compiler_boilerplate=`cat conftest.err`
15193 $rm conftest*
15194
15195 ac_outfile=conftest.$ac_objext
15196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15198 _lt_linker_boilerplate=`cat conftest.err`
15199 $rm conftest*
15200
15201
15202 # Allow CC to be a program name with arguments.
15203 lt_save_CC="$CC"
15204 CC=${GCJ-"gcj"}
15205 compiler=$CC
15206 compiler_GCJ=$CC
15207 for cc_temp in $compiler""; do
15208 case $cc_temp in
15209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15211 \-*) ;;
15212 *) break;;
15213 esac
15214 done
15215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15216
15217
15218 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15219 archive_cmds_need_lc_GCJ=no
15220
15221 old_archive_cmds_GCJ=$old_archive_cmds
15222
15223 ## CAVEAT EMPTOR:
15224 ## There is no encapsulation within the following macros, do not change
15225 ## the running order or otherwise move them around unless you know exactly
15226 ## what you are doing...
15227
15228 lt_prog_compiler_no_builtin_flag_GCJ=
15229
15230 if test "$GCC" = yes; then
15231 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15232
15233
15234 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15235 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15236 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239 lt_cv_prog_compiler_rtti_exceptions=no
15240 ac_outfile=conftest.$ac_objext
15241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15242 lt_compiler_flag="-fno-rtti -fno-exceptions"
15243 # Insert the option either (1) after the last *FLAGS variable, or
15244 # (2) before a word containing "conftest.", or (3) at the end.
15245 # Note that $ac_compile itself does not contain backslashes and begins
15246 # with a dollar sign (not a hyphen), so the echo should work correctly.
15247 # The option is referenced via a variable to avoid confusing sed.
15248 lt_compile=`echo "$ac_compile" | $SED \
15249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15251 -e 's:$: $lt_compiler_flag:'`
15252 (eval echo "\"\$as_me:15252: $lt_compile\"" >&5)
15253 (eval "$lt_compile" 2>conftest.err)
15254 ac_status=$?
15255 cat conftest.err >&5
15256 echo "$as_me:15256: \$? = $ac_status" >&5
15257 if (exit $ac_status) && test -s "$ac_outfile"; then
15258 # The compiler can only warn and ignore the option if not recognized
15259 # So say no if there are warnings other than the usual output.
15260 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15261 $SED '/^$/d' conftest.err >conftest.er2
15262 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15263 lt_cv_prog_compiler_rtti_exceptions=yes
15264 fi
15265 fi
15266 $rm conftest*
15267
15268 fi
15269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15270 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15271
15272 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15273 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15274 else
15275 :
15276 fi
15277
15278 fi
15279
15280 lt_prog_compiler_wl_GCJ=
15281 lt_prog_compiler_pic_GCJ=
15282 lt_prog_compiler_static_GCJ=
15283
15284 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15285 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15286
15287 if test "$GCC" = yes; then
15288 lt_prog_compiler_wl_GCJ='-Wl,'
15289 lt_prog_compiler_static_GCJ='-static'
15290
15291 case $host_os in
15292 aix*)
15293 # All AIX code is PIC.
15294 if test "$host_cpu" = ia64; then
15295 # AIX 5 now supports IA64 processor
15296 lt_prog_compiler_static_GCJ='-Bstatic'
15297 fi
15298 ;;
15299
15300 amigaos*)
15301 # FIXME: we need at least 68020 code to build shared libraries, but
15302 # adding the `-m68020' flag to GCC prevents building anything better,
15303 # like `-m68040'.
15304 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15305 ;;
15306
15307 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15308 # PIC is the default for these OSes.
15309 ;;
15310
15311 mingw* | pw32* | os2*)
15312 # This hack is so that the source file can tell whether it is being
15313 # built for inclusion in a dll (and should export symbols for example).
15314 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15315 ;;
15316
15317 darwin* | rhapsody*)
15318 # PIC is the default on this platform
15319 # Common symbols not allowed in MH_DYLIB files
15320 lt_prog_compiler_pic_GCJ='-fno-common'
15321 ;;
15322
15323 msdosdjgpp*)
15324 # Just because we use GCC doesn't mean we suddenly get shared libraries
15325 # on systems that don't support them.
15326 lt_prog_compiler_can_build_shared_GCJ=no
15327 enable_shared=no
15328 ;;
15329
15330 sysv4*MP*)
15331 if test -d /usr/nec; then
15332 lt_prog_compiler_pic_GCJ=-Kconform_pic
15333 fi
15334 ;;
15335
15336 hpux*)
15337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15338 # not for PA HP-UX.
15339 case "$host_cpu" in
15340 hppa*64*|ia64*)
15341 # +Z the default
15342 ;;
15343 *)
15344 lt_prog_compiler_pic_GCJ='-fPIC'
15345 ;;
15346 esac
15347 ;;
15348
15349 *)
15350 lt_prog_compiler_pic_GCJ='-fPIC'
15351 ;;
15352 esac
15353 else
15354 # PORTME Check for flag to pass linker flags through the system compiler.
15355 case $host_os in
15356 aix*)
15357 lt_prog_compiler_wl_GCJ='-Wl,'
15358 if test "$host_cpu" = ia64; then
15359 # AIX 5 now supports IA64 processor
15360 lt_prog_compiler_static_GCJ='-Bstatic'
15361 else
15362 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15363 fi
15364 ;;
15365 darwin*)
15366 # PIC is the default on this platform
15367 # Common symbols not allowed in MH_DYLIB files
15368 case $cc_basename in
15369 xlc*)
15370 lt_prog_compiler_pic_GCJ='-qnocommon'
15371 lt_prog_compiler_wl_GCJ='-Wl,'
15372 ;;
15373 esac
15374 ;;
15375
15376 mingw* | pw32* | os2*)
15377 # This hack is so that the source file can tell whether it is being
15378 # built for inclusion in a dll (and should export symbols for example).
15379 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15380 ;;
15381
15382 hpux9* | hpux10* | hpux11*)
15383 lt_prog_compiler_wl_GCJ='-Wl,'
15384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15385 # not for PA HP-UX.
15386 case "$host_cpu" in
15387 hppa*64*|ia64*)
15388 # +Z the default
15389 ;;
15390 *)
15391 lt_prog_compiler_pic_GCJ='+Z'
15392 ;;
15393 esac
15394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15395 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15396 ;;
15397
15398 irix5* | irix6* | nonstopux*)
15399 lt_prog_compiler_wl_GCJ='-Wl,'
15400 # PIC (with -KPIC) is the default.
15401 lt_prog_compiler_static_GCJ='-non_shared'
15402 ;;
15403
15404 newsos6)
15405 lt_prog_compiler_pic_GCJ='-KPIC'
15406 lt_prog_compiler_static_GCJ='-Bstatic'
15407 ;;
15408
15409 linux*)
15410 case $cc_basename in
15411 icc* | ecc*)
15412 lt_prog_compiler_wl_GCJ='-Wl,'
15413 lt_prog_compiler_pic_GCJ='-KPIC'
15414 lt_prog_compiler_static_GCJ='-static'
15415 ;;
15416 pgcc* | pgf77* | pgf90*)
15417 # Portland Group compilers (*not* the Pentium gcc compiler,
15418 # which looks to be a dead project)
15419 lt_prog_compiler_wl_GCJ='-Wl,'
15420 lt_prog_compiler_pic_GCJ='-fpic'
15421 lt_prog_compiler_static_GCJ='-static'
15422 ;;
15423 ccc*)
15424 lt_prog_compiler_wl_GCJ='-Wl,'
15425 # All Alpha code is PIC.
15426 lt_prog_compiler_static_GCJ='-non_shared'
15427 ;;
15428 esac
15429 ;;
15430
15431 osf3* | osf4* | osf5*)
15432 lt_prog_compiler_wl_GCJ='-Wl,'
15433 # All OSF/1 code is PIC.
15434 lt_prog_compiler_static_GCJ='-non_shared'
15435 ;;
15436
15437 sco3.2v5*)
15438 lt_prog_compiler_pic_GCJ='-Kpic'
15439 lt_prog_compiler_static_GCJ='-dn'
15440 ;;
15441
15442 solaris*)
15443 lt_prog_compiler_pic_GCJ='-KPIC'
15444 lt_prog_compiler_static_GCJ='-Bstatic'
15445 case $cc_basename in
15446 f77* | f90* | f95*)
15447 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15448 *)
15449 lt_prog_compiler_wl_GCJ='-Wl,';;
15450 esac
15451 ;;
15452
15453 sunos4*)
15454 lt_prog_compiler_wl_GCJ='-Qoption ld '
15455 lt_prog_compiler_pic_GCJ='-PIC'
15456 lt_prog_compiler_static_GCJ='-Bstatic'
15457 ;;
15458
15459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15460 lt_prog_compiler_wl_GCJ='-Wl,'
15461 lt_prog_compiler_pic_GCJ='-KPIC'
15462 lt_prog_compiler_static_GCJ='-Bstatic'
15463 ;;
15464
15465 sysv4*MP*)
15466 if test -d /usr/nec ;then
15467 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15468 lt_prog_compiler_static_GCJ='-Bstatic'
15469 fi
15470 ;;
15471
15472 unicos*)
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15474 lt_prog_compiler_can_build_shared_GCJ=no
15475 ;;
15476
15477 uts4*)
15478 lt_prog_compiler_pic_GCJ='-pic'
15479 lt_prog_compiler_static_GCJ='-Bstatic'
15480 ;;
15481
15482 *)
15483 lt_prog_compiler_can_build_shared_GCJ=no
15484 ;;
15485 esac
15486 fi
15487
15488 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15489 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15490
15491 #
15492 # Check to make sure the PIC flag actually works.
15493 #
15494 if test -n "$lt_prog_compiler_pic_GCJ"; then
15495
15496 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15497 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15498 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 lt_prog_compiler_pic_works_GCJ=no
15502 ac_outfile=conftest.$ac_objext
15503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15504 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15505 # Insert the option either (1) after the last *FLAGS variable, or
15506 # (2) before a word containing "conftest.", or (3) at the end.
15507 # Note that $ac_compile itself does not contain backslashes and begins
15508 # with a dollar sign (not a hyphen), so the echo should work correctly.
15509 # The option is referenced via a variable to avoid confusing sed.
15510 lt_compile=`echo "$ac_compile" | $SED \
15511 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15513 -e 's:$: $lt_compiler_flag:'`
15514 (eval echo "\"\$as_me:15514: $lt_compile\"" >&5)
15515 (eval "$lt_compile" 2>conftest.err)
15516 ac_status=$?
15517 cat conftest.err >&5
15518 echo "$as_me:15518: \$? = $ac_status" >&5
15519 if (exit $ac_status) && test -s "$ac_outfile"; then
15520 # The compiler can only warn and ignore the option if not recognized
15521 # So say no if there are warnings other than the usual output.
15522 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15523 $SED '/^$/d' conftest.err >conftest.er2
15524 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15525 lt_prog_compiler_pic_works_GCJ=yes
15526 fi
15527 fi
15528 $rm conftest*
15529
15530 fi
15531 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15532 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15533
15534 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15535 case $lt_prog_compiler_pic_GCJ in
15536 "" | " "*) ;;
15537 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15538 esac
15539 else
15540 lt_prog_compiler_pic_GCJ=
15541 lt_prog_compiler_can_build_shared_GCJ=no
15542 fi
15543
15544 fi
15545 case "$host_os" in
15546 # For platforms which do not support PIC, -DPIC is meaningless:
15547 *djgpp*)
15548 lt_prog_compiler_pic_GCJ=
15549 ;;
15550 *)
15551 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15552 ;;
15553 esac
15554
15555 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15556 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15557 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 lt_cv_prog_compiler_c_o_GCJ=no
15561 $rm -r conftest 2>/dev/null
15562 mkdir conftest
15563 cd conftest
15564 mkdir out
15565 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15566
15567 lt_compiler_flag="-o out/conftest2.$ac_objext"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 lt_compile=`echo "$ac_compile" | $SED \
15573 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575 -e 's:$: $lt_compiler_flag:'`
15576 (eval echo "\"\$as_me:15576: $lt_compile\"" >&5)
15577 (eval "$lt_compile" 2>out/conftest.err)
15578 ac_status=$?
15579 cat out/conftest.err >&5
15580 echo "$as_me:15580: \$? = $ac_status" >&5
15581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15582 then
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings
15585 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15586 $SED '/^$/d' out/conftest.err >out/conftest.er2
15587 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_c_o_GCJ=yes
15589 fi
15590 fi
15591 chmod u+w .
15592 $rm conftest*
15593 # SGI C++ compiler will create directory out/ii_files/ for
15594 # template instantiation
15595 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15596 $rm out/* && rmdir out
15597 cd ..
15598 rmdir conftest
15599 $rm conftest*
15600
15601 fi
15602 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15603 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15604
15605
15606 hard_links="nottested"
15607 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15608 # do not overwrite the value of need_locks provided by the user
15609 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15610 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15611 hard_links=yes
15612 $rm conftest*
15613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15614 touch conftest.a
15615 ln conftest.a conftest.b 2>&5 || hard_links=no
15616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15617 echo "$as_me:$LINENO: result: $hard_links" >&5
15618 echo "${ECHO_T}$hard_links" >&6
15619 if test "$hard_links" = no; then
15620 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15621 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15622 need_locks=warn
15623 fi
15624 else
15625 need_locks=no
15626 fi
15627
15628 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15629 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15630
15631 runpath_var=
15632 allow_undefined_flag_GCJ=
15633 enable_shared_with_static_runtimes_GCJ=no
15634 archive_cmds_GCJ=
15635 archive_expsym_cmds_GCJ=
15636 old_archive_From_new_cmds_GCJ=
15637 old_archive_from_expsyms_cmds_GCJ=
15638 export_dynamic_flag_spec_GCJ=
15639 whole_archive_flag_spec_GCJ=
15640 thread_safe_flag_spec_GCJ=
15641 hardcode_libdir_flag_spec_GCJ=
15642 hardcode_libdir_flag_spec_ld_GCJ=
15643 hardcode_libdir_separator_GCJ=
15644 hardcode_direct_GCJ=no
15645 hardcode_minus_L_GCJ=no
15646 hardcode_shlibpath_var_GCJ=unsupported
15647 link_all_deplibs_GCJ=unknown
15648 hardcode_automatic_GCJ=no
15649 module_cmds_GCJ=
15650 module_expsym_cmds_GCJ=
15651 always_export_symbols_GCJ=no
15652 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15653 # include_expsyms should be a list of space-separated symbols to be *always*
15654 # included in the symbol list
15655 include_expsyms_GCJ=
15656 # exclude_expsyms can be an extended regexp of symbols to exclude
15657 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15659 # as well as any symbol that contains `d'.
15660 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15662 # platforms (ab)use it in PIC code, but their linkers get confused if
15663 # the symbol is explicitly referenced. Since portable code cannot
15664 # rely on this symbol name, it's probably fine to never include it in
15665 # preloaded symbol tables.
15666 extract_expsyms_cmds=
15667 # Just being paranoid about ensuring that cc_basename is set.
15668 for cc_temp in $compiler""; do
15669 case $cc_temp in
15670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15672 \-*) ;;
15673 *) break;;
15674 esac
15675 done
15676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15677
15678 case $host_os in
15679 cygwin* | mingw* | pw32*)
15680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15681 # When not using gcc, we currently assume that we are using
15682 # Microsoft Visual C++.
15683 if test "$GCC" != yes; then
15684 with_gnu_ld=no
15685 fi
15686 ;;
15687 openbsd*)
15688 with_gnu_ld=no
15689 ;;
15690 esac
15691
15692 ld_shlibs_GCJ=yes
15693 if test "$with_gnu_ld" = yes; then
15694 # If archive_cmds runs LD, not CC, wlarc should be empty
15695 wlarc='${wl}'
15696
15697 # Set some defaults for GNU ld with shared library support. These
15698 # are reset later if shared libraries are not supported. Putting them
15699 # here allows them to be overridden if necessary.
15700 runpath_var=LD_RUN_PATH
15701 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15702 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15703 # ancient GNU ld didn't support --whole-archive et. al.
15704 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15705 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15706 else
15707 whole_archive_flag_spec_GCJ=
15708 fi
15709 supports_anon_versioning=no
15710 case `$LD -v 2>/dev/null` in
15711 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15712 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15713 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15714 *\ 2.11.*) ;; # other 2.11 versions
15715 *) supports_anon_versioning=yes ;;
15716 esac
15717
15718 # See if GNU ld supports shared libraries.
15719 case $host_os in
15720 aix3* | aix4* | aix5*)
15721 # On AIX/PPC, the GNU linker is very broken
15722 if test "$host_cpu" != ia64; then
15723 ld_shlibs_GCJ=no
15724 cat <<EOF 1>&2
15725
15726 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15727 *** to be unable to reliably create shared libraries on AIX.
15728 *** Therefore, libtool is disabling shared libraries support. If you
15729 *** really care for shared libraries, you may want to modify your PATH
15730 *** so that a non-GNU linker is found, and then restart.
15731
15732 EOF
15733 fi
15734 ;;
15735
15736 amigaos*)
15737 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)'
15738 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15739 hardcode_minus_L_GCJ=yes
15740
15741 # Samuel A. Falvo II <[email protected]> reports
15742 # that the semantics of dynamic libraries on AmigaOS, at least up
15743 # to version 4, is to share data among multiple programs linked
15744 # with the same dynamic library. Since this doesn't match the
15745 # behavior of shared libraries on other platforms, we can't use
15746 # them.
15747 ld_shlibs_GCJ=no
15748 ;;
15749
15750 beos*)
15751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15752 allow_undefined_flag_GCJ=unsupported
15753 # Joseph Beckenbach <[email protected]> says some releases of gcc
15754 # support --undefined. This deserves some investigation. FIXME
15755 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15756 else
15757 ld_shlibs_GCJ=no
15758 fi
15759 ;;
15760
15761 cygwin* | mingw* | pw32*)
15762 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15763 # as there is no search path for DLLs.
15764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15765 allow_undefined_flag_GCJ=unsupported
15766 always_export_symbols_GCJ=no
15767 enable_shared_with_static_runtimes_GCJ=yes
15768 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15769
15770 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15771 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15772 # If the export-symbols file already is a .def file (1st line
15773 # is EXPORTS), use it as is; otherwise, prepend...
15774 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15775 cp $export_symbols $output_objdir/$soname.def;
15776 else
15777 echo EXPORTS > $output_objdir/$soname.def;
15778 cat $export_symbols >> $output_objdir/$soname.def;
15779 fi~
15780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15781 else
15782 ld_shlibs_GCJ=no
15783 fi
15784 ;;
15785
15786 linux*)
15787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15788 tmp_addflag=
15789 case $cc_basename,$host_cpu in
15790 pgcc*) # Portland Group C compiler
15791 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15792 tmp_addflag=' $pic_flag'
15793 ;;
15794 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
15795 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15796 tmp_addflag=' $pic_flag -Mnomain' ;;
15797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15798 tmp_addflag=' -i_dynamic' ;;
15799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15800 tmp_addflag=' -i_dynamic -nofor_main' ;;
15801 ifc* | ifort*) # Intel Fortran compiler
15802 tmp_addflag=' -nofor_main' ;;
15803 esac
15804 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805
15806 if test $supports_anon_versioning = yes; then
15807 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15809 $echo "local: *; };" >> $output_objdir/$libname.ver~
15810 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15811 fi
15812 else
15813 ld_shlibs_GCJ=no
15814 fi
15815 ;;
15816
15817 netbsd*)
15818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15819 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15820 wlarc=
15821 else
15822 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15824 fi
15825 ;;
15826
15827 solaris* | sysv5*)
15828 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15829 ld_shlibs_GCJ=no
15830 cat <<EOF 1>&2
15831
15832 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15833 *** create shared libraries on Solaris systems. Therefore, libtool
15834 *** is disabling shared libraries support. We urge you to upgrade GNU
15835 *** binutils to release 2.9.1 or newer. Another option is to modify
15836 *** your PATH or compiler configuration so that the native linker is
15837 *** used, and then restart.
15838
15839 EOF
15840 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15841 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15843 else
15844 ld_shlibs_GCJ=no
15845 fi
15846 ;;
15847
15848 sunos4*)
15849 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15850 wlarc=
15851 hardcode_direct_GCJ=yes
15852 hardcode_shlibpath_var_GCJ=no
15853 ;;
15854
15855 *)
15856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15859 else
15860 ld_shlibs_GCJ=no
15861 fi
15862 ;;
15863 esac
15864
15865 if test "$ld_shlibs_GCJ" = no; then
15866 runpath_var=
15867 hardcode_libdir_flag_spec_GCJ=
15868 export_dynamic_flag_spec_GCJ=
15869 whole_archive_flag_spec_GCJ=
15870 fi
15871 else
15872 # PORTME fill in a description of your system's linker (not GNU ld)
15873 case $host_os in
15874 aix3*)
15875 allow_undefined_flag_GCJ=unsupported
15876 always_export_symbols_GCJ=yes
15877 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'
15878 # Note: this linker hardcodes the directories in LIBPATH if there
15879 # are no directories specified by -L.
15880 hardcode_minus_L_GCJ=yes
15881 if test "$GCC" = yes && test -z "$link_static_flag"; then
15882 # Neither direct hardcoding nor static linking is supported with a
15883 # broken collect2.
15884 hardcode_direct_GCJ=unsupported
15885 fi
15886 ;;
15887
15888 aix4* | aix5*)
15889 if test "$host_cpu" = ia64; then
15890 # On IA64, the linker does run time linking by default, so we don't
15891 # have to do anything special.
15892 aix_use_runtimelinking=no
15893 exp_sym_flag='-Bexport'
15894 no_entry_flag=""
15895 else
15896 # If we're using GNU nm, then we don't want the "-C" option.
15897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15899 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'
15900 else
15901 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'
15902 fi
15903 aix_use_runtimelinking=no
15904
15905 # Test if we are trying to use run time linking or normal
15906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15907 # need to do runtime linking.
15908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15909 for ld_flag in $LDFLAGS; do
15910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15911 aix_use_runtimelinking=yes
15912 break
15913 fi
15914 done
15915 esac
15916
15917 exp_sym_flag='-bexport'
15918 no_entry_flag='-bnoentry'
15919 fi
15920
15921 # When large executables or shared objects are built, AIX ld can
15922 # have problems creating the table of contents. If linking a library
15923 # or program results in "error TOC overflow" add -mminimal-toc to
15924 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15925 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15926
15927 archive_cmds_GCJ=''
15928 hardcode_direct_GCJ=yes
15929 hardcode_libdir_separator_GCJ=':'
15930 link_all_deplibs_GCJ=yes
15931
15932 if test "$GCC" = yes; then
15933 case $host_os in aix4.[012]|aix4.[012].*)
15934 # We only want to do this on AIX 4.2 and lower, the check
15935 # below for broken collect2 doesn't work under 4.3+
15936 collect2name=`${CC} -print-prog-name=collect2`
15937 if test -f "$collect2name" && \
15938 strings "$collect2name" | grep resolve_lib_name >/dev/null
15939 then
15940 # We have reworked collect2
15941 hardcode_direct_GCJ=yes
15942 else
15943 # We have old collect2
15944 hardcode_direct_GCJ=unsupported
15945 # It fails to find uninstalled libraries when the uninstalled
15946 # path is not listed in the libpath. Setting hardcode_minus_L
15947 # to unsupported forces relinking
15948 hardcode_minus_L_GCJ=yes
15949 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15950 hardcode_libdir_separator_GCJ=
15951 fi
15952 esac
15953 shared_flag='-shared'
15954 if test "$aix_use_runtimelinking" = yes; then
15955 shared_flag="$shared_flag "'${wl}-G'
15956 fi
15957 else
15958 # not using gcc
15959 if test "$host_cpu" = ia64; then
15960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15961 # chokes on -Wl,-G. The following line is correct:
15962 shared_flag='-G'
15963 else
15964 if test "$aix_use_runtimelinking" = yes; then
15965 shared_flag='${wl}-G'
15966 else
15967 shared_flag='${wl}-bM:SRE'
15968 fi
15969 fi
15970 fi
15971
15972 # It seems that -bexpall does not export symbols beginning with
15973 # underscore (_), so it is better to generate a list of symbols to export.
15974 always_export_symbols_GCJ=yes
15975 if test "$aix_use_runtimelinking" = yes; then
15976 # Warning - without using the other runtime loading flags (-brtl),
15977 # -berok will link without error, but may produce a broken library.
15978 allow_undefined_flag_GCJ='-berok'
15979 # Determine the default libpath from the value encoded in an empty executable.
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986
15987 int
15988 main ()
15989 {
15990
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16017
16018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16019 }'`
16020 # Check for a 64-bit object if we didn't find anything.
16021 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; }
16022 }'`; fi
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 fi
16028 rm -f conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16031
16032 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16033 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"
16034 else
16035 if test "$host_cpu" = ia64; then
16036 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16037 allow_undefined_flag_GCJ="-z nodefs"
16038 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"
16039 else
16040 # Determine the default libpath from the value encoded in an empty executable.
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047
16048 int
16049 main ()
16050 {
16051
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16058 (eval $ac_link) 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag"
16066 || test ! -s conftest.err'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest$ac_exeext'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078
16079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16080 }'`
16081 # Check for a 64-bit object if we didn't find anything.
16082 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; }
16083 }'`; fi
16084 else
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 fi
16089 rm -f conftest.err conftest.$ac_objext \
16090 conftest$ac_exeext conftest.$ac_ext
16091 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16092
16093 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16094 # Warning - without using the other run time loading flags,
16095 # -berok will link without error, but may produce a broken library.
16096 no_undefined_flag_GCJ=' ${wl}-bernotok'
16097 allow_undefined_flag_GCJ=' ${wl}-berok'
16098 # -bexpall does not export symbols beginning with underscore (_)
16099 always_export_symbols_GCJ=yes
16100 # Exported symbols can be pulled into shared objects from archives
16101 whole_archive_flag_spec_GCJ=' '
16102 archive_cmds_need_lc_GCJ=yes
16103 # This is similar to how AIX traditionally builds it's shared libraries.
16104 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'
16105 fi
16106 fi
16107 ;;
16108
16109 amigaos*)
16110 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)'
16111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16112 hardcode_minus_L_GCJ=yes
16113 # see comment about different semantics on the GNU ld section
16114 ld_shlibs_GCJ=no
16115 ;;
16116
16117 bsdi[45]*)
16118 export_dynamic_flag_spec_GCJ=-rdynamic
16119 ;;
16120
16121 cygwin* | mingw* | pw32*)
16122 # When not using gcc, we currently assume that we are using
16123 # Microsoft Visual C++.
16124 # hardcode_libdir_flag_spec is actually meaningless, as there is
16125 # no search path for DLLs.
16126 hardcode_libdir_flag_spec_GCJ=' '
16127 allow_undefined_flag_GCJ=unsupported
16128 # Tell ltmain to make .lib files, not .a files.
16129 libext=lib
16130 # Tell ltmain to make .dll files, not .so files.
16131 shrext_cmds=".dll"
16132 # FIXME: Setting linknames here is a bad hack.
16133 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16134 # The linker will automatically build a .lib file if we build a DLL.
16135 old_archive_From_new_cmds_GCJ='true'
16136 # FIXME: Should let the user specify the lib program.
16137 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16138 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16139 enable_shared_with_static_runtimes_GCJ=yes
16140 ;;
16141
16142 darwin* | rhapsody*)
16143 case "$host_os" in
16144 rhapsody* | darwin1.[012])
16145 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16146 ;;
16147 *) # Darwin 1.3 on
16148 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16149 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16150 else
16151 case ${MACOSX_DEPLOYMENT_TARGET} in
16152 10.[012])
16153 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16154 ;;
16155 10.*)
16156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16157 ;;
16158 esac
16159 fi
16160 ;;
16161 esac
16162 archive_cmds_need_lc_GCJ=no
16163 hardcode_direct_GCJ=no
16164 hardcode_automatic_GCJ=yes
16165 hardcode_shlibpath_var_GCJ=unsupported
16166 whole_archive_flag_spec_GCJ=''
16167 link_all_deplibs_GCJ=yes
16168 if test "$GCC" = yes ; then
16169 output_verbose_link_cmd='echo'
16170 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16171 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16173 archive_expsym_cmds_GCJ='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}'
16174 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16175 else
16176 case $cc_basename in
16177 xlc*)
16178 output_verbose_link_cmd='echo'
16179 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16180 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16182 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16183 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16184 ;;
16185 *)
16186 ld_shlibs_GCJ=no
16187 ;;
16188 esac
16189 fi
16190 ;;
16191
16192 dgux*)
16193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16195 hardcode_shlibpath_var_GCJ=no
16196 ;;
16197
16198 freebsd1*)
16199 ld_shlibs_GCJ=no
16200 ;;
16201
16202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16203 # support. Future versions do this automatically, but an explicit c++rt0.o
16204 # does not break anything, and helps significantly (at the cost of a little
16205 # extra space).
16206 freebsd2.2*)
16207 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16208 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16209 hardcode_direct_GCJ=yes
16210 hardcode_shlibpath_var_GCJ=no
16211 ;;
16212
16213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16214 freebsd2*)
16215 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_direct_GCJ=yes
16217 hardcode_minus_L_GCJ=yes
16218 hardcode_shlibpath_var_GCJ=no
16219 ;;
16220
16221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16222 freebsd* | kfreebsd*-gnu | dragonfly*)
16223 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16224 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16225 hardcode_direct_GCJ=yes
16226 hardcode_shlibpath_var_GCJ=no
16227 ;;
16228
16229 hpux9*)
16230 if test "$GCC" = yes; then
16231 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'
16232 else
16233 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'
16234 fi
16235 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16236 hardcode_libdir_separator_GCJ=:
16237 hardcode_direct_GCJ=yes
16238
16239 # hardcode_minus_L: Not really in the search PATH,
16240 # but as the default location of the library.
16241 hardcode_minus_L_GCJ=yes
16242 export_dynamic_flag_spec_GCJ='${wl}-E'
16243 ;;
16244
16245 hpux10* | hpux11*)
16246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16247 case "$host_cpu" in
16248 hppa*64*|ia64*)
16249 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 ;;
16251 *)
16252 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16253 ;;
16254 esac
16255 else
16256 case "$host_cpu" in
16257 hppa*64*|ia64*)
16258 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 ;;
16260 *)
16261 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16262 ;;
16263 esac
16264 fi
16265 if test "$with_gnu_ld" = no; then
16266 case "$host_cpu" in
16267 hppa*64*)
16268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16269 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16270 hardcode_libdir_separator_GCJ=:
16271 hardcode_direct_GCJ=no
16272 hardcode_shlibpath_var_GCJ=no
16273 ;;
16274 ia64*)
16275 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16276 hardcode_direct_GCJ=no
16277 hardcode_shlibpath_var_GCJ=no
16278
16279 # hardcode_minus_L: Not really in the search PATH,
16280 # but as the default location of the library.
16281 hardcode_minus_L_GCJ=yes
16282 ;;
16283 *)
16284 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16285 hardcode_libdir_separator_GCJ=:
16286 hardcode_direct_GCJ=yes
16287 export_dynamic_flag_spec_GCJ='${wl}-E'
16288
16289 # hardcode_minus_L: Not really in the search PATH,
16290 # but as the default location of the library.
16291 hardcode_minus_L_GCJ=yes
16292 ;;
16293 esac
16294 fi
16295 ;;
16296
16297 irix5* | irix6* | nonstopux*)
16298 if test "$GCC" = yes; then
16299 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'
16300 else
16301 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'
16302 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16303 fi
16304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16305 hardcode_libdir_separator_GCJ=:
16306 link_all_deplibs_GCJ=yes
16307 ;;
16308
16309 netbsd*)
16310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16311 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16312 else
16313 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16314 fi
16315 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16316 hardcode_direct_GCJ=yes
16317 hardcode_shlibpath_var_GCJ=no
16318 ;;
16319
16320 newsos6)
16321 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_direct_GCJ=yes
16323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16324 hardcode_libdir_separator_GCJ=:
16325 hardcode_shlibpath_var_GCJ=no
16326 ;;
16327
16328 openbsd*)
16329 hardcode_direct_GCJ=yes
16330 hardcode_shlibpath_var_GCJ=no
16331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16332 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16333 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16335 export_dynamic_flag_spec_GCJ='${wl}-E'
16336 else
16337 case $host_os in
16338 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16339 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16340 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16341 ;;
16342 *)
16343 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16345 ;;
16346 esac
16347 fi
16348 ;;
16349
16350 os2*)
16351 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16352 hardcode_minus_L_GCJ=yes
16353 allow_undefined_flag_GCJ=unsupported
16354 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'
16355 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16356 ;;
16357
16358 osf3*)
16359 if test "$GCC" = yes; then
16360 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16361 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'
16362 else
16363 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16364 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'
16365 fi
16366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16367 hardcode_libdir_separator_GCJ=:
16368 ;;
16369
16370 osf4* | osf5*) # as osf3* with the addition of -msym flag
16371 if test "$GCC" = yes; then
16372 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16373 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'
16374 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16375 else
16376 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16377 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'
16378 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~
16379 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16380
16381 # Both c and cxx compiler support -rpath directly
16382 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16383 fi
16384 hardcode_libdir_separator_GCJ=:
16385 ;;
16386
16387 sco3.2v5*)
16388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16389 hardcode_shlibpath_var_GCJ=no
16390 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16391 runpath_var=LD_RUN_PATH
16392 hardcode_runpath_var=yes
16393 ;;
16394
16395 solaris*)
16396 no_undefined_flag_GCJ=' -z text'
16397 if test "$GCC" = yes; then
16398 wlarc='${wl}'
16399 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16400 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16401 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16402 else
16403 wlarc=''
16404 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16405 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16407 fi
16408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16409 hardcode_shlibpath_var_GCJ=no
16410 case $host_os in
16411 solaris2.[0-5] | solaris2.[0-5].*) ;;
16412 *)
16413 # The compiler driver will combine linker options so we
16414 # cannot just pass the convience library names through
16415 # without $wl, iff we do not link with $LD.
16416 # Luckily, gcc supports the same syntax we need for Sun Studio.
16417 # Supported since Solaris 2.6 (maybe 2.5.1?)
16418 case $wlarc in
16419 '')
16420 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16421 *)
16422 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16423 esac ;;
16424 esac
16425 link_all_deplibs_GCJ=yes
16426 ;;
16427
16428 sunos4*)
16429 if test "x$host_vendor" = xsequent; then
16430 # Use $CC to link under sequent, because it throws in some extra .o
16431 # files that make .init and .fini sections work.
16432 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16433 else
16434 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16435 fi
16436 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16437 hardcode_direct_GCJ=yes
16438 hardcode_minus_L_GCJ=yes
16439 hardcode_shlibpath_var_GCJ=no
16440 ;;
16441
16442 sysv4)
16443 case $host_vendor in
16444 sni)
16445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 hardcode_direct_GCJ=yes # is this really true???
16447 ;;
16448 siemens)
16449 ## LD is ld it makes a PLAMLIB
16450 ## CC just makes a GrossModule.
16451 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16452 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16453 hardcode_direct_GCJ=no
16454 ;;
16455 motorola)
16456 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16458 ;;
16459 esac
16460 runpath_var='LD_RUN_PATH'
16461 hardcode_shlibpath_var_GCJ=no
16462 ;;
16463
16464 sysv4.3*)
16465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_shlibpath_var_GCJ=no
16467 export_dynamic_flag_spec_GCJ='-Bexport'
16468 ;;
16469
16470 sysv4*MP*)
16471 if test -d /usr/nec; then
16472 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_shlibpath_var_GCJ=no
16474 runpath_var=LD_RUN_PATH
16475 hardcode_runpath_var=yes
16476 ld_shlibs_GCJ=yes
16477 fi
16478 ;;
16479
16480 sysv4.2uw2*)
16481 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16482 hardcode_direct_GCJ=yes
16483 hardcode_minus_L_GCJ=no
16484 hardcode_shlibpath_var_GCJ=no
16485 hardcode_runpath_var=yes
16486 runpath_var=LD_RUN_PATH
16487 ;;
16488
16489 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16490 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16491 if test "$GCC" = yes; then
16492 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16493 else
16494 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 fi
16496 runpath_var='LD_RUN_PATH'
16497 hardcode_shlibpath_var_GCJ=no
16498 ;;
16499
16500 sysv5*)
16501 no_undefined_flag_GCJ=' -z text'
16502 # $CC -shared without GNU ld will not create a library from C++
16503 # object files and a static libstdc++, better avoid it by now
16504 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16507 hardcode_libdir_flag_spec_GCJ=
16508 hardcode_shlibpath_var_GCJ=no
16509 runpath_var='LD_RUN_PATH'
16510 ;;
16511
16512 uts4*)
16513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16515 hardcode_shlibpath_var_GCJ=no
16516 ;;
16517
16518 *)
16519 ld_shlibs_GCJ=no
16520 ;;
16521 esac
16522 fi
16523
16524 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16525 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16526 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16527
16528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529 if test "$GCC" = yes; then
16530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16531 fi
16532
16533 #
16534 # Do we need to explicitly link libc?
16535 #
16536 case "x$archive_cmds_need_lc_GCJ" in
16537 x|xyes)
16538 # Assume -lc should be added
16539 archive_cmds_need_lc_GCJ=yes
16540
16541 if test "$enable_shared" = yes && test "$GCC" = yes; then
16542 case $archive_cmds_GCJ in
16543 *'~'*)
16544 # FIXME: we may have to deal with multi-command sequences.
16545 ;;
16546 '$CC '*)
16547 # Test whether the compiler implicitly links with -lc since on some
16548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16549 # to ld, don't add -lc before -lgcc.
16550 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16551 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16552 $rm conftest*
16553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } 2>conftest.err; then
16560 soname=conftest
16561 lib=conftest
16562 libobjs=conftest.$ac_objext
16563 deplibs=
16564 wl=$lt_prog_compiler_wl_GCJ
16565 compiler_flags=-v
16566 linker_flags=-v
16567 verstring=
16568 output_objdir=.
16569 libname=conftest
16570 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16571 allow_undefined_flag_GCJ=
16572 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16573 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }
16577 then
16578 archive_cmds_need_lc_GCJ=no
16579 else
16580 archive_cmds_need_lc_GCJ=yes
16581 fi
16582 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16583 else
16584 cat conftest.err 1>&5
16585 fi
16586 $rm conftest*
16587 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16588 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16589 ;;
16590 esac
16591 fi
16592 ;;
16593 esac
16594
16595 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16596 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16597 library_names_spec=
16598 libname_spec='lib$name'
16599 soname_spec=
16600 shrext_cmds=".so"
16601 postinstall_cmds=
16602 postuninstall_cmds=
16603 finish_cmds=
16604 finish_eval=
16605 shlibpath_var=
16606 shlibpath_overrides_runpath=unknown
16607 version_type=none
16608 dynamic_linker="$host_os ld.so"
16609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16610 if test "$GCC" = yes; then
16611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16613 # if the path contains ";" then we assume it to be the separator
16614 # otherwise default to the standard path separator (i.e. ":") - it is
16615 # assumed that no part of a normal pathname contains ";" but that should
16616 # okay in the real world where ";" in dirpaths is itself problematic.
16617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16618 else
16619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16620 fi
16621 else
16622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16623 fi
16624 need_lib_prefix=unknown
16625 hardcode_into_libs=no
16626
16627 # when you set need_version to no, make sure it does not cause -set_version
16628 # flags to be left without arguments
16629 need_version=unknown
16630
16631 case $host_os in
16632 aix3*)
16633 version_type=linux
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16635 shlibpath_var=LIBPATH
16636
16637 # AIX 3 has no versioning support, so we append a major version to the name.
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 ;;
16640
16641 aix4* | aix5*)
16642 version_type=linux
16643 need_lib_prefix=no
16644 need_version=no
16645 hardcode_into_libs=yes
16646 if test "$host_cpu" = ia64; then
16647 # AIX 5 supports IA64
16648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16649 shlibpath_var=LD_LIBRARY_PATH
16650 else
16651 # With GCC up to 2.95.x, collect2 would create an import file
16652 # for dependence libraries. The import file would start with
16653 # the line `#! .'. This would cause the generated library to
16654 # depend on `.', always an invalid library. This was fixed in
16655 # development snapshots of GCC prior to 3.0.
16656 case $host_os in
16657 aix4 | aix4.[01] | aix4.[01].*)
16658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16659 echo ' yes '
16660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16661 :
16662 else
16663 can_build_shared=no
16664 fi
16665 ;;
16666 esac
16667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16668 # soname into executable. Probably we can add versioning support to
16669 # collect2, so additional links can be useful in future.
16670 if test "$aix_use_runtimelinking" = yes; then
16671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16672 # instead of lib<name>.a to let people know that these are not
16673 # typical AIX shared libraries.
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675 else
16676 # We preserve .a as extension for shared libraries through AIX4.2
16677 # and later when we are not doing run time linking.
16678 library_names_spec='${libname}${release}.a $libname.a'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 fi
16681 shlibpath_var=LIBPATH
16682 fi
16683 ;;
16684
16685 amigaos*)
16686 library_names_spec='$libname.ixlibrary $libname.a'
16687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16688 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'
16689 ;;
16690
16691 beos*)
16692 library_names_spec='${libname}${shared_ext}'
16693 dynamic_linker="$host_os ld.so"
16694 shlibpath_var=LIBRARY_PATH
16695 ;;
16696
16697 bsdi[45]*)
16698 version_type=linux
16699 need_version=no
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16703 shlibpath_var=LD_LIBRARY_PATH
16704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16706 # the default ld.so.conf also contains /usr/contrib/lib and
16707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16708 # libtool to hard-code these into programs
16709 ;;
16710
16711 cygwin* | mingw* | pw32*)
16712 version_type=windows
16713 shrext_cmds=".dll"
16714 need_version=no
16715 need_lib_prefix=no
16716
16717 case $GCC,$host_os in
16718 yes,cygwin* | yes,mingw* | yes,pw32*)
16719 library_names_spec='$libname.dll.a'
16720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16721 postinstall_cmds='base_file=`basename \${file}`~
16722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16723 dldir=$destdir/`dirname \$dlpath`~
16724 test -d \$dldir || mkdir -p \$dldir~
16725 $install_prog $dir/$dlname \$dldir/$dlname'
16726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16727 dlpath=$dir/\$dldll~
16728 $rm \$dlpath'
16729 shlibpath_overrides_runpath=yes
16730
16731 case $host_os in
16732 cygwin*)
16733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16736 ;;
16737 mingw*)
16738 # MinGW DLLs use traditional 'lib' prefix
16739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16742 # It is most probably a Windows format PATH printed by
16743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16744 # path with ; separators, and with drive letters. We can handle the
16745 # drive letters (cygwin fileutils understands them), so leave them,
16746 # especially as we might pass files found there to a mingw objdump,
16747 # which wouldn't understand a cygwinified path. Ahh.
16748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16749 else
16750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16751 fi
16752 ;;
16753 pw32*)
16754 # pw32 DLLs use 'pw' prefix rather than 'lib'
16755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16756 ;;
16757 esac
16758 ;;
16759
16760 *)
16761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16762 ;;
16763 esac
16764 dynamic_linker='Win32 ld.exe'
16765 # FIXME: first we should search . and the directory the executable is in
16766 shlibpath_var=PATH
16767 ;;
16768
16769 darwin* | rhapsody*)
16770 dynamic_linker="$host_os dyld"
16771 version_type=darwin
16772 need_lib_prefix=no
16773 need_version=no
16774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16775 soname_spec='${libname}${release}${major}$shared_ext'
16776 shlibpath_overrides_runpath=yes
16777 shlibpath_var=DYLD_LIBRARY_PATH
16778 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16780 if test "$GCC" = yes; then
16781 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"`
16782 else
16783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16784 fi
16785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16786 ;;
16787
16788 dgux*)
16789 version_type=linux
16790 need_lib_prefix=no
16791 need_version=no
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 ;;
16796
16797 freebsd1*)
16798 dynamic_linker=no
16799 ;;
16800
16801 kfreebsd*-gnu)
16802 version_type=linux
16803 need_lib_prefix=no
16804 need_version=no
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=no
16809 hardcode_into_libs=yes
16810 dynamic_linker='GNU ld.so'
16811 ;;
16812
16813 freebsd* | dragonfly*)
16814 # DragonFly does not have aout. When/if they implement a new
16815 # versioning mechanism, adjust this.
16816 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16817 version_type=freebsd-$objformat
16818 case $version_type in
16819 freebsd-elf*)
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16821 need_version=no
16822 need_lib_prefix=no
16823 ;;
16824 freebsd-*)
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16826 need_version=yes
16827 ;;
16828 esac
16829 shlibpath_var=LD_LIBRARY_PATH
16830 case $host_os in
16831 freebsd2*)
16832 shlibpath_overrides_runpath=yes
16833 ;;
16834 freebsd3.[01]* | freebsdelf3.[01]*)
16835 shlibpath_overrides_runpath=yes
16836 hardcode_into_libs=yes
16837 ;;
16838 *) # from 3.2 on
16839 shlibpath_overrides_runpath=no
16840 hardcode_into_libs=yes
16841 ;;
16842 esac
16843 ;;
16844
16845 gnu*)
16846 version_type=linux
16847 need_lib_prefix=no
16848 need_version=no
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 hardcode_into_libs=yes
16853 ;;
16854
16855 hpux9* | hpux10* | hpux11*)
16856 # Give a soname corresponding to the major version so that dld.sl refuses to
16857 # link against other versions.
16858 version_type=sunos
16859 need_lib_prefix=no
16860 need_version=no
16861 case "$host_cpu" in
16862 ia64*)
16863 shrext_cmds='.so'
16864 hardcode_into_libs=yes
16865 dynamic_linker="$host_os dld.so"
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 if test "X$HPUX_IA64_MODE" = X32; then
16871 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16872 else
16873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16874 fi
16875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16876 ;;
16877 hppa*64*)
16878 shrext_cmds='.sl'
16879 hardcode_into_libs=yes
16880 dynamic_linker="$host_os dld.sl"
16881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16887 ;;
16888 *)
16889 shrext_cmds='.sl'
16890 dynamic_linker="$host_os dld.sl"
16891 shlibpath_var=SHLIB_PATH
16892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 ;;
16896 esac
16897 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16898 postinstall_cmds='chmod 555 $lib'
16899 ;;
16900
16901 irix5* | irix6* | nonstopux*)
16902 case $host_os in
16903 nonstopux*) version_type=nonstopux ;;
16904 *)
16905 if test "$lt_cv_prog_gnu_ld" = yes; then
16906 version_type=linux
16907 else
16908 version_type=irix
16909 fi ;;
16910 esac
16911 need_lib_prefix=no
16912 need_version=no
16913 soname_spec='${libname}${release}${shared_ext}$major'
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16915 case $host_os in
16916 irix5* | nonstopux*)
16917 libsuff= shlibsuff=
16918 ;;
16919 *)
16920 case $LD in # libtool.m4 will add one of these switches to LD
16921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16922 libsuff= shlibsuff= libmagic=32-bit;;
16923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16924 libsuff=32 shlibsuff=N32 libmagic=N32;;
16925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16927 *) libsuff= shlibsuff= libmagic=never-match;;
16928 esac
16929 ;;
16930 esac
16931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16932 shlibpath_overrides_runpath=no
16933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16935 hardcode_into_libs=yes
16936 ;;
16937
16938 # No shared lib support for Linux oldld, aout, or coff.
16939 linux*oldld* | linux*aout* | linux*coff*)
16940 dynamic_linker=no
16941 ;;
16942
16943 # This must be Linux ELF.
16944 linux*)
16945 version_type=linux
16946 need_lib_prefix=no
16947 need_version=no
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 shlibpath_overrides_runpath=no
16953 # This implies no fast_install, which is unacceptable.
16954 # Some rework will be needed to allow for fast_install
16955 # before this can be enabled.
16956 hardcode_into_libs=yes
16957
16958 # find out which ABI we are using
16959 libsuff=
16960 case "$host_cpu" in
16961 x86_64*|s390x*|powerpc64*)
16962 echo '#line 16962 "configure"' > conftest.$ac_ext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964 (eval $ac_compile) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; then
16968 case `/usr/bin/file conftest.$ac_objext` in
16969 *64-bit*)
16970 libsuff=64
16971 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16972 ;;
16973 esac
16974 fi
16975 rm -rf conftest*
16976 ;;
16977 esac
16978
16979 # Append ld.so.conf contents to the search path
16980 if test -f /etc/ld.so.conf; then
16981 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16982 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16983 fi
16984
16985 # We used to test for /lib/ld.so.1 and disable shared libraries on
16986 # powerpc, because MkLinux only supported shared libraries with the
16987 # GNU dynamic linker. Since this was broken with cross compilers,
16988 # most powerpc-linux boxes support dynamic linking these days and
16989 # people can always --disable-shared, the test was removed, and we
16990 # assume the GNU/Linux dynamic linker is in use.
16991 dynamic_linker='GNU/Linux ld.so'
16992 ;;
16993
16994 knetbsd*-gnu)
16995 version_type=linux
16996 need_lib_prefix=no
16997 need_version=no
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 shlibpath_var=LD_LIBRARY_PATH
17001 shlibpath_overrides_runpath=no
17002 hardcode_into_libs=yes
17003 dynamic_linker='GNU ld.so'
17004 ;;
17005
17006 netbsd*)
17007 version_type=sunos
17008 need_lib_prefix=no
17009 need_version=no
17010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17013 dynamic_linker='NetBSD (a.out) ld.so'
17014 else
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 dynamic_linker='NetBSD ld.elf_so'
17018 fi
17019 shlibpath_var=LD_LIBRARY_PATH
17020 shlibpath_overrides_runpath=yes
17021 hardcode_into_libs=yes
17022 ;;
17023
17024 newsos6)
17025 version_type=linux
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes
17029 ;;
17030
17031 nto-qnx*)
17032 version_type=linux
17033 need_lib_prefix=no
17034 need_version=no
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=yes
17039 ;;
17040
17041 openbsd*)
17042 version_type=sunos
17043 need_lib_prefix=no
17044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17045 case $host_os in
17046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17047 *) need_version=no ;;
17048 esac
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17051 shlibpath_var=LD_LIBRARY_PATH
17052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17053 case $host_os in
17054 openbsd2.[89] | openbsd2.[89].*)
17055 shlibpath_overrides_runpath=no
17056 ;;
17057 *)
17058 shlibpath_overrides_runpath=yes
17059 ;;
17060 esac
17061 else
17062 shlibpath_overrides_runpath=yes
17063 fi
17064 ;;
17065
17066 os2*)
17067 libname_spec='$name'
17068 shrext_cmds=".dll"
17069 need_lib_prefix=no
17070 library_names_spec='$libname${shared_ext} $libname.a'
17071 dynamic_linker='OS/2 ld.exe'
17072 shlibpath_var=LIBPATH
17073 ;;
17074
17075 osf3* | osf4* | osf5*)
17076 version_type=osf
17077 need_lib_prefix=no
17078 need_version=no
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17084 ;;
17085
17086 sco3.2v5*)
17087 version_type=osf
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 ;;
17092
17093 solaris*)
17094 version_type=linux
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17102 # ldd complains unless libraries are executable
17103 postinstall_cmds='chmod +x $lib'
17104 ;;
17105
17106 sunos4*)
17107 version_type=sunos
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=yes
17112 if test "$with_gnu_ld" = yes; then
17113 need_lib_prefix=no
17114 fi
17115 need_version=yes
17116 ;;
17117
17118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17119 version_type=linux
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 case $host_vendor in
17124 sni)
17125 shlibpath_overrides_runpath=no
17126 need_lib_prefix=no
17127 export_dynamic_flag_spec='${wl}-Blargedynsym'
17128 runpath_var=LD_RUN_PATH
17129 ;;
17130 siemens)
17131 need_lib_prefix=no
17132 ;;
17133 motorola)
17134 need_lib_prefix=no
17135 need_version=no
17136 shlibpath_overrides_runpath=no
17137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17138 ;;
17139 esac
17140 ;;
17141
17142 sysv4*MP*)
17143 if test -d /usr/nec ;then
17144 version_type=linux
17145 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17146 soname_spec='$libname${shared_ext}.$major'
17147 shlibpath_var=LD_LIBRARY_PATH
17148 fi
17149 ;;
17150
17151 uts4*)
17152 version_type=linux
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 ;;
17157
17158 *)
17159 dynamic_linker=no
17160 ;;
17161 esac
17162 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17163 echo "${ECHO_T}$dynamic_linker" >&6
17164 test "$dynamic_linker" = no && can_build_shared=no
17165
17166 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17168 hardcode_action_GCJ=
17169 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17170 test -n "$runpath_var_GCJ" || \
17171 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17172
17173 # We can hardcode non-existant directories.
17174 if test "$hardcode_direct_GCJ" != no &&
17175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17176 # have to relink, otherwise we might link with an installed library
17177 # when we should be linking with a yet-to-be-installed one
17178 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17179 test "$hardcode_minus_L_GCJ" != no; then
17180 # Linking always hardcodes the temporary library directory.
17181 hardcode_action_GCJ=relink
17182 else
17183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17184 hardcode_action_GCJ=immediate
17185 fi
17186 else
17187 # We cannot hardcode anything, or else we can only hardcode existing
17188 # directories.
17189 hardcode_action_GCJ=unsupported
17190 fi
17191 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17192 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17193
17194 if test "$hardcode_action_GCJ" = relink; then
17195 # Fast installation is not supported
17196 enable_fast_install=no
17197 elif test "$shlibpath_overrides_runpath" = yes ||
17198 test "$enable_shared" = no; then
17199 # Fast installation is not necessary
17200 enable_fast_install=needless
17201 fi
17202
17203 striplib=
17204 old_striplib=
17205 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17206 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17207 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17208 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17209 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17210 echo "$as_me:$LINENO: result: yes" >&5
17211 echo "${ECHO_T}yes" >&6
17212 else
17213 # FIXME - insert some real tests, host_os isn't really good enough
17214 case $host_os in
17215 darwin*)
17216 if test -n "$STRIP" ; then
17217 striplib="$STRIP -x"
17218 echo "$as_me:$LINENO: result: yes" >&5
17219 echo "${ECHO_T}yes" >&6
17220 else
17221 echo "$as_me:$LINENO: result: no" >&5
17222 echo "${ECHO_T}no" >&6
17223 fi
17224 ;;
17225 *)
17226 echo "$as_me:$LINENO: result: no" >&5
17227 echo "${ECHO_T}no" >&6
17228 ;;
17229 esac
17230 fi
17231
17232 if test "x$enable_dlopen" != xyes; then
17233 enable_dlopen=unknown
17234 enable_dlopen_self=unknown
17235 enable_dlopen_self_static=unknown
17236 else
17237 lt_cv_dlopen=no
17238 lt_cv_dlopen_libs=
17239
17240 case $host_os in
17241 beos*)
17242 lt_cv_dlopen="load_add_on"
17243 lt_cv_dlopen_libs=
17244 lt_cv_dlopen_self=yes
17245 ;;
17246
17247 mingw* | pw32*)
17248 lt_cv_dlopen="LoadLibrary"
17249 lt_cv_dlopen_libs=
17250 ;;
17251
17252 cygwin*)
17253 lt_cv_dlopen="dlopen"
17254 lt_cv_dlopen_libs=
17255 ;;
17256
17257 darwin*)
17258 # if libdl is installed we need to link against it
17259 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17260 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17261 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264 ac_check_lib_save_LIBS=$LIBS
17265 LIBS="-ldl $LIBS"
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h. */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272
17273 /* Override any gcc2 internal prototype to avoid an error. */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 /* We use char because int might match the return type of a gcc2
17278 builtin and then its argument prototype would still apply. */
17279 char dlopen ();
17280 int
17281 main ()
17282 {
17283 dlopen ();
17284 ;
17285 return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290 (eval $ac_link) 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -z "$ac_c_werror_flag"
17298 || test ! -s conftest.err'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest$ac_exeext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_cv_lib_dl_dlopen=yes
17311 else
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_cv_lib_dl_dlopen=no
17316 fi
17317 rm -f conftest.err conftest.$ac_objext \
17318 conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17320 fi
17321 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17322 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17323 if test $ac_cv_lib_dl_dlopen = yes; then
17324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17325 else
17326
17327 lt_cv_dlopen="dyld"
17328 lt_cv_dlopen_libs=
17329 lt_cv_dlopen_self=yes
17330
17331 fi
17332
17333 ;;
17334
17335 *)
17336 echo "$as_me:$LINENO: checking for shl_load" >&5
17337 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17338 if test "${ac_cv_func_shl_load+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17349 #define shl_load innocuous_shl_load
17350
17351 /* System header to define __stub macros and hopefully few prototypes,
17352 which can conflict with char shl_load (); below.
17353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17354 <limits.h> exists even on freestanding compilers. */
17355
17356 #ifdef __STDC__
17357 # include <limits.h>
17358 #else
17359 # include <assert.h>
17360 #endif
17361
17362 #undef shl_load
17363
17364 /* Override any gcc2 internal prototype to avoid an error. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 {
17368 #endif
17369 /* We use char because int might match the return type of a gcc2
17370 builtin and then its argument prototype would still apply. */
17371 char shl_load ();
17372 /* The GNU C library defines this for functions which it implements
17373 to always fail with ENOSYS. Some functions are actually named
17374 something starting with __ and the normal name is an alias. */
17375 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17376 choke me
17377 #else
17378 char (*f) () = shl_load;
17379 #endif
17380 #ifdef __cplusplus
17381 }
17382 #endif
17383
17384 int
17385 main ()
17386 {
17387 return f != shl_load;
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394 (eval $ac_link) 2>conftest.er1
17395 ac_status=$?
17396 grep -v '^ *+' conftest.er1 >conftest.err
17397 rm -f conftest.er1
17398 cat conftest.err >&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } &&
17401 { ac_try='test -z "$ac_c_werror_flag"
17402 || test ! -s conftest.err'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 ac_cv_func_shl_load=yes
17415 else
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17418
17419 ac_cv_func_shl_load=no
17420 fi
17421 rm -f conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17423 fi
17424 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17426 if test $ac_cv_func_shl_load = yes; then
17427 lt_cv_dlopen="shl_load"
17428 else
17429 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 else
17434 ac_check_lib_save_LIBS=$LIBS
17435 LIBS="-ldld $LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442
17443 /* Override any gcc2 internal prototype to avoid an error. */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17449 char shl_load ();
17450 int
17451 main ()
17452 {
17453 shl_load ();
17454 ;
17455 return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_lib_dld_shl_load=yes
17481 else
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 ac_cv_lib_dld_shl_load=no
17486 fi
17487 rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489 LIBS=$ac_check_lib_save_LIBS
17490 fi
17491 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17492 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17493 if test $ac_cv_lib_dld_shl_load = yes; then
17494 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17495 else
17496 echo "$as_me:$LINENO: checking for dlopen" >&5
17497 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17498 if test "${ac_cv_func_dlopen+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501 cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17509 #define dlopen innocuous_dlopen
17510
17511 /* System header to define __stub macros and hopefully few prototypes,
17512 which can conflict with char dlopen (); below.
17513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514 <limits.h> exists even on freestanding compilers. */
17515
17516 #ifdef __STDC__
17517 # include <limits.h>
17518 #else
17519 # include <assert.h>
17520 #endif
17521
17522 #undef dlopen
17523
17524 /* Override any gcc2 internal prototype to avoid an error. */
17525 #ifdef __cplusplus
17526 extern "C"
17527 {
17528 #endif
17529 /* We use char because int might match the return type of a gcc2
17530 builtin and then its argument prototype would still apply. */
17531 char dlopen ();
17532 /* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17536 choke me
17537 #else
17538 char (*f) () = dlopen;
17539 #endif
17540 #ifdef __cplusplus
17541 }
17542 #endif
17543
17544 int
17545 main ()
17546 {
17547 return f != dlopen;
17548 ;
17549 return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17554 (eval $ac_link) 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest$ac_exeext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_func_dlopen=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_cv_func_dlopen=no
17580 fi
17581 rm -f conftest.err conftest.$ac_objext \
17582 conftest$ac_exeext conftest.$ac_ext
17583 fi
17584 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17585 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17586 if test $ac_cv_func_dlopen = yes; then
17587 lt_cv_dlopen="dlopen"
17588 else
17589 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17590 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17591 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594 ac_check_lib_save_LIBS=$LIBS
17595 LIBS="-ldl $LIBS"
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602
17603 /* Override any gcc2 internal prototype to avoid an error. */
17604 #ifdef __cplusplus
17605 extern "C"
17606 #endif
17607 /* We use char because int might match the return type of a gcc2
17608 builtin and then its argument prototype would still apply. */
17609 char dlopen ();
17610 int
17611 main ()
17612 {
17613 dlopen ();
17614 ;
17615 return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620 (eval $ac_link) 2>conftest.er1
17621 ac_status=$?
17622 grep -v '^ *+' conftest.er1 >conftest.err
17623 rm -f conftest.er1
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -z "$ac_c_werror_flag"
17628 || test ! -s conftest.err'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ac_cv_lib_dl_dlopen=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 ac_cv_lib_dl_dlopen=no
17646 fi
17647 rm -f conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17649 LIBS=$ac_check_lib_save_LIBS
17650 fi
17651 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17653 if test $ac_cv_lib_dl_dlopen = yes; then
17654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17655 else
17656 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17657 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17658 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661 ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-lsvld $LIBS"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669
17670 /* Override any gcc2 internal prototype to avoid an error. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 /* We use char because int might match the return type of a gcc2
17675 builtin and then its argument prototype would still apply. */
17676 char dlopen ();
17677 int
17678 main ()
17679 {
17680 dlopen ();
17681 ;
17682 return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_lib_svld_dlopen=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 ac_cv_lib_svld_dlopen=no
17713 fi
17714 rm -f conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17716 LIBS=$ac_check_lib_save_LIBS
17717 fi
17718 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17719 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17720 if test $ac_cv_lib_svld_dlopen = yes; then
17721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17722 else
17723 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17724 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728 ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-ldld $LIBS"
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736
17737 /* Override any gcc2 internal prototype to avoid an error. */
17738 #ifdef __cplusplus
17739 extern "C"
17740 #endif
17741 /* We use char because int might match the return type of a gcc2
17742 builtin and then its argument prototype would still apply. */
17743 char dld_link ();
17744 int
17745 main ()
17746 {
17747 dld_link ();
17748 ;
17749 return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>conftest.er1
17755 ac_status=$?
17756 grep -v '^ *+' conftest.er1 >conftest.err
17757 rm -f conftest.er1
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag"
17762 || test ! -s conftest.err'
17763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764 (eval $ac_try) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774 ac_cv_lib_dld_dld_link=yes
17775 else
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ac_cv_lib_dld_dld_link=no
17780 fi
17781 rm -f conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17786 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17787 if test $ac_cv_lib_dld_dld_link = yes; then
17788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17789 fi
17790
17791
17792 fi
17793
17794
17795 fi
17796
17797
17798 fi
17799
17800
17801 fi
17802
17803
17804 fi
17805
17806 ;;
17807 esac
17808
17809 if test "x$lt_cv_dlopen" != xno; then
17810 enable_dlopen=yes
17811 else
17812 enable_dlopen=no
17813 fi
17814
17815 case $lt_cv_dlopen in
17816 dlopen)
17817 save_CPPFLAGS="$CPPFLAGS"
17818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17819
17820 save_LDFLAGS="$LDFLAGS"
17821 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17822
17823 save_LIBS="$LIBS"
17824 LIBS="$lt_cv_dlopen_libs $LIBS"
17825
17826 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17827 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17828 if test "${lt_cv_dlopen_self+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 if test "$cross_compiling" = yes; then :
17832 lt_cv_dlopen_self=cross
17833 else
17834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17835 lt_status=$lt_dlunknown
17836 cat > conftest.$ac_ext <<EOF
17837 #line 17837 "configure"
17838 #include "confdefs.h"
17839
17840 #if HAVE_DLFCN_H
17841 #include <dlfcn.h>
17842 #endif
17843
17844 #include <stdio.h>
17845
17846 #ifdef RTLD_GLOBAL
17847 # define LT_DLGLOBAL RTLD_GLOBAL
17848 #else
17849 # ifdef DL_GLOBAL
17850 # define LT_DLGLOBAL DL_GLOBAL
17851 # else
17852 # define LT_DLGLOBAL 0
17853 # endif
17854 #endif
17855
17856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17857 find out it does not work in some platform. */
17858 #ifndef LT_DLLAZY_OR_NOW
17859 # ifdef RTLD_LAZY
17860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17861 # else
17862 # ifdef DL_LAZY
17863 # define LT_DLLAZY_OR_NOW DL_LAZY
17864 # else
17865 # ifdef RTLD_NOW
17866 # define LT_DLLAZY_OR_NOW RTLD_NOW
17867 # else
17868 # ifdef DL_NOW
17869 # define LT_DLLAZY_OR_NOW DL_NOW
17870 # else
17871 # define LT_DLLAZY_OR_NOW 0
17872 # endif
17873 # endif
17874 # endif
17875 # endif
17876 #endif
17877
17878 #ifdef __cplusplus
17879 extern "C" void exit (int);
17880 #endif
17881
17882 void fnord() { int i=42;}
17883 int main ()
17884 {
17885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17886 int status = $lt_dlunknown;
17887
17888 if (self)
17889 {
17890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17891 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17892 /* dlclose (self); */
17893 }
17894
17895 exit (status);
17896 }
17897 EOF
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17903 (./conftest; exit; ) 2>/dev/null
17904 lt_status=$?
17905 case x$lt_status in
17906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17908 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17909 esac
17910 else :
17911 # compilation failed
17912 lt_cv_dlopen_self=no
17913 fi
17914 fi
17915 rm -fr conftest*
17916
17917
17918 fi
17919 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17920 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17921
17922 if test "x$lt_cv_dlopen_self" = xyes; then
17923 LDFLAGS="$LDFLAGS $link_static_flag"
17924 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17925 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17926 if test "${lt_cv_dlopen_self_static+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 else
17929 if test "$cross_compiling" = yes; then :
17930 lt_cv_dlopen_self_static=cross
17931 else
17932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17933 lt_status=$lt_dlunknown
17934 cat > conftest.$ac_ext <<EOF
17935 #line 17935 "configure"
17936 #include "confdefs.h"
17937
17938 #if HAVE_DLFCN_H
17939 #include <dlfcn.h>
17940 #endif
17941
17942 #include <stdio.h>
17943
17944 #ifdef RTLD_GLOBAL
17945 # define LT_DLGLOBAL RTLD_GLOBAL
17946 #else
17947 # ifdef DL_GLOBAL
17948 # define LT_DLGLOBAL DL_GLOBAL
17949 # else
17950 # define LT_DLGLOBAL 0
17951 # endif
17952 #endif
17953
17954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17955 find out it does not work in some platform. */
17956 #ifndef LT_DLLAZY_OR_NOW
17957 # ifdef RTLD_LAZY
17958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17959 # else
17960 # ifdef DL_LAZY
17961 # define LT_DLLAZY_OR_NOW DL_LAZY
17962 # else
17963 # ifdef RTLD_NOW
17964 # define LT_DLLAZY_OR_NOW RTLD_NOW
17965 # else
17966 # ifdef DL_NOW
17967 # define LT_DLLAZY_OR_NOW DL_NOW
17968 # else
17969 # define LT_DLLAZY_OR_NOW 0
17970 # endif
17971 # endif
17972 # endif
17973 # endif
17974 #endif
17975
17976 #ifdef __cplusplus
17977 extern "C" void exit (int);
17978 #endif
17979
17980 void fnord() { int i=42;}
17981 int main ()
17982 {
17983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17984 int status = $lt_dlunknown;
17985
17986 if (self)
17987 {
17988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17990 /* dlclose (self); */
17991 }
17992
17993 exit (status);
17994 }
17995 EOF
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997 (eval $ac_link) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18001 (./conftest; exit; ) 2>/dev/null
18002 lt_status=$?
18003 case x$lt_status in
18004 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18005 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18006 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18007 esac
18008 else :
18009 # compilation failed
18010 lt_cv_dlopen_self_static=no
18011 fi
18012 fi
18013 rm -fr conftest*
18014
18015
18016 fi
18017 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18018 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18019 fi
18020
18021 CPPFLAGS="$save_CPPFLAGS"
18022 LDFLAGS="$save_LDFLAGS"
18023 LIBS="$save_LIBS"
18024 ;;
18025 esac
18026
18027 case $lt_cv_dlopen_self in
18028 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18029 *) enable_dlopen_self=unknown ;;
18030 esac
18031
18032 case $lt_cv_dlopen_self_static in
18033 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18034 *) enable_dlopen_self_static=unknown ;;
18035 esac
18036 fi
18037
18038
18039 # The else clause should only fire when bootstrapping the
18040 # libtool distribution, otherwise you forgot to ship ltmain.sh
18041 # with your package, and you will get complaints that there are
18042 # no rules to generate ltmain.sh.
18043 if test -f "$ltmain"; then
18044 # See if we are running on zsh, and set the options which allow our commands through
18045 # without removal of \ escapes.
18046 if test -n "${ZSH_VERSION+set}" ; then
18047 setopt NO_GLOB_SUBST
18048 fi
18049 # Now quote all the things that may contain metacharacters while being
18050 # careful not to overquote the AC_SUBSTed values. We take copies of the
18051 # variables and quote the copies for generation of the libtool script.
18052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18053 SED SHELL STRIP \
18054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18056 deplibs_check_method reload_flag reload_cmds need_locks \
18057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18058 lt_cv_sys_global_symbol_to_c_name_address \
18059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18060 old_postinstall_cmds old_postuninstall_cmds \
18061 compiler_GCJ \
18062 CC_GCJ \
18063 LD_GCJ \
18064 lt_prog_compiler_wl_GCJ \
18065 lt_prog_compiler_pic_GCJ \
18066 lt_prog_compiler_static_GCJ \
18067 lt_prog_compiler_no_builtin_flag_GCJ \
18068 export_dynamic_flag_spec_GCJ \
18069 thread_safe_flag_spec_GCJ \
18070 whole_archive_flag_spec_GCJ \
18071 enable_shared_with_static_runtimes_GCJ \
18072 old_archive_cmds_GCJ \
18073 old_archive_from_new_cmds_GCJ \
18074 predep_objects_GCJ \
18075 postdep_objects_GCJ \
18076 predeps_GCJ \
18077 postdeps_GCJ \
18078 compiler_lib_search_path_GCJ \
18079 archive_cmds_GCJ \
18080 archive_expsym_cmds_GCJ \
18081 postinstall_cmds_GCJ \
18082 postuninstall_cmds_GCJ \
18083 old_archive_from_expsyms_cmds_GCJ \
18084 allow_undefined_flag_GCJ \
18085 no_undefined_flag_GCJ \
18086 export_symbols_cmds_GCJ \
18087 hardcode_libdir_flag_spec_GCJ \
18088 hardcode_libdir_flag_spec_ld_GCJ \
18089 hardcode_libdir_separator_GCJ \
18090 hardcode_automatic_GCJ \
18091 module_cmds_GCJ \
18092 module_expsym_cmds_GCJ \
18093 lt_cv_prog_compiler_c_o_GCJ \
18094 exclude_expsyms_GCJ \
18095 include_expsyms_GCJ; do
18096
18097 case $var in
18098 old_archive_cmds_GCJ | \
18099 old_archive_from_new_cmds_GCJ | \
18100 archive_cmds_GCJ | \
18101 archive_expsym_cmds_GCJ | \
18102 module_cmds_GCJ | \
18103 module_expsym_cmds_GCJ | \
18104 old_archive_from_expsyms_cmds_GCJ | \
18105 export_symbols_cmds_GCJ | \
18106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18107 postinstall_cmds | postuninstall_cmds | \
18108 old_postinstall_cmds | old_postuninstall_cmds | \
18109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18110 # Double-quote double-evaled strings.
18111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18112 ;;
18113 *)
18114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18115 ;;
18116 esac
18117 done
18118
18119 case $lt_echo in
18120 *'\$0 --fallback-echo"')
18121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18122 ;;
18123 esac
18124
18125 cfgfile="$ofile"
18126
18127 cat <<__EOF__ >> "$cfgfile"
18128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18129
18130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18131
18132 # Shell to use when invoking shell scripts.
18133 SHELL=$lt_SHELL
18134
18135 # Whether or not to build shared libraries.
18136 build_libtool_libs=$enable_shared
18137
18138 # Whether or not to build static libraries.
18139 build_old_libs=$enable_static
18140
18141 # Whether or not to add -lc for building shared libraries.
18142 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18143
18144 # Whether or not to disallow shared libs when runtime libs are static
18145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18146
18147 # Whether or not to optimize for fast installation.
18148 fast_install=$enable_fast_install
18149
18150 # The host system.
18151 host_alias=$host_alias
18152 host=$host
18153 host_os=$host_os
18154
18155 # The build system.
18156 build_alias=$build_alias
18157 build=$build
18158 build_os=$build_os
18159
18160 # An echo program that does not interpret backslashes.
18161 echo=$lt_echo
18162
18163 # The archiver.
18164 AR=$lt_AR
18165 AR_FLAGS=$lt_AR_FLAGS
18166
18167 # A C compiler.
18168 LTCC=$lt_LTCC
18169
18170 # A language-specific compiler.
18171 CC=$lt_compiler_GCJ
18172
18173 # Is the compiler the GNU C compiler?
18174 with_gcc=$GCC_GCJ
18175
18176 # An ERE matcher.
18177 EGREP=$lt_EGREP
18178
18179 # The linker used to build libraries.
18180 LD=$lt_LD_GCJ
18181
18182 # Whether we need hard or soft links.
18183 LN_S=$lt_LN_S
18184
18185 # A BSD-compatible nm program.
18186 NM=$lt_NM
18187
18188 # A symbol stripping program
18189 STRIP=$lt_STRIP
18190
18191 # Used to examine libraries when file_magic_cmd begins "file"
18192 MAGIC_CMD=$MAGIC_CMD
18193
18194 # Used on cygwin: DLL creation program.
18195 DLLTOOL="$DLLTOOL"
18196
18197 # Used on cygwin: object dumper.
18198 OBJDUMP="$OBJDUMP"
18199
18200 # Used on cygwin: assembler.
18201 AS="$AS"
18202
18203 # The name of the directory that contains temporary libtool files.
18204 objdir=$objdir
18205
18206 # How to create reloadable object files.
18207 reload_flag=$lt_reload_flag
18208 reload_cmds=$lt_reload_cmds
18209
18210 # How to pass a linker flag through the compiler.
18211 wl=$lt_lt_prog_compiler_wl_GCJ
18212
18213 # Object file suffix (normally "o").
18214 objext="$ac_objext"
18215
18216 # Old archive suffix (normally "a").
18217 libext="$libext"
18218
18219 # Shared library suffix (normally ".so").
18220 shrext_cmds='$shrext_cmds'
18221
18222 # Executable file suffix (normally "").
18223 exeext="$exeext"
18224
18225 # Additional compiler flags for building library objects.
18226 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18227 pic_mode=$pic_mode
18228
18229 # What is the maximum length of a command?
18230 max_cmd_len=$lt_cv_sys_max_cmd_len
18231
18232 # Does compiler simultaneously support -c and -o options?
18233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18234
18235 # Must we lock files when doing compilation?
18236 need_locks=$lt_need_locks
18237
18238 # Do we need the lib prefix for modules?
18239 need_lib_prefix=$need_lib_prefix
18240
18241 # Do we need a version for libraries?
18242 need_version=$need_version
18243
18244 # Whether dlopen is supported.
18245 dlopen_support=$enable_dlopen
18246
18247 # Whether dlopen of programs is supported.
18248 dlopen_self=$enable_dlopen_self
18249
18250 # Whether dlopen of statically linked programs is supported.
18251 dlopen_self_static=$enable_dlopen_self_static
18252
18253 # Compiler flag to prevent dynamic linking.
18254 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18255
18256 # Compiler flag to turn off builtin functions.
18257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18258
18259 # Compiler flag to allow reflexive dlopens.
18260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18261
18262 # Compiler flag to generate shared objects directly from archives.
18263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18264
18265 # Compiler flag to generate thread-safe objects.
18266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18267
18268 # Library versioning type.
18269 version_type=$version_type
18270
18271 # Format of library name prefix.
18272 libname_spec=$lt_libname_spec
18273
18274 # List of archive names. First name is the real one, the rest are links.
18275 # The last name is the one that the linker finds with -lNAME.
18276 library_names_spec=$lt_library_names_spec
18277
18278 # The coded name of the library, if different from the real name.
18279 soname_spec=$lt_soname_spec
18280
18281 # Commands used to build and install an old-style archive.
18282 RANLIB=$lt_RANLIB
18283 old_archive_cmds=$lt_old_archive_cmds_GCJ
18284 old_postinstall_cmds=$lt_old_postinstall_cmds
18285 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18286
18287 # Create an old-style archive from a shared archive.
18288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18289
18290 # Create a temporary old-style archive to link instead of a shared archive.
18291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18292
18293 # Commands used to build and install a shared archive.
18294 archive_cmds=$lt_archive_cmds_GCJ
18295 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18296 postinstall_cmds=$lt_postinstall_cmds
18297 postuninstall_cmds=$lt_postuninstall_cmds
18298
18299 # Commands used to build a loadable module (assumed same as above if empty)
18300 module_cmds=$lt_module_cmds_GCJ
18301 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18302
18303 # Commands to strip libraries.
18304 old_striplib=$lt_old_striplib
18305 striplib=$lt_striplib
18306
18307 # Dependencies to place before the objects being linked to create a
18308 # shared library.
18309 predep_objects=$lt_predep_objects_GCJ
18310
18311 # Dependencies to place after the objects being linked to create a
18312 # shared library.
18313 postdep_objects=$lt_postdep_objects_GCJ
18314
18315 # Dependencies to place before the objects being linked to create a
18316 # shared library.
18317 predeps=$lt_predeps_GCJ
18318
18319 # Dependencies to place after the objects being linked to create a
18320 # shared library.
18321 postdeps=$lt_postdeps_GCJ
18322
18323 # The library search path used internally by the compiler when linking
18324 # a shared library.
18325 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18326
18327 # Method to check whether dependent libraries are shared objects.
18328 deplibs_check_method=$lt_deplibs_check_method
18329
18330 # Command to use when deplibs_check_method == file_magic.
18331 file_magic_cmd=$lt_file_magic_cmd
18332
18333 # Flag that allows shared libraries with undefined symbols to be built.
18334 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18335
18336 # Flag that forces no undefined symbols.
18337 no_undefined_flag=$lt_no_undefined_flag_GCJ
18338
18339 # Commands used to finish a libtool library installation in a directory.
18340 finish_cmds=$lt_finish_cmds
18341
18342 # Same as above, but a single script fragment to be evaled but not shown.
18343 finish_eval=$lt_finish_eval
18344
18345 # Take the output of nm and produce a listing of raw symbols and C names.
18346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18347
18348 # Transform the output of nm in a proper C declaration
18349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18350
18351 # Transform the output of nm in a C name address pair
18352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18353
18354 # This is the shared library runtime path variable.
18355 runpath_var=$runpath_var
18356
18357 # This is the shared library path variable.
18358 shlibpath_var=$shlibpath_var
18359
18360 # Is shlibpath searched before the hard-coded library search path?
18361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18362
18363 # How to hardcode a shared library path into an executable.
18364 hardcode_action=$hardcode_action_GCJ
18365
18366 # Whether we should hardcode library paths into libraries.
18367 hardcode_into_libs=$hardcode_into_libs
18368
18369 # Flag to hardcode \$libdir into a binary during linking.
18370 # This must work even if \$libdir does not exist.
18371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18372
18373 # If ld is used when linking, flag to hardcode \$libdir into
18374 # a binary during linking. This must work even if \$libdir does
18375 # not exist.
18376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18377
18378 # Whether we need a single -rpath flag with a separated argument.
18379 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18380
18381 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_direct=$hardcode_direct_GCJ
18384
18385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18386 # resulting binary.
18387 hardcode_minus_L=$hardcode_minus_L_GCJ
18388
18389 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18390 # the resulting binary.
18391 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18392
18393 # Set to yes if building a shared library automatically hardcodes DIR into the library
18394 # and all subsequent libraries and executables linked against it.
18395 hardcode_automatic=$hardcode_automatic_GCJ
18396
18397 # Variables whose values should be saved in libtool wrapper scripts and
18398 # restored at relink time.
18399 variables_saved_for_relink="$variables_saved_for_relink"
18400
18401 # Whether libtool must link a program against all its dependency libraries.
18402 link_all_deplibs=$link_all_deplibs_GCJ
18403
18404 # Compile-time system search path for libraries
18405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18406
18407 # Run-time system search path for libraries
18408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18409
18410 # Fix the shell variable \$srcfile for the compiler.
18411 fix_srcfile_path="$fix_srcfile_path_GCJ"
18412
18413 # Set to yes if exported symbols are required.
18414 always_export_symbols=$always_export_symbols_GCJ
18415
18416 # The commands to list exported symbols.
18417 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18418
18419 # The commands to extract the exported symbol list from a shared archive.
18420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18421
18422 # Symbols that should not be listed in the preloaded symbols.
18423 exclude_expsyms=$lt_exclude_expsyms_GCJ
18424
18425 # Symbols that must always be exported.
18426 include_expsyms=$lt_include_expsyms_GCJ
18427
18428 # ### END LIBTOOL TAG CONFIG: $tagname
18429
18430 __EOF__
18431
18432
18433 else
18434 # If there is no Makefile yet, we rely on a make rule to execute
18435 # `config.status --recheck' to rerun these tests and create the
18436 # libtool script then.
18437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18438 if test -f "$ltmain_in"; then
18439 test -f Makefile && make "$ltmain"
18440 fi
18441 fi
18442
18443
18444 ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18449
18450 CC="$lt_save_CC"
18451
18452 else
18453 tagname=""
18454 fi
18455 ;;
18456
18457 RC)
18458
18459
18460
18461 # Source file extension for RC test sources.
18462 ac_ext=rc
18463
18464 # Object file extension for compiled RC test sources.
18465 objext=o
18466 objext_RC=$objext
18467
18468 # Code to be used in simple compile tests
18469 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18470
18471 # Code to be used in simple link tests
18472 lt_simple_link_test_code="$lt_simple_compile_test_code"
18473
18474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18475
18476 # If no C compiler was specified, use CC.
18477 LTCC=${LTCC-"$CC"}
18478
18479 # Allow CC to be a program name with arguments.
18480 compiler=$CC
18481
18482
18483 # save warnings/boilerplate of simple test code
18484 ac_outfile=conftest.$ac_objext
18485 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18487 _lt_compiler_boilerplate=`cat conftest.err`
18488 $rm conftest*
18489
18490 ac_outfile=conftest.$ac_objext
18491 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18493 _lt_linker_boilerplate=`cat conftest.err`
18494 $rm conftest*
18495
18496
18497 # Allow CC to be a program name with arguments.
18498 lt_save_CC="$CC"
18499 CC=${RC-"windres"}
18500 compiler=$CC
18501 compiler_RC=$CC
18502 for cc_temp in $compiler""; do
18503 case $cc_temp in
18504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18506 \-*) ;;
18507 *) break;;
18508 esac
18509 done
18510 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18511
18512 lt_cv_prog_compiler_c_o_RC=yes
18513
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519 # See if we are running on zsh, and set the options which allow our commands through
18520 # without removal of \ escapes.
18521 if test -n "${ZSH_VERSION+set}" ; then
18522 setopt NO_GLOB_SUBST
18523 fi
18524 # Now quote all the things that may contain metacharacters while being
18525 # careful not to overquote the AC_SUBSTed values. We take copies of the
18526 # variables and quote the copies for generation of the libtool script.
18527 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18528 SED SHELL STRIP \
18529 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531 deplibs_check_method reload_flag reload_cmds need_locks \
18532 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533 lt_cv_sys_global_symbol_to_c_name_address \
18534 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535 old_postinstall_cmds old_postuninstall_cmds \
18536 compiler_RC \
18537 CC_RC \
18538 LD_RC \
18539 lt_prog_compiler_wl_RC \
18540 lt_prog_compiler_pic_RC \
18541 lt_prog_compiler_static_RC \
18542 lt_prog_compiler_no_builtin_flag_RC \
18543 export_dynamic_flag_spec_RC \
18544 thread_safe_flag_spec_RC \
18545 whole_archive_flag_spec_RC \
18546 enable_shared_with_static_runtimes_RC \
18547 old_archive_cmds_RC \
18548 old_archive_from_new_cmds_RC \
18549 predep_objects_RC \
18550 postdep_objects_RC \
18551 predeps_RC \
18552 postdeps_RC \
18553 compiler_lib_search_path_RC \
18554 archive_cmds_RC \
18555 archive_expsym_cmds_RC \
18556 postinstall_cmds_RC \
18557 postuninstall_cmds_RC \
18558 old_archive_from_expsyms_cmds_RC \
18559 allow_undefined_flag_RC \
18560 no_undefined_flag_RC \
18561 export_symbols_cmds_RC \
18562 hardcode_libdir_flag_spec_RC \
18563 hardcode_libdir_flag_spec_ld_RC \
18564 hardcode_libdir_separator_RC \
18565 hardcode_automatic_RC \
18566 module_cmds_RC \
18567 module_expsym_cmds_RC \
18568 lt_cv_prog_compiler_c_o_RC \
18569 exclude_expsyms_RC \
18570 include_expsyms_RC; do
18571
18572 case $var in
18573 old_archive_cmds_RC | \
18574 old_archive_from_new_cmds_RC | \
18575 archive_cmds_RC | \
18576 archive_expsym_cmds_RC | \
18577 module_cmds_RC | \
18578 module_expsym_cmds_RC | \
18579 old_archive_from_expsyms_cmds_RC | \
18580 export_symbols_cmds_RC | \
18581 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582 postinstall_cmds | postuninstall_cmds | \
18583 old_postinstall_cmds | old_postuninstall_cmds | \
18584 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585 # Double-quote double-evaled strings.
18586 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18587 ;;
18588 *)
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18590 ;;
18591 esac
18592 done
18593
18594 case $lt_echo in
18595 *'\$0 --fallback-echo"')
18596 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18597 ;;
18598 esac
18599
18600 cfgfile="$ofile"
18601
18602 cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18604
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606
18607 # Shell to use when invoking shell scripts.
18608 SHELL=$lt_SHELL
18609
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18612
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18615
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18618
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18621
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18624
18625 # The host system.
18626 host_alias=$host_alias
18627 host=$host
18628 host_os=$host_os
18629
18630 # The build system.
18631 build_alias=$build_alias
18632 build=$build
18633 build_os=$build_os
18634
18635 # An echo program that does not interpret backslashes.
18636 echo=$lt_echo
18637
18638 # The archiver.
18639 AR=$lt_AR
18640 AR_FLAGS=$lt_AR_FLAGS
18641
18642 # A C compiler.
18643 LTCC=$lt_LTCC
18644
18645 # A language-specific compiler.
18646 CC=$lt_compiler_RC
18647
18648 # Is the compiler the GNU C compiler?
18649 with_gcc=$GCC_RC
18650
18651 # An ERE matcher.
18652 EGREP=$lt_EGREP
18653
18654 # The linker used to build libraries.
18655 LD=$lt_LD_RC
18656
18657 # Whether we need hard or soft links.
18658 LN_S=$lt_LN_S
18659
18660 # A BSD-compatible nm program.
18661 NM=$lt_NM
18662
18663 # A symbol stripping program
18664 STRIP=$lt_STRIP
18665
18666 # Used to examine libraries when file_magic_cmd begins "file"
18667 MAGIC_CMD=$MAGIC_CMD
18668
18669 # Used on cygwin: DLL creation program.
18670 DLLTOOL="$DLLTOOL"
18671
18672 # Used on cygwin: object dumper.
18673 OBJDUMP="$OBJDUMP"
18674
18675 # Used on cygwin: assembler.
18676 AS="$AS"
18677
18678 # The name of the directory that contains temporary libtool files.
18679 objdir=$objdir
18680
18681 # How to create reloadable object files.
18682 reload_flag=$lt_reload_flag
18683 reload_cmds=$lt_reload_cmds
18684
18685 # How to pass a linker flag through the compiler.
18686 wl=$lt_lt_prog_compiler_wl_RC
18687
18688 # Object file suffix (normally "o").
18689 objext="$ac_objext"
18690
18691 # Old archive suffix (normally "a").
18692 libext="$libext"
18693
18694 # Shared library suffix (normally ".so").
18695 shrext_cmds='$shrext_cmds'
18696
18697 # Executable file suffix (normally "").
18698 exeext="$exeext"
18699
18700 # Additional compiler flags for building library objects.
18701 pic_flag=$lt_lt_prog_compiler_pic_RC
18702 pic_mode=$pic_mode
18703
18704 # What is the maximum length of a command?
18705 max_cmd_len=$lt_cv_sys_max_cmd_len
18706
18707 # Does compiler simultaneously support -c and -o options?
18708 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18709
18710 # Must we lock files when doing compilation?
18711 need_locks=$lt_need_locks
18712
18713 # Do we need the lib prefix for modules?
18714 need_lib_prefix=$need_lib_prefix
18715
18716 # Do we need a version for libraries?
18717 need_version=$need_version
18718
18719 # Whether dlopen is supported.
18720 dlopen_support=$enable_dlopen
18721
18722 # Whether dlopen of programs is supported.
18723 dlopen_self=$enable_dlopen_self
18724
18725 # Whether dlopen of statically linked programs is supported.
18726 dlopen_self_static=$enable_dlopen_self_static
18727
18728 # Compiler flag to prevent dynamic linking.
18729 link_static_flag=$lt_lt_prog_compiler_static_RC
18730
18731 # Compiler flag to turn off builtin functions.
18732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18733
18734 # Compiler flag to allow reflexive dlopens.
18735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18736
18737 # Compiler flag to generate shared objects directly from archives.
18738 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18739
18740 # Compiler flag to generate thread-safe objects.
18741 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18742
18743 # Library versioning type.
18744 version_type=$version_type
18745
18746 # Format of library name prefix.
18747 libname_spec=$lt_libname_spec
18748
18749 # List of archive names. First name is the real one, the rest are links.
18750 # The last name is the one that the linker finds with -lNAME.
18751 library_names_spec=$lt_library_names_spec
18752
18753 # The coded name of the library, if different from the real name.
18754 soname_spec=$lt_soname_spec
18755
18756 # Commands used to build and install an old-style archive.
18757 RANLIB=$lt_RANLIB
18758 old_archive_cmds=$lt_old_archive_cmds_RC
18759 old_postinstall_cmds=$lt_old_postinstall_cmds
18760 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18761
18762 # Create an old-style archive from a shared archive.
18763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18764
18765 # Create a temporary old-style archive to link instead of a shared archive.
18766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18767
18768 # Commands used to build and install a shared archive.
18769 archive_cmds=$lt_archive_cmds_RC
18770 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18771 postinstall_cmds=$lt_postinstall_cmds
18772 postuninstall_cmds=$lt_postuninstall_cmds
18773
18774 # Commands used to build a loadable module (assumed same as above if empty)
18775 module_cmds=$lt_module_cmds_RC
18776 module_expsym_cmds=$lt_module_expsym_cmds_RC
18777
18778 # Commands to strip libraries.
18779 old_striplib=$lt_old_striplib
18780 striplib=$lt_striplib
18781
18782 # Dependencies to place before the objects being linked to create a
18783 # shared library.
18784 predep_objects=$lt_predep_objects_RC
18785
18786 # Dependencies to place after the objects being linked to create a
18787 # shared library.
18788 postdep_objects=$lt_postdep_objects_RC
18789
18790 # Dependencies to place before the objects being linked to create a
18791 # shared library.
18792 predeps=$lt_predeps_RC
18793
18794 # Dependencies to place after the objects being linked to create a
18795 # shared library.
18796 postdeps=$lt_postdeps_RC
18797
18798 # The library search path used internally by the compiler when linking
18799 # a shared library.
18800 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18801
18802 # Method to check whether dependent libraries are shared objects.
18803 deplibs_check_method=$lt_deplibs_check_method
18804
18805 # Command to use when deplibs_check_method == file_magic.
18806 file_magic_cmd=$lt_file_magic_cmd
18807
18808 # Flag that allows shared libraries with undefined symbols to be built.
18809 allow_undefined_flag=$lt_allow_undefined_flag_RC
18810
18811 # Flag that forces no undefined symbols.
18812 no_undefined_flag=$lt_no_undefined_flag_RC
18813
18814 # Commands used to finish a libtool library installation in a directory.
18815 finish_cmds=$lt_finish_cmds
18816
18817 # Same as above, but a single script fragment to be evaled but not shown.
18818 finish_eval=$lt_finish_eval
18819
18820 # Take the output of nm and produce a listing of raw symbols and C names.
18821 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18822
18823 # Transform the output of nm in a proper C declaration
18824 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18825
18826 # Transform the output of nm in a C name address pair
18827 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18828
18829 # This is the shared library runtime path variable.
18830 runpath_var=$runpath_var
18831
18832 # This is the shared library path variable.
18833 shlibpath_var=$shlibpath_var
18834
18835 # Is shlibpath searched before the hard-coded library search path?
18836 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18837
18838 # How to hardcode a shared library path into an executable.
18839 hardcode_action=$hardcode_action_RC
18840
18841 # Whether we should hardcode library paths into libraries.
18842 hardcode_into_libs=$hardcode_into_libs
18843
18844 # Flag to hardcode \$libdir into a binary during linking.
18845 # This must work even if \$libdir does not exist.
18846 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18847
18848 # If ld is used when linking, flag to hardcode \$libdir into
18849 # a binary during linking. This must work even if \$libdir does
18850 # not exist.
18851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18852
18853 # Whether we need a single -rpath flag with a separated argument.
18854 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18855
18856 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18857 # resulting binary.
18858 hardcode_direct=$hardcode_direct_RC
18859
18860 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18861 # resulting binary.
18862 hardcode_minus_L=$hardcode_minus_L_RC
18863
18864 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18865 # the resulting binary.
18866 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18867
18868 # Set to yes if building a shared library automatically hardcodes DIR into the library
18869 # and all subsequent libraries and executables linked against it.
18870 hardcode_automatic=$hardcode_automatic_RC
18871
18872 # Variables whose values should be saved in libtool wrapper scripts and
18873 # restored at relink time.
18874 variables_saved_for_relink="$variables_saved_for_relink"
18875
18876 # Whether libtool must link a program against all its dependency libraries.
18877 link_all_deplibs=$link_all_deplibs_RC
18878
18879 # Compile-time system search path for libraries
18880 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18881
18882 # Run-time system search path for libraries
18883 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18884
18885 # Fix the shell variable \$srcfile for the compiler.
18886 fix_srcfile_path="$fix_srcfile_path_RC"
18887
18888 # Set to yes if exported symbols are required.
18889 always_export_symbols=$always_export_symbols_RC
18890
18891 # The commands to list exported symbols.
18892 export_symbols_cmds=$lt_export_symbols_cmds_RC
18893
18894 # The commands to extract the exported symbol list from a shared archive.
18895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18896
18897 # Symbols that should not be listed in the preloaded symbols.
18898 exclude_expsyms=$lt_exclude_expsyms_RC
18899
18900 # Symbols that must always be exported.
18901 include_expsyms=$lt_include_expsyms_RC
18902
18903 # ### END LIBTOOL TAG CONFIG: $tagname
18904
18905 __EOF__
18906
18907
18908 else
18909 # If there is no Makefile yet, we rely on a make rule to execute
18910 # `config.status --recheck' to rerun these tests and create the
18911 # libtool script then.
18912 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18913 if test -f "$ltmain_in"; then
18914 test -f Makefile && make "$ltmain"
18915 fi
18916 fi
18917
18918
18919 ac_ext=c
18920 ac_cpp='$CPP $CPPFLAGS'
18921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18924
18925 CC="$lt_save_CC"
18926
18927 ;;
18928
18929 *)
18930 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18931 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18932 { (exit 1); exit 1; }; }
18933 ;;
18934 esac
18935
18936 # Append the new tag name to the list of available tags.
18937 if test -n "$tagname" ; then
18938 available_tags="$available_tags $tagname"
18939 fi
18940 fi
18941 done
18942 IFS="$lt_save_ifs"
18943
18944 # Now substitute the updated list of available tags.
18945 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18946 mv "${ofile}T" "$ofile"
18947 chmod +x "$ofile"
18948 else
18949 rm -f "${ofile}T"
18950 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18951 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18952 { (exit 1); exit 1; }; }
18953 fi
18954 fi
18955
18956
18957
18958 # This can be used to rebuild libtool when needed
18959 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18960
18961 # Always use our own libtool.
18962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18963
18964 # Prevent multiple expansion
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985 # end of SCO fixes
18986 am__api_version="1.9"
18987 # Find a good install program. We prefer a C program (faster),
18988 # so one script is as good as another. But avoid the broken or
18989 # incompatible versions:
18990 # SysV /etc/install, /usr/sbin/install
18991 # SunOS /usr/etc/install
18992 # IRIX /sbin/install
18993 # AIX /bin/install
18994 # AmigaOS /C/install, which installs bootblocks on floppy discs
18995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18998 # OS/2's system install, which has a completely different semantic
18999 # ./install, which can be erroneously created by make from ./install.sh.
19000 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19001 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19002 if test -z "$INSTALL"; then
19003 if test "${ac_cv_path_install+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19007 for as_dir in $PATH
19008 do
19009 IFS=$as_save_IFS
19010 test -z "$as_dir" && as_dir=.
19011 # Account for people who put trailing slashes in PATH elements.
19012 case $as_dir/ in
19013 ./ | .// | /cC/* | \
19014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19016 /usr/ucb/* ) ;;
19017 *)
19018 # OSF1 and SCO ODT 3.0 have their own names for install.
19019 # Don't use installbsd from OSF since it installs stuff as root
19020 # by default.
19021 for ac_prog in ginstall scoinst install; do
19022 for ac_exec_ext in '' $ac_executable_extensions; do
19023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19024 if test $ac_prog = install &&
19025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19026 # AIX install. It has an incompatible calling convention.
19027 :
19028 elif test $ac_prog = install &&
19029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19030 # program-specific install script used by HP pwplus--don't use.
19031 :
19032 else
19033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19034 break 3
19035 fi
19036 fi
19037 done
19038 done
19039 ;;
19040 esac
19041 done
19042
19043
19044 fi
19045 if test "${ac_cv_path_install+set}" = set; then
19046 INSTALL=$ac_cv_path_install
19047 else
19048 # As a last resort, use the slow shell script. We don't cache a
19049 # path for INSTALL within a source directory, because that will
19050 # break other packages using the cache if that directory is
19051 # removed, or if the path is relative.
19052 INSTALL=$ac_install_sh
19053 fi
19054 fi
19055 echo "$as_me:$LINENO: result: $INSTALL" >&5
19056 echo "${ECHO_T}$INSTALL" >&6
19057
19058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19059 # It thinks the first close brace ends the variable substitution.
19060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19061
19062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19063
19064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19065
19066 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19067 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19068 # Just in case
19069 sleep 1
19070 echo timestamp > conftest.file
19071 # Do `set' in a subshell so we don't clobber the current shell's
19072 # arguments. Must try -L first in case configure is actually a
19073 # symlink; some systems play weird games with the mod time of symlinks
19074 # (eg FreeBSD returns the mod time of the symlink's containing
19075 # directory).
19076 if (
19077 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19078 if test "$*" = "X"; then
19079 # -L didn't work.
19080 set X `ls -t $srcdir/configure conftest.file`
19081 fi
19082 rm -f conftest.file
19083 if test "$*" != "X $srcdir/configure conftest.file" \
19084 && test "$*" != "X conftest.file $srcdir/configure"; then
19085
19086 # If neither matched, then we have a broken ls. This can happen
19087 # if, for instance, CONFIG_SHELL is bash and it inherits a
19088 # broken ls alias from the environment. This has actually
19089 # happened. Such a system could not be considered "sane".
19090 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19091 alias in your environment" >&5
19092 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19093 alias in your environment" >&2;}
19094 { (exit 1); exit 1; }; }
19095 fi
19096
19097 test "$2" = conftest.file
19098 )
19099 then
19100 # Ok.
19101 :
19102 else
19103 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19104 Check your system clock" >&5
19105 echo "$as_me: error: newly created file is older than distributed files!
19106 Check your system clock" >&2;}
19107 { (exit 1); exit 1; }; }
19108 fi
19109 echo "$as_me:$LINENO: result: yes" >&5
19110 echo "${ECHO_T}yes" >&6
19111 test "$program_prefix" != NONE &&
19112 program_transform_name="s,^,$program_prefix,;$program_transform_name"
19113 # Use a double $ so make ignores it.
19114 test "$program_suffix" != NONE &&
19115 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19116 # Double any \ or $. echo might interpret backslashes.
19117 # By default was `s,x,x', remove it if useless.
19118 cat <<\_ACEOF >conftest.sed
19119 s/[\\$]/&&/g;s/;s,x,x,$//
19120 _ACEOF
19121 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19122 rm conftest.sed
19123
19124 # expand $ac_aux_dir to an absolute path
19125 am_aux_dir=`cd $ac_aux_dir && pwd`
19126
19127 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19128 # Use eval to expand $SHELL
19129 if eval "$MISSING --run true"; then
19130 am_missing_run="$MISSING --run "
19131 else
19132 am_missing_run=
19133 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19134 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19135 fi
19136
19137 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
19138 # We used to keeping the `.' as first argument, in order to
19139 # allow $(mkdir_p) to be used without argument. As in
19140 # $(mkdir_p) $(somedir)
19141 # where $(somedir) is conditionally defined. However this is wrong
19142 # for two reasons:
19143 # 1. if the package is installed by a user who cannot write `.'
19144 # make install will fail,
19145 # 2. the above comment should most certainly read
19146 # $(mkdir_p) $(DESTDIR)$(somedir)
19147 # so it does not work when $(somedir) is undefined and
19148 # $(DESTDIR) is not.
19149 # To support the latter case, we have to write
19150 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
19151 # so the `.' trick is pointless.
19152 mkdir_p='mkdir -p --'
19153 else
19154 # On NextStep and OpenStep, the `mkdir' command does not
19155 # recognize any option. It will interpret all options as
19156 # directories to create, and then abort because `.' already
19157 # exists.
19158 for d in ./-p ./--version;
19159 do
19160 test -d $d && rmdir $d
19161 done
19162 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
19163 if test -f "$ac_aux_dir/mkinstalldirs"; then
19164 mkdir_p='$(mkinstalldirs)'
19165 else
19166 mkdir_p='$(install_sh) -d'
19167 fi
19168 fi
19169
19170 for ac_prog in gawk mawk nawk awk
19171 do
19172 # Extract the first word of "$ac_prog", so it can be a program name with args.
19173 set dummy $ac_prog; ac_word=$2
19174 echo "$as_me:$LINENO: checking for $ac_word" >&5
19175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19176 if test "${ac_cv_prog_AWK+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179 if test -n "$AWK"; then
19180 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19181 else
19182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19183 for as_dir in $PATH
19184 do
19185 IFS=$as_save_IFS
19186 test -z "$as_dir" && as_dir=.
19187 for ac_exec_ext in '' $ac_executable_extensions; do
19188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19189 ac_cv_prog_AWK="$ac_prog"
19190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19191 break 2
19192 fi
19193 done
19194 done
19195
19196 fi
19197 fi
19198 AWK=$ac_cv_prog_AWK
19199 if test -n "$AWK"; then
19200 echo "$as_me:$LINENO: result: $AWK" >&5
19201 echo "${ECHO_T}$AWK" >&6
19202 else
19203 echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6
19205 fi
19206
19207 test -n "$AWK" && break
19208 done
19209
19210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19212 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216 cat >conftest.make <<\_ACEOF
19217 all:
19218 @echo 'ac_maketemp="$(MAKE)"'
19219 _ACEOF
19220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19222 if test -n "$ac_maketemp"; then
19223 eval ac_cv_prog_make_${ac_make}_set=yes
19224 else
19225 eval ac_cv_prog_make_${ac_make}_set=no
19226 fi
19227 rm -f conftest.make
19228 fi
19229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19230 echo "$as_me:$LINENO: result: yes" >&5
19231 echo "${ECHO_T}yes" >&6
19232 SET_MAKE=
19233 else
19234 echo "$as_me:$LINENO: result: no" >&5
19235 echo "${ECHO_T}no" >&6
19236 SET_MAKE="MAKE=${MAKE-make}"
19237 fi
19238
19239 rm -rf .tst 2>/dev/null
19240 mkdir .tst 2>/dev/null
19241 if test -d .tst; then
19242 am__leading_dot=.
19243 else
19244 am__leading_dot=_
19245 fi
19246 rmdir .tst 2>/dev/null
19247
19248 DEPDIR="${am__leading_dot}deps"
19249
19250 ac_config_commands="$ac_config_commands depfiles"
19251
19252
19253 am_make=${MAKE-make}
19254 cat > confinc << 'END'
19255 am__doit:
19256 @echo done
19257 .PHONY: am__doit
19258 END
19259 # If we don't find an include directive, just comment out the code.
19260 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19261 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
19262 am__include="#"
19263 am__quote=
19264 _am_result=none
19265 # First try GNU make style include.
19266 echo "include confinc" > confmf
19267 # We grep out `Entering directory' and `Leaving directory'
19268 # messages which can occur if `w' ends up in MAKEFLAGS.
19269 # In particular we don't look at `^make:' because GNU make might
19270 # be invoked under some other name (usually "gmake"), in which
19271 # case it prints its new name instead of `make'.
19272 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19273 am__include=include
19274 am__quote=
19275 _am_result=GNU
19276 fi
19277 # Now try BSD make style include.
19278 if test "$am__include" = "#"; then
19279 echo '.include "confinc"' > confmf
19280 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19281 am__include=.include
19282 am__quote="\""
19283 _am_result=BSD
19284 fi
19285 fi
19286
19287
19288 echo "$as_me:$LINENO: result: $_am_result" >&5
19289 echo "${ECHO_T}$_am_result" >&6
19290 rm -f confinc confmf
19291
19292 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
19293 if test "${enable_dependency_tracking+set}" = set; then
19294 enableval="$enable_dependency_tracking"
19295
19296 fi;
19297 if test "x$enable_dependency_tracking" != xno; then
19298 am_depcomp="$ac_aux_dir/depcomp"
19299 AMDEPBACKSLASH='\'
19300 fi
19301
19302
19303 if test "x$enable_dependency_tracking" != xno; then
19304 AMDEP_TRUE=
19305 AMDEP_FALSE='#'
19306 else
19307 AMDEP_TRUE='#'
19308 AMDEP_FALSE=
19309 fi
19310
19311
19312
19313 # test to see if srcdir already configured
19314 if test "`cd $srcdir && pwd`" != "`pwd`" &&
19315 test -f $srcdir/config.status; then
19316 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19317 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19318 { (exit 1); exit 1; }; }
19319 fi
19320
19321 # test whether we have cygpath
19322 if test -z "$CYGPATH_W"; then
19323 if (cygpath --version) >/dev/null 2>/dev/null; then
19324 CYGPATH_W='cygpath -w'
19325 else
19326 CYGPATH_W=echo
19327 fi
19328 fi
19329
19330
19331 # Define the identity of the package.
19332 PACKAGE=Serial
19333 VERSION=2.1-7
19334
19335
19336 cat >>confdefs.h <<_ACEOF
19337 #define PACKAGE "$PACKAGE"
19338 _ACEOF
19339
19340
19341 cat >>confdefs.h <<_ACEOF
19342 #define VERSION "$VERSION"
19343 _ACEOF
19344
19345 # Some tools Automake needs.
19346
19347 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19348
19349
19350 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19351
19352
19353 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19354
19355
19356 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19357
19358
19359 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19360
19361 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19362
19363 # Installed binaries are usually stripped using `strip' when the user
19364 # run `make install-strip'. However `strip' might not be the right
19365 # tool to use in cross-compilation environments, therefore Automake
19366 # will honor the `STRIP' environment variable to overrule this program.
19367 if test "$cross_compiling" != no; then
19368 if test -n "$ac_tool_prefix"; then
19369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19370 set dummy ${ac_tool_prefix}strip; ac_word=$2
19371 echo "$as_me:$LINENO: checking for $ac_word" >&5
19372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19373 if test "${ac_cv_prog_STRIP+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 if test -n "$STRIP"; then
19377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19378 else
19379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19380 for as_dir in $PATH
19381 do
19382 IFS=$as_save_IFS
19383 test -z "$as_dir" && as_dir=.
19384 for ac_exec_ext in '' $ac_executable_extensions; do
19385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19388 break 2
19389 fi
19390 done
19391 done
19392
19393 fi
19394 fi
19395 STRIP=$ac_cv_prog_STRIP
19396 if test -n "$STRIP"; then
19397 echo "$as_me:$LINENO: result: $STRIP" >&5
19398 echo "${ECHO_T}$STRIP" >&6
19399 else
19400 echo "$as_me:$LINENO: result: no" >&5
19401 echo "${ECHO_T}no" >&6
19402 fi
19403
19404 fi
19405 if test -z "$ac_cv_prog_STRIP"; then
19406 ac_ct_STRIP=$STRIP
19407 # Extract the first word of "strip", so it can be a program name with args.
19408 set dummy strip; ac_word=$2
19409 echo "$as_me:$LINENO: checking for $ac_word" >&5
19410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414 if test -n "$ac_ct_STRIP"; then
19415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19416 else
19417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19418 for as_dir in $PATH
19419 do
19420 IFS=$as_save_IFS
19421 test -z "$as_dir" && as_dir=.
19422 for ac_exec_ext in '' $ac_executable_extensions; do
19423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19424 ac_cv_prog_ac_ct_STRIP="strip"
19425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19426 break 2
19427 fi
19428 done
19429 done
19430
19431 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19432 fi
19433 fi
19434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19435 if test -n "$ac_ct_STRIP"; then
19436 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19437 echo "${ECHO_T}$ac_ct_STRIP" >&6
19438 else
19439 echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6
19441 fi
19442
19443 STRIP=$ac_ct_STRIP
19444 else
19445 STRIP="$ac_cv_prog_STRIP"
19446 fi
19447
19448 fi
19449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19450
19451 # We need awk for the "check" target. The system "awk" is bad on
19452 # some platforms.
19453 # Always define AMTAR for backward compatibility.
19454
19455 AMTAR=${AMTAR-"${am_missing_run}tar"}
19456
19457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19458
19459
19460
19461
19462 depcc="$CC" am_compiler_list=
19463
19464 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19465 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19466 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19470 # We make a subdir and do the tests there. Otherwise we can end up
19471 # making bogus files that we don't know about and never remove. For
19472 # instance it was reported that on HP-UX the gcc test will end up
19473 # making a dummy file named `D' -- because `-MD' means `put the output
19474 # in D'.
19475 mkdir conftest.dir
19476 # Copy depcomp to subdir because otherwise we won't find it if we're
19477 # using a relative directory.
19478 cp "$am_depcomp" conftest.dir
19479 cd conftest.dir
19480 # We will build objects and dependencies in a subdirectory because
19481 # it helps to detect inapplicable dependency modes. For instance
19482 # both Tru64's cc and ICC support -MD to output dependencies as a
19483 # side effect of compilation, but ICC will put the dependencies in
19484 # the current directory while Tru64 will put them in the object
19485 # directory.
19486 mkdir sub
19487
19488 am_cv_CC_dependencies_compiler_type=none
19489 if test "$am_compiler_list" = ""; then
19490 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19491 fi
19492 for depmode in $am_compiler_list; do
19493 # Setup a source with many dependencies, because some compilers
19494 # like to wrap large dependency lists on column 80 (with \), and
19495 # we should not choose a depcomp mode which is confused by this.
19496 #
19497 # We need to recreate these files for each test, as the compiler may
19498 # overwrite some of them when testing with obscure command lines.
19499 # This happens at least with the AIX C compiler.
19500 : > sub/conftest.c
19501 for i in 1 2 3 4 5 6; do
19502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19503 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19504 # Solaris 8's {/usr,}/bin/sh.
19505 touch sub/conftst$i.h
19506 done
19507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19508
19509 case $depmode in
19510 nosideeffect)
19511 # after this tag, mechanisms are not by side-effect, so they'll
19512 # only be used when explicitly requested
19513 if test "x$enable_dependency_tracking" = xyes; then
19514 continue
19515 else
19516 break
19517 fi
19518 ;;
19519 none) break ;;
19520 esac
19521 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19522 # mode. It turns out that the SunPro C++ compiler does not properly
19523 # handle `-M -o', and we need to detect this.
19524 if depmode=$depmode \
19525 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19526 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19527 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19528 >/dev/null 2>conftest.err &&
19529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19530 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19532 # icc doesn't choke on unknown options, it will just issue warnings
19533 # or remarks (even with -Werror). So we grep stderr for any message
19534 # that says an option was ignored or not supported.
19535 # When given -MP, icc 7.0 and 7.1 complain thusly:
19536 # icc: Command line warning: ignoring option '-M'; no argument required
19537 # The diagnosis changed in icc 8.0:
19538 # icc: Command line remark: option '-MP' not supported
19539 if (grep 'ignoring option' conftest.err ||
19540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19541 am_cv_CC_dependencies_compiler_type=$depmode
19542 break
19543 fi
19544 fi
19545 done
19546
19547 cd ..
19548 rm -rf conftest.dir
19549 else
19550 am_cv_CC_dependencies_compiler_type=none
19551 fi
19552
19553 fi
19554 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19555 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19556 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19557
19558
19559
19560 if
19561 test "x$enable_dependency_tracking" != xno \
19562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19563 am__fastdepCC_TRUE=
19564 am__fastdepCC_FALSE='#'
19565 else
19566 am__fastdepCC_TRUE='#'
19567 am__fastdepCC_FALSE=
19568 fi
19569
19570
19571 depcc="$CXX" am_compiler_list=
19572
19573 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19574 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19575 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19579 # We make a subdir and do the tests there. Otherwise we can end up
19580 # making bogus files that we don't know about and never remove. For
19581 # instance it was reported that on HP-UX the gcc test will end up
19582 # making a dummy file named `D' -- because `-MD' means `put the output
19583 # in D'.
19584 mkdir conftest.dir
19585 # Copy depcomp to subdir because otherwise we won't find it if we're
19586 # using a relative directory.
19587 cp "$am_depcomp" conftest.dir
19588 cd conftest.dir
19589 # We will build objects and dependencies in a subdirectory because
19590 # it helps to detect inapplicable dependency modes. For instance
19591 # both Tru64's cc and ICC support -MD to output dependencies as a
19592 # side effect of compilation, but ICC will put the dependencies in
19593 # the current directory while Tru64 will put them in the object
19594 # directory.
19595 mkdir sub
19596
19597 am_cv_CXX_dependencies_compiler_type=none
19598 if test "$am_compiler_list" = ""; then
19599 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19600 fi
19601 for depmode in $am_compiler_list; do
19602 # Setup a source with many dependencies, because some compilers
19603 # like to wrap large dependency lists on column 80 (with \), and
19604 # we should not choose a depcomp mode which is confused by this.
19605 #
19606 # We need to recreate these files for each test, as the compiler may
19607 # overwrite some of them when testing with obscure command lines.
19608 # This happens at least with the AIX C compiler.
19609 : > sub/conftest.c
19610 for i in 1 2 3 4 5 6; do
19611 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19612 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19613 # Solaris 8's {/usr,}/bin/sh.
19614 touch sub/conftst$i.h
19615 done
19616 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19617
19618 case $depmode in
19619 nosideeffect)
19620 # after this tag, mechanisms are not by side-effect, so they'll
19621 # only be used when explicitly requested
19622 if test "x$enable_dependency_tracking" = xyes; then
19623 continue
19624 else
19625 break
19626 fi
19627 ;;
19628 none) break ;;
19629 esac
19630 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19631 # mode. It turns out that the SunPro C++ compiler does not properly
19632 # handle `-M -o', and we need to detect this.
19633 if depmode=$depmode \
19634 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19636 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19637 >/dev/null 2>conftest.err &&
19638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19639 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19641 # icc doesn't choke on unknown options, it will just issue warnings
19642 # or remarks (even with -Werror). So we grep stderr for any message
19643 # that says an option was ignored or not supported.
19644 # When given -MP, icc 7.0 and 7.1 complain thusly:
19645 # icc: Command line warning: ignoring option '-M'; no argument required
19646 # The diagnosis changed in icc 8.0:
19647 # icc: Command line remark: option '-MP' not supported
19648 if (grep 'ignoring option' conftest.err ||
19649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19650 am_cv_CXX_dependencies_compiler_type=$depmode
19651 break
19652 fi
19653 fi
19654 done
19655
19656 cd ..
19657 rm -rf conftest.dir
19658 else
19659 am_cv_CXX_dependencies_compiler_type=none
19660 fi
19661
19662 fi
19663 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19664 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19665 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19666
19667
19668
19669 if
19670 test "x$enable_dependency_tracking" != xno \
19671 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19672 am__fastdepCXX_TRUE=
19673 am__fastdepCXX_FALSE='#'
19674 else
19675 am__fastdepCXX_TRUE='#'
19676 am__fastdepCXX_FALSE=
19677 fi
19678
19679
19680
19681
19682 for ac_header in fcntl.h
19683 do
19684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19686 echo "$as_me:$LINENO: checking for $ac_header" >&5
19687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 fi
19691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19693 else
19694 # Is the header compilable?
19695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 $ac_includes_default
19704 #include <$ac_header>
19705 _ACEOF
19706 rm -f conftest.$ac_objext
19707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708 (eval $ac_compile) 2>conftest.er1
19709 ac_status=$?
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_c_werror_flag"
19716 || test ! -s conftest.err'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try='test -s conftest.$ac_objext'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_header_compiler=yes
19729 else
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19732
19733 ac_header_compiler=no
19734 fi
19735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19737 echo "${ECHO_T}$ac_header_compiler" >&6
19738
19739 # Is the header present?
19740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <$ac_header>
19749 _ACEOF
19750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } >/dev/null; then
19758 if test -s conftest.err; then
19759 ac_cpp_err=$ac_c_preproc_warn_flag
19760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19761 else
19762 ac_cpp_err=
19763 fi
19764 else
19765 ac_cpp_err=yes
19766 fi
19767 if test -z "$ac_cpp_err"; then
19768 ac_header_preproc=yes
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773 ac_header_preproc=no
19774 fi
19775 rm -f conftest.err conftest.$ac_ext
19776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19777 echo "${ECHO_T}$ac_header_preproc" >&6
19778
19779 # So? What about this header?
19780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19781 yes:no: )
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19786 ac_header_preproc=yes
19787 ;;
19788 no:yes:* )
19789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19801 (
19802 cat <<\_ASBOX
19803 ## ------------------------------------------ ##
19804 ## Report this to the AC_PACKAGE_NAME lists. ##
19805 ## ------------------------------------------ ##
19806 _ASBOX
19807 ) |
19808 sed "s/^/$as_me: WARNING: /" >&2
19809 ;;
19810 esac
19811 echo "$as_me:$LINENO: checking for $ac_header" >&5
19812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816 eval "$as_ac_Header=\$ac_header_preproc"
19817 fi
19818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19820
19821 fi
19822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19823 cat >>confdefs.h <<_ACEOF
19824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19825 _ACEOF
19826
19827 fi
19828
19829 done
19830
19831
19832 for ac_header in sys/fcntl.h
19833 do
19834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19836 echo "$as_me:$LINENO: checking for $ac_header" >&5
19837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 fi
19841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19843 else
19844 # Is the header compilable?
19845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19847 cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h. */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 $ac_includes_default
19854 #include <$ac_header>
19855 _ACEOF
19856 rm -f conftest.$ac_objext
19857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19858 (eval $ac_compile) 2>conftest.er1
19859 ac_status=$?
19860 grep -v '^ *+' conftest.er1 >conftest.err
19861 rm -f conftest.er1
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); } &&
19865 { ac_try='test -z "$ac_c_werror_flag"
19866 || test ! -s conftest.err'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest.$ac_objext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_header_compiler=yes
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 ac_header_compiler=no
19884 fi
19885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19887 echo "${ECHO_T}$ac_header_compiler" >&6
19888
19889 # Is the header present?
19890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 #include <$ac_header>
19899 _ACEOF
19900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } >/dev/null; then
19908 if test -s conftest.err; then
19909 ac_cpp_err=$ac_c_preproc_warn_flag
19910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19911 else
19912 ac_cpp_err=
19913 fi
19914 else
19915 ac_cpp_err=yes
19916 fi
19917 if test -z "$ac_cpp_err"; then
19918 ac_header_preproc=yes
19919 else
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_header_preproc=no
19924 fi
19925 rm -f conftest.err conftest.$ac_ext
19926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6
19928
19929 # So? What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19931 yes:no: )
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19936 ac_header_preproc=yes
19937 ;;
19938 no:yes:* )
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19951 (
19952 cat <<\_ASBOX
19953 ## ------------------------------------------ ##
19954 ## Report this to the AC_PACKAGE_NAME lists. ##
19955 ## ------------------------------------------ ##
19956 _ASBOX
19957 ) |
19958 sed "s/^/$as_me: WARNING: /" >&2
19959 ;;
19960 esac
19961 echo "$as_me:$LINENO: checking for $ac_header" >&5
19962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966 eval "$as_ac_Header=\$ac_header_preproc"
19967 fi
19968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19970
19971 fi
19972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973 cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19975 _ACEOF
19976
19977 fi
19978
19979 done
19980
19981
19982 for ac_header in sys/file.h
19983 do
19984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19986 echo "$as_me:$LINENO: checking for $ac_header" >&5
19987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 fi
19991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19993 else
19994 # Is the header compilable?
19995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 $ac_includes_default
20004 #include <$ac_header>
20005 _ACEOF
20006 rm -f conftest.$ac_objext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20008 (eval $ac_compile) 2>conftest.er1
20009 ac_status=$?
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
20015 { ac_try='test -z "$ac_c_werror_flag"
20016 || test ! -s conftest.err'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; }; then
20028 ac_header_compiler=yes
20029 else
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ac_header_compiler=no
20034 fi
20035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20037 echo "${ECHO_T}$ac_header_compiler" >&6
20038
20039 # Is the header present?
20040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20042 cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h. */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include <$ac_header>
20049 _ACEOF
20050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } >/dev/null; then
20058 if test -s conftest.err; then
20059 ac_cpp_err=$ac_c_preproc_warn_flag
20060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20061 else
20062 ac_cpp_err=
20063 fi
20064 else
20065 ac_cpp_err=yes
20066 fi
20067 if test -z "$ac_cpp_err"; then
20068 ac_header_preproc=yes
20069 else
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073 ac_header_preproc=no
20074 fi
20075 rm -f conftest.err conftest.$ac_ext
20076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20077 echo "${ECHO_T}$ac_header_preproc" >&6
20078
20079 # So? What about this header?
20080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20081 yes:no: )
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20086 ac_header_preproc=yes
20087 ;;
20088 no:yes:* )
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20101 (
20102 cat <<\_ASBOX
20103 ## ------------------------------------------ ##
20104 ## Report this to the AC_PACKAGE_NAME lists. ##
20105 ## ------------------------------------------ ##
20106 _ASBOX
20107 ) |
20108 sed "s/^/$as_me: WARNING: /" >&2
20109 ;;
20110 esac
20111 echo "$as_me:$LINENO: checking for $ac_header" >&5
20112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 eval "$as_ac_Header=\$ac_header_preproc"
20117 fi
20118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20120
20121 fi
20122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20123 cat >>confdefs.h <<_ACEOF
20124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20125 _ACEOF
20126
20127 fi
20128
20129 done
20130
20131
20132 for ac_header in sys/time.h
20133 do
20134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20136 echo "$as_me:$LINENO: checking for $ac_header" >&5
20137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 fi
20141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20143 else
20144 # Is the header compilable?
20145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 $ac_includes_default
20154 #include <$ac_header>
20155 _ACEOF
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_header_compiler=yes
20179 else
20180 echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 ac_header_compiler=no
20184 fi
20185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20187 echo "${ECHO_T}$ac_header_compiler" >&6
20188
20189 # Is the header present?
20190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #include <$ac_header>
20199 _ACEOF
20200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20202 ac_status=$?
20203 grep -v '^ *+' conftest.er1 >conftest.err
20204 rm -f conftest.er1
20205 cat conftest.err >&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } >/dev/null; then
20208 if test -s conftest.err; then
20209 ac_cpp_err=$ac_c_preproc_warn_flag
20210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20211 else
20212 ac_cpp_err=
20213 fi
20214 else
20215 ac_cpp_err=yes
20216 fi
20217 if test -z "$ac_cpp_err"; then
20218 ac_header_preproc=yes
20219 else
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223 ac_header_preproc=no
20224 fi
20225 rm -f conftest.err conftest.$ac_ext
20226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20227 echo "${ECHO_T}$ac_header_preproc" >&6
20228
20229 # So? What about this header?
20230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20231 yes:no: )
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20236 ac_header_preproc=yes
20237 ;;
20238 no:yes:* )
20239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20251 (
20252 cat <<\_ASBOX
20253 ## ------------------------------------------ ##
20254 ## Report this to the AC_PACKAGE_NAME lists. ##
20255 ## ------------------------------------------ ##
20256 _ASBOX
20257 ) |
20258 sed "s/^/$as_me: WARNING: /" >&2
20259 ;;
20260 esac
20261 echo "$as_me:$LINENO: checking for $ac_header" >&5
20262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266 eval "$as_ac_Header=\$ac_header_preproc"
20267 fi
20268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20270
20271 fi
20272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20275 _ACEOF
20276
20277 fi
20278
20279 done
20280
20281
20282 for ac_header in sys/signal.h
20283 do
20284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20286 echo "$as_me:$LINENO: checking for $ac_header" >&5
20287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 fi
20291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20293 else
20294 # Is the header compilable?
20295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20304 #include <$ac_header>
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20308 (eval $ac_compile) 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } &&
20315 { ac_try='test -z "$ac_c_werror_flag"
20316 || test ! -s conftest.err'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest.$ac_objext'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; }; then
20328 ac_header_compiler=yes
20329 else
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333 ac_header_compiler=no
20334 fi
20335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20337 echo "${ECHO_T}$ac_header_compiler" >&6
20338
20339 # Is the header present?
20340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20342 cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h. */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20348 #include <$ac_header>
20349 _ACEOF
20350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } >/dev/null; then
20358 if test -s conftest.err; then
20359 ac_cpp_err=$ac_c_preproc_warn_flag
20360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20361 else
20362 ac_cpp_err=
20363 fi
20364 else
20365 ac_cpp_err=yes
20366 fi
20367 if test -z "$ac_cpp_err"; then
20368 ac_header_preproc=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 ac_header_preproc=no
20374 fi
20375 rm -f conftest.err conftest.$ac_ext
20376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20377 echo "${ECHO_T}$ac_header_preproc" >&6
20378
20379 # So? What about this header?
20380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20381 yes:no: )
20382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20386 ac_header_preproc=yes
20387 ;;
20388 no:yes:* )
20389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20401 (
20402 cat <<\_ASBOX
20403 ## ------------------------------------------ ##
20404 ## Report this to the AC_PACKAGE_NAME lists. ##
20405 ## ------------------------------------------ ##
20406 _ASBOX
20407 ) |
20408 sed "s/^/$as_me: WARNING: /" >&2
20409 ;;
20410 esac
20411 echo "$as_me:$LINENO: checking for $ac_header" >&5
20412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416 eval "$as_ac_Header=\$ac_header_preproc"
20417 fi
20418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20420
20421 fi
20422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20423 cat >>confdefs.h <<_ACEOF
20424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20425 _ACEOF
20426
20427 fi
20428
20429 done
20430
20431
20432 for ac_header in signal.h
20433 do
20434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436 echo "$as_me:$LINENO: checking for $ac_header" >&5
20437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 fi
20441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20443 else
20444 # Is the header compilable?
20445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 $ac_includes_default
20454 #include <$ac_header>
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20458 (eval $ac_compile) 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try='test -z "$ac_c_werror_flag"
20466 || test ! -s conftest.err'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest.$ac_objext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_header_compiler=yes
20479 else
20480 echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_header_compiler=no
20484 fi
20485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6
20488
20489 # Is the header present?
20490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <$ac_header>
20499 _ACEOF
20500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } >/dev/null; then
20508 if test -s conftest.err; then
20509 ac_cpp_err=$ac_c_preproc_warn_flag
20510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20511 else
20512 ac_cpp_err=
20513 fi
20514 else
20515 ac_cpp_err=yes
20516 fi
20517 if test -z "$ac_cpp_err"; then
20518 ac_header_preproc=yes
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ac_header_preproc=no
20524 fi
20525 rm -f conftest.err conftest.$ac_ext
20526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20527 echo "${ECHO_T}$ac_header_preproc" >&6
20528
20529 # So? What about this header?
20530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20531 yes:no: )
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20536 ac_header_preproc=yes
20537 ;;
20538 no:yes:* )
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20551 (
20552 cat <<\_ASBOX
20553 ## ------------------------------------------ ##
20554 ## Report this to the AC_PACKAGE_NAME lists. ##
20555 ## ------------------------------------------ ##
20556 _ASBOX
20557 ) |
20558 sed "s/^/$as_me: WARNING: /" >&2
20559 ;;
20560 esac
20561 echo "$as_me:$LINENO: checking for $ac_header" >&5
20562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566 eval "$as_ac_Header=\$ac_header_preproc"
20567 fi
20568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20570
20571 fi
20572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20573 cat >>confdefs.h <<_ACEOF
20574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20575 _ACEOF
20576
20577 fi
20578
20579 done
20580
20581
20582 for ac_header in termios.h
20583 do
20584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20586 echo "$as_me:$LINENO: checking for $ac_header" >&5
20587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 fi
20591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20593 else
20594 # Is the header compilable?
20595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20597 cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h. */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h. */
20603 $ac_includes_default
20604 #include <$ac_header>
20605 _ACEOF
20606 rm -f conftest.$ac_objext
20607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -z "$ac_c_werror_flag"
20616 || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_header_compiler=yes
20629 else
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 ac_header_compiler=no
20634 fi
20635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20637 echo "${ECHO_T}$ac_header_compiler" >&6
20638
20639 # Is the header present?
20640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h. */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h. */
20648 #include <$ac_header>
20649 _ACEOF
20650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } >/dev/null; then
20658 if test -s conftest.err; then
20659 ac_cpp_err=$ac_c_preproc_warn_flag
20660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20661 else
20662 ac_cpp_err=
20663 fi
20664 else
20665 ac_cpp_err=yes
20666 fi
20667 if test -z "$ac_cpp_err"; then
20668 ac_header_preproc=yes
20669 else
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20672
20673 ac_header_preproc=no
20674 fi
20675 rm -f conftest.err conftest.$ac_ext
20676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20677 echo "${ECHO_T}$ac_header_preproc" >&6
20678
20679 # So? What about this header?
20680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20681 yes:no: )
20682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20686 ac_header_preproc=yes
20687 ;;
20688 no:yes:* )
20689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20701 (
20702 cat <<\_ASBOX
20703 ## ------------------------------------------ ##
20704 ## Report this to the AC_PACKAGE_NAME lists. ##
20705 ## ------------------------------------------ ##
20706 _ASBOX
20707 ) |
20708 sed "s/^/$as_me: WARNING: /" >&2
20709 ;;
20710 esac
20711 echo "$as_me:$LINENO: checking for $ac_header" >&5
20712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20714 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 else
20716 eval "$as_ac_Header=\$ac_header_preproc"
20717 fi
20718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20720
20721 fi
20722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20725 _ACEOF
20726
20727 fi
20728
20729 done
20730
20731
20732 for ac_header in grp.h
20733 do
20734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736 echo "$as_me:$LINENO: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 fi
20741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20743 else
20744 # Is the header compilable?
20745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 $ac_includes_default
20754 #include <$ac_header>
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag"
20766 || test ! -s conftest.err'
20767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768 (eval $ac_try) 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_header_compiler=yes
20779 else
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_header_compiler=no
20784 fi
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20787 echo "${ECHO_T}$ac_header_compiler" >&6
20788
20789 # Is the header present?
20790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 #include <$ac_header>
20799 _ACEOF
20800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } >/dev/null; then
20808 if test -s conftest.err; then
20809 ac_cpp_err=$ac_c_preproc_warn_flag
20810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20811 else
20812 ac_cpp_err=
20813 fi
20814 else
20815 ac_cpp_err=yes
20816 fi
20817 if test -z "$ac_cpp_err"; then
20818 ac_header_preproc=yes
20819 else
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ac_header_preproc=no
20824 fi
20825 rm -f conftest.err conftest.$ac_ext
20826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20827 echo "${ECHO_T}$ac_header_preproc" >&6
20828
20829 # So? What about this header?
20830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20831 yes:no: )
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20836 ac_header_preproc=yes
20837 ;;
20838 no:yes:* )
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20851 (
20852 cat <<\_ASBOX
20853 ## ------------------------------------------ ##
20854 ## Report this to the AC_PACKAGE_NAME lists. ##
20855 ## ------------------------------------------ ##
20856 _ASBOX
20857 ) |
20858 sed "s/^/$as_me: WARNING: /" >&2
20859 ;;
20860 esac
20861 echo "$as_me:$LINENO: checking for $ac_header" >&5
20862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866 eval "$as_ac_Header=\$ac_header_preproc"
20867 fi
20868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20870
20871 fi
20872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20875 _ACEOF
20876
20877 fi
20878
20879 done
20880
20881
20882 for ac_header in pwd.h
20883 do
20884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20886 echo "$as_me:$LINENO: checking for $ac_header" >&5
20887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 fi
20891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20893 else
20894 # Is the header compilable?
20895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 $ac_includes_default
20904 #include <$ac_header>
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20908 (eval $ac_compile) 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag"
20916 || test ! -s conftest.err'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_header_compiler=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 ac_header_compiler=no
20934 fi
20935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20937 echo "${ECHO_T}$ac_header_compiler" >&6
20938
20939 # Is the header present?
20940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20942 cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h. */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 #include <$ac_header>
20949 _ACEOF
20950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } >/dev/null; then
20958 if test -s conftest.err; then
20959 ac_cpp_err=$ac_c_preproc_warn_flag
20960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20961 else
20962 ac_cpp_err=
20963 fi
20964 else
20965 ac_cpp_err=yes
20966 fi
20967 if test -z "$ac_cpp_err"; then
20968 ac_header_preproc=yes
20969 else
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ac_header_preproc=no
20974 fi
20975 rm -f conftest.err conftest.$ac_ext
20976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20977 echo "${ECHO_T}$ac_header_preproc" >&6
20978
20979 # So? What about this header?
20980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20981 yes:no: )
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20986 ac_header_preproc=yes
20987 ;;
20988 no:yes:* )
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21001 (
21002 cat <<\_ASBOX
21003 ## ------------------------------------------ ##
21004 ## Report this to the AC_PACKAGE_NAME lists. ##
21005 ## ------------------------------------------ ##
21006 _ASBOX
21007 ) |
21008 sed "s/^/$as_me: WARNING: /" >&2
21009 ;;
21010 esac
21011 echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016 eval "$as_ac_Header=\$ac_header_preproc"
21017 fi
21018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21020
21021 fi
21022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21025 _ACEOF
21026
21027 fi
21028
21029 done
21030
21031 if test $ac_cv_c_compiler_gnu = yes; then
21032 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21033 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21034 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037 ac_pattern="Autoconf.*'x'"
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <sgtty.h>
21045 Autoconf TIOCGETP
21046 _ACEOF
21047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21048 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21049 ac_cv_prog_gcc_traditional=yes
21050 else
21051 ac_cv_prog_gcc_traditional=no
21052 fi
21053 rm -f conftest*
21054
21055
21056 if test $ac_cv_prog_gcc_traditional = no; then
21057 cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h. */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 #include <termio.h>
21064 Autoconf TCGETA
21065 _ACEOF
21066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21067 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21068 ac_cv_prog_gcc_traditional=yes
21069 fi
21070 rm -f conftest*
21071
21072 fi
21073 fi
21074 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21075 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21076 if test $ac_cv_prog_gcc_traditional = yes; then
21077 CC="$CC -traditional"
21078 fi
21079 fi
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116 # ftsoy
21117 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21118 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
21119 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
21120 if test "${enable_maintainer_mode+set}" = set; then
21121 enableval="$enable_maintainer_mode"
21122 USE_MAINTAINER_MODE=$enableval
21123 else
21124 USE_MAINTAINER_MODE=no
21125 fi;
21126 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21127 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
21128
21129
21130 if test $USE_MAINTAINER_MODE = yes; then
21131 MAINTAINER_MODE_TRUE=
21132 MAINTAINER_MODE_FALSE='#'
21133 else
21134 MAINTAINER_MODE_TRUE='#'
21135 MAINTAINER_MODE_FALSE=
21136 fi
21137
21138 MAINT=$MAINTAINER_MODE_TRUE
21139
21140
21141
21142 JHOME=
21143 RXTX_PATH=
21144 EXTENSION="c"
21145 OBJECT_EXTENSION="lo"
21146 LIB_EXTENSION="la"
21147 COMPILE="cc "
21148 TOP="`pwd`"
21149 GLIBTOOL="\$(SHELL) \$(TOP)/libtool"
21150 LINK="\$(GLIBTOOL) --mode=link \$(CC) \$(CFLAGS) \$(LDFLAGS) -release \$(VERSION) -o librxtx\$*.la -rpath \$(RXTX_PATH)"
21151
21152 case "$host_os" in
21153 *-gnu)
21154 CFLAGS=$CFLAGS" -D_POSIX_SOURCE";;
21155 *);;
21156 esac
21157 # Check whether --enable-PRINTER or --disable-PRINTER was given.
21158 if test "${enable_PRINTER+set}" = set; then
21159 enableval="$enable_PRINTER"
21160 echo $enable_PRINTER
21161 else
21162 enable_PRINTER="yes"
21163
21164 fi;
21165 if test x$enable_PRINTER = xyes; then
21166 TARGETLIB="\$(target_triplet)/librxtxSerial.la \
21167 \$(target_triplet)/librxtxParallel.la \
21168 \$(target_triplet)/librxtxI2C.la \
21169 \$(target_triplet)/librxtxRaw.la \
21170 \$(target_triplet)/librxtxRS485.la"
21171 else
21172 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21173 fi
21174
21175 # Check whether --enable-lockfiles or --disable-lockfiles was given.
21176 if test "${enable_lockfiles+set}" = set; then
21177 enableval="$enable_lockfiles"
21178 if test x$lockfiles = xyes; then
21179 echo "Using lock files"
21180 else
21181 echo "Disabling lock files"
21182 CFLAGS=$CFLAGS" -DDISABLE_LOCKFILES"
21183 fi
21184
21185 fi;
21186 # Check whether --enable-liblock or --disable-liblock was given.
21187 if test "${enable_liblock+set}" = set; then
21188 enableval="$enable_liblock"
21189 if test "x$liblock" != "xno"; then
21190 echo "Using liblock"
21191 CFLAGS=$CFLAGS" -DLIBLOCKDEV"
21192 LDFLAGS=$LDFLAGS" -llockdev"
21193 else
21194 echo $liblock
21195 echo "Disabling liblock"
21196 fi
21197
21198 fi;
21199
21200 # Check whether --enable-lockfile_server or --disable-lockfile_server was given.
21201 if test "${enable_lockfile_server+set}" = set; then
21202 enableval="$enable_lockfile_server"
21203 if test x$enable_lockfile_server = xyes; then
21204 CFLAGS=$CFLAGS" -DLFS"
21205 fi
21206
21207 fi;
21208 # Check whether --enable-DEBUG or --disable-DEBUG was given.
21209 if test "${enable_DEBUG+set}" = set; then
21210 enableval="$enable_DEBUG"
21211 if test x$enable_DEBUG = xyes; then
21212 CFLAGS=$CFLAGS" -DDEBUG"
21213 fi
21214
21215 fi;
21216 # Check whether --enable-universallib or --disable-universallib was given.
21217 if test "${enable_universallib+set}" = set; then
21218 enableval="$enable_universallib"
21219 if test x$universallib = xyes; then
21220 echo "Disabling universal lib"
21221 fi
21222
21223 fi;
21224 # Extract the first word of "xcode-select", so it can be a program name with args.
21225 set dummy xcode-select; ac_word=$2
21226 echo "$as_me:$LINENO: checking for $ac_word" >&5
21227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21228 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 else
21231 case $XCODE_SELECT in
21232 [\\/]* | ?:[\\/]*)
21233 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
21234 ;;
21235 *)
21236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21238 do
21239 IFS=$as_save_IFS
21240 test -z "$as_dir" && as_dir=.
21241 for ac_exec_ext in '' $ac_executable_extensions; do
21242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21243 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
21244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21245 break 2
21246 fi
21247 done
21248 done
21249
21250 test -z "$ac_cv_path_XCODE_SELECT" && ac_cv_path_XCODE_SELECT="no"
21251 ;;
21252 esac
21253 fi
21254 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
21255
21256 if test -n "$XCODE_SELECT"; then
21257 echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
21258 echo "${ECHO_T}$XCODE_SELECT" >&6
21259 else
21260 echo "$as_me:$LINENO: result: no" >&5
21261 echo "${ECHO_T}no" >&6
21262 fi
21263
21264
21265 find_java_native_include()
21266 {
21267 JAVANATINC="-I\$(JAVAINCLUDEDIR)/`cd $JAVAINCLUDEDIR; find . -name $1|sed s#$1##|head -n1`"
21268 if test `cd $JAVAINCLUDEDIR; find . -name $1|wc -l` != "1" ; then
21269 echo 1>&2
21270 echo WARNING: configure is having a hard time determining which 1>&2
21271 echo directory contains the file $1. Edit Makefile and fix the 1>&2
21272 echo variable JAVANATINC to point to the correct directory. 1>&2
21273 echo 1>&2
21274 echo The following options are available: 1>&2
21275 find $JAVAINCLUDEDIR -name $1|sed s#jni_md\.h## 1>&2
21276 echo 1>&2
21277 echo If there are more than one option available the first was selected. 1>&2
21278 echo 1>&2
21279 fi
21280 }
21281 build_conftest()
21282 {
21283 cat > conftest.java << EOF
21284 /* this may be usefull for getting around java cobwebs during build */
21285 public class conftest
21286 {
21287 public static void main(String[] args)
21288 {
21289 System.out.println(System.getProperty(args[0]));
21290 }
21291 }
21292 EOF
21293 CLASSPATH=.:$CLASSPATH
21294 if test x$JAVA_HOME = x; then
21295 javac -classpath .:$CLASSPATH: conftest.java
21296 else
21297 $JAVA_HOME/bin/javac -classpath .:$CLASSPATH: conftest.java
21298 fi
21299 }
21300
21301 run_conftest()
21302 {
21303 echo $ECHO_N checking $1 " " 1>&6
21304 if test x$JPATH = x; then
21305 VAR=`java -classpath .:$CLASSPATH: conftest $1`
21306 else
21307 VAR=`$JPATH/bin/java -classpath .:$CLASSPATH: conftest $1`
21308 fi
21309 echo $VAR 1>&6
21310 echo $VAR
21311 return
21312 }
21313
21314 build_conftest
21315 if test x$JAVA_HOME = x; then
21316 JPATH=`run_conftest java.home| sed s#\/jre\\$##g`
21317 else
21318 JPATH=$JAVA_HOME
21319 echo $JAVA_HOME
21320 { echo "$as_me:$LINENO: WARNING: using JAVA_HOME environmental variable" >&5
21321 echo "$as_me: WARNING: using JAVA_HOME environmental variable" >&2;}
21322 fi
21323 if test x$JPATH = x; then
21324 { { echo "$as_me:$LINENO: error: Make sure java is in your path before running configure" >&5
21325 echo "$as_me: error: Make sure java is in your path before running configure" >&2;}
21326 { (exit 1); exit 1; }; }
21327 fi
21328 echo adjusted java.home is $JPATH
21329 if test "$target_alias" = i386-mingw32 ;then
21330 OS_NAME=WIN32
21331 else
21332 OS_NAME=`run_conftest os.name`
21333 fi
21334 OS_ARCH=`run_conftest os.arch`
21335 #JAVA_CLASS_PATH=`run_conftest java.class.path`
21336 #JAVA_LIBRARY_PATH=`run_conftest java.library.path`
21337 JAVA_VENDOR=`run_conftest java.vendor`
21338 JAVA_VERSION=`run_conftest java.version`
21339 rm -f conftest.java
21340 rm -f conftest.class
21341
21342 echo $ECHO_N checking os.version " " 1>&6
21343 OS_VERSION=`uname -r`
21344 echo $OS_VERSION 1>&6
21345
21346 check_prefix()
21347 {
21348 if test $prefix != "/usr";then
21349 echo 1>&2
21350 echo "WARNING: configure was not run with option --prefix=/usr" 1>&2
21351 echo " Unless /usr/local/lib or the specified prefix is in" 1>&2
21352 echo " the linkers path this will cause problems later on." 1>&2
21353 echo 1>&2
21354 fi
21355 }
21356 # an attempt to compile on libc5 linux machines
21357 check_java_headers()
21358 {
21359
21360 cat > conftest.c << EOF
21361 #include <features.h>
21362 #include <stdio.h>
21363 #include <stdlib.h>
21364 int main(int argc, char *argv)
21365 {
21366 #if defined (__GLIBC__)
21367 printf("%i\n",__GLIBC__);
21368 #else
21369 printf("0\n");
21370 #endif
21371
21372 exit(0);
21373 }
21374 EOF
21375 cc conftest.c -o conftest
21376 if test `./conftest` -lt 2 ;then
21377 echo 1>&2
21378 echo " WARNING: Older libc on linux detected. Patching a local copy of jni_md.h" 1>&2
21379 echo 1>&2
21380 ln -s `find $JAVAINCLUDEDIR -name jni.h` .
21381 cp `find $JAVAINCLUDEDIR -name typedefs_md.h` .
21382 # not pretty. could be cleaned up
21383 patch << EOF
21384 --- typedefs_md.h Tue Jan 11 14:17:08 2000
21385 +++ typedefs_md.h.patchtaj Tue Jan 11 14:15:53 2000
21386 @@ -17,9 +17,6 @@
21387 */
21388
21389 /* sbb: Johan Vos, why isn't this #ifndef inside the solaris header guard? */
21390 -#ifndef BITSPERCHAR
21391 -#define BITSPERCHAR 8
21392 -#endif
21393
21394 #ifndef _SOLARIS_TYPES_MD_H_
21395 #define _SOLARIS_TYPES_MD_H_
21396 @@ -28,50 +25,19 @@
21397 #include <sys/stat.h>
21398 #include "bool.h"
21399
21400 -#if defined(__alpha__)
21401 -typedef unsigned long ptr_int;
21402 -#define PTR_IS_64 1
21403 -#define LONG_IS_64 1
21404 -#else
21405 typedef unsigned int ptr_int;
21406 #define PTR_IS_32 1
21407 -#endif
21408
21409 /* don't redefine typedef's on Solaris 2.6 or Later */
21410
21411 -#if !defined(_ILP32) && !defined(_LP64)
21412 -
21413 -#ifndef _UINT64_T
21414 -#define _UINT64_T
21415 -#ifdef LONG_IS_64
21416 -typedef unsigned long uint64_t;
21417 -#else
21418 typedef unsigned long long uint64_t;
21419 -#endif
21420 -#define _UINT32_T
21421 typedef unsigned int uint32_t;
21422 -#if defined(__linux__)
21423 typedef unsigned int uint_t;
21424 -#endif
21425 -#endif
21426
21427 -#ifndef __BIT_TYPES_DEFINED__
21428 -#ifdef (__i386__)
21429 -/* that should get Linux, at least */
21430 #ifndef _INT64_T
21431 #define _INT64_T
21432 -#ifdef LONG_IS_64
21433 -typedef long int64_t;
21434 -#else
21435 typedef long long int64_t;
21436 -#endif
21437 -#define _INT32_T
21438 -typedef int int32_t;
21439 -#if defined(__linux__)
21440 -typdef int int_t;
21441 -#endif
21442 -#endif
21443 -#endif /* i386 */
21444 +typedef int int_t;
21445 #endif /* __BIT_TYPES_DEFINED__ */
21446
21447 #endif /* !defined(_ILP32) && !defined(_LP64) */
21448 @@ -110,27 +76,15 @@
21449 #endif
21450
21451
21452 -/* On Intel these conversions have to be method calls and not typecasts.
21453 - See the win32 typedefs_md.h file */
21454 -#if ((defined(i386) || defined (__i386)) && defined(__solaris__)) || defined(__powerpc__)
21455 -
21456 -extern int32_t float2l(float f);
21457 -extern int32_t double2l(double d);
21458 -extern int64_t float2ll(float f);
21459 -extern int64_t double2ll(double d);
21460 -
21461 -#else /* not solaris x386 or linux powerpc*/
21462 -
21463 #define float2l(f) (f)
21464 #define double2l(f) (f)
21465 #define float2ll(f) ((int64_t) (f))
21466 #define double2ll(f) ((int64_t) (f))
21467
21468 -#endif /* i386 */
21469 -
21470
21471 #define ll2float(a) ((float) (a))
21472 #define ll2double(a) ((double) (a))
21473 +#define double2ll(f) ((int64_t) (f))
21474
21475 /* comparison operators */
21476 #define ll_ltz(ll) ((ll)<0)
21477 @@ -148,13 +102,7 @@
21478
21479 extern void ll2str(int64_t a, char *s, char *limit);
21480
21481 -#if defined(ppc) || defined(__ppc__) || defined(__alpha__) || defined(__sparc__)
21482 -#ifndef HAVE_ALIGNED_DOUBLES
21483 +#if defined(ppc) || defined(__ppc__) || defined(__alpha__)
21484 #define HAVE_ALIGNED_DOUBLES
21485 -#endif
21486 -#ifndef HAVE_ALIGNED_LONGLONGS
21487 #define HAVE_ALIGNED_LONGLONGS
21488 #endif
21489 -#endif
21490 -
21491 -#endif /* !_SOLARIS_TYPES_MD_H_ */
21492 EOF
21493 fi
21494 rm -f conftest.c
21495 rm -f conftest
21496 }
21497 check_kernel_headers()
21498 {
21499 cat > conftest.c << EOF
21500
21501 #include <linux/version.h>
21502 #include <linux/utsrelease.h>
21503 #include <stdio.h>
21504 #include <stdlib.h>
21505
21506 int main(int argc, char *argv)
21507 {
21508 printf(UTS_RELEASE"\n");
21509 exit(0);
21510 }
21511 EOF
21512 cc conftest.c -o conftest
21513 if test `uname -r` != `./conftest` ;then
21514 echo 1>&2
21515 echo " WARNING: Kernel include files do not match the current kernel" 1>&2
21516 echo 1>&2
21517 fi
21518 rm -f conftest.c
21519 rm -f conftest
21520 }
21521 #fix_mac_groups()
21522 #{
21523 #this is what the Mac OS X installer does... untested
21524 # sudo mkdir /var/spool/uucp
21525 # sudo chmod 775 /var/spool/uucp
21526 # sudo niutil -destroyval / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
21527 # sudo niutil -appendprop / /groups/uucp users `sudo id -p | grep 'login' | sed 's/login.//'`
21528 #}
21529 fix_comm_jar()
21530 {
21531 if test -f $1 ;then
21532 echo "------------------------------------------------------" 1>&2
21533 echo "WARNING: A comm.jar file is already installed" 1>&2
21534 echo "make sure your CLASSPATH points to RXTXcomm.jar!" 1>&2
21535 echo 1>&2
21536 echo $1
21537 echo 1>&2
21538 echo "------------------------------------------------------" 1>&2
21539 fi;
21540 }
21541 case $OS_NAME in
21542 Mac\ OS\ X)
21543 JAVAINCLUDEDIR=$JPATH/../../../Headers
21544 ;;
21545 *)
21546 JAVAINCLUDEDIR=$JPATH/include
21547 ;;
21548 esac
21549
21550 JAVAINCLUDE="-I\$(JAVAINCLUDEDIR)"
21551 if test "$CC" = "gcc" || test "$CC"="egcs"; then
21552 case $JAVA_VENDOR in
21553 Tran*)
21554 find_java_native_include jni.h
21555 JAVAH="\$(JPATH)/bin/kaffeh -classpath \$(CLASSPATH) -d \$(DEST) -jni"
21556 JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
21557 JAR="\$(JPATH)/bin/jar"
21558 JAVADOC="\$(JPATH)/bin/javadoc -classpath \$(CLASSPATH)"
21559 CFLAGS=$CFLAGS" -D_BSD_SOURCE"
21560 JAVAINCLUDE=""
21561 JAVAH_FIX="if test ! -d \$(target_triplet);then mkdir \$(target_triplet);fi;"
21562 JHOME=$JPATH"/share/kaffe/"
21563 RXTX_PATH=$JPATH"/lib/kaffe/"
21564 ;;
21565 *)
21566 find_java_native_include jni_md.h
21567 JAVAH="\$(JPATH)/bin/javah -classpath \$(CLASSPATH) -d \$(DEST) -jni"
21568 JAVAC="\$(JPATH)/bin/javac -classpath \$(CLASSPATH) -d \$(TOP)/ -O -source 1.3 -target 1.3"
21569 JAR="\$(JPATH)/bin/jar"
21570 JAVADOC="\$(JPATH)/bin/javadoc"
21571 CFLAGS=$CFLAGS" -D_BSD_SOURCE"
21572 ;;
21573 esac
21574 fi
21575 if test -d $JPATH/share/kaffe/
21576 then fix_comm_jar $JPATH/share/kaffe/comm.jar
21577 elif test -d $JPATH/jre/lib/ext
21578 then fix_comm_jar $JPATH/jre/lib/ext/comm.jar
21579 elif test -d $JPATH/lib/ext
21580 then fix_comm_jar $JPATH/lib/ext/comm.jar
21581 elif test -d $JPATH/lib
21582 then fix_comm_jar $JPATH/lib/comm.jar
21583 fi
21584
21585 # http://www.tolstoy.com/samizdat/sysprops.html
21586
21587 case $OS_NAME in
21588 Linux)
21589 LDFLAGS=$LDFLAGS" -lpthread"
21590 #check_kernel_headers
21591 check_java_headers
21592 CFLAGS=$CFLAGS" -D__need_timespec"
21593 case $JAVA_VERSION in
21594
21595 1.1*)
21596 CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \
21597 if [ -d $JPATH/share/kaffe/ ]; then
21598 find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp]
21599 elif [ -d $JPATH/lib/ ]; then
21600 find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp]
21601 fi`":"`
21602 if [ -d $JPATH/share/kaffe/ ]; then
21603 find $JPATH/share/kaffe/ -name RXTXcomm.jar
21604 elif [ -d $JPATH/lib/ ]; then
21605 find $JPATH/lib/ -name RXTXcomm.jar
21606 fi`
21607
21608 if test x"$RXTX_PATH" = x;then
21609 # We are not using Kaffe
21610 #fix_parameters $JPATH/lib/javax.comm.properties
21611 check_prefix
21612 RXTX_PATH="\$(prefix)/lib/"
21613 JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;";
21614 else
21615 # Kaffe
21616 CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar`
21617 echo "Warning! Kaffe's comm.jar does not support rxtx"
21618 echo "See INSTALL for details"
21619 fi;
21620 if test x"$JHOME" = x;then
21621 JHOME=$JPATH/"lib"
21622 fi
21623 ;;
21624 *)
21625 #fix_parameters $JPATH/jre/lib/javax.comm.properties
21626 CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
21627 JHOME=$JPATH"/jre/lib/ext"
21628 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21629 ;;
21630 esac
21631
21632 # Cross Compilers
21633 #echo ----------------------------
21634 #echo $target_os
21635 #echo ----------------------------
21636 case $target_os in
21637 linux*)
21638 ;;
21639 beos*)
21640 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21641 EXTENSION="cpp"
21642 LDFLAGS=$LDFLAGS" -ldevice"
21643 #echo ----------------------------
21644 #echo $target_os
21645 #echo ----------------------------
21646 ;;
21647 freebsd*)
21648 ;;
21649 solaris*)
21650 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21651 #echo ----------------------------
21652 #echo $target_os
21653 #echo ----------------------------
21654 ;;
21655 esac
21656 ;;
21657
21658 *BSD)
21659 LDFLAGS=$LDFLAGS" -lc_r"
21660 JHOME=$JPATH/"lib"
21661 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21662 TARGETLIB="\$(target_triplet)/librxtxSerial.la \
21663 \$(target_triplet)/librxtxParallel.la"
21664 case $JAVA_VERSION in
21665 1.1*)
21666 check_prefix
21667 #fix_parameters $JPATH/lib/javax.comm.properties
21668 CLASSPATH=".:\$(TOP):\$(TOP)/src:"` \
21669 if [ -d $JPATH/share/kaffe/ ]; then
21670 find $JPATH/share/kaffe/ -name [cK]lasses.[jz][ai][rp]
21671 elif [ -d $JPATH/lib/ ]; then
21672 find $JPATH/lib/ -name [cK]lasses.[jz][ai][rp]
21673 fi`":"`
21674 if [ -d $JPATH/share/kaffe/ ]; then
21675 find $JPATH/share/kaffe/ -name RXTXcomm.jar
21676 elif [ -d $JPATH/lib/ ]; then
21677 find $JPATH/lib/ -name RXTXcomm.jar
21678 fi`
21679
21680 if test x"$RXTX_PATH" = x;then
21681 # We are not using Kaffe
21682 #fix_parameters $JPATH/lib/javax.comm.properties
21683 check_prefix
21684 RXTX_PATH="\$(prefix)/lib/"
21685 JAVAH_FIX="if [ ! -d com ]; then if [ ! -f \$(JPATH)/lib/comm.jar ]; then echo \"Please install comm.jar from CommAPI in \$(JPATH)/java/lib/ 1>&2\"; else mkdir -p com/sun/comm;\$(JAR) -xf \$(JPATH)/lib/comm.jar; fi; fi;";
21686 else
21687 # Kaffe
21688 CLASSPATH=$CLASSPATH:`find $JHOME -name RXTXcomm.jar`
21689 echo "Warning! Kaffe's comm.jar does not support rxtx"
21690 echo "See INSTALL for details"
21691 fi;
21692 RXTX_PATH="\$(prefix)/lib"
21693 JHOME=$JPATH/"lib"
21694 ;;
21695 *)
21696 #fix_parameters $JPATH/jre/lib/javax.comm.properties
21697 CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name RXTXcomm.jar |head -n1`
21698 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21699 JHOME=$JPATH/"jre/lib/ext"
21700 ;;
21701 esac
21702 ;;
21703
21704 Irix*)
21705 JHOME=$JPATH/"lib"
21706 CFLAGS=$CFLAGS" -I/usr/include"
21707 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21708 RXTX_PATH="\$(JPATH)/lib/\$(OS_ARCH)"
21709 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21710 ;;
21711
21712 # since the os.name is different for UnixWare and OpenUNIX we could use it to
21713 # differentiate the lock files See SerialImp.h for comments on the lock files
21714 # in SCO. Currently that would be a build time fix though.
21715 # FIXME
21716
21717 UnixWare|OpenUNIX)
21718 LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
21719 JHOME=$JPATH/"jre/lib"
21720 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1 -D__unixware__"
21721 CLASSPATH="-classpath .:\$(TOP):\$(TOP)/src:\$(JPATH)/jre/lib/rt.jar:\$(JPATH)/jre/lib/ext/comm.jar"
21722 TARGETLIB="\$(target_triplet)/librxtxSerial.so \
21723 \$(target_triplet)/librxtxParallel.so"
21724 COMPILE="\$(CC) \$(INCLUDES) \$(CPPFLAGS) \$(CFLAGS) \$(VERBOSE_IOEXCEPTIONS) -c "
21725 LINK="\$(CC) \$(CFLAGS) \$(LDFLAGS)"
21726 echo "In UnixWare, CLASSPATH is $CLASSPATH"
21727 ;;
21728
21729 HP-UX)
21730 LDFLAGS=$LDFLAGS" -lpthread_this_may_be_wrong__trent"
21731 CFLAGS=$CFLAGS" -g -Aa +e -D__hpux__ -D_HPUX_SOURCE -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21732 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21733 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21734 case $JAVA_VERSION in
21735 HP-UX\ Java\ C.01.2*|HP-UX\ Java\ C.01.3*)
21736 #fix_parameters $JPATH/jre/lib/javax.comm.properties
21737 JHOME=$JPATH"/jre/lib/ext"
21738 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/jre/lib/ext/RXTXcomm.jar:$CLASSPATH"
21739 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21740 echo WARNING $JAVA_VERSION is untested please email this message to [email protected] and let me know if it works.
21741 ;;
21742 HP-UX\ Java\ C.01.1*)
21743 #fix_parameters $JPATH/lib/javax.comm.properties
21744 JHOME=$JPATH/"lib"
21745 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21746 RXTX_PATH="\$(prefix)/lib/"
21747 ;;
21748 *)
21749 #fix_parameters $JPATH/lib/javax.comm.properties
21750 JHOME=$JPATH"/lib"
21751 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21752 RXTX_PATH="\$(prefix)/lib/"
21753 echo WARNING $JAVA_VERSION is untested please email this message to [email protected] and let me know if it works.
21754 ;;
21755 esac
21756 case $OS_ARCH in
21757 PA-RISC)
21758 ;;
21759 *)
21760 ;;
21761 esac
21762 case $OS_VERSION in
21763 B.10.20)
21764 ;;
21765 *)
21766 ;;
21767 esac
21768 case $JAVA_VENDOR in
21769 Hewlett\ Packard\ Co\.)
21770 ;;
21771 *)
21772 ;;
21773 esac
21774 ;;
21775
21776 BeOS)
21777 echo WARNING: BeOS support is in RXTX-1.5
21778 JHOME=$JPATH"/share/kaffe"
21779 RXTX_PATH="\$(JPATH)/lib/"
21780 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21781 CLASSPATH=".:\$(TOP):\$(TOP)/../src:\$(JPATH)/share/kaffe/Klasses.jar:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21782 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21783 EXTENSION="cpp"
21784 LDFLAGS=$LDFLAGS" -ldevice"
21785 # sigh, from ltconfig
21786 # beos*)
21787 # if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
21788 # allow_undefined_flag=unsupported
21789 # # Joseph Beckenbach <[email protected]> says some releases of gcc
21790 # # support --undefined. This deserves some investigation. FIXME
21791
21792 LIBTOOL_FIX="sed s/deplibs_check_method=\\\"unknown\\\"/deplibs_check_method=\\\"pass_all\\\"/1 libtool > libtool.tmp; sed s/allow_undefined_flag=\\\"unsupported\\\"/allow_undefined_flag=\\\"supported\\\"/1 libtool.tmp > libtool;rm libtool.tmp;"
21793
21794
21795 ;;
21796
21797 WIN32)
21798 case $JAVA_VERSION in
21799 1.1*)
21800 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21801 RXTX_PATH="\$(prefix)/lib/"
21802 JHOME=$JPATH/"lib"
21803 ;;
21804 *)
21805 CLASSPATH=".:\$(TOP):\$(TOP)/src:`find $JPATH/ -name RXTXcomm.jar |head -n1`:$CLASSPATH"
21806 JHOME=$JPATH"/jre/lib/ext"
21807 ;;
21808 esac
21809 if test x$WIN32INCLUDE = x; then
21810 echo "We need to know what directory the windows java include files"
21811 echo "are located in. Please enter the directory now."
21812 echo
21813 echo "example /home/jarvi/win32java/include"
21814 echo
21815 read REPLY
21816 WINDOWS_JAVA_INCLUDE="-I$REPLY -I$REPLY/win32"
21817 else
21818 WINDOWS_JAVA_INCLUDE="-I$WIN32INCLUDE -I$WIN32INCLUDE/win32"
21819 fi
21820 TARGETLIB="\$(target_triplet)/rxtxSerial.dll \$(target_triplet)/rxtxParallel.dll"
21821 echo "$WINDOWS_JAVA_INCLUDE"
21822 ;;
21823
21824 Mac\ OS\ X)
21825 #fix_mac_groups
21826 #fix_parameters $JPATH/lib/javax.comm.properties
21827 if test $XCODE_SELECT = no; then
21828 SDKPATH="/Developer"
21829 else
21830 SDKPATH=`$XCODE_SELECT -print-path`
21831 fi
21832 SDK="$SDKPATH/SDKs/MacOSX10.4u.sdk"
21833 if test "x$enable_universallib" != xno; then
21834 if test -d "/Developer/SDKs/MacOSX10.4u.sdk"; then
21835 echo "library os.arch... universal (i386 ppc)"
21836 CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.4 -isysroot $SDK -arch i386 -arch ppc"
21837 LDFLAGS="$LDFLAGS -isysroot $SDK -arch i386 -arch ppc "
21838 else
21839 echo "Warning: no universal SDK, will not build universal"
21840 echo "library os.arch... "${OS_ARCH}
21841 fi
21842 else
21843 echo "User disabled building of universal library"
21844 echo "library os.arch... "${OS_ARCH}
21845 fi
21846
21847 GLIBTOOL="\$(SHELL) glibtool"
21848 LINK="cc $LDFLAGS -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib "
21849 OBJECT_EXTENSION="o"
21850 LIB_EXTENSION="jnilib"
21851 TARGETLIB="\$(target_triplet)/librxtxSerial.jnilib"
21852 RXTX_PATH="/usr/lib/java"
21853 JHOME=$JPATH"/lib/ext"
21854 CFLAGS=$CFLAGS" -bundle"
21855 LDFLAGS=$LDFLAGS" -module -framework JavaVM -framework IOKit -framework CoreFoundation"
21856 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/ext/RXTXcomm.jar:$CLASSPATH"
21857 # email [email protected] if you know a nicer fix. Needed anymore?
21858 # this fix was really old taj 6/05
21859 # LIBTOOL_FIX="sed s/echo\ so/echo\ jnilib/g libtool > tmp; mv tmp libtool; chmod +x libtool;"
21860 ;;
21861
21862 Solaris*)
21863 + LDFLAGS=$LDFLAGS" -lpthread"
21864 TARGETLIB="\$(target_triplet)/librxtxSerial.la \
21865 \$(target_triplet)/librxtxParallel.la"
21866 JHOME=$JPATH/"lib"
21867 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21868 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21869
21870 case $JAVA_VERSION in
21871 1.1*)
21872 RXTX_PATH="\$(JPATH)/lib/"
21873 ;;
21874 *)
21875 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21876 ;;
21877 esac
21878 ;;
21879
21880 OS*2)
21881 # Place marker only
21882 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21883 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21884 JHOME=$JPATH/"lib"
21885 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21886 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21887
21888 ;;
21889
21890 AIX)
21891 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21892 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21893 JHOME=$JPATH/"lib"
21894 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21895 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21896
21897 ;;
21898
21899 Compaq\'s\ Digital\ Unix | OSF1 )
21900 LDFLAGS=$LDFLAGS" -lpthread"
21901 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21902 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21903 JHOME=$JPATH/"lib"
21904 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21905 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21906
21907 ;;
21908
21909 NetWare*)
21910 # Place marker only
21911 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21912 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21913 JHOME=$JPATH/"lib"
21914 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21915 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21916
21917 ;;
21918
21919 MPE*)
21920 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21921 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21922 JHOME=$JPATH/"lib"
21923 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21924 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21925 ;;
21926
21927
21928 #os.name reported "QNX"
21929 #java.vendor reported "IBM Corporation"
21930 #java.version reported "1.3.0 subset"
21931 #
21932 #Originally nothing was reported. javac is called j9c and java is called
21933 #j9 with the
21934 #j9 vm. I created symbolic links temporarily to get by that. Currently
21935 #I'm puking when
21936 #it tries to jar things up since j9 doesn't ship with a jar tool.
21937 #All right. Here is how things stand on porting 2.1 to QNX. (This is were
21938 #I stumble and fall)
21939 #I decided to try it without any mods initially. It made through
21940 #./configure fine except for
21941 #finding the java include dir. Since we are using j9, the include dir is
21942 #under bin. I set
21943 #JAVANATINC to point to it in Makefile and then ran make. J9 then puked
21944 #on the -O arg to javac,
21945 #so I removed it. Now it is puking on importing java.awt. What is the
21946 #best way to filter out/
21947 #isolate the gui pieces since I won't be using them on qnx?
21948
21949 QNX)
21950 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21951 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21952 JHOME=$JPATH/"lib"
21953 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21954 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21955 ;;
21956
21957 *)
21958 TARGETLIB="\$(target_triplet)/librxtxSerial.la"
21959 RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
21960 JHOME=$JPATH/"lib"
21961 CFLAGS=$CFLAGS" -D_NO_POSIX=1 -D_NO_XOPEN4=1"
21962 CLASSPATH=".:\$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/RXTXcomm.jar:$CLASSPATH"
21963 ;;
21964 esac
21965
21966 ac_config_files="$ac_config_files Makefile"
21967 cat >confcache <<\_ACEOF
21968 # This file is a shell script that caches the results of configure
21969 # tests run on this system so they can be shared between configure
21970 # scripts and configure runs, see configure's option --config-cache.
21971 # It is not useful on other systems. If it contains results you don't
21972 # want to keep, you may remove or edit it.
21973 #
21974 # config.status only pays attention to the cache file if you give it
21975 # the --recheck option to rerun configure.
21976 #
21977 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21978 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21979 # following values.
21980
21981 _ACEOF
21982
21983 # The following way of writing the cache mishandles newlines in values,
21984 # but we know of no workaround that is simple, portable, and efficient.
21985 # So, don't put newlines in cache variables' values.
21986 # Ultrix sh set writes to stderr and can't be redirected directly,
21987 # and sets the high bit in the cache file unless we assign to the vars.
21988 {
21989 (set) 2>&1 |
21990 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21991 *ac_space=\ *)
21992 # `set' does not quote correctly, so add quotes (double-quote
21993 # substitution turns \\\\ into \\, and sed turns \\ into \).
21994 sed -n \
21995 "s/'/'\\\\''/g;
21996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21997 ;;
21998 *)
21999 # `set' quotes correctly as required by POSIX, so do not add quotes.
22000 sed -n \
22001 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22002 ;;
22003 esac;
22004 } |
22005 sed '
22006 t clear
22007 : clear
22008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22009 t end
22010 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22011 : end' >>confcache
22012 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22013 if test -w $cache_file; then
22014 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22015 cat confcache >$cache_file
22016 else
22017 echo "not updating unwritable cache $cache_file"
22018 fi
22019 fi
22020 rm -f confcache
22021
22022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22023 # Let make expand exec_prefix.
22024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22025
22026 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22027 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22028 # trailing colons and then remove the whole line if VPATH becomes empty
22029 # (actually we leave an empty line to preserve line numbers).
22030 if test "x$srcdir" = x.; then
22031 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22032 s/:*\$(srcdir):*/:/;
22033 s/:*\${srcdir}:*/:/;
22034 s/:*@srcdir@:*/:/;
22035 s/^\([^=]*=[ ]*\):*/\1/;
22036 s/:*$//;
22037 s/^[^=]*=[ ]*$//;
22038 }'
22039 fi
22040
22041 DEFS=-DHAVE_CONFIG_H
22042
22043 ac_libobjs=
22044 ac_ltlibobjs=
22045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22046 # 1. Remove the extension, and $U if already installed.
22047 ac_i=`echo "$ac_i" |
22048 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22049 # 2. Add them.
22050 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22051 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22052 done
22053 LIBOBJS=$ac_libobjs
22054
22055 LTLIBOBJS=$ac_ltlibobjs
22056
22057
22058 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22059 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22060 Usually this means the macro was only invoked conditionally." >&5
22061 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22062 Usually this means the macro was only invoked conditionally." >&2;}
22063 { (exit 1); exit 1; }; }
22064 fi
22065 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22066 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22067 Usually this means the macro was only invoked conditionally." >&5
22068 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22069 Usually this means the macro was only invoked conditionally." >&2;}
22070 { (exit 1); exit 1; }; }
22071 fi
22072 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22073 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22074 Usually this means the macro was only invoked conditionally." >&5
22075 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22076 Usually this means the macro was only invoked conditionally." >&2;}
22077 { (exit 1); exit 1; }; }
22078 fi
22079 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22080 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22081 Usually this means the macro was only invoked conditionally." >&5
22082 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22083 Usually this means the macro was only invoked conditionally." >&2;}
22084 { (exit 1); exit 1; }; }
22085 fi
22086
22087 : ${CONFIG_STATUS=./config.status}
22088 ac_clean_files_save=$ac_clean_files
22089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22090 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22091 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22092 cat >$CONFIG_STATUS <<_ACEOF
22093 #! $SHELL
22094 # Generated by $as_me.
22095 # Run this file to recreate the current configuration.
22096 # Compiler output produced by configure, useful for debugging
22097 # configure, is in config.log if it exists.
22098
22099 debug=false
22100 ac_cs_recheck=false
22101 ac_cs_silent=false
22102 SHELL=\${CONFIG_SHELL-$SHELL}
22103 _ACEOF
22104
22105 cat >>$CONFIG_STATUS <<\_ACEOF
22106 ## --------------------- ##
22107 ## M4sh Initialization. ##
22108 ## --------------------- ##
22109
22110 # Be Bourne compatible
22111 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22112 emulate sh
22113 NULLCMD=:
22114 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22115 # is contrary to our usage. Disable this feature.
22116 alias -g '${1+"$@"}'='"$@"'
22117 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22118 set -o posix
22119 fi
22120 DUALCASE=1; export DUALCASE # for MKS sh
22121
22122 # Support unset when possible.
22123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22124 as_unset=unset
22125 else
22126 as_unset=false
22127 fi
22128
22129
22130 # Work around bugs in pre-3.0 UWIN ksh.
22131 $as_unset ENV MAIL MAILPATH
22132 PS1='$ '
22133 PS2='> '
22134 PS4='+ '
22135
22136 # NLS nuisances.
22137 for as_var in \
22138 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22139 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22140 LC_TELEPHONE LC_TIME
22141 do
22142 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22143 eval $as_var=C; export $as_var
22144 else
22145 $as_unset $as_var
22146 fi
22147 done
22148
22149 # Required to use basename.
22150 if expr a : '\(a\)' >/dev/null 2>&1; then
22151 as_expr=expr
22152 else
22153 as_expr=false
22154 fi
22155
22156 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22157 as_basename=basename
22158 else
22159 as_basename=false
22160 fi
22161
22162
22163 # Name of the executable.
22164 as_me=`$as_basename "$0" ||
22165 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22166 X"$0" : 'X\(//\)$' \| \
22167 X"$0" : 'X\(/\)$' \| \
22168 . : '\(.\)' 2>/dev/null ||
22169 echo X/"$0" |
22170 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22171 /^X\/\(\/\/\)$/{ s//\1/; q; }
22172 /^X\/\(\/\).*/{ s//\1/; q; }
22173 s/.*/./; q'`
22174
22175
22176 # PATH needs CR, and LINENO needs CR and PATH.
22177 # Avoid depending upon Character Ranges.
22178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22181 as_cr_digits='0123456789'
22182 as_cr_alnum=$as_cr_Letters$as_cr_digits
22183
22184 # The user is always right.
22185 if test "${PATH_SEPARATOR+set}" != set; then
22186 echo "#! /bin/sh" >conf$$.sh
22187 echo "exit 0" >>conf$$.sh
22188 chmod +x conf$$.sh
22189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22190 PATH_SEPARATOR=';'
22191 else
22192 PATH_SEPARATOR=:
22193 fi
22194 rm -f conf$$.sh
22195 fi
22196
22197
22198 as_lineno_1=$LINENO
22199 as_lineno_2=$LINENO
22200 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22201 test "x$as_lineno_1" != "x$as_lineno_2" &&
22202 test "x$as_lineno_3" = "x$as_lineno_2" || {
22203 # Find who we are. Look in the path if we contain no path at all
22204 # relative or not.
22205 case $0 in
22206 *[\\/]* ) as_myself=$0 ;;
22207 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22209 do
22210 IFS=$as_save_IFS
22211 test -z "$as_dir" && as_dir=.
22212 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22213 done
22214
22215 ;;
22216 esac
22217 # We did not find ourselves, most probably we were run as `sh COMMAND'
22218 # in which case we are not to be found in the path.
22219 if test "x$as_myself" = x; then
22220 as_myself=$0
22221 fi
22222 if test ! -f "$as_myself"; then
22223 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22224 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22225 { (exit 1); exit 1; }; }
22226 fi
22227 case $CONFIG_SHELL in
22228 '')
22229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22230 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22231 do
22232 IFS=$as_save_IFS
22233 test -z "$as_dir" && as_dir=.
22234 for as_base in sh bash ksh sh5; do
22235 case $as_dir in
22236 /*)
22237 if ("$as_dir/$as_base" -c '
22238 as_lineno_1=$LINENO
22239 as_lineno_2=$LINENO
22240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22241 test "x$as_lineno_1" != "x$as_lineno_2" &&
22242 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22243 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22244 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22245 CONFIG_SHELL=$as_dir/$as_base
22246 export CONFIG_SHELL
22247 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22248 fi;;
22249 esac
22250 done
22251 done
22252 ;;
22253 esac
22254
22255 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22256 # uniformly replaced by the line number. The first 'sed' inserts a
22257 # line-number line before each line; the second 'sed' does the real
22258 # work. The second script uses 'N' to pair each line-number line
22259 # with the numbered line, and appends trailing '-' during
22260 # substitution so that $LINENO is not a special case at line end.
22261 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22262 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22263 sed '=' <$as_myself |
22264 sed '
22265 N
22266 s,$,-,
22267 : loop
22268 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22269 t loop
22270 s,-$,,
22271 s,^['$as_cr_digits']*\n,,
22272 ' >$as_me.lineno &&
22273 chmod +x $as_me.lineno ||
22274 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22275 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22276 { (exit 1); exit 1; }; }
22277
22278 # Don't try to exec as it changes $[0], causing all sort of problems
22279 # (the dirname of $[0] is not the place where we might find the
22280 # original and so on. Autoconf is especially sensible to this).
22281 . ./$as_me.lineno
22282 # Exit status is that of the last command.
22283 exit
22284 }
22285
22286
22287 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22288 *c*,-n*) ECHO_N= ECHO_C='
22289 ' ECHO_T=' ' ;;
22290 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22291 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22292 esac
22293
22294 if expr a : '\(a\)' >/dev/null 2>&1; then
22295 as_expr=expr
22296 else
22297 as_expr=false
22298 fi
22299
22300 rm -f conf$$ conf$$.exe conf$$.file
22301 echo >conf$$.file
22302 if ln -s conf$$.file conf$$ 2>/dev/null; then
22303 # We could just check for DJGPP; but this test a) works b) is more generic
22304 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22305 if test -f conf$$.exe; then
22306 # Don't use ln at all; we don't have any links
22307 as_ln_s='cp -p'
22308 else
22309 as_ln_s='ln -s'
22310 fi
22311 elif ln conf$$.file conf$$ 2>/dev/null; then
22312 as_ln_s=ln
22313 else
22314 as_ln_s='cp -p'
22315 fi
22316 rm -f conf$$ conf$$.exe conf$$.file
22317
22318 if mkdir -p . 2>/dev/null; then
22319 as_mkdir_p=:
22320 else
22321 test -d ./-p && rmdir ./-p
22322 as_mkdir_p=false
22323 fi
22324
22325 as_executable_p="test -f"
22326
22327 # Sed expression to map a string onto a valid CPP name.
22328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22329
22330 # Sed expression to map a string onto a valid variable name.
22331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22332
22333
22334 # IFS
22335 # We need space, tab and new line, in precisely that order.
22336 as_nl='
22337 '
22338 IFS=" $as_nl"
22339
22340 # CDPATH.
22341 $as_unset CDPATH
22342
22343 exec 6>&1
22344
22345 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22346 # report actual input values of CONFIG_FILES etc. instead of their
22347 # values after options handling. Logging --version etc. is OK.
22348 exec 5>>config.log
22349 {
22350 echo
22351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22352 ## Running $as_me. ##
22353 _ASBOX
22354 } >&5
22355 cat >&5 <<_CSEOF
22356
22357 This file was extended by $as_me, which was
22358 generated by GNU Autoconf 2.59. Invocation command line was
22359
22360 CONFIG_FILES = $CONFIG_FILES
22361 CONFIG_HEADERS = $CONFIG_HEADERS
22362 CONFIG_LINKS = $CONFIG_LINKS
22363 CONFIG_COMMANDS = $CONFIG_COMMANDS
22364 $ $0 $@
22365
22366 _CSEOF
22367 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22368 echo >&5
22369 _ACEOF
22370
22371 # Files that config.status was made for.
22372 if test -n "$ac_config_files"; then
22373 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22374 fi
22375
22376 if test -n "$ac_config_headers"; then
22377 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22378 fi
22379
22380 if test -n "$ac_config_links"; then
22381 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22382 fi
22383
22384 if test -n "$ac_config_commands"; then
22385 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22386 fi
22387
22388 cat >>$CONFIG_STATUS <<\_ACEOF
22389
22390 ac_cs_usage="\
22391 \`$as_me' instantiates files from templates according to the
22392 current configuration.
22393
22394 Usage: $0 [OPTIONS] [FILE]...
22395
22396 -h, --help print this help, then exit
22397 -V, --version print version number, then exit
22398 -q, --quiet do not print progress messages
22399 -d, --debug don't remove temporary files
22400 --recheck update $as_me by reconfiguring in the same conditions
22401 --file=FILE[:TEMPLATE]
22402 instantiate the configuration file FILE
22403 --header=FILE[:TEMPLATE]
22404 instantiate the configuration header FILE
22405
22406 Configuration files:
22407 $config_files
22408
22409 Configuration headers:
22410 $config_headers
22411
22412 Configuration commands:
22413 $config_commands
22414
22415 Report bugs to <[email protected]>."
22416 _ACEOF
22417
22418 cat >>$CONFIG_STATUS <<_ACEOF
22419 ac_cs_version="\\
22420 config.status
22421 configured by $0, generated by GNU Autoconf 2.59,
22422 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22423
22424 Copyright (C) 2003 Free Software Foundation, Inc.
22425 This config.status script is free software; the Free Software Foundation
22426 gives unlimited permission to copy, distribute and modify it."
22427 srcdir=$srcdir
22428 INSTALL="$INSTALL"
22429 _ACEOF
22430
22431 cat >>$CONFIG_STATUS <<\_ACEOF
22432 # If no file are specified by the user, then we need to provide default
22433 # value. By we need to know if files were specified by the user.
22434 ac_need_defaults=:
22435 while test $# != 0
22436 do
22437 case $1 in
22438 --*=*)
22439 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22440 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22441 ac_shift=:
22442 ;;
22443 -*)
22444 ac_option=$1
22445 ac_optarg=$2
22446 ac_shift=shift
22447 ;;
22448 *) # This is not an option, so the user has probably given explicit
22449 # arguments.
22450 ac_option=$1
22451 ac_need_defaults=false;;
22452 esac
22453
22454 case $ac_option in
22455 # Handling of the options.
22456 _ACEOF
22457 cat >>$CONFIG_STATUS <<\_ACEOF
22458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22459 ac_cs_recheck=: ;;
22460 --version | --vers* | -V )
22461 echo "$ac_cs_version"; exit 0 ;;
22462 --he | --h)
22463 # Conflict between --help and --header
22464 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22465 Try \`$0 --help' for more information." >&5
22466 echo "$as_me: error: ambiguous option: $1
22467 Try \`$0 --help' for more information." >&2;}
22468 { (exit 1); exit 1; }; };;
22469 --help | --hel | -h )
22470 echo "$ac_cs_usage"; exit 0 ;;
22471 --debug | --d* | -d )
22472 debug=: ;;
22473 --file | --fil | --fi | --f )
22474 $ac_shift
22475 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22476 ac_need_defaults=false;;
22477 --header | --heade | --head | --hea )
22478 $ac_shift
22479 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22480 ac_need_defaults=false;;
22481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22483 ac_cs_silent=: ;;
22484
22485 # This is an error.
22486 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22487 Try \`$0 --help' for more information." >&5
22488 echo "$as_me: error: unrecognized option: $1
22489 Try \`$0 --help' for more information." >&2;}
22490 { (exit 1); exit 1; }; } ;;
22491
22492 *) ac_config_targets="$ac_config_targets $1" ;;
22493
22494 esac
22495 shift
22496 done
22497
22498 ac_configure_extra_args=
22499
22500 if $ac_cs_silent; then
22501 exec 6>/dev/null
22502 ac_configure_extra_args="$ac_configure_extra_args --silent"
22503 fi
22504
22505 _ACEOF
22506 cat >>$CONFIG_STATUS <<_ACEOF
22507 if \$ac_cs_recheck; then
22508 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22509 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22510 fi
22511
22512 _ACEOF
22513
22514 cat >>$CONFIG_STATUS <<_ACEOF
22515 #
22516 # INIT-COMMANDS section.
22517 #
22518
22519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22520
22521 _ACEOF
22522
22523
22524
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 for ac_config_target in $ac_config_targets
22527 do
22528 case "$ac_config_target" in
22529 # Handling of arguments.
22530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22531 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22532 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22535 { (exit 1); exit 1; }; };;
22536 esac
22537 done
22538
22539 # If the user did not use the arguments to specify the items to instantiate,
22540 # then the envvar interface is used. Set only those that are not.
22541 # We use the long form for the default assignment because of an extremely
22542 # bizarre bug on SunOS 4.1.3.
22543 if $ac_need_defaults; then
22544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22547 fi
22548
22549 # Have a temporary directory for convenience. Make it in the build tree
22550 # simply because there is no reason to put it here, and in addition,
22551 # creating and moving files from /tmp can sometimes cause problems.
22552 # Create a temporary directory, and hook for its removal unless debugging.
22553 $debug ||
22554 {
22555 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22556 trap '{ (exit 1); exit 1; }' 1 2 13 15
22557 }
22558
22559 # Create a (secure) tmp directory for tmp files.
22560
22561 {
22562 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22563 test -n "$tmp" && test -d "$tmp"
22564 } ||
22565 {
22566 tmp=./confstat$$-$RANDOM
22567 (umask 077 && mkdir $tmp)
22568 } ||
22569 {
22570 echo "$me: cannot create a temporary directory in ." >&2
22571 { (exit 1); exit 1; }
22572 }
22573
22574 _ACEOF
22575
22576 cat >>$CONFIG_STATUS <<_ACEOF
22577
22578 #
22579 # CONFIG_FILES section.
22580 #
22581
22582 # No need to generate the scripts if there are no CONFIG_FILES.
22583 # This happens for instance when ./config.status config.h
22584 if test -n "\$CONFIG_FILES"; then
22585 # Protect against being on the right side of a sed subst in config.status.
22586 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22587 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22588 s,@SHELL@,$SHELL,;t t
22589 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22590 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22591 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22592 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22593 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22594 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22595 s,@exec_prefix@,$exec_prefix,;t t
22596 s,@prefix@,$prefix,;t t
22597 s,@program_transform_name@,$program_transform_name,;t t
22598 s,@bindir@,$bindir,;t t
22599 s,@sbindir@,$sbindir,;t t
22600 s,@libexecdir@,$libexecdir,;t t
22601 s,@datadir@,$datadir,;t t
22602 s,@sysconfdir@,$sysconfdir,;t t
22603 s,@sharedstatedir@,$sharedstatedir,;t t
22604 s,@localstatedir@,$localstatedir,;t t
22605 s,@libdir@,$libdir,;t t
22606 s,@includedir@,$includedir,;t t
22607 s,@oldincludedir@,$oldincludedir,;t t
22608 s,@infodir@,$infodir,;t t
22609 s,@mandir@,$mandir,;t t
22610 s,@build_alias@,$build_alias,;t t
22611 s,@host_alias@,$host_alias,;t t
22612 s,@target_alias@,$target_alias,;t t
22613 s,@DEFS@,$DEFS,;t t
22614 s,@ECHO_C@,$ECHO_C,;t t
22615 s,@ECHO_N@,$ECHO_N,;t t
22616 s,@ECHO_T@,$ECHO_T,;t t
22617 s,@LIBS@,$LIBS,;t t
22618 s,@build@,$build,;t t
22619 s,@build_cpu@,$build_cpu,;t t
22620 s,@build_vendor@,$build_vendor,;t t
22621 s,@build_os@,$build_os,;t t
22622 s,@host@,$host,;t t
22623 s,@host_cpu@,$host_cpu,;t t
22624 s,@host_vendor@,$host_vendor,;t t
22625 s,@host_os@,$host_os,;t t
22626 s,@target@,$target,;t t
22627 s,@target_cpu@,$target_cpu,;t t
22628 s,@target_vendor@,$target_vendor,;t t
22629 s,@target_os@,$target_os,;t t
22630 s,@CC@,$CC,;t t
22631 s,@CFLAGS@,$CFLAGS,;t t
22632 s,@LDFLAGS@,$LDFLAGS,;t t
22633 s,@CPPFLAGS@,$CPPFLAGS,;t t
22634 s,@ac_ct_CC@,$ac_ct_CC,;t t
22635 s,@EXEEXT@,$EXEEXT,;t t
22636 s,@OBJEXT@,$OBJEXT,;t t
22637 s,@EGREP@,$EGREP,;t t
22638 s,@LN_S@,$LN_S,;t t
22639 s,@ECHO@,$ECHO,;t t
22640 s,@AR@,$AR,;t t
22641 s,@ac_ct_AR@,$ac_ct_AR,;t t
22642 s,@RANLIB@,$RANLIB,;t t
22643 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22644 s,@STRIP@,$STRIP,;t t
22645 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22646 s,@CPP@,$CPP,;t t
22647 s,@CXX@,$CXX,;t t
22648 s,@CXXFLAGS@,$CXXFLAGS,;t t
22649 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22650 s,@CXXCPP@,$CXXCPP,;t t
22651 s,@F77@,$F77,;t t
22652 s,@FFLAGS@,$FFLAGS,;t t
22653 s,@ac_ct_F77@,$ac_ct_F77,;t t
22654 s,@LIBTOOL@,$LIBTOOL,;t t
22655 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22656 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22657 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22658 s,@CYGPATH_W@,$CYGPATH_W,;t t
22659 s,@PACKAGE@,$PACKAGE,;t t
22660 s,@VERSION@,$VERSION,;t t
22661 s,@ACLOCAL@,$ACLOCAL,;t t
22662 s,@AUTOCONF@,$AUTOCONF,;t t
22663 s,@AUTOMAKE@,$AUTOMAKE,;t t
22664 s,@AUTOHEADER@,$AUTOHEADER,;t t
22665 s,@MAKEINFO@,$MAKEINFO,;t t
22666 s,@install_sh@,$install_sh,;t t
22667 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22668 s,@mkdir_p@,$mkdir_p,;t t
22669 s,@AWK@,$AWK,;t t
22670 s,@SET_MAKE@,$SET_MAKE,;t t
22671 s,@am__leading_dot@,$am__leading_dot,;t t
22672 s,@AMTAR@,$AMTAR,;t t
22673 s,@am__tar@,$am__tar,;t t
22674 s,@am__untar@,$am__untar,;t t
22675 s,@DEPDIR@,$DEPDIR,;t t
22676 s,@am__include@,$am__include,;t t
22677 s,@am__quote@,$am__quote,;t t
22678 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22679 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22680 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22681 s,@CCDEPMODE@,$CCDEPMODE,;t t
22682 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22683 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22684 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22685 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22686 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22687 s,@WINDOWS_JAVA_INCLUDE@,$WINDOWS_JAVA_INCLUDE,;t t
22688 s,@JAVAINCLUDEDIR@,$JAVAINCLUDEDIR,;t t
22689 s,@JAVAINCLUDE@,$JAVAINCLUDE,;t t
22690 s,@JAVANATINC@,$JAVANATINC,;t t
22691 s,@CLASSPATH@,$CLASSPATH,;t t
22692 s,@TOP@,$TOP,;t t
22693 s,@TARGETLIB@,$TARGETLIB,;t t
22694 s,@LDFLAG@,$LDFLAG,;t t
22695 s,@THREAD_FLAG@,$THREAD_FLAG,;t t
22696 s,@OS_NAME@,$OS_NAME,;t t
22697 s,@OS_ARCH@,$OS_ARCH,;t t
22698 s,@OS_VERSION@,$OS_VERSION,;t t
22699 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
22700 s,@JAVA_VENDOR@,$JAVA_VENDOR,;t t
22701 s,@JAVA_HOME@,$JAVA_HOME,;t t
22702 s,@JAVA_LIBRARY_PATH@,$JAVA_LIBRARY_PATH,;t t
22703 s,@JAVA_CLASS_PATH@,$JAVA_CLASS_PATH,;t t
22704 s,@JAVA_CLASS_VERSION@,$JAVA_CLASS_VERSION,;t t
22705 s,@JAVAH_FIX@,$JAVAH_FIX,;t t
22706 s,@JPATH@,$JPATH,;t t
22707 s,@JHOME@,$JHOME,;t t
22708 s,@RXTX_PATH@,$RXTX_PATH,;t t
22709 s,@JAVAH@,$JAVAH,;t t
22710 s,@JAVAC@,$JAVAC,;t t
22711 s,@JAR@,$JAR,;t t
22712 s,@JAVADOC@,$JAVADOC,;t t
22713 s,@EXTENSION@,$EXTENSION,;t t
22714 s,@LIBTOOL_FIX@,$LIBTOOL_FIX,;t t
22715 s,@LINK@,$LINK,;t t
22716 s,@COMPILE@,$COMPILE,;t t
22717 s,@OBJECT_EXTENSION@,$OBJECT_EXTENSION,;t t
22718 s,@LIB_EXTENSION@,$LIB_EXTENSION,;t t
22719 s,@GLIBTOOL@,$GLIBTOOL,;t t
22720 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22721 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22722 s,@MAINT@,$MAINT,;t t
22723 s,@XCODE_SELECT@,$XCODE_SELECT,;t t
22724 s,@LIBOBJS@,$LIBOBJS,;t t
22725 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22726 CEOF
22727
22728 _ACEOF
22729
22730 cat >>$CONFIG_STATUS <<\_ACEOF
22731 # Split the substitutions into bite-sized pieces for seds with
22732 # small command number limits, like on Digital OSF/1 and HP-UX.
22733 ac_max_sed_lines=48
22734 ac_sed_frag=1 # Number of current file.
22735 ac_beg=1 # First line for current file.
22736 ac_end=$ac_max_sed_lines # Line after last line for current file.
22737 ac_more_lines=:
22738 ac_sed_cmds=
22739 while $ac_more_lines; do
22740 if test $ac_beg -gt 1; then
22741 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22742 else
22743 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22744 fi
22745 if test ! -s $tmp/subs.frag; then
22746 ac_more_lines=false
22747 else
22748 # The purpose of the label and of the branching condition is to
22749 # speed up the sed processing (if there are no `@' at all, there
22750 # is no need to browse any of the substitutions).
22751 # These are the two extra sed commands mentioned above.
22752 (echo ':t
22753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22754 if test -z "$ac_sed_cmds"; then
22755 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22756 else
22757 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22758 fi
22759 ac_sed_frag=`expr $ac_sed_frag + 1`
22760 ac_beg=$ac_end
22761 ac_end=`expr $ac_end + $ac_max_sed_lines`
22762 fi
22763 done
22764 if test -z "$ac_sed_cmds"; then
22765 ac_sed_cmds=cat
22766 fi
22767 fi # test -n "$CONFIG_FILES"
22768
22769 _ACEOF
22770 cat >>$CONFIG_STATUS <<\_ACEOF
22771 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22773 case $ac_file in
22774 - | *:- | *:-:* ) # input from stdin
22775 cat >$tmp/stdin
22776 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22778 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22780 * ) ac_file_in=$ac_file.in ;;
22781 esac
22782
22783 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22784 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22786 X"$ac_file" : 'X\(//\)[^/]' \| \
22787 X"$ac_file" : 'X\(//\)$' \| \
22788 X"$ac_file" : 'X\(/\)' \| \
22789 . : '\(.\)' 2>/dev/null ||
22790 echo X"$ac_file" |
22791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22793 /^X\(\/\/\)$/{ s//\1/; q; }
22794 /^X\(\/\).*/{ s//\1/; q; }
22795 s/.*/./; q'`
22796 { if $as_mkdir_p; then
22797 mkdir -p "$ac_dir"
22798 else
22799 as_dir="$ac_dir"
22800 as_dirs=
22801 while test ! -d "$as_dir"; do
22802 as_dirs="$as_dir $as_dirs"
22803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22805 X"$as_dir" : 'X\(//\)[^/]' \| \
22806 X"$as_dir" : 'X\(//\)$' \| \
22807 X"$as_dir" : 'X\(/\)' \| \
22808 . : '\(.\)' 2>/dev/null ||
22809 echo X"$as_dir" |
22810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22812 /^X\(\/\/\)$/{ s//\1/; q; }
22813 /^X\(\/\).*/{ s//\1/; q; }
22814 s/.*/./; q'`
22815 done
22816 test ! -n "$as_dirs" || mkdir $as_dirs
22817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22818 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22819 { (exit 1); exit 1; }; }; }
22820
22821 ac_builddir=.
22822
22823 if test "$ac_dir" != .; then
22824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22825 # A "../" for each directory in $ac_dir_suffix.
22826 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22827 else
22828 ac_dir_suffix= ac_top_builddir=
22829 fi
22830
22831 case $srcdir in
22832 .) # No --srcdir option. We are building in place.
22833 ac_srcdir=.
22834 if test -z "$ac_top_builddir"; then
22835 ac_top_srcdir=.
22836 else
22837 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22838 fi ;;
22839 [\\/]* | ?:[\\/]* ) # Absolute path.
22840 ac_srcdir=$srcdir$ac_dir_suffix;
22841 ac_top_srcdir=$srcdir ;;
22842 *) # Relative path.
22843 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22844 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22845 esac
22846
22847 # Do not use `cd foo && pwd` to compute absolute paths, because
22848 # the directories may not exist.
22849 case `pwd` in
22850 .) ac_abs_builddir="$ac_dir";;
22851 *)
22852 case "$ac_dir" in
22853 .) ac_abs_builddir=`pwd`;;
22854 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22855 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22856 esac;;
22857 esac
22858 case $ac_abs_builddir in
22859 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22860 *)
22861 case ${ac_top_builddir}. in
22862 .) ac_abs_top_builddir=$ac_abs_builddir;;
22863 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22864 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22865 esac;;
22866 esac
22867 case $ac_abs_builddir in
22868 .) ac_abs_srcdir=$ac_srcdir;;
22869 *)
22870 case $ac_srcdir in
22871 .) ac_abs_srcdir=$ac_abs_builddir;;
22872 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22873 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22874 esac;;
22875 esac
22876 case $ac_abs_builddir in
22877 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22878 *)
22879 case $ac_top_srcdir in
22880 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22881 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22882 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22883 esac;;
22884 esac
22885
22886
22887 case $INSTALL in
22888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22889 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22890 esac
22891
22892 if test x"$ac_file" != x-; then
22893 { echo "$as_me:$LINENO: creating $ac_file" >&5
22894 echo "$as_me: creating $ac_file" >&6;}
22895 rm -f "$ac_file"
22896 fi
22897 # Let's still pretend it is `configure' which instantiates (i.e., don't
22898 # use $as_me), people would be surprised to read:
22899 # /* config.h. Generated by config.status. */
22900 if test x"$ac_file" = x-; then
22901 configure_input=
22902 else
22903 configure_input="$ac_file. "
22904 fi
22905 configure_input=$configure_input"Generated from `echo $ac_file_in |
22906 sed 's,.*/,,'` by configure."
22907
22908 # First look for the input files in the build tree, otherwise in the
22909 # src tree.
22910 ac_file_inputs=`IFS=:
22911 for f in $ac_file_in; do
22912 case $f in
22913 -) echo $tmp/stdin ;;
22914 [\\/$]*)
22915 # Absolute (can't be DOS-style, as IFS=:)
22916 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22917 echo "$as_me: error: cannot find input file: $f" >&2;}
22918 { (exit 1); exit 1; }; }
22919 echo "$f";;
22920 *) # Relative
22921 if test -f "$f"; then
22922 # Build tree
22923 echo "$f"
22924 elif test -f "$srcdir/$f"; then
22925 # Source tree
22926 echo "$srcdir/$f"
22927 else
22928 # /dev/null tree
22929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22930 echo "$as_me: error: cannot find input file: $f" >&2;}
22931 { (exit 1); exit 1; }; }
22932 fi;;
22933 esac
22934 done` || { (exit 1); exit 1; }
22935 _ACEOF
22936 cat >>$CONFIG_STATUS <<_ACEOF
22937 sed "$ac_vpsub
22938 $extrasub
22939 _ACEOF
22940 cat >>$CONFIG_STATUS <<\_ACEOF
22941 :t
22942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22943 s,@configure_input@,$configure_input,;t t
22944 s,@srcdir@,$ac_srcdir,;t t
22945 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22946 s,@top_srcdir@,$ac_top_srcdir,;t t
22947 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22948 s,@builddir@,$ac_builddir,;t t
22949 s,@abs_builddir@,$ac_abs_builddir,;t t
22950 s,@top_builddir@,$ac_top_builddir,;t t
22951 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22952 s,@INSTALL@,$ac_INSTALL,;t t
22953 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22954 rm -f $tmp/stdin
22955 if test x"$ac_file" != x-; then
22956 mv $tmp/out $ac_file
22957 else
22958 cat $tmp/out
22959 rm -f $tmp/out
22960 fi
22961
22962 done
22963 _ACEOF
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965
22966 #
22967 # CONFIG_HEADER section.
22968 #
22969
22970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22972 #
22973 # ac_d sets the value in "#define NAME VALUE" lines.
22974 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22975 ac_dB='[ ].*$,\1#\2'
22976 ac_dC=' '
22977 ac_dD=',;t'
22978 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22979 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22980 ac_uB='$,\1#\2define\3'
22981 ac_uC=' '
22982 ac_uD=',;t'
22983
22984 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22986 case $ac_file in
22987 - | *:- | *:-:* ) # input from stdin
22988 cat >$tmp/stdin
22989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22993 * ) ac_file_in=$ac_file.in ;;
22994 esac
22995
22996 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22997 echo "$as_me: creating $ac_file" >&6;}
22998
22999 # First look for the input files in the build tree, otherwise in the
23000 # src tree.
23001 ac_file_inputs=`IFS=:
23002 for f in $ac_file_in; do
23003 case $f in
23004 -) echo $tmp/stdin ;;
23005 [\\/$]*)
23006 # Absolute (can't be DOS-style, as IFS=:)
23007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23008 echo "$as_me: error: cannot find input file: $f" >&2;}
23009 { (exit 1); exit 1; }; }
23010 # Do quote $f, to prevent DOS paths from being IFS'd.
23011 echo "$f";;
23012 *) # Relative
23013 if test -f "$f"; then
23014 # Build tree
23015 echo "$f"
23016 elif test -f "$srcdir/$f"; then
23017 # Source tree
23018 echo "$srcdir/$f"
23019 else
23020 # /dev/null tree
23021 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23022 echo "$as_me: error: cannot find input file: $f" >&2;}
23023 { (exit 1); exit 1; }; }
23024 fi;;
23025 esac
23026 done` || { (exit 1); exit 1; }
23027 # Remove the trailing spaces.
23028 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23029
23030 _ACEOF
23031
23032 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23033 # `conftest.undefs', that substitutes the proper values into
23034 # config.h.in to produce config.h. The first handles `#define'
23035 # templates, and the second `#undef' templates.
23036 # And first: Protect against being on the right side of a sed subst in
23037 # config.status. Protect against being in an unquoted here document
23038 # in config.status.
23039 rm -f conftest.defines conftest.undefs
23040 # Using a here document instead of a string reduces the quoting nightmare.
23041 # Putting comments in sed scripts is not portable.
23042 #
23043 # `end' is used to avoid that the second main sed command (meant for
23044 # 0-ary CPP macros) applies to n-ary macro definitions.
23045 # See the Autoconf documentation for `clear'.
23046 cat >confdef2sed.sed <<\_ACEOF
23047 s/[\\&,]/\\&/g
23048 s,[\\$`],\\&,g
23049 t clear
23050 : clear
23051 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23052 t end
23053 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23054 : end
23055 _ACEOF
23056 # If some macros were called several times there might be several times
23057 # the same #defines, which is useless. Nevertheless, we may not want to
23058 # sort them, since we want the *last* AC-DEFINE to be honored.
23059 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23060 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23061 rm -f confdef2sed.sed
23062
23063 # This sed command replaces #undef with comments. This is necessary, for
23064 # example, in the case of _POSIX_SOURCE, which is predefined and required
23065 # on some systems where configure will not decide to define it.
23066 cat >>conftest.undefs <<\_ACEOF
23067 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23068 _ACEOF
23069
23070 # Break up conftest.defines because some shells have a limit on the size
23071 # of here documents, and old seds have small limits too (100 cmds).
23072 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23073 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23074 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23075 echo ' :' >>$CONFIG_STATUS
23076 rm -f conftest.tail
23077 while grep . conftest.defines >/dev/null
23078 do
23079 # Write a limited-size here document to $tmp/defines.sed.
23080 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23081 # Speed up: don't consider the non `#define' lines.
23082 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23083 # Work around the forget-to-reset-the-flag bug.
23084 echo 't clr' >>$CONFIG_STATUS
23085 echo ': clr' >>$CONFIG_STATUS
23086 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23087 echo 'CEOF
23088 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23089 rm -f $tmp/in
23090 mv $tmp/out $tmp/in
23091 ' >>$CONFIG_STATUS
23092 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23093 rm -f conftest.defines
23094 mv conftest.tail conftest.defines
23095 done
23096 rm -f conftest.defines
23097 echo ' fi # grep' >>$CONFIG_STATUS
23098 echo >>$CONFIG_STATUS
23099
23100 # Break up conftest.undefs because some shells have a limit on the size
23101 # of here documents, and old seds have small limits too (100 cmds).
23102 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23103 rm -f conftest.tail
23104 while grep . conftest.undefs >/dev/null
23105 do
23106 # Write a limited-size here document to $tmp/undefs.sed.
23107 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23108 # Speed up: don't consider the non `#undef'
23109 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23110 # Work around the forget-to-reset-the-flag bug.
23111 echo 't clr' >>$CONFIG_STATUS
23112 echo ': clr' >>$CONFIG_STATUS
23113 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23114 echo 'CEOF
23115 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23116 rm -f $tmp/in
23117 mv $tmp/out $tmp/in
23118 ' >>$CONFIG_STATUS
23119 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23120 rm -f conftest.undefs
23121 mv conftest.tail conftest.undefs
23122 done
23123 rm -f conftest.undefs
23124
23125 cat >>$CONFIG_STATUS <<\_ACEOF
23126 # Let's still pretend it is `configure' which instantiates (i.e., don't
23127 # use $as_me), people would be surprised to read:
23128 # /* config.h. Generated by config.status. */
23129 if test x"$ac_file" = x-; then
23130 echo "/* Generated by configure. */" >$tmp/config.h
23131 else
23132 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23133 fi
23134 cat $tmp/in >>$tmp/config.h
23135 rm -f $tmp/in
23136 if test x"$ac_file" != x-; then
23137 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23138 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23139 echo "$as_me: $ac_file is unchanged" >&6;}
23140 else
23141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23143 X"$ac_file" : 'X\(//\)[^/]' \| \
23144 X"$ac_file" : 'X\(//\)$' \| \
23145 X"$ac_file" : 'X\(/\)' \| \
23146 . : '\(.\)' 2>/dev/null ||
23147 echo X"$ac_file" |
23148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23150 /^X\(\/\/\)$/{ s//\1/; q; }
23151 /^X\(\/\).*/{ s//\1/; q; }
23152 s/.*/./; q'`
23153 { if $as_mkdir_p; then
23154 mkdir -p "$ac_dir"
23155 else
23156 as_dir="$ac_dir"
23157 as_dirs=
23158 while test ! -d "$as_dir"; do
23159 as_dirs="$as_dir $as_dirs"
23160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23161 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23162 X"$as_dir" : 'X\(//\)[^/]' \| \
23163 X"$as_dir" : 'X\(//\)$' \| \
23164 X"$as_dir" : 'X\(/\)' \| \
23165 . : '\(.\)' 2>/dev/null ||
23166 echo X"$as_dir" |
23167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23169 /^X\(\/\/\)$/{ s//\1/; q; }
23170 /^X\(\/\).*/{ s//\1/; q; }
23171 s/.*/./; q'`
23172 done
23173 test ! -n "$as_dirs" || mkdir $as_dirs
23174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23175 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23176 { (exit 1); exit 1; }; }; }
23177
23178 rm -f $ac_file
23179 mv $tmp/config.h $ac_file
23180 fi
23181 else
23182 cat $tmp/config.h
23183 rm -f $tmp/config.h
23184 fi
23185 # Compute $ac_file's index in $config_headers.
23186 _am_stamp_count=1
23187 for _am_header in $config_headers :; do
23188 case $_am_header in
23189 $ac_file | $ac_file:* )
23190 break ;;
23191 * )
23192 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23193 esac
23194 done
23195 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23196 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23197 X$ac_file : 'X\(//\)[^/]' \| \
23198 X$ac_file : 'X\(//\)$' \| \
23199 X$ac_file : 'X\(/\)' \| \
23200 . : '\(.\)' 2>/dev/null ||
23201 echo X$ac_file |
23202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23204 /^X\(\/\/\)$/{ s//\1/; q; }
23205 /^X\(\/\).*/{ s//\1/; q; }
23206 s/.*/./; q'`/stamp-h$_am_stamp_count
23207 done
23208 _ACEOF
23209 cat >>$CONFIG_STATUS <<\_ACEOF
23210
23211 #
23212 # CONFIG_COMMANDS section.
23213 #
23214 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23215 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23216 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23217 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219 X"$ac_dest" : 'X\(//\)[^/]' \| \
23220 X"$ac_dest" : 'X\(//\)$' \| \
23221 X"$ac_dest" : 'X\(/\)' \| \
23222 . : '\(.\)' 2>/dev/null ||
23223 echo X"$ac_dest" |
23224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23226 /^X\(\/\/\)$/{ s//\1/; q; }
23227 /^X\(\/\).*/{ s//\1/; q; }
23228 s/.*/./; q'`
23229 { if $as_mkdir_p; then
23230 mkdir -p "$ac_dir"
23231 else
23232 as_dir="$ac_dir"
23233 as_dirs=
23234 while test ! -d "$as_dir"; do
23235 as_dirs="$as_dir $as_dirs"
23236 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23238 X"$as_dir" : 'X\(//\)[^/]' \| \
23239 X"$as_dir" : 'X\(//\)$' \| \
23240 X"$as_dir" : 'X\(/\)' \| \
23241 . : '\(.\)' 2>/dev/null ||
23242 echo X"$as_dir" |
23243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23245 /^X\(\/\/\)$/{ s//\1/; q; }
23246 /^X\(\/\).*/{ s//\1/; q; }
23247 s/.*/./; q'`
23248 done
23249 test ! -n "$as_dirs" || mkdir $as_dirs
23250 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23252 { (exit 1); exit 1; }; }; }
23253
23254 ac_builddir=.
23255
23256 if test "$ac_dir" != .; then
23257 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23258 # A "../" for each directory in $ac_dir_suffix.
23259 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23260 else
23261 ac_dir_suffix= ac_top_builddir=
23262 fi
23263
23264 case $srcdir in
23265 .) # No --srcdir option. We are building in place.
23266 ac_srcdir=.
23267 if test -z "$ac_top_builddir"; then
23268 ac_top_srcdir=.
23269 else
23270 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23271 fi ;;
23272 [\\/]* | ?:[\\/]* ) # Absolute path.
23273 ac_srcdir=$srcdir$ac_dir_suffix;
23274 ac_top_srcdir=$srcdir ;;
23275 *) # Relative path.
23276 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23277 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23278 esac
23279
23280 # Do not use `cd foo && pwd` to compute absolute paths, because
23281 # the directories may not exist.
23282 case `pwd` in
23283 .) ac_abs_builddir="$ac_dir";;
23284 *)
23285 case "$ac_dir" in
23286 .) ac_abs_builddir=`pwd`;;
23287 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23288 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23289 esac;;
23290 esac
23291 case $ac_abs_builddir in
23292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23293 *)
23294 case ${ac_top_builddir}. in
23295 .) ac_abs_top_builddir=$ac_abs_builddir;;
23296 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23297 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23298 esac;;
23299 esac
23300 case $ac_abs_builddir in
23301 .) ac_abs_srcdir=$ac_srcdir;;
23302 *)
23303 case $ac_srcdir in
23304 .) ac_abs_srcdir=$ac_abs_builddir;;
23305 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23306 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23307 esac;;
23308 esac
23309 case $ac_abs_builddir in
23310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23311 *)
23312 case $ac_top_srcdir in
23313 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23314 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23315 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23316 esac;;
23317 esac
23318
23319
23320 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23321 echo "$as_me: executing $ac_dest commands" >&6;}
23322 case $ac_dest in
23323 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23324 # Strip MF so we end up with the name of the file.
23325 mf=`echo "$mf" | sed -e 's/:.*$//'`
23326 # Check whether this is an Automake generated Makefile or not.
23327 # We used to match only the files named `Makefile.in', but
23328 # some people rename them; so instead we look at the file content.
23329 # Grep'ing the first line is not enough: some people post-process
23330 # each Makefile.in and add a new line on top of each file to say so.
23331 # So let's grep whole file.
23332 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23333 dirpart=`(dirname "$mf") 2>/dev/null ||
23334 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23335 X"$mf" : 'X\(//\)[^/]' \| \
23336 X"$mf" : 'X\(//\)$' \| \
23337 X"$mf" : 'X\(/\)' \| \
23338 . : '\(.\)' 2>/dev/null ||
23339 echo X"$mf" |
23340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23342 /^X\(\/\/\)$/{ s//\1/; q; }
23343 /^X\(\/\).*/{ s//\1/; q; }
23344 s/.*/./; q'`
23345 else
23346 continue
23347 fi
23348 # Extract the definition of DEPDIR, am__include, and am__quote
23349 # from the Makefile without running `make'.
23350 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23351 test -z "$DEPDIR" && continue
23352 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23353 test -z "am__include" && continue
23354 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23355 # When using ansi2knr, U may be empty or an underscore; expand it
23356 U=`sed -n 's/^U = //p' < "$mf"`
23357 # Find all dependency output files, they are included files with
23358 # $(DEPDIR) in their names. We invoke sed twice because it is the
23359 # simplest approach to changing $(DEPDIR) to its actual value in the
23360 # expansion.
23361 for file in `sed -n "
23362 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23363 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23364 # Make sure the directory exists.
23365 test -f "$dirpart/$file" && continue
23366 fdir=`(dirname "$file") 2>/dev/null ||
23367 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23368 X"$file" : 'X\(//\)[^/]' \| \
23369 X"$file" : 'X\(//\)$' \| \
23370 X"$file" : 'X\(/\)' \| \
23371 . : '\(.\)' 2>/dev/null ||
23372 echo X"$file" |
23373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23375 /^X\(\/\/\)$/{ s//\1/; q; }
23376 /^X\(\/\).*/{ s//\1/; q; }
23377 s/.*/./; q'`
23378 { if $as_mkdir_p; then
23379 mkdir -p $dirpart/$fdir
23380 else
23381 as_dir=$dirpart/$fdir
23382 as_dirs=
23383 while test ! -d "$as_dir"; do
23384 as_dirs="$as_dir $as_dirs"
23385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23387 X"$as_dir" : 'X\(//\)[^/]' \| \
23388 X"$as_dir" : 'X\(//\)$' \| \
23389 X"$as_dir" : 'X\(/\)' \| \
23390 . : '\(.\)' 2>/dev/null ||
23391 echo X"$as_dir" |
23392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23394 /^X\(\/\/\)$/{ s//\1/; q; }
23395 /^X\(\/\).*/{ s//\1/; q; }
23396 s/.*/./; q'`
23397 done
23398 test ! -n "$as_dirs" || mkdir $as_dirs
23399 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23400 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23401 { (exit 1); exit 1; }; }; }
23402
23403 # echo "creating $dirpart/$file"
23404 echo '# dummy' > "$dirpart/$file"
23405 done
23406 done
23407 ;;
23408 esac
23409 done
23410 _ACEOF
23411
23412 cat >>$CONFIG_STATUS <<\_ACEOF
23413
23414 { (exit 0); exit 0; }
23415 _ACEOF
23416 chmod +x $CONFIG_STATUS
23417 ac_clean_files=$ac_clean_files_save
23418
23419
23420 # configure is writing to config.log, and then calls config.status.
23421 # config.status does its own redirection, appending to config.log.
23422 # Unfortunately, on DOS this fails, as config.log is still kept open
23423 # by configure, so config.status won't be able to write to it; its
23424 # output is simply discarded. So we exec the FD to /dev/null,
23425 # effectively closing config.log, so it can be properly (re)opened and
23426 # appended to by config.status. When coming back to configure, we
23427 # need to make the FD available again.
23428 if test "$no_create" != yes; then
23429 ac_cs_success=:
23430 ac_config_status_args=
23431 test "$silent" = yes &&
23432 ac_config_status_args="$ac_config_status_args --quiet"
23433 exec 5>/dev/null
23434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23435 exec 5>>config.log
23436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23437 # would make configure fail if this is the last instruction.
23438 $ac_cs_success || { (exit 1); exit 1; }
23439 fi
23440
23441
23442
23443
23444 ################################ END ########################################
23445
23446
23447
23448 # Toys. Gota lovem.
23449 #echo $ECHO_N checking java.library.path " "
23450 #JAVA_LIBRARY_PATH=`java conftest "java.library.path"`
23451 #echo $JAVA_LIBRARY_PATH
23452 #echo $ECHO_N checking java.class.version " "
23453 #JAVA_CLASS_VERSION=`java conftest "java.class.version"`
23454 #echo $JAVA_CLASS_VERSION