Imported upstream version 0.59.3
[hcoop/debian/courier-authlib.git] / md5 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmd5 1.21.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='libmd5'
425 PACKAGE_TARNAME='libmd5'
426 PACKAGE_VERSION='1.21'
427 PACKAGE_STRING='libmd5 1.21'
428 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
429
430 ac_unique_file="hmac.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar HMACC_TRUE HMACC_FALSE LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
957 \`configure' configures libmd5 1.21 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979 cat <<_ACEOF
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006 _ACEOF
1007
1008 cat <<\_ACEOF
1009
1010 Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015 System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022 case $ac_init_help in
1023 short | recursive ) echo "Configuration of libmd5 1.21:";;
1024 esac
1025 cat <<\_ACEOF
1026
1027 Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030 --disable-dependency-tracking speeds up one-time build
1031 --enable-dependency-tracking do not reject slow dependency extractors
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-libtool-lock avoid locking (might break parallel builds)
1039
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1049 ( default is 'unsigned')
1050
1051 Some influential environment variables:
1052 CC C compiler command
1053 CFLAGS C compiler flags
1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1055 nonstandard directory <lib dir>
1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057 headers in a nonstandard directory <include dir>
1058 CPP C preprocessor
1059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
1061 CXXCPP C++ preprocessor
1062 F77 Fortran 77 compiler command
1063 FFLAGS Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 Report bugs to <courier-users@lists.sourceforge.net>.
1069 _ACEOF
1070 fi
1071
1072 if test "$ac_init_help" = "recursive"; then
1073 # If there are subdirs, report their specific --help.
1074 ac_popdir=`pwd`
1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076 test -d $ac_dir || continue
1077 ac_builddir=.
1078
1079 if test "$ac_dir" != .; then
1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081 # A "../" for each directory in $ac_dir_suffix.
1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084 ac_dir_suffix= ac_top_builddir=
1085 fi
1086
1087 case $srcdir in
1088 .) # No --srcdir option. We are building in place.
1089 ac_srcdir=.
1090 if test -z "$ac_top_builddir"; then
1091 ac_top_srcdir=.
1092 else
1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094 fi ;;
1095 [\\/]* | ?:[\\/]* ) # Absolute path.
1096 ac_srcdir=$srcdir$ac_dir_suffix;
1097 ac_top_srcdir=$srcdir ;;
1098 *) # Relative path.
1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1107 *)
1108 case "$ac_dir" in
1109 .) ac_abs_builddir=`pwd`;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112 esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *)
1117 case ${ac_top_builddir}. in
1118 .) ac_abs_top_builddir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121 esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1125 *)
1126 case $ac_srcdir in
1127 .) ac_abs_srcdir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130 esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *)
1135 case $ac_top_srcdir in
1136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139 esac;;
1140 esac
1141
1142 cd $ac_dir
1143 # Check for guested configure; otherwise get Cygnus style configure.
1144 if test -f $ac_srcdir/configure.gnu; then
1145 echo
1146 $SHELL $ac_srcdir/configure.gnu --help=recursive
1147 elif test -f $ac_srcdir/configure; then
1148 echo
1149 $SHELL $ac_srcdir/configure --help=recursive
1150 elif test -f $ac_srcdir/configure.ac ||
1151 test -f $ac_srcdir/configure.in; then
1152 echo
1153 $ac_configure --help
1154 else
1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156 fi
1157 cd $ac_popdir
1158 done
1159 fi
1160
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163 cat <<\_ACEOF
1164 libmd5 configure 1.21
1165 generated by GNU Autoconf 2.59
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 libmd5 $as_me 1.21, 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
1507
1508
1509
1510
1511
1512
1513
1514
1515 >confdefs.h # Kill PACKAGE_ macros
1516
1517
1518 ac_config_headers="$ac_config_headers config.h"
1519
1520 am__api_version="1.9"
1521 ac_aux_dir=
1522 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1523 if test -f $ac_dir/install-sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install-sh -c"
1526 break
1527 elif test -f $ac_dir/install.sh; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/install.sh -c"
1530 break
1531 elif test -f $ac_dir/shtool; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/shtool install -c"
1534 break
1535 fi
1536 done
1537 if test -z "$ac_aux_dir"; then
1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1539 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1540 { (exit 1); exit 1; }; }
1541 fi
1542 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545
1546 # Find a good install program. We prefer a C program (faster),
1547 # so one script is as good as another. But avoid the broken or
1548 # incompatible versions:
1549 # SysV /etc/install, /usr/sbin/install
1550 # SunOS /usr/etc/install
1551 # IRIX /sbin/install
1552 # AIX /bin/install
1553 # AmigaOS /C/install, which installs bootblocks on floppy discs
1554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1557 # OS/2's system install, which has a completely different semantic
1558 # ./install, which can be erroneously created by make from ./install.sh.
1559 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1560 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1561 if test -z "$INSTALL"; then
1562 if test "${ac_cv_path_install+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 # Account for people who put trailing slashes in PATH elements.
1571 case $as_dir/ in
1572 ./ | .// | /cC/* | \
1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575 /usr/ucb/* ) ;;
1576 *)
1577 # OSF1 and SCO ODT 3.0 have their own names for install.
1578 # Don't use installbsd from OSF since it installs stuff as root
1579 # by default.
1580 for ac_prog in ginstall scoinst install; do
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583 if test $ac_prog = install &&
1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 :
1587 elif test $ac_prog = install &&
1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589 # program-specific install script used by HP pwplus--don't use.
1590 :
1591 else
1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593 break 3
1594 fi
1595 fi
1596 done
1597 done
1598 ;;
1599 esac
1600 done
1601
1602
1603 fi
1604 if test "${ac_cv_path_install+set}" = set; then
1605 INSTALL=$ac_cv_path_install
1606 else
1607 # As a last resort, use the slow shell script. We don't cache a
1608 # path for INSTALL within a source directory, because that will
1609 # break other packages using the cache if that directory is
1610 # removed, or if the path is relative.
1611 INSTALL=$ac_install_sh
1612 fi
1613 fi
1614 echo "$as_me:$LINENO: result: $INSTALL" >&5
1615 echo "${ECHO_T}$INSTALL" >&6
1616
1617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618 # It thinks the first close brace ends the variable substitution.
1619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627 # Just in case
1628 sleep 1
1629 echo timestamp > conftest.file
1630 # Do `set' in a subshell so we don't clobber the current shell's
1631 # arguments. Must try -L first in case configure is actually a
1632 # symlink; some systems play weird games with the mod time of symlinks
1633 # (eg FreeBSD returns the mod time of the symlink's containing
1634 # directory).
1635 if (
1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637 if test "$*" = "X"; then
1638 # -L didn't work.
1639 set X `ls -t $srcdir/configure conftest.file`
1640 fi
1641 rm -f conftest.file
1642 if test "$*" != "X $srcdir/configure conftest.file" \
1643 && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645 # If neither matched, then we have a broken ls. This can happen
1646 # if, for instance, CONFIG_SHELL is bash and it inherits a
1647 # broken ls alias from the environment. This has actually
1648 # happened. Such a system could not be considered "sane".
1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650 alias in your environment" >&5
1651 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652 alias in your environment" >&2;}
1653 { (exit 1); exit 1; }; }
1654 fi
1655
1656 test "$2" = conftest.file
1657 )
1658 then
1659 # Ok.
1660 :
1661 else
1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663 Check your system clock" >&5
1664 echo "$as_me: error: newly created file is older than distributed files!
1665 Check your system clock" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1670 test "$program_prefix" != NONE &&
1671 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672 # Use a double $ so make ignores it.
1673 test "$program_suffix" != NONE &&
1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675 # Double any \ or $. echo might interpret backslashes.
1676 # By default was `s,x,x', remove it if useless.
1677 cat <<\_ACEOF >conftest.sed
1678 s/[\\$]/&&/g;s/;s,x,x,$//
1679 _ACEOF
1680 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681 rm conftest.sed
1682
1683 # expand $ac_aux_dir to an absolute path
1684 am_aux_dir=`cd $ac_aux_dir && pwd`
1685
1686 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1687 # Use eval to expand $SHELL
1688 if eval "$MISSING --run true"; then
1689 am_missing_run="$MISSING --run "
1690 else
1691 am_missing_run=
1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1693 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694 fi
1695
1696 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1697 # We used to keeping the `.' as first argument, in order to
1698 # allow $(mkdir_p) to be used without argument. As in
1699 # $(mkdir_p) $(somedir)
1700 # where $(somedir) is conditionally defined. However this is wrong
1701 # for two reasons:
1702 # 1. if the package is installed by a user who cannot write `.'
1703 # make install will fail,
1704 # 2. the above comment should most certainly read
1705 # $(mkdir_p) $(DESTDIR)$(somedir)
1706 # so it does not work when $(somedir) is undefined and
1707 # $(DESTDIR) is not.
1708 # To support the latter case, we have to write
1709 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1710 # so the `.' trick is pointless.
1711 mkdir_p='mkdir -p --'
1712 else
1713 # On NextStep and OpenStep, the `mkdir' command does not
1714 # recognize any option. It will interpret all options as
1715 # directories to create, and then abort because `.' already
1716 # exists.
1717 for d in ./-p ./--version;
1718 do
1719 test -d $d && rmdir $d
1720 done
1721 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1722 if test -f "$ac_aux_dir/mkinstalldirs"; then
1723 mkdir_p='$(mkinstalldirs)'
1724 else
1725 mkdir_p='$(install_sh) -d'
1726 fi
1727 fi
1728
1729 for ac_prog in gawk mawk nawk awk
1730 do
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_AWK+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738 if test -n "$AWK"; then
1739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1740 else
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742 for as_dir in $PATH
1743 do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_AWK="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752 done
1753 done
1754
1755 fi
1756 fi
1757 AWK=$ac_cv_prog_AWK
1758 if test -n "$AWK"; then
1759 echo "$as_me:$LINENO: result: $AWK" >&5
1760 echo "${ECHO_T}$AWK" >&6
1761 else
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1764 fi
1765
1766 test -n "$AWK" && break
1767 done
1768
1769 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1771 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1772 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 cat >conftest.make <<\_ACEOF
1776 all:
1777 @echo 'ac_maketemp="$(MAKE)"'
1778 _ACEOF
1779 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1780 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1781 if test -n "$ac_maketemp"; then
1782 eval ac_cv_prog_make_${ac_make}_set=yes
1783 else
1784 eval ac_cv_prog_make_${ac_make}_set=no
1785 fi
1786 rm -f conftest.make
1787 fi
1788 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 SET_MAKE=
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1795 SET_MAKE="MAKE=${MAKE-make}"
1796 fi
1797
1798 rm -rf .tst 2>/dev/null
1799 mkdir .tst 2>/dev/null
1800 if test -d .tst; then
1801 am__leading_dot=.
1802 else
1803 am__leading_dot=_
1804 fi
1805 rmdir .tst 2>/dev/null
1806
1807 # test to see if srcdir already configured
1808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1809 test -f $srcdir/config.status; then
1810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1812 { (exit 1); exit 1; }; }
1813 fi
1814
1815 # test whether we have cygpath
1816 if test -z "$CYGPATH_W"; then
1817 if (cygpath --version) >/dev/null 2>/dev/null; then
1818 CYGPATH_W='cygpath -w'
1819 else
1820 CYGPATH_W=echo
1821 fi
1822 fi
1823
1824
1825 # Define the identity of the package.
1826 PACKAGE='libmd5'
1827 VERSION='1.21'
1828
1829
1830 # Some tools Automake needs.
1831
1832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1833
1834
1835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1836
1837
1838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1839
1840
1841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1842
1843
1844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1845
1846 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1847
1848 # Installed binaries are usually stripped using `strip' when the user
1849 # run `make install-strip'. However `strip' might not be the right
1850 # tool to use in cross-compilation environments, therefore Automake
1851 # will honor the `STRIP' environment variable to overrule this program.
1852 if test "$cross_compiling" != no; then
1853 if test -n "$ac_tool_prefix"; then
1854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1855 set dummy ${ac_tool_prefix}strip; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_STRIP+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$STRIP"; then
1862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 STRIP=$ac_cv_prog_STRIP
1881 if test -n "$STRIP"; then
1882 echo "$as_me:$LINENO: result: $STRIP" >&5
1883 echo "${ECHO_T}$STRIP" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889 fi
1890 if test -z "$ac_cv_prog_STRIP"; then
1891 ac_ct_STRIP=$STRIP
1892 # Extract the first word of "strip", so it can be a program name with args.
1893 set dummy strip; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_STRIP"; then
1900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_STRIP="strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1912 fi
1913 done
1914 done
1915
1916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1917 fi
1918 fi
1919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1920 if test -n "$ac_ct_STRIP"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1922 echo "${ECHO_T}$ac_ct_STRIP" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926 fi
1927
1928 STRIP=$ac_ct_STRIP
1929 else
1930 STRIP="$ac_cv_prog_STRIP"
1931 fi
1932
1933 fi
1934 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1935
1936 # We need awk for the "check" target. The system "awk" is bad on
1937 # some platforms.
1938 # Always define AMTAR for backward compatibility.
1939
1940 AMTAR=${AMTAR-"${am_missing_run}tar"}
1941
1942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1943
1944
1945
1946
1947
1948
1949
1950
1951 if test -d ${srcdir}/../libhmac; then
1952 HMACC_TRUE=
1953 HMACC_FALSE='#'
1954 else
1955 HMACC_TRUE='#'
1956 HMACC_FALSE=
1957 fi
1958
1959
1960 for ac_prog in gawk mawk nawk awk
1961 do
1962 # Extract the first word of "$ac_prog", so it can be a program name with args.
1963 set dummy $ac_prog; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_AWK+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969 if test -n "$AWK"; then
1970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 ac_cv_prog_AWK="$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
1982 fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 AWK=$ac_cv_prog_AWK
1989 if test -n "$AWK"; then
1990 echo "$as_me:$LINENO: result: $AWK" >&5
1991 echo "${ECHO_T}$AWK" >&6
1992 else
1993 echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997 test -n "$AWK" && break
1998 done
1999
2000 # Find a good install program. We prefer a C program (faster),
2001 # so one script is as good as another. But avoid the broken or
2002 # incompatible versions:
2003 # SysV /etc/install, /usr/sbin/install
2004 # SunOS /usr/etc/install
2005 # IRIX /sbin/install
2006 # AIX /bin/install
2007 # AmigaOS /C/install, which installs bootblocks on floppy discs
2008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2011 # OS/2's system install, which has a completely different semantic
2012 # ./install, which can be erroneously created by make from ./install.sh.
2013 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2015 if test -z "$INSTALL"; then
2016 if test "${ac_cv_path_install+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 # Account for people who put trailing slashes in PATH elements.
2025 case $as_dir/ in
2026 ./ | .// | /cC/* | \
2027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2029 /usr/ucb/* ) ;;
2030 *)
2031 # OSF1 and SCO ODT 3.0 have their own names for install.
2032 # Don't use installbsd from OSF since it installs stuff as root
2033 # by default.
2034 for ac_prog in ginstall scoinst install; do
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2037 if test $ac_prog = install &&
2038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2039 # AIX install. It has an incompatible calling convention.
2040 :
2041 elif test $ac_prog = install &&
2042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # program-specific install script used by HP pwplus--don't use.
2044 :
2045 else
2046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2047 break 3
2048 fi
2049 fi
2050 done
2051 done
2052 ;;
2053 esac
2054 done
2055
2056
2057 fi
2058 if test "${ac_cv_path_install+set}" = set; then
2059 INSTALL=$ac_cv_path_install
2060 else
2061 # As a last resort, use the slow shell script. We don't cache a
2062 # path for INSTALL within a source directory, because that will
2063 # break other packages using the cache if that directory is
2064 # removed, or if the path is relative.
2065 INSTALL=$ac_install_sh
2066 fi
2067 fi
2068 echo "$as_me:$LINENO: result: $INSTALL" >&5
2069 echo "${ECHO_T}$INSTALL" >&6
2070
2071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2072 # It thinks the first close brace ends the variable substitution.
2073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074
2075 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076
2077 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078
2079 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2080 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2081 LN_S=$as_ln_s
2082 if test "$LN_S" = "ln -s"; then
2083 echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6
2085 else
2086 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2087 echo "${ECHO_T}no, using $LN_S" >&6
2088 fi
2089
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124 echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2126 else
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131 fi
2132 if test -z "$ac_cv_prog_CC"; then
2133 ac_ct_CC=$CC
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2154 fi
2155 done
2156 done
2157
2158 fi
2159 fi
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6
2164 else
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2167 fi
2168
2169 CC=$ac_ct_CC
2170 else
2171 CC="$ac_cv_prog_CC"
2172 fi
2173
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_CC="${ac_tool_prefix}cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197 done
2198 done
2199
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2206 else
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211 fi
2212 if test -z "$ac_cv_prog_CC"; then
2213 ac_ct_CC=$CC
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$ac_ct_CC"; then
2222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_ac_ct_CC="cc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235 done
2236 done
2237
2238 fi
2239 fi
2240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 echo "${ECHO_T}$ac_ct_CC" >&6
2244 else
2245 echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2247 fi
2248
2249 CC=$ac_ct_CC
2250 else
2251 CC="$ac_cv_prog_CC"
2252 fi
2253
2254 fi
2255 if test -z "$CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 else
2266 ac_prog_rejected=no
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275 ac_prog_rejected=yes
2276 continue
2277 fi
2278 ac_cv_prog_CC="cc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2284
2285 if test $ac_prog_rejected = yes; then
2286 # We found a bogon in the path, so make sure we never use it.
2287 set dummy $ac_cv_prog_CC
2288 shift
2289 if test $# != 0; then
2290 # We chose a different compiler from the bogus one.
2291 # However, it has the same basename, so the bogon will be chosen
2292 # first if we set CC to just the basename; use the full file name.
2293 shift
2294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2295 fi
2296 fi
2297 fi
2298 fi
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308 fi
2309 if test -z "$CC"; then
2310 if test -n "$ac_tool_prefix"; then
2311 for ac_prog in cl
2312 do
2313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 CC=$ac_cv_prog_CC
2340 if test -n "$CC"; then
2341 echo "$as_me:$LINENO: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2343 else
2344 echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348 test -n "$CC" && break
2349 done
2350 fi
2351 if test -z "$CC"; then
2352 ac_ct_CC=$CC
2353 for ac_prog in cl
2354 do
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy $ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CC="$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376 done
2377 done
2378
2379 fi
2380 fi
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6
2385 else
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390 test -n "$ac_ct_CC" && break
2391 done
2392
2393 CC=$ac_ct_CC
2394 fi
2395
2396 fi
2397
2398
2399 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&2;}
2403 { (exit 1); exit 1; }; }
2404
2405 # Provide some information about the compiler.
2406 echo "$as_me:$LINENO:" \
2407 "checking for C compiler version" >&5
2408 ac_compiler=`set X $ac_compile; echo $2`
2409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2410 (eval $ac_compiler --version </dev/null >&5) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2415 (eval $ac_compiler -v </dev/null >&5) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }
2419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2420 (eval $ac_compiler -V </dev/null >&5) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }
2424
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h. */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431
2432 int
2433 main ()
2434 {
2435
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 ac_clean_files_save=$ac_clean_files
2441 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2442 # Try to create an executable without -o first, disregard a.out.
2443 # It will help us diagnose broken compilers, and finding out an intuition
2444 # of exeext.
2445 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2446 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2447 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2449 (eval $ac_link_default) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # Find the output, starting from the most likely. This scheme is
2454 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # resort.
2456
2457 # Be careful to initialize this variable, since it used to be cached.
2458 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2459 ac_cv_exeext=
2460 # b.out is created by i960 compilers.
2461 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2462 do
2463 test -f "$ac_file" || continue
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2466 ;;
2467 conftest.$ac_ext )
2468 # This is the source file.
2469 ;;
2470 [ab].out )
2471 # We found the default executable, but exeext='' is most
2472 # certainly right.
2473 break;;
2474 *.* )
2475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 # FIXME: I believe we export ac_cv_exeext for Libtool,
2477 # but it would be cool to find out if it's true. Does anybody
2478 # maintain Libtool? --akim.
2479 export ac_cv_exeext
2480 break;;
2481 * )
2482 break;;
2483 esac
2484 done
2485 else
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: C compiler cannot create executables
2492 See \`config.log' for more details." >&2;}
2493 { (exit 77); exit 77; }; }
2494 fi
2495
2496 ac_exeext=$ac_cv_exeext
2497 echo "$as_me:$LINENO: result: $ac_file" >&5
2498 echo "${ECHO_T}$ac_file" >&6
2499
2500 # Check the compiler produces executables we can run. If not, either
2501 # the compiler is broken, or we cross compile.
2502 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2503 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505 # If not cross compiling, check that we can run a simple program.
2506 if test "$cross_compiling" != yes; then
2507 if { ac_try='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 cross_compiling=no
2514 else
2515 if test "$cross_compiling" = maybe; then
2516 cross_compiling=yes
2517 else
2518 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2519 If you meant to cross compile, use \`--host'.
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525 fi
2526 fi
2527 fi
2528 echo "$as_me:$LINENO: result: yes" >&5
2529 echo "${ECHO_T}yes" >&6
2530
2531 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2532 ac_clean_files=$ac_clean_files_save
2533 # Check the compiler produces executables we can run. If not, either
2534 # the compiler is broken, or we cross compile.
2535 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2536 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2537 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2538 echo "${ECHO_T}$cross_compiling" >&6
2539
2540 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2541 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2543 (eval $ac_link) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; then
2547 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2548 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2549 # work properly (i.e., refer to `conftest.exe'), while it won't with
2550 # `rm'.
2551 for ac_file in conftest.exe conftest conftest.*; do
2552 test -f "$ac_file" || continue
2553 case $ac_file in
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556 export ac_cv_exeext
2557 break;;
2558 * ) break;;
2559 esac
2560 done
2561 else
2562 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }
2567 fi
2568
2569 rm -f conftest$ac_cv_exeext
2570 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2571 echo "${ECHO_T}$ac_cv_exeext" >&6
2572
2573 rm -f conftest.$ac_ext
2574 EXEEXT=$ac_cv_exeext
2575 ac_exeext=$EXEEXT
2576 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2577 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2578 if test "${ac_cv_objext+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587
2588 int
2589 main ()
2590 {
2591
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.o conftest.obj
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
2602 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2603 case $ac_file in
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2606 break;;
2607 esac
2608 done
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }
2618 fi
2619
2620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2621 fi
2622 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2623 echo "${ECHO_T}$ac_cv_objext" >&6
2624 OBJEXT=$ac_cv_objext
2625 ac_objext=$OBJEXT
2626 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h. */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2637
2638 int
2639 main ()
2640 {
2641 #ifndef __GNUC__
2642 choke me
2643 #endif
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 rm -f conftest.$ac_objext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651 (eval $ac_compile) 2>conftest.er1
2652 ac_status=$?
2653 grep -v '^ *+' conftest.er1 >conftest.err
2654 rm -f conftest.er1
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -z "$ac_c_werror_flag"
2659 || test ! -s conftest.err'
2660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; } &&
2665 { ac_try='test -s conftest.$ac_objext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_compiler_gnu=yes
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 ac_compiler_gnu=no
2677 fi
2678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680
2681 fi
2682 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2683 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2684 GCC=`test $ac_compiler_gnu = yes && echo yes`
2685 ac_test_CFLAGS=${CFLAGS+set}
2686 ac_save_CFLAGS=$CFLAGS
2687 CFLAGS="-g"
2688 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2689 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2690 if test "${ac_cv_prog_cc_g+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699
2700 int
2701 main ()
2702 {
2703
2704 ;
2705 return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_cv_prog_cc_g=yes
2731 else
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 ac_cv_prog_cc_g=no
2736 fi
2737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2740 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2741 if test "$ac_test_CFLAGS" = set; then
2742 CFLAGS=$ac_save_CFLAGS
2743 elif test $ac_cv_prog_cc_g = yes; then
2744 if test "$GCC" = yes; then
2745 CFLAGS="-g -O2"
2746 else
2747 CFLAGS="-g"
2748 fi
2749 else
2750 if test "$GCC" = yes; then
2751 CFLAGS="-O2"
2752 else
2753 CFLAGS=
2754 fi
2755 fi
2756 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2757 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2758 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 ac_cv_prog_cc_stdc=no
2762 ac_save_CC=$CC
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h. */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2769 #include <stdarg.h>
2770 #include <stdio.h>
2771 #include <sys/types.h>
2772 #include <sys/stat.h>
2773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2774 struct buf { int x; };
2775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2776 static char *e (p, i)
2777 char **p;
2778 int i;
2779 {
2780 return p[i];
2781 }
2782 static char *f (char * (*g) (char **, int), char **p, ...)
2783 {
2784 char *s;
2785 va_list v;
2786 va_start (v,p);
2787 s = g (p, va_arg (v,int));
2788 va_end (v);
2789 return s;
2790 }
2791
2792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2793 function prototypes and stuff, but not '\xHH' hex character constants.
2794 These don't provoke an error unfortunately, instead are silently treated
2795 as 'x'. The following induces an error, until -std1 is added to get
2796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2797 array size at least. It's necessary to write '\x00'==0 to get something
2798 that's true only with -std1. */
2799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2800
2801 int test (int i, double x);
2802 struct s1 {int (*f) (int a);};
2803 struct s2 {int (*f) (double a);};
2804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2805 int argc;
2806 char **argv;
2807 int
2808 main ()
2809 {
2810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 # Don't try gcc -ansi; that turns off useful extensions and
2816 # breaks some systems' header files.
2817 # AIX -qlanglvl=ansi
2818 # Ultrix and OSF/1 -std1
2819 # HP-UX 10.20 and later -Ae
2820 # HP-UX older versions -Aa -D_HPUX_SOURCE
2821 # SVR4 -Xc -D__EXTENSIONS__
2822 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2823 do
2824 CC="$ac_save_CC $ac_arg"
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_cv_prog_cc_stdc=$ac_arg
2848 break
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 fi
2854 rm -f conftest.err conftest.$ac_objext
2855 done
2856 rm -f conftest.$ac_ext conftest.$ac_objext
2857 CC=$ac_save_CC
2858
2859 fi
2860
2861 case "x$ac_cv_prog_cc_stdc" in
2862 x|xno)
2863 echo "$as_me:$LINENO: result: none needed" >&5
2864 echo "${ECHO_T}none needed" >&6 ;;
2865 *)
2866 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2867 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2868 CC="$CC $ac_cv_prog_cc_stdc" ;;
2869 esac
2870
2871 # Some people use a C++ compiler to compile C. Since we use `exit',
2872 # in C++ we need to declare it. In case someone uses the same compiler
2873 # for both compiling C and C++ we need to have the C++ compiler decide
2874 # the declaration of exit, since it's the most demanding environment.
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #ifndef __cplusplus
2877 choke me
2878 #endif
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 for ac_declaration in \
2903 '' \
2904 'extern "C" void std::exit (int) throw (); using std::exit;' \
2905 'extern "C" void std::exit (int); using std::exit;' \
2906 'extern "C" void exit (int) throw ();' \
2907 'extern "C" void exit (int);' \
2908 'void exit (int);'
2909 do
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 $ac_declaration
2917 #include <stdlib.h>
2918 int
2919 main ()
2920 {
2921 exit (42);
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 :
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 continue
2954 fi
2955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 $ac_declaration
2963 int
2964 main ()
2965 {
2966 exit (42);
2967 ;
2968 return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 break
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 fi
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 done
3001 rm -f conftest*
3002 if test -n "$ac_declaration"; then
3003 echo '#ifdef __cplusplus' >>confdefs.h
3004 echo $ac_declaration >>confdefs.h
3005 echo '#endif' >>confdefs.h
3006 fi
3007
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012 fi
3013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 DEPDIR="${am__leading_dot}deps"
3020
3021 ac_config_commands="$ac_config_commands depfiles"
3022
3023
3024 am_make=${MAKE-make}
3025 cat > confinc << 'END'
3026 am__doit:
3027 @echo done
3028 .PHONY: am__doit
3029 END
3030 # If we don't find an include directive, just comment out the code.
3031 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3032 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3033 am__include="#"
3034 am__quote=
3035 _am_result=none
3036 # First try GNU make style include.
3037 echo "include confinc" > confmf
3038 # We grep out `Entering directory' and `Leaving directory'
3039 # messages which can occur if `w' ends up in MAKEFLAGS.
3040 # In particular we don't look at `^make:' because GNU make might
3041 # be invoked under some other name (usually "gmake"), in which
3042 # case it prints its new name instead of `make'.
3043 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3044 am__include=include
3045 am__quote=
3046 _am_result=GNU
3047 fi
3048 # Now try BSD make style include.
3049 if test "$am__include" = "#"; then
3050 echo '.include "confinc"' > confmf
3051 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3052 am__include=.include
3053 am__quote="\""
3054 _am_result=BSD
3055 fi
3056 fi
3057
3058
3059 echo "$as_me:$LINENO: result: $_am_result" >&5
3060 echo "${ECHO_T}$_am_result" >&6
3061 rm -f confinc confmf
3062
3063 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3064 if test "${enable_dependency_tracking+set}" = set; then
3065 enableval="$enable_dependency_tracking"
3066
3067 fi;
3068 if test "x$enable_dependency_tracking" != xno; then
3069 am_depcomp="$ac_aux_dir/depcomp"
3070 AMDEPBACKSLASH='\'
3071 fi
3072
3073
3074 if test "x$enable_dependency_tracking" != xno; then
3075 AMDEP_TRUE=
3076 AMDEP_FALSE='#'
3077 else
3078 AMDEP_TRUE='#'
3079 AMDEP_FALSE=
3080 fi
3081
3082
3083
3084
3085 depcc="$CC" am_compiler_list=
3086
3087 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3088 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3089 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3093 # We make a subdir and do the tests there. Otherwise we can end up
3094 # making bogus files that we don't know about and never remove. For
3095 # instance it was reported that on HP-UX the gcc test will end up
3096 # making a dummy file named `D' -- because `-MD' means `put the output
3097 # in D'.
3098 mkdir conftest.dir
3099 # Copy depcomp to subdir because otherwise we won't find it if we're
3100 # using a relative directory.
3101 cp "$am_depcomp" conftest.dir
3102 cd conftest.dir
3103 # We will build objects and dependencies in a subdirectory because
3104 # it helps to detect inapplicable dependency modes. For instance
3105 # both Tru64's cc and ICC support -MD to output dependencies as a
3106 # side effect of compilation, but ICC will put the dependencies in
3107 # the current directory while Tru64 will put them in the object
3108 # directory.
3109 mkdir sub
3110
3111 am_cv_CC_dependencies_compiler_type=none
3112 if test "$am_compiler_list" = ""; then
3113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3114 fi
3115 for depmode in $am_compiler_list; do
3116 # Setup a source with many dependencies, because some compilers
3117 # like to wrap large dependency lists on column 80 (with \), and
3118 # we should not choose a depcomp mode which is confused by this.
3119 #
3120 # We need to recreate these files for each test, as the compiler may
3121 # overwrite some of them when testing with obscure command lines.
3122 # This happens at least with the AIX C compiler.
3123 : > sub/conftest.c
3124 for i in 1 2 3 4 5 6; do
3125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3127 # Solaris 8's {/usr,}/bin/sh.
3128 touch sub/conftst$i.h
3129 done
3130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3131
3132 case $depmode in
3133 nosideeffect)
3134 # after this tag, mechanisms are not by side-effect, so they'll
3135 # only be used when explicitly requested
3136 if test "x$enable_dependency_tracking" = xyes; then
3137 continue
3138 else
3139 break
3140 fi
3141 ;;
3142 none) break ;;
3143 esac
3144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3145 # mode. It turns out that the SunPro C++ compiler does not properly
3146 # handle `-M -o', and we need to detect this.
3147 if depmode=$depmode \
3148 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3149 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3150 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3151 >/dev/null 2>conftest.err &&
3152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3153 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3155 # icc doesn't choke on unknown options, it will just issue warnings
3156 # or remarks (even with -Werror). So we grep stderr for any message
3157 # that says an option was ignored or not supported.
3158 # When given -MP, icc 7.0 and 7.1 complain thusly:
3159 # icc: Command line warning: ignoring option '-M'; no argument required
3160 # The diagnosis changed in icc 8.0:
3161 # icc: Command line remark: option '-MP' not supported
3162 if (grep 'ignoring option' conftest.err ||
3163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3164 am_cv_CC_dependencies_compiler_type=$depmode
3165 break
3166 fi
3167 fi
3168 done
3169
3170 cd ..
3171 rm -rf conftest.dir
3172 else
3173 am_cv_CC_dependencies_compiler_type=none
3174 fi
3175
3176 fi
3177 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3178 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3180
3181
3182
3183 if
3184 test "x$enable_dependency_tracking" != xno \
3185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3186 am__fastdepCC_TRUE=
3187 am__fastdepCC_FALSE='#'
3188 else
3189 am__fastdepCC_TRUE='#'
3190 am__fastdepCC_FALSE=
3191 fi
3192
3193
3194 # Check whether --enable-shared or --disable-shared was given.
3195 if test "${enable_shared+set}" = set; then
3196 enableval="$enable_shared"
3197 p=${PACKAGE-default}
3198 case $enableval in
3199 yes) enable_shared=yes ;;
3200 no) enable_shared=no ;;
3201 *)
3202 enable_shared=no
3203 # Look at the argument we got. We use all the common list separators.
3204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3205 for pkg in $enableval; do
3206 IFS="$lt_save_ifs"
3207 if test "X$pkg" = "X$p"; then
3208 enable_shared=yes
3209 fi
3210 done
3211 IFS="$lt_save_ifs"
3212 ;;
3213 esac
3214 else
3215 enable_shared=yes
3216 fi;
3217
3218 # Check whether --enable-static or --disable-static was given.
3219 if test "${enable_static+set}" = set; then
3220 enableval="$enable_static"
3221 p=${PACKAGE-default}
3222 case $enableval in
3223 yes) enable_static=yes ;;
3224 no) enable_static=no ;;
3225 *)
3226 enable_static=no
3227 # Look at the argument we got. We use all the common list separators.
3228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3229 for pkg in $enableval; do
3230 IFS="$lt_save_ifs"
3231 if test "X$pkg" = "X$p"; then
3232 enable_static=yes
3233 fi
3234 done
3235 IFS="$lt_save_ifs"
3236 ;;
3237 esac
3238 else
3239 enable_static=yes
3240 fi;
3241
3242 # Check whether --enable-fast-install or --disable-fast-install was given.
3243 if test "${enable_fast_install+set}" = set; then
3244 enableval="$enable_fast_install"
3245 p=${PACKAGE-default}
3246 case $enableval in
3247 yes) enable_fast_install=yes ;;
3248 no) enable_fast_install=no ;;
3249 *)
3250 enable_fast_install=no
3251 # Look at the argument we got. We use all the common list separators.
3252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3253 for pkg in $enableval; do
3254 IFS="$lt_save_ifs"
3255 if test "X$pkg" = "X$p"; then
3256 enable_fast_install=yes
3257 fi
3258 done
3259 IFS="$lt_save_ifs"
3260 ;;
3261 esac
3262 else
3263 enable_fast_install=yes
3264 fi;
3265
3266 # Make sure we can run config.sub.
3267 $ac_config_sub sun4 >/dev/null 2>&1 ||
3268 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3269 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3270 { (exit 1); exit 1; }; }
3271
3272 echo "$as_me:$LINENO: checking build system type" >&5
3273 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3274 if test "${ac_cv_build+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 ac_cv_build_alias=$build_alias
3278 test -z "$ac_cv_build_alias" &&
3279 ac_cv_build_alias=`$ac_config_guess`
3280 test -z "$ac_cv_build_alias" &&
3281 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3282 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3283 { (exit 1); exit 1; }; }
3284 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3285 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3286 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3287 { (exit 1); exit 1; }; }
3288
3289 fi
3290 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3291 echo "${ECHO_T}$ac_cv_build" >&6
3292 build=$ac_cv_build
3293 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3294 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3295 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3296
3297
3298 echo "$as_me:$LINENO: checking host system type" >&5
3299 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3300 if test "${ac_cv_host+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 ac_cv_host_alias=$host_alias
3304 test -z "$ac_cv_host_alias" &&
3305 ac_cv_host_alias=$ac_cv_build_alias
3306 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3307 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3308 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3309 { (exit 1); exit 1; }; }
3310
3311 fi
3312 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3313 echo "${ECHO_T}$ac_cv_host" >&6
3314 host=$ac_cv_host
3315 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3316 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3317 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3318
3319
3320 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3321 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3322 if test "${lt_cv_path_SED+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 # Loop through the user's path and test for sed and gsed.
3326 # Then use that list of sed's as ones to test for truncation.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for lt_ac_prog in sed gsed; do
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3335 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3336 fi
3337 done
3338 done
3339 done
3340 IFS=$as_save_IFS
3341 lt_ac_max=0
3342 lt_ac_count=0
3343 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3344 # along with /bin/sed that truncates output.
3345 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3346 test ! -f $lt_ac_sed && continue
3347 cat /dev/null > conftest.in
3348 lt_ac_count=0
3349 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3350 # Check for GNU sed and select it if it is found.
3351 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3352 lt_cv_path_SED=$lt_ac_sed
3353 break
3354 fi
3355 while true; do
3356 cat conftest.in conftest.in >conftest.tmp
3357 mv conftest.tmp conftest.in
3358 cp conftest.in conftest.nl
3359 echo >>conftest.nl
3360 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3361 cmp -s conftest.out conftest.nl || break
3362 # 10000 chars as input seems more than enough
3363 test $lt_ac_count -gt 10 && break
3364 lt_ac_count=`expr $lt_ac_count + 1`
3365 if test $lt_ac_count -gt $lt_ac_max; then
3366 lt_ac_max=$lt_ac_count
3367 lt_cv_path_SED=$lt_ac_sed
3368 fi
3369 done
3370 done
3371
3372 fi
3373
3374 SED=$lt_cv_path_SED
3375
3376 echo "$as_me:$LINENO: result: $SED" >&5
3377 echo "${ECHO_T}$SED" >&6
3378
3379 echo "$as_me:$LINENO: checking for egrep" >&5
3380 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3381 if test "${ac_cv_prog_egrep+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3385 then ac_cv_prog_egrep='grep -E'
3386 else ac_cv_prog_egrep='egrep'
3387 fi
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3390 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3391 EGREP=$ac_cv_prog_egrep
3392
3393
3394
3395 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3396 if test "${with_gnu_ld+set}" = set; then
3397 withval="$with_gnu_ld"
3398 test "$withval" = no || with_gnu_ld=yes
3399 else
3400 with_gnu_ld=no
3401 fi;
3402 ac_prog=ld
3403 if test "$GCC" = yes; then
3404 # Check if gcc -print-prog-name=ld gives a path.
3405 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3406 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3407 case $host in
3408 *-*-mingw*)
3409 # gcc leaves a trailing carriage return which upsets mingw
3410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3411 *)
3412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3413 esac
3414 case $ac_prog in
3415 # Accept absolute paths.
3416 [\\/]* | ?:[\\/]*)
3417 re_direlt='/[^/][^/]*/\.\./'
3418 # Canonicalize the pathname of ld
3419 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3420 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3421 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3422 done
3423 test -z "$LD" && LD="$ac_prog"
3424 ;;
3425 "")
3426 # If it fails, then pretend we aren't using GCC.
3427 ac_prog=ld
3428 ;;
3429 *)
3430 # If it is relative, then search for the first ld in PATH.
3431 with_gnu_ld=unknown
3432 ;;
3433 esac
3434 elif test "$with_gnu_ld" = yes; then
3435 echo "$as_me:$LINENO: checking for GNU ld" >&5
3436 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3437 else
3438 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3439 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3440 fi
3441 if test "${lt_cv_path_LD+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -z "$LD"; then
3445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3446 for ac_dir in $PATH; do
3447 IFS="$lt_save_ifs"
3448 test -z "$ac_dir" && ac_dir=.
3449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3450 lt_cv_path_LD="$ac_dir/$ac_prog"
3451 # Check to see if the program is GNU ld. I'd rather use --version,
3452 # but apparently some variants of GNU ld only accept -v.
3453 # Break only if it was the GNU/non-GNU ld that we prefer.
3454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3455 *GNU* | *'with BFD'*)
3456 test "$with_gnu_ld" != no && break
3457 ;;
3458 *)
3459 test "$with_gnu_ld" != yes && break
3460 ;;
3461 esac
3462 fi
3463 done
3464 IFS="$lt_save_ifs"
3465 else
3466 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3467 fi
3468 fi
3469
3470 LD="$lt_cv_path_LD"
3471 if test -n "$LD"; then
3472 echo "$as_me:$LINENO: result: $LD" >&5
3473 echo "${ECHO_T}$LD" >&6
3474 else
3475 echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3477 fi
3478 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3479 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3480 { (exit 1); exit 1; }; }
3481 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3482 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3483 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3487 case `$LD -v 2>&1 </dev/null` in
3488 *GNU* | *'with BFD'*)
3489 lt_cv_prog_gnu_ld=yes
3490 ;;
3491 *)
3492 lt_cv_prog_gnu_ld=no
3493 ;;
3494 esac
3495 fi
3496 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3497 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3498 with_gnu_ld=$lt_cv_prog_gnu_ld
3499
3500
3501 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3502 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3503 if test "${lt_cv_ld_reload_flag+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 lt_cv_ld_reload_flag='-r'
3507 fi
3508 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3509 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3510 reload_flag=$lt_cv_ld_reload_flag
3511 case $reload_flag in
3512 "" | " "*) ;;
3513 *) reload_flag=" $reload_flag" ;;
3514 esac
3515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3516 case $host_os in
3517 darwin*)
3518 if test "$GCC" = yes; then
3519 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3520 else
3521 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3522 fi
3523 ;;
3524 esac
3525
3526 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3527 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3528 if test "${lt_cv_path_NM+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -n "$NM"; then
3532 # Let the user override the test.
3533 lt_cv_path_NM="$NM"
3534 else
3535 lt_nm_to_check="${ac_tool_prefix}nm"
3536 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3537 lt_nm_to_check="$lt_nm_to_check nm"
3538 fi
3539 for lt_tmp_nm in $lt_nm_to_check; do
3540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3542 IFS="$lt_save_ifs"
3543 test -z "$ac_dir" && ac_dir=.
3544 tmp_nm="$ac_dir/$lt_tmp_nm"
3545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3546 # Check to see if the nm accepts a BSD-compat flag.
3547 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3548 # nm: unknown option "B" ignored
3549 # Tru64's nm complains that /dev/null is an invalid object file
3550 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3551 */dev/null* | *'Invalid file or object type'*)
3552 lt_cv_path_NM="$tmp_nm -B"
3553 break
3554 ;;
3555 *)
3556 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3557 */dev/null*)
3558 lt_cv_path_NM="$tmp_nm -p"
3559 break
3560 ;;
3561 *)
3562 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3563 continue # so that we can try to find one that supports BSD flags
3564 ;;
3565 esac
3566 ;;
3567 esac
3568 fi
3569 done
3570 IFS="$lt_save_ifs"
3571 done
3572 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3573 fi
3574 fi
3575 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3576 echo "${ECHO_T}$lt_cv_path_NM" >&6
3577 NM="$lt_cv_path_NM"
3578
3579 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3580 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3581 if test "${lt_cv_deplibs_check_method+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 lt_cv_file_magic_cmd='$MAGIC_CMD'
3585 lt_cv_file_magic_test_file=
3586 lt_cv_deplibs_check_method='unknown'
3587 # Need to set the preceding variable on all platforms that support
3588 # interlibrary dependencies.
3589 # 'none' -- dependencies not supported.
3590 # `unknown' -- same as none, but documents that we really don't know.
3591 # 'pass_all' -- all dependencies passed with no checks.
3592 # 'test_compile' -- check by making test program.
3593 # 'file_magic [[regex]]' -- check by looking for files in library path
3594 # which responds to the $file_magic_cmd with a given extended regex.
3595 # If you have `file' or equivalent on your system and you're not sure
3596 # whether `pass_all' will *always* work, you probably want this one.
3597
3598 case $host_os in
3599 aix4* | aix5*)
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603 beos*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607 bsdi[45]*)
3608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3609 lt_cv_file_magic_cmd='/usr/bin/file -L'
3610 lt_cv_file_magic_test_file=/shlib/libc.so
3611 ;;
3612
3613 cygwin*)
3614 # func_win32_libid is a shell function defined in ltmain.sh
3615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3616 lt_cv_file_magic_cmd='func_win32_libid'
3617 ;;
3618
3619 mingw* | pw32*)
3620 # Base MSYS/MinGW do not provide the 'file' command needed by
3621 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3622 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3623 lt_cv_file_magic_cmd='$OBJDUMP -f'
3624 ;;
3625
3626 darwin* | rhapsody*)
3627 lt_cv_deplibs_check_method=pass_all
3628 ;;
3629
3630 freebsd* | kfreebsd*-gnu | dragonfly*)
3631 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3632 case $host_cpu in
3633 i*86 )
3634 # Not sure whether the presence of OpenBSD here was a mistake.
3635 # Let's accept both of them until this is cleared up.
3636 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3637 lt_cv_file_magic_cmd=/usr/bin/file
3638 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3639 ;;
3640 esac
3641 else
3642 lt_cv_deplibs_check_method=pass_all
3643 fi
3644 ;;
3645
3646 gnu*)
3647 lt_cv_deplibs_check_method=pass_all
3648 ;;
3649
3650 hpux10.20* | hpux11*)
3651 lt_cv_file_magic_cmd=/usr/bin/file
3652 case $host_cpu in
3653 ia64*)
3654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3655 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3656 ;;
3657 hppa*64*)
3658 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]'
3659 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3660 ;;
3661 *)
3662 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3663 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3664 ;;
3665 esac
3666 ;;
3667
3668 interix3*)
3669 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3671 ;;
3672
3673 irix5* | irix6* | nonstopux*)
3674 case $LD in
3675 *-32|*"-32 ") libmagic=32-bit;;
3676 *-n32|*"-n32 ") libmagic=N32;;
3677 *-64|*"-64 ") libmagic=64-bit;;
3678 *) libmagic=never-match;;
3679 esac
3680 lt_cv_deplibs_check_method=pass_all
3681 ;;
3682
3683 # This must be Linux ELF.
3684 linux*)
3685 lt_cv_deplibs_check_method=pass_all
3686 ;;
3687
3688 netbsd*)
3689 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3691 else
3692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3693 fi
3694 ;;
3695
3696 newos6*)
3697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3698 lt_cv_file_magic_cmd=/usr/bin/file
3699 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3700 ;;
3701
3702 nto-qnx*)
3703 lt_cv_deplibs_check_method=unknown
3704 ;;
3705
3706 openbsd*)
3707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3709 else
3710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3711 fi
3712 ;;
3713
3714 osf3* | osf4* | osf5*)
3715 lt_cv_deplibs_check_method=pass_all
3716 ;;
3717
3718 solaris*)
3719 lt_cv_deplibs_check_method=pass_all
3720 ;;
3721
3722 sysv4 | sysv4.3*)
3723 case $host_vendor in
3724 motorola)
3725 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]'
3726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3727 ;;
3728 ncr)
3729 lt_cv_deplibs_check_method=pass_all
3730 ;;
3731 sequent)
3732 lt_cv_file_magic_cmd='/bin/file'
3733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3734 ;;
3735 sni)
3736 lt_cv_file_magic_cmd='/bin/file'
3737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3738 lt_cv_file_magic_test_file=/lib/libc.so
3739 ;;
3740 siemens)
3741 lt_cv_deplibs_check_method=pass_all
3742 ;;
3743 pc)
3744 lt_cv_deplibs_check_method=pass_all
3745 ;;
3746 esac
3747 ;;
3748
3749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3750 lt_cv_deplibs_check_method=pass_all
3751 ;;
3752 esac
3753
3754 fi
3755 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3756 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3757 file_magic_cmd=$lt_cv_file_magic_cmd
3758 deplibs_check_method=$lt_cv_deplibs_check_method
3759 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3760
3761
3762
3763
3764 # If no C compiler was specified, use CC.
3765 LTCC=${LTCC-"$CC"}
3766
3767 # If no C compiler flags were specified, use CFLAGS.
3768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3769
3770 # Allow CC to be a program name with arguments.
3771 compiler=$CC
3772
3773
3774 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3775 if test "${enable_libtool_lock+set}" = set; then
3776 enableval="$enable_libtool_lock"
3777
3778 fi;
3779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3780
3781 # Some flags need to be propagated to the compiler or linker for good
3782 # libtool support.
3783 case $host in
3784 ia64-*-hpux*)
3785 # Find out which ABI we are using.
3786 echo 'int i;' > conftest.$ac_ext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; then
3792 case `/usr/bin/file conftest.$ac_objext` in
3793 *ELF-32*)
3794 HPUX_IA64_MODE="32"
3795 ;;
3796 *ELF-64*)
3797 HPUX_IA64_MODE="64"
3798 ;;
3799 esac
3800 fi
3801 rm -rf conftest*
3802 ;;
3803 *-*-irix6*)
3804 # Find out which ABI we are using.
3805 echo '#line 3805 "configure"' > conftest.$ac_ext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; then
3811 if test "$lt_cv_prog_gnu_ld" = yes; then
3812 case `/usr/bin/file conftest.$ac_objext` in
3813 *32-bit*)
3814 LD="${LD-ld} -melf32bsmip"
3815 ;;
3816 *N32*)
3817 LD="${LD-ld} -melf32bmipn32"
3818 ;;
3819 *64-bit*)
3820 LD="${LD-ld} -melf64bmip"
3821 ;;
3822 esac
3823 else
3824 case `/usr/bin/file conftest.$ac_objext` in
3825 *32-bit*)
3826 LD="${LD-ld} -32"
3827 ;;
3828 *N32*)
3829 LD="${LD-ld} -n32"
3830 ;;
3831 *64-bit*)
3832 LD="${LD-ld} -64"
3833 ;;
3834 esac
3835 fi
3836 fi
3837 rm -rf conftest*
3838 ;;
3839
3840 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3841 # Find out which ABI we are using.
3842 echo 'int i;' > conftest.$ac_ext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; then
3848 case `/usr/bin/file conftest.o` in
3849 *32-bit*)
3850 case $host in
3851 x86_64-*linux*)
3852 LD="${LD-ld} -m elf_i386"
3853 ;;
3854 ppc64-*linux*|powerpc64-*linux*)
3855 LD="${LD-ld} -m elf32ppclinux"
3856 ;;
3857 s390x-*linux*)
3858 LD="${LD-ld} -m elf_s390"
3859 ;;
3860 sparc64-*linux*)
3861 LD="${LD-ld} -m elf32_sparc"
3862 ;;
3863 esac
3864 ;;
3865 *64-bit*)
3866 case $host in
3867 x86_64-*linux*)
3868 LD="${LD-ld} -m elf_x86_64"
3869 ;;
3870 ppc*-*linux*|powerpc*-*linux*)
3871 LD="${LD-ld} -m elf64ppc"
3872 ;;
3873 s390*-*linux*)
3874 LD="${LD-ld} -m elf64_s390"
3875 ;;
3876 sparc*-*linux*)
3877 LD="${LD-ld} -m elf64_sparc"
3878 ;;
3879 esac
3880 ;;
3881 esac
3882 fi
3883 rm -rf conftest*
3884 ;;
3885
3886 *-*-sco3.2v5*)
3887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3888 SAVE_CFLAGS="$CFLAGS"
3889 CFLAGS="$CFLAGS -belf"
3890 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3891 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3892 if test "${lt_cv_cc_needs_belf+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907
3908 int
3909 main ()
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 rm -f conftest.$ac_objext conftest$ac_exeext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918 (eval $ac_link) 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } &&
3925 { ac_try='test -z "$ac_c_werror_flag"
3926 || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 lt_cv_cc_needs_belf=yes
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 lt_cv_cc_needs_belf=no
3944 fi
3945 rm -f conftest.err conftest.$ac_objext \
3946 conftest$ac_exeext conftest.$ac_ext
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953 fi
3954 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3955 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3958 CFLAGS="$SAVE_CFLAGS"
3959 fi
3960 ;;
3961 sparc*-*solaris*)
3962 # Find out which ABI we are using.
3963 echo 'int i;' > conftest.$ac_ext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; then
3969 case `/usr/bin/file conftest.o` in
3970 *64-bit*)
3971 case $lt_cv_prog_gnu_ld in
3972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3973 *) LD="${LD-ld} -64" ;;
3974 esac
3975 ;;
3976 esac
3977 fi
3978 rm -rf conftest*
3979 ;;
3980
3981
3982 esac
3983
3984 need_locks="$enable_libtool_lock"
3985
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3993 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3994 # On Suns, sometimes $CPP names a directory.
3995 if test -n "$CPP" && test -d "$CPP"; then
3996 CPP=
3997 fi
3998 if test -z "$CPP"; then
3999 if test "${ac_cv_prog_CPP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 # Double quotes because CPP needs to be expanded
4003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4004 do
4005 ac_preproc_ok=false
4006 for ac_c_preproc_warn_flag in '' yes
4007 do
4008 # Use a header file that comes with gcc, so configuring glibc
4009 # with a fresh cross-compiler works.
4010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011 # <limits.h> exists even on freestanding compilers.
4012 # On the NeXT, cc -E runs the code through the compiler's parser,
4013 # not just through cpp. "Syntax error" is here to catch this case.
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 #ifdef __STDC__
4021 # include <limits.h>
4022 #else
4023 # include <assert.h>
4024 #endif
4025 Syntax error
4026 _ACEOF
4027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null; then
4035 if test -s conftest.err; then
4036 ac_cpp_err=$ac_c_preproc_warn_flag
4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038 else
4039 ac_cpp_err=
4040 fi
4041 else
4042 ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
4045 :
4046 else
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.$ac_ext >&5
4049
4050 # Broken: fails on valid input.
4051 continue
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054
4055 # OK, works on sane cases. Now check whether non-existent headers
4056 # can be detected and how.
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 #include <ac_nonexistent.h>
4064 _ACEOF
4065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null; then
4073 if test -s conftest.err; then
4074 ac_cpp_err=$ac_c_preproc_warn_flag
4075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4076 else
4077 ac_cpp_err=
4078 fi
4079 else
4080 ac_cpp_err=yes
4081 fi
4082 if test -z "$ac_cpp_err"; then
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 # Passes both tests.
4090 ac_preproc_ok=:
4091 break
4092 fi
4093 rm -f conftest.err conftest.$ac_ext
4094
4095 done
4096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4097 rm -f conftest.err conftest.$ac_ext
4098 if $ac_preproc_ok; then
4099 break
4100 fi
4101
4102 done
4103 ac_cv_prog_CPP=$CPP
4104
4105 fi
4106 CPP=$ac_cv_prog_CPP
4107 else
4108 ac_cv_prog_CPP=$CPP
4109 fi
4110 echo "$as_me:$LINENO: result: $CPP" >&5
4111 echo "${ECHO_T}$CPP" >&6
4112 ac_preproc_ok=false
4113 for ac_c_preproc_warn_flag in '' yes
4114 do
4115 # Use a header file that comes with gcc, so configuring glibc
4116 # with a fresh cross-compiler works.
4117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118 # <limits.h> exists even on freestanding compilers.
4119 # On the NeXT, cc -E runs the code through the compiler's parser,
4120 # not just through cpp. "Syntax error" is here to catch this case.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #ifdef __STDC__
4128 # include <limits.h>
4129 #else
4130 # include <assert.h>
4131 #endif
4132 Syntax error
4133 _ACEOF
4134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null; then
4142 if test -s conftest.err; then
4143 ac_cpp_err=$ac_c_preproc_warn_flag
4144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4145 else
4146 ac_cpp_err=
4147 fi
4148 else
4149 ac_cpp_err=yes
4150 fi
4151 if test -z "$ac_cpp_err"; then
4152 :
4153 else
4154 echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157 # Broken: fails on valid input.
4158 continue
4159 fi
4160 rm -f conftest.err conftest.$ac_ext
4161
4162 # OK, works on sane cases. Now check whether non-existent headers
4163 # can be detected and how.
4164 cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h. */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4170 #include <ac_nonexistent.h>
4171 _ACEOF
4172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } >/dev/null; then
4180 if test -s conftest.err; then
4181 ac_cpp_err=$ac_c_preproc_warn_flag
4182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4183 else
4184 ac_cpp_err=
4185 fi
4186 else
4187 ac_cpp_err=yes
4188 fi
4189 if test -z "$ac_cpp_err"; then
4190 # Broken: success on invalid input.
4191 continue
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 # Passes both tests.
4197 ac_preproc_ok=:
4198 break
4199 fi
4200 rm -f conftest.err conftest.$ac_ext
4201
4202 done
4203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4204 rm -f conftest.err conftest.$ac_ext
4205 if $ac_preproc_ok; then
4206 :
4207 else
4208 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4209 See \`config.log' for more details." >&5
4210 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4211 See \`config.log' for more details." >&2;}
4212 { (exit 1); exit 1; }; }
4213 fi
4214
4215 ac_ext=c
4216 ac_cpp='$CPP $CPPFLAGS'
4217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220
4221
4222 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4223 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4224 if test "${ac_cv_header_stdc+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <stdlib.h>
4234 #include <stdarg.h>
4235 #include <string.h>
4236 #include <float.h>
4237
4238 int
4239 main ()
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_header_stdc=yes
4269 else
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 ac_cv_header_stdc=no
4274 fi
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
4277 if test $ac_cv_header_stdc = yes; then
4278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 #include <string.h>
4286
4287 _ACEOF
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 $EGREP "memchr" >/dev/null 2>&1; then
4290 :
4291 else
4292 ac_cv_header_stdc=no
4293 fi
4294 rm -f conftest*
4295
4296 fi
4297
4298 if test $ac_cv_header_stdc = yes; then
4299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #include <stdlib.h>
4307
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "free" >/dev/null 2>&1; then
4311 :
4312 else
4313 ac_cv_header_stdc=no
4314 fi
4315 rm -f conftest*
4316
4317 fi
4318
4319 if test $ac_cv_header_stdc = yes; then
4320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4321 if test "$cross_compiling" = yes; then
4322 :
4323 else
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ctype.h>
4331 #if ((' ' & 0x0FF) == 0x020)
4332 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4333 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4334 #else
4335 # define ISLOWER(c) \
4336 (('a' <= (c) && (c) <= 'i') \
4337 || ('j' <= (c) && (c) <= 'r') \
4338 || ('s' <= (c) && (c) <= 'z'))
4339 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4340 #endif
4341
4342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4343 int
4344 main ()
4345 {
4346 int i;
4347 for (i = 0; i < 256; i++)
4348 if (XOR (islower (i), ISLOWER (i))
4349 || toupper (i) != TOUPPER (i))
4350 exit(2);
4351 exit (0);
4352 }
4353 _ACEOF
4354 rm -f conftest$ac_exeext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356 (eval $ac_link) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 :
4366 else
4367 echo "$as_me: program exited with status $ac_status" >&5
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ( exit $ac_status )
4372 ac_cv_header_stdc=no
4373 fi
4374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 fi
4377 fi
4378 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4379 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4380 if test $ac_cv_header_stdc = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define STDC_HEADERS 1
4384 _ACEOF
4385
4386 fi
4387
4388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4399 inttypes.h stdint.h unistd.h
4400 do
4401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402 echo "$as_me:$LINENO: checking for $ac_header" >&5
4403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 $ac_includes_default
4414
4415 #include <$ac_header>
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag"
4427 || test ! -s conftest.err'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 (eval $ac_try) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 eval "$as_ac_Header=yes"
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444 eval "$as_ac_Header=no"
4445 fi
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 fi
4448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4451 cat >>confdefs.h <<_ACEOF
4452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4453 _ACEOF
4454
4455 fi
4456
4457 done
4458
4459
4460
4461 for ac_header in dlfcn.h
4462 do
4463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4465 echo "$as_me:$LINENO: checking for $ac_header" >&5
4466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 fi
4470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 else
4473 # Is the header compilable?
4474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 $ac_includes_default
4483 #include <$ac_header>
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 ac_header_compiler=yes
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512 ac_header_compiler=no
4513 fi
4514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4516 echo "${ECHO_T}$ac_header_compiler" >&6
4517
4518 # Is the header present?
4519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <$ac_header>
4528 _ACEOF
4529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null; then
4537 if test -s conftest.err; then
4538 ac_cpp_err=$ac_c_preproc_warn_flag
4539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4540 else
4541 ac_cpp_err=
4542 fi
4543 else
4544 ac_cpp_err=yes
4545 fi
4546 if test -z "$ac_cpp_err"; then
4547 ac_header_preproc=yes
4548 else
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ac_header_preproc=no
4553 fi
4554 rm -f conftest.err conftest.$ac_ext
4555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4556 echo "${ECHO_T}$ac_header_preproc" >&6
4557
4558 # So? What about this header?
4559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4560 yes:no: )
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4565 ac_header_preproc=yes
4566 ;;
4567 no:yes:* )
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4580 (
4581 cat <<\_ASBOX
4582 ## -------------------------------------------------- ##
4583 ## Report this to courier-users@lists.sourceforge.net ##
4584 ## -------------------------------------------------- ##
4585 _ASBOX
4586 ) |
4587 sed "s/^/$as_me: WARNING: /" >&2
4588 ;;
4589 esac
4590 echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 eval "$as_ac_Header=\$ac_header_preproc"
4596 fi
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4599
4600 fi
4601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4602 cat >>confdefs.h <<_ACEOF
4603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4604 _ACEOF
4605
4606 fi
4607
4608 done
4609
4610 ac_ext=cc
4611 ac_cpp='$CXXCPP $CPPFLAGS'
4612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4617 do
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_CXX+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 if test -n "$CXX"; then
4626 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641
4642 fi
4643 fi
4644 CXX=$ac_cv_prog_CXX
4645 if test -n "$CXX"; then
4646 echo "$as_me:$LINENO: result: $CXX" >&5
4647 echo "${ECHO_T}$CXX" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4651 fi
4652
4653 test -n "$CXX" && break
4654 done
4655 fi
4656 if test -z "$CXX"; then
4657 ac_ct_CXX=$CXX
4658 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4659 do
4660 # Extract the first word of "$ac_prog", so it can be a program name with args.
4661 set dummy $ac_prog; ac_word=$2
4662 echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 if test -n "$ac_ct_CXX"; then
4668 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_CXX="$ac_prog"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683
4684 fi
4685 fi
4686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4687 if test -n "$ac_ct_CXX"; then
4688 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4689 echo "${ECHO_T}$ac_ct_CXX" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6
4693 fi
4694
4695 test -n "$ac_ct_CXX" && break
4696 done
4697 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4698
4699 CXX=$ac_ct_CXX
4700 fi
4701
4702
4703 # Provide some information about the compiler.
4704 echo "$as_me:$LINENO:" \
4705 "checking for C++ compiler version" >&5
4706 ac_compiler=`set X $ac_compile; echo $2`
4707 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4708 (eval $ac_compiler --version </dev/null >&5) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }
4712 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4713 (eval $ac_compiler -v </dev/null >&5) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }
4717 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4718 (eval $ac_compiler -V </dev/null >&5) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
4722
4723 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4724 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4725 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734
4735 int
4736 main ()
4737 {
4738 #ifndef __GNUC__
4739 choke me
4740 #endif
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_cxx_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 ac_compiler_gnu=yes
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ac_compiler_gnu=no
4774 fi
4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4777
4778 fi
4779 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4780 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4781 GXX=`test $ac_compiler_gnu = yes && echo yes`
4782 ac_test_CXXFLAGS=${CXXFLAGS+set}
4783 ac_save_CXXFLAGS=$CXXFLAGS
4784 CXXFLAGS="-g"
4785 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4786 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4787 if test "${ac_cv_prog_cxx_g+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807 (eval $ac_compile) 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -z "$ac_cxx_werror_flag"
4815 || test ! -s conftest.err'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_prog_cxx_g=yes
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 ac_cv_prog_cxx_g=no
4833 fi
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835 fi
4836 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4837 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4838 if test "$ac_test_CXXFLAGS" = set; then
4839 CXXFLAGS=$ac_save_CXXFLAGS
4840 elif test $ac_cv_prog_cxx_g = yes; then
4841 if test "$GXX" = yes; then
4842 CXXFLAGS="-g -O2"
4843 else
4844 CXXFLAGS="-g"
4845 fi
4846 else
4847 if test "$GXX" = yes; then
4848 CXXFLAGS="-O2"
4849 else
4850 CXXFLAGS=
4851 fi
4852 fi
4853 for ac_declaration in \
4854 '' \
4855 'extern "C" void std::exit (int) throw (); using std::exit;' \
4856 'extern "C" void std::exit (int); using std::exit;' \
4857 'extern "C" void exit (int) throw ();' \
4858 'extern "C" void exit (int);' \
4859 'void exit (int);'
4860 do
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 $ac_declaration
4868 #include <stdlib.h>
4869 int
4870 main ()
4871 {
4872 exit (42);
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_cxx_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 :
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 continue
4905 fi
4906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_declaration
4914 int
4915 main ()
4916 {
4917 exit (42);
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>conftest.er1
4925 ac_status=$?
4926 grep -v '^ *+' conftest.er1 >conftest.err
4927 rm -f conftest.er1
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -z "$ac_cxx_werror_flag"
4932 || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 break
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 fi
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 done
4952 rm -f conftest*
4953 if test -n "$ac_declaration"; then
4954 echo '#ifdef __cplusplus' >>confdefs.h
4955 echo $ac_declaration >>confdefs.h
4956 echo '#endif' >>confdefs.h
4957 fi
4958
4959 ac_ext=cc
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
4965 depcc="$CXX" am_compiler_list=
4966
4967 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4968 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4969 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4973 # We make a subdir and do the tests there. Otherwise we can end up
4974 # making bogus files that we don't know about and never remove. For
4975 # instance it was reported that on HP-UX the gcc test will end up
4976 # making a dummy file named `D' -- because `-MD' means `put the output
4977 # in D'.
4978 mkdir conftest.dir
4979 # Copy depcomp to subdir because otherwise we won't find it if we're
4980 # using a relative directory.
4981 cp "$am_depcomp" conftest.dir
4982 cd conftest.dir
4983 # We will build objects and dependencies in a subdirectory because
4984 # it helps to detect inapplicable dependency modes. For instance
4985 # both Tru64's cc and ICC support -MD to output dependencies as a
4986 # side effect of compilation, but ICC will put the dependencies in
4987 # the current directory while Tru64 will put them in the object
4988 # directory.
4989 mkdir sub
4990
4991 am_cv_CXX_dependencies_compiler_type=none
4992 if test "$am_compiler_list" = ""; then
4993 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4994 fi
4995 for depmode in $am_compiler_list; do
4996 # Setup a source with many dependencies, because some compilers
4997 # like to wrap large dependency lists on column 80 (with \), and
4998 # we should not choose a depcomp mode which is confused by this.
4999 #
5000 # We need to recreate these files for each test, as the compiler may
5001 # overwrite some of them when testing with obscure command lines.
5002 # This happens at least with the AIX C compiler.
5003 : > sub/conftest.c
5004 for i in 1 2 3 4 5 6; do
5005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5007 # Solaris 8's {/usr,}/bin/sh.
5008 touch sub/conftst$i.h
5009 done
5010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011
5012 case $depmode in
5013 nosideeffect)
5014 # after this tag, mechanisms are not by side-effect, so they'll
5015 # only be used when explicitly requested
5016 if test "x$enable_dependency_tracking" = xyes; then
5017 continue
5018 else
5019 break
5020 fi
5021 ;;
5022 none) break ;;
5023 esac
5024 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5025 # mode. It turns out that the SunPro C++ compiler does not properly
5026 # handle `-M -o', and we need to detect this.
5027 if depmode=$depmode \
5028 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5030 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5031 >/dev/null 2>conftest.err &&
5032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5033 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5035 # icc doesn't choke on unknown options, it will just issue warnings
5036 # or remarks (even with -Werror). So we grep stderr for any message
5037 # that says an option was ignored or not supported.
5038 # When given -MP, icc 7.0 and 7.1 complain thusly:
5039 # icc: Command line warning: ignoring option '-M'; no argument required
5040 # The diagnosis changed in icc 8.0:
5041 # icc: Command line remark: option '-MP' not supported
5042 if (grep 'ignoring option' conftest.err ||
5043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5044 am_cv_CXX_dependencies_compiler_type=$depmode
5045 break
5046 fi
5047 fi
5048 done
5049
5050 cd ..
5051 rm -rf conftest.dir
5052 else
5053 am_cv_CXX_dependencies_compiler_type=none
5054 fi
5055
5056 fi
5057 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5058 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5059 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5060
5061
5062
5063 if
5064 test "x$enable_dependency_tracking" != xno \
5065 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5066 am__fastdepCXX_TRUE=
5067 am__fastdepCXX_FALSE='#'
5068 else
5069 am__fastdepCXX_TRUE='#'
5070 am__fastdepCXX_FALSE=
5071 fi
5072
5073
5074
5075
5076 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5077 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5078 (test "X$CXX" != "Xg++"))) ; then
5079 ac_ext=cc
5080 ac_cpp='$CXXCPP $CPPFLAGS'
5081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5084 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5085 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5086 if test -z "$CXXCPP"; then
5087 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 # Double quotes because CXXCPP needs to be expanded
5091 for CXXCPP in "$CXX -E" "/lib/cpp"
5092 do
5093 ac_preproc_ok=false
5094 for ac_cxx_preproc_warn_flag in '' yes
5095 do
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null; then
5123 if test -s conftest.err; then
5124 ac_cpp_err=$ac_cxx_preproc_warn_flag
5125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5126 else
5127 ac_cpp_err=
5128 fi
5129 else
5130 ac_cpp_err=yes
5131 fi
5132 if test -z "$ac_cpp_err"; then
5133 :
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 # Broken: fails on valid input.
5139 continue
5140 fi
5141 rm -f conftest.err conftest.$ac_ext
5142
5143 # OK, works on sane cases. Now check whether non-existent headers
5144 # can be detected and how.
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5152 _ACEOF
5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5155 ac_status=$?
5156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } >/dev/null; then
5161 if test -s conftest.err; then
5162 ac_cpp_err=$ac_cxx_preproc_warn_flag
5163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5164 else
5165 ac_cpp_err=
5166 fi
5167 else
5168 ac_cpp_err=yes
5169 fi
5170 if test -z "$ac_cpp_err"; then
5171 # Broken: success on invalid input.
5172 continue
5173 else
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 # Passes both tests.
5178 ac_preproc_ok=:
5179 break
5180 fi
5181 rm -f conftest.err conftest.$ac_ext
5182
5183 done
5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185 rm -f conftest.err conftest.$ac_ext
5186 if $ac_preproc_ok; then
5187 break
5188 fi
5189
5190 done
5191 ac_cv_prog_CXXCPP=$CXXCPP
5192
5193 fi
5194 CXXCPP=$ac_cv_prog_CXXCPP
5195 else
5196 ac_cv_prog_CXXCPP=$CXXCPP
5197 fi
5198 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5199 echo "${ECHO_T}$CXXCPP" >&6
5200 ac_preproc_ok=false
5201 for ac_cxx_preproc_warn_flag in '' yes
5202 do
5203 # Use a header file that comes with gcc, so configuring glibc
5204 # with a fresh cross-compiler works.
5205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5206 # <limits.h> exists even on freestanding compilers.
5207 # On the NeXT, cc -E runs the code through the compiler's parser,
5208 # not just through cpp. "Syntax error" is here to catch this case.
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #ifdef __STDC__
5216 # include <limits.h>
5217 #else
5218 # include <assert.h>
5219 #endif
5220 Syntax error
5221 _ACEOF
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then
5231 ac_cpp_err=$ac_cxx_preproc_warn_flag
5232 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5233 else
5234 ac_cpp_err=
5235 fi
5236 else
5237 ac_cpp_err=yes
5238 fi
5239 if test -z "$ac_cpp_err"; then
5240 :
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 # Broken: fails on valid input.
5246 continue
5247 fi
5248 rm -f conftest.err conftest.$ac_ext
5249
5250 # OK, works on sane cases. Now check whether non-existent headers
5251 # can be detected and how.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <ac_nonexistent.h>
5259 _ACEOF
5260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_cxx_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5271 else
5272 ac_cpp_err=
5273 fi
5274 else
5275 ac_cpp_err=yes
5276 fi
5277 if test -z "$ac_cpp_err"; then
5278 # Broken: success on invalid input.
5279 continue
5280 else
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284 # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5287 fi
5288 rm -f conftest.err conftest.$ac_ext
5289
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then
5294 :
5295 else
5296 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5297 See \`config.log' for more details." >&5
5298 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5299 See \`config.log' for more details." >&2;}
5300 { (exit 1); exit 1; }; }
5301 fi
5302
5303 ac_ext=cc
5304 ac_cpp='$CXXCPP $CPPFLAGS'
5305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5308
5309 fi
5310
5311
5312 ac_ext=f
5313 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5314 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5316 if test -n "$ac_tool_prefix"; then
5317 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5318 do
5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_F77+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 if test -n "$F77"; then
5327 ac_cv_prog_F77="$F77" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342
5343 fi
5344 fi
5345 F77=$ac_cv_prog_F77
5346 if test -n "$F77"; then
5347 echo "$as_me:$LINENO: result: $F77" >&5
5348 echo "${ECHO_T}$F77" >&6
5349 else
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5352 fi
5353
5354 test -n "$F77" && break
5355 done
5356 fi
5357 if test -z "$F77"; then
5358 ac_ct_F77=$F77
5359 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5360 do
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 if test -n "$ac_ct_F77"; then
5369 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_ac_ct_F77="$ac_prog"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384
5385 fi
5386 fi
5387 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5388 if test -n "$ac_ct_F77"; then
5389 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5390 echo "${ECHO_T}$ac_ct_F77" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394 fi
5395
5396 test -n "$ac_ct_F77" && break
5397 done
5398
5399 F77=$ac_ct_F77
5400 fi
5401
5402
5403 # Provide some information about the compiler.
5404 echo "$as_me:5404:" \
5405 "checking for Fortran 77 compiler version" >&5
5406 ac_compiler=`set X $ac_compile; echo $2`
5407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5408 (eval $ac_compiler --version </dev/null >&5) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }
5412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5413 (eval $ac_compiler -v </dev/null >&5) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }
5417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5418 (eval $ac_compiler -V </dev/null >&5) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }
5422 rm -f a.out
5423
5424 # If we don't use `.F' as extension, the preprocessor is not run on the
5425 # input file. (Note that this only needs to work for GNU compilers.)
5426 ac_save_ext=$ac_ext
5427 ac_ext=F
5428 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5429 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5430 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433 cat >conftest.$ac_ext <<_ACEOF
5434 program main
5435 #ifndef __GNUC__
5436 choke me
5437 #endif
5438
5439 end
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_f77_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_compiler_gnu=yes
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_compiler_gnu=no
5469 fi
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5472
5473 fi
5474 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5475 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5476 ac_ext=$ac_save_ext
5477 ac_test_FFLAGS=${FFLAGS+set}
5478 ac_save_FFLAGS=$FFLAGS
5479 FFLAGS=
5480 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5481 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5482 if test "${ac_cv_prog_f77_g+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 FFLAGS=-g
5486 cat >conftest.$ac_ext <<_ACEOF
5487 program main
5488
5489 end
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_f77_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_prog_f77_g=yes
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 ac_cv_prog_f77_g=no
5519 fi
5520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521
5522 fi
5523 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5524 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5525 if test "$ac_test_FFLAGS" = set; then
5526 FFLAGS=$ac_save_FFLAGS
5527 elif test $ac_cv_prog_f77_g = yes; then
5528 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5529 FFLAGS="-g -O2"
5530 else
5531 FFLAGS="-g"
5532 fi
5533 else
5534 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5535 FFLAGS="-O2"
5536 else
5537 FFLAGS=
5538 fi
5539 fi
5540
5541 G77=`test $ac_compiler_gnu = yes && echo yes`
5542 ac_ext=c
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547
5548
5549
5550 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5551
5552 # find the maximum length of command line arguments
5553 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5554 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5555 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 else
5558 i=0
5559 teststring="ABCD"
5560
5561 case $build_os in
5562 msdosdjgpp*)
5563 # On DJGPP, this test can blow up pretty badly due to problems in libc
5564 # (any single argument exceeding 2000 bytes causes a buffer overrun
5565 # during glob expansion). Even if it were fixed, the result of this
5566 # check would be larger than it should be.
5567 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5568 ;;
5569
5570 gnu*)
5571 # Under GNU Hurd, this test is not required because there is
5572 # no limit to the length of command line arguments.
5573 # Libtool will interpret -1 as no limit whatsoever
5574 lt_cv_sys_max_cmd_len=-1;
5575 ;;
5576
5577 cygwin* | mingw*)
5578 # On Win9x/ME, this test blows up -- it succeeds, but takes
5579 # about 5 minutes as the teststring grows exponentially.
5580 # Worse, since 9x/ME are not pre-emptively multitasking,
5581 # you end up with a "frozen" computer, even though with patience
5582 # the test eventually succeeds (with a max line length of 256k).
5583 # Instead, let's just punt: use the minimum linelength reported by
5584 # all of the supported platforms: 8192 (on NT/2K/XP).
5585 lt_cv_sys_max_cmd_len=8192;
5586 ;;
5587
5588 amigaos*)
5589 # On AmigaOS with pdksh, this test takes hours, literally.
5590 # So we just punt and use a minimum line length of 8192.
5591 lt_cv_sys_max_cmd_len=8192;
5592 ;;
5593
5594 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5595 # This has been around since 386BSD, at least. Likely further.
5596 if test -x /sbin/sysctl; then
5597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5598 elif test -x /usr/sbin/sysctl; then
5599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5600 else
5601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5602 fi
5603 # And add a safety zone
5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5606 ;;
5607
5608 interix*)
5609 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5610 lt_cv_sys_max_cmd_len=196608
5611 ;;
5612
5613 osf*)
5614 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5615 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5616 # nice to cause kernel panics so lets avoid the loop below.
5617 # First set a reasonable default.
5618 lt_cv_sys_max_cmd_len=16384
5619 #
5620 if test -x /sbin/sysconfig; then
5621 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5622 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5623 esac
5624 fi
5625 ;;
5626 sco3.2v5*)
5627 lt_cv_sys_max_cmd_len=102400
5628 ;;
5629 sysv5* | sco5v6* | sysv4.2uw2*)
5630 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5631 if test -n "$kargmax"; then
5632 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5633 else
5634 lt_cv_sys_max_cmd_len=32768
5635 fi
5636 ;;
5637 *)
5638 # If test is not a shell built-in, we'll probably end up computing a
5639 # maximum length that is only half of the actual maximum length, but
5640 # we can't tell.
5641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5642 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5643 = "XX$teststring") >/dev/null 2>&1 &&
5644 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5645 lt_cv_sys_max_cmd_len=$new_result &&
5646 test $i != 17 # 1/2 MB should be enough
5647 do
5648 i=`expr $i + 1`
5649 teststring=$teststring$teststring
5650 done
5651 teststring=
5652 # Add a significant safety factor because C++ compilers can tack on massive
5653 # amounts of additional arguments before passing them to the linker.
5654 # It appears as though 1/2 is a usable value.
5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5656 ;;
5657 esac
5658
5659 fi
5660
5661 if test -n $lt_cv_sys_max_cmd_len ; then
5662 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5663 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5664 else
5665 echo "$as_me:$LINENO: result: none" >&5
5666 echo "${ECHO_T}none" >&6
5667 fi
5668
5669
5670
5671
5672 # Check for command to grab the raw symbol name followed by C symbol from nm.
5673 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5674 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5675 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678
5679 # These are sane defaults that work on at least a few old systems.
5680 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5681
5682 # Character class describing NM global symbol codes.
5683 symcode='[BCDEGRST]'
5684
5685 # Regexp to match symbols that can be accessed directly from C.
5686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5687
5688 # Transform an extracted symbol line into a proper C declaration
5689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5690
5691 # Transform an extracted symbol line into symbol name and symbol address
5692 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'"
5693
5694 # Define system-specific variables.
5695 case $host_os in
5696 aix*)
5697 symcode='[BCDT]'
5698 ;;
5699 cygwin* | mingw* | pw32*)
5700 symcode='[ABCDGISTW]'
5701 ;;
5702 hpux*) # Its linker distinguishes data from code symbols
5703 if test "$host_cpu" = ia64; then
5704 symcode='[ABCDEGRST]'
5705 fi
5706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5707 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'"
5708 ;;
5709 linux*)
5710 if test "$host_cpu" = ia64; then
5711 symcode='[ABCDGIRSTW]'
5712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5713 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'"
5714 fi
5715 ;;
5716 irix* | nonstopux*)
5717 symcode='[BCDEGRST]'
5718 ;;
5719 osf*)
5720 symcode='[BCDEGQRST]'
5721 ;;
5722 solaris*)
5723 symcode='[BDRT]'
5724 ;;
5725 sco3.2v5*)
5726 symcode='[DT]'
5727 ;;
5728 sysv4.2uw2*)
5729 symcode='[DT]'
5730 ;;
5731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5732 symcode='[ABDT]'
5733 ;;
5734 sysv4)
5735 symcode='[DFNSTU]'
5736 ;;
5737 esac
5738
5739 # Handle CRLF in mingw tool chain
5740 opt_cr=
5741 case $build_os in
5742 mingw*)
5743 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5744 ;;
5745 esac
5746
5747 # If we're using GNU nm, then use its standard symbol codes.
5748 case `$NM -V 2>&1` in
5749 *GNU* | *'with BFD'*)
5750 symcode='[ABCDGIRSTW]' ;;
5751 esac
5752
5753 # Try without a prefix undercore, then with it.
5754 for ac_symprfx in "" "_"; do
5755
5756 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5757 symxfrm="\\1 $ac_symprfx\\2 \\2"
5758
5759 # Write the raw and C identifiers.
5760 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5761
5762 # Check to see that the pipe works correctly.
5763 pipe_works=no
5764
5765 rm -f conftest*
5766 cat > conftest.$ac_ext <<EOF
5767 #ifdef __cplusplus
5768 extern "C" {
5769 #endif
5770 char nm_test_var;
5771 void nm_test_func(){}
5772 #ifdef __cplusplus
5773 }
5774 #endif
5775 int main(){nm_test_var='a';nm_test_func();return(0);}
5776 EOF
5777
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; then
5783 # Now try to grab the symbols.
5784 nlist=conftest.nm
5785 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5786 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && test -s "$nlist"; then
5790 # Try sorting and uniquifying the output.
5791 if sort "$nlist" | uniq > "$nlist"T; then
5792 mv -f "$nlist"T "$nlist"
5793 else
5794 rm -f "$nlist"T
5795 fi
5796
5797 # Make sure that we snagged all the symbols we need.
5798 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5799 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5800 cat <<EOF > conftest.$ac_ext
5801 #ifdef __cplusplus
5802 extern "C" {
5803 #endif
5804
5805 EOF
5806 # Now generate the symbol file.
5807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5808
5809 cat <<EOF >> conftest.$ac_ext
5810 #if defined (__STDC__) && __STDC__
5811 # define lt_ptr_t void *
5812 #else
5813 # define lt_ptr_t char *
5814 # define const
5815 #endif
5816
5817 /* The mapping between symbol names and symbols. */
5818 const struct {
5819 const char *name;
5820 lt_ptr_t address;
5821 }
5822 lt_preloaded_symbols[] =
5823 {
5824 EOF
5825 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5826 cat <<\EOF >> conftest.$ac_ext
5827 {0, (lt_ptr_t) 0}
5828 };
5829
5830 #ifdef __cplusplus
5831 }
5832 #endif
5833 EOF
5834 # Now try linking the two files.
5835 mv conftest.$ac_objext conftstm.$ac_objext
5836 lt_save_LIBS="$LIBS"
5837 lt_save_CFLAGS="$CFLAGS"
5838 LIBS="conftstm.$ac_objext"
5839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5845 pipe_works=yes
5846 fi
5847 LIBS="$lt_save_LIBS"
5848 CFLAGS="$lt_save_CFLAGS"
5849 else
5850 echo "cannot find nm_test_func in $nlist" >&5
5851 fi
5852 else
5853 echo "cannot find nm_test_var in $nlist" >&5
5854 fi
5855 else
5856 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5857 fi
5858 else
5859 echo "$progname: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 fi
5862 rm -f conftest* conftst*
5863
5864 # Do not use the global_symbol_pipe unless it works.
5865 if test "$pipe_works" = yes; then
5866 break
5867 else
5868 lt_cv_sys_global_symbol_pipe=
5869 fi
5870 done
5871
5872 fi
5873
5874 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5875 lt_cv_sys_global_symbol_to_cdecl=
5876 fi
5877 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5878 echo "$as_me:$LINENO: result: failed" >&5
5879 echo "${ECHO_T}failed" >&6
5880 else
5881 echo "$as_me:$LINENO: result: ok" >&5
5882 echo "${ECHO_T}ok" >&6
5883 fi
5884
5885 echo "$as_me:$LINENO: checking for objdir" >&5
5886 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5887 if test "${lt_cv_objdir+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 rm -f .libs 2>/dev/null
5891 mkdir .libs 2>/dev/null
5892 if test -d .libs; then
5893 lt_cv_objdir=.libs
5894 else
5895 # MS-DOS does not allow filenames that begin with a dot.
5896 lt_cv_objdir=_libs
5897 fi
5898 rmdir .libs 2>/dev/null
5899 fi
5900 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5901 echo "${ECHO_T}$lt_cv_objdir" >&6
5902 objdir=$lt_cv_objdir
5903
5904
5905
5906
5907
5908 case $host_os in
5909 aix3*)
5910 # AIX sometimes has problems with the GCC collect2 program. For some
5911 # reason, if we set the COLLECT_NAMES environment variable, the problems
5912 # vanish in a puff of smoke.
5913 if test "X${COLLECT_NAMES+set}" != Xset; then
5914 COLLECT_NAMES=
5915 export COLLECT_NAMES
5916 fi
5917 ;;
5918 esac
5919
5920 # Sed substitution that helps us do robust quoting. It backslashifies
5921 # metacharacters that are still active within double-quoted strings.
5922 Xsed='sed -e 1s/^X//'
5923 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5924
5925 # Same as above, but do not quote variable references.
5926 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5927
5928 # Sed substitution to delay expansion of an escaped shell variable in a
5929 # double_quote_subst'ed string.
5930 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5931
5932 # Sed substitution to avoid accidental globbing in evaled expressions
5933 no_glob_subst='s/\*/\\\*/g'
5934
5935 # Constants:
5936 rm="rm -f"
5937
5938 # Global variables:
5939 default_ofile=libtool
5940 can_build_shared=yes
5941
5942 # All known linkers require a `.a' archive for static linking (except MSVC,
5943 # which needs '.lib').
5944 libext=a
5945 ltmain="$ac_aux_dir/ltmain.sh"
5946 ofile="$default_ofile"
5947 with_gnu_ld="$lt_cv_prog_gnu_ld"
5948
5949 if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}ar; ac_word=$2
5952 echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954 if test "${ac_cv_prog_AR+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 if test -n "$AR"; then
5958 ac_cv_prog_AR="$AR" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967 ac_cv_prog_AR="${ac_tool_prefix}ar"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971 done
5972 done
5973
5974 fi
5975 fi
5976 AR=$ac_cv_prog_AR
5977 if test -n "$AR"; then
5978 echo "$as_me:$LINENO: result: $AR" >&5
5979 echo "${ECHO_T}$AR" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6
5983 fi
5984
5985 fi
5986 if test -z "$ac_cv_prog_AR"; then
5987 ac_ct_AR=$AR
5988 # Extract the first word of "ar", so it can be a program name with args.
5989 set dummy ar; ac_word=$2
5990 echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 if test -n "$ac_ct_AR"; then
5996 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_ac_ct_AR="ar"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009 done
6010 done
6011
6012 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6013 fi
6014 fi
6015 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6016 if test -n "$ac_ct_AR"; then
6017 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6018 echo "${ECHO_T}$ac_ct_AR" >&6
6019 else
6020 echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6
6022 fi
6023
6024 AR=$ac_ct_AR
6025 else
6026 AR="$ac_cv_prog_AR"
6027 fi
6028
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6032 echo "$as_me:$LINENO: checking for $ac_word" >&5
6033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6034 if test "${ac_cv_prog_RANLIB+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 if test -n "$RANLIB"; then
6038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6039 else
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043 IFS=$as_save_IFS
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 break 2
6050 fi
6051 done
6052 done
6053
6054 fi
6055 fi
6056 RANLIB=$ac_cv_prog_RANLIB
6057 if test -n "$RANLIB"; then
6058 echo "$as_me:$LINENO: result: $RANLIB" >&5
6059 echo "${ECHO_T}$RANLIB" >&6
6060 else
6061 echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6
6063 fi
6064
6065 fi
6066 if test -z "$ac_cv_prog_RANLIB"; then
6067 ac_ct_RANLIB=$RANLIB
6068 # Extract the first word of "ranlib", so it can be a program name with args.
6069 set dummy ranlib; ac_word=$2
6070 echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 if test -n "$ac_ct_RANLIB"; then
6076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_RANLIB="ranlib"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091
6092 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6093 fi
6094 fi
6095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6096 if test -n "$ac_ct_RANLIB"; then
6097 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6098 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6099 else
6100 echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6
6102 fi
6103
6104 RANLIB=$ac_ct_RANLIB
6105 else
6106 RANLIB="$ac_cv_prog_RANLIB"
6107 fi
6108
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}strip; ac_word=$2
6112 echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6114 if test "${ac_cv_prog_STRIP+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 if test -n "$STRIP"; then
6118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131 done
6132 done
6133
6134 fi
6135 fi
6136 STRIP=$ac_cv_prog_STRIP
6137 if test -n "$STRIP"; then
6138 echo "$as_me:$LINENO: result: $STRIP" >&5
6139 echo "${ECHO_T}$STRIP" >&6
6140 else
6141 echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6
6143 fi
6144
6145 fi
6146 if test -z "$ac_cv_prog_STRIP"; then
6147 ac_ct_STRIP=$STRIP
6148 # Extract the first word of "strip", so it can be a program name with args.
6149 set dummy strip; ac_word=$2
6150 echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6152 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 if test -n "$ac_ct_STRIP"; then
6156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_STRIP="strip"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169 done
6170 done
6171
6172 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6173 fi
6174 fi
6175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6176 if test -n "$ac_ct_STRIP"; then
6177 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6178 echo "${ECHO_T}$ac_ct_STRIP" >&6
6179 else
6180 echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6182 fi
6183
6184 STRIP=$ac_ct_STRIP
6185 else
6186 STRIP="$ac_cv_prog_STRIP"
6187 fi
6188
6189
6190 old_CC="$CC"
6191 old_CFLAGS="$CFLAGS"
6192
6193 # Set sane defaults for various variables
6194 test -z "$AR" && AR=ar
6195 test -z "$AR_FLAGS" && AR_FLAGS=cru
6196 test -z "$AS" && AS=as
6197 test -z "$CC" && CC=cc
6198 test -z "$LTCC" && LTCC=$CC
6199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6200 test -z "$DLLTOOL" && DLLTOOL=dlltool
6201 test -z "$LD" && LD=ld
6202 test -z "$LN_S" && LN_S="ln -s"
6203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6204 test -z "$NM" && NM=nm
6205 test -z "$SED" && SED=sed
6206 test -z "$OBJDUMP" && OBJDUMP=objdump
6207 test -z "$RANLIB" && RANLIB=:
6208 test -z "$STRIP" && STRIP=:
6209 test -z "$ac_objext" && ac_objext=o
6210
6211 # Determine commands to create old-style static archives.
6212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6213 old_postinstall_cmds='chmod 644 $oldlib'
6214 old_postuninstall_cmds=
6215
6216 if test -n "$RANLIB"; then
6217 case $host_os in
6218 openbsd*)
6219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6220 ;;
6221 *)
6222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6223 ;;
6224 esac
6225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6226 fi
6227
6228 for cc_temp in $compiler""; do
6229 case $cc_temp in
6230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6232 \-*) ;;
6233 *) break;;
6234 esac
6235 done
6236 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6237
6238
6239 # Only perform the check for file, if the check method requires it
6240 case $deplibs_check_method in
6241 file_magic*)
6242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6243 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6244 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6245 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 case $MAGIC_CMD in
6249 [\\/*] | ?:[\\/]*)
6250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6251 ;;
6252 *)
6253 lt_save_MAGIC_CMD="$MAGIC_CMD"
6254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6256 for ac_dir in $ac_dummy; do
6257 IFS="$lt_save_ifs"
6258 test -z "$ac_dir" && ac_dir=.
6259 if test -f $ac_dir/${ac_tool_prefix}file; then
6260 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6261 if test -n "$file_magic_test_file"; then
6262 case $deplibs_check_method in
6263 "file_magic "*)
6264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6267 $EGREP "$file_magic_regex" > /dev/null; then
6268 :
6269 else
6270 cat <<EOF 1>&2
6271
6272 *** Warning: the command libtool uses to detect shared libraries,
6273 *** $file_magic_cmd, produces output that libtool cannot recognize.
6274 *** The result is that libtool may fail to recognize shared libraries
6275 *** as such. This will affect the creation of libtool libraries that
6276 *** depend on shared libraries, but programs linked with such libtool
6277 *** libraries will work regardless of this problem. Nevertheless, you
6278 *** may want to report the problem to your system manager and/or to
6279 *** bug-libtool@gnu.org
6280
6281 EOF
6282 fi ;;
6283 esac
6284 fi
6285 break
6286 fi
6287 done
6288 IFS="$lt_save_ifs"
6289 MAGIC_CMD="$lt_save_MAGIC_CMD"
6290 ;;
6291 esac
6292 fi
6293
6294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6295 if test -n "$MAGIC_CMD"; then
6296 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6297 echo "${ECHO_T}$MAGIC_CMD" >&6
6298 else
6299 echo "$as_me:$LINENO: result: no" >&5
6300 echo "${ECHO_T}no" >&6
6301 fi
6302
6303 if test -z "$lt_cv_path_MAGIC_CMD"; then
6304 if test -n "$ac_tool_prefix"; then
6305 echo "$as_me:$LINENO: checking for file" >&5
6306 echo $ECHO_N "checking for file... $ECHO_C" >&6
6307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310 case $MAGIC_CMD in
6311 [\\/*] | ?:[\\/]*)
6312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6313 ;;
6314 *)
6315 lt_save_MAGIC_CMD="$MAGIC_CMD"
6316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6318 for ac_dir in $ac_dummy; do
6319 IFS="$lt_save_ifs"
6320 test -z "$ac_dir" && ac_dir=.
6321 if test -f $ac_dir/file; then
6322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6323 if test -n "$file_magic_test_file"; then
6324 case $deplibs_check_method in
6325 "file_magic "*)
6326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6329 $EGREP "$file_magic_regex" > /dev/null; then
6330 :
6331 else
6332 cat <<EOF 1>&2
6333
6334 *** Warning: the command libtool uses to detect shared libraries,
6335 *** $file_magic_cmd, produces output that libtool cannot recognize.
6336 *** The result is that libtool may fail to recognize shared libraries
6337 *** as such. This will affect the creation of libtool libraries that
6338 *** depend on shared libraries, but programs linked with such libtool
6339 *** libraries will work regardless of this problem. Nevertheless, you
6340 *** may want to report the problem to your system manager and/or to
6341 *** bug-libtool@gnu.org
6342
6343 EOF
6344 fi ;;
6345 esac
6346 fi
6347 break
6348 fi
6349 done
6350 IFS="$lt_save_ifs"
6351 MAGIC_CMD="$lt_save_MAGIC_CMD"
6352 ;;
6353 esac
6354 fi
6355
6356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6357 if test -n "$MAGIC_CMD"; then
6358 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6359 echo "${ECHO_T}$MAGIC_CMD" >&6
6360 else
6361 echo "$as_me:$LINENO: result: no" >&5
6362 echo "${ECHO_T}no" >&6
6363 fi
6364
6365 else
6366 MAGIC_CMD=:
6367 fi
6368 fi
6369
6370 fi
6371 ;;
6372 esac
6373
6374 enable_dlopen=no
6375 enable_win32_dll=no
6376
6377 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6378 if test "${enable_libtool_lock+set}" = set; then
6379 enableval="$enable_libtool_lock"
6380
6381 fi;
6382 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6383
6384
6385 # Check whether --with-pic or --without-pic was given.
6386 if test "${with_pic+set}" = set; then
6387 withval="$with_pic"
6388 pic_mode="$withval"
6389 else
6390 pic_mode=default
6391 fi;
6392 test -z "$pic_mode" && pic_mode=default
6393
6394 # Use C for the default configuration in the libtool script
6395 tagname=
6396 lt_save_CC="$CC"
6397 ac_ext=c
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402
6403
6404 # Source file extension for C test sources.
6405 ac_ext=c
6406
6407 # Object file extension for compiled C test sources.
6408 objext=o
6409 objext=$objext
6410
6411 # Code to be used in simple compile tests
6412 lt_simple_compile_test_code="int some_variable = 0;\n"
6413
6414 # Code to be used in simple link tests
6415 lt_simple_link_test_code='int main(){return(0);}\n'
6416
6417
6418 # If no C compiler was specified, use CC.
6419 LTCC=${LTCC-"$CC"}
6420
6421 # If no C compiler flags were specified, use CFLAGS.
6422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6423
6424 # Allow CC to be a program name with arguments.
6425 compiler=$CC
6426
6427
6428 # save warnings/boilerplate of simple test code
6429 ac_outfile=conftest.$ac_objext
6430 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6431 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6432 _lt_compiler_boilerplate=`cat conftest.err`
6433 $rm conftest*
6434
6435 ac_outfile=conftest.$ac_objext
6436 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6437 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6438 _lt_linker_boilerplate=`cat conftest.err`
6439 $rm conftest*
6440
6441
6442
6443 lt_prog_compiler_no_builtin_flag=
6444
6445 if test "$GCC" = yes; then
6446 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6447
6448
6449 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6450 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6451 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 else
6454 lt_cv_prog_compiler_rtti_exceptions=no
6455 ac_outfile=conftest.$ac_objext
6456 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6457 lt_compiler_flag="-fno-rtti -fno-exceptions"
6458 # Insert the option either (1) after the last *FLAGS variable, or
6459 # (2) before a word containing "conftest.", or (3) at the end.
6460 # Note that $ac_compile itself does not contain backslashes and begins
6461 # with a dollar sign (not a hyphen), so the echo should work correctly.
6462 # The option is referenced via a variable to avoid confusing sed.
6463 lt_compile=`echo "$ac_compile" | $SED \
6464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6466 -e 's:$: $lt_compiler_flag:'`
6467 (eval echo "\"\$as_me:6467: $lt_compile\"" >&5)
6468 (eval "$lt_compile" 2>conftest.err)
6469 ac_status=$?
6470 cat conftest.err >&5
6471 echo "$as_me:6471: \$? = $ac_status" >&5
6472 if (exit $ac_status) && test -s "$ac_outfile"; then
6473 # The compiler can only warn and ignore the option if not recognized
6474 # So say no if there are warnings other than the usual output.
6475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6478 lt_cv_prog_compiler_rtti_exceptions=yes
6479 fi
6480 fi
6481 $rm conftest*
6482
6483 fi
6484 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6485 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6486
6487 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6489 else
6490 :
6491 fi
6492
6493 fi
6494
6495 lt_prog_compiler_wl=
6496 lt_prog_compiler_pic=
6497 lt_prog_compiler_static=
6498
6499 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6500 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6501
6502 if test "$GCC" = yes; then
6503 lt_prog_compiler_wl='-Wl,'
6504 lt_prog_compiler_static='-static'
6505
6506 case $host_os in
6507 aix*)
6508 # All AIX code is PIC.
6509 if test "$host_cpu" = ia64; then
6510 # AIX 5 now supports IA64 processor
6511 lt_prog_compiler_static='-Bstatic'
6512 fi
6513 ;;
6514
6515 amigaos*)
6516 # FIXME: we need at least 68020 code to build shared libraries, but
6517 # adding the `-m68020' flag to GCC prevents building anything better,
6518 # like `-m68040'.
6519 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6520 ;;
6521
6522 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6523 # PIC is the default for these OSes.
6524 ;;
6525
6526 mingw* | pw32* | os2*)
6527 # This hack is so that the source file can tell whether it is being
6528 # built for inclusion in a dll (and should export symbols for example).
6529 lt_prog_compiler_pic='-DDLL_EXPORT'
6530 ;;
6531
6532 darwin* | rhapsody*)
6533 # PIC is the default on this platform
6534 # Common symbols not allowed in MH_DYLIB files
6535 lt_prog_compiler_pic='-fno-common'
6536 ;;
6537
6538 interix3*)
6539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6540 # Instead, we relocate shared libraries at runtime.
6541 ;;
6542
6543 msdosdjgpp*)
6544 # Just because we use GCC doesn't mean we suddenly get shared libraries
6545 # on systems that don't support them.
6546 lt_prog_compiler_can_build_shared=no
6547 enable_shared=no
6548 ;;
6549
6550 sysv4*MP*)
6551 if test -d /usr/nec; then
6552 lt_prog_compiler_pic=-Kconform_pic
6553 fi
6554 ;;
6555
6556 hpux*)
6557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6558 # not for PA HP-UX.
6559 case $host_cpu in
6560 hppa*64*|ia64*)
6561 # +Z the default
6562 ;;
6563 *)
6564 lt_prog_compiler_pic='-fPIC'
6565 ;;
6566 esac
6567 ;;
6568
6569 *)
6570 lt_prog_compiler_pic='-fPIC'
6571 ;;
6572 esac
6573 else
6574 # PORTME Check for flag to pass linker flags through the system compiler.
6575 case $host_os in
6576 aix*)
6577 lt_prog_compiler_wl='-Wl,'
6578 if test "$host_cpu" = ia64; then
6579 # AIX 5 now supports IA64 processor
6580 lt_prog_compiler_static='-Bstatic'
6581 else
6582 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6583 fi
6584 ;;
6585 darwin*)
6586 # PIC is the default on this platform
6587 # Common symbols not allowed in MH_DYLIB files
6588 case $cc_basename in
6589 xlc*)
6590 lt_prog_compiler_pic='-qnocommon'
6591 lt_prog_compiler_wl='-Wl,'
6592 ;;
6593 esac
6594 ;;
6595
6596 mingw* | pw32* | os2*)
6597 # This hack is so that the source file can tell whether it is being
6598 # built for inclusion in a dll (and should export symbols for example).
6599 lt_prog_compiler_pic='-DDLL_EXPORT'
6600 ;;
6601
6602 hpux9* | hpux10* | hpux11*)
6603 lt_prog_compiler_wl='-Wl,'
6604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6605 # not for PA HP-UX.
6606 case $host_cpu in
6607 hppa*64*|ia64*)
6608 # +Z the default
6609 ;;
6610 *)
6611 lt_prog_compiler_pic='+Z'
6612 ;;
6613 esac
6614 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6615 lt_prog_compiler_static='${wl}-a ${wl}archive'
6616 ;;
6617
6618 irix5* | irix6* | nonstopux*)
6619 lt_prog_compiler_wl='-Wl,'
6620 # PIC (with -KPIC) is the default.
6621 lt_prog_compiler_static='-non_shared'
6622 ;;
6623
6624 newsos6)
6625 lt_prog_compiler_pic='-KPIC'
6626 lt_prog_compiler_static='-Bstatic'
6627 ;;
6628
6629 linux*)
6630 case $cc_basename in
6631 icc* | ecc*)
6632 lt_prog_compiler_wl='-Wl,'
6633 lt_prog_compiler_pic='-KPIC'
6634 lt_prog_compiler_static='-static'
6635 ;;
6636 pgcc* | pgf77* | pgf90* | pgf95*)
6637 # Portland Group compilers (*not* the Pentium gcc compiler,
6638 # which looks to be a dead project)
6639 lt_prog_compiler_wl='-Wl,'
6640 lt_prog_compiler_pic='-fpic'
6641 lt_prog_compiler_static='-Bstatic'
6642 ;;
6643 ccc*)
6644 lt_prog_compiler_wl='-Wl,'
6645 # All Alpha code is PIC.
6646 lt_prog_compiler_static='-non_shared'
6647 ;;
6648 esac
6649 ;;
6650
6651 osf3* | osf4* | osf5*)
6652 lt_prog_compiler_wl='-Wl,'
6653 # All OSF/1 code is PIC.
6654 lt_prog_compiler_static='-non_shared'
6655 ;;
6656
6657 solaris*)
6658 lt_prog_compiler_pic='-KPIC'
6659 lt_prog_compiler_static='-Bstatic'
6660 case $cc_basename in
6661 f77* | f90* | f95*)
6662 lt_prog_compiler_wl='-Qoption ld ';;
6663 *)
6664 lt_prog_compiler_wl='-Wl,';;
6665 esac
6666 ;;
6667
6668 sunos4*)
6669 lt_prog_compiler_wl='-Qoption ld '
6670 lt_prog_compiler_pic='-PIC'
6671 lt_prog_compiler_static='-Bstatic'
6672 ;;
6673
6674 sysv4 | sysv4.2uw2* | sysv4.3*)
6675 lt_prog_compiler_wl='-Wl,'
6676 lt_prog_compiler_pic='-KPIC'
6677 lt_prog_compiler_static='-Bstatic'
6678 ;;
6679
6680 sysv4*MP*)
6681 if test -d /usr/nec ;then
6682 lt_prog_compiler_pic='-Kconform_pic'
6683 lt_prog_compiler_static='-Bstatic'
6684 fi
6685 ;;
6686
6687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6688 lt_prog_compiler_wl='-Wl,'
6689 lt_prog_compiler_pic='-KPIC'
6690 lt_prog_compiler_static='-Bstatic'
6691 ;;
6692
6693 unicos*)
6694 lt_prog_compiler_wl='-Wl,'
6695 lt_prog_compiler_can_build_shared=no
6696 ;;
6697
6698 uts4*)
6699 lt_prog_compiler_pic='-pic'
6700 lt_prog_compiler_static='-Bstatic'
6701 ;;
6702
6703 *)
6704 lt_prog_compiler_can_build_shared=no
6705 ;;
6706 esac
6707 fi
6708
6709 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6710 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6711
6712 #
6713 # Check to make sure the PIC flag actually works.
6714 #
6715 if test -n "$lt_prog_compiler_pic"; then
6716
6717 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6718 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6719 if test "${lt_prog_compiler_pic_works+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 lt_prog_compiler_pic_works=no
6723 ac_outfile=conftest.$ac_objext
6724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6725 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6726 # Insert the option either (1) after the last *FLAGS variable, or
6727 # (2) before a word containing "conftest.", or (3) at the end.
6728 # Note that $ac_compile itself does not contain backslashes and begins
6729 # with a dollar sign (not a hyphen), so the echo should work correctly.
6730 # The option is referenced via a variable to avoid confusing sed.
6731 lt_compile=`echo "$ac_compile" | $SED \
6732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6734 -e 's:$: $lt_compiler_flag:'`
6735 (eval echo "\"\$as_me:6735: $lt_compile\"" >&5)
6736 (eval "$lt_compile" 2>conftest.err)
6737 ac_status=$?
6738 cat conftest.err >&5
6739 echo "$as_me:6739: \$? = $ac_status" >&5
6740 if (exit $ac_status) && test -s "$ac_outfile"; then
6741 # The compiler can only warn and ignore the option if not recognized
6742 # So say no if there are warnings other than the usual output.
6743 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6746 lt_prog_compiler_pic_works=yes
6747 fi
6748 fi
6749 $rm conftest*
6750
6751 fi
6752 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6753 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6754
6755 if test x"$lt_prog_compiler_pic_works" = xyes; then
6756 case $lt_prog_compiler_pic in
6757 "" | " "*) ;;
6758 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6759 esac
6760 else
6761 lt_prog_compiler_pic=
6762 lt_prog_compiler_can_build_shared=no
6763 fi
6764
6765 fi
6766 case $host_os in
6767 # For platforms which do not support PIC, -DPIC is meaningless:
6768 *djgpp*)
6769 lt_prog_compiler_pic=
6770 ;;
6771 *)
6772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6773 ;;
6774 esac
6775
6776 #
6777 # Check to make sure the static flag actually works.
6778 #
6779 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6780 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6781 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6782 if test "${lt_prog_compiler_static_works+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 lt_prog_compiler_static_works=no
6786 save_LDFLAGS="$LDFLAGS"
6787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6788 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6790 # The linker can only warn and ignore the option if not recognized
6791 # So say no if there are warnings
6792 if test -s conftest.err; then
6793 # Append any errors to the config.log.
6794 cat conftest.err 1>&5
6795 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6797 if diff conftest.exp conftest.er2 >/dev/null; then
6798 lt_prog_compiler_static_works=yes
6799 fi
6800 else
6801 lt_prog_compiler_static_works=yes
6802 fi
6803 fi
6804 $rm conftest*
6805 LDFLAGS="$save_LDFLAGS"
6806
6807 fi
6808 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6809 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6810
6811 if test x"$lt_prog_compiler_static_works" = xyes; then
6812 :
6813 else
6814 lt_prog_compiler_static=
6815 fi
6816
6817
6818 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6819 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6820 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 lt_cv_prog_compiler_c_o=no
6824 $rm -r conftest 2>/dev/null
6825 mkdir conftest
6826 cd conftest
6827 mkdir out
6828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6829
6830 lt_compiler_flag="-o out/conftest2.$ac_objext"
6831 # Insert the option either (1) after the last *FLAGS variable, or
6832 # (2) before a word containing "conftest.", or (3) at the end.
6833 # Note that $ac_compile itself does not contain backslashes and begins
6834 # with a dollar sign (not a hyphen), so the echo should work correctly.
6835 lt_compile=`echo "$ac_compile" | $SED \
6836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6838 -e 's:$: $lt_compiler_flag:'`
6839 (eval echo "\"\$as_me:6839: $lt_compile\"" >&5)
6840 (eval "$lt_compile" 2>out/conftest.err)
6841 ac_status=$?
6842 cat out/conftest.err >&5
6843 echo "$as_me:6843: \$? = $ac_status" >&5
6844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6845 then
6846 # The compiler can only warn and ignore the option if not recognized
6847 # So say no if there are warnings
6848 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6851 lt_cv_prog_compiler_c_o=yes
6852 fi
6853 fi
6854 chmod u+w . 2>&5
6855 $rm conftest*
6856 # SGI C++ compiler will create directory out/ii_files/ for
6857 # template instantiation
6858 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6859 $rm out/* && rmdir out
6860 cd ..
6861 rmdir conftest
6862 $rm conftest*
6863
6864 fi
6865 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6866 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6867
6868
6869 hard_links="nottested"
6870 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6871 # do not overwrite the value of need_locks provided by the user
6872 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6873 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6874 hard_links=yes
6875 $rm conftest*
6876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6877 touch conftest.a
6878 ln conftest.a conftest.b 2>&5 || hard_links=no
6879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6880 echo "$as_me:$LINENO: result: $hard_links" >&5
6881 echo "${ECHO_T}$hard_links" >&6
6882 if test "$hard_links" = no; then
6883 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6884 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6885 need_locks=warn
6886 fi
6887 else
6888 need_locks=no
6889 fi
6890
6891 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6892 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6893
6894 runpath_var=
6895 allow_undefined_flag=
6896 enable_shared_with_static_runtimes=no
6897 archive_cmds=
6898 archive_expsym_cmds=
6899 old_archive_From_new_cmds=
6900 old_archive_from_expsyms_cmds=
6901 export_dynamic_flag_spec=
6902 whole_archive_flag_spec=
6903 thread_safe_flag_spec=
6904 hardcode_libdir_flag_spec=
6905 hardcode_libdir_flag_spec_ld=
6906 hardcode_libdir_separator=
6907 hardcode_direct=no
6908 hardcode_minus_L=no
6909 hardcode_shlibpath_var=unsupported
6910 link_all_deplibs=unknown
6911 hardcode_automatic=no
6912 module_cmds=
6913 module_expsym_cmds=
6914 always_export_symbols=no
6915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6916 # include_expsyms should be a list of space-separated symbols to be *always*
6917 # included in the symbol list
6918 include_expsyms=
6919 # exclude_expsyms can be an extended regexp of symbols to exclude
6920 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6922 # as well as any symbol that contains `d'.
6923 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6925 # platforms (ab)use it in PIC code, but their linkers get confused if
6926 # the symbol is explicitly referenced. Since portable code cannot
6927 # rely on this symbol name, it's probably fine to never include it in
6928 # preloaded symbol tables.
6929 extract_expsyms_cmds=
6930 # Just being paranoid about ensuring that cc_basename is set.
6931 for cc_temp in $compiler""; do
6932 case $cc_temp in
6933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6935 \-*) ;;
6936 *) break;;
6937 esac
6938 done
6939 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6940
6941 case $host_os in
6942 cygwin* | mingw* | pw32*)
6943 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6944 # When not using gcc, we currently assume that we are using
6945 # Microsoft Visual C++.
6946 if test "$GCC" != yes; then
6947 with_gnu_ld=no
6948 fi
6949 ;;
6950 interix*)
6951 # we just hope/assume this is gcc and not c89 (= MSVC++)
6952 with_gnu_ld=yes
6953 ;;
6954 openbsd*)
6955 with_gnu_ld=no
6956 ;;
6957 esac
6958
6959 ld_shlibs=yes
6960 if test "$with_gnu_ld" = yes; then
6961 # If archive_cmds runs LD, not CC, wlarc should be empty
6962 wlarc='${wl}'
6963
6964 # Set some defaults for GNU ld with shared library support. These
6965 # are reset later if shared libraries are not supported. Putting them
6966 # here allows them to be overridden if necessary.
6967 runpath_var=LD_RUN_PATH
6968 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6969 export_dynamic_flag_spec='${wl}--export-dynamic'
6970 # ancient GNU ld didn't support --whole-archive et. al.
6971 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6972 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6973 else
6974 whole_archive_flag_spec=
6975 fi
6976 supports_anon_versioning=no
6977 case `$LD -v 2>/dev/null` in
6978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6981 *\ 2.11.*) ;; # other 2.11 versions
6982 *) supports_anon_versioning=yes ;;
6983 esac
6984
6985 # See if GNU ld supports shared libraries.
6986 case $host_os in
6987 aix3* | aix4* | aix5*)
6988 # On AIX/PPC, the GNU linker is very broken
6989 if test "$host_cpu" != ia64; then
6990 ld_shlibs=no
6991 cat <<EOF 1>&2
6992
6993 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6994 *** to be unable to reliably create shared libraries on AIX.
6995 *** Therefore, libtool is disabling shared libraries support. If you
6996 *** really care for shared libraries, you may want to modify your PATH
6997 *** so that a non-GNU linker is found, and then restart.
6998
6999 EOF
7000 fi
7001 ;;
7002
7003 amigaos*)
7004 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)'
7005 hardcode_libdir_flag_spec='-L$libdir'
7006 hardcode_minus_L=yes
7007
7008 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7009 # that the semantics of dynamic libraries on AmigaOS, at least up
7010 # to version 4, is to share data among multiple programs linked
7011 # with the same dynamic library. Since this doesn't match the
7012 # behavior of shared libraries on other platforms, we can't use
7013 # them.
7014 ld_shlibs=no
7015 ;;
7016
7017 beos*)
7018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7019 allow_undefined_flag=unsupported
7020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7021 # support --undefined. This deserves some investigation. FIXME
7022 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7023 else
7024 ld_shlibs=no
7025 fi
7026 ;;
7027
7028 cygwin* | mingw* | pw32*)
7029 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7030 # as there is no search path for DLLs.
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 allow_undefined_flag=unsupported
7033 always_export_symbols=no
7034 enable_shared_with_static_runtimes=yes
7035 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7036
7037 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7039 # If the export-symbols file already is a .def file (1st line
7040 # is EXPORTS), use it as is; otherwise, prepend...
7041 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7042 cp $export_symbols $output_objdir/$soname.def;
7043 else
7044 echo EXPORTS > $output_objdir/$soname.def;
7045 cat $export_symbols >> $output_objdir/$soname.def;
7046 fi~
7047 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7048 else
7049 ld_shlibs=no
7050 fi
7051 ;;
7052
7053 interix3*)
7054 hardcode_direct=no
7055 hardcode_shlibpath_var=no
7056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7057 export_dynamic_flag_spec='${wl}-E'
7058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7059 # Instead, shared libraries are loaded at an image base (0x10000000 by
7060 # default) and relocated if they conflict, which is a slow very memory
7061 # consuming and fragmenting process. To avoid this, we pick a random,
7062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7065 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7066 ;;
7067
7068 linux*)
7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070 tmp_addflag=
7071 case $cc_basename,$host_cpu in
7072 pgcc*) # Portland Group C compiler
7073 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'
7074 tmp_addflag=' $pic_flag'
7075 ;;
7076 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7077 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'
7078 tmp_addflag=' $pic_flag -Mnomain' ;;
7079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7080 tmp_addflag=' -i_dynamic' ;;
7081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7082 tmp_addflag=' -i_dynamic -nofor_main' ;;
7083 ifc* | ifort*) # Intel Fortran compiler
7084 tmp_addflag=' -nofor_main' ;;
7085 esac
7086 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7087
7088 if test $supports_anon_versioning = yes; then
7089 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7091 $echo "local: *; };" >> $output_objdir/$libname.ver~
7092 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7093 fi
7094 else
7095 ld_shlibs=no
7096 fi
7097 ;;
7098
7099 netbsd*)
7100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7102 wlarc=
7103 else
7104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7106 fi
7107 ;;
7108
7109 solaris*)
7110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7111 ld_shlibs=no
7112 cat <<EOF 1>&2
7113
7114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7115 *** create shared libraries on Solaris systems. Therefore, libtool
7116 *** is disabling shared libraries support. We urge you to upgrade GNU
7117 *** binutils to release 2.9.1 or newer. Another option is to modify
7118 *** your PATH or compiler configuration so that the native linker is
7119 *** used, and then restart.
7120
7121 EOF
7122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7125 else
7126 ld_shlibs=no
7127 fi
7128 ;;
7129
7130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7131 case `$LD -v 2>&1` in
7132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7133 ld_shlibs=no
7134 cat <<_LT_EOF 1>&2
7135
7136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7137 *** reliably create shared libraries on SCO systems. Therefore, libtool
7138 *** is disabling shared libraries support. We urge you to upgrade GNU
7139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7140 *** your PATH or compiler configuration so that the native linker is
7141 *** used, and then restart.
7142
7143 _LT_EOF
7144 ;;
7145 *)
7146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7150 else
7151 ld_shlibs=no
7152 fi
7153 ;;
7154 esac
7155 ;;
7156
7157 sunos4*)
7158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7159 wlarc=
7160 hardcode_direct=yes
7161 hardcode_shlibpath_var=no
7162 ;;
7163
7164 *)
7165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7168 else
7169 ld_shlibs=no
7170 fi
7171 ;;
7172 esac
7173
7174 if test "$ld_shlibs" = no; then
7175 runpath_var=
7176 hardcode_libdir_flag_spec=
7177 export_dynamic_flag_spec=
7178 whole_archive_flag_spec=
7179 fi
7180 else
7181 # PORTME fill in a description of your system's linker (not GNU ld)
7182 case $host_os in
7183 aix3*)
7184 allow_undefined_flag=unsupported
7185 always_export_symbols=yes
7186 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'
7187 # Note: this linker hardcodes the directories in LIBPATH if there
7188 # are no directories specified by -L.
7189 hardcode_minus_L=yes
7190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7191 # Neither direct hardcoding nor static linking is supported with a
7192 # broken collect2.
7193 hardcode_direct=unsupported
7194 fi
7195 ;;
7196
7197 aix4* | aix5*)
7198 if test "$host_cpu" = ia64; then
7199 # On IA64, the linker does run time linking by default, so we don't
7200 # have to do anything special.
7201 aix_use_runtimelinking=no
7202 exp_sym_flag='-Bexport'
7203 no_entry_flag=""
7204 else
7205 # If we're using GNU nm, then we don't want the "-C" option.
7206 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7207 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7208 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'
7209 else
7210 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'
7211 fi
7212 aix_use_runtimelinking=no
7213
7214 # Test if we are trying to use run time linking or normal
7215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7216 # need to do runtime linking.
7217 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7218 for ld_flag in $LDFLAGS; do
7219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7220 aix_use_runtimelinking=yes
7221 break
7222 fi
7223 done
7224 ;;
7225 esac
7226
7227 exp_sym_flag='-bexport'
7228 no_entry_flag='-bnoentry'
7229 fi
7230
7231 # When large executables or shared objects are built, AIX ld can
7232 # have problems creating the table of contents. If linking a library
7233 # or program results in "error TOC overflow" add -mminimal-toc to
7234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7236
7237 archive_cmds=''
7238 hardcode_direct=yes
7239 hardcode_libdir_separator=':'
7240 link_all_deplibs=yes
7241
7242 if test "$GCC" = yes; then
7243 case $host_os in aix4.[012]|aix4.[012].*)
7244 # We only want to do this on AIX 4.2 and lower, the check
7245 # below for broken collect2 doesn't work under 4.3+
7246 collect2name=`${CC} -print-prog-name=collect2`
7247 if test -f "$collect2name" && \
7248 strings "$collect2name" | grep resolve_lib_name >/dev/null
7249 then
7250 # We have reworked collect2
7251 hardcode_direct=yes
7252 else
7253 # We have old collect2
7254 hardcode_direct=unsupported
7255 # It fails to find uninstalled libraries when the uninstalled
7256 # path is not listed in the libpath. Setting hardcode_minus_L
7257 # to unsupported forces relinking
7258 hardcode_minus_L=yes
7259 hardcode_libdir_flag_spec='-L$libdir'
7260 hardcode_libdir_separator=
7261 fi
7262 ;;
7263 esac
7264 shared_flag='-shared'
7265 if test "$aix_use_runtimelinking" = yes; then
7266 shared_flag="$shared_flag "'${wl}-G'
7267 fi
7268 else
7269 # not using gcc
7270 if test "$host_cpu" = ia64; then
7271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7272 # chokes on -Wl,-G. The following line is correct:
7273 shared_flag='-G'
7274 else
7275 if test "$aix_use_runtimelinking" = yes; then
7276 shared_flag='${wl}-G'
7277 else
7278 shared_flag='${wl}-bM:SRE'
7279 fi
7280 fi
7281 fi
7282
7283 # It seems that -bexpall does not export symbols beginning with
7284 # underscore (_), so it is better to generate a list of symbols to export.
7285 always_export_symbols=yes
7286 if test "$aix_use_runtimelinking" = yes; then
7287 # Warning - without using the other runtime loading flags (-brtl),
7288 # -berok will link without error, but may produce a broken library.
7289 allow_undefined_flag='-berok'
7290 # Determine the default libpath from the value encoded in an empty executable.
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h. */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297
7298 int
7299 main ()
7300 {
7301
7302 ;
7303 return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328
7329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7330 }'`
7331 # Check for a 64-bit object if we didn't find anything.
7332 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; }
7333 }'`; fi
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 fi
7339 rm -f conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7342
7343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7344 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7345 else
7346 if test "$host_cpu" = ia64; then
7347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7348 allow_undefined_flag="-z nodefs"
7349 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7350 else
7351 # Determine the default libpath from the value encoded in an empty executable.
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>conftest.er1
7370 ac_status=$?
7371 grep -v '^ *+' conftest.er1 >conftest.err
7372 rm -f conftest.er1
7373 cat conftest.err >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try='test -z "$ac_c_werror_flag"
7377 || test ! -s conftest.err'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; } &&
7383 { ac_try='test -s conftest$ac_exeext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389
7390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7391 }'`
7392 # Check for a 64-bit object if we didn't find anything.
7393 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; }
7394 }'`; fi
7395 else
7396 echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 fi
7400 rm -f conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7403
7404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7405 # Warning - without using the other run time loading flags,
7406 # -berok will link without error, but may produce a broken library.
7407 no_undefined_flag=' ${wl}-bernotok'
7408 allow_undefined_flag=' ${wl}-berok'
7409 # Exported symbols can be pulled into shared objects from archives
7410 whole_archive_flag_spec='$convenience'
7411 archive_cmds_need_lc=yes
7412 # This is similar to how AIX traditionally builds its shared libraries.
7413 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7414 fi
7415 fi
7416 ;;
7417
7418 amigaos*)
7419 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)'
7420 hardcode_libdir_flag_spec='-L$libdir'
7421 hardcode_minus_L=yes
7422 # see comment about different semantics on the GNU ld section
7423 ld_shlibs=no
7424 ;;
7425
7426 bsdi[45]*)
7427 export_dynamic_flag_spec=-rdynamic
7428 ;;
7429
7430 cygwin* | mingw* | pw32*)
7431 # When not using gcc, we currently assume that we are using
7432 # Microsoft Visual C++.
7433 # hardcode_libdir_flag_spec is actually meaningless, as there is
7434 # no search path for DLLs.
7435 hardcode_libdir_flag_spec=' '
7436 allow_undefined_flag=unsupported
7437 # Tell ltmain to make .lib files, not .a files.
7438 libext=lib
7439 # Tell ltmain to make .dll files, not .so files.
7440 shrext_cmds=".dll"
7441 # FIXME: Setting linknames here is a bad hack.
7442 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7443 # The linker will automatically build a .lib file if we build a DLL.
7444 old_archive_From_new_cmds='true'
7445 # FIXME: Should let the user specify the lib program.
7446 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7447 fix_srcfile_path='`cygpath -w "$srcfile"`'
7448 enable_shared_with_static_runtimes=yes
7449 ;;
7450
7451 darwin* | rhapsody*)
7452 case $host_os in
7453 rhapsody* | darwin1.[012])
7454 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7455 ;;
7456 *) # Darwin 1.3 on
7457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7459 else
7460 case ${MACOSX_DEPLOYMENT_TARGET} in
7461 10.[012])
7462 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7463 ;;
7464 10.*)
7465 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7466 ;;
7467 esac
7468 fi
7469 ;;
7470 esac
7471 archive_cmds_need_lc=no
7472 hardcode_direct=no
7473 hardcode_automatic=yes
7474 hardcode_shlibpath_var=unsupported
7475 whole_archive_flag_spec=''
7476 link_all_deplibs=yes
7477 if test "$GCC" = yes ; then
7478 output_verbose_link_cmd='echo'
7479 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7480 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7481 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7482 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}'
7483 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}'
7484 else
7485 case $cc_basename in
7486 xlc*)
7487 output_verbose_link_cmd='echo'
7488 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7489 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7491 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}'
7492 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}'
7493 ;;
7494 *)
7495 ld_shlibs=no
7496 ;;
7497 esac
7498 fi
7499 ;;
7500
7501 dgux*)
7502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7503 hardcode_libdir_flag_spec='-L$libdir'
7504 hardcode_shlibpath_var=no
7505 ;;
7506
7507 freebsd1*)
7508 ld_shlibs=no
7509 ;;
7510
7511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7512 # support. Future versions do this automatically, but an explicit c++rt0.o
7513 # does not break anything, and helps significantly (at the cost of a little
7514 # extra space).
7515 freebsd2.2*)
7516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7517 hardcode_libdir_flag_spec='-R$libdir'
7518 hardcode_direct=yes
7519 hardcode_shlibpath_var=no
7520 ;;
7521
7522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7523 freebsd2*)
7524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7525 hardcode_direct=yes
7526 hardcode_minus_L=yes
7527 hardcode_shlibpath_var=no
7528 ;;
7529
7530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7531 freebsd* | kfreebsd*-gnu | dragonfly*)
7532 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7533 hardcode_libdir_flag_spec='-R$libdir'
7534 hardcode_direct=yes
7535 hardcode_shlibpath_var=no
7536 ;;
7537
7538 hpux9*)
7539 if test "$GCC" = yes; then
7540 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'
7541 else
7542 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'
7543 fi
7544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7545 hardcode_libdir_separator=:
7546 hardcode_direct=yes
7547
7548 # hardcode_minus_L: Not really in the search PATH,
7549 # but as the default location of the library.
7550 hardcode_minus_L=yes
7551 export_dynamic_flag_spec='${wl}-E'
7552 ;;
7553
7554 hpux10*)
7555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7556 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7557 else
7558 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7559 fi
7560 if test "$with_gnu_ld" = no; then
7561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7562 hardcode_libdir_separator=:
7563
7564 hardcode_direct=yes
7565 export_dynamic_flag_spec='${wl}-E'
7566
7567 # hardcode_minus_L: Not really in the search PATH,
7568 # but as the default location of the library.
7569 hardcode_minus_L=yes
7570 fi
7571 ;;
7572
7573 hpux11*)
7574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7575 case $host_cpu in
7576 hppa*64*)
7577 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7578 ;;
7579 ia64*)
7580 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7581 ;;
7582 *)
7583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7584 ;;
7585 esac
7586 else
7587 case $host_cpu in
7588 hppa*64*)
7589 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7590 ;;
7591 ia64*)
7592 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7593 ;;
7594 *)
7595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7596 ;;
7597 esac
7598 fi
7599 if test "$with_gnu_ld" = no; then
7600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7601 hardcode_libdir_separator=:
7602
7603 case $host_cpu in
7604 hppa*64*|ia64*)
7605 hardcode_libdir_flag_spec_ld='+b $libdir'
7606 hardcode_direct=no
7607 hardcode_shlibpath_var=no
7608 ;;
7609 *)
7610 hardcode_direct=yes
7611 export_dynamic_flag_spec='${wl}-E'
7612
7613 # hardcode_minus_L: Not really in the search PATH,
7614 # but as the default location of the library.
7615 hardcode_minus_L=yes
7616 ;;
7617 esac
7618 fi
7619 ;;
7620
7621 irix5* | irix6* | nonstopux*)
7622 if test "$GCC" = yes; then
7623 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'
7624 else
7625 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'
7626 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7627 fi
7628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7629 hardcode_libdir_separator=:
7630 link_all_deplibs=yes
7631 ;;
7632
7633 netbsd*)
7634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7636 else
7637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7638 fi
7639 hardcode_libdir_flag_spec='-R$libdir'
7640 hardcode_direct=yes
7641 hardcode_shlibpath_var=no
7642 ;;
7643
7644 newsos6)
7645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 hardcode_direct=yes
7647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7648 hardcode_libdir_separator=:
7649 hardcode_shlibpath_var=no
7650 ;;
7651
7652 openbsd*)
7653 hardcode_direct=yes
7654 hardcode_shlibpath_var=no
7655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7659 export_dynamic_flag_spec='${wl}-E'
7660 else
7661 case $host_os in
7662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7664 hardcode_libdir_flag_spec='-R$libdir'
7665 ;;
7666 *)
7667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7669 ;;
7670 esac
7671 fi
7672 ;;
7673
7674 os2*)
7675 hardcode_libdir_flag_spec='-L$libdir'
7676 hardcode_minus_L=yes
7677 allow_undefined_flag=unsupported
7678 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'
7679 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7680 ;;
7681
7682 osf3*)
7683 if test "$GCC" = yes; then
7684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7685 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'
7686 else
7687 allow_undefined_flag=' -expect_unresolved \*'
7688 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'
7689 fi
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 hardcode_libdir_separator=:
7692 ;;
7693
7694 osf4* | osf5*) # as osf3* with the addition of -msym flag
7695 if test "$GCC" = yes; then
7696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7697 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'
7698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7699 else
7700 allow_undefined_flag=' -expect_unresolved \*'
7701 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'
7702 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7703 $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'
7704
7705 # Both c and cxx compiler support -rpath directly
7706 hardcode_libdir_flag_spec='-rpath $libdir'
7707 fi
7708 hardcode_libdir_separator=:
7709 ;;
7710
7711 solaris*)
7712 no_undefined_flag=' -z text'
7713 if test "$GCC" = yes; then
7714 wlarc='${wl}'
7715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7717 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7718 else
7719 wlarc=''
7720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7723 fi
7724 hardcode_libdir_flag_spec='-R$libdir'
7725 hardcode_shlibpath_var=no
7726 case $host_os in
7727 solaris2.[0-5] | solaris2.[0-5].*) ;;
7728 *)
7729 # The compiler driver will combine linker options so we
7730 # cannot just pass the convience library names through
7731 # without $wl, iff we do not link with $LD.
7732 # Luckily, gcc supports the same syntax we need for Sun Studio.
7733 # Supported since Solaris 2.6 (maybe 2.5.1?)
7734 case $wlarc in
7735 '')
7736 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7737 *)
7738 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' ;;
7739 esac ;;
7740 esac
7741 link_all_deplibs=yes
7742 ;;
7743
7744 sunos4*)
7745 if test "x$host_vendor" = xsequent; then
7746 # Use $CC to link under sequent, because it throws in some extra .o
7747 # files that make .init and .fini sections work.
7748 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7749 else
7750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7751 fi
7752 hardcode_libdir_flag_spec='-L$libdir'
7753 hardcode_direct=yes
7754 hardcode_minus_L=yes
7755 hardcode_shlibpath_var=no
7756 ;;
7757
7758 sysv4)
7759 case $host_vendor in
7760 sni)
7761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_direct=yes # is this really true???
7763 ;;
7764 siemens)
7765 ## LD is ld it makes a PLAMLIB
7766 ## CC just makes a GrossModule.
7767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7768 reload_cmds='$CC -r -o $output$reload_objs'
7769 hardcode_direct=no
7770 ;;
7771 motorola)
7772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7774 ;;
7775 esac
7776 runpath_var='LD_RUN_PATH'
7777 hardcode_shlibpath_var=no
7778 ;;
7779
7780 sysv4.3*)
7781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7782 hardcode_shlibpath_var=no
7783 export_dynamic_flag_spec='-Bexport'
7784 ;;
7785
7786 sysv4*MP*)
7787 if test -d /usr/nec; then
7788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 hardcode_shlibpath_var=no
7790 runpath_var=LD_RUN_PATH
7791 hardcode_runpath_var=yes
7792 ld_shlibs=yes
7793 fi
7794 ;;
7795
7796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7797 no_undefined_flag='${wl}-z,text'
7798 archive_cmds_need_lc=no
7799 hardcode_shlibpath_var=no
7800 runpath_var='LD_RUN_PATH'
7801
7802 if test "$GCC" = yes; then
7803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7805 else
7806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7808 fi
7809 ;;
7810
7811 sysv5* | sco3.2v5* | sco5v6*)
7812 # Note: We can NOT use -z defs as we might desire, because we do not
7813 # link with -lc, and that would cause any symbols used from libc to
7814 # always be unresolved, which means just about no library would
7815 # ever link correctly. If we're not using GNU ld we use -z text
7816 # though, which does catch some bad symbols but isn't as heavy-handed
7817 # as -z defs.
7818 no_undefined_flag='${wl}-z,text'
7819 allow_undefined_flag='${wl}-z,nodefs'
7820 archive_cmds_need_lc=no
7821 hardcode_shlibpath_var=no
7822 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7823 hardcode_libdir_separator=':'
7824 link_all_deplibs=yes
7825 export_dynamic_flag_spec='${wl}-Bexport'
7826 runpath_var='LD_RUN_PATH'
7827
7828 if test "$GCC" = yes; then
7829 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7830 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7831 else
7832 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7833 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7834 fi
7835 ;;
7836
7837 uts4*)
7838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7839 hardcode_libdir_flag_spec='-L$libdir'
7840 hardcode_shlibpath_var=no
7841 ;;
7842
7843 *)
7844 ld_shlibs=no
7845 ;;
7846 esac
7847 fi
7848
7849 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7850 echo "${ECHO_T}$ld_shlibs" >&6
7851 test "$ld_shlibs" = no && can_build_shared=no
7852
7853 #
7854 # Do we need to explicitly link libc?
7855 #
7856 case "x$archive_cmds_need_lc" in
7857 x|xyes)
7858 # Assume -lc should be added
7859 archive_cmds_need_lc=yes
7860
7861 if test "$enable_shared" = yes && test "$GCC" = yes; then
7862 case $archive_cmds in
7863 *'~'*)
7864 # FIXME: we may have to deal with multi-command sequences.
7865 ;;
7866 '$CC '*)
7867 # Test whether the compiler implicitly links with -lc since on some
7868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7869 # to ld, don't add -lc before -lgcc.
7870 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7871 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7872 $rm conftest*
7873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7874
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } 2>conftest.err; then
7880 soname=conftest
7881 lib=conftest
7882 libobjs=conftest.$ac_objext
7883 deplibs=
7884 wl=$lt_prog_compiler_wl
7885 pic_flag=$lt_prog_compiler_pic
7886 compiler_flags=-v
7887 linker_flags=-v
7888 verstring=
7889 output_objdir=.
7890 libname=conftest
7891 lt_save_allow_undefined_flag=$allow_undefined_flag
7892 allow_undefined_flag=
7893 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7894 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }
7898 then
7899 archive_cmds_need_lc=no
7900 else
7901 archive_cmds_need_lc=yes
7902 fi
7903 allow_undefined_flag=$lt_save_allow_undefined_flag
7904 else
7905 cat conftest.err 1>&5
7906 fi
7907 $rm conftest*
7908 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7909 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7910 ;;
7911 esac
7912 fi
7913 ;;
7914 esac
7915
7916 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7918 library_names_spec=
7919 libname_spec='lib$name'
7920 soname_spec=
7921 shrext_cmds=".so"
7922 postinstall_cmds=
7923 postuninstall_cmds=
7924 finish_cmds=
7925 finish_eval=
7926 shlibpath_var=
7927 shlibpath_overrides_runpath=unknown
7928 version_type=none
7929 dynamic_linker="$host_os ld.so"
7930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7931 if test "$GCC" = yes; then
7932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7933 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7934 # if the path contains ";" then we assume it to be the separator
7935 # otherwise default to the standard path separator (i.e. ":") - it is
7936 # assumed that no part of a normal pathname contains ";" but that should
7937 # okay in the real world where ";" in dirpaths is itself problematic.
7938 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7939 else
7940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7941 fi
7942 else
7943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7944 fi
7945 need_lib_prefix=unknown
7946 hardcode_into_libs=no
7947
7948 # when you set need_version to no, make sure it does not cause -set_version
7949 # flags to be left without arguments
7950 need_version=unknown
7951
7952 case $host_os in
7953 aix3*)
7954 version_type=linux
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7956 shlibpath_var=LIBPATH
7957
7958 # AIX 3 has no versioning support, so we append a major version to the name.
7959 soname_spec='${libname}${release}${shared_ext}$major'
7960 ;;
7961
7962 aix4* | aix5*)
7963 version_type=linux
7964 need_lib_prefix=no
7965 need_version=no
7966 hardcode_into_libs=yes
7967 if test "$host_cpu" = ia64; then
7968 # AIX 5 supports IA64
7969 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7970 shlibpath_var=LD_LIBRARY_PATH
7971 else
7972 # With GCC up to 2.95.x, collect2 would create an import file
7973 # for dependence libraries. The import file would start with
7974 # the line `#! .'. This would cause the generated library to
7975 # depend on `.', always an invalid library. This was fixed in
7976 # development snapshots of GCC prior to 3.0.
7977 case $host_os in
7978 aix4 | aix4.[01] | aix4.[01].*)
7979 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7980 echo ' yes '
7981 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7982 :
7983 else
7984 can_build_shared=no
7985 fi
7986 ;;
7987 esac
7988 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7989 # soname into executable. Probably we can add versioning support to
7990 # collect2, so additional links can be useful in future.
7991 if test "$aix_use_runtimelinking" = yes; then
7992 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7993 # instead of lib<name>.a to let people know that these are not
7994 # typical AIX shared libraries.
7995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7996 else
7997 # We preserve .a as extension for shared libraries through AIX4.2
7998 # and later when we are not doing run time linking.
7999 library_names_spec='${libname}${release}.a $libname.a'
8000 soname_spec='${libname}${release}${shared_ext}$major'
8001 fi
8002 shlibpath_var=LIBPATH
8003 fi
8004 ;;
8005
8006 amigaos*)
8007 library_names_spec='$libname.ixlibrary $libname.a'
8008 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8009 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'
8010 ;;
8011
8012 beos*)
8013 library_names_spec='${libname}${shared_ext}'
8014 dynamic_linker="$host_os ld.so"
8015 shlibpath_var=LIBRARY_PATH
8016 ;;
8017
8018 bsdi[45]*)
8019 version_type=linux
8020 need_version=no
8021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022 soname_spec='${libname}${release}${shared_ext}$major'
8023 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8026 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8027 # the default ld.so.conf also contains /usr/contrib/lib and
8028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8029 # libtool to hard-code these into programs
8030 ;;
8031
8032 cygwin* | mingw* | pw32*)
8033 version_type=windows
8034 shrext_cmds=".dll"
8035 need_version=no
8036 need_lib_prefix=no
8037
8038 case $GCC,$host_os in
8039 yes,cygwin* | yes,mingw* | yes,pw32*)
8040 library_names_spec='$libname.dll.a'
8041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8042 postinstall_cmds='base_file=`basename \${file}`~
8043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8044 dldir=$destdir/`dirname \$dlpath`~
8045 test -d \$dldir || mkdir -p \$dldir~
8046 $install_prog $dir/$dlname \$dldir/$dlname~
8047 chmod a+x \$dldir/$dlname'
8048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8049 dlpath=$dir/\$dldll~
8050 $rm \$dlpath'
8051 shlibpath_overrides_runpath=yes
8052
8053 case $host_os in
8054 cygwin*)
8055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8058 ;;
8059 mingw*)
8060 # MinGW DLLs use traditional 'lib' prefix
8061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8062 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8063 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8064 # It is most probably a Windows format PATH printed by
8065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8066 # path with ; separators, and with drive letters. We can handle the
8067 # drive letters (cygwin fileutils understands them), so leave them,
8068 # especially as we might pass files found there to a mingw objdump,
8069 # which wouldn't understand a cygwinified path. Ahh.
8070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8071 else
8072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8073 fi
8074 ;;
8075 pw32*)
8076 # pw32 DLLs use 'pw' prefix rather than 'lib'
8077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8078 ;;
8079 esac
8080 ;;
8081
8082 *)
8083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8084 ;;
8085 esac
8086 dynamic_linker='Win32 ld.exe'
8087 # FIXME: first we should search . and the directory the executable is in
8088 shlibpath_var=PATH
8089 ;;
8090
8091 darwin* | rhapsody*)
8092 dynamic_linker="$host_os dyld"
8093 version_type=darwin
8094 need_lib_prefix=no
8095 need_version=no
8096 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8097 soname_spec='${libname}${release}${major}$shared_ext'
8098 shlibpath_overrides_runpath=yes
8099 shlibpath_var=DYLD_LIBRARY_PATH
8100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8101 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8102 if test "$GCC" = yes; then
8103 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"`
8104 else
8105 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8106 fi
8107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8108 ;;
8109
8110 dgux*)
8111 version_type=linux
8112 need_lib_prefix=no
8113 need_version=no
8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8115 soname_spec='${libname}${release}${shared_ext}$major'
8116 shlibpath_var=LD_LIBRARY_PATH
8117 ;;
8118
8119 freebsd1*)
8120 dynamic_linker=no
8121 ;;
8122
8123 kfreebsd*-gnu)
8124 version_type=linux
8125 need_lib_prefix=no
8126 need_version=no
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
8129 shlibpath_var=LD_LIBRARY_PATH
8130 shlibpath_overrides_runpath=no
8131 hardcode_into_libs=yes
8132 dynamic_linker='GNU ld.so'
8133 ;;
8134
8135 freebsd* | dragonfly*)
8136 # DragonFly does not have aout. When/if they implement a new
8137 # versioning mechanism, adjust this.
8138 if test -x /usr/bin/objformat; then
8139 objformat=`/usr/bin/objformat`
8140 else
8141 case $host_os in
8142 freebsd[123]*) objformat=aout ;;
8143 *) objformat=elf ;;
8144 esac
8145 fi
8146 version_type=freebsd-$objformat
8147 case $version_type in
8148 freebsd-elf*)
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8150 need_version=no
8151 need_lib_prefix=no
8152 ;;
8153 freebsd-*)
8154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8155 need_version=yes
8156 ;;
8157 esac
8158 shlibpath_var=LD_LIBRARY_PATH
8159 case $host_os in
8160 freebsd2*)
8161 shlibpath_overrides_runpath=yes
8162 ;;
8163 freebsd3.[01]* | freebsdelf3.[01]*)
8164 shlibpath_overrides_runpath=yes
8165 hardcode_into_libs=yes
8166 ;;
8167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8169 shlibpath_overrides_runpath=no
8170 hardcode_into_libs=yes
8171 ;;
8172 freebsd*) # from 4.6 on
8173 shlibpath_overrides_runpath=yes
8174 hardcode_into_libs=yes
8175 ;;
8176 esac
8177 ;;
8178
8179 gnu*)
8180 version_type=linux
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 hardcode_into_libs=yes
8187 ;;
8188
8189 hpux9* | hpux10* | hpux11*)
8190 # Give a soname corresponding to the major version so that dld.sl refuses to
8191 # link against other versions.
8192 version_type=sunos
8193 need_lib_prefix=no
8194 need_version=no
8195 case $host_cpu in
8196 ia64*)
8197 shrext_cmds='.so'
8198 hardcode_into_libs=yes
8199 dynamic_linker="$host_os dld.so"
8200 shlibpath_var=LD_LIBRARY_PATH
8201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8203 soname_spec='${libname}${release}${shared_ext}$major'
8204 if test "X$HPUX_IA64_MODE" = X32; then
8205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8206 else
8207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8208 fi
8209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8210 ;;
8211 hppa*64*)
8212 shrext_cmds='.sl'
8213 hardcode_into_libs=yes
8214 dynamic_linker="$host_os dld.sl"
8215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218 soname_spec='${libname}${release}${shared_ext}$major'
8219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8221 ;;
8222 *)
8223 shrext_cmds='.sl'
8224 dynamic_linker="$host_os dld.sl"
8225 shlibpath_var=SHLIB_PATH
8226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 soname_spec='${libname}${release}${shared_ext}$major'
8229 ;;
8230 esac
8231 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8232 postinstall_cmds='chmod 555 $lib'
8233 ;;
8234
8235 interix3*)
8236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8242 shlibpath_var=LD_LIBRARY_PATH
8243 shlibpath_overrides_runpath=no
8244 hardcode_into_libs=yes
8245 ;;
8246
8247 irix5* | irix6* | nonstopux*)
8248 case $host_os in
8249 nonstopux*) version_type=nonstopux ;;
8250 *)
8251 if test "$lt_cv_prog_gnu_ld" = yes; then
8252 version_type=linux
8253 else
8254 version_type=irix
8255 fi ;;
8256 esac
8257 need_lib_prefix=no
8258 need_version=no
8259 soname_spec='${libname}${release}${shared_ext}$major'
8260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8261 case $host_os in
8262 irix5* | nonstopux*)
8263 libsuff= shlibsuff=
8264 ;;
8265 *)
8266 case $LD in # libtool.m4 will add one of these switches to LD
8267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8268 libsuff= shlibsuff= libmagic=32-bit;;
8269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8270 libsuff=32 shlibsuff=N32 libmagic=N32;;
8271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8273 *) libsuff= shlibsuff= libmagic=never-match;;
8274 esac
8275 ;;
8276 esac
8277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8278 shlibpath_overrides_runpath=no
8279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8281 hardcode_into_libs=yes
8282 ;;
8283
8284 # No shared lib support for Linux oldld, aout, or coff.
8285 linux*oldld* | linux*aout* | linux*coff*)
8286 dynamic_linker=no
8287 ;;
8288
8289 # This must be Linux ELF.
8290 linux*)
8291 version_type=linux
8292 need_lib_prefix=no
8293 need_version=no
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
8296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8297 shlibpath_var=LD_LIBRARY_PATH
8298 shlibpath_overrides_runpath=no
8299 # This implies no fast_install, which is unacceptable.
8300 # Some rework will be needed to allow for fast_install
8301 # before this can be enabled.
8302 hardcode_into_libs=yes
8303
8304 # find out which ABI we are using
8305 libsuff=
8306 case "$host_cpu" in
8307 x86_64*|s390x*|powerpc64*)
8308 echo '#line 8308 "configure"' > conftest.$ac_ext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8310 (eval $ac_compile) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; then
8314 case `/usr/bin/file conftest.$ac_objext` in
8315 *64-bit*)
8316 libsuff=64
8317 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8318 ;;
8319 esac
8320 fi
8321 rm -rf conftest*
8322 ;;
8323 esac
8324
8325 # Append ld.so.conf contents to the search path
8326 if test -f /etc/ld.so.conf; then
8327 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8328 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8329 fi
8330
8331 # We used to test for /lib/ld.so.1 and disable shared libraries on
8332 # powerpc, because MkLinux only supported shared libraries with the
8333 # GNU dynamic linker. Since this was broken with cross compilers,
8334 # most powerpc-linux boxes support dynamic linking these days and
8335 # people can always --disable-shared, the test was removed, and we
8336 # assume the GNU/Linux dynamic linker is in use.
8337 dynamic_linker='GNU/Linux ld.so'
8338 ;;
8339
8340 knetbsd*-gnu)
8341 version_type=linux
8342 need_lib_prefix=no
8343 need_version=no
8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8345 soname_spec='${libname}${release}${shared_ext}$major'
8346 shlibpath_var=LD_LIBRARY_PATH
8347 shlibpath_overrides_runpath=no
8348 hardcode_into_libs=yes
8349 dynamic_linker='GNU ld.so'
8350 ;;
8351
8352 netbsd*)
8353 version_type=sunos
8354 need_lib_prefix=no
8355 need_version=no
8356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8359 dynamic_linker='NetBSD (a.out) ld.so'
8360 else
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 dynamic_linker='NetBSD ld.elf_so'
8364 fi
8365 shlibpath_var=LD_LIBRARY_PATH
8366 shlibpath_overrides_runpath=yes
8367 hardcode_into_libs=yes
8368 ;;
8369
8370 newsos6)
8371 version_type=linux
8372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 shlibpath_overrides_runpath=yes
8375 ;;
8376
8377 nto-qnx*)
8378 version_type=linux
8379 need_lib_prefix=no
8380 need_version=no
8381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8382 soname_spec='${libname}${release}${shared_ext}$major'
8383 shlibpath_var=LD_LIBRARY_PATH
8384 shlibpath_overrides_runpath=yes
8385 ;;
8386
8387 openbsd*)
8388 version_type=sunos
8389 sys_lib_dlsearch_path_spec="/usr/lib"
8390 need_lib_prefix=no
8391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8392 case $host_os in
8393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8394 *) need_version=no ;;
8395 esac
8396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8398 shlibpath_var=LD_LIBRARY_PATH
8399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8400 case $host_os in
8401 openbsd2.[89] | openbsd2.[89].*)
8402 shlibpath_overrides_runpath=no
8403 ;;
8404 *)
8405 shlibpath_overrides_runpath=yes
8406 ;;
8407 esac
8408 else
8409 shlibpath_overrides_runpath=yes
8410 fi
8411 ;;
8412
8413 os2*)
8414 libname_spec='$name'
8415 shrext_cmds=".dll"
8416 need_lib_prefix=no
8417 library_names_spec='$libname${shared_ext} $libname.a'
8418 dynamic_linker='OS/2 ld.exe'
8419 shlibpath_var=LIBPATH
8420 ;;
8421
8422 osf3* | osf4* | osf5*)
8423 version_type=osf
8424 need_lib_prefix=no
8425 need_version=no
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8428 shlibpath_var=LD_LIBRARY_PATH
8429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8431 ;;
8432
8433 solaris*)
8434 version_type=linux
8435 need_lib_prefix=no
8436 need_version=no
8437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8438 soname_spec='${libname}${release}${shared_ext}$major'
8439 shlibpath_var=LD_LIBRARY_PATH
8440 shlibpath_overrides_runpath=yes
8441 hardcode_into_libs=yes
8442 # ldd complains unless libraries are executable
8443 postinstall_cmds='chmod +x $lib'
8444 ;;
8445
8446 sunos4*)
8447 version_type=sunos
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 shlibpath_overrides_runpath=yes
8452 if test "$with_gnu_ld" = yes; then
8453 need_lib_prefix=no
8454 fi
8455 need_version=yes
8456 ;;
8457
8458 sysv4 | sysv4.3*)
8459 version_type=linux
8460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8461 soname_spec='${libname}${release}${shared_ext}$major'
8462 shlibpath_var=LD_LIBRARY_PATH
8463 case $host_vendor in
8464 sni)
8465 shlibpath_overrides_runpath=no
8466 need_lib_prefix=no
8467 export_dynamic_flag_spec='${wl}-Blargedynsym'
8468 runpath_var=LD_RUN_PATH
8469 ;;
8470 siemens)
8471 need_lib_prefix=no
8472 ;;
8473 motorola)
8474 need_lib_prefix=no
8475 need_version=no
8476 shlibpath_overrides_runpath=no
8477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8478 ;;
8479 esac
8480 ;;
8481
8482 sysv4*MP*)
8483 if test -d /usr/nec ;then
8484 version_type=linux
8485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8486 soname_spec='$libname${shared_ext}.$major'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 fi
8489 ;;
8490
8491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8492 version_type=freebsd-elf
8493 need_lib_prefix=no
8494 need_version=no
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8496 soname_spec='${libname}${release}${shared_ext}$major'
8497 shlibpath_var=LD_LIBRARY_PATH
8498 hardcode_into_libs=yes
8499 if test "$with_gnu_ld" = yes; then
8500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8501 shlibpath_overrides_runpath=no
8502 else
8503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8504 shlibpath_overrides_runpath=yes
8505 case $host_os in
8506 sco3.2v5*)
8507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8508 ;;
8509 esac
8510 fi
8511 sys_lib_dlsearch_path_spec='/usr/lib'
8512 ;;
8513
8514 uts4*)
8515 version_type=linux
8516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517 soname_spec='${libname}${release}${shared_ext}$major'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 ;;
8520
8521 *)
8522 dynamic_linker=no
8523 ;;
8524 esac
8525 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8526 echo "${ECHO_T}$dynamic_linker" >&6
8527 test "$dynamic_linker" = no && can_build_shared=no
8528
8529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8530 if test "$GCC" = yes; then
8531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8532 fi
8533
8534 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8536 hardcode_action=
8537 if test -n "$hardcode_libdir_flag_spec" || \
8538 test -n "$runpath_var" || \
8539 test "X$hardcode_automatic" = "Xyes" ; then
8540
8541 # We can hardcode non-existant directories.
8542 if test "$hardcode_direct" != no &&
8543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8544 # have to relink, otherwise we might link with an installed library
8545 # when we should be linking with a yet-to-be-installed one
8546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8547 test "$hardcode_minus_L" != no; then
8548 # Linking always hardcodes the temporary library directory.
8549 hardcode_action=relink
8550 else
8551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8552 hardcode_action=immediate
8553 fi
8554 else
8555 # We cannot hardcode anything, or else we can only hardcode existing
8556 # directories.
8557 hardcode_action=unsupported
8558 fi
8559 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8560 echo "${ECHO_T}$hardcode_action" >&6
8561
8562 if test "$hardcode_action" = relink; then
8563 # Fast installation is not supported
8564 enable_fast_install=no
8565 elif test "$shlibpath_overrides_runpath" = yes ||
8566 test "$enable_shared" = no; then
8567 # Fast installation is not necessary
8568 enable_fast_install=needless
8569 fi
8570
8571 striplib=
8572 old_striplib=
8573 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8574 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8575 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8576 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8577 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8578 echo "$as_me:$LINENO: result: yes" >&5
8579 echo "${ECHO_T}yes" >&6
8580 else
8581 # FIXME - insert some real tests, host_os isn't really good enough
8582 case $host_os in
8583 darwin*)
8584 if test -n "$STRIP" ; then
8585 striplib="$STRIP -x"
8586 echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8591 fi
8592 ;;
8593 *)
8594 echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6
8596 ;;
8597 esac
8598 fi
8599
8600 if test "x$enable_dlopen" != xyes; then
8601 enable_dlopen=unknown
8602 enable_dlopen_self=unknown
8603 enable_dlopen_self_static=unknown
8604 else
8605 lt_cv_dlopen=no
8606 lt_cv_dlopen_libs=
8607
8608 case $host_os in
8609 beos*)
8610 lt_cv_dlopen="load_add_on"
8611 lt_cv_dlopen_libs=
8612 lt_cv_dlopen_self=yes
8613 ;;
8614
8615 mingw* | pw32*)
8616 lt_cv_dlopen="LoadLibrary"
8617 lt_cv_dlopen_libs=
8618 ;;
8619
8620 cygwin*)
8621 lt_cv_dlopen="dlopen"
8622 lt_cv_dlopen_libs=
8623 ;;
8624
8625 darwin*)
8626 # if libdl is installed we need to link against it
8627 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8628 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8629 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-ldl $LIBS"
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640
8641 /* Override any gcc2 internal prototype to avoid an error. */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8647 char dlopen ();
8648 int
8649 main ()
8650 {
8651 dlopen ();
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 rm -f conftest.$ac_objext conftest$ac_exeext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658 (eval $ac_link) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_cv_lib_dl_dlopen=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_cv_lib_dl_dlopen=no
8684 fi
8685 rm -f conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8688 fi
8689 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8690 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8691 if test $ac_cv_lib_dl_dlopen = yes; then
8692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8693 else
8694
8695 lt_cv_dlopen="dyld"
8696 lt_cv_dlopen_libs=
8697 lt_cv_dlopen_self=yes
8698
8699 fi
8700
8701 ;;
8702
8703 *)
8704 echo "$as_me:$LINENO: checking for shl_load" >&5
8705 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8706 if test "${ac_cv_func_shl_load+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8717 #define shl_load innocuous_shl_load
8718
8719 /* System header to define __stub macros and hopefully few prototypes,
8720 which can conflict with char shl_load (); below.
8721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722 <limits.h> exists even on freestanding compilers. */
8723
8724 #ifdef __STDC__
8725 # include <limits.h>
8726 #else
8727 # include <assert.h>
8728 #endif
8729
8730 #undef shl_load
8731
8732 /* Override any gcc2 internal prototype to avoid an error. */
8733 #ifdef __cplusplus
8734 extern "C"
8735 {
8736 #endif
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8739 char shl_load ();
8740 /* The GNU C library defines this for functions which it implements
8741 to always fail with ENOSYS. Some functions are actually named
8742 something starting with __ and the normal name is an alias. */
8743 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8744 choke me
8745 #else
8746 char (*f) () = shl_load;
8747 #endif
8748 #ifdef __cplusplus
8749 }
8750 #endif
8751
8752 int
8753 main ()
8754 {
8755 return f != shl_load;
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_func_shl_load=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_cv_func_shl_load=no
8788 fi
8789 rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8793 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8794 if test $ac_cv_func_shl_load = yes; then
8795 lt_cv_dlopen="shl_load"
8796 else
8797 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8798 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8799 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 ac_check_lib_save_LIBS=$LIBS
8803 LIBS="-ldld $LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h. */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810
8811 /* Override any gcc2 internal prototype to avoid an error. */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816 builtin and then its argument prototype would still apply. */
8817 char shl_load ();
8818 int
8819 main ()
8820 {
8821 shl_load ();
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag"
8836 || test ! -s conftest.err'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; } &&
8842 { ac_try='test -s conftest$ac_exeext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 ac_cv_lib_dld_shl_load=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_lib_dld_shl_load=no
8854 fi
8855 rm -f conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8860 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8861 if test $ac_cv_lib_dld_shl_load = yes; then
8862 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8863 else
8864 echo "$as_me:$LINENO: checking for dlopen" >&5
8865 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8866 if test "${ac_cv_func_dlopen+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8877 #define dlopen innocuous_dlopen
8878
8879 /* System header to define __stub macros and hopefully few prototypes,
8880 which can conflict with char dlopen (); below.
8881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 <limits.h> exists even on freestanding compilers. */
8883
8884 #ifdef __STDC__
8885 # include <limits.h>
8886 #else
8887 # include <assert.h>
8888 #endif
8889
8890 #undef dlopen
8891
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 #ifdef __cplusplus
8894 extern "C"
8895 {
8896 #endif
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8899 char dlopen ();
8900 /* The GNU C library defines this for functions which it implements
8901 to always fail with ENOSYS. Some functions are actually named
8902 something starting with __ and the normal name is an alias. */
8903 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8904 choke me
8905 #else
8906 char (*f) () = dlopen;
8907 #endif
8908 #ifdef __cplusplus
8909 }
8910 #endif
8911
8912 int
8913 main ()
8914 {
8915 return f != dlopen;
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_func_dlopen=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_func_dlopen=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 fi
8952 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8953 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8954 if test $ac_cv_func_dlopen = yes; then
8955 lt_cv_dlopen="dlopen"
8956 else
8957 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 ac_check_lib_save_LIBS=$LIBS
8963 LIBS="-ldl $LIBS"
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970
8971 /* Override any gcc2 internal prototype to avoid an error. */
8972 #ifdef __cplusplus
8973 extern "C"
8974 #endif
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8977 char dlopen ();
8978 int
8979 main ()
8980 {
8981 dlopen ();
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_lib_dl_dlopen=yes
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_cv_lib_dl_dlopen=no
9014 fi
9015 rm -f conftest.err conftest.$ac_objext \
9016 conftest$ac_exeext conftest.$ac_ext
9017 LIBS=$ac_check_lib_save_LIBS
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9020 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9021 if test $ac_cv_lib_dl_dlopen = yes; then
9022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9023 else
9024 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9025 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lsvld $LIBS"
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037
9038 /* Override any gcc2 internal prototype to avoid an error. */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044 char dlopen ();
9045 int
9046 main ()
9047 {
9048 dlopen ();
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_lib_svld_dlopen=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_cv_lib_svld_dlopen=no
9081 fi
9082 rm -f conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9088 if test $ac_cv_lib_svld_dlopen = yes; then
9089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9090 else
9091 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-ldld $LIBS"
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104
9105 /* Override any gcc2 internal prototype to avoid an error. */
9106 #ifdef __cplusplus
9107 extern "C"
9108 #endif
9109 /* We use char because int might match the return type of a gcc2
9110 builtin and then its argument prototype would still apply. */
9111 char dld_link ();
9112 int
9113 main ()
9114 {
9115 dld_link ();
9116 ;
9117 return 0;
9118 }
9119 _ACEOF
9120 rm -f conftest.$ac_objext conftest$ac_exeext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122 (eval $ac_link) 2>conftest.er1
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try='test -s conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_lib_dld_dld_link=yes
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 ac_cv_lib_dld_dld_link=no
9148 fi
9149 rm -f conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LIBS=$ac_check_lib_save_LIBS
9152 fi
9153 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9154 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9155 if test $ac_cv_lib_dld_dld_link = yes; then
9156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9157 fi
9158
9159
9160 fi
9161
9162
9163 fi
9164
9165
9166 fi
9167
9168
9169 fi
9170
9171
9172 fi
9173
9174 ;;
9175 esac
9176
9177 if test "x$lt_cv_dlopen" != xno; then
9178 enable_dlopen=yes
9179 else
9180 enable_dlopen=no
9181 fi
9182
9183 case $lt_cv_dlopen in
9184 dlopen)
9185 save_CPPFLAGS="$CPPFLAGS"
9186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9187
9188 save_LDFLAGS="$LDFLAGS"
9189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9190
9191 save_LIBS="$LIBS"
9192 LIBS="$lt_cv_dlopen_libs $LIBS"
9193
9194 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9195 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9196 if test "${lt_cv_dlopen_self+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 if test "$cross_compiling" = yes; then :
9200 lt_cv_dlopen_self=cross
9201 else
9202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9203 lt_status=$lt_dlunknown
9204 cat > conftest.$ac_ext <<EOF
9205 #line 9205 "configure"
9206 #include "confdefs.h"
9207
9208 #if HAVE_DLFCN_H
9209 #include <dlfcn.h>
9210 #endif
9211
9212 #include <stdio.h>
9213
9214 #ifdef RTLD_GLOBAL
9215 # define LT_DLGLOBAL RTLD_GLOBAL
9216 #else
9217 # ifdef DL_GLOBAL
9218 # define LT_DLGLOBAL DL_GLOBAL
9219 # else
9220 # define LT_DLGLOBAL 0
9221 # endif
9222 #endif
9223
9224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9225 find out it does not work in some platform. */
9226 #ifndef LT_DLLAZY_OR_NOW
9227 # ifdef RTLD_LAZY
9228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9229 # else
9230 # ifdef DL_LAZY
9231 # define LT_DLLAZY_OR_NOW DL_LAZY
9232 # else
9233 # ifdef RTLD_NOW
9234 # define LT_DLLAZY_OR_NOW RTLD_NOW
9235 # else
9236 # ifdef DL_NOW
9237 # define LT_DLLAZY_OR_NOW DL_NOW
9238 # else
9239 # define LT_DLLAZY_OR_NOW 0
9240 # endif
9241 # endif
9242 # endif
9243 # endif
9244 #endif
9245
9246 #ifdef __cplusplus
9247 extern "C" void exit (int);
9248 #endif
9249
9250 void fnord() { int i=42;}
9251 int main ()
9252 {
9253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9254 int status = $lt_dlunknown;
9255
9256 if (self)
9257 {
9258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9260 /* dlclose (self); */
9261 }
9262 else
9263 puts (dlerror ());
9264
9265 exit (status);
9266 }
9267 EOF
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9273 (./conftest; exit; ) >&5 2>/dev/null
9274 lt_status=$?
9275 case x$lt_status in
9276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9278 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9279 esac
9280 else :
9281 # compilation failed
9282 lt_cv_dlopen_self=no
9283 fi
9284 fi
9285 rm -fr conftest*
9286
9287
9288 fi
9289 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9290 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9291
9292 if test "x$lt_cv_dlopen_self" = xyes; then
9293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9294 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9295 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9296 if test "${lt_cv_dlopen_self_static+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299 if test "$cross_compiling" = yes; then :
9300 lt_cv_dlopen_self_static=cross
9301 else
9302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9303 lt_status=$lt_dlunknown
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9305 "configure"
9306 #include "confdefs.h"
9307
9308 #if HAVE_DLFCN_H
9309 #include <dlfcn.h>
9310 #endif
9311
9312 #include <stdio.h>
9313
9314 #ifdef RTLD_GLOBAL
9315 # define LT_DLGLOBAL RTLD_GLOBAL
9316 #else
9317 # ifdef DL_GLOBAL
9318 # define LT_DLGLOBAL DL_GLOBAL
9319 # else
9320 # define LT_DLGLOBAL 0
9321 # endif
9322 #endif
9323
9324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9325 find out it does not work in some platform. */
9326 #ifndef LT_DLLAZY_OR_NOW
9327 # ifdef RTLD_LAZY
9328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9329 # else
9330 # ifdef DL_LAZY
9331 # define LT_DLLAZY_OR_NOW DL_LAZY
9332 # else
9333 # ifdef RTLD_NOW
9334 # define LT_DLLAZY_OR_NOW RTLD_NOW
9335 # else
9336 # ifdef DL_NOW
9337 # define LT_DLLAZY_OR_NOW DL_NOW
9338 # else
9339 # define LT_DLLAZY_OR_NOW 0
9340 # endif
9341 # endif
9342 # endif
9343 # endif
9344 #endif
9345
9346 #ifdef __cplusplus
9347 extern "C" void exit (int);
9348 #endif
9349
9350 void fnord() { int i=42;}
9351 int main ()
9352 {
9353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9354 int status = $lt_dlunknown;
9355
9356 if (self)
9357 {
9358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9359 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9360 /* dlclose (self); */
9361 }
9362 else
9363 puts (dlerror ());
9364
9365 exit (status);
9366 }
9367 EOF
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9373 (./conftest; exit; ) >&5 2>/dev/null
9374 lt_status=$?
9375 case x$lt_status in
9376 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9377 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9378 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9379 esac
9380 else :
9381 # compilation failed
9382 lt_cv_dlopen_self_static=no
9383 fi
9384 fi
9385 rm -fr conftest*
9386
9387
9388 fi
9389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9390 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9391 fi
9392
9393 CPPFLAGS="$save_CPPFLAGS"
9394 LDFLAGS="$save_LDFLAGS"
9395 LIBS="$save_LIBS"
9396 ;;
9397 esac
9398
9399 case $lt_cv_dlopen_self in
9400 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9401 *) enable_dlopen_self=unknown ;;
9402 esac
9403
9404 case $lt_cv_dlopen_self_static in
9405 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9406 *) enable_dlopen_self_static=unknown ;;
9407 esac
9408 fi
9409
9410
9411 # Report which library types will actually be built
9412 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9413 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9414 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9415 echo "${ECHO_T}$can_build_shared" >&6
9416
9417 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9418 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9419 test "$can_build_shared" = "no" && enable_shared=no
9420
9421 # On AIX, shared libraries and static libraries use the same namespace, and
9422 # are all built from PIC.
9423 case $host_os in
9424 aix3*)
9425 test "$enable_shared" = yes && enable_static=no
9426 if test -n "$RANLIB"; then
9427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9428 postinstall_cmds='$RANLIB $lib'
9429 fi
9430 ;;
9431
9432 aix4* | aix5*)
9433 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9434 test "$enable_shared" = yes && enable_static=no
9435 fi
9436 ;;
9437 esac
9438 echo "$as_me:$LINENO: result: $enable_shared" >&5
9439 echo "${ECHO_T}$enable_shared" >&6
9440
9441 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9442 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9443 # Make sure either enable_shared or enable_static is yes.
9444 test "$enable_shared" = yes || enable_static=yes
9445 echo "$as_me:$LINENO: result: $enable_static" >&5
9446 echo "${ECHO_T}$enable_static" >&6
9447
9448 # The else clause should only fire when bootstrapping the
9449 # libtool distribution, otherwise you forgot to ship ltmain.sh
9450 # with your package, and you will get complaints that there are
9451 # no rules to generate ltmain.sh.
9452 if test -f "$ltmain"; then
9453 # See if we are running on zsh, and set the options which allow our commands through
9454 # without removal of \ escapes.
9455 if test -n "${ZSH_VERSION+set}" ; then
9456 setopt NO_GLOB_SUBST
9457 fi
9458 # Now quote all the things that may contain metacharacters while being
9459 # careful not to overquote the AC_SUBSTed values. We take copies of the
9460 # variables and quote the copies for generation of the libtool script.
9461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9462 SED SHELL STRIP \
9463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9465 deplibs_check_method reload_flag reload_cmds need_locks \
9466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9467 lt_cv_sys_global_symbol_to_c_name_address \
9468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9469 old_postinstall_cmds old_postuninstall_cmds \
9470 compiler \
9471 CC \
9472 LD \
9473 lt_prog_compiler_wl \
9474 lt_prog_compiler_pic \
9475 lt_prog_compiler_static \
9476 lt_prog_compiler_no_builtin_flag \
9477 export_dynamic_flag_spec \
9478 thread_safe_flag_spec \
9479 whole_archive_flag_spec \
9480 enable_shared_with_static_runtimes \
9481 old_archive_cmds \
9482 old_archive_from_new_cmds \
9483 predep_objects \
9484 postdep_objects \
9485 predeps \
9486 postdeps \
9487 compiler_lib_search_path \
9488 archive_cmds \
9489 archive_expsym_cmds \
9490 postinstall_cmds \
9491 postuninstall_cmds \
9492 old_archive_from_expsyms_cmds \
9493 allow_undefined_flag \
9494 no_undefined_flag \
9495 export_symbols_cmds \
9496 hardcode_libdir_flag_spec \
9497 hardcode_libdir_flag_spec_ld \
9498 hardcode_libdir_separator \
9499 hardcode_automatic \
9500 module_cmds \
9501 module_expsym_cmds \
9502 lt_cv_prog_compiler_c_o \
9503 exclude_expsyms \
9504 include_expsyms; do
9505
9506 case $var in
9507 old_archive_cmds | \
9508 old_archive_from_new_cmds | \
9509 archive_cmds | \
9510 archive_expsym_cmds | \
9511 module_cmds | \
9512 module_expsym_cmds | \
9513 old_archive_from_expsyms_cmds | \
9514 export_symbols_cmds | \
9515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9516 postinstall_cmds | postuninstall_cmds | \
9517 old_postinstall_cmds | old_postuninstall_cmds | \
9518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9519 # Double-quote double-evaled strings.
9520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9521 ;;
9522 *)
9523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9524 ;;
9525 esac
9526 done
9527
9528 case $lt_echo in
9529 *'\$0 --fallback-echo"')
9530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9531 ;;
9532 esac
9533
9534 cfgfile="${ofile}T"
9535 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9536 $rm -f "$cfgfile"
9537 { echo "$as_me:$LINENO: creating $ofile" >&5
9538 echo "$as_me: creating $ofile" >&6;}
9539
9540 cat <<__EOF__ >> "$cfgfile"
9541 #! $SHELL
9542
9543 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9544 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9545 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9546 #
9547 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9548 # Free Software Foundation, Inc.
9549 #
9550 # This file is part of GNU Libtool:
9551 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9552 #
9553 # This program is free software; you can redistribute it and/or modify
9554 # it under the terms of the GNU General Public License as published by
9555 # the Free Software Foundation; either version 2 of the License, or
9556 # (at your option) any later version.
9557 #
9558 # This program is distributed in the hope that it will be useful, but
9559 # WITHOUT ANY WARRANTY; without even the implied warranty of
9560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9561 # General Public License for more details.
9562 #
9563 # You should have received a copy of the GNU General Public License
9564 # along with this program; if not, write to the Free Software
9565 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9566 #
9567 # As a special exception to the GNU General Public License, if you
9568 # distribute this file as part of a program that contains a
9569 # configuration script generated by Autoconf, you may include it under
9570 # the same distribution terms that you use for the rest of that program.
9571
9572 # A sed program that does not truncate output.
9573 SED=$lt_SED
9574
9575 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9576 Xsed="$SED -e 1s/^X//"
9577
9578 # The HP-UX ksh and POSIX shell print the target directory to stdout
9579 # if CDPATH is set.
9580 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9581
9582 # The names of the tagged configurations supported by this script.
9583 available_tags=
9584
9585 # ### BEGIN LIBTOOL CONFIG
9586
9587 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9588
9589 # Shell to use when invoking shell scripts.
9590 SHELL=$lt_SHELL
9591
9592 # Whether or not to build shared libraries.
9593 build_libtool_libs=$enable_shared
9594
9595 # Whether or not to build static libraries.
9596 build_old_libs=$enable_static
9597
9598 # Whether or not to add -lc for building shared libraries.
9599 build_libtool_need_lc=$archive_cmds_need_lc
9600
9601 # Whether or not to disallow shared libs when runtime libs are static
9602 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9603
9604 # Whether or not to optimize for fast installation.
9605 fast_install=$enable_fast_install
9606
9607 # The host system.
9608 host_alias=$host_alias
9609 host=$host
9610 host_os=$host_os
9611
9612 # The build system.
9613 build_alias=$build_alias
9614 build=$build
9615 build_os=$build_os
9616
9617 # An echo program that does not interpret backslashes.
9618 echo=$lt_echo
9619
9620 # The archiver.
9621 AR=$lt_AR
9622 AR_FLAGS=$lt_AR_FLAGS
9623
9624 # A C compiler.
9625 LTCC=$lt_LTCC
9626
9627 # LTCC compiler flags.
9628 LTCFLAGS=$lt_LTCFLAGS
9629
9630 # A language-specific compiler.
9631 CC=$lt_compiler
9632
9633 # Is the compiler the GNU C compiler?
9634 with_gcc=$GCC
9635
9636 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9637 gcc_ver=\`gcc -dumpversion\`
9638
9639 # An ERE matcher.
9640 EGREP=$lt_EGREP
9641
9642 # The linker used to build libraries.
9643 LD=$lt_LD
9644
9645 # Whether we need hard or soft links.
9646 LN_S=$lt_LN_S
9647
9648 # A BSD-compatible nm program.
9649 NM=$lt_NM
9650
9651 # A symbol stripping program
9652 STRIP=$lt_STRIP
9653
9654 # Used to examine libraries when file_magic_cmd begins "file"
9655 MAGIC_CMD=$MAGIC_CMD
9656
9657 # Used on cygwin: DLL creation program.
9658 DLLTOOL="$DLLTOOL"
9659
9660 # Used on cygwin: object dumper.
9661 OBJDUMP="$OBJDUMP"
9662
9663 # Used on cygwin: assembler.
9664 AS="$AS"
9665
9666 # The name of the directory that contains temporary libtool files.
9667 objdir=$objdir
9668
9669 # How to create reloadable object files.
9670 reload_flag=$lt_reload_flag
9671 reload_cmds=$lt_reload_cmds
9672
9673 # How to pass a linker flag through the compiler.
9674 wl=$lt_lt_prog_compiler_wl
9675
9676 # Object file suffix (normally "o").
9677 objext="$ac_objext"
9678
9679 # Old archive suffix (normally "a").
9680 libext="$libext"
9681
9682 # Shared library suffix (normally ".so").
9683 shrext_cmds='$shrext_cmds'
9684
9685 # Executable file suffix (normally "").
9686 exeext="$exeext"
9687
9688 # Additional compiler flags for building library objects.
9689 pic_flag=$lt_lt_prog_compiler_pic
9690 pic_mode=$pic_mode
9691
9692 # What is the maximum length of a command?
9693 max_cmd_len=$lt_cv_sys_max_cmd_len
9694
9695 # Does compiler simultaneously support -c and -o options?
9696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9697
9698 # Must we lock files when doing compilation?
9699 need_locks=$lt_need_locks
9700
9701 # Do we need the lib prefix for modules?
9702 need_lib_prefix=$need_lib_prefix
9703
9704 # Do we need a version for libraries?
9705 need_version=$need_version
9706
9707 # Whether dlopen is supported.
9708 dlopen_support=$enable_dlopen
9709
9710 # Whether dlopen of programs is supported.
9711 dlopen_self=$enable_dlopen_self
9712
9713 # Whether dlopen of statically linked programs is supported.
9714 dlopen_self_static=$enable_dlopen_self_static
9715
9716 # Compiler flag to prevent dynamic linking.
9717 link_static_flag=$lt_lt_prog_compiler_static
9718
9719 # Compiler flag to turn off builtin functions.
9720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9721
9722 # Compiler flag to allow reflexive dlopens.
9723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9724
9725 # Compiler flag to generate shared objects directly from archives.
9726 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9727
9728 # Compiler flag to generate thread-safe objects.
9729 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9730
9731 # Library versioning type.
9732 version_type=$version_type
9733
9734 # Format of library name prefix.
9735 libname_spec=$lt_libname_spec
9736
9737 # List of archive names. First name is the real one, the rest are links.
9738 # The last name is the one that the linker finds with -lNAME.
9739 library_names_spec=$lt_library_names_spec
9740
9741 # The coded name of the library, if different from the real name.
9742 soname_spec=$lt_soname_spec
9743
9744 # Commands used to build and install an old-style archive.
9745 RANLIB=$lt_RANLIB
9746 old_archive_cmds=$lt_old_archive_cmds
9747 old_postinstall_cmds=$lt_old_postinstall_cmds
9748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9749
9750 # Create an old-style archive from a shared archive.
9751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9752
9753 # Create a temporary old-style archive to link instead of a shared archive.
9754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9755
9756 # Commands used to build and install a shared archive.
9757 archive_cmds=$lt_archive_cmds
9758 archive_expsym_cmds=$lt_archive_expsym_cmds
9759 postinstall_cmds=$lt_postinstall_cmds
9760 postuninstall_cmds=$lt_postuninstall_cmds
9761
9762 # Commands used to build a loadable module (assumed same as above if empty)
9763 module_cmds=$lt_module_cmds
9764 module_expsym_cmds=$lt_module_expsym_cmds
9765
9766 # Commands to strip libraries.
9767 old_striplib=$lt_old_striplib
9768 striplib=$lt_striplib
9769
9770 # Dependencies to place before the objects being linked to create a
9771 # shared library.
9772 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9773
9774 # Dependencies to place after the objects being linked to create a
9775 # shared library.
9776 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9777
9778 # Dependencies to place before the objects being linked to create a
9779 # shared library.
9780 predeps=$lt_predeps
9781
9782 # Dependencies to place after the objects being linked to create a
9783 # shared library.
9784 postdeps=$lt_postdeps
9785
9786 # The library search path used internally by the compiler when linking
9787 # a shared library.
9788 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9789
9790 # Method to check whether dependent libraries are shared objects.
9791 deplibs_check_method=$lt_deplibs_check_method
9792
9793 # Command to use when deplibs_check_method == file_magic.
9794 file_magic_cmd=$lt_file_magic_cmd
9795
9796 # Flag that allows shared libraries with undefined symbols to be built.
9797 allow_undefined_flag=$lt_allow_undefined_flag
9798
9799 # Flag that forces no undefined symbols.
9800 no_undefined_flag=$lt_no_undefined_flag
9801
9802 # Commands used to finish a libtool library installation in a directory.
9803 finish_cmds=$lt_finish_cmds
9804
9805 # Same as above, but a single script fragment to be evaled but not shown.
9806 finish_eval=$lt_finish_eval
9807
9808 # Take the output of nm and produce a listing of raw symbols and C names.
9809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9810
9811 # Transform the output of nm in a proper C declaration
9812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9813
9814 # Transform the output of nm in a C name address pair
9815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9816
9817 # This is the shared library runtime path variable.
9818 runpath_var=$runpath_var
9819
9820 # This is the shared library path variable.
9821 shlibpath_var=$shlibpath_var
9822
9823 # Is shlibpath searched before the hard-coded library search path?
9824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9825
9826 # How to hardcode a shared library path into an executable.
9827 hardcode_action=$hardcode_action
9828
9829 # Whether we should hardcode library paths into libraries.
9830 hardcode_into_libs=$hardcode_into_libs
9831
9832 # Flag to hardcode \$libdir into a binary during linking.
9833 # This must work even if \$libdir does not exist.
9834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9835
9836 # If ld is used when linking, flag to hardcode \$libdir into
9837 # a binary during linking. This must work even if \$libdir does
9838 # not exist.
9839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9840
9841 # Whether we need a single -rpath flag with a separated argument.
9842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9843
9844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9845 # resulting binary.
9846 hardcode_direct=$hardcode_direct
9847
9848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9849 # resulting binary.
9850 hardcode_minus_L=$hardcode_minus_L
9851
9852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9853 # the resulting binary.
9854 hardcode_shlibpath_var=$hardcode_shlibpath_var
9855
9856 # Set to yes if building a shared library automatically hardcodes DIR into the library
9857 # and all subsequent libraries and executables linked against it.
9858 hardcode_automatic=$hardcode_automatic
9859
9860 # Variables whose values should be saved in libtool wrapper scripts and
9861 # restored at relink time.
9862 variables_saved_for_relink="$variables_saved_for_relink"
9863
9864 # Whether libtool must link a program against all its dependency libraries.
9865 link_all_deplibs=$link_all_deplibs
9866
9867 # Compile-time system search path for libraries
9868 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9869
9870 # Run-time system search path for libraries
9871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9872
9873 # Fix the shell variable \$srcfile for the compiler.
9874 fix_srcfile_path="$fix_srcfile_path"
9875
9876 # Set to yes if exported symbols are required.
9877 always_export_symbols=$always_export_symbols
9878
9879 # The commands to list exported symbols.
9880 export_symbols_cmds=$lt_export_symbols_cmds
9881
9882 # The commands to extract the exported symbol list from a shared archive.
9883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9884
9885 # Symbols that should not be listed in the preloaded symbols.
9886 exclude_expsyms=$lt_exclude_expsyms
9887
9888 # Symbols that must always be exported.
9889 include_expsyms=$lt_include_expsyms
9890
9891 # ### END LIBTOOL CONFIG
9892
9893 __EOF__
9894
9895
9896 case $host_os in
9897 aix3*)
9898 cat <<\EOF >> "$cfgfile"
9899
9900 # AIX sometimes has problems with the GCC collect2 program. For some
9901 # reason, if we set the COLLECT_NAMES environment variable, the problems
9902 # vanish in a puff of smoke.
9903 if test "X${COLLECT_NAMES+set}" != Xset; then
9904 COLLECT_NAMES=
9905 export COLLECT_NAMES
9906 fi
9907 EOF
9908 ;;
9909 esac
9910
9911 # We use sed instead of cat because bash on DJGPP gets confused if
9912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9913 # text mode, it properly converts lines to CR/LF. This bash problem
9914 # is reportedly fixed, but why not run on old versions too?
9915 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9916
9917 mv -f "$cfgfile" "$ofile" || \
9918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9919 chmod +x "$ofile"
9920
9921 else
9922 # If there is no Makefile yet, we rely on a make rule to execute
9923 # `config.status --recheck' to rerun these tests and create the
9924 # libtool script then.
9925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9926 if test -f "$ltmain_in"; then
9927 test -f Makefile && make "$ltmain"
9928 fi
9929 fi
9930
9931
9932 ac_ext=c
9933 ac_cpp='$CPP $CPPFLAGS'
9934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9937
9938 CC="$lt_save_CC"
9939
9940
9941 # Check whether --with-tags or --without-tags was given.
9942 if test "${with_tags+set}" = set; then
9943 withval="$with_tags"
9944 tagnames="$withval"
9945 fi;
9946
9947 if test -f "$ltmain" && test -n "$tagnames"; then
9948 if test ! -f "${ofile}"; then
9949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9950 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9951 fi
9952
9953 if test -z "$LTCC"; then
9954 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9955 if test -z "$LTCC"; then
9956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9957 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9958 else
9959 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9960 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9961 fi
9962 fi
9963 if test -z "$LTCFLAGS"; then
9964 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9965 fi
9966
9967 # Extract list of available tagged configurations in $ofile.
9968 # Note that this assumes the entire list is on one line.
9969 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9970
9971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9972 for tagname in $tagnames; do
9973 IFS="$lt_save_ifs"
9974 # Check whether tagname contains only valid characters
9975 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9976 "") ;;
9977 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9978 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9979 { (exit 1); exit 1; }; }
9980 ;;
9981 esac
9982
9983 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9984 then
9985 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9986 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9987 { (exit 1); exit 1; }; }
9988 fi
9989
9990 # Update the list of available tags.
9991 if test -n "$tagname"; then
9992 echo appending configuration tag \"$tagname\" to $ofile
9993
9994 case $tagname in
9995 CXX)
9996 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9997 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9998 (test "X$CXX" != "Xg++"))) ; then
9999 ac_ext=cc
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10004
10005
10006
10007
10008 archive_cmds_need_lc_CXX=no
10009 allow_undefined_flag_CXX=
10010 always_export_symbols_CXX=no
10011 archive_expsym_cmds_CXX=
10012 export_dynamic_flag_spec_CXX=
10013 hardcode_direct_CXX=no
10014 hardcode_libdir_flag_spec_CXX=
10015 hardcode_libdir_flag_spec_ld_CXX=
10016 hardcode_libdir_separator_CXX=
10017 hardcode_minus_L_CXX=no
10018 hardcode_shlibpath_var_CXX=unsupported
10019 hardcode_automatic_CXX=no
10020 module_cmds_CXX=
10021 module_expsym_cmds_CXX=
10022 link_all_deplibs_CXX=unknown
10023 old_archive_cmds_CXX=$old_archive_cmds
10024 no_undefined_flag_CXX=
10025 whole_archive_flag_spec_CXX=
10026 enable_shared_with_static_runtimes_CXX=no
10027
10028 # Dependencies to place before and after the object being linked:
10029 predep_objects_CXX=
10030 postdep_objects_CXX=
10031 predeps_CXX=
10032 postdeps_CXX=
10033 compiler_lib_search_path_CXX=
10034
10035 # Source file extension for C++ test sources.
10036 ac_ext=cpp
10037
10038 # Object file extension for compiled C++ test sources.
10039 objext=o
10040 objext_CXX=$objext
10041
10042 # Code to be used in simple compile tests
10043 lt_simple_compile_test_code="int some_variable = 0;\n"
10044
10045 # Code to be used in simple link tests
10046 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10047
10048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10049
10050 # If no C compiler was specified, use CC.
10051 LTCC=${LTCC-"$CC"}
10052
10053 # If no C compiler flags were specified, use CFLAGS.
10054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10055
10056 # Allow CC to be a program name with arguments.
10057 compiler=$CC
10058
10059
10060 # save warnings/boilerplate of simple test code
10061 ac_outfile=conftest.$ac_objext
10062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10064 _lt_compiler_boilerplate=`cat conftest.err`
10065 $rm conftest*
10066
10067 ac_outfile=conftest.$ac_objext
10068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10070 _lt_linker_boilerplate=`cat conftest.err`
10071 $rm conftest*
10072
10073
10074 # Allow CC to be a program name with arguments.
10075 lt_save_CC=$CC
10076 lt_save_LD=$LD
10077 lt_save_GCC=$GCC
10078 GCC=$GXX
10079 lt_save_with_gnu_ld=$with_gnu_ld
10080 lt_save_path_LD=$lt_cv_path_LD
10081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10082 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10083 else
10084 $as_unset lt_cv_prog_gnu_ld
10085 fi
10086 if test -n "${lt_cv_path_LDCXX+set}"; then
10087 lt_cv_path_LD=$lt_cv_path_LDCXX
10088 else
10089 $as_unset lt_cv_path_LD
10090 fi
10091 test -z "${LDCXX+set}" || LD=$LDCXX
10092 CC=${CXX-"c++"}
10093 compiler=$CC
10094 compiler_CXX=$CC
10095 for cc_temp in $compiler""; do
10096 case $cc_temp in
10097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10099 \-*) ;;
10100 *) break;;
10101 esac
10102 done
10103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10104
10105
10106 # We don't want -fno-exception wen compiling C++ code, so set the
10107 # no_builtin_flag separately
10108 if test "$GXX" = yes; then
10109 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10110 else
10111 lt_prog_compiler_no_builtin_flag_CXX=
10112 fi
10113
10114 if test "$GXX" = yes; then
10115 # Set up default GNU C++ configuration
10116
10117
10118 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10119 if test "${with_gnu_ld+set}" = set; then
10120 withval="$with_gnu_ld"
10121 test "$withval" = no || with_gnu_ld=yes
10122 else
10123 with_gnu_ld=no
10124 fi;
10125 ac_prog=ld
10126 if test "$GCC" = yes; then
10127 # Check if gcc -print-prog-name=ld gives a path.
10128 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10129 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10130 case $host in
10131 *-*-mingw*)
10132 # gcc leaves a trailing carriage return which upsets mingw
10133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10134 *)
10135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10136 esac
10137 case $ac_prog in
10138 # Accept absolute paths.
10139 [\\/]* | ?:[\\/]*)
10140 re_direlt='/[^/][^/]*/\.\./'
10141 # Canonicalize the pathname of ld
10142 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10143 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10144 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10145 done
10146 test -z "$LD" && LD="$ac_prog"
10147 ;;
10148 "")
10149 # If it fails, then pretend we aren't using GCC.
10150 ac_prog=ld
10151 ;;
10152 *)
10153 # If it is relative, then search for the first ld in PATH.
10154 with_gnu_ld=unknown
10155 ;;
10156 esac
10157 elif test "$with_gnu_ld" = yes; then
10158 echo "$as_me:$LINENO: checking for GNU ld" >&5
10159 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10160 else
10161 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10162 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10163 fi
10164 if test "${lt_cv_path_LD+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 if test -z "$LD"; then
10168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10169 for ac_dir in $PATH; do
10170 IFS="$lt_save_ifs"
10171 test -z "$ac_dir" && ac_dir=.
10172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10173 lt_cv_path_LD="$ac_dir/$ac_prog"
10174 # Check to see if the program is GNU ld. I'd rather use --version,
10175 # but apparently some variants of GNU ld only accept -v.
10176 # Break only if it was the GNU/non-GNU ld that we prefer.
10177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10178 *GNU* | *'with BFD'*)
10179 test "$with_gnu_ld" != no && break
10180 ;;
10181 *)
10182 test "$with_gnu_ld" != yes && break
10183 ;;
10184 esac
10185 fi
10186 done
10187 IFS="$lt_save_ifs"
10188 else
10189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10190 fi
10191 fi
10192
10193 LD="$lt_cv_path_LD"
10194 if test -n "$LD"; then
10195 echo "$as_me:$LINENO: result: $LD" >&5
10196 echo "${ECHO_T}$LD" >&6
10197 else
10198 echo "$as_me:$LINENO: result: no" >&5
10199 echo "${ECHO_T}no" >&6
10200 fi
10201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10203 { (exit 1); exit 1; }; }
10204 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10210 case `$LD -v 2>&1 </dev/null` in
10211 *GNU* | *'with BFD'*)
10212 lt_cv_prog_gnu_ld=yes
10213 ;;
10214 *)
10215 lt_cv_prog_gnu_ld=no
10216 ;;
10217 esac
10218 fi
10219 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10220 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10221 with_gnu_ld=$lt_cv_prog_gnu_ld
10222
10223
10224
10225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10226 # archiving commands below assume that GNU ld is being used.
10227 if test "$with_gnu_ld" = yes; then
10228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10229 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'
10230
10231 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10233
10234 # If archive_cmds runs LD, not CC, wlarc should be empty
10235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10236 # investigate it a little bit more. (MM)
10237 wlarc='${wl}'
10238
10239 # ancient GNU ld didn't support --whole-archive et. al.
10240 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10241 grep 'no-whole-archive' > /dev/null; then
10242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10243 else
10244 whole_archive_flag_spec_CXX=
10245 fi
10246 else
10247 with_gnu_ld=no
10248 wlarc=
10249
10250 # A generic and very simple default shared library creation
10251 # command for GNU C++ for the case where it uses the native
10252 # linker, instead of GNU ld. If possible, this setting should
10253 # overridden to take advantage of the native linker features on
10254 # the platform it is being used on.
10255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10256 fi
10257
10258 # Commands to make compiler produce verbose output that lists
10259 # what "hidden" libraries, object files and flags are used when
10260 # linking a shared library.
10261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10262
10263 else
10264 GXX=no
10265 with_gnu_ld=no
10266 wlarc=
10267 fi
10268
10269 # PORTME: fill in a description of your system's C++ link characteristics
10270 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10272 ld_shlibs_CXX=yes
10273 case $host_os in
10274 aix3*)
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 ;;
10278 aix4* | aix5*)
10279 if test "$host_cpu" = ia64; then
10280 # On IA64, the linker does run time linking by default, so we don't
10281 # have to do anything special.
10282 aix_use_runtimelinking=no
10283 exp_sym_flag='-Bexport'
10284 no_entry_flag=""
10285 else
10286 aix_use_runtimelinking=no
10287
10288 # Test if we are trying to use run time linking or normal
10289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10290 # need to do runtime linking.
10291 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10292 for ld_flag in $LDFLAGS; do
10293 case $ld_flag in
10294 *-brtl*)
10295 aix_use_runtimelinking=yes
10296 break
10297 ;;
10298 esac
10299 done
10300 ;;
10301 esac
10302
10303 exp_sym_flag='-bexport'
10304 no_entry_flag='-bnoentry'
10305 fi
10306
10307 # When large executables or shared objects are built, AIX ld can
10308 # have problems creating the table of contents. If linking a library
10309 # or program results in "error TOC overflow" add -mminimal-toc to
10310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10312
10313 archive_cmds_CXX=''
10314 hardcode_direct_CXX=yes
10315 hardcode_libdir_separator_CXX=':'
10316 link_all_deplibs_CXX=yes
10317
10318 if test "$GXX" = yes; then
10319 case $host_os in aix4.[012]|aix4.[012].*)
10320 # We only want to do this on AIX 4.2 and lower, the check
10321 # below for broken collect2 doesn't work under 4.3+
10322 collect2name=`${CC} -print-prog-name=collect2`
10323 if test -f "$collect2name" && \
10324 strings "$collect2name" | grep resolve_lib_name >/dev/null
10325 then
10326 # We have reworked collect2
10327 hardcode_direct_CXX=yes
10328 else
10329 # We have old collect2
10330 hardcode_direct_CXX=unsupported
10331 # It fails to find uninstalled libraries when the uninstalled
10332 # path is not listed in the libpath. Setting hardcode_minus_L
10333 # to unsupported forces relinking
10334 hardcode_minus_L_CXX=yes
10335 hardcode_libdir_flag_spec_CXX='-L$libdir'
10336 hardcode_libdir_separator_CXX=
10337 fi
10338 ;;
10339 esac
10340 shared_flag='-shared'
10341 if test "$aix_use_runtimelinking" = yes; then
10342 shared_flag="$shared_flag "'${wl}-G'
10343 fi
10344 else
10345 # not using gcc
10346 if test "$host_cpu" = ia64; then
10347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10348 # chokes on -Wl,-G. The following line is correct:
10349 shared_flag='-G'
10350 else
10351 if test "$aix_use_runtimelinking" = yes; then
10352 shared_flag='${wl}-G'
10353 else
10354 shared_flag='${wl}-bM:SRE'
10355 fi
10356 fi
10357 fi
10358
10359 # It seems that -bexpall does not export symbols beginning with
10360 # underscore (_), so it is better to generate a list of symbols to export.
10361 always_export_symbols_CXX=yes
10362 if test "$aix_use_runtimelinking" = yes; then
10363 # Warning - without using the other runtime loading flags (-brtl),
10364 # -berok will link without error, but may produce a broken library.
10365 allow_undefined_flag_CXX='-berok'
10366 # Determine the default libpath from the value encoded in an empty executable.
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373
10374 int
10375 main ()
10376 {
10377
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>conftest.er1
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } &&
10391 { ac_try='test -z "$ac_cxx_werror_flag"
10392 || test ! -s conftest.err'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404
10405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10406 }'`
10407 # Check for a 64-bit object if we didn't find anything.
10408 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; }
10409 }'`; fi
10410 else
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 fi
10415 rm -f conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10418
10419 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10420
10421 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10422 else
10423 if test "$host_cpu" = ia64; then
10424 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10425 allow_undefined_flag_CXX="-z nodefs"
10426 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10427 else
10428 # Determine the default libpath from the value encoded in an empty executable.
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435
10436 int
10437 main ()
10438 {
10439
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_cxx_werror_flag"
10454 || test ! -s conftest.err'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466
10467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10468 }'`
10469 # Check for a 64-bit object if we didn't find anything.
10470 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; }
10471 }'`; fi
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 fi
10477 rm -f conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10480
10481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10482 # Warning - without using the other run time loading flags,
10483 # -berok will link without error, but may produce a broken library.
10484 no_undefined_flag_CXX=' ${wl}-bernotok'
10485 allow_undefined_flag_CXX=' ${wl}-berok'
10486 # Exported symbols can be pulled into shared objects from archives
10487 whole_archive_flag_spec_CXX='$convenience'
10488 archive_cmds_need_lc_CXX=yes
10489 # This is similar to how AIX traditionally builds its shared libraries.
10490 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10491 fi
10492 fi
10493 ;;
10494
10495 beos*)
10496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10497 allow_undefined_flag_CXX=unsupported
10498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10499 # support --undefined. This deserves some investigation. FIXME
10500 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501 else
10502 ld_shlibs_CXX=no
10503 fi
10504 ;;
10505
10506 chorus*)
10507 case $cc_basename in
10508 *)
10509 # FIXME: insert proper C++ library support
10510 ld_shlibs_CXX=no
10511 ;;
10512 esac
10513 ;;
10514
10515 cygwin* | mingw* | pw32*)
10516 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10517 # as there is no search path for DLLs.
10518 hardcode_libdir_flag_spec_CXX='-L$libdir'
10519 allow_undefined_flag_CXX=unsupported
10520 always_export_symbols_CXX=no
10521 enable_shared_with_static_runtimes_CXX=yes
10522
10523 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10525 # If the export-symbols file already is a .def file (1st line
10526 # is EXPORTS), use it as is; otherwise, prepend...
10527 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10528 cp $export_symbols $output_objdir/$soname.def;
10529 else
10530 echo EXPORTS > $output_objdir/$soname.def;
10531 cat $export_symbols >> $output_objdir/$soname.def;
10532 fi~
10533 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10534 else
10535 ld_shlibs_CXX=no
10536 fi
10537 ;;
10538 darwin* | rhapsody*)
10539 case $host_os in
10540 rhapsody* | darwin1.[012])
10541 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10542 ;;
10543 *) # Darwin 1.3 on
10544 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10545 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10546 else
10547 case ${MACOSX_DEPLOYMENT_TARGET} in
10548 10.[012])
10549 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10550 ;;
10551 10.*)
10552 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10553 ;;
10554 esac
10555 fi
10556 ;;
10557 esac
10558 archive_cmds_need_lc_CXX=no
10559 hardcode_direct_CXX=no
10560 hardcode_automatic_CXX=yes
10561 hardcode_shlibpath_var_CXX=unsupported
10562 whole_archive_flag_spec_CXX=''
10563 link_all_deplibs_CXX=yes
10564
10565 if test "$GXX" = yes ; then
10566 lt_int_apple_cc_single_mod=no
10567 output_verbose_link_cmd='echo'
10568 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10569 lt_int_apple_cc_single_mod=yes
10570 fi
10571 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10572 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10573 else
10574 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'
10575 fi
10576 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10577 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10578 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10579 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}'
10580 else
10581 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}'
10582 fi
10583 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}'
10584 else
10585 case $cc_basename in
10586 xlc*)
10587 output_verbose_link_cmd='echo'
10588 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'
10589 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10591 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}'
10592 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}'
10593 ;;
10594 *)
10595 ld_shlibs_CXX=no
10596 ;;
10597 esac
10598 fi
10599 ;;
10600
10601 dgux*)
10602 case $cc_basename in
10603 ec++*)
10604 # FIXME: insert proper C++ library support
10605 ld_shlibs_CXX=no
10606 ;;
10607 ghcx*)
10608 # Green Hills C++ Compiler
10609 # FIXME: insert proper C++ library support
10610 ld_shlibs_CXX=no
10611 ;;
10612 *)
10613 # FIXME: insert proper C++ library support
10614 ld_shlibs_CXX=no
10615 ;;
10616 esac
10617 ;;
10618 freebsd[12]*)
10619 # C++ shared libraries reported to be fairly broken before switch to ELF
10620 ld_shlibs_CXX=no
10621 ;;
10622 freebsd-elf*)
10623 archive_cmds_need_lc_CXX=no
10624 ;;
10625 freebsd* | kfreebsd*-gnu | dragonfly*)
10626 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10627 # conventions
10628 ld_shlibs_CXX=yes
10629 ;;
10630 gnu*)
10631 ;;
10632 hpux9*)
10633 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10634 hardcode_libdir_separator_CXX=:
10635 export_dynamic_flag_spec_CXX='${wl}-E'
10636 hardcode_direct_CXX=yes
10637 hardcode_minus_L_CXX=yes # Not in the search PATH,
10638 # but as the default
10639 # location of the library.
10640
10641 case $cc_basename in
10642 CC*)
10643 # FIXME: insert proper C++ library support
10644 ld_shlibs_CXX=no
10645 ;;
10646 aCC*)
10647 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'
10648 # Commands to make compiler produce verbose output that lists
10649 # what "hidden" libraries, object files and flags are used when
10650 # linking a shared library.
10651 #
10652 # There doesn't appear to be a way to prevent this compiler from
10653 # explicitly linking system object files so we need to strip them
10654 # from the output so that they don't get included in the library
10655 # dependencies.
10656 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'
10657 ;;
10658 *)
10659 if test "$GXX" = yes; then
10660 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'
10661 else
10662 # FIXME: insert proper C++ library support
10663 ld_shlibs_CXX=no
10664 fi
10665 ;;
10666 esac
10667 ;;
10668 hpux10*|hpux11*)
10669 if test $with_gnu_ld = no; then
10670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10671 hardcode_libdir_separator_CXX=:
10672
10673 case $host_cpu in
10674 hppa*64*|ia64*)
10675 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10676 ;;
10677 *)
10678 export_dynamic_flag_spec_CXX='${wl}-E'
10679 ;;
10680 esac
10681 fi
10682 case $host_cpu in
10683 hppa*64*|ia64*)
10684 hardcode_direct_CXX=no
10685 hardcode_shlibpath_var_CXX=no
10686 ;;
10687 *)
10688 hardcode_direct_CXX=yes
10689 hardcode_minus_L_CXX=yes # Not in the search PATH,
10690 # but as the default
10691 # location of the library.
10692 ;;
10693 esac
10694
10695 case $cc_basename in
10696 CC*)
10697 # FIXME: insert proper C++ library support
10698 ld_shlibs_CXX=no
10699 ;;
10700 aCC*)
10701 case $host_cpu in
10702 hppa*64*)
10703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10704 ;;
10705 ia64*)
10706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10707 ;;
10708 *)
10709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10710 ;;
10711 esac
10712 # Commands to make compiler produce verbose output that lists
10713 # what "hidden" libraries, object files and flags are used when
10714 # linking a shared library.
10715 #
10716 # There doesn't appear to be a way to prevent this compiler from
10717 # explicitly linking system object files so we need to strip them
10718 # from the output so that they don't get included in the library
10719 # dependencies.
10720 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'
10721 ;;
10722 *)
10723 if test "$GXX" = yes; then
10724 if test $with_gnu_ld = no; then
10725 case $host_cpu in
10726 hppa*64*)
10727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10728 ;;
10729 ia64*)
10730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10731 ;;
10732 *)
10733 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'
10734 ;;
10735 esac
10736 fi
10737 else
10738 # FIXME: insert proper C++ library support
10739 ld_shlibs_CXX=no
10740 fi
10741 ;;
10742 esac
10743 ;;
10744 interix3*)
10745 hardcode_direct_CXX=no
10746 hardcode_shlibpath_var_CXX=no
10747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10748 export_dynamic_flag_spec_CXX='${wl}-E'
10749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10750 # Instead, shared libraries are loaded at an image base (0x10000000 by
10751 # default) and relocated if they conflict, which is a slow very memory
10752 # consuming and fragmenting process. To avoid this, we pick a random,
10753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10755 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10756 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10757 ;;
10758 irix5* | irix6*)
10759 case $cc_basename in
10760 CC*)
10761 # SGI C++
10762 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'
10763
10764 # Archives containing C++ object files must be created using
10765 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10766 # necessary to make sure instantiated templates are included
10767 # in the archive.
10768 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10769 ;;
10770 *)
10771 if test "$GXX" = yes; then
10772 if test "$with_gnu_ld" = no; then
10773 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'
10774 else
10775 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'
10776 fi
10777 fi
10778 link_all_deplibs_CXX=yes
10779 ;;
10780 esac
10781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10782 hardcode_libdir_separator_CXX=:
10783 ;;
10784 linux*)
10785 case $cc_basename in
10786 KCC*)
10787 # Kuck and Associates, Inc. (KAI) C++ Compiler
10788
10789 # KCC will only create a shared library if the output file
10790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10791 # to its proper name (with version) after linking.
10792 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'
10793 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'
10794 # Commands to make compiler produce verbose output that lists
10795 # what "hidden" libraries, object files and flags are used when
10796 # linking a shared library.
10797 #
10798 # There doesn't appear to be a way to prevent this compiler from
10799 # explicitly linking system object files so we need to strip them
10800 # from the output so that they don't get included in the library
10801 # dependencies.
10802 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'
10803
10804 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10806
10807 # Archives containing C++ object files must be created using
10808 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10809 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10810 ;;
10811 icpc*)
10812 # Intel C++
10813 with_gnu_ld=yes
10814 # version 8.0 and above of icpc choke on multiply defined symbols
10815 # if we add $predep_objects and $postdep_objects, however 7.1 and
10816 # earlier do not add the objects themselves.
10817 case `$CC -V 2>&1` in
10818 *"Version 7."*)
10819 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 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'
10821 ;;
10822 *) # Version 8.0 or newer
10823 tmp_idyn=
10824 case $host_cpu in
10825 ia64*) tmp_idyn=' -i_dynamic';;
10826 esac
10827 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828 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'
10829 ;;
10830 esac
10831 archive_cmds_need_lc_CXX=no
10832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10834 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10835 ;;
10836 pgCC*)
10837 # Portland Group C++ compiler
10838 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10839 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'
10840
10841 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10842 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10843 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'
10844 ;;
10845 cxx*)
10846 # Compaq C++
10847 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10848 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'
10849
10850 runpath_var=LD_RUN_PATH
10851 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10852 hardcode_libdir_separator_CXX=:
10853
10854 # Commands to make compiler produce verbose output that lists
10855 # what "hidden" libraries, object files and flags are used when
10856 # linking a shared library.
10857 #
10858 # There doesn't appear to be a way to prevent this compiler from
10859 # explicitly linking system object files so we need to strip them
10860 # from the output so that they don't get included in the library
10861 # dependencies.
10862 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'
10863 ;;
10864 esac
10865 ;;
10866 lynxos*)
10867 # FIXME: insert proper C++ library support
10868 ld_shlibs_CXX=no
10869 ;;
10870 m88k*)
10871 # FIXME: insert proper C++ library support
10872 ld_shlibs_CXX=no
10873 ;;
10874 mvs*)
10875 case $cc_basename in
10876 cxx*)
10877 # FIXME: insert proper C++ library support
10878 ld_shlibs_CXX=no
10879 ;;
10880 *)
10881 # FIXME: insert proper C++ library support
10882 ld_shlibs_CXX=no
10883 ;;
10884 esac
10885 ;;
10886 netbsd*)
10887 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10888 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10889 wlarc=
10890 hardcode_libdir_flag_spec_CXX='-R$libdir'
10891 hardcode_direct_CXX=yes
10892 hardcode_shlibpath_var_CXX=no
10893 fi
10894 # Workaround some broken pre-1.5 toolchains
10895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10896 ;;
10897 openbsd2*)
10898 # C++ shared libraries are fairly broken
10899 ld_shlibs_CXX=no
10900 ;;
10901 openbsd*)
10902 hardcode_direct_CXX=yes
10903 hardcode_shlibpath_var_CXX=no
10904 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10907 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10908 export_dynamic_flag_spec_CXX='${wl}-E'
10909 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10910 fi
10911 output_verbose_link_cmd='echo'
10912 ;;
10913 osf3*)
10914 case $cc_basename in
10915 KCC*)
10916 # Kuck and Associates, Inc. (KAI) C++ Compiler
10917
10918 # KCC will only create a shared library if the output file
10919 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10920 # to its proper name (with version) after linking.
10921 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'
10922
10923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10924 hardcode_libdir_separator_CXX=:
10925
10926 # Archives containing C++ object files must be created using
10927 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10928 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10929
10930 ;;
10931 RCC*)
10932 # Rational C++ 2.4.1
10933 # FIXME: insert proper C++ library support
10934 ld_shlibs_CXX=no
10935 ;;
10936 cxx*)
10937 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10938 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'
10939
10940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10941 hardcode_libdir_separator_CXX=:
10942
10943 # Commands to make compiler produce verbose output that lists
10944 # what "hidden" libraries, object files and flags are used when
10945 # linking a shared library.
10946 #
10947 # There doesn't appear to be a way to prevent this compiler from
10948 # explicitly linking system object files so we need to strip them
10949 # from the output so that they don't get included in the library
10950 # dependencies.
10951 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'
10952 ;;
10953 *)
10954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10956 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'
10957
10958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10959 hardcode_libdir_separator_CXX=:
10960
10961 # Commands to make compiler produce verbose output that lists
10962 # what "hidden" libraries, object files and flags are used when
10963 # linking a shared library.
10964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10965
10966 else
10967 # FIXME: insert proper C++ library support
10968 ld_shlibs_CXX=no
10969 fi
10970 ;;
10971 esac
10972 ;;
10973 osf4* | osf5*)
10974 case $cc_basename in
10975 KCC*)
10976 # Kuck and Associates, Inc. (KAI) C++ Compiler
10977
10978 # KCC will only create a shared library if the output file
10979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10980 # to its proper name (with version) after linking.
10981 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'
10982
10983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984 hardcode_libdir_separator_CXX=:
10985
10986 # Archives containing C++ object files must be created using
10987 # the KAI C++ compiler.
10988 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10989 ;;
10990 RCC*)
10991 # Rational C++ 2.4.1
10992 # FIXME: insert proper C++ library support
10993 ld_shlibs_CXX=no
10994 ;;
10995 cxx*)
10996 allow_undefined_flag_CXX=' -expect_unresolved \*'
10997 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'
10998 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10999 echo "-hidden">> $lib.exp~
11000 $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~
11001 $rm $lib.exp'
11002
11003 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11004 hardcode_libdir_separator_CXX=:
11005
11006 # Commands to make compiler produce verbose output that lists
11007 # what "hidden" libraries, object files and flags are used when
11008 # linking a shared library.
11009 #
11010 # There doesn't appear to be a way to prevent this compiler from
11011 # explicitly linking system object files so we need to strip them
11012 # from the output so that they don't get included in the library
11013 # dependencies.
11014 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'
11015 ;;
11016 *)
11017 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11018 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11019 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'
11020
11021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11022 hardcode_libdir_separator_CXX=:
11023
11024 # Commands to make compiler produce verbose output that lists
11025 # what "hidden" libraries, object files and flags are used when
11026 # linking a shared library.
11027 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11028
11029 else
11030 # FIXME: insert proper C++ library support
11031 ld_shlibs_CXX=no
11032 fi
11033 ;;
11034 esac
11035 ;;
11036 psos*)
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11039 ;;
11040 sunos4*)
11041 case $cc_basename in
11042 CC*)
11043 # Sun C++ 4.x
11044 # FIXME: insert proper C++ library support
11045 ld_shlibs_CXX=no
11046 ;;
11047 lcc*)
11048 # Lucid
11049 # FIXME: insert proper C++ library support
11050 ld_shlibs_CXX=no
11051 ;;
11052 *)
11053 # FIXME: insert proper C++ library support
11054 ld_shlibs_CXX=no
11055 ;;
11056 esac
11057 ;;
11058 solaris*)
11059 case $cc_basename in
11060 CC*)
11061 # Sun C++ 4.2, 5.x and Centerline C++
11062 archive_cmds_need_lc_CXX=yes
11063 no_undefined_flag_CXX=' -zdefs'
11064 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11065 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11066 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11067
11068 hardcode_libdir_flag_spec_CXX='-R$libdir'
11069 hardcode_shlibpath_var_CXX=no
11070 case $host_os in
11071 solaris2.[0-5] | solaris2.[0-5].*) ;;
11072 *)
11073 # The C++ compiler is used as linker so we must use $wl
11074 # flag to pass the commands to the underlying system
11075 # linker. We must also pass each convience library through
11076 # to the system linker between allextract/defaultextract.
11077 # The C++ compiler will combine linker options so we
11078 # cannot just pass the convience library names through
11079 # without $wl.
11080 # Supported since Solaris 2.6 (maybe 2.5.1?)
11081 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'
11082 ;;
11083 esac
11084 link_all_deplibs_CXX=yes
11085
11086 output_verbose_link_cmd='echo'
11087
11088 # Archives containing C++ object files must be created using
11089 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11090 # necessary to make sure instantiated templates are included
11091 # in the archive.
11092 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11093 ;;
11094 gcx*)
11095 # Green Hills C++ Compiler
11096 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11097
11098 # The C++ compiler must be used to create the archive.
11099 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11100 ;;
11101 *)
11102 # GNU C++ compiler with Solaris linker
11103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11104 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11105 if $CC --version | grep -v '^2\.7' > /dev/null; then
11106 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11107 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11108 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11109
11110 # Commands to make compiler produce verbose output that lists
11111 # what "hidden" libraries, object files and flags are used when
11112 # linking a shared library.
11113 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11114 else
11115 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11116 # platform.
11117 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11118 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11119 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11120
11121 # Commands to make compiler produce verbose output that lists
11122 # what "hidden" libraries, object files and flags are used when
11123 # linking a shared library.
11124 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11125 fi
11126
11127 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11128 fi
11129 ;;
11130 esac
11131 ;;
11132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11133 no_undefined_flag_CXX='${wl}-z,text'
11134 archive_cmds_need_lc_CXX=no
11135 hardcode_shlibpath_var_CXX=no
11136 runpath_var='LD_RUN_PATH'
11137
11138 case $cc_basename in
11139 CC*)
11140 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11141 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11142 ;;
11143 *)
11144 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11145 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11146 ;;
11147 esac
11148 ;;
11149 sysv5* | sco3.2v5* | sco5v6*)
11150 # Note: We can NOT use -z defs as we might desire, because we do not
11151 # link with -lc, and that would cause any symbols used from libc to
11152 # always be unresolved, which means just about no library would
11153 # ever link correctly. If we're not using GNU ld we use -z text
11154 # though, which does catch some bad symbols but isn't as heavy-handed
11155 # as -z defs.
11156 # For security reasons, it is highly recommended that you always
11157 # use absolute paths for naming shared libraries, and exclude the
11158 # DT_RUNPATH tag from executables and libraries. But doing so
11159 # requires that you compile everything twice, which is a pain.
11160 # So that behaviour is only enabled if SCOABSPATH is set to a
11161 # non-empty value in the environment. Most likely only useful for
11162 # creating official distributions of packages.
11163 # This is a hack until libtool officially supports absolute path
11164 # names for shared libraries.
11165 no_undefined_flag_CXX='${wl}-z,text'
11166 allow_undefined_flag_CXX='${wl}-z,nodefs'
11167 archive_cmds_need_lc_CXX=no
11168 hardcode_shlibpath_var_CXX=no
11169 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11170 hardcode_libdir_separator_CXX=':'
11171 link_all_deplibs_CXX=yes
11172 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11173 runpath_var='LD_RUN_PATH'
11174
11175 case $cc_basename in
11176 CC*)
11177 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11178 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11179 ;;
11180 *)
11181 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 ;;
11184 esac
11185 ;;
11186 tandem*)
11187 case $cc_basename in
11188 NCC*)
11189 # NonStop-UX NCC 3.20
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 *)
11194 # FIXME: insert proper C++ library support
11195 ld_shlibs_CXX=no
11196 ;;
11197 esac
11198 ;;
11199 vxworks*)
11200 # FIXME: insert proper C++ library support
11201 ld_shlibs_CXX=no
11202 ;;
11203 *)
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 ;;
11207 esac
11208 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11209 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11210 test "$ld_shlibs_CXX" = no && can_build_shared=no
11211
11212 GCC_CXX="$GXX"
11213 LD_CXX="$LD"
11214
11215
11216 cat > conftest.$ac_ext <<EOF
11217 class Foo
11218 {
11219 public:
11220 Foo (void) { a = 0; }
11221 private:
11222 int a;
11223 };
11224 EOF
11225
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; then
11231 # Parse the compiler output and extract the necessary
11232 # objects, libraries and library flags.
11233
11234 # Sentinel used to keep track of whether or not we are before
11235 # the conftest object file.
11236 pre_test_object_deps_done=no
11237
11238 # The `*' in the case matches for architectures that use `case' in
11239 # $output_verbose_cmd can trigger glob expansion during the loop
11240 # eval without this substitution.
11241 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11242
11243 for p in `eval $output_verbose_link_cmd`; do
11244 case $p in
11245
11246 -L* | -R* | -l*)
11247 # Some compilers place space between "-{L,R}" and the path.
11248 # Remove the space.
11249 if test $p = "-L" \
11250 || test $p = "-R"; then
11251 prev=$p
11252 continue
11253 else
11254 prev=
11255 fi
11256
11257 if test "$pre_test_object_deps_done" = no; then
11258 case $p in
11259 -L* | -R*)
11260 # Internal compiler library paths should come after those
11261 # provided the user. The postdeps already come after the
11262 # user supplied libs so there is no need to process them.
11263 if test -z "$compiler_lib_search_path_CXX"; then
11264 compiler_lib_search_path_CXX="${prev}${p}"
11265 else
11266 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11267 fi
11268 ;;
11269 # The "-l" case would never come before the object being
11270 # linked, so don't bother handling this case.
11271 esac
11272 else
11273 if test -z "$postdeps_CXX"; then
11274 postdeps_CXX="${prev}${p}"
11275 else
11276 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11277 fi
11278 fi
11279 ;;
11280
11281 *.$objext)
11282 # This assumes that the test object file only shows up
11283 # once in the compiler output.
11284 if test "$p" = "conftest.$objext"; then
11285 pre_test_object_deps_done=yes
11286 continue
11287 fi
11288
11289 if test "$pre_test_object_deps_done" = no; then
11290 if test -z "$predep_objects_CXX"; then
11291 predep_objects_CXX="$p"
11292 else
11293 predep_objects_CXX="$predep_objects_CXX $p"
11294 fi
11295 else
11296 if test -z "$postdep_objects_CXX"; then
11297 postdep_objects_CXX="$p"
11298 else
11299 postdep_objects_CXX="$postdep_objects_CXX $p"
11300 fi
11301 fi
11302 ;;
11303
11304 *) ;; # Ignore the rest.
11305
11306 esac
11307 done
11308
11309 # Clean up.
11310 rm -f a.out a.exe
11311 else
11312 echo "libtool.m4: error: problem compiling CXX test program"
11313 fi
11314
11315 $rm -f confest.$objext
11316
11317 # PORTME: override above test on systems where it is broken
11318 case $host_os in
11319 interix3*)
11320 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11321 # hack all around it, let's just trust "g++" to DTRT.
11322 predep_objects_CXX=
11323 postdep_objects_CXX=
11324 postdeps_CXX=
11325 ;;
11326
11327 solaris*)
11328 case $cc_basename in
11329 CC*)
11330 # Adding this requires a known-good setup of shared libraries for
11331 # Sun compiler versions before 5.6, else PIC objects from an old
11332 # archive will be linked into the output, leading to subtle bugs.
11333 postdeps_CXX='-lCstd -lCrun'
11334 ;;
11335 esac
11336 ;;
11337 esac
11338
11339
11340 case " $postdeps_CXX " in
11341 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11342 esac
11343
11344 lt_prog_compiler_wl_CXX=
11345 lt_prog_compiler_pic_CXX=
11346 lt_prog_compiler_static_CXX=
11347
11348 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11349 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11350
11351 # C++ specific cases for pic, static, wl, etc.
11352 if test "$GXX" = yes; then
11353 lt_prog_compiler_wl_CXX='-Wl,'
11354 lt_prog_compiler_static_CXX='-static'
11355
11356 case $host_os in
11357 aix*)
11358 # All AIX code is PIC.
11359 if test "$host_cpu" = ia64; then
11360 # AIX 5 now supports IA64 processor
11361 lt_prog_compiler_static_CXX='-Bstatic'
11362 fi
11363 ;;
11364 amigaos*)
11365 # FIXME: we need at least 68020 code to build shared libraries, but
11366 # adding the `-m68020' flag to GCC prevents building anything better,
11367 # like `-m68040'.
11368 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11369 ;;
11370 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11371 # PIC is the default for these OSes.
11372 ;;
11373 mingw* | os2* | pw32*)
11374 # This hack is so that the source file can tell whether it is being
11375 # built for inclusion in a dll (and should export symbols for example).
11376 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11377 ;;
11378 darwin* | rhapsody*)
11379 # PIC is the default on this platform
11380 # Common symbols not allowed in MH_DYLIB files
11381 lt_prog_compiler_pic_CXX='-fno-common'
11382 ;;
11383 *djgpp*)
11384 # DJGPP does not support shared libraries at all
11385 lt_prog_compiler_pic_CXX=
11386 ;;
11387 interix3*)
11388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11389 # Instead, we relocate shared libraries at runtime.
11390 ;;
11391 sysv4*MP*)
11392 if test -d /usr/nec; then
11393 lt_prog_compiler_pic_CXX=-Kconform_pic
11394 fi
11395 ;;
11396 hpux*)
11397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11398 # not for PA HP-UX.
11399 case $host_cpu in
11400 hppa*64*|ia64*)
11401 ;;
11402 *)
11403 lt_prog_compiler_pic_CXX='-fPIC'
11404 ;;
11405 esac
11406 ;;
11407 *)
11408 lt_prog_compiler_pic_CXX='-fPIC'
11409 ;;
11410 esac
11411 else
11412 case $host_os in
11413 aix4* | aix5*)
11414 # All AIX code is PIC.
11415 if test "$host_cpu" = ia64; then
11416 # AIX 5 now supports IA64 processor
11417 lt_prog_compiler_static_CXX='-Bstatic'
11418 else
11419 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11420 fi
11421 ;;
11422 chorus*)
11423 case $cc_basename in
11424 cxch68*)
11425 # Green Hills C++ Compiler
11426 # _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"
11427 ;;
11428 esac
11429 ;;
11430 darwin*)
11431 # PIC is the default on this platform
11432 # Common symbols not allowed in MH_DYLIB files
11433 case $cc_basename in
11434 xlc*)
11435 lt_prog_compiler_pic_CXX='-qnocommon'
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 ;;
11438 esac
11439 ;;
11440 dgux*)
11441 case $cc_basename in
11442 ec++*)
11443 lt_prog_compiler_pic_CXX='-KPIC'
11444 ;;
11445 ghcx*)
11446 # Green Hills C++ Compiler
11447 lt_prog_compiler_pic_CXX='-pic'
11448 ;;
11449 *)
11450 ;;
11451 esac
11452 ;;
11453 freebsd* | kfreebsd*-gnu | dragonfly*)
11454 # FreeBSD uses GNU C++
11455 ;;
11456 hpux9* | hpux10* | hpux11*)
11457 case $cc_basename in
11458 CC*)
11459 lt_prog_compiler_wl_CXX='-Wl,'
11460 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11461 if test "$host_cpu" != ia64; then
11462 lt_prog_compiler_pic_CXX='+Z'
11463 fi
11464 ;;
11465 aCC*)
11466 lt_prog_compiler_wl_CXX='-Wl,'
11467 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11468 case $host_cpu in
11469 hppa*64*|ia64*)
11470 # +Z the default
11471 ;;
11472 *)
11473 lt_prog_compiler_pic_CXX='+Z'
11474 ;;
11475 esac
11476 ;;
11477 *)
11478 ;;
11479 esac
11480 ;;
11481 interix*)
11482 # This is c89, which is MS Visual C++ (no shared libs)
11483 # Anyone wants to do a port?
11484 ;;
11485 irix5* | irix6* | nonstopux*)
11486 case $cc_basename in
11487 CC*)
11488 lt_prog_compiler_wl_CXX='-Wl,'
11489 lt_prog_compiler_static_CXX='-non_shared'
11490 # CC pic flag -KPIC is the default.
11491 ;;
11492 *)
11493 ;;
11494 esac
11495 ;;
11496 linux*)
11497 case $cc_basename in
11498 KCC*)
11499 # KAI C++ Compiler
11500 lt_prog_compiler_wl_CXX='--backend -Wl,'
11501 lt_prog_compiler_pic_CXX='-fPIC'
11502 ;;
11503 icpc* | ecpc*)
11504 # Intel C++
11505 lt_prog_compiler_wl_CXX='-Wl,'
11506 lt_prog_compiler_pic_CXX='-KPIC'
11507 lt_prog_compiler_static_CXX='-static'
11508 ;;
11509 pgCC*)
11510 # Portland Group C++ compiler.
11511 lt_prog_compiler_wl_CXX='-Wl,'
11512 lt_prog_compiler_pic_CXX='-fpic'
11513 lt_prog_compiler_static_CXX='-Bstatic'
11514 ;;
11515 cxx*)
11516 # Compaq C++
11517 # Make sure the PIC flag is empty. It appears that all Alpha
11518 # Linux and Compaq Tru64 Unix objects are PIC.
11519 lt_prog_compiler_pic_CXX=
11520 lt_prog_compiler_static_CXX='-non_shared'
11521 ;;
11522 *)
11523 ;;
11524 esac
11525 ;;
11526 lynxos*)
11527 ;;
11528 m88k*)
11529 ;;
11530 mvs*)
11531 case $cc_basename in
11532 cxx*)
11533 lt_prog_compiler_pic_CXX='-W c,exportall'
11534 ;;
11535 *)
11536 ;;
11537 esac
11538 ;;
11539 netbsd*)
11540 ;;
11541 osf3* | osf4* | osf5*)
11542 case $cc_basename in
11543 KCC*)
11544 lt_prog_compiler_wl_CXX='--backend -Wl,'
11545 ;;
11546 RCC*)
11547 # Rational C++ 2.4.1
11548 lt_prog_compiler_pic_CXX='-pic'
11549 ;;
11550 cxx*)
11551 # Digital/Compaq C++
11552 lt_prog_compiler_wl_CXX='-Wl,'
11553 # Make sure the PIC flag is empty. It appears that all Alpha
11554 # Linux and Compaq Tru64 Unix objects are PIC.
11555 lt_prog_compiler_pic_CXX=
11556 lt_prog_compiler_static_CXX='-non_shared'
11557 ;;
11558 *)
11559 ;;
11560 esac
11561 ;;
11562 psos*)
11563 ;;
11564 solaris*)
11565 case $cc_basename in
11566 CC*)
11567 # Sun C++ 4.2, 5.x and Centerline C++
11568 lt_prog_compiler_pic_CXX='-KPIC'
11569 lt_prog_compiler_static_CXX='-Bstatic'
11570 lt_prog_compiler_wl_CXX='-Qoption ld '
11571 ;;
11572 gcx*)
11573 # Green Hills C++ Compiler
11574 lt_prog_compiler_pic_CXX='-PIC'
11575 ;;
11576 *)
11577 ;;
11578 esac
11579 ;;
11580 sunos4*)
11581 case $cc_basename in
11582 CC*)
11583 # Sun C++ 4.x
11584 lt_prog_compiler_pic_CXX='-pic'
11585 lt_prog_compiler_static_CXX='-Bstatic'
11586 ;;
11587 lcc*)
11588 # Lucid
11589 lt_prog_compiler_pic_CXX='-pic'
11590 ;;
11591 *)
11592 ;;
11593 esac
11594 ;;
11595 tandem*)
11596 case $cc_basename in
11597 NCC*)
11598 # NonStop-UX NCC 3.20
11599 lt_prog_compiler_pic_CXX='-KPIC'
11600 ;;
11601 *)
11602 ;;
11603 esac
11604 ;;
11605 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11606 case $cc_basename in
11607 CC*)
11608 lt_prog_compiler_wl_CXX='-Wl,'
11609 lt_prog_compiler_pic_CXX='-KPIC'
11610 lt_prog_compiler_static_CXX='-Bstatic'
11611 ;;
11612 esac
11613 ;;
11614 vxworks*)
11615 ;;
11616 *)
11617 lt_prog_compiler_can_build_shared_CXX=no
11618 ;;
11619 esac
11620 fi
11621
11622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11623 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11624
11625 #
11626 # Check to make sure the PIC flag actually works.
11627 #
11628 if test -n "$lt_prog_compiler_pic_CXX"; then
11629
11630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11632 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 lt_prog_compiler_pic_works_CXX=no
11636 ac_outfile=conftest.$ac_objext
11637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11638 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11639 # Insert the option either (1) after the last *FLAGS variable, or
11640 # (2) before a word containing "conftest.", or (3) at the end.
11641 # Note that $ac_compile itself does not contain backslashes and begins
11642 # with a dollar sign (not a hyphen), so the echo should work correctly.
11643 # The option is referenced via a variable to avoid confusing sed.
11644 lt_compile=`echo "$ac_compile" | $SED \
11645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11647 -e 's:$: $lt_compiler_flag:'`
11648 (eval echo "\"\$as_me:11648: $lt_compile\"" >&5)
11649 (eval "$lt_compile" 2>conftest.err)
11650 ac_status=$?
11651 cat conftest.err >&5
11652 echo "$as_me:11652: \$? = $ac_status" >&5
11653 if (exit $ac_status) && test -s "$ac_outfile"; then
11654 # The compiler can only warn and ignore the option if not recognized
11655 # So say no if there are warnings other than the usual output.
11656 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11658 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11659 lt_prog_compiler_pic_works_CXX=yes
11660 fi
11661 fi
11662 $rm conftest*
11663
11664 fi
11665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11666 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11667
11668 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11669 case $lt_prog_compiler_pic_CXX in
11670 "" | " "*) ;;
11671 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11672 esac
11673 else
11674 lt_prog_compiler_pic_CXX=
11675 lt_prog_compiler_can_build_shared_CXX=no
11676 fi
11677
11678 fi
11679 case $host_os in
11680 # For platforms which do not support PIC, -DPIC is meaningless:
11681 *djgpp*)
11682 lt_prog_compiler_pic_CXX=
11683 ;;
11684 *)
11685 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11686 ;;
11687 esac
11688
11689 #
11690 # Check to make sure the static flag actually works.
11691 #
11692 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11693 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11694 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11695 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 lt_prog_compiler_static_works_CXX=no
11699 save_LDFLAGS="$LDFLAGS"
11700 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11701 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11703 # The linker can only warn and ignore the option if not recognized
11704 # So say no if there are warnings
11705 if test -s conftest.err; then
11706 # Append any errors to the config.log.
11707 cat conftest.err 1>&5
11708 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11710 if diff conftest.exp conftest.er2 >/dev/null; then
11711 lt_prog_compiler_static_works_CXX=yes
11712 fi
11713 else
11714 lt_prog_compiler_static_works_CXX=yes
11715 fi
11716 fi
11717 $rm conftest*
11718 LDFLAGS="$save_LDFLAGS"
11719
11720 fi
11721 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11722 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11723
11724 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11725 :
11726 else
11727 lt_prog_compiler_static_CXX=
11728 fi
11729
11730
11731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 lt_cv_prog_compiler_c_o_CXX=no
11737 $rm -r conftest 2>/dev/null
11738 mkdir conftest
11739 cd conftest
11740 mkdir out
11741 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11742
11743 lt_compiler_flag="-o out/conftest2.$ac_objext"
11744 # Insert the option either (1) after the last *FLAGS variable, or
11745 # (2) before a word containing "conftest.", or (3) at the end.
11746 # Note that $ac_compile itself does not contain backslashes and begins
11747 # with a dollar sign (not a hyphen), so the echo should work correctly.
11748 lt_compile=`echo "$ac_compile" | $SED \
11749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11751 -e 's:$: $lt_compiler_flag:'`
11752 (eval echo "\"\$as_me:11752: $lt_compile\"" >&5)
11753 (eval "$lt_compile" 2>out/conftest.err)
11754 ac_status=$?
11755 cat out/conftest.err >&5
11756 echo "$as_me:11756: \$? = $ac_status" >&5
11757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11758 then
11759 # The compiler can only warn and ignore the option if not recognized
11760 # So say no if there are warnings
11761 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11764 lt_cv_prog_compiler_c_o_CXX=yes
11765 fi
11766 fi
11767 chmod u+w . 2>&5
11768 $rm conftest*
11769 # SGI C++ compiler will create directory out/ii_files/ for
11770 # template instantiation
11771 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11772 $rm out/* && rmdir out
11773 cd ..
11774 rmdir conftest
11775 $rm conftest*
11776
11777 fi
11778 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11779 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11780
11781
11782 hard_links="nottested"
11783 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11784 # do not overwrite the value of need_locks provided by the user
11785 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11786 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11787 hard_links=yes
11788 $rm conftest*
11789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11790 touch conftest.a
11791 ln conftest.a conftest.b 2>&5 || hard_links=no
11792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11793 echo "$as_me:$LINENO: result: $hard_links" >&5
11794 echo "${ECHO_T}$hard_links" >&6
11795 if test "$hard_links" = no; then
11796 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11797 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11798 need_locks=warn
11799 fi
11800 else
11801 need_locks=no
11802 fi
11803
11804 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11805 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11806
11807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11808 case $host_os in
11809 aix4* | aix5*)
11810 # If we're using GNU nm, then we don't want the "-C" option.
11811 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11813 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'
11814 else
11815 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'
11816 fi
11817 ;;
11818 pw32*)
11819 export_symbols_cmds_CXX="$ltdll_cmds"
11820 ;;
11821 cygwin* | mingw*)
11822 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'
11823 ;;
11824 *)
11825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11826 ;;
11827 esac
11828
11829 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11830 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11831 test "$ld_shlibs_CXX" = no && can_build_shared=no
11832
11833 #
11834 # Do we need to explicitly link libc?
11835 #
11836 case "x$archive_cmds_need_lc_CXX" in
11837 x|xyes)
11838 # Assume -lc should be added
11839 archive_cmds_need_lc_CXX=yes
11840
11841 if test "$enable_shared" = yes && test "$GCC" = yes; then
11842 case $archive_cmds_CXX in
11843 *'~'*)
11844 # FIXME: we may have to deal with multi-command sequences.
11845 ;;
11846 '$CC '*)
11847 # Test whether the compiler implicitly links with -lc since on some
11848 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11849 # to ld, don't add -lc before -lgcc.
11850 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11851 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11852 $rm conftest*
11853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11854
11855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11856 (eval $ac_compile) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } 2>conftest.err; then
11860 soname=conftest
11861 lib=conftest
11862 libobjs=conftest.$ac_objext
11863 deplibs=
11864 wl=$lt_prog_compiler_wl_CXX
11865 pic_flag=$lt_prog_compiler_pic_CXX
11866 compiler_flags=-v
11867 linker_flags=-v
11868 verstring=
11869 output_objdir=.
11870 libname=conftest
11871 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11872 allow_undefined_flag_CXX=
11873 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11874 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }
11878 then
11879 archive_cmds_need_lc_CXX=no
11880 else
11881 archive_cmds_need_lc_CXX=yes
11882 fi
11883 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11884 else
11885 cat conftest.err 1>&5
11886 fi
11887 $rm conftest*
11888 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11889 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11890 ;;
11891 esac
11892 fi
11893 ;;
11894 esac
11895
11896 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11897 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11898 library_names_spec=
11899 libname_spec='lib$name'
11900 soname_spec=
11901 shrext_cmds=".so"
11902 postinstall_cmds=
11903 postuninstall_cmds=
11904 finish_cmds=
11905 finish_eval=
11906 shlibpath_var=
11907 shlibpath_overrides_runpath=unknown
11908 version_type=none
11909 dynamic_linker="$host_os ld.so"
11910 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11911 if test "$GCC" = yes; then
11912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11913 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11914 # if the path contains ";" then we assume it to be the separator
11915 # otherwise default to the standard path separator (i.e. ":") - it is
11916 # assumed that no part of a normal pathname contains ";" but that should
11917 # okay in the real world where ";" in dirpaths is itself problematic.
11918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11919 else
11920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11921 fi
11922 else
11923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11924 fi
11925 need_lib_prefix=unknown
11926 hardcode_into_libs=no
11927
11928 # when you set need_version to no, make sure it does not cause -set_version
11929 # flags to be left without arguments
11930 need_version=unknown
11931
11932 case $host_os in
11933 aix3*)
11934 version_type=linux
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11936 shlibpath_var=LIBPATH
11937
11938 # AIX 3 has no versioning support, so we append a major version to the name.
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 ;;
11941
11942 aix4* | aix5*)
11943 version_type=linux
11944 need_lib_prefix=no
11945 need_version=no
11946 hardcode_into_libs=yes
11947 if test "$host_cpu" = ia64; then
11948 # AIX 5 supports IA64
11949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 else
11952 # With GCC up to 2.95.x, collect2 would create an import file
11953 # for dependence libraries. The import file would start with
11954 # the line `#! .'. This would cause the generated library to
11955 # depend on `.', always an invalid library. This was fixed in
11956 # development snapshots of GCC prior to 3.0.
11957 case $host_os in
11958 aix4 | aix4.[01] | aix4.[01].*)
11959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11960 echo ' yes '
11961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11962 :
11963 else
11964 can_build_shared=no
11965 fi
11966 ;;
11967 esac
11968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11969 # soname into executable. Probably we can add versioning support to
11970 # collect2, so additional links can be useful in future.
11971 if test "$aix_use_runtimelinking" = yes; then
11972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11973 # instead of lib<name>.a to let people know that these are not
11974 # typical AIX shared libraries.
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11976 else
11977 # We preserve .a as extension for shared libraries through AIX4.2
11978 # and later when we are not doing run time linking.
11979 library_names_spec='${libname}${release}.a $libname.a'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 fi
11982 shlibpath_var=LIBPATH
11983 fi
11984 ;;
11985
11986 amigaos*)
11987 library_names_spec='$libname.ixlibrary $libname.a'
11988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11989 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'
11990 ;;
11991
11992 beos*)
11993 library_names_spec='${libname}${shared_ext}'
11994 dynamic_linker="$host_os ld.so"
11995 shlibpath_var=LIBRARY_PATH
11996 ;;
11997
11998 bsdi[45]*)
11999 version_type=linux
12000 need_version=no
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12007 # the default ld.so.conf also contains /usr/contrib/lib and
12008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12009 # libtool to hard-code these into programs
12010 ;;
12011
12012 cygwin* | mingw* | pw32*)
12013 version_type=windows
12014 shrext_cmds=".dll"
12015 need_version=no
12016 need_lib_prefix=no
12017
12018 case $GCC,$host_os in
12019 yes,cygwin* | yes,mingw* | yes,pw32*)
12020 library_names_spec='$libname.dll.a'
12021 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12022 postinstall_cmds='base_file=`basename \${file}`~
12023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12024 dldir=$destdir/`dirname \$dlpath`~
12025 test -d \$dldir || mkdir -p \$dldir~
12026 $install_prog $dir/$dlname \$dldir/$dlname~
12027 chmod a+x \$dldir/$dlname'
12028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12029 dlpath=$dir/\$dldll~
12030 $rm \$dlpath'
12031 shlibpath_overrides_runpath=yes
12032
12033 case $host_os in
12034 cygwin*)
12035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12038 ;;
12039 mingw*)
12040 # MinGW DLLs use traditional 'lib' prefix
12041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12044 # It is most probably a Windows format PATH printed by
12045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12046 # path with ; separators, and with drive letters. We can handle the
12047 # drive letters (cygwin fileutils understands them), so leave them,
12048 # especially as we might pass files found there to a mingw objdump,
12049 # which wouldn't understand a cygwinified path. Ahh.
12050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12051 else
12052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12053 fi
12054 ;;
12055 pw32*)
12056 # pw32 DLLs use 'pw' prefix rather than 'lib'
12057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12058 ;;
12059 esac
12060 ;;
12061
12062 *)
12063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12064 ;;
12065 esac
12066 dynamic_linker='Win32 ld.exe'
12067 # FIXME: first we should search . and the directory the executable is in
12068 shlibpath_var=PATH
12069 ;;
12070
12071 darwin* | rhapsody*)
12072 dynamic_linker="$host_os dyld"
12073 version_type=darwin
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12077 soname_spec='${libname}${release}${major}$shared_ext'
12078 shlibpath_overrides_runpath=yes
12079 shlibpath_var=DYLD_LIBRARY_PATH
12080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12082 if test "$GCC" = yes; then
12083 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"`
12084 else
12085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12086 fi
12087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12088 ;;
12089
12090 dgux*)
12091 version_type=linux
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 ;;
12098
12099 freebsd1*)
12100 dynamic_linker=no
12101 ;;
12102
12103 kfreebsd*-gnu)
12104 version_type=linux
12105 need_lib_prefix=no
12106 need_version=no
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 shlibpath_var=LD_LIBRARY_PATH
12110 shlibpath_overrides_runpath=no
12111 hardcode_into_libs=yes
12112 dynamic_linker='GNU ld.so'
12113 ;;
12114
12115 freebsd* | dragonfly*)
12116 # DragonFly does not have aout. When/if they implement a new
12117 # versioning mechanism, adjust this.
12118 if test -x /usr/bin/objformat; then
12119 objformat=`/usr/bin/objformat`
12120 else
12121 case $host_os in
12122 freebsd[123]*) objformat=aout ;;
12123 *) objformat=elf ;;
12124 esac
12125 fi
12126 version_type=freebsd-$objformat
12127 case $version_type in
12128 freebsd-elf*)
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12130 need_version=no
12131 need_lib_prefix=no
12132 ;;
12133 freebsd-*)
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12135 need_version=yes
12136 ;;
12137 esac
12138 shlibpath_var=LD_LIBRARY_PATH
12139 case $host_os in
12140 freebsd2*)
12141 shlibpath_overrides_runpath=yes
12142 ;;
12143 freebsd3.[01]* | freebsdelf3.[01]*)
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12146 ;;
12147 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12148 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12149 shlibpath_overrides_runpath=no
12150 hardcode_into_libs=yes
12151 ;;
12152 freebsd*) # from 4.6 on
12153 shlibpath_overrides_runpath=yes
12154 hardcode_into_libs=yes
12155 ;;
12156 esac
12157 ;;
12158
12159 gnu*)
12160 version_type=linux
12161 need_lib_prefix=no
12162 need_version=no
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 hardcode_into_libs=yes
12167 ;;
12168
12169 hpux9* | hpux10* | hpux11*)
12170 # Give a soname corresponding to the major version so that dld.sl refuses to
12171 # link against other versions.
12172 version_type=sunos
12173 need_lib_prefix=no
12174 need_version=no
12175 case $host_cpu in
12176 ia64*)
12177 shrext_cmds='.so'
12178 hardcode_into_libs=yes
12179 dynamic_linker="$host_os dld.so"
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12183 soname_spec='${libname}${release}${shared_ext}$major'
12184 if test "X$HPUX_IA64_MODE" = X32; then
12185 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12186 else
12187 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12188 fi
12189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12190 ;;
12191 hppa*64*)
12192 shrext_cmds='.sl'
12193 hardcode_into_libs=yes
12194 dynamic_linker="$host_os dld.sl"
12195 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12201 ;;
12202 *)
12203 shrext_cmds='.sl'
12204 dynamic_linker="$host_os dld.sl"
12205 shlibpath_var=SHLIB_PATH
12206 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 ;;
12210 esac
12211 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12212 postinstall_cmds='chmod 555 $lib'
12213 ;;
12214
12215 interix3*)
12216 version_type=linux
12217 need_lib_prefix=no
12218 need_version=no
12219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12220 soname_spec='${libname}${release}${shared_ext}$major'
12221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=no
12224 hardcode_into_libs=yes
12225 ;;
12226
12227 irix5* | irix6* | nonstopux*)
12228 case $host_os in
12229 nonstopux*) version_type=nonstopux ;;
12230 *)
12231 if test "$lt_cv_prog_gnu_ld" = yes; then
12232 version_type=linux
12233 else
12234 version_type=irix
12235 fi ;;
12236 esac
12237 need_lib_prefix=no
12238 need_version=no
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12241 case $host_os in
12242 irix5* | nonstopux*)
12243 libsuff= shlibsuff=
12244 ;;
12245 *)
12246 case $LD in # libtool.m4 will add one of these switches to LD
12247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12248 libsuff= shlibsuff= libmagic=32-bit;;
12249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12250 libsuff=32 shlibsuff=N32 libmagic=N32;;
12251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12253 *) libsuff= shlibsuff= libmagic=never-match;;
12254 esac
12255 ;;
12256 esac
12257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12258 shlibpath_overrides_runpath=no
12259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12261 hardcode_into_libs=yes
12262 ;;
12263
12264 # No shared lib support for Linux oldld, aout, or coff.
12265 linux*oldld* | linux*aout* | linux*coff*)
12266 dynamic_linker=no
12267 ;;
12268
12269 # This must be Linux ELF.
12270 linux*)
12271 version_type=linux
12272 need_lib_prefix=no
12273 need_version=no
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 shlibpath_overrides_runpath=no
12279 # This implies no fast_install, which is unacceptable.
12280 # Some rework will be needed to allow for fast_install
12281 # before this can be enabled.
12282 hardcode_into_libs=yes
12283
12284 # find out which ABI we are using
12285 libsuff=
12286 case "$host_cpu" in
12287 x86_64*|s390x*|powerpc64*)
12288 echo '#line 12288 "configure"' > conftest.$ac_ext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; then
12294 case `/usr/bin/file conftest.$ac_objext` in
12295 *64-bit*)
12296 libsuff=64
12297 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12298 ;;
12299 esac
12300 fi
12301 rm -rf conftest*
12302 ;;
12303 esac
12304
12305 # Append ld.so.conf contents to the search path
12306 if test -f /etc/ld.so.conf; then
12307 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12308 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12309 fi
12310
12311 # We used to test for /lib/ld.so.1 and disable shared libraries on
12312 # powerpc, because MkLinux only supported shared libraries with the
12313 # GNU dynamic linker. Since this was broken with cross compilers,
12314 # most powerpc-linux boxes support dynamic linking these days and
12315 # people can always --disable-shared, the test was removed, and we
12316 # assume the GNU/Linux dynamic linker is in use.
12317 dynamic_linker='GNU/Linux ld.so'
12318 ;;
12319
12320 knetbsd*-gnu)
12321 version_type=linux
12322 need_lib_prefix=no
12323 need_version=no
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12325 soname_spec='${libname}${release}${shared_ext}$major'
12326 shlibpath_var=LD_LIBRARY_PATH
12327 shlibpath_overrides_runpath=no
12328 hardcode_into_libs=yes
12329 dynamic_linker='GNU ld.so'
12330 ;;
12331
12332 netbsd*)
12333 version_type=sunos
12334 need_lib_prefix=no
12335 need_version=no
12336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12339 dynamic_linker='NetBSD (a.out) ld.so'
12340 else
12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12342 soname_spec='${libname}${release}${shared_ext}$major'
12343 dynamic_linker='NetBSD ld.elf_so'
12344 fi
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12347 hardcode_into_libs=yes
12348 ;;
12349
12350 newsos6)
12351 version_type=linux
12352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353 shlibpath_var=LD_LIBRARY_PATH
12354 shlibpath_overrides_runpath=yes
12355 ;;
12356
12357 nto-qnx*)
12358 version_type=linux
12359 need_lib_prefix=no
12360 need_version=no
12361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362 soname_spec='${libname}${release}${shared_ext}$major'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=yes
12365 ;;
12366
12367 openbsd*)
12368 version_type=sunos
12369 sys_lib_dlsearch_path_spec="/usr/lib"
12370 need_lib_prefix=no
12371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12372 case $host_os in
12373 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12374 *) need_version=no ;;
12375 esac
12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12378 shlibpath_var=LD_LIBRARY_PATH
12379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12380 case $host_os in
12381 openbsd2.[89] | openbsd2.[89].*)
12382 shlibpath_overrides_runpath=no
12383 ;;
12384 *)
12385 shlibpath_overrides_runpath=yes
12386 ;;
12387 esac
12388 else
12389 shlibpath_overrides_runpath=yes
12390 fi
12391 ;;
12392
12393 os2*)
12394 libname_spec='$name'
12395 shrext_cmds=".dll"
12396 need_lib_prefix=no
12397 library_names_spec='$libname${shared_ext} $libname.a'
12398 dynamic_linker='OS/2 ld.exe'
12399 shlibpath_var=LIBPATH
12400 ;;
12401
12402 osf3* | osf4* | osf5*)
12403 version_type=osf
12404 need_lib_prefix=no
12405 need_version=no
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12411 ;;
12412
12413 solaris*)
12414 version_type=linux
12415 need_lib_prefix=no
12416 need_version=no
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 shlibpath_var=LD_LIBRARY_PATH
12420 shlibpath_overrides_runpath=yes
12421 hardcode_into_libs=yes
12422 # ldd complains unless libraries are executable
12423 postinstall_cmds='chmod +x $lib'
12424 ;;
12425
12426 sunos4*)
12427 version_type=sunos
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12430 shlibpath_var=LD_LIBRARY_PATH
12431 shlibpath_overrides_runpath=yes
12432 if test "$with_gnu_ld" = yes; then
12433 need_lib_prefix=no
12434 fi
12435 need_version=yes
12436 ;;
12437
12438 sysv4 | sysv4.3*)
12439 version_type=linux
12440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12441 soname_spec='${libname}${release}${shared_ext}$major'
12442 shlibpath_var=LD_LIBRARY_PATH
12443 case $host_vendor in
12444 sni)
12445 shlibpath_overrides_runpath=no
12446 need_lib_prefix=no
12447 export_dynamic_flag_spec='${wl}-Blargedynsym'
12448 runpath_var=LD_RUN_PATH
12449 ;;
12450 siemens)
12451 need_lib_prefix=no
12452 ;;
12453 motorola)
12454 need_lib_prefix=no
12455 need_version=no
12456 shlibpath_overrides_runpath=no
12457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12458 ;;
12459 esac
12460 ;;
12461
12462 sysv4*MP*)
12463 if test -d /usr/nec ;then
12464 version_type=linux
12465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12466 soname_spec='$libname${shared_ext}.$major'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 fi
12469 ;;
12470
12471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12472 version_type=freebsd-elf
12473 need_lib_prefix=no
12474 need_version=no
12475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12476 soname_spec='${libname}${release}${shared_ext}$major'
12477 shlibpath_var=LD_LIBRARY_PATH
12478 hardcode_into_libs=yes
12479 if test "$with_gnu_ld" = yes; then
12480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12481 shlibpath_overrides_runpath=no
12482 else
12483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12484 shlibpath_overrides_runpath=yes
12485 case $host_os in
12486 sco3.2v5*)
12487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12488 ;;
12489 esac
12490 fi
12491 sys_lib_dlsearch_path_spec='/usr/lib'
12492 ;;
12493
12494 uts4*)
12495 version_type=linux
12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12497 soname_spec='${libname}${release}${shared_ext}$major'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 ;;
12500
12501 *)
12502 dynamic_linker=no
12503 ;;
12504 esac
12505 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12506 echo "${ECHO_T}$dynamic_linker" >&6
12507 test "$dynamic_linker" = no && can_build_shared=no
12508
12509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12510 if test "$GCC" = yes; then
12511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12512 fi
12513
12514 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12515 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12516 hardcode_action_CXX=
12517 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12518 test -n "$runpath_var_CXX" || \
12519 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12520
12521 # We can hardcode non-existant directories.
12522 if test "$hardcode_direct_CXX" != no &&
12523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12524 # have to relink, otherwise we might link with an installed library
12525 # when we should be linking with a yet-to-be-installed one
12526 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12527 test "$hardcode_minus_L_CXX" != no; then
12528 # Linking always hardcodes the temporary library directory.
12529 hardcode_action_CXX=relink
12530 else
12531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12532 hardcode_action_CXX=immediate
12533 fi
12534 else
12535 # We cannot hardcode anything, or else we can only hardcode existing
12536 # directories.
12537 hardcode_action_CXX=unsupported
12538 fi
12539 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12540 echo "${ECHO_T}$hardcode_action_CXX" >&6
12541
12542 if test "$hardcode_action_CXX" = relink; then
12543 # Fast installation is not supported
12544 enable_fast_install=no
12545 elif test "$shlibpath_overrides_runpath" = yes ||
12546 test "$enable_shared" = no; then
12547 # Fast installation is not necessary
12548 enable_fast_install=needless
12549 fi
12550
12551
12552 # The else clause should only fire when bootstrapping the
12553 # libtool distribution, otherwise you forgot to ship ltmain.sh
12554 # with your package, and you will get complaints that there are
12555 # no rules to generate ltmain.sh.
12556 if test -f "$ltmain"; then
12557 # See if we are running on zsh, and set the options which allow our commands through
12558 # without removal of \ escapes.
12559 if test -n "${ZSH_VERSION+set}" ; then
12560 setopt NO_GLOB_SUBST
12561 fi
12562 # Now quote all the things that may contain metacharacters while being
12563 # careful not to overquote the AC_SUBSTed values. We take copies of the
12564 # variables and quote the copies for generation of the libtool script.
12565 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12566 SED SHELL STRIP \
12567 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12568 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12569 deplibs_check_method reload_flag reload_cmds need_locks \
12570 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12571 lt_cv_sys_global_symbol_to_c_name_address \
12572 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12573 old_postinstall_cmds old_postuninstall_cmds \
12574 compiler_CXX \
12575 CC_CXX \
12576 LD_CXX \
12577 lt_prog_compiler_wl_CXX \
12578 lt_prog_compiler_pic_CXX \
12579 lt_prog_compiler_static_CXX \
12580 lt_prog_compiler_no_builtin_flag_CXX \
12581 export_dynamic_flag_spec_CXX \
12582 thread_safe_flag_spec_CXX \
12583 whole_archive_flag_spec_CXX \
12584 enable_shared_with_static_runtimes_CXX \
12585 old_archive_cmds_CXX \
12586 old_archive_from_new_cmds_CXX \
12587 predep_objects_CXX \
12588 postdep_objects_CXX \
12589 predeps_CXX \
12590 postdeps_CXX \
12591 compiler_lib_search_path_CXX \
12592 archive_cmds_CXX \
12593 archive_expsym_cmds_CXX \
12594 postinstall_cmds_CXX \
12595 postuninstall_cmds_CXX \
12596 old_archive_from_expsyms_cmds_CXX \
12597 allow_undefined_flag_CXX \
12598 no_undefined_flag_CXX \
12599 export_symbols_cmds_CXX \
12600 hardcode_libdir_flag_spec_CXX \
12601 hardcode_libdir_flag_spec_ld_CXX \
12602 hardcode_libdir_separator_CXX \
12603 hardcode_automatic_CXX \
12604 module_cmds_CXX \
12605 module_expsym_cmds_CXX \
12606 lt_cv_prog_compiler_c_o_CXX \
12607 exclude_expsyms_CXX \
12608 include_expsyms_CXX; do
12609
12610 case $var in
12611 old_archive_cmds_CXX | \
12612 old_archive_from_new_cmds_CXX | \
12613 archive_cmds_CXX | \
12614 archive_expsym_cmds_CXX | \
12615 module_cmds_CXX | \
12616 module_expsym_cmds_CXX | \
12617 old_archive_from_expsyms_cmds_CXX | \
12618 export_symbols_cmds_CXX | \
12619 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12620 postinstall_cmds | postuninstall_cmds | \
12621 old_postinstall_cmds | old_postuninstall_cmds | \
12622 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12623 # Double-quote double-evaled strings.
12624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12625 ;;
12626 *)
12627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12628 ;;
12629 esac
12630 done
12631
12632 case $lt_echo in
12633 *'\$0 --fallback-echo"')
12634 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12635 ;;
12636 esac
12637
12638 cfgfile="$ofile"
12639
12640 cat <<__EOF__ >> "$cfgfile"
12641 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12642
12643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12644
12645 # Shell to use when invoking shell scripts.
12646 SHELL=$lt_SHELL
12647
12648 # Whether or not to build shared libraries.
12649 build_libtool_libs=$enable_shared
12650
12651 # Whether or not to build static libraries.
12652 build_old_libs=$enable_static
12653
12654 # Whether or not to add -lc for building shared libraries.
12655 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12656
12657 # Whether or not to disallow shared libs when runtime libs are static
12658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12659
12660 # Whether or not to optimize for fast installation.
12661 fast_install=$enable_fast_install
12662
12663 # The host system.
12664 host_alias=$host_alias
12665 host=$host
12666 host_os=$host_os
12667
12668 # The build system.
12669 build_alias=$build_alias
12670 build=$build
12671 build_os=$build_os
12672
12673 # An echo program that does not interpret backslashes.
12674 echo=$lt_echo
12675
12676 # The archiver.
12677 AR=$lt_AR
12678 AR_FLAGS=$lt_AR_FLAGS
12679
12680 # A C compiler.
12681 LTCC=$lt_LTCC
12682
12683 # LTCC compiler flags.
12684 LTCFLAGS=$lt_LTCFLAGS
12685
12686 # A language-specific compiler.
12687 CC=$lt_compiler_CXX
12688
12689 # Is the compiler the GNU C compiler?
12690 with_gcc=$GCC_CXX
12691
12692 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12693 gcc_ver=\`gcc -dumpversion\`
12694
12695 # An ERE matcher.
12696 EGREP=$lt_EGREP
12697
12698 # The linker used to build libraries.
12699 LD=$lt_LD_CXX
12700
12701 # Whether we need hard or soft links.
12702 LN_S=$lt_LN_S
12703
12704 # A BSD-compatible nm program.
12705 NM=$lt_NM
12706
12707 # A symbol stripping program
12708 STRIP=$lt_STRIP
12709
12710 # Used to examine libraries when file_magic_cmd begins "file"
12711 MAGIC_CMD=$MAGIC_CMD
12712
12713 # Used on cygwin: DLL creation program.
12714 DLLTOOL="$DLLTOOL"
12715
12716 # Used on cygwin: object dumper.
12717 OBJDUMP="$OBJDUMP"
12718
12719 # Used on cygwin: assembler.
12720 AS="$AS"
12721
12722 # The name of the directory that contains temporary libtool files.
12723 objdir=$objdir
12724
12725 # How to create reloadable object files.
12726 reload_flag=$lt_reload_flag
12727 reload_cmds=$lt_reload_cmds
12728
12729 # How to pass a linker flag through the compiler.
12730 wl=$lt_lt_prog_compiler_wl_CXX
12731
12732 # Object file suffix (normally "o").
12733 objext="$ac_objext"
12734
12735 # Old archive suffix (normally "a").
12736 libext="$libext"
12737
12738 # Shared library suffix (normally ".so").
12739 shrext_cmds='$shrext_cmds'
12740
12741 # Executable file suffix (normally "").
12742 exeext="$exeext"
12743
12744 # Additional compiler flags for building library objects.
12745 pic_flag=$lt_lt_prog_compiler_pic_CXX
12746 pic_mode=$pic_mode
12747
12748 # What is the maximum length of a command?
12749 max_cmd_len=$lt_cv_sys_max_cmd_len
12750
12751 # Does compiler simultaneously support -c and -o options?
12752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12753
12754 # Must we lock files when doing compilation?
12755 need_locks=$lt_need_locks
12756
12757 # Do we need the lib prefix for modules?
12758 need_lib_prefix=$need_lib_prefix
12759
12760 # Do we need a version for libraries?
12761 need_version=$need_version
12762
12763 # Whether dlopen is supported.
12764 dlopen_support=$enable_dlopen
12765
12766 # Whether dlopen of programs is supported.
12767 dlopen_self=$enable_dlopen_self
12768
12769 # Whether dlopen of statically linked programs is supported.
12770 dlopen_self_static=$enable_dlopen_self_static
12771
12772 # Compiler flag to prevent dynamic linking.
12773 link_static_flag=$lt_lt_prog_compiler_static_CXX
12774
12775 # Compiler flag to turn off builtin functions.
12776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12777
12778 # Compiler flag to allow reflexive dlopens.
12779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12780
12781 # Compiler flag to generate shared objects directly from archives.
12782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12783
12784 # Compiler flag to generate thread-safe objects.
12785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12786
12787 # Library versioning type.
12788 version_type=$version_type
12789
12790 # Format of library name prefix.
12791 libname_spec=$lt_libname_spec
12792
12793 # List of archive names. First name is the real one, the rest are links.
12794 # The last name is the one that the linker finds with -lNAME.
12795 library_names_spec=$lt_library_names_spec
12796
12797 # The coded name of the library, if different from the real name.
12798 soname_spec=$lt_soname_spec
12799
12800 # Commands used to build and install an old-style archive.
12801 RANLIB=$lt_RANLIB
12802 old_archive_cmds=$lt_old_archive_cmds_CXX
12803 old_postinstall_cmds=$lt_old_postinstall_cmds
12804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12805
12806 # Create an old-style archive from a shared archive.
12807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12808
12809 # Create a temporary old-style archive to link instead of a shared archive.
12810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12811
12812 # Commands used to build and install a shared archive.
12813 archive_cmds=$lt_archive_cmds_CXX
12814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12815 postinstall_cmds=$lt_postinstall_cmds
12816 postuninstall_cmds=$lt_postuninstall_cmds
12817
12818 # Commands used to build a loadable module (assumed same as above if empty)
12819 module_cmds=$lt_module_cmds_CXX
12820 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12821
12822 # Commands to strip libraries.
12823 old_striplib=$lt_old_striplib
12824 striplib=$lt_striplib
12825
12826 # Dependencies to place before the objects being linked to create a
12827 # shared library.
12828 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12829
12830 # Dependencies to place after the objects being linked to create a
12831 # shared library.
12832 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12833
12834 # Dependencies to place before the objects being linked to create a
12835 # shared library.
12836 predeps=$lt_predeps_CXX
12837
12838 # Dependencies to place after the objects being linked to create a
12839 # shared library.
12840 postdeps=$lt_postdeps_CXX
12841
12842 # The library search path used internally by the compiler when linking
12843 # a shared library.
12844 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12845
12846 # Method to check whether dependent libraries are shared objects.
12847 deplibs_check_method=$lt_deplibs_check_method
12848
12849 # Command to use when deplibs_check_method == file_magic.
12850 file_magic_cmd=$lt_file_magic_cmd
12851
12852 # Flag that allows shared libraries with undefined symbols to be built.
12853 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12854
12855 # Flag that forces no undefined symbols.
12856 no_undefined_flag=$lt_no_undefined_flag_CXX
12857
12858 # Commands used to finish a libtool library installation in a directory.
12859 finish_cmds=$lt_finish_cmds
12860
12861 # Same as above, but a single script fragment to be evaled but not shown.
12862 finish_eval=$lt_finish_eval
12863
12864 # Take the output of nm and produce a listing of raw symbols and C names.
12865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12866
12867 # Transform the output of nm in a proper C declaration
12868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12869
12870 # Transform the output of nm in a C name address pair
12871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12872
12873 # This is the shared library runtime path variable.
12874 runpath_var=$runpath_var
12875
12876 # This is the shared library path variable.
12877 shlibpath_var=$shlibpath_var
12878
12879 # Is shlibpath searched before the hard-coded library search path?
12880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12881
12882 # How to hardcode a shared library path into an executable.
12883 hardcode_action=$hardcode_action_CXX
12884
12885 # Whether we should hardcode library paths into libraries.
12886 hardcode_into_libs=$hardcode_into_libs
12887
12888 # Flag to hardcode \$libdir into a binary during linking.
12889 # This must work even if \$libdir does not exist.
12890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12891
12892 # If ld is used when linking, flag to hardcode \$libdir into
12893 # a binary during linking. This must work even if \$libdir does
12894 # not exist.
12895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12896
12897 # Whether we need a single -rpath flag with a separated argument.
12898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12899
12900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12901 # resulting binary.
12902 hardcode_direct=$hardcode_direct_CXX
12903
12904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12905 # resulting binary.
12906 hardcode_minus_L=$hardcode_minus_L_CXX
12907
12908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12909 # the resulting binary.
12910 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12911
12912 # Set to yes if building a shared library automatically hardcodes DIR into the library
12913 # and all subsequent libraries and executables linked against it.
12914 hardcode_automatic=$hardcode_automatic_CXX
12915
12916 # Variables whose values should be saved in libtool wrapper scripts and
12917 # restored at relink time.
12918 variables_saved_for_relink="$variables_saved_for_relink"
12919
12920 # Whether libtool must link a program against all its dependency libraries.
12921 link_all_deplibs=$link_all_deplibs_CXX
12922
12923 # Compile-time system search path for libraries
12924 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12925
12926 # Run-time system search path for libraries
12927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12928
12929 # Fix the shell variable \$srcfile for the compiler.
12930 fix_srcfile_path="$fix_srcfile_path_CXX"
12931
12932 # Set to yes if exported symbols are required.
12933 always_export_symbols=$always_export_symbols_CXX
12934
12935 # The commands to list exported symbols.
12936 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12937
12938 # The commands to extract the exported symbol list from a shared archive.
12939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12940
12941 # Symbols that should not be listed in the preloaded symbols.
12942 exclude_expsyms=$lt_exclude_expsyms_CXX
12943
12944 # Symbols that must always be exported.
12945 include_expsyms=$lt_include_expsyms_CXX
12946
12947 # ### END LIBTOOL TAG CONFIG: $tagname
12948
12949 __EOF__
12950
12951
12952 else
12953 # If there is no Makefile yet, we rely on a make rule to execute
12954 # `config.status --recheck' to rerun these tests and create the
12955 # libtool script then.
12956 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12957 if test -f "$ltmain_in"; then
12958 test -f Makefile && make "$ltmain"
12959 fi
12960 fi
12961
12962
12963 ac_ext=c
12964 ac_cpp='$CPP $CPPFLAGS'
12965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969 CC=$lt_save_CC
12970 LDCXX=$LD
12971 LD=$lt_save_LD
12972 GCC=$lt_save_GCC
12973 with_gnu_ldcxx=$with_gnu_ld
12974 with_gnu_ld=$lt_save_with_gnu_ld
12975 lt_cv_path_LDCXX=$lt_cv_path_LD
12976 lt_cv_path_LD=$lt_save_path_LD
12977 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12978 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12979
12980 else
12981 tagname=""
12982 fi
12983 ;;
12984
12985 F77)
12986 if test -n "$F77" && test "X$F77" != "Xno"; then
12987
12988 ac_ext=f
12989 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12990 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12992
12993
12994 archive_cmds_need_lc_F77=no
12995 allow_undefined_flag_F77=
12996 always_export_symbols_F77=no
12997 archive_expsym_cmds_F77=
12998 export_dynamic_flag_spec_F77=
12999 hardcode_direct_F77=no
13000 hardcode_libdir_flag_spec_F77=
13001 hardcode_libdir_flag_spec_ld_F77=
13002 hardcode_libdir_separator_F77=
13003 hardcode_minus_L_F77=no
13004 hardcode_automatic_F77=no
13005 module_cmds_F77=
13006 module_expsym_cmds_F77=
13007 link_all_deplibs_F77=unknown
13008 old_archive_cmds_F77=$old_archive_cmds
13009 no_undefined_flag_F77=
13010 whole_archive_flag_spec_F77=
13011 enable_shared_with_static_runtimes_F77=no
13012
13013 # Source file extension for f77 test sources.
13014 ac_ext=f
13015
13016 # Object file extension for compiled f77 test sources.
13017 objext=o
13018 objext_F77=$objext
13019
13020 # Code to be used in simple compile tests
13021 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13022
13023 # Code to be used in simple link tests
13024 lt_simple_link_test_code=" program t\n end\n"
13025
13026 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13027
13028 # If no C compiler was specified, use CC.
13029 LTCC=${LTCC-"$CC"}
13030
13031 # If no C compiler flags were specified, use CFLAGS.
13032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13033
13034 # Allow CC to be a program name with arguments.
13035 compiler=$CC
13036
13037
13038 # save warnings/boilerplate of simple test code
13039 ac_outfile=conftest.$ac_objext
13040 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13041 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13042 _lt_compiler_boilerplate=`cat conftest.err`
13043 $rm conftest*
13044
13045 ac_outfile=conftest.$ac_objext
13046 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13047 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13048 _lt_linker_boilerplate=`cat conftest.err`
13049 $rm conftest*
13050
13051
13052 # Allow CC to be a program name with arguments.
13053 lt_save_CC="$CC"
13054 CC=${F77-"f77"}
13055 compiler=$CC
13056 compiler_F77=$CC
13057 for cc_temp in $compiler""; do
13058 case $cc_temp in
13059 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13060 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13061 \-*) ;;
13062 *) break;;
13063 esac
13064 done
13065 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13066
13067
13068 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13069 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13070 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13071 echo "${ECHO_T}$can_build_shared" >&6
13072
13073 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13074 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13075 test "$can_build_shared" = "no" && enable_shared=no
13076
13077 # On AIX, shared libraries and static libraries use the same namespace, and
13078 # are all built from PIC.
13079 case $host_os in
13080 aix3*)
13081 test "$enable_shared" = yes && enable_static=no
13082 if test -n "$RANLIB"; then
13083 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13084 postinstall_cmds='$RANLIB $lib'
13085 fi
13086 ;;
13087 aix4* | aix5*)
13088 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13089 test "$enable_shared" = yes && enable_static=no
13090 fi
13091 ;;
13092 esac
13093 echo "$as_me:$LINENO: result: $enable_shared" >&5
13094 echo "${ECHO_T}$enable_shared" >&6
13095
13096 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13097 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13098 # Make sure either enable_shared or enable_static is yes.
13099 test "$enable_shared" = yes || enable_static=yes
13100 echo "$as_me:$LINENO: result: $enable_static" >&5
13101 echo "${ECHO_T}$enable_static" >&6
13102
13103 GCC_F77="$G77"
13104 LD_F77="$LD"
13105
13106 lt_prog_compiler_wl_F77=
13107 lt_prog_compiler_pic_F77=
13108 lt_prog_compiler_static_F77=
13109
13110 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13111 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13112
13113 if test "$GCC" = yes; then
13114 lt_prog_compiler_wl_F77='-Wl,'
13115 lt_prog_compiler_static_F77='-static'
13116
13117 case $host_os in
13118 aix*)
13119 # All AIX code is PIC.
13120 if test "$host_cpu" = ia64; then
13121 # AIX 5 now supports IA64 processor
13122 lt_prog_compiler_static_F77='-Bstatic'
13123 fi
13124 ;;
13125
13126 amigaos*)
13127 # FIXME: we need at least 68020 code to build shared libraries, but
13128 # adding the `-m68020' flag to GCC prevents building anything better,
13129 # like `-m68040'.
13130 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13131 ;;
13132
13133 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13134 # PIC is the default for these OSes.
13135 ;;
13136
13137 mingw* | pw32* | os2*)
13138 # This hack is so that the source file can tell whether it is being
13139 # built for inclusion in a dll (and should export symbols for example).
13140 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13141 ;;
13142
13143 darwin* | rhapsody*)
13144 # PIC is the default on this platform
13145 # Common symbols not allowed in MH_DYLIB files
13146 lt_prog_compiler_pic_F77='-fno-common'
13147 ;;
13148
13149 interix3*)
13150 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13151 # Instead, we relocate shared libraries at runtime.
13152 ;;
13153
13154 msdosdjgpp*)
13155 # Just because we use GCC doesn't mean we suddenly get shared libraries
13156 # on systems that don't support them.
13157 lt_prog_compiler_can_build_shared_F77=no
13158 enable_shared=no
13159 ;;
13160
13161 sysv4*MP*)
13162 if test -d /usr/nec; then
13163 lt_prog_compiler_pic_F77=-Kconform_pic
13164 fi
13165 ;;
13166
13167 hpux*)
13168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13169 # not for PA HP-UX.
13170 case $host_cpu in
13171 hppa*64*|ia64*)
13172 # +Z the default
13173 ;;
13174 *)
13175 lt_prog_compiler_pic_F77='-fPIC'
13176 ;;
13177 esac
13178 ;;
13179
13180 *)
13181 lt_prog_compiler_pic_F77='-fPIC'
13182 ;;
13183 esac
13184 else
13185 # PORTME Check for flag to pass linker flags through the system compiler.
13186 case $host_os in
13187 aix*)
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 if test "$host_cpu" = ia64; then
13190 # AIX 5 now supports IA64 processor
13191 lt_prog_compiler_static_F77='-Bstatic'
13192 else
13193 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13194 fi
13195 ;;
13196 darwin*)
13197 # PIC is the default on this platform
13198 # Common symbols not allowed in MH_DYLIB files
13199 case $cc_basename in
13200 xlc*)
13201 lt_prog_compiler_pic_F77='-qnocommon'
13202 lt_prog_compiler_wl_F77='-Wl,'
13203 ;;
13204 esac
13205 ;;
13206
13207 mingw* | pw32* | os2*)
13208 # This hack is so that the source file can tell whether it is being
13209 # built for inclusion in a dll (and should export symbols for example).
13210 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13211 ;;
13212
13213 hpux9* | hpux10* | hpux11*)
13214 lt_prog_compiler_wl_F77='-Wl,'
13215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13216 # not for PA HP-UX.
13217 case $host_cpu in
13218 hppa*64*|ia64*)
13219 # +Z the default
13220 ;;
13221 *)
13222 lt_prog_compiler_pic_F77='+Z'
13223 ;;
13224 esac
13225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13226 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13227 ;;
13228
13229 irix5* | irix6* | nonstopux*)
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 # PIC (with -KPIC) is the default.
13232 lt_prog_compiler_static_F77='-non_shared'
13233 ;;
13234
13235 newsos6)
13236 lt_prog_compiler_pic_F77='-KPIC'
13237 lt_prog_compiler_static_F77='-Bstatic'
13238 ;;
13239
13240 linux*)
13241 case $cc_basename in
13242 icc* | ecc*)
13243 lt_prog_compiler_wl_F77='-Wl,'
13244 lt_prog_compiler_pic_F77='-KPIC'
13245 lt_prog_compiler_static_F77='-static'
13246 ;;
13247 pgcc* | pgf77* | pgf90* | pgf95*)
13248 # Portland Group compilers (*not* the Pentium gcc compiler,
13249 # which looks to be a dead project)
13250 lt_prog_compiler_wl_F77='-Wl,'
13251 lt_prog_compiler_pic_F77='-fpic'
13252 lt_prog_compiler_static_F77='-Bstatic'
13253 ;;
13254 ccc*)
13255 lt_prog_compiler_wl_F77='-Wl,'
13256 # All Alpha code is PIC.
13257 lt_prog_compiler_static_F77='-non_shared'
13258 ;;
13259 esac
13260 ;;
13261
13262 osf3* | osf4* | osf5*)
13263 lt_prog_compiler_wl_F77='-Wl,'
13264 # All OSF/1 code is PIC.
13265 lt_prog_compiler_static_F77='-non_shared'
13266 ;;
13267
13268 solaris*)
13269 lt_prog_compiler_pic_F77='-KPIC'
13270 lt_prog_compiler_static_F77='-Bstatic'
13271 case $cc_basename in
13272 f77* | f90* | f95*)
13273 lt_prog_compiler_wl_F77='-Qoption ld ';;
13274 *)
13275 lt_prog_compiler_wl_F77='-Wl,';;
13276 esac
13277 ;;
13278
13279 sunos4*)
13280 lt_prog_compiler_wl_F77='-Qoption ld '
13281 lt_prog_compiler_pic_F77='-PIC'
13282 lt_prog_compiler_static_F77='-Bstatic'
13283 ;;
13284
13285 sysv4 | sysv4.2uw2* | sysv4.3*)
13286 lt_prog_compiler_wl_F77='-Wl,'
13287 lt_prog_compiler_pic_F77='-KPIC'
13288 lt_prog_compiler_static_F77='-Bstatic'
13289 ;;
13290
13291 sysv4*MP*)
13292 if test -d /usr/nec ;then
13293 lt_prog_compiler_pic_F77='-Kconform_pic'
13294 lt_prog_compiler_static_F77='-Bstatic'
13295 fi
13296 ;;
13297
13298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 lt_prog_compiler_pic_F77='-KPIC'
13301 lt_prog_compiler_static_F77='-Bstatic'
13302 ;;
13303
13304 unicos*)
13305 lt_prog_compiler_wl_F77='-Wl,'
13306 lt_prog_compiler_can_build_shared_F77=no
13307 ;;
13308
13309 uts4*)
13310 lt_prog_compiler_pic_F77='-pic'
13311 lt_prog_compiler_static_F77='-Bstatic'
13312 ;;
13313
13314 *)
13315 lt_prog_compiler_can_build_shared_F77=no
13316 ;;
13317 esac
13318 fi
13319
13320 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13321 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13322
13323 #
13324 # Check to make sure the PIC flag actually works.
13325 #
13326 if test -n "$lt_prog_compiler_pic_F77"; then
13327
13328 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13329 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13330 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333 lt_prog_compiler_pic_works_F77=no
13334 ac_outfile=conftest.$ac_objext
13335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13336 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13337 # Insert the option either (1) after the last *FLAGS variable, or
13338 # (2) before a word containing "conftest.", or (3) at the end.
13339 # Note that $ac_compile itself does not contain backslashes and begins
13340 # with a dollar sign (not a hyphen), so the echo should work correctly.
13341 # The option is referenced via a variable to avoid confusing sed.
13342 lt_compile=`echo "$ac_compile" | $SED \
13343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13345 -e 's:$: $lt_compiler_flag:'`
13346 (eval echo "\"\$as_me:13346: $lt_compile\"" >&5)
13347 (eval "$lt_compile" 2>conftest.err)
13348 ac_status=$?
13349 cat conftest.err >&5
13350 echo "$as_me:13350: \$? = $ac_status" >&5
13351 if (exit $ac_status) && test -s "$ac_outfile"; then
13352 # The compiler can only warn and ignore the option if not recognized
13353 # So say no if there are warnings other than the usual output.
13354 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13357 lt_prog_compiler_pic_works_F77=yes
13358 fi
13359 fi
13360 $rm conftest*
13361
13362 fi
13363 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13364 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13365
13366 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13367 case $lt_prog_compiler_pic_F77 in
13368 "" | " "*) ;;
13369 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13370 esac
13371 else
13372 lt_prog_compiler_pic_F77=
13373 lt_prog_compiler_can_build_shared_F77=no
13374 fi
13375
13376 fi
13377 case $host_os in
13378 # For platforms which do not support PIC, -DPIC is meaningless:
13379 *djgpp*)
13380 lt_prog_compiler_pic_F77=
13381 ;;
13382 *)
13383 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13384 ;;
13385 esac
13386
13387 #
13388 # Check to make sure the static flag actually works.
13389 #
13390 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13391 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13392 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13393 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 lt_prog_compiler_static_works_F77=no
13397 save_LDFLAGS="$LDFLAGS"
13398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13399 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13401 # The linker can only warn and ignore the option if not recognized
13402 # So say no if there are warnings
13403 if test -s conftest.err; then
13404 # Append any errors to the config.log.
13405 cat conftest.err 1>&5
13406 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13408 if diff conftest.exp conftest.er2 >/dev/null; then
13409 lt_prog_compiler_static_works_F77=yes
13410 fi
13411 else
13412 lt_prog_compiler_static_works_F77=yes
13413 fi
13414 fi
13415 $rm conftest*
13416 LDFLAGS="$save_LDFLAGS"
13417
13418 fi
13419 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13420 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13421
13422 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13423 :
13424 else
13425 lt_prog_compiler_static_F77=
13426 fi
13427
13428
13429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13431 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 lt_cv_prog_compiler_c_o_F77=no
13435 $rm -r conftest 2>/dev/null
13436 mkdir conftest
13437 cd conftest
13438 mkdir out
13439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13440
13441 lt_compiler_flag="-o out/conftest2.$ac_objext"
13442 # Insert the option either (1) after the last *FLAGS variable, or
13443 # (2) before a word containing "conftest.", or (3) at the end.
13444 # Note that $ac_compile itself does not contain backslashes and begins
13445 # with a dollar sign (not a hyphen), so the echo should work correctly.
13446 lt_compile=`echo "$ac_compile" | $SED \
13447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13449 -e 's:$: $lt_compiler_flag:'`
13450 (eval echo "\"\$as_me:13450: $lt_compile\"" >&5)
13451 (eval "$lt_compile" 2>out/conftest.err)
13452 ac_status=$?
13453 cat out/conftest.err >&5
13454 echo "$as_me:13454: \$? = $ac_status" >&5
13455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13456 then
13457 # The compiler can only warn and ignore the option if not recognized
13458 # So say no if there are warnings
13459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13462 lt_cv_prog_compiler_c_o_F77=yes
13463 fi
13464 fi
13465 chmod u+w . 2>&5
13466 $rm conftest*
13467 # SGI C++ compiler will create directory out/ii_files/ for
13468 # template instantiation
13469 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13470 $rm out/* && rmdir out
13471 cd ..
13472 rmdir conftest
13473 $rm conftest*
13474
13475 fi
13476 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13477 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13478
13479
13480 hard_links="nottested"
13481 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13482 # do not overwrite the value of need_locks provided by the user
13483 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13484 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13485 hard_links=yes
13486 $rm conftest*
13487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13488 touch conftest.a
13489 ln conftest.a conftest.b 2>&5 || hard_links=no
13490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13491 echo "$as_me:$LINENO: result: $hard_links" >&5
13492 echo "${ECHO_T}$hard_links" >&6
13493 if test "$hard_links" = no; then
13494 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13495 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13496 need_locks=warn
13497 fi
13498 else
13499 need_locks=no
13500 fi
13501
13502 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13504
13505 runpath_var=
13506 allow_undefined_flag_F77=
13507 enable_shared_with_static_runtimes_F77=no
13508 archive_cmds_F77=
13509 archive_expsym_cmds_F77=
13510 old_archive_From_new_cmds_F77=
13511 old_archive_from_expsyms_cmds_F77=
13512 export_dynamic_flag_spec_F77=
13513 whole_archive_flag_spec_F77=
13514 thread_safe_flag_spec_F77=
13515 hardcode_libdir_flag_spec_F77=
13516 hardcode_libdir_flag_spec_ld_F77=
13517 hardcode_libdir_separator_F77=
13518 hardcode_direct_F77=no
13519 hardcode_minus_L_F77=no
13520 hardcode_shlibpath_var_F77=unsupported
13521 link_all_deplibs_F77=unknown
13522 hardcode_automatic_F77=no
13523 module_cmds_F77=
13524 module_expsym_cmds_F77=
13525 always_export_symbols_F77=no
13526 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13527 # include_expsyms should be a list of space-separated symbols to be *always*
13528 # included in the symbol list
13529 include_expsyms_F77=
13530 # exclude_expsyms can be an extended regexp of symbols to exclude
13531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13533 # as well as any symbol that contains `d'.
13534 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13536 # platforms (ab)use it in PIC code, but their linkers get confused if
13537 # the symbol is explicitly referenced. Since portable code cannot
13538 # rely on this symbol name, it's probably fine to never include it in
13539 # preloaded symbol tables.
13540 extract_expsyms_cmds=
13541 # Just being paranoid about ensuring that cc_basename is set.
13542 for cc_temp in $compiler""; do
13543 case $cc_temp in
13544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13546 \-*) ;;
13547 *) break;;
13548 esac
13549 done
13550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13551
13552 case $host_os in
13553 cygwin* | mingw* | pw32*)
13554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13555 # When not using gcc, we currently assume that we are using
13556 # Microsoft Visual C++.
13557 if test "$GCC" != yes; then
13558 with_gnu_ld=no
13559 fi
13560 ;;
13561 interix*)
13562 # we just hope/assume this is gcc and not c89 (= MSVC++)
13563 with_gnu_ld=yes
13564 ;;
13565 openbsd*)
13566 with_gnu_ld=no
13567 ;;
13568 esac
13569
13570 ld_shlibs_F77=yes
13571 if test "$with_gnu_ld" = yes; then
13572 # If archive_cmds runs LD, not CC, wlarc should be empty
13573 wlarc='${wl}'
13574
13575 # Set some defaults for GNU ld with shared library support. These
13576 # are reset later if shared libraries are not supported. Putting them
13577 # here allows them to be overridden if necessary.
13578 runpath_var=LD_RUN_PATH
13579 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13580 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13581 # ancient GNU ld didn't support --whole-archive et. al.
13582 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13583 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13584 else
13585 whole_archive_flag_spec_F77=
13586 fi
13587 supports_anon_versioning=no
13588 case `$LD -v 2>/dev/null` in
13589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13592 *\ 2.11.*) ;; # other 2.11 versions
13593 *) supports_anon_versioning=yes ;;
13594 esac
13595
13596 # See if GNU ld supports shared libraries.
13597 case $host_os in
13598 aix3* | aix4* | aix5*)
13599 # On AIX/PPC, the GNU linker is very broken
13600 if test "$host_cpu" != ia64; then
13601 ld_shlibs_F77=no
13602 cat <<EOF 1>&2
13603
13604 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13605 *** to be unable to reliably create shared libraries on AIX.
13606 *** Therefore, libtool is disabling shared libraries support. If you
13607 *** really care for shared libraries, you may want to modify your PATH
13608 *** so that a non-GNU linker is found, and then restart.
13609
13610 EOF
13611 fi
13612 ;;
13613
13614 amigaos*)
13615 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)'
13616 hardcode_libdir_flag_spec_F77='-L$libdir'
13617 hardcode_minus_L_F77=yes
13618
13619 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13620 # that the semantics of dynamic libraries on AmigaOS, at least up
13621 # to version 4, is to share data among multiple programs linked
13622 # with the same dynamic library. Since this doesn't match the
13623 # behavior of shared libraries on other platforms, we can't use
13624 # them.
13625 ld_shlibs_F77=no
13626 ;;
13627
13628 beos*)
13629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13630 allow_undefined_flag_F77=unsupported
13631 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13632 # support --undefined. This deserves some investigation. FIXME
13633 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13634 else
13635 ld_shlibs_F77=no
13636 fi
13637 ;;
13638
13639 cygwin* | mingw* | pw32*)
13640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13641 # as there is no search path for DLLs.
13642 hardcode_libdir_flag_spec_F77='-L$libdir'
13643 allow_undefined_flag_F77=unsupported
13644 always_export_symbols_F77=no
13645 enable_shared_with_static_runtimes_F77=yes
13646 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13647
13648 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13649 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13650 # If the export-symbols file already is a .def file (1st line
13651 # is EXPORTS), use it as is; otherwise, prepend...
13652 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13653 cp $export_symbols $output_objdir/$soname.def;
13654 else
13655 echo EXPORTS > $output_objdir/$soname.def;
13656 cat $export_symbols >> $output_objdir/$soname.def;
13657 fi~
13658 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13659 else
13660 ld_shlibs_F77=no
13661 fi
13662 ;;
13663
13664 interix3*)
13665 hardcode_direct_F77=no
13666 hardcode_shlibpath_var_F77=no
13667 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13668 export_dynamic_flag_spec_F77='${wl}-E'
13669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13670 # Instead, shared libraries are loaded at an image base (0x10000000 by
13671 # default) and relocated if they conflict, which is a slow very memory
13672 # consuming and fragmenting process. To avoid this, we pick a random,
13673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13675 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13676 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13677 ;;
13678
13679 linux*)
13680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13681 tmp_addflag=
13682 case $cc_basename,$host_cpu in
13683 pgcc*) # Portland Group C compiler
13684 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'
13685 tmp_addflag=' $pic_flag'
13686 ;;
13687 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13688 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'
13689 tmp_addflag=' $pic_flag -Mnomain' ;;
13690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13691 tmp_addflag=' -i_dynamic' ;;
13692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13693 tmp_addflag=' -i_dynamic -nofor_main' ;;
13694 ifc* | ifort*) # Intel Fortran compiler
13695 tmp_addflag=' -nofor_main' ;;
13696 esac
13697 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13698
13699 if test $supports_anon_versioning = yes; then
13700 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13702 $echo "local: *; };" >> $output_objdir/$libname.ver~
13703 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13704 fi
13705 else
13706 ld_shlibs_F77=no
13707 fi
13708 ;;
13709
13710 netbsd*)
13711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13712 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13713 wlarc=
13714 else
13715 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13716 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13717 fi
13718 ;;
13719
13720 solaris*)
13721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13722 ld_shlibs_F77=no
13723 cat <<EOF 1>&2
13724
13725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13726 *** create shared libraries on Solaris systems. Therefore, libtool
13727 *** is disabling shared libraries support. We urge you to upgrade GNU
13728 *** binutils to release 2.9.1 or newer. Another option is to modify
13729 *** your PATH or compiler configuration so that the native linker is
13730 *** used, and then restart.
13731
13732 EOF
13733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13736 else
13737 ld_shlibs_F77=no
13738 fi
13739 ;;
13740
13741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13742 case `$LD -v 2>&1` in
13743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13744 ld_shlibs_F77=no
13745 cat <<_LT_EOF 1>&2
13746
13747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13748 *** reliably create shared libraries on SCO systems. Therefore, libtool
13749 *** is disabling shared libraries support. We urge you to upgrade GNU
13750 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13751 *** your PATH or compiler configuration so that the native linker is
13752 *** used, and then restart.
13753
13754 _LT_EOF
13755 ;;
13756 *)
13757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13758 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13759 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13760 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13761 else
13762 ld_shlibs_F77=no
13763 fi
13764 ;;
13765 esac
13766 ;;
13767
13768 sunos4*)
13769 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13770 wlarc=
13771 hardcode_direct_F77=yes
13772 hardcode_shlibpath_var_F77=no
13773 ;;
13774
13775 *)
13776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13779 else
13780 ld_shlibs_F77=no
13781 fi
13782 ;;
13783 esac
13784
13785 if test "$ld_shlibs_F77" = no; then
13786 runpath_var=
13787 hardcode_libdir_flag_spec_F77=
13788 export_dynamic_flag_spec_F77=
13789 whole_archive_flag_spec_F77=
13790 fi
13791 else
13792 # PORTME fill in a description of your system's linker (not GNU ld)
13793 case $host_os in
13794 aix3*)
13795 allow_undefined_flag_F77=unsupported
13796 always_export_symbols_F77=yes
13797 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'
13798 # Note: this linker hardcodes the directories in LIBPATH if there
13799 # are no directories specified by -L.
13800 hardcode_minus_L_F77=yes
13801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13802 # Neither direct hardcoding nor static linking is supported with a
13803 # broken collect2.
13804 hardcode_direct_F77=unsupported
13805 fi
13806 ;;
13807
13808 aix4* | aix5*)
13809 if test "$host_cpu" = ia64; then
13810 # On IA64, the linker does run time linking by default, so we don't
13811 # have to do anything special.
13812 aix_use_runtimelinking=no
13813 exp_sym_flag='-Bexport'
13814 no_entry_flag=""
13815 else
13816 # If we're using GNU nm, then we don't want the "-C" option.
13817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13818 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13819 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'
13820 else
13821 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'
13822 fi
13823 aix_use_runtimelinking=no
13824
13825 # Test if we are trying to use run time linking or normal
13826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13827 # need to do runtime linking.
13828 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13829 for ld_flag in $LDFLAGS; do
13830 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13831 aix_use_runtimelinking=yes
13832 break
13833 fi
13834 done
13835 ;;
13836 esac
13837
13838 exp_sym_flag='-bexport'
13839 no_entry_flag='-bnoentry'
13840 fi
13841
13842 # When large executables or shared objects are built, AIX ld can
13843 # have problems creating the table of contents. If linking a library
13844 # or program results in "error TOC overflow" add -mminimal-toc to
13845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13847
13848 archive_cmds_F77=''
13849 hardcode_direct_F77=yes
13850 hardcode_libdir_separator_F77=':'
13851 link_all_deplibs_F77=yes
13852
13853 if test "$GCC" = yes; then
13854 case $host_os in aix4.[012]|aix4.[012].*)
13855 # We only want to do this on AIX 4.2 and lower, the check
13856 # below for broken collect2 doesn't work under 4.3+
13857 collect2name=`${CC} -print-prog-name=collect2`
13858 if test -f "$collect2name" && \
13859 strings "$collect2name" | grep resolve_lib_name >/dev/null
13860 then
13861 # We have reworked collect2
13862 hardcode_direct_F77=yes
13863 else
13864 # We have old collect2
13865 hardcode_direct_F77=unsupported
13866 # It fails to find uninstalled libraries when the uninstalled
13867 # path is not listed in the libpath. Setting hardcode_minus_L
13868 # to unsupported forces relinking
13869 hardcode_minus_L_F77=yes
13870 hardcode_libdir_flag_spec_F77='-L$libdir'
13871 hardcode_libdir_separator_F77=
13872 fi
13873 ;;
13874 esac
13875 shared_flag='-shared'
13876 if test "$aix_use_runtimelinking" = yes; then
13877 shared_flag="$shared_flag "'${wl}-G'
13878 fi
13879 else
13880 # not using gcc
13881 if test "$host_cpu" = ia64; then
13882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13883 # chokes on -Wl,-G. The following line is correct:
13884 shared_flag='-G'
13885 else
13886 if test "$aix_use_runtimelinking" = yes; then
13887 shared_flag='${wl}-G'
13888 else
13889 shared_flag='${wl}-bM:SRE'
13890 fi
13891 fi
13892 fi
13893
13894 # It seems that -bexpall does not export symbols beginning with
13895 # underscore (_), so it is better to generate a list of symbols to export.
13896 always_export_symbols_F77=yes
13897 if test "$aix_use_runtimelinking" = yes; then
13898 # Warning - without using the other runtime loading flags (-brtl),
13899 # -berok will link without error, but may produce a broken library.
13900 allow_undefined_flag_F77='-berok'
13901 # Determine the default libpath from the value encoded in an empty executable.
13902 cat >conftest.$ac_ext <<_ACEOF
13903 program main
13904
13905 end
13906 _ACEOF
13907 rm -f conftest.$ac_objext conftest$ac_exeext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13909 (eval $ac_link) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_f77_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929
13930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13931 }'`
13932 # Check for a 64-bit object if we didn't find anything.
13933 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; }
13934 }'`; fi
13935 else
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 fi
13940 rm -f conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext conftest.$ac_ext
13942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13943
13944 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13945 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13946 else
13947 if test "$host_cpu" = ia64; then
13948 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13949 allow_undefined_flag_F77="-z nodefs"
13950 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13951 else
13952 # Determine the default libpath from the value encoded in an empty executable.
13953 cat >conftest.$ac_ext <<_ACEOF
13954 program main
13955
13956 end
13957 _ACEOF
13958 rm -f conftest.$ac_objext conftest$ac_exeext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13960 (eval $ac_link) 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -z "$ac_f77_werror_flag"
13968 || test ! -s conftest.err'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; } &&
13974 { ac_try='test -s conftest$ac_exeext'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; }; then
13980
13981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13982 }'`
13983 # Check for a 64-bit object if we didn't find anything.
13984 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; }
13985 }'`; fi
13986 else
13987 echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 fi
13991 rm -f conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13994
13995 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13996 # Warning - without using the other run time loading flags,
13997 # -berok will link without error, but may produce a broken library.
13998 no_undefined_flag_F77=' ${wl}-bernotok'
13999 allow_undefined_flag_F77=' ${wl}-berok'
14000 # Exported symbols can be pulled into shared objects from archives
14001 whole_archive_flag_spec_F77='$convenience'
14002 archive_cmds_need_lc_F77=yes
14003 # This is similar to how AIX traditionally builds its shared libraries.
14004 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14005 fi
14006 fi
14007 ;;
14008
14009 amigaos*)
14010 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)'
14011 hardcode_libdir_flag_spec_F77='-L$libdir'
14012 hardcode_minus_L_F77=yes
14013 # see comment about different semantics on the GNU ld section
14014 ld_shlibs_F77=no
14015 ;;
14016
14017 bsdi[45]*)
14018 export_dynamic_flag_spec_F77=-rdynamic
14019 ;;
14020
14021 cygwin* | mingw* | pw32*)
14022 # When not using gcc, we currently assume that we are using
14023 # Microsoft Visual C++.
14024 # hardcode_libdir_flag_spec is actually meaningless, as there is
14025 # no search path for DLLs.
14026 hardcode_libdir_flag_spec_F77=' '
14027 allow_undefined_flag_F77=unsupported
14028 # Tell ltmain to make .lib files, not .a files.
14029 libext=lib
14030 # Tell ltmain to make .dll files, not .so files.
14031 shrext_cmds=".dll"
14032 # FIXME: Setting linknames here is a bad hack.
14033 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14034 # The linker will automatically build a .lib file if we build a DLL.
14035 old_archive_From_new_cmds_F77='true'
14036 # FIXME: Should let the user specify the lib program.
14037 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14038 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14039 enable_shared_with_static_runtimes_F77=yes
14040 ;;
14041
14042 darwin* | rhapsody*)
14043 case $host_os in
14044 rhapsody* | darwin1.[012])
14045 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14046 ;;
14047 *) # Darwin 1.3 on
14048 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14049 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14050 else
14051 case ${MACOSX_DEPLOYMENT_TARGET} in
14052 10.[012])
14053 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14054 ;;
14055 10.*)
14056 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14057 ;;
14058 esac
14059 fi
14060 ;;
14061 esac
14062 archive_cmds_need_lc_F77=no
14063 hardcode_direct_F77=no
14064 hardcode_automatic_F77=yes
14065 hardcode_shlibpath_var_F77=unsupported
14066 whole_archive_flag_spec_F77=''
14067 link_all_deplibs_F77=yes
14068 if test "$GCC" = yes ; then
14069 output_verbose_link_cmd='echo'
14070 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14071 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14072 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14073 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}'
14074 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}'
14075 else
14076 case $cc_basename in
14077 xlc*)
14078 output_verbose_link_cmd='echo'
14079 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14080 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14082 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}'
14083 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}'
14084 ;;
14085 *)
14086 ld_shlibs_F77=no
14087 ;;
14088 esac
14089 fi
14090 ;;
14091
14092 dgux*)
14093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14094 hardcode_libdir_flag_spec_F77='-L$libdir'
14095 hardcode_shlibpath_var_F77=no
14096 ;;
14097
14098 freebsd1*)
14099 ld_shlibs_F77=no
14100 ;;
14101
14102 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14103 # support. Future versions do this automatically, but an explicit c++rt0.o
14104 # does not break anything, and helps significantly (at the cost of a little
14105 # extra space).
14106 freebsd2.2*)
14107 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14108 hardcode_libdir_flag_spec_F77='-R$libdir'
14109 hardcode_direct_F77=yes
14110 hardcode_shlibpath_var_F77=no
14111 ;;
14112
14113 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14114 freebsd2*)
14115 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14116 hardcode_direct_F77=yes
14117 hardcode_minus_L_F77=yes
14118 hardcode_shlibpath_var_F77=no
14119 ;;
14120
14121 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14122 freebsd* | kfreebsd*-gnu | dragonfly*)
14123 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14124 hardcode_libdir_flag_spec_F77='-R$libdir'
14125 hardcode_direct_F77=yes
14126 hardcode_shlibpath_var_F77=no
14127 ;;
14128
14129 hpux9*)
14130 if test "$GCC" = yes; then
14131 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'
14132 else
14133 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'
14134 fi
14135 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14136 hardcode_libdir_separator_F77=:
14137 hardcode_direct_F77=yes
14138
14139 # hardcode_minus_L: Not really in the search PATH,
14140 # but as the default location of the library.
14141 hardcode_minus_L_F77=yes
14142 export_dynamic_flag_spec_F77='${wl}-E'
14143 ;;
14144
14145 hpux10*)
14146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14147 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14148 else
14149 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14150 fi
14151 if test "$with_gnu_ld" = no; then
14152 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14153 hardcode_libdir_separator_F77=:
14154
14155 hardcode_direct_F77=yes
14156 export_dynamic_flag_spec_F77='${wl}-E'
14157
14158 # hardcode_minus_L: Not really in the search PATH,
14159 # but as the default location of the library.
14160 hardcode_minus_L_F77=yes
14161 fi
14162 ;;
14163
14164 hpux11*)
14165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14166 case $host_cpu in
14167 hppa*64*)
14168 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14169 ;;
14170 ia64*)
14171 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14172 ;;
14173 *)
14174 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14175 ;;
14176 esac
14177 else
14178 case $host_cpu in
14179 hppa*64*)
14180 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14181 ;;
14182 ia64*)
14183 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14184 ;;
14185 *)
14186 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14187 ;;
14188 esac
14189 fi
14190 if test "$with_gnu_ld" = no; then
14191 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14192 hardcode_libdir_separator_F77=:
14193
14194 case $host_cpu in
14195 hppa*64*|ia64*)
14196 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14197 hardcode_direct_F77=no
14198 hardcode_shlibpath_var_F77=no
14199 ;;
14200 *)
14201 hardcode_direct_F77=yes
14202 export_dynamic_flag_spec_F77='${wl}-E'
14203
14204 # hardcode_minus_L: Not really in the search PATH,
14205 # but as the default location of the library.
14206 hardcode_minus_L_F77=yes
14207 ;;
14208 esac
14209 fi
14210 ;;
14211
14212 irix5* | irix6* | nonstopux*)
14213 if test "$GCC" = yes; then
14214 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'
14215 else
14216 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'
14217 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14218 fi
14219 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14220 hardcode_libdir_separator_F77=:
14221 link_all_deplibs_F77=yes
14222 ;;
14223
14224 netbsd*)
14225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14226 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14227 else
14228 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14229 fi
14230 hardcode_libdir_flag_spec_F77='-R$libdir'
14231 hardcode_direct_F77=yes
14232 hardcode_shlibpath_var_F77=no
14233 ;;
14234
14235 newsos6)
14236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 hardcode_direct_F77=yes
14238 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14239 hardcode_libdir_separator_F77=:
14240 hardcode_shlibpath_var_F77=no
14241 ;;
14242
14243 openbsd*)
14244 hardcode_direct_F77=yes
14245 hardcode_shlibpath_var_F77=no
14246 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14247 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14248 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14249 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14250 export_dynamic_flag_spec_F77='${wl}-E'
14251 else
14252 case $host_os in
14253 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_libdir_flag_spec_F77='-R$libdir'
14256 ;;
14257 *)
14258 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14259 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14260 ;;
14261 esac
14262 fi
14263 ;;
14264
14265 os2*)
14266 hardcode_libdir_flag_spec_F77='-L$libdir'
14267 hardcode_minus_L_F77=yes
14268 allow_undefined_flag_F77=unsupported
14269 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'
14270 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14271 ;;
14272
14273 osf3*)
14274 if test "$GCC" = yes; then
14275 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14276 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'
14277 else
14278 allow_undefined_flag_F77=' -expect_unresolved \*'
14279 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'
14280 fi
14281 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14282 hardcode_libdir_separator_F77=:
14283 ;;
14284
14285 osf4* | osf5*) # as osf3* with the addition of -msym flag
14286 if test "$GCC" = yes; then
14287 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14288 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'
14289 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14290 else
14291 allow_undefined_flag_F77=' -expect_unresolved \*'
14292 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'
14293 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~
14294 $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'
14295
14296 # Both c and cxx compiler support -rpath directly
14297 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14298 fi
14299 hardcode_libdir_separator_F77=:
14300 ;;
14301
14302 solaris*)
14303 no_undefined_flag_F77=' -z text'
14304 if test "$GCC" = yes; then
14305 wlarc='${wl}'
14306 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14309 else
14310 wlarc=''
14311 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14313 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14314 fi
14315 hardcode_libdir_flag_spec_F77='-R$libdir'
14316 hardcode_shlibpath_var_F77=no
14317 case $host_os in
14318 solaris2.[0-5] | solaris2.[0-5].*) ;;
14319 *)
14320 # The compiler driver will combine linker options so we
14321 # cannot just pass the convience library names through
14322 # without $wl, iff we do not link with $LD.
14323 # Luckily, gcc supports the same syntax we need for Sun Studio.
14324 # Supported since Solaris 2.6 (maybe 2.5.1?)
14325 case $wlarc in
14326 '')
14327 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14328 *)
14329 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' ;;
14330 esac ;;
14331 esac
14332 link_all_deplibs_F77=yes
14333 ;;
14334
14335 sunos4*)
14336 if test "x$host_vendor" = xsequent; then
14337 # Use $CC to link under sequent, because it throws in some extra .o
14338 # files that make .init and .fini sections work.
14339 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14340 else
14341 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14342 fi
14343 hardcode_libdir_flag_spec_F77='-L$libdir'
14344 hardcode_direct_F77=yes
14345 hardcode_minus_L_F77=yes
14346 hardcode_shlibpath_var_F77=no
14347 ;;
14348
14349 sysv4)
14350 case $host_vendor in
14351 sni)
14352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14353 hardcode_direct_F77=yes # is this really true???
14354 ;;
14355 siemens)
14356 ## LD is ld it makes a PLAMLIB
14357 ## CC just makes a GrossModule.
14358 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14359 reload_cmds_F77='$CC -r -o $output$reload_objs'
14360 hardcode_direct_F77=no
14361 ;;
14362 motorola)
14363 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14365 ;;
14366 esac
14367 runpath_var='LD_RUN_PATH'
14368 hardcode_shlibpath_var_F77=no
14369 ;;
14370
14371 sysv4.3*)
14372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14373 hardcode_shlibpath_var_F77=no
14374 export_dynamic_flag_spec_F77='-Bexport'
14375 ;;
14376
14377 sysv4*MP*)
14378 if test -d /usr/nec; then
14379 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380 hardcode_shlibpath_var_F77=no
14381 runpath_var=LD_RUN_PATH
14382 hardcode_runpath_var=yes
14383 ld_shlibs_F77=yes
14384 fi
14385 ;;
14386
14387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14388 no_undefined_flag_F77='${wl}-z,text'
14389 archive_cmds_need_lc_F77=no
14390 hardcode_shlibpath_var_F77=no
14391 runpath_var='LD_RUN_PATH'
14392
14393 if test "$GCC" = yes; then
14394 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14396 else
14397 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14399 fi
14400 ;;
14401
14402 sysv5* | sco3.2v5* | sco5v6*)
14403 # Note: We can NOT use -z defs as we might desire, because we do not
14404 # link with -lc, and that would cause any symbols used from libc to
14405 # always be unresolved, which means just about no library would
14406 # ever link correctly. If we're not using GNU ld we use -z text
14407 # though, which does catch some bad symbols but isn't as heavy-handed
14408 # as -z defs.
14409 no_undefined_flag_F77='${wl}-z,text'
14410 allow_undefined_flag_F77='${wl}-z,nodefs'
14411 archive_cmds_need_lc_F77=no
14412 hardcode_shlibpath_var_F77=no
14413 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14414 hardcode_libdir_separator_F77=':'
14415 link_all_deplibs_F77=yes
14416 export_dynamic_flag_spec_F77='${wl}-Bexport'
14417 runpath_var='LD_RUN_PATH'
14418
14419 if test "$GCC" = yes; then
14420 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14421 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14422 else
14423 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14424 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14425 fi
14426 ;;
14427
14428 uts4*)
14429 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_shlibpath_var_F77=no
14432 ;;
14433
14434 *)
14435 ld_shlibs_F77=no
14436 ;;
14437 esac
14438 fi
14439
14440 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14441 echo "${ECHO_T}$ld_shlibs_F77" >&6
14442 test "$ld_shlibs_F77" = no && can_build_shared=no
14443
14444 #
14445 # Do we need to explicitly link libc?
14446 #
14447 case "x$archive_cmds_need_lc_F77" in
14448 x|xyes)
14449 # Assume -lc should be added
14450 archive_cmds_need_lc_F77=yes
14451
14452 if test "$enable_shared" = yes && test "$GCC" = yes; then
14453 case $archive_cmds_F77 in
14454 *'~'*)
14455 # FIXME: we may have to deal with multi-command sequences.
14456 ;;
14457 '$CC '*)
14458 # Test whether the compiler implicitly links with -lc since on some
14459 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14460 # to ld, don't add -lc before -lgcc.
14461 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14462 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14463 $rm conftest*
14464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14465
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } 2>conftest.err; then
14471 soname=conftest
14472 lib=conftest
14473 libobjs=conftest.$ac_objext
14474 deplibs=
14475 wl=$lt_prog_compiler_wl_F77
14476 pic_flag=$lt_prog_compiler_pic_F77
14477 compiler_flags=-v
14478 linker_flags=-v
14479 verstring=
14480 output_objdir=.
14481 libname=conftest
14482 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14483 allow_undefined_flag_F77=
14484 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14485 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }
14489 then
14490 archive_cmds_need_lc_F77=no
14491 else
14492 archive_cmds_need_lc_F77=yes
14493 fi
14494 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14495 else
14496 cat conftest.err 1>&5
14497 fi
14498 $rm conftest*
14499 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14500 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14501 ;;
14502 esac
14503 fi
14504 ;;
14505 esac
14506
14507 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14508 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14509 library_names_spec=
14510 libname_spec='lib$name'
14511 soname_spec=
14512 shrext_cmds=".so"
14513 postinstall_cmds=
14514 postuninstall_cmds=
14515 finish_cmds=
14516 finish_eval=
14517 shlibpath_var=
14518 shlibpath_overrides_runpath=unknown
14519 version_type=none
14520 dynamic_linker="$host_os ld.so"
14521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14522 if test "$GCC" = yes; then
14523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14524 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14525 # if the path contains ";" then we assume it to be the separator
14526 # otherwise default to the standard path separator (i.e. ":") - it is
14527 # assumed that no part of a normal pathname contains ";" but that should
14528 # okay in the real world where ";" in dirpaths is itself problematic.
14529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14530 else
14531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14532 fi
14533 else
14534 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14535 fi
14536 need_lib_prefix=unknown
14537 hardcode_into_libs=no
14538
14539 # when you set need_version to no, make sure it does not cause -set_version
14540 # flags to be left without arguments
14541 need_version=unknown
14542
14543 case $host_os in
14544 aix3*)
14545 version_type=linux
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14547 shlibpath_var=LIBPATH
14548
14549 # AIX 3 has no versioning support, so we append a major version to the name.
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 ;;
14552
14553 aix4* | aix5*)
14554 version_type=linux
14555 need_lib_prefix=no
14556 need_version=no
14557 hardcode_into_libs=yes
14558 if test "$host_cpu" = ia64; then
14559 # AIX 5 supports IA64
14560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 else
14563 # With GCC up to 2.95.x, collect2 would create an import file
14564 # for dependence libraries. The import file would start with
14565 # the line `#! .'. This would cause the generated library to
14566 # depend on `.', always an invalid library. This was fixed in
14567 # development snapshots of GCC prior to 3.0.
14568 case $host_os in
14569 aix4 | aix4.[01] | aix4.[01].*)
14570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14571 echo ' yes '
14572 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14573 :
14574 else
14575 can_build_shared=no
14576 fi
14577 ;;
14578 esac
14579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14580 # soname into executable. Probably we can add versioning support to
14581 # collect2, so additional links can be useful in future.
14582 if test "$aix_use_runtimelinking" = yes; then
14583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14584 # instead of lib<name>.a to let people know that these are not
14585 # typical AIX shared libraries.
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 else
14588 # We preserve .a as extension for shared libraries through AIX4.2
14589 # and later when we are not doing run time linking.
14590 library_names_spec='${libname}${release}.a $libname.a'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 fi
14593 shlibpath_var=LIBPATH
14594 fi
14595 ;;
14596
14597 amigaos*)
14598 library_names_spec='$libname.ixlibrary $libname.a'
14599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14600 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'
14601 ;;
14602
14603 beos*)
14604 library_names_spec='${libname}${shared_ext}'
14605 dynamic_linker="$host_os ld.so"
14606 shlibpath_var=LIBRARY_PATH
14607 ;;
14608
14609 bsdi[45]*)
14610 version_type=linux
14611 need_version=no
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14618 # the default ld.so.conf also contains /usr/contrib/lib and
14619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14620 # libtool to hard-code these into programs
14621 ;;
14622
14623 cygwin* | mingw* | pw32*)
14624 version_type=windows
14625 shrext_cmds=".dll"
14626 need_version=no
14627 need_lib_prefix=no
14628
14629 case $GCC,$host_os in
14630 yes,cygwin* | yes,mingw* | yes,pw32*)
14631 library_names_spec='$libname.dll.a'
14632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14633 postinstall_cmds='base_file=`basename \${file}`~
14634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14635 dldir=$destdir/`dirname \$dlpath`~
14636 test -d \$dldir || mkdir -p \$dldir~
14637 $install_prog $dir/$dlname \$dldir/$dlname~
14638 chmod a+x \$dldir/$dlname'
14639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14640 dlpath=$dir/\$dldll~
14641 $rm \$dlpath'
14642 shlibpath_overrides_runpath=yes
14643
14644 case $host_os in
14645 cygwin*)
14646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14648 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14649 ;;
14650 mingw*)
14651 # MinGW DLLs use traditional 'lib' prefix
14652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14654 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14655 # It is most probably a Windows format PATH printed by
14656 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14657 # path with ; separators, and with drive letters. We can handle the
14658 # drive letters (cygwin fileutils understands them), so leave them,
14659 # especially as we might pass files found there to a mingw objdump,
14660 # which wouldn't understand a cygwinified path. Ahh.
14661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14662 else
14663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14664 fi
14665 ;;
14666 pw32*)
14667 # pw32 DLLs use 'pw' prefix rather than 'lib'
14668 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14669 ;;
14670 esac
14671 ;;
14672
14673 *)
14674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14675 ;;
14676 esac
14677 dynamic_linker='Win32 ld.exe'
14678 # FIXME: first we should search . and the directory the executable is in
14679 shlibpath_var=PATH
14680 ;;
14681
14682 darwin* | rhapsody*)
14683 dynamic_linker="$host_os dyld"
14684 version_type=darwin
14685 need_lib_prefix=no
14686 need_version=no
14687 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14688 soname_spec='${libname}${release}${major}$shared_ext'
14689 shlibpath_overrides_runpath=yes
14690 shlibpath_var=DYLD_LIBRARY_PATH
14691 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14692 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14693 if test "$GCC" = yes; then
14694 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"`
14695 else
14696 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14697 fi
14698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14699 ;;
14700
14701 dgux*)
14702 version_type=linux
14703 need_lib_prefix=no
14704 need_version=no
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 shlibpath_var=LD_LIBRARY_PATH
14708 ;;
14709
14710 freebsd1*)
14711 dynamic_linker=no
14712 ;;
14713
14714 kfreebsd*-gnu)
14715 version_type=linux
14716 need_lib_prefix=no
14717 need_version=no
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 shlibpath_overrides_runpath=no
14722 hardcode_into_libs=yes
14723 dynamic_linker='GNU ld.so'
14724 ;;
14725
14726 freebsd* | dragonfly*)
14727 # DragonFly does not have aout. When/if they implement a new
14728 # versioning mechanism, adjust this.
14729 if test -x /usr/bin/objformat; then
14730 objformat=`/usr/bin/objformat`
14731 else
14732 case $host_os in
14733 freebsd[123]*) objformat=aout ;;
14734 *) objformat=elf ;;
14735 esac
14736 fi
14737 version_type=freebsd-$objformat
14738 case $version_type in
14739 freebsd-elf*)
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14741 need_version=no
14742 need_lib_prefix=no
14743 ;;
14744 freebsd-*)
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14746 need_version=yes
14747 ;;
14748 esac
14749 shlibpath_var=LD_LIBRARY_PATH
14750 case $host_os in
14751 freebsd2*)
14752 shlibpath_overrides_runpath=yes
14753 ;;
14754 freebsd3.[01]* | freebsdelf3.[01]*)
14755 shlibpath_overrides_runpath=yes
14756 hardcode_into_libs=yes
14757 ;;
14758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14760 shlibpath_overrides_runpath=no
14761 hardcode_into_libs=yes
14762 ;;
14763 freebsd*) # from 4.6 on
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14766 ;;
14767 esac
14768 ;;
14769
14770 gnu*)
14771 version_type=linux
14772 need_lib_prefix=no
14773 need_version=no
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 hardcode_into_libs=yes
14778 ;;
14779
14780 hpux9* | hpux10* | hpux11*)
14781 # Give a soname corresponding to the major version so that dld.sl refuses to
14782 # link against other versions.
14783 version_type=sunos
14784 need_lib_prefix=no
14785 need_version=no
14786 case $host_cpu in
14787 ia64*)
14788 shrext_cmds='.so'
14789 hardcode_into_libs=yes
14790 dynamic_linker="$host_os dld.so"
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 if test "X$HPUX_IA64_MODE" = X32; then
14796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14797 else
14798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14799 fi
14800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14801 ;;
14802 hppa*64*)
14803 shrext_cmds='.sl'
14804 hardcode_into_libs=yes
14805 dynamic_linker="$host_os dld.sl"
14806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14809 soname_spec='${libname}${release}${shared_ext}$major'
14810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14812 ;;
14813 *)
14814 shrext_cmds='.sl'
14815 dynamic_linker="$host_os dld.sl"
14816 shlibpath_var=SHLIB_PATH
14817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 ;;
14821 esac
14822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14823 postinstall_cmds='chmod 555 $lib'
14824 ;;
14825
14826 interix3*)
14827 version_type=linux
14828 need_lib_prefix=no
14829 need_version=no
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=no
14835 hardcode_into_libs=yes
14836 ;;
14837
14838 irix5* | irix6* | nonstopux*)
14839 case $host_os in
14840 nonstopux*) version_type=nonstopux ;;
14841 *)
14842 if test "$lt_cv_prog_gnu_ld" = yes; then
14843 version_type=linux
14844 else
14845 version_type=irix
14846 fi ;;
14847 esac
14848 need_lib_prefix=no
14849 need_version=no
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14852 case $host_os in
14853 irix5* | nonstopux*)
14854 libsuff= shlibsuff=
14855 ;;
14856 *)
14857 case $LD in # libtool.m4 will add one of these switches to LD
14858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14859 libsuff= shlibsuff= libmagic=32-bit;;
14860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14861 libsuff=32 shlibsuff=N32 libmagic=N32;;
14862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14864 *) libsuff= shlibsuff= libmagic=never-match;;
14865 esac
14866 ;;
14867 esac
14868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14869 shlibpath_overrides_runpath=no
14870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14872 hardcode_into_libs=yes
14873 ;;
14874
14875 # No shared lib support for Linux oldld, aout, or coff.
14876 linux*oldld* | linux*aout* | linux*coff*)
14877 dynamic_linker=no
14878 ;;
14879
14880 # This must be Linux ELF.
14881 linux*)
14882 version_type=linux
14883 need_lib_prefix=no
14884 need_version=no
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=no
14890 # This implies no fast_install, which is unacceptable.
14891 # Some rework will be needed to allow for fast_install
14892 # before this can be enabled.
14893 hardcode_into_libs=yes
14894
14895 # find out which ABI we are using
14896 libsuff=
14897 case "$host_cpu" in
14898 x86_64*|s390x*|powerpc64*)
14899 echo '#line 14899 "configure"' > conftest.$ac_ext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14901 (eval $ac_compile) 2>&5
14902 ac_status=$?
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; then
14905 case `/usr/bin/file conftest.$ac_objext` in
14906 *64-bit*)
14907 libsuff=64
14908 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14909 ;;
14910 esac
14911 fi
14912 rm -rf conftest*
14913 ;;
14914 esac
14915
14916 # Append ld.so.conf contents to the search path
14917 if test -f /etc/ld.so.conf; then
14918 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14919 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14920 fi
14921
14922 # We used to test for /lib/ld.so.1 and disable shared libraries on
14923 # powerpc, because MkLinux only supported shared libraries with the
14924 # GNU dynamic linker. Since this was broken with cross compilers,
14925 # most powerpc-linux boxes support dynamic linking these days and
14926 # people can always --disable-shared, the test was removed, and we
14927 # assume the GNU/Linux dynamic linker is in use.
14928 dynamic_linker='GNU/Linux ld.so'
14929 ;;
14930
14931 knetbsd*-gnu)
14932 version_type=linux
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=no
14939 hardcode_into_libs=yes
14940 dynamic_linker='GNU ld.so'
14941 ;;
14942
14943 netbsd*)
14944 version_type=sunos
14945 need_lib_prefix=no
14946 need_version=no
14947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14950 dynamic_linker='NetBSD (a.out) ld.so'
14951 else
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 dynamic_linker='NetBSD ld.elf_so'
14955 fi
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=yes
14958 hardcode_into_libs=yes
14959 ;;
14960
14961 newsos6)
14962 version_type=linux
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes
14966 ;;
14967
14968 nto-qnx*)
14969 version_type=linux
14970 need_lib_prefix=no
14971 need_version=no
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=yes
14976 ;;
14977
14978 openbsd*)
14979 version_type=sunos
14980 sys_lib_dlsearch_path_spec="/usr/lib"
14981 need_lib_prefix=no
14982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14983 case $host_os in
14984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14985 *) need_version=no ;;
14986 esac
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14991 case $host_os in
14992 openbsd2.[89] | openbsd2.[89].*)
14993 shlibpath_overrides_runpath=no
14994 ;;
14995 *)
14996 shlibpath_overrides_runpath=yes
14997 ;;
14998 esac
14999 else
15000 shlibpath_overrides_runpath=yes
15001 fi
15002 ;;
15003
15004 os2*)
15005 libname_spec='$name'
15006 shrext_cmds=".dll"
15007 need_lib_prefix=no
15008 library_names_spec='$libname${shared_ext} $libname.a'
15009 dynamic_linker='OS/2 ld.exe'
15010 shlibpath_var=LIBPATH
15011 ;;
15012
15013 osf3* | osf4* | osf5*)
15014 version_type=osf
15015 need_lib_prefix=no
15016 need_version=no
15017 soname_spec='${libname}${release}${shared_ext}$major'
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15022 ;;
15023
15024 solaris*)
15025 version_type=linux
15026 need_lib_prefix=no
15027 need_version=no
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=yes
15032 hardcode_into_libs=yes
15033 # ldd complains unless libraries are executable
15034 postinstall_cmds='chmod +x $lib'
15035 ;;
15036
15037 sunos4*)
15038 version_type=sunos
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15040 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 shlibpath_overrides_runpath=yes
15043 if test "$with_gnu_ld" = yes; then
15044 need_lib_prefix=no
15045 fi
15046 need_version=yes
15047 ;;
15048
15049 sysv4 | sysv4.3*)
15050 version_type=linux
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 soname_spec='${libname}${release}${shared_ext}$major'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 case $host_vendor in
15055 sni)
15056 shlibpath_overrides_runpath=no
15057 need_lib_prefix=no
15058 export_dynamic_flag_spec='${wl}-Blargedynsym'
15059 runpath_var=LD_RUN_PATH
15060 ;;
15061 siemens)
15062 need_lib_prefix=no
15063 ;;
15064 motorola)
15065 need_lib_prefix=no
15066 need_version=no
15067 shlibpath_overrides_runpath=no
15068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15069 ;;
15070 esac
15071 ;;
15072
15073 sysv4*MP*)
15074 if test -d /usr/nec ;then
15075 version_type=linux
15076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15077 soname_spec='$libname${shared_ext}.$major'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 fi
15080 ;;
15081
15082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15083 version_type=freebsd-elf
15084 need_lib_prefix=no
15085 need_version=no
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 shlibpath_var=LD_LIBRARY_PATH
15089 hardcode_into_libs=yes
15090 if test "$with_gnu_ld" = yes; then
15091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15092 shlibpath_overrides_runpath=no
15093 else
15094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15095 shlibpath_overrides_runpath=yes
15096 case $host_os in
15097 sco3.2v5*)
15098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15099 ;;
15100 esac
15101 fi
15102 sys_lib_dlsearch_path_spec='/usr/lib'
15103 ;;
15104
15105 uts4*)
15106 version_type=linux
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 soname_spec='${libname}${release}${shared_ext}$major'
15109 shlibpath_var=LD_LIBRARY_PATH
15110 ;;
15111
15112 *)
15113 dynamic_linker=no
15114 ;;
15115 esac
15116 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15117 echo "${ECHO_T}$dynamic_linker" >&6
15118 test "$dynamic_linker" = no && can_build_shared=no
15119
15120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15121 if test "$GCC" = yes; then
15122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15123 fi
15124
15125 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15126 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15127 hardcode_action_F77=
15128 if test -n "$hardcode_libdir_flag_spec_F77" || \
15129 test -n "$runpath_var_F77" || \
15130 test "X$hardcode_automatic_F77" = "Xyes" ; then
15131
15132 # We can hardcode non-existant directories.
15133 if test "$hardcode_direct_F77" != no &&
15134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15135 # have to relink, otherwise we might link with an installed library
15136 # when we should be linking with a yet-to-be-installed one
15137 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15138 test "$hardcode_minus_L_F77" != no; then
15139 # Linking always hardcodes the temporary library directory.
15140 hardcode_action_F77=relink
15141 else
15142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15143 hardcode_action_F77=immediate
15144 fi
15145 else
15146 # We cannot hardcode anything, or else we can only hardcode existing
15147 # directories.
15148 hardcode_action_F77=unsupported
15149 fi
15150 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15151 echo "${ECHO_T}$hardcode_action_F77" >&6
15152
15153 if test "$hardcode_action_F77" = relink; then
15154 # Fast installation is not supported
15155 enable_fast_install=no
15156 elif test "$shlibpath_overrides_runpath" = yes ||
15157 test "$enable_shared" = no; then
15158 # Fast installation is not necessary
15159 enable_fast_install=needless
15160 fi
15161
15162
15163 # The else clause should only fire when bootstrapping the
15164 # libtool distribution, otherwise you forgot to ship ltmain.sh
15165 # with your package, and you will get complaints that there are
15166 # no rules to generate ltmain.sh.
15167 if test -f "$ltmain"; then
15168 # See if we are running on zsh, and set the options which allow our commands through
15169 # without removal of \ escapes.
15170 if test -n "${ZSH_VERSION+set}" ; then
15171 setopt NO_GLOB_SUBST
15172 fi
15173 # Now quote all the things that may contain metacharacters while being
15174 # careful not to overquote the AC_SUBSTed values. We take copies of the
15175 # variables and quote the copies for generation of the libtool script.
15176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15177 SED SHELL STRIP \
15178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15180 deplibs_check_method reload_flag reload_cmds need_locks \
15181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15182 lt_cv_sys_global_symbol_to_c_name_address \
15183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15184 old_postinstall_cmds old_postuninstall_cmds \
15185 compiler_F77 \
15186 CC_F77 \
15187 LD_F77 \
15188 lt_prog_compiler_wl_F77 \
15189 lt_prog_compiler_pic_F77 \
15190 lt_prog_compiler_static_F77 \
15191 lt_prog_compiler_no_builtin_flag_F77 \
15192 export_dynamic_flag_spec_F77 \
15193 thread_safe_flag_spec_F77 \
15194 whole_archive_flag_spec_F77 \
15195 enable_shared_with_static_runtimes_F77 \
15196 old_archive_cmds_F77 \
15197 old_archive_from_new_cmds_F77 \
15198 predep_objects_F77 \
15199 postdep_objects_F77 \
15200 predeps_F77 \
15201 postdeps_F77 \
15202 compiler_lib_search_path_F77 \
15203 archive_cmds_F77 \
15204 archive_expsym_cmds_F77 \
15205 postinstall_cmds_F77 \
15206 postuninstall_cmds_F77 \
15207 old_archive_from_expsyms_cmds_F77 \
15208 allow_undefined_flag_F77 \
15209 no_undefined_flag_F77 \
15210 export_symbols_cmds_F77 \
15211 hardcode_libdir_flag_spec_F77 \
15212 hardcode_libdir_flag_spec_ld_F77 \
15213 hardcode_libdir_separator_F77 \
15214 hardcode_automatic_F77 \
15215 module_cmds_F77 \
15216 module_expsym_cmds_F77 \
15217 lt_cv_prog_compiler_c_o_F77 \
15218 exclude_expsyms_F77 \
15219 include_expsyms_F77; do
15220
15221 case $var in
15222 old_archive_cmds_F77 | \
15223 old_archive_from_new_cmds_F77 | \
15224 archive_cmds_F77 | \
15225 archive_expsym_cmds_F77 | \
15226 module_cmds_F77 | \
15227 module_expsym_cmds_F77 | \
15228 old_archive_from_expsyms_cmds_F77 | \
15229 export_symbols_cmds_F77 | \
15230 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15231 postinstall_cmds | postuninstall_cmds | \
15232 old_postinstall_cmds | old_postuninstall_cmds | \
15233 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15234 # Double-quote double-evaled strings.
15235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15236 ;;
15237 *)
15238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15239 ;;
15240 esac
15241 done
15242
15243 case $lt_echo in
15244 *'\$0 --fallback-echo"')
15245 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15246 ;;
15247 esac
15248
15249 cfgfile="$ofile"
15250
15251 cat <<__EOF__ >> "$cfgfile"
15252 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15253
15254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15255
15256 # Shell to use when invoking shell scripts.
15257 SHELL=$lt_SHELL
15258
15259 # Whether or not to build shared libraries.
15260 build_libtool_libs=$enable_shared
15261
15262 # Whether or not to build static libraries.
15263 build_old_libs=$enable_static
15264
15265 # Whether or not to add -lc for building shared libraries.
15266 build_libtool_need_lc=$archive_cmds_need_lc_F77
15267
15268 # Whether or not to disallow shared libs when runtime libs are static
15269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15270
15271 # Whether or not to optimize for fast installation.
15272 fast_install=$enable_fast_install
15273
15274 # The host system.
15275 host_alias=$host_alias
15276 host=$host
15277 host_os=$host_os
15278
15279 # The build system.
15280 build_alias=$build_alias
15281 build=$build
15282 build_os=$build_os
15283
15284 # An echo program that does not interpret backslashes.
15285 echo=$lt_echo
15286
15287 # The archiver.
15288 AR=$lt_AR
15289 AR_FLAGS=$lt_AR_FLAGS
15290
15291 # A C compiler.
15292 LTCC=$lt_LTCC
15293
15294 # LTCC compiler flags.
15295 LTCFLAGS=$lt_LTCFLAGS
15296
15297 # A language-specific compiler.
15298 CC=$lt_compiler_F77
15299
15300 # Is the compiler the GNU C compiler?
15301 with_gcc=$GCC_F77
15302
15303 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15304 gcc_ver=\`gcc -dumpversion\`
15305
15306 # An ERE matcher.
15307 EGREP=$lt_EGREP
15308
15309 # The linker used to build libraries.
15310 LD=$lt_LD_F77
15311
15312 # Whether we need hard or soft links.
15313 LN_S=$lt_LN_S
15314
15315 # A BSD-compatible nm program.
15316 NM=$lt_NM
15317
15318 # A symbol stripping program
15319 STRIP=$lt_STRIP
15320
15321 # Used to examine libraries when file_magic_cmd begins "file"
15322 MAGIC_CMD=$MAGIC_CMD
15323
15324 # Used on cygwin: DLL creation program.
15325 DLLTOOL="$DLLTOOL"
15326
15327 # Used on cygwin: object dumper.
15328 OBJDUMP="$OBJDUMP"
15329
15330 # Used on cygwin: assembler.
15331 AS="$AS"
15332
15333 # The name of the directory that contains temporary libtool files.
15334 objdir=$objdir
15335
15336 # How to create reloadable object files.
15337 reload_flag=$lt_reload_flag
15338 reload_cmds=$lt_reload_cmds
15339
15340 # How to pass a linker flag through the compiler.
15341 wl=$lt_lt_prog_compiler_wl_F77
15342
15343 # Object file suffix (normally "o").
15344 objext="$ac_objext"
15345
15346 # Old archive suffix (normally "a").
15347 libext="$libext"
15348
15349 # Shared library suffix (normally ".so").
15350 shrext_cmds='$shrext_cmds'
15351
15352 # Executable file suffix (normally "").
15353 exeext="$exeext"
15354
15355 # Additional compiler flags for building library objects.
15356 pic_flag=$lt_lt_prog_compiler_pic_F77
15357 pic_mode=$pic_mode
15358
15359 # What is the maximum length of a command?
15360 max_cmd_len=$lt_cv_sys_max_cmd_len
15361
15362 # Does compiler simultaneously support -c and -o options?
15363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15364
15365 # Must we lock files when doing compilation?
15366 need_locks=$lt_need_locks
15367
15368 # Do we need the lib prefix for modules?
15369 need_lib_prefix=$need_lib_prefix
15370
15371 # Do we need a version for libraries?
15372 need_version=$need_version
15373
15374 # Whether dlopen is supported.
15375 dlopen_support=$enable_dlopen
15376
15377 # Whether dlopen of programs is supported.
15378 dlopen_self=$enable_dlopen_self
15379
15380 # Whether dlopen of statically linked programs is supported.
15381 dlopen_self_static=$enable_dlopen_self_static
15382
15383 # Compiler flag to prevent dynamic linking.
15384 link_static_flag=$lt_lt_prog_compiler_static_F77
15385
15386 # Compiler flag to turn off builtin functions.
15387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15388
15389 # Compiler flag to allow reflexive dlopens.
15390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15391
15392 # Compiler flag to generate shared objects directly from archives.
15393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15394
15395 # Compiler flag to generate thread-safe objects.
15396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15397
15398 # Library versioning type.
15399 version_type=$version_type
15400
15401 # Format of library name prefix.
15402 libname_spec=$lt_libname_spec
15403
15404 # List of archive names. First name is the real one, the rest are links.
15405 # The last name is the one that the linker finds with -lNAME.
15406 library_names_spec=$lt_library_names_spec
15407
15408 # The coded name of the library, if different from the real name.
15409 soname_spec=$lt_soname_spec
15410
15411 # Commands used to build and install an old-style archive.
15412 RANLIB=$lt_RANLIB
15413 old_archive_cmds=$lt_old_archive_cmds_F77
15414 old_postinstall_cmds=$lt_old_postinstall_cmds
15415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15416
15417 # Create an old-style archive from a shared archive.
15418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15419
15420 # Create a temporary old-style archive to link instead of a shared archive.
15421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15422
15423 # Commands used to build and install a shared archive.
15424 archive_cmds=$lt_archive_cmds_F77
15425 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15426 postinstall_cmds=$lt_postinstall_cmds
15427 postuninstall_cmds=$lt_postuninstall_cmds
15428
15429 # Commands used to build a loadable module (assumed same as above if empty)
15430 module_cmds=$lt_module_cmds_F77
15431 module_expsym_cmds=$lt_module_expsym_cmds_F77
15432
15433 # Commands to strip libraries.
15434 old_striplib=$lt_old_striplib
15435 striplib=$lt_striplib
15436
15437 # Dependencies to place before the objects being linked to create a
15438 # shared library.
15439 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15440
15441 # Dependencies to place after the objects being linked to create a
15442 # shared library.
15443 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15444
15445 # Dependencies to place before the objects being linked to create a
15446 # shared library.
15447 predeps=$lt_predeps_F77
15448
15449 # Dependencies to place after the objects being linked to create a
15450 # shared library.
15451 postdeps=$lt_postdeps_F77
15452
15453 # The library search path used internally by the compiler when linking
15454 # a shared library.
15455 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15456
15457 # Method to check whether dependent libraries are shared objects.
15458 deplibs_check_method=$lt_deplibs_check_method
15459
15460 # Command to use when deplibs_check_method == file_magic.
15461 file_magic_cmd=$lt_file_magic_cmd
15462
15463 # Flag that allows shared libraries with undefined symbols to be built.
15464 allow_undefined_flag=$lt_allow_undefined_flag_F77
15465
15466 # Flag that forces no undefined symbols.
15467 no_undefined_flag=$lt_no_undefined_flag_F77
15468
15469 # Commands used to finish a libtool library installation in a directory.
15470 finish_cmds=$lt_finish_cmds
15471
15472 # Same as above, but a single script fragment to be evaled but not shown.
15473 finish_eval=$lt_finish_eval
15474
15475 # Take the output of nm and produce a listing of raw symbols and C names.
15476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15477
15478 # Transform the output of nm in a proper C declaration
15479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15480
15481 # Transform the output of nm in a C name address pair
15482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15483
15484 # This is the shared library runtime path variable.
15485 runpath_var=$runpath_var
15486
15487 # This is the shared library path variable.
15488 shlibpath_var=$shlibpath_var
15489
15490 # Is shlibpath searched before the hard-coded library search path?
15491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15492
15493 # How to hardcode a shared library path into an executable.
15494 hardcode_action=$hardcode_action_F77
15495
15496 # Whether we should hardcode library paths into libraries.
15497 hardcode_into_libs=$hardcode_into_libs
15498
15499 # Flag to hardcode \$libdir into a binary during linking.
15500 # This must work even if \$libdir does not exist.
15501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15502
15503 # If ld is used when linking, flag to hardcode \$libdir into
15504 # a binary during linking. This must work even if \$libdir does
15505 # not exist.
15506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15507
15508 # Whether we need a single -rpath flag with a separated argument.
15509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15510
15511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15512 # resulting binary.
15513 hardcode_direct=$hardcode_direct_F77
15514
15515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15516 # resulting binary.
15517 hardcode_minus_L=$hardcode_minus_L_F77
15518
15519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15520 # the resulting binary.
15521 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15522
15523 # Set to yes if building a shared library automatically hardcodes DIR into the library
15524 # and all subsequent libraries and executables linked against it.
15525 hardcode_automatic=$hardcode_automatic_F77
15526
15527 # Variables whose values should be saved in libtool wrapper scripts and
15528 # restored at relink time.
15529 variables_saved_for_relink="$variables_saved_for_relink"
15530
15531 # Whether libtool must link a program against all its dependency libraries.
15532 link_all_deplibs=$link_all_deplibs_F77
15533
15534 # Compile-time system search path for libraries
15535 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15536
15537 # Run-time system search path for libraries
15538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15539
15540 # Fix the shell variable \$srcfile for the compiler.
15541 fix_srcfile_path="$fix_srcfile_path_F77"
15542
15543 # Set to yes if exported symbols are required.
15544 always_export_symbols=$always_export_symbols_F77
15545
15546 # The commands to list exported symbols.
15547 export_symbols_cmds=$lt_export_symbols_cmds_F77
15548
15549 # The commands to extract the exported symbol list from a shared archive.
15550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15551
15552 # Symbols that should not be listed in the preloaded symbols.
15553 exclude_expsyms=$lt_exclude_expsyms_F77
15554
15555 # Symbols that must always be exported.
15556 include_expsyms=$lt_include_expsyms_F77
15557
15558 # ### END LIBTOOL TAG CONFIG: $tagname
15559
15560 __EOF__
15561
15562
15563 else
15564 # If there is no Makefile yet, we rely on a make rule to execute
15565 # `config.status --recheck' to rerun these tests and create the
15566 # libtool script then.
15567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15568 if test -f "$ltmain_in"; then
15569 test -f Makefile && make "$ltmain"
15570 fi
15571 fi
15572
15573
15574 ac_ext=c
15575 ac_cpp='$CPP $CPPFLAGS'
15576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15579
15580 CC="$lt_save_CC"
15581
15582 else
15583 tagname=""
15584 fi
15585 ;;
15586
15587 GCJ)
15588 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15589
15590
15591
15592 # Source file extension for Java test sources.
15593 ac_ext=java
15594
15595 # Object file extension for compiled Java test sources.
15596 objext=o
15597 objext_GCJ=$objext
15598
15599 # Code to be used in simple compile tests
15600 lt_simple_compile_test_code="class foo {}\n"
15601
15602 # Code to be used in simple link tests
15603 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15604
15605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15606
15607 # If no C compiler was specified, use CC.
15608 LTCC=${LTCC-"$CC"}
15609
15610 # If no C compiler flags were specified, use CFLAGS.
15611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15612
15613 # Allow CC to be a program name with arguments.
15614 compiler=$CC
15615
15616
15617 # save warnings/boilerplate of simple test code
15618 ac_outfile=conftest.$ac_objext
15619 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15621 _lt_compiler_boilerplate=`cat conftest.err`
15622 $rm conftest*
15623
15624 ac_outfile=conftest.$ac_objext
15625 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15627 _lt_linker_boilerplate=`cat conftest.err`
15628 $rm conftest*
15629
15630
15631 # Allow CC to be a program name with arguments.
15632 lt_save_CC="$CC"
15633 CC=${GCJ-"gcj"}
15634 compiler=$CC
15635 compiler_GCJ=$CC
15636 for cc_temp in $compiler""; do
15637 case $cc_temp in
15638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15640 \-*) ;;
15641 *) break;;
15642 esac
15643 done
15644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15645
15646
15647 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15648 archive_cmds_need_lc_GCJ=no
15649
15650 old_archive_cmds_GCJ=$old_archive_cmds
15651
15652
15653 lt_prog_compiler_no_builtin_flag_GCJ=
15654
15655 if test "$GCC" = yes; then
15656 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15657
15658
15659 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15660 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15661 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664 lt_cv_prog_compiler_rtti_exceptions=no
15665 ac_outfile=conftest.$ac_objext
15666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15667 lt_compiler_flag="-fno-rtti -fno-exceptions"
15668 # Insert the option either (1) after the last *FLAGS variable, or
15669 # (2) before a word containing "conftest.", or (3) at the end.
15670 # Note that $ac_compile itself does not contain backslashes and begins
15671 # with a dollar sign (not a hyphen), so the echo should work correctly.
15672 # The option is referenced via a variable to avoid confusing sed.
15673 lt_compile=`echo "$ac_compile" | $SED \
15674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15676 -e 's:$: $lt_compiler_flag:'`
15677 (eval echo "\"\$as_me:15677: $lt_compile\"" >&5)
15678 (eval "$lt_compile" 2>conftest.err)
15679 ac_status=$?
15680 cat conftest.err >&5
15681 echo "$as_me:15681: \$? = $ac_status" >&5
15682 if (exit $ac_status) && test -s "$ac_outfile"; then
15683 # The compiler can only warn and ignore the option if not recognized
15684 # So say no if there are warnings other than the usual output.
15685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15688 lt_cv_prog_compiler_rtti_exceptions=yes
15689 fi
15690 fi
15691 $rm conftest*
15692
15693 fi
15694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15695 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15696
15697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15698 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15699 else
15700 :
15701 fi
15702
15703 fi
15704
15705 lt_prog_compiler_wl_GCJ=
15706 lt_prog_compiler_pic_GCJ=
15707 lt_prog_compiler_static_GCJ=
15708
15709 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15711
15712 if test "$GCC" = yes; then
15713 lt_prog_compiler_wl_GCJ='-Wl,'
15714 lt_prog_compiler_static_GCJ='-static'
15715
15716 case $host_os in
15717 aix*)
15718 # All AIX code is PIC.
15719 if test "$host_cpu" = ia64; then
15720 # AIX 5 now supports IA64 processor
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15722 fi
15723 ;;
15724
15725 amigaos*)
15726 # FIXME: we need at least 68020 code to build shared libraries, but
15727 # adding the `-m68020' flag to GCC prevents building anything better,
15728 # like `-m68040'.
15729 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15730 ;;
15731
15732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15733 # PIC is the default for these OSes.
15734 ;;
15735
15736 mingw* | pw32* | os2*)
15737 # This hack is so that the source file can tell whether it is being
15738 # built for inclusion in a dll (and should export symbols for example).
15739 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15740 ;;
15741
15742 darwin* | rhapsody*)
15743 # PIC is the default on this platform
15744 # Common symbols not allowed in MH_DYLIB files
15745 lt_prog_compiler_pic_GCJ='-fno-common'
15746 ;;
15747
15748 interix3*)
15749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15750 # Instead, we relocate shared libraries at runtime.
15751 ;;
15752
15753 msdosdjgpp*)
15754 # Just because we use GCC doesn't mean we suddenly get shared libraries
15755 # on systems that don't support them.
15756 lt_prog_compiler_can_build_shared_GCJ=no
15757 enable_shared=no
15758 ;;
15759
15760 sysv4*MP*)
15761 if test -d /usr/nec; then
15762 lt_prog_compiler_pic_GCJ=-Kconform_pic
15763 fi
15764 ;;
15765
15766 hpux*)
15767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15768 # not for PA HP-UX.
15769 case $host_cpu in
15770 hppa*64*|ia64*)
15771 # +Z the default
15772 ;;
15773 *)
15774 lt_prog_compiler_pic_GCJ='-fPIC'
15775 ;;
15776 esac
15777 ;;
15778
15779 *)
15780 lt_prog_compiler_pic_GCJ='-fPIC'
15781 ;;
15782 esac
15783 else
15784 # PORTME Check for flag to pass linker flags through the system compiler.
15785 case $host_os in
15786 aix*)
15787 lt_prog_compiler_wl_GCJ='-Wl,'
15788 if test "$host_cpu" = ia64; then
15789 # AIX 5 now supports IA64 processor
15790 lt_prog_compiler_static_GCJ='-Bstatic'
15791 else
15792 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15793 fi
15794 ;;
15795 darwin*)
15796 # PIC is the default on this platform
15797 # Common symbols not allowed in MH_DYLIB files
15798 case $cc_basename in
15799 xlc*)
15800 lt_prog_compiler_pic_GCJ='-qnocommon'
15801 lt_prog_compiler_wl_GCJ='-Wl,'
15802 ;;
15803 esac
15804 ;;
15805
15806 mingw* | pw32* | os2*)
15807 # This hack is so that the source file can tell whether it is being
15808 # built for inclusion in a dll (and should export symbols for example).
15809 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15810 ;;
15811
15812 hpux9* | hpux10* | hpux11*)
15813 lt_prog_compiler_wl_GCJ='-Wl,'
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15816 case $host_cpu in
15817 hppa*64*|ia64*)
15818 # +Z the default
15819 ;;
15820 *)
15821 lt_prog_compiler_pic_GCJ='+Z'
15822 ;;
15823 esac
15824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15825 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15826 ;;
15827
15828 irix5* | irix6* | nonstopux*)
15829 lt_prog_compiler_wl_GCJ='-Wl,'
15830 # PIC (with -KPIC) is the default.
15831 lt_prog_compiler_static_GCJ='-non_shared'
15832 ;;
15833
15834 newsos6)
15835 lt_prog_compiler_pic_GCJ='-KPIC'
15836 lt_prog_compiler_static_GCJ='-Bstatic'
15837 ;;
15838
15839 linux*)
15840 case $cc_basename in
15841 icc* | ecc*)
15842 lt_prog_compiler_wl_GCJ='-Wl,'
15843 lt_prog_compiler_pic_GCJ='-KPIC'
15844 lt_prog_compiler_static_GCJ='-static'
15845 ;;
15846 pgcc* | pgf77* | pgf90* | pgf95*)
15847 # Portland Group compilers (*not* the Pentium gcc compiler,
15848 # which looks to be a dead project)
15849 lt_prog_compiler_wl_GCJ='-Wl,'
15850 lt_prog_compiler_pic_GCJ='-fpic'
15851 lt_prog_compiler_static_GCJ='-Bstatic'
15852 ;;
15853 ccc*)
15854 lt_prog_compiler_wl_GCJ='-Wl,'
15855 # All Alpha code is PIC.
15856 lt_prog_compiler_static_GCJ='-non_shared'
15857 ;;
15858 esac
15859 ;;
15860
15861 osf3* | osf4* | osf5*)
15862 lt_prog_compiler_wl_GCJ='-Wl,'
15863 # All OSF/1 code is PIC.
15864 lt_prog_compiler_static_GCJ='-non_shared'
15865 ;;
15866
15867 solaris*)
15868 lt_prog_compiler_pic_GCJ='-KPIC'
15869 lt_prog_compiler_static_GCJ='-Bstatic'
15870 case $cc_basename in
15871 f77* | f90* | f95*)
15872 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15873 *)
15874 lt_prog_compiler_wl_GCJ='-Wl,';;
15875 esac
15876 ;;
15877
15878 sunos4*)
15879 lt_prog_compiler_wl_GCJ='-Qoption ld '
15880 lt_prog_compiler_pic_GCJ='-PIC'
15881 lt_prog_compiler_static_GCJ='-Bstatic'
15882 ;;
15883
15884 sysv4 | sysv4.2uw2* | sysv4.3*)
15885 lt_prog_compiler_wl_GCJ='-Wl,'
15886 lt_prog_compiler_pic_GCJ='-KPIC'
15887 lt_prog_compiler_static_GCJ='-Bstatic'
15888 ;;
15889
15890 sysv4*MP*)
15891 if test -d /usr/nec ;then
15892 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15893 lt_prog_compiler_static_GCJ='-Bstatic'
15894 fi
15895 ;;
15896
15897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15898 lt_prog_compiler_wl_GCJ='-Wl,'
15899 lt_prog_compiler_pic_GCJ='-KPIC'
15900 lt_prog_compiler_static_GCJ='-Bstatic'
15901 ;;
15902
15903 unicos*)
15904 lt_prog_compiler_wl_GCJ='-Wl,'
15905 lt_prog_compiler_can_build_shared_GCJ=no
15906 ;;
15907
15908 uts4*)
15909 lt_prog_compiler_pic_GCJ='-pic'
15910 lt_prog_compiler_static_GCJ='-Bstatic'
15911 ;;
15912
15913 *)
15914 lt_prog_compiler_can_build_shared_GCJ=no
15915 ;;
15916 esac
15917 fi
15918
15919 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15920 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15921
15922 #
15923 # Check to make sure the PIC flag actually works.
15924 #
15925 if test -n "$lt_prog_compiler_pic_GCJ"; then
15926
15927 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15929 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 else
15932 lt_prog_compiler_pic_works_GCJ=no
15933 ac_outfile=conftest.$ac_objext
15934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15935 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15936 # Insert the option either (1) after the last *FLAGS variable, or
15937 # (2) before a word containing "conftest.", or (3) at the end.
15938 # Note that $ac_compile itself does not contain backslashes and begins
15939 # with a dollar sign (not a hyphen), so the echo should work correctly.
15940 # The option is referenced via a variable to avoid confusing sed.
15941 lt_compile=`echo "$ac_compile" | $SED \
15942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944 -e 's:$: $lt_compiler_flag:'`
15945 (eval echo "\"\$as_me:15945: $lt_compile\"" >&5)
15946 (eval "$lt_compile" 2>conftest.err)
15947 ac_status=$?
15948 cat conftest.err >&5
15949 echo "$as_me:15949: \$? = $ac_status" >&5
15950 if (exit $ac_status) && test -s "$ac_outfile"; then
15951 # The compiler can only warn and ignore the option if not recognized
15952 # So say no if there are warnings other than the usual output.
15953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15956 lt_prog_compiler_pic_works_GCJ=yes
15957 fi
15958 fi
15959 $rm conftest*
15960
15961 fi
15962 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15963 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15964
15965 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15966 case $lt_prog_compiler_pic_GCJ in
15967 "" | " "*) ;;
15968 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15969 esac
15970 else
15971 lt_prog_compiler_pic_GCJ=
15972 lt_prog_compiler_can_build_shared_GCJ=no
15973 fi
15974
15975 fi
15976 case $host_os in
15977 # For platforms which do not support PIC, -DPIC is meaningless:
15978 *djgpp*)
15979 lt_prog_compiler_pic_GCJ=
15980 ;;
15981 *)
15982 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15983 ;;
15984 esac
15985
15986 #
15987 # Check to make sure the static flag actually works.
15988 #
15989 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15990 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15991 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15992 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 else
15995 lt_prog_compiler_static_works_GCJ=no
15996 save_LDFLAGS="$LDFLAGS"
15997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15998 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16000 # The linker can only warn and ignore the option if not recognized
16001 # So say no if there are warnings
16002 if test -s conftest.err; then
16003 # Append any errors to the config.log.
16004 cat conftest.err 1>&5
16005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16007 if diff conftest.exp conftest.er2 >/dev/null; then
16008 lt_prog_compiler_static_works_GCJ=yes
16009 fi
16010 else
16011 lt_prog_compiler_static_works_GCJ=yes
16012 fi
16013 fi
16014 $rm conftest*
16015 LDFLAGS="$save_LDFLAGS"
16016
16017 fi
16018 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16019 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16020
16021 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16022 :
16023 else
16024 lt_prog_compiler_static_GCJ=
16025 fi
16026
16027
16028 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16030 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 else
16033 lt_cv_prog_compiler_c_o_GCJ=no
16034 $rm -r conftest 2>/dev/null
16035 mkdir conftest
16036 cd conftest
16037 mkdir out
16038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16039
16040 lt_compiler_flag="-o out/conftest2.$ac_objext"
16041 # Insert the option either (1) after the last *FLAGS variable, or
16042 # (2) before a word containing "conftest.", or (3) at the end.
16043 # Note that $ac_compile itself does not contain backslashes and begins
16044 # with a dollar sign (not a hyphen), so the echo should work correctly.
16045 lt_compile=`echo "$ac_compile" | $SED \
16046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16048 -e 's:$: $lt_compiler_flag:'`
16049 (eval echo "\"\$as_me:16049: $lt_compile\"" >&5)
16050 (eval "$lt_compile" 2>out/conftest.err)
16051 ac_status=$?
16052 cat out/conftest.err >&5
16053 echo "$as_me:16053: \$? = $ac_status" >&5
16054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16055 then
16056 # The compiler can only warn and ignore the option if not recognized
16057 # So say no if there are warnings
16058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16061 lt_cv_prog_compiler_c_o_GCJ=yes
16062 fi
16063 fi
16064 chmod u+w . 2>&5
16065 $rm conftest*
16066 # SGI C++ compiler will create directory out/ii_files/ for
16067 # template instantiation
16068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16069 $rm out/* && rmdir out
16070 cd ..
16071 rmdir conftest
16072 $rm conftest*
16073
16074 fi
16075 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16077
16078
16079 hard_links="nottested"
16080 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16081 # do not overwrite the value of need_locks provided by the user
16082 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16084 hard_links=yes
16085 $rm conftest*
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087 touch conftest.a
16088 ln conftest.a conftest.b 2>&5 || hard_links=no
16089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090 echo "$as_me:$LINENO: result: $hard_links" >&5
16091 echo "${ECHO_T}$hard_links" >&6
16092 if test "$hard_links" = no; then
16093 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16095 need_locks=warn
16096 fi
16097 else
16098 need_locks=no
16099 fi
16100
16101 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16103
16104 runpath_var=
16105 allow_undefined_flag_GCJ=
16106 enable_shared_with_static_runtimes_GCJ=no
16107 archive_cmds_GCJ=
16108 archive_expsym_cmds_GCJ=
16109 old_archive_From_new_cmds_GCJ=
16110 old_archive_from_expsyms_cmds_GCJ=
16111 export_dynamic_flag_spec_GCJ=
16112 whole_archive_flag_spec_GCJ=
16113 thread_safe_flag_spec_GCJ=
16114 hardcode_libdir_flag_spec_GCJ=
16115 hardcode_libdir_flag_spec_ld_GCJ=
16116 hardcode_libdir_separator_GCJ=
16117 hardcode_direct_GCJ=no
16118 hardcode_minus_L_GCJ=no
16119 hardcode_shlibpath_var_GCJ=unsupported
16120 link_all_deplibs_GCJ=unknown
16121 hardcode_automatic_GCJ=no
16122 module_cmds_GCJ=
16123 module_expsym_cmds_GCJ=
16124 always_export_symbols_GCJ=no
16125 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16126 # include_expsyms should be a list of space-separated symbols to be *always*
16127 # included in the symbol list
16128 include_expsyms_GCJ=
16129 # exclude_expsyms can be an extended regexp of symbols to exclude
16130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16132 # as well as any symbol that contains `d'.
16133 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16135 # platforms (ab)use it in PIC code, but their linkers get confused if
16136 # the symbol is explicitly referenced. Since portable code cannot
16137 # rely on this symbol name, it's probably fine to never include it in
16138 # preloaded symbol tables.
16139 extract_expsyms_cmds=
16140 # Just being paranoid about ensuring that cc_basename is set.
16141 for cc_temp in $compiler""; do
16142 case $cc_temp in
16143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16145 \-*) ;;
16146 *) break;;
16147 esac
16148 done
16149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16150
16151 case $host_os in
16152 cygwin* | mingw* | pw32*)
16153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16154 # When not using gcc, we currently assume that we are using
16155 # Microsoft Visual C++.
16156 if test "$GCC" != yes; then
16157 with_gnu_ld=no
16158 fi
16159 ;;
16160 interix*)
16161 # we just hope/assume this is gcc and not c89 (= MSVC++)
16162 with_gnu_ld=yes
16163 ;;
16164 openbsd*)
16165 with_gnu_ld=no
16166 ;;
16167 esac
16168
16169 ld_shlibs_GCJ=yes
16170 if test "$with_gnu_ld" = yes; then
16171 # If archive_cmds runs LD, not CC, wlarc should be empty
16172 wlarc='${wl}'
16173
16174 # Set some defaults for GNU ld with shared library support. These
16175 # are reset later if shared libraries are not supported. Putting them
16176 # here allows them to be overridden if necessary.
16177 runpath_var=LD_RUN_PATH
16178 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16179 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16180 # ancient GNU ld didn't support --whole-archive et. al.
16181 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16182 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16183 else
16184 whole_archive_flag_spec_GCJ=
16185 fi
16186 supports_anon_versioning=no
16187 case `$LD -v 2>/dev/null` in
16188 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16189 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16190 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16191 *\ 2.11.*) ;; # other 2.11 versions
16192 *) supports_anon_versioning=yes ;;
16193 esac
16194
16195 # See if GNU ld supports shared libraries.
16196 case $host_os in
16197 aix3* | aix4* | aix5*)
16198 # On AIX/PPC, the GNU linker is very broken
16199 if test "$host_cpu" != ia64; then
16200 ld_shlibs_GCJ=no
16201 cat <<EOF 1>&2
16202
16203 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16204 *** to be unable to reliably create shared libraries on AIX.
16205 *** Therefore, libtool is disabling shared libraries support. If you
16206 *** really care for shared libraries, you may want to modify your PATH
16207 *** so that a non-GNU linker is found, and then restart.
16208
16209 EOF
16210 fi
16211 ;;
16212
16213 amigaos*)
16214 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)'
16215 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16216 hardcode_minus_L_GCJ=yes
16217
16218 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16219 # that the semantics of dynamic libraries on AmigaOS, at least up
16220 # to version 4, is to share data among multiple programs linked
16221 # with the same dynamic library. Since this doesn't match the
16222 # behavior of shared libraries on other platforms, we can't use
16223 # them.
16224 ld_shlibs_GCJ=no
16225 ;;
16226
16227 beos*)
16228 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16229 allow_undefined_flag_GCJ=unsupported
16230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16231 # support --undefined. This deserves some investigation. FIXME
16232 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16233 else
16234 ld_shlibs_GCJ=no
16235 fi
16236 ;;
16237
16238 cygwin* | mingw* | pw32*)
16239 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16240 # as there is no search path for DLLs.
16241 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16242 allow_undefined_flag_GCJ=unsupported
16243 always_export_symbols_GCJ=no
16244 enable_shared_with_static_runtimes_GCJ=yes
16245 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16246
16247 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16248 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16249 # If the export-symbols file already is a .def file (1st line
16250 # is EXPORTS), use it as is; otherwise, prepend...
16251 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16252 cp $export_symbols $output_objdir/$soname.def;
16253 else
16254 echo EXPORTS > $output_objdir/$soname.def;
16255 cat $export_symbols >> $output_objdir/$soname.def;
16256 fi~
16257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16258 else
16259 ld_shlibs_GCJ=no
16260 fi
16261 ;;
16262
16263 interix3*)
16264 hardcode_direct_GCJ=no
16265 hardcode_shlibpath_var_GCJ=no
16266 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16267 export_dynamic_flag_spec_GCJ='${wl}-E'
16268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16269 # Instead, shared libraries are loaded at an image base (0x10000000 by
16270 # default) and relocated if they conflict, which is a slow very memory
16271 # consuming and fragmenting process. To avoid this, we pick a random,
16272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16274 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16275 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16276 ;;
16277
16278 linux*)
16279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16280 tmp_addflag=
16281 case $cc_basename,$host_cpu in
16282 pgcc*) # Portland Group C compiler
16283 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'
16284 tmp_addflag=' $pic_flag'
16285 ;;
16286 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16287 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'
16288 tmp_addflag=' $pic_flag -Mnomain' ;;
16289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16290 tmp_addflag=' -i_dynamic' ;;
16291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16292 tmp_addflag=' -i_dynamic -nofor_main' ;;
16293 ifc* | ifort*) # Intel Fortran compiler
16294 tmp_addflag=' -nofor_main' ;;
16295 esac
16296 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297
16298 if test $supports_anon_versioning = yes; then
16299 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16301 $echo "local: *; };" >> $output_objdir/$libname.ver~
16302 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16303 fi
16304 else
16305 ld_shlibs_GCJ=no
16306 fi
16307 ;;
16308
16309 netbsd*)
16310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16311 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16312 wlarc=
16313 else
16314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16316 fi
16317 ;;
16318
16319 solaris*)
16320 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16321 ld_shlibs_GCJ=no
16322 cat <<EOF 1>&2
16323
16324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16325 *** create shared libraries on Solaris systems. Therefore, libtool
16326 *** is disabling shared libraries support. We urge you to upgrade GNU
16327 *** binutils to release 2.9.1 or newer. Another option is to modify
16328 *** your PATH or compiler configuration so that the native linker is
16329 *** used, and then restart.
16330
16331 EOF
16332 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16333 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16335 else
16336 ld_shlibs_GCJ=no
16337 fi
16338 ;;
16339
16340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16341 case `$LD -v 2>&1` in
16342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16343 ld_shlibs_GCJ=no
16344 cat <<_LT_EOF 1>&2
16345
16346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16347 *** reliably create shared libraries on SCO systems. Therefore, libtool
16348 *** is disabling shared libraries support. We urge you to upgrade GNU
16349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16350 *** your PATH or compiler configuration so that the native linker is
16351 *** used, and then restart.
16352
16353 _LT_EOF
16354 ;;
16355 *)
16356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16357 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16358 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16359 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16360 else
16361 ld_shlibs_GCJ=no
16362 fi
16363 ;;
16364 esac
16365 ;;
16366
16367 sunos4*)
16368 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16369 wlarc=
16370 hardcode_direct_GCJ=yes
16371 hardcode_shlibpath_var_GCJ=no
16372 ;;
16373
16374 *)
16375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16377 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16378 else
16379 ld_shlibs_GCJ=no
16380 fi
16381 ;;
16382 esac
16383
16384 if test "$ld_shlibs_GCJ" = no; then
16385 runpath_var=
16386 hardcode_libdir_flag_spec_GCJ=
16387 export_dynamic_flag_spec_GCJ=
16388 whole_archive_flag_spec_GCJ=
16389 fi
16390 else
16391 # PORTME fill in a description of your system's linker (not GNU ld)
16392 case $host_os in
16393 aix3*)
16394 allow_undefined_flag_GCJ=unsupported
16395 always_export_symbols_GCJ=yes
16396 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'
16397 # Note: this linker hardcodes the directories in LIBPATH if there
16398 # are no directories specified by -L.
16399 hardcode_minus_L_GCJ=yes
16400 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16401 # Neither direct hardcoding nor static linking is supported with a
16402 # broken collect2.
16403 hardcode_direct_GCJ=unsupported
16404 fi
16405 ;;
16406
16407 aix4* | aix5*)
16408 if test "$host_cpu" = ia64; then
16409 # On IA64, the linker does run time linking by default, so we don't
16410 # have to do anything special.
16411 aix_use_runtimelinking=no
16412 exp_sym_flag='-Bexport'
16413 no_entry_flag=""
16414 else
16415 # If we're using GNU nm, then we don't want the "-C" option.
16416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16417 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16418 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'
16419 else
16420 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'
16421 fi
16422 aix_use_runtimelinking=no
16423
16424 # Test if we are trying to use run time linking or normal
16425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16426 # need to do runtime linking.
16427 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16428 for ld_flag in $LDFLAGS; do
16429 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16430 aix_use_runtimelinking=yes
16431 break
16432 fi
16433 done
16434 ;;
16435 esac
16436
16437 exp_sym_flag='-bexport'
16438 no_entry_flag='-bnoentry'
16439 fi
16440
16441 # When large executables or shared objects are built, AIX ld can
16442 # have problems creating the table of contents. If linking a library
16443 # or program results in "error TOC overflow" add -mminimal-toc to
16444 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16445 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16446
16447 archive_cmds_GCJ=''
16448 hardcode_direct_GCJ=yes
16449 hardcode_libdir_separator_GCJ=':'
16450 link_all_deplibs_GCJ=yes
16451
16452 if test "$GCC" = yes; then
16453 case $host_os in aix4.[012]|aix4.[012].*)
16454 # We only want to do this on AIX 4.2 and lower, the check
16455 # below for broken collect2 doesn't work under 4.3+
16456 collect2name=`${CC} -print-prog-name=collect2`
16457 if test -f "$collect2name" && \
16458 strings "$collect2name" | grep resolve_lib_name >/dev/null
16459 then
16460 # We have reworked collect2
16461 hardcode_direct_GCJ=yes
16462 else
16463 # We have old collect2
16464 hardcode_direct_GCJ=unsupported
16465 # It fails to find uninstalled libraries when the uninstalled
16466 # path is not listed in the libpath. Setting hardcode_minus_L
16467 # to unsupported forces relinking
16468 hardcode_minus_L_GCJ=yes
16469 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16470 hardcode_libdir_separator_GCJ=
16471 fi
16472 ;;
16473 esac
16474 shared_flag='-shared'
16475 if test "$aix_use_runtimelinking" = yes; then
16476 shared_flag="$shared_flag "'${wl}-G'
16477 fi
16478 else
16479 # not using gcc
16480 if test "$host_cpu" = ia64; then
16481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16482 # chokes on -Wl,-G. The following line is correct:
16483 shared_flag='-G'
16484 else
16485 if test "$aix_use_runtimelinking" = yes; then
16486 shared_flag='${wl}-G'
16487 else
16488 shared_flag='${wl}-bM:SRE'
16489 fi
16490 fi
16491 fi
16492
16493 # It seems that -bexpall does not export symbols beginning with
16494 # underscore (_), so it is better to generate a list of symbols to export.
16495 always_export_symbols_GCJ=yes
16496 if test "$aix_use_runtimelinking" = yes; then
16497 # Warning - without using the other runtime loading flags (-brtl),
16498 # -berok will link without error, but may produce a broken library.
16499 allow_undefined_flag_GCJ='-berok'
16500 # Determine the default libpath from the value encoded in an empty executable.
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507
16508 int
16509 main ()
16510 {
16511
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518 (eval $ac_link) 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag"
16526 || test ! -s conftest.err'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest$ac_exeext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538
16539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16540 }'`
16541 # Check for a 64-bit object if we didn't find anything.
16542 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; }
16543 }'`; fi
16544 else
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 fi
16549 rm -f conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16552
16553 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16554 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16555 else
16556 if test "$host_cpu" = ia64; then
16557 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16558 allow_undefined_flag_GCJ="-z nodefs"
16559 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16560 else
16561 # Determine the default libpath from the value encoded in an empty executable.
16562 cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h. */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568
16569 int
16570 main ()
16571 {
16572
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest$ac_exeext'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599
16600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16601 }'`
16602 # Check for a 64-bit object if we didn't find anything.
16603 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; }
16604 }'`; fi
16605 else
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 fi
16610 rm -f conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16613
16614 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16615 # Warning - without using the other run time loading flags,
16616 # -berok will link without error, but may produce a broken library.
16617 no_undefined_flag_GCJ=' ${wl}-bernotok'
16618 allow_undefined_flag_GCJ=' ${wl}-berok'
16619 # Exported symbols can be pulled into shared objects from archives
16620 whole_archive_flag_spec_GCJ='$convenience'
16621 archive_cmds_need_lc_GCJ=yes
16622 # This is similar to how AIX traditionally builds its shared libraries.
16623 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16624 fi
16625 fi
16626 ;;
16627
16628 amigaos*)
16629 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)'
16630 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16631 hardcode_minus_L_GCJ=yes
16632 # see comment about different semantics on the GNU ld section
16633 ld_shlibs_GCJ=no
16634 ;;
16635
16636 bsdi[45]*)
16637 export_dynamic_flag_spec_GCJ=-rdynamic
16638 ;;
16639
16640 cygwin* | mingw* | pw32*)
16641 # When not using gcc, we currently assume that we are using
16642 # Microsoft Visual C++.
16643 # hardcode_libdir_flag_spec is actually meaningless, as there is
16644 # no search path for DLLs.
16645 hardcode_libdir_flag_spec_GCJ=' '
16646 allow_undefined_flag_GCJ=unsupported
16647 # Tell ltmain to make .lib files, not .a files.
16648 libext=lib
16649 # Tell ltmain to make .dll files, not .so files.
16650 shrext_cmds=".dll"
16651 # FIXME: Setting linknames here is a bad hack.
16652 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16653 # The linker will automatically build a .lib file if we build a DLL.
16654 old_archive_From_new_cmds_GCJ='true'
16655 # FIXME: Should let the user specify the lib program.
16656 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16657 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16658 enable_shared_with_static_runtimes_GCJ=yes
16659 ;;
16660
16661 darwin* | rhapsody*)
16662 case $host_os in
16663 rhapsody* | darwin1.[012])
16664 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16665 ;;
16666 *) # Darwin 1.3 on
16667 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16668 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16669 else
16670 case ${MACOSX_DEPLOYMENT_TARGET} in
16671 10.[012])
16672 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16673 ;;
16674 10.*)
16675 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16676 ;;
16677 esac
16678 fi
16679 ;;
16680 esac
16681 archive_cmds_need_lc_GCJ=no
16682 hardcode_direct_GCJ=no
16683 hardcode_automatic_GCJ=yes
16684 hardcode_shlibpath_var_GCJ=unsupported
16685 whole_archive_flag_spec_GCJ=''
16686 link_all_deplibs_GCJ=yes
16687 if test "$GCC" = yes ; then
16688 output_verbose_link_cmd='echo'
16689 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16690 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16692 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}'
16693 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}'
16694 else
16695 case $cc_basename in
16696 xlc*)
16697 output_verbose_link_cmd='echo'
16698 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16699 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16700 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16701 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}'
16702 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}'
16703 ;;
16704 *)
16705 ld_shlibs_GCJ=no
16706 ;;
16707 esac
16708 fi
16709 ;;
16710
16711 dgux*)
16712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16714 hardcode_shlibpath_var_GCJ=no
16715 ;;
16716
16717 freebsd1*)
16718 ld_shlibs_GCJ=no
16719 ;;
16720
16721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16722 # support. Future versions do this automatically, but an explicit c++rt0.o
16723 # does not break anything, and helps significantly (at the cost of a little
16724 # extra space).
16725 freebsd2.2*)
16726 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16727 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16728 hardcode_direct_GCJ=yes
16729 hardcode_shlibpath_var_GCJ=no
16730 ;;
16731
16732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16733 freebsd2*)
16734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_direct_GCJ=yes
16736 hardcode_minus_L_GCJ=yes
16737 hardcode_shlibpath_var_GCJ=no
16738 ;;
16739
16740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16741 freebsd* | kfreebsd*-gnu | dragonfly*)
16742 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16744 hardcode_direct_GCJ=yes
16745 hardcode_shlibpath_var_GCJ=no
16746 ;;
16747
16748 hpux9*)
16749 if test "$GCC" = yes; then
16750 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'
16751 else
16752 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'
16753 fi
16754 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16755 hardcode_libdir_separator_GCJ=:
16756 hardcode_direct_GCJ=yes
16757
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L_GCJ=yes
16761 export_dynamic_flag_spec_GCJ='${wl}-E'
16762 ;;
16763
16764 hpux10*)
16765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16766 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16767 else
16768 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16769 fi
16770 if test "$with_gnu_ld" = no; then
16771 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16772 hardcode_libdir_separator_GCJ=:
16773
16774 hardcode_direct_GCJ=yes
16775 export_dynamic_flag_spec_GCJ='${wl}-E'
16776
16777 # hardcode_minus_L: Not really in the search PATH,
16778 # but as the default location of the library.
16779 hardcode_minus_L_GCJ=yes
16780 fi
16781 ;;
16782
16783 hpux11*)
16784 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16785 case $host_cpu in
16786 hppa*64*)
16787 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16788 ;;
16789 ia64*)
16790 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16791 ;;
16792 *)
16793 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16794 ;;
16795 esac
16796 else
16797 case $host_cpu in
16798 hppa*64*)
16799 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16800 ;;
16801 ia64*)
16802 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16803 ;;
16804 *)
16805 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16806 ;;
16807 esac
16808 fi
16809 if test "$with_gnu_ld" = no; then
16810 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16811 hardcode_libdir_separator_GCJ=:
16812
16813 case $host_cpu in
16814 hppa*64*|ia64*)
16815 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16816 hardcode_direct_GCJ=no
16817 hardcode_shlibpath_var_GCJ=no
16818 ;;
16819 *)
16820 hardcode_direct_GCJ=yes
16821 export_dynamic_flag_spec_GCJ='${wl}-E'
16822
16823 # hardcode_minus_L: Not really in the search PATH,
16824 # but as the default location of the library.
16825 hardcode_minus_L_GCJ=yes
16826 ;;
16827 esac
16828 fi
16829 ;;
16830
16831 irix5* | irix6* | nonstopux*)
16832 if test "$GCC" = yes; then
16833 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'
16834 else
16835 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'
16836 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16837 fi
16838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16839 hardcode_libdir_separator_GCJ=:
16840 link_all_deplibs_GCJ=yes
16841 ;;
16842
16843 netbsd*)
16844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16846 else
16847 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16848 fi
16849 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16850 hardcode_direct_GCJ=yes
16851 hardcode_shlibpath_var_GCJ=no
16852 ;;
16853
16854 newsos6)
16855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856 hardcode_direct_GCJ=yes
16857 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16858 hardcode_libdir_separator_GCJ=:
16859 hardcode_shlibpath_var_GCJ=no
16860 ;;
16861
16862 openbsd*)
16863 hardcode_direct_GCJ=yes
16864 hardcode_shlibpath_var_GCJ=no
16865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16869 export_dynamic_flag_spec_GCJ='${wl}-E'
16870 else
16871 case $host_os in
16872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16875 ;;
16876 *)
16877 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16878 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16879 ;;
16880 esac
16881 fi
16882 ;;
16883
16884 os2*)
16885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16886 hardcode_minus_L_GCJ=yes
16887 allow_undefined_flag_GCJ=unsupported
16888 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'
16889 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16890 ;;
16891
16892 osf3*)
16893 if test "$GCC" = yes; then
16894 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16895 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'
16896 else
16897 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16898 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'
16899 fi
16900 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16901 hardcode_libdir_separator_GCJ=:
16902 ;;
16903
16904 osf4* | osf5*) # as osf3* with the addition of -msym flag
16905 if test "$GCC" = yes; then
16906 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16907 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'
16908 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16909 else
16910 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16911 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'
16912 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~
16913 $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'
16914
16915 # Both c and cxx compiler support -rpath directly
16916 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16917 fi
16918 hardcode_libdir_separator_GCJ=:
16919 ;;
16920
16921 solaris*)
16922 no_undefined_flag_GCJ=' -z text'
16923 if test "$GCC" = yes; then
16924 wlarc='${wl}'
16925 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16927 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16928 else
16929 wlarc=''
16930 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16933 fi
16934 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16935 hardcode_shlibpath_var_GCJ=no
16936 case $host_os in
16937 solaris2.[0-5] | solaris2.[0-5].*) ;;
16938 *)
16939 # The compiler driver will combine linker options so we
16940 # cannot just pass the convience library names through
16941 # without $wl, iff we do not link with $LD.
16942 # Luckily, gcc supports the same syntax we need for Sun Studio.
16943 # Supported since Solaris 2.6 (maybe 2.5.1?)
16944 case $wlarc in
16945 '')
16946 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16947 *)
16948 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' ;;
16949 esac ;;
16950 esac
16951 link_all_deplibs_GCJ=yes
16952 ;;
16953
16954 sunos4*)
16955 if test "x$host_vendor" = xsequent; then
16956 # Use $CC to link under sequent, because it throws in some extra .o
16957 # files that make .init and .fini sections work.
16958 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16959 else
16960 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16961 fi
16962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16963 hardcode_direct_GCJ=yes
16964 hardcode_minus_L_GCJ=yes
16965 hardcode_shlibpath_var_GCJ=no
16966 ;;
16967
16968 sysv4)
16969 case $host_vendor in
16970 sni)
16971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16972 hardcode_direct_GCJ=yes # is this really true???
16973 ;;
16974 siemens)
16975 ## LD is ld it makes a PLAMLIB
16976 ## CC just makes a GrossModule.
16977 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16978 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16979 hardcode_direct_GCJ=no
16980 ;;
16981 motorola)
16982 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16984 ;;
16985 esac
16986 runpath_var='LD_RUN_PATH'
16987 hardcode_shlibpath_var_GCJ=no
16988 ;;
16989
16990 sysv4.3*)
16991 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16992 hardcode_shlibpath_var_GCJ=no
16993 export_dynamic_flag_spec_GCJ='-Bexport'
16994 ;;
16995
16996 sysv4*MP*)
16997 if test -d /usr/nec; then
16998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_shlibpath_var_GCJ=no
17000 runpath_var=LD_RUN_PATH
17001 hardcode_runpath_var=yes
17002 ld_shlibs_GCJ=yes
17003 fi
17004 ;;
17005
17006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17007 no_undefined_flag_GCJ='${wl}-z,text'
17008 archive_cmds_need_lc_GCJ=no
17009 hardcode_shlibpath_var_GCJ=no
17010 runpath_var='LD_RUN_PATH'
17011
17012 if test "$GCC" = yes; then
17013 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17015 else
17016 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 fi
17019 ;;
17020
17021 sysv5* | sco3.2v5* | sco5v6*)
17022 # Note: We can NOT use -z defs as we might desire, because we do not
17023 # link with -lc, and that would cause any symbols used from libc to
17024 # always be unresolved, which means just about no library would
17025 # ever link correctly. If we're not using GNU ld we use -z text
17026 # though, which does catch some bad symbols but isn't as heavy-handed
17027 # as -z defs.
17028 no_undefined_flag_GCJ='${wl}-z,text'
17029 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17030 archive_cmds_need_lc_GCJ=no
17031 hardcode_shlibpath_var_GCJ=no
17032 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17033 hardcode_libdir_separator_GCJ=':'
17034 link_all_deplibs_GCJ=yes
17035 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17036 runpath_var='LD_RUN_PATH'
17037
17038 if test "$GCC" = yes; then
17039 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 else
17042 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 fi
17045 ;;
17046
17047 uts4*)
17048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17050 hardcode_shlibpath_var_GCJ=no
17051 ;;
17052
17053 *)
17054 ld_shlibs_GCJ=no
17055 ;;
17056 esac
17057 fi
17058
17059 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17060 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17061 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17062
17063 #
17064 # Do we need to explicitly link libc?
17065 #
17066 case "x$archive_cmds_need_lc_GCJ" in
17067 x|xyes)
17068 # Assume -lc should be added
17069 archive_cmds_need_lc_GCJ=yes
17070
17071 if test "$enable_shared" = yes && test "$GCC" = yes; then
17072 case $archive_cmds_GCJ in
17073 *'~'*)
17074 # FIXME: we may have to deal with multi-command sequences.
17075 ;;
17076 '$CC '*)
17077 # Test whether the compiler implicitly links with -lc since on some
17078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17079 # to ld, don't add -lc before -lgcc.
17080 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17081 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17082 $rm conftest*
17083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17084
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086 (eval $ac_compile) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } 2>conftest.err; then
17090 soname=conftest
17091 lib=conftest
17092 libobjs=conftest.$ac_objext
17093 deplibs=
17094 wl=$lt_prog_compiler_wl_GCJ
17095 pic_flag=$lt_prog_compiler_pic_GCJ
17096 compiler_flags=-v
17097 linker_flags=-v
17098 verstring=
17099 output_objdir=.
17100 libname=conftest
17101 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17102 allow_undefined_flag_GCJ=
17103 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17104 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }
17108 then
17109 archive_cmds_need_lc_GCJ=no
17110 else
17111 archive_cmds_need_lc_GCJ=yes
17112 fi
17113 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17114 else
17115 cat conftest.err 1>&5
17116 fi
17117 $rm conftest*
17118 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17119 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17120 ;;
17121 esac
17122 fi
17123 ;;
17124 esac
17125
17126 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17127 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17128 library_names_spec=
17129 libname_spec='lib$name'
17130 soname_spec=
17131 shrext_cmds=".so"
17132 postinstall_cmds=
17133 postuninstall_cmds=
17134 finish_cmds=
17135 finish_eval=
17136 shlibpath_var=
17137 shlibpath_overrides_runpath=unknown
17138 version_type=none
17139 dynamic_linker="$host_os ld.so"
17140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17141 if test "$GCC" = yes; then
17142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17143 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17144 # if the path contains ";" then we assume it to be the separator
17145 # otherwise default to the standard path separator (i.e. ":") - it is
17146 # assumed that no part of a normal pathname contains ";" but that should
17147 # okay in the real world where ";" in dirpaths is itself problematic.
17148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17149 else
17150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17151 fi
17152 else
17153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17154 fi
17155 need_lib_prefix=unknown
17156 hardcode_into_libs=no
17157
17158 # when you set need_version to no, make sure it does not cause -set_version
17159 # flags to be left without arguments
17160 need_version=unknown
17161
17162 case $host_os in
17163 aix3*)
17164 version_type=linux
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17166 shlibpath_var=LIBPATH
17167
17168 # AIX 3 has no versioning support, so we append a major version to the name.
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 ;;
17171
17172 aix4* | aix5*)
17173 version_type=linux
17174 need_lib_prefix=no
17175 need_version=no
17176 hardcode_into_libs=yes
17177 if test "$host_cpu" = ia64; then
17178 # AIX 5 supports IA64
17179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17180 shlibpath_var=LD_LIBRARY_PATH
17181 else
17182 # With GCC up to 2.95.x, collect2 would create an import file
17183 # for dependence libraries. The import file would start with
17184 # the line `#! .'. This would cause the generated library to
17185 # depend on `.', always an invalid library. This was fixed in
17186 # development snapshots of GCC prior to 3.0.
17187 case $host_os in
17188 aix4 | aix4.[01] | aix4.[01].*)
17189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17190 echo ' yes '
17191 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17192 :
17193 else
17194 can_build_shared=no
17195 fi
17196 ;;
17197 esac
17198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17199 # soname into executable. Probably we can add versioning support to
17200 # collect2, so additional links can be useful in future.
17201 if test "$aix_use_runtimelinking" = yes; then
17202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17203 # instead of lib<name>.a to let people know that these are not
17204 # typical AIX shared libraries.
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17206 else
17207 # We preserve .a as extension for shared libraries through AIX4.2
17208 # and later when we are not doing run time linking.
17209 library_names_spec='${libname}${release}.a $libname.a'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 fi
17212 shlibpath_var=LIBPATH
17213 fi
17214 ;;
17215
17216 amigaos*)
17217 library_names_spec='$libname.ixlibrary $libname.a'
17218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17219 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'
17220 ;;
17221
17222 beos*)
17223 library_names_spec='${libname}${shared_ext}'
17224 dynamic_linker="$host_os ld.so"
17225 shlibpath_var=LIBRARY_PATH
17226 ;;
17227
17228 bsdi[45]*)
17229 version_type=linux
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17237 # the default ld.so.conf also contains /usr/contrib/lib and
17238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17239 # libtool to hard-code these into programs
17240 ;;
17241
17242 cygwin* | mingw* | pw32*)
17243 version_type=windows
17244 shrext_cmds=".dll"
17245 need_version=no
17246 need_lib_prefix=no
17247
17248 case $GCC,$host_os in
17249 yes,cygwin* | yes,mingw* | yes,pw32*)
17250 library_names_spec='$libname.dll.a'
17251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17252 postinstall_cmds='base_file=`basename \${file}`~
17253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17254 dldir=$destdir/`dirname \$dlpath`~
17255 test -d \$dldir || mkdir -p \$dldir~
17256 $install_prog $dir/$dlname \$dldir/$dlname~
17257 chmod a+x \$dldir/$dlname'
17258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17259 dlpath=$dir/\$dldll~
17260 $rm \$dlpath'
17261 shlibpath_overrides_runpath=yes
17262
17263 case $host_os in
17264 cygwin*)
17265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17267 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17268 ;;
17269 mingw*)
17270 # MinGW DLLs use traditional 'lib' prefix
17271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17274 # It is most probably a Windows format PATH printed by
17275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17276 # path with ; separators, and with drive letters. We can handle the
17277 # drive letters (cygwin fileutils understands them), so leave them,
17278 # especially as we might pass files found there to a mingw objdump,
17279 # which wouldn't understand a cygwinified path. Ahh.
17280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17281 else
17282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17283 fi
17284 ;;
17285 pw32*)
17286 # pw32 DLLs use 'pw' prefix rather than 'lib'
17287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17288 ;;
17289 esac
17290 ;;
17291
17292 *)
17293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17294 ;;
17295 esac
17296 dynamic_linker='Win32 ld.exe'
17297 # FIXME: first we should search . and the directory the executable is in
17298 shlibpath_var=PATH
17299 ;;
17300
17301 darwin* | rhapsody*)
17302 dynamic_linker="$host_os dyld"
17303 version_type=darwin
17304 need_lib_prefix=no
17305 need_version=no
17306 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17307 soname_spec='${libname}${release}${major}$shared_ext'
17308 shlibpath_overrides_runpath=yes
17309 shlibpath_var=DYLD_LIBRARY_PATH
17310 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17311 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17312 if test "$GCC" = yes; then
17313 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"`
17314 else
17315 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17316 fi
17317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17318 ;;
17319
17320 dgux*)
17321 version_type=linux
17322 need_lib_prefix=no
17323 need_version=no
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 ;;
17328
17329 freebsd1*)
17330 dynamic_linker=no
17331 ;;
17332
17333 kfreebsd*-gnu)
17334 version_type=linux
17335 need_lib_prefix=no
17336 need_version=no
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 shlibpath_overrides_runpath=no
17341 hardcode_into_libs=yes
17342 dynamic_linker='GNU ld.so'
17343 ;;
17344
17345 freebsd* | dragonfly*)
17346 # DragonFly does not have aout. When/if they implement a new
17347 # versioning mechanism, adjust this.
17348 if test -x /usr/bin/objformat; then
17349 objformat=`/usr/bin/objformat`
17350 else
17351 case $host_os in
17352 freebsd[123]*) objformat=aout ;;
17353 *) objformat=elf ;;
17354 esac
17355 fi
17356 version_type=freebsd-$objformat
17357 case $version_type in
17358 freebsd-elf*)
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17360 need_version=no
17361 need_lib_prefix=no
17362 ;;
17363 freebsd-*)
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17365 need_version=yes
17366 ;;
17367 esac
17368 shlibpath_var=LD_LIBRARY_PATH
17369 case $host_os in
17370 freebsd2*)
17371 shlibpath_overrides_runpath=yes
17372 ;;
17373 freebsd3.[01]* | freebsdelf3.[01]*)
17374 shlibpath_overrides_runpath=yes
17375 hardcode_into_libs=yes
17376 ;;
17377 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17378 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17379 shlibpath_overrides_runpath=no
17380 hardcode_into_libs=yes
17381 ;;
17382 freebsd*) # from 4.6 on
17383 shlibpath_overrides_runpath=yes
17384 hardcode_into_libs=yes
17385 ;;
17386 esac
17387 ;;
17388
17389 gnu*)
17390 version_type=linux
17391 need_lib_prefix=no
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 hardcode_into_libs=yes
17397 ;;
17398
17399 hpux9* | hpux10* | hpux11*)
17400 # Give a soname corresponding to the major version so that dld.sl refuses to
17401 # link against other versions.
17402 version_type=sunos
17403 need_lib_prefix=no
17404 need_version=no
17405 case $host_cpu in
17406 ia64*)
17407 shrext_cmds='.so'
17408 hardcode_into_libs=yes
17409 dynamic_linker="$host_os dld.so"
17410 shlibpath_var=LD_LIBRARY_PATH
17411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 if test "X$HPUX_IA64_MODE" = X32; then
17415 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17416 else
17417 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17418 fi
17419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17420 ;;
17421 hppa*64*)
17422 shrext_cmds='.sl'
17423 hardcode_into_libs=yes
17424 dynamic_linker="$host_os dld.sl"
17425 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 soname_spec='${libname}${release}${shared_ext}$major'
17429 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17431 ;;
17432 *)
17433 shrext_cmds='.sl'
17434 dynamic_linker="$host_os dld.sl"
17435 shlibpath_var=SHLIB_PATH
17436 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 soname_spec='${libname}${release}${shared_ext}$major'
17439 ;;
17440 esac
17441 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17442 postinstall_cmds='chmod 555 $lib'
17443 ;;
17444
17445 interix3*)
17446 version_type=linux
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17452 shlibpath_var=LD_LIBRARY_PATH
17453 shlibpath_overrides_runpath=no
17454 hardcode_into_libs=yes
17455 ;;
17456
17457 irix5* | irix6* | nonstopux*)
17458 case $host_os in
17459 nonstopux*) version_type=nonstopux ;;
17460 *)
17461 if test "$lt_cv_prog_gnu_ld" = yes; then
17462 version_type=linux
17463 else
17464 version_type=irix
17465 fi ;;
17466 esac
17467 need_lib_prefix=no
17468 need_version=no
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17471 case $host_os in
17472 irix5* | nonstopux*)
17473 libsuff= shlibsuff=
17474 ;;
17475 *)
17476 case $LD in # libtool.m4 will add one of these switches to LD
17477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17478 libsuff= shlibsuff= libmagic=32-bit;;
17479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17480 libsuff=32 shlibsuff=N32 libmagic=N32;;
17481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17483 *) libsuff= shlibsuff= libmagic=never-match;;
17484 esac
17485 ;;
17486 esac
17487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17488 shlibpath_overrides_runpath=no
17489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17491 hardcode_into_libs=yes
17492 ;;
17493
17494 # No shared lib support for Linux oldld, aout, or coff.
17495 linux*oldld* | linux*aout* | linux*coff*)
17496 dynamic_linker=no
17497 ;;
17498
17499 # This must be Linux ELF.
17500 linux*)
17501 version_type=linux
17502 need_lib_prefix=no
17503 need_version=no
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 shlibpath_overrides_runpath=no
17509 # This implies no fast_install, which is unacceptable.
17510 # Some rework will be needed to allow for fast_install
17511 # before this can be enabled.
17512 hardcode_into_libs=yes
17513
17514 # find out which ABI we are using
17515 libsuff=
17516 case "$host_cpu" in
17517 x86_64*|s390x*|powerpc64*)
17518 echo '#line 17518 "configure"' > conftest.$ac_ext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; then
17524 case `/usr/bin/file conftest.$ac_objext` in
17525 *64-bit*)
17526 libsuff=64
17527 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17528 ;;
17529 esac
17530 fi
17531 rm -rf conftest*
17532 ;;
17533 esac
17534
17535 # Append ld.so.conf contents to the search path
17536 if test -f /etc/ld.so.conf; then
17537 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17538 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17539 fi
17540
17541 # We used to test for /lib/ld.so.1 and disable shared libraries on
17542 # powerpc, because MkLinux only supported shared libraries with the
17543 # GNU dynamic linker. Since this was broken with cross compilers,
17544 # most powerpc-linux boxes support dynamic linking these days and
17545 # people can always --disable-shared, the test was removed, and we
17546 # assume the GNU/Linux dynamic linker is in use.
17547 dynamic_linker='GNU/Linux ld.so'
17548 ;;
17549
17550 knetbsd*-gnu)
17551 version_type=linux
17552 need_lib_prefix=no
17553 need_version=no
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=no
17558 hardcode_into_libs=yes
17559 dynamic_linker='GNU ld.so'
17560 ;;
17561
17562 netbsd*)
17563 version_type=sunos
17564 need_lib_prefix=no
17565 need_version=no
17566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17569 dynamic_linker='NetBSD (a.out) ld.so'
17570 else
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17572 soname_spec='${libname}${release}${shared_ext}$major'
17573 dynamic_linker='NetBSD ld.elf_so'
17574 fi
17575 shlibpath_var=LD_LIBRARY_PATH
17576 shlibpath_overrides_runpath=yes
17577 hardcode_into_libs=yes
17578 ;;
17579
17580 newsos6)
17581 version_type=linux
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=yes
17585 ;;
17586
17587 nto-qnx*)
17588 version_type=linux
17589 need_lib_prefix=no
17590 need_version=no
17591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592 soname_spec='${libname}${release}${shared_ext}$major'
17593 shlibpath_var=LD_LIBRARY_PATH
17594 shlibpath_overrides_runpath=yes
17595 ;;
17596
17597 openbsd*)
17598 version_type=sunos
17599 sys_lib_dlsearch_path_spec="/usr/lib"
17600 need_lib_prefix=no
17601 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17602 case $host_os in
17603 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17604 *) need_version=no ;;
17605 esac
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17610 case $host_os in
17611 openbsd2.[89] | openbsd2.[89].*)
17612 shlibpath_overrides_runpath=no
17613 ;;
17614 *)
17615 shlibpath_overrides_runpath=yes
17616 ;;
17617 esac
17618 else
17619 shlibpath_overrides_runpath=yes
17620 fi
17621 ;;
17622
17623 os2*)
17624 libname_spec='$name'
17625 shrext_cmds=".dll"
17626 need_lib_prefix=no
17627 library_names_spec='$libname${shared_ext} $libname.a'
17628 dynamic_linker='OS/2 ld.exe'
17629 shlibpath_var=LIBPATH
17630 ;;
17631
17632 osf3* | osf4* | osf5*)
17633 version_type=osf
17634 need_lib_prefix=no
17635 need_version=no
17636 soname_spec='${libname}${release}${shared_ext}$major'
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638 shlibpath_var=LD_LIBRARY_PATH
17639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17640 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17641 ;;
17642
17643 solaris*)
17644 version_type=linux
17645 need_lib_prefix=no
17646 need_version=no
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 shlibpath_var=LD_LIBRARY_PATH
17650 shlibpath_overrides_runpath=yes
17651 hardcode_into_libs=yes
17652 # ldd complains unless libraries are executable
17653 postinstall_cmds='chmod +x $lib'
17654 ;;
17655
17656 sunos4*)
17657 version_type=sunos
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17660 shlibpath_var=LD_LIBRARY_PATH
17661 shlibpath_overrides_runpath=yes
17662 if test "$with_gnu_ld" = yes; then
17663 need_lib_prefix=no
17664 fi
17665 need_version=yes
17666 ;;
17667
17668 sysv4 | sysv4.3*)
17669 version_type=linux
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 shlibpath_var=LD_LIBRARY_PATH
17673 case $host_vendor in
17674 sni)
17675 shlibpath_overrides_runpath=no
17676 need_lib_prefix=no
17677 export_dynamic_flag_spec='${wl}-Blargedynsym'
17678 runpath_var=LD_RUN_PATH
17679 ;;
17680 siemens)
17681 need_lib_prefix=no
17682 ;;
17683 motorola)
17684 need_lib_prefix=no
17685 need_version=no
17686 shlibpath_overrides_runpath=no
17687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17688 ;;
17689 esac
17690 ;;
17691
17692 sysv4*MP*)
17693 if test -d /usr/nec ;then
17694 version_type=linux
17695 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17696 soname_spec='$libname${shared_ext}.$major'
17697 shlibpath_var=LD_LIBRARY_PATH
17698 fi
17699 ;;
17700
17701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17702 version_type=freebsd-elf
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 hardcode_into_libs=yes
17709 if test "$with_gnu_ld" = yes; then
17710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17711 shlibpath_overrides_runpath=no
17712 else
17713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17714 shlibpath_overrides_runpath=yes
17715 case $host_os in
17716 sco3.2v5*)
17717 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17718 ;;
17719 esac
17720 fi
17721 sys_lib_dlsearch_path_spec='/usr/lib'
17722 ;;
17723
17724 uts4*)
17725 version_type=linux
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 shlibpath_var=LD_LIBRARY_PATH
17729 ;;
17730
17731 *)
17732 dynamic_linker=no
17733 ;;
17734 esac
17735 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17736 echo "${ECHO_T}$dynamic_linker" >&6
17737 test "$dynamic_linker" = no && can_build_shared=no
17738
17739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17740 if test "$GCC" = yes; then
17741 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17742 fi
17743
17744 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17745 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17746 hardcode_action_GCJ=
17747 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17748 test -n "$runpath_var_GCJ" || \
17749 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17750
17751 # We can hardcode non-existant directories.
17752 if test "$hardcode_direct_GCJ" != no &&
17753 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17754 # have to relink, otherwise we might link with an installed library
17755 # when we should be linking with a yet-to-be-installed one
17756 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17757 test "$hardcode_minus_L_GCJ" != no; then
17758 # Linking always hardcodes the temporary library directory.
17759 hardcode_action_GCJ=relink
17760 else
17761 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17762 hardcode_action_GCJ=immediate
17763 fi
17764 else
17765 # We cannot hardcode anything, or else we can only hardcode existing
17766 # directories.
17767 hardcode_action_GCJ=unsupported
17768 fi
17769 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17770 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17771
17772 if test "$hardcode_action_GCJ" = relink; then
17773 # Fast installation is not supported
17774 enable_fast_install=no
17775 elif test "$shlibpath_overrides_runpath" = yes ||
17776 test "$enable_shared" = no; then
17777 # Fast installation is not necessary
17778 enable_fast_install=needless
17779 fi
17780
17781
17782 # The else clause should only fire when bootstrapping the
17783 # libtool distribution, otherwise you forgot to ship ltmain.sh
17784 # with your package, and you will get complaints that there are
17785 # no rules to generate ltmain.sh.
17786 if test -f "$ltmain"; then
17787 # See if we are running on zsh, and set the options which allow our commands through
17788 # without removal of \ escapes.
17789 if test -n "${ZSH_VERSION+set}" ; then
17790 setopt NO_GLOB_SUBST
17791 fi
17792 # Now quote all the things that may contain metacharacters while being
17793 # careful not to overquote the AC_SUBSTed values. We take copies of the
17794 # variables and quote the copies for generation of the libtool script.
17795 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17796 SED SHELL STRIP \
17797 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17798 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17799 deplibs_check_method reload_flag reload_cmds need_locks \
17800 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17801 lt_cv_sys_global_symbol_to_c_name_address \
17802 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17803 old_postinstall_cmds old_postuninstall_cmds \
17804 compiler_GCJ \
17805 CC_GCJ \
17806 LD_GCJ \
17807 lt_prog_compiler_wl_GCJ \
17808 lt_prog_compiler_pic_GCJ \
17809 lt_prog_compiler_static_GCJ \
17810 lt_prog_compiler_no_builtin_flag_GCJ \
17811 export_dynamic_flag_spec_GCJ \
17812 thread_safe_flag_spec_GCJ \
17813 whole_archive_flag_spec_GCJ \
17814 enable_shared_with_static_runtimes_GCJ \
17815 old_archive_cmds_GCJ \
17816 old_archive_from_new_cmds_GCJ \
17817 predep_objects_GCJ \
17818 postdep_objects_GCJ \
17819 predeps_GCJ \
17820 postdeps_GCJ \
17821 compiler_lib_search_path_GCJ \
17822 archive_cmds_GCJ \
17823 archive_expsym_cmds_GCJ \
17824 postinstall_cmds_GCJ \
17825 postuninstall_cmds_GCJ \
17826 old_archive_from_expsyms_cmds_GCJ \
17827 allow_undefined_flag_GCJ \
17828 no_undefined_flag_GCJ \
17829 export_symbols_cmds_GCJ \
17830 hardcode_libdir_flag_spec_GCJ \
17831 hardcode_libdir_flag_spec_ld_GCJ \
17832 hardcode_libdir_separator_GCJ \
17833 hardcode_automatic_GCJ \
17834 module_cmds_GCJ \
17835 module_expsym_cmds_GCJ \
17836 lt_cv_prog_compiler_c_o_GCJ \
17837 exclude_expsyms_GCJ \
17838 include_expsyms_GCJ; do
17839
17840 case $var in
17841 old_archive_cmds_GCJ | \
17842 old_archive_from_new_cmds_GCJ | \
17843 archive_cmds_GCJ | \
17844 archive_expsym_cmds_GCJ | \
17845 module_cmds_GCJ | \
17846 module_expsym_cmds_GCJ | \
17847 old_archive_from_expsyms_cmds_GCJ | \
17848 export_symbols_cmds_GCJ | \
17849 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17850 postinstall_cmds | postuninstall_cmds | \
17851 old_postinstall_cmds | old_postuninstall_cmds | \
17852 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17853 # Double-quote double-evaled strings.
17854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17855 ;;
17856 *)
17857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17858 ;;
17859 esac
17860 done
17861
17862 case $lt_echo in
17863 *'\$0 --fallback-echo"')
17864 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17865 ;;
17866 esac
17867
17868 cfgfile="$ofile"
17869
17870 cat <<__EOF__ >> "$cfgfile"
17871 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17872
17873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17874
17875 # Shell to use when invoking shell scripts.
17876 SHELL=$lt_SHELL
17877
17878 # Whether or not to build shared libraries.
17879 build_libtool_libs=$enable_shared
17880
17881 # Whether or not to build static libraries.
17882 build_old_libs=$enable_static
17883
17884 # Whether or not to add -lc for building shared libraries.
17885 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17886
17887 # Whether or not to disallow shared libs when runtime libs are static
17888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17889
17890 # Whether or not to optimize for fast installation.
17891 fast_install=$enable_fast_install
17892
17893 # The host system.
17894 host_alias=$host_alias
17895 host=$host
17896 host_os=$host_os
17897
17898 # The build system.
17899 build_alias=$build_alias
17900 build=$build
17901 build_os=$build_os
17902
17903 # An echo program that does not interpret backslashes.
17904 echo=$lt_echo
17905
17906 # The archiver.
17907 AR=$lt_AR
17908 AR_FLAGS=$lt_AR_FLAGS
17909
17910 # A C compiler.
17911 LTCC=$lt_LTCC
17912
17913 # LTCC compiler flags.
17914 LTCFLAGS=$lt_LTCFLAGS
17915
17916 # A language-specific compiler.
17917 CC=$lt_compiler_GCJ
17918
17919 # Is the compiler the GNU C compiler?
17920 with_gcc=$GCC_GCJ
17921
17922 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17923 gcc_ver=\`gcc -dumpversion\`
17924
17925 # An ERE matcher.
17926 EGREP=$lt_EGREP
17927
17928 # The linker used to build libraries.
17929 LD=$lt_LD_GCJ
17930
17931 # Whether we need hard or soft links.
17932 LN_S=$lt_LN_S
17933
17934 # A BSD-compatible nm program.
17935 NM=$lt_NM
17936
17937 # A symbol stripping program
17938 STRIP=$lt_STRIP
17939
17940 # Used to examine libraries when file_magic_cmd begins "file"
17941 MAGIC_CMD=$MAGIC_CMD
17942
17943 # Used on cygwin: DLL creation program.
17944 DLLTOOL="$DLLTOOL"
17945
17946 # Used on cygwin: object dumper.
17947 OBJDUMP="$OBJDUMP"
17948
17949 # Used on cygwin: assembler.
17950 AS="$AS"
17951
17952 # The name of the directory that contains temporary libtool files.
17953 objdir=$objdir
17954
17955 # How to create reloadable object files.
17956 reload_flag=$lt_reload_flag
17957 reload_cmds=$lt_reload_cmds
17958
17959 # How to pass a linker flag through the compiler.
17960 wl=$lt_lt_prog_compiler_wl_GCJ
17961
17962 # Object file suffix (normally "o").
17963 objext="$ac_objext"
17964
17965 # Old archive suffix (normally "a").
17966 libext="$libext"
17967
17968 # Shared library suffix (normally ".so").
17969 shrext_cmds='$shrext_cmds'
17970
17971 # Executable file suffix (normally "").
17972 exeext="$exeext"
17973
17974 # Additional compiler flags for building library objects.
17975 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17976 pic_mode=$pic_mode
17977
17978 # What is the maximum length of a command?
17979 max_cmd_len=$lt_cv_sys_max_cmd_len
17980
17981 # Does compiler simultaneously support -c and -o options?
17982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17983
17984 # Must we lock files when doing compilation?
17985 need_locks=$lt_need_locks
17986
17987 # Do we need the lib prefix for modules?
17988 need_lib_prefix=$need_lib_prefix
17989
17990 # Do we need a version for libraries?
17991 need_version=$need_version
17992
17993 # Whether dlopen is supported.
17994 dlopen_support=$enable_dlopen
17995
17996 # Whether dlopen of programs is supported.
17997 dlopen_self=$enable_dlopen_self
17998
17999 # Whether dlopen of statically linked programs is supported.
18000 dlopen_self_static=$enable_dlopen_self_static
18001
18002 # Compiler flag to prevent dynamic linking.
18003 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18004
18005 # Compiler flag to turn off builtin functions.
18006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18007
18008 # Compiler flag to allow reflexive dlopens.
18009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18010
18011 # Compiler flag to generate shared objects directly from archives.
18012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18013
18014 # Compiler flag to generate thread-safe objects.
18015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18016
18017 # Library versioning type.
18018 version_type=$version_type
18019
18020 # Format of library name prefix.
18021 libname_spec=$lt_libname_spec
18022
18023 # List of archive names. First name is the real one, the rest are links.
18024 # The last name is the one that the linker finds with -lNAME.
18025 library_names_spec=$lt_library_names_spec
18026
18027 # The coded name of the library, if different from the real name.
18028 soname_spec=$lt_soname_spec
18029
18030 # Commands used to build and install an old-style archive.
18031 RANLIB=$lt_RANLIB
18032 old_archive_cmds=$lt_old_archive_cmds_GCJ
18033 old_postinstall_cmds=$lt_old_postinstall_cmds
18034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18035
18036 # Create an old-style archive from a shared archive.
18037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18038
18039 # Create a temporary old-style archive to link instead of a shared archive.
18040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18041
18042 # Commands used to build and install a shared archive.
18043 archive_cmds=$lt_archive_cmds_GCJ
18044 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18045 postinstall_cmds=$lt_postinstall_cmds
18046 postuninstall_cmds=$lt_postuninstall_cmds
18047
18048 # Commands used to build a loadable module (assumed same as above if empty)
18049 module_cmds=$lt_module_cmds_GCJ
18050 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18051
18052 # Commands to strip libraries.
18053 old_striplib=$lt_old_striplib
18054 striplib=$lt_striplib
18055
18056 # Dependencies to place before the objects being linked to create a
18057 # shared library.
18058 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18059
18060 # Dependencies to place after the objects being linked to create a
18061 # shared library.
18062 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18063
18064 # Dependencies to place before the objects being linked to create a
18065 # shared library.
18066 predeps=$lt_predeps_GCJ
18067
18068 # Dependencies to place after the objects being linked to create a
18069 # shared library.
18070 postdeps=$lt_postdeps_GCJ
18071
18072 # The library search path used internally by the compiler when linking
18073 # a shared library.
18074 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18075
18076 # Method to check whether dependent libraries are shared objects.
18077 deplibs_check_method=$lt_deplibs_check_method
18078
18079 # Command to use when deplibs_check_method == file_magic.
18080 file_magic_cmd=$lt_file_magic_cmd
18081
18082 # Flag that allows shared libraries with undefined symbols to be built.
18083 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18084
18085 # Flag that forces no undefined symbols.
18086 no_undefined_flag=$lt_no_undefined_flag_GCJ
18087
18088 # Commands used to finish a libtool library installation in a directory.
18089 finish_cmds=$lt_finish_cmds
18090
18091 # Same as above, but a single script fragment to be evaled but not shown.
18092 finish_eval=$lt_finish_eval
18093
18094 # Take the output of nm and produce a listing of raw symbols and C names.
18095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18096
18097 # Transform the output of nm in a proper C declaration
18098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18099
18100 # Transform the output of nm in a C name address pair
18101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102
18103 # This is the shared library runtime path variable.
18104 runpath_var=$runpath_var
18105
18106 # This is the shared library path variable.
18107 shlibpath_var=$shlibpath_var
18108
18109 # Is shlibpath searched before the hard-coded library search path?
18110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18111
18112 # How to hardcode a shared library path into an executable.
18113 hardcode_action=$hardcode_action_GCJ
18114
18115 # Whether we should hardcode library paths into libraries.
18116 hardcode_into_libs=$hardcode_into_libs
18117
18118 # Flag to hardcode \$libdir into a binary during linking.
18119 # This must work even if \$libdir does not exist.
18120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18121
18122 # If ld is used when linking, flag to hardcode \$libdir into
18123 # a binary during linking. This must work even if \$libdir does
18124 # not exist.
18125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18126
18127 # Whether we need a single -rpath flag with a separated argument.
18128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18129
18130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18131 # resulting binary.
18132 hardcode_direct=$hardcode_direct_GCJ
18133
18134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18135 # resulting binary.
18136 hardcode_minus_L=$hardcode_minus_L_GCJ
18137
18138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18139 # the resulting binary.
18140 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18141
18142 # Set to yes if building a shared library automatically hardcodes DIR into the library
18143 # and all subsequent libraries and executables linked against it.
18144 hardcode_automatic=$hardcode_automatic_GCJ
18145
18146 # Variables whose values should be saved in libtool wrapper scripts and
18147 # restored at relink time.
18148 variables_saved_for_relink="$variables_saved_for_relink"
18149
18150 # Whether libtool must link a program against all its dependency libraries.
18151 link_all_deplibs=$link_all_deplibs_GCJ
18152
18153 # Compile-time system search path for libraries
18154 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18155
18156 # Run-time system search path for libraries
18157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18158
18159 # Fix the shell variable \$srcfile for the compiler.
18160 fix_srcfile_path="$fix_srcfile_path_GCJ"
18161
18162 # Set to yes if exported symbols are required.
18163 always_export_symbols=$always_export_symbols_GCJ
18164
18165 # The commands to list exported symbols.
18166 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18167
18168 # The commands to extract the exported symbol list from a shared archive.
18169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18170
18171 # Symbols that should not be listed in the preloaded symbols.
18172 exclude_expsyms=$lt_exclude_expsyms_GCJ
18173
18174 # Symbols that must always be exported.
18175 include_expsyms=$lt_include_expsyms_GCJ
18176
18177 # ### END LIBTOOL TAG CONFIG: $tagname
18178
18179 __EOF__
18180
18181
18182 else
18183 # If there is no Makefile yet, we rely on a make rule to execute
18184 # `config.status --recheck' to rerun these tests and create the
18185 # libtool script then.
18186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18187 if test -f "$ltmain_in"; then
18188 test -f Makefile && make "$ltmain"
18189 fi
18190 fi
18191
18192
18193 ac_ext=c
18194 ac_cpp='$CPP $CPPFLAGS'
18195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18198
18199 CC="$lt_save_CC"
18200
18201 else
18202 tagname=""
18203 fi
18204 ;;
18205
18206 RC)
18207
18208
18209
18210 # Source file extension for RC test sources.
18211 ac_ext=rc
18212
18213 # Object file extension for compiled RC test sources.
18214 objext=o
18215 objext_RC=$objext
18216
18217 # Code to be used in simple compile tests
18218 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18219
18220 # Code to be used in simple link tests
18221 lt_simple_link_test_code="$lt_simple_compile_test_code"
18222
18223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18224
18225 # If no C compiler was specified, use CC.
18226 LTCC=${LTCC-"$CC"}
18227
18228 # If no C compiler flags were specified, use CFLAGS.
18229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18230
18231 # Allow CC to be a program name with arguments.
18232 compiler=$CC
18233
18234
18235 # save warnings/boilerplate of simple test code
18236 ac_outfile=conftest.$ac_objext
18237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18239 _lt_compiler_boilerplate=`cat conftest.err`
18240 $rm conftest*
18241
18242 ac_outfile=conftest.$ac_objext
18243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18245 _lt_linker_boilerplate=`cat conftest.err`
18246 $rm conftest*
18247
18248
18249 # Allow CC to be a program name with arguments.
18250 lt_save_CC="$CC"
18251 CC=${RC-"windres"}
18252 compiler=$CC
18253 compiler_RC=$CC
18254 for cc_temp in $compiler""; do
18255 case $cc_temp in
18256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18258 \-*) ;;
18259 *) break;;
18260 esac
18261 done
18262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18263
18264 lt_cv_prog_compiler_c_o_RC=yes
18265
18266 # The else clause should only fire when bootstrapping the
18267 # libtool distribution, otherwise you forgot to ship ltmain.sh
18268 # with your package, and you will get complaints that there are
18269 # no rules to generate ltmain.sh.
18270 if test -f "$ltmain"; then
18271 # See if we are running on zsh, and set the options which allow our commands through
18272 # without removal of \ escapes.
18273 if test -n "${ZSH_VERSION+set}" ; then
18274 setopt NO_GLOB_SUBST
18275 fi
18276 # Now quote all the things that may contain metacharacters while being
18277 # careful not to overquote the AC_SUBSTed values. We take copies of the
18278 # variables and quote the copies for generation of the libtool script.
18279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18280 SED SHELL STRIP \
18281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18283 deplibs_check_method reload_flag reload_cmds need_locks \
18284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18285 lt_cv_sys_global_symbol_to_c_name_address \
18286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18287 old_postinstall_cmds old_postuninstall_cmds \
18288 compiler_RC \
18289 CC_RC \
18290 LD_RC \
18291 lt_prog_compiler_wl_RC \
18292 lt_prog_compiler_pic_RC \
18293 lt_prog_compiler_static_RC \
18294 lt_prog_compiler_no_builtin_flag_RC \
18295 export_dynamic_flag_spec_RC \
18296 thread_safe_flag_spec_RC \
18297 whole_archive_flag_spec_RC \
18298 enable_shared_with_static_runtimes_RC \
18299 old_archive_cmds_RC \
18300 old_archive_from_new_cmds_RC \
18301 predep_objects_RC \
18302 postdep_objects_RC \
18303 predeps_RC \
18304 postdeps_RC \
18305 compiler_lib_search_path_RC \
18306 archive_cmds_RC \
18307 archive_expsym_cmds_RC \
18308 postinstall_cmds_RC \
18309 postuninstall_cmds_RC \
18310 old_archive_from_expsyms_cmds_RC \
18311 allow_undefined_flag_RC \
18312 no_undefined_flag_RC \
18313 export_symbols_cmds_RC \
18314 hardcode_libdir_flag_spec_RC \
18315 hardcode_libdir_flag_spec_ld_RC \
18316 hardcode_libdir_separator_RC \
18317 hardcode_automatic_RC \
18318 module_cmds_RC \
18319 module_expsym_cmds_RC \
18320 lt_cv_prog_compiler_c_o_RC \
18321 exclude_expsyms_RC \
18322 include_expsyms_RC; do
18323
18324 case $var in
18325 old_archive_cmds_RC | \
18326 old_archive_from_new_cmds_RC | \
18327 archive_cmds_RC | \
18328 archive_expsym_cmds_RC | \
18329 module_cmds_RC | \
18330 module_expsym_cmds_RC | \
18331 old_archive_from_expsyms_cmds_RC | \
18332 export_symbols_cmds_RC | \
18333 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18334 postinstall_cmds | postuninstall_cmds | \
18335 old_postinstall_cmds | old_postuninstall_cmds | \
18336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18337 # Double-quote double-evaled strings.
18338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18339 ;;
18340 *)
18341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18342 ;;
18343 esac
18344 done
18345
18346 case $lt_echo in
18347 *'\$0 --fallback-echo"')
18348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18349 ;;
18350 esac
18351
18352 cfgfile="$ofile"
18353
18354 cat <<__EOF__ >> "$cfgfile"
18355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18356
18357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18358
18359 # Shell to use when invoking shell scripts.
18360 SHELL=$lt_SHELL
18361
18362 # Whether or not to build shared libraries.
18363 build_libtool_libs=$enable_shared
18364
18365 # Whether or not to build static libraries.
18366 build_old_libs=$enable_static
18367
18368 # Whether or not to add -lc for building shared libraries.
18369 build_libtool_need_lc=$archive_cmds_need_lc_RC
18370
18371 # Whether or not to disallow shared libs when runtime libs are static
18372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18373
18374 # Whether or not to optimize for fast installation.
18375 fast_install=$enable_fast_install
18376
18377 # The host system.
18378 host_alias=$host_alias
18379 host=$host
18380 host_os=$host_os
18381
18382 # The build system.
18383 build_alias=$build_alias
18384 build=$build
18385 build_os=$build_os
18386
18387 # An echo program that does not interpret backslashes.
18388 echo=$lt_echo
18389
18390 # The archiver.
18391 AR=$lt_AR
18392 AR_FLAGS=$lt_AR_FLAGS
18393
18394 # A C compiler.
18395 LTCC=$lt_LTCC
18396
18397 # LTCC compiler flags.
18398 LTCFLAGS=$lt_LTCFLAGS
18399
18400 # A language-specific compiler.
18401 CC=$lt_compiler_RC
18402
18403 # Is the compiler the GNU C compiler?
18404 with_gcc=$GCC_RC
18405
18406 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18407 gcc_ver=\`gcc -dumpversion\`
18408
18409 # An ERE matcher.
18410 EGREP=$lt_EGREP
18411
18412 # The linker used to build libraries.
18413 LD=$lt_LD_RC
18414
18415 # Whether we need hard or soft links.
18416 LN_S=$lt_LN_S
18417
18418 # A BSD-compatible nm program.
18419 NM=$lt_NM
18420
18421 # A symbol stripping program
18422 STRIP=$lt_STRIP
18423
18424 # Used to examine libraries when file_magic_cmd begins "file"
18425 MAGIC_CMD=$MAGIC_CMD
18426
18427 # Used on cygwin: DLL creation program.
18428 DLLTOOL="$DLLTOOL"
18429
18430 # Used on cygwin: object dumper.
18431 OBJDUMP="$OBJDUMP"
18432
18433 # Used on cygwin: assembler.
18434 AS="$AS"
18435
18436 # The name of the directory that contains temporary libtool files.
18437 objdir=$objdir
18438
18439 # How to create reloadable object files.
18440 reload_flag=$lt_reload_flag
18441 reload_cmds=$lt_reload_cmds
18442
18443 # How to pass a linker flag through the compiler.
18444 wl=$lt_lt_prog_compiler_wl_RC
18445
18446 # Object file suffix (normally "o").
18447 objext="$ac_objext"
18448
18449 # Old archive suffix (normally "a").
18450 libext="$libext"
18451
18452 # Shared library suffix (normally ".so").
18453 shrext_cmds='$shrext_cmds'
18454
18455 # Executable file suffix (normally "").
18456 exeext="$exeext"
18457
18458 # Additional compiler flags for building library objects.
18459 pic_flag=$lt_lt_prog_compiler_pic_RC
18460 pic_mode=$pic_mode
18461
18462 # What is the maximum length of a command?
18463 max_cmd_len=$lt_cv_sys_max_cmd_len
18464
18465 # Does compiler simultaneously support -c and -o options?
18466 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18467
18468 # Must we lock files when doing compilation?
18469 need_locks=$lt_need_locks
18470
18471 # Do we need the lib prefix for modules?
18472 need_lib_prefix=$need_lib_prefix
18473
18474 # Do we need a version for libraries?
18475 need_version=$need_version
18476
18477 # Whether dlopen is supported.
18478 dlopen_support=$enable_dlopen
18479
18480 # Whether dlopen of programs is supported.
18481 dlopen_self=$enable_dlopen_self
18482
18483 # Whether dlopen of statically linked programs is supported.
18484 dlopen_self_static=$enable_dlopen_self_static
18485
18486 # Compiler flag to prevent dynamic linking.
18487 link_static_flag=$lt_lt_prog_compiler_static_RC
18488
18489 # Compiler flag to turn off builtin functions.
18490 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18491
18492 # Compiler flag to allow reflexive dlopens.
18493 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18494
18495 # Compiler flag to generate shared objects directly from archives.
18496 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18497
18498 # Compiler flag to generate thread-safe objects.
18499 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18500
18501 # Library versioning type.
18502 version_type=$version_type
18503
18504 # Format of library name prefix.
18505 libname_spec=$lt_libname_spec
18506
18507 # List of archive names. First name is the real one, the rest are links.
18508 # The last name is the one that the linker finds with -lNAME.
18509 library_names_spec=$lt_library_names_spec
18510
18511 # The coded name of the library, if different from the real name.
18512 soname_spec=$lt_soname_spec
18513
18514 # Commands used to build and install an old-style archive.
18515 RANLIB=$lt_RANLIB
18516 old_archive_cmds=$lt_old_archive_cmds_RC
18517 old_postinstall_cmds=$lt_old_postinstall_cmds
18518 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18519
18520 # Create an old-style archive from a shared archive.
18521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18522
18523 # Create a temporary old-style archive to link instead of a shared archive.
18524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18525
18526 # Commands used to build and install a shared archive.
18527 archive_cmds=$lt_archive_cmds_RC
18528 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18529 postinstall_cmds=$lt_postinstall_cmds
18530 postuninstall_cmds=$lt_postuninstall_cmds
18531
18532 # Commands used to build a loadable module (assumed same as above if empty)
18533 module_cmds=$lt_module_cmds_RC
18534 module_expsym_cmds=$lt_module_expsym_cmds_RC
18535
18536 # Commands to strip libraries.
18537 old_striplib=$lt_old_striplib
18538 striplib=$lt_striplib
18539
18540 # Dependencies to place before the objects being linked to create a
18541 # shared library.
18542 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18543
18544 # Dependencies to place after the objects being linked to create a
18545 # shared library.
18546 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18547
18548 # Dependencies to place before the objects being linked to create a
18549 # shared library.
18550 predeps=$lt_predeps_RC
18551
18552 # Dependencies to place after the objects being linked to create a
18553 # shared library.
18554 postdeps=$lt_postdeps_RC
18555
18556 # The library search path used internally by the compiler when linking
18557 # a shared library.
18558 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18559
18560 # Method to check whether dependent libraries are shared objects.
18561 deplibs_check_method=$lt_deplibs_check_method
18562
18563 # Command to use when deplibs_check_method == file_magic.
18564 file_magic_cmd=$lt_file_magic_cmd
18565
18566 # Flag that allows shared libraries with undefined symbols to be built.
18567 allow_undefined_flag=$lt_allow_undefined_flag_RC
18568
18569 # Flag that forces no undefined symbols.
18570 no_undefined_flag=$lt_no_undefined_flag_RC
18571
18572 # Commands used to finish a libtool library installation in a directory.
18573 finish_cmds=$lt_finish_cmds
18574
18575 # Same as above, but a single script fragment to be evaled but not shown.
18576 finish_eval=$lt_finish_eval
18577
18578 # Take the output of nm and produce a listing of raw symbols and C names.
18579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18580
18581 # Transform the output of nm in a proper C declaration
18582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18583
18584 # Transform the output of nm in a C name address pair
18585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18586
18587 # This is the shared library runtime path variable.
18588 runpath_var=$runpath_var
18589
18590 # This is the shared library path variable.
18591 shlibpath_var=$shlibpath_var
18592
18593 # Is shlibpath searched before the hard-coded library search path?
18594 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18595
18596 # How to hardcode a shared library path into an executable.
18597 hardcode_action=$hardcode_action_RC
18598
18599 # Whether we should hardcode library paths into libraries.
18600 hardcode_into_libs=$hardcode_into_libs
18601
18602 # Flag to hardcode \$libdir into a binary during linking.
18603 # This must work even if \$libdir does not exist.
18604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18605
18606 # If ld is used when linking, flag to hardcode \$libdir into
18607 # a binary during linking. This must work even if \$libdir does
18608 # not exist.
18609 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18610
18611 # Whether we need a single -rpath flag with a separated argument.
18612 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18613
18614 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18615 # resulting binary.
18616 hardcode_direct=$hardcode_direct_RC
18617
18618 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18619 # resulting binary.
18620 hardcode_minus_L=$hardcode_minus_L_RC
18621
18622 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18623 # the resulting binary.
18624 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18625
18626 # Set to yes if building a shared library automatically hardcodes DIR into the library
18627 # and all subsequent libraries and executables linked against it.
18628 hardcode_automatic=$hardcode_automatic_RC
18629
18630 # Variables whose values should be saved in libtool wrapper scripts and
18631 # restored at relink time.
18632 variables_saved_for_relink="$variables_saved_for_relink"
18633
18634 # Whether libtool must link a program against all its dependency libraries.
18635 link_all_deplibs=$link_all_deplibs_RC
18636
18637 # Compile-time system search path for libraries
18638 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18639
18640 # Run-time system search path for libraries
18641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18642
18643 # Fix the shell variable \$srcfile for the compiler.
18644 fix_srcfile_path="$fix_srcfile_path_RC"
18645
18646 # Set to yes if exported symbols are required.
18647 always_export_symbols=$always_export_symbols_RC
18648
18649 # The commands to list exported symbols.
18650 export_symbols_cmds=$lt_export_symbols_cmds_RC
18651
18652 # The commands to extract the exported symbol list from a shared archive.
18653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18654
18655 # Symbols that should not be listed in the preloaded symbols.
18656 exclude_expsyms=$lt_exclude_expsyms_RC
18657
18658 # Symbols that must always be exported.
18659 include_expsyms=$lt_include_expsyms_RC
18660
18661 # ### END LIBTOOL TAG CONFIG: $tagname
18662
18663 __EOF__
18664
18665
18666 else
18667 # If there is no Makefile yet, we rely on a make rule to execute
18668 # `config.status --recheck' to rerun these tests and create the
18669 # libtool script then.
18670 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18671 if test -f "$ltmain_in"; then
18672 test -f Makefile && make "$ltmain"
18673 fi
18674 fi
18675
18676
18677 ac_ext=c
18678 ac_cpp='$CPP $CPPFLAGS'
18679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18682
18683 CC="$lt_save_CC"
18684
18685 ;;
18686
18687 *)
18688 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18689 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18690 { (exit 1); exit 1; }; }
18691 ;;
18692 esac
18693
18694 # Append the new tag name to the list of available tags.
18695 if test -n "$tagname" ; then
18696 available_tags="$available_tags $tagname"
18697 fi
18698 fi
18699 done
18700 IFS="$lt_save_ifs"
18701
18702 # Now substitute the updated list of available tags.
18703 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18704 mv "${ofile}T" "$ofile"
18705 chmod +x "$ofile"
18706 else
18707 rm -f "${ofile}T"
18708 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18709 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18710 { (exit 1); exit 1; }; }
18711 fi
18712 fi
18713
18714
18715
18716 # This can be used to rebuild libtool when needed
18717 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18718
18719 # Always use our own libtool.
18720 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18721
18722 # Prevent multiple expansion
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744 if test "$GCC" = yes
18745 then
18746 CFLAGS="-Wall $CFLAGS"
18747 fi
18748
18749 CFLAGS="$CFLAGS -I$srcdir/.. -I.."
18750
18751
18752 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18754 if test "${ac_cv_header_stdc+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757 cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h. */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18763 #include <stdlib.h>
18764 #include <stdarg.h>
18765 #include <string.h>
18766 #include <float.h>
18767
18768 int
18769 main ()
18770 {
18771
18772 ;
18773 return 0;
18774 }
18775 _ACEOF
18776 rm -f conftest.$ac_objext
18777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18778 (eval $ac_compile) 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_c_werror_flag"
18786 || test ! -s conftest.err'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; }; then
18798 ac_cv_header_stdc=yes
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 ac_cv_header_stdc=no
18804 fi
18805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18806
18807 if test $ac_cv_header_stdc = yes; then
18808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <string.h>
18816
18817 _ACEOF
18818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18819 $EGREP "memchr" >/dev/null 2>&1; then
18820 :
18821 else
18822 ac_cv_header_stdc=no
18823 fi
18824 rm -f conftest*
18825
18826 fi
18827
18828 if test $ac_cv_header_stdc = yes; then
18829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #include <stdlib.h>
18837
18838 _ACEOF
18839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18840 $EGREP "free" >/dev/null 2>&1; then
18841 :
18842 else
18843 ac_cv_header_stdc=no
18844 fi
18845 rm -f conftest*
18846
18847 fi
18848
18849 if test $ac_cv_header_stdc = yes; then
18850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18851 if test "$cross_compiling" = yes; then
18852 :
18853 else
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 #include <ctype.h>
18861 #if ((' ' & 0x0FF) == 0x020)
18862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18864 #else
18865 # define ISLOWER(c) \
18866 (('a' <= (c) && (c) <= 'i') \
18867 || ('j' <= (c) && (c) <= 'r') \
18868 || ('s' <= (c) && (c) <= 'z'))
18869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18870 #endif
18871
18872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18873 int
18874 main ()
18875 {
18876 int i;
18877 for (i = 0; i < 256; i++)
18878 if (XOR (islower (i), ISLOWER (i))
18879 || toupper (i) != TOUPPER (i))
18880 exit(2);
18881 exit (0);
18882 }
18883 _ACEOF
18884 rm -f conftest$ac_exeext
18885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886 (eval $ac_link) 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 :
18896 else
18897 echo "$as_me: program exited with status $ac_status" >&5
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 ( exit $ac_status )
18902 ac_cv_header_stdc=no
18903 fi
18904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18905 fi
18906 fi
18907 fi
18908 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18909 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18910 if test $ac_cv_header_stdc = yes; then
18911
18912 cat >>confdefs.h <<\_ACEOF
18913 #define STDC_HEADERS 1
18914 _ACEOF
18915
18916 fi
18917
18918
18919
18920 for ac_header in sys/types.h
18921 do
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 fi
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18931 else
18932 # Is the header compilable?
18933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h. */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <$ac_header>
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_compiler=no
18972 fi
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977 # Is the header present?
18978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h. */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <$ac_header>
18987 _ACEOF
18988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
18998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999 else
19000 ac_cpp_err=
19001 fi
19002 else
19003 ac_cpp_err=yes
19004 fi
19005 if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_header_preproc=no
19012 fi
19013 rm -f conftest.err conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015 echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017 # So? What about this header?
19018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19019 yes:no: )
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19024 ac_header_preproc=yes
19025 ;;
19026 no:yes:* )
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19039 (
19040 cat <<\_ASBOX
19041 ## -------------------------------------------------- ##
19042 ## Report this to courier-users@lists.sourceforge.net ##
19043 ## -------------------------------------------------- ##
19044 _ASBOX
19045 ) |
19046 sed "s/^/$as_me: WARNING: /" >&2
19047 ;;
19048 esac
19049 echo "$as_me:$LINENO: checking for $ac_header" >&5
19050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054 eval "$as_ac_Header=\$ac_header_preproc"
19055 fi
19056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19058
19059 fi
19060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19061 cat >>confdefs.h <<_ACEOF
19062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19063 _ACEOF
19064
19065 fi
19066
19067 done
19068
19069
19070
19071
19072 # Check whether --with-int32 or --without-int32 was given.
19073 if test "${with_int32+set}" = set; then
19074 withval="$with_int32"
19075 int32="$withval"
19076 else
19077
19078
19079 echo "$as_me:$LINENO: checking for uint32_t" >&5
19080 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
19081
19082 cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h. */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088
19089 #if HAVE_SYS_TYPES_H
19090 #include <sys/types.h>
19091 #endif
19092
19093 int
19094 main ()
19095 {
19096
19097 uint32_t i=0;
19098
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19105 (eval $ac_compile) 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } &&
19112 { ac_try='test -z "$ac_c_werror_flag"
19113 || test ! -s conftest.err'
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 echo "$as_me:$LINENO: result: yes" >&5
19126 echo "${ECHO_T}yes" >&6 ; int32="uint32_t"
19127 else
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131
19132
19133 echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6
19135 echo "$as_me:$LINENO: checking for u_int_32_t" >&5
19136 echo $ECHO_N "checking for u_int_32_t... $ECHO_C" >&6
19137
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144
19145 #if HAVE_SYS_TYPES_H
19146 #include <sys/types.h>
19147 #endif
19148
19149 int
19150 main ()
19151 {
19152
19153 u_int32_t i=0;
19154
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161 (eval $ac_compile) 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 echo "$as_me:$LINENO: result: yes" >&5
19182 echo "${ECHO_T}yes" >&6; int32="u_int32_t"
19183 else
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187
19188
19189 echo "$as_me:$LINENO: result: no" >&5
19190 echo "${ECHO_T}no" >&6
19191
19192 echo "$as_me:$LINENO: checking for unsigned" >&5
19193 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
19194 if test "${ac_cv_type_unsigned+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197 cat >conftest.$ac_ext <<_ACEOF
19198 /* confdefs.h. */
19199 _ACEOF
19200 cat confdefs.h >>conftest.$ac_ext
19201 cat >>conftest.$ac_ext <<_ACEOF
19202 /* end confdefs.h. */
19203 $ac_includes_default
19204 int
19205 main ()
19206 {
19207 if ((unsigned *) 0)
19208 return 0;
19209 if (sizeof (unsigned))
19210 return 0;
19211 ;
19212 return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19217 (eval $ac_compile) 2>conftest.er1
19218 ac_status=$?
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
19224 { ac_try='test -z "$ac_c_werror_flag"
19225 || test ! -s conftest.err'
19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } &&
19231 { ac_try='test -s conftest.$ac_objext'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; }; then
19237 ac_cv_type_unsigned=yes
19238 else
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 ac_cv_type_unsigned=no
19243 fi
19244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19245 fi
19246 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
19247 echo "${ECHO_T}$ac_cv_type_unsigned" >&6
19248
19249 echo "$as_me:$LINENO: checking size of unsigned" >&5
19250 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
19251 if test "${ac_cv_sizeof_unsigned+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 if test "$ac_cv_type_unsigned" = yes; then
19255 # The cast to unsigned long works around a bug in the HP C Compiler
19256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19258 # This bug is HP SR number 8606223364.
19259 if test "$cross_compiling" = yes; then
19260 # Depending upon the size, compute the lo and hi bounds.
19261 cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h. */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 $ac_includes_default
19268 int
19269 main ()
19270 {
19271 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
19272 test_array [0] = 0
19273
19274 ;
19275 return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280 (eval $ac_compile) 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_lo=0 ac_mid=0
19301 while :; do
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 $ac_includes_default
19309 int
19310 main ()
19311 {
19312 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
19313 test_array [0] = 0
19314
19315 ;
19316 return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
19328 { ac_try='test -z "$ac_c_werror_flag"
19329 || test ! -s conftest.err'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } &&
19335 { ac_try='test -s conftest.$ac_objext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19341 ac_hi=$ac_mid; break
19342 else
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_lo=`expr $ac_mid + 1`
19347 if test $ac_lo -le $ac_mid; then
19348 ac_lo= ac_hi=
19349 break
19350 fi
19351 ac_mid=`expr 2 '*' $ac_mid + 1`
19352 fi
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 done
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 $ac_includes_default
19366 int
19367 main ()
19368 {
19369 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
19370 test_array [0] = 0
19371
19372 ;
19373 return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19378 (eval $ac_compile) 2>conftest.er1
19379 ac_status=$?
19380 grep -v '^ *+' conftest.er1 >conftest.err
19381 rm -f conftest.er1
19382 cat conftest.err >&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); } &&
19385 { ac_try='test -z "$ac_c_werror_flag"
19386 || test ! -s conftest.err'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; } &&
19392 { ac_try='test -s conftest.$ac_objext'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 ac_hi=-1 ac_mid=-1
19399 while :; do
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h. */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19406 $ac_includes_default
19407 int
19408 main ()
19409 {
19410 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
19411 test_array [0] = 0
19412
19413 ;
19414 return 0;
19415 }
19416 _ACEOF
19417 rm -f conftest.$ac_objext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19419 (eval $ac_compile) 2>conftest.er1
19420 ac_status=$?
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_c_werror_flag"
19427 || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest.$ac_objext'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_lo=$ac_mid; break
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_hi=`expr '(' $ac_mid ')' - 1`
19445 if test $ac_mid -le $ac_hi; then
19446 ac_lo= ac_hi=
19447 break
19448 fi
19449 ac_mid=`expr 2 '*' $ac_mid`
19450 fi
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19452 done
19453 else
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_lo= ac_hi=
19458 fi
19459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19462 # Binary search between lo and hi bounds.
19463 while test "x$ac_lo" != "x$ac_hi"; do
19464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19465 cat >conftest.$ac_ext <<_ACEOF
19466 /* confdefs.h. */
19467 _ACEOF
19468 cat confdefs.h >>conftest.$ac_ext
19469 cat >>conftest.$ac_ext <<_ACEOF
19470 /* end confdefs.h. */
19471 $ac_includes_default
19472 int
19473 main ()
19474 {
19475 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
19476 test_array [0] = 0
19477
19478 ;
19479 return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 2>conftest.er1
19485 ac_status=$?
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest.$ac_objext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_hi=$ac_mid
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_lo=`expr '(' $ac_mid ')' + 1`
19510 fi
19511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19512 done
19513 case $ac_lo in
19514 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
19515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
19516 See \`config.log' for more details." >&5
19517 echo "$as_me: error: cannot compute sizeof (unsigned), 77
19518 See \`config.log' for more details." >&2;}
19519 { (exit 1); exit 1; }; } ;;
19520 esac
19521 else
19522 if test "$cross_compiling" = yes; then
19523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19524 See \`config.log' for more details." >&5
19525 echo "$as_me: error: cannot run test program while cross compiling
19526 See \`config.log' for more details." >&2;}
19527 { (exit 1); exit 1; }; }
19528 else
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19536 long longval () { return (long) (sizeof (unsigned)); }
19537 unsigned long ulongval () { return (long) (sizeof (unsigned)); }
19538 #include <stdio.h>
19539 #include <stdlib.h>
19540 int
19541 main ()
19542 {
19543
19544 FILE *f = fopen ("conftest.val", "w");
19545 if (! f)
19546 exit (1);
19547 if (((long) (sizeof (unsigned))) < 0)
19548 {
19549 long i = longval ();
19550 if (i != ((long) (sizeof (unsigned))))
19551 exit (1);
19552 fprintf (f, "%ld\n", i);
19553 }
19554 else
19555 {
19556 unsigned long i = ulongval ();
19557 if (i != ((long) (sizeof (unsigned))))
19558 exit (1);
19559 fprintf (f, "%lu\n", i);
19560 }
19561 exit (ferror (f) || fclose (f) != 0);
19562
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_sizeof_unsigned=`cat conftest.val`
19579 else
19580 echo "$as_me: program exited with status $ac_status" >&5
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ( exit $ac_status )
19585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
19586 See \`config.log' for more details." >&5
19587 echo "$as_me: error: cannot compute sizeof (unsigned), 77
19588 See \`config.log' for more details." >&2;}
19589 { (exit 1); exit 1; }; }
19590 fi
19591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19592 fi
19593 fi
19594 rm -f conftest.val
19595 else
19596 ac_cv_sizeof_unsigned=0
19597 fi
19598 fi
19599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
19600 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
19601 cat >>confdefs.h <<_ACEOF
19602 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
19603 _ACEOF
19604
19605
19606 if test "$ac_cv_sizeof_unsigned" != 4
19607 then
19608 echo "$as_me:$LINENO: checking for unsigned long" >&5
19609 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19610 if test "${ac_cv_type_unsigned_long+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h. */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 $ac_includes_default
19620 int
19621 main ()
19622 {
19623 if ((unsigned long *) 0)
19624 return 0;
19625 if (sizeof (unsigned long))
19626 return 0;
19627 ;
19628 return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633 (eval $ac_compile) 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag"
19641 || test ! -s conftest.err'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; } &&
19647 { ac_try='test -s conftest.$ac_objext'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_type_unsigned_long=yes
19654 else
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_type_unsigned_long=no
19659 fi
19660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19661 fi
19662 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19663 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19664
19665 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19666 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19667 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 if test "$ac_cv_type_unsigned_long" = yes; then
19671 # The cast to unsigned long works around a bug in the HP C Compiler
19672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19674 # This bug is HP SR number 8606223364.
19675 if test "$cross_compiling" = yes; then
19676 # Depending upon the size, compute the lo and hi bounds.
19677 cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h. */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19683 $ac_includes_default
19684 int
19685 main ()
19686 {
19687 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19688 test_array [0] = 0
19689
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696 (eval $ac_compile) 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_lo=0 ac_mid=0
19717 while :; do
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 $ac_includes_default
19725 int
19726 main ()
19727 {
19728 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19729 test_array [0] = 0
19730
19731 ;
19732 return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_hi=$ac_mid; break
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_lo=`expr $ac_mid + 1`
19763 if test $ac_lo -le $ac_mid; then
19764 ac_lo= ac_hi=
19765 break
19766 fi
19767 ac_mid=`expr 2 '*' $ac_mid + 1`
19768 fi
19769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19770 done
19771 else
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19774
19775 cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h. */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 $ac_includes_default
19782 int
19783 main ()
19784 {
19785 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19786 test_array [0] = 0
19787
19788 ;
19789 return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19794 (eval $ac_compile) 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag"
19802 || test ! -s conftest.err'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_hi=-1 ac_mid=-1
19815 while :; do
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 $ac_includes_default
19823 int
19824 main ()
19825 {
19826 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19827 test_array [0] = 0
19828
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19835 (eval $ac_compile) 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
19842 { ac_try='test -z "$ac_c_werror_flag"
19843 || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_lo=$ac_mid; break
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 ac_hi=`expr '(' $ac_mid ')' - 1`
19861 if test $ac_mid -le $ac_hi; then
19862 ac_lo= ac_hi=
19863 break
19864 fi
19865 ac_mid=`expr 2 '*' $ac_mid`
19866 fi
19867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19868 done
19869 else
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19872
19873 ac_lo= ac_hi=
19874 fi
19875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19876 fi
19877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19878 # Binary search between lo and hi bounds.
19879 while test "x$ac_lo" != "x$ac_hi"; do
19880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 $ac_includes_default
19888 int
19889 main ()
19890 {
19891 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19892 test_array [0] = 0
19893
19894 ;
19895 return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19900 (eval $ac_compile) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest.$ac_objext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_hi=$ac_mid
19921 else
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 ac_lo=`expr '(' $ac_mid ')' + 1`
19926 fi
19927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928 done
19929 case $ac_lo in
19930 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19931 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19932 See \`config.log' for more details." >&5
19933 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19934 See \`config.log' for more details." >&2;}
19935 { (exit 1); exit 1; }; } ;;
19936 esac
19937 else
19938 if test "$cross_compiling" = yes; then
19939 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19940 See \`config.log' for more details." >&5
19941 echo "$as_me: error: cannot run test program while cross compiling
19942 See \`config.log' for more details." >&2;}
19943 { (exit 1); exit 1; }; }
19944 else
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h. */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 $ac_includes_default
19952 long longval () { return (long) (sizeof (unsigned long)); }
19953 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
19954 #include <stdio.h>
19955 #include <stdlib.h>
19956 int
19957 main ()
19958 {
19959
19960 FILE *f = fopen ("conftest.val", "w");
19961 if (! f)
19962 exit (1);
19963 if (((long) (sizeof (unsigned long))) < 0)
19964 {
19965 long i = longval ();
19966 if (i != ((long) (sizeof (unsigned long))))
19967 exit (1);
19968 fprintf (f, "%ld\n", i);
19969 }
19970 else
19971 {
19972 unsigned long i = ulongval ();
19973 if (i != ((long) (sizeof (unsigned long))))
19974 exit (1);
19975 fprintf (f, "%lu\n", i);
19976 }
19977 exit (ferror (f) || fclose (f) != 0);
19978
19979 ;
19980 return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest$ac_exeext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19985 (eval $ac_link) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_cv_sizeof_unsigned_long=`cat conftest.val`
19995 else
19996 echo "$as_me: program exited with status $ac_status" >&5
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 ( exit $ac_status )
20001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20002 See \`config.log' for more details." >&5
20003 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20004 See \`config.log' for more details." >&2;}
20005 { (exit 1); exit 1; }; }
20006 fi
20007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20008 fi
20009 fi
20010 rm -f conftest.val
20011 else
20012 ac_cv_sizeof_unsigned_long=0
20013 fi
20014 fi
20015 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20016 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20017 cat >>confdefs.h <<_ACEOF
20018 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20019 _ACEOF
20020
20021
20022 if test "$ac_cv_sizeof_unsigned_long" != 4
20023 then
20024 echo "$as_me:$LINENO: checking for unsigned short" >&5
20025 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
20026 if test "${ac_cv_type_unsigned_short+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028 else
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 $ac_includes_default
20036 int
20037 main ()
20038 {
20039 if ((unsigned short *) 0)
20040 return 0;
20041 if (sizeof (unsigned short))
20042 return 0;
20043 ;
20044 return 0;
20045 }
20046 _ACEOF
20047 rm -f conftest.$ac_objext
20048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20049 (eval $ac_compile) 2>conftest.er1
20050 ac_status=$?
20051 grep -v '^ *+' conftest.er1 >conftest.err
20052 rm -f conftest.er1
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 { ac_try='test -z "$ac_c_werror_flag"
20057 || test ! -s conftest.err'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest.$ac_objext'
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_cv_type_unsigned_short=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_cv_type_unsigned_short=no
20075 fi
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077 fi
20078 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
20079 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
20080
20081 echo "$as_me:$LINENO: checking size of unsigned short" >&5
20082 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
20083 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086 if test "$ac_cv_type_unsigned_short" = yes; then
20087 # The cast to unsigned long works around a bug in the HP C Compiler
20088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20090 # This bug is HP SR number 8606223364.
20091 if test "$cross_compiling" = yes; then
20092 # Depending upon the size, compute the lo and hi bounds.
20093 cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h. */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 $ac_includes_default
20100 int
20101 main ()
20102 {
20103 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
20104 test_array [0] = 0
20105
20106 ;
20107 return 0;
20108 }
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_lo=0 ac_mid=0
20133 while :; do
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h. */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 int
20142 main ()
20143 {
20144 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
20145 test_array [0] = 0
20146
20147 ;
20148 return 0;
20149 }
20150 _ACEOF
20151 rm -f conftest.$ac_objext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153 (eval $ac_compile) 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
20160 { ac_try='test -z "$ac_c_werror_flag"
20161 || test ! -s conftest.err'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; }; then
20173 ac_hi=$ac_mid; break
20174 else
20175 echo "$as_me: failed program was:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20177
20178 ac_lo=`expr $ac_mid + 1`
20179 if test $ac_lo -le $ac_mid; then
20180 ac_lo= ac_hi=
20181 break
20182 fi
20183 ac_mid=`expr 2 '*' $ac_mid + 1`
20184 fi
20185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20186 done
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h. */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20197 $ac_includes_default
20198 int
20199 main ()
20200 {
20201 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
20202 test_array [0] = 0
20203
20204 ;
20205 return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20210 (eval $ac_compile) 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } &&
20217 { ac_try='test -z "$ac_c_werror_flag"
20218 || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest.$ac_objext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_hi=-1 ac_mid=-1
20231 while :; do
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20239 int
20240 main ()
20241 {
20242 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
20243 test_array [0] = 0
20244
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } &&
20258 { ac_try='test -z "$ac_c_werror_flag"
20259 || test ! -s conftest.err'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; } &&
20265 { ac_try='test -s conftest.$ac_objext'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_lo=$ac_mid; break
20272 else
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276 ac_hi=`expr '(' $ac_mid ')' - 1`
20277 if test $ac_mid -le $ac_hi; then
20278 ac_lo= ac_hi=
20279 break
20280 fi
20281 ac_mid=`expr 2 '*' $ac_mid`
20282 fi
20283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20284 done
20285 else
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_lo= ac_hi=
20290 fi
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 fi
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 # Binary search between lo and hi bounds.
20295 while test "x$ac_lo" != "x$ac_hi"; do
20296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
20305 main ()
20306 {
20307 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
20308 test_array [0] = 0
20309
20310 ;
20311 return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>conftest.er1
20317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -z "$ac_c_werror_flag"
20324 || test ! -s conftest.err'
20325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326 (eval $ac_try) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; } &&
20330 { ac_try='test -s conftest.$ac_objext'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_hi=$ac_mid
20337 else
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ac_lo=`expr '(' $ac_mid ')' + 1`
20342 fi
20343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20344 done
20345 case $ac_lo in
20346 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
20347 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
20348 See \`config.log' for more details." >&5
20349 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
20350 See \`config.log' for more details." >&2;}
20351 { (exit 1); exit 1; }; } ;;
20352 esac
20353 else
20354 if test "$cross_compiling" = yes; then
20355 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20356 See \`config.log' for more details." >&5
20357 echo "$as_me: error: cannot run test program while cross compiling
20358 See \`config.log' for more details." >&2;}
20359 { (exit 1); exit 1; }; }
20360 else
20361 cat >conftest.$ac_ext <<_ACEOF
20362 /* confdefs.h. */
20363 _ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 $ac_includes_default
20368 long longval () { return (long) (sizeof (unsigned short)); }
20369 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
20370 #include <stdio.h>
20371 #include <stdlib.h>
20372 int
20373 main ()
20374 {
20375
20376 FILE *f = fopen ("conftest.val", "w");
20377 if (! f)
20378 exit (1);
20379 if (((long) (sizeof (unsigned short))) < 0)
20380 {
20381 long i = longval ();
20382 if (i != ((long) (sizeof (unsigned short))))
20383 exit (1);
20384 fprintf (f, "%ld\n", i);
20385 }
20386 else
20387 {
20388 unsigned long i = ulongval ();
20389 if (i != ((long) (sizeof (unsigned short))))
20390 exit (1);
20391 fprintf (f, "%lu\n", i);
20392 }
20393 exit (ferror (f) || fclose (f) != 0);
20394
20395 ;
20396 return 0;
20397 }
20398 _ACEOF
20399 rm -f conftest$ac_exeext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_sizeof_unsigned_short=`cat conftest.val`
20411 else
20412 echo "$as_me: program exited with status $ac_status" >&5
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 ( exit $ac_status )
20417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
20418 See \`config.log' for more details." >&5
20419 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
20420 See \`config.log' for more details." >&2;}
20421 { (exit 1); exit 1; }; }
20422 fi
20423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20424 fi
20425 fi
20426 rm -f conftest.val
20427 else
20428 ac_cv_sizeof_unsigned_short=0
20429 fi
20430 fi
20431 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
20432 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
20433 cat >>confdefs.h <<_ACEOF
20434 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20435 _ACEOF
20436
20437
20438 if test "$ac_cv_sizeof_unsigned_short" != 4
20439 then
20440 { { echo "$as_me:$LINENO: error: --with-int32 option is required" >&5
20441 echo "$as_me: error: --with-int32 option is required" >&2;}
20442 { (exit 1); exit 1; }; }
20443 fi
20444 int32="unsigned short"
20445 fi
20446 int32="unsigned long"
20447 else
20448 int32="unsigned"
20449 fi
20450
20451 fi
20452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20453
20454 fi
20455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20456
20457
20458 fi;
20459 UINT32="$int32"
20460
20461
20462 cat >>confdefs.h <<_ACEOF
20463 #define MD5_WORD $UINT32
20464 _ACEOF
20465
20466
20467 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20468 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20469 if test "${ac_cv_c_const+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478
20479 int
20480 main ()
20481 {
20482 /* FIXME: Include the comments suggested by Paul. */
20483 #ifndef __cplusplus
20484 /* Ultrix mips cc rejects this. */
20485 typedef int charset[2];
20486 const charset x;
20487 /* SunOS 4.1.1 cc rejects this. */
20488 char const *const *ccp;
20489 char **p;
20490 /* NEC SVR4.0.2 mips cc rejects this. */
20491 struct point {int x, y;};
20492 static struct point const zero = {0,0};
20493 /* AIX XL C 1.02.0.0 rejects this.
20494 It does not let you subtract one const X* pointer from another in
20495 an arm of an if-expression whose if-part is not a constant
20496 expression */
20497 const char *g = "string";
20498 ccp = &g + (g ? g-g : 0);
20499 /* HPUX 7.0 cc rejects these. */
20500 ++ccp;
20501 p = (char**) ccp;
20502 ccp = (char const *const *) p;
20503 { /* SCO 3.2v4 cc rejects this. */
20504 char *t;
20505 char const *s = 0 ? (char *) 0 : (char const *) 0;
20506
20507 *t++ = 0;
20508 }
20509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20510 int x[] = {25, 17};
20511 const int *foo = &x[0];
20512 ++foo;
20513 }
20514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20515 typedef const int *iptr;
20516 iptr p = 0;
20517 ++p;
20518 }
20519 { /* AIX XL C 1.02.0.0 rejects this saying
20520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20521 struct s { int j; const int *ap[3]; };
20522 struct s *b; b->j = 5;
20523 }
20524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20525 const int foo = 10;
20526 }
20527 #endif
20528
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535 (eval $ac_compile) 2>conftest.er1
20536 ac_status=$?
20537 grep -v '^ *+' conftest.er1 >conftest.err
20538 rm -f conftest.er1
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_c_const=yes
20556 else
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_c_const=no
20561 fi
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563 fi
20564 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20565 echo "${ECHO_T}$ac_cv_c_const" >&6
20566 if test $ac_cv_c_const = no; then
20567
20568 cat >>confdefs.h <<\_ACEOF
20569 #define const
20570 _ACEOF
20571
20572 fi
20573
20574
20575
20576 ac_config_files="$ac_config_files Makefile"
20577 cat >confcache <<\_ACEOF
20578 # This file is a shell script that caches the results of configure
20579 # tests run on this system so they can be shared between configure
20580 # scripts and configure runs, see configure's option --config-cache.
20581 # It is not useful on other systems. If it contains results you don't
20582 # want to keep, you may remove or edit it.
20583 #
20584 # config.status only pays attention to the cache file if you give it
20585 # the --recheck option to rerun configure.
20586 #
20587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20589 # following values.
20590
20591 _ACEOF
20592
20593 # The following way of writing the cache mishandles newlines in values,
20594 # but we know of no workaround that is simple, portable, and efficient.
20595 # So, don't put newlines in cache variables' values.
20596 # Ultrix sh set writes to stderr and can't be redirected directly,
20597 # and sets the high bit in the cache file unless we assign to the vars.
20598 {
20599 (set) 2>&1 |
20600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20601 *ac_space=\ *)
20602 # `set' does not quote correctly, so add quotes (double-quote
20603 # substitution turns \\\\ into \\, and sed turns \\ into \).
20604 sed -n \
20605 "s/'/'\\\\''/g;
20606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20607 ;;
20608 *)
20609 # `set' quotes correctly as required by POSIX, so do not add quotes.
20610 sed -n \
20611 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20612 ;;
20613 esac;
20614 } |
20615 sed '
20616 t clear
20617 : clear
20618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20619 t end
20620 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20621 : end' >>confcache
20622 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20623 if test -w $cache_file; then
20624 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20625 cat confcache >$cache_file
20626 else
20627 echo "not updating unwritable cache $cache_file"
20628 fi
20629 fi
20630 rm -f confcache
20631
20632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20633 # Let make expand exec_prefix.
20634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20635
20636 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20637 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20638 # trailing colons and then remove the whole line if VPATH becomes empty
20639 # (actually we leave an empty line to preserve line numbers).
20640 if test "x$srcdir" = x.; then
20641 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20642 s/:*\$(srcdir):*/:/;
20643 s/:*\${srcdir}:*/:/;
20644 s/:*@srcdir@:*/:/;
20645 s/^\([^=]*=[ ]*\):*/\1/;
20646 s/:*$//;
20647 s/^[^=]*=[ ]*$//;
20648 }'
20649 fi
20650
20651 DEFS=-DHAVE_CONFIG_H
20652
20653 ac_libobjs=
20654 ac_ltlibobjs=
20655 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20656 # 1. Remove the extension, and $U if already installed.
20657 ac_i=`echo "$ac_i" |
20658 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20659 # 2. Add them.
20660 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20661 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20662 done
20663 LIBOBJS=$ac_libobjs
20664
20665 LTLIBOBJS=$ac_ltlibobjs
20666
20667
20668 if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
20669 { { echo "$as_me:$LINENO: error: conditional \"HMACC\" was never defined.
20670 Usually this means the macro was only invoked conditionally." >&5
20671 echo "$as_me: error: conditional \"HMACC\" was never defined.
20672 Usually this means the macro was only invoked conditionally." >&2;}
20673 { (exit 1); exit 1; }; }
20674 fi
20675 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20676 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20677 Usually this means the macro was only invoked conditionally." >&5
20678 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20679 Usually this means the macro was only invoked conditionally." >&2;}
20680 { (exit 1); exit 1; }; }
20681 fi
20682 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20683 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20684 Usually this means the macro was only invoked conditionally." >&5
20685 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20686 Usually this means the macro was only invoked conditionally." >&2;}
20687 { (exit 1); exit 1; }; }
20688 fi
20689 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20690 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20691 Usually this means the macro was only invoked conditionally." >&5
20692 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20693 Usually this means the macro was only invoked conditionally." >&2;}
20694 { (exit 1); exit 1; }; }
20695 fi
20696
20697 : ${CONFIG_STATUS=./config.status}
20698 ac_clean_files_save=$ac_clean_files
20699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20702 cat >$CONFIG_STATUS <<_ACEOF
20703 #! $SHELL
20704 # Generated by $as_me.
20705 # Run this file to recreate the current configuration.
20706 # Compiler output produced by configure, useful for debugging
20707 # configure, is in config.log if it exists.
20708
20709 debug=false
20710 ac_cs_recheck=false
20711 ac_cs_silent=false
20712 SHELL=\${CONFIG_SHELL-$SHELL}
20713 _ACEOF
20714
20715 cat >>$CONFIG_STATUS <<\_ACEOF
20716 ## --------------------- ##
20717 ## M4sh Initialization. ##
20718 ## --------------------- ##
20719
20720 # Be Bourne compatible
20721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20722 emulate sh
20723 NULLCMD=:
20724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20725 # is contrary to our usage. Disable this feature.
20726 alias -g '${1+"$@"}'='"$@"'
20727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20728 set -o posix
20729 fi
20730 DUALCASE=1; export DUALCASE # for MKS sh
20731
20732 # Support unset when possible.
20733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20734 as_unset=unset
20735 else
20736 as_unset=false
20737 fi
20738
20739
20740 # Work around bugs in pre-3.0 UWIN ksh.
20741 $as_unset ENV MAIL MAILPATH
20742 PS1='$ '
20743 PS2='> '
20744 PS4='+ '
20745
20746 # NLS nuisances.
20747 for as_var in \
20748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20750 LC_TELEPHONE LC_TIME
20751 do
20752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20753 eval $as_var=C; export $as_var
20754 else
20755 $as_unset $as_var
20756 fi
20757 done
20758
20759 # Required to use basename.
20760 if expr a : '\(a\)' >/dev/null 2>&1; then
20761 as_expr=expr
20762 else
20763 as_expr=false
20764 fi
20765
20766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20767 as_basename=basename
20768 else
20769 as_basename=false
20770 fi
20771
20772
20773 # Name of the executable.
20774 as_me=`$as_basename "$0" ||
20775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20776 X"$0" : 'X\(//\)$' \| \
20777 X"$0" : 'X\(/\)$' \| \
20778 . : '\(.\)' 2>/dev/null ||
20779 echo X/"$0" |
20780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20781 /^X\/\(\/\/\)$/{ s//\1/; q; }
20782 /^X\/\(\/\).*/{ s//\1/; q; }
20783 s/.*/./; q'`
20784
20785
20786 # PATH needs CR, and LINENO needs CR and PATH.
20787 # Avoid depending upon Character Ranges.
20788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20791 as_cr_digits='0123456789'
20792 as_cr_alnum=$as_cr_Letters$as_cr_digits
20793
20794 # The user is always right.
20795 if test "${PATH_SEPARATOR+set}" != set; then
20796 echo "#! /bin/sh" >conf$$.sh
20797 echo "exit 0" >>conf$$.sh
20798 chmod +x conf$$.sh
20799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20800 PATH_SEPARATOR=';'
20801 else
20802 PATH_SEPARATOR=:
20803 fi
20804 rm -f conf$$.sh
20805 fi
20806
20807
20808 as_lineno_1=$LINENO
20809 as_lineno_2=$LINENO
20810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20811 test "x$as_lineno_1" != "x$as_lineno_2" &&
20812 test "x$as_lineno_3" = "x$as_lineno_2" || {
20813 # Find who we are. Look in the path if we contain no path at all
20814 # relative or not.
20815 case $0 in
20816 *[\\/]* ) as_myself=$0 ;;
20817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20818 for as_dir in $PATH
20819 do
20820 IFS=$as_save_IFS
20821 test -z "$as_dir" && as_dir=.
20822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20823 done
20824
20825 ;;
20826 esac
20827 # We did not find ourselves, most probably we were run as `sh COMMAND'
20828 # in which case we are not to be found in the path.
20829 if test "x$as_myself" = x; then
20830 as_myself=$0
20831 fi
20832 if test ! -f "$as_myself"; then
20833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20835 { (exit 1); exit 1; }; }
20836 fi
20837 case $CONFIG_SHELL in
20838 '')
20839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20841 do
20842 IFS=$as_save_IFS
20843 test -z "$as_dir" && as_dir=.
20844 for as_base in sh bash ksh sh5; do
20845 case $as_dir in
20846 /*)
20847 if ("$as_dir/$as_base" -c '
20848 as_lineno_1=$LINENO
20849 as_lineno_2=$LINENO
20850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20851 test "x$as_lineno_1" != "x$as_lineno_2" &&
20852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20855 CONFIG_SHELL=$as_dir/$as_base
20856 export CONFIG_SHELL
20857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20858 fi;;
20859 esac
20860 done
20861 done
20862 ;;
20863 esac
20864
20865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20866 # uniformly replaced by the line number. The first 'sed' inserts a
20867 # line-number line before each line; the second 'sed' does the real
20868 # work. The second script uses 'N' to pair each line-number line
20869 # with the numbered line, and appends trailing '-' during
20870 # substitution so that $LINENO is not a special case at line end.
20871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20873 sed '=' <$as_myself |
20874 sed '
20875 N
20876 s,$,-,
20877 : loop
20878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20879 t loop
20880 s,-$,,
20881 s,^['$as_cr_digits']*\n,,
20882 ' >$as_me.lineno &&
20883 chmod +x $as_me.lineno ||
20884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20886 { (exit 1); exit 1; }; }
20887
20888 # Don't try to exec as it changes $[0], causing all sort of problems
20889 # (the dirname of $[0] is not the place where we might find the
20890 # original and so on. Autoconf is especially sensible to this).
20891 . ./$as_me.lineno
20892 # Exit status is that of the last command.
20893 exit
20894 }
20895
20896
20897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20898 *c*,-n*) ECHO_N= ECHO_C='
20899 ' ECHO_T=' ' ;;
20900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20902 esac
20903
20904 if expr a : '\(a\)' >/dev/null 2>&1; then
20905 as_expr=expr
20906 else
20907 as_expr=false
20908 fi
20909
20910 rm -f conf$$ conf$$.exe conf$$.file
20911 echo >conf$$.file
20912 if ln -s conf$$.file conf$$ 2>/dev/null; then
20913 # We could just check for DJGPP; but this test a) works b) is more generic
20914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20915 if test -f conf$$.exe; then
20916 # Don't use ln at all; we don't have any links
20917 as_ln_s='cp -p'
20918 else
20919 as_ln_s='ln -s'
20920 fi
20921 elif ln conf$$.file conf$$ 2>/dev/null; then
20922 as_ln_s=ln
20923 else
20924 as_ln_s='cp -p'
20925 fi
20926 rm -f conf$$ conf$$.exe conf$$.file
20927
20928 if mkdir -p . 2>/dev/null; then
20929 as_mkdir_p=:
20930 else
20931 test -d ./-p && rmdir ./-p
20932 as_mkdir_p=false
20933 fi
20934
20935 as_executable_p="test -f"
20936
20937 # Sed expression to map a string onto a valid CPP name.
20938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20939
20940 # Sed expression to map a string onto a valid variable name.
20941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20942
20943
20944 # IFS
20945 # We need space, tab and new line, in precisely that order.
20946 as_nl='
20947 '
20948 IFS=" $as_nl"
20949
20950 # CDPATH.
20951 $as_unset CDPATH
20952
20953 exec 6>&1
20954
20955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20956 # report actual input values of CONFIG_FILES etc. instead of their
20957 # values after options handling. Logging --version etc. is OK.
20958 exec 5>>config.log
20959 {
20960 echo
20961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20962 ## Running $as_me. ##
20963 _ASBOX
20964 } >&5
20965 cat >&5 <<_CSEOF
20966
20967 This file was extended by libmd5 $as_me 1.21, which was
20968 generated by GNU Autoconf 2.59. Invocation command line was
20969
20970 CONFIG_FILES = $CONFIG_FILES
20971 CONFIG_HEADERS = $CONFIG_HEADERS
20972 CONFIG_LINKS = $CONFIG_LINKS
20973 CONFIG_COMMANDS = $CONFIG_COMMANDS
20974 $ $0 $@
20975
20976 _CSEOF
20977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20978 echo >&5
20979 _ACEOF
20980
20981 # Files that config.status was made for.
20982 if test -n "$ac_config_files"; then
20983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20984 fi
20985
20986 if test -n "$ac_config_headers"; then
20987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20988 fi
20989
20990 if test -n "$ac_config_links"; then
20991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20992 fi
20993
20994 if test -n "$ac_config_commands"; then
20995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20996 fi
20997
20998 cat >>$CONFIG_STATUS <<\_ACEOF
20999
21000 ac_cs_usage="\
21001 \`$as_me' instantiates files from templates according to the
21002 current configuration.
21003
21004 Usage: $0 [OPTIONS] [FILE]...
21005
21006 -h, --help print this help, then exit
21007 -V, --version print version number, then exit
21008 -q, --quiet do not print progress messages
21009 -d, --debug don't remove temporary files
21010 --recheck update $as_me by reconfiguring in the same conditions
21011 --file=FILE[:TEMPLATE]
21012 instantiate the configuration file FILE
21013 --header=FILE[:TEMPLATE]
21014 instantiate the configuration header FILE
21015
21016 Configuration files:
21017 $config_files
21018
21019 Configuration headers:
21020 $config_headers
21021
21022 Configuration commands:
21023 $config_commands
21024
21025 Report bugs to <bug-autoconf@gnu.org>."
21026 _ACEOF
21027
21028 cat >>$CONFIG_STATUS <<_ACEOF
21029 ac_cs_version="\\
21030 libmd5 config.status 1.21
21031 configured by $0, generated by GNU Autoconf 2.59,
21032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21033
21034 Copyright (C) 2003 Free Software Foundation, Inc.
21035 This config.status script is free software; the Free Software Foundation
21036 gives unlimited permission to copy, distribute and modify it."
21037 srcdir=$srcdir
21038 INSTALL="$INSTALL"
21039 _ACEOF
21040
21041 cat >>$CONFIG_STATUS <<\_ACEOF
21042 # If no file are specified by the user, then we need to provide default
21043 # value. By we need to know if files were specified by the user.
21044 ac_need_defaults=:
21045 while test $# != 0
21046 do
21047 case $1 in
21048 --*=*)
21049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21051 ac_shift=:
21052 ;;
21053 -*)
21054 ac_option=$1
21055 ac_optarg=$2
21056 ac_shift=shift
21057 ;;
21058 *) # This is not an option, so the user has probably given explicit
21059 # arguments.
21060 ac_option=$1
21061 ac_need_defaults=false;;
21062 esac
21063
21064 case $ac_option in
21065 # Handling of the options.
21066 _ACEOF
21067 cat >>$CONFIG_STATUS <<\_ACEOF
21068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21069 ac_cs_recheck=: ;;
21070 --version | --vers* | -V )
21071 echo "$ac_cs_version"; exit 0 ;;
21072 --he | --h)
21073 # Conflict between --help and --header
21074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21075 Try \`$0 --help' for more information." >&5
21076 echo "$as_me: error: ambiguous option: $1
21077 Try \`$0 --help' for more information." >&2;}
21078 { (exit 1); exit 1; }; };;
21079 --help | --hel | -h )
21080 echo "$ac_cs_usage"; exit 0 ;;
21081 --debug | --d* | -d )
21082 debug=: ;;
21083 --file | --fil | --fi | --f )
21084 $ac_shift
21085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21086 ac_need_defaults=false;;
21087 --header | --heade | --head | --hea )
21088 $ac_shift
21089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21090 ac_need_defaults=false;;
21091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21093 ac_cs_silent=: ;;
21094
21095 # This is an error.
21096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21097 Try \`$0 --help' for more information." >&5
21098 echo "$as_me: error: unrecognized option: $1
21099 Try \`$0 --help' for more information." >&2;}
21100 { (exit 1); exit 1; }; } ;;
21101
21102 *) ac_config_targets="$ac_config_targets $1" ;;
21103
21104 esac
21105 shift
21106 done
21107
21108 ac_configure_extra_args=
21109
21110 if $ac_cs_silent; then
21111 exec 6>/dev/null
21112 ac_configure_extra_args="$ac_configure_extra_args --silent"
21113 fi
21114
21115 _ACEOF
21116 cat >>$CONFIG_STATUS <<_ACEOF
21117 if \$ac_cs_recheck; then
21118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21120 fi
21121
21122 _ACEOF
21123
21124 cat >>$CONFIG_STATUS <<_ACEOF
21125 #
21126 # INIT-COMMANDS section.
21127 #
21128
21129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21130
21131 _ACEOF
21132
21133
21134
21135 cat >>$CONFIG_STATUS <<\_ACEOF
21136 for ac_config_target in $ac_config_targets
21137 do
21138 case "$ac_config_target" in
21139 # Handling of arguments.
21140 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21141 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21142 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21143 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21145 { (exit 1); exit 1; }; };;
21146 esac
21147 done
21148
21149 # If the user did not use the arguments to specify the items to instantiate,
21150 # then the envvar interface is used. Set only those that are not.
21151 # We use the long form for the default assignment because of an extremely
21152 # bizarre bug on SunOS 4.1.3.
21153 if $ac_need_defaults; then
21154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21157 fi
21158
21159 # Have a temporary directory for convenience. Make it in the build tree
21160 # simply because there is no reason to put it here, and in addition,
21161 # creating and moving files from /tmp can sometimes cause problems.
21162 # Create a temporary directory, and hook for its removal unless debugging.
21163 $debug ||
21164 {
21165 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21166 trap '{ (exit 1); exit 1; }' 1 2 13 15
21167 }
21168
21169 # Create a (secure) tmp directory for tmp files.
21170
21171 {
21172 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21173 test -n "$tmp" && test -d "$tmp"
21174 } ||
21175 {
21176 tmp=./confstat$$-$RANDOM
21177 (umask 077 && mkdir $tmp)
21178 } ||
21179 {
21180 echo "$me: cannot create a temporary directory in ." >&2
21181 { (exit 1); exit 1; }
21182 }
21183
21184 _ACEOF
21185
21186 cat >>$CONFIG_STATUS <<_ACEOF
21187
21188 #
21189 # CONFIG_FILES section.
21190 #
21191
21192 # No need to generate the scripts if there are no CONFIG_FILES.
21193 # This happens for instance when ./config.status config.h
21194 if test -n "\$CONFIG_FILES"; then
21195 # Protect against being on the right side of a sed subst in config.status.
21196 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21197 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21198 s,@SHELL@,$SHELL,;t t
21199 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21200 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21201 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21202 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21203 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21204 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21205 s,@exec_prefix@,$exec_prefix,;t t
21206 s,@prefix@,$prefix,;t t
21207 s,@program_transform_name@,$program_transform_name,;t t
21208 s,@bindir@,$bindir,;t t
21209 s,@sbindir@,$sbindir,;t t
21210 s,@libexecdir@,$libexecdir,;t t
21211 s,@datadir@,$datadir,;t t
21212 s,@sysconfdir@,$sysconfdir,;t t
21213 s,@sharedstatedir@,$sharedstatedir,;t t
21214 s,@localstatedir@,$localstatedir,;t t
21215 s,@libdir@,$libdir,;t t
21216 s,@includedir@,$includedir,;t t
21217 s,@oldincludedir@,$oldincludedir,;t t
21218 s,@infodir@,$infodir,;t t
21219 s,@mandir@,$mandir,;t t
21220 s,@build_alias@,$build_alias,;t t
21221 s,@host_alias@,$host_alias,;t t
21222 s,@target_alias@,$target_alias,;t t
21223 s,@DEFS@,$DEFS,;t t
21224 s,@ECHO_C@,$ECHO_C,;t t
21225 s,@ECHO_N@,$ECHO_N,;t t
21226 s,@ECHO_T@,$ECHO_T,;t t
21227 s,@LIBS@,$LIBS,;t t
21228 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21229 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21230 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21231 s,@CYGPATH_W@,$CYGPATH_W,;t t
21232 s,@PACKAGE@,$PACKAGE,;t t
21233 s,@VERSION@,$VERSION,;t t
21234 s,@ACLOCAL@,$ACLOCAL,;t t
21235 s,@AUTOCONF@,$AUTOCONF,;t t
21236 s,@AUTOMAKE@,$AUTOMAKE,;t t
21237 s,@AUTOHEADER@,$AUTOHEADER,;t t
21238 s,@MAKEINFO@,$MAKEINFO,;t t
21239 s,@install_sh@,$install_sh,;t t
21240 s,@STRIP@,$STRIP,;t t
21241 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21242 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21243 s,@mkdir_p@,$mkdir_p,;t t
21244 s,@AWK@,$AWK,;t t
21245 s,@SET_MAKE@,$SET_MAKE,;t t
21246 s,@am__leading_dot@,$am__leading_dot,;t t
21247 s,@AMTAR@,$AMTAR,;t t
21248 s,@am__tar@,$am__tar,;t t
21249 s,@am__untar@,$am__untar,;t t
21250 s,@HMACC_TRUE@,$HMACC_TRUE,;t t
21251 s,@HMACC_FALSE@,$HMACC_FALSE,;t t
21252 s,@LN_S@,$LN_S,;t t
21253 s,@CC@,$CC,;t t
21254 s,@CFLAGS@,$CFLAGS,;t t
21255 s,@LDFLAGS@,$LDFLAGS,;t t
21256 s,@CPPFLAGS@,$CPPFLAGS,;t t
21257 s,@ac_ct_CC@,$ac_ct_CC,;t t
21258 s,@EXEEXT@,$EXEEXT,;t t
21259 s,@OBJEXT@,$OBJEXT,;t t
21260 s,@DEPDIR@,$DEPDIR,;t t
21261 s,@am__include@,$am__include,;t t
21262 s,@am__quote@,$am__quote,;t t
21263 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21264 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21265 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21266 s,@CCDEPMODE@,$CCDEPMODE,;t t
21267 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21268 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21269 s,@build@,$build,;t t
21270 s,@build_cpu@,$build_cpu,;t t
21271 s,@build_vendor@,$build_vendor,;t t
21272 s,@build_os@,$build_os,;t t
21273 s,@host@,$host,;t t
21274 s,@host_cpu@,$host_cpu,;t t
21275 s,@host_vendor@,$host_vendor,;t t
21276 s,@host_os@,$host_os,;t t
21277 s,@SED@,$SED,;t t
21278 s,@EGREP@,$EGREP,;t t
21279 s,@ECHO@,$ECHO,;t t
21280 s,@AR@,$AR,;t t
21281 s,@ac_ct_AR@,$ac_ct_AR,;t t
21282 s,@RANLIB@,$RANLIB,;t t
21283 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21284 s,@CPP@,$CPP,;t t
21285 s,@CXX@,$CXX,;t t
21286 s,@CXXFLAGS@,$CXXFLAGS,;t t
21287 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21288 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21289 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21290 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21291 s,@CXXCPP@,$CXXCPP,;t t
21292 s,@F77@,$F77,;t t
21293 s,@FFLAGS@,$FFLAGS,;t t
21294 s,@ac_ct_F77@,$ac_ct_F77,;t t
21295 s,@LIBTOOL@,$LIBTOOL,;t t
21296 s,@LIBOBJS@,$LIBOBJS,;t t
21297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21298 CEOF
21299
21300 _ACEOF
21301
21302 cat >>$CONFIG_STATUS <<\_ACEOF
21303 # Split the substitutions into bite-sized pieces for seds with
21304 # small command number limits, like on Digital OSF/1 and HP-UX.
21305 ac_max_sed_lines=48
21306 ac_sed_frag=1 # Number of current file.
21307 ac_beg=1 # First line for current file.
21308 ac_end=$ac_max_sed_lines # Line after last line for current file.
21309 ac_more_lines=:
21310 ac_sed_cmds=
21311 while $ac_more_lines; do
21312 if test $ac_beg -gt 1; then
21313 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21314 else
21315 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21316 fi
21317 if test ! -s $tmp/subs.frag; then
21318 ac_more_lines=false
21319 else
21320 # The purpose of the label and of the branching condition is to
21321 # speed up the sed processing (if there are no `@' at all, there
21322 # is no need to browse any of the substitutions).
21323 # These are the two extra sed commands mentioned above.
21324 (echo ':t
21325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21326 if test -z "$ac_sed_cmds"; then
21327 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21328 else
21329 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21330 fi
21331 ac_sed_frag=`expr $ac_sed_frag + 1`
21332 ac_beg=$ac_end
21333 ac_end=`expr $ac_end + $ac_max_sed_lines`
21334 fi
21335 done
21336 if test -z "$ac_sed_cmds"; then
21337 ac_sed_cmds=cat
21338 fi
21339 fi # test -n "$CONFIG_FILES"
21340
21341 _ACEOF
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21343 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21345 case $ac_file in
21346 - | *:- | *:-:* ) # input from stdin
21347 cat >$tmp/stdin
21348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21352 * ) ac_file_in=$ac_file.in ;;
21353 esac
21354
21355 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21356 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21358 X"$ac_file" : 'X\(//\)[^/]' \| \
21359 X"$ac_file" : 'X\(//\)$' \| \
21360 X"$ac_file" : 'X\(/\)' \| \
21361 . : '\(.\)' 2>/dev/null ||
21362 echo X"$ac_file" |
21363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21365 /^X\(\/\/\)$/{ s//\1/; q; }
21366 /^X\(\/\).*/{ s//\1/; q; }
21367 s/.*/./; q'`
21368 { if $as_mkdir_p; then
21369 mkdir -p "$ac_dir"
21370 else
21371 as_dir="$ac_dir"
21372 as_dirs=
21373 while test ! -d "$as_dir"; do
21374 as_dirs="$as_dir $as_dirs"
21375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21377 X"$as_dir" : 'X\(//\)[^/]' \| \
21378 X"$as_dir" : 'X\(//\)$' \| \
21379 X"$as_dir" : 'X\(/\)' \| \
21380 . : '\(.\)' 2>/dev/null ||
21381 echo X"$as_dir" |
21382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21384 /^X\(\/\/\)$/{ s//\1/; q; }
21385 /^X\(\/\).*/{ s//\1/; q; }
21386 s/.*/./; q'`
21387 done
21388 test ! -n "$as_dirs" || mkdir $as_dirs
21389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21390 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21391 { (exit 1); exit 1; }; }; }
21392
21393 ac_builddir=.
21394
21395 if test "$ac_dir" != .; then
21396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21397 # A "../" for each directory in $ac_dir_suffix.
21398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21399 else
21400 ac_dir_suffix= ac_top_builddir=
21401 fi
21402
21403 case $srcdir in
21404 .) # No --srcdir option. We are building in place.
21405 ac_srcdir=.
21406 if test -z "$ac_top_builddir"; then
21407 ac_top_srcdir=.
21408 else
21409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21410 fi ;;
21411 [\\/]* | ?:[\\/]* ) # Absolute path.
21412 ac_srcdir=$srcdir$ac_dir_suffix;
21413 ac_top_srcdir=$srcdir ;;
21414 *) # Relative path.
21415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21417 esac
21418
21419 # Do not use `cd foo && pwd` to compute absolute paths, because
21420 # the directories may not exist.
21421 case `pwd` in
21422 .) ac_abs_builddir="$ac_dir";;
21423 *)
21424 case "$ac_dir" in
21425 .) ac_abs_builddir=`pwd`;;
21426 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21427 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21428 esac;;
21429 esac
21430 case $ac_abs_builddir in
21431 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21432 *)
21433 case ${ac_top_builddir}. in
21434 .) ac_abs_top_builddir=$ac_abs_builddir;;
21435 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21436 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21437 esac;;
21438 esac
21439 case $ac_abs_builddir in
21440 .) ac_abs_srcdir=$ac_srcdir;;
21441 *)
21442 case $ac_srcdir in
21443 .) ac_abs_srcdir=$ac_abs_builddir;;
21444 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21445 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21446 esac;;
21447 esac
21448 case $ac_abs_builddir in
21449 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21450 *)
21451 case $ac_top_srcdir in
21452 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21453 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21454 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21455 esac;;
21456 esac
21457
21458
21459 case $INSTALL in
21460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21461 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21462 esac
21463
21464 if test x"$ac_file" != x-; then
21465 { echo "$as_me:$LINENO: creating $ac_file" >&5
21466 echo "$as_me: creating $ac_file" >&6;}
21467 rm -f "$ac_file"
21468 fi
21469 # Let's still pretend it is `configure' which instantiates (i.e., don't
21470 # use $as_me), people would be surprised to read:
21471 # /* config.h. Generated by config.status. */
21472 if test x"$ac_file" = x-; then
21473 configure_input=
21474 else
21475 configure_input="$ac_file. "
21476 fi
21477 configure_input=$configure_input"Generated from `echo $ac_file_in |
21478 sed 's,.*/,,'` by configure."
21479
21480 # First look for the input files in the build tree, otherwise in the
21481 # src tree.
21482 ac_file_inputs=`IFS=:
21483 for f in $ac_file_in; do
21484 case $f in
21485 -) echo $tmp/stdin ;;
21486 [\\/$]*)
21487 # Absolute (can't be DOS-style, as IFS=:)
21488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21489 echo "$as_me: error: cannot find input file: $f" >&2;}
21490 { (exit 1); exit 1; }; }
21491 echo "$f";;
21492 *) # Relative
21493 if test -f "$f"; then
21494 # Build tree
21495 echo "$f"
21496 elif test -f "$srcdir/$f"; then
21497 # Source tree
21498 echo "$srcdir/$f"
21499 else
21500 # /dev/null tree
21501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21502 echo "$as_me: error: cannot find input file: $f" >&2;}
21503 { (exit 1); exit 1; }; }
21504 fi;;
21505 esac
21506 done` || { (exit 1); exit 1; }
21507 _ACEOF
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 sed "$ac_vpsub
21510 $extrasub
21511 _ACEOF
21512 cat >>$CONFIG_STATUS <<\_ACEOF
21513 :t
21514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21515 s,@configure_input@,$configure_input,;t t
21516 s,@srcdir@,$ac_srcdir,;t t
21517 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21518 s,@top_srcdir@,$ac_top_srcdir,;t t
21519 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21520 s,@builddir@,$ac_builddir,;t t
21521 s,@abs_builddir@,$ac_abs_builddir,;t t
21522 s,@top_builddir@,$ac_top_builddir,;t t
21523 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21524 s,@INSTALL@,$ac_INSTALL,;t t
21525 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21526 rm -f $tmp/stdin
21527 if test x"$ac_file" != x-; then
21528 mv $tmp/out $ac_file
21529 else
21530 cat $tmp/out
21531 rm -f $tmp/out
21532 fi
21533
21534 done
21535 _ACEOF
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21537
21538 #
21539 # CONFIG_HEADER section.
21540 #
21541
21542 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21543 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21544 #
21545 # ac_d sets the value in "#define NAME VALUE" lines.
21546 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21547 ac_dB='[ ].*$,\1#\2'
21548 ac_dC=' '
21549 ac_dD=',;t'
21550 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21551 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21552 ac_uB='$,\1#\2define\3'
21553 ac_uC=' '
21554 ac_uD=',;t'
21555
21556 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21558 case $ac_file in
21559 - | *:- | *:-:* ) # input from stdin
21560 cat >$tmp/stdin
21561 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21563 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21565 * ) ac_file_in=$ac_file.in ;;
21566 esac
21567
21568 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21569 echo "$as_me: creating $ac_file" >&6;}
21570
21571 # First look for the input files in the build tree, otherwise in the
21572 # src tree.
21573 ac_file_inputs=`IFS=:
21574 for f in $ac_file_in; do
21575 case $f in
21576 -) echo $tmp/stdin ;;
21577 [\\/$]*)
21578 # Absolute (can't be DOS-style, as IFS=:)
21579 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21580 echo "$as_me: error: cannot find input file: $f" >&2;}
21581 { (exit 1); exit 1; }; }
21582 # Do quote $f, to prevent DOS paths from being IFS'd.
21583 echo "$f";;
21584 *) # Relative
21585 if test -f "$f"; then
21586 # Build tree
21587 echo "$f"
21588 elif test -f "$srcdir/$f"; then
21589 # Source tree
21590 echo "$srcdir/$f"
21591 else
21592 # /dev/null tree
21593 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21594 echo "$as_me: error: cannot find input file: $f" >&2;}
21595 { (exit 1); exit 1; }; }
21596 fi;;
21597 esac
21598 done` || { (exit 1); exit 1; }
21599 # Remove the trailing spaces.
21600 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21601
21602 _ACEOF
21603
21604 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21605 # `conftest.undefs', that substitutes the proper values into
21606 # config.h.in to produce config.h. The first handles `#define'
21607 # templates, and the second `#undef' templates.
21608 # And first: Protect against being on the right side of a sed subst in
21609 # config.status. Protect against being in an unquoted here document
21610 # in config.status.
21611 rm -f conftest.defines conftest.undefs
21612 # Using a here document instead of a string reduces the quoting nightmare.
21613 # Putting comments in sed scripts is not portable.
21614 #
21615 # `end' is used to avoid that the second main sed command (meant for
21616 # 0-ary CPP macros) applies to n-ary macro definitions.
21617 # See the Autoconf documentation for `clear'.
21618 cat >confdef2sed.sed <<\_ACEOF
21619 s/[\\&,]/\\&/g
21620 s,[\\$`],\\&,g
21621 t clear
21622 : clear
21623 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21624 t end
21625 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21626 : end
21627 _ACEOF
21628 # If some macros were called several times there might be several times
21629 # the same #defines, which is useless. Nevertheless, we may not want to
21630 # sort them, since we want the *last* AC-DEFINE to be honored.
21631 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21632 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21633 rm -f confdef2sed.sed
21634
21635 # This sed command replaces #undef with comments. This is necessary, for
21636 # example, in the case of _POSIX_SOURCE, which is predefined and required
21637 # on some systems where configure will not decide to define it.
21638 cat >>conftest.undefs <<\_ACEOF
21639 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21640 _ACEOF
21641
21642 # Break up conftest.defines because some shells have a limit on the size
21643 # of here documents, and old seds have small limits too (100 cmds).
21644 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21645 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21646 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21647 echo ' :' >>$CONFIG_STATUS
21648 rm -f conftest.tail
21649 while grep . conftest.defines >/dev/null
21650 do
21651 # Write a limited-size here document to $tmp/defines.sed.
21652 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21653 # Speed up: don't consider the non `#define' lines.
21654 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21655 # Work around the forget-to-reset-the-flag bug.
21656 echo 't clr' >>$CONFIG_STATUS
21657 echo ': clr' >>$CONFIG_STATUS
21658 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21659 echo 'CEOF
21660 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21661 rm -f $tmp/in
21662 mv $tmp/out $tmp/in
21663 ' >>$CONFIG_STATUS
21664 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21665 rm -f conftest.defines
21666 mv conftest.tail conftest.defines
21667 done
21668 rm -f conftest.defines
21669 echo ' fi # grep' >>$CONFIG_STATUS
21670 echo >>$CONFIG_STATUS
21671
21672 # Break up conftest.undefs because some shells have a limit on the size
21673 # of here documents, and old seds have small limits too (100 cmds).
21674 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21675 rm -f conftest.tail
21676 while grep . conftest.undefs >/dev/null
21677 do
21678 # Write a limited-size here document to $tmp/undefs.sed.
21679 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21680 # Speed up: don't consider the non `#undef'
21681 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21682 # Work around the forget-to-reset-the-flag bug.
21683 echo 't clr' >>$CONFIG_STATUS
21684 echo ': clr' >>$CONFIG_STATUS
21685 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21686 echo 'CEOF
21687 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21688 rm -f $tmp/in
21689 mv $tmp/out $tmp/in
21690 ' >>$CONFIG_STATUS
21691 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21692 rm -f conftest.undefs
21693 mv conftest.tail conftest.undefs
21694 done
21695 rm -f conftest.undefs
21696
21697 cat >>$CONFIG_STATUS <<\_ACEOF
21698 # Let's still pretend it is `configure' which instantiates (i.e., don't
21699 # use $as_me), people would be surprised to read:
21700 # /* config.h. Generated by config.status. */
21701 if test x"$ac_file" = x-; then
21702 echo "/* Generated by configure. */" >$tmp/config.h
21703 else
21704 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21705 fi
21706 cat $tmp/in >>$tmp/config.h
21707 rm -f $tmp/in
21708 if test x"$ac_file" != x-; then
21709 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21710 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21711 echo "$as_me: $ac_file is unchanged" >&6;}
21712 else
21713 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21715 X"$ac_file" : 'X\(//\)[^/]' \| \
21716 X"$ac_file" : 'X\(//\)$' \| \
21717 X"$ac_file" : 'X\(/\)' \| \
21718 . : '\(.\)' 2>/dev/null ||
21719 echo X"$ac_file" |
21720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21722 /^X\(\/\/\)$/{ s//\1/; q; }
21723 /^X\(\/\).*/{ s//\1/; q; }
21724 s/.*/./; q'`
21725 { if $as_mkdir_p; then
21726 mkdir -p "$ac_dir"
21727 else
21728 as_dir="$ac_dir"
21729 as_dirs=
21730 while test ! -d "$as_dir"; do
21731 as_dirs="$as_dir $as_dirs"
21732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21734 X"$as_dir" : 'X\(//\)[^/]' \| \
21735 X"$as_dir" : 'X\(//\)$' \| \
21736 X"$as_dir" : 'X\(/\)' \| \
21737 . : '\(.\)' 2>/dev/null ||
21738 echo X"$as_dir" |
21739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21741 /^X\(\/\/\)$/{ s//\1/; q; }
21742 /^X\(\/\).*/{ s//\1/; q; }
21743 s/.*/./; q'`
21744 done
21745 test ! -n "$as_dirs" || mkdir $as_dirs
21746 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21748 { (exit 1); exit 1; }; }; }
21749
21750 rm -f $ac_file
21751 mv $tmp/config.h $ac_file
21752 fi
21753 else
21754 cat $tmp/config.h
21755 rm -f $tmp/config.h
21756 fi
21757 # Compute $ac_file's index in $config_headers.
21758 _am_stamp_count=1
21759 for _am_header in $config_headers :; do
21760 case $_am_header in
21761 $ac_file | $ac_file:* )
21762 break ;;
21763 * )
21764 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21765 esac
21766 done
21767 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21768 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769 X$ac_file : 'X\(//\)[^/]' \| \
21770 X$ac_file : 'X\(//\)$' \| \
21771 X$ac_file : 'X\(/\)' \| \
21772 . : '\(.\)' 2>/dev/null ||
21773 echo X$ac_file |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21776 /^X\(\/\/\)$/{ s//\1/; q; }
21777 /^X\(\/\).*/{ s//\1/; q; }
21778 s/.*/./; q'`/stamp-h$_am_stamp_count
21779 done
21780 _ACEOF
21781 cat >>$CONFIG_STATUS <<\_ACEOF
21782
21783 #
21784 # CONFIG_COMMANDS section.
21785 #
21786 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21787 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21788 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21789 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21790 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21791 X"$ac_dest" : 'X\(//\)[^/]' \| \
21792 X"$ac_dest" : 'X\(//\)$' \| \
21793 X"$ac_dest" : 'X\(/\)' \| \
21794 . : '\(.\)' 2>/dev/null ||
21795 echo X"$ac_dest" |
21796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21798 /^X\(\/\/\)$/{ s//\1/; q; }
21799 /^X\(\/\).*/{ s//\1/; q; }
21800 s/.*/./; q'`
21801 { if $as_mkdir_p; then
21802 mkdir -p "$ac_dir"
21803 else
21804 as_dir="$ac_dir"
21805 as_dirs=
21806 while test ! -d "$as_dir"; do
21807 as_dirs="$as_dir $as_dirs"
21808 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21810 X"$as_dir" : 'X\(//\)[^/]' \| \
21811 X"$as_dir" : 'X\(//\)$' \| \
21812 X"$as_dir" : 'X\(/\)' \| \
21813 . : '\(.\)' 2>/dev/null ||
21814 echo X"$as_dir" |
21815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21817 /^X\(\/\/\)$/{ s//\1/; q; }
21818 /^X\(\/\).*/{ s//\1/; q; }
21819 s/.*/./; q'`
21820 done
21821 test ! -n "$as_dirs" || mkdir $as_dirs
21822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21824 { (exit 1); exit 1; }; }; }
21825
21826 ac_builddir=.
21827
21828 if test "$ac_dir" != .; then
21829 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21830 # A "../" for each directory in $ac_dir_suffix.
21831 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21832 else
21833 ac_dir_suffix= ac_top_builddir=
21834 fi
21835
21836 case $srcdir in
21837 .) # No --srcdir option. We are building in place.
21838 ac_srcdir=.
21839 if test -z "$ac_top_builddir"; then
21840 ac_top_srcdir=.
21841 else
21842 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21843 fi ;;
21844 [\\/]* | ?:[\\/]* ) # Absolute path.
21845 ac_srcdir=$srcdir$ac_dir_suffix;
21846 ac_top_srcdir=$srcdir ;;
21847 *) # Relative path.
21848 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21849 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21850 esac
21851
21852 # Do not use `cd foo && pwd` to compute absolute paths, because
21853 # the directories may not exist.
21854 case `pwd` in
21855 .) ac_abs_builddir="$ac_dir";;
21856 *)
21857 case "$ac_dir" in
21858 .) ac_abs_builddir=`pwd`;;
21859 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21860 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21861 esac;;
21862 esac
21863 case $ac_abs_builddir in
21864 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21865 *)
21866 case ${ac_top_builddir}. in
21867 .) ac_abs_top_builddir=$ac_abs_builddir;;
21868 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21869 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21870 esac;;
21871 esac
21872 case $ac_abs_builddir in
21873 .) ac_abs_srcdir=$ac_srcdir;;
21874 *)
21875 case $ac_srcdir in
21876 .) ac_abs_srcdir=$ac_abs_builddir;;
21877 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21878 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21879 esac;;
21880 esac
21881 case $ac_abs_builddir in
21882 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21883 *)
21884 case $ac_top_srcdir in
21885 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21886 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21887 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21888 esac;;
21889 esac
21890
21891
21892 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21893 echo "$as_me: executing $ac_dest commands" >&6;}
21894 case $ac_dest in
21895 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21896 # Strip MF so we end up with the name of the file.
21897 mf=`echo "$mf" | sed -e 's/:.*$//'`
21898 # Check whether this is an Automake generated Makefile or not.
21899 # We used to match only the files named `Makefile.in', but
21900 # some people rename them; so instead we look at the file content.
21901 # Grep'ing the first line is not enough: some people post-process
21902 # each Makefile.in and add a new line on top of each file to say so.
21903 # So let's grep whole file.
21904 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21905 dirpart=`(dirname "$mf") 2>/dev/null ||
21906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21907 X"$mf" : 'X\(//\)[^/]' \| \
21908 X"$mf" : 'X\(//\)$' \| \
21909 X"$mf" : 'X\(/\)' \| \
21910 . : '\(.\)' 2>/dev/null ||
21911 echo X"$mf" |
21912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21914 /^X\(\/\/\)$/{ s//\1/; q; }
21915 /^X\(\/\).*/{ s//\1/; q; }
21916 s/.*/./; q'`
21917 else
21918 continue
21919 fi
21920 # Extract the definition of DEPDIR, am__include, and am__quote
21921 # from the Makefile without running `make'.
21922 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21923 test -z "$DEPDIR" && continue
21924 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21925 test -z "am__include" && continue
21926 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21927 # When using ansi2knr, U may be empty or an underscore; expand it
21928 U=`sed -n 's/^U = //p' < "$mf"`
21929 # Find all dependency output files, they are included files with
21930 # $(DEPDIR) in their names. We invoke sed twice because it is the
21931 # simplest approach to changing $(DEPDIR) to its actual value in the
21932 # expansion.
21933 for file in `sed -n "
21934 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21935 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21936 # Make sure the directory exists.
21937 test -f "$dirpart/$file" && continue
21938 fdir=`(dirname "$file") 2>/dev/null ||
21939 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21940 X"$file" : 'X\(//\)[^/]' \| \
21941 X"$file" : 'X\(//\)$' \| \
21942 X"$file" : 'X\(/\)' \| \
21943 . : '\(.\)' 2>/dev/null ||
21944 echo X"$file" |
21945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21947 /^X\(\/\/\)$/{ s//\1/; q; }
21948 /^X\(\/\).*/{ s//\1/; q; }
21949 s/.*/./; q'`
21950 { if $as_mkdir_p; then
21951 mkdir -p $dirpart/$fdir
21952 else
21953 as_dir=$dirpart/$fdir
21954 as_dirs=
21955 while test ! -d "$as_dir"; do
21956 as_dirs="$as_dir $as_dirs"
21957 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21959 X"$as_dir" : 'X\(//\)[^/]' \| \
21960 X"$as_dir" : 'X\(//\)$' \| \
21961 X"$as_dir" : 'X\(/\)' \| \
21962 . : '\(.\)' 2>/dev/null ||
21963 echo X"$as_dir" |
21964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21966 /^X\(\/\/\)$/{ s//\1/; q; }
21967 /^X\(\/\).*/{ s//\1/; q; }
21968 s/.*/./; q'`
21969 done
21970 test ! -n "$as_dirs" || mkdir $as_dirs
21971 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21972 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21973 { (exit 1); exit 1; }; }; }
21974
21975 # echo "creating $dirpart/$file"
21976 echo '# dummy' > "$dirpart/$file"
21977 done
21978 done
21979 ;;
21980 esac
21981 done
21982 _ACEOF
21983
21984 cat >>$CONFIG_STATUS <<\_ACEOF
21985
21986 { (exit 0); exit 0; }
21987 _ACEOF
21988 chmod +x $CONFIG_STATUS
21989 ac_clean_files=$ac_clean_files_save
21990
21991
21992 # configure is writing to config.log, and then calls config.status.
21993 # config.status does its own redirection, appending to config.log.
21994 # Unfortunately, on DOS this fails, as config.log is still kept open
21995 # by configure, so config.status won't be able to write to it; its
21996 # output is simply discarded. So we exec the FD to /dev/null,
21997 # effectively closing config.log, so it can be properly (re)opened and
21998 # appended to by config.status. When coming back to configure, we
21999 # need to make the FD available again.
22000 if test "$no_create" != yes; then
22001 ac_cs_success=:
22002 ac_config_status_args=
22003 test "$silent" = yes &&
22004 ac_config_status_args="$ac_config_status_args --quiet"
22005 exec 5>/dev/null
22006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22007 exec 5>>config.log
22008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22009 # would make configure fail if this is the last instruction.
22010 $ac_cs_success || { (exit 1); exit 1; }
22011 fi
22012